'tpcrn-social-icons-widget', 'description' => 'Display Social Icons' ); $control_ops = array($control_ops = array('id_base' => 'bresponZive_themepacific_social_icons-widget')); $this->WP_Widget( 'social','ThemePacific: Social Icons', $widget_ops, $control_ops ); } function widget( $args, $instance ) { extract( $args ); $title = apply_filters('widget_title', $instance['title'] ); $fb = $instance['fb']; $gp = $instance['gp']; $rss = $instance['rss']; $tw = $instance['tw']; /* Before widget (defined by themes). */ echo $before_widget; if($title) echo $before_title . $title . $after_title; /* Display the widget title if one was input (before and after defined by themes). */ ?>
__('Social' , 'bresponZive') , 'rss' =>__('RSS' , 'bresponZive') , 'fb' =>__('Facebook' , 'bresponZive') , 'gp' =>__('Google+' , 'bresponZive') , 'tw' =>__('Twitter' , 'bresponZive') ); $instance = wp_parse_args( (array) $instance, $defaults ); ?>