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

97 lines
5.4 KiB
Smarty

{include file='imobile_header.tpl'}
<div id="contentlist">
{* $Id: browse_albums.tpl 240 2009-11-14 02:42:57Z phil $ *}
{* DISPLAY PAGINATION MENU IF APPLICABLE *}
{* 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_albums.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_albums.php?s={$s}&v={$v}&p={$foo}'>{$foo}</a>
{/foreach} |
{if $p != $maxpage}<a href='browse_albums.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_albums}
{else}
{lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_albums}
{/if}</span>
</div>
{/if}
<div style="margin-left:auto; margin-right:auto; text-align:center;">
{section name=album_loop loop=$albums}
{* SET ALBUM COVER *}
{if $albums[album_loop].album_cover_id == 0}
{assign var='album_cover_src' value='./images/nophoto.png'}
{else}
{* IF IMAGE, GET THUMBNAIL *}
{if $albums[album_loop].album_cover_ext == "jpeg" || $albums[album_loop].album_cover_ext == "jpg" || $albums[album_loop].album_cover_ext == "gif" || $albums[album_loop].album_cover_ext == "png" || $albums[album_loop].album_cover_ext == "bmp"||$albums[album_loop].album_cover_ext == "JPEG" || $albums[album_loop].album_cover_ext == "JPG" || $albums[album_loop].album_cover_ext == "GIF" || $albums[album_loop].album_cover_ext == "PNG" || $albums[album_loop].album_cover_ext == "BMP"}
{assign var='album_cover_dir' value=$url->url_userdir($albums[album_loop].album_author->user_info.user_id)}
{assign var='album_cover_src' value="`$album_cover_dir``$albums[album_loop].album_cover_id`_thumb.`$albums[album_loop].album_cover_ext`"}
{* SET THUMB PATH FOR AUDIO *}
{elseif $albums[album_loop].album_cover_ext == "mp3" || $albums[album_loop].album_cover_ext == "mp4" || $albums[album_loop].album_cover_ext == "wav"}
{assign var='album_cover_src' value='./images/icons/audio_big.gif'}
{* SET THUMB PATH FOR VIDEO *}
{elseif $albums[album_loop].album_cover_ext == "mpeg" || $albums[album_loop].album_cover_ext == "mpg" || $albums[album_loop].album_cover_ext == "mpa" || $albums[album_loop].album_cover_ext == "avi" || $albums[album_loop].album_cover_ext == "swf" || $albums[album_loop].album_cover_ext == "mov" || $albums[album_loop].album_cover_ext == "ram" || $albums[album_loop].album_cover_ext == "rm"}
{assign var='album_cover_src' value='./images/icons/video_big.gif'}
{* SET THUMB PATH FOR UNKNOWN *}
{else}
{assign var='album_cover_src' value='./images/icons/file_big.gif'}
{/if}
{/if}
<div class='albums_browse_item' style='width: 275px; float: left;margin: 5px;
padding: 5px; '>
<table cellpadding='0' cellspacing='0'>
<tr>
<td style='vertical-align: top;'>
<a href='{$url->url_create('album', $albums[album_loop].album_author->user_info.user_username, $albums[album_loop].album_id)}'><img src='{$album_cover_src}' border='0' width='100' height='100'></a>
</td>
<td style='vertical-align: top; padding-left: 10px;'>
<div style='font-weight: bold; font-size: 13px;'><a href='{$url->url_create('album', $albums[album_loop].album_author->user_info.user_username, $albums[album_loop].album_id)}'>{$albums[album_loop].album_title|truncate:30:"...":true}</a></div>
<div class='album_browse_date'>
{assign var='album_dateupdated' value=$datetime->time_since($albums[album_loop].album_dateupdated)}{capture assign="updated"}{lang_sprintf id=$album_dateupdated[0] 1=$album_dateupdated[1]}{/capture}
{lang_sprintf id=1000172 1=$albums[album_loop].album_files} - {lang_sprintf id=1000124 1=$updated 2=$url->url_create("profile", $albums[album_loop].album_author->user_info.user_username) 3=$albums[album_loop].album_author->user_displayname}
</div>
<div style='margin-top: 10px;'>{$albums[album_loop].album_desc|truncate:55:"...":true}</div>
</td>
</tr>
</table>
</div>
{cycle values=",,<div style='clear: both; height: 0px;'></div>"}
{/section}
<div style='clear: both; height: 0px;'></div>
</div>
{* DISPLAY PAGINATION MENU IF APPLICABLE *}
{* 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_albums.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_albums.php?s={$s}&v={$v}&p={$foo}'>{$foo}</a>
{/foreach} |
{if $p != $maxpage}<a href='browse_albums.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_albums}
{else}
{lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_albums}
{/if}</span>
</div>
{/if}
</div>
{include file='imobile_footer.tpl'}