Function Reference: geodir_custom_gmaps_add_style_form

Summary

This function has not been documented yet.

Source File

geodir_custom_gmaps_add_style_form() is located in geodir_custom_google_maps/geodir_custom_gmaps_template_functions.php [Line: 57]

Source Code

function geodir_custom_gmaps_add_style_form() {
	$gd_map = isset($_REQUEST['gd_map']) ? trim($_REQUEST['gd_map']) : '';
	
	if (!($gd_map=='home' || $gd_map=='listing' || $gd_map=='detail')) {
		wp_redirect(admin_url().'admin.php?page=geodirectory&tab=custom_gmaps_manager&subtab=geodir_custom_gmaps_manage_styles');
		exit;
	}
	
	$feature_type_options = geodir_custom_gmaps_feature_type_options();
	$element_type_options = geodir_custom_gmaps_element_type_options();
	$styler_options = geodir_custom_gmaps_Styler();
	
	$saved_option = get_option('geodir_custom_gmaps_style_'.$gd_map);
	
	$styler_width = count($styler_options) > 0 ? 100 / count($styler_options) : 100;
	
	$title = '';
	if ($gd_map=='home') {
		$title = __('Home Page Map Style', GEODIRCUSTOMGMAPS_TEXTDOMAIN);
	} else if ($gd_map=='listing') {
		$title = __('Listing Page Map Style', GEODIRCUSTOMGMAPS_TEXTDOMAIN);
	} else if ($gd_map=='detail') {
		$title = __('Detail Page Map Style', GEODIRCUSTOMGMAPS_TEXTDOMAIN);
	}
	?>

$stylerV) { $saved_stylers[$stylerF] = $stylerV; } } } } ?>
/>

    

city_longitude) ? $default_location->city_longitude : ''; $default_lat = isset($default_location->city_latitude) ? $default_location->city_latitude : ''; $default_lng = $default_lng ? $default_lng : '39.952484'; $default_lat = $default_lat ? $default_lat : '-75.163786'; ?>