2016-03-16 17:30:07 +05:00
{$myAccountLinks = $userquery->my_account_links()}
{$leftMenuLinks = array_slice($myAccountLinks, 6)}
2016-03-28 20:07:51 +05:00
< div id = "main" class = "clearfix container" >
2016-05-13 15:26:52 +05:00
{if !function_exists('server_thumb')}
< div class = "alert alert-warning" > Kindly install < strong > Server Thumb< / strong > plugin by going to < strong > < a href = "{$baseurl}/admin_area/plugin_manager.php" > Plugin Manager< / a > to make photos show properly< / strong > < / div >
{/if}
2016-03-28 20:07:51 +05:00
< div class = "clearfix" >
2016-04-07 15:22:30 +05:00
< section id = "content" class = "clearfix photos" >
2016-03-28 20:07:51 +05:00
< 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 = "sorting-col 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}
< ul class = "dropdown-menu" >
{foreach from=$sorting_links item=name key=sort}
< li >
2016-04-14 19:51:14 +05:00
< a href = "{link name=sort sort=$sort type=photos}&sorting=sort" { if $ smarty . get . sort = =$sort} class = "selected" { / if } > {if $smarty.get.sort==$sort}< i class = "icon-tick" > < / i > {/if}{$name}< / a >
2016-03-16 17:30:07 +05:00
< / li >
{/foreach}
< / ul >
< / div >
2016-03-28 20:07:51 +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}
{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-14 19:51:14 +05:00
< a href = "{link name=time sort=$sort type=photos}&timing=time" { if $ smarty . get . time = =$sort} class = "selected" { / if } > {if $smarty.get.time==$sort}< i class = "icon-tick" > < / i > {/if}{$name}< / a >
2016-03-16 17:30:07 +05:00
< / li >
{/foreach}
< / ul >
< / div >
< / div >
2016-03-28 20:07:51 +05:00
< / div >
2016-03-16 17:30:07 +05:00
<!-- /Page Heading -->
< div class = "clearfix row" >
2016-03-28 20:07:51 +05:00
{if $photos}
{foreach from=$photos item=p_list}
2016-04-07 15:22:30 +05:00
< div class = "item-photo col-lg-4 col-md-4 col-sm-6 col-xs-12" >
2016-04-04 14:20:39 +05:00
{include file="$style_dir/blocks/photo.html" photo=$p_list display_type = "default_photo"}
2016-03-28 20:07:51 +05:00
< / div >
{/foreach}
{else}
< div class = "well well-info" > {lang code='no_results_found'}< / div >
{/if}
2016-03-16 17:30:07 +05:00
< / div >
< div align = "center" class = "clearfix" >
{include file="$style_dir/blocks/pagination.html"}
< / div >
2016-03-28 20:07:51 +05:00
< / section >
< aside id = "sidebar" >
< div class = "box-ad ad" > {AD place='ad_300x250'}< / div >
{$featured=get_photos(["featured"=>"yes","limit"=>6])}
{if $featured}
2016-04-14 13:17:26 +05:00
< h2 > {lang code="featured_photos"}< / h2 >
2016-04-12 15:49:49 +05:00
< div class = "clearfix sidebar-items" >
2016-03-28 20:07:51 +05:00
< div class = "row" >
{foreach $featured as $photo}
< div class = "item-photo col-lg-6 col-md-6 col-sm-12 col-xs-12" >
{include file="$style_dir/blocks/photo.html" display_type='featuredPhoto_sidebar'}
< / div >
{/foreach}
< / div >
< / div >
2016-04-12 15:49:49 +05:00
{/if}
2016-03-28 20:07:51 +05:00
{$row = $myquery->Get_Website_Details()}
{if $row.collectionsSection == 'yes'}
2016-04-04 11:22:32 +05:00
{$collections = $cbcollection->get_collections(['limit'=>5, 'active'=>'yes'])}
2016-05-13 15:44:03 +05:00
{$collections = $cbcollection->activeCollections($collections)}
2016-04-14 13:17:26 +05:00
< h2 > {lang code="top_collections"}< / h2 >
2016-04-04 11:22:32 +05:00
< div class = "clearfix sidebar-items collections-grid" >
{$limit=10}
{if $collections}
< div class = "clearfix row" >
{foreach from=$collections item=collection}
{$first_col_thumb = $cbcollection->coll_first_thumb($collection,'l')}
2016-04-07 15:22:30 +05:00
< div class = "clearfix collection-item col-lg-6 col-md-6 col-sm-12 col-xs-12" >
2016-05-04 20:32:31 +05:00
{include file="$style_dir/blocks/collection-item.html"}
2016-03-28 20:07:51 +05:00
< / div >
2016-04-04 11:22:32 +05:00
{/foreach}
2016-03-28 20:07:51 +05:00
< / div >
2016-04-04 11:22:32 +05:00
{else}
2016-04-14 13:17:26 +05:00
< div class = "well well-info" > {lang code="no_collection_found"}< / div >
2016-04-04 11:22:32 +05:00
{/if}
2016-03-28 20:07:51 +05:00
< / div >
{/if}
< / aside >
2016-03-16 17:30:07 +05:00
< / div >
< / div >