widget_cssclass = 'blog_tale widget_social_menu'; $this->widget_description = __("Displays social menu if you have set it(social menu)", 'blog-tale'); $this->widget_id = 'blog_tale_social_menu'; $this->widget_name = __('BT: Social Menu', 'blog-tale'); $this->settings = array( 'title' => array( 'type' => 'text', 'label' => __('Title', 'blog-tale'), ), ); parent::__construct(); } /** * Output widget. * * @see WP_Widget * * @param array $args * @param array $instance */ public function widget($args, $instance) { ob_start(); $this->widget_start($args, $instance); do_action( 'blog_tale_before_social_menu'); ?>
'social-menu', 'link_before' => '', 'link_after' => '', 'fallback_cb' => false, 'depth' => 1, 'menu_class' => false ) ); }else{ esc_html_e( 'Social menu is not set. You need to create menu and assign it to Social Menu on Menu Settings.', 'blog-tale' ); } ?>
widget_end($args); echo ob_get_clean(); } }