widget_cssclass = 'widget_applica_featured_posts'; $this->widget_description = __("Displays featured section with an image", 'applica'); $this->widget_id = 'applica_featured_posts'; $this->widget_name = __('Applica: Featured Section', 'applica'); $this->settings = array( 'title' => array( 'type' => 'text', 'label' => __('Title', 'applica'), ), 'description' => array( 'type' => 'textarea', 'label' => __('Section Description', 'applica'), ), 'featured_image' => array( 'type' => 'image', 'label' => __('Featured Image', 'applica'), ), 'button_text' => array( 'type' => 'text', 'label' => __('Button Text', 'applica'), ), 'button_url' => array( 'type' => 'url', 'label' => __('Button URL', 'applica'), ), 'button_text_2' => array( 'type' => 'text', 'label' => __('Button Text -2', 'applica'), ), 'button_url_2' => array( 'type' => 'url', 'label' => __('Button URL-2', 'applica'), ), ); parent::__construct(); } /** * Output widget. * * @param array $args * @param array $instance * @see WP_Widget * */ public function widget($args, $instance) { ob_start(); ?>