get_param('hide_top_posts'); if (!$show_top_posts) { return; } $top_post_categories = implode(',',$wdwt_front->get_param('top_post_categories', array(), array(''))); $top_post_cat_name = $wdwt_front->get_param('top_post_cat_name'); $order = $wdwt_front->get_param('top_post_order', array(), array('date')); $order = $order[0]; $orderby = $wdwt_front->get_param('top_post_orderby', array(), array('desc')); $orderby = $orderby[0]; $grab_image = $wdwt_front->grab_image(); $lbox_width = $wdwt_front->get_param('lbox_image_width'); $lbox_height = $wdwt_front->get_param('lbox_image_height'); $lbox_enable = $wdwt_front->get_param('lbox_enable', array(), '1'); if($lbox_enable == '1'){ $lbox_enable = true; } else{ $lbox_enable = false; } $args = array( "posts_per_page" =>4, "ignore_sticky_posts"=>1, "cat"=>$top_post_categories, "orderby"=>$orderby, "order"=> $order, ); ?>
get_posts(); if(!isset($curent_query_posts[0])) $curent_query_posts[0]=''; $expert_News_post_date=get_the_time( 'Y.m.d, l',$curent_query_posts[0]); unset($curent_query_posts); ?>

« »
    have_posts()) { while ($wp_query->have_posts()) { $wp_query->the_post(); $tumb_id=get_post_thumbnail_id( $post->ID ); $thumb_url=wp_get_attachment_image_src($tumb_id,'full'); $has_thumb = true; if( $thumb_url ){ $thumb_url = $thumb_url[0]; } else{ $thumb_url = self::catch_that_image(); if(isset($thumb_url['image_catched']) && $thumb_url['image_catched'] ){ $has_thumb = true; } else{ $has_thumb = false; } $thumb_url = $thumb_url['src']; } ?>
get_param('hide_category_tabs_posts'); $home_page_tabs_exclusive = $wdwt_front->get_param('home_page_tabs_exclusive'); $grab_image = $wdwt_front->grab_image(); $args = array( 'orderby' => 'name', 'order' => 'ASC' ); $categories = get_categories($args); if ($hide_category_tabs_posts){ $count_of_posts=4; // count posts in category tabs this is static variable $user_selected_categories=$home_page_tabs_exclusive;// get user selected categoryes for category tabs $top_tabs_categorys = array(); // array for geting category requerid information by id $real_category_exsist=0; // if selected category not removed if( $home_page_tabs_exclusive == "" ){ // if category not selected $user_selected_categories=array(); for($i=1; $iname; $user_selected_category_desc = $categories[$i]->description; $top_tabs_categorys[$i]['category_name']=$user_selected_category; $top_tabs_categorys[$i]['category_description']=$user_selected_category_desc; $top_tabs_categorys[$i]['query']='posts_per_page='.($count_of_posts).'&cat='.$categories[$i]->term_id.'&order=DESC'; if($i==4) break; } } foreach($user_selected_categories as $key=>$user_selected_categorie){ if(is_numeric($user_selected_categorie)){ if(isset(get_category($user_selected_categorie)->name)){ $user_selected_category = get_category($user_selected_categorie)->name; $user_selected_category_desc =get_category($user_selected_categorie)->description; } else{ $user_selected_category = ""; $user_selected_category_desc = ""; } $top_tabs_categorys[$key]['category_name']=$user_selected_category; $top_tabs_categorys[$key]['category_description']=$user_selected_category_desc; $top_tabs_categorys[$key]['query']='posts_per_page='.($count_of_posts).'&cat='.$user_selected_categorie.'&order=DESC'; } else { switch($user_selected_categorie){ case 'random':{ $top_tabs_categorys[$key]['category_name']=__('Random Posts',"best-magazine"); $top_tabs_categorys[$key]['query']='orderby=rand&ignore_sticky_posts=1&posts_per_page='.$count_of_posts; break; } case 'popular':{ $top_tabs_categorys[$key]['category_name']=__('Popular Posts',"best-magazine"); $top_tabs_categorys[$key]['query']='meta_key=wpb_post_views_count&orderby=>meta_value&posts_per_page='.$count_of_posts; break; } case 'recent':{ $top_tabs_categorys[$key]['category_name']=__('Recent Posts',"best-magazine"); if(isset($data)) $top_tabs_categorys[$key]['query']='meta_key=wpb_post_views_count&orderby=>meta_value&numberposts='.$data["postsCount"]; $args = array( 'numberposts' => $count_of_posts, 'offset' => 0, 'category' => 0, 'orderby' => 'post_date', 'order' => 'DESC', 'post_type' => 'post', 'post_status' => 'draft, publish, future, pending, private', 'suppress_filters' => true ); $recent_posts = wp_get_recent_posts( $args, ARRAY_A ); $recentList=array(); foreach( $recent_posts as $recent ){ $img_html=''; $img=wp_get_attachment_image_src( get_post_thumbnail_id($recent["ID"])); if($img){ $img_html="
\r\n \t\t\t\t\t\t\t\t \r\n \t\t\t\t\t\t\t\t\t\"".esc_attr(\r\n \t\t\t\t\t\t\t\t\r\n \t\t\t\t\t\t\t
"; } $recentList[]= "\t\t\t\t\t\t
  • \r\n \t\t\t\t\t\t\t".$img_html."\r\n \t\t\t\t\t\t\t
    \r\n \t\t\t\t\t\t\t\t\r\n \t\t\t\t\t\t\t\t\t

    ".esc_html($recent["post_title"])."

    \r\n \t\t\t\t\t\t\t\t
    \r\n \t\t\t\t\t\t\t\t

    ".substr( strip_tags( $recent["post_content"] ),0,50)."...

    \r\n \t\t\t\t\t\t\t\t".esc_html($recent["post_date"])."\r\n \t\t\t\t\t\t\t
    \r\n \t\t\t\t\t\t
  • "; } $top_tabs_categorys[$key]['recent']=$recentList; break; } } } } foreach($top_tabs_categorys as $key=>$top_tabs_category){ if(!$top_tabs_category['category_name']) $real_category_exsist++; } if(count($top_tabs_categorys)!=$real_category_exsist){ ?>
    « »
      $top_tabs_category){ if($top_tabs_category['category_name']){ ?>
    • >


      $top_tabs_category){ if($top_tabs_category['category_name']){ ?>
    • id="categories-tabs-content-">
        ID) ); if(!has_post_thumbnail() && !$grab_image) $thumb_div_class = "no-image"; else $thumb_div_class = ""; ?>
      • ...

    get_param('hide_video_post'); $video_post_name = $wdwt_front->get_param('video_post_name'); $home_video_post_id = $wdwt_front->get_param('home_video_post'); $home_video_post_id = isset($home_video_post_id[0]) ? $home_video_post_id[0] : ''; $home_video_post_id_translated = apply_filters( 'wpml_object_id', $home_video_post_id, 'post' ); if(!is_null($home_video_post_id_translated)){ $home_video_post = get_post($home_video_post_id_translated); } else{ $home_video_post = null; } if ($hide_video_post && !empty($home_video_post)){ ?>

    ID,array(260,220)); ?>

    post_title; ?>

    post_content); ?>
    get_param('hide_content_posts'); if(!$hide_content_posts ){ return ; } $hide_video_post = $wdwt_front->get_param('hide_video_post'); $grab_image= $wdwt_front->grab_image(); $show_thumbnail = $wdwt_front->get_param('show_thumbnails'); $content_post_categories = $wdwt_front->get_param('content_post_categories', array(), array('')); $content_post_cat_name = $wdwt_front->get_param('content_post_cat_name'); $blog_style = $wdwt_front->blog_style(); $content_post_categories = implode(',',$content_post_categories); $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $order_content = $wdwt_front->get_param('content_post_order', array(), array('date')); $order_content = $order_content[0]; $orderby_content = $wdwt_front->get_param('content_post_orderby', array(), array('desc')); $orderby_content = $orderby_content[0]; $cat_checked=0; $n_of_home_post=get_option( 'posts_per_page', 2); if($n_of_home_post ==0){ $n_of_home_post = 1; } $args_content = array( "posts_per_page" => $n_of_home_post, "ignore_sticky_posts" => 1, "paged" => $paged, "cat" => $content_post_categories, "orderby"=>$orderby_content, "order"=> $order_content, ); ?>

    have_posts()) { $wp_query->the_post(); ?>

    '.__('Previous Entries', "best-magazine") ); ?>
    ', '' ); ?>
    get_param('hide_content_posts'); $hide_video_post = $wdwt_front->get_param('hide_video_post'); $date_enable = $wdwt_front->get_param('date_enable'); $blog_style = $wdwt_front->blog_style(); $grab_image = $wdwt_front->grab_image(); if(is_home()){ if(have_posts()) { while (have_posts()) { the_post(); ?>

    max_num_pages > 2 ){ ?>
    '.__('Previous Entries', "best-magazine") ); ?>
    ', '' ); ?>

    '.__('Previous Entries', "best-magazine") ); ?>
    ', '' ); ?>