2016-03-16 17:30:07 +05:00
|
|
|
{$myAccountLinks = $userquery->my_account_links()}
|
|
|
|
{$leftMenuLinks = array_slice($myAccountLinks, 7)}
|
2016-04-04 11:22:32 +05:00
|
|
|
<div id="main" class="clearfix container">
|
|
|
|
<div class="clearfix">
|
|
|
|
<section id="content" class="clearfix">
|
|
|
|
<div class="clearfix leaderboard-ad ad">
|
|
|
|
{AD place='ad_728x90'}
|
|
|
|
</div>
|
|
|
|
{assign var=sorting_links value=sorting_links()}
|
|
|
|
<div class="filter-dropdowns clearfix">
|
|
|
|
<div class="cat-col col-lg-6 col-md-6 col-sm-6 col-xs-12 clearfix">
|
|
|
|
{include file="$style_dir/blocks/category_list.html"}
|
2016-04-04 14:20:39 +05:00
|
|
|
<a class="btn btn-default" href="{$baseurl}/manage_collections.php?mode=add_new">{lang code='add_new_collection'}</a>
|
2016-04-04 11:22:32 +05:00
|
|
|
</div>
|
|
|
|
<div class="sorting-col col-lg-6 col-md-6 col-sm-6 col-xs-12 clearfix">
|
2016-03-16 17:30:07 +05:00
|
|
|
<!--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)}
|
2016-04-04 11:22:32 +05:00
|
|
|
<a href="javascript:void(0)" data-toggle="dropdown" class="dropdown-toggle">{$name} <span class="icon-down-arrow"></span></a>
|
2016-03-16 17:30:07 +05:00
|
|
|
{/if}
|
|
|
|
{/foreach}
|
|
|
|
{else}
|
2016-04-04 11:22:32 +05:00
|
|
|
<a href="javascript:void(0)" data-toggle="dropdown" class="dropdown-toggle">Recent <span class="icon-down-arrow"></span></a>
|
2016-03-16 17:30:07 +05:00
|
|
|
{/if}
|
2016-04-04 11:22:32 +05:00
|
|
|
|
2016-03-16 17:30:07 +05:00
|
|
|
<ul class="dropdown-menu">
|
|
|
|
{foreach from=$sorting_links item=name key=sort}
|
|
|
|
<li>
|
2016-04-04 11:22:32 +05:00
|
|
|
<a href="{link name=sort sort=$sort type=collections}&sorting=sort" {if $smarty.get.sort==$sort} class="selected" {/if}>{if $smarty.get.sort==$sort}{/if}{$name}</a>
|
2016-03-16 17:30:07 +05:00
|
|
|
</li>
|
|
|
|
{/foreach}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2016-04-04 11:22:32 +05:00
|
|
|
|
2016-03-16 17:30:07 +05:00
|
|
|
<!--Sorting By time-->
|
|
|
|
{assign var=time_links value=time_links()}
|
|
|
|
<div class="dropdown">
|
|
|
|
{if $smarty.get.time}
|
2016-04-04 11:22:32 +05:00
|
|
|
|
2016-03-16 17:30:07 +05:00
|
|
|
{foreach from=$time_links item=name key=sort name=times}
|
|
|
|
{if $smarty.get.time==$sort && isset($smarty.get.time)}
|
2016-04-04 11:22:32 +05:00
|
|
|
<a href="javascript:void(0)" data-toggle="dropdown" class="dropdown-toggle">{$name} <span class="icon-down-arrow"></span></a>
|
2016-03-16 17:30:07 +05:00
|
|
|
{/if}
|
|
|
|
{/foreach}
|
|
|
|
{else}
|
2016-04-04 11:22:32 +05:00
|
|
|
<a href="javascript:void(0)" data-toggle="dropdown" class="dropdown-toggle">all time <span class="icon-down-arrow"></span></a>
|
2016-03-16 17:30:07 +05:00
|
|
|
{/if}
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
{foreach from=$time_links item=name key=sort name=times}
|
|
|
|
<li>
|
2016-04-04 11:22:32 +05:00
|
|
|
<a href="{link name=time sort=$sort type=collections}&timing=time" {if $smarty.get.time==$sort} class="selected"{/if}>{if $smarty.get.time==$sort}{/if}{$name}</a>
|
2016-03-16 17:30:07 +05:00
|
|
|
</li>
|
|
|
|
{/foreach}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-04-04 11:22:32 +05:00
|
|
|
<!-- /Page Heading -->
|
|
|
|
<div class="collections clearfix">
|
|
|
|
<div class="row clearfix">
|
2016-03-16 17:30:07 +05:00
|
|
|
{section name=c_list loop=$collections}
|
2016-04-04 11:22:32 +05:00
|
|
|
<div class="clearfix collection-item col-lg-4 col-md-4 col-sm-4 col-xs-6">
|
2016-03-16 17:30:07 +05:00
|
|
|
{include file="$style_dir/blocks/collection.html" collection=$collections[c_list]}
|
|
|
|
</div>
|
|
|
|
{sectionelse}
|
|
|
|
{lang code='no_results_found'}
|
|
|
|
{/section}
|
2016-04-04 11:22:32 +05:00
|
|
|
</div>
|
2016-03-16 17:30:07 +05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div align="center" class="clearfix"><!--Pagination-->
|
|
|
|
{include file="$style_dir/blocks/pagination.html"}
|
|
|
|
</div><!-- Pagination-->
|
|
|
|
</section>
|
2016-04-04 11:22:32 +05:00
|
|
|
<aside id="sidebar">
|
|
|
|
<div class="box-ad ad">{AD place='ad_300x250'}</div>
|
|
|
|
{$row = $myquery->Get_Website_Details()}
|
|
|
|
{if $row.collectionsSection == 'yes'}
|
|
|
|
{$collections = $cbcollection->get_collections(['limit'=>5, 'active'=>'yes'])}
|
|
|
|
<h2>{lang code="Top Collections"}</h2>
|
|
|
|
<div class="clearfix sidebar-items collections-grid">
|
|
|
|
<div class="clearfix row">
|
|
|
|
{$limit=10}
|
|
|
|
{if $collections}
|
|
|
|
{foreach from=$collections item=collection}
|
|
|
|
{$first_col_thumb = $cbcollection->coll_first_thumb($collection,'l')}
|
|
|
|
<div class="clearfix collection-item col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
|
|
|
<div class="collection-holder">
|
|
|
|
<div class="photo-block">
|
2016-04-04 17:42:51 +05:00
|
|
|
<a href="{$baseurl}/view_collection.php?cid={$collection.collection_id}&type={$collection.type}" title="{$collection.collection_name}">
|
2016-04-04 11:22:32 +05:00
|
|
|
<img alt="{$collection.title}" title="{$collection.title}" class="img-responsive" id="photo_{$collection.ci_id}" src="{$first_col_thumb}">
|
|
|
|
<div class="collection-info">
|
|
|
|
<span>{$collection.total_objects}</span>Photo(s)
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<img src="{$theme}/images/photo-bg.png" alt="" class="photo-bg">
|
|
|
|
</div>
|
|
|
|
<span class="title">{$collection.collection_name}</span>
|
|
|
|
</div>
|
|
|
|
{/foreach}
|
|
|
|
</div>
|
|
|
|
{else}
|
|
|
|
<div class="well well-info">No Collection</div>
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
</aside>
|
2016-03-16 17:30:07 +05:00
|
|
|
</div>
|
|
|
|
</div>
|