'world_news wow fadeInUp', 'description' => esc_html__( 'Displays posts. Place it in "Front Page Widget Area Top" widget area.', 'newspaper-magazine' ) ); parent::__construct( 'news-layout-widget-two', esc_html__( 'News Widget Two', 'newspaper-magazine' ), $opts ); } function widget( $args, $instance ){ $icon = ! empty( $instance[ 'icon' ] ) ? $instance[ 'icon' ] : ''; $title = apply_filters( 'widget_title', ! empty( $instance['title'] ) ? $instance['title'] : '', $instance, $this->id_base ); $cat = ! empty( $instance[ 'cat' ] ) ? $instance[ 'cat' ] : absint( 0 ); echo $args[ 'before_widget' ]; echo $args[ 'before_title' ]; ?> absint( $cat ), 'posts_per_page' => 6, ); $query = new WP_Query( $arguments ); ?>
have_posts() ) : while( $query->have_posts() ) : $query->the_post(); if( $i <= 2 ) : ?>
have_posts() ) : while( $query->have_posts() ) : $query->the_post(); if( $i > 2 ) : ?>
'img-responsive full-img' )); ?>

'name', 'hide_empty' => 0, 'id' => $this->get_field_id( 'cat' ), 'name' => $this->get_field_name( 'cat' ), 'class' => 'widefat', 'taxonomy' => 'category', 'selected' => absint( $cat ), 'show_option_all' => esc_html__( 'All Categories', 'newspaper-magazine' ) ); wp_dropdown_categories( $cat_args ); ?>