/**
  * Map Option Fields
  * Defines the plugin option metabox and field configuration
  * @since  1.0.0
  * @return array
  */
 public function map_option_fields()
 {
     // Only need to initiate the array once per page-load
     if (!empty(self::$plugin_options)) {
         return self::$plugin_options;
     }
     $prefix = 'gmb_';
     self::$plugin_options = array('id' => 'plugin_options', 'show_on' => array('key' => 'options-page', 'value' => array(self::$key)), 'show_names' => true, 'fields' => array(array('name' => __('Google Maps API Key', $this->plugin_slug), 'desc' => sprintf(__('The Google Maps JavaScript API v3 does not require an API key to function correctly. However, Google strongly encourages you to load the Maps API using an APIs Console key which allows you to monitor your Maps API usage. %1$sLearn how to obtain an API key%2$s.', $this->plugin_slug), '<a href="' . esc_url('https://developers.google.com/maps/documentation/javascript/tutorial#api_key') . '" target="_blank" class="new-window">', '</a>'), 'id' => $prefix . 'maps_api_key', 'type' => 'text'), array('name' => __('Map Size', $this->plugin_slug), 'id' => $prefix . 'width_height', 'type' => 'width_height', 'width_std' => '100', 'width_unit_std' => '%', 'height_std' => '600', 'lat_std' => '32.7153292', 'lng_std' => '-117.15725509', 'desc' => ''), array('name' => __('Map Location', $this->plugin_slug), 'id' => $prefix . 'lat_lng', 'type' => 'lat_lng_default', 'lat_std' => '32.7153292', 'lng_std' => '-117.15725509', 'desc' => '')));
     return self::$plugin_options;
 }
 /**
  * Map Option Fields
  * Defines the plugin option metabox and field configuration
  * @since  1.0.0
  * @return array
  */
 public function map_option_fields()
 {
     // Only need to initiate the array once per page-load
     if (!empty(self::$plugin_options)) {
         return self::$plugin_options;
     }
     $prefix = 'gmb_';
     self::$plugin_options = array('id' => 'plugin_options', 'show_on' => array('key' => 'options-page', 'value' => array(self::$key)), 'show_names' => true, 'fields' => array(array('name' => __('Map Size', $this->plugin_slug), 'id' => $prefix . 'width_height', 'type' => 'width_height', 'width_std' => '100', 'width_unit_std' => '%', 'height_std' => '600', 'lat_std' => '32.7153292', 'lng_std' => '-117.15725509', 'desc' => ''), array('name' => __('Map Location', $this->plugin_slug), 'id' => $prefix . 'lat_lng', 'type' => 'lat_lng_default', 'lat_std' => '32.7153292', 'lng_std' => '-117.15725509', 'desc' => ''), array('name' => __('Places API Key', $this->plugin_slug), 'desc' => sprintf(__('API keys are manage through the <a href="%1$s" class="new-window" target="_blank" class="new-window">Google API Console</a>. For more information please see <a href="%2$s" target="_blank" class="new-window" title="Google Places API Introduction">this article</a>.', $this->plugin_slug), esc_url('https://code.google.com/apis/console/?noredirect'), esc_url('https://developers.google.com/places/documentation/#Authentication')), 'id' => $prefix . 'api_key', 'type' => 'text')));
     return self::$plugin_options;
 }