', esc_url(get_permalink()), esc_attr(get_the_time()), esc_attr(get_the_date('c')), esc_html(get_the_date()), esc_url(get_author_posts_url(get_the_author_meta('ID'))), esc_attr(sprintf(__('View all posts by %s', "business-elite"), get_the_author())), get_the_author() ); } /*----- PAGE/POST INFORMATION ------*/ public static function top_posts($paged = 1) { global $wdwt_front; $top_posts_enable = $wdwt_front->get_param('top_posts_enable'); $top_posts_title = stripcslashes($wdwt_front->get_param('top_posts_title')); $top_posts_description = stripslashes($wdwt_front->get_param('top_posts_description')); $top_posts_categories = $wdwt_front->get_param('top_posts_categories', array(), array('')); $top_posts_categories = isset($top_posts_categories[0]) && empty($top_posts_categories[0]) ? array() : $top_posts_categories; $orderby = $wdwt_front->get_param('top_posts_orderby', array(), array('date')); $orderby = $orderby[0]; $order = $wdwt_front->get_param('top_posts_order', array(), array('desc')); $order = $order[0]; if ($top_posts_enable) { $args = array( 'paged' => $paged, 'posts_per_page' => 3, 'orderby' => $orderby, 'order' => $order, 'tax_query' => array( 'relation' => 'OR', array( 'taxonomy' => 'product_cat', 'field' => 'term_id', 'terms' => $top_posts_categories, 'operator' => empty($top_posts_categories) ? 'EXISTS': 'IN', ), array( 'taxonomy' => 'category', 'field' => 'term_id', 'terms' => $top_posts_categories, 'operator' => empty($top_posts_categories) ? 'EXISTS': 'IN', ), ), ); $wp_query = new WP_Query($args); if ($wp_query->have_posts()) { ?>

1) { ?> max_num_pages) { ?> get_param('category_tabs_enable'); $category_tabs_categories2 = $wdwt_front->get_param('category_tabs_categories', array(), array()); $category_tabs_categories = array(); foreach ($category_tabs_categories2 as $category_id) { $category_translated_id = apply_filters('wpml_object_id', $category_id, 'category'); if ($category_translated_id) { array_push($category_tabs_categories, $category_translated_id); } } $args = array( 'orderby' => 'name', 'order' => 'ASC' ); $categories = get_categories($args); $lang_defined = defined('ICL_LANGUAGE_CODE'); if ($lang_defined) { $lang_current = ICL_LANGUAGE_CODE; } else { $lang_current = 0; } if ($category_tabs_enable) { if (empty($category_tabs_categories)) { $category_tabs_categories = array(1);/*only uncategorized*/ } ?>
switch_lang($lang); } $lang_current = $lang ? $lang : 0; $cat_id = array($cat_id); $args = array('posts_per_page' => 3, 'orderby' => 'date', 'order' => 'DESC', 'paged' => $cat_paged, 'tax_query' => array( 'relation' => 'OR', array( 'taxonomy' => 'product_cat', 'field' => 'term_id', 'terms' => $cat_id, 'operator' => empty($cat_id) ? 'EXISTS' : 'IN', ), array( 'taxonomy' => 'category', 'field' => 'term_id', 'terms' => $cat_id, 'operator' => empty($cat_id) ? 'EXISTS' : 'IN', ), ), ); $tabs_query = new WP_Query($args); if ($tabs_query->have_posts()) : while ($tabs_query->have_posts()) : $tabs_query->the_post(); $url = wp_get_attachment_url(get_post_thumbnail_id(get_the_ID())); $url_d = get_template_directory_uri('template_url') . '/images/default.png'; $style = "style='background:url(" . $url . ") no-repeat center; background-size:cover;'"; $style_d = "style='background:url(" . $url_d . ") no-repeat center; background-size:100%;'"; $listt = '
  • '; if (has_post_thumbnail()) { $listt .= '

    ' . get_the_title() . '

    '; } else { $listt .= '

    ' . get_the_title() . '

    '; } $listt .= '

    ' . get_the_title() . '

    ' . substr(strip_tags(get_the_excerpt()), 0, 250) . '...

    '; if ($wdwt_front->get_param('date_enable')) { $listt .= '
    ' . get_the_time('F d, Y') . '
    '; } $listt .= '
  • '; echo $listt; endwhile;endif; $queried_object = $tabs_query->get_queried_object();; $queried_term_id = $queried_object->term_taxonomy_id; if ($tabs_query->query['paged'] > 1) { ?> query['paged'] < $tabs_query->max_num_pages) { ?> get_param('featured_posts'); $featured_posts = isset($featured_posts[0]) ? $featured_posts[0] : ''; $featured_post_enable = $wdwt_front->get_param('featured_post_enable'); $featured_bg_img = esc_url(trim($wdwt_front->get_param('featured_bg_img'))); $featured_post_id = apply_filters('wpml_object_id', $featured_posts, 'post'); if (!is_null($featured_post_id)) { $featured = get_post($featured_post_id); } else { $featured = null; } if ($featured_post_enable && !is_null($featured)) { if ($featured_bg_img != "") { ?>

    post_title; ?>

    ID); ?>

    post_title; ?>

    get_param('content_posts_enable'); $content_posts_title = $wdwt_front->get_param('content_posts_title'); $lbox_disable = $wdwt_front->get_param('lbox_disable'); $content_posts_description = stripslashes($wdwt_front->get_param('content_posts_description')); $content_posts_categories = $wdwt_front->get_param('content_posts_categories'); $content_posts_categories = isset($content_posts_categories [0]) && empty($content_posts_categories [0]) ? array() : $content_posts_categories ; $orderby = $wdwt_front->get_param('content_posts_orderby', array(), array('date')); $orderby = $orderby[0]; $order = $wdwt_front->get_param('content_posts_order', array(), array('desc')); $order = $order[0]; $lbox_width = $wdwt_front->get_param('lbox_image_width'); $lbox_height = $wdwt_front->get_param('lbox_image_height'); $n_of_content_post = get_option('posts_per_page', 3); if ($content_posts_enable && $n_of_content_post != 0) { ?>
    $n_of_content_post, 'paged' => $paged, 'order' => $order, 'orderby' => $orderby, 'tax_query' => array( 'relation' => 'OR', array( 'taxonomy' => 'product_cat', 'field' => 'term_id', 'terms' => $content_posts_categories, 'operator' => empty($content_posts_categories) ? 'EXISTS': 'IN', ), array( 'taxonomy' => 'category', 'field' => 'term_id', 'terms' => $content_posts_categories, 'operator' => empty($content_posts_categories) ? 'EXISTS': 'IN', ), ), ); $wp_query = new WP_Query($args); if ($wp_query->have_posts()) { ?>

    have_posts()) { $wp_query->the_post(); $tumb_id = get_post_thumbnail_id(get_the_ID()); $thumb_url = wp_get_attachment_image_src($tumb_id, 'full'); $has_image = true; if ($thumb_url) { $thumb_url = $thumb_url[0]; } else { $thumb_url = self::catch_that_image(); $has_image = $thumb_url['image_catched']; $thumb_url = $thumb_url['src']; } $background_image = $thumb_url; ?>

    get_param('date_enable')) { ?>

    1) { ?> max_num_pages) { ?>
    bottom_advertisment(); ?> get_param('portfolio_posts_enable'); $portfolio_title = $wdwt_front->get_param('portfolio_title'); $portfolio_posts_lightbox = $wdwt_front->get_param('portfolio_posts_lightbox', array(), 'lightbox'); $lbox_disable = $wdwt_front->get_param('lbox_disable'); $portfolio_description = stripslashes($wdwt_front->get_param('portfolio_description')); $portfolio_categories = $wdwt_front->get_param('portfolio_categories'); $portfolio_categories = isset($portfolio_categories [0]) && empty($portfolio_categories [0]) ? array() : $portfolio_categories ; $orderby_portfolio = $wdwt_front->get_param('portfolio_orderby', array(), array('date')); $orderby_portfolio = $orderby_portfolio[0]; $order_portfolio = $wdwt_front->get_param('portfolio_order', array(), array('desc')); $order_portfolio = $order_portfolio[0]; $grab_image = $wdwt_front->get_param('grab_image'); $cat_checked = 0; $post_count = 0; $printed_featured = false; $lbox_width = $wdwt_front->get_param('lbox_image_width'); $lbox_height = $wdwt_front->get_param('lbox_image_height'); if ($portfolio_posts_enable) { $args = array("paged" => $paged, "posts_per_page" => 6, "orderby" => 'date', 'orderby' => $orderby_portfolio, 'order' => $order_portfolio, 'tax_query' => array( 'relation' => 'OR', array( 'taxonomy' => 'product_cat', 'field' => 'term_id', 'terms' => $portfolio_categories, 'operator' => empty($portfolio_categories) ? 'EXISTS': 'IN', ), array( 'taxonomy' => 'category', 'field' => 'term_id', 'terms' => $portfolio_categories, 'operator' => empty($portfolio_categories) ? 'EXISTS': 'IN', ), ), ); $wp_query = new WP_Query($args); if ($wp_query->have_posts()) { ?>

    1) { ?> max_num_pages) { ?>
    get_param('contact_us_enable'); $contact_us_bg = esc_url(trim($wdwt_front->get_param('contact_us_bg'))); $contact_us_title = $wdwt_front->get_param('contact_us_title'); $contact_us_description = stripslashes($wdwt_front->get_param('contact_us_description')); $contact_us_name = trim($wdwt_front->get_param('contact_us_name')); $contact_us_address = trim($wdwt_front->get_param('contact_us_address')); $contact_us_mail = trim($wdwt_front->get_param('contact_us_mail')); $contact_us_showmail = true; ?>

    get_param('twitter_enable'); $twitter_url = $wdwt_front->get_param('twitter_url'); /*2*/ $facebook_enable = $wdwt_front->get_param('facebook_enable'); $facebook_url = $wdwt_front->get_param('facebook_url'); /*3*/ $rss_enable = $wdwt_front->get_param('rss_enable'); $rss_url = $wdwt_front->get_param('rss_url'); /*4*/ $youtube_enable = $wdwt_front->get_param('youtube_enable'); $youtube_url = $wdwt_front->get_param('youtube_url'); /*5*/ $googlep_enable = $wdwt_front->get_param('googlep_enable'); $googlep_url = $wdwt_front->get_param('googlep_url'); /*6*/ $instagram_enable = $wdwt_front->get_param('instagram_enable'); $instagram_url = $wdwt_front->get_param('instagram_url'); /*7*/ $linkedin_enable = $wdwt_front->get_param('linkedin_enable'); $linkedin_url = $wdwt_front->get_param('linkedin_url'); ?>
    get_param('date_enable'); $grab_image = $wdwt_front->get_param('grab_image'); $blog_style = $wdwt_front->blog_style(); $is_index = is_home(); ?>

    max_num_pages > 2) { ?>
    bottom_advertisment(); wp_reset_query(); ?>
    ', esc_url(get_permalink()), esc_attr(get_the_time()), esc_attr(get_the_date('c')), esc_html(get_the_date()) ); } /*-------------------*/ public static function entry_meta() { $categories_list = get_the_category_list(', '); echo '
    '; if ($categories_list) { echo ' ' . $categories_list . ''; } $tag_list = get_the_tag_list('', ' , '); if ($tag_list) { echo '' . $tag_list . ''; } echo '
    '; } }