} $search = cbsearch::init_search($type); $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) {
function content_55e44441c21315_45821929($_smarty_tpl) { if (!is_callable('smarty_modifier_replace')) { include '/var/www/includes/smartyv3/plugins/modifier.replace.php'; } ?> <script> var baseurl = '<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> '; var imageurl = '<?php echo $_smarty_tpl->tpl_vars['imageurl']->value; ?> '; </script> <script type="text/javascript"> var embedPlayerWidth = '<?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->configs['embed_player_width']; ?> '; var embedPlayerHeight = '<?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->configs['embed_player_height']; ?> '; var autoPlayEmbed = '<?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->configs['autoplay_embed']; ?> '; var embed_type = '<?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->configs['embed_type']; ?> '; function updateEmbed(width,height,autoplay) { $('#embed_code').val( $('#embed_code').val().replace(/width=\"([0-9]+)\"/g,'width="'+width+'"') ); $('#embed_code').val( $('#embed_code').val().replace(/height=\"([0-9]+)\"/g,'height="'+height+'"') ); $('#embed_code').val( $('#embed_code').val().replace(/width=([0-9]+)/g,'width='+width) ); $('#embed_code').val( $('#embed_code').val().replace(/height=([0-9]+)/g,'height='+height+'') ); } function switchEmbedCode(type) { if(embed_type==type) return false; else { embed_type = type; var alt_embed =$('#alternate_embed_code').val(); $('#alternate_embed_code').val($('#embed_code').val()); $('#embed_code').val(alt_embed); } } </script> <!-- Including JS Files--> <?php $_smarty_tpl->tpl_vars['type'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['type']->_loop = false; $_from = $_smarty_tpl->tpl_vars['Cbucket']->value->JSArray; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['type']->key => $_smarty_tpl->tpl_vars['type']->value) { $_smarty_tpl->tpl_vars['type']->_loop = true; ?> <?php $_smarty_tpl->tpl_vars['scope'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['scope']->_loop = false; $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['type']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['scope']->key => $_smarty_tpl->tpl_vars['scope']->value) { $_smarty_tpl->tpl_vars['scope']->_loop = true; $_smarty_tpl->tpl_vars['file']->value = $_smarty_tpl->tpl_vars['scope']->key; ?> <?php echo include_js(array('type' => $_smarty_tpl->tpl_vars['scope']->value, 'file' => $_smarty_tpl->tpl_vars['file']->value), $_smarty_tpl); ?> <?php } } ?> <!-- Including JS Files--> <script type="text/javascript"> callURLParser(); </script> <!-- Including Plugin Headers --> <?php $_smarty_tpl->tpl_vars['type'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['type']->_loop = false; $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['Cbucket']->value->header_files; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['type']->key => $_smarty_tpl->tpl_vars['type']->value) { $_smarty_tpl->tpl_vars['type']->_loop = true; $_smarty_tpl->tpl_vars['file']->value = $_smarty_tpl->tpl_vars['type']->key; ?> <?php echo include_header(array('file' => $_smarty_tpl->tpl_vars['file']->value, 'type' => $_smarty_tpl->tpl_vars['type']->value), $_smarty_tpl); ?> <?php } ?> <!-- Ending Plugin Headers --> <?php if (@constant('THIS_PAGE') == 'upload') { ?> <link href="<?php echo $_smarty_tpl->tpl_vars['js']->value; ?> /uploadify/uploadify.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['js']->value; ?> /uploadify/swfobject.js"></script> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['js']->value; ?> /uploadify/jquery.uploadify.v2.1.4.js"></script> <script type="text/javascript"> var jsURL = '<?php echo $_smarty_tpl->tpl_vars['js']->value; ?> '; var uploadError = false; var file_name = '<?php echo $_smarty_tpl->tpl_vars['file_name']->value; ?> '; var lang = new Array(); lang['saveData'] = '<?php echo smarty_lang(array('code' => 'save_data'), $_smarty_tpl); ?> '; lang['savingData'] = '<?php echo smarty_lang(array('code' => 'saving'), $_smarty_tpl); ?> '; lang['remoteUploadFile'] = '<?php echo smarty_lang(array('code' => "remote_upload_file"), $_smarty_tpl); ?> '; lang['upload_video_button'] = '<?php echo smarty_lang(array('code' => "upload_video_button"), $_smarty_tpl); ?> '; var fileExt = '<?php echo smarty_modifier_replace($_smarty_tpl->tpl_vars['Cbucket']->value->list_extensions(), ",", ";"); ?> '; var uploadSwfPath = '<?php echo $_smarty_tpl->tpl_vars['uploaderDetails']->value['uploadSwfPath']; ?> '; var uploadScriptPath = '<?php echo $_smarty_tpl->tpl_vars['uploaderDetails']->value['uploadScriptPath']; ?> '; var time_stamp = <?php echo time(); ?> ; function show_error(msg,ID,fade) { $('#file_uploads'+ID+' .percentage') .after('<div class=\"uploadErrorDiv\"><div class=\"uploadErrorMsg\">'+msg+'<\/div><\/div>'); if(fade){$('.uploadSuccessDiv').delay(3000).fadeOut('slow');} } function show_message(msg,ID,fade) { $('#uploadForm'+ID) .prepend('<div class=\"uploadSuccessDiv\"><div class=\"uploadSuccessMsg\">'+msg+'<\/div><\/div>'); if(fade){$('.uploadSuccessDiv').delay(3000).fadeOut('slow');} } function doUpdateVideo(formId,ID) { var formObjectData = $(formId).serialize(); //alert(serializedData); $('#updateVideoDataLoading').html('<img src="'+imageurl+'/ajax-loader.gif" />'); $('#cbSubmitUpload'+ID) .attr('disabled','disabled') .attr("value",lang.savingData) .attr("onClick","return false;"); $.post( baseurl+'/actions/file_uploader.php',formObjectData,function(data) { if(data.msg) show_message(data.msg,ID,true); if(data.error) show_error(data.error,ID,true); $('#updateVideoDataLoading').empty(); $('#cbSubmitUpload'+ID) .removeAttr("disabled") .attr("value",lang.saveData) .attr("onClick","doUpdateVideo('#uploadForm"+ID+"','"+ID+"')") },"json" ) } $(document).ready(function() { var instanceNumber = 0; function showUploadify(object) { $(object).uploadify({ 'uploader' : uploadSwfPath, 'scriptAccess' : 'always', 'script' : uploadScriptPath, 'cancelImg' : imageurl+'/cancel_upload.png', 'auto' : true, 'removeCompleted' : false, 'displayData' : 'both', 'fileExt' : fileExt, 'multi' : true, 'fileDesc' : 'Video Files', 'buttonText' : lang.upload_video_button, 'queueID' : 'fileUploadQueue', 'queueLimit' : 2, 'onOpen' : function(event,ID,fileObj) { uploadError = false; filename = new Date().getTime() + Math.round((99977 - 10016) * Math.random() + 1) ; $.ajax({ url: baseurl+'/actions/file_uploader.php', type: "POST", data:({"getForm":"get_form","title":fileObj.name,"objId":ID}), dataType: "text", success: function(data) { if(!uploadError) { $('#file_uploads'+ID).append(data); } } }); return true; }, 'onComplete' : function(event, ID, fileObj, response, data) { var resObj = eval('(' + response + ')'); var vid = ""; if(resObj.success=='yes') { var file_name = resObj.file_name; $.ajax({ url: baseurl+'/actions/file_uploader.php', type: "POST", data:({"insertVideo":"yes","title":fileObj.name,"file_name":file_name,'time_stamp' : time_stamp}), dataType: "text", success: function(data) { if(data.error) { show_error(data.error,ID,true); }else { vid = data.videoid; $("#uploadForm"+ID+" #title").after('<input type="hidden" name="videoid" value="'+vid+'" id="videoid" />') .after('<input type="hidden" name="updateVideo" value="yes" id="updateVideo" />'); $('#cbSubmitUpload'+ID) .before('<span id="updateVideoDataLoading" style="margin-right:5px"></span>') .removeAttr("disabled") .attr("value",lang.saveData) .attr("onClick","doUpdateVideo('#uploadForm"+ID+"','"+ID+"')"); doUpdateVideo('#uploadForm'+ID,ID); } } }); }else { $("#upload_form"+ID).empty().remove(); show_error(resObj.error,ID,false); uploadError = true; return false; } } }); } showUploadify('#file_uploads'); }); </script> <?php } else { ?> <script type="text/javascript"> window.onload = function() { <?php if ($_smarty_tpl->tpl_vars['total_quicklist']->value) { ?> load_quicklist_box(); <?php } ?> ini_cookies(); } </script> <?php } ?> <?php if (@constant('THIS_PAGE') == 'photo_upload') { ?> <link href="<?php echo $_smarty_tpl->tpl_vars['js']->value; ?> /uploadify/uploadify.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['js']->value; ?> /uploadify/swfobject.js"></script> <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['js']->value; ?> /uploadify/jquery.uploadify.v2.1.4.js"></script> <script type="text/javascript" language="javascript"> fileExt = '<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->extensions(); ?> ', lang = new Array(), pData = new Array(), ajaxImage = '<img src="'+imageurl+'/ajax-loader.gif" style="vertical-align:middle;" /> ', uploadError = false; <?php if ($_GET['collection']) { ?> <?php if (isset($_smarty_tpl->tpl_vars['cid'])) { $_smarty_tpl->tpl_vars['cid'] = clone $_smarty_tpl->tpl_vars['cid']; $_smarty_tpl->tpl_vars['cid']->value = $_smarty_tpl->tpl_vars['cbphoto']->value->decode_key($_GET['collection']); $_smarty_tpl->tpl_vars['cid']->nocache = null; $_smarty_tpl->tpl_vars['cid']->scope = 0; } else { $_smarty_tpl->tpl_vars['cid'] = new Smarty_variable($_smarty_tpl->tpl_vars['cbphoto']->value->decode_key($_GET['collection']), null, 0); } ?> <?php if ($_smarty_tpl->tpl_vars['cbphoto']->value->is_addable($_smarty_tpl->tpl_vars['cid']->value)) { ?> collectionID = '<?php echo $_smarty_tpl->tpl_vars['cid']->value; ?> '; <?php } } ?> lang['browsePhrase'] = '<?php echo smarty_lang(array('code' => "browse_photos"), $_smarty_tpl); ?> '; lang['saveData'] = "<?php echo smarty_lang(array('code' => 'save_data'), $_smarty_tpl); ?> "; lang['savingData'] = "<?php echo smarty_lang(array('code' => 'saving'), $_smarty_tpl); ?> "; lang['upPhoto'] = "<?php echo smarty_lang(array('code' => 'update_photo'), $_smarty_tpl); ?> "; var uploadSwfPath = '<?php echo $_smarty_tpl->tpl_vars['photoUploaderDetails']->value['uploadSwfPath']; ?> '; var uploadScriptPath = '<?php echo $_smarty_tpl->tpl_vars['photoUploaderDetails']->value['uploadScriptPath']; ?> '; function photoMessage(message,ID,fade) { if(document.getElementById(ID+"Message")) $("#"+ID+"Message").children(":first-child").html(message).end().fadeIn('slow'); else { $("#Form"+ID).before('<div id=\"'+ID+'Message\" class=\"uploadSuccessDiv\"><div class=\"uploadSuccessMsg\">'+message+'<\/div><\/div>'); } if(fade) $("#"+ID+"Message").delay(300).fadeOut('slow'); } function photoError(message,ID,fade) { if(document.getElementById(ID+"Error")) $("#"+ID+"Error").children(":first-child").html(message).end().fadeIn('slow'); else { $("#Form"+ID) .before('<div id=\"'+ID+'Error\" class=\"uploadErrorDiv\"><div class=\"uploadErrorMsg\">'+message+'<\/div><\/div>'); } if(fade) $("#"+ID+"Error").delay(3000).fadeOut('slow'); } function QueueLimitError(message,fade) { $("#photoUploadQueue") .before('<div id=\"QueueError\" style=\"margin-top:6px;\" class=\"uploadErrorDiv\"><div class=\"uploadErrorMsg\">'+message+'<\/div><\/div>'); if(fade) $("#QueueError").delay(5000).fadeOut('slow'); } function insertAjaxPhoto(ID,filename,extension,server_url,folder) { var photoFields = $("#Form"+ID).serialize(); $.ajax({ url : baseurl+'/actions/photo_uploader.php', type : 'POST', dataType : 'json', data : photoFields+"&filename="+filename+"&ext="+extension+"&insertPhoto=yes&server_url="+server_url+ "&folder="+folder, beforeSend : function() { $("#cbSubmitUpload"+ID).html(ajaxImage+lang.savingData).attr('disabled','disabled'); }, success : function(data) { if(data.error) { photoError(data.error,ID,true); $("#cbSubmitUpload"+ID).html("Save Photo") .removeAttr('disabled').attr('onClick','insertAjaxPhoto("'+ID+'","'+filename+'","'+extension+'");'); } if(data.success) { photoMessage(data.success,ID,true); showPhotoPreview(ID,data.photoPreview); $("<input />").attr({ 'id' : 'photo_id', 'name' : 'photo_id', 'value' : data.photoID, 'type' : 'hidden' }).prependTo('#Form'+ID); $("#cbSubmitUpload"+ID).html(lang.upPhoto) .removeAttr('disabled').attr('onClick','updateAjaxPhoto("'+ID+'");'); } } }) } function updateAjaxPhoto(ID) { var updateFields = $("#Form"+ID).serialize(); $.ajax({ url : baseurl+'/actions/photo_uploader.php', type : 'POST', dataType : 'json', data : updateFields+"&updatePhoto=yes", beforeSend : function() { $("#cbSubmitUpload"+ID).html(ajaxImage+lang.upPhoto).attr('disabled','disabled'); }, success : function(data) { if(data.error) { photoError(data.error,ID,true); $("#cbSubmitUpload"+ID).removeAttr('disabled').html(lang.upPhoto); } if(data.success) { photoMessage(data.success,ID,true); $("#Form"+ID).hide(); $("#cbSubmitUpload"+ID).removeAttr('disabled').html(lang.upPhoto); if(!document.getElementById("toggle"+ID)) { $("<a></a>") .addClass('reUpdateButton') .attr({ "id" : "toggle"+ID, "href" : "#reUpdate", "onClick" : "$('#Form"+ID+"').toggle(); return false;", "title" : "Toggle Photo Form" }).html('Re-'+lang.upPhoto).appendTo("#photo_uploads"+ID+" .percentage").fadeIn(350); } } } }) } function showPhotoPreview(ID,preview) { var object = $("#"+ID+"Preview"), parentObj = object.parent(); var FinalPreview = new Image(); FinalPreview.src = preview; $(FinalPreview).load(function() { object.hide(); $("<img />") .addClass(object.attr('class')) .attr({ "id" : "FinalPreview"+ID, "src" : preview }).appendTo(parentObj).fadeIn('normal'); }); } function update_collection_selection(obj) { if($("#CollectionResult").css('display') == 'block') $("#CollectionResult").slideUp('fast'); var This = $(obj), thisObj = obj; This.attr('disabled','disabled'); This.after(ajaxImage); collectionID = thisObj.value; setTimeout(function(){ This.next().remove(); $("#CollectionResult").html("<div class='msg'>Collection Selected</div>").slideDown(350); This.removeAttr('disabled'); },1000); } $(document).ready(function() { function photoUploadify(object) { $(object).uploadify( { 'uploader' : uploadSwfPath, 'script' : uploadScriptPath, 'scriptAccess' : 'always', 'fileDataName' : 'photoUpload', 'cancelImg' : imageurl+'/cancel_upload.png', 'auto' : true, 'removeCompleted' : false, 'displayData' : 'both', 'fileExt' : fileExt, 'multi' : true, 'queueSizeLimit': '<?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->configs['photo_multi_upload']; ?> ', 'fileDesc' : 'Photo Files', 'buttonText' : lang.browsePhrase, 'queueID' : 'photoUploadQueue', 'sizeLimit' : '<?php echo $_smarty_tpl->tpl_vars['cbphoto']->value->max_file_size; ?> ', 'onSelect' : function(event,ID,fileObj) { uploadError = false; $.ajax({ url : baseurl+'/actions/photo_uploader.php', dataType : 'json', type : 'POST', data : ({ "photoForm":"yes" , "objID":ID , "name":fileObj.name , "collection":collectionID }), success : function(data) { if(!uploadError) $("#photo_uploads"+ID).append(data['form']); } }); }, 'onComplete' : function(event,ID,fileObj,response,data) { var resObj = $.parseJSON(response); if(resObj.success == "yes") { insertAjaxPhoto(ID,resObj.filename,resObj.extension,resObj.server_url,resObj.folder); } }, 'onQueueFull' : function(event,queueSizeLimit) { QueueError = "I'm stuffed, "+queueSizeLimit+" is my limit. Thanks."; QueueLimitError(QueueError,true); return false; }, 'onError' : function(event,ID,fileObj,errorObj) { uploadError = true; } }); } photoUploadify('#photo_uploads'); }); </script> <?php } ?> <?php if (@constant('THIS_PAGE') == 'view_item') { ?> <script type="text/javascript"> var Seo = '<?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->configs['seo']; ?> '; onReload_item(); </script> <?php } ?> <?php if (@constant('THIS_PAGE') == 'watch_video' || $_smarty_tpl->tpl_vars['object']->value['videoid']) { ?> <?php if ($_smarty_tpl->tpl_vars['object']->value['videoid']) { if (isset($_smarty_tpl->tpl_vars['vdo'])) { $_smarty_tpl->tpl_vars['vdo'] = clone $_smarty_tpl->tpl_vars['vdo']; $_smarty_tpl->tpl_vars['vdo']->value = $_smarty_tpl->tpl_vars['object']->value; $_smarty_tpl->tpl_vars['vdo']->nocache = null; $_smarty_tpl->tpl_vars['vdo']->scope = 0; } else { $_smarty_tpl->tpl_vars['vdo'] = new Smarty_variable($_smarty_tpl->tpl_vars['object']->value, null, 0); } ?> <?php } ?> <meta property="og:title" content="<?php echo $_smarty_tpl->tpl_vars['vdo']->value['title']; ?> " /> <meta property="og:description" content="<?php echo preg_replace('!<[^>]*?>!', ' ', description($_smarty_tpl->tpl_vars['vdo']->value['description'])); ?> " /> <meta property="og:image" content="<?php echo getSmartyThumb(array('vdetails' => $_smarty_tpl->tpl_vars['vdo']->value), $_smarty_tpl); ?> " /> <?php if ($_smarty_tpl->tpl_vars['Cbucket']->value->configs['facebook_embed'] == 'yes') { ?> <meta property="og:type" content="video"> <meta property="og:video" content='<?php echo fb_embed_video(array('video' => $_smarty_tpl->tpl_vars['vdo']->value), $_smarty_tpl); ?> '> <meta property="og:video:height" content="259" /> <meta property="og:video:width" content="398" /> <meta property="og:video:type" content="application/x-shockwave-flash"> <?php } ?> <meta property='og:url' content='<?php echo videoSmartyLink(array('vdetails' => $_smarty_tpl->tpl_vars['vdo']->value), $_smarty_tpl); ?> '/> <meta property='og:site_name' content='<?php echo $_smarty_tpl->tpl_vars['website_title']->value; ?> '/> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['object']->value['photo_id']) { ?> <meta property="og:title" content="<?php echo $_smarty_tpl->tpl_vars['object']->value['photo_title']; ?> " /> <meta property="og:description" content="<?php echo description($_smarty_tpl->tpl_vars['object']->value['photo_description']); ?> " /> <meta property="og:image" content="<?php echo get_image_file(array('details' => $_smarty_tpl->tpl_vars['object']->value, 'size' => 'm', 'output' => 'non_html', 'alt' => $_smarty_tpl->tpl_vars['object']->value['photo_title']), $_smarty_tpl); ?> " /> <meta name="medium" content="image" /> <?php } ?> <?php if (@constant('THIS_PAGE') == 'view_channel') { ?> <meta property="og:title" content="<?php echo $_smarty_tpl->tpl_vars['user']->value['username']; ?> " /> <?php } ?> <?php if (@constant('THIS_PAGE') == 'videos') { ?> <meta property="og:description" content="this is a videos page of ClipBucket"/> <?php } ?> <script> $(function() { /*$( ".date_field" ).datepicker({ dateFormat: 'yy-mm-dd', changeMonth: true, changeYear: true, yearRange : "1901 : c" });*/ }); </script> <?php echo ANCHOR(array('place' => 'cb_head'), $_smarty_tpl); ?> <!-- ClipBucket version <?php echo $_smarty_tpl->tpl_vars['Cbucket']->value->cbinfo['version']; ?> --><?php }
function content_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_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_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 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_56afda72c83528_08455862($_smarty_tpl) { ?> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['cb_vjs_player_url']->value; ?> /css/video-js.css" /> <link href="<?php echo $_smarty_tpl->tpl_vars['cb_vjs_player_url']->value; ?> /css/cb_vjs_res.css" rel="stylesheet" type="text/css" /> <link href='//fonts.googleapis.com/css?family=PT+Sans:400,700,700italic,400italic' rel='stylesheet' type='text/css'> <script src="<?php echo $_smarty_tpl->tpl_vars['cb_vjs_player_url']->value; ?> /js/video.dev.js"></script> <script src="<?php echo $_smarty_tpl->tpl_vars['cb_vjs_player_url']->value; ?> /js/cb_vjs_res.js"></script> <video id="cb_video_js" class="video-js vjs-default-skin" width="<?php echo $_smarty_tpl->tpl_vars['width']->value; ?> " height="<?php echo $_smarty_tpl->tpl_vars['height']->value; ?> " poster="<?php echo getSmartyThumb(array('vdetails' => $_smarty_tpl->tpl_vars['vdata']->value, 'size' => '500x283'), $_smarty_tpl); ?> " > <?php $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['file']->_loop = false; $_from = $_smarty_tpl->tpl_vars['video_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 = end($_smarty_tpl->tpl_vars['quality']->value); $_smarty_tpl->tpl_vars['quality']->nocache = null; $_smarty_tpl->tpl_vars['quality']->scope = 0; } else { $_smarty_tpl->tpl_vars['quality'] = new Smarty_variable(end($_smarty_tpl->tpl_vars['quality']->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); $_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), 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 = $_smarty_tpl->tpl_vars['quality']->value[0]; $_smarty_tpl->tpl_vars['quality']->nocache = null; $_smarty_tpl->tpl_vars['quality']->scope = 0; } else { $_smarty_tpl->tpl_vars['quality'] = new Smarty_variable($_smarty_tpl->tpl_vars['quality']->value[0], null, 0); } ?> <source src='<?php echo $_smarty_tpl->tpl_vars['file']->value; ?> ' type="video/mp4" data-res="<?php echo $_smarty_tpl->tpl_vars['quality']->value; ?> " /> <?php } ?> <p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p> </video> <script type="text/javascript"> var vid_id = "<?php echo $_smarty_tpl->tpl_vars['vdata']->value['videoid']; ?> "; var videotitle = "<?php echo $_smarty_tpl->tpl_vars['vdata']->value['title']; ?> "; var uploader = "<?php echo $_smarty_tpl->tpl_vars['vdata']->value['username']; ?> "; var branding_logo = "<?php echo $_smarty_tpl->tpl_vars['cb_logo']->value; ?> "; var product_link = "<?php echo $_smarty_tpl->tpl_vars['player_config']->value['player_logo_url']; ?> "; var show_logo = true; // check if plugin is installed and call function if (!(typeof(extract_yt_url_ajax)=='undefined')) { var the_data = extract_yt_id('<?php echo $_smarty_tpl->tpl_vars['vdata']->value['embed_code']; ?> ',vid_id); } var cb_player_setup = { plugins : { resolutionSelector : { // Pass any options here default_res : 'HD' // Define an on.ready function } }, "techOrder" : ['html5', 'flash'], "controls": true, "autoplay": false, "preload": "auto", "vid_id" : vid_id, "videotitle" : videotitle, "uploader" : uploader, "branding_logo" : branding_logo, "show_logo" : show_logo, "product_link" : product_link, "data" : the_data }; //Initializing var player = videojs('cb_video_js', cb_player_setup , function(){ var cb_video_js = this; }); </script> <script src="<?php echo $_smarty_tpl->tpl_vars['cb_vjs_player_url']->value; ?> /js/cb_vjs_custom.js"></script> <?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 content_56afd77ab2a977_56293857($_smarty_tpl) { if (!is_callable('smarty_modifier_truncate')) { include '/var/www/html/includes/smartyv3/plugins/modifier.truncate.php'; } if (!is_callable('smarty_modifier_date_format')) { include '/var/www/html/includes/smartyv3/plugins/modifier.date_format.php'; } ?> <div class="heading"> <h2>ClipBucket V2.7 Dashboard</h2> </div> <div class="row"> <div class="col-md-6"> <div class="tabbable"> <ul class="nav nav-tabs" id="myTab"> <li class="active"> <a data-toggle="tab" href="#statistics"> <h5>Statistics</h5> </a> </li> <li class=""> <a data-toggle="tab" href="#nusers"> <h5>New Users</h5> </a> </li> <li class=""> <a data-toggle="tab" href="#mvideos"> <h5>Most Viewed Videos</h5> </a> </li> <li class=""> <a data-toggle="tab" href="#fobjects"> <h5>Flagged Objects</h5> </a> </li> </ul> <div class="tab-content"> <div id="statistics" class="tab-pane active"> <div class="tabbable tabs-left"> <ul class="nav nav-tabs" id="myTab1"> <li class="active"> <a data-toggle="tab" href="#sweek"> This Week </a> </li> <li class=""> <a data-toggle="tab" href="#smonth"> This Month </a> </li> <li class=""> <a data-toggle="tab" href="#soday"> Today </a> </li> </ul> <div class="tab-content"> <div id="sweek" class="tab-pane active"> <div id="weekly_stats" class="flot_chart1"><img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div> </div> <div id="smonth" class="tab-pane"> <div id="monthly_stats" class="flot_chart1"><img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div> </div> <div id="soday" class="tab-pane"> <div id="daily_stats" class="flot_chart1"> <img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/> </div> </div> </div> </div> </div> <div id="nusers" class="tab-pane"> <div class="tabbable tabs-left"> <ul class="nav nav-tabs" id="myTab1"> <li class="active"> <a data-toggle="tab" href="#uweek"> This Week </a> </li> <li class=""> <a data-toggle="tab" href="#umonth"> This Month </a> </li> <li class=""> <a data-toggle="tab" href="#utoday"> Today </a> </li> </ul> <div class="tab-content"> <div id="uweek" class="tab-pane active"> <div id="weekly_users" class="flot_chart1"><img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div> </div> <div id="umonth" class="tab-pane"> <div id="monthly_users" class="flot_chart1"><img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div> </div> <div id="utoday" class="tab-pane"> <div id="daily_users" class="flot_chart1"> <img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div> </div> </div> <div class="users marginTopLarge"> <?php if ($_smarty_tpl->tpl_vars['users']->value) { ?> <?php $_smarty_tpl->tpl_vars['u'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['u']->_loop = false; $_from = $_smarty_tpl->tpl_vars['users']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['u']->key => $_smarty_tpl->tpl_vars['u']->value) { $_smarty_tpl->tpl_vars['u']->_loop = true; ?> <div class="row"> <div class="col-md-12"> <div class="row marginBottom"> <div class="col-md-2"> <a href="view_user.php?uid=<?php echo $_smarty_tpl->tpl_vars['u']->value['userid']; ?> "> <img src="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->getUserThumb($_smarty_tpl->tpl_vars['u']->value, 'small'); ?> " class="img-thumbnail oneUserImage" /> </a> </div> <div class="col-md-10"> <a href="view_user.php?uid=<?php echo $_smarty_tpl->tpl_vars['u']->value['userid']; ?> " target="_blank"><?php echo $_smarty_tpl->tpl_vars['u']->value['username']; ?> </a>(<?php echo $_smarty_tpl->tpl_vars['u']->value['email']; ?> ) <button id="dropdownMenu1" class="btn btn-primary btn-xs dropdown-toggle pull-right" data-toggle="dropdown"> <i class="glyphicon glyphicon-cog"></i><i class="icon-angle-down icon-on-right"></i> </button> <ul class="dropdown-menu pull-right" aria-labelledby="dropdownMenu1" role="menu"> <?php if ($_smarty_tpl->tpl_vars['u']->value['ban_status'] == 'yes') { ?> <li><a role="menuitem" tabindex="-1" href="?unban=<?php echo $_smarty_tpl->tpl_vars['u']->value['userid']; ?> ">Unban Member</a></li> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['u']->value['ban_status'] == 'no') { ?> <li><a role="menuitem" tabindex="-1" href="?ban=<?php echo $_smarty_tpl->tpl_vars['u']->value['userid']; ?> ">Ban Member</a></li> <?php } ?> <li><a role="menuitem" tabindex="-1" href="view_user.php?uid=<?php echo $_smarty_tpl->tpl_vars['u']->value['userid']; ?> ">Edit</a></li> <li><a role="menuitem" tabindex="-1" href="members.php?deleteuser=<?php echo $_smarty_tpl->tpl_vars['u']->value['userid']; ?> ">Delete</a></li> </ul> </div> </div> </div> </div> <?php } ?> <?php } ?> </div> </div> </div> <div id="mvideos" class="tab-pane"> <div class="tabbable tabs-left"> <ul class="nav nav-tabs" id="myTab1"> <li class="active"> <a data-toggle="tab" href="#vweek"> This Week </a> </li> <li class=""> <a data-toggle="tab" href="#vmonth"> This Month </a> </li> <li class=""> <a data-toggle="tab" href="#vtoday"> Today </a> </li> </ul> <div class="tab-content"> <div id="vweek" class="tab-pane active"> <div id="weekly_users" class="flot_chart1"><img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div> </div> <div id="vmonth" class="tab-pane"> <div id="monthly_users" class="flot_chart1"><img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div> </div> <div id="vtoday" class="tab-pane"> <div id="daily_users" class="flot_chart1"> <img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div> </div> </div> </div> <div class="vids marginTopLarge"> <?php if ($_smarty_tpl->tpl_vars['videos']->value) { ?> <?php $_smarty_tpl->tpl_vars['video'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['video']->_loop = false; $_from = $_smarty_tpl->tpl_vars['videos']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['video']->key => $_smarty_tpl->tpl_vars['video']->value) { $_smarty_tpl->tpl_vars['video']->_loop = true; ?> <div class="row"> <div class="col-md-3"> <img src="<?php echo getSmartyThumb(array('vdetails' => $_smarty_tpl->tpl_vars['video']->value), $_smarty_tpl); ?> " height="80" class="img-thumbnail" id="thumbs_<?php echo $_smarty_tpl->tpl_vars['video']->value['videoid']; ?> " title="<?php echo $_smarty_tpl->tpl_vars['video']->value['title']; ?> "/> </div> <div class="col-md-9"> <a href="<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> /watch_video.php?v=<?php echo $_smarty_tpl->tpl_vars['video']->value['videokey']; ?> "target="_blank"> <?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['video']->value['title'], 45); ?> </a> <strong class="btn btn-primary btn-xs pull-right"> <?php echo smarty_lang(array('code' => 'views'), $_smarty_tpl); ?> : <?php echo format_number($_smarty_tpl->tpl_vars['video']->value['views']); ?> </strong> </div> </div> <hr> <?php } ?> <?php } ?> </div> </div> <div id="fobjects" class="tab-pane"> <div class="tabbable tabs-left"> <ul class="nav nav-tabs" id="myTab1"> <li class="active"> <a data-toggle="tab" href="#fweek"> This Week </a> </li> <li class=""> <a data-toggle="tab" href="#fmonth"> This Month </a> </li> <li class=""> <a data-toggle="tab" href="#ftoday"> Today </a> </li> </ul> <div class="tab-content"> <div id="fweek" class="tab-pane active"> <div id="weekly_users" class="flot_chart1"><img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div> </div> <div id="fmonth" class="tab-pane"> <div id="monthly_users" class="flot_chart1"><img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div> </div> <div id="ftoday" class="tab-pane"> <div id="daily_users" class="flot_chart1"> <img class="loading-image" src="./styles/cb_2014/images/ajax-loader.gif"/></div> </div> </div> </div> <div class="flaggedUser marginTopLarge"> <?php if ($_smarty_tpl->tpl_vars['flaggedUsers']->value) { ?> <?php $_smarty_tpl->tpl_vars['u'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['u']->_loop = false; $_from = $_smarty_tpl->tpl_vars['flaggedUsers']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['u']->key => $_smarty_tpl->tpl_vars['u']->value) { $_smarty_tpl->tpl_vars['u']->_loop = true; ?> <div class="row"> <div class="col-md-3"> <a href="view_user.php?uid=<?php echo $_smarty_tpl->tpl_vars['u']->value['userid']; ?> "> <img src="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->getUserThumb($_smarty_tpl->tpl_vars['u']->value, 'small'); ?> " class="oneUserImage" width="85" /> </a> </div> <div class="col-md-6"> (<?php echo $_smarty_tpl->tpl_vars['u']->value['email']; ?> ) <?php echo $_smarty_tpl->tpl_vars['u']->value['username']; ?> </div> <div class="col-md-7"> <label class="label label-danger">Last Active <?php echo niceTime($_smarty_tpl->tpl_vars['u']->value['last_active']); ?> </label> <label class="label label-primary"> <?php echo smarty_lang(array('code' => 'Flags'), $_smarty_tpl); ?> : <?php echo $_smarty_tpl->tpl_vars['u']->value['flag_type']; ?> </label> </div> </div> <?php } ?> <?php } ?> </div> </div> <div class="widget-main"> <hr> <table class="table table-stripped table-bordered"> <tr> <td> <div class="stats_subitem_d">Total Videos : <strong><?php ob_start(); echo get_videos(array('count_only' => 'yes'), $_smarty_tpl); echo number_format(ob_get_clean()); ?> </strong> </div> </td> <td> <div class="stats_subitem_d">Total Groups : <strong><?php echo get_groups(array('count_only' => 'yes'), $_smarty_tpl); ?> </strong> </div> </td> <td> <div class="stats_subitem_d">Total Collection : <strong><?php echo get_collections(array('count_only' => 'yes'), $_smarty_tpl); ?> </strong> </div> </td> <td> <div class="stats_subitem_d">Total Users : <strong><?php echo get_users(array('count_only' => 'yes'), $_smarty_tpl); ?> </strong> </div> </td> <td> <div class="stats_subitem_d">Total Photos: <strong><?php echo get_photos(array('count_only' => 'yes'), $_smarty_tpl); ?> </strong> </div> </td> </table> </div> </div> </div> </div> <div class="col-md-6"> <div class="widget-box"> <div class="widget-header header-color-red"> <h5><i class="glyphicon glyphicon-book"></i>ClipBucket News</h5> <div class="widget-toolbar"> <a href="#" data-action="collapse"> <i class="icon-chevron-down"></i> </a> <a href="#" data-action="close"> <i class="icon-remove"></i> </a> </div> </div> <div class="widget-body"> <div id="clipbucket_news" class="widget-main" style="height:419px;overflow:auto"> </div> </div> </div> </div> <hr> <!-- <div class="tabbable tabs-left" > --> <div class=" col-md-8 todotab" > <ul class="nav nav-tabs" id="myTab" > <li class="active"> <a data-toggle="tab" href="#todolist"> <h5><i class="glyphicon glyphicon-list-alt"></i> ToDo List</h5> </a> </li> <li class=""> <a data-toggle="tab" href="#pnotes"> <h5><i class="glyphicon glyphicon-pencil"></i> Personal Notes</h5> </a> </li> <li class=""> <a data-toggle="tab" href="#rcomments"> <h5><i class="glyphicon glyphicon-comment"></i> Recent Comments</h5> </a> </li> </ul> <div class="tab-content"> <div id="todolist" class="tab-pane active"> <div class="widgetBox"> <div class="addTodo paddingRightSmall paddingLeftLarge marginBottomLarge"> <div class="row"> <div class="from-group col-md-10"> <input type="text" name="addTodo" class="form-control"> </div> <div class="from-group relative"> <div class="addTodoButton"> <button id="addTodo" class="btn btn-primary btn-sm">Add</button> </div> </div> </div> </div> <?php if (isset($_smarty_tpl->tpl_vars['todos'])) { $_smarty_tpl->tpl_vars['todos'] = clone $_smarty_tpl->tpl_vars['todos']; $_smarty_tpl->tpl_vars['todos']->value = $_smarty_tpl->tpl_vars['myquery']->value->get_todos(); $_smarty_tpl->tpl_vars['todos']->nocache = null; $_smarty_tpl->tpl_vars['todos']->scope = 0; } else { $_smarty_tpl->tpl_vars['todos'] = new Smarty_variable($_smarty_tpl->tpl_vars['myquery']->value->get_todos(), null, 0); } ?> <ul class="row todosList" id="note-<?php echo $_smarty_tpl->tpl_vars['the_note']->value['note_id']; ?> " > <?php $_smarty_tpl->tpl_vars['note'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['note']->_loop = false; $_from = $_smarty_tpl->tpl_vars['todos']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['note']->key => $_smarty_tpl->tpl_vars['note']->value) { $_smarty_tpl->tpl_vars['note']->_loop = true; ?> <li class="col-md-12"> <div class="col-md-12"> <p class="oneTodo paddingLeftSmall col-md-10" id="<?php echo $_smarty_tpl->tpl_vars['note']->value['todo_id']; ?> "> <?php echo $_smarty_tpl->tpl_vars['note']->value['todo']; ?> </p> <a href="#" class="btn btn-danger btn-xs delete">Delete</a> </div> </li> <?php } ?> </ul> </div> </div> <div id="pnotes" class="tab-pane"> <div class="widgetBox"> <div class="addNote form-group paddingRightSmall"> <textarea class="form-control" name="ntoe" id="note"></textarea> <div class="alignRight marginTopSmall"> <a href="#" id="add_new_note" class="btn btn-primary btn-xs">Add a note</a> </div> </div> <?php if (isset($_smarty_tpl->tpl_vars['notes'])) { $_smarty_tpl->tpl_vars['notes'] = clone $_smarty_tpl->tpl_vars['notes']; $_smarty_tpl->tpl_vars['notes']->value = $_smarty_tpl->tpl_vars['myquery']->value->get_notes(); $_smarty_tpl->tpl_vars['notes']->nocache = null; $_smarty_tpl->tpl_vars['notes']->scope = 0; } else { $_smarty_tpl->tpl_vars['notes'] = new Smarty_variable($_smarty_tpl->tpl_vars['myquery']->value->get_notes(), null, 0); } ?> <ul class="notesList row paddingRightSmall" id="note-<?php echo $_smarty_tpl->tpl_vars['the_note']->value['note_id']; ?> " > <?php $_smarty_tpl->tpl_vars['note'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['note']->_loop = false; $_from = $_smarty_tpl->tpl_vars['notes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['note']->key => $_smarty_tpl->tpl_vars['note']->value) { $_smarty_tpl->tpl_vars['note']->_loop = true; ?> <li class="col-md-4"> <div class=""> <p class="oneNote" id="<?php echo $_smarty_tpl->tpl_vars['note']->value['note_id']; ?> "> <?php echo $_smarty_tpl->tpl_vars['note']->value['note']; ?> <a href="#" class="delete">×</a> </p> </div> </li> <?php } ?> </ul> </div> </div> <div id="rcomments" class="tab-pane"> <div class="widget-box"> <div class="widget-header header-color-blue"> <h5>Recent Comments</h5> <div class="widget-toolbar"> <a href="#" data-action="collapse"> <i class="icon-chevron-down"></i> </a> <a href="#" data-action="close"> <i class="icon-remove"></i> </a> </div> </div> <div class="widget-body"> <div class="widget-main"> <div class="widget-box transparent"> <div class="widget-header widget-header-small"> </div> <div class="widget-body"> <div class="widget-body"> <div class="widget-main no-padding"> <div class="slimScrollDiv"> <?php if ($_smarty_tpl->tpl_vars['comments']->value) { ?> <?php $_smarty_tpl->tpl_vars['comment'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['comment']->_loop = false; $_from = $_smarty_tpl->tpl_vars['comments']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['comment']->key => $_smarty_tpl->tpl_vars['comment']->value) { $_smarty_tpl->tpl_vars['comment']->_loop = true; ?> <div class="itemdiv dialogdiv"> <?php $_smarty_tpl->tpl_vars['u'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['u']->_loop = false; $_from = $_smarty_tpl->tpl_vars['users']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['u']->key => $_smarty_tpl->tpl_vars['u']->value) { $_smarty_tpl->tpl_vars['u']->_loop = true; ?> <div class="user"> <img alt="Alexa's Avatar" src="<?php echo $_smarty_tpl->tpl_vars['userquery']->value->getUserThumb($_smarty_tpl->tpl_vars['u']->value, 'small'); ?> "> </div> <?php } ?> <div class="body"> <div class="time"> <i class="icon-time"></i> <span class="green"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['comment']->value['date_added']); ?> </span> </div> <div class="name"> <a href="#"><?php echo $_smarty_tpl->tpl_vars['comment']->value['anonym_name']; ?> </a> </div> <div class="text"><?php echo $_smarty_tpl->tpl_vars['comment']->value['comment']; ?> </div> <div class="tools"> <a href="#" class="btn btn-minier btn-info"> <i class="icon-only icon-share-alt"></i> </a> </div> </div> </div> <?php } ?> <?php } ?> </div> </div>/widget-main </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="well" style="margin-top: 14px;background:;border:1px solid rgba(128, 213, 255, 1);" > <h3>WHO WE ARE</h3> <p style="text-align:left;"><strong><a href="http://clip-bucket.com/" target="self">ClipBucket</a></strong> would not been possible without its team hardwork and determination for the betterment of the products quality and its services. We are proud that over _____ users are using worlds most popular open source video,audio and photo sharing script named <strong>ClipBucket</strong>. We are team who is determined to deliver the best features to the open source community. </p> <p style="text-align:left;margin-top:20px; "><strong>Clipbucket</strong> was made in the year 2006 with the idea to bring a better platform for organizations and companies interested in launching their own video,audio or photo sharing website. In every version our mission and goal is to simplify the technology by adopting new technological methods and techniques to cut down several frontend and backend issues faced. The idea is to give the user a chance to explore more with the flexibility of our product. We never compromise on our product interactivity. We always try to create a simple yet interactive and elegant design so that the user can have the best experience of the functions. With the improved social networking options like channels and groups. With ClipBucket’s unmatched quantifiability, users will stretch their applications from family videos to photo-albums. We started off as a paid product and later realized there is more power in going open-source and here we stand today <strong>#1</strong> video sharing and media management script in the industry.</p> <h3>OUR TEAM</h3> <p style="text-align:left;padding-bottom:20px;">However the team behind ClipBucket always kept their heads and nerves, though they faced many difficulties and problems in meeting the requirements. But team’s coordination and their creative techniques of solving issues and overcoming them with the best possible solution helped us in presenting Pakistan on international platform in the field of technology by bringing “Clip Bucket” A complete open source multimedia management script. </p> <div class="to_display"> <p>Founders <strong><a href="http://www.linkedin.com/profile/view?id=273050157" target="blank">Jahanzeb Hassan</a></strong> and <strong><a href="http://www.linkedin.com/profile/view?id=37419812" target="blank">Arslan Hassan</a></strong></p> <strong><a href="http://www.linkedin.com/profile/view?id=324544384" target="self">Fawaz Tahir</a></strong> - Web Application Team Lead<br> <strong><a href="http://www.linkedin.com/profile/view?id=78646794" target="self">Ruman Malik</a></strong> - Project Manager<br> <strong><a href="http://www.linkedin.com/profile/view?id=325944697" target="self">Muneeb</a></strong> - Mobile Application Team Lead<br> <strong><a href="http://www.linkedin.com/profile/view?id=324542682" target="self">Zomail</a></strong> - Sales and Support<br> <strong><a href="http://www.linkedin.com/profile/view?id=324542554" target="self">Shahzaib</a></strong> - Network Engineer<br> <strong><a href="http://www.linkedin.com/profile/view?id=324542025" target="self">Zunair</a></strong> - SEO and Publishing Manager<br> <br> <h5><strong>Kick-ass development team of <strong>ClipBucket</strong></strong></h5> <strong><a href="https://github.com/fahad-cb" target="self">Fahad Abbas</a></strong> - Project Head (Developer)<br> <strong><a href="https://github.com/imranhassan009" target="self">Imran Hassan</a></strong> - Web Developer<br> <strong><a href="https://github.com/shoaib-dev" target="self">Muhammad Shoaib</a></strong> - Web Services provider (Developer)<br> <strong><a href="https://github.com/awaistariq123" target="self">Awais Tariq</a></strong> - Video Converison Handler<br> <strong><a href="https://pk.linkedin.com/in/saqirzzq" target="self">Saaqib Razzaq</a></strong> - Web Developer<br> <strong><a href="https://github.com/jamilrehman" target="self">Jamil Rehman</a></strong> - Front end Developer (Head)<br> <strong><a href="https://github.com/rameez-anees" target="self">Rameez Anees</a></strong> - Front end Developer<br> <strong><a href="https://github.com/usman-des" target="self">Usman Afzal</a></strong> - Front end Developer<br> <strong><a href="https://github.com/epicPenguin" target="self">Muhammad Rizwan</a></strong> - Quality Assurance department<br><br><br> <h5><strong>We are from Pakistan with high heads and soft hearts</strong></h5> <p style="padding-bottom:20px;">Pakistan is always been in the news for the bad reasons and has been criticized by the rest of the world,even then the people of Pakistan are patriotic and stand united for the goodwill of their country.no matter how worst the situation gets the youth is eager enough to bring out the best in all the fields like media,communication, IT and science. IT industry is fast growing with a large potential and is regarded as a successful sector even in country’s worst financial crisis. as the IT industry in Pakistan is growing like wise the demand for the softwares and programmes has taken up a rapid growth. ClipBucket is one of the fastest and the most used media sharing script with all the latest features and enhancements in the social media. We as Pakistani feel proud on creating this product which will lead our country to the highest levels in the international market.</p> </div> <p><button id="addTodo" class="btn btn-primary btn-sm clip_read clip_hide" style="float:right;margin-right:10px;margin-top:-30px;">Read More</button></p> </div> <style type="text/css"> .to_display{ display: none; } .flot_chart1{ height: 200px; width: 400px; } .vids{ height: 250px; overflow-y: scroll; overflow-x: hidden; padding: 5px; } </style> <script type="text/javascript"> $( document ).ready(function() { $(".clip_read").click(function() { $(this).toggleClass('clip_hide'); if(!$(this).hasClass('clip_hide')) { $('.to_display').show(); $(".clip_read").text("Hide"); } else { $('.to_display').hide(); $(".clip_read").text("Read More"); } }); var baseurl="<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> "; $.ajax({ // url: baseurl+'/ajax.php', url:baseurl+'/ajax.php', type: "POST", dataType : 'text', data: { mode: "get_news"}, success : function(news){ $('#clipbucket_news').html(news) }, timeout : 5000, error : function(err) { $('#clipbucket_news').html(' <div align="center"><em><strong>Connect with Internet to get News</strong></em></div>')}, }); }); $(function() { var options = { series: { bars: { show: true, steps: true, barWidth: 0.5, align: "center", }, points: { show: true }, lines: { show: true } }, xaxis: { mode: "categories", tickLength: 0 }, yaxis: { alignTicksWithAxis: false }, grid: { hoverable: true, clickable: true, labelMargin: 30, borderWidth: 0 } }; var ChartsWorker = function(options){ this.options = options; this.getUsersStatistics = function(callback){ var self = this; var ajaxCall = $.ajax({ url: "charts/reports/dashboard/get_users_data.php", type: "POST", data:"videos=videos", dataType: "json", success: function(data){ callback.call(self, data); }, error: function() { //alert('error'); }, }); }; this.getVideosStatistics = function(callback){ var self = this; var ajaxCall = $.ajax({ url: "charts/reports/dashboard/get_videos_data.php", type: "POST", data:"videos=videos", dataType: "json", success: function(data){ callback.call(self, data); }, error: function() { //alert('error'); }, }); }; this.getFlaggedStatistics = function(callback){ var self = this; var ajaxCall = $.ajax({ url: "charts/reports/dashboard/get_flagged_objects_data.php", type: "POST", data:"videos=videos", dataType: "json", success: function(data){ callback.call(self, data); }, error: function() { //alert('error'); }, }); }; this.getOverallStatistics = function(callback){ var self = this; var ajaxCall = $.ajax({ url: "charts/reports/dashboard/get_total_status_data.php", type: "POST", data:"videos=videos", dataType: "json", success: function(data){ callback.call(self, data); }, error: function() { //alert('error'); }, }); }; }; var chartsWorker = new ChartsWorker(options); chartsWorker.getUsersStatistics(function(data){ var today = data.today; var week = data.this_week; var month = data.this_month; $.plot("#nusers #weekly_users", [week] , this.options); $.plot("#nusers #monthly_users", [month] , this.options); $.plot("#nusers #daily_users", [today], this.options); }); chartsWorker.getVideosStatistics(function(data){ var today = data.today; var week = data.this_week; var month = data.this_month; $.plot("#mvideos #weekly_users", [week] , this.options); $.plot("#mvideos #monthly_users", [month] , this.options); $.plot("#mvideos #daily_users", [today], this.options); }); chartsWorker.getFlaggedStatistics(function(data){ var today = data.today; var week = data.this_week; var month = data.this_month; $.plot("#fobjects #weekly_users", [week] , this.options); $.plot("#fobjects #monthly_users", [month] , this.options); $.plot("#fobjects #daily_users", [today], this.options); }); chartsWorker.getOverallStatistics(function(data){ var today = data.today; var week = data.this_week; var month = data.this_month; $.plot("#statistics #weekly_stats", [week] , this.options); $.plot("#statistics #monthly_stats", [month] , this.options); $.plot("#statistics #daily_stats", [today], this.options); }); // $.plot("#placeholder", data, options); var iteration = 0; function showTooltip(x, y, contents) { $('<div id="tooltip">' + contents + '</div>').css( { position: 'absolute', display: 'none', top: y + 5, left: x + 5, border: '1px solid #fdd', padding: '2px', 'background-color': '#fee', opacity: 0.80 }).appendTo("body").fadeIn(200); } var previousPoint = null; function tooltip(chart_id,tooltip_id){ $(chart_id).bind("plothover", function (event, pos, item) { $("#x").text(pos.x.toFixed(2)); $("#y").text(pos.y.toFixed(2)); if ($(tooltip_id).is(':checked')) { if (item) { if (previousPoint != item.dataIndex) { previousPoint = item.dataIndex; $("#tooltip").remove(); var x = item.datapoint[0].toFixed(2), y = item.datapoint[1].toFixed(2); showTooltip(item.pageX, item.pageY, item.series.label + " = " + y); } } else { $("#tooltip").remove(); previousPoint = null; } } }); } var page = '<?php echo $_smarty_tpl->tpl_vars['baseurl']->value; ?> /admin_area/index.php'; $(".oneNote .delete").on({ click: function(e){ e.preventDefault(); var noteId = $(this).parent().attr("id"); delete_note(noteId); $(this).parents("li").remove(); } }); $("#add_new_note").on({ click: function(e){ e.preventDefault(); var self = this; var note = $(this).parents(".widgetBox").find("textarea").val(); if(!note){ alert("Please enter something"); } else{ $(this).parents(".widgetBox").find("textarea").val(""); $.post(page, { mode : 'add_note', note : note, },function(data) { console.log(data); var li = document.createElement("li"); li.className = "col-md-4"; var a = document.createElement("a"); a.className = "delete"; a.href = "#"; a.innerHTML = "x"; var p = document.createElement("p"); p.id = data.id; p.innerHTML = note; p.className = "oneNote"; $(p).append(a); $(li).append(p); $(a).on({ click: function(e){ e.preventDefault(); var noteId = $(this).parent().attr("id"); delete_note(noteId); $(this).parents("li").remove(); } }); $(self).parents(".widgetBox").find("ul").prepend(li); },'json'); } } }); $("#addTodo").on({ click: function(e){ e.preventDefault(); var self = this; var newVal = $(this).parents(".addTodo").find("input").val(); if(newVal.length){ $(this).parents(".addTodo").find("input").val(""); var ajaxCall = $.ajax({ url: page, type: "post", data: { val: newVal, mode: "add_todo", }, }); ajaxCall.success(function(data){ data = $.parseJSON(data); var li = document.createElement("li"); li.className = "col-md-12"; var p = document.createElement("p"); p.className = "oneTodo paddingLeftSmall col-md-10"; p.id = data.id; p.innerHTML = data.todo; var a = document.createElement("a"); a.href = "#"; a.className = "col-md-2 btn btn-danger btn-xs delete"; a.innerHTML = "Delete"; $(a).on("click", function(e){ e.preventDefault(); var self = this; var id = $(this).prev().attr("id"); var ajaxCall = $.ajax({ url: page, type: "post", data: { id: id, mode: "delete_todo", }, }); ajaxCall.success(function(data){ $(self).parents("li").remove(); }); }); var div = document.createElement("div"); div.className = "col-md-12"; $(li).append(div).find("div").append(p).append(a); $(self).parents(".widgetBox").find("ul").prepend(li); }); }else{ alert("Please enter a valid value"); } } }); $("#todolist .delete").on("click", function(e){ e.preventDefault(); var self = this; var id = $(this).prev().attr("id"); var ajaxCall = $.ajax({ url: page, type: "post", data: { id: id, mode: "delete_todo", }, }); ajaxCall.success(function(data){ $(self).parents("li").remove(); }); }); }); </script> <?php }
function content_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 }