Changeset 1586656
- Timestamp:
- 02/01/2017 05:28:23 PM (9 years ago)
- Location:
- scale-lite-tools/trunk
- Files:
-
- 3 edited
-
assets/js/admin.sl-maps.js (modified) (1 diff)
-
inc/sl-google-maps/class-slt-gmap-meta-fields.php (modified) (2 diffs)
-
inc/sl-google-maps/render-cpt.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
scale-lite-tools/trunk/assets/js/admin.sl-maps.js
r1586624 r1586656 16 16 } 17 17 function codeAddress(callback) { 18 var address = document.getElementById(' center-map-location').value;18 var address = document.getElementById('slt-gmap-center-map-location').value; 19 19 (function(){ 20 20 geocoder.geocode( { 'address': address}, function(results, status) { -
scale-lite-tools/trunk/inc/sl-google-maps/class-slt-gmap-meta-fields.php
r1586608 r1586656 14 14 private $fields = array( 15 15 array( 16 'id' => ' center-map-location',16 'id' => 'slt-gmap-center-map-location', 17 17 'label' => 'Center map location', 18 18 'type' => 'textarea', … … 136 136 case 'textarea': 137 137 switch ( $field['id'] ) { 138 case ' center-map-location':138 case 'slt-gmap-center-map-location': 139 139 if(empty($db_value)) { 140 140 $db_value = '350 5th Ave, New York, NY 10118, USA'; -
scale-lite-tools/trunk/inc/sl-google-maps/render-cpt.php
r1586624 r1586656 109 109 if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post(); 110 110 // post meta 111 $map_latitude = get_post_meta(get_the_ID(),' gmap_options_slt-gmap-latitude',true);112 $map_longitude = get_post_meta(get_the_ID(),' gmap_options_slt-gmap-latitude',true);113 $map_markers = explode(',', get_post_meta(get_the_ID(),' gmap_options_slt-gmap-markers',true));114 $html_id = get_post_meta(get_the_ID(),' gmap_options_html-id',true);115 $width = get_post_meta(get_the_ID(),' gmap_options_slt-gmap-width',true);116 $height = get_post_meta(get_the_ID(),' gmap_options_slt-gmap-height',true);117 $map_type = get_post_meta(get_the_ID(),' gmap_options_slt-gmap-type',true);118 $zoom = get_post_meta(get_the_ID(),' gmap_options_slt-gmap-zoom',true);119 $show_info_titles = get_post_meta(get_the_ID(),' gmap_options_slt-gmap-show-marker-info-box',true);111 $map_latitude = get_post_meta(get_the_ID(),'slt_gmap_options_slt-gmap-latitude',true); 112 $map_longitude = get_post_meta(get_the_ID(),'slt_gmap_options_slt-gmap-longitude',true); 113 $map_markers = explode(',', get_post_meta(get_the_ID(),'slt_gmap_options_slt-gmap-markers',true)); 114 $html_id = get_post_meta(get_the_ID(),'slt_gmap_options_slt-gmap-html-id',true); 115 $width = get_post_meta(get_the_ID(),'slt_gmap_options_slt-gmap-width',true); 116 $height = get_post_meta(get_the_ID(),'slt_gmap_options_slt-gmap-height',true); 117 $map_type = get_post_meta(get_the_ID(),'slt_gmap_options_slt-gmap-map-type',true); 118 $zoom = get_post_meta(get_the_ID(),'slt_gmap_options_slt-gmap-zoom',true); 119 $show_info_titles = get_post_meta(get_the_ID(),'slt_gmap_options_slt-gmap-show-marker-info-box',true); 120 120 121 121 global $mapsArray;
Note: See TracChangeset
for help on using the changeset viewer.