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

234 lines
8.4 KiB
Smarty

{include file='header.tpl'}
{* $Id: browse_videos.tpl 13 2009-01-11 06:04:29Z john $ *}
<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>
</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='{$smarty.server.PHP_SELF}?s={$s}&v='+this.options[this.selectedIndex].value;">
<option value="">Select Option ↓</option>
<option value='0'>Everyone's Videos</option>
<option value='3' {if $v==3}class="active" {/if}>Random Videos</option>
<option value='1' {if $v==1}class="active" {/if}>Friends Videos</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}
</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}
<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;"><img src='{$imagecdn1}{$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">
<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;'><a href='{$url->url_create("video", $videos[video_loop].video_author->user_info.user_username, $videos[video_loop].video_id)}'>{$video_title|truncate:33:'...':true}</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> <div class="pull-right" style="font-size: 10px; font-weight:normal;">
{$videos[video_loop].video_views} view{if $videos[video_loop].video_views!=1}s{/if}
</div></div>
</div>
{*
<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>
{include file='footer.tpl'}