Version Description
- Modules added.
- Polish language added.
- New icon added.
Download this release
Release Info
Developer | alaingg |
Plugin | Google Map Shortcode |
Version | 3.1 |
Comparing to | |
See all releases |
Code changes from version 3.0.1 to 3.1
- google-map-shortcode.php +143 -66
- images/marker.png +0 -0
- images/scroller.jpg +0 -0
- images/slideshow.jpg +0 -0
- include/functions.php +252 -21
- js/gmshc-admin.js +15 -6
- js/gmshc.2.2.1.js +0 -277
- js/gmshc.2.3.js +328 -0
- js/gmshc.2.3.min.js +8 -0
- languages/google-map-sc-pl_PL.mo +0 -0
- languages/google-map-sc-pl_PL.po +615 -0
- readme.txt +19 -14
- screenshot-2.jpg +0 -0
- screenshot-3.jpg +0 -0
- screenshot-5.jpg +0 -0
- styles/gmshc-admin-styles.css +52 -2
google-map-shortcode.php
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
/*
|
3 |
Plugin Name: Google Map Shortcode
|
4 |
Plugin URI: http://web-argument.com/google-map-shortcode-wordpress-plugin/
|
5 |
-
Description: Include Google Maps in your blogs
|
6 |
-
Version: 3.
|
7 |
Author: Alain Gonzalez
|
8 |
Author URI: http://web-argument.com/
|
9 |
*/
|
@@ -26,17 +26,19 @@ Author URI: http://web-argument.com/
|
|
26 |
|
27 |
define('GMSC_PLUGIN_DIR', WP_PLUGIN_DIR."/".dirname(plugin_basename(__FILE__)));
|
28 |
define('GMSC_PLUGIN_URL', WP_PLUGIN_URL."/".dirname(plugin_basename(__FILE__)));
|
29 |
-
define('GMSHC_VERSION_CURRENT','3.
|
30 |
define('GMSHC_VERSION_CHECK','2.2');
|
31 |
|
32 |
require(GMSC_PLUGIN_DIR."/include/functions.php");
|
33 |
require(GMSC_PLUGIN_DIR."/include/class.gmshc_point.php");
|
34 |
require(GMSC_PLUGIN_DIR."/include/class.gmshc_post_points.php");
|
35 |
|
36 |
-
|
37 |
|
38 |
-
|
39 |
-
|
|
|
|
|
40 |
}
|
41 |
|
42 |
/**
|
@@ -60,6 +62,7 @@ function get_gmshc_options ($default = false){
|
|
60 |
'type' => 'ROADMAP',
|
61 |
'animate' => true,
|
62 |
'focus_type' => 'open',
|
|
|
63 |
'version' => GMSHC_VERSION_CURRENT
|
64 |
);
|
65 |
|
@@ -71,10 +74,10 @@ function get_gmshc_options ($default = false){
|
|
71 |
|
72 |
$options = get_option('gmshc_op');
|
73 |
if (isset($options)){
|
74 |
-
if (isset($options['version'])) {
|
75 |
$chk_version = version_compare(GMSHC_VERSION_CHECK,$options['version']);
|
76 |
-
if ($chk_version
|
77 |
-
else
|
78 |
} else {
|
79 |
$options = $gmshc_default;
|
80 |
}
|
@@ -87,24 +90,24 @@ function get_gmshc_options ($default = false){
|
|
87 |
/**
|
88 |
* Inserting files on the header
|
89 |
*/
|
90 |
-
function
|
|
|
|
|
91 |
|
92 |
$options = get_gmshc_options();
|
93 |
$language = $options['language'];
|
94 |
|
95 |
-
$
|
96 |
-
$gmshc_header .= "<script src=\"http://maps.google.com/maps/api/js?sensor=false";
|
97 |
if(isset($language))
|
98 |
-
$
|
99 |
-
$gmshc_header .="\" type=\"text/javascript\"></script>\n";
|
100 |
-
$gmshc_header .= "<script type=\"text/javascript\" src=\"".GMSC_PLUGIN_URL."/js/gmshc.2.2.1.js\"></script>\n";
|
101 |
-
$gmshc_header .= "\n<!-- /Google Map Shortcode Version ".$options['version']."-->\n";
|
102 |
|
103 |
-
|
104 |
-
|
105 |
}
|
106 |
|
107 |
-
|
|
|
|
|
|
|
108 |
|
109 |
/**
|
110 |
* Default Open Window Html
|
@@ -167,29 +170,35 @@ function gmshc_sc($atts) {
|
|
167 |
$animate = $options['animate'];
|
168 |
$focus_type = $options['focus_type'];
|
169 |
|
170 |
-
$the_items = array();
|
171 |
|
172 |
-
$
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
extract($final_atts);
|
194 |
|
195 |
$map_points = array();
|
@@ -266,10 +275,29 @@ function gmshc_media_buttons($admin = true)
|
|
266 |
}
|
267 |
|
268 |
add_action('media_upload_gmshc', 'gmshc_tab_handle');
|
|
|
269 |
function gmshc_tab_handle() {
|
270 |
return wp_iframe('gmshc_tab_process');
|
271 |
}
|
272 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
273 |
function gmshc_tab_process(){
|
274 |
|
275 |
gmshc_head();
|
@@ -314,6 +342,8 @@ function gmshc_tab_process(){
|
|
314 |
$zoom = isset($_REQUEST['zoom']) ? $_REQUEST['zoom'] : $options['zoom'];
|
315 |
$type = isset($_REQUEST['type']) ? $_REQUEST['type'] : $options['type'];
|
316 |
|
|
|
|
|
317 |
$focus = isset($_REQUEST['focus']) ? $_REQUEST['focus'] : $options['focus'];
|
318 |
$focus_type = isset($_REQUEST['focus_type']) ? $_REQUEST['focus_type'] : $options['focus_type'];
|
319 |
|
@@ -438,17 +468,21 @@ function gmshc_tab_process(){
|
|
438 |
<tr>
|
439 |
<td align="center" valign="top" colspan="2">
|
440 |
<?php
|
441 |
-
$
|
442 |
-
|
|
|
443 |
?>
|
444 |
<div class="gmshc_label">
|
445 |
<?php _e("Select the thumbnail by clicking on the images","google-map-sc"); ?>
|
446 |
</div>
|
447 |
<div id="gmshc_thumb_cont">
|
448 |
-
<input type="hidden" name="selected_thumbnail" value="
|
449 |
-
<?php
|
|
|
|
|
|
|
450 |
<div class="gmshc_thumb">
|
451 |
-
<img src="<?php echo $thumbnail ?>" width="40" height="40" />
|
452 |
</div>
|
453 |
<?php } ?>
|
454 |
</div>
|
@@ -529,7 +563,27 @@ function gmshc_tab_process(){
|
|
529 |
<option value="center" <?php echo ($focus_type == "center" ? "selected" : "") ?> ><?php _e("Center Markers","google-map-sc") ?></option>
|
530 |
</select>
|
531 |
</td>
|
532 |
-
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
533 |
<?php } ?>
|
534 |
</table>
|
535 |
|
@@ -577,10 +631,20 @@ function gmshc_tab_process(){
|
|
577 |
</td>
|
578 |
<td>
|
579 |
<div class="gmshc_thumb gmshc_selected">
|
580 |
-
<?php
|
581 |
-
|
582 |
-
|
583 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
584 |
</div>
|
585 |
</td>
|
586 |
<td>
|
@@ -644,30 +708,36 @@ function gmshc_tab_process(){
|
|
644 |
add_action('admin_menu', 'gmshc_set');
|
645 |
|
646 |
function gmshc_set() {
|
647 |
-
|
648 |
-
|
649 |
-
|
|
|
650 |
|
651 |
/**
|
652 |
* Inserting files on the admin header
|
653 |
*/
|
654 |
function gmshc_admin_script() {
|
655 |
|
656 |
-
$gmshc_admin_header =
|
657 |
-
$gmshc_admin_header .= "<script type=\"text/javascript\" src=\"".GMSC_PLUGIN_URL."/js/gmshc-admin.js\"></script>\n";
|
658 |
$gmshc_admin_header .= "<link href=\"".GMSC_PLUGIN_URL."/styles/gmshc-admin-styles.css\" rel=\"stylesheet\" type=\"text/css\"/>\n";
|
659 |
-
|
660 |
-
|
661 |
print($gmshc_admin_header);
|
662 |
|
663 |
}
|
664 |
|
665 |
function gmshc_options_page() {
|
666 |
|
667 |
-
$options = get_gmshc_options();
|
|
|
|
|
668 |
|
669 |
-
|
|
|
|
|
670 |
|
|
|
|
|
671 |
<div class="wrap">
|
672 |
|
673 |
<h2><?php _e("Google Map Shortcode Settings","google-map-sc") ?></h2>
|
@@ -697,7 +767,8 @@ function gmshc_options_page() {
|
|
697 |
$newoptions['icons'] = $options['icons'];
|
698 |
|
699 |
$newoptions['version'] = GMSHC_VERSION_CURRENT;
|
700 |
-
|
|
|
701 |
if ( $options != $newoptions ) {
|
702 |
$options = $newoptions;
|
703 |
update_option('gmshc_op', $options);
|
@@ -886,12 +957,12 @@ function gmshc_options_page() {
|
|
886 |
</tr>
|
887 |
<tr>
|
888 |
<td align="right" valign="top"> <strong><?php _e("Animation","google-map-sc") ?></strong></td>
|
889 |
-
<td><input name="animate" type="checkbox" value="true" <?php if ($animate == "true") echo "checked = \"checked\"" ?> /> <?php _e(" Check if you want to animate the
|
890 |
</tr>
|
891 |
</table>
|
892 |
|
893 |
<p class="submit">
|
894 |
-
<input type="submit" name="Submit" value="Update" class="button-primary" />
|
895 |
</p>
|
896 |
|
897 |
<h3 style="padding-top:30px; margin-top:30px; border-top:1px solid #CCCCCC;"><?php _e("Markers","google-map-sc") ?></h3>
|
@@ -913,9 +984,14 @@ function gmshc_options_page() {
|
|
913 |
</table>
|
914 |
|
915 |
<p class="submit">
|
916 |
-
<input type="submit" name="Submit" value="Update" class="button-primary" />
|
917 |
</p>
|
918 |
|
|
|
|
|
|
|
|
|
|
|
919 |
<h3 style="padding-top:30px; margin-top:30px; border-top:1px solid #CCCCCC;"><?php _e("Info Windows","google-map-sc") ?></h3>
|
920 |
|
921 |
<p><?php _e("This is the html of the Info Window opened from the markers.","google-map-sc") ?></p>
|
@@ -978,7 +1054,7 @@ function gmshc_options_page() {
|
|
978 |
|
979 |
|
980 |
<p class="submit">
|
981 |
-
<input type="submit" name="Submit" value="Update" class="button-primary" /><input type="submit" name="Restore_Default" value="<?php _e("Restore Default","google-map-sc") ?>" class="button" />
|
982 |
</p>
|
983 |
</form>
|
984 |
|
@@ -1004,7 +1080,8 @@ function gmshc_plugin_menu(){
|
|
1004 |
$links_arr = array(
|
1005 |
array("text"=>__("Plugin Page","google-map-sc"),"url"=>"http://web-argument.com/google-map-shortcode-wordpress-plugin/"),
|
1006 |
array("text"=>__("How To Use","google-map-sc"),"url"=>"http://web-argument.com/google-map-shortcode-how-to-use/"),
|
1007 |
-
array("text"=>__("Shortcode Reference","google-map-sc"),"url"=>"http://web-argument.com/google-map-shortcode-reference/"),
|
|
|
1008 |
array("text"=>__("Examples","google-map-sc"),"url"=>"http://web-argument.com/google-map-shortcode-wordpress-plugin/#examples"),
|
1009 |
array("text"=>__("Donate","google-map-sc"),"url"=>"https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=support%40web%2dargument%2ecom&lc=US&item_name=Web%2dArgument%2ecom¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted")
|
1010 |
);
|
2 |
/*
|
3 |
Plugin Name: Google Map Shortcode
|
4 |
Plugin URI: http://web-argument.com/google-map-shortcode-wordpress-plugin/
|
5 |
+
Description: Include Google Maps in your blogs easily and allow multiple interactions.
|
6 |
+
Version: 3.1
|
7 |
Author: Alain Gonzalez
|
8 |
Author URI: http://web-argument.com/
|
9 |
*/
|
26 |
|
27 |
define('GMSC_PLUGIN_DIR', WP_PLUGIN_DIR."/".dirname(plugin_basename(__FILE__)));
|
28 |
define('GMSC_PLUGIN_URL', WP_PLUGIN_URL."/".dirname(plugin_basename(__FILE__)));
|
29 |
+
define('GMSHC_VERSION_CURRENT','3.1');
|
30 |
define('GMSHC_VERSION_CHECK','2.2');
|
31 |
|
32 |
require(GMSC_PLUGIN_DIR."/include/functions.php");
|
33 |
require(GMSC_PLUGIN_DIR."/include/class.gmshc_point.php");
|
34 |
require(GMSC_PLUGIN_DIR."/include/class.gmshc_post_points.php");
|
35 |
|
36 |
+
gmshc_load_modules();
|
37 |
|
38 |
+
add_action( 'admin_init', 'gmshc_admin_init' );
|
39 |
+
|
40 |
+
function gmshc_admin_init(){
|
41 |
+
load_plugin_textdomain( 'google-map-sc', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
42 |
}
|
43 |
|
44 |
/**
|
62 |
'type' => 'ROADMAP',
|
63 |
'animate' => true,
|
64 |
'focus_type' => 'open',
|
65 |
+
'modules' => array(),
|
66 |
'version' => GMSHC_VERSION_CURRENT
|
67 |
);
|
68 |
|
74 |
|
75 |
$options = get_option('gmshc_op');
|
76 |
if (isset($options)){
|
77 |
+
if (isset($options['version'])) {
|
78 |
$chk_version = version_compare(GMSHC_VERSION_CHECK,$options['version']);
|
79 |
+
if ($chk_version <= 0 ) return $options;
|
80 |
+
else $options = $gmshc_default;
|
81 |
} else {
|
82 |
$options = $gmshc_default;
|
83 |
}
|
90 |
/**
|
91 |
* Inserting files on the header
|
92 |
*/
|
93 |
+
function gmshc_enqueue_scripts() {
|
94 |
+
|
95 |
+
wp_enqueue_script( 'gmshc', GMSC_PLUGIN_URL.'/js/gmshc.2.3.min.js');
|
96 |
|
97 |
$options = get_gmshc_options();
|
98 |
$language = $options['language'];
|
99 |
|
100 |
+
$google_map_api = "http://maps.google.com/maps/api/js?sensor=false";
|
|
|
101 |
if(isset($language))
|
102 |
+
$google_map_api .= "&language=".$language;
|
|
|
|
|
|
|
103 |
|
104 |
+
wp_enqueue_script( 'gmshc_google_api',$google_map_api);
|
|
|
105 |
}
|
106 |
|
107 |
+
|
108 |
+
add_action('wp_enqueue_scripts', 'gmshc_enqueue_scripts');
|
109 |
+
|
110 |
+
|
111 |
|
112 |
/**
|
113 |
* Default Open Window Html
|
170 |
$animate = $options['animate'];
|
171 |
$focus_type = $options['focus_type'];
|
172 |
|
173 |
+
$the_items = array();
|
174 |
|
175 |
+
$gmshc_default_sc =array(
|
176 |
+
'address' => '',
|
177 |
+
'title' =>'',
|
178 |
+
'description' => '',
|
179 |
+
'icon' => $icon,
|
180 |
+
'thumbnail' => '',
|
181 |
+
'id' => '',
|
182 |
+
'cat' => '',
|
183 |
+
'zoom' => $zoom,
|
184 |
+
'width' => $width,
|
185 |
+
'height' => $height,
|
186 |
+
'margin' => $margin,
|
187 |
+
'align' => $align,
|
188 |
+
'language' => $language,
|
189 |
+
'type' => $type,
|
190 |
+
'interval' => $interval,
|
191 |
+
'focus' => $focus,
|
192 |
+
'animate' => $animate,
|
193 |
+
'focus_type' => $focus_type,
|
194 |
+
'module' => '',
|
195 |
+
'canvas' => ''
|
196 |
+
);
|
197 |
+
|
198 |
+
$gmshc_shortcode = apply_filters('gmshc_default_shortcode',$gmshc_default_sc);
|
199 |
+
|
200 |
+
$final_atts = apply_filters('gmshc_shortcode_atts',shortcode_atts($gmshc_shortcode, $atts));
|
201 |
+
|
202 |
extract($final_atts);
|
203 |
|
204 |
$map_points = array();
|
275 |
}
|
276 |
|
277 |
add_action('media_upload_gmshc', 'gmshc_tab_handle');
|
278 |
+
|
279 |
function gmshc_tab_handle() {
|
280 |
return wp_iframe('gmshc_tab_process');
|
281 |
}
|
282 |
|
283 |
+
/**
|
284 |
+
* Inserting files on the header
|
285 |
+
*/
|
286 |
+
function gmshc_head() {
|
287 |
+
|
288 |
+
$options = get_gmshc_options();
|
289 |
+
$language = $options['language'];
|
290 |
+
|
291 |
+
$gmshc_header = "<script src=\"http://maps.google.com/maps/api/js?sensor=false";
|
292 |
+
if(isset($language))
|
293 |
+
$gmshc_header .= "&language=".$language;
|
294 |
+
$gmshc_header .="\" type=\"text/javascript\"></script>\n";
|
295 |
+
$gmshc_header .= "<script type=\"text/javascript\" src=\"".GMSC_PLUGIN_URL."/js/gmshc.2.3.min.js\"></script>\n";
|
296 |
+
|
297 |
+
print($gmshc_header);
|
298 |
+
|
299 |
+
}
|
300 |
+
|
301 |
function gmshc_tab_process(){
|
302 |
|
303 |
gmshc_head();
|
342 |
$zoom = isset($_REQUEST['zoom']) ? $_REQUEST['zoom'] : $options['zoom'];
|
343 |
$type = isset($_REQUEST['type']) ? $_REQUEST['type'] : $options['type'];
|
344 |
|
345 |
+
$default_icon = $options['default_icon'];
|
346 |
+
|
347 |
$focus = isset($_REQUEST['focus']) ? $_REQUEST['focus'] : $options['focus'];
|
348 |
$focus_type = isset($_REQUEST['focus_type']) ? $_REQUEST['focus_type'] : $options['focus_type'];
|
349 |
|
468 |
<tr>
|
469 |
<td align="center" valign="top" colspan="2">
|
470 |
<?php
|
471 |
+
$attch_list = gmshc_all_post_thumb($post_id);
|
472 |
+
|
473 |
+
if (count($attch_list) > 0) {
|
474 |
?>
|
475 |
<div class="gmshc_label">
|
476 |
<?php _e("Select the thumbnail by clicking on the images","google-map-sc"); ?>
|
477 |
</div>
|
478 |
<div id="gmshc_thumb_cont">
|
479 |
+
<input type="hidden" name="selected_thumbnail" value="" id="selected_thumbnail" />
|
480 |
+
<?php
|
481 |
+
foreach ($attch_list as $attch) {
|
482 |
+
$thumbnail = wp_get_attachment_image_src($attch, 'thumbnail');
|
483 |
+
?>
|
484 |
<div class="gmshc_thumb">
|
485 |
+
<img attch="<?php echo $attch ?>" src="<?php echo $thumbnail[0] ?>" width="40" height="40" />
|
486 |
</div>
|
487 |
<?php } ?>
|
488 |
</div>
|
563 |
<option value="center" <?php echo ($focus_type == "center" ? "selected" : "") ?> ><?php _e("Center Markers","google-map-sc") ?></option>
|
564 |
</select>
|
565 |
</td>
|
566 |
+
</tr>
|
567 |
+
<tr>
|
568 |
+
<td align="right" valign="top"><?php _e("Module","google-map-sc") ?></td>
|
569 |
+
<td>
|
570 |
+
<select name="module" id="module">
|
571 |
+
<option value=""><?php _e("none","google-map-sc") ?></option>
|
572 |
+
<?php
|
573 |
+
$modules = gmshc_get_active_modules();
|
574 |
+
|
575 |
+
if (count($modules) > 0) {
|
576 |
+
foreach($modules as $mod){ ?>
|
577 |
+
<option value="<?php echo $mod['id'] ?>"><?php echo $mod['name'] ?></option>
|
578 |
+
<?php }
|
579 |
+
} ?>
|
580 |
+
</select>
|
581 |
+
<a href="http://web-argument.com/google-map-shortcode-modules/" target="_blank"><em><?php _e("Improve user interface by adding new modules") ?></em></a>
|
582 |
+
|
583 |
+
|
584 |
+
</td>
|
585 |
+
</tr>
|
586 |
+
|
587 |
<?php } ?>
|
588 |
</table>
|
589 |
|
631 |
</td>
|
632 |
<td>
|
633 |
<div class="gmshc_thumb gmshc_selected">
|
634 |
+
<?php
|
635 |
+
$point_thumbnail = "";
|
636 |
+
if ($point->thumbnail != "") {
|
637 |
+
if(is_numeric($point->thumbnail)){
|
638 |
+
$thumb = wp_get_attachment_image_src($point->thumbnail, 'thumbnail');
|
639 |
+
$point_thumbnail = $thumb[0];
|
640 |
+
}else{
|
641 |
+
$point_thumbnail = $point->thumbnail;
|
642 |
+
}
|
643 |
+
?>
|
644 |
+
<img src="<?php echo $point_thumbnail ?>" atl="<?php _e("Thumbnail","google-map-sc") ?>" width = "40" height="40" />
|
645 |
+
<input name="thumb[]" type="hidden" id="thumb_<?php echo $i ?>" size="30" value = "<?php echo $point->thumbnail ?>"/>
|
646 |
+
|
647 |
+
<?php } ?>
|
648 |
</div>
|
649 |
</td>
|
650 |
<td>
|
708 |
add_action('admin_menu', 'gmshc_set');
|
709 |
|
710 |
function gmshc_set() {
|
711 |
+
|
712 |
+
$plugin_page = add_options_page('Google Map Shortcode', 'Google Map Shortcode', 'administrator', 'google-map-shortcode', 'gmshc_options_page');
|
713 |
+
add_action( 'admin_head-'.$plugin_page, 'gmshc_admin_script' );
|
714 |
+
}
|
715 |
|
716 |
/**
|
717 |
* Inserting files on the admin header
|
718 |
*/
|
719 |
function gmshc_admin_script() {
|
720 |
|
721 |
+
$gmshc_admin_header = "<script type=\"text/javascript\" src=\"".GMSC_PLUGIN_URL."/js/gmshc-admin.js\"></script>\n";
|
|
|
722 |
$gmshc_admin_header .= "<link href=\"".GMSC_PLUGIN_URL."/styles/gmshc-admin-styles.css\" rel=\"stylesheet\" type=\"text/css\"/>\n";
|
723 |
+
|
724 |
+
gmshc_enqueue_scripts();
|
725 |
print($gmshc_admin_header);
|
726 |
|
727 |
}
|
728 |
|
729 |
function gmshc_options_page() {
|
730 |
|
731 |
+
if(isset($_POST['Restore_Default'])) $options = get_gmshc_options(true);
|
732 |
+
|
733 |
+
do_action('gmshc_register_module');
|
734 |
|
735 |
+
$options = get_gmshc_options();
|
736 |
+
|
737 |
+
do_action('gmshc_validate_module');
|
738 |
|
739 |
+
?>
|
740 |
+
|
741 |
<div class="wrap">
|
742 |
|
743 |
<h2><?php _e("Google Map Shortcode Settings","google-map-sc") ?></h2>
|
767 |
$newoptions['icons'] = $options['icons'];
|
768 |
|
769 |
$newoptions['version'] = GMSHC_VERSION_CURRENT;
|
770 |
+
$newoptions['modules'] = isset($options['modules'])?$options['modules']:array();
|
771 |
+
|
772 |
if ( $options != $newoptions ) {
|
773 |
$options = $newoptions;
|
774 |
update_option('gmshc_op', $options);
|
957 |
</tr>
|
958 |
<tr>
|
959 |
<td align="right" valign="top"> <strong><?php _e("Animation","google-map-sc") ?></strong></td>
|
960 |
+
<td><input name="animate" type="checkbox" value="true" <?php if ($animate == "true") echo "checked = \"checked\"" ?> /> <?php _e(" Check if you want to animate the markers.","google-map-sc") ?></td>
|
961 |
</tr>
|
962 |
</table>
|
963 |
|
964 |
<p class="submit">
|
965 |
+
<input type="submit" name="Submit" value="<?php _e("Update") ?>" class="button-primary" />
|
966 |
</p>
|
967 |
|
968 |
<h3 style="padding-top:30px; margin-top:30px; border-top:1px solid #CCCCCC;"><?php _e("Markers","google-map-sc") ?></h3>
|
984 |
</table>
|
985 |
|
986 |
<p class="submit">
|
987 |
+
<input type="submit" name="Submit" value="<?php _e("Update") ?>" class="button-primary" />
|
988 |
</p>
|
989 |
|
990 |
+
<h3 style="padding-top:30px; margin-top:30px; border-top:1px solid #CCCCCC;"><?php _e("Modules","google-map-sc") ?></h3>
|
991 |
+
<p><a href="http://web-argument.com/google-map-shortcode-modules/" target="_blank"><?php _e("Improve user interface by adding new modules") ?></a></p>
|
992 |
+
|
993 |
+
<?php echo gmshc_modules_setting() ?>
|
994 |
+
|
995 |
<h3 style="padding-top:30px; margin-top:30px; border-top:1px solid #CCCCCC;"><?php _e("Info Windows","google-map-sc") ?></h3>
|
996 |
|
997 |
<p><?php _e("This is the html of the Info Window opened from the markers.","google-map-sc") ?></p>
|
1054 |
|
1055 |
|
1056 |
<p class="submit">
|
1057 |
+
<input type="submit" name="Submit" value="<?php _e("Update") ?>" class="button-primary" /><input type="submit" name="Restore_Default" value="<?php _e("Restore Default","google-map-sc") ?>" class="button" />
|
1058 |
</p>
|
1059 |
</form>
|
1060 |
|
1080 |
$links_arr = array(
|
1081 |
array("text"=>__("Plugin Page","google-map-sc"),"url"=>"http://web-argument.com/google-map-shortcode-wordpress-plugin/"),
|
1082 |
array("text"=>__("How To Use","google-map-sc"),"url"=>"http://web-argument.com/google-map-shortcode-how-to-use/"),
|
1083 |
+
array("text"=>__("Shortcode Reference","google-map-sc"),"url"=>"http://web-argument.com/google-map-shortcode-reference/"),
|
1084 |
+
array("text"=>__("Modules","google-map-sc"),"url"=>"http://web-argument.com/google-map-shortcode-modules/"),
|
1085 |
array("text"=>__("Examples","google-map-sc"),"url"=>"http://web-argument.com/google-map-shortcode-wordpress-plugin/#examples"),
|
1086 |
array("text"=>__("Donate","google-map-sc"),"url"=>"https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=support%40web%2dargument%2ecom&lc=US&item_name=Web%2dArgument%2ecom¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted")
|
1087 |
);
|
images/marker.png
CHANGED
Binary file
|
images/scroller.jpg
ADDED
Binary file
|
images/slideshow.jpg
ADDED
Binary file
|
include/functions.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Google Map Shortcode
|
4 |
-
* Version: 3.
|
5 |
* Author: Alain Gonzalez
|
6 |
* Plugin URI: http://web-argument.com/google-map-shortcode-wordpress-plugin/
|
7 |
*/
|
@@ -13,7 +13,7 @@
|
|
13 |
function gmshc_generate_map($map_points, $atts) {
|
14 |
|
15 |
extract($atts);
|
16 |
-
if ($canvas == "") $canvas = "canvas_".wp_generate_password(
|
17 |
|
18 |
$output ='<div id="'.$canvas.'" class = "gmsc" style="width:'.$width.'px; height:'.$height.'px; ';
|
19 |
switch ($align) {
|
@@ -59,21 +59,22 @@ function gmshc_generate_map($map_points, $atts) {
|
|
59 |
}
|
60 |
|
61 |
$output .= "var options_".$canvas." = {\n";
|
|
|
62 |
$output .= "'zoom':".$zoom.",\n";
|
63 |
$output .= "'markers':map_points_".$canvas.",\n";
|
64 |
$output .= "'mapContainer':'".$canvas."',\n";
|
65 |
$output .= "'focusType':'".$focus_type."',\n";
|
66 |
-
$output .= "'type':'".$type."',\n";
|
67 |
-
|
68 |
switch ($focus) {
|
|
|
|
|
69 |
case "all" :
|
70 |
$output .= "'circle':true,\n";
|
71 |
break;
|
72 |
-
case "0" :
|
73 |
-
break;
|
74 |
default:
|
75 |
$output .= "'focusPoint':".($focus-1).",\n";
|
76 |
-
}
|
77 |
|
78 |
$output .= "'animateMarkers':".$animate.",\n";
|
79 |
$output .= "'interval':'".$interval."'\n";
|
@@ -84,9 +85,9 @@ function gmshc_generate_map($map_points, $atts) {
|
|
84 |
$output .= "gmshc.addLoadEvent(trigger_".$canvas.");\n";
|
85 |
$output .= "</script>\n";
|
86 |
|
87 |
-
$
|
88 |
|
89 |
-
return $
|
90 |
}
|
91 |
|
92 |
|
@@ -112,7 +113,17 @@ function gmshc_get_windowhtml(&$point) {
|
|
112 |
if (($point->post_id) > 0) $point_link = get_permalink($point->post_id);
|
113 |
else $point_link = "";
|
114 |
|
115 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
|
117 |
$point_excerpt = gmshc_get_excerpt($point->post_id);
|
118 |
|
@@ -127,8 +138,8 @@ function gmshc_get_windowhtml(&$point) {
|
|
127 |
$html_width = "auto";
|
128 |
}
|
129 |
|
130 |
-
$find = array("%title%","%link%","%thubnail%", "%excerpt%","%description%","%address%","%open_map%","%width%","\f","\v","\t","\r","\n","\\","\"");
|
131 |
-
$replace = array($point_title,$point_link,$point_img,$point_excerpt,$point_description,$point_address,$open_map_url,$html_width,"","","","","","","'");
|
132 |
|
133 |
$windowhtml = str_replace( $find,$replace, $windowhtml_frame);
|
134 |
|
@@ -150,23 +161,24 @@ function gmshc_stripslashes_deep($value)
|
|
150 |
*/
|
151 |
function gmshc_all_post_thumb($the_parent){
|
152 |
|
153 |
-
$
|
154 |
$attachments = get_children( array(
|
155 |
'post_parent' => $the_parent,
|
156 |
'post_type' => 'attachment',
|
157 |
'post_mime_type' => 'image',
|
158 |
'orderby' => 'menu_order',
|
159 |
'order' => 'ASC',
|
160 |
-
'numberposts' => 10) );
|
|
|
161 |
|
162 |
if($attachments == true) :
|
163 |
-
foreach($attachments as $
|
164 |
-
|
165 |
-
array_push($
|
166 |
endforeach;
|
167 |
endif;
|
168 |
|
169 |
-
return $
|
170 |
}
|
171 |
|
172 |
/**
|
@@ -293,7 +305,7 @@ function gmshc_get_points($post_id) {
|
|
293 |
$default_icon = $options['default_icon'];
|
294 |
$post_title = get_the_title($post_id);
|
295 |
|
296 |
-
if (count($post_data_address) > 0) {
|
297 |
|
298 |
foreach ($post_data_address as $point_address){
|
299 |
$point_obj_address = new GMSHC_Point();
|
@@ -307,7 +319,7 @@ function gmshc_get_points($post_id) {
|
|
307 |
$post_data_ltlg = get_post_meta($post_id,'google-map-sc-latlng');
|
308 |
|
309 |
if (count($post_data_ltlg) > 0) {
|
310 |
-
|
311 |
foreach ($post_data_ltlg as $point_ltlg){
|
312 |
$point_obj_ltlg = new GMSHC_Point();
|
313 |
if ($point_obj_ltlg -> create_point("","",$point_ltlg,$post_title,"",$default_icon,"",$post_id)){
|
@@ -406,7 +418,11 @@ function gmshc_point($address,$ltlg){
|
|
406 |
}
|
407 |
|
408 |
function gmshc_clean_string($str){
|
409 |
-
|
|
|
|
|
|
|
|
|
410 |
}
|
411 |
|
412 |
/**
|
@@ -545,4 +561,219 @@ function gmshc_get_bd_points($post_id) {
|
|
545 |
|
546 |
}
|
547 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
548 |
?>
|
1 |
<?php
|
2 |
/**
|
3 |
* Google Map Shortcode
|
4 |
+
* Version: 3.1
|
5 |
* Author: Alain Gonzalez
|
6 |
* Plugin URI: http://web-argument.com/google-map-shortcode-wordpress-plugin/
|
7 |
*/
|
13 |
function gmshc_generate_map($map_points, $atts) {
|
14 |
|
15 |
extract($atts);
|
16 |
+
if ($canvas == "") $canvas = "canvas_".wp_generate_password(6, false);
|
17 |
|
18 |
$output ='<div id="'.$canvas.'" class = "gmsc" style="width:'.$width.'px; height:'.$height.'px; ';
|
19 |
switch ($align) {
|
59 |
}
|
60 |
|
61 |
$output .= "var options_".$canvas." = {\n";
|
62 |
+
$output .= "'mapID':'map_".$canvas."',\n";
|
63 |
$output .= "'zoom':".$zoom.",\n";
|
64 |
$output .= "'markers':map_points_".$canvas.",\n";
|
65 |
$output .= "'mapContainer':'".$canvas."',\n";
|
66 |
$output .= "'focusType':'".$focus_type."',\n";
|
67 |
+
$output .= "'type':'".$type."',\n";
|
68 |
+
|
69 |
switch ($focus) {
|
70 |
+
case "0" :
|
71 |
+
break;
|
72 |
case "all" :
|
73 |
$output .= "'circle':true,\n";
|
74 |
break;
|
|
|
|
|
75 |
default:
|
76 |
$output .= "'focusPoint':".($focus-1).",\n";
|
77 |
+
}
|
78 |
|
79 |
$output .= "'animateMarkers':".$animate.",\n";
|
80 |
$output .= "'interval':'".$interval."'\n";
|
85 |
$output .= "gmshc.addLoadEvent(trigger_".$canvas.");\n";
|
86 |
$output .= "</script>\n";
|
87 |
|
88 |
+
$final_output = apply_filters('gmshc_generate_map',$output,$map_points,$atts,$canvas);
|
89 |
|
90 |
+
return $final_output;
|
91 |
}
|
92 |
|
93 |
|
113 |
if (($point->post_id) > 0) $point_link = get_permalink($point->post_id);
|
114 |
else $point_link = "";
|
115 |
|
116 |
+
$point_thumbnail = "";
|
117 |
+
if ($point->thumbnail != "") {
|
118 |
+
if(is_numeric($point->thumbnail)){
|
119 |
+
$thumb = wp_get_attachment_image_src($point->thumbnail, 'thumbnail');
|
120 |
+
$point_thumbnail = $thumb[0];
|
121 |
+
}else{
|
122 |
+
$point_thumbnail = $point->thumbnail;
|
123 |
+
}
|
124 |
+
}
|
125 |
+
|
126 |
+
$point_img_url = ($point_thumbnail != "")? $point_thumbnail : gmshc_post_img($point->post_id);
|
127 |
|
128 |
$point_excerpt = gmshc_get_excerpt($point->post_id);
|
129 |
|
138 |
$html_width = "auto";
|
139 |
}
|
140 |
|
141 |
+
$find = array("%title%","%link%","%thubnail%", "%excerpt%","%description%","%address%","%open_map%","%width%","\r\n","\f","\v","\t","\r","\n","\\","\"");
|
142 |
+
$replace = array($point_title,$point_link,$point_img,$point_excerpt,$point_description,$point_address,$open_map_url,$html_width,"","","","","","","","'");
|
143 |
|
144 |
$windowhtml = str_replace( $find,$replace, $windowhtml_frame);
|
145 |
|
161 |
*/
|
162 |
function gmshc_all_post_thumb($the_parent){
|
163 |
|
164 |
+
$attachments_id = array();
|
165 |
$attachments = get_children( array(
|
166 |
'post_parent' => $the_parent,
|
167 |
'post_type' => 'attachment',
|
168 |
'post_mime_type' => 'image',
|
169 |
'orderby' => 'menu_order',
|
170 |
'order' => 'ASC',
|
171 |
+
'numberposts' => 10) );
|
172 |
+
|
173 |
|
174 |
if($attachments == true) :
|
175 |
+
foreach($attachments as $attachment) :
|
176 |
+
//$img = wp_get_attachment_image_src($id, 'thumbnail');
|
177 |
+
array_push($attachments_id,$attachment->ID);
|
178 |
endforeach;
|
179 |
endif;
|
180 |
|
181 |
+
return $attachments_id;
|
182 |
}
|
183 |
|
184 |
/**
|
305 |
$default_icon = $options['default_icon'];
|
306 |
$post_title = get_the_title($post_id);
|
307 |
|
308 |
+
if (is_array($post_data_address) && count($post_data_address) > 0) {
|
309 |
|
310 |
foreach ($post_data_address as $point_address){
|
311 |
$point_obj_address = new GMSHC_Point();
|
319 |
$post_data_ltlg = get_post_meta($post_id,'google-map-sc-latlng');
|
320 |
|
321 |
if (count($post_data_ltlg) > 0) {
|
322 |
+
print_r($post_data_ltlg);
|
323 |
foreach ($post_data_ltlg as $point_ltlg){
|
324 |
$point_obj_ltlg = new GMSHC_Point();
|
325 |
if ($point_obj_ltlg -> create_point("","",$point_ltlg,$post_title,"",$default_icon,"",$post_id)){
|
418 |
}
|
419 |
|
420 |
function gmshc_clean_string($str){
|
421 |
+
$find = array("\r\n","\f","\v","\t","\r","\n","\\","\""," ");
|
422 |
+
$replace = array("","","","","","","","'"," ");
|
423 |
+
|
424 |
+
$clean_str = str_replace( $find,$replace, $str);
|
425 |
+
return htmlentities(html_entity_decode(stripslashes($clean_str),ENT_QUOTES,"UTF-8"),ENT_QUOTES,"UTF-8");
|
426 |
}
|
427 |
|
428 |
/**
|
561 |
|
562 |
}
|
563 |
|
564 |
+
/**
|
565 |
+
* Modules functions
|
566 |
+
*/
|
567 |
+
function gmshc_load_modules() {
|
568 |
+
|
569 |
+
$gmshc_modules = array ();
|
570 |
+
$mod_root = GMSC_PLUGIN_DIR."/modules";
|
571 |
+
|
572 |
+
// Files in google-map-shortcode/modules directory
|
573 |
+
$mod_dir = @ opendir( $mod_root);
|
574 |
+
$mod_files = array();
|
575 |
+
if ( $mod_dir ) {
|
576 |
+
while (($file = readdir( $mod_dir ) ) !== false ) {
|
577 |
+
if ( substr($file, 0, 1) == '.' )
|
578 |
+
continue;
|
579 |
+
if ( is_dir( $mod_root.'/'.$file ) ) {
|
580 |
+
$mod_subdir = @ opendir( $mod_root.'/'.$file );
|
581 |
+
if ( $mod_subdir ) {
|
582 |
+
while (($subfile = readdir( $mod_subdir ) ) !== false ) {
|
583 |
+
|
584 |
+
if ( substr($subfile, 0, 1) == '.' )
|
585 |
+
continue;
|
586 |
+
if ( substr($subfile, -4) == '.php' )
|
587 |
+
$gmshc_modules[] = "$file";
|
588 |
+
}
|
589 |
+
closedir( $mod_subdir );
|
590 |
+
}
|
591 |
+
}
|
592 |
+
}
|
593 |
+
closedir( $mod_dir );
|
594 |
+
}
|
595 |
+
|
596 |
+
if ( count($gmshc_modules) > 0 ) {
|
597 |
+
foreach ($gmshc_modules as $module) {
|
598 |
+
if (gmshc_check_available_modules($module)) {
|
599 |
+
require_once (GMSC_PLUGIN_DIR."/modules/".$module."/functions.php");
|
600 |
+
|
601 |
+
}
|
602 |
+
}
|
603 |
+
}
|
604 |
+
|
605 |
+
}
|
606 |
+
|
607 |
+
function gmshc_available_modules(){
|
608 |
+
$modules = array(
|
609 |
+
array(
|
610 |
+
"id" => "slideshow",
|
611 |
+
"name" => __("Slideshow"),
|
612 |
+
"copy" => __("Allow more interaction with your maps, including a slideshow with the points images."),
|
613 |
+
"url" => "http://web-argument.com/google-map-shortcode-modules/#slideshow",
|
614 |
+
"image" => GMSC_PLUGIN_URL."/images/slideshow.jpg"
|
615 |
+
),
|
616 |
+
array(
|
617 |
+
"id" => "scroller",
|
618 |
+
"name" => __("Scroller"),
|
619 |
+
"copy" => __("Access the maps points easily, adding custom scrollbar with the points images."),
|
620 |
+
"url" => "http://web-argument.com/google-map-shortcode-modules/#scroller",
|
621 |
+
"image" => GMSC_PLUGIN_URL."/images/scroller.jpg"
|
622 |
+
));
|
623 |
+
|
624 |
+
return $modules;
|
625 |
+
}
|
626 |
+
|
627 |
+
function gmshc_check_available_modules($module_id){
|
628 |
+
|
629 |
+
$gmshc_av_modules = gmshc_available_modules();
|
630 |
+
|
631 |
+
foreach ($gmshc_av_modules as $av_modules) {
|
632 |
+
if ($av_modules["id"] == $module_id ){
|
633 |
+
return true;
|
634 |
+
}
|
635 |
+
}
|
636 |
+
return false;
|
637 |
+
}
|
638 |
+
|
639 |
+
function gmshc_update_module($module){
|
640 |
+
|
641 |
+
if (!gmshc_check_available_modules($module["id"])) {
|
642 |
+
return false;
|
643 |
+
}
|
644 |
+
$gmshc_options = get_gmshc_options();
|
645 |
+
$reg_mod = gmshc_is_module_register($module["id"]);
|
646 |
+
|
647 |
+
if (is_numeric($reg_mod)) {
|
648 |
+
|
649 |
+
$modules = $gmshc_options["modules"];
|
650 |
+
$modules[$reg_mod] = $module;
|
651 |
+
$gmshc_options["modules"] = $modules;
|
652 |
+
update_option('gmshc_op', $gmshc_options);
|
653 |
+
return true;
|
654 |
+
|
655 |
+
} else {
|
656 |
+
$modules = (isset($gmshc_options["modules"])) ? $gmshc_options["modules"] : array();
|
657 |
+
$modules[] = $module;
|
658 |
+
}
|
659 |
+
|
660 |
+
$gmshc_options["modules"] = $modules;
|
661 |
+
|
662 |
+
update_option('gmshc_op', $gmshc_options);
|
663 |
+
|
664 |
+
}
|
665 |
+
|
666 |
+
function gmshc_register_module($module){
|
667 |
+
|
668 |
+
if (!gmshc_check_available_modules($module["id"])) {
|
669 |
+
return false;
|
670 |
+
}
|
671 |
+
|
672 |
+
$reg_mod = gmshc_is_module_register($module["id"]);
|
673 |
+
|
674 |
+
if (is_numeric($reg_mod)) {
|
675 |
+
return true;
|
676 |
+
} else {
|
677 |
+
gmshc_update_module($module);
|
678 |
+
}
|
679 |
+
|
680 |
+
}
|
681 |
+
|
682 |
+
function gmshc_modules_setting() {
|
683 |
+
|
684 |
+
$modules = gmshc_available_modules();
|
685 |
+
$output = "<div id='gmshc_mod_container'>";
|
686 |
+
foreach ($modules as $module){
|
687 |
+
$output .= gmshc_render_module($module);
|
688 |
+
}
|
689 |
+
$output .= "</div>";
|
690 |
+
return $output;
|
691 |
+
}
|
692 |
+
|
693 |
+
function gmshc_render_module($module) {
|
694 |
+
|
695 |
+
$output = "<div class='gmshc_mod_box'>";
|
696 |
+
$output .= "<h4>".$module['name']."</h4>";
|
697 |
+
$output .= "<p>".$module['copy']."<p>";
|
698 |
+
$output .= "<p align='center'><a href='".$module['url']."' target='_blank' title='".$module['name']."'><img src='".$module['image']."' /></a></p>";
|
699 |
+
$output .= "<p align='left'><a href='".$module['url']."' target='_blank' title='".$module['name']."'><input type='button' value='".__('Install')."' class='button' /></a></p>";
|
700 |
+
$output .= "</div>";
|
701 |
+
|
702 |
+
$output = apply_filters('gmshc_render_module',$output,$module['id']);
|
703 |
+
|
704 |
+
return $output;
|
705 |
+
}
|
706 |
+
|
707 |
+
function gmshc_get_module_options($mod_id){
|
708 |
+
|
709 |
+
$gmshc_options = get_gmshc_options();
|
710 |
+
|
711 |
+
if(isset($gmshc_options['modules'])){
|
712 |
+
$modules = $gmshc_options['modules'];
|
713 |
+
if (count($modules) > 0){
|
714 |
+
$i = 0;
|
715 |
+
foreach($modules as $module){
|
716 |
+
if ($module["id"] == $mod_id){
|
717 |
+
return $modules[$i];
|
718 |
+
}
|
719 |
+
$i ++;
|
720 |
+
}
|
721 |
+
}
|
722 |
+
}
|
723 |
+
}
|
724 |
+
|
725 |
+
function gmshc_is_module_register($mod_id){
|
726 |
+
|
727 |
+
$gmshc_options = get_gmshc_options();
|
728 |
+
|
729 |
+
if(isset($gmshc_options["modules"]) && count($gmshc_options["modules"]) > 0){
|
730 |
+
$modules = $gmshc_options["modules"];
|
731 |
+
|
732 |
+
foreach($modules as $id => $reg_module){
|
733 |
+
|
734 |
+
if ($reg_module["id"] == $mod_id){
|
735 |
+
return $id;
|
736 |
+
}
|
737 |
+
}
|
738 |
+
}
|
739 |
+
|
740 |
+
}
|
741 |
+
|
742 |
+
function gmshc_is_module_enabled($mod_id){
|
743 |
+
|
744 |
+
$gmshc_options = get_gmshc_options();
|
745 |
+
|
746 |
+
if(isset($gmshc_options["modules"]) && count($gmshc_options["modules"]) > 0){
|
747 |
+
$modules = $gmshc_options["modules"];
|
748 |
+
|
749 |
+
foreach($modules as $id => $reg_module){
|
750 |
+
|
751 |
+
if ($reg_module["id"] == $mod_id && $reg_module["enable"]){
|
752 |
+
return true;
|
753 |
+
}
|
754 |
+
}
|
755 |
+
}
|
756 |
+
return false;
|
757 |
+
|
758 |
+
}
|
759 |
+
|
760 |
+
function gmshc_get_active_modules(){
|
761 |
+
|
762 |
+
$gmshc_options = get_gmshc_options();
|
763 |
+
$active_mods = array();
|
764 |
+
|
765 |
+
if(isset($gmshc_options["modules"]) && count($gmshc_options["modules"]) > 0){
|
766 |
+
$modules = $gmshc_options["modules"];
|
767 |
+
|
768 |
+
foreach($modules as $id => $reg_module){
|
769 |
+
if ($reg_module["enable"] == 1){
|
770 |
+
$active_mods[] = $reg_module;
|
771 |
+
}
|
772 |
+
}
|
773 |
+
|
774 |
+
}
|
775 |
+
|
776 |
+
return $active_mods;
|
777 |
+
|
778 |
+
}
|
779 |
?>
|
js/gmshc-admin.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/**
|
2 |
* Google Map Shortcode
|
3 |
-
* Version: 3.
|
4 |
* Author: Alain Gonzalez
|
5 |
* Plugin URI: http://web-argument.com/google-map-shortcode-wordpress-plugin/
|
6 |
*/
|
@@ -63,10 +63,14 @@
|
|
63 |
|
64 |
function gmshc_switchImg(obj) {
|
65 |
var iconSrc = obj.children("img").attr("src");
|
|
|
66 |
obj.siblings().removeClass('gmshc_selected');
|
67 |
-
obj.addClass('gmshc_selected');
|
68 |
-
|
69 |
-
|
|
|
|
|
|
|
70 |
}
|
71 |
|
72 |
function gmshc_add_map(){
|
@@ -105,7 +109,9 @@
|
|
105 |
var defaultFocusPoint = $("#default_focus").val();
|
106 |
|
107 |
var focusType = $("#focus_type").val();
|
108 |
-
var defaultFocusType= $("#default_focus_type").val();
|
|
|
|
|
109 |
|
110 |
str = "[google-map-sc";
|
111 |
urlP = "";
|
@@ -130,7 +136,10 @@
|
|
130 |
urlP += "focus="+focusPoint+"&";
|
131 |
if(focusType != defaultFocusType)
|
132 |
str += " focus_type=\""+focusType+"\"";
|
133 |
-
urlP += "focus_type="+focusType;
|
|
|
|
|
|
|
134 |
str +="]";
|
135 |
|
136 |
return [str,urlP];
|
1 |
/**
|
2 |
* Google Map Shortcode
|
3 |
+
* Version: 3.1
|
4 |
* Author: Alain Gonzalez
|
5 |
* Plugin URI: http://web-argument.com/google-map-shortcode-wordpress-plugin/
|
6 |
*/
|
63 |
|
64 |
function gmshc_switchImg(obj) {
|
65 |
var iconSrc = obj.children("img").attr("src");
|
66 |
+
var attchID = obj.children("img").attr("attch");
|
67 |
obj.siblings().removeClass('gmshc_selected');
|
68 |
+
obj.addClass('gmshc_selected');
|
69 |
+
var attr = iconSrc;
|
70 |
+
if (typeof attchID != "undefined"){
|
71 |
+
attr = attchID;
|
72 |
+
}
|
73 |
+
obj.siblings("input").val(attr);
|
74 |
}
|
75 |
|
76 |
function gmshc_add_map(){
|
109 |
var defaultFocusPoint = $("#default_focus").val();
|
110 |
|
111 |
var focusType = $("#focus_type").val();
|
112 |
+
var defaultFocusType= $("#default_focus_type").val();
|
113 |
+
|
114 |
+
var module = $("#module").val();
|
115 |
|
116 |
str = "[google-map-sc";
|
117 |
urlP = "";
|
136 |
urlP += "focus="+focusPoint+"&";
|
137 |
if(focusType != defaultFocusType)
|
138 |
str += " focus_type=\""+focusType+"\"";
|
139 |
+
urlP += "focus_type="+focusType;
|
140 |
+
if(module != "")
|
141 |
+
str += " module=\""+module+"\"";
|
142 |
+
urlP += "focus="+module+"&";
|
143 |
str +="]";
|
144 |
|
145 |
return [str,urlP];
|
js/gmshc.2.2.1.js
DELETED
@@ -1,277 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Google Map Shortcode
|
3 |
-
* Version: 3.0.1
|
4 |
-
* Author: Alain Gonzalez
|
5 |
-
* Plugin URI: http://web-argument.com/google-map-shortcode-wordpress-plugin/
|
6 |
-
*/
|
7 |
-
|
8 |
-
var gmshc = {};
|
9 |
-
|
10 |
-
(function(){
|
11 |
-
|
12 |
-
gmshc.Map = function(settings){
|
13 |
-
|
14 |
-
this.markers = settings.markers;
|
15 |
-
this.mapContainer = document.getElementById(settings.mapContainer);
|
16 |
-
this.zoom = (typeof settings.zoom != "undefined")? settings.zoom : 10;
|
17 |
-
this.type = (typeof settings.type != "undefined")? settings.type : "ROADMAP";
|
18 |
-
this.circle = (typeof settings.circle != "undefined")? settings.circle : false;
|
19 |
-
this.interval = (typeof settings.interval != "undefined")? settings.interval : 4000;
|
20 |
-
this.afterTilesLoadedCallback = (typeof settings.afterTilesLoadedCallback != "undefined")? settings.afterTilesLoadedCallback : null;
|
21 |
-
this.focusPoint = (typeof settings.focusPoint != "undefined")? settings.focusPoint : null;
|
22 |
-
this.focusType = (typeof settings.focusType != "undefined")? settings.focusType : "open"; //center
|
23 |
-
this.animateMarkers = (typeof settings.animateMarkers != "undefined")? settings.animateMarkers : true;
|
24 |
-
this.afterOpenCallback = (typeof settings.afterOpenCallback != "undefined")? settings.afterOpenCallback : null;
|
25 |
-
this.afterCircle = (typeof settings.afterCircle != "undefined")? settings.afterCircle : null;
|
26 |
-
|
27 |
-
this.map = null;
|
28 |
-
this.markersObj = [];
|
29 |
-
this.infowindowObj = [];
|
30 |
-
this.intervalId = null;
|
31 |
-
this.openItem = 0;
|
32 |
-
this.openWindow = null;
|
33 |
-
this.pointsNumber = this.markers.length;
|
34 |
-
this.userInfoWindowOpen = false;
|
35 |
-
this.disableMap = false;
|
36 |
-
|
37 |
-
};
|
38 |
-
|
39 |
-
gmshc.Map.prototype.init = function() {
|
40 |
-
|
41 |
-
var firstLat = this.markers[0].lat;
|
42 |
-
var firstLong = this.markers[0].lng;
|
43 |
-
var firstLatLng = new google.maps.LatLng(firstLat, firstLong);
|
44 |
-
|
45 |
-
this.map = new google.maps.Map(this.mapContainer, {
|
46 |
-
zoom: this.zoom,
|
47 |
-
center: firstLatLng,
|
48 |
-
mapTypeId: google.maps.MapTypeId[this.type]
|
49 |
-
});
|
50 |
-
|
51 |
-
var map = this.map;
|
52 |
-
var avgLat = 0;
|
53 |
-
var avgLng = 0;
|
54 |
-
|
55 |
-
if(this.afterTilesLoadedCallback != null) {
|
56 |
-
google.maps.event.addListener(map, 'tilesloaded', this.afterTilesLoadedCallback);
|
57 |
-
}
|
58 |
-
|
59 |
-
for (var i = 0; i < this.pointsNumber; i++){
|
60 |
-
|
61 |
-
var location = this.markers[i];
|
62 |
-
var animate = (this.animateMarkers)? google.maps.Animation.DROP : null;
|
63 |
-
var marker = new google.maps.Marker({
|
64 |
-
position: new google.maps.LatLng(location.lat, location.lng),
|
65 |
-
map: map,
|
66 |
-
icon: new google.maps.MarkerImage(location.icon),
|
67 |
-
animation: animate,
|
68 |
-
title:location.address
|
69 |
-
});
|
70 |
-
|
71 |
-
marker.cat = location.cat;
|
72 |
-
this.markersObj.push(marker);
|
73 |
-
|
74 |
-
var infowindow = new google.maps.InfoWindow({
|
75 |
-
maxWidth:340,
|
76 |
-
content: location.info
|
77 |
-
});
|
78 |
-
this.infowindowObj.push(marker);
|
79 |
-
|
80 |
-
var closure_1 = this.Bind(this.openInfoWindow(infowindow, marker));
|
81 |
-
google.maps.event.addListener(marker, 'click', closure_1);
|
82 |
-
|
83 |
-
var closure_3 = this.Bind(this.MarkerMouseOverHandler(marker));
|
84 |
-
google.maps.event.addListener(marker, 'mouseover', closure_3);
|
85 |
-
|
86 |
-
var closure_5 = this.Bind(this.MarkerMouseOutHandler(marker));
|
87 |
-
google.maps.event.addListener(marker, 'mouseout', closure_5);
|
88 |
-
|
89 |
-
var closure_6 = this.Bind(this.MapMouseOverHandler());
|
90 |
-
google.maps.event.addListener(map,'mouseover',closure_6);
|
91 |
-
|
92 |
-
var closure_7 = this.Bind(this.MapMouseOutHandler());
|
93 |
-
google.maps.event.addListener(map,'mouseout',closure_7);
|
94 |
-
|
95 |
-
// Sum up all lat/lng to calculate center all points.
|
96 |
-
avgLat += Number(location.lat);
|
97 |
-
avgLng += Number(location.lng);
|
98 |
-
}
|
99 |
-
|
100 |
-
// Center map.
|
101 |
-
this.map.setCenter(new google.maps.LatLng(
|
102 |
-
avgLat / this.pointsNumber, avgLng / this.pointsNumber));
|
103 |
-
|
104 |
-
if(this.circle) this.Play();
|
105 |
-
if(this.focusPoint != null) {
|
106 |
-
if (this.focusType == "center") this.Center(this.focusPoint);
|
107 |
-
else this.Open(this.focusPoint);
|
108 |
-
}
|
109 |
-
|
110 |
-
};
|
111 |
-
|
112 |
-
gmshc.Map.prototype.openInfoWindow = function(infoWindow, marker) {
|
113 |
-
return function() {
|
114 |
-
if (this.openWindow != null) {
|
115 |
-
this.openWindow.close();
|
116 |
-
this.userInfoWindowOpen = false;
|
117 |
-
}
|
118 |
-
if (typeof user == "undefined") user = false;
|
119 |
-
|
120 |
-
this.openWindow = infoWindow;
|
121 |
-
infoWindow.open(this.map, marker);
|
122 |
-
var closure_4 = this.Bind(this.CloseInfoWindow(infoWindow));
|
123 |
-
google.maps.event.addListener(infoWindow, 'closeclick', closure_4);
|
124 |
-
this.userInfoWindowOpen = true;
|
125 |
-
if(this.afterOpenCallback != null) this.afterOpenCallback(marker);
|
126 |
-
};
|
127 |
-
};
|
128 |
-
|
129 |
-
gmshc.Map.prototype.CloseInfoWindow = function(infoWindow) {
|
130 |
-
return function() {
|
131 |
-
this.userInfoWindowOpen = false;
|
132 |
-
this.disableMap = false;
|
133 |
-
}
|
134 |
-
};
|
135 |
-
|
136 |
-
gmshc.Map.prototype.Rotate = function(){
|
137 |
-
var visibles = this.Visibles();
|
138 |
-
if (!visibles) {
|
139 |
-
return;
|
140 |
-
}
|
141 |
-
if (this.disableMap) return;
|
142 |
-
if (this.openItem >= this.markersObj.length) this.openItem = 0;
|
143 |
-
if (this.markersObj[this.openItem].getVisible()){
|
144 |
-
if (this.focusType == "center"){
|
145 |
-
if (this.userInfoWindowOpen) return;
|
146 |
-
var location = this.markers[this.openItem];
|
147 |
-
this.map.setCenter(new google.maps.LatLng(location.lat, location.lng));
|
148 |
-
if (this.animateMarkers) {
|
149 |
-
this.StopAllAnimations();
|
150 |
-
this.ToggleAnimation(this.markersObj[this.openItem],"BOUNCE");
|
151 |
-
}
|
152 |
-
} else {
|
153 |
-
google.maps.event.trigger(this.markersObj[this.openItem],'click');
|
154 |
-
}
|
155 |
-
if(this.afterCircle != null) this.afterCircle(this.markersObj[this.openItem], this.openItem);
|
156 |
-
this.openItem ++;
|
157 |
-
} else {
|
158 |
-
this.openItem ++;
|
159 |
-
this.Rotate();
|
160 |
-
}
|
161 |
-
|
162 |
-
return;
|
163 |
-
};
|
164 |
-
|
165 |
-
gmshc.Map.prototype.Visibles = function(){
|
166 |
-
for (var i = 0; i < this.markersObj.length; i++){
|
167 |
-
if (this.markersObj[i].getVisible()) return true;
|
168 |
-
}
|
169 |
-
};
|
170 |
-
|
171 |
-
gmshc.Map.prototype.ToggleAnimation = function(marker,type) {
|
172 |
-
marker.setAnimation(google.maps.Animation[type]);
|
173 |
-
};
|
174 |
-
|
175 |
-
gmshc.Map.prototype.StopAllAnimations = function(){
|
176 |
-
for (var i = 0; i < this.markersObj.length; i++){
|
177 |
-
this.markersObj[i].setAnimation(null);
|
178 |
-
}
|
179 |
-
};
|
180 |
-
|
181 |
-
gmshc.Map.prototype.Play = function(){
|
182 |
-
if (!this.circle) this.circle = true;
|
183 |
-
if ( this.pointsNumber > 1 ) {
|
184 |
-
var closure_2 = this.Bind(this.Rotate);
|
185 |
-
this.intervalId = setInterval(closure_2, this.interval);
|
186 |
-
} else {
|
187 |
-
this.Open(0);
|
188 |
-
}
|
189 |
-
};
|
190 |
-
|
191 |
-
gmshc.Map.prototype.Stop = function(){
|
192 |
-
if (this.circle) this.circle = false;
|
193 |
-
clearInterval(this.intervalId);
|
194 |
-
};
|
195 |
-
|
196 |
-
gmshc.Map.prototype.Open = function(point){
|
197 |
-
if (this.disableMap) return;
|
198 |
-
if (this.markersObj[point].getVisible())
|
199 |
-
google.maps.event.trigger(this.markersObj[point],'click');
|
200 |
-
};
|
201 |
-
|
202 |
-
gmshc.Map.prototype.Center = function(point){
|
203 |
-
if (this.disableMap) return;
|
204 |
-
if (this.markersObj[point].getVisible()) {
|
205 |
-
if(this.openWindow != null) this.openWindow.close();
|
206 |
-
var location = this.markers[point];
|
207 |
-
this.map.setCenter(new google.maps.LatLng(location.lat, location.lng));
|
208 |
-
if (this.animateMarkers) {
|
209 |
-
this.StopAllAnimations();
|
210 |
-
this.ToggleAnimation(this.markersObj[point],"BOUNCE");
|
211 |
-
}
|
212 |
-
}
|
213 |
-
};
|
214 |
-
|
215 |
-
gmshc.Map.prototype.ShowMarkers = function(cat,display){
|
216 |
-
if(this.openWindow != null) this.openWindow.close();
|
217 |
-
for (var i = 0; i < this.pointsNumber; i++){
|
218 |
-
var catList = this.markersObj[i].cat;
|
219 |
-
var catArray = catList.split(",");
|
220 |
-
for (var j = 0; j < catArray.length; j++){
|
221 |
-
if (Number(catArray[j]) == cat)
|
222 |
-
this.markersObj[i].setVisible(display);
|
223 |
-
}
|
224 |
-
}
|
225 |
-
};
|
226 |
-
|
227 |
-
gmshc.Map.prototype.MarkerMouseOverHandler = function(marker) {
|
228 |
-
return function() {
|
229 |
-
this.disableMap = true;
|
230 |
-
if (marker.getAnimation() != null) {
|
231 |
-
marker.setAnimation(null);
|
232 |
-
}
|
233 |
-
}
|
234 |
-
};
|
235 |
-
|
236 |
-
gmshc.Map.prototype.MarkerMouseOutHandler = function(marker) {
|
237 |
-
return function() {
|
238 |
-
if (!this.userInfoWindowOpen) this.disableMap = false;
|
239 |
-
}
|
240 |
-
};
|
241 |
-
|
242 |
-
|
243 |
-
gmshc.Map.prototype.MapMouseOverHandler = function(){
|
244 |
-
return function(){
|
245 |
-
this.disableMap = true;
|
246 |
-
}
|
247 |
-
}
|
248 |
-
|
249 |
-
gmshc.Map.prototype.MapMouseOutHandler = function(){
|
250 |
-
return function(){
|
251 |
-
this.disableMap = false;
|
252 |
-
}
|
253 |
-
}
|
254 |
-
|
255 |
-
gmshc.Map.prototype.Bind = function( Method ){
|
256 |
-
var _this = this;
|
257 |
-
return(
|
258 |
-
function(){
|
259 |
-
return( Method.apply( _this, arguments ) );
|
260 |
-
}
|
261 |
-
);
|
262 |
-
};
|
263 |
-
|
264 |
-
gmshc.addLoadEvent = function(func) {
|
265 |
-
var oldonload = window.onload;
|
266 |
-
if (typeof window.onload != 'function') {
|
267 |
-
window.onload = func;
|
268 |
-
}
|
269 |
-
else {
|
270 |
-
window.onload = function() {
|
271 |
-
oldonload();
|
272 |
-
func();
|
273 |
-
}
|
274 |
-
}
|
275 |
-
};
|
276 |
-
|
277 |
-
})();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/gmshc.2.3.js
ADDED
@@ -0,0 +1,328 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Google Map Shortcode
|
3 |
+
* Version: 2.3
|
4 |
+
* Author: Alain Gonzalez
|
5 |
+
* Plugin URI: http://web-argument.com/google-map-shortcode-wordpress-plugin/
|
6 |
+
*/
|
7 |
+
|
8 |
+
var gmshc = {};
|
9 |
+
|
10 |
+
(function(){
|
11 |
+
|
12 |
+
gmshc.Config = {
|
13 |
+
|
14 |
+
markers : {},
|
15 |
+
zoom : 10,
|
16 |
+
type : "ROADMAP",
|
17 |
+
circle : false,
|
18 |
+
interval : 4000,
|
19 |
+
afterTilesLoadedCallback : null,
|
20 |
+
focusPoint : null,
|
21 |
+
focusType : "open", //center
|
22 |
+
animateMarkers : true,
|
23 |
+
afterCircle : null
|
24 |
+
|
25 |
+
};
|
26 |
+
|
27 |
+
gmshc.Map = function(settings){
|
28 |
+
|
29 |
+
this.settings = gmshc.Merge(settings,gmshc.config);
|
30 |
+
this.mapID = this.settings.mapID;
|
31 |
+
this.markers = this.settings.markers;
|
32 |
+
this.mapContainer = document.getElementById(settings.mapContainer);
|
33 |
+
this.map = null;
|
34 |
+
this.markersObj = [];
|
35 |
+
this.infowindowObj = [];
|
36 |
+
this.intervalId = null;
|
37 |
+
this.openItem = 0;
|
38 |
+
this.openWindow = null;
|
39 |
+
this.pointsNumber = this.markers.length;
|
40 |
+
this.userInfoWindowOpen = false;
|
41 |
+
this.disableMap = false;
|
42 |
+
this.statusCallback = null;
|
43 |
+
|
44 |
+
};
|
45 |
+
|
46 |
+
gmshc.MapProto = {
|
47 |
+
|
48 |
+
init : function() {
|
49 |
+
|
50 |
+
var firstLat = this.markers[0].lat;
|
51 |
+
var firstLong = this.markers[0].lng;
|
52 |
+
var firstLatLng = new google.maps.LatLng(firstLat, firstLong);
|
53 |
+
|
54 |
+
this.map = new google.maps.Map(this.mapContainer, {
|
55 |
+
zoom: this.settings.zoom,
|
56 |
+
center: firstLatLng,
|
57 |
+
mapTypeId: google.maps.MapTypeId[this.settings.type]
|
58 |
+
});
|
59 |
+
|
60 |
+
var map = this.map;
|
61 |
+
var avgLat = 0;
|
62 |
+
var avgLng = 0;
|
63 |
+
|
64 |
+
for (var i = 0; i < this.pointsNumber; i++){
|
65 |
+
|
66 |
+
var location = this.markers[i];
|
67 |
+
var animate = (this.settings.animateMarkers)? google.maps.Animation.DROP : null;
|
68 |
+
var marker = new google.maps.Marker({
|
69 |
+
position: new google.maps.LatLng(location.lat, location.lng),
|
70 |
+
map: map,
|
71 |
+
icon: new google.maps.MarkerImage(location.icon),
|
72 |
+
animation: animate,
|
73 |
+
title:location.address
|
74 |
+
});
|
75 |
+
|
76 |
+
marker.cat = location.cat;
|
77 |
+
marker.id = i;
|
78 |
+
this.markersObj.push(marker);
|
79 |
+
|
80 |
+
var infowindow = new google.maps.InfoWindow({
|
81 |
+
maxWidth:340,
|
82 |
+
content: location.info
|
83 |
+
});
|
84 |
+
this.infowindowObj.push(marker);
|
85 |
+
|
86 |
+
var closure_1 = this.Bind(this.OpenInfoWindow(infowindow, marker));
|
87 |
+
google.maps.event.addListener(marker, 'click', closure_1);
|
88 |
+
|
89 |
+
var closure_3 = this.Bind(this.MarkerMouseOverHandler(marker));
|
90 |
+
google.maps.event.addListener(marker, 'mouseover', closure_3);
|
91 |
+
|
92 |
+
var closure_5 = this.Bind(this.MarkerMouseOutHandler(marker));
|
93 |
+
google.maps.event.addListener(marker, 'mouseout', closure_5);
|
94 |
+
|
95 |
+
var closure_6 = this.Bind(this.MapMouseOverHandler());
|
96 |
+
google.maps.event.addListener(map,'mouseover',closure_6);
|
97 |
+
|
98 |
+
var closure_7 = this.Bind(this.MapMouseOutHandler());
|
99 |
+
google.maps.event.addListener(map,'mouseout',closure_7);
|
100 |
+
|
101 |
+
// Sum up all lat/lng to calculate center all points.
|
102 |
+
avgLat += Number(location.lat);
|
103 |
+
avgLng += Number(location.lng);
|
104 |
+
}
|
105 |
+
|
106 |
+
// Center map.
|
107 |
+
this.map.setCenter(new google.maps.LatLng(
|
108 |
+
avgLat / this.pointsNumber, avgLng / this.pointsNumber));
|
109 |
+
|
110 |
+
if(this.settings.circle) this.Play();
|
111 |
+
if(this.settings.focusPoint != null) {
|
112 |
+
if (this.settings.focusType == "center") this.Center(this.settings.focusPoint);
|
113 |
+
else this.Open(this.settings.focusPoint);
|
114 |
+
}
|
115 |
+
|
116 |
+
},
|
117 |
+
|
118 |
+
OpenInfoWindow : function(infoWindow, marker) {
|
119 |
+
return function() {
|
120 |
+
this.StopAllAnimations();
|
121 |
+
if (this.openWindow != null) {
|
122 |
+
this.openWindow.close();
|
123 |
+
this.userInfoWindowOpen = false;
|
124 |
+
}
|
125 |
+
this.openWindow = infoWindow;
|
126 |
+
infoWindow.open(this.map, marker);
|
127 |
+
var closure_4 = this.Bind(this.CloseInfoWindow(infoWindow));
|
128 |
+
google.maps.event.addListener(infoWindow, 'closeclick', closure_4);
|
129 |
+
this.userInfoWindowOpen = true;
|
130 |
+
this.UpdateStatus('OPEN',marker.id);
|
131 |
+
};
|
132 |
+
},
|
133 |
+
|
134 |
+
CloseInfoWindow : function(infoWindow) {
|
135 |
+
return function() {
|
136 |
+
this.UpdateStatus('CLOSED');
|
137 |
+
this.userInfoWindowOpen = false;
|
138 |
+
if (this.settings.focusType == "center"){
|
139 |
+
this.disableMap = false;
|
140 |
+
}
|
141 |
+
}
|
142 |
+
},
|
143 |
+
|
144 |
+
Rotate : function(){
|
145 |
+
var visibles = this.Visibles();
|
146 |
+
if (!visibles) {
|
147 |
+
return;
|
148 |
+
}
|
149 |
+
if (this.disableMap) return;
|
150 |
+
if (this.openItem >= this.markersObj.length || this.openItem < 0 ) this.openItem = 0;
|
151 |
+
if (this.markersObj[this.openItem].getVisible()){
|
152 |
+
this.Focus(this.openItem);
|
153 |
+
this.openItem ++;
|
154 |
+
} else {
|
155 |
+
this.openItem ++;
|
156 |
+
this.Rotate();
|
157 |
+
}
|
158 |
+
|
159 |
+
return;
|
160 |
+
},
|
161 |
+
|
162 |
+
Focus :function(point){
|
163 |
+
if (typeof point == "undefined") {
|
164 |
+
this.openItem = point;
|
165 |
+
} else {
|
166 |
+
this.openItem = point;
|
167 |
+
}
|
168 |
+
if (this.settings.focusType == "center"){
|
169 |
+
if (this.userInfoWindowOpen) return;
|
170 |
+
this.Center(point);
|
171 |
+
} else {
|
172 |
+
google.maps.event.trigger(this.markersObj[point],'click');
|
173 |
+
}
|
174 |
+
},
|
175 |
+
|
176 |
+
Visibles : function(){
|
177 |
+
for (var i = 0; i < this.markersObj.length; i++){
|
178 |
+
if (this.markersObj[i].getVisible()) return true;
|
179 |
+
}
|
180 |
+
},
|
181 |
+
|
182 |
+
ToggleAnimation : function(marker,type) {
|
183 |
+
marker.setAnimation(google.maps.Animation[type]);
|
184 |
+
},
|
185 |
+
|
186 |
+
StopAllAnimations : function(){
|
187 |
+
for (var i = 0; i < this.markersObj.length; i++){
|
188 |
+
this.markersObj[i].setAnimation(null);
|
189 |
+
}
|
190 |
+
},
|
191 |
+
|
192 |
+
Play : function(){
|
193 |
+
if (!this.settings.circle) this.settings.circle = true;
|
194 |
+
if ( this.pointsNumber > 1 ) {
|
195 |
+
this.UpdateStatus('PLAY');
|
196 |
+
var closure_2 = this.Bind(this.Rotate);
|
197 |
+
this.intervalId = setInterval(closure_2, this.settings.interval);
|
198 |
+
} else {
|
199 |
+
this.Open(0);
|
200 |
+
}
|
201 |
+
},
|
202 |
+
|
203 |
+
Stop : function(){
|
204 |
+
if (this.settings.circle) this.settings.circle = false;
|
205 |
+
this.StopAllAnimations();
|
206 |
+
clearInterval(this.intervalId);
|
207 |
+
this.UpdateStatus('STOPED');
|
208 |
+
},
|
209 |
+
|
210 |
+
Open : function(point){
|
211 |
+
if (this.disableMap) return;
|
212 |
+
if (this.markersObj[point].getVisible()){
|
213 |
+
google.maps.event.trigger(this.markersObj[point],'click');
|
214 |
+
this.UpdateStatus('OPEN',point);
|
215 |
+
}
|
216 |
+
},
|
217 |
+
|
218 |
+
Center : function(point){
|
219 |
+
//if (this.disableMap) return;
|
220 |
+
this.UpdateStatus('CENTER',point);
|
221 |
+
if (this.markersObj[point].getVisible()) {
|
222 |
+
if(this.openWindow != null) this.openWindow.close();
|
223 |
+
var location = this.markers[point];
|
224 |
+
this.map.setCenter(new google.maps.LatLng(location.lat, location.lng));
|
225 |
+
if (this.settings.animateMarkers) {
|
226 |
+
this.StopAllAnimations();
|
227 |
+
this.ToggleAnimation(this.markersObj[point],"BOUNCE");
|
228 |
+
}
|
229 |
+
}
|
230 |
+
},
|
231 |
+
|
232 |
+
ShowMarkers : function(cat,display){
|
233 |
+
if(this.openWindow != null) this.openWindow.close();
|
234 |
+
for (var i = 0; i < this.pointsNumber; i++){
|
235 |
+
var catList = this.markersObj[i].cat;
|
236 |
+
var catArray = catList.split(",");
|
237 |
+
for (var j = 0; j < catArray.length; j++){
|
238 |
+
if (Number(catArray[j]) == cat)
|
239 |
+
this.markersObj[i].setVisible(display);
|
240 |
+
}
|
241 |
+
}
|
242 |
+
},
|
243 |
+
|
244 |
+
MarkerMouseOverHandler : function(marker) {
|
245 |
+
return function() {
|
246 |
+
if (marker.getAnimation() != null) {
|
247 |
+
marker.setAnimation(null);
|
248 |
+
this.UpdateStatus('MARKER-MOUSEOVER');
|
249 |
+
}
|
250 |
+
}
|
251 |
+
},
|
252 |
+
|
253 |
+
MarkerMouseOutHandler : function(marker) {
|
254 |
+
return function() {
|
255 |
+
this.UpdateStatus('MARKER-MOUSEOUT');
|
256 |
+
}
|
257 |
+
},
|
258 |
+
|
259 |
+
|
260 |
+
MapMouseOverHandler : function(){
|
261 |
+
return function(){
|
262 |
+
this.disableMap = true;
|
263 |
+
this.UpdateStatus('MAP-MOUSEOVER');
|
264 |
+
}
|
265 |
+
},
|
266 |
+
|
267 |
+
MapMouseOutHandler : function(){
|
268 |
+
return function(){
|
269 |
+
this.disableMap = false;
|
270 |
+
this.UpdateStatus('MAP-MOUSEOUT');
|
271 |
+
}
|
272 |
+
},
|
273 |
+
|
274 |
+
Bind : function( Method ){
|
275 |
+
var _this = this;
|
276 |
+
return(
|
277 |
+
function(){
|
278 |
+
return( Method.apply( _this, arguments ) );
|
279 |
+
}
|
280 |
+
);
|
281 |
+
},
|
282 |
+
|
283 |
+
UpdateStatus : function(st){
|
284 |
+
|
285 |
+
var id = arguments[1];
|
286 |
+
if (this.statusCallback != null){
|
287 |
+
this.statusCallback(this.mapID,st,id);
|
288 |
+
}
|
289 |
+
|
290 |
+
}
|
291 |
+
};
|
292 |
+
|
293 |
+
|
294 |
+
gmshc.Merge = function(r, s, ov) {
|
295 |
+
var z;
|
296 |
+
|
297 |
+
for (z in s) {
|
298 |
+
|
299 |
+
if (typeof s[z] == "object") {
|
300 |
+
if (!r.hasOwnProperty(z)) {
|
301 |
+
r[z] = {};
|
302 |
+
}
|
303 |
+
r[z] = SSO.Merge(r[z], s[z], true);
|
304 |
+
}
|
305 |
+
|
306 |
+
if ((!r.hasOwnProperty(z)) || (r.hasOwnProperty(z) && ov)) {
|
307 |
+
r[z] = s[z];
|
308 |
+
}
|
309 |
+
}
|
310 |
+
return r;
|
311 |
+
};
|
312 |
+
|
313 |
+
gmshc.addLoadEvent = function(func) {
|
314 |
+
var oldonload = window.onload;
|
315 |
+
if (typeof window.onload != 'function') {
|
316 |
+
window.onload = func;
|
317 |
+
}
|
318 |
+
else {
|
319 |
+
window.onload = function() {
|
320 |
+
oldonload();
|
321 |
+
func();
|
322 |
+
}
|
323 |
+
}
|
324 |
+
};
|
325 |
+
|
326 |
+
gmshc.Map.prototype = gmshc.MapProto;
|
327 |
+
|
328 |
+
})();
|
js/gmshc.2.3.min.js
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Google Map Shortcode
|
3 |
+
* Version: 2.3
|
4 |
+
* Author: Alain Gonzalez
|
5 |
+
* Plugin URI: http://web-argument.com/google-map-shortcode-wordpress-plugin/
|
6 |
+
*/
|
7 |
+
|
8 |
+
var gmshc = {};(function(){gmshc.Config={markers:{},zoom:10,type:"ROADMAP",circle:false,interval:4000,afterTilesLoadedCallback:null,focusPoint:null,focusType:"open",animateMarkers:true,afterCircle:null};gmshc.Map=function(settings){this.settings=gmshc.Merge(settings,gmshc.config);this.mapID=this.settings.mapID;this.markers=this.settings.markers;this.mapContainer=document.getElementById(settings.mapContainer);this.map=null;this.markersObj=[];this.infowindowObj=[];this.intervalId=null;this.openItem=0;this.openWindow=null;this.pointsNumber=this.markers.length;this.userInfoWindowOpen=false;this.disableMap=false;this.statusCallback=null};gmshc.MapProto={init:function(){var firstLat=this.markers[0].lat;var firstLong=this.markers[0].lng;var firstLatLng=new google.maps.LatLng(firstLat,firstLong);this.map=new google.maps.Map(this.mapContainer,{zoom:this.settings.zoom,center:firstLatLng,mapTypeId:google.maps.MapTypeId[this.settings.type]});var map=this.map;var avgLat=0;var avgLng=0;for(var i=0;i<this.pointsNumber;i++){var location=this.markers[i];var animate=(this.settings.animateMarkers)?google.maps.Animation.DROP:null;var marker=new google.maps.Marker({position:new google.maps.LatLng(location.lat,location.lng),map:map,icon:new google.maps.MarkerImage(location.icon),animation:animate,title:location.address});marker.cat=location.cat;marker.id=i;this.markersObj.push(marker);var infowindow=new google.maps.InfoWindow({maxWidth:340,content:location.info});this.infowindowObj.push(marker);var closure_1=this.Bind(this.OpenInfoWindow(infowindow,marker));google.maps.event.addListener(marker,'click',closure_1);var closure_3=this.Bind(this.MarkerMouseOverHandler(marker));google.maps.event.addListener(marker,'mouseover',closure_3);var closure_5=this.Bind(this.MarkerMouseOutHandler(marker));google.maps.event.addListener(marker,'mouseout',closure_5);var closure_6=this.Bind(this.MapMouseOverHandler());google.maps.event.addListener(map,'mouseover',closure_6);var closure_7=this.Bind(this.MapMouseOutHandler());google.maps.event.addListener(map,'mouseout',closure_7);avgLat+=Number(location.lat);avgLng+=Number(location.lng)}this.map.setCenter(new google.maps.LatLng(avgLat/this.pointsNumber,avgLng/this.pointsNumber));if(this.settings.circle)this.Play();if(this.settings.focusPoint!=null){if(this.settings.focusType=="center")this.Center(this.settings.focusPoint);else this.Open(this.settings.focusPoint)}},OpenInfoWindow:function(infoWindow,marker){return function(){this.StopAllAnimations();if(this.openWindow!=null){this.openWindow.close();this.userInfoWindowOpen=false}this.openWindow=infoWindow;infoWindow.open(this.map,marker);var closure_4=this.Bind(this.CloseInfoWindow(infoWindow));google.maps.event.addListener(infoWindow,'closeclick',closure_4);this.userInfoWindowOpen=true;this.UpdateStatus('OPEN',marker.id)}},CloseInfoWindow:function(infoWindow){return function(){this.UpdateStatus('CLOSED');this.userInfoWindowOpen=false;if(this.settings.focusType=="center"){this.disableMap=false}}},Rotate:function(){var visibles=this.Visibles();if(!visibles){return}if(this.disableMap)return;if(this.openItem>=this.markersObj.length||this.openItem<0)this.openItem=0;if(this.markersObj[this.openItem].getVisible()){this.Focus(this.openItem);this.openItem++}else{this.openItem++;this.Rotate()}return},Focus:function(point){if(typeof point=="undefined"){this.openItem=point}else{this.openItem=point}if(this.settings.focusType=="center"){if(this.userInfoWindowOpen)return;this.Center(point)}else{google.maps.event.trigger(this.markersObj[point],'click')}},Visibles:function(){for(var i=0;i<this.markersObj.length;i++){if(this.markersObj[i].getVisible())return true}},ToggleAnimation:function(marker,type){marker.setAnimation(google.maps.Animation[type])},StopAllAnimations:function(){for(var i=0;i<this.markersObj.length;i++){this.markersObj[i].setAnimation(null)}},Play:function(){if(!this.settings.circle)this.settings.circle=true;if(this.pointsNumber>1){this.UpdateStatus('PLAY');var closure_2=this.Bind(this.Rotate);this.intervalId=setInterval(closure_2,this.settings.interval)}else{this.Open(0)}},Stop:function(){if(this.settings.circle)this.settings.circle=false;this.StopAllAnimations();clearInterval(this.intervalId);this.UpdateStatus('STOPED')},Open:function(point){if(this.disableMap)return;if(this.markersObj[point].getVisible()){google.maps.event.trigger(this.markersObj[point],'click');this.UpdateStatus('OPEN',point)}},Center:function(point){this.UpdateStatus('CENTER',point);if(this.markersObj[point].getVisible()){if(this.openWindow!=null)this.openWindow.close();var location=this.markers[point];this.map.setCenter(new google.maps.LatLng(location.lat,location.lng));if(this.settings.animateMarkers){this.StopAllAnimations();this.ToggleAnimation(this.markersObj[point],"BOUNCE")}}},ShowMarkers:function(cat,display){if(this.openWindow!=null)this.openWindow.close();for(var i=0;i<this.pointsNumber;i++){var catList=this.markersObj[i].cat;var catArray=catList.split(",");for(var j=0;j<catArray.length;j++){if(Number(catArray[j])==cat)this.markersObj[i].setVisible(display)}}},MarkerMouseOverHandler:function(marker){return function(){if(marker.getAnimation()!=null){marker.setAnimation(null);this.UpdateStatus('MARKER-MOUSEOVER')}}},MarkerMouseOutHandler:function(marker){return function(){this.UpdateStatus('MARKER-MOUSEOUT')}},MapMouseOverHandler:function(){return function(){this.disableMap=true;this.UpdateStatus('MAP-MOUSEOVER')}},MapMouseOutHandler:function(){return function(){this.disableMap=false;this.UpdateStatus('MAP-MOUSEOUT')}},Bind:function(Method){var _this=this;return(function(){return(Method.apply(_this,arguments))})},UpdateStatus:function(st){var id=arguments[1];if(this.statusCallback!=null){this.statusCallback(this.mapID,st,id)}}};gmshc.Merge=function(r,s,ov){var z;for(z in s){if(typeof s[z]=="object"){if(!r.hasOwnProperty(z)){r[z]={}}r[z]=SSO.Merge(r[z],s[z],true)}if((!r.hasOwnProperty(z))||(r.hasOwnProperty(z)&&ov)){r[z]=s[z]}}return r};gmshc.addLoadEvent=function(func){var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func}else{window.onload=function(){oldonload();func()}}};gmshc.Map.prototype=gmshc.MapProto})();
|
languages/google-map-sc-pl_PL.mo
ADDED
Binary file
|
languages/google-map-sc-pl_PL.po
ADDED
@@ -0,0 +1,615 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: google_map_sc\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2011-08-23 13:39-0500\n"
|
6 |
+
"PO-Revision-Date: 2011-11-21 10:42+0100\n"
|
7 |
+
"Last-Translator: Łukasz Farysej <lfarysej@gmail.com>\n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Poedit-KeywordsList: __;_e\n"
|
13 |
+
"X-Poedit-Basepath: C:\\server\\www\\myserver.dev\\public_html\\wp31\\wp-content\\plugins\\\n"
|
14 |
+
"X-Poedit-SearchPath-0: google-map-shortcode\n"
|
15 |
+
|
16 |
+
#: google-map-shortcode/google-map-shortcode.php:227
|
17 |
+
msgid "There is not points to locate on the map"
|
18 |
+
msgstr "Nie można zlokalizowac punktu"
|
19 |
+
|
20 |
+
#: google-map-shortcode/google-map-shortcode.php:245
|
21 |
+
#: google-map-shortcode/google-map-shortcode.php:900
|
22 |
+
msgid "Google Map Shortcode"
|
23 |
+
msgstr "Skrót Google Map"
|
24 |
+
|
25 |
+
#: google-map-shortcode/google-map-shortcode.php:301
|
26 |
+
msgid "The Address can't be located."
|
27 |
+
msgstr "Nie można zlokalizowac adresu"
|
28 |
+
|
29 |
+
#: google-map-shortcode/google-map-shortcode.php:307
|
30 |
+
msgid "The Point was updated."
|
31 |
+
msgstr "Punkt został zaktualizowany"
|
32 |
+
|
33 |
+
#: google-map-shortcode/google-map-shortcode.php:308
|
34 |
+
msgid "The Points can't be updated."
|
35 |
+
msgstr "Nie można zaktualizować Punktu"
|
36 |
+
|
37 |
+
#: google-map-shortcode/google-map-shortcode.php:313
|
38 |
+
msgid "The Point was deleted."
|
39 |
+
msgstr "unkt został usunięty"
|
40 |
+
|
41 |
+
#: google-map-shortcode/google-map-shortcode.php:339
|
42 |
+
msgid "Add New Point"
|
43 |
+
msgstr "Dodaj nowy Punkt"
|
44 |
+
|
45 |
+
#: google-map-shortcode/google-map-shortcode.php:344
|
46 |
+
msgid "Title"
|
47 |
+
msgstr "Tytuł"
|
48 |
+
|
49 |
+
#: google-map-shortcode/google-map-shortcode.php:352
|
50 |
+
msgid "Description"
|
51 |
+
msgstr "Opis"
|
52 |
+
|
53 |
+
#: google-map-shortcode/google-map-shortcode.php:360
|
54 |
+
msgid "Full Address"
|
55 |
+
msgstr "Pełny adres"
|
56 |
+
|
57 |
+
#: google-map-shortcode/google-map-shortcode.php:378
|
58 |
+
msgid "Select the thumbnail by clicking on the images"
|
59 |
+
msgstr "Wybierz miniaturkę klikając na obrazek"
|
60 |
+
|
61 |
+
#: google-map-shortcode/google-map-shortcode.php:390
|
62 |
+
msgid "Thumbnail: "
|
63 |
+
msgstr "Miniaturka:"
|
64 |
+
|
65 |
+
#: google-map-shortcode/google-map-shortcode.php:390
|
66 |
+
msgid "If you want to attach an image to the point you need to upload it first to the post gallery"
|
67 |
+
msgstr "Jeśli chcesz załączyć obraz do Punktu, najpierw musisz dodac obrazek do galerii postu"
|
68 |
+
|
69 |
+
#: google-map-shortcode/google-map-shortcode.php:393
|
70 |
+
msgid "Upload Images"
|
71 |
+
msgstr "Wczytaj obrazki"
|
72 |
+
|
73 |
+
#: google-map-shortcode/google-map-shortcode.php:393
|
74 |
+
#: google-map-shortcode/google-map-shortcode.php:471
|
75 |
+
msgid "Add Point"
|
76 |
+
msgstr "Dodaj Punkt"
|
77 |
+
|
78 |
+
#: google-map-shortcode/google-map-shortcode.php:399
|
79 |
+
msgid "Map Configuration"
|
80 |
+
msgstr "Konfiguracja mapy"
|
81 |
+
|
82 |
+
#: google-map-shortcode/google-map-shortcode.php:403
|
83 |
+
#: google-map-shortcode/google-map-shortcode.php:669
|
84 |
+
msgid "Width"
|
85 |
+
msgstr "Szerokość"
|
86 |
+
|
87 |
+
#: google-map-shortcode/google-map-shortcode.php:407
|
88 |
+
#: google-map-shortcode/google-map-shortcode.php:673
|
89 |
+
msgid "Height"
|
90 |
+
msgstr "Wysokość"
|
91 |
+
|
92 |
+
#: google-map-shortcode/google-map-shortcode.php:411
|
93 |
+
#: google-map-shortcode/google-map-shortcode.php:677
|
94 |
+
msgid "Margin"
|
95 |
+
msgstr "Margines"
|
96 |
+
|
97 |
+
#: google-map-shortcode/google-map-shortcode.php:415
|
98 |
+
#: google-map-shortcode/google-map-shortcode.php:681
|
99 |
+
msgid "Align"
|
100 |
+
msgstr "Wyrównanie"
|
101 |
+
|
102 |
+
#: google-map-shortcode/google-map-shortcode.php:417
|
103 |
+
#: google-map-shortcode/google-map-shortcode.php:683
|
104 |
+
msgid "left"
|
105 |
+
msgstr "do lewej"
|
106 |
+
|
107 |
+
#: google-map-shortcode/google-map-shortcode.php:418
|
108 |
+
#: google-map-shortcode/google-map-shortcode.php:684
|
109 |
+
msgid "center"
|
110 |
+
msgstr "wyśrodkuj"
|
111 |
+
|
112 |
+
#: google-map-shortcode/google-map-shortcode.php:419
|
113 |
+
#: google-map-shortcode/google-map-shortcode.php:685
|
114 |
+
msgid "right"
|
115 |
+
msgstr "do prawej"
|
116 |
+
|
117 |
+
#: google-map-shortcode/google-map-shortcode.php:422
|
118 |
+
#: google-map-shortcode/google-map-shortcode.php:688
|
119 |
+
msgid "Zoom"
|
120 |
+
msgstr "Powiększenie"
|
121 |
+
|
122 |
+
#: google-map-shortcode/google-map-shortcode.php:431
|
123 |
+
msgid "Maps Type"
|
124 |
+
msgstr "Typ mapy"
|
125 |
+
|
126 |
+
#: google-map-shortcode/google-map-shortcode.php:434
|
127 |
+
#: google-map-shortcode/google-map-shortcode.php:700
|
128 |
+
msgid "ROADMAP - Displays a normal street map"
|
129 |
+
msgstr "MAPA - wyświetla normalną mapę"
|
130 |
+
|
131 |
+
#: google-map-shortcode/google-map-shortcode.php:435
|
132 |
+
#: google-map-shortcode/google-map-shortcode.php:701
|
133 |
+
msgid "SATELLITE - Displays satellite images"
|
134 |
+
msgstr "SATELITA - wyświetla obraz satelity"
|
135 |
+
|
136 |
+
#: google-map-shortcode/google-map-shortcode.php:436
|
137 |
+
#: google-map-shortcode/google-map-shortcode.php:702
|
138 |
+
msgid "TERRAIN - Displays maps with physical features such as terrain and vegetation"
|
139 |
+
msgstr "TEREN - wyświetla mapę z fizycznymi właściwościami takimi jak teren czy roślinność"
|
140 |
+
|
141 |
+
#: google-map-shortcode/google-map-shortcode.php:437
|
142 |
+
#: google-map-shortcode/google-map-shortcode.php:703
|
143 |
+
msgid "HYBRID - Displays a transparent layer of major streets on satellite images"
|
144 |
+
msgstr "HYBRYDOWA- wyświetla przezroczystą warstwę ulic na mapie satelitarnej"
|
145 |
+
|
146 |
+
#: google-map-shortcode/google-map-shortcode.php:442
|
147 |
+
msgid "Focus"
|
148 |
+
msgstr "Fokus"
|
149 |
+
|
150 |
+
#: google-map-shortcode/google-map-shortcode.php:445
|
151 |
+
msgid "None"
|
152 |
+
msgstr "Żaden"
|
153 |
+
|
154 |
+
#: google-map-shortcode/google-map-shortcode.php:447
|
155 |
+
msgid "All"
|
156 |
+
msgstr "Wszystkie"
|
157 |
+
|
158 |
+
#: google-map-shortcode/google-map-shortcode.php:454
|
159 |
+
msgid "Select the point to be focused after loading the map"
|
160 |
+
msgstr "Wybierz punkt, który będzie aktywny po wczytaniu mapy"
|
161 |
+
|
162 |
+
#: google-map-shortcode/google-map-shortcode.php:458
|
163 |
+
#: google-map-shortcode/google-map-shortcode.php:783
|
164 |
+
msgid "Focus Type"
|
165 |
+
msgstr "Typ fokusu"
|
166 |
+
|
167 |
+
#: google-map-shortcode/google-map-shortcode.php:461
|
168 |
+
#: google-map-shortcode/google-map-shortcode.php:786
|
169 |
+
msgid "Open Markers"
|
170 |
+
msgstr "Otwórz markery"
|
171 |
+
|
172 |
+
#: google-map-shortcode/google-map-shortcode.php:462
|
173 |
+
#: google-map-shortcode/google-map-shortcode.php:787
|
174 |
+
msgid "Center Markers"
|
175 |
+
msgstr "Wycentruj markery"
|
176 |
+
|
177 |
+
#: google-map-shortcode/google-map-shortcode.php:472
|
178 |
+
#: google-map-shortcode/google-map-shortcode.php:531
|
179 |
+
msgid "Insert Map"
|
180 |
+
msgstr "Wstaw mapę"
|
181 |
+
|
182 |
+
#: google-map-shortcode/google-map-shortcode.php:473
|
183 |
+
msgid " Points Added"
|
184 |
+
msgstr "Dodano punkty"
|
185 |
+
|
186 |
+
#: google-map-shortcode/google-map-shortcode.php:485
|
187 |
+
msgid "Marker"
|
188 |
+
msgstr "Marker"
|
189 |
+
|
190 |
+
#: google-map-shortcode/google-map-shortcode.php:486
|
191 |
+
#: google-map-shortcode/google-map-shortcode.php:505
|
192 |
+
msgid "Thumbnail"
|
193 |
+
msgstr "Miniaturka"
|
194 |
+
|
195 |
+
#: google-map-shortcode/google-map-shortcode.php:487
|
196 |
+
msgid "Title/Description"
|
197 |
+
msgstr "Tytuł/opis"
|
198 |
+
|
199 |
+
#: google-map-shortcode/google-map-shortcode.php:488
|
200 |
+
msgid "Address/LtLg"
|
201 |
+
msgstr "Adres"
|
202 |
+
|
203 |
+
#: google-map-shortcode/google-map-shortcode.php:499
|
204 |
+
msgid "Icon"
|
205 |
+
msgstr "Ikona"
|
206 |
+
|
207 |
+
#: google-map-shortcode/google-map-shortcode.php:519
|
208 |
+
msgid "Update"
|
209 |
+
msgstr "Zaktualizuj"
|
210 |
+
|
211 |
+
#: google-map-shortcode/google-map-shortcode.php:520
|
212 |
+
msgid "You will not be able to roll back deletion. Are you sure?"
|
213 |
+
msgstr "Nie będziesz w stanie cofnąć tej operacji Kontynuować?"
|
214 |
+
|
215 |
+
#: google-map-shortcode/google-map-shortcode.php:520
|
216 |
+
msgid "Delete"
|
217 |
+
msgstr "Usuń"
|
218 |
+
|
219 |
+
#: google-map-shortcode/google-map-shortcode.php:531
|
220 |
+
msgid "Show Map"
|
221 |
+
msgstr "Pokaż mapę"
|
222 |
+
|
223 |
+
#: google-map-shortcode/google-map-shortcode.php:531
|
224 |
+
msgid "Hide Map"
|
225 |
+
msgstr "Ukryj mapę"
|
226 |
+
|
227 |
+
#: google-map-shortcode/google-map-shortcode.php:577
|
228 |
+
msgid "Google Map Shortcode Settings"
|
229 |
+
msgstr "Ustawienia Skrótu Google Map"
|
230 |
+
|
231 |
+
#: google-map-shortcode/google-map-shortcode.php:629
|
232 |
+
#, php-format
|
233 |
+
msgid "Could not write file %1$s (%2$s)"
|
234 |
+
msgstr "Nie można zapisac pliku %1$s (%2$s)"
|
235 |
+
|
236 |
+
#: google-map-shortcode/google-map-shortcode.php:638
|
237 |
+
msgid "Please upload a valid file"
|
238 |
+
msgstr "Proszę przesłac poprawny plik"
|
239 |
+
|
240 |
+
#: google-map-shortcode/google-map-shortcode.php:663
|
241 |
+
msgid "Maps Default Configuration"
|
242 |
+
msgstr "Domyślna konfiguracja mapy"
|
243 |
+
|
244 |
+
#: google-map-shortcode/google-map-shortcode.php:665
|
245 |
+
msgid "The shortcode attributes overwrites these options."
|
246 |
+
msgstr "Ustawienia konkretnej mapy moga być inne"
|
247 |
+
|
248 |
+
#: google-map-shortcode/google-map-shortcode.php:697
|
249 |
+
msgid "Maps Default Type"
|
250 |
+
msgstr "Domyślny typ mapy"
|
251 |
+
|
252 |
+
#: google-map-shortcode/google-map-shortcode.php:708
|
253 |
+
msgid "Select Language"
|
254 |
+
msgstr "Wybierz język"
|
255 |
+
|
256 |
+
#: google-map-shortcode/google-map-shortcode.php:712
|
257 |
+
msgid "ARABIC"
|
258 |
+
msgstr "ARABSKI"
|
259 |
+
|
260 |
+
#: google-map-shortcode/google-map-shortcode.php:713
|
261 |
+
#: google-map-shortcode/google-map-shortcode.php:725
|
262 |
+
msgid "BASQUE"
|
263 |
+
msgstr "BASKIJSKI"
|
264 |
+
|
265 |
+
#: google-map-shortcode/google-map-shortcode.php:714
|
266 |
+
msgid "BULGARIAN"
|
267 |
+
msgstr "BUŁGARSKI"
|
268 |
+
|
269 |
+
#: google-map-shortcode/google-map-shortcode.php:715
|
270 |
+
msgid "BENGALI"
|
271 |
+
msgstr "BENGALI"
|
272 |
+
|
273 |
+
#: google-map-shortcode/google-map-shortcode.php:716
|
274 |
+
msgid "CATALAN"
|
275 |
+
msgstr "KATALOŃSKI"
|
276 |
+
|
277 |
+
#: google-map-shortcode/google-map-shortcode.php:717
|
278 |
+
msgid "CZECH"
|
279 |
+
msgstr "CZESKI"
|
280 |
+
|
281 |
+
#: google-map-shortcode/google-map-shortcode.php:718
|
282 |
+
msgid "DANISH"
|
283 |
+
msgstr "DUŃSKI"
|
284 |
+
|
285 |
+
#: google-map-shortcode/google-map-shortcode.php:719
|
286 |
+
msgid "GERMAN"
|
287 |
+
msgstr "NIEMIECKI"
|
288 |
+
|
289 |
+
#: google-map-shortcode/google-map-shortcode.php:720
|
290 |
+
msgid "GREEK"
|
291 |
+
msgstr "GRECKI"
|
292 |
+
|
293 |
+
#: google-map-shortcode/google-map-shortcode.php:721
|
294 |
+
msgid "ENGLISH"
|
295 |
+
msgstr "ANGIELSKI"
|
296 |
+
|
297 |
+
#: google-map-shortcode/google-map-shortcode.php:722
|
298 |
+
msgid "ENGLISH (AUSTRALIAN)"
|
299 |
+
msgstr "ANGIELSKI AUTRALIJSKI"
|
300 |
+
|
301 |
+
#: google-map-shortcode/google-map-shortcode.php:723
|
302 |
+
msgid "ENGLISH (GREAT BRITAIN)"
|
303 |
+
msgstr "ANGIELSKI BRYTYJSKI"
|
304 |
+
|
305 |
+
#: google-map-shortcode/google-map-shortcode.php:724
|
306 |
+
msgid "SPANISH"
|
307 |
+
msgstr "HISZPAŃSKI"
|
308 |
+
|
309 |
+
#: google-map-shortcode/google-map-shortcode.php:726
|
310 |
+
msgid "FARSI"
|
311 |
+
msgstr "FARSI"
|
312 |
+
|
313 |
+
#: google-map-shortcode/google-map-shortcode.php:727
|
314 |
+
msgid "FINNISH"
|
315 |
+
msgstr "FIŃSKI"
|
316 |
+
|
317 |
+
#: google-map-shortcode/google-map-shortcode.php:728
|
318 |
+
msgid "FILIPINO"
|
319 |
+
msgstr "FILIPIŃSKI"
|
320 |
+
|
321 |
+
#: google-map-shortcode/google-map-shortcode.php:729
|
322 |
+
msgid "FRENCH"
|
323 |
+
msgstr "FRANCUSKI"
|
324 |
+
|
325 |
+
#: google-map-shortcode/google-map-shortcode.php:730
|
326 |
+
msgid "GALICIAN"
|
327 |
+
msgstr "GALICYJSKI"
|
328 |
+
|
329 |
+
#: google-map-shortcode/google-map-shortcode.php:731
|
330 |
+
msgid "GUJARATI"
|
331 |
+
msgstr "GUJARATI"
|
332 |
+
|
333 |
+
#: google-map-shortcode/google-map-shortcode.php:732
|
334 |
+
msgid "HINDI"
|
335 |
+
msgstr "HINDUSKI"
|
336 |
+
|
337 |
+
#: google-map-shortcode/google-map-shortcode.php:733
|
338 |
+
msgid "CROATIAN"
|
339 |
+
msgstr "CHORWACKI"
|
340 |
+
|
341 |
+
#: google-map-shortcode/google-map-shortcode.php:734
|
342 |
+
msgid "HUNGARIAN"
|
343 |
+
msgstr "WĘGIERSKI"
|
344 |
+
|
345 |
+
#: google-map-shortcode/google-map-shortcode.php:735
|
346 |
+
msgid "INDONESIAN"
|
347 |
+
msgstr "INDONEZYJSKI"
|
348 |
+
|
349 |
+
#: google-map-shortcode/google-map-shortcode.php:736
|
350 |
+
msgid "ITALIAN"
|
351 |
+
msgstr "WŁOSKI"
|
352 |
+
|
353 |
+
#: google-map-shortcode/google-map-shortcode.php:737
|
354 |
+
msgid "HEBREW"
|
355 |
+
msgstr "HEBRAJSKI"
|
356 |
+
|
357 |
+
#: google-map-shortcode/google-map-shortcode.php:738
|
358 |
+
msgid "JAPANESE"
|
359 |
+
msgstr "JAPOŃSKI"
|
360 |
+
|
361 |
+
#: google-map-shortcode/google-map-shortcode.php:739
|
362 |
+
msgid "KANNADA"
|
363 |
+
msgstr "KANADYJSKI"
|
364 |
+
|
365 |
+
#: google-map-shortcode/google-map-shortcode.php:740
|
366 |
+
msgid "KOREAN"
|
367 |
+
msgstr "KOREAŃSKI"
|
368 |
+
|
369 |
+
#: google-map-shortcode/google-map-shortcode.php:741
|
370 |
+
msgid "LITHUANIAN"
|
371 |
+
msgstr "LITEWSKI"
|
372 |
+
|
373 |
+
#: google-map-shortcode/google-map-shortcode.php:742
|
374 |
+
msgid "LATVIAN"
|
375 |
+
msgstr "ŁOTEWSKI"
|
376 |
+
|
377 |
+
#: google-map-shortcode/google-map-shortcode.php:743
|
378 |
+
msgid "MALAYALAM"
|
379 |
+
msgstr "MALAYALAM"
|
380 |
+
|
381 |
+
#: google-map-shortcode/google-map-shortcode.php:744
|
382 |
+
msgid "MARATHI"
|
383 |
+
msgstr "MARATHI"
|
384 |
+
|
385 |
+
#: google-map-shortcode/google-map-shortcode.php:745
|
386 |
+
msgid "DUTCH"
|
387 |
+
msgstr "HOLENDERSKI"
|
388 |
+
|
389 |
+
#: google-map-shortcode/google-map-shortcode.php:746
|
390 |
+
msgid "NORWEGIAN"
|
391 |
+
msgstr "NORWESKI"
|
392 |
+
|
393 |
+
#: google-map-shortcode/google-map-shortcode.php:747
|
394 |
+
msgid "ORIYA"
|
395 |
+
msgstr "ORIYA"
|
396 |
+
|
397 |
+
#: google-map-shortcode/google-map-shortcode.php:748
|
398 |
+
msgid "POLISH"
|
399 |
+
msgstr "POLSKI"
|
400 |
+
|
401 |
+
#: google-map-shortcode/google-map-shortcode.php:749
|
402 |
+
msgid "PORTUGUESE"
|
403 |
+
msgstr "PORTUGALSKI"
|
404 |
+
|
405 |
+
#: google-map-shortcode/google-map-shortcode.php:750
|
406 |
+
msgid "PORTUGUESE (BRAZIL)"
|
407 |
+
msgstr "PORTUGALSKI BRAZYLIJSKI"
|
408 |
+
|
409 |
+
#: google-map-shortcode/google-map-shortcode.php:751
|
410 |
+
msgid "PORTUGUESE (PORTUGAL)"
|
411 |
+
msgstr "PORTUGALSKI (PORTUGALIA)"
|
412 |
+
|
413 |
+
#: google-map-shortcode/google-map-shortcode.php:752
|
414 |
+
msgid "ROMANIAN"
|
415 |
+
msgstr "RUMUŃSKI"
|
416 |
+
|
417 |
+
#: google-map-shortcode/google-map-shortcode.php:753
|
418 |
+
msgid "RUSSIAN"
|
419 |
+
msgstr "ROSYJSKI"
|
420 |
+
|
421 |
+
#: google-map-shortcode/google-map-shortcode.php:754
|
422 |
+
msgid "SLOVAK"
|
423 |
+
msgstr "SŁOWACKI"
|
424 |
+
|
425 |
+
#: google-map-shortcode/google-map-shortcode.php:755
|
426 |
+
msgid "SLOVENIAN"
|
427 |
+
msgstr "SŁOWEŃSKI"
|
428 |
+
|
429 |
+
#: google-map-shortcode/google-map-shortcode.php:756
|
430 |
+
msgid "SERBIAN"
|
431 |
+
msgstr "SERBSKI"
|
432 |
+
|
433 |
+
#: google-map-shortcode/google-map-shortcode.php:757
|
434 |
+
msgid "SWEDISH"
|
435 |
+
msgstr "SZWEDZKI"
|
436 |
+
|
437 |
+
#: google-map-shortcode/google-map-shortcode.php:758
|
438 |
+
msgid "TAGALOG"
|
439 |
+
msgstr "TAGALOG"
|
440 |
+
|
441 |
+
#: google-map-shortcode/google-map-shortcode.php:759
|
442 |
+
msgid "TAMIL"
|
443 |
+
msgstr "TAMILSKI"
|
444 |
+
|
445 |
+
#: google-map-shortcode/google-map-shortcode.php:760
|
446 |
+
msgid "TELUGU"
|
447 |
+
msgstr "TELUGU"
|
448 |
+
|
449 |
+
#: google-map-shortcode/google-map-shortcode.php:761
|
450 |
+
msgid "THAI"
|
451 |
+
msgstr "TAJSKI"
|
452 |
+
|
453 |
+
#: google-map-shortcode/google-map-shortcode.php:762
|
454 |
+
msgid "TURKISH"
|
455 |
+
msgstr "TURECKI"
|
456 |
+
|
457 |
+
#: google-map-shortcode/google-map-shortcode.php:763
|
458 |
+
msgid "UKRAINIAN"
|
459 |
+
msgstr "UKRAIŃSKI"
|
460 |
+
|
461 |
+
#: google-map-shortcode/google-map-shortcode.php:764
|
462 |
+
msgid "VIETNAMESE"
|
463 |
+
msgstr "WIETNAMSKI"
|
464 |
+
|
465 |
+
#: google-map-shortcode/google-map-shortcode.php:765
|
466 |
+
msgid "CHINESE (SIMPLIFIED)"
|
467 |
+
msgstr "CHIŃSKI UPROSZCZONY"
|
468 |
+
|
469 |
+
#: google-map-shortcode/google-map-shortcode.php:766
|
470 |
+
msgid "CHINESE (TRADITIONAL)"
|
471 |
+
msgstr "CHIŃSKI TRADYCYJNY"
|
472 |
+
|
473 |
+
#: google-map-shortcode/google-map-shortcode.php:778
|
474 |
+
msgid "Circle"
|
475 |
+
msgstr "Okrąg"
|
476 |
+
|
477 |
+
#: google-map-shortcode/google-map-shortcode.php:780
|
478 |
+
msgid " Check if you want to focus all the map's points automatically with an interval of <br /><br />"
|
479 |
+
msgstr "Zaznacz jeśli chcesz odświeżać mapę automatycznie w odstępie <br /><br />"
|
480 |
+
|
481 |
+
#: google-map-shortcode/google-map-shortcode.php:780
|
482 |
+
msgid "milliseconds."
|
483 |
+
msgstr "milisekundy"
|
484 |
+
|
485 |
+
#: google-map-shortcode/google-map-shortcode.php:792
|
486 |
+
msgid "Animation"
|
487 |
+
msgstr "Animacja"
|
488 |
+
|
489 |
+
#: google-map-shortcode/google-map-shortcode.php:793
|
490 |
+
msgid " Check if you want to animate the markes."
|
491 |
+
msgstr "Zaznacz jeśli chcesz zanimować markery"
|
492 |
+
|
493 |
+
#: google-map-shortcode/google-map-shortcode.php:801
|
494 |
+
msgid "Markers"
|
495 |
+
msgstr "Markery"
|
496 |
+
|
497 |
+
#: google-map-shortcode/google-map-shortcode.php:813
|
498 |
+
msgid "To include new icons just specify the file location:"
|
499 |
+
msgstr "By dołączyć nowe ikony, określ lokalizację liku:"
|
500 |
+
|
501 |
+
#: google-map-shortcode/google-map-shortcode.php:823
|
502 |
+
msgid "Info Windows"
|
503 |
+
msgstr "Okno Informacji"
|
504 |
+
|
505 |
+
#: google-map-shortcode/google-map-shortcode.php:825
|
506 |
+
msgid "This is the html of the Info Window opened from the markers."
|
507 |
+
msgstr "To kod html okna informacji otworzonego po kliknięciu markera"
|
508 |
+
|
509 |
+
#: google-map-shortcode/google-map-shortcode.php:829
|
510 |
+
msgid "Previews"
|
511 |
+
msgstr "Podgląd"
|
512 |
+
|
513 |
+
#: google-map-shortcode/google-map-shortcode.php:835
|
514 |
+
msgid "Custom Html"
|
515 |
+
msgstr "Własny kod html"
|
516 |
+
|
517 |
+
#: google-map-shortcode/google-map-shortcode.php:847
|
518 |
+
msgid "The following tags can be used."
|
519 |
+
msgstr "Mogą zostać użyte poniższe tagi"
|
520 |
+
|
521 |
+
#: google-map-shortcode/google-map-shortcode.php:851
|
522 |
+
msgid "Custom title of the point"
|
523 |
+
msgstr "Własny tytuł punktu"
|
524 |
+
|
525 |
+
#: google-map-shortcode/google-map-shortcode.php:855
|
526 |
+
msgid "Permanet Link of the post where the point is attached"
|
527 |
+
msgstr "Link postu, w którym dodano punkt"
|
528 |
+
|
529 |
+
#: google-map-shortcode/google-map-shortcode.php:859
|
530 |
+
msgid "Thubnail attached to the point"
|
531 |
+
msgstr "Miniaturka dołączona do punktu"
|
532 |
+
|
533 |
+
#: google-map-shortcode/google-map-shortcode.php:863
|
534 |
+
msgid "Description of the point"
|
535 |
+
msgstr "Opis punktu"
|
536 |
+
|
537 |
+
#: google-map-shortcode/google-map-shortcode.php:867
|
538 |
+
msgid "Excerpt of the post where the point is attached"
|
539 |
+
msgstr "Skrót postu w którym załączony jest punkt"
|
540 |
+
|
541 |
+
#: google-map-shortcode/google-map-shortcode.php:871
|
542 |
+
msgid "The address of this point"
|
543 |
+
msgstr "Adres punktu"
|
544 |
+
|
545 |
+
#: google-map-shortcode/google-map-shortcode.php:875
|
546 |
+
msgid "Open this point on Google Map"
|
547 |
+
msgstr "Otwórz punkt w Google Map"
|
548 |
+
|
549 |
+
#: google-map-shortcode/google-map-shortcode.php:879
|
550 |
+
msgid "Info Html width"
|
551 |
+
msgstr "Szerokość okna"
|
552 |
+
|
553 |
+
#: google-map-shortcode/google-map-shortcode.php:885
|
554 |
+
msgid "Restore Default"
|
555 |
+
msgstr "Przywróć domyślne"
|
556 |
+
|
557 |
+
#: google-map-shortcode/google-map-shortcode.php:909
|
558 |
+
msgid "Plugin Page"
|
559 |
+
msgstr "Strona Dodatku"
|
560 |
+
|
561 |
+
#: google-map-shortcode/google-map-shortcode.php:910
|
562 |
+
msgid "How To Use"
|
563 |
+
msgstr "Jak używać"
|
564 |
+
|
565 |
+
#: google-map-shortcode/google-map-shortcode.php:911
|
566 |
+
msgid "Shortcode Reference"
|
567 |
+
msgstr "Adnotacje Dodatku"
|
568 |
+
|
569 |
+
#: google-map-shortcode/google-map-shortcode.php:912
|
570 |
+
msgid "Examples"
|
571 |
+
msgstr "Przykłady"
|
572 |
+
|
573 |
+
#: google-map-shortcode/google-map-shortcode.php:913
|
574 |
+
msgid "Donate"
|
575 |
+
msgstr "Wspomóż dodatek"
|
576 |
+
|
577 |
+
#: google-map-shortcode/include/functions.php:240
|
578 |
+
msgid "Select the marker by clicking on the images"
|
579 |
+
msgstr "Wybierz marker klikając na obrazek"
|
580 |
+
|
581 |
+
#: google-map-shortcode/include/functions.php:353
|
582 |
+
msgid "The Point can't be added, <strong>php_curl.dll</strong> is not installed on your server and <strong>allow_url_fopen</strong> is disabled."
|
583 |
+
msgstr "Punkt nie mógł zostać dodany, <strong>php_curl.dll</strong> nie jest zainstalowany na serwerze oraz ustawienie <strong>allow_url_fopen</strong> jest wyłączone."
|
584 |
+
|
585 |
+
#: google-map-shortcode/include/functions.php:413
|
586 |
+
msgid "Verify this latitude and longitude using Geocoding. This could overwrite the point address."
|
587 |
+
msgstr "Weryfikuj długość i szerokośc geograficzną używając Geocoding. To może spowodować nadpisanie adresu punktu."
|
588 |
+
|
589 |
+
#: google-map-shortcode/include/functions.php:394
|
590 |
+
msgid "Latitude "
|
591 |
+
msgstr "Szerokość geograficzna."
|
592 |
+
|
593 |
+
#: google-map-shortcode/include/functions.php:402
|
594 |
+
msgid "Longitude"
|
595 |
+
msgstr "Długość geograficzna."
|
596 |
+
|
597 |
+
#: google-map-shortcode/include/functions.php:381
|
598 |
+
msgid "Points can be added using Address or Lat/Long."
|
599 |
+
msgstr "Punkt może zostać dodany za pomoca adresu lub długiści i szerokości geograficznej."
|
600 |
+
|
601 |
+
#: google-map-shortcode/include/functions.php:335
|
602 |
+
msgid "The Point was added."
|
603 |
+
msgstr "Dodano punkt."
|
604 |
+
|
605 |
+
#: google-map-shortcode/include/functions.php:337
|
606 |
+
msgid "The point can't be saved or already exist."
|
607 |
+
msgstr "Punktu nie można było zapisać lub punkt już istnieje"
|
608 |
+
|
609 |
+
#: google-map-shortcode/include/functions.php:337
|
610 |
+
msgid "Points Added."
|
611 |
+
msgstr "Dodane punkty"
|
612 |
+
|
613 |
+
#: google-map-shortcode/include/functions.php:543
|
614 |
+
msgid "Refresh Map"
|
615 |
+
msgstr "Odśwież mapę"
|
readme.txt
CHANGED
@@ -1,30 +1,29 @@
|
|
1 |
=== Google Map Shortcode ===
|
2 |
Contributors: alaingg
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=support%40web%2dargument%2ecom&lc=US&item_name=Web%2dArgument%2ecom¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted
|
4 |
-
Tags: google maps, shortcode, map, maps, categories, widget, post map, point, marker, list, location, address, images, geocoder, google maps, animation
|
5 |
Requires at least: 2.5
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 3.
|
8 |
|
9 |
-
Real Friendly integration of Google
|
10 |
== Description ==
|
11 |
-
This plugin allows
|
12 |
|
13 |
-
[Plugin Page](http://web-argument.com/google-map-shortcode-wordpress-plugin/) | [Shortcode References](http://web-argument.com/google-map-shortcode-reference/) | [How To Use](http://web-argument.com/google-map-shortcode-how-to-use/) | [Examples](http://web-argument.com/google-map-shortcode-wordpress-plugin/#examples)
|
14 |
|
15 |
Special Features:
|
16 |
|
|
|
17 |
* The plugin can handle large number of map points.
|
18 |
* Points can be added using address or coordinates.
|
19 |
* Addresses in different languages allowed.
|
20 |
-
*
|
21 |
-
* Custom markers
|
22 |
* Based on Google Maps Javascript API Version 3.
|
23 |
* Faster and more applicable to mobile devices.
|
24 |
* Maps in multiple languages.
|
25 |
-
* Points under
|
26 |
-
* Allows to insert maps into the content and theme files.
|
27 |
-
* The window box opened display part of the content of your posts like: post title, thumbnails, excerpt or a custom title description and thumbnail.
|
28 |
* You can customize the html of the info window box on the settings.
|
29 |
* The plugin is based on Wordpress shortcode and allows many options like: initial zoom, width, height, categories, post ID, specific address, marker and thumbnail.
|
30 |
|
@@ -32,6 +31,7 @@ Plugin Languages:
|
|
32 |
|
33 |
* English - default
|
34 |
* French - Thanks to [Nicolas Mollet](http://mapicons.nicolasmollet.com)
|
|
|
35 |
* Spanish - Thanks to [Alain Gonzalez](http://web-argument.com)
|
36 |
|
37 |
Please contact me [alaingoga at gmail] in order to include your language within the plugin package.
|
@@ -76,6 +76,11 @@ When the map is deployed or when the Google Map Shortcode Editor panel is open i
|
|
76 |
|
77 |
== Changelog ==
|
78 |
|
|
|
|
|
|
|
|
|
|
|
79 |
= 3.0.1 =
|
80 |
* Animation bug fixed.
|
81 |
|
@@ -100,7 +105,7 @@ When the map is deployed or when the Google Map Shortcode Editor panel is open i
|
|
100 |
* Map type added.
|
101 |
* Marker animation option added.
|
102 |
* Focus option added.
|
103 |
-
* Maps
|
104 |
* Performance improved.
|
105 |
* More map languages included
|
106 |
|
@@ -142,5 +147,5 @@ When the map is deployed or when the Google Map Shortcode Editor panel is open i
|
|
142 |
|
143 |
== Upgrade Notice ==
|
144 |
|
145 |
-
= 3.
|
146 |
-
Upgrade is recommended to
|
1 |
=== Google Map Shortcode ===
|
2 |
Contributors: alaingg
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=support%40web%2dargument%2ecom&lc=US&item_name=Web%2dArgument%2ecom¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted
|
4 |
+
Tags: google maps, shortcode, map, maps, categories, widget, post map, point, marker, list, location, address, images, geocoder, google maps, animation, slideshow, scroll, module
|
5 |
Requires at least: 2.5
|
6 |
+
Tested up to: 3.3
|
7 |
+
Stable tag: 3.1
|
8 |
|
9 |
+
Real Friendly integration of Google Maps instances into your blogs. The plugin allows to display multiple maps on your pages.
|
10 |
== Description ==
|
11 |
+
This plugin allows to include instances of Google Maps in your blogs with a simple editor button. You can insert maps everywhere: in your theme files, posts and pages. The points can include custom title, description, marker and thumbnail. The plugin is designed to allow multiple interactions with the users: Animations, Slideshows, Scrolls and more.
|
12 |
|
13 |
+
[Plugin Page](http://web-argument.com/google-map-shortcode-wordpress-plugin/) | [Shortcode References](http://web-argument.com/google-map-shortcode-reference/) | [How To Use](http://web-argument.com/google-map-shortcode-how-to-use/) | [Modules](http://web-argument.com/google-map-shortcode-modules/) | [Examples](http://web-argument.com/google-map-shortcode-wordpress-plugin/#examples)
|
14 |
|
15 |
Special Features:
|
16 |
|
17 |
+
* Multiple features allowed like slideshows and scrolls, to interact with the maps.
|
18 |
* The plugin can handle large number of map points.
|
19 |
* Points can be added using address or coordinates.
|
20 |
* Addresses in different languages allowed.
|
21 |
+
* Simple editor button to include points and maps into the posts and pages.
|
22 |
+
* Custom markers.
|
23 |
* Based on Google Maps Javascript API Version 3.
|
24 |
* Faster and more applicable to mobile devices.
|
25 |
* Maps in multiple languages.
|
26 |
+
* Points under categories can be included.
|
|
|
|
|
27 |
* You can customize the html of the info window box on the settings.
|
28 |
* The plugin is based on Wordpress shortcode and allows many options like: initial zoom, width, height, categories, post ID, specific address, marker and thumbnail.
|
29 |
|
31 |
|
32 |
* English - default
|
33 |
* French - Thanks to [Nicolas Mollet](http://mapicons.nicolasmollet.com)
|
34 |
+
* Polish - Thanks to [Łukasz Farysej](http://www.fry.li)
|
35 |
* Spanish - Thanks to [Alain Gonzalez](http://web-argument.com)
|
36 |
|
37 |
Please contact me [alaingoga at gmail] in order to include your language within the plugin package.
|
76 |
|
77 |
== Changelog ==
|
78 |
|
79 |
+
= 3.1 =
|
80 |
+
* Modules added.
|
81 |
+
* Polish language added.
|
82 |
+
* New icon added.
|
83 |
+
|
84 |
= 3.0.1 =
|
85 |
* Animation bug fixed.
|
86 |
|
105 |
* Map type added.
|
106 |
* Marker animation option added.
|
107 |
* Focus option added.
|
108 |
+
* Maps margin and alignment added.
|
109 |
* Performance improved.
|
110 |
* More map languages included
|
111 |
|
147 |
|
148 |
== Upgrade Notice ==
|
149 |
|
150 |
+
= 3.1 =
|
151 |
+
Upgrade is recommended to include the new modules feature and fix some bugs.
|
screenshot-2.jpg
CHANGED
Binary file
|
screenshot-3.jpg
CHANGED
Binary file
|
screenshot-5.jpg
CHANGED
Binary file
|
styles/gmshc-admin-styles.css
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/**
|
2 |
* Google Map Shortcode
|
3 |
-
* Version: 3.
|
4 |
* Author: Alain Gonzalez
|
5 |
* Plugin URI: http://web-argument.com/google-map-shortcode-wordpress-plugin/
|
6 |
*/
|
@@ -118,4 +118,54 @@ body#media-upload ul#sidemenu {
|
|
118 |
border-bottom:solid #999 1px;
|
119 |
padding-bottom:10px;
|
120 |
text-align:left;
|
121 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
/**
|
2 |
* Google Map Shortcode
|
3 |
+
* Version: 3.1
|
4 |
* Author: Alain Gonzalez
|
5 |
* Plugin URI: http://web-argument.com/google-map-shortcode-wordpress-plugin/
|
6 |
*/
|
118 |
border-bottom:solid #999 1px;
|
119 |
padding-bottom:10px;
|
120 |
text-align:left;
|
121 |
+
}
|
122 |
+
|
123 |
+
#gmshc_mod_container{
|
124 |
+
clear:both;
|
125 |
+
overflow:hidden;
|
126 |
+
}
|
127 |
+
|
128 |
+
.gmshc_mod_box{
|
129 |
+
width:265px;
|
130 |
+
height:265px;
|
131 |
+
float:left;
|
132 |
+
padding:10px;
|
133 |
+
margin:0 10px;
|
134 |
+
}
|
135 |
+
|
136 |
+
.gmshc_mod_box.inactive table{
|
137 |
+
opacity:0.5;
|
138 |
+
filter:alpha(opacity=90);
|
139 |
+
}
|
140 |
+
|
141 |
+
|
142 |
+
.gmshc_mod_box h4{
|
143 |
+
margin:0.3em 0;
|
144 |
+
}
|
145 |
+
|
146 |
+
.gmshc_mod_box .submit{
|
147 |
+
padding: 0.3em 0;
|
148 |
+
}
|
149 |
+
|
150 |
+
|
151 |
+
.inactive .mod_update, .inactive .mod_disable{
|
152 |
+
display:none;
|
153 |
+
}
|
154 |
+
.inactive .mod_enable{
|
155 |
+
display:block;
|
156 |
+
float:left;
|
157 |
+
}
|
158 |
+
|
159 |
+
|
160 |
+
.active .mod_update, .active .mod_disable{
|
161 |
+
display:block;
|
162 |
+
float:left;
|
163 |
+
}
|
164 |
+
.active .mod_enable{
|
165 |
+
display:none;
|
166 |
+
}
|
167 |
+
|
168 |
+
|
169 |
+
|
170 |
+
|
171 |
+
|