Changeset 1085503
- Timestamp:
- 02/09/2015 01:04:02 PM (11 years ago)
- Location:
- magic-google-maps/trunk
- Files:
-
- 3 edited
-
js/bf_script.js (modified) (2 diffs)
-
magic-Maps.php (modified) (7 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
magic-google-maps/trunk/js/bf_script.js
r1077709 r1085503 20 20 content: contentString 21 21 }); 22 22 var enableInfowindow = scriptParams.enable_descryption; 23 24 23 25 var marker = new google.maps.Marker({ 24 26 … … 29 31 map: map 30 32 }); 31 33 if (enableInfowindow =="1" ){ 32 34 infowindow.open(map,marker); 33 34 google.maps.event.addListener(marker, 'click', function() { 35 } 36 /* 37 google.maps.event.addListener(marker, 'click', function() { 35 38 infowindow.open(map,marker); 36 39 }); 40 */ 37 41 }(window, google)); -
magic-google-maps/trunk/magic-Maps.php
r1080815 r1085503 4 4 * Plugin URI: http://www.magicpluginfactory.com/ 5 5 * Description: Add Google maps quickly and easly to your page. Light weight plugin optymized for speed. 6 * Version: 1.0. 16 * Version: 1.0.2 7 7 * Author: Magic Plugin Factory 8 8 * Author URI: http://www.magicpluginfactory.com/ … … 98 98 ); 99 99 add_settings_field( 100 "enabledescryption", 101 "Enable Descryption", 102 "enable_descryption", 103 "magicmaps" , 104 "googleMapsSection" 105 ); 106 add_settings_field( 100 107 "placedescryption", 101 108 "Descryption", … … 147 154 "googleMapsSection" 148 155 ); 156 149 157 register_setting( 150 158 "googleMapsSection", //(string) (required) A settings group name. Must exist prior to the register_setting call. This must match the group name in settings_fields() … … 174 182 "googleMapsSection", 175 183 "PlaceDescryption" 184 ); 185 register_setting( 186 "googleMapsSection", 187 "EnableDescryption" 176 188 ); 177 189 register_setting( … … 238 250 echo '<textarea rows="6" cols="30" name="PlaceDescryption" id="PlaceDescryption" value="" >'. $option_descryption .'</textarea>'; 239 251 } 252 function enable_descryption(){ 253 $enable_descryption = get_option('enabledescryption'); 254 $html = '<input type="checkbox" id="EnableDescryption" name="EnableDescryption" value="1"'.checked( 1, $enable_descryption['EnableDescryption'], false ) .' />'; 255 $html .= '<label for="checkbox_example">Display or hide Info window</label>'; 256 echo $html; 257 } 240 258 function height(){ 241 259 $option_height = get_option('height','200px'); … … 286 304 'option_Pin_lng' => get_option('googlemapspinLng'), 287 305 'option_descryption' => get_option('placedescryption'), 288 'option_zoom' => get_option('zoom') 306 'option_zoom' => get_option('zoom'), 307 'enable_descryption' => get_option('enabledescryption') 289 308 ); 290 309 … … 303 322 'option_Pin_lng' => get_option('googlemapspinLng'), 304 323 'option_descryption' => get_option('placedescryption'), 305 'option_zoom' => get_option('zoom') 324 'option_zoom' => get_option('zoom'), 325 'enable_descryption' => get_option('enabledescryption') 306 326 ); 307 327 -
magic-google-maps/trunk/readme.txt
r1083076 r1085503 63 63 = 3. Do I need Google Maps API key? = 64 64 65 The Google Maps does not require an API key to function correctly. However read more information[Google Maps API] (https://developers.google.com/maps/signup)65 The Google Maps does not require an API key to function correctly. However if you would like to find more about Google maps API read this [Google Maps API] (https://developers.google.com/maps/signup) 66 66 67 67 == Screenshots == … … 71 71 72 72 == Changelog == 73 74 = 1.0.2 = 75 * New option added to disable or enable infowindow Google maps 73 76 74 77 = 1.0.1 =
Note: See TracChangeset
for help on using the changeset viewer.