widget_cssclass = 'widget_applica_counter_posts'; $this->widget_description = __("Displays counter section with an image", 'applica'); $this->widget_id = 'applica_counter_posts'; $this->widget_name = __('Applica: Counter Section', 'applica'); $this->settings = array( 'title' => array( 'type' => 'text', 'label' => __('Title', 'applica'), ), 'description' => array( 'type' => 'textarea', 'label' => __('Section Description', 'applica'), ), 'counter_image' => array( 'type' => 'image', 'label' => __('Counter Image', 'applica'), ), 'counter_icon_1' => array( 'type' => 'text', 'label' => __('Counter Icon - 1', 'applica'), 'desc' => sprintf(__('For SVG Icon Click Here to see inbuild icon set', 'applica'), $icon_page_link), ), 'counter_title_1' => array( 'type' => 'textarea', 'label' => __('Counter Title - 1', 'applica'), ), 'counter_number_1' => array( 'type' => 'textarea', 'label' => __('Counter Number - 1', 'applica'), ), 'counter_icon_2' => array( 'type' => 'text', 'label' => __('Counter Icon - 2', 'applica'), 'desc' => sprintf(__('For SVG Icon Click Here to see inbuild icon set', 'applica'), $icon_page_link), ), 'counter_title_2' => array( 'type' => 'textarea', 'label' => __('Counter Title - 2', 'applica'), ), 'counter_number_2' => array( 'type' => 'textarea', 'label' => __('Counter Number - 2', 'applica'), ), 'counter_icon_3' => array( 'type' => 'text', 'label' => __('Counter Icon - 3', 'applica'), 'desc' => sprintf(__('For SVG Icon Click Here to see inbuild icon set', 'applica'), $icon_page_link), ), 'counter_title_3' => array( 'type' => 'textarea', 'label' => __('Counter Title - 3', 'applica'), ), 'counter_number_3' => array( 'type' => 'textarea', 'label' => __('Counter Number - 3', 'applica'), ), 'counter_icon_4' => array( 'type' => 'text', 'label' => __('Counter Icon - 4', 'applica'), 'desc' => sprintf(__('For SVG Icon Click Here to see inbuild icon set', 'applica'), $icon_page_link), ), 'counter_title_4' => array( 'type' => 'textarea', 'label' => __('Counter Title - 4', 'applica'), ), 'counter_number_4' => array( 'type' => 'textarea', 'label' => __('Counter Number - 4', 'applica'), ), ); parent::__construct(); } /** * Output widget. * * @param array $args * @param array $instance * @see WP_Widget * */ public function widget($args, $instance) { ob_start(); ?>