widget_cssclass = 'widget_applica_gallery_posts'; $this->widget_description = __("Displays gallery section with an image", 'applica'); $this->widget_id = 'applica_gallery_posts'; $this->widget_name = __('Applica: Gallery Section', 'applica'); $this->settings = array( 'title' => array( 'type' => 'text', 'label' => __('Title', 'applica'), ), 'description' => array( 'type' => 'textarea', 'label' => __('Section Description', 'applica'), ), 'gallery_image_1' => array( 'type' => 'image', 'label' => __('Gallery Image - 1', 'applica'), ), 'gallery_image_2' => array( 'type' => 'image', 'label' => __('Gallery Image - 2', 'applica'), ), 'gallery_image_3' => array( 'type' => 'image', 'label' => __('Gallery Image - 3', 'applica'), ), 'gallery_image_4' => array( 'type' => 'image', 'label' => __('Gallery Image - 4', 'applica'), ), 'gallery_image_5' => array( 'type' => 'image', 'label' => __('Gallery Image - 5', 'applica'), ), 'gallery_image_6' => array( 'type' => 'image', 'label' => __('Gallery Image - 6', 'applica'), ), ); parent::__construct(); } /** * Output widget. * * @param array $args * @param array $instance * @see WP_Widget * */ public function widget($args, $instance) { ob_start(); ?>