'appetizo_social_widget', 'description' => __('A widget that displays your social icons', 'appetizo') ); /* Widget control settings. */ $control_ops = array( 'width' => 250, 'height' => 350, 'id_base' => 'appetizo_social_widget' ); /* Create the widget. */ parent::__construct( 'appetizo_social_widget', __('Appetizo: Social Icons', 'appetizo'), $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', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base); $facebook = !empty($instance['facebook']) ? $instance['facebook'] : ''; $twitter = !empty($instance['twitter']) ? $instance['twitter'] : ''; $instagram = !empty($instance['instagram']) ? $instance['instagram'] : ''; $bloglovin = !empty($instance['bloglovin']) ? $instance['bloglovin'] : ''; $snapchat = !empty($instance['snapchat']) ? $instance['snapchat'] : ''; $youtube = !empty($instance['youtube']) ? $instance['youtube'] : ''; $tumblr = !empty($instance['tumblr']) ? $instance['tumblr'] : ''; $pinterest = !empty($instance['pinterest']) ? $instance['pinterest'] : ''; $dribbble = !empty($instance['dribbble']) ? $instance['dribbble'] : ''; $soundcloud = !empty($instance['soundcloud']) ? $instance['soundcloud'] : ''; $vimeo = !empty($instance['vimeo']) ? $instance['vimeo'] : ''; $linkedin = !empty($instance['linkedin']) ? $instance['linkedin'] : ''; $rss = !empty($instance['rss']) ? $instance['rss'] : ''; /* Before widget (defined by themes). */ echo $args['before_widget']; /* Display the widget title if one was input (before and after defined by themes). */ if (!empty($title)) { echo $args['before_title'] . esc_html($title) . $args['after_title']; } ?>
__('Subscribe & Follow','appetizo'), 'facebook' => 'on', 'twitter' => 'on', 'instagram' => 'on', 'pinterest' => '', 'bloglovin' => '', 'snapchat' => '', 'tumblr' => '', 'youtube' => '', 'dribbble' => '', 'soundcloud' => '', 'vimeo' => '', 'linkedin' => '', 'rss' => ''); $instance = wp_parse_args( (array) $instance, $defaults ); ?>
/>
/>
/>
/>
/>
/>
/>
/>
/>
/>
/>
/>
/>