';
/*Slide*/
global $acmeblog_customizer_all_values;
if ( isset($acmeblog_customizer_all_values['acmeblog-front-cat']) && !empty($acmeblog_customizer_all_values['acmeblog-front-cat']) ) { ?>
$acmeblog_customizer_all_values['acmeblog-front-cat'],
'posts_per_page' => $acmeblog_number,
'no_found_rows' => true,
'post_status' => 'publish',
'ignore_sticky_posts' => true
);
$slider_query = new WP_Query($acmeblog_cat_post_args);
if ($slider_query->have_posts()):
while ($slider_query->have_posts()): $slider_query->the_post();
if (has_post_thumbnail()) {
$image_url = wp_get_attachment_image_src(get_post_thumbnail_id(), 'medium');
} else {
$image_url[0] = get_template_directory_uri() . '/assets/img/slider-placeholder.jpg';
}
?>
-
";
$acmeblog_content_id = "home-content";
} else {
$acmeblog_content_id = "content";
}
?>
';
}
}
endif;
add_action( 'acmeblog_action_after_header', 'acmeblog_before_content', 10 );