Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Updated charset html5 #503

Open
wants to merge 49 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
4acb0ae
Updated charset html5
aliggie Apr 13, 2020
1fc92be
Merge pull request #1 from aliggie/aliggie-patch-1
aliggie Apr 13, 2020
8d4f121
Updating
aliggie Apr 13, 2020
7e7cd21
Merge pull request #2 from aliggie/aliggie-patch-2
aliggie Apr 13, 2020
b1b1d4d
Update index.html
aliggie Apr 13, 2020
0ef5f02
Merge pull request #3 from aliggie/aliggie-patch-3
aliggie Apr 13, 2020
61872c7
Update sitemap.php
aliggie Apr 13, 2020
cfbb435
Merge pull request #4 from aliggie/aliggie-patch-4
aliggie Apr 13, 2020
a73ed74
Removed unnecessary slash
aliggie Apr 13, 2020
a003ff8
Merge pull request #5 from aliggie/aliggie-patch-5
aliggie Apr 13, 2020
2567d54
Lowercase initial
aliggie Apr 14, 2020
ea2d41e
Merge pull request #6 from aliggie/aliggie-patch-6
aliggie Apr 14, 2020
ff84df9
Alt and title in featuredvideos_sidebar
aliggie Apr 14, 2020
4a73afa
Merge pull request #7 from aliggie/aliggie-patch-7
aliggie Apr 14, 2020
a2173f7
alt and title in home_videos
aliggie Apr 14, 2020
cfd67bc
Merge pull request #8 from aliggie/aliggie-patch-8
aliggie Apr 14, 2020
f559821
alt and title in index
aliggie Apr 14, 2020
258b9ba
Merge pull request #9 from aliggie/aliggie-patch-9
aliggie Apr 14, 2020
40def4e
add alt in user_videos, remove title in img tag
aliggie Apr 14, 2020
2e14106
Merge pull request #10 from aliggie/aliggie-patch-10
aliggie Apr 14, 2020
41e7e07
title in channels
aliggie Apr 14, 2020
155f69f
Merge pull request #11 from aliggie/aliggie-patch-11
aliggie Apr 14, 2020
b3063e7
title in tag a of author
aliggie Apr 14, 2020
5f90e61
Merge pull request #12 from aliggie/aliggie-patch-11
aliggie Apr 14, 2020
1bc49df
tag meta description for view_channel
aliggie Apr 15, 2020
96de24c
Merge pull request #13 from aliggie/aliggie-patch-12
aliggie Apr 15, 2020
3598c87
Dynamic <html lang="">
aliggie Apr 15, 2020
a331946
Merge pull request #14 from aliggie/aliggie-patch-13
aliggie Apr 15, 2020
50976d4
Lowercase "html" in the DOCTYPE
aliggie Apr 15, 2020
77bcf0e
Merge pull request #15 from aliggie/aliggie-patch-14
aliggie Apr 15, 2020
2949236
All pages had the same and multiple h1 tags
aliggie Apr 19, 2020
15d8506
Merge pull request #16 from aliggie/aliggie-patch-15
aliggie Apr 19, 2020
ce485c5
Tag size h2 not defined
aliggie Apr 19, 2020
e512d47
Merge pull request #17 from aliggie/aliggie-patch-16
aliggie Apr 19, 2020
8af1321
Fixed h1 tag for view_channel
aliggie Apr 23, 2020
c3df208
Merge pull request #18 from aliggie/aliggie-patch-17
aliggie Apr 23, 2020
e58b329
Defined font-size for h3 tags
aliggie Apr 24, 2020
fe73874
Merge pull request #19 from aliggie/aliggie-patch-18
aliggie Apr 24, 2020
733594e
Added h1 tag
aliggie Apr 28, 2020
eada4bf
Merge pull request #20 from aliggie/aliggie-patch-19
aliggie Apr 28, 2020
fc10ef7
Tag title seo for page videos
aliggie May 3, 2020
bbc258c
Merge pull request #21 from aliggie/aliggie-patch-20
aliggie May 3, 2020
05e97d5
if (!$_GET['seo_cat_name'])
aliggie May 3, 2020
d814bc7
Merge pull request #22 from aliggie/aliggie-patch-21
aliggie May 3, 2020
b482531
added tag h1 in signup and login page
aliggie May 4, 2020
a6d9d59
Merge pull request #23 from aliggie/aliggie-patch-22
aliggie May 4, 2020
5f5b75c
Update search_result.php
aliggie May 27, 2020
f64f2cd
Add unique meta description for search_result page
aliggie May 27, 2020
2c7dcdb
Update search_result.php
aliggie May 27, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion upload/includes/langs/en.lang

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion upload/search_result.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,13 @@

if(mysql_clean(get('query'))) {
$squery = get('query');
$squery = strtolower($squery);
$squery = ucwords($squery);
assign('search_result', $squery);
if ($squery == 'clipbucket') {
subtitle("Awesomeness...!!");
} else {
subtitle($search->search_type[$type]['title'].' &raquo; '.mysql_clean(get('query')));
subtitle($search->search_type[$type]['title'].' &raquo; '.$squery);
}
}

Expand Down
31 changes: 19 additions & 12 deletions upload/sitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,49 +13,56 @@
$videos = get_videos(array('limit'=>$limit,'active'=>'yes','order'=>'date_added DESC'));

?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"
xmlns:image="https://www.google.com/schemas/sitemap-image/1.1">

<url>
<loc><?=BASEURL ?></loc>
</url>
<!-- by fjulio ( tangi @ clipbucket dev. ) -->
<?php
foreach($videos as $video)
{
?>

<url>
<loc><?=video_link($video)?></loc>
<video:video>
<video:content_loc><?=get_video_file($video)?></video:content_loc>
<video:player_loc allow_embed="yes"><?=BASEURL ?>/player/old_players/embed_player.swf?file=<?=get_video_file($video)?></video:player_loc>
<video:thumbnail_loc><?=get_thumb($video)?></video:thumbnail_loc>
<video:title><![CDATA[<?=substr($video['title'],0,500)?>]]></video:title>
<video:description><![CDATA[<?=substr($video['description'],0,300)?>]]></video:description>
<video:player_loc allow_embed="yes"><?=get_video_file($video)?></video:player_loc>
<video:duration>
<?php echo round($video['duration']);
?></video:duration>
<video:rating><?php
$vrating = $video['rating'] / 2;
$findcond = strpos($vrating,'.');
if ($findcond == "1"){
$firstrating = str_replace(',','.',$vrating);
echo $firstrating;
}
else { echo $vrating.'.0'; }
?></video:rating>
<video:view_count><?=$video['views']?></video:view_count>
else { echo $vrating.'.0'; }?>
</video:rating>
<video:view_count>
<?=$video['views']?></video:view_count>
<video:publication_date><?php
echo cbdate("Y-m-d\TH:i:s",strtotime($video['date_added'])).'+00:00';
?></video:publication_date>
<?php
$vtags = strip_tags(tags($video['tags'],'video'));
$vtableau = explode (",",$vtags);
for($i=0;$i<sizeof($vtableau);$i++)
for($i=0;$i<sizeof($vtableau) && $i<32;$i++)
{
echo '<video:tag><![CDATA['.trim($vtableau[$i]).']]></video:tag>';
}
?>
<video:category><?=strip_tags(categories($video['category'],'video'))?></video:category>
<video:family_friendly>yes</video:family_friendly>
<video:duration><?php
echo round($video['duration']);
?></video:duration>
</video:video>
</url>
<?php
}
?>
</urlset>
</urlset>
4 changes: 2 additions & 2 deletions upload/styles/cb_28/layout/blocks/channels.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <h2>{$featured.username}</h2>
{assign var='user_cover_tune' value=$userquery->getCover($user.userid)}

<div class="channel-holder">
<a href="{$userquery->profile_link($user)}" id="user-{$user.userid}" class="user-block">
<a href="{$userquery->profile_link($user)}" id="user-{$user.userid}" class="user-block" title="{$user.username}">
<img class="avatar" src="{avatar details=$user size='m'}">
<h2>{$user.username}</h2>
</a>
Expand Down Expand Up @@ -160,4 +160,4 @@ <h2>{$user_data.username}</h2>
}
});
});
</script>
</script>
8 changes: 4 additions & 4 deletions upload/styles/cb_28/layout/blocks/video.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="item-video col-lg-3 col-md-3 col-sm-4 col-xs-6">
<div class="clearfix thumb-holder">
<a class="video-link" href="{videoLink($video)}" title="{$video.title|title}">
<img class="img-responsive" src="{getThumb vdetails=$video size=416x260 }">
<img class="img-responsive" src="{getThumb vdetails=$video size=416x260 }" alt="{$video.title|title}">
</a>
<img src="{$theme}/images/thumb-ratio.png" class="thumb-ratio" alt="">
<div class="item-footer">
Expand All @@ -14,8 +14,8 @@
</div>
</div>
<div class="clearfix video-info">
<h2 class="title"><a href="{videoLink($video)}">{$video.title|truncate:50}</a></h2>
<span class="author">by <a href="{$userquery->profile_link($video)}">{$video.username}</a></span>
<h2 class="title"><a href="{videoLink($video)}" title="{$video.title|title}">{$video.title|truncate:50}</a></h2>
<span class="author">by <a href="{$userquery->profile_link($video)}" title="{$video.username}">{$video.username}</a></span>
<div class="clearfix views-date">
<span>{$video.views}&nbsp;views</span>
<time class="date" datetime="2016-15-03">{$video.date_added|niceTime}</time>
Expand All @@ -27,7 +27,7 @@ <h2 class="title"><a href="{videoLink($video)}">{$video.title|truncate:50}</a></
{if $display_type=='user_videos'}
<div class="col-md-3 col-sm-4 col-xs-6">
<a href="{videoLink($video)}" title="{$video.title|title}">
<img alt="{$video.title|title}" src="{getThumb vdetails=$video size='171x120'}" id="thumbs_{$video.videoid}" title="{$video.title|title}"/>
<img src="{getThumb vdetails=$video size='171x120'}" id="thumbs_{$video.videoid}" alt="{$video.title|title}">
</a>
<p class="cbHomeVidDuration duration_view">
{if $video.duration>1}
Expand Down
10 changes: 5 additions & 5 deletions upload/styles/cb_28/layout/blocks/videos/video.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</div> <!--VIDEO_THUMB END-->

<div class="details_block">
<strong class="title"><a href="{videoLink($pop_video)}">{$pop_video.title|truncate:50}</a></strong>
<strong class="title"><a href="{videoLink($pop_video)}" title="{$video.title|title}">{$pop_video.title|truncate:50}</a></strong>
<span class="author">{lang code="by"}&nbsp;<a href="{$userquery->profile_link($pop_video)}">{$pop_video.username}</a></span>
<div class="views-date">
<span>{$pop_video.views}&nbsp;{lang code="views"}</span>
Expand All @@ -21,7 +21,7 @@
{if $display_type=='homeVideos'}
<div class="clearfix thumb-holder userAppending">
<a class="video-link" href="{videoLink($video)}" title="{$video.title|title}">
<img class="img-responsive" src="{getThumb vdetails=$video size=416x260 }">
<img class="img-responsive" src="{getThumb vdetails=$video size=416x260 }" alt="{$video.title|title}">
</a>
<img src="{$theme}/images/thumb-ratio.png" class="thumb-ratio" alt="{$video.broadcast}">

Expand All @@ -33,7 +33,7 @@

</div>
<div class="clearfix video-info">
<h2 class="title"><a href="{videoLink($video)}">{$video.title|truncate:50}</a></h2>
<h2 class="title"><a href="{videoLink($video)}" title="{$video.title|title}">{$video.title|truncate:50}</a></h2>
<span class="author">{lang code="by"}&nbsp;<a href="{$userquery->profile_link($video)}">{$video.username}</a></span>
<div class="clearfix views-date">
<span>{$video.views}&nbsp;{lang code="views"}</span>
Expand Down Expand Up @@ -81,8 +81,8 @@ <h2 class="title"><a href="{videoLink($video)}">{$video.title|truncate:50}</a></
{if $display_type=='featuredVideos_sidebar'}
<div class="featured-video clearfix">
<div class="video_thumb">
<a href="{videoLink($video)}">
<img src="{getThumb vdetails=$video size=168x105}" {ANCHOR place="video_thumb" data=$video} class="img-responsive">
<a href="{videoLink($video)}" title="{$video.title|title}">
<img src="{getThumb vdetails=$video size=168x105}" alt="{$video.title|title}" {ANCHOR place="video_thumb" data=$video} class="img-responsive">
<time datetime="2016-15-03" class="duration">{if $video.duration>1}{$video.duration|SetTime}{else}00:00{/if}</time>
</a>
<img src="{$theme}/images/thumb-ratio.png" class="thumb-ratio" alt="">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</div>

<div class="profile-buttons clearfix">
<h2>{$user.username}</h2>
<h1>{$user.username}</h1>
<div class="btn-holder">
{if $user.userid != userid()}
<button id="report-user" class="btn btn-default">{lang code="report_usr"}</button>
Expand All @@ -82,4 +82,4 @@ <h2>{$user.username}</h2>
{/if}
</div>
</div>
</div>
</div>
26 changes: 16 additions & 10 deletions upload/styles/cb_28/layout/global_header.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!DOCTYPE HTML>
<!DOCTYPE html>

<html>
<html lang="{$lang_obj->lang}">
<head>
{if in_dev()}
{$cache_buster=microtime(true)}
{else}
{$cache_buster=$Cbucket->version}
{/if}
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
<!-- ClipBucket v{$Cbucket->version} -->
<meta name="copyright" content="ClipBucket - Integrated Units 2007 - {$smarty.now|date_format:"%Y"}">
Expand All @@ -18,12 +18,18 @@
{if isset($ninja_fighting)}
{ANCHOR place='seo_ninja'}
{else}
<meta name="keywords" content="{$Cbucket->configs.keywords}">
<meta name="description" content="{$Cbucket->configs.description}">
<meta name="distribution" content="global">


<title>{cbtitle}</title>

<link rel="canonical" href="{$baseurl}{$smarty.server.REQUEST_URI}">
{if $this_page == 'index'}<meta name="description" content="{$Cbucket->configs.description}">{/if}
{if $this_page == 'videos'}<meta name="description" content="Description for videos page.">{/if}
{if $this_page == 'watch_video'}<meta name="description" content="{$vdo.description}">{/if}
{if $this_page == 'channels'}<meta name="description" content="Description for channels page.">{/if}
{if $this_page == 'view_channel'}<meta name="description" content="{$p.profile_desc}">{/if}
{if $this_page == 'search_result'}<meta name="description" content="Watch {$search_result} videos.">{/if}

<meta name="distribution" content="global">

<title>{cbtitle}</title>
{/if}

<link rel="stylesheet" href="{$theme}/css/bootstrap.min.css?cache={$cache_buster}">
Expand Down Expand Up @@ -114,4 +120,4 @@
{/if}
</head>


4 changes: 2 additions & 2 deletions upload/styles/cb_28/layout/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
<div class="header-holder">
<div class="navbar-header clearfix">

<h1 class="logo">
<div class="logo">
<a href="{$baseurl}">
<img src="{$theme}/images/logo.png" alt="cbtune" class="img-responsive">
<span>clipbucket</span>
</a>
</h1>
</div>

<button class="navbar-toggle" data-toggle="collapse" data-target="#bs-collapse">Menu<span class="icon-down-arrow"></span></button>

Expand Down
6 changes: 3 additions & 3 deletions upload/styles/cb_28/layout/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<!-- ************ EDITORS BLOCK END ************ -->
<!-- ******************************************* -->
<section class="clearfix featured-videos">
<h1>{lang code="featured_videos"}</h1>
<h2>{lang code="featured_videos"}</h2>
<div id="featured_vid_sec" class="clearfix row">

</div>
Expand All @@ -60,7 +60,7 @@ <h1>{lang code="featured_videos"}</h1>
</section>

<section class="clearfix videos">
<h1>{lang code="recent_videos"}</h1>
<h2>{lang code="recent_videos"}</h2>
<div id="recent_vids_sec" class="clearfix row">
</div>
<div id="recent_pre" class="clearfix"></div>
Expand Down Expand Up @@ -202,4 +202,4 @@ <h2 title="Playlists with most videos">{lang code="top_playlists"}</h2>
$(window).resize(function() {
editpickVideos();
});
</script>
</script>
6 changes: 3 additions & 3 deletions upload/styles/cb_28/layout/signup.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<div class="clearfix signin-block">
<div class="account-holder">
<form name="login_form" method="post" action="" id="login_form" class="user-form">
<h2>{lang code="login"}</h2>
<h1>{lang code="login"}</h1>
<div class="form-group">
{*<label for="login_username_sp">{lang code="Username"}</label>*}
<input type="text" id="login_username_sp" placeholder="{lang code='type_username_here'}"
Expand Down Expand Up @@ -66,7 +66,7 @@ <h2>{lang code='get_your_account'}</h2>
{$allow_registeration}
{else}
<form name="signup_form" id="signup_form" method="post" action="{$baseurl}/signup.php" class="user-form custom-elements">
<h2>Signup!</h2>
<h1>Signup!</h1>
{foreach from=$required_fields item=field}
{if $field.type!='checkbox' && $field.type!='radiobutton'}
{$field.class='form-control'}
Expand Down Expand Up @@ -418,4 +418,4 @@ <h2>Signup!</h2>
width: 140px;
vertical-align: center;
}
</style>
</style>
5 changes: 4 additions & 1 deletion upload/styles/cb_28/layout/videos.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
<div class="clearfix leaderboard-ad ad">
{AD place='ad_728x90'}
</div>

<h1>Videos List</h1>

{$categories = pullCategories()}

{assign var=sorting_links value=sorting_links()}
Expand Down Expand Up @@ -141,4 +144,4 @@ <h2>{lang code="featured_videos"}</h2>
root.find('.sub-menu:visible').hide();
});
});
</script>
</script>
8 changes: 8 additions & 0 deletions upload/styles/cb_28/theme/css/all.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 18 additions & 3 deletions upload/videos.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,26 @@
$extra_params=NULL;
$tag='<li><a #params#>#page#</a><li>';
$pages->paginate($total_pages,$page,$link,$extra_params,$tag);
if (!$subtitle) {
$subtitle = 'Videos';

$sorting_links=sorting_links();
$time_links=time_links();

foreach($sorting_links as $na_me => $name){
if ($na_me == $_GET['sort'])
$sort_name = $sorting_links[$na_me];
}

foreach($time_links as $na_me => $name){
if ($na_me == $_GET['time'])
$sort_time = $time_links[$na_me];
}

if (!$_GET['seo_cat_name']) $_GET['seo_cat_name']='All Category';

$subtitle = $_GET['seo_cat_name'] .' &raquo; '. $sort_name .' &raquo; '. $sort_time;

subtitle(lang($subtitle));
array_val_assign($assign_arry);
template_files('videos.html');
display_it();
?>
?>