get_settings('widget_title');
$posts_number = $this->get_settings('posts_number');
$enable_category_meta = $this->get_settings('enable_category_meta');
$category_meta_text = $this->get_settings('category_meta_text');
$display_category_option = $this->get_settings('display_category_option');
$number_of_cat = $this->get_settings('number_of_cat');
$enable_author_meta = $this->get_settings('enable_author_meta');
$display_author_option = $this->get_settings('display_author_option');
$author_text = $this->get_settings('author_text');
$enable_date_meta = $this->get_settings('enable_date_meta');
$date_format = $this->get_settings('date_format');
$display_type = $this->get_settings('display_type');
$offset_posts_number = $this->get_settings('offset_posts_number');
$categories_selected = $this->get_settings('categories_selected');
// Create the posts query.
$get_featured_posts = $this->query_posts($posts_number, $display_type, $categories_selected, $offset_posts_number);
?>
widget_title($widget_title);
?>
have_posts()) :
$get_featured_posts->the_post();
$title_font_size = 'entry-title-small';
$thumbnail_image_class = 'entry-image-medium';
$thumbnail_image_size = 'medium';
$main_div_loop_wrapper_class = 'wpi-post-module-grid wpi-post wpi-tile-post bloglex-module-grid--half elementor-custom-column';
if (1 == $count) {
$title_font_size = 'entry-title-big';
$thumbnail_image_class = 'entry-image-large';
$thumbnail_image_size = 'large';
$main_div_loop_wrapper_class = 'wpi-post-module-grid wpi-post wpi-tile-post';
} elseif (2 == $count) {
$title_font_size = 'entry-title-medium';
$thumbnail_image_class = 'entry-image-big';
$thumbnail_image_size = 'medium_large';
$main_div_loop_wrapper_class = 'wpi-post-module-grid wpi-post wpi-tile-post bloglex-module-grid--full elementor-custom-column';
}
if ((1 == $count) || (2 == $count)) :
echo '
';
endif;
if (2 == $count) :
echo '
';
endif;
?>
the_post_thumbnail($thumbnail_image_size); ?>
the_title($font_class);
?>
';
endif;
$count++;
endwhile;
if (2 < $count) {
echo '
';
echo '
';
}
// Reset the postdata.
wp_reset_postdata();
?>