add_static_footer_css($template_url, 'essb-social-followers-counter'); } class ESSBSocialProfilesWidget extends WP_Widget { protected $widget_slug = "easy-social-profile-buttons"; public function __construct() { $options = array( 'description' => __( 'Social Profiles' , 'essb' ), 'classname' => $this->widget_slug."-class" ); parent::__construct( false , __( 'Easy Social Share Buttons: Social Profiles' , 'essb' ) , $options ); } public function form( $instance ) { $defaults = array( 'title' => __('Follow us', 'essb') , 'template' => 'flat' , 'animation' => '' , 'nospace' => 0, 'show_title' => 1 ); $profile_networks = array(); $profile_networks = ESSBOptionValuesHelper::advanced_array_to_simple_array(essb_available_social_profiles()); foreach ($profile_networks as $network) { $defaults['profile_'.$network] = ''; } /*foreach ($profile_networks as $network) { $defaults['profile_text_'.$network] = ''; }*/ $instance = wp_parse_args( ( array ) $instance , $defaults ); $instance_template = isset($instance['template']) ? $instance['template'] : ''; $instance_animation = isset($instance['animation']) ? $instance['animation'] : ''; $instance_size = isset($instance['size']) ? $instance['size'] : ''; $instance_align = isset($instance['align']) ? $instance['align'] : ''; ?>

/>

/>

$display) { $network_value = $instance['profile_'.$network]; ?>

'', 'template' => $sc_template, 'animation' => $sc_animation, 'nospace' => $sc_nospace, 'networks' => $sc_network_address, 'size' => $sc_size, 'align' => $sc_align ); echo ESSBSocialProfiles::draw_social_profiles($options); if (!empty($show_title)) { echo $after_widget; } } } ?>