private function home_page() { $request = $_REQUEST; define('API_HOME_PAGE', 'yes'); global $cbvid; $videos = $cbvid->get_videos(array('featured' => 'yes', 'limit' => 10, 'order' => 'featured_date DESC', 'has_mobile' => 'yes')); global $userquery; $new_videos = array(); if ($videos) { foreach ($videos as $video) { $video['title'] = utf8_encode($video['title']); $video['description'] = utf8_encode($video['description']); $video['thumbs'] = array('default' => get_thumb($video), 'big' => get_thumb($video, 'big'), '640x480' => get_thumb($video, '640x480')); if (function_exists('get_mob_video')) { $video['videos'] = array('mobile' => get_mob_video(array('video' => $video))); if ($video['has_hd'] == 'yes') { $video['videos']['hq'] = get_hq_video_file($video); } } $video['url'] = $video['video_link'] = $video['videoLink'] = videoLink($video); $video['avatar'] = $video['user_photo'] = $video['displayPic'] = $userquery->avatar($video); $video['avatars']['medium'] = $userquery->avatar($video, 'small'); $video['avatars']['xmedium'] = $userquery->avatar($video, 'xmedium'); $video['avatars']['large'] = $userquery->avatar($video, 'large'); $new_videos[] = $video; } } $featured = $new_videos; $categories = $cbvid->getCbCategories(array('cond' => " ( category_id = '1' OR category_id = '16' OR category_id = '26' OR category_id = '15' ) ", 'limit' => 4, 'type' => 'v')); $cat_videos = array(); foreach ($categories as $category) { $cat_vid = array('name' => $category['category_name'], 'id' => $category['category_id']); $videos = $cbvid->get_videos(array('limit' => 10, 'category' => $category['category_id'], 'order' => ' date_added desc ')); $new_videos = array(); if ($videos) { foreach ($videos as $video) { $video['title'] = utf8_encode($video['title']); $video['description'] = utf8_encode($video['description']); $video['thumbs'] = array('default' => get_thumb($video), 'big' => get_thumb($video, 'big'), '640x480' => get_thumb($video, '640x480')); if (function_exists('get_mob_video')) { $video['videos'] = array('mobile' => get_mob_video(array('video' => $video))); if ($video['has_hd'] == 'yes') { $video['videos']['hq'] = get_hq_video_file($video); } } $video['url'] = $video['video_link'] = $video['videoLink'] = videoLink($video); $video['avatar'] = $video['user_photo'] = $video['displayPic'] = $userquery->avatar($video); $video['avatars']['medium'] = $userquery->avatar($video, 'medium'); $video['avatars']['xmedium'] = $userquery->avatar($video, 'xmedium'); $video['avatars']['large'] = $userquery->avatar($video, 'large'); $new_videos[] = $video; } } $cat_vid['videos'] = $new_videos; $cat_videos[] = $cat_vid; } $home = array('featured' => $featured, 'categories' => $cat_videos); //echo json_encode($home); if (!empty($featured) || !empty($cat_videos)) { $data = array('code' => "200", 'status' => "success", "msg" => "Success", "data" => $home); $this->response($this->json($data)); } else { $data = array('code' => "204", 'status' => "success", "msg" => "No Record Found", "data" => ""); $this->response($this->json($data)); } }
/** * get playlist url... * * @param INT playlist_id * @return STRING playlist url */ function playPlaylist($id) { $items = $this->get_playlist_items($id, NULL, 1); if ($items) { $item = $items[0]; return videoLink($item); } }
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 }
$search->limit = create_query_limit($page, $limit); $search->key = mysql_clean($request['query']); $results = $search->search(); if ($results) { $the_results = array(); switch ($type) { case "video": default: if ($results) { foreach ($results as $video) { $hq_file = get_hq_video_file($video); $video['title'] = title($video['title']); $video['description'] = mob_description($video['description']); $video['thumbs'] = array('default' => get_thumb($video), 'big' => getSmartyThumb(array('vdetails' => $video, 'size' => 'big'))); $video['videos'] = array('mobile' => get_mob_video(array('video' => $video))); $video['url'] = $video['video_link'] = $video['videoLink'] = videoLink($video); if (has_hq($video)) { $video['videos']['hd'] = $hq_file; } foreach ($blacklist_fields as $field) { unset($video[$field]); } $the_results[] = $video; } } break; case "users": if ($results) { foreach ($results as $user) { $user['avatar'] = $user['user_photo'] = $userquery->avatar($user); foreach ($blacklist_fields as $field) {
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 } }
/** * Function used to add video comment */ function add_comment($comment, $obj_id, $reply_to = NULL, $force_name_email = false) { global $myquery, $db; $video = $this->get_video_details($obj_id); if (!$video) { e(lang("class_vdo_del_err")); } else { //Getting Owner Id $owner_id = $this->get_video_owner($obj_id, true); $add_comment = $myquery->add_comment($comment, $obj_id, $reply_to, 'v', $owner_id, videoLink($video), $force_name_email); if ($add_comment) { //Loggin Comment $log_array = array('success' => 'yes', 'details' => "comment on a video", 'action_obj_id' => $obj_id, 'action_done_id' => $add_comment); insert_log('video_comment', $log_array); //Updating Number of comments of video $this->update_comments_count($obj_id); } return $add_comment; } }
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 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 }
$related_videos = get_videos(array('exclude' => $videoid, 'limit' => 12, 'order' => 'date_added DESC')); } ?> <rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/"> <channel> <?php if ($related_videos) { foreach ($related_videos as $video) { ?> <item> <title><?php echo $video['title']; ?> </title> <link><?php echo videoLink($video); ?> </link> <media:thumbnail url="<?php echo get_thumb($video); ?> " height="90" width="120" time="<?php echo setTime($video['duration']); ?> "/> </item> <?php } } ?> </channel>
/** * Function used to get user feed */ function getUserFeeds($user) { global $cbphoto, $userquery, $cbvid, $cbgroup, $cbcollection; $allowed_feeds = USER_ACTIVITY_FEEDS_LIMIT; $uid = $user['userid']; $feeds = $this->getUserFeedsFiles($uid); if (!$feeds) { return false; } $newFeeds = array(); $coutn = 0; foreach ($feeds as $feed) { $count++; if ($count > $allowed_feeds) { break; } $feedArray = json_decode($feed['content'], true); if ($feed && count($feedArray > 0)) { $remove_feed = false; $farr = $feedArray; $action = $farr['action']; $object = $farr['object']; $object_id = $farr['object_id']; $farr['user'] = $user; $farr['file'] = getName($feed['file']); $farr['datetime'] = nicetime($farr['time'], true); $userlink = '<a href="' . $userquery->profile_link($user) . '">' . $user['username'] . '</a>'; //Creating Links switch ($action) { case "upload_photo": $photo = $cbphoto->get_photo($object_id); //If photo does not exists, simply remove the feed if (!$photo) { $this->deleteFeed($uid, $feed['file']); $remove_feed = true; } else { $objectArr['details'] = $photo; $objectArr['size'] = 't'; $objectArr['output'] = 'non_html'; $objectArr['alt'] = $photo['photo_title']; $farr['thumb'] = $cbphoto->getFileSmarty($objectArr); $farr['link'] = $cbphoto->photo_links($photo, 'view_item'); //Content Title $farr['title'] = $photo['photo_title']; $farr['action_title'] = sprintf(lang('user_has_uploaded_new_photo'), $userlink); $farr['links'][] = array('link' => $cbphoto->photo_links($photo, 'view_item'), 'text' => lang('view_photo')); $farr['icon'] = 'images.png'; } break; case "upload_video": case "add_favorite": $video = $cbvid->get_video($object_id); //If photo does not exists, simply remove the feed if (!$video) { $this->deleteFeed($uid, $feed['file']); $remove_feed = true; } elseif (!video_playable($video)) { $remove_feed = true; } else { //Content Title $farr['title'] = $video['title']; if ($action == 'upload_video') { $farr['action_title'] = sprintf(lang('user_has_uploaded_new_video'), $userlink); } if ($action == 'add_favorite') { $farr['action_title'] = sprintf(lang('user_has_favorited_video'), $userlink); } $farr['link'] = videoLink($video); $farr['object_content'] = $video['description']; $farr['thumb'] = get_thumb($video); $farr['links'][] = array('link' => videoLink($video), 'text' => lang('watch_video')); $farr['icon'] = 'video.png'; if ($action == 'add_favorite') { $farr['icon'] = 'heart.png'; } } break; case "create_group": case "join_group": $group = $cbgroup->get_group($object_id); //If photo does not exists, simply remove the feed if (!$group) { $this->deleteFeed($uid, $feed['file']); $remove_feed = true; } elseif (!$cbgroup->is_viewable($group)) { $remove_feed = true; } else { //Content Title $farr['title'] = $group['group_name']; if ($action == 'create_group') { $farr['action_title'] = sprintf(lang('user_has_created_new_group'), $userlink); } if ($action == 'join_group') { $farr['action_title'] = sprintf(lang('user_has_joined_group'), $userlink); } $farr['link'] = group_link(array('details' => $group)); $farr['object_content'] = $group['group_description'] . "<br>" . lang('total_members') . " : " . $group['total_members'] . "<br>" . lang('total_videos') . " : " . $group['total_videos'] . "<br>" . lang('total_topics') . " : " . $group['total_topics'] . "<br>"; $farr['thumb'] = $cbgroup->get_group_thumb($group); $farr['icon'] = 'group.png'; $joinlink = $cbgroup->group_opt_link($group, 'join'); if ($joinlink) { if (SEO == "yes") { $joinlink = group_link(array('details' => $group)) . '?join=yes"'; } else { $joinlink = group_link(array('details' => $group)) . '&join=yes"'; } $farr['links'][] = array('link' => $joinlink, 'text' => lang('join')); } } break; case "signup": $farr['action_title'] = sprintf(lang("user_joined_us"), $userlink, TITLE, $userlink); $farr['icon'] = 'user.png'; break; case "add_friend": $friend = $userquery->get_user_details($object_id); if (!$friend) { $this->deleteFeed($uid, $feed['file']); $remove_feed = true; } else { $friendlink = '<a href="' . $userquery->profile_link($friend) . '">' . $friend['username'] . '</a>'; $farr['action_title'] = sprintf(lang("user_is_now_friend_with_other"), $userlink, $friendlink); $farr['icon'] = 'user_add.png'; } break; case "add_collection": $collection = $cbcollection->get_collection($object_id); if (!$collection) { $this->deleteFeed($uid, $feed['file']); $remove_feed = true; } else { $farr['action_title'] = sprintf(lang('user_has_created_new_collection'), $userlink); $farr['thumb'] = $cbcollection->get_thumb($collection, 'small'); $farr['title'] = $collection['collection_name']; $collection_link = $cbcollection->collection_links($collection, 'view'); $farr['link'] = $collection_link; $farr['object_content'] = $collection['collection_description'] . '<br>' . $collection['total_objects'] . " " . $collection['type']; $farr['icon'] = 'photos.png'; $farr['links'][] = array('link' => $collection_link, 'text' => lang('view_collection')); } } if (!$remove_feed) { $newFeeds[$feedArray['time']] = $farr; } } } return $newFeeds; }
$userquery->perm_check('view_video', true); $pages->page_redir(); //Getting Video Key $vkey = @$_GET['v']; $vkey = mysql_clean($vkey); $vdo = $cbvid->get_video($vkey); //pr($vdo,true); assign('vdo', $vdo); if (video_playable($vdo)) { /** * Please check http://code.google.com/p/clipbucket/issues/detail?id=168 * for more details about following code */ if (SEO == 'yes') { //Checking if Video URL is Exactly What we have created $vid_link = videoLink($vdo); $vid_link_seo = explode('/', $vid_link); $vid_link_seo = $vid_link_seo[count($vid_link_seo) - 1]; //What we are getting $server_link = $_SERVER['REQUEST_URI']; $server_link_seo = explode('/', $server_link); $server_link_seo = $server_link_seo[count($server_link_seo) - 1]; //Now finally Checking if both are equal else redirect to new link if ($vid_link_seo != $server_link_seo) { /*//Redirect to valid link leaving mark 301 Permanent Redirect header ('HTTP/1.1 301 Moved Permanently'); header ('Location: '.$vid_link); exit();*/ } } //Checking for playlist
function embed_video_src($params) { $pseudo_streaming = false; $ppfile = 'pakplayer.swf'; if (config('pak_license')) { $ppfile = 'pakplayer.unlimited.swf'; } $video = $params['video']; $array = array(); $plugins['controls']['url'] = BASEURL . '/player/pak_player/pakplayer.controls.swf'; $plugins['controls']['background'] = 'url(' . BASEURL . '/player/pak_player/bg.png) repeat'; $canvas['backgroundColor'] = "#000000"; $canvas['backgroundGradient'] = "none"; /* Checking for youtube */ $ref = $video['refer_url']; //Trying other method if (function_exists('get_refer_url_from_embed_code')) { $ref_details = get_refer_url_from_embed_code(unhtmlentities(stripslashes($video['embed_code']))); $ytcode = $ref_details['ytcode']; } if ($ytcode) { $plugins['youtube']['url'] = BASEURL . '/player/pak_player/pakplayer.youtube.swf'; $plugins['youtube']['enableGdata'] = true; $clip['url'] = 'api:' . $ytcode; $clip['provider'] = 'youtube'; $clip['urlResolvers'] = 'youtube'; } else { if (config('pseudostreaming') == 'yes') { $plugins['pseudo']['url'] = BASEURL . '/player/pak_player/pakplayer.pseudo.swf'; $clip['provider'] = 'pseudo'; $pseudo_streaming = true; } $clip['url'] = get_video_file($video, true, true); } /* End Checking Youtube */ // Setting AutoPlay if ($_GET['autoplay']) { $autoplay = $_GET['autoplay']; } else { $autoplay = $_GET['autoplay_embed']; } if ($autoplay == 'yes') { $autoplay = true; } else { $autoplay = false; } $clip['scaling'] = 'fit'; $clip['autoPlay'] = $autoplay; $clip['linkUrl'] = videoLink($video); $clip['linkWindow'] = '_blank'; $logo['url'] = website_logo(); $logo['fullscreenOnly'] = false; $logoPlace = config('logo_placement'); $padding = config('logo_padding'); switch ($logoPlace) { case "tr": $logo['top'] = $padding; $logo['right'] = $padding; break; case "tl": $logo['top'] = $padding; $logo['left'] = $padding; break; case "br": $logo['bottom'] = $padding; $logo['right'] = $padding; break; case "bl": $logo['bottom'] = $padding; $logo['left'] = $padding; break; } $logo['opacity'] = 0.4; $logo['linkUrl'] = videoLink($video); $array['key'] = config("pak_license"); $array['plugins'] = $plugins; $array['canvas'] = $canvas; $array['clip'] = $clip; $array['contextMenu'][][config("pakplayer_contextmsg")] = ""; $array['logo'] = $logo; if (!$params['only_configs']) { return BASEURL . '/player/pak_player/' . $ppfile . '?config=' . json_encode($array); } else { return json_encode($array); } }
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 }