'best_social_widget', 'description' => __('Displays icons with linked to RSS / Facebook/ Twitter / Flickr / YouTube', 'best') ); /* Widget control settings. */ $control_ops = array( 'width' => 250, 'height' => 350, 'id_base' => 'best_social_widget' ); /* Create the widget. */ $this->WP_Widget( 'best_social_widget', __('Best :: Social icons', 'best'), $widget_ops, $control_ops ); } /** * How to display the widget on the screen. */ function widget( $args, $instance ) { extract( $args ); /* Our variables from the widget settings. */ $title = apply_filters('widget_title', $instance['title'] ); $rss = $instance['rss']; $facebook = $instance['facebook']; $twitter = $instance['twitter']; $youtube = $instance['youtube']; $flickr = $instance['flickr']; /* Before widget (defined by themes). */ echo $before_widget; /* Display the widget title if one was input (before and after defined by themes). */ if ( $title ) echo $before_title . $title . $after_title; ?>
Best RSS Facebook Twitter YouTube Flickr
__('Follow me','best_social_widget'), 'rss' => '', 'facebook' => '', 'twitter' => '', 'youtube' => '', 'flickr' => ''); $instance = wp_parse_args( (array) $instance, $defaults ); ?>