Esempio n. 1
0
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
	<title>Geo Mashup Map</title>
		<?php 
GeoMashupRenderMap::head();
?>

		<style type="text/css">
			v\:* { behavior:url(#default#VML); }
			#geo-mashup {
				width:<?php 
echo GeoMashupRenderMap::map_property('width');
?>
;
				height:<?php 
echo GeoMashupRenderMap::map_property('height');
?>
;
			}
		</style>
	</head>
	<body>
	<div id="geo-mashup">
		<noscript>
			<p><?php 
_e('This map requires JavaScript. You may have to enable it in your settings.', 'GeoMashup');
?>
</p>
		</noscript>
	</div>
	<?php 
 /**
  * Queue custom script for the results map.
  */
 public static function action_geo_mashup_render_map()
 {
     if ('search-results-map' == GeoMashupRenderMap::map_property('name')) {
         // Custom javascript for optional use in template
         GeoMashup::register_script('geo-mashup-search-results', 'js/search-results.js', array('geo-mashup'), GEO_MASHUP_VERSION, true);
         GeoMashupRenderMap::enqueue_script('geo-mashup-search-results');
     }
 }
Esempio n. 3
0
				<?php 
if (GeoMashupRenderMap::map_property('background_color')) {
    ?>
				background-color: <?php 
    echo esc_attr(GeoMashupRenderMap::map_property('background_color'));
    ?>
;
				<?php 
}
?>
			}
		</style>
	</head>
	<body>
	<div id="geo-mashup" class="<?php 
echo GeoMashupRenderMap::map_property('name');
?>
">
		<noscript>
			<p><?php 
_e('This map requires JavaScript. You may have to enable it in your browser\'s settings.', 'GeoMashup');
?>
</p>
		</noscript>
	</div>
	<?php 
echo GeoMashupRenderMap::map_script('geo-mashup');
?>
	</body>
</html>
Esempio n. 4
0
		<style type="text/css">
			v\:* { behavior:url(#default#VML); }
			#geo-mashup {
				width:<?php 
echo GeoMashupRenderMap::map_property('width');
?>
;
				height:<?php 
echo GeoMashupRenderMap::map_property('height');
?>
;
				<?php 
if (GeoMashupRenderMap::map_property('background_color')) {
    ?>
				background-color: <?php 
    echo GeoMashupRenderMap::map_property('background_color');
    ?>
;
				<?php 
}
?>
			}
		</style>
	</head>
	<body>
	<div id="geo-mashup">
		<noscript>
			<p><?php 
_e('This map requires JavaScript. You may have to enable it in your browser\'s settings.', 'GeoMashup');
?>
</p>