Google Maps Plugin by Intergeo - Version 1.0.0

Version Description

Download this release

Release Info

Developer codeinwp
Plugin Icon 128x128 Google Maps Plugin by Intergeo
Version 1.0.0
Comparing to
See all releases

Version 1.0.0

css/editor.css ADDED
@@ -0,0 +1 @@
 
1
+ @font-face{font-family:'Elsie Swash Caps';font-style:normal;font-weight:900;src:local('Elsie Swash Caps Blacks'),local('ElsieSwashCapsBlack-Regular'),url(http://themes.googleusercontent.com/static/fonts/elsieswashcaps/v1/iZnus9qif0tR5pGaDv5zdEd2CPfIv3tbBh_qUxvoikM.woff) format('woff')}#intergeo_canvas_wrapper{position:absolute;top:0;right:300px;bottom:60px;left:0;z-index:75}#intergeo_canvas{width:100%;height:100%}#intergeo_canvas_center{width:10px;height:10px;position:absolute;top:50%;left:50%;margin:-5px 0 0 -5px;border-radius:2px;background-image:url(../images/map_center.png);background-position:center center;background-repeat:no-repeat}#intergeo_footer{height:36px;padding:12px 16px;position:absolute;z-index:100;left:0;right:0;bottom:0;border-top:1px solid #dfdfdf;overflow:hidden;-webkit-box-shadow:0 -4px 4px -4px rgba(0,0,0,0.1);box-shadow:0 -4px 4px -4px rgba(0,0,0,0.1);text-align:right}#intergeo_tlbr{position:absolute;top:0;right:0;bottom:60px;width:299px;z-index:75;background:whitesmoke;border-left:1px solid #dfdfdf;overflow:auto;-webkit-overflow-scrolling:touch}#intergeo_tlbr_ttl{font-family:'Elsie Swash Caps',cursive;font-size:34px;padding:30px 20px 10px;display:block}#intergeo_tlbr_ul{border-top:1px solid #dfdfdf}.intergeo_tlbr_ul_li{margin:0}.intergeo_tlbr_ul_li.open{border-bottom:1px solid #dfdfdf}.intergeo_tlbr_ul_li_h3{border-top:1px solid white;border-bottom:1px solid #dfdfdf;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin:0;padding:10px 20px;font-size:15px;font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif;font-weight:normal;text-shadow:0 1px 0 white;background:whiteSmoke;background-image:-webkit-gradient(linear,left bottom,left top,from(#EEE),to(whiteSmoke));background-image:-webkit-linear-gradient(bottom,#EEE,whiteSmoke);background-image:-moz-linear-gradient(bottom,#EEE,whiteSmoke);background-image:-o-linear-gradient(bottom,#EEE,whiteSmoke);background-image:-ms-linear-gradient(bottom,#EEE,whiteSmoke);background-image:linear-gradient(bottom,#EEE,whiteSmoke)}.intergeo_tlbr_ul_li_h3:hover,.intergeo_tlbr_ul_li.open .intergeo_tlbr_ul_li_h3{color:white;text-shadow:0 -1px 0 #333;background:gray;background-image:-webkit-gradient(linear,left bottom,left top,from(#6d6d6d),to(gray));background-image:-webkit-linear-gradient(bottom,#6d6d6d,gray);background-image:-moz-linear-gradient(bottom,#6d6d6d,gray);background-image:-o-linear-gradient(bottom,#6d6d6d,gray);background-image:-ms-linear-gradient(bottom,#6d6d6d,gray);background-image:linear-gradient(bottom,#6d6d6d,gray)}.intergeo_tlbr_ul_li_h3::after{content:'';width:0;height:0;border-color:#CCC transparent;border-style:solid;border-width:6px 6px 0;position:absolute;top:15px;right:20px;z-index:1}.intergeo_tlbr_ul_li_h3:hover::after,.intergeo_tlbr_ul_li.open .intergeo_tlbr_ul_li_h3::after{border-color:#EEE transparent}.intergeo_tlbr_ul_li:hover .intergeo_tlbr_ul_li_h3{border-top-color:gray}.intergeo_tlbr_ul_li.open .intergeo_tlbr_ul_li_h3{border-top-color:#6d6d6d}.intergeo_tlbr_ul_li.open .intergeo_tlbr_ul_li_h3::after{border-width:0 6px 6px}.intergeo_tlbr_ul_li_ul{margin:0;display:none;background-color:#fdfdfd;padding:10px 0 20px 0;overflow:hidden}.intergeo_tlbr_ul_li.open .intergeo_tlbr_ul_li_ul{display:block}.intergeo_tlbr_cntrl_ttl{display:block;font-weight:bold;line-height:22px;position:relative;cursor:pointer;padding:4px 20px;margin-bottom:5px;background-color:rgba(0,0,0,0.02);border-top:1px solid #eee;-webkit-box-shadow:0 4px 4px -4px rgba(0,0,0,0.1);box-shadow:0 4px 4px -4px rgba(0,0,0,0.1);border-bottom:1px solid #eee}.intergeo_tlbr_cntrl_ttl::after{content:'';width:0;height:0;border-color:#CCC transparent;border-style:solid;border-width:4px 4px 0;position:absolute;top:13px;right:20px;z-index:1}.intergeo_tlbr_cntrl_ttl.open::after{border-width:0 4px 4px}.intergeo_tlbr_cntrl_items{display:none;padding:5px 20px 10px 20px}.intergeo_tlbr_cntrl_more_info{text-decoration:none;color:#21759b;font-size:85%;font-weight:normal;float:right}.intergeo_tlbr_cntrl_dsc{display:none;padding:0}.intergeo_tlbr_cntrl_tbl{width:100%;margin-bottom:10px}.intergeo_tlbr_cntrl_tbl_clmn{width:50%;text-align:left;vertical-align:top;padding:0 1px}.intergeo_tlbr_cntrl_item{margin-bottom:10px}#intergeo_map_zoom_range{margin:10px 6px}.intergeo_tlbr_style_preview{display:block;width:220px;height:90px;padding:10px;background-image:url(../images/styles.jpg);background-repeat:no-repeat;background-position:top left;-webkit-box-shadow:0 0 5px rgba(0,0,0,0.5);box-shadow:0 0 5px rgba(0,0,0,0.5)}#intergeo_tlbr_style_red{background-position:0 -110px}#intergeo_tlbr_style_night{background-position:0 -220px}#intergeo_tlbr_style_blue{background-position:0 -330px}#intergeo_tlbr_style_grayscale{background-position:0 -440px}#intergeo_tlbr_style_no_roads{background-position:0 -550px}#intergeo_tlbr_style_mixed{background-position:0 -660px}#intergeo_tlbr_style_chilled{background-position:0 -770px}.intergeo_tlbr_overlay{border-bottom:1px dotted black;margin-bottom:5px;padding-bottom:5px}.intergeo_tlbr_actn{float:right;margin:4px 0 0 10px;background-repeat:no-repeat;display:block;height:16px;width:16px;background-image:url('../images/ui-icons.png')}.intergeo_tlbr_actn_delete{background-position:-176px -96px}.intergeo_tlbr_actn_edit{background-position:-64px -112px}.intergeo_tlbr_clr_prvw{float:right;margin:4px 0 0 10px;height:16px;width:16px;-webkit-box-shadow:0 0 2px #aaa;box-shadow:0 0 2px #aaa}.intergeo_tlbr_cntrl_slct{width:100%}.intergeo_tlbr_cntrl_txt{width:100%}.intergeo_tlbr_grp_dsc{padding:5px 20px 10px 20px;margin:0}.intergeo_ppp{position:absolute;top:0;right:0;left:0;bottom:0;z-index:150;background-image:url('../images/bg.png');background-repeat:repeat;display:none}.intergeo_ppp_frm{position:absolute;top:10%;left:50%;max-height:530px;-ms-overflow-y:auto;overflow-y:auto;margin-left:-222px;width:400px;border:2px solid #555;background-color:white;-webkit-box-shadow:0 0 15px #555;box-shadow:0 0 15px #555;padding:10px 20px 15px;border-radius:3px}.intergeo_ppp_ttl{font-weight:bold;font-size:115%;color:#333;border-bottom:1px solid whitesmoke;display:block;padding:5px 0;margin-bottom:10px}.intergeo_ppp_cls{float:right;background-image:url('../images/ui-icons.png');background-repeat:no-repeat;background-position:-80px -128px;display:block;width:16px;height:16px}.intergeo_ppp_tbl{width:100%}.intergeo_ppp_tbl td{padding-bottom:5px}.intergeo_ppp_txt{width:100%}#intergeo_tlbr_drctn_icon{margin-top:1px;margin-left:-5px;float:left;display:block;width:16px;height:16px;background-repeat:no-repeat;background-image:url('../images/ui-icons.png');background-position:-16px -128px}
css/frontend.css ADDED
@@ -0,0 +1 @@
 
1
+ .intergeo_map_canvas img{max-width:none!important;-webkit-box-shadow:none!important;box-shadow:none!important;border-radius:0!important;border:none!important}
css/library.css ADDED
@@ -0,0 +1 @@
 
1
+ @font-face{font-family:'Elsie Swash Caps';font-style:normal;font-weight:900;src:local('Elsie Swash Caps Blacks'),local('ElsieSwashCapsBlack-Regular'),url(http://themes.googleusercontent.com/static/fonts/elsieswashcaps/v1/iZnus9qif0tR5pGaDv5zdEd2CPfIv3tbBh_qUxvoikM.woff) format('woff')}#intergeo_lbrr_ttl{font-family:'Elsie Swash Caps',cursive;font-size:36px;padding:0;display:block;float:left;margin-right:15px}#intergeo_lbrr_items{margin-top:30px;clear:both}.intergeo_lbrr_item{width:33%;float:left}.intergeo_lbrr_wrapper{margin:0 20px 20px 0;padding:5px;border:1px solid #DDD;-webkit-box-shadow:0 0 8px #DDD;box-shadow:0 0 8px #DDD;background-color:#efefef}.intergeo_lbrr_map_wrapper{border:1px solid #DDD;background-color:white}.intergeo_lbrr_map_loader{background-image:url('../images/ajax-loader.gif');background-position:center center;background-repeat:no-repeat}.intergeo_lbrr_map{width:100%;height:300px}.intergeo_lbrr_cntrls{width:100%}.intergeo_lbrr_code{width:100%;margin:5px 0 0}.intergeo_lbrr_item_actions{width:90px}.intergeo_lbrr_item_delete,.intergeo_lbrr_item_edit,.intergeo_lbrr_item_copy{float:left;margin:4px 0 0 10px;background-repeat:no-repeat;display:block;height:16px;width:16px;background-image:url('../images/ui-icons.png')}.intergeo_lbrr_item_delete{background-position:-176px -96px}.intergeo_lbrr_item_edit{background-position:-64px -112px}.intergeo_lbrr_item_copy{background-position:-176px -128px}#intergeo_lbrr_pgntn>li{float:left;margin-right:30px}#intergeo_lbrr_pgntn .page-numbers{text-decoration:none}
images/ajax-loader.gif ADDED
Binary file
images/bg.png ADDED
Binary file
images/map_center.png ADDED
Binary file
images/styles.jpg ADDED
Binary file
images/ui-icons.png ADDED
Binary file
index.php ADDED
@@ -0,0 +1,893 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Intergeo Maps - Google Maps Plugin
4
+ Plugin URI: http://plugins.svn.wordpress.org/intergeo-maps/
5
+ Description: A simple, easy and quite powerful Google Map tool to create, manage and embed custom Google Maps into your WordPress posts and pages. The plugin allows you to deeply customize look and feel of a map, add overlays like markers, rectangles, circles, polylines and polygons to your map. It could even be integraded with your Google Adsense account and show ad on your maps.
6
+ Version: 1.0.0
7
+ Author: Themeisle
8
+ Author URI: http://themeisle.com
9
+ License: GPL v2.0 or later
10
+ License URI: http://www.opensource.org/licenses/gpl-license.php
11
+ */
12
+
13
+ // <editor-fold defaultstate="collapsed" desc="constants">
14
+
15
+ define( 'INTERGEO_PLUGIN_NAME', 'intergeo' ); // don't change it whatever
16
+ define( 'INTERGEO_VERSION', '1.0.0.78' );
17
+ define( 'INTERGEO_ABSPATH', dirname( __FILE__ ) );
18
+ define( 'INTERGEO_ABSURL', plugins_url( '/', __FILE__ ) );
19
+
20
+ // </editor-fold>
21
+
22
+ // <editor-fold defaultstate="collapsed" desc="plugin init">
23
+
24
+ add_filter( 'plugin_action_links', 'intergeo_action_links', 10, 2 );
25
+ function intergeo_action_links( $links, $file ) {
26
+ if ( $file == plugin_basename( __FILE__ ) ) {
27
+ array_unshift(
28
+ $links,
29
+ sprintf( '<a href="%s">%s</a>', add_query_arg( 'page', INTERGEO_PLUGIN_NAME, admin_url( 'upload.php' ) ), __( "Maps", INTERGEO_PLUGIN_NAME ) ),
30
+ sprintf( '<a href="%s">%s</a>', admin_url( 'options-media.php' ), __( "Settings", INTERGEO_PLUGIN_NAME ) )
31
+ );
32
+ }
33
+ return $links;
34
+ }
35
+
36
+ add_action( 'admin_init', 'intergeo_admin_init' );
37
+ function intergeo_admin_init() {
38
+ load_plugin_textdomain( INTERGEO_PLUGIN_NAME, false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
39
+ register_post_type( INTERGEO_PLUGIN_NAME );
40
+ }
41
+
42
+ add_action( 'wp_enqueue_scripts', 'intergeo_frontend_enqueue_scripts' );
43
+ function intergeo_frontend_enqueue_scripts() {
44
+ wp_register_style( 'intergeo-frontend', INTERGEO_ABSURL . 'css/frontend.css', array(), INTERGEO_VERSION );
45
+ }
46
+
47
+ // </editor-fold>
48
+
49
+ // <editor-fold defaultstate="collapsed" desc="settings">
50
+
51
+ add_filter( 'whitelist_options', 'intergeo_whitelist_options' );
52
+ function intergeo_whitelist_options( $whitelist ) {
53
+ $whitelist['media'][] = 'intergeo_map_api_key';
54
+ $whitelist['media'][] = 'intergeo_adsense_publisher_id';
55
+ return $whitelist;
56
+ }
57
+
58
+ add_action( 'admin_init', 'intergeo_settings_init' );
59
+ function intergeo_settings_init() {
60
+ register_setting( 'media', 'intergeo-settings-map-api-key', 'trim' );
61
+ add_settings_section( 'intergeo-settings-maps', 'Intergeo Google Maps', 'intergeo_settings_init_map', 'media' );
62
+ add_settings_field( 'intergeo_map_api_key', 'Maps API Key', 'intergeo_settings_print_field', 'media', 'intergeo-settings-maps', array(
63
+ '<input type="text" name="%s" value="%s" class="regular-text">',
64
+ 'intergeo_map_api_key',
65
+ esc_attr( get_option( 'intergeo_map_api_key' ) ),
66
+ ) );
67
+
68
+ register_setting( 'media', 'intergeo_adsense_publisher_id', 'trim' );
69
+ add_settings_section( 'intergeo-settings-adsense', 'Intergeo Google Maps AdSense Integration', 'intergeo_settings_init_adsense', 'media' );
70
+ add_settings_field( 'intergeo_adsense_publisher_id', 'AdSense Publisher Id', 'intergeo_settings_print_field', 'media', 'intergeo-settings-adsense', array(
71
+ '<input type="text" name="%s" value="%s" class="regular-text">',
72
+ 'intergeo_adsense_publisher_id',
73
+ esc_attr( get_option( 'intergeo_adsense_publisher_id' ) ),
74
+ ) );
75
+ }
76
+
77
+ function intergeo_settings_init_map() {
78
+ ?><p><?php
79
+ printf( esc_html__( "All Maps API applications should load the Maps API using an API key (however it is still possible to use maps without API key). Using an API key enables you to monitor your application's Maps API usage, and ensures that Google can contact you about your application if necessary. If your application's Maps API usage exceeds the %sUsage Limits%s, you must load the Maps API using an API key in order to purchase additional quota. To create your API key:", INTERGEO_PLUGIN_NAME ), '<a href="https://developers.google.com/maps/documentation/javascript/usage#usage_limits" target="_blank">', '</a>' );
80
+ ?></p>
81
+ <ol>
82
+ <li><?php printf( esc_html__( "Visit the APIs Console at %shttps://code.google.com/apis/console%s and log in with your Google Account.", INTERGEO_PLUGIN_NAME ), '<a href="https://code.google.com/apis/console" target="_blank">', '</a>' ) ?></li>
83
+ <li><?php printf( esc_html__( 'Click the %sServices%s link from the left-hand menu.', INTERGEO_PLUGIN_NAME ), '<b>', '</b>' ) ?></li>
84
+ <li><?php printf( esc_html__( 'Activate the %sGoogle Maps API v3%s service.', INTERGEO_PLUGIN_NAME ), '<b>', '</b>' ) ?></li>
85
+ <li><?php printf( esc_html__( 'Click the %1$sAPI Access%2$s link from the left-hand menu. Your API key is available from the %1$sAPI Access%2$s page, in the %1$Simple API Access%2$s section. Maps API applications use the %1$sKey for browser apps%2$s.', INTERGEO_PLUGIN_NAME ), '<b>', '</b>' ) ?></li>
86
+ </ol>
87
+ <?php
88
+ }
89
+
90
+ function intergeo_settings_init_adsense() {
91
+ ?><p><?php
92
+ printf( esc_html__( "Adding display ads to your map requires that you have an AdSense account enabled for AdSense for Content. If you don't yet have an AdSense account, %1\$ssign up%3\$s for one. Once you have done so (or if you already have an account) make sure you've also enabled the account with %2\$sAdSense for Content%3\$s.", INTERGEO_PLUGIN_NAME ), '<a href="https://www.google.com/adsense/support/bin/answer.py?answer=10162" target="_blank">', '<a href="https://www.google.com/adsense/support/bin/answer.py?hl=en&answer=17470" target="_blank">', '</a>' )
93
+ ?></p><p><?php
94
+ esc_html_e( 'Once you have an Adsense for Content account, you will have received an AdSense for Content (AFC) publisher ID. This publisher ID is used to link any advertising shown to your AdSense account, allowing you to share in advertising revenue when a user clicks on one of the ads shown on your maps.', INTERGEO_PLUGIN_NAME )
95
+ ?></p><?php
96
+ }
97
+
98
+ function intergeo_settings_print_field( array $args ) {
99
+ vprintf( array_shift( $args ), $args );
100
+ }
101
+
102
+ // </editor-fold>
103
+
104
+ // <editor-fold defaultstate="collapsed" desc="common">
105
+
106
+ function intergeo_enqueue_google_maps_script( $libraries = false ) {
107
+ global $wp_scripts;
108
+
109
+ if ( is_array( $libraries ) ) {
110
+ $libraries = implode( ',', $libraries );
111
+ }
112
+
113
+ if ( wp_script_is( 'google-maps-v3' ) ) {
114
+
115
+ $params = array();
116
+ parse_str( end( explode( '?', $wp_scripts->registered['google-maps-v3']->src ) ), $params );
117
+ $params['libraries'] = implode( ',', array_unique( array_merge( isset( $params['libraries'] ) ? explode( ',', $params['libraries'] ) : array(), explode( ',', $libraries ) ) ) );
118
+ $wp_scripts->registered['google-maps-v3']->src = '//maps.googleapis.com/maps/api/js?' . http_build_query( $params );
119
+
120
+ } else {
121
+
122
+ $lang = explode( '_', WPLANG ? WPLANG : 'en_US' );
123
+ $params = array(
124
+ 'v' => '3.10',
125
+ 'sensor' => 'false',
126
+ 'region' => isset( $lang[1] ) ? $lang[1] : 'US',
127
+ 'language' => $lang[0],
128
+ );
129
+
130
+ if ( !empty( $libraries ) ) {
131
+ $params['libraries'] = $libraries;
132
+ }
133
+
134
+ $api_key = get_option( 'intergeo_map_api_key' );
135
+ if ( !empty( $api_key ) ) {
136
+ $params['key'] = $api_key;
137
+ }
138
+
139
+ wp_enqueue_script( 'google-maps-v3', '//maps.googleapis.com/maps/api/js?' . http_build_query( $params ), array(), null );
140
+
141
+ }
142
+ }
143
+
144
+ function intergeo_check_libraries( $json, $libraries = array() ) {
145
+ if ( isset( $json['layer']['adsense'] ) && $json['layer']['adsense'] && !in_array( 'adsense', $libraries ) ) {
146
+ $libraries[] = 'adsense';
147
+ }
148
+
149
+ if ( isset( $json['layer']['panoramio'] ) && $json['layer']['panoramio'] && !in_array( 'panoramio', $libraries ) ) {
150
+ $libraries[] = 'panoramio';
151
+ }
152
+
153
+ if ( ( isset( $json['layer']['weather'] ) && $json['layer']['weather'] ) || ( isset( $json['layer']['cloud'] ) && $json['layer']['cloud'] ) ) {
154
+ if ( !in_array( 'weather', $libraries ) ) {
155
+ $libraries[] = 'weather';
156
+ }
157
+ }
158
+
159
+ return $libraries;
160
+ }
161
+
162
+ function intergeo_encode( $id ) {
163
+ return strrev( rtrim( call_user_func( 'base64_' . 'encode', $id ), '=' ) );
164
+ }
165
+
166
+ function intergeo_decode( $code ) {
167
+ return intval( call_user_func( 'base64' . '_decode', strrev( $code ) ) );
168
+ }
169
+
170
+ // </editor-fold>
171
+
172
+ // <editor-fold defaultstate="collapsed" desc="iframe">
173
+
174
+ // <editor-fold defaultstate="collapsed" desc="rendering">
175
+
176
+ add_filter( 'media_upload_tabs', 'intergeo_media_upload_tabs' );
177
+ function intergeo_media_upload_tabs( $tabs ) {
178
+ $tabs['intergeo_map'] = __( 'Intergeo Maps', INTERGEO_PLUGIN_NAME );
179
+ return $tabs;
180
+ }
181
+
182
+ add_action( 'media_upload_intergeo_map', 'intergeo_map_popup_init' );
183
+ function intergeo_map_popup_init() {
184
+ $post_id = filter_input( INPUT_GET, 'post_id', FILTER_VALIDATE_INT, array( 'options' => array( 'min_range' => 1 ) ) );
185
+ $map_id = filter_input( INPUT_GET, 'map' );
186
+
187
+ $send_to_editor = false;
188
+ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
189
+ $shortcode = intergeo_save_map( $map_id, $post_id );
190
+ if ( $post_id ) {
191
+ $send_to_editor = $shortcode;
192
+ } else {
193
+ $args = array(
194
+ 'page' => INTERGEO_PLUGIN_NAME,
195
+ 'updated' => date( 'YmdHis' ),
196
+ );
197
+ wp_redirect( add_query_arg( $args, admin_url( 'upload.php' ) ) );
198
+ exit;
199
+ }
200
+ }
201
+
202
+ intergeo_enqueue_google_maps_script( 'adsense,panoramio,weather,drawing' );
203
+
204
+ wp_enqueue_script( 'intergeo-editor', INTERGEO_ABSURL . 'js/editor.js', array( 'wp-color-picker', 'google-maps-v3', 'jquery' ), INTERGEO_VERSION );
205
+ wp_localize_script( 'intergeo-editor', 'intergeo_options', array(
206
+ 'send_to_editor' => $send_to_editor,
207
+ 'adsense' => array( 'publisher_id' => get_option( 'intergeo_adsense_publisher_id' ) ),
208
+ 'ajaxurl' => admin_url( 'admin-ajax.php' ),
209
+ 'nonce' => wp_create_nonce( 'editor_popup' . filter_input( INPUT_SERVER, 'REMOTE_ADDR', FILTER_VALIDATE_IP ) ),
210
+ 'l10n' => array(
211
+ 'marker' => __( 'marker', INTERGEO_PLUGIN_NAME ),
212
+ 'error' => array(
213
+ 'style' => __( 'Styles are broken. Please, fix it and try again.', INTERGEO_PLUGIN_NAME ),
214
+ 'directions' => __( 'Direction was not found.', INTERGEO_PLUGIN_NAME ),
215
+ ),
216
+ ),
217
+ ) );
218
+
219
+ wp_enqueue_style( 'wp-color-picker' );
220
+ wp_enqueue_style( 'intergeo-editor', INTERGEO_ABSURL . 'css/editor.css', array(), INTERGEO_VERSION );
221
+
222
+ wp_iframe( 'intergeo_iframe', $post_id, $map_id );
223
+ }
224
+
225
+ function intergeo_iframe( $post_id = false, $map_id = false ) {
226
+ $publisher_id = trim( get_option( 'intergeo_adsense_publisher_id' ) );
227
+ $show_map_center = get_option( 'intergeo_show_map_center', true );
228
+
229
+ $submit_text = __( 'Insert into post', INTERGEO_PLUGIN_NAME );
230
+
231
+ if ( !$post_id ) {
232
+ $submit_text = __( 'Create the map', INTERGEO_PLUGIN_NAME );
233
+ }
234
+
235
+ $copy = false;
236
+ if ( !$map_id ) {
237
+ $copy = true;
238
+ $map_id = filter_input( INPUT_GET, 'copy' );
239
+ }
240
+
241
+ $json = array();
242
+ if ( $map_id ) {
243
+ $map = get_post( intergeo_decode( $map_id ) );
244
+ if ( $map->post_type == INTERGEO_PLUGIN_NAME ) {
245
+ $json = json_decode( $map->post_content, true );
246
+ if ( !$copy ) {
247
+ $submit_text = __( 'Update the map', INTERGEO_PLUGIN_NAME );
248
+ }
249
+ }
250
+ }
251
+
252
+ require INTERGEO_ABSPATH . '/templates/iframe/form.php';
253
+ }
254
+
255
+ // </editor-fold>
256
+
257
+ // <editor-fold defaultstate="collapsed" desc="filtering">
258
+
259
+ function intergeo_filter_value( $value, $array ) {
260
+ $value = strtoupper( $value );
261
+ return !in_array( $value, $array ) ? null : $value;
262
+ }
263
+
264
+ function intergeo_filter_position( $position ) {
265
+ return intergeo_filter_value( $position, array(
266
+ 'TOP_LEFT', 'TOP_CENTER', 'TOP_RIGHT',
267
+ 'RIGHT_TOP', 'RIGHT_CENTER', 'RIGHT_BOTTOM',
268
+ 'BOTTOM_RIGHT', 'BOTTOM_CENTER', 'BOTTOM_LEFT',
269
+ 'LEFT_BOTTOM', 'LEFT_CENTER', 'LEFT_TOP'
270
+ ) );
271
+ }
272
+
273
+ function intergeo_filter_map_type( $type ) {
274
+ return intergeo_filter_value( $type, array( 'ROADMAP', 'TERRAIN', 'SATELLITE', 'HYBRID' ) );
275
+ }
276
+
277
+ function intergeo_filter_map_type_style( $style ) {
278
+ return intergeo_filter_value( $style, array( 'DEFAULT', 'DROPDOWN_MENU', 'HORIZONTAL_BAR' ) );
279
+ }
280
+
281
+ function intergeo_filter_zoom_style( $style ) {
282
+ return intergeo_filter_value( $style, array( 'DEFAULT', 'SMALL', 'LARGE' ) );
283
+ }
284
+
285
+ function intergeo_filter_wind_speed_units( $unit ) {
286
+ return intergeo_filter_value( $unit, array( 'KILOMETERS_PER_HOUR', 'METERS_PER_SECOND', 'MILES_PER_HOUR' ) );
287
+ }
288
+
289
+ function intergeo_filter_temperature_units( $unit ) {
290
+ return intergeo_filter_value( $unit, array( 'CELSIUS', 'FAHRENHEIT' ) );
291
+ }
292
+
293
+ function intergeo_filter_adsense_format( $format ) {
294
+ return intergeo_filter_value( $format, array(
295
+ 'BANNER',
296
+ 'BUTTON',
297
+ 'HALF_BANNER',
298
+ 'LARGE_HORIZONTAL_LINK_UNIT',
299
+ 'LARGE_RECTANGLE',
300
+ 'LARGE_VERTICAL_LINK_UNIT',
301
+ 'LEADERBOARD',
302
+ 'MEDIUM_RECTANGLE',
303
+ 'MEDIUM_VERTICAL_LINK_UNIT',
304
+ 'SKYSCRAPER',
305
+ 'SMALL_HORIZONTAL_LINK_UNIT',
306
+ 'SMALL_RECTANGLE',
307
+ 'SMALL_SQUARE',
308
+ 'SMALL_VERTICAL_LINK_UNIT',
309
+ 'SQUARE',
310
+ 'VERTICAL_BANNER',
311
+ 'WIDE_SKYSCRAPER',
312
+ 'X_LARGE_VERTICAL_LINK_UNIT',
313
+ ) );
314
+ }
315
+
316
+ function intergeo_filter_custom_style( $style ) {
317
+ $style = trim( $style );
318
+ $json = @json_decode( $style, true );
319
+
320
+ return empty( $json ) ? null : $json;
321
+ }
322
+
323
+ function intergeo_filter_overlays_marker( $marker ) {
324
+ if ( !isset( $marker['position'] ) || !preg_match( '/^-?\d+\.?\d*,-?\d+\.?\d*$/', $marker['position'] ) ) {
325
+ return false;
326
+ }
327
+
328
+ return array(
329
+ 'position' => explode( ',', $marker['position'] ),
330
+ 'icon' => isset( $marker['icon'] ) ? filter_var( $marker['icon'], FILTER_VALIDATE_URL ) : '',
331
+ 'info' => isset( $marker['info'] ) ? trim( preg_replace( '/\<\/?script.*?\>/is', '', $marker['info'] ) ) : '',
332
+ 'title' => isset( $marker['title'] ) ? strip_tags( trim( $marker['title'] ) ) : '',
333
+ );
334
+ }
335
+
336
+ function intergeo_filter_overlays_polyline( $polyline ) {
337
+ if ( !isset( $polyline['path'] ) ) {
338
+ return false;
339
+ }
340
+
341
+ $path = array();
342
+ foreach( explode( ';', $polyline['path'] ) as $point ) {
343
+ if ( preg_match( '/^-?\d+\.?\d*,-?\d+\.?\d*$/', $point ) ) {
344
+ $path[] = explode( ',', $point );
345
+ }
346
+ }
347
+
348
+ if ( count( $path ) < 2 ) {
349
+ return false;
350
+ }
351
+
352
+ return array(
353
+ 'path' => $path,
354
+ 'weight' => isset( $polyline['weight'] )
355
+ ? filter_var( $polyline['weight'], FILTER_VALIDATE_INT, array( 'options' => array( 'min_range' => 1, 'default' => '' ) ) )
356
+ : '',
357
+ 'opacity' => isset( $polyline['opacity'] )
358
+ ? filter_var( $polyline['opacity'], FILTER_VALIDATE_FLOAT, array( 'options' => array( 'min_range' => 0, 'max_range' => 1, 'default' => '' ) ) )
359
+ : '',
360
+ 'color' => isset( $polyline['color'] )
361
+ ? filter_var( $polyline['color'], FILTER_VALIDATE_REGEXP, array( 'options' => array( 'regexp' => '/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/', 'default' => '#000000' ) ) )
362
+ : '#000000',
363
+ );
364
+ }
365
+
366
+ function intergeo_filter_overlays_polyoverlay( $polygon ) {
367
+ if ( !isset( $polygon['path'] ) ) {
368
+ return false;
369
+ }
370
+
371
+ $path = array();
372
+ foreach( explode( ';', $polygon['path'] ) as $point ) {
373
+ if ( preg_match( '/^-?\d+\.?\d*,-?\d+\.?\d*$/', $point ) ) {
374
+ $path[] = explode( ',', $point );
375
+ }
376
+ }
377
+
378
+ if ( count( $path ) < 2 ) {
379
+ return false;
380
+ }
381
+
382
+ $position = isset( $polygon['position'] ) ? strtoupper( trim( $polygon['position'] ) ) : 'CENTER';
383
+
384
+ return array(
385
+ 'path' => $path,
386
+ 'position' => in_array( $position, array( 'CENTER', 'INSIDE', 'OUTSIDE' ) ) ? $position : 'CENTER',
387
+ 'weight' => isset( $polygon['weight'] ) ? filter_var( $polygon['weight'], FILTER_VALIDATE_INT, array( 'options' => array( 'min_range' => 1, 'default' => '' ) ) ) : '',
388
+ 'stroke_opacity' => isset( $polygon['stroke_opacity'] ) ? filter_var( $polygon['stroke_opacity'], FILTER_VALIDATE_FLOAT, array( 'options' => array( 'min_range' => 0, 'max_range' => 1, 'default' => '' ) ) ) : '',
389
+ 'stroke_color' => isset( $polygon['stroke_color'] ) ? filter_var( $polygon['stroke_color'], FILTER_VALIDATE_REGEXP, array( 'options' => array( 'regexp' => '/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/', 'default' => '#000000' ) ) ) : '#000000',
390
+ 'fill_opacity' => isset( $polygon['fill_opacity'] ) ? filter_var( $polygon['fill_opacity'], FILTER_VALIDATE_FLOAT, array( 'options' => array( 'min_range' => 0, 'max_range' => 1, 'default' => '' ) ) ) : '',
391
+ 'fill_color' => isset( $polygon['fill_color'] ) ? filter_var( $polygon['fill_color'], FILTER_VALIDATE_REGEXP, array( 'options' => array( 'regexp' => '/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/', 'default' => '#000000' ) ) ) : '#000000',
392
+ );
393
+ }
394
+
395
+ function intergeo_filter_directions( $direction ) {
396
+ $to = isset( $direction['to'] ) ? trim( $direction['to'] ) : '';
397
+ $from = isset( $direction['from'] ) ? trim( $direction['from'] ) : '';
398
+
399
+ if ( empty( $to ) || empty( $from ) ) {
400
+ return false;
401
+ }
402
+
403
+ $mode = isset( $direction['mode'] ) ? strtoupper( trim( $direction['mode'] ) ) : 'DRIVING';
404
+
405
+ return array(
406
+ 'mode' => in_array( $mode, array( 'BICYCLING', 'DRIVING', 'TRANSIT', 'WALKING' ) ) ? $mode : 'DRIVING',
407
+ 'from' => $from,
408
+ 'to' => $to,
409
+ );
410
+ }
411
+
412
+ function intergeo_filter_input() {
413
+ $color_regexp = '/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/';
414
+ $postion_filter = array( 'filter' => FILTER_CALLBACK, 'options' => 'intergeo_filter_position' );
415
+
416
+ $options = filter_input_array( INPUT_POST, array (
417
+ 'lat' => array( 'filter' => FILTER_VALIDATE_FLOAT, 'flags' => FILTER_REQUIRE_SCALAR, 'options' => array( 'min_range' => -90, 'max_range' => 90, 'default' => 48.1366069 ) ),
418
+ 'lng' => array( 'filter' => FILTER_VALIDATE_FLOAT, 'flags' => FILTER_REQUIRE_SCALAR, 'options' => array( 'min_range' => -180, 'max_range' => 180, 'default' => 11.577085099999977 ) ),
419
+ 'zoom' => array( 'filter' => FILTER_VALIDATE_INT, 'flags' => FILTER_REQUIRE_SCALAR, 'options' => array( 'min_range' => 0, 'max_range' => 19, 'default' => 5 ) ),
420
+ 'address' => FILTER_SANITIZE_STRING,
421
+ 'map_mapTypeId' => array( 'filter' => FILTER_CALLBACK, 'options' => 'intergeo_filter_map_type' ),
422
+ 'map_draggable' => FILTER_VALIDATE_BOOLEAN,
423
+ 'map_minZoom' => array( 'filter' => FILTER_VALIDATE_INT, 'flags' => FILTER_REQUIRE_SCALAR, 'options' => array( 'min_range' => 0, 'max_range' => 19, 'default' => 0 ) ),
424
+ 'map_maxZoom' => array( 'filter' => FILTER_VALIDATE_INT, 'flags' => FILTER_REQUIRE_SCALAR, 'options' => array( 'min_range' => 0, 'max_range' => 19, 'default' => 19 ) ),
425
+ 'map_scrollwheel' => FILTER_VALIDATE_BOOLEAN,
426
+ 'map_zoomControl' => FILTER_VALIDATE_BOOLEAN,
427
+ 'map_zoomControlOptions_position' => $postion_filter,
428
+ 'map_zoomControlOptions_style' => array( 'filter' => FILTER_CALLBACK, 'options' => 'intergeo_filter_zoom_style' ),
429
+ 'map_panControl' => FILTER_VALIDATE_BOOLEAN,
430
+ 'map_panControlOptions_position' => $postion_filter,
431
+ 'map_scaleControl' => FILTER_VALIDATE_BOOLEAN,
432
+ 'map_scaleControlOptions_position' => $postion_filter,
433
+ 'map_mapTypeControl' => FILTER_VALIDATE_BOOLEAN,
434
+ 'map_mapTypeControlOptions_position' => $postion_filter,
435
+ 'map_mapTypeControlOptions_style' => array( 'filter' => FILTER_CALLBACK, 'options' => 'intergeo_filter_map_type_style' ),
436
+ 'map_mapTypeControlOptions_mapTypeIds' => array( 'filter' => FILTER_CALLBACK, 'flags' => FILTER_REQUIRE_ARRAY, 'options' => 'intergeo_filter_map_type' ),
437
+ 'map_streetViewControl' => FILTER_VALIDATE_BOOLEAN,
438
+ 'map_streetViewControlOptions_position' => $postion_filter,
439
+ 'map_rotateControl' => FILTER_VALIDATE_BOOLEAN,
440
+ 'map_rotateControlOptions_position' => $postion_filter,
441
+ 'map_overviewMapControl' => FILTER_VALIDATE_BOOLEAN,
442
+ 'map_overviewMapControlOptions_opened' => FILTER_VALIDATE_BOOLEAN,
443
+ 'layer_traffic' => FILTER_VALIDATE_BOOLEAN,
444
+ 'layer_bicycling' => FILTER_VALIDATE_BOOLEAN,
445
+ 'layer_cloud' => FILTER_VALIDATE_BOOLEAN,
446
+ 'layer_weather' => FILTER_VALIDATE_BOOLEAN,
447
+ 'weather_temperatureUnits' => array( 'filter' => FILTER_CALLBACK, 'options' => 'intergeo_filter_temperature_units' ),
448
+ 'weather_windSpeedUnits' => array( 'filter' => FILTER_CALLBACK, 'options' => 'intergeo_filter_wind_speed_units' ),
449
+ 'layer_panoramio' => FILTER_VALIDATE_BOOLEAN,
450
+ 'panoramio_tag' => FILTER_SANITIZE_STRING,
451
+ 'panoramio_userId' => FILTER_SANITIZE_STRING,
452
+ 'layer_adsense' => FILTER_VALIDATE_BOOLEAN,
453
+ 'adsense_format' => array( 'filter' => FILTER_CALLBACK, 'options' => 'intergeo_filter_adsense_format' ),
454
+ 'adsense_position' => $postion_filter,
455
+ 'adsense_backgroundColor' => array( 'filter' => FILTER_VALIDATE_REGEXP, 'options' => array( 'regexp' => $color_regexp, 'default' => '#c4d4f3' ) ),
456
+ 'adsense_borderColor' => array( 'filter' => FILTER_VALIDATE_REGEXP, 'options' => array( 'regexp' => $color_regexp, 'default' => '#e5ecf9' ) ),
457
+ 'adsense_titleColor' => array( 'filter' => FILTER_VALIDATE_REGEXP, 'options' => array( 'regexp' => $color_regexp, 'default' => '#0000cc' ) ),
458
+ 'adsense_textColor' => array( 'filter' => FILTER_VALIDATE_REGEXP, 'options' => array( 'regexp' => $color_regexp, 'default' => '#000000' ) ),
459
+ 'adsense_urlColor' => array( 'filter' => FILTER_VALIDATE_REGEXP, 'options' => array( 'regexp' => $color_regexp, 'default' => '#009900' ) ),
460
+ 'container_width' => FILTER_SANITIZE_STRING,
461
+ 'container_height' => FILTER_SANITIZE_STRING,
462
+ 'container_styles' => FILTER_SANITIZE_STRING,
463
+ 'styles_type' => FILTER_SANITIZE_STRING,
464
+ 'styles_custom' => array( 'filter' => FILTER_CALLBACK, 'options' => 'intergeo_filter_custom_style' ),
465
+ 'overlays_marker' => array( 'filter' => FILTER_DEFAULT, 'flags' => FILTER_REQUIRE_ARRAY ),
466
+ 'overlays_polyline' => array( 'filter' => FILTER_DEFAULT, 'flags' => FILTER_REQUIRE_ARRAY ),
467
+ 'overlays_polygon' => array( 'filter' => FILTER_DEFAULT, 'flags' => FILTER_REQUIRE_ARRAY ),
468
+ 'overlays_rectangle' => array( 'filter' => FILTER_DEFAULT, 'flags' => FILTER_REQUIRE_ARRAY ),
469
+ 'overlays_circle' => array( 'filter' => FILTER_DEFAULT, 'flags' => FILTER_REQUIRE_ARRAY ),
470
+ 'directions' => array( 'filter' => FILTER_DEFAULT, 'flags' => FILTER_REQUIRE_ARRAY ),
471
+ ) );
472
+
473
+ $defaults = array (
474
+ 'lat' => 48.1366069,
475
+ 'lng' => 11.577085099999977,
476
+ 'zoom' => 5,
477
+ 'address' => '',
478
+ 'map_mapTypeId' => 'ROADMAP',
479
+ 'map_draggable' => true,
480
+ 'map_minZoom' => 0,
481
+ 'map_maxZoom' => 19,
482
+ 'map_scrollwheel' => true,
483
+ 'map_zoomControl' => true,
484
+ 'map_zoomControlOptions_position' => null,
485
+ 'map_zoomControlOptions_style' => 'DEFAULT',
486
+ 'map_panControl' => true,
487
+ 'map_panControlOptions_position' => null,
488
+ 'map_scaleControl' => false,
489
+ 'map_scaleControlOptions_position' => null,
490
+ 'map_mapTypeControl' => true,
491
+ 'map_mapTypeControlOptions_position' => null,
492
+ 'map_mapTypeControlOptions_style' => 'DEFAULT',
493
+ 'map_mapTypeControlOptions_mapTypeIds' => array( 'ROADMAP', 'TERRAIN', 'SATELLITE', 'HYBRID' ),
494
+ 'map_streetViewControl' => true,
495
+ 'map_streetViewControlOptions_position' => null,
496
+ 'map_rotateControl' => true,
497
+ 'map_rotateControlOptions_position' => null,
498
+ 'map_overviewMapControl' => false,
499
+ 'map_overviewMapControlOptions_opened' => false,
500
+ 'layer_traffic' => false,
501
+ 'layer_bicycling' => false,
502
+ 'layer_cloud' => false,
503
+ 'layer_weather' => false,
504
+ 'weather_temperatureUnits' => null,
505
+ 'weather_windSpeedUnits' => null,
506
+ 'layer_panoramio' => false,
507
+ 'panoramio_tag' => '',
508
+ 'panoramio_userId' => '',
509
+ 'layer_adsense' => false,
510
+ 'adsense_format' => null,
511
+ 'adsense_position' => null,
512
+ 'adsense_backgroundColor' => '#c4d4f3',
513
+ 'adsense_borderColor' => '#e5ecf9',
514
+ 'adsense_titleColor' => '#0000cc',
515
+ 'adsense_textColor' => '#000000',
516
+ 'adsense_urlColor' => '#009900',
517
+ 'container_width' => '',
518
+ 'container_height' => '',
519
+ 'container_styles' => '',
520
+ 'styles_type' => 'DEFAULT',
521
+ 'styles_custom' => null,
522
+ 'overlays_marker' => array(),
523
+ 'overlays_polyline' => array(),
524
+ 'overlays_polygon' => array(),
525
+ 'overlays_rectangle' => array(),
526
+ 'overlays_circle' => array(),
527
+ 'directions' => array(),
528
+ );
529
+
530
+ $results = array();
531
+ foreach ( $options as $key => $value ) {
532
+ if ( array_key_exists( $key, $defaults ) ) {
533
+ $equals = $defaults[$key] == $value;
534
+ if ( is_array( $value ) ) {
535
+ $equals = ( count( $value ) == count( $defaults[$key] ) ) && ( count( array_diff( (array)$defaults[$key], $value ) ) == 0 );
536
+ }
537
+
538
+ if ( !$equals ) {
539
+ $results[$key] = $value;
540
+ }
541
+ }
542
+ }
543
+
544
+ if ( !empty( $results['overlays_marker'] ) ) {
545
+ $results['overlays_marker'] = array_filter( array_map( 'intergeo_filter_overlays_marker', $results['overlays_marker'] ) );
546
+ }
547
+
548
+ if ( !empty( $results['overlays_polyline'] ) ) {
549
+ $results['overlays_polyline'] = array_filter( array_map( 'intergeo_filter_overlays_polyline', $results['overlays_polyline'] ) );
550
+ }
551
+
552
+ if ( !empty( $results['directions'] ) ) {
553
+ $results['directions'] = array_filter( array_map( 'intergeo_filter_directions', $results['directions'] ) );
554
+ }
555
+
556
+ foreach ( array( 'polygon', 'rectangle', 'circle' ) as $overlay ) {
557
+ $overlay = 'overlays_' . $overlay;
558
+ if ( !empty( $results[$overlay] ) ) {
559
+ $results[$overlay] = array_filter( array_map( 'intergeo_filter_overlays_polyoverlay', $results[$overlay] ) );
560
+ }
561
+ }
562
+
563
+ return $results;
564
+ }
565
+
566
+ // </editor-fold>
567
+
568
+ // <editor-fold defaultstate="collapsed" desc="saving">
569
+
570
+ function intergeo_save_map( $map_id = false, $post_id = false ) {
571
+ $options = array();
572
+ $array_ptr = &$options;
573
+ foreach ( intergeo_filter_input() as $key => $value ) {
574
+ if ( !is_null( $value ) ) {
575
+ $keys = explode( '_', $key );
576
+ $last_key = array_pop( $keys );
577
+
578
+ while ( $arr_key = array_shift( $keys ) ) {
579
+ if ( !array_key_exists( $arr_key, $array_ptr ) ) {
580
+ $array_ptr[$arr_key] = array( );
581
+ }
582
+ $array_ptr = &$array_ptr[$arr_key];
583
+ }
584
+
585
+ $array_ptr[$last_key] = $value;
586
+ $array_ptr = &$options;
587
+ }
588
+ }
589
+
590
+ $address = '';
591
+ if ( !empty( $options['address'] ) ) {
592
+ $address = $options['address'] = trim( $options['address'] );
593
+ }
594
+
595
+ $args = array(
596
+ 'post_type' => INTERGEO_PLUGIN_NAME,
597
+ 'post_content' => addcslashes( json_encode( $options ), '\\' ),
598
+ 'post_status' => 'private',
599
+ );
600
+
601
+ $update = false;
602
+ if ( $map_id ) {
603
+ $post = get_post( intergeo_decode( $map_id ) );
604
+ if ( $post && $post->post_type == INTERGEO_PLUGIN_NAME ) {
605
+ $update = true;
606
+ $args['ID'] = $post->ID;
607
+ }
608
+ }
609
+
610
+ $id = wp_insert_post( $args );
611
+
612
+ if ( !empty( $id ) && !is_wp_error( $id ) ) {
613
+ if ( !$post_id ) {
614
+ intergeo_set_info( $update
615
+ ? __( 'The map has been updated successfully.', INTERGEO_PLUGIN_NAME )
616
+ : __( 'The map has been created successfully.', INTERGEO_PLUGIN_NAME )
617
+ );
618
+ }
619
+ return sprintf( '[intergeo id="%s"]%s[/intergeo]', intergeo_encode( $id ), $address );
620
+ }
621
+
622
+ if ( !$post_id ) {
623
+ intergeo_set_error( $update
624
+ ? __( 'The map updating failed.', INTERGEO_PLUGIN_NAME )
625
+ : __( 'The map creation failed.', INTERGEO_PLUGIN_NAME )
626
+ );
627
+ }
628
+
629
+ return false;
630
+ }
631
+
632
+ // </editor-fold>
633
+
634
+ // <editor-fold defaultstate="collapsed" desc="ajax stuff">
635
+
636
+ add_action( 'wp_ajax_intergeo_show_map_center', 'intergeo_show_map_center_changed' );
637
+ function intergeo_show_map_center_changed() {
638
+ $nonce = filter_input( INPUT_POST, 'nonce' );
639
+ if ( wp_verify_nonce( $nonce, 'editor_popup' . filter_input( INPUT_SERVER, 'REMOTE_ADDR', FILTER_VALIDATE_IP ) ) ) {
640
+ update_option( 'intergeo_show_map_center', (int)filter_input( INPUT_POST, 'status', FILTER_VALIDATE_BOOLEAN ) );
641
+ }
642
+ }
643
+
644
+ // </editor-fold>
645
+
646
+ // </editor-fold>
647
+
648
+ // <editor-fold defaultstate="collapsed" desc="shortcode">
649
+
650
+ add_filter( 'widget_text', 'do_shortcode' );
651
+ add_filter( 'term_description', 'do_shortcode' );
652
+
653
+ add_shortcode( INTERGEO_PLUGIN_NAME, 'intergeo_shortcode' );
654
+ function intergeo_shortcode( $attrs, $address = '' ) {
655
+ $args = shortcode_atts( array(
656
+ 'id' => false,
657
+ 'hook' => false,
658
+ 'width' => false,
659
+ 'height' => false,
660
+ 'style' => false,
661
+ 'zoom' => false,
662
+ ), $attrs );
663
+
664
+ $address = trim( $address );
665
+ if ( empty( $args['id'] ) && empty( $address ) ) {
666
+ return '';
667
+ }
668
+
669
+ $json = array();
670
+ if ( !empty( $args['id'] ) ) {
671
+ $post = get_post( intergeo_decode( $args['id'] ) );
672
+ if ( !$post || $post->post_type != INTERGEO_PLUGIN_NAME ) {
673
+ return '';
674
+ }
675
+
676
+ $json = json_decode( $post->post_content, true );
677
+ } else {
678
+ $args['id'] = intergeo_encode( rand( 0, 100 ) . rand( 0, 10000 ) );
679
+ $json['zoom'] = intval( $args['zoom'] ) ? intval( $args['zoom'] ) : 15;
680
+ }
681
+
682
+ if ( !empty( $address ) ) {
683
+ $json['address'] = $address;
684
+ }
685
+
686
+ if ( trim( $args['hook'] ) != '' ) {
687
+ $json = apply_filters( $args['hook'], $json );
688
+ }
689
+
690
+ wp_enqueue_style( 'intergeo-frontend' );
691
+ intergeo_enqueue_google_maps_script( intergeo_check_libraries( $json ) );
692
+ if ( !wp_script_is( 'intergeo-rendering' ) ) {
693
+ wp_enqueue_script( 'intergeo-rendering', INTERGEO_ABSURL . 'js/rendering.js', array( 'jquery', 'google-maps-v3' ), INTERGEO_VERSION );
694
+ wp_localize_script( 'intergeo-rendering', 'intergeo_options', array(
695
+ 'adsense' => array( 'publisher_id' => get_option( 'intergeo_adsense_publisher_id' ) )
696
+ ) );
697
+ }
698
+
699
+ $container = array();
700
+ if ( isset( $json['container'] ) ) {
701
+ $container = $json['container'];
702
+ unset( $json['container'] );
703
+ }
704
+
705
+ $width = !empty( $container['width'] ) ? esc_attr( $container['width'] ) : '100%';
706
+ if ( trim( $args['width'] ) != '' ) {
707
+ $width = $args['width'];
708
+ }
709
+ if ( is_numeric( $width ) ) {
710
+ $width .= 'px';
711
+ }
712
+
713
+ $height = !empty( $container['height'] ) ? esc_attr( $container['height'] ) : '300px';
714
+ if ( trim( $args['height'] ) != '' ) {
715
+ $height = $args['height'];
716
+ }
717
+ if ( is_numeric( $height ) ) {
718
+ $height .= 'px';
719
+ }
720
+
721
+ $styles = !empty( $container['styles'] ) ? esc_attr( $container['styles'] ) : '';
722
+ if ( trim( $args['style'] ) != '' ) {
723
+ $styles = $args['style'];
724
+ }
725
+
726
+ return sprintf( '
727
+ <div id="intergeo_map%1$s" class="intergeo_map_canvas" style="width:100%%;height:300px;width:%2$s;height:%3$s;%4$s"></div>
728
+ <script type="text/javascript">
729
+ /* <![CDATA[ */
730
+ if (!window.intergeo_maps) window.intergeo_maps = [];
731
+ window.intergeo_maps.push( { container: \'intergeo_map%1$s\', options: %5$s } );
732
+ /* ]]> */
733
+ </script>
734
+ ',
735
+ $args['id'],
736
+ $width,
737
+ $height,
738
+ $styles,
739
+ json_encode( $json )
740
+ );
741
+ }
742
+
743
+ // </editor-fold>
744
+
745
+ // <editor-fold defaultstate="collapsed" desc="library">
746
+
747
+ add_action( 'admin_menu', 'intergeo_admin_menu' );
748
+ function intergeo_admin_menu() {
749
+ $page = add_submenu_page( 'upload.php', 'Intergeo Maps Library', 'Intergeo Maps', 'edit_posts', INTERGEO_PLUGIN_NAME, 'intergeo_library' );
750
+ if ( $page ) {
751
+ add_action( "load-{$page}", 'intergeo_library_init' );
752
+ }
753
+ }
754
+
755
+ function intergeo_library_init() {
756
+ wp_enqueue_style( 'intergeo_library', INTERGEO_ABSURL . 'css/library.css', array(), INTERGEO_VERSION );
757
+ wp_enqueue_media();
758
+
759
+ $screen = get_current_screen();
760
+
761
+ $screen->add_help_tab( array(
762
+ 'title' => esc_html__( 'Overview', INTERGEO_PLUGIN_NAME ),
763
+ 'id' => 'overview',
764
+ 'content' => sprintf( '<p>%s</p>', implode( '</p><p>', array(
765
+ esc_html__( "The library is a list to view all maps you have created in your system. The library is showing you 3x3 grid of maps' previews. You will see the same maps embedded into your posts at front end, as you see here. The library is paginated and if you have more than 9 maps, you will see pagination links under maps grid.", INTERGEO_PLUGIN_NAME ),
766
+ esc_html__( 'To create a new map, click on "Add New" button next to the page title and map editor popup will appear. In case you want to edit a map, you can click on pencil icon in the right bottom corner of map preview box and edit popup window will appear.', INTERGEO_PLUGIN_NAME ),
767
+ esc_html__( "If you want to delete a map, click on the trash icon in the right bottom corner of a map and confirm your action. Pay attention that whole information about the map will be removed from the system, but all shortcodes will be left where you embed it. However these deprecated shortcodes won't be rendered anymore, so you don't have to worry about it while the plugin is enabled.", INTERGEO_PLUGIN_NAME ),
768
+ ) ) ),
769
+ ) );
770
+
771
+ $screen->add_help_tab( array(
772
+ 'title' => esc_html__( 'Shortcodes', INTERGEO_PLUGIN_NAME ),
773
+ 'id' => 'shortcodes',
774
+ 'content' => sprintf( '<p>%s</p>', implode( '</p><p>', array(
775
+ esc_html__( 'You can easily embed a map into your posts, pages, categories or tags descriptions and text widgets by copying shortcode which you can find in the input field of a map preview box.', INTERGEO_PLUGIN_NAME ),
776
+ esc_html__( 'To specify a certain address just type it inside a shortcode, and a map will be automatically centered at this place. Also each shortcode could be extended with custom attributes like width, height, style, zoom and hook. Use standard CSS values for such attributes as width, height and style. Type an integer between 0 and 19 for zoom attribute. You can use hook attribute to set up a filter hook which you can use in your custom plugin or theme to configure all options of a map.', INTERGEO_PLUGIN_NAME ),
777
+ ) ) ),
778
+ ) );
779
+ }
780
+
781
+ function intergeo_library() {
782
+ if ( filter_input( INPUT_GET, 'do' ) == 'delete' ) {
783
+ intergeo_library_delete();
784
+ }
785
+
786
+ $query = new WP_Query( array(
787
+ 'orderby' => 'ID',
788
+ 'order' => 'DESC',
789
+ 'post_type' => INTERGEO_PLUGIN_NAME,
790
+ 'posts_per_page' => 9,
791
+ 'paged' => filter_input( INPUT_GET, 'pagenum', FILTER_VALIDATE_INT, array( 'options' => array(
792
+ 'min_range' => 1,
793
+ 'default' => 1,
794
+ ) ) ),
795
+ ) );
796
+
797
+ $libraries = array();
798
+ $pagination = paginate_links( array(
799
+ 'base' => add_query_arg( array(
800
+ 'pagenum' => '%#%',
801
+ 'updated' => false,
802
+ ) ),
803
+ 'format' => '',
804
+ 'current' => max( 1, $query->get( 'paged' ) ),
805
+ 'total' => $query->max_num_pages,
806
+ 'type' => 'array',
807
+ ) );
808
+
809
+ require INTERGEO_ABSPATH . '/templates/library/list.php';
810
+
811
+ intergeo_enqueue_google_maps_script( $libraries );
812
+
813
+ wp_enqueue_script( 'intergeo-rendering', INTERGEO_ABSURL . 'js/rendering.js', array( 'jquery', 'google-maps-v3' ), INTERGEO_VERSION );
814
+ wp_enqueue_script( 'intergeo-library', INTERGEO_ABSURL . 'js/library.js', array( 'intergeo-rendering', 'media-views' ), INTERGEO_VERSION );
815
+
816
+ wp_localize_script( 'intergeo-rendering', 'intergeo_options', array(
817
+ 'adsense' => array( 'publisher_id' => get_option( 'intergeo_adsense_publisher_id' ) )
818
+ ) );
819
+ }
820
+
821
+ function intergeo_library_delete() {
822
+ if ( !current_user_can( 'delete_posts' ) ) {
823
+ return;
824
+ }
825
+
826
+ $id = intergeo_decode( trim( filter_input( INPUT_GET, 'map' ) ) );
827
+ if ( !$id ) {
828
+ return;
829
+ }
830
+
831
+ $post = get_post( $id );
832
+ if ( wp_verify_nonce( filter_input( INPUT_GET, 'nonce' ), $id . filter_input( INPUT_SERVER, 'REMOTE_ADDR', FILTER_VALIDATE_IP ) ) && $post->post_type == INTERGEO_PLUGIN_NAME ) {
833
+ if ( wp_delete_post( $id, true ) ) {
834
+ intergeo_set_info( __( 'The map was deleted successfully.', INTERGEO_PLUGIN_NAME ) );
835
+ }
836
+ }
837
+
838
+ if ( filter_input( INPUT_GET, 'noheader', FILTER_VALIDATE_BOOLEAN ) ) {
839
+ wp_redirect( add_query_arg( 'page', INTERGEO_PLUGIN_NAME, admin_url( 'upload.php' ) ) );
840
+ exit;
841
+ }
842
+ }
843
+
844
+ // </editor-fold>
845
+
846
+ // <editor-fold defaultstate="collapsed" desc="messaging functions">
847
+
848
+ function intergeo_set_message( $message, $is_normal, $user_id = false ) {
849
+ $messages = get_option( 'intergeo_messages', array() );
850
+ if ( $user_id === false ) {
851
+ $user_id = get_current_user_id();
852
+ }
853
+
854
+ if ( !isset( $messages[$user_id] ) ) {
855
+ $messages[$user_id] = array();
856
+ }
857
+
858
+ $messages[$user_id][] = array( $message, $is_normal );
859
+ update_option( 'intergeo_messages', $messages );
860
+ }
861
+
862
+ function intergeo_set_info( $message, $user_id = false ) {
863
+ intergeo_set_message( $message, 1, $user_id );
864
+ }
865
+
866
+ function intergeo_set_error( $message, $user_id = false ) {
867
+ intergeo_set_message( $message, 0, $user_id );
868
+ }
869
+
870
+ add_action( 'admin_notices', 'intergeo_print_messages' );
871
+ function intergeo_print_messages() {
872
+ global $pagenow;
873
+
874
+ if ( $pagenow != 'upload.php' ) {
875
+ return;
876
+ }
877
+
878
+ $messages = get_option( 'intergeo_messages', array() );
879
+ $user_id = get_current_user_id();
880
+
881
+ if ( !isset( $messages[$user_id] ) ) {
882
+ return;
883
+ }
884
+
885
+ foreach ( $messages[$user_id] as $message ) {
886
+ printf( $message[1] ? '<div class="updated"><p>%s</p></div>' : '<div class="error"><p>%s</p></div>', $message[0] );
887
+ }
888
+
889
+ $messages[$user_id] = array();
890
+ update_option( 'intergeo_messages', $messages );
891
+ }
892
+
893
+ // </editor-fold>
js/editor.js ADDED
@@ -0,0 +1 @@
 
1
+ (function(){var a=window.dialogArguments||opener||parent||top;if(intergeo_options.send_to_editor&&a.send_to_editor){a.send_to_editor(intergeo_options.send_to_editor)}})();(function(a,b){if(typeof define=="function"){define(b)}else{if(typeof module!="undefined"){module.exports=b()}else{this[a]=b()}}})("klass",function(){var c=this,d=c.klass,h="function",k=/xyz/.test(function(){xyz})?/\bsupr\b/:/.*/,e="prototype";function i(f){return j.call(g(f)?f:function(){},f,1)}function g(f){return typeof f===h}function b(l,m,f){return function(){var o=this.supr;this.supr=f[e][l];var p={}.fabricatedUndefined;var n=p;try{n=m.apply(this,arguments)}finally{this.supr=o}return n}}function a(m,n,f){for(var l in n){if(n.hasOwnProperty(l)){m[l]=g(n[l])&&g(f[e][l])&&k.test(n[l])?b(l,n[l],f):n[l]}}}function j(m,p){function t(){}t[e]=this[e];var q=this,s=new t(),n=g(m),f=n?m:this,l=n?{}:m;function r(){if(this.initialize){this.initialize.apply(this,arguments)}else{p||n&&q.apply(this,arguments);f.apply(this,arguments)}}r.methods=function(u){a(s,u,q);r[e]=s;return this};r.methods.call(r,l).prototype.constructor=r;r.extend=arguments.callee;r[e].implement=r.statics=function(v,u){v=typeof v=="string"?(function(){var o={};o[v]=u;return o}()):v;a(this,v,q);return this};return r}i.noConflict=function(){c.klass=d;return this};c.klass=i;return i});if(!window.intergeo){window.intergeo={maps:{}}}if(!window.intergeo.maps){window.intergeo.maps={}}(function(c,b,a){a.Overlay=klass({initialize:function(h,f,g,d,i){var e=this;e.map=h;e.overlay=f;e.html=g;e.position=d;e.array=i;e.timeout=null;e.bindRemoveEvent(i)},bindRemoveEvent:function(e){var d=this;d.html.find(".intergeo_tlbr_actn_delete").click(function(){if(showNotice.warn()){d.overlay.setMap(null);d.map[e][d.position]=null;d.html.remove()}})}});a.Marker=a.Overlay.extend({initialize:function(i,f,g,d){var e=this,h=new b.InfoWindow();e.supr(i,f,g,d,"markers");g.hover(function(){if(i.markers[d]){f.setAnimation(b.Animation.BOUNCE)}},function(){if(i.markers[d]){f.setAnimation(null)}});e.html.find(".intergeo_tlbr_actn_edit").click(function(){var j=c("#intergeo_marker_ppp");j.find(".intergeo_ppp_frm").attr("data-position",d);j.find(".intergeo_tlbr_marker_title").val(g.find(".intergeo_tlbr_marker_title").val());j.find(".intergeo_tlbr_marker_icon").val(g.find(".intergeo_tlbr_marker_icon").val());j.find(".intergeo_tlbr_marker_info").val(g.find(".intergeo_tlbr_marker_info").val());j.fadeIn(150)});b.event.addListener(f,"dragend",function(j){g.find(".intergeo_tlbr_marker_location").val(j.latLng.toUrlValue())});b.event.addListener(f,"click",function(){var j=c.trim(g.find(".intergeo_tlbr_marker_info").val());if(j.length){if(i.infowindow){i.infowindow.close()}h.setContent(j);h.open(i.map,f);i.infowindow=h}})},update:function(g){var d=this,e={},i=c.trim(g.find(".intergeo_tlbr_marker_title").val()),f=c.trim(g.find(".intergeo_tlbr_marker_icon").val()),h=c.trim(g.find(".intergeo_tlbr_marker_info").val()),j=d.html.find(".intergeo_tlbr_marker_title_td");e.title=i;if(/^([a-z]([a-z]|\d|\+|-|\.)*):(\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?((\[(|(v[\da-f]{1,}\.(([a-z]|\d|-|\.|_|~)|[!\$&'\(\)\*\+,;=]|:)+))\])|((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=])*)(:\d*)?)(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*|(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)){0})(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(f)){e.icon=f}else{e.icon=null}d.html.find(".intergeo_tlbr_marker_title").val(i);d.html.find(".intergeo_tlbr_marker_icon").val(f);d.html.find(".intergeo_tlbr_marker_info").val(h);d.overlay.setOptions(e);if(i!=""){j.text(i)}else{j.text("#"+(d.position+1)+" "+intergeo_options.l10n.marker)}}});a.PolyOverlay=a.Overlay.extend({initialize:function(h,f,g,d,i){var e=this;e.supr(h,f,g,d,i);e.html.find(".intergeo_tlbr_actn_edit").click(function(){e.edit();return false})},pathToString:function(){var d=[];this.overlay.getPath().forEach(function(e){d.push(e.toUrlValue())});return d.join(";")},bindChangeEvent:function(e){var d=this;b.event.addListener(d.overlay,e,function(){d.html.find(".intergeo_tlbr_"+d.array+"_path").val(d.pathToString())})},edit:function(){var d=this,e=c("#intergeo_polyoverlay_ppp"),g=c.trim(d.html.find(".intergeo_tlbr_"+d.array+"_fill_color").val()),f=c.trim(d.html.find(".intergeo_tlbr_"+d.array+"_stroke_color").val());e.find(".intergeo_ppp_frm").attr("data-position",d.position).attr("data-target",d.array);if(!g){g="#000000"}e.find(".intergeo_tlbr_polyoverlay_fill_color").val(g).wpColorPicker("color",g);e.find(".intergeo_tlbr_polyoverlay_fill_opacity").val(d.html.find(".intergeo_tlbr_"+d.array+"_fill_opacity").val());if(!f){f="#000000"}e.find(".intergeo_tlbr_polyoverlay_stroke_color").val(f).wpColorPicker("color",f);e.find(".intergeo_tlbr_polyoverlay_weight").val(d.html.find(".intergeo_tlbr_"+d.array+"_weight").val());e.find(".intergeo_tlbr_polyoverlay_stroke_opacity").val(d.html.find(".intergeo_tlbr_"+d.array+"_stroke_opacity").val());e.find(".intergeo_tlbr_polyoverlay_position").val(d.html.find(".intergeo_tlbr_"+d.array+"_position").val());e.fadeIn(150)},update:function(e){var n=this,o={},k=e.find(".intergeo_tlbr_polyoverlay_position").val(),j=parseInt(e.find(".intergeo_tlbr_polyoverlay_weight").val()),i=!isNaN(j)&&0<=j,f=parseFloat(e.find(".intergeo_tlbr_polyoverlay_stroke_opacity").val()),d=!isNaN(f)&&0<=f&&f<=1,h=c.trim(e.find(".intergeo_tlbr_polyoverlay_stroke_color").val()),g=parseFloat(e.find(".intergeo_tlbr_polyoverlay_fill_opacity").val()),l=!isNaN(g)&&0<=g&&g<=1,m=c.trim(e.find(".intergeo_tlbr_polyoverlay_fill_color").val());o.strokePosition=b.StrokePosition[k]||b.StrokePosition.CENTER;o.strokeWeight=i?j:3;o.strokeOpacity=d?f:1;o.strokeColor=h;o.fillOpacity=l?g:0.3;o.fillColor=m;n.html.find(".intergeo_tlbr_"+n.array+"_position").val(k);n.html.find(".intergeo_tlbr_"+n.array+"_weight").val(i?j:"");n.html.find(".intergeo_tlbr_"+n.array+"_stroke_opacity").val(d?f:"");n.html.find(".intergeo_tlbr_"+n.array+"_stroke_color").val(h);n.html.find(".intergeo_tlbr_"+n.array+"_fill_opacity").val(l?g:"");n.html.find(".intergeo_tlbr_"+n.array+"_fill_color").val(m);n.html.find(".intergeo_tlbr_clr_prvw:last").css("background-color",h).fadeTo(0,d?f:1);n.html.find(".intergeo_tlbr_clr_prvw:first").css("background-color",m).fadeTo(0,l?g:0.3);n.overlay.setOptions(o)}});a.PolyOverlay.stringToPath=function(e,d){var f=[];c.each(e.find(d).val().split(";"),function(h,i){var g=i.split(",");if(g.length==2){f.push(new b.LatLng(g[0],g[1]))}});return f};a.PolyOverlay.stringToBounds=function(e,d){var f=a.PolyOverlay.stringToPath(e,d);return new b.LatLngBounds(f[0],f[1])};a.Polyline=a.PolyOverlay.extend({initialize:function(g,e,f,d){this.supr(g,e,f,d,"polyline");this.bindChangeEvent("mouseup")},edit:function(){var e=this,f=c("#intergeo_polyline_ppp"),d=c.trim(e.html.find(".intergeo_tlbr_polyline_color").val());f.find(".intergeo_ppp_frm").attr("data-position",e.position).attr("data-target","polyline");f.find(".intergeo_tlbr_polyline_weight").val(e.html.find(".intergeo_tlbr_polyline_weight").val());f.find(".intergeo_tlbr_polyline_opacity").val(e.html.find(".intergeo_tlbr_polyline_opacity").val());if(!d){d="#000000"}f.find(".intergeo_tlbr_polyline_color").val(d).wpColorPicker("color",d);f.fadeIn(150)},update:function(i){var e=this,g={},j=parseInt(i.find(".intergeo_tlbr_polyline_weight").val()),k=!isNaN(j)&&0<=j,f=parseFloat(i.find(".intergeo_tlbr_polyline_opacity").val()),h=!isNaN(f)&&0<=f&&f<=1,d=c.trim(i.find(".intergeo_tlbr_polyline_color").val());g.strokeOpacity=h?f:1;g.strokeWeight=k?j:3;g.strokeColor=d;e.html.find(".intergeo_tlbr_polyline_weight").val(k?j:"");e.html.find(".intergeo_tlbr_polyline_opacity").val(h?f:"");e.html.find(".intergeo_tlbr_polyline_color").val(d);e.html.find(".intergeo_tlbr_clr_prvw").css("background-color",d).fadeTo(0,h?f:1);e.overlay.setOptions(g)}});a.Polygon=a.PolyOverlay.extend({initialize:function(g,e,f,d){this.supr(g,e,f,d,"polygon");this.bindChangeEvent("mouseup")}});a.Rectangle=a.PolyOverlay.extend({initialize:function(g,e,f,d){this.supr(g,e,f,d,"rectangle");this.bindChangeEvent("bounds_changed")},pathToString:function(){var d=this.overlay.getBounds();return[d.getSouthWest().toUrlValue(),d.getNorthEast().toUrlValue()].join(";")}});a.Circle=a.PolyOverlay.extend({initialize:function(g,e,f,d){this.supr(g,e,f,d,"circle");this.bindChangeEvent("center_changed");this.bindChangeEvent("radius_changed")},pathToString:function(){var d=this.overlay;return d.getCenter().toUrlValue()+";"+d.getRadius()+",0"}});a.Direction=a.PolyOverlay.extend({initialize:function(g,e,f,d){this.supr(g,e,f,d,"direction")},edit:function(){var d=this,e=c("#intergeo_drctn_ppp");e.find(".intergeo_ppp_frm").attr("data-position",d.position).attr("data-target",d.array);e.find("#intergeo_ppp_drctn_from").val(d.html.find(".intergeo_tlbr_drctn_from").val());e.find("#intergeo_ppp_drctn_to").val(d.html.find(".intergeo_tlbr_drctn_to").val());e.find("#intergeo_ppp_drctn_mode").val(d.html.find(".intergeo_tlbr_drctn_mode").val());e.fadeIn(150)},update:function(f){var d=this,i=f.find("#intergeo_ppp_drctn_from").val(),h=f.find("#intergeo_ppp_drctn_to").val(),g=f.find("#intergeo_ppp_drctn_mode").val(),e={origin:i,destination:h,travelMode:b.TravelMode[g]||b.TravelMode.DRIVING};d.map.directions.route(e,function(k,j){if(j==b.DirectionsStatus.OK){d.overlay.setDirections(k);d.html.find(".intergeo_tlbr_direction_title_td").text(c("#intergeo_tlbr_drctn_ttl_tmpl").text().replaceByHash({"%num%":d.position+1,"%from%":i,"%to%":h,"%mode%":f.find("#intergeo_ppp_drctn_mode > :selected").text()}))}else{alert(intergeo_options.l10n.error.directions)}});d.html.find(".intergeo_tlbr_drctn_from").val(i);d.html.find(".intergeo_tlbr_drctn_to").val(h);d.html.find(".intergeo_tlbr_drctn_mode").val(g)}})})(jQuery,google.maps,intergeo.maps);(function(d,c,b){var a;String.prototype.replaceByHash=function(e){var f=this;d.each(e,function(g,h){f=f.split(g).join(h)});return f};a=function(e,g){var f=this;f.map=new c.Map(document.getElementById(e),g);f.drawing=new c.drawing.DrawingManager({drawingControl:false,map:f.map,circleOptions:{editable:true},markerOptions:{draggable:true},polygonOptions:{editable:true},polylineOptions:{editable:true},rectangleOptions:{editable:true}});f.directions=new c.DirectionsService();f.geocoder=null;f.traffic=null;f.bicycling=null;f.weather=null;f.cloud=null;f.panoramio=null;f.adunit=null;f.markers=[];f.polyline=[];f.polygon=[];f.rectangle=[];f.circle=[];f.direction=[];f.infowindow=null;c.event.addListener(f.map,"center_changed",function(){var h=f.map.getCenter();d("#intergeo_map_lat").val(h.lat());d("#intergeo_map_lng").val(h.lng())});c.event.addListener(f.map,"zoom_changed",function(){d("#intergeo_map_zoom").val(f.map.getZoom())});c.event.addListener(f.drawing,"overlaycomplete",function(h){switch(h.type){case c.drawing.OverlayType.MARKER:f._markerComplete(h);break;case c.drawing.OverlayType.CIRCLE:f._polyComplete(h,"circle",b.Circle);break;case c.drawing.OverlayType.POLYGON:f._polyComplete(h,"polygon",b.Polygon);break;case c.drawing.OverlayType.POLYLINE:f._polyComplete(h,"polyline",b.Polyline);break;case c.drawing.OverlayType.RECTANGLE:f._polyComplete(h,"rectangle",b.Rectangle);break}});f._initOverlays()};a.Styles={DEFAULT:[],RED:[{featureType:"all",stylers:[{hue:"#ff0000"}]}],NIGHT:[{featureType:"all",stylers:[{invert_lightness:"true"}]}],BLUE:[{featureType:"all",stylers:[{hue:"#0000b0"},{invert_lightness:"true"},{saturation:-30}]}],GREYSCALE:[{featureType:"all",stylers:[{saturation:-100},{gamma:0.5}]}],NO_ROADS:[{featureType:"road",stylers:[{visibility:"off"}]}],MIXED:[{featureType:"landscape",stylers:[{hue:"#00dd00"}]},{featureType:"road",stylers:[{hue:"#dd0000"}]},{featureType:"water",stylers:[{hue:"#000040"}]},{featureType:"poi.park",stylers:[{visibility:"off"}]},{featureType:"road.arterial",stylers:[{hue:"#ffff00"}]},{featureType:"road.local",stylers:[{visibility:"off"}]}],CHILLED:[{featureType:"road",elementType:"geometry",stylers:[{visibility:"simplified"}]},{featureType:"road.arterial",stylers:[{hue:149},{saturation:-78},{lightness:0}]},{featureType:"road.highway",stylers:[{hue:-31},{saturation:-40},{lightness:2.8}]},{featureType:"poi",elementType:"label",stylers:[{visibility:"off"}]},{featureType:"landscape",stylers:[{hue:163},{saturation:-26},{lightness:-1.1}]},{featureType:"transit",stylers:[{visibility:"off"}]},{featureType:"water",stylers:[{hue:3},{saturation:-24.24},{lightness:-38.57}]}]};a.prototype={_initOverlays:function(){var e=this;d(".intergeo_tlbr_marker").each(function(f,i){var h=d(i),g=h.find(".intergeo_tlbr_marker_location").val().split(",");e.markers.push(new b.Marker(e,new c.Marker({position:new c.LatLng(parseFloat(g[0]),parseFloat(g[1])),map:e.map,title:h.find(".intergeo_tlbr_marker_title").val(),icon:h.find(".intergeo_tlbr_marker_icon").val(),draggable:true}),h,f))});d(".intergeo_tlbr_polyline").each(function(f,j){var i=d(j),g=d.trim(i.find(".intergeo_tlbr_polyline_color").val()),h=parseFloat(i.find(".intergeo_tlbr_polyline_opacity").val()),k=parseInt(i.find(".intergeo_tlbr_polyline_weight").val());e.polyline.push(new b.Polyline(e,new c.Polyline({map:e.map,path:b.PolyOverlay.stringToPath(i,".intergeo_tlbr_polyline_path"),editable:true,strokeColor:g.length==0?"#000000":g,strokeOpacity:isNaN(h)?1:h,strokeWeight:isNaN(k)?3:k}),i,f))});d(".intergeo_tlbr_polygon").each(function(f,i){var h=d(i),l=d.trim(h.find(".intergeo_tlbr_polygon_fill_color").val()),g=parseFloat(h.find(".intergeo_tlbr_polygon_fill_opacity").val()),k=d.trim(h.find(".intergeo_tlbr_polygon_stroke_color").val()),m=parseFloat(h.find(".intergeo_tlbr_polygon_stroke_opacity").val()),f=d.trim(h.find(".intergeo_tlbr_plygon_position").val()),j=parseInt(h.find(".intergeo_tlbr_polygon_weight").val());e.polygon.push(new b.Polygon(e,new c.Polygon({map:e.map,path:b.PolyOverlay.stringToPath(h,".intergeo_tlbr_polygon_path"),editable:true,fillColor:l.length==0?"#000000":l,fillOpacity:isNaN(g)?0.3:g,strokeColor:k.length==0?"#000000":k,strokeOpacity:isNaN(m)?1:m,strokePosition:c.StrokePosition[f]||c.StrokePosition.CENTER,strokeWeight:isNaN(j)?3:j}),h,f))});d(".intergeo_tlbr_rectangle").each(function(f,i){var h=d(i),l=d.trim(h.find(".intergeo_tlbr_rectangle_fill_color").val()),g=parseFloat(h.find(".intergeo_tlbr_rectangle_fill_opacity").val()),k=d.trim(h.find(".intergeo_tlbr_rectangle_stroke_color").val()),m=parseFloat(h.find(".intergeo_tlbr_rectangle_stroke_opacity").val()),f=d.trim(h.find(".intergeo_tlbr_rectangle_position").val()),j=parseInt(h.find(".intergeo_tlbr_rectangle_weight").val());e.rectangle.push(new b.Rectangle(e,new c.Rectangle({map:e.map,bounds:b.PolyOverlay.stringToBounds(h,".intergeo_tlbr_rectangle_path"),editable:true,fillColor:l.length==0?"#000000":l,fillOpacity:isNaN(g)?0.3:g,strokeColor:k.length==0?"#000000":k,strokeOpacity:isNaN(m)?1:m,strokePosition:c.StrokePosition[f]||c.StrokePosition.CENTER,strokeWeight:isNaN(j)?3:j}),h,f))});d(".intergeo_tlbr_circle").each(function(m,j){var l=d(j),p=d.trim(l.find(".intergeo_tlbr_circle_fill_color").val()),i=parseFloat(l.find(".intergeo_tlbr_circle_fill_opacity").val()),h=d.trim(l.find(".intergeo_tlbr_circle_stroke_color").val()),g=parseFloat(l.find(".intergeo_tlbr_circle_stroke_opacity").val()),o=d.trim(l.find(".intergeo_tlbr_circle_position").val()),k=parseInt(l.find(".intergeo_tlbr_circle_weight").val()),q=d.trim(l.find(".intergeo_tlbr_circle_path").val()).split(";"),f=q[0].split(","),n=q[1].split(",");e.circle.push(new b.Circle(e,new c.Circle({map:e.map,center:new c.LatLng(f[0],f[1]),radius:parseFloat(n[0]),editable:true,fillColor:p.length==0?"#000000":p,fillOpacity:isNaN(i)?0.3:i,strokeColor:h.length==0?"#000000":h,strokeOpacity:isNaN(g)?1:g,strokePosition:c.StrokePosition[o]||c.StrokePosition.CENTER,strokeWeight:isNaN(k)?3:k}),l,m))});d(".intergeo_tlbr_drctn").each(function(f,h){var g=d(h),l=d.trim(g.find(".intergeo_tlbr_drctn_from").val()),k=d.trim(g.find(".intergeo_tlbr_drctn_to").val()),j=d.trim(g.find(".intergeo_tlbr_drctn_mode").val()),i={origin:l,destination:k,travelMode:c.TravelMode[j]||c.TravelMode.DRIVING};e.directions.route(i,function(n,m){if(m==c.DirectionsStatus.OK){var o=new b.Direction(e,new c.DirectionsRenderer({map:e.map,directions:n}),g,f);e.direction.push(o)}else{g.remove();e.direction.push(null)}})})},_markerComplete:function(i){var g=this,e=g.markers.length,h=d(d("#intergeo_tlbr_marker_tmpl").html().replaceByHash({"%pos%":e,"%num%":e+1})),f=new b.Marker(g,i.overlay,h,e);h.find(".intergeo_tlbr_marker_location").val(i.overlay.getPosition().toUrlValue());d("#intergeo_tlbr_markers").append(h);g.markers.push(f);i.overlay.setDraggable(true)},_polyComplete:function(j,i,h){var f=this,e=f[i].length,g=d(d("#intergeo_tlbr_"+i+"_tmpl").html().replaceByHash({"%pos%":e,"%num%":e+1})),k=new h(f,j.overlay,g,e);f[i].push(k);g.find(".intergeo_tlbr_"+i+"_path").val(k.pathToString());d("#intergeo_tlbr_"+i+"s").append(g)},_normalize:function(h){var g=function(j){return j==="1"},f=function(j,k,l){return k[j]||l},e=function(j){return f(j,c.ControlPosition,0)},i={minZoom:parseInt,maxZoom:parseInt,scrollwheel:g,draggable:g,mapTypeId:function(j){return c.MapTypeId[j]||c.MapTypeId.ROADMAP},mapTypeControl:g,mapTypeControlOptions:{position:e,mapTypeIds:function(j){var k=[];d.each(j,function(l,m){if(c.MapTypeId[m]!==undefined){k.push(c.MapTypeId[m])}});return k},style:function(j){return f(j,c.MapTypeControlStyle,c.MapTypeControlStyle.DEFAULT)}},overviewMapControl:g,overviewMapControlOptions:{opened:g},panControl:g,panControlOptions:{position:e},rotateControl:g,rotateControlOptions:{position:e},scaleControl:g,scaleControlOptions:{position:e},streetViewControl:g,streetViewControlOptions:{position:e},zoomControl:g,zoomControlOptions:{position:e,style:function(j){return f(j,c.ZoomControlStyle,c.ZoomControlStyle.DEFAULT)}}};return d.each(h,function(j,k){if(i[j]===undefined){delete h[j]}else{if(typeof k==="string"){h[j]=i[j](k)}else{d.each(k,function(m,l){if(i[j][m]===undefined){delete h[j][m]}else{h[j][m]=i[j][m](l)}})}}})},_traffic:function(f){var e=this;if(f.layer.traffic==1){if(!e.traffic){e.traffic=new c.TrafficLayer()}e.traffic.setMap(e.map)}else{if(e.traffic){e.traffic.setMap(null)}}},_bicycling:function(f){var e=this;if(f.layer.bicycling==1){if(!e.bicycling){e.bicycling=new c.BicyclingLayer()}e.bicycling.setMap(e.map)}else{if(e.bicycling){e.bicycling.setMap(null)}}},_weather:function(f){var e=this;if(f.layer.weather==1){if(!e.weather){e.weather=new c.weather.WeatherLayer({})}e.weather.setMap(e.map);e.weather.setOptions({temperatureUnits:c.weather.TemperatureUnit[f.weather.temperatureUnits]||c.weather.TemperatureUnit.CELSIUS,windSpeedUnits:c.weather.WindSpeedUnit[f.weather.windSpeedUnits]||c.weather.WindSpeedUnit.METERS_PER_SECOND})}else{if(e.weather){e.weather.setMap(null)}}},_cloud:function(f){var e=this;if(f.layer.cloud==1){if(!e.cloud){e.cloud=new c.weather.CloudLayer()}e.cloud.setMap(e.map)}else{if(e.cloud){e.cloud.setMap(null)}}},_panoramio:function(f){var e=this;if(f.layer.panoramio==1){if(!e.panoramio){e.panoramio=new c.panoramio.PanoramioLayer({})}e.panoramio.setMap(e.map);e.panoramio.setTag(f.panoramio.tag);e.panoramio.setUserId(f.panoramio.userId)}else{if(e.panoramio){e.panoramio.setMap(null)}}},_adsense:function(f){var e=this;if(f.layer.adsense==1&&intergeo_options.adsense.publisher_id&&d.trim(intergeo_options.adsense.publisher_id)!=""){if(!e.adunit){e.adunit=new c.adsense.AdUnit(document.createElement("div"),{visible:true,publisherId:intergeo_options.adsense.publisher_id})}e.adunit.setMap(this.map);e.adunit.setBackgroundColor(f.adsense.backgroundColor);e.adunit.setBorderColor(f.adsense.borderColor);e.adunit.setUrlColor(f.adsense.urlColor);e.adunit.setTitleColor(f.adsense.titleColor);e.adunit.setTextColor(f.adsense.textColor);if(c.ControlPosition[f.adsense.position]!==undefined){e.adunit.setPosition(c.ControlPosition[f.adsense.position])}if(c.adsense.AdFormat[f.adsense.format]){e.adunit.setFormat(c.adsense.AdFormat[f.adsense.format])}}else{if(e.adunit){e.adunit.setMap(null)}}},createDirection:function(){var f=this,e=d("#intergeo_drctn_ppp"),g=e.find(".intergeo_ppp_frm");g.bind("submit.firsttime",function(){var h,i,j,l,k;if(g.attr("data-position")!=""){return false}h=f.direction.length;l=d.trim(g.find("#intergeo_ppp_drctn_from").val());k=d.trim(g.find("#intergeo_ppp_drctn_to").val());if(l==""||k==""){return false}j=d(d("#intergeo_tlbr_drctn_tmpl").html().replaceByHash({"%pos%":h,"%num%":h+1,"%from%":l,"%to%":k,"%mode%":d.trim(g.find("#intergeo_ppp_drctn_mode option:selected").text())}));i=new b.Direction(f,new c.DirectionsRenderer({map:f.map}),j,h);d("#intergeo_tlbr_drctns").append(j);f.direction.push(i);i.update(g);g.unbind("submit.firsttime");return false});g.find('select,input[type!="submit"]').val("");g.attr("data-position","");e.fadeIn(150)},updateOverlays:function(){var e=this;d.each(e.polyline,function(g,f){if(f){d('.intergeo_tlbr_polyline_path[data-position="'+g+'"]').val(f.pathToString())}});d.each(e.polygon,function(g,f){if(f){d('.intergeo_tlbr_polygon_path[data-position="'+g+'"]').val(f.pathToString())}})},preview:function(){var f=this,g={};d.each(d("#intergeo_frm").serializeArray(),function(){var l=/\[\]$/,m=g,j=this.name.replace(l,"").split("_"),e=j.pop(),k=this.value||"",i=l.test(this.name);d.each(j,function(n,o){if(m[o]===undefined){m[o]={}}m=m[o]});if(m[e]!==undefined){if(i){m[e].push(k)}else{m[e]=k}}else{m[e]=i?[k]:k}});f._normalize(g.map);if(d("#intergeo_map_lock_preview").is(":checked")){g.map.draggable=false;g.map.scrollwheel=false}f.map.setOptions(g.map);if(g.styles&&g.styles.type){if(g.styles.type==-1){try{f.map.setOptions({styles:d.parseJSON(g.styles.custom||"[]")})}catch(h){alert(intergeo_options.l10n.error.style)}}else{if(a.Styles[g.styles.type]!==undefined){f.map.setOptions({styles:a.Styles[g.styles.type]})}}}f._traffic(g);f._bicycling(g);f._weather(g);f._cloud(g);f._panoramio(g);f._adsense(g)}};d(document).ready(function(){var g,f,e;f=new a("intergeo_canvas",{center:new c.LatLng(parseFloat(d("#intergeo_map_lat").val()),parseFloat(d("#intergeo_map_lng").val())),zoom:parseInt(d("#intergeo_map_zoom").val()),minZoom:0,maxZoom:19,mapTypeId:c.MapTypeId.ROADMAP});e=d("#intergeo_frm");e.find("input[name], select[name], textarea[name]").change(function(){f.preview()});e.find(".intergeo_tlbr_cntrl_onkeyup").keyup(function(){f.preview()});e.submit(function(){f.updateOverlays();return true});f.preview();d("#intergeo_map_lock_preview").change(function(){var h=d(this).is(":checked");f.map.setOptions({draggable:!h,scrollwheel:!h})});d(".intergeo_tlbr_ul_li_h3").click(function(){var h=d(this).parent();if(h.hasClass("open")){h.removeClass("open")}else{d(".intergeo_tlbr_ul_li.open").removeClass("open");h.addClass("open")}});d(".intergeo_tlbr_cntrl_more_info").click(function(){d(this).parent().nextAll(".intergeo_tlbr_cntrl_dsc:first").toggle();return false});d(".intergeo_tlbr_cntrl_ttl").click(function(){d(this).toggleClass("open").parent().find(".intergeo_tlbr_cntrl_items").toggle();return false});d(".color-picker-hex").wpColorPicker({change:function(){clearTimeout(g);g=setTimeout(function(){f.preview()},500)}});d(".intergeo_tlbr_clr").wpColorPicker();d("#intergeo_show_map_center").change(function(){d("#intergeo_canvas_center").toggle();d.post(intergeo_options.ajaxurl,{action:"intergeo_show_map_center",nonce:intergeo_options.nonce||"",status:d(this).is(":checked")?1:0})});d("#intergeo_tlbr_drawing_tools").change(function(){f.drawing.setDrawingMode(null);f.drawing.setOptions({drawingControl:d(this).is(":checked")})});d(".intergeo_ppp_cls").click(function(){d(this).parents(".intergeo_ppp").fadeOut(150);return false});d("#intergeo_go_to_address").click(function(){d("#intergeo_address_ppp").fadeIn(150);return false});d("#intergeo_address_ppp .intergeo_ppp_frm").submit(function(){var h=d(this),j=h.find(".intergeo_ppp_txt"),i=d.trim(j.val());if(i!=""){if(!f.geocoder){f.geocoder=new c.Geocoder()}f.geocoder.geocode({address:i},function(l,k){if(k==c.GeocoderStatus.OK){f.map.setCenter(l[0].geometry.location)}})}j.val("");h.parents(".intergeo_ppp").fadeOut(150);return false});d(".intregeo_ppp_frm_overlay").submit(function(){var j=d(this),h=parseInt(j.attr("data-position")),i=j.attr("data-target");j.parents(".intergeo_ppp").fadeOut(150);if(f[i]&&f[i][h]){f[i][h].update(j)}return false});d("#intergeo_tlbr_new_drctn").click(function(){f.createDirection();return false})})})(jQuery,google.maps,intergeo.maps);
js/library.js ADDED
@@ -0,0 +1 @@
 
1
+ if(!window.intergeo){intergeo={media:{view:{settings:{}}}}}(function(a){if(!intergeo.media){intergeo.media={view:{settings:{}}}}intergeo.media.view.Map=a.view.MediaFrame.extend({initialize:function(){_.defaults(intergeo.media.view.settings,{tabUrl:a.view.settings.tabUrl});_.defaults(this.options,{map:false,copy:false,state:"iframe:intergeo_map"});a.view.MediaFrame.prototype.initialize.apply(this,arguments);a.view.settings.tabUrl=intergeo.media.view.settings.tabUrl;if(this.options.map){a.view.settings.tabUrl+="&map="+this.options.map}else{if(this.options.copy){a.view.settings.tabUrl+="&copy="+this.options.copy}}this.createIframeStates()}})})(wp.media);(function(b,a){function c(){b(".intergeo_lbrr_map").height(b(".intergeo_lbrr_map").width()*10/16);b(".intergeo_lbrr_map").each(function(){var d=b(this);d.height(d.width()*10/16)})}b(document).ready(function(){c();b(window).resize(c);b(".intergeo_lbrr_code").focus(function(){var d=b(this);d.select().mouseup(function(){d.unbind("mouseup");return false})});b("#intergeo_lbrr_add_new").click(function(){var d=new a({map:false});d.open();return false});b(".intergeo_lbrr_item_edit").click(function(){var d=new a({map:b(this).data("map")});d.open();return false});b(".intergeo_lbrr_item_copy").click(function(){var d=new a({copy:b(this).data("map")});d.open();return false})})})(jQuery,intergeo.media.view.Map);
js/rendering.js ADDED
@@ -0,0 +1 @@
 
1
+ (function(c,b){var a=function(d,f){var e=this;e.map=null;e.container=document.getElementById(d);e.options=f;e.infowindow=null;e._normalizeOptions()};a.styles={DEFAULT:[],RED:[{featureType:"all",stylers:[{hue:"#ff0000"}]}],NIGHT:[{featureType:"all",stylers:[{invert_lightness:"true"}]}],BLUE:[{featureType:"all",stylers:[{hue:"#0000b0"},{invert_lightness:"true"},{saturation:-30}]}],GREYSCALE:[{featureType:"all",stylers:[{saturation:-100},{gamma:0.5}]}],NO_ROADS:[{featureType:"road",stylers:[{visibility:"off"}]}],MIXED:[{featureType:"landscape",stylers:[{hue:"#00dd00"}]},{featureType:"road",stylers:[{hue:"#dd0000"}]},{featureType:"water",stylers:[{hue:"#000040"}]},{featureType:"poi.park",stylers:[{visibility:"off"}]},{featureType:"road.arterial",stylers:[{hue:"#ffff00"}]},{featureType:"road.local",stylers:[{visibility:"off"}]}],CHILLED:[{featureType:"road",elementType:"geometry",stylers:[{visibility:"simplified"}]},{featureType:"road.arterial",stylers:[{hue:149},{saturation:-78},{lightness:0}]},{featureType:"road.highway",stylers:[{hue:-31},{saturation:-40},{lightness:2.8}]},{featureType:"poi",elementType:"label",stylers:[{visibility:"off"}]},{featureType:"landscape",stylers:[{hue:163},{saturation:-26},{lightness:-1.1}]},{featureType:"transit",stylers:[{visibility:"off"}]},{featureType:"water",stylers:[{hue:3},{saturation:-24.24},{lightness:-38.57}]}]};a.prototype={};a.prototype._normalizeOptions=function(){var g=this.options.map||{},f=function(i){return i==="1"},e=function(i,j,k){return j[i]||k},d=function(i){return e(i,b.ControlPosition,0)},h={minZoom:parseInt,maxZoom:parseInt,scrollwheel:f,draggable:f,mapTypeId:function(i){return b.MapTypeId[i]||b.MapTypeId.ROADMAP},mapTypeControl:f,mapTypeControlOptions:{position:d,mapTypeIds:function(i){var j=[];c.each(i,function(k,l){if(b.MapTypeId[l]!==undefined){j.push(b.MapTypeId[l])}});return j},style:function(i){return e(i,b.MapTypeControlStyle,b.MapTypeControlStyle.DEFAULT)}},overviewMapControl:f,overviewMapControlOptions:{opened:f},panControl:f,panControlOptions:{position:d},rotateControl:f,rotateControlOptions:{position:d},scaleControl:f,scaleControlOptions:{position:d},streetViewControl:f,streetViewControlOptions:{position:d},zoomControl:f,zoomControlOptions:{position:d,style:function(i){return e(i,b.ZoomControlStyle,b.ZoomControlStyle.DEFAULT)}}};return c.each(g,function(i,j){if(h[i]===undefined){delete g[i]}else{if(typeof j==="string"){g[i]=h[i](j)}else{c.each(j,function(l,k){if(h[i][l]===undefined){delete g[i][l]}else{g[i][l]=h[i][l](k)}})}}})};a.prototype._getGeocoder=function(){if(!a._geocoder){a._geocoder=new b.Geocoder()}return a._geocoder};a.prototype._renderOverlays=function(){var d=this;c.each(d.options.overlays.marker||[],function(h,g){var f;try{f=new b.Marker({position:new b.LatLng(g.position[0],g.position[1]),map:d.map,title:g.title||"",icon:g.icon||null});b.event.addListener(f,"click",function(){var i,e=c.trim(g.info||"");if(e.length){if(d.infowindow){d.infowindow.close()}i=new b.InfoWindow();i.setContent(e);i.open(d.map,f);d.infowindow=i}})}catch(j){}});c.each(d.options.overlays.polyline||[],function(g,f){var j=[];c.each(f.path||[],function(i,e){if(e.length==2){j.push(new b.LatLng(e[0],e[1]))}});if(j.length>=2){try{new b.Polyline({map:d.map,path:j,strokeColor:f.color||"#000000",strokeOpacity:f.opacity||1,strokeWeight:f.weight||3})}catch(h){}}});c.each(d.options.overlays.polygon||[],function(g,f){var j=[];c.each(f.path||[],function(i,e){if(e.length==2){j.push(new b.LatLng(e[0],e[1]))}});if(j.length>=2){try{new b.Polygon({map:d.map,path:j,strokeColor:f.stroke_color||"#000000",strokeOpacity:f.stroke_opacity||1,strokeWeight:f.weight||3,strokePosition:b.StrokePosition[f.position]||b.StrokePosition.CENTER,fillColor:f.fill_color||"#000000",fillOpacity:f.fill_opacity||0.3})}catch(h){}}});c.each(d.options.overlays.rectangle||[],function(g,f){var j=[];c.each(f.path||[],function(i,e){if(e.length==2){j.push(new b.LatLng(e[0],e[1]))}});if(j.length==2){try{new b.Rectangle({map:d.map,bounds:new b.LatLngBounds(j[0],j[1]),strokeColor:f.stroke_color||"#000000",strokeOpacity:f.stroke_opacity||1,strokeWeight:f.weight||3,strokePosition:b.StrokePosition[f.position]||b.StrokePosition.CENTER,fillColor:f.fill_color||"#000000",fillOpacity:f.fill_opacity||0.3})}catch(h){}}});c.each(d.options.overlays.circle||[],function(g,f){try{new b.Circle({map:d.map,center:new b.LatLng(f.path[0][0],f.path[0][1]),radius:parseFloat(f.path[1][0]),strokeColor:f.stroke_color||"#000000",strokeOpacity:f.stroke_opacity||1,strokeWeight:f.weight||3,strokePosition:b.StrokePosition[f.position]||b.StrokePosition.CENTER,fillColor:f.fill_color||"#000000",fillOpacity:f.fill_opacity||0.3})}catch(h){}})};a.prototype._renderDirections=function(){var e=this,d=new b.DirectionsService();c.each(e.options.directions||[],function(g,f){d.route({origin:f.from,destination:f.to,travelMode:b.TravelMode[f.mode]||b.TravelMode.DRIVING},function(i,h){if(h==b.DirectionsStatus.OK){new b.DirectionsRenderer({map:e.map,directions:i})}})})};a.prototype.render=function(){var d=this,j=d.options.layer||{},i=d.options.weather||{},g=d.options.panoramio||{},k=null,f=d.options.adsense||{};if(!d.container){return false}d.map=new b.Map(d.container,c.extend({center:new b.LatLng(d.options.lat||48.1366069,d.options.lng||11.577085099999977),zoom:d.options.zoom||5,mapTypeId:b.MapTypeId.ROADMAP},d.options.map||{}));if(d.options.styles&&d.options.styles.type){if(d.options.styles.type==-1){try{d.map.setOptions({styles:d.options.styles.custom||[]})}catch(h){}}else{if(a.styles[d.options.styles.type]!==undefined){d.map.setOptions({styles:a.styles[d.options.styles.type]})}}}if(d.options.address){d._getGeocoder().geocode({address:d.options.address},function(l,e){if(e==b.GeocoderStatus.OK){d.map.setCenter(l[0].geometry.location)}})}if(d.options.overlays){d._renderOverlays()}if(d.options.directions){d._renderDirections()}if(j.traffic){(new b.TrafficLayer()).setMap(d.map)}if(j.bicycling){(new b.BicyclingLayer()).setMap(d.map)}if(j.weather){new b.weather.WeatherLayer({map:d.map,temperatureUnits:b.weather.TemperatureUnit[i.temperatureUnits||"CELSIUS"],windSpeedUnits:b.weather.WindSpeedUnit[i.windSpeedUnits||"METERS_PER_SECOND"]})}if(j.cloud){(new b.weather.CloudLayer()).setMap(d.map)}if(j.panoramio){new b.panoramio.PanoramioLayer({map:d.map,tag:g.tag||"",userId:g.userId||""})}if(j.adsense&&intergeo_options.adsense.publisher_id&&c.trim(intergeo_options.adsense.publisher_id)!=""){k=new b.adsense.AdUnit(document.createElement("div"),{map:d.map,visible:true,publisherId:intergeo_options.adsense.publisher_id,backgroundColor:f.backgroundColor||"",borderColor:f.borderColor||"",textColor:f.urlColor||"",titleColor:f.titleColor||"",urlColor:f.textColor||""});if(f.position&&b.ControlPosition[f.position]){k.setPosition(b.ControlPosition[f.position])}if(f.format&&b.adsense.AdFormat[f.format]){k.setFormat(b.adsense.AdFormat[f.format])}}return true};c(document).ready(function(){var d,e,f=window.intergeo_maps||[];for(d=0;d<f.length;d++){e=new a(f[d].container,f[d].options);e.render()}})})(jQuery,google.maps);
languages/intergeo-en_US.mo ADDED
Binary file
languages/intergeo-en_US.po ADDED
@@ -0,0 +1,1016 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Intergeo 1.0\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-02-01 21:40+0300\n"
6
+ "PO-Revision-Date: 2013-02-01 21:40+0300\n"
7
+ "Last-Translator: Eugene Manuilov <eugene@manuilov.org>\n"
8
+ "Language-Team: Intergeo <eugene@manuilov.org>\n"
9
+ "Language: \n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Poedit-Basepath: ./../../\n"
14
+ "X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html__;esc_attr_e;esc_attr__\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-Language: English\n"
17
+ "X-Poedit-Country: UNITED STATES\n"
18
+ "X-Poedit-SearchPath-0: intergeo\n"
19
+
20
+ #: intergeo/index.php:31
21
+ #: intergeo/templates/library/list.php:3
22
+ #: intergeo/templates/iframe/form.php:7
23
+ msgid "Maps"
24
+ msgstr "Maps"
25
+
26
+ #: intergeo/index.php:32
27
+ msgid "Settings"
28
+ msgstr "Settings"
29
+
30
+ #: intergeo/index.php:81
31
+ #, php-format
32
+ msgid "All Maps API applications should load the Maps API using an API key (however it is still possible to use maps without API key). Using an API key enables you to monitor your application's Maps API usage, and ensures that Google can contact you about your application if necessary. If your application's Maps API usage exceeds the %sUsage Limits%s, you must load the Maps API using an API key in order to purchase additional quota. To create your API key:"
33
+ msgstr "All Maps API applications should load the Maps API using an API key (however it is still possible to use maps without API key). Using an API key enables you to monitor your application's Maps API usage, and ensures that Google can contact you about your application if necessary. If your application's Maps API usage exceeds the %sUsage Limits%s, you must load the Maps API using an API key in order to purchase additional quota. To create your API key:"
34
+
35
+ #: intergeo/index.php:84
36
+ #, php-format
37
+ msgid "Visit the APIs Console at %shttps://code.google.com/apis/console%s and log in with your Google Account."
38
+ msgstr "Visit the APIs Console at %shttps://code.google.com/apis/console%s and log in with your Google Account."
39
+
40
+ #: intergeo/index.php:85
41
+ #, php-format
42
+ msgid "Click the %sServices%s link from the left-hand menu."
43
+ msgstr "Click the %sServices%s link from the left-hand menu."
44
+
45
+ #: intergeo/index.php:86
46
+ #, php-format
47
+ msgid "Activate the %sGoogle Maps API v3%s service."
48
+ msgstr "Activate the %sGoogle Maps API v3%s service."
49
+
50
+ #: intergeo/index.php:87
51
+ msgid "Click the %1$sAPI Access%2$s link from the left-hand menu. Your API key is available from the %1$sAPI Access%2$s page, in the %1$Simple API Access%2$s section. Maps API applications use the %1$sKey for browser apps%2$s."
52
+ msgstr "Click the %1$sAPI Access%2$s link from the left-hand menu. Your API key is available from the %1$sAPI Access%2$s page, in the %1$Simple API Access%2$s section. Maps API applications use the %1$sKey for browser apps%2$s."
53
+
54
+ #: intergeo/index.php:94
55
+ #, php-format
56
+ msgid "Adding display ads to your map requires that you have an AdSense account enabled for AdSense for Content. If you don't yet have an AdSense account, %1$ssign up%3$s for one. Once you have done so (or if you already have an account) make sure you've also enabled the account with %2$sAdSense for Content%3$s."
57
+ msgstr "Adding display ads to your map requires that you have an AdSense account enabled for AdSense for Content. If you don't yet have an AdSense account, %1$ssign up%3$s for one. Once you have done so (or if you already have an account) make sure you've also enabled the account with %2$sAdSense for Content%3$s."
58
+
59
+ #: intergeo/index.php:96
60
+ msgid "Once you have an Adsense for Content account, you will have received an AdSense for Content (AFC) publisher ID. This publisher ID is used to link any advertising shown to your AdSense account, allowing you to share in advertising revenue when a user clicks on one of the ads shown on your maps."
61
+ msgstr "Once you have an Adsense for Content account, you will have received an AdSense for Content (AFC) publisher ID. This publisher ID is used to link any advertising shown to your AdSense account, allowing you to share in advertising revenue when a user clicks on one of the ads shown on your maps."
62
+
63
+ #: intergeo/index.php:180
64
+ msgid "Intergeo Maps"
65
+ msgstr "Intergeo Maps"
66
+
67
+ #: intergeo/index.php:217
68
+ #: intergeo/templates/iframe/overlays.php:26
69
+ #: intergeo/templates/iframe/overlays.php:49
70
+ msgid "marker"
71
+ msgstr "marker"
72
+
73
+ #: intergeo/index.php:219
74
+ msgid "Styles are broken. Please, fix it and try again."
75
+ msgstr "Styles are broken. Please, fix it and try again."
76
+
77
+ #: intergeo/index.php:220
78
+ msgid "Direction was not found."
79
+ msgstr "Maps"
80
+
81
+ #: intergeo/index.php:235
82
+ msgid "Insert into post"
83
+ msgstr "Insert into post"
84
+
85
+ #: intergeo/index.php:238
86
+ msgid "Create the map"
87
+ msgstr "Create the map"
88
+
89
+ #: intergeo/index.php:253
90
+ msgid "Update the map"
91
+ msgstr "Update the map"
92
+
93
+ #: intergeo/index.php:621
94
+ msgid "The map has been updated successfully."
95
+ msgstr "The map has been updated successfully."
96
+
97
+ #: intergeo/index.php:622
98
+ msgid "The map has been created successfully."
99
+ msgstr "The map has been created successfully."
100
+
101
+ #: intergeo/index.php:630
102
+ msgid "The map updating failed."
103
+ msgstr "The map updating failed."
104
+
105
+ #: intergeo/index.php:631
106
+ msgid "The map creation failed."
107
+ msgstr "The map creation failed."
108
+
109
+ #: intergeo/index.php:768
110
+ msgid "Overview"
111
+ msgstr "Overview"
112
+
113
+ #: intergeo/index.php:771
114
+ msgid "The library is a list to view all maps you have created in your system. The library is showing you 3x3 grid of maps' previews. You will see the same maps embedded into your posts at front end, as you see here. The library is paginated and if you have more than 9 maps, you will see pagination links under maps grid."
115
+ msgstr "The library is a list to view all maps you have created in your system. The library is showing you 3x3 grid of maps' previews. You will see the same maps embedded into your posts at front end, as you see here. The library is paginated and if you have more than 9 maps, you will see pagination links under maps grid."
116
+
117
+ #: intergeo/index.php:772
118
+ msgid "To create a new map, click on \"Add New\" button next to the page title and map editor popup will appear. In case you want to edit a map, you can click on pencil icon in the right bottom corner of map preview box and edit popup window will appear."
119
+ msgstr "To create a new map, click on \"Add New\" button next to the page title and map editor popup will appear. In case you want to edit a map, you can click on pencil icon in the right bottom corner of map preview box and edit popup window will appear."
120
+
121
+ #: intergeo/index.php:773
122
+ msgid "If you want to delete a map, click on the trash icon in the right bottom corner of a map and confirm your action. Pay attention that whole information about the map will be removed from the system, but all shortcodes will be left where you embed it. However these deprecated shortcodes won't be rendered anymore, so you don't have to worry about it while the plugin is enabled."
123
+ msgstr "If you want to delete a map, click on the trash icon in the right bottom corner of a map and confirm your action. Pay attention that whole information about the map will be removed from the system, but all shortcodes will be left where you embed it. However these deprecated shortcodes won't be rendered anymore, so you don't have to worry about it while the plugin is enabled."
124
+
125
+ #: intergeo/index.php:778
126
+ msgid "Shortcodes"
127
+ msgstr "Shortcodes"
128
+
129
+ #: intergeo/index.php:781
130
+ msgid "You can easily embed a map into your posts, pages, categories or tags descriptions and text widgets by copying shortcode which you can find in the input field of a map preview box."
131
+ msgstr "You can easily embed a map into your posts, pages, categories or tags descriptions and text widgets by copying shortcode which you can find in the input field of a map preview box."
132
+
133
+ #: intergeo/index.php:782
134
+ msgid "To specify a certain address just type it inside a shortcode, and a map will be automatically centered at this place. Also each shortcode could be extended with custom attributes like width, height, style, zoom and hook. Use standard CSS values for such attributes as width, height and style. Type an integer between 0 and 19 for zoom attribute. You can use hook attribute to set up a filter hook which you can use in your custom plugin or theme to configure all options of a map."
135
+ msgstr "To specify a certain address just type it inside a shortcode, and a map will be automatically centered at this place. Also each shortcode could be extended with custom attributes like width, height, style, zoom and hook. Use standard CSS values for such attributes as width, height and style. Type an integer between 0 and 19 for zoom attribute. You can use hook attribute to set up a filter hook which you can use in your custom plugin or theme to configure all options of a map."
136
+
137
+ #: intergeo/index.php:841
138
+ msgid "The map was deleted successfully."
139
+ msgstr "The map was deleted successfully."
140
+
141
+ #: intergeo/templates/library/list.php:4
142
+ msgid "Add New"
143
+ msgstr "Add New"
144
+
145
+ #: intergeo/templates/library/list.php:45
146
+ msgid "Edit"
147
+ msgstr "Edit"
148
+
149
+ #: intergeo/templates/library/list.php:46
150
+ msgid "Copy"
151
+ msgstr "Copy"
152
+
153
+ #: intergeo/templates/library/list.php:47
154
+ msgid "Delete"
155
+ msgstr "Delete"
156
+
157
+ #: intergeo/templates/library/list.php:81
158
+ msgid "You do not have created maps. Start adding it by clicking \"Add New\" button."
159
+ msgstr "You do not have created maps. Start adding it by clicking \"Add New\" button."
160
+
161
+ #: intergeo/templates/iframe/layers.php:1
162
+ msgid "Layers"
163
+ msgstr "Layers"
164
+
165
+ #: intergeo/templates/iframe/layers.php:4
166
+ msgid "Traffic layer"
167
+ msgstr "Traffic layer"
168
+
169
+ #: intergeo/templates/iframe/layers.php:11
170
+ #: intergeo/templates/iframe/layers.php:27
171
+ #: intergeo/templates/iframe/layers.php:103
172
+ #: intergeo/templates/iframe/controls.php:12
173
+ #: intergeo/templates/iframe/controls.php:86
174
+ #: intergeo/templates/iframe/controls.php:148
175
+ #: intergeo/templates/iframe/controls.php:210
176
+ #: intergeo/templates/iframe/controls.php:311
177
+ #: intergeo/templates/iframe/controls.php:373
178
+ #: intergeo/templates/iframe/controls.php:435
179
+ msgid "Enabled"
180
+ msgstr "Enabled"
181
+
182
+ #: intergeo/templates/iframe/layers.php:15
183
+ #, php-format
184
+ msgid "Allows you to add real-time traffic information (where supported) to your map. Traffic information is provided for the time at which the request is made. Consult %s this spreadsheet %s to determine traffic coverage support."
185
+ msgstr "Allows you to add real-time traffic information (where supported) to your map. Traffic information is provided for the time at which the request is made. Consult %s this spreadsheet %s to determine traffic coverage support."
186
+
187
+ #: intergeo/templates/iframe/layers.php:20
188
+ msgid "Bicycling layer"
189
+ msgstr "Bicycling layer"
190
+
191
+ #: intergeo/templates/iframe/layers.php:31
192
+ msgid "Allows you to add bicycle information to your map. It renders a layer of bike paths, suggested bike routes and other overlays specific to bicycling usage on top of the given map. Additionally, the layer alters the style of the base map itself to emphasize streets supporting bicycle routes and de-emphasize streets inappropriate for bicycles."
193
+ msgstr "Allows you to add bicycle information to your map. It renders a layer of bike paths, suggested bike routes and other overlays specific to bicycling usage on top of the given map. Additionally, the layer alters the style of the base map itself to emphasize streets supporting bicycle routes and de-emphasize streets inappropriate for bicycles."
194
+
195
+ #: intergeo/templates/iframe/layers.php:36
196
+ msgid "Weather & Cloud layers"
197
+ msgstr "Weather & Cloud layers"
198
+
199
+ #: intergeo/templates/iframe/layers.php:43
200
+ msgid "Enabled cloud"
201
+ msgstr "Enabled cloud"
202
+
203
+ #: intergeo/templates/iframe/layers.php:47
204
+ msgid "Allows you to add the display of cloud imagery on your map. Enabling the cloud layer will add cloud coverage imagery to your map, visible at low zoom levels."
205
+ msgstr "Allows you to add the display of cloud imagery on your map. Enabling the cloud layer will add cloud coverage imagery to your map, visible at low zoom levels."
206
+
207
+ #: intergeo/templates/iframe/layers.php:54
208
+ msgid "Enabled weather"
209
+ msgstr "Enabled weather"
210
+
211
+ #: intergeo/templates/iframe/layers.php:58
212
+ msgid "Allows you to add the display of weather data on your map. Enabling the weather layer will show current weather conditions from weather.com on your map, including icons that denote sun, clouds, rain and so on."
213
+ msgstr "Allows you to add the display of weather data on your map. Enabling the weather layer will show current weather conditions from weather.com on your map, including icons that denote sun, clouds, rain and so on."
214
+
215
+ #: intergeo/templates/iframe/layers.php:65
216
+ msgid "temperature units"
217
+ msgstr "temperature units"
218
+
219
+ #: intergeo/templates/iframe/layers.php:68
220
+ msgid "Celsius"
221
+ msgstr "Celsius"
222
+
223
+ #: intergeo/templates/iframe/layers.php:71
224
+ msgid "Fahrenheit"
225
+ msgstr "Fahrenheit"
226
+
227
+ #: intergeo/templates/iframe/layers.php:78
228
+ msgid "wind speed units"
229
+ msgstr "wind speed units"
230
+
231
+ #: intergeo/templates/iframe/layers.php:81
232
+ msgid "kilometers per hour"
233
+ msgstr "kilometers per hour"
234
+
235
+ #: intergeo/templates/iframe/layers.php:84
236
+ msgid "meters per second"
237
+ msgstr "meters per second"
238
+
239
+ #: intergeo/templates/iframe/layers.php:87
240
+ msgid "miles per hour"
241
+ msgstr "miles per hour"
242
+
243
+ #: intergeo/templates/iframe/layers.php:96
244
+ msgid "Panoramio layer"
245
+ msgstr "Panoramio layer"
246
+
247
+ #: intergeo/templates/iframe/layers.php:107
248
+ msgid "Allows you to add photos from Panoramio as a layer to your map. It renders a layer of geotagged photo icons from Panoramio on the map as a series of large and small photo icons."
249
+ msgstr "Allows you to add photos from Panoramio as a layer to your map. It renders a layer of geotagged photo icons from Panoramio on the map as a series of large and small photo icons."
250
+
251
+ #: intergeo/templates/iframe/layers.php:111
252
+ msgid "Restricting photos by tag"
253
+ msgstr "Restricting photos by tag"
254
+
255
+ #: intergeo/templates/iframe/layers.php:115
256
+ msgid "Allows you to restrict the set of photos to display on the map to those matching a certain textual tag."
257
+ msgstr "Allows you to restrict the set of photos to display on the map to those matching a certain textual tag."
258
+
259
+ #: intergeo/templates/iframe/layers.php:119
260
+ msgid "Restricting photos by user id"
261
+ msgstr "Restricting photos by user id"
262
+
263
+ #: intergeo/templates/iframe/layers.php:123
264
+ msgid "Allows you to restrict the set of photos to display on the map to those matching a particular user."
265
+ msgstr "Allows you to restrict the set of photos to display on the map to those matching a particular user."
266
+
267
+ #: intergeo/templates/iframe/form.php:34
268
+ msgid "The center of the map"
269
+ msgstr "The center of the map"
270
+
271
+ #: intergeo/templates/iframe/form.php:37
272
+ msgid "Go to addrses"
273
+ msgstr "Go to addrses"
274
+
275
+ #: intergeo/templates/iframe/overlays.php:1
276
+ msgid "Overlays"
277
+ msgstr "Overlays"
278
+
279
+ #: intergeo/templates/iframe/overlays.php:5
280
+ msgid "Drawing tools allows you to add overlays over the map. You can add markers, polylines, polygons, circles and rectangles. To enable drawing tools just put a tick in the checkbox below."
281
+ msgstr "Drawing tools allows you to add overlays over the map. You can add markers, polylines, polygons, circles and rectangles. To enable drawing tools just put a tick in the checkbox below."
282
+
283
+ #: intergeo/templates/iframe/overlays.php:8
284
+ msgid "To delete a marker, just double click on it and an item will be removed."
285
+ msgstr "To delete a marker, just double click on it and an item will be removed."
286
+
287
+ #: intergeo/templates/iframe/overlays.php:16
288
+ msgid "Enable drawing tools"
289
+ msgstr "Enable drawing tools"
290
+
291
+ #: intergeo/templates/iframe/overlays.php:34
292
+ #: intergeo/templates/iframe/overlays.php:60
293
+ msgid "Delete marker"
294
+ msgstr "Delete marker"
295
+
296
+ #: intergeo/templates/iframe/overlays.php:35
297
+ #: intergeo/templates/iframe/overlays.php:61
298
+ msgid "Edit marker"
299
+ msgstr "Edit marker"
300
+
301
+ #: intergeo/templates/iframe/overlays.php:41
302
+ msgid "Markers"
303
+ msgstr "Markers"
304
+
305
+ #: intergeo/templates/iframe/overlays.php:74
306
+ #: intergeo/templates/iframe/overlays.php:102
307
+ msgid "polyline"
308
+ msgstr "polyline"
309
+
310
+ #: intergeo/templates/iframe/overlays.php:82
311
+ #: intergeo/templates/iframe/overlays.php:110
312
+ msgid "Delete polyline"
313
+ msgstr "Delete polyline"
314
+
315
+ #: intergeo/templates/iframe/overlays.php:83
316
+ #: intergeo/templates/iframe/overlays.php:111
317
+ msgid "Edit polyline"
318
+ msgstr "Edit polyline"
319
+
320
+ #: intergeo/templates/iframe/overlays.php:90
321
+ msgid "Polylines"
322
+ msgstr "Polylines"
323
+
324
+ #: intergeo/templates/iframe/overlays.php:126
325
+ #: intergeo/templates/iframe/overlays.php:171
326
+ msgid "rectangle"
327
+ msgstr "Maps"
328
+
329
+ #: intergeo/templates/iframe/overlays.php:137
330
+ #: intergeo/templates/iframe/overlays.php:182
331
+ #: intergeo/templates/iframe/overlays.php:210
332
+ msgid "Delete rectangle"
333
+ msgstr "Delete rectangle"
334
+
335
+ #: intergeo/templates/iframe/overlays.php:138
336
+ #: intergeo/templates/iframe/overlays.php:183
337
+ #: intergeo/templates/iframe/overlays.php:211
338
+ msgid "Edit rectangle"
339
+ msgstr "Edit rectangle"
340
+
341
+ #: intergeo/templates/iframe/overlays.php:146
342
+ msgid "Rectangles"
343
+ msgstr "Rectangles"
344
+
345
+ #: intergeo/templates/iframe/overlays.php:199
346
+ #: intergeo/templates/iframe/overlays.php:244
347
+ msgid "circle"
348
+ msgstr "circle"
349
+
350
+ #: intergeo/templates/iframe/overlays.php:219
351
+ msgid "Circles"
352
+ msgstr "Circles"
353
+
354
+ #: intergeo/templates/iframe/overlays.php:255
355
+ msgid "Delete circle"
356
+ msgstr "Delete circle"
357
+
358
+ #: intergeo/templates/iframe/overlays.php:256
359
+ msgid "Edit circle"
360
+ msgstr "Edit circle"
361
+
362
+ #: intergeo/templates/iframe/overlays.php:272
363
+ #: intergeo/templates/iframe/overlays.php:317
364
+ msgid "polygon"
365
+ msgstr "polygon"
366
+
367
+ #: intergeo/templates/iframe/overlays.php:283
368
+ #: intergeo/templates/iframe/overlays.php:328
369
+ msgid "Delete polygon"
370
+ msgstr "Delete polygon"
371
+
372
+ #: intergeo/templates/iframe/overlays.php:284
373
+ #: intergeo/templates/iframe/overlays.php:329
374
+ msgid "Edit polygon"
375
+ msgstr "Edit polygon"
376
+
377
+ #: intergeo/templates/iframe/overlays.php:292
378
+ msgid "Polygons"
379
+ msgstr "Polygons"
380
+
381
+ #: intergeo/templates/iframe/positioning.php:1
382
+ msgid "Positioning & Zooming"
383
+ msgstr "Positioning & Zooming"
384
+
385
+ #: intergeo/templates/iframe/positioning.php:5
386
+ msgid "If you want to set specific map position and certain level of zooming, just set it up on preview map and these settings will be remembered at published map."
387
+ msgstr "If you want to set specific map position and certain level of zooming, just set it up on preview map and these settings will be remembered at published map."
388
+
389
+ #: intergeo/templates/iframe/positioning.php:9
390
+ msgid "Positioning"
391
+ msgstr "Positioning"
392
+
393
+ #: intergeo/templates/iframe/positioning.php:12
394
+ msgid "The initial map type"
395
+ msgstr "The initial map type"
396
+
397
+ #: intergeo/templates/iframe/positioning.php:15
398
+ #: intergeo/templates/iframe/controls.php:280
399
+ msgid "Road map"
400
+ msgstr "Road map"
401
+
402
+ #: intergeo/templates/iframe/positioning.php:18
403
+ #: intergeo/templates/iframe/controls.php:286
404
+ msgid "Terrain"
405
+ msgstr "Terrain"
406
+
407
+ #: intergeo/templates/iframe/positioning.php:21
408
+ #: intergeo/templates/iframe/controls.php:292
409
+ msgid "Satellite"
410
+ msgstr "Satellite"
411
+
412
+ #: intergeo/templates/iframe/positioning.php:24
413
+ #: intergeo/templates/iframe/controls.php:298
414
+ msgid "Hybrid"
415
+ msgstr "Hybrid"
416
+
417
+ #: intergeo/templates/iframe/positioning.php:33
418
+ msgid "Draggable map"
419
+ msgstr "Draggable map"
420
+
421
+ #: intergeo/templates/iframe/positioning.php:37
422
+ msgid "If unchecked prevents the map from being dragged. Dragging is enabled by default."
423
+ msgstr "If unchecked prevents the map from being dragged. Dragging is enabled by default."
424
+
425
+ #: intergeo/templates/iframe/positioning.php:42
426
+ msgid "Zooming"
427
+ msgstr "Zooming"
428
+
429
+ #: intergeo/templates/iframe/positioning.php:46
430
+ msgid "Zoom range values"
431
+ msgstr "Zoom range values"
432
+
433
+ #: intergeo/templates/iframe/positioning.php:59
434
+ msgid "The maximum (19) and minimum (0) zoom levels which could be displayed on the map."
435
+ msgstr "The maximum (19) and minimum (0) zoom levels which could be displayed on the map."
436
+
437
+ #: intergeo/templates/iframe/positioning.php:66
438
+ msgid "Scrollwheel zooming"
439
+ msgstr "Scrollwheel zooming"
440
+
441
+ #: intergeo/templates/iframe/positioning.php:70
442
+ msgid "Determines if scrollwheel zooming is enabled on the map."
443
+ msgstr "Determines if scrollwheel zooming is enabled on the map."
444
+
445
+ #: intergeo/templates/iframe/positioning.php:75
446
+ msgid "Preview settings"
447
+ msgstr "Preview settings"
448
+
449
+ #: intergeo/templates/iframe/positioning.php:81
450
+ msgid "Lock preview"
451
+ msgstr "Lock preview"
452
+
453
+ #: intergeo/templates/iframe/positioning.php:85
454
+ msgid "Lock preview map to preserve changing of the viewport bounds and zoom level. Locking affects only on preview map and won't lock embedded map."
455
+ msgstr "Lock preview map to preserve changing of the viewport bounds and zoom level. Locking affects only on preview map and won't lock embedded map."
456
+
457
+ #: intergeo/templates/iframe/positioning.php:91
458
+ msgid "Show map center"
459
+ msgstr "Show map center"
460
+
461
+ #: intergeo/templates/iframe/positioning.php:95
462
+ msgid "Show small red circle at the center of the map. It helps you to centralize the map bounds. Note that this option won't be displayed at frontend."
463
+ msgstr "Show small red circle at the center of the map. It helps you to centralize the map bounds. Note that this option won't be displayed at frontend."
464
+
465
+ #: intergeo/templates/iframe/styles.php:1
466
+ #: intergeo/templates/iframe/adsense.php:128
467
+ msgid "Styles"
468
+ msgstr "Styles"
469
+
470
+ #: intergeo/templates/iframe/styles.php:4
471
+ msgid "Container's Styles"
472
+ msgstr "Container's Styles"
473
+
474
+ #: intergeo/templates/iframe/styles.php:7
475
+ msgid "Width"
476
+ msgstr "Width"
477
+
478
+ #: intergeo/templates/iframe/styles.php:11
479
+ msgid "Height"
480
+ msgstr "Height"
481
+
482
+ #: intergeo/templates/iframe/styles.php:15
483
+ msgid "Extra Styles"
484
+ msgstr "Extra Styles"
485
+
486
+ #: intergeo/templates/iframe/styles.php:21
487
+ msgid "Predefined Map Styles"
488
+ msgstr "Predefined Map Styles"
489
+
490
+ #: intergeo/templates/iframe/styles.php:66
491
+ msgid "Custom Map Styles"
492
+ msgstr "Custom Map Styles"
493
+
494
+ #: intergeo/templates/iframe/styles.php:72
495
+ msgid "Use custom styles"
496
+ msgstr "Use custom styles"
497
+
498
+ #: intergeo/templates/iframe/styles.php:79
499
+ #, php-format
500
+ msgid "Creating styles by hand and testing your code to see how they look is potentially time-consuming. Instead, you can use the %sStyled Map Wizard%s to set up the JSON for your map's styles."
501
+ msgstr "Creating styles by hand and testing your code to see how they look is potentially time-consuming. Instead, you can use the %sStyled Map Wizard%s to set up the JSON for your map's styles."
502
+
503
+ #: intergeo/templates/iframe/controls.php:2
504
+ msgid "Controls"
505
+ msgstr "Controls"
506
+
507
+ #: intergeo/templates/iframe/controls.php:5
508
+ msgid "Zoom control"
509
+ msgstr "Zoom control"
510
+
511
+ #: intergeo/templates/iframe/controls.php:16
512
+ msgid "The Zoom control displays a slider (for large maps) or small \"+/-\" buttons (for small maps) to control the zoom level of the map. This control appears by default in the top left corner of the map on non-touch devices or in the bottom left corner on touch devices."
513
+ msgstr "The Zoom control displays a slider (for large maps) or small \"+/-\" buttons (for small maps) to control the zoom level of the map. This control appears by default in the top left corner of the map on non-touch devices or in the bottom left corner on touch devices."
514
+
515
+ #: intergeo/templates/iframe/controls.php:22
516
+ #: intergeo/templates/iframe/controls.php:96
517
+ #: intergeo/templates/iframe/controls.php:158
518
+ #: intergeo/templates/iframe/controls.php:220
519
+ #: intergeo/templates/iframe/controls.php:321
520
+ #: intergeo/templates/iframe/controls.php:383
521
+ #: intergeo/templates/iframe/adsense.php:84
522
+ msgid "default position"
523
+ msgstr "default position"
524
+
525
+ #: intergeo/templates/iframe/controls.php:24
526
+ #: intergeo/templates/iframe/controls.php:98
527
+ #: intergeo/templates/iframe/controls.php:160
528
+ #: intergeo/templates/iframe/controls.php:222
529
+ #: intergeo/templates/iframe/controls.php:323
530
+ #: intergeo/templates/iframe/controls.php:385
531
+ #: intergeo/templates/iframe/adsense.php:86
532
+ msgid "Top Left"
533
+ msgstr "Top Left"
534
+
535
+ #: intergeo/templates/iframe/controls.php:27
536
+ #: intergeo/templates/iframe/controls.php:101
537
+ #: intergeo/templates/iframe/controls.php:163
538
+ #: intergeo/templates/iframe/controls.php:225
539
+ #: intergeo/templates/iframe/controls.php:326
540
+ #: intergeo/templates/iframe/controls.php:388
541
+ #: intergeo/templates/iframe/adsense.php:89
542
+ msgid "Top Center"
543
+ msgstr "Top Center"
544
+
545
+ #: intergeo/templates/iframe/controls.php:30
546
+ #: intergeo/templates/iframe/controls.php:104
547
+ #: intergeo/templates/iframe/controls.php:166
548
+ #: intergeo/templates/iframe/controls.php:228
549
+ #: intergeo/templates/iframe/controls.php:329
550
+ #: intergeo/templates/iframe/controls.php:391
551
+ #: intergeo/templates/iframe/adsense.php:92
552
+ msgid "Top Right"
553
+ msgstr "Top Right"
554
+
555
+ #: intergeo/templates/iframe/controls.php:33
556
+ #: intergeo/templates/iframe/controls.php:107
557
+ #: intergeo/templates/iframe/controls.php:169
558
+ #: intergeo/templates/iframe/controls.php:231
559
+ #: intergeo/templates/iframe/controls.php:332
560
+ #: intergeo/templates/iframe/controls.php:394
561
+ #: intergeo/templates/iframe/adsense.php:95
562
+ msgid "Right Top"
563
+ msgstr "Right Top"
564
+
565
+ #: intergeo/templates/iframe/controls.php:36
566
+ #: intergeo/templates/iframe/controls.php:110
567
+ #: intergeo/templates/iframe/controls.php:172
568
+ #: intergeo/templates/iframe/controls.php:234
569
+ #: intergeo/templates/iframe/controls.php:335
570
+ #: intergeo/templates/iframe/controls.php:397
571
+ #: intergeo/templates/iframe/adsense.php:98
572
+ msgid "Right Center"
573
+ msgstr "Right Center"
574
+
575
+ #: intergeo/templates/iframe/controls.php:39
576
+ #: intergeo/templates/iframe/controls.php:113
577
+ #: intergeo/templates/iframe/controls.php:175
578
+ #: intergeo/templates/iframe/controls.php:237
579
+ #: intergeo/templates/iframe/controls.php:338
580
+ #: intergeo/templates/iframe/controls.php:400
581
+ #: intergeo/templates/iframe/adsense.php:101
582
+ msgid "Right Bottom"
583
+ msgstr "Right Bottom"
584
+
585
+ #: intergeo/templates/iframe/controls.php:42
586
+ #: intergeo/templates/iframe/controls.php:116
587
+ #: intergeo/templates/iframe/controls.php:178
588
+ #: intergeo/templates/iframe/controls.php:240
589
+ #: intergeo/templates/iframe/controls.php:341
590
+ #: intergeo/templates/iframe/controls.php:403
591
+ #: intergeo/templates/iframe/adsense.php:104
592
+ msgid "Bottom Right"
593
+ msgstr "Bottom Right"
594
+
595
+ #: intergeo/templates/iframe/controls.php:45
596
+ #: intergeo/templates/iframe/controls.php:119
597
+ #: intergeo/templates/iframe/controls.php:181
598
+ #: intergeo/templates/iframe/controls.php:243
599
+ #: intergeo/templates/iframe/controls.php:344
600
+ #: intergeo/templates/iframe/controls.php:406
601
+ #: intergeo/templates/iframe/adsense.php:107
602
+ msgid "Bottom Center"
603
+ msgstr "Bottom Center"
604
+
605
+ #: intergeo/templates/iframe/controls.php:48
606
+ #: intergeo/templates/iframe/controls.php:122
607
+ #: intergeo/templates/iframe/controls.php:184
608
+ #: intergeo/templates/iframe/controls.php:246
609
+ #: intergeo/templates/iframe/controls.php:347
610
+ #: intergeo/templates/iframe/controls.php:409
611
+ #: intergeo/templates/iframe/adsense.php:110
612
+ msgid "Bottom Left"
613
+ msgstr "Bottom Left"
614
+
615
+ #: intergeo/templates/iframe/controls.php:51
616
+ #: intergeo/templates/iframe/controls.php:125
617
+ #: intergeo/templates/iframe/controls.php:187
618
+ #: intergeo/templates/iframe/controls.php:249
619
+ #: intergeo/templates/iframe/controls.php:350
620
+ #: intergeo/templates/iframe/controls.php:412
621
+ #: intergeo/templates/iframe/adsense.php:113
622
+ msgid "Left Bottom"
623
+ msgstr "Left Bottom"
624
+
625
+ #: intergeo/templates/iframe/controls.php:54
626
+ #: intergeo/templates/iframe/controls.php:128
627
+ #: intergeo/templates/iframe/controls.php:190
628
+ #: intergeo/templates/iframe/controls.php:252
629
+ #: intergeo/templates/iframe/controls.php:353
630
+ #: intergeo/templates/iframe/controls.php:415
631
+ #: intergeo/templates/iframe/adsense.php:116
632
+ msgid "Left Center"
633
+ msgstr "Left Center"
634
+
635
+ #: intergeo/templates/iframe/controls.php:57
636
+ #: intergeo/templates/iframe/controls.php:131
637
+ #: intergeo/templates/iframe/controls.php:193
638
+ #: intergeo/templates/iframe/controls.php:255
639
+ #: intergeo/templates/iframe/controls.php:356
640
+ #: intergeo/templates/iframe/controls.php:418
641
+ #: intergeo/templates/iframe/adsense.php:119
642
+ msgid "Left Top"
643
+ msgstr "Left Top"
644
+
645
+ #: intergeo/templates/iframe/controls.php:64
646
+ #: intergeo/templates/iframe/controls.php:262
647
+ msgid "default style"
648
+ msgstr "default style"
649
+
650
+ #: intergeo/templates/iframe/controls.php:67
651
+ msgid "small"
652
+ msgstr "small"
653
+
654
+ #: intergeo/templates/iframe/controls.php:70
655
+ msgid "large"
656
+ msgstr "large"
657
+
658
+ #: intergeo/templates/iframe/controls.php:79
659
+ msgid "Pan control"
660
+ msgstr "Pan control"
661
+
662
+ #: intergeo/templates/iframe/controls.php:90
663
+ msgid "The Pan control displays buttons for panning the map. This control appears by default in the top left corner of the map on non-touch devices. The Pan control also allows you to rotate 45° imagery, if available."
664
+ msgstr "The Pan control displays buttons for panning the map. This control appears by default in the top left corner of the map on non-touch devices. The Pan control also allows you to rotate 45° imagery, if available."
665
+
666
+ #: intergeo/templates/iframe/controls.php:141
667
+ msgid "Scale control"
668
+ msgstr "Scale control"
669
+
670
+ #: intergeo/templates/iframe/controls.php:152
671
+ msgid "The Scale control displays a map scale element. This control is not enabled by default."
672
+ msgstr "The Scale control displays a map scale element. This control is not enabled by default."
673
+
674
+ #: intergeo/templates/iframe/controls.php:203
675
+ msgid "MapType control"
676
+ msgstr "MapType control"
677
+
678
+ #: intergeo/templates/iframe/controls.php:214
679
+ msgid "The MapType control lets the user toggle between map types (such as roadmap and satellite). This control appears by default in the top right corner of the map."
680
+ msgstr "The MapType control lets the user toggle between map types (such as roadmap and satellite). This control appears by default in the top right corner of the map."
681
+
682
+ #: intergeo/templates/iframe/controls.php:265
683
+ msgid "dropdown menu"
684
+ msgstr "dropdown menu"
685
+
686
+ #: intergeo/templates/iframe/controls.php:268
687
+ msgid "horizontal bar"
688
+ msgstr "horizontal bar"
689
+
690
+ #: intergeo/templates/iframe/controls.php:275
691
+ msgid "Map types:"
692
+ msgstr "Map types:"
693
+
694
+ #: intergeo/templates/iframe/controls.php:278
695
+ msgid "This map type displays a normal street map."
696
+ msgstr "This map type displays a normal street map."
697
+
698
+ #: intergeo/templates/iframe/controls.php:284
699
+ msgid "This map type displays maps with physical features such as terrain and vegetation."
700
+ msgstr "This map type displays maps with physical features such as terrain and vegetation."
701
+
702
+ #: intergeo/templates/iframe/controls.php:290
703
+ msgid "This map type displays satellite images."
704
+ msgstr "This map type displays satellite images."
705
+
706
+ #: intergeo/templates/iframe/controls.php:296
707
+ msgid "This map type displays a transparent layer of major streets on satellite images."
708
+ msgstr "This map type displays a transparent layer of major streets on satellite images."
709
+
710
+ #: intergeo/templates/iframe/controls.php:304
711
+ msgid "Street View control"
712
+ msgstr "Street View control"
713
+
714
+ #: intergeo/templates/iframe/controls.php:315
715
+ msgid "The Street View control contains a Pegman icon which can be dragged onto the map to enable Street View. This control appears by default in the top left corner of the map."
716
+ msgstr "The Street View control contains a Pegman icon which can be dragged onto the map to enable Street View. This control appears by default in the top left corner of the map."
717
+
718
+ #: intergeo/templates/iframe/controls.php:366
719
+ msgid "Rotate control"
720
+ msgstr "Rotate control"
721
+
722
+ #: intergeo/templates/iframe/controls.php:377
723
+ msgid "The Rotate control contains a small circular icon which allows you to rotate maps containing oblique imagery. This control appears by default in the top left corner of the map."
724
+ msgstr "The Rotate control contains a small circular icon which allows you to rotate maps containing oblique imagery. This control appears by default in the top left corner of the map."
725
+
726
+ #: intergeo/templates/iframe/controls.php:428
727
+ msgid "Overview Map control"
728
+ msgstr "Overview Map control"
729
+
730
+ #: intergeo/templates/iframe/controls.php:439
731
+ msgid "The Overview Map control displays a thumbnail overview map reflecting the current map viewport within a wider area. This control appears by default in the bottom right corner of the map, and is by default shown in its collapsed state."
732
+ msgstr "The Overview Map control displays a thumbnail overview map reflecting the current map viewport within a wider area. This control appears by default in the bottom right corner of the map, and is by default shown in its collapsed state."
733
+
734
+ #: intergeo/templates/iframe/controls.php:445
735
+ msgid "Opened"
736
+ msgstr "Opened"
737
+
738
+ #: intergeo/templates/iframe/popups.php:5
739
+ msgid "Go To Address"
740
+ msgstr "Go To Address"
741
+
742
+ #: intergeo/templates/iframe/popups.php:10
743
+ msgid "Type an address you want to go to"
744
+ msgstr "Type an address you want to go to"
745
+
746
+ #: intergeo/templates/iframe/popups.php:13
747
+ msgid "Go"
748
+ msgstr "Go"
749
+
750
+ #: intergeo/templates/iframe/popups.php:24
751
+ msgid "Marker Options"
752
+ msgstr "Marker Options"
753
+
754
+ #: intergeo/templates/iframe/popups.php:31
755
+ #: intergeo/templates/iframe/popups.php:32
756
+ msgid "Enter title"
757
+ msgstr "Enter title"
758
+
759
+ #: intergeo/templates/iframe/popups.php:39
760
+ #: intergeo/templates/iframe/popups.php:40
761
+ msgid "Enter icon URL"
762
+ msgstr "Enter icon URL"
763
+
764
+ #: intergeo/templates/iframe/popups.php:47
765
+ #: intergeo/templates/iframe/popups.php:48
766
+ msgid "Enter html for info window"
767
+ msgstr "Enter html for info window"
768
+
769
+ #: intergeo/templates/iframe/popups.php:54
770
+ #: intergeo/templates/iframe/popups.php:89
771
+ #: intergeo/templates/iframe/popups.php:157
772
+ msgid "Update"
773
+ msgstr "Update"
774
+
775
+ #: intergeo/templates/iframe/popups.php:65
776
+ msgid "Polyline Options"
777
+ msgstr "Polyline Options"
778
+
779
+ #: intergeo/templates/iframe/popups.php:72
780
+ #: intergeo/templates/iframe/popups.php:73
781
+ #: intergeo/templates/iframe/popups.php:112
782
+ #: intergeo/templates/iframe/popups.php:113
783
+ msgid "Stroke weight in pixel"
784
+ msgstr "Stroke weight in pixel"
785
+
786
+ #: intergeo/templates/iframe/popups.php:78
787
+ #: intergeo/templates/iframe/popups.php:79
788
+ #: intergeo/templates/iframe/popups.php:118
789
+ #: intergeo/templates/iframe/popups.php:119
790
+ msgid "Stroke opacity from 0.0 to 1.0"
791
+ msgstr "Stroke opacity from 0.0 to 1.0"
792
+
793
+ #: intergeo/templates/iframe/popups.php:100
794
+ msgid "Polygon Options"
795
+ msgstr "Polygon Options"
796
+
797
+ #: intergeo/templates/iframe/popups.php:105
798
+ msgid "Stroke options"
799
+ msgstr "Stroke options"
800
+
801
+ #: intergeo/templates/iframe/popups.php:125
802
+ msgid "stroke position"
803
+ msgstr "stroke position"
804
+
805
+ #: intergeo/templates/iframe/popups.php:126
806
+ msgid "center"
807
+ msgstr "center"
808
+
809
+ #: intergeo/templates/iframe/popups.php:127
810
+ msgid "inside the object"
811
+ msgstr "inside the object"
812
+
813
+ #: intergeo/templates/iframe/popups.php:128
814
+ msgid "outside the object"
815
+ msgstr "outside the object"
816
+
817
+ #: intergeo/templates/iframe/popups.php:139
818
+ msgid "Fill options"
819
+ msgstr "Fill options"
820
+
821
+ #: intergeo/templates/iframe/popups.php:146
822
+ #: intergeo/templates/iframe/popups.php:147
823
+ msgid "Fill opacity from 0.0 to 1.0"
824
+ msgstr "Fill opacity from 0.0 to 1.0"
825
+
826
+ #: intergeo/templates/iframe/popups.php:168
827
+ msgid "Direction Options"
828
+ msgstr "Direction Options"
829
+
830
+ #: intergeo/templates/iframe/popups.php:175
831
+ #: intergeo/templates/iframe/popups.php:176
832
+ msgid "The start location from which to calculate directions"
833
+ msgstr "The start location from which to calculate directions"
834
+
835
+ #: intergeo/templates/iframe/popups.php:183
836
+ #: intergeo/templates/iframe/popups.php:184
837
+ msgid "The end location to which to calculate directions"
838
+ msgstr "The end location to which to calculate directions"
839
+
840
+ #: intergeo/templates/iframe/popups.php:190
841
+ #: intergeo/templates/iframe/directions.php:60
842
+ msgid "via standard driving directions"
843
+ msgstr "via standard driving directions"
844
+
845
+ #: intergeo/templates/iframe/popups.php:191
846
+ #: intergeo/templates/iframe/directions.php:50
847
+ msgid "via bicycle paths & preferred streets"
848
+ msgstr "via bicycle paths & preferred streets"
849
+
850
+ #: intergeo/templates/iframe/popups.php:192
851
+ #: intergeo/templates/iframe/directions.php:53
852
+ msgid "via public transit routes"
853
+ msgstr "via public transit routes"
854
+
855
+ #: intergeo/templates/iframe/popups.php:193
856
+ #: intergeo/templates/iframe/directions.php:56
857
+ msgid "via pedestrian paths & sidewalks"
858
+ msgstr "via pedestrian paths & sidewalks"
859
+
860
+ #: intergeo/templates/iframe/popups.php:199
861
+ msgid "Save"
862
+ msgstr "Save"
863
+
864
+ #: intergeo/templates/iframe/adsense.php:1
865
+ msgid "AdSense Integration"
866
+ msgstr "AdSense Integration"
867
+
868
+ #: intergeo/templates/iframe/adsense.php:6
869
+ #, php-format
870
+ msgid "To make AdSense working on your maps, you have to setup your publisher ID. You can do it at the %ssettings page%s."
871
+ msgstr "To make AdSense working on your maps, you have to setup your publisher ID. You can do it at the %ssettings page%s."
872
+
873
+ #: intergeo/templates/iframe/adsense.php:24
874
+ msgid "default format"
875
+ msgstr "default format"
876
+
877
+ #: intergeo/templates/iframe/adsense.php:27
878
+ msgid "Leaderboard"
879
+ msgstr "Leaderboard"
880
+
881
+ #: intergeo/templates/iframe/adsense.php:30
882
+ msgid "Banner"
883
+ msgstr "Banner"
884
+
885
+ #: intergeo/templates/iframe/adsense.php:33
886
+ msgid "Half Banner"
887
+ msgstr "Half Banner"
888
+
889
+ #: intergeo/templates/iframe/adsense.php:36
890
+ msgid "Skyscraper"
891
+ msgstr "Skyscraper"
892
+
893
+ #: intergeo/templates/iframe/adsense.php:39
894
+ msgid "Wide Skyscraper"
895
+ msgstr "Wide Skyscraper"
896
+
897
+ #: intergeo/templates/iframe/adsense.php:42
898
+ msgid "Vertical Banner"
899
+ msgstr "Vertical Banner"
900
+
901
+ #: intergeo/templates/iframe/adsense.php:45
902
+ msgid "Button"
903
+ msgstr "Button"
904
+
905
+ #: intergeo/templates/iframe/adsense.php:48
906
+ msgid "Small Square"
907
+ msgstr "Small Square"
908
+
909
+ #: intergeo/templates/iframe/adsense.php:51
910
+ msgid "Square"
911
+ msgstr "Square"
912
+
913
+ #: intergeo/templates/iframe/adsense.php:54
914
+ msgid "Small Rectangle"
915
+ msgstr "Small Rectangle"
916
+
917
+ #: intergeo/templates/iframe/adsense.php:57
918
+ msgid "Medium Rectangle"
919
+ msgstr "Medium Rectangle"
920
+
921
+ #: intergeo/templates/iframe/adsense.php:60
922
+ msgid "Large Rectangle"
923
+ msgstr "Large Rectangle"
924
+
925
+ #: intergeo/templates/iframe/adsense.php:63
926
+ msgid "Small Vertical Link Unit"
927
+ msgstr "Small Vertical Link Unit"
928
+
929
+ #: intergeo/templates/iframe/adsense.php:66
930
+ msgid "Medium Vertical Link Unit"
931
+ msgstr "Medium Vertical Link Unit"
932
+
933
+ #: intergeo/templates/iframe/adsense.php:69
934
+ msgid "Large Vertical Link Unit"
935
+ msgstr "Large Vertical Link Unit"
936
+
937
+ #: intergeo/templates/iframe/adsense.php:72
938
+ msgid "Extra Large Vertical Link Unit"
939
+ msgstr "Extra Large Vertical Link Unit"
940
+
941
+ #: intergeo/templates/iframe/adsense.php:75
942
+ msgid "Small Horizontal Link Unit"
943
+ msgstr "Small Horizontal Link Unit"
944
+
945
+ #: intergeo/templates/iframe/adsense.php:78
946
+ msgid "Large Horizontal Link Unit"
947
+ msgstr "Large Horizontal Link Unit"
948
+
949
+ #: intergeo/templates/iframe/adsense.php:131
950
+ msgid "Background color"
951
+ msgstr "Background color"
952
+
953
+ #: intergeo/templates/iframe/adsense.php:134
954
+ #: intergeo/templates/iframe/adsense.php:140
955
+ #: intergeo/templates/iframe/adsense.php:146
956
+ #: intergeo/templates/iframe/adsense.php:152
957
+ #: intergeo/templates/iframe/adsense.php:158
958
+ msgid "Hex Value"
959
+ msgstr "Hex Value"
960
+
961
+ #: intergeo/templates/iframe/adsense.php:137
962
+ msgid "Border color"
963
+ msgstr "Border color"
964
+
965
+ #: intergeo/templates/iframe/adsense.php:143
966
+ msgid "Title color"
967
+ msgstr "Title color"
968
+
969
+ #: intergeo/templates/iframe/adsense.php:149
970
+ msgid "Text color"
971
+ msgstr "Text color"
972
+
973
+ #: intergeo/templates/iframe/adsense.php:155
974
+ msgid "URL color"
975
+ msgstr "URL color"
976
+
977
+ #: intergeo/templates/iframe/directions.php:1
978
+ msgid "Directions"
979
+ msgstr "Directions"
980
+
981
+ #: intergeo/templates/iframe/directions.php:5
982
+ msgid "To add a new direction just click the button below:"
983
+ msgstr "To add a new direction just click the button below:"
984
+
985
+ #: intergeo/templates/iframe/directions.php:10
986
+ msgid "Add Direction"
987
+ msgstr "Add Direction"
988
+
989
+ #: intergeo/templates/iframe/directions.php:16
990
+ #: intergeo/templates/iframe/directions.php:22
991
+ #: intergeo/templates/iframe/directions.php:43
992
+ msgid "from"
993
+ msgstr "from"
994
+
995
+ #: intergeo/templates/iframe/directions.php:16
996
+ #: intergeo/templates/iframe/directions.php:22
997
+ #: intergeo/templates/iframe/directions.php:45
998
+ msgid "to"
999
+ msgstr "to"
1000
+
1001
+ #: intergeo/templates/iframe/directions.php:29
1002
+ #: intergeo/templates/iframe/directions.php:70
1003
+ msgid "Delete direction"
1004
+ msgstr "Delete direction"
1005
+
1006
+ #: intergeo/templates/iframe/directions.php:30
1007
+ #: intergeo/templates/iframe/directions.php:71
1008
+ msgid "Edit direction"
1009
+ msgstr "Edit direction"
1010
+
1011
+ #: intergeo/templates/iframe/directions.php:35
1012
+ msgid "Created directions"
1013
+ msgstr "Created directions"
1014
+
1015
+ #~ msgid "Direction calculation process failed."
1016
+ #~ msgstr "Direction calculation process failed."
readme.txt ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Intergeo Maps - Google Maps Plugin ===
2
+ Contributors: codeinwp,marius2012,marius_codeinwp,hardeepasrani,themeisle,Madalin_ThemeIsle
3
+ Tags: directions, easy map, google, google map, google map plugin, google maps, latitude, location, longitude, map, map directions, map markers, map plugin, map widget, maps, marker, polygons, polylines, routes, store locator, streetview, wp google map, wp google maps, wp maps,plugin,admin,widget,shortcode,google maps, maps, map, map markers, google, google map, maps api, wp maps, wp google maps, easy map, embed, marker, placemark, icon, geocode, shortcode, custom post type, multisite, marker clustering
4
+ Requires at least: 3.5
5
+ Tested up to: 4.3
6
+ Stable tag: 1.0.0
7
+ License: GPL v2.0 or later
8
+ License URI: http://www.opensource.org/licenses/gpl-license.php
9
+
10
+ A simple, easy and quite powerful Google Maps tool to create, manage and embed custom Google Maps into your WordPress posts and pages.
11
+
12
+ == Description ==
13
+
14
+ The Intergeo Google Maps plugin is a simple, easy and in the same time quite powerful tool for handling Google Maps in your website. The plugin allows users to create new maps by using powerful UI builder. Created maps could be easily edited and saved with new settings. To increase the speed of creation process the plugin has ability to clone a map with all it's settings. Finally the plugin has attractive library which allows users to browse all maps in the system and delete unnecessary maps.
15
+
16
+ The powerful UI builder allows users to:
17
+
18
+ * Setup initial position and zooming level of a google map;
19
+ * Adjust controls settings and positioning;
20
+ * Setup map color styles by using predefined color schemes or by using custom color settings;
21
+ * Add overlays like markers, rectangles, circles, polylines and polygons;
22
+ * Create directions routes from A address to B address;
23
+ * Integrate AdSense service into your maps and earn money by displaying ads on maps.
24
+
25
+ ### Create Google maps with shortcode ###
26
+
27
+ To create new maps you just can input simple shortcode into your post, page, text widget or taxonomy description:
28
+
29
+ `[intergeo]Your address[/intergeo]`
30
+
31
+ This shortcode will be displayed as Google Map centered at specific address. The shortcode could be extended with custom attributes like height, width, zoom, etc. These attributes will setup special settings for a map. The following table describes all possible attributes, which users can use with shortcodes:
32
+
33
+ **Width**
34
+ Sets width of the Google maps container. Accepts all valid CSS values as css width property accepts. For example, the value could be set in pixels like 500px, or in percentage like 75%. Default value is 100%.
35
+
36
+ **Height**
37
+ Sets width of the Google maps container. Accepts all valid CSS values as css height property accepts. For example, the value could be set in pixels like 700px. Default value is 300px.
38
+
39
+ **Style**
40
+ This attribute allows users to set extra styles for Google map's container element. It accepts all valid css properties and will echo it in the style attribute of the container element. Default value is empty.
41
+
42
+ **Zoom**
43
+ Sets the initial zoom level of the map. This attribute accepts integer value from 0 to 19, where 0 is the biggest distance and 19 is the lowest distance to the ground. The default value is 5.
44
+
45
+ **Hook**
46
+ This attribute allows users to setup their own filter, which will be used to filter settings of a map before using it to render a map. Hooks for the filter will receive one parameter which will be array of options and they have to return it modified or not.
47
+
48
+ So your shortcode could looks like this one:
49
+
50
+ `[intergeo zoom=”12” width=”50%” heigth=”400px” style=”border: 3px solid red; margin: 0 auto;”]Central Park, NY[/intergeo]`
51
+
52
+ ### Create a Google map with UI builder ###
53
+
54
+ Another way to create map is to use UI builder. This is more recommended way to build a Google map as this way provides much more features and wide range of settings to customize. To create a map with UI builder, pass following steps:
55
+
56
+ 1. Create a new post or a page, or just edit existing one;
57
+ 1. Place the mouse cursor into the content editor, at the place you want to embed a map and click on **Add Media** button above editor toolbar;
58
+ 1. When media popup appears, find **Intergeo Google Maps** link in the left sidebar of popup window, click on the link;
59
+ 1. Now you have to see Intergeo UI builder which allows you to customize your map;
60
+ 1. Use all tools from right sidebar of the builder to create a map you need;
61
+ 1. After finishing maps configuration click on **Insert into post** button at the footer of the builder;
62
+ 1. After doing it a map has to be saved in background, popup has to be closed and new appropriate shortcode has to be inserted into the place, where your cursor was.
63
+
64
+ ### Using maps library ###
65
+
66
+ All maps which have been created with UI builder are stored in WordPress database. The plugin allows to browse and manage these Google maps in the maps library. To see it go to the **Media** » **Intergeo Maps** page to see all maps which have been created in your website.
67
+
68
+ The library shows you maps preview as you will see it at front end pages. Here users can copy shortcode of a Google map, edit or clone maps, and delete unnecessary or deprecated maps.
69
+
70
+ Also users can create a Google map from library page. To do it just click on **Add New** button next to the page title and UI builder popup immediately appears. The builder interacts in the same way as it does at edit posts page, except that popup doesn't insert shortcode into somewhere, popup just save a map into database for future reuse.
71
+
72
+ Check-out the <a href="http://www.codeinwp.com/blog/intergeo-maps-plugin-review/" target="_blank" rel="friend">Intergeo review</a> and find out some of the <a href="http://www.codeinwp.com/blog/top-non-obvious-wordpress-plugins/" target="_blank" rel="friend">best WordPress plugins</a>.
73
+
74
+ == Installation ==
75
+
76
+ 1. Upload the files to the `/wp-content/plugins/intergeo/` directory.
77
+ 1. Activate the plugin through the 'Plugins' menu in WordPress.
78
+
79
+
80
+ == Frequently Asked Questions ==
81
+
82
+ = How to override Google map settings =
83
+
84
+ To override Google map settings you can use your own hook. Just add **hook** attribute to your shortcode like this:
85
+
86
+ `[intergeo hook="my_custom_intergeo_hook" ...]...[/intergeo]`
87
+
88
+ And add a function to hook that filter:
89
+
90
+ `add_filter( 'my_custom_intergeo_hook', 'filter_intergeo_map_settings' ) {
91
+ function filter_intergeo_map_settings( $options ) {
92
+ // update options
93
+ $options[...] = ...;
94
+ ...
95
+
96
+ // return updated options
97
+ return $options;
98
+ }`
99
+
100
+ == Screenshots ==
101
+
102
+ 1. Directions Google Maps layer
103
+ 2. Wather and cloud Google Maps layers
104
+ 3. Panaramio layer and styles settings
105
+ 4. Bicycling layer and gray styles
106
+ 5. Overlay settings
107
+ 6. Markers settings
templates/iframe/adsense.php ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'AdSense Integration', INTERGEO_PLUGIN_NAME ) ?></h3>
2
+ <ul class="intergeo_tlbr_ul_li_ul"><?php
3
+ if ( empty( $publisher_id ) ) :
4
+ ?><li class="intergeo_tlbr_ul_li_ul_li">
5
+ <p class="intergeo_tlbr_grp_dsc"><?php
6
+ printf( esc_html__( 'To make AdSense working on your maps, you have to setup your publisher ID. You can do it at the %ssettings page%s.', INTERGEO_PLUGIN_NAME ), '<a href="' . admin_url( 'options-media.php' ) . '" target="_blank">', '</a>' )
7
+ ?></p>
8
+ </li><?php
9
+ endif;
10
+ ?><li class="intergeo_tlbr_ul_li_ul_li">
11
+ <div class="intergeo_tlbr_cntrl_items" style="display:block">
12
+ <div class="intergeo_tlbr_cntrl_item">
13
+ <label>
14
+ <input type="hidden" name="layer_adsense" value="0">
15
+ <input type="checkbox" name="layer_adsense" value="1" <?php checked( isset( $json['layer']['adsense'] ) ? $json['layer']['adsense'] == '1' : false ) ?>>
16
+ Enabled
17
+ </label>
18
+ </div>
19
+ <table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
20
+ <tr>
21
+ <td class="intergeo_tlbr_cntrl_tbl_clmn">
22
+ <select name="adsense_format" class="intergeo_tlbr_cntrl_slct">
23
+ <option value="">
24
+ <?php esc_html_e( 'default format', INTERGEO_PLUGIN_NAME ) ?>
25
+ </option>
26
+ <option value="LEADERBOARD" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'LEADERBOARD' : false ) ?>>
27
+ <?php esc_html_e( 'Leaderboard', INTERGEO_PLUGIN_NAME ) ?>
28
+ </option>
29
+ <option value="BANNER" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'BANNER' : false ) ?>>
30
+ <?php esc_html_e( 'Banner', INTERGEO_PLUGIN_NAME ) ?>
31
+ </option>
32
+ <option value="HALF_BANNER" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'HALF_BANNER' : false ) ?>>
33
+ <?php esc_html_e( 'Half Banner', INTERGEO_PLUGIN_NAME ) ?>
34
+ </option>
35
+ <option value="SKYSCRAPER" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'SKYSCRAPER' : false ) ?>>
36
+ <?php esc_html_e( 'Skyscraper', INTERGEO_PLUGIN_NAME ) ?>
37
+ </option>
38
+ <option value="WIDE_SKYSCRAPER" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'WIDE_SKYSCRAPER' : false ) ?>>
39
+ <?php esc_html_e( 'Wide Skyscraper', INTERGEO_PLUGIN_NAME ) ?>
40
+ </option>
41
+ <option value="VERTICAL_BANNER" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'VERTICAL_BANNER' : false ) ?>>
42
+ <?php esc_html_e( 'Vertical Banner', INTERGEO_PLUGIN_NAME ) ?>
43
+ </option>
44
+ <option value="BUTTON" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'BUTTON' : false ) ?>>
45
+ <?php esc_html_e( 'Button', INTERGEO_PLUGIN_NAME ) ?>
46
+ </option>
47
+ <option value="SMALL_SQUARE" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'SMALL_SQUARE' : false ) ?>>
48
+ <?php esc_html_e( 'Small Square', INTERGEO_PLUGIN_NAME ) ?>
49
+ </option>
50
+ <option value="SQUARE" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'SQUARE' : false ) ?>>
51
+ <?php esc_html_e( 'Square', INTERGEO_PLUGIN_NAME ) ?>
52
+ </option>
53
+ <option value="SMALL_RECTANGLE" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'SMALL_RECTANGLE' : false ) ?>>
54
+ <?php esc_html_e( 'Small Rectangle', INTERGEO_PLUGIN_NAME ) ?>
55
+ </option>
56
+ <option value="MEDIUM_RECTANGLE" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'MEDIUM_RECTANGLE' : false ) ?>>
57
+ <?php esc_html_e( 'Medium Rectangle', INTERGEO_PLUGIN_NAME ) ?>
58
+ </option>
59
+ <option value="LARGE_RECTANGLE" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'LARGE_RECTANGLE' : false ) ?>>
60
+ <?php esc_html_e( 'Large Rectangle', INTERGEO_PLUGIN_NAME ) ?>
61
+ </option>
62
+ <option value="SMALL_VERTICAL_LINK_UNIT" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'SMALL_VERTICAL_LINK_UNIT' : false ) ?>>
63
+ <?php esc_html_e( 'Small Vertical Link Unit', INTERGEO_PLUGIN_NAME ) ?>
64
+ </option>
65
+ <option value="MEDIUM_VERTICAL_LINK_UNIT" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'MEDIUM_VERTICAL_LINK_UNIT' : false ) ?>>
66
+ <?php esc_html_e( 'Medium Vertical Link Unit', INTERGEO_PLUGIN_NAME ) ?>
67
+ </option>
68
+ <option value="LARGE_VERTICAL_LINK_UNIT" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'LARGE_VERTICAL_LINK_UNIT' : false ) ?>>
69
+ <?php esc_html_e( 'Large Vertical Link Unit', INTERGEO_PLUGIN_NAME ) ?>
70
+ </option>
71
+ <option value="X_LARGE_VERTICAL_LINK_UNIT" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'X_LARGE_VERTICAL_LINK_UNIT' : false ) ?>>
72
+ <?php esc_html_e( 'Extra Large Vertical Link Unit', INTERGEO_PLUGIN_NAME ) ?>
73
+ </option>
74
+ <option value="SMALL_HORIZONTAL_LINK_UNIT" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'SMALL_HORIZONTAL_LINK_UNIT' : false ) ?>>
75
+ <?php esc_html_e( 'Small Horizontal Link Unit', INTERGEO_PLUGIN_NAME ) ?>
76
+ </option>
77
+ <option value="LARGE_HORIZONTAL_LINK_UNIT" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'LARGE_HORIZONTAL_LINK_UNIT' : false ) ?>>
78
+ <?php esc_html_e( 'Large Horizontal Link Unit', INTERGEO_PLUGIN_NAME ) ?>
79
+ </option>
80
+ </select>
81
+ </td>
82
+ <td class="intergeo_tlbr_cntrl_tbl_clmn">
83
+ <select class="intergeo_tlbr_cntrl_slct" name="adsense_position">
84
+ <option value=""><?php esc_html_e( 'default position', INTERGEO_PLUGIN_NAME ) ?></option>
85
+ <option value="TOP_LEFT" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'TOP_LEFT' : false ) ?>>
86
+ <?php esc_html_e( 'Top Left', INTERGEO_PLUGIN_NAME ) ?>
87
+ </option>
88
+ <option value="TOP_CENTER" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'TOP_CENTER' : false ) ?>>
89
+ <?php esc_html_e( 'Top Center', INTERGEO_PLUGIN_NAME ) ?>
90
+ </option>
91
+ <option value="TOP_RIGHT" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'TOP_RIGHT' : false ) ?>>
92
+ <?php esc_html_e( 'Top Right', INTERGEO_PLUGIN_NAME ) ?>
93
+ </option>
94
+ <option value="RIGHT_TOP" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'RIGHT_TOP' : false ) ?>>
95
+ <?php esc_html_e( 'Right Top', INTERGEO_PLUGIN_NAME ) ?>
96
+ </option>
97
+ <option value="RIGHT_CENTER" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'RIGHT_CENTER' : false ) ?>>
98
+ <?php esc_html_e( 'Right Center', INTERGEO_PLUGIN_NAME ) ?>
99
+ </option>
100
+ <option value="RIGHT_BOTTOM" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'RIGHT_BOTTOM' : false ) ?>>
101
+ <?php esc_html_e( 'Right Bottom', INTERGEO_PLUGIN_NAME ) ?>
102
+ </option>
103
+ <option value="BOTTOM_RIGHT" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'BOTTOM_RIGHT' : false ) ?>>
104
+ <?php esc_html_e( 'Bottom Right', INTERGEO_PLUGIN_NAME ) ?>
105
+ </option>
106
+ <option value="BOTTOM_CENTER" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'BOTTOM_CENTER' : false ) ?>>
107
+ <?php esc_html_e( 'Bottom Center', INTERGEO_PLUGIN_NAME ) ?>
108
+ </option>
109
+ <option value="BOTTOM_LEFT" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'BOTTOM_LEFT' : false ) ?>>
110
+ <?php esc_html_e( 'Bottom Left', INTERGEO_PLUGIN_NAME ) ?>
111
+ </option>
112
+ <option value="LEFT_BOTTOM" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'LEFT_BOTTOM' : false ) ?>>
113
+ <?php esc_html_e( 'Left Bottom', INTERGEO_PLUGIN_NAME ) ?>
114
+ </option>
115
+ <option value="LEFT_CENTER" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'LEFT_CENTER' : false ) ?>>
116
+ <?php esc_html_e( 'Left Center', INTERGEO_PLUGIN_NAME ) ?>
117
+ </option>
118
+ <option value="LEFT_TOP" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'LEFT_TOP' : false ) ?>>
119
+ <?php esc_html_e( 'Left Top', INTERGEO_PLUGIN_NAME ) ?>
120
+ </option>
121
+ </select>
122
+ </td>
123
+ </tr>
124
+ </table>
125
+ </div>
126
+ </li>
127
+ <li class="intergeo_tlbr_ul_li_ul_li">
128
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Styles', INTERGEO_PLUGIN_NAME ) ?></span>
129
+ <div class="intergeo_tlbr_cntrl_items">
130
+ <div class="intergeo_tlbr_cntrl_item">
131
+ <b><?php esc_html_e( 'Background color', INTERGEO_PLUGIN_NAME ) ?></b>
132
+ </div>
133
+ <div class="intergeo_tlbr_cntrl_item">
134
+ <input class="color-picker-hex" type="text" name="adsense_backgroundColor" maxlength="7" placeholder="<?php esc_attr_e( 'Hex Value' ) ?>" value="<?php echo isset( $json['adsense']['backgroundColor'] ) ? esc_attr( $json['adsense']['backgroundColor'] ) : '#c4d4f3' ?>" data-default-color="#c4d4f3">
135
+ </div>
136
+ <div class="intergeo_tlbr_cntrl_item">
137
+ <b><?php esc_html_e( 'Border color', INTERGEO_PLUGIN_NAME ) ?></b>
138
+ </div>
139
+ <div class="intergeo_tlbr_cntrl_item">
140
+ <input class="color-picker-hex" type="text" name="adsense_borderColor" maxlength="7" placeholder="<?php esc_attr_e( 'Hex Value' ) ?>" value="<?php echo isset( $json['adsense']['borderColor'] ) ? esc_attr( $json['adsense']['borderColor'] ) : '#e5ecf9' ?>" data-default-color="#e5ecf9">
141
+ </div>
142
+ <div class="intergeo_tlbr_cntrl_item">
143
+ <b><?php esc_html_e( 'Title color', INTERGEO_PLUGIN_NAME ) ?></b>
144
+ </div>
145
+ <div class="intergeo_tlbr_cntrl_item">
146
+ <input class="color-picker-hex" type="text" name="adsense_titleColor" maxlength="7" placeholder="<?php esc_attr_e( 'Hex Value' ) ?>" value="<?php echo isset( $json['adsense']['titleColor'] ) ? esc_attr( $json['adsense']['titleColor'] ) : '#0000cc' ?>" data-default-color="#0000cc">
147
+ </div>
148
+ <div class="intergeo_tlbr_cntrl_item">
149
+ <b><?php esc_html_e( 'Text color', INTERGEO_PLUGIN_NAME ) ?></b>
150
+ </div>
151
+ <div class="intergeo_tlbr_cntrl_item">
152
+ <input class="color-picker-hex" type="text" name="adsense_textColor" maxlength="7" placeholder="<?php esc_attr_e( 'Hex Value' ) ?>" value="<?php echo isset( $json['adsense']['textColor'] ) ? esc_attr( $json['adsense']['textColor'] ) : '#000000' ?>" data-default-color="#000000">
153
+ </div>
154
+ <div class="intergeo_tlbr_cntrl_item">
155
+ <b><?php esc_html_e( 'URL color', INTERGEO_PLUGIN_NAME ) ?></b>
156
+ </div>
157
+ <div class="intergeo_tlbr_cntrl_item">
158
+ <input class="color-picker-hex" type="text" name="adsense_urlColor" maxlength="7" placeholder="<?php esc_attr_e( 'Hex Value' ) ?>" value="<?php echo isset( $json['adsense']['urlColor'] ) ? esc_attr( $json['adsense']['urlColor'] ) : '#009900' ?>" data-default-color="#009900">
159
+ </div>
160
+ </div>
161
+ </li>
162
+ </ul>
templates/iframe/controls.php ADDED
@@ -0,0 +1,450 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'Controls', INTERGEO_PLUGIN_NAME ) ?></h3>
3
+ <ul class="intergeo_tlbr_ul_li_ul">
4
+ <li class="intergeo_tlbr_ul_li_ul_li">
5
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Zoom control', INTERGEO_PLUGIN_NAME ) ?></span>
6
+ <div class="intergeo_tlbr_cntrl_items">
7
+ <div class="intergeo_tlbr_cntrl_item">
8
+ <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
9
+ <label>
10
+ <input type="hidden" name="map_zoomControl" value="0">
11
+ <input type="checkbox" name="map_zoomControl" value="1" <?php checked( isset( $json['map']['zoomControl'] ) ? $json['map']['zoomControl'] == 1 : true ) ?>>
12
+ <?php esc_html_e( 'Enabled', INTERGEO_PLUGIN_NAME ) ?>
13
+ </label>
14
+ </div>
15
+ <p class="intergeo_tlbr_cntrl_dsc">
16
+ <?php esc_html_e( 'The Zoom control displays a slider (for large maps) or small "+/-" buttons (for small maps) to control the zoom level of the map. This control appears by default in the top left corner of the map on non-touch devices or in the bottom left corner on touch devices.', INTERGEO_PLUGIN_NAME ) ?>
17
+ </p>
18
+ <table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
19
+ <tr>
20
+ <td class="intergeo_tlbr_cntrl_tbl_clmn">
21
+ <select class="intergeo_tlbr_cntrl_slct" name="map_zoomControlOptions_position">
22
+ <option value=""><?php esc_html_e( 'default position', INTERGEO_PLUGIN_NAME ) ?></option>
23
+ <option value="TOP_LEFT" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'TOP_LEFT' : false ) ?>>
24
+ <?php esc_html_e( 'Top Left', INTERGEO_PLUGIN_NAME ) ?>
25
+ </option>
26
+ <option value="TOP_CENTER" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'TOP_CENTER' : false ) ?>>
27
+ <?php esc_html_e( 'Top Center', INTERGEO_PLUGIN_NAME ) ?>
28
+ </option>
29
+ <option value="TOP_RIGHT" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'TOP_RIGHT' : false ) ?>>
30
+ <?php esc_html_e( 'Top Right', INTERGEO_PLUGIN_NAME ) ?>
31
+ </option>
32
+ <option value="RIGHT_TOP" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'RIGHT_TOP' : false ) ?>>
33
+ <?php esc_html_e( 'Right Top', INTERGEO_PLUGIN_NAME ) ?>
34
+ </option>
35
+ <option value="RIGHT_CENTER" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'RIGHT_CENTER' : false ) ?>>
36
+ <?php esc_html_e( 'Right Center', INTERGEO_PLUGIN_NAME ) ?>
37
+ </option>
38
+ <option value="RIGHT_BOTTOM" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'RIGHT_BOTTOM' : false ) ?>>
39
+ <?php esc_html_e( 'Right Bottom', INTERGEO_PLUGIN_NAME ) ?>
40
+ </option>
41
+ <option value="BOTTOM_RIGHT" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'BOTTOM_RIGHT' : false ) ?>>
42
+ <?php esc_html_e( 'Bottom Right', INTERGEO_PLUGIN_NAME ) ?>
43
+ </option>
44
+ <option value="BOTTOM_CENTER" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'BOTTOM_CENTER' : false ) ?>>
45
+ <?php esc_html_e( 'Bottom Center', INTERGEO_PLUGIN_NAME ) ?>
46
+ </option>
47
+ <option value="BOTTOM_LEFT" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'BOTTOM_LEFT' : false ) ?>>
48
+ <?php esc_html_e( 'Bottom Left', INTERGEO_PLUGIN_NAME ) ?>
49
+ </option>
50
+ <option value="LEFT_BOTTOM" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'LEFT_BOTTOM' : false ) ?>>
51
+ <?php esc_html_e( 'Left Bottom', INTERGEO_PLUGIN_NAME ) ?>
52
+ </option>
53
+ <option value="LEFT_CENTER" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'LEFT_CENTER' : false ) ?>>
54
+ <?php esc_html_e( 'Left Center', INTERGEO_PLUGIN_NAME ) ?>
55
+ </option>
56
+ <option value="LEFT_TOP" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'LEFT_TOP' : false ) ?>>
57
+ <?php esc_html_e( 'Left Top', INTERGEO_PLUGIN_NAME ) ?>
58
+ </option>
59
+ </select>
60
+ </td>
61
+ <td class="intergeo_tlbr_cntrl_tbl_clmn">
62
+ <select class="intergeo_tlbr_cntrl_slct" name="map_zoomControlOptions_style">
63
+ <option value="DEFAULT">
64
+ <?php esc_html_e( 'default style', INTERGEO_PLUGIN_NAME ) ?>
65
+ </option>
66
+ <option value="SMALL" <?php selected( isset( $json['map']['zoomControlOptions']['style'] ) ? $json['map']['zoomControlOptions']['style'] == 'SMALL' : false ) ?>>
67
+ <?php esc_html_e( 'small', INTERGEO_PLUGIN_NAME ) ?>
68
+ </option>
69
+ <option value="LARGE" <?php selected( isset( $json['map']['zoomControlOptions']['style'] ) ? $json['map']['zoomControlOptions']['style'] == 'LARGE' : false ) ?>>
70
+ <?php esc_html_e( 'large', INTERGEO_PLUGIN_NAME ) ?>
71
+ </option>
72
+ </select>
73
+ </td>
74
+ </tr>
75
+ </table>
76
+ </div>
77
+ </li>
78
+ <li class="intergeo_tlbr_ul_li_ul_li">
79
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Pan control', INTERGEO_PLUGIN_NAME ) ?></span>
80
+ <div class="intergeo_tlbr_cntrl_items">
81
+ <div class="intergeo_tlbr_cntrl_item">
82
+ <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
83
+ <label>
84
+ <input type="hidden" name="map_panControl" value="0">
85
+ <input type="checkbox" name="map_panControl" value="1" <?php checked( isset( $json['map']['panControl'] ) ? $json['map']['panControl'] == 1 : true ) ?>>
86
+ <?php esc_html_e( 'Enabled', INTERGEO_PLUGIN_NAME ) ?>
87
+ </label>
88
+ </div>
89
+ <p class="intergeo_tlbr_cntrl_dsc">
90
+ <?php esc_html_e( 'The Pan control displays buttons for panning the map. This control appears by default in the top left corner of the map on non-touch devices. The Pan control also allows you to rotate 45° imagery, if available.', INTERGEO_PLUGIN_NAME ) ?>
91
+ </p>
92
+ <table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
93
+ <tr>
94
+ <td class="intergeo_tlbr_cntrl_tbl_clmn">
95
+ <select class="intergeo_tlbr_cntrl_slct" name="map_panControlOptions_position">
96
+ <option value=""><?php esc_html_e( 'default position', INTERGEO_PLUGIN_NAME ) ?></option>
97
+ <option value="TOP_LEFT" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'TOP_LEFT' : false ) ?>>
98
+ <?php esc_html_e( 'Top Left', INTERGEO_PLUGIN_NAME ) ?>
99
+ </option>
100
+ <option value="TOP_CENTER" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'TOP_CENTER' : false ) ?>>
101
+ <?php esc_html_e( 'Top Center', INTERGEO_PLUGIN_NAME ) ?>
102
+ </option>
103
+ <option value="TOP_RIGHT" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'TOP_RIGHT' : false ) ?>>
104
+ <?php esc_html_e( 'Top Right', INTERGEO_PLUGIN_NAME ) ?>
105
+ </option>
106
+ <option value="RIGHT_TOP" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'RIGHT_TOP' : false ) ?>>
107
+ <?php esc_html_e( 'Right Top', INTERGEO_PLUGIN_NAME ) ?>
108
+ </option>
109
+ <option value="RIGHT_CENTER" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'RIGHT_CENTER' : false ) ?>>
110
+ <?php esc_html_e( 'Right Center', INTERGEO_PLUGIN_NAME ) ?>
111
+ </option>
112
+ <option value="RIGHT_BOTTOM" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'RIGHT_BOTTOM' : false ) ?>>
113
+ <?php esc_html_e( 'Right Bottom', INTERGEO_PLUGIN_NAME ) ?>
114
+ </option>
115
+ <option value="BOTTOM_RIGHT" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'BOTTOM_RIGHT' : false ) ?>>
116
+ <?php esc_html_e( 'Bottom Right', INTERGEO_PLUGIN_NAME ) ?>
117
+ </option>
118
+ <option value="BOTTOM_CENTER" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'BOTTOM_CENTER' : false ) ?>>
119
+ <?php esc_html_e( 'Bottom Center', INTERGEO_PLUGIN_NAME ) ?>
120
+ </option>
121
+ <option value="BOTTOM_LEFT" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'BOTTOM_LEFT' : false ) ?>>
122
+ <?php esc_html_e( 'Bottom Left', INTERGEO_PLUGIN_NAME ) ?>
123
+ </option>
124
+ <option value="LEFT_BOTTOM" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'LEFT_BOTTOM' : false ) ?>>
125
+ <?php esc_html_e( 'Left Bottom', INTERGEO_PLUGIN_NAME ) ?>
126
+ </option>
127
+ <option value="LEFT_CENTER" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'LEFT_CENTER' : false ) ?>>
128
+ <?php esc_html_e( 'Left Center', INTERGEO_PLUGIN_NAME ) ?>
129
+ </option>
130
+ <option value="LEFT_TOP" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'LEFT_TOP' : false ) ?>>
131
+ <?php esc_html_e( 'Left Top', INTERGEO_PLUGIN_NAME ) ?>
132
+ </option>
133
+ </select>
134
+ </td>
135
+ <td class="intergeo_tlbr_cntrl_tbl_clmn">&nbsp;</td>
136
+ </tr>
137
+ </table>
138
+ </div>
139
+ </li>
140
+ <li class="intergeo_tlbr_ul_li_ul_li">
141
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Scale control', INTERGEO_PLUGIN_NAME ) ?></span>
142
+ <div class="intergeo_tlbr_cntrl_items">
143
+ <div class="intergeo_tlbr_cntrl_item">
144
+ <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
145
+ <label>
146
+ <input type="hidden" name="map_scaleControl" value="0">
147
+ <input type="checkbox" name="map_scaleControl" value="1" <?php checked( isset( $json['map']['scaleControl'] ) ? $json['map']['scaleControl'] : false ) ?>>
148
+ <?php esc_html_e( 'Enabled', INTERGEO_PLUGIN_NAME ) ?>
149
+ </label>
150
+ </div>
151
+ <p class="intergeo_tlbr_cntrl_dsc">
152
+ <?php esc_html_e( 'The Scale control displays a map scale element. This control is not enabled by default.', INTERGEO_PLUGIN_NAME ) ?>
153
+ </p>
154
+ <table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
155
+ <tr>
156
+ <td class="intergeo_tlbr_cntrl_tbl_clmn">
157
+ <select class="intergeo_tlbr_cntrl_slct" name="map_scaleControlOptions_position">
158
+ <option value=""><?php esc_html_e( 'default position', INTERGEO_PLUGIN_NAME ) ?></option>
159
+ <option value="TOP_LEFT" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'TOP_LEFT' : false ) ?>>
160
+ <?php esc_html_e( 'Top Left', INTERGEO_PLUGIN_NAME ) ?>
161
+ </option>
162
+ <option value="TOP_CENTER" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'TOP_CENTER' : false ) ?>>
163
+ <?php esc_html_e( 'Top Center', INTERGEO_PLUGIN_NAME ) ?>
164
+ </option>
165
+ <option value="TOP_RIGHT" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'TOP_RIGHT' : false ) ?>>
166
+ <?php esc_html_e( 'Top Right', INTERGEO_PLUGIN_NAME ) ?>
167
+ </option>
168
+ <option value="RIGHT_TOP" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'RIGHT_TOP' : false ) ?>>
169
+ <?php esc_html_e( 'Right Top', INTERGEO_PLUGIN_NAME ) ?>
170
+ </option>
171
+ <option value="RIGHT_CENTER" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'RIGHT_CENTER' : false ) ?>>
172
+ <?php esc_html_e( 'Right Center', INTERGEO_PLUGIN_NAME ) ?>
173
+ </option>
174
+ <option value="RIGHT_BOTTOM" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'RIGHT_BOTTOM' : false ) ?>>
175
+ <?php esc_html_e( 'Right Bottom', INTERGEO_PLUGIN_NAME ) ?>
176
+ </option>
177
+ <option value="BOTTOM_RIGHT" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'BOTTOM_RIGHT' : false ) ?>>
178
+ <?php esc_html_e( 'Bottom Right', INTERGEO_PLUGIN_NAME ) ?>
179
+ </option>
180
+ <option value="BOTTOM_CENTER" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'BOTTOM_CENTER' : false ) ?>>
181
+ <?php esc_html_e( 'Bottom Center', INTERGEO_PLUGIN_NAME ) ?>
182
+ </option>
183
+ <option value="BOTTOM_LEFT" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'BOTTOM_LEFT' : false ) ?>>
184
+ <?php esc_html_e( 'Bottom Left', INTERGEO_PLUGIN_NAME ) ?>
185
+ </option>
186
+ <option value="LEFT_BOTTOM" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'LEFT_BOTTOM' : false ) ?>>
187
+ <?php esc_html_e( 'Left Bottom', INTERGEO_PLUGIN_NAME ) ?>
188
+ </option>
189
+ <option value="LEFT_CENTER" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'LEFT_CENTER' : false ) ?>>
190
+ <?php esc_html_e( 'Left Center', INTERGEO_PLUGIN_NAME ) ?>
191
+ </option>
192
+ <option value="LEFT_TOP" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'LEFT_TOP' : false ) ?>>
193
+ <?php esc_html_e( 'Left Top', INTERGEO_PLUGIN_NAME ) ?>
194
+ </option>
195
+ </select>
196
+ </td>
197
+ <td class="intergeo_tlbr_cntrl_tbl_clmn">&nbsp;</td>
198
+ </tr>
199
+ </table>
200
+ </div>
201
+ </li>
202
+ <li class="intergeo_tlbr_ul_li_ul_li">
203
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'MapType control', INTERGEO_PLUGIN_NAME ) ?></span>
204
+ <div class="intergeo_tlbr_cntrl_items">
205
+ <div class="intergeo_tlbr_cntrl_item">
206
+ <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
207
+ <label>
208
+ <input type="hidden" name="map_mapTypeControl" value="0">
209
+ <input type="checkbox" name="map_mapTypeControl" value="1" <?php checked( isset( $json['map']['mapTypeControl'] ) ? $json['map']['mapTypeControl'] : true ) ?>>
210
+ <?php esc_html_e( 'Enabled', INTERGEO_PLUGIN_NAME ) ?>
211
+ </label>
212
+ </div>
213
+ <p class="intergeo_tlbr_cntrl_dsc">
214
+ <?php esc_html_e( 'The MapType control lets the user toggle between map types (such as roadmap and satellite). This control appears by default in the top right corner of the map.', INTERGEO_PLUGIN_NAME ) ?>
215
+ </p>
216
+ <table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
217
+ <tr>
218
+ <td class="intergeo_tlbr_cntrl_tbl_clmn">
219
+ <select class="intergeo_tlbr_cntrl_slct" name="map_mapTypeControlOptions_position">
220
+ <option value=""><?php esc_html_e( 'default position', INTERGEO_PLUGIN_NAME ) ?></option>
221
+ <option value="TOP_LEFT" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'TOP_LEFT' : false ) ?>>
222
+ <?php esc_html_e( 'Top Left', INTERGEO_PLUGIN_NAME ) ?>
223
+ </option>
224
+ <option value="TOP_CENTER" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'TOP_CENTER' : false ) ?>>
225
+ <?php esc_html_e( 'Top Center', INTERGEO_PLUGIN_NAME ) ?>
226
+ </option>
227
+ <option value="TOP_RIGHT" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'TOP_RIGHT' : false ) ?>>
228
+ <?php esc_html_e( 'Top Right', INTERGEO_PLUGIN_NAME ) ?>
229
+ </option>
230
+ <option value="RIGHT_TOP" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'RIGHT_TOP' : false ) ?>>
231
+ <?php esc_html_e( 'Right Top', INTERGEO_PLUGIN_NAME ) ?>
232
+ </option>
233
+ <option value="RIGHT_CENTER" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'RIGHT_CENTER' : false ) ?>>
234
+ <?php esc_html_e( 'Right Center', INTERGEO_PLUGIN_NAME ) ?>
235
+ </option>
236
+ <option value="RIGHT_BOTTOM" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'RIGHT_BOTTOM' : false ) ?>>
237
+ <?php esc_html_e( 'Right Bottom', INTERGEO_PLUGIN_NAME ) ?>
238
+ </option>
239
+ <option value="BOTTOM_RIGHT" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'BOTTOM_RIGHT' : false ) ?>>
240
+ <?php esc_html_e( 'Bottom Right', INTERGEO_PLUGIN_NAME ) ?>
241
+ </option>
242
+ <option value="BOTTOM_CENTER" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'BOTTOM_CENTER' : false ) ?>>
243
+ <?php esc_html_e( 'Bottom Center', INTERGEO_PLUGIN_NAME ) ?>
244
+ </option>
245
+ <option value="BOTTOM_LEFT" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'BOTTOM_LEFT' : false ) ?>>
246
+ <?php esc_html_e( 'Bottom Left', INTERGEO_PLUGIN_NAME ) ?>
247
+ </option>
248
+ <option value="LEFT_BOTTOM" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'LEFT_BOTTOM' : false ) ?>>
249
+ <?php esc_html_e( 'Left Bottom', INTERGEO_PLUGIN_NAME ) ?>
250
+ </option>
251
+ <option value="LEFT_CENTER" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'LEFT_CENTER' : false ) ?>>
252
+ <?php esc_html_e( 'Left Center', INTERGEO_PLUGIN_NAME ) ?>
253
+ </option>
254
+ <option value="LEFT_TOP" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'LEFT_TOP' : false ) ?>>
255
+ <?php esc_html_e( 'Left Top', INTERGEO_PLUGIN_NAME ) ?>
256
+ </option>
257
+ </select>
258
+ </td>
259
+ <td class="intergeo_tlbr_cntrl_tbl_clmn">
260
+ <select class="intergeo_tlbr_cntrl_slct" name="map_mapTypeControlOptions_style">
261
+ <option value="DEFAULT">
262
+ <?php esc_html_e( 'default style', INTERGEO_PLUGIN_NAME ) ?>
263
+ </option>
264
+ <option value="DROPDOWN_MENU" <?php selected( isset( $json['map']['mapTypeControlOptions']['style'] ) ? $json['map']['mapTypeControlOptions']['style'] == 'DROPDOWN_MENU' : false ) ?>>
265
+ <?php esc_html_e( 'dropdown menu', INTERGEO_PLUGIN_NAME ) ?>
266
+ </option>
267
+ <option value="HORIZONTAL_BAR" <?php selected( isset( $json['map']['mapTypeControlOptions']['style'] ) ? $json['map']['mapTypeControlOptions']['style'] == 'HORIZONTAL_BAR' : false ) ?>>
268
+ <?php esc_html_e( 'horizontal bar', INTERGEO_PLUGIN_NAME ) ?>
269
+ </option>
270
+ </select>
271
+ </td>
272
+ </tr>
273
+ </table>
274
+ <div class="intergeo_tlbr_cntrl_item">
275
+ <b><?php esc_html_e( 'Map types:', INTERGEO_PLUGIN_NAME ) ?></b>
276
+ </div>
277
+ <div class="intergeo_tlbr_cntrl_item">
278
+ <label title="<?php esc_attr_e( 'This map type displays a normal street map.', INTERGEO_PLUGIN_NAME ) ?>">
279
+ <input type="checkbox" name="map_mapTypeControlOptions_mapTypeIds[]" value="ROADMAP" <?php checked( isset( $json['map']['mapTypeControlOptions']['mapTypeIds'] ) ? in_array( 'ROADMAP', $json['map']['mapTypeControlOptions']['mapTypeIds'] ) : true ) ?>>
280
+ <?php esc_html_e( 'Road map', INTERGEO_PLUGIN_NAME ) ?>
281
+ </label>
282
+ </div>
283
+ <div class="intergeo_tlbr_cntrl_item">
284
+ <label title="<?php esc_attr_e( 'This map type displays maps with physical features such as terrain and vegetation.', INTERGEO_PLUGIN_NAME ) ?>">
285
+ <input type="checkbox" name="map_mapTypeControlOptions_mapTypeIds[]" value="TERRAIN" <?php checked( isset( $json['map']['mapTypeControlOptions']['mapTypeIds'] ) ? in_array( 'TERRAIN', $json['map']['mapTypeControlOptions']['mapTypeIds'] ) : true ) ?>>
286
+ <?php esc_html_e( 'Terrain', INTERGEO_PLUGIN_NAME ) ?>
287
+ </label>
288
+ </div>
289
+ <div class="intergeo_tlbr_cntrl_item">
290
+ <label title="<?php esc_attr_e( 'This map type displays satellite images.', INTERGEO_PLUGIN_NAME ) ?>">
291
+ <input type="checkbox" name="map_mapTypeControlOptions_mapTypeIds[]" value="SATELLITE" <?php checked( isset( $json['map']['mapTypeControlOptions']['mapTypeIds'] ) ? in_array( 'SATELLITE', $json['map']['mapTypeControlOptions']['mapTypeIds'] ) : true ) ?>>
292
+ <?php esc_html_e( 'Satellite', INTERGEO_PLUGIN_NAME ) ?>
293
+ </label>
294
+ </div>
295
+ <div class="intergeo_tlbr_cntrl_item">
296
+ <label title="<?php esc_attr_e( 'This map type displays a transparent layer of major streets on satellite images.', INTERGEO_PLUGIN_NAME ) ?>">
297
+ <input type="checkbox" name="map_mapTypeControlOptions_mapTypeIds[]" value="HYBRID" <?php checked( isset( $json['map']['mapTypeControlOptions']['mapTypeIds'] ) ? in_array( 'HYBRID', $json['map']['mapTypeControlOptions']['mapTypeIds'] ) : true ) ?>>
298
+ <?php esc_html_e( 'Hybrid', INTERGEO_PLUGIN_NAME ) ?>
299
+ </label>
300
+ </div>
301
+ </div>
302
+ </li>
303
+ <li class="intergeo_tlbr_ul_li_ul_li">
304
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Street View control', INTERGEO_PLUGIN_NAME ) ?></span>
305
+ <div class="intergeo_tlbr_cntrl_items">
306
+ <div class="intergeo_tlbr_cntrl_item">
307
+ <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
308
+ <label>
309
+ <input type="hidden" name="map_streetViewControl" value="0">
310
+ <input type="checkbox" name="map_streetViewControl" value="1" <?php checked( isset( $json['map']['streetViewControl'] ) ? $json['map']['streetViewControl'] == 1 : true ) ?>>
311
+ <?php esc_html_e( 'Enabled', INTERGEO_PLUGIN_NAME ) ?>
312
+ </label>
313
+ </div>
314
+ <p class="intergeo_tlbr_cntrl_dsc">
315
+ <?php esc_html_e( 'The Street View control contains a Pegman icon which can be dragged onto the map to enable Street View. This control appears by default in the top left corner of the map.', INTERGEO_PLUGIN_NAME ) ?>
316
+ </p>
317
+ <table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
318
+ <tr>
319
+ <td class="intergeo_tlbr_cntrl_tbl_clmn">
320
+ <select class="intergeo_tlbr_cntrl_slct" name="map_streetViewControlOptions_position">
321
+ <option value=""><?php esc_html_e( 'default position', INTERGEO_PLUGIN_NAME ) ?></option>
322
+ <option value="TOP_LEFT" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'TOP_LEFT' : false ) ?>>
323
+ <?php esc_html_e( 'Top Left', INTERGEO_PLUGIN_NAME ) ?>
324
+ </option>
325
+ <option value="TOP_CENTER" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'TOP_CENTER' : false ) ?>>
326
+ <?php esc_html_e( 'Top Center', INTERGEO_PLUGIN_NAME ) ?>
327
+ </option>
328
+ <option value="TOP_RIGHT" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'TOP_RIGHT' : false ) ?>>
329
+ <?php esc_html_e( 'Top Right', INTERGEO_PLUGIN_NAME ) ?>
330
+ </option>
331
+ <option value="RIGHT_TOP" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'RIGHT_TOP' : false ) ?>>
332
+ <?php esc_html_e( 'Right Top', INTERGEO_PLUGIN_NAME ) ?>
333
+ </option>
334
+ <option value="RIGHT_CENTER" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'RIGHT_CENTER' : false ) ?>>
335
+ <?php esc_html_e( 'Right Center', INTERGEO_PLUGIN_NAME ) ?>
336
+ </option>
337
+ <option value="RIGHT_BOTTOM" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'RIGHT_BOTTOM' : false ) ?>>
338
+ <?php esc_html_e( 'Right Bottom', INTERGEO_PLUGIN_NAME ) ?>
339
+ </option>
340
+ <option value="BOTTOM_RIGHT" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'BOTTOM_RIGHT' : false ) ?>>
341
+ <?php esc_html_e( 'Bottom Right', INTERGEO_PLUGIN_NAME ) ?>
342
+ </option>
343
+ <option value="BOTTOM_CENTER" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'BOTTOM_CENTER' : false ) ?>>
344
+ <?php esc_html_e( 'Bottom Center', INTERGEO_PLUGIN_NAME ) ?>
345
+ </option>
346
+ <option value="BOTTOM_LEFT" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'BOTTOM_LEFT' : false ) ?>>
347
+ <?php esc_html_e( 'Bottom Left', INTERGEO_PLUGIN_NAME ) ?>
348
+ </option>
349
+ <option value="LEFT_BOTTOM" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'LEFT_BOTTOM' : false ) ?>>
350
+ <?php esc_html_e( 'Left Bottom', INTERGEO_PLUGIN_NAME ) ?>
351
+ </option>
352
+ <option value="LEFT_CENTER" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'LEFT_CENTER' : false ) ?>>
353
+ <?php esc_html_e( 'Left Center', INTERGEO_PLUGIN_NAME ) ?>
354
+ </option>
355
+ <option value="LEFT_TOP" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'LEFT_TOP' : false ) ?>>
356
+ <?php esc_html_e( 'Left Top', INTERGEO_PLUGIN_NAME ) ?>
357
+ </option>
358
+ </select>
359
+ </td>
360
+ <td class="intergeo_tlbr_cntrl_tbl_clmn">&nbsp;</td>
361
+ </tr>
362
+ </table>
363
+ </div>
364
+ </li>
365
+ <li class="intergeo_tlbr_ul_li_ul_li">
366
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Rotate control', INTERGEO_PLUGIN_NAME ) ?></span>
367
+ <div class="intergeo_tlbr_cntrl_items">
368
+ <div class="intergeo_tlbr_cntrl_item">
369
+ <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
370
+ <label>
371
+ <input type="hidden" name="map_rotateControl" value="0">
372
+ <input type="checkbox" name="map_rotateControl" value="1" <?php checked( isset( $json['map']['rotateControl'] ) ? $json['map']['rotateControl'] == 1 : true ) ?>>
373
+ <?php esc_html_e( 'Enabled', INTERGEO_PLUGIN_NAME ) ?>
374
+ </label>
375
+ </div>
376
+ <p class="intergeo_tlbr_cntrl_dsc">
377
+ <?php esc_html_e( 'The Rotate control contains a small circular icon which allows you to rotate maps containing oblique imagery. This control appears by default in the top left corner of the map.', INTERGEO_PLUGIN_NAME ) ?>
378
+ </p>
379
+ <table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
380
+ <tr>
381
+ <td class="intergeo_tlbr_cntrl_tbl_clmn">
382
+ <select class="intergeo_tlbr_cntrl_slct" name="map_rotateControlOptions_position">
383
+ <option value=""><?php esc_html_e( 'default position', INTERGEO_PLUGIN_NAME ) ?></option>
384
+ <option value="TOP_LEFT" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'TOP_LEFT' : false ) ?>>
385
+ <?php esc_html_e( 'Top Left', INTERGEO_PLUGIN_NAME ) ?>
386
+ </option>
387
+ <option value="TOP_CENTER" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'TOP_CENTER' : false ) ?>>
388
+ <?php esc_html_e( 'Top Center', INTERGEO_PLUGIN_NAME ) ?>
389
+ </option>
390
+ <option value="TOP_RIGHT" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'TOP_RIGHT' : false ) ?>>
391
+ <?php esc_html_e( 'Top Right', INTERGEO_PLUGIN_NAME ) ?>
392
+ </option>
393
+ <option value="RIGHT_TOP" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'RIGHT_TOP' : false ) ?>>
394
+ <?php esc_html_e( 'Right Top', INTERGEO_PLUGIN_NAME ) ?>
395
+ </option>
396
+ <option value="RIGHT_CENTER" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'RIGHT_CENTER' : false ) ?>>
397
+ <?php esc_html_e( 'Right Center', INTERGEO_PLUGIN_NAME ) ?>
398
+ </option>
399
+ <option value="RIGHT_BOTTOM" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'RIGHT_BOTTOM' : false ) ?>>
400
+ <?php esc_html_e( 'Right Bottom', INTERGEO_PLUGIN_NAME ) ?>
401
+ </option>
402
+ <option value="BOTTOM_RIGHT" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'BOTTOM_RIGHT' : false ) ?>>
403
+ <?php esc_html_e( 'Bottom Right', INTERGEO_PLUGIN_NAME ) ?>
404
+ </option>
405
+ <option value="BOTTOM_CENTER" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'BOTTOM_CENTER' : false ) ?>>
406
+ <?php esc_html_e( 'Bottom Center', INTERGEO_PLUGIN_NAME ) ?>
407
+ </option>
408
+ <option value="BOTTOM_LEFT" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'BOTTOM_LEFT' : false ) ?>>
409
+ <?php esc_html_e( 'Bottom Left', INTERGEO_PLUGIN_NAME ) ?>
410
+ </option>
411
+ <option value="LEFT_BOTTOM" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'LEFT_BOTTOM' : false ) ?>>
412
+ <?php esc_html_e( 'Left Bottom', INTERGEO_PLUGIN_NAME ) ?>
413
+ </option>
414
+ <option value="LEFT_CENTER" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'LEFT_CENTER' : false ) ?>>
415
+ <?php esc_html_e( 'Left Center', INTERGEO_PLUGIN_NAME ) ?>
416
+ </option>
417
+ <option value="LEFT_TOP" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'LEFT_TOP' : false ) ?>>
418
+ <?php esc_html_e( 'Left Top', INTERGEO_PLUGIN_NAME ) ?>
419
+ </option>
420
+ </select>
421
+ </td>
422
+ <td class="intergeo_tlbr_cntrl_tbl_clmn">&nbsp;</td>
423
+ </tr>
424
+ </table>
425
+ </div>
426
+ </li>
427
+ <li class="intergeo_tlbr_ul_li_ul_li">
428
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Overview Map control', INTERGEO_PLUGIN_NAME ) ?></span>
429
+ <div class="intergeo_tlbr_cntrl_items">
430
+ <div class="intergeo_tlbr_cntrl_item">
431
+ <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
432
+ <label>
433
+ <input type="hidden" name="map_overviewMapControl" value="0">
434
+ <input type="checkbox" name="map_overviewMapControl" value="1" <?php checked( isset( $json['map']['overviewMapControl'] ) ? $json['map']['overviewMapControl'] == 1 : false ) ?>>
435
+ <?php esc_html_e( 'Enabled', INTERGEO_PLUGIN_NAME ) ?>
436
+ </label>
437
+ </div>
438
+ <p class="intergeo_tlbr_cntrl_dsc">
439
+ <?php esc_html_e( 'The Overview Map control displays a thumbnail overview map reflecting the current map viewport within a wider area. This control appears by default in the bottom right corner of the map, and is by default shown in its collapsed state.', INTERGEO_PLUGIN_NAME ) ?>
440
+ </p>
441
+ <div class="intergeo_tlbr_cntrl_item">
442
+ <label>
443
+ <input type="hidden" name="map_overviewMapControlOptions_opened" value="0">
444
+ <input type="checkbox" name="map_overviewMapControlOptions_opened" value="1" <?php checked( isset( $json['map']['overviewMapControlOptions']['opened'] ) ? $json['map']['overviewMapControlOptions']['opened'] == 1 : false ) ?>>
445
+ <?php esc_html_e( 'Opened', INTERGEO_PLUGIN_NAME ) ?>
446
+ </label>
447
+ </div>
448
+ </div>
449
+ </li>
450
+ </ul>
templates/iframe/directions.php ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'Directions', INTERGEO_PLUGIN_NAME ) ?></h3>
2
+ <ul class="intergeo_tlbr_ul_li_ul">
3
+ <li class="intergeo_tlbr_ul_li_ul_li">
4
+ <p class="intergeo_tlbr_grp_dsc">
5
+ <?php esc_html_e( 'To add a new direction just click the button below:' ) ?>
6
+ </p>
7
+ <p class="intergeo_tlbr_grp_dsc">
8
+ <a id="intergeo_tlbr_new_drctn" class="button button-small" href="javascript:;">
9
+ <span id="intergeo_tlbr_drctn_icon"></span>
10
+ <?php esc_html_e( 'Add Direction', INTERGEO_PLUGIN_NAME ) ?>
11
+ </a>
12
+ </p>
13
+ </li>
14
+ <li class="intergeo_tlbr_ul_li_ul_li">
15
+ <script id="intergeo_tlbr_drctn_ttl_tmpl" type="text/html">
16
+ #%num% <?php esc_html_e( 'from', INTERGEO_PLUGIN_NAME ) ?> %from% <?php esc_html_e( 'to', INTERGEO_PLUGIN_NAME ) ?> %to% %mode%
17
+ </script>
18
+ <script id="intergeo_tlbr_drctn_tmpl" type="text/html">
19
+ <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_drctn" border="0" cellspacing="0" cellpadding="0">
20
+ <tr>
21
+ <td class="intergeo_tlbr_direction_title_td">
22
+ #%num% <?php esc_html_e( 'from', INTERGEO_PLUGIN_NAME ) ?> %from% <?php esc_html_e( 'to', INTERGEO_PLUGIN_NAME ) ?> %to% %mode%
23
+ </td>
24
+ <td>
25
+ <input type="hidden" class="intergeo_tlbr_drctn_from" name="directions[%pos%][from]" data-position="%pos%">
26
+ <input type="hidden" class="intergeo_tlbr_drctn_to" name="directions[%pos%][to]">
27
+ <input type="hidden" class="intergeo_tlbr_drctn_mode" name="directions[%pos%][mode]">
28
+
29
+ <a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete direction', INTERGEO_PLUGIN_NAME ) ?>"></a>
30
+ <a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit direction', INTERGEO_PLUGIN_NAME ) ?>"></a>
31
+ </td>
32
+ </tr>
33
+ </table>
34
+ </script>
35
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Created directions', INTERGEO_PLUGIN_NAME ) ?></span>
36
+ <div id="intergeo_tlbr_drctns" class="intergeo_tlbr_cntrl_items">
37
+ <?php if ( !empty( $json['directions'] ) ) : ?>
38
+ <?php foreach ( $json['directions'] as $i => $direction ) : ?>
39
+ <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_drctn" border="0" cellspacing="0" cellpadding="0">
40
+ <tr>
41
+ <td class="intergeo_tlbr_direction_title_td">
42
+ #<?php echo $i + 1 ?>
43
+ <?php esc_html_e( 'from', INTERGEO_PLUGIN_NAME ) ?>
44
+ <?php echo esc_html( $direction['from'] ) ?>
45
+ <?php esc_html_e( 'to', INTERGEO_PLUGIN_NAME ) ?>
46
+ <?php echo esc_html( $direction['to'] ) ?>
47
+ <?php
48
+ switch ( $direction['mode'] ) :
49
+ case 'BICYCLING':
50
+ esc_html_e( 'via bicycle paths & preferred streets', INTERGEO_PLUGIN_NAME );
51
+ break;
52
+ case 'TRANSIT':
53
+ esc_html_e( 'via public transit routes', INTERGEO_PLUGIN_NAME );
54
+ break;
55
+ case 'WALKING':
56
+ esc_html_e( 'via pedestrian paths & sidewalks', INTERGEO_PLUGIN_NAME );
57
+ break;
58
+ case 'DRIVING':
59
+ default:
60
+ esc_html_e( 'via standard driving directions', INTERGEO_PLUGIN_NAME );
61
+ break;
62
+ endswitch;
63
+ ?>
64
+ </td>
65
+ <td>
66
+ <input type="hidden" class="intergeo_tlbr_drctn_from" name="directions[<?php echo $i ?>][from]" data-position="<?php echo $i ?>" value="<?php echo esc_attr( $direction['from'] ) ?>">
67
+ <input type="hidden" class="intergeo_tlbr_drctn_to" name="directions[<?php echo $i ?>][to]" value="<?php echo esc_attr( $direction['to'] ) ?>">
68
+ <input type="hidden" class="intergeo_tlbr_drctn_mode" name="directions[<?php echo $i ?>][mode]" value="<?php echo esc_attr( $direction['mode'] ) ?>">
69
+
70
+ <a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete direction', INTERGEO_PLUGIN_NAME ) ?>"></a>
71
+ <a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit direction', INTERGEO_PLUGIN_NAME ) ?>"></a>
72
+ </td>
73
+ </tr>
74
+ </table>
75
+ <?php endforeach; ?>
76
+ <?php endif; ?>
77
+ </div>
78
+ </li>
79
+ </ul>
templates/iframe/form.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <form id="intergeo_frm" method="post"<?php echo !$post_id ? ' target="_parent"' : '' ?>>
2
+ <input type="hidden" id="intergeo_map_lat" name="lat" value="<?php echo isset( $json['lat'] ) ? esc_attr( $json['lat'] ) : 48.1366069 ?>">
3
+ <input type="hidden" id="intergeo_map_lng" name="lng" value="<?php echo isset( $json['lng'] ) ? esc_attr( $json['lng'] ) : 11.577085099999977 ?>">
4
+ <input type="hidden" id="intergeo_map_zoom" name="zoom" value="<?php echo isset( $json['zoom'] ) ? esc_attr( $json['zoom'] ) : 5 ?>">
5
+
6
+ <div id="intergeo_tlbr">
7
+ <div id="intergeo_tlbr_ttl">Inter<span style="color:#4067dc">g</span><span style="color:#e21b31">e</span><span style="color:#fcaa08">o</span> <?php esc_html_e( 'Maps', INTERGEO_PLUGIN_NAME ) ?></div>
8
+ <ul id="intergeo_tlbr_ul">
9
+ <li class="intergeo_tlbr_ul_li">
10
+ <?php include INTERGEO_ABSPATH . '/templates/iframe/positioning.php' ?>
11
+ </li>
12
+ <li class="intergeo_tlbr_ul_li">
13
+ <?php include INTERGEO_ABSPATH . '/templates/iframe/controls.php' ?>
14
+ </li>
15
+ <li class="intergeo_tlbr_ul_li">
16
+ <?php include INTERGEO_ABSPATH . '/templates/iframe/styles.php' ?>
17
+ </li>
18
+ <li class="intergeo_tlbr_ul_li">
19
+ <?php include INTERGEO_ABSPATH . '/templates/iframe/overlays.php' ?>
20
+ </li>
21
+ <li class="intergeo_tlbr_ul_li">
22
+ <?php include INTERGEO_ABSPATH . '/templates/iframe/directions.php' ?>
23
+ </li>
24
+ <li class="intergeo_tlbr_ul_li">
25
+ <?php include INTERGEO_ABSPATH . '/templates/iframe/layers.php' ?>
26
+ </li>
27
+ <li class="intergeo_tlbr_ul_li">
28
+ <?php include INTERGEO_ABSPATH . '/templates/iframe/adsense.php' ?>
29
+ </li>
30
+ </ul>
31
+ </div>
32
+ <div id="intergeo_canvas_wrapper">
33
+ <div id="intergeo_canvas"></div>
34
+ <div id="intergeo_canvas_center" title="<?php esc_attr_e( 'The center of the map', INTERGEO_PLUGIN_NAME ) ?>"<?php echo !$show_map_center ? ' style="display:none;"' : ''; ?>></div>
35
+ </div>
36
+ <div id="intergeo_footer">
37
+ <a id="intergeo_go_to_address" class="button button-large" href="javascript:;"><?php esc_html_e( 'Go to addrses', INTERGEO_PLUGIN_NAME ) ?></a>
38
+ <input type="submit" class="button button-primary button-large" value="<?php echo $submit_text ?>">
39
+ </div>
40
+ </form>
41
+
42
+ <?php include INTERGEO_ABSPATH . '/templates/iframe/popups.php'; ?>
templates/iframe/layers.php ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'Layers', INTERGEO_PLUGIN_NAME ) ?></h3>
2
+ <ul class="intergeo_tlbr_ul_li_ul">
3
+ <li class="intergeo_tlbr_ul_li_ul_li">
4
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Traffic layer', INTERGEO_PLUGIN_NAME ) ?></span>
5
+ <div class="intergeo_tlbr_cntrl_items">
6
+ <div class="intergeo_tlbr_cntrl_item">
7
+ <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
8
+ <label>
9
+ <input type="hidden" name="layer_traffic" value="0">
10
+ <input type="checkbox" name="layer_traffic" value="1" <?php checked( isset( $json['layer']['traffic'] ) ? $json['layer']['traffic'] == 1 : false ) ?>>
11
+ <?php esc_html_e( 'Enabled', INTERGEO_PLUGIN_NAME ) ?>
12
+ </label>
13
+ </div>
14
+ <p class="intergeo_tlbr_cntrl_dsc">
15
+ <?php printf( esc_html__( 'Allows you to add real-time traffic information (where supported) to your map. Traffic information is provided for the time at which the request is made. Consult %s this spreadsheet %s to determine traffic coverage support.', INTERGEO_PLUGIN_NAME ), '<a href="http://gmaps-samples.googlecode.com/svn/trunk/mapcoverage_filtered.html" target="_blank">', '</a>' ) ?>
16
+ </p>
17
+ </div>
18
+ </li>
19
+ <li class="intergeo_tlbr_ul_li_ul_li">
20
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Bicycling layer', INTERGEO_PLUGIN_NAME ) ?></span>
21
+ <div class="intergeo_tlbr_cntrl_items">
22
+ <div class="intergeo_tlbr_cntrl_item">
23
+ <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
24
+ <label>
25
+ <input type="hidden" name="layer_bicycling" value="0">
26
+ <input type="checkbox" name="layer_bicycling" value="1" <?php checked( isset( $json['layer']['bicycling'] ) ? $json['layer']['bicycling'] == 1 : false ) ?>>
27
+ <?php esc_html_e( 'Enabled', INTERGEO_PLUGIN_NAME ) ?>
28
+ </label>
29
+ </div>
30
+ <p class="intergeo_tlbr_cntrl_dsc">
31
+ <?php esc_html_e( 'Allows you to add bicycle information to your map. It renders a layer of bike paths, suggested bike routes and other overlays specific to bicycling usage on top of the given map. Additionally, the layer alters the style of the base map itself to emphasize streets supporting bicycle routes and de-emphasize streets inappropriate for bicycles.', INTERGEO_PLUGIN_NAME ) ?>
32
+ </p>
33
+ </div>
34
+ </li>
35
+ <li class="intergeo_tlbr_ul_li_ul_li">
36
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Weather & Cloud layers', INTERGEO_PLUGIN_NAME ) ?></span>
37
+ <div class="intergeo_tlbr_cntrl_items">
38
+ <div class="intergeo_tlbr_cntrl_item">
39
+ <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
40
+ <label>
41
+ <input type="hidden" name="layer_cloud" value="0">
42
+ <input type="checkbox" name="layer_cloud" value="1" <?php checked( isset( $json['layer']['cloud'] ) ? $json['layer']['cloud'] == 1 : false ) ?>>
43
+ <?php esc_html_e( 'Enabled cloud', INTERGEO_PLUGIN_NAME ) ?>
44
+ </label>
45
+ </div>
46
+ <p class="intergeo_tlbr_cntrl_dsc">
47
+ <?php esc_html_e( 'Allows you to add the display of cloud imagery on your map. Enabling the cloud layer will add cloud coverage imagery to your map, visible at low zoom levels.', INTERGEO_PLUGIN_NAME ) ?>
48
+ </p>
49
+ <div class="intergeo_tlbr_cntrl_item">
50
+ <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
51
+ <label>
52
+ <input type="hidden" name="layer_weather" value="0">
53
+ <input type="checkbox" name="layer_weather" value="1" <?php checked( isset( $json['layer']['weather'] ) ? $json['layer']['weather'] == 1 : false ) ?>>
54
+ <?php esc_html_e( 'Enabled weather', INTERGEO_PLUGIN_NAME ) ?>
55
+ </label>
56
+ </div>
57
+ <p class="intergeo_tlbr_cntrl_dsc">
58
+ <?php esc_html_e( 'Allows you to add the display of weather data on your map. Enabling the weather layer will show current weather conditions from weather.com on your map, including icons that denote sun, clouds, rain and so on.', INTERGEO_PLUGIN_NAME ) ?>
59
+ </p>
60
+ <table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
61
+ <tr>
62
+ <td class="intergeo_tlbr_cntrl_tbl_clmn">
63
+ <select class="intergeo_tlbr_cntrl_slct" name="weather_temperatureUnits">
64
+ <option value="">
65
+ <?php esc_html_e( 'temperature units', INTERGEO_PLUGIN_NAME ) ?>
66
+ </option>
67
+ <option value="CELSIUS" <?php selected( isset( $json['weather']['temperatureUnits'] ) ? $json['weather']['temperatureUnits'] == 'CELSIUS' : false ) ?>>
68
+ <?php esc_html_e( 'Celsius', INTERGEO_PLUGIN_NAME ) ?>
69
+ </option>
70
+ <option value="FAHRENHEIT" <?php selected( isset( $json['weather']['temperatureUnits'] ) ? $json['weather']['temperatureUnits'] == 'FAHRENHEIT' : false ) ?>>
71
+ <?php esc_html_e( 'Fahrenheit', INTERGEO_PLUGIN_NAME ) ?>
72
+ </option>
73
+ </select>
74
+ </td>
75
+ <td class="intergeo_tlbr_cntrl_tbl_clmn">
76
+ <select class="intergeo_tlbr_cntrl_slct" name="weather_windSpeedUnits">
77
+ <option value="">
78
+ <?php esc_html_e( 'wind speed units', INTERGEO_PLUGIN_NAME ) ?>
79
+ </option>
80
+ <option value="KILOMETERS_PER_HOUR" <?php selected( isset( $json['weather']['windSpeedUnits'] ) ? $json['weather']['windSpeedUnits'] == 'KILOMETERS_PER_HOUR' : false ) ?>>
81
+ <?php esc_html_e( 'kilometers per hour', INTERGEO_PLUGIN_NAME ) ?>
82
+ </option>
83
+ <option value="METERS_PER_SECOND" <?php selected( isset( $json['weather']['windSpeedUnits'] ) ? $json['weather']['windSpeedUnits'] == 'METERS_PER_SECOND' : false ) ?>>
84
+ <?php esc_html_e( 'meters per second', INTERGEO_PLUGIN_NAME ) ?>
85
+ </option>
86
+ <option value="MILES_PER_HOUR" <?php selected( isset( $json['weather']['windSpeedUnits'] ) ? $json['weather']['windSpeedUnits'] == 'MILES_PER_HOUR' : false ) ?>>
87
+ <?php esc_html_e( 'miles per hour', INTERGEO_PLUGIN_NAME ) ?>
88
+ </option>
89
+ </select>
90
+ </td>
91
+ </tr>
92
+ </table>
93
+ </div>
94
+ </li>
95
+ <li class="intergeo_tlbr_ul_li_ul_li">
96
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Panoramio layer', INTERGEO_PLUGIN_NAME ) ?></span>
97
+ <div class="intergeo_tlbr_cntrl_items">
98
+ <div class="intergeo_tlbr_cntrl_item">
99
+ <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
100
+ <label>
101
+ <input type="hidden" name="layer_panoramio" value="0">
102
+ <input type="checkbox" name="layer_panoramio" value="1" <?php checked( isset( $json['layer']['panoramio'] ) ? $json['layer']['panoramio'] == 1 : false ) ?>>
103
+ <?php esc_html_e( 'Enabled', INTERGEO_PLUGIN_NAME ) ?>
104
+ </label>
105
+ </div>
106
+ <p class="intergeo_tlbr_cntrl_dsc">
107
+ <?php esc_html_e( 'Allows you to add photos from Panoramio as a layer to your map. It renders a layer of geotagged photo icons from Panoramio on the map as a series of large and small photo icons.', INTERGEO_PLUGIN_NAME ) ?>
108
+ </p>
109
+ <div class="intergeo_tlbr_cntrl_item">
110
+ <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
111
+ <?php esc_html_e( 'Restricting photos by tag', INTERGEO_PLUGIN_NAME ) ?>
112
+ <input type="text" name="panoramio_tag" class="intergeo_tlbr_cntrl_txt intergeo_tlbr_cntrl_onkeyup" value="<?php echo isset( $json['panoramio']['tag'] ) ? esc_attr( $json['panoramio']['tag'] ) : '' ?>">
113
+ </div>
114
+ <p class="intergeo_tlbr_cntrl_dsc">
115
+ <?php esc_html_e( 'Allows you to restrict the set of photos to display on the map to those matching a certain textual tag.', INTERGEO_PLUGIN_NAME ) ?>
116
+ </p>
117
+ <div class="intergeo_tlbr_cntrl_item">
118
+ <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
119
+ <?php esc_html_e( 'Restricting photos by user id', INTERGEO_PLUGIN_NAME ) ?>
120
+ <input type="text" name="panoramio_userId" class="intergeo_tlbr_cntrl_txt intergeo_tlbr_cntrl_onkeyup" value="<?php echo isset( $json['panoramio']['userId'] ) ? esc_attr( $json['panoramio']['userId'] ) : '' ?>">
121
+ </div>
122
+ <p class="intergeo_tlbr_cntrl_dsc">
123
+ <?php esc_html_e( 'Allows you to restrict the set of photos to display on the map to those matching a particular user.', INTERGEO_PLUGIN_NAME ) ?>
124
+ </p>
125
+ </div>
126
+ </li>
127
+ </ul>
templates/iframe/overlays.php ADDED
@@ -0,0 +1,340 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'Overlays', INTERGEO_PLUGIN_NAME ) ?></h3>
2
+ <ul class="intergeo_tlbr_ul_li_ul">
3
+ <li class="intergeo_tlbr_li_ul_li">
4
+ <p class="intergeo_tlbr_grp_dsc">
5
+ <?php esc_html_e( 'Drawing tools allows you to add overlays over the map. You can add markers, polylines, polygons, circles and rectangles. To enable drawing tools just put a tick in the checkbox below.', INTERGEO_PLUGIN_NAME ) ?>
6
+ </p>
7
+ <p class="intergeo_tlbr_grp_dsc">
8
+ <?php esc_html_e( 'To delete a marker, just double click on it and an item will be removed.', INTERGEO_PLUGIN_NAME ) ?>
9
+ </p>
10
+ </li>
11
+ <li class="intergeo_tlbr_ul_li_ul_li">
12
+ <div class="intergeo_tlbr_cntrl_items" style="display:block">
13
+ <div class="intergeo_tlbr_cntrl_item">
14
+ <label>
15
+ <input type="checkbox" id="intergeo_tlbr_drawing_tools">
16
+ <?php esc_html_e( 'Enable drawing tools', INTERGEO_PLUGIN_NAME ) ?>
17
+ </label>
18
+ </div>
19
+ </div>
20
+ </li>
21
+ <li class="intergeo_tlbr_ul_li_ul_li">
22
+ <script id="intergeo_tlbr_marker_tmpl" type="text/html">
23
+ <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_marker" border="0" cellspacing="0" cellpadding="0">
24
+ <tr>
25
+ <td class="intergeo_tlbr_marker_title_td">
26
+ #%num% <?php esc_html_e( 'marker', INTERGEO_PLUGIN_NAME ) ?>
27
+ </td>
28
+ <td>
29
+ <input type="hidden" class="intergeo_tlbr_marker_location" name="overlays_marker[%pos%][position]" data-position="%pos%">
30
+ <input type="hidden" class="intergeo_tlbr_marker_title" name="overlays_marker[%pos%][title]">
31
+ <input type="hidden" class="intergeo_tlbr_marker_icon" name="overlays_marker[%pos%][icon]">
32
+ <input type="hidden" class="intergeo_tlbr_marker_info" name="overlays_marker[%pos%][info]">
33
+
34
+ <a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete marker', INTERGEO_PLUGIN_NAME ) ?>"></a>
35
+ <a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit marker', INTERGEO_PLUGIN_NAME ) ?>"></a>
36
+ </td>
37
+ </tr>
38
+ </table>
39
+ </script>
40
+
41
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Markers', INTERGEO_PLUGIN_NAME ) ?></span>
42
+ <div id="intergeo_tlbr_markers" class="intergeo_tlbr_cntrl_items">
43
+ <?php if ( !empty( $json['overlays']['marker'] ) ) : ?>
44
+ <?php foreach ( $json['overlays']['marker'] as $i => $overlay ) : ?>
45
+ <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_marker" border="0" cellspacing="0" cellpadding="0">
46
+ <tr>
47
+ <td class="intergeo_tlbr_marker_title_td">
48
+ <?php if ( empty( $overlay['title'] ) ) : ?>
49
+ #<?php echo $i + 1 ?> <?php esc_html_e( 'marker', INTERGEO_PLUGIN_NAME ) ?>
50
+ <?php else : ?>
51
+ <?php echo esc_html( $overlay['title'] ) ?>
52
+ <?php endif; ?>
53
+ </td>
54
+ <td>
55
+ <input type="hidden" class="intergeo_tlbr_marker_location" name="overlays_marker[<?php echo $i ?>][position]" value="<?php echo esc_attr( implode( ',', $overlay['position'] ) ) ?>" data-position="<?php echo $i ?>">
56
+ <input type="hidden" class="intergeo_tlbr_marker_title" name="overlays_marker[<?php echo $i ?>][title]" value="<?php echo esc_attr( $overlay['title'] ) ?>">
57
+ <input type="hidden" class="intergeo_tlbr_marker_icon" name="overlays_marker[<?php echo $i ?>][icon]" value="<?php echo esc_attr( $overlay['icon'] ) ?>">
58
+ <input type="hidden" class="intergeo_tlbr_marker_info" name="overlays_marker[<?php echo $i ?>][info]" value="<?php echo esc_attr( $overlay['info'] ) ?>">
59
+
60
+ <a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete marker', INTERGEO_PLUGIN_NAME ) ?>"></a>
61
+ <a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit marker', INTERGEO_PLUGIN_NAME ) ?>"></a>
62
+ </td>
63
+ </tr>
64
+ </table>
65
+ <?php endforeach; ?>
66
+ <?php endif; ?>
67
+ </div>
68
+ </li>
69
+ <li class="intergeo_tlbr_ul_li_ul_li">
70
+ <script id="intergeo_tlbr_polyline_tmpl" type="text/html">
71
+ <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_polyline" border="0" cellspacing="0" cellpadding="0">
72
+ <tr>
73
+ <td>
74
+ #%num% <?php esc_html_e( 'polyline', INTERGEO_PLUGIN_NAME ) ?>
75
+ </td>
76
+ <td>
77
+ <input type="hidden" class="intergeo_tlbr_polyline_path" name="overlays_polyline[%pos%][path]" data-position="%pos%">
78
+ <input type="hidden" class="intergeo_tlbr_polyline_weight" name="overlays_polyline[%pos%][weight]">
79
+ <input type="hidden" class="intergeo_tlbr_polyline_opacity" name="overlays_polyline[%pos%][opacity]">
80
+ <input type="hidden" class="intergeo_tlbr_polyline_color" name="overlays_polyline[%pos%][color]">
81
+
82
+ <a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete polyline', INTERGEO_PLUGIN_NAME ) ?>"></a>
83
+ <a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit polyline', INTERGEO_PLUGIN_NAME ) ?>"></a>
84
+
85
+ <span class="intergeo_tlbr_clr_prvw" style="background-color:black;"></span>
86
+ </td>
87
+ </tr>
88
+ </table>
89
+ </script>
90
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Polylines', INTERGEO_PLUGIN_NAME ) ?></span>
91
+ <div id="intergeo_tlbr_polylines" class="intergeo_tlbr_cntrl_items"><?php
92
+ if ( !empty( $json['overlays']['polyline'] ) ) :
93
+ $i = 0;
94
+ foreach ( $json['overlays']['polyline'] as $overlay ) :
95
+ $path = array();
96
+ foreach( $overlay['path'] as $point ) :
97
+ $path[] = implode( ',', $point );
98
+ endforeach; ?>
99
+ <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_polyline" border="0" cellspacing="0" cellpadding="0">
100
+ <tr>
101
+ <td>
102
+ #<?php echo $i + 1 ?> <?php esc_html_e( 'polyline', INTERGEO_PLUGIN_NAME ) ?>
103
+ </td>
104
+ <td>
105
+ <input type="hidden" class="intergeo_tlbr_polyline_path" name="overlays_polyline[<?php echo $i ?>][path]" value="<?php echo implode( ';', $path ) ?>" data-position="<?php echo $i ?>">
106
+ <input type="hidden" class="intergeo_tlbr_polyline_weight" name="overlays_polyline[<?php echo $i ?>][weight]" value="<?php echo esc_attr( $overlay['weight'] ) ?>">
107
+ <input type="hidden" class="intergeo_tlbr_polyline_opacity" name="overlays_polyline[<?php echo $i ?>][opacity]" value="<?php echo esc_attr( $overlay['opacity'] ) ?>">
108
+ <input type="hidden" class="intergeo_tlbr_polyline_color" name="overlays_polyline[<?php echo $i++ ?>][color]" value="<?php echo esc_attr( $overlay['color'] ) ?>">
109
+
110
+ <a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete polyline', INTERGEO_PLUGIN_NAME ) ?>"></a>
111
+ <a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit polyline', INTERGEO_PLUGIN_NAME ) ?>"></a>
112
+
113
+ <span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['color'] ) ?>;opacity:<?php echo esc_attr( $overlay['opacity'] ) ?>"></span>
114
+ </td>
115
+ </tr>
116
+ </table>
117
+ <?php endforeach; ?>
118
+ <?php endif; ?>
119
+ </div>
120
+ </li>
121
+ <li class="intergeo_tlbr_ul_li_ul_li">
122
+ <script id="intergeo_tlbr_rectangle_tmpl" type="text/html">
123
+ <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_rectangle" border="0" cellspacing="0" cellpadding="0">
124
+ <tr>
125
+ <td>
126
+ #%num% <?php esc_html_e( 'rectangle', INTERGEO_PLUGIN_NAME ) ?>
127
+ </td>
128
+ <td>
129
+ <input type="hidden" class="intergeo_tlbr_rectangle_path" name="overlays_rectangle[%pos%][path]" data-position="%pos%">
130
+ <input type="hidden" class="intergeo_tlbr_rectangle_weight" name="overlays_rectangle[%pos%][weight]">
131
+ <input type="hidden" class="intergeo_tlbr_rectangle_stroke_opacity" name="overlays_rectangle[%pos%][stroke_opacity]">
132
+ <input type="hidden" class="intergeo_tlbr_rectangle_position" name="overlays_rectangle[%pos%][position]">
133
+ <input type="hidden" class="intergeo_tlbr_rectangle_stroke_color" name="overlays_rectangle[%pos%][stroke_color]">
134
+ <input type="hidden" class="intergeo_tlbr_rectangle_fill_opacity" name="overlays_rectangle[%pos%][fill_opacity]">
135
+ <input type="hidden" class="intergeo_tlbr_rectangle_fill_color" name="overlays_rectangle[%pos%][fill_color]">
136
+
137
+ <a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete rectangle', INTERGEO_PLUGIN_NAME ) ?>"></a>
138
+ <a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit rectangle', INTERGEO_PLUGIN_NAME ) ?>"></a>
139
+
140
+ <span class="intergeo_tlbr_clr_prvw" style="background-color:black;opacity:0.3;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=30)';filter:alpha(opacity=30);"></span>
141
+ <span class="intergeo_tlbr_clr_prvw" style="background-color:black;"></span>
142
+ </td>
143
+ </tr>
144
+ </table>
145
+ </script>
146
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Rectangles', INTERGEO_PLUGIN_NAME ) ?></span>
147
+ <div id="intergeo_tlbr_rectangles" class="intergeo_tlbr_cntrl_items"><?php
148
+ if ( !empty( $json['overlays']['rectangle'] ) ) :
149
+ $i = 0;
150
+ foreach ( $json['overlays']['rectangle'] as $overlay ) :
151
+
152
+ $fill_opacity = "opacity:0.3;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=30)';filter:alpha(opacity=30);";
153
+ if ( is_numeric( $overlay['fill_opacity'] ) ) {
154
+ $opacity = floatval( $overlay['fill_opacity'] );
155
+ $fill_opacity = sprintf( "opacity:%1\$.2f;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=%2\$u)';filter:alpha(opacity=%2\$u);", $opacity, $opacity * 100 );
156
+ }
157
+
158
+ $stroke_opacity = '';
159
+ if ( is_numeric( $overlay['stroke_opacity'] ) ) {
160
+ $opacity = floatval( $overlay['stroke_opacity'] );
161
+ $stroke_opacity = sprintf( "opacity:%1\$f;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=%2\$u)';filter:alpha(opacity=%2\$u);", $opacity, $opacity * 100 );
162
+ }
163
+
164
+ $path = array();
165
+ foreach( $overlay['path'] as $point ) :
166
+ $path[] = implode( ',', $point );
167
+ endforeach; ?>
168
+ <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_rectangle" border="0" cellspacing="0" cellpadding="0">
169
+ <tr>
170
+ <td>
171
+ #<?php echo $i + 1 ?> <?php esc_html_e( 'rectangle', INTERGEO_PLUGIN_NAME ) ?>
172
+ </td>
173
+ <td>
174
+ <input type="hidden" class="intergeo_tlbr_rectangle_path" name="overlays_rectangle[<?php echo $i ?>][path]" value="<?php echo implode( ';', $path ) ?>" data-position="<?php echo $i ?>">
175
+ <input type="hidden" class="intergeo_tlbr_rectangle_weight" name="overlays_rectangle[<?php echo $i ?>][weight]" value="<?php echo esc_attr( $overlay['weight'] ) ?>">
176
+ <input type="hidden" class="intergeo_tlbr_rectangle_stroke_opacity" name="overlays_rectangle[<?php echo $i ?>][stroke_opacity]" value="<?php echo esc_attr( $overlay['stroke_opacity'] ) ?>">
177
+ <input type="hidden" class="intergeo_tlbr_rectangle_position" name="overlays_rectangle[<?php echo $i ?>][position]" value="<?php echo esc_attr( $overlay['position'] ) ?>">
178
+ <input type="hidden" class="intergeo_tlbr_rectangle_stroke_color" name="overlays_rectangle[<?php echo $i ?>][stroke_color]" value="<?php echo esc_attr( $overlay['stroke_color'] ) ?>">
179
+ <input type="hidden" class="intergeo_tlbr_rectangle_fill_opacity" name="overlays_rectangle[<?php echo $i ?>][fill_opacity]" value="<?php echo esc_attr( $overlay['fill_opacity'] ) ?>">
180
+ <input type="hidden" class="intergeo_tlbr_rectangle_fill_color" name="overlays_rectangle[<?php echo $i++ ?>][fill_color]" value="<?php echo esc_attr( $overlay['fill_color'] ) ?>">
181
+
182
+ <a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete rectangle', INTERGEO_PLUGIN_NAME ) ?>"></a>
183
+ <a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit rectangle', INTERGEO_PLUGIN_NAME ) ?>"></a>
184
+
185
+ <span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['fill_color'] ) ?>;<?php echo $fill_opacity ?>"></span>
186
+ <span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['stroke_color'] ) ?>;<?php echo $stroke_opacity ?>"></span>
187
+ </td>
188
+ </tr>
189
+ </table>
190
+ <?php endforeach; ?>
191
+ <?php endif; ?>
192
+ </div>
193
+ </li>
194
+ <li class="intergeo_tlbr_ul_li_ul_li">
195
+ <script id="intergeo_tlbr_circle_tmpl" type="text/html">
196
+ <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_circle" border="0" cellspacing="0" cellpadding="0">
197
+ <tr>
198
+ <td>
199
+ #%num% <?php esc_html_e( 'circle', INTERGEO_PLUGIN_NAME ) ?>
200
+ </td>
201
+ <td>
202
+ <input type="hidden" class="intergeo_tlbr_circle_path" name="overlays_circle[%pos%][path]" data-position="%pos%">
203
+ <input type="hidden" class="intergeo_tlbr_circle_weight" name="overlays_circle[%pos%][weight]">
204
+ <input type="hidden" class="intergeo_tlbr_circle_stroke_opacity" name="overlays_circle[%pos%][stroke_opacity]">
205
+ <input type="hidden" class="intergeo_tlbr_circle_position" name="overlays_circle[%pos%][position]">
206
+ <input type="hidden" class="intergeo_tlbr_circle_stroke_color" name="overlays_circle[%pos%][stroke_color]">
207
+ <input type="hidden" class="intergeo_tlbr_circle_fill_opacity" name="overlays_circle[%pos%][fill_opacity]">
208
+ <input type="hidden" class="intergeo_tlbr_circle_fill_color" name="overlays_circle[%pos%][fill_color]">
209
+
210
+ <a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete rectangle', INTERGEO_PLUGIN_NAME ) ?>"></a>
211
+ <a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit rectangle', INTERGEO_PLUGIN_NAME ) ?>"></a>
212
+
213
+ <span class="intergeo_tlbr_clr_prvw" style="background-color:black;opacity:0.3;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=30)';filter:alpha(opacity=30);"></span>
214
+ <span class="intergeo_tlbr_clr_prvw" style="background-color:black;"></span>
215
+ </td>
216
+ </tr>
217
+ </table>
218
+ </script>
219
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Circles', INTERGEO_PLUGIN_NAME ) ?></span>
220
+ <div id="intergeo_tlbr_circles" class="intergeo_tlbr_cntrl_items"><?php
221
+ if ( !empty( $json['overlays']['circle'] ) ) :
222
+ $i = 0;
223
+ foreach ( $json['overlays']['circle'] as $overlay ) :
224
+
225
+ $fill_opacity = "opacity:0.3;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=30)';filter:alpha(opacity=30);";
226
+ if ( is_numeric( $overlay['fill_opacity'] ) ) {
227
+ $opacity = floatval( $overlay['fill_opacity'] );
228
+ $fill_opacity = sprintf( "opacity:%1\$.2f;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=%2\$u)';filter:alpha(opacity=%2\$u);", $opacity, $opacity * 100 );
229
+ }
230
+
231
+ $stroke_opacity = '';
232
+ if ( is_numeric( $overlay['stroke_opacity'] ) ) {
233
+ $opacity = floatval( $overlay['stroke_opacity'] );
234
+ $stroke_opacity = sprintf( "opacity:%1\$f;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=%2\$u)';filter:alpha(opacity=%2\$u);", $opacity, $opacity * 100 );
235
+ }
236
+
237
+ $path = array();
238
+ foreach( $overlay['path'] as $point ) :
239
+ $path[] = implode( ',', $point );
240
+ endforeach; ?>
241
+ <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_circle" border="0" cellspacing="0" cellpadding="0">
242
+ <tr>
243
+ <td>
244
+ #<?php echo $i + 1 ?> <?php esc_html_e( 'circle', INTERGEO_PLUGIN_NAME ) ?>
245
+ </td>
246
+ <td>
247
+ <input type="hidden" class="intergeo_tlbr_circle_path" name="overlays_circle[<?php echo $i ?>][path]" value="<?php echo implode( ';', $path ) ?>" data-position="<?php echo $i ?>">
248
+ <input type="hidden" class="intergeo_tlbr_circle_weight" name="overlays_circle[<?php echo $i ?>][weight]" value="<?php echo esc_attr( $overlay['weight'] ) ?>">
249
+ <input type="hidden" class="intergeo_tlbr_circle_stroke_opacity" name="overlays_circle[<?php echo $i ?>][stroke_opacity]" value="<?php echo esc_attr( $overlay['stroke_opacity'] ) ?>">
250
+ <input type="hidden" class="intergeo_tlbr_circle_position" name="overlays_circle[<?php echo $i ?>][position]" value="<?php echo esc_attr( $overlay['position'] ) ?>">
251
+ <input type="hidden" class="intergeo_tlbr_circle_stroke_color" name="overlays_circle[<?php echo $i ?>][stroke_color]" value="<?php echo esc_attr( $overlay['stroke_color'] ) ?>">
252
+ <input type="hidden" class="intergeo_tlbr_circle_fill_opacity" name="overlays_circle[<?php echo $i ?>][fill_opacity]" value="<?php echo esc_attr( $overlay['fill_opacity'] ) ?>">
253
+ <input type="hidden" class="intergeo_tlbr_circle_fill_color" name="overlays_circle[<?php echo $i++ ?>][fill_color]" value="<?php echo esc_attr( $overlay['fill_color'] ) ?>">
254
+
255
+ <a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete circle', INTERGEO_PLUGIN_NAME ) ?>"></a>
256
+ <a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit circle', INTERGEO_PLUGIN_NAME ) ?>"></a>
257
+
258
+ <span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['fill_color'] ) ?>;<?php echo $fill_opacity ?>"></span>
259
+ <span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['stroke_color'] ) ?>;<?php echo $stroke_opacity ?>"></span>
260
+ </td>
261
+ </tr>
262
+ </table>
263
+ <?php endforeach; ?>
264
+ <?php endif; ?>
265
+ </div>
266
+ </li>
267
+ <li class="intergeo_tlbr_ul_li_ul_li">
268
+ <script id="intergeo_tlbr_polygon_tmpl" type="text/html">
269
+ <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_polygon" border="0" cellspacing="0" cellpadding="0">
270
+ <tr>
271
+ <td>
272
+ #%num% <?php esc_html_e( 'polygon', INTERGEO_PLUGIN_NAME ) ?>
273
+ </td>
274
+ <td>
275
+ <input type="hidden" class="intergeo_tlbr_polygon_path" name="overlays_polygon[%pos%][path]" data-position="%pos%">
276
+ <input type="hidden" class="intergeo_tlbr_polygon_weight" name="overlays_polygon[%pos%][weight]">
277
+ <input type="hidden" class="intergeo_tlbr_polygon_stroke_opacity" name="overlays_polygon[%pos%][stroke_opacity]">
278
+ <input type="hidden" class="intergeo_tlbr_polygon_position" name="overlays_polygon[%pos%][position]">
279
+ <input type="hidden" class="intergeo_tlbr_polygon_stroke_color" name="overlays_polygon[%pos%][stroke_color]">
280
+ <input type="hidden" class="intergeo_tlbr_polygon_fill_opacity" name="overlays_polygon[%pos%][fill_opacity]">
281
+ <input type="hidden" class="intergeo_tlbr_polygon_fill_color" name="overlays_polygon[%pos%][fill_color]">
282
+
283
+ <a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete polygon', INTERGEO_PLUGIN_NAME ) ?>"></a>
284
+ <a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit polygon', INTERGEO_PLUGIN_NAME ) ?>"></a>
285
+
286
+ <span class="intergeo_tlbr_clr_prvw" style="background-color:black;opacity:0.3;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=30)';filter:alpha(opacity=30);"></span>
287
+ <span class="intergeo_tlbr_clr_prvw" style="background-color:black;"></span>
288
+ </td>
289
+ </tr>
290
+ </table>
291
+ </script>
292
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Polygons', INTERGEO_PLUGIN_NAME ) ?></span>
293
+ <div id="intergeo_tlbr_polygons" class="intergeo_tlbr_cntrl_items"><?php
294
+ if ( !empty( $json['overlays']['polygon'] ) ) :
295
+ $i = 0;
296
+ foreach ( $json['overlays']['polygon'] as $overlay ) :
297
+
298
+ $fill_opacity = "opacity:0.3;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=30)';filter:alpha(opacity=30);";
299
+ if ( is_numeric( $overlay['fill_opacity'] ) ) {
300
+ $opacity = floatval( $overlay['fill_opacity'] );
301
+ $fill_opacity = sprintf( "opacity:%1\$.2f;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=%2\$u)';filter:alpha(opacity=%2\$u);", $opacity, $opacity * 100 );
302
+ }
303
+
304
+ $stroke_opacity = '';
305
+ if ( is_numeric( $overlay['stroke_opacity'] ) ) {
306
+ $opacity = floatval( $overlay['stroke_opacity'] );
307
+ $stroke_opacity = sprintf( "opacity:%1\$f;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=%2\$u)';filter:alpha(opacity=%2\$u);", $opacity, $opacity * 100 );
308
+ }
309
+
310
+ $path = array();
311
+ foreach( $overlay['path'] as $point ) :
312
+ $path[] = implode( ',', $point );
313
+ endforeach; ?>
314
+ <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_polygon" border="0" cellspacing="0" cellpadding="0">
315
+ <tr>
316
+ <td>
317
+ #<?php echo $i + 1 ?> <?php esc_html_e( 'polygon', INTERGEO_PLUGIN_NAME ) ?>
318
+ </td>
319
+ <td>
320
+ <input type="hidden" class="intergeo_tlbr_polygon_path" name="overlays_polygon[<?php echo $i ?>][path]" value="<?php echo implode( ';', $path ) ?>" data-position="<?php echo $i ?>">
321
+ <input type="hidden" class="intergeo_tlbr_polygon_weight" name="overlays_polygon[<?php echo $i ?>][weight]" value="<?php echo esc_attr( $overlay['weight'] ) ?>">
322
+ <input type="hidden" class="intergeo_tlbr_polygon_stroke_opacity" name="overlays_polygon[<?php echo $i ?>][stroke_opacity]" value="<?php echo esc_attr( $overlay['stroke_opacity'] ) ?>">
323
+ <input type="hidden" class="intergeo_tlbr_polygon_position" name="overlays_polygon[<?php echo $i ?>][position]" value="<?php echo esc_attr( $overlay['position'] ) ?>">
324
+ <input type="hidden" class="intergeo_tlbr_polygon_stroke_color" name="overlays_polygon[<?php echo $i ?>][stroke_color]" value="<?php echo esc_attr( $overlay['stroke_color'] ) ?>">
325
+ <input type="hidden" class="intergeo_tlbr_polygon_fill_opacity" name="overlays_polygon[<?php echo $i ?>][fill_opacity]" value="<?php echo esc_attr( $overlay['fill_opacity'] ) ?>">
326
+ <input type="hidden" class="intergeo_tlbr_polygon_fill_color" name="overlays_polygon[<?php echo $i++ ?>][fill_color]" value="<?php echo esc_attr( $overlay['fill_color'] ) ?>">
327
+
328
+ <a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete polygon', INTERGEO_PLUGIN_NAME ) ?>"></a>
329
+ <a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit polygon', INTERGEO_PLUGIN_NAME ) ?>"></a>
330
+
331
+ <span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['fill_color'] ) ?>;<?php echo $fill_opacity ?>"></span>
332
+ <span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['stroke_color'] ) ?>;<?php echo $stroke_opacity ?>"></span>
333
+ </td>
334
+ </tr>
335
+ </table>
336
+ <?php endforeach; ?>
337
+ <?php endif; ?>
338
+ </div>
339
+ </li>
340
+ </ul>
templates/iframe/popups.php ADDED
@@ -0,0 +1,204 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div id="intergeo_address_ppp" class="intergeo_ppp">
2
+ <form class="intergeo_ppp_frm">
3
+ <div class="intergeo_ppp_ttl">
4
+ <a class="intergeo_ppp_cls" href="javascript:;"></a>
5
+ <?php esc_html_e( 'Go To Address', INTERGEO_PLUGIN_NAME ) ?>
6
+ </div>
7
+ <table class="intergeo_ppp_tbl" cellspacing="0" cellpadding="0" border="0">
8
+ <tr>
9
+ <td>
10
+ <input type="text" class="intergeo_ppp_txt" placeholder="<?php esc_attr_e( 'Type an address you want to go to', INTERGEO_PLUGIN_NAME ) ?>">
11
+ </td>
12
+ <td style="width:40px;text-align:right">
13
+ <button type="submit" class="button button-primary"><?php esc_html_e( 'Go', INTERGEO_PLUGIN_NAME ) ?></button>
14
+ </td>
15
+ </tr>
16
+ </table>
17
+ </form>
18
+ </div>
19
+
20
+ <div id="intergeo_marker_ppp" class="intergeo_ppp">
21
+ <form class="intergeo_ppp_frm intregeo_ppp_frm_overlay" data-position="" data-target="markers">
22
+ <div class="intergeo_ppp_ttl">
23
+ <a class="intergeo_ppp_cls" href="javascript:;"></a>
24
+ <?php esc_html_e( 'Marker Options', INTERGEO_PLUGIN_NAME ) ?>
25
+ </div>
26
+ <table class="intergeo_ppp_tbl" cellspacing="0" cellpadding="0" border="0">
27
+ <tr>
28
+ <td>
29
+ <input type="text"
30
+ class="intergeo_tlbr_marker_title intergeo_tlbr_cntrl_txt"
31
+ placeholder="<?php esc_attr_e( 'Enter title', INTERGEO_PLUGIN_NAME ) ?>"
32
+ title="<?php esc_attr_e( 'Enter title', INTERGEO_PLUGIN_NAME ) ?>">
33
+ </td>
34
+ </tr>
35
+ <tr>
36
+ <td>
37
+ <input type="text"
38
+ class="intergeo_tlbr_marker_icon intergeo_tlbr_cntrl_txt"
39
+ placeholder="<?php esc_attr_e( 'Enter icon URL', INTERGEO_PLUGIN_NAME ) ?>"
40
+ title="<?php esc_attr_e( 'Enter icon URL', INTERGEO_PLUGIN_NAME ) ?>">
41
+ </td>
42
+ </tr>
43
+ <tr>
44
+ <td>
45
+ <textarea cols="20" rows="5"
46
+ class="intergeo_tlbr_marker_info intergeo_tlbr_cntrl_txt"
47
+ title="<?php esc_attr_e( 'Enter html for info window', INTERGEO_PLUGIN_NAME ) ?>"
48
+ placeholder="<?php esc_attr_e( 'Enter html for info window', INTERGEO_PLUGIN_NAME ) ?>"
49
+ ></textarea>
50
+ </td>
51
+ </tr>
52
+ <tr>
53
+ <td>
54
+ <input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Update', INTERGEO_PLUGIN_NAME ) ?>">
55
+ </td>
56
+ </tr>
57
+ </table>
58
+ </form>
59
+ </div>
60
+
61
+ <div id="intergeo_polyline_ppp" class="intergeo_ppp">
62
+ <form class="intergeo_ppp_frm intregeo_ppp_frm_overlay" data-position="" data-target="polyline">
63
+ <div class="intergeo_ppp_ttl">
64
+ <a class="intergeo_ppp_cls" href="javascript:;"></a>
65
+ <?php esc_html_e( 'Polyline Options', INTERGEO_PLUGIN_NAME ) ?>
66
+ </div>
67
+ <table class="intergeo_ppp_tbl" cellspacing="0" cellpadding="0" border="0">
68
+ <tr>
69
+ <td class="intergeo_tlbr_cntrl_tbl_clmn">
70
+ <input type="text"
71
+ class="intergeo_tlbr_polyline_weight intergeo_tlbr_cntrl_txt"
72
+ placeholder="<?php esc_attr_e( 'Stroke weight in pixel', INTERGEO_PLUGIN_NAME ) ?>"
73
+ title="<?php esc_attr_e( 'Stroke weight in pixel', INTERGEO_PLUGIN_NAME ) ?>">
74
+ </td>
75
+ <td class="intergeo_tlbr_cntrl_tbl_clmn">
76
+ <input type="text"
77
+ class="intergeo_tlbr_polyline_opacity intergeo_tlbr_cntrl_txt"
78
+ placeholder="<?php esc_attr_e( 'Stroke opacity from 0.0 to 1.0', INTERGEO_PLUGIN_NAME ) ?>"
79
+ title="<?php esc_attr_e( 'Stroke opacity from 0.0 to 1.0', INTERGEO_PLUGIN_NAME ) ?>">
80
+ </td>
81
+ </tr>
82
+ <tr>
83
+ <td colspan="2">
84
+ <input type="text" class="intergeo_tlbr_polyline_color intergeo_tlbr_clr" maxlength="7" data-default-color="#000000">
85
+ </td>
86
+ </tr>
87
+ <tr>
88
+ <td colspan="2">
89
+ <input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Update', INTERGEO_PLUGIN_NAME ) ?>">
90
+ </td>
91
+ </tr>
92
+ </table>
93
+ </form>
94
+ </div>
95
+
96
+ <div id="intergeo_polyoverlay_ppp" class="intergeo_ppp">
97
+ <form class="intergeo_ppp_frm intregeo_ppp_frm_overlay" data-position="" data-target="">
98
+ <div class="intergeo_ppp_ttl">
99
+ <a class="intergeo_ppp_cls" href="javascript:;"></a>
100
+ <?php esc_html_e( 'Polygon Options', INTERGEO_PLUGIN_NAME ) ?>
101
+ </div>
102
+ <table class="intergeo_ppp_tbl" cellspacing="0" cellpadding="0" border="0">
103
+ <tr>
104
+ <td colspan="2">
105
+ <b><?php esc_html_e( 'Stroke options', INTERGEO_PLUGIN_NAME ) ?></b>
106
+ </td>
107
+ </tr>
108
+ <tr>
109
+ <td class="intergeo_tlbr_cntrl_tbl_clmn">
110
+ <input type="text"
111
+ class="intergeo_tlbr_polyoverlay_weight intergeo_tlbr_cntrl_txt"
112
+ placeholder="<?php esc_attr_e( 'Stroke weight in pixel', INTERGEO_PLUGIN_NAME ) ?>"
113
+ title="<?php esc_attr_e( 'Stroke weight in pixel', INTERGEO_PLUGIN_NAME ) ?>">
114
+ </td>
115
+ <td class="intergeo_tlbr_cntrl_tbl_clmn">
116
+ <input type="text"
117
+ class="intergeo_tlbr_polyoverlay_stroke_opacity intergeo_tlbr_cntrl_txt"
118
+ placeholder="<?php esc_attr_e( 'Stroke opacity from 0.0 to 1.0', INTERGEO_PLUGIN_NAME ) ?>"
119
+ title="<?php esc_attr_e( 'Stroke opacity from 0.0 to 1.0', INTERGEO_PLUGIN_NAME ) ?>">
120
+ </td>
121
+ </tr>
122
+ <tr>
123
+ <td colspan="2">
124
+ <select class="intergeo_tlbr_polyoverlay_position intergeo_tlbr_cntrl_slct">
125
+ <option value=""><?php esc_html_e( 'stroke position', INTERGEO_PLUGIN_NAME ) ?></option>
126
+ <option value="CENTER"><?php esc_html_e( 'center', INTERGEO_PLUGIN_NAME ) ?></option>
127
+ <option value="INSIDE"><?php esc_html_e( 'inside the object', INTERGEO_PLUGIN_NAME ) ?></option>
128
+ <option value="OUTSIDE"><?php esc_html_e( 'outside the object', INTERGEO_PLUGIN_NAME ) ?></option>
129
+ </select>
130
+ </td>
131
+ </tr>
132
+ <tr>
133
+ <td colspan="2">
134
+ <input type="text" class="intergeo_tlbr_polyoverlay_stroke_color intergeo_tlbr_clr" maxlength="7" data-default-color="#000000">
135
+ </td>
136
+ </tr>
137
+ <tr>
138
+ <td colspan="2">
139
+ <b><?php esc_html_e( 'Fill options', INTERGEO_PLUGIN_NAME ) ?></b>
140
+ </td>
141
+ </tr>
142
+ <tr>
143
+ <td colspan="2">
144
+ <input type="text"
145
+ class="intergeo_tlbr_polyoverlay_fill_opacity intergeo_tlbr_cntrl_txt"
146
+ placeholder="<?php esc_attr_e( 'Fill opacity from 0.0 to 1.0', INTERGEO_PLUGIN_NAME ) ?>"
147
+ title="<?php esc_attr_e( 'Fill opacity from 0.0 to 1.0', INTERGEO_PLUGIN_NAME ) ?>">
148
+ </td>
149
+ </tr>
150
+ <tr>
151
+ <td colspan="2">
152
+ <input type="text" class="intergeo_tlbr_polyoverlay_fill_color intergeo_tlbr_clr" maxlength="7" data-default-color="#000000">
153
+ </td>
154
+ </tr>
155
+ <tr>
156
+ <td colspan="2">
157
+ <input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Update', INTERGEO_PLUGIN_NAME ) ?>">
158
+ </td>
159
+ </tr>
160
+ </table>
161
+ </form>
162
+ </div>
163
+
164
+ <div id="intergeo_drctn_ppp" class="intergeo_ppp">
165
+ <form class="intergeo_ppp_frm intregeo_ppp_frm_overlay" data-position="" data-target="direction">
166
+ <div class="intergeo_ppp_ttl">
167
+ <a class="intergeo_ppp_cls" href="javascript:;"></a>
168
+ <?php esc_html_e( 'Direction Options', INTERGEO_PLUGIN_NAME ) ?>
169
+ </div>
170
+ <table class="intergeo_ppp_tbl" cellspacing="0" cellpadding="0" border="0">
171
+ <tr>
172
+ <td>
173
+ <input type="text"
174
+ id="intergeo_ppp_drctn_from" class="intergeo_tlbr_cntrl_txt"
175
+ title="<?php esc_attr_e( 'The start location from which to calculate directions', INTERGEO_PLUGIN_NAME ) ?>"
176
+ placeholder="<?php esc_attr_e( 'The start location from which to calculate directions', INTERGEO_PLUGIN_NAME ) ?>">
177
+ </td>
178
+ </tr>
179
+ <tr>
180
+ <td>
181
+ <input type="text"
182
+ id="intergeo_ppp_drctn_to" class="intergeo_tlbr_cntrl_txt"
183
+ title="<?php esc_attr_e( 'The end location to which to calculate directions', INTERGEO_PLUGIN_NAME ) ?>"
184
+ placeholder="<?php esc_attr_e( 'The end location to which to calculate directions', INTERGEO_PLUGIN_NAME ) ?>">
185
+ </td>
186
+ </tr>
187
+ <tr>
188
+ <td>
189
+ <select id="intergeo_ppp_drctn_mode" class="intergeo_tlbr_cntrl_slct">
190
+ <option value="DRIVING"><?php esc_html_e( 'via standard driving directions', INTERGEO_PLUGIN_NAME ) ?></option>
191
+ <option value="BICYCLING"><?php esc_html_e( 'via bicycle paths & preferred streets', INTERGEO_PLUGIN_NAME ) ?></option>
192
+ <option value="TRANSIT"><?php esc_html_e( 'via public transit routes', INTERGEO_PLUGIN_NAME ) ?></option>
193
+ <option value="WALKING"><?php esc_html_e( 'via pedestrian paths & sidewalks', INTERGEO_PLUGIN_NAME ) ?></option>
194
+ </select>
195
+ </td>
196
+ </tr>
197
+ <tr>
198
+ <td>
199
+ <input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Save', INTERGEO_PLUGIN_NAME ) ?>">
200
+ </td>
201
+ </tr>
202
+ </table>
203
+ </form>
204
+ </div>
templates/iframe/positioning.php ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'Positioning & Zooming', INTERGEO_PLUGIN_NAME ) ?></h3>
2
+ <ul class="intergeo_tlbr_ul_li_ul">
3
+ <li class="intergeo_tlbr_ul_li_ul_li">
4
+ <p class="intergeo_tlbr_grp_dsc">
5
+ <?php esc_html_e( 'If you want to set specific map position and certain level of zooming, just set it up on preview map and these settings will be remembered at published map.', INTERGEO_PLUGIN_NAME ) ?>
6
+ </p>
7
+ </li>
8
+ <li class="intergeo_tlbr_ul_li_ul_li">
9
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Positioning', INTERGEO_PLUGIN_NAME ) ?></span>
10
+ <div class="intergeo_tlbr_cntrl_items">
11
+ <div class="intergeo_tlbr_cntrl_item">
12
+ <?php esc_html_e( 'The initial map type', INTERGEO_PLUGIN_NAME ) ?>
13
+ <select name="map_mapTypeId" class="intergeo_tlbr_cntrl_slct">
14
+ <option value="ROADMAP" <?php selected( isset( $json['map']['mapTypeId'] ) ? $json['map']['mapTypeId'] == 'ROADMAP' : false ) ?>>
15
+ <?php esc_html_e( 'Road map', INTERGEO_PLUGIN_NAME ) ?>
16
+ </option>
17
+ <option value="TERRAIN" <?php selected( isset( $json['map']['mapTypeId'] ) ? $json['map']['mapTypeId'] == 'TERRAIN' : false ) ?>>
18
+ <?php esc_html_e( 'Terrain', INTERGEO_PLUGIN_NAME ) ?>
19
+ </option>
20
+ <option value="SATELLITE" <?php selected( isset( $json['map']['mapTypeId'] ) ? $json['map']['mapTypeId'] == 'SATELLITE' : false ) ?>>
21
+ <?php esc_html_e( 'Satellite', INTERGEO_PLUGIN_NAME ) ?>
22
+ </option>
23
+ <option value="HYBRID" <?php selected( isset( $json['map']['mapTypeId'] ) ? $json['map']['mapTypeId'] == 'HYBRID' : false ) ?>>
24
+ <?php esc_html_e( 'Hybrid', INTERGEO_PLUGIN_NAME ) ?>
25
+ </option>
26
+ </select>
27
+ </div>
28
+ <div class="intergeo_tlbr_cntrl_item">
29
+ <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
30
+ <label>
31
+ <input type="hidden" name="map_draggable" value="0">
32
+ <input type="checkbox" name="map_draggable" value="1" <?php checked( isset( $json['map']['draggable'] ) ? $json['map']['draggable'] : true ) ?>>
33
+ <?php esc_html_e( 'Draggable map', INTERGEO_PLUGIN_NAME ) ?>
34
+ </label>
35
+ </div>
36
+ <p class="intergeo_tlbr_cntrl_dsc">
37
+ <?php esc_html_e( 'If unchecked prevents the map from being dragged. Dragging is enabled by default.', INTERGEO_PLUGIN_NAME ) ?>
38
+ </p>
39
+ </div>
40
+ </li>
41
+ <li class="intergeo_tlbr_ul_li_ul_li">
42
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Zooming', INTERGEO_PLUGIN_NAME ) ?></span>
43
+ <div class="intergeo_tlbr_cntrl_items">
44
+ <div class="intergeo_tlbr_cntrl_item">
45
+ <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
46
+ <?php esc_html_e( 'Zoom range values', INTERGEO_PLUGIN_NAME ) ?>
47
+ </div>
48
+ <table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
49
+ <tr>
50
+ <td class="intergeo_tlbr_cntrl_tbl_clmn">
51
+ <input type="number" class="intergeo_tlbr_cntrl_txt" min="0" max="19" name="map_minZoom" value="<?php echo isset( $json['map']['minZoom'] ) ? intval( $json['map']['minZoom'] ) : 0 ?>">
52
+ </td>
53
+ <td class="intergeo_tlbr_cntrl_tbl_clmn">
54
+ <input type="number" class="intergeo_tlbr_cntrl_txt" min="0" max="19" name="map_maxZoom" value="<?php echo isset( $json['map']['maxZoom'] ) ? intval( $json['map']['maxZoom'] ) : 19 ?>">
55
+ </td>
56
+ </tr>
57
+ </table>
58
+ <p class="intergeo_tlbr_cntrl_dsc">
59
+ <?php esc_html_e( 'The maximum (19) and minimum (0) zoom levels which could be displayed on the map.', INTERGEO_PLUGIN_NAME ) ?>
60
+ </p>
61
+ <div class="intergeo_tlbr_cntrl_item">
62
+ <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
63
+ <label>
64
+ <input type="hidden" name="map_scrollwheel" value="0">
65
+ <input type="checkbox" name="map_scrollwheel" value="1" <?php checked( isset( $json['map']['scrollwheel'] ) ? $json['map']['scrollwheel'] == 1 : true ) ?>>
66
+ <?php esc_html_e( 'Scrollwheel zooming', INTERGEO_PLUGIN_NAME ) ?>
67
+ </label>
68
+ </div>
69
+ <p class="intergeo_tlbr_cntrl_dsc">
70
+ <?php esc_html_e( 'Determines if scrollwheel zooming is enabled on the map.', INTERGEO_PLUGIN_NAME ) ?>
71
+ </p>
72
+ </div>
73
+ </li>
74
+ <li class="intergeo_tlbr_ul_li_ul_li">
75
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Preview settings', INTERGEO_PLUGIN_NAME ) ?></span>
76
+ <div class="intergeo_tlbr_cntrl_items">
77
+ <div class="intergeo_tlbr_cntrl_item">
78
+ <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
79
+ <label>
80
+ <input type="checkbox" id="intergeo_map_lock_preview" value="1">
81
+ <?php esc_html_e( 'Lock preview', INTERGEO_PLUGIN_NAME ) ?>
82
+ </label>
83
+ </div>
84
+ <p class="intergeo_tlbr_cntrl_dsc">
85
+ <?php esc_html_e( "Lock preview map to preserve changing of the viewport bounds and zoom level. Locking affects only on preview map and won't lock embedded map.", INTERGEO_PLUGIN_NAME ) ?>
86
+ </p>
87
+ <div class="intergeo_tlbr_cntrl_item">
88
+ <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
89
+ <label>
90
+ <input type="checkbox" id="intergeo_show_map_center" value="1" <?php checked( $show_map_center ) ?>>
91
+ <?php esc_html_e( 'Show map center', INTERGEO_PLUGIN_NAME ) ?>
92
+ </label>
93
+ </div>
94
+ <p class="intergeo_tlbr_cntrl_dsc">
95
+ <?php esc_html_e( "Show small red circle at the center of the map. It helps you to centralize the map bounds. Note that this option won't be displayed at frontend.", INTERGEO_PLUGIN_NAME ) ?>
96
+ </p>
97
+ </div>
98
+ </li>
99
+ </ul>
templates/iframe/styles.php ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'Styles', INTERGEO_PLUGIN_NAME ) ?></h3>
2
+ <ul class="intergeo_tlbr_ul_li_ul">
3
+ <li class="intergeo_tlbr_ul_li_ul_li">
4
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( "Container's Styles", INTERGEO_PLUGIN_NAME ) ?></span>
5
+ <div class="intergeo_tlbr_cntrl_items">
6
+ <div class="intergeo_tlbr_cntrl_item">
7
+ <?php esc_html_e( 'Width', INTERGEO_PLUGIN_NAME ) ?>
8
+ <input type="text" class="intergeo_tlbr_cntrl_txt" name="container_width" placeholder="100%" value="<?php echo isset( $json['container']['width'] ) ? esc_attr( $json['container']['width'] ) : '' ?>">
9
+ </div>
10
+ <div class="intergeo_tlbr_cntrl_item">
11
+ <?php esc_html_e( 'Height', INTERGEO_PLUGIN_NAME ) ?>
12
+ <input type="text" class="intergeo_tlbr_cntrl_txt" name="container_height" placeholder="300px" value="<?php echo isset( $json['container']['height'] ) ? esc_attr( $json['container']['height'] ) : '' ?>">
13
+ </div>
14
+ <div class="intergeo_tlbr_cntrl_item">
15
+ <?php esc_html_e( 'Extra Styles', INTERGEO_PLUGIN_NAME ) ?>
16
+ <input type="text" class="intergeo_tlbr_cntrl_txt" name="container_styles" placeholder="border: 1px solid gray;" value="<?php echo isset( $json['container']['styles'] ) ? esc_attr( $json['container']['styles'] ) : '' ?>">
17
+ </div>
18
+ </div>
19
+ </li>
20
+ <li class="intergeo_tlbr_ul_li_ul_li">
21
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Predefined Map Styles', INTERGEO_PLUGIN_NAME ) ?></span>
22
+ <div class="intergeo_tlbr_cntrl_items">
23
+ <div class="intergeo_tlbr_cntrl_item">
24
+ <label class="intergeo_tlbr_style_preview" title="Default">
25
+ <input type="radio" name="styles_type" value="DEFAULT" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == 'DEFAULT' : true ) ?>>
26
+ </label>
27
+ </div>
28
+ <div class="intergeo_tlbr_cntrl_item">
29
+ <label id="intergeo_tlbr_style_red" class="intergeo_tlbr_style_preview" title="Red">
30
+ <input type="radio" name="styles_type" value="RED" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == 'RED' : false ) ?>>
31
+ </label>
32
+ </div>
33
+ <div class="intergeo_tlbr_cntrl_item">
34
+ <label id="intergeo_tlbr_style_night" class="intergeo_tlbr_style_preview" title="Night">
35
+ <input type="radio" name="styles_type" value="NIGHT" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == 'NIGHT' : false ) ?>>
36
+ </label>
37
+ </div>
38
+ <div class="intergeo_tlbr_cntrl_item">
39
+ <label id="intergeo_tlbr_style_blue" class="intergeo_tlbr_style_preview" title="Blue">
40
+ <input type="radio" name="styles_type" value="BLUE" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == 'BLUE' : false ) ?>>
41
+ </label>
42
+ </div>
43
+ <div class="intergeo_tlbr_cntrl_item">
44
+ <label id="intergeo_tlbr_style_grayscale" class="intergeo_tlbr_style_preview" title="Greyscale">
45
+ <input type="radio" name="styles_type" value="GREYSCALE" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == 'GREYSCALE' : false ) ?>>
46
+ </label>
47
+ </div>
48
+ <div class="intergeo_tlbr_cntrl_item">
49
+ <label id="intergeo_tlbr_style_no_roads" class="intergeo_tlbr_style_preview" title="No Roads">
50
+ <input type="radio" name="styles_type" value="NO_ROADS" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == 'NO_ROADS' : false ) ?>>
51
+ </label>
52
+ </div>
53
+ <div class="intergeo_tlbr_cntrl_item">
54
+ <label id="intergeo_tlbr_style_mixed" class="intergeo_tlbr_style_preview" title="Mixed">
55
+ <input type="radio" name="styles_type" value="MIXED" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == 'MIXED' : false ) ?>>
56
+ </label>
57
+ </div>
58
+ <div class="intergeo_tlbr_cntrl_item">
59
+ <label id="intergeo_tlbr_style_chilled" class="intergeo_tlbr_style_preview" title="Chilled">
60
+ <input type="radio" name="styles_type" value="CHILLED" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == 'CHILLED' : false ) ?>>
61
+ </label>
62
+ </div>
63
+ </div>
64
+ </li>
65
+ <li class="intergeo_tlbr_ul_li_ul_li">
66
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Custom Map Styles', INTERGEO_PLUGIN_NAME ) ?></span>
67
+ <div class="intergeo_tlbr_cntrl_items">
68
+ <div class="intergeo_tlbr_cntrl_item">
69
+ <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
70
+ <label>
71
+ <input type="radio" name="styles_type" value="-1" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == '-1' : false ) ?>>
72
+ <?php esc_html_e( 'Use custom styles', INTERGEO_PLUGIN_NAME ) ?>
73
+ </label>
74
+ <textarea class="intergeo_tlbr_cntrl_txt" name="styles_custom" cols="30" rows="5"><?php
75
+ echo isset( $json['styles']['custom'] ) ? esc_textarea( @json_encode( $json['styles']['custom'] ) ) : ''
76
+ ?></textarea>
77
+ </div>
78
+ <p class="intergeo_tlbr_cntrl_dsc">
79
+ <?php printf( esc_html__( "Creating styles by hand and testing your code to see how they look is potentially time-consuming. Instead, you can use the %sStyled Map Wizard%s to set up the JSON for your map's styles.", INTERGEO_PLUGIN_NAME ), '<a href="http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html" target="_blank">', '</a>' ) ?>
80
+ </p>
81
+ </div>
82
+ </li>
83
+ </ul>
templates/library/list.php ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="wrap">
2
+ <h2>
3
+ <div id="intergeo_lbrr_ttl">Inter<span style="color:#4067dc">g</span><span style="color:#e21b31">e</span><span style="color:#fcaa08">o</span> <?php _e( 'Maps', INTERGEO_PLUGIN_NAME ) ?></div>
4
+ <a id="intergeo_lbrr_add_new" href="javascript:;" class="add-new-h2"><?php _e( 'Add New', INTERGEO_PLUGIN_NAME ) ?></a>
5
+ </h2>
6
+
7
+ <script type="text/javascript">
8
+ /* <![CDATA[ */
9
+ window.intergeo_maps = [];
10
+ /* ]]> */
11
+ </script>
12
+
13
+ <?php if ( $query->have_posts() ) : ?>
14
+
15
+ <div id="intergeo_lbrr_items"><?php
16
+ $index = 0;
17
+ while ( $query->have_posts() ) :
18
+ $post = $query->next_post();
19
+
20
+ $id = intergeo_encode( $post->ID );
21
+ $json = json_decode( $post->post_content, true );
22
+
23
+ $delete_url = add_query_arg( array(
24
+ 'map' => $id,
25
+ 'do' => 'delete',
26
+ 'noheader' => 'true',
27
+ 'nonce' => wp_create_nonce( $post->ID . filter_input( INPUT_SERVER, 'REMOTE_ADDR', FILTER_VALIDATE_IP ) ),
28
+ ) );
29
+
30
+ $libraries = intergeo_check_libraries( $json, $libraries );
31
+
32
+ ?><div class="intergeo_lbrr_item"<?php echo $index != 0 && $index % 3 == 0 ? ' style="clear:both"' : '' ?>>
33
+ <div class="intergeo_lbrr_wrapper">
34
+ <div class="intergeo_lbrr_map_wrapper">
35
+ <div class="intergeo_lbrr_map_loader">
36
+ <div id="intergeo_map<?php echo $id ?>" class="intergeo_lbrr_map"></div>
37
+ </div>
38
+ </div>
39
+ <table class="intergeo_lbrr_cntrls" cellspacing="0" cellpadding="0" border="0">
40
+ <tr>
41
+ <td>
42
+ <input type="text" class="intergeo_lbrr_code" value="[intergeo id=&quot;<?php echo $id ?>&quot;]<?php echo !empty( $json['address'] ) ? esc_attr( $json['address'] ) : '' ?>[/intergeo]">
43
+ </td>
44
+ <td class="intergeo_lbrr_item_actions">
45
+ <a class="intergeo_lbrr_item_edit" href="javascript:;" title="<?php _e( "Edit", INTERGEO_PLUGIN_NAME ) ?>" data-map="<?php echo $id ?>"></a>
46
+ <a class="intergeo_lbrr_item_copy" href="javascript:;" title="<?php _e( "Copy", INTERGEO_PLUGIN_NAME ) ?>" data-map="<?php echo $id ?>"></a>
47
+ <a class="intergeo_lbrr_item_delete" href="<?php echo esc_attr( $delete_url ) ?>" title="<?php _e( "Delete", INTERGEO_PLUGIN_NAME ) ?>" onclick="return showNotice.warn();"></a>
48
+ </td>
49
+ </tr>
50
+ </table>
51
+ </div>
52
+ </div>
53
+ <script type="text/javascript">
54
+ /* <![CDATA[ */
55
+ window.intergeo_maps.push({
56
+ container: 'intergeo_map<?php echo $id ?>',
57
+ options: <?php echo $post->post_content ?>
58
+ });
59
+ /* ]]> */
60
+ </script><?php
61
+
62
+ $index++;
63
+ endwhile;
64
+
65
+ ?><div style="clear:both"></div>
66
+ </div>
67
+
68
+ <?php if ( !empty( $pagination ) ) : ?>
69
+ <div>
70
+ <ul id="intergeo_lbrr_pgntn">
71
+ <?php foreach ( $pagination as $page_item ) : ?>
72
+ <li><?php echo $page_item ?></li>
73
+ <?php endforeach; ?>
74
+ </ul>
75
+ <div style="clear:both"></div>
76
+ </div>
77
+ <?php endif; ?>
78
+
79
+ <?php else : ?>
80
+ <p>
81
+ <?php esc_html_e( 'You do not have created maps. Start adding it by clicking "Add New" button.', INTERGEO_PLUGIN_NAME ) ?>
82
+ </p>
83
+ <?php endif; ?>
84
+ </div>