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 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_56afd78d1fea15_55283541($_smarty_tpl) { ?> <?php if ($_smarty_tpl->tpl_vars['userquery']->value->udetails['soclid'] != '') { ?> <?php if (isset($_smarty_tpl->tpl_vars["usr_head_thumb"])) { $_smarty_tpl->tpl_vars["usr_head_thumb"] = clone $_smarty_tpl->tpl_vars["usr_head_thumb"]; $_smarty_tpl->tpl_vars["usr_head_thumb"]->value = (string) $_smarty_tpl->tpl_vars['userquery']->value->getUserThumb('', '', userid()); $_smarty_tpl->tpl_vars["usr_head_thumb"]->nocache = null; $_smarty_tpl->tpl_vars["usr_head_thumb"]->scope = 0; } else { $_smarty_tpl->tpl_vars["usr_head_thumb"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['userquery']->value->getUserThumb('', '', userid()), null, 0); } ?> <?php } else { ?> <?php if (isset($_smarty_tpl->tpl_vars["usr_head_thumb"])) { $_smarty_tpl->tpl_vars["usr_head_thumb"] = clone $_smarty_tpl->tpl_vars["usr_head_thumb"]; $_smarty_tpl->tpl_vars["usr_head_thumb"]->value = (string) $_smarty_tpl->tpl_vars['userquery']->value->getUserThumb('', 'small', userid()); $_smarty_tpl->tpl_vars["usr_head_thumb"]->nocache = null; $_smarty_tpl->tpl_vars["usr_head_thumb"]->scope = 0; } else { $_smarty_tpl->tpl_vars["usr_head_thumb"] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['userquery']->value->getUserThumb('', 'small', userid()), null, 0); } ?> <?php } ?> <div id="quick_container"> <div id="quicklist_box"> </div> </div> <?php if (isset($_smarty_tpl->tpl_vars['logged_in_user'])) { $_smarty_tpl->tpl_vars['logged_in_user'] = clone $_smarty_tpl->tpl_vars['logged_in_user']; $_smarty_tpl->tpl_vars['logged_in_user']->value = $_smarty_tpl->tpl_vars['userquery']->value->get_user_details(userid()); $_smarty_tpl->tpl_vars['logged_in_user']->nocache = null; $_smarty_tpl->tpl_vars['logged_in_user']->scope = 0; } else { $_smarty_tpl->tpl_vars['logged_in_user'] = new Smarty_variable($_smarty_tpl->tpl_vars['userquery']->value->get_user_details(userid()), null, 0); } if (isset($_smarty_tpl->tpl_vars['searchPage'])) { $_smarty_tpl->tpl_vars['searchPage'] = clone $_smarty_tpl->tpl_vars['searchPage']; $_smarty_tpl->tpl_vars['searchPage']->value = $_GET['query']; $_smarty_tpl->tpl_vars['searchPage']->nocache = null; $_smarty_tpl->tpl_vars['searchPage']->scope = 0; } else { $_smarty_tpl->tpl_vars['searchPage'] = new Smarty_variable($_GET['query'], null, 0); } ?> <nav class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="navbar-container clearfix"> <div class="navbar-header"> <button type="button" class="navbar-toggle navig-resp-bg" data-toggle="collapse" data-target="#khulja-sim-sim"> <!--<span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> --> </button> <button type="button" class="navbar-toggle nav-toggle search-resp-bg" data-toggle="collapse" data-target="#navbar-search-collapse"> <!-- <span class="glyphicon glyphicon-search"></span> --> </button> <a class="navbar-brand cb-logo" href="<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> "><?php echo $_smarty_tpl->tpl_vars['website_title']->value; ?> </a> </div> <?php echo ANCHOR(array('place' => 'mature_content'), $_smarty_tpl); ?> <?php if (isset($_smarty_tpl->tpl_vars['head_menu'])) { $_smarty_tpl->tpl_vars['head_menu'] = clone $_smarty_tpl->tpl_vars['head_menu']; $_smarty_tpl->tpl_vars['head_menu']->value = cb_menu(); $_smarty_tpl->tpl_vars['head_menu']->nocache = null; $_smarty_tpl->tpl_vars['head_menu']->scope = 0; } else { $_smarty_tpl->tpl_vars['head_menu'] = new Smarty_variable(cb_menu(), null, 0); } ?> <div class="responsive-search collapse" id="navbar-search-collapse"> <!--<form class="" role="search" action="<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> ">--> <form class="navbar-form navbar-left no-border" role="search" action="<?php echo cblink(array('name' => 'search_result'), $_smarty_tpl); ?> "> <div class="input-group cbsearchtype"> <input type="text" class="form-control" name="query" placeholder="search keyword here" value="<?php echo get_form_val('query', true); ?> " id="query"> <div class="input-group-btn"> <input type="hidden" name="type" class="type" value="<?php if (isset($_GET['type'])) { echo $_GET['type']; } else { ?> videos<?php } ?> " id="type"> <button tabindex="-1" data-toggle="dropdown" class="btn btn-default dropdown-toggle search-drop-btn" type="button"> <span class="search-type"><?php if ($_GET['type']) { echo $_GET['type']; } else { ?> Videos<?php } ?> </span> <span class="caret"></span> <span class="sr-only">Toggle Dropdown</span> </button> <ul class="dropdown-menu" role="menu"> <?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 = 1; $_smarty_tpl->tpl_vars['counter']->nocache = null; $_smarty_tpl->tpl_vars['counter']->scope = 0; } else { $_smarty_tpl->tpl_vars['counter'] = new Smarty_variable(1, null, 0); } ?> <?php $_smarty_tpl->tpl_vars['t'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['t']->_loop = false; $_smarty_tpl->tpl_vars['stypes'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['Cbucket']->value->search_types; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['t']->key => $_smarty_tpl->tpl_vars['t']->value) { $_smarty_tpl->tpl_vars['t']->_loop = true; $_smarty_tpl->tpl_vars['stypes']->value = $_smarty_tpl->tpl_vars['t']->key; ?> <?php if ($_smarty_tpl->tpl_vars['counter']->value == 3) { ?> <li value="<?php echo $_smarty_tpl->tpl_vars['stypes']->value; ?> " <?php if ($_GET['type'] == $_smarty_tpl->tpl_vars['stypes']->value || $_GET['type'] == '') { ?> class="active" <?php } ?> > <a class="s-types" href="#"><?php echo ucfirst($_smarty_tpl->tpl_vars['stypes']->value); ?> </a> </li> <?php } else { ?> <li value="<?php echo $_smarty_tpl->tpl_vars['stypes']->value; ?> " <?php if ($_GET['type'] == $_smarty_tpl->tpl_vars['stypes']->value) { ?> class="active" <?php } ?> > <a class="s-types" href="#"><?php echo ucfirst($_smarty_tpl->tpl_vars['stypes']->value); ?> </a> </li> <?php } ?> <?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 } ?> </ul> <input tabindex="-1" type="submit" name="cbsearch" id="cbsearch" value="<?php echo smarty_lang(array('code' => 'Go'), $_smarty_tpl); ?> " class="btn btn-default minus-marginLeft" /> </div> </div> </form> </div> <ul class="nav navbar-nav main-nav navbar-collapse collapse manual-height left-margin-xero pad-left-xero" id="khulja-sim-sim"> <li class="dropdown hidden-xs mega-dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-bars"></i> Menu <span class="caret"></span></a> <ul class="dropdown-menu clearfix mega-dropdown-menu noclose"> <li class="col col-lg-3 col-md-3 col-sm-4 col-xs-12"> <div id="menCollection" class="carousel slide clearfix" data-ride="carousel"> <div class="carousel-inner"> <?php if (isset($_smarty_tpl->tpl_vars['videos'])) { $_smarty_tpl->tpl_vars['videos'] = clone $_smarty_tpl->tpl_vars['videos']; $_smarty_tpl->tpl_vars['videos']->value = get_videos(array("order" => "date_added DESC", "limit" => 4, "featured" => "yes")); $_smarty_tpl->tpl_vars['videos']->nocache = null; $_smarty_tpl->tpl_vars['videos']->scope = 0; } else { $_smarty_tpl->tpl_vars['videos'] = new Smarty_variable(get_videos(array("order" => "date_added DESC", "limit" => 4, "featured" => "yes")), null, 0); } ?> <?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'); } $_smarty_tpl->tpl_vars['video']->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars['video']->key => $_smarty_tpl->tpl_vars['video']->value) { $_smarty_tpl->tpl_vars['video']->_loop = true; $_smarty_tpl->tpl_vars['video']->iteration++; ?> <?php if ($_smarty_tpl->tpl_vars['video']->iteration == 1) { ?> <div class="item active"> <?php } else { ?> <div class="item"> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/videos/video_head.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </div> <?php } ?> </div><!-- End Carousel Inner --> <!-- Controls --> <a class="left carousel-control" href="#menCollection" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> <span class="sr-only">Previous</span> </a> <a class="right carousel-control" href="#menCollection" role="button" data-slide="next"> <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> </div><!-- /.carousel --> <?php } else { ?> <span class="well well-info btn-block"> No Featured Video Added ! </span> <?php } ?> </li> <li class="col col-lg-9 col-md-9 col-sm-8 clearfix col-xs-12"> <div class="col-lg-2 col-md-2 col-sm-4 col-xs-12"> <h2><i class="fa fa-video-camera"></i> Videos</h2> <?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); } ?> <?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; ?> <ul> <li class="head_sort_link"> <a class="" 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> </ul> <?php } ?> </div> <div class="col-lg-2 col-md-2 col-sm-4 col-xs-12"> <h2><i class="fa fa-camera"></i> Photos</h2> <?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); } ?> <?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; ?> <ul> <li class="head_sort_link"> <a class="" 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> </ul> <?php } ?> </div> <div class="col-lg-2 col-md-2 col-sm-4 col-xs-12"> <h2><i class="fa fa-desktop"></i> Channels</h2> <?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); } ?> <?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; ?> <ul> <li class="head_sort_link"> <a class="" 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> </ul> <?php } ?> </div> <div class="col-lg-2 col-md-2 col-sm-4 col-xs-12"> <h2><i class="fa fa-th-large"></i> Collections</h2> <?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); } ?> <?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; ?> <ul> <li class="head_sort_link"> <a class="" href="<?php echo cblink(array('name' => 'sort', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'collections'), $_smarty_tpl); ?> "><?php echo $_smarty_tpl->tpl_vars['name']->value; ?> </a> </li> </ul> <?php } ?> </div> <div class="col-lg-2 col-md-2 col-sm-4 col-xs-12"> <h2><i class="fa fa-users"></i> Groups</h2> <?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); } ?> <?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; ?> <ul> <li class="head_sort_link"> <a class="" href="<?php echo cblink(array('name' => 'sort', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'groups'), $_smarty_tpl); ?> "><?php echo $_smarty_tpl->tpl_vars['name']->value; ?> </a> </li> </ul> <?php } ?> </div> </li> </ul> </li> <?php $_smarty_tpl->tpl_vars['menu'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['menu']->_loop = false; $_from = $_smarty_tpl->tpl_vars['head_menu']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['menu']->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars['menu']->key => $_smarty_tpl->tpl_vars['menu']->value) { $_smarty_tpl->tpl_vars['menu']->_loop = true; $_smarty_tpl->tpl_vars['menu']->iteration++; ?> <li class="visible-xs"><a href="<?php echo $_smarty_tpl->tpl_vars['menu']->value['link']; ?> "><?php echo $_smarty_tpl->tpl_vars['menu']->value['icon']; ?> <?php echo $_smarty_tpl->tpl_vars['menu']->value['name']; ?> </a></li> <?php } ?> <?php if (userid()) { ?> <li class="dropdown hvr myaccount-dd hidden-lg hidden-md hidden-sm"> <span class="dropdown-toggle theme_color col-md-12" data-toggle="dropdown">Setting<b class="caret"></b></span> <ul class="dropdown-menu no-padding"> <li> <div class="adminthumb"> <a href="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->profile_link($_smarty_tpl->tpl_vars['logged_in_user']->value); ?> "> <img class="img-circle" src="<?php echo $_smarty_tpl->tpl_vars['usr_head_thumb']->value; ?> "/> <h4><?php echo $_smarty_tpl->tpl_vars['userquery']->value->username; ?> </h4> </a> </div> </li> <?php if (has_access('admin_access')) { ?> <li><a href="<?php echo $_smarty_tpl->tpl_vars['admin_baseurl']->value; ?> "><i class="fa fa-cogs"></i> <?php echo smarty_lang(array('code' => "Admin area"), $_smarty_tpl); ?> </a></li> <?php } ?> <li><a href="<?php echo cblink(array('name' => 'my_account'), $_smarty_tpl); echo userid(array(), $_smarty_tpl); ?> "><i class="fa fa-user"></i></i> <?php echo smarty_lang(array('code' => "my_account"), $_smarty_tpl); ?> </a></li> <?php echo ANCHOR(array('place' => 'premium_button_link'), $_smarty_tpl); ?> <li><a href="<?php echo cblink(array('name' => 'my_videos'), $_smarty_tpl); ?> "><i class="fa fa-video-camera"></i> <?php echo smarty_lang(array('code' => "Manage Videos"), $_smarty_tpl); ?> </a></li> <li><a href="<?php echo cblink(array('name' => 'channels'), $_smarty_tpl); ?> "><i class="fa fa-eye"></i> <?php echo smarty_lang(array('code' => "View Channels"), $_smarty_tpl); ?> </a></li> <li><a href="<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> /view_channel.php?user=<?php echo $_smarty_tpl->tpl_vars['userquery']->value->username; ?> "><i class="fa fa-desktop"></i> <?php echo smarty_lang(array('code' => "My Channel"), $_smarty_tpl); ?> </a></li> </ul> </li> <li class="dropdown hidden-lg hidden-md hidden-sm "> <a href="<?php echo cblink(array('name' => 'upload'), $_smarty_tpl); ?> " class="dropdown-toggle" data-toggle="dropdown"><?php echo smarty_lang(array('code' => "Uploads"), $_smarty_tpl); ?> <b class="caret"></b></a> <ul role="menu" class="dropdown-menu"> <li><a href="<?php echo cblink(array('name' => 'upload'), $_smarty_tpl); ?> "><?php echo smarty_lang(array('code' => "Upload Video"), $_smarty_tpl); ?> </a></li> <li><a href="<?php echo cblink(array('name' => 'photo_upload'), $_smarty_tpl); ?> "><?php echo smarty_lang(array('code' => "Upload Photo"), $_smarty_tpl); ?> </a></li> </ul> </li> <li class="navbar-sm-login-links"><a href="<?php echo cblink(array('name' => 'logout'), $_smarty_tpl); ?> "><?php echo smarty_lang(array('code' => 'logout'), $_smarty_tpl); ?> </a></li> <?php } else { ?> <!-- Shown to small devices only Start @todo : Add condition for logged in user --> <li class="navbar-sm-login-links"><a href="#" data-toggle="modal" data-target="#login-modal"><?php echo smarty_lang(array('code' => 'login'), $_smarty_tpl); ?> </a></li> <li class="navbar-sm-login-links"><a href="<?php echo cblink(array('name' => "signup"), $_smarty_tpl); ?> "><?php echo smarty_lang(array('code' => 'Create new account'), $_smarty_tpl); ?> </a></li> <!-- Ends --> <?php } ?> <?php if (count($_smarty_tpl->tpl_vars['head_menu']->value) > 4) { ?> <li class="dropdown"> <a href="#" class="dropdown-toggle visible-xs" data-toggle="dropdown">More <b class="caret"></b></a> <ul class="dropdown-menu"> <?php $_smarty_tpl->tpl_vars['menu'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['menu']->_loop = false; $_from = $_smarty_tpl->tpl_vars['head_menu']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['menu']->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars['menu']->key => $_smarty_tpl->tpl_vars['menu']->value) { $_smarty_tpl->tpl_vars['menu']->_loop = true; $_smarty_tpl->tpl_vars['menu']->iteration++; ?> <?php if ($_smarty_tpl->tpl_vars['menu']->iteration > 4) { ?> <li <?php if ($_GET['type'] == mb_strtolower($_smarty_tpl->tpl_vars['menu']->value['name'], 'UTF-8')) { ?> class="active" <?php } elseif (!$_GET['type']) { ?> <?php if ($_smarty_tpl->tpl_vars['menu']->value['active']) { ?> class="active"<?php } ?> <?php } ?> ><a href="<?php echo $_smarty_tpl->tpl_vars['menu']->value['link']; ?> "><?php echo $_smarty_tpl->tpl_vars['menu']->value['icon']; ?> <?php echo $_smarty_tpl->tpl_vars['menu']->value['name']; ?> </a></li> <?php } ?> <?php } ?> </ul> </li> <?php } ?> </ul> <!-- Shown to small devices only Start--> <form id="search" class="navbar-form navbar-search navbar-left" name="search" method="get" role="search" action="<?php echo cblink(array('name' => 'search_result'), $_smarty_tpl); ?> "> <div class="input-group mtxs cbsearchtype"> <input type="text" class="form-control" name="query" placeholder="search keyword here" value="<?php echo get_form_val('query', true); ?> " id="query"> <div class="input-group-btn"> <input type="hidden" name="type" class="type" value="<?php if (isset($_GET['type'])) { echo $_GET['type']; } else { ?> videos<?php } ?> " id="type"> <button tabindex="-1" data-toggle="dropdown" class="btn btn-default dropdown-toggle search-drop-btn" type="button"> <span class="search-type"><?php if ($_GET['type']) { echo $_GET['type']; } else { ?> Videos<?php } ?> </span> <span class="caret"></span> <span class="sr-only">Toggle Dropdown</span> </button> <ul class="dropdown-menu" role="menu"> <?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 = 1; $_smarty_tpl->tpl_vars['counter']->nocache = null; $_smarty_tpl->tpl_vars['counter']->scope = 0; } else { $_smarty_tpl->tpl_vars['counter'] = new Smarty_variable(1, null, 0); } ?> <?php $_smarty_tpl->tpl_vars['t'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['t']->_loop = false; $_smarty_tpl->tpl_vars['stypes'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['Cbucket']->value->search_types; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['t']->key => $_smarty_tpl->tpl_vars['t']->value) { $_smarty_tpl->tpl_vars['t']->_loop = true; $_smarty_tpl->tpl_vars['stypes']->value = $_smarty_tpl->tpl_vars['t']->key; ?> <?php if ($_smarty_tpl->tpl_vars['counter']->value == 3) { ?> <li value="<?php echo $_smarty_tpl->tpl_vars['stypes']->value; ?> " <?php if ($_GET['type'] == $_smarty_tpl->tpl_vars['stypes']->value || $_GET['type'] == '') { ?> class="active" <?php } ?> > <a class="s-types" href="#"><?php echo ucfirst($_smarty_tpl->tpl_vars['stypes']->value); ?> </a> </li> <?php } else { ?> <li value="<?php echo $_smarty_tpl->tpl_vars['stypes']->value; ?> " <?php if ($_GET['type'] == $_smarty_tpl->tpl_vars['stypes']->value) { ?> class="active" <?php } ?> > <a class="s-types" href="#"><?php echo ucfirst($_smarty_tpl->tpl_vars['stypes']->value); ?> </a> </li> <?php } ?> <?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 } ?> </ul> <input tabindex="-1" type="submit" name="cbsearch" id="cbsearch" value="<?php echo smarty_lang(array('code' => 'Go'), $_smarty_tpl); ?> " class="btn btn-default minus-marginLeft" /> </div> </div> </form> <!-- Ends --> <!-- Shown to Large displays only Start --> <ul class="nav navbar-nav navbar-right nav-login-btns"> <?php if (userid()) { ?> <li class="dropdown hvr myaccount-dd"> <span class="dropdown-toggle theme_color col-md-12" data-toggle="dropdown"> <img class="img-circle" src="<?php echo $_smarty_tpl->tpl_vars['usr_head_thumb']->value; ?> " style="width: 40px; height: 40px;"/> <b class="caret"></b></span> <ul class="dropdown-menu no-padding"> <li> <div class="adminthumb"> <a href="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->profile_link($_smarty_tpl->tpl_vars['logged_in_user']->value); ?> "> <img class="img-circle" src="<?php echo $_smarty_tpl->tpl_vars['usr_head_thumb']->value; ?> "/> <h4><?php echo $_smarty_tpl->tpl_vars['userquery']->value->username; ?> </h4> </a> </div> </li> <?php if (has_access('admin_access')) { ?> <li><a href="<?php echo $_smarty_tpl->tpl_vars['admin_baseurl']->value; ?> "><i class="fa fa-cogs"></i> <?php echo smarty_lang(array('code' => "Admin area"), $_smarty_tpl); ?> </a></li> <?php } ?> <li><a href="<?php echo cblink(array('name' => 'my_account'), $_smarty_tpl); echo userid(array(), $_smarty_tpl); ?> "><i class="fa fa-user"></i></i> <?php echo smarty_lang(array('code' => "my_account"), $_smarty_tpl); ?> </a></li> <?php echo ANCHOR(array('place' => 'premium_button_link'), $_smarty_tpl); ?> <li><a href="<?php echo cblink(array('name' => 'my_videos'), $_smarty_tpl); ?> "><i class="fa fa-video-camera"></i> <?php echo smarty_lang(array('code' => "Manage Videos"), $_smarty_tpl); ?> </a></li> <li><a href="<?php echo cblink(array('name' => 'channels'), $_smarty_tpl); ?> "><i class="fa fa-eye"></i> <?php echo smarty_lang(array('code' => "View Channels"), $_smarty_tpl); ?> </a></li> <li><a href="<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> /view_channel.php?user=<?php echo $_smarty_tpl->tpl_vars['userquery']->value->username; ?> "><i class="fa fa-desktop"></i> <?php echo smarty_lang(array('code' => "My Channel"), $_smarty_tpl); ?> </a></li> <li class="divider"></li> <li><a href="<?php echo cblink(array('name' => 'logout'), $_smarty_tpl); ?> "><i class="fa fa-sign-out"></i> <?php echo smarty_lang(array('code' => "Logout"), $_smarty_tpl); ?> </a></li> </ul> </li> <?php } else { ?> <li> <div class="mrl"> <a href="<?php echo cblink(array('name' => 'signup'), $_smarty_tpl); ?> " class="btn btn-primary btn-success btn-sm"><?php echo smarty_lang(array('code' => "Create Account"), $_smarty_tpl); ?> </a> <a href="#" data-toggle="modal" data-target="#login-modal" class="btn btn-primary btn-sm"><?php echo smarty_lang(array('code' => "Login"), $_smarty_tpl); ?> </a> </div> </li> <?php } ?> </ul> <!-- Ends --> <!-- Shown to Large displays only Start --> <?php if (userid()) { ?> <div class="upload-dropdown-btn-d hidden-xs "> <div class="btn-group"> <button title="Upload" class="btn btn-primary" type="button"> <a class="upload-vid-photo-icon" href="<?php echo cblink(array('name' => 'upload'), $_smarty_tpl); ?> ">Upload</a> </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 upload-dropdown"> <li><a href="<?php echo cblink(array('name' => 'upload'), $_smarty_tpl); ?> "><?php echo smarty_lang(array('code' => "Upload Video"), $_smarty_tpl); ?> </a></li> <li><a href="<?php echo cblink(array('name' => 'photo_upload'), $_smarty_tpl); ?> "><?php echo smarty_lang(array('code' => "Upload Photo"), $_smarty_tpl); ?> </a></li> </ul> </div> </div> <?php } ?> <!-- Ends --> <!-- SHown to middle size displays only @todo : Add condition for logged in user --> <ul class="nav navbar-nav navbar-right nav-login-dd"> <li class="search-form show-small-form pull-left mrxll" > <i class="glyphicon glyphicon-search cursor-pointer"></i> </li> <div class="form-small full-width"> <form action="<?php echo cblink(array('name' => 'search_result'), $_smarty_tpl); ?> " role="search" method="get" name="search_small" id="search_small"> <div class="input-group cbsearchtype"> <input type="text" class="form-control" name="query" value="<?php echo get_form_val('query', true); ?> " placeholder="search keyword here" id="query"> <div class="input-group-btn"> <input type="hidden" name="type" class="type" value="<?php if (isset($_GET['type'])) { echo $_GET['type']; } else { ?> videos<?php } ?> " id="type"> <button tabindex="-1" data-toggle="dropdown" class="btn btn-default dropdown-toggle search-drop-btn" type="button"> <span class="search-type"><?php if ($_GET['type']) { echo $_GET['type']; } else { ?> Videos<?php } ?> </span> <span class="caret"></span> <span class="sr-only">Toggle Dropdown</span> </button> <ul role="menu" class="dropdown-menu"> <?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 = 1; $_smarty_tpl->tpl_vars['counter']->nocache = null; $_smarty_tpl->tpl_vars['counter']->scope = 0; } else { $_smarty_tpl->tpl_vars['counter'] = new Smarty_variable(1, null, 0); } ?> <?php $_smarty_tpl->tpl_vars['t'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['t']->_loop = false; $_smarty_tpl->tpl_vars['stypes'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['Cbucket']->value->search_types; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['t']->key => $_smarty_tpl->tpl_vars['t']->value) { $_smarty_tpl->tpl_vars['t']->_loop = true; $_smarty_tpl->tpl_vars['stypes']->value = $_smarty_tpl->tpl_vars['t']->key; ?> <?php if ($_smarty_tpl->tpl_vars['counter']->value == 3) { ?> <li value="<?php echo $_smarty_tpl->tpl_vars['stypes']->value; ?> " <?php if ($_GET['type'] == $_smarty_tpl->tpl_vars['stypes']->value || $_GET['type'] == '') { ?> class="active" <?php } ?> > <a class="s-types" href="#"><?php echo ucfirst($_smarty_tpl->tpl_vars['stypes']->value); ?> </a> </li> <?php } else { ?> <li value="<?php echo $_smarty_tpl->tpl_vars['stypes']->value; ?> " <?php if ($_GET['type'] == $_smarty_tpl->tpl_vars['stypes']->value) { ?> class="active" <?php } ?> > <a class="s-types" href="#"><?php echo ucfirst($_smarty_tpl->tpl_vars['stypes']->value); ?> </a> </li> <?php } ?> <?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 } ?> </ul> <input tabindex="-1" type="submit" name="cbsearch" id="cbsearch" value="<?php echo smarty_lang(array('code' => 'Go'), $_smarty_tpl); ?> " class="btn btn-default minus-marginLeft" /> </div> </div> </form> </div> <?php if (userid()) { ?> <li class="dropdown hvr myaccount-dd"> <span class="dropdown-toggle theme_color col-md-12" data-toggle="dropdown"><img class="img-circle" src="<?php echo $_smarty_tpl->tpl_vars['usr_head_thumb']->value; ?> " style="width: 40px; height: 40px;"/><b class="caret"></b></span> <ul class="dropdown-menu"> <li> <div class="adminthumb"> <a href="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->profile_link($_smarty_tpl->tpl_vars['logged_in_user']->value); ?> "> <img class="img-circle" src="<?php echo $_smarty_tpl->tpl_vars['usr_head_thumb']->value; ?> "/> <h4><?php echo $_smarty_tpl->tpl_vars['userquery']->value->username; ?> </h4> </a> </div> </li> <?php if (has_access('admin_access')) { ?> <li><a href="<?php echo $_smarty_tpl->tpl_vars['admin_baseurl']->value; ?> "><?php echo smarty_lang(array('code' => "Admin area"), $_smarty_tpl); ?> </a></li> <?php } ?> <li><a href="<?php echo cblink(array('name' => 'my_account'), $_smarty_tpl); echo userid(array(), $_smarty_tpl); ?> "><?php echo smarty_lang(array('code' => "my_account"), $_smarty_tpl); ?> </a></li> <?php echo ANCHOR(array('place' => 'premium_button_link'), $_smarty_tpl); ?> <li><a href="<?php echo cblink(array('name' => 'my_videos'), $_smarty_tpl); ?> "><?php echo smarty_lang(array('code' => "Manage Videos"), $_smarty_tpl); ?> </a></li> <li><a href="<?php echo cblink(array('name' => 'channels'), $_smarty_tpl); ?> "><?php echo smarty_lang(array('code' => "View Channels"), $_smarty_tpl); ?> </a></li> <li class="divider"></li> <li><a href="<?php echo cblink(array('name' => 'logout'), $_smarty_tpl); ?> "><?php echo smarty_lang(array('code' => "Logout"), $_smarty_tpl); ?> </a></li> </ul> </li> <?php } else { ?> <li> <div class=" mlm mrm"> <a href="#" data-toggle="modal" data-target="#login-modal"><span class="glyphicon glyphicon-user"></span></a> </div> </li> <?php } ?> </ul> </div> </nav> <div class="modal fade" id="login-modal" role="dialog" aria-hidden="true"> <div class="modal-dialog"> <form name="login-form" role="form" action="<?php echo cblink(array('name' => 'signup'), $_smarty_tpl); ?> " method="post"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title"><?php echo smarty_lang(array('code' => "Login"), $_smarty_tpl); ?> </h4> </div> <div class="modal-body"> <div class="form-group"> <label for="login_username"><?php echo smarty_lang(array('code' => "Username"), $_smarty_tpl); ?> </label> <input type="text" class="form-control" id="login_username" name="username" placeholder="Enter username"> </div> <div class="form-group"> <label for="login_password"><?php echo smarty_lang(array('code' => "Password"), $_smarty_tpl); ?> </label> <input type="password" class="form-control" id="login_password" name="password" placeholder="Enter password"> </div> <div class="checkbox"> <label> <input type="checkbox"> <?php echo smarty_lang(array('code' => "Remember me"), $_smarty_tpl); ?> </label> </div> <div align="center"><a href="<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> /forgot.php"><?php echo smarty_lang(array('code' => 'user_forgot_password'), $_smarty_tpl); ?> </a> | <a href="<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> /forgot.php?mode=recover_username"><?php echo smarty_lang(array('code' => 'user_forgot_username'), $_smarty_tpl); ?> </a></div> </div> <div class="modal-footer"> <a href="<?php echo cblink(array('name' => 'signup'), $_smarty_tpl); ?> " class="btn btn-primary btn-success btn-sm pull-left"><?php echo smarty_lang(array('code' => "Create Account"), $_smarty_tpl); ?> </a> <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo smarty_lang(array('code' => "Cancel"), $_smarty_tpl); ?> </button> <input type="submit" class="btn btn-primary" value="<?php echo smarty_lang(array('code' => 'Login'), $_smarty_tpl); ?> " name="login"> </div> </div><!-- /.modal-content --> </form> </div><!-- /.modal-dialog --> </div><!-- /.modal --> <script> function rm_hvr() { if ( $(window).width() > 767 ) { $(".dropdown.hvr").on("mouseenter",function(){ $('.dropdown-menu', this).not('.in .dropdown-menu').stop(true,true).slideDown("400"); }); $(".dropdown.hvr").on("mouseleave",function(){ $('.dropdown-menu', this).not('.in .dropdown-menu').stop(true,true).slideUp("400"); }); } else { } } //header menu-width function function headerMenuWidth(){ var headerWidth = $(window).width(); $(".mega-dropdown-menu .col:nth-child(2)").css("width",headerWidth-350+"px"); } $(window).resize(function(){ rm_hvr(); headerMenuWidth(); }); $(document).ready(function(){ rm_hvr(); headerMenuWidth(); $(".cbsearchtype a").on({ click: function(e){ e.preventDefault(); var prent_li = $(this).parents(); $('.type').val($(this).html()); $('.cbsearchtype li').removeClass('active'); prent_li.addClass('active'); } }); $('.show-small-form').click(function() { $('.form-small').toggleClass('show'); }); $('.s-types').on("click", function(){ var _this = $(this); var text = _this.html(); $('.search-type').html(text); }); }); </script><?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 }
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 }