コード例 #1
0
 /**
  * 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');
     }
 }
コード例 #2
0
 * Individual registered scripts can be added with code like
 *
 * <code>GeoMashupRenderMap::enqueue_script( 'colorbox' );</code>
 *
 * Or include all queued resources by replacing
 *
 * <code>GeoMashupRenderMap::head();</code>
 *
 * with
 *
 * <code>wp_head();</code>
 *
 * @package GeoMashup
 */
wp_register_script('googlev3-places', 'http://maps.googleapis.com/maps/api/js?libraries=places&sensor=false', array('google-maps-3'));
GeoMashupRenderMap::enqueue_script('googlev3-places');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
		"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--[if lte IE 6]>
<html xmlns:v="urn:schemas-microsoft-com:vml">
<![endif]-->

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