Files
Testing/templates/browse_videos.tpl
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

540 lines
18 KiB
Smarty

{include file='header.tpl'}
{* $Id: browse_videos.tpl 13 2009-01-11 06:04:29Z john $ *}
{literal}<style>
.kebabdots{
display:none;
}
.albums_browse_item1{overflow:initial;}
.albums_browse_item1_img img {
/* position: relative; */
left: 50%;
height: auto;
top: 50%;
width: 100%;
object-fit: cover;
object-position: center;
width: 100%;
height: 100%;}
.dropdown-menukebab a{color: #fa3200 !important;}
.kebab {
cursor: pointer;
position: relative;
display: inline-block;
box-sizing: border-box;
padding: 0 16px;
top: 12px;
}
.kebab span {
width: 6px;
height: 6px;
border-radius: 5px;
background: #00bcd4;
margin: 3px 0;
}
.middle {
transition: all 0.25s cubic-bezier(0.72, 1.2, 0.71, 0.72);
transform: scale(1);
position: relative;
box-shadow: 0 0.1px 0.1px 0 rgba(0, 0, 0, 0.16), 0 0.1px 0.3px 0 rgba(0, 0, 0, 0.12);
-webkit-filter: blur(0.1px);
filter: blur(0.1px);
}
.middle.kebabactive {
transform: scale(4.5);
transition: all 0.25s cubic-bezier(0.32, 2.04, 0.85, 0.54);
box-shadow: 0 0.1px 0.1px 0 rgba(0, 0, 0, 0.16), 0 0.1px 0.3px 0 rgba(0, 0, 0, 0.12);
}
.cross {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0);
margin-top: -1px;
font-family: "Nunito", sans-serif;
color: white;
transition: all 0.2s cubic-bezier(0.72, 1.2, 0.71, 0.72);
font-size: 22px;
user-select: none;
}
.cross.kebabactive {
transform: translate(-50%, -50%) scale(1);
transition: all 0.15s cubic-bezier(0.32, 2.04, 0.85, 0.54);
}
.navkebab {
}
.navkebab > li {
display: inline-block;
padding: 1em 18px;
cursor: pointer;
}
.navkebab > li:hover {
background: #ebebeb;
}
.kebabdropdown {
position: absolute;
left:0;
z-index:10000;
top:0;
transition: all 0.25s ease-out;
transform: scale(0);
transform-origin: 100% 0;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 8px 0 rgba(0, 0, 0, 0.12);
}
.kebabdropdown li {
display: block;
width: 100%;
}
.kebabdropdown li a {
width: 100%;
padding: 1em 18px;
display: inline-block;
white-space: pre;
box-sizing: border-box;
}
.kebabdropdown li a:hover {
background: #ebebeb;
}
.kebabdropdown:hover ul {
transform: scale(1);
}
.kebabdropdown.kebabactive {
transform: scale(1);
transition: all 0.25s cubic-bezier(0.5, 1.8, 0.9, 0.8);
display:block;
}
.follow {
overflow: hidden;
width: 42px;
height: 42px;
border-radius: 50px;
background: #03A9F4;
display: block;
margin: 300px auto 0;
white-space: nowrap;
padding: 13px;
box-sizing: border-box;
color: white;
transition: all 0.2s ease;
font-family: Roboto, sans-serif;
text-decoration: none;
box-shadow: 0 5px 6px 0 rgba(0, 0, 0, 0.2);
}
.follow i {
margin-right: 20px;
transition: margin-right 0.2s ease;
}
.follow:hover {
width: 134px;
}
.follow:hover i {
margin-right: 10px;
}
@media screen and (max-width: 800px) {
.follow {
margin: 400px auto 0;
}
}
@media (max-width: 767px) {
.kebabdots{
display:block !important;
transform: scale(1);
visibility:visible;
}
}
</style>
{/literal}
<div class='page_header' style="float:left;"><span style="font-size:20pt; font-weight:bold;text-transform:uppercase;">Videos</span><br>
<div style="margin-top:10px;">
<a href="user_video_upload.php?task=create">Upload a Video</a>
</div>
</div>
</div><div class="clearfix"></div>
<div class="col-sm-3 homeleft browse_media_sidebar" style="margin-bottom:25px;">
<ul class="nav vert-nav-tabs hidden-xs hidden-sm visible-md visible-lg form-tabsnav-pills nav-stacked">
<li {if $v==0 || $v==''}class="active" {/if}><a href="/browse_videos.php?s={$s}&v=0" class="jquerycss">Everyone's Videos</a></li>
<li {if $v==3}class="active" {/if}><a href="/browse_videos.php?s={$s}&v=3" class="jquerycss">Random Videos</a></li>
<li {if $v==1}class="active" {/if}><a href="/browse_videos.php?s={$s}&v=1" class="jquerycss">Friends Videos</a></li>
<li><a href="/video_history.php" class="jquerycss">Video History</a></li>
<li><a href="/watchlater.php" class="jquerycss">Watch Later</a></li>
</ul>
<div class="visible-xs visible-sm hidden-md hidden-lg form-tabsnav-dropdown">Display<br>
<select id="tabselector" class="mb10 form-control form-custom visible-xs visible-sm hidden-md hidden-lg tabdropdown" name='v' onchange="window.location.href=this.options[this.selectedIndex].value;">
<option value="">Select Option ↓</option>
<option value='https://bateworld.com/browse_videos.php?s={$s}&v=0'>Everyone's Videos</option>
<option value='https://bateworld.com/browse_videos.php?s={$s}&v=3' {if $v==3}class="active" {/if}>Random Videos</option>
<option value='https://bateworld.com/video_history.php'>Video History</option>
<option value='https://bateworld.com/watchlater.php'>Watch Later</option>
<option value='https://bateworld.com/browse_videos.php?v=9' {if $v==9}class="active" {/if}><i class="fa-solid fa-trophy"></i> Videos of the Day</option>
</select>
</div>
<br>{if $v==0}
Sort By<br>
<select name='s' onchange="window.location.href='browse_videos.php?v={$v}&s='+this.options[this.selectedIndex].value;" class='form-control mb10 form-custom tabdropdown' >
<option value='video_datecreated DESC' {if $s == "video_dateupdated DESC"} SELECTED{/if}>{lang_print id=5500075}</option>
<option value='video_views DESC' {if $s == "video_views DESC"} SELECTED{/if}>{lang_print id=5500144}</option>
<option value='video_cache_rating_weighted DESC' {if $s == "video_cache_rating_weighted DESC"} SELECTED{/if}>{lang_print id=5500156}</option>
<option value='duration' {if $s == "duration"} SELECTED{/if}>Longest First</option>
</select>
{/if}
<ul class="nav vert-nav-tabs hidden-xs hidden-sm visible-md visible-lg form-tabsnav-pills nav-stacked" style="margin-top:20px;">
<li {if $v==9}class="active" {/if}><a href="/browse_videos.php?v=9" class="jquerycss"><i class="fa-solid fa-trophy"></i> Videos of the Day</a></li>
</ul>
{if $v==9}
{literal}<br>
<script src="/include/js/jquery.form.js"></script>
<script>
jQuery('#newsletterform').ajaxForm({
success: function(){
jQuery('#newsletterform_div').hide();
jQuery('#newslettersuccess_div').show();
setTimeout(closemodal, 5000);
}
});
</script>
<div class="header">Get the Video of the Day Everyday</div>
<div style="padding: 10px;margin:0px;background:#000;">
<div id="newslettersuccess_div" style="display:none;" >Check your inbox to confirm your subscription!</div>
<div id="newsletterform_div">
<form action="https://pmail.bateworld.com/subscribe" id="newsletterform" method="post">
Email:<br>
<input type="hidden" name="api_key" value="XaYQWwDBi6ujJkLon7iC">
<input type="text" name="email" value="" class="form-control"><input type="hidden" name="list" value="WW37nWIEakMoK3g3xVoo2Q">
<input type="submit" value="Subscribe" style="margin-top:10px;">
</form>
</div></div>{/literal}{/if}
</div>
{literal}
{/literal}
<div class="col-sm-8 right-full">
{assign var=val value=0}
{section name=video_loop loop=$videos}
{if $val==$chaturbatead}
<div class="albums_browse_item1 col-sm-3">
{php}chaturbatead();{/php}
</div>
{/if}
{assign var=val value=$val+1}
{* ENSURE VIDEO TITLE ISN'T BLANK *}
{if $videos[video_loop].video_title == ""}{capture assign="video_title"}{lang_print id=589}{/capture}{else}{assign var="video_title" value=$videos[video_loop].video_title}{/if}
{if $videos[video_loop].video_group_id==""}
<div class='albums_browse_item1 col-sm-3'>
<div class="albums_browse_item1_img">
<a href='{$url->url_create("video", $videos[video_loop].video_author->user_info.user_username, $videos[video_loop].video_id)}' style="position:relative;height: 100%; display: block;">
{if $videos[video_loop].video_search!=1 || $videos[video_loop].approved!=1 || $videos[video_loop].video_author->user_info.user_enabled!=1}
<div class="album_photo" style="width: 100%; text-align:center; position:relative; height:100%;">
<div class="deleted"><div style="padding-top:50px;"><i class="fa-solid fa-trash mediastatus" style="font-size:80px;"></i></div></div>
</div>{else}
<img src='{if $video_info.custom_thumbnail==1}{if $video_info.cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$video_info.video_dir|replace:'./':''}{$video_info.video_id}_custom.jpg{else}{$imagecdn1}{$videos[video_loop].video_dir}{$videos[video_loop].video_id}_thumb.jpg{/if}' onerror="this.src='{$imagecdn}images/video_placeholder.gif'" border='0' class="hover videothumbnails">
{/if}
<span style="position: absolute;right: -1px;bottom: 0px;background: black;padding: 5px; color:white;">{$videos[video_loop].video_duration_in_min}</span>
</a>
</div>
<div style='font-weight: bold; font-size: 13px; margin-top:5px; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;'><a href='{$url->url_create("video", $videos[video_loop].video_author->user_info.user_username, $videos[video_loop].video_id)}'>{$video_title}</a></div>
<div class="dropdown pull-right">
<button class="dropdown-toggle kebabdots" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="background:none; border:0; margin-right:-5px; padding:0;">
<i class="fal fa-ellipsis-vertical fa-fw fa-xl margin-right-md" style="color: var(--example-color-alt); text-rendering: optimizeLegibility;
"></i>
</button>
<ul class="dropdown-menu dropdown-menukebab">
{literal}
<li><a href="javascript:void(0);" onclick="jQuery.post('misc_js.php', {
task:'addtowatchlater',
videoid: '{/literal}{$videos[video_loop].video_id}',
type: 0,
user: '{$videos[video_loop].video_author->user_info.user_username}{literal}'
})">Watch Later</a></li>{/literal}
<li>
{if $videos[video_loop].video_group_id==""}
<a href="user_list.php?user={$videos[video_loop].video_author->user_info.user_username}&amp;video_id={$videos[video_loop].video_id}&amp;type=video" data-toggle="modal" data-target="#myModal">Add to List</a>
{else}
<a href="user_list.php?user={$videos[video_loop].video_author->user_info.user_username}&amp;video_id={$videos[video_loop].video_id}&amp;type=groupvideo" data-toggle="modal" data-target="#myModal">Add to List</a>
{/if}
</li>
</ul>
</div>
{if $v==9}<div style='font-weight: bold; font-size: 10px; margin-top:5px;'>
<span class="" style="font-size: 10px; font-weight:normal;"><i class="fa-solid fa-trophy"></i> VOTD: {$datetime->cdate("F j, Y", $datetime->timezone($videos[video_loop].videooftheday, $global_timezone))}</span></div>
{/if}
<div style='font-weight: bold; font-size: 10px; margin-top:5px;'>
<a href="profile.php?user={$videos[video_loop].video_author->user_info.user_username}">{$videos[video_loop].video_author->user_info.user_displayname}</a>
<span class="" style="font-size: 10px; font-weight:normal; margin-left:5px;">
{$videos[video_loop].video_views} view{if $videos[video_loop].video_views!=1}s{/if}
</span>
</div>
</div>
{else}
<div class='albums_browse_item1 col-sm-3'>
<div class="albums_browse_item1_img">
<a href='video_group.php?user={$videos[video_loop].video_author->user_info.user_username}&video_id={$videos[video_loop].video_id}&group_id={$videos[video_loop].video_group_id}' style="position:relative;height: 100%; display: block;"><img src='{$imagecdn1}{$videos[video_loop].video_dir}video_{$videos[video_loop].video_id}_thumb.jpg' onerror="this.src='{$imagecdn}images/video_placeholder.gif'" border='0' class="hover videothumbnails">
<span style="position: absolute;right: -1px;bottom: 0px;background: black;padding: 5px; color:white;">{$videos[video_loop].video_duration_in_min}</span>
</a>
</div>
<div style='font-weight: bold; font-size: 13px; margin-top:5px; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;'><a href='video_group.php?user={$videos[video_loop].video_author->user_info.user_username}&video_id={$videos[video_loop].video_id}&group_id={$videos[video_loop].video_group_id}'>{$video_title}</a></div>
<div style='font-weight: bold; font-size: 10px; margin-top:5px;'><a href="profile.php?user={$videos[video_loop].video_author->user_info.user_username}">{$videos[video_loop].video_author->user_info.user_displayname}</a> <span style="font-size: 10px; font-weight:normal; margin-left:10px;">
{$videos[video_loop].video_views} view{if $videos[video_loop].video_views!=1}s{/if}
</span>
<div class="dropdown pull-right">
<button class="dropdown-toggle kebabdots" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="background:none; border:0; margin-right:-5px; padding:0;">
<i class="fal fa-ellipsis-vertical fa-fw fa-xl margin-right-md" style="color: var(--example-color-alt);text-rendering: optimizeLegibility;
"></i>
</button>
<ul class="dropdown-menu dropdown-menukebab">
<li><a href="javascript:void(0);" onclick="{literal}jQuery.post('misc_js.php', {
task:'addtowatchlater',
videoid: '{/literal}{$videos[video_loop].video_id}',
type: 1,
user: '{$videos[video_loop].video_author->user_info.user_username}',
second: {$videos[video_loop].video_group_id}{literal}
}){/literal}">Watch Later</a>
<a href="#">Watch Later</a></li>
<li><a href="user_list.php?user={$videos[video_loop].video_author->user_info.user_username}&amp;video_id={$videos[video_loop].video_id}&amp;type=groupvideo" data-toggle="modal" data-target="#myModal">Add to List</a></li>
</ul>
</div>
</div></div>
</div>
{/if}
{*
<div class='videoTab col-md-3'>
<table cellpadding='0' cellspacing='0'>
<tr>
<td style='vertical-align: top;'>
<a href='{$url->url_create("video", $videos[video_loop].video_author->user_info.user_username, $videos[video_loop].video_id)}'><img src='{if $videos[video_loop].cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$videos[video_loop].video_dir}{$videos[video_loop].video_id}_thumb.jpg' onerror="this.src='{$imagecdn}images/video_placeholder.gif'" border='0' class="hover videothumbnails"></a>
</td>
<td style='vertical-align: top; padding-left: 5px;'>
<div class='video_row_title'><a href='{$url->url_create("video", $videos[video_loop].video_author->user_info.user_username, $videos[video_loop].video_id)}'>{$video_title|truncate:55:'...':true}</a></div>
<div class='video_row_info' style=" color:#777777;"><a href="profile.php?user={$videos[video_loop].video_author->user_info.user_username}">{$videos[video_loop].video_author->user_info.user_displayname}</a><br />
{$videos[video_loop].video_duration_in_min} - {$videos[video_loop].total_comments} comment {if $videos[video_loop].total_comments!=1}s{/if} - {$videos[video_loop].video_views} view{if $videos[video_loop].video_views!=1}s{/if}<br />
{assign var="uploaddate" value=$datetime->time_since($videos[video_loop].video_datecreated)}
{capture assign="uploaded"}{lang_sprintf id=$uploaddate[0] 1=$uploaddate[1]}{/capture}
{lang_sprintf id=5500024 1=$uploaded}</div>
<div>
{section name=full_loop start=0 loop=$videos[video_loop].video_rating_full}
<!--<img src='./images/icons/video_rating_full_small.gif' border='0'>-->
{/section}
{if $videos[video_loop].video_rating_part}<!--<img src='./images/icons/video_rating_part_small.gif' border='0'>-->{/if}
{section name=none_loop start=0 loop=$videos[video_loop].video_rating_none}
<!--<img src='./images/icons/video_rating_none_small.gif' border='0'>-->
{/section}
</div>
</td>
</tr>
</table>
</div>*}
{* cycle values=",,<div style='clear: both; height: 0px;'></div>" *}
{/section}
<div class="clearfix"></div>
{if $v!=3}
{if $maxpage > 1}
<div class='newbrowsepages hidden-sm visible-md visible-lg'>
{if $p != 1}<a href='{$smarty.server.PHP_SELF}?s={$s}&v={$v}&p={math equation='p-1' p=$p}'><span class="white">&#8249; Previous</span></a><a href="{$smarty.server.PHP_SELF}?s={$s}&v={$v}&p=1"><span class="white">1</span></a> | {/if}
{foreach from=$for item=foo}
<a href='{$smarty.server.PHP_SELF}?s={$s}&v={$v}&p={$foo}'>{$foo}</a>
{/foreach} |
<a href="{$smarty.server.PHP_SELF}?s={$s}&v={$v}&p={$maxpage}"><span class="white">{$maxpage}</span></a>
{if $p != $maxpage}<a href='{$smarty.server.PHP_SELF}?s={$s}&v={$v}&p={math equation='p+1' p=$p}'><span class="white">Next &#8250;</span></a>{/if}
<div class="pull-right">
<form>Page&nbsp; <input type="text" name="p" class="gotext" value="{$p}" /><input type="hidden" name="s" value="{$s}" /><input type="hidden" name="v" value="{$v}" /><input type="submit" value="Go" /></form>
</div>
<div class="clear clearfix"></div>
<br /><br />
</div>
<div class='newbrowsepages visible-xs visible-sm hidden-md hidden-lg'>
{if $p != 1}<a href='{$smarty.server.PHP_SELF}?s={$s}&v={$v}&p={math equation='p-1' p=$p}'><span class="white">&#8249; Previous</span></a><a href="{$smarty.server.PHP_SELF}?s={$s}&v={$v}&p=1"><span class="white">1</span></a> | {/if}
<a href="{$smarty.server.PHP_SELF}?s={$s}&v={$v}&p={$maxpage}"><span class="white">{$maxpage}</span></a>
{if $p != $maxpage}<a href='{$smarty.server.PHP_SELF}?s={$s}&v={$v}&p={math equation='p+1' p=$p}'><span class="white">Next &#8250;</span></a>{/if}
<div class="clear clearfix"></div>
<br /><br />
<div class="center">
<form>Page&nbsp; <input type="text" name="p" class="gotext" value="{$p}" /><input type="hidden" name="s" value="{$s}" /><input type="hidden" name="v" value="{$v}" /><input type="submit" value="Go" /></form>
</div>
</div>
{/if}
{/if}
</div>
<div class="clear clearfix"></div>
{literal}<script>
jQuery(function () {
jQuery('[data-toggle="tooltip"]').tooltip()
})
// Initialize popover component
jQuery(function () {
jQuery('.albums_browse_item1').hover(function(){
jQuery(this).find('.kebabdots').show()}, function(){
jQuery(this).find('.kebabdots').hide();
});
jQuery('[data-toggle="popover"]').popover()
});
</script>{/literal}
{include file='footer.tpl'}