General Tab * * @package blogBox WordPress Theme * @copyright Copyright (c) 2012, Kevin Archibald * @license http://www.gnu.org/licenses/quick-guide-gplv3.html GNU Public License * @author Kevin Archibald */ // use widgets_init action hook to execute custom function add_action ( 'widgets_init','blogBox_social_links_register_widget' ); //register our widget function blogBox_social_links_register_widget() { register_widget ( 'blogBox_social_links_widget' ); } //widget class class blogBox_social_links_widget extends WP_Widget { //process the new widget function blogBox_social_links_widget() { $widget_ops = array( 'classname' => 'blogBox_social_links_widget_class', 'description' => __('Display social links','blogBox') ); $this->WP_Widget( 'blogBox_social_links_widget', __('blogBox Social Links Widget','blog-Box'), $widget_ops ); } // Form for widget setup function form ( $instance ) { $title = isset($instance['title']) ? esc_attr($instance['title']) : __('Social Links','blogBox'); ?>

Title :

'; If(esc_url($blogBox_option['bB_header_rss']) !=="") $html .= 'RSS FEED'; If(esc_url($blogBox_option['bB_header_linkedin']) !=="") $html .= 'Linkedin'; If(esc_url($blogBox_option['bB_header_twitter']) !=="") $html .= 'Twitter'; If(esc_url($blogBox_option['bB_header_facebook']) !=="") $html .= 'Facebook'; If(esc_url($blogBox_option['bB_header_delicious']) !=="") $html .= 'Delicious'; If(esc_url($blogBox_option['bB_header_google_plus']) !=="") $html .= 'Google+'; If(esc_url($blogBox_option['bB_header_digg']) !=="") $html .= 'Digg'; If(esc_url($blogBox_option['bB_header_pinterest']) !=="") $html .= 'Pinterest'; $html .= ''; echo $html; echo $after_widget; } } ?>