</a><br /> <?php echo $video['description']; ?> </td> <td width="100" valign="top" align="right"> Rating <?php echo $video['rating']; ?> /10<br /> Views <?php echo $video['views']; ?> <br /> Duration <?php echo SetTime($video['duration']); ?> </tr> </table> <hr size="1" noshade> ]]> </description> <category><?php echo strip_tags(categories($video['category'], 'video')); ?> </category> <guid isPermaLink="true"><?php echo video_link($video); ?>
$videos = get_videos($params); $fixed_array = array(); if ($_POST['fix_duration'] || $_POST['mark_failed'] || $_POST['mark_delete']) { foreach ($videos as $video) { $log = get_file_details($video['file_name']); if ($log && $_POST['fix_duration']) { //$duration = $log['output_duration']; //if(!$duration) // $duration = $log['duration']; $duration = parse_duration(LOGS_DIR . '/' . $video['file_name'] . '.log'); if (!$duration) { e("Can't do anything about \"" . $video['title'] . "\""); } else { $db->update(tbl('video'), array('duration'), array($duration), "videoid='" . $video['videoid'] . "'"); $fixed_array[$video['file_name']] = 'yes'; e("Succesfully updated duration of \"" . $video['title'] . "\" to " . SetTime($duration), 'm'); } } if (!$log && $_POST['mark_failed']) { $db->update(tbl("video"), array("status", "failed_reason"), array('Failed', "Unable to get video duration"), " file_name='" . $video['file_name'] . "'"); e("\"" . $video['title'] . "\" status has been changed to Failed", "m"); } if (!$log && $_POST['mark_delete']) { $db->update(tbl("video"), array("status", "failed_reason"), array('Failed', "Unable to get video duration"), " file_name='" . $video['file_name'] . "'"); $cbvideo->delete_video($video['videoid']); } } $videos = get_videos($params); } subtitle("Repair videos duration"); assign('videos', $videos);
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_56afda72e3b8a6_14904283($_smarty_tpl) { if (!is_callable('smarty_modifier_truncate')) { include '/var/www/html/includes/smartyv3/plugins/modifier.truncate.php'; } ?> <div class="clearfix marginBottom grid_view list_view item_video_pop video_thumb_sm"> <div class="item_video"> <div class="cb_item_container clearfix"> <div class=" col-md-5 thumb row "> <a href="<?php echo videoLink($_smarty_tpl->tpl_vars['video']->value); ?> " title="<?php echo title($_smarty_tpl->tpl_vars['video']->value['title']); ?> " > <span class="fa fa-play play-icon"></span> <img class="" src="<?php echo getSmartyThumb(array('vdetails' => $_smarty_tpl->tpl_vars['video']->value), $_smarty_tpl); ?> "> <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="pull-right col-md-8 paddingright0"> <div class="item_text overflow_hidden"> <div class="clearfix"> <a href="<?php echo videoLink($_smarty_tpl->tpl_vars['video']->value); ?> "><b><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['video']->value['title'], 50); ?> </b></a> </div> <span class="user-block"><?php echo name($_smarty_tpl->tpl_vars['video']->value); ?> </span> </div> <div class="row small col-md-8"> <span class="pull-left views-count"><!-- <span class="bg-eye"></span> --> <?php echo $_smarty_tpl->tpl_vars['video']->value['views']; ?> views</span> <!-- <span class="pull-right"><small><span class="glyphicon glyphicon-thumbs-up"></span> <?php echo $_smarty_tpl->tpl_vars['video']->value['rating']; ?> </small></span> --> </div> </div> </div> </div> </div> <?php }
function content_55e44854c085f1_90364963($_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 == 'normal' || $_smarty_tpl->tpl_vars['display_type']->value == '') { ?> <div class="item_video"> <div class="cb_item_container clearfix"> <div class="cb_item_thumb video_thumb relative" > <a href="<?php echo videoLink($_smarty_tpl->tpl_vars['video']->value); ?> " title="<?php echo title($_smarty_tpl->tpl_vars['video']->value['title']); ?> "> <?php if ($_smarty_tpl->tpl_vars['video']->value['broadcast'] == 'private') { ?> <span class="private_video">PRIVATE</span> <?php } ?> <span class="fa fa-play play-icon"></span> <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> <img class="img" src="<?php echo getSmartyThumb(array('vdetails' => $_smarty_tpl->tpl_vars['video']->value, 'size' => '160x90'), $_smarty_tpl); ?> " border="1" /> </a> <?php echo ANCHOR(array('place' => 'in_video_thumb', 'data' => $_smarty_tpl->tpl_vars['video']->value), $_smarty_tpl); ?> <img src="<?php echo $_smarty_tpl->tpl_vars['imageurl']->value; ?> /dot.gif" data-quick="quick-<?php echo $_smarty_tpl->tpl_vars['video']->value['videoid']; ?> " class="add_icon cb_quickie cb-btn-quick-<?php echo $_smarty_tpl->tpl_vars['video']->value['videoid']; ?> " onclick="add_quicklist(this,'<?php echo $_smarty_tpl->tpl_vars['video']->value['videoid']; ?> ')" title="Add <?php echo $_smarty_tpl->tpl_vars['video']->value['title']; ?> to Quicklist" alt="Quicklist" /> </div> <h5> <a href="<?php echo videoLink($_smarty_tpl->tpl_vars['video']->value); ?> "><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['video']->value['title'], 20); ?> </a> </h5> <div class="clearfix views-time"> <span class="font1"><span class="bg-eye"></span> <?php echo $_smarty_tpl->tpl_vars['video']->value['views']; ?> views</span> <span class="font2"><span class="bg-time"></span> <?php echo niceTime($_smarty_tpl->tpl_vars['video']->value['date_added']); ?> </span> </div> </div> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['display_type']->value == 'user_videos') { ?> <div class="col-md-3 col-sm-4 col-xs-6 video_thumb "> <a href="<?php echo videoLink($_smarty_tpl->tpl_vars['video']->value); ?> " title="<?php echo title($_smarty_tpl->tpl_vars['video']->value['title']); ?> "> <span class="fa fa-play play-icon"></span> <img alt="<?php echo title($_smarty_tpl->tpl_vars['video']->value['title']); ?> " src="<?php echo getSmartyThumb(array('vdetails' => $_smarty_tpl->tpl_vars['video']->value, 'size' => '171x120'), $_smarty_tpl); ?> " id="thumbs_<?php echo $_smarty_tpl->tpl_vars['video']->value['videoid']; ?> " title="<?php echo title($_smarty_tpl->tpl_vars['video']->value['title']); ?> "/> </a> <p class="cbHomeVidDuration duration_view"> <?php if ($_smarty_tpl->tpl_vars['video']->value['duration'] > 1) { ?> <?php echo SetTime($_smarty_tpl->tpl_vars['video']->value['duration']); ?> <?php } else { ?> 00:00 <?php } ?> </p> <a href="<?php echo videoLink($_smarty_tpl->tpl_vars['video']->value); ?> " title="<?php echo title($_smarty_tpl->tpl_vars['video']->value['title']); ?> "><h5> <b> <?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['video']->value['title'], 25); ?> </b></h5></a> <span class="pull-left"><h5><small><?php echo $_smarty_tpl->tpl_vars['video']->value['views']; ?> views</small></h5></span> <span class="pull-right"><h5><small><?php echo niceTime($_smarty_tpl->tpl_vars['video']->value['date_added']); ?> </small></h5></span> </div> <?php } }
//Bytes Transfered $cur_speed = $now_file_size - $byte_size; //Time Eta $download_bytes = $total_size - $now_file_size; if ($cur_speed > 0) { $time_eta = $download_bytes / $cur_speed; } else { $time_eta = 0; } //Time Took $time_took = time() - $started; $curl_info = array('total_size' => $total_size, 'downloaded' => $now_file_size, 'speed_download' => $cur_speed, 'time_eta' => $time_eta, 'time_took' => $time_took, 'file_name' => $file); $fo = fopen($log_file, 'w+'); fwrite($fo, json_encode($curl_info)); fclose($fo); $fo = fopen($dummy_file, 'w+'); fwrite($fo, json_encode($data)); fclose($fo); if ($total_size == $now_file_size) { unlink($dummy_file); } } if (file_exists($log_file)) { $details = file_get_contents($log_file); $details = json_decode($details, true); $details['total_size_fm'] = formatfilesize($details['total_size']); $details['downloaded_fm'] = formatfilesize($details['downloaded']); $details['time_eta_fm'] = SetTime($details['time_eta']); $details['time_took_fm'] = SetTime($details['time_took']); echo json_encode($details); }
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_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_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 }
function duration($time, $pad = true) { return SetTime($time, $pad); }
function content_55e450c6b42735_58348266($_smarty_tpl) { if (!is_callable('smarty_modifier_truncate')) { include '/var/www/includes/smartyv3/plugins/modifier.truncate.php'; } if (!$_smarty_tpl->tpl_vars['videoLink']->value) { ?> <?php echo videoSmartyLink(array('vdetails' => $_smarty_tpl->tpl_vars['video']->value, 'assign' => 'videoLink'), $_smarty_tpl); ?> <?php } ?> <div class="qlist_item" style="background-color:#<?php echo $_smarty_tpl->tpl_vars['bg']->value; ?> ; <?php if ($_smarty_tpl->tpl_vars['selected']->value == $_smarty_tpl->tpl_vars['video']->value['videoid']) { ?> border:1px solid #999<?php } ?> " id="<?php echo $_smarty_tpl->tpl_vars['unique_id']->value; ?> playlist_cont_<?php echo $_smarty_tpl->tpl_vars['video']->value['videoid']; ?> "> <div class="pl_num"><?php echo $_smarty_tpl->getVariable('smarty')->value['section']['item']['iteration']; ?> </div> <div class="pl_thumb"> <a href="<?php echo videoLink($_smarty_tpl->tpl_vars['video']->value); ?> " target="blank"> <img src="<?php echo getSmartyThumb(array('vdetails' => $_smarty_tpl->tpl_vars['video']->value), $_smarty_tpl); ?> "/> </a> </div> <div class="pl_details" onclick="window.location='<?php echo $_smarty_tpl->tpl_vars['videoLink']->value; ?> '"> <a href="<?php echo videoLink($_smarty_tpl->tpl_vars['video']->value); ?> " target="blank" ><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['video']->value['title'], 25); ?> </a> </div> <?php if ($_smarty_tpl->tpl_vars['show_delete']->value == 'yes') { ?> <div class="ql_delete"> <img src="<?php echo $_smarty_tpl->tpl_vars['imageurl']->value; ?> /dot.gif" class="cross_icon" onclick="remove_qucklist('#<?php echo $_smarty_tpl->tpl_vars['unique_id']->value; ?> playlist_cont_<?php echo $_smarty_tpl->tpl_vars['video']->value['videoid']; ?> ','<?php echo $_smarty_tpl->tpl_vars['video']->value['videoid']; ?> ')" title="remove <?php echo $_smarty_tpl->tpl_vars['video']->value['title']; ?> from qucklist" alt="quicklist"> </div> <?php } ?> <div class="pl_duration"><?php echo SetTime($_smarty_tpl->tpl_vars['video']->value['duration']); ?> </div> <div class="clearfix"></div> </div> <?php }