Files
Testing/leptesting/imobile_browse_user_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

86 lines
3.9 KiB
Smarty

{include file='imobile_header.tpl'}
<div id="contentlist">
{* $Id: browse_videos.tpl 13 2009-01-11 06:04:29Z john $ *}
{* DISPLAY PAGINATION MENU IF APPLICABLE *}
{if $maxpage > 1}
<div class='browse_pages' style="margin-left:auto; margin-right:auto; text-align:center;">
{if $p != 1}<a href='browse_videos.php?s={$s}&v={$v}&p={math equation='p-1' p=$p}'>&#171; {lang_print id=182}</a>{else}<font class='disabled'>&#171; {lang_print id=182}</font>{/if}
| {foreach from=$for item=foo}
<a href='browse_videos.php?s={$s}&v={$v}&p={$foo}'>{$foo}</a>
{/foreach} |
{if $p != $maxpage}<a href='browse_videos.php?s={$s}&v={$v}&p={math equation='p+1' p=$p}'>{lang_print id=183} &#187;</a>{else}<font class='disabled'>{lang_print id=183} &#187;</font>{/if}
<br /><span style="font-weight:normal;">{if $p_start == $p_end}
{lang_sprintf id=184 1=$p_start 2=$total_videos}
{else}
{lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_videos}
{/if}</span>
</div>
{/if}
<div>
{section name=video_loop loop=$videos}
{* 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='videoTab' style='width: 275px;'>
<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].video_thumb}{$videos[video_loop].video_dir}{$videos[video_loop].video_id}_thumb.jpg{else}./images/video_placeholder.gif{/if}' border='0' width='{$setting.setting_video_thumb_width}' height='{$setting.setting_video_thumb_height}'></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 />
{lang_sprintf id=5500023 1=$videos[video_loop].total_comments} - {lang_sprintf id=5500070 1=$videos[video_loop].video_views}</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 style='clear: both; height: 0px;'></div>
</div>
{if $maxpage > 1}
<div class='browse_pages' style="margin-left:auto; margin-right:auto; text-align:center;">
{if $p != 1}<a href='browse_videos.php?s={$s}&v={$v}&p={math equation='p-1' p=$p}'>&#171; {lang_print id=182}</a>{else}<font class='disabled'>&#171; {lang_print id=182}</font>{/if}
| {foreach from=$for item=foo}
<a href='browse_videos.php?s={$s}&v={$v}&p={$foo}'>{$foo}</a>
{/foreach} |
{if $p != $maxpage}<a href='browse_videos.php?s={$s}&v={$v}&p={math equation='p+1' p=$p}'>{lang_print id=183} &#187;</a>{else}<font class='disabled'>{lang_print id=183} &#187;</font>{/if}
<br /><span style="font-weight:normal;">{if $p_start == $p_end}
{lang_sprintf id=184 1=$p_start 2=$total_videos}
{else}
{lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_videos}
{/if}</span>
</div>
{/if}
</div>
{include file='imobile_footer.tpl'}