public function register_plugin_shortcodes($attrs)
 {
     $defaults = array('title' => 'Social Fans', 'new_window' => 1, 'nofollow' => 1, 'hide_numbers' => 0, 'hide_title' => 0, 'show_total' => 1, 'box_width' => '', 'is_lazy' => 0, 'animate_numbers' => 0, 'max_duration' => 5, 'columns' => 3, 'effects' => 'essbfc-no-effect', 'shake' => '', 'icon_color' => 'light', 'bg_color' => 'colord', 'hover_text_color' => 'light', 'hover_text_bg_color' => 'colord', 'show_diff' => 0, 'show_diff_lt_zero' => 0, 'diff_count_text_color' => '', 'diff_count_bg_color' => '', 'template' => 'flat');
     $attrs = shortcode_atts($defaults, $attrs);
     ESSBSocialFansCounterUtils::register_options((array) $attrs);
     extract($attrs);
     ob_start();
     include ESSB3_PLUGIN_ROOT . 'lib/modules/social-fans-counter/essb-social-fanscounter-view.php';
     $html = ob_get_contents();
     ob_end_clean();
     return $html;
 }
 public function widget($args, $instance)
 {
     extract($args);
     $before_widget = $args['before_widget'];
     $before_title = $args['before_title'];
     $after_title = $args['after_title'];
     $after_widget = $args['after_widget'];
     $title = $instance['title'];
     // register current widget options
     ESSBSocialFansCounterUtils::register_options((array) $instance);
     include ESSB3_PLUGIN_ROOT . 'lib/modules/social-fans-counter/essb-social-fanscounter-widget-view.php';
 }