/**
  * register_plugin_shortcode_totalfans
  * 
  * handle [easy-total-fans] shortcode
  * @since 3.4
  * 
  */
 public function register_plugin_shortcode_totalfans($attrs)
 {
     $counters = $this->get_followers();
     $total = 0;
     foreach ($counters as $network => $follow_count) {
         if (intval($follow_count) > 0) {
             $total += $follow_count;
         }
     }
     echo ESSBSocialFollowersCounterDraw::followers_number($total);
 }
 public function widget($args, $instance)
 {
     $before_widget = $args['before_widget'];
     $before_title = $args['before_title'];
     $after_title = $args['after_title'];
     $after_widget = $args['after_widget'];
     $title = isset($instance['title']) ? $instance['title'] : '';
     $hide_title = isset($instance['hide_title']) ? $instance['hide_title'] : 0;
     if (intval($hide_title) == 1) {
         $title = "";
     }
     if (!empty($title)) {
         echo $before_widget . $before_title . $title . $after_title;
     }
     // draw follower buttons with title set to off - this will be handle by the widget setup
     ESSBSocialFollowersCounterDraw::draw_followers($instance, false);
     if (!empty($title)) {
         echo $after_widget;
     }
 }