function content_55e44453514239_17380332($_smarty_tpl)
    {
        if (isset($_smarty_tpl->tpl_vars['myAccountLinks'])) {
            $_smarty_tpl->tpl_vars['myAccountLinks'] = clone $_smarty_tpl->tpl_vars['myAccountLinks'];
            $_smarty_tpl->tpl_vars['myAccountLinks']->value = $_smarty_tpl->tpl_vars['userquery']->value->my_account_links();
            $_smarty_tpl->tpl_vars['myAccountLinks']->nocache = null;
            $_smarty_tpl->tpl_vars['myAccountLinks']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['myAccountLinks'] = new Smarty_variable($_smarty_tpl->tpl_vars['userquery']->value->my_account_links(), null, 0);
        }
        if (isset($_smarty_tpl->tpl_vars['leftMenuLinks'])) {
            $_smarty_tpl->tpl_vars['leftMenuLinks'] = clone $_smarty_tpl->tpl_vars['leftMenuLinks'];
            $_smarty_tpl->tpl_vars['leftMenuLinks']->value = array_slice($_smarty_tpl->tpl_vars['myAccountLinks']->value, 7);
            $_smarty_tpl->tpl_vars['leftMenuLinks']->nocache = null;
            $_smarty_tpl->tpl_vars['leftMenuLinks']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['leftMenuLinks'] = new Smarty_variable(array_slice($_smarty_tpl->tpl_vars['myAccountLinks']->value, 7), null, 0);
        }
        ?>

<div class="container marginBottom">
    
    <div class="cb-box row">
        <!-- Listing Categories -->
        <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/category_list.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('type' => 'channels'), 0);
        ?>

        <!-- Listing Categories End -->
        <div class="col-md-9 nopadding">
            <!-- Page Heading -->
            <div class="page-hidding hidden-xs ">
                <?php 
        if (isset($_smarty_tpl->tpl_vars['sorting_links'])) {
            $_smarty_tpl->tpl_vars['sorting_links'] = clone $_smarty_tpl->tpl_vars['sorting_links'];
            $_smarty_tpl->tpl_vars['sorting_links']->value = sorting_links();
            $_smarty_tpl->tpl_vars['sorting_links']->nocache = null;
            $_smarty_tpl->tpl_vars['sorting_links']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['sorting_links'] = new Smarty_variable(sorting_links(), null, 0);
        }
        ?>
                <h4 class="smaller lighter pull-left"><?php 
        if ($_GET['cat'] == 'all' || $_GET['cat'] == '') {
            echo smarty_lang(array('code' => "Browsing All Categories"), $_smarty_tpl);
            ?>
: 
                <?php 
        } elseif ($_GET['seo_cat_name'] != '') {
            ?>
 Browsing <i><?php 
            echo $_GET['seo_cat_name'];
            ?>
</i> Category <?php 
        } else {
            ?>
 
                Browsing Category <?php 
            echo $_GET['cat'];
            ?>
 <?php 
        }
        ?>
</h4>
                <div class="pull-right">
                    <!--Sorting By View-->
                    <div class="btn-group custom-dropdown">
                        <?php 
        if ($_GET['sort']) {
            ?>
                        <?php 
            $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['name']->_loop = false;
            $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['sorting_links']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
                $_smarty_tpl->tpl_vars['name']->_loop = true;
                $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
                ?>
                            <?php 
                if ($_GET['sort'] == $_smarty_tpl->tpl_vars['sort']->value && isset($_GET['sort'])) {
                    ?>
 
                            <button class="btn btn-default" type="button">
                            <?php 
                    echo $_smarty_tpl->tpl_vars['name']->value;
                    ?>

                            </button>
                            <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                                <span class="arrow-drop"></span>
                                <span class="sr-only">Toggle Dropdown</span>
                            </button>
                            <?php 
                }
                ?>
                        <?php 
            }
            ?>
                        <?php 
        } else {
            ?>
                            <button class="btn btn-default" type="button">
                            Recent
                            </button>
                            <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                                <span class="arrow-drop"></span>
                                <span class="sr-only">Toggle Dropdown</span>
                            </button>
                        <?php 
        }
        ?>
       

                        <ul role="menu" class="dropdown-menu">
                            <?php 
        $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['name']->_loop = false;
        $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['sorting_links']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
            $_smarty_tpl->tpl_vars['name']->_loop = true;
            $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
            ?>
                            <li><a href="<?php 
            echo cblink(array('name' => 'time', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'channels'), $_smarty_tpl);
            ?>
&sorting=dkfs" <?php 
            if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value) {
                ?>
 class="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['name']->value;
            ?>
</a></li>
                            <?php 
        }
        ?>
                        </ul>



                        <ul role="menu" class="dropdown-menu">
                            <?php 
        $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['name']->_loop = false;
        $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['sorting_links']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
            $_smarty_tpl->tpl_vars['name']->_loop = true;
            $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
            ?>
                            <li <?php 
            if ($_GET['sort'] == $_smarty_tpl->tpl_vars['sort']->value) {
                ?>
 class="selected"<?php 
            }
            ?>
><a href="<?php 
            echo cblink(array('name' => 'sort', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'channels'), $_smarty_tpl);
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['name']->value;
            ?>
</a></li>
                            <li role="presentation" class="divider"></li>
                            <?php 
        }
        ?>
                        </ul>
                    </div>

                    <!--Sorting By time-->
                    <?php 
        if (isset($_smarty_tpl->tpl_vars['time_links'])) {
            $_smarty_tpl->tpl_vars['time_links'] = clone $_smarty_tpl->tpl_vars['time_links'];
            $_smarty_tpl->tpl_vars['time_links']->value = time_links();
            $_smarty_tpl->tpl_vars['time_links']->nocache = null;
            $_smarty_tpl->tpl_vars['time_links']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['time_links'] = new Smarty_variable(time_links(), null, 0);
        }
        ?>
                    <div class="btn-group custom-dropdown">
                        <?php 
        if ($_GET['timing']) {
            ?>

                        <?php 
            $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['name']->_loop = false;
            $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['time_links']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['name']->total = $_smarty_tpl->_count($_from);
            $_smarty_tpl->tpl_vars['name']->iteration = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
                $_smarty_tpl->tpl_vars['name']->_loop = true;
                $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
                $_smarty_tpl->tpl_vars['name']->iteration++;
                $_smarty_tpl->tpl_vars['name']->last = $_smarty_tpl->tpl_vars['name']->iteration === $_smarty_tpl->tpl_vars['name']->total;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['times']['last'] = $_smarty_tpl->tpl_vars['name']->last;
                ?>
                        <?php 
                if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value && isset($_GET['time'])) {
                    ?>

                        <button class="btn btn-default" type="button">
                            <?php 
                    echo $_smarty_tpl->tpl_vars['name']->value;
                    ?>

                        </button>
                        <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                            <span class="arrow-drop"></span>
                            <span class="sr-only">Toggle Dropdown</span>
                        </button><!--<span class="glyphicon glyphicon-sort"></span> Most <?php 
                    echo $_smarty_tpl->tpl_vars['name']->value;
                    ?>
-->
                        <?php 
                }
                ?>
                        <?php 
            }
            ?>
                        <?php 
        } else {
            ?>
                        <button class="btn btn-default" type="button">
                            All Time
                        </button>
                        <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                            <span class="arrow-drop"></span>
                            <span class="sr-only">Toggle Dropdown</span>
                        </button>
                        <?php 
        }
        ?>
                        <ul role="menu" class="dropdown-menu">
                            <?php 
        $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['name']->_loop = false;
        $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['time_links']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['name']->total = $_smarty_tpl->_count($_from);
        $_smarty_tpl->tpl_vars['name']->iteration = 0;
        foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
            $_smarty_tpl->tpl_vars['name']->_loop = true;
            $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
            $_smarty_tpl->tpl_vars['name']->iteration++;
            $_smarty_tpl->tpl_vars['name']->last = $_smarty_tpl->tpl_vars['name']->iteration === $_smarty_tpl->tpl_vars['name']->total;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['times']['last'] = $_smarty_tpl->tpl_vars['name']->last;
            ?>
                            <li><a href="<?php 
            echo cblink(array('name' => 'time', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'channels'), $_smarty_tpl);
            ?>
&timing=time" <?php 
            if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value) {
                ?>
 class="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['name']->value;
            ?>
</a></li>
                            <?php 
        }
        ?>
                        </ul>
                    </div>
                </div>
            </div>
            <!-- /Page Heading-->
            <div class="clearfix">
                <div class="time_cont">
                    <?php 
        if (isset($_smarty_tpl->tpl_vars['time_links'])) {
            $_smarty_tpl->tpl_vars['time_links'] = clone $_smarty_tpl->tpl_vars['time_links'];
            $_smarty_tpl->tpl_vars['time_links']->value = time_links();
            $_smarty_tpl->tpl_vars['time_links']->nocache = null;
            $_smarty_tpl->tpl_vars['time_links']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['time_links'] = new Smarty_variable(time_links(), null, 0);
        }
        ?>
                    <?php 
        $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['name']->_loop = false;
        $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['time_links']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['name']->total = $_smarty_tpl->_count($_from);
        $_smarty_tpl->tpl_vars['name']->iteration = 0;
        foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
            $_smarty_tpl->tpl_vars['name']->_loop = true;
            $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
            $_smarty_tpl->tpl_vars['name']->iteration++;
            $_smarty_tpl->tpl_vars['name']->last = $_smarty_tpl->tpl_vars['name']->iteration === $_smarty_tpl->tpl_vars['name']->total;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['times']['last'] = $_smarty_tpl->tpl_vars['name']->last;
            ?>
                    <?php 
            if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['times']['last']) {
            }
            ?>
                    <?php 
        }
        ?>
                </div>
                <?php 
        if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['u_list'])) {
            unset($_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']);
        }
        $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['name'] = 'u_list';
        $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['users']->value) ? count($_loop) : max(0, (int) $_loop);
        unset($_loop);
        $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['show'] = true;
        $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['loop'];
        $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['step'] = 1;
        $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['loop'] - 1;
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['show']) {
            $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['loop'];
            if ($_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['total'] == 0) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['show'] = false;
            }
        } else {
            $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['total'] = 0;
        }
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['show']) {
            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['iteration']++) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['iteration'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['step'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['step'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['iteration'] == 1;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['total'];
                ?>
                <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12 marginBottom grid_view list_view channels-view">
                    <div class="user-block user-view-home clearfix">
                    	<?php 
                echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/user.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('user' => $_smarty_tpl->tpl_vars['users']->value[$_smarty_tpl->getVariable('smarty')->value['section']['u_list']['index']], 'block_type' => "groups_show"), 0);
                ?>

                    </div>
                </div>
                <?php 
            }
        } else {
            ?>
                <?php 
            echo smarty_lang(array('code' => 'no_results_found'), $_smarty_tpl);
            ?>

                <?php 
        }
        ?>
            </div>
            <div align="center">
                <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/pagination.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

            </div>
        </div>
        <div class="col-md-2  paddingright0  hidden-sm hidden-xs visible-md visible-lg">
         
             <div class="ad"><?php 
        echo getAd(array('place' => 'ad_160x600'), $_smarty_tpl);
        ?>
</div>
           <!-- <a href="http://www.arvixe.com/clipbucket_hosting"><img class="banner pull-right" src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
/assets/images/ad-box-160x600.jpg"></a>-->
        </div>
    </div>
</div><?php 
    }
    function content_55e44922239157_11633146($_smarty_tpl)
    {
        if (isset($_smarty_tpl->tpl_vars['myAccountLinks'])) {
            $_smarty_tpl->tpl_vars['myAccountLinks'] = clone $_smarty_tpl->tpl_vars['myAccountLinks'];
            $_smarty_tpl->tpl_vars['myAccountLinks']->value = $_smarty_tpl->tpl_vars['userquery']->value->my_account_links();
            $_smarty_tpl->tpl_vars['myAccountLinks']->nocache = null;
            $_smarty_tpl->tpl_vars['myAccountLinks']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['myAccountLinks'] = new Smarty_variable($_smarty_tpl->tpl_vars['userquery']->value->my_account_links(), null, 0);
        }
        if (isset($_smarty_tpl->tpl_vars['leftMenuLinks'])) {
            $_smarty_tpl->tpl_vars['leftMenuLinks'] = clone $_smarty_tpl->tpl_vars['leftMenuLinks'];
            $_smarty_tpl->tpl_vars['leftMenuLinks']->value = array_slice($_smarty_tpl->tpl_vars['myAccountLinks']->value, 7);
            $_smarty_tpl->tpl_vars['leftMenuLinks']->nocache = null;
            $_smarty_tpl->tpl_vars['leftMenuLinks']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['leftMenuLinks'] = new Smarty_variable(array_slice($_smarty_tpl->tpl_vars['myAccountLinks']->value, 7), null, 0);
        }
        ?>

<div class="container marginBottom">
    
    <div class="cb-box clearfix row">
        
        <!-- Listing Categories -->
        <div class="hidden-xs">
        <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/category_list.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('type' => 'video'), 0);
        ?>
    
        </div>
        
        <!-- Listing Categories End -->
        <div class="col-md-9 clearfix paddingleft0">
            <!-- Page Heading -->
            <div class="page-hidding hidden-xs">
                <?php 
        if (isset($_smarty_tpl->tpl_vars['sorting_links'])) {
            $_smarty_tpl->tpl_vars['sorting_links'] = clone $_smarty_tpl->tpl_vars['sorting_links'];
            $_smarty_tpl->tpl_vars['sorting_links']->value = sorting_links();
            $_smarty_tpl->tpl_vars['sorting_links']->nocache = null;
            $_smarty_tpl->tpl_vars['sorting_links']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['sorting_links'] = new Smarty_variable(sorting_links(), null, 0);
        }
        ?>
                <h4 class="smaller lighter pull-left"><?php 
        if ($_GET['cat'] == 'all' || $_GET['cat'] == '') {
            echo smarty_lang(array('code' => "Browsing All Categories"), $_smarty_tpl);
            ?>
: 
                <?php 
        } elseif ($_GET['seo_cat_name'] != '') {
            ?>
 Browsing <i><?php 
            echo $_GET['seo_cat_name'];
            ?>
</i> Category <?php 
        } else {
            ?>
 
                Browsing Category <?php 
            echo $_GET['cat'];
            ?>
 <?php 
        }
        ?>
</h4>
                <div class="pull-right">

    
                    <div class="btn-group custom-dropdown">
                        <?php 
        if ($_GET['sort']) {
            ?>
                        <?php 
            $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['name']->_loop = false;
            $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['sorting_links']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
                $_smarty_tpl->tpl_vars['name']->_loop = true;
                $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
                ?>
                            <?php 
                if ($_GET['sort'] == $_smarty_tpl->tpl_vars['sort']->value && isset($_GET['sort'])) {
                    ?>
 
                            <button class="btn btn-default" type="button">
                            <?php 
                    echo $_smarty_tpl->tpl_vars['name']->value;
                    ?>

                            </button>
                            <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                                <span class="arrow-drop"></span>
                                <span class="sr-only">Toggle Dropdown</span>
                            </button>
                            <?php 
                }
                ?>
                        <?php 
            }
            ?>
                        <?php 
        } else {
            ?>
                            <button class="btn btn-default" type="button">
                            Recent
                            </button>
                            <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                                <span class="arrow-drop"></span>
                                <span class="sr-only">Toggle Dropdown</span>
                            </button>
                        <?php 
        }
        ?>
    

                        <ul role="menu" class="dropdown-menu">
                            <?php 
        $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['name']->_loop = false;
        $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['sorting_links']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
            $_smarty_tpl->tpl_vars['name']->_loop = true;
            $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
            ?>
                            <li><a href="<?php 
            echo cblink(array('name' => 'time', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'videos'), $_smarty_tpl);
            ?>
&sorting=dkfs" <?php 
            if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value) {
                ?>
 class="selected" <?php 
            }
            ?>
>li <?php 
            echo $_smarty_tpl->tpl_vars['name']->value;
            ?>
</a></li>
                            <?php 
        }
        ?>
                        </ul>



                        <ul role="menu" class="dropdown-menu">
                            <?php 
        $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['name']->_loop = false;
        $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['sorting_links']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
            $_smarty_tpl->tpl_vars['name']->_loop = true;
            $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
            ?>
                            <li <?php 
            if ($_GET['sort'] == $_smarty_tpl->tpl_vars['sort']->value) {
                ?>
 class="active selected"  <?php 
            }
            ?>
><a href="<?php 
            echo cblink(array('name' => 'sort', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'videos'), $_smarty_tpl);
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['name']->value;
            ?>
</a></li>
                            <li role="presentation" class="divider"></li>
                            <?php 
        }
        ?>
                        </ul>
                    </div>

                    

 
                    <?php 
        if (isset($_smarty_tpl->tpl_vars['time_links'])) {
            $_smarty_tpl->tpl_vars['time_links'] = clone $_smarty_tpl->tpl_vars['time_links'];
            $_smarty_tpl->tpl_vars['time_links']->value = time_links();
            $_smarty_tpl->tpl_vars['time_links']->nocache = null;
            $_smarty_tpl->tpl_vars['time_links']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['time_links'] = new Smarty_variable(time_links(), null, 0);
        }
        ?>
                    <div class="btn-group custom-dropdown">
                        <?php 
        if ($_GET['time']) {
            ?>
 

                        <?php 
            $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['name']->_loop = false;
            $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['time_links']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
                $_smarty_tpl->tpl_vars['name']->_loop = true;
                $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
                ?>
                            <?php 
                if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value && isset($_GET['time'])) {
                    ?>
 
                            
                            <button class="btn btn-default" type="button">
                            <?php 
                    echo $_smarty_tpl->tpl_vars['name']->value;
                    ?>

                            </button>
                            <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                                <span class="arrow-drop"></span>
                                <span class="sr-only">Toggle Dropdown</span>
                            </button>
                            <?php 
                }
                ?>
                        <?php 
            }
            ?>
                        <?php 
        } else {
            ?>
                            <button class="btn btn-default" type="button">
                            All Time
                            </button>
                            <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                                <span class="arrow-drop"></span>
                                <span class="sr-only">Toggle Dropdown</span>
                            </button>
                        <?php 
        }
        ?>
  
                          <ul role="menu" class="dropdown-menu">
                            <?php 
        $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['name']->_loop = false;
        $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['time_links']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
            $_smarty_tpl->tpl_vars['name']->_loop = true;
            $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
            ?>
                                <li><a href="<?php 
            echo cblink(array('name' => 'time', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'videos'), $_smarty_tpl);
            ?>
&timing=time" <?php 
            if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value) {
                ?>
 class="selected" style="color: #fff; background-color: #428bca;" <?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['name']->value;
            ?>
</a></li>
                                <li role="presentation" class="divider"></li>
                            <?php 
        }
        ?>
                          </ul>
                    </div>
                </div>
            </div> 

            <div class="page-hidding visible-xs">
                <div class="" role="group">
                    <?php 
        if (isset($_smarty_tpl->tpl_vars['time_links'])) {
            $_smarty_tpl->tpl_vars['time_links'] = clone $_smarty_tpl->tpl_vars['time_links'];
            $_smarty_tpl->tpl_vars['time_links']->value = time_links();
            $_smarty_tpl->tpl_vars['time_links']->nocache = null;
            $_smarty_tpl->tpl_vars['time_links']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['time_links'] = new Smarty_variable(time_links(), null, 0);
        }
        ?>
                    <div class="btn-group custom-dropdown resp-full-wdth480 resp-mgnt10">
                        <?php 
        if ($_GET['timing']) {
            ?>
 

                        <?php 
            $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['name']->_loop = false;
            $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['time_links']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
                $_smarty_tpl->tpl_vars['name']->_loop = true;
                $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
                ?>
                            <?php 
                if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value && isset($_GET['time'])) {
                    ?>
 
                            
                            <button class="btn btn-default" type="button">
                            <?php 
                    echo $_smarty_tpl->tpl_vars['name']->value;
                    ?>

                            </button>
                            <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                                <span class="arrow-drop"></span>
                                <span class="sr-only">Toggle Dropdown</span>
                            </button><!--<span class="glyphicon glyphicon-sort"></span> Most <?php 
                    echo $_smarty_tpl->tpl_vars['name']->value;
                    ?>
-->
                            <?php 
                }
                ?>
                        <?php 
            }
            ?>
                        <?php 
        } else {
            ?>
                            <button class="btn btn-default" type="button">
                            All Time
                            </button>
                            <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                                <span class="arrow-drop"></span>
                                <span class="sr-only">Toggle Dropdown</span>
                            </button>
                        <?php 
        }
        ?>
  
                          <ul role="menu" class="dropdown-menu">
                            <?php 
        $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['name']->_loop = false;
        $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['time_links']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
            $_smarty_tpl->tpl_vars['name']->_loop = true;
            $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
            ?>
                                <li>
                                    <a href="<?php 
            echo cblink(array('name' => 'time', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'videos'), $_smarty_tpl);
            ?>
&timing=time" <?php 
            if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value) {
                ?>
 class="selected"  <?php 
            }
            ?>
>
                                    <?php 
            echo $_smarty_tpl->tpl_vars['name']->value;
            ?>

                                    </a>
                                </li>
                                <li role="presentation" class="divider"></li>
                            <?php 
        }
        ?>
                          </ul>
                    </div> 

                    <?php 
        if (isset($_smarty_tpl->tpl_vars['sorting_links'])) {
            $_smarty_tpl->tpl_vars['sorting_links'] = clone $_smarty_tpl->tpl_vars['sorting_links'];
            $_smarty_tpl->tpl_vars['sorting_links']->value = sorting_links();
            $_smarty_tpl->tpl_vars['sorting_links']->nocache = null;
            $_smarty_tpl->tpl_vars['sorting_links']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['sorting_links'] = new Smarty_variable(sorting_links(), null, 0);
        }
        ?>
                    <div class="btn-group custom-dropdown resp-full-wdth480 resp-mgnt10">
                        <?php 
        if ($_GET['sorting']) {
            ?>
   
                        <?php 
            $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['name']->_loop = false;
            $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['sorting_links']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
                $_smarty_tpl->tpl_vars['name']->_loop = true;
                $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
                ?>
                            <?php 
                if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value && isset($_GET['sort'])) {
                    ?>
 
                            <button class="btn btn-default" type="button">
                            <?php 
                    echo $_smarty_tpl->tpl_vars['name']->value;
                    ?>

                            </button>
                            <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                                <span class="arrow-drop"></span>
                                <span class="sr-only">Toggle Dropdown</span>
                            </button><!--<span class="glyphicon glyphicon-sort"></span> Most <?php 
                    echo $_smarty_tpl->tpl_vars['name']->value;
                    ?>
-->
                            <?php 
                }
                ?>
                        <?php 
            }
            ?>
                        <?php 
        } else {
            ?>
                            <button class="btn btn-default" type="button">
                            <?php 
            echo $_GET['sort'];
            ?>

                            </button>
                            <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                                <span class="arrow-drop"></span>
                                <span class="sr-only">Toggle Dropdown</span>
                            </button>
                        <?php 
        }
        ?>
    

                        <!--
                        <ul role="menu" class="dropdown-menu">
                            <?php 
        $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['name']->_loop = false;
        $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['sorting_links']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
            $_smarty_tpl->tpl_vars['name']->_loop = true;
            $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
            ?>
                            <li><a href="<?php 
            echo cblink(array('name' => 'time', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'videos'), $_smarty_tpl);
            ?>
&sorting=dkfs" <?php 
            if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value) {
                ?>
 class="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['name']->value;
            ?>
</a></li>
                            <?php 
        }
        ?>
                        </ul>-->



                        <ul role="menu" class="dropdown-menu">
                            <?php 
        $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['name']->_loop = false;
        $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['sorting_links']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
            $_smarty_tpl->tpl_vars['name']->_loop = true;
            $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
            ?>
                            <li <?php 
            if ($_GET['sort'] == $_smarty_tpl->tpl_vars['sort']->value) {
                ?>
 class="selected" <?php 
            }
            ?>
><a href="<?php 
            echo cblink(array('name' => 'sort', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'videos'), $_smarty_tpl);
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['name']->value;
            ?>
</a></li>
                            <li role="presentation" class="divider"></li>
                            <?php 
        }
        ?>
                        </ul>
                    </div> 

                    <div class="btn-group custom-dropdown pull-left resp-full-wdth480 resp-mgnt10">
                        <button class="btn btn-default" type="button">
                        Categories
                        </button>
                        <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                            <span class="arrow-drop"></span>
                            <span class="sr-only">Toggle Dropdown</span>
                        </button>
                        
                        <ul role="menu" class="dropdown-menu">
                        <?php 
        echo $_smarty_tpl->tpl_vars['cbvid']->value->cbCategories(array("type" => $_smarty_tpl->tpl_vars['type']->value, "echo" => "TRUE", "output" => "list", "with_all" => "TRUE"));
        ?>

                        </ul>
                    </div>                    
                </div>
            </div>


            <div class="row">
                <?php 
        if ($_smarty_tpl->tpl_vars['videos']->value) {
            ?>
 
                <?php 
            $_smarty_tpl->tpl_vars['video'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['video']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['videos']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['video']->key => $_smarty_tpl->tpl_vars['video']->value) {
                $_smarty_tpl->tpl_vars['video']->_loop = true;
                ?>
                    <div class="col-md-3  col-sm-4  col-xs-6 marginBottom grid_view list_view cb-video-fixed-block">
                        <?php 
                echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/videos/video.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display_type' => 'normal'), 0);
                ?>

                    </div>
                <?php 
            }
            ?>
                <?php 
        } else {
            ?>
 
                <div class="col-md-12"><?php 
            echo smarty_lang(array('code' => 'no_results_found'), $_smarty_tpl);
            ?>
</div>
                <?php 
        }
        ?>

                <div class="clearfix"></div>
            </div>
       
            <!-- /Page Heading -->
            
        <div class="clr"></div>
        <!--Pagination-->
        <div align="center">
            <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/pagination.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

        </div> 
            <!-- /Pagination-->
        </div>
    </div>
</div>
<div style="height:20px"> </div>



<?php 
    }
예제 #3
0
 function ClipBucket()
 {
     global $pages;
     //Assign Configs
     $this->configs = $this->get_configs();
     //Get Current Page and Redirects it to without www.
     $pages->redirectOrig();
     //Get Base Directory
     $this->BASEDIR = $this->getBasedir();
     //Listing Common JS File
     $this->addJS(array('jquery_plugs/cookie.js' => 'global', 'functions.js' => 'global'));
     //This is used to create Admin Menu
     //$this->AdminMenu = $this->get_admin_menu();
     //Updating Upload Options
     $this->temp_exts = array('ahz', 'jhz', 'abc', 'xyz', 'cb2', 'tmp', 'olo', 'oar', 'ozz');
     $this->template = $this->configs['template_dir'];
     if (!defined("IS_CAPTCHA_LOADING")) {
         $_SESSION['total_captchas_loaded'] = 0;
     }
     $this->clean_requests();
     $sort_array = sorting_links();
     if (!isset($_GET['sort']) || !isset($sort_array[$_GET['sort']])) {
         $_GET['sort'] = 'most_recent';
     }
     $time_array = time_links();
     //$time_array = array_key_
     if (!isset($_GET['time']) || !isset($time_array[$_GET['time']])) {
         $_GET['time'] = 'all_time';
     }
     if (!isset($_GET['page']) || !is_numeric($_GET['page'])) {
         $_GET['page'] = 1;
     }
 }
    function content_55e4454d54e731_02331131($_smarty_tpl)
    {
        if (isset($_smarty_tpl->tpl_vars['myAccountLinks'])) {
            $_smarty_tpl->tpl_vars['myAccountLinks'] = clone $_smarty_tpl->tpl_vars['myAccountLinks'];
            $_smarty_tpl->tpl_vars['myAccountLinks']->value = $_smarty_tpl->tpl_vars['userquery']->value->my_account_links();
            $_smarty_tpl->tpl_vars['myAccountLinks']->nocache = null;
            $_smarty_tpl->tpl_vars['myAccountLinks']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['myAccountLinks'] = new Smarty_variable($_smarty_tpl->tpl_vars['userquery']->value->my_account_links(), null, 0);
        }
        if (isset($_smarty_tpl->tpl_vars['leftMenuLinks'])) {
            $_smarty_tpl->tpl_vars['leftMenuLinks'] = clone $_smarty_tpl->tpl_vars['leftMenuLinks'];
            $_smarty_tpl->tpl_vars['leftMenuLinks']->value = array_slice($_smarty_tpl->tpl_vars['myAccountLinks']->value, 6);
            $_smarty_tpl->tpl_vars['leftMenuLinks']->nocache = null;
            $_smarty_tpl->tpl_vars['leftMenuLinks']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['leftMenuLinks'] = new Smarty_variable(array_slice($_smarty_tpl->tpl_vars['myAccountLinks']->value, 6), null, 0);
        }
        ?>
<div class="container">
    
    <!--<div class="cb-box row">
        <?php 
        if (isset($_smarty_tpl->tpl_vars['sorting_links'])) {
            $_smarty_tpl->tpl_vars['sorting_links'] = clone $_smarty_tpl->tpl_vars['sorting_links'];
            $_smarty_tpl->tpl_vars['sorting_links']->value = sorting_links();
            $_smarty_tpl->tpl_vars['sorting_links']->nocache = null;
            $_smarty_tpl->tpl_vars['sorting_links']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['sorting_links'] = new Smarty_variable(sorting_links(), null, 0);
        }
        ?>
        <h4 class="smaller lighter pull-left"><?php 
        echo smarty_lang(array('code' => "Browsing All Photos"), $_smarty_tpl);
        ?>
: </h4>
        <div class="photopadding col-md-6">
            <div class="btn-group">
                <?php 
        if ($_GET['sorting']) {
            ?>
                <?php 
            $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['name']->_loop = false;
            $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['sorting_links']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
                $_smarty_tpl->tpl_vars['name']->_loop = true;
                $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
                ?>
                <?php 
                if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value && isset($_GET['time'])) {
                    ?>
                <button class="btn btn-default" type="button">
                    <?php 
                    echo $_smarty_tpl->tpl_vars['name']->value;
                    ?>

                </button>
                <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                    <span class="caret"></span>
                    <span class="sr-only">Toggle Dropdown</span>
                </button>
                <?php 
                }
                ?>
                <?php 
            }
            ?>
                <?php 
        } else {
            ?>
                <button class="btn btn-default" type="button">
                    Recent
                </button>
                <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                    <span class="caret"></span>
                    <span class="sr-only">Toggle Dropdown</span>
                </button>
                <?php 
        }
        ?>
                <ul role="menu" class="dropdown-menu">
                    <?php 
        $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['name']->_loop = false;
        $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['sorting_links']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
            $_smarty_tpl->tpl_vars['name']->_loop = true;
            $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
            ?>
                    <li><a href="<?php 
            echo cblink(array('name' => 'sort', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'photos'), $_smarty_tpl);
            ?>
" <?php 
            if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value) {
                ?>
 class="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['name']->value;
            ?>
</a></li>
                    <?php 
        }
        ?>
                </ul>
            </div>

            
            <?php 
        if (isset($_smarty_tpl->tpl_vars['time_links'])) {
            $_smarty_tpl->tpl_vars['time_links'] = clone $_smarty_tpl->tpl_vars['time_links'];
            $_smarty_tpl->tpl_vars['time_links']->value = time_links();
            $_smarty_tpl->tpl_vars['time_links']->nocache = null;
            $_smarty_tpl->tpl_vars['time_links']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['time_links'] = new Smarty_variable(time_links(), null, 0);
        }
        ?>
            <div class="btn-group">
                <?php 
        if ($_GET['timing']) {
            ?>

                <?php 
            $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['name']->_loop = false;
            $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['time_links']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
                $_smarty_tpl->tpl_vars['name']->_loop = true;
                $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
                ?>
                <?php 
                if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value && isset($_GET['time'])) {
                    ?>

                <button class="btn btn-default" type="button">
                    <?php 
                    echo $_smarty_tpl->tpl_vars['name']->value;
                    ?>

                </button>
                <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                    <span class="caret"></span>
                    <span class="sr-only">Toggle Dropdown</span>
                </button>
                <?php 
                }
                ?>
                <?php 
            }
            ?>
                <?php 
        } else {
            ?>
                <button class="btn btn-default" type="button">
                    All Time
                </button>
                <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                    <span class="caret"></span>
                    <span class="sr-only">Toggle Dropdown</span>
                </button>
                <?php 
        }
        ?>
                <ul role="menu" class="dropdown-menu">
                    <?php 
        $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['name']->_loop = false;
        $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['time_links']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
            $_smarty_tpl->tpl_vars['name']->_loop = true;
            $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
            ?>
                    <li><a href="<?php 
            echo cblink(array('name' => 'time', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'photos'), $_smarty_tpl);
            ?>
&timing=time" <?php 
            if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value) {
                ?>
 class="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['name']->value;
            ?>
</a></li>
                    <?php 
        }
        ?>
                </ul>
            </div>
        </div>
        <div class="col-md-3 photopaddin1 pull-right">
            <div class="pull-right" style="margin-right: 25px; margin-top: 4px;">
                    <div class="btn-group">
                      <button class="btn btn-primary" type="button"><?php 
        echo smarty_lang(array('code' => "Collections"), $_smarty_tpl);
        ?>
</button>
                      <button data-toggle="dropdown" class="btn btn-primary dropdown-toggle" type="button">
                        <span class="caret"></span>
                        <span class="sr-only">Toggle Dropdown</span>
                      </button>
                      <ul role="menu" class="dropdown-menu">
                       <?php 
        $_smarty_tpl->tpl_vars['collection'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['collection']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['collections']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['collection']->key => $_smarty_tpl->tpl_vars['collection']->value) {
            $_smarty_tpl->tpl_vars['collection']->_loop = true;
            ?>
                    <li><a href="<?php 
            echo $_smarty_tpl->tpl_vars['baseurl']->value;
            ?>
/view_collection.php?cid=<?php 
            echo $_smarty_tpl->tpl_vars['collection']->value['collection_id'];
            ?>
&type=<?php 
            echo $_smarty_tpl->tpl_vars['collection']->value['type'];
            ?>
" title="<?php 
            echo $_smarty_tpl->tpl_vars['collection']->value['collection_name'];
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['collection']->value['collection_name'];
            ?>
</a></li>
                    <?php 
        }
        if (!$_smarty_tpl->tpl_vars['collection']->_loop) {
            ?>
                    <li><a href="#"><?php 
            echo smarty_lang(array('code' => "No Collection Found"), $_smarty_tpl);
            ?>
</a></li>
                    <?php 
        }
        ?>
                      </ul>
                    </div>
                </div>
            
        </div>
    </div>-->
    <div class="cb-box row">
    <!-- Page Heading -->
        <div class="page-hidding margin-bottom-10">
            <?php 
        if (isset($_smarty_tpl->tpl_vars['sorting_links'])) {
            $_smarty_tpl->tpl_vars['sorting_links'] = clone $_smarty_tpl->tpl_vars['sorting_links'];
            $_smarty_tpl->tpl_vars['sorting_links']->value = sorting_links();
            $_smarty_tpl->tpl_vars['sorting_links']->nocache = null;
            $_smarty_tpl->tpl_vars['sorting_links']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['sorting_links'] = new Smarty_variable(sorting_links(), null, 0);
        }
        ?>
            <h4 class="smaller lighter pull-left"><?php 
        echo smarty_lang(array('code' => "Browsing All Categories"), $_smarty_tpl);
        ?>
: </h4>
            <div class="pull-left">

                <!--Sorting By View-->
                <div class="btn-group custom-dropdown">
                    <?php 
        if ($_GET['sort']) {
            ?>
                    <?php 
            $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['name']->_loop = false;
            $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['sorting_links']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
                $_smarty_tpl->tpl_vars['name']->_loop = true;
                $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
                ?>
                        <?php 
                if ($_GET['sort'] == $_smarty_tpl->tpl_vars['sort']->value && isset($_GET['sort'])) {
                    ?>
 
                        <button class="btn btn-default" type="button">
                        <?php 
                    echo $_smarty_tpl->tpl_vars['name']->value;
                    ?>

                        </button>
                        <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                            <span class="arrow-drop"></span>
                            <span class="sr-only">Toggle Dropdown</span>
                        </button>
                        <?php 
                }
                ?>
                    <?php 
            }
            ?>
                    <?php 
        } else {
            ?>
                        <button class="btn btn-default" type="button">
                        Recent
                        </button>
                        <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                            <span class="arrow-drop"></span>
                            <span class="sr-only">Toggle Dropdown</span>
                        </button>
                    <?php 
        }
        ?>
    

                    <ul role="menu" class="dropdown-menu">
                        <?php 
        $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['name']->_loop = false;
        $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['sorting_links']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
            $_smarty_tpl->tpl_vars['name']->_loop = true;
            $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
            ?>
                        <li><a href="<?php 
            echo cblink(array('name' => 'time', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'photos'), $_smarty_tpl);
            ?>
&sorting=dkfs" <?php 
            if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value) {
                ?>
 class="selected" <?php 
            }
            ?>
>li <?php 
            echo $_smarty_tpl->tpl_vars['name']->value;
            ?>
</a></li>
                        <?php 
        }
        ?>
                    </ul>



                    <ul role="menu" class="dropdown-menu">
                        <?php 
        $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['name']->_loop = false;
        $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['sorting_links']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
            $_smarty_tpl->tpl_vars['name']->_loop = true;
            $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
            ?>
                        <li <?php 
            if ($_GET['sort'] == $_smarty_tpl->tpl_vars['sort']->value) {
                ?>
 class="active selected"  <?php 
            }
            ?>
><a href="<?php 
            echo cblink(array('name' => 'sort', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'photos'), $_smarty_tpl);
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['name']->value;
            ?>
</a></li>
                        <li role="presentation" class="divider"></li>
                        <?php 
        }
        ?>
                    </ul>
                </div>

                <!--Sorting By time-->
                <?php 
        if (isset($_smarty_tpl->tpl_vars['time_links'])) {
            $_smarty_tpl->tpl_vars['time_links'] = clone $_smarty_tpl->tpl_vars['time_links'];
            $_smarty_tpl->tpl_vars['time_links']->value = time_links();
            $_smarty_tpl->tpl_vars['time_links']->nocache = null;
            $_smarty_tpl->tpl_vars['time_links']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['time_links'] = new Smarty_variable(time_links(), null, 0);
        }
        ?>
                <div class="btn-group custom-dropdown">
                    <?php 
        if ($_GET['time']) {
            ?>
 

                    <?php 
            $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['name']->_loop = false;
            $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['time_links']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
                $_smarty_tpl->tpl_vars['name']->_loop = true;
                $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
                ?>
                        <?php 
                if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value && isset($_GET['time'])) {
                    ?>
 
                        
                        <button class="btn btn-default" type="button">
                        <?php 
                    echo $_smarty_tpl->tpl_vars['name']->value;
                    ?>

                        </button>
                        <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                            <span class="arrow-drop"></span>
                            <span class="sr-only">Toggle Dropdown</span>
                        </button>
                        <?php 
                }
                ?>
                    <?php 
            }
            ?>
                    <?php 
        } else {
            ?>
                        <button class="btn btn-default" type="button">
                        All Time
                        </button>
                        <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                            <span class="arrow-drop"></span>
                            <span class="sr-only">Toggle Dropdown</span>
                        </button>
                    <?php 
        }
        ?>
  
                      <ul role="menu" class="dropdown-menu">
                        <?php 
        $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['name']->_loop = false;
        $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['time_links']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
            $_smarty_tpl->tpl_vars['name']->_loop = true;
            $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
            ?>
                            <li><a href="<?php 
            echo cblink(array('name' => 'time', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'photos'), $_smarty_tpl);
            ?>
&timing=time" <?php 
            if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value) {
                ?>
 class="selected" style="color: #fff; background-color: #428bca;" <?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['name']->value;
            ?>
</a></li>
                            <li role="presentation" class="divider"></li>
                        <?php 
        }
        ?>
                      </ul>
                </div>
            </div>
            <!--
				NOTE : This collection sorting will be added in Future
 			-->
			<!-- <div class="collection-menu">
                <div class="btn-group">
                    <button class="btn btn-primary" type="button"><?php 
        echo smarty_lang(array('code' => "Collections"), $_smarty_tpl);
        ?>
</button>
                    <button data-toggle="dropdown" class="btn btn-primary dropdown-toggle" type="button">
                        <span class="caret"></span>
                        <span class="sr-only">Toggle Dropdown</span>
                    </button>
                    <ul role="menu" class="dropdown-menu pull-right">
            
                        <?php 
        $_smarty_tpl->tpl_vars['collection'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['collection']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['collections']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['collection']->key => $_smarty_tpl->tpl_vars['collection']->value) {
            $_smarty_tpl->tpl_vars['collection']->_loop = true;
            ?>
                        <li><a href="<?php 
            echo $_smarty_tpl->tpl_vars['baseurl']->value;
            ?>
/view_collection.php?cid=<?php 
            echo $_smarty_tpl->tpl_vars['collection']->value['collection_id'];
            ?>
&type=<?php 
            echo $_smarty_tpl->tpl_vars['collection']->value['type'];
            ?>
" title="<?php 
            echo $_smarty_tpl->tpl_vars['collection']->value['collection_name'];
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['collection']->value['collection_name'];
            ?>
</a></li>
                        <?php 
        }
        if (!$_smarty_tpl->tpl_vars['collection']->_loop) {
            ?>
                        <li><a href="#"><?php 
            echo smarty_lang(array('code' => "No Collection Found"), $_smarty_tpl);
            ?>
</a></li>
                        <?php 
        }
        ?>
                  </ul>
                </div>
            </div> -->
        </div>

        <!-- /Page Heading -->
        <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 clearfix photos pull-left">

            <?php 
        if (isset($_smarty_tpl->tpl_vars['counter'])) {
            $_smarty_tpl->tpl_vars['counter'] = clone $_smarty_tpl->tpl_vars['counter'];
            $_smarty_tpl->tpl_vars['counter']->value = 0;
            $_smarty_tpl->tpl_vars['counter']->nocache = null;
            $_smarty_tpl->tpl_vars['counter']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['counter'] = new Smarty_variable(0, null, 0);
        }
        ?>
            <ul class="list-unstyled " id="photos"> <!-- remove photos id to remove photo land styling --></ul>
            <?php 
        if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['p_list'])) {
            unset($_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']);
        }
        $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['name'] = 'p_list';
        $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['photos']->value) ? count($_loop) : max(0, (int) $_loop);
        unset($_loop);
        $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['show'] = true;
        $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['loop'];
        $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['step'] = 1;
        $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['loop'] - 1;
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['show']) {
            $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['loop'];
            if ($_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['total'] == 0) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['show'] = false;
            }
        } else {
            $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['total'] = 0;
        }
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['show']) {
            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['iteration']++) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['iteration'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['step'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['step'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['iteration'] == 1;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['total'];
                ?>
            
            <?php 
                $_smarty_tpl->createLocalArrayVariable('photos', null, 0);
                $_smarty_tpl->tpl_vars['photos']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p_list']['index']]['counter'] = $_smarty_tpl->tpl_vars['counter']->value;
                ?>
            <div class="">
            <?php 
                echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/photo.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('photo' => $_smarty_tpl->tpl_vars['photos']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p_list']['index']]), 0);
                ?>

            </div>
            <?php 
                if (isset($_smarty_tpl->tpl_vars['counter'])) {
                    $_smarty_tpl->tpl_vars['counter'] = clone $_smarty_tpl->tpl_vars['counter'];
                    $_smarty_tpl->tpl_vars['counter']->value = $_smarty_tpl->tpl_vars['counter']->value + 1;
                    $_smarty_tpl->tpl_vars['counter']->nocache = null;
                    $_smarty_tpl->tpl_vars['counter']->scope = 0;
                } else {
                    $_smarty_tpl->tpl_vars['counter'] = new Smarty_variable($_smarty_tpl->tpl_vars['counter']->value + 1, null, 0);
                }
                ?>
            <?php 
            }
        } else {
            ?>
            <div class="col-md-10 "><?php 
            echo smarty_lang(array('code' => 'no_results_found'), $_smarty_tpl);
            ?>
</div>
            <?php 
        }
        ?>
        
            <!--Pagination-->
             
            <!-- /Pagination-->
        </div>
        <!--<div class="col-md-2 pull-right paddingright0">
            <div class="ad"><?php 
        echo getAd(array('place' => 'ad_160x600'), $_smarty_tpl);
        ?>
</div>-->
            <!--<img src="http://www.ryangiggs.cc/system/files/banner-160x600-pride-tee_0.jpg">
            <a href="http://www.arvixe.com/clipbucket_hosting"><img class="banner pull-right" src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
/assets/images/ad-box-160x600.jpg" ></a>-->
        <!--</div>-->
        <div align="center" class="col-md-12 clearfix pull-left">
                <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/pagination.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

        </div>
        
    </div>
</div>

<div style="height:20px"> </div>
<script>
    jQuery(function() {                                              // <== Doc ready

        jQuery(".avatar1_file").hide();                  // Initially hide all buttons

        jQuery('.show-image').hover(function() {
            jQuery(this).find('#avatar1_file').fadeIn(1500);
        }, function() {
            jQuery(this).find('#avatar1_file').fadeOut(1500);
        });
    });
</script>
<?php 
    }