ID, WDWT_META, true ); } else{ $meta = array(); } $default_layout = $this->get_param('default_layout', $meta) ; $main_column = esc_html( $this->get_param('main_column', $meta) ); $pwa_width = esc_html( $this->get_param('pwa_width', $meta) ); $full_width = trim(esc_html( $this->get_param('full_width', $meta) )); $content_area = esc_html( $this->get_param('content_area', $meta) ); if ($full_width) { $them_content_are_width='100%'; ?> get_param('[colors_active][active]') ); $menu_elem_back_color = esc_html( $this->get_param('[colors_active][colors][menu_elem_back_color][value]', array(), "#890000" )); $sideb_background_color = esc_html( $this->get_param('[colors_active][colors][sideb_background_color][value]', array(),"#FAFAFA" )); $footer_sideb_background_color = esc_html( $this->get_param('[colors_active][colors][footer_sideb_background_color][value]', array(), "#e4e4e4" )); $footer_back_color = esc_html( $this->get_param('[colors_active][colors][footer_back_color][value]', array(), "#CFCFCF" )); $home_top_posts_color = esc_html( $this->get_param('[colors_active][colors][home_top_posts_color][value]', array(), "#F5F5F5" )); $cat_tab_backgr_color = esc_html( $this->get_param('[colors_active][colors][cat_tab_backgr_color][value]', array(), "#000000" )); $top_posts_color = esc_html( $this->get_param('[colors_active][colors][top_posts_color][value]', array(), "#F5F5F5" )); $primary_text_headers_color = esc_html( $this->get_param('[colors_active][colors][primary_text_headers_color][value]', array(), "#000000" )); $text_headers_color = esc_html( $this->get_param('[colors_active][colors][text_headers_color][value]', array(), "#000000" )); $primary_text_color = esc_html( $this->get_param('[colors_active][colors][primary_text_color][value]', array(), "#2C2C2C" )); $footer_text_color = esc_html( $this->get_param('[colors_active][colors][footer_text_color][value]', array(), "#000000" )); $primary_links_color = esc_html( $this->get_param('[colors_active][colors][primary_links_color][value]', array(), "#000000")); $primary_links_hover_color = esc_html( $this->get_param('[colors_active][colors][primary_links_hover_color][value]', array(), "#440000" )); $menu_links_color = esc_html( $this->get_param('[colors_active][colors][menu_links_color][value]', array(), "#FFFFFF" )); $menu_links_hover_color = esc_html( $this->get_param('[colors_active][colors][menu_links_hover_color][value]', array(), "#FFFFFF" )); $menu_color = esc_html( $this->get_param('[colors_active][colors][menu_color][value]', array(), "#000000" )); $selected_menu_color = esc_html( $this->get_param('[colors_active][colors][selected_menu_color][value]', array(), "#000000" )); $logo_text_color = esc_html( $this->get_param('[colors_active][colors][logo_text_color][value]', array(), "#890000" )); ?> ID, WDWT_META, true ); } else{ $meta = array(); } $blog_style = $this->get_param('blog_style', $meta ); return $blog_style; } public function slideshow(){ $hide_slider = $this->get_param('hide_slider'); $imgs_url = $this->get_param('slider_head'); $image_textarea = $this->get_param('slider_head_desc'); $logo_text = $this->get_param('logo_text'); $image_title = $this->get_param('slider_head_title'); $image_height = $this->get_param('image_height'); $title_position = $this->get_param('title_position'); $description_position = $this->get_param('description_position'); $imgs_href = $this->get_param('slider_head_href'); $imgs_url = explode('||wd||',$imgs_url); $imgs_href = explode('||wd||',$imgs_href); $image_title = explode('||wd||',$image_title); $image_textarea = explode('||wd||',$image_textarea); $imgs_number = count($imgs_url); /*clear from spaces etc */ foreach ($imgs_url as $i => $url){ $imgs_url[$i] = trim($url); } for($i=0;$i
$image_row) { if ($i == $current_image_id) { $current_key = $key; ?>
slider_script(); } } public function top_posts(){ $hide_top_posts = $this->get_param('hide_top_posts'); $top_post_categories = implode(',',$this->get_param('top_post_categories', array(), array(''))); $top_post_cat_name = $this->get_param('top_post_cat_name'); $grab_image = $this->get_param('grab_image'); if ($hide_top_posts) { ?>
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(); ?>
get_param('hide_category_tabs_posts'); $home_page_tabs_exclusive = $this->get_param('home_page_tabs_exclusive'); $grab_image = $this->get_param('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',WDWT_LANG); $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',WDWT_LANG); $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',WDWT_LANG); 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=""; 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('home_video_post'); $hide_video_post = $this->get_param('hide_video_post'); $video_post_name = $this->get_param('video_post_name'); $home_video_post=isset($home_video_post[0]) ? get_post($home_video_post[0]) : null; if($home_video_post==NULL){ $home_video_post=get_posts(); /*the most recent post*/ $home_video_post=empty($home_video_post) ? null : $home_video_post[0]; } if ($hide_video_post && $home_video_post){ ?>

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

    post_title; ?>

    post_content); ?>
    get_param('hide_content_posts'); $hide_video_post = $this->get_param('hide_video_post'); $content_post_categories = $this->get_param('content_post_categories', array(), array('')); $content_post_cat_name = $this->get_param('content_post_cat_name'); $blog_style = $this->get_param('blog_style'); $content_post_categories = implode(',',$content_post_categories); $cat_checked=0; $n_of_home_post=get_option( 'posts_per_page', 2); if($hide_content_posts && $n_of_home_post!=0){ ?>

      have_posts()) { $wp_query->the_post(); ?>
    bottom_advertisment(); ?>
    get_param('hide_content_posts'); $hide_video_post = $this->get_param('hide_video_post'); $date_enable = $this->get_param('date_enable'); $blog_style = $this->get_param('blog_style'); $grab_image = $this->get_param('grab_image'); if(is_home()){ ?>

    max_num_pages > 2 ){ ?>
    bottom_advertisment(); wp_reset_query(); ?>

    get_param('animation_speed'); $effect = $this->get_param('effect'); if(empty($effect[0])){ $effect = array('fade'); } $image_height = $this->get_param('image_height'); $stop_on_hover = $this->get_param('stop_on_hover'); $slideshow_interval = $this->get_param('slideshow_interval'); $hide_slider = $this->get_param('hide_slider'); $imgs_url = $this->get_param('slider_head'); $imgs_url = explode('||wd||',$imgs_url); if($stop_on_hover===true) $stop_on_hover = 1; else $stop_on_hover = 0; ?>