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

409 lines
8.4 KiB
Smarty

{include file='header.tpl'}
{* $Id: user_album.tpl 134 2009-03-23 00:03:51Z john $ *}
<ul class="nav nav-tabs hidden-xs hidden-sm visible-md visible-lg form-tabs" style="border-bottom:2px solid black;">
<li role="presentation" class="active"><a href="user_videoalbum.php" class="jquerycss">My Video Albums</a></li>
<li role="presentation" ><a href="/tagged_video.php" class="jquerycss">Tagged Videos</a></li>
</ul><br>
<br>
<!--<img src='./images/icons/album_image48.gif' border='0' class='icon_big' />-->
<div class='page_header'><span style="font-size:20pt; font-weight:bold; text-transform:uppercase;">My Videos</span></div>
<div>
You have {$albums_total} albums and {$total_files} videos.
</div>
<div style='margin-top: 20px;'>
<div class='button' style='float: left;'>
<a href="/user_video_upload.php?task=create">Upload Video</a> | <a href='video_album_add.php'><!--<img src='./images/icons/plus16.gif' border='0' class='button'>-->{lang_print id=1000059}</a>
</div>
<div class='button' style='float: left; padding-left: 20px;'>
</div>
<div style='clear: both; height: 0px;'></div>
</div>
{* 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}
{if $albums[album_loop].cloud==1}{assign var='album_cover_src' value="`$imagecdn1``$album_cover_dir``$albums[album_loop].album_cover`_thumb.jpg"}{else}
{assign var='album_cover_src' value="`$imagecdn``$album_cover_dir``$albums[album_loop].album_cover`_thumb.jpg"}
{/if}
{/if}
<div class='album' id='album_{$albums[album_loop].album_id}'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='album_left' width='1'>
<div class='album_photo' style='width: 140px; height: 140px;'>
<table cellpadding='0' cellspacing='0' width='140' height='140'>
<tr>
<td style='width: 140px; height: 140px;'>
<a href='user_videoalbum_update.php?album_id={$albums[album_loop].album_id}'>
<img src='{$album_cover_src}' border='0' style="width: 100%; height: 100%; object-fit: cover;" onerror="this.src='{$imagecdn}images/icons/folder_big.gif'" />
</a>
</td>
</tr>
</table>
</div>
</td>
<td class='album_right' width='100%'>
<div class='album_title'>
<a href='user_videoalbum_update.php?album_id={$albums[album_loop].album_id}'>{$albums[album_loop].album_title|truncate:30:"...":true}</a>
</div>
{if $albums[album_loop].album_desc != ""}
<div style='margin-bottom: 8px;'>{$albums[album_loop].album_desc|truncate:197:"...":true}</div>
{/if}
<div class='album_stats'>
{lang_print id=1000061}
{assign var='album_datecreated' value=$datetime->time_since($albums[album_loop].album_datecreated)}
{lang_sprintf id=$album_datecreated[0] 1=$album_datecreated[1]}
<br />
{if $albums[album_loop].album_dateupdated != 0}
{lang_print id=1000062}
{assign var='album_dateupdated' value=$datetime->time_since($albums[album_loop].album_dateupdated)}
{lang_sprintf id=$album_dateupdated[0] 1=$album_dateupdated[1]}
<br />
{/if}
{* {lang_print id=1000063} {$albums[album_loop].album_files} videos<br />
{lang_print id=1000065} {lang_sprintf id=1000066 1=$albums[album_loop].album_views}<br />
{* lang_print id=1000067} {lang_print id=$albums[album_loop].album_privacy *}
<div class='album_options'>
<div style='float: left;'>
<a href='videoalbum.php?user={$user->user_info.user_username}&album_id={$albums[album_loop].album_id}'>
<!--<img src='./images/icons/album_album16.gif' border='0' class='button' />-->
{lang_print id=1000068}&nbsp;&nbsp;
</a>
</div>
<div style='float: left;'>
<a href='user_videoalbum_update.php?album_id={$albums[album_loop].album_id}'>
<!--<img src='./images/icons/album_edit16.gif' border='0' class='button' />-->
{lang_print id=1000069}&nbsp;&nbsp;
</a>
</div>
<div style='float: left;'>
<a href='javascript:void(0);' onClick="SocialEngine.Album.deleteAlbum({$albums[album_loop].album_id});">
<!--<img src='./images/icons/album_delete16.gif' border='0' class='button' />-->
{lang_print id=1000070}&nbsp;&nbsp;
</a>
</div>
<div class="seAlbumActionMoveup" style='float: left; {if $smarty.section.album_loop.first==true}display:none;{/if}'>
<a href='javascript:void(0);' onclick="SocialEngine.Album.moveupvideoAlbum({$albums[album_loop].album_id});">
<!--<img src='./images/icons/album_moveup16.gif' border='0' class='button' />-->
{lang_print id=1000114}
</a>
</div>
<div style='clear: both; height: 0px;'></div>
</div>
</div>
</td>
</tr>
</table>
</div>
{/section}
<div class="album" id="album_0">
<table cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td class="album_left" width="1">
<div class="album_photo" style="width: 140px; height: 140px;">
<table cellpadding="0" cellspacing="0" width="140" height="140">
<tbody><tr>
<td>
<a href="user_videoalbum_update.php?album_id=0">
<img src="./images/nophoto.png" border="0" width="140">
</a>
</td>
</tr>
</tbody></table>
</div>
</td>
<td class="album_right" width="100%">
<div class="album_title">
<a href="user_videoalbum_update.php?album_id=0">Unsorted Videos</a>
</div>
<div style="margin-bottom: 8px;"></div>
<div class="album_stats">
Files: {$totalnoalbum} videos<br>
<div class="album_options">
<div style="float: left;">
<a href="https://bateworld.com/videoalbum.php?user={$user->user_info.user_username}&amp;album_id=0">
View Album&nbsp;&nbsp;
</a>
</div>
<div style="float: left;">
<a href="user_videoalbum_update.php?album_id=0">
Edit Album&nbsp;&nbsp;
</a>
</div>
<div style="float: left;">
</div>
<div class="seAlbumActionMoveup" style="float: left; display:none;">
</div>
<div style="clear: both; height: 0px;"></div>
</div>
</div>
</td>
</tr>
</tbody></table>
</div>
<div style='clear: both; height: 0px;'></div>
{* IF THERE ARE NO ALBUMS, SHOW NOTE *}
{if $albums_total == 0}
<br />
<table cellpadding='0' cellspacing='0'>
<tr>
<td class='result'>
<!--<img src='./images/icons/bulb16.gif' border='0' class='icon' />-->
You do not have any video albums.
<a href='/video_album_add.php'>Create a video album to begin uploading videos.
</a>
</td>
</tr>
</table>
{/if}
{* JAVASCRIPT *}
{lang_javascript ids=1000054}
<script type="text/javascript" src="./include/js/class_album.js?s=1"></script>
<script type="text/javascript">
<!--
SocialEngine.Album = new SocialEngineAPI.Album();
SocialEngine.RegisterModule(SocialEngine.Album);
//-->
</script>
{* HIDDEN DIV TO DISPLAY CONFIRMATION MESSAGE *}
<div style='display: none;' id='confirmdelete'>
<div style='margin-top: 10px;'>
Are you sure you want to delete this album? Warning: All videos within this album will also be deleted.
</div>
<br />
<input type='button' class='button' value='{lang_print id=175}' onClick='closemodal();parent.SocialEngine.Album.deletevideoAlbumConfirm();' />
<input type='button' class='button' value='{lang_print id=39}' onClick='closemodal();' />
</div>
{include file='footer.tpl'}