'recent_works', 'description' => 'Recent works from the portfolio.'); $control_ops = array('id_base' => 'recent_works-widget'); $this->WP_Widget('recent_works-widget', 'Avada: Recent Works', $widget_ops, $control_ops); } function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', $instance['title']); $number = $instance['number']; echo $before_widget; if($title) { echo $before_title . $title . $after_title; } ?>