';
$args = array(
'orderby' => 'date',
'order' => 'DESC',
'post_type' => 'post',
'post_status' => 'publish',
'posts_per_page' => '5',
);
$stype = 'slider';
echo '';
$loop = new WP_Query($args);
if ( $loop->have_posts() ) {
while ( $loop->have_posts() ) : $loop->the_post();
global $post;
$img = ascend_get_image_array($slidewidth, $slideheight, true, null, null, null, true);
echo '
';
endwhile;
wp_reset_postdata();
} else {
echo '
'.__('Sorry, no entries found.', 'ascend').'';
}
echo '
';
echo '
';
} else if($type == 'fullwidth' ) {
ascend_build_slider_home_fullwidth($slides, $slidewidth, $slideheight, $class, $id, $type, $captions, $autoplay, $pausetime, 'true', $transtype, $transtime, $title_data, $title_small_data, $subtitle_data, $subtitle_small_data, $talign);
} else if($type == 'carousel') {
ascend_build_slider_home($slides, $slidewidth, $slideheight, $class, $id, $type, $captions, $autoplay, $pausetime, 'true', $transtype, $transtime, $title_data, $title_small_data, $subtitle_data, $subtitle_small_data, $talign);
} else {
echo '';
ascend_build_slider_home($slides, $slidewidth, $slideheight, $class, $id, $type, $captions, $autoplay, $pausetime, 'true', $transtype, $transtime, $title_data, $title_small_data, $subtitle_data, $subtitle_small_data, $talign);
echo '
';
} ?>