* @copyright Copyright (c) 2018, Radiuzz * @link http://caelum.radiuzz.com * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2 or later */ /** * Core class used to implement a About Author widget. * * @see WP_Widget */ class caelum_Widget_Social_Icons extends WP_Widget { public function __construct() { parent::__construct( 'social-icons-widget', // Widget ID esc_html__( 'caelum: Social Icons', 'caelum' ), // Widget Name. array( 'classname' => 'social-icons-widget', // Widget Class. 'description' => esc_html__( 'A widget that displays social media icons.', 'caelum' ), // Widget Description. ) ); } /** * Outputs the content for the current About me widget instance. * * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance Settings for the current Archives widget instance. */ function widget( $args, $instance ) { extract( $args ); /* Our variables from the widget settings. */ $title = apply_filters('widget_title', $instance['title'] ); /* Before widget */ echo $before_widget; /* Display the widget title if one was input. */ if ( $title ) echo $before_title . $title . $after_title; ?>
'Follow Me'); $instance = wp_parse_args( (array) $instance, $defaults ); ?>