Google Map Shortcode - Version 2.1.2

Version Description

  • Preview map added on the map editor panel.
Download this release

Release Info

Developer alaingg
Plugin Icon wp plugin Google Map Shortcode
Version 2.1.2
Comparing to
See all releases

Code changes from version 2.1.1 to 2.1.2

Files changed (4) hide show
  1. google-map-shortcode.php +9 -6
  2. js/gmshc-admin.js +12 -0
  3. readme.txt +5 -1
  4. screenshot-5.jpg +0 -0
google-map-shortcode.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Google Map Shortcode
4
  Plugin URI: http://web-argument.com/google-map-shortcode-2-0-total-solution/
5
  Description: Include Google Map in your blogs with just one click.
6
- Version: 2.1.1
7
  Author: Alain Gonzalez
8
  Author URI: http://web-argument.com/
9
  */
@@ -30,7 +30,7 @@ function get_gmshc_options ($default = false){
30
  'windowhtml' => gmshc_defaul_windowhtml(),
31
  'icons' => array(),
32
  'default_icon' => GMSC_PLUGIN_URL.'/images/icons/marker.png',
33
- 'version' => '2.1.1'
34
  );
35
 
36
 
@@ -153,6 +153,7 @@ function gmshc_tab_process(){
153
  ?>
154
 
155
  <script type="text/javascript" src="<?php echo GMSC_PLUGIN_URL ?>/js/gmshc-admin.js"></script>
 
156
  <link href="<?php echo GMSC_PLUGIN_URL ?>/styles/gmshc-admin-styles.css" rel="stylesheet" type="text/css"/>
157
 
158
  <div style="width:620px; margin:10px auto">
@@ -293,12 +294,14 @@ function gmshc_tab_process(){
293
  </tbody>
294
  </table>
295
 
296
- <p><input class="button-primary" value="<?php _e("Insert Map"); ?>" type="button" id="insert_map"></p>
297
- <br />
298
-
 
 
 
299
  <?php } ?>
300
  </form>
301
- </div>
302
 
303
 
304
  <?php
3
  Plugin Name: Google Map Shortcode
4
  Plugin URI: http://web-argument.com/google-map-shortcode-2-0-total-solution/
5
  Description: Include Google Map in your blogs with just one click.
6
+ Version: 2.1.2
7
  Author: Alain Gonzalez
8
  Author URI: http://web-argument.com/
9
  */
30
  'windowhtml' => gmshc_defaul_windowhtml(),
31
  'icons' => array(),
32
  'default_icon' => GMSC_PLUGIN_URL.'/images/icons/marker.png',
33
+ 'version' => '2.1.2'
34
  );
35
 
36
 
153
  ?>
154
 
155
  <script type="text/javascript" src="<?php echo GMSC_PLUGIN_URL ?>/js/gmshc-admin.js"></script>
156
+ <?php gmshc_head() ?>
157
  <link href="<?php echo GMSC_PLUGIN_URL ?>/styles/gmshc-admin-styles.css" rel="stylesheet" type="text/css"/>
158
 
159
  <div style="width:620px; margin:10px auto">
294
  </tbody>
295
  </table>
296
 
297
+ <p><input class="button-primary" value="<?php _e("Insert Map"); ?>" type="button" id="insert_map"> <a class="button" href="#gmshc_map" id="gmshc_show" show="<?php _e("Show Map") ?>" hide="<?php _e("Hide Map") ?>"><?php _e("Show Map") ?></a></p>
298
+ </div>
299
+ <div id="gmshc_map" style="height:1px; overflow:hidden;">
300
+ <?php echo do_shortcode("[google-map-sc id=".$post_id." width=600 height=420]"); ?>
301
+ </div>
302
+ <br />
303
  <?php } ?>
304
  </form>
 
305
 
306
 
307
  <?php
js/gmshc-admin.js CHANGED
@@ -26,6 +26,18 @@
26
 
27
  });
28
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  gmshc_update_editor_custom_field();
30
 
31
  });
26
 
27
  });
28
 
29
+ $("#gmshc_show").click(function(){
30
+ var mapDiv = $("#gmshc_map");
31
+ var mapBtn = $(this);
32
+ if (mapDiv.height() >1) {
33
+ mapDiv.height("1");
34
+ mapBtn.text(mapBtn.attr("show"));
35
+ } else {
36
+ mapDiv.height("440");
37
+ mapBtn.text(mapBtn.attr("hide"));
38
+ }
39
+ });
40
+
41
  gmshc_update_editor_custom_field();
42
 
43
  });
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://web-argument.com/2011/07/18/google-map-shortcode-plugin-vers
4
  Tags: google map, shortcode, map, categories, widget, post map, point, marker, list, location, address, images
5
  Requires at least: 2.5
6
  Tested up to: 3.2.1
7
- Stable tag: 2.1.1
8
 
9
  Real Friendly integration of Google Map instances into your blogs. Allows displaying multiple maps on your pages.
10
 
@@ -47,9 +47,13 @@ Visit <a href="http://web-argument.com/2011/07/20/google-map-shortcode-how-to-us
47
  2. Google Map Shortcode Button
48
  3. Google Map Shortcode editor panel
49
  4. Google Map Shortcode Media Tab
 
50
 
51
  == Changelog ==
52
 
 
 
 
53
  = 2.1.1 =
54
  * Google Map Shortcode tab added to the media editor window.
55
  * Upload Image button added.
4
  Tags: google map, shortcode, map, categories, widget, post map, point, marker, list, location, address, images
5
  Requires at least: 2.5
6
  Tested up to: 3.2.1
7
+ Stable tag: 2.1.2
8
 
9
  Real Friendly integration of Google Map instances into your blogs. Allows displaying multiple maps on your pages.
10
 
47
  2. Google Map Shortcode Button
48
  3. Google Map Shortcode editor panel
49
  4. Google Map Shortcode Media Tab
50
+ 5. Insert/Show map.
51
 
52
  == Changelog ==
53
 
54
+ = 2.1.2 =
55
+ * Preview map added on the map editor panel.
56
+
57
  = 2.1.1 =
58
  * Google Map Shortcode tab added to the media editor window.
59
  * Upload Image button added.
screenshot-5.jpg ADDED
Binary file