Google Maps Plugin by Intergeo - Version 2.0.0

Version Description

  • Major code refactor
  • Improved compatibility with the pro version
Download this release

Release Info

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

Code changes from version 1.1.6 to 2.0.0

CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
 
 
 
 
2
- Refactored for the new options in the pro version
3
 
4
 
5
 
6
- Removed freemius support
1
 
2
+
3
+
4
+
5
+
6
 
7
 
8
 
 
css/editor.css CHANGED
@@ -1,70 +1,473 @@
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{text-align:center; 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}
 
 
 
 
 
2
 
3
- .computer-btn{
4
- color: #646464 !important;
5
- border: medium none rgb(100, 100, 100) !important;
6
- background: #E6E6E6 url("../images/computer.png") no-repeat scroll 7px 1px !important;
7
- padding-left: 27px !important;
8
- transition: all 0.3s ease 0s;
9
- font-family: "Open Sans",sans-serif;
10
- font-weight: 700;
11
- border: 1px solid #B0B0B0 !important;
12
- box-shadow: none !important;
13
 
14
- }
 
 
 
15
 
16
- .computer-btn:hover{
17
- color: white !important;
18
- background: #2f8cea url("../images/computer.png") no-repeat scroll 7px -36px !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  transition: all 0.3s ease 0s;
 
 
 
20
  padding-left: 27px !important;
21
- -webkit-transition: all .3s ease;
22
- -moz-transition: all .3s ease;
23
- -ms-transition: all .3s ease;
24
- -o-transition: all .3s ease;
25
- transition: all .3s ease;
26
- box-shadow: 0px 1px 0px rgba(171, 171, 171, 0.5) inset, 0px 1px 0px rgba(0, 0, 0, 0.15) !important;
27
  border: 1px solid #2f8cea !important;
 
 
 
 
 
28
  box-shadow: none !important;
 
 
 
 
 
29
 
30
-
31
- }
32
-
33
- .file-wrapper {
34
- position: relative;
35
  overflow: hidden;
 
36
  }
37
 
38
- .form-inline {
39
- display: inline-block;
40
- margin-bottom: 0;
41
- vertical-align: middle;
42
- }
43
 
44
  #thehole {
45
  position: absolute;
46
- left: 0;
47
  top: 0;
 
48
  width: 1px;
49
  height: 1px;
50
  border: 0;
51
- opacity: 0;
52
- -moz-opacity: 0;
53
- filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);
 
54
  }
55
 
56
  .file {
57
- font-size: 200px;
58
- position: absolute;
59
- top: 0;
60
  right: 0;
61
- opacity: 0;
62
- -moz-opacity: 0;
63
- filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);
64
- cursor: pointer;
 
 
65
  }
66
 
67
- .computer-btn{
68
  text-shadow: none !important;
69
  }
70
 
@@ -74,4 +477,4 @@ table.intergeo_tlbr_marker_add input[type="button"] {
74
 
75
  table.intergeo_tlbr_marker_add input[type="button"]::after {
76
  clear: both;
77
- }
1
+ @font-face {
2
+ font-family: "Elsie Swash Caps";
3
+ src: local("Elsie Swash Caps Blacks"), local("ElsieSwashCapsBlack-Regular"), url(http://themes.googleusercontent.com/static/fonts/elsieswashcaps/v1/iZnus9qif0tR5pGaDv5zdEd2CPfIv3tbBh_qUxvoikM.woff) format("woff");
4
+ font-weight: 900;
5
+ font-style: normal;
6
+ }
7
 
8
+ #intergeo_canvas_wrapper {
9
+ position: absolute;
10
+ z-index: 75;
11
+ top: 0;
12
+ right: 300px;
13
+ bottom: 60px;
14
+ left: 0;
15
+ }
 
 
16
 
17
+ #intergeo_canvas {
18
+ width: 100%;
19
+ height: 100%;
20
+ }
21
 
22
+ #intergeo_canvas_center {
23
+ position: absolute;
24
+ top: 50%;
25
+ left: 50%;
26
+ width: 10px;
27
+ height: 10px;
28
+ margin: -5px 0 0 -5px;
29
+ border-radius: 2px;
30
+ background-image: url(../images/map_center.png);
31
+ background-repeat: no-repeat;
32
+ background-position: center center;
33
+ }
34
+
35
+ #intergeo_footer {
36
+ overflow: hidden;
37
+ position: absolute;
38
+ z-index: 100;
39
+ right: 0;
40
+ bottom: 0;
41
+ left: 0;
42
+ height: 36px;
43
+ padding: 12px 16px;
44
+ border-top: 1px solid #dfdfdf;
45
+ -webkit-box-shadow: 0 -4px 4px -4px rgba(0, 0, 0, 0.1);
46
+ box-shadow: 0 -4px 4px -4px rgba(0, 0, 0, 0.1);
47
+ text-align: right;
48
+ }
49
+
50
+ #intergeo_tlbr {
51
+ overflow: auto;
52
+ position: absolute;
53
+ z-index: 75;
54
+ top: 0;
55
+ right: 0;
56
+ bottom: 60px;
57
+ width: 299px;
58
+ border-left: 1px solid #dfdfdf;
59
+ background: whitesmoke;
60
+
61
+ -webkit-overflow-scrolling: touch;
62
+ }
63
+
64
+ #intergeo_tlbr_ttl {
65
+ display: block;
66
+ padding: 30px 20px 10px;
67
+ font-family: "Elsie Swash Caps", cursive;
68
+ font-size: 34px;
69
+ }
70
+
71
+ #intergeo_tlbr_ul {
72
+ border-top: 1px solid #dfdfdf;
73
+ }
74
+
75
+ .intergeo_tlbr_ul_li {
76
+ margin: 0;
77
+ }
78
+
79
+ .intergeo_tlbr_ul_li.open {
80
+ border-bottom: 1px solid #dfdfdf;
81
+ }
82
+
83
+ .intergeo_tlbr_ul_li_h3 {
84
+ position: relative;
85
+ margin: 0;
86
+ padding: 10px 20px;
87
+ border-top: 1px solid white;
88
+ border-bottom: 1px solid #dfdfdf;
89
+ background: whiteSmoke;
90
+ background-image: -webkit-gradient(linear, left bottom, left top, from(#eee), to(whiteSmoke));
91
+ background-image: -webkit-linear-gradient(bottom, #eee, whiteSmoke);
92
+ background-image: -webkit-gradient(linear, left bottom, left top, from(#eee), to(whiteSmoke));
93
+ background-image: linear-gradient(to top, #eee, whiteSmoke);
94
+ text-shadow: 0 1px 0 white;
95
+ font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
96
+ font-size: 15px;
97
+ font-weight: normal;
98
+ cursor: pointer;
99
+ -webkit-user-select: none;
100
+ -moz-user-select: none;
101
+ -ms-user-select: none;
102
+ user-select: none;
103
+ }
104
+
105
+ .intergeo_tlbr_ul_li_h3:hover,
106
+ .intergeo_tlbr_ul_li.open .intergeo_tlbr_ul_li_h3 {
107
+ color: white;
108
+ background: gray;
109
+ background-image: -webkit-gradient(linear, left bottom, left top, from(#6d6d6d), to(gray));
110
+ background-image: -webkit-linear-gradient(bottom, #6d6d6d, gray);
111
+ background-image: -webkit-gradient(linear, left bottom, left top, from(#6d6d6d), to(gray));
112
+ background-image: linear-gradient(to top, #6d6d6d, gray);
113
+ text-shadow: 0 -1px 0 #333;
114
+ }
115
+
116
+ .button.intergeo-pro-btn:active,
117
+ .button.intergeo-pro-btn:hover,
118
+ .button.intergeo-pro-btn:focus,
119
+ .button.intergeo-pro-btn:hover,
120
+ .button.intergeo-pro-btn {
121
+ border-color: #d54e21;
122
+ color: #fff;
123
+ background: #d54e21;
124
+ }
125
+
126
+ .intergeo_tlbr_ul_li_ul .button.intergeo-pro-btn {
127
+ display: block;
128
+ width: 90%;
129
+ margin: auto;
130
+ text-align: center;
131
+ }
132
+
133
+ .intergeo_tlbr_ul_li_h3::after {
134
+ position: absolute;
135
+ z-index: 1;
136
+ top: 15px;
137
+ right: 20px;
138
+ width: 0;
139
+ height: 0;
140
+ border-width: 6px 6px 0;
141
+ border-style: solid;
142
+ border-color: #ccc transparent;
143
+ content: "";
144
+ }
145
+
146
+ .intergeo_tlbr_ul_li_h3:hover::after,
147
+ .intergeo_tlbr_ul_li.open .intergeo_tlbr_ul_li_h3::after {
148
+ border-color: #eee transparent;
149
+ }
150
+
151
+ .intergeo_tlbr_ul_li:hover .intergeo_tlbr_ul_li_h3 {
152
+ border-top-color: gray;
153
+ }
154
+
155
+ .intergeo_tlbr_ul_li.open .intergeo_tlbr_ul_li_h3 {
156
+ border-top-color: #6d6d6d;
157
+ }
158
+
159
+ .intergeo_tlbr_ul_li.open .intergeo_tlbr_ul_li_h3::after {
160
+ border-width: 0 6px 6px;
161
+ }
162
+
163
+ .intergeo_tlbr_ul_li_ul {
164
+ display: none;
165
+ overflow: hidden;
166
+ margin: 0;
167
+ padding: 10px 0 20px 0;
168
+ background-color: #fdfdfd;
169
+ }
170
+
171
+ .intergeo_tlbr_ul_li.open .intergeo_tlbr_ul_li_ul {
172
+ display: block;
173
+ }
174
+
175
+ .intergeo_tlbr_cntrl_ttl {
176
+ display: block;
177
+ position: relative;
178
+ margin-bottom: 5px;
179
+ padding: 4px 20px;
180
+ border-top: 1px solid #eee;
181
+ border-bottom: 1px solid #eee;
182
+ background-color: rgba(0, 0, 0, 0.02);
183
+ -webkit-box-shadow: 0 4px 4px -4px rgba(0, 0, 0, 0.1);
184
+ box-shadow: 0 4px 4px -4px rgba(0, 0, 0, 0.1);
185
+ font-weight: bold;
186
+ line-height: 22px;
187
+ cursor: pointer;
188
+ }
189
+
190
+ .intergeo_tlbr_cntrl_ttl::after {
191
+ position: absolute;
192
+ z-index: 1;
193
+ top: 13px;
194
+ right: 20px;
195
+ width: 0;
196
+ height: 0;
197
+ border-width: 4px 4px 0;
198
+ border-style: solid;
199
+ border-color: #ccc transparent;
200
+ content: "";
201
+ }
202
+
203
+ .intergeo_tlbr_cntrl_ttl.open::after {
204
+ border-width: 0 4px 4px;
205
+ }
206
+
207
+ .intergeo_tlbr_cntrl_items {
208
+ display: none;
209
+ padding: 5px 20px 10px 20px;
210
+ }
211
+
212
+ .intergeo_tlbr_cntrl_more_info {
213
+ float: right;
214
+ color: #21759b;
215
+ font-size: 85%;
216
+ font-weight: normal;
217
+ text-decoration: none;
218
+ }
219
+
220
+ .intergeo_tlbr_cntrl_dsc {
221
+ display: none;
222
+ padding: 0;
223
+ }
224
+
225
+ .intergeo_tlbr_cntrl_tbl {
226
+ width: 100%;
227
+ margin-bottom: 10px;
228
+ }
229
+
230
+ .intergeo_tlbr_cntrl_tbl_clmn {
231
+ width: 50%;
232
+ padding: 0 1px;
233
+ text-align: left;
234
+ vertical-align: top;
235
+ }
236
+
237
+ .intergeo_tlbr_cntrl_item {
238
+ margin-bottom: 10px;
239
+ }
240
+
241
+ #intergeo_map_zoom_range {
242
+ margin: 10px 6px;
243
+ }
244
+
245
+ .intergeo_tlbr_style_preview {
246
+ display: block;
247
+ width: 220px;
248
+ height: 90px;
249
+ padding: 10px;
250
+ background-image: url(../images/styles.jpg);
251
+ background-repeat: no-repeat;
252
+ background-position: top left;
253
+ -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
254
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
255
+ }
256
+
257
+ #intergeo_tlbr_style_red {
258
+ background-position: 0 -110px;
259
+ }
260
+
261
+ #intergeo_tlbr_style_night {
262
+ background-position: 0 -220px;
263
+ }
264
+
265
+ #intergeo_tlbr_style_blue {
266
+ background-position: 0 -330px;
267
+ }
268
+
269
+ #intergeo_tlbr_style_grayscale {
270
+ background-position: 0 -440px;
271
+ }
272
+
273
+ #intergeo_tlbr_style_no_roads {
274
+ background-position: 0 -550px;
275
+ }
276
+
277
+ #intergeo_tlbr_style_mixed {
278
+ background-position: 0 -660px;
279
+ }
280
+
281
+ #intergeo_tlbr_style_chilled {
282
+ background-position: 0 -770px;
283
+ }
284
+
285
+ .intergeo_tlbr_overlay {
286
+ margin-bottom: 5px;
287
+ padding-bottom: 5px;
288
+ border-bottom: 1px dotted black;
289
+ }
290
+
291
+ .intergeo_tlbr_actn {
292
+ display: block;
293
+ float: right;
294
+ width: 16px;
295
+ height: 16px;
296
+ margin: 4px 0 0 10px;
297
+ background-image: url("../images/ui-icons.png");
298
+ background-repeat: no-repeat;
299
+ }
300
+
301
+ .intergeo_tlbr_actn_delete {
302
+ background-position: -176px -96px;
303
+ }
304
+
305
+ .intergeo_tlbr_actn_edit {
306
+ background-position: -64px -112px;
307
+ }
308
+
309
+ .intergeo_tlbr_clr_prvw {
310
+ float: right;
311
+ width: 16px;
312
+ height: 16px;
313
+ margin: 4px 0 0 10px;
314
+ -webkit-box-shadow: 0 0 2px #aaa;
315
+ box-shadow: 0 0 2px #aaa;
316
+ }
317
+
318
+ .intergeo_tlbr_cntrl_slct {
319
+ width: 100%;
320
+ }
321
+
322
+ .intergeo_tlbr_cntrl_txt {
323
+ width: 100%;
324
+ }
325
+
326
+ .intergeo_tlbr_grp_dsc {
327
+ margin: 0;
328
+ padding: 5px 20px 10px 20px;
329
+ text-align: center;
330
+ }
331
+
332
+ .intergeo_ppp {
333
+ display: none;
334
+ position: absolute;
335
+ z-index: 150;
336
+ top: 0;
337
+ right: 0;
338
+ bottom: 0;
339
+ left: 0;
340
+ background-image: url("../images/bg.png");
341
+ background-repeat: repeat;
342
+ }
343
+
344
+ .intergeo_ppp_frm {
345
+ overflow-y: auto;
346
+ -ms-overflow-y: auto;
347
+ position: absolute;
348
+ top: 10%;
349
+ left: 50%;
350
+ width: 400px;
351
+ max-height: 530px;
352
+ margin-left: -222px;
353
+ padding: 10px 20px 15px;
354
+ border: 2px solid #555;
355
+ border-radius: 3px;
356
+ background-color: white;
357
+ -webkit-box-shadow: 0 0 15px #555;
358
+ box-shadow: 0 0 15px #555;
359
+ }
360
+
361
+ .intergeo_ppp_ttl {
362
+ display: block;
363
+ margin-bottom: 10px;
364
+ padding: 5px 0;
365
+ border-bottom: 1px solid whitesmoke;
366
+ color: #333;
367
+ font-size: 115%;
368
+ font-weight: bold;
369
+ }
370
+
371
+ .intergeo_ppp_cls {
372
+ display: block;
373
+ float: right;
374
+ width: 16px;
375
+ height: 16px;
376
+ background-image: url("../images/ui-icons.png");
377
+ background-repeat: no-repeat;
378
+ background-position: -80px -128px;
379
+ }
380
+
381
+ .intergeo_ppp_tbl {
382
+ width: 100%;
383
+ }
384
+
385
+ .intergeo_ppp_tbl td {
386
+ padding-bottom: 5px;
387
+ }
388
+
389
+ .intergeo_ppp_txt {
390
+ width: 100%;
391
+ }
392
+
393
+ #intergeo_tlbr_drctn_icon {
394
+ display: block;
395
+ float: left;
396
+ width: 16px;
397
+ height: 16px;
398
+ margin-top: 1px;
399
+ margin-left: -5px;
400
+ background-image: url("../images/ui-icons.png");
401
+ background-repeat: no-repeat;
402
+ background-position: -16px -128px;
403
+ }
404
+
405
+ .computer-btn {
406
+ padding-left: 27px !important;
407
+ border: medium none rgb(100, 100, 100) !important;
408
+ border: 1px solid #b0b0b0 !important;
409
+ color: #646464 !important;
410
+ background: #e6e6e6 url("../images/computer.png") no-repeat scroll 7px 1px !important;
411
+ -webkit-box-shadow: none !important;
412
+ box-shadow: none !important;
413
+ font-family: "Open Sans", sans-serif;
414
+ font-weight: 700;
415
+ -webkit-transition: all 0.3s ease 0s;
416
  transition: all 0.3s ease 0s;
417
+ }
418
+
419
+ .computer-btn:hover {
420
  padding-left: 27px !important;
 
 
 
 
 
 
421
  border: 1px solid #2f8cea !important;
422
+ color: white !important;
423
+ background: #2f8cea url("../images/computer.png") no-repeat scroll 7px -36px !important;
424
+ -webkit-box-shadow: 0 1px 0 rgba(171, 171, 171, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.15) !important;
425
+ -webkit-box-shadow: none !important;
426
+ box-shadow: 0 1px 0 rgba(171, 171, 171, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.15) !important;
427
  box-shadow: none !important;
428
+ -webkit-transition: all 0.3s ease 0s;
429
+ -webkit-transition: all 0.3s ease;
430
+ transition: all 0.3s ease 0s;
431
+ transition: all 0.3s ease;
432
+ }
433
 
434
+ .file-wrapper {
 
 
 
 
435
  overflow: hidden;
436
+ position: relative;
437
  }
438
 
439
+ .form-inline {
440
+ display: inline-block;
441
+ margin-bottom: 0;
442
+ vertical-align: middle;
443
+ }
444
 
445
  #thehole {
446
  position: absolute;
 
447
  top: 0;
448
+ left: 0;
449
  width: 1px;
450
  height: 1px;
451
  border: 0;
452
+ opacity: 0;
453
+
454
+ filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0);
455
+ -moz-opacity: 0;
456
  }
457
 
458
  .file {
459
+ position: absolute;
460
+ top: 0;
 
461
  right: 0;
462
+ opacity: 0;
463
+ font-size: 200px;
464
+ cursor: pointer;
465
+
466
+ filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0);
467
+ -moz-opacity: 0;
468
  }
469
 
470
+ .computer-btn {
471
  text-shadow: none !important;
472
  }
473
 
477
 
478
  table.intergeo_tlbr_marker_add input[type="button"]::after {
479
  clear: both;
480
+ }
css/frontend.css CHANGED
@@ -1,5 +1,11 @@
1
  /*
2
- * Version: 1.1.5
3
  */
4
 
5
- .intergeo_map_canvas img{max-width:none!important;-webkit-box-shadow:none!important;box-shadow:none!important;border-radius:0!important;border:none!important}
 
 
 
 
 
 
1
  /*
2
+ * Version: 2.0.0
3
  */
4
 
5
+ .intergeo_map_canvas img {
6
+ max-width: none!important;
7
+ border: none!important;
8
+ border-radius: 0!important;
9
+ -webkit-box-shadow: none!important;
10
+ box-shadow: none!important;
11
+ }
css/library.css CHANGED
@@ -1 +1,187 @@
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}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @font-face {
2
+ font-family: "Elsie Swash Caps";
3
+ src: local("Elsie Swash Caps Blacks"), local("ElsieSwashCapsBlack-Regular"), url(http://themes.googleusercontent.com/static/fonts/elsieswashcaps/v1/iZnus9qif0tR5pGaDv5zdEd2CPfIv3tbBh_qUxvoikM.woff) format("woff");
4
+ font-weight: 900;
5
+ font-style: normal;
6
+ }
7
+
8
+ #intergeo_lbrr_ttl {
9
+ display: block;
10
+ float: left;
11
+ margin-right: 15px;
12
+ padding: 0;
13
+ font-family: "Elsie Swash Caps", cursive;
14
+ font-size: 36px;
15
+ }
16
+
17
+ .intergeo_lbrr_item {
18
+ float: left;
19
+ width: 33%;
20
+ }
21
+
22
+ .intergeo_lbrr_wrapper {
23
+ margin: 0 20px 20px 0;
24
+ padding: 5px;
25
+ border: 1px solid #ddd;
26
+ background-color: #efefef;
27
+ -webkit-box-shadow: 0 0 8px #ddd;
28
+ box-shadow: 0 0 8px #ddd;
29
+ }
30
+
31
+ .intergeo_lbrr_map_wrapper {
32
+ border: 1px solid #ddd;
33
+ background-color: white;
34
+ }
35
+
36
+ .intergeo_lbrr_map_loader {
37
+ background-image: url("../images/ajax-loader.gif");
38
+ background-repeat: no-repeat;
39
+ background-position: center center;
40
+ }
41
+
42
+ .intergeo_lbrr_map {
43
+ width: 100%;
44
+ height: 300px;
45
+ }
46
+
47
+ .intergeo_lbrr_cntrls {
48
+ width: 100%;
49
+ }
50
+
51
+ .intergeo_lbrr_code {
52
+ width: 100%;
53
+ margin: 5px 0 0;
54
+ }
55
+
56
+ .intergeo_lbrr_item_actions {
57
+ width: 90px;
58
+ }
59
+
60
+ .add-new-h2.intergeo-pro-btn:hover,
61
+ .add-new-h2.intergeo-pro-btn {
62
+ border-color: #d54e21;
63
+ color: #fff;
64
+ background: #d54e21;
65
+ }
66
+
67
+ .intergeo_lbrr_item_delete,
68
+ .intergeo_lbrr_item_edit,
69
+ .intergeo_lbrr_item_copy {
70
+ display: block;
71
+ float: left;
72
+ width: 16px;
73
+ height: 16px;
74
+ margin: 4px 0 0 10px;
75
+ background-image: url("../images/ui-icons.png");
76
+ background-repeat: no-repeat;
77
+ }
78
+
79
+ .intergeo_lbrr_item_delete {
80
+ background-position: -176px -96px;
81
+ }
82
+
83
+ .intergeo_lbrr_item_edit {
84
+ background-position: -64px -112px;
85
+ }
86
+
87
+ .intergeo_lbrr_item_copy {
88
+ background-position: -176px -128px;
89
+ }
90
+
91
+ #intergeo_lbrr_pgntn > li {
92
+ float: left;
93
+ margin-right: 30px;
94
+ }
95
+
96
+ #intergeo_lbrr_pgntn .page-numbers {
97
+ text-decoration: none;
98
+ }
99
+
100
+ .intergeo_library,
101
+ .intergeo_settings {
102
+ clear: both;
103
+ margin-top: 30px;
104
+ }
105
+
106
+ .intergeo_sidebar_left {
107
+ float: left;
108
+ width: 84%;
109
+ }
110
+
111
+ .intergeo_sidebar_right {
112
+ float: right;
113
+ width: 16%;
114
+ }
115
+
116
+ .intergeo_sidebar_subscribe {
117
+ margin-bottom: 20px;
118
+ padding: 10px;
119
+ border: 1px solid #ccc;
120
+ background: #fff;
121
+ }
122
+
123
+ .intergeo_sidebar_subscribe h3 {
124
+ margin: 0;
125
+ }
126
+
127
+ #intergeo-themeisle-sdk-email-field {
128
+ width: 100%;
129
+ }
130
+
131
+ #intergeo-themeisle-sdk-email-do {
132
+ width: 100%;
133
+ margin-top: 3px;
134
+ }
135
+
136
+ .intergeo_sidebar_pro {
137
+ margin-bottom: 10px;
138
+ padding: 10px;
139
+ border: 1px solid #f49098;
140
+ background: #f4e3e5;
141
+ }
142
+
143
+ .intergeo_sidebar_pro .maps-available {
144
+ display: block;
145
+ padding-bottom: 10px;
146
+ border-bottom: 1px solid #bbb;
147
+ font-size: 16px;
148
+ font-weight: 700;
149
+ text-align: center;
150
+ }
151
+
152
+ .intergeo_sidebar_pro .maps-available .dashicons {
153
+ margin-right: 3px;
154
+ font-size: 24px;
155
+ vertical-align: -7px;
156
+ }
157
+
158
+ .intergeo_sidebar_pro h3 {
159
+ margin: 10px 0 0;
160
+ color: #de3c4b;
161
+ font-weight: 700;
162
+ text-align: center;
163
+ }
164
+
165
+ .intergeo_sidebar_pro .btn {
166
+ display: block;
167
+ padding: 10px;
168
+ border-radius: 3px;
169
+ color: #fff;
170
+ background: #de3c4b;
171
+ font-weight: 700;
172
+ text-align: center;
173
+ text-decoration: none;
174
+ letter-spacing: 0.1em;
175
+ text-transform: uppercase;
176
+ -webkit-transition: 0.3s ease;
177
+ transition: 0.3s ease;
178
+ }
179
+
180
+ .intergeo_sidebar_pro .btn:hover {
181
+ background: #444;
182
+ }
183
+
184
+ .intergeo_sidebar_pro ul {
185
+ margin: 10px 20px 15px;
186
+ list-style-type: disc;
187
+ }
images/ajax-loader.gif CHANGED
Binary file
images/bg.png CHANGED
Binary file
images/computer.png CHANGED
Binary file
images/map_center.png CHANGED
Binary file
images/styles.jpg CHANGED
Binary file
images/ui-icons.png CHANGED
Binary file
index.php CHANGED
@@ -1,28 +1,28 @@
1
  <?php
2
  /*
3
- Plugin Name: Intergeo Lite - Google Maps Plugin
4
  Plugin URI: http://themeisle.com/plugins/intergeo-maps-lite/
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.1.6
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
- Text Domain: intergeo
12
  Domain Path: /languages
13
  */
14
  // <editor-fold defaultstate="collapsed" desc="constants">
15
  define( 'INTERGEO_PLUGIN_NAME', 'intergeo' ); // don't change it whatever
16
- define( 'INTERGEO_VERSION', '1.1.5' );
17
  define( 'INTERGEO_ABSPATH', dirname( __FILE__ ) );
18
  define( 'INTERGEO_ABSURL', plugins_url( '/', __FILE__ ) );
19
- define( 'INTERGEO_PRO_URL', "http://themeisle.com/plugins/intergeo-maps-pro/" );
20
- // Added by Ash/Upwork
21
  defined( 'WPLANG' ) || define( 'WPLANG', '' );
22
- // Added by Ash/Upwork
23
- // Added by Ash/Upwork
24
- if ( class_exists( 'IntergeoMaps_Pro', false ) ) {
25
- define( 'IntergeoMaps_Pro', true );
 
 
26
  }
27
  // Added by Ash/Upwork
28
  // </editor-fold>
@@ -32,8 +32,8 @@ function intergeo_action_links( $links, $file ) {
32
  if ( $file == plugin_basename( __FILE__ ) ) {
33
  array_unshift(
34
  $links,
35
- sprintf( '<a href="%s">%s</a>', add_query_arg( 'page', INTERGEO_PLUGIN_NAME, admin_url( 'upload.php' ) ), __( "Maps", INTERGEO_PLUGIN_NAME ) ),
36
- sprintf( '<a href="%s">%s</a>', admin_url( 'options-media.php' ), __( "Settings", INTERGEO_PLUGIN_NAME ) )
37
  );
38
  }
39
 
@@ -51,59 +51,85 @@ function intergeo_frontend_enqueue_scripts() {
51
  wp_register_style( 'intergeo-frontend', INTERGEO_ABSURL . 'css/frontend.css', array(), INTERGEO_VERSION );
52
  }
53
 
54
- add_action( "plugins_loaded", 'intergeo_i18n' );
55
  function intergeo_i18n() {
56
  $pluginDirName = dirname( plugin_basename( __FILE__ ) );
57
  $domain = INTERGEO_PLUGIN_NAME;
58
- $locale = apply_filters( "plugin_locale", get_locale(), $domain );
59
- load_textdomain( $domain, WP_LANG_DIR . "/" . $pluginDirName . "/" . $domain . "-" . $locale . ".mo" );
60
- load_plugin_textdomain( $domain, "", $pluginDirName . "/languages/" );
61
  }
62
 
63
  // </editor-fold>
64
  // <editor-fold defaultstate="collapsed" desc="settings">
65
- function intergeo_settings_init() {
66
- if ( isset( $_POST["sb-intergeo"] ) && wp_verify_nonce( $_POST["intergeo-nonce"], "intergeo-settings" ) ) {
67
  update_option( 'intergeo_map_api_key', sanitize_text_field( $_POST['intergeo_map_api_key'] ) );
68
- update_option( 'intergeo_adsense_publisher_id', sanitize_text_field( $_POST['intergeo_adsense_publisher_id'] ) );
 
 
69
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  echo "<form method='post' action=''>";
71
  register_setting( 'intergeo', 'intergeo-settings-map-api-key', 'trim' );
72
- add_settings_section( 'intergeo-settings-maps', __( 'Intergeo Google Maps', INTERGEO_PLUGIN_NAME ), 'intergeo_settings_init_map', INTERGEO_PLUGIN_NAME );
73
- add_settings_field( 'intergeo_map_api_key', __( 'Maps API Key', INTERGEO_PLUGIN_NAME ), 'intergeo_settings_print_field', INTERGEO_PLUGIN_NAME, 'intergeo-settings-maps', array(
74
  '<input type="text" name="%s" value="%s" class="regular-text">',
75
  'intergeo_map_api_key',
76
  esc_attr( get_option( 'intergeo_map_api_key' ) ),
77
  ) );
78
- register_setting( 'intergeo', 'intergeo_adsense_publisher_id', 'trim' );
79
- add_settings_section( 'intergeo-settings-adsense', __( 'Intergeo Google Maps AdSense Integration', INTERGEO_PLUGIN_NAME ), 'intergeo_settings_init_adsense', INTERGEO_PLUGIN_NAME );
80
- add_settings_field( 'intergeo_adsense_publisher_id', __( 'AdSense Publisher Id', INTERGEO_PLUGIN_NAME ), 'intergeo_settings_print_field', INTERGEO_PLUGIN_NAME, 'intergeo-settings-adsense', array(
81
- '<input type="text" name="%s" value="%s" class="regular-text">',
82
- 'intergeo_adsense_publisher_id',
83
- esc_attr( get_option( 'intergeo_adsense_publisher_id' ) ),
84
- ) );
 
 
 
85
  do_settings_sections( INTERGEO_PLUGIN_NAME );
86
- submit_button( __( "Save Changes", INTERGEO_PLUGIN_NAME ), "primary", "sb-intergeo" );
87
- wp_nonce_field( "intergeo-settings", "intergeo-nonce" );
88
- echo "</form>";
 
 
 
89
  }
90
 
91
  function intergeo_settings_init_map() {
92
  ?><p><?php
93
- printf( esc_html__( ' Below shows how to find your API Key, after retrieving your key add it to the "Maps API Key" input box.', INTERGEO_PLUGIN_NAME ) );
94
  ?></p>
95
 
96
  <iframe width="560" height="315" src="https://www.youtube.com/embed/gbFDMBGPCcs" frameborder="0"
97
- allowfullscreen></iframe>
98
  <?php
99
  }
100
 
101
  function intergeo_settings_init_adsense() {
102
- ?><p><?php
103
- 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>' )
104
- ?></p><p><?php
105
- 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 )
106
- ?></p><?php
 
 
 
107
  }
108
 
109
  function intergeo_settings_print_field( array $args ) {
@@ -137,8 +163,8 @@ function intergeo_enqueue_google_maps_script( $libraries = false ) {
137
  if ( ! empty( $api_key ) ) {
138
  $params['key'] = $api_key;
139
  }
140
- if ( wp_script_is( "google-maps" ) ) {
141
- wp_dequeue_script( "google-maps" );
142
  }
143
  wp_enqueue_script( 'google-maps-v3', '//maps.googleapis.com/maps/api/js?' . http_build_query( $params ), array(), null );
144
  }
@@ -173,15 +199,15 @@ function intergeo_decode( $code ) {
173
  // <editor-fold defaultstate="collapsed" desc="rendering">
174
  add_filter( 'media_upload_tabs', 'intergeo_media_upload_tabs' );
175
  function intergeo_media_upload_tabs( $tabs ) {
176
- $tabs['intergeo_map'] = __( 'Intergeo Maps', INTERGEO_PLUGIN_NAME );
177
 
178
  return $tabs;
179
  }
180
 
181
  add_action( 'media_upload_intergeo_map', 'intergeo_map_popup_init' );
182
  function intergeo_map_popup_init() {
183
- $post_id = filter_input( INPUT_GET, 'post_id', FILTER_VALIDATE_INT, array( 'options' => array( 'min_range' => 1 ) ) );
184
- $map_id = filter_input( INPUT_GET, 'map' );
185
  $send_to_editor = false;
186
  if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
187
  $shortcode = intergeo_save_map( $map_id, $post_id );
@@ -201,28 +227,27 @@ function intergeo_map_popup_init() {
201
  wp_enqueue_script( 'intergeo-editor', INTERGEO_ABSURL . 'js/editor.js', array(
202
  'jquery-ddslick',
203
  'wp-color-picker',
204
- 'google-maps-v3'
205
- ), INTERGEO_VERSION );
206
  wp_localize_script( 'intergeo-editor', 'intergeo_options', array(
207
  'send_to_editor' => $send_to_editor,
 
208
  'adsense' => array( 'publisher_id' => get_option( 'intergeo_adsense_publisher_id' ) ),
209
  'ajaxurl' => admin_url( 'admin-ajax.php' ),
210
  'nonce' => wp_create_nonce( 'editor_popup' . filter_input( INPUT_SERVER, 'REMOTE_ADDR', FILTER_VALIDATE_IP ) ),
211
  'l10n' => array(
212
- 'marker' => __( 'marker', INTERGEO_PLUGIN_NAME ),
213
  'error' => array(
214
- 'style' => __( 'Styles are broken. Please, fix it and try again.', INTERGEO_PLUGIN_NAME ),
215
- 'directions' => __( 'Direction was not found.', INTERGEO_PLUGIN_NAME ),
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
  // Added by Ash/Upwork
222
- if ( defined( 'IntergeoMaps_Pro' ) ) {
223
- global $IntergeoMaps_Pro;
224
- $IntergeoMaps_Pro->enqueueScriptsAndStyles( array( 'intergeo-editor' ), array( "mapID" => $map_id ) );
225
- }
226
  // Added by Ash/Upwork
227
  wp_iframe( 'intergeo_iframe', $post_id, $map_id );
228
  }
@@ -230,9 +255,9 @@ function intergeo_map_popup_init() {
230
  function intergeo_iframe( $post_id = false, $map_id = false ) {
231
  $publisher_id = trim( get_option( 'intergeo_adsense_publisher_id' ) );
232
  $show_map_center = get_option( 'intergeo_show_map_center', true );
233
- $submit_text = __( 'Insert into post', INTERGEO_PLUGIN_NAME );
234
  if ( ! $post_id ) {
235
- $submit_text = __( 'Create the map', INTERGEO_PLUGIN_NAME );
236
  }
237
  $copy = false;
238
  if ( ! $map_id ) {
@@ -245,7 +270,7 @@ function intergeo_iframe( $post_id = false, $map_id = false ) {
245
  if ( $map->post_type == INTERGEO_PLUGIN_NAME ) {
246
  $json = json_decode( $map->post_content, true );
247
  if ( ! $copy ) {
248
- $submit_text = __( 'Update the map', INTERGEO_PLUGIN_NAME );
249
  }
250
  }
251
  }
@@ -273,7 +298,7 @@ function intergeo_filter_position( $position ) {
273
  'BOTTOM_LEFT',
274
  'LEFT_BOTTOM',
275
  'LEFT_CENTER',
276
- 'LEFT_TOP'
277
  ) );
278
  }
279
 
@@ -322,7 +347,7 @@ function intergeo_filter_adsense_format( $format ) {
322
 
323
  function intergeo_filter_custom_style( $style ) {
324
  $style = trim( $style );
325
- $json = @json_decode( $style, true );
326
 
327
  return empty( $json ) ? null : $json;
328
  }
@@ -361,8 +386,8 @@ function intergeo_filter_overlays_polyline( $polyline ) {
361
  ? filter_var( $polyline['weight'], FILTER_VALIDATE_INT, array(
362
  'options' => array(
363
  'min_range' => 1,
364
- 'default' => ''
365
- )
366
  ) )
367
  : '',
368
  'opacity' => isset( $polyline['opacity'] )
@@ -370,16 +395,16 @@ function intergeo_filter_overlays_polyline( $polyline ) {
370
  'options' => array(
371
  'min_range' => 0,
372
  'max_range' => 1,
373
- 'default' => ''
374
- )
375
  ) )
376
  : '',
377
  'color' => isset( $polyline['color'] )
378
  ? filter_var( $polyline['color'], FILTER_VALIDATE_REGEXP, array(
379
  'options' => array(
380
  'regexp' => '/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/',
381
- 'default' => '#000000'
382
- )
383
  ) )
384
  : '#000000',
385
  );
@@ -406,34 +431,34 @@ function intergeo_filter_overlays_polyoverlay( $polygon ) {
406
  'weight' => isset( $polygon['weight'] ) ? filter_var( $polygon['weight'], FILTER_VALIDATE_INT, array(
407
  'options' => array(
408
  'min_range' => 1,
409
- 'default' => ''
410
- )
411
  ) ) : '',
412
  'stroke_opacity' => isset( $polygon['stroke_opacity'] ) ? filter_var( $polygon['stroke_opacity'], FILTER_VALIDATE_FLOAT, array(
413
  'options' => array(
414
  'min_range' => 0,
415
  'max_range' => 1,
416
- 'default' => ''
417
- )
418
  ) ) : '',
419
  'stroke_color' => isset( $polygon['stroke_color'] ) ? filter_var( $polygon['stroke_color'], FILTER_VALIDATE_REGEXP, array(
420
  'options' => array(
421
  'regexp' => '/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/',
422
- 'default' => '#000000'
423
- )
424
  ) ) : '#000000',
425
  'fill_opacity' => isset( $polygon['fill_opacity'] ) ? filter_var( $polygon['fill_opacity'], FILTER_VALIDATE_FLOAT, array(
426
  'options' => array(
427
  'min_range' => 0,
428
  'max_range' => 1,
429
- 'default' => ''
430
- )
431
  ) ) : '',
432
  'fill_color' => isset( $polygon['fill_color'] ) ? filter_var( $polygon['fill_color'], FILTER_VALIDATE_REGEXP, array(
433
  'options' => array(
434
  'regexp' => '/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/',
435
- 'default' => '#000000'
436
- )
437
  ) ) : '#000000',
438
  );
439
  }
@@ -454,46 +479,46 @@ function intergeo_filter_directions( $direction ) {
454
  }
455
 
456
  function intergeo_filter_input() {
457
- $color_regexp = '/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/';
458
- $postion_filter = array( 'filter' => FILTER_CALLBACK, 'options' => 'intergeo_filter_position' );
459
  $validationArray = array(
460
  'lat' => array(
461
  'filter' => FILTER_VALIDATE_FLOAT,
462
  'flags' => FILTER_REQUIRE_SCALAR,
463
- 'options' => array( 'min_range' => - 90, 'max_range' => 90, 'default' => 48.1366069 )
464
  ),
465
  'lng' => array(
466
  'filter' => FILTER_VALIDATE_FLOAT,
467
  'flags' => FILTER_REQUIRE_SCALAR,
468
- 'options' => array( 'min_range' => - 180, 'max_range' => 180, 'default' => 11.577085099999977 )
469
  ),
470
  'zoom' => array(
471
  'filter' => FILTER_VALIDATE_INT,
472
  'flags' => FILTER_REQUIRE_SCALAR,
473
- 'options' => array( 'min_range' => 0, 'max_range' => 19, 'default' => 5 )
474
  ),
475
  'address' => FILTER_SANITIZE_STRING,
476
  'map_mapTypeId' => array(
477
  'filter' => FILTER_CALLBACK,
478
- 'options' => 'intergeo_filter_map_type'
479
  ),
480
  'map_draggable' => FILTER_VALIDATE_BOOLEAN,
481
  'map_minZoom' => array(
482
  'filter' => FILTER_VALIDATE_INT,
483
  'flags' => FILTER_REQUIRE_SCALAR,
484
- 'options' => array( 'min_range' => 0, 'max_range' => 19, 'default' => 0 )
485
  ),
486
  'map_maxZoom' => array(
487
  'filter' => FILTER_VALIDATE_INT,
488
  'flags' => FILTER_REQUIRE_SCALAR,
489
- 'options' => array( 'min_range' => 0, 'max_range' => 19, 'default' => 19 )
490
  ),
491
  'map_scrollwheel' => FILTER_VALIDATE_BOOLEAN,
492
  'map_zoomControl' => FILTER_VALIDATE_BOOLEAN,
493
  'map_zoomControlOptions_position' => $postion_filter,
494
  'map_zoomControlOptions_style' => array(
495
  'filter' => FILTER_CALLBACK,
496
- 'options' => 'intergeo_filter_zoom_style'
497
  ),
498
  'map_panControl' => FILTER_VALIDATE_BOOLEAN,
499
  'map_panControlOptions_position' => $postion_filter,
@@ -503,12 +528,12 @@ function intergeo_filter_input() {
503
  'map_mapTypeControlOptions_position' => $postion_filter,
504
  'map_mapTypeControlOptions_style' => array(
505
  'filter' => FILTER_CALLBACK,
506
- 'options' => 'intergeo_filter_map_type_style'
507
  ),
508
  'map_mapTypeControlOptions_mapTypeIds' => array(
509
  'filter' => FILTER_CALLBACK,
510
  'flags' => FILTER_REQUIRE_ARRAY,
511
- 'options' => 'intergeo_filter_map_type'
512
  ),
513
  'map_streetViewControl' => FILTER_VALIDATE_BOOLEAN,
514
  'map_streetViewControlOptions_position' => $postion_filter,
@@ -522,11 +547,11 @@ function intergeo_filter_input() {
522
  'layer_weather' => FILTER_VALIDATE_BOOLEAN,
523
  'weather_temperatureUnits' => array(
524
  'filter' => FILTER_CALLBACK,
525
- 'options' => 'intergeo_filter_temperature_units'
526
  ),
527
  'weather_windSpeedUnits' => array(
528
  'filter' => FILTER_CALLBACK,
529
- 'options' => 'intergeo_filter_wind_speed_units'
530
  ),
531
  'layer_panoramio' => FILTER_VALIDATE_BOOLEAN,
532
  'panoramio_tag' => FILTER_SANITIZE_STRING,
@@ -534,43 +559,43 @@ function intergeo_filter_input() {
534
  'layer_adsense' => FILTER_VALIDATE_BOOLEAN,
535
  'adsense_format' => array(
536
  'filter' => FILTER_CALLBACK,
537
- 'options' => 'intergeo_filter_adsense_format'
538
  ),
539
  'adsense_position' => $postion_filter,
540
  'adsense_backgroundColor' => array(
541
  'filter' => FILTER_VALIDATE_REGEXP,
542
  'options' => array(
543
  'regexp' => $color_regexp,
544
- 'default' => '#c4d4f3'
545
- )
546
  ),
547
  'adsense_borderColor' => array(
548
  'filter' => FILTER_VALIDATE_REGEXP,
549
  'options' => array(
550
  'regexp' => $color_regexp,
551
- 'default' => '#e5ecf9'
552
- )
553
  ),
554
  'adsense_titleColor' => array(
555
  'filter' => FILTER_VALIDATE_REGEXP,
556
  'options' => array(
557
  'regexp' => $color_regexp,
558
- 'default' => '#0000cc'
559
- )
560
  ),
561
  'adsense_textColor' => array(
562
  'filter' => FILTER_VALIDATE_REGEXP,
563
  'options' => array(
564
  'regexp' => $color_regexp,
565
- 'default' => '#000000'
566
- )
567
  ),
568
  'adsense_urlColor' => array(
569
  'filter' => FILTER_VALIDATE_REGEXP,
570
  'options' => array(
571
  'regexp' => $color_regexp,
572
- 'default' => '#009900'
573
- )
574
  ),
575
  'container_width' => FILTER_SANITIZE_STRING,
576
  'container_height' => FILTER_SANITIZE_STRING,
@@ -578,7 +603,7 @@ function intergeo_filter_input() {
578
  'styles_type' => FILTER_SANITIZE_STRING,
579
  'styles_custom' => array(
580
  'filter' => FILTER_CALLBACK,
581
- 'options' => 'intergeo_filter_custom_style'
582
  ),
583
  'overlays_marker' => array( 'filter' => FILTER_DEFAULT, 'flags' => FILTER_REQUIRE_ARRAY ),
584
  'overlays_polyline' => array( 'filter' => FILTER_DEFAULT, 'flags' => FILTER_REQUIRE_ARRAY ),
@@ -587,7 +612,7 @@ function intergeo_filter_input() {
587
  'overlays_circle' => array( 'filter' => FILTER_DEFAULT, 'flags' => FILTER_REQUIRE_ARRAY ),
588
  'directions' => array( 'filter' => FILTER_DEFAULT, 'flags' => FILTER_REQUIRE_ARRAY ),
589
  );
590
- $defaults = array(
591
  'lat' => 48.1366069,
592
  'lng' => 11.577085099999977,
593
  'zoom' => 5,
@@ -644,10 +669,8 @@ function intergeo_filter_input() {
644
  'directions' => array(),
645
  );
646
  // Added by Ash/Upwork
647
- if ( defined( 'IntergeoMaps_Pro' ) ) {
648
- global $IntergeoMaps_Pro;
649
- $IntergeoMaps_Pro->addValidations( $validationArray, $defaults );
650
- }
651
  // Added by Ash/Upwork
652
  $options = filter_input_array( INPUT_POST, $validationArray );
653
  $results = array();
@@ -678,10 +701,8 @@ function intergeo_filter_input() {
678
  }
679
  }
680
  // Added by Ash/Upwork
681
- if ( defined( 'IntergeoMaps_Pro' ) ) {
682
- global $IntergeoMaps_Pro;
683
- $IntergeoMaps_Pro->processResults( $results );
684
- }
685
 
686
  // Added by Ash/Upwork
687
  return $results;
@@ -710,7 +731,7 @@ function intergeo_save_map( $map_id = false, $post_id = false ) {
710
  if ( ! empty( $options['address'] ) ) {
711
  $address = $options['address'] = trim( $options['address'] );
712
  }
713
- $args = array(
714
  'post_type' => INTERGEO_PLUGIN_NAME,
715
  'post_content' => addcslashes( json_encode( $options ), '\\' ),
716
  'post_status' => 'private',
@@ -727,8 +748,8 @@ function intergeo_save_map( $map_id = false, $post_id = false ) {
727
  if ( ! empty( $id ) && ! is_wp_error( $id ) ) {
728
  if ( ! $post_id ) {
729
  intergeo_set_info( $update
730
- ? __( 'The map has been updated successfully.', INTERGEO_PLUGIN_NAME )
731
- : __( 'The map has been created successfully.', INTERGEO_PLUGIN_NAME )
732
  );
733
  }
734
 
@@ -736,8 +757,8 @@ function intergeo_save_map( $map_id = false, $post_id = false ) {
736
  }
737
  if ( ! $post_id ) {
738
  intergeo_set_error( $update
739
- ? __( 'The map updating failed.', INTERGEO_PLUGIN_NAME )
740
- : __( 'The map creation failed.', INTERGEO_PLUGIN_NAME )
741
  );
742
  }
743
 
@@ -761,8 +782,8 @@ add_filter( 'widget_text', 'do_shortcode' );
761
  add_filter( 'term_description', 'do_shortcode' );
762
  add_shortcode( INTERGEO_PLUGIN_NAME, 'intergeo_shortcode' );
763
  function intergeo_shortcode( $attrs, $address = '' ) {
764
- do_action( "intergeo_shortcode_render_before", $attrs );
765
- $args = shortcode_atts( array(
766
  'id' => false,
767
  'hook' => false,
768
  'width' => false,
@@ -796,10 +817,10 @@ function intergeo_shortcode( $attrs, $address = '' ) {
796
  if ( ! wp_script_is( 'intergeo-rendering' ) ) {
797
  wp_enqueue_script( 'intergeo-rendering', INTERGEO_ABSURL . 'js/rendering.js', array(
798
  'jquery',
799
- 'google-maps-v3'
800
  ), INTERGEO_VERSION );
801
  wp_localize_script( 'intergeo-rendering', 'intergeo_options', array(
802
- 'adsense' => array( 'publisher_id' => get_option( 'intergeo_adsense_publisher_id' ) )
803
  ) );
804
  }
805
  $container = array();
@@ -848,32 +869,43 @@ function intergeo_shortcode( $attrs, $address = '' ) {
848
  // <editor-fold defaultstate="collapsed" desc="library">
849
  add_action( 'admin_menu', 'intergeo_admin_menu' );
850
  function intergeo_admin_menu() {
851
- add_options_page( __( 'Intergeo Maps Library', INTERGEO_PLUGIN_NAME ), __( 'Intergeo Maps', INTERGEO_PLUGIN_NAME ), 'edit_posts', INTERGEO_PLUGIN_NAME, 'intergeo_settings_init' );
852
- $page = add_submenu_page( 'upload.php', __( 'Intergeo Maps Library', INTERGEO_PLUGIN_NAME ), __( 'Intergeo Maps', INTERGEO_PLUGIN_NAME ), 'edit_posts', INTERGEO_PLUGIN_NAME, 'intergeo_library' );
853
- if ( $page ) {
854
- add_action( "load-{$page}", 'intergeo_library_init' );
 
 
 
855
  }
856
  }
857
 
 
 
 
 
 
 
858
  function intergeo_library_init() {
859
  wp_enqueue_style( 'intergeo_library', INTERGEO_ABSURL . 'css/library.css', array(), INTERGEO_VERSION );
 
 
860
  wp_enqueue_media();
861
  $screen = get_current_screen();
862
  $screen->add_help_tab( array(
863
- 'title' => esc_html__( 'Overview', INTERGEO_PLUGIN_NAME ),
864
  'id' => 'overview',
865
  'content' => sprintf( '<p>%s</p>', implode( '</p><p>', array(
866
- 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 ),
867
- 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 ),
868
- 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 ),
869
  ) ) ),
870
  ) );
871
  $screen->add_help_tab( array(
872
- 'title' => esc_html__( 'Shortcodes', INTERGEO_PLUGIN_NAME ),
873
  'id' => 'shortcodes',
874
  'content' => sprintf( '<p>%s</p>', implode( '</p><p>', array(
875
- 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 ),
876
- 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 ),
877
  ) ) ),
878
  ) );
879
  }
@@ -882,7 +914,7 @@ function intergeo_library() {
882
  if ( filter_input( INPUT_GET, 'do' ) == 'delete' ) {
883
  intergeo_library_delete();
884
  }
885
- $query = new WP_Query( array(
886
  'orderby' => 'ID',
887
  'order' => 'DESC',
888
  'post_type' => INTERGEO_PLUGIN_NAME,
@@ -891,7 +923,7 @@ function intergeo_library() {
891
  'options' => array(
892
  'min_range' => 1,
893
  'default' => 1,
894
- )
895
  ) ),
896
  ) );
897
  $libraries = array();
@@ -909,20 +941,18 @@ function intergeo_library() {
909
  intergeo_enqueue_google_maps_script( $libraries );
910
  wp_enqueue_script( 'intergeo-rendering', INTERGEO_ABSURL . 'js/rendering.js', array(
911
  'jquery',
912
- 'google-maps-v3'
913
  ), INTERGEO_VERSION );
914
  wp_enqueue_script( 'intergeo-library', INTERGEO_ABSURL . 'js/library.js', array(
915
  'intergeo-rendering',
916
- 'media-views'
917
  ), INTERGEO_VERSION );
918
  wp_localize_script( 'intergeo-rendering', 'intergeo_options', array(
919
- 'adsense' => array( 'publisher_id' => get_option( 'intergeo_adsense_publisher_id' ) )
920
  ) );
921
  // Added by Ash/Upwork
922
- if ( defined( 'IntergeoMaps_Pro' ) ) {
923
- global $IntergeoMaps_Pro;
924
- $IntergeoMaps_Pro->enqueueScriptsAndStyles( array( 'intergeo-rendering' ) );
925
- }
926
  // Added by Ash/Upwork
927
  }
928
 
@@ -937,7 +967,7 @@ function intergeo_library_delete() {
937
  $post = get_post( $id );
938
  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 ) {
939
  if ( wp_delete_post( $id, true ) ) {
940
- intergeo_set_info( __( 'The map was deleted successfully.', INTERGEO_PLUGIN_NAME ) );
941
  }
942
  }
943
  if ( filter_input( INPUT_GET, 'noheader', FILTER_VALIDATE_BOOLEAN ) ) {
@@ -983,7 +1013,7 @@ function intergeo_print_messages() {
983
  return;
984
  }
985
  foreach ( $messages[ $user_id ] as $message ) {
986
- printf( $message[1] ? '<div class="updated"><p>%s</p></div>' : '<div class="error"><p>%s</p></div>', __( $message[0], INTERGEO_PLUGIN_NAME ) );
987
  }
988
  $messages[ $user_id ] = array();
989
  update_option( 'intergeo_messages', $messages );
@@ -994,30 +1024,30 @@ add_action( 'admin_enqueue_scripts', 'intergeo_enqueue_scripts' );
994
  function intergeo_enqueue_scripts() {
995
  wp_enqueue_script( 'intergeo-misc', INTERGEO_ABSURL . 'js/misc.js', array( 'jquery' ), INTERGEO_VERSION );
996
  wp_localize_script( 'intergeo-misc', 'intergeo_misc', array(
997
- "ajax" => array(
998
- "action" => "intergeo_dismiss_nag",
999
- "themeisle_feedback_action" => "themeisle_feedback_dismiss_nag",
1000
- "themeisle_feedback_slug" => INTERGEO_PLUGIN_NAME,
1001
- "nonce" => wp_create_nonce( INTERGEO_PLUGIN_NAME . INTERGEO_VERSION ),
1002
- )
1003
  ) );
1004
  }
1005
 
1006
  add_action( 'wp_ajax_intergeo_dismiss_nag', 'intergeo_dismiss_nag' );
1007
  function intergeo_dismiss_nag() {
1008
- check_ajax_referer( INTERGEO_PLUGIN_NAME . INTERGEO_VERSION, "security" );
1009
- update_option( "intergeo_nag_dismissed", true );
1010
  wp_die();
1011
  }
1012
 
1013
  function intergeo_show_nag() {
1014
  global $pagenow;
1015
- if ( $pagenow == 'plugins.php' && ! get_option( "intergeo_nag_dismissed", false ) ) {
1016
  include_once INTERGEO_ABSPATH . '/templates/nag.php';
1017
  }
1018
  }
1019
 
1020
- add_action( "admin_init", "intergeo_init_triggered_feedback" );
1021
  function intergeo_init_triggered_feedback() {
1022
  /*
1023
  array(
@@ -1039,123 +1069,123 @@ function intergeo_init_triggered_feedback() {
1039
  )
1040
  */
1041
  $feedback_config = array(
1042
- "intergeo_created_3_maps" => array(
1043
- "behaviour" => array(
1044
- "show_when" => "+6 hours",
1045
- "show_where" => "intergeo_triggered_feedback_show_notification_filter"
1046
  ),
1047
- "notifications" => array(
1048
  array(
1049
- "description" => "Hey, looks like you’re doing a great job creating maps with the Intergeo plugin. Can you share your experience with other people who are using it ? ",
1050
- "button_ok_link" => "http://bit.ly/2cNQyMz",
1051
- "button_ok_text" => " Sure, I can do it ",
1052
- "button_hide_text" => "Not now ",
1053
- "button_done_text" => "Already did it",
1054
  ),
1055
  array(
1056
- "description" => "Hey, looks like you’re doing a great job creating maps with the Intergeo plugin. Can you share your experience with other people who are using it ?",
1057
- "button_ok_link" => "http://bit.ly/2cE92Qp",
1058
- "button_ok_text" => "Yes, cool",
1059
- "button_hide_text" => "Not right now",
1060
- "button_done_text" => "Done it",
1061
  ),
1062
  array(
1063
- "description" => "Looks like you rock using the Intergeo plugin. Would you like to share your experience with others?",
1064
- "button_ok_link" => "http://bit.ly/2cFhgv0",
1065
- "button_ok_text" => "Yes, sure",
1066
- "button_hide_text" => "Not really",
1067
- "button_done_text" => "Already did",
1068
  ),
1069
  array(
1070
- "description" => "You’re quite productive using the Intergeo plugin. Would you like to share your experience with the rest of the users?",
1071
- "button_ok_link" => "http://bit.ly/2cVFijo",
1072
- "button_ok_text" => "Yes please",
1073
- "button_hide_text" => "Nope ",
1074
- "button_done_text" => "I've done it already",
1075
  ),
1076
- )
1077
  ),
1078
- "intergeo_plugin_1week_old" => array(
1079
- "behaviour" => array(
1080
- "show_when" => "+6 hours",
1081
- "show_where" => "intergeo_triggered_feedback_show_notification_filter"
1082
  ),
1083
- "notifications" => array(
1084
  array(
1085
- "description" => "You’ve been using Intergeo plugin for over 1 week. Would you like to leave a review about your experience so far?",
1086
- "button_ok_link" => "http://bit.ly/2d7Gq54",
1087
- "button_ok_text" => "Yep ",
1088
- "button_hide_text" => "Nope ",
1089
- "button_done_text" => " Already did",
1090
  ),
1091
  array(
1092
- "description" => "How is Intergeo plugin working for you? Would you mind leaving a review for others to see how it works?",
1093
- "button_ok_link" => "http://bit.ly/2cVFrDs",
1094
- "button_ok_text" => "Sure ",
1095
- "button_hide_text" => " Not today ",
1096
- "button_done_text" => " Already did ",
1097
  ),
1098
  array(
1099
- "description" => "We would love to get your feedback about using the Intergeo plugin so far. Can you share your thoughts with us in order to improve the future versions?",
1100
- "button_ok_link" => "http://bit.ly/2bkAJuE",
1101
- "button_ok_text" => "Okay ",
1102
- "button_hide_text" => " Not now ",
1103
- "button_done_text" => " I already did ",
1104
  ),
1105
- )
1106
  ),
1107
- "intergeo_map_frontend_display" => array(
1108
- "behaviour" => array(
1109
- "show_when" => "+6 hours",
1110
- "show_where" => "intergeo_triggered_feedback_show_notification_filter"
1111
  ),
1112
- "notifications" => array(
1113
  array(
1114
- "description" => "Hey, it seems you are already using the Intergeo maps shortcode in your site and your users are enjoying it. How about rating this plugin, it would help others learn about it.",
1115
- "button_ok_link" => "http://bit.ly/2cE9sGr",
1116
- "button_ok_text" => "Sure ",
1117
- "button_hide_text" => "Not now",
1118
- "button_done_text" => "I've already done it",
1119
  ),
1120
  array(
1121
- "description" => "It seems you are successfully using the Intergeo plugin and your users are enjoying it. Would you like to share your experience with other site owners?",
1122
- "button_ok_link" => "http://bit.ly/2czU8st",
1123
- "button_ok_text" => "Sure ",
1124
- "button_hide_text" => "Not now",
1125
- "button_done_text" => "I've already done it",
1126
  ),
1127
  array(
1128
- "description" => "Looks like you have successfully published your first map with the Intergeo plugin. Would you like to rate your experience with the plugin?",
1129
- "button_ok_link" => "http://bit.ly/2d1djQE",
1130
- "button_ok_text" => "Sure ",
1131
- "button_hide_text" => "Not now",
1132
- "button_done_text" => "I've already done it",
1133
  ),
1134
- )
1135
  ),
1136
  );
1137
  // add the configuration with the slug and trigger the generic action
1138
- do_action( "themeisle_triggered_feedback_add_config", $feedback_config, INTERGEO_PLUGIN_NAME );
1139
  }
1140
 
1141
- add_action( "themeisle_triggered_feedback_add_config", "themeisle_triggered_feedback_add_config", 10, 2 );
1142
  function themeisle_triggered_feedback_add_config( $config, $slug ) {
1143
  global $pagenow;
1144
- $trigger_time = $slug . "-triggered-feedback-time";
1145
- $trigger_type = $slug . "-triggered-feedback-type";
1146
  $fuse_lit = get_option( $trigger_time, false );
1147
  if ( $fuse_lit !== false ) {
1148
  if ( ctype_digit( $fuse_lit ) && $fuse_lit != - 1 && time() >= $fuse_lit ) {
1149
  // it is time to explode
1150
  $trigger = get_option( $trigger_type );
1151
  $attributes = $config[ $trigger ];
1152
- if ( apply_filters( $attributes["behaviour"]["show_where"], $pagenow ) === true ) {
1153
- $notification = $attributes["notifications"][ rand( 0, count( $attributes["notifications"] ) - 1 ) ];
1154
- do_action( "themeisle_triggered_feedback_show_notification", $notification, $slug );
1155
  }
1156
  }
1157
  } else {
1158
- //if multiple triggers are available, choose a random one
1159
  $triggers_available = array();
1160
  foreach ( $config as $trigger => $attributes ) {
1161
  $pull_trigger = apply_filters( $trigger, false );
@@ -1164,39 +1194,39 @@ function themeisle_triggered_feedback_add_config( $config, $slug ) {
1164
  $triggers_available[] = $trigger;
1165
  }
1166
  }
1167
- if( ! empty ($triggers_available) ){
1168
- $trigger_fuse = $triggers_available[ rand(0, ( count($triggers_available) - 1 ) ) ];
1169
- update_option( $trigger_time, strtotime( $config[$trigger_fuse]["behaviour"]["show_when"] ) );
1170
  update_option( $trigger_type, $trigger );
1171
  }
1172
  }
1173
  }
1174
 
1175
  global $themeisle_notification;
1176
- add_action( "themeisle_triggered_feedback_show_notification", "themeisle_triggered_feedback_show_notification", 10, 2 );
1177
  function themeisle_triggered_feedback_show_notification( $notification, $slug ) {
1178
  global $themeisle_notification;
1179
  if (
1180
- ! isset( $notification["description"] ) || empty( $notification["description"] )
1181
- || ! isset( $notification["button_ok_link"] ) || empty( $notification["button_ok_link"] )
1182
- || ! isset( $notification["button_ok_text"] ) || empty( $notification["button_ok_text"] )
1183
  ) {
1184
  return;
1185
  }
1186
- if ( ! isset( $notification["button_hide_text"] ) || empty( $notification["button_hide_text"] ) ) {
1187
- $notification["button_hide_text"] = __( "Hide", INTERGEO_PLUGIN_NAME );
1188
  }
1189
- if ( ! isset( $notification["button_done_text"] ) || empty( $notification["button_done_text"] ) ) {
1190
- $notification["button_done_text"] = __( "I've already done it", INTERGEO_PLUGIN_NAME );
1191
  }
1192
  $themeisle_notification = '
1193
  <style type="text/css">.ti-feedback-notice .themeisle-feedback-click { margin-left:5px; }</style><div class="updated activated notice is-dismissible themeisle_triggered_feedback_nag">'
1194
- . '<p>' . $notification["description"] . '</p>'
1195
- . '<p class="ti-feedback-notice"><a href="' . $notification["button_ok_link"] . '" target="_new"><input type="button" class="button button-secondary themeisle-feedback-click" value="' . $notification["button_ok_text"] . '"></a>'
1196
- . '<input type="button" class="button button-secondary themeisle-feedback-click" value="' . $notification["button_hide_text"] . '">'
1197
- . '<input type="button" class="button button-secondary themeisle-feedback-click" value="' . $notification["button_done_text"] . '">'
1198
  . '</p></div>';
1199
- add_action( "admin_notices", "themeisle_triggered_feedback_show_admin_notice" );
1200
  }
1201
 
1202
  function themeisle_triggered_feedback_show_admin_notice() {
@@ -1206,29 +1236,25 @@ function themeisle_triggered_feedback_show_admin_notice() {
1206
 
1207
  add_action( 'wp_ajax_themeisle_feedback_dismiss_nag', 'themeisle_feedback_dismiss_nag' );
1208
  function themeisle_feedback_dismiss_nag() {
1209
- check_ajax_referer( INTERGEO_PLUGIN_NAME . INTERGEO_VERSION, "security" );
1210
- update_option( sanitize_text_field( $_REQUEST["slug"] ) . "-triggered-feedback-time", - 1 );
1211
  wp_die();
1212
  }
1213
 
1214
- add_filter( "intergeo_triggered_feedback_show_notification_filter", "intergeo_triggered_feedback_show_notification_filter" );
1215
  function intergeo_triggered_feedback_show_notification_filter( $pagenow ) {
1216
- return ( $pagenow == 'upload.php' || $pagenow == 'options-general.php' ) && isset( $_GET["page"] ) && $_GET["page"] == INTERGEO_PLUGIN_NAME;
1217
  }
1218
 
1219
-
1220
-
1221
-
1222
-
1223
- register_activation_hook( __FILE__, "intergeo_activate" );
1224
  function intergeo_activate() {
1225
- if ( get_option( "intergeo-activation-date", false ) === false ) {
1226
- update_option( "intergeo-activation-date", time() );
1227
  }
1228
  }
1229
 
1230
- ///events triggered for feedback
1231
- add_filter( "intergeo_created_3_maps", "intergeo_created_3_maps" );
1232
  function intergeo_created_3_maps() {
1233
  $maps = get_posts( array(
1234
  'post_type' => INTERGEO_PLUGIN_NAME,
@@ -1240,9 +1266,9 @@ function intergeo_created_3_maps() {
1240
 
1241
  }
1242
 
1243
- add_filter( "intergeo_plugin_1week_old", "intergeo_plugin_1week_old" );
1244
  function intergeo_plugin_1week_old() {
1245
- $activation_date = get_option( "intergeo-activation-date", false );
1246
  if ( $activation_date !== false ) {
1247
  return ( ( time() - $activation_date ) >= 7 * 24 * 60 * 60 );
1248
  }
@@ -1250,16 +1276,128 @@ function intergeo_plugin_1week_old() {
1250
  return false;
1251
  }
1252
 
1253
- add_filter( "intergeo_map_frontend_display", "intergeo_map_frontend_display" );
1254
  function intergeo_map_frontend_display() {
1255
- return get_option( "intergeo-frontend-used", 0 ) > 0;
1256
  }
1257
 
1258
- add_action( "intergeo_shortcode_render_before", "intergeo_shortcode_render_before" );
1259
  function intergeo_shortcode_render_before( $atts ) {
1260
  // set a flag if the map has been shown on the front end
1261
- if ( ! is_admin() && get_option( "intergeo-frontend-used", 0 ) != 1 ) {
1262
- update_option( "intergeo-frontend-used", 1 );
1263
  }
1264
  }
1265
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <?php
2
  /*
3
+ Plugin Name: Intergeo - Google Maps Plugin
4
  Plugin URI: http://themeisle.com/plugins/intergeo-maps-lite/
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: 2.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
+ Text Domain: intergeo-maps
12
  Domain Path: /languages
13
  */
14
  // <editor-fold defaultstate="collapsed" desc="constants">
15
  define( 'INTERGEO_PLUGIN_NAME', 'intergeo' ); // don't change it whatever
16
+ define( 'INTERGEO_VERSION', '2.0.0' );
17
  define( 'INTERGEO_ABSPATH', dirname( __FILE__ ) );
18
  define( 'INTERGEO_ABSURL', plugins_url( '/', __FILE__ ) );
 
 
19
  defined( 'WPLANG' ) || define( 'WPLANG', '' );
20
+ define( 'INTERGEO_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );
21
+ define( 'INTERGEO_DIRNAME', dirname( plugin_basename( __FILE__ ) ) );
22
+ define( 'INTERGEO_DEBUG', false );
23
+
24
+ if ( ! defined( 'INTERGEO_PRO_URL' ) ) {
25
+ define( 'INTERGEO_PRO_URL', 'http://themeisle.com/plugins/intergeo-maps/' );
26
  }
27
  // Added by Ash/Upwork
28
  // </editor-fold>
32
  if ( $file == plugin_basename( __FILE__ ) ) {
33
  array_unshift(
34
  $links,
35
+ sprintf( '<a href="%s">%s</a>', add_query_arg( 'page', INTERGEO_PLUGIN_NAME, admin_url( 'upload.php' ) ), __( 'Maps', 'intergeo-maps' ) ),
36
+ sprintf( '<a href="%s">%s</a>', admin_url( 'options-media.php' ), __( 'Settings', 'intergeo-maps' ) )
37
  );
38
  }
39
 
51
  wp_register_style( 'intergeo-frontend', INTERGEO_ABSURL . 'css/frontend.css', array(), INTERGEO_VERSION );
52
  }
53
 
54
+ add_action( 'plugins_loaded', 'intergeo_i18n' );
55
  function intergeo_i18n() {
56
  $pluginDirName = dirname( plugin_basename( __FILE__ ) );
57
  $domain = INTERGEO_PLUGIN_NAME;
58
+ $locale = apply_filters( 'plugin_locale', get_locale(), $domain );
59
+ load_textdomain( $domain, WP_LANG_DIR . '/' . $pluginDirName . '/' . $domain . '-' . $locale . '.mo' );
60
+ load_plugin_textdomain( $domain, '', $pluginDirName . '/languages/' );
61
  }
62
 
63
  // </editor-fold>
64
  // <editor-fold defaultstate="collapsed" desc="settings">
65
+ function intergeo_settings() {
66
+ if ( isset( $_POST['sb-intergeo'] ) && wp_verify_nonce( $_POST['intergeo-nonce'], 'intergeo-settings' ) ) {
67
  update_option( 'intergeo_map_api_key', sanitize_text_field( $_POST['intergeo_map_api_key'] ) );
68
+ if ( intergeo_is_developer() ) {
69
+ update_option( 'intergeo_adsense_publisher_id', sanitize_text_field( $_POST['intergeo_adsense_publisher_id'] ) );
70
+ }
71
  }
72
+ echo '<div class="wrap">
73
+ <h2>
74
+ <div id="intergeo_lbrr_ttl">Inter<span style="color:#4067dc">g</span><span style="color:#e21b31">e</span><span style="color:#fcaa08">o</span>' . __( 'Maps Settings', 'intergeo-maps' ) . '</div> ';
75
+ if ( intergeo_check_maps_number() ) {
76
+ echo '<a href="' . admin_url( 'upload.php?page=' . INTERGEO_PLUGIN_NAME ) . '" class="add-new-h2">' . __( 'Create New Map', 'intergeo-maps' ) . '</a>';
77
+ } else {
78
+ echo '<a target="_blank" href="' . INTERGEO_PRO_URL . '" class="intergeo-pro-btn add-new-h2">' . __( 'Buy PRO version to add more maps', 'intergeo-maps' ) . '</a>';
79
+ }
80
+ echo '<a id="intergeo_lbrr_settings" href="' . admin_url( 'upload.php?page=' . INTERGEO_PLUGIN_NAME ) . '" class="add-new-h2">' . __( 'View Existing Maps', 'intergeo-maps' ) . '</a>
81
+ </h2>';
82
+ echo '<div class="intergeo_settings">';
83
+ echo '<div id="intergeo_sidebar" class="intergeo_sidebar_right">';
84
+ do_action( 'intergeo_render_subscribe_box' );
85
+ echo '</div>';
86
+ echo '<div class="intergeo_sidebar_left">';
87
  echo "<form method='post' action=''>";
88
  register_setting( 'intergeo', 'intergeo-settings-map-api-key', 'trim' );
89
+ add_settings_section( 'intergeo-settings-maps', __( 'Intergeo Google Maps', 'intergeo-maps' ), 'intergeo_settings_init_map', INTERGEO_PLUGIN_NAME );
90
+ add_settings_field( 'intergeo_map_api_key', __( 'Maps API Key', 'intergeo-maps' ), 'intergeo_settings_print_field', INTERGEO_PLUGIN_NAME, 'intergeo-settings-maps', array(
91
  '<input type="text" name="%s" value="%s" class="regular-text">',
92
  'intergeo_map_api_key',
93
  esc_attr( get_option( 'intergeo_map_api_key' ) ),
94
  ) );
95
+
96
+ if ( intergeo_is_developer() ) {
97
+ register_setting( 'intergeo', 'intergeo_adsense_publisher_id', 'trim' );
98
+ add_settings_section( 'intergeo-settings-adsense', __( 'Intergeo Google Maps AdSense Integration', 'intergeo-maps' ), 'intergeo_settings_init_adsense', INTERGEO_PLUGIN_NAME );
99
+ add_settings_field( 'intergeo_adsense_publisher_id', __( 'AdSense Publisher Id', 'intergeo-maps' ), 'intergeo_settings_print_field', INTERGEO_PLUGIN_NAME, 'intergeo-settings-adsense', array(
100
+ '<input type="text" name="%s" value="%s" class="regular-text">',
101
+ 'intergeo_adsense_publisher_id',
102
+ esc_attr( get_option( 'intergeo_adsense_publisher_id' ) ),
103
+ ) );
104
+ }
105
  do_settings_sections( INTERGEO_PLUGIN_NAME );
106
+ submit_button( __( 'Save Changes', 'intergeo-maps' ), 'primary', 'sb-intergeo' );
107
+ wp_nonce_field( 'intergeo-settings', 'intergeo-nonce' );
108
+ echo '</form>';
109
+ echo '</div>';
110
+ echo '</div>';
111
+ echo '</div>';
112
  }
113
 
114
  function intergeo_settings_init_map() {
115
  ?><p><?php
116
+ printf( esc_html__( ' Below shows how to find your API Key, after retrieving your key add it to the "Maps API Key" input box.', 'intergeo-maps' ) );
117
  ?></p>
118
 
119
  <iframe width="560" height="315" src="https://www.youtube.com/embed/gbFDMBGPCcs" frameborder="0"
120
+ allowfullscreen></iframe>
121
  <?php
122
  }
123
 
124
  function intergeo_settings_init_adsense() {
125
+
126
+ if ( intergeo_is_developer() ) {
127
+ ?><p><?php
128
+ 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-maps' ), '<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>' )
129
+ ?></p><p><?php
130
+ 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-maps' )
131
+ ?></p><?php
132
+ }
133
  }
134
 
135
  function intergeo_settings_print_field( array $args ) {
163
  if ( ! empty( $api_key ) ) {
164
  $params['key'] = $api_key;
165
  }
166
+ if ( wp_script_is( 'google-maps' ) ) {
167
+ wp_dequeue_script( 'google-maps' );
168
  }
169
  wp_enqueue_script( 'google-maps-v3', '//maps.googleapis.com/maps/api/js?' . http_build_query( $params ), array(), null );
170
  }
199
  // <editor-fold defaultstate="collapsed" desc="rendering">
200
  add_filter( 'media_upload_tabs', 'intergeo_media_upload_tabs' );
201
  function intergeo_media_upload_tabs( $tabs ) {
202
+ $tabs['intergeo_map'] = __( 'Intergeo Maps', 'intergeo-maps' );
203
 
204
  return $tabs;
205
  }
206
 
207
  add_action( 'media_upload_intergeo_map', 'intergeo_map_popup_init' );
208
  function intergeo_map_popup_init() {
209
+ $post_id = filter_input( INPUT_GET, 'post_id', FILTER_VALIDATE_INT, array( 'options' => array( 'min_range' => 1 ) ) );
210
+ $map_id = filter_input( INPUT_GET, 'map' );
211
  $send_to_editor = false;
212
  if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
213
  $shortcode = intergeo_save_map( $map_id, $post_id );
227
  wp_enqueue_script( 'intergeo-editor', INTERGEO_ABSURL . 'js/editor.js', array(
228
  'jquery-ddslick',
229
  'wp-color-picker',
230
+ 'google-maps-v3',
231
+ ), time() );
232
  wp_localize_script( 'intergeo-editor', 'intergeo_options', array(
233
  'send_to_editor' => $send_to_editor,
234
+ 'is_pro' => intergeo_is_personal() ? 'yes' : 'no',
235
  'adsense' => array( 'publisher_id' => get_option( 'intergeo_adsense_publisher_id' ) ),
236
  'ajaxurl' => admin_url( 'admin-ajax.php' ),
237
  'nonce' => wp_create_nonce( 'editor_popup' . filter_input( INPUT_SERVER, 'REMOTE_ADDR', FILTER_VALIDATE_IP ) ),
238
  'l10n' => array(
239
+ 'marker' => __( 'marker', 'intergeo-maps' ),
240
  'error' => array(
241
+ 'style' => __( 'Styles are broken. Please, fix it and try again.', 'intergeo-maps' ),
242
+ 'directions' => __( 'Direction was not found.', 'intergeo-maps' ),
243
  ),
244
  ),
245
  ) );
246
  wp_enqueue_style( 'wp-color-picker' );
247
  wp_enqueue_style( 'intergeo-editor', INTERGEO_ABSURL . 'css/editor.css', array(), INTERGEO_VERSION );
248
  // Added by Ash/Upwork
249
+ global $IntergeoMaps_Adv;
250
+ $IntergeoMaps_Adv->enqueueScriptsAndStyles( array( 'intergeo-editor' ), array( 'mapID' => $map_id ) );
 
 
251
  // Added by Ash/Upwork
252
  wp_iframe( 'intergeo_iframe', $post_id, $map_id );
253
  }
255
  function intergeo_iframe( $post_id = false, $map_id = false ) {
256
  $publisher_id = trim( get_option( 'intergeo_adsense_publisher_id' ) );
257
  $show_map_center = get_option( 'intergeo_show_map_center', true );
258
+ $submit_text = __( 'Insert into post', 'intergeo-maps' );
259
  if ( ! $post_id ) {
260
+ $submit_text = __( 'Create the map', 'intergeo-maps' );
261
  }
262
  $copy = false;
263
  if ( ! $map_id ) {
270
  if ( $map->post_type == INTERGEO_PLUGIN_NAME ) {
271
  $json = json_decode( $map->post_content, true );
272
  if ( ! $copy ) {
273
+ $submit_text = __( 'Update the map', 'intergeo-maps' );
274
  }
275
  }
276
  }
298
  'BOTTOM_LEFT',
299
  'LEFT_BOTTOM',
300
  'LEFT_CENTER',
301
+ 'LEFT_TOP',
302
  ) );
303
  }
304
 
347
 
348
  function intergeo_filter_custom_style( $style ) {
349
  $style = trim( $style );
350
+ $json = json_decode( $style, true );
351
 
352
  return empty( $json ) ? null : $json;
353
  }
386
  ? filter_var( $polyline['weight'], FILTER_VALIDATE_INT, array(
387
  'options' => array(
388
  'min_range' => 1,
389
+ 'default' => '',
390
+ ),
391
  ) )
392
  : '',
393
  'opacity' => isset( $polyline['opacity'] )
395
  'options' => array(
396
  'min_range' => 0,
397
  'max_range' => 1,
398
+ 'default' => '',
399
+ ),
400
  ) )
401
  : '',
402
  'color' => isset( $polyline['color'] )
403
  ? filter_var( $polyline['color'], FILTER_VALIDATE_REGEXP, array(
404
  'options' => array(
405
  'regexp' => '/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/',
406
+ 'default' => '#000000',
407
+ ),
408
  ) )
409
  : '#000000',
410
  );
431
  'weight' => isset( $polygon['weight'] ) ? filter_var( $polygon['weight'], FILTER_VALIDATE_INT, array(
432
  'options' => array(
433
  'min_range' => 1,
434
+ 'default' => '',
435
+ ),
436
  ) ) : '',
437
  'stroke_opacity' => isset( $polygon['stroke_opacity'] ) ? filter_var( $polygon['stroke_opacity'], FILTER_VALIDATE_FLOAT, array(
438
  'options' => array(
439
  'min_range' => 0,
440
  'max_range' => 1,
441
+ 'default' => '',
442
+ ),
443
  ) ) : '',
444
  'stroke_color' => isset( $polygon['stroke_color'] ) ? filter_var( $polygon['stroke_color'], FILTER_VALIDATE_REGEXP, array(
445
  'options' => array(
446
  'regexp' => '/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/',
447
+ 'default' => '#000000',
448
+ ),
449
  ) ) : '#000000',
450
  'fill_opacity' => isset( $polygon['fill_opacity'] ) ? filter_var( $polygon['fill_opacity'], FILTER_VALIDATE_FLOAT, array(
451
  'options' => array(
452
  'min_range' => 0,
453
  'max_range' => 1,
454
+ 'default' => '',
455
+ ),
456
  ) ) : '',
457
  'fill_color' => isset( $polygon['fill_color'] ) ? filter_var( $polygon['fill_color'], FILTER_VALIDATE_REGEXP, array(
458
  'options' => array(
459
  'regexp' => '/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/',
460
+ 'default' => '#000000',
461
+ ),
462
  ) ) : '#000000',
463
  );
464
  }
479
  }
480
 
481
  function intergeo_filter_input() {
482
+ $color_regexp = '/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/';
483
+ $postion_filter = array( 'filter' => FILTER_CALLBACK, 'options' => 'intergeo_filter_position' );
484
  $validationArray = array(
485
  'lat' => array(
486
  'filter' => FILTER_VALIDATE_FLOAT,
487
  'flags' => FILTER_REQUIRE_SCALAR,
488
+ 'options' => array( 'min_range' => - 90, 'max_range' => 90, 'default' => 48.1366069 ),
489
  ),
490
  'lng' => array(
491
  'filter' => FILTER_VALIDATE_FLOAT,
492
  'flags' => FILTER_REQUIRE_SCALAR,
493
+ 'options' => array( 'min_range' => - 180, 'max_range' => 180, 'default' => 11.577085099999977 ),
494
  ),
495
  'zoom' => array(
496
  'filter' => FILTER_VALIDATE_INT,
497
  'flags' => FILTER_REQUIRE_SCALAR,
498
+ 'options' => array( 'min_range' => 0, 'max_range' => 19, 'default' => 5 ),
499
  ),
500
  'address' => FILTER_SANITIZE_STRING,
501
  'map_mapTypeId' => array(
502
  'filter' => FILTER_CALLBACK,
503
+ 'options' => 'intergeo_filter_map_type',
504
  ),
505
  'map_draggable' => FILTER_VALIDATE_BOOLEAN,
506
  'map_minZoom' => array(
507
  'filter' => FILTER_VALIDATE_INT,
508
  'flags' => FILTER_REQUIRE_SCALAR,
509
+ 'options' => array( 'min_range' => 0, 'max_range' => 19, 'default' => 0 ),
510
  ),
511
  'map_maxZoom' => array(
512
  'filter' => FILTER_VALIDATE_INT,
513
  'flags' => FILTER_REQUIRE_SCALAR,
514
+ 'options' => array( 'min_range' => 0, 'max_range' => 19, 'default' => 19 ),
515
  ),
516
  'map_scrollwheel' => FILTER_VALIDATE_BOOLEAN,
517
  'map_zoomControl' => FILTER_VALIDATE_BOOLEAN,
518
  'map_zoomControlOptions_position' => $postion_filter,
519
  'map_zoomControlOptions_style' => array(
520
  'filter' => FILTER_CALLBACK,
521
+ 'options' => 'intergeo_filter_zoom_style',
522
  ),
523
  'map_panControl' => FILTER_VALIDATE_BOOLEAN,
524
  'map_panControlOptions_position' => $postion_filter,
528
  'map_mapTypeControlOptions_position' => $postion_filter,
529
  'map_mapTypeControlOptions_style' => array(
530
  'filter' => FILTER_CALLBACK,
531
+ 'options' => 'intergeo_filter_map_type_style',
532
  ),
533
  'map_mapTypeControlOptions_mapTypeIds' => array(
534
  'filter' => FILTER_CALLBACK,
535
  'flags' => FILTER_REQUIRE_ARRAY,
536
+ 'options' => 'intergeo_filter_map_type',
537
  ),
538
  'map_streetViewControl' => FILTER_VALIDATE_BOOLEAN,
539
  'map_streetViewControlOptions_position' => $postion_filter,
547
  'layer_weather' => FILTER_VALIDATE_BOOLEAN,
548
  'weather_temperatureUnits' => array(
549
  'filter' => FILTER_CALLBACK,
550
+ 'options' => 'intergeo_filter_temperature_units',
551
  ),
552
  'weather_windSpeedUnits' => array(
553
  'filter' => FILTER_CALLBACK,
554
+ 'options' => 'intergeo_filter_wind_speed_units',
555
  ),
556
  'layer_panoramio' => FILTER_VALIDATE_BOOLEAN,
557
  'panoramio_tag' => FILTER_SANITIZE_STRING,
559
  'layer_adsense' => FILTER_VALIDATE_BOOLEAN,
560
  'adsense_format' => array(
561
  'filter' => FILTER_CALLBACK,
562
+ 'options' => 'intergeo_filter_adsense_format',
563
  ),
564
  'adsense_position' => $postion_filter,
565
  'adsense_backgroundColor' => array(
566
  'filter' => FILTER_VALIDATE_REGEXP,
567
  'options' => array(
568
  'regexp' => $color_regexp,
569
+ 'default' => '#c4d4f3',
570
+ ),
571
  ),
572
  'adsense_borderColor' => array(
573
  'filter' => FILTER_VALIDATE_REGEXP,
574
  'options' => array(
575
  'regexp' => $color_regexp,
576
+ 'default' => '#e5ecf9',
577
+ ),
578
  ),
579
  'adsense_titleColor' => array(
580
  'filter' => FILTER_VALIDATE_REGEXP,
581
  'options' => array(
582
  'regexp' => $color_regexp,
583
+ 'default' => '#0000cc',
584
+ ),
585
  ),
586
  'adsense_textColor' => array(
587
  'filter' => FILTER_VALIDATE_REGEXP,
588
  'options' => array(
589
  'regexp' => $color_regexp,
590
+ 'default' => '#000000',
591
+ ),
592
  ),
593
  'adsense_urlColor' => array(
594
  'filter' => FILTER_VALIDATE_REGEXP,
595
  'options' => array(
596
  'regexp' => $color_regexp,
597
+ 'default' => '#009900',
598
+ ),
599
  ),
600
  'container_width' => FILTER_SANITIZE_STRING,
601
  'container_height' => FILTER_SANITIZE_STRING,
603
  'styles_type' => FILTER_SANITIZE_STRING,
604
  'styles_custom' => array(
605
  'filter' => FILTER_CALLBACK,
606
+ 'options' => 'intergeo_filter_custom_style',
607
  ),
608
  'overlays_marker' => array( 'filter' => FILTER_DEFAULT, 'flags' => FILTER_REQUIRE_ARRAY ),
609
  'overlays_polyline' => array( 'filter' => FILTER_DEFAULT, 'flags' => FILTER_REQUIRE_ARRAY ),
612
  'overlays_circle' => array( 'filter' => FILTER_DEFAULT, 'flags' => FILTER_REQUIRE_ARRAY ),
613
  'directions' => array( 'filter' => FILTER_DEFAULT, 'flags' => FILTER_REQUIRE_ARRAY ),
614
  );
615
+ $defaults = array(
616
  'lat' => 48.1366069,
617
  'lng' => 11.577085099999977,
618
  'zoom' => 5,
669
  'directions' => array(),
670
  );
671
  // Added by Ash/Upwork
672
+ global $IntergeoMaps_Adv;
673
+ $IntergeoMaps_Adv->addValidations( $validationArray, $defaults );
 
 
674
  // Added by Ash/Upwork
675
  $options = filter_input_array( INPUT_POST, $validationArray );
676
  $results = array();
701
  }
702
  }
703
  // Added by Ash/Upwork
704
+ global $IntergeoMaps_Adv;
705
+ $IntergeoMaps_Adv->processResults( $results );
 
 
706
 
707
  // Added by Ash/Upwork
708
  return $results;
731
  if ( ! empty( $options['address'] ) ) {
732
  $address = $options['address'] = trim( $options['address'] );
733
  }
734
+ $args = array(
735
  'post_type' => INTERGEO_PLUGIN_NAME,
736
  'post_content' => addcslashes( json_encode( $options ), '\\' ),
737
  'post_status' => 'private',
748
  if ( ! empty( $id ) && ! is_wp_error( $id ) ) {
749
  if ( ! $post_id ) {
750
  intergeo_set_info( $update
751
+ ? __( 'The map has been updated successfully.', 'intergeo-maps' )
752
+ : __( 'The map has been created successfully.', 'intergeo-maps' )
753
  );
754
  }
755
 
757
  }
758
  if ( ! $post_id ) {
759
  intergeo_set_error( $update
760
+ ? __( 'The map updating failed.', 'intergeo-maps' )
761
+ : __( 'The map creation failed.', 'intergeo-maps' )
762
  );
763
  }
764
 
782
  add_filter( 'term_description', 'do_shortcode' );
783
  add_shortcode( INTERGEO_PLUGIN_NAME, 'intergeo_shortcode' );
784
  function intergeo_shortcode( $attrs, $address = '' ) {
785
+ do_action( 'intergeo_shortcode_render_before', $attrs );
786
+ $args = shortcode_atts( array(
787
  'id' => false,
788
  'hook' => false,
789
  'width' => false,
817
  if ( ! wp_script_is( 'intergeo-rendering' ) ) {
818
  wp_enqueue_script( 'intergeo-rendering', INTERGEO_ABSURL . 'js/rendering.js', array(
819
  'jquery',
820
+ 'google-maps-v3',
821
  ), INTERGEO_VERSION );
822
  wp_localize_script( 'intergeo-rendering', 'intergeo_options', array(
823
+ 'adsense' => array( 'publisher_id' => get_option( 'intergeo_adsense_publisher_id' ) ),
824
  ) );
825
  }
826
  $container = array();
869
  // <editor-fold defaultstate="collapsed" desc="library">
870
  add_action( 'admin_menu', 'intergeo_admin_menu' );
871
  function intergeo_admin_menu() {
872
+ $settings = add_options_page( __( 'Intergeo Maps Library', 'intergeo-maps' ), __( 'Intergeo Maps', 'intergeo-maps' ), 'edit_posts', INTERGEO_PLUGIN_NAME, 'intergeo_settings' );
873
+ if ( $settings ) {
874
+ add_action( "load-{$settings}", 'intergeo_settings_init' );
875
+ }
876
+ $library = add_submenu_page( 'upload.php', __( 'Intergeo Maps Library', 'intergeo-maps' ), __( 'Intergeo Maps', 'intergeo-maps' ), 'edit_posts', INTERGEO_PLUGIN_NAME, 'intergeo_library' );
877
+ if ( $library ) {
878
+ add_action( "load-{$library}", 'intergeo_library_init' );
879
  }
880
  }
881
 
882
+ function intergeo_settings_init() {
883
+ wp_enqueue_style( 'intergeo_library', INTERGEO_ABSURL . 'css/library.css', array(), INTERGEO_VERSION );
884
+ wp_enqueue_script( 'themeisle-subscribe', INTERGEO_ABSURL . 'subscribe/subscribe.js', array( 'jquery' ) );
885
+ wp_localize_script( 'themeisle-subscribe', 'ti', array() );
886
+ }
887
+
888
  function intergeo_library_init() {
889
  wp_enqueue_style( 'intergeo_library', INTERGEO_ABSURL . 'css/library.css', array(), INTERGEO_VERSION );
890
+ wp_enqueue_script( 'themeisle-subscribe', INTERGEO_ABSURL . 'subscribe/subscribe.js', array( 'jquery' ) );
891
+ wp_localize_script( 'themeisle-subscribe', 'ti', array() );
892
  wp_enqueue_media();
893
  $screen = get_current_screen();
894
  $screen->add_help_tab( array(
895
+ 'title' => esc_html__( 'Overview', 'intergeo-maps' ),
896
  'id' => 'overview',
897
  'content' => sprintf( '<p>%s</p>', implode( '</p><p>', array(
898
+ 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-maps' ),
899
+ 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-maps' ),
900
+ 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-maps' ),
901
  ) ) ),
902
  ) );
903
  $screen->add_help_tab( array(
904
+ 'title' => esc_html__( 'Shortcodes', 'intergeo-maps' ),
905
  'id' => 'shortcodes',
906
  'content' => sprintf( '<p>%s</p>', implode( '</p><p>', array(
907
+ 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-maps' ),
908
+ 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-maps' ),
909
  ) ) ),
910
  ) );
911
  }
914
  if ( filter_input( INPUT_GET, 'do' ) == 'delete' ) {
915
  intergeo_library_delete();
916
  }
917
+ $query = new WP_Query( array(
918
  'orderby' => 'ID',
919
  'order' => 'DESC',
920
  'post_type' => INTERGEO_PLUGIN_NAME,
923
  'options' => array(
924
  'min_range' => 1,
925
  'default' => 1,
926
+ ),
927
  ) ),
928
  ) );
929
  $libraries = array();
941
  intergeo_enqueue_google_maps_script( $libraries );
942
  wp_enqueue_script( 'intergeo-rendering', INTERGEO_ABSURL . 'js/rendering.js', array(
943
  'jquery',
944
+ 'google-maps-v3',
945
  ), INTERGEO_VERSION );
946
  wp_enqueue_script( 'intergeo-library', INTERGEO_ABSURL . 'js/library.js', array(
947
  'intergeo-rendering',
948
+ 'media-views',
949
  ), INTERGEO_VERSION );
950
  wp_localize_script( 'intergeo-rendering', 'intergeo_options', array(
951
+ 'adsense' => array( 'publisher_id' => get_option( 'intergeo_adsense_publisher_id' ) ),
952
  ) );
953
  // Added by Ash/Upwork
954
+ global $IntergeoMaps_Adv;
955
+ $IntergeoMaps_Adv->enqueueScriptsAndStyles( array( 'intergeo-rendering' ) );
 
 
956
  // Added by Ash/Upwork
957
  }
958
 
967
  $post = get_post( $id );
968
  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 ) {
969
  if ( wp_delete_post( $id, true ) ) {
970
+ intergeo_set_info( __( 'The map was deleted successfully.', 'intergeo-maps' ) );
971
  }
972
  }
973
  if ( filter_input( INPUT_GET, 'noheader', FILTER_VALIDATE_BOOLEAN ) ) {
1013
  return;
1014
  }
1015
  foreach ( $messages[ $user_id ] as $message ) {
1016
+ printf( $message[1] ? '<div class="updated"><p>%s</p></div>' : '<div class="error"><p>%s</p></div>', $message[0] );
1017
  }
1018
  $messages[ $user_id ] = array();
1019
  update_option( 'intergeo_messages', $messages );
1024
  function intergeo_enqueue_scripts() {
1025
  wp_enqueue_script( 'intergeo-misc', INTERGEO_ABSURL . 'js/misc.js', array( 'jquery' ), INTERGEO_VERSION );
1026
  wp_localize_script( 'intergeo-misc', 'intergeo_misc', array(
1027
+ 'ajax' => array(
1028
+ 'action' => 'intergeo_dismiss_nag',
1029
+ 'themeisle_feedback_action' => 'themeisle_feedback_dismiss_nag',
1030
+ 'themeisle_feedback_slug' => INTERGEO_PLUGIN_NAME,
1031
+ 'nonce' => wp_create_nonce( INTERGEO_PLUGIN_NAME . INTERGEO_VERSION ),
1032
+ ),
1033
  ) );
1034
  }
1035
 
1036
  add_action( 'wp_ajax_intergeo_dismiss_nag', 'intergeo_dismiss_nag' );
1037
  function intergeo_dismiss_nag() {
1038
+ check_ajax_referer( INTERGEO_PLUGIN_NAME . INTERGEO_VERSION, 'security' );
1039
+ update_option( 'intergeo_nag_dismissed', true );
1040
  wp_die();
1041
  }
1042
 
1043
  function intergeo_show_nag() {
1044
  global $pagenow;
1045
+ if ( $pagenow == 'plugins.php' && ! get_option( 'intergeo_nag_dismissed', false ) ) {
1046
  include_once INTERGEO_ABSPATH . '/templates/nag.php';
1047
  }
1048
  }
1049
 
1050
+ add_action( 'admin_init', 'intergeo_init_triggered_feedback' );
1051
  function intergeo_init_triggered_feedback() {
1052
  /*
1053
  array(
1069
  )
1070
  */
1071
  $feedback_config = array(
1072
+ 'intergeo_created_3_maps' => array(
1073
+ 'behaviour' => array(
1074
+ 'show_when' => '+6 hours',
1075
+ 'show_where' => 'intergeo_triggered_feedback_show_notification_filter',
1076
  ),
1077
+ 'notifications' => array(
1078
  array(
1079
+ 'description' => 'Hey, looks like you’re doing a great job creating maps with the Intergeo plugin. Can you share your experience with other people who are using it ? ',
1080
+ 'button_ok_link' => 'http://bit.ly/2cNQyMz',
1081
+ 'button_ok_text' => ' Sure, I can do it ',
1082
+ 'button_hide_text' => 'Not now ',
1083
+ 'button_done_text' => 'Already did it',
1084
  ),
1085
  array(
1086
+ 'description' => 'Hey, looks like you’re doing a great job creating maps with the Intergeo plugin. Can you share your experience with other people who are using it ?',
1087
+ 'button_ok_link' => 'http://bit.ly/2cE92Qp',
1088
+ 'button_ok_text' => 'Yes, cool',
1089
+ 'button_hide_text' => 'Not right now',
1090
+ 'button_done_text' => 'Done it',
1091
  ),
1092
  array(
1093
+ 'description' => 'Looks like you rock using the Intergeo plugin. Would you like to share your experience with others?',
1094
+ 'button_ok_link' => 'http://bit.ly/2cFhgv0',
1095
+ 'button_ok_text' => 'Yes, sure',
1096
+ 'button_hide_text' => 'Not really',
1097
+ 'button_done_text' => 'Already did',
1098
  ),
1099
  array(
1100
+ 'description' => 'You’re quite productive using the Intergeo plugin. Would you like to share your experience with the rest of the users?',
1101
+ 'button_ok_link' => 'http://bit.ly/2cVFijo',
1102
+ 'button_ok_text' => 'Yes please',
1103
+ 'button_hide_text' => 'Nope ',
1104
+ 'button_done_text' => "I've done it already",
1105
  ),
1106
+ ),
1107
  ),
1108
+ 'intergeo_plugin_1week_old' => array(
1109
+ 'behaviour' => array(
1110
+ 'show_when' => '+6 hours',
1111
+ 'show_where' => 'intergeo_triggered_feedback_show_notification_filter',
1112
  ),
1113
+ 'notifications' => array(
1114
  array(
1115
+ 'description' => 'You’ve been using Intergeo plugin for over 1 week. Would you like to leave a review about your experience so far?',
1116
+ 'button_ok_link' => 'http://bit.ly/2d7Gq54',
1117
+ 'button_ok_text' => 'Yep ',
1118
+ 'button_hide_text' => 'Nope ',
1119
+ 'button_done_text' => ' Already did',
1120
  ),
1121
  array(
1122
+ 'description' => 'How is Intergeo plugin working for you? Would you mind leaving a review for others to see how it works?',
1123
+ 'button_ok_link' => 'http://bit.ly/2cVFrDs',
1124
+ 'button_ok_text' => 'Sure ',
1125
+ 'button_hide_text' => ' Not today ',
1126
+ 'button_done_text' => ' Already did ',
1127
  ),
1128
  array(
1129
+ 'description' => 'We would love to get your feedback about using the Intergeo plugin so far. Can you share your thoughts with us in order to improve the future versions?',
1130
+ 'button_ok_link' => 'http://bit.ly/2bkAJuE',
1131
+ 'button_ok_text' => 'Okay ',
1132
+ 'button_hide_text' => ' Not now ',
1133
+ 'button_done_text' => ' I already did ',
1134
  ),
1135
+ ),
1136
  ),
1137
+ 'intergeo_map_frontend_display' => array(
1138
+ 'behaviour' => array(
1139
+ 'show_when' => '+6 hours',
1140
+ 'show_where' => 'intergeo_triggered_feedback_show_notification_filter',
1141
  ),
1142
+ 'notifications' => array(
1143
  array(
1144
+ 'description' => 'Hey, it seems you are already using the Intergeo maps shortcode in your site and your users are enjoying it. How about rating this plugin, it would help others learn about it.',
1145
+ 'button_ok_link' => 'http://bit.ly/2cE9sGr',
1146
+ 'button_ok_text' => 'Sure ',
1147
+ 'button_hide_text' => 'Not now',
1148
+ 'button_done_text' => "I've already done it",
1149
  ),
1150
  array(
1151
+ 'description' => 'It seems you are successfully using the Intergeo plugin and your users are enjoying it. Would you like to share your experience with other site owners?',
1152
+ 'button_ok_link' => 'http://bit.ly/2czU8st',
1153
+ 'button_ok_text' => 'Sure ',
1154
+ 'button_hide_text' => 'Not now',
1155
+ 'button_done_text' => "I've already done it",
1156
  ),
1157
  array(
1158
+ 'description' => 'Looks like you have successfully published your first map with the Intergeo plugin. Would you like to rate your experience with the plugin?',
1159
+ 'button_ok_link' => 'http://bit.ly/2d1djQE',
1160
+ 'button_ok_text' => 'Sure ',
1161
+ 'button_hide_text' => 'Not now',
1162
+ 'button_done_text' => "I've already done it",
1163
  ),
1164
+ ),
1165
  ),
1166
  );
1167
  // add the configuration with the slug and trigger the generic action
1168
+ do_action( 'themeisle_triggered_feedback_add_config', $feedback_config, INTERGEO_PLUGIN_NAME );
1169
  }
1170
 
1171
+ add_action( 'themeisle_triggered_feedback_add_config', 'themeisle_triggered_feedback_add_config', 10, 2 );
1172
  function themeisle_triggered_feedback_add_config( $config, $slug ) {
1173
  global $pagenow;
1174
+ $trigger_time = $slug . '-triggered-feedback-time';
1175
+ $trigger_type = $slug . '-triggered-feedback-type';
1176
  $fuse_lit = get_option( $trigger_time, false );
1177
  if ( $fuse_lit !== false ) {
1178
  if ( ctype_digit( $fuse_lit ) && $fuse_lit != - 1 && time() >= $fuse_lit ) {
1179
  // it is time to explode
1180
  $trigger = get_option( $trigger_type );
1181
  $attributes = $config[ $trigger ];
1182
+ if ( apply_filters( $attributes['behaviour']['show_where'], $pagenow ) === true ) {
1183
+ $notification = $attributes['notifications'][ rand( 0, count( $attributes['notifications'] ) - 1 ) ];
1184
+ do_action( 'themeisle_triggered_feedback_show_notification', $notification, $slug );
1185
  }
1186
  }
1187
  } else {
1188
+ // if multiple triggers are available, choose a random one
1189
  $triggers_available = array();
1190
  foreach ( $config as $trigger => $attributes ) {
1191
  $pull_trigger = apply_filters( $trigger, false );
1194
  $triggers_available[] = $trigger;
1195
  }
1196
  }
1197
+ if ( ! empty( $triggers_available ) ) {
1198
+ $trigger_fuse = $triggers_available[ rand( 0, ( count( $triggers_available ) - 1 ) ) ];
1199
+ update_option( $trigger_time, strtotime( $config[ $trigger_fuse ]['behaviour']['show_when'] ) );
1200
  update_option( $trigger_type, $trigger );
1201
  }
1202
  }
1203
  }
1204
 
1205
  global $themeisle_notification;
1206
+ add_action( 'themeisle_triggered_feedback_show_notification', 'themeisle_triggered_feedback_show_notification', 10, 2 );
1207
  function themeisle_triggered_feedback_show_notification( $notification, $slug ) {
1208
  global $themeisle_notification;
1209
  if (
1210
+ ! isset( $notification['description'] ) || empty( $notification['description'] )
1211
+ || ! isset( $notification['button_ok_link'] ) || empty( $notification['button_ok_link'] )
1212
+ || ! isset( $notification['button_ok_text'] ) || empty( $notification['button_ok_text'] )
1213
  ) {
1214
  return;
1215
  }
1216
+ if ( ! isset( $notification['button_hide_text'] ) || empty( $notification['button_hide_text'] ) ) {
1217
+ $notification['button_hide_text'] = __( 'Hide', 'intergeo-maps' );
1218
  }
1219
+ if ( ! isset( $notification['button_done_text'] ) || empty( $notification['button_done_text'] ) ) {
1220
+ $notification['button_done_text'] = __( "I've already done it", 'intergeo-maps' );
1221
  }
1222
  $themeisle_notification = '
1223
  <style type="text/css">.ti-feedback-notice .themeisle-feedback-click { margin-left:5px; }</style><div class="updated activated notice is-dismissible themeisle_triggered_feedback_nag">'
1224
+ . '<p>' . $notification['description'] . '</p>'
1225
+ . '<p class="ti-feedback-notice"><a href="' . $notification['button_ok_link'] . '" target="_new"><input type="button" class="button button-secondary themeisle-feedback-click" value="' . $notification['button_ok_text'] . '"></a>'
1226
+ . '<input type="button" class="button button-secondary themeisle-feedback-click" value="' . $notification['button_hide_text'] . '">'
1227
+ . '<input type="button" class="button button-secondary themeisle-feedback-click" value="' . $notification['button_done_text'] . '">'
1228
  . '</p></div>';
1229
+ add_action( 'admin_notices', 'themeisle_triggered_feedback_show_admin_notice' );
1230
  }
1231
 
1232
  function themeisle_triggered_feedback_show_admin_notice() {
1236
 
1237
  add_action( 'wp_ajax_themeisle_feedback_dismiss_nag', 'themeisle_feedback_dismiss_nag' );
1238
  function themeisle_feedback_dismiss_nag() {
1239
+ check_ajax_referer( INTERGEO_PLUGIN_NAME . INTERGEO_VERSION, 'security' );
1240
+ update_option( sanitize_text_field( $_REQUEST['slug'] ) . '-triggered-feedback-time', - 1 );
1241
  wp_die();
1242
  }
1243
 
1244
+ add_filter( 'intergeo_triggered_feedback_show_notification_filter', 'intergeo_triggered_feedback_show_notification_filter' );
1245
  function intergeo_triggered_feedback_show_notification_filter( $pagenow ) {
1246
+ return ( $pagenow == 'upload.php' || $pagenow == 'options-general.php' ) && isset( $_GET['page'] ) && $_GET['page'] == INTERGEO_PLUGIN_NAME;
1247
  }
1248
 
1249
+ register_activation_hook( __FILE__, 'intergeo_activate' );
 
 
 
 
1250
  function intergeo_activate() {
1251
+ if ( get_option( 'intergeo-activation-date', false ) === false ) {
1252
+ update_option( 'intergeo-activation-date', time() );
1253
  }
1254
  }
1255
 
1256
+ // events triggered for feedback
1257
+ add_filter( 'intergeo_created_3_maps', 'intergeo_created_3_maps' );
1258
  function intergeo_created_3_maps() {
1259
  $maps = get_posts( array(
1260
  'post_type' => INTERGEO_PLUGIN_NAME,
1266
 
1267
  }
1268
 
1269
+ add_filter( 'intergeo_plugin_1week_old', 'intergeo_plugin_1week_old' );
1270
  function intergeo_plugin_1week_old() {
1271
+ $activation_date = get_option( 'intergeo-activation-date', false );
1272
  if ( $activation_date !== false ) {
1273
  return ( ( time() - $activation_date ) >= 7 * 24 * 60 * 60 );
1274
  }
1276
  return false;
1277
  }
1278
 
1279
+ add_filter( 'intergeo_map_frontend_display', 'intergeo_map_frontend_display' );
1280
  function intergeo_map_frontend_display() {
1281
+ return get_option( 'intergeo-frontend-used', 0 ) > 0;
1282
  }
1283
 
1284
+ add_action( 'intergeo_shortcode_render_before', 'intergeo_shortcode_render_before' );
1285
  function intergeo_shortcode_render_before( $atts ) {
1286
  // set a flag if the map has been shown on the front end
1287
+ if ( ! is_admin() && get_option( 'intergeo-frontend-used', 0 ) != 1 ) {
1288
+ update_option( 'intergeo-frontend-used', 1 );
1289
  }
1290
  }
1291
 
1292
+ // Include the advanced/pro features
1293
+ require dirname( __FILE__ ) . '/pro/addon.php';
1294
+ add_action( 'plugins_loaded', 'intergeo_check_version' );
1295
+ function intergeo_check_version() {
1296
+ $check = get_option( 'intergeo_new_users_flag', '' );
1297
+ if ( $check === '' ) {
1298
+ $query = new WP_Query( array(
1299
+ 'orderby' => 'ID',
1300
+ 'order' => 'DESC',
1301
+ 'post_type' => INTERGEO_PLUGIN_NAME,
1302
+ 'posts_per_page' => 1,
1303
+ ) );
1304
+ if ( $query->found_posts === 0 ) {
1305
+ update_option( 'intergeo_new_users_flag', 'yes' );
1306
+ } else {
1307
+ update_option( 'intergeo_new_users_flag', 'no' );
1308
+ }
1309
+ }
1310
+ }
1311
+
1312
+ function intergeo_get_maps() {
1313
+ $query = new WP_Query( array(
1314
+ 'orderby' => 'ID',
1315
+ 'order' => 'DESC',
1316
+ 'fields' => 'ids',
1317
+ 'no_found_rows' => true,
1318
+ 'update_post_meta_cache' => false,
1319
+ 'update_post_term_cache' => false,
1320
+ 'post_type' => INTERGEO_PLUGIN_NAME,
1321
+ 'posts_per_page' => 11,
1322
+ ) );
1323
+ return $query->post_count;
1324
+ }
1325
+ function intergeo_is_new() {
1326
+ $check = get_option( 'intergeo_new_users_flag', '' );
1327
+ if ( $check === 'yes' ) {
1328
+ return true;
1329
+ }
1330
+ if ( $check === 'no' ) {
1331
+ return false;
1332
+ }
1333
+
1334
+ return false;
1335
+ }
1336
+
1337
+ function intergeo_is_free() {
1338
+ return ( ! defined( 'IntergeoMapsPro_Version' ) );
1339
+ }
1340
+
1341
+ function intergeo_is_personal() {
1342
+ if ( intergeo_is_new() ) {
1343
+ if ( ! intergeo_is_free() ) {
1344
+ return true;
1345
+ } else {
1346
+ return false;
1347
+ }
1348
+ }
1349
+
1350
+ return true;
1351
+ }
1352
+
1353
+ function intergeo_is_developer() {
1354
+ if ( intergeo_is_personal() ) {
1355
+ $plan = get_option( 'intergeo_maps_license_plan', 0 );
1356
+ $plan = intval( $plan );
1357
+ if ( $plan > 0 ) {
1358
+ return true;
1359
+ }
1360
+ }
1361
+ if ( ! intergeo_is_new() ) { return true;
1362
+ }
1363
+ return false;
1364
+ }
1365
+
1366
+ function intergeo_is_agency() {
1367
+ if ( intergeo_is_developer() ) {
1368
+ $plan = get_option( 'intergeo_maps_license_plan', 0 );
1369
+ $plan = intval( $plan );
1370
+ if ( $plan > 2 ) {
1371
+ return true;
1372
+ }
1373
+ }
1374
+
1375
+ return false;
1376
+ }
1377
+ function intergeo_check_maps_number() {
1378
+ $maps = intergeo_get_maps();
1379
+ if ( $maps < 1 ) {
1380
+ return true;
1381
+ }
1382
+ if ( $maps > 0 && $maps < 11 ) {
1383
+ return intergeo_is_personal();
1384
+ }
1385
+ return intergeo_is_developer();
1386
+ }
1387
+ function intergeo_check_markers( $no ) {
1388
+ $no = intval( $no );
1389
+ if ( $no < 6 ) {
1390
+ return true;
1391
+ }
1392
+ if ( $no >= 6 ) {
1393
+ return intergeo_is_personal();
1394
+ }
1395
+ }
1396
+ //subscribe script
1397
+ add_filter( 'intergeo_themeisle_sdk_subscribe_list', 'intergeo_change_subscribe_list' );
1398
+ function intergeo_change_subscribe_list() {
1399
+ return 81;
1400
+ }
1401
+
1402
+ require dirname( __FILE__ ) . '/subscribe/subscribe.php';
1403
+ $intergeo_subscribe = new THEMEISLE_SUBSCRIBE( INTERGEO_PLUGIN_NAME );
js/editor.js CHANGED
@@ -1,34 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
1
  (function() {
2
  var a = window.dialogArguments || opener || parent || top;
3
  if (intergeo_options.send_to_editor && a.send_to_editor) {
4
- a.send_to_editor(intergeo_options.send_to_editor)
5
  }
6
  })();
7
  (function(a, b) {
8
- if (typeof define == "function") {
9
- define(b)
10
  } else {
11
- if (typeof module != "undefined") {
12
- module.exports = b()
13
  } else {
14
- this[a] = b()
15
  }
16
  }
17
- })("klass", function() {
18
  var c = this,
19
  d = c.klass,
20
- h = "function",
21
  k = /xyz/.test(function() {
22
- xyz
23
  }) ? /\bsupr\b/ : /.*/,
24
- e = "prototype";
25
 
26
  function i(f) {
27
- return j.call(g(f) ? f : function() {}, f, 1)
28
  }
29
 
30
  function g(f) {
31
- return typeof f === h
32
  }
33
 
34
  function b(l, m, f) {
@@ -38,18 +49,18 @@
38
  var p = {}.fabricatedUndefined;
39
  var n = p;
40
  try {
41
- n = m.apply(this, arguments)
42
  } finally {
43
- this.supr = o
44
  }
45
- return n
46
- }
47
  }
48
 
49
  function a(m, n, f) {
50
  for (var l in n) {
51
  if (n.hasOwnProperty(l)) {
52
- m[l] = g(n[l]) && g(f[e][l]) && k.test(n[l]) ? b(l, n[l], f) : n[l]
53
  }
54
  }
55
  }
@@ -65,44 +76,44 @@
65
 
66
  function r() {
67
  if (this.initialize) {
68
- this.initialize.apply(this, arguments)
69
  } else {
70
  p || n && q.apply(this, arguments);
71
- f.apply(this, arguments)
72
  }
73
  }
74
  r.methods = function(u) {
75
  a(s, u, q);
76
  r[e] = s;
77
- return this
78
  };
79
  r.methods.call(r, l).prototype.constructor = r;
80
- r.extend = arguments.callee;
81
  r[e].implement = r.statics = function(v, u) {
82
- v = typeof v == "string" ? (function() {
83
  var o = {};
84
  o[v] = u;
85
- return o
86
  }()) : v;
87
  a(this, v, q);
88
- return this
89
  };
90
- return r
91
  }
92
  i.noConflict = function() {
93
  c.klass = d;
94
- return this
95
  };
96
  c.klass = i;
97
- return i
98
  });
99
  if (!window.intergeo) {
100
  window.intergeo = {
101
  maps: {}
102
- }
103
  }
104
  if (!window.intergeo.maps) {
105
- window.intergeo.maps = {}
106
  }(function(c, b, a) {
107
  a.Overlay = klass({
108
  initialize: function(h, f, g, d, i) {
@@ -113,17 +124,18 @@ if (!window.intergeo.maps) {
113
  e.position = d;
114
  e.array = i;
115
  e.timeout = null;
116
- e.bindRemoveEvent(i)
117
  },
118
  bindRemoveEvent: function(e) {
119
  var d = this;
120
- d.html.find(".intergeo_tlbr_actn_delete").click(function() {
121
  if (showNotice.warn()) {
122
  d.overlay.setMap(null);
123
  d.map[e][d.position] = null;
124
- d.html.remove()
 
125
  }
126
- })
127
  }
128
  });
129
 
@@ -138,93 +150,93 @@ if (!window.intergeo.maps) {
138
  ig_mapInstance = i.map;
139
  var e = this,
140
  h = new b.InfoWindow();
141
- e.supr(i, f, g, d, "markers");
142
  g.hover(function() {
143
  if (i.markers[d]) {
144
- f.setAnimation(b.Animation.BOUNCE)
145
  }
146
  }, function() {
147
  if (i.markers[d]) {
148
- f.setAnimation(null)
149
  }
150
  });
151
- e.html.find(".intergeo_tlbr_actn_edit").click(function() {
152
  ig_editMarker = f;
153
  ig_latlng = null;
154
- var j = c("#intergeo_marker_ppp");
155
- j.find("input[name='intergeo_tlbr_marker_address_hidden']").val(g.find(".intergeo_tlbr_marker_location").val());
156
 
157
- var autocomplete = new b.places.Autocomplete(j.find(".intergeo_tlbr_marker_address").get(0));
158
  autocomplete.bindTo('bounds', i.map);
159
 
160
  autocomplete.addListener('place_changed', function() {
161
  var place = autocomplete.getPlace();
162
  if (place.geometry) {
163
  ig_latlng = place.geometry.location;
164
- j.find("input[name='intergeo_tlbr_marker_address_hidden']").val(place.geometry.location.toUrlValue());
165
  }
166
  });
167
 
168
- j.find(".intergeo_ppp_frm").attr("data-position", d);
169
- j.find(".intergeo_tlbr_marker_title").val(g.find(".intergeo_tlbr_marker_title").val());
170
 
171
  var igMarkerSet = false;
172
- var igMarker = g.find(".intergeo_tlbr_marker_icon").val();
173
  var indx = 0;
174
- j.find('.intergeo_tlbr_marker_icon').val("");
175
  j.find('ul.dd-options .dd-option-value').each(function(){
176
- if(j.find(this).val() == igMarker){
177
  j.find('#intergeo_tlbr_marker_icon_select').ddslick('select', { index: indx });
178
  igMarkerSet = true;
179
  return;
180
  }
181
  indx++;
182
  });
183
- if(!igMarkerSet && igMarker != ""){
184
  indx = 0;
185
- igMarker = "custom";
186
  j.find('ul.dd-options .dd-option-value').each(function(){
187
- if(j.find(this).val() == igMarker){
188
  j.find('#intergeo_tlbr_marker_icon_select').ddslick('select', { index: indx });
189
- j.find('.intergeo_tlbr_marker_icon').val(g.find(".intergeo_tlbr_marker_icon").val());
190
  return;
191
  }
192
  indx++;
193
  });
194
  }
195
 
196
- j.find(".intergeo_tlbr_marker_address").val(g.find(".intergeo_tlbr_marker_loc").val());
197
- j.find("iframe").contents().find(".intergeo-marker-editor").html(g.find(".intergeo_tlbr_marker_info").val());
198
  j.fadeIn(150);
199
  });
200
- b.event.addListener(f, "dragend", function(j) {
201
- g.find(".intergeo_tlbr_marker_location").val(j.latLng.toUrlValue())
202
  });
203
- b.event.addListener(f, "click", function() {
204
- var j = c.trim(g.find(".intergeo_tlbr_marker_info").val());
205
  if (j.length) {
206
  if (i.infowindow) {
207
- i.infowindow.close()
208
  }
209
  h.setContent(j);
210
  h.open(i.map, f);
211
- i.infowindow = h
212
  }
213
- })
214
  },
215
  update: function(g) {
216
  var d = this,
217
  e = {},
218
- i = c.trim(g.find(".intergeo_tlbr_marker_title").val()),
219
- f = c.trim(g.find(".intergeo_tlbr_marker_icon").val()),
220
- h = c.trim(g.find("iframe").contents().find(".intergeo-marker-editor").html()),
221
- j = d.html.find(".intergeo_tlbr_marker_title_td"),
222
- loc1 = c.trim(g.find(".intergeo_tlbr_marker_address").val()),
223
- loc = c.trim(g.find("input[name='intergeo_tlbr_marker_address_hidden']").val());
224
 
225
- var str = new RegExp("^[0-9\., \-]*$");
226
  if(loc1.length > 0 && str.test(loc1)){
227
- var pos = c.trim(g.find(".intergeo_tlbr_marker_address").val()).split(",");
228
  ig_latlng = new b.LatLng(c.trim(pos[0]), c.trim(pos[1]));
229
  loc = ig_latlng.toUrlValue();
230
  }
@@ -237,32 +249,32 @@ if (!window.intergeo.maps) {
237
  bounds.extend(ig_mapMarkers[x].getPosition());
238
  }
239
  ig_mapInstance.fitBounds(bounds);
240
- if(ig_mapMarkers.length == 1){
241
  ig_mapInstance.setZoom(ig_mapInstance.getZoom() - 8);
242
  }
243
- g.find("#intergeo_map_zoom").val(ig_mapInstance.getZoom())
244
  }
245
 
246
- if(f.length == 0){
247
- f = g.find('#intergeo_tlbr_marker_icon_select').data("ddslick").selectedData.value;
248
  }
249
 
250
  e.title = i;
251
  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)) {
252
- e.icon = f
253
  } else {
254
- e.icon = null
255
  }
256
- d.html.find(".intergeo_tlbr_marker_title").val(i);
257
- d.html.find(".intergeo_tlbr_marker_icon").val(f);
258
- d.html.find(".intergeo_tlbr_marker_info").val(h);
259
- d.html.find(".intergeo_tlbr_marker_location").val(loc);
260
- d.html.find(".intergeo_tlbr_marker_loc").val(c.trim(g.find(".intergeo_tlbr_marker_address").val()));
261
  d.overlay.setOptions(e);
262
- if (i != "") {
263
- j.text(i)
264
  } else {
265
- j.text("#" + (d.position + 1) + " " + intergeo_options.l10n.marker)
266
  }
267
  }
268
  });
@@ -270,221 +282,221 @@ if (!window.intergeo.maps) {
270
  initialize: function(h, f, g, d, i) {
271
  var e = this;
272
  e.supr(h, f, g, d, i);
273
- e.html.find(".intergeo_tlbr_actn_edit").click(function() {
274
  e.edit();
275
- return false
276
- })
277
  },
278
  pathToString: function() {
279
  var d = [];
280
  this.overlay.getPath().forEach(function(e) {
281
- d.push(e.toUrlValue())
282
  });
283
- return d.join(";")
284
  },
285
  bindChangeEvent: function(e) {
286
  var d = this;
287
  b.event.addListener(d.overlay, e, function() {
288
- d.html.find(".intergeo_tlbr_" + d.array + "_path").val(d.pathToString())
289
- })
290
  },
291
  edit: function() {
292
  var d = this,
293
- e = c("#intergeo_polyoverlay_ppp"),
294
- g = c.trim(d.html.find(".intergeo_tlbr_" + d.array + "_fill_color").val()),
295
- f = c.trim(d.html.find(".intergeo_tlbr_" + d.array + "_stroke_color").val());
296
- e.find(".intergeo_ppp_frm").attr("data-position", d.position).attr("data-target", d.array);
297
  if (!g) {
298
- g = "#000000"
299
  }
300
- e.find(".intergeo_tlbr_polyoverlay_fill_color").val(g).wpColorPicker("color", g);
301
- e.find(".intergeo_tlbr_polyoverlay_fill_opacity").val(d.html.find(".intergeo_tlbr_" + d.array + "_fill_opacity").val());
302
  if (!f) {
303
- f = "#000000"
304
  }
305
- e.find(".intergeo_tlbr_polyoverlay_stroke_color").val(f).wpColorPicker("color", f);
306
- e.find(".intergeo_tlbr_polyoverlay_weight").val(d.html.find(".intergeo_tlbr_" + d.array + "_weight").val());
307
- e.find(".intergeo_tlbr_polyoverlay_stroke_opacity").val(d.html.find(".intergeo_tlbr_" + d.array + "_stroke_opacity").val());
308
- e.find(".intergeo_tlbr_polyoverlay_position").val(d.html.find(".intergeo_tlbr_" + d.array + "_position").val());
309
- e.fadeIn(150)
310
  },
311
  update: function(e) {
312
  var n = this,
313
  o = {},
314
- k = e.find(".intergeo_tlbr_polyoverlay_position").val(),
315
- j = parseInt(e.find(".intergeo_tlbr_polyoverlay_weight").val()),
316
  i = !isNaN(j) && 0 <= j,
317
- f = parseFloat(e.find(".intergeo_tlbr_polyoverlay_stroke_opacity").val()),
318
  d = !isNaN(f) && 0 <= f && f <= 1,
319
- h = c.trim(e.find(".intergeo_tlbr_polyoverlay_stroke_color").val()),
320
- g = parseFloat(e.find(".intergeo_tlbr_polyoverlay_fill_opacity").val()),
321
  l = !isNaN(g) && 0 <= g && g <= 1,
322
- m = c.trim(e.find(".intergeo_tlbr_polyoverlay_fill_color").val());
323
  o.strokePosition = b.StrokePosition[k] || b.StrokePosition.CENTER;
324
  o.strokeWeight = i ? j : 3;
325
  o.strokeOpacity = d ? f : 1;
326
  o.strokeColor = h;
327
  o.fillOpacity = l ? g : 0.3;
328
  o.fillColor = m;
329
- n.html.find(".intergeo_tlbr_" + n.array + "_position").val(k);
330
- n.html.find(".intergeo_tlbr_" + n.array + "_weight").val(i ? j : "");
331
- n.html.find(".intergeo_tlbr_" + n.array + "_stroke_opacity").val(d ? f : "");
332
- n.html.find(".intergeo_tlbr_" + n.array + "_stroke_color").val(h);
333
- n.html.find(".intergeo_tlbr_" + n.array + "_fill_opacity").val(l ? g : "");
334
- n.html.find(".intergeo_tlbr_" + n.array + "_fill_color").val(m);
335
- n.html.find(".intergeo_tlbr_clr_prvw:last").css("background-color", h).fadeTo(0, d ? f : 1);
336
- n.html.find(".intergeo_tlbr_clr_prvw:first").css("background-color", m).fadeTo(0, l ? g : 0.3);
337
- n.overlay.setOptions(o)
338
  }
339
  });
340
  a.PolyOverlay.stringToPath = function(e, d) {
341
  var f = [];
342
- c.each(e.find(d).val().split(";"), function(h, i) {
343
- var g = i.split(",");
344
- if (g.length == 2) {
345
- f.push(new b.LatLng(g[0], g[1]))
346
  }
347
  });
348
- return f
349
  };
350
  a.PolyOverlay.stringToBounds = function(e, d) {
351
  var f = a.PolyOverlay.stringToPath(e, d);
352
- return new b.LatLngBounds(f[0], f[1])
353
  };
354
  a.Polyline = a.PolyOverlay.extend({
355
  initialize: function(g, e, f, d) {
356
- this.supr(g, e, f, d, "polyline");
357
- this.bindChangeEvent("mouseup")
358
  },
359
  edit: function() {
360
  var e = this,
361
- f = c("#intergeo_polyline_ppp"),
362
- d = c.trim(e.html.find(".intergeo_tlbr_polyline_color").val());
363
- f.find(".intergeo_ppp_frm").attr("data-position", e.position).attr("data-target", "polyline");
364
- f.find(".intergeo_tlbr_polyline_weight").val(e.html.find(".intergeo_tlbr_polyline_weight").val());
365
- f.find(".intergeo_tlbr_polyline_opacity").val(e.html.find(".intergeo_tlbr_polyline_opacity").val());
366
  if (!d) {
367
- d = "#000000"
368
  }
369
- f.find(".intergeo_tlbr_polyline_color").val(d).wpColorPicker("color", d);
370
- f.fadeIn(150)
371
  },
372
  update: function(i) {
373
  var e = this,
374
  g = {},
375
- j = parseInt(i.find(".intergeo_tlbr_polyline_weight").val()),
376
  k = !isNaN(j) && 0 <= j,
377
- f = parseFloat(i.find(".intergeo_tlbr_polyline_opacity").val()),
378
  h = !isNaN(f) && 0 <= f && f <= 1,
379
- d = c.trim(i.find(".intergeo_tlbr_polyline_color").val());
380
  g.strokeOpacity = h ? f : 1;
381
  g.strokeWeight = k ? j : 3;
382
  g.strokeColor = d;
383
- e.html.find(".intergeo_tlbr_polyline_weight").val(k ? j : "");
384
- e.html.find(".intergeo_tlbr_polyline_opacity").val(h ? f : "");
385
- e.html.find(".intergeo_tlbr_polyline_color").val(d);
386
- e.html.find(".intergeo_tlbr_clr_prvw").css("background-color", d).fadeTo(0, h ? f : 1);
387
- e.overlay.setOptions(g)
388
  }
389
  });
390
  a.Polygon = a.PolyOverlay.extend({
391
  initialize: function(g, e, f, d) {
392
- this.supr(g, e, f, d, "polygon");
393
- this.bindChangeEvent("mouseup")
394
  }
395
  });
396
  a.Rectangle = a.PolyOverlay.extend({
397
  initialize: function(g, e, f, d) {
398
- this.supr(g, e, f, d, "rectangle");
399
- this.bindChangeEvent("bounds_changed")
400
  },
401
  pathToString: function() {
402
  var d = this.overlay.getBounds();
403
- return [d.getSouthWest().toUrlValue(), d.getNorthEast().toUrlValue()].join(";")
404
  }
405
  });
406
  a.Circle = a.PolyOverlay.extend({
407
  initialize: function(g, e, f, d) {
408
- this.supr(g, e, f, d, "circle");
409
- this.bindChangeEvent("center_changed");
410
- this.bindChangeEvent("radius_changed")
411
  },
412
  pathToString: function() {
413
  var d = this.overlay;
414
- return d.getCenter().toUrlValue() + ";" + d.getRadius() + ",0"
415
  }
416
  });
417
  a.Direction = a.PolyOverlay.extend({
418
  initialize: function(g, e, f, d) {
419
- this.supr(g, e, f, d, "direction")
420
  },
421
  edit: function() {
422
  var d = this,
423
- e = c("#intergeo_drctn_ppp");
424
- e.find(".intergeo_ppp_frm").attr("data-position", d.position).attr("data-target", d.array);
425
- e.find("#intergeo_ppp_drctn_from").val(d.html.find(".intergeo_tlbr_drctn_from").val());
426
- e.find("#intergeo_ppp_drctn_to").val(d.html.find(".intergeo_tlbr_drctn_to").val());
427
- e.find("#intergeo_ppp_drctn_mode").val(d.html.find(".intergeo_tlbr_drctn_mode").val());
428
- e.fadeIn(150)
429
  },
430
  update: function(f) {
431
  var d = this,
432
- i = f.find("#intergeo_ppp_drctn_from").val(),
433
- h = f.find("#intergeo_ppp_drctn_to").val(),
434
- g = f.find("#intergeo_ppp_drctn_mode").val(),
435
  e = {
436
  origin: i,
437
  destination: h,
438
  travelMode: b.TravelMode[g] || b.TravelMode.DRIVING
439
  };
440
  d.map.directions.route(e, function(k, j) {
441
- if (j == b.DirectionsStatus.OK) {
442
  d.overlay.setDirections(k);
443
- d.html.find(".intergeo_tlbr_direction_title_td").text(c("#intergeo_tlbr_drctn_ttl_tmpl").text().replaceByHash({
444
- "%num%": d.position + 1,
445
- "%from%": i,
446
- "%to%": h,
447
- "%mode%": f.find("#intergeo_ppp_drctn_mode > :selected").text()
448
- }))
449
  } else {
450
- alert(intergeo_options.l10n.error.directions)
451
  }
452
  });
453
- d.html.find(".intergeo_tlbr_drctn_from").val(i);
454
- d.html.find(".intergeo_tlbr_drctn_to").val(h);
455
- d.html.find(".intergeo_tlbr_drctn_mode").val(g)
456
  }
457
- })
458
  })(jQuery, google.maps, intergeo.maps);
459
  (function(d, c, b) {
460
  var a;
461
  String.prototype.replaceByHash = function(e) {
462
  var f = this;
463
  d.each(e, function(g, h) {
464
- f = f.split(g).join(h)
465
  });
466
- return f
467
  };
468
  a = function(e, g) {
469
  var f = this;
470
  f.map = new c.Map(document.getElementById(e), g);
471
  f.drawing = new c.drawing.DrawingManager({
472
- drawingControl: true,
473
  map: f.map,
474
  circleOptions: {
475
- editable: true
476
  },
477
  markerOptions: {
478
- draggable: true
479
  },
480
  polygonOptions: {
481
- editable: true
482
  },
483
  polylineOptions: {
484
- editable: true
485
  },
486
  rectangleOptions: {
487
- editable: true
488
  }
489
  });
490
  f.directions = new c.DirectionsService();
@@ -502,61 +514,60 @@ if (!window.intergeo.maps) {
502
  f.circle = [];
503
  f.direction = [];
504
  f.infowindow = null;
505
- c.event.addListener(f.map, "center_changed", function() {
506
  var h = f.map.getCenter();
507
- d("#intergeo_map_lat").val(h.lat());
508
- d("#intergeo_map_lng").val(h.lng())
509
  });
510
- c.event.addListener(f.map, "zoom_changed", function() {
511
- d("#intergeo_map_zoom").val(f.map.getZoom())
512
  });
513
- c.event.addListener(f.drawing, "overlaycomplete", function(h) {
514
  switch (h.type) {
515
  case c.drawing.OverlayType.MARKER:
516
  f._markerComplete(h);
517
  break;
518
  case c.drawing.OverlayType.CIRCLE:
519
- f._polyComplete(h, "circle", b.Circle);
520
  break;
521
  case c.drawing.OverlayType.POLYGON:
522
- f._polyComplete(h, "polygon", b.Polygon);
523
  break;
524
  case c.drawing.OverlayType.POLYLINE:
525
- f._polyComplete(h, "polyline", b.Polyline);
526
  break;
527
  case c.drawing.OverlayType.RECTANGLE:
528
- f._polyComplete(h, "rectangle", b.Rectangle);
529
- break
530
  }
531
  });
532
- f._initOverlays()
533
  };
534
  a.Styles = {
535
  DEFAULT: [],
536
  RED: [{
537
- featureType: "all",
538
  stylers: [{
539
- hue: "#ff0000"
540
  }]
541
  }],
542
  NIGHT: [{
543
- featureType: "all",
544
  stylers: [{
545
- invert_lightness: "true"
546
  }]
547
  }],
548
  BLUE: [{
549
- featureType: "all",
550
  stylers: [{
551
- hue: "#0000b0"
552
  }, {
553
- invert_lightness: "true"
554
  }, {
555
  saturation: -30
556
  }]
557
  }],
558
  GREYSCALE: [{
559
- featureType: "all",
560
  stylers: [{
561
  saturation: -100
562
  }, {
@@ -564,50 +575,50 @@ if (!window.intergeo.maps) {
564
  }]
565
  }],
566
  NO_ROADS: [{
567
- featureType: "road",
568
  stylers: [{
569
- visibility: "off"
570
  }]
571
  }],
572
  MIXED: [{
573
- featureType: "landscape",
574
  stylers: [{
575
- hue: "#00dd00"
576
  }]
577
  }, {
578
- featureType: "road",
579
  stylers: [{
580
- hue: "#dd0000"
581
  }]
582
  }, {
583
- featureType: "water",
584
  stylers: [{
585
- hue: "#000040"
586
  }]
587
  }, {
588
- featureType: "poi.park",
589
  stylers: [{
590
- visibility: "off"
591
  }]
592
  }, {
593
- featureType: "road.arterial",
594
  stylers: [{
595
- hue: "#ffff00"
596
  }]
597
  }, {
598
- featureType: "road.local",
599
  stylers: [{
600
- visibility: "off"
601
  }]
602
  }],
603
  CHILLED: [{
604
- featureType: "road",
605
- elementType: "geometry",
606
  stylers: [{
607
- visibility: "simplified"
608
  }]
609
  }, {
610
- featureType: "road.arterial",
611
  stylers: [{
612
  hue: 149
613
  }, {
@@ -616,7 +627,7 @@ if (!window.intergeo.maps) {
616
  lightness: 0
617
  }]
618
  }, {
619
- featureType: "road.highway",
620
  stylers: [{
621
  hue: -31
622
  }, {
@@ -625,13 +636,13 @@ if (!window.intergeo.maps) {
625
  lightness: 2.8
626
  }]
627
  }, {
628
- featureType: "poi",
629
- elementType: "label",
630
  stylers: [{
631
- visibility: "off"
632
  }]
633
  }, {
634
- featureType: "landscape",
635
  stylers: [{
636
  hue: 163
637
  }, {
@@ -640,12 +651,12 @@ if (!window.intergeo.maps) {
640
  lightness: -1.1
641
  }]
642
  }, {
643
- featureType: "transit",
644
  stylers: [{
645
- visibility: "off"
646
  }]
647
  }, {
648
- featureType: "water",
649
  stylers: [{
650
  hue: 3
651
  }, {
@@ -658,153 +669,155 @@ if (!window.intergeo.maps) {
658
  a.prototype = {
659
  _initOverlays: function() {
660
  var e = this;
661
- d(".intergeo_tlbr_marker").each(function(f, i) {
662
  var h = d(i),
663
- g = h.find(".intergeo_tlbr_marker_location").val().split(",");
664
  e.markers.push(new b.Marker(e, new c.Marker({
665
  position: new c.LatLng(parseFloat(g[0]), parseFloat(g[1])),
666
  map: e.map,
667
- title: h.find(".intergeo_tlbr_marker_title").val(),
668
- icon: h.find(".intergeo_tlbr_marker_icon").val(),
669
  draggable: true
670
- }), h, f))
671
  });
672
- d(".intergeo_tlbr_polyline").each(function(f, j) {
673
  var i = d(j),
674
- g = d.trim(i.find(".intergeo_tlbr_polyline_color").val()),
675
- h = parseFloat(i.find(".intergeo_tlbr_polyline_opacity").val()),
676
- k = parseInt(i.find(".intergeo_tlbr_polyline_weight").val());
677
  e.polyline.push(new b.Polyline(e, new c.Polyline({
678
  map: e.map,
679
- path: b.PolyOverlay.stringToPath(i, ".intergeo_tlbr_polyline_path"),
680
  editable: true,
681
- strokeColor: g.length == 0 ? "#000000" : g,
682
  strokeOpacity: isNaN(h) ? 1 : h,
683
  strokeWeight: isNaN(k) ? 3 : k
684
- }), i, f))
685
  });
686
- d(".intergeo_tlbr_polygon").each(function(f, i) {
687
  var h = d(i),
688
- l = d.trim(h.find(".intergeo_tlbr_polygon_fill_color").val()),
689
- g = parseFloat(h.find(".intergeo_tlbr_polygon_fill_opacity").val()),
690
- k = d.trim(h.find(".intergeo_tlbr_polygon_stroke_color").val()),
691
- m = parseFloat(h.find(".intergeo_tlbr_polygon_stroke_opacity").val()),
692
- f = d.trim(h.find(".intergeo_tlbr_plygon_position").val()),
693
- j = parseInt(h.find(".intergeo_tlbr_polygon_weight").val());
 
694
  e.polygon.push(new b.Polygon(e, new c.Polygon({
695
  map: e.map,
696
- path: b.PolyOverlay.stringToPath(h, ".intergeo_tlbr_polygon_path"),
697
  editable: true,
698
- fillColor: l.length == 0 ? "#000000" : l,
699
  fillOpacity: isNaN(g) ? 0.3 : g,
700
- strokeColor: k.length == 0 ? "#000000" : k,
701
  strokeOpacity: isNaN(m) ? 1 : m,
702
  strokePosition: c.StrokePosition[f] || c.StrokePosition.CENTER,
703
  strokeWeight: isNaN(j) ? 3 : j
704
- }), h, f))
705
  });
706
- d(".intergeo_tlbr_rectangle").each(function(f, i) {
707
  var h = d(i),
708
- l = d.trim(h.find(".intergeo_tlbr_rectangle_fill_color").val()),
709
- g = parseFloat(h.find(".intergeo_tlbr_rectangle_fill_opacity").val()),
710
- k = d.trim(h.find(".intergeo_tlbr_rectangle_stroke_color").val()),
711
- m = parseFloat(h.find(".intergeo_tlbr_rectangle_stroke_opacity").val()),
712
- f = d.trim(h.find(".intergeo_tlbr_rectangle_position").val()),
713
- j = parseInt(h.find(".intergeo_tlbr_rectangle_weight").val());
 
714
  e.rectangle.push(new b.Rectangle(e, new c.Rectangle({
715
  map: e.map,
716
- bounds: b.PolyOverlay.stringToBounds(h, ".intergeo_tlbr_rectangle_path"),
717
  editable: true,
718
- fillColor: l.length == 0 ? "#000000" : l,
719
  fillOpacity: isNaN(g) ? 0.3 : g,
720
- strokeColor: k.length == 0 ? "#000000" : k,
721
  strokeOpacity: isNaN(m) ? 1 : m,
722
  strokePosition: c.StrokePosition[f] || c.StrokePosition.CENTER,
723
  strokeWeight: isNaN(j) ? 3 : j
724
- }), h, f))
725
  });
726
- d(".intergeo_tlbr_circle").each(function(m, j) {
727
  var l = d(j),
728
- p = d.trim(l.find(".intergeo_tlbr_circle_fill_color").val()),
729
- i = parseFloat(l.find(".intergeo_tlbr_circle_fill_opacity").val()),
730
- h = d.trim(l.find(".intergeo_tlbr_circle_stroke_color").val()),
731
- g = parseFloat(l.find(".intergeo_tlbr_circle_stroke_opacity").val()),
732
- o = d.trim(l.find(".intergeo_tlbr_circle_position").val()),
733
- k = parseInt(l.find(".intergeo_tlbr_circle_weight").val()),
734
- q = d.trim(l.find(".intergeo_tlbr_circle_path").val()).split(";"),
735
- f = q[0].split(","),
736
- n = q[1].split(",");
737
  e.circle.push(new b.Circle(e, new c.Circle({
738
  map: e.map,
739
  center: new c.LatLng(f[0], f[1]),
740
  radius: parseFloat(n[0]),
741
  editable: true,
742
- fillColor: p.length == 0 ? "#000000" : p,
743
  fillOpacity: isNaN(i) ? 0.3 : i,
744
- strokeColor: h.length == 0 ? "#000000" : h,
745
  strokeOpacity: isNaN(g) ? 1 : g,
746
  strokePosition: c.StrokePosition[o] || c.StrokePosition.CENTER,
747
  strokeWeight: isNaN(k) ? 3 : k
748
- }), l, m))
749
  });
750
- d(".intergeo_tlbr_drctn").each(function(f, h) {
751
  var g = d(h),
752
- l = d.trim(g.find(".intergeo_tlbr_drctn_from").val()),
753
- k = d.trim(g.find(".intergeo_tlbr_drctn_to").val()),
754
- j = d.trim(g.find(".intergeo_tlbr_drctn_mode").val()),
755
  i = {
756
  origin: l,
757
  destination: k,
758
  travelMode: c.TravelMode[j] || c.TravelMode.DRIVING
759
  };
760
  e.directions.route(i, function(n, m) {
761
- if (m == c.DirectionsStatus.OK) {
762
  var o = new b.Direction(e, new c.DirectionsRenderer({
763
  map: e.map,
764
  directions: n
765
  }), g, f);
766
- e.direction.push(o)
767
  } else {
768
  g.remove();
769
- e.direction.push(null)
770
  }
771
- })
772
- })
773
  },
774
  _markerComplete: function(i) {
775
  var g = this,
776
  e = g.markers.length,
777
- h = d(d("#intergeo_tlbr_marker_tmpl").html().replaceByHash({
778
- "%pos%": e,
779
- "%num%": e + 1
780
  })),
781
  f = new b.Marker(g, i.overlay, h, e);
782
- h.find(".intergeo_tlbr_marker_location").val(i.overlay.getPosition().toUrlValue());
783
- d("#intergeo_tlbr_markers").append(h);
784
  g.markers.push(f);
785
- i.overlay.setDraggable(true)
786
  },
787
  _polyComplete: function(j, i, h) {
788
  var f = this,
789
  e = f[i].length,
790
- g = d(d("#intergeo_tlbr_" + i + "_tmpl").html().replaceByHash({
791
- "%pos%": e,
792
- "%num%": e + 1
793
  })),
794
  k = new h(f, j.overlay, g, e);
795
  f[i].push(k);
796
- g.find(".intergeo_tlbr_" + i + "_path").val(k.pathToString());
797
- d("#intergeo_tlbr_" + i + "s").append(g)
798
  },
799
  _normalize: function(h) {
800
  var g = function(j) {
801
- return j === "1"
802
  },
803
  f = function(j, k, l) {
804
- return k[j] || l
805
  },
806
  e = function(j) {
807
- return f(j, c.ControlPosition, 0)
808
  },
809
  i = {
810
  minZoom: parseInt,
@@ -812,7 +825,7 @@ if (!window.intergeo.maps) {
812
  scrollwheel: g,
813
  draggable: g,
814
  mapTypeId: function(j) {
815
- return c.MapTypeId[j] || c.MapTypeId.ROADMAP
816
  },
817
  mapTypeControl: g,
818
  mapTypeControlOptions: {
@@ -821,13 +834,13 @@ if (!window.intergeo.maps) {
821
  var k = [];
822
  d.each(j, function(l, m) {
823
  if (c.MapTypeId[m] !== undefined) {
824
- k.push(c.MapTypeId[m])
825
  }
826
  });
827
- return k
828
  },
829
  style: function(j) {
830
- return f(j, c.MapTypeControlStyle, c.MapTypeControlStyle.DEFAULT)
831
  }
832
  },
833
  overviewMapControl: g,
@@ -854,107 +867,128 @@ if (!window.intergeo.maps) {
854
  zoomControlOptions: {
855
  position: e,
856
  style: function(j) {
857
- return f(j, c.ZoomControlStyle, c.ZoomControlStyle.DEFAULT)
858
  }
859
  }
860
  };
861
  return d.each(h, function(j, k) {
862
  if (i[j] === undefined) {
863
- delete h[j]
864
  } else {
865
- if (typeof k === "string") {
866
- h[j] = i[j](k)
867
  } else {
868
  d.each(k, function(m, l) {
869
  if (i[j][m] === undefined) {
870
- delete h[j][m]
871
  } else {
872
- h[j][m] = i[j][m](l)
873
  }
874
- })
875
  }
876
  }
877
- })
878
  },
879
  _traffic: function(f) {
880
  var e = this;
881
- if (f.layer.traffic == 1) {
882
- if (!e.traffic) {
883
- e.traffic = new c.TrafficLayer()
 
 
 
 
 
 
 
884
  }
885
- e.traffic.setMap(e.map)
886
- } else {
887
- if (e.traffic) {
888
- e.traffic.setMap(null)
889
  }
890
- }
891
  },
892
  _bicycling: function(f) {
893
  var e = this;
894
- if (f.layer.bicycling == 1) {
 
895
  if (!e.bicycling) {
896
- e.bicycling = new c.BicyclingLayer()
897
  }
898
- e.bicycling.setMap(e.map)
899
  } else {
900
  if (e.bicycling) {
901
- e.bicycling.setMap(null)
902
  }
903
  }
 
 
 
904
  },
905
  _weather: function(f) {
906
  var e = this;
907
- if (f.layer.weather == 1) {
 
908
  if (!e.weather) {
909
- e.weather = new c.weather.WeatherLayer({})
910
  }
911
  e.weather.setMap(e.map);
912
  e.weather.setOptions({
913
  temperatureUnits: c.weather.TemperatureUnit[f.weather.temperatureUnits] || c.weather.TemperatureUnit.CELSIUS,
914
  windSpeedUnits: c.weather.WindSpeedUnit[f.weather.windSpeedUnits] || c.weather.WindSpeedUnit.METERS_PER_SECOND
915
- })
916
  } else {
917
  if (e.weather) {
918
- e.weather.setMap(null)
919
  }
920
  }
 
 
 
921
  },
922
  _cloud: function(f) {
 
923
  var e = this;
924
- if (f.layer.cloud == 1) {
925
  if (!e.cloud) {
926
- e.cloud = new c.weather.CloudLayer()
927
  }
928
- e.cloud.setMap(e.map)
929
  } else {
930
  if (e.cloud) {
931
- e.cloud.setMap(null)
932
  }
933
  }
 
 
 
934
  },
935
  _panoramio: function(f) {
936
  var e = this;
937
- if (f.layer.panoramio == 1) {
 
938
  if (!e.panoramio) {
939
- e.panoramio = new c.panoramio.PanoramioLayer({})
940
  }
941
  e.panoramio.setMap(e.map);
942
  e.panoramio.setTag(f.panoramio.tag);
943
- e.panoramio.setUserId(f.panoramio.userId)
944
  } else {
945
  if (e.panoramio) {
946
- e.panoramio.setMap(null)
947
  }
948
  }
 
 
 
949
  },
950
  _adsense: function(f) {
 
951
  var e = this;
952
- if (f.layer.adsense == 1 && intergeo_options.adsense.publisher_id && d.trim(intergeo_options.adsense.publisher_id) != "") {
953
  if (!e.adunit) {
954
- e.adunit = new c.adsense.AdUnit(document.createElement("div"), {
955
  visible: true,
956
  publisherId: intergeo_options.adsense.publisher_id
957
- })
958
  }
959
  e.adunit.setMap(this.map);
960
  e.adunit.setBackgroundColor(f.adsense.backgroundColor);
@@ -963,16 +997,19 @@ if (!window.intergeo.maps) {
963
  e.adunit.setTitleColor(f.adsense.titleColor);
964
  e.adunit.setTextColor(f.adsense.textColor);
965
  if (c.ControlPosition[f.adsense.position] !== undefined) {
966
- e.adunit.setPosition(c.ControlPosition[f.adsense.position])
967
  }
968
  if (c.adsense.AdFormat[f.adsense.format]) {
969
- e.adunit.setFormat(c.adsense.AdFormat[f.adsense.format])
970
  }
971
  } else {
972
  if (e.adunit) {
973
- e.adunit.setMap(null)
974
  }
975
  }
 
 
 
976
  },
977
  _pro: function(f){
978
  var e = this;
@@ -982,98 +1019,98 @@ if (!window.intergeo.maps) {
982
  },
983
  createDirection: function() {
984
  var f = this,
985
- e = d("#intergeo_drctn_ppp"),
986
- g = e.find(".intergeo_ppp_frm");
987
- g.bind("submit.firsttime", function() {
988
  var h, i, j, l, k;
989
- if (g.attr("data-position") != "") {
990
- return false
991
  }
992
  h = f.direction.length;
993
- l = d.trim(g.find("#intergeo_ppp_drctn_from").val());
994
- k = d.trim(g.find("#intergeo_ppp_drctn_to").val());
995
- if (l == "" || k == "") {
996
- return false
997
  }
998
- j = d(d("#intergeo_tlbr_drctn_tmpl").html().replaceByHash({
999
- "%pos%": h,
1000
- "%num%": h + 1,
1001
- "%from%": l,
1002
- "%to%": k,
1003
- "%mode%": d.trim(g.find("#intergeo_ppp_drctn_mode option:selected").text())
1004
  }));
1005
  i = new b.Direction(f, new c.DirectionsRenderer({
1006
  map: f.map
1007
  }), j, h);
1008
- d("#intergeo_tlbr_drctns").append(j);
1009
  f.direction.push(i);
1010
  i.update(g);
1011
- g.unbind("submit.firsttime");
1012
- return false
1013
  });
1014
- g.find('select,input[type!="submit"]').val("");
1015
- g.attr("data-position", "");
1016
- e.fadeIn(150)
1017
  },
1018
  updateOverlays: function() {
1019
  var e = this;
1020
  d.each(e.polyline, function(g, f) {
1021
  if (f) {
1022
- d('.intergeo_tlbr_polyline_path[data-position="' + g + '"]').val(f.pathToString())
1023
  }
1024
  });
1025
  d.each(e.polygon, function(g, f) {
1026
  if (f) {
1027
- d('.intergeo_tlbr_polygon_path[data-position="' + g + '"]').val(f.pathToString())
1028
  }
1029
- })
1030
  },
1031
  preview: function() {
1032
  var f = this,
1033
  g = {};
1034
- d.each(d("#intergeo_frm").serializeArray(), function() {
1035
  var l = /\[\]$/,
1036
  m = g,
1037
- j = this.name.replace(l, "").split("_"),
1038
  e = j.pop(),
1039
- k = this.value || "",
1040
  i = l.test(this.name);
1041
  d.each(j, function(n, o) {
1042
  if (m[o] === undefined) {
1043
- m[o] = {}
1044
  }
1045
- m = m[o]
1046
  });
1047
  if (m[e] !== undefined) {
1048
  if (i) {
1049
- m[e].push(k)
1050
  } else {
1051
- m[e] = k
1052
  }
1053
  } else {
1054
- m[e] = i ? [k] : k
1055
  }
1056
  });
1057
  f._normalize(g.map);
1058
- if (d("#intergeo_map_lock_preview").is(":checked")) {
1059
  g.map.draggable = false;
1060
- g.map.scrollwheel = false
1061
  }
1062
  f.map.setOptions(g.map);
1063
  if (g.styles && g.styles.type) {
1064
- if (g.styles.type == -1) {
1065
  try {
1066
  f.map.setOptions({
1067
- styles: d.parseJSON(g.styles.custom || "[]")
1068
- })
1069
  } catch (h) {
1070
- alert(intergeo_options.l10n.error.style)
1071
  }
1072
  } else {
1073
  if (a.Styles[g.styles.type] !== undefined) {
1074
  f.map.setOptions({
1075
  styles: a.Styles[g.styles.type]
1076
- })
1077
  }
1078
  }
1079
  }
@@ -1086,114 +1123,115 @@ if (!window.intergeo.maps) {
1086
  f._pro(g);
1087
  }
1088
  };
 
1089
  d(document).ready(function() {
1090
  var g, f, e;
1091
- f = new a("intergeo_canvas", {
1092
- center: new c.LatLng(parseFloat(d("#intergeo_map_lat").val()), parseFloat(d("#intergeo_map_lng").val())),
1093
- zoom: parseInt(d("#intergeo_map_zoom").val()),
1094
  minZoom: 0,
1095
  maxZoom: 19,
1096
  mapTypeId: c.MapTypeId.ROADMAP
1097
  });
1098
  var xxxx = window.dialogArguments || opener || parent || top;
1099
  xxxx.intergeo_maps_current = f;
1100
- e = d("#intergeo_frm");
1101
- e.find("input[name], select[name], textarea[name]").not("input[type='file']").change(function() {
1102
- f.preview()
1103
  });
1104
- e.find(".intergeo_tlbr_cntrl_onkeyup").keyup(function() {
1105
- f.preview()
1106
  });
1107
  e.submit(function() {
1108
  f.updateOverlays();
1109
- return true
1110
  });
1111
  f.preview();
1112
- d("#intergeo_map_lock_preview").change(function() {
1113
- var h = d(this).is(":checked");
1114
  f.map.setOptions({
1115
  draggable: !h,
1116
  scrollwheel: !h
1117
- })
1118
  });
1119
- d(".intergeo_tlbr_ul_li_h3").click(function() {
1120
  var h = d(this).parent();
1121
- if (h.hasClass("open")) {
1122
- h.removeClass("open")
1123
  } else {
1124
- d(".intergeo_tlbr_ul_li.open").removeClass("open");
1125
- h.addClass("open")
1126
  }
1127
  });
1128
- d(".intergeo_tlbr_cntrl_more_info").click(function() {
1129
- d(this).parent().nextAll(".intergeo_tlbr_cntrl_dsc:first").toggle();
1130
- return false
1131
  });
1132
- d(".intergeo_tlbr_cntrl_ttl").click(function() {
1133
- d(this).toggleClass("open").parent().find(".intergeo_tlbr_cntrl_items").toggle();
1134
- return false
1135
  });
1136
- d(".color-picker-hex").wpColorPicker({
1137
  change: function() {
1138
  clearTimeout(g);
1139
  g = setTimeout(function() {
1140
- f.preview()
1141
- }, 500)
1142
  }
1143
  });
1144
- d(".intergeo_tlbr_clr").wpColorPicker();
1145
- d("#intergeo_show_map_center").change(function() {
1146
- d("#intergeo_canvas_center").toggle();
1147
  d.post(intergeo_options.ajaxurl, {
1148
- action: "intergeo_show_map_center",
1149
- nonce: intergeo_options.nonce || "",
1150
- status: d(this).is(":checked") ? 1 : 0
1151
- })
1152
  });
1153
- d(".intergeo_ppp_cls").click(function() {
1154
- d(this).parents(".intergeo_ppp").fadeOut(150);
1155
- return false
1156
  });
1157
- d("#intergeo_go_to_address").click(function() {
1158
- d("#intergeo_address_ppp").fadeIn(150);
1159
- return false
1160
  });
1161
- d("#intergeo_address_ppp .intergeo_ppp_frm").submit(function() {
1162
  var h = d(this),
1163
- j = h.find(".intergeo_ppp_txt"),
1164
  i = d.trim(j.val());
1165
- if (i != "") {
1166
  if (!f.geocoder) {
1167
- f.geocoder = new c.Geocoder()
1168
  }
1169
  f.geocoder.geocode({
1170
  address: i
1171
  }, function(l, k) {
1172
- if (k == c.GeocoderStatus.OK) {
1173
- f.map.setCenter(l[0].geometry.location)
1174
  }
1175
- })
1176
  }
1177
- j.val("");
1178
- h.parents(".intergeo_ppp").fadeOut(150);
1179
- return false
1180
  });
1181
- d(".intregeo_ppp_frm_overlay").submit(function() {
1182
  var j = d(this),
1183
- h = parseInt(j.attr("data-position")),
1184
- i = j.attr("data-target");
1185
- j.parents(".intergeo_ppp").fadeOut(150);
1186
  if (f[i] && f[i][h]) {
1187
- f[i][h].update(j)
1188
  }
1189
- return false
1190
  });
1191
- d("#intergeo_tlbr_new_drctn").click(function() {
1192
  f.createDirection();
1193
- return false
1194
  });
1195
 
1196
- d("#intergeo_add_marker_bttn").on("click", function(ee){
1197
  var marker = new c.Marker({
1198
  position: f.map.getCenter(),
1199
  map: f.map,
@@ -1201,23 +1239,25 @@ if (!window.intergeo.maps) {
1201
  });
1202
  marker.setAnimation(c.Animation.BOUNCE);
1203
  var e = f.markers.length;
1204
- var h = d(d("#intergeo_tlbr_marker_tmpl").html().replaceByHash({
1205
- "%pos%": e,
1206
- "%num%": e + 1
1207
  }));
1208
  var m = new intergeo.maps.Marker(f, marker, h, e);
1209
- h.find(".intergeo_tlbr_marker_location").val(marker.getPosition().toUrlValue());
1210
- d("#intergeo_tlbr_markers").append(h);
1211
  f.markers.push(m);
1212
- d("table.intergeo_tlbr_cntrl_tbl.intergeo_tlbr_overlay.intergeo_tlbr_marker[data-table-num=" + (e + 1) + "]").find(".intergeo_tlbr_actn_edit").trigger("click");
 
 
1213
  });
1214
 
1215
- d("#intergeo_tlbr_marker_icon_select").ddslick({
1216
- width: "100%",
1217
- background: "#ffffff",
1218
  onSelected: function(data){
1219
- if(data.selectedData.value == 'custom'){
1220
- d('#intergeo_marker_ppp .intergeo_tlbr_marker_icon').val("").show();
1221
  }else{
1222
  d('#intergeo_marker_ppp .intergeo_tlbr_marker_icon').val(data.selectedData.value).hide();
1223
  }
@@ -1225,4 +1265,17 @@ if (!window.intergeo.maps) {
1225
  });
1226
  });
1227
 
1228
- })(jQuery, google.maps, intergeo.maps);
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* global intergeo_options */
2
+ /* global define */
3
+ /* global alert */
4
+ /* global module */
5
+ /* global xyz */
6
+ /* global klass */
7
+ /* global showNotice */
8
+ /* global google */
9
+ /* global intergeo */
10
+ /* global _proFeatures */
11
+
12
  (function() {
13
  var a = window.dialogArguments || opener || parent || top;
14
  if (intergeo_options.send_to_editor && a.send_to_editor) {
15
+ a.send_to_editor(intergeo_options.send_to_editor);
16
  }
17
  })();
18
  (function(a, b) {
19
+ if (typeof define === 'function') {
20
+ define(b);
21
  } else {
22
+ if (typeof module !== 'undefined') {
23
+ module.exports = b();
24
  } else {
25
+ this[a] = b();
26
  }
27
  }
28
+ })('klass', function() {
29
  var c = this,
30
  d = c.klass,
31
+ h = 'function',
32
  k = /xyz/.test(function() {
33
+ xyz;
34
  }) ? /\bsupr\b/ : /.*/,
35
+ e = 'prototype';
36
 
37
  function i(f) {
38
+ return j.call(g(f) ? f : function() {}, f, 1);
39
  }
40
 
41
  function g(f) {
42
+ return typeof f === h;
43
  }
44
 
45
  function b(l, m, f) {
49
  var p = {}.fabricatedUndefined;
50
  var n = p;
51
  try {
52
+ n = m.apply(this, arguments);
53
  } finally {
54
+ this.supr = o;
55
  }
56
+ return n;
57
+ };
58
  }
59
 
60
  function a(m, n, f) {
61
  for (var l in n) {
62
  if (n.hasOwnProperty(l)) {
63
+ m[l] = g(n[l]) && g(f[e][l]) && k.test(n[l]) ? b(l, n[l], f) : n[l];
64
  }
65
  }
66
  }
76
 
77
  function r() {
78
  if (this.initialize) {
79
+ this.initialize.apply(this, arguments);
80
  } else {
81
  p || n && q.apply(this, arguments);
82
+ f.apply(this, arguments);
83
  }
84
  }
85
  r.methods = function(u) {
86
  a(s, u, q);
87
  r[e] = s;
88
+ return this;
89
  };
90
  r.methods.call(r, l).prototype.constructor = r;
91
+ r.extend = arguments.callee; // jshint ignore:line
92
  r[e].implement = r.statics = function(v, u) {
93
+ v = typeof v === 'string' ? (function() {
94
  var o = {};
95
  o[v] = u;
96
+ return o;
97
  }()) : v;
98
  a(this, v, q);
99
+ return this;
100
  };
101
+ return r;
102
  }
103
  i.noConflict = function() {
104
  c.klass = d;
105
+ return this;
106
  };
107
  c.klass = i;
108
+ return i;
109
  });
110
  if (!window.intergeo) {
111
  window.intergeo = {
112
  maps: {}
113
+ };
114
  }
115
  if (!window.intergeo.maps) {
116
+ window.intergeo.maps = {};
117
  }(function(c, b, a) {
118
  a.Overlay = klass({
119
  initialize: function(h, f, g, d, i) {
124
  e.position = d;
125
  e.array = i;
126
  e.timeout = null;
127
+ e.bindRemoveEvent(i);
128
  },
129
  bindRemoveEvent: function(e) {
130
  var d = this;
131
+ d.html.find('.intergeo_tlbr_actn_delete').click(function() {
132
  if (showNotice.warn()) {
133
  d.overlay.setMap(null);
134
  d.map[e][d.position] = null;
135
+ d.html.remove();
136
+ im_check_markers();
137
  }
138
+ });
139
  }
140
  });
141
 
150
  ig_mapInstance = i.map;
151
  var e = this,
152
  h = new b.InfoWindow();
153
+ e.supr(i, f, g, d, 'markers');
154
  g.hover(function() {
155
  if (i.markers[d]) {
156
+ f.setAnimation(b.Animation.BOUNCE);
157
  }
158
  }, function() {
159
  if (i.markers[d]) {
160
+ f.setAnimation(null);
161
  }
162
  });
163
+ e.html.find('.intergeo_tlbr_actn_edit').click(function() {
164
  ig_editMarker = f;
165
  ig_latlng = null;
166
+ var j = c('#intergeo_marker_ppp');
167
+ j.find('input[name="intergeo_tlbr_marker_address_hidden"]').val(g.find('.intergeo_tlbr_marker_location').val());
168
 
169
+ var autocomplete = new b.places.Autocomplete(j.find('.intergeo_tlbr_marker_address').get(0));
170
  autocomplete.bindTo('bounds', i.map);
171
 
172
  autocomplete.addListener('place_changed', function() {
173
  var place = autocomplete.getPlace();
174
  if (place.geometry) {
175
  ig_latlng = place.geometry.location;
176
+ j.find('input[name="intergeo_tlbr_marker_address_hidden"]').val(place.geometry.location.toUrlValue());
177
  }
178
  });
179
 
180
+ j.find('.intergeo_ppp_frm').attr('data-position', d);
181
+ j.find('.intergeo_tlbr_marker_title').val(g.find('.intergeo_tlbr_marker_title').val());
182
 
183
  var igMarkerSet = false;
184
+ var igMarker = g.find('.intergeo_tlbr_marker_icon').val();
185
  var indx = 0;
186
+ j.find('.intergeo_tlbr_marker_icon').val('');
187
  j.find('ul.dd-options .dd-option-value').each(function(){
188
+ if(j.find(this).val() === igMarker){
189
  j.find('#intergeo_tlbr_marker_icon_select').ddslick('select', { index: indx });
190
  igMarkerSet = true;
191
  return;
192
  }
193
  indx++;
194
  });
195
+ if(!igMarkerSet && igMarker !== ''){
196
  indx = 0;
197
+ igMarker = 'custom';
198
  j.find('ul.dd-options .dd-option-value').each(function(){
199
+ if(j.find(this).val() === igMarker){
200
  j.find('#intergeo_tlbr_marker_icon_select').ddslick('select', { index: indx });
201
+ j.find('.intergeo_tlbr_marker_icon').val(g.find('.intergeo_tlbr_marker_icon').val());
202
  return;
203
  }
204
  indx++;
205
  });
206
  }
207
 
208
+ j.find('.intergeo_tlbr_marker_address').val(g.find('.intergeo_tlbr_marker_loc').val());
209
+ j.find('iframe').contents().find('.intergeo-marker-editor').html(g.find('.intergeo_tlbr_marker_info').val());
210
  j.fadeIn(150);
211
  });
212
+ b.event.addListener(f, 'dragend', function(j) {
213
+ g.find('.intergeo_tlbr_marker_location').val(j.latLng.toUrlValue());
214
  });
215
+ b.event.addListener(f, 'click', function() {
216
+ var j = c.trim(g.find('.intergeo_tlbr_marker_info').val());
217
  if (j.length) {
218
  if (i.infowindow) {
219
+ i.infowindow.close();
220
  }
221
  h.setContent(j);
222
  h.open(i.map, f);
223
+ i.infowindow = h;
224
  }
225
+ });
226
  },
227
  update: function(g) {
228
  var d = this,
229
  e = {},
230
+ i = c.trim(g.find('.intergeo_tlbr_marker_title').val()),
231
+ f = c.trim(g.find('.intergeo_tlbr_marker_icon').val()),
232
+ h = c.trim(g.find('iframe').contents().find('.intergeo-marker-editor').html()),
233
+ j = d.html.find('.intergeo_tlbr_marker_title_td'),
234
+ loc1 = c.trim(g.find('.intergeo_tlbr_marker_address').val()),
235
+ loc = c.trim(g.find('input[name="intergeo_tlbr_marker_address_hidden"]').val());
236
 
237
+ var str = new RegExp('^[0-9\., \-]*$');
238
  if(loc1.length > 0 && str.test(loc1)){
239
+ var pos = c.trim(g.find('.intergeo_tlbr_marker_address').val()).split(',');
240
  ig_latlng = new b.LatLng(c.trim(pos[0]), c.trim(pos[1]));
241
  loc = ig_latlng.toUrlValue();
242
  }
249
  bounds.extend(ig_mapMarkers[x].getPosition());
250
  }
251
  ig_mapInstance.fitBounds(bounds);
252
+ if(ig_mapMarkers.length === 1){
253
  ig_mapInstance.setZoom(ig_mapInstance.getZoom() - 8);
254
  }
255
+ g.find('#intergeo_map_zoom').val(ig_mapInstance.getZoom());
256
  }
257
 
258
+ if(f.length === 0){
259
+ f = g.find('#intergeo_tlbr_marker_icon_select').data('ddslick').selectedData.value;
260
  }
261
 
262
  e.title = i;
263
  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)) {
264
+ e.icon = f;
265
  } else {
266
+ e.icon = null;
267
  }
268
+ d.html.find('.intergeo_tlbr_marker_title').val(i);
269
+ d.html.find('.intergeo_tlbr_marker_icon').val(f);
270
+ d.html.find('.intergeo_tlbr_marker_info').val(h);
271
+ d.html.find('.intergeo_tlbr_marker_location').val(loc);
272
+ d.html.find('.intergeo_tlbr_marker_loc').val(c.trim(g.find('.intergeo_tlbr_marker_address').val()));
273
  d.overlay.setOptions(e);
274
+ if (i !== '') {
275
+ j.text(i);
276
  } else {
277
+ j.text('#' + (d.position + 1) + ' ' + intergeo_options.l10n.marker);
278
  }
279
  }
280
  });
282
  initialize: function(h, f, g, d, i) {
283
  var e = this;
284
  e.supr(h, f, g, d, i);
285
+ e.html.find('.intergeo_tlbr_actn_edit').click(function() {
286
  e.edit();
287
+ return false;
288
+ });
289
  },
290
  pathToString: function() {
291
  var d = [];
292
  this.overlay.getPath().forEach(function(e) {
293
+ d.push(e.toUrlValue());
294
  });
295
+ return d.join(';');
296
  },
297
  bindChangeEvent: function(e) {
298
  var d = this;
299
  b.event.addListener(d.overlay, e, function() {
300
+ d.html.find('.intergeo_tlbr_' + d.array + '_path').val(d.pathToString());
301
+ });
302
  },
303
  edit: function() {
304
  var d = this,
305
+ e = c('#intergeo_polyoverlay_ppp'),
306
+ g = c.trim(d.html.find('.intergeo_tlbr_' + d.array + '_fill_color').val()),
307
+ f = c.trim(d.html.find('.intergeo_tlbr_' + d.array + '_stroke_color').val());
308
+ e.find('.intergeo_ppp_frm').attr('data-position', d.position).attr('data-target', d.array);
309
  if (!g) {
310
+ g = '#000000';
311
  }
312
+ e.find('.intergeo_tlbr_polyoverlay_fill_color').val(g).wpColorPicker('color', g);
313
+ e.find('.intergeo_tlbr_polyoverlay_fill_opacity').val(d.html.find('.intergeo_tlbr_' + d.array + '_fill_opacity').val());
314
  if (!f) {
315
+ f = '#000000';
316
  }
317
+ e.find('.intergeo_tlbr_polyoverlay_stroke_color').val(f).wpColorPicker('color', f);
318
+ e.find('.intergeo_tlbr_polyoverlay_weight').val(d.html.find('.intergeo_tlbr_' + d.array + '_weight').val());
319
+ e.find('.intergeo_tlbr_polyoverlay_stroke_opacity').val(d.html.find('.intergeo_tlbr_' + d.array + '_stroke_opacity').val());
320
+ e.find('.intergeo_tlbr_polyoverlay_position').val(d.html.find('.intergeo_tlbr_' + d.array + '_position').val());
321
+ e.fadeIn(150);
322
  },
323
  update: function(e) {
324
  var n = this,
325
  o = {},
326
+ k = e.find('.intergeo_tlbr_polyoverlay_position').val(),
327
+ j = parseInt(e.find('.intergeo_tlbr_polyoverlay_weight').val()),
328
  i = !isNaN(j) && 0 <= j,
329
+ f = parseFloat(e.find('.intergeo_tlbr_polyoverlay_stroke_opacity').val()),
330
  d = !isNaN(f) && 0 <= f && f <= 1,
331
+ h = c.trim(e.find('.intergeo_tlbr_polyoverlay_stroke_color').val()),
332
+ g = parseFloat(e.find('.intergeo_tlbr_polyoverlay_fill_opacity').val()),
333
  l = !isNaN(g) && 0 <= g && g <= 1,
334
+ m = c.trim(e.find('.intergeo_tlbr_polyoverlay_fill_color').val());
335
  o.strokePosition = b.StrokePosition[k] || b.StrokePosition.CENTER;
336
  o.strokeWeight = i ? j : 3;
337
  o.strokeOpacity = d ? f : 1;
338
  o.strokeColor = h;
339
  o.fillOpacity = l ? g : 0.3;
340
  o.fillColor = m;
341
+ n.html.find('.intergeo_tlbr_' + n.array + '_position').val(k);
342
+ n.html.find('.intergeo_tlbr_' + n.array + '_weight').val(i ? j : '');
343
+ n.html.find('.intergeo_tlbr_' + n.array + '_stroke_opacity').val(d ? f : '');
344
+ n.html.find('.intergeo_tlbr_' + n.array + '_stroke_color').val(h);
345
+ n.html.find('.intergeo_tlbr_' + n.array + '_fill_opacity').val(l ? g : '');
346
+ n.html.find('.intergeo_tlbr_' + n.array + '_fill_color').val(m);
347
+ n.html.find('.intergeo_tlbr_clr_prvw:last').css('background-color', h).fadeTo(0, d ? f : 1);
348
+ n.html.find('.intergeo_tlbr_clr_prvw:first').css('background-color', m).fadeTo(0, l ? g : 0.3);
349
+ n.overlay.setOptions(o);
350
  }
351
  });
352
  a.PolyOverlay.stringToPath = function(e, d) {
353
  var f = [];
354
+ c.each(e.find(d).val().split(';'), function(h, i) {
355
+ var g = i.split(',');
356
+ if (g.length === 2) {
357
+ f.push(new b.LatLng(g[0], g[1]));
358
  }
359
  });
360
+ return f;
361
  };
362
  a.PolyOverlay.stringToBounds = function(e, d) {
363
  var f = a.PolyOverlay.stringToPath(e, d);
364
+ return new b.LatLngBounds(f[0], f[1]);
365
  };
366
  a.Polyline = a.PolyOverlay.extend({
367
  initialize: function(g, e, f, d) {
368
+ this.supr(g, e, f, d, 'polyline');
369
+ this.bindChangeEvent('mouseup');
370
  },
371
  edit: function() {
372
  var e = this,
373
+ f = c('#intergeo_polyline_ppp'),
374
+ d = c.trim(e.html.find('.intergeo_tlbr_polyline_color').val());
375
+ f.find('.intergeo_ppp_frm').attr('data-position', e.position).attr('data-target', 'polyline');
376
+ f.find('.intergeo_tlbr_polyline_weight').val(e.html.find('.intergeo_tlbr_polyline_weight').val());
377
+ f.find('.intergeo_tlbr_polyline_opacity').val(e.html.find('.intergeo_tlbr_polyline_opacity').val());
378
  if (!d) {
379
+ d = '#000000';
380
  }
381
+ f.find('.intergeo_tlbr_polyline_color').val(d).wpColorPicker('color', d);
382
+ f.fadeIn(150);
383
  },
384
  update: function(i) {
385
  var e = this,
386
  g = {},
387
+ j = parseInt(i.find('.intergeo_tlbr_polyline_weight').val()),
388
  k = !isNaN(j) && 0 <= j,
389
+ f = parseFloat(i.find('.intergeo_tlbr_polyline_opacity').val()),
390
  h = !isNaN(f) && 0 <= f && f <= 1,
391
+ d = c.trim(i.find('.intergeo_tlbr_polyline_color').val());
392
  g.strokeOpacity = h ? f : 1;
393
  g.strokeWeight = k ? j : 3;
394
  g.strokeColor = d;
395
+ e.html.find('.intergeo_tlbr_polyline_weight').val(k ? j : '');
396
+ e.html.find('.intergeo_tlbr_polyline_opacity').val(h ? f : '');
397
+ e.html.find('.intergeo_tlbr_polyline_color').val(d);
398
+ e.html.find('.intergeo_tlbr_clr_prvw').css('background-color', d).fadeTo(0, h ? f : 1);
399
+ e.overlay.setOptions(g);
400
  }
401
  });
402
  a.Polygon = a.PolyOverlay.extend({
403
  initialize: function(g, e, f, d) {
404
+ this.supr(g, e, f, d, 'polygon');
405
+ this.bindChangeEvent('mouseup');
406
  }
407
  });
408
  a.Rectangle = a.PolyOverlay.extend({
409
  initialize: function(g, e, f, d) {
410
+ this.supr(g, e, f, d, 'rectangle');
411
+ this.bindChangeEvent('bounds_changed');
412
  },
413
  pathToString: function() {
414
  var d = this.overlay.getBounds();
415
+ return [d.getSouthWest().toUrlValue(), d.getNorthEast().toUrlValue()].join(';');
416
  }
417
  });
418
  a.Circle = a.PolyOverlay.extend({
419
  initialize: function(g, e, f, d) {
420
+ this.supr(g, e, f, d, 'circle');
421
+ this.bindChangeEvent('center_changed');
422
+ this.bindChangeEvent('radius_changed');
423
  },
424
  pathToString: function() {
425
  var d = this.overlay;
426
+ return d.getCenter().toUrlValue() + ';' + d.getRadius() + ',0';
427
  }
428
  });
429
  a.Direction = a.PolyOverlay.extend({
430
  initialize: function(g, e, f, d) {
431
+ this.supr(g, e, f, d, 'direction');
432
  },
433
  edit: function() {
434
  var d = this,
435
+ e = c('#intergeo_drctn_ppp');
436
+ e.find('.intergeo_ppp_frm').attr('data-position', d.position).attr('data-target', d.array);
437
+ e.find('#intergeo_ppp_drctn_from').val(d.html.find('.intergeo_tlbr_drctn_from').val());
438
+ e.find('#intergeo_ppp_drctn_to').val(d.html.find('.intergeo_tlbr_drctn_to').val());
439
+ e.find('#intergeo_ppp_drctn_mode').val(d.html.find('.intergeo_tlbr_drctn_mode').val());
440
+ e.fadeIn(150);
441
  },
442
  update: function(f) {
443
  var d = this,
444
+ i = f.find('#intergeo_ppp_drctn_from').val(),
445
+ h = f.find('#intergeo_ppp_drctn_to').val(),
446
+ g = f.find('#intergeo_ppp_drctn_mode').val(),
447
  e = {
448
  origin: i,
449
  destination: h,
450
  travelMode: b.TravelMode[g] || b.TravelMode.DRIVING
451
  };
452
  d.map.directions.route(e, function(k, j) {
453
+ if (j === b.DirectionsStatus.OK) {
454
  d.overlay.setDirections(k);
455
+ d.html.find('.intergeo_tlbr_direction_title_td').text(c('#intergeo_tlbr_drctn_ttl_tmpl').text().replaceByHash({
456
+ '%num%': d.position + 1,
457
+ '%from%': i,
458
+ '%to%': h,
459
+ '%mode%': f.find('#intergeo_ppp_drctn_mode > :selected').text()
460
+ }));
461
  } else {
462
+ alert(intergeo_options.l10n.error.directions);
463
  }
464
  });
465
+ d.html.find('.intergeo_tlbr_drctn_from').val(i);
466
+ d.html.find('.intergeo_tlbr_drctn_to').val(h);
467
+ d.html.find('.intergeo_tlbr_drctn_mode').val(g);
468
  }
469
+ });
470
  })(jQuery, google.maps, intergeo.maps);
471
  (function(d, c, b) {
472
  var a;
473
  String.prototype.replaceByHash = function(e) {
474
  var f = this;
475
  d.each(e, function(g, h) {
476
+ f = f.split(g).join(h);
477
  });
478
+ return f;
479
  };
480
  a = function(e, g) {
481
  var f = this;
482
  f.map = new c.Map(document.getElementById(e), g);
483
  f.drawing = new c.drawing.DrawingManager({
484
+ drawingControl: intergeo_options.is_pro === 'yes',
485
  map: f.map,
486
  circleOptions: {
487
+ editable: intergeo_options.is_pro === 'yes'
488
  },
489
  markerOptions: {
490
+ draggable: intergeo_options.is_pro === 'yes'
491
  },
492
  polygonOptions: {
493
+ editable: intergeo_options.is_pro === 'yes'
494
  },
495
  polylineOptions: {
496
+ editable: intergeo_options.is_pro === 'yes'
497
  },
498
  rectangleOptions: {
499
+ editable: intergeo_options.is_pro === 'yes'
500
  }
501
  });
502
  f.directions = new c.DirectionsService();
514
  f.circle = [];
515
  f.direction = [];
516
  f.infowindow = null;
517
+ c.event.addListener(f.map, 'center_changed', function() {
518
  var h = f.map.getCenter();
519
+ d('#intergeo_map_lat').val(h.lat());
520
+ d('#intergeo_map_lng').val(h.lng());
521
  });
522
+ c.event.addListener(f.map, 'zoom_changed', function() {
523
+ d('#intergeo_map_zoom').val(f.map.getZoom());
524
  });
525
+ c.event.addListener(f.drawing, 'overlaycomplete', function(h) {
526
  switch (h.type) {
527
  case c.drawing.OverlayType.MARKER:
528
  f._markerComplete(h);
529
  break;
530
  case c.drawing.OverlayType.CIRCLE:
531
+ f._polyComplete(h, 'circle', b.Circle);
532
  break;
533
  case c.drawing.OverlayType.POLYGON:
534
+ f._polyComplete(h, 'polygon', b.Polygon);
535
  break;
536
  case c.drawing.OverlayType.POLYLINE:
537
+ f._polyComplete(h, 'polyline', b.Polyline);
538
  break;
539
  case c.drawing.OverlayType.RECTANGLE:
540
+ f._polyComplete(h, 'rectangle', b.Rectangle);
 
541
  }
542
  });
543
+ f._initOverlays();
544
  };
545
  a.Styles = {
546
  DEFAULT: [],
547
  RED: [{
548
+ featureType: 'all',
549
  stylers: [{
550
+ hue: '#ff0000'
551
  }]
552
  }],
553
  NIGHT: [{
554
+ featureType: 'all',
555
  stylers: [{
556
+ invert_lightness: 'true'
557
  }]
558
  }],
559
  BLUE: [{
560
+ featureType: 'all',
561
  stylers: [{
562
+ hue: '#0000b0'
563
  }, {
564
+ invert_lightness: 'true'
565
  }, {
566
  saturation: -30
567
  }]
568
  }],
569
  GREYSCALE: [{
570
+ featureType: 'all',
571
  stylers: [{
572
  saturation: -100
573
  }, {
575
  }]
576
  }],
577
  NO_ROADS: [{
578
+ featureType: 'road',
579
  stylers: [{
580
+ visibility: 'off'
581
  }]
582
  }],
583
  MIXED: [{
584
+ featureType: 'landscape',
585
  stylers: [{
586
+ hue: '#00dd00'
587
  }]
588
  }, {
589
+ featureType: 'road',
590
  stylers: [{
591
+ hue: '#dd0000'
592
  }]
593
  }, {
594
+ featureType: 'water',
595
  stylers: [{
596
+ hue: '#000040'
597
  }]
598
  }, {
599
+ featureType: 'poi.park',
600
  stylers: [{
601
+ visibility: 'off'
602
  }]
603
  }, {
604
+ featureType: 'road.arterial',
605
  stylers: [{
606
+ hue: '#ffff00'
607
  }]
608
  }, {
609
+ featureType: 'road.local',
610
  stylers: [{
611
+ visibility: 'off'
612
  }]
613
  }],
614
  CHILLED: [{
615
+ featureType: 'road',
616
+ elementType: 'geometry',
617
  stylers: [{
618
+ visibility: 'simplified'
619
  }]
620
  }, {
621
+ featureType: 'road.arterial',
622
  stylers: [{
623
  hue: 149
624
  }, {
627
  lightness: 0
628
  }]
629
  }, {
630
+ featureType: 'road.highway',
631
  stylers: [{
632
  hue: -31
633
  }, {
636
  lightness: 2.8
637
  }]
638
  }, {
639
+ featureType: 'poi',
640
+ elementType: 'label',
641
  stylers: [{
642
+ visibility: 'off'
643
  }]
644
  }, {
645
+ featureType: 'landscape',
646
  stylers: [{
647
  hue: 163
648
  }, {
651
  lightness: -1.1
652
  }]
653
  }, {
654
+ featureType: 'transit',
655
  stylers: [{
656
+ visibility: 'off'
657
  }]
658
  }, {
659
+ featureType: 'water',
660
  stylers: [{
661
  hue: 3
662
  }, {
669
  a.prototype = {
670
  _initOverlays: function() {
671
  var e = this;
672
+ d('.intergeo_tlbr_marker').each(function(f, i) {
673
  var h = d(i),
674
+ g = h.find('.intergeo_tlbr_marker_location').val().split(',');
675
  e.markers.push(new b.Marker(e, new c.Marker({
676
  position: new c.LatLng(parseFloat(g[0]), parseFloat(g[1])),
677
  map: e.map,
678
+ title: h.find('.intergeo_tlbr_marker_title').val(),
679
+ icon: h.find('.intergeo_tlbr_marker_icon').val(),
680
  draggable: true
681
+ }), h, f));
682
  });
683
+ d('.intergeo_tlbr_polyline').each(function(f, j) {
684
  var i = d(j),
685
+ g = d.trim(i.find('.intergeo_tlbr_polyline_color').val()),
686
+ h = parseFloat(i.find('.intergeo_tlbr_polyline_opacity').val()),
687
+ k = parseInt(i.find('.intergeo_tlbr_polyline_weight').val());
688
  e.polyline.push(new b.Polyline(e, new c.Polyline({
689
  map: e.map,
690
+ path: b.PolyOverlay.stringToPath(i, '.intergeo_tlbr_polyline_path'),
691
  editable: true,
692
+ strokeColor: g.length === 0 ? '#000000' : g,
693
  strokeOpacity: isNaN(h) ? 1 : h,
694
  strokeWeight: isNaN(k) ? 3 : k
695
+ }), i, f));
696
  });
697
+ d('.intergeo_tlbr_polygon').each(function(f, i) {
698
  var h = d(i),
699
+ l = d.trim(h.find('.intergeo_tlbr_polygon_fill_color').val()),
700
+ g = parseFloat(h.find('.intergeo_tlbr_polygon_fill_opacity').val()),
701
+ k = d.trim(h.find('.intergeo_tlbr_polygon_stroke_color').val()),
702
+ m = parseFloat(h.find('.intergeo_tlbr_polygon_stroke_opacity').val()),
703
+ j = parseInt(h.find('.intergeo_tlbr_polygon_weight').val());
704
+
705
+ f = d.trim(h.find('.intergeo_tlbr_plygon_position').val());
706
  e.polygon.push(new b.Polygon(e, new c.Polygon({
707
  map: e.map,
708
+ path: b.PolyOverlay.stringToPath(h, '.intergeo_tlbr_polygon_path'),
709
  editable: true,
710
+ fillColor: l.length === 0 ? '#000000' : l,
711
  fillOpacity: isNaN(g) ? 0.3 : g,
712
+ strokeColor: k.length === 0 ? '#000000' : k,
713
  strokeOpacity: isNaN(m) ? 1 : m,
714
  strokePosition: c.StrokePosition[f] || c.StrokePosition.CENTER,
715
  strokeWeight: isNaN(j) ? 3 : j
716
+ }), h, f));
717
  });
718
+ d('.intergeo_tlbr_rectangle').each(function(f, i) {
719
  var h = d(i),
720
+ l = d.trim(h.find('.intergeo_tlbr_rectangle_fill_color').val()),
721
+ g = parseFloat(h.find('.intergeo_tlbr_rectangle_fill_opacity').val()),
722
+ k = d.trim(h.find('.intergeo_tlbr_rectangle_stroke_color').val()),
723
+ m = parseFloat(h.find('.intergeo_tlbr_rectangle_stroke_opacity').val()),
724
+ j = parseInt(h.find('.intergeo_tlbr_rectangle_weight').val());
725
+
726
+ f = d.trim(h.find('.intergeo_tlbr_rectangle_position').val());
727
  e.rectangle.push(new b.Rectangle(e, new c.Rectangle({
728
  map: e.map,
729
+ bounds: b.PolyOverlay.stringToBounds(h, '.intergeo_tlbr_rectangle_path'),
730
  editable: true,
731
+ fillColor: l.length === 0 ? '#000000' : l,
732
  fillOpacity: isNaN(g) ? 0.3 : g,
733
+ strokeColor: k.length === 0 ? '#000000' : k,
734
  strokeOpacity: isNaN(m) ? 1 : m,
735
  strokePosition: c.StrokePosition[f] || c.StrokePosition.CENTER,
736
  strokeWeight: isNaN(j) ? 3 : j
737
+ }), h, f));
738
  });
739
+ d('.intergeo_tlbr_circle').each(function(m, j) {
740
  var l = d(j),
741
+ p = d.trim(l.find('.intergeo_tlbr_circle_fill_color').val()),
742
+ i = parseFloat(l.find('.intergeo_tlbr_circle_fill_opacity').val()),
743
+ h = d.trim(l.find('.intergeo_tlbr_circle_stroke_color').val()),
744
+ g = parseFloat(l.find('.intergeo_tlbr_circle_stroke_opacity').val()),
745
+ o = d.trim(l.find('.intergeo_tlbr_circle_position').val()),
746
+ k = parseInt(l.find('.intergeo_tlbr_circle_weight').val()),
747
+ q = d.trim(l.find('.intergeo_tlbr_circle_path').val()).split(';'),
748
+ f = q[0].split(','),
749
+ n = q[1].split(',');
750
  e.circle.push(new b.Circle(e, new c.Circle({
751
  map: e.map,
752
  center: new c.LatLng(f[0], f[1]),
753
  radius: parseFloat(n[0]),
754
  editable: true,
755
+ fillColor: p.length === 0 ? '#000000' : p,
756
  fillOpacity: isNaN(i) ? 0.3 : i,
757
+ strokeColor: h.length === 0 ? '#000000' : h,
758
  strokeOpacity: isNaN(g) ? 1 : g,
759
  strokePosition: c.StrokePosition[o] || c.StrokePosition.CENTER,
760
  strokeWeight: isNaN(k) ? 3 : k
761
+ }), l, m));
762
  });
763
+ d('.intergeo_tlbr_drctn').each(function(f, h) {
764
  var g = d(h),
765
+ l = d.trim(g.find('.intergeo_tlbr_drctn_from').val()),
766
+ k = d.trim(g.find('.intergeo_tlbr_drctn_to').val()),
767
+ j = d.trim(g.find('.intergeo_tlbr_drctn_mode').val()),
768
  i = {
769
  origin: l,
770
  destination: k,
771
  travelMode: c.TravelMode[j] || c.TravelMode.DRIVING
772
  };
773
  e.directions.route(i, function(n, m) {
774
+ if (m === c.DirectionsStatus.OK) {
775
  var o = new b.Direction(e, new c.DirectionsRenderer({
776
  map: e.map,
777
  directions: n
778
  }), g, f);
779
+ e.direction.push(o);
780
  } else {
781
  g.remove();
782
+ e.direction.push(null);
783
  }
784
+ });
785
+ });
786
  },
787
  _markerComplete: function(i) {
788
  var g = this,
789
  e = g.markers.length,
790
+ h = d(d('#intergeo_tlbr_marker_tmpl').html().replaceByHash({
791
+ '%pos%': e,
792
+ '%num%': e + 1
793
  })),
794
  f = new b.Marker(g, i.overlay, h, e);
795
+ h.find('.intergeo_tlbr_marker_location').val(i.overlay.getPosition().toUrlValue());
796
+ d('#intergeo_tlbr_markers').append(h);
797
  g.markers.push(f);
798
+ i.overlay.setDraggable(true);
799
  },
800
  _polyComplete: function(j, i, h) {
801
  var f = this,
802
  e = f[i].length,
803
+ g = d(d('#intergeo_tlbr_' + i + '_tmpl').html().replaceByHash({
804
+ '%pos%': e,
805
+ '%num%': e + 1
806
  })),
807
  k = new h(f, j.overlay, g, e);
808
  f[i].push(k);
809
+ g.find('.intergeo_tlbr_' + i + '_path').val(k.pathToString());
810
+ d('#intergeo_tlbr_' + i + 's').append(g);
811
  },
812
  _normalize: function(h) {
813
  var g = function(j) {
814
+ return j === '1';
815
  },
816
  f = function(j, k, l) {
817
+ return k[j] || l;
818
  },
819
  e = function(j) {
820
+ return f(j, c.ControlPosition, 0);
821
  },
822
  i = {
823
  minZoom: parseInt,
825
  scrollwheel: g,
826
  draggable: g,
827
  mapTypeId: function(j) {
828
+ return c.MapTypeId[j] || c.MapTypeId.ROADMAP;
829
  },
830
  mapTypeControl: g,
831
  mapTypeControlOptions: {
834
  var k = [];
835
  d.each(j, function(l, m) {
836
  if (c.MapTypeId[m] !== undefined) {
837
+ k.push(c.MapTypeId[m]);
838
  }
839
  });
840
+ return k;
841
  },
842
  style: function(j) {
843
+ return f(j, c.MapTypeControlStyle, c.MapTypeControlStyle.DEFAULT);
844
  }
845
  },
846
  overviewMapControl: g,
867
  zoomControlOptions: {
868
  position: e,
869
  style: function(j) {
870
+ return f(j, c.ZoomControlStyle, c.ZoomControlStyle.DEFAULT);
871
  }
872
  }
873
  };
874
  return d.each(h, function(j, k) {
875
  if (i[j] === undefined) {
876
+ delete h[j];
877
  } else {
878
+ if (typeof k === 'string') {
879
+ h[j] = i[j](k);
880
  } else {
881
  d.each(k, function(m, l) {
882
  if (i[j][m] === undefined) {
883
+ delete h[j][m];
884
  } else {
885
+ h[j][m] = i[j][m](l);
886
  }
887
+ });
888
  }
889
  }
890
+ });
891
  },
892
  _traffic: function(f) {
893
  var e = this;
894
+ try{
895
+ if (f.layer.traffic === 1) {
896
+ if (!e.traffic) {
897
+ e.traffic = new c.TrafficLayer();
898
+ }
899
+ e.traffic.setMap(e.map);
900
+ } else {
901
+ if (e.traffic) {
902
+ e.traffic.setMap(null);
903
+ }
904
  }
905
+ }catch(err){
906
+
 
 
907
  }
 
908
  },
909
  _bicycling: function(f) {
910
  var e = this;
911
+ try{
912
+ if (f.layer.bicycling === 1) {
913
  if (!e.bicycling) {
914
+ e.bicycling = new c.BicyclingLayer();
915
  }
916
+ e.bicycling.setMap(e.map);
917
  } else {
918
  if (e.bicycling) {
919
+ e.bicycling.setMap(null);
920
  }
921
  }
922
+ }catch(err){
923
+
924
+ }
925
  },
926
  _weather: function(f) {
927
  var e = this;
928
+ try{
929
+ if (f.layer.weather === 1) {
930
  if (!e.weather) {
931
+ e.weather = new c.weather.WeatherLayer({});
932
  }
933
  e.weather.setMap(e.map);
934
  e.weather.setOptions({
935
  temperatureUnits: c.weather.TemperatureUnit[f.weather.temperatureUnits] || c.weather.TemperatureUnit.CELSIUS,
936
  windSpeedUnits: c.weather.WindSpeedUnit[f.weather.windSpeedUnits] || c.weather.WindSpeedUnit.METERS_PER_SECOND
937
+ });
938
  } else {
939
  if (e.weather) {
940
+ e.weather.setMap(null);
941
  }
942
  }
943
+ }catch(err){
944
+
945
+ }
946
  },
947
  _cloud: function(f) {
948
+ try{
949
  var e = this;
950
+ if (f.layer.cloud === 1) {
951
  if (!e.cloud) {
952
+ e.cloud = new c.weather.CloudLayer();
953
  }
954
+ e.cloud.setMap(e.map);
955
  } else {
956
  if (e.cloud) {
957
+ e.cloud.setMap(null);
958
  }
959
  }
960
+ }catch(err){
961
+
962
+ }
963
  },
964
  _panoramio: function(f) {
965
  var e = this;
966
+ try{
967
+ if (f.layer.panoramio === 1) {
968
  if (!e.panoramio) {
969
+ e.panoramio = new c.panoramio.PanoramioLayer({});
970
  }
971
  e.panoramio.setMap(e.map);
972
  e.panoramio.setTag(f.panoramio.tag);
973
+ e.panoramio.setUserId(f.panoramio.userId);
974
  } else {
975
  if (e.panoramio) {
976
+ e.panoramio.setMap(null);
977
  }
978
  }
979
+ }catch(err){
980
+
981
+ }
982
  },
983
  _adsense: function(f) {
984
+ try{
985
  var e = this;
986
+ if (f.layer.adsense === 1 && intergeo_options.adsense.publisher_id && d.trim(intergeo_options.adsense.publisher_id) !== '') {
987
  if (!e.adunit) {
988
+ e.adunit = new c.adsense.AdUnit(document.createElement('div'), {
989
  visible: true,
990
  publisherId: intergeo_options.adsense.publisher_id
991
+ });
992
  }
993
  e.adunit.setMap(this.map);
994
  e.adunit.setBackgroundColor(f.adsense.backgroundColor);
997
  e.adunit.setTitleColor(f.adsense.titleColor);
998
  e.adunit.setTextColor(f.adsense.textColor);
999
  if (c.ControlPosition[f.adsense.position] !== undefined) {
1000
+ e.adunit.setPosition(c.ControlPosition[f.adsense.position]);
1001
  }
1002
  if (c.adsense.AdFormat[f.adsense.format]) {
1003
+ e.adunit.setFormat(c.adsense.AdFormat[f.adsense.format]);
1004
  }
1005
  } else {
1006
  if (e.adunit) {
1007
+ e.adunit.setMap(null);
1008
  }
1009
  }
1010
+ }catch(err){
1011
+
1012
+ }
1013
  },
1014
  _pro: function(f){
1015
  var e = this;
1019
  },
1020
  createDirection: function() {
1021
  var f = this,
1022
+ e = d('#intergeo_drctn_ppp'),
1023
+ g = e.find('.intergeo_ppp_frm');
1024
+ g.bind('submit.firsttime', function() {
1025
  var h, i, j, l, k;
1026
+ if (g.attr('data-position') !== '') {
1027
+ return false;
1028
  }
1029
  h = f.direction.length;
1030
+ l = d.trim(g.find('#intergeo_ppp_drctn_from').val());
1031
+ k = d.trim(g.find('#intergeo_ppp_drctn_to').val());
1032
+ if (l === '' || k === '') {
1033
+ return false;
1034
  }
1035
+ j = d(d('#intergeo_tlbr_drctn_tmpl').html().replaceByHash({
1036
+ '%pos%': h,
1037
+ '%num%': h + 1,
1038
+ '%from%': l,
1039
+ '%to%': k,
1040
+ '%mode%': d.trim(g.find('#intergeo_ppp_drctn_mode option:selected').text())
1041
  }));
1042
  i = new b.Direction(f, new c.DirectionsRenderer({
1043
  map: f.map
1044
  }), j, h);
1045
+ d('#intergeo_tlbr_drctns').append(j);
1046
  f.direction.push(i);
1047
  i.update(g);
1048
+ g.unbind('submit.firsttime');
1049
+ return false;
1050
  });
1051
+ g.find('select,input[type!="submit"]').val('');
1052
+ g.attr('data-position', '');
1053
+ e.fadeIn(150);
1054
  },
1055
  updateOverlays: function() {
1056
  var e = this;
1057
  d.each(e.polyline, function(g, f) {
1058
  if (f) {
1059
+ d('.intergeo_tlbr_polyline_path[data-position="' + g + '"]').val(f.pathToString());
1060
  }
1061
  });
1062
  d.each(e.polygon, function(g, f) {
1063
  if (f) {
1064
+ d('.intergeo_tlbr_polygon_path[data-position="' + g + '"]').val(f.pathToString());
1065
  }
1066
+ });
1067
  },
1068
  preview: function() {
1069
  var f = this,
1070
  g = {};
1071
+ d.each(d('#intergeo_frm').serializeArray(), function() {
1072
  var l = /\[\]$/,
1073
  m = g,
1074
+ j = this.name.replace(l, '').split('_'),
1075
  e = j.pop(),
1076
+ k = this.value || '',
1077
  i = l.test(this.name);
1078
  d.each(j, function(n, o) {
1079
  if (m[o] === undefined) {
1080
+ m[o] = {};
1081
  }
1082
+ m = m[o];
1083
  });
1084
  if (m[e] !== undefined) {
1085
  if (i) {
1086
+ m[e].push(k);
1087
  } else {
1088
+ m[e] = k;
1089
  }
1090
  } else {
1091
+ m[e] = i ? [k] : k;
1092
  }
1093
  });
1094
  f._normalize(g.map);
1095
+ if (d('#intergeo_map_lock_preview').is(':checked')) {
1096
  g.map.draggable = false;
1097
+ g.map.scrollwheel = false;
1098
  }
1099
  f.map.setOptions(g.map);
1100
  if (g.styles && g.styles.type) {
1101
+ if (g.styles.type === -1) {
1102
  try {
1103
  f.map.setOptions({
1104
+ styles: d.parseJSON(g.styles.custom || '[]')
1105
+ });
1106
  } catch (h) {
1107
+ alert(intergeo_options.l10n.error.style);
1108
  }
1109
  } else {
1110
  if (a.Styles[g.styles.type] !== undefined) {
1111
  f.map.setOptions({
1112
  styles: a.Styles[g.styles.type]
1113
+ });
1114
  }
1115
  }
1116
  }
1123
  f._pro(g);
1124
  }
1125
  };
1126
+
1127
  d(document).ready(function() {
1128
  var g, f, e;
1129
+ f = new a('intergeo_canvas', {
1130
+ center: new c.LatLng(parseFloat(d('#intergeo_map_lat').val()), parseFloat(d('#intergeo_map_lng').val())),
1131
+ zoom: parseInt(d('#intergeo_map_zoom').val()),
1132
  minZoom: 0,
1133
  maxZoom: 19,
1134
  mapTypeId: c.MapTypeId.ROADMAP
1135
  });
1136
  var xxxx = window.dialogArguments || opener || parent || top;
1137
  xxxx.intergeo_maps_current = f;
1138
+ e = d('#intergeo_frm');
1139
+ e.find('input[name], select[name], textarea[name]').not('input[type="file"]').change(function() {
1140
+ f.preview();
1141
  });
1142
+ e.find('.intergeo_tlbr_cntrl_onkeyup').keyup(function() {
1143
+ f.preview();
1144
  });
1145
  e.submit(function() {
1146
  f.updateOverlays();
1147
+ return true;
1148
  });
1149
  f.preview();
1150
+ d('#intergeo_map_lock_preview').change(function() {
1151
+ var h = d(this).is(':checked');
1152
  f.map.setOptions({
1153
  draggable: !h,
1154
  scrollwheel: !h
1155
+ });
1156
  });
1157
+ d('.intergeo_tlbr_ul_li_h3').click(function() {
1158
  var h = d(this).parent();
1159
+ if (h.hasClass('open')) {
1160
+ h.removeClass('open');
1161
  } else {
1162
+ d('.intergeo_tlbr_ul_li.open').removeClass('open');
1163
+ h.addClass('open');
1164
  }
1165
  });
1166
+ d('.intergeo_tlbr_cntrl_more_info').click(function() {
1167
+ d(this).parent().nextAll('.intergeo_tlbr_cntrl_dsc:first').toggle();
1168
+ return false;
1169
  });
1170
+ d('.intergeo_tlbr_cntrl_ttl').click(function() {
1171
+ d(this).toggleClass('open').parent().find('.intergeo_tlbr_cntrl_items').toggle();
1172
+ return false;
1173
  });
1174
+ d('.color-picker-hex').wpColorPicker({
1175
  change: function() {
1176
  clearTimeout(g);
1177
  g = setTimeout(function() {
1178
+ f.preview();
1179
+ }, 500);
1180
  }
1181
  });
1182
+ d('.intergeo_tlbr_clr').wpColorPicker();
1183
+ d('#intergeo_show_map_center').change(function() {
1184
+ d('#intergeo_canvas_center').toggle();
1185
  d.post(intergeo_options.ajaxurl, {
1186
+ action: 'intergeo_show_map_center',
1187
+ nonce: intergeo_options.nonce || '',
1188
+ status: d(this).is(':checked') ? 1 : 0
1189
+ });
1190
  });
1191
+ d('.intergeo_ppp_cls').click(function() {
1192
+ d(this).parents('.intergeo_ppp').fadeOut(150);
1193
+ return false;
1194
  });
1195
+ d('#intergeo_go_to_address').click(function() {
1196
+ d('#intergeo_address_ppp').fadeIn(150);
1197
+ return false;
1198
  });
1199
+ d('#intergeo_address_ppp .intergeo_ppp_frm').submit(function() {
1200
  var h = d(this),
1201
+ j = h.find('.intergeo_ppp_txt'),
1202
  i = d.trim(j.val());
1203
+ if (i !== '') {
1204
  if (!f.geocoder) {
1205
+ f.geocoder = new c.Geocoder();
1206
  }
1207
  f.geocoder.geocode({
1208
  address: i
1209
  }, function(l, k) {
1210
+ if (k === c.GeocoderStatus.OK) {
1211
+ f.map.setCenter(l[0].geometry.location);
1212
  }
1213
+ });
1214
  }
1215
+ j.val('');
1216
+ h.parents('.intergeo_ppp').fadeOut(150);
1217
+ return false;
1218
  });
1219
+ d('.intregeo_ppp_frm_overlay').submit(function() {
1220
  var j = d(this),
1221
+ h = parseInt(j.attr('data-position')),
1222
+ i = j.attr('data-target');
1223
+ j.parents('.intergeo_ppp').fadeOut(150);
1224
  if (f[i] && f[i][h]) {
1225
+ f[i][h].update(j);
1226
  }
1227
+ return false;
1228
  });
1229
+ d('#intergeo_tlbr_new_drctn').click(function() {
1230
  f.createDirection();
1231
+ return false;
1232
  });
1233
 
1234
+ d('#intergeo_add_marker_bttn').on('click', function( ){
1235
  var marker = new c.Marker({
1236
  position: f.map.getCenter(),
1237
  map: f.map,
1239
  });
1240
  marker.setAnimation(c.Animation.BOUNCE);
1241
  var e = f.markers.length;
1242
+ var h = d(d('#intergeo_tlbr_marker_tmpl').html().replaceByHash({
1243
+ '%pos%': e,
1244
+ '%num%': e + 1
1245
  }));
1246
  var m = new intergeo.maps.Marker(f, marker, h, e);
1247
+ h.find('.intergeo_tlbr_marker_location').val(marker.getPosition().toUrlValue());
1248
+ d('#intergeo_tlbr_markers').append(h);
1249
  f.markers.push(m);
1250
+ d('table.intergeo_tlbr_cntrl_tbl.intergeo_tlbr_overlay.intergeo_tlbr_marker[data-table-num=' + (e + 1) + ']').find('.intergeo_tlbr_actn_edit').trigger('click');
1251
+ im_check_markers();
1252
+
1253
  });
1254
 
1255
+ d('#intergeo_tlbr_marker_icon_select').ddslick({
1256
+ width: '100%',
1257
+ background: '#ffffff',
1258
  onSelected: function(data){
1259
+ if(data.selectedData.value === 'custom'){
1260
+ d('#intergeo_marker_ppp .intergeo_tlbr_marker_icon').val('').show();
1261
  }else{
1262
  d('#intergeo_marker_ppp .intergeo_tlbr_marker_icon').val(data.selectedData.value).hide();
1263
  }
1265
  });
1266
  });
1267
 
1268
+ })(jQuery, google.maps, intergeo.maps);
1269
+ function im_check_markers(){
1270
+ console.log(jQuery('#intergeo_tlbr_markers').size());
1271
+ if(intergeo_options.is_pro === 'no' && jQuery('#intergeo_tlbr_markers .intergeo_tlbr_marker_title_td').size() === 5){
1272
+ jQuery('#intergeo_add_marker_bttn').hide();
1273
+
1274
+ jQuery('#intergeo_add_marker_bttn').parent().find('.intergeo-pro-btn').show();
1275
+ }else{
1276
+
1277
+ jQuery('#intergeo_add_marker_bttn').show();
1278
+
1279
+ jQuery('#intergeo_add_marker_bttn').parent().find('.intergeo-pro-btn').hide();
1280
+ }
1281
+ }
js/library.js CHANGED
@@ -1 +1,61 @@
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);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ if (! intergeo) {
3
+ var intergeo = {media: {view: {settings: {}}}};
4
+ }
5
+ (function (a) {
6
+ if (!intergeo.media) {
7
+ intergeo.media = {view: {settings: {}}};
8
+ }
9
+ intergeo.media.view.Map = a.view.MediaFrame.extend({
10
+ initialize: function () {
11
+ _.defaults(intergeo.media.view.settings, {tabUrl: a.view.settings.tabUrl});
12
+ _.defaults(this.options, {map: false, copy: false, state: 'iframe:intergeo_map'});
13
+ a.view.MediaFrame.prototype.initialize.apply(this, arguments);
14
+ a.view.settings.tabUrl = intergeo.media.view.settings.tabUrl;
15
+ if (this.options.map) {
16
+ a.view.settings.tabUrl += '&map=' + this.options.map;
17
+ } else {
18
+ if (this.options.copy) {
19
+ a.view.settings.tabUrl += '&copy=' + this.options.copy;
20
+ }
21
+ }
22
+ this.createIframeStates();
23
+ }
24
+ });
25
+ })(wp.media);
26
+ (function (b, a) {
27
+ function c() {
28
+ b('.intergeo_lbrr_map').height(b('.intergeo_lbrr_map').width() * 10 / 16);
29
+ b('.intergeo_lbrr_map').each(function () {
30
+ var d = b(this);
31
+ d.height(d.width() * 10 / 16);
32
+ });
33
+ }
34
+
35
+ b(document).ready(function () {
36
+ c();
37
+ b(window).resize(c);
38
+ b('.intergeo_lbrr_code').focus(function () {
39
+ var d = b(this);
40
+ d.select().mouseup(function () {
41
+ d.unbind('mouseup');
42
+ return false;
43
+ });
44
+ });
45
+ b('.intergeo_lbrr_add_new').click(function () {
46
+ var d = new a({map: false});
47
+ d.open();
48
+ return false;
49
+ });
50
+ b('.intergeo_lbrr_item_edit').click(function () {
51
+ var d = new a({map: b(this).data('map')});
52
+ d.open();
53
+ return false;
54
+ });
55
+ b('.intergeo_lbrr_item_copy').click(function () {
56
+ var d = new a({copy: b(this).data('map')});
57
+ d.open();
58
+ return false;
59
+ });
60
+ });
61
+ })(jQuery, intergeo.media.view.Map);
js/misc.js CHANGED
@@ -1,33 +1,35 @@
1
- (function($, im){
2
- $(document).on('click', '.intergeo_nag .notice-dismiss', function(e){
 
 
3
  $.ajax({
4
  url: ajaxurl,
5
  data: {
6
- 'action' : im.ajax["action"],
7
- 'security' : im.ajax["nonce"]
8
  }
9
  });
10
  });
11
 
12
- $(document).on('click', '.themeisle_triggered_feedback_nag .notice-dismiss', function(e){
13
  themeisle_dismiss_feedback_nag();
14
  });
15
 
16
- $(document).on('click','.themeisle-feedback-click', function(e){
17
 
18
  themeisle_dismiss_feedback_nag();
19
  $('.themeisle_triggered_feedback_nag').remove();
20
  });
21
 
22
- function themeisle_dismiss_feedback_nag(){
23
  $.ajax({
24
  url: ajaxurl,
25
  data: {
26
- 'action' : im.ajax["themeisle_feedback_action"],
27
- 'slug' : im.ajax["themeisle_feedback_slug"],
28
- 'security' : im.ajax["nonce"]
29
  }
30
  });
31
  }
32
 
33
- })(jQuery, intergeo_misc)
1
+ /* global ajaxurl */
2
+ /* global intergeo_misc */
3
+ (function ($, im) {
4
+ $(document).on('click', '.intergeo_nag .notice-dismiss', function () {
5
  $.ajax({
6
  url: ajaxurl,
7
  data: {
8
+ 'action': im.ajax.action,
9
+ 'security': im.ajax.nonce
10
  }
11
  });
12
  });
13
 
14
+ $(document).on('click', '.themeisle_triggered_feedback_nag .notice-dismiss', function () {
15
  themeisle_dismiss_feedback_nag();
16
  });
17
 
18
+ $(document).on('click', '.themeisle-feedback-click', function () {
19
 
20
  themeisle_dismiss_feedback_nag();
21
  $('.themeisle_triggered_feedback_nag').remove();
22
  });
23
 
24
+ function themeisle_dismiss_feedback_nag() {
25
  $.ajax({
26
  url: ajaxurl,
27
  data: {
28
+ 'action': im.ajax.themeisle_feedback_action,
29
+ 'slug': im.ajax.themeisle_feedback_slug,
30
+ 'security': im.ajax.nonce
31
  }
32
  });
33
  }
34
 
35
+ })(jQuery, intergeo_misc);
js/rendering.js CHANGED
@@ -1,38 +1,41 @@
1
- (function(c, b) {
2
- var a = function(d, f) {
 
 
 
3
  var e = this;
4
  e.map = null;
5
  e.container = document.getElementById(d);
6
  e.options = f;
7
  e.infowindow = null;
8
- e._normalizeOptions()
9
  };
10
  a.styles = {
11
  DEFAULT: [],
12
  RED: [{
13
- featureType: "all",
14
  stylers: [{
15
- hue: "#ff0000"
16
  }]
17
  }],
18
  NIGHT: [{
19
- featureType: "all",
20
  stylers: [{
21
- invert_lightness: "true"
22
  }]
23
  }],
24
  BLUE: [{
25
- featureType: "all",
26
  stylers: [{
27
- hue: "#0000b0"
28
  }, {
29
- invert_lightness: "true"
30
  }, {
31
  saturation: -30
32
  }]
33
  }],
34
  GREYSCALE: [{
35
- featureType: "all",
36
  stylers: [{
37
  saturation: -100
38
  }, {
@@ -40,50 +43,50 @@
40
  }]
41
  }],
42
  NO_ROADS: [{
43
- featureType: "road",
44
  stylers: [{
45
- visibility: "off"
46
  }]
47
  }],
48
  MIXED: [{
49
- featureType: "landscape",
50
  stylers: [{
51
- hue: "#00dd00"
52
  }]
53
  }, {
54
- featureType: "road",
55
  stylers: [{
56
- hue: "#dd0000"
57
  }]
58
  }, {
59
- featureType: "water",
60
  stylers: [{
61
- hue: "#000040"
62
  }]
63
  }, {
64
- featureType: "poi.park",
65
  stylers: [{
66
- visibility: "off"
67
  }]
68
  }, {
69
- featureType: "road.arterial",
70
  stylers: [{
71
- hue: "#ffff00"
72
  }]
73
  }, {
74
- featureType: "road.local",
75
  stylers: [{
76
- visibility: "off"
77
  }]
78
  }],
79
  CHILLED: [{
80
- featureType: "road",
81
- elementType: "geometry",
82
  stylers: [{
83
- visibility: "simplified"
84
  }]
85
  }, {
86
- featureType: "road.arterial",
87
  stylers: [{
88
  hue: 149
89
  }, {
@@ -92,7 +95,7 @@
92
  lightness: 0
93
  }]
94
  }, {
95
- featureType: "road.highway",
96
  stylers: [{
97
  hue: -31
98
  }, {
@@ -101,13 +104,13 @@
101
  lightness: 2.8
102
  }]
103
  }, {
104
- featureType: "poi",
105
- elementType: "label",
106
  stylers: [{
107
- visibility: "off"
108
  }]
109
  }, {
110
- featureType: "landscape",
111
  stylers: [{
112
  hue: 163
113
  }, {
@@ -116,12 +119,12 @@
116
  lightness: -1.1
117
  }]
118
  }, {
119
- featureType: "transit",
120
  stylers: [{
121
- visibility: "off"
122
  }]
123
  }, {
124
- featureType: "water",
125
  stylers: [{
126
  hue: 3
127
  }, {
@@ -132,39 +135,39 @@
132
  }]
133
  };
134
  a.prototype = {};
135
- a.prototype._normalizeOptions = function() {
136
  var g = this.options.map || {},
137
- f = function(i) {
138
- return i === "1"
139
  },
140
- e = function(i, j, k) {
141
- return j[i] || k
142
  },
143
- d = function(i) {
144
- return e(i, b.ControlPosition, 0)
145
  },
146
  h = {
147
  minZoom: parseInt,
148
  maxZoom: parseInt,
149
  scrollwheel: f,
150
  draggable: f,
151
- mapTypeId: function(i) {
152
- return b.MapTypeId[i] || b.MapTypeId.ROADMAP
153
  },
154
  mapTypeControl: f,
155
  mapTypeControlOptions: {
156
  position: d,
157
- mapTypeIds: function(i) {
158
  var j = [];
159
- c.each(i, function(k, l) {
160
  if (b.MapTypeId[l] !== undefined) {
161
- j.push(b.MapTypeId[l])
162
  }
163
  });
164
- return j
165
  },
166
- style: function(i) {
167
- return e(i, b.MapTypeControlStyle, b.MapTypeControlStyle.DEFAULT)
168
  }
169
  },
170
  overviewMapControl: f,
@@ -190,71 +193,72 @@
190
  zoomControl: f,
191
  zoomControlOptions: {
192
  position: d,
193
- style: function(i) {
194
- return e(i, b.ZoomControlStyle, b.ZoomControlStyle.DEFAULT)
195
  }
196
  }
197
  };
198
- return c.each(g, function(i, j) {
199
  if (h[i] === undefined) {
200
- delete g[i]
201
  } else {
202
- if (typeof j === "boolean") {
203
- j = j ? "1" : "0";
204
  }
205
- if(typeof j === "number") {
206
  j = j.toString();
207
  }
208
- if (typeof j === "string") {
209
- g[i] = h[i](j)
210
  } else {
211
- c.each(j, function(l, k) {
212
  if (h[i][l] === undefined) {
213
- delete g[i][l]
214
  } else {
215
- g[i][l] = h[i][l](k)
216
  }
217
- })
218
  }
219
  }
220
- })
221
  };
222
- a.prototype._getGeocoder = function() {
223
  if (!a._geocoder) {
224
- a._geocoder = new b.Geocoder()
225
  }
226
- return a._geocoder
227
  };
228
- a.prototype._renderOverlays = function() {
229
  var d = this;
230
- c.each(d.options.overlays.marker || [], function(h, g) {
231
  var f;
232
  try {
233
  f = new b.Marker({
234
  position: new b.LatLng(g.position[0], g.position[1]),
235
  map: d.map,
236
- title: g.title || "",
237
  icon: g.icon || null
238
  });
239
- b.event.addListener(f, "click", function() {
240
- var i, e = c.trim(g.info || "");
241
  if (e.length) {
242
  if (d.infowindow) {
243
- d.infowindow.close()
244
  }
245
  i = new b.InfoWindow();
246
  i.setContent(e);
247
  i.open(d.map, f);
248
- d.infowindow = i
249
  }
250
- })
251
- } catch (j) {}
 
252
  });
253
- c.each(d.options.overlays.polyline || [], function(g, f) {
254
  var j = [];
255
- c.each(f.path || [], function(i, e) {
256
- if (e.length == 2) {
257
- j.push(new b.LatLng(e[0], e[1]))
258
  }
259
  });
260
  if (j.length >= 2) {
@@ -262,18 +266,19 @@
262
  new b.Polyline({
263
  map: d.map,
264
  path: j,
265
- strokeColor: f.color || "#000000",
266
  strokeOpacity: f.opacity || 1,
267
  strokeWeight: f.weight || 3
268
- })
269
- } catch (h) {}
 
270
  }
271
  });
272
- c.each(d.options.overlays.polygon || [], function(g, f) {
273
  var j = [];
274
- c.each(f.path || [], function(i, e) {
275
- if (e.length == 2) {
276
- j.push(new b.LatLng(e[0], e[1]))
277
  }
278
  });
279
  if (j.length >= 2) {
@@ -281,73 +286,76 @@
281
  new b.Polygon({
282
  map: d.map,
283
  path: j,
284
- strokeColor: f.stroke_color || "#000000",
285
  strokeOpacity: f.stroke_opacity || 1,
286
  strokeWeight: f.weight || 3,
287
  strokePosition: b.StrokePosition[f.position] || b.StrokePosition.CENTER,
288
- fillColor: f.fill_color || "#000000",
289
  fillOpacity: f.fill_opacity || 0.3
290
- })
291
- } catch (h) {}
 
292
  }
293
  });
294
- c.each(d.options.overlays.rectangle || [], function(g, f) {
295
  var j = [];
296
- c.each(f.path || [], function(i, e) {
297
- if (e.length == 2) {
298
- j.push(new b.LatLng(e[0], e[1]))
299
  }
300
  });
301
- if (j.length == 2) {
302
  try {
303
  new b.Rectangle({
304
  map: d.map,
305
  bounds: new b.LatLngBounds(j[0], j[1]),
306
- strokeColor: f.stroke_color || "#000000",
307
  strokeOpacity: f.stroke_opacity || 1,
308
  strokeWeight: f.weight || 3,
309
  strokePosition: b.StrokePosition[f.position] || b.StrokePosition.CENTER,
310
- fillColor: f.fill_color || "#000000",
311
  fillOpacity: f.fill_opacity || 0.3
312
- })
313
- } catch (h) {}
 
314
  }
315
  });
316
- c.each(d.options.overlays.circle || [], function(g, f) {
317
  try {
318
  new b.Circle({
319
  map: d.map,
320
  center: new b.LatLng(f.path[0][0], f.path[0][1]),
321
  radius: parseFloat(f.path[1][0]),
322
- strokeColor: f.stroke_color || "#000000",
323
  strokeOpacity: f.stroke_opacity || 1,
324
  strokeWeight: f.weight || 3,
325
  strokePosition: b.StrokePosition[f.position] || b.StrokePosition.CENTER,
326
- fillColor: f.fill_color || "#000000",
327
  fillOpacity: f.fill_opacity || 0.3
328
- })
329
- } catch (h) {}
330
- })
 
331
  };
332
- a.prototype._renderDirections = function() {
333
  var e = this,
334
  d = new b.DirectionsService();
335
- c.each(e.options.directions || [], function(g, f) {
336
  d.route({
337
  origin: f.from,
338
  destination: f.to,
339
  travelMode: b.TravelMode[f.mode] || b.TravelMode.DRIVING
340
- }, function(i, h) {
341
- if (h == b.DirectionsStatus.OK) {
342
  new b.DirectionsRenderer({
343
  map: e.map,
344
  directions: i
345
- })
346
  }
347
- })
348
- })
349
  };
350
- a.prototype.render = function() {
351
  var d = this,
352
  j = d.options.layer || {},
353
  i = d.options.weather || {},
@@ -355,7 +363,7 @@
355
  k = null,
356
  f = d.options.adsense || {};
357
  if (!d.container) {
358
- return false
359
  }
360
  d.map = new b.Map(d.container, c.extend({
361
  center: new b.LatLng(d.options.lat || 48.1366069, d.options.lng || 11.577085099999977),
@@ -363,87 +371,88 @@
363
  mapTypeId: b.MapTypeId.ROADMAP
364
  }, d.options.map || {}));
365
  if (d.options.styles && d.options.styles.type) {
366
- if (d.options.styles.type == -1) {
367
  try {
368
  d.map.setOptions({
369
  styles: d.options.styles.custom || []
370
- })
371
- } catch (h) {}
 
372
  } else {
373
  if (a.styles[d.options.styles.type] !== undefined) {
374
  d.map.setOptions({
375
  styles: a.styles[d.options.styles.type]
376
- })
377
  }
378
  }
379
  }
380
  if (d.options.address) {
381
  d._getGeocoder().geocode({
382
  address: d.options.address
383
- }, function(l, e) {
384
- if (e == b.GeocoderStatus.OK) {
385
- d.map.setCenter(l[0].geometry.location)
386
  }
387
- })
388
  }
389
  if (d.options.overlays) {
390
- d._renderOverlays()
391
  }
392
  if (d.options.directions) {
393
- d._renderDirections()
394
  }
395
  if (j.traffic) {
396
- (new b.TrafficLayer()).setMap(d.map)
397
  }
398
  if (j.bicycling) {
399
- (new b.BicyclingLayer()).setMap(d.map)
400
  }
401
  if (j.weather) {
402
  new b.weather.WeatherLayer({
403
  map: d.map,
404
- temperatureUnits: b.weather.TemperatureUnit[i.temperatureUnits || "CELSIUS"],
405
- windSpeedUnits: b.weather.WindSpeedUnit[i.windSpeedUnits || "METERS_PER_SECOND"]
406
- })
407
  }
408
  if (j.cloud) {
409
- (new b.weather.CloudLayer()).setMap(d.map)
410
  }
411
  if (j.panoramio) {
412
  new b.panoramio.PanoramioLayer({
413
  map: d.map,
414
- tag: g.tag || "",
415
- userId: g.userId || ""
416
- })
417
  }
418
- if (j.adsense && intergeo_options.adsense.publisher_id && c.trim(intergeo_options.adsense.publisher_id) != "") {
419
- k = new b.adsense.AdUnit(document.createElement("div"), {
420
  map: d.map,
421
  visible: true,
422
  publisherId: intergeo_options.adsense.publisher_id,
423
- backgroundColor: f.backgroundColor || "",
424
- borderColor: f.borderColor || "",
425
- textColor: f.urlColor || "",
426
- titleColor: f.titleColor || "",
427
- urlColor: f.textColor || ""
428
  });
429
  if (f.position && b.ControlPosition[f.position]) {
430
- k.setPosition(b.ControlPosition[f.position])
431
  }
432
  if (f.format && b.adsense.AdFormat[f.format]) {
433
- k.setFormat(b.adsense.AdFormat[f.format])
434
  }
435
  }
436
- var containerID = c(this.container).attr("id");
437
  var __map = window.intergeo_maps_maps || [];
438
  __map[containerID] = d.map;
439
- return true
440
  };
441
- c(document).ready(function() {
442
  var d, e, f = window.intergeo_maps || [];
443
  for (d = 0; d < f.length; d++) {
444
  e = new a(f[d].container, f[d].options);
445
- e.render()
446
  }
447
- })
448
 
449
  })(jQuery, google.maps);
1
+ /* global intergeo_options */
2
+ /* global google */
3
+ //noinspection JSUnresolvedVariable
4
+ (function (c, b) {
5
+ var a = function (d, f) {
6
  var e = this;
7
  e.map = null;
8
  e.container = document.getElementById(d);
9
  e.options = f;
10
  e.infowindow = null;
11
+ e._normalizeOptions();
12
  };
13
  a.styles = {
14
  DEFAULT: [],
15
  RED: [{
16
+ featureType: 'all',
17
  stylers: [{
18
+ hue: '#ff0000'
19
  }]
20
  }],
21
  NIGHT: [{
22
+ featureType: 'all',
23
  stylers: [{
24
+ invert_lightness: 'true'
25
  }]
26
  }],
27
  BLUE: [{
28
+ featureType: 'all',
29
  stylers: [{
30
+ hue: '#0000b0'
31
  }, {
32
+ invert_lightness: 'true'
33
  }, {
34
  saturation: -30
35
  }]
36
  }],
37
  GREYSCALE: [{
38
+ featureType: 'all',
39
  stylers: [{
40
  saturation: -100
41
  }, {
43
  }]
44
  }],
45
  NO_ROADS: [{
46
+ featureType: 'road',
47
  stylers: [{
48
+ visibility: 'off'
49
  }]
50
  }],
51
  MIXED: [{
52
+ featureType: 'landscape',
53
  stylers: [{
54
+ hue: '#00dd00'
55
  }]
56
  }, {
57
+ featureType: 'road',
58
  stylers: [{
59
+ hue: '#dd0000'
60
  }]
61
  }, {
62
+ featureType: 'water',
63
  stylers: [{
64
+ hue: '#000040'
65
  }]
66
  }, {
67
+ featureType: 'poi.park',
68
  stylers: [{
69
+ visibility: 'off'
70
  }]
71
  }, {
72
+ featureType: 'road.arterial',
73
  stylers: [{
74
+ hue: '#ffff00'
75
  }]
76
  }, {
77
+ featureType: 'road.local',
78
  stylers: [{
79
+ visibility: 'off'
80
  }]
81
  }],
82
  CHILLED: [{
83
+ featureType: 'road',
84
+ elementType: 'geometry',
85
  stylers: [{
86
+ visibility: 'simplified'
87
  }]
88
  }, {
89
+ featureType: 'road.arterial',
90
  stylers: [{
91
  hue: 149
92
  }, {
95
  lightness: 0
96
  }]
97
  }, {
98
+ featureType: 'road.highway',
99
  stylers: [{
100
  hue: -31
101
  }, {
104
  lightness: 2.8
105
  }]
106
  }, {
107
+ featureType: 'poi',
108
+ elementType: 'label',
109
  stylers: [{
110
+ visibility: 'off'
111
  }]
112
  }, {
113
+ featureType: 'landscape',
114
  stylers: [{
115
  hue: 163
116
  }, {
119
  lightness: -1.1
120
  }]
121
  }, {
122
+ featureType: 'transit',
123
  stylers: [{
124
+ visibility: 'off'
125
  }]
126
  }, {
127
+ featureType: 'water',
128
  stylers: [{
129
  hue: 3
130
  }, {
135
  }]
136
  };
137
  a.prototype = {};
138
+ a.prototype._normalizeOptions = function () {
139
  var g = this.options.map || {},
140
+ f = function (i) {
141
+ return i === '1';
142
  },
143
+ e = function (i, j, k) {
144
+ return j[i] || k;
145
  },
146
+ d = function (i) {
147
+ return e(i, b.ControlPosition, 0);
148
  },
149
  h = {
150
  minZoom: parseInt,
151
  maxZoom: parseInt,
152
  scrollwheel: f,
153
  draggable: f,
154
+ mapTypeId: function (i) {
155
+ return b.MapTypeId[i] || b.MapTypeId.ROADMAP;
156
  },
157
  mapTypeControl: f,
158
  mapTypeControlOptions: {
159
  position: d,
160
+ mapTypeIds: function (i) {
161
  var j = [];
162
+ c.each(i, function (k, l) {
163
  if (b.MapTypeId[l] !== undefined) {
164
+ j.push(b.MapTypeId[l]);
165
  }
166
  });
167
+ return j;
168
  },
169
+ style: function (i) {
170
+ return e(i, b.MapTypeControlStyle, b.MapTypeControlStyle.DEFAULT);
171
  }
172
  },
173
  overviewMapControl: f,
193
  zoomControl: f,
194
  zoomControlOptions: {
195
  position: d,
196
+ style: function (i) {
197
+ return e(i, b.ZoomControlStyle, b.ZoomControlStyle.DEFAULT);
198
  }
199
  }
200
  };
201
+ return c.each(g, function (i, j) {
202
  if (h[i] === undefined) {
203
+ delete g[i];
204
  } else {
205
+ if (typeof j === 'boolean') {
206
+ j = j ? '1' : '0';
207
  }
208
+ if (typeof j === 'number') {
209
  j = j.toString();
210
  }
211
+ if (typeof j === 'string') {
212
+ g[i] = h[i](j);
213
  } else {
214
+ c.each(j, function (l, k) {
215
  if (h[i][l] === undefined) {
216
+ delete g[i][l];
217
  } else {
218
+ g[i][l] = h[i][l](k);
219
  }
220
+ });
221
  }
222
  }
223
+ });
224
  };
225
+ a.prototype._getGeocoder = function () {
226
  if (!a._geocoder) {
227
+ a._geocoder = new b.Geocoder();
228
  }
229
+ return a._geocoder;
230
  };
231
+ a.prototype._renderOverlays = function () {
232
  var d = this;
233
+ c.each(d.options.overlays.marker || [], function (h, g) {
234
  var f;
235
  try {
236
  f = new b.Marker({
237
  position: new b.LatLng(g.position[0], g.position[1]),
238
  map: d.map,
239
+ title: g.title || '',
240
  icon: g.icon || null
241
  });
242
+ b.event.addListener(f, 'click', function () {
243
+ var i, e = c.trim(g.info || '');
244
  if (e.length) {
245
  if (d.infowindow) {
246
+ d.infowindow.close();
247
  }
248
  i = new b.InfoWindow();
249
  i.setContent(e);
250
  i.open(d.map, f);
251
+ d.infowindow = i;
252
  }
253
+ });
254
+ } catch (j) {
255
+ }
256
  });
257
+ c.each(d.options.overlays.polyline || [], function (g, f) {
258
  var j = [];
259
+ c.each(f.path || [], function (i, e) {
260
+ if (e.length === 2) {
261
+ j.push(new b.LatLng(e[0], e[1]));
262
  }
263
  });
264
  if (j.length >= 2) {
266
  new b.Polyline({
267
  map: d.map,
268
  path: j,
269
+ strokeColor: f.color || '#000000',
270
  strokeOpacity: f.opacity || 1,
271
  strokeWeight: f.weight || 3
272
+ });
273
+ } catch (h) {
274
+ }
275
  }
276
  });
277
+ c.each(d.options.overlays.polygon || [], function (g, f) {
278
  var j = [];
279
+ c.each(f.path || [], function (i, e) {
280
+ if (e.length === 2) {
281
+ j.push(new b.LatLng(e[0], e[1]));
282
  }
283
  });
284
  if (j.length >= 2) {
286
  new b.Polygon({
287
  map: d.map,
288
  path: j,
289
+ strokeColor: f.stroke_color || '#000000',
290
  strokeOpacity: f.stroke_opacity || 1,
291
  strokeWeight: f.weight || 3,
292
  strokePosition: b.StrokePosition[f.position] || b.StrokePosition.CENTER,
293
+ fillColor: f.fill_color || '#000000',
294
  fillOpacity: f.fill_opacity || 0.3
295
+ });
296
+ } catch (h) {
297
+ }
298
  }
299
  });
300
+ c.each(d.options.overlays.rectangle || [], function (g, f) {
301
  var j = [];
302
+ c.each(f.path || [], function (i, e) {
303
+ if (e.length === 2) {
304
+ j.push(new b.LatLng(e[0], e[1]));
305
  }
306
  });
307
+ if (j.length === 2) {
308
  try {
309
  new b.Rectangle({
310
  map: d.map,
311
  bounds: new b.LatLngBounds(j[0], j[1]),
312
+ strokeColor: f.stroke_color || '#000000',
313
  strokeOpacity: f.stroke_opacity || 1,
314
  strokeWeight: f.weight || 3,
315
  strokePosition: b.StrokePosition[f.position] || b.StrokePosition.CENTER,
316
+ fillColor: f.fill_color || '#000000',
317
  fillOpacity: f.fill_opacity || 0.3
318
+ });
319
+ } catch (h) {
320
+ }
321
  }
322
  });
323
+ c.each(d.options.overlays.circle || [], function (g, f) {
324
  try {
325
  new b.Circle({
326
  map: d.map,
327
  center: new b.LatLng(f.path[0][0], f.path[0][1]),
328
  radius: parseFloat(f.path[1][0]),
329
+ strokeColor: f.stroke_color || '#000000',
330
  strokeOpacity: f.stroke_opacity || 1,
331
  strokeWeight: f.weight || 3,
332
  strokePosition: b.StrokePosition[f.position] || b.StrokePosition.CENTER,
333
+ fillColor: f.fill_color || '#000000',
334
  fillOpacity: f.fill_opacity || 0.3
335
+ });
336
+ } catch (h) {
337
+ }
338
+ });
339
  };
340
+ a.prototype._renderDirections = function () {
341
  var e = this,
342
  d = new b.DirectionsService();
343
+ c.each(e.options.directions || [], function (g, f) {
344
  d.route({
345
  origin: f.from,
346
  destination: f.to,
347
  travelMode: b.TravelMode[f.mode] || b.TravelMode.DRIVING
348
+ }, function (i, h) {
349
+ if (h === b.DirectionsStatus.OK) {
350
  new b.DirectionsRenderer({
351
  map: e.map,
352
  directions: i
353
+ });
354
  }
355
+ });
356
+ });
357
  };
358
+ a.prototype.render = function () {
359
  var d = this,
360
  j = d.options.layer || {},
361
  i = d.options.weather || {},
363
  k = null,
364
  f = d.options.adsense || {};
365
  if (!d.container) {
366
+ return false;
367
  }
368
  d.map = new b.Map(d.container, c.extend({
369
  center: new b.LatLng(d.options.lat || 48.1366069, d.options.lng || 11.577085099999977),
371
  mapTypeId: b.MapTypeId.ROADMAP
372
  }, d.options.map || {}));
373
  if (d.options.styles && d.options.styles.type) {
374
+ if (d.options.styles.type === -1) {
375
  try {
376
  d.map.setOptions({
377
  styles: d.options.styles.custom || []
378
+ });
379
+ } catch (h) {
380
+ }
381
  } else {
382
  if (a.styles[d.options.styles.type] !== undefined) {
383
  d.map.setOptions({
384
  styles: a.styles[d.options.styles.type]
385
+ });
386
  }
387
  }
388
  }
389
  if (d.options.address) {
390
  d._getGeocoder().geocode({
391
  address: d.options.address
392
+ }, function (l, e) {
393
+ if (e === b.GeocoderStatus.OK) {
394
+ d.map.setCenter(l[0].geometry.location);
395
  }
396
+ });
397
  }
398
  if (d.options.overlays) {
399
+ d._renderOverlays();
400
  }
401
  if (d.options.directions) {
402
+ d._renderDirections();
403
  }
404
  if (j.traffic) {
405
+ (new b.TrafficLayer()).setMap(d.map);
406
  }
407
  if (j.bicycling) {
408
+ (new b.BicyclingLayer()).setMap(d.map);
409
  }
410
  if (j.weather) {
411
  new b.weather.WeatherLayer({
412
  map: d.map,
413
+ temperatureUnits: b.weather.TemperatureUnit[i.temperatureUnits || 'CELSIUS'],
414
+ windSpeedUnits: b.weather.WindSpeedUnit[i.windSpeedUnits || 'METERS_PER_SECOND']
415
+ });
416
  }
417
  if (j.cloud) {
418
+ (new b.weather.CloudLayer()).setMap(d.map);
419
  }
420
  if (j.panoramio) {
421
  new b.panoramio.PanoramioLayer({
422
  map: d.map,
423
+ tag: g.tag || '',
424
+ userId: g.userId || ''
425
+ });
426
  }
427
+ if (j.adsense && intergeo_options.adsense.publisher_id && c.trim(intergeo_options.adsense.publisher_id) !== '') {
428
+ k = new b.adsense.AdUnit(document.createElement('div'), {
429
  map: d.map,
430
  visible: true,
431
  publisherId: intergeo_options.adsense.publisher_id,
432
+ backgroundColor: f.backgroundColor || '',
433
+ borderColor: f.borderColor || '',
434
+ textColor: f.urlColor || '',
435
+ titleColor: f.titleColor || '',
436
+ urlColor: f.textColor || ''
437
  });
438
  if (f.position && b.ControlPosition[f.position]) {
439
+ k.setPosition(b.ControlPosition[f.position]);
440
  }
441
  if (f.format && b.adsense.AdFormat[f.format]) {
442
+ k.setFormat(b.adsense.AdFormat[f.format]);
443
  }
444
  }
445
+ var containerID = c(this.container).attr('id');
446
  var __map = window.intergeo_maps_maps || [];
447
  __map[containerID] = d.map;
448
+ return true;
449
  };
450
+ c(document).ready(function () {
451
  var d, e, f = window.intergeo_maps || [];
452
  for (d = 0; d < f.length; d++) {
453
  e = new a(f[d].container, f[d].options);
454
+ e.render();
455
  }
456
+ });
457
 
458
  })(jQuery, google.maps);
languages/intergeo-en_US.mo DELETED
Binary file
languages/intergeo-en_US.po DELETED
@@ -1,1264 +0,0 @@
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: Thu Apr 07 2016 13:49:48 GMT+0530 (India Standard Time)\n"
7
- "Last-Translator: Eugene Manuilov <eugene@manuilov.org>\n"
8
- "Language-Team: Intergeo <eugene@manuilov.org>\n"
9
- "Language: Intergeo\n"
10
- "Plural-Forms: nplurals=2; plural=n != 1\n"
11
- "MIME-Version: 1.0\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
- "Content-Transfer-Encoding: 8bit\n"
14
- "X-Poedit-SourceCharset: utf-8\n"
15
- "X-Loco-Source-Locale: en_IN\n"
16
- "X-Poedit-Basepath: ./../../\n"
17
- "X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html__;esc_attr_e;esc_attr__\n"
18
- "X-Poedit-Language: English\n"
19
- "X-Poedit-Country: UNITED STATES\n"
20
- "X-Poedit-SearchPath-0: intergeo\n"
21
- "X-Loco-Parser: loco_parse_po\n"
22
- "X-Loco-Target-Locale: en_US\n"
23
- "X-Generator: Loco - https://localise.biz/"
24
-
25
- #: intergeo/index.php:31
26
- #: intergeo/templates/library/list.php:3
27
- #: intergeo/templates/iframe/form.php:7
28
- msgid "Maps"
29
- msgstr "Maps"
30
-
31
- #: intergeo/index.php:32
32
- msgid "Settings"
33
- msgstr "Settings"
34
-
35
- #: intergeo/index.php:81
36
- #, php-format
37
- msgid ""
38
- "All Maps API applications should load the Maps API using an API key (however "
39
- "it is still possible to use maps without API key). Using an API key enables "
40
- "you to monitor your application's Maps API usage, and ensures that Google "
41
- "can contact you about your application if necessary. If your application's "
42
- "Maps API usage exceeds the %sUsage Limits%s, you must load the Maps API "
43
- "using an API key in order to purchase additional quota. To create your API "
44
- "key:"
45
- msgstr ""
46
- "All Maps API applications should load the Maps API using an API key (however "
47
- "it is still possible to use maps without API key). Using an API key enables "
48
- "you to monitor your application's Maps API usage, and ensures that Google "
49
- "can contact you about your application if necessary. If your application's "
50
- "Maps API usage exceeds the %sUsage Limits%s, you must load the Maps API "
51
- "using an API key in order to purchase additional quota. To create your API "
52
- "key:"
53
-
54
- #: intergeo/index.php:84
55
- #, php-format
56
- msgid ""
57
- "Visit the APIs Console at %shttps://code.google.com/apis/console%s and log "
58
- "in with your Google Account."
59
- msgstr ""
60
- "Visit the APIs Console at %shttps://code.google.com/apis/console%s and log "
61
- "in with your Google Account."
62
-
63
- #: intergeo/index.php:85
64
- #, php-format
65
- msgid "Click the %sServices%s link from the left-hand menu."
66
- msgstr "Click the %sServices%s link from the left-hand menu."
67
-
68
- #: intergeo/index.php:86
69
- #, php-format
70
- msgid "Activate the %sGoogle Maps API v3%s service."
71
- msgstr "Activate the %sGoogle Maps API v3%s service."
72
-
73
- #: intergeo/index.php:87
74
- #, c-format
75
- msgid ""
76
- "Click the %1$sAPI Access%2$s link from the left-hand menu. Your API key is "
77
- "available from the %1$sAPI Access%2$s page, in the %1$Simple API Access%2$s "
78
- "section. Maps API applications use the %1$sKey for browser apps%2$s."
79
- msgstr ""
80
- "Click the %1$sAPI Access%2$s link from the left-hand menu. Your API key is "
81
- "available from the %1$sAPI Access%2$s page, in the %1$Simple API Access%2$s "
82
- "section. Maps API applications use the %1$sKey for browser apps%2$s."
83
-
84
- #: intergeo/index.php:94
85
- #, php-format
86
- msgid ""
87
- "Adding display ads to your map requires that you have an AdSense account "
88
- "enabled for AdSense for Content. If you don't yet have an AdSense account, "
89
- "%1$ssign up%3$s for one. Once you have done so (or if you already have an "
90
- "account) make sure you've also enabled the account with %2$sAdSense for "
91
- "Content%3$s."
92
- msgstr ""
93
- "Adding display ads to your map requires that you have an AdSense account "
94
- "enabled for AdSense for Content. If you don't yet have an AdSense account, "
95
- "%1$ssign up%3$s for one. Once you have done so (or if you already have an "
96
- "account) make sure you've also enabled the account with %2$sAdSense for "
97
- "Content%3$s."
98
-
99
- #: intergeo/index.php:96
100
- msgid ""
101
- "Once you have an Adsense for Content account, you will have received an "
102
- "AdSense for Content (AFC) publisher ID. This publisher ID is used to link "
103
- "any advertising shown to your AdSense account, allowing you to share in "
104
- "advertising revenue when a user clicks on one of the ads shown on your maps."
105
- msgstr ""
106
- "Once you have an Adsense for Content account, you will have received an "
107
- "AdSense for Content (AFC) publisher ID. This publisher ID is used to link "
108
- "any advertising shown to your AdSense account, allowing you to share in "
109
- "advertising revenue when a user clicks on one of the ads shown on your maps."
110
-
111
- #: intergeo/index.php:180
112
- msgid "Intergeo Maps"
113
- msgstr "Intergeo Maps"
114
-
115
- #: intergeo/index.php:217
116
- #: intergeo/templates/iframe/overlays.php:26
117
- #: intergeo/templates/iframe/overlays.php:49
118
- msgid "marker"
119
- msgstr "marker"
120
-
121
- #: intergeo/index.php:219
122
- msgid "Styles are broken. Please, fix it and try again."
123
- msgstr "Styles are broken. Please, fix it and try again."
124
-
125
- #: intergeo/index.php:220
126
- msgid "Direction was not found."
127
- msgstr "Maps"
128
-
129
- #: intergeo/index.php:235
130
- msgid "Insert into post"
131
- msgstr "Insert into post"
132
-
133
- #: intergeo/index.php:238
134
- msgid "Create the map"
135
- msgstr "Create the map"
136
-
137
- #: intergeo/index.php:253
138
- msgid "Update the map"
139
- msgstr "Update the map"
140
-
141
- #: intergeo/index.php:621
142
- msgid "The map has been updated successfully."
143
- msgstr "The map has been updated successfully."
144
-
145
- #: intergeo/index.php:622
146
- msgid "The map has been created successfully."
147
- msgstr "The map has been created successfully."
148
-
149
- #: intergeo/index.php:630
150
- msgid "The map updating failed."
151
- msgstr "The map updating failed."
152
-
153
- #: intergeo/index.php:631
154
- msgid "The map creation failed."
155
- msgstr "The map creation failed."
156
-
157
- #: intergeo/index.php:768
158
- msgid "Overview"
159
- msgstr "Overview"
160
-
161
- #: intergeo/index.php:771
162
- msgid ""
163
- "The library is a list to view all maps you have created in your system. The "
164
- "library is showing you 3x3 grid of maps' previews. You will see the same "
165
- "maps embedded into your posts at front end, as you see here. The library is "
166
- "paginated and if you have more than 9 maps, you will see pagination links "
167
- "under maps grid."
168
- msgstr ""
169
- "The library is a list to view all maps you have created in your system. The "
170
- "library is showing you 3x3 grid of maps' previews. You will see the same "
171
- "maps embedded into your posts at front end, as you see here. The library is "
172
- "paginated and if you have more than 9 maps, you will see pagination links "
173
- "under maps grid."
174
-
175
- #: intergeo/index.php:772
176
- msgid ""
177
- "To create a new map, click on \"Add New\" button next to the page title and "
178
- "map editor popup will appear. In case you want to edit a map, you can click "
179
- "on pencil icon in the right bottom corner of map preview box and edit popup "
180
- "window will appear."
181
- msgstr ""
182
- "To create a new map, click on \"Add New\" button next to the page title and "
183
- "map editor popup will appear. In case you want to edit a map, you can click "
184
- "on pencil icon in the right bottom corner of map preview box and edit popup "
185
- "window will appear."
186
-
187
- #: intergeo/index.php:773
188
- msgid ""
189
- "If you want to delete a map, click on the trash icon in the right bottom "
190
- "corner of a map and confirm your action. Pay attention that whole "
191
- "information about the map will be removed from the system, but all "
192
- "shortcodes will be left where you embed it. However these deprecated "
193
- "shortcodes won't be rendered anymore, so you don't have to worry about it "
194
- "while the plugin is enabled."
195
- msgstr ""
196
- "If you want to delete a map, click on the trash icon in the right bottom "
197
- "corner of a map and confirm your action. Pay attention that whole "
198
- "information about the map will be removed from the system, but all "
199
- "shortcodes will be left where you embed it. However these deprecated "
200
- "shortcodes won't be rendered anymore, so you don't have to worry about it "
201
- "while the plugin is enabled."
202
-
203
- #: intergeo/index.php:778
204
- msgid "Shortcodes"
205
- msgstr "Shortcodes"
206
-
207
- #: intergeo/index.php:781
208
- msgid ""
209
- "You can easily embed a map into your posts, pages, categories or tags "
210
- "descriptions and text widgets by copying shortcode which you can find in the "
211
- "input field of a map preview box."
212
- msgstr ""
213
- "You can easily embed a map into your posts, pages, categories or tags "
214
- "descriptions and text widgets by copying shortcode which you can find in the "
215
- "input field of a map preview box."
216
-
217
- #: intergeo/index.php:782
218
- msgid ""
219
- "To specify a certain address just type it inside a shortcode, and a map will "
220
- "be automatically centered at this place. Also each shortcode could be "
221
- "extended with custom attributes like width, height, style, zoom and hook. "
222
- "Use standard CSS values for such attributes as width, height and style. Type "
223
- "an integer between 0 and 19 for zoom attribute. You can use hook attribute "
224
- "to set up a filter hook which you can use in your custom plugin or theme to "
225
- "configure all options of a map."
226
- msgstr ""
227
- "To specify a certain address just type it inside a shortcode, and a map will "
228
- "be automatically centered at this place. Also each shortcode could be "
229
- "extended with custom attributes like width, height, style, zoom and hook. "
230
- "Use standard CSS values for such attributes as width, height and style. Type "
231
- "an integer between 0 and 19 for zoom attribute. You can use hook attribute "
232
- "to set up a filter hook which you can use in your custom plugin or theme to "
233
- "configure all options of a map."
234
-
235
- #: intergeo/index.php:841
236
- msgid "The map was deleted successfully."
237
- msgstr "The map was deleted successfully."
238
-
239
- #: intergeo/templates/library/list.php:4
240
- msgid "Add New"
241
- msgstr "Add New"
242
-
243
- #: intergeo/templates/library/list.php:45
244
- msgid "Edit"
245
- msgstr "Edit"
246
-
247
- #: intergeo/templates/library/list.php:46
248
- msgid "Copy"
249
- msgstr "Copy"
250
-
251
- #: intergeo/templates/library/list.php:47
252
- msgid "Delete"
253
- msgstr "Delete"
254
-
255
- #: intergeo/templates/library/list.php:81
256
- msgid "You do not have created maps. Start adding it by clicking \"Add New\" button."
257
- msgstr "You do not have created maps. Start adding it by clicking \"Add New\" button."
258
-
259
- #: intergeo/templates/iframe/layers.php:1
260
- msgid "Layers"
261
- msgstr "Layers"
262
-
263
- #: intergeo/templates/iframe/layers.php:4
264
- msgid "Traffic layer"
265
- msgstr "Traffic layer"
266
-
267
- #: intergeo/templates/iframe/layers.php:11
268
- #: intergeo/templates/iframe/layers.php:27
269
- #: intergeo/templates/iframe/layers.php:103
270
- #: intergeo/templates/iframe/controls.php:12
271
- #: intergeo/templates/iframe/controls.php:86
272
- #: intergeo/templates/iframe/controls.php:148
273
- #: intergeo/templates/iframe/controls.php:210
274
- #: intergeo/templates/iframe/controls.php:311
275
- #: intergeo/templates/iframe/controls.php:373
276
- #: intergeo/templates/iframe/controls.php:435
277
- msgid "Enabled"
278
- msgstr "Enabled"
279
-
280
- #: intergeo/templates/iframe/layers.php:15
281
- #, php-format
282
- msgid ""
283
- "Allows you to add real-time traffic information (where supported) to your "
284
- "map. Traffic information is provided for the time at which the request is "
285
- "made. Consult %s this spreadsheet %s to determine traffic coverage support."
286
- msgstr ""
287
- "Allows you to add real-time traffic information (where supported) to your "
288
- "map. Traffic information is provided for the time at which the request is "
289
- "made. Consult %s this spreadsheet %s to determine traffic coverage support."
290
-
291
- #: intergeo/templates/iframe/layers.php:20
292
- msgid "Bicycling layer"
293
- msgstr "Bicycling layer"
294
-
295
- #: intergeo/templates/iframe/layers.php:31
296
- msgid ""
297
- "Allows you to add bicycle information to your map. It renders a layer of "
298
- "bike paths, suggested bike routes and other overlays specific to bicycling "
299
- "usage on top of the given map. Additionally, the layer alters the style of "
300
- "the base map itself to emphasize streets supporting bicycle routes and de-"
301
- "emphasize streets inappropriate for bicycles."
302
- msgstr ""
303
- "Allows you to add bicycle information to your map. It renders a layer of "
304
- "bike paths, suggested bike routes and other overlays specific to bicycling "
305
- "usage on top of the given map. Additionally, the layer alters the style of "
306
- "the base map itself to emphasize streets supporting bicycle routes and de-"
307
- "emphasize streets inappropriate for bicycles."
308
-
309
- #: intergeo/templates/iframe/layers.php:36
310
- msgid "Weather & Cloud layers"
311
- msgstr "Weather & Cloud layers"
312
-
313
- #: intergeo/templates/iframe/layers.php:43
314
- msgid "Enabled cloud"
315
- msgstr "Enabled cloud"
316
-
317
- #: intergeo/templates/iframe/layers.php:47
318
- msgid ""
319
- "Allows you to add the display of cloud imagery on your map. Enabling the "
320
- "cloud layer will add cloud coverage imagery to your map, visible at low zoom "
321
- "levels."
322
- msgstr ""
323
- "Allows you to add the display of cloud imagery on your map. Enabling the "
324
- "cloud layer will add cloud coverage imagery to your map, visible at low zoom "
325
- "levels."
326
-
327
- #: intergeo/templates/iframe/layers.php:54
328
- msgid "Enabled weather"
329
- msgstr "Enabled weather"
330
-
331
- #: intergeo/templates/iframe/layers.php:58
332
- msgid ""
333
- "Allows you to add the display of weather data on your map. Enabling the "
334
- "weather layer will show current weather conditions from weather.com on your "
335
- "map, including icons that denote sun, clouds, rain and so on."
336
- msgstr ""
337
- "Allows you to add the display of weather data on your map. Enabling the "
338
- "weather layer will show current weather conditions from weather.com on your "
339
- "map, including icons that denote sun, clouds, rain and so on."
340
-
341
- #: intergeo/templates/iframe/layers.php:65
342
- msgid "temperature units"
343
- msgstr "temperature units"
344
-
345
- #: intergeo/templates/iframe/layers.php:68
346
- msgid "Celsius"
347
- msgstr "Celsius"
348
-
349
- #: intergeo/templates/iframe/layers.php:71
350
- msgid "Fahrenheit"
351
- msgstr "Fahrenheit"
352
-
353
- #: intergeo/templates/iframe/layers.php:78
354
- msgid "wind speed units"
355
- msgstr "wind speed units"
356
-
357
- #: intergeo/templates/iframe/layers.php:81
358
- msgid "kilometers per hour"
359
- msgstr "kilometers per hour"
360
-
361
- #: intergeo/templates/iframe/layers.php:84
362
- msgid "meters per second"
363
- msgstr "meters per second"
364
-
365
- #: intergeo/templates/iframe/layers.php:87
366
- msgid "miles per hour"
367
- msgstr "miles per hour"
368
-
369
- #: intergeo/templates/iframe/layers.php:96
370
- msgid "Panoramio layer"
371
- msgstr "Panoramio layer"
372
-
373
- #: intergeo/templates/iframe/layers.php:107
374
- msgid ""
375
- "Allows you to add photos from Panoramio as a layer to your map. It renders a "
376
- "layer of geotagged photo icons from Panoramio on the map as a series of "
377
- "large and small photo icons."
378
- msgstr ""
379
- "Allows you to add photos from Panoramio as a layer to your map. It renders a "
380
- "layer of geotagged photo icons from Panoramio on the map as a series of "
381
- "large and small photo icons."
382
-
383
- #: intergeo/templates/iframe/layers.php:111
384
- msgid "Restricting photos by tag"
385
- msgstr "Restricting photos by tag"
386
-
387
- #: intergeo/templates/iframe/layers.php:115
388
- msgid ""
389
- "Allows you to restrict the set of photos to display on the map to those "
390
- "matching a certain textual tag."
391
- msgstr ""
392
- "Allows you to restrict the set of photos to display on the map to those "
393
- "matching a certain textual tag."
394
-
395
- #: intergeo/templates/iframe/layers.php:119
396
- msgid "Restricting photos by user id"
397
- msgstr "Restricting photos by user id"
398
-
399
- #: intergeo/templates/iframe/layers.php:123
400
- msgid ""
401
- "Allows you to restrict the set of photos to display on the map to those "
402
- "matching a particular user."
403
- msgstr ""
404
- "Allows you to restrict the set of photos to display on the map to those "
405
- "matching a particular user."
406
-
407
- #: intergeo/templates/iframe/form.php:34
408
- msgid "The center of the map"
409
- msgstr "The center of the map"
410
-
411
- #: intergeo/templates/iframe/form.php:37
412
- msgid "Go to address"
413
- msgstr "Go to address"
414
-
415
- #: intergeo/templates/iframe/overlays.php:1
416
- msgid "Overlays"
417
- msgstr "Overlays"
418
-
419
- #: intergeo/templates/iframe/overlays.php:5
420
- msgid ""
421
- "Drawing tools allows you to add overlays over the map. You can add markers, "
422
- "polylines, polygons, circles and rectangles. To enable drawing tools just "
423
- "put a tick in the checkbox below."
424
- msgstr ""
425
- "Drawing tools allows you to add overlays over the map. You can add markers, "
426
- "polylines, polygons, circles and rectangles. To enable drawing tools just "
427
- "put a tick in the checkbox below."
428
-
429
- #: intergeo/templates/iframe/overlays.php:8
430
- msgid "To delete a marker, just double click on it and an item will be removed."
431
- msgstr "To delete a marker, just double click on it and an item will be removed."
432
-
433
- #: intergeo/templates/iframe/overlays.php:16
434
- msgid "Enable drawing tools"
435
- msgstr "Enable drawing tools"
436
-
437
- #: intergeo/templates/iframe/overlays.php:34
438
- #: intergeo/templates/iframe/overlays.php:60
439
- msgid "Delete marker"
440
- msgstr "Delete marker"
441
-
442
- #: intergeo/templates/iframe/overlays.php:35
443
- #: intergeo/templates/iframe/overlays.php:61
444
- msgid "Edit marker"
445
- msgstr "Edit marker"
446
-
447
- #: intergeo/templates/iframe/overlays.php:41
448
- msgid "Markers"
449
- msgstr "Markers"
450
-
451
- #: intergeo/templates/iframe/overlays.php:74
452
- #: intergeo/templates/iframe/overlays.php:102
453
- msgid "polyline"
454
- msgstr "polyline"
455
-
456
- #: intergeo/templates/iframe/overlays.php:82
457
- #: intergeo/templates/iframe/overlays.php:110
458
- msgid "Delete polyline"
459
- msgstr "Delete polyline"
460
-
461
- #: intergeo/templates/iframe/overlays.php:83
462
- #: intergeo/templates/iframe/overlays.php:111
463
- msgid "Edit polyline"
464
- msgstr "Edit polyline"
465
-
466
- #: intergeo/templates/iframe/overlays.php:90
467
- msgid "Polylines"
468
- msgstr "Polylines"
469
-
470
- #: intergeo/templates/iframe/overlays.php:126
471
- #: intergeo/templates/iframe/overlays.php:171
472
- msgid "rectangle"
473
- msgstr "Maps"
474
-
475
- #: intergeo/templates/iframe/overlays.php:137
476
- #: intergeo/templates/iframe/overlays.php:182
477
- #: intergeo/templates/iframe/overlays.php:210
478
- msgid "Delete rectangle"
479
- msgstr "Delete rectangle"
480
-
481
- #: intergeo/templates/iframe/overlays.php:138
482
- #: intergeo/templates/iframe/overlays.php:183
483
- #: intergeo/templates/iframe/overlays.php:211
484
- msgid "Edit rectangle"
485
- msgstr "Edit rectangle"
486
-
487
- #: intergeo/templates/iframe/overlays.php:146
488
- msgid "Rectangles"
489
- msgstr "Rectangles"
490
-
491
- #: intergeo/templates/iframe/overlays.php:199
492
- #: intergeo/templates/iframe/overlays.php:244
493
- msgid "circle"
494
- msgstr "circle"
495
-
496
- #: intergeo/templates/iframe/overlays.php:219
497
- msgid "Circles"
498
- msgstr "Circles"
499
-
500
- #: intergeo/templates/iframe/overlays.php:255
501
- msgid "Delete circle"
502
- msgstr "Delete circle"
503
-
504
- #: intergeo/templates/iframe/overlays.php:256
505
- msgid "Edit circle"
506
- msgstr "Edit circle"
507
-
508
- #: intergeo/templates/iframe/overlays.php:272
509
- #: intergeo/templates/iframe/overlays.php:317
510
- msgid "polygon"
511
- msgstr "polygon"
512
-
513
- #: intergeo/templates/iframe/overlays.php:283
514
- #: intergeo/templates/iframe/overlays.php:328
515
- msgid "Delete polygon"
516
- msgstr "Delete polygon"
517
-
518
- #: intergeo/templates/iframe/overlays.php:284
519
- #: intergeo/templates/iframe/overlays.php:329
520
- msgid "Edit polygon"
521
- msgstr "Edit polygon"
522
-
523
- #: intergeo/templates/iframe/overlays.php:292
524
- msgid "Polygons"
525
- msgstr "Polygons"
526
-
527
- #: intergeo/templates/iframe/positioning.php:1
528
- msgid "Positioning & Zooming"
529
- msgstr "Positioning & Zooming"
530
-
531
- #: intergeo/templates/iframe/positioning.php:5
532
- msgid ""
533
- "If you want to set specific map position and certain level of zooming, just "
534
- "set it up on preview map and these settings will be remembered at published "
535
- "map."
536
- msgstr ""
537
- "If you want to set specific map position and certain level of zooming, just "
538
- "set it up on preview map and these settings will be remembered at published "
539
- "map."
540
-
541
- #: intergeo/templates/iframe/positioning.php:9
542
- msgid "Positioning"
543
- msgstr "Positioning"
544
-
545
- #: intergeo/templates/iframe/positioning.php:12
546
- msgid "The initial map type"
547
- msgstr "The initial map type"
548
-
549
- #: intergeo/templates/iframe/positioning.php:15
550
- #: intergeo/templates/iframe/controls.php:280
551
- msgid "Road map"
552
- msgstr "Road map"
553
-
554
- #: intergeo/templates/iframe/positioning.php:18
555
- #: intergeo/templates/iframe/controls.php:286
556
- msgid "Terrain"
557
- msgstr "Terrain"
558
-
559
- #: intergeo/templates/iframe/positioning.php:21
560
- #: intergeo/templates/iframe/controls.php:292
561
- msgid "Satellite"
562
- msgstr "Satellite"
563
-
564
- #: intergeo/templates/iframe/positioning.php:24
565
- #: intergeo/templates/iframe/controls.php:298
566
- msgid "Hybrid"
567
- msgstr "Hybrid"
568
-
569
- #: intergeo/templates/iframe/positioning.php:33
570
- msgid "Draggable map"
571
- msgstr "Draggable map"
572
-
573
- #: intergeo/templates/iframe/positioning.php:37
574
- msgid ""
575
- "If unchecked prevents the map from being dragged. Dragging is enabled by "
576
- "default."
577
- msgstr ""
578
- "If unchecked prevents the map from being dragged. Dragging is enabled by "
579
- "default."
580
-
581
- #: intergeo/templates/iframe/positioning.php:42
582
- msgid "Zooming"
583
- msgstr "Zooming"
584
-
585
- #: intergeo/templates/iframe/positioning.php:46
586
- msgid "Zoom range values"
587
- msgstr "Zoom range values"
588
-
589
- #: intergeo/templates/iframe/positioning.php:59
590
- msgid ""
591
- "The maximum (19) and minimum (0) zoom levels which could be displayed on the "
592
- "map."
593
- msgstr ""
594
- "The maximum (19) and minimum (0) zoom levels which could be displayed on the "
595
- "map."
596
-
597
- #: intergeo/templates/iframe/positioning.php:66
598
- msgid "Scrollwheel zooming"
599
- msgstr "Scrollwheel zooming"
600
-
601
- #: intergeo/templates/iframe/positioning.php:70
602
- msgid "Determines if scrollwheel zooming is enabled on the map."
603
- msgstr "Determines if scrollwheel zooming is enabled on the map."
604
-
605
- #: intergeo/templates/iframe/positioning.php:75
606
- msgid "Preview settings"
607
- msgstr "Preview settings"
608
-
609
- #: intergeo/templates/iframe/positioning.php:81
610
- msgid "Lock preview"
611
- msgstr "Lock preview"
612
-
613
- #: intergeo/templates/iframe/positioning.php:85
614
- msgid ""
615
- "Lock preview map to preserve changing of the viewport bounds and zoom level. "
616
- "Locking affects only on preview map and won't lock embedded map."
617
- msgstr ""
618
- "Lock preview map to preserve changing of the viewport bounds and zoom level. "
619
- "Locking affects only on preview map and won't lock embedded map."
620
-
621
- #: intergeo/templates/iframe/positioning.php:91
622
- msgid "Show map center"
623
- msgstr "Show map center"
624
-
625
- #: intergeo/templates/iframe/positioning.php:95
626
- msgid ""
627
- "Show small red circle at the center of the map. It helps you to centralize "
628
- "the map bounds. Note that this option won't be displayed at frontend."
629
- msgstr ""
630
- "Show small red circle at the center of the map. It helps you to centralize "
631
- "the map bounds. Note that this option won't be displayed at frontend."
632
-
633
- #: intergeo/templates/iframe/styles.php:1
634
- #: intergeo/templates/iframe/adsense.php:128
635
- msgid "Styles"
636
- msgstr "Styles"
637
-
638
- #: intergeo/templates/iframe/styles.php:4
639
- msgid "Container's Styles"
640
- msgstr "Container's Styles"
641
-
642
- #: intergeo/templates/iframe/styles.php:7
643
- msgid "Width"
644
- msgstr "Width"
645
-
646
- #: intergeo/templates/iframe/styles.php:11
647
- msgid "Height"
648
- msgstr "Height"
649
-
650
- #: intergeo/templates/iframe/styles.php:15
651
- msgid "Extra Styles"
652
- msgstr "Extra Styles"
653
-
654
- #: intergeo/templates/iframe/styles.php:21
655
- msgid "Predefined Map Styles"
656
- msgstr "Predefined Map Styles"
657
-
658
- #: intergeo/templates/iframe/styles.php:66
659
- msgid "Custom Map Styles"
660
- msgstr "Custom Map Styles"
661
-
662
- #: intergeo/templates/iframe/styles.php:72
663
- msgid "Use custom styles"
664
- msgstr "Use custom styles"
665
-
666
- #: intergeo/templates/iframe/styles.php:79
667
- #, php-format
668
- msgid ""
669
- "Creating styles by hand and testing your code to see how they look is "
670
- "potentially time-consuming. Instead, you can use the %sStyled Map Wizard%s "
671
- "to set up the JSON for your map's styles."
672
- msgstr ""
673
- "Creating styles by hand and testing your code to see how they look is "
674
- "potentially time-consuming. Instead, you can use the %sStyled Map Wizard%s "
675
- "to set up the JSON for your map's styles."
676
-
677
- #: intergeo/templates/iframe/controls.php:2
678
- msgid "Controls"
679
- msgstr "Controls"
680
-
681
- #: intergeo/templates/iframe/controls.php:5
682
- msgid "Zoom control"
683
- msgstr "Zoom control"
684
-
685
- #: intergeo/templates/iframe/controls.php:16
686
- msgid ""
687
- "The Zoom control displays a slider (for large maps) or small \"+/-\" buttons "
688
- "(for small maps) to control the zoom level of the map. This control appears "
689
- "by default in the top left corner of the map on non-touch devices or in the "
690
- "bottom left corner on touch devices."
691
- msgstr ""
692
- "The Zoom control displays a slider (for large maps) or small \"+/-\" buttons "
693
- "(for small maps) to control the zoom level of the map. This control appears "
694
- "by default in the top left corner of the map on non-touch devices or in the "
695
- "bottom left corner on touch devices."
696
-
697
- #: intergeo/templates/iframe/controls.php:22
698
- #: intergeo/templates/iframe/controls.php:96
699
- #: intergeo/templates/iframe/controls.php:158
700
- #: intergeo/templates/iframe/controls.php:220
701
- #: intergeo/templates/iframe/controls.php:321
702
- #: intergeo/templates/iframe/controls.php:383
703
- #: intergeo/templates/iframe/adsense.php:84
704
- msgid "default position"
705
- msgstr "default position"
706
-
707
- #: intergeo/templates/iframe/controls.php:24
708
- #: intergeo/templates/iframe/controls.php:98
709
- #: intergeo/templates/iframe/controls.php:160
710
- #: intergeo/templates/iframe/controls.php:222
711
- #: intergeo/templates/iframe/controls.php:323
712
- #: intergeo/templates/iframe/controls.php:385
713
- #: intergeo/templates/iframe/adsense.php:86
714
- msgid "Top Left"
715
- msgstr "Top Left"
716
-
717
- #: intergeo/templates/iframe/controls.php:27
718
- #: intergeo/templates/iframe/controls.php:101
719
- #: intergeo/templates/iframe/controls.php:163
720
- #: intergeo/templates/iframe/controls.php:225
721
- #: intergeo/templates/iframe/controls.php:326
722
- #: intergeo/templates/iframe/controls.php:388
723
- #: intergeo/templates/iframe/adsense.php:89
724
- msgid "Top Center"
725
- msgstr "Top Center"
726
-
727
- #: intergeo/templates/iframe/controls.php:30
728
- #: intergeo/templates/iframe/controls.php:104
729
- #: intergeo/templates/iframe/controls.php:166
730
- #: intergeo/templates/iframe/controls.php:228
731
- #: intergeo/templates/iframe/controls.php:329
732
- #: intergeo/templates/iframe/controls.php:391
733
- #: intergeo/templates/iframe/adsense.php:92
734
- msgid "Top Right"
735
- msgstr "Top Right"
736
-
737
- #: intergeo/templates/iframe/controls.php:33
738
- #: intergeo/templates/iframe/controls.php:107
739
- #: intergeo/templates/iframe/controls.php:169
740
- #: intergeo/templates/iframe/controls.php:231
741
- #: intergeo/templates/iframe/controls.php:332
742
- #: intergeo/templates/iframe/controls.php:394
743
- #: intergeo/templates/iframe/adsense.php:95
744
- msgid "Right Top"
745
- msgstr "Right Top"
746
-
747
- #: intergeo/templates/iframe/controls.php:36
748
- #: intergeo/templates/iframe/controls.php:110
749
- #: intergeo/templates/iframe/controls.php:172
750
- #: intergeo/templates/iframe/controls.php:234
751
- #: intergeo/templates/iframe/controls.php:335
752
- #: intergeo/templates/iframe/controls.php:397
753
- #: intergeo/templates/iframe/adsense.php:98
754
- msgid "Right Center"
755
- msgstr "Right Center"
756
-
757
- #: intergeo/templates/iframe/controls.php:39
758
- #: intergeo/templates/iframe/controls.php:113
759
- #: intergeo/templates/iframe/controls.php:175
760
- #: intergeo/templates/iframe/controls.php:237
761
- #: intergeo/templates/iframe/controls.php:338
762
- #: intergeo/templates/iframe/controls.php:400
763
- #: intergeo/templates/iframe/adsense.php:101
764
- msgid "Right Bottom"
765
- msgstr "Right Bottom"
766
-
767
- #: intergeo/templates/iframe/controls.php:42
768
- #: intergeo/templates/iframe/controls.php:116
769
- #: intergeo/templates/iframe/controls.php:178
770
- #: intergeo/templates/iframe/controls.php:240
771
- #: intergeo/templates/iframe/controls.php:341
772
- #: intergeo/templates/iframe/controls.php:403
773
- #: intergeo/templates/iframe/adsense.php:104
774
- msgid "Bottom Right"
775
- msgstr "Bottom Right"
776
-
777
- #: intergeo/templates/iframe/controls.php:45
778
- #: intergeo/templates/iframe/controls.php:119
779
- #: intergeo/templates/iframe/controls.php:181
780
- #: intergeo/templates/iframe/controls.php:243
781
- #: intergeo/templates/iframe/controls.php:344
782
- #: intergeo/templates/iframe/controls.php:406
783
- #: intergeo/templates/iframe/adsense.php:107
784
- msgid "Bottom Center"
785
- msgstr "Bottom Center"
786
-
787
- #: intergeo/templates/iframe/controls.php:48
788
- #: intergeo/templates/iframe/controls.php:122
789
- #: intergeo/templates/iframe/controls.php:184
790
- #: intergeo/templates/iframe/controls.php:246
791
- #: intergeo/templates/iframe/controls.php:347
792
- #: intergeo/templates/iframe/controls.php:409
793
- #: intergeo/templates/iframe/adsense.php:110
794
- msgid "Bottom Left"
795
- msgstr "Bottom Left"
796
-
797
- #: intergeo/templates/iframe/controls.php:51
798
- #: intergeo/templates/iframe/controls.php:125
799
- #: intergeo/templates/iframe/controls.php:187
800
- #: intergeo/templates/iframe/controls.php:249
801
- #: intergeo/templates/iframe/controls.php:350
802
- #: intergeo/templates/iframe/controls.php:412
803
- #: intergeo/templates/iframe/adsense.php:113
804
- msgid "Left Bottom"
805
- msgstr "Left Bottom"
806
-
807
- #: intergeo/templates/iframe/controls.php:54
808
- #: intergeo/templates/iframe/controls.php:128
809
- #: intergeo/templates/iframe/controls.php:190
810
- #: intergeo/templates/iframe/controls.php:252
811
- #: intergeo/templates/iframe/controls.php:353
812
- #: intergeo/templates/iframe/controls.php:415
813
- #: intergeo/templates/iframe/adsense.php:116
814
- msgid "Left Center"
815
- msgstr "Left Center"
816
-
817
- #: intergeo/templates/iframe/controls.php:57
818
- #: intergeo/templates/iframe/controls.php:131
819
- #: intergeo/templates/iframe/controls.php:193
820
- #: intergeo/templates/iframe/controls.php:255
821
- #: intergeo/templates/iframe/controls.php:356
822
- #: intergeo/templates/iframe/controls.php:418
823
- #: intergeo/templates/iframe/adsense.php:119
824
- msgid "Left Top"
825
- msgstr "Left Top"
826
-
827
- #: intergeo/templates/iframe/controls.php:64
828
- #: intergeo/templates/iframe/controls.php:262
829
- msgid "default style"
830
- msgstr "default style"
831
-
832
- #: intergeo/templates/iframe/controls.php:67
833
- msgid "small"
834
- msgstr "small"
835
-
836
- #: intergeo/templates/iframe/controls.php:70
837
- msgid "large"
838
- msgstr "large"
839
-
840
- #: intergeo/templates/iframe/controls.php:79
841
- msgid "Pan control"
842
- msgstr "Pan control"
843
-
844
- #: intergeo/templates/iframe/controls.php:90
845
- msgid ""
846
- "The Pan control displays buttons for panning the map. This control appears "
847
- "by default in the top left corner of the map on non-touch devices. The Pan "
848
- "control also allows you to rotate 45° imagery, if available."
849
- msgstr ""
850
- "The Pan control displays buttons for panning the map. This control appears "
851
- "by default in the top left corner of the map on non-touch devices. The Pan "
852
- "control also allows you to rotate 45° imagery, if available."
853
-
854
- #: intergeo/templates/iframe/controls.php:141
855
- msgid "Scale control"
856
- msgstr "Scale control"
857
-
858
- #: intergeo/templates/iframe/controls.php:152
859
- msgid ""
860
- "The Scale control displays a map scale element. This control is not enabled "
861
- "by default."
862
- msgstr ""
863
- "The Scale control displays a map scale element. This control is not enabled "
864
- "by default."
865
-
866
- #: intergeo/templates/iframe/controls.php:203
867
- msgid "MapType control"
868
- msgstr "MapType control"
869
-
870
- #: intergeo/templates/iframe/controls.php:214
871
- msgid ""
872
- "The MapType control lets the user toggle between map types (such as roadmap "
873
- "and satellite). This control appears by default in the top right corner of "
874
- "the map."
875
- msgstr ""
876
- "The MapType control lets the user toggle between map types (such as roadmap "
877
- "and satellite). This control appears by default in the top right corner of "
878
- "the map."
879
-
880
- #: intergeo/templates/iframe/controls.php:265
881
- msgid "dropdown menu"
882
- msgstr "dropdown menu"
883
-
884
- #: intergeo/templates/iframe/controls.php:268
885
- msgid "horizontal bar"
886
- msgstr "horizontal bar"
887
-
888
- #: intergeo/templates/iframe/controls.php:275
889
- msgid "Map types:"
890
- msgstr "Map types:"
891
-
892
- #: intergeo/templates/iframe/controls.php:278
893
- msgid "This map type displays a normal street map."
894
- msgstr "This map type displays a normal street map."
895
-
896
- #: intergeo/templates/iframe/controls.php:284
897
- msgid ""
898
- "This map type displays maps with physical features such as terrain and "
899
- "vegetation."
900
- msgstr ""
901
- "This map type displays maps with physical features such as terrain and "
902
- "vegetation."
903
-
904
- #: intergeo/templates/iframe/controls.php:290
905
- msgid "This map type displays satellite images."
906
- msgstr "This map type displays satellite images."
907
-
908
- #: intergeo/templates/iframe/controls.php:296
909
- msgid ""
910
- "This map type displays a transparent layer of major streets on satellite "
911
- "images."
912
- msgstr ""
913
- "This map type displays a transparent layer of major streets on satellite "
914
- "images."
915
-
916
- #: intergeo/templates/iframe/controls.php:304
917
- msgid "Street View control"
918
- msgstr "Street View control"
919
-
920
- #: intergeo/templates/iframe/controls.php:315
921
- msgid ""
922
- "The Street View control contains a Pegman icon which can be dragged onto the "
923
- "map to enable Street View. This control appears by default in the top left "
924
- "corner of the map."
925
- msgstr ""
926
- "The Street View control contains a Pegman icon which can be dragged onto the "
927
- "map to enable Street View. This control appears by default in the top left "
928
- "corner of the map."
929
-
930
- #: intergeo/templates/iframe/controls.php:366
931
- msgid "Rotate control"
932
- msgstr "Rotate control"
933
-
934
- #: intergeo/templates/iframe/controls.php:377
935
- msgid ""
936
- "The Rotate control contains a small circular icon which allows you to rotate "
937
- "maps containing oblique imagery. This control appears by default in the top "
938
- "left corner of the map."
939
- msgstr ""
940
- "The Rotate control contains a small circular icon which allows you to rotate "
941
- "maps containing oblique imagery. This control appears by default in the top "
942
- "left corner of the map."
943
-
944
- #: intergeo/templates/iframe/controls.php:428
945
- msgid "Overview Map control"
946
- msgstr "Overview Map control"
947
-
948
- #: intergeo/templates/iframe/controls.php:439
949
- msgid ""
950
- "The Overview Map control displays a thumbnail overview map reflecting the "
951
- "current map viewport within a wider area. This control appears by default in "
952
- "the bottom right corner of the map, and is by default shown in its collapsed "
953
- "state."
954
- msgstr ""
955
- "The Overview Map control displays a thumbnail overview map reflecting the "
956
- "current map viewport within a wider area. This control appears by default in "
957
- "the bottom right corner of the map, and is by default shown in its collapsed "
958
- "state."
959
-
960
- #: intergeo/templates/iframe/controls.php:445
961
- msgid "Opened"
962
- msgstr "Opened"
963
-
964
- #: intergeo/templates/iframe/popups.php:5
965
- msgid "Go To Address"
966
- msgstr "Go To Address"
967
-
968
- #: intergeo/templates/iframe/popups.php:10
969
- msgid "Type an address you want to go to"
970
- msgstr "Type an address you want to go to"
971
-
972
- #: intergeo/templates/iframe/popups.php:13
973
- msgid "Go"
974
- msgstr "Go"
975
-
976
- #: intergeo/templates/iframe/popups.php:24
977
- msgid "Marker Options"
978
- msgstr "Marker Options"
979
-
980
- #: intergeo/templates/iframe/popups.php:31
981
- #: intergeo/templates/iframe/popups.php:32
982
- msgid "Enter title"
983
- msgstr "Enter title"
984
-
985
- #: intergeo/templates/iframe/popups.php:39
986
- #: intergeo/templates/iframe/popups.php:40
987
- msgid "Enter icon URL"
988
- msgstr "Enter icon URL"
989
-
990
- #: intergeo/templates/iframe/popups.php:47
991
- #: intergeo/templates/iframe/popups.php:48
992
- msgid "Enter html for info window"
993
- msgstr "Enter html for info window"
994
-
995
- #: intergeo/templates/iframe/popups.php:54
996
- #: intergeo/templates/iframe/popups.php:89
997
- #: intergeo/templates/iframe/popups.php:157
998
- msgid "Update"
999
- msgstr "Update"
1000
-
1001
- #: intergeo/templates/iframe/popups.php:65
1002
- msgid "Polyline Options"
1003
- msgstr "Polyline Options"
1004
-
1005
- #: intergeo/templates/iframe/popups.php:72
1006
- #: intergeo/templates/iframe/popups.php:73
1007
- #: intergeo/templates/iframe/popups.php:112
1008
- #: intergeo/templates/iframe/popups.php:113
1009
- msgid "Stroke weight in pixel"
1010
- msgstr "Stroke weight in pixel"
1011
-
1012
- #: intergeo/templates/iframe/popups.php:78
1013
- #: intergeo/templates/iframe/popups.php:79
1014
- #: intergeo/templates/iframe/popups.php:118
1015
- #: intergeo/templates/iframe/popups.php:119
1016
- msgid "Stroke opacity from 0.0 to 1.0"
1017
- msgstr "Stroke opacity from 0.0 to 1.0"
1018
-
1019
- #: intergeo/templates/iframe/popups.php:100
1020
- msgid "Polygon Options"
1021
- msgstr "Polygon Options"
1022
-
1023
- #: intergeo/templates/iframe/popups.php:105
1024
- msgid "Stroke options"
1025
- msgstr "Stroke options"
1026
-
1027
- #: intergeo/templates/iframe/popups.php:125
1028
- msgid "stroke position"
1029
- msgstr "stroke position"
1030
-
1031
- #: intergeo/templates/iframe/popups.php:126
1032
- msgid "center"
1033
- msgstr "center"
1034
-
1035
- #: intergeo/templates/iframe/popups.php:127
1036
- msgid "inside the object"
1037
- msgstr "inside the object"
1038
-
1039
- #: intergeo/templates/iframe/popups.php:128
1040
- msgid "outside the object"
1041
- msgstr "outside the object"
1042
-
1043
- #: intergeo/templates/iframe/popups.php:139
1044
- msgid "Fill options"
1045
- msgstr "Fill options"
1046
-
1047
- #: intergeo/templates/iframe/popups.php:146
1048
- #: intergeo/templates/iframe/popups.php:147
1049
- msgid "Fill opacity from 0.0 to 1.0"
1050
- msgstr "Fill opacity from 0.0 to 1.0"
1051
-
1052
- #: intergeo/templates/iframe/popups.php:168
1053
- msgid "Direction Options"
1054
- msgstr "Direction Options"
1055
-
1056
- #: intergeo/templates/iframe/popups.php:175
1057
- #: intergeo/templates/iframe/popups.php:176
1058
- msgid "The start location from which to calculate directions"
1059
- msgstr "The start location from which to calculate directions"
1060
-
1061
- #: intergeo/templates/iframe/popups.php:183
1062
- #: intergeo/templates/iframe/popups.php:184
1063
- msgid "The end location to which to calculate directions"
1064
- msgstr "The end location to which to calculate directions"
1065
-
1066
- #: intergeo/templates/iframe/popups.php:190
1067
- #: intergeo/templates/iframe/directions.php:60
1068
- msgid "via standard driving directions"
1069
- msgstr "via standard driving directions"
1070
-
1071
- #: intergeo/templates/iframe/popups.php:191
1072
- #: intergeo/templates/iframe/directions.php:50
1073
- msgid "via bicycle paths & preferred streets"
1074
- msgstr "via bicycle paths & preferred streets"
1075
-
1076
- #: intergeo/templates/iframe/popups.php:192
1077
- #: intergeo/templates/iframe/directions.php:53
1078
- msgid "via public transit routes"
1079
- msgstr "via public transit routes"
1080
-
1081
- #: intergeo/templates/iframe/popups.php:193
1082
- #: intergeo/templates/iframe/directions.php:56
1083
- msgid "via pedestrian paths & sidewalks"
1084
- msgstr "via pedestrian paths & sidewalks"
1085
-
1086
- #: intergeo/templates/iframe/popups.php:199
1087
- msgid "Save"
1088
- msgstr "Save"
1089
-
1090
- #: intergeo/templates/iframe/adsense.php:1
1091
- msgid "AdSense Integration"
1092
- msgstr "AdSense Integration"
1093
-
1094
- #: intergeo/templates/iframe/adsense.php:6
1095
- #, php-format
1096
- msgid ""
1097
- "To make AdSense working on your maps, you have to setup your publisher ID. "
1098
- "You can do it at the %ssettings page%s."
1099
- msgstr ""
1100
- "To make AdSense working on your maps, you have to setup your publisher ID. "
1101
- "You can do it at the %ssettings page%s."
1102
-
1103
- #: intergeo/templates/iframe/adsense.php:24
1104
- msgid "default format"
1105
- msgstr "default format"
1106
-
1107
- #: intergeo/templates/iframe/adsense.php:27
1108
- msgid "Leaderboard"
1109
- msgstr "Leaderboard"
1110
-
1111
- #: intergeo/templates/iframe/adsense.php:30
1112
- msgid "Banner"
1113
- msgstr "Banner"
1114
-
1115
- #: intergeo/templates/iframe/adsense.php:33
1116
- msgid "Half Banner"
1117
- msgstr "Half Banner"
1118
-
1119
- #: intergeo/templates/iframe/adsense.php:36
1120
- msgid "Skyscraper"
1121
- msgstr "Skyscraper"
1122
-
1123
- #: intergeo/templates/iframe/adsense.php:39
1124
- msgid "Wide Skyscraper"
1125
- msgstr "Wide Skyscraper"
1126
-
1127
- #: intergeo/templates/iframe/adsense.php:42
1128
- msgid "Vertical Banner"
1129
- msgstr "Vertical Banner"
1130
-
1131
- #: intergeo/templates/iframe/adsense.php:45
1132
- msgid "Button"
1133
- msgstr "Button"
1134
-
1135
- #: intergeo/templates/iframe/adsense.php:48
1136
- msgid "Small Square"
1137
- msgstr "Small Square"
1138
-
1139
- #: intergeo/templates/iframe/adsense.php:51
1140
- msgid "Square"
1141
- msgstr "Square"
1142
-
1143
- #: intergeo/templates/iframe/adsense.php:54
1144
- msgid "Small Rectangle"
1145
- msgstr "Small Rectangle"
1146
-
1147
- #: intergeo/templates/iframe/adsense.php:57
1148
- msgid "Medium Rectangle"
1149
- msgstr "Medium Rectangle"
1150
-
1151
- #: intergeo/templates/iframe/adsense.php:60
1152
- msgid "Large Rectangle"
1153
- msgstr "Large Rectangle"
1154
-
1155
- #: intergeo/templates/iframe/adsense.php:63
1156
- msgid "Small Vertical Link Unit"
1157
- msgstr "Small Vertical Link Unit"
1158
-
1159
- #: intergeo/templates/iframe/adsense.php:66
1160
- msgid "Medium Vertical Link Unit"
1161
- msgstr "Medium Vertical Link Unit"
1162
-
1163
- #: intergeo/templates/iframe/adsense.php:69
1164
- msgid "Large Vertical Link Unit"
1165
- msgstr "Large Vertical Link Unit"
1166
-
1167
- #: intergeo/templates/iframe/adsense.php:72
1168
- msgid "Extra Large Vertical Link Unit"
1169
- msgstr "Extra Large Vertical Link Unit"
1170
-
1171
- #: intergeo/templates/iframe/adsense.php:75
1172
- msgid "Small Horizontal Link Unit"
1173
- msgstr "Small Horizontal Link Unit"
1174
-
1175
- #: intergeo/templates/iframe/adsense.php:78
1176
- msgid "Large Horizontal Link Unit"
1177
- msgstr "Large Horizontal Link Unit"
1178
-
1179
- #: intergeo/templates/iframe/adsense.php:131
1180
- msgid "Background color"
1181
- msgstr "Background color"
1182
-
1183
- #: intergeo/templates/iframe/adsense.php:134
1184
- #: intergeo/templates/iframe/adsense.php:140
1185
- #: intergeo/templates/iframe/adsense.php:146
1186
- #: intergeo/templates/iframe/adsense.php:152
1187
- #: intergeo/templates/iframe/adsense.php:158
1188
- msgid "Hex Value"
1189
- msgstr "Hex Value"
1190
-
1191
- #: intergeo/templates/iframe/adsense.php:137
1192
- msgid "Border color"
1193
- msgstr "Border color"
1194
-
1195
- #: intergeo/templates/iframe/adsense.php:143
1196
- msgid "Title color"
1197
- msgstr "Title color"
1198
-
1199
- #: intergeo/templates/iframe/adsense.php:149
1200
- msgid "Text color"
1201
- msgstr "Text color"
1202
-
1203
- #: intergeo/templates/iframe/adsense.php:155
1204
- msgid "URL color"
1205
- msgstr "URL color"
1206
-
1207
- #: intergeo/templates/iframe/directions.php:1
1208
- msgid "Directions"
1209
- msgstr "Directions"
1210
-
1211
- #: intergeo/templates/iframe/directions.php:5
1212
- msgid "To add a new direction just click the button below:"
1213
- msgstr "To add a new direction just click the button below:"
1214
-
1215
- #: intergeo/templates/iframe/directions.php:10
1216
- msgid "Add Direction"
1217
- msgstr "Add Direction"
1218
-
1219
- #: intergeo/templates/iframe/directions.php:16
1220
- #: intergeo/templates/iframe/directions.php:22
1221
- #: intergeo/templates/iframe/directions.php:43
1222
- msgid "from"
1223
- msgstr "from"
1224
-
1225
- #: intergeo/templates/iframe/directions.php:16
1226
- #: intergeo/templates/iframe/directions.php:22
1227
- #: intergeo/templates/iframe/directions.php:45
1228
- msgid "to"
1229
- msgstr "to"
1230
-
1231
- #: intergeo/templates/iframe/directions.php:29
1232
- #: intergeo/templates/iframe/directions.php:70
1233
- msgid "Delete direction"
1234
- msgstr "Delete direction"
1235
-
1236
- #: intergeo/templates/iframe/directions.php:30
1237
- #: intergeo/templates/iframe/directions.php:71
1238
- msgid "Edit direction"
1239
- msgstr "Edit direction"
1240
-
1241
- #: intergeo/templates/iframe/directions.php:35
1242
- msgid "Created directions"
1243
- msgstr "Created directions"
1244
-
1245
- msgid "AdSense Publisher Id"
1246
- msgstr "AdSense Publisher Id"
1247
-
1248
- msgid "Maps API Key"
1249
- msgstr "Maps API Key"
1250
-
1251
- msgid "To add a new direction just click the button below"
1252
- msgstr "To add a new direction just click the button below"
1253
-
1254
- msgid "Custom Layers are available in the PRO version"
1255
- msgstr "Custom Layers are available in the PRO version"
1256
-
1257
- msgid "Import Markers"
1258
- msgstr "Import Markers"
1259
-
1260
- msgid "Enabled ( Available in PRO )"
1261
- msgstr "Enabled ( Available in PRO )"
1262
-
1263
- msgid "Allows you to upload marker data to your map."
1264
- msgstr "Allows you to upload marker data to your map."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/intergeo-maps.pot ADDED
@@ -0,0 +1,1036 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2017 Themeisle
2
+ # This file is distributed under the GPL v2.0 or later.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Intergeo - Google Maps Plugin 2.0.0\n"
6
+ "Report-Msgid-Bugs-To: https://github.com/Codeinwp/intergeo-maps/issues\n"
7
+ "POT-Creation-Date: 2017-01-05 15:34:22+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=utf-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: Themeisle Translate Team <friends@themeisle.com>\n"
13
+ "Language-Team: Themeisle Translate <friends@themeisle.com>\n"
14
+ "X-Generator: grunt-wp-i18n 0.5.4\n"
15
+ "X-Poedit-KeywordsList: "
16
+ "__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_"
17
+ "attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
18
+ "Language: en\n"
19
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
20
+ "X-Poedit-Country: United States\n"
21
+ "X-Poedit-SourceCharset: UTF-8\n"
22
+ "X-Poedit-Basepath: ../\n"
23
+ "X-Poedit-SearchPath-0: .\n"
24
+ "X-Poedit-Bookmarks: \n"
25
+ "X-Textdomain-Support: yes\n"
26
+
27
+ #: index.php:35 templates/iframe/form.php:7 templates/library/list.php:10
28
+ msgid "Maps"
29
+ msgstr ""
30
+
31
+ #: index.php:36
32
+ msgid "Settings"
33
+ msgstr ""
34
+
35
+ #: index.php:74 templates/library/list.php:17
36
+ msgid "Maps Settings"
37
+ msgstr ""
38
+
39
+ #: index.php:76
40
+ msgid "Create New Map"
41
+ msgstr ""
42
+
43
+ #: index.php:78 templates/iframe/form.php:45 templates/library/list.php:14
44
+ msgid "Buy PRO version to add more maps"
45
+ msgstr ""
46
+
47
+ #: index.php:80
48
+ msgid "View Existing Maps"
49
+ msgstr ""
50
+
51
+ #: index.php:89
52
+ msgid "Intergeo Google Maps"
53
+ msgstr ""
54
+
55
+ #: index.php:90
56
+ msgid "Maps API Key"
57
+ msgstr ""
58
+
59
+ #: index.php:98
60
+ msgid "Intergeo Google Maps AdSense Integration"
61
+ msgstr ""
62
+
63
+ #: index.php:99
64
+ msgid "AdSense Publisher Id"
65
+ msgstr ""
66
+
67
+ #: index.php:106
68
+ msgid "Save Changes"
69
+ msgstr ""
70
+
71
+ #: index.php:116
72
+ msgid ""
73
+ " Below shows how to find your API Key, after retrieving your key add it to "
74
+ "the \"Maps API Key\" input box."
75
+ msgstr ""
76
+
77
+ #: index.php:128
78
+ msgid ""
79
+ "Adding display ads to your map requires that you have an AdSense account "
80
+ "enabled for AdSense for Content. If you don't yet have an AdSense account, "
81
+ "%1$ssign up%3$s for one. Once you have done so (or if you already have an "
82
+ "account) make sure you've also enabled the account with %2$sAdSense for "
83
+ "Content%3$s."
84
+ msgstr ""
85
+
86
+ #: index.php:130
87
+ msgid ""
88
+ "Once you have an Adsense for Content account, you will have received an "
89
+ "AdSense for Content (AFC) publisher ID. This publisher ID is used to link "
90
+ "any advertising shown to your AdSense account, allowing you to share in "
91
+ "advertising revenue when a user clicks on one of the ads shown on your maps."
92
+ msgstr ""
93
+
94
+ #: index.php:202 index.php:872 index.php:876
95
+ msgid "Intergeo Maps"
96
+ msgstr ""
97
+
98
+ #: index.php:239 templates/iframe/overlays.php:8
99
+ #: templates/iframe/overlays.php:34
100
+ msgid "marker"
101
+ msgstr ""
102
+
103
+ #: index.php:241
104
+ msgid "Styles are broken. Please, fix it and try again."
105
+ msgstr ""
106
+
107
+ #: index.php:242
108
+ msgid "Direction was not found."
109
+ msgstr ""
110
+
111
+ #: index.php:258
112
+ msgid "Insert into post"
113
+ msgstr ""
114
+
115
+ #: index.php:260
116
+ msgid "Create the map"
117
+ msgstr ""
118
+
119
+ #: index.php:273
120
+ msgid "Update the map"
121
+ msgstr ""
122
+
123
+ #: index.php:751
124
+ msgid "The map has been updated successfully."
125
+ msgstr ""
126
+
127
+ #: index.php:752
128
+ msgid "The map has been created successfully."
129
+ msgstr ""
130
+
131
+ #: index.php:760
132
+ msgid "The map updating failed."
133
+ msgstr ""
134
+
135
+ #: index.php:761
136
+ msgid "The map creation failed."
137
+ msgstr ""
138
+
139
+ #: index.php:872 index.php:876
140
+ msgid "Intergeo Maps Library"
141
+ msgstr ""
142
+
143
+ #: index.php:895
144
+ msgid "Overview"
145
+ msgstr ""
146
+
147
+ #: index.php:898
148
+ msgid ""
149
+ "The library is a list to view all maps you have created in your system. The "
150
+ "library is showing you 3x3 grid of maps' previews. You will see the same "
151
+ "maps embedded into your posts at front end, as you see here. The library is "
152
+ "paginated and if you have more than 9 maps, you will see pagination links "
153
+ "under maps grid."
154
+ msgstr ""
155
+
156
+ #: index.php:899
157
+ msgid ""
158
+ "To create a new map, click on \"Add New\" button next to the page title and "
159
+ "map editor popup will appear. In case you want to edit a map, you can click "
160
+ "on pencil icon in the right bottom corner of map preview box and edit popup "
161
+ "window will appear."
162
+ msgstr ""
163
+
164
+ #: index.php:900
165
+ msgid ""
166
+ "If you want to delete a map, click on the trash icon in the right bottom "
167
+ "corner of a map and confirm your action. Pay attention that whole "
168
+ "information about the map will be removed from the system, but all "
169
+ "shortcodes will be left where you embed it. However these deprecated "
170
+ "shortcodes won't be rendered anymore, so you don't have to worry about it "
171
+ "while the plugin is enabled."
172
+ msgstr ""
173
+
174
+ #: index.php:904
175
+ msgid "Shortcodes"
176
+ msgstr ""
177
+
178
+ #: index.php:907
179
+ msgid ""
180
+ "You can easily embed a map into your posts, pages, categories or tags "
181
+ "descriptions and text widgets by copying shortcode which you can find in "
182
+ "the input field of a map preview box."
183
+ msgstr ""
184
+
185
+ #: index.php:908
186
+ msgid ""
187
+ "To specify a certain address just type it inside a shortcode, and a map "
188
+ "will be automatically centered at this place. Also each shortcode could be "
189
+ "extended with custom attributes like width, height, style, zoom and hook. "
190
+ "Use standard CSS values for such attributes as width, height and style. "
191
+ "Type an integer between 0 and 19 for zoom attribute. You can use hook "
192
+ "attribute to set up a filter hook which you can use in your custom plugin "
193
+ "or theme to configure all options of a map."
194
+ msgstr ""
195
+
196
+ #: index.php:970
197
+ msgid "The map was deleted successfully."
198
+ msgstr ""
199
+
200
+ #: index.php:1217
201
+ msgid "Hide"
202
+ msgstr ""
203
+
204
+ #: index.php:1220
205
+ msgid "I've already done it"
206
+ msgstr ""
207
+
208
+ #: pro/addon.php:87
209
+ msgid "Please save the map before clicking on the export button"
210
+ msgstr ""
211
+
212
+ #: pro/templates/iframe/layers.php:2
213
+ msgid "Custom layer"
214
+ msgstr ""
215
+
216
+ #: pro/templates/iframe/layers.php:7 templates/iframe/adsense.php:5
217
+ #: templates/iframe/extra.php:6
218
+ msgid "Available in Agency plan"
219
+ msgstr ""
220
+
221
+ #: pro/templates/iframe/layers.php:16 templates/iframe/controls.php:12
222
+ #: templates/iframe/controls.php:86 templates/iframe/controls.php:148
223
+ #: templates/iframe/controls.php:210 templates/iframe/controls.php:311
224
+ #: templates/iframe/controls.php:373 templates/iframe/controls.php:435
225
+ #: templates/iframe/layers.php:19 templates/iframe/layers.php:36
226
+ msgid "Enabled"
227
+ msgstr ""
228
+
229
+ #: pro/templates/iframe/layers.php:20
230
+ msgid "Allows you to add custom images to your map."
231
+ msgstr ""
232
+
233
+ #: pro/templates/iframe/layers.php:24
234
+ msgid "Image URL"
235
+ msgstr ""
236
+
237
+ #: pro/templates/iframe/layers.php:28
238
+ msgid "The URL of the image that will be used for the custom layer."
239
+ msgstr ""
240
+
241
+ #: pro/templates/iframe/layers.php:32
242
+ msgid "South-west Latitude/Longitude"
243
+ msgstr ""
244
+
245
+ #: pro/templates/iframe/layers.php:33 pro/templates/iframe/layers.php:42
246
+ msgid "Latitude"
247
+ msgstr ""
248
+
249
+ #: pro/templates/iframe/layers.php:34 pro/templates/iframe/layers.php:43
250
+ msgid "Longitude"
251
+ msgstr ""
252
+
253
+ #: pro/templates/iframe/layers.php:37
254
+ msgid ""
255
+ "The latitude/longitude of the south-west (bottom-left) edge of the map to "
256
+ "position the image."
257
+ msgstr ""
258
+
259
+ #: pro/templates/iframe/layers.php:41
260
+ msgid "North-east Latitude/Longitude"
261
+ msgstr ""
262
+
263
+ #: pro/templates/iframe/layers.php:46
264
+ msgid ""
265
+ "The latitude/longitude of the north-east (top-right) edge of the map to "
266
+ "position the image."
267
+ msgstr ""
268
+
269
+ #: pro/templates/iframe/upload.php:3
270
+ msgid "To import data, please import a CSV file. Here is a sample"
271
+ msgstr ""
272
+
273
+ #: pro/templates/iframe/upload.php:4
274
+ msgid "Click here"
275
+ msgstr ""
276
+
277
+ #: pro/templates/iframe/upload.php:15
278
+ msgid "From Computer"
279
+ msgstr ""
280
+
281
+ #: pro/templates/iframe/upload.php:23
282
+ msgid "To export data, click on the button below"
283
+ msgstr ""
284
+
285
+ #: pro/templates/iframe/upload.php:32
286
+ msgid "Export markers as CSV"
287
+ msgstr ""
288
+
289
+ #: templates/iframe/adsense.php:1
290
+ msgid "AdSense Integration"
291
+ msgstr ""
292
+
293
+ #: templates/iframe/adsense.php:11
294
+ msgid ""
295
+ "To make AdSense working on your maps, you have to setup your publisher ID. "
296
+ "You can do it at the %1$ssettings page%2$s."
297
+ msgstr ""
298
+
299
+ #: templates/iframe/adsense.php:29
300
+ msgid "default format"
301
+ msgstr ""
302
+
303
+ #: templates/iframe/adsense.php:32
304
+ msgid "Leaderboard"
305
+ msgstr ""
306
+
307
+ #: templates/iframe/adsense.php:35
308
+ msgid "Banner"
309
+ msgstr ""
310
+
311
+ #: templates/iframe/adsense.php:38
312
+ msgid "Half Banner"
313
+ msgstr ""
314
+
315
+ #: templates/iframe/adsense.php:41
316
+ msgid "Skyscraper"
317
+ msgstr ""
318
+
319
+ #: templates/iframe/adsense.php:44
320
+ msgid "Wide Skyscraper"
321
+ msgstr ""
322
+
323
+ #: templates/iframe/adsense.php:47
324
+ msgid "Vertical Banner"
325
+ msgstr ""
326
+
327
+ #: templates/iframe/adsense.php:50
328
+ msgid "Button"
329
+ msgstr ""
330
+
331
+ #: templates/iframe/adsense.php:53
332
+ msgid "Small Square"
333
+ msgstr ""
334
+
335
+ #: templates/iframe/adsense.php:56
336
+ msgid "Square"
337
+ msgstr ""
338
+
339
+ #: templates/iframe/adsense.php:59
340
+ msgid "Small Rectangle"
341
+ msgstr ""
342
+
343
+ #: templates/iframe/adsense.php:62
344
+ msgid "Medium Rectangle"
345
+ msgstr ""
346
+
347
+ #: templates/iframe/adsense.php:65
348
+ msgid "Large Rectangle"
349
+ msgstr ""
350
+
351
+ #: templates/iframe/adsense.php:68
352
+ msgid "Small Vertical Link Unit"
353
+ msgstr ""
354
+
355
+ #: templates/iframe/adsense.php:71
356
+ msgid "Medium Vertical Link Unit"
357
+ msgstr ""
358
+
359
+ #: templates/iframe/adsense.php:74
360
+ msgid "Large Vertical Link Unit"
361
+ msgstr ""
362
+
363
+ #: templates/iframe/adsense.php:77
364
+ msgid "Extra Large Vertical Link Unit"
365
+ msgstr ""
366
+
367
+ #: templates/iframe/adsense.php:80
368
+ msgid "Small Horizontal Link Unit"
369
+ msgstr ""
370
+
371
+ #: templates/iframe/adsense.php:83
372
+ msgid "Large Horizontal Link Unit"
373
+ msgstr ""
374
+
375
+ #: templates/iframe/adsense.php:89 templates/iframe/controls.php:22
376
+ #: templates/iframe/controls.php:96 templates/iframe/controls.php:158
377
+ #: templates/iframe/controls.php:220 templates/iframe/controls.php:321
378
+ #: templates/iframe/controls.php:383
379
+ msgid "default position"
380
+ msgstr ""
381
+
382
+ #: templates/iframe/adsense.php:91 templates/iframe/controls.php:24
383
+ #: templates/iframe/controls.php:98 templates/iframe/controls.php:160
384
+ #: templates/iframe/controls.php:222 templates/iframe/controls.php:323
385
+ #: templates/iframe/controls.php:385
386
+ msgid "Top Left"
387
+ msgstr ""
388
+
389
+ #: templates/iframe/adsense.php:94 templates/iframe/controls.php:27
390
+ #: templates/iframe/controls.php:101 templates/iframe/controls.php:163
391
+ #: templates/iframe/controls.php:225 templates/iframe/controls.php:326
392
+ #: templates/iframe/controls.php:388
393
+ msgid "Top Center"
394
+ msgstr ""
395
+
396
+ #: templates/iframe/adsense.php:97 templates/iframe/controls.php:30
397
+ #: templates/iframe/controls.php:104 templates/iframe/controls.php:166
398
+ #: templates/iframe/controls.php:228 templates/iframe/controls.php:329
399
+ #: templates/iframe/controls.php:391
400
+ msgid "Top Right"
401
+ msgstr ""
402
+
403
+ #: templates/iframe/adsense.php:100 templates/iframe/controls.php:33
404
+ #: templates/iframe/controls.php:107 templates/iframe/controls.php:169
405
+ #: templates/iframe/controls.php:231 templates/iframe/controls.php:332
406
+ #: templates/iframe/controls.php:394
407
+ msgid "Right Top"
408
+ msgstr ""
409
+
410
+ #: templates/iframe/adsense.php:103 templates/iframe/controls.php:36
411
+ #: templates/iframe/controls.php:110 templates/iframe/controls.php:172
412
+ #: templates/iframe/controls.php:234 templates/iframe/controls.php:335
413
+ #: templates/iframe/controls.php:397
414
+ msgid "Right Center"
415
+ msgstr ""
416
+
417
+ #: templates/iframe/adsense.php:106 templates/iframe/controls.php:39
418
+ #: templates/iframe/controls.php:113 templates/iframe/controls.php:175
419
+ #: templates/iframe/controls.php:237 templates/iframe/controls.php:338
420
+ #: templates/iframe/controls.php:400
421
+ msgid "Right Bottom"
422
+ msgstr ""
423
+
424
+ #: templates/iframe/adsense.php:109 templates/iframe/controls.php:42
425
+ #: templates/iframe/controls.php:116 templates/iframe/controls.php:178
426
+ #: templates/iframe/controls.php:240 templates/iframe/controls.php:341
427
+ #: templates/iframe/controls.php:403
428
+ msgid "Bottom Right"
429
+ msgstr ""
430
+
431
+ #: templates/iframe/adsense.php:112 templates/iframe/controls.php:45
432
+ #: templates/iframe/controls.php:119 templates/iframe/controls.php:181
433
+ #: templates/iframe/controls.php:243 templates/iframe/controls.php:344
434
+ #: templates/iframe/controls.php:406
435
+ msgid "Bottom Center"
436
+ msgstr ""
437
+
438
+ #: templates/iframe/adsense.php:115 templates/iframe/controls.php:48
439
+ #: templates/iframe/controls.php:122 templates/iframe/controls.php:184
440
+ #: templates/iframe/controls.php:246 templates/iframe/controls.php:347
441
+ #: templates/iframe/controls.php:409
442
+ msgid "Bottom Left"
443
+ msgstr ""
444
+
445
+ #: templates/iframe/adsense.php:118 templates/iframe/controls.php:51
446
+ #: templates/iframe/controls.php:125 templates/iframe/controls.php:187
447
+ #: templates/iframe/controls.php:249 templates/iframe/controls.php:350
448
+ #: templates/iframe/controls.php:412
449
+ msgid "Left Bottom"
450
+ msgstr ""
451
+
452
+ #: templates/iframe/adsense.php:121 templates/iframe/controls.php:54
453
+ #: templates/iframe/controls.php:128 templates/iframe/controls.php:190
454
+ #: templates/iframe/controls.php:252 templates/iframe/controls.php:353
455
+ #: templates/iframe/controls.php:415
456
+ msgid "Left Center"
457
+ msgstr ""
458
+
459
+ #: templates/iframe/adsense.php:124 templates/iframe/controls.php:57
460
+ #: templates/iframe/controls.php:131 templates/iframe/controls.php:193
461
+ #: templates/iframe/controls.php:255 templates/iframe/controls.php:356
462
+ #: templates/iframe/controls.php:418
463
+ msgid "Left Top"
464
+ msgstr ""
465
+
466
+ #: templates/iframe/adsense.php:134 templates/iframe/styles.php:1
467
+ msgid "Styles"
468
+ msgstr ""
469
+
470
+ #: templates/iframe/adsense.php:137
471
+ msgid "Background color"
472
+ msgstr ""
473
+
474
+ #: templates/iframe/adsense.php:140 templates/iframe/adsense.php:146
475
+ #: templates/iframe/adsense.php:152 templates/iframe/adsense.php:158
476
+ #: templates/iframe/adsense.php:164
477
+ msgid "Hex Value"
478
+ msgstr ""
479
+
480
+ #: templates/iframe/adsense.php:143
481
+ msgid "Border color"
482
+ msgstr ""
483
+
484
+ #: templates/iframe/adsense.php:149
485
+ msgid "Title color"
486
+ msgstr ""
487
+
488
+ #: templates/iframe/adsense.php:155
489
+ msgid "Text color"
490
+ msgstr ""
491
+
492
+ #: templates/iframe/adsense.php:161
493
+ msgid "URL color"
494
+ msgstr ""
495
+
496
+ #: templates/iframe/controls.php:2
497
+ msgid "Controls"
498
+ msgstr ""
499
+
500
+ #: templates/iframe/controls.php:5
501
+ msgid "Zoom control"
502
+ msgstr ""
503
+
504
+ #: templates/iframe/controls.php:16
505
+ msgid ""
506
+ "The Zoom control displays a slider (for large maps) or small \"+/-\" "
507
+ "buttons (for small maps) to control the zoom level of the map. This control "
508
+ "appears by default in the top left corner of the map on non-touch devices "
509
+ "or in the bottom left corner on touch devices."
510
+ msgstr ""
511
+
512
+ #: templates/iframe/controls.php:64 templates/iframe/controls.php:262
513
+ msgid "default style"
514
+ msgstr ""
515
+
516
+ #: templates/iframe/controls.php:67
517
+ msgid "small"
518
+ msgstr ""
519
+
520
+ #: templates/iframe/controls.php:70
521
+ msgid "large"
522
+ msgstr ""
523
+
524
+ #: templates/iframe/controls.php:79
525
+ msgid "Pan control"
526
+ msgstr ""
527
+
528
+ #: templates/iframe/controls.php:90
529
+ msgid ""
530
+ "The Pan control displays buttons for panning the map. This control appears "
531
+ "by default in the top left corner of the map on non-touch devices. The Pan "
532
+ "control also allows you to rotate 45° imagery, if available."
533
+ msgstr ""
534
+
535
+ #: templates/iframe/controls.php:141
536
+ msgid "Scale control"
537
+ msgstr ""
538
+
539
+ #: templates/iframe/controls.php:152
540
+ msgid ""
541
+ "The Scale control displays a map scale element. This control is not enabled "
542
+ "by default."
543
+ msgstr ""
544
+
545
+ #: templates/iframe/controls.php:203
546
+ msgid "MapType control"
547
+ msgstr ""
548
+
549
+ #: templates/iframe/controls.php:214
550
+ msgid ""
551
+ "The MapType control lets the user toggle between map types (such as roadmap "
552
+ "and satellite). This control appears by default in the top right corner of "
553
+ "the map."
554
+ msgstr ""
555
+
556
+ #: templates/iframe/controls.php:265
557
+ msgid "dropdown menu"
558
+ msgstr ""
559
+
560
+ #: templates/iframe/controls.php:268
561
+ msgid "horizontal bar"
562
+ msgstr ""
563
+
564
+ #: templates/iframe/controls.php:275
565
+ msgid "Map types:"
566
+ msgstr ""
567
+
568
+ #: templates/iframe/controls.php:278
569
+ msgid "This map type displays a normal street map."
570
+ msgstr ""
571
+
572
+ #: templates/iframe/controls.php:280 templates/iframe/positioning.php:15
573
+ msgid "Road map"
574
+ msgstr ""
575
+
576
+ #: templates/iframe/controls.php:284
577
+ msgid ""
578
+ "This map type displays maps with physical features such as terrain and "
579
+ "vegetation."
580
+ msgstr ""
581
+
582
+ #: templates/iframe/controls.php:286 templates/iframe/positioning.php:18
583
+ msgid "Terrain"
584
+ msgstr ""
585
+
586
+ #: templates/iframe/controls.php:290
587
+ msgid "This map type displays satellite images."
588
+ msgstr ""
589
+
590
+ #: templates/iframe/controls.php:292 templates/iframe/positioning.php:21
591
+ msgid "Satellite"
592
+ msgstr ""
593
+
594
+ #: templates/iframe/controls.php:296
595
+ msgid ""
596
+ "This map type displays a transparent layer of major streets on satellite "
597
+ "images."
598
+ msgstr ""
599
+
600
+ #: templates/iframe/controls.php:298 templates/iframe/positioning.php:24
601
+ msgid "Hybrid"
602
+ msgstr ""
603
+
604
+ #: templates/iframe/controls.php:304
605
+ msgid "Street View control"
606
+ msgstr ""
607
+
608
+ #: templates/iframe/controls.php:315
609
+ msgid ""
610
+ "The Street View control contains a Pegman icon which can be dragged onto "
611
+ "the map to enable Street View. This control appears by default in the top "
612
+ "left corner of the map."
613
+ msgstr ""
614
+
615
+ #: templates/iframe/controls.php:366
616
+ msgid "Rotate control"
617
+ msgstr ""
618
+
619
+ #: templates/iframe/controls.php:377
620
+ msgid ""
621
+ "The Rotate control contains a small circular icon which allows you to "
622
+ "rotate maps containing oblique imagery. This control appears by default in "
623
+ "the top left corner of the map."
624
+ msgstr ""
625
+
626
+ #: templates/iframe/controls.php:428
627
+ msgid "Overview Map control"
628
+ msgstr ""
629
+
630
+ #: templates/iframe/controls.php:439
631
+ msgid ""
632
+ "The Overview Map control displays a thumbnail overview map reflecting the "
633
+ "current map viewport within a wider area. This control appears by default "
634
+ "in the bottom right corner of the map, and is by default shown in its "
635
+ "collapsed state."
636
+ msgstr ""
637
+
638
+ #: templates/iframe/controls.php:445
639
+ msgid "Opened"
640
+ msgstr ""
641
+
642
+ #: templates/iframe/directions.php:1
643
+ msgid "Directions"
644
+ msgstr ""
645
+
646
+ #: templates/iframe/directions.php:6 templates/iframe/layers.php:6
647
+ msgid "Available in Developer plan"
648
+ msgstr ""
649
+
650
+ #: templates/iframe/directions.php:12
651
+ msgid "To add a new direction just click the button below"
652
+ msgstr ""
653
+
654
+ #: templates/iframe/directions.php:17
655
+ msgid "Add Direction"
656
+ msgstr ""
657
+
658
+ #: templates/iframe/directions.php:24 templates/iframe/directions.php:30
659
+ #: templates/iframe/directions.php:51
660
+ msgid "from"
661
+ msgstr ""
662
+
663
+ #: templates/iframe/directions.php:24 templates/iframe/directions.php:30
664
+ #: templates/iframe/directions.php:53
665
+ msgid "to"
666
+ msgstr ""
667
+
668
+ #: templates/iframe/directions.php:37 templates/iframe/directions.php:78
669
+ msgid "Delete direction"
670
+ msgstr ""
671
+
672
+ #: templates/iframe/directions.php:38 templates/iframe/directions.php:79
673
+ msgid "Edit direction"
674
+ msgstr ""
675
+
676
+ #: templates/iframe/directions.php:43
677
+ msgid "Created directions"
678
+ msgstr ""
679
+
680
+ #: templates/iframe/directions.php:58 templates/iframe/popups.php:207
681
+ msgid "via bicycle paths & preferred streets"
682
+ msgstr ""
683
+
684
+ #: templates/iframe/directions.php:61 templates/iframe/popups.php:208
685
+ msgid "via public transit routes"
686
+ msgstr ""
687
+
688
+ #: templates/iframe/directions.php:64 templates/iframe/popups.php:209
689
+ msgid "via pedestrian paths & sidewalks"
690
+ msgstr ""
691
+
692
+ #: templates/iframe/directions.php:68 templates/iframe/popups.php:206
693
+ msgid "via standard driving directions"
694
+ msgstr ""
695
+
696
+ #: templates/iframe/extra.php:2
697
+ msgid "Import/Export Markers"
698
+ msgstr ""
699
+
700
+ #: templates/iframe/form.php:38
701
+ msgid "The center of the map"
702
+ msgstr ""
703
+
704
+ #: templates/iframe/form.php:41
705
+ msgid "Go to address"
706
+ msgstr ""
707
+
708
+ #: templates/iframe/layers.php:1
709
+ msgid "Layers"
710
+ msgstr ""
711
+
712
+ #: templates/iframe/layers.php:11
713
+ msgid "Traffic layer"
714
+ msgstr ""
715
+
716
+ #: templates/iframe/layers.php:23
717
+ msgid ""
718
+ "Allows you to add real-time traffic information (where supported) to your "
719
+ "map. Traffic information is provided for the time at which the request is "
720
+ "made. Consult %1$s this spreadsheet %2$s to determine traffic coverage "
721
+ "support."
722
+ msgstr ""
723
+
724
+ #: templates/iframe/layers.php:28
725
+ msgid "Bicycling layer"
726
+ msgstr ""
727
+
728
+ #: templates/iframe/layers.php:40
729
+ msgid ""
730
+ "Allows you to add bicycle information to your map. It renders a layer of "
731
+ "bike paths, suggested bike routes and other overlays specific to bicycling "
732
+ "usage on top of the given map. Additionally, the layer alters the style of "
733
+ "the base map itself to emphasize streets supporting bicycle routes and "
734
+ "de-emphasize streets inappropriate for bicycles."
735
+ msgstr ""
736
+
737
+ #: templates/iframe/overlays.php:1
738
+ msgid "Overlays"
739
+ msgstr ""
740
+
741
+ #: templates/iframe/overlays.php:17 templates/iframe/overlays.php:46
742
+ msgid "Delete marker"
743
+ msgstr ""
744
+
745
+ #: templates/iframe/overlays.php:18 templates/iframe/overlays.php:47
746
+ msgid "Edit marker"
747
+ msgstr ""
748
+
749
+ #: templates/iframe/overlays.php:24
750
+ msgid "Markers"
751
+ msgstr ""
752
+
753
+ #: templates/iframe/overlays.php:62
754
+ msgid "Add Marker"
755
+ msgstr ""
756
+
757
+ #: templates/iframe/overlays.php:63 templates/iframe/overlays.php:66
758
+ msgid "Buy PRO version to add more markers"
759
+ msgstr ""
760
+
761
+ #: templates/iframe/popups.php:5
762
+ msgid "Go To Address"
763
+ msgstr ""
764
+
765
+ #: templates/iframe/popups.php:10
766
+ msgid "Type an address you want to go to"
767
+ msgstr ""
768
+
769
+ #: templates/iframe/popups.php:13
770
+ msgid "Go"
771
+ msgstr ""
772
+
773
+ #: templates/iframe/popups.php:24
774
+ msgid "Marker Options"
775
+ msgstr ""
776
+
777
+ #: templates/iframe/popups.php:31 templates/iframe/popups.php:32
778
+ msgid "Enter title"
779
+ msgstr ""
780
+
781
+ #: templates/iframe/popups.php:39 templates/iframe/popups.php:40
782
+ msgid "Enter address or lat, long"
783
+ msgstr ""
784
+
785
+ #: templates/iframe/popups.php:47
786
+ msgid "Default"
787
+ msgstr ""
788
+
789
+ #: templates/iframe/popups.php:48
790
+ msgid "Blue"
791
+ msgstr ""
792
+
793
+ #: templates/iframe/popups.php:52
794
+ msgid "Custom"
795
+ msgstr ""
796
+
797
+ #: templates/iframe/popups.php:57 templates/iframe/popups.php:58
798
+ msgid "Enter icon URL"
799
+ msgstr ""
800
+
801
+ #: templates/iframe/popups.php:70 templates/iframe/popups.php:105
802
+ #: templates/iframe/popups.php:173
803
+ msgid "Update"
804
+ msgstr ""
805
+
806
+ #: templates/iframe/popups.php:81
807
+ msgid "Polyline Options"
808
+ msgstr ""
809
+
810
+ #: templates/iframe/popups.php:88 templates/iframe/popups.php:89
811
+ #: templates/iframe/popups.php:128 templates/iframe/popups.php:129
812
+ msgid "Stroke weight in pixel"
813
+ msgstr ""
814
+
815
+ #: templates/iframe/popups.php:94 templates/iframe/popups.php:95
816
+ #: templates/iframe/popups.php:134 templates/iframe/popups.php:135
817
+ msgid "Stroke opacity from 0.0 to 1.0"
818
+ msgstr ""
819
+
820
+ #: templates/iframe/popups.php:116
821
+ msgid "Polygon Options"
822
+ msgstr ""
823
+
824
+ #: templates/iframe/popups.php:121
825
+ msgid "Stroke options"
826
+ msgstr ""
827
+
828
+ #: templates/iframe/popups.php:141
829
+ msgid "stroke position"
830
+ msgstr ""
831
+
832
+ #: templates/iframe/popups.php:142
833
+ msgid "center"
834
+ msgstr ""
835
+
836
+ #: templates/iframe/popups.php:143
837
+ msgid "inside the object"
838
+ msgstr ""
839
+
840
+ #: templates/iframe/popups.php:144
841
+ msgid "outside the object"
842
+ msgstr ""
843
+
844
+ #: templates/iframe/popups.php:155
845
+ msgid "Fill options"
846
+ msgstr ""
847
+
848
+ #: templates/iframe/popups.php:162 templates/iframe/popups.php:163
849
+ msgid "Fill opacity from 0.0 to 1.0"
850
+ msgstr ""
851
+
852
+ #: templates/iframe/popups.php:184
853
+ msgid "Direction Options"
854
+ msgstr ""
855
+
856
+ #: templates/iframe/popups.php:191 templates/iframe/popups.php:192
857
+ msgid "The start location from which to calculate directions"
858
+ msgstr ""
859
+
860
+ #: templates/iframe/popups.php:199 templates/iframe/popups.php:200
861
+ msgid "The end location to which to calculate directions"
862
+ msgstr ""
863
+
864
+ #: templates/iframe/popups.php:215
865
+ msgid "Save"
866
+ msgstr ""
867
+
868
+ #: templates/iframe/positioning.php:1
869
+ msgid "Positioning & Zooming"
870
+ msgstr ""
871
+
872
+ #: templates/iframe/positioning.php:5
873
+ msgid ""
874
+ "If you want to set specific map position and certain level of zooming, just "
875
+ "set it up on preview map and these settings will be remembered at published "
876
+ "map."
877
+ msgstr ""
878
+
879
+ #: templates/iframe/positioning.php:9
880
+ msgid "Positioning"
881
+ msgstr ""
882
+
883
+ #: templates/iframe/positioning.php:12
884
+ msgid "The initial map type"
885
+ msgstr ""
886
+
887
+ #: templates/iframe/positioning.php:33
888
+ msgid "Draggable map"
889
+ msgstr ""
890
+
891
+ #: templates/iframe/positioning.php:37
892
+ msgid ""
893
+ "If unchecked prevents the map from being dragged. Dragging is enabled by "
894
+ "default."
895
+ msgstr ""
896
+
897
+ #: templates/iframe/positioning.php:42
898
+ msgid "Zooming"
899
+ msgstr ""
900
+
901
+ #: templates/iframe/positioning.php:46
902
+ msgid "Zoom range values"
903
+ msgstr ""
904
+
905
+ #: templates/iframe/positioning.php:59
906
+ msgid ""
907
+ "The maximum (19) and minimum (0) zoom levels which could be displayed on "
908
+ "the map."
909
+ msgstr ""
910
+
911
+ #: templates/iframe/positioning.php:66
912
+ msgid "Scrollwheel zooming"
913
+ msgstr ""
914
+
915
+ #: templates/iframe/positioning.php:70
916
+ msgid "Determines if scrollwheel zooming is enabled on the map."
917
+ msgstr ""
918
+
919
+ #: templates/iframe/positioning.php:75
920
+ msgid "Preview settings"
921
+ msgstr ""
922
+
923
+ #: templates/iframe/positioning.php:81
924
+ msgid "Lock preview"
925
+ msgstr ""
926
+
927
+ #: templates/iframe/positioning.php:85
928
+ msgid ""
929
+ "Lock preview map to preserve changing of the viewport bounds and zoom "
930
+ "level. Locking affects only on preview map and won't lock embedded map."
931
+ msgstr ""
932
+
933
+ #: templates/iframe/positioning.php:91
934
+ msgid "Show map center"
935
+ msgstr ""
936
+
937
+ #: templates/iframe/positioning.php:95
938
+ msgid ""
939
+ "Show small red circle at the center of the map. It helps you to centralize "
940
+ "the map bounds. Note that this option won't be displayed at frontend."
941
+ msgstr ""
942
+
943
+ #: templates/iframe/styles.php:4
944
+ msgid "Container's Styles"
945
+ msgstr ""
946
+
947
+ #: templates/iframe/styles.php:7
948
+ msgid "Width"
949
+ msgstr ""
950
+
951
+ #: templates/iframe/styles.php:11
952
+ msgid "Height"
953
+ msgstr ""
954
+
955
+ #: templates/iframe/styles.php:15
956
+ msgid "Extra Styles"
957
+ msgstr ""
958
+
959
+ #: templates/iframe/styles.php:21
960
+ msgid "Predefined Map Styles"
961
+ msgstr ""
962
+
963
+ #: templates/iframe/styles.php:66
964
+ msgid "Custom Map Styles"
965
+ msgstr ""
966
+
967
+ #: templates/iframe/styles.php:72
968
+ msgid "Use custom styles"
969
+ msgstr ""
970
+
971
+ #: templates/iframe/styles.php:79
972
+ msgid ""
973
+ "Creating styles by hand and testing your code to see how they look is "
974
+ "potentially time-consuming. Instead, you can use the %1$s Styled Map Wizard "
975
+ " %2$s to set up the JSON for your maps styles."
976
+ msgstr ""
977
+
978
+ #: templates/library/list.php:5
979
+ msgid ""
980
+ "You have not added an API Key. Your maps may not display properly. Please "
981
+ "add an API Key %1$s here %2$s"
982
+ msgstr ""
983
+
984
+ #: templates/library/list.php:12
985
+ msgid "Add New"
986
+ msgstr ""
987
+
988
+ #: templates/library/list.php:102
989
+ msgid "Edit"
990
+ msgstr ""
991
+
992
+ #: templates/library/list.php:103
993
+ msgid "Copy"
994
+ msgstr ""
995
+
996
+ #: templates/library/list.php:104
997
+ msgid "Delete"
998
+ msgstr ""
999
+
1000
+ #: templates/library/list.php:139
1001
+ msgid ""
1002
+ "You do not have created maps. Start adding it by clicking \"Add New\" "
1003
+ "button."
1004
+ msgstr ""
1005
+
1006
+ #: templates/nag.php:1
1007
+ msgid ""
1008
+ "You have just enabled the Intergeo - Google Maps Plugin. You can now go to "
1009
+ "<a href=\"%s\">Media > Intergeo Maps</a> and start building your own."
1010
+ msgstr ""
1011
+
1012
+ #. Plugin Name of the plugin/theme
1013
+ msgid "Intergeo - Google Maps Plugin"
1014
+ msgstr ""
1015
+
1016
+ #. Plugin URI of the plugin/theme
1017
+ msgid "http://themeisle.com/plugins/intergeo-maps-lite/"
1018
+ msgstr ""
1019
+
1020
+ #. Description of the plugin/theme
1021
+ msgid ""
1022
+ "A simple, easy and quite powerful Google Map tool to create, manage and "
1023
+ "embed custom Google Maps into your WordPress posts and pages. The plugin "
1024
+ "allows you to deeply customize look and feel of a map, add overlays like "
1025
+ "markers, rectangles, circles, polylines and polygons to your map. It could "
1026
+ "even be integraded with your Google Adsense account and show ad on your "
1027
+ "maps."
1028
+ msgstr ""
1029
+
1030
+ #. Author of the plugin/theme
1031
+ msgid "Themeisle"
1032
+ msgstr ""
1033
+
1034
+ #. Author URI of the plugin/theme
1035
+ msgid "http://themeisle.com"
1036
+ msgstr ""
pro/addon.php ADDED
@@ -0,0 +1,206 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! class_exists( 'IntergeoMaps_Adv' ) ) {
3
+ class IntergeoMaps_Adv {
4
+
5
+ function __construct() {
6
+ $this->loadHooks();
7
+ }
8
+
9
+ private function loadHooks() {
10
+ add_action( 'wp_ajax_export_data_pro', array( $this, 'ajax' ) );
11
+ }
12
+
13
+ public static function writeDebug( $msg ) {
14
+ if ( INTERGEO_DEBUG ) {
15
+ file_put_contents( INTERGEO_DIR . 'tmp/log.log', date( 'F j, Y H:i:s' ) . ' - ' . $msg . "\n", FILE_APPEND );
16
+ }
17
+ }
18
+
19
+ public function addForm( $type, $json ) {
20
+ include_once INTERGEO_DIR . "pro/templates/iframe/{$type}.php";
21
+ }
22
+
23
+ public function addValidations( &$validationArray, &$defaults ) {
24
+ $validationArray['custom_url'] = FILTER_VALIDATE_URL;
25
+ $validationArray['custom_latne'] = array(
26
+ 'filter' => FILTER_VALIDATE_FLOAT,
27
+ 'flags' => FILTER_REQUIRE_SCALAR,
28
+ 'options' => array(
29
+ 'min_range' => - 90,
30
+ 'max_range' => 90,
31
+ 'default' => 48.1366069,
32
+ ),
33
+ );
34
+ $validationArray['custom_lonne'] = array(
35
+ 'filter' => FILTER_VALIDATE_FLOAT,
36
+ 'flags' => FILTER_REQUIRE_SCALAR,
37
+ 'options' => array(
38
+ 'min_range' => - 180,
39
+ 'max_range' => 180,
40
+ 'default' => 11.577085099999977,
41
+ ),
42
+ );
43
+ $validationArray['custom_latsw'] = array(
44
+ 'filter' => FILTER_VALIDATE_FLOAT,
45
+ 'flags' => FILTER_REQUIRE_SCALAR,
46
+ 'options' => array(
47
+ 'min_range' => - 90,
48
+ 'max_range' => 90,
49
+ 'default' => 48.1366069,
50
+ ),
51
+ );
52
+ $validationArray['custom_lonsw'] = array(
53
+ 'filter' => FILTER_VALIDATE_FLOAT,
54
+ 'flags' => FILTER_REQUIRE_SCALAR,
55
+ 'options' => array(
56
+ 'min_range' => - 180,
57
+ 'max_range' => 180,
58
+ 'default' => 11.577085099999977,
59
+ ),
60
+ );
61
+ $validationArray['layer_custom'] = FILTER_VALIDATE_BOOLEAN;
62
+ $validationArray['layer_importcsv'] = FILTER_VALIDATE_BOOLEAN;
63
+ $validationArray['import_csv'] = null;
64
+ $validationArray['csvfileorig'] = null;
65
+ $defaults['custom_url'] = null;
66
+ $defaults['custom_latne'] = null;
67
+ $defaults['custom_lonne'] = null;
68
+ $defaults['custom_latsw'] = null;
69
+ $defaults['custom_lonsw'] = null;
70
+ $defaults['layer_custom'] = false;
71
+ $defaults['layer_importcsv'] = false;
72
+ $defaults['import_csv'] = null;
73
+ $defaults['csvfileorig'] = null;
74
+
75
+ }
76
+
77
+ public function enqueueScriptsAndStyles( $deps, $data = null ) {
78
+ wp_enqueue_script( 'intergeo-maps-pro', INTERGEO_ABSURL . 'pro/js/pro.js', $deps, INTERGEO_VERSION, true );
79
+ wp_enqueue_script( 'google-maps-utils', INTERGEO_ABSURL . 'pro/js/gmap-util.js', null, INTERGEO_VERSION, true );
80
+ wp_localize_script( 'intergeo-maps-pro', 'igmp', array(
81
+ 'custom' => $data,
82
+ 'ajax' => array(
83
+ 'export' => 'export_data_pro',
84
+ 'nonce' => wp_create_nonce( INTERGEO_PLUGIN_NAME . INTERGEO_VERSION ),
85
+ ),
86
+ 'messages' => array(
87
+ 'save_map' => __( 'Please save the map before clicking on the export button', 'intergeo-maps' ),
88
+ ),
89
+ ) );
90
+ }
91
+
92
+ function ajax() {
93
+ check_ajax_referer( INTERGEO_PLUGIN_NAME . INTERGEO_VERSION, 'security' );
94
+ switch ( $_POST['action'] ) {
95
+ case 'export_data_pro':
96
+ $this->exportData();
97
+ break;
98
+ }
99
+ wp_die();
100
+ }
101
+
102
+ private function exportData() {
103
+ $map_id = $_POST['id'];
104
+ if ( $map_id ) {
105
+ $map = get_post( intergeo_decode( $map_id ) );
106
+ if ( $map->post_type == INTERGEO_PLUGIN_NAME ) {
107
+ $rows = array();
108
+ $json = json_decode( $map->post_content, true );
109
+ if ( is_array( $json ) ) {
110
+ // drawn markers
111
+ if ( isset( $json['overlays'] ) && isset( $json['overlays']['marker'] ) ) {
112
+ foreach ( $json['overlays']['marker'] as $marker ) {
113
+ $rows[] = array(
114
+ $marker['position'][0],
115
+ $marker['position'][1],
116
+ $marker['info'],
117
+ empty( $marker['icon'] ) ? 'http://maps.google.com/mapfiles/ms/icons/red-dot.png' : $marker['icon'],
118
+ $marker['title'],
119
+ );
120
+ }
121
+ }
122
+ // imported markers - only if it is enabled
123
+ if ( isset( $json['layer'] ) && isset( $json['layer']['importcsv'] ) && $json['layer']['importcsv'] && isset( $json['xml'] ) && is_string( $json['xml'] ) ) {
124
+ $array = explode( '/', $json['xml'] );
125
+ $filename = $array[ count( $array ) - 1 ];
126
+ $dir = wp_upload_dir();
127
+ $parentdir = trailingslashit( $dir['basedir'] ) . trailingslashit( INTERGEO_PLUGIN_NAME );
128
+ $file = $parentdir . $filename;
129
+ if ( file_exists( $file ) ) {
130
+ $xml = simplexml_load_file( $file );
131
+ if ( $xml ) {
132
+ foreach ( $xml->marker as $marker ) {
133
+ $atts = $marker->attributes();
134
+ $rows[] = array(
135
+ $atts['lat'],
136
+ $atts['lng'],
137
+ $atts['name'],
138
+ $atts['icon'],
139
+ '',
140
+ );
141
+ }
142
+ }
143
+ }
144
+ }
145
+ }
146
+ if ( ! empty( $rows ) ) {
147
+ $fp = tmpfile();
148
+ foreach ( $rows as $row ) {
149
+ fputcsv( $fp, $row );
150
+ }
151
+ rewind( $fp );
152
+ $csv = '';
153
+ while ( ( $array = fgetcsv( $fp ) ) !== false ) {
154
+ if ( strlen( $csv ) > 0 ) {
155
+ $csv .= PHP_EOL;
156
+ }
157
+ $csv .= '"' . implode( '","', $array ) . '"';
158
+ }
159
+ fclose( $fp );
160
+ wp_send_json_success( array(
161
+ 'csv' => $csv,
162
+ 'name' => $map_id . '.csv',
163
+ ) );
164
+ }
165
+ }
166
+ }
167
+
168
+ }
169
+
170
+ public function processResults( &$results ) {
171
+ if ( $_FILES ) {
172
+ $filename = $_FILES['import_csv']['tmp_name'];
173
+ $csv = array_map( 'str_getcsv', file( $filename ) );
174
+ $xml = "<?xml version='1.0' encoding='UTF-8'?><markers>";
175
+ foreach ( $csv as $line ) {
176
+ $xml .= '<marker lat="' . htmlspecialchars( $line[0] ) . '" lng="' . htmlspecialchars( $line[1] ) . '" name="' . htmlspecialchars( $line[2] ) . '" icon="' . htmlspecialchars( $line[3] ) . '"/>';
177
+ }
178
+ $xml .= '</markers>';
179
+ $dir = wp_upload_dir();
180
+ $filename = microtime( true ) . '.xml';
181
+ $parentdir = trailingslashit( $dir['basedir'] ) . trailingslashit( INTERGEO_PLUGIN_NAME );
182
+ try {
183
+ if ( ! file_exists( $parentdir ) ) {
184
+ mkdir( $parentdir );
185
+ }
186
+ } catch ( ErrorException $ex ) {
187
+ //TODO report error
188
+ }
189
+ $file = $parentdir . $filename;
190
+ file_put_contents( $file, $xml );
191
+ $results['xml'] = trailingslashit( $dir['baseurl'] ) . trailingslashit( INTERGEO_PLUGIN_NAME ) . $filename;
192
+ } else {
193
+ $results['xml'] = $results['csvfileorig'];
194
+ unset( $results['csvfileorig'] );
195
+ }
196
+ }
197
+
198
+ public function addUploadElements( $json ) {
199
+ include_once INTERGEO_DIR . 'pro/templates/iframe/upload.php';
200
+ }
201
+
202
+ }
203
+ }
204
+ if ( class_exists( 'IntergeoMaps_Adv' ) ) {
205
+ $IntergeoMaps_Adv = new IntergeoMaps_Adv();
206
+ }
pro/js/gmap-util.js ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Returns an XMLHttp instance to use for asynchronous
3
+ * downloading. This method will never throw an exception, but will
4
+ * return NULL if the browser does not support XmlHttp for any reason.
5
+ * @return {XMLHttpRequest|Null}
6
+ */
7
+ function createXmlHttpRequest() {
8
+ try {
9
+ if (typeof ActiveXObject != 'undefined') {
10
+ return new ActiveXObject('Microsoft.XMLHTTP');
11
+ } else if (window["XMLHttpRequest"]) {
12
+ return new XMLHttpRequest();
13
+ }
14
+ } catch (e) {
15
+ changeStatus(e);
16
+ }
17
+ return null;
18
+ };
19
+
20
+ /**
21
+ * This functions wraps XMLHttpRequest open/send function.
22
+ * It lets you specify a URL and will call the callback if
23
+ * it gets a status code of 200.
24
+ * @param {String} url The URL to retrieve
25
+ * @param {Function} callback The function to call once retrieved.
26
+ */
27
+ function downloadUrl(url, callback) {
28
+ var status = -1;
29
+ var request = createXmlHttpRequest();
30
+ if (!request) {
31
+ return false;
32
+ }
33
+
34
+ request.onreadystatechange = function() {
35
+ if (request.readyState == 4) {
36
+ try {
37
+ status = request.status;
38
+ } catch (e) {
39
+ // Usually indicates request timed out in FF.
40
+ }
41
+ if (status == 200) {
42
+ callback(request.responseXML, request.status);
43
+ request.onreadystatechange = function() {};
44
+ }
45
+ }
46
+ }
47
+ request.open('GET', url, true);
48
+ try {
49
+ request.send(null);
50
+ } catch (e) {
51
+ changeStatus(e);
52
+ }
53
+ };
54
+
55
+ /**
56
+ * Parses the given XML string and returns the parsed document in a
57
+ * DOM data structure. This function will return an empty DOM node if
58
+ * XML parsing is not supported in this browser.
59
+ * @param {string} str XML string.
60
+ * @return {Element|Document} DOM.
61
+ */
62
+ function xmlParse(str) {
63
+ if (typeof ActiveXObject != 'undefined' && typeof GetObject != 'undefined') {
64
+ var doc = new ActiveXObject('Microsoft.XMLDOM');
65
+ doc.loadXML(str);
66
+ return doc;
67
+ }
68
+
69
+ if (typeof DOMParser != 'undefined') {
70
+ return (new DOMParser()).parseFromString(str, 'text/xml');
71
+ }
72
+
73
+ return createElement('div', null);
74
+ }
75
+
76
+ /**
77
+ * Appends a JavaScript file to the page.
78
+ * @param {string} url
79
+ */
80
+ function downloadScript(url) {
81
+ var script = document.createElement('script');
82
+ script.src = url;
83
+ document.body.appendChild(script);
84
+ }
pro/js/pro.js ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* global downloadUrl */
2
+ /* global google */
3
+ /* global ajaxurl */
4
+ /* global alert */
5
+ /* global igmp */
6
+ (function ($, igmp) {
7
+
8
+ $(document).ready(function () {
9
+
10
+ var win = window.dialogArguments || opener || parent || top;
11
+ var opts = win.intergeo_maps;
12
+ var mapID = null;
13
+ var __map = win.intergeo_maps_current || window.intergeo_maps_maps || [];
14
+
15
+ if (igmp.custom) {
16
+ mapID = igmp.custom.mapID;
17
+ }
18
+
19
+ for (var i = 0; i < opts.length; i++) {
20
+ var map;
21
+ if (mapID != null && opts[i].container === 'intergeo_map' + mapID) {
22
+ map = __map.map;
23
+ doStuff(opts[i].options, map);
24
+ break;
25
+ } else {
26
+ map = __map[opts[i].container];
27
+ doStuff(opts[i].options, map);
28
+ }
29
+ }
30
+
31
+ function doStuff(options, map) {
32
+ console.log(options);
33
+ if (!options.layer) {
34
+ return;
35
+ }
36
+
37
+ if (options.layer.custom === true) {
38
+ drawCustomOverlay(options, map);
39
+ }
40
+ if (options.layer.importcsv === true) {
41
+ drawImportedMarkers(options, map);
42
+ }
43
+ }
44
+
45
+ function drawImportedMarkers(options, map) {
46
+ var infoWindow = new google.maps.InfoWindow();
47
+ if (mapID != null) {
48
+ google.maps.event.addListener(map, 'click', function () {
49
+ infoWindow.close();
50
+ });
51
+ }
52
+
53
+ downloadUrl(options.xml, function (data) {
54
+ var markers = data.documentElement.getElementsByTagName('marker');
55
+ for (var i = 0; i < markers.length; i++) {
56
+ var latlng = new google.maps.LatLng(parseFloat(markers[i].getAttribute('lat')),
57
+ parseFloat(markers[i].getAttribute('lng')));
58
+ var name = markers[i].getAttribute('name');
59
+ var icon = markers[i].getAttribute('icon');
60
+ var marker = new google.maps.Marker({position: latlng, map: map});
61
+ marker.setIcon(icon);
62
+ bindInfoWindow(marker, map, infoWindow, name);
63
+ }
64
+ });
65
+ }
66
+
67
+ function bindInfoWindow(marker, map, infowindow, html) {
68
+ google.maps.event.addListener(marker, 'click', function () {
69
+ infowindow.setContent(html);
70
+ infowindow.open(map, marker);
71
+ });
72
+ }
73
+
74
+ function drawCustomOverlay(options, map) {
75
+ var bounds = new google.maps.LatLngBounds(
76
+ new google.maps.LatLng(options.custom.latsw, options.custom.lonsw),
77
+ new google.maps.LatLng(options.custom.latne, options.custom.lonne)
78
+ );
79
+
80
+ CustomOverlay.prototype = new google.maps.OverlayView();
81
+ var overlay = new CustomOverlay(bounds, options.url, map);
82
+ }
83
+
84
+ function CustomOverlay(bounds, image, m) {
85
+
86
+ // Initialize all properties.
87
+ this.bounds_ = bounds;
88
+ this.image_ = image;
89
+ this.map_ = m;
90
+
91
+ // Define a property to hold the image's div. We'll
92
+ // actually create this div upon receipt of the onAdd()
93
+ // method so we'll leave it null for now.
94
+ this.div_ = null;
95
+
96
+ // Explicitly call setMap on this overlay.
97
+ this.setMap(m);
98
+ }
99
+
100
+
101
+ CustomOverlay.prototype.onAdd = function () {
102
+ var div = document.createElement('div');
103
+ div.style.borderStyle = 'none';
104
+ div.style.borderWidth = '0px';
105
+ div.style.position = 'absolute';
106
+
107
+ // Create the img element and attach it to the div.
108
+ var img = document.createElement('img');
109
+ img.src = this.image_;
110
+ img.style.width = '100%';
111
+ img.style.height = '100%';
112
+ img.style.position = 'absolute';
113
+ div.appendChild(img);
114
+
115
+ this.div_ = div;
116
+
117
+ // Add the element to the 'overlayLayer' pane.
118
+ var panes = this.getPanes();
119
+ panes.overlayLayer.appendChild(div);
120
+ };
121
+
122
+ CustomOverlay.prototype.draw = function () {
123
+
124
+ // We use the south-west and north-east
125
+ // coordinates of the overlay to peg it to the correct position and size.
126
+ // To do this, we need to retrieve the projection from the overlay.
127
+ var overlayProjection = this.getProjection();
128
+
129
+ // Retrieve the south-west and north-east coordinates of this overlay
130
+ // in LatLngs and convert them to pixel coordinates.
131
+ // We'll use these coordinates to resize the div.
132
+ var sw = overlayProjection.fromLatLngToDivPixel(this.bounds_.getSouthWest());
133
+ var ne = overlayProjection.fromLatLngToDivPixel(this.bounds_.getNorthEast());
134
+
135
+ // Resize the image's div to fit the indicated dimensions.
136
+ var div = this.div_;
137
+ div.style.left = sw.x + 'px';
138
+ div.style.top = ne.y + 'px';
139
+ div.style.width = (ne.x - sw.x) + 'px';
140
+ div.style.height = (sw.y - ne.y) + 'px';
141
+ };
142
+
143
+ // The onRemove() method will be called automatically from the API if
144
+ // we ever set the overlay's map property to 'null'.
145
+ CustomOverlay.prototype.onRemove = function () {
146
+ this.div_.parentNode.removeChild(this.div_);
147
+ this.div_ = null;
148
+ };
149
+
150
+ $('#csvfile').on('change', function () {
151
+ changeFormType($(this));
152
+ });
153
+
154
+ $('#intergeo_export_csv').on('click', function (e) {
155
+ e.preventDefault();
156
+ if (mapID == null) {
157
+ alert(igmp.messages.save_map);
158
+ return;
159
+ }
160
+ $('body').css('cursor', 'progress');
161
+ $.ajax({
162
+ url: ajaxurl,
163
+ method: 'post',
164
+ data: {
165
+ id: mapID,
166
+ action: igmp.ajax['export'],
167
+ security: igmp.ajax.nonce
168
+ },
169
+ success: function (data) {
170
+ var a = document.createElement('a');
171
+ document.body.appendChild(a);
172
+ a.style = 'display: none';
173
+ var blob = new Blob([data.data.csv], {type: 'application/csv'}),
174
+ url = window.URL.createObjectURL(blob);
175
+ a.href = url;
176
+ a.download = data.data.name;
177
+ a.click();
178
+ window.URL.revokeObjectURL(url);
179
+ },
180
+ complete: function () {
181
+ $('body').css('cursor', 'default');
182
+ }
183
+ });
184
+ });
185
+ });
186
+
187
+
188
+ function changeFormType(file) {
189
+ var enctype = '';
190
+ if ($(file).val().length > 0) {
191
+ enctype = 'multipart/form-data';
192
+ $('#layer_importcsv').val(1);
193
+ } else {
194
+ $('#layer_importcsv').val(0);
195
+ }
196
+ $('#intergeo_frm').attr('enctype', enctype);
197
+ }
198
+
199
+
200
+ })(jQuery, igmp);
201
+
pro/templates/iframe/layers.php ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <li class="intergeo_tlbr_ul_li_ul_li">
2
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Custom layer', 'intergeo-maps' ) ?></span>
3
+ <div class="intergeo_tlbr_cntrl_items">
4
+ <?php
5
+ if ( ! intergeo_is_agency() ) {
6
+ ?>
7
+ <a target="_blank" href="<?php echo INTERGEO_PRO_URL; ?>" class="intergeo-pro-btn button"><?php _e( 'Available in Agency plan', 'intergeo-maps' ) ?></a>
8
+ <?php
9
+ } else { ?>
10
+
11
+ <div class="intergeo_tlbr_cntrl_item">
12
+ <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
13
+ <label>
14
+ <input type="hidden" name="layer_custom" value="0">
15
+ <input type="checkbox" name="layer_custom" value="1" <?php checked( isset( $json['layer']['custom'] ) ? $json['layer']['custom'] == 1 : false ) ?>>
16
+ <?php esc_html_e( 'Enabled', 'intergeo-maps' ) ?>
17
+ </label>
18
+ </div>
19
+ <p class="intergeo_tlbr_cntrl_dsc">
20
+ <?php printf( esc_html__( 'Allows you to add custom images to your map.', 'intergeo-maps' ), '<a href="http://gmaps-samples.googlecode.com/svn/trunk/mapcoverage_filtered.html" target="_blank">', '</a>' ) ?>
21
+ </p>
22
+ <div class="intergeo_tlbr_cntrl_item">
23
+ <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
24
+ <?php esc_html_e( 'Image URL', 'intergeo-maps' ) ?>
25
+ <input type="text" name="custom_url" class="intergeo_tlbr_cntrl_txt intergeo_tlbr_cntrl_onkeyup" value="<?php echo isset( $json['custom']['url'] ) ? esc_attr( $json['custom']['url'] ) : '' ?>">
26
+ </div>
27
+ <p class="intergeo_tlbr_cntrl_dsc">
28
+ <?php esc_html_e( 'The URL of the image that will be used for the custom layer.', 'intergeo-maps' ) ?>
29
+ </p>
30
+ <div class="intergeo_tlbr_cntrl_item">
31
+ <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
32
+ <?php esc_html_e( 'South-west Latitude/Longitude', 'intergeo-maps' ) ?>
33
+ <input type="text" name="custom_latsw" class="intergeo_tlbr_cntrl_txt intergeo_tlbr_cntrl_onkeyup" value="<?php echo isset( $json['custom']['latsw'] ) ? esc_attr( $json['custom']['latsw'] ) : '' ?>" placeholder="<?php esc_html_e( 'Latitude', 'intergeo-maps' )?>" >
34
+ <input type="text" name="custom_lonsw" class="intergeo_tlbr_cntrl_txt intergeo_tlbr_cntrl_onkeyup" value="<?php echo isset( $json['custom']['lonsw'] ) ? esc_attr( $json['custom']['lonsw'] ) : '' ?>" placeholder="<?php esc_html_e( 'Longitude', 'intergeo-maps' )?>" >
35
+ </div>
36
+ <p class="intergeo_tlbr_cntrl_dsc">
37
+ <?php esc_html_e( 'The latitude/longitude of the south-west (bottom-left) edge of the map to position the image.', 'intergeo-maps' ) ?>
38
+ </p>
39
+ <div class="intergeo_tlbr_cntrl_item">
40
+ <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
41
+ <?php esc_html_e( 'North-east Latitude/Longitude', 'intergeo-maps' ) ?>
42
+ <input type="text" name="custom_latne" class="intergeo_tlbr_cntrl_txt intergeo_tlbr_cntrl_onkeyup" value="<?php echo isset( $json['custom']['latne'] ) ? esc_attr( $json['custom']['latne'] ) : '' ?>" placeholder="<?php esc_html_e( 'Latitude', 'intergeo-maps' )?>" >
43
+ <input type="text" name="custom_lonne" class="intergeo_tlbr_cntrl_txt intergeo_tlbr_cntrl_onkeyup" value="<?php echo isset( $json['custom']['lonne'] ) ? esc_attr( $json['custom']['lonne'] ) : '' ?>" placeholder="<?php esc_html_e( 'Longitude', 'intergeo-maps' )?>" >
44
+ </div>
45
+ <p class="intergeo_tlbr_cntrl_dsc">
46
+ <?php esc_html_e( 'The latitude/longitude of the north-east (top-right) edge of the map to position the image.', 'intergeo-maps' ) ?>
47
+
48
+ <?php } ?>
49
+ </div>
50
+ </li>
pro/templates/iframe/upload.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <li class="intergeo_tlbr_ul_li_ul_li">
2
+ <p class="intergeo_tlbr_grp_dsc">
3
+ <?php esc_html_e( 'To import data, please import a CSV file. Here is a sample', 'intergeo-maps' ) ?>
4
+ : <a href="<?php echo INTERGEO_ABSURL . 'samples/default.csv' ?>" target="_blank"><?php esc_html_e( 'Click here', 'intergeo-maps' ); ?></a>
5
+ </p>
6
+ </li>
7
+
8
+ <li class="intergeo_tlbr_ul_li_ul_li">
9
+ <div class="intergeo_tlbr_cntrl_items" style="display:block">
10
+ <div class="form-inline">
11
+ <div class="button button-primary file-wrapper computer-btn">
12
+ <input type="hidden" name="csvfileorig" value="<?php echo (isset( $json['xml'] ) ? $json['xml'] : '') ?>">
13
+ <input type="hidden" name="layer_importcsv" id="layer_importcsv" value="<?php echo isset( $json['layer']['importcsv'] ) ? 1 : 0?>">
14
+ <input type="file" id="csvfile" class="file" name="import_csv">
15
+ <?php esc_attr_e( 'From Computer', 'intergeo-maps' ) ?>
16
+ </div>
17
+ </div>
18
+ </div>
19
+ </li>
20
+
21
+ <li class="intergeo_tlbr_ul_li_ul_li">
22
+ <p class="intergeo_tlbr_grp_dsc">
23
+ <?php esc_html_e( 'To export data, click on the button below', 'intergeo-maps' ) ?>
24
+ </p>
25
+ </li>
26
+
27
+ <li class="intergeo_tlbr_ul_li_ul_li">
28
+ <div class="intergeo_tlbr_cntrl_items" style="display:block">
29
+ <div class="form-inline">
30
+ <div class="button button-primary file-wrapper computer-btn" id="intergeo_export_csv">
31
+ <input type="button" class="file">
32
+ <?php esc_attr_e( 'Export markers as CSV', 'intergeo-maps' ) ?>
33
+ </div>
34
+ </div>
35
+ </div>
36
+ </li>
readme.txt CHANGED
@@ -1,8 +1,8 @@
1
- === WordPress Google Maps Plugin Lite ===
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.6.1
6
  Stable tag: trunk
7
  License: GPL v2.0 or later
8
  License URI: http://www.opensource.org/licenses/gpl-license.php
@@ -19,9 +19,21 @@ The powerful UI builder allows users to:
19
  * Setup initial position and zooming level of a map;
20
  * Adjust controls settings and positioning;
21
  * Setup map color styles by using predefined color schemes or by using custom color settings;
22
- * Add overlays like markers, rectangles, circles, polylines and polygons;
23
- * Create directions routes from A address to B address;
24
- * Integrate AdSense service into your maps and earn money by displaying ads on maps.
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
  ### Create Google maps with shortcode ###
27
 
@@ -31,14 +43,6 @@ To create new WordPress maps you just can input simple shortcode into your post,
31
 
32
  This shortcode will be displayed as Google Maps 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.
33
 
34
- > **Time-saving features available in the Pro version:**
35
- >
36
- > * Custom layers for maps
37
- > * Import markers in bulk
38
- > * Priority email support from the developer of the plugin
39
- > * Support and updates for 1 year
40
- >
41
- > **[Learn more about Intergeo Maps Pro](http://themeisle.com/plugins/intergeo-maps-pro/)**
42
 
43
  The following table describes all possible attributes, which users can use with shortcodes:
44
 
@@ -123,16 +127,13 @@ function filter_intergeo_map_settings( $options ) {
123
  return $options;
124
  }`
125
 
126
- == Screenshots ==
 
 
127
 
128
- 1. Directions Google Maps layer
129
- 2. Wather and cloud Google Maps layers
130
- 3. Panaramio layer and styles settings
131
- 4. Bicycling layer and gray styles
132
- 5. Overlay settings
133
- 6. Markers settings
134
 
135
- == Changelog ==
136
 
137
  = 1.1.6 =
138
 
1
+ === WordPress 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.7
6
  Stable tag: trunk
7
  License: GPL v2.0 or later
8
  License URI: http://www.opensource.org/licenses/gpl-license.php
19
  * Setup initial position and zooming level of a map;
20
  * Adjust controls settings and positioning;
21
  * Setup map color styles by using predefined color schemes or by using custom color settings;
22
+ * Add markers;
23
+
24
+ > **Time-saving features available in the FULL version:**
25
+ >
26
+ > * Unlimited maps
27
+ > * Unlimited markers
28
+ > * Add overlays like rectangles, circles, polylines and polygons using the build or the drawing tools;
29
+ > * Create directions routes from A address to B address;
30
+ > * Integrate AdSense service into your maps and earn money by displaying ads on maps.
31
+ > * Import/Export Markers
32
+ > * Custom Layers
33
+ > * Support and updates for 12 months
34
+ >
35
+ > **[Learn more about Feedzy Full version]( https://themeisle.com/plugins/intergeo-maps/ )**
36
+
37
 
38
  ### Create Google maps with shortcode ###
39
 
43
 
44
  This shortcode will be displayed as Google Maps 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.
45
 
 
 
 
 
 
 
 
 
46
 
47
  The following table describes all possible attributes, which users can use with shortcodes:
48
 
127
  return $options;
128
  }`
129
 
130
+ == Changelog ==
131
+
132
+ = 2.0.0 =
133
 
134
+ * Major code refactor
135
+ * Improved compatibility with the pro version
 
 
 
 
136
 
 
137
 
138
  = 1.1.6 =
139
 
samples/default.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ 48.119114,11.556227,"First value is the latitude, second is the longitude",http://maps.google.com/mapfiles/ms/icons/blue-dot.png
2
+ 48.5,12.5,"This is marker two",http://maps.google.com/mapfiles/ms/icons/red-dot.png
3
+ 49,13,"This is marker <b>three</b>",http://maps.google.com/mapfiles/ms/icons/yellow-dot.png
subscribe/mailin.php ADDED
@@ -0,0 +1,868 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * SendinBlue REST client
5
+ */
6
+
7
+ class Mailin {
8
+
9
+ public $api_key;
10
+ public $base_url;
11
+ public $curl_opts = array();
12
+ public function __construct( $base_url, $api_key ) {
13
+ if ( ! function_exists( 'curl_init' ) ) {
14
+ throw new Exception( 'Mailin requires CURL module' );
15
+ }
16
+ $this->base_url = $base_url;
17
+ $this->api_key = $api_key;
18
+ }
19
+ /**
20
+ * Do CURL request with authorization
21
+ */
22
+ private function do_request( $resource, $method, $input ) {
23
+ $called_url = $this->base_url . '/' . $resource;
24
+ $ch = curl_init( $called_url );
25
+ $auth_header = 'api-key:' . $this->api_key;
26
+ $content_header = 'Content-Type:application/json';
27
+ if ( strtoupper( substr( PHP_OS, 0, 3 ) ) === 'WIN' ) {
28
+ // Windows only over-ride
29
+ curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false );
30
+ }
31
+ curl_setopt( $ch, CURLOPT_HTTPHEADER, array( $auth_header, $content_header ) );
32
+ curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1 );
33
+ curl_setopt( $ch, CURLOPT_CUSTOMREQUEST, $method );
34
+ curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
35
+ curl_setopt( $ch, CURLOPT_HEADER, 0 );
36
+ curl_setopt( $ch, CURLOPT_POSTFIELDS, $input );
37
+ $data = curl_exec( $ch );
38
+ if ( curl_errno( $ch ) ) {
39
+ echo 'Curl error: ' . curl_error( $ch ) . '\n';
40
+ }
41
+ curl_close( $ch );
42
+ return json_decode( $data,true );
43
+ }
44
+ public function get( $resource, $input ) {
45
+ return $this->do_request( $resource,'GET',$input );
46
+ }
47
+ public function put( $resource, $input ) {
48
+ return $this->do_request( $resource,'PUT',$input );
49
+ }
50
+ public function post( $resource, $input ) {
51
+ return $this->do_request( $resource,'POST',$input );
52
+ }
53
+ public function delete( $resource, $input ) {
54
+ return $this->do_request( $resource,'DELETE',$input );
55
+ }
56
+
57
+ /*
58
+ Get Account.
59
+ No input required
60
+ */
61
+ public function get_account() {
62
+ return $this->get( 'account','' );
63
+ }
64
+
65
+ /*
66
+ Get SMTP details.
67
+ No input required
68
+ */
69
+ public function get_smtp_details() {
70
+ return $this->get( 'account/smtpdetail','' );
71
+ }
72
+
73
+ /*
74
+ Create Child Account.
75
+ @param {Array} data contains php array with key value pair.
76
+ @options data {String} child_email: Email address of Reseller child [Mandatory]
77
+ @options data {String} password: Password of Reseller child to login [Mandatory]
78
+ @options data {String} company_org: Name of Reseller child’s company [Mandatory]
79
+ @options data {String} first_name: First name of Reseller child [Mandatory]
80
+ @options data {String} last_name: Last name of Reseller child [Mandatory]
81
+ @options data {Array} credits: Number of email & sms credits respectively, which will be assigned to the Reseller child’s account [Optional]
82
+ - email_credit {Integer} number of email credits
83
+ - sms_credit {Integer} Number of sms credts
84
+ @options data {Array} associate_ip: Associate dedicated IPs to reseller child. You can use commas to separate multiple IPs [Optional]
85
+ */
86
+ public function create_child_account( $data ) {
87
+ return $this->post( 'account',json_encode( $data ) );
88
+ }
89
+
90
+ /*
91
+ Update Child Account.
92
+ @param {Array} data contains php array with key value pair.
93
+ @options data {String} auth_key: 16 character authorization key of Reseller child to be modified [Mandatory]
94
+ @options data {String} company_org: Name of Reseller child’s company [Optional]
95
+ @options data {String} first_name: First name of Reseller child [Optional]
96
+ @options data {String} last_name: Last name of Reseller child [Optional]
97
+ @options data {String} password: Password of Reseller child to login [Optional]
98
+ @options data {Array} associate_ip: Associate dedicated IPs to reseller child. You can use commas to separate multiple IPs [Optional]
99
+ @options data {Array} disassociate_ip: Disassociate dedicated IPs from reseller child. You can use commas to separate multiple IPs [Optional]
100
+ */
101
+ public function update_child_account( $data ) {
102
+ return $this->put( 'account',json_encode( $data ) );
103
+ }
104
+
105
+ /*
106
+ Delete Child Account.
107
+ @param {Array} data contains php array with key value pair.
108
+ @options data {String} auth_key: 16 character authorization key of Reseller child to be deleted [Mandatory]
109
+ */
110
+ public function delete_child_account( $data ) {
111
+ return $this->delete( 'account/' . $data['auth_key'],'' );
112
+ }
113
+
114
+ /*
115
+ Get Reseller child Account.
116
+ @param {Array} data contains php array with key value pair.
117
+ @options data {String} auth_key: 16 character authorization key of Reseller child. Example : To get the details of more than one child account, use, {"key1":"abC01De2fGHI3jkL","key2":"mnO45Pq6rSTU7vWX"} [Mandatory]
118
+ */
119
+ public function get_reseller_child( $data ) {
120
+ return $this->post( 'account/getchildv2',json_encode( $data ) );
121
+ }
122
+
123
+ /*
124
+ Add/Remove Reseller child's Email/Sms credits.
125
+ @param {Array} data contains php array with key value pair.
126
+ @options data {String} auth_key: 16 character authorization key of Reseller child to modify credits [Mandatory]
127
+ @options data {Array} add_credit: Number of email & sms credits to be added. You can assign either email or sms credits, one at a time other will remain 0. [Mandatory: if rmv_credit is empty]
128
+ - email_credit {Integer} number of email credits
129
+ - sms_credit {Integer} Number of sms credts
130
+ @options data {Array} rmv_credit: Number of email & sms credits to be removed. You can assign either email or sms credits, one at a time other will remain 0. [Mandatory: if add_credits is empty]
131
+ - email_credit {Integer} number of email credits
132
+ - sms_credit {Integer} Number of sms credts
133
+ */
134
+ public function add_remove_child_credits( $data ) {
135
+ return $this->post( 'account/addrmvcredit',json_encode( $data ) );
136
+ }
137
+
138
+ /*
139
+ Get a particular campaign detail.
140
+ @param {Array} data contains php array with key value pair.
141
+ @options data {Integer} id: Unique Id of the campaign [Mandatory]
142
+ */
143
+ public function get_campaign_v2( $data ) {
144
+ return $this->get( 'campaign/' . $data['id'] . '/detailsv2','' );
145
+ }
146
+
147
+ /*
148
+ Get all campaigns detail.
149
+ @param {Array} data contains php array with key value pair.
150
+ @options data {String} type: Type of campaign. Possible values – classic, trigger, sms, template ( case sensitive ) [Optional]
151
+ @options data {String} status: Status of campaign. Possible values – draft, sent, archive, queued, suspended, in_process, temp_active, temp_inactive ( case sensitive ) [Optional]
152
+ @options data {Integer} page: Maximum number of records per request is 500, if there are more than 500 campaigns then you can use this parameter to get next 500 results [Optional]
153
+ @options data {Integer} page_limit: This should be a valid number between 1-500 [Optional]
154
+ */
155
+ public function get_campaigns_v2( $data ) {
156
+ return $this->get( 'campaign/detailsv2',json_encode( $data ) );
157
+ }
158
+
159
+ /*
160
+ Create and Schedule your campaigns. It returns the ID of the created campaign.
161
+ @param {Array} data contains php array with key value pair.
162
+ @options data {String} category: Tag name of the campaign [Optional]
163
+ @options data {String} from_name: Sender name from which the campaign emails are sent [Mandatory: for Dedicated IP clients, please make sure that the sender details are defined here, and in case of no sender, you can add them also via API & for Shared IP clients, if sender exists]
164
+ @options data {String} name: Name of the campaign [Mandatory]
165
+ @options data {String} bat: Email address for test mail [Optional]
166
+ @options data {String} html_content: Body of the content. The HTML content field must have more than 10 characters [Mandatory: if html_url is empty]
167
+ @options data {String} html_url: Url which content is the body of content [Mandatory: if html_content is empty]
168
+ @options data {Array} listid: These are the lists to which the campaign has been sent [Mandatory: if scheduled_date is not empty]
169
+ @options data {String} scheduled_date: The day on which the campaign is supposed to run[Optional]
170
+ @options data {String} subject: Subject of the campaign [Mandatory]
171
+ @options data {String} from_email: Sender email from which the campaign emails are sent [Mandatory: for Dedicated IP clients, please make sure that the sender details are defined here, and in case of no sender, you can add them also via API & for Shared IP clients, if sender exists]
172
+ @options data {String} reply_to: The reply to email in the campaign emails [Optional]
173
+ @options data {String} to_field: This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [PRENOM] [NOM] To use the contact attributes here, these should already exist in SendinBlue account [Optional]
174
+ @options data {Array} exclude_list: These are the lists which must be excluded from the campaign [Optional]
175
+ @options data {String} attachment_url: Provide the absolute url of the attachment [Optional]
176
+ @options data {Integer} inline_image: Status of inline image. Possible values = 0 (default) & 1. inline_image = 0 means image can’t be embedded, & inline_image = 1 means image can be embedded, in the email [Optional]
177
+ @options data {Integer} mirror_active: Status of mirror links in campaign. Possible values = 0 & 1 (default). mirror_active = 0 means mirror links are deactivated, & mirror_active = 1 means mirror links are activated, in the campaign [Optional]
178
+ @options data {Integer} send_now: Flag to send campaign now. Possible values = 0 (default) & 1. send_now = 0 means campaign can’t be send now, & send_now = 1 means campaign ready to send now [Optional]
179
+
180
+ */
181
+ public function create_campaign( $data ) {
182
+ return $this->post( 'campaign',json_encode( $data ) );
183
+ }
184
+
185
+ /*
186
+ Update your campaign.
187
+ @param {Array} data contains php array with key value pair.
188
+ @options data {Integer} id: Id of campaign to be modified [Mandatory]
189
+ @options data {String} category: Tag name of the campaign [Optional]
190
+ @options data {String} from_name: Sender name from which the campaign emails are sent [Mandatory: for Dedicated IP clients, please make sure that the sender details are defined here, and in case of no sender, you can add them also via API & for Shared IP clients, if sender exists]
191
+ @options data {String} name: Name of the campaign [Optional]
192
+ @options data {String} bat: Email address for test mail [Optional]
193
+ @options data {String} html_content: Body of the content. The HTML content field must have more than 10 characters [Optional]
194
+ @options data {String} html_url: Url which content is the body of content [Optional]
195
+ @options data {Array} listid These are the lists to which the campaign has been sent [Mandatory: if scheduled_date is not empty]
196
+ @options data {String} scheduled_date: The day on which the campaign is supposed to run[Optional]
197
+ @options data {String} subject: Subject of the campaign.
198
+ @options data {String} from_email: Sender email from which the campaign emails are sent [Mandatory: for Dedicated IP clients, please make sure that the sender details are defined here, and in case of no sender, you can add them also via API & for Shared IP clients, if sender exists]
199
+ @options data {String} reply_to: The reply to email in the campaign emails [Optional]
200
+ @options data {String} to_field: This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [PRENOM] [NOM]. To use the contact attributes here, these should already exist in SendinBlue account [Optional]
201
+ @options data {Array} exclude_list: These are the lists which must be excluded from the campaign [Optional]
202
+ @options data {String} attachment_url: Provide the absolute url of the attachment [Optional]
203
+ @options data {Integer} inline_image: Status of inline image. Possible values = 0 (default) & 1. inline_image = 0 means image can’t be embedded, & inline_image = 1 means image can be embedded, in the email [Optional]
204
+ @options data {Integer} mirror_active: Status of mirror links in campaign. Possible values = 0 & 1 (default). mirror_active = 0 means mirror links are deactivated, & mirror_active = 1 means mirror links are activated, in the campaign [Optional]
205
+ @options data {Integer} send_now: Flag to send campaign now. Possible values = 0 (default) & 1. send_now = 0 means campaign can’t be send now, & send_now = 1 means campaign ready to send now [Optional]
206
+ */
207
+ public function update_campaign( $data ) {
208
+ $id = $data['id'];
209
+ unset( $data['id'] );
210
+ return $this->put( 'campaign/' . $id,json_encode( $data ) );
211
+ }
212
+
213
+ /*
214
+ Delete your campaigns.
215
+ @param {Array} data contains php array with key value pair.
216
+ @options data {Integer} id: Id of campaign to be deleted [Mandatory]
217
+ */
218
+ public function delete_campaign( $data ) {
219
+ return $this->delete( 'campaign/' . $data['id'],'' );
220
+ }
221
+
222
+ /*
223
+ Send report of Sent and Archived campaign.
224
+ @param {Array} data contains php array with key value pair.
225
+ @options data {Integer} id: Id of campaign to send its report [Mandatory]
226
+ @options data {String} lang: Language of email content. Possible values – fr (default), en, es, it & pt [Optional]
227
+ @options data {String} email_subject: Message subject [Mandatory]
228
+ @options data {Array} email_to: Email address of the recipient(s). Example: "test@example.net". You can use commas to separate multiple recipients [Mandatory]
229
+ @options data {String} email_content_type: Body of the message in text/HTML version. Possible values – text & html [Mandatory]
230
+ @options data {Array} email_bcc: Same as email_to but for Bcc [Optional]
231
+ @options data {Array} email_cc: Same as email_to but for Cc [Optional]
232
+ @options data {String} email_body: Body of the message [Mandatory]
233
+ */
234
+ public function campaign_report_email( $data ) {
235
+ $id = $data['id'];
236
+ unset( $data['id'] );
237
+ return $this->post( 'campaign/' . $id . '/report',json_encode( $data ) );
238
+ }
239
+
240
+ /*
241
+ Export the recipients of a specified campaign.
242
+ @param {Array} data contains php array with key value pair.
243
+ @options data {Integer} id: Id of campaign to export its recipients [Mandatory]
244
+ @options data {String} notify_url: URL that will be called once the export process is finished [Mandatory]
245
+ @options data {String} type: Type of recipients. Possible values – all, non_clicker, non_opener, clicker, opener, soft_bounces, hard_bounces & unsubscribes [Mandatory]
246
+ */
247
+ public function campaign_recipients_export( $data ) {
248
+ $id = $data['id'];
249
+ unset( $data['id'] );
250
+ return $this->post( 'campaign/' . $id . '/recipients',json_encode( $data ) );
251
+ }
252
+
253
+ /*
254
+ Get the Campaign name, subject and share link of the classic type campaigns only which are sent, for those which are not sent and the rest of campaign types like trigger, template & sms, will return an error message of share link not available.
255
+ @param {Array} data contains php array with key value pair.
256
+ @options data {Array} camp_ids: Id of campaign to get share link. You can use commas to separate multiple ids [Mandatory]
257
+ */
258
+
259
+ public function share_campaign( $data ) {
260
+ return $this->post( 'campaign/sharelinkv2',json_encode( $data ) );
261
+ }
262
+
263
+ /*
264
+ Send a Test Campaign.
265
+ @param {Array} data contains php array with key value pair.
266
+ @options data {Integer} id: Id of the campaign [Mandatory]
267
+ @options data {Array} emails: Email address of recipient(s) existing in the one of the lists & should not be blacklisted. Example: "test@example.net". You can use commas to separate multiple recipients [Mandatory]
268
+ */
269
+ public function send_bat_email( $data ) {
270
+ $id = $data['id'];
271
+ unset( $data['id'] );
272
+ return $this->post( 'campaign/' . $id . '/test',json_encode( $data ) );
273
+ }
274
+
275
+ /*
276
+ Update the Campaign status.
277
+ @param {Array} data contains php array with key value pair.
278
+ @options data {Integer} id: Id of campaign to update its status [Mandatory]
279
+ @options data {String} status: Types of status. Possible values – suspended, archive, darchive, sent, queued, replicate and replicate_template ( case sensitive ) [Mandatory]
280
+ */
281
+ public function update_campaign_status( $data ) {
282
+ $id = $data['id'];
283
+ unset( $data['id'] );
284
+ return $this->put( 'campaign/' . $id . '/updatecampstatus',json_encode( $data ) );
285
+ }
286
+
287
+ /*
288
+ Create and schedule your Trigger campaigns.
289
+ @param {Array} data contains php array with key value pair.
290
+ @options data {String} category: Tag name of the campaign [Optional]
291
+ @options data {String} from_name: Sender name from which the campaign emails are sent [Mandatory: for Dedicated IP clients, please make sure that the sender details are defined here, and in case of no sender, you can add them also via API & for Shared IP clients, if sender exists]
292
+ @options data {String} trigger_name: Name of the campaign [Mandatory]
293
+ @options data {String} bat: Email address for test mail [Optional]
294
+ @options data {String} html_content: Body of the content. The HTML content field must have more than 10 characters [Mandatory: if html_url is empty]
295
+ @options data {String} html_url: Url which content is the body of content [Mandatory: if html_content is empty]
296
+ @options data {Array} listid: These are the lists to which the campaign has been sent [Mandatory: if scheduled_date is not empty]
297
+ @options data {String} scheduled_date: The day on which the campaign is supposed to run[Optional]
298
+ @options data {String} subject: Subject of the campaign [Mandatory]
299
+ @options data {String} from_email: Sender email from which the campaign emails are sent [Mandatory: for Dedicated IP clients, please make sure that the sender details are defined here, and in case of no sender, you can add them also via API & for Shared IP clients, if sender exists]
300
+ @options data {String} reply_to: The reply to email in the campaign emails [Optional]
301
+ @options data {String} to_field: This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [PRENOM] [NOM]. To use the contact attributes here, these should already exist in SendinBlue account [Optional]
302
+ @options data {Array} exclude_list: These are the lists which must be excluded from the campaign [Optional]
303
+ @options data {Integer} recurring: Type of trigger campaign. Possible values = 0 (default) & 1. recurring = 0 means contact can receive the same Trigger campaign only once, & recurring = 1 means contact can receive the same Trigger campaign several times [Optional]
304
+ @options data {String} attachment_url: Provide the absolute url of the attachment [Optional]
305
+ @options data {Integer} inline_image: Status of inline image. Possible values = 0 (default) & 1. inline_image = 0 means image can’t be embedded, & inline_image = 1 means image can be embedded, in the email [Optional]
306
+ @options data {Integer} mirror_active: Status of mirror links in campaign. Possible values = 0 & 1 (default). mirror_active = 0 means mirror links are deactivated, & mirror_active = 1 means mirror links are activated, in the campaign [Optional]
307
+ @options data {Integer} send_now: Flag to send campaign now. Possible values = 0 (default) & 1. send_now = 0 means campaign can’t be send now, & send_now = 1 means campaign ready to send now [Optional]
308
+ */
309
+ public function create_trigger_campaign( $data ) {
310
+ return $this->post( 'campaign',json_encode( $data ) );
311
+ }
312
+
313
+ /*
314
+ Update and schedule your Trigger campaigns.
315
+ @param {Array} data contains php array with key value pair.
316
+ @options data {Integer} id: Id of Trigger campaign to be modified [Mandatory]
317
+ @options data {String} category: Tag name of the campaign [Optional]
318
+ @options data {String} from_name: Sender name from which the campaign emails are sent [Mandatory: for Dedicated IP clients, please make sure that the sender details are defined here, and in case of no sender, you can add them also via API & for Shared IP clients, if sender exists]
319
+ @options data {String} trigger_name: Name of the campaign [Mandatory]
320
+ @options data {String} bat Email address for test mail [Optional]
321
+ @options data {String} html_content: Body of the content. The HTML content field must have more than 10 characters [Mandatory: if html_url is empty]
322
+ @options data {String} html_url: Url which content is the body of content [Mandatory: if html_content is empty]
323
+ @options data {Array} listid: These are the lists to which the campaign has been sent [Mandatory: if scheduled_date is not empty]
324
+ @options data {String} scheduled_date: The day on which the campaign is supposed to run[Optional]
325
+ @options data {String} subject: Subject of the campaign [Mandatory]
326
+ @options data {String} from_email: Sender email from which the campaign emails are sent [Mandatory: for Dedicated IP clients, please make sure that the sender details are defined here, and in case of no sender, you can add them also via API & for Shared IP clients, if sender exists]
327
+ @options data {String} reply_to: The reply to email in the campaign emails [Optional]
328
+ @options data {String} to_field: This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [PRENOM] [NOM]. To use the contact attributes here, these should already exist in SendinBlue account [Optional]
329
+ @options data {Array} exclude_list: These are the lists which must be excluded from the campaign [Optional]
330
+ @options data {Integer} recurring: Type of trigger campaign. Possible values = 0 (default) & 1. recurring = 0 means contact can receive the same Trigger campaign only once, & recurring = 1 means contact can receive the same Trigger campaign several times [Optional]
331
+ @options data {String} attachment_url: Provide the absolute url of the attachment [Optional]
332
+ @options data {Integer} inline_image: Status of inline image. Possible values = 0 (default) & 1. inline_image = 0 means image can’t be embedded, & inline_image = 1 means image can be embedded, in the email [Optional]
333
+ @options data {Integer} mirror_active: Status of mirror links in campaign. Possible values = 0 & 1 (default). mirror_active = 0 means mirror links are deactivated, & mirror_active = 1 means mirror links are activated, in the campaign [Optional]
334
+ @options data {Integer} send_now: Flag to send campaign now. Possible values = 0 (default) & 1. send_now = 0 means campaign can’t be send now, & send_now = 1 means campaign ready to send now [Optional]
335
+ */
336
+ public function update_trigger_campaign( $data ) {
337
+ $id = $data['id'];
338
+ unset( $data['id'] );
339
+ return $this->put( 'campaign/' . $id,json_encode( $data ) );
340
+ }
341
+
342
+ /*
343
+ Get all folders detail.
344
+ @param {Array} data contains php array with key value pair.
345
+ @options data {Integer} page: Maximum number of records per request is 50, if there are more than 50 folders then you can use this parameter to get next 50 results [Mandatory]
346
+ @options data {Integer} page_limit: This should be a valid number between 1-50 [Mandatory]
347
+ */
348
+ public function get_folders( $data ) {
349
+ return $this->get( 'folder',json_encode( $data ) );
350
+ }
351
+
352
+ /*
353
+ Get a particular folder detail.
354
+ @param {Array} data contains php array with key value pair.
355
+ @options data {Integer} id: Id of folder to get details [Mandatory]
356
+ */
357
+ public function get_folder( $data ) {
358
+ return $this->get( 'folder/' . $data['id'],'' );
359
+ }
360
+
361
+ /*
362
+ Create a new folder.
363
+ @param {Array} data contains php array with key value pair.
364
+ @options data {String} name: Desired name of the folder to be created [Mandatory]
365
+ */
366
+ public function create_folder( $data ) {
367
+ return $this->post( 'folder',json_encode( $data ) );
368
+ }
369
+
370
+ /*
371
+ Delete a specific folder information.
372
+ @param {Array} data contains php array with key value pair.
373
+ @options data {Integer} id: Id of folder to be deleted [Mandatory]
374
+ */
375
+ public function delete_folder( $data ) {
376
+ return $this->delete( 'folder/' . $data['id'],'' );
377
+ }
378
+
379
+ /*
380
+ Update an existing folder.
381
+ @param {Array} data contains php array with key value pair.
382
+ @options data {Integer} id: Id of folder to be modified [Mandatory]
383
+ @options data {String} name: Desired name of the folder to be modified [Mandatory]
384
+ */
385
+ public function update_folder( $data ) {
386
+ $id = $data['id'];
387
+ unset( $data['id'] );
388
+ return $this->put( 'folder/' . $id,json_encode( $data ) );
389
+ }
390
+
391
+ /*
392
+ Get all lists detail.
393
+ @param {Array} data contains php array with key value pair.
394
+ @options data {Integer} list_parent: This is the existing folder id & can be used to get all lists belonging to it [Optional]
395
+ @options data {Integer} page: Maximum number of records per request is 50, if there are more than 50 processes then you can use this parameter to get next 50 results [Mandatory]
396
+ @options data {Integer} page_limit: This should be a valid number between 1-50 [Mandatory]
397
+ */
398
+ public function get_lists( $data ) {
399
+ return $this->get( 'list',json_encode( $data ) );
400
+ }
401
+
402
+ /*
403
+ Get a particular list detail.
404
+ @param {Array} data contains php array with key value pair.
405
+ @options data {Integer} id: Id of list to get details [Mandatory]
406
+ */
407
+ public function get_list( $data ) {
408
+ return $this->get( 'list/' . $data['id'],'' );
409
+ }
410
+
411
+ /*
412
+ Create a new list.
413
+ @param {Array} data contains php array with key value pair.
414
+ @options data {String} list_name: Desired name of the list to be created [Mandatory]
415
+ @options data {Integer} list_parent: Folder ID [Mandatory]
416
+ */
417
+ public function create_list( $data ) {
418
+ return $this->post( 'list',json_encode( $data ) );
419
+ }
420
+
421
+ /*
422
+ Update a list.
423
+ @param {Array} data contains php array with key value pair.
424
+ @options data {Integer} id: Id of list to be modified [Mandatory]
425
+ @options data {String} list_name: Desired name of the list to be modified [Optional]
426
+ @options data {Integer} list_parent: Folder ID [Mandatory]
427
+ */
428
+ public function update_list( $data ) {
429
+ $id = $data['id'];
430
+ unset( $data['id'] );
431
+ return $this->put( 'list/' . $id,json_encode( $data ) );
432
+ }
433
+
434
+ /*
435
+ Delete a specific list.
436
+ @param {Array} data contains php array with key value pair.
437
+ @options data {Integer} id: Id of list to be deleted [Mandatory]
438
+ */
439
+ public function delete_list( $data ) {
440
+ return $this->delete( 'list/' . $data['id'],'' );
441
+ }
442
+
443
+ /*
444
+ Display details of all users for the given lists.
445
+ @param {Array} data contains php array with key value pair.
446
+ @options data {Array} listids: These are the list ids to get their data. The ids found will display records [Mandatory]
447
+ @options data {String} timestamp: This is date-time filter to fetch modified user records >= this time. Valid format Y-m-d H:i:s. Example: "2015-05-22 14:30:00" [Optional]
448
+ @options data {Integer} page: Maximum number of records per request is 500, if in your list there are more than 500 users then you can use this parameter to get next 500 results [Optional]
449
+ @options data {Integer} page_limit: This should be a valid number between 1-500 [Optional]
450
+ */
451
+ public function display_list_users( $data ) {
452
+ return $this->post( 'list/display',json_encode( $data ) );
453
+ }
454
+
455
+ /*
456
+ Add already existing users in the SendinBlue contacts to the list.
457
+ @param {Array} data contains php array with key value pair.
458
+ @options data {Integer} id: Id of list to link users in it [Mandatory]
459
+ @options data {Array} users: Email address of the already existing user(s) in the SendinBlue contacts. Example: "test@example.net". You can use commas to separate multiple users [Mandatory]
460
+ */
461
+
462
+ public function add_users_list( $data ) {
463
+ $id = $data['id'];
464
+ unset( $data['id'] );
465
+ return $this->post( 'list/' . $id . '/users',json_encode( $data ) );
466
+ }
467
+
468
+ /*
469
+ Delete already existing users in the SendinBlue contacts from the list.
470
+ @param {Array} data contains php array with key value pair.
471
+ @options data {Integer} id: Id of list to unlink users from it [Mandatory]
472
+ @options data {Array} users: Email address of the already existing user(s) in the SendinBlue contacts to be modified. Example: "test@example.net". You can use commas to separate multiple users [Mandatory]
473
+ */
474
+ public function delete_users_list( $data ) {
475
+ $id = $data['id'];
476
+ unset( $data['id'] );
477
+ return $this->delete( 'list/' . $id . '/delusers',json_encode( $data ) );
478
+ }
479
+
480
+ /*
481
+ Access all the attributes information under the account.
482
+ No input required
483
+ */
484
+ public function get_attributes() {
485
+ return $this->get( 'attribute','' );
486
+ }
487
+
488
+ /*
489
+ Access the specific type of attribute information.
490
+ @param {Array} data contains php array with key value pair.
491
+ @options data {String} type: Type of attribute. Possible values – normal, transactional, category, calculated & global [Optional]
492
+ */
493
+ public function get_attribute( $data ) {
494
+ return $this->get( 'attribute/' . $data['type'],'' );
495
+ }
496
+
497
+ /*
498
+ Create an Attribute.
499
+ @param {Array} data contains php array with key value pair.
500
+ @options data {String} type: Type of attribute. Possible values – normal, transactional, category, calculated & global ( case sensitive ) [Mandatory]
501
+ @options data {Array} data: The name and data type of ‘normal’ & ‘transactional’ attribute to be created in your SendinBlue account. It should be sent as an associative array. Example: array(‘ATTRIBUTE_NAME1′ => ‘DATA_TYPE1′, ‘ATTRIBUTE_NAME2’=> ‘DATA_TYPE2′).
502
+ The name and data value of ‘category’, ‘calculated’ & ‘global’, should be sent as JSON string. Example: ‘[{ "name":"ATTRIBUTE_NAME1", "value":"Attribute_value1" }, { "name":"ATTRIBUTE_NAME2", "value":"Attribute_value2" }]’. You can use commas to separate multiple attributes [Mandatory]
503
+ */
504
+ public function create_attribute( $data ) {
505
+ return $this->post( 'attribute/',json_encode( $data ) );
506
+ }
507
+
508
+ /*
509
+ Delete a specific type of attribute information.
510
+ @param {Array} data contains php array with key value pair.
511
+ @options data {Integer} type: Type of attribute to be deleted [Mandatory]
512
+ */
513
+ public function delete_attribute( $type, $data ) {
514
+ $type = $data['type'];
515
+ unset( $data['type'] );
516
+ return $this->post( 'attribute/' . $type,json_encode( $data ) );
517
+ }
518
+
519
+ /*
520
+ Create a new user if an email provided as input, doesn’t exists in the contact list of your SendinBlue account, otherwise it will update the existing user.
521
+ @param {Array} data contains php array with key value pair.
522
+ @options data {String} email: Email address of the user to be created in SendinBlue contacts. Already existing email address of user in the SendinBlue contacts to be modified [Mandatory]
523
+ @options data {Array} attributes: The name of attribute present in your SendinBlue account. It should be sent as an associative array. Example: array("NAME"=>"name"). You can use commas to separate multiple attributes [Optional]
524
+ @options data {Integer} blacklisted: This is used to blacklist/ Unblacklist a user. Possible values – 0 & 1. blacklisted = 1 means user has been blacklisted [Optional]
525
+ @options data {Array} listid: The list id(s) to be linked from user [Optional]
526
+ @options data {Array} listid_unlink: The list id(s) to be unlinked from user [Optional]
527
+ @options data {Array} blacklisted_sms: This is used to blacklist/ Unblacklist a user’s SMS number. Possible values – 0 & 1. blacklisted_sms = 1 means user’s SMS number has been blacklisted [Optional]
528
+ */
529
+ public function create_update_user( $data ) {
530
+ return $this->post( 'user/createdituser',json_encode( $data ) );
531
+ }
532
+
533
+ /*
534
+ Get Access a specific user Information.
535
+ @param {Array} data contains php array with key value pair.
536
+ @options data {String} email: Email address of the already existing user in the SendinBlue contacts [Mandatory]
537
+ */
538
+ public function get_user( $data ) {
539
+ return $this->get( 'user/' . $data['email'],'' );
540
+ }
541
+
542
+ /*
543
+ Unlink existing user from all lists.
544
+ @param {Array} data contains php array with key value pair.
545
+ @options data {String} email: Email address of the already existing user in the SendinBlue contacts to be unlinked from all lists [Mandatory]
546
+ */
547
+ public function delete_user( $data ) {
548
+ return $this->delete( 'user/' . $data['email'],'' );
549
+ }
550
+
551
+ /*
552
+ Import Users Information.
553
+ @param {Array} data contains php array with key value pair.
554
+ @options data {String} url: The URL of the file to be imported. Possible file types – .txt, .csv [Mandatory: if body is empty]
555
+ @options data {String} body: The Body with csv content to be imported. Example: ‘NAME;SURNAME;EMAIL\n"Name1";"Surname1";"example1@example.net"\n"Name2";"Surname2";"example2@example.net"‘, where \n separates each user data. You can use semicolon to separate multiple attributes [Mandatory: if url is empty]
556
+ @options data {Array} listids: These are the list ids in which the the users will be imported [Mandatory: if name is empty]
557
+ @options data {String} notify_url: URL that will be called once the import process is finished [Optional] In notify_url, we are sending the content using POST method
558
+ @options data {String} name: This is new list name which will be created first & then users will be imported in it [Mandatory: if listids is empty]
559
+ @options data {Integer} list_parent: This is the existing folder id & can be used with name parameter to make newly created list’s desired parent [Optional]
560
+ */
561
+ public function import_users( $data ) {
562
+ return $this->post( 'user/import',json_encode( $data ) );
563
+ }
564
+
565
+ /*
566
+ Export Users Information.
567
+ @param {Array} data contains php array with key value pair.
568
+ @options data {String} export_attrib: The name of attribute present in your SendinBlue account. You can use commas to separate multiple attributes. Example: "EMAIL,NAME,SMS" [Optional]
569
+ @options data {String} filter: Filter can be added to export users. Example: "{\"blacklisted\":1}", will export all blacklisted users [Mandatory]
570
+ @options data {String} notify_url: URL that will be called once the export process is finished [Optional]
571
+ */
572
+ public function export_users( $data ) {
573
+ return $this->post( 'user/export',json_encode( $data ) );
574
+ }
575
+
576
+ /*
577
+ Get all the processes information under the account.
578
+ @param {Array} data contains php array with key value pair.
579
+ @options data {Integer} page: Maximum number of records per request is 50, if there are more than 50 processes then you can use this parameter to get next 50 results [Mandatory]
580
+ @options data {Integer} page_limit: This should be a valid number between 1-50 [Mandatory]
581
+ */
582
+ public function get_processes( $data ) {
583
+ return $this->get( 'process',json_encode( $data ) );
584
+ }
585
+
586
+ /*
587
+ Get the process information.
588
+ @param {Array} data contains php array with key value pair.
589
+ @options data {Integer} id: Id of process to get details [Mandatory]
590
+ */
591
+ public function get_process( $data ) {
592
+ return $this->get( 'process/' . $data['id'],'' );
593
+ }
594
+
595
+ /*
596
+ To retrieve details of all webhooks.
597
+ @param {Array} data contains php array with key value pair.
598
+ @options data {String} is_plat: Flag to get webhooks. Possible values – 0 & 1. Example: to get Transactional webhooks, use $is_plat=0, to get Marketing webhooks, use $is_plat=1, & to get all webhooks, use $is_plat="" [Optional]
599
+ */
600
+ public function get_webhooks( $data ) {
601
+ return $this->get( 'webhook',json_encode( $data ) );
602
+ }
603
+
604
+ /*
605
+ To retrieve details of any particular webhook.
606
+ @param {Array} data contains php array with key value pair.
607
+ @options data {Integer} id: Id of webhook to get details [Mandatory]
608
+ */
609
+ public function get_webhook( $data ) {
610
+ return $this->get( 'webhook/' . $data['id'],'' );
611
+ }
612
+
613
+ /*
614
+ Create a Webhook.
615
+ @param {Array} data contains php array with key value pair.
616
+ @options data {String} url: URL that will be triggered by a webhook [Mandatory]
617
+ @options data {String} description: Webook description [Optional]
618
+ @options data {Array} events: Set of events. You can use commas to separate multiple events. Possible values for Transcational webhook – request, delivered, hard_bounce, soft_bounce, blocked, spam, invalid_email, deferred, click, & opened and Possible Values for Marketing webhook – spam, opened, click, hard_bounce, unsubscribe, soft_bounce & list_addition ( case sensitive ) [Mandatory]
619
+ @options data {Integer} is_plat: Flag to create webhook type. Possible values – 0 (default) & 1. Example: to create Transactional webhooks, use $is_plat=0, & to create Marketing webhooks, use $is_plat=1 [Optional]
620
+ */
621
+ public function create_webhook( $data ) {
622
+ return $this->post( 'webhook',json_encode( $data ) );
623
+ }
624
+
625
+ /*
626
+ Delete a webhook.
627
+ @param {Array} data contains php array with key value pair.
628
+ @options data {Integer} id: Id of webhook to be deleted [Mandatory]
629
+ */
630
+ public function delete_webhook( $data ) {
631
+ return $this->delete( 'webhook/' . $data['id'],'' );
632
+ }
633
+
634
+ /*
635
+ Update a webhook.
636
+ @param {Array} data contains php array with key value pair.
637
+ @options data {Integer} id: Id of webhook to be modified [Mandatory]
638
+ @options data {String} url: URL that will be triggered by a webhook [Mandatory]
639
+ @options data {String} description: Webook description [Optional]
640
+ @options data {Array} events: Set of events. You can use commas to separate multiple events. Possible values for Transcational webhook – request, delivered, hard_bounce, soft_bounce, blocked, spam, invalid_email, deferred, click, & opened and Possible Values for Marketing webhook – spam, opened, click, hard_bounce, unsubscribe, soft_bounce & list_addition ( case sensitive ) [Mandatory]
641
+ */
642
+ public function update_webhook( $data ) {
643
+ $id = $data['id'];
644
+ unset( $data['id'] );
645
+ return $this->put( 'webhook/' . $id,json_encode( $data ) );
646
+ }
647
+
648
+ /*
649
+ Get Access of created senders information.
650
+ @param {Array} data contains php array with key value pair.
651
+ @options data {String} option: Options to get senders. Possible options – IP-wise, & Domain-wise ( only for dedicated IP clients ). Example: to get senders with specific IP, use $option=’1.2.3.4′, to get senders with specific domain use, $option=’domain.com’, & to get all senders, use $option="" [Optional]
652
+ */
653
+ public function get_senders( $data ) {
654
+ return $this->get( 'advanced',json_encode( $data ) );
655
+ }
656
+
657
+ /*
658
+ Create your Senders.
659
+ @param {Array} data contains php array with key value pair.
660
+ @options data {String} name: Name of the sender [Mandatory]
661
+ @options data {String} email: Email address of the sender [Mandatory]
662
+ @options data {Array} ip_domain: Pass pipe ( | ) separated Dedicated IP and its associated Domain. Example: "1.2.3.4|mydomain.com". You can use commas to separate multiple ip_domain’s [Mandatory: Only for Dedicated IP clients, for Shared IP clients, it should be kept blank]
663
+ */
664
+ public function create_sender( $data ) {
665
+ return $this->post( 'advanced',json_encode( $data ) );
666
+ }
667
+
668
+ /*
669
+ Update your Senders.
670
+ @param {Array} data contains php array with key value pair.
671
+ @options data {Integer} id: Id of sender to be modified [Mandatory]
672
+ @options data {String} name: Name of the sender [Mandatory]
673
+ @options data {Array} ip_domain: Pass pipe ( | ) separated Dedicated IP and its associated Domain. Example: "1.2.3.4|mydomain.com". You can use commas to separate multiple ip_domain’s [Mandatory: Only for Dedicated IP clients, for Shared IP clients, it should be kept blank]
674
+ */
675
+ public function update_sender( $data ) {
676
+ $id = $data['id'];
677
+ unset( $data['id'] );
678
+ return $this->put( 'advanced/' . $id,json_encode( $data ) );
679
+ }
680
+
681
+ /*
682
+ Delete your Sender Information.
683
+ @param {Array} data contains php array with key value pair.
684
+ @options data {Integer} id: Id of sender to be deleted [Mandatory]
685
+ */
686
+ public function delete_sender( $data ) {
687
+ return $this->delete( 'advanced/' . $data['id'],'' );
688
+ }
689
+
690
+ /*
691
+ Send Transactional Email.
692
+ @param {Array} data contains php array with key value pair.
693
+ @options data {Array} to: Email address of the recipient(s). It should be sent as an associative array. Example: array("to@example.net"=>"to whom"). You can use commas to separate multiple recipients [Mandatory]
694
+ @options data {String} subject: Message subject [Mandatory]
695
+ @options data {Array} from Email address for From header. It should be sent as an array. Example: array("from@email.com","from email") [Mandatory]
696
+ @options data {String} html: Body of the message. (HTML version) [Mandatory]. To send inline images, use <img src="{YourFileName.Extension}" alt="image" border="0" >, the 'src' attribute value inside {} (curly braces) should be same as the filename used in 'inline_image' parameter
697
+ @options data {String} text: Body of the message. (text version) [Optional]
698
+ @options data {Array} cc: Same as to but for Cc. Example: array("cc@example.net","cc whom") [Optional]
699
+ @options data {Array} bcc: Same as to but for Bcc. Example: array("bcc@example.net","bcc whom") [Optional]
700
+ @options data {Array} replyto: Same as from but for Reply To. Example: array("from@email.com","from email") [Optional]
701
+ @options data {Array} attachment: Provide the absolute url of the attachment/s. Possible extension values = gif, png, bmp, cgm, jpg, jpeg, txt, css, shtml, html, htm, csv, zip, pdf, xml, doc, xls, ppt, tar, and ez. To send attachment/s generated on the fly you have to pass your attachment/s filename & its base64 encoded chunk data as an associative array. Example: array("YourFileName.Extension"=>"Base64EncodedChunkData"). You can use commas to separate multiple attachments [Optional]
702
+ @options data {Array} headers: The headers will be sent along with the mail headers in original email. Example: array("Content-Type"=>"text/html; charset=iso-8859-1"). You can use commas to separate multiple headers [Optional]
703
+ @options data {Array} inline_image: Pass your inline image/s filename & its base64 encoded chunk data as an associative array. Example: array("YourFileName.Extension"=>"Base64EncodedChunkData"). You can use commas to separate multiple inline images [Optional]
704
+ */
705
+ public function send_email( $data ) {
706
+ return $this->post( 'email',json_encode( $data ) );
707
+ }
708
+
709
+ /*
710
+ Aggregate / date-wise report of the SendinBlue SMTP account.
711
+ @param {Array} data contains php array with key value pair.
712
+ @options data {Integer} aggregate: This is used to indicate, you are interested in all-time totals. Possible values – 0 & 1. aggregate = 0 means it will not aggregate records, and will show stats per day/date wise [Optional]
713
+ @options data {String} start_date: The start date to look up statistics. Date must be in YYYY-MM-DD format and should be before the end_date [Optional]
714
+ @options data {String} end_date: The end date to look up statistics. Date must be in YYYY-MM-DD format and should be after the start_date [Optional]
715
+ @options data {Integer} days: Number of days in the past to include statistics ( Includes today ). It must be an integer greater than 0 [Optional]
716
+ @options data {String} tag: The tag you will specify to retrieve detailed stats. It must be an existing tag that has statistics [Optional]
717
+ */
718
+ public function get_statistics( $data ) {
719
+ return $this->post( 'statistics',json_encode( $data ) );
720
+ }
721
+
722
+ /*
723
+ Get Email Event report.
724
+ @param {Array} data contains php array with key value pair.
725
+ @options data {Integer} limit: To limit the number of results returned. It should be an integer [Optional]
726
+ @options data {String} start_date: The start date to get report from. Date must be in YYYY-MM-DD format and should be before the end_date [Optional]
727
+ @options data {String} end_date: The end date to get report till date. Date must be in YYYY-MM-DD format and should be after the start_date [Optional]
728
+ @options data {Integer} offset: Beginning point in the list to retrieve from. It should be an integer [Optional]
729
+ @options data {String} date: Specific date to get its report. Date must be in YYYY-MM-DD format and should be earlier than todays date [Optional]
730
+ @options data {Integer} days: Number of days in the past (includes today). If specified, must be an integer greater than 0 [Optional]
731
+ @options data {String} email: Email address to search report for [Optional]
732
+ */
733
+ public function get_report( $data ) {
734
+ return $this->post( 'report',json_encode( $data ) );
735
+ }
736
+
737
+ /*
738
+ Delete any hardbounce, which actually would have been blocked due to some temporary ISP failures.
739
+ @param {Array} data contains php array with key value pair.
740
+ @options data {String} start_date: The start date to get report from. Date must be in YYYY-MM-DD format and should be before the end_date [Optional]
741
+ @options data {String} end_date: The end date to get report till date. Date must be in YYYY-MM-DD format and should be after the start_date [Optional]
742
+ @options data {String} email: Email address to delete its bounces [Optional]
743
+ */
744
+ public function delete_bounces( $data ) {
745
+ return $this->post( 'bounces',json_encode( $data ) );
746
+ }
747
+
748
+ /*
749
+ Send templates created on SendinBlue, through SendinBlue SMTP (transactional mails).
750
+ @param {Array} data contains php array with key value pair.
751
+ @options data {Integer} id: Id of the template created on SendinBlue account [Mandatory]
752
+ @options data {String} to: Email address of the recipient(s). You can use pipe ( | ) to separate multiple recipients. Example: "to-example@example.net|to2-example@example.net" [Mandatory]
753
+ @options data {String} cc: Same as to but for Cc [Optional]
754
+ @options data {String} bcc: Same as to but for Bcc [Optional]
755
+ @options data {Array} attrv The name of attribute present in your SendinBlue account. It should be sent as an associative array. Example: array("NAME"=>"name"). You can use commas to separate multiple attributes [Optional]
756
+ @options data {String} attachment_url: Provide the absolute url of the attachment. Url not allowed from local machine. File must be hosted somewhere [Optional]
757
+ @options data {Array} attachment: To send attachment/s generated on the fly you have to pass your attachment/s filename & its base64 encoded chunk data as an associative array [Optional]
758
+ */
759
+ public function send_transactional_template( $data ) {
760
+ $id = $data['id'];
761
+ unset( $data['id'] );
762
+ return $this->put( 'template/' . $id,json_encode( $data ) );
763
+ }
764
+
765
+ /*
766
+ Create a Template.
767
+ @param {Array} data contains php array with key value pair.
768
+ @options data {String} from_name: Sender name from which the campaign emails are sent [Mandatory: for Dedicated IP clients & for Shared IP clients, if sender exists]
769
+ @options data {String} template_name: Name of the Template [Mandatory]
770
+ @options data {String} bat: Email address for test mail [Optional]
771
+ @options data {String} html_content: Body of the content. The HTML content field must have more than 10 characters [Mandatory: if html_url is empty]
772
+ @options data {String} html_url Url: which content is the body of content [Mandatory: if html_content is empty]
773
+ @options data {String} subject: Subject of the campaign [Mandatory]
774
+ @options data {String} from_email: Sender email from which the campaign emails are sent [Mandatory: for Dedicated IP clients & for Shared IP clients, if sender exists]
775
+ @options data {String} reply_to: The reply to email in the campaign emails [Optional]
776
+ @options data {String} to_fieldv This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [PRENOM] [NOM]. To use the contact attributes here, these should already exist in SendinBlue account [Optional]
777
+ @options data {Integer} status: Status of template. Possible values = 0 (default) & 1. status = 0 means template is inactive, & status = 1 means template is active [Optional]
778
+ @options data {Integer} attachment: Status of attachment. Possible values = 0 (default) & 1. attach = 0 means an attachment can’t be sent, & attach = 1 means an attachment can be sent, in the email [Optional]
779
+ */
780
+ public function create_template( $data ) {
781
+ return $this->post( 'template',json_encode( $data ) );
782
+ }
783
+
784
+ /*
785
+ Update a Template.
786
+ @param {Array} data contains php array with key value pair.
787
+ @options data {Integer} id: Id of Template to be modified [Mandatory]
788
+ @options data {String} from_name: Sender name from which the campaign emails are sent [Mandatory: for Dedicated IP clients & for Shared IP clients, if sender exists]
789
+ @options data {String} template_name: Name of the Template [Mandatory]
790
+ @options data {String} bat: Email address for test mail [Optional]
791
+ @options data {String} html_content: Body of the content. The HTML content field must have more than 10 characters [Mandatory: if html_url is empty]
792
+ @options data {String} html_url: Url which content is the body of content [Mandatory: if html_content is empty]
793
+ @options data {String} subject: Subject of the campaign [Mandatory]
794
+ @options data {String} from_email: Sender email from which the campaign emails are sent [Mandatory: for Dedicated IP clients & for Shared IP clients, if sender exists]
795
+ @options data {String} reply_to: The reply to email in the campaign emails [Optional]
796
+ @options data {String} to_field: This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [PRENOM] [NOM]. To use the contact attributes here, these should already exist in SendinBlue account [Optional]
797
+ @options data {Integer} status: Status of template. Possible values = 0 (default) & 1. status = 0 means template is inactive, & status = 1 means template is active [Optional]
798
+ @options data {Integer} attachment: Status of attachment. Possible values = 0 (default) & 1. attach = 0 means an attachment can’t be sent, & attach = 1 means an attachment can be sent, in the email [Optional]
799
+ */
800
+ public function update_template( $data ) {
801
+ $id = $data['id'];
802
+ unset( $data['id'] );
803
+ return $this->put( 'template/' . $id,json_encode( $data ) );
804
+ }
805
+
806
+ /*
807
+ Send a transactional SMS.
808
+ @param {Array} data contains php array with key value pair.
809
+ @options data {String} to: The mobile number to send SMS to with country code [Mandatory]
810
+ @options data {String} from: The name of the sender. The number of characters is limited to 11 (alphanumeric format) [Mandatory]
811
+ @options data {String} text: The text of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS [Mandatory]
812
+ @options data {String} web_url: The web URL that can be called once the message is successfully delivered [Optional]
813
+ @options data {String} tag: The tag that you can associate with the message [Optional]
814
+ @options data {String} type: Type of message. Possible values – marketing (default) & transactional. You can use marketing for sending marketing SMS, & for sending transactional SMS, use transactional type [Optional]
815
+ */
816
+ public function send_sms( $data ) {
817
+ return $this->post( 'sms',json_encode( $data ) );
818
+ }
819
+
820
+ /*
821
+ Create & Schedule your SMS campaigns.
822
+ @param {Array} data contains php array with key value pair.
823
+ @options data {String} name: Name of the SMS campaign [Mandatory]
824
+ @options data {String} sender: This allows you to customize the SMS sender. The number of characters is limited to 11 ( alphanumeric format ) [Optional]
825
+ @options data {String} content: Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS [Optional]
826
+ @options data {String} bat: Mobile number with the country code to send test SMS. The mobile number defined here should belong to one of your contacts in SendinBlue account and should not be blacklisted [Optional]
827
+ @options data {Array} listid: These are the list ids to which the SMS campaign is sent [Mandatory: if scheduled_date is not empty]
828
+ @options data {Array} exclude_list: These are the list ids which will be excluded from the SMS campaign [Optional]
829
+ @options data {String} scheduled_date: The day on which the SMS campaign is supposed to run [Optional]
830
+ @options data {Integer} send_now: Flag to send campaign now. Possible values = 0 (default) & 1. send_now = 0 means campaign can’t be send now, & send_now = 1 means campaign ready to send now [Optional]
831
+ */
832
+ public function create_sms_campaign( $data ) {
833
+ return $this->post( 'sms',json_encode( $data ) );
834
+ }
835
+
836
+ /*
837
+ Update your SMS campaigns.
838
+ @param {Array} data contains php array with key value pair.
839
+ @options data {Integer} id: Id of the SMS campaign [Mandatory]
840
+ @options data {String} name: Name of the SMS campaign [Optional]
841
+ @options data {String} sender: This allows you to customize the SMS sender. The number of characters is limited to 11 ( alphanumeric format ) [Optional]
842
+ @options data {String} content: Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS [Optional]
843
+ @options data {String} bat: Mobile number with the country code to send test SMS. The mobile number defined here should belong to one of your contacts in SendinBlue account and should not be blacklisted [Optional]
844
+ @options data {Array} listid: hese are the list ids to which the SMS campaign is sent [Mandatory: if scheduled_date is not empty]
845
+ @options data {Array} exclude_list: These are the list ids which will be excluded from the SMS campaign [Optional]
846
+ @options data {String} scheduled_date: The day on which the SMS campaign is supposed to run [Optional]
847
+ @options data {Integer} send_now: Flag to send campaign now. Possible values = 0 (default) & 1. send_now = 0 means campaign can’t be send now, & send_now = 1 means campaign ready to send now [Optional]
848
+ */
849
+ public function update_sms_campaign( $data ) {
850
+ $id = $data['id'];
851
+ unset( $data['id'] );
852
+ return $this->put( 'sms/' . $id,json_encode( $data ) );
853
+ }
854
+
855
+ /*
856
+ Send a Test SMS.
857
+ @param {Array} data contains php array with key value pair.
858
+ @options data {Integer} id: Id of the SMS campaign [Mandatory]
859
+ @options data {String} to: Mobile number with the country code to send test SMS. The mobile number defined here should belong to one of your contacts in SendinBlue account and should not be blacklisted [Mandatory]
860
+ */
861
+ public function send_bat_sms( $data ) {
862
+ $id = $data['id'];
863
+ unset( $data['id'] );
864
+ return $this->get( 'sms/' . $id,json_encode( $data ) );
865
+ }
866
+
867
+ }
868
+
subscribe/subscribe.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function($, ti){
2
+ $(document).ready(function(){
3
+ $('.themeisle-sdk-subscribe-btn').on('click', function(e){
4
+ var slug = $(this).data('product-slug');
5
+ var email = $('#'+slug+'-themeisle-sdk-email-field');
6
+ $.ajax({
7
+ url: themeisle_sdk.ajax_url,
8
+ method: 'post',
9
+ data: {
10
+ 'action' : 'themeisle_sdk_subscribe_'+slug,
11
+ 'nonce' : email.data('nonce'),
12
+ 'email' : email.val()
13
+ },
14
+ success: function( data, textStatus, jqXHR ){
15
+ if(data.data.success){
16
+ $('#'+slug+'-subscribe-box .themeisle-sdk-subscribe-fieldset').hide();
17
+ $('#'+slug+'-subscribe-box .themeisle-sdk-subscrive-success').show();
18
+ }
19
+ }
20
+ });
21
+ });
22
+ });
23
+ })(jQuery, ti);
subscribe/subscribe.php ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Class for subscription box
4
+ * User: Marius Cristea <marius@themeisle.com>
5
+ */
6
+ if ( ! class_exists( 'THEMEISLE_SUBSCRIBE' ) ) {
7
+ class THEMEISLE_SUBSCRIBE {
8
+ /*
9
+ * The product slug for subscribe box
10
+ */
11
+ /**
12
+ * The script version
13
+ *
14
+ * @var string Script version
15
+ */
16
+ public $script_version = '1.0.0';
17
+ /**
18
+ * The slug of the product
19
+ *
20
+ * @var Slug of the product which use this script
21
+ */
22
+ public $product_slug;
23
+ /**
24
+ * The id where we should subscribe
25
+ *
26
+ * @var The list id in which to subscribe the user
27
+ */
28
+ public $list_id;
29
+ /**
30
+ * The script url
31
+ *
32
+ * @var The URL of the script
33
+ */
34
+ public $script_url;
35
+ /**
36
+ * The default title
37
+ *
38
+ * @var string The default title of the subscribe box
39
+ */
40
+ public $default_title = 'Get Our Free Email Course';
41
+ /**
42
+ * The defualt success message
43
+ *
44
+ * @var string The default success message of the subscribe box
45
+ */
46
+ public $default_success = 'Thank you for subscribing! You have been added to the mailing list and will receive the next email information in the coming weeks. If you ever wish to unsubscribe, simply use the "Unsubscribe" link included in each newsletter.';
47
+ /**
48
+ * Thhe default optin message
49
+ *
50
+ * @var string The default optin message for the box
51
+ */
52
+ public $default_subscribe = 'Ready to learn how to reduce your website loading times by half? Come and join the 1st lesson here!';
53
+ /**
54
+ * The defualt submit btn
55
+ *
56
+ * @var string The default submit btn string
57
+ */
58
+ public $default_submit = 'Send Me ! ';
59
+
60
+ /**
61
+ * THEMEISLE_SUBSCRIBE constructor.
62
+ *
63
+ * @param $slug
64
+ */
65
+ public function __construct( $slug ) {
66
+ $this->product_slug = $slug;
67
+ $this->load_hooks();
68
+ $this->setup_vars();
69
+ }
70
+
71
+ /**
72
+ * Load all the hooks of the script
73
+ */
74
+ public function load_hooks() {
75
+ add_action( $this->product_slug . '_render_subscribe_box', array( $this, 'render_box' ) );
76
+ add_action( 'wp_ajax_themeisle_sdk_subscribe_' . $this->product_slug, array( $this, 'ajax_subscribe' ) );
77
+ $this->list_id = apply_filters( $this->product_slug . '_themeisle_sdk_subscribe_list', $this->list_id );
78
+ }
79
+
80
+ /**
81
+ * Load all the vars
82
+ */
83
+ public function setup_vars() {
84
+ $abs = untrailingslashit( ( dirname( __FILE__ ) ) );
85
+ $parts = str_replace( untrailingslashit( ABSPATH ), '', $abs );
86
+ $parts = explode( DIRECTORY_SEPARATOR, $parts );
87
+ $parts = array_filter( $parts );
88
+ $this->script_url = site_url() . '/' . implode( '/', $parts );
89
+
90
+ }
91
+
92
+ /**
93
+ * Render the box content
94
+ */
95
+ public function render_box() {
96
+ wp_enqueue_script( 'themeisle-sdk-subscribe', $this->script_url . '/subscribe.js', array( 'jquery' ), $this->script_version, true );
97
+ wp_localize_script( 'themeisle-sdk-subscribe', 'themeisle_sdk', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) );
98
+ ?>
99
+ <div id='<?php echo $this->product_slug; ?>-subscribe-box' class=" themeisle-sdk-subscribe-box">
100
+ <h3 class="themeisle-sdk-title"><?php echo esc_html( apply_filters( $this->product_slug . '_themeisle_subscribe_heading', $this->default_title ) ); ?></h3>
101
+ <div class="themeisle-sdk-box-content">
102
+ <?php
103
+ $subscribed = get_option( $this->product_slug . '_themeisle_sdk_subscribed', 'no' );
104
+ $display = ( $subscribed !== 'no' ) ? '' : 'display:none';
105
+ echo sprintf( '<div class="themeisle-sdk-subscrive-success" style="' . $display . '"><p> %s </p></div>', esc_html( apply_filters( $this->product_slug . '_themeisle_subscribed_msg', $this->default_success ) ) );
106
+ if ( $subscribed === 'no' ) {
107
+ echo sprintf( '<fieldset class="themeisle-sdk-subscribe-fieldset"><p> %s </p><input name="themeisle-sdk-subscribe-email" class="themeisle-sdk-subscribe-email" id="' . $this->product_slug . '-themeisle-sdk-email-field" data-nonce="' . wp_create_nonce( $this->product_slug . '_themeisle_sdk_subscribe_nonce' ) . '" type="email" value="' . get_option( 'admin_email' ) . '" /><input type="button" id="' . $this->product_slug . '-themeisle-sdk-email-do" data-product-slug="' . $this->product_slug . '" class="themeisle-sdk-subscribe-btn button" value="' . apply_filters( $this->product_slug . '_themeisle_subscribe_submit', $this->default_submit ) . '"></fieldset>', esc_html( apply_filters( 'themeisle_subscribe_msg', $this->default_subscribe ) ) );
108
+ }
109
+ ?>
110
+ </div>
111
+ </div>
112
+ <?php
113
+ }
114
+
115
+ /**
116
+ * The ajax subscribe action
117
+ */
118
+ public function ajax_subscribe() {
119
+ check_ajax_referer( $this->product_slug . '_themeisle_sdk_subscribe_nonce', 'nonce' );
120
+ $email = $_POST['email'];
121
+ if ( ! empty( $email ) ) {
122
+ require_once( dirname( __FILE__ ) . '/mailin.php' );
123
+ $user_info = get_userdata( get_current_user_id() );
124
+ $mailin = new Mailin( 'https://api.sendinblue.com/v2.0', 'cHW5sxZnzE7mhaYb' );
125
+ $data = array(
126
+ 'email' => $email,
127
+ 'attributes' => array( 'NAME' => $user_info->first_name, 'SURNAME' => $user_info->last_name ),
128
+ 'blacklisted' => 0,
129
+ 'listid' => array( $this->list_id ),
130
+ 'blacklisted_sms' => 0,
131
+ );
132
+ $status = $mailin->create_update_user( $data );
133
+ if ( $status['code'] == 'success' ) {
134
+ update_option( $this->product_slug . '_themeisle_sdk_subscribed', 'yes' );
135
+ wp_send_json_success( array( 'success' => true ) );
136
+ }
137
+ }
138
+ wp_die();
139
+ }
140
+
141
+ }
142
+ }
templates/iframe/adsense.php CHANGED
@@ -1,162 +1,169 @@
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', INTERGEO_PLUGIN_NAME ) ?>" 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', INTERGEO_PLUGIN_NAME ) ?>" 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', INTERGEO_PLUGIN_NAME ) ?>" 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', INTERGEO_PLUGIN_NAME ) ?>" 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', INTERGEO_PLUGIN_NAME ) ?>" 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>
 
1
+ <h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'AdSense Integration', 'intergeo-maps' ) ?></h3>
2
  <ul class="intergeo_tlbr_ul_li_ul"><?php
3
+ if ( ! intergeo_is_developer() ) {
4
+ ?>
5
+ <a target="_blank" href="<?php echo INTERGEO_PRO_URL; ?>" class="intergeo-pro-btn button"><?php _e( 'Available in Agency plan', 'intergeo-maps' ) ?></a>
6
+ <?php
7
+ } else {
8
  if ( empty( $publisher_id ) ) :
9
  ?><li class="intergeo_tlbr_ul_li_ul_li">
10
+ <p class="intergeo_tlbr_grp_dsc"><?php
11
+ printf( esc_html__( 'To make AdSense working on your maps, you have to setup your publisher ID. You can do it at the %1$ssettings page%2$s.', 'intergeo-maps' ), '<a href="' . admin_url( 'options-media.php' ) . '" target="_blank">', '</a>' )
12
+ ?></p>
13
  </li><?php
14
  endif;
15
  ?><li class="intergeo_tlbr_ul_li_ul_li">
16
+ <div class="intergeo_tlbr_cntrl_items" style="display:block">
17
+ <div class="intergeo_tlbr_cntrl_item">
18
+ <label>
19
+ <input type="hidden" name="layer_adsense" value="0">
20
+ <input type="checkbox" name="layer_adsense" value="1" <?php checked( isset( $json['layer']['adsense'] ) ? $json['layer']['adsense'] == '1' : false ) ?>>
21
+ Enabled
22
+ </label>
23
+ </div>
24
+ <table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
25
+ <tr>
26
+ <td class="intergeo_tlbr_cntrl_tbl_clmn">
27
+ <select name="adsense_format" class="intergeo_tlbr_cntrl_slct">
28
+ <option value="">
29
+ <?php esc_html_e( 'default format', 'intergeo-maps' ) ?>
30
+ </option>
31
+ <option value="LEADERBOARD" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'LEADERBOARD' : false ) ?>>
32
+ <?php esc_html_e( 'Leaderboard', 'intergeo-maps' ) ?>
33
+ </option>
34
+ <option value="BANNER" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'BANNER' : false ) ?>>
35
+ <?php esc_html_e( 'Banner', 'intergeo-maps' ) ?>
36
+ </option>
37
+ <option value="HALF_BANNER" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'HALF_BANNER' : false ) ?>>
38
+ <?php esc_html_e( 'Half Banner', 'intergeo-maps' ) ?>
39
+ </option>
40
+ <option value="SKYSCRAPER" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'SKYSCRAPER' : false ) ?>>
41
+ <?php esc_html_e( 'Skyscraper', 'intergeo-maps' ) ?>
42
+ </option>
43
+ <option value="WIDE_SKYSCRAPER" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'WIDE_SKYSCRAPER' : false ) ?>>
44
+ <?php esc_html_e( 'Wide Skyscraper', 'intergeo-maps' ) ?>
45
+ </option>
46
+ <option value="VERTICAL_BANNER" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'VERTICAL_BANNER' : false ) ?>>
47
+ <?php esc_html_e( 'Vertical Banner', 'intergeo-maps' ) ?>
48
+ </option>
49
+ <option value="BUTTON" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'BUTTON' : false ) ?>>
50
+ <?php esc_html_e( 'Button', 'intergeo-maps' ) ?>
51
+ </option>
52
+ <option value="SMALL_SQUARE" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'SMALL_SQUARE' : false ) ?>>
53
+ <?php esc_html_e( 'Small Square', 'intergeo-maps' ) ?>
54
+ </option>
55
+ <option value="SQUARE" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'SQUARE' : false ) ?>>
56
+ <?php esc_html_e( 'Square', 'intergeo-maps' ) ?>
57
+ </option>
58
+ <option value="SMALL_RECTANGLE" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'SMALL_RECTANGLE' : false ) ?>>
59
+ <?php esc_html_e( 'Small Rectangle', 'intergeo-maps' ) ?>
60
+ </option>
61
+ <option value="MEDIUM_RECTANGLE" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'MEDIUM_RECTANGLE' : false ) ?>>
62
+ <?php esc_html_e( 'Medium Rectangle', 'intergeo-maps' ) ?>
63
+ </option>
64
+ <option value="LARGE_RECTANGLE" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'LARGE_RECTANGLE' : false ) ?>>
65
+ <?php esc_html_e( 'Large Rectangle', 'intergeo-maps' ) ?>
66
+ </option>
67
+ <option value="SMALL_VERTICAL_LINK_UNIT" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'SMALL_VERTICAL_LINK_UNIT' : false ) ?>>
68
+ <?php esc_html_e( 'Small Vertical Link Unit', 'intergeo-maps' ) ?>
69
+ </option>
70
+ <option value="MEDIUM_VERTICAL_LINK_UNIT" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'MEDIUM_VERTICAL_LINK_UNIT' : false ) ?>>
71
+ <?php esc_html_e( 'Medium Vertical Link Unit', 'intergeo-maps' ) ?>
72
+ </option>
73
+ <option value="LARGE_VERTICAL_LINK_UNIT" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'LARGE_VERTICAL_LINK_UNIT' : false ) ?>>
74
+ <?php esc_html_e( 'Large Vertical Link Unit', 'intergeo-maps' ) ?>
75
+ </option>
76
+ <option value="X_LARGE_VERTICAL_LINK_UNIT" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'X_LARGE_VERTICAL_LINK_UNIT' : false ) ?>>
77
+ <?php esc_html_e( 'Extra Large Vertical Link Unit', 'intergeo-maps' ) ?>
78
+ </option>
79
+ <option value="SMALL_HORIZONTAL_LINK_UNIT" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'SMALL_HORIZONTAL_LINK_UNIT' : false ) ?>>
80
+ <?php esc_html_e( 'Small Horizontal Link Unit', 'intergeo-maps' ) ?>
81
+ </option>
82
+ <option value="LARGE_HORIZONTAL_LINK_UNIT" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'LARGE_HORIZONTAL_LINK_UNIT' : false ) ?>>
83
+ <?php esc_html_e( 'Large Horizontal Link Unit', 'intergeo-maps' ) ?>
84
+ </option>
85
+ </select>
86
+ </td>
87
+ <td class="intergeo_tlbr_cntrl_tbl_clmn">
88
+ <select class="intergeo_tlbr_cntrl_slct" name="adsense_position">
89
+ <option value=""><?php esc_html_e( 'default position', 'intergeo-maps' ) ?></option>
90
+ <option value="TOP_LEFT" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'TOP_LEFT' : false ) ?>>
91
+ <?php esc_html_e( 'Top Left', 'intergeo-maps' ) ?>
92
+ </option>
93
+ <option value="TOP_CENTER" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'TOP_CENTER' : false ) ?>>
94
+ <?php esc_html_e( 'Top Center', 'intergeo-maps' ) ?>
95
+ </option>
96
+ <option value="TOP_RIGHT" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'TOP_RIGHT' : false ) ?>>
97
+ <?php esc_html_e( 'Top Right', 'intergeo-maps' ) ?>
98
+ </option>
99
+ <option value="RIGHT_TOP" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'RIGHT_TOP' : false ) ?>>
100
+ <?php esc_html_e( 'Right Top', 'intergeo-maps' ) ?>
101
+ </option>
102
+ <option value="RIGHT_CENTER" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'RIGHT_CENTER' : false ) ?>>
103
+ <?php esc_html_e( 'Right Center', 'intergeo-maps' ) ?>
104
+ </option>
105
+ <option value="RIGHT_BOTTOM" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'RIGHT_BOTTOM' : false ) ?>>
106
+ <?php esc_html_e( 'Right Bottom', 'intergeo-maps' ) ?>
107
+ </option>
108
+ <option value="BOTTOM_RIGHT" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'BOTTOM_RIGHT' : false ) ?>>
109
+ <?php esc_html_e( 'Bottom Right', 'intergeo-maps' ) ?>
110
+ </option>
111
+ <option value="BOTTOM_CENTER" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'BOTTOM_CENTER' : false ) ?>>
112
+ <?php esc_html_e( 'Bottom Center', 'intergeo-maps' ) ?>
113
+ </option>
114
+ <option value="BOTTOM_LEFT" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'BOTTOM_LEFT' : false ) ?>>
115
+ <?php esc_html_e( 'Bottom Left', 'intergeo-maps' ) ?>
116
+ </option>
117
+ <option value="LEFT_BOTTOM" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'LEFT_BOTTOM' : false ) ?>>
118
+ <?php esc_html_e( 'Left Bottom', 'intergeo-maps' ) ?>
119
+ </option>
120
+ <option value="LEFT_CENTER" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'LEFT_CENTER' : false ) ?>>
121
+ <?php esc_html_e( 'Left Center', 'intergeo-maps' ) ?>
122
+ </option>
123
+ <option value="LEFT_TOP" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'LEFT_TOP' : false ) ?>>
124
+ <?php esc_html_e( 'Left Top', 'intergeo-maps' ) ?>
125
+ </option>
126
+ </select>
127
+ </td>
128
+ </tr>
129
+ </table>
130
+ </div>
131
  </li>
132
+
133
  <li class="intergeo_tlbr_ul_li_ul_li">
134
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Styles', 'intergeo-maps' ) ?></span>
135
+ <div class="intergeo_tlbr_cntrl_items">
136
+ <div class="intergeo_tlbr_cntrl_item">
137
+ <b><?php esc_html_e( 'Background color', 'intergeo-maps' ) ?></b>
138
+ </div>
139
+ <div class="intergeo_tlbr_cntrl_item">
140
+ <input class="color-picker-hex" type="text" name="adsense_backgroundColor" maxlength="7" placeholder="<?php esc_attr_e( 'Hex Value', 'intergeo-maps' ) ?>" value="<?php echo isset( $json['adsense']['backgroundColor'] ) ? esc_attr( $json['adsense']['backgroundColor'] ) : '#c4d4f3' ?>" data-default-color="#c4d4f3">
141
+ </div>
142
+ <div class="intergeo_tlbr_cntrl_item">
143
+ <b><?php esc_html_e( 'Border color', 'intergeo-maps' ) ?></b>
144
+ </div>
145
+ <div class="intergeo_tlbr_cntrl_item">
146
+ <input class="color-picker-hex" type="text" name="adsense_borderColor" maxlength="7" placeholder="<?php esc_attr_e( 'Hex Value', 'intergeo-maps' ) ?>" value="<?php echo isset( $json['adsense']['borderColor'] ) ? esc_attr( $json['adsense']['borderColor'] ) : '#e5ecf9' ?>" data-default-color="#e5ecf9">
147
+ </div>
148
+ <div class="intergeo_tlbr_cntrl_item">
149
+ <b><?php esc_html_e( 'Title color', 'intergeo-maps' ) ?></b>
150
+ </div>
151
+ <div class="intergeo_tlbr_cntrl_item">
152
+ <input class="color-picker-hex" type="text" name="adsense_titleColor" maxlength="7" placeholder="<?php esc_attr_e( 'Hex Value', 'intergeo-maps' ) ?>" value="<?php echo isset( $json['adsense']['titleColor'] ) ? esc_attr( $json['adsense']['titleColor'] ) : '#0000cc' ?>" data-default-color="#0000cc">
153
+ </div>
154
+ <div class="intergeo_tlbr_cntrl_item">
155
+ <b><?php esc_html_e( 'Text color', 'intergeo-maps' ) ?></b>
156
+ </div>
157
+ <div class="intergeo_tlbr_cntrl_item">
158
+ <input class="color-picker-hex" type="text" name="adsense_textColor" maxlength="7" placeholder="<?php esc_attr_e( 'Hex Value', 'intergeo-maps' ) ?>" value="<?php echo isset( $json['adsense']['textColor'] ) ? esc_attr( $json['adsense']['textColor'] ) : '#000000' ?>" data-default-color="#000000">
159
+ </div>
160
+ <div class="intergeo_tlbr_cntrl_item">
161
+ <b><?php esc_html_e( 'URL color', 'intergeo-maps' ) ?></b>
162
+ </div>
163
+ <div class="intergeo_tlbr_cntrl_item">
164
+ <input class="color-picker-hex" type="text" name="adsense_urlColor" maxlength="7" placeholder="<?php esc_attr_e( 'Hex Value', 'intergeo-maps' ) ?>" value="<?php echo isset( $json['adsense']['urlColor'] ) ? esc_attr( $json['adsense']['urlColor'] ) : '#009900' ?>" data-default-color="#009900">
165
+ </div>
166
+ </div>
167
  </li>
168
+ <?php }?>
169
+ </ul>
templates/iframe/controls.php CHANGED
@@ -1,73 +1,73 @@
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>
@@ -76,59 +76,59 @@
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>
@@ -138,59 +138,59 @@
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>
@@ -200,160 +200,160 @@
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>
@@ -363,59 +363,59 @@
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>
@@ -425,26 +425,26 @@
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>
1
 
2
+ <h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'Controls', 'intergeo-maps' ) ?></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-maps' ) ?></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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?></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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
71
  </option>
72
  </select>
73
  </td>
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-maps' ) ?></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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?></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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
132
  </option>
133
  </select>
134
  </td>
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-maps' ) ?></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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?></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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
194
  </option>
195
  </select>
196
  </td>
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-maps' ) ?></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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?></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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?></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-maps' ) ?>">
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-maps' ) ?>
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-maps' ) ?>">
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-maps' ) ?>
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-maps' ) ?>">
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-maps' ) ?>
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-maps' ) ?>">
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-maps' ) ?>
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-maps' ) ?></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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?></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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
357
  </option>
358
  </select>
359
  </td>
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-maps' ) ?></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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?></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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
419
  </option>
420
  </select>
421
  </td>
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-maps' ) ?></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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
446
  </label>
447
  </div>
448
  </div>
449
  </li>
450
+ </ul>
templates/iframe/directions.php CHANGED
@@ -1,64 +1,72 @@
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', INTERGEO_PLUGIN_NAME ) ?>:
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>
@@ -67,8 +75,8 @@
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>
@@ -76,4 +84,7 @@
76
  <?php endif; ?>
77
  </div>
78
  </li>
79
- </ul>
 
 
 
1
+ <h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'Directions', 'intergeo-maps' ) ?></h3>
2
  <ul class="intergeo_tlbr_ul_li_ul">
3
+ <?php
4
+ if ( ! intergeo_is_developer() ) {
5
+ ?>
6
+ <a target="_blank" href="<?php echo INTERGEO_PRO_URL; ?>" class="intergeo-pro-btn button"><?php _e( 'Available in Developer plan', 'intergeo-maps' ) ?></a>
7
+ <?php
8
+ } else {
9
+ ?>
10
  <li class="intergeo_tlbr_ul_li_ul_li">
11
  <p class="intergeo_tlbr_grp_dsc">
12
+ <?php esc_html_e( 'To add a new direction just click the button below', 'intergeo-maps' ) ?>:
13
  </p>
14
  <p class="intergeo_tlbr_grp_dsc">
15
  <a id="intergeo_tlbr_new_drctn" class="button button-small" href="javascript:;">
16
  <span id="intergeo_tlbr_drctn_icon"></span>
17
+ <?php esc_html_e( 'Add Direction', 'intergeo-maps' ) ?>
18
  </a>
19
  </p>
20
  </li>
21
  <li class="intergeo_tlbr_ul_li_ul_li">
22
+
23
  <script id="intergeo_tlbr_drctn_ttl_tmpl" type="text/html">
24
+ #%num% <?php esc_html_e( 'from', 'intergeo-maps' ) ?> %from% <?php esc_html_e( 'to', 'intergeo-maps' ) ?> %to% %mode%
25
  </script>
26
  <script id="intergeo_tlbr_drctn_tmpl" type="text/html">
27
  <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_drctn" border="0" cellspacing="0" cellpadding="0">
28
  <tr>
29
  <td class="intergeo_tlbr_direction_title_td">
30
+ #%num% <?php esc_html_e( 'from', 'intergeo-maps' ) ?> %from% <?php esc_html_e( 'to', 'intergeo-maps' ) ?> %to% %mode%
31
  </td>
32
  <td>
33
  <input type="hidden" class="intergeo_tlbr_drctn_from" name="directions[%pos%][from]" data-position="%pos%">
34
  <input type="hidden" class="intergeo_tlbr_drctn_to" name="directions[%pos%][to]">
35
  <input type="hidden" class="intergeo_tlbr_drctn_mode" name="directions[%pos%][mode]">
36
 
37
+ <a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete direction', 'intergeo-maps' ) ?>"></a>
38
+ <a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit direction', 'intergeo-maps' ) ?>"></a>
39
  </td>
40
  </tr>
41
  </table>
42
  </script>
43
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Created directions', 'intergeo-maps' ) ?></span>
44
  <div id="intergeo_tlbr_drctns" class="intergeo_tlbr_cntrl_items">
45
+ <?php if ( ! empty( $json['directions'] ) ) : ?>
46
  <?php foreach ( $json['directions'] as $i => $direction ) : ?>
47
  <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_drctn" border="0" cellspacing="0" cellpadding="0">
48
  <tr>
49
  <td class="intergeo_tlbr_direction_title_td">
50
  #<?php echo $i + 1 ?>
51
+ <?php esc_html_e( 'from', 'intergeo-maps' ) ?>
52
  <?php echo esc_html( $direction['from'] ) ?>
53
+ <?php esc_html_e( 'to', 'intergeo-maps' ) ?>
54
  <?php echo esc_html( $direction['to'] ) ?>
55
+ <?php
56
+ switch ( $direction['mode'] ) :
57
+ case 'BICYCLING':
58
+ esc_html_e( 'via bicycle paths & preferred streets', 'intergeo-maps' );
59
+ break;
60
+ case 'TRANSIT':
61
+ esc_html_e( 'via public transit routes', 'intergeo-maps' );
62
+ break;
63
+ case 'WALKING':
64
+ esc_html_e( 'via pedestrian paths & sidewalks', 'intergeo-maps' );
65
+ break;
66
+ case 'DRIVING':
67
+ default:
68
+ esc_html_e( 'via standard driving directions', 'intergeo-maps' );
69
+ break;
70
  endswitch;
71
  ?>
72
  </td>
75
  <input type="hidden" class="intergeo_tlbr_drctn_to" name="directions[<?php echo $i ?>][to]" value="<?php echo esc_attr( $direction['to'] ) ?>">
76
  <input type="hidden" class="intergeo_tlbr_drctn_mode" name="directions[<?php echo $i ?>][mode]" value="<?php echo esc_attr( $direction['mode'] ) ?>">
77
 
78
+ <a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete direction', 'intergeo-maps' ) ?>"></a>
79
+ <a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit direction', 'intergeo-maps' ) ?>"></a>
80
  </td>
81
  </tr>
82
  </table>
84
  <?php endif; ?>
85
  </div>
86
  </li>
87
+ <?php
88
+ }
89
+ ?>
90
+ </ul>
templates/iframe/extra.php CHANGED
@@ -1,31 +1,15 @@
1
  <li class="intergeo_tlbr_ul_li">
2
- <h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'Import/Export Markers', INTERGEO_PLUGIN_NAME ) ?></h3>
3
- <ul class="intergeo_tlbr_ul_li_ul">
4
- <?php
5
- if( defined( 'IntergeoMaps_Pro' ) ){
6
- global $IntergeoMaps_Pro;
7
- $IntergeoMaps_Pro->addUploadElements($json);
8
- }else{
9
- ?>
10
 
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
- <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
15
- <label>
16
- <input type="hidden" name="layer_importcsv" value="0">
17
- <input type="checkbox" name="layer_importcsv" value="1" disabled>
18
- <a href="<?php echo INTERGEO_PRO_URL; ?>" target="_blank"><?php esc_html_e( 'Enabled ( Available in PRO )', INTERGEO_PLUGIN_NAME ) ?></a>
19
- </label>
20
- </div>
21
- <p class="intergeo_tlbr_cntrl_dsc">
22
- <?php esc_html_e( 'Allows you to upload marker data to your map.', INTERGEO_PLUGIN_NAME ) ?>
23
- </p>
24
-
25
- </div>
26
- </li>
27
- <?php
28
- }
29
- ?>
30
- </ul>
31
  </li>
1
  <li class="intergeo_tlbr_ul_li">
2
+ <h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'Import/Export Markers', 'intergeo-maps' ) ?></h3>
3
+ <ul class="intergeo_tlbr_ul_li_ul">
4
+ <?php if ( ! intergeo_is_agency() ) {
5
+ ?>
6
+ <li><a target="_blank" href="<?php echo INTERGEO_PRO_URL; ?>" class="intergeo-pro-btn button"><?php _e( 'Available in Agency plan', 'intergeo-maps' ) ?></a></li>
7
+ <?php
8
+ } else {
 
9
 
10
+ global $IntergeoMaps_Adv;
11
+ $IntergeoMaps_Adv->addUploadElements( $json );
12
+ }
13
+ ?>
14
+ </ul>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  </li>
templates/iframe/form.php CHANGED
@@ -1,10 +1,10 @@
1
- <form id="intergeo_frm" method="post"<?php echo !$post_id ? ' origtarget="_parent" target="_parent"' : 'origtarget="self"' ?>>
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 open">
10
  <?php include INTERGEO_ABSPATH . '/templates/iframe/overlays.php' ?>
@@ -28,19 +28,23 @@
28
  <?php include INTERGEO_ABSPATH . '/templates/iframe/adsense.php' ?>
29
  </li>
30
  <?php
31
- // Added by Ash/Upwork
32
- include INTERGEO_ABSPATH . '/templates/iframe/extra.php';
33
  ?>
34
  </ul>
35
  </div>
36
  <div id="intergeo_canvas_wrapper">
37
  <div id="intergeo_canvas"></div>
38
- <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>
39
  </div>
40
  <div id="intergeo_footer">
41
- <a id="intergeo_go_to_address" class="button button-large" href="javascript:;"><?php esc_html_e( 'Go to address', INTERGEO_PLUGIN_NAME ) ?></a>
 
42
  <input type="submit" class="button button-primary button-large" value="<?php echo $submit_text ?>">
 
 
 
43
  </div>
44
  </form>
45
 
46
- <?php include INTERGEO_ABSPATH . '/templates/iframe/popups.php'; ?>
1
+ <form id="intergeo_frm" method="post"<?php echo ! $post_id ? ' origtarget="_parent" target="_parent"' : 'origtarget="self"' ?>>
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-maps' ) ?></div>
8
  <ul id="intergeo_tlbr_ul">
9
  <li class="intergeo_tlbr_ul_li open">
10
  <?php include INTERGEO_ABSPATH . '/templates/iframe/overlays.php' ?>
28
  <?php include INTERGEO_ABSPATH . '/templates/iframe/adsense.php' ?>
29
  </li>
30
  <?php
31
+ // Added by Ash/Upwork
32
+ include INTERGEO_ABSPATH . '/templates/iframe/extra.php';
33
  ?>
34
  </ul>
35
  </div>
36
  <div id="intergeo_canvas_wrapper">
37
  <div id="intergeo_canvas"></div>
38
+ <div id="intergeo_canvas_center" title="<?php esc_attr_e( 'The center of the map', 'intergeo-maps' ) ?>"<?php echo ! $show_map_center ? ' style="display:none;"' : ''; ?>></div>
39
  </div>
40
  <div id="intergeo_footer">
41
+ <a id="intergeo_go_to_address" class="button button-large" href="javascript:;"><?php esc_html_e( 'Go to address', 'intergeo-maps' ) ?></a>
42
+ <?php if ( intergeo_check_maps_number() ) : ?>
43
  <input type="submit" class="button button-primary button-large" value="<?php echo $submit_text ?>">
44
+ <?php else : ?>
45
+ <a target="_blank" href="<?php echo INTERGEO_PRO_URL; ?>" class="intergeo-pro-btn button"><?php _e( 'Buy PRO version to add more maps', 'intergeo-maps' ) ?></a>
46
+ <?php endif; ?>
47
  </div>
48
  </form>
49
 
50
+ <?php include INTERGEO_ABSPATH . '/templates/iframe/popups.php'; ?>
templates/iframe/layers.php CHANGED
@@ -1,151 +1,51 @@
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
- <!--
36
- Deprecated - Changed by Ash/Upwork
37
- <li class="intergeo_tlbr_ul_li_ul_li">
38
- <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Weather & Cloud layers', INTERGEO_PLUGIN_NAME ) ?></span>
39
- <div class="intergeo_tlbr_cntrl_items">
40
- <div class="intergeo_tlbr_cntrl_item">
41
- <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
42
- <label>
43
- <input type="hidden" name="layer_cloud" value="0">
44
- <input type="checkbox" name="layer_cloud" value="1" <?php checked( isset( $json['layer']['cloud'] ) ? $json['layer']['cloud'] == 1 : false ) ?>>
45
- <?php esc_html_e( 'Enabled cloud', INTERGEO_PLUGIN_NAME ) ?>
46
- </label>
47
- </div>
48
- <p class="intergeo_tlbr_cntrl_dsc">
49
- <?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 ) ?>
50
- </p>
51
- <div class="intergeo_tlbr_cntrl_item">
52
- <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
53
- <label>
54
- <input type="hidden" name="layer_weather" value="0">
55
- <input type="checkbox" name="layer_weather" value="1" <?php checked( isset( $json['layer']['weather'] ) ? $json['layer']['weather'] == 1 : false ) ?>>
56
- <?php esc_html_e( 'Enabled weather', INTERGEO_PLUGIN_NAME ) ?>
57
- </label>
58
- </div>
59
- <p class="intergeo_tlbr_cntrl_dsc">
60
- <?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 ) ?>
61
- </p>
62
- <table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
63
- <tr>
64
- <td class="intergeo_tlbr_cntrl_tbl_clmn">
65
- <select class="intergeo_tlbr_cntrl_slct" name="weather_temperatureUnits">
66
- <option value="">
67
- <?php esc_html_e( 'temperature units', INTERGEO_PLUGIN_NAME ) ?>
68
- </option>
69
- <option value="CELSIUS" <?php selected( isset( $json['weather']['temperatureUnits'] ) ? $json['weather']['temperatureUnits'] == 'CELSIUS' : false ) ?>>
70
- <?php esc_html_e( 'Celsius', INTERGEO_PLUGIN_NAME ) ?>
71
- </option>
72
- <option value="FAHRENHEIT" <?php selected( isset( $json['weather']['temperatureUnits'] ) ? $json['weather']['temperatureUnits'] == 'FAHRENHEIT' : false ) ?>>
73
- <?php esc_html_e( 'Fahrenheit', INTERGEO_PLUGIN_NAME ) ?>
74
- </option>
75
- </select>
76
- </td>
77
- <td class="intergeo_tlbr_cntrl_tbl_clmn">
78
- <select class="intergeo_tlbr_cntrl_slct" name="weather_windSpeedUnits">
79
- <option value="">
80
- <?php esc_html_e( 'wind speed units', INTERGEO_PLUGIN_NAME ) ?>
81
- </option>
82
- <option value="KILOMETERS_PER_HOUR" <?php selected( isset( $json['weather']['windSpeedUnits'] ) ? $json['weather']['windSpeedUnits'] == 'KILOMETERS_PER_HOUR' : false ) ?>>
83
- <?php esc_html_e( 'kilometers per hour', INTERGEO_PLUGIN_NAME ) ?>
84
- </option>
85
- <option value="METERS_PER_SECOND" <?php selected( isset( $json['weather']['windSpeedUnits'] ) ? $json['weather']['windSpeedUnits'] == 'METERS_PER_SECOND' : false ) ?>>
86
- <?php esc_html_e( 'meters per second', INTERGEO_PLUGIN_NAME ) ?>
87
- </option>
88
- <option value="MILES_PER_HOUR" <?php selected( isset( $json['weather']['windSpeedUnits'] ) ? $json['weather']['windSpeedUnits'] == 'MILES_PER_HOUR' : false ) ?>>
89
- <?php esc_html_e( 'miles per hour', INTERGEO_PLUGIN_NAME ) ?>
90
- </option>
91
- </select>
92
- </td>
93
- </tr>
94
- </table>
95
- </div>
96
- </li>
97
- <li class="intergeo_tlbr_ul_li_ul_li">
98
- <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Panoramio layer', INTERGEO_PLUGIN_NAME ) ?></span>
99
- <div class="intergeo_tlbr_cntrl_items">
100
- <div class="intergeo_tlbr_cntrl_item">
101
- <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
102
- <label>
103
- <input type="hidden" name="layer_panoramio" value="0">
104
- <input type="checkbox" name="layer_panoramio" value="1" <?php checked( isset( $json['layer']['panoramio'] ) ? $json['layer']['panoramio'] == 1 : false ) ?>>
105
- <?php esc_html_e( 'Enabled', INTERGEO_PLUGIN_NAME ) ?>
106
- </label>
107
- </div>
108
- <p class="intergeo_tlbr_cntrl_dsc">
109
- <?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 ) ?>
110
- </p>
111
- <div class="intergeo_tlbr_cntrl_item">
112
- <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
113
- <?php esc_html_e( 'Restricting photos by tag', INTERGEO_PLUGIN_NAME ) ?>
114
- <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'] ) : '' ?>">
115
- </div>
116
- <p class="intergeo_tlbr_cntrl_dsc">
117
- <?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 ) ?>
118
- </p>
119
- <div class="intergeo_tlbr_cntrl_item">
120
- <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
121
- <?php esc_html_e( 'Restricting photos by user id', INTERGEO_PLUGIN_NAME ) ?>
122
- <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'] ) : '' ?>">
123
- </div>
124
- <p class="intergeo_tlbr_cntrl_dsc">
125
- <?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 ) ?>
126
- </p>
127
- </div>
128
- </li>
129
- -->
130
- <?php
131
- // Added by Ash/Upwork
132
- if( defined( 'IntergeoMaps_Pro' ) ){
133
- global $IntergeoMaps_Pro;
134
- $IntergeoMaps_Pro->addForm("layers", $json);
135
- }else{
136
- ?>
137
- <li class="intergeo_tlbr_ul_li_ul_li">
138
- <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Custom layer', INTERGEO_PLUGIN_NAME ) ?></span>
139
- <div class="intergeo_tlbr_cntrl_items">
140
- <div class="intergeo_tlbr_cntrl_item">
141
- <p class="intergeo_tlbr_grp_dsc">
142
- <a target="_blank" href="<?php echo INTERGEO_PRO_URL; ?>"><?php __('Custom Layers are available in the PRO version', INTERGEO_PLUGIN_NAME);?></a>
143
- </p>
144
- </div>
145
- </div>
146
- </li>
147
- <?php
148
- }
149
- // Added by Ash/Upwork
150
  ?>
151
- </ul>
1
+ <h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'Layers', 'intergeo-maps' ) ?></h3>
2
  <ul class="intergeo_tlbr_ul_li_ul">
3
+ <?php
4
+ if ( ! intergeo_is_developer() ) {
5
+ ?>
6
+ <a target="_blank" href="<?php echo INTERGEO_PRO_URL; ?>" class="intergeo-pro-btn button"><?php _e( 'Available in Developer plan', 'intergeo-maps' ) ?></a>
7
+ <?php
8
+ } else { ?>
9
+
10
+ <li class="intergeo_tlbr_ul_li_ul_li">
11
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Traffic layer', 'intergeo-maps' ) ?></span>
12
+ <div class="intergeo_tlbr_cntrl_items">
13
+ <div class="intergeo_tlbr_cntrl_item">
14
+ <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
15
+ <label>
16
+ <input type="hidden" name="layer_traffic" value="0">
17
+ <input type="checkbox" name="layer_traffic"
18
+ value="1" <?php checked( isset( $json['layer']['traffic'] ) ? $json['layer']['traffic'] == 1 : false ) ?>>
19
+ <?php esc_html_e( 'Enabled', 'intergeo-maps' ) ?>
20
+ </label>
21
+ </div>
22
+ <p class="intergeo_tlbr_cntrl_dsc">
23
+ <?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 %1$s this spreadsheet %2$s to determine traffic coverage support.', 'intergeo-maps' ), '<a href="http://gmaps-samples.googlecode.com/svn/trunk/mapcoverage_filtered.html" target="_blank">', '</a>' ) ?>
24
+ </p>
25
  </div>
26
+ </li>
27
+ <li class="intergeo_tlbr_ul_li_ul_li">
28
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Bicycling layer', 'intergeo-maps' ) ?></span>
29
+ <div class="intergeo_tlbr_cntrl_items">
30
+ <div class="intergeo_tlbr_cntrl_item">
31
+ <a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
32
+ <label>
33
+ <input type="hidden" name="layer_bicycling" value="0">
34
+ <input type="checkbox" name="layer_bicycling"
35
+ value="1" <?php checked( isset( $json['layer']['bicycling'] ) ? $json['layer']['bicycling'] == 1 : false ) ?>>
36
+ <?php esc_html_e( 'Enabled', 'intergeo-maps' ) ?>
37
+ </label>
38
+ </div>
39
+ <p class="intergeo_tlbr_cntrl_dsc">
40
+ <?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-maps' ) ?>
41
+ </p>
42
  </div>
43
+ </li>
44
+ <?php
45
+ // Added by Ash/Upwork
46
+ global $IntergeoMaps_Adv;
47
+ $IntergeoMaps_Adv->addForm( 'layers', $json );
48
+ // Added by Ash/Upwork
49
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  ?>
51
+ </ul>
templates/iframe/overlays.php CHANGED
@@ -1,11 +1,11 @@
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_ul_li_ul_li">
4
  <script id="intergeo_tlbr_marker_tmpl" type="text/html">
5
  <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_marker" border="0" cellspacing="0" cellpadding="0" data-table-num="%num%">
6
  <tr>
7
  <td class="intergeo_tlbr_marker_title_td">
8
- #%num% <?php esc_html_e( 'marker', INTERGEO_PLUGIN_NAME ) ?>
9
  </td>
10
  <td>
11
  <input type="hidden" class="intergeo_tlbr_marker_location" name="overlays_marker[%pos%][position]" data-position="%pos%">
@@ -14,36 +14,37 @@
14
  <input type="hidden" class="intergeo_tlbr_marker_info" name="overlays_marker[%pos%][info]">
15
  <input type="hidden" class="intergeo_tlbr_marker_loc" name="overlays_marker[%pos%][loc]">
16
 
17
- <a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete marker', INTERGEO_PLUGIN_NAME ) ?>"></a>
18
- <a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit marker', INTERGEO_PLUGIN_NAME ) ?>"></a>
19
  </td>
20
  </tr>
21
  </table>
22
  </script>
23
 
24
- <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Markers', INTERGEO_PLUGIN_NAME ) ?></span>
25
  <div class="intergeo_tlbr_cntrl_items" style="display:block">
26
  <div id="intergeo_tlbr_markers">
27
- <?php if ( !empty( $json['overlays']['marker'] ) ) : ?>
 
28
  <?php foreach ( $json['overlays']['marker'] as $i => $overlay ) : ?>
29
  <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_marker" border="0" cellspacing="0" cellpadding="0" data-table-num="<?php echo $i + 1;?>">
30
  <tr>
31
  <td class="intergeo_tlbr_marker_title_td">
32
  <?php if ( empty( $overlay['title'] ) ) : ?>
33
- #<?php echo $i + 1 ?> <?php esc_html_e( 'marker', INTERGEO_PLUGIN_NAME ) ?>
34
  <?php else : ?>
35
  <?php echo esc_html( $overlay['title'] ) ?>
36
- <?php endif; ?>
37
  </td>
38
  <td>
39
  <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 ?>">
40
  <input type="hidden" class="intergeo_tlbr_marker_title" name="overlays_marker[<?php echo $i ?>][title]" value="<?php echo esc_attr( $overlay['title'] ) ?>">
41
  <input type="hidden" class="intergeo_tlbr_marker_icon" name="overlays_marker[<?php echo $i ?>][icon]" value="<?php echo esc_attr( $overlay['icon'] ) ?>">
42
  <input type="hidden" class="intergeo_tlbr_marker_info" name="overlays_marker[<?php echo $i ?>][info]" value="<?php echo esc_attr( $overlay['info'] ) ?>">
43
- <input type="hidden" class="intergeo_tlbr_marker_loc" name="overlays_marker[<?php echo $i ?>][loc]" value="<?php echo esc_attr( isset($overlay['loc']) ? $overlay['loc'] : '' ) ?>">
44
 
45
- <a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete marker', INTERGEO_PLUGIN_NAME ) ?>"></a>
46
- <a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit marker', INTERGEO_PLUGIN_NAME ) ?>"></a>
47
  </td>
48
  </tr>
49
  </table>
@@ -52,286 +53,23 @@
52
  </div>
53
 
54
 
55
- <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_marker_add" border="0" cellspacing="0" cellpadding="0">
56
- <tr>
57
- <td class="intergeo_tlbr_marker_title_td_add">
58
- <input type="button" id="intergeo_add_marker_bttn" class="button button-secondary button-small" value="<?php esc_html_e('Add Marker', INTERGEO_PLUGIN_NAME);?>">
59
- </td>
60
- </tr>
61
- </table>
 
 
62
 
63
- </div>
 
 
 
 
64
 
65
- </li>
66
- <li class="intergeo_tlbr_ul_li_ul_li">
67
- <script id="intergeo_tlbr_polyline_tmpl" type="text/html">
68
- <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_polyline" border="0" cellspacing="0" cellpadding="0">
69
- <tr>
70
- <td>
71
- #%num% <?php esc_html_e( 'polyline', INTERGEO_PLUGIN_NAME ) ?>
72
- </td>
73
- <td>
74
- <input type="hidden" class="intergeo_tlbr_polyline_path" name="overlays_polyline[%pos%][path]" data-position="%pos%">
75
- <input type="hidden" class="intergeo_tlbr_polyline_weight" name="overlays_polyline[%pos%][weight]">
76
- <input type="hidden" class="intergeo_tlbr_polyline_opacity" name="overlays_polyline[%pos%][opacity]">
77
- <input type="hidden" class="intergeo_tlbr_polyline_color" name="overlays_polyline[%pos%][color]">
78
-
79
- <a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete polyline', INTERGEO_PLUGIN_NAME ) ?>"></a>
80
- <a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit polyline', INTERGEO_PLUGIN_NAME ) ?>"></a>
81
-
82
- <span class="intergeo_tlbr_clr_prvw" style="background-color:black;"></span>
83
- </td>
84
- </tr>
85
- </table>
86
- </script>
87
- <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Polylines', INTERGEO_PLUGIN_NAME ) ?></span>
88
- <div id="intergeo_tlbr_polylines" class="intergeo_tlbr_cntrl_items"><?php
89
- if ( !empty( $json['overlays']['polyline'] ) ) :
90
- $i = 0;
91
- foreach ( $json['overlays']['polyline'] as $overlay ) :
92
- $path = array();
93
- foreach( $overlay['path'] as $point ) :
94
- $path[] = implode( ',', $point );
95
- endforeach; ?>
96
- <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_polyline" border="0" cellspacing="0" cellpadding="0">
97
- <tr>
98
- <td>
99
- #<?php echo $i + 1 ?> <?php esc_html_e( 'polyline', INTERGEO_PLUGIN_NAME ) ?>
100
- </td>
101
- <td>
102
- <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 ?>">
103
- <input type="hidden" class="intergeo_tlbr_polyline_weight" name="overlays_polyline[<?php echo $i ?>][weight]" value="<?php echo esc_attr( $overlay['weight'] ) ?>">
104
- <input type="hidden" class="intergeo_tlbr_polyline_opacity" name="overlays_polyline[<?php echo $i ?>][opacity]" value="<?php echo esc_attr( $overlay['opacity'] ) ?>">
105
- <input type="hidden" class="intergeo_tlbr_polyline_color" name="overlays_polyline[<?php echo $i++ ?>][color]" value="<?php echo esc_attr( $overlay['color'] ) ?>">
106
-
107
- <a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete polyline', INTERGEO_PLUGIN_NAME ) ?>"></a>
108
- <a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit polyline', INTERGEO_PLUGIN_NAME ) ?>"></a>
109
-
110
- <span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['color'] ) ?>;opacity:<?php echo esc_attr( $overlay['opacity'] ) ?>"></span>
111
- </td>
112
- </tr>
113
- </table>
114
- <?php endforeach; ?>
115
- <?php endif; ?>
116
- </div>
117
- </li>
118
- <li class="intergeo_tlbr_ul_li_ul_li">
119
- <script id="intergeo_tlbr_rectangle_tmpl" type="text/html">
120
- <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_rectangle" border="0" cellspacing="0" cellpadding="0">
121
- <tr>
122
- <td>
123
- #%num% <?php esc_html_e( 'rectangle', INTERGEO_PLUGIN_NAME ) ?>
124
- </td>
125
- <td>
126
- <input type="hidden" class="intergeo_tlbr_rectangle_path" name="overlays_rectangle[%pos%][path]" data-position="%pos%">
127
- <input type="hidden" class="intergeo_tlbr_rectangle_weight" name="overlays_rectangle[%pos%][weight]">
128
- <input type="hidden" class="intergeo_tlbr_rectangle_stroke_opacity" name="overlays_rectangle[%pos%][stroke_opacity]">
129
- <input type="hidden" class="intergeo_tlbr_rectangle_position" name="overlays_rectangle[%pos%][position]">
130
- <input type="hidden" class="intergeo_tlbr_rectangle_stroke_color" name="overlays_rectangle[%pos%][stroke_color]">
131
- <input type="hidden" class="intergeo_tlbr_rectangle_fill_opacity" name="overlays_rectangle[%pos%][fill_opacity]">
132
- <input type="hidden" class="intergeo_tlbr_rectangle_fill_color" name="overlays_rectangle[%pos%][fill_color]">
133
-
134
- <a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete rectangle', INTERGEO_PLUGIN_NAME ) ?>"></a>
135
- <a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit rectangle', INTERGEO_PLUGIN_NAME ) ?>"></a>
136
-
137
- <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>
138
- <span class="intergeo_tlbr_clr_prvw" style="background-color:black;"></span>
139
- </td>
140
- </tr>
141
- </table>
142
- </script>
143
- <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Rectangles', INTERGEO_PLUGIN_NAME ) ?></span>
144
- <div id="intergeo_tlbr_rectangles" class="intergeo_tlbr_cntrl_items"><?php
145
- if ( !empty( $json['overlays']['rectangle'] ) ) :
146
- $i = 0;
147
- foreach ( $json['overlays']['rectangle'] as $overlay ) :
148
-
149
- $fill_opacity = "opacity:0.3;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=30)';filter:alpha(opacity=30);";
150
- if ( is_numeric( $overlay['fill_opacity'] ) ) {
151
- $opacity = floatval( $overlay['fill_opacity'] );
152
- $fill_opacity = sprintf( "opacity:%1\$.2f;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=%2\$u)';filter:alpha(opacity=%2\$u);", $opacity, $opacity * 100 );
153
- }
154
-
155
- $stroke_opacity = '';
156
- if ( is_numeric( $overlay['stroke_opacity'] ) ) {
157
- $opacity = floatval( $overlay['stroke_opacity'] );
158
- $stroke_opacity = sprintf( "opacity:%1\$f;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=%2\$u)';filter:alpha(opacity=%2\$u);", $opacity, $opacity * 100 );
159
- }
160
-
161
- $path = array();
162
- foreach( $overlay['path'] as $point ) :
163
- $path[] = implode( ',', $point );
164
- endforeach; ?>
165
- <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_rectangle" border="0" cellspacing="0" cellpadding="0">
166
- <tr>
167
- <td>
168
- #<?php echo $i + 1 ?> <?php esc_html_e( 'rectangle', INTERGEO_PLUGIN_NAME ) ?>
169
- </td>
170
- <td>
171
- <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 ?>">
172
- <input type="hidden" class="intergeo_tlbr_rectangle_weight" name="overlays_rectangle[<?php echo $i ?>][weight]" value="<?php echo esc_attr( $overlay['weight'] ) ?>">
173
- <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'] ) ?>">
174
- <input type="hidden" class="intergeo_tlbr_rectangle_position" name="overlays_rectangle[<?php echo $i ?>][position]" value="<?php echo esc_attr( $overlay['position'] ) ?>">
175
- <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'] ) ?>">
176
- <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'] ) ?>">
177
- <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'] ) ?>">
178
-
179
- <a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete rectangle', INTERGEO_PLUGIN_NAME ) ?>"></a>
180
- <a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit rectangle', INTERGEO_PLUGIN_NAME ) ?>"></a>
181
-
182
- <span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['fill_color'] ) ?>;<?php echo $fill_opacity ?>"></span>
183
- <span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['stroke_color'] ) ?>;<?php echo $stroke_opacity ?>"></span>
184
- </td>
185
- </tr>
186
- </table>
187
- <?php endforeach; ?>
188
- <?php endif; ?>
189
  </div>
190
- </li>
191
- <li class="intergeo_tlbr_ul_li_ul_li">
192
- <script id="intergeo_tlbr_circle_tmpl" type="text/html">
193
- <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_circle" border="0" cellspacing="0" cellpadding="0">
194
- <tr>
195
- <td>
196
- #%num% <?php esc_html_e( 'circle', INTERGEO_PLUGIN_NAME ) ?>
197
- </td>
198
- <td>
199
- <input type="hidden" class="intergeo_tlbr_circle_path" name="overlays_circle[%pos%][path]" data-position="%pos%">
200
- <input type="hidden" class="intergeo_tlbr_circle_weight" name="overlays_circle[%pos%][weight]">
201
- <input type="hidden" class="intergeo_tlbr_circle_stroke_opacity" name="overlays_circle[%pos%][stroke_opacity]">
202
- <input type="hidden" class="intergeo_tlbr_circle_position" name="overlays_circle[%pos%][position]">
203
- <input type="hidden" class="intergeo_tlbr_circle_stroke_color" name="overlays_circle[%pos%][stroke_color]">
204
- <input type="hidden" class="intergeo_tlbr_circle_fill_opacity" name="overlays_circle[%pos%][fill_opacity]">
205
- <input type="hidden" class="intergeo_tlbr_circle_fill_color" name="overlays_circle[%pos%][fill_color]">
206
 
207
- <a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete rectangle', INTERGEO_PLUGIN_NAME ) ?>"></a>
208
- <a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit rectangle', INTERGEO_PLUGIN_NAME ) ?>"></a>
209
-
210
- <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>
211
- <span class="intergeo_tlbr_clr_prvw" style="background-color:black;"></span>
212
- </td>
213
- </tr>
214
- </table>
215
- </script>
216
- <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Circles', INTERGEO_PLUGIN_NAME ) ?></span>
217
- <div id="intergeo_tlbr_circles" class="intergeo_tlbr_cntrl_items"><?php
218
- if ( !empty( $json['overlays']['circle'] ) ) :
219
- $i = 0;
220
- foreach ( $json['overlays']['circle'] as $overlay ) :
221
-
222
- $fill_opacity = "opacity:0.3;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=30)';filter:alpha(opacity=30);";
223
- if ( is_numeric( $overlay['fill_opacity'] ) ) {
224
- $opacity = floatval( $overlay['fill_opacity'] );
225
- $fill_opacity = sprintf( "opacity:%1\$.2f;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=%2\$u)';filter:alpha(opacity=%2\$u);", $opacity, $opacity * 100 );
226
- }
227
-
228
- $stroke_opacity = '';
229
- if ( is_numeric( $overlay['stroke_opacity'] ) ) {
230
- $opacity = floatval( $overlay['stroke_opacity'] );
231
- $stroke_opacity = sprintf( "opacity:%1\$f;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=%2\$u)';filter:alpha(opacity=%2\$u);", $opacity, $opacity * 100 );
232
- }
233
-
234
- $path = array();
235
- foreach( $overlay['path'] as $point ) :
236
- $path[] = implode( ',', $point );
237
- endforeach; ?>
238
- <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_circle" border="0" cellspacing="0" cellpadding="0">
239
- <tr>
240
- <td>
241
- #<?php echo $i + 1 ?> <?php esc_html_e( 'circle', INTERGEO_PLUGIN_NAME ) ?>
242
- </td>
243
- <td>
244
- <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 ?>">
245
- <input type="hidden" class="intergeo_tlbr_circle_weight" name="overlays_circle[<?php echo $i ?>][weight]" value="<?php echo esc_attr( $overlay['weight'] ) ?>">
246
- <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'] ) ?>">
247
- <input type="hidden" class="intergeo_tlbr_circle_position" name="overlays_circle[<?php echo $i ?>][position]" value="<?php echo esc_attr( $overlay['position'] ) ?>">
248
- <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'] ) ?>">
249
- <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'] ) ?>">
250
- <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'] ) ?>">
251
-
252
- <a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete circle', INTERGEO_PLUGIN_NAME ) ?>"></a>
253
- <a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit circle', INTERGEO_PLUGIN_NAME ) ?>"></a>
254
-
255
- <span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['fill_color'] ) ?>;<?php echo $fill_opacity ?>"></span>
256
- <span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['stroke_color'] ) ?>;<?php echo $stroke_opacity ?>"></span>
257
- </td>
258
- </tr>
259
- </table>
260
- <?php endforeach; ?>
261
- <?php endif; ?>
262
- </div>
263
- </li>
264
- <li class="intergeo_tlbr_ul_li_ul_li">
265
- <script id="intergeo_tlbr_polygon_tmpl" type="text/html">
266
- <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_polygon" border="0" cellspacing="0" cellpadding="0">
267
- <tr>
268
- <td>
269
- #%num% <?php esc_html_e( 'polygon', INTERGEO_PLUGIN_NAME ) ?>
270
- </td>
271
- <td>
272
- <input type="hidden" class="intergeo_tlbr_polygon_path" name="overlays_polygon[%pos%][path]" data-position="%pos%">
273
- <input type="hidden" class="intergeo_tlbr_polygon_weight" name="overlays_polygon[%pos%][weight]">
274
- <input type="hidden" class="intergeo_tlbr_polygon_stroke_opacity" name="overlays_polygon[%pos%][stroke_opacity]">
275
- <input type="hidden" class="intergeo_tlbr_polygon_position" name="overlays_polygon[%pos%][position]">
276
- <input type="hidden" class="intergeo_tlbr_polygon_stroke_color" name="overlays_polygon[%pos%][stroke_color]">
277
- <input type="hidden" class="intergeo_tlbr_polygon_fill_opacity" name="overlays_polygon[%pos%][fill_opacity]">
278
- <input type="hidden" class="intergeo_tlbr_polygon_fill_color" name="overlays_polygon[%pos%][fill_color]">
279
-
280
- <a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete polygon', INTERGEO_PLUGIN_NAME ) ?>"></a>
281
- <a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit polygon', INTERGEO_PLUGIN_NAME ) ?>"></a>
282
-
283
- <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>
284
- <span class="intergeo_tlbr_clr_prvw" style="background-color:black;"></span>
285
- </td>
286
- </tr>
287
- </table>
288
- </script>
289
- <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Polygons', INTERGEO_PLUGIN_NAME ) ?></span>
290
- <div id="intergeo_tlbr_polygons" class="intergeo_tlbr_cntrl_items"><?php
291
- if ( !empty( $json['overlays']['polygon'] ) ) :
292
- $i = 0;
293
- foreach ( $json['overlays']['polygon'] as $overlay ) :
294
-
295
- $fill_opacity = "opacity:0.3;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=30)';filter:alpha(opacity=30);";
296
- if ( is_numeric( $overlay['fill_opacity'] ) ) {
297
- $opacity = floatval( $overlay['fill_opacity'] );
298
- $fill_opacity = sprintf( "opacity:%1\$.2f;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=%2\$u)';filter:alpha(opacity=%2\$u);", $opacity, $opacity * 100 );
299
- }
300
-
301
- $stroke_opacity = '';
302
- if ( is_numeric( $overlay['stroke_opacity'] ) ) {
303
- $opacity = floatval( $overlay['stroke_opacity'] );
304
- $stroke_opacity = sprintf( "opacity:%1\$f;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=%2\$u)';filter:alpha(opacity=%2\$u);", $opacity, $opacity * 100 );
305
- }
306
-
307
- $path = array();
308
- foreach( $overlay['path'] as $point ) :
309
- $path[] = implode( ',', $point );
310
- endforeach; ?>
311
- <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_polygon" border="0" cellspacing="0" cellpadding="0">
312
- <tr>
313
- <td>
314
- #<?php echo $i + 1 ?> <?php esc_html_e( 'polygon', INTERGEO_PLUGIN_NAME ) ?>
315
- </td>
316
- <td>
317
- <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 ?>">
318
- <input type="hidden" class="intergeo_tlbr_polygon_weight" name="overlays_polygon[<?php echo $i ?>][weight]" value="<?php echo esc_attr( $overlay['weight'] ) ?>">
319
- <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'] ) ?>">
320
- <input type="hidden" class="intergeo_tlbr_polygon_position" name="overlays_polygon[<?php echo $i ?>][position]" value="<?php echo esc_attr( $overlay['position'] ) ?>">
321
- <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'] ) ?>">
322
- <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'] ) ?>">
323
- <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'] ) ?>">
324
-
325
- <a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete polygon', INTERGEO_PLUGIN_NAME ) ?>"></a>
326
- <a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit polygon', INTERGEO_PLUGIN_NAME ) ?>"></a>
327
-
328
- <span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['fill_color'] ) ?>;<?php echo $fill_opacity ?>"></span>
329
- <span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['stroke_color'] ) ?>;<?php echo $stroke_opacity ?>"></span>
330
- </td>
331
- </tr>
332
- </table>
333
- <?php endforeach; ?>
334
- <?php endif; ?>
335
- </div>
336
  </li>
337
- </ul>
1
+ <h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'Overlays', 'intergeo-maps' ) ?></h3>
2
  <ul class="intergeo_tlbr_ul_li_ul">
3
  <li class="intergeo_tlbr_ul_li_ul_li">
4
  <script id="intergeo_tlbr_marker_tmpl" type="text/html">
5
  <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_marker" border="0" cellspacing="0" cellpadding="0" data-table-num="%num%">
6
  <tr>
7
  <td class="intergeo_tlbr_marker_title_td">
8
+ #%num% <?php esc_html_e( 'marker', 'intergeo-maps' ) ?>
9
  </td>
10
  <td>
11
  <input type="hidden" class="intergeo_tlbr_marker_location" name="overlays_marker[%pos%][position]" data-position="%pos%">
14
  <input type="hidden" class="intergeo_tlbr_marker_info" name="overlays_marker[%pos%][info]">
15
  <input type="hidden" class="intergeo_tlbr_marker_loc" name="overlays_marker[%pos%][loc]">
16
 
17
+ <a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete marker', 'intergeo-maps' ) ?>"></a>
18
+ <a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit marker', 'intergeo-maps' ) ?>"></a>
19
  </td>
20
  </tr>
21
  </table>
22
  </script>
23
 
24
+ <span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Markers', 'intergeo-maps' ) ?></span>
25
  <div class="intergeo_tlbr_cntrl_items" style="display:block">
26
  <div id="intergeo_tlbr_markers">
27
+ <?php $markers = 0;
28
+ if ( ! empty( $json['overlays']['marker'] ) ) : ?>
29
  <?php foreach ( $json['overlays']['marker'] as $i => $overlay ) : ?>
30
  <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_marker" border="0" cellspacing="0" cellpadding="0" data-table-num="<?php echo $i + 1;?>">
31
  <tr>
32
  <td class="intergeo_tlbr_marker_title_td">
33
  <?php if ( empty( $overlay['title'] ) ) : ?>
34
+ #<?php echo $i + 1 ?> <?php esc_html_e( 'marker', 'intergeo-maps' ) ?>
35
  <?php else : ?>
36
  <?php echo esc_html( $overlay['title'] ) ?>
37
+ <?php endif; $markers ++; ?>
38
  </td>
39
  <td>
40
  <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 ?>">
41
  <input type="hidden" class="intergeo_tlbr_marker_title" name="overlays_marker[<?php echo $i ?>][title]" value="<?php echo esc_attr( $overlay['title'] ) ?>">
42
  <input type="hidden" class="intergeo_tlbr_marker_icon" name="overlays_marker[<?php echo $i ?>][icon]" value="<?php echo esc_attr( $overlay['icon'] ) ?>">
43
  <input type="hidden" class="intergeo_tlbr_marker_info" name="overlays_marker[<?php echo $i ?>][info]" value="<?php echo esc_attr( $overlay['info'] ) ?>">
44
+ <input type="hidden" class="intergeo_tlbr_marker_loc" name="overlays_marker[<?php echo $i ?>][loc]" value="<?php echo esc_attr( isset( $overlay['loc'] ) ? $overlay['loc'] : '' ) ?>">
45
 
46
+ <a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete marker', 'intergeo-maps' ) ?>"></a>
47
+ <a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit marker', 'intergeo-maps' ) ?>"></a>
48
  </td>
49
  </tr>
50
  </table>
53
  </div>
54
 
55
 
56
+ <table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_marker_add" border="0" cellspacing="0" cellpadding="0">
57
+ <tr>
58
+ <td class="intergeo_tlbr_marker_title_td_add">
59
+ <?php
60
+ if ( intergeo_check_markers( $markers ) ) {
61
+ ?>
62
+ <input type="button" id="intergeo_add_marker_bttn" class="button button-secondary button-small" value="<?php esc_html_e( 'Add Marker', 'intergeo-maps' );?>">
63
+ <a target="_blank" href="<?php echo INTERGEO_PRO_URL; ?>" style='display:none' class="intergeo-pro-btn button"><?php _e( 'Buy PRO version to add more markers', 'intergeo-maps' ) ?></a>
64
+ <?php } else { ?>
65
 
66
+ <a target="_blank" href="<?php echo INTERGEO_PRO_URL; ?>" class="intergeo-pro-btn button"><?php _e( 'Buy PRO version to add more markers', 'intergeo-maps' ) ?></a>
67
+ <?php } ?>
68
+ </td>
69
+ </tr>
70
+ </table>
71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  </li>
75
+ </ul>
templates/iframe/popups.php CHANGED
@@ -2,15 +2,15 @@
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>
@@ -21,49 +21,53 @@
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_address intergeo_tlbr_cntrl_txt"
39
- placeholder="<?php esc_attr_e( 'Enter address or lat, long', INTERGEO_PLUGIN_NAME ) ?>"
40
- title="<?php esc_attr_e( 'Enter address or lat, long', INTERGEO_PLUGIN_NAME ) ?>">
41
- <input type="hidden" name="intergeo_tlbr_marker_address_hidden" value="">
42
  </td>
43
  </tr>
44
  <tr>
45
  <td>
46
- <select name="intergeo_tlbr_marker_icon_select" id="intergeo_tlbr_marker_icon_select" class="intergeo_tlbr_marker_icon_select intergeo_tlbr_cntrl_txt">
47
- <option value="//maps.google.com/mapfiles/ms/icons/red-dot.png" data-imagesrc="//maps.google.com/mapfiles/ms/icons/red-dot.png"><?php _e("Default", INTERGEO_PLUGIN_NAME);?></option>
48
- <option value="//maps.google.com/mapfiles/ms/icons/blue-dot.png" data-imagesrc="//maps.google.com/mapfiles/ms/icons/blue-dot.png"><?php _e("Blue", INTERGEO_PLUGIN_NAME);?></option>
49
- <option value="custom"><?php _e("Custom", INTERGEO_PLUGIN_NAME);?></option>
50
- </select>
 
 
 
 
51
  <input type="text" style="display: none"
52
  class="intergeo_tlbr_marker_icon intergeo_tlbr_cntrl_txt"
53
- placeholder="<?php esc_attr_e( 'Enter icon URL', INTERGEO_PLUGIN_NAME ) ?>"
54
- title="<?php esc_attr_e( 'Enter icon URL', INTERGEO_PLUGIN_NAME ) ?>"
55
- value="//maps.google.com/mapfiles/ms/icons/red-dot.png"
56
- >
57
  </td>
58
  </tr>
59
  <tr>
60
  <td>
61
- <?php wp_editor("", "intergeo-marker-editor", array("media_buttons" => false, "textarea_rows" => 5, "teeny"=> true, "editor_class" => "intergeo_tlbr_marker_info intergeo_tlbr_cntrl_txt", "quicktags" => false));?>
62
  </td>
63
  </tr>
64
  <tr>
65
  <td>
66
- <input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Update', INTERGEO_PLUGIN_NAME ) ?>">
67
  </td>
68
  </tr>
69
  </table>
@@ -74,21 +78,21 @@
74
  <form class="intergeo_ppp_frm intregeo_ppp_frm_overlay" data-position="" data-target="polyline">
75
  <div class="intergeo_ppp_ttl">
76
  <a class="intergeo_ppp_cls" href="javascript:;"></a>
77
- <?php esc_html_e( 'Polyline Options', INTERGEO_PLUGIN_NAME ) ?>
78
  </div>
79
  <table class="intergeo_ppp_tbl" cellspacing="0" cellpadding="0" border="0">
80
  <tr>
81
  <td class="intergeo_tlbr_cntrl_tbl_clmn">
82
  <input type="text"
83
  class="intergeo_tlbr_polyline_weight intergeo_tlbr_cntrl_txt"
84
- placeholder="<?php esc_attr_e( 'Stroke weight in pixel', INTERGEO_PLUGIN_NAME ) ?>"
85
- title="<?php esc_attr_e( 'Stroke weight in pixel', INTERGEO_PLUGIN_NAME ) ?>">
86
  </td>
87
  <td class="intergeo_tlbr_cntrl_tbl_clmn">
88
  <input type="text"
89
  class="intergeo_tlbr_polyline_opacity intergeo_tlbr_cntrl_txt"
90
- placeholder="<?php esc_attr_e( 'Stroke opacity from 0.0 to 1.0', INTERGEO_PLUGIN_NAME ) ?>"
91
- title="<?php esc_attr_e( 'Stroke opacity from 0.0 to 1.0', INTERGEO_PLUGIN_NAME ) ?>">
92
  </td>
93
  </tr>
94
  <tr>
@@ -98,7 +102,7 @@
98
  </tr>
99
  <tr>
100
  <td colspan="2">
101
- <input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Update', INTERGEO_PLUGIN_NAME ) ?>">
102
  </td>
103
  </tr>
104
  </table>
@@ -109,35 +113,35 @@
109
  <form class="intergeo_ppp_frm intregeo_ppp_frm_overlay" data-position="" data-target="">
110
  <div class="intergeo_ppp_ttl">
111
  <a class="intergeo_ppp_cls" href="javascript:;"></a>
112
- <?php esc_html_e( 'Polygon Options', INTERGEO_PLUGIN_NAME ) ?>
113
  </div>
114
  <table class="intergeo_ppp_tbl" cellspacing="0" cellpadding="0" border="0">
115
  <tr>
116
  <td colspan="2">
117
- <b><?php esc_html_e( 'Stroke options', INTERGEO_PLUGIN_NAME ) ?></b>
118
  </td>
119
  </tr>
120
  <tr>
121
  <td class="intergeo_tlbr_cntrl_tbl_clmn">
122
  <input type="text"
123
  class="intergeo_tlbr_polyoverlay_weight intergeo_tlbr_cntrl_txt"
124
- placeholder="<?php esc_attr_e( 'Stroke weight in pixel', INTERGEO_PLUGIN_NAME ) ?>"
125
- title="<?php esc_attr_e( 'Stroke weight in pixel', INTERGEO_PLUGIN_NAME ) ?>">
126
  </td>
127
  <td class="intergeo_tlbr_cntrl_tbl_clmn">
128
  <input type="text"
129
  class="intergeo_tlbr_polyoverlay_stroke_opacity intergeo_tlbr_cntrl_txt"
130
- placeholder="<?php esc_attr_e( 'Stroke opacity from 0.0 to 1.0', INTERGEO_PLUGIN_NAME ) ?>"
131
- title="<?php esc_attr_e( 'Stroke opacity from 0.0 to 1.0', INTERGEO_PLUGIN_NAME ) ?>">
132
  </td>
133
  </tr>
134
  <tr>
135
  <td colspan="2">
136
  <select class="intergeo_tlbr_polyoverlay_position intergeo_tlbr_cntrl_slct">
137
- <option value=""><?php esc_html_e( 'stroke position', INTERGEO_PLUGIN_NAME ) ?></option>
138
- <option value="CENTER"><?php esc_html_e( 'center', INTERGEO_PLUGIN_NAME ) ?></option>
139
- <option value="INSIDE"><?php esc_html_e( 'inside the object', INTERGEO_PLUGIN_NAME ) ?></option>
140
- <option value="OUTSIDE"><?php esc_html_e( 'outside the object', INTERGEO_PLUGIN_NAME ) ?></option>
141
  </select>
142
  </td>
143
  </tr>
@@ -148,15 +152,15 @@
148
  </tr>
149
  <tr>
150
  <td colspan="2">
151
- <b><?php esc_html_e( 'Fill options', INTERGEO_PLUGIN_NAME ) ?></b>
152
  </td>
153
  </tr>
154
  <tr>
155
  <td colspan="2">
156
  <input type="text"
157
  class="intergeo_tlbr_polyoverlay_fill_opacity intergeo_tlbr_cntrl_txt"
158
- placeholder="<?php esc_attr_e( 'Fill opacity from 0.0 to 1.0', INTERGEO_PLUGIN_NAME ) ?>"
159
- title="<?php esc_attr_e( 'Fill opacity from 0.0 to 1.0', INTERGEO_PLUGIN_NAME ) ?>">
160
  </td>
161
  </tr>
162
  <tr>
@@ -166,7 +170,7 @@
166
  </tr>
167
  <tr>
168
  <td colspan="2">
169
- <input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Update', INTERGEO_PLUGIN_NAME ) ?>">
170
  </td>
171
  </tr>
172
  </table>
@@ -177,40 +181,40 @@
177
  <form class="intergeo_ppp_frm intregeo_ppp_frm_overlay" data-position="" data-target="direction">
178
  <div class="intergeo_ppp_ttl">
179
  <a class="intergeo_ppp_cls" href="javascript:;"></a>
180
- <?php esc_html_e( 'Direction Options', INTERGEO_PLUGIN_NAME ) ?>
181
  </div>
182
  <table class="intergeo_ppp_tbl" cellspacing="0" cellpadding="0" border="0">
183
  <tr>
184
  <td>
185
  <input type="text"
186
  id="intergeo_ppp_drctn_from" class="intergeo_tlbr_cntrl_txt"
187
- title="<?php esc_attr_e( 'The start location from which to calculate directions', INTERGEO_PLUGIN_NAME ) ?>"
188
- placeholder="<?php esc_attr_e( 'The start location from which to calculate directions', INTERGEO_PLUGIN_NAME ) ?>">
189
  </td>
190
  </tr>
191
  <tr>
192
  <td>
193
  <input type="text"
194
  id="intergeo_ppp_drctn_to" class="intergeo_tlbr_cntrl_txt"
195
- title="<?php esc_attr_e( 'The end location to which to calculate directions', INTERGEO_PLUGIN_NAME ) ?>"
196
- placeholder="<?php esc_attr_e( 'The end location to which to calculate directions', INTERGEO_PLUGIN_NAME ) ?>">
197
  </td>
198
  </tr>
199
  <tr>
200
  <td>
201
  <select id="intergeo_ppp_drctn_mode" class="intergeo_tlbr_cntrl_slct">
202
- <option value="DRIVING"><?php esc_html_e( 'via standard driving directions', INTERGEO_PLUGIN_NAME ) ?></option>
203
- <option value="BICYCLING"><?php esc_html_e( 'via bicycle paths & preferred streets', INTERGEO_PLUGIN_NAME ) ?></option>
204
- <option value="TRANSIT"><?php esc_html_e( 'via public transit routes', INTERGEO_PLUGIN_NAME ) ?></option>
205
- <option value="WALKING"><?php esc_html_e( 'via pedestrian paths & sidewalks', INTERGEO_PLUGIN_NAME ) ?></option>
206
  </select>
207
  </td>
208
  </tr>
209
  <tr>
210
  <td>
211
- <input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Save', INTERGEO_PLUGIN_NAME ) ?>">
212
  </td>
213
  </tr>
214
  </table>
215
  </form>
216
- </div>
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-maps' ) ?>
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-maps' ) ?>">
11
  </td>
12
  <td style="width:40px;text-align:right">
13
+ <button type="submit" class="button button-primary"><?php esc_html_e( 'Go', 'intergeo-maps' ) ?></button>
14
  </td>
15
  </tr>
16
  </table>
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-maps' ) ?>
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-maps' ) ?>"
32
+ title="<?php esc_attr_e( 'Enter title', 'intergeo-maps' ) ?>">
33
  </td>
34
  </tr>
35
  <tr>
36
  <td>
37
  <input type="text"
38
  class="intergeo_tlbr_marker_address intergeo_tlbr_cntrl_txt"
39
+ placeholder="<?php esc_attr_e( 'Enter address or lat, long', 'intergeo-maps' ) ?>"
40
+ title="<?php esc_attr_e( 'Enter address or lat, long', 'intergeo-maps' ) ?>">
41
+ <input type="hidden" name="intergeo_tlbr_marker_address_hidden" value="">
42
  </td>
43
  </tr>
44
  <tr>
45
  <td>
46
+ <select name="intergeo_tlbr_marker_icon_select" id="intergeo_tlbr_marker_icon_select" class="intergeo_tlbr_marker_icon_select intergeo_tlbr_cntrl_txt">
47
+ <option value="//maps.google.com/mapfiles/ms/icons/red-dot.png" data-imagesrc="//maps.google.com/mapfiles/ms/icons/red-dot.png"><?php _e( 'Default', 'intergeo-maps' );?></option>
48
+ <option value="//maps.google.com/mapfiles/ms/icons/blue-dot.png" data-imagesrc="//maps.google.com/mapfiles/ms/icons/blue-dot.png"><?php _e( 'Blue', 'intergeo-maps' );?></option>
49
+ <?php
50
+ if ( intergeo_is_personal() ) :
51
+ ?>
52
+ <option value="custom"><?php _e( 'Custom', 'intergeo-maps' );?></option>
53
+ <?php endif; ?>
54
+ </select>
55
  <input type="text" style="display: none"
56
  class="intergeo_tlbr_marker_icon intergeo_tlbr_cntrl_txt"
57
+ placeholder="<?php esc_attr_e( 'Enter icon URL', 'intergeo-maps' ) ?>"
58
+ title="<?php esc_attr_e( 'Enter icon URL', 'intergeo-maps' ) ?>"
59
+ value="//maps.google.com/mapfiles/ms/icons/red-dot.png"
60
+ >
61
  </td>
62
  </tr>
63
  <tr>
64
  <td>
65
+ <?php wp_editor( '', 'intergeo-marker-editor', array( 'media_buttons' => false, 'textarea_rows' => 5, 'teeny' => true, 'editor_class' => 'intergeo_tlbr_marker_info intergeo_tlbr_cntrl_txt', 'quicktags' => false ) );?>
66
  </td>
67
  </tr>
68
  <tr>
69
  <td>
70
+ <input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Update', 'intergeo-maps' ) ?>">
71
  </td>
72
  </tr>
73
  </table>
78
  <form class="intergeo_ppp_frm intregeo_ppp_frm_overlay" data-position="" data-target="polyline">
79
  <div class="intergeo_ppp_ttl">
80
  <a class="intergeo_ppp_cls" href="javascript:;"></a>
81
+ <?php esc_html_e( 'Polyline Options', 'intergeo-maps' ) ?>
82
  </div>
83
  <table class="intergeo_ppp_tbl" cellspacing="0" cellpadding="0" border="0">
84
  <tr>
85
  <td class="intergeo_tlbr_cntrl_tbl_clmn">
86
  <input type="text"
87
  class="intergeo_tlbr_polyline_weight intergeo_tlbr_cntrl_txt"
88
+ placeholder="<?php esc_attr_e( 'Stroke weight in pixel', 'intergeo-maps' ) ?>"
89
+ title="<?php esc_attr_e( 'Stroke weight in pixel', 'intergeo-maps' ) ?>">
90
  </td>
91
  <td class="intergeo_tlbr_cntrl_tbl_clmn">
92
  <input type="text"
93
  class="intergeo_tlbr_polyline_opacity intergeo_tlbr_cntrl_txt"
94
+ placeholder="<?php esc_attr_e( 'Stroke opacity from 0.0 to 1.0', 'intergeo-maps' ) ?>"
95
+ title="<?php esc_attr_e( 'Stroke opacity from 0.0 to 1.0', 'intergeo-maps' ) ?>">
96
  </td>
97
  </tr>
98
  <tr>
102
  </tr>
103
  <tr>
104
  <td colspan="2">
105
+ <input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Update', 'intergeo-maps' ) ?>">
106
  </td>
107
  </tr>
108
  </table>
113
  <form class="intergeo_ppp_frm intregeo_ppp_frm_overlay" data-position="" data-target="">
114
  <div class="intergeo_ppp_ttl">
115
  <a class="intergeo_ppp_cls" href="javascript:;"></a>
116
+ <?php esc_html_e( 'Polygon Options', 'intergeo-maps' ) ?>
117
  </div>
118
  <table class="intergeo_ppp_tbl" cellspacing="0" cellpadding="0" border="0">
119
  <tr>
120
  <td colspan="2">
121
+ <b><?php esc_html_e( 'Stroke options', 'intergeo-maps' ) ?></b>
122
  </td>
123
  </tr>
124
  <tr>
125
  <td class="intergeo_tlbr_cntrl_tbl_clmn">
126
  <input type="text"
127
  class="intergeo_tlbr_polyoverlay_weight intergeo_tlbr_cntrl_txt"
128
+ placeholder="<?php esc_attr_e( 'Stroke weight in pixel', 'intergeo-maps' ) ?>"
129
+ title="<?php esc_attr_e( 'Stroke weight in pixel', 'intergeo-maps' ) ?>">
130
  </td>
131
  <td class="intergeo_tlbr_cntrl_tbl_clmn">
132
  <input type="text"
133
  class="intergeo_tlbr_polyoverlay_stroke_opacity intergeo_tlbr_cntrl_txt"
134
+ placeholder="<?php esc_attr_e( 'Stroke opacity from 0.0 to 1.0', 'intergeo-maps' ) ?>"
135
+ title="<?php esc_attr_e( 'Stroke opacity from 0.0 to 1.0', 'intergeo-maps' ) ?>">
136
  </td>
137
  </tr>
138
  <tr>
139
  <td colspan="2">
140
  <select class="intergeo_tlbr_polyoverlay_position intergeo_tlbr_cntrl_slct">
141
+ <option value=""><?php esc_html_e( 'stroke position', 'intergeo-maps' ) ?></option>
142
+ <option value="CENTER"><?php esc_html_e( 'center', 'intergeo-maps' ) ?></option>
143
+ <option value="INSIDE"><?php esc_html_e( 'inside the object', 'intergeo-maps' ) ?></option>
144
+ <option value="OUTSIDE"><?php esc_html_e( 'outside the object', 'intergeo-maps' ) ?></option>
145
  </select>
146
  </td>
147
  </tr>
152
  </tr>
153
  <tr>
154
  <td colspan="2">
155
+ <b><?php esc_html_e( 'Fill options', 'intergeo-maps' ) ?></b>
156
  </td>
157
  </tr>
158
  <tr>
159
  <td colspan="2">
160
  <input type="text"
161
  class="intergeo_tlbr_polyoverlay_fill_opacity intergeo_tlbr_cntrl_txt"
162
+ placeholder="<?php esc_attr_e( 'Fill opacity from 0.0 to 1.0', 'intergeo-maps' ) ?>"
163
+ title="<?php esc_attr_e( 'Fill opacity from 0.0 to 1.0', 'intergeo-maps' ) ?>">
164
  </td>
165
  </tr>
166
  <tr>
170
  </tr>
171
  <tr>
172
  <td colspan="2">
173
+ <input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Update', 'intergeo-maps' ) ?>">
174
  </td>
175
  </tr>
176
  </table>
181
  <form class="intergeo_ppp_frm intregeo_ppp_frm_overlay" data-position="" data-target="direction">
182
  <div class="intergeo_ppp_ttl">
183
  <a class="intergeo_ppp_cls" href="javascript:;"></a>
184
+ <?php esc_html_e( 'Direction Options', 'intergeo-maps' ) ?>
185
  </div>
186
  <table class="intergeo_ppp_tbl" cellspacing="0" cellpadding="0" border="0">
187
  <tr>
188
  <td>
189
  <input type="text"
190
  id="intergeo_ppp_drctn_from" class="intergeo_tlbr_cntrl_txt"
191
+ title="<?php esc_attr_e( 'The start location from which to calculate directions', 'intergeo-maps' ) ?>"
192
+ placeholder="<?php esc_attr_e( 'The start location from which to calculate directions', 'intergeo-maps' ) ?>">
193
  </td>
194
  </tr>
195
  <tr>
196
  <td>
197
  <input type="text"
198
  id="intergeo_ppp_drctn_to" class="intergeo_tlbr_cntrl_txt"
199
+ title="<?php esc_attr_e( 'The end location to which to calculate directions', 'intergeo-maps' ) ?>"
200
+ placeholder="<?php esc_attr_e( 'The end location to which to calculate directions', 'intergeo-maps' ) ?>">
201
  </td>
202
  </tr>
203
  <tr>
204
  <td>
205
  <select id="intergeo_ppp_drctn_mode" class="intergeo_tlbr_cntrl_slct">
206
+ <option value="DRIVING"><?php esc_html_e( 'via standard driving directions', 'intergeo-maps' ) ?></option>
207
+ <option value="BICYCLING"><?php esc_html_e( 'via bicycle paths & preferred streets', 'intergeo-maps' ) ?></option>
208
+ <option value="TRANSIT"><?php esc_html_e( 'via public transit routes', 'intergeo-maps' ) ?></option>
209
+ <option value="WALKING"><?php esc_html_e( 'via pedestrian paths & sidewalks', 'intergeo-maps' ) ?></option>
210
  </select>
211
  </td>
212
  </tr>
213
  <tr>
214
  <td>
215
+ <input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Save', 'intergeo-maps' ) ?>">
216
  </td>
217
  </tr>
218
  </table>
219
  </form>
220
+ </div>
templates/iframe/positioning.php CHANGED
@@ -1,27 +1,27 @@
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>
@@ -30,20 +30,20 @@
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>
@@ -56,44 +56,44 @@
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>
1
+ <h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'Positioning & Zooming', 'intergeo-maps' ) ?></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-maps' ) ?>
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-maps' ) ?></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-maps' ) ?>
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-maps' ) ?>
16
  </option>
17
  <option value="TERRAIN" <?php selected( isset( $json['map']['mapTypeId'] ) ? $json['map']['mapTypeId'] == 'TERRAIN' : false ) ?>>
18
+ <?php esc_html_e( 'Terrain', 'intergeo-maps' ) ?>
19
  </option>
20
  <option value="SATELLITE" <?php selected( isset( $json['map']['mapTypeId'] ) ? $json['map']['mapTypeId'] == 'SATELLITE' : false ) ?>>
21
+ <?php esc_html_e( 'Satellite', 'intergeo-maps' ) ?>
22
  </option>
23
  <option value="HYBRID" <?php selected( isset( $json['map']['mapTypeId'] ) ? $json['map']['mapTypeId'] == 'HYBRID' : false ) ?>>
24
+ <?php esc_html_e( 'Hybrid', 'intergeo-maps' ) ?>
25
  </option>
26
  </select>
27
  </div>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?></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-maps' ) ?>
47
  </div>
48
  <table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
49
  <tr>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?></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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
96
  </p>
97
  </div>
98
  </li>
99
+ </ul>
templates/iframe/styles.php CHANGED
@@ -1,24 +1,24 @@
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">
@@ -63,21 +63,21 @@
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>
1
+ <h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'Styles', 'intergeo-maps' ) ?></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-maps' ) ?></span>
5
  <div class="intergeo_tlbr_cntrl_items">
6
  <div class="intergeo_tlbr_cntrl_item">
7
+ <?php esc_html_e( 'Width', 'intergeo-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?>
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-maps' ) ?></span>
22
  <div class="intergeo_tlbr_cntrl_items">
23
  <div class="intergeo_tlbr_cntrl_item">
24
  <label class="intergeo_tlbr_style_preview" title="Default">
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-maps' ) ?></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-maps' ) ?>
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 %1$s Styled Map Wizard %2$s to set up the JSON for your maps styles.', 'intergeo-maps' ), '<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 CHANGED
@@ -1,15 +1,20 @@
1
  <div class="wrap">
2
  <?php
3
- if (!get_option("intergeo_map_api_key")) {
4
- ?>
5
- <div class="notice notice-warning"><p><?php echo sprintf(__("You have not added an API Key. Your maps may not display properly. Please add an API Key %shere%s", INTERGEO_PLUGIN_NAME), "<a href='" . admin_url("options-general.php?page=" . INTERGEO_PLUGIN_NAME) . "'>", "</a>");?></p></div>
6
- <?php
7
- }
8
- ?>
9
- <h2>
10
- <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>
11
- <a id="intergeo_lbrr_add_new" href="javascript:;" class="add-new-h2"><?php _e( 'Add New', INTERGEO_PLUGIN_NAME ) ?></a>
12
- <a id="intergeo_lbrr_settings" href="<?php echo admin_url("options-general.php?page=" . INTERGEO_PLUGIN_NAME);?>" class="add-new-h2"><?php _e( 'Maps Settings', INTERGEO_PLUGIN_NAME ) ?></a>
 
 
 
 
 
13
  </h2>
14
 
15
  <script type="text/javascript">
@@ -19,63 +24,107 @@
19
  /* ]]> */
20
  </script>
21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  <?php if ( $query->have_posts() ) : ?>
23
 
24
- <div id="intergeo_lbrr_items"><?php
25
  $index = 0;
26
- while ( $query->have_posts() ) :
27
- $post = $query->next_post();
28
 
29
- $id = intergeo_encode( $post->ID );
30
- $json = json_decode( $post->post_content, true );
31
 
32
- $delete_url = add_query_arg( array(
33
- 'map' => $id,
34
- 'do' => 'delete',
35
- 'noheader' => 'true',
36
- 'nonce' => wp_create_nonce( $post->ID . filter_input( INPUT_SERVER, 'REMOTE_ADDR', FILTER_VALIDATE_IP ) ),
37
- ) );
38
 
39
- $libraries = intergeo_check_libraries( $json, $libraries );
40
 
41
- ?><div class="intergeo_lbrr_item"<?php echo $index != 0 && $index % 3 == 0 ? ' style="clear:both"' : '' ?>>
42
- <div class="intergeo_lbrr_wrapper">
43
- <div class="intergeo_lbrr_map_wrapper">
44
- <div class="intergeo_lbrr_map_loader">
45
- <div id="intergeo_map<?php echo $id ?>" class="intergeo_lbrr_map"></div>
46
- </div>
47
- </div>
48
- <table class="intergeo_lbrr_cntrls" cellspacing="0" cellpadding="0" border="0">
49
- <tr>
50
- <td>
51
- <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]">
52
- </td>
53
- <td class="intergeo_lbrr_item_actions">
54
- <a class="intergeo_lbrr_item_edit" href="javascript:;" title="<?php _e( "Edit", INTERGEO_PLUGIN_NAME ) ?>" data-map="<?php echo $id ?>"></a>
55
- <a class="intergeo_lbrr_item_copy" href="javascript:;" title="<?php _e( "Copy", INTERGEO_PLUGIN_NAME ) ?>" data-map="<?php echo $id ?>"></a>
56
- <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>
57
- </td>
58
- </tr>
59
- </table>
60
  </div>
61
  </div>
62
- <script type="text/javascript">
63
- /* <![CDATA[ */
64
- window.intergeo_maps.push({
65
- container: 'intergeo_map<?php echo $id ?>',
66
- options: <?php echo $post->post_content ?>
67
- });
68
- /* ]]> */
69
- </script><?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
 
71
  $index++;
72
  endwhile;
73
 
74
  ?><div style="clear:both"></div>
 
75
  </div>
76
 
77
- <?php if ( !empty( $pagination ) ) : ?>
78
- <div>
79
  <ul id="intergeo_lbrr_pgntn">
80
  <?php foreach ( $pagination as $page_item ) : ?>
81
  <li><?php echo $page_item ?></li>
@@ -87,7 +136,7 @@
87
 
88
  <?php else : ?>
89
  <p>
90
- <?php esc_html_e( 'You do not have created maps. Start adding it by clicking "Add New" button.', INTERGEO_PLUGIN_NAME ) ?>
91
  </p>
92
  <?php endif; ?>
93
- </div>
1
  <div class="wrap">
2
  <?php
3
+ if ( ! get_option( 'intergeo_map_api_key' ) ) {
4
+ ?>
5
+ <div class="notice notice-warning"><p><?php echo sprintf( __( 'You have not added an API Key. Your maps may not display properly. Please add an API Key %1$s here %2$s', 'intergeo-maps' ), "<a href='" . admin_url( 'options-general.php?page=' . INTERGEO_PLUGIN_NAME ) . "'>", '</a>' );?></p></div>
6
+ <?php
7
+ }
8
+ ?>
9
+ <h2>
10
+ <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-maps' ) ?></div>
11
+ <?php if ( intergeo_check_maps_number() ) : ?>
12
+ <a id="intergeo_lbrr_add_new" href="javascript:;" class="intergeo_lbrr_add_new add-new-h2"><?php _e( 'Add New', 'intergeo-maps' ) ?></a>
13
+ <?php else : ?>
14
+ <a target="_blank" href="<?php echo INTERGEO_PRO_URL; ?>" class="intergeo-pro-btn add-new-h2"><?php _e( 'Buy PRO version to add more maps', 'intergeo-maps' ) ?></a>
15
+ <?php endif; ?>
16
+
17
+ <a id="intergeo_lbrr_settings" href="<?php echo admin_url( 'options-general.php?page=' . INTERGEO_PLUGIN_NAME );?>" class="add-new-h2"><?php _e( 'Maps Settings', 'intergeo-maps' ) ?></a>
18
  </h2>
19
 
20
  <script type="text/javascript">
24
  /* ]]> */
25
  </script>
26
 
27
+ <div id="intergeo_library" class="intergeo_library">
28
+ <div id="intergeo_sidebar" class="intergeo_sidebar_right">
29
+ <?php
30
+ if ( ! intergeo_is_developer() ) :
31
+ ?>
32
+ <div class="intergeo_sidebar_pro">
33
+ <span class="maps-available"><span class="dashicons dashicons-location"></span> <?php echo intergeo_get_maps(); ?>/<?php
34
+ if ( intergeo_is_personal() ) {
35
+ echo 10;
36
+ } else {
37
+ echo 3;
38
+ }
39
+ ?> maps available</span>
40
+ <h3>Upgrade to <?php
41
+ if ( intergeo_is_personal() ) {
42
+ echo 'Devloper Plan';
43
+ } else {
44
+ echo 'PRO';
45
+ }
46
+ ?></h3>
47
+ <ul>
48
+ <li>Unlimited maps</li>
49
+
50
+ <?php
51
+ if ( ! intergeo_is_personal() ) :
52
+ ?>
53
+ <li>Unlimited markers</li>
54
+ <?php endif; ?>
55
+ <li>Custom layers</li>
56
+ <li>Add directions</li>
57
+ <li>Adsense integrations</li>
58
+ <li>Import/export markers</li>
59
+ </ul>
60
+ <a href="<?php echo INTERGEO_PRO_URL?>" target="_blank" class="btn">Upgrade Now</a>
61
+ </div>
62
+ <?php endif; ?>
63
+ <div class="intergeo_sidebar_subscribe">
64
+ <?php
65
+ do_action( INTERGEO_PLUGIN_NAME . '_render_subscribe_box' );
66
+ ?>
67
+ </div>
68
+ </div>
69
+
70
  <?php if ( $query->have_posts() ) : ?>
71
 
72
+ <div id="intergeo_lbrr_items" class="intergeo_sidebar_left"><?php
73
  $index = 0;
74
+ while ( $query->have_posts() ) :
75
+ $post = $query->next_post();
76
 
77
+ $id = intergeo_encode( $post->ID );
78
+ $json = json_decode( $post->post_content, true );
79
 
80
+ $delete_url = add_query_arg( array(
81
+ 'map' => $id,
82
+ 'do' => 'delete',
83
+ 'noheader' => 'true',
84
+ 'nonce' => wp_create_nonce( $post->ID . filter_input( INPUT_SERVER, 'REMOTE_ADDR', FILTER_VALIDATE_IP ) ),
85
+ ) );
86
 
87
+ $libraries = intergeo_check_libraries( $json, $libraries );
88
 
89
+ ?><div class="intergeo_lbrr_item"<?php echo $index != 0 && $index % 3 == 0 ? ' style="clear:both"' : '' ?>>
90
+ <div class="intergeo_lbrr_wrapper">
91
+ <div class="intergeo_lbrr_map_wrapper">
92
+ <div class="intergeo_lbrr_map_loader">
93
+ <div id="intergeo_map<?php echo $id ?>" class="intergeo_lbrr_map"></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  </div>
95
  </div>
96
+ <table class="intergeo_lbrr_cntrls" cellspacing="0" cellpadding="0" border="0">
97
+ <tr>
98
+ <td>
99
+ <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]">
100
+ </td>
101
+ <td class="intergeo_lbrr_item_actions">
102
+ <a class="intergeo_lbrr_item_edit" href="javascript:;" title="<?php _e( 'Edit', 'intergeo-maps' ) ?>" data-map="<?php echo $id ?>"></a>
103
+ <a class="intergeo_lbrr_item_copy" href="javascript:;" title="<?php _e( 'Copy', 'intergeo-maps' ) ?>" data-map="<?php echo $id ?>"></a>
104
+ <a class="intergeo_lbrr_item_delete" href="<?php echo esc_attr( $delete_url ) ?>" title="<?php _e( 'Delete', 'intergeo-maps' ) ?>" onclick="return showNotice.warn();"></a>
105
+ </td>
106
+ </tr>
107
+ </table>
108
+ </div>
109
+ </div>
110
+ <script type="text/javascript">
111
+ /* <![CDATA[ */
112
+ window.intergeo_maps.push({
113
+ container: 'intergeo_map<?php echo $id ?>',
114
+ options: <?php echo $post->post_content ?>
115
+ });
116
+ /* ]]> */
117
+ </script><?php
118
 
119
  $index++;
120
  endwhile;
121
 
122
  ?><div style="clear:both"></div>
123
+ </div>
124
  </div>
125
 
126
+ <?php if ( ! empty( $pagination ) ) : ?>
127
+ <div class="clear">
128
  <ul id="intergeo_lbrr_pgntn">
129
  <?php foreach ( $pagination as $page_item ) : ?>
130
  <li><?php echo $page_item ?></li>
136
 
137
  <?php else : ?>
138
  <p>
139
+ <?php esc_html_e( 'You do not have created maps. Start adding it by clicking "Add New" button.', 'intergeo-maps' ) ?>
140
  </p>
141
  <?php endif; ?>
142
+ </div>
templates/nag.php CHANGED
@@ -1 +1 @@
1
- <div class="updated activated notice is-dismissible intergeo_nag"><p><?php printf( __( 'You have just enabled the Intergeo - Google Maps Plugin. You can now go to <a href="%s">Media > Intergeo Maps</a> and start building your own.', INTERGEO_PLUGIN_NAME ), admin_url("upload.php?page=intergeo") ); ?></p></div>
1
+ <div class="updated activated notice is-dismissible intergeo_nag"><p><?php printf( __( 'You have just enabled the Intergeo - Google Maps Plugin. You can now go to <a href="%s">Media > Intergeo Maps</a> and start building your own.', 'intergeo-maps' ), admin_url( 'upload.php?page=' . INTERGEO_PLUGIN_NAME ) ); ?></p></div>