Beispiel #1
0
 /**
  * Set the starting point for the center of the map.
  *
  * Uses country by default.
  */
 function set_MapCenter()
 {
     $this->slplus->create_object_CountryManager();
     // Map Settings "Center Map At"
     //
     $customAddress = $this->slplus->options['map_center'];
     if (preg_replace('/\\W/', '', $customAddress) != '') {
         $customAddress = str_replace(array("\r\n", "\n", "\r"), ', ', esc_attr($customAddress));
     } else {
         $customAddress = esc_attr($this->slplus->CountryManager->countries[$this->slplus->options_nojs['default_country']]);
     }
     return apply_filters('slp_map_center', $customAddress);
 }