function addNewTab($params = NULL) { if ($params == NULL) { $params = $_POST; } if (empty($params['name'])) { e(lang("tab_name_is_empty")); } if (!$this->validURL($params['link_name'])) { return false; } if (!error()) { $menuName = $params['name']; $cbLink = cblink(array('name' => strtolower($params['link_name']))); if ($cbLink) { $fullURL = $cbLink; } elseif ($params['noBASEURL']) { $fullURL = $params['link_name']; } else { $fullURL = BASEURL . "/" . $params['link_name']; } $resultArray = array("name" => $menuName, "link" => $fullURL, "this" => strtolower($menuName)); return $resultArray; } }
/** * Function used to replace content * of email template with variables * it can either be email subject or message content * @param : Content STRING * @param : array ARRAY => array({somevar}=>$isvar) */ function replace($content, $array) { //Common Varialbs $com_array = array('{website_title}' => TITLE, '{baseurl}' => BASEURL, '{website_url}' => BASEURL, '{date_format}' => cbdate(DATE_FORMAT), '{date}' => cbdate(), '{username}' => username(), '{userid}' => userid(), '{date_year}' => cbdate("Y"), '{date_month}' => cbdate("m"), '{date_day}' => cbdate("d"), '{signup_link}' => cblink(array('name' => 'signup')), '{login_link}' => cblink(array('name' => 'login'))); if (is_array($array) && count($array) > 0) { $array = array_merge($com_array, $array); } else { $array = $com_array; } foreach ($array as $key => $val) { $var_array[] = '/' . $key . '/'; $val_array[] = $val; } return preg_replace($var_array, $val_array, $content); }
/** * Function used to turn tags into links */ function tags($input, $type, $sep = ', ') { //Exploding using comma $tags = explode(',', $input); $count = 1; $total = count($tags); $new_tags = ''; foreach ($tags as $tag) { $params = array('name' => 'tag', 'tag' => trim($tag), 'type' => $type); $new_tags .= '<a href="' . cblink($params) . '">' . $tag . '</a>'; if ($count < $total) { $new_tags .= $sep; } $count++; } return $new_tags; }
/** * Setting links up in my account Edited on 12 march 2014 for collections links */ function setting_up_collections() { global $userquery, $Cbucket; $per = $userquery->get_user_level(userid()); // Adding My Account Links if (isSectionEnabled('collections')) { $userquery->user_account[lang('Collections')] = array(lang('add_new_collection') => cblink(array('name' => 'manage_collections', 'extra_params' => 'mode=add_new')), lang('manage_collections') => cblink(array('name' => 'manage_collections')), lang('manage_favorite_collections') => cblink(array('name' => 'manage_collections', 'extra_params' => 'mode=favorite'))); } // Adding Search Type //if(isSectionEnabled('collections')) //$Cbucket->search_types['collections'] = "cbcollection"; // Adding Collection links in Admin Area if ($per['collection_moderation'] == "yes") { $Cbucket->AdminMenu['Collections'] = array(lang('Manage Collections') => 'collection_manager.php', lang('Manage Categories') => 'collection_category.php', lang('Flagged Collections') => 'flagged_collections.php'); } // Adding Collection links in Cbucket Class $Cbucket->links['collections'] = array('collections.php', 'collections/'); $Cbucket->links['manage_collections'] = array('manage_collections.php', 'manage_collections.php'); $Cbucket->links['edit_collection'] = array('manage_collections.php?mode=edit_collection&cid=', 'manage_collections.php?mode=edit_collection&cid='); $Cbucket->links['manage_items'] = array('manage_collections.php?mode=manage_items&cid=%s&type=%s', 'manage_collections.php?mode=manage_items&cid=%s&type=%s'); $Cbucket->links['user_collections'] = array('user_collections.php?mode=uploaded&user='******'user_collections.php?mode=uploaded&user='******'user_fav_collections'] = array('user_collections.php?mode=favorite&user='******'user_collections.php?mode=favorite&user='); }
/** * get user menu links * * these links are listed on user menu found on right top on default template * you can move the menu however. * * @param NULL * @return Array of links */ function get_user_menu_links() { $array = array('videos' => array('name' => lang('Videos'), 'link' => cblink(array('name' => 'videos')))); $new_array = apply_filters($array, 'user_menu_links'); return $new_array; }
function displayCollpasedListCateogry($catArray, $params) { $html = ''; foreach ($catArray as $catID => $cat) { if ($_GET['cat'] == $catID || empty($_GET['cat']) && $cat['category_id'] == 'all') { $selected = "selected"; } else { $selected = ""; } if ($params['class']) { $class = $params['class']; } $html .= "<li class='cbCategoryItem " . $class . $selected . "'"; if ($params['id']) { $html .= " id = '" . $params['id'] . "'"; } $html .= ">"; $id = '"#' . $catID . '_categories"'; if (array_key_exists($catID, $_COOKIE)) { $property = $_COOKIE[$catID]; if ($property == "expanded") { $display = "block"; } if ($property == "collapsed") { $display = "none"; } } else { $display = "none"; } if ($cat['children']) { $html .= "<span id='" . $cat['category_id'] . "_toggler' alt='" . $cat['category_id'] . "_categories' class='CategoryToggler " . $display . "' onclick='toggleCategory(this);'> </span>"; } $html .= "<a href='" . cblink(array("name" => "category", "data" => $cat, "type" => $params['type'])) . "'>" . $cat['category_name'] . "</a>"; if ($cat['children']) { $html .= "<ul id='" . $catID . "_categories' class='sub_categories' style='display:" . $display . "'>"; $html .= $this->displayCollpasedListCateogry($cat['children'], $params); $html .= "</ul>"; } $html .= "</li>"; } return $html; }
/** * Function used to generate RSS FEED links */ function rss_feeds($params) { /** * setting up the feeds arrays.. * if you want to call em in your functions..simply call the global variable $rss_feeds */ $rss_link = cblink(array("name" => "rss")); $rss_feeds = array(); $rss_feeds[] = array("title" => "Recently added videos", "link" => $rss_link . "recent"); $rss_feeds[] = array("title" => "Most Viewed Videos", "link" => $rss_link . "views"); $rss_feeds[] = array("title" => "Top Rated Videos", "link" => $rss_link . "rating"); $rss_feeds[] = array("title" => "Videos Being Watched", "link" => $rss_link . "watching"); $rss_feeds = apply_filters($rss_feeds, 'rss_feeds'); $funcs = get_functions('rss_feeds'); if (is_array($funcs)) { foreach ($funcs as $func) { return $func($params); } } if ($params['link_tag']) { foreach ($rss_feeds as $rss_feed) { echo "<link rel=\"alternate\" type=\"application/rss+xml\"\n\t\t\t\ttitle=\"" . $rss_feed['title'] . "\" href=\"" . $rss_feed['link'] . "\" />\n"; } } }
$content['html'] .= '</div>'; } else { $content['html'] = '<div align="center"><em>' . sprintf(lang('user_no_subscriptions'), $u['username']) . '</em></div>'; } break; case "subscribers": $limit = config('users_items_subscribers'); $subscribers = $userquery->get_user_subscribers_detail($u['userid'], $limit); if ($subscribers) { foreach ($subscribers as $subscriber) { assign('user', $subscriber); assign('channelUser', 'subscribers'); $content['html'] .= Fetch("/blocks/user.html"); } $content['html'] .= '<div align="right" class="clearfix channelAjaxMoreLink subscribersMoreLink" style="clear:both; display:block;">'; $content['html'] .= '<a href="' . cblink(array("name" => "user_subscribers")) . $u['username'] . '">' . lang('more') . '</a>'; $content['html'] .= '</div>'; } else { $content['html'] = '<div align="center"><em>' . sprintf(lang('user_no_subscribers'), $u['username']) . '</em></div>'; } break; case "info": break; } if ($content) { echo json_encode($content); } break; case "viewCollectionRating": $cid = mysql_clean($_POST['cid']); $returnedArray = $cbcollection->collection_voters($cid);
function displayCollpasedListCateogry($catArray, $params) { $html = ''; foreach ($catArray as $catID => $cat) { if ($_GET['cat'] == $catID || empty($_GET['cat']) && $cat['category_id'] == 'all') { $selected = "selected"; } else { $selected = ""; } if ($params['class']) { $class = $params['class']; } $class = form_val($class); $add_class = form_val($add_class); //$selected = form_val($selected); $html .= "<li class='cbCategoryItem " . $class . $selected . $add_class . "'"; if ($params['id']) { $html .= " id = '" . $params['id'] . "'"; } $html .= ">"; $id = '"#' . $catID . '_categories"'; if (array_key_exists($catID, $_COOKIE)) { $property = $_COOKIE[$catID]; if ($property == "expanded") { $display = "block"; } if ($property == "collapsed") { $display = "none"; } } else { $display = "none"; } if ($cat['children']) { $html .= "<span id='" . $cat['category_id'] . "_toggler' data-target='#cat" . $cat['category_id'] . "' data-toggle='collapse' class='CategoryToggler " . $display . "' aria-expanded='false' aria-controls='cat" . $cat['category_id'] . "'> </span>"; } $html .= "<a class='" . $toggle . "' '" . $data_toggle . "' href='" . cblink(array("name" => "category", "data" => $cat, "type" => $params['type'])) . "'>" . $cat['category_name'] . $add_caret . "</a>"; if ($cat['children']) { $html .= "<ul id='cat" . $catID . "' class='collapse'>"; $html .= $this->displayCollpasedListCateogry($cat['children'], $params); $html .= "</ul>"; } $html .= "</li>"; } return $html; }
} //Login User if (isset($_POST['login'])) { $username = $_POST['username']; $username = mysql_clean(clean($username)); $password = mysql_clean(clean($_POST['password'])); $remember = false; if ($_POST['rememberme']) { $remember = true; } if ($userquery->login_user($username, $password, $remember)) { if (cb_get_functions('login_success')) { cb_call_functions('login_success'); } if ($_COOKIE['pageredir']) { redirect_to($_COOKIE['pageredir']); } else { redirect_to(cblink(array('name' => 'my_account'))); } } } //Checking Ban Error if (!isset($_POST['login']) && !isset($_POST['signup'])) { if (@$_GET['ban'] == true) { $msg = lang('usr_ban_err'); } } subtitle(lang("signup")); //Displaying The Template template_files('signup.html'); display_it();
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 }
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_55e5e4ce90b655_79574654($_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"> <!-- Brand and toggle get grouped for better mobile display --> <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 echo ANCHOR(array('place' => 'premium_button'), $_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 $_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 $_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"> <?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 < 5) { ?> <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 } ?> <?php if (userid()) { ?> <li class="dropdown 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> <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" 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 $_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 $_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 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> <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 $_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 $_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 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> <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> <!-- Ends --> </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> $(document).ready(function(){ $(".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 }
| @ Author : Murat Esgin (lavinya http://www.videoizlepaylas.com ) | @ Software : Video Media Sitemap for ClipBucket , © PHPBucket.com ********************************************************** */ require 'includes/config.inc.php'; '<?xml version="1.0" encoding="utf-8"?>' . "\n"; header("Content-type: text/xml; charset=utf-8"); ?> <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> <ShortName><?php echo TITLE; ?> </ShortName> <Description><?php echo $row['description']; ?> </Description> <Url type="text/html" method="get" template="<?php echo cblink(array('name' => 'search_result')); ?> ?query={searchTerms}"/> <Image width="16" height="16"><?php echo BASEURL; ?> /favicon.ico</Image> <InputEncoding>UTF-8</InputEncoding> <SearchForm><?php echo BASEURL; ?> </SearchForm> </OpenSearchDescription>
/** * My Account links */ function my_account_links() { $array[lang('account')] = array(lang('my_account') => 'myaccount.php', lang('block_users') => 'edit_account.php?mode=block_users', lang('user_change_pass') => 'edit_account.php?mode=change_password', lang('user_change_email') => 'edit_account.php?mode=change_email', lang('com_manage_subs') => 'edit_account.php?mode=subscriptions'); $array[lang('user_channel_profiles')] = array(lang('account_settings') => 'edit_account.php?mode=account', lang('user_profile_settings') => 'edit_account.php?mode=profile', lang('change_avatar') => 'edit_account.php?mode=avatar_bg', lang('change_bg') => 'edit_account.php?mode=avatar_bg'); if (isSectionEnabled('videos')) { $array[lang('videos')] = array(lang('uploaded_videos') => 'manage_videos.php', lang('user_fav_videos') => 'manage_videos.php?mode=favorites'); } if (isSectionEnabled('groups')) { $array[lang('groups')] = array(lang('grp_groups_title') => 'manage_groups.php', lang('user_create_group') => cblink(array('name' => 'create_group')), lang('grp_joined_groups') => 'manage_groups.php?mode=joined'); } if (isSectionEnabled('playlists')) { $array[lang('playlists')] = array(lang('manage_playlists') => 'manage_playlists.php', lang('video_playlists') => 'manage_playlists.php?mode=manage_video_playlist'); global $cbvid; $builtin_playlists = $cbvid->builtin_playlists; if ($builtin_playlists) { foreach ($builtin_playlists as $playlist) { $pid = $playlist['playlist_id']; $category = $playlist['category']; $name = lang($category); $array[lang('playlists')][$category] = 'manage_playlists.php?' . 'mode=edit_playlist' . '&pid=' . $pid . '&category=' . $category; } } } $array[lang('messages')] = array(lang('inbox') => 'private_message.php?mode=inbox', lang('notifications') => 'private_message.php?mode=notification', lang('sent') => 'private_message.php?mode=sent', lang('title_crt_new_msg') => cblink(array('name' => 'compose_new'))); if (isSectionEnabled('channels')) { $array[lang('contacts')] = array(lang('com_manage_contacts') => 'manage_contacts.php?mode=manage', lang('add_contact_list') => 'manage_contacts.php?mode=new_group'); } if (count($this->user_account) > 0) { foreach ($this->user_account as $key => $acc) { if (array_key_exists($key, $array)) { foreach ($acc as $title => $link) { $array[$key][$title] = $link; } } else { $array[$key] = $acc; } } //$array = array_merge($array,$this->user_account); } return $array; }
<?php /** * @Author Arslan Hassan * @since v3.0 * @package ClipBucket * * Creates Admin and Front Menu */ //Adding Main Menus in Admin Panel; $menus = array('settings' => array('title' => lang('Settings'), 'icon' => 'icon-settings icon-v3', 'id' => 'settings', 'access' => 'admin_access'), 'members' => array('title' => lang('Members Manager'), 'id' => 'members-manager', 'icon' => 'icon-user', 'access' => 'member_moderation'), 'videos' => array('title' => lang('Videos Manager'), 'id' => 'videos-manager', 'icon' => 'icon-film', 'access' => 'video_moderation'), 'groups' => array('title' => lang('Groups Manager'), 'id' => 'groups-manager', 'icon' => 'icon-groups icon-v3', 'access' => 'group_moderation'), 'ads' => array('title' => lang('Ads Manager'), 'id' => 'ads-manager', 'icon' => 'icon-coins icon-v3', 'access' => 'ad_manager_access'), 'templates' => array('title' => lang('Template Manager'), 'id' => 'template-manager', 'icon' => 'icon-adjustment icon-v3', 'access' => 'manage_template_access'), 'plugins' => array('title' => lang('Plugins Manager'), 'id' => 'plugins-manager', 'icon' => 'icon-plugins icon-v3', 'access' => 'plugins_moderation'), 'tools' => array('title' => lang('Tool Box'), 'id' => 'tool-box', 'icon' => 'icon-wrench', 'access' => 'tool_box'), 'misc' => array('title' => lang('Miscellaneous'), 'id' => 'miscellaneous', 'icon' => 'icon-cog', 'access' => 'admin_access')); add_admin_menus($menus); $submenus = array('settings' => array(array('title' => lang('Reports'), 'link' => 'reports.php'), array('title' => lang('Settings'), 'link' => 'main.php'), array('title' => lang('Email Settings'), 'link' => 'email_settings.php'), array('title' => lang('Language Settings'), 'link' => 'language_settings.php'), array('title' => lang('Conversion Settings'), 'link' => 'conversion_settings.php')), 'members-manager' => array(array('title' => lang('Manage Members'), 'link' => 'members.php'), array('title' => lang('Add Member'), 'link' => 'add_member.php'), array('title' => lang('Manage categories'), 'link' => 'user_category.php'), array('title' => lang('User Levels'), 'link' => 'user_levels.php'), array('title' => lang('Search Members'), 'link' => 'members.php?view=search'), array('title' => lang('Inactive Only'), 'link' => 'members.php?search=yes&status=ToActivate'), array('title' => lang('Active Only'), 'link' => 'members.php?search=yes&status=Ok'), array('title' => lang('Reported Users'), 'link' => 'flagged_users.php'), array('title' => lang('Mass Email'), 'link' => 'mass_email.php')), 'videos-manager' => array(array('title' => lang('Videos Manager'), 'link' => 'video_manager.php'), array('title' => lang('Manage Categories'), 'link' => 'category.php'), array('title' => lang('List Flagged Videos'), 'link' => 'flagged_videos.php'), array('title' => lang('Upload Videos'), 'link' => 'mass_uploader.php'), array('title' => lang('List Inactive Videos'), 'link' => 'video_manager.php?search=search&active=no')), 'groups-manager' => array(array('title' => lang('Add Group'), 'link' => 'add_group.php'), array('title' => lang('Manage Groups'), 'link' => 'groups_manager.php'), array('title' => lang('Manage Categories'), 'link' => 'group_category.php?view=show_category'), array('title' => lang('View Inactive Groups'), 'link' => 'groups_manager.php?active=no&search=yes'), array('title' => lang('View Reported Groups'), 'link' => 'flagged_groups.php')), 'ads-manager' => array(array('title' => lang('Manage Advertisments'), 'link' => 'ads_manager.php'), array('title' => lang('Manage Placements'), 'link' => 'ads_add_placements.php'), array('title' => lang('icon'), 'link' => 'icon-coins icon-v3')), 'template-manager' => array(array('title' => lang('Templates Manager'), 'link' => 'templates.php'), array('title' => lang('Templates Editor'), 'link' => 'template_editor.php'), array('title' => lang('Players Manager'), 'link' => 'manage_players.php'), array('title' => lang('Player Settings'), 'link' => 'manage_players.php?mode=show_settings'), array('title' => lang('icon'), 'link' => 'icon-adjustment icon-v3')), 'plugins-manager' => array(array('title' => lang('Plugin Manager'), 'link' => 'plugin_manager.php')), 'tool-box' => array(array('title' => lang('PHP Info'), 'link' => 'phpinfo.php'), array('title' => lang('View online users'), 'link' => 'online_users.php'), array('title' => lang('Server Modules Info'), 'link' => 'cb_mod_check.php'), array('title' => lang('Conversion Queue Manager'), 'link' => 'cb_conversion_queue.php'), array('title' => lang('ReIndexer'), 'link' => 'reindex_cb.php'), array('title' => lang('Conversion Lab α'), 'link' => 'conversion_lab.php'), array('title' => lang('Repair video duration'), 'link' => 'repair_vid_duration.php'), array('title' => lang('Maintenance'), 'link' => 'maintenance.php', 'access' => 'web_config_access'))); add_admin_sub_menus($submenus); /** * Adding Widgets Menu */ add_admin_sub_menu(array('title' => lang('Widgets'), 'id' => 'widgets', 'parent_id' => 'template-manager', 'link' => ADMIN_BASEURL . '/widgets.php')); /** * Adding Navigation */ $items = array(array('title' => lang('Home'), 'link' => BASEURL, 'section' => 'home', 'icon' => 'icon-home icon-white'), array('title' => lang('Videos'), 'link' => cblink(array('name' => 'videos')), 'section' => 'videos', 'icon' => 'icon-film icon-white'), array('title' => lang('Members'), 'link' => cblink(array('name' => 'channels')), 'section' => 'channels', 'icon' => 'icon-user icon-white'), array('title' => lang('Groups'), 'link' => cblink(array('name' => 'groups')), 'section' => 'groups', 'icon' => 'icon-th-large icon-white'), array('title' => lang('Photos'), 'link' => cblink(array('name' => 'photos')), 'section' => 'photos', 'icon' => 'icon-white icon-picture')); add_menu('navigation', $items); /** * Creating user head menu */ $items = array(array('title' => lang('Account'), 'link' => cblink(array('name' => 'my_account')), 'section' => 'home', 'icon' => 'icon-home'), array('title' => lang('Videos'), 'link' => cblink(array('name' => 'my_videos')), 'section' => 'home', 'icon' => 'icon-home'), array('title' => lang('Photos'), 'link' => cblink(array('name' => 'my_photos')), 'section' => 'home', 'icon' => 'icon-home'), array('title' => lang('Settings'), 'link' => cblink(array('name' => 'my_photos')), 'section' => 'home', 'icon' => 'icon-home')); add_menu('user_head_menu', $items);
<?php require_once '../includes/admin_config.php'; $userquery->admin_login_check(); header("location:" . cblink(array("name" => "create_group")));
/** * Function used return collection links */ function collection_links($details, $type = NULL) { if (is_array($details)) { if (empty($details['collection_id'])) { return BASEURL; } else { $cdetails = $details; } } else { if (is_numeric($details)) { $cdetails = $this->get_collection($details); } else { return BASEURL; } } if (!empty($cdetails)) { if ($type == NULL || $type == "main") { if (SEO == 'yes') { return BASEURL . "/collections"; } else { return BASEURL . "/collections.php"; } } elseif ($type == "vc" || $type == "view_collection" || $type == "view") { if (SEO == 'yes') { return BASEURL . "/collection/" . $cdetails['collection_id'] . "/" . $cdetails['type'] . "/" . SEO($cdetails['collection_name']) . ""; } else { return BASEURL . "/view_collection.php?cid=" . $cdetails['collection_id'] . "&type=" . $cdetails['type']; } } elseif ($type == "vi" || $type == "view_item" || $type == "item") { //$item_type = $this->get_collection_field($cdetails['collection_id'],'type'); if ($cdetails['videoid']) { $item_type = 'videos'; } else { $item_type = 'photos'; } switch ($item_type) { case "videos": case "v": if (SEO == "yes") { return BASEURL . "/item/" . $item_type . "/" . $details['collection_id'] . "/" . $details['videokey'] . "/" . SEO(clean(str_replace(' ', '-', $details['title']))); } else { return BASEURL . "/view_item.php?item=" . $details['videokey'] . "&type=" . $item_type . "&collection=" . $details['collection_id']; } break; case "photos": case "p": if (SEO == "yes") { return BASEURL . "/item/" . $item_type . "/" . $details['collection_id'] . "/" . $details['photo_key'] . "/" . SEO(clean(str_replace(' ', '-', $details['photo_title']))); } else { return BASEURL . "/view_item.php?item=" . $details['photo_key'] . "&type=" . $item_type . "&collection=" . $details['collection_id']; } break; } } elseif ($type == 'load_more' || $type == 'more_items' || $type == 'moreItems') { if (empty($cdetails['page_no'])) { $cdetails['page_no'] = 2; } if (SEO == 'yes') { return "?cid=" . $cdetails['collection_id'] . "&type=" . $cdetails['type'] . "&page=" . $cdetails['page_no']; } else { return "?cid=" . $cdetails['collection_id'] . "&type=" . $cdetails['type'] . "&page=" . $cdetails['page_no']; } } else { if ($type == 'edit' || $type == 'edit_collection') { return cblink(array('name' => 'edit_collection')) . $cdetails['collection_id']; } else { if ($type == 'manage_items') { return sprintf(cblink(array('name' => 'manage_items')), $cdetails['collection_id'], $cdetails['type']); } } } } else { return BASEURL; } }
/** * Setting other things */ function setting_other_things() { global $userquery, $Cbucket; // Search type if (isSectionEnabled('photos')) { $Cbucket->search_types['photos'] = "cbphoto"; } // My account links $accountLinks = array(); $accountLinks = array(lang('manage_photos') => "manage_photos.php", lang('manage_favorite_photos') => "manage_photos.php?mode=favorite", lang('Manage Avatars') => "manage_photos.php?mode=avatars", lang('manage_my_album') => "manage_photos.php?mode=my_album"); if (isSectionEnabled('photos')) { $userquery->user_account[lang('Photos')] = $accountLinks; } //Setting Cbucket links $Cbucket->links['photos'] = array('photos.php', 'photos/'); $Cbucket->links['manage_photos'] = array('manage_photos.php', 'manage_photos.php'); $Cbucket->links['edit_photo'] = array('edit_photo.php?photo=', 'edit_photo.php?photo='); $Cbucket->links['photo_upload'] = array('photo_upload.php', 'photo_upload'); $Cbucket->links['manage_favorite_photos'] = array('manage_photos.php?mode=favorite', 'manage_photos.php?mode=favorite'); $Cbucket->links['manage_orphan_photos'] = array('manage_photos.php?mode=orphan', 'manage_photos.php?mode=orphan'); $Cbucket->links['user_photos'] = array('user_content.php?object_group=content&object=photos&user='******'user_content.php?object_group=content&object=photos&user='******'user_fav_photos'] = array('user_content.php?object_group=content&object=photos&content_type=favorite&user='******'user_content.php?object_group=content&object=photos&content_type=favorite&user='******'navigation', lang('Photos'), cblink(array("name" => "photos")), "photos", "icon-picture icon-white"); // Adding photo upload options register_upload_option(array('object' => 'photos', 'title' => lang('Upload from computer'), 'description' => lang('Upload photos from your computer. Supported formats are <i>' . implode(', ', $this->exts) . '</i>'), 'function' => 'load_photo_plupload_block')); $plupload_js_files = array(MODULES_URL . '/uploader/plupload/plupload.js', MODULES_URL . '/uploader/plupload/plupload.html5.js', MODULES_URL . '/uploader/plupload/plupload.flash.js'); add_js($plupload_js_files, 'photo_upload'); }
/** * Function used to load head menu */ function foot_menu($params = NULL) { global $cbpage; $this->foot_menu[] = array('name' => lang("menu_home"), 'link' => BASEURL, "this" => "home"); $this->foot_menu[] = array('name' => lang("contact_us"), 'link' => cblink(array('name' => 'contact_us')), "this" => "home"); if (userid()) { //$this->foot_menu[] = array('name' => lang("my_account"), 'link' => cblink(array('name' => 'my_account')), "this" => "home"); $pages = $cbpage->get_pages(array('active' => 'yes', 'display_only' => 'yes', 'order' => 'page_order ASC')); } if ($pages) { foreach ($pages as $p) { $this->foot_menu[] = array('name' => $p['page_name'], 'link' => $cbpage->page_link($p), "this" => "home"); } } // if($cbpage->is_active(2)) // $this->foot_menu[] = array('name'=>lang("privacy_policy"),'link'=>$cbpage->get_page_link(2),"this"=>"home"); // // if($cbpage->is_active(3)) // $this->foot_menu[] = array('name'=>lang("terms_of_serivce"),'link'=>$cbpage->get_page_link(3),"this"=>"home"); // // if($cbpage->is_active(4)) // $this->foot_menu[] = array('name'=>lang("help"),'link'=>$cbpage->get_page_link(4),"this"=>"groups"); // if ($params['assign']) { assign($params['assign'], $this->foot_menu); } else { return $this->foot_menu; } }
function content_55e44589108ab4_55442583($_smarty_tpl) { if ($_smarty_tpl->tpl_vars['step']->value == 1 || $_smarty_tpl->tpl_vars['step']->value == '') { ?> <div id="uploadMessage" class=""></div> <div class="container"> <div class="cb-box progress-container overallProgressContainer hidden" id="overallProgressContainer"> <div class="row"> <div class="col-md-12"> <div class="col-md-2" id="uploadedFilesInfo"> <p>Uploaded 0 of 0</p> </div> <div class="col-md-10"> <div class="progress"> <div id="overallProgress" class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 0%"> <span class="sr-only">40% Complete (success)</span> </div> </div> </div> </div> <!-- <div class="col-md-2"> <a id="uploadFiles" class="btn btn-success" href="javascript:;"> Upload </a> </div> --> </div> </div> </div> <div class="container"> <div class="cb-box marginTop" id="mainUploadContainer"> <div class="pad-bottom video-info-container tabs-bar-style"> <ul class="nav nav-tabs uploaderTabs"> <li class="active"><a href="#file-upload" data-toggle="tab">Photo Upload</a></li> </ul> <div class="tab-content uploadFormDiv"> <div class="tab-pane fade in active clearfix" id="file-upload"> <div class="instructions alert alert-block alert-info"> <?php echo smarty_lang(array('code' => 'upload_right_guide_photo'), $_smarty_tpl); ?> </div> <div class="clearfix" id="uploaderContainer"> <?php if ($_smarty_tpl->tpl_vars['c']->value) { ?> <div class="alert alert-info" role="alert">Photo will be uploaded into <strong><i><?php echo $_smarty_tpl->tpl_vars['c']->value['collection_name']; ?> </i></strong> Collection</div> <?php } else { ?> <h4 class="h4">Select Collection</h4> <div class="row"> <div id="SelectionDIV" class="col-md-9"> <?php if ($_smarty_tpl->tpl_vars['collections']->value) { ?> <div class="form-group"> <select class="form-control" id="collectionSelection" name="collectionSelection"> <?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['item']->_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['item']->key => $_smarty_tpl->tpl_vars['item']->value) { $_smarty_tpl->tpl_vars['item']->_loop = true; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['item']->value['collection_id']; ?> "><?php echo $_smarty_tpl->tpl_vars['item']->value['collection_name']; ?> </option> <?php } ?> </select> </div> <?php } else { ?> <p class="alert alert-danger">No Collection Found! You must create a collection before uploading any photo</p> <div class="form-group"> <label>Select Collection</label> <select class="form-control" id="collectionSelection" name="collectionSelection"> <option value="0">no collection found</option> </select> </div> <?php } ?> </div> <div class="col-md-3 text-center"> <a href="#" class="btn btn-success" id="createNewCollection"> Create New Collection </a> </div> </div> <?php } ?> <div class="row"> <div class="col-md-10 col-md-offset-1"> <div class="manageCollection"> <div id="CollectionDIV" style="display:none"> <form action="#" type="post"> <h3>Create New Collection</h3> <?php if (isset($_smarty_tpl->tpl_vars['reqFields'])) { $_smarty_tpl->tpl_vars['reqFields'] = clone $_smarty_tpl->tpl_vars['reqFields']; $_smarty_tpl->tpl_vars['reqFields']->value = $_smarty_tpl->tpl_vars['cbcollection']->value->load_required_fields(); $_smarty_tpl->tpl_vars['reqFields']->nocache = null; $_smarty_tpl->tpl_vars['reqFields']->scope = 0; } else { $_smarty_tpl->tpl_vars['reqFields'] = new Smarty_variable($_smarty_tpl->tpl_vars['cbcollection']->value->load_required_fields(), null, 0); } ?> <?php $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['field']->_loop = false; $_from = $_smarty_tpl->tpl_vars['reqFields']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) { $_smarty_tpl->tpl_vars['field']->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['id'] != 'type') { ?> <div class="form-group"> <label for="<?php echo $_smarty_tpl->tpl_vars['field']->value['id']; ?> "><?php echo $_smarty_tpl->tpl_vars['field']->value['title']; ?> </label> <?php $_smarty_tpl->createLocalArrayVariable('field', null, 0); $_smarty_tpl->tpl_vars['field']->value['class'] = 'form-control'; ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['type'] == 'checkbox') { ?> <?php $_smarty_tpl->createLocalArrayVariable('field', null, 0); $_smarty_tpl->tpl_vars['field']->value['label_class'] = 'checkbox'; ?> <?php $_smarty_tpl->createLocalArrayVariable('field', null, 0); $_smarty_tpl->tpl_vars['field']->value['notShowSeprator'] = true; ?> <?php } ?> <?php echo $_smarty_tpl->tpl_vars['formObj']->value->createField($_smarty_tpl->tpl_vars['field']->value); ?> </div> <?php } ?> <?php } ?> <div class="moveR" style="float:left; margin:0px 5px 0 5px";> <button type="button" id="addNewCollection" class="btn btn-success"> Add Collection </button> </div> <div style="float:left; margin:0px 5px 0 5px;"> <button type="button" id="cancelAddCollection" class="btn btn-success"> Cancel </button> </div> </form> </div> </div> </div> </div> <?php if ($_smarty_tpl->tpl_vars['collections']->value) { ?> <div class="upload-area col-md-12 clearfix"> <div class="fileUploaderForm"> <div class="dragDropContainer clearfix" id="dragDrop"> <span class="upload-logo"></span> <strong class="block-title">Drag & Drop Files Here</strong> <p>Video can be 1000 MB in size, 120 Min in Duration and Any common format You can also upload HD videos</p> </div> <div class="selectButtonContainer"> <a id="selectFiles" href="javascript:;" class="btn btn-primary btn-lg selectFiles">Select Photos</a> </div> </div> </div> <?php } ?> </div> <div id="uploadDataContainer" class="uploadDataContainer clearfix marginTop"> <div class="uploadingProgressContainer clearfix hidden"> <div class="alert alert-block alert-info"> <p><b>Selected Files</b> Uploading in progress <small><span id="progressNumber" style="color:#fff;">0%</span> <span style="color:#fff;">Complete of Photo </span><span id="videoNumber" style="color:#fff;"></span></small></p> </div> </div> <div class="align-right hidden" id="uploadMore"> <a href="#" class="btn btn-primary uploadMoreVideos" id="uploadMoreVideos">Upload More Photos</a> </div> <div class="marginTop"> <div id="files" class=""></div> <div id="allUploadForms" class="tab-content allUploadForms"></div> </div> </div> </div> </div> </div> </div> </div> <div id="photoForm" class="hidden"> <?php echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/upload/photo_form.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </div> </div> <!-- Following hidden field is used to store Collection ID. --> <?php if ($_smarty_tpl->tpl_vars['c']->value) { ?> <input type="hidden" name="cid" id="cid" class="cid" value="<?php echo $_smarty_tpl->tpl_vars['c']->value['collection_id']; ?> "/> <?php } ?> <script type="text/javascript"> (function(window){ $(document).ready(function(){ var baseurl = '<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> '; var photo_extensions = '<?php echo implode(",", $_smarty_tpl->tpl_vars['cbphoto']->value->exts); ?> '; /* files uploading */ $.get("<?php echo $_smarty_tpl->tpl_vars['theme']->value; ?> /js/plupload/js/plupload.full.min.js", function(e){ var files = []; var filesIndex = 0; var uploader = new plupload.Uploader({ browse_button: 'selectFiles', runtimes : 'html5,flash,silverlight,html4', url : uploadScriptPath, browse_button: 'selectFiles', dragdrop: true, drop_element: "dragDrop", filters: { mime_types : [ { title : "Image files", extensions : photo_extensions }, ] } }); // initialize the uploader uploader.init(); uploader.bind('FilesAdded', function(up, uploadedFiles) { for(var i = 0; i < uploadedFiles.length; i++){ files.push(uploadedFiles[i]); } $("#selectedFiles").toggle("display"); $("#uploadMore").addClass("hidden"); // creating the selected files list var ul = document.createElement('ul'); ul.id = "selectedFilesList"; ul.className = "nav nav-tabs"; var li = false; var index = 0; plupload.each(files, function(file) { li = document.createElement('li'); if(index === 0){ li.className = "active"; }else{ li.className = ""; } var link = document.createElement("a"); link.href = "#tab"+index; link.setAttribute("data-toggle", "tab"); if(files.length < 8){ link.innerHTML = "(" + (index + 1) + ") " + file.name.substring(0, 10); }else{ link.innerHTML = "(" + (index + 1) + ") "; } li.id = index++; li.appendChild(link); ul.appendChild(li); }); $("#files").html(""); $("#files").append(ul); var totalFiles = files.length; var oneFile = false; var uploadForm = $("#photoForm form").clone(); var uploadForms = []; for (var i = 0; i < totalFiles; i++ ){ var oneUploadForm = $(uploadForm).clone().get(0); var wrapperDiv = document.createElement("div"); if(i == 0){ wrapperDiv.className = "tab-pane active photoFormContainer"; }else{ wrapperDiv.className = "tab-pane photoFormContainer"; } wrapperDiv.id = "tab"+i; oneUploadForm.className = ""; $(oneUploadForm).find("input[name='photo_title']").val(files[i].name); $(oneUploadForm).find("textarea#photo_description").val(files[i].name); $(oneUploadForm).find("input[name='category[]']:first").attr('checked', 'checked'); if(typeof files[i]['photoThumb'] !== "undefined"){ $(oneUploadForm).find("img").attr("src", files[i]['photoThumb']); } wrapperDiv.appendChild(oneUploadForm); uploadForms.push(wrapperDiv); } $("#allUploadForms").html(""); $("#allUploadForms").append(uploadForms); setTimeout(function(){ $("#uploaderContainer").addClass("hidden"); $("#uploadDataContainer").removeClass("hidden"); $(".uploadingProgressContainer").removeClass("hidden"); $("#uploadedFilesInfo").text("Uploaded 0 of " + files.length); $(".allProgress").removeClass("hidden"); $("#overallProgressContainer").removeClass("hidden"); uploader.start(); }, 1000); // updating file title in the form $("#allUploadForms").css("display", "block"); }); uploader.bind("BeforeUpload", function(){ $("#fileUploadProgress").removeClass("hidden"); $(".progress-container").removeClass("hidden"); }) /* This is the event handler for UploadProgress, It fires regularly after a certain amount of time when the the files are being uploaded */ var totalUploaded = 0; /* This is the event handler for UploadProgress, It fires regularly after a certain amount of time when the the files are being uploaded */ var filesUploaded = 0; var totalPercentage = 0; uploader.bind('UploadProgress', function(up, file) { $("#progressNumber").text(file.percent + "%"); $("#videoNumber").text(file.name); }); /* This is the event handler for FileUploaded, it fires when the uploading of the files is completed */ var currentFileIndex = 0; uploader.bind('FileUploaded', function(plupload, fileDetails, response){ $("#overallProgress").css("width", ((100/files.length)*(++filesUploaded))+"%"); $("#overallProgress").parents(".row").find("#uploadedFilesInfo").text("Uploaded " + (filesUploaded) + " of " + files.length); var serverResponse = $.parseJSON(response.response); var fileName = serverResponse.file_name; var uploadForm = $("#tab"+currentFileIndex+" form"); totalUploaded++; /* Insert the video in the database and get the video db id from the database which will be sent with the final form */ var collectionId; var collection_id = '<?php echo $_smarty_tpl->tpl_vars['c']->value['collection_id']; ?> '; if (collection_id ) { collectionId = collection_id; } else { collectionId = $("#SelectionDIV select").val(); } var fileId = false; var stored_cid = collectionId; $.ajax({ url : baseurl + "/actions/photo_uploader.php", type : "post", data : { insertPhoto : "yes", title : fileDetails.name, file_name : fileName, collection_id: collectionId, ext: serverResponse.extension, }, dataType: "JSON", }).success(function(msg){ //creating the hidden form fields $(uploadForm).find("img").attr("src", msg.photoPreview); $(".submitPhoto").removeAttr("disabled"); if(typeof files[(currentFileIndex - 1)] !== "undefined"){ files[(totalUploaded-1)]['photoThumb'] = msg.photoPreview; } var hiddenPhotoIdField = document.createElement('input'); hiddenPhotoIdField.name = 'photo_id'; hiddenPhotoIdField.type = 'hidden'; hiddenPhotoIdField.value = msg.photoID; uploadForm.append(hiddenPhotoIdField); }); /* Submit the form with all the video details and options to update the video information in the system */ $(uploadForm).find(".submitPhoto").on({ click: function(e){ e.preventDefault(); var cid = $('.cid').val(); var collectionId = $("#SelectionDIV select").val(); if(cid !== '') { collectionId = cid; } var self = $(this).parents("form"); var data = $(self).serialize(); data += "&collection_id="+stored_cid; data += "&server_url=undefined&folder=undefined&updatePhoto=yes"; $.ajax({ url : baseurl + "/actions/photo_uploader.php", type : "post", data : data }).success(function(msg){ $("#uploadMessage").removeClass("hidden"); $("#uploadMessage").html("Picture details are successfully updated").attr("class", "alert alert-success"); setTimeout(function(){ $("#uploadMessage").addClass("hidden"); }, 5000); }).fail(function(err){ console.log(err); }); } }); currentFileIndex++; }); uploader.bind("UploadComplete", function(plupload, files){ $("#fileUploadProgress").addClass("hidden"); $("#uploadMore").removeClass("hidden"); $(".uploadingProgressContainer").addClass("hidden"); uploader.refresh(); $("#uploadMessage").html("All Files are uploaded Successfully").attr("class", "alert alert-success"); setTimeout(function(){ $("#uploadMessage").addClass("hidden"); }, 5000); }); uploader.bind('Error', function(up, err) { $("#uploadMessage").removeClass("hidden"); if(err){ $("#uploadMessage").html(err.message).attr("class", "alert alert-danger"); } setTimeout(function(){ $("#uploadMessage").addClass("hidden"); }, 8000); }); $("#addNewCollection").on({ click: function(e){ e.preventDefault(); var formData = $(this).parents("form").serialize(); formData += "&mode=add_collection"; var collectionName = $(this).parents("form").find("#collection_name").val(); $.ajax({ type: "post", url: baseurl + "/ajax.php", data: formData, }).success(function(msg){ msg = $.parseJSON(msg); if(msg.err === null){ var newCollectionElement = document.createElement('option'); newCollectionElement.value = parseInt(msg.id); newCollectionElement.innerHTML = collectionName; newCollectionElement.selected = true; $("#collectionSelection").get(0).appendChild(newCollectionElement); $("#CollectionDIV").toggle("slow"); $("#uploadMessage").html(msg.msg).attr("class", "alert alert-success").removeClass("hidden"); $(".upload-area").show(); $("#createNewCollection").show(); $(".h4").show(); $(".instructions").show(); $("#SelectionDIV").show(); setTimeout(function(){ $("#uploadMessage").addClass("hidden"); }, 5000); }else{ $("#uploadMessage").html(msg.err).attr("class", "alert alert-danger").removeClass("hidden"); setTimeout(function(){ $("#uploadMessage").addClass("hidden"); }, 5000); } }); } }); $("#createNewCollection").on({ click: function(e){ e.preventDefault(); $("#CollectionDIV").toggle("fast"); $("#createNewCollection").hide(); $(".h4").hide(); $("#SelectionDIV").hide(); $(".upload-area").hide(); $(".instructions").hide(); } }); $("#cancelAddCollection").on({ click: function(e){ e.preventDefault(); $("#CollectionDIV").hide(); $("#createNewCollection").show(); $(".h4").show(); $("#SelectionDIV").show(); $(".upload-area").show(); $(".instructions").show(); } }); $("#selectedFilesList a").on({ click: function(e){ e.preventDefault(); $(this).tab("show"); } }); $("#SelectionDIV select").on({ change: function(e){ var collectionField = $("#collectionId"); if(collectionField){ $(collectionField).val(this.value); }else{ var newField = document.createElement("input"); newField.type = "hidden"; newField.name = "collection_id"; newField.value = this.value; $("#allUploadForms form").each(function(index, value){ $(value).get(0).appendChild(newField); }); } } }); $("#uploadMoreVideos").on({ click: function(e){ e.preventDefault(); $("#uploaderContainer").removeClass("hidden"); $("#uploadDataContainer").addClass("hidden"); /*$(this).addClass("hidden");*/ } }); }); }); })(window); </script> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['step']->value == 2) { ?> <h2>Enter Information</h2> <?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['item']->_loop = false; $_from = $_smarty_tpl->tpl_vars['photos']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) { $_smarty_tpl->tpl_vars['item']->_loop = true; ?> <?php echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/upload/photo_form.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('photo' => $_smarty_tpl->tpl_vars['item']->value), 0); ?> <?php } ?> <button class="LoadMoreButton clearfix" onclick="callAjax(this);" type="button" name="insertPhotos" id="insertPhotos">Save All</button> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['step']->value == 3) { ?> <div class="photoBox"> <div style="background:#FFF; text-align:center; border-bottom:1px solid #ccc; color:#666; padding:8px; font:bold 14px Arial;"><?php echo smarty_lang(array('code' => "photo_success_heading"), $_smarty_tpl); ?> </div> <div class="clearfix" style="padding:8px; font:normal 11px Tahoma;"> You can manage your photos from <strong><a href="<?php echo cblink(array('name' => 'manage_photos'), $_smarty_tpl); ?> "><?php echo smarty_lang(array('code' => 'manage_photos'), $_smarty_tpl); ?> </a></strong>. </div> </div> <?php } ?> <?php }
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 }