function content_55e4486101b6e6_03728106($_smarty_tpl) { if ($_smarty_tpl->tpl_vars['comments']->value) { ?> <div class="cb-item-comments-container"> <div id="latest_comment_container"></div> <?php $_smarty_tpl->tpl_vars['comment'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['comment']->_loop = false; $_from = $_smarty_tpl->tpl_vars['comments']->value['comments']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['comment']->key => $_smarty_tpl->tpl_vars['comment']->value) { $_smarty_tpl->tpl_vars['comment']->_loop = true; ?> <?php echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/comments/comment.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('comment' => $_smarty_tpl->tpl_vars['comment']->value, 'type' => $_smarty_tpl->tpl_vars['type']->value, 'parents' => $_smarty_tpl->tpl_vars['comments']->value['parents']), 0); ?> <?php } } else { ?> <div align="center" class="no_comments" id="no_comments"> <?php echo smarty_lang(array('code' => 'no_comments', 'assign' => 'no_comments'), $_smarty_tpl); ?> <?php echo sprintf($_smarty_tpl->tpl_vars['no_comments']->value, $_smarty_tpl->tpl_vars['object_type']->value); ?> </div> </div> <?php } ?> <?php }
function content_55e44922239157_11633146($_smarty_tpl) { if (isset($_smarty_tpl->tpl_vars['myAccountLinks'])) { $_smarty_tpl->tpl_vars['myAccountLinks'] = clone $_smarty_tpl->tpl_vars['myAccountLinks']; $_smarty_tpl->tpl_vars['myAccountLinks']->value = $_smarty_tpl->tpl_vars['userquery']->value->my_account_links(); $_smarty_tpl->tpl_vars['myAccountLinks']->nocache = null; $_smarty_tpl->tpl_vars['myAccountLinks']->scope = 0; } else { $_smarty_tpl->tpl_vars['myAccountLinks'] = new Smarty_variable($_smarty_tpl->tpl_vars['userquery']->value->my_account_links(), null, 0); } if (isset($_smarty_tpl->tpl_vars['leftMenuLinks'])) { $_smarty_tpl->tpl_vars['leftMenuLinks'] = clone $_smarty_tpl->tpl_vars['leftMenuLinks']; $_smarty_tpl->tpl_vars['leftMenuLinks']->value = array_slice($_smarty_tpl->tpl_vars['myAccountLinks']->value, 7); $_smarty_tpl->tpl_vars['leftMenuLinks']->nocache = null; $_smarty_tpl->tpl_vars['leftMenuLinks']->scope = 0; } else { $_smarty_tpl->tpl_vars['leftMenuLinks'] = new Smarty_variable(array_slice($_smarty_tpl->tpl_vars['myAccountLinks']->value, 7), null, 0); } ?> <div class="container marginBottom"> <div class="cb-box clearfix row"> <!-- Listing Categories --> <div class="hidden-xs"> <?php echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/category_list.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('type' => 'video'), 0); ?> </div> <!-- Listing Categories End --> <div class="col-md-9 clearfix paddingleft0"> <!-- Page Heading --> <div class="page-hidding hidden-xs"> <?php if (isset($_smarty_tpl->tpl_vars['sorting_links'])) { $_smarty_tpl->tpl_vars['sorting_links'] = clone $_smarty_tpl->tpl_vars['sorting_links']; $_smarty_tpl->tpl_vars['sorting_links']->value = sorting_links(); $_smarty_tpl->tpl_vars['sorting_links']->nocache = null; $_smarty_tpl->tpl_vars['sorting_links']->scope = 0; } else { $_smarty_tpl->tpl_vars['sorting_links'] = new Smarty_variable(sorting_links(), null, 0); } ?> <h4 class="smaller lighter pull-left"><?php if ($_GET['cat'] == 'all' || $_GET['cat'] == '') { echo smarty_lang(array('code' => "Browsing All Categories"), $_smarty_tpl); ?> : <?php } elseif ($_GET['seo_cat_name'] != '') { ?> Browsing <i><?php echo $_GET['seo_cat_name']; ?> </i> Category <?php } else { ?> Browsing Category <?php echo $_GET['cat']; ?> <?php } ?> </h4> <div class="pull-right"> <div class="btn-group custom-dropdown"> <?php if ($_GET['sort']) { ?> <?php $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['name']->_loop = false; $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['sorting_links']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) { $_smarty_tpl->tpl_vars['name']->_loop = true; $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key; ?> <?php if ($_GET['sort'] == $_smarty_tpl->tpl_vars['sort']->value && isset($_GET['sort'])) { ?> <button class="btn btn-default" type="button"> <?php echo $_smarty_tpl->tpl_vars['name']->value; ?> </button> <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button"> <span class="arrow-drop"></span> <span class="sr-only">Toggle Dropdown</span> </button> <?php } ?> <?php } ?> <?php } else { ?> <button class="btn btn-default" type="button"> Recent </button> <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button"> <span class="arrow-drop"></span> <span class="sr-only">Toggle Dropdown</span> </button> <?php } ?> <ul role="menu" class="dropdown-menu"> <?php $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['name']->_loop = false; $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['sorting_links']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) { $_smarty_tpl->tpl_vars['name']->_loop = true; $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key; ?> <li><a href="<?php echo cblink(array('name' => 'time', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'videos'), $_smarty_tpl); ?> &sorting=dkfs" <?php if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value) { ?> class="selected" <?php } ?> >li <?php echo $_smarty_tpl->tpl_vars['name']->value; ?> </a></li> <?php } ?> </ul> <ul role="menu" class="dropdown-menu"> <?php $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['name']->_loop = false; $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['sorting_links']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) { $_smarty_tpl->tpl_vars['name']->_loop = true; $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key; ?> <li <?php if ($_GET['sort'] == $_smarty_tpl->tpl_vars['sort']->value) { ?> class="active selected" <?php } ?> ><a href="<?php echo cblink(array('name' => 'sort', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'videos'), $_smarty_tpl); ?> "><?php echo $_smarty_tpl->tpl_vars['name']->value; ?> </a></li> <li role="presentation" class="divider"></li> <?php } ?> </ul> </div> <?php if (isset($_smarty_tpl->tpl_vars['time_links'])) { $_smarty_tpl->tpl_vars['time_links'] = clone $_smarty_tpl->tpl_vars['time_links']; $_smarty_tpl->tpl_vars['time_links']->value = time_links(); $_smarty_tpl->tpl_vars['time_links']->nocache = null; $_smarty_tpl->tpl_vars['time_links']->scope = 0; } else { $_smarty_tpl->tpl_vars['time_links'] = new Smarty_variable(time_links(), null, 0); } ?> <div class="btn-group custom-dropdown"> <?php if ($_GET['time']) { ?> <?php $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['name']->_loop = false; $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['time_links']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) { $_smarty_tpl->tpl_vars['name']->_loop = true; $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key; ?> <?php if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value && isset($_GET['time'])) { ?> <button class="btn btn-default" type="button"> <?php echo $_smarty_tpl->tpl_vars['name']->value; ?> </button> <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button"> <span class="arrow-drop"></span> <span class="sr-only">Toggle Dropdown</span> </button> <?php } ?> <?php } ?> <?php } else { ?> <button class="btn btn-default" type="button"> All Time </button> <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button"> <span class="arrow-drop"></span> <span class="sr-only">Toggle Dropdown</span> </button> <?php } ?> <ul role="menu" class="dropdown-menu"> <?php $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['name']->_loop = false; $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['time_links']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) { $_smarty_tpl->tpl_vars['name']->_loop = true; $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key; ?> <li><a href="<?php echo cblink(array('name' => 'time', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'videos'), $_smarty_tpl); ?> &timing=time" <?php if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value) { ?> class="selected" style="color: #fff; background-color: #428bca;" <?php } ?> ><?php echo $_smarty_tpl->tpl_vars['name']->value; ?> </a></li> <li role="presentation" class="divider"></li> <?php } ?> </ul> </div> </div> </div> <div class="page-hidding visible-xs"> <div class="" role="group"> <?php if (isset($_smarty_tpl->tpl_vars['time_links'])) { $_smarty_tpl->tpl_vars['time_links'] = clone $_smarty_tpl->tpl_vars['time_links']; $_smarty_tpl->tpl_vars['time_links']->value = time_links(); $_smarty_tpl->tpl_vars['time_links']->nocache = null; $_smarty_tpl->tpl_vars['time_links']->scope = 0; } else { $_smarty_tpl->tpl_vars['time_links'] = new Smarty_variable(time_links(), null, 0); } ?> <div class="btn-group custom-dropdown resp-full-wdth480 resp-mgnt10"> <?php if ($_GET['timing']) { ?> <?php $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['name']->_loop = false; $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['time_links']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) { $_smarty_tpl->tpl_vars['name']->_loop = true; $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key; ?> <?php if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value && isset($_GET['time'])) { ?> <button class="btn btn-default" type="button"> <?php echo $_smarty_tpl->tpl_vars['name']->value; ?> </button> <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button"> <span class="arrow-drop"></span> <span class="sr-only">Toggle Dropdown</span> </button><!--<span class="glyphicon glyphicon-sort"></span> Most <?php echo $_smarty_tpl->tpl_vars['name']->value; ?> --> <?php } ?> <?php } ?> <?php } else { ?> <button class="btn btn-default" type="button"> All Time </button> <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button"> <span class="arrow-drop"></span> <span class="sr-only">Toggle Dropdown</span> </button> <?php } ?> <ul role="menu" class="dropdown-menu"> <?php $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['name']->_loop = false; $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['time_links']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) { $_smarty_tpl->tpl_vars['name']->_loop = true; $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key; ?> <li> <a href="<?php echo cblink(array('name' => 'time', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'videos'), $_smarty_tpl); ?> &timing=time" <?php if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value) { ?> class="selected" <?php } ?> > <?php echo $_smarty_tpl->tpl_vars['name']->value; ?> </a> </li> <li role="presentation" class="divider"></li> <?php } ?> </ul> </div> <?php if (isset($_smarty_tpl->tpl_vars['sorting_links'])) { $_smarty_tpl->tpl_vars['sorting_links'] = clone $_smarty_tpl->tpl_vars['sorting_links']; $_smarty_tpl->tpl_vars['sorting_links']->value = sorting_links(); $_smarty_tpl->tpl_vars['sorting_links']->nocache = null; $_smarty_tpl->tpl_vars['sorting_links']->scope = 0; } else { $_smarty_tpl->tpl_vars['sorting_links'] = new Smarty_variable(sorting_links(), null, 0); } ?> <div class="btn-group custom-dropdown resp-full-wdth480 resp-mgnt10"> <?php if ($_GET['sorting']) { ?> <?php $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['name']->_loop = false; $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['sorting_links']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) { $_smarty_tpl->tpl_vars['name']->_loop = true; $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key; ?> <?php if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value && isset($_GET['sort'])) { ?> <button class="btn btn-default" type="button"> <?php echo $_smarty_tpl->tpl_vars['name']->value; ?> </button> <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button"> <span class="arrow-drop"></span> <span class="sr-only">Toggle Dropdown</span> </button><!--<span class="glyphicon glyphicon-sort"></span> Most <?php echo $_smarty_tpl->tpl_vars['name']->value; ?> --> <?php } ?> <?php } ?> <?php } else { ?> <button class="btn btn-default" type="button"> <?php echo $_GET['sort']; ?> </button> <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button"> <span class="arrow-drop"></span> <span class="sr-only">Toggle Dropdown</span> </button> <?php } ?> <!-- <ul role="menu" class="dropdown-menu"> <?php $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['name']->_loop = false; $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['sorting_links']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) { $_smarty_tpl->tpl_vars['name']->_loop = true; $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key; ?> <li><a href="<?php echo cblink(array('name' => 'time', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'videos'), $_smarty_tpl); ?> &sorting=dkfs" <?php if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value) { ?> class="selected"<?php } ?> ><?php echo $_smarty_tpl->tpl_vars['name']->value; ?> </a></li> <?php } ?> </ul>--> <ul role="menu" class="dropdown-menu"> <?php $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['name']->_loop = false; $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['sorting_links']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) { $_smarty_tpl->tpl_vars['name']->_loop = true; $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key; ?> <li <?php if ($_GET['sort'] == $_smarty_tpl->tpl_vars['sort']->value) { ?> class="selected" <?php } ?> ><a href="<?php echo cblink(array('name' => 'sort', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'videos'), $_smarty_tpl); ?> "><?php echo $_smarty_tpl->tpl_vars['name']->value; ?> </a></li> <li role="presentation" class="divider"></li> <?php } ?> </ul> </div> <div class="btn-group custom-dropdown pull-left resp-full-wdth480 resp-mgnt10"> <button class="btn btn-default" type="button"> Categories </button> <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button"> <span class="arrow-drop"></span> <span class="sr-only">Toggle Dropdown</span> </button> <ul role="menu" class="dropdown-menu"> <?php echo $_smarty_tpl->tpl_vars['cbvid']->value->cbCategories(array("type" => $_smarty_tpl->tpl_vars['type']->value, "echo" => "TRUE", "output" => "list", "with_all" => "TRUE")); ?> </ul> </div> </div> </div> <div class="row"> <?php if ($_smarty_tpl->tpl_vars['videos']->value) { ?> <?php $_smarty_tpl->tpl_vars['video'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['video']->_loop = false; $_from = $_smarty_tpl->tpl_vars['videos']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['video']->key => $_smarty_tpl->tpl_vars['video']->value) { $_smarty_tpl->tpl_vars['video']->_loop = true; ?> <div class="col-md-3 col-sm-4 col-xs-6 marginBottom grid_view list_view cb-video-fixed-block"> <?php echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/videos/video.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('display_type' => 'normal'), 0); ?> </div> <?php } ?> <?php } else { ?> <div class="col-md-12"><?php echo smarty_lang(array('code' => 'no_results_found'), $_smarty_tpl); ?> </div> <?php } ?> <div class="clearfix"></div> </div> <!-- /Page Heading --> <div class="clr"></div> <!--Pagination--> <div align="center"> <?php echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/pagination.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </div> <!-- /Pagination--> </div> </div> </div> <div style="height:20px"> </div> <?php }
function content_55e44443075054_87310853($_smarty_tpl) { if (!is_callable('smarty_modifier_truncate')) { include '/var/www/includes/smartyv3/plugins/modifier.truncate.php'; } ?> <div class="container"> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=120542078043680"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script> <div class="row cb-box marginBottom"> <?php if (isset($_smarty_tpl->tpl_vars['row'])) { $_smarty_tpl->tpl_vars['row'] = clone $_smarty_tpl->tpl_vars['row']; $_smarty_tpl->tpl_vars['row']->value = $_smarty_tpl->tpl_vars['myquery']->value->Get_Website_Details(); $_smarty_tpl->tpl_vars['row']->nocache = null; $_smarty_tpl->tpl_vars['row']->scope = 0; } else { $_smarty_tpl->tpl_vars['row'] = new Smarty_variable($_smarty_tpl->tpl_vars['myquery']->value->Get_Website_Details(), null, 0); } ?> <!--<div class="alert alert-info margin-bottom-10 ">--> <?php echo ANCHOR(array('place' => 'global'), $_smarty_tpl); ?> <!-- </div> --> <div class="clearfix"></div> <?php if (is_installed('editorspick')) { ?> <?php if ($_smarty_tpl->tpl_vars['editor_picks']->value) { ?> <div class="row"> <div class="col-md-8"> <!-- Editor Pick Video Main Container START //--> <div id="ep_video_container"> <?php if (is_installed('editorspick')) { ?> <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list'])) { unset($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']); } $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['name'] = 'e_list'; $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['editor_picks']->value) ? count($_loop) : max(0, (int) $_loop); unset($_loop); $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['max'] = (int) 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['show'] = true; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['max'] < 0) { $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['loop']; } $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['step'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['loop'] - 1; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['show']) { $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['total'] = min(ceil(($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['loop'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['start'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['start'] + 1) / abs($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['step'])), $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['max']); if ($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['total'] == 0) { $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['show'] = false; } } else { $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['total'] = 0; } if ($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['show']) { for ($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['iteration']++) { $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['iteration']; $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['iteration'] == 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['total']; ?> <?php echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/editor_pick/video_block.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('video' => $_smarty_tpl->tpl_vars['editor_picks']->value[$_smarty_tpl->getVariable('smarty')->value['section']['e_list']['index']]), 0); ?> <?php } } else { ?> There is no video in editor's pick, Please Add Videos In Editor's Pick<br />Videos Manager > Add to editor's pick <?php } ?> <?php } ?> </div> <!-- Editor Pick Video Main Container END //--> </div> <!-- Editor Pick Videos Slider Container START //--> <div class="col-md-4 col-sm-12 col-xs-12 editorpick-holder pull-right custom-elements"> <div id="slide" class="scrollable-area"> <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list'])) { unset($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']); } $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['name'] = 'e_list'; $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['editor_picks']->value) ? count($_loop) : max(0, (int) $_loop); unset($_loop); $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['show'] = true; $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['loop']; $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['step'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['loop'] - 1; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['show']) { $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['loop']; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['total'] == 0) { $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['show'] = false; } } else { $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['total'] = 0; } if ($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['show']) { for ($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['iteration']++) { $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['iteration']; $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['iteration'] == 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['total']; ?> <?php echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/editor_pick/index_featured_video.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('video' => $_smarty_tpl->tpl_vars['editor_picks']->value[$_smarty_tpl->getVariable('smarty')->value['section']['e_list']['index']]), 0); ?> <?php } } ?> </div> <div class="next_pre_hold"> <a href="#" class="col-md-6 btn btn-primary" id="slide_prev"> <span class="glyphicon glyphicon-chevron-up"></span> </a> <a href="#" class="col-md-6 btn btn-primary" id="slide_next"> <span class="glyphicon glyphicon-chevron-down"></span> </a> </div> </div> <!-- Editor Pick Videos Slider Container END //--> </div> <?php } ?> <?php } ?> <!-- ******************************************* //--> <!-- ************ EDITORS BLOCK END ************ //--> <!-- ******************************************* //--> <!-- <div align="center" class="margin-bottom-10"> <a href="http://www.arvixe.com/clipbucket_hosting"> <img class="banner" src="<?php echo $_smarty_tpl->tpl_vars['theme']->value; ?> /assets/images/ad-box-728x90.jpg" > </a> </div>--> <div class="ad"><?php echo getAd(array('place' => 'ad_728x90'), $_smarty_tpl); ?> </div> <!-- ******************************************* //--> <!-- *********** LATEST VIDEOS START *********** //--> <!-- ******************************************* //--> <div class="row"> <div class="col-md-12 clearfix"> <div class="col-md-8 nopadding padding-right-10 featuredvideos-wrapper"> <h2 class="myHeading theme_color"><?php echo smarty_lang(array('code' => "Featured Videos"), $_smarty_tpl); ?> </h2> <?php if (isset($_smarty_tpl->tpl_vars['featured_videos'])) { $_smarty_tpl->tpl_vars['featured_videos'] = clone $_smarty_tpl->tpl_vars['featured_videos']; $_smarty_tpl->tpl_vars['featured_videos']->value = get_videos(array('featured' => 'yes', 'limit' => 6)); $_smarty_tpl->tpl_vars['featured_videos']->nocache = null; $_smarty_tpl->tpl_vars['featured_videos']->scope = 0; } else { $_smarty_tpl->tpl_vars['featured_videos'] = new Smarty_variable(get_videos(array('featured' => 'yes', 'limit' => 6)), null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['featured_videos']->value) { ?> <div class="col-md-12 featured-videos nopadding"> <div class="col-md-12 text-center nopadding "> <div class="col-md-8 text-center nopadding mouse_hover featured-imglg"> <?php if (isset($_smarty_tpl->tpl_vars['video_01'])) { $_smarty_tpl->tpl_vars['video_01'] = clone $_smarty_tpl->tpl_vars['video_01']; $_smarty_tpl->tpl_vars['video_01']->value = $_smarty_tpl->tpl_vars['featured_videos']->value[0]; $_smarty_tpl->tpl_vars['video_01']->nocache = null; $_smarty_tpl->tpl_vars['video_01']->scope = 0; } else { $_smarty_tpl->tpl_vars['video_01'] = new Smarty_variable($_smarty_tpl->tpl_vars['featured_videos']->value[0], null, 0); } ?> <div class="col-md-12 text-center nopadding video_thumb_lg"> <a href="<?php echo videoSmartyLink(array('vdetails' => $_smarty_tpl->tpl_vars['video_01']->value), $_smarty_tpl); ?> " title="<?php echo $_smarty_tpl->tpl_vars['video_01']->value['title']; ?> "> <span class="play-icon fa fa-play"></span> <img class="cb_img_thum" src="<?php echo getSmartyThumb(array('vdetails' => $_smarty_tpl->tpl_vars['video_01']->value, 'num' => '4', 'size' => 'big'), $_smarty_tpl); ?> " width="500" height="285" border="0" <?php echo ANCHOR(array('place' => "video_thumb", 'data' => $_smarty_tpl->tpl_vars['video_01']->value), $_smarty_tpl); ?> /> </a> <div class="cbHomeVidTitle cbHomeVidTitle_Big mouse_hover_on"><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['video_01']->value['title'], 30); ?> </div> </div> <div class="cbHomeVidDuration mouse_hover_on"> <?php if ($_smarty_tpl->tpl_vars['video_01']->value['duration'] > 1) { echo SetTime($_smarty_tpl->tpl_vars['video_01']->value['duration']); } else { ?> 00:00ewwew<?php } ?> </div> <div class="cbHomeVidDuration_left mouse_hover_on"> <?php echo $_smarty_tpl->tpl_vars['video_01']->value['username']; ?> </div> </div> <div class="col-md-4 col-sm-6 hidden-xs text-center nopadding-right pull-right tumb-sm"> <?php $_smarty_tpl->tpl_vars['video_02'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['video_02']->_loop = false; $_from = $_smarty_tpl->tpl_vars['featured_videos']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['video_02']->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars['video_02']->key => $_smarty_tpl->tpl_vars['video_02']->value) { $_smarty_tpl->tpl_vars['video_02']->_loop = true; $_smarty_tpl->tpl_vars['video_02']->iteration++; ?> <?php if ($_smarty_tpl->tpl_vars['video_02']->iteration > 1 && $_smarty_tpl->tpl_vars['video_02']->iteration < 4) { ?> <div class="col-md-12 text-center nopadding mouse_hover1 featured-video video_thumb" style="<?php if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['foo']['last']) { ?> <?php } ?> " > <a href="<?php echo videoSmartyLink(array('vdetails' => $_smarty_tpl->tpl_vars['video_02']->value), $_smarty_tpl); ?> " title="<?php echo $_smarty_tpl->tpl_vars['video_02']->value['title']; ?> "> <span class="play-icon fa fa-play"></span> <img class="cb_img_thum" src="<?php echo getSmartyThumb(array('vdetails' => $_smarty_tpl->tpl_vars['video_02']->value, 'size' => '240x133'), $_smarty_tpl); ?> " width="240" height="133" <?php echo ANCHOR(array('place' => "video_thumb", 'data' => $_smarty_tpl->tpl_vars['video_02']->value), $_smarty_tpl); ?> /> <div class="cbHomeVidTitle mouse_hover_on1"><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['video_02']->value['title'], 10); ?> </div> <div class="cbHomeVidDuration mouse_hover_on1"> <?php if ($_smarty_tpl->tpl_vars['video_02']->value['duration'] > 1) { echo SetTime($_smarty_tpl->tpl_vars['video_02']->value['duration']); } else { ?> 00:00<?php } ?> </div> </a> </div> <?php } ?> <?php } ?> </div> <div class="col-lg-12 col-md-12 text-center nopadding"> <?php $_smarty_tpl->tpl_vars['video_02'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['video_02']->_loop = false; $_from = $_smarty_tpl->tpl_vars['featured_videos']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['video_02']->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars['video_02']->key => $_smarty_tpl->tpl_vars['video_02']->value) { $_smarty_tpl->tpl_vars['video_02']->_loop = true; $_smarty_tpl->tpl_vars['video_02']->iteration++; ?> <?php if ($_smarty_tpl->tpl_vars['video_02']->iteration > 3) { ?> <div class="col-lg-4 col-md-4 col-sm-6 hidden-xs video_thumb text-center nopadding-right mouse_hover featured-video <?php if ($_smarty_tpl->tpl_vars['video_02']->iteration == 4) { ?> nopadding<?php } ?> "> <a href="<?php echo videoSmartyLink(array('vdetails' => $_smarty_tpl->tpl_vars['video_02']->value), $_smarty_tpl); ?> " title="<?php echo $_smarty_tpl->tpl_vars['video_02']->value['title']; ?> "> <span class="play-icon fa fa-play"></span> <img class="cb_img_thum" src="<?php echo getSmartyThumb(array('vdetails' => $_smarty_tpl->tpl_vars['video_02']->value, 'size' => '240x133'), $_smarty_tpl); ?> " width="240" height="133" <?php echo ANCHOR(array('place' => "video_thumb", 'data' => $_smarty_tpl->tpl_vars['video_02']->value), $_smarty_tpl); ?> /> <div class="cbHomeVidTitle mouse_hover_on"><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['video_02']->value['title'], 10); ?> </div> <div class="cbHomeVidDuration mouse_hover_on"> <?php if ($_smarty_tpl->tpl_vars['video_02']->value['duration'] > 1) { echo SetTime($_smarty_tpl->tpl_vars['video_02']->value['duration']); } else { ?> 00:00<?php } ?> </div> </a> </div> <?php } ?> <?php } ?> </div> </div> <div class="clearfix"></div> </div> <?php } else { ?> <div class="col-md-12 nopadding">No featured Video</div> <?php } ?> <div class="clearfix"></div> <div class="row nopadding"> <h3 class="myHeading theme_color"><?php echo lang('Recent videos'); ?> </h3> <?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" => 12)); $_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" => 12)), null, 0); } ?> <div class="clearfix recent-videos row"> <?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-lg-4 col-md-4 col-sm-4 col-xs-12 mbm cb-video-fixed-block"> <!-- <div class="marginBottom grid_view recent-col list_view nopadding-right"> --> <?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(), 0); ?> <!-- </div> --> </div> <?php } ?> </div> </div> <div class="ad"><?php echo getAd(array('place' => 'ad_468x60'), $_smarty_tpl); ?> </div> <div class="row nopadding"> <?php if ($_smarty_tpl->tpl_vars['row']->value['photosSection'] == 'yes') { ?> <div class="col-md-12 clearfix nopadding "> <h2 class="myHeading theme_color"><?php echo smarty_lang(array('code' => "Photos"), $_smarty_tpl); ?> </h2> <?php if (isset($_smarty_tpl->tpl_vars['result_photos1_01'])) { $_smarty_tpl->tpl_vars['result_photos1_01'] = clone $_smarty_tpl->tpl_vars['result_photos1_01']; $_smarty_tpl->tpl_vars['result_photos1_01']->value = get_photos(array('order' => ' RAND() LIMIT 15 ')); $_smarty_tpl->tpl_vars['result_photos1_01']->nocache = null; $_smarty_tpl->tpl_vars['result_photos1_01']->scope = 0; } else { $_smarty_tpl->tpl_vars['result_photos1_01'] = new Smarty_variable(get_photos(array('order' => ' RAND() LIMIT 15 ')), null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['result_photos1_01']->value) { ?> <!-- *********** FIRST PHOTOS START ************ //--> <!-- <div class="row clearfix fill-background lg-img"> --> <div class="clearfix featured-images"> <div class="clearfix"> <?php $_smarty_tpl->tpl_vars['result_photo1_01'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['result_photo1_01']->_loop = false; $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['result_photos1_01']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['result_photo1_01']->key => $_smarty_tpl->tpl_vars['result_photo1_01']->value) { $_smarty_tpl->tpl_vars['result_photo1_01']->_loop = true; $_smarty_tpl->tpl_vars['i']->value = $_smarty_tpl->tpl_vars['result_photo1_01']->key; ?> <?php if ($_smarty_tpl->tpl_vars['i']->value == 0) { ?> <div class="ft-img col-md-7"> <a href="<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['result_photo1_01']->value, 'view_item'); ?> "> <?php echo get_image_file(array('details' => $_smarty_tpl->tpl_vars['result_photo1_01']->value, 'output' => 'html', 'size' => "l", 'class' => "cb_img_thum"), $_smarty_tpl); ?> </a> <div class="hover"> <a href="<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['result_photo1_01']->value, 'view_item'); ?> "> <span class="photo-title"><?php echo $_smarty_tpl->tpl_vars['result_photo1_01']->value['photo_title']; ?> </span> <span class="plus">plus</span> </a> </div> </div> <?php } elseif ($_smarty_tpl->tpl_vars['i']->value < 3) { ?> <div class="ft-img col-md-5"> <a href="<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['result_photo1_08']->value, 'view_item'); ?> "> <?php echo get_image_file(array('details' => $_smarty_tpl->tpl_vars['result_photo1_01']->value, 'output' => 'html', 'size' => "l", 'class' => 'photoThumbBox moveL cb_img_thum'), $_smarty_tpl); ?> </a> <div class="hover"> <a href="<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['result_photo1_01']->value, 'view_item'); ?> "> <span class="photo-title"><?php echo $_smarty_tpl->tpl_vars['result_photo1_01']->value['photo_title']; ?> </span> <span class="plus">plus</span> </a> </div> </div> <?php } elseif ($_smarty_tpl->tpl_vars['i']->value < 7) { ?> <div class="ft-img col-md-6"> <a href="<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['result_photo1_08']->value, 'view_item'); ?> "> <?php echo get_image_file(array('details' => $_smarty_tpl->tpl_vars['result_photo1_01']->value, 'output' => 'html', 'size' => "l", 'class' => 'photoThumbBox moveL cb_img_thum'), $_smarty_tpl); ?> </a> <div class="hover"> <a href="<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['result_photo1_01']->value, 'view_item'); ?> "> <span class="photo-title"><?php echo $_smarty_tpl->tpl_vars['result_photo1_01']->value['photo_title']; ?> </span> <span class="plus">plus</span> </a> </div> </div> <?php } else { ?> <div class="ft-img col-md-3" style="height:140px;"> <a href="<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['result_photo1_08']->value, 'view_item'); ?> "> <?php echo get_image_file(array('details' => $_smarty_tpl->tpl_vars['result_photo1_01']->value, 'output' => 'html', 'size' => "l", 'class' => 'photoThumbBox moveL cb_img_thum'), $_smarty_tpl); ?> </a> <div class="hover"> <a href="<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['result_photo1_01']->value, 'view_item'); ?> "> <span class="photo-title"><?php echo $_smarty_tpl->tpl_vars['result_photo1_01']->value['photo_title']; ?> </span> <span class="plus">plus</span> </a> </div> </div> <?php } ?> <?php } ?> </div> <!-- </div> --> </div> <!-- *********** FIRST PHOTOS END ************ //--> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['result_photos2_08'])) { $_smarty_tpl->tpl_vars['result_photos2_08'] = clone $_smarty_tpl->tpl_vars['result_photos2_08']; $_smarty_tpl->tpl_vars['result_photos2_08']->value = get_photos(array('order' => ' photo_id ASC LIMIT 4 ')); $_smarty_tpl->tpl_vars['result_photos2_08']->nocache = null; $_smarty_tpl->tpl_vars['result_photos2_08']->scope = 0; } else { $_smarty_tpl->tpl_vars['result_photos2_08'] = new Smarty_variable(get_photos(array('order' => ' photo_id ASC LIMIT 4 ')), null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['result_photos2_08']->value) { ?> <!-- *********** SECOND PHOTOS START ************ //--> <!-- <div class="col-md-12 fill-background clearfix lg-img"> <div class="col-md-5 nopadding sm-imgs clearfix left-aligned"> <?php $_smarty_tpl->tpl_vars['result_photo2_08'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['result_photo2_08']->_loop = false; $_from = $_smarty_tpl->tpl_vars['result_photos2_08']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['result_photo2_08']->key => $_smarty_tpl->tpl_vars['result_photo2_08']->value) { $_smarty_tpl->tpl_vars['result_photo2_08']->_loop = true; ?> <div class="col-md-6 col-sm-6"> <a href="<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['result_photo2_08']->value, 'view_item'); ?> "> <?php echo get_image_file(array('details' => $_smarty_tpl->tpl_vars['result_photo2_08']->value, 'output' => 'html', 'width' => "128", 'height' => "118", 'size' => "l", 'class' => 'photoThumbBox moveL cb_img_thum'), $_smarty_tpl); ?> </a> <?php if ($_smarty_tpl->tpl_vars['photos']->iteration > 1) { break 1; } ?> </div> <?php } ?> </div> <?php if (isset($_smarty_tpl->tpl_vars['result_photos2_01'])) { $_smarty_tpl->tpl_vars['result_photos2_01'] = clone $_smarty_tpl->tpl_vars['result_photos2_01']; $_smarty_tpl->tpl_vars['result_photos2_01']->value = get_photos(array('order' => ' RAND() LIMIT 1 ')); $_smarty_tpl->tpl_vars['result_photos2_01']->nocache = null; $_smarty_tpl->tpl_vars['result_photos2_01']->scope = 0; } else { $_smarty_tpl->tpl_vars['result_photos2_01'] = new Smarty_variable(get_photos(array('order' => ' RAND() LIMIT 1 ')), null, 0); } ?> <div class="col-md-7 big_img"> <?php $_smarty_tpl->tpl_vars['result_photo2_01'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['result_photo2_01']->_loop = false; $_from = $_smarty_tpl->tpl_vars['result_photos2_01']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['result_photo2_01']->key => $_smarty_tpl->tpl_vars['result_photo2_01']->value) { $_smarty_tpl->tpl_vars['result_photo2_01']->_loop = true; ?> <a href="<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['result_photo2_01']->value, 'view_item'); ?> "> <?php echo get_image_file(array('details' => $_smarty_tpl->tpl_vars['result_photo2_01']->value, 'output' => 'html', 'width' => "420", 'height' => "235", 'size' => "l", 'class' => "cb_img_thum"), $_smarty_tpl); ?> </a> <?php } ?> </div> </div> --> <!-- *********** SECOND PHOTOS END ************ //--> <?php } ?> </div> <?php } else { ?> <div class="col-md-12 nopadding">No featured Photo</div> <?php } ?> </div> <!-- ******************************************* //--> <!-- *********** PHOTOS END ************ //--> <!-- ******************************************* //--> </div> <!-- ******************************************* //--> <!-- ******** ADVERTISEMENT BLOCK START ******** //--> <!-- ******************************************* //--> <!--<div class="col-md-4" style="background-color:#F2F2F2; padding-top:10px; padding-bottom:10px; margin-bottom:10px;"> <h2 class="myHeadingBLK" style="margin-top:0;">Advertisement</h2> <div class="col-md-12 text-center nopadding" style="font-size:18px; border:1px solid #CCC; background:#FFF; display:block; height: 250px; width: 300px; line-height: 200px; text-align:center; left:7%;"> Ad Box 300 x 250 </div> </div>--> <!-- ******************************************* //--> <!-- ******** ADVERTISEMENT BLOCK END ******** //--> <!-- ******************************************* //--> <!-- ******************************************* //--> <!-- ************* USER BLOCK START ************ //--> <!-- ******************************************* //--> <?php if (isset($_smarty_tpl->tpl_vars['feature_users'])) { $_smarty_tpl->tpl_vars['feature_users'] = clone $_smarty_tpl->tpl_vars['feature_users']; $_smarty_tpl->tpl_vars['feature_users']->value = get_users(array('featured' => 'yes', 'limit' => 5)); $_smarty_tpl->tpl_vars['feature_users']->nocache = null; $_smarty_tpl->tpl_vars['feature_users']->scope = 0; } else { $_smarty_tpl->tpl_vars['feature_users'] = new Smarty_variable(get_users(array('featured' => 'yes', 'limit' => 5)), null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['feature_users']->value) { ?> <div class="col-md-4 side_user_home"> <h2 class="myHeading theme_color"><?php echo smarty_lang(array('code' => "Featured Users"), $_smarty_tpl); ?> </h2> <?php $_smarty_tpl->tpl_vars['user'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['user']->_loop = false; $_from = $_smarty_tpl->tpl_vars['feature_users']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['user']->key => $_smarty_tpl->tpl_vars['user']->value) { $_smarty_tpl->tpl_vars['user']->_loop = true; ?> <div class="col-md-12 nopadding clearfix user-view-home"> <div class="col-md-3 nopadding"> <img src="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->getuserthumb($_smarty_tpl->tpl_vars['user']->value, 'small'); ?> " width="56" height="56" class="img-circle" /> </div> <div class="col-md-9 nopadding"> <h4 class="nopadding "><a href="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->profile_link($_smarty_tpl->tpl_vars['user']->value); ?> "><?php echo $_smarty_tpl->tpl_vars['user']->value['username']; ?> </a></h4> <div class=" nopadding col-md-6 min-height-20"> <div class="pull-left small"><span class="bg-eye"></span> <span><?php echo number_format($_smarty_tpl->tpl_vars['user']->value['profile_hits']); ?> <?php echo smarty_lang(array('code' => 'views'), $_smarty_tpl); ?> </span></div> <div class="pull-right small"><span class="bg-videocam"></span> <span><?php echo number_format($_smarty_tpl->tpl_vars['user']->value['total_videos']); ?> <?php echo smarty_lang(array('code' => 'Videos'), $_smarty_tpl); ?> </span></div> </div> <br> <div class="row pull-left" style="margin-left: 0px; width: 99%;"> <div class="progres"> <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%"> <span class="sr-only">40% Complete (success)</span> </div> </div> </div> <!--<div class="col-md-12 nopadding progress no-border-radius"> <div style="width: 40%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="40" role="progressbar" class="progress-bar progress-bar-success"> <span class="sr-only">40% Complete (success)</span> </div> </div>--> </div> <div class="user_icon"> <a href="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->profile_link($_smarty_tpl->tpl_vars['user']->value); ?> "> <img class="" src="<?php echo $_smarty_tpl->tpl_vars['imageurl']->value; ?> /user_next_icon.png" width="25" height="25" /> </a> </div> </div> <?php } ?> </div> <?php } ?> <!-- ******************************************* //--> <!-- ************* USER BLOCK END ************ //--> <!-- ******************************************* //--> <?php if ($_smarty_tpl->tpl_vars['row']->value['collectionsSection'] == 'yes') { ?> <?php if (isset($_smarty_tpl->tpl_vars['collections'])) { $_smarty_tpl->tpl_vars['collections'] = clone $_smarty_tpl->tpl_vars['collections']; $_smarty_tpl->tpl_vars['collections']->value = $_smarty_tpl->tpl_vars['cbcollection']->value->get_collections(array('limit' => 5, 'active' => 'yes')); $_smarty_tpl->tpl_vars['collections']->nocache = null; $_smarty_tpl->tpl_vars['collections']->scope = 0; } else { $_smarty_tpl->tpl_vars['collections'] = new Smarty_variable($_smarty_tpl->tpl_vars['cbcollection']->value->get_collections(array('limit' => 5, 'active' => 'yes')), null, 0); } ?> <div class="col-md-4 comment_home side_user_home" > <h2 class="myHeading"><?php echo smarty_lang(array('code' => "Top Collections"), $_smarty_tpl); ?> </h2> <?php if (isset($_smarty_tpl->tpl_vars['limit'])) { $_smarty_tpl->tpl_vars['limit'] = clone $_smarty_tpl->tpl_vars['limit']; $_smarty_tpl->tpl_vars['limit']->value = 10; $_smarty_tpl->tpl_vars['limit']->nocache = null; $_smarty_tpl->tpl_vars['limit']->scope = 0; } else { $_smarty_tpl->tpl_vars['limit'] = new Smarty_variable(10, null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['collections']->value) { ?> <?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; ?> <div class="clearfix collection-section"> <div class="category-header row clearfix"> <div class="col-sm-6 clearfix"><?php echo $_smarty_tpl->tpl_vars['collection']->value['collection_name']; ?> </div> <div class="col-sm-6 clearfix"><span class="total-obj"><?php echo $_smarty_tpl->tpl_vars['collection']->value['total_objects']; ?> </span></div> <!-- --> <!-- <div class="col-sm-6 clearfix"><span class="total-obj"><?php echo $_smarty_tpl->tpl_vars['limit']->value; ?> </span></div> --> </div> <div class="collection-grid clearfix"> <?php if ($_smarty_tpl->tpl_vars['collection']->value['type'] == 'photos') { ?> <?php if (isset($_smarty_tpl->tpl_vars['items'])) { $_smarty_tpl->tpl_vars['items'] = clone $_smarty_tpl->tpl_vars['items']; $_smarty_tpl->tpl_vars['items']->value = $_smarty_tpl->tpl_vars['cbphoto']->value->collection->get_collection_items_with_details($_smarty_tpl->tpl_vars['collection']->value['collection_id'], 0, $_smarty_tpl->tpl_vars['limit']->value, false); $_smarty_tpl->tpl_vars['items']->nocache = null; $_smarty_tpl->tpl_vars['items']->scope = 0; } else { $_smarty_tpl->tpl_vars['items'] = new Smarty_variable($_smarty_tpl->tpl_vars['cbphoto']->value->collection->get_collection_items_with_details($_smarty_tpl->tpl_vars['collection']->value['collection_id'], 0, $_smarty_tpl->tpl_vars['limit']->value, false), null, 0); } ?> <?php } else { ?> <?php if (isset($_smarty_tpl->tpl_vars['items'])) { $_smarty_tpl->tpl_vars['items'] = clone $_smarty_tpl->tpl_vars['items']; $_smarty_tpl->tpl_vars['items']->value = get_videos_of_collection($_smarty_tpl->tpl_vars['collection']->value['collection_id'], 0, $_smarty_tpl->tpl_vars['limit']->value, false); $_smarty_tpl->tpl_vars['items']->nocache = null; $_smarty_tpl->tpl_vars['items']->scope = 0; } else { $_smarty_tpl->tpl_vars['items'] = new Smarty_variable(get_videos_of_collection($_smarty_tpl->tpl_vars['collection']->value['collection_id'], 0, $_smarty_tpl->tpl_vars['limit']->value, false), null, 0); } ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['items']->value) { ?> <?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['item']->_loop = false; $_from = $_smarty_tpl->tpl_vars['items']->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; ?> <div class="collection-item"> <a href="<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['item']->value, 'view_item'); ?> "> <?php if ($_smarty_tpl->tpl_vars['collection']->value['type'] == 'photos') { ?> <?php echo get_image_file(array('details' => $_smarty_tpl->tpl_vars['item']->value, 'output' => 'html', 'size' => "l", 'class' => "cb_img_thum"), $_smarty_tpl); ?> <?php } else { ?> <img alt="<?php echo $_smarty_tpl->tpl_vars['item']->value['title']; ?> " title="<?php echo $_smarty_tpl->tpl_vars['item']->value['title']; ?> " class="cb_img_thum" id="photo_<?php echo $_smarty_tpl->tpl_vars['item']->value['ci_id']; ?> " src="<?php echo getSmartyThumb(array('vdetails' => $_smarty_tpl->tpl_vars['item']->value), $_smarty_tpl); ?> "> <?php } ?> </a> </div> <?php } ?> <?php } ?> </div> </div> <?php } ?> <?php } else { ?> <div class="col-md-12 nopadding">No Collection</div> <?php } ?> </div> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['playlists'])) { $_smarty_tpl->tpl_vars['playlists'] = clone $_smarty_tpl->tpl_vars['playlists']; $_smarty_tpl->tpl_vars['playlists']->value = get_playlists(array('limit' => 5, 'order' => 'total_items DESC')); $_smarty_tpl->tpl_vars['playlists']->nocache = null; $_smarty_tpl->tpl_vars['playlists']->scope = 0; } else { $_smarty_tpl->tpl_vars['playlists'] = new Smarty_variable(get_playlists(array('limit' => 5, 'order' => 'total_items DESC')), null, 0); } ?> <div class="col-md-4 comment_home side_user_home " > <h2 class="myHeading"><?php echo smarty_lang(array('code' => "Top Playlists"), $_smarty_tpl); ?> </h2> <?php if ($_smarty_tpl->tpl_vars['playlists']->value) { ?> <?php $_smarty_tpl->tpl_vars['playlist'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['playlist']->_loop = false; $_from = $_smarty_tpl->tpl_vars['playlists']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['playlist']->key => $_smarty_tpl->tpl_vars['playlist']->value) { $_smarty_tpl->tpl_vars['playlist']->_loop = true; ?> <div class="clearfix collection-section"> <div class="category-header row clearfix"> <div class="col-sm-6 clearfix"><span class=""><?php echo $_smarty_tpl->tpl_vars['playlist']->value['playlist_name']; ?> </span></div> <div class="col-sm-6 clearfix"> <span class="total-obj"> <?php echo number_format($_smarty_tpl->tpl_vars['cbvid']->value->action->count_playlist_items($_smarty_tpl->tpl_vars['playlist']->value['playlist_id'])); ?> </span> </div> </div> <div class="collection-grid clearfix"> <?php if (isset($_smarty_tpl->tpl_vars['items'])) { $_smarty_tpl->tpl_vars['items'] = clone $_smarty_tpl->tpl_vars['items']; $_smarty_tpl->tpl_vars['items']->value = get_playlist_items($_smarty_tpl->tpl_vars['playlist']->value['playlist_id']); $_smarty_tpl->tpl_vars['items']->nocache = null; $_smarty_tpl->tpl_vars['items']->scope = 0; } else { $_smarty_tpl->tpl_vars['items'] = new Smarty_variable(get_playlist_items($_smarty_tpl->tpl_vars['playlist']->value['playlist_id']), null, 0); } ?> <?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['item']->_loop = false; $_from = $_smarty_tpl->tpl_vars['items']->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; ?> <div class="collection-item"> <?php if (isset($_smarty_tpl->tpl_vars['videoid'])) { $_smarty_tpl->tpl_vars['videoid'] = clone $_smarty_tpl->tpl_vars['videoid']; $_smarty_tpl->tpl_vars['videoid']->value = $_smarty_tpl->tpl_vars['item']->value['videoid']; $_smarty_tpl->tpl_vars['videoid']->nocache = null; $_smarty_tpl->tpl_vars['videoid']->scope = 0; } else { $_smarty_tpl->tpl_vars['videoid'] = new Smarty_variable($_smarty_tpl->tpl_vars['item']->value['videoid'], null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['videoid']->value) { ?> <?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('videoid' => $_smarty_tpl->tpl_vars['videoid']->value, 'limit' => '4')); $_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('videoid' => $_smarty_tpl->tpl_vars['videoid']->value, 'limit' => '4')), null, 0); } ?> <?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; ?> <a href="<?php echo videoLink($_smarty_tpl->tpl_vars['video']->value); ?> "> <?php if (isset($_smarty_tpl->tpl_vars['thumb'])) { $_smarty_tpl->tpl_vars['thumb'] = clone $_smarty_tpl->tpl_vars['thumb']; $_smarty_tpl->tpl_vars['thumb']->value = get_thumb($_smarty_tpl->tpl_vars['video']->value); $_smarty_tpl->tpl_vars['thumb']->nocache = null; $_smarty_tpl->tpl_vars['thumb']->scope = 0; } else { $_smarty_tpl->tpl_vars['thumb'] = new Smarty_variable(get_thumb($_smarty_tpl->tpl_vars['video']->value), null, 0); } ?> <img src="<?php echo $_smarty_tpl->tpl_vars['thumb']->value; ?> " /> </a> <?php } ?> <?php } else { ?> <span class="label label-default">no items</span> <?php } ?> </div> <?php } ?> </div> </div> <?php } ?> <?php } else { ?> <div class="col-md-12 nopadding">No Playlists</div> <?php } ?> </div> </div> </div> </div> </div> <div style="height:20px;"></div> <script type="text/javascript"> $(function() { $('#slide').ulslide({ width: 350, height: 88, effect: { type: 'carousel', // slide or fade axis: 'y', // x, y showCount: 5 }, nextButton: '#slide_next', prevButton: '#slide_prev', duration: 800, /*autoslide: 2000*/ easing: 'easeOutBounce' }); $('#slide1').ulslide({ width: 150, height: 80, effect: { type: 'carousel', // slide or fade axis: 'x', // x, y showCount: 5 }, nextButton: '#slide_next1', prevButton: '#slide_prev1', duration: 800, autoslide: 2000 /*easing: 'easeOutBounce'*/ }); $('#slide3').ulslide({ width: 150, height: 80, effect: { type: 'carousel', // slide or fade axis: 'x', // x, y showCount: 5 }, nextButton: '#slide_next3', prevButton: '#slide_prev3', duration: 800, autoslide: 2000, easing: 'easeOutBounce' }); }); </script> <!--<style> .ad{ background: none repeat scroll 0 0 #F3F3F3; border: 1px solid #CCCCCC; font-size: 15px; height: 90px; margin: 0 auto 25px; padding: 0; text-align: center; width: 728px; } </style>--><?php }
function content_55e44453a38184_88672607($_smarty_tpl) { if ($_smarty_tpl->tpl_vars['block_type']->value == '' || $_smarty_tpl->tpl_vars['block_type']->value == 'normal') { ?> <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12" id="user-<?php echo $_smarty_tpl->tpl_vars['user']->value['userid']; ?> "> <hr> <div class="cb-user-thumb pull-left"> <a href="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->profile_link($_smarty_tpl->tpl_vars['user']->value); ?> "> <img src="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->getuserthumb($_smarty_tpl->tpl_vars['user']->value); ?> " class="img-circle full-width"> </a> </div> <div class="col-md-10"> <div class="pull-left"> <h4><a class="show" href="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->profile_link($_smarty_tpl->tpl_vars['user']->value); ?> "><?php echo $_smarty_tpl->tpl_vars['user']->value['username']; ?> </a></h4> <ul class="list-unstyled"> <?php if (isSectionEnabled('videos')) { ?> <li class="label label-primary" style="display: inline"><?php echo number_format($_smarty_tpl->tpl_vars['user']->value['total_videos']); ?> <?php echo smarty_lang(array('code' => "videos"), $_smarty_tpl); ?> </li> <?php } ?> <?php if (isSectionEnabled('photos')) { ?> <li class="label label-info" style="display: inline"><?php echo number_format($_smarty_tpl->tpl_vars['user']->value['total_photos']); ?> <?php echo smarty_lang(array('code' => "photos"), $_smarty_tpl); ?> </li> <?php } ?> <li class="label label-info" style="display: inline"><?php echo number_format($_smarty_tpl->tpl_vars['user']->value['profile_hits']); ?> <?php echo smarty_lang(array('code' => "views"), $_smarty_tpl); ?> </li> <li class="label label-danger" style="display: inline"><?php echo number_format($_smarty_tpl->tpl_vars['user']->value['subscribers']); ?> <?php echo smarty_lang(array('code' => "subscribers"), $_smarty_tpl); ?> </li> <!--<li><?php echo smarty_lang(array('code' => "last_active"), $_smarty_tpl); ?> : <?php echo nicetime($_smarty_tpl->tpl_vars['user']->value['last_active']); ?> </li>--> </ul> </div> </div> </div> <?php } if ($_smarty_tpl->tpl_vars['block_type']->value == 'groups_show') { ?> <div class="clearfix" id="user-<?php echo $_smarty_tpl->tpl_vars['user']->value['userid']; ?> "> <div class="cb-user-thumb pull-left"> <a href="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->profile_link($_smarty_tpl->tpl_vars['user']->value); ?> "> <img src="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->getuserthumb($_smarty_tpl->tpl_vars['user']->value); ?> " class="full-width"> </a> </div> <div class="user-detail-block"> <div class="clearfix"> <h4><a class="show" href="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->profile_link($_smarty_tpl->tpl_vars['user']->value); ?> "><?php echo $_smarty_tpl->tpl_vars['user']->value['username']; ?> </a></h4> <div class="clearfix info-box"> <div class="pull-left small"><span class="bg-eye"></span> <span><?php echo number_format($_smarty_tpl->tpl_vars['user']->value['profile_hits']); ?> <?php echo smarty_lang(array('code' => 'views'), $_smarty_tpl); ?> </span></div> <div class="pull-right small"><span class="bg-videocam"></span> <span><?php echo number_format($_smarty_tpl->tpl_vars['user']->value['total_videos']); ?> <?php echo smarty_lang(array('code' => 'Videos'), $_smarty_tpl); ?> </span></div> </div> <div class="clearfix"> <div class="pull-left small"><span class="bg-photos"></span> <span><?php echo number_format($_smarty_tpl->tpl_vars['user']->value['total_photos']); ?> <?php echo smarty_lang(array('code' => "photos"), $_smarty_tpl); ?> </span></div> <div class="pull-right small"><span class="fa fa-users fa-lg"></span> <?php echo number_format($_smarty_tpl->tpl_vars['user']->value['subscribers']); ?> <?php echo smarty_lang(array('code' => "subscribers"), $_smarty_tpl); ?> </div> </div> <!--<ul class="list-unstyled "> <?php if (isSectionEnabled('videos')) { ?> <li class="label " style="display: inline"><?php echo number_format($_smarty_tpl->tpl_vars['user']->value['total_videos']); ?> <?php echo smarty_lang(array('code' => "videos"), $_smarty_tpl); ?> </li> <?php } ?> <?php if (isSectionEnabled('photos')) { ?> <li class="label " style="display: inline"><?php echo number_format($_smarty_tpl->tpl_vars['user']->value['total_photos']); ?> <?php echo smarty_lang(array('code' => "photos"), $_smarty_tpl); ?> </li> <?php } ?> <li class="label" style="display: inline"><?php echo number_format($_smarty_tpl->tpl_vars['user']->value['profile_hits']); ?> <?php echo smarty_lang(array('code' => "views"), $_smarty_tpl); ?> </li> <li class="label" style="display: inline"><?php echo number_format($_smarty_tpl->tpl_vars['user']->value['subscribers']); ?> <?php echo smarty_lang(array('code' => "subscribers"), $_smarty_tpl); ?> </li> *<li><?php echo smarty_lang(array('code' => "last_active"), $_smarty_tpl); ?> : <?php echo nicetime($_smarty_tpl->tpl_vars['user']->value['last_active']); ?> </li>--> <!--</ul>--> </div> </div> <!-- <div class="user_icon"> <a href="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->profile_link($_smarty_tpl->tpl_vars['user']->value); ?> "> <img class="opacity_low" src="<?php echo $_smarty_tpl->tpl_vars['imageurl']->value; ?> /user_next_icon.png" width="25" height="25" /> </a> </div> --> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['block_type']->value == 'small') { ?> <div class="col-md-2" id="user-<?php echo $_smarty_tpl->tpl_vars['user']->value['userid']; ?> " align="center"> <a href="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->profile_link($_smarty_tpl->tpl_vars['user']->value); ?> "><?php echo $_smarty_tpl->tpl_vars['user']->value['username']; ?> </a> <a href="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->profile_link($_smarty_tpl->tpl_vars['user']->value); ?> "> <img src="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->getuserthumb($_smarty_tpl->tpl_vars['user']->value); ?> " class="img-thumbnail" class="user_mid_thumb"> </a> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['block_type']->value == 'medium') { ?> <div class="user_block_med" id="user-<?php echo $_smarty_tpl->tpl_vars['user']->value['userid']; ?> "> <div class="thumb_container_medium" > <a href="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->profile_link($_smarty_tpl->tpl_vars['user']->value); ?> "> <img src="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->getuserthumb($_smarty_tpl->tpl_vars['user']->value); ?> " class="img-thumbnail" class="user_thumb_medium"> </a> </div> <div class="prof_title"><a href="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->profile_link($_smarty_tpl->tpl_vars['user']->value); ?> "><?php echo $_smarty_tpl->tpl_vars['user']->value['username']; ?> </a></div> <?php echo number_format($_smarty_tpl->tpl_vars['user']->value['total_videos']); ?> <?php echo smarty_lang(array('code' => "videos"), $_smarty_tpl); ?> <?php echo number_format($_smarty_tpl->tpl_vars['user']->value['profile_hits']); ?> <?php echo smarty_lang(array('code' => "views"), $_smarty_tpl); ?> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['block_type']->value == "friends") { ?> <div class="pull-left marginLeft group_thumb_member" id="user-<?php echo $_smarty_tpl->tpl_vars['user']->value['userid']; ?> "> <a href="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->profile_link($_smarty_tpl->tpl_vars['user']->value); ?> " title="<?php echo $_smarty_tpl->tpl_vars['user']->value['username']; ?> "> <img class="group_thumb " src="<?php echo avatar(array('details' => $_smarty_tpl->tpl_vars['user']->value, 'size' => 'small'), $_smarty_tpl); ?> " alt="<?php echo $_smarty_tpl->tpl_vars['user']->value['username']; ?> " /> </a> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['block_type']->value == "topic_view") { ?> <div class="topicStarterAvatar moveL"> <i class="topicStarterAvatarBG" style="background:url(<?php echo avatar(array('details' => $_smarty_tpl->tpl_vars['user']->value), $_smarty_tpl); ?> ) center no-repeat; width:56px; height:56px;"><a href="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->profile_link($_smarty_tpl->tpl_vars['user']->value); ?> "><?php echo $_smarty_tpl->tpl_vars['user']->value['username']; ?> </a></i> </div> <?php } }
function content_55e44441c21315_45821929($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include '/var/www/includes/smartyv3/plugins/modifier.replace.php'; } ?> <script> var baseurl = '<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> '; var imageurl = '<?php echo $_smarty_tpl->tpl_vars['imageurl']->value; ?> '; </script> <script type="text/javascript"> var embedPlayerWidth = '<?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->configs['embed_player_width']; ?> '; var embedPlayerHeight = '<?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->configs['embed_player_height']; ?> '; var autoPlayEmbed = '<?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->configs['autoplay_embed']; ?> '; var embed_type = '<?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->configs['embed_type']; ?> '; function updateEmbed(width,height,autoplay) { $('#embed_code').val( $('#embed_code').val().replace(/width=\"([0-9]+)\"/g,'width="'+width+'"') ); $('#embed_code').val( $('#embed_code').val().replace(/height=\"([0-9]+)\"/g,'height="'+height+'"') ); $('#embed_code').val( $('#embed_code').val().replace(/width=([0-9]+)/g,'width='+width) ); $('#embed_code').val( $('#embed_code').val().replace(/height=([0-9]+)/g,'height='+height+'') ); } function switchEmbedCode(type) { if(embed_type==type) return false; else { embed_type = type; var alt_embed =$('#alternate_embed_code').val(); $('#alternate_embed_code').val($('#embed_code').val()); $('#embed_code').val(alt_embed); } } </script> <!-- Including JS Files--> <?php $_smarty_tpl->tpl_vars['type'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['type']->_loop = false; $_from = $_smarty_tpl->tpl_vars['Cbucket']->value->JSArray; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['type']->key => $_smarty_tpl->tpl_vars['type']->value) { $_smarty_tpl->tpl_vars['type']->_loop = true; ?> <?php $_smarty_tpl->tpl_vars['scope'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['scope']->_loop = false; $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['type']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['scope']->key => $_smarty_tpl->tpl_vars['scope']->value) { $_smarty_tpl->tpl_vars['scope']->_loop = true; $_smarty_tpl->tpl_vars['file']->value = $_smarty_tpl->tpl_vars['scope']->key; ?> <?php echo include_js(array('type' => $_smarty_tpl->tpl_vars['scope']->value, 'file' => $_smarty_tpl->tpl_vars['file']->value), $_smarty_tpl); ?> <?php } } ?> <!-- Including JS Files--> <script type="text/javascript"> callURLParser(); </script> <!-- Including Plugin Headers --> <?php $_smarty_tpl->tpl_vars['type'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['type']->_loop = false; $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['Cbucket']->value->header_files; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['type']->key => $_smarty_tpl->tpl_vars['type']->value) { $_smarty_tpl->tpl_vars['type']->_loop = true; $_smarty_tpl->tpl_vars['file']->value = $_smarty_tpl->tpl_vars['type']->key; ?> <?php echo include_header(array('file' => $_smarty_tpl->tpl_vars['file']->value, 'type' => $_smarty_tpl->tpl_vars['type']->value), $_smarty_tpl); ?> <?php } ?> <!-- Ending Plugin Headers --> <?php if (@constant('THIS_PAGE') == 'upload') { ?> <link href="<?php echo $_smarty_tpl->tpl_vars['js']->value; ?> /uploadify/uploadify.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['js']->value; ?> /uploadify/swfobject.js"></script> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['js']->value; ?> /uploadify/jquery.uploadify.v2.1.4.js"></script> <script type="text/javascript"> var jsURL = '<?php echo $_smarty_tpl->tpl_vars['js']->value; ?> '; var uploadError = false; var file_name = '<?php echo $_smarty_tpl->tpl_vars['file_name']->value; ?> '; var lang = new Array(); lang['saveData'] = '<?php echo smarty_lang(array('code' => 'save_data'), $_smarty_tpl); ?> '; lang['savingData'] = '<?php echo smarty_lang(array('code' => 'saving'), $_smarty_tpl); ?> '; lang['remoteUploadFile'] = '<?php echo smarty_lang(array('code' => "remote_upload_file"), $_smarty_tpl); ?> '; lang['upload_video_button'] = '<?php echo smarty_lang(array('code' => "upload_video_button"), $_smarty_tpl); ?> '; var fileExt = '<?php echo smarty_modifier_replace($_smarty_tpl->tpl_vars['Cbucket']->value->list_extensions(), ",", ";"); ?> '; var uploadSwfPath = '<?php echo $_smarty_tpl->tpl_vars['uploaderDetails']->value['uploadSwfPath']; ?> '; var uploadScriptPath = '<?php echo $_smarty_tpl->tpl_vars['uploaderDetails']->value['uploadScriptPath']; ?> '; var time_stamp = <?php echo time(); ?> ; function show_error(msg,ID,fade) { $('#file_uploads'+ID+' .percentage') .after('<div class=\"uploadErrorDiv\"><div class=\"uploadErrorMsg\">'+msg+'<\/div><\/div>'); if(fade){$('.uploadSuccessDiv').delay(3000).fadeOut('slow');} } function show_message(msg,ID,fade) { $('#uploadForm'+ID) .prepend('<div class=\"uploadSuccessDiv\"><div class=\"uploadSuccessMsg\">'+msg+'<\/div><\/div>'); if(fade){$('.uploadSuccessDiv').delay(3000).fadeOut('slow');} } function doUpdateVideo(formId,ID) { var formObjectData = $(formId).serialize(); //alert(serializedData); $('#updateVideoDataLoading').html('<img src="'+imageurl+'/ajax-loader.gif" />'); $('#cbSubmitUpload'+ID) .attr('disabled','disabled') .attr("value",lang.savingData) .attr("onClick","return false;"); $.post( baseurl+'/actions/file_uploader.php',formObjectData,function(data) { if(data.msg) show_message(data.msg,ID,true); if(data.error) show_error(data.error,ID,true); $('#updateVideoDataLoading').empty(); $('#cbSubmitUpload'+ID) .removeAttr("disabled") .attr("value",lang.saveData) .attr("onClick","doUpdateVideo('#uploadForm"+ID+"','"+ID+"')") },"json" ) } $(document).ready(function() { var instanceNumber = 0; function showUploadify(object) { $(object).uploadify({ 'uploader' : uploadSwfPath, 'scriptAccess' : 'always', 'script' : uploadScriptPath, 'cancelImg' : imageurl+'/cancel_upload.png', 'auto' : true, 'removeCompleted' : false, 'displayData' : 'both', 'fileExt' : fileExt, 'multi' : true, 'fileDesc' : 'Video Files', 'buttonText' : lang.upload_video_button, 'queueID' : 'fileUploadQueue', 'queueLimit' : 2, 'onOpen' : function(event,ID,fileObj) { uploadError = false; filename = new Date().getTime() + Math.round((99977 - 10016) * Math.random() + 1) ; $.ajax({ url: baseurl+'/actions/file_uploader.php', type: "POST", data:({"getForm":"get_form","title":fileObj.name,"objId":ID}), dataType: "text", success: function(data) { if(!uploadError) { $('#file_uploads'+ID).append(data); } } }); return true; }, 'onComplete' : function(event, ID, fileObj, response, data) { var resObj = eval('(' + response + ')'); var vid = ""; if(resObj.success=='yes') { var file_name = resObj.file_name; $.ajax({ url: baseurl+'/actions/file_uploader.php', type: "POST", data:({"insertVideo":"yes","title":fileObj.name,"file_name":file_name,'time_stamp' : time_stamp}), dataType: "text", success: function(data) { if(data.error) { show_error(data.error,ID,true); }else { vid = data.videoid; $("#uploadForm"+ID+" #title").after('<input type="hidden" name="videoid" value="'+vid+'" id="videoid" />') .after('<input type="hidden" name="updateVideo" value="yes" id="updateVideo" />'); $('#cbSubmitUpload'+ID) .before('<span id="updateVideoDataLoading" style="margin-right:5px"></span>') .removeAttr("disabled") .attr("value",lang.saveData) .attr("onClick","doUpdateVideo('#uploadForm"+ID+"','"+ID+"')"); doUpdateVideo('#uploadForm'+ID,ID); } } }); }else { $("#upload_form"+ID).empty().remove(); show_error(resObj.error,ID,false); uploadError = true; return false; } } }); } showUploadify('#file_uploads'); }); </script> <?php } else { ?> <script type="text/javascript"> window.onload = function() { <?php if ($_smarty_tpl->tpl_vars['total_quicklist']->value) { ?> load_quicklist_box(); <?php } ?> ini_cookies(); } </script> <?php } ?> <?php if (@constant('THIS_PAGE') == 'photo_upload') { ?> <link href="<?php echo $_smarty_tpl->tpl_vars['js']->value; ?> /uploadify/uploadify.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['js']->value; ?> /uploadify/swfobject.js"></script> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['js']->value; ?> /uploadify/jquery.uploadify.v2.1.4.js"></script> <script type="text/javascript" language="javascript"> fileExt = '<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->extensions(); ?> ', lang = new Array(), pData = new Array(), ajaxImage = '<img src="'+imageurl+'/ajax-loader.gif" style="vertical-align:middle;" /> ', uploadError = false; <?php if ($_GET['collection']) { ?> <?php if (isset($_smarty_tpl->tpl_vars['cid'])) { $_smarty_tpl->tpl_vars['cid'] = clone $_smarty_tpl->tpl_vars['cid']; $_smarty_tpl->tpl_vars['cid']->value = $_smarty_tpl->tpl_vars['cbphoto']->value->decode_key($_GET['collection']); $_smarty_tpl->tpl_vars['cid']->nocache = null; $_smarty_tpl->tpl_vars['cid']->scope = 0; } else { $_smarty_tpl->tpl_vars['cid'] = new Smarty_variable($_smarty_tpl->tpl_vars['cbphoto']->value->decode_key($_GET['collection']), null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['cbphoto']->value->is_addable($_smarty_tpl->tpl_vars['cid']->value)) { ?> collectionID = '<?php echo $_smarty_tpl->tpl_vars['cid']->value; ?> '; <?php } } ?> lang['browsePhrase'] = '<?php echo smarty_lang(array('code' => "browse_photos"), $_smarty_tpl); ?> '; lang['saveData'] = "<?php echo smarty_lang(array('code' => 'save_data'), $_smarty_tpl); ?> "; lang['savingData'] = "<?php echo smarty_lang(array('code' => 'saving'), $_smarty_tpl); ?> "; lang['upPhoto'] = "<?php echo smarty_lang(array('code' => 'update_photo'), $_smarty_tpl); ?> "; var uploadSwfPath = '<?php echo $_smarty_tpl->tpl_vars['photoUploaderDetails']->value['uploadSwfPath']; ?> '; var uploadScriptPath = '<?php echo $_smarty_tpl->tpl_vars['photoUploaderDetails']->value['uploadScriptPath']; ?> '; function photoMessage(message,ID,fade) { if(document.getElementById(ID+"Message")) $("#"+ID+"Message").children(":first-child").html(message).end().fadeIn('slow'); else { $("#Form"+ID).before('<div id=\"'+ID+'Message\" class=\"uploadSuccessDiv\"><div class=\"uploadSuccessMsg\">'+message+'<\/div><\/div>'); } if(fade) $("#"+ID+"Message").delay(300).fadeOut('slow'); } function photoError(message,ID,fade) { if(document.getElementById(ID+"Error")) $("#"+ID+"Error").children(":first-child").html(message).end().fadeIn('slow'); else { $("#Form"+ID) .before('<div id=\"'+ID+'Error\" class=\"uploadErrorDiv\"><div class=\"uploadErrorMsg\">'+message+'<\/div><\/div>'); } if(fade) $("#"+ID+"Error").delay(3000).fadeOut('slow'); } function QueueLimitError(message,fade) { $("#photoUploadQueue") .before('<div id=\"QueueError\" style=\"margin-top:6px;\" class=\"uploadErrorDiv\"><div class=\"uploadErrorMsg\">'+message+'<\/div><\/div>'); if(fade) $("#QueueError").delay(5000).fadeOut('slow'); } function insertAjaxPhoto(ID,filename,extension,server_url,folder) { var photoFields = $("#Form"+ID).serialize(); $.ajax({ url : baseurl+'/actions/photo_uploader.php', type : 'POST', dataType : 'json', data : photoFields+"&filename="+filename+"&ext="+extension+"&insertPhoto=yes&server_url="+server_url+ "&folder="+folder, beforeSend : function() { $("#cbSubmitUpload"+ID).html(ajaxImage+lang.savingData).attr('disabled','disabled'); }, success : function(data) { if(data.error) { photoError(data.error,ID,true); $("#cbSubmitUpload"+ID).html("Save Photo") .removeAttr('disabled').attr('onClick','insertAjaxPhoto("'+ID+'","'+filename+'","'+extension+'");'); } if(data.success) { photoMessage(data.success,ID,true); showPhotoPreview(ID,data.photoPreview); $("<input />").attr({ 'id' : 'photo_id', 'name' : 'photo_id', 'value' : data.photoID, 'type' : 'hidden' }).prependTo('#Form'+ID); $("#cbSubmitUpload"+ID).html(lang.upPhoto) .removeAttr('disabled').attr('onClick','updateAjaxPhoto("'+ID+'");'); } } }) } function updateAjaxPhoto(ID) { var updateFields = $("#Form"+ID).serialize(); $.ajax({ url : baseurl+'/actions/photo_uploader.php', type : 'POST', dataType : 'json', data : updateFields+"&updatePhoto=yes", beforeSend : function() { $("#cbSubmitUpload"+ID).html(ajaxImage+lang.upPhoto).attr('disabled','disabled'); }, success : function(data) { if(data.error) { photoError(data.error,ID,true); $("#cbSubmitUpload"+ID).removeAttr('disabled').html(lang.upPhoto); } if(data.success) { photoMessage(data.success,ID,true); $("#Form"+ID).hide(); $("#cbSubmitUpload"+ID).removeAttr('disabled').html(lang.upPhoto); if(!document.getElementById("toggle"+ID)) { $("<a></a>") .addClass('reUpdateButton') .attr({ "id" : "toggle"+ID, "href" : "#reUpdate", "onClick" : "$('#Form"+ID+"').toggle(); return false;", "title" : "Toggle Photo Form" }).html('Re-'+lang.upPhoto).appendTo("#photo_uploads"+ID+" .percentage").fadeIn(350); } } } }) } function showPhotoPreview(ID,preview) { var object = $("#"+ID+"Preview"), parentObj = object.parent(); var FinalPreview = new Image(); FinalPreview.src = preview; $(FinalPreview).load(function() { object.hide(); $("<img />") .addClass(object.attr('class')) .attr({ "id" : "FinalPreview"+ID, "src" : preview }).appendTo(parentObj).fadeIn('normal'); }); } function update_collection_selection(obj) { if($("#CollectionResult").css('display') == 'block') $("#CollectionResult").slideUp('fast'); var This = $(obj), thisObj = obj; This.attr('disabled','disabled'); This.after(ajaxImage); collectionID = thisObj.value; setTimeout(function(){ This.next().remove(); $("#CollectionResult").html("<div class='msg'>Collection Selected</div>").slideDown(350); This.removeAttr('disabled'); },1000); } $(document).ready(function() { function photoUploadify(object) { $(object).uploadify( { 'uploader' : uploadSwfPath, 'script' : uploadScriptPath, 'scriptAccess' : 'always', 'fileDataName' : 'photoUpload', 'cancelImg' : imageurl+'/cancel_upload.png', 'auto' : true, 'removeCompleted' : false, 'displayData' : 'both', 'fileExt' : fileExt, 'multi' : true, 'queueSizeLimit': '<?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->configs['photo_multi_upload']; ?> ', 'fileDesc' : 'Photo Files', 'buttonText' : lang.browsePhrase, 'queueID' : 'photoUploadQueue', 'sizeLimit' : '<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->max_file_size; ?> ', 'onSelect' : function(event,ID,fileObj) { uploadError = false; $.ajax({ url : baseurl+'/actions/photo_uploader.php', dataType : 'json', type : 'POST', data : ({ "photoForm":"yes" , "objID":ID , "name":fileObj.name , "collection":collectionID }), success : function(data) { if(!uploadError) $("#photo_uploads"+ID).append(data['form']); } }); }, 'onComplete' : function(event,ID,fileObj,response,data) { var resObj = $.parseJSON(response); if(resObj.success == "yes") { insertAjaxPhoto(ID,resObj.filename,resObj.extension,resObj.server_url,resObj.folder); } }, 'onQueueFull' : function(event,queueSizeLimit) { QueueError = "I'm stuffed, "+queueSizeLimit+" is my limit. Thanks."; QueueLimitError(QueueError,true); return false; }, 'onError' : function(event,ID,fileObj,errorObj) { uploadError = true; } }); } photoUploadify('#photo_uploads'); }); </script> <?php } ?> <?php if (@constant('THIS_PAGE') == 'view_item') { ?> <script type="text/javascript"> var Seo = '<?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->configs['seo']; ?> '; onReload_item(); </script> <?php } ?> <?php if (@constant('THIS_PAGE') == 'watch_video' || $_smarty_tpl->tpl_vars['object']->value['videoid']) { ?> <?php if ($_smarty_tpl->tpl_vars['object']->value['videoid']) { if (isset($_smarty_tpl->tpl_vars['vdo'])) { $_smarty_tpl->tpl_vars['vdo'] = clone $_smarty_tpl->tpl_vars['vdo']; $_smarty_tpl->tpl_vars['vdo']->value = $_smarty_tpl->tpl_vars['object']->value; $_smarty_tpl->tpl_vars['vdo']->nocache = null; $_smarty_tpl->tpl_vars['vdo']->scope = 0; } else { $_smarty_tpl->tpl_vars['vdo'] = new Smarty_variable($_smarty_tpl->tpl_vars['object']->value, null, 0); } ?> <?php } ?> <meta property="og:title" content="<?php echo $_smarty_tpl->tpl_vars['vdo']->value['title']; ?> " /> <meta property="og:description" content="<?php echo preg_replace('!<[^>]*?>!', ' ', description($_smarty_tpl->tpl_vars['vdo']->value['description'])); ?> " /> <meta property="og:image" content="<?php echo getSmartyThumb(array('vdetails' => $_smarty_tpl->tpl_vars['vdo']->value), $_smarty_tpl); ?> " /> <?php if ($_smarty_tpl->tpl_vars['Cbucket']->value->configs['facebook_embed'] == 'yes') { ?> <meta property="og:type" content="video"> <meta property="og:video" content='<?php echo fb_embed_video(array('video' => $_smarty_tpl->tpl_vars['vdo']->value), $_smarty_tpl); ?> '> <meta property="og:video:height" content="259" /> <meta property="og:video:width" content="398" /> <meta property="og:video:type" content="application/x-shockwave-flash"> <?php } ?> <meta property='og:url' content='<?php echo videoSmartyLink(array('vdetails' => $_smarty_tpl->tpl_vars['vdo']->value), $_smarty_tpl); ?> '/> <meta property='og:site_name' content='<?php echo $_smarty_tpl->tpl_vars['website_title']->value; ?> '/> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['object']->value['photo_id']) { ?> <meta property="og:title" content="<?php echo $_smarty_tpl->tpl_vars['object']->value['photo_title']; ?> " /> <meta property="og:description" content="<?php echo description($_smarty_tpl->tpl_vars['object']->value['photo_description']); ?> " /> <meta property="og:image" content="<?php echo get_image_file(array('details' => $_smarty_tpl->tpl_vars['object']->value, 'size' => 'm', 'output' => 'non_html', 'alt' => $_smarty_tpl->tpl_vars['object']->value['photo_title']), $_smarty_tpl); ?> " /> <meta name="medium" content="image" /> <?php } ?> <?php if (@constant('THIS_PAGE') == 'view_channel') { ?> <meta property="og:title" content="<?php echo $_smarty_tpl->tpl_vars['user']->value['username']; ?> " /> <?php } ?> <?php if (@constant('THIS_PAGE') == 'videos') { ?> <meta property="og:description" content="this is a videos page of ClipBucket"/> <?php } ?> <script> $(function() { /*$( ".date_field" ).datepicker({ dateFormat: 'yy-mm-dd', changeMonth: true, changeYear: true, yearRange : "1901 : c" });*/ }); </script> <?php echo ANCHOR(array('place' => 'cb_head'), $_smarty_tpl); ?> <!-- ClipBucket version <?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->cbinfo['version']; ?> --><?php }
function content_55e4460f9ceb48_97879801($_smarty_tpl) { if (!is_callable('smarty_modifier_truncate')) { include '/var/www/includes/smartyv3/plugins/modifier.truncate.php'; } if ($_smarty_tpl->tpl_vars['display_type']->value == '') { ?> <div class="col-lg-3 col-md-3 col-sm-3 col-xs-6 mbm ft-hover"> <!--<span class="photoname" id="avatar1_file" style="height: 45px; overflow: hidden;" ><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['photo']->value['photo_title'], 30); ?> </span>--> <a class="searchresult-photo" href="<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['photo']->value, 'view_item'); ?> " title="Tolpis barbata (mariluzpicado)"> <?php echo get_image_file(array('details' => $_smarty_tpl->tpl_vars['photo']->value, 'size' => 'l', 'class' => 'photo-land', 'output' => 'html'), $_smarty_tpl); ?> <!-- <img alt="<?php echo $_smarty_tpl->tpl_vars['photo']->value['photo_title']; ?> " title="<?php echo $_smarty_tpl->tpl_vars['photo']->value['photo_title']; ?> " class="photo-land" id="photo_<?php echo $_smarty_tpl->tpl_vars['photo']->value['photo_id']; ?> " src="<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> /styles/cbv2.7/timthumb.php?src=<?php echo get_image_file(array('details' => $_smarty_tpl->tpl_vars['photo']->value, 'size' => 'o'), $_smarty_tpl); ?> &h=150&w=150&zc=1"> --> <!-- <span class="photoname"> <?php if ($_smarty_tpl->tpl_vars['photo']->value['photo_title'] == 'no-tag') { ?> no-title <?php } else { ?> <?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['photo']->value['photo_title'], 25); ?> <?php } ?> </span> --> </a> <div class="hover"> <a href="<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['photo']->value, 'view_item'); ?> " title="Tolpis barbata (mariluzpicado)"> <span class="photo-title"> <?php if ($_smarty_tpl->tpl_vars['photo']->value['photo_title'] == 'no-tag') { ?> no-title <?php } else { ?> <?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['photo']->value['photo_title'], 25); ?> <?php } ?> </span> <span class="plus">plus</span> </a> </div> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['display_type']->value == 'related_photos') { ?> <div class="relatedPhotos clearfix"> <a href="<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['photo']->value, 'view_item'); ?> "><?php echo get_image_file(array('details' => $_smarty_tpl->tpl_vars['photo']->value, 'output' => 'html', 'width' => '120', 'class' => 'photoThumbBox moveL', 'style' => 'margin-right:5px;'), $_smarty_tpl); ?> </a> <div class="photoTitle" style="margin-bottom:5px;"><a href="<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['photo']->value, 'view_item'); ?> " title="<?php echo $_smarty_tpl->tpl_vars['photo']->value['photo_title']; ?> "><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['photo']->value['photo_title'], 15); ?> </a></div> <span class="photoInfo"><?php echo number_format($_smarty_tpl->tpl_vars['photo']->value['views']); ?> <?php echo smarty_lang(array('code' => "views"), $_smarty_tpl); ?> <br/> <?php echo $_smarty_tpl->tpl_vars['photo']->value['total_comments']; ?> <?php echo smarty_lang(array('code' => "comments"), $_smarty_tpl); ?> </span> <?php echo show_rating(array('rating' => $_smarty_tpl->tpl_vars['photo']->value['rating'], 'total' => '10', 'class' => 'rating moveL'), $_smarty_tpl); ?> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['display_type']->value == 'subscription') { ?> <div class="grid_view clearfix" style="width:auto; margin-right:4px;"> <a href="<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['photo']->value, 'view_item'); ?> "><?php echo get_image_file(array('details' => $_smarty_tpl->tpl_vars['photo']->value, 'output' => 'html', 'class' => 'photoThumbBox', 'width' => '110'), $_smarty_tpl); ?> </a> <div class="photoTitle" style="margin:5px 0px; font:bold 11px Arial;"> <a href="<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['photo']->value, 'view_item'); ?> " title="<?php echo $_smarty_tpl->tpl_vars['photo']->value['photo_title']; ?> "><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['photo']->value['photo_title'], 15); ?> </a></div> <?php echo show_rating(array('rating' => $_smarty_tpl->tpl_vars['photo']->value['rating'], 'total' => '10', 'class' => 'rating'), $_smarty_tpl); ?> <div style="font-size:10px; margin:2px;"><?php echo number_format($_smarty_tpl->tpl_vars['photo']->value['views']); ?> <?php echo smarty_lang(array('code' => "views"), $_smarty_tpl); ?> </div> <a href="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->profile_link($_smarty_tpl->tpl_vars['photo']->value); ?> " style="font:bold 10px Arial; text-decoration:none;"><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['photo']->value['username'], 20); ?> </a> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['display_type']->value == "side_photos") { ?> <div style="display:inline-block; *display:inline; vertical-align:middle; padding:0 8px 5px 0px;"> <a href="<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['photo']->value, 'view_item'); ?> "><?php echo get_image_file(array('details' => $_smarty_tpl->tpl_vars['photo']->value, 'output' => 'html', 'width' => '82', 'class' => 'photoThumbBox'), $_smarty_tpl); ?> </a> <div class="photoTitle" style="font:bold 10px Arial; margin:1px 0px"> <a href="<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['photo']->value, 'view_item'); ?> " title="<?php echo $_smarty_tpl->tpl_vars['photo']->value['photo_title']; ?> "><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['photo']->value['photo_title'], 15); ?> </a> </div> <div class="watch_video_box_details"> <span style="color:#666; font:normal 10px Arial;"><?php echo smarty_lang(array('code' => 'views'), $_smarty_tpl); ?> : <?php echo number_format($_smarty_tpl->tpl_vars['photo']->value['views']); ?> </span><br> <a style="font:bold 10px Arial; text-decoration:none;" href="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->profile_link($_smarty_tpl->tpl_vars['photo']->value); ?> " title="<?php echo $_smarty_tpl->tpl_vars['photo']->value['username']; ?> " alt="<?php echo $_smarty_tpl->tpl_vars['photo']->value['username']; ?> "><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['photo']->value['username'], 12); ?> </a> </div> </div> <?php } if ($_smarty_tpl->tpl_vars['display_type']->value == "side_photos_viewed") { ?> <div style="display:inline-block; *display:inline; vertical-align:middle; padding:0 8px 5px 0px;"> <a href="<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['photo']->value, 'view_item'); ?> "><?php echo get_image_file(array('details' => $_smarty_tpl->tpl_vars['photo']->value, 'output' => 'html', 'width' => "255", 'height' => "100", 'class' => 'cb_img_thum'), $_smarty_tpl); ?> </a> <div class="photoTitle pull-left" style="font:bold 10px Arial; margin:1px 0px"> <a href="<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['photo']->value, 'view_item'); ?> " title="<?php echo $_smarty_tpl->tpl_vars['photo']->value['photo_title']; ?> "><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['photo']->value['photo_title'], 15); ?> </a> </div> <div class="watch_video_box_details pull-right"> <span style="color:#666; font:normal 10px Arial;"><?php echo smarty_lang(array('code' => 'views'), $_smarty_tpl); ?> : <?php echo number_format($_smarty_tpl->tpl_vars['photo']->value['views']); ?> </span> </div> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['display_type']->value == "channel_page") { ?> <li class="itemBox" onclick="loadObject(this,'photos','<?php echo $_smarty_tpl->tpl_vars['photo']->value['photo_id']; ?> ','viewingArea')"> <?php echo get_image_file(array('details' => $_smarty_tpl->tpl_vars['photo']->value, 'output' => 'html', 'width' => '110', 'height' => '64', 'size' => 'm', 'style' => 'display:block;margin:0px auto;'), $_smarty_tpl); ?> </li> <!-- itemBox <?php echo $_smarty_tpl->tpl_vars['photo']->value['photo_key']; ?> end --> <?php } ?> <?php }
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_56afd771f31315_38103249($_smarty_tpl) { if (!is_callable('smarty_modifier_date_format')) { include '/var/www/html/includes/smartyv3/plugins/modifier.date_format.php'; } ?> <html> <body style="background-color: #ffffff;"> <div class="container"> <div class="row "> <div class="logo-admin"> <a href="<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> " class="login-logo"></a> </div> <h3 align="center" class="mrgnt10">Sign in with your Clipbucket Account</h3> <div class="col-sm-6 col-sm-6 col-sm-offset-3 col-md-4 col-md-offset-4 mrgnt20"> <?php echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/msg.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <div id="login_box"> <span class="login-profile"></span> <form name="form1" method="post" action="#"> <div class="form-group"> <input placeholder="Username" type="text" name="username" id="username" class="form-control"> </div> <div class="form-group"> <input placeholder="Password" type="password" name="password" id="password" class="form-control"> </div> <div class="form-group"> <input type="submit" name="login" class="btn btn-primary btn-block" value="Login"> </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></div> </form> </div> </div> </div> <div align="center" class="login_footer mrgnt10"> © ClipBucket Copyright 2007 – <?php echo smarty_modifier_date_format(time(), "%Y"); ?> | Arslan Hassan </div> </div> </body> </html> <?php }
function content_56afd7a7a2e242_07506071($_smarty_tpl) { if (isset($_smarty_tpl->tpl_vars['topMenuLinks'])) { $_smarty_tpl->tpl_vars['topMenuLinks'] = clone $_smarty_tpl->tpl_vars['topMenuLinks']; $_smarty_tpl->tpl_vars['topMenuLinks']->value = array_slice($_smarty_tpl->tpl_vars['myAccountLinks']->value, 0, 6); $_smarty_tpl->tpl_vars['topMenuLinks']->nocache = null; $_smarty_tpl->tpl_vars['topMenuLinks']->scope = 0; } else { $_smarty_tpl->tpl_vars['topMenuLinks'] = new Smarty_variable(array_slice($_smarty_tpl->tpl_vars['myAccountLinks']->value, 0, 6), null, 0); } ?> <?php if (userid()) { ?> <div class="userAccountMenu navbar navbar-default cb-box row visible-xs"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <div class="userPicContainer"> <?php if (userid()) { ?> <a class="navbar-brand <?php if (userid()) { ?> nopadding <?php } ?> " style="<?php if (userid()) { ?> padding-top: 7px ! important; <?php } ?> " href="#"> <img class="cb_img_thum" src="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->getUserThumb('', 'small', userid()); ?> " style="width: 40px; height: 40px;"/> My Account <small>Total Uploaded Videos: <?php echo $_smarty_tpl->tpl_vars['user']->value['total_videos']; ?> </small> </a> <?php } ?> <!--<a class="navbar-brand" href="#"> --> <!--My Account--> <!--</a>--> </div> </div> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav"> <?php $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['value']->_loop = false; $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['topMenuLinks']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) { $_smarty_tpl->tpl_vars['value']->_loop = true; $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['value']->key; ?> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo $_smarty_tpl->tpl_vars['key']->value; ?> <b class="caret"></b></a> <ul class="dropdown-menu"> <?php $_smarty_tpl->tpl_vars['subValue'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['subValue']->_loop = false; $_smarty_tpl->tpl_vars['subKey'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['value']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['subValue']->key => $_smarty_tpl->tpl_vars['subValue']->value) { $_smarty_tpl->tpl_vars['subValue']->_loop = true; $_smarty_tpl->tpl_vars['subKey']->value = $_smarty_tpl->tpl_vars['subValue']->key; ?> <li><a href="<?php echo $_smarty_tpl->tpl_vars['subValue']->value; ?> "><?php echo $_smarty_tpl->tpl_vars['subKey']->value; ?> </a></li> <?php } ?> </ul> </li> <?php } ?> </ul> <div class="pull-right"> <a class="btn btn-info" href="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->profile_link($_smarty_tpl->tpl_vars['userquery']->value->udetails); ?> "><?php echo smarty_lang(array('code' => 'com_my_channel'), $_smarty_tpl); ?> </a> </div> </div> </div> <?php } }
function content_56afda72c37094_74986900($_smarty_tpl) { if (isset($_smarty_tpl->tpl_vars['video'])) { $_smarty_tpl->tpl_vars['video'] = clone $_smarty_tpl->tpl_vars['video']; $_smarty_tpl->tpl_vars['video']->value = $_smarty_tpl->tpl_vars['vdo']->value; $_smarty_tpl->tpl_vars['video']->nocache = null; $_smarty_tpl->tpl_vars['video']->scope = 0; } else { $_smarty_tpl->tpl_vars['video'] = new Smarty_variable($_smarty_tpl->tpl_vars['vdo']->value, null, 0); } if (isset($_smarty_tpl->tpl_vars['type'])) { $_smarty_tpl->tpl_vars['type'] = clone $_smarty_tpl->tpl_vars['type']; $_smarty_tpl->tpl_vars['type']->value = 'video'; $_smarty_tpl->tpl_vars['type']->nocache = null; $_smarty_tpl->tpl_vars['type']->scope = 0; } else { $_smarty_tpl->tpl_vars['type'] = new Smarty_variable('video', null, 0); } ?> <div class="container"> <div class="row"> <div class="col-lg-8 col-md-8 col-sm-12 col-xs-12 html5_player_enlarge nopadding-right "> <div class="cb-box pad-bottom-sm"> <div id="cb_player" class="no-pad cb_player"> <?php echo flashPlayer(array('vdetails' => $_smarty_tpl->tpl_vars['video']->value, 'width' => '100%', 'height' => '100%'), $_smarty_tpl); ?> </div> <!-- cb_player end --> <div class="watch-vid-title mbm"> <h1><?php echo $_smarty_tpl->tpl_vars['video']->value['title']; ?> </h1> </div> <div class="vid-detail-sec"> <div class="watch-vid-thumb"> <img src="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->avatar($_smarty_tpl->tpl_vars['video']->value); ?> " class="img-circle"/> </div> <div class="watch-vid-user-sec"> <div class="watch-vid-user-name mtm"> <a href="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->profile_link($_smarty_tpl->tpl_vars['video']->value); ?> "> <?php echo $_smarty_tpl->tpl_vars['video']->value['username']; ?> </a> </div> <?php if ($_smarty_tpl->tpl_vars['video']->value['userid'] != userid()) { ?> <a id="subscribeUser" class="btn btn-xs btn-primary" href="javascript:void(0)"> <?php echo lang('Subscribe'); ?> </a><?php } ?> </div> <div class="watch-vid-rating-sec"> <div class="watch-vid-rating-view"> <?php echo number_format($_smarty_tpl->tpl_vars['vdo']->value['views']); ?> <span class="small font18"><?php echo lang('View'); if ($_smarty_tpl->tpl_vars['vdo']->value['views'] > 1) { echo lang('s'); } ?> </span> </div> <div class="watch-vid-thumbsupdown-sec" id="rating_container"> <?php echo show_video_rating(array('rating' => $_smarty_tpl->tpl_vars['vdo']->value['rating'], 'ratings' => $_smarty_tpl->tpl_vars['vdo']->value['rated_by'], 'total' => '10', 'id' => $_smarty_tpl->tpl_vars['vdo']->value['videoid'], 'type' => 'video'), $_smarty_tpl); ?> </div> </div> </div> <!-- vid-detail-sec end --> <div class="cb-item-desc-container clearfix grey-tabs"> <ul class="nav nav-tabs"> <li class="active"> <a href="#cb-item-info" data-toggle="tab"><i class="fa fa-info"></i> <?php echo lang('Info'); ?> </a> </li> <li> <a href="#cb-item-share" data-toggle="tab"><i class="fa fa-share-square-o"></i> <?php echo lang('Share'); ?> </a> </li> <li> <a href="#cb-item-addto" data-toggle="tab"><i class="fa fa-plus"></i> <?php echo lang('Add to'); ?> </a> </li> <li> <a id="reportVideo" href="#cb-item-report" data-toggle="tab"><i class="fa fa-flag"></i> <?php echo lang('Report'); ?> </a> </li> </ul> <div class="tab-content"> <div class="tab-pane active" id="cb-item-info"> <div class="col-lg-9 col-md-9 col-sm-9 col-xs-7 no-padding"> <p><?php echo description(description($_smarty_tpl->tpl_vars['video']->value['description'])); ?> </p> <div class="watch-vid-tag"> <strong ><?php echo lang('Category:'); ?> </strong> <span ><?php echo categories($_smarty_tpl->tpl_vars['vdo']->value['category'], 'video'); ?> </span> </div> <div class="watch-vid-tag"> <strong ><?php echo lang('Tags:'); ?> </strong> <span ><?php echo tags($_smarty_tpl->tpl_vars['vdo']->value['tags'], 'videos'); ?> </span> </div> <div class="watch-vid-tag"> <strong >Published: </strong> <span ><?php echo niceTime($_smarty_tpl->tpl_vars['video']->value['date_added']); ?> </span> </div> <!-- view sec hide on told arslan bhai --> <!-- <div class="mtm"> <strong><?php echo smarty_lang(array('code' => 'views'), $_smarty_tpl); ?> </strong> : <?php echo number_format($_smarty_tpl->tpl_vars['vdo']->value['views']); ?> – <strong><?php echo smarty_lang(array('code' => 'duration'), $_smarty_tpl); ?> </strong> : <?php echo SetTime($_smarty_tpl->tpl_vars['vdo']->value['duration']); ?> – <strong><?php echo smarty_lang(array('code' => 'comments'), $_smarty_tpl); ?> </strong> : <?php echo number_format($_smarty_tpl->tpl_vars['vdo']->value['comments_count']); ?> </div> --> </div> <div class="col-lg-3 col-md-3 col-sm-3 col-xs-5 no-padding" style="margin-top:25px;"> <div class="watch-vid-social-sec col-lg-12 pull-right no-padding"> <a class="cb-item-social-icon twitter" href="https://twitter.com/share" target="_blank"> <i class="fa fa-twitter"></i> </a> <a class="cb-item-social-icon googlep" href="https://plus.google.com/share?url=<?php echo urlencode(videolink($_smarty_tpl->tpl_vars['video']->value)); ?> " target="_blank"> <i class="fa fa-google-plus"></i> </a> <a class="cb-item-social-icon facebook" href="http://www.facebook.com/sharer/sharer.php?s=100&p[url]=<?php echo urlencode(videoLink($_smarty_tpl->tpl_vars['video']->value)); ?> &p[images][0]=<?php echo getSmartyThumb(array('vdetails' => $_smarty_tpl->tpl_vars['video']->value), $_smarty_tpl); ?> &p[title]=<?php echo urlencode(title($_smarty_tpl->tpl_vars['video']->value['title'])); ?> &p[summary]=<?php echo urlencode(description($_smarty_tpl->tpl_vars['video']->value['description'])); ?> " target="_blank"> <i class="fa fa-facebook"></i> </a> </div> <?php if ($_smarty_tpl->tpl_vars['Cbucket']->value->configs['video_download'] == 1 && $_smarty_tpl->tpl_vars['cbvid']->value->downloadable($_smarty_tpl->tpl_vars['vdo']->value)) { ?> <div class="dropdown col-lg-12 pull-right no-padding text-right"> <button class="btn btn-success dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="true" style="margin-top: 10px;"> Download <span class="caret"></span> </button> <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1"> <?php if (isset($_smarty_tpl->tpl_vars['files'])) { $_smarty_tpl->tpl_vars['files'] = clone $_smarty_tpl->tpl_vars['files']; $_smarty_tpl->tpl_vars['files']->value = get_video_files($_smarty_tpl->tpl_vars['vdo']->value, true, true); $_smarty_tpl->tpl_vars['files']->nocache = null; $_smarty_tpl->tpl_vars['files']->scope = 0; } else { $_smarty_tpl->tpl_vars['files'] = new Smarty_variable(get_video_files($_smarty_tpl->tpl_vars['vdo']->value, true, true), null, 0); } ?> <?php $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['file']->_loop = false; $_from = $_smarty_tpl->tpl_vars['files']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['file']->key => $_smarty_tpl->tpl_vars['file']->value) { $_smarty_tpl->tpl_vars['file']->_loop = true; ?> <?php if (isset($_smarty_tpl->tpl_vars['quality'])) { $_smarty_tpl->tpl_vars['quality'] = clone $_smarty_tpl->tpl_vars['quality']; $_smarty_tpl->tpl_vars['quality']->value = explode('-', $_smarty_tpl->tpl_vars['file']->value); $_smarty_tpl->tpl_vars['quality']->nocache = null; $_smarty_tpl->tpl_vars['quality']->scope = 0; } else { $_smarty_tpl->tpl_vars['quality'] = new Smarty_variable(explode('-', $_smarty_tpl->tpl_vars['file']->value), null, 0); } ?> <?php if (isset($_smarty_tpl->tpl_vars['quality'])) { $_smarty_tpl->tpl_vars['quality'] = clone $_smarty_tpl->tpl_vars['quality']; $_smarty_tpl->tpl_vars['quality']->value = explode('.', $_smarty_tpl->tpl_vars['quality']->value[1]); $_smarty_tpl->tpl_vars['quality']->nocache = null; $_smarty_tpl->tpl_vars['quality']->scope = 0; } else { $_smarty_tpl->tpl_vars['quality'] = new Smarty_variable(explode('.', $_smarty_tpl->tpl_vars['quality']->value[1]), null, 0); } ?> <?php if (isset($_smarty_tpl->tpl_vars['file_quality'])) { $_smarty_tpl->tpl_vars['file_quality'] = clone $_smarty_tpl->tpl_vars['file_quality']; $_smarty_tpl->tpl_vars['file_quality']->value = $_smarty_tpl->tpl_vars['quality']->value[0]; $_smarty_tpl->tpl_vars['file_quality']->nocache = null; $_smarty_tpl->tpl_vars['file_quality']->scope = 0; } else { $_smarty_tpl->tpl_vars['file_quality'] = new Smarty_variable($_smarty_tpl->tpl_vars['quality']->value[0], null, 0); } ?> <li role="presentation"> <a role="menuitem" tabindex="-1" href="<?php echo $_smarty_tpl->tpl_vars['file']->value; ?> " download> <span class="glyphicon glyphicon-download-alt"></span><?php echo $_smarty_tpl->tpl_vars['file_quality']->value; ?> </a> </li> <?php } ?> </ul> </div> <?php } ?> </div> <br> </div> <div class="tab-pane" id="cb-item-share"> <?php echo show_share_form(array('id' => $_smarty_tpl->tpl_vars['vdo']->value['videoid'], 'type' => 'video'), $_smarty_tpl); ?> </div> <div class="tab-pane" id="cb-item-addto"> <div class="clearfix visible-xs-block" style="margin-bottom:25px;"> <div id="video_action_result_cont" style="display:none;"></div> <a class="btn mtm btn-block btn-primary" href="javascript:void(0)" onclick="add_to_fav('video','<?php echo $_smarty_tpl->tpl_vars['vdo']->value['videoid']; ?> ');" style="color:white;">Add to My Favorites</a> </div> <div class="alert "> <?php echo show_playlist_form(array('id' => $_smarty_tpl->tpl_vars['vdo']->value['videoid'], 'type' => 'video'), $_smarty_tpl); ?> </div> <?php if (userid()) { ?> <div class="alert "> <div class="clearfix"></div> <div align="right"><a href="javascript:void(0)" onclick="$('#addCollectionCont').toggle()" style="text-decoration:none"><strong>+ <?php echo smarty_lang(array('code' => 'add_to_my_collection'), $_smarty_tpl); ?> </strong></a> </div> <div id="addCollectionCont" style="display:none"><?php echo show_collection_form(array('id' => $_smarty_tpl->tpl_vars['vdo']->value['videoid'], 'type' => 'Video'), $_smarty_tpl); ?> </div> </div> <?php } ?> </div> <div class="tab-pane" id="cb-item-report"> <?php echo show_flag_form(array('id' => $_smarty_tpl->tpl_vars['vdo']->value['videoid'], 'type' => 'video'), $_smarty_tpl); ?> </div> </div> </div> <div id="messageFav" class="alert alert-info marginTop" style="display:none"></div> <div id="test1"></div> <div id="reply" class="clearfix"> <div class="pad-bottom"> <div class="addComment clearfix"> <div class="com_count" id="com_count"><span><?php echo smarty_lang(array('code' => 'comments'), $_smarty_tpl); ?> </span> <?php echo $_smarty_tpl->tpl_vars['vdo']->value['comments_count']; ?> </div> <?php if ($_smarty_tpl->tpl_vars['myquery']->value->is_commentable($_smarty_tpl->tpl_vars['vdo']->value, 'v')) { ?> <?php echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/comments/add_comment.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['vdo']->value['videoid'], 'type' => 'v'), 0); ?> <?php } else { ?> <div class="alert alert-warning"><?php echo smarty_lang(array('code' => 'comm_disabled_for_vid'), $_smarty_tpl); ?> </div> <?php } ?> </div> <div id="userCommentsList"> </div> </div> </div> </div> </div> <!--Side bar start--> <div class="col-lg-4 col-md-4 visible-lg visible-md side-video pull-right"> <div class="cb-box"> <div class="ad"><?php echo getAd(array('place' => 'ad_320x250'), $_smarty_tpl); ?> </div> <!-- <a href="http://www.arvixe.com/clipbucket_hosting?utm_campaign=300x250_Demo&utm_medium=banner&utm_source=clipbucket.com"><img class="banner" src="<?php echo $_smarty_tpl->tpl_vars['theme']->value; ?> /assets/images/add320x250.png" style="margin-bottom: 10px; width: 100%;" > </a>--> <!-- <h3><?php echo smarty_lang(array('code' => "Most Popular"), $_smarty_tpl); ?> </h3> --> <?php if ($_GET['play_list'] == '') { ?> <?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; ?> <?php echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/videos/video_popular.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php } ?> <?php } else { ?> <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['plist'])) { unset($_smarty_tpl->tpl_vars['smarty']->value['section']['plist']); } $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['name'] = 'plist'; $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['items']->value) ? count($_loop) : max(0, (int) $_loop); unset($_loop); $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['show'] = true; $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['loop']; $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['step'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['loop'] - 1; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['show']) { $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['loop']; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['total'] == 0) { $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['show'] = false; } } else { $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['total'] = 0; } if ($_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['show']) { for ($_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['iteration']++) { $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['iteration']; $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['iteration'] == 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['total']; ?> <?php echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/manage/account_video.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('video' => $_smarty_tpl->tpl_vars['items']->value[$_smarty_tpl->getVariable('smarty')->value['section']['plist']['index']], 'control' => "onWatch", 'pid' => $_smarty_tpl->tpl_vars['playlist']->value['playlist_id']), 0); ?> <?php } } ?> <?php } ?> </div> </div> <!-- /Side bar--> </div> </div> <div style="height:20px"> </div> <script> //var aspect_ratio = 1.77778 var aspect_ratio = 2.2 var $cb_player = $("#cb_player"); $(document).ready(function(){ $cb_player.height( $cb_player.width() / aspect_ratio ); var videoInfo = $("#videoDescription").text(); var newInfo = videoInfo.replace(/(((https?:\/\/)|([\s\t]))(www.)?([a-z0-9]+)\.[a-z]+)/g, '<a href="$1">$1</a>'); $("#videoDescription").html(newInfo); comments_voting = '<?php echo $_smarty_tpl->tpl_vars['vdo']->value['comment_voting']; ?> '; _cb.getAllComments( '<?php echo $_smarty_tpl->tpl_vars['type']->value; ?> ', '<?php echo $_smarty_tpl->tpl_vars['vdo']->value['videoid']; ?> ', '<?php echo $_smarty_tpl->tpl_vars['vdo']->value['last_commented']; ?> ',1, '<?php echo $_smarty_tpl->tpl_vars['vdo']->value['comments_count']; ?> ', '<?php echo $_smarty_tpl->tpl_vars['object_type']->value; ?> ' ); // $('.cb-item-description').readmore({ // speed: 75, // maxHeight: 120, // moreLink : '<a href="#" class="btn btn-min btn-block btn-primary"><i class="glyphicon glyphicon-arrow-down"></i> <?php echo lang("Read more"); ?> </a>', // lessLink : '<a href="#" class="btn btn-min btn-block btn-default"><?php echo lang("Close"); ?> </a>' // }); $("#reportVideo").on({ click : function(e){ e.preventDefault(); $("#flag_item").show(); } }); $("#subscribeUser").on({ click: function(e){ e.preventDefault(); _cb.subscribeToChannel('<?php echo $_smarty_tpl->tpl_vars['video']->value['userid']; ?> ','subscribe_user','video_detail_result_cont'); } }); }); var resizePlayer = _cb.debounce(function() { $cb_player.height( $cb_player.width() / aspect_ratio ); }, 500, false); $(window).resize(resizePlayer); </script> <style type="text/css"> footer{ position: relative; top: 65px; } </style><?php }
/** * Creates a feed of comments. * * @todo Do not display comments that haven't been moderated/approved. * @param string $feed_template * @param array $comment * @return string */ function _renderFeedComments($feed_template, $amount = 10, $comments) { global $PIVOTX; $i = 0; $feed_items = ""; // Loop through the comments.. foreach ($comments as $comment) { $tag = safeString($PIVOTX['config']->get('sitename'), TRUE) . "," . date("Y") . ":" . safeString($PIVOTX['weblogs']->get('', 'name'), TRUE); $tag .= '.entry%uid%.comment' . $i; $tag = str_replace("_", "", strtolower($tag)); $date = formatDate($comment['date'], "%year%-%month%-%day%T%hour24%:%minute%:00") . $this->_rssOffset(); $date_rfc = formatDate($comment['date'], "%english_dname%, %day% %english_monname% %year% %hour24%:%minute%:00 ") . $this->_rssOffset("rfc822"); $summary = unentify(strip_tags($comment['comment'])); $summary = trim(str_replace("&", "&", str_replace(" ", " ", $summary))); $summary = relativeToAbsoluteURLS($summary); if (strlen($summary) > 32) { $title = substr($summary, 0, 35) . '...'; } else { $title = $summary; } // Make the link.. $id = makeURI(html_entity_decode($comment['name'], ENT_COMPAT, 'UTF-8')) . "-" . formatDate($comment['date'], "%ye%%month%%day%%hour24%%minute%"); $url = makeFileURL($comment['entry_uid'], '', $id); $replace = array("%title%" => htmlspecialchars(strip_tags($title)), "%link%" => $url, "%summary%" => $summary, "%content%" => $summary, "%description%" => $summary, "%author%" => $comment['name'], "%guid%" => $url, "%date%" => $date, "%date_rfc%" => $date_rfc, "%tag%" => $tag, "%lang%" => smarty_lang()); // Execute the 'feed_comment' hook, if present. $PIVOTX['extensions']->executeHook('feed_comment', $replace); // Replace all items in $replace, unless it's an empty array. This way the feed_comment // hook can set $replace to an empty array, in order to skip it entirely. if (!empty($replace)) { $item = str_replace(array_keys($replace), array_values($replace), $feed_template); // Handling email and url separately. if (isEmail($comment['email'])) { $item = str_replace('%author-email%', $comment['email'], $item); } else { $item = str_replace('<email>%author-email%</email>', '', $item); } if (isUrl($comment['url'])) { if (strpos($comment["url"], "ttp://") < 1) { $comment["url"] = "http://" . $comment["url"]; } $item = str_replace('%author-link%', $comment['url'], $item); } else { $item = str_replace('<uri>%author-link%</uri>', '', $item); } $feed_items .= $item; } } return $feed_items; }
function content_56afda72e12f03_17643218($_smarty_tpl) { ?> <div class="row add-comments clearfix" id="add_comment"> <?php if ($_smarty_tpl->tpl_vars['userquery']->value->login_check('', true) || $_smarty_tpl->tpl_vars['Cbucket']->value->configs['anonym_comments'] == 'yes') { ?> <form name="comment_form" method="post" action="" id="comment_form" onsubmit="return false;"> <div class="col-lg-12"> <span id="comment_err_output" class="alert alert-danger comment_err_output pull-left" style="display:none;width:100%"></span> <span id="comment_msg_output" class="alert alert-success comment_msg_output pull-left" style="display:none;"></span> <input type="hidden" name="reply_to" id="reply_to" value="0"> <input type="hidden" name="obj_id" id="obj_id" value="<?php echo $_smarty_tpl->tpl_vars['id']->value; ?> "> <input type="hidden" name="type" value="<?php echo $_smarty_tpl->tpl_vars['type']->value; ?> " /> <?php if (!$_smarty_tpl->tpl_vars['userquery']->value->login_check('', true) && $_smarty_tpl->tpl_vars['Cbucket']->value->configs['anonym_comments'] == 'yes') { ?> <div class="clearfix"></div> <label for="name" class="Label"><?php echo smarty_lang(array('code' => 'name'), $_smarty_tpl); ?> </label> <input type="text" name="name" id="name" class="form-control" placeholder="Your Name"> <div class="clearfix"></div> <br> <div class="clearfix"></div> <label for="email" class="Label"><?php echo smarty_lang(array('code' => 'email_wont_display'), $_smarty_tpl); ?> </label> <input type="text" name="email" id="email" class="form-control" placeholder="Your Email"> <div class="clearfix"></div> <br> <?php } else { ?> <div class="clearfix"></div> <label class="Label"><?php echo smarty_lang(array('code' => "name"), $_smarty_tpl); ?> </label> <span class="vAlignMiddle Cantarell sizeBigger capitalize"> <?php if ($_smarty_tpl->tpl_vars['userquery']->value->udetails['fullname']) { ?> <?php echo $_smarty_tpl->tpl_vars['userquery']->value->udetails['fullname']; ?> <?php } else { ?> <?php echo $_smarty_tpl->tpl_vars['userquery']->value->username; ?> <?php } ?> </span> <div class="clearfix"></div> <?php } ?> <?php if (config('comments_captcha') == 'all' || config('comments_captcha') == 'guests' && !$_smarty_tpl->tpl_vars['userquery']->value->login_check('', true)) { ?> <?php if (isset($_smarty_tpl->tpl_vars['captcha'])) { $_smarty_tpl->tpl_vars['captcha'] = clone $_smarty_tpl->tpl_vars['captcha']; $_smarty_tpl->tpl_vars['captcha']->value = get_captcha(); $_smarty_tpl->tpl_vars['captcha']->nocache = null; $_smarty_tpl->tpl_vars['captcha']->scope = 0; } else { $_smarty_tpl->tpl_vars['captcha'] = new Smarty_variable(get_captcha(), null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['captcha']->value) { ?> <div class="clearfix"></div> <?php if ($_smarty_tpl->tpl_vars['captcha']->value['show_field']) { ?> <label class="Label" for="captcha">Verification Code</label> <div class="ADfieldInputs"><?php echo load_captcha(array('captcha' => $_smarty_tpl->tpl_vars['captcha']->value, 'load' => 'field', 'field_params' => ' id="captcha" class="TextField"'), $_smarty_tpl); ?> </div> <?php } ?> <?php echo load_captcha(array('captcha' => $_smarty_tpl->tpl_vars['captcha']->value, 'load' => 'function'), $_smarty_tpl); ?> <div class="clearfix"></div> <?php } ?> <?php } ?> <?php echo ANCHOR(array('place' => 'before_compose_box'), $_smarty_tpl); ?> <div class="clearfix"></div> <textarea name="comment" id="comment_box" class="form-control" placeholder="Please type something in a comment box"></textarea> </div> <div class="col-lg-12" style="margin:15px 0 15px 0;"> <input type="button" name="add_comment" id="add_comment_button" class="btn btn-primary btn-block" value='Add Comment'> </div> <div class="col-lg-10 col-md-9 col-sm-9 col-xs-9" id="msg_container"></div> </form> <?php } else { ?> <span class="sizeSmall bold error"></span> <div class="col-lg-10 col-md-9 col-sm-9 col-xs-9"> <span class="alert-warning alert msg-display"><?php echo smarty_lang(array('code' => 'please_login_to_comment'), $_smarty_tpl); ?> </span> </div> <?php } ?> </div> <script type="text/javascript"> $(document).ready(function(){ var form_selector = 'comment_form'; var type = '<?php echo $_smarty_tpl->tpl_vars['type']->value; ?> '; var video_id = '<?php echo $_smarty_tpl->tpl_vars['vdo']->value['video_id']; ?> '; $('body').on("click","#add_comment_button",function(){ add_comment_js(form_selector,type,video_id); }); $('#comment_box').keypress(function(e){ if(e.keyCode == 13 && !e.shiftKey) { e.preventDefault(); add_comment_js(form_selector,type,video_id); } }); }); </script><?php }
function content_56afd77ab2a977_56293857($_smarty_tpl) { if (!is_callable('smarty_modifier_truncate')) { include '/var/www/html/includes/smartyv3/plugins/modifier.truncate.php'; } if (!is_callable('smarty_modifier_date_format')) { include '/var/www/html/includes/smartyv3/plugins/modifier.date_format.php'; } ?> <div class="heading"> <h2>ClipBucket V2.7 Dashboard</h2> </div> <div class="row"> <div class="col-md-6"> <div class="tabbable"> <ul class="nav nav-tabs" id="myTab"> <li class="active"> <a data-toggle="tab" href="#statistics"> <h5>Statistics</h5> </a> </li> <li class=""> <a data-toggle="tab" href="#nusers"> <h5>New Users</h5> </a> </li> <li class=""> <a data-toggle="tab" href="#mvideos"> <h5>Most Viewed Videos</h5> </a> </li> <li class=""> <a data-toggle="tab" href="#fobjects"> <h5>Flagged Objects</h5> </a> </li> </ul> <div class="tab-content"> <div id="statistics" class="tab-pane active"> <div class="tabbable tabs-left"> <ul class="nav nav-tabs" id="myTab1"> <li class="active"> <a data-toggle="tab" href="#sweek"> This Week </a> </li> <li class=""> <a data-toggle="tab" href="#smonth"> This Month </a> </li> <li class=""> <a data-toggle="tab" href="#soday"> Today </a> </li> </ul> <div class="tab-content"> <div id="sweek" class="tab-pane active"> <div id="weekly_stats" class="flot_chart1"><img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div> </div> <div id="smonth" class="tab-pane"> <div id="monthly_stats" class="flot_chart1"><img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div> </div> <div id="soday" class="tab-pane"> <div id="daily_stats" class="flot_chart1"> <img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/> </div> </div> </div> </div> </div> <div id="nusers" class="tab-pane"> <div class="tabbable tabs-left"> <ul class="nav nav-tabs" id="myTab1"> <li class="active"> <a data-toggle="tab" href="#uweek"> This Week </a> </li> <li class=""> <a data-toggle="tab" href="#umonth"> This Month </a> </li> <li class=""> <a data-toggle="tab" href="#utoday"> Today </a> </li> </ul> <div class="tab-content"> <div id="uweek" class="tab-pane active"> <div id="weekly_users" class="flot_chart1"><img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div> </div> <div id="umonth" class="tab-pane"> <div id="monthly_users" class="flot_chart1"><img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div> </div> <div id="utoday" class="tab-pane"> <div id="daily_users" class="flot_chart1"> <img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div> </div> </div> <div class="users marginTopLarge"> <?php if ($_smarty_tpl->tpl_vars['users']->value) { ?> <?php $_smarty_tpl->tpl_vars['u'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['u']->_loop = false; $_from = $_smarty_tpl->tpl_vars['users']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['u']->key => $_smarty_tpl->tpl_vars['u']->value) { $_smarty_tpl->tpl_vars['u']->_loop = true; ?> <div class="row"> <div class="col-md-12"> <div class="row marginBottom"> <div class="col-md-2"> <a href="view_user.php?uid=<?php echo $_smarty_tpl->tpl_vars['u']->value['userid']; ?> "> <img src="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->getUserThumb($_smarty_tpl->tpl_vars['u']->value, 'small'); ?> " class="img-thumbnail oneUserImage" /> </a> </div> <div class="col-md-10"> <a href="view_user.php?uid=<?php echo $_smarty_tpl->tpl_vars['u']->value['userid']; ?> " target="_blank"><?php echo $_smarty_tpl->tpl_vars['u']->value['username']; ?> </a>(<?php echo $_smarty_tpl->tpl_vars['u']->value['email']; ?> ) <button id="dropdownMenu1" class="btn btn-primary btn-xs dropdown-toggle pull-right" data-toggle="dropdown"> <i class="glyphicon glyphicon-cog"></i><i class="icon-angle-down icon-on-right"></i> </button> <ul class="dropdown-menu pull-right" aria-labelledby="dropdownMenu1" role="menu"> <?php if ($_smarty_tpl->tpl_vars['u']->value['ban_status'] == 'yes') { ?> <li><a role="menuitem" tabindex="-1" href="?unban=<?php echo $_smarty_tpl->tpl_vars['u']->value['userid']; ?> ">Unban Member</a></li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['u']->value['ban_status'] == 'no') { ?> <li><a role="menuitem" tabindex="-1" href="?ban=<?php echo $_smarty_tpl->tpl_vars['u']->value['userid']; ?> ">Ban Member</a></li> <?php } ?> <li><a role="menuitem" tabindex="-1" href="view_user.php?uid=<?php echo $_smarty_tpl->tpl_vars['u']->value['userid']; ?> ">Edit</a></li> <li><a role="menuitem" tabindex="-1" href="members.php?deleteuser=<?php echo $_smarty_tpl->tpl_vars['u']->value['userid']; ?> ">Delete</a></li> </ul> </div> </div> </div> </div> <?php } ?> <?php } ?> </div> </div> </div> <div id="mvideos" class="tab-pane"> <div class="tabbable tabs-left"> <ul class="nav nav-tabs" id="myTab1"> <li class="active"> <a data-toggle="tab" href="#vweek"> This Week </a> </li> <li class=""> <a data-toggle="tab" href="#vmonth"> This Month </a> </li> <li class=""> <a data-toggle="tab" href="#vtoday"> Today </a> </li> </ul> <div class="tab-content"> <div id="vweek" class="tab-pane active"> <div id="weekly_users" class="flot_chart1"><img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div> </div> <div id="vmonth" class="tab-pane"> <div id="monthly_users" class="flot_chart1"><img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div> </div> <div id="vtoday" class="tab-pane"> <div id="daily_users" class="flot_chart1"> <img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div> </div> </div> </div> <div class="vids marginTopLarge"> <?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="row"> <div class="col-md-3"> <img src="<?php echo getSmartyThumb(array('vdetails' => $_smarty_tpl->tpl_vars['video']->value), $_smarty_tpl); ?> " height="80" class="img-thumbnail" id="thumbs_<?php echo $_smarty_tpl->tpl_vars['video']->value['videoid']; ?> " title="<?php echo $_smarty_tpl->tpl_vars['video']->value['title']; ?> "/> </div> <div class="col-md-9"> <a href="<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> /watch_video.php?v=<?php echo $_smarty_tpl->tpl_vars['video']->value['videokey']; ?> "target="_blank"> <?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['video']->value['title'], 45); ?> </a> <strong class="btn btn-primary btn-xs pull-right"> <?php echo smarty_lang(array('code' => 'views'), $_smarty_tpl); ?> : <?php echo format_number($_smarty_tpl->tpl_vars['video']->value['views']); ?> </strong> </div> </div> <hr> <?php } ?> <?php } ?> </div> </div> <div id="fobjects" class="tab-pane"> <div class="tabbable tabs-left"> <ul class="nav nav-tabs" id="myTab1"> <li class="active"> <a data-toggle="tab" href="#fweek"> This Week </a> </li> <li class=""> <a data-toggle="tab" href="#fmonth"> This Month </a> </li> <li class=""> <a data-toggle="tab" href="#ftoday"> Today </a> </li> </ul> <div class="tab-content"> <div id="fweek" class="tab-pane active"> <div id="weekly_users" class="flot_chart1"><img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div> </div> <div id="fmonth" class="tab-pane"> <div id="monthly_users" class="flot_chart1"><img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div> </div> <div id="ftoday" class="tab-pane"> <div id="daily_users" class="flot_chart1"> <img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div> </div> </div> </div> <div class="flaggedUser marginTopLarge"> <?php if ($_smarty_tpl->tpl_vars['flaggedUsers']->value) { ?> <?php $_smarty_tpl->tpl_vars['u'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['u']->_loop = false; $_from = $_smarty_tpl->tpl_vars['flaggedUsers']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['u']->key => $_smarty_tpl->tpl_vars['u']->value) { $_smarty_tpl->tpl_vars['u']->_loop = true; ?> <div class="row"> <div class="col-md-3"> <a href="view_user.php?uid=<?php echo $_smarty_tpl->tpl_vars['u']->value['userid']; ?> "> <img src="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->getUserThumb($_smarty_tpl->tpl_vars['u']->value, 'small'); ?> " class="oneUserImage" width="85" /> </a> </div> <div class="col-md-6"> (<?php echo $_smarty_tpl->tpl_vars['u']->value['email']; ?> ) <?php echo $_smarty_tpl->tpl_vars['u']->value['username']; ?> </div> <div class="col-md-7"> <label class="label label-danger">Last Active <?php echo niceTime($_smarty_tpl->tpl_vars['u']->value['last_active']); ?> </label> <label class="label label-primary"> <?php echo smarty_lang(array('code' => 'Flags'), $_smarty_tpl); ?> : <?php echo $_smarty_tpl->tpl_vars['u']->value['flag_type']; ?> </label> </div> </div> <?php } ?> <?php } ?> </div> </div> <div class="widget-main"> <hr> <table class="table table-stripped table-bordered"> <tr> <td> <div class="stats_subitem_d">Total Videos : <strong><?php ob_start(); echo get_videos(array('count_only' => 'yes'), $_smarty_tpl); echo number_format(ob_get_clean()); ?> </strong> </div> </td> <td> <div class="stats_subitem_d">Total Groups : <strong><?php echo get_groups(array('count_only' => 'yes'), $_smarty_tpl); ?> </strong> </div> </td> <td> <div class="stats_subitem_d">Total Collection : <strong><?php echo get_collections(array('count_only' => 'yes'), $_smarty_tpl); ?> </strong> </div> </td> <td> <div class="stats_subitem_d">Total Users : <strong><?php echo get_users(array('count_only' => 'yes'), $_smarty_tpl); ?> </strong> </div> </td> <td> <div class="stats_subitem_d">Total Photos: <strong><?php echo get_photos(array('count_only' => 'yes'), $_smarty_tpl); ?> </strong> </div> </td> </table> </div> </div> </div> </div> <div class="col-md-6"> <div class="widget-box"> <div class="widget-header header-color-red"> <h5><i class="glyphicon glyphicon-book"></i>ClipBucket News</h5> <div class="widget-toolbar"> <a href="#" data-action="collapse"> <i class="icon-chevron-down"></i> </a> <a href="#" data-action="close"> <i class="icon-remove"></i> </a> </div> </div> <div class="widget-body"> <div id="clipbucket_news" class="widget-main" style="height:419px;overflow:auto"> </div> </div> </div> </div> <hr> <!-- <div class="tabbable tabs-left" > --> <div class=" col-md-8 todotab" > <ul class="nav nav-tabs" id="myTab" > <li class="active"> <a data-toggle="tab" href="#todolist"> <h5><i class="glyphicon glyphicon-list-alt"></i> ToDo List</h5> </a> </li> <li class=""> <a data-toggle="tab" href="#pnotes"> <h5><i class="glyphicon glyphicon-pencil"></i> Personal Notes</h5> </a> </li> <li class=""> <a data-toggle="tab" href="#rcomments"> <h5><i class="glyphicon glyphicon-comment"></i> Recent Comments</h5> </a> </li> </ul> <div class="tab-content"> <div id="todolist" class="tab-pane active"> <div class="widgetBox"> <div class="addTodo paddingRightSmall paddingLeftLarge marginBottomLarge"> <div class="row"> <div class="from-group col-md-10"> <input type="text" name="addTodo" class="form-control"> </div> <div class="from-group relative"> <div class="addTodoButton"> <button id="addTodo" class="btn btn-primary btn-sm">Add</button> </div> </div> </div> </div> <?php if (isset($_smarty_tpl->tpl_vars['todos'])) { $_smarty_tpl->tpl_vars['todos'] = clone $_smarty_tpl->tpl_vars['todos']; $_smarty_tpl->tpl_vars['todos']->value = $_smarty_tpl->tpl_vars['myquery']->value->get_todos(); $_smarty_tpl->tpl_vars['todos']->nocache = null; $_smarty_tpl->tpl_vars['todos']->scope = 0; } else { $_smarty_tpl->tpl_vars['todos'] = new Smarty_variable($_smarty_tpl->tpl_vars['myquery']->value->get_todos(), null, 0); } ?> <ul class="row todosList" id="note-<?php echo $_smarty_tpl->tpl_vars['the_note']->value['note_id']; ?> " > <?php $_smarty_tpl->tpl_vars['note'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['note']->_loop = false; $_from = $_smarty_tpl->tpl_vars['todos']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['note']->key => $_smarty_tpl->tpl_vars['note']->value) { $_smarty_tpl->tpl_vars['note']->_loop = true; ?> <li class="col-md-12"> <div class="col-md-12"> <p class="oneTodo paddingLeftSmall col-md-10" id="<?php echo $_smarty_tpl->tpl_vars['note']->value['todo_id']; ?> "> <?php echo $_smarty_tpl->tpl_vars['note']->value['todo']; ?> </p> <a href="#" class="btn btn-danger btn-xs delete">Delete</a> </div> </li> <?php } ?> </ul> </div> </div> <div id="pnotes" class="tab-pane"> <div class="widgetBox"> <div class="addNote form-group paddingRightSmall"> <textarea class="form-control" name="ntoe" id="note"></textarea> <div class="alignRight marginTopSmall"> <a href="#" id="add_new_note" class="btn btn-primary btn-xs">Add a note</a> </div> </div> <?php if (isset($_smarty_tpl->tpl_vars['notes'])) { $_smarty_tpl->tpl_vars['notes'] = clone $_smarty_tpl->tpl_vars['notes']; $_smarty_tpl->tpl_vars['notes']->value = $_smarty_tpl->tpl_vars['myquery']->value->get_notes(); $_smarty_tpl->tpl_vars['notes']->nocache = null; $_smarty_tpl->tpl_vars['notes']->scope = 0; } else { $_smarty_tpl->tpl_vars['notes'] = new Smarty_variable($_smarty_tpl->tpl_vars['myquery']->value->get_notes(), null, 0); } ?> <ul class="notesList row paddingRightSmall" id="note-<?php echo $_smarty_tpl->tpl_vars['the_note']->value['note_id']; ?> " > <?php $_smarty_tpl->tpl_vars['note'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['note']->_loop = false; $_from = $_smarty_tpl->tpl_vars['notes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['note']->key => $_smarty_tpl->tpl_vars['note']->value) { $_smarty_tpl->tpl_vars['note']->_loop = true; ?> <li class="col-md-4"> <div class=""> <p class="oneNote" id="<?php echo $_smarty_tpl->tpl_vars['note']->value['note_id']; ?> "> <?php echo $_smarty_tpl->tpl_vars['note']->value['note']; ?> <a href="#" class="delete">×</a> </p> </div> </li> <?php } ?> </ul> </div> </div> <div id="rcomments" class="tab-pane"> <div class="widget-box"> <div class="widget-header header-color-blue"> <h5>Recent Comments</h5> <div class="widget-toolbar"> <a href="#" data-action="collapse"> <i class="icon-chevron-down"></i> </a> <a href="#" data-action="close"> <i class="icon-remove"></i> </a> </div> </div> <div class="widget-body"> <div class="widget-main"> <div class="widget-box transparent"> <div class="widget-header widget-header-small"> </div> <div class="widget-body"> <div class="widget-body"> <div class="widget-main no-padding"> <div class="slimScrollDiv"> <?php if ($_smarty_tpl->tpl_vars['comments']->value) { ?> <?php $_smarty_tpl->tpl_vars['comment'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['comment']->_loop = false; $_from = $_smarty_tpl->tpl_vars['comments']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['comment']->key => $_smarty_tpl->tpl_vars['comment']->value) { $_smarty_tpl->tpl_vars['comment']->_loop = true; ?> <div class="itemdiv dialogdiv"> <?php $_smarty_tpl->tpl_vars['u'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['u']->_loop = false; $_from = $_smarty_tpl->tpl_vars['users']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['u']->key => $_smarty_tpl->tpl_vars['u']->value) { $_smarty_tpl->tpl_vars['u']->_loop = true; ?> <div class="user"> <img alt="Alexa's Avatar" src="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->getUserThumb($_smarty_tpl->tpl_vars['u']->value, 'small'); ?> "> </div> <?php } ?> <div class="body"> <div class="time"> <i class="icon-time"></i> <span class="green"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['comment']->value['date_added']); ?> </span> </div> <div class="name"> <a href="#"><?php echo $_smarty_tpl->tpl_vars['comment']->value['anonym_name']; ?> </a> </div> <div class="text"><?php echo $_smarty_tpl->tpl_vars['comment']->value['comment']; ?> </div> <div class="tools"> <a href="#" class="btn btn-minier btn-info"> <i class="icon-only icon-share-alt"></i> </a> </div> </div> </div> <?php } ?> <?php } ?> </div> </div>/widget-main </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="well" style="margin-top: 14px;background:;border:1px solid rgba(128, 213, 255, 1);" > <h3>WHO WE ARE</h3> <p style="text-align:left;"><strong><a href="http://clip-bucket.com/" target="self">ClipBucket</a></strong> would not been possible without its team hardwork and determination for the betterment of the products quality and its services. We are proud that over _____ users are using worlds most popular open source video,audio and photo sharing script named <strong>ClipBucket</strong>. We are team who is determined to deliver the best features to the open source community. </p> <p style="text-align:left;margin-top:20px; "><strong>Clipbucket</strong> was made in the year 2006 with the idea to bring a better platform for organizations and companies interested in launching their own video,audio or photo sharing website. In every version our mission and goal is to simplify the technology by adopting new technological methods and techniques to cut down several frontend and backend issues faced. The idea is to give the user a chance to explore more with the flexibility of our product. We never compromise on our product interactivity. We always try to create a simple yet interactive and elegant design so that the user can have the best experience of the functions. With the improved social networking options like channels and groups. With ClipBucket’s unmatched quantifiability, users will stretch their applications from family videos to photo-albums. We started off as a paid product and later realized there is more power in going open-source and here we stand today <strong>#1</strong> video sharing and media management script in the industry.</p> <h3>OUR TEAM</h3> <p style="text-align:left;padding-bottom:20px;">However the team behind ClipBucket always kept their heads and nerves, though they faced many difficulties and problems in meeting the requirements. But team’s coordination and their creative techniques of solving issues and overcoming them with the best possible solution helped us in presenting Pakistan on international platform in the field of technology by bringing “Clip Bucket” A complete open source multimedia management script. </p> <div class="to_display"> <p>Founders <strong><a href="http://www.linkedin.com/profile/view?id=273050157" target="blank">Jahanzeb Hassan</a></strong> and <strong><a href="http://www.linkedin.com/profile/view?id=37419812" target="blank">Arslan Hassan</a></strong></p> <strong><a href="http://www.linkedin.com/profile/view?id=324544384" target="self">Fawaz Tahir</a></strong> - Web Application Team Lead<br> <strong><a href="http://www.linkedin.com/profile/view?id=78646794" target="self">Ruman Malik</a></strong> - Project Manager<br> <strong><a href="http://www.linkedin.com/profile/view?id=325944697" target="self">Muneeb</a></strong> - Mobile Application Team Lead<br> <strong><a href="http://www.linkedin.com/profile/view?id=324542682" target="self">Zomail</a></strong> - Sales and Support<br> <strong><a href="http://www.linkedin.com/profile/view?id=324542554" target="self">Shahzaib</a></strong> - Network Engineer<br> <strong><a href="http://www.linkedin.com/profile/view?id=324542025" target="self">Zunair</a></strong> - SEO and Publishing Manager<br> <br> <h5><strong>Kick-ass development team of <strong>ClipBucket</strong></strong></h5> <strong><a href="https://github.com/fahad-cb" target="self">Fahad Abbas</a></strong> - Project Head (Developer)<br> <strong><a href="https://github.com/imranhassan009" target="self">Imran Hassan</a></strong> - Web Developer<br> <strong><a href="https://github.com/shoaib-dev" target="self">Muhammad Shoaib</a></strong> - Web Services provider (Developer)<br> <strong><a href="https://github.com/awaistariq123" target="self">Awais Tariq</a></strong> - Video Converison Handler<br> <strong><a href="https://pk.linkedin.com/in/saqirzzq" target="self">Saaqib Razzaq</a></strong> - Web Developer<br> <strong><a href="https://github.com/jamilrehman" target="self">Jamil Rehman</a></strong> - Front end Developer (Head)<br> <strong><a href="https://github.com/rameez-anees" target="self">Rameez Anees</a></strong> - Front end Developer<br> <strong><a href="https://github.com/usman-des" target="self">Usman Afzal</a></strong> - Front end Developer<br> <strong><a href="https://github.com/epicPenguin" target="self">Muhammad Rizwan</a></strong> - Quality Assurance department<br><br><br> <h5><strong>We are from Pakistan with high heads and soft hearts</strong></h5> <p style="padding-bottom:20px;">Pakistan is always been in the news for the bad reasons and has been criticized by the rest of the world,even then the people of Pakistan are patriotic and stand united for the goodwill of their country.no matter how worst the situation gets the youth is eager enough to bring out the best in all the fields like media,communication, IT and science. IT industry is fast growing with a large potential and is regarded as a successful sector even in country’s worst financial crisis. as the IT industry in Pakistan is growing like wise the demand for the softwares and programmes has taken up a rapid growth. ClipBucket is one of the fastest and the most used media sharing script with all the latest features and enhancements in the social media. We as Pakistani feel proud on creating this product which will lead our country to the highest levels in the international market.</p> </div> <p><button id="addTodo" class="btn btn-primary btn-sm clip_read clip_hide" style="float:right;margin-right:10px;margin-top:-30px;">Read More</button></p> </div> <style type="text/css"> .to_display{ display: none; } .flot_chart1{ height: 200px; width: 400px; } .vids{ height: 250px; overflow-y: scroll; overflow-x: hidden; padding: 5px; } </style> <script type="text/javascript"> $( document ).ready(function() { $(".clip_read").click(function() { $(this).toggleClass('clip_hide'); if(!$(this).hasClass('clip_hide')) { $('.to_display').show(); $(".clip_read").text("Hide"); } else { $('.to_display').hide(); $(".clip_read").text("Read More"); } }); var baseurl="<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> "; $.ajax({ // url: baseurl+'/ajax.php', url:baseurl+'/ajax.php', type: "POST", dataType : 'text', data: { mode: "get_news"}, success : function(news){ $('#clipbucket_news').html(news) }, timeout : 5000, error : function(err) { $('#clipbucket_news').html(' <div align="center"><em><strong>Connect with Internet to get News</strong></em></div>')}, }); }); $(function() { var options = { series: { bars: { show: true, steps: true, barWidth: 0.5, align: "center", }, points: { show: true }, lines: { show: true } }, xaxis: { mode: "categories", tickLength: 0 }, yaxis: { alignTicksWithAxis: false }, grid: { hoverable: true, clickable: true, labelMargin: 30, borderWidth: 0 } }; var ChartsWorker = function(options){ this.options = options; this.getUsersStatistics = function(callback){ var self = this; var ajaxCall = $.ajax({ url: "charts/reports/dashboard/get_users_data.php", type: "POST", data:"videos=videos", dataType: "json", success: function(data){ callback.call(self, data); }, error: function() { //alert('error'); }, }); }; this.getVideosStatistics = function(callback){ var self = this; var ajaxCall = $.ajax({ url: "charts/reports/dashboard/get_videos_data.php", type: "POST", data:"videos=videos", dataType: "json", success: function(data){ callback.call(self, data); }, error: function() { //alert('error'); }, }); }; this.getFlaggedStatistics = function(callback){ var self = this; var ajaxCall = $.ajax({ url: "charts/reports/dashboard/get_flagged_objects_data.php", type: "POST", data:"videos=videos", dataType: "json", success: function(data){ callback.call(self, data); }, error: function() { //alert('error'); }, }); }; this.getOverallStatistics = function(callback){ var self = this; var ajaxCall = $.ajax({ url: "charts/reports/dashboard/get_total_status_data.php", type: "POST", data:"videos=videos", dataType: "json", success: function(data){ callback.call(self, data); }, error: function() { //alert('error'); }, }); }; }; var chartsWorker = new ChartsWorker(options); chartsWorker.getUsersStatistics(function(data){ var today = data.today; var week = data.this_week; var month = data.this_month; $.plot("#nusers #weekly_users", [week] , this.options); $.plot("#nusers #monthly_users", [month] , this.options); $.plot("#nusers #daily_users", [today], this.options); }); chartsWorker.getVideosStatistics(function(data){ var today = data.today; var week = data.this_week; var month = data.this_month; $.plot("#mvideos #weekly_users", [week] , this.options); $.plot("#mvideos #monthly_users", [month] , this.options); $.plot("#mvideos #daily_users", [today], this.options); }); chartsWorker.getFlaggedStatistics(function(data){ var today = data.today; var week = data.this_week; var month = data.this_month; $.plot("#fobjects #weekly_users", [week] , this.options); $.plot("#fobjects #monthly_users", [month] , this.options); $.plot("#fobjects #daily_users", [today], this.options); }); chartsWorker.getOverallStatistics(function(data){ var today = data.today; var week = data.this_week; var month = data.this_month; $.plot("#statistics #weekly_stats", [week] , this.options); $.plot("#statistics #monthly_stats", [month] , this.options); $.plot("#statistics #daily_stats", [today], this.options); }); // $.plot("#placeholder", data, options); var iteration = 0; function showTooltip(x, y, contents) { $('<div id="tooltip">' + contents + '</div>').css( { position: 'absolute', display: 'none', top: y + 5, left: x + 5, border: '1px solid #fdd', padding: '2px', 'background-color': '#fee', opacity: 0.80 }).appendTo("body").fadeIn(200); } var previousPoint = null; function tooltip(chart_id,tooltip_id){ $(chart_id).bind("plothover", function (event, pos, item) { $("#x").text(pos.x.toFixed(2)); $("#y").text(pos.y.toFixed(2)); if ($(tooltip_id).is(':checked')) { if (item) { if (previousPoint != item.dataIndex) { previousPoint = item.dataIndex; $("#tooltip").remove(); var x = item.datapoint[0].toFixed(2), y = item.datapoint[1].toFixed(2); showTooltip(item.pageX, item.pageY, item.series.label + " = " + y); } } else { $("#tooltip").remove(); previousPoint = null; } } }); } var page = '<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> /admin_area/index.php'; $(".oneNote .delete").on({ click: function(e){ e.preventDefault(); var noteId = $(this).parent().attr("id"); delete_note(noteId); $(this).parents("li").remove(); } }); $("#add_new_note").on({ click: function(e){ e.preventDefault(); var self = this; var note = $(this).parents(".widgetBox").find("textarea").val(); if(!note){ alert("Please enter something"); } else{ $(this).parents(".widgetBox").find("textarea").val(""); $.post(page, { mode : 'add_note', note : note, },function(data) { console.log(data); var li = document.createElement("li"); li.className = "col-md-4"; var a = document.createElement("a"); a.className = "delete"; a.href = "#"; a.innerHTML = "x"; var p = document.createElement("p"); p.id = data.id; p.innerHTML = note; p.className = "oneNote"; $(p).append(a); $(li).append(p); $(a).on({ click: function(e){ e.preventDefault(); var noteId = $(this).parent().attr("id"); delete_note(noteId); $(this).parents("li").remove(); } }); $(self).parents(".widgetBox").find("ul").prepend(li); },'json'); } } }); $("#addTodo").on({ click: function(e){ e.preventDefault(); var self = this; var newVal = $(this).parents(".addTodo").find("input").val(); if(newVal.length){ $(this).parents(".addTodo").find("input").val(""); var ajaxCall = $.ajax({ url: page, type: "post", data: { val: newVal, mode: "add_todo", }, }); ajaxCall.success(function(data){ data = $.parseJSON(data); var li = document.createElement("li"); li.className = "col-md-12"; var p = document.createElement("p"); p.className = "oneTodo paddingLeftSmall col-md-10"; p.id = data.id; p.innerHTML = data.todo; var a = document.createElement("a"); a.href = "#"; a.className = "col-md-2 btn btn-danger btn-xs delete"; a.innerHTML = "Delete"; $(a).on("click", function(e){ e.preventDefault(); var self = this; var id = $(this).prev().attr("id"); var ajaxCall = $.ajax({ url: page, type: "post", data: { id: id, mode: "delete_todo", }, }); ajaxCall.success(function(data){ $(self).parents("li").remove(); }); }); var div = document.createElement("div"); div.className = "col-md-12"; $(li).append(div).find("div").append(p).append(a); $(self).parents(".widgetBox").find("ul").prepend(li); }); }else{ alert("Please enter a valid value"); } } }); $("#todolist .delete").on("click", function(e){ e.preventDefault(); var self = this; var id = $(this).prev().attr("id"); var ajaxCall = $.ajax({ url: page, type: "post", data: { id: id, mode: "delete_todo", }, }); ajaxCall.success(function(data){ $(self).parents("li").remove(); }); }); }); </script> <?php }
function content_55e450c6a7f4b1_65074074($_smarty_tpl) { if (isset($_smarty_tpl->tpl_vars['quicklist'])) { $_smarty_tpl->tpl_vars['quicklist'] = clone $_smarty_tpl->tpl_vars['quicklist']; $_smarty_tpl->tpl_vars['quicklist']->value = $_smarty_tpl->tpl_vars['cbvid']->value->get_quicklist(); $_smarty_tpl->tpl_vars['quicklist']->nocache = null; $_smarty_tpl->tpl_vars['quicklist']->scope = 0; } else { $_smarty_tpl->tpl_vars['quicklist'] = new Smarty_variable($_smarty_tpl->tpl_vars['cbvid']->value->get_quicklist(), null, 0); } if (isset($_smarty_tpl->tpl_vars['quicklist_json'])) { $_smarty_tpl->tpl_vars['quicklist_json'] = clone $_smarty_tpl->tpl_vars['quicklist_json']; $_smarty_tpl->tpl_vars['quicklist_json']->value = json_encode($_smarty_tpl->tpl_vars['quicklist']->value); $_smarty_tpl->tpl_vars['quicklist_json']->nocache = null; $_smarty_tpl->tpl_vars['quicklist_json']->scope = 0; } else { $_smarty_tpl->tpl_vars['quicklist_json'] = new Smarty_variable(json_encode($_smarty_tpl->tpl_vars['quicklist']->value), null, 0); } ?> <div class="quicklist_box"> <div class="quicklist_box_head"> <a class="ql_show-hide" href="javascript:void(0)" onClick="quick_show_hide_toggle('#quicklist_cont')"><?php echo smarty_lang(array('code' => 'Hide'), $_smarty_tpl); ?> </a> <a class="ql_rem" href="javascript:void(0)" onClick='clear_quicklist(<?php echo $_smarty_tpl->tpl_vars['quicklist_json']->value; ?> )' ><?php echo smarty_lang(array('code' => 'remove'), $_smarty_tpl); ?> </a> <h1><?php echo smarty_lang(array('code' => 'quicklists'), $_smarty_tpl); ?> (<?php echo $_smarty_tpl->tpl_vars['cbvid']->value->total_quicklist(); ?> )</h1> </div> <div id="quicklist_cont" class="quicklist_cont"> <?php if ($_smarty_tpl->tpl_vars['quicklist']->value) { ?> <div id="my_quicklist" class="my_quicklist"> <!-- Getting Playlist Items--> <?php if (isset($_smarty_tpl->tpl_vars['bg'])) { $_smarty_tpl->tpl_vars['bg'] = clone $_smarty_tpl->tpl_vars['bg']; $_smarty_tpl->tpl_vars['bg']->value = 'fff'; $_smarty_tpl->tpl_vars['bg']->nocache = null; $_smarty_tpl->tpl_vars['bg']->scope = 0; } else { $_smarty_tpl->tpl_vars['bg'] = new Smarty_variable('fff', null, 0); } ?> <?php $_smarty_tpl->tpl_vars['vid'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['vid']->_loop = false; $_from = $_smarty_tpl->tpl_vars['quicklist']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['vid']->key => $_smarty_tpl->tpl_vars['vid']->value) { $_smarty_tpl->tpl_vars['vid']->_loop = true; ?> <?php if (isset($_smarty_tpl->tpl_vars['item'])) { $_smarty_tpl->tpl_vars['item'] = clone $_smarty_tpl->tpl_vars['item']; $_smarty_tpl->tpl_vars['item']->value = $_smarty_tpl->tpl_vars['cbvid']->value->get_video_details($_smarty_tpl->tpl_vars['vid']->value); $_smarty_tpl->tpl_vars['item']->nocache = null; $_smarty_tpl->tpl_vars['item']->scope = 0; } else { $_smarty_tpl->tpl_vars['item'] = new Smarty_variable($_smarty_tpl->tpl_vars['cbvid']->value->get_video_details($_smarty_tpl->tpl_vars['vid']->value), null, 0); } ?> <?php echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/quicklist/video_block.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('video' => $_smarty_tpl->tpl_vars['item']->value, 'bg' => $_smarty_tpl->tpl_vars['bg']->value, 'show_delete' => 'yes', 'unique_id' => "quicklist_"), 0); ?> <?php if ($_smarty_tpl->tpl_vars['bg']->value == 'fff') { ?> <?php if (isset($_smarty_tpl->tpl_vars['bg'])) { $_smarty_tpl->tpl_vars['bg'] = clone $_smarty_tpl->tpl_vars['bg']; $_smarty_tpl->tpl_vars['bg']->value = 'EFF5F8'; $_smarty_tpl->tpl_vars['bg']->nocache = null; $_smarty_tpl->tpl_vars['bg']->scope = 0; } else { $_smarty_tpl->tpl_vars['bg'] = new Smarty_variable('EFF5F8', null, 0); } ?> <?php } else { ?> <?php if (isset($_smarty_tpl->tpl_vars['bg'])) { $_smarty_tpl->tpl_vars['bg'] = clone $_smarty_tpl->tpl_vars['bg']; $_smarty_tpl->tpl_vars['bg']->value = 'fff'; $_smarty_tpl->tpl_vars['bg']->nocache = null; $_smarty_tpl->tpl_vars['bg']->scope = 0; } else { $_smarty_tpl->tpl_vars['bg'] = new Smarty_variable('fff', null, 0); } ?> <?php } ?> <?php } ?> <div class="clearfix"></div> </div> <?php } ?> </div> </div> <script> </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_56afd7ac2d1e50_34319142($_smarty_tpl) { if (!is_callable('smarty_modifier_truncate')) { include '/var/www/html/includes/smartyv3/plugins/modifier.truncate.php'; } ?> <div class="heading clearfix"> <h2 class="pull-left">Video Manager</h2> <?php echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['layout_dir']->value . "/blocks/advanced_search.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </div> <!-- DIsplaying Videos --> <form name="video_manage marginBottomLarge" method="post"> <div class="btn-group"> <input class="btn btn-primary btn-xs" type="submit" name="activate_selected" value="Activate" class="button"/> <?php if ($_GET['active'] != 'no') { ?> <input class="btn btn-primary btn-xs" type="submit" name="deactivate_selected" value="Deactivate" class="button"/> <?php } ?> <input class="btn btn-primary btn-xs" type="submit" name="make_featured_selected" value="Make Featured" class="button"/> <input class="btn btn-primary btn-xs" type="submit" name="make_unfeatured_selected" value="Make Unfeatured" class="button"/> <input class="btn btn-primary btn-xs" type="submit" name="delete_selected" value="Delete" class="button" onclick="return _cb.confirm_it('Are you sure you want to delete selected video(s)')"/> </div> <table class="table table-bordered table-striped manageUsersTable marginTop"> <tr> <td> <input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td> <td>VID</td> <td>Videos Details</td> <td> </td> </tr> <?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; ?> <tr> <td> <input name="check_video[]" type="checkbox" id="check_video" value="<?php echo $_smarty_tpl->tpl_vars['video']->value['videoid']; ?> "/> </td> <td><?php echo $_smarty_tpl->tpl_vars['video']->value['videoid']; ?> </td> <td> <div class="row"> <div class="col-md-10"> <div class="row"> <div class="col-md-3"> <img src="<?php echo getSmartyThumb(array('vdetails' => $_smarty_tpl->tpl_vars['video']->value), $_smarty_tpl); ?> " width="130" height="80" id="thumbs_<?php echo $_smarty_tpl->tpl_vars['video']->value['videoid']; ?> " title=""/> </div> <div class="col-md-9"> <a href="edit_video.php?video=<?php echo $_smarty_tpl->tpl_vars['video']->value['videoid']; ?> "> <?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['video']->value['title'], 80); ?> </a>(<?php if ($_smarty_tpl->tpl_vars['video']->value['duration'] > 1) { echo SetTime($_smarty_tpl->tpl_vars['video']->value['duration']); } else { ?> 00:00<?php } ?> )<br> <span class="labels1"> <strong><?php echo niceTime($_smarty_tpl->tpl_vars['video']->value['date_added']); ?> </strong> | <?php echo smarty_lang(array('code' => 'views'), $_smarty_tpl); ?> : <strong><?php echo number_format($_smarty_tpl->tpl_vars['video']->value['views']); ?> </strong></span> <div class="labels mtl"> <span class="label <?php if ($_smarty_tpl->tpl_vars['video']->value['active'] == 'yes') { ?> label-success<?php } else { ?> label-danger<?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['video']->value['active'] == 'yes') { ?> Active<?php } else { ?> Inactive<?php } ?> </span> <span class="label <?php if ($_smarty_tpl->tpl_vars['video']->value['status'] == 'Successful') { ?> label-success<?php } else { ?> label-warning<?php } ?> "> <?php echo $_smarty_tpl->tpl_vars['video']->value['status']; ?> </span> <?php if ($_smarty_tpl->tpl_vars['video']->value['featured'] == 'yes') { ?> <span class="label label-info"> Featured</span> <?php } ?> <?php $_smarty_tpl->tpl_vars['links'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['links']->_loop = false; $_from = $_smarty_tpl->tpl_vars['cbvid']->value->video_manager_link_new; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['links']->key => $_smarty_tpl->tpl_vars['links']->value) { $_smarty_tpl->tpl_vars['links']->_loop = true; ?> <?php echo $_smarty_tpl->tpl_vars['cbvid']->value->video_manager_link_new($_smarty_tpl->tpl_vars['links']->value, $_smarty_tpl->tpl_vars['video']->value); ?> <?php } ?> </div> </div> </div> </div> <div class="col-md-2"> <a href="view_user.php?uid=<?php echo $_smarty_tpl->tpl_vars['video']->value['userid']; ?> "><?php echo $_smarty_tpl->tpl_vars['video']->value['username']; ?> </a> </div> </div> </td> <td> <div class="dropdown"> <button id="dropdownMenu1" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown"> Actions <i class="caret"></i></button> <ul class="dropdown-menu pull-right" aria-labelledby="dropdownMenu1" role="menu"> <li><a role="menuitem" tabindex="-1" href="edit_video.php?video=<?php echo $_smarty_tpl->tpl_vars['video']->value['videoid']; ?> " class="">Edit</a></li> <li><a role="menuitem" tabindex="-1" href="<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> /watch_video.php?v=<?php echo $_smarty_tpl->tpl_vars['video']->value['videokey']; ?> "target="_blank">Watch</a> </li> <?php if ($_smarty_tpl->tpl_vars['video']->value['featured'] == 'yes') { ?> <li><a role="menuitem" tabindex="-1" href="?make_unfeature=<?php echo $_smarty_tpl->tpl_vars['video']->value['videoid']; ?> ">Make Unfeatured</a></li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['video']->value['featured'] == 'no') { ?> <li><a role="menuitem" tabindex="-1" href="?make_feature=<?php echo $_smarty_tpl->tpl_vars['video']->value['videoid']; ?> ">Make Featured</a></li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['video']->value['active'] == 'yes') { ?> <li><a role="menuitem" tabindex="-1" href="?deactivate=<?php echo $_smarty_tpl->tpl_vars['video']->value['videoid']; ?> ">Deactivate</a> </li> <?php } else { ?> <li><a role="menuitem" tabindex="-1" href="?activate=<?php echo $_smarty_tpl->tpl_vars['video']->value['videoid']; ?> ">Activate</a> </li> <?php } ?> <li><a role="menuitem" tabindex="-1" href="view_conversion_log.php?file_name=<?php echo $_smarty_tpl->tpl_vars['video']->value['file_name']; ?> ">File conversion details</a></li> <li class="divider"></li> <li><a role="menuitem" tabindex="-1" href="?delete_video=<?php echo $_smarty_tpl->tpl_vars['video']->value['videoid']; ?> ">Delete</a> </li> <?php $_smarty_tpl->tpl_vars['links'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['links']->_loop = false; $_from = $_smarty_tpl->tpl_vars['cbvid']->value->video_manager_link; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['links']->key => $_smarty_tpl->tpl_vars['links']->value) { $_smarty_tpl->tpl_vars['links']->_loop = true; ?> <?php echo $_smarty_tpl->tpl_vars['cbvid']->value->video_manager_link($_smarty_tpl->tpl_vars['links']->value, $_smarty_tpl->tpl_vars['video']->value); ?> <?php } ?> </ul> </div> </td> </tr> <?php } ?> </table> <?php } else { ?> <div align="center"><strong><em>No Video Found</em></strong></div> <?php } ?> <div class="btn-group marginBotoomLarge marginTopLarge paddingBotoomLarge paddingTopLarge"> <input class="btn btn-primary btn-xs" type="submit" name="activate_selected" value="Activate" class="button"/> <input class="btn btn-primary btn-xs" type="submit" name="deactivate_selected" value="Deactivate" class="button"/> <input class="btn btn-primary btn-xs" type="submit" name="make_featured_selected" value="Make Featured" class="button"/> <input class="btn btn-primary btn-xs" type="submit" name="make_unfeatured_selected" value="Make Unfeatured" class="button"/> <input class="btn btn-primary btn-xs" type="submit" name="delete_selected" value="Delete" class="button" onclick="return _cb.confirm_it('Are you sure you want to delete selected video(s)')"/> </div> </form> <!-- DIsplaying Videos Ends--> <?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 class="marginBottomLarge"></div> <?php }
function content_56afd78fc963c4_33198796($_smarty_tpl) { ?> <div class="container uploadVideos"> <div id="error_msgs"></div> <div class="cb-box pad-bottom-sm progress-container allProgress hidden"> <div class="row"> <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> <div id="uploadMessage" class=""> <?php if ($_smarty_tpl->tpl_vars['msg']->value) { ?> <div class="alert alert-block alert-info"> <?php echo $_smarty_tpl->tpl_vars['msg']->value; ?> </div> <?php } ?> </div> <div class="cb-box" id="mainUploadContainer"> <div class="pad-bottom video-info-container tabs-bar-style"> <ul class="nav nav-tabs uploaderTabs"> <?php if (isset($_smarty_tpl->tpl_vars['opt_list'])) { $_smarty_tpl->tpl_vars['opt_list'] = clone $_smarty_tpl->tpl_vars['opt_list']; $_smarty_tpl->tpl_vars['opt_list']->value = $_smarty_tpl->tpl_vars['Upload']->value->load_upload_options(); $_smarty_tpl->tpl_vars['opt_list']->nocache = null; $_smarty_tpl->tpl_vars['opt_list']->scope = 0; } else { $_smarty_tpl->tpl_vars['opt_list'] = new Smarty_variable($_smarty_tpl->tpl_vars['Upload']->value->load_upload_options(), null, 0); } ?> <?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['opt'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['opt']->_loop = false; $_smarty_tpl->tpl_vars['divid'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['opt_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['opt']->key => $_smarty_tpl->tpl_vars['opt']->value) { $_smarty_tpl->tpl_vars['opt']->_loop = true; $_smarty_tpl->tpl_vars['divid']->value = $_smarty_tpl->tpl_vars['opt']->key; ?> <?php if ($_smarty_tpl->tpl_vars['counter']->value == 1) { if (isset($_smarty_tpl->tpl_vars['class'])) { $_smarty_tpl->tpl_vars['class'] = clone $_smarty_tpl->tpl_vars['class']; $_smarty_tpl->tpl_vars['class']->value = "active"; $_smarty_tpl->tpl_vars['class']->nocache = null; $_smarty_tpl->tpl_vars['class']->scope = 0; } else { $_smarty_tpl->tpl_vars['class'] = new Smarty_variable("active", null, 0); } } else { if (isset($_smarty_tpl->tpl_vars['class'])) { $_smarty_tpl->tpl_vars['class'] = clone $_smarty_tpl->tpl_vars['class']; $_smarty_tpl->tpl_vars['class']->value = ''; $_smarty_tpl->tpl_vars['class']->nocache = null; $_smarty_tpl->tpl_vars['class']->scope = 0; } else { $_smarty_tpl->tpl_vars['class'] = new Smarty_variable('', null, 0); } } ?> <?php if (isset($_smarty_tpl->tpl_vars['uploadOptId'])) { $_smarty_tpl->tpl_vars['uploadOptId'] = clone $_smarty_tpl->tpl_vars['uploadOptId']; $_smarty_tpl->tpl_vars['uploadOptId']->value = $_smarty_tpl->tpl_vars['opt']->value['load_func']; $_smarty_tpl->tpl_vars['uploadOptId']->nocache = null; $_smarty_tpl->tpl_vars['uploadOptId']->scope = 0; } else { $_smarty_tpl->tpl_vars['uploadOptId'] = new Smarty_variable($_smarty_tpl->tpl_vars['opt']->value['load_func'], null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['Cbucket']->value->configs[$_smarty_tpl->tpl_vars['uploadOptId']->value] == 'yes') { ?> <?php if (isset($_smarty_tpl->tpl_vars['no_upload'])) { $_smarty_tpl->tpl_vars['no_upload'] = clone $_smarty_tpl->tpl_vars['no_upload']; $_smarty_tpl->tpl_vars['no_upload']->value = 'no'; $_smarty_tpl->tpl_vars['no_upload']->nocache = null; $_smarty_tpl->tpl_vars['no_upload']->scope = 0; } else { $_smarty_tpl->tpl_vars['no_upload'] = new Smarty_variable('no', null, 0); } ?> <li class="<?php echo $_smarty_tpl->tpl_vars['class']->value; ?> "><a href="#<?php echo $_smarty_tpl->tpl_vars['divid']->value; ?> " data-toggle="tab"><?php echo $_smarty_tpl->tpl_vars['opt']->value['title']; ?> </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> <div class="tab-content uploadFormDiv"> <div class="instructions alert alert-block alert-info"> <?php echo smarty_lang(array('code' => 'upload_right_guide_vid'), $_smarty_tpl); ?> </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 = 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['opt'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['opt']->_loop = false; $_smarty_tpl->tpl_vars['divid'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['opt_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['opt']->key => $_smarty_tpl->tpl_vars['opt']->value) { $_smarty_tpl->tpl_vars['opt']->_loop = true; $_smarty_tpl->tpl_vars['divid']->value = $_smarty_tpl->tpl_vars['opt']->key; ?> <?php if (isset($_smarty_tpl->tpl_vars['uploadOptId'])) { $_smarty_tpl->tpl_vars['uploadOptId'] = clone $_smarty_tpl->tpl_vars['uploadOptId']; $_smarty_tpl->tpl_vars['uploadOptId']->value = $_smarty_tpl->tpl_vars['opt']->value['load_func']; $_smarty_tpl->tpl_vars['uploadOptId']->nocache = null; $_smarty_tpl->tpl_vars['uploadOptId']->scope = 0; } else { $_smarty_tpl->tpl_vars['uploadOptId'] = new Smarty_variable($_smarty_tpl->tpl_vars['opt']->value['load_func'], null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['Cbucket']->value->configs[$_smarty_tpl->tpl_vars['uploadOptId']->value] == 'yes') { ?> <?php if ($_smarty_tpl->tpl_vars['counter']->value == 1) { if (isset($_smarty_tpl->tpl_vars['class'])) { $_smarty_tpl->tpl_vars['class'] = clone $_smarty_tpl->tpl_vars['class']; $_smarty_tpl->tpl_vars['class']->value = "active"; $_smarty_tpl->tpl_vars['class']->nocache = null; $_smarty_tpl->tpl_vars['class']->scope = 0; } else { $_smarty_tpl->tpl_vars['class'] = new Smarty_variable("active", null, 0); } } else { if (isset($_smarty_tpl->tpl_vars['class'])) { $_smarty_tpl->tpl_vars['class'] = clone $_smarty_tpl->tpl_vars['class']; $_smarty_tpl->tpl_vars['class']->value = ''; $_smarty_tpl->tpl_vars['class']->nocache = null; $_smarty_tpl->tpl_vars['class']->scope = 0; } else { $_smarty_tpl->tpl_vars['class'] = new Smarty_variable('', null, 0); } } ?> <div class="tab-pane fade in clearfix <?php echo $_smarty_tpl->tpl_vars['class']->value; ?> uploadForm" id="<?php echo $_smarty_tpl->tpl_vars['divid']->value; ?> "> <?php echo load_form(array('name' => $_smarty_tpl->tpl_vars['opt']->value['load_func'], 'button_class' => 'cb_button_2', 'class' => 'upload_form'), $_smarty_tpl); ?> </div> <?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 } ?> </div> </div> </div> </div> <div> </div> <script type="text/javascript"> (function(window){ $(document).ready(function(){ setTimeout(function(){ $(".embed_video").remove(); }, 10000); var baseurl = '<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> '; if('<?php echo $_smarty_tpl->tpl_vars['uploaderDetails']->value['uploadScriptPath']; ?> '!=''){ var uploadurl = '<?php echo $_smarty_tpl->tpl_vars['uploaderDetails']->value['uploadScriptPath']; ?> '; }else{ var uploadurl = '<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> /actions/file_uploader.php'; } //alert(uploadurl); var extensions = "<?php echo $_smarty_tpl->tpl_vars['extensions']->value; ?> "; extensions = extensions.substring(0, extensions.length-1); /* 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 oneFileFormDiv = $("#uploadFormContainer0").clone(); var uploader = new plupload.Uploader({ browse_button: 'selectFiles', dragdrop: true, drop_element: "dragDrop", runtimes : 'html5,flash,silverlight,html4', url : uploadurl, file_data_name : "Filedata", filters: { mime_types : [ { title : "Image files", extensions : extensions }, { title : "Video files", extensions : extensions } ] } }); uploader.init(); uploader.bind('FilesAdded', function(up, uploadedFiles) { for(var i = 0; i < uploadedFiles.length; i++){ files.push(uploadedFiles[i]); } $("#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"); // link.innerHTML = file.name + " (" + plupload.formatSize(file.size) + ")"; 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 = $("#updateVideoInfoForm").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 uploadFormContainer"; }else{ wrapperDiv.className = "tab-pane uploadFormContainer"; } wrapperDiv.id = "tab"+i; oneUploadForm.className = ""; $(oneUploadForm).find("input[name='title']").val(files[i].name.slice(0, -4)); $(oneUploadForm).find("textarea#desc").val(files[i].name.slice(0, -4)); $(oneUploadForm).find("input[name='category[]']:first").attr('checked', 'checked'); wrapperDiv.appendChild(oneUploadForm); uploadForms.push(wrapperDiv); } $("#allUploadForms").html(""); $("#allUploadForms").append(uploadForms); //Disabling saveDetails button for Current form var div_wrap_numb = totalFiles - 1; var upload_form_Div = $('#tab'+div_wrap_numb); upload_form_Div.find('#saveVideoDetails').attr("disabled",true); $(".formSection h4").on({ click: function(e){ e.preventDefault(); if($(this).find("i").hasClass("glyphicon-chevron-down")){ $(this).find("i").removeClass("glyphicon-chevron-down").addClass("glyphicon-chevron-up"); $(this).next().toggleClass("hidden"); }else{ $(this).find("i").removeClass("glyphicon-chevron-up").addClass("glyphicon-chevron-down"); $(this).next().toggleClass("hidden"); } } }); setTimeout(function(){ $("#uploaderContainer").toggleClass("hidden"); $("#uploadDataContainer").toggleClass("hidden"); $(".uploadingProgressContainer").show(); $(".allProgress").removeClass("hidden"); uploader.start(); }, 1000); // updating file title in the form }); uploader.bind("BeforeUpload", function(){ $("#fileUploadProgress").removeClass("hidden"); $(".progress-container").removeClass("hidden"); }); 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) { // var progressContainer = document.getElementById("fileUploadProgress"); // var progressBar = progressContainer.getElementsByTagName("progress")[0]; // progressBar.style.display = "block"; // var fileName = progressContainer.getElementsByTagName('h5')[0]; // fileName.innerHTML = "Uploading "+file.name; // var percent = file.percent/100; // progressBar.value = percent; $("#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++; //enabling savedetails button for Current form var _upload_form_Div_ = $('#tab'+currentFileIndex); _upload_form_Div_.find("#saveVideoDetails").attr("disabled",false); /* Insert the video in the database and get the video db id from the database which will be sent with the final form */ var fileId = false; $.ajax({ url : baseurl + "/actions/file_uploader.php", type : "post", data : { insertVideo : "yes", title : fileDetails.name, file_name : fileName } }).success(function(msg){ console.log(msg); res = $.parseJSON(msg); console.log(res); fileId = res.videoid; // creating the hidden form fields var hiddenVideoIdField = document.createElement('input'); hiddenVideoIdField.name = 'videoid'; hiddenVideoIdField.type = 'hidden'; hiddenVideoIdField.value = fileId; var hiddenVideoNameField = document.createElement('input'); hiddenVideoNameField.name = 'file_name'; hiddenVideoNameField.type = 'hidden'; hiddenVideoNameField.value = fileName; var hiddenUploadVideoFlagField = document.createElement('input'); hiddenUploadVideoFlagField.type = 'hidden'; hiddenUploadVideoFlagField.name = 'updateVideo'; hiddenUploadVideoFlagField.value = 'yes'; uploadForm.append(hiddenVideoIdField); uploadForm.append(hiddenVideoNameField); uploadForm.append(hiddenUploadVideoFlagField); uploadForm.find("#cbSubmitUpload").removeAttr('disabled').val('Upload').addClass('btn-success'); }); /* Submit the form with all the video details and options to update the video information in the system */ $(uploadForm).on({ submit: function(e){ e.preventDefault(); var self = this; var data = $(this).serialize(); $.ajax({ url : baseurl + "/actions/file_uploader.php", type : "post", data : data }).success(function(msg){ msg = $.parseJSON(msg); $("#uploadMessage").removeClass("hidden"); if(msg.error){ $("#uploadMessage").html(msg.error).attr("class", "alert alert-danger"); }else{ $("#uploadMessage").html(msg.msg).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").hide(); 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); }); $("#files a").click(function(e){ e.preventDefault(); $(this).tab("show"); }); $("#uploadMoreVideos").on({ click: function(e){ e.preventDefault(); $("#uploaderContainer").removeClass("hidden"); $("#uploadDataContainer").addClass("hidden"); //$(this).addClass("hidden"); } }); }); }); })(window); </script> <?php }
/** * wrapper for smarty_lang * * @uses smarty_lang */ function snippet_lang($type = '') { return smarty_lang(array('type' => $type)); }
function content_56afd7a7b66b49_76302993($_smarty_tpl) { if (!is_callable('smarty_modifier_date_format')) { include '/var/www/html/includes/smartyv3/plugins/modifier.date_format.php'; } if (!is_callable('smarty_modifier_truncate')) { include '/var/www/html/includes/smartyv3/plugins/modifier.truncate.php'; } ?> <div class="row message"> <div class="row accountprofile"> <div class="col-md-10"> <div class="media"> <a class="pull-left" href="#"> <img class="media-object imgobject" src="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->getUserThumb($_smarty_tpl->tpl_vars['user']->value); ?> " width="142" alt="..."> </a> <div class="media-body"> <div class="row"> <div class="col-md-6 procolor"> <h4 class="media-heading headcolor"><?php echo $_smarty_tpl->tpl_vars['user']->value['username']; ?> (<?php if (isset($_smarty_tpl->tpl_vars['category'])) { $_smarty_tpl->tpl_vars['category'] = clone $_smarty_tpl->tpl_vars['category']; $_smarty_tpl->tpl_vars['category']->value = $_smarty_tpl->tpl_vars['userquery']->value->get_category($_smarty_tpl->tpl_vars['user']->value['category']); $_smarty_tpl->tpl_vars['category']->nocache = null; $_smarty_tpl->tpl_vars['category']->scope = 0; } else { $_smarty_tpl->tpl_vars['category'] = new Smarty_variable($_smarty_tpl->tpl_vars['userquery']->value->get_category($_smarty_tpl->tpl_vars['user']->value['category']), null, 0); } ?> <?php echo $_smarty_tpl->tpl_vars['category']->value['category_name']; ?> )</h4> <b><?php echo smarty_lang(array('code' => 'Since:'), $_smarty_tpl); ?> </b> (<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['user']->value['doj']); ?> ) <b><?php echo smarty_lang(array('code' => 'last Login:'******'user']->value['last_logged']); ?> ) </div> <!--<div class="col-md-4 procolor">--> <!--(<?php if (isset($_smarty_tpl->tpl_vars['category'])) { $_smarty_tpl->tpl_vars['category'] = clone $_smarty_tpl->tpl_vars['category']; $_smarty_tpl->tpl_vars['category']->value = $_smarty_tpl->tpl_vars['userquery']->value->get_category($_smarty_tpl->tpl_vars['user']->value['category']); $_smarty_tpl->tpl_vars['category']->nocache = null; $_smarty_tpl->tpl_vars['category']->scope = 0; } else { $_smarty_tpl->tpl_vars['category'] = new Smarty_variable($_smarty_tpl->tpl_vars['userquery']->value->get_category($_smarty_tpl->tpl_vars['user']->value['category']), null, 0); } ?> --> <!--<?php echo $_smarty_tpl->tpl_vars['category']->value['category_name']; ?> )<br>--> <!--<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['user']->value['doj']); ?> <br>--> <!--<?php echo nicetime($_smarty_tpl->tpl_vars['user']->value['last_logged']); ?> --> <!--</div>--> </div> </div> </div> </div> <!--<div class="row">--> <!--<div class="col-md-6">--> <!--<?php echo smarty_lang(array('code' => 'username:'******'code' => 'joined:'), $_smarty_tpl); ?> <br>--> <!--<?php echo smarty_lang(array('code' => 'last logged in:'), $_smarty_tpl); ?> <br>--> <!--<?php echo smarty_lang(array('code' => 'category:'), $_smarty_tpl); ?> <br>--> <!--</div>--> <!--<div class="col-md-6">--> <!--<?php echo $_smarty_tpl->tpl_vars['user']->value['username']; ?> <br>--> <!--<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['user']->value['doj']); ?> <br>--> <!--<?php echo nicetime($_smarty_tpl->tpl_vars['user']->value['last_logged']); ?> <br>--> <!--<?php if (isset($_smarty_tpl->tpl_vars['category'])) { $_smarty_tpl->tpl_vars['category'] = clone $_smarty_tpl->tpl_vars['category']; $_smarty_tpl->tpl_vars['category']->value = $_smarty_tpl->tpl_vars['userquery']->value->get_category($_smarty_tpl->tpl_vars['user']->value['category']); $_smarty_tpl->tpl_vars['category']->nocache = null; $_smarty_tpl->tpl_vars['category']->scope = 0; } else { $_smarty_tpl->tpl_vars['category'] = new Smarty_variable($_smarty_tpl->tpl_vars['userquery']->value->get_category($_smarty_tpl->tpl_vars['user']->value['category']), null, 0); } ?> --> <!--<?php echo $_smarty_tpl->tpl_vars['category']->value['category_name']; ?> --> <!--</div>--> <!--</div>--> </div> </div> <hr class="newhr1"> <div class="mvideo accountprofile"> <span class="lead"> <?php echo smarty_lang(array('code' => 'Latest Videos'), $_smarty_tpl); ?> </span> <table class="table table-bordered table-striped manageUsersTable"> <tr> <td><i class="icon-facetime-video"></i> Videos Details</td> <td>Option</td> </tr> <?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; ?> <tr> <td> <div class="row"> <div class="col-md-10"> <div class="row"> <div class="col-md-3"> <a href="<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> /edit_video.php?vid=<?php echo $_smarty_tpl->tpl_vars['video']->value['videoid']; ?> "> <img src="<?php echo getSmartyThumb(array('vdetails' => $_smarty_tpl->tpl_vars['video']->value), $_smarty_tpl); ?> " width="130" height="80" id="thumbs_<?php echo $_smarty_tpl->tpl_vars['video']->value['videoid']; ?> " class="vthumb" title=""/> <span class="duration">(<?php if ($_smarty_tpl->tpl_vars['video']->value['duration'] > 1) { echo SetTime($_smarty_tpl->tpl_vars['video']->value['duration']); } else { ?> 00:00<?php } ?> )</span> </a> </div> <div class="col-md-9"> <a href="edit_video.php?vid=<?php echo $_smarty_tpl->tpl_vars['video']->value['videoid']; ?> "> <?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['video']->value['title'], 80); ?> </a><br> <span class="maccountlabels"> <strong><?php echo niceTime($_smarty_tpl->tpl_vars['video']->value['date_added']); ?> </strong> <?php echo smarty_lang(array('code' => 'views'), $_smarty_tpl); ?> : <strong><?php echo number_format($_smarty_tpl->tpl_vars['video']->value['views']); ?> </strong></span> <div class="labels"> <?php if ($_smarty_tpl->tpl_vars['video']->value['featured'] == 'yes') { ?> <span class="label label-primary">Featured<?php } else { } ?> </span> <span class="label <?php if ($_smarty_tpl->tpl_vars['video']->value['active'] == 'yes') { ?> label-success<?php } else { ?> label-warning<?php } ?> mlabel"> <?php if ($_smarty_tpl->tpl_vars['video']->value['active'] == 'yes') { ?> Active<?php } else { ?> InActive<?php } ?> </span> <span class="label <?php if ($_smarty_tpl->tpl_vars['video']->value['status'] == 'Successful') { ?> label-success<?php } else { ?> label-warning<?php } ?> "> <?php if ($_smarty_tpl->tpl_vars['video']->value['status'] == 'Successful') { ?> Successful<?php } else { ?> Processing<?php } ?> </span> <span class="label label-info"> Viewed <?php echo niceTime($_smarty_tpl->tpl_vars['video']->value['last_viewed']); ?> </span> </div> </div> </div> </div> <div class="col-md-2"> <div class="row"> <?php if ($_smarty_tpl->tpl_vars['video']->value['broadcast'] == 'public') { ?> <div class="col-md-1"><i class="icon-globe"></i></div> <?php } elseif ($_smarty_tpl->tpl_vars['video']->value['broadcast'] != 'public') { ?> <div class="col-md-1"><i class="icon-lock"></i></div> <?php } ?> </div> <a href="view_user.php?uid=<?php echo $_smarty_tpl->tpl_vars['video']->value['userid']; ?> "><?php echo $_smarty_tpl->tpl_vars['video']->value['username']; ?> </a> </div> </div> </td> <td> <div class="dropdown"> <button id="dropdownMenu1" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown"> Actions <i class="caret"></i></button> <ul class="dropdown-menu pull-right" aria-labelledby="dropdownMenu1" role="menu"> <li><a role="menuitem" tabindex="-1" href="<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> /edit_video.php?vid=<?php echo $_smarty_tpl->tpl_vars['video']->value['videoid']; ?> " class="">Edit</a></li> <li><a role="menuitem" tabindex="-1" href="<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> /watch_video.php?v=<?php echo $_smarty_tpl->tpl_vars['video']->value['videokey']; ?> "target="_blank">Watch</a> <li class="divider"></li> <li><a role="menuitem" tabindex="-1" href="<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> /myaccount.php?delete_video=<?php echo $_smarty_tpl->tpl_vars['video']->value['videoid']; ?> ">Delete</a> </li> <?php $_smarty_tpl->tpl_vars['links'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['links']->_loop = false; $_from = $_smarty_tpl->tpl_vars['cbvid']->value->video_manager_links; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['links']->key => $_smarty_tpl->tpl_vars['links']->value) { $_smarty_tpl->tpl_vars['links']->_loop = true; ?> <?php echo $_smarty_tpl->tpl_vars['cbvid']->value->video_manager_link($_smarty_tpl->tpl_vars['links']->value, $_smarty_tpl->tpl_vars['video']->value); ?> <?php } ?> </ul> </div> </td> </tr> <?php } ?> </table> <?php } else { ?> <div align="center"><strong><em>No Video Found</em></strong></div> <?php } ?> </div> <div class="flaggedtable accountprofile1"> <table class="table table-bordered table-striped"> <div id="fobjects" class="tab-pane" > <div class="widget-box"> <td> <div class="widget-header"> <h5><i class="glyphicon glyphicon-flag"></i>Flagged Objects</h5> </div> <div class="widget-body"> <div class="tabbable tabs-left"> <ul class="nav nav-tabs" id="myTab"> <li class="active"> <a data-toggle="tab" href="#fvideos">Videos</a> </li> <li class="photos"> <a data-toggle="tab" href="#fphotos">Photos</a> </li> </ul> <br> <div class="tab-content"> <div id="fvideos" class="tab-pane active"> <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['list'])) { unset($_smarty_tpl->tpl_vars['smarty']->value['section']['list']); } $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['name'] = 'list'; $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['flagedVideos']->value) ? count($_loop) : max(0, (int) $_loop); unset($_loop); $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['show'] = true; $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['loop']; $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['step'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['loop'] - 1; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['list']['show']) { $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['loop']; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['list']['total'] == 0) { $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['show'] = false; } } else { $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['total'] = 0; } if ($_smarty_tpl->tpl_vars['smarty']->value['section']['list']['show']) { for ($_smarty_tpl->tpl_vars['smarty']->value['section']['list']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['iteration']++) { $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['iteration']; $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['iteration'] == 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['total']; ?> <div class="row"> <div class="col-md-3"> <img src="<?php echo getSmartyThumb(array('vdetails' => $_smarty_tpl->tpl_vars['flagedVideos']->value[$_smarty_tpl->getVariable('smarty')->value['section']['list']['index']]), $_smarty_tpl); ?> " width="85" height="70" id="thumbs_<?php echo $_smarty_tpl->tpl_vars['flagedVideos']->value[$_smarty_tpl->getVariable('smarty')->value['section']['list']['index']]['videoid']; ?> " title=""/> </div> <div class="col-md-6 fvideos"> <?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['flagedVideos']->value[$_smarty_tpl->getVariable('smarty')->value['section']['list']['index']]['title'], 50); ?> </div> <div class="col-md-7 fvideos"> <label class="label label-danger">Uploaded <?php echo niceTime($_smarty_tpl->tpl_vars['flagedVideos']->value[$_smarty_tpl->getVariable('smarty')->value['section']['list']['index']]['date_added']); ?> </label> <label class="label label-default"> <?php echo smarty_lang(array('code' => 'views'), $_smarty_tpl); ?> : <?php echo number_format($_smarty_tpl->tpl_vars['flagedVideos']->value['views']); ?> </label> <label class="label label-primary"> Flags:<?php echo $_smarty_tpl->tpl_vars['flagedVideos']->value[$_smarty_tpl->getVariable('smarty')->value['section']['list']['index']]['total_flags']; ?> </label> </div> </div> <hr class="newhr"> <?php } } ?> </div> <div id="fphotos" class="tab-pane"> <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['list'])) { unset($_smarty_tpl->tpl_vars['smarty']->value['section']['list']); } $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['name'] = 'list'; $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['flagedPhotos']->value) ? count($_loop) : max(0, (int) $_loop); unset($_loop); $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['show'] = true; $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['loop']; $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['step'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['loop'] - 1; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['list']['show']) { $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['loop']; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['list']['total'] == 0) { $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['show'] = false; } } else { $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['total'] = 0; } if ($_smarty_tpl->tpl_vars['smarty']->value['section']['list']['show']) { for ($_smarty_tpl->tpl_vars['smarty']->value['section']['list']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['iteration']++) { $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['iteration']; $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['iteration'] == 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['total']; ?> <div class="row"> <div class="col-md-3"> <img src="<?php echo getSmartyThumb(array('vdetails' => $_smarty_tpl->tpl_vars['flagedPhotos']->value[$_smarty_tpl->getVariable('smarty')->value['section']['list']['index']]), $_smarty_tpl); ?> " width="85" height="70" id="thumbs_<?php echo $_smarty_tpl->tpl_vars['flagedPhotos']->value[$_smarty_tpl->getVariable('smarty')->value['section']['list']['index']]['photoid']; ?> " title=""/> </div> <div class="col-md-6 fusers"> <?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['flagedphotos']->value[$_smarty_tpl->getVariable('smarty')->value['section']['list']['index']]['title'], 50); ?> </div> <div class="col-md-2"> <strong class="btn btn-primary btn-xs pull-right"> Flags:<?php echo $_smarty_tpl->tpl_vars['flagedPhotos']->value[$_smarty_tpl->getVariable('smarty')->value['section']['list']['index']]['total_flags']; ?> </strong> </div> <div class="col-md-7 fusers"> <label class="label label-danger">Uploaded <?php echo niceTime($_smarty_tpl->tpl_vars['flagedPhotos']->value[$_smarty_tpl->getVariable('smarty')->value['section']['list']['index']]['date_added']); ?> </label> <label class="label label-default"> <?php echo smarty_lang(array('code' => 'views'), $_smarty_tpl); ?> : <?php echo number_format($_smarty_tpl->tpl_vars['flagedPhotos']->value['views']); ?> </label> </div> </div> <?php } } ?> </div> </div> </div> <!-- /widget-main --> </div><!-- /widget-body --> </div> </div> </table> </div> <div class="col-md-12"> <div class="padding38"> <?php if ($_smarty_tpl->tpl_vars['user']->value['userid'] == userid()) { ?> <button class="btn btn-primary new1" style="background-color: #000000;color: white"> <span class="line-height-1 bigger-170 blue"><?php echo $_smarty_tpl->tpl_vars['user']->value['total_videos']; ?> </span> <br> <span class="line-height-1 smaller-90 new1"> <?php echo smarty_lang(array('code' => 'Videos'), $_smarty_tpl); ?> </span> </button> <span class="btn btn-primary new1" style="background-color: #000000;color: #ffffff"> <span class="line-height-1 bigger-170 blue"><?php echo $_smarty_tpl->tpl_vars['user']->value['total_photos']; ?> </span> <br> <span class="line-height-1 smaller-90 new1"> Photos </span> </span> <span class="btn btn-primary new1" style="background-color: #000000;color: #ffffff"> <span class="line-height-1 bigger-170 blue"><?php echo number_format($_smarty_tpl->tpl_vars['user']->value['num_visits']); ?> </span> <br> <span class="line-height-1 smaller-90 new1"> <?php echo smarty_lang(array('code' => 'total_logins'), $_smarty_tpl); ?> </span> </span> <span class="btn btn-primary new1" style="background-color: #000000;color: #ffffff"> <span class="line-height-1 bigger-170 blue"><?php echo number_format($_smarty_tpl->tpl_vars['user']->value['total_watched']); ?> </span> <br> <span class="line-height-1 smaller-90 new1"> <?php echo smarty_lang(array('code' => 'Watched'), $_smarty_tpl); ?> </span> </span> <span class="btn btn-primary new1" style="background-color: #000000;color: #ffffff"> <span class="line-height-1 bigger-170 blue"><?php echo number_format($_smarty_tpl->tpl_vars['user']->value['total_comments']); ?> </span> <br> <span class="line-height-1 smaller-90 new1"> <?php echo smarty_lang(array('code' => 'Comments'), $_smarty_tpl); ?> </span> </span> <span class="btn btn-primary new1" style="background-color: #000000;color: #ffffff"> <span class="line-height-1 bigger-170 blue"><?php echo number_format($_smarty_tpl->tpl_vars['user']->value['total_collections']); ?> </span> <br> <span class="line-height-1 smaller-90 new1"> <?php echo smarty_lang(array('code' => 'Collections'), $_smarty_tpl); ?> </span> </span> <span class="btn btn-primary new1" style="background-color: #000000; color: #ffffff"> <span class="line-height-1 bigger-170 blue"><?php echo $_smarty_tpl->tpl_vars['user']->value['profile_hits']; ?> </span> <br> <span class="line-height-1 smaller-90 new1"> <?php echo smarty_lang(array('code' => 'Views'), $_smarty_tpl); ?> </span> </span> <span class="btn btn-primary new1" style="background-color: #000000;color: #ffffff"> <span class="line-height-1 bigger-170 blue"><?php echo $_smarty_tpl->tpl_vars['user']->value['subscribers']; ?> </span> <br> <span class="line-height-1 smaller-90 new1"> <?php echo smarty_lang(array('code' => 'Subscribers'), $_smarty_tpl); ?> </span> </span> <?php } ?> </div> </div><?php }
function content_55e4485ead5e40_22088703($_smarty_tpl) { if ($_smarty_tpl->tpl_vars['userquery']->value->login_check('', true) || $_smarty_tpl->tpl_vars['Cbucket']->value->configs['anonym_comments'] == 'yes') { ?> <div class="add_comment_box" id="add_comment"> </div> <div class=""> <div id="comment-add-err"></div> <script type="text/javascript"> //Edit the counter/limiter value as your wish var count = "125"; //Example: var count = "175"; function limiter(){ var tex = document.myform.comment.value; var len = tex.length; if(len > count){ tex = tex.substring(0,count); document.myform.comment.value =tex; return false; } document.myform.limit.value = count-len; } </script> <form class="" id="comment_form" name="myform"> <input type="hidden" name="reply_to" id="reply_to" value="0"> <input type="hidden" name="obj_id" id="obj_id" value="<?php echo $_smarty_tpl->tpl_vars['id']->value; ?> "> <?php if (!$_smarty_tpl->tpl_vars['userquery']->value->login_check('', true) && $_smarty_tpl->tpl_vars['Cbucket']->value->configs['anonym_comments'] == 'yes') { ?> <div class="form-group"> <label for="comment_name"> <?php echo smarty_lang(array('code' => 'name'), $_smarty_tpl); ?> </label> <input type="text" name="name" id="comment_name" class="form-control"> </div> <div class="form-group"> <label for="comment_email"> <?php echo smarty_lang(array('code' => 'email_wont_display'), $_smarty_tpl); ?> </label> <input type="email" name="email" id="comment_email" class="form-control"> </div> <?php } else { ?> <strong class="comment-as"><?php echo sprintf(lang('Comment as %s'), $_smarty_tpl->tpl_vars['userquery']->value->username); ?> </strong> <?php } ?> <?php echo ANCHOR(array('place' => 'before_compose_box'), $_smarty_tpl); ?> <?php if (config('comments_captcha') == 'all' || config('comments_captcha') == 'guests' && !$_smarty_tpl->tpl_vars['userquery']->value->login_check('', true)) { ?> <div class="form-group"> <?php if (isset($_smarty_tpl->tpl_vars['captcha'])) { $_smarty_tpl->tpl_vars['captcha'] = clone $_smarty_tpl->tpl_vars['captcha']; $_smarty_tpl->tpl_vars['captcha']->value = get_captcha(); $_smarty_tpl->tpl_vars['captcha']->nocache = null; $_smarty_tpl->tpl_vars['captcha']->scope = 0; } else { $_smarty_tpl->tpl_vars['captcha'] = new Smarty_variable(get_captcha(), null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['captcha']->value) { ?> <?php if ($_smarty_tpl->tpl_vars['captcha']->value['show_field']) { ?> <label class="label" for="captcha">Verification Code</label> <?php echo load_captcha(array('captcha' => $_smarty_tpl->tpl_vars['captcha']->value, 'load' => 'field', 'field_params' => ' id="captcha" class="input" '), $_smarty_tpl); ?> <?php } ?> <?php echo load_captcha(array('captcha' => $_smarty_tpl->tpl_vars['captcha']->value, 'load' => 'function'), $_smarty_tpl); ?> <?php } ?> </div> <?php } ?> <div class="form-group"> <?php if (!$_smarty_tpl->tpl_vars['userquery']->value->login_check('', true) && $_smarty_tpl->tpl_vars['Cbucket']->value->configs['anonym_comments'] == 'yes') { ?> <label for="comment_text"> <?php echo smarty_lang(array('code' => 'Your comment'), $_smarty_tpl); ?> </label> <?php } ?> <script type="text/javascript"> document.write("<input style='float:right;margin-top:-31px' type=text name=limit size=4 readonly value="+count+">"); </script> <div class="clear"></div> <textarea onkeyup="limiter()" name="comment" placeholder="Type your comment here. Make sure it means something.." id="comment_text" class="form-control clearfix comment_text_new"></textarea> <div id="reply_to_img"><i class="glyphicon glyphicon-share-alt" style="color:#428BCA;"></i></div> </div> <div class="form-group clearfix"> <button data-loading-text="Loading..." type="button" class="hidden-xs hidden-sm btn btn-primary pull-right" id="addCommentButton"><?php echo lang('Comment'); ?> </button> </div> <script> function blink(selector){ $(selector).fadeOut('slow', function(){ $(this).fadeIn('slow', function(){ blink(this); }); }); } var ajaxPage = baseurl+'/ajax.php'; $('#addCommentButton').on('click',function(e){ e.preventDefault(); var btn =$(this); btn.button('loading'); $('#comment-add-err').hide(); var data = $(this).parents("form").serialize() + "&type=<?php echo $_smarty_tpl->tpl_vars['type']->value; ?> &mode=add_comment"; console.log(data); $.ajax({ url: ajaxPage, type: "post", data: data, dataType : 'json', }).success(function(response){ //var response = $.parseJSON(response); var cid = parseInt(response.cid); if(cid > 1){ $.ajax({ url: ajaxPage, type: "post", data: { mode: "get_comment", cid: cid, }, }).success(function(comment){ $("#comment_text").val(''); $("#userCommentsList").prepend(comment); var count_comments = $("#comment_counter").val(); $("#com_count").html(""); $("#com_count").append('Comments '+count_comments); }); }else{ if(response.msg){ $('#comment-add-err').show().html(response.msg); } else if(response.err) { $('#comment-add-err').show().html(response.err); } } btn.button('reset'); }); }); </script> <div class="hidden-lg hidden-md mbxl"> <button type="submit" class="btn btn-primary" onclick="add_comment_js('comment_form','<?php echo $_smarty_tpl->tpl_vars['type']->value; ?> ')<?php echo ANCHOR(array('place' => 'onClickAddComment'), $_smarty_tpl); ?> "><?php echo lang('Comment'); ?> </button> </div> </form> <div id="add_comment_result" class="add_comment_result mtm mbm" style="display:none"></div> <?php } else { ?> <?php echo smarty_lang(array('code' => 'please_login_to_comment'), $_smarty_tpl); ?> <?php } ?> </div> <style> #reply_to_img{ position:absolute; margin-left:686px; margin-top:-65px; display:none; } </style> <!-- Script by hscripts.com --> <?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 }
function content_56afda72d421f2_45056170($_smarty_tpl) { ?> <!-- Share This <?php echo $_smarty_tpl->tpl_vars['type']->value; ?> --> <?php if (isset($_smarty_tpl->tpl_vars['type'])) { $_smarty_tpl->tpl_vars['type'] = clone $_smarty_tpl->tpl_vars['type']; $_smarty_tpl->tpl_vars['type']->value = $_smarty_tpl->tpl_vars['params']->value['type']; $_smarty_tpl->tpl_vars['type']->nocache = null; $_smarty_tpl->tpl_vars['type']->scope = 0; } else { $_smarty_tpl->tpl_vars['type'] = new Smarty_variable($_smarty_tpl->tpl_vars['params']->value['type'], null, 0); } ?> <div id="share_form_div" class="action_box share_form clearfix"> <?php if ($_smarty_tpl->tpl_vars['params']->value['type'] == 'v' || $_smarty_tpl->tpl_vars['params']->value['type'] == 'video' || $_smarty_tpl->tpl_vars['params']->value['type'] == 'Video') { ?> <div> <?php if ($_smarty_tpl->tpl_vars['Cbucket']->value->configs['video_embed'] == 1 && $_smarty_tpl->tpl_vars['vdo']->value['allow_embedding'] == 'yes') { ?> <div class="form-group"> <label for="embed_code"> <?php echo smarty_lang(array('code' => 'embed_code'), $_smarty_tpl); ?> </label> <textarea name="embed_code" id="embed_code" onclick="this.select()" class="form-control"><?php if ($_smarty_tpl->tpl_vars['Cbucket']->value->configs['embed_type'] == 'iframe') { echo htmlspecialchars($_smarty_tpl->tpl_vars['cbvid']->value->embed_code($_smarty_tpl->tpl_vars['vdo']->value, 'iframe')); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['cbvid']->value->embed_code($_smarty_tpl->tpl_vars['vdo']->value, 'embed_object')); } ?> </textarea> <input type="hidden" name="alternate_embed_code" id="alternate_embed_code" value="<?php if ($_smarty_tpl->tpl_vars['Cbucket']->value->configs['embed_type'] == 'iframe') { echo htmlspecialchars($_smarty_tpl->tpl_vars['cbvid']->value->embed_code($_smarty_tpl->tpl_vars['vdo']->value, 'embed_object')); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['cbvid']->value->embed_code($_smarty_tpl->tpl_vars['vdo']->value, 'iframe')); } ?> " /> </div> <div class="form-group"> <label><?php echo lang('Player size'); ?> </label> <div></div> <label class="radio-inline"> <input type="radio" name="player_size" value="default" id="player_size_0" checked="checked" onclick="<?php echo $_smarty_tpl->tpl_vars['updateEmbedCode']->value; ?> ('<?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->configs['embed_player_width']; ?> ' ,'<?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->configs['embed_player_height']; ?> ',autoPlayEmbed)"/> <?php echo lang('Default'); ?> (<?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->configs['embed_player_width']; ?> x<?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->configs['embed_player_height']; ?> ) </label> <label class="radio-inline"> <input type="radio" name="player_size" value="small" id="player_size_1" onclick="<?php echo $_smarty_tpl->tpl_vars['updateEmbedCode']->value; ?> ('440','272',autoPlayEmbed)" /> <?php echo lang('Small'); ?> (440x272) </label> <label class="radio-inline"> <input type="radio" name="player_size" value="medium" id="player_size_2" onclick="<?php echo $_smarty_tpl->tpl_vars['updateEmbedCode']->value; ?> ('540','334',autoPlayEmbed)"/> <?php echo lang('Medium'); ?> (540x334) </label> <label class="radio-inline"> <input type="radio" name="player_size" value="large" id="player_size_3" onclick="<?php echo $_smarty_tpl->tpl_vars['updateEmbedCode']->value; ?> ('600','370',autoPlayEmbed)"/> <?php echo lang('Large'); ?> (600x370) </label> </div> <?php if ($_smarty_tpl->tpl_vars['pakplayer']->value == 'yes') { ?> <div>Autoplay video : <label><input type="radio" name="autoplay" value="yes" onclick="<?php echo $_smarty_tpl->tpl_vars['updateEmbedCode']->value; ?> (embedPlayerWidth,embedPlayerHeight,'yes')" <?php if ($_smarty_tpl->tpl_vars['Cbucket']->value->configs['autoplay_embed'] == 'yes') { ?> checked<?php } ?> />Yes</label> <label><input type="radio" name="autoplay" value="no" onclick="<?php echo $_smarty_tpl->tpl_vars['updateEmbedCode']->value; ?> (embedPlayerWidth,embedPlayerHeight,'no')" <?php if ($_smarty_tpl->tpl_vars['Cbucket']->value->configs['autoplay_embed'] != 'yes') { ?> checked<?php } ?> />No</label></div> <?php } ?> <div class="form-group"> <label><?php echo lang('Embed type'); ?> </label> <div></div> <label class="radio-inline"> <input type="radio" name="embed_type" value="iframe" onclick="switchEmbedCode('iframe')" <?php if ($_smarty_tpl->tpl_vars['Cbucket']->value->configs['embed_type'] == 'iframe') { ?> checked<?php } ?> />Iframe </label> <label class="radio-inline"> <input type="radio" name="embed_type" value="iframe" onclick="switchEmbedCode('embed_object')" <?php if ($_smarty_tpl->tpl_vars['Cbucket']->value->configs['embed_type'] == 'embed_object') { ?> checked<?php } ?> />Embed Object </label> </div> <?php } ?> </div> <div class="action_box_title"></div> <div class="form-group"> <label for="link_video"><?php echo smarty_lang(array('code' => 'link_this_video'), $_smarty_tpl); ?> </label> <input type="text" name="link_video" id="link_video" value="<?php echo videoSmartyLink(array('vdetails' => $_smarty_tpl->tpl_vars['vdo']->value), $_smarty_tpl); ?> " onclick="this.select()" class="form-control" /> </div> <div class="action_box_title"></div> <?php } ?> <div class="form_container"> <div id="share_form_results" class="form_result" style="display:none"></div> <form id="cb_share_item" name="share_form" method="post" action=""> <div class="form-group"> <label for="ShareUsers"> <?php echo sprintf(lang('share_this_type'), $_smarty_tpl->tpl_vars['type']->value); ?> </label> <input name="users" type="text" class="form-control" id="ShareUsers" placeholder="<?php echo smarty_lang(array('code' => 'seperate_usernames_with_comma'), $_smarty_tpl); ?> "/> </div> <div class="form-group"> <label for="message"><?php echo lang('Message'); ?> <span class="example"><?php echo lang('optional'); ?> </span></label> <textarea name="message" id="message" rows="5" class="form-control"></textarea> <input name="objectid" id="objectid" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['params']->value['id']; ?> " /> <div align="right" class="mtm"> <input type="submit" name="send_content" value="Send" class="btn btn-primary" /> </div> </div> </form> </div> <?php echo ANCHOR(array('place' => "video_sharing_options", 'data' => $_smarty_tpl->tpl_vars['vdo']->value), $_smarty_tpl); ?> </div> <!-- Share This <?php echo $_smarty_tpl->tpl_vars['type']->value; ?> --> <script> $(document).ready(function(){ $('body').on('submit','#cb_share_item',function(e){ e.preventDefault(); _cb.submit_share_form('share_form','<?php echo $_smarty_tpl->tpl_vars['params']->value['type']; ?> ');return false; }) }) </script><?php }
function content_55e44441897a91_94399789($_smarty_tpl) { if (!is_callable('smarty_modifier_date_format')) { include '/var/www/includes/smartyv3/plugins/modifier.date_format.php'; } ?> <!DOCTYPE HTML> <html> <head> <?php if (in_dev()) { ?> <?php if (isset($_smarty_tpl->tpl_vars['cache_buster'])) { $_smarty_tpl->tpl_vars['cache_buster'] = clone $_smarty_tpl->tpl_vars['cache_buster']; $_smarty_tpl->tpl_vars['cache_buster']->value = microtime(true); $_smarty_tpl->tpl_vars['cache_buster']->nocache = null; $_smarty_tpl->tpl_vars['cache_buster']->scope = 0; } else { $_smarty_tpl->tpl_vars['cache_buster'] = new Smarty_variable(microtime(true), null, 0); } ?> <?php } else { ?> <?php if (isset($_smarty_tpl->tpl_vars['cache_buster'])) { $_smarty_tpl->tpl_vars['cache_buster'] = clone $_smarty_tpl->tpl_vars['cache_buster']; $_smarty_tpl->tpl_vars['cache_buster']->value = $_smarty_tpl->tpl_vars['Cbucket']->value->version; $_smarty_tpl->tpl_vars['cache_buster']->nocache = null; $_smarty_tpl->tpl_vars['cache_buster']->scope = 0; } else { $_smarty_tpl->tpl_vars['cache_buster'] = new Smarty_variable($_smarty_tpl->tpl_vars['Cbucket']->value->version, null, 0); } ?> <?php } ?> <script src="//code.jquery.com/jquery-latest.min.js"></script> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script> var loading = '<i class="fa fa-spinner fa-spin"></i> <?php echo smarty_lang(array('code' => "loading"), $_smarty_tpl); ?> ...'; var baseurl = "<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> "; var imageurl = "<?php echo $_smarty_tpl->tpl_vars['imageurl']->value; ?> "; </script> <!-- custom scrollbars plugin --> <script src="<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> /js/jquery.mCustomScrollbar.concat.min.js"></script> <script> (function($){ $(window).load(function(){ $("#content_1").mCustomScrollbar({ scrollButtons:{ enable:true } }); }); })(jQuery); </script> <!-- ClipBucket v<?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->version; ?> --> <meta name="copyright" content="ClipBucket - Integrated Units 2007 - <?php echo smarty_modifier_date_format(time(), "%Y"); ?> " /> <meta name="author" content="Arslan Hassan - http://clip-bucket.com/arslan-hassan" /> <meta name="author" content="Fawaz Tahir - http://clip-bucket.com/fawaz-tahir" /> <link rel="shortcut icon" href="<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> /favicon.ico"> <link rel="icon" type="image/ico" href="<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> /favicon.ico" /> <!-- RSS FEEDS --> <?php echo rss_feeds(array('link_tag' => true), $_smarty_tpl); ?> <meta name="keywords" content="<?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->configs['keywords']; ?> " /> <meta name="description" content="<?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->configs['description']; ?> " /> <meta name="distribution" content="global" /> <title><?php echo cbtitle(array(), $_smarty_tpl); ?> </title> <link href='//fonts.googleapis.com/css?family=Rambla:400,700|Roboto:400,700|Open+Sans:400,300,600,700' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['theme']->value; ?> /css/bootstrap.min.css?cache=<?php echo $_smarty_tpl->tpl_vars['cache_buster']->value; ?> " /> <?php if (this_page('index')) { ?> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['theme']->value; ?> /css/home.css?cache=<?php echo $_smarty_tpl->tpl_vars['cache_buster']->value; ?> " /> <?php } ?> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['theme']->value; ?> /css/main.css?cache=<?php echo $_smarty_tpl->tpl_vars['cache_buster']->value; ?> " /> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['theme']->value; ?> /css/ClipBucket.css?cache=<?php echo $_smarty_tpl->tpl_vars['cache_buster']->value; ?> " /> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['theme']->value; ?> /css/channel.css?cache=<?php echo $_smarty_tpl->tpl_vars['cache_buster']->value; ?> " /> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['theme']->value; ?> /css/groups.css?cache=<?php echo $_smarty_tpl->tpl_vars['cache_buster']->value; ?> " /> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['theme']->value; ?> /css/header.css?cache=<?php echo $_smarty_tpl->tpl_vars['cache_buster']->value; ?> "> <link href="<?php echo $_smarty_tpl->tpl_vars['theme']->value; ?> /css/jquery.mCustomScrollbar.css" rel="stylesheet" /> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['theme']->value; ?> /css/font-awesome.min.css"> <?php if (this_page('watch_video') || this_page('view_item') || this_page('view_channel')) { ?> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['theme']->value; ?> /css/watch-video.css"> <?php } ?> <?php if (this_page('view_channel')) { ?> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['theme']->value; ?> /css/view-channel-header.css"> <?php } ?> <?php if (this_page('photo_upload') || this_page('upload')) { ?> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['theme']->value; ?> /css/uploader.css"> <?php } ?> <?php if (this_page('view_channel')) { ?> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['theme']->value; ?> /css/view_channel.css"> <?php } ?> <?php if (this_page('signup')) { ?> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> /styles/global/jquery_ui.css"> <?php } ?> <?php if (this_page('index')) { ?> <script src="<?php echo $_smarty_tpl->tpl_vars['theme']->value; ?> /js/custom-elements.js"></script> <?php } ?> <?php echo ANCHOR(array('place' => 'ajax_data'), $_smarty_tpl); ?> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> /js/functions.js"></script> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> /js/admin_functions.js"></script> <script src="<?php echo $_smarty_tpl->tpl_vars['theme']->value; ?> /js/bootstrap.min.js"></script> <script src="<?php echo $_smarty_tpl->tpl_vars['theme']->value; ?> /js/masonary.desandro.min.js"></script> <script src="<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> /js/clipbucket.js"></script> <script src="<?php echo $_smarty_tpl->tpl_vars['theme']->value; ?> /js/masonary.desandro.min.js"></script> <script src='https://www.google.com/recaptcha/api.js'></script <!-- Script For Home Page Videos Slider //--> <script src="<?php echo $_smarty_tpl->tpl_vars['theme']->value; ?> /js/jssor.slider.min.js"></script> <script src="<?php echo $_smarty_tpl->tpl_vars['theme']->value; ?> /js/uslider_js/jquery.easing.js"></script> <script src="<?php echo $_smarty_tpl->tpl_vars['theme']->value; ?> /js/uslider_js/jquery.mousewheel.js"></script> <script src="<?php echo $_smarty_tpl->tpl_vars['theme']->value; ?> /js/uslider_js/jquery.ulslide.js?v=4"></script> <!-- Script For Home Page Videos Slider //--> <?php if (isset($_smarty_tpl->tpl_vars['quicklist'])) { $_smarty_tpl->tpl_vars['quicklist'] = clone $_smarty_tpl->tpl_vars['quicklist']; $_smarty_tpl->tpl_vars['quicklist']->value = json_encode($_smarty_tpl->tpl_vars['cbvid']->value->get_quicklist()); $_smarty_tpl->tpl_vars['quicklist']->nocache = null; $_smarty_tpl->tpl_vars['quicklist']->scope = 0; } else { $_smarty_tpl->tpl_vars['quicklist'] = new Smarty_variable(json_encode($_smarty_tpl->tpl_vars['cbvid']->value->get_quicklist()), null, 0); } ?> <script> $(document).ready(function(){ var quicklist_videos = '<?php echo $_smarty_tpl->tpl_vars['quicklist']->value; ?> '; if (quicklist_videos) quicklist_videos_check(quicklist_videos); loading = '<i class="fa fa-spinner fa-spin"></i> <?php echo smarty_lang(array('code' => "loading"), $_smarty_tpl); ?> ...'; /* var container = document.querySelector('.the_'); var msnry = new Masonry( container, { // options itemSelector: '.the-item', stamp : '.ad-box' }); */ // less.watch({ // poll : 300 // }); // For changing language on Click in footer $( 'ul#photos li:visible' ).each( function( i ){ $( this )[ (1&i) ? 'addClass' : 'removeClass' ]( 'photo-land-no' ); }); // Language change select code $('#lang_selector').change(function(){ var optionSelectedValue = $('#lang_selector option:selected').val(); if(optionSelectedValue) { var $currentLocation = window.location.href, matchedElement = $currentLocation.match(/\?/); if(matchedElement == null) { window.location = "?set_site_lang="+optionSelectedValue; } else { window.location = window.location+"&set_site_lang="+optionSelectedValue; } } }); }); </script> <?php echo include_header(array('file' => 'global_header'), $_smarty_tpl); ?> </head><?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_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 }