156 lines
5.4 KiB
Smarty
156 lines
5.4 KiB
Smarty
|
|
{literal}<style>
|
||
|
|
.albums_browse_item1 {
|
||
|
|
|
||
|
|
width: 258px;
|
||
|
|
|
||
|
|
}
|
||
|
|
</style>{/literal}
|
||
|
|
{* $Id: profile_video_tab.tpl 143 2009-03-26 09:48:12Z szerrade $ *}
|
||
|
|
|
||
|
|
{* BEGIN VIDEOS *}
|
||
|
|
{if ($user->level_info.level_video_allow != 0 || $owner->level_info.level_youtube_allow != 0) && $total_videos > 0}
|
||
|
|
|
||
|
|
|
||
|
|
<div class='profile_headline'>Videos
|
||
|
|
{* {lang_print id=5500098} ({$total_videos}) *}
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
{section name=album_loop loop=$videos}
|
||
|
|
|
||
|
|
{* SET ALBUM COVER *}
|
||
|
|
{if $video_album_array[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=$video_album_array[album_loop].video_dir}
|
||
|
|
|
||
|
|
{if $video_album_array[album_loop].cloud==1}
|
||
|
|
{assign var='album_cover_src' value="`$imagecdn1``$album_cover_dir``$video_album_array[album_loop].album_cover`_thumb.jpg"}
|
||
|
|
{else}
|
||
|
|
{assign var='album_cover_src' value="`$imagecdn``$album_cover_dir``$video_album_array[album_loop].album_cover`_thumb.jpg"}
|
||
|
|
{/if}
|
||
|
|
|
||
|
|
{/if}
|
||
|
|
|
||
|
|
|
||
|
|
<div class="albums_browse_item1 col-sm-3">
|
||
|
|
<div class="albums_browse_item1_img">
|
||
|
|
|
||
|
|
|
||
|
|
<a href="video.php?user={$owner->user_info.user_username}&video_id={$videos[album_loop].video_id}" style="position:relative;height: 100%; display: block;"><img src="{$imagecdn1}{$videos[album_loop].video_dir}{$videos[album_loop].video_id}_thumb.jpg" onerror="this.src='https://cdn.bateworld.com/images/video_placeholder.gif'" border="0" class="hover videothumbnails">
|
||
|
|
<span style="position: absolute;right: -1px;bottom: 0px;background: black;padding: 5px; color:white;">{$videos[album_loop].video_duration_in_min}</span>
|
||
|
|
|
||
|
|
|
||
|
|
</a>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<div style="font-weight: bold; font-size: 13px; margin-top:5px;"><a href="video.php?user={$owner->user_info.user_username}&video_id={$videos[album_loop].video_id}">{$videos[album_loop].video_title|truncate:30:"...":true}</a><div class="pull-right" style="font-size: 10px; font-weight:normal;">
|
||
|
|
{$videos[album_loop].video_views} view{if $videos[album_loop].video_views!=1}s{/if} </div></div>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
{/section}
|
||
|
|
{if SE_DEBUG==3}
|
||
|
|
{section name=album_loop loop=$video_album_array}
|
||
|
|
|
||
|
|
{* SET ALBUM COVER *}
|
||
|
|
{if $video_album_array[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=$video_album_array[album_loop].video_dir}
|
||
|
|
|
||
|
|
{if $video_album_array[album_loop].cloud==1}
|
||
|
|
{assign var='album_cover_src' value="`$imagecdn1``$album_cover_dir``$video_album_array[album_loop].album_cover`_thumb.jpg"}
|
||
|
|
{else}
|
||
|
|
{assign var='album_cover_src' value="`$imagecdn``$album_cover_dir``$video_album_array[album_loop].album_cover`_thumb.jpg"}
|
||
|
|
{/if}
|
||
|
|
|
||
|
|
{/if}
|
||
|
|
|
||
|
|
|
||
|
|
<div class='videoTab col-md-5' id='album_{$video_album_array[album_loop].album_id}'>
|
||
|
|
<table cellpadding='0' cellspacing='0' width='100%'>
|
||
|
|
<tr>
|
||
|
|
<td class='album_left'>
|
||
|
|
<div class='album_photo' style='width: 140px; height: 140px;'>
|
||
|
|
<table cellpadding='0' cellspacing='0'>
|
||
|
|
<tr>
|
||
|
|
<td style='width: 140px; height: 140px;'>
|
||
|
|
<a href="videoalbum.php?user={$owner->user_info.user_username}&album_id={$video_album_array[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="videoalbum.php?user={$owner->user_info.user_username}&album_id={$video_album_array[album_loop].album_id}">{$video_album_array[album_loop].album_title|truncate:30:"...":true}</a>
|
||
|
|
</div>
|
||
|
|
{if $video_album_array[album_loop].album_desc != ""}
|
||
|
|
<div style='margin-bottom: 8px;'>{$video_album_array[album_loop].album_desc|truncate:197:"...":true}</div>
|
||
|
|
{/if}
|
||
|
|
<div class='album_stats'>
|
||
|
|
{if $video_album_array[album_loop].album_dateupdated != 0}
|
||
|
|
{lang_print id=1000062}
|
||
|
|
{assign var='album_dateupdated' value=$datetime->time_since($video_album_array[album_loop].album_dateupdated)}
|
||
|
|
{lang_sprintf id=$album_dateupdated[0] 1=$album_dateupdated[1]}
|
||
|
|
<br />
|
||
|
|
{/if}
|
||
|
|
|
||
|
|
|
||
|
|
</div>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
{/section}
|
||
|
|
|
||
|
|
<div class='videoTab col-md-5' 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="videoalbum.php?user={$owner->user_info.user_username}&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="videoalbum.php?user={$owner->user_info.user_username}&album_id=0">Unsorted Videos</a>
|
||
|
|
</div>
|
||
|
|
<div style="margin-bottom: 8px;"></div>
|
||
|
|
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</tbody></table>
|
||
|
|
</div>
|
||
|
|
{/if}
|
||
|
|
<div style='clear: both; height: 0px;'></div>
|
||
|
|
|
||
|
|
|
||
|
|
{/if}
|