'.esc_attr($category_info->name).'
'; echo '';
$block1_args = array(
'category_name'=>$block1_cat,
'post_status'=>'publish',
'posts_per_page'=>$posts_for_block1,
'order'=>'DESC'
);
$block1_query = new WP_Query($block1_args);
$b_counter = 0;
$total_posts_block1 = $block1_query->found_posts;
if($block1_query->have_posts()){
while($block1_query->have_posts()){
$b_counter++;
$block1_query->the_post();
$b1_image_id = get_post_thumbnail_id();
$b1_big_image_path = wp_get_attachment_image_src($b1_image_id,'accesspress-mag-block-big-thumb',true);
$b1_small_image_path = wp_get_attachment_image_src($b1_image_id,'accesspress-mag-block-small-thumb',true);
$b1_image_alt = get_post_meta($b1_image_id,'_wp_attachment_image_alt',true);
?>
';} if($b_counter> 2 && $b_counter==3){echo '';}
if($b_counter >2 && $b_counter==$total_posts_block1){echo '
';}
if($b_counter==2){echo '