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){ ?>
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;">
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){ ?>
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 != "")){
?>