responsive video block

This commit is contained in:
IMRAN HASSAN 2014-09-19 15:29:36 +00:00
parent d575e89632
commit da67ce66d6
3 changed files with 5 additions and 23 deletions

View file

@ -5,7 +5,6 @@
{if $display_type =='normal' || $display_type==''}
<!-- Video Box -->
<div class="col-md-3">
<a href="{videoLink($video)}" title="{$video.title|title}">
<img src="{getThumb vdetails=$video size='big'}" width="203" height="115" id="thumbs_{$video.videoid}" title=""/></a>
<p class="duration1"><b class="color" style="position: absolute;right: 15px;margin-right: -39px;">{if
@ -14,7 +13,6 @@
<small class="font1 new1"><b>{lang code='views'} :{$video.views}</b></small>
<small class="font2 new1"><b>{$video.date_added|niceTime}</b></small>
<hr>
</div>

View file

@ -1,21 +1,4 @@
<!--<div class="item_video">
<div class="cb_item_container clearfix">
<div class="cb_item_thumb video_thumb" >
<a href="{videoLink($video)}" title="{$video.title|title}">
<span class="video_duration">{if
$video.duration>1}{$video.duration|SetTime}{else}00:00{/if}{*$video.duration|date_format:$config.time*}</span>
<img class="" src="{getThumb vdetails=$video}" border="1" height="140" width="200" style="width: 100%;"/>
</a>
</div>
<div class="item_text" style="height: 45px; overflow: hidden;">
<a href="{videoLink($video)}"><b>{$video.title|truncate:30}</b></a>
</div>
<span class="pull-left" style="margin-top: -31px;"><h5><small>{$video.views} views</small></h5></span>
<span class="pull-right" style="margin-top: -31px;"><h5><small>{$video.date_added|niceTime}</small></h5></span>
</div>
</div>-->
{if $display_type=''}
{if $display_type=='normal' || $display_type==''}
<div class="item_video">
<div class="cb_item_container clearfix">
<div class="cb_item_thumb video_thumb" >
@ -33,7 +16,8 @@
</div>
</div>
{/if}
{if $display_type='user_videos'}
{if $display_type=='user_videos'}
<div class="col-md-3 col-sm-4 col-xs-6">
<a href="{videoLink($video)}" title="{$video.title|title}">
<img src="{getThumb vdetails=$video}" id="thumbs_{$video.videoid}" title=""/>

View file

@ -96,8 +96,8 @@
<div class="" style="margin-left: -15px;">
{if $videos}
{foreach $videos as $video}
<div class="col-md-3 marginBottom grid_view list_view nopadding-right">
{include file="$style_dir/blocks/videos/video.html"}
<div class="col-md-3 col-sm-4 col-xs-6 marginBottom grid_view list_view nopadding-right">
{include file="$style_dir/blocks/videos/video.html" display_type='normal'}
</div>
{/foreach}
{else}