'widget_best_minimalist_recent_posts', 'description' => __('Displays recent blog entries.', 'best-minimalist') ); parent::__construct( 'widget_best_minimalist_recent_posts', __('Recent Posts','best-minimalist'), $widget_ops ); } function widget($args, $instance) { // Outputs the content of the widget extract($args); // Make before_widget, etc available. $widget_title = null; $number_of_posts = null; $widget_title = esc_attr(apply_filters( 'widget_title', empty( $instance['widget_title'] ) ? ( '' ) : $instance['widget_title'], $instance, $this->id_base )); $number_of_posts = esc_attr($instance['number_of_posts']); echo $before_widget; if (!empty($widget_title)) { echo $before_title . $widget_title . $after_title; } ?>
()