';
if ( $dleft ) {
$output .= '
'.wp_kses_post($dleft['title']).'
'.wp_kses_post( $dleft['desc'] ).'
';
}
$args = array(
'post_type' => $type,
'post_status' => 'publish',
'order' => 'DESC',
'posts_per_page' => $pnumber,
);
if ( 'c' === $nivm ) :
$args['cat'] = $mformat;
elseif ( 't' === $nivm ) :
$args['tag_id'] = $mformat;
endif;
if ( 'f' === $nivm ) :
$args['tax_query'] = array(
array(
'taxonomy' => 'post_format',
'field' => 'slug',
'terms' => array( 'post-format-' . $mformat ),
),
);
endif;
if ( $porder === 'popular' ) :
$args['meta_query'] = array(
'relation' => 'AND',
'_post_views' => array(
'key' => '_post_views',
'type' => 'NUMERIC',
'compare' => 'LIKE',
),
'king_like_count' => array(
'key' => 'king_like_count',
'type' => 'NUMERIC',
'compare' => 'LIKE',
),
);
$args['orderby'] = array(
'_post_views' => 'DESC',
'king_like_count' => 'DESC',
);
endif;
if ( $repeaters ) :
$output .= '';
endif;
$query = new WP_query( $args );
while ( $query->have_posts() ) :
$query->the_post();
ob_start();
get_template_part( 'template-parts/posts/content', 'toosimple-post' );
$output .= ob_get_contents();
ob_end_clean();
endwhile;
wp_reset_postdata();
$output .= '
';
return $output;
}
endif;
if ( ! function_exists( 'check_array' ) ) :
/**
* Check Array if added or not.
*
* @param