92 lines
6.0 KiB
Smarty
92 lines
6.0 KiB
Smarty
{include file='header.tpl'}
|
|
|
|
{* $Id: album.tpl 2 2009-01-10 20:53:09Z john $ *}
|
|
|
|
<div class='page_header'>
|
|
|
|
|
|
<a href="profile.php?user={$owner->user_info.user_username}">{$owner->user_info.user_username}</a>'s <a href="videoalbums.php?user={$owner->user_info.user_username}">ALBUMS</a> » » <span style="text-transform:capitalize;">{$album_info.album_title}</span>
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
{if $album_info.album_desc != ""}<div>{$album_info.album_desc}</div>{/if}<br>
|
|
<br>
|
|
<a href="videoalbum-playlist.php?user={$owner->user_info.user_username}&album_id={$album_id}">View Album Playlist</a>
|
|
|
|
<div class="clearfix"></div>
|
|
<!--<a href="album-slideshow.php?user={$owner->user_info.user_username}&album_id={$album_info.album_id}">Start slideshow</a>-->
|
|
<div class="clearfix"></div>
|
|
{* DISPLAY PAGINATION MENU IF APPLICABLE *}
|
|
{if $maxpage > 1}
|
|
<div class='browse_pages'>
|
|
{if $p != 1}<a href="{$smarty.server.PHP_SELF}?s={$s}&v={$v}&p=1"><span class="white arrow">«</span></a> <a href='{$smarty.server.PHP_SELF}?album_id={$album_id}&user={$owner->user_info.user_username}&p={math equation='p-1' p=$p}'><span class="white arrow">‹</span></a>{else}<font class='disabled'><span class="white arrow">« ‹</span></font>{/if}
|
|
| {foreach from=$for item=foo}
|
|
<a href='{$smarty.server.PHP_SELF}?album_id={$album_id}&user={$owner->user_info.user_username}&p={$foo}'>{$foo}</a>
|
|
{/foreach} |
|
|
{if $p != $maxpage}<a href='{$smarty.server.PHP_SELF}?album_id={$album_id}&user={$owner->user_info.user_username}&p={math equation='p+1' p=$p}'><span class="white arrow">›</span></a> <a href="{$smarty.server.PHP_SELF}?album_id={$album_id}&user={$owner->user_info.user_username}&p={$maxpage}"><span class="white arrow">»</span></a>{else}<font class='disabled'><span class="white arrow">› »</span></font>{/if}
|
|
<br /><span style="font-weight:normal;">{if $p_start == $p_end}
|
|
{lang_sprintf id=184 1=$p_start 2=$total_files}
|
|
{else}
|
|
{lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_files}
|
|
{/if}</span><br />
|
|
|
|
<form>Go to Page: <input type="text" name="p" class="gotext" /><input type="hidden" name="user" value="{$owner->user_info.user_username}" /><input type="hidden" name="album_id" value="{$album_id}" /><input type="submit" value="Go" /></form>
|
|
</div>
|
|
{/if}
|
|
|
|
<div class="insidesearch">
|
|
|
|
{* SHOW FILES IN THIS ALBUM *}
|
|
{section name=video_loop loop=$files}
|
|
|
|
{* ENSURE VIDEO TITLE ISN'T BLANK *}
|
|
{if $files[video_loop].video_title == ""}{capture assign="video_title"}{lang_print id=589}{/capture}{else}{assign var="video_title" value=$files[video_loop].video_title}{/if}
|
|
|
|
<div class='videoTab col-md-3'>
|
|
<table cellpadding='0' cellspacing='0'>
|
|
<tr>
|
|
<td style='vertical-align: top;'>
|
|
<a href='{$url->url_create("video", $files[video_loop].video_author->user_info.user_username, $files[video_loop].video_id)}'><img src='{if $files[video_loop].cloud==1}{$imagecdn1}{else}{$imagecdn}{/if}{$files[video_loop].video_dir}{$files[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", $files[video_loop].video_author->user_info.user_username, $files[video_loop].video_id)}'>{$video_title|truncate:55:'...':true}</a></div>
|
|
<div class='video_row_info' style=" color:#777777;"><a href="profile.php?user={$files[video_loop].video_author->user_info.user_username}">{$files[video_loop].video_author->user_info.user_displayname}</a><br />
|
|
{lang_sprintf id=5500023 1=$files[video_loop].total_comments} - {lang_sprintf id=5500070 1=$files[video_loop].video_views}</div>
|
|
<div>
|
|
{section name=full_loop start=0 loop=$files[video_loop].video_rating_full}
|
|
<!--<img src='./images/icons/video_rating_full_small.gif' border='0'>-->
|
|
{/section}
|
|
{if $files[video_loop].video_rating_part}<!--<img src='./images/icons/video_rating_part_small.gif' border='0'>-->{/if}
|
|
{section name=none_loop start=0 loop=$files[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>
|
|
|
|
<div class="clearfix"></div>
|
|
<div style="height:10px;"></div>
|
|
{* DISPLAY PAGINATION MENU IF APPLICABLE *}
|
|
{if $maxpage > 1}
|
|
<div class='browse_pages'>
|
|
{if $p != 1}<a href="{$smarty.server.PHP_SELF}?s={$s}&v={$v}&p=1"><span class="white arrow">«</span></a> <a href='{$smarty.server.PHP_SELF}?album_id={$album_id}&user={$owner->user_info.user_username}&p={math equation='p-1' p=$p}'><span class="white arrow">‹</span></a>{else}<font class='disabled'><span class="white arrow">« ‹</span></font>{/if}
|
|
| {foreach from=$for item=foo}
|
|
<a href='{$smarty.server.PHP_SELF}?album_id={$album_id}&user={$owner->user_info.user_username}&p={$foo}'>{$foo}</a>
|
|
{/foreach} |
|
|
{if $p != $maxpage}<a href='{$smarty.server.PHP_SELF}?album_id={$album_id}&user={$owner->user_info.user_username}&p={math equation='p+1' p=$p}'><span class="white arrow">›</span></a> <a href="{$smarty.server.PHP_SELF}?album_id={$album_id}&user={$owner->user_info.user_username}&p={$maxpage}"><span class="white arrow">»</span></a>{else}<font class='disabled'><span class="white arrow">› »</span></font>{/if}
|
|
<br /><span style="font-weight:normal;">{if $p_start == $p_end}
|
|
{lang_sprintf id=184 1=$p_start 2=$total_files}
|
|
{else}
|
|
{lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_files}
|
|
{/if}</span><br />
|
|
|
|
<form>Go to Page: <input type="text" name="p" class="gotext" /><input type="hidden" name="user" value="{$owner->user_info.user_username}" /><input type="hidden" name="album_id" value="{$album_id}" /><input type="submit" value="Go" /></form>
|
|
</div>
|
|
{/if}
|
|
|
|
{include file='footer.tpl'} |