'recent_post_widget_blocade', 'description' => 'This widget blog recent posts with post thumbnail' ); parent::__construct('recent-post-widget',__('Blocade -Recet Post ','blocade'),$widget_ops); } function widget($args,$instance) { extract($args); $title = apply_filters('widget_title',empty($instance['title']) ? 'Recent Posts' : $instance['title'],$instance,$this->id_base); $show_date = isset($instance['show_date']) ? $instance['show_date'] : false ; $show_excerpt = isset($instance['show_excerpt']) ? $instance['show_excerpt'] : false ; $show_more_text = isset($instance['show_more_text']) ? $instance['show_more_text'] : false ; $comment_count = isset($instance['comment_count']) ? $instance['comment_count'] : false ; $more = empty($instance['more']) ? '' : $instance['more'] ; $more_length = empty($instance['more_length']) ? '25' : $instance['more_length'] ; $brpw_args = array( 'showposts' => 5, ); $brpw_widget = null; $brpw_widget = new WP_Query($brpw_args); echo $before_widget; echo $before_title; echo $instance["title"]; echo $after_title; echo "
id="get_field_id('show_date'); ?>" name="get_field_name('show_date'); ?>" />
id="get_field_id('comment_count'); ?>" name="get_field_name('comment_count'); ?>" />
id="get_field_id('show_more_text'); ?>" name="get_field_name('show_more_text'); ?>" />
id="get_field_id('show_excerpt'); ?>" name="get_field_name('show_excerpt'); ?>" />