{include file='header.tpl'} {* $Id: video.tpl 236 2009-11-13 05:29:23Z phil $ *}
{* VIDEO HEADER - TITLE AND TEXT *}
{$video_info.video_title}{$video_info.video_desc|truncate:100:"...":true}{if $video_info.video_desc|count_characters:true > 100} ({lang_print id=5500101}){/if}{if $video_info.video_desc|count_characters:true > 100}{$video_info.video_desc|nl2br} ({lang_print id=5500027}){/if}
{* SHOW RATING (NOT ALLOWED TO RATE) *}
{if !$allowed_to_rate}
{section name=full_loop start=0 loop=$video_info.video_rating_full}
{* SHOW RATING (ALLOWED TO RATE) *}
{else}
{assign var="rating" value="0"}
{section name=full_loop start=0 loop=$video_info.video_rating_full}
{assign var="rating" value=$rating+1}
{* RATING JAVASCRIPT *}
{literal}
{/literal}
{/if}
{* SHOW STATS *}
{assign var="uploaddate" value=$datetime->time_since($video_info.video_datecreated)}
{capture assign="uploaded"}{$uploaddate[1]}
{if $uploaddate[0]==773}second{if $uploaddate[1]!=1}s{/if} ago
{elseif $uploaddate[0]==774}minutes{if $uploaddate[1]!=1}s{/if} ago
{elseif $uploaddate[0]==775}hour{if $uploaddate[1]!=1}s{/if} ago
{elseif $uploaddate[0]==776}day{if $uploaddate[1]!=1}s{/if} ago
{elseif $uploaddate[0]==777}week{if $uploaddate[1]!=1}s{/if} ago
{elseif $uploaddate[0]==778}month{if $uploaddate[1]!=1}s{/if} ago
{elseif $uploaddate[0]==779}year{if $uploaddate[1]!=1}s{/if} ago
{/if}
{/capture}
{lang_sprintf id=5500024 1=$uploaded}
{lang_sprintf id=5500037 1=$video_info.video_rating_total}
{lang_sprintf id=5500038 1=$video_info.video_views}
{lang_print id=5500147}{if $group->user_rank == 2 || $group->user_rank == 1 || ($media_info.uploader->user_exists && $media_info.uploader->user_info.user_id == $user->user_info.user_id)} - {lang_print id=5500107} - Delete Video{/if}
{if $group->user_rank == 2 || $group->user_rank == 1 || ($media_info.uploader->user_exists && $media_info.uploader->user_info.user_id == $user->user_info.user_id)}
{* JAVASCRIPT FOR CONFIRMING DELETION *}
{literal}
{/literal}{/if}
{* COMMENTS *} {*if $allowed_to_comment*} Comments ({$commentcount|default:0})
|
{lang_sprintf id=5500022 1=$group->group_info.group_title} ({$total_videos})
{* LOOP THROUGH USER VIDEOS *}
{section name=video_loop loop=$videos}
{* ENSURE VIDEO TITLE ISN'T BLANK *}
{if $videos[video_loop].video_title == ""}{capture assign="video_title"}{lang_print id=589}{/capture}{else}{assign var="video_title" value=$videos[video_loop].video_title}{/if}
|