function flag_playlist_edit() { global $wpdb; $filepath = admin_url() . 'admin.php?page=' . urlencode($_GET['page']); $all_playlists = get_playlists(); $flag_options = get_option('flag_options'); $playlistPath = $flag_options['galleryPath'] . 'playlists/' . sanitize_flagname($_GET['playlist']) . '.xml'; $playlist = get_playlist_data(ABSPATH . $playlistPath); $items_a = $playlist['items']; $items = implode(',', $playlist['items']); ?> <script type="text/javascript"> //<![CDATA[ function checkAll(form) { jQuery(form).find(':checkbox').each(function(){this.checked = !this.checked}); return false; } function getNumChecked(form) { var num = 0; for (i = 0, n = form.elements.length; i < n; i++) { if(form.elements[i].type == "checkbox") { if(form.elements[i].name == "doaction[]") if(form.elements[i].checked == true) num++; } } return num; } // this function check for a the number of selected images, sumbmit false when no one selected function checkSelected() { var numchecked = getNumChecked(document.getElementById('updatePlaylist')); if(numchecked < 1) { alert('<?php echo esc_js(__("No items selected", "flag")); ?> '); return false; } actionId = jQuery('#bulkaction').val(); switch (actionId) { case "delete_items": return confirm('<?php echo sprintf(esc_js(__("You are about to delete %s item(s) \n \n 'Cancel' to stop, 'OK' to proceed.", 'flag')), "' + numchecked + '"); ?> '); break; } return confirm('<?php echo sprintf(esc_js(__("You are about to start the bulk edit for %s item(s) \n \n 'Cancel' to stop, 'OK' to proceed.", 'flag')), "' + numchecked + '"); ?> '); } function showDialog( windowId, height ) { var form = document.getElementById('updatePlaylist'); var elementlist = ""; for (i = 0, n = form.elements.length; i < n; i++) { if(form.elements[i].type == "checkbox") { if(form.elements[i].name == "doaction[]") if(form.elements[i].checked == true) if (elementlist == "") elementlist = form.elements[i].value; else elementlist += "," + form.elements[i].value; } } jQuery("#" + windowId + "_bulkaction").val(jQuery("#bulkaction").val()); jQuery("#" + windowId + "_playlist").val(elementlist); tb_show("", "#TB_inline?width=640&height=" + height + "&inlineId=" + windowId + "&modal=true", false); } var current_image = ''; function send_to_editor(html) { var source = html.match(/src=\".*\" alt/); source = source[0].replace(/^src=\"/, "").replace(/" alt$/, ""); jQuery('#mp3thumb-'+actInp).attr('value', source); jQuery('#thumb-'+actInp).attr('src', source); tb_remove(); } jQuery(document).ready(function(){ jQuery('.del_thumb').click(function(){ var id = jQuery(this).attr('data-id'); jQuery('#mp3thumb-'+id).attr('value', ''); jQuery('#thumb-'+id).attr('src', '<?php echo site_url() . "/wp-includes/images/crystal/audio.png"; ?> '); return false; }); jQuery('#skinname').change(function(){ var skin = jQuery(this).val(); jQuery('#skinOptions').attr("href","<?php echo FLAG_URLPATH; ?> admin/skin_options.php?show_options=1&skin="+skin+"&TB_iframe=1&width=600&height=560"); }); }); //]]> </script> <div class="flag-wrap"> <h2><?php _e('Playlist', 'flag'); ?> : <?php echo esc_html($playlist['title']); ?> </h2> <div style="float: right; margin: -20px 3px 0 0;"> <span><a href="<?php echo $filepath; ?> "><?php _e('Back to Music Box', 'flag'); ?> </a> </span> <select name="select_playlist" onchange="window.location.href=this.options[this.selectedIndex].value"> <option selected="selected"><?php _e('Choose another playlist', 'flag'); ?> </option> <?php foreach ((array) $all_playlists as $playlist_file => $playlist_data) { $playlist_name = basename($playlist_file, '.xml'); if ($playlist_file == sanitize_flagname($_GET['playlist'])) { continue; } ?> <option value="<?php echo esc_url($filepath . "&playlist=" . $playlist_name . "&mode=edit"); ?> "><?php echo esc_html($playlist_data['title']); ?> </option> <?php } ?> </select> </div> <form id="updatePlaylist" class="flagform" method="POST" action="<?php echo esc_url($filepath . "&playlist=" . sanitize_flagname($_GET['playlist']) . "&mode=edit"); ?> " accept-charset="utf-8"> <?php wp_nonce_field('flag_update'); ?> <input type="hidden" name="page" value="manage-playlist" /> <div id="poststuff" class="metabox-holder"> <div id="post-body"><div id="post-body-content"><div id="normal-sortables" style="position: relative;"> <div id="flagalleryset" class="postbox" > <h3 class="hndle"><span><?php _e('Playlist settings', 'flag'); ?> </span></h3> <div class="inside"> <table cellspacing="8" cellpadding="0" border="0"> <tr> <th align="left" valign="middle" scope="row"><?php _e('Shortcode', 'flag'); ?> :</th> <td align="left" valign="middle"><input type="text" readonly="readonly" size="50" onfocus="this.select()" value="[grandmusic playlist=<?php echo sanitize_flagname($_GET['playlist']); ?> ]" /></td> <td rowspan="3" align="left" valign="top"><div><strong style="display: inline-block; width: 100px;"><?php _e("Playlist Skin", 'flag'); ?> :</strong> <input id="skinaction" type="hidden" name="skinaction" value="<?php echo sanitize_flagname($playlist['skin']); ?> " /> <select id="skinname" name="skinname" style="width: 200px; height: 24px; font-size: 11px;"> <?php require_once dirname(__FILE__) . '/get_skin.php'; $all_skins = get_skins($skin_folder = '', $type = 'm'); if (count($all_skins)) { foreach ((array) $all_skins as $skin_file => $skin_data) { $cur = $playlist['skin'] == dirname($skin_file) ? ' selected="selected"' : ''; echo '<option' . $cur . ' value="' . dirname($skin_file) . '">' . $skin_data['Name'] . '</option>' . "\n"; } } else { echo '<option value="music_default">' . __("No Skins", "flag") . '</option>'; } ?> </select> <a id="skinOptions" class="thickbox" href="<?php echo FLAG_URLPATH . 'admin/skin_options.php?show_options=1&skin=' . sanitize_flagname($playlist['skin']) . '&TB_iframe=1&width=600&height=560'; ?> "><?php _e('Change Skin Options', 'flag'); ?> </a> </div> <p style="margin:10px 0 0 100px;"><input type="submit" id="updatePlaylistSkin" name="updatePlaylistSkin" class="button-primary action" value="<?php _e('Update skin options for this playlist', 'flag'); ?> " /></p> </td> </tr> <tr> <th align="left" valign="middle" scope="row"><?php _e('Title', 'flag'); ?> :</th> <td align="left" valign="middle"><input type="text" size="50" name="playlist_title" value="<?php echo esc_html($playlist['title']); ?> " /></td> </tr> <tr> <th align="left" valign="top" scope="row"><?php _e('Description', 'flag'); ?> :</th> <td align="left" valign="top"><textarea name="playlist_descr" cols="60" rows="2" style="width: 95%" ><?php echo esc_html($playlist['description']); ?> </textarea></td> </tr> <!--<tr> <th align="left" valign="top" scope="row"><?php _e('Path', 'flag'); ?> :</th> <td align="left" colspan="2" valign="top"><?php echo $playlistPath; ?> </td> </tr>--> </table> <div class="clear"></div> </div> </div> </div></div></div> </div> <!-- poststuff --> <div class="tablenav flag-tablenav"> <select id="bulkaction" name="bulkaction" class="alignleft"> <option value="no_action" ><?php _e("No action", 'flag'); ?> </option> <option value="delete_items" ><?php _e("Delete items", 'flag'); ?> </option> </select> <input class="button-secondary alignleft" style="margin-right:10px;" type="submit" name="updatePlaylist" value="<?php _e("OK", 'flag'); ?> " onclick="if ( !checkSelected() ) return false;" /> <a href="<?php echo wp_nonce_url($filepath . "&playlist=" . sanitize_flagname($_GET['playlist']) . "&mode=sort", 'flag_sort'); ?> " class="button-secondary alignleft" style="margin:1px 10px 0 0;"><?php _e("Sort Playlist", 'flag'); ?> </a> <a href="#" onClick="jQuery('#form_listitems').submit();return false;" class="button-secondary alignleft" style="margin:1px 10px 0 0;"><?php _e("Add/Remove Items from Playlist", 'flag'); ?> </a> <input type="submit" name="updatePlaylist" class="button-primary action alignright" value="<?php _e("Update Playlist", 'flag'); ?> " /> </div> <table id="flag-listmusic" class="widefat fixed flag-table" cellspacing="0" > <thead> <tr> <th class="cb" width="54" scope="col"><a href="#" onclick="checkAll(document.getElementById('updatePlaylist'));return false;"><?php _e('Check', 'flag'); ?> </a></th> <th class="id" width="134" scope="col"><div><?php _e('ID', 'flag'); ?> </div></th> <th class="size" width="75" scope="col"><div><?php _e('Size', 'flag'); ?> </div></th> <th class="thumb" width="110" scope="col"><div><?php _e('Thumbnail', 'flag'); ?> </div></th> <th class="title_filename" scope="col"><div><?php _e('Filename / Title', 'flag'); ?> </div></th> <th class="description" scope="col"><div><?php _e('Description', 'flag'); ?> </div></th> </tr> </thead> <tfoot> <tr> <th class="cb" scope="col"><a href="#" onclick="checkAll(document.getElementById('updatePlaylist'));return false;"><?php _e('Check', 'flag'); ?> </a></th> <th class="id" scope="col"><?php _e('ID', 'flag'); ?> </th> <th class="size" scope="col"><?php _e('Size', 'flag'); ?> </th> <th class="thumb" scope="col"><?php _e('Thumbnail', 'flag'); ?> </th> <th class="title_filename" scope="col"><?php _e('Filename / Title', 'flag'); ?> </th> <th class="description" scope="col"><?php _e('Description', 'flag'); ?> </th> </tr> </tfoot> <tbody> <?php $counter = 0; if (count($items_a)) { $alt = ' class="alternate"'; $flag_options = get_option('flag_options'); $uploads = wp_upload_dir(); foreach ($items_a as $item) { $mp3 = get_post($item); $thumb = $mp3thumb = get_post_meta($item, 'thumbnail', true); if (empty($thumb)) { $thumb = site_url() . '/wp-includes/images/crystal/audio.png'; $mp3thumb = ''; } $alt = empty($alt) ? ' class="alternate"' : ''; $alt2 = empty($alt) ? '' : ' alternate'; $url = wp_get_attachment_url($mp3->ID); $counter++; ?> <tr id="mp3-<?php echo $mp3->ID; ?> "<?php echo $alt; ?> valign="top"> <th class="cb" scope="row" height="24" style="padding-bottom: 0; border-bottom: none;"><input name="doaction[]" type="checkbox" value="<?php echo $mp3->ID; ?> " /></th> <td class="id" style="padding-bottom: 0; border-bottom: none;"><p style="margin-bottom: 3px; white-space: nowrap;">ID: <?php echo $mp3->ID; ?> </p></td> <td class="size" style="padding-bottom: 0; border-bottom: none;"><?php $path = $uploads['basedir'] . str_replace($uploads['baseurl'], '', $url); $size = filesize($path); echo round($size / 1024 / 1024, 2) . ' Mb'; ?> </td> <td class="thumb" rowspan="2"> <div style="width: 100px; height: 100px;"><img id="thumb-<?php echo $mp3->ID; ?> " src="<?php echo esc_url($thumb); ?> " style="height:auto; width:auto; max-height:100px; max-width:100px;" alt="" /></div> </td> <td class="title_filename" rowspan="2"> <strong><a href="<?php echo $url; ?> "><?php echo basename($url); ?> </a></strong><br /> <textarea title="Title" name="item_a[<?php echo $mp3->ID; ?> ][post_title]" cols="20" rows="1" style="width:95%; height: 25px; overflow:hidden;"><?php echo esc_html(stripslashes($mp3->post_title)); ?> </textarea><br /> <p><?php _e('Thumb URL:', 'flag'); ?> <input id="mp3thumb-<?php echo $mp3->ID; ?> " name="item_a[<?php echo $mp3->ID; ?> ][post_thumb]" type="text" value="<?php echo esc_url($mp3thumb); ?> " /> <a class="thickbox" onclick="actInp=<?php echo $mp3->ID; ?> " href="media-upload.php?type=image&TB_iframe=1&width=640&height=400" title="<?php _e('Add an Image', 'flag'); ?> "><?php _e('assist', 'flag'); ?> </a></p> </td> <td class="description" rowspan="2"> <textarea name="item_a[<?php echo $mp3->ID; ?> ][post_content]" style="width:95%; height: 96px; margin-top: 2px; font-size:12px; line-height:115%;" rows="1" ><?php echo esc_html(stripslashes($mp3->post_content)); ?> </textarea> </td> </tr> <tr class="mp3-<?php echo $mp3->ID . $alt2; ?> "> <td valign="top" class="player" colspan="3"><script type="text/javascript">swfobject.embedSWF("<?php echo FLAG_URLPATH; ?> lib/mini.swf", "c-<?php echo $mp3->ID; ?> ", "250", "20", "10.1.52", "expressInstall.swf", {path:"<?php echo str_replace(array('.mp3'), array(''), $url); ?> ",bgcolor:"<?php echo $flag_options['mpBG']; ?> ",color1:"<?php echo $flag_options['mpColor1']; ?> ",color2:"<?php echo $flag_options['mpColor2']; ?> "}, {wmode:"transparent"}, {id:"f-<?php echo $mp3->ID; ?> ",name:"f-<?php echo $mp3->ID; ?> "});</script> <div class="play" style="padding-left: 4px;"><span id="c-<?php echo $mp3->ID; ?> "></span></div></td> </tr> <?php } } // In the case you have no capaptibility to see the search result if ($counter == 0) { echo '<tr><td colspan="5" align="center"><strong>' . __('No entries found', 'flag') . '</strong></td></tr>'; } ?> </tbody> </table> <p class="submit" style="text-align: right;"><input type="submit" class="button-primary action" name="updatePlaylist" value="<?php _e("Update Playlist", 'flag'); ?> " /></p> </form> <form id="form_listitems" name="form_listitems" method="POST" action="<?php echo esc_url($filepath . "&playlist=" . sanitize_flagname($_GET['playlist']) . "&mode=add"); ?> "> <?php wp_nonce_field('flag_add'); ?> <input type="hidden" name="items" value="<?php echo $items; ?> " /> </form> <br class="clear"/> </div><!-- /#wrap --> <?php }
<?php if (preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); } global $flag, $flagdb, $post; require_once dirname(__FILE__) . '/get_skin.php'; require_once dirname(__FILE__) . '/playlist.functions.php'; $i_skins = get_skins(); $all_playlists = get_playlists(); $flag_custom = get_post_custom($post->ID); $items_array = isset($flag_custom["mb_items_array"][0]) ? $flag_custom["mb_items_array"][0] : ''; $skinname = isset($flag_custom["mb_skinname"][0]) ? $flag_custom["mb_skinname"][0] : ''; $scode = isset($flag_custom["mb_scode"][0]) ? $flag_custom["mb_scode"][0] : ''; $music = isset($flag_custom["mb_playlist"][0]) ? $flag_custom["mb_playlist"][0] : ''; $button_text = isset($flag_custom["mb_button"][0]) ? $flag_custom["mb_button"][0] : ''; $button_link = isset($flag_custom["mb_button_link"][0]) ? $flag_custom["mb_button_link"][0] : ''; $bg_link = isset($flag_custom["mb_bg_link"][0]) ? $flag_custom["mb_bg_link"][0] : ''; $bg_pos = isset($flag_custom["mb_bg_pos"][0]) ? $flag_custom["mb_bg_pos"][0] : ''; $bg_repeat = isset($flag_custom["mb_bg_repeat"][0]) ? $flag_custom["mb_bg_repeat"][0] : ''; ?> <script type="text/javascript">/*<![CDATA[*/ var i_arr = '<?php echo $items_array; ?> '; jQuery(document).ready(function() { if(i_arr){ i_arr = i_arr.split(','); jQuery('#galleries :checkbox').each(function(){ if(jQuery.inArray(jQuery(this).val(),i_arr) > -1){
$total_rows = $cbvid->action->get_favorites($params); subtitle(sprintf(lang("title_usr_fav_vids"), $udetails['username'])); $total_pages = count_pages($total_rows, config('videos_items_ufav_page')); //pr($total_pages,true); break; case 'playlists': $get_limit = create_query_limit($page, 10); $params = array('userid' => $udetails['userid'], 'limit' => $get_limit); $playlists = get_playlists($params); /*$items = $cbvid->get_playlist_items( $pid, 'playlist_items.date_added DESC' ); pr($items,true); assign('items',$items);*/ assign('playlist_mode', 'on'); assign('playlists', $playlists); $params['count_only'] = true; $total_rows = get_playlists($params); $total_pages = count_pages($total_rows, config('videos_items_ufav_page')); //pr($videos,true); break; } Assign('videos', $videos); //Pagination $pages->paginate($total_pages, $page); } else { e(lang("usr_exist_err")); $Cbucket->show_page = false; } if ($Cbucket->show_page) { Template('user_videos.html'); } else { display_it();
function flag_created_playlists() { $filepath = admin_url() . 'admin.php?page=' . urlencode($_GET['page']); $all_playlists = get_playlists(); $total_all_playlists = count($all_playlists); $flag_options = get_option('flag_options'); ?> <div class="flag-wrap"> <h2><?php _e('Created playlists', 'flash-album-gallery'); ?> </h2> <table class="widefat flag-table" cellspacing="0"> <thead> <tr> <th scope="col" width="25%"><?php _e('Title', 'flash-album-gallery'); ?> </th> <th scope="col" width="55%"><?php _e('Description', 'flash-album-gallery'); ?> </th> <th scope="col"><?php _e('Quantity', 'flash-album-gallery'); ?> </th> <th scope="col"><?php _e('Shortcode', 'flash-album-gallery'); ?> </th> <th scope="col"><?php _e('Action', 'flash-album-gallery'); ?> </th> </tr> </thead> <tbody> <?php if ($all_playlists) { foreach ((array) $all_playlists as $playlist_file => $playlist_data) { $query_m = get_posts(array('post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => null, 'post__in' => $playlist_data['items'])); $class = !isset($class) || $class == 'class="alternate"' ? '' : 'class="alternate"'; $playlist_name = basename($playlist_file, '.xml'); if (count($query_m) != count($playlist_data['items'])) { flagSavePlaylist($playlist_data['title'], $playlist_data['description'], $playlist_data['items'], $playlist_name); } ?> <tr id="<?php echo $playlist_name; ?> " <?php echo $class; ?> > <td> <a href="<?php echo esc_url($filepath . '&playlist=' . $playlist_name . '&mode=edit'); ?> " class='edit' title="<?php _e('Edit'); ?> "> <?php echo esc_html($playlist_data['title']); ?> </a> </td> <td><?php echo esc_html($playlist_data['description']); echo ' (' . __("player", "flash-album-gallery") . ': <strong>' . esc_html($playlist_data['skin']) . '</strong>)'; ?> </td> <td><?php echo count($query_m); ?> </td> <td style="white-space: nowrap;"><input type="text" class="shortcode1" style="width: 200px; font-size: 9px;" readonly="readonly" onfocus="this.select()" value="[grandmusic playlist=<?php echo $playlist_name; ?> ]"/></td> <td> <a href="<?php echo wp_nonce_url($filepath . '&playlist=' . $playlist_name . "&mode=delete", 'flag_delete'); ?> " class="delete" onclick="javascript:check=confirm( '<?php _e("Delete this playlist?", 'flash-album-gallery'); ?> ');if(check==false) {return false; }"><?php _e('Delete', 'flash-album-gallery'); ?> </a> </td> </tr> <?php } } else { echo '<tr><td colspan="5" align="center"><strong>' . __('No playlists found', 'flash-album-gallery') . '</strong></td></tr>'; } ?> </tbody> </table> </div> <?php }
function form($instance) { global $wpdb; require_once dirname(dirname(__FILE__)) . '/admin/get_skin.php'; require_once dirname(dirname(__FILE__)) . '/admin/playlist.functions.php'; //Defaults $instance = wp_parse_args((array) $instance, array('title' => 'Music', 'xml' => '', 'width' => '100%', 'height' => '200', 'skin' => 'music_default')); $title = esc_html($instance['title']); $width = esc_attr($instance['width']); $height = esc_attr($instance['height']); $skin = esc_attr($instance['skin']); $all_playlists = get_playlists(); $all_skins = get_skins(false, 'm'); ?> <p><label for="<?php echo $this->get_field_id('title'); ?> "><?php _e('Title:'); ?> </label> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?> " name="<?php echo $this->get_field_name('title'); ?> " type="text" value="<?php echo $title; ?> " /></p> <p> <label for="<?php echo $this->get_field_id('xml'); ?> "><?php _e('Select playlist:', 'flag'); ?> </label> <select size="1" name="<?php echo $this->get_field_name('xml'); ?> " id="<?php echo $this->get_field_id('xml'); ?> " class="widefat"> <?php foreach ((array) $all_playlists as $playlist_file => $playlist_data) { $playlist_name = basename($playlist_file, '.xml'); ?> <option <?php selected($playlist_name, $instance['xml']); ?> value="<?php echo $playlist_name; ?> "><?php echo $playlist_data['title']; ?> </option> <?php } ?> </select> </p> <p><label for="<?php echo $this->get_field_id('height'); ?> "><?php _e('Height:', 'flag'); ?> </label> <input id="<?php echo $this->get_field_id('height'); ?> " name="<?php echo $this->get_field_name('height'); ?> " type="text" style="padding: 3px; width: 45px;" value="<?php echo $height; ?> " /></p> <p><label for="<?php echo $this->get_field_id('width'); ?> "><?php _e('Width:', 'flag'); ?> </label> <input id="<?php echo $this->get_field_id('width'); ?> " name="<?php echo $this->get_field_name('width'); ?> " type="text" style="padding: 3px; width: 45px;" value="<?php echo $width; ?> " /></p> <p> <label for="<?php echo $this->get_field_id('skin'); ?> "><?php _e('Select Skin:', 'flag'); ?> </label> <select size="1" name="<?php echo $this->get_field_name('skin'); ?> " id="<?php echo $this->get_field_id('skin'); ?> " class="widefat"> <?php if ($all_skins) { foreach ((array) $all_skins as $skin_file => $skin_data) { echo '<option value="' . dirname($skin_file) . '"'; if (dirname($skin_file) == $instance['skin']) { echo ' selected="selected"'; } echo '>' . $skin_data['Name'] . '</option>' . "\n"; } } ?> </select> </p> <?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 }
} break; case "groups": $groups = get_groups(array("user" => $u['userid'], "order" => " date_added DESC", "limit" => config('photo_channel_page'))); if ($groups) { foreach ($groups as $group) { assign('group', $group); assign('channelGroup', true); $content['html'] .= Fetch("/blocks/group.html"); } } else { $content['html'] = '<div align="center"><em>' . lang("User doesn't have any groups") . '</em></div>'; } break; case "playlists": $playlists = get_playlists(array("user" => $u['userid'], "order" => " date_added DESC", "limit" => 5)); if ($playlists) { $content['html'] = "<div class='row'>"; foreach ($playlists as $playlist) { assign('playlist', $playlist); assign('channelplaylist', true); $content['html'] .= Fetch("/blocks/playlist.html"); } $content['html'] .= "</div>"; $content['html'] .= '<div align="right" class="clearfix channelAjaxMoreLink videosMoreLink" style="clear:both; display:block;">'; $content['html'] .= '<a href="' . cblink(array("name" => "user_playlists")) . $u['username'] . '">' . lang('more') . '</a> '; $content['html'] .= '</div>'; } else { $content['html'] = '<div align="center"><em>' . lang("User doesn't have any playlists") . '</em></div>'; } break;