get_param('home_middle_description_post'); $featured_post_id = isset($featured_post_id[0]) ? $featured_post_id[0] : ''; $featured_post_id = apply_filters( 'wpml_object_id', $featured_post_id, 'post' ); $home_middle_description_post_enable = $wdwt_front->get_param('home_middle_description_post_enable'); $blog_style = $wdwt_front->blog_style(); $featured_post = get_post( $featured_post_id); if($featured_post==NULL){ $featured_post=get_posts(); $featured_post=$featured_post[0]; } if ($home_middle_description_post_enable && $featured_post){ ?>

post_title; ?>

post_content ); else echo do_shortcode($featured_post->post_content); ?>
get_param('fix_menu'); $lbox_width = $wdwt_front->get_param('lbox_image_width'); $lbox_height = $wdwt_front->get_param('lbox_image_height'); $content_post_size_ratio = $wdwt_front->get_param('content_post_size_ratio', array(), 0.75); $content_post_size_ratio = (floatval($content_post_size_ratio) >= 0.5 && floatval($content_post_size_ratio) <= 2) ? $content_post_size_ratio : 0.75; $content_post_margin = $wdwt_front->get_param('content_post_margin', array(), 0.75); $choose_posts_pages = $wdwt_front->get_param('content_posts_pages_choose', array(), 'posts'); $content_post_order = $wdwt_front->get_param('content_post_order', array(), array('DESC')); $content_post_orderby = $wdwt_front->get_param('content_post_orderby', array(), array('date')); $content_post_order = $content_post_order[0]; $content_post_orderby = $content_post_orderby[0]; $lbox_disable = $wdwt_front->get_param('lbox_disable'); $content_post_turn_on_animation = $wdwt_front->get_param('content_post_turn_on_animation',array(),true); ?> get_param('content_posts_enable'); //$sticky_posts_count = count(get_option( 'sticky_posts' )); $content_post_count = $wdwt_front->get_param('content_post_count'); $cat_checked=0; $post_count=0; if($content_posts_enable ): ?>
get_param('content_pages_list', array(), array('')) ; $content_pages_list2 = array(); /*WPML*/ foreach ($content_pages_list as $page_id) { $page_id_trans = apply_filters( 'wpml_object_id', $page_id, 'page' ); if(!is_null($page_id_trans )){ array_push($content_pages_list2, $page_id_trans); } } //apply_filters( 'wpml_object_id', $featured_post_id, 'post' ); $args = array( 'posts_per_page' => $content_post_count, 'post_type' => 'page', 'post__in' => $content_pages_list2, 'paged'=> $paged, 'order'=>$content_post_order, 'orderby'=>$content_post_orderby, ); } else{ if($wdwt_front->get_param('content_post_categories')==""){//backward compat $content_post_categories = array(); } else $content_post_categories = $wdwt_front->get_param('content_post_categories', array(), array()); $content_post_categories = (isset($content_post_categories[0]) && empty($content_post_categories[0]) ) ? array() : $content_post_categories; $args = array( 'posts_per_page' => $content_post_count, 'paged'=> $paged, 'order'=>$content_post_order, 'orderby'=>$content_post_orderby, 'tax_query' => array( 'relation' => 'OR', array( 'taxonomy' => 'product_cat', 'field' => 'term_id', 'terms' => $content_post_categories, 'operator' => empty($content_post_categories) ? 'EXISTS': 'IN', ), array( 'taxonomy' => 'category', 'field' => 'term_id', 'terms' => $content_post_categories, 'operator' => empty($content_post_categories) ? 'EXISTS': 'IN', ), ), ); } $wp_query = new WP_Query($args); $i = 1; if ($content_posts_enable): if($wp_query->have_posts()): while ($wp_query->have_posts() && $i <= $content_post_count): $wp_query->the_post(); $post_count++; $tumb_id = get_post_thumbnail_id( get_the_ID() ); $thumb_url=wp_get_attachment_image_src($tumb_id,'full'); if( $thumb_url ) { $thumb_url = $thumb_url[0]; } else { $thumb_url = self::catch_that_image(); $thumb_url = $thumb_url['src']; } $background_image = $thumb_url; list($image_thumb_width, $image_thumb_height) = getimagesize($background_image); ?>
220)&&($image_thumb_height>150)){ ?>
" style="background: url() no-repeat center !important; background-size:cover !important; ">
" style="background: url() no-repeat center !important;">
1){ ?> max_num_pages){ ?>
get_param('blog_posts_enable'); $blog_posts_title = $wdwt_front->get_param('blog_posts_title'); $blog_posts_description = $wdwt_front->get_param('blog_posts_description'); $blog_posts_categories = $wdwt_front->get_param('blog_posts_categories',array(),array()); $blog_posts_categories = (isset($blog_posts_categories[0]) && empty($blog_posts_categories [0]) ) ? array() : $blog_posts_categories ; $blog_style = $wdwt_front->blog_style(); $date_enable = $wdwt_front->get_param('date_enable', array(), true); $grab_image = $wdwt_front->get_param('grab_image', array(), false); $count=get_option( 'posts_per_page', 4); $args = array('posts_per_page' => $count, 'paged' => $paged, 'order' => 'DESC', 'orderby'=> 'date', 'tax_query' => array( 'relation' => 'OR', array( 'taxonomy' => 'product_cat', 'field' => 'term_id', 'terms' => $blog_posts_categories, 'operator' => empty($blog_posts_categories) ? 'EXISTS': 'IN', ), array( 'taxonomy' => 'category', 'field' => 'term_id', 'terms' => $blog_posts_categories, 'operator' => empty($blog_posts_categories) ? 'EXISTS': 'IN', ), ), ); $wp_query = new WP_Query($args); if ($blog_posts_enable){ ?>

    have_posts() && $i <= $count) : $wp_query->the_post(); ?>
1){ ?> max_num_pages){ ?>
get_param('date_enable'); $grab_image = $wdwt_front->get_param('grab_image'); $wp_query = new WP_Query('posts_per_page='.$count.'&s='.$s.'&order=DESC'); ?> get_param('gallery_posts_enable'); $gallery_posts_title = $wdwt_front->get_param('gallery_posts_title'); $gallery_posts_description = $wdwt_front->get_param('gallery_posts_description'); $gallery_posts_categories = $wdwt_front->get_param('gallery_posts_categories',array(),array()); $gallery_posts_categories = (isset($gallery_posts_categories[0]) && empty($gallery_posts_categories[0]) ) ? array() : $gallery_posts_categories; $count = $wdwt_front->get_param('gallery_posts_count', array(), 3); $args = array( 'posts_per_page' =>$count, 'paged' => $paged, 'order' =>'DESC', 'orderby' => 'date', 'tax_query' => array( 'relation' => 'OR', array( 'taxonomy' => 'product_cat', 'field' => 'term_id', 'terms' => $gallery_posts_categories, 'operator' => empty($gallery_posts_categories) ? 'EXISTS': 'IN', ), array( 'taxonomy' => 'category', 'field' => 'term_id', 'terms' => $gallery_posts_categories, 'operator' => empty($gallery_posts_categories) ? 'EXISTS': 'IN', ), ), ); $wp_query = new WP_Query($args); if ($gallery_posts_enable){ ?> get_param('review_posts_enable'); $review_posts_carousel = ($wdwt_front->get_param('review_posts_carousel',array(),false)) ? "1" : "0"; $review_posts_time_interval = $wdwt_front->get_param('review_posts_time_interval',array(),"5"); $review_posts_stop_hover = ($wdwt_front->get_param('review_posts_stop_hover',array(),true)) ? "1" : "0"; $review_posts_title = $wdwt_front->get_param('review_posts_title'); $review_posts_description = $wdwt_front->get_param('review_posts_description'); $review_posts_categories = $wdwt_front->get_param('review_posts_categories',array(), array()); $review_posts_categories = (isset($review_posts_categories[0]) && empty($review_posts_categories[0]) ) ? array() : $review_posts_categories; $date_enable = $wdwt_front->get_param('date_enable'); $args = array( 'paged' =>'1', 'order' =>'DESC', 'orderby' => 'date', 'tax_query' => array( 'relation' => 'OR', array( 'taxonomy' => 'product_cat', 'field' => 'term_id', 'terms' => $review_posts_categories, 'operator' => empty($review_posts_categories) ? 'EXISTS': 'IN', ), array( 'taxonomy' => 'category', 'field' => 'term_id', 'terms' => $review_posts_categories, 'operator' => empty($review_posts_categories) ? 'EXISTS': 'IN', ), ), ); $wp_query = new WP_Query($args); if ($review_posts_enable){ if($wp_query->have_posts()):?>

get_param('home_middle_diagrams', array(), array('')); $home_middle_diagrams_id = apply_filters( 'wpml_object_id', $home_middle_diagrams_id[0], 'page' ); $home_middle_diagrams_enable = $wdwt_front->get_param('home_middle_diagrams_enable'); $blog_style = $wdwt_front->blog_style(); if($home_middle_diagrams_id ){ $featured_diagrams=get_post($home_middle_diagrams_id); } $sauron_meta_data = get_post_meta($home_middle_diagrams_id, WDWT_META, true); $show_diagram_page = true; if(!isset($featured_diagrams) || $featured_diagrams==NULL){ $show_diagram_page = false; } if($sauron_meta_data!="" && !empty($sauron_meta_data) && $show_diagram_page){ $diagram_control = (isset($sauron_meta_data["diagram_control"]) ? $sauron_meta_data["diagram_control"] : 'horizontal'); $percent_width = (isset($sauron_meta_data["percent_width"]) ? $sauron_meta_data["percent_width"] : '400'); $percent_height = (isset($sauron_meta_data["percent_height"]) ? $sauron_meta_data["percent_height"] : '37'); $hide_percent = (isset($sauron_meta_data["hide_percent"]) ? $sauron_meta_data["hide_percent"] : 'true'); $diagram_test_title = (isset($sauron_meta_data["diagram_test_title"]) ? $sauron_meta_data["diagram_test_title"] : ''); $diagram_test_percent = (isset($sauron_meta_data["diagram_test_percent"]) ? $sauron_meta_data["diagram_test_percent"] : ''); $percent_header_color = (isset($sauron_meta_data["percent_header_color"]) ? $sauron_meta_data["percent_header_color"] : '#000000'); $percent_background_color = (isset($sauron_meta_data["percent_background_color"]) ? $sauron_meta_data["percent_background_color"] : '#ffffff'); $percent_completed_color = (isset($sauron_meta_data["percent_completed_color"]) ? $sauron_meta_data["percent_completed_color"] : '#878787'); $percent_to_do_color = (isset($sauron_meta_data["percent_to_do_color"]) ? $sauron_meta_data["percent_to_do_color"] : '#c8c8c8'); $percent_text_color = (isset($sauron_meta_data["percent_text_color"]) ? $sauron_meta_data["percent_text_color"] : '#000000'); $percent_time = (isset($sauron_meta_data["percent_time"]) ? $sauron_meta_data["percent_time"] : '1000'); $percent_title = explode('||wd||',$diagram_test_title); $percent = explode('||wd||',$diagram_test_percent); if($home_middle_diagrams_enable){ ?>
get_param('pinned_posts'); $pinned_posts_id = apply_filters( 'wpml_object_id', $pinned_posts[0], 'post' ); $pinned_posts_enable = $wdwt_front->get_param('pinned_post_enable'); $pinned_bg_img = $wdwt_front->get_param('pinned_bg_img'); $blog_style = $wdwt_front->blog_style(); $featured_post=get_post($pinned_posts_id); if($featured_post==NULL){ $featured_post=get_posts(); $featured_post=$featured_post[0]; } if ($pinned_posts_enable && $featured_post){ ?>
ID,array(260,220)); */?>

post_title; ?>

post_content ); else echo do_shortcode($featured_post->post_content); ?>
get_param('twitter_icon_show'); $twitter_url = $wdwt_front->get_param('twitter_url'); $linkedin_icon_show = $wdwt_front->get_param('linkedin_icon_show'); $linkedin_url = $wdwt_front->get_param('linkedin_url'); $facebook_icon_show = $wdwt_front->get_param('facebook_icon_show'); $facebook_url = $wdwt_front->get_param('facebook_url'); $google_icon_show = $wdwt_front->get_param('google_icon_show'); $google_url = $wdwt_front->get_param('google_url'); $instagram_icon_show = $wdwt_front->get_param('instagram_icon_show'); $instagram_url = $wdwt_front->get_param('instagram_url'); $pinterest_icon_show = $wdwt_front->get_param('pinterest_icon_show'); $pinterest_url = $wdwt_front->get_param('pinterest_url'); $youtube_icon_show = $wdwt_front->get_param('youtube_icon_show'); $youtube_url = $wdwt_front->get_param('youtube_url'); $tumblr_icon_show = $wdwt_front->get_param('tumblr_icon_show'); $tumblr_url = $wdwt_front->get_param('tumblr_url'); $rss_icon_show = $wdwt_front->get_param('rss_icon_show'); $rss_url = $wdwt_front->get_param('rss_url'); $follow_title = $wdwt_front->get_param('follow_title'); $follow_description = $wdwt_front->get_param('follow_description'); if(( $facebook_icon_show=='on' && $facebook_url != "" ) || ( $google_icon_show=='on' && $google_url != "" ) || ( $linkedin_icon_show=='on' && $linkedin_url != "" ) || ( $twitter_icon_show=='on' && $twitter_url != "") || ( $instagram_icon_show=='on' && $instagram_url != "") || ( $pinterest_icon_show=='on' && $pinterest_url != "") || ( $youtube_icon_show=='on' && $youtube_url != "") || ( $tumblr_icon_show=='on' && $tumblr_url != "") || ( $rss_icon_show=='on' && $rss_url != "")){ ?>

> " target="_blank" title="Twitter" class="round">
> " target="_blank" title="Facebook" class="round">
> " target="_blank" title="LinkedIn" class="round">
> " target="_blank" title="Google Plus" class="round">
> " target="_blank" title="Instagram" class="round">
> " target="_blank" title="Pinterest" class="round">
> " target="_blank" title="Youtube" class="round">
> " target="_blank" title="Tumblr" class="round">
> " target="_blank" title="RSS" class="round">
get_param('date_enable'); $grab_image = $wdwt_front->get_param('grab_image'); $blog_style = $wdwt_front->blog_style(); if(have_posts()) : while (have_posts()) : the_post(); /*ttt!!!*/ /*var_dump(get_the_ID());*/ ?>

max_num_pages > 2 ){ ?>
' . $categories_list . ''; } $tag_list = get_the_tag_list( '', ' , ' ); if ( $tag_list ) { echo '' . $tag_list . ''; } } }