function szgoogle_maps_get_widget($options = array())
 {
     if (!($object = new SZGoogleActionMaps())) {
         return false;
     } else {
         return $object->getHTMLCode($options);
     }
 }
 /**
  * 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('title' => '', 'width' => '', 'height' => '', 'lat' => '', 'lng' => '', 'zoom' => '', 'view' => '', 'layer' => '', 'wheel' => '', 'marker' => '', 'lazyload' => '', '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' => '', 'height_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';
     }
     if ($controls['height_auto'] == '1') {
         $options['height'] = 'auto';
     }
     // Create the HTML code for the current widget recalling the basic
     // function which is also invoked by the corresponding shortcode
     $OBJC = new SZGoogleActionMaps();
     $HTML = $OBJC->getHTMLCode($options);
     // Output HTML code linked to the widget to
     // display call to the general standard for wrap
     echo $this->common_widget($args, $instance, $HTML);
 }