/**
  * Generation of the HTML code of the widget
  * for the full display in the sidebar associated
  */
 function widget($args, $instance)
 {
     // Checking whether there are the variables that are used during the processing
     // the script and check the default values ​​in case they were not specified
     $options = $this->common_empty(array('mode' => '', 'link' => '', 'cover' => '', 'photo' => '', 'biography' => '', 'width' => '', 'action' => 'W'), $instance);
     // Definition of the control variables of the widget, these values​
     // do not affect the items of basic but affect some aspects
     $controls = $this->common_empty(array('width_auto' => ''), $instance);
     // Correction of the value of size is specified in
     // the case the automatically and then use javascript
     if ($controls['width_auto'] == '1') {
         $options['width'] = 'auto';
     }
     // Create the HTML code for the current widget recalling the basic
     // function which is also invoked by the corresponding shortcode
     $OBJC = new SZGoogleActionPlusAuthorBadge();
     $HTML = $OBJC->getHTMLCode($options);
     // Output HTML code linked to the widget to
     // display call to the general standard for wrap
     if ($HTML != NULL) {
         echo $this->common_widget($args, $instance, $HTML);
     }
 }
 function szgoogle_gplus_get_badge_author($options = array())
 {
     if (!($object = new SZGoogleActionPlusAuthorBadge())) {
         return false;
     } else {
         return $object->getHTMLCode($options);
     }
 }