clipbucket/upload/styles/cb_28/layout/videos.html
2016-03-17 19:38:37 +05:00

79 lines
No EOL
3.2 KiB
HTML

{$myAccountLinks = $userquery->my_account_links()}
{$leftMenuLinks = array_slice($myAccountLinks, 7)}
<div id="main" class="clearfix container">
<div class="clearfix leaderboard-ad ad">
{AD place='ad_728x90'}
</div>
<div class="clearfix">
<section class="clearfix inner-block videos">
<header class="heading clearfix">
{assign var=sorting_links value=sorting_links()}
<h1>{if $smarty.get.cat == 'all' || $smarty.get.cat == ''}{lang code="Browsing All Categories"}
{elseif $smarty.get.seo_cat_name != ''} Browsing <span>{$smarty.get.seo_cat_name}</span> Category {else}
{$cat_name = $cbvid->get_category_name($smarty.get.cat)}
Browsing Category {$cat_name.category_name} {/if}<i class="icon-arrow-right"></i></h1>
<div class="dropdowns clearfix">
<!--Sorting By View-->
<div class="dropdown">
{if $smarty.get.sort}
{foreach from=$sorting_links item=name key=sort name=sorts}
{if $smarty.get.sort==$sort && isset($smarty.get.sort)}
<a href="javascript:void(0)" data-toggle="dropdown" class="dropdown-toggle">{$name} <span class="icon-arrow-down"></span></a>
{/if}
{/foreach}
{else}
<a href="javascript:void(0)" data-toggle="dropdown" class="dropdown-toggle">Recent <span class="icon-arrow-down"></span></a>
{/if}
<ul class="dropdown-menu">
{foreach from=$sorting_links item=name key=sort}
<li>
<a href="{link name=sort sort=$sort type=videos}&sorting=sort" {if $smarty.get.sort==$sort} class="selected" {/if}>{if $smarty.get.sort==$sort}<i class="icon-check"></i>{/if}{$name}</a>
</li>
{/foreach}
</ul>
</div>
<!--Sorting By time-->
{assign var=time_links value=time_links()}
<div class="dropdown">
{if $smarty.get.time}
{foreach from=$time_links item=name key=sort name=times}
{if $smarty.get.time==$sort && isset($smarty.get.time)}
<a href="javascript:void(0)" data-toggle="dropdown" class="dropdown-toggle">{$name} <span class="icon-arrow-down"></span></a>
{/if}
{/foreach}
{else}
<a href="javascript:void(0)" data-toggle="dropdown" class="dropdown-toggle">all time <span class="icon-arrow-down"></span></a>
{/if}
<ul class="dropdown-menu">
{foreach from=$time_links item=name key=sort name=times}
<li>
<a href="{link name=time sort=$sort type=videos}&timing=time" {if $smarty.get.time==$sort} class="selected"{/if}>{if $smarty.get.time==$sort}<i class="icon-check"></i>{/if}{$name}</a>
</li>
{/foreach}
</ul>
</div>
</div>
</header>
<div class="clearfix videos-block">
{*{$limit = ''}
{$featured=$cbvid->get_videos(["featured"=>"yes","limit"=>$limit])}*}
{if $videos}
{foreach $videos as $video}
<div class="video-block col-lg-3 col-md-3 col-sm-4 col-xs-6">
{include file="$style_dir/blocks/videos/video.html" display_type='homeVideos'}
</div>
{/foreach}
{else}
<div class="well well-info">No Videos Found !</div>
{/if}
</div>
</section>
<!-- videos ended -->
<!--Pagination-->
{include file="$style_dir/blocks/pagination.html"}
<!-- /Pagination-->
</div>
</div>