! empty( $attributes['showImage'] ), 'post-date' => ! empty( $attributes['showDate'] ), 'post-author' => ! empty( $attributes['showAuthor'] ), 'post-category' => ! empty( $attributes['showCategory'] ), 'comments' => ! empty( $attributes['showComments'] ), 'views' => ! empty( $attributes['showViews'] ), 'post-excerpt' => ! empty( $attributes['showExcerpt'] ), ); $post_ids = Awp_Popular_Post::get_post_ids( $post_count, $sort_by ); $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => 'awp_popular_post awp_widget' ) ); ?>