clipbucket/upload/styles/cb_2014/layout/blocks/video.html

94 lines
4.1 KiB
HTML
Raw Normal View History

2014-02-07 13:26:05 +00:00
{if $cur_class==''}
{assign var=cur_class value=$smarty.cookies.current_style}
{/if}
{if $display_type =='normal' || $display_type==''}
<!-- Video Box -->
<div id="vid_wrap_{$video.videoid}" class="col-md-6 text-center">
<div class="row">
<div class="col-md-10 col-md-offset-1 well">
<div class="vid_thumb">
<a href="{videoLink vdetails=$video}">
<img src="{getThumb vdetails=$video}" class="img-thumbnail" title="{$video.title}" alt="{$video.title}" data=$video} />
</a>
<p class="vid_time">{$video.duration|SetTime}</p>
{if $video.broadcast=='private'}
<a href="{videoLink vdetails=$video}"><span class="private_video">&nbsp;</span></a>
{/if}
{ANCHOR place='in_video_thumb' data=$video}
</div>
<div class="">
<h4 class="">
<a href="{videoLink vdetails=$video}" title="{$video.title}">{$video.title|truncate:40}</a>
</h4>
<span>
{show_rating class='rating' rating=$video.rating ratings=$video.rated_by total='10' }
</span>
<p id="desc" class="vid_info">{$video.description|description|truncate:100}</p>
<p class="vid_info">{$video.views} View(<strong>s</strong>) <span class="list_commnets"> | {$video.comments_count} Comment(<strong>s</strong>)</span></p>
<p class="vid_info"><span class="info_list">Uploaded By </span><a href="{$userquery->profile_link($video)}">{$video.username}</a> <span class="list_up_time">({$video.date_added|niceTime})</span></p>
</div>
</div>
</div>
</div>
2014-02-07 13:26:05 +00:00
{if $only_once}
<div class="clearfix"></div>
{/if}
<!-- Video Box -->
{/if}
{if $display_type == "channel_page"}
<li class="itemBox" onclick="loadObject(this,'videos','{$video.videoid}','viewingArea')">
<div align="center"><img src="{getThumb vdetails=$video}" alt="{$video.title}" width="110" height="64" /></div>
</li> <!-- itemBox {$video.videokey} end -->
{/if}
{if $display_type=='add_type'}
<div class="vertical">
<div class="video_thumb">
{ANCHOR place='in_video_thumb' data=$video}
<label for="check_video_{$video.videoid}"><img src="{getThumb vdetails=$video}" width="110" height="66" border="0" /></label>
{if $check_type=='array'}
<input type="checkbox" name="check_video[]" id="check_video_{$video.videoid}" style="position:absolute; bottom:0px; left:0px" {if $check_this} checked="checked"{/if} value="{$video.videoid}" />
{else}
<input type="checkbox" name="check_video_{$video.videoid}" id="check_video_{$video.videoid}" style="position:absolute; bottom:0px; left:0px" {if $check_this} checked="checked"{/if} value="yes" />
{/if}
<div class="duration">{$video.duration|SetTime}</div>
</div> <!--VIDEO_THUMB END-->
<div class="details_block">
<div class="lvl1 clearfix">
<div class="title"><a href="{videoLink vdetails=$video}">{$video.title|truncate:30}</a></div>
{show_rating class='rating' rating=$video.rating ratings=$video.rated_by total='10'}
</div> <!--LVL1 END-->
<div class="lvl2 clearfix">
<div class="desc">{$video.description|description|strip_tags|truncate:100}</div>
<div class="length">Time: <span>{$video.duration|SetTime:false}</span></div>
</div> <!--LVL2 END-->
<div class="lvl3 clearfix">
<div class="views"><span>{$video.views}</span> view(<strong>s</strong>)</div>
</div> <!--LVL3 END-->
<div class="lvl4 clearfix">
<div class="uploaded">
<a href="{$userquery->profile_link($video)}">{$video.username}</a>
</div>
</div> <!--LVL4 END-->
</div> <!--DETAILS_BLOCK END-->
<div class="clearfix"></div>
</div>
{if $only_once}
<div class="clearfix"></div>
{/if}
{/if}