__('Add your social profile.', 'moesia') ); parent::__construct( 'nav_menu', __('Moesia: Social Profile', 'moesia'), $widget_ops ); } function widget($args, $instance) { // Get menu $nav_menu = ! empty( $instance['nav_menu'] ) ? wp_get_nav_menu_object( $instance['nav_menu'] ) : false; if ( !$nav_menu ) return; /** This filter is documented in wp-includes/default-widgets.php */ $instance['title'] = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); echo $args['before_widget']; if ( !empty($instance['title']) ) echo $args['before_title'] . $instance['title'] . $args['after_title']; ?>
false, 'menu' => $nav_menu, 'link_before' => '', 'link_after' => '', 'menu_class' => 'menu clearfix' ) ); ?>
'name' ) ); // If no menus exists, direct the user to go and create some. if ( !$menus ) { echo '

'. sprintf( __('No menus have been created yet. Create some.', 'moesia'), admin_url('nav-menus.php') ) .'

'; return; } ?>

Appearance > Menus and create a menu containing links to your social profiles, then assign that menu here. Supported networks: Facebook, Twitter, Google Plus, Instagram, Dribble, Vimeo, Linkedin, Youtube, Flickr, Pinterest, Tumblr, Foursquare, Behance.', 'moesia'); ?>