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

82 lines
2.8 KiB
Smarty

{include file='header.tpl'}
{* $Id: albums.tpl 2 2009-01-10 20:53:09Z john $ *}
<div class='page_header'>
{lang_sprintf id=1000138 1=$url->url_create('profile', $owner->user_info.user_username) 2=$owner->user_displayname}
</div>
{* SHOW NO ALBUMS NOTICE *}
{if $total_albums == 0}
<table cellpadding='0' cellspacing='0'>
<tr><td class='result'>
<!--<img src='./images/icons/bulb22.gif' border='0' class='icon'>-->
{lang_sprintf id=1000139 1=$owner->user_displayname}
</td></tr>
</table>
{/if}
{* LOOP THROUGH ALBUMS *}
{section name=album_loop loop=$albums}
{* SET ALBUM COVER *}
{if $albums[album_loop].album_cover == 0}
{assign var='album_cover_src' value='./images/nophoto.png'}
{else}
{* IF IMAGE, GET THUMBNAIL *}
{assign var='album_cover_dir' value=$albums[album_loop].video_dir}
{assign var='album_cover_src' value="`$album_cover_dir``$albums[album_loop].album_cover`_thumb.jpg"}
{/if}
<div class='album' style='width: 500px;'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='album_left' width='1'>
<div class='album_photo' style='width: 140px; height: 140px;'>
<a href='videoalbum.php?user={$owner->user_info.user_username}&album_id={$albums[album_loop].album_id}'><img src='{$album_cover_src}' border='0' width='{$misc->photo_size($album_cover_src,'140','140','w')}'></a></div>
</div>
</td>
<td class='album_right'>
<div class='album_title'>
<a href='videoalbum.php?user={$owner->user_info.user_username}&album_id={$albums[album_loop].album_id}'>{$albums[album_loop].album_title|truncate:30:"...":true}</a>
{if $albums[album_loop].album_dateupdated != 0}
<div class='album_stats'>
{assign var="album_dateupdated" value=$datetime->time_since($albums[album_loop].album_dateupdated)}
{capture assign="dateupdated"}{lang_sprintf id=$album_dateupdated[0] 1=$album_dateupdated[1]}{/capture}
{lang_sprintf id=1000140 1=$dateupdated}
</div>
{/if}
</div>
<div style='margin-bottom: 8px;'>
{$albums[album_loop].album_desc}
</div>
</td>
</tr>
</table>
</div>
{/section}
<div class="album" style="width: 500px;">
<table cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td class="album_left" width="1">
<div class="album_photo" style="width: 140px; height: 140px;">
<a href="videoalbum.php?user={$owner->user_info.user_username}&amp;album_id=0"><img src="./images/icons/folder_big.gif" border="0" width="140"></a></div>
</td>
<td class="album_right">
<div class="album_title">
<a href="videoalbum.php?user={$owner->user_info.user_username}&amp;album_id=0">Unsorted Videos</a>
</div>
<div style="margin-bottom: 8px;">
</div>
</td>
</tr>
</tbody></table>
</div>
{include file='footer.tpl'}