', esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); } /*----- PAGE/POST INFORMATION ------*/ public static function posted_on_single() { printf(' ', 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() ); } /*----- HOME TOP POST ------*/ public static function top_posts($paged = 1) { global $wdwt_front; $top_posts_enable = $wdwt_front->get_param('top_posts_enable'); $top_posts_title = $wdwt_front->get_param('top_posts_title'); $top_posts_description = stripslashes( $wdwt_front->get_param('top_posts_description')); $top_posts_categories = implode(",", $wdwt_front->get_param('top_posts_categories', array(), array(''))) ; $home_top_posts = get_option( 'posts_per_page', 2); if($top_posts_enable && $home_top_posts!=0){ $args = array('paged'=> $paged, 'posts_per_page'=>3, 'cat' => $top_posts_categories, 'orderby' => 'date', 'order'=>'DESC'); $wp_query = new WP_Query($args); if($wp_query->have_posts()) { ?>

1){ ?> max_num_pages){ ?> get_param('category_tabs_enable'); $category_tabs_categories = $wdwt_front->get_param('category_tabs_categories', array(), array('')); $args = array( 'orderby' => 'name', 'order' => 'ASC' ); $categories = get_categories($args); if ($category_tabs_enable){ if( empty($category_tabs_categories)){ $category_tabs_categories = array(1);/*only uncategorized*/ } ?>
3, 'cat' =>$cat_id, 'order'=>'DESC', 'paged' => $cat_paged ); $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; if($tabs_query->query['paged'] >1){ ?> query['paged'] < $tabs_query->max_num_pages){ ?> get_param('featured_posts'); $featured_post_enable = $wdwt_front->get_param('featured_post_enable'); $featured_bg_img = esc_url(trim($wdwt_front->get_param('featured_bg_img'))); $featured = get_post(isset($featured_posts[0]) ? $featured_posts[0] : '' ); if($featured_post_enable && $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 = implode(",", $wdwt_front->get_param('content_posts_categories')); $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, 'cat' => self::remove_last_comma($content_posts_categories), 'paged'=> $paged, 'order'=>'DESC', ); $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 = implode(",", $wdwt_front->get_param('portfolio_categories')) ; $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 && $portfolio_categories!=0){ $args = array( "paged" => $paged, "posts_per_page"=>6, "cat"=>$portfolio_categories, "orderby"=>'date', "order"=>"DESC"); $wp_query = new WP_Query($args); if($wp_query->have_posts()) { ?>

    1){ ?> max_num_pages){ ?>
    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'); ?>
    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('date_enable'); $grab_image = $wdwt_front->get_param('grab_image'); $blog_style = $wdwt_front->blog_style(); ?>

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