Version Description
- Fixed issue with warning error when including some templates
Download this release
Release Info
Developer | codeinwp |
Plugin | Google Maps Plugin by Intergeo |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
- css/editor.css +65 -65
- images/computer.png +0 -0
- index.php +934 -934
- js/editor.js +1122 -1122
- js/rendering.js +445 -445
- languages/intergeo-en_US.po +1016 -1016
- readme.txt +135 -129
- templates/iframe/adsense.php +161 -161
- templates/iframe/controls.php +449 -449
- templates/iframe/directions.php +78 -78
- templates/iframe/extra.php +32 -0
- templates/iframe/form.php +45 -45
- templates/iframe/layers.php +150 -148
- templates/iframe/overlays.php +339 -339
- templates/iframe/popups.php +203 -203
- templates/iframe/positioning.php +98 -98
- templates/iframe/styles.php +82 -82
- templates/library/list.php +84 -84
css/editor.css
CHANGED
@@ -1,65 +1,65 @@
|
|
1 |
-
@font-face{font-family:'Elsie Swash Caps';font-style:normal;font-weight:900;src:local('Elsie Swash Caps Blacks'),local('ElsieSwashCapsBlack-Regular'),url(http://themes.googleusercontent.com/static/fonts/elsieswashcaps/v1/iZnus9qif0tR5pGaDv5zdEd2CPfIv3tbBh_qUxvoikM.woff) format('woff')}#intergeo_canvas_wrapper{position:absolute;top:0;right:300px;bottom:60px;left:0;z-index:75}#intergeo_canvas{width:100%;height:100%}#intergeo_canvas_center{width:10px;height:10px;position:absolute;top:50%;left:50%;margin:-5px 0 0 -5px;border-radius:2px;background-image:url(../images/map_center.png);background-position:center center;background-repeat:no-repeat}#intergeo_footer{height:36px;padding:12px 16px;position:absolute;z-index:100;left:0;right:0;bottom:0;border-top:1px solid #dfdfdf;overflow:hidden;-webkit-box-shadow:0 -4px 4px -4px rgba(0,0,0,0.1);box-shadow:0 -4px 4px -4px rgba(0,0,0,0.1);text-align:right}#intergeo_tlbr{position:absolute;top:0;right:0;bottom:60px;width:299px;z-index:75;background:whitesmoke;border-left:1px solid #dfdfdf;overflow:auto;-webkit-overflow-scrolling:touch}#intergeo_tlbr_ttl{font-family:'Elsie Swash Caps',cursive;font-size:34px;padding:30px 20px 10px;display:block}#intergeo_tlbr_ul{border-top:1px solid #dfdfdf}.intergeo_tlbr_ul_li{margin:0}.intergeo_tlbr_ul_li.open{border-bottom:1px solid #dfdfdf}.intergeo_tlbr_ul_li_h3{border-top:1px solid white;border-bottom:1px solid #dfdfdf;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin:0;padding:10px 20px;font-size:15px;font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif;font-weight:normal;text-shadow:0 1px 0 white;background:whiteSmoke;background-image:-webkit-gradient(linear,left bottom,left top,from(#EEE),to(whiteSmoke));background-image:-webkit-linear-gradient(bottom,#EEE,whiteSmoke);background-image:-moz-linear-gradient(bottom,#EEE,whiteSmoke);background-image:-o-linear-gradient(bottom,#EEE,whiteSmoke);background-image:-ms-linear-gradient(bottom,#EEE,whiteSmoke);background-image:linear-gradient(bottom,#EEE,whiteSmoke)}.intergeo_tlbr_ul_li_h3:hover,.intergeo_tlbr_ul_li.open .intergeo_tlbr_ul_li_h3{color:white;text-shadow:0 -1px 0 #333;background:gray;background-image:-webkit-gradient(linear,left bottom,left top,from(#6d6d6d),to(gray));background-image:-webkit-linear-gradient(bottom,#6d6d6d,gray);background-image:-moz-linear-gradient(bottom,#6d6d6d,gray);background-image:-o-linear-gradient(bottom,#6d6d6d,gray);background-image:-ms-linear-gradient(bottom,#6d6d6d,gray);background-image:linear-gradient(bottom,#6d6d6d,gray)}.intergeo_tlbr_ul_li_h3::after{content:'';width:0;height:0;border-color:#CCC transparent;border-style:solid;border-width:6px 6px 0;position:absolute;top:15px;right:20px;z-index:1}.intergeo_tlbr_ul_li_h3:hover::after,.intergeo_tlbr_ul_li.open .intergeo_tlbr_ul_li_h3::after{border-color:#EEE transparent}.intergeo_tlbr_ul_li:hover .intergeo_tlbr_ul_li_h3{border-top-color:gray}.intergeo_tlbr_ul_li.open .intergeo_tlbr_ul_li_h3{border-top-color:#6d6d6d}.intergeo_tlbr_ul_li.open .intergeo_tlbr_ul_li_h3::after{border-width:0 6px 6px}.intergeo_tlbr_ul_li_ul{margin:0;display:none;background-color:#fdfdfd;padding:10px 0 20px 0;overflow:hidden}.intergeo_tlbr_ul_li.open .intergeo_tlbr_ul_li_ul{display:block}.intergeo_tlbr_cntrl_ttl{display:block;font-weight:bold;line-height:22px;position:relative;cursor:pointer;padding:4px 20px;margin-bottom:5px;background-color:rgba(0,0,0,0.02);border-top:1px solid #eee;-webkit-box-shadow:0 4px 4px -4px rgba(0,0,0,0.1);box-shadow:0 4px 4px -4px rgba(0,0,0,0.1);border-bottom:1px solid #eee}.intergeo_tlbr_cntrl_ttl::after{content:'';width:0;height:0;border-color:#CCC transparent;border-style:solid;border-width:4px 4px 0;position:absolute;top:13px;right:20px;z-index:1}.intergeo_tlbr_cntrl_ttl.open::after{border-width:0 4px 4px}.intergeo_tlbr_cntrl_items{display:none;padding:5px 20px 10px 20px}.intergeo_tlbr_cntrl_more_info{text-decoration:none;color:#21759b;font-size:85%;font-weight:normal;float:right}.intergeo_tlbr_cntrl_dsc{display:none;padding:0}.intergeo_tlbr_cntrl_tbl{width:100%;margin-bottom:10px}.intergeo_tlbr_cntrl_tbl_clmn{width:50%;text-align:left;vertical-align:top;padding:0 1px}.intergeo_tlbr_cntrl_item{margin-bottom:10px}#intergeo_map_zoom_range{margin:10px 6px}.intergeo_tlbr_style_preview{display:block;width:220px;height:90px;padding:10px;background-image:url(../images/styles.jpg);background-repeat:no-repeat;background-position:top left;-webkit-box-shadow:0 0 5px rgba(0,0,0,0.5);box-shadow:0 0 5px rgba(0,0,0,0.5)}#intergeo_tlbr_style_red{background-position:0 -110px}#intergeo_tlbr_style_night{background-position:0 -220px}#intergeo_tlbr_style_blue{background-position:0 -330px}#intergeo_tlbr_style_grayscale{background-position:0 -440px}#intergeo_tlbr_style_no_roads{background-position:0 -550px}#intergeo_tlbr_style_mixed{background-position:0 -660px}#intergeo_tlbr_style_chilled{background-position:0 -770px}.intergeo_tlbr_overlay{border-bottom:1px dotted black;margin-bottom:5px;padding-bottom:5px}.intergeo_tlbr_actn{float:right;margin:4px 0 0 10px;background-repeat:no-repeat;display:block;height:16px;width:16px;background-image:url('../images/ui-icons.png')}.intergeo_tlbr_actn_delete{background-position:-176px -96px}.intergeo_tlbr_actn_edit{background-position:-64px -112px}.intergeo_tlbr_clr_prvw{float:right;margin:4px 0 0 10px;height:16px;width:16px;-webkit-box-shadow:0 0 2px #aaa;box-shadow:0 0 2px #aaa}.intergeo_tlbr_cntrl_slct{width:100%}.intergeo_tlbr_cntrl_txt{width:100%}.intergeo_tlbr_grp_dsc{padding:5px 20px 10px 20px;margin:0}.intergeo_ppp{position:absolute;top:0;right:0;left:0;bottom:0;z-index:150;background-image:url('../images/bg.png');background-repeat:repeat;display:none}.intergeo_ppp_frm{position:absolute;top:10%;left:50%;max-height:530px;-ms-overflow-y:auto;overflow-y:auto;margin-left:-222px;width:400px;border:2px solid #555;background-color:white;-webkit-box-shadow:0 0 15px #555;box-shadow:0 0 15px #555;padding:10px 20px 15px;border-radius:3px}.intergeo_ppp_ttl{font-weight:bold;font-size:115%;color:#333;border-bottom:1px solid whitesmoke;display:block;padding:5px 0;margin-bottom:10px}.intergeo_ppp_cls{float:right;background-image:url('../images/ui-icons.png');background-repeat:no-repeat;background-position:-80px -128px;display:block;width:16px;height:16px}.intergeo_ppp_tbl{width:100%}.intergeo_ppp_tbl td{padding-bottom:5px}.intergeo_ppp_txt{width:100%}#intergeo_tlbr_drctn_icon{margin-top:1px;margin-left:-5px;float:left;display:block;width:16px;height:16px;background-repeat:no-repeat;background-image:url('../images/ui-icons.png');background-position:-16px -128px}
|
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 |
-
}
|
1 |
+
@font-face{font-family:'Elsie Swash Caps';font-style:normal;font-weight:900;src:local('Elsie Swash Caps Blacks'),local('ElsieSwashCapsBlack-Regular'),url(http://themes.googleusercontent.com/static/fonts/elsieswashcaps/v1/iZnus9qif0tR5pGaDv5zdEd2CPfIv3tbBh_qUxvoikM.woff) format('woff')}#intergeo_canvas_wrapper{position:absolute;top:0;right:300px;bottom:60px;left:0;z-index:75}#intergeo_canvas{width:100%;height:100%}#intergeo_canvas_center{width:10px;height:10px;position:absolute;top:50%;left:50%;margin:-5px 0 0 -5px;border-radius:2px;background-image:url(../images/map_center.png);background-position:center center;background-repeat:no-repeat}#intergeo_footer{height:36px;padding:12px 16px;position:absolute;z-index:100;left:0;right:0;bottom:0;border-top:1px solid #dfdfdf;overflow:hidden;-webkit-box-shadow:0 -4px 4px -4px rgba(0,0,0,0.1);box-shadow:0 -4px 4px -4px rgba(0,0,0,0.1);text-align:right}#intergeo_tlbr{position:absolute;top:0;right:0;bottom:60px;width:299px;z-index:75;background:whitesmoke;border-left:1px solid #dfdfdf;overflow:auto;-webkit-overflow-scrolling:touch}#intergeo_tlbr_ttl{font-family:'Elsie Swash Caps',cursive;font-size:34px;padding:30px 20px 10px;display:block}#intergeo_tlbr_ul{border-top:1px solid #dfdfdf}.intergeo_tlbr_ul_li{margin:0}.intergeo_tlbr_ul_li.open{border-bottom:1px solid #dfdfdf}.intergeo_tlbr_ul_li_h3{border-top:1px solid white;border-bottom:1px solid #dfdfdf;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin:0;padding:10px 20px;font-size:15px;font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif;font-weight:normal;text-shadow:0 1px 0 white;background:whiteSmoke;background-image:-webkit-gradient(linear,left bottom,left top,from(#EEE),to(whiteSmoke));background-image:-webkit-linear-gradient(bottom,#EEE,whiteSmoke);background-image:-moz-linear-gradient(bottom,#EEE,whiteSmoke);background-image:-o-linear-gradient(bottom,#EEE,whiteSmoke);background-image:-ms-linear-gradient(bottom,#EEE,whiteSmoke);background-image:linear-gradient(bottom,#EEE,whiteSmoke)}.intergeo_tlbr_ul_li_h3:hover,.intergeo_tlbr_ul_li.open .intergeo_tlbr_ul_li_h3{color:white;text-shadow:0 -1px 0 #333;background:gray;background-image:-webkit-gradient(linear,left bottom,left top,from(#6d6d6d),to(gray));background-image:-webkit-linear-gradient(bottom,#6d6d6d,gray);background-image:-moz-linear-gradient(bottom,#6d6d6d,gray);background-image:-o-linear-gradient(bottom,#6d6d6d,gray);background-image:-ms-linear-gradient(bottom,#6d6d6d,gray);background-image:linear-gradient(bottom,#6d6d6d,gray)}.intergeo_tlbr_ul_li_h3::after{content:'';width:0;height:0;border-color:#CCC transparent;border-style:solid;border-width:6px 6px 0;position:absolute;top:15px;right:20px;z-index:1}.intergeo_tlbr_ul_li_h3:hover::after,.intergeo_tlbr_ul_li.open .intergeo_tlbr_ul_li_h3::after{border-color:#EEE transparent}.intergeo_tlbr_ul_li:hover .intergeo_tlbr_ul_li_h3{border-top-color:gray}.intergeo_tlbr_ul_li.open .intergeo_tlbr_ul_li_h3{border-top-color:#6d6d6d}.intergeo_tlbr_ul_li.open .intergeo_tlbr_ul_li_h3::after{border-width:0 6px 6px}.intergeo_tlbr_ul_li_ul{margin:0;display:none;background-color:#fdfdfd;padding:10px 0 20px 0;overflow:hidden}.intergeo_tlbr_ul_li.open .intergeo_tlbr_ul_li_ul{display:block}.intergeo_tlbr_cntrl_ttl{display:block;font-weight:bold;line-height:22px;position:relative;cursor:pointer;padding:4px 20px;margin-bottom:5px;background-color:rgba(0,0,0,0.02);border-top:1px solid #eee;-webkit-box-shadow:0 4px 4px -4px rgba(0,0,0,0.1);box-shadow:0 4px 4px -4px rgba(0,0,0,0.1);border-bottom:1px solid #eee}.intergeo_tlbr_cntrl_ttl::after{content:'';width:0;height:0;border-color:#CCC transparent;border-style:solid;border-width:4px 4px 0;position:absolute;top:13px;right:20px;z-index:1}.intergeo_tlbr_cntrl_ttl.open::after{border-width:0 4px 4px}.intergeo_tlbr_cntrl_items{display:none;padding:5px 20px 10px 20px}.intergeo_tlbr_cntrl_more_info{text-decoration:none;color:#21759b;font-size:85%;font-weight:normal;float:right}.intergeo_tlbr_cntrl_dsc{display:none;padding:0}.intergeo_tlbr_cntrl_tbl{width:100%;margin-bottom:10px}.intergeo_tlbr_cntrl_tbl_clmn{width:50%;text-align:left;vertical-align:top;padding:0 1px}.intergeo_tlbr_cntrl_item{margin-bottom:10px}#intergeo_map_zoom_range{margin:10px 6px}.intergeo_tlbr_style_preview{display:block;width:220px;height:90px;padding:10px;background-image:url(../images/styles.jpg);background-repeat:no-repeat;background-position:top left;-webkit-box-shadow:0 0 5px rgba(0,0,0,0.5);box-shadow:0 0 5px rgba(0,0,0,0.5)}#intergeo_tlbr_style_red{background-position:0 -110px}#intergeo_tlbr_style_night{background-position:0 -220px}#intergeo_tlbr_style_blue{background-position:0 -330px}#intergeo_tlbr_style_grayscale{background-position:0 -440px}#intergeo_tlbr_style_no_roads{background-position:0 -550px}#intergeo_tlbr_style_mixed{background-position:0 -660px}#intergeo_tlbr_style_chilled{background-position:0 -770px}.intergeo_tlbr_overlay{border-bottom:1px dotted black;margin-bottom:5px;padding-bottom:5px}.intergeo_tlbr_actn{float:right;margin:4px 0 0 10px;background-repeat:no-repeat;display:block;height:16px;width:16px;background-image:url('../images/ui-icons.png')}.intergeo_tlbr_actn_delete{background-position:-176px -96px}.intergeo_tlbr_actn_edit{background-position:-64px -112px}.intergeo_tlbr_clr_prvw{float:right;margin:4px 0 0 10px;height:16px;width:16px;-webkit-box-shadow:0 0 2px #aaa;box-shadow:0 0 2px #aaa}.intergeo_tlbr_cntrl_slct{width:100%}.intergeo_tlbr_cntrl_txt{width:100%}.intergeo_tlbr_grp_dsc{padding:5px 20px 10px 20px;margin:0}.intergeo_ppp{position:absolute;top:0;right:0;left:0;bottom:0;z-index:150;background-image:url('../images/bg.png');background-repeat:repeat;display:none}.intergeo_ppp_frm{position:absolute;top:10%;left:50%;max-height:530px;-ms-overflow-y:auto;overflow-y:auto;margin-left:-222px;width:400px;border:2px solid #555;background-color:white;-webkit-box-shadow:0 0 15px #555;box-shadow:0 0 15px #555;padding:10px 20px 15px;border-radius:3px}.intergeo_ppp_ttl{font-weight:bold;font-size:115%;color:#333;border-bottom:1px solid whitesmoke;display:block;padding:5px 0;margin-bottom:10px}.intergeo_ppp_cls{float:right;background-image:url('../images/ui-icons.png');background-repeat:no-repeat;background-position:-80px -128px;display:block;width:16px;height:16px}.intergeo_ppp_tbl{width:100%}.intergeo_ppp_tbl td{padding-bottom:5px}.intergeo_ppp_txt{width:100%}#intergeo_tlbr_drctn_icon{margin-top:1px;margin-left:-5px;float:left;display:block;width:16px;height:16px;background-repeat:no-repeat;background-image:url('../images/ui-icons.png');background-position:-16px -128px}
|
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 |
+
}
|
images/computer.png
ADDED
Binary file
|
index.php
CHANGED
@@ -1,934 +1,934 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
Plugin Name: Intergeo Maps - Google Maps Plugin
|
4 |
-
Plugin URI: http://plugins.svn.wordpress.org/intergeo-maps/
|
5 |
-
Description: A simple, easy and quite powerful Google Map tool to create, manage and embed custom Google Maps into your WordPress posts and pages. The plugin allows you to deeply customize look and feel of a map, add overlays like markers, rectangles, circles, polylines and polygons to your map. It could even be integraded with your Google Adsense account and show ad on your maps.
|
6 |
-
Version: 1.0.
|
7 |
-
Author: Themeisle
|
8 |
-
Author URI: http://themeisle.com
|
9 |
-
License: GPL v2.0 or later
|
10 |
-
License URI: http://www.opensource.org/licenses/gpl-license.php
|
11 |
-
*/
|
12 |
-
|
13 |
-
// <editor-fold defaultstate="collapsed" desc="constants">
|
14 |
-
|
15 |
-
define( 'INTERGEO_PLUGIN_NAME', 'intergeo' ); // don't change it whatever
|
16 |
-
define( 'INTERGEO_VERSION', '1.0.
|
17 |
-
define( 'INTERGEO_ABSPATH', dirname( __FILE__ ) );
|
18 |
-
define( 'INTERGEO_ABSURL', plugins_url( '/', __FILE__ ) );
|
19 |
-
// Added by Ash/Upwork
|
20 |
-
defined('WPLANG') || define( 'WPLANG', '' );
|
21 |
-
// Added by Ash/Upwork
|
22 |
-
|
23 |
-
// Added by Ash/Upwork
|
24 |
-
if ( class_exists( 'IntergeoMaps_Pro', false ) ){
|
25 |
-
define( 'IntergeoMaps_Pro', true);
|
26 |
-
}
|
27 |
-
// Added by Ash/Upwork
|
28 |
-
|
29 |
-
// </editor-fold>
|
30 |
-
|
31 |
-
// <editor-fold defaultstate="collapsed" desc="plugin init">
|
32 |
-
|
33 |
-
add_filter( 'plugin_action_links', 'intergeo_action_links', 10, 2 );
|
34 |
-
function intergeo_action_links( $links, $file ) {
|
35 |
-
if ( $file == plugin_basename( __FILE__ ) ) {
|
36 |
-
array_unshift(
|
37 |
-
$links,
|
38 |
-
sprintf( '<a href="%s">%s</a>', add_query_arg( 'page', INTERGEO_PLUGIN_NAME, admin_url( 'upload.php' ) ), __( "Maps", INTERGEO_PLUGIN_NAME ) ),
|
39 |
-
sprintf( '<a href="%s">%s</a>', admin_url( 'options-media.php' ), __( "Settings", INTERGEO_PLUGIN_NAME ) )
|
40 |
-
);
|
41 |
-
}
|
42 |
-
return $links;
|
43 |
-
}
|
44 |
-
|
45 |
-
add_action( 'admin_init', 'intergeo_admin_init' );
|
46 |
-
function intergeo_admin_init() {
|
47 |
-
load_plugin_textdomain( INTERGEO_PLUGIN_NAME, false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
48 |
-
register_post_type( INTERGEO_PLUGIN_NAME );
|
49 |
-
}
|
50 |
-
|
51 |
-
add_action( 'wp_enqueue_scripts', 'intergeo_frontend_enqueue_scripts' );
|
52 |
-
function intergeo_frontend_enqueue_scripts() {
|
53 |
-
wp_register_style( 'intergeo-frontend', INTERGEO_ABSURL . 'css/frontend.css', array(), INTERGEO_VERSION );
|
54 |
-
}
|
55 |
-
|
56 |
-
// </editor-fold>
|
57 |
-
|
58 |
-
// <editor-fold defaultstate="collapsed" desc="settings">
|
59 |
-
|
60 |
-
add_filter( 'whitelist_options', 'intergeo_whitelist_options' );
|
61 |
-
function intergeo_whitelist_options( $whitelist ) {
|
62 |
-
$whitelist['media'][] = 'intergeo_map_api_key';
|
63 |
-
$whitelist['media'][] = 'intergeo_adsense_publisher_id';
|
64 |
-
return $whitelist;
|
65 |
-
}
|
66 |
-
|
67 |
-
add_action( 'admin_init', 'intergeo_settings_init' );
|
68 |
-
function intergeo_settings_init() {
|
69 |
-
register_setting( 'media', 'intergeo-settings-map-api-key', 'trim' );
|
70 |
-
add_settings_section( 'intergeo-settings-maps', 'Intergeo Google Maps', 'intergeo_settings_init_map', 'media' );
|
71 |
-
add_settings_field( 'intergeo_map_api_key', 'Maps API Key', 'intergeo_settings_print_field', 'media', 'intergeo-settings-maps', array(
|
72 |
-
'<input type="text" name="%s" value="%s" class="regular-text">',
|
73 |
-
'intergeo_map_api_key',
|
74 |
-
esc_attr( get_option( 'intergeo_map_api_key' ) ),
|
75 |
-
) );
|
76 |
-
|
77 |
-
register_setting( 'media', 'intergeo_adsense_publisher_id', 'trim' );
|
78 |
-
add_settings_section( 'intergeo-settings-adsense', 'Intergeo Google Maps AdSense Integration', 'intergeo_settings_init_adsense', 'media' );
|
79 |
-
add_settings_field( 'intergeo_adsense_publisher_id', 'AdSense Publisher Id', 'intergeo_settings_print_field', 'media', 'intergeo-settings-adsense', array(
|
80 |
-
'<input type="text" name="%s" value="%s" class="regular-text">',
|
81 |
-
'intergeo_adsense_publisher_id',
|
82 |
-
esc_attr( get_option( 'intergeo_adsense_publisher_id' ) ),
|
83 |
-
) );
|
84 |
-
}
|
85 |
-
|
86 |
-
function intergeo_settings_init_map() {
|
87 |
-
?><p><?php
|
88 |
-
printf( esc_html__( "All Maps API applications should load the Maps API using an API key (however it is still possible to use maps without API key). Using an API key enables you to monitor your application's Maps API usage, and ensures that Google can contact you about your application if necessary. If your application's Maps API usage exceeds the %sUsage Limits%s, you must load the Maps API using an API key in order to purchase additional quota. To create your API key:", INTERGEO_PLUGIN_NAME ), '<a href="https://developers.google.com/maps/documentation/javascript/usage#usage_limits" target="_blank">', '</a>' );
|
89 |
-
?></p>
|
90 |
-
<ol>
|
91 |
-
<li><?php printf( esc_html__( "Visit the APIs Console at %shttps://code.google.com/apis/console%s and log in with your Google Account.", INTERGEO_PLUGIN_NAME ), '<a href="https://code.google.com/apis/console" target="_blank">', '</a>' ) ?></li>
|
92 |
-
<li><?php printf( esc_html__( 'Click the %sServices%s link from the left-hand menu.', INTERGEO_PLUGIN_NAME ), '<b>', '</b>' ) ?></li>
|
93 |
-
<li><?php printf( esc_html__( 'Activate the %sGoogle Maps API v3%s service.', INTERGEO_PLUGIN_NAME ), '<b>', '</b>' ) ?></li>
|
94 |
-
<li><?php printf( esc_html__( 'Click the %1$sAPI Access%2$s link from the left-hand menu. Your API key is available from the %1$sAPI Access%2$s page, in the %1$Simple API Access%2$s section. Maps API applications use the %1$sKey for browser apps%2$s.', INTERGEO_PLUGIN_NAME ), '<b>', '</b>' ) ?></li>
|
95 |
-
</ol>
|
96 |
-
<?php
|
97 |
-
}
|
98 |
-
|
99 |
-
function intergeo_settings_init_adsense() {
|
100 |
-
?><p><?php
|
101 |
-
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>' )
|
102 |
-
?></p><p><?php
|
103 |
-
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 )
|
104 |
-
?></p><?php
|
105 |
-
}
|
106 |
-
|
107 |
-
function intergeo_settings_print_field( array $args ) {
|
108 |
-
vprintf( array_shift( $args ), $args );
|
109 |
-
}
|
110 |
-
|
111 |
-
// </editor-fold>
|
112 |
-
|
113 |
-
// <editor-fold defaultstate="collapsed" desc="common">
|
114 |
-
|
115 |
-
function intergeo_enqueue_google_maps_script( $libraries = false ) {
|
116 |
-
global $wp_scripts;
|
117 |
-
|
118 |
-
if ( is_array( $libraries ) ) {
|
119 |
-
$libraries = implode( ',', $libraries );
|
120 |
-
}
|
121 |
-
|
122 |
-
if ( wp_script_is( 'google-maps-v3' ) ) {
|
123 |
-
|
124 |
-
$params = array();
|
125 |
-
parse_str( end( explode( '?', $wp_scripts->registered['google-maps-v3']->src ) ), $params );
|
126 |
-
$params['libraries'] = implode( ',', array_unique( array_merge( isset( $params['libraries'] ) ? explode( ',', $params['libraries'] ) : array(), explode( ',', $libraries ) ) ) );
|
127 |
-
$wp_scripts->registered['google-maps-v3']->src = '//maps.googleapis.com/maps/api/js?' . http_build_query( $params );
|
128 |
-
|
129 |
-
} else {
|
130 |
-
|
131 |
-
$lang = explode( '_', WPLANG ? WPLANG : 'en_US' );
|
132 |
-
$params = array(
|
133 |
-
'v' => '3.10',
|
134 |
-
'sensor' => 'false',
|
135 |
-
'region' => isset( $lang[1] ) ? $lang[1] : 'US',
|
136 |
-
'language' => $lang[0],
|
137 |
-
);
|
138 |
-
|
139 |
-
if ( !empty( $libraries ) ) {
|
140 |
-
$params['libraries'] = $libraries;
|
141 |
-
}
|
142 |
-
|
143 |
-
$api_key = get_option( 'intergeo_map_api_key' );
|
144 |
-
if ( !empty( $api_key ) ) {
|
145 |
-
$params['key'] = $api_key;
|
146 |
-
}
|
147 |
-
|
148 |
-
wp_enqueue_script( 'google-maps-v3', '//maps.googleapis.com/maps/api/js?' . http_build_query( $params ), array(), null );
|
149 |
-
|
150 |
-
}
|
151 |
-
}
|
152 |
-
|
153 |
-
function intergeo_check_libraries( $json, $libraries = array() ) {
|
154 |
-
if ( isset( $json['layer']['adsense'] ) && $json['layer']['adsense'] && !in_array( 'adsense', $libraries ) ) {
|
155 |
-
$libraries[] = 'adsense';
|
156 |
-
}
|
157 |
-
|
158 |
-
if ( isset( $json['layer']['panoramio'] ) && $json['layer']['panoramio'] && !in_array( 'panoramio', $libraries ) ) {
|
159 |
-
$libraries[] = 'panoramio';
|
160 |
-
}
|
161 |
-
|
162 |
-
if ( ( isset( $json['layer']['weather'] ) && $json['layer']['weather'] ) || ( isset( $json['layer']['cloud'] ) && $json['layer']['cloud'] ) ) {
|
163 |
-
if ( !in_array( 'weather', $libraries ) ) {
|
164 |
-
$libraries[] = 'weather';
|
165 |
-
}
|
166 |
-
}
|
167 |
-
|
168 |
-
return $libraries;
|
169 |
-
}
|
170 |
-
|
171 |
-
function intergeo_encode( $id ) {
|
172 |
-
return strrev( rtrim( call_user_func( 'base64_' . 'encode', $id ), '=' ) );
|
173 |
-
}
|
174 |
-
|
175 |
-
function intergeo_decode( $code ) {
|
176 |
-
return intval( call_user_func( 'base64' . '_decode', strrev( $code ) ) );
|
177 |
-
}
|
178 |
-
|
179 |
-
// </editor-fold>
|
180 |
-
|
181 |
-
// <editor-fold defaultstate="collapsed" desc="iframe">
|
182 |
-
|
183 |
-
// <editor-fold defaultstate="collapsed" desc="rendering">
|
184 |
-
|
185 |
-
add_filter( 'media_upload_tabs', 'intergeo_media_upload_tabs' );
|
186 |
-
function intergeo_media_upload_tabs( $tabs ) {
|
187 |
-
$tabs['intergeo_map'] = __( 'Intergeo Maps', INTERGEO_PLUGIN_NAME );
|
188 |
-
return $tabs;
|
189 |
-
}
|
190 |
-
|
191 |
-
add_action( 'media_upload_intergeo_map', 'intergeo_map_popup_init' );
|
192 |
-
function intergeo_map_popup_init() {
|
193 |
-
$post_id = filter_input( INPUT_GET, 'post_id', FILTER_VALIDATE_INT, array( 'options' => array( 'min_range' => 1 ) ) );
|
194 |
-
$map_id = filter_input( INPUT_GET, 'map' );
|
195 |
-
|
196 |
-
$send_to_editor = false;
|
197 |
-
if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
198 |
-
$shortcode = intergeo_save_map( $map_id, $post_id );
|
199 |
-
if ( $post_id ) {
|
200 |
-
$send_to_editor = $shortcode;
|
201 |
-
} else {
|
202 |
-
$args = array(
|
203 |
-
'page' => INTERGEO_PLUGIN_NAME,
|
204 |
-
'updated' => date( 'YmdHis' ),
|
205 |
-
);
|
206 |
-
wp_redirect( add_query_arg( $args, admin_url( 'upload.php' ) ) );
|
207 |
-
exit;
|
208 |
-
}
|
209 |
-
}
|
210 |
-
|
211 |
-
intergeo_enqueue_google_maps_script( 'adsense,panoramio,weather,drawing' );
|
212 |
-
|
213 |
-
wp_enqueue_script( 'intergeo-editor', INTERGEO_ABSURL . 'js/editor.js', array( 'wp-color-picker', 'google-maps-v3', 'jquery' ), INTERGEO_VERSION );
|
214 |
-
wp_localize_script( 'intergeo-editor', 'intergeo_options', array(
|
215 |
-
'send_to_editor' => $send_to_editor,
|
216 |
-
'adsense' => array( 'publisher_id' => get_option( 'intergeo_adsense_publisher_id' ) ),
|
217 |
-
'ajaxurl' => admin_url( 'admin-ajax.php' ),
|
218 |
-
'nonce' => wp_create_nonce( 'editor_popup' . filter_input( INPUT_SERVER, 'REMOTE_ADDR', FILTER_VALIDATE_IP ) ),
|
219 |
-
'l10n' => array(
|
220 |
-
'marker' => __( 'marker', INTERGEO_PLUGIN_NAME ),
|
221 |
-
'error' => array(
|
222 |
-
'style' => __( 'Styles are broken. Please, fix it and try again.', INTERGEO_PLUGIN_NAME ),
|
223 |
-
'directions' => __( 'Direction was not found.', INTERGEO_PLUGIN_NAME ),
|
224 |
-
),
|
225 |
-
),
|
226 |
-
) );
|
227 |
-
|
228 |
-
wp_enqueue_style( 'wp-color-picker' );
|
229 |
-
wp_enqueue_style( 'intergeo-editor', INTERGEO_ABSURL . 'css/editor.css', array(), INTERGEO_VERSION );
|
230 |
-
|
231 |
-
// Added by Ash/Upwork
|
232 |
-
if( defined( 'IntergeoMaps_Pro' ) ){
|
233 |
-
global $IntergeoMaps_Pro;
|
234 |
-
$IntergeoMaps_Pro->enqueueScriptsAndStyles(array('intergeo-editor'), array("mapID" => $map_id));
|
235 |
-
}
|
236 |
-
// Added by Ash/Upwork
|
237 |
-
|
238 |
-
wp_iframe( 'intergeo_iframe', $post_id, $map_id );
|
239 |
-
}
|
240 |
-
|
241 |
-
function intergeo_iframe( $post_id = false, $map_id = false ) {
|
242 |
-
$publisher_id = trim( get_option( 'intergeo_adsense_publisher_id' ) );
|
243 |
-
$show_map_center = get_option( 'intergeo_show_map_center', true );
|
244 |
-
|
245 |
-
$submit_text = __( 'Insert into post', INTERGEO_PLUGIN_NAME );
|
246 |
-
|
247 |
-
if ( !$post_id ) {
|
248 |
-
$submit_text = __( 'Create the map', INTERGEO_PLUGIN_NAME );
|
249 |
-
}
|
250 |
-
|
251 |
-
$copy = false;
|
252 |
-
if ( !$map_id ) {
|
253 |
-
$copy = true;
|
254 |
-
$map_id = filter_input( INPUT_GET, 'copy' );
|
255 |
-
}
|
256 |
-
|
257 |
-
$json = array();
|
258 |
-
if ( $map_id ) {
|
259 |
-
$map = get_post( intergeo_decode( $map_id ) );
|
260 |
-
if ( $map->post_type == INTERGEO_PLUGIN_NAME ) {
|
261 |
-
$json = json_decode( $map->post_content, true );
|
262 |
-
if ( !$copy ) {
|
263 |
-
$submit_text = __( 'Update the map', INTERGEO_PLUGIN_NAME );
|
264 |
-
}
|
265 |
-
}
|
266 |
-
}
|
267 |
-
|
268 |
-
require INTERGEO_ABSPATH . '/templates/iframe/form.php';
|
269 |
-
}
|
270 |
-
|
271 |
-
// </editor-fold>
|
272 |
-
|
273 |
-
// <editor-fold defaultstate="collapsed" desc="filtering">
|
274 |
-
|
275 |
-
function intergeo_filter_value( $value, $array ) {
|
276 |
-
$value = strtoupper( $value );
|
277 |
-
return !in_array( $value, $array ) ? null : $value;
|
278 |
-
}
|
279 |
-
|
280 |
-
function intergeo_filter_position( $position ) {
|
281 |
-
return intergeo_filter_value( $position, array(
|
282 |
-
'TOP_LEFT', 'TOP_CENTER', 'TOP_RIGHT',
|
283 |
-
'RIGHT_TOP', 'RIGHT_CENTER', 'RIGHT_BOTTOM',
|
284 |
-
'BOTTOM_RIGHT', 'BOTTOM_CENTER', 'BOTTOM_LEFT',
|
285 |
-
'LEFT_BOTTOM', 'LEFT_CENTER', 'LEFT_TOP'
|
286 |
-
) );
|
287 |
-
}
|
288 |
-
|
289 |
-
function intergeo_filter_map_type( $type ) {
|
290 |
-
return intergeo_filter_value( $type, array( 'ROADMAP', 'TERRAIN', 'SATELLITE', 'HYBRID' ) );
|
291 |
-
}
|
292 |
-
|
293 |
-
function intergeo_filter_map_type_style( $style ) {
|
294 |
-
return intergeo_filter_value( $style, array( 'DEFAULT', 'DROPDOWN_MENU', 'HORIZONTAL_BAR' ) );
|
295 |
-
}
|
296 |
-
|
297 |
-
function intergeo_filter_zoom_style( $style ) {
|
298 |
-
return intergeo_filter_value( $style, array( 'DEFAULT', 'SMALL', 'LARGE' ) );
|
299 |
-
}
|
300 |
-
|
301 |
-
function intergeo_filter_wind_speed_units( $unit ) {
|
302 |
-
return intergeo_filter_value( $unit, array( 'KILOMETERS_PER_HOUR', 'METERS_PER_SECOND', 'MILES_PER_HOUR' ) );
|
303 |
-
}
|
304 |
-
|
305 |
-
function intergeo_filter_temperature_units( $unit ) {
|
306 |
-
return intergeo_filter_value( $unit, array( 'CELSIUS', 'FAHRENHEIT' ) );
|
307 |
-
}
|
308 |
-
|
309 |
-
function intergeo_filter_adsense_format( $format ) {
|
310 |
-
return intergeo_filter_value( $format, array(
|
311 |
-
'BANNER',
|
312 |
-
'BUTTON',
|
313 |
-
'HALF_BANNER',
|
314 |
-
'LARGE_HORIZONTAL_LINK_UNIT',
|
315 |
-
'LARGE_RECTANGLE',
|
316 |
-
'LARGE_VERTICAL_LINK_UNIT',
|
317 |
-
'LEADERBOARD',
|
318 |
-
'MEDIUM_RECTANGLE',
|
319 |
-
'MEDIUM_VERTICAL_LINK_UNIT',
|
320 |
-
'SKYSCRAPER',
|
321 |
-
'SMALL_HORIZONTAL_LINK_UNIT',
|
322 |
-
'SMALL_RECTANGLE',
|
323 |
-
'SMALL_SQUARE',
|
324 |
-
'SMALL_VERTICAL_LINK_UNIT',
|
325 |
-
'SQUARE',
|
326 |
-
'VERTICAL_BANNER',
|
327 |
-
'WIDE_SKYSCRAPER',
|
328 |
-
'X_LARGE_VERTICAL_LINK_UNIT',
|
329 |
-
) );
|
330 |
-
}
|
331 |
-
|
332 |
-
function intergeo_filter_custom_style( $style ) {
|
333 |
-
$style = trim( $style );
|
334 |
-
$json = @json_decode( $style, true );
|
335 |
-
|
336 |
-
return empty( $json ) ? null : $json;
|
337 |
-
}
|
338 |
-
|
339 |
-
function intergeo_filter_overlays_marker( $marker ) {
|
340 |
-
if ( !isset( $marker['position'] ) || !preg_match( '/^-?\d+\.?\d*,-?\d+\.?\d*$/', $marker['position'] ) ) {
|
341 |
-
return false;
|
342 |
-
}
|
343 |
-
|
344 |
-
return array(
|
345 |
-
'position' => explode( ',', $marker['position'] ),
|
346 |
-
'icon' => isset( $marker['icon'] ) ? filter_var( $marker['icon'], FILTER_VALIDATE_URL ) : '',
|
347 |
-
'info' => isset( $marker['info'] ) ? trim( preg_replace( '/\<\/?script.*?\>/is', '', $marker['info'] ) ) : '',
|
348 |
-
'title' => isset( $marker['title'] ) ? strip_tags( trim( $marker['title'] ) ) : '',
|
349 |
-
);
|
350 |
-
}
|
351 |
-
|
352 |
-
function intergeo_filter_overlays_polyline( $polyline ) {
|
353 |
-
if ( !isset( $polyline['path'] ) ) {
|
354 |
-
return false;
|
355 |
-
}
|
356 |
-
|
357 |
-
$path = array();
|
358 |
-
foreach( explode( ';', $polyline['path'] ) as $point ) {
|
359 |
-
if ( preg_match( '/^-?\d+\.?\d*,-?\d+\.?\d*$/', $point ) ) {
|
360 |
-
$path[] = explode( ',', $point );
|
361 |
-
}
|
362 |
-
}
|
363 |
-
|
364 |
-
if ( count( $path ) < 2 ) {
|
365 |
-
return false;
|
366 |
-
}
|
367 |
-
|
368 |
-
return array(
|
369 |
-
'path' => $path,
|
370 |
-
'weight' => isset( $polyline['weight'] )
|
371 |
-
? filter_var( $polyline['weight'], FILTER_VALIDATE_INT, array( 'options' => array( 'min_range' => 1, 'default' => '' ) ) )
|
372 |
-
: '',
|
373 |
-
'opacity' => isset( $polyline['opacity'] )
|
374 |
-
? filter_var( $polyline['opacity'], FILTER_VALIDATE_FLOAT, array( 'options' => array( 'min_range' => 0, 'max_range' => 1, 'default' => '' ) ) )
|
375 |
-
: '',
|
376 |
-
'color' => isset( $polyline['color'] )
|
377 |
-
? filter_var( $polyline['color'], FILTER_VALIDATE_REGEXP, array( 'options' => array( 'regexp' => '/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/', 'default' => '#000000' ) ) )
|
378 |
-
: '#000000',
|
379 |
-
);
|
380 |
-
}
|
381 |
-
|
382 |
-
function intergeo_filter_overlays_polyoverlay( $polygon ) {
|
383 |
-
if ( !isset( $polygon['path'] ) ) {
|
384 |
-
return false;
|
385 |
-
}
|
386 |
-
|
387 |
-
$path = array();
|
388 |
-
foreach( explode( ';', $polygon['path'] ) as $point ) {
|
389 |
-
if ( preg_match( '/^-?\d+\.?\d*,-?\d+\.?\d*$/', $point ) ) {
|
390 |
-
$path[] = explode( ',', $point );
|
391 |
-
}
|
392 |
-
}
|
393 |
-
|
394 |
-
if ( count( $path ) < 2 ) {
|
395 |
-
return false;
|
396 |
-
}
|
397 |
-
|
398 |
-
$position = isset( $polygon['position'] ) ? strtoupper( trim( $polygon['position'] ) ) : 'CENTER';
|
399 |
-
|
400 |
-
return array(
|
401 |
-
'path' => $path,
|
402 |
-
'position' => in_array( $position, array( 'CENTER', 'INSIDE', 'OUTSIDE' ) ) ? $position : 'CENTER',
|
403 |
-
'weight' => isset( $polygon['weight'] ) ? filter_var( $polygon['weight'], FILTER_VALIDATE_INT, array( 'options' => array( 'min_range' => 1, 'default' => '' ) ) ) : '',
|
404 |
-
'stroke_opacity' => isset( $polygon['stroke_opacity'] ) ? filter_var( $polygon['stroke_opacity'], FILTER_VALIDATE_FLOAT, array( 'options' => array( 'min_range' => 0, 'max_range' => 1, 'default' => '' ) ) ) : '',
|
405 |
-
'stroke_color' => isset( $polygon['stroke_color'] ) ? filter_var( $polygon['stroke_color'], FILTER_VALIDATE_REGEXP, array( 'options' => array( 'regexp' => '/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/', 'default' => '#000000' ) ) ) : '#000000',
|
406 |
-
'fill_opacity' => isset( $polygon['fill_opacity'] ) ? filter_var( $polygon['fill_opacity'], FILTER_VALIDATE_FLOAT, array( 'options' => array( 'min_range' => 0, 'max_range' => 1, 'default' => '' ) ) ) : '',
|
407 |
-
'fill_color' => isset( $polygon['fill_color'] ) ? filter_var( $polygon['fill_color'], FILTER_VALIDATE_REGEXP, array( 'options' => array( 'regexp' => '/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/', 'default' => '#000000' ) ) ) : '#000000',
|
408 |
-
);
|
409 |
-
}
|
410 |
-
|
411 |
-
function intergeo_filter_directions( $direction ) {
|
412 |
-
$to = isset( $direction['to'] ) ? trim( $direction['to'] ) : '';
|
413 |
-
$from = isset( $direction['from'] ) ? trim( $direction['from'] ) : '';
|
414 |
-
|
415 |
-
if ( empty( $to ) || empty( $from ) ) {
|
416 |
-
return false;
|
417 |
-
}
|
418 |
-
|
419 |
-
$mode = isset( $direction['mode'] ) ? strtoupper( trim( $direction['mode'] ) ) : 'DRIVING';
|
420 |
-
|
421 |
-
return array(
|
422 |
-
'mode' => in_array( $mode, array( 'BICYCLING', 'DRIVING', 'TRANSIT', 'WALKING' ) ) ? $mode : 'DRIVING',
|
423 |
-
'from' => $from,
|
424 |
-
'to' => $to,
|
425 |
-
);
|
426 |
-
}
|
427 |
-
|
428 |
-
function intergeo_filter_input() {
|
429 |
-
$color_regexp = '/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/';
|
430 |
-
$postion_filter = array( 'filter' => FILTER_CALLBACK, 'options' => 'intergeo_filter_position' );
|
431 |
-
|
432 |
-
$validationArray = array (
|
433 |
-
'lat' => array( 'filter' => FILTER_VALIDATE_FLOAT, 'flags' => FILTER_REQUIRE_SCALAR, 'options' => array( 'min_range' => -90, 'max_range' => 90, 'default' => 48.1366069 ) ),
|
434 |
-
'lng' => array( 'filter' => FILTER_VALIDATE_FLOAT, 'flags' => FILTER_REQUIRE_SCALAR, 'options' => array( 'min_range' => -180, 'max_range' => 180, 'default' => 11.577085099999977 ) ),
|
435 |
-
'zoom' => array( 'filter' => FILTER_VALIDATE_INT, 'flags' => FILTER_REQUIRE_SCALAR, 'options' => array( 'min_range' => 0, 'max_range' => 19, 'default' => 5 ) ),
|
436 |
-
'address' => FILTER_SANITIZE_STRING,
|
437 |
-
'map_mapTypeId' => array( 'filter' => FILTER_CALLBACK, 'options' => 'intergeo_filter_map_type' ),
|
438 |
-
'map_draggable' => FILTER_VALIDATE_BOOLEAN,
|
439 |
-
'map_minZoom' => array( 'filter' => FILTER_VALIDATE_INT, 'flags' => FILTER_REQUIRE_SCALAR, 'options' => array( 'min_range' => 0, 'max_range' => 19, 'default' => 0 ) ),
|
440 |
-
'map_maxZoom' => array( 'filter' => FILTER_VALIDATE_INT, 'flags' => FILTER_REQUIRE_SCALAR, 'options' => array( 'min_range' => 0, 'max_range' => 19, 'default' => 19 ) ),
|
441 |
-
'map_scrollwheel' => FILTER_VALIDATE_BOOLEAN,
|
442 |
-
'map_zoomControl' => FILTER_VALIDATE_BOOLEAN,
|
443 |
-
'map_zoomControlOptions_position' => $postion_filter,
|
444 |
-
'map_zoomControlOptions_style' => array( 'filter' => FILTER_CALLBACK, 'options' => 'intergeo_filter_zoom_style' ),
|
445 |
-
'map_panControl' => FILTER_VALIDATE_BOOLEAN,
|
446 |
-
'map_panControlOptions_position' => $postion_filter,
|
447 |
-
'map_scaleControl' => FILTER_VALIDATE_BOOLEAN,
|
448 |
-
'map_scaleControlOptions_position' => $postion_filter,
|
449 |
-
'map_mapTypeControl' => FILTER_VALIDATE_BOOLEAN,
|
450 |
-
'map_mapTypeControlOptions_position' => $postion_filter,
|
451 |
-
'map_mapTypeControlOptions_style' => array( 'filter' => FILTER_CALLBACK, 'options' => 'intergeo_filter_map_type_style' ),
|
452 |
-
'map_mapTypeControlOptions_mapTypeIds' => array( 'filter' => FILTER_CALLBACK, 'flags' => FILTER_REQUIRE_ARRAY, 'options' => 'intergeo_filter_map_type' ),
|
453 |
-
'map_streetViewControl' => FILTER_VALIDATE_BOOLEAN,
|
454 |
-
'map_streetViewControlOptions_position' => $postion_filter,
|
455 |
-
'map_rotateControl' => FILTER_VALIDATE_BOOLEAN,
|
456 |
-
'map_rotateControlOptions_position' => $postion_filter,
|
457 |
-
'map_overviewMapControl' => FILTER_VALIDATE_BOOLEAN,
|
458 |
-
'map_overviewMapControlOptions_opened' => FILTER_VALIDATE_BOOLEAN,
|
459 |
-
'layer_traffic' => FILTER_VALIDATE_BOOLEAN,
|
460 |
-
'layer_bicycling' => FILTER_VALIDATE_BOOLEAN,
|
461 |
-
'layer_cloud' => FILTER_VALIDATE_BOOLEAN,
|
462 |
-
'layer_weather' => FILTER_VALIDATE_BOOLEAN,
|
463 |
-
'weather_temperatureUnits' => array( 'filter' => FILTER_CALLBACK, 'options' => 'intergeo_filter_temperature_units' ),
|
464 |
-
'weather_windSpeedUnits' => array( 'filter' => FILTER_CALLBACK, 'options' => 'intergeo_filter_wind_speed_units' ),
|
465 |
-
'layer_panoramio' => FILTER_VALIDATE_BOOLEAN,
|
466 |
-
'panoramio_tag' => FILTER_SANITIZE_STRING,
|
467 |
-
'panoramio_userId' => FILTER_SANITIZE_STRING,
|
468 |
-
'layer_adsense' => FILTER_VALIDATE_BOOLEAN,
|
469 |
-
'adsense_format' => array( 'filter' => FILTER_CALLBACK, 'options' => 'intergeo_filter_adsense_format' ),
|
470 |
-
'adsense_position' => $postion_filter,
|
471 |
-
'adsense_backgroundColor' => array( 'filter' => FILTER_VALIDATE_REGEXP, 'options' => array( 'regexp' => $color_regexp, 'default' => '#c4d4f3' ) ),
|
472 |
-
'adsense_borderColor' => array( 'filter' => FILTER_VALIDATE_REGEXP, 'options' => array( 'regexp' => $color_regexp, 'default' => '#e5ecf9' ) ),
|
473 |
-
'adsense_titleColor' => array( 'filter' => FILTER_VALIDATE_REGEXP, 'options' => array( 'regexp' => $color_regexp, 'default' => '#0000cc' ) ),
|
474 |
-
'adsense_textColor' => array( 'filter' => FILTER_VALIDATE_REGEXP, 'options' => array( 'regexp' => $color_regexp, 'default' => '#000000' ) ),
|
475 |
-
'adsense_urlColor' => array( 'filter' => FILTER_VALIDATE_REGEXP, 'options' => array( 'regexp' => $color_regexp, 'default' => '#009900' ) ),
|
476 |
-
'container_width' => FILTER_SANITIZE_STRING,
|
477 |
-
'container_height' => FILTER_SANITIZE_STRING,
|
478 |
-
'container_styles' => FILTER_SANITIZE_STRING,
|
479 |
-
'styles_type' => FILTER_SANITIZE_STRING,
|
480 |
-
'styles_custom' => array( 'filter' => FILTER_CALLBACK, 'options' => 'intergeo_filter_custom_style' ),
|
481 |
-
'overlays_marker' => array( 'filter' => FILTER_DEFAULT, 'flags' => FILTER_REQUIRE_ARRAY ),
|
482 |
-
'overlays_polyline' => array( 'filter' => FILTER_DEFAULT, 'flags' => FILTER_REQUIRE_ARRAY ),
|
483 |
-
'overlays_polygon' => array( 'filter' => FILTER_DEFAULT, 'flags' => FILTER_REQUIRE_ARRAY ),
|
484 |
-
'overlays_rectangle' => array( 'filter' => FILTER_DEFAULT, 'flags' => FILTER_REQUIRE_ARRAY ),
|
485 |
-
'overlays_circle' => array( 'filter' => FILTER_DEFAULT, 'flags' => FILTER_REQUIRE_ARRAY ),
|
486 |
-
'directions' => array( 'filter' => FILTER_DEFAULT, 'flags' => FILTER_REQUIRE_ARRAY ),
|
487 |
-
);
|
488 |
-
|
489 |
-
$defaults = array (
|
490 |
-
'lat' => 48.1366069,
|
491 |
-
'lng' => 11.577085099999977,
|
492 |
-
'zoom' => 5,
|
493 |
-
'address' => '',
|
494 |
-
'map_mapTypeId' => 'ROADMAP',
|
495 |
-
'map_draggable' => true,
|
496 |
-
'map_minZoom' => 0,
|
497 |
-
'map_maxZoom' => 19,
|
498 |
-
'map_scrollwheel' => true,
|
499 |
-
'map_zoomControl' => true,
|
500 |
-
'map_zoomControlOptions_position' => null,
|
501 |
-
'map_zoomControlOptions_style' => 'DEFAULT',
|
502 |
-
'map_panControl' => true,
|
503 |
-
'map_panControlOptions_position' => null,
|
504 |
-
'map_scaleControl' => false,
|
505 |
-
'map_scaleControlOptions_position' => null,
|
506 |
-
'map_mapTypeControl' => true,
|
507 |
-
'map_mapTypeControlOptions_position' => null,
|
508 |
-
'map_mapTypeControlOptions_style' => 'DEFAULT',
|
509 |
-
'map_mapTypeControlOptions_mapTypeIds' => array( 'ROADMAP', 'TERRAIN', 'SATELLITE', 'HYBRID' ),
|
510 |
-
'map_streetViewControl' => true,
|
511 |
-
'map_streetViewControlOptions_position' => null,
|
512 |
-
'map_rotateControl' => true,
|
513 |
-
'map_rotateControlOptions_position' => null,
|
514 |
-
'map_overviewMapControl' => false,
|
515 |
-
'map_overviewMapControlOptions_opened' => false,
|
516 |
-
'layer_traffic' => false,
|
517 |
-
'layer_bicycling' => false,
|
518 |
-
'layer_cloud' => false,
|
519 |
-
'layer_weather' => false,
|
520 |
-
'weather_temperatureUnits' => null,
|
521 |
-
'weather_windSpeedUnits' => null,
|
522 |
-
'layer_panoramio' => false,
|
523 |
-
'panoramio_tag' => '',
|
524 |
-
'panoramio_userId' => '',
|
525 |
-
'layer_adsense' => false,
|
526 |
-
'adsense_format' => null,
|
527 |
-
'adsense_position' => null,
|
528 |
-
'adsense_backgroundColor' => '#c4d4f3',
|
529 |
-
'adsense_borderColor' => '#e5ecf9',
|
530 |
-
'adsense_titleColor' => '#0000cc',
|
531 |
-
'adsense_textColor' => '#000000',
|
532 |
-
'adsense_urlColor' => '#009900',
|
533 |
-
'container_width' => '',
|
534 |
-
'container_height' => '',
|
535 |
-
'container_styles' => '',
|
536 |
-
'styles_type' => 'DEFAULT',
|
537 |
-
'styles_custom' => null,
|
538 |
-
'overlays_marker' => array(),
|
539 |
-
'overlays_polyline' => array(),
|
540 |
-
'overlays_polygon' => array(),
|
541 |
-
'overlays_rectangle' => array(),
|
542 |
-
'overlays_circle' => array(),
|
543 |
-
'directions' => array(),
|
544 |
-
);
|
545 |
-
|
546 |
-
// Added by Ash/Upwork
|
547 |
-
if( defined( 'IntergeoMaps_Pro' ) ){
|
548 |
-
global $IntergeoMaps_Pro;
|
549 |
-
$IntergeoMaps_Pro->addValidations($validationArray, $defaults);
|
550 |
-
}
|
551 |
-
// Added by Ash/Upwork
|
552 |
-
|
553 |
-
$options = filter_input_array( INPUT_POST, $validationArray );
|
554 |
-
|
555 |
-
$results = array();
|
556 |
-
foreach ( $options as $key => $value ) {
|
557 |
-
if ( array_key_exists( $key, $defaults ) ) {
|
558 |
-
$equals = $defaults[$key] == $value;
|
559 |
-
if ( is_array( $value ) ) {
|
560 |
-
$equals = ( count( $value ) == count( $defaults[$key] ) ) && ( count( array_diff( (array)$defaults[$key], $value ) ) == 0 );
|
561 |
-
}
|
562 |
-
|
563 |
-
if ( !$equals ) {
|
564 |
-
$results[$key] = $value;
|
565 |
-
}
|
566 |
-
}
|
567 |
-
}
|
568 |
-
|
569 |
-
if ( !empty( $results['overlays_marker'] ) ) {
|
570 |
-
$results['overlays_marker'] = array_filter( array_map( 'intergeo_filter_overlays_marker', $results['overlays_marker'] ) );
|
571 |
-
}
|
572 |
-
|
573 |
-
if ( !empty( $results['overlays_polyline'] ) ) {
|
574 |
-
$results['overlays_polyline'] = array_filter( array_map( 'intergeo_filter_overlays_polyline', $results['overlays_polyline'] ) );
|
575 |
-
}
|
576 |
-
|
577 |
-
if ( !empty( $results['directions'] ) ) {
|
578 |
-
$results['directions'] = array_filter( array_map( 'intergeo_filter_directions', $results['directions'] ) );
|
579 |
-
}
|
580 |
-
|
581 |
-
foreach ( array( 'polygon', 'rectangle', 'circle' ) as $overlay ) {
|
582 |
-
$overlay = 'overlays_' . $overlay;
|
583 |
-
if ( !empty( $results[$overlay] ) ) {
|
584 |
-
$results[$overlay] = array_filter( array_map( 'intergeo_filter_overlays_polyoverlay', $results[$overlay] ) );
|
585 |
-
}
|
586 |
-
}
|
587 |
-
|
588 |
-
// Added by Ash/Upwork
|
589 |
-
if( defined( 'IntergeoMaps_Pro' ) ){
|
590 |
-
global $IntergeoMaps_Pro;
|
591 |
-
$IntergeoMaps_Pro->processResults($results);
|
592 |
-
}
|
593 |
-
// Added by Ash/Upwork
|
594 |
-
|
595 |
-
return $results;
|
596 |
-
}
|
597 |
-
|
598 |
-
// </editor-fold>
|
599 |
-
|
600 |
-
// <editor-fold defaultstate="collapsed" desc="saving">
|
601 |
-
|
602 |
-
function intergeo_save_map( $map_id = false, $post_id = false ) {
|
603 |
-
$options = array();
|
604 |
-
$array_ptr = &$options;
|
605 |
-
foreach ( intergeo_filter_input() as $key => $value ) {
|
606 |
-
if ( !is_null( $value ) ) {
|
607 |
-
$keys = explode( '_', $key );
|
608 |
-
$last_key = array_pop( $keys );
|
609 |
-
|
610 |
-
while ( $arr_key = array_shift( $keys ) ) {
|
611 |
-
if ( !array_key_exists( $arr_key, $array_ptr ) ) {
|
612 |
-
$array_ptr[$arr_key] = array( );
|
613 |
-
}
|
614 |
-
$array_ptr = &$array_ptr[$arr_key];
|
615 |
-
}
|
616 |
-
|
617 |
-
$array_ptr[$last_key] = $value;
|
618 |
-
$array_ptr = &$options;
|
619 |
-
}
|
620 |
-
}
|
621 |
-
|
622 |
-
$address = '';
|
623 |
-
if ( !empty( $options['address'] ) ) {
|
624 |
-
$address = $options['address'] = trim( $options['address'] );
|
625 |
-
}
|
626 |
-
|
627 |
-
$args = array(
|
628 |
-
'post_type' => INTERGEO_PLUGIN_NAME,
|
629 |
-
'post_content' => addcslashes( json_encode( $options ), '\\' ),
|
630 |
-
'post_status' => 'private',
|
631 |
-
);
|
632 |
-
|
633 |
-
$update = false;
|
634 |
-
if ( $map_id ) {
|
635 |
-
$post = get_post( intergeo_decode( $map_id ) );
|
636 |
-
if ( $post && $post->post_type == INTERGEO_PLUGIN_NAME ) {
|
637 |
-
$update = true;
|
638 |
-
$args['ID'] = $post->ID;
|
639 |
-
}
|
640 |
-
}
|
641 |
-
|
642 |
-
$id = wp_insert_post( $args );
|
643 |
-
|
644 |
-
if ( !empty( $id ) && !is_wp_error( $id ) ) {
|
645 |
-
if ( !$post_id ) {
|
646 |
-
intergeo_set_info( $update
|
647 |
-
? __( 'The map has been updated successfully.', INTERGEO_PLUGIN_NAME )
|
648 |
-
: __( 'The map has been created successfully.', INTERGEO_PLUGIN_NAME )
|
649 |
-
);
|
650 |
-
}
|
651 |
-
return sprintf( '[intergeo id="%s"]%s[/intergeo]', intergeo_encode( $id ), $address );
|
652 |
-
}
|
653 |
-
|
654 |
-
if ( !$post_id ) {
|
655 |
-
intergeo_set_error( $update
|
656 |
-
? __( 'The map updating failed.', INTERGEO_PLUGIN_NAME )
|
657 |
-
: __( 'The map creation failed.', INTERGEO_PLUGIN_NAME )
|
658 |
-
);
|
659 |
-
}
|
660 |
-
|
661 |
-
return false;
|
662 |
-
}
|
663 |
-
|
664 |
-
// </editor-fold>
|
665 |
-
|
666 |
-
// <editor-fold defaultstate="collapsed" desc="ajax stuff">
|
667 |
-
|
668 |
-
add_action( 'wp_ajax_intergeo_show_map_center', 'intergeo_show_map_center_changed' );
|
669 |
-
function intergeo_show_map_center_changed() {
|
670 |
-
$nonce = filter_input( INPUT_POST, 'nonce' );
|
671 |
-
if ( wp_verify_nonce( $nonce, 'editor_popup' . filter_input( INPUT_SERVER, 'REMOTE_ADDR', FILTER_VALIDATE_IP ) ) ) {
|
672 |
-
update_option( 'intergeo_show_map_center', (int)filter_input( INPUT_POST, 'status', FILTER_VALIDATE_BOOLEAN ) );
|
673 |
-
}
|
674 |
-
}
|
675 |
-
|
676 |
-
// </editor-fold>
|
677 |
-
|
678 |
-
// </editor-fold>
|
679 |
-
|
680 |
-
// <editor-fold defaultstate="collapsed" desc="shortcode">
|
681 |
-
|
682 |
-
add_filter( 'widget_text', 'do_shortcode' );
|
683 |
-
add_filter( 'term_description', 'do_shortcode' );
|
684 |
-
|
685 |
-
add_shortcode( INTERGEO_PLUGIN_NAME, 'intergeo_shortcode' );
|
686 |
-
function intergeo_shortcode( $attrs, $address = '' ) {
|
687 |
-
$args = shortcode_atts( array(
|
688 |
-
'id' => false,
|
689 |
-
'hook' => false,
|
690 |
-
'width' => false,
|
691 |
-
'height' => false,
|
692 |
-
'style' => false,
|
693 |
-
'zoom' => false,
|
694 |
-
), $attrs );
|
695 |
-
|
696 |
-
$address = trim( $address );
|
697 |
-
if ( empty( $args['id'] ) && empty( $address ) ) {
|
698 |
-
return '';
|
699 |
-
}
|
700 |
-
|
701 |
-
$json = array();
|
702 |
-
if ( !empty( $args['id'] ) ) {
|
703 |
-
$post = get_post( intergeo_decode( $args['id'] ) );
|
704 |
-
if ( !$post || $post->post_type != INTERGEO_PLUGIN_NAME ) {
|
705 |
-
return '';
|
706 |
-
}
|
707 |
-
|
708 |
-
$json = json_decode( $post->post_content, true );
|
709 |
-
} else {
|
710 |
-
$args['id'] = intergeo_encode( rand( 0, 100 ) . rand( 0, 10000 ) );
|
711 |
-
$json['zoom'] = intval( $args['zoom'] ) ? intval( $args['zoom'] ) : 15;
|
712 |
-
}
|
713 |
-
|
714 |
-
if ( !empty( $address ) ) {
|
715 |
-
$json['address'] = $address;
|
716 |
-
}
|
717 |
-
|
718 |
-
if ( trim( $args['hook'] ) != '' ) {
|
719 |
-
$json = apply_filters( $args['hook'], $json );
|
720 |
-
}
|
721 |
-
|
722 |
-
wp_enqueue_style( 'intergeo-frontend' );
|
723 |
-
intergeo_enqueue_google_maps_script( intergeo_check_libraries( $json ) );
|
724 |
-
if ( !wp_script_is( 'intergeo-rendering' ) ) {
|
725 |
-
wp_enqueue_script( 'intergeo-rendering', INTERGEO_ABSURL . 'js/rendering.js', array( 'jquery', 'google-maps-v3' ), INTERGEO_VERSION );
|
726 |
-
wp_localize_script( 'intergeo-rendering', 'intergeo_options', array(
|
727 |
-
'adsense' => array( 'publisher_id' => get_option( 'intergeo_adsense_publisher_id' ) )
|
728 |
-
) );
|
729 |
-
}
|
730 |
-
|
731 |
-
$container = array();
|
732 |
-
if ( isset( $json['container'] ) ) {
|
733 |
-
$container = $json['container'];
|
734 |
-
unset( $json['container'] );
|
735 |
-
}
|
736 |
-
|
737 |
-
$width = !empty( $container['width'] ) ? esc_attr( $container['width'] ) : '100%';
|
738 |
-
if ( trim( $args['width'] ) != '' ) {
|
739 |
-
$width = $args['width'];
|
740 |
-
}
|
741 |
-
if ( is_numeric( $width ) ) {
|
742 |
-
$width .= 'px';
|
743 |
-
}
|
744 |
-
|
745 |
-
$height = !empty( $container['height'] ) ? esc_attr( $container['height'] ) : '300px';
|
746 |
-
if ( trim( $args['height'] ) != '' ) {
|
747 |
-
$height = $args['height'];
|
748 |
-
}
|
749 |
-
if ( is_numeric( $height ) ) {
|
750 |
-
$height .= 'px';
|
751 |
-
}
|
752 |
-
|
753 |
-
$styles = !empty( $container['styles'] ) ? esc_attr( $container['styles'] ) : '';
|
754 |
-
if ( trim( $args['style'] ) != '' ) {
|
755 |
-
$styles = $args['style'];
|
756 |
-
}
|
757 |
-
|
758 |
-
return sprintf( '
|
759 |
-
<div id="intergeo_map%1$s" class="intergeo_map_canvas" style="width:100%%;height:300px;width:%2$s;height:%3$s;%4$s"></div>
|
760 |
-
<script type="text/javascript">
|
761 |
-
/* <![CDATA[ */
|
762 |
-
if (!window.intergeo_maps) window.intergeo_maps = [];
|
763 |
-
window.intergeo_maps.push( { container: \'intergeo_map%1$s\', options: %5$s } );
|
764 |
-
if (!window.intergeo_maps_current) window.intergeo_maps_current = null;
|
765 |
-
/* ]]> */
|
766 |
-
</script>
|
767 |
-
',
|
768 |
-
$args['id'],
|
769 |
-
$width,
|
770 |
-
$height,
|
771 |
-
$styles,
|
772 |
-
json_encode( $json )
|
773 |
-
);
|
774 |
-
}
|
775 |
-
|
776 |
-
// </editor-fold>
|
777 |
-
|
778 |
-
// <editor-fold defaultstate="collapsed" desc="library">
|
779 |
-
|
780 |
-
add_action( 'admin_menu', 'intergeo_admin_menu' );
|
781 |
-
function intergeo_admin_menu() {
|
782 |
-
$page = add_submenu_page( 'upload.php', 'Intergeo Maps Library', 'Intergeo Maps', 'edit_posts', INTERGEO_PLUGIN_NAME, 'intergeo_library' );
|
783 |
-
if ( $page ) {
|
784 |
-
add_action( "load-{$page}", 'intergeo_library_init' );
|
785 |
-
}
|
786 |
-
}
|
787 |
-
|
788 |
-
function intergeo_library_init() {
|
789 |
-
wp_enqueue_style( 'intergeo_library', INTERGEO_ABSURL . 'css/library.css', array(), INTERGEO_VERSION );
|
790 |
-
wp_enqueue_media();
|
791 |
-
|
792 |
-
$screen = get_current_screen();
|
793 |
-
|
794 |
-
$screen->add_help_tab( array(
|
795 |
-
'title' => esc_html__( 'Overview', INTERGEO_PLUGIN_NAME ),
|
796 |
-
'id' => 'overview',
|
797 |
-
'content' => sprintf( '<p>%s</p>', implode( '</p><p>', array(
|
798 |
-
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 ),
|
799 |
-
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 ),
|
800 |
-
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 ),
|
801 |
-
) ) ),
|
802 |
-
) );
|
803 |
-
|
804 |
-
$screen->add_help_tab( array(
|
805 |
-
'title' => esc_html__( 'Shortcodes', INTERGEO_PLUGIN_NAME ),
|
806 |
-
'id' => 'shortcodes',
|
807 |
-
'content' => sprintf( '<p>%s</p>', implode( '</p><p>', array(
|
808 |
-
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 ),
|
809 |
-
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 ),
|
810 |
-
) ) ),
|
811 |
-
) );
|
812 |
-
}
|
813 |
-
|
814 |
-
function intergeo_library() {
|
815 |
-
if ( filter_input( INPUT_GET, 'do' ) == 'delete' ) {
|
816 |
-
intergeo_library_delete();
|
817 |
-
}
|
818 |
-
|
819 |
-
$query = new WP_Query( array(
|
820 |
-
'orderby' => 'ID',
|
821 |
-
'order' => 'DESC',
|
822 |
-
'post_type' => INTERGEO_PLUGIN_NAME,
|
823 |
-
'posts_per_page' => 9,
|
824 |
-
'paged' => filter_input( INPUT_GET, 'pagenum', FILTER_VALIDATE_INT, array( 'options' => array(
|
825 |
-
'min_range' => 1,
|
826 |
-
'default' => 1,
|
827 |
-
) ) ),
|
828 |
-
) );
|
829 |
-
|
830 |
-
$libraries = array();
|
831 |
-
$pagination = paginate_links( array(
|
832 |
-
'base' => add_query_arg( array(
|
833 |
-
'pagenum' => '%#%',
|
834 |
-
'updated' => false,
|
835 |
-
) ),
|
836 |
-
'format' => '',
|
837 |
-
'current' => max( 1, $query->get( 'paged' ) ),
|
838 |
-
'total' => $query->max_num_pages,
|
839 |
-
'type' => 'array',
|
840 |
-
) );
|
841 |
-
|
842 |
-
require INTERGEO_ABSPATH . '/templates/library/list.php';
|
843 |
-
|
844 |
-
intergeo_enqueue_google_maps_script( $libraries );
|
845 |
-
|
846 |
-
wp_enqueue_script( 'intergeo-rendering', INTERGEO_ABSURL . 'js/rendering.js', array( 'jquery', 'google-maps-v3' ), INTERGEO_VERSION );
|
847 |
-
wp_enqueue_script( 'intergeo-library', INTERGEO_ABSURL . 'js/library.js', array( 'intergeo-rendering', 'media-views' ), INTERGEO_VERSION );
|
848 |
-
|
849 |
-
wp_localize_script( 'intergeo-rendering', 'intergeo_options', array(
|
850 |
-
'adsense' => array( 'publisher_id' => get_option( 'intergeo_adsense_publisher_id' ) )
|
851 |
-
) );
|
852 |
-
|
853 |
-
// Added by Ash/Upwork
|
854 |
-
if( defined( 'IntergeoMaps_Pro' ) ){
|
855 |
-
global $IntergeoMaps_Pro;
|
856 |
-
$IntergeoMaps_Pro->enqueueScriptsAndStyles(array('intergeo-rendering'));
|
857 |
-
}
|
858 |
-
// Added by Ash/Upwork
|
859 |
-
|
860 |
-
}
|
861 |
-
|
862 |
-
function intergeo_library_delete() {
|
863 |
-
if ( !current_user_can( 'delete_posts' ) ) {
|
864 |
-
return;
|
865 |
-
}
|
866 |
-
|
867 |
-
$id = intergeo_decode( trim( filter_input( INPUT_GET, 'map' ) ) );
|
868 |
-
if ( !$id ) {
|
869 |
-
return;
|
870 |
-
}
|
871 |
-
|
872 |
-
$post = get_post( $id );
|
873 |
-
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 ) {
|
874 |
-
if ( wp_delete_post( $id, true ) ) {
|
875 |
-
intergeo_set_info( __( 'The map was deleted successfully.', INTERGEO_PLUGIN_NAME ) );
|
876 |
-
}
|
877 |
-
}
|
878 |
-
|
879 |
-
if ( filter_input( INPUT_GET, 'noheader', FILTER_VALIDATE_BOOLEAN ) ) {
|
880 |
-
wp_redirect( add_query_arg( 'page', INTERGEO_PLUGIN_NAME, admin_url( 'upload.php' ) ) );
|
881 |
-
exit;
|
882 |
-
}
|
883 |
-
}
|
884 |
-
|
885 |
-
// </editor-fold>
|
886 |
-
|
887 |
-
// <editor-fold defaultstate="collapsed" desc="messaging functions">
|
888 |
-
|
889 |
-
function intergeo_set_message( $message, $is_normal, $user_id = false ) {
|
890 |
-
$messages = get_option( 'intergeo_messages', array() );
|
891 |
-
if ( $user_id === false ) {
|
892 |
-
$user_id = get_current_user_id();
|
893 |
-
}
|
894 |
-
|
895 |
-
if ( !isset( $messages[$user_id] ) ) {
|
896 |
-
$messages[$user_id] = array();
|
897 |
-
}
|
898 |
-
|
899 |
-
$messages[$user_id][] = array( $message, $is_normal );
|
900 |
-
update_option( 'intergeo_messages', $messages );
|
901 |
-
}
|
902 |
-
|
903 |
-
function intergeo_set_info( $message, $user_id = false ) {
|
904 |
-
intergeo_set_message( $message, 1, $user_id );
|
905 |
-
}
|
906 |
-
|
907 |
-
function intergeo_set_error( $message, $user_id = false ) {
|
908 |
-
intergeo_set_message( $message, 0, $user_id );
|
909 |
-
}
|
910 |
-
|
911 |
-
add_action( 'admin_notices', 'intergeo_print_messages' );
|
912 |
-
function intergeo_print_messages() {
|
913 |
-
global $pagenow;
|
914 |
-
|
915 |
-
if ( $pagenow != 'upload.php' ) {
|
916 |
-
return;
|
917 |
-
}
|
918 |
-
|
919 |
-
$messages = get_option( 'intergeo_messages', array() );
|
920 |
-
$user_id = get_current_user_id();
|
921 |
-
|
922 |
-
if ( !isset( $messages[$user_id] ) ) {
|
923 |
-
return;
|
924 |
-
}
|
925 |
-
|
926 |
-
foreach ( $messages[$user_id] as $message ) {
|
927 |
-
printf( $message[1] ? '<div class="updated"><p>%s</p></div>' : '<div class="error"><p>%s</p></div>', $message[0] );
|
928 |
-
}
|
929 |
-
|
930 |
-
$messages[$user_id] = array();
|
931 |
-
update_option( 'intergeo_messages', $messages );
|
932 |
-
}
|
933 |
-
|
934 |
-
// </editor-fold>
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Intergeo Maps - Google Maps Plugin
|
4 |
+
Plugin URI: http://plugins.svn.wordpress.org/intergeo-maps/
|
5 |
+
Description: A simple, easy and quite powerful Google Map tool to create, manage and embed custom Google Maps into your WordPress posts and pages. The plugin allows you to deeply customize look and feel of a map, add overlays like markers, rectangles, circles, polylines and polygons to your map. It could even be integraded with your Google Adsense account and show ad on your maps.
|
6 |
+
Version: 1.0.3
|
7 |
+
Author: Themeisle
|
8 |
+
Author URI: http://themeisle.com
|
9 |
+
License: GPL v2.0 or later
|
10 |
+
License URI: http://www.opensource.org/licenses/gpl-license.php
|
11 |
+
*/
|
12 |
+
|
13 |
+
// <editor-fold defaultstate="collapsed" desc="constants">
|
14 |
+
|
15 |
+
define( 'INTERGEO_PLUGIN_NAME', 'intergeo' ); // don't change it whatever
|
16 |
+
define( 'INTERGEO_VERSION', '1.0.3' );
|
17 |
+
define( 'INTERGEO_ABSPATH', dirname( __FILE__ ) );
|
18 |
+
define( 'INTERGEO_ABSURL', plugins_url( '/', __FILE__ ) );
|
19 |
+
// Added by Ash/Upwork
|
20 |
+
defined('WPLANG') || define( 'WPLANG', '' );
|
21 |
+
// Added by Ash/Upwork
|
22 |
+
|
23 |
+
// Added by Ash/Upwork
|
24 |
+
if ( class_exists( 'IntergeoMaps_Pro', false ) ){
|
25 |
+
define( 'IntergeoMaps_Pro', true);
|
26 |
+
}
|
27 |
+
// Added by Ash/Upwork
|
28 |
+
|
29 |
+
// </editor-fold>
|
30 |
+
|
31 |
+
// <editor-fold defaultstate="collapsed" desc="plugin init">
|
32 |
+
|
33 |
+
add_filter( 'plugin_action_links', 'intergeo_action_links', 10, 2 );
|
34 |
+
function intergeo_action_links( $links, $file ) {
|
35 |
+
if ( $file == plugin_basename( __FILE__ ) ) {
|
36 |
+
array_unshift(
|
37 |
+
$links,
|
38 |
+
sprintf( '<a href="%s">%s</a>', add_query_arg( 'page', INTERGEO_PLUGIN_NAME, admin_url( 'upload.php' ) ), __( "Maps", INTERGEO_PLUGIN_NAME ) ),
|
39 |
+
sprintf( '<a href="%s">%s</a>', admin_url( 'options-media.php' ), __( "Settings", INTERGEO_PLUGIN_NAME ) )
|
40 |
+
);
|
41 |
+
}
|
42 |
+
return $links;
|
43 |
+
}
|
44 |
+
|
45 |
+
add_action( 'admin_init', 'intergeo_admin_init' );
|
46 |
+
function intergeo_admin_init() {
|
47 |
+
load_plugin_textdomain( INTERGEO_PLUGIN_NAME, false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
48 |
+
register_post_type( INTERGEO_PLUGIN_NAME );
|
49 |
+
}
|
50 |
+
|
51 |
+
add_action( 'wp_enqueue_scripts', 'intergeo_frontend_enqueue_scripts' );
|
52 |
+
function intergeo_frontend_enqueue_scripts() {
|
53 |
+
wp_register_style( 'intergeo-frontend', INTERGEO_ABSURL . 'css/frontend.css', array(), INTERGEO_VERSION );
|
54 |
+
}
|
55 |
+
|
56 |
+
// </editor-fold>
|
57 |
+
|
58 |
+
// <editor-fold defaultstate="collapsed" desc="settings">
|
59 |
+
|
60 |
+
add_filter( 'whitelist_options', 'intergeo_whitelist_options' );
|
61 |
+
function intergeo_whitelist_options( $whitelist ) {
|
62 |
+
$whitelist['media'][] = 'intergeo_map_api_key';
|
63 |
+
$whitelist['media'][] = 'intergeo_adsense_publisher_id';
|
64 |
+
return $whitelist;
|
65 |
+
}
|
66 |
+
|
67 |
+
add_action( 'admin_init', 'intergeo_settings_init' );
|
68 |
+
function intergeo_settings_init() {
|
69 |
+
register_setting( 'media', 'intergeo-settings-map-api-key', 'trim' );
|
70 |
+
add_settings_section( 'intergeo-settings-maps', 'Intergeo Google Maps', 'intergeo_settings_init_map', 'media' );
|
71 |
+
add_settings_field( 'intergeo_map_api_key', 'Maps API Key', 'intergeo_settings_print_field', 'media', 'intergeo-settings-maps', array(
|
72 |
+
'<input type="text" name="%s" value="%s" class="regular-text">',
|
73 |
+
'intergeo_map_api_key',
|
74 |
+
esc_attr( get_option( 'intergeo_map_api_key' ) ),
|
75 |
+
) );
|
76 |
+
|
77 |
+
register_setting( 'media', 'intergeo_adsense_publisher_id', 'trim' );
|
78 |
+
add_settings_section( 'intergeo-settings-adsense', 'Intergeo Google Maps AdSense Integration', 'intergeo_settings_init_adsense', 'media' );
|
79 |
+
add_settings_field( 'intergeo_adsense_publisher_id', 'AdSense Publisher Id', 'intergeo_settings_print_field', 'media', 'intergeo-settings-adsense', array(
|
80 |
+
'<input type="text" name="%s" value="%s" class="regular-text">',
|
81 |
+
'intergeo_adsense_publisher_id',
|
82 |
+
esc_attr( get_option( 'intergeo_adsense_publisher_id' ) ),
|
83 |
+
) );
|
84 |
+
}
|
85 |
+
|
86 |
+
function intergeo_settings_init_map() {
|
87 |
+
?><p><?php
|
88 |
+
printf( esc_html__( "All Maps API applications should load the Maps API using an API key (however it is still possible to use maps without API key). Using an API key enables you to monitor your application's Maps API usage, and ensures that Google can contact you about your application if necessary. If your application's Maps API usage exceeds the %sUsage Limits%s, you must load the Maps API using an API key in order to purchase additional quota. To create your API key:", INTERGEO_PLUGIN_NAME ), '<a href="https://developers.google.com/maps/documentation/javascript/usage#usage_limits" target="_blank">', '</a>' );
|
89 |
+
?></p>
|
90 |
+
<ol>
|
91 |
+
<li><?php printf( esc_html__( "Visit the APIs Console at %shttps://code.google.com/apis/console%s and log in with your Google Account.", INTERGEO_PLUGIN_NAME ), '<a href="https://code.google.com/apis/console" target="_blank">', '</a>' ) ?></li>
|
92 |
+
<li><?php printf( esc_html__( 'Click the %sServices%s link from the left-hand menu.', INTERGEO_PLUGIN_NAME ), '<b>', '</b>' ) ?></li>
|
93 |
+
<li><?php printf( esc_html__( 'Activate the %sGoogle Maps API v3%s service.', INTERGEO_PLUGIN_NAME ), '<b>', '</b>' ) ?></li>
|
94 |
+
<li><?php printf( esc_html__( 'Click the %1$sAPI Access%2$s link from the left-hand menu. Your API key is available from the %1$sAPI Access%2$s page, in the %1$Simple API Access%2$s section. Maps API applications use the %1$sKey for browser apps%2$s.', INTERGEO_PLUGIN_NAME ), '<b>', '</b>' ) ?></li>
|
95 |
+
</ol>
|
96 |
+
<?php
|
97 |
+
}
|
98 |
+
|
99 |
+
function intergeo_settings_init_adsense() {
|
100 |
+
?><p><?php
|
101 |
+
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>' )
|
102 |
+
?></p><p><?php
|
103 |
+
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 )
|
104 |
+
?></p><?php
|
105 |
+
}
|
106 |
+
|
107 |
+
function intergeo_settings_print_field( array $args ) {
|
108 |
+
vprintf( array_shift( $args ), $args );
|
109 |
+
}
|
110 |
+
|
111 |
+
// </editor-fold>
|
112 |
+
|
113 |
+
// <editor-fold defaultstate="collapsed" desc="common">
|
114 |
+
|
115 |
+
function intergeo_enqueue_google_maps_script( $libraries = false ) {
|
116 |
+
global $wp_scripts;
|
117 |
+
|
118 |
+
if ( is_array( $libraries ) ) {
|
119 |
+
$libraries = implode( ',', $libraries );
|
120 |
+
}
|
121 |
+
|
122 |
+
if ( wp_script_is( 'google-maps-v3' ) ) {
|
123 |
+
|
124 |
+
$params = array();
|
125 |
+
parse_str( end( explode( '?', $wp_scripts->registered['google-maps-v3']->src ) ), $params );
|
126 |
+
$params['libraries'] = implode( ',', array_unique( array_merge( isset( $params['libraries'] ) ? explode( ',', $params['libraries'] ) : array(), explode( ',', $libraries ) ) ) );
|
127 |
+
$wp_scripts->registered['google-maps-v3']->src = '//maps.googleapis.com/maps/api/js?' . http_build_query( $params );
|
128 |
+
|
129 |
+
} else {
|
130 |
+
|
131 |
+
$lang = explode( '_', WPLANG ? WPLANG : 'en_US' );
|
132 |
+
$params = array(
|
133 |
+
'v' => '3.10',
|
134 |
+
'sensor' => 'false',
|
135 |
+
'region' => isset( $lang[1] ) ? $lang[1] : 'US',
|
136 |
+
'language' => $lang[0],
|
137 |
+
);
|
138 |
+
|
139 |
+
if ( !empty( $libraries ) ) {
|
140 |
+
$params['libraries'] = $libraries;
|
141 |
+
}
|
142 |
+
|
143 |
+
$api_key = get_option( 'intergeo_map_api_key' );
|
144 |
+
if ( !empty( $api_key ) ) {
|
145 |
+
$params['key'] = $api_key;
|
146 |
+
}
|
147 |
+
|
148 |
+
wp_enqueue_script( 'google-maps-v3', '//maps.googleapis.com/maps/api/js?' . http_build_query( $params ), array(), null );
|
149 |
+
|
150 |
+
}
|
151 |
+
}
|
152 |
+
|
153 |
+
function intergeo_check_libraries( $json, $libraries = array() ) {
|
154 |
+
if ( isset( $json['layer']['adsense'] ) && $json['layer']['adsense'] && !in_array( 'adsense', $libraries ) ) {
|
155 |
+
$libraries[] = 'adsense';
|
156 |
+
}
|
157 |
+
|
158 |
+
if ( isset( $json['layer']['panoramio'] ) && $json['layer']['panoramio'] && !in_array( 'panoramio', $libraries ) ) {
|
159 |
+
$libraries[] = 'panoramio';
|
160 |
+
}
|
161 |
+
|
162 |
+
if ( ( isset( $json['layer']['weather'] ) && $json['layer']['weather'] ) || ( isset( $json['layer']['cloud'] ) && $json['layer']['cloud'] ) ) {
|
163 |
+
if ( !in_array( 'weather', $libraries ) ) {
|
164 |
+
$libraries[] = 'weather';
|
165 |
+
}
|
166 |
+
}
|
167 |
+
|
168 |
+
return $libraries;
|
169 |
+
}
|
170 |
+
|
171 |
+
function intergeo_encode( $id ) {
|
172 |
+
return strrev( rtrim( call_user_func( 'base64_' . 'encode', $id ), '=' ) );
|
173 |
+
}
|
174 |
+
|
175 |
+
function intergeo_decode( $code ) {
|
176 |
+
return intval( call_user_func( 'base64' . '_decode', strrev( $code ) ) );
|
177 |
+
}
|
178 |
+
|
179 |
+
// </editor-fold>
|
180 |
+
|
181 |
+
// <editor-fold defaultstate="collapsed" desc="iframe">
|
182 |
+
|
183 |
+
// <editor-fold defaultstate="collapsed" desc="rendering">
|
184 |
+
|
185 |
+
add_filter( 'media_upload_tabs', 'intergeo_media_upload_tabs' );
|
186 |
+
function intergeo_media_upload_tabs( $tabs ) {
|
187 |
+
$tabs['intergeo_map'] = __( 'Intergeo Maps', INTERGEO_PLUGIN_NAME );
|
188 |
+
return $tabs;
|
189 |
+
}
|
190 |
+
|
191 |
+
add_action( 'media_upload_intergeo_map', 'intergeo_map_popup_init' );
|
192 |
+
function intergeo_map_popup_init() {
|
193 |
+
$post_id = filter_input( INPUT_GET, 'post_id', FILTER_VALIDATE_INT, array( 'options' => array( 'min_range' => 1 ) ) );
|
194 |
+
$map_id = filter_input( INPUT_GET, 'map' );
|
195 |
+
|
196 |
+
$send_to_editor = false;
|
197 |
+
if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
198 |
+
$shortcode = intergeo_save_map( $map_id, $post_id );
|
199 |
+
if ( $post_id ) {
|
200 |
+
$send_to_editor = $shortcode;
|
201 |
+
} else {
|
202 |
+
$args = array(
|
203 |
+
'page' => INTERGEO_PLUGIN_NAME,
|
204 |
+
'updated' => date( 'YmdHis' ),
|
205 |
+
);
|
206 |
+
wp_redirect( add_query_arg( $args, admin_url( 'upload.php' ) ) );
|
207 |
+
exit;
|
208 |
+
}
|
209 |
+
}
|
210 |
+
|
211 |
+
intergeo_enqueue_google_maps_script( 'adsense,panoramio,weather,drawing' );
|
212 |
+
|
213 |
+
wp_enqueue_script( 'intergeo-editor', INTERGEO_ABSURL . 'js/editor.js', array( 'wp-color-picker', 'google-maps-v3', 'jquery' ), INTERGEO_VERSION );
|
214 |
+
wp_localize_script( 'intergeo-editor', 'intergeo_options', array(
|
215 |
+
'send_to_editor' => $send_to_editor,
|
216 |
+
'adsense' => array( 'publisher_id' => get_option( 'intergeo_adsense_publisher_id' ) ),
|
217 |
+
'ajaxurl' => admin_url( 'admin-ajax.php' ),
|
218 |
+
'nonce' => wp_create_nonce( 'editor_popup' . filter_input( INPUT_SERVER, 'REMOTE_ADDR', FILTER_VALIDATE_IP ) ),
|
219 |
+
'l10n' => array(
|
220 |
+
'marker' => __( 'marker', INTERGEO_PLUGIN_NAME ),
|
221 |
+
'error' => array(
|
222 |
+
'style' => __( 'Styles are broken. Please, fix it and try again.', INTERGEO_PLUGIN_NAME ),
|
223 |
+
'directions' => __( 'Direction was not found.', INTERGEO_PLUGIN_NAME ),
|
224 |
+
),
|
225 |
+
),
|
226 |
+
) );
|
227 |
+
|
228 |
+
wp_enqueue_style( 'wp-color-picker' );
|
229 |
+
wp_enqueue_style( 'intergeo-editor', INTERGEO_ABSURL . 'css/editor.css', array(), INTERGEO_VERSION );
|
230 |
+
|
231 |
+
// Added by Ash/Upwork
|
232 |
+
if( defined( 'IntergeoMaps_Pro' ) ){
|
233 |
+
global $IntergeoMaps_Pro;
|
234 |
+
$IntergeoMaps_Pro->enqueueScriptsAndStyles(array('intergeo-editor'), array("mapID" => $map_id));
|
235 |
+
}
|
236 |
+
// Added by Ash/Upwork
|
237 |
+
|
238 |
+
wp_iframe( 'intergeo_iframe', $post_id, $map_id );
|
239 |
+
}
|
240 |
+
|
241 |
+
function intergeo_iframe( $post_id = false, $map_id = false ) {
|
242 |
+
$publisher_id = trim( get_option( 'intergeo_adsense_publisher_id' ) );
|
243 |
+
$show_map_center = get_option( 'intergeo_show_map_center', true );
|
244 |
+
|
245 |
+
$submit_text = __( 'Insert into post', INTERGEO_PLUGIN_NAME );
|
246 |
+
|
247 |
+
if ( !$post_id ) {
|
248 |
+
$submit_text = __( 'Create the map', INTERGEO_PLUGIN_NAME );
|
249 |
+
}
|
250 |
+
|
251 |
+
$copy = false;
|
252 |
+
if ( !$map_id ) {
|
253 |
+
$copy = true;
|
254 |
+
$map_id = filter_input( INPUT_GET, 'copy' );
|
255 |
+
}
|
256 |
+
|
257 |
+
$json = array();
|
258 |
+
if ( $map_id ) {
|
259 |
+
$map = get_post( intergeo_decode( $map_id ) );
|
260 |
+
if ( $map->post_type == INTERGEO_PLUGIN_NAME ) {
|
261 |
+
$json = json_decode( $map->post_content, true );
|
262 |
+
if ( !$copy ) {
|
263 |
+
$submit_text = __( 'Update the map', INTERGEO_PLUGIN_NAME );
|
264 |
+
}
|
265 |
+
}
|
266 |
+
}
|
267 |
+
|
268 |
+
require INTERGEO_ABSPATH . '/templates/iframe/form.php';
|
269 |
+
}
|
270 |
+
|
271 |
+
// </editor-fold>
|
272 |
+
|
273 |
+
// <editor-fold defaultstate="collapsed" desc="filtering">
|
274 |
+
|
275 |
+
function intergeo_filter_value( $value, $array ) {
|
276 |
+
$value = strtoupper( $value );
|
277 |
+
return !in_array( $value, $array ) ? null : $value;
|
278 |
+
}
|
279 |
+
|
280 |
+
function intergeo_filter_position( $position ) {
|
281 |
+
return intergeo_filter_value( $position, array(
|
282 |
+
'TOP_LEFT', 'TOP_CENTER', 'TOP_RIGHT',
|
283 |
+
'RIGHT_TOP', 'RIGHT_CENTER', 'RIGHT_BOTTOM',
|
284 |
+
'BOTTOM_RIGHT', 'BOTTOM_CENTER', 'BOTTOM_LEFT',
|
285 |
+
'LEFT_BOTTOM', 'LEFT_CENTER', 'LEFT_TOP'
|
286 |
+
) );
|
287 |
+
}
|
288 |
+
|
289 |
+
function intergeo_filter_map_type( $type ) {
|
290 |
+
return intergeo_filter_value( $type, array( 'ROADMAP', 'TERRAIN', 'SATELLITE', 'HYBRID' ) );
|
291 |
+
}
|
292 |
+
|
293 |
+
function intergeo_filter_map_type_style( $style ) {
|
294 |
+
return intergeo_filter_value( $style, array( 'DEFAULT', 'DROPDOWN_MENU', 'HORIZONTAL_BAR' ) );
|
295 |
+
}
|
296 |
+
|
297 |
+
function intergeo_filter_zoom_style( $style ) {
|
298 |
+
return intergeo_filter_value( $style, array( 'DEFAULT', 'SMALL', 'LARGE' ) );
|
299 |
+
}
|
300 |
+
|
301 |
+
function intergeo_filter_wind_speed_units( $unit ) {
|
302 |
+
return intergeo_filter_value( $unit, array( 'KILOMETERS_PER_HOUR', 'METERS_PER_SECOND', 'MILES_PER_HOUR' ) );
|
303 |
+
}
|
304 |
+
|
305 |
+
function intergeo_filter_temperature_units( $unit ) {
|
306 |
+
return intergeo_filter_value( $unit, array( 'CELSIUS', 'FAHRENHEIT' ) );
|
307 |
+
}
|
308 |
+
|
309 |
+
function intergeo_filter_adsense_format( $format ) {
|
310 |
+
return intergeo_filter_value( $format, array(
|
311 |
+
'BANNER',
|
312 |
+
'BUTTON',
|
313 |
+
'HALF_BANNER',
|
314 |
+
'LARGE_HORIZONTAL_LINK_UNIT',
|
315 |
+
'LARGE_RECTANGLE',
|
316 |
+
'LARGE_VERTICAL_LINK_UNIT',
|
317 |
+
'LEADERBOARD',
|
318 |
+
'MEDIUM_RECTANGLE',
|
319 |
+
'MEDIUM_VERTICAL_LINK_UNIT',
|
320 |
+
'SKYSCRAPER',
|
321 |
+
'SMALL_HORIZONTAL_LINK_UNIT',
|
322 |
+
'SMALL_RECTANGLE',
|
323 |
+
'SMALL_SQUARE',
|
324 |
+
'SMALL_VERTICAL_LINK_UNIT',
|
325 |
+
'SQUARE',
|
326 |
+
'VERTICAL_BANNER',
|
327 |
+
'WIDE_SKYSCRAPER',
|
328 |
+
'X_LARGE_VERTICAL_LINK_UNIT',
|
329 |
+
) );
|
330 |
+
}
|
331 |
+
|
332 |
+
function intergeo_filter_custom_style( $style ) {
|
333 |
+
$style = trim( $style );
|
334 |
+
$json = @json_decode( $style, true );
|
335 |
+
|
336 |
+
return empty( $json ) ? null : $json;
|
337 |
+
}
|
338 |
+
|
339 |
+
function intergeo_filter_overlays_marker( $marker ) {
|
340 |
+
if ( !isset( $marker['position'] ) || !preg_match( '/^-?\d+\.?\d*,-?\d+\.?\d*$/', $marker['position'] ) ) {
|
341 |
+
return false;
|
342 |
+
}
|
343 |
+
|
344 |
+
return array(
|
345 |
+
'position' => explode( ',', $marker['position'] ),
|
346 |
+
'icon' => isset( $marker['icon'] ) ? filter_var( $marker['icon'], FILTER_VALIDATE_URL ) : '',
|
347 |
+
'info' => isset( $marker['info'] ) ? trim( preg_replace( '/\<\/?script.*?\>/is', '', $marker['info'] ) ) : '',
|
348 |
+
'title' => isset( $marker['title'] ) ? strip_tags( trim( $marker['title'] ) ) : '',
|
349 |
+
);
|
350 |
+
}
|
351 |
+
|
352 |
+
function intergeo_filter_overlays_polyline( $polyline ) {
|
353 |
+
if ( !isset( $polyline['path'] ) ) {
|
354 |
+
return false;
|
355 |
+
}
|
356 |
+
|
357 |
+
$path = array();
|
358 |
+
foreach( explode( ';', $polyline['path'] ) as $point ) {
|
359 |
+
if ( preg_match( '/^-?\d+\.?\d*,-?\d+\.?\d*$/', $point ) ) {
|
360 |
+
$path[] = explode( ',', $point );
|
361 |
+
}
|
362 |
+
}
|
363 |
+
|
364 |
+
if ( count( $path ) < 2 ) {
|
365 |
+
return false;
|
366 |
+
}
|
367 |
+
|
368 |
+
return array(
|
369 |
+
'path' => $path,
|
370 |
+
'weight' => isset( $polyline['weight'] )
|
371 |
+
? filter_var( $polyline['weight'], FILTER_VALIDATE_INT, array( 'options' => array( 'min_range' => 1, 'default' => '' ) ) )
|
372 |
+
: '',
|
373 |
+
'opacity' => isset( $polyline['opacity'] )
|
374 |
+
? filter_var( $polyline['opacity'], FILTER_VALIDATE_FLOAT, array( 'options' => array( 'min_range' => 0, 'max_range' => 1, 'default' => '' ) ) )
|
375 |
+
: '',
|
376 |
+
'color' => isset( $polyline['color'] )
|
377 |
+
? filter_var( $polyline['color'], FILTER_VALIDATE_REGEXP, array( 'options' => array( 'regexp' => '/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/', 'default' => '#000000' ) ) )
|
378 |
+
: '#000000',
|
379 |
+
);
|
380 |
+
}
|
381 |
+
|
382 |
+
function intergeo_filter_overlays_polyoverlay( $polygon ) {
|
383 |
+
if ( !isset( $polygon['path'] ) ) {
|
384 |
+
return false;
|
385 |
+
}
|
386 |
+
|
387 |
+
$path = array();
|
388 |
+
foreach( explode( ';', $polygon['path'] ) as $point ) {
|
389 |
+
if ( preg_match( '/^-?\d+\.?\d*,-?\d+\.?\d*$/', $point ) ) {
|
390 |
+
$path[] = explode( ',', $point );
|
391 |
+
}
|
392 |
+
}
|
393 |
+
|
394 |
+
if ( count( $path ) < 2 ) {
|
395 |
+
return false;
|
396 |
+
}
|
397 |
+
|
398 |
+
$position = isset( $polygon['position'] ) ? strtoupper( trim( $polygon['position'] ) ) : 'CENTER';
|
399 |
+
|
400 |
+
return array(
|
401 |
+
'path' => $path,
|
402 |
+
'position' => in_array( $position, array( 'CENTER', 'INSIDE', 'OUTSIDE' ) ) ? $position : 'CENTER',
|
403 |
+
'weight' => isset( $polygon['weight'] ) ? filter_var( $polygon['weight'], FILTER_VALIDATE_INT, array( 'options' => array( 'min_range' => 1, 'default' => '' ) ) ) : '',
|
404 |
+
'stroke_opacity' => isset( $polygon['stroke_opacity'] ) ? filter_var( $polygon['stroke_opacity'], FILTER_VALIDATE_FLOAT, array( 'options' => array( 'min_range' => 0, 'max_range' => 1, 'default' => '' ) ) ) : '',
|
405 |
+
'stroke_color' => isset( $polygon['stroke_color'] ) ? filter_var( $polygon['stroke_color'], FILTER_VALIDATE_REGEXP, array( 'options' => array( 'regexp' => '/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/', 'default' => '#000000' ) ) ) : '#000000',
|
406 |
+
'fill_opacity' => isset( $polygon['fill_opacity'] ) ? filter_var( $polygon['fill_opacity'], FILTER_VALIDATE_FLOAT, array( 'options' => array( 'min_range' => 0, 'max_range' => 1, 'default' => '' ) ) ) : '',
|
407 |
+
'fill_color' => isset( $polygon['fill_color'] ) ? filter_var( $polygon['fill_color'], FILTER_VALIDATE_REGEXP, array( 'options' => array( 'regexp' => '/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/', 'default' => '#000000' ) ) ) : '#000000',
|
408 |
+
);
|
409 |
+
}
|
410 |
+
|
411 |
+
function intergeo_filter_directions( $direction ) {
|
412 |
+
$to = isset( $direction['to'] ) ? trim( $direction['to'] ) : '';
|
413 |
+
$from = isset( $direction['from'] ) ? trim( $direction['from'] ) : '';
|
414 |
+
|
415 |
+
if ( empty( $to ) || empty( $from ) ) {
|
416 |
+
return false;
|
417 |
+
}
|
418 |
+
|
419 |
+
$mode = isset( $direction['mode'] ) ? strtoupper( trim( $direction['mode'] ) ) : 'DRIVING';
|
420 |
+
|
421 |
+
return array(
|
422 |
+
'mode' => in_array( $mode, array( 'BICYCLING', 'DRIVING', 'TRANSIT', 'WALKING' ) ) ? $mode : 'DRIVING',
|
423 |
+
'from' => $from,
|
424 |
+
'to' => $to,
|
425 |
+
);
|
426 |
+
}
|
427 |
+
|
428 |
+
function intergeo_filter_input() {
|
429 |
+
$color_regexp = '/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/';
|
430 |
+
$postion_filter = array( 'filter' => FILTER_CALLBACK, 'options' => 'intergeo_filter_position' );
|
431 |
+
|
432 |
+
$validationArray = array (
|
433 |
+
'lat' => array( 'filter' => FILTER_VALIDATE_FLOAT, 'flags' => FILTER_REQUIRE_SCALAR, 'options' => array( 'min_range' => -90, 'max_range' => 90, 'default' => 48.1366069 ) ),
|
434 |
+
'lng' => array( 'filter' => FILTER_VALIDATE_FLOAT, 'flags' => FILTER_REQUIRE_SCALAR, 'options' => array( 'min_range' => -180, 'max_range' => 180, 'default' => 11.577085099999977 ) ),
|
435 |
+
'zoom' => array( 'filter' => FILTER_VALIDATE_INT, 'flags' => FILTER_REQUIRE_SCALAR, 'options' => array( 'min_range' => 0, 'max_range' => 19, 'default' => 5 ) ),
|
436 |
+
'address' => FILTER_SANITIZE_STRING,
|
437 |
+
'map_mapTypeId' => array( 'filter' => FILTER_CALLBACK, 'options' => 'intergeo_filter_map_type' ),
|
438 |
+
'map_draggable' => FILTER_VALIDATE_BOOLEAN,
|
439 |
+
'map_minZoom' => array( 'filter' => FILTER_VALIDATE_INT, 'flags' => FILTER_REQUIRE_SCALAR, 'options' => array( 'min_range' => 0, 'max_range' => 19, 'default' => 0 ) ),
|
440 |
+
'map_maxZoom' => array( 'filter' => FILTER_VALIDATE_INT, 'flags' => FILTER_REQUIRE_SCALAR, 'options' => array( 'min_range' => 0, 'max_range' => 19, 'default' => 19 ) ),
|
441 |
+
'map_scrollwheel' => FILTER_VALIDATE_BOOLEAN,
|
442 |
+
'map_zoomControl' => FILTER_VALIDATE_BOOLEAN,
|
443 |
+
'map_zoomControlOptions_position' => $postion_filter,
|
444 |
+
'map_zoomControlOptions_style' => array( 'filter' => FILTER_CALLBACK, 'options' => 'intergeo_filter_zoom_style' ),
|
445 |
+
'map_panControl' => FILTER_VALIDATE_BOOLEAN,
|
446 |
+
'map_panControlOptions_position' => $postion_filter,
|
447 |
+
'map_scaleControl' => FILTER_VALIDATE_BOOLEAN,
|
448 |
+
'map_scaleControlOptions_position' => $postion_filter,
|
449 |
+
'map_mapTypeControl' => FILTER_VALIDATE_BOOLEAN,
|
450 |
+
'map_mapTypeControlOptions_position' => $postion_filter,
|
451 |
+
'map_mapTypeControlOptions_style' => array( 'filter' => FILTER_CALLBACK, 'options' => 'intergeo_filter_map_type_style' ),
|
452 |
+
'map_mapTypeControlOptions_mapTypeIds' => array( 'filter' => FILTER_CALLBACK, 'flags' => FILTER_REQUIRE_ARRAY, 'options' => 'intergeo_filter_map_type' ),
|
453 |
+
'map_streetViewControl' => FILTER_VALIDATE_BOOLEAN,
|
454 |
+
'map_streetViewControlOptions_position' => $postion_filter,
|
455 |
+
'map_rotateControl' => FILTER_VALIDATE_BOOLEAN,
|
456 |
+
'map_rotateControlOptions_position' => $postion_filter,
|
457 |
+
'map_overviewMapControl' => FILTER_VALIDATE_BOOLEAN,
|
458 |
+
'map_overviewMapControlOptions_opened' => FILTER_VALIDATE_BOOLEAN,
|
459 |
+
'layer_traffic' => FILTER_VALIDATE_BOOLEAN,
|
460 |
+
'layer_bicycling' => FILTER_VALIDATE_BOOLEAN,
|
461 |
+
'layer_cloud' => FILTER_VALIDATE_BOOLEAN,
|
462 |
+
'layer_weather' => FILTER_VALIDATE_BOOLEAN,
|
463 |
+
'weather_temperatureUnits' => array( 'filter' => FILTER_CALLBACK, 'options' => 'intergeo_filter_temperature_units' ),
|
464 |
+
'weather_windSpeedUnits' => array( 'filter' => FILTER_CALLBACK, 'options' => 'intergeo_filter_wind_speed_units' ),
|
465 |
+
'layer_panoramio' => FILTER_VALIDATE_BOOLEAN,
|
466 |
+
'panoramio_tag' => FILTER_SANITIZE_STRING,
|
467 |
+
'panoramio_userId' => FILTER_SANITIZE_STRING,
|
468 |
+
'layer_adsense' => FILTER_VALIDATE_BOOLEAN,
|
469 |
+
'adsense_format' => array( 'filter' => FILTER_CALLBACK, 'options' => 'intergeo_filter_adsense_format' ),
|
470 |
+
'adsense_position' => $postion_filter,
|
471 |
+
'adsense_backgroundColor' => array( 'filter' => FILTER_VALIDATE_REGEXP, 'options' => array( 'regexp' => $color_regexp, 'default' => '#c4d4f3' ) ),
|
472 |
+
'adsense_borderColor' => array( 'filter' => FILTER_VALIDATE_REGEXP, 'options' => array( 'regexp' => $color_regexp, 'default' => '#e5ecf9' ) ),
|
473 |
+
'adsense_titleColor' => array( 'filter' => FILTER_VALIDATE_REGEXP, 'options' => array( 'regexp' => $color_regexp, 'default' => '#0000cc' ) ),
|
474 |
+
'adsense_textColor' => array( 'filter' => FILTER_VALIDATE_REGEXP, 'options' => array( 'regexp' => $color_regexp, 'default' => '#000000' ) ),
|
475 |
+
'adsense_urlColor' => array( 'filter' => FILTER_VALIDATE_REGEXP, 'options' => array( 'regexp' => $color_regexp, 'default' => '#009900' ) ),
|
476 |
+
'container_width' => FILTER_SANITIZE_STRING,
|
477 |
+
'container_height' => FILTER_SANITIZE_STRING,
|
478 |
+
'container_styles' => FILTER_SANITIZE_STRING,
|
479 |
+
'styles_type' => FILTER_SANITIZE_STRING,
|
480 |
+
'styles_custom' => array( 'filter' => FILTER_CALLBACK, 'options' => 'intergeo_filter_custom_style' ),
|
481 |
+
'overlays_marker' => array( 'filter' => FILTER_DEFAULT, 'flags' => FILTER_REQUIRE_ARRAY ),
|
482 |
+
'overlays_polyline' => array( 'filter' => FILTER_DEFAULT, 'flags' => FILTER_REQUIRE_ARRAY ),
|
483 |
+
'overlays_polygon' => array( 'filter' => FILTER_DEFAULT, 'flags' => FILTER_REQUIRE_ARRAY ),
|
484 |
+
'overlays_rectangle' => array( 'filter' => FILTER_DEFAULT, 'flags' => FILTER_REQUIRE_ARRAY ),
|
485 |
+
'overlays_circle' => array( 'filter' => FILTER_DEFAULT, 'flags' => FILTER_REQUIRE_ARRAY ),
|
486 |
+
'directions' => array( 'filter' => FILTER_DEFAULT, 'flags' => FILTER_REQUIRE_ARRAY ),
|
487 |
+
);
|
488 |
+
|
489 |
+
$defaults = array (
|
490 |
+
'lat' => 48.1366069,
|
491 |
+
'lng' => 11.577085099999977,
|
492 |
+
'zoom' => 5,
|
493 |
+
'address' => '',
|
494 |
+
'map_mapTypeId' => 'ROADMAP',
|
495 |
+
'map_draggable' => true,
|
496 |
+
'map_minZoom' => 0,
|
497 |
+
'map_maxZoom' => 19,
|
498 |
+
'map_scrollwheel' => true,
|
499 |
+
'map_zoomControl' => true,
|
500 |
+
'map_zoomControlOptions_position' => null,
|
501 |
+
'map_zoomControlOptions_style' => 'DEFAULT',
|
502 |
+
'map_panControl' => true,
|
503 |
+
'map_panControlOptions_position' => null,
|
504 |
+
'map_scaleControl' => false,
|
505 |
+
'map_scaleControlOptions_position' => null,
|
506 |
+
'map_mapTypeControl' => true,
|
507 |
+
'map_mapTypeControlOptions_position' => null,
|
508 |
+
'map_mapTypeControlOptions_style' => 'DEFAULT',
|
509 |
+
'map_mapTypeControlOptions_mapTypeIds' => array( 'ROADMAP', 'TERRAIN', 'SATELLITE', 'HYBRID' ),
|
510 |
+
'map_streetViewControl' => true,
|
511 |
+
'map_streetViewControlOptions_position' => null,
|
512 |
+
'map_rotateControl' => true,
|
513 |
+
'map_rotateControlOptions_position' => null,
|
514 |
+
'map_overviewMapControl' => false,
|
515 |
+
'map_overviewMapControlOptions_opened' => false,
|
516 |
+
'layer_traffic' => false,
|
517 |
+
'layer_bicycling' => false,
|
518 |
+
'layer_cloud' => false,
|
519 |
+
'layer_weather' => false,
|
520 |
+
'weather_temperatureUnits' => null,
|
521 |
+
'weather_windSpeedUnits' => null,
|
522 |
+
'layer_panoramio' => false,
|
523 |
+
'panoramio_tag' => '',
|
524 |
+
'panoramio_userId' => '',
|
525 |
+
'layer_adsense' => false,
|
526 |
+
'adsense_format' => null,
|
527 |
+
'adsense_position' => null,
|
528 |
+
'adsense_backgroundColor' => '#c4d4f3',
|
529 |
+
'adsense_borderColor' => '#e5ecf9',
|
530 |
+
'adsense_titleColor' => '#0000cc',
|
531 |
+
'adsense_textColor' => '#000000',
|
532 |
+
'adsense_urlColor' => '#009900',
|
533 |
+
'container_width' => '',
|
534 |
+
'container_height' => '',
|
535 |
+
'container_styles' => '',
|
536 |
+
'styles_type' => 'DEFAULT',
|
537 |
+
'styles_custom' => null,
|
538 |
+
'overlays_marker' => array(),
|
539 |
+
'overlays_polyline' => array(),
|
540 |
+
'overlays_polygon' => array(),
|
541 |
+
'overlays_rectangle' => array(),
|
542 |
+
'overlays_circle' => array(),
|
543 |
+
'directions' => array(),
|
544 |
+
);
|
545 |
+
|
546 |
+
// Added by Ash/Upwork
|
547 |
+
if( defined( 'IntergeoMaps_Pro' ) ){
|
548 |
+
global $IntergeoMaps_Pro;
|
549 |
+
$IntergeoMaps_Pro->addValidations($validationArray, $defaults);
|
550 |
+
}
|
551 |
+
// Added by Ash/Upwork
|
552 |
+
|
553 |
+
$options = filter_input_array( INPUT_POST, $validationArray );
|
554 |
+
|
555 |
+
$results = array();
|
556 |
+
foreach ( $options as $key => $value ) {
|
557 |
+
if ( array_key_exists( $key, $defaults ) ) {
|
558 |
+
$equals = $defaults[$key] == $value;
|
559 |
+
if ( is_array( $value ) ) {
|
560 |
+
$equals = ( count( $value ) == count( $defaults[$key] ) ) && ( count( array_diff( (array)$defaults[$key], $value ) ) == 0 );
|
561 |
+
}
|
562 |
+
|
563 |
+
if ( !$equals ) {
|
564 |
+
$results[$key] = $value;
|
565 |
+
}
|
566 |
+
}
|
567 |
+
}
|
568 |
+
|
569 |
+
if ( !empty( $results['overlays_marker'] ) ) {
|
570 |
+
$results['overlays_marker'] = array_filter( array_map( 'intergeo_filter_overlays_marker', $results['overlays_marker'] ) );
|
571 |
+
}
|
572 |
+
|
573 |
+
if ( !empty( $results['overlays_polyline'] ) ) {
|
574 |
+
$results['overlays_polyline'] = array_filter( array_map( 'intergeo_filter_overlays_polyline', $results['overlays_polyline'] ) );
|
575 |
+
}
|
576 |
+
|
577 |
+
if ( !empty( $results['directions'] ) ) {
|
578 |
+
$results['directions'] = array_filter( array_map( 'intergeo_filter_directions', $results['directions'] ) );
|
579 |
+
}
|
580 |
+
|
581 |
+
foreach ( array( 'polygon', 'rectangle', 'circle' ) as $overlay ) {
|
582 |
+
$overlay = 'overlays_' . $overlay;
|
583 |
+
if ( !empty( $results[$overlay] ) ) {
|
584 |
+
$results[$overlay] = array_filter( array_map( 'intergeo_filter_overlays_polyoverlay', $results[$overlay] ) );
|
585 |
+
}
|
586 |
+
}
|
587 |
+
|
588 |
+
// Added by Ash/Upwork
|
589 |
+
if( defined( 'IntergeoMaps_Pro' ) ){
|
590 |
+
global $IntergeoMaps_Pro;
|
591 |
+
$IntergeoMaps_Pro->processResults($results);
|
592 |
+
}
|
593 |
+
// Added by Ash/Upwork
|
594 |
+
|
595 |
+
return $results;
|
596 |
+
}
|
597 |
+
|
598 |
+
// </editor-fold>
|
599 |
+
|
600 |
+
// <editor-fold defaultstate="collapsed" desc="saving">
|
601 |
+
|
602 |
+
function intergeo_save_map( $map_id = false, $post_id = false ) {
|
603 |
+
$options = array();
|
604 |
+
$array_ptr = &$options;
|
605 |
+
foreach ( intergeo_filter_input() as $key => $value ) {
|
606 |
+
if ( !is_null( $value ) ) {
|
607 |
+
$keys = explode( '_', $key );
|
608 |
+
$last_key = array_pop( $keys );
|
609 |
+
|
610 |
+
while ( $arr_key = array_shift( $keys ) ) {
|
611 |
+
if ( !array_key_exists( $arr_key, $array_ptr ) ) {
|
612 |
+
$array_ptr[$arr_key] = array( );
|
613 |
+
}
|
614 |
+
$array_ptr = &$array_ptr[$arr_key];
|
615 |
+
}
|
616 |
+
|
617 |
+
$array_ptr[$last_key] = $value;
|
618 |
+
$array_ptr = &$options;
|
619 |
+
}
|
620 |
+
}
|
621 |
+
|
622 |
+
$address = '';
|
623 |
+
if ( !empty( $options['address'] ) ) {
|
624 |
+
$address = $options['address'] = trim( $options['address'] );
|
625 |
+
}
|
626 |
+
|
627 |
+
$args = array(
|
628 |
+
'post_type' => INTERGEO_PLUGIN_NAME,
|
629 |
+
'post_content' => addcslashes( json_encode( $options ), '\\' ),
|
630 |
+
'post_status' => 'private',
|
631 |
+
);
|
632 |
+
|
633 |
+
$update = false;
|
634 |
+
if ( $map_id ) {
|
635 |
+
$post = get_post( intergeo_decode( $map_id ) );
|
636 |
+
if ( $post && $post->post_type == INTERGEO_PLUGIN_NAME ) {
|
637 |
+
$update = true;
|
638 |
+
$args['ID'] = $post->ID;
|
639 |
+
}
|
640 |
+
}
|
641 |
+
|
642 |
+
$id = wp_insert_post( $args );
|
643 |
+
|
644 |
+
if ( !empty( $id ) && !is_wp_error( $id ) ) {
|
645 |
+
if ( !$post_id ) {
|
646 |
+
intergeo_set_info( $update
|
647 |
+
? __( 'The map has been updated successfully.', INTERGEO_PLUGIN_NAME )
|
648 |
+
: __( 'The map has been created successfully.', INTERGEO_PLUGIN_NAME )
|
649 |
+
);
|
650 |
+
}
|
651 |
+
return sprintf( '[intergeo id="%s"]%s[/intergeo]', intergeo_encode( $id ), $address );
|
652 |
+
}
|
653 |
+
|
654 |
+
if ( !$post_id ) {
|
655 |
+
intergeo_set_error( $update
|
656 |
+
? __( 'The map updating failed.', INTERGEO_PLUGIN_NAME )
|
657 |
+
: __( 'The map creation failed.', INTERGEO_PLUGIN_NAME )
|
658 |
+
);
|
659 |
+
}
|
660 |
+
|
661 |
+
return false;
|
662 |
+
}
|
663 |
+
|
664 |
+
// </editor-fold>
|
665 |
+
|
666 |
+
// <editor-fold defaultstate="collapsed" desc="ajax stuff">
|
667 |
+
|
668 |
+
add_action( 'wp_ajax_intergeo_show_map_center', 'intergeo_show_map_center_changed' );
|
669 |
+
function intergeo_show_map_center_changed() {
|
670 |
+
$nonce = filter_input( INPUT_POST, 'nonce' );
|
671 |
+
if ( wp_verify_nonce( $nonce, 'editor_popup' . filter_input( INPUT_SERVER, 'REMOTE_ADDR', FILTER_VALIDATE_IP ) ) ) {
|
672 |
+
update_option( 'intergeo_show_map_center', (int)filter_input( INPUT_POST, 'status', FILTER_VALIDATE_BOOLEAN ) );
|
673 |
+
}
|
674 |
+
}
|
675 |
+
|
676 |
+
// </editor-fold>
|
677 |
+
|
678 |
+
// </editor-fold>
|
679 |
+
|
680 |
+
// <editor-fold defaultstate="collapsed" desc="shortcode">
|
681 |
+
|
682 |
+
add_filter( 'widget_text', 'do_shortcode' );
|
683 |
+
add_filter( 'term_description', 'do_shortcode' );
|
684 |
+
|
685 |
+
add_shortcode( INTERGEO_PLUGIN_NAME, 'intergeo_shortcode' );
|
686 |
+
function intergeo_shortcode( $attrs, $address = '' ) {
|
687 |
+
$args = shortcode_atts( array(
|
688 |
+
'id' => false,
|
689 |
+
'hook' => false,
|
690 |
+
'width' => false,
|
691 |
+
'height' => false,
|
692 |
+
'style' => false,
|
693 |
+
'zoom' => false,
|
694 |
+
), $attrs );
|
695 |
+
|
696 |
+
$address = trim( $address );
|
697 |
+
if ( empty( $args['id'] ) && empty( $address ) ) {
|
698 |
+
return '';
|
699 |
+
}
|
700 |
+
|
701 |
+
$json = array();
|
702 |
+
if ( !empty( $args['id'] ) ) {
|
703 |
+
$post = get_post( intergeo_decode( $args['id'] ) );
|
704 |
+
if ( !$post || $post->post_type != INTERGEO_PLUGIN_NAME ) {
|
705 |
+
return '';
|
706 |
+
}
|
707 |
+
|
708 |
+
$json = json_decode( $post->post_content, true );
|
709 |
+
} else {
|
710 |
+
$args['id'] = intergeo_encode( rand( 0, 100 ) . rand( 0, 10000 ) );
|
711 |
+
$json['zoom'] = intval( $args['zoom'] ) ? intval( $args['zoom'] ) : 15;
|
712 |
+
}
|
713 |
+
|
714 |
+
if ( !empty( $address ) ) {
|
715 |
+
$json['address'] = $address;
|
716 |
+
}
|
717 |
+
|
718 |
+
if ( trim( $args['hook'] ) != '' ) {
|
719 |
+
$json = apply_filters( $args['hook'], $json );
|
720 |
+
}
|
721 |
+
|
722 |
+
wp_enqueue_style( 'intergeo-frontend' );
|
723 |
+
intergeo_enqueue_google_maps_script( intergeo_check_libraries( $json ) );
|
724 |
+
if ( !wp_script_is( 'intergeo-rendering' ) ) {
|
725 |
+
wp_enqueue_script( 'intergeo-rendering', INTERGEO_ABSURL . 'js/rendering.js', array( 'jquery', 'google-maps-v3' ), INTERGEO_VERSION );
|
726 |
+
wp_localize_script( 'intergeo-rendering', 'intergeo_options', array(
|
727 |
+
'adsense' => array( 'publisher_id' => get_option( 'intergeo_adsense_publisher_id' ) )
|
728 |
+
) );
|
729 |
+
}
|
730 |
+
|
731 |
+
$container = array();
|
732 |
+
if ( isset( $json['container'] ) ) {
|
733 |
+
$container = $json['container'];
|
734 |
+
unset( $json['container'] );
|
735 |
+
}
|
736 |
+
|
737 |
+
$width = !empty( $container['width'] ) ? esc_attr( $container['width'] ) : '100%';
|
738 |
+
if ( trim( $args['width'] ) != '' ) {
|
739 |
+
$width = $args['width'];
|
740 |
+
}
|
741 |
+
if ( is_numeric( $width ) ) {
|
742 |
+
$width .= 'px';
|
743 |
+
}
|
744 |
+
|
745 |
+
$height = !empty( $container['height'] ) ? esc_attr( $container['height'] ) : '300px';
|
746 |
+
if ( trim( $args['height'] ) != '' ) {
|
747 |
+
$height = $args['height'];
|
748 |
+
}
|
749 |
+
if ( is_numeric( $height ) ) {
|
750 |
+
$height .= 'px';
|
751 |
+
}
|
752 |
+
|
753 |
+
$styles = !empty( $container['styles'] ) ? esc_attr( $container['styles'] ) : '';
|
754 |
+
if ( trim( $args['style'] ) != '' ) {
|
755 |
+
$styles = $args['style'];
|
756 |
+
}
|
757 |
+
|
758 |
+
return sprintf( '
|
759 |
+
<div id="intergeo_map%1$s" class="intergeo_map_canvas" style="width:100%%;height:300px;width:%2$s;height:%3$s;%4$s"></div>
|
760 |
+
<script type="text/javascript">
|
761 |
+
/* <![CDATA[ */
|
762 |
+
if (!window.intergeo_maps) window.intergeo_maps = [];
|
763 |
+
window.intergeo_maps.push( { container: \'intergeo_map%1$s\', options: %5$s } );
|
764 |
+
if (!window.intergeo_maps_current) window.intergeo_maps_current = null;
|
765 |
+
/* ]]> */
|
766 |
+
</script>
|
767 |
+
',
|
768 |
+
$args['id'],
|
769 |
+
$width,
|
770 |
+
$height,
|
771 |
+
$styles,
|
772 |
+
json_encode( $json )
|
773 |
+
);
|
774 |
+
}
|
775 |
+
|
776 |
+
// </editor-fold>
|
777 |
+
|
778 |
+
// <editor-fold defaultstate="collapsed" desc="library">
|
779 |
+
|
780 |
+
add_action( 'admin_menu', 'intergeo_admin_menu' );
|
781 |
+
function intergeo_admin_menu() {
|
782 |
+
$page = add_submenu_page( 'upload.php', 'Intergeo Maps Library', 'Intergeo Maps', 'edit_posts', INTERGEO_PLUGIN_NAME, 'intergeo_library' );
|
783 |
+
if ( $page ) {
|
784 |
+
add_action( "load-{$page}", 'intergeo_library_init' );
|
785 |
+
}
|
786 |
+
}
|
787 |
+
|
788 |
+
function intergeo_library_init() {
|
789 |
+
wp_enqueue_style( 'intergeo_library', INTERGEO_ABSURL . 'css/library.css', array(), INTERGEO_VERSION );
|
790 |
+
wp_enqueue_media();
|
791 |
+
|
792 |
+
$screen = get_current_screen();
|
793 |
+
|
794 |
+
$screen->add_help_tab( array(
|
795 |
+
'title' => esc_html__( 'Overview', INTERGEO_PLUGIN_NAME ),
|
796 |
+
'id' => 'overview',
|
797 |
+
'content' => sprintf( '<p>%s</p>', implode( '</p><p>', array(
|
798 |
+
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 ),
|
799 |
+
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 ),
|
800 |
+
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 ),
|
801 |
+
) ) ),
|
802 |
+
) );
|
803 |
+
|
804 |
+
$screen->add_help_tab( array(
|
805 |
+
'title' => esc_html__( 'Shortcodes', INTERGEO_PLUGIN_NAME ),
|
806 |
+
'id' => 'shortcodes',
|
807 |
+
'content' => sprintf( '<p>%s</p>', implode( '</p><p>', array(
|
808 |
+
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 ),
|
809 |
+
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 ),
|
810 |
+
) ) ),
|
811 |
+
) );
|
812 |
+
}
|
813 |
+
|
814 |
+
function intergeo_library() {
|
815 |
+
if ( filter_input( INPUT_GET, 'do' ) == 'delete' ) {
|
816 |
+
intergeo_library_delete();
|
817 |
+
}
|
818 |
+
|
819 |
+
$query = new WP_Query( array(
|
820 |
+
'orderby' => 'ID',
|
821 |
+
'order' => 'DESC',
|
822 |
+
'post_type' => INTERGEO_PLUGIN_NAME,
|
823 |
+
'posts_per_page' => 9,
|
824 |
+
'paged' => filter_input( INPUT_GET, 'pagenum', FILTER_VALIDATE_INT, array( 'options' => array(
|
825 |
+
'min_range' => 1,
|
826 |
+
'default' => 1,
|
827 |
+
) ) ),
|
828 |
+
) );
|
829 |
+
|
830 |
+
$libraries = array();
|
831 |
+
$pagination = paginate_links( array(
|
832 |
+
'base' => add_query_arg( array(
|
833 |
+
'pagenum' => '%#%',
|
834 |
+
'updated' => false,
|
835 |
+
) ),
|
836 |
+
'format' => '',
|
837 |
+
'current' => max( 1, $query->get( 'paged' ) ),
|
838 |
+
'total' => $query->max_num_pages,
|
839 |
+
'type' => 'array',
|
840 |
+
) );
|
841 |
+
|
842 |
+
require INTERGEO_ABSPATH . '/templates/library/list.php';
|
843 |
+
|
844 |
+
intergeo_enqueue_google_maps_script( $libraries );
|
845 |
+
|
846 |
+
wp_enqueue_script( 'intergeo-rendering', INTERGEO_ABSURL . 'js/rendering.js', array( 'jquery', 'google-maps-v3' ), INTERGEO_VERSION );
|
847 |
+
wp_enqueue_script( 'intergeo-library', INTERGEO_ABSURL . 'js/library.js', array( 'intergeo-rendering', 'media-views' ), INTERGEO_VERSION );
|
848 |
+
|
849 |
+
wp_localize_script( 'intergeo-rendering', 'intergeo_options', array(
|
850 |
+
'adsense' => array( 'publisher_id' => get_option( 'intergeo_adsense_publisher_id' ) )
|
851 |
+
) );
|
852 |
+
|
853 |
+
// Added by Ash/Upwork
|
854 |
+
if( defined( 'IntergeoMaps_Pro' ) ){
|
855 |
+
global $IntergeoMaps_Pro;
|
856 |
+
$IntergeoMaps_Pro->enqueueScriptsAndStyles(array('intergeo-rendering'));
|
857 |
+
}
|
858 |
+
// Added by Ash/Upwork
|
859 |
+
|
860 |
+
}
|
861 |
+
|
862 |
+
function intergeo_library_delete() {
|
863 |
+
if ( !current_user_can( 'delete_posts' ) ) {
|
864 |
+
return;
|
865 |
+
}
|
866 |
+
|
867 |
+
$id = intergeo_decode( trim( filter_input( INPUT_GET, 'map' ) ) );
|
868 |
+
if ( !$id ) {
|
869 |
+
return;
|
870 |
+
}
|
871 |
+
|
872 |
+
$post = get_post( $id );
|
873 |
+
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 ) {
|
874 |
+
if ( wp_delete_post( $id, true ) ) {
|
875 |
+
intergeo_set_info( __( 'The map was deleted successfully.', INTERGEO_PLUGIN_NAME ) );
|
876 |
+
}
|
877 |
+
}
|
878 |
+
|
879 |
+
if ( filter_input( INPUT_GET, 'noheader', FILTER_VALIDATE_BOOLEAN ) ) {
|
880 |
+
wp_redirect( add_query_arg( 'page', INTERGEO_PLUGIN_NAME, admin_url( 'upload.php' ) ) );
|
881 |
+
exit;
|
882 |
+
}
|
883 |
+
}
|
884 |
+
|
885 |
+
// </editor-fold>
|
886 |
+
|
887 |
+
// <editor-fold defaultstate="collapsed" desc="messaging functions">
|
888 |
+
|
889 |
+
function intergeo_set_message( $message, $is_normal, $user_id = false ) {
|
890 |
+
$messages = get_option( 'intergeo_messages', array() );
|
891 |
+
if ( $user_id === false ) {
|
892 |
+
$user_id = get_current_user_id();
|
893 |
+
}
|
894 |
+
|
895 |
+
if ( !isset( $messages[$user_id] ) ) {
|
896 |
+
$messages[$user_id] = array();
|
897 |
+
}
|
898 |
+
|
899 |
+
$messages[$user_id][] = array( $message, $is_normal );
|
900 |
+
update_option( 'intergeo_messages', $messages );
|
901 |
+
}
|
902 |
+
|
903 |
+
function intergeo_set_info( $message, $user_id = false ) {
|
904 |
+
intergeo_set_message( $message, 1, $user_id );
|
905 |
+
}
|
906 |
+
|
907 |
+
function intergeo_set_error( $message, $user_id = false ) {
|
908 |
+
intergeo_set_message( $message, 0, $user_id );
|
909 |
+
}
|
910 |
+
|
911 |
+
add_action( 'admin_notices', 'intergeo_print_messages' );
|
912 |
+
function intergeo_print_messages() {
|
913 |
+
global $pagenow;
|
914 |
+
|
915 |
+
if ( $pagenow != 'upload.php' ) {
|
916 |
+
return;
|
917 |
+
}
|
918 |
+
|
919 |
+
$messages = get_option( 'intergeo_messages', array() );
|
920 |
+
$user_id = get_current_user_id();
|
921 |
+
|
922 |
+
if ( !isset( $messages[$user_id] ) ) {
|
923 |
+
return;
|
924 |
+
}
|
925 |
+
|
926 |
+
foreach ( $messages[$user_id] as $message ) {
|
927 |
+
printf( $message[1] ? '<div class="updated"><p>%s</p></div>' : '<div class="error"><p>%s</p></div>', $message[0] );
|
928 |
+
}
|
929 |
+
|
930 |
+
$messages[$user_id] = array();
|
931 |
+
update_option( 'intergeo_messages', $messages );
|
932 |
+
}
|
933 |
+
|
934 |
+
// </editor-fold>
|
js/editor.js
CHANGED
@@ -1,1123 +1,1123 @@
|
|
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) {
|
35 |
-
return function() {
|
36 |
-
var o = this.supr;
|
37 |
-
this.supr = f[e][l];
|
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 |
-
}
|
56 |
-
|
57 |
-
function j(m, p) {
|
58 |
-
function t() {}
|
59 |
-
t[e] = this[e];
|
60 |
-
var q = this,
|
61 |
-
s = new t(),
|
62 |
-
n = g(m),
|
63 |
-
f = n ? m : this,
|
64 |
-
l = n ? {} : m;
|
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) {
|
109 |
-
var e = this;
|
110 |
-
e.map = h;
|
111 |
-
e.overlay = f;
|
112 |
-
e.html = g;
|
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 |
-
a.Marker = a.Overlay.extend({
|
130 |
-
initialize: function(i, f, g, d) {
|
131 |
-
var e = this,
|
132 |
-
h = new b.InfoWindow();
|
133 |
-
e.supr(i, f, g, d, "markers");
|
134 |
-
g.hover(function() {
|
135 |
-
if (i.markers[d]) {
|
136 |
-
f.setAnimation(b.Animation.BOUNCE)
|
137 |
-
}
|
138 |
-
}, function() {
|
139 |
-
if (i.markers[d]) {
|
140 |
-
f.setAnimation(null)
|
141 |
-
}
|
142 |
-
});
|
143 |
-
e.html.find(".intergeo_tlbr_actn_edit").click(function() {
|
144 |
-
var j = c("#intergeo_marker_ppp");
|
145 |
-
j.find(".intergeo_ppp_frm").attr("data-position", d);
|
146 |
-
j.find(".intergeo_tlbr_marker_title").val(g.find(".intergeo_tlbr_marker_title").val());
|
147 |
-
j.find(".intergeo_tlbr_marker_icon").val(g.find(".intergeo_tlbr_marker_icon").val());
|
148 |
-
j.find(".intergeo_tlbr_marker_info").val(g.find(".intergeo_tlbr_marker_info").val());
|
149 |
-
j.fadeIn(150)
|
150 |
-
});
|
151 |
-
b.event.addListener(f, "dragend", function(j) {
|
152 |
-
g.find(".intergeo_tlbr_marker_location").val(j.latLng.toUrlValue())
|
153 |
-
});
|
154 |
-
b.event.addListener(f, "click", function() {
|
155 |
-
var j = c.trim(g.find(".intergeo_tlbr_marker_info").val());
|
156 |
-
if (j.length) {
|
157 |
-
if (i.infowindow) {
|
158 |
-
i.infowindow.close()
|
159 |
-
}
|
160 |
-
h.setContent(j);
|
161 |
-
h.open(i.map, f);
|
162 |
-
i.infowindow = h
|
163 |
-
}
|
164 |
-
})
|
165 |
-
},
|
166 |
-
update: function(g) {
|
167 |
-
var d = this,
|
168 |
-
e = {},
|
169 |
-
i = c.trim(g.find(".intergeo_tlbr_marker_title").val()),
|
170 |
-
f = c.trim(g.find(".intergeo_tlbr_marker_icon").val()),
|
171 |
-
h = c.trim(g.find(".intergeo_tlbr_marker_info").val()),
|
172 |
-
j = d.html.find(".intergeo_tlbr_marker_title_td");
|
173 |
-
e.title = i;
|
174 |
-
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)) {
|
175 |
-
e.icon = f
|
176 |
-
} else {
|
177 |
-
e.icon = null
|
178 |
-
}
|
179 |
-
d.html.find(".intergeo_tlbr_marker_title").val(i);
|
180 |
-
d.html.find(".intergeo_tlbr_marker_icon").val(f);
|
181 |
-
d.html.find(".intergeo_tlbr_marker_info").val(h);
|
182 |
-
d.overlay.setOptions(e);
|
183 |
-
if (i != "") {
|
184 |
-
j.text(i)
|
185 |
-
} else {
|
186 |
-
j.text("#" + (d.position + 1) + " " + intergeo_options.l10n.marker)
|
187 |
-
}
|
188 |
-
}
|
189 |
-
});
|
190 |
-
a.PolyOverlay = a.Overlay.extend({
|
191 |
-
initialize: function(h, f, g, d, i) {
|
192 |
-
var e = this;
|
193 |
-
e.supr(h, f, g, d, i);
|
194 |
-
e.html.find(".intergeo_tlbr_actn_edit").click(function() {
|
195 |
-
e.edit();
|
196 |
-
return false
|
197 |
-
})
|
198 |
-
},
|
199 |
-
pathToString: function() {
|
200 |
-
var d = [];
|
201 |
-
this.overlay.getPath().forEach(function(e) {
|
202 |
-
d.push(e.toUrlValue())
|
203 |
-
});
|
204 |
-
return d.join(";")
|
205 |
-
},
|
206 |
-
bindChangeEvent: function(e) {
|
207 |
-
var d = this;
|
208 |
-
b.event.addListener(d.overlay, e, function() {
|
209 |
-
d.html.find(".intergeo_tlbr_" + d.array + "_path").val(d.pathToString())
|
210 |
-
})
|
211 |
-
},
|
212 |
-
edit: function() {
|
213 |
-
var d = this,
|
214 |
-
e = c("#intergeo_polyoverlay_ppp"),
|
215 |
-
g = c.trim(d.html.find(".intergeo_tlbr_" + d.array + "_fill_color").val()),
|
216 |
-
f = c.trim(d.html.find(".intergeo_tlbr_" + d.array + "_stroke_color").val());
|
217 |
-
e.find(".intergeo_ppp_frm").attr("data-position", d.position).attr("data-target", d.array);
|
218 |
-
if (!g) {
|
219 |
-
g = "#000000"
|
220 |
-
}
|
221 |
-
e.find(".intergeo_tlbr_polyoverlay_fill_color").val(g).wpColorPicker("color", g);
|
222 |
-
e.find(".intergeo_tlbr_polyoverlay_fill_opacity").val(d.html.find(".intergeo_tlbr_" + d.array + "_fill_opacity").val());
|
223 |
-
if (!f) {
|
224 |
-
f = "#000000"
|
225 |
-
}
|
226 |
-
e.find(".intergeo_tlbr_polyoverlay_stroke_color").val(f).wpColorPicker("color", f);
|
227 |
-
e.find(".intergeo_tlbr_polyoverlay_weight").val(d.html.find(".intergeo_tlbr_" + d.array + "_weight").val());
|
228 |
-
e.find(".intergeo_tlbr_polyoverlay_stroke_opacity").val(d.html.find(".intergeo_tlbr_" + d.array + "_stroke_opacity").val());
|
229 |
-
e.find(".intergeo_tlbr_polyoverlay_position").val(d.html.find(".intergeo_tlbr_" + d.array + "_position").val());
|
230 |
-
e.fadeIn(150)
|
231 |
-
},
|
232 |
-
update: function(e) {
|
233 |
-
var n = this,
|
234 |
-
o = {},
|
235 |
-
k = e.find(".intergeo_tlbr_polyoverlay_position").val(),
|
236 |
-
j = parseInt(e.find(".intergeo_tlbr_polyoverlay_weight").val()),
|
237 |
-
i = !isNaN(j) && 0 <= j,
|
238 |
-
f = parseFloat(e.find(".intergeo_tlbr_polyoverlay_stroke_opacity").val()),
|
239 |
-
d = !isNaN(f) && 0 <= f && f <= 1,
|
240 |
-
h = c.trim(e.find(".intergeo_tlbr_polyoverlay_stroke_color").val()),
|
241 |
-
g = parseFloat(e.find(".intergeo_tlbr_polyoverlay_fill_opacity").val()),
|
242 |
-
l = !isNaN(g) && 0 <= g && g <= 1,
|
243 |
-
m = c.trim(e.find(".intergeo_tlbr_polyoverlay_fill_color").val());
|
244 |
-
o.strokePosition = b.StrokePosition[k] || b.StrokePosition.CENTER;
|
245 |
-
o.strokeWeight = i ? j : 3;
|
246 |
-
o.strokeOpacity = d ? f : 1;
|
247 |
-
o.strokeColor = h;
|
248 |
-
o.fillOpacity = l ? g : 0.3;
|
249 |
-
o.fillColor = m;
|
250 |
-
n.html.find(".intergeo_tlbr_" + n.array + "_position").val(k);
|
251 |
-
n.html.find(".intergeo_tlbr_" + n.array + "_weight").val(i ? j : "");
|
252 |
-
n.html.find(".intergeo_tlbr_" + n.array + "_stroke_opacity").val(d ? f : "");
|
253 |
-
n.html.find(".intergeo_tlbr_" + n.array + "_stroke_color").val(h);
|
254 |
-
n.html.find(".intergeo_tlbr_" + n.array + "_fill_opacity").val(l ? g : "");
|
255 |
-
n.html.find(".intergeo_tlbr_" + n.array + "_fill_color").val(m);
|
256 |
-
n.html.find(".intergeo_tlbr_clr_prvw:last").css("background-color", h).fadeTo(0, d ? f : 1);
|
257 |
-
n.html.find(".intergeo_tlbr_clr_prvw:first").css("background-color", m).fadeTo(0, l ? g : 0.3);
|
258 |
-
n.overlay.setOptions(o)
|
259 |
-
}
|
260 |
-
});
|
261 |
-
a.PolyOverlay.stringToPath = function(e, d) {
|
262 |
-
var f = [];
|
263 |
-
c.each(e.find(d).val().split(";"), function(h, i) {
|
264 |
-
var g = i.split(",");
|
265 |
-
if (g.length == 2) {
|
266 |
-
f.push(new b.LatLng(g[0], g[1]))
|
267 |
-
}
|
268 |
-
});
|
269 |
-
return f
|
270 |
-
};
|
271 |
-
a.PolyOverlay.stringToBounds = function(e, d) {
|
272 |
-
var f = a.PolyOverlay.stringToPath(e, d);
|
273 |
-
return new b.LatLngBounds(f[0], f[1])
|
274 |
-
};
|
275 |
-
a.Polyline = a.PolyOverlay.extend({
|
276 |
-
initialize: function(g, e, f, d) {
|
277 |
-
this.supr(g, e, f, d, "polyline");
|
278 |
-
this.bindChangeEvent("mouseup")
|
279 |
-
},
|
280 |
-
edit: function() {
|
281 |
-
var e = this,
|
282 |
-
f = c("#intergeo_polyline_ppp"),
|
283 |
-
d = c.trim(e.html.find(".intergeo_tlbr_polyline_color").val());
|
284 |
-
f.find(".intergeo_ppp_frm").attr("data-position", e.position).attr("data-target", "polyline");
|
285 |
-
f.find(".intergeo_tlbr_polyline_weight").val(e.html.find(".intergeo_tlbr_polyline_weight").val());
|
286 |
-
f.find(".intergeo_tlbr_polyline_opacity").val(e.html.find(".intergeo_tlbr_polyline_opacity").val());
|
287 |
-
if (!d) {
|
288 |
-
d = "#000000"
|
289 |
-
}
|
290 |
-
f.find(".intergeo_tlbr_polyline_color").val(d).wpColorPicker("color", d);
|
291 |
-
f.fadeIn(150)
|
292 |
-
},
|
293 |
-
update: function(i) {
|
294 |
-
var e = this,
|
295 |
-
g = {},
|
296 |
-
j = parseInt(i.find(".intergeo_tlbr_polyline_weight").val()),
|
297 |
-
k = !isNaN(j) && 0 <= j,
|
298 |
-
f = parseFloat(i.find(".intergeo_tlbr_polyline_opacity").val()),
|
299 |
-
h = !isNaN(f) && 0 <= f && f <= 1,
|
300 |
-
d = c.trim(i.find(".intergeo_tlbr_polyline_color").val());
|
301 |
-
g.strokeOpacity = h ? f : 1;
|
302 |
-
g.strokeWeight = k ? j : 3;
|
303 |
-
g.strokeColor = d;
|
304 |
-
e.html.find(".intergeo_tlbr_polyline_weight").val(k ? j : "");
|
305 |
-
e.html.find(".intergeo_tlbr_polyline_opacity").val(h ? f : "");
|
306 |
-
e.html.find(".intergeo_tlbr_polyline_color").val(d);
|
307 |
-
e.html.find(".intergeo_tlbr_clr_prvw").css("background-color", d).fadeTo(0, h ? f : 1);
|
308 |
-
e.overlay.setOptions(g)
|
309 |
-
}
|
310 |
-
});
|
311 |
-
a.Polygon = a.PolyOverlay.extend({
|
312 |
-
initialize: function(g, e, f, d) {
|
313 |
-
this.supr(g, e, f, d, "polygon");
|
314 |
-
this.bindChangeEvent("mouseup")
|
315 |
-
}
|
316 |
-
});
|
317 |
-
a.Rectangle = a.PolyOverlay.extend({
|
318 |
-
initialize: function(g, e, f, d) {
|
319 |
-
this.supr(g, e, f, d, "rectangle");
|
320 |
-
this.bindChangeEvent("bounds_changed")
|
321 |
-
},
|
322 |
-
pathToString: function() {
|
323 |
-
var d = this.overlay.getBounds();
|
324 |
-
return [d.getSouthWest().toUrlValue(), d.getNorthEast().toUrlValue()].join(";")
|
325 |
-
}
|
326 |
-
});
|
327 |
-
a.Circle = a.PolyOverlay.extend({
|
328 |
-
initialize: function(g, e, f, d) {
|
329 |
-
this.supr(g, e, f, d, "circle");
|
330 |
-
this.bindChangeEvent("center_changed");
|
331 |
-
this.bindChangeEvent("radius_changed")
|
332 |
-
},
|
333 |
-
pathToString: function() {
|
334 |
-
var d = this.overlay;
|
335 |
-
return d.getCenter().toUrlValue() + ";" + d.getRadius() + ",0"
|
336 |
-
}
|
337 |
-
});
|
338 |
-
a.Direction = a.PolyOverlay.extend({
|
339 |
-
initialize: function(g, e, f, d) {
|
340 |
-
this.supr(g, e, f, d, "direction")
|
341 |
-
},
|
342 |
-
edit: function() {
|
343 |
-
var d = this,
|
344 |
-
e = c("#intergeo_drctn_ppp");
|
345 |
-
e.find(".intergeo_ppp_frm").attr("data-position", d.position).attr("data-target", d.array);
|
346 |
-
e.find("#intergeo_ppp_drctn_from").val(d.html.find(".intergeo_tlbr_drctn_from").val());
|
347 |
-
e.find("#intergeo_ppp_drctn_to").val(d.html.find(".intergeo_tlbr_drctn_to").val());
|
348 |
-
e.find("#intergeo_ppp_drctn_mode").val(d.html.find(".intergeo_tlbr_drctn_mode").val());
|
349 |
-
e.fadeIn(150)
|
350 |
-
},
|
351 |
-
update: function(f) {
|
352 |
-
var d = this,
|
353 |
-
i = f.find("#intergeo_ppp_drctn_from").val(),
|
354 |
-
h = f.find("#intergeo_ppp_drctn_to").val(),
|
355 |
-
g = f.find("#intergeo_ppp_drctn_mode").val(),
|
356 |
-
e = {
|
357 |
-
origin: i,
|
358 |
-
destination: h,
|
359 |
-
travelMode: b.TravelMode[g] || b.TravelMode.DRIVING
|
360 |
-
};
|
361 |
-
d.map.directions.route(e, function(k, j) {
|
362 |
-
if (j == b.DirectionsStatus.OK) {
|
363 |
-
d.overlay.setDirections(k);
|
364 |
-
d.html.find(".intergeo_tlbr_direction_title_td").text(c("#intergeo_tlbr_drctn_ttl_tmpl").text().replaceByHash({
|
365 |
-
"%num%": d.position + 1,
|
366 |
-
"%from%": i,
|
367 |
-
"%to%": h,
|
368 |
-
"%mode%": f.find("#intergeo_ppp_drctn_mode > :selected").text()
|
369 |
-
}))
|
370 |
-
} else {
|
371 |
-
alert(intergeo_options.l10n.error.directions)
|
372 |
-
}
|
373 |
-
});
|
374 |
-
d.html.find(".intergeo_tlbr_drctn_from").val(i);
|
375 |
-
d.html.find(".intergeo_tlbr_drctn_to").val(h);
|
376 |
-
d.html.find(".intergeo_tlbr_drctn_mode").val(g)
|
377 |
-
}
|
378 |
-
})
|
379 |
-
})(jQuery, google.maps, intergeo.maps);
|
380 |
-
(function(d, c, b) {
|
381 |
-
var a;
|
382 |
-
String.prototype.replaceByHash = function(e) {
|
383 |
-
var f = this;
|
384 |
-
d.each(e, function(g, h) {
|
385 |
-
f = f.split(g).join(h)
|
386 |
-
});
|
387 |
-
return f
|
388 |
-
};
|
389 |
-
a = function(e, g) {
|
390 |
-
var f = this;
|
391 |
-
f.map = new c.Map(document.getElementById(e), g);
|
392 |
-
f.drawing = new c.drawing.DrawingManager({
|
393 |
-
drawingControl: false,
|
394 |
-
map: f.map,
|
395 |
-
circleOptions: {
|
396 |
-
editable: true
|
397 |
-
},
|
398 |
-
markerOptions: {
|
399 |
-
draggable: true
|
400 |
-
},
|
401 |
-
polygonOptions: {
|
402 |
-
editable: true
|
403 |
-
},
|
404 |
-
polylineOptions: {
|
405 |
-
editable: true
|
406 |
-
},
|
407 |
-
rectangleOptions: {
|
408 |
-
editable: true
|
409 |
-
}
|
410 |
-
});
|
411 |
-
f.directions = new c.DirectionsService();
|
412 |
-
f.geocoder = null;
|
413 |
-
f.traffic = null;
|
414 |
-
f.bicycling = null;
|
415 |
-
f.weather = null;
|
416 |
-
f.cloud = null;
|
417 |
-
f.panoramio = null;
|
418 |
-
f.adunit = null;
|
419 |
-
f.markers = [];
|
420 |
-
f.polyline = [];
|
421 |
-
f.polygon = [];
|
422 |
-
f.rectangle = [];
|
423 |
-
f.circle = [];
|
424 |
-
f.direction = [];
|
425 |
-
f.infowindow = null;
|
426 |
-
c.event.addListener(f.map, "center_changed", function() {
|
427 |
-
var h = f.map.getCenter();
|
428 |
-
d("#intergeo_map_lat").val(h.lat());
|
429 |
-
d("#intergeo_map_lng").val(h.lng())
|
430 |
-
});
|
431 |
-
c.event.addListener(f.map, "zoom_changed", function() {
|
432 |
-
d("#intergeo_map_zoom").val(f.map.getZoom())
|
433 |
-
});
|
434 |
-
c.event.addListener(f.drawing, "overlaycomplete", function(h) {
|
435 |
-
switch (h.type) {
|
436 |
-
case c.drawing.OverlayType.MARKER:
|
437 |
-
f._markerComplete(h);
|
438 |
-
break;
|
439 |
-
case c.drawing.OverlayType.CIRCLE:
|
440 |
-
f._polyComplete(h, "circle", b.Circle);
|
441 |
-
break;
|
442 |
-
case c.drawing.OverlayType.POLYGON:
|
443 |
-
f._polyComplete(h, "polygon", b.Polygon);
|
444 |
-
break;
|
445 |
-
case c.drawing.OverlayType.POLYLINE:
|
446 |
-
f._polyComplete(h, "polyline", b.Polyline);
|
447 |
-
break;
|
448 |
-
case c.drawing.OverlayType.RECTANGLE:
|
449 |
-
f._polyComplete(h, "rectangle", b.Rectangle);
|
450 |
-
break
|
451 |
-
}
|
452 |
-
});
|
453 |
-
f._initOverlays()
|
454 |
-
};
|
455 |
-
a.Styles = {
|
456 |
-
DEFAULT: [],
|
457 |
-
RED: [{
|
458 |
-
featureType: "all",
|
459 |
-
stylers: [{
|
460 |
-
hue: "#ff0000"
|
461 |
-
}]
|
462 |
-
}],
|
463 |
-
NIGHT: [{
|
464 |
-
featureType: "all",
|
465 |
-
stylers: [{
|
466 |
-
invert_lightness: "true"
|
467 |
-
}]
|
468 |
-
}],
|
469 |
-
BLUE: [{
|
470 |
-
featureType: "all",
|
471 |
-
stylers: [{
|
472 |
-
hue: "#0000b0"
|
473 |
-
}, {
|
474 |
-
invert_lightness: "true"
|
475 |
-
}, {
|
476 |
-
saturation: -30
|
477 |
-
}]
|
478 |
-
}],
|
479 |
-
GREYSCALE: [{
|
480 |
-
featureType: "all",
|
481 |
-
stylers: [{
|
482 |
-
saturation: -100
|
483 |
-
}, {
|
484 |
-
gamma: 0.5
|
485 |
-
}]
|
486 |
-
}],
|
487 |
-
NO_ROADS: [{
|
488 |
-
featureType: "road",
|
489 |
-
stylers: [{
|
490 |
-
visibility: "off"
|
491 |
-
}]
|
492 |
-
}],
|
493 |
-
MIXED: [{
|
494 |
-
featureType: "landscape",
|
495 |
-
stylers: [{
|
496 |
-
hue: "#00dd00"
|
497 |
-
}]
|
498 |
-
}, {
|
499 |
-
featureType: "road",
|
500 |
-
stylers: [{
|
501 |
-
hue: "#dd0000"
|
502 |
-
}]
|
503 |
-
}, {
|
504 |
-
featureType: "water",
|
505 |
-
stylers: [{
|
506 |
-
hue: "#000040"
|
507 |
-
}]
|
508 |
-
}, {
|
509 |
-
featureType: "poi.park",
|
510 |
-
stylers: [{
|
511 |
-
visibility: "off"
|
512 |
-
}]
|
513 |
-
}, {
|
514 |
-
featureType: "road.arterial",
|
515 |
-
stylers: [{
|
516 |
-
hue: "#ffff00"
|
517 |
-
}]
|
518 |
-
}, {
|
519 |
-
featureType: "road.local",
|
520 |
-
stylers: [{
|
521 |
-
visibility: "off"
|
522 |
-
}]
|
523 |
-
}],
|
524 |
-
CHILLED: [{
|
525 |
-
featureType: "road",
|
526 |
-
elementType: "geometry",
|
527 |
-
stylers: [{
|
528 |
-
visibility: "simplified"
|
529 |
-
}]
|
530 |
-
}, {
|
531 |
-
featureType: "road.arterial",
|
532 |
-
stylers: [{
|
533 |
-
hue: 149
|
534 |
-
}, {
|
535 |
-
saturation: -78
|
536 |
-
}, {
|
537 |
-
lightness: 0
|
538 |
-
}]
|
539 |
-
}, {
|
540 |
-
featureType: "road.highway",
|
541 |
-
stylers: [{
|
542 |
-
hue: -31
|
543 |
-
}, {
|
544 |
-
saturation: -40
|
545 |
-
}, {
|
546 |
-
lightness: 2.8
|
547 |
-
}]
|
548 |
-
}, {
|
549 |
-
featureType: "poi",
|
550 |
-
elementType: "label",
|
551 |
-
stylers: [{
|
552 |
-
visibility: "off"
|
553 |
-
}]
|
554 |
-
}, {
|
555 |
-
featureType: "landscape",
|
556 |
-
stylers: [{
|
557 |
-
hue: 163
|
558 |
-
}, {
|
559 |
-
saturation: -26
|
560 |
-
}, {
|
561 |
-
lightness: -1.1
|
562 |
-
}]
|
563 |
-
}, {
|
564 |
-
featureType: "transit",
|
565 |
-
stylers: [{
|
566 |
-
visibility: "off"
|
567 |
-
}]
|
568 |
-
}, {
|
569 |
-
featureType: "water",
|
570 |
-
stylers: [{
|
571 |
-
hue: 3
|
572 |
-
}, {
|
573 |
-
saturation: -24.24
|
574 |
-
}, {
|
575 |
-
lightness: -38.57
|
576 |
-
}]
|
577 |
-
}]
|
578 |
-
};
|
579 |
-
a.prototype = {
|
580 |
-
_initOverlays: function() {
|
581 |
-
var e = this;
|
582 |
-
d(".intergeo_tlbr_marker").each(function(f, i) {
|
583 |
-
var h = d(i),
|
584 |
-
g = h.find(".intergeo_tlbr_marker_location").val().split(",");
|
585 |
-
e.markers.push(new b.Marker(e, new c.Marker({
|
586 |
-
position: new c.LatLng(parseFloat(g[0]), parseFloat(g[1])),
|
587 |
-
map: e.map,
|
588 |
-
title: h.find(".intergeo_tlbr_marker_title").val(),
|
589 |
-
icon: h.find(".intergeo_tlbr_marker_icon").val(),
|
590 |
-
draggable: true
|
591 |
-
}), h, f))
|
592 |
-
});
|
593 |
-
d(".intergeo_tlbr_polyline").each(function(f, j) {
|
594 |
-
var i = d(j),
|
595 |
-
g = d.trim(i.find(".intergeo_tlbr_polyline_color").val()),
|
596 |
-
h = parseFloat(i.find(".intergeo_tlbr_polyline_opacity").val()),
|
597 |
-
k = parseInt(i.find(".intergeo_tlbr_polyline_weight").val());
|
598 |
-
e.polyline.push(new b.Polyline(e, new c.Polyline({
|
599 |
-
map: e.map,
|
600 |
-
path: b.PolyOverlay.stringToPath(i, ".intergeo_tlbr_polyline_path"),
|
601 |
-
editable: true,
|
602 |
-
strokeColor: g.length == 0 ? "#000000" : g,
|
603 |
-
strokeOpacity: isNaN(h) ? 1 : h,
|
604 |
-
strokeWeight: isNaN(k) ? 3 : k
|
605 |
-
}), i, f))
|
606 |
-
});
|
607 |
-
d(".intergeo_tlbr_polygon").each(function(f, i) {
|
608 |
-
var h = d(i),
|
609 |
-
l = d.trim(h.find(".intergeo_tlbr_polygon_fill_color").val()),
|
610 |
-
g = parseFloat(h.find(".intergeo_tlbr_polygon_fill_opacity").val()),
|
611 |
-
k = d.trim(h.find(".intergeo_tlbr_polygon_stroke_color").val()),
|
612 |
-
m = parseFloat(h.find(".intergeo_tlbr_polygon_stroke_opacity").val()),
|
613 |
-
f = d.trim(h.find(".intergeo_tlbr_plygon_position").val()),
|
614 |
-
j = parseInt(h.find(".intergeo_tlbr_polygon_weight").val());
|
615 |
-
e.polygon.push(new b.Polygon(e, new c.Polygon({
|
616 |
-
map: e.map,
|
617 |
-
path: b.PolyOverlay.stringToPath(h, ".intergeo_tlbr_polygon_path"),
|
618 |
-
editable: true,
|
619 |
-
fillColor: l.length == 0 ? "#000000" : l,
|
620 |
-
fillOpacity: isNaN(g) ? 0.3 : g,
|
621 |
-
strokeColor: k.length == 0 ? "#000000" : k,
|
622 |
-
strokeOpacity: isNaN(m) ? 1 : m,
|
623 |
-
strokePosition: c.StrokePosition[f] || c.StrokePosition.CENTER,
|
624 |
-
strokeWeight: isNaN(j) ? 3 : j
|
625 |
-
}), h, f))
|
626 |
-
});
|
627 |
-
d(".intergeo_tlbr_rectangle").each(function(f, i) {
|
628 |
-
var h = d(i),
|
629 |
-
l = d.trim(h.find(".intergeo_tlbr_rectangle_fill_color").val()),
|
630 |
-
g = parseFloat(h.find(".intergeo_tlbr_rectangle_fill_opacity").val()),
|
631 |
-
k = d.trim(h.find(".intergeo_tlbr_rectangle_stroke_color").val()),
|
632 |
-
m = parseFloat(h.find(".intergeo_tlbr_rectangle_stroke_opacity").val()),
|
633 |
-
f = d.trim(h.find(".intergeo_tlbr_rectangle_position").val()),
|
634 |
-
j = parseInt(h.find(".intergeo_tlbr_rectangle_weight").val());
|
635 |
-
e.rectangle.push(new b.Rectangle(e, new c.Rectangle({
|
636 |
-
map: e.map,
|
637 |
-
bounds: b.PolyOverlay.stringToBounds(h, ".intergeo_tlbr_rectangle_path"),
|
638 |
-
editable: true,
|
639 |
-
fillColor: l.length == 0 ? "#000000" : l,
|
640 |
-
fillOpacity: isNaN(g) ? 0.3 : g,
|
641 |
-
strokeColor: k.length == 0 ? "#000000" : k,
|
642 |
-
strokeOpacity: isNaN(m) ? 1 : m,
|
643 |
-
strokePosition: c.StrokePosition[f] || c.StrokePosition.CENTER,
|
644 |
-
strokeWeight: isNaN(j) ? 3 : j
|
645 |
-
}), h, f))
|
646 |
-
});
|
647 |
-
d(".intergeo_tlbr_circle").each(function(m, j) {
|
648 |
-
var l = d(j),
|
649 |
-
p = d.trim(l.find(".intergeo_tlbr_circle_fill_color").val()),
|
650 |
-
i = parseFloat(l.find(".intergeo_tlbr_circle_fill_opacity").val()),
|
651 |
-
h = d.trim(l.find(".intergeo_tlbr_circle_stroke_color").val()),
|
652 |
-
g = parseFloat(l.find(".intergeo_tlbr_circle_stroke_opacity").val()),
|
653 |
-
o = d.trim(l.find(".intergeo_tlbr_circle_position").val()),
|
654 |
-
k = parseInt(l.find(".intergeo_tlbr_circle_weight").val()),
|
655 |
-
q = d.trim(l.find(".intergeo_tlbr_circle_path").val()).split(";"),
|
656 |
-
f = q[0].split(","),
|
657 |
-
n = q[1].split(",");
|
658 |
-
e.circle.push(new b.Circle(e, new c.Circle({
|
659 |
-
map: e.map,
|
660 |
-
center: new c.LatLng(f[0], f[1]),
|
661 |
-
radius: parseFloat(n[0]),
|
662 |
-
editable: true,
|
663 |
-
fillColor: p.length == 0 ? "#000000" : p,
|
664 |
-
fillOpacity: isNaN(i) ? 0.3 : i,
|
665 |
-
strokeColor: h.length == 0 ? "#000000" : h,
|
666 |
-
strokeOpacity: isNaN(g) ? 1 : g,
|
667 |
-
strokePosition: c.StrokePosition[o] || c.StrokePosition.CENTER,
|
668 |
-
strokeWeight: isNaN(k) ? 3 : k
|
669 |
-
}), l, m))
|
670 |
-
});
|
671 |
-
d(".intergeo_tlbr_drctn").each(function(f, h) {
|
672 |
-
var g = d(h),
|
673 |
-
l = d.trim(g.find(".intergeo_tlbr_drctn_from").val()),
|
674 |
-
k = d.trim(g.find(".intergeo_tlbr_drctn_to").val()),
|
675 |
-
j = d.trim(g.find(".intergeo_tlbr_drctn_mode").val()),
|
676 |
-
i = {
|
677 |
-
origin: l,
|
678 |
-
destination: k,
|
679 |
-
travelMode: c.TravelMode[j] || c.TravelMode.DRIVING
|
680 |
-
};
|
681 |
-
e.directions.route(i, function(n, m) {
|
682 |
-
if (m == c.DirectionsStatus.OK) {
|
683 |
-
var o = new b.Direction(e, new c.DirectionsRenderer({
|
684 |
-
map: e.map,
|
685 |
-
directions: n
|
686 |
-
}), g, f);
|
687 |
-
e.direction.push(o)
|
688 |
-
} else {
|
689 |
-
g.remove();
|
690 |
-
e.direction.push(null)
|
691 |
-
}
|
692 |
-
})
|
693 |
-
})
|
694 |
-
},
|
695 |
-
_markerComplete: function(i) {
|
696 |
-
var g = this,
|
697 |
-
e = g.markers.length,
|
698 |
-
h = d(d("#intergeo_tlbr_marker_tmpl").html().replaceByHash({
|
699 |
-
"%pos%": e,
|
700 |
-
"%num%": e + 1
|
701 |
-
})),
|
702 |
-
f = new b.Marker(g, i.overlay, h, e);
|
703 |
-
h.find(".intergeo_tlbr_marker_location").val(i.overlay.getPosition().toUrlValue());
|
704 |
-
d("#intergeo_tlbr_markers").append(h);
|
705 |
-
g.markers.push(f);
|
706 |
-
i.overlay.setDraggable(true)
|
707 |
-
},
|
708 |
-
_polyComplete: function(j, i, h) {
|
709 |
-
var f = this,
|
710 |
-
e = f[i].length,
|
711 |
-
g = d(d("#intergeo_tlbr_" + i + "_tmpl").html().replaceByHash({
|
712 |
-
"%pos%": e,
|
713 |
-
"%num%": e + 1
|
714 |
-
})),
|
715 |
-
k = new h(f, j.overlay, g, e);
|
716 |
-
f[i].push(k);
|
717 |
-
g.find(".intergeo_tlbr_" + i + "_path").val(k.pathToString());
|
718 |
-
d("#intergeo_tlbr_" + i + "s").append(g)
|
719 |
-
},
|
720 |
-
_normalize: function(h) {
|
721 |
-
var g = function(j) {
|
722 |
-
return j === "1"
|
723 |
-
},
|
724 |
-
f = function(j, k, l) {
|
725 |
-
return k[j] || l
|
726 |
-
},
|
727 |
-
e = function(j) {
|
728 |
-
return f(j, c.ControlPosition, 0)
|
729 |
-
},
|
730 |
-
i = {
|
731 |
-
minZoom: parseInt,
|
732 |
-
maxZoom: parseInt,
|
733 |
-
scrollwheel: g,
|
734 |
-
draggable: g,
|
735 |
-
mapTypeId: function(j) {
|
736 |
-
return c.MapTypeId[j] || c.MapTypeId.ROADMAP
|
737 |
-
},
|
738 |
-
mapTypeControl: g,
|
739 |
-
mapTypeControlOptions: {
|
740 |
-
position: e,
|
741 |
-
mapTypeIds: function(j) {
|
742 |
-
var k = [];
|
743 |
-
d.each(j, function(l, m) {
|
744 |
-
if (c.MapTypeId[m] !== undefined) {
|
745 |
-
k.push(c.MapTypeId[m])
|
746 |
-
}
|
747 |
-
});
|
748 |
-
return k
|
749 |
-
},
|
750 |
-
style: function(j) {
|
751 |
-
return f(j, c.MapTypeControlStyle, c.MapTypeControlStyle.DEFAULT)
|
752 |
-
}
|
753 |
-
},
|
754 |
-
overviewMapControl: g,
|
755 |
-
overviewMapControlOptions: {
|
756 |
-
opened: g
|
757 |
-
},
|
758 |
-
panControl: g,
|
759 |
-
panControlOptions: {
|
760 |
-
position: e
|
761 |
-
},
|
762 |
-
rotateControl: g,
|
763 |
-
rotateControlOptions: {
|
764 |
-
position: e
|
765 |
-
},
|
766 |
-
scaleControl: g,
|
767 |
-
scaleControlOptions: {
|
768 |
-
position: e
|
769 |
-
},
|
770 |
-
streetViewControl: g,
|
771 |
-
streetViewControlOptions: {
|
772 |
-
position: e
|
773 |
-
},
|
774 |
-
zoomControl: g,
|
775 |
-
zoomControlOptions: {
|
776 |
-
position: e,
|
777 |
-
style: function(j) {
|
778 |
-
return f(j, c.ZoomControlStyle, c.ZoomControlStyle.DEFAULT)
|
779 |
-
}
|
780 |
-
}
|
781 |
-
};
|
782 |
-
return d.each(h, function(j, k) {
|
783 |
-
if (i[j] === undefined) {
|
784 |
-
delete h[j]
|
785 |
-
} else {
|
786 |
-
if (typeof k === "string") {
|
787 |
-
h[j] = i[j](k)
|
788 |
-
} else {
|
789 |
-
d.each(k, function(m, l) {
|
790 |
-
if (i[j][m] === undefined) {
|
791 |
-
delete h[j][m]
|
792 |
-
} else {
|
793 |
-
h[j][m] = i[j][m](l)
|
794 |
-
}
|
795 |
-
})
|
796 |
-
}
|
797 |
-
}
|
798 |
-
})
|
799 |
-
},
|
800 |
-
_traffic: function(f) {
|
801 |
-
var e = this;
|
802 |
-
if (f.layer.traffic == 1) {
|
803 |
-
if (!e.traffic) {
|
804 |
-
e.traffic = new c.TrafficLayer()
|
805 |
-
}
|
806 |
-
e.traffic.setMap(e.map)
|
807 |
-
} else {
|
808 |
-
if (e.traffic) {
|
809 |
-
e.traffic.setMap(null)
|
810 |
-
}
|
811 |
-
}
|
812 |
-
},
|
813 |
-
_bicycling: function(f) {
|
814 |
-
var e = this;
|
815 |
-
if (f.layer.bicycling == 1) {
|
816 |
-
if (!e.bicycling) {
|
817 |
-
e.bicycling = new c.BicyclingLayer()
|
818 |
-
}
|
819 |
-
e.bicycling.setMap(e.map)
|
820 |
-
} else {
|
821 |
-
if (e.bicycling) {
|
822 |
-
e.bicycling.setMap(null)
|
823 |
-
}
|
824 |
-
}
|
825 |
-
},
|
826 |
-
_weather: function(f) {
|
827 |
-
var e = this;
|
828 |
-
if (f.layer.weather == 1) {
|
829 |
-
if (!e.weather) {
|
830 |
-
e.weather = new c.weather.WeatherLayer({})
|
831 |
-
}
|
832 |
-
e.weather.setMap(e.map);
|
833 |
-
e.weather.setOptions({
|
834 |
-
temperatureUnits: c.weather.TemperatureUnit[f.weather.temperatureUnits] || c.weather.TemperatureUnit.CELSIUS,
|
835 |
-
windSpeedUnits: c.weather.WindSpeedUnit[f.weather.windSpeedUnits] || c.weather.WindSpeedUnit.METERS_PER_SECOND
|
836 |
-
})
|
837 |
-
} else {
|
838 |
-
if (e.weather) {
|
839 |
-
e.weather.setMap(null)
|
840 |
-
}
|
841 |
-
}
|
842 |
-
},
|
843 |
-
_cloud: function(f) {
|
844 |
-
var e = this;
|
845 |
-
if (f.layer.cloud == 1) {
|
846 |
-
if (!e.cloud) {
|
847 |
-
e.cloud = new c.weather.CloudLayer()
|
848 |
-
}
|
849 |
-
e.cloud.setMap(e.map)
|
850 |
-
} else {
|
851 |
-
if (e.cloud) {
|
852 |
-
e.cloud.setMap(null)
|
853 |
-
}
|
854 |
-
}
|
855 |
-
},
|
856 |
-
_panoramio: function(f) {
|
857 |
-
var e = this;
|
858 |
-
if (f.layer.panoramio == 1) {
|
859 |
-
if (!e.panoramio) {
|
860 |
-
e.panoramio = new c.panoramio.PanoramioLayer({})
|
861 |
-
}
|
862 |
-
e.panoramio.setMap(e.map);
|
863 |
-
e.panoramio.setTag(f.panoramio.tag);
|
864 |
-
e.panoramio.setUserId(f.panoramio.userId)
|
865 |
-
} else {
|
866 |
-
if (e.panoramio) {
|
867 |
-
e.panoramio.setMap(null)
|
868 |
-
}
|
869 |
-
}
|
870 |
-
},
|
871 |
-
_adsense: function(f) {
|
872 |
-
var e = this;
|
873 |
-
if (f.layer.adsense == 1 && intergeo_options.adsense.publisher_id && d.trim(intergeo_options.adsense.publisher_id) != "") {
|
874 |
-
if (!e.adunit) {
|
875 |
-
e.adunit = new c.adsense.AdUnit(document.createElement("div"), {
|
876 |
-
visible: true,
|
877 |
-
publisherId: intergeo_options.adsense.publisher_id
|
878 |
-
})
|
879 |
-
}
|
880 |
-
e.adunit.setMap(this.map);
|
881 |
-
e.adunit.setBackgroundColor(f.adsense.backgroundColor);
|
882 |
-
e.adunit.setBorderColor(f.adsense.borderColor);
|
883 |
-
e.adunit.setUrlColor(f.adsense.urlColor);
|
884 |
-
e.adunit.setTitleColor(f.adsense.titleColor);
|
885 |
-
e.adunit.setTextColor(f.adsense.textColor);
|
886 |
-
if (c.ControlPosition[f.adsense.position] !== undefined) {
|
887 |
-
e.adunit.setPosition(c.ControlPosition[f.adsense.position])
|
888 |
-
}
|
889 |
-
if (c.adsense.AdFormat[f.adsense.format]) {
|
890 |
-
e.adunit.setFormat(c.adsense.AdFormat[f.adsense.format])
|
891 |
-
}
|
892 |
-
} else {
|
893 |
-
if (e.adunit) {
|
894 |
-
e.adunit.setMap(null)
|
895 |
-
}
|
896 |
-
}
|
897 |
-
},
|
898 |
-
_pro: function(f){
|
899 |
-
var e = this;
|
900 |
-
if(window._proFeatures){
|
901 |
-
_proFeatures(f, e);
|
902 |
-
}
|
903 |
-
},
|
904 |
-
createDirection: function() {
|
905 |
-
var f = this,
|
906 |
-
e = d("#intergeo_drctn_ppp"),
|
907 |
-
g = e.find(".intergeo_ppp_frm");
|
908 |
-
g.bind("submit.firsttime", function() {
|
909 |
-
var h, i, j, l, k;
|
910 |
-
if (g.attr("data-position") != "") {
|
911 |
-
return false
|
912 |
-
}
|
913 |
-
h = f.direction.length;
|
914 |
-
l = d.trim(g.find("#intergeo_ppp_drctn_from").val());
|
915 |
-
k = d.trim(g.find("#intergeo_ppp_drctn_to").val());
|
916 |
-
if (l == "" || k == "") {
|
917 |
-
return false
|
918 |
-
}
|
919 |
-
j = d(d("#intergeo_tlbr_drctn_tmpl").html().replaceByHash({
|
920 |
-
"%pos%": h,
|
921 |
-
"%num%": h + 1,
|
922 |
-
"%from%": l,
|
923 |
-
"%to%": k,
|
924 |
-
"%mode%": d.trim(g.find("#intergeo_ppp_drctn_mode option:selected").text())
|
925 |
-
}));
|
926 |
-
i = new b.Direction(f, new c.DirectionsRenderer({
|
927 |
-
map: f.map
|
928 |
-
}), j, h);
|
929 |
-
d("#intergeo_tlbr_drctns").append(j);
|
930 |
-
f.direction.push(i);
|
931 |
-
i.update(g);
|
932 |
-
g.unbind("submit.firsttime");
|
933 |
-
return false
|
934 |
-
});
|
935 |
-
g.find('select,input[type!="submit"]').val("");
|
936 |
-
g.attr("data-position", "");
|
937 |
-
e.fadeIn(150)
|
938 |
-
},
|
939 |
-
updateOverlays: function() {
|
940 |
-
var e = this;
|
941 |
-
d.each(e.polyline, function(g, f) {
|
942 |
-
if (f) {
|
943 |
-
d('.intergeo_tlbr_polyline_path[data-position="' + g + '"]').val(f.pathToString())
|
944 |
-
}
|
945 |
-
});
|
946 |
-
d.each(e.polygon, function(g, f) {
|
947 |
-
if (f) {
|
948 |
-
d('.intergeo_tlbr_polygon_path[data-position="' + g + '"]').val(f.pathToString())
|
949 |
-
}
|
950 |
-
})
|
951 |
-
},
|
952 |
-
preview: function() {
|
953 |
-
var f = this,
|
954 |
-
g = {};
|
955 |
-
d.each(d("#intergeo_frm").serializeArray(), function() {
|
956 |
-
var l = /\[\]$/,
|
957 |
-
m = g,
|
958 |
-
j = this.name.replace(l, "").split("_"),
|
959 |
-
e = j.pop(),
|
960 |
-
k = this.value || "",
|
961 |
-
i = l.test(this.name);
|
962 |
-
d.each(j, function(n, o) {
|
963 |
-
if (m[o] === undefined) {
|
964 |
-
m[o] = {}
|
965 |
-
}
|
966 |
-
m = m[o]
|
967 |
-
});
|
968 |
-
if (m[e] !== undefined) {
|
969 |
-
if (i) {
|
970 |
-
m[e].push(k)
|
971 |
-
} else {
|
972 |
-
m[e] = k
|
973 |
-
}
|
974 |
-
} else {
|
975 |
-
m[e] = i ? [k] : k
|
976 |
-
}
|
977 |
-
});
|
978 |
-
f._normalize(g.map);
|
979 |
-
if (d("#intergeo_map_lock_preview").is(":checked")) {
|
980 |
-
g.map.draggable = false;
|
981 |
-
g.map.scrollwheel = false
|
982 |
-
}
|
983 |
-
f.map.setOptions(g.map);
|
984 |
-
if (g.styles && g.styles.type) {
|
985 |
-
if (g.styles.type == -1) {
|
986 |
-
try {
|
987 |
-
f.map.setOptions({
|
988 |
-
styles: d.parseJSON(g.styles.custom || "[]")
|
989 |
-
})
|
990 |
-
} catch (h) {
|
991 |
-
alert(intergeo_options.l10n.error.style)
|
992 |
-
}
|
993 |
-
} else {
|
994 |
-
if (a.Styles[g.styles.type] !== undefined) {
|
995 |
-
f.map.setOptions({
|
996 |
-
styles: a.Styles[g.styles.type]
|
997 |
-
})
|
998 |
-
}
|
999 |
-
}
|
1000 |
-
}
|
1001 |
-
f._traffic(g);
|
1002 |
-
f._bicycling(g);
|
1003 |
-
f._weather(g);
|
1004 |
-
f._cloud(g);
|
1005 |
-
f._panoramio(g);
|
1006 |
-
f._adsense(g);
|
1007 |
-
f._pro(g);
|
1008 |
-
}
|
1009 |
-
};
|
1010 |
-
d(document).ready(function() {
|
1011 |
-
var g, f, e;
|
1012 |
-
f = new a("intergeo_canvas", {
|
1013 |
-
center: new c.LatLng(parseFloat(d("#intergeo_map_lat").val()), parseFloat(d("#intergeo_map_lng").val())),
|
1014 |
-
zoom: parseInt(d("#intergeo_map_zoom").val()),
|
1015 |
-
minZoom: 0,
|
1016 |
-
maxZoom: 19,
|
1017 |
-
mapTypeId: c.MapTypeId.ROADMAP
|
1018 |
-
});
|
1019 |
-
var xxxx = window.dialogArguments || opener || parent || top;
|
1020 |
-
xxxx.intergeo_maps_current = f;
|
1021 |
-
e = d("#intergeo_frm");
|
1022 |
-
e.find("input[name], select[name], textarea[name]").not("input[type='file']").change(function() {
|
1023 |
-
f.preview()
|
1024 |
-
});
|
1025 |
-
e.find(".intergeo_tlbr_cntrl_onkeyup").keyup(function() {
|
1026 |
-
f.preview()
|
1027 |
-
});
|
1028 |
-
e.submit(function() {
|
1029 |
-
f.updateOverlays();
|
1030 |
-
return true
|
1031 |
-
});
|
1032 |
-
f.preview();
|
1033 |
-
d("#intergeo_map_lock_preview").change(function() {
|
1034 |
-
var h = d(this).is(":checked");
|
1035 |
-
f.map.setOptions({
|
1036 |
-
draggable: !h,
|
1037 |
-
scrollwheel: !h
|
1038 |
-
})
|
1039 |
-
});
|
1040 |
-
d(".intergeo_tlbr_ul_li_h3").click(function() {
|
1041 |
-
var h = d(this).parent();
|
1042 |
-
if (h.hasClass("open")) {
|
1043 |
-
h.removeClass("open")
|
1044 |
-
} else {
|
1045 |
-
d(".intergeo_tlbr_ul_li.open").removeClass("open");
|
1046 |
-
h.addClass("open")
|
1047 |
-
}
|
1048 |
-
});
|
1049 |
-
d(".intergeo_tlbr_cntrl_more_info").click(function() {
|
1050 |
-
d(this).parent().nextAll(".intergeo_tlbr_cntrl_dsc:first").toggle();
|
1051 |
-
return false
|
1052 |
-
});
|
1053 |
-
d(".intergeo_tlbr_cntrl_ttl").click(function() {
|
1054 |
-
d(this).toggleClass("open").parent().find(".intergeo_tlbr_cntrl_items").toggle();
|
1055 |
-
return false
|
1056 |
-
});
|
1057 |
-
d(".color-picker-hex").wpColorPicker({
|
1058 |
-
change: function() {
|
1059 |
-
clearTimeout(g);
|
1060 |
-
g = setTimeout(function() {
|
1061 |
-
f.preview()
|
1062 |
-
}, 500)
|
1063 |
-
}
|
1064 |
-
});
|
1065 |
-
d(".intergeo_tlbr_clr").wpColorPicker();
|
1066 |
-
d("#intergeo_show_map_center").change(function() {
|
1067 |
-
d("#intergeo_canvas_center").toggle();
|
1068 |
-
d.post(intergeo_options.ajaxurl, {
|
1069 |
-
action: "intergeo_show_map_center",
|
1070 |
-
nonce: intergeo_options.nonce || "",
|
1071 |
-
status: d(this).is(":checked") ? 1 : 0
|
1072 |
-
})
|
1073 |
-
});
|
1074 |
-
d("#intergeo_tlbr_drawing_tools").change(function() {
|
1075 |
-
f.drawing.setDrawingMode(null);
|
1076 |
-
f.drawing.setOptions({
|
1077 |
-
drawingControl: d(this).is(":checked")
|
1078 |
-
})
|
1079 |
-
});
|
1080 |
-
d(".intergeo_ppp_cls").click(function() {
|
1081 |
-
d(this).parents(".intergeo_ppp").fadeOut(150);
|
1082 |
-
return false
|
1083 |
-
});
|
1084 |
-
d("#intergeo_go_to_address").click(function() {
|
1085 |
-
d("#intergeo_address_ppp").fadeIn(150);
|
1086 |
-
return false
|
1087 |
-
});
|
1088 |
-
d("#intergeo_address_ppp .intergeo_ppp_frm").submit(function() {
|
1089 |
-
var h = d(this),
|
1090 |
-
j = h.find(".intergeo_ppp_txt"),
|
1091 |
-
i = d.trim(j.val());
|
1092 |
-
if (i != "") {
|
1093 |
-
if (!f.geocoder) {
|
1094 |
-
f.geocoder = new c.Geocoder()
|
1095 |
-
}
|
1096 |
-
f.geocoder.geocode({
|
1097 |
-
address: i
|
1098 |
-
}, function(l, k) {
|
1099 |
-
if (k == c.GeocoderStatus.OK) {
|
1100 |
-
f.map.setCenter(l[0].geometry.location)
|
1101 |
-
}
|
1102 |
-
})
|
1103 |
-
}
|
1104 |
-
j.val("");
|
1105 |
-
h.parents(".intergeo_ppp").fadeOut(150);
|
1106 |
-
return false
|
1107 |
-
});
|
1108 |
-
d(".intregeo_ppp_frm_overlay").submit(function() {
|
1109 |
-
var j = d(this),
|
1110 |
-
h = parseInt(j.attr("data-position")),
|
1111 |
-
i = j.attr("data-target");
|
1112 |
-
j.parents(".intergeo_ppp").fadeOut(150);
|
1113 |
-
if (f[i] && f[i][h]) {
|
1114 |
-
f[i][h].update(j)
|
1115 |
-
}
|
1116 |
-
return false
|
1117 |
-
});
|
1118 |
-
d("#intergeo_tlbr_new_drctn").click(function() {
|
1119 |
-
f.createDirection();
|
1120 |
-
return false
|
1121 |
-
})
|
1122 |
-
})
|
1123 |
})(jQuery, google.maps, intergeo.maps);
|
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) {
|
35 |
+
return function() {
|
36 |
+
var o = this.supr;
|
37 |
+
this.supr = f[e][l];
|
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 |
+
}
|
56 |
+
|
57 |
+
function j(m, p) {
|
58 |
+
function t() {}
|
59 |
+
t[e] = this[e];
|
60 |
+
var q = this,
|
61 |
+
s = new t(),
|
62 |
+
n = g(m),
|
63 |
+
f = n ? m : this,
|
64 |
+
l = n ? {} : m;
|
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) {
|
109 |
+
var e = this;
|
110 |
+
e.map = h;
|
111 |
+
e.overlay = f;
|
112 |
+
e.html = g;
|
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 |
+
a.Marker = a.Overlay.extend({
|
130 |
+
initialize: function(i, f, g, d) {
|
131 |
+
var e = this,
|
132 |
+
h = new b.InfoWindow();
|
133 |
+
e.supr(i, f, g, d, "markers");
|
134 |
+
g.hover(function() {
|
135 |
+
if (i.markers[d]) {
|
136 |
+
f.setAnimation(b.Animation.BOUNCE)
|
137 |
+
}
|
138 |
+
}, function() {
|
139 |
+
if (i.markers[d]) {
|
140 |
+
f.setAnimation(null)
|
141 |
+
}
|
142 |
+
});
|
143 |
+
e.html.find(".intergeo_tlbr_actn_edit").click(function() {
|
144 |
+
var j = c("#intergeo_marker_ppp");
|
145 |
+
j.find(".intergeo_ppp_frm").attr("data-position", d);
|
146 |
+
j.find(".intergeo_tlbr_marker_title").val(g.find(".intergeo_tlbr_marker_title").val());
|
147 |
+
j.find(".intergeo_tlbr_marker_icon").val(g.find(".intergeo_tlbr_marker_icon").val());
|
148 |
+
j.find(".intergeo_tlbr_marker_info").val(g.find(".intergeo_tlbr_marker_info").val());
|
149 |
+
j.fadeIn(150)
|
150 |
+
});
|
151 |
+
b.event.addListener(f, "dragend", function(j) {
|
152 |
+
g.find(".intergeo_tlbr_marker_location").val(j.latLng.toUrlValue())
|
153 |
+
});
|
154 |
+
b.event.addListener(f, "click", function() {
|
155 |
+
var j = c.trim(g.find(".intergeo_tlbr_marker_info").val());
|
156 |
+
if (j.length) {
|
157 |
+
if (i.infowindow) {
|
158 |
+
i.infowindow.close()
|
159 |
+
}
|
160 |
+
h.setContent(j);
|
161 |
+
h.open(i.map, f);
|
162 |
+
i.infowindow = h
|
163 |
+
}
|
164 |
+
})
|
165 |
+
},
|
166 |
+
update: function(g) {
|
167 |
+
var d = this,
|
168 |
+
e = {},
|
169 |
+
i = c.trim(g.find(".intergeo_tlbr_marker_title").val()),
|
170 |
+
f = c.trim(g.find(".intergeo_tlbr_marker_icon").val()),
|
171 |
+
h = c.trim(g.find(".intergeo_tlbr_marker_info").val()),
|
172 |
+
j = d.html.find(".intergeo_tlbr_marker_title_td");
|
173 |
+
e.title = i;
|
174 |
+
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)) {
|
175 |
+
e.icon = f
|
176 |
+
} else {
|
177 |
+
e.icon = null
|
178 |
+
}
|
179 |
+
d.html.find(".intergeo_tlbr_marker_title").val(i);
|
180 |
+
d.html.find(".intergeo_tlbr_marker_icon").val(f);
|
181 |
+
d.html.find(".intergeo_tlbr_marker_info").val(h);
|
182 |
+
d.overlay.setOptions(e);
|
183 |
+
if (i != "") {
|
184 |
+
j.text(i)
|
185 |
+
} else {
|
186 |
+
j.text("#" + (d.position + 1) + " " + intergeo_options.l10n.marker)
|
187 |
+
}
|
188 |
+
}
|
189 |
+
});
|
190 |
+
a.PolyOverlay = a.Overlay.extend({
|
191 |
+
initialize: function(h, f, g, d, i) {
|
192 |
+
var e = this;
|
193 |
+
e.supr(h, f, g, d, i);
|
194 |
+
e.html.find(".intergeo_tlbr_actn_edit").click(function() {
|
195 |
+
e.edit();
|
196 |
+
return false
|
197 |
+
})
|
198 |
+
},
|
199 |
+
pathToString: function() {
|
200 |
+
var d = [];
|
201 |
+
this.overlay.getPath().forEach(function(e) {
|
202 |
+
d.push(e.toUrlValue())
|
203 |
+
});
|
204 |
+
return d.join(";")
|
205 |
+
},
|
206 |
+
bindChangeEvent: function(e) {
|
207 |
+
var d = this;
|
208 |
+
b.event.addListener(d.overlay, e, function() {
|
209 |
+
d.html.find(".intergeo_tlbr_" + d.array + "_path").val(d.pathToString())
|
210 |
+
})
|
211 |
+
},
|
212 |
+
edit: function() {
|
213 |
+
var d = this,
|
214 |
+
e = c("#intergeo_polyoverlay_ppp"),
|
215 |
+
g = c.trim(d.html.find(".intergeo_tlbr_" + d.array + "_fill_color").val()),
|
216 |
+
f = c.trim(d.html.find(".intergeo_tlbr_" + d.array + "_stroke_color").val());
|
217 |
+
e.find(".intergeo_ppp_frm").attr("data-position", d.position).attr("data-target", d.array);
|
218 |
+
if (!g) {
|
219 |
+
g = "#000000"
|
220 |
+
}
|
221 |
+
e.find(".intergeo_tlbr_polyoverlay_fill_color").val(g).wpColorPicker("color", g);
|
222 |
+
e.find(".intergeo_tlbr_polyoverlay_fill_opacity").val(d.html.find(".intergeo_tlbr_" + d.array + "_fill_opacity").val());
|
223 |
+
if (!f) {
|
224 |
+
f = "#000000"
|
225 |
+
}
|
226 |
+
e.find(".intergeo_tlbr_polyoverlay_stroke_color").val(f).wpColorPicker("color", f);
|
227 |
+
e.find(".intergeo_tlbr_polyoverlay_weight").val(d.html.find(".intergeo_tlbr_" + d.array + "_weight").val());
|
228 |
+
e.find(".intergeo_tlbr_polyoverlay_stroke_opacity").val(d.html.find(".intergeo_tlbr_" + d.array + "_stroke_opacity").val());
|
229 |
+
e.find(".intergeo_tlbr_polyoverlay_position").val(d.html.find(".intergeo_tlbr_" + d.array + "_position").val());
|
230 |
+
e.fadeIn(150)
|
231 |
+
},
|
232 |
+
update: function(e) {
|
233 |
+
var n = this,
|
234 |
+
o = {},
|
235 |
+
k = e.find(".intergeo_tlbr_polyoverlay_position").val(),
|
236 |
+
j = parseInt(e.find(".intergeo_tlbr_polyoverlay_weight").val()),
|
237 |
+
i = !isNaN(j) && 0 <= j,
|
238 |
+
f = parseFloat(e.find(".intergeo_tlbr_polyoverlay_stroke_opacity").val()),
|
239 |
+
d = !isNaN(f) && 0 <= f && f <= 1,
|
240 |
+
h = c.trim(e.find(".intergeo_tlbr_polyoverlay_stroke_color").val()),
|
241 |
+
g = parseFloat(e.find(".intergeo_tlbr_polyoverlay_fill_opacity").val()),
|
242 |
+
l = !isNaN(g) && 0 <= g && g <= 1,
|
243 |
+
m = c.trim(e.find(".intergeo_tlbr_polyoverlay_fill_color").val());
|
244 |
+
o.strokePosition = b.StrokePosition[k] || b.StrokePosition.CENTER;
|
245 |
+
o.strokeWeight = i ? j : 3;
|
246 |
+
o.strokeOpacity = d ? f : 1;
|
247 |
+
o.strokeColor = h;
|
248 |
+
o.fillOpacity = l ? g : 0.3;
|
249 |
+
o.fillColor = m;
|
250 |
+
n.html.find(".intergeo_tlbr_" + n.array + "_position").val(k);
|
251 |
+
n.html.find(".intergeo_tlbr_" + n.array + "_weight").val(i ? j : "");
|
252 |
+
n.html.find(".intergeo_tlbr_" + n.array + "_stroke_opacity").val(d ? f : "");
|
253 |
+
n.html.find(".intergeo_tlbr_" + n.array + "_stroke_color").val(h);
|
254 |
+
n.html.find(".intergeo_tlbr_" + n.array + "_fill_opacity").val(l ? g : "");
|
255 |
+
n.html.find(".intergeo_tlbr_" + n.array + "_fill_color").val(m);
|
256 |
+
n.html.find(".intergeo_tlbr_clr_prvw:last").css("background-color", h).fadeTo(0, d ? f : 1);
|
257 |
+
n.html.find(".intergeo_tlbr_clr_prvw:first").css("background-color", m).fadeTo(0, l ? g : 0.3);
|
258 |
+
n.overlay.setOptions(o)
|
259 |
+
}
|
260 |
+
});
|
261 |
+
a.PolyOverlay.stringToPath = function(e, d) {
|
262 |
+
var f = [];
|
263 |
+
c.each(e.find(d).val().split(";"), function(h, i) {
|
264 |
+
var g = i.split(",");
|
265 |
+
if (g.length == 2) {
|
266 |
+
f.push(new b.LatLng(g[0], g[1]))
|
267 |
+
}
|
268 |
+
});
|
269 |
+
return f
|
270 |
+
};
|
271 |
+
a.PolyOverlay.stringToBounds = function(e, d) {
|
272 |
+
var f = a.PolyOverlay.stringToPath(e, d);
|
273 |
+
return new b.LatLngBounds(f[0], f[1])
|
274 |
+
};
|
275 |
+
a.Polyline = a.PolyOverlay.extend({
|
276 |
+
initialize: function(g, e, f, d) {
|
277 |
+
this.supr(g, e, f, d, "polyline");
|
278 |
+
this.bindChangeEvent("mouseup")
|
279 |
+
},
|
280 |
+
edit: function() {
|
281 |
+
var e = this,
|
282 |
+
f = c("#intergeo_polyline_ppp"),
|
283 |
+
d = c.trim(e.html.find(".intergeo_tlbr_polyline_color").val());
|
284 |
+
f.find(".intergeo_ppp_frm").attr("data-position", e.position).attr("data-target", "polyline");
|
285 |
+
f.find(".intergeo_tlbr_polyline_weight").val(e.html.find(".intergeo_tlbr_polyline_weight").val());
|
286 |
+
f.find(".intergeo_tlbr_polyline_opacity").val(e.html.find(".intergeo_tlbr_polyline_opacity").val());
|
287 |
+
if (!d) {
|
288 |
+
d = "#000000"
|
289 |
+
}
|
290 |
+
f.find(".intergeo_tlbr_polyline_color").val(d).wpColorPicker("color", d);
|
291 |
+
f.fadeIn(150)
|
292 |
+
},
|
293 |
+
update: function(i) {
|
294 |
+
var e = this,
|
295 |
+
g = {},
|
296 |
+
j = parseInt(i.find(".intergeo_tlbr_polyline_weight").val()),
|
297 |
+
k = !isNaN(j) && 0 <= j,
|
298 |
+
f = parseFloat(i.find(".intergeo_tlbr_polyline_opacity").val()),
|
299 |
+
h = !isNaN(f) && 0 <= f && f <= 1,
|
300 |
+
d = c.trim(i.find(".intergeo_tlbr_polyline_color").val());
|
301 |
+
g.strokeOpacity = h ? f : 1;
|
302 |
+
g.strokeWeight = k ? j : 3;
|
303 |
+
g.strokeColor = d;
|
304 |
+
e.html.find(".intergeo_tlbr_polyline_weight").val(k ? j : "");
|
305 |
+
e.html.find(".intergeo_tlbr_polyline_opacity").val(h ? f : "");
|
306 |
+
e.html.find(".intergeo_tlbr_polyline_color").val(d);
|
307 |
+
e.html.find(".intergeo_tlbr_clr_prvw").css("background-color", d).fadeTo(0, h ? f : 1);
|
308 |
+
e.overlay.setOptions(g)
|
309 |
+
}
|
310 |
+
});
|
311 |
+
a.Polygon = a.PolyOverlay.extend({
|
312 |
+
initialize: function(g, e, f, d) {
|
313 |
+
this.supr(g, e, f, d, "polygon");
|
314 |
+
this.bindChangeEvent("mouseup")
|
315 |
+
}
|
316 |
+
});
|
317 |
+
a.Rectangle = a.PolyOverlay.extend({
|
318 |
+
initialize: function(g, e, f, d) {
|
319 |
+
this.supr(g, e, f, d, "rectangle");
|
320 |
+
this.bindChangeEvent("bounds_changed")
|
321 |
+
},
|
322 |
+
pathToString: function() {
|
323 |
+
var d = this.overlay.getBounds();
|
324 |
+
return [d.getSouthWest().toUrlValue(), d.getNorthEast().toUrlValue()].join(";")
|
325 |
+
}
|
326 |
+
});
|
327 |
+
a.Circle = a.PolyOverlay.extend({
|
328 |
+
initialize: function(g, e, f, d) {
|
329 |
+
this.supr(g, e, f, d, "circle");
|
330 |
+
this.bindChangeEvent("center_changed");
|
331 |
+
this.bindChangeEvent("radius_changed")
|
332 |
+
},
|
333 |
+
pathToString: function() {
|
334 |
+
var d = this.overlay;
|
335 |
+
return d.getCenter().toUrlValue() + ";" + d.getRadius() + ",0"
|
336 |
+
}
|
337 |
+
});
|
338 |
+
a.Direction = a.PolyOverlay.extend({
|
339 |
+
initialize: function(g, e, f, d) {
|
340 |
+
this.supr(g, e, f, d, "direction")
|
341 |
+
},
|
342 |
+
edit: function() {
|
343 |
+
var d = this,
|
344 |
+
e = c("#intergeo_drctn_ppp");
|
345 |
+
e.find(".intergeo_ppp_frm").attr("data-position", d.position).attr("data-target", d.array);
|
346 |
+
e.find("#intergeo_ppp_drctn_from").val(d.html.find(".intergeo_tlbr_drctn_from").val());
|
347 |
+
e.find("#intergeo_ppp_drctn_to").val(d.html.find(".intergeo_tlbr_drctn_to").val());
|
348 |
+
e.find("#intergeo_ppp_drctn_mode").val(d.html.find(".intergeo_tlbr_drctn_mode").val());
|
349 |
+
e.fadeIn(150)
|
350 |
+
},
|
351 |
+
update: function(f) {
|
352 |
+
var d = this,
|
353 |
+
i = f.find("#intergeo_ppp_drctn_from").val(),
|
354 |
+
h = f.find("#intergeo_ppp_drctn_to").val(),
|
355 |
+
g = f.find("#intergeo_ppp_drctn_mode").val(),
|
356 |
+
e = {
|
357 |
+
origin: i,
|
358 |
+
destination: h,
|
359 |
+
travelMode: b.TravelMode[g] || b.TravelMode.DRIVING
|
360 |
+
};
|
361 |
+
d.map.directions.route(e, function(k, j) {
|
362 |
+
if (j == b.DirectionsStatus.OK) {
|
363 |
+
d.overlay.setDirections(k);
|
364 |
+
d.html.find(".intergeo_tlbr_direction_title_td").text(c("#intergeo_tlbr_drctn_ttl_tmpl").text().replaceByHash({
|
365 |
+
"%num%": d.position + 1,
|
366 |
+
"%from%": i,
|
367 |
+
"%to%": h,
|
368 |
+
"%mode%": f.find("#intergeo_ppp_drctn_mode > :selected").text()
|
369 |
+
}))
|
370 |
+
} else {
|
371 |
+
alert(intergeo_options.l10n.error.directions)
|
372 |
+
}
|
373 |
+
});
|
374 |
+
d.html.find(".intergeo_tlbr_drctn_from").val(i);
|
375 |
+
d.html.find(".intergeo_tlbr_drctn_to").val(h);
|
376 |
+
d.html.find(".intergeo_tlbr_drctn_mode").val(g)
|
377 |
+
}
|
378 |
+
})
|
379 |
+
})(jQuery, google.maps, intergeo.maps);
|
380 |
+
(function(d, c, b) {
|
381 |
+
var a;
|
382 |
+
String.prototype.replaceByHash = function(e) {
|
383 |
+
var f = this;
|
384 |
+
d.each(e, function(g, h) {
|
385 |
+
f = f.split(g).join(h)
|
386 |
+
});
|
387 |
+
return f
|
388 |
+
};
|
389 |
+
a = function(e, g) {
|
390 |
+
var f = this;
|
391 |
+
f.map = new c.Map(document.getElementById(e), g);
|
392 |
+
f.drawing = new c.drawing.DrawingManager({
|
393 |
+
drawingControl: false,
|
394 |
+
map: f.map,
|
395 |
+
circleOptions: {
|
396 |
+
editable: true
|
397 |
+
},
|
398 |
+
markerOptions: {
|
399 |
+
draggable: true
|
400 |
+
},
|
401 |
+
polygonOptions: {
|
402 |
+
editable: true
|
403 |
+
},
|
404 |
+
polylineOptions: {
|
405 |
+
editable: true
|
406 |
+
},
|
407 |
+
rectangleOptions: {
|
408 |
+
editable: true
|
409 |
+
}
|
410 |
+
});
|
411 |
+
f.directions = new c.DirectionsService();
|
412 |
+
f.geocoder = null;
|
413 |
+
f.traffic = null;
|
414 |
+
f.bicycling = null;
|
415 |
+
f.weather = null;
|
416 |
+
f.cloud = null;
|
417 |
+
f.panoramio = null;
|
418 |
+
f.adunit = null;
|
419 |
+
f.markers = [];
|
420 |
+
f.polyline = [];
|
421 |
+
f.polygon = [];
|
422 |
+
f.rectangle = [];
|
423 |
+
f.circle = [];
|
424 |
+
f.direction = [];
|
425 |
+
f.infowindow = null;
|
426 |
+
c.event.addListener(f.map, "center_changed", function() {
|
427 |
+
var h = f.map.getCenter();
|
428 |
+
d("#intergeo_map_lat").val(h.lat());
|
429 |
+
d("#intergeo_map_lng").val(h.lng())
|
430 |
+
});
|
431 |
+
c.event.addListener(f.map, "zoom_changed", function() {
|
432 |
+
d("#intergeo_map_zoom").val(f.map.getZoom())
|
433 |
+
});
|
434 |
+
c.event.addListener(f.drawing, "overlaycomplete", function(h) {
|
435 |
+
switch (h.type) {
|
436 |
+
case c.drawing.OverlayType.MARKER:
|
437 |
+
f._markerComplete(h);
|
438 |
+
break;
|
439 |
+
case c.drawing.OverlayType.CIRCLE:
|
440 |
+
f._polyComplete(h, "circle", b.Circle);
|
441 |
+
break;
|
442 |
+
case c.drawing.OverlayType.POLYGON:
|
443 |
+
f._polyComplete(h, "polygon", b.Polygon);
|
444 |
+
break;
|
445 |
+
case c.drawing.OverlayType.POLYLINE:
|
446 |
+
f._polyComplete(h, "polyline", b.Polyline);
|
447 |
+
break;
|
448 |
+
case c.drawing.OverlayType.RECTANGLE:
|
449 |
+
f._polyComplete(h, "rectangle", b.Rectangle);
|
450 |
+
break
|
451 |
+
}
|
452 |
+
});
|
453 |
+
f._initOverlays()
|
454 |
+
};
|
455 |
+
a.Styles = {
|
456 |
+
DEFAULT: [],
|
457 |
+
RED: [{
|
458 |
+
featureType: "all",
|
459 |
+
stylers: [{
|
460 |
+
hue: "#ff0000"
|
461 |
+
}]
|
462 |
+
}],
|
463 |
+
NIGHT: [{
|
464 |
+
featureType: "all",
|
465 |
+
stylers: [{
|
466 |
+
invert_lightness: "true"
|
467 |
+
}]
|
468 |
+
}],
|
469 |
+
BLUE: [{
|
470 |
+
featureType: "all",
|
471 |
+
stylers: [{
|
472 |
+
hue: "#0000b0"
|
473 |
+
}, {
|
474 |
+
invert_lightness: "true"
|
475 |
+
}, {
|
476 |
+
saturation: -30
|
477 |
+
}]
|
478 |
+
}],
|
479 |
+
GREYSCALE: [{
|
480 |
+
featureType: "all",
|
481 |
+
stylers: [{
|
482 |
+
saturation: -100
|
483 |
+
}, {
|
484 |
+
gamma: 0.5
|
485 |
+
}]
|
486 |
+
}],
|
487 |
+
NO_ROADS: [{
|
488 |
+
featureType: "road",
|
489 |
+
stylers: [{
|
490 |
+
visibility: "off"
|
491 |
+
}]
|
492 |
+
}],
|
493 |
+
MIXED: [{
|
494 |
+
featureType: "landscape",
|
495 |
+
stylers: [{
|
496 |
+
hue: "#00dd00"
|
497 |
+
}]
|
498 |
+
}, {
|
499 |
+
featureType: "road",
|
500 |
+
stylers: [{
|
501 |
+
hue: "#dd0000"
|
502 |
+
}]
|
503 |
+
}, {
|
504 |
+
featureType: "water",
|
505 |
+
stylers: [{
|
506 |
+
hue: "#000040"
|
507 |
+
}]
|
508 |
+
}, {
|
509 |
+
featureType: "poi.park",
|
510 |
+
stylers: [{
|
511 |
+
visibility: "off"
|
512 |
+
}]
|
513 |
+
}, {
|
514 |
+
featureType: "road.arterial",
|
515 |
+
stylers: [{
|
516 |
+
hue: "#ffff00"
|
517 |
+
}]
|
518 |
+
}, {
|
519 |
+
featureType: "road.local",
|
520 |
+
stylers: [{
|
521 |
+
visibility: "off"
|
522 |
+
}]
|
523 |
+
}],
|
524 |
+
CHILLED: [{
|
525 |
+
featureType: "road",
|
526 |
+
elementType: "geometry",
|
527 |
+
stylers: [{
|
528 |
+
visibility: "simplified"
|
529 |
+
}]
|
530 |
+
}, {
|
531 |
+
featureType: "road.arterial",
|
532 |
+
stylers: [{
|
533 |
+
hue: 149
|
534 |
+
}, {
|
535 |
+
saturation: -78
|
536 |
+
}, {
|
537 |
+
lightness: 0
|
538 |
+
}]
|
539 |
+
}, {
|
540 |
+
featureType: "road.highway",
|
541 |
+
stylers: [{
|
542 |
+
hue: -31
|
543 |
+
}, {
|
544 |
+
saturation: -40
|
545 |
+
}, {
|
546 |
+
lightness: 2.8
|
547 |
+
}]
|
548 |
+
}, {
|
549 |
+
featureType: "poi",
|
550 |
+
elementType: "label",
|
551 |
+
stylers: [{
|
552 |
+
visibility: "off"
|
553 |
+
}]
|
554 |
+
}, {
|
555 |
+
featureType: "landscape",
|
556 |
+
stylers: [{
|
557 |
+
hue: 163
|
558 |
+
}, {
|
559 |
+
saturation: -26
|
560 |
+
}, {
|
561 |
+
lightness: -1.1
|
562 |
+
}]
|
563 |
+
}, {
|
564 |
+
featureType: "transit",
|
565 |
+
stylers: [{
|
566 |
+
visibility: "off"
|
567 |
+
}]
|
568 |
+
}, {
|
569 |
+
featureType: "water",
|
570 |
+
stylers: [{
|
571 |
+
hue: 3
|
572 |
+
}, {
|
573 |
+
saturation: -24.24
|
574 |
+
}, {
|
575 |
+
lightness: -38.57
|
576 |
+
}]
|
577 |
+
}]
|
578 |
+
};
|
579 |
+
a.prototype = {
|
580 |
+
_initOverlays: function() {
|
581 |
+
var e = this;
|
582 |
+
d(".intergeo_tlbr_marker").each(function(f, i) {
|
583 |
+
var h = d(i),
|
584 |
+
g = h.find(".intergeo_tlbr_marker_location").val().split(",");
|
585 |
+
e.markers.push(new b.Marker(e, new c.Marker({
|
586 |
+
position: new c.LatLng(parseFloat(g[0]), parseFloat(g[1])),
|
587 |
+
map: e.map,
|
588 |
+
title: h.find(".intergeo_tlbr_marker_title").val(),
|
589 |
+
icon: h.find(".intergeo_tlbr_marker_icon").val(),
|
590 |
+
draggable: true
|
591 |
+
}), h, f))
|
592 |
+
});
|
593 |
+
d(".intergeo_tlbr_polyline").each(function(f, j) {
|
594 |
+
var i = d(j),
|
595 |
+
g = d.trim(i.find(".intergeo_tlbr_polyline_color").val()),
|
596 |
+
h = parseFloat(i.find(".intergeo_tlbr_polyline_opacity").val()),
|
597 |
+
k = parseInt(i.find(".intergeo_tlbr_polyline_weight").val());
|
598 |
+
e.polyline.push(new b.Polyline(e, new c.Polyline({
|
599 |
+
map: e.map,
|
600 |
+
path: b.PolyOverlay.stringToPath(i, ".intergeo_tlbr_polyline_path"),
|
601 |
+
editable: true,
|
602 |
+
strokeColor: g.length == 0 ? "#000000" : g,
|
603 |
+
strokeOpacity: isNaN(h) ? 1 : h,
|
604 |
+
strokeWeight: isNaN(k) ? 3 : k
|
605 |
+
}), i, f))
|
606 |
+
});
|
607 |
+
d(".intergeo_tlbr_polygon").each(function(f, i) {
|
608 |
+
var h = d(i),
|
609 |
+
l = d.trim(h.find(".intergeo_tlbr_polygon_fill_color").val()),
|
610 |
+
g = parseFloat(h.find(".intergeo_tlbr_polygon_fill_opacity").val()),
|
611 |
+
k = d.trim(h.find(".intergeo_tlbr_polygon_stroke_color").val()),
|
612 |
+
m = parseFloat(h.find(".intergeo_tlbr_polygon_stroke_opacity").val()),
|
613 |
+
f = d.trim(h.find(".intergeo_tlbr_plygon_position").val()),
|
614 |
+
j = parseInt(h.find(".intergeo_tlbr_polygon_weight").val());
|
615 |
+
e.polygon.push(new b.Polygon(e, new c.Polygon({
|
616 |
+
map: e.map,
|
617 |
+
path: b.PolyOverlay.stringToPath(h, ".intergeo_tlbr_polygon_path"),
|
618 |
+
editable: true,
|
619 |
+
fillColor: l.length == 0 ? "#000000" : l,
|
620 |
+
fillOpacity: isNaN(g) ? 0.3 : g,
|
621 |
+
strokeColor: k.length == 0 ? "#000000" : k,
|
622 |
+
strokeOpacity: isNaN(m) ? 1 : m,
|
623 |
+
strokePosition: c.StrokePosition[f] || c.StrokePosition.CENTER,
|
624 |
+
strokeWeight: isNaN(j) ? 3 : j
|
625 |
+
}), h, f))
|
626 |
+
});
|
627 |
+
d(".intergeo_tlbr_rectangle").each(function(f, i) {
|
628 |
+
var h = d(i),
|
629 |
+
l = d.trim(h.find(".intergeo_tlbr_rectangle_fill_color").val()),
|
630 |
+
g = parseFloat(h.find(".intergeo_tlbr_rectangle_fill_opacity").val()),
|
631 |
+
k = d.trim(h.find(".intergeo_tlbr_rectangle_stroke_color").val()),
|
632 |
+
m = parseFloat(h.find(".intergeo_tlbr_rectangle_stroke_opacity").val()),
|
633 |
+
f = d.trim(h.find(".intergeo_tlbr_rectangle_position").val()),
|
634 |
+
j = parseInt(h.find(".intergeo_tlbr_rectangle_weight").val());
|
635 |
+
e.rectangle.push(new b.Rectangle(e, new c.Rectangle({
|
636 |
+
map: e.map,
|
637 |
+
bounds: b.PolyOverlay.stringToBounds(h, ".intergeo_tlbr_rectangle_path"),
|
638 |
+
editable: true,
|
639 |
+
fillColor: l.length == 0 ? "#000000" : l,
|
640 |
+
fillOpacity: isNaN(g) ? 0.3 : g,
|
641 |
+
strokeColor: k.length == 0 ? "#000000" : k,
|
642 |
+
strokeOpacity: isNaN(m) ? 1 : m,
|
643 |
+
strokePosition: c.StrokePosition[f] || c.StrokePosition.CENTER,
|
644 |
+
strokeWeight: isNaN(j) ? 3 : j
|
645 |
+
}), h, f))
|
646 |
+
});
|
647 |
+
d(".intergeo_tlbr_circle").each(function(m, j) {
|
648 |
+
var l = d(j),
|
649 |
+
p = d.trim(l.find(".intergeo_tlbr_circle_fill_color").val()),
|
650 |
+
i = parseFloat(l.find(".intergeo_tlbr_circle_fill_opacity").val()),
|
651 |
+
h = d.trim(l.find(".intergeo_tlbr_circle_stroke_color").val()),
|
652 |
+
g = parseFloat(l.find(".intergeo_tlbr_circle_stroke_opacity").val()),
|
653 |
+
o = d.trim(l.find(".intergeo_tlbr_circle_position").val()),
|
654 |
+
k = parseInt(l.find(".intergeo_tlbr_circle_weight").val()),
|
655 |
+
q = d.trim(l.find(".intergeo_tlbr_circle_path").val()).split(";"),
|
656 |
+
f = q[0].split(","),
|
657 |
+
n = q[1].split(",");
|
658 |
+
e.circle.push(new b.Circle(e, new c.Circle({
|
659 |
+
map: e.map,
|
660 |
+
center: new c.LatLng(f[0], f[1]),
|
661 |
+
radius: parseFloat(n[0]),
|
662 |
+
editable: true,
|
663 |
+
fillColor: p.length == 0 ? "#000000" : p,
|
664 |
+
fillOpacity: isNaN(i) ? 0.3 : i,
|
665 |
+
strokeColor: h.length == 0 ? "#000000" : h,
|
666 |
+
strokeOpacity: isNaN(g) ? 1 : g,
|
667 |
+
strokePosition: c.StrokePosition[o] || c.StrokePosition.CENTER,
|
668 |
+
strokeWeight: isNaN(k) ? 3 : k
|
669 |
+
}), l, m))
|
670 |
+
});
|
671 |
+
d(".intergeo_tlbr_drctn").each(function(f, h) {
|
672 |
+
var g = d(h),
|
673 |
+
l = d.trim(g.find(".intergeo_tlbr_drctn_from").val()),
|
674 |
+
k = d.trim(g.find(".intergeo_tlbr_drctn_to").val()),
|
675 |
+
j = d.trim(g.find(".intergeo_tlbr_drctn_mode").val()),
|
676 |
+
i = {
|
677 |
+
origin: l,
|
678 |
+
destination: k,
|
679 |
+
travelMode: c.TravelMode[j] || c.TravelMode.DRIVING
|
680 |
+
};
|
681 |
+
e.directions.route(i, function(n, m) {
|
682 |
+
if (m == c.DirectionsStatus.OK) {
|
683 |
+
var o = new b.Direction(e, new c.DirectionsRenderer({
|
684 |
+
map: e.map,
|
685 |
+
directions: n
|
686 |
+
}), g, f);
|
687 |
+
e.direction.push(o)
|
688 |
+
} else {
|
689 |
+
g.remove();
|
690 |
+
e.direction.push(null)
|
691 |
+
}
|
692 |
+
})
|
693 |
+
})
|
694 |
+
},
|
695 |
+
_markerComplete: function(i) {
|
696 |
+
var g = this,
|
697 |
+
e = g.markers.length,
|
698 |
+
h = d(d("#intergeo_tlbr_marker_tmpl").html().replaceByHash({
|
699 |
+
"%pos%": e,
|
700 |
+
"%num%": e + 1
|
701 |
+
})),
|
702 |
+
f = new b.Marker(g, i.overlay, h, e);
|
703 |
+
h.find(".intergeo_tlbr_marker_location").val(i.overlay.getPosition().toUrlValue());
|
704 |
+
d("#intergeo_tlbr_markers").append(h);
|
705 |
+
g.markers.push(f);
|
706 |
+
i.overlay.setDraggable(true)
|
707 |
+
},
|
708 |
+
_polyComplete: function(j, i, h) {
|
709 |
+
var f = this,
|
710 |
+
e = f[i].length,
|
711 |
+
g = d(d("#intergeo_tlbr_" + i + "_tmpl").html().replaceByHash({
|
712 |
+
"%pos%": e,
|
713 |
+
"%num%": e + 1
|
714 |
+
})),
|
715 |
+
k = new h(f, j.overlay, g, e);
|
716 |
+
f[i].push(k);
|
717 |
+
g.find(".intergeo_tlbr_" + i + "_path").val(k.pathToString());
|
718 |
+
d("#intergeo_tlbr_" + i + "s").append(g)
|
719 |
+
},
|
720 |
+
_normalize: function(h) {
|
721 |
+
var g = function(j) {
|
722 |
+
return j === "1"
|
723 |
+
},
|
724 |
+
f = function(j, k, l) {
|
725 |
+
return k[j] || l
|
726 |
+
},
|
727 |
+
e = function(j) {
|
728 |
+
return f(j, c.ControlPosition, 0)
|
729 |
+
},
|
730 |
+
i = {
|
731 |
+
minZoom: parseInt,
|
732 |
+
maxZoom: parseInt,
|
733 |
+
scrollwheel: g,
|
734 |
+
draggable: g,
|
735 |
+
mapTypeId: function(j) {
|
736 |
+
return c.MapTypeId[j] || c.MapTypeId.ROADMAP
|
737 |
+
},
|
738 |
+
mapTypeControl: g,
|
739 |
+
mapTypeControlOptions: {
|
740 |
+
position: e,
|
741 |
+
mapTypeIds: function(j) {
|
742 |
+
var k = [];
|
743 |
+
d.each(j, function(l, m) {
|
744 |
+
if (c.MapTypeId[m] !== undefined) {
|
745 |
+
k.push(c.MapTypeId[m])
|
746 |
+
}
|
747 |
+
});
|
748 |
+
return k
|
749 |
+
},
|
750 |
+
style: function(j) {
|
751 |
+
return f(j, c.MapTypeControlStyle, c.MapTypeControlStyle.DEFAULT)
|
752 |
+
}
|
753 |
+
},
|
754 |
+
overviewMapControl: g,
|
755 |
+
overviewMapControlOptions: {
|
756 |
+
opened: g
|
757 |
+
},
|
758 |
+
panControl: g,
|
759 |
+
panControlOptions: {
|
760 |
+
position: e
|
761 |
+
},
|
762 |
+
rotateControl: g,
|
763 |
+
rotateControlOptions: {
|
764 |
+
position: e
|
765 |
+
},
|
766 |
+
scaleControl: g,
|
767 |
+
scaleControlOptions: {
|
768 |
+
position: e
|
769 |
+
},
|
770 |
+
streetViewControl: g,
|
771 |
+
streetViewControlOptions: {
|
772 |
+
position: e
|
773 |
+
},
|
774 |
+
zoomControl: g,
|
775 |
+
zoomControlOptions: {
|
776 |
+
position: e,
|
777 |
+
style: function(j) {
|
778 |
+
return f(j, c.ZoomControlStyle, c.ZoomControlStyle.DEFAULT)
|
779 |
+
}
|
780 |
+
}
|
781 |
+
};
|
782 |
+
return d.each(h, function(j, k) {
|
783 |
+
if (i[j] === undefined) {
|
784 |
+
delete h[j]
|
785 |
+
} else {
|
786 |
+
if (typeof k === "string") {
|
787 |
+
h[j] = i[j](k)
|
788 |
+
} else {
|
789 |
+
d.each(k, function(m, l) {
|
790 |
+
if (i[j][m] === undefined) {
|
791 |
+
delete h[j][m]
|
792 |
+
} else {
|
793 |
+
h[j][m] = i[j][m](l)
|
794 |
+
}
|
795 |
+
})
|
796 |
+
}
|
797 |
+
}
|
798 |
+
})
|
799 |
+
},
|
800 |
+
_traffic: function(f) {
|
801 |
+
var e = this;
|
802 |
+
if (f.layer.traffic == 1) {
|
803 |
+
if (!e.traffic) {
|
804 |
+
e.traffic = new c.TrafficLayer()
|
805 |
+
}
|
806 |
+
e.traffic.setMap(e.map)
|
807 |
+
} else {
|
808 |
+
if (e.traffic) {
|
809 |
+
e.traffic.setMap(null)
|
810 |
+
}
|
811 |
+
}
|
812 |
+
},
|
813 |
+
_bicycling: function(f) {
|
814 |
+
var e = this;
|
815 |
+
if (f.layer.bicycling == 1) {
|
816 |
+
if (!e.bicycling) {
|
817 |
+
e.bicycling = new c.BicyclingLayer()
|
818 |
+
}
|
819 |
+
e.bicycling.setMap(e.map)
|
820 |
+
} else {
|
821 |
+
if (e.bicycling) {
|
822 |
+
e.bicycling.setMap(null)
|
823 |
+
}
|
824 |
+
}
|
825 |
+
},
|
826 |
+
_weather: function(f) {
|
827 |
+
var e = this;
|
828 |
+
if (f.layer.weather == 1) {
|
829 |
+
if (!e.weather) {
|
830 |
+
e.weather = new c.weather.WeatherLayer({})
|
831 |
+
}
|
832 |
+
e.weather.setMap(e.map);
|
833 |
+
e.weather.setOptions({
|
834 |
+
temperatureUnits: c.weather.TemperatureUnit[f.weather.temperatureUnits] || c.weather.TemperatureUnit.CELSIUS,
|
835 |
+
windSpeedUnits: c.weather.WindSpeedUnit[f.weather.windSpeedUnits] || c.weather.WindSpeedUnit.METERS_PER_SECOND
|
836 |
+
})
|
837 |
+
} else {
|
838 |
+
if (e.weather) {
|
839 |
+
e.weather.setMap(null)
|
840 |
+
}
|
841 |
+
}
|
842 |
+
},
|
843 |
+
_cloud: function(f) {
|
844 |
+
var e = this;
|
845 |
+
if (f.layer.cloud == 1) {
|
846 |
+
if (!e.cloud) {
|
847 |
+
e.cloud = new c.weather.CloudLayer()
|
848 |
+
}
|
849 |
+
e.cloud.setMap(e.map)
|
850 |
+
} else {
|
851 |
+
if (e.cloud) {
|
852 |
+
e.cloud.setMap(null)
|
853 |
+
}
|
854 |
+
}
|
855 |
+
},
|
856 |
+
_panoramio: function(f) {
|
857 |
+
var e = this;
|
858 |
+
if (f.layer.panoramio == 1) {
|
859 |
+
if (!e.panoramio) {
|
860 |
+
e.panoramio = new c.panoramio.PanoramioLayer({})
|
861 |
+
}
|
862 |
+
e.panoramio.setMap(e.map);
|
863 |
+
e.panoramio.setTag(f.panoramio.tag);
|
864 |
+
e.panoramio.setUserId(f.panoramio.userId)
|
865 |
+
} else {
|
866 |
+
if (e.panoramio) {
|
867 |
+
e.panoramio.setMap(null)
|
868 |
+
}
|
869 |
+
}
|
870 |
+
},
|
871 |
+
_adsense: function(f) {
|
872 |
+
var e = this;
|
873 |
+
if (f.layer.adsense == 1 && intergeo_options.adsense.publisher_id && d.trim(intergeo_options.adsense.publisher_id) != "") {
|
874 |
+
if (!e.adunit) {
|
875 |
+
e.adunit = new c.adsense.AdUnit(document.createElement("div"), {
|
876 |
+
visible: true,
|
877 |
+
publisherId: intergeo_options.adsense.publisher_id
|
878 |
+
})
|
879 |
+
}
|
880 |
+
e.adunit.setMap(this.map);
|
881 |
+
e.adunit.setBackgroundColor(f.adsense.backgroundColor);
|
882 |
+
e.adunit.setBorderColor(f.adsense.borderColor);
|
883 |
+
e.adunit.setUrlColor(f.adsense.urlColor);
|
884 |
+
e.adunit.setTitleColor(f.adsense.titleColor);
|
885 |
+
e.adunit.setTextColor(f.adsense.textColor);
|
886 |
+
if (c.ControlPosition[f.adsense.position] !== undefined) {
|
887 |
+
e.adunit.setPosition(c.ControlPosition[f.adsense.position])
|
888 |
+
}
|
889 |
+
if (c.adsense.AdFormat[f.adsense.format]) {
|
890 |
+
e.adunit.setFormat(c.adsense.AdFormat[f.adsense.format])
|
891 |
+
}
|
892 |
+
} else {
|
893 |
+
if (e.adunit) {
|
894 |
+
e.adunit.setMap(null)
|
895 |
+
}
|
896 |
+
}
|
897 |
+
},
|
898 |
+
_pro: function(f){
|
899 |
+
var e = this;
|
900 |
+
if(window._proFeatures){
|
901 |
+
_proFeatures(f, e);
|
902 |
+
}
|
903 |
+
},
|
904 |
+
createDirection: function() {
|
905 |
+
var f = this,
|
906 |
+
e = d("#intergeo_drctn_ppp"),
|
907 |
+
g = e.find(".intergeo_ppp_frm");
|
908 |
+
g.bind("submit.firsttime", function() {
|
909 |
+
var h, i, j, l, k;
|
910 |
+
if (g.attr("data-position") != "") {
|
911 |
+
return false
|
912 |
+
}
|
913 |
+
h = f.direction.length;
|
914 |
+
l = d.trim(g.find("#intergeo_ppp_drctn_from").val());
|
915 |
+
k = d.trim(g.find("#intergeo_ppp_drctn_to").val());
|
916 |
+
if (l == "" || k == "") {
|
917 |
+
return false
|
918 |
+
}
|
919 |
+
j = d(d("#intergeo_tlbr_drctn_tmpl").html().replaceByHash({
|
920 |
+
"%pos%": h,
|
921 |
+
"%num%": h + 1,
|
922 |
+
"%from%": l,
|
923 |
+
"%to%": k,
|
924 |
+
"%mode%": d.trim(g.find("#intergeo_ppp_drctn_mode option:selected").text())
|
925 |
+
}));
|
926 |
+
i = new b.Direction(f, new c.DirectionsRenderer({
|
927 |
+
map: f.map
|
928 |
+
}), j, h);
|
929 |
+
d("#intergeo_tlbr_drctns").append(j);
|
930 |
+
f.direction.push(i);
|
931 |
+
i.update(g);
|
932 |
+
g.unbind("submit.firsttime");
|
933 |
+
return false
|
934 |
+
});
|
935 |
+
g.find('select,input[type!="submit"]').val("");
|
936 |
+
g.attr("data-position", "");
|
937 |
+
e.fadeIn(150)
|
938 |
+
},
|
939 |
+
updateOverlays: function() {
|
940 |
+
var e = this;
|
941 |
+
d.each(e.polyline, function(g, f) {
|
942 |
+
if (f) {
|
943 |
+
d('.intergeo_tlbr_polyline_path[data-position="' + g + '"]').val(f.pathToString())
|
944 |
+
}
|
945 |
+
});
|
946 |
+
d.each(e.polygon, function(g, f) {
|
947 |
+
if (f) {
|
948 |
+
d('.intergeo_tlbr_polygon_path[data-position="' + g + '"]').val(f.pathToString())
|
949 |
+
}
|
950 |
+
})
|
951 |
+
},
|
952 |
+
preview: function() {
|
953 |
+
var f = this,
|
954 |
+
g = {};
|
955 |
+
d.each(d("#intergeo_frm").serializeArray(), function() {
|
956 |
+
var l = /\[\]$/,
|
957 |
+
m = g,
|
958 |
+
j = this.name.replace(l, "").split("_"),
|
959 |
+
e = j.pop(),
|
960 |
+
k = this.value || "",
|
961 |
+
i = l.test(this.name);
|
962 |
+
d.each(j, function(n, o) {
|
963 |
+
if (m[o] === undefined) {
|
964 |
+
m[o] = {}
|
965 |
+
}
|
966 |
+
m = m[o]
|
967 |
+
});
|
968 |
+
if (m[e] !== undefined) {
|
969 |
+
if (i) {
|
970 |
+
m[e].push(k)
|
971 |
+
} else {
|
972 |
+
m[e] = k
|
973 |
+
}
|
974 |
+
} else {
|
975 |
+
m[e] = i ? [k] : k
|
976 |
+
}
|
977 |
+
});
|
978 |
+
f._normalize(g.map);
|
979 |
+
if (d("#intergeo_map_lock_preview").is(":checked")) {
|
980 |
+
g.map.draggable = false;
|
981 |
+
g.map.scrollwheel = false
|
982 |
+
}
|
983 |
+
f.map.setOptions(g.map);
|
984 |
+
if (g.styles && g.styles.type) {
|
985 |
+
if (g.styles.type == -1) {
|
986 |
+
try {
|
987 |
+
f.map.setOptions({
|
988 |
+
styles: d.parseJSON(g.styles.custom || "[]")
|
989 |
+
})
|
990 |
+
} catch (h) {
|
991 |
+
alert(intergeo_options.l10n.error.style)
|
992 |
+
}
|
993 |
+
} else {
|
994 |
+
if (a.Styles[g.styles.type] !== undefined) {
|
995 |
+
f.map.setOptions({
|
996 |
+
styles: a.Styles[g.styles.type]
|
997 |
+
})
|
998 |
+
}
|
999 |
+
}
|
1000 |
+
}
|
1001 |
+
f._traffic(g);
|
1002 |
+
f._bicycling(g);
|
1003 |
+
f._weather(g);
|
1004 |
+
f._cloud(g);
|
1005 |
+
f._panoramio(g);
|
1006 |
+
f._adsense(g);
|
1007 |
+
f._pro(g);
|
1008 |
+
}
|
1009 |
+
};
|
1010 |
+
d(document).ready(function() {
|
1011 |
+
var g, f, e;
|
1012 |
+
f = new a("intergeo_canvas", {
|
1013 |
+
center: new c.LatLng(parseFloat(d("#intergeo_map_lat").val()), parseFloat(d("#intergeo_map_lng").val())),
|
1014 |
+
zoom: parseInt(d("#intergeo_map_zoom").val()),
|
1015 |
+
minZoom: 0,
|
1016 |
+
maxZoom: 19,
|
1017 |
+
mapTypeId: c.MapTypeId.ROADMAP
|
1018 |
+
});
|
1019 |
+
var xxxx = window.dialogArguments || opener || parent || top;
|
1020 |
+
xxxx.intergeo_maps_current = f;
|
1021 |
+
e = d("#intergeo_frm");
|
1022 |
+
e.find("input[name], select[name], textarea[name]").not("input[type='file']").change(function() {
|
1023 |
+
f.preview()
|
1024 |
+
});
|
1025 |
+
e.find(".intergeo_tlbr_cntrl_onkeyup").keyup(function() {
|
1026 |
+
f.preview()
|
1027 |
+
});
|
1028 |
+
e.submit(function() {
|
1029 |
+
f.updateOverlays();
|
1030 |
+
return true
|
1031 |
+
});
|
1032 |
+
f.preview();
|
1033 |
+
d("#intergeo_map_lock_preview").change(function() {
|
1034 |
+
var h = d(this).is(":checked");
|
1035 |
+
f.map.setOptions({
|
1036 |
+
draggable: !h,
|
1037 |
+
scrollwheel: !h
|
1038 |
+
})
|
1039 |
+
});
|
1040 |
+
d(".intergeo_tlbr_ul_li_h3").click(function() {
|
1041 |
+
var h = d(this).parent();
|
1042 |
+
if (h.hasClass("open")) {
|
1043 |
+
h.removeClass("open")
|
1044 |
+
} else {
|
1045 |
+
d(".intergeo_tlbr_ul_li.open").removeClass("open");
|
1046 |
+
h.addClass("open")
|
1047 |
+
}
|
1048 |
+
});
|
1049 |
+
d(".intergeo_tlbr_cntrl_more_info").click(function() {
|
1050 |
+
d(this).parent().nextAll(".intergeo_tlbr_cntrl_dsc:first").toggle();
|
1051 |
+
return false
|
1052 |
+
});
|
1053 |
+
d(".intergeo_tlbr_cntrl_ttl").click(function() {
|
1054 |
+
d(this).toggleClass("open").parent().find(".intergeo_tlbr_cntrl_items").toggle();
|
1055 |
+
return false
|
1056 |
+
});
|
1057 |
+
d(".color-picker-hex").wpColorPicker({
|
1058 |
+
change: function() {
|
1059 |
+
clearTimeout(g);
|
1060 |
+
g = setTimeout(function() {
|
1061 |
+
f.preview()
|
1062 |
+
}, 500)
|
1063 |
+
}
|
1064 |
+
});
|
1065 |
+
d(".intergeo_tlbr_clr").wpColorPicker();
|
1066 |
+
d("#intergeo_show_map_center").change(function() {
|
1067 |
+
d("#intergeo_canvas_center").toggle();
|
1068 |
+
d.post(intergeo_options.ajaxurl, {
|
1069 |
+
action: "intergeo_show_map_center",
|
1070 |
+
nonce: intergeo_options.nonce || "",
|
1071 |
+
status: d(this).is(":checked") ? 1 : 0
|
1072 |
+
})
|
1073 |
+
});
|
1074 |
+
d("#intergeo_tlbr_drawing_tools").change(function() {
|
1075 |
+
f.drawing.setDrawingMode(null);
|
1076 |
+
f.drawing.setOptions({
|
1077 |
+
drawingControl: d(this).is(":checked")
|
1078 |
+
})
|
1079 |
+
});
|
1080 |
+
d(".intergeo_ppp_cls").click(function() {
|
1081 |
+
d(this).parents(".intergeo_ppp").fadeOut(150);
|
1082 |
+
return false
|
1083 |
+
});
|
1084 |
+
d("#intergeo_go_to_address").click(function() {
|
1085 |
+
d("#intergeo_address_ppp").fadeIn(150);
|
1086 |
+
return false
|
1087 |
+
});
|
1088 |
+
d("#intergeo_address_ppp .intergeo_ppp_frm").submit(function() {
|
1089 |
+
var h = d(this),
|
1090 |
+
j = h.find(".intergeo_ppp_txt"),
|
1091 |
+
i = d.trim(j.val());
|
1092 |
+
if (i != "") {
|
1093 |
+
if (!f.geocoder) {
|
1094 |
+
f.geocoder = new c.Geocoder()
|
1095 |
+
}
|
1096 |
+
f.geocoder.geocode({
|
1097 |
+
address: i
|
1098 |
+
}, function(l, k) {
|
1099 |
+
if (k == c.GeocoderStatus.OK) {
|
1100 |
+
f.map.setCenter(l[0].geometry.location)
|
1101 |
+
}
|
1102 |
+
})
|
1103 |
+
}
|
1104 |
+
j.val("");
|
1105 |
+
h.parents(".intergeo_ppp").fadeOut(150);
|
1106 |
+
return false
|
1107 |
+
});
|
1108 |
+
d(".intregeo_ppp_frm_overlay").submit(function() {
|
1109 |
+
var j = d(this),
|
1110 |
+
h = parseInt(j.attr("data-position")),
|
1111 |
+
i = j.attr("data-target");
|
1112 |
+
j.parents(".intergeo_ppp").fadeOut(150);
|
1113 |
+
if (f[i] && f[i][h]) {
|
1114 |
+
f[i][h].update(j)
|
1115 |
+
}
|
1116 |
+
return false
|
1117 |
+
});
|
1118 |
+
d("#intergeo_tlbr_new_drctn").click(function() {
|
1119 |
+
f.createDirection();
|
1120 |
+
return false
|
1121 |
+
})
|
1122 |
+
})
|
1123 |
})(jQuery, google.maps, intergeo.maps);
|
js/rendering.js
CHANGED
@@ -1,446 +1,446 @@
|
|
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 |
-
}, {
|
39 |
-
gamma: 0.5
|
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 |
-
}, {
|
90 |
-
saturation: -78
|
91 |
-
}, {
|
92 |
-
lightness: 0
|
93 |
-
}]
|
94 |
-
}, {
|
95 |
-
featureType: "road.highway",
|
96 |
-
stylers: [{
|
97 |
-
hue: -31
|
98 |
-
}, {
|
99 |
-
saturation: -40
|
100 |
-
}, {
|
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 |
-
}, {
|
114 |
-
saturation: -26
|
115 |
-
}, {
|
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 |
-
}, {
|
128 |
-
saturation: -24.24
|
129 |
-
}, {
|
130 |
-
lightness: -38.57
|
131 |
-
}]
|
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,
|
171 |
-
overviewMapControlOptions: {
|
172 |
-
opened: f
|
173 |
-
},
|
174 |
-
panControl: f,
|
175 |
-
panControlOptions: {
|
176 |
-
position: d
|
177 |
-
},
|
178 |
-
rotateControl: f,
|
179 |
-
rotateControlOptions: {
|
180 |
-
position: d
|
181 |
-
},
|
182 |
-
scaleControl: f,
|
183 |
-
scaleControlOptions: {
|
184 |
-
position: d
|
185 |
-
},
|
186 |
-
streetViewControl: f,
|
187 |
-
streetViewControlOptions: {
|
188 |
-
position: d
|
189 |
-
},
|
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 === "string") {
|
206 |
-
g[i] = h[i](j)
|
207 |
-
} else {
|
208 |
-
c.each(j, function(l, k) {
|
209 |
-
if (h[i][l] === undefined) {
|
210 |
-
delete g[i][l]
|
211 |
-
} else {
|
212 |
-
g[i][l] = h[i][l](k)
|
213 |
-
}
|
214 |
-
})
|
215 |
-
}
|
216 |
-
}
|
217 |
-
})
|
218 |
-
};
|
219 |
-
a.prototype._getGeocoder = function() {
|
220 |
-
if (!a._geocoder) {
|
221 |
-
a._geocoder = new b.Geocoder()
|
222 |
-
}
|
223 |
-
return a._geocoder
|
224 |
-
};
|
225 |
-
a.prototype._renderOverlays = function() {
|
226 |
-
var d = this;
|
227 |
-
c.each(d.options.overlays.marker || [], function(h, g) {
|
228 |
-
var f;
|
229 |
-
try {
|
230 |
-
f = new b.Marker({
|
231 |
-
position: new b.LatLng(g.position[0], g.position[1]),
|
232 |
-
map: d.map,
|
233 |
-
title: g.title || "",
|
234 |
-
icon: g.icon || null
|
235 |
-
});
|
236 |
-
b.event.addListener(f, "click", function() {
|
237 |
-
var i, e = c.trim(g.info || "");
|
238 |
-
if (e.length) {
|
239 |
-
if (d.infowindow) {
|
240 |
-
d.infowindow.close()
|
241 |
-
}
|
242 |
-
i = new b.InfoWindow();
|
243 |
-
i.setContent(e);
|
244 |
-
i.open(d.map, f);
|
245 |
-
d.infowindow = i
|
246 |
-
}
|
247 |
-
})
|
248 |
-
} catch (j) {}
|
249 |
-
});
|
250 |
-
c.each(d.options.overlays.polyline || [], function(g, f) {
|
251 |
-
var j = [];
|
252 |
-
c.each(f.path || [], function(i, e) {
|
253 |
-
if (e.length == 2) {
|
254 |
-
j.push(new b.LatLng(e[0], e[1]))
|
255 |
-
}
|
256 |
-
});
|
257 |
-
if (j.length >= 2) {
|
258 |
-
try {
|
259 |
-
new b.Polyline({
|
260 |
-
map: d.map,
|
261 |
-
path: j,
|
262 |
-
strokeColor: f.color || "#000000",
|
263 |
-
strokeOpacity: f.opacity || 1,
|
264 |
-
strokeWeight: f.weight || 3
|
265 |
-
})
|
266 |
-
} catch (h) {}
|
267 |
-
}
|
268 |
-
});
|
269 |
-
c.each(d.options.overlays.polygon || [], function(g, f) {
|
270 |
-
var j = [];
|
271 |
-
c.each(f.path || [], function(i, e) {
|
272 |
-
if (e.length == 2) {
|
273 |
-
j.push(new b.LatLng(e[0], e[1]))
|
274 |
-
}
|
275 |
-
});
|
276 |
-
if (j.length >= 2) {
|
277 |
-
try {
|
278 |
-
new b.Polygon({
|
279 |
-
map: d.map,
|
280 |
-
path: j,
|
281 |
-
strokeColor: f.stroke_color || "#000000",
|
282 |
-
strokeOpacity: f.stroke_opacity || 1,
|
283 |
-
strokeWeight: f.weight || 3,
|
284 |
-
strokePosition: b.StrokePosition[f.position] || b.StrokePosition.CENTER,
|
285 |
-
fillColor: f.fill_color || "#000000",
|
286 |
-
fillOpacity: f.fill_opacity || 0.3
|
287 |
-
})
|
288 |
-
} catch (h) {}
|
289 |
-
}
|
290 |
-
});
|
291 |
-
c.each(d.options.overlays.rectangle || [], function(g, f) {
|
292 |
-
var j = [];
|
293 |
-
c.each(f.path || [], function(i, e) {
|
294 |
-
if (e.length == 2) {
|
295 |
-
j.push(new b.LatLng(e[0], e[1]))
|
296 |
-
}
|
297 |
-
});
|
298 |
-
if (j.length == 2) {
|
299 |
-
try {
|
300 |
-
new b.Rectangle({
|
301 |
-
map: d.map,
|
302 |
-
bounds: new b.LatLngBounds(j[0], j[1]),
|
303 |
-
strokeColor: f.stroke_color || "#000000",
|
304 |
-
strokeOpacity: f.stroke_opacity || 1,
|
305 |
-
strokeWeight: f.weight || 3,
|
306 |
-
strokePosition: b.StrokePosition[f.position] || b.StrokePosition.CENTER,
|
307 |
-
fillColor: f.fill_color || "#000000",
|
308 |
-
fillOpacity: f.fill_opacity || 0.3
|
309 |
-
})
|
310 |
-
} catch (h) {}
|
311 |
-
}
|
312 |
-
});
|
313 |
-
c.each(d.options.overlays.circle || [], function(g, f) {
|
314 |
-
try {
|
315 |
-
new b.Circle({
|
316 |
-
map: d.map,
|
317 |
-
center: new b.LatLng(f.path[0][0], f.path[0][1]),
|
318 |
-
radius: parseFloat(f.path[1][0]),
|
319 |
-
strokeColor: f.stroke_color || "#000000",
|
320 |
-
strokeOpacity: f.stroke_opacity || 1,
|
321 |
-
strokeWeight: f.weight || 3,
|
322 |
-
strokePosition: b.StrokePosition[f.position] || b.StrokePosition.CENTER,
|
323 |
-
fillColor: f.fill_color || "#000000",
|
324 |
-
fillOpacity: f.fill_opacity || 0.3
|
325 |
-
})
|
326 |
-
} catch (h) {}
|
327 |
-
})
|
328 |
-
};
|
329 |
-
a.prototype._renderDirections = function() {
|
330 |
-
var e = this,
|
331 |
-
d = new b.DirectionsService();
|
332 |
-
c.each(e.options.directions || [], function(g, f) {
|
333 |
-
d.route({
|
334 |
-
origin: f.from,
|
335 |
-
destination: f.to,
|
336 |
-
travelMode: b.TravelMode[f.mode] || b.TravelMode.DRIVING
|
337 |
-
}, function(i, h) {
|
338 |
-
if (h == b.DirectionsStatus.OK) {
|
339 |
-
new b.DirectionsRenderer({
|
340 |
-
map: e.map,
|
341 |
-
directions: i
|
342 |
-
})
|
343 |
-
}
|
344 |
-
})
|
345 |
-
})
|
346 |
-
};
|
347 |
-
a.prototype.render = function() {
|
348 |
-
var d = this,
|
349 |
-
j = d.options.layer || {},
|
350 |
-
i = d.options.weather || {},
|
351 |
-
g = d.options.panoramio || {},
|
352 |
-
k = null,
|
353 |
-
f = d.options.adsense || {};
|
354 |
-
if (!d.container) {
|
355 |
-
return false
|
356 |
-
}
|
357 |
-
d.map = new b.Map(d.container, c.extend({
|
358 |
-
center: new b.LatLng(d.options.lat || 48.1366069, d.options.lng || 11.577085099999977),
|
359 |
-
zoom: d.options.zoom || 5,
|
360 |
-
mapTypeId: b.MapTypeId.ROADMAP
|
361 |
-
}, d.options.map || {}));
|
362 |
-
if (d.options.styles && d.options.styles.type) {
|
363 |
-
if (d.options.styles.type == -1) {
|
364 |
-
try {
|
365 |
-
d.map.setOptions({
|
366 |
-
styles: d.options.styles.custom || []
|
367 |
-
})
|
368 |
-
} catch (h) {}
|
369 |
-
} else {
|
370 |
-
if (a.styles[d.options.styles.type] !== undefined) {
|
371 |
-
d.map.setOptions({
|
372 |
-
styles: a.styles[d.options.styles.type]
|
373 |
-
})
|
374 |
-
}
|
375 |
-
}
|
376 |
-
}
|
377 |
-
if (d.options.address) {
|
378 |
-
d._getGeocoder().geocode({
|
379 |
-
address: d.options.address
|
380 |
-
}, function(l, e) {
|
381 |
-
if (e == b.GeocoderStatus.OK) {
|
382 |
-
d.map.setCenter(l[0].geometry.location)
|
383 |
-
}
|
384 |
-
})
|
385 |
-
}
|
386 |
-
if (d.options.overlays) {
|
387 |
-
d._renderOverlays()
|
388 |
-
}
|
389 |
-
if (d.options.directions) {
|
390 |
-
d._renderDirections()
|
391 |
-
}
|
392 |
-
if (j.traffic) {
|
393 |
-
(new b.TrafficLayer()).setMap(d.map)
|
394 |
-
}
|
395 |
-
if (j.bicycling) {
|
396 |
-
(new b.BicyclingLayer()).setMap(d.map)
|
397 |
-
}
|
398 |
-
if (j.weather) {
|
399 |
-
new b.weather.WeatherLayer({
|
400 |
-
map: d.map,
|
401 |
-
temperatureUnits: b.weather.TemperatureUnit[i.temperatureUnits || "CELSIUS"],
|
402 |
-
windSpeedUnits: b.weather.WindSpeedUnit[i.windSpeedUnits || "METERS_PER_SECOND"]
|
403 |
-
})
|
404 |
-
}
|
405 |
-
if (j.cloud) {
|
406 |
-
(new b.weather.CloudLayer()).setMap(d.map)
|
407 |
-
}
|
408 |
-
if (j.panoramio) {
|
409 |
-
new b.panoramio.PanoramioLayer({
|
410 |
-
map: d.map,
|
411 |
-
tag: g.tag || "",
|
412 |
-
userId: g.userId || ""
|
413 |
-
})
|
414 |
-
}
|
415 |
-
if (j.adsense && intergeo_options.adsense.publisher_id && c.trim(intergeo_options.adsense.publisher_id) != "") {
|
416 |
-
k = new b.adsense.AdUnit(document.createElement("div"), {
|
417 |
-
map: d.map,
|
418 |
-
visible: true,
|
419 |
-
publisherId: intergeo_options.adsense.publisher_id,
|
420 |
-
backgroundColor: f.backgroundColor || "",
|
421 |
-
borderColor: f.borderColor || "",
|
422 |
-
textColor: f.urlColor || "",
|
423 |
-
titleColor: f.titleColor || "",
|
424 |
-
urlColor: f.textColor || ""
|
425 |
-
});
|
426 |
-
if (f.position && b.ControlPosition[f.position]) {
|
427 |
-
k.setPosition(b.ControlPosition[f.position])
|
428 |
-
}
|
429 |
-
if (f.format && b.adsense.AdFormat[f.format]) {
|
430 |
-
k.setFormat(b.adsense.AdFormat[f.format])
|
431 |
-
}
|
432 |
-
}
|
433 |
-
var containerID = c(this.container).attr("id");
|
434 |
-
var __map = window.intergeo_maps_maps || [];
|
435 |
-
__map[containerID] = d.map;
|
436 |
-
return true
|
437 |
-
};
|
438 |
-
c(document).ready(function() {
|
439 |
-
var d, e, f = window.intergeo_maps || [];
|
440 |
-
for (d = 0; d < f.length; d++) {
|
441 |
-
e = new a(f[d].container, f[d].options);
|
442 |
-
e.render()
|
443 |
-
}
|
444 |
-
})
|
445 |
-
|
446 |
})(jQuery, google.maps);
|
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 |
+
}, {
|
39 |
+
gamma: 0.5
|
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 |
+
}, {
|
90 |
+
saturation: -78
|
91 |
+
}, {
|
92 |
+
lightness: 0
|
93 |
+
}]
|
94 |
+
}, {
|
95 |
+
featureType: "road.highway",
|
96 |
+
stylers: [{
|
97 |
+
hue: -31
|
98 |
+
}, {
|
99 |
+
saturation: -40
|
100 |
+
}, {
|
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 |
+
}, {
|
114 |
+
saturation: -26
|
115 |
+
}, {
|
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 |
+
}, {
|
128 |
+
saturation: -24.24
|
129 |
+
}, {
|
130 |
+
lightness: -38.57
|
131 |
+
}]
|
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,
|
171 |
+
overviewMapControlOptions: {
|
172 |
+
opened: f
|
173 |
+
},
|
174 |
+
panControl: f,
|
175 |
+
panControlOptions: {
|
176 |
+
position: d
|
177 |
+
},
|
178 |
+
rotateControl: f,
|
179 |
+
rotateControlOptions: {
|
180 |
+
position: d
|
181 |
+
},
|
182 |
+
scaleControl: f,
|
183 |
+
scaleControlOptions: {
|
184 |
+
position: d
|
185 |
+
},
|
186 |
+
streetViewControl: f,
|
187 |
+
streetViewControlOptions: {
|
188 |
+
position: d
|
189 |
+
},
|
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 === "string") {
|
206 |
+
g[i] = h[i](j)
|
207 |
+
} else {
|
208 |
+
c.each(j, function(l, k) {
|
209 |
+
if (h[i][l] === undefined) {
|
210 |
+
delete g[i][l]
|
211 |
+
} else {
|
212 |
+
g[i][l] = h[i][l](k)
|
213 |
+
}
|
214 |
+
})
|
215 |
+
}
|
216 |
+
}
|
217 |
+
})
|
218 |
+
};
|
219 |
+
a.prototype._getGeocoder = function() {
|
220 |
+
if (!a._geocoder) {
|
221 |
+
a._geocoder = new b.Geocoder()
|
222 |
+
}
|
223 |
+
return a._geocoder
|
224 |
+
};
|
225 |
+
a.prototype._renderOverlays = function() {
|
226 |
+
var d = this;
|
227 |
+
c.each(d.options.overlays.marker || [], function(h, g) {
|
228 |
+
var f;
|
229 |
+
try {
|
230 |
+
f = new b.Marker({
|
231 |
+
position: new b.LatLng(g.position[0], g.position[1]),
|
232 |
+
map: d.map,
|
233 |
+
title: g.title || "",
|
234 |
+
icon: g.icon || null
|
235 |
+
});
|
236 |
+
b.event.addListener(f, "click", function() {
|
237 |
+
var i, e = c.trim(g.info || "");
|
238 |
+
if (e.length) {
|
239 |
+
if (d.infowindow) {
|
240 |
+
d.infowindow.close()
|
241 |
+
}
|
242 |
+
i = new b.InfoWindow();
|
243 |
+
i.setContent(e);
|
244 |
+
i.open(d.map, f);
|
245 |
+
d.infowindow = i
|
246 |
+
}
|
247 |
+
})
|
248 |
+
} catch (j) {}
|
249 |
+
});
|
250 |
+
c.each(d.options.overlays.polyline || [], function(g, f) {
|
251 |
+
var j = [];
|
252 |
+
c.each(f.path || [], function(i, e) {
|
253 |
+
if (e.length == 2) {
|
254 |
+
j.push(new b.LatLng(e[0], e[1]))
|
255 |
+
}
|
256 |
+
});
|
257 |
+
if (j.length >= 2) {
|
258 |
+
try {
|
259 |
+
new b.Polyline({
|
260 |
+
map: d.map,
|
261 |
+
path: j,
|
262 |
+
strokeColor: f.color || "#000000",
|
263 |
+
strokeOpacity: f.opacity || 1,
|
264 |
+
strokeWeight: f.weight || 3
|
265 |
+
})
|
266 |
+
} catch (h) {}
|
267 |
+
}
|
268 |
+
});
|
269 |
+
c.each(d.options.overlays.polygon || [], function(g, f) {
|
270 |
+
var j = [];
|
271 |
+
c.each(f.path || [], function(i, e) {
|
272 |
+
if (e.length == 2) {
|
273 |
+
j.push(new b.LatLng(e[0], e[1]))
|
274 |
+
}
|
275 |
+
});
|
276 |
+
if (j.length >= 2) {
|
277 |
+
try {
|
278 |
+
new b.Polygon({
|
279 |
+
map: d.map,
|
280 |
+
path: j,
|
281 |
+
strokeColor: f.stroke_color || "#000000",
|
282 |
+
strokeOpacity: f.stroke_opacity || 1,
|
283 |
+
strokeWeight: f.weight || 3,
|
284 |
+
strokePosition: b.StrokePosition[f.position] || b.StrokePosition.CENTER,
|
285 |
+
fillColor: f.fill_color || "#000000",
|
286 |
+
fillOpacity: f.fill_opacity || 0.3
|
287 |
+
})
|
288 |
+
} catch (h) {}
|
289 |
+
}
|
290 |
+
});
|
291 |
+
c.each(d.options.overlays.rectangle || [], function(g, f) {
|
292 |
+
var j = [];
|
293 |
+
c.each(f.path || [], function(i, e) {
|
294 |
+
if (e.length == 2) {
|
295 |
+
j.push(new b.LatLng(e[0], e[1]))
|
296 |
+
}
|
297 |
+
});
|
298 |
+
if (j.length == 2) {
|
299 |
+
try {
|
300 |
+
new b.Rectangle({
|
301 |
+
map: d.map,
|
302 |
+
bounds: new b.LatLngBounds(j[0], j[1]),
|
303 |
+
strokeColor: f.stroke_color || "#000000",
|
304 |
+
strokeOpacity: f.stroke_opacity || 1,
|
305 |
+
strokeWeight: f.weight || 3,
|
306 |
+
strokePosition: b.StrokePosition[f.position] || b.StrokePosition.CENTER,
|
307 |
+
fillColor: f.fill_color || "#000000",
|
308 |
+
fillOpacity: f.fill_opacity || 0.3
|
309 |
+
})
|
310 |
+
} catch (h) {}
|
311 |
+
}
|
312 |
+
});
|
313 |
+
c.each(d.options.overlays.circle || [], function(g, f) {
|
314 |
+
try {
|
315 |
+
new b.Circle({
|
316 |
+
map: d.map,
|
317 |
+
center: new b.LatLng(f.path[0][0], f.path[0][1]),
|
318 |
+
radius: parseFloat(f.path[1][0]),
|
319 |
+
strokeColor: f.stroke_color || "#000000",
|
320 |
+
strokeOpacity: f.stroke_opacity || 1,
|
321 |
+
strokeWeight: f.weight || 3,
|
322 |
+
strokePosition: b.StrokePosition[f.position] || b.StrokePosition.CENTER,
|
323 |
+
fillColor: f.fill_color || "#000000",
|
324 |
+
fillOpacity: f.fill_opacity || 0.3
|
325 |
+
})
|
326 |
+
} catch (h) {}
|
327 |
+
})
|
328 |
+
};
|
329 |
+
a.prototype._renderDirections = function() {
|
330 |
+
var e = this,
|
331 |
+
d = new b.DirectionsService();
|
332 |
+
c.each(e.options.directions || [], function(g, f) {
|
333 |
+
d.route({
|
334 |
+
origin: f.from,
|
335 |
+
destination: f.to,
|
336 |
+
travelMode: b.TravelMode[f.mode] || b.TravelMode.DRIVING
|
337 |
+
}, function(i, h) {
|
338 |
+
if (h == b.DirectionsStatus.OK) {
|
339 |
+
new b.DirectionsRenderer({
|
340 |
+
map: e.map,
|
341 |
+
directions: i
|
342 |
+
})
|
343 |
+
}
|
344 |
+
})
|
345 |
+
})
|
346 |
+
};
|
347 |
+
a.prototype.render = function() {
|
348 |
+
var d = this,
|
349 |
+
j = d.options.layer || {},
|
350 |
+
i = d.options.weather || {},
|
351 |
+
g = d.options.panoramio || {},
|
352 |
+
k = null,
|
353 |
+
f = d.options.adsense || {};
|
354 |
+
if (!d.container) {
|
355 |
+
return false
|
356 |
+
}
|
357 |
+
d.map = new b.Map(d.container, c.extend({
|
358 |
+
center: new b.LatLng(d.options.lat || 48.1366069, d.options.lng || 11.577085099999977),
|
359 |
+
zoom: d.options.zoom || 5,
|
360 |
+
mapTypeId: b.MapTypeId.ROADMAP
|
361 |
+
}, d.options.map || {}));
|
362 |
+
if (d.options.styles && d.options.styles.type) {
|
363 |
+
if (d.options.styles.type == -1) {
|
364 |
+
try {
|
365 |
+
d.map.setOptions({
|
366 |
+
styles: d.options.styles.custom || []
|
367 |
+
})
|
368 |
+
} catch (h) {}
|
369 |
+
} else {
|
370 |
+
if (a.styles[d.options.styles.type] !== undefined) {
|
371 |
+
d.map.setOptions({
|
372 |
+
styles: a.styles[d.options.styles.type]
|
373 |
+
})
|
374 |
+
}
|
375 |
+
}
|
376 |
+
}
|
377 |
+
if (d.options.address) {
|
378 |
+
d._getGeocoder().geocode({
|
379 |
+
address: d.options.address
|
380 |
+
}, function(l, e) {
|
381 |
+
if (e == b.GeocoderStatus.OK) {
|
382 |
+
d.map.setCenter(l[0].geometry.location)
|
383 |
+
}
|
384 |
+
})
|
385 |
+
}
|
386 |
+
if (d.options.overlays) {
|
387 |
+
d._renderOverlays()
|
388 |
+
}
|
389 |
+
if (d.options.directions) {
|
390 |
+
d._renderDirections()
|
391 |
+
}
|
392 |
+
if (j.traffic) {
|
393 |
+
(new b.TrafficLayer()).setMap(d.map)
|
394 |
+
}
|
395 |
+
if (j.bicycling) {
|
396 |
+
(new b.BicyclingLayer()).setMap(d.map)
|
397 |
+
}
|
398 |
+
if (j.weather) {
|
399 |
+
new b.weather.WeatherLayer({
|
400 |
+
map: d.map,
|
401 |
+
temperatureUnits: b.weather.TemperatureUnit[i.temperatureUnits || "CELSIUS"],
|
402 |
+
windSpeedUnits: b.weather.WindSpeedUnit[i.windSpeedUnits || "METERS_PER_SECOND"]
|
403 |
+
})
|
404 |
+
}
|
405 |
+
if (j.cloud) {
|
406 |
+
(new b.weather.CloudLayer()).setMap(d.map)
|
407 |
+
}
|
408 |
+
if (j.panoramio) {
|
409 |
+
new b.panoramio.PanoramioLayer({
|
410 |
+
map: d.map,
|
411 |
+
tag: g.tag || "",
|
412 |
+
userId: g.userId || ""
|
413 |
+
})
|
414 |
+
}
|
415 |
+
if (j.adsense && intergeo_options.adsense.publisher_id && c.trim(intergeo_options.adsense.publisher_id) != "") {
|
416 |
+
k = new b.adsense.AdUnit(document.createElement("div"), {
|
417 |
+
map: d.map,
|
418 |
+
visible: true,
|
419 |
+
publisherId: intergeo_options.adsense.publisher_id,
|
420 |
+
backgroundColor: f.backgroundColor || "",
|
421 |
+
borderColor: f.borderColor || "",
|
422 |
+
textColor: f.urlColor || "",
|
423 |
+
titleColor: f.titleColor || "",
|
424 |
+
urlColor: f.textColor || ""
|
425 |
+
});
|
426 |
+
if (f.position && b.ControlPosition[f.position]) {
|
427 |
+
k.setPosition(b.ControlPosition[f.position])
|
428 |
+
}
|
429 |
+
if (f.format && b.adsense.AdFormat[f.format]) {
|
430 |
+
k.setFormat(b.adsense.AdFormat[f.format])
|
431 |
+
}
|
432 |
+
}
|
433 |
+
var containerID = c(this.container).attr("id");
|
434 |
+
var __map = window.intergeo_maps_maps || [];
|
435 |
+
__map[containerID] = d.map;
|
436 |
+
return true
|
437 |
+
};
|
438 |
+
c(document).ready(function() {
|
439 |
+
var d, e, f = window.intergeo_maps || [];
|
440 |
+
for (d = 0; d < f.length; d++) {
|
441 |
+
e = new a(f[d].container, f[d].options);
|
442 |
+
e.render()
|
443 |
+
}
|
444 |
+
})
|
445 |
+
|
446 |
})(jQuery, google.maps);
|
languages/intergeo-en_US.po
CHANGED
@@ -1,1016 +1,1016 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Intergeo 1.0\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2013-02-01 21:40+0300\n"
|
6 |
-
"PO-Revision-Date: 2013-02-01 21:40+0300\n"
|
7 |
-
"Last-Translator: Eugene Manuilov <eugene@manuilov.org>\n"
|
8 |
-
"Language-Team: Intergeo <eugene@manuilov.org>\n"
|
9 |
-
"Language: \n"
|
10 |
-
"MIME-Version: 1.0\n"
|
11 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
-
"Content-Transfer-Encoding: 8bit\n"
|
13 |
-
"X-Poedit-Basepath: ./../../\n"
|
14 |
-
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html__;esc_attr_e;esc_attr__\n"
|
15 |
-
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
-
"X-Poedit-Language: English\n"
|
17 |
-
"X-Poedit-Country: UNITED STATES\n"
|
18 |
-
"X-Poedit-SearchPath-0: intergeo\n"
|
19 |
-
|
20 |
-
#: intergeo/index.php:31
|
21 |
-
#: intergeo/templates/library/list.php:3
|
22 |
-
#: intergeo/templates/iframe/form.php:7
|
23 |
-
msgid "Maps"
|
24 |
-
msgstr "Maps"
|
25 |
-
|
26 |
-
#: intergeo/index.php:32
|
27 |
-
msgid "Settings"
|
28 |
-
msgstr "Settings"
|
29 |
-
|
30 |
-
#: intergeo/index.php:81
|
31 |
-
#, php-format
|
32 |
-
msgid "All Maps API applications should load the Maps API using an API key (however it is still possible to use maps without API key). Using an API key enables you to monitor your application's Maps API usage, and ensures that Google can contact you about your application if necessary. If your application's Maps API usage exceeds the %sUsage Limits%s, you must load the Maps API using an API key in order to purchase additional quota. To create your API key:"
|
33 |
-
msgstr "All Maps API applications should load the Maps API using an API key (however it is still possible to use maps without API key). Using an API key enables you to monitor your application's Maps API usage, and ensures that Google can contact you about your application if necessary. If your application's Maps API usage exceeds the %sUsage Limits%s, you must load the Maps API using an API key in order to purchase additional quota. To create your API key:"
|
34 |
-
|
35 |
-
#: intergeo/index.php:84
|
36 |
-
#, php-format
|
37 |
-
msgid "Visit the APIs Console at %shttps://code.google.com/apis/console%s and log in with your Google Account."
|
38 |
-
msgstr "Visit the APIs Console at %shttps://code.google.com/apis/console%s and log in with your Google Account."
|
39 |
-
|
40 |
-
#: intergeo/index.php:85
|
41 |
-
#, php-format
|
42 |
-
msgid "Click the %sServices%s link from the left-hand menu."
|
43 |
-
msgstr "Click the %sServices%s link from the left-hand menu."
|
44 |
-
|
45 |
-
#: intergeo/index.php:86
|
46 |
-
#, php-format
|
47 |
-
msgid "Activate the %sGoogle Maps API v3%s service."
|
48 |
-
msgstr "Activate the %sGoogle Maps API v3%s service."
|
49 |
-
|
50 |
-
#: intergeo/index.php:87
|
51 |
-
msgid "Click the %1$sAPI Access%2$s link from the left-hand menu. Your API key is available from the %1$sAPI Access%2$s page, in the %1$Simple API Access%2$s section. Maps API applications use the %1$sKey for browser apps%2$s."
|
52 |
-
msgstr "Click the %1$sAPI Access%2$s link from the left-hand menu. Your API key is available from the %1$sAPI Access%2$s page, in the %1$Simple API Access%2$s section. Maps API applications use the %1$sKey for browser apps%2$s."
|
53 |
-
|
54 |
-
#: intergeo/index.php:94
|
55 |
-
#, php-format
|
56 |
-
msgid "Adding display ads to your map requires that you have an AdSense account enabled for AdSense for Content. If you don't yet have an AdSense account, %1$ssign up%3$s for one. Once you have done so (or if you already have an account) make sure you've also enabled the account with %2$sAdSense for Content%3$s."
|
57 |
-
msgstr "Adding display ads to your map requires that you have an AdSense account enabled for AdSense for Content. If you don't yet have an AdSense account, %1$ssign up%3$s for one. Once you have done so (or if you already have an account) make sure you've also enabled the account with %2$sAdSense for Content%3$s."
|
58 |
-
|
59 |
-
#: intergeo/index.php:96
|
60 |
-
msgid "Once you have an Adsense for Content account, you will have received an AdSense for Content (AFC) publisher ID. This publisher ID is used to link any advertising shown to your AdSense account, allowing you to share in advertising revenue when a user clicks on one of the ads shown on your maps."
|
61 |
-
msgstr "Once you have an Adsense for Content account, you will have received an AdSense for Content (AFC) publisher ID. This publisher ID is used to link any advertising shown to your AdSense account, allowing you to share in advertising revenue when a user clicks on one of the ads shown on your maps."
|
62 |
-
|
63 |
-
#: intergeo/index.php:180
|
64 |
-
msgid "Intergeo Maps"
|
65 |
-
msgstr "Intergeo Maps"
|
66 |
-
|
67 |
-
#: intergeo/index.php:217
|
68 |
-
#: intergeo/templates/iframe/overlays.php:26
|
69 |
-
#: intergeo/templates/iframe/overlays.php:49
|
70 |
-
msgid "marker"
|
71 |
-
msgstr "marker"
|
72 |
-
|
73 |
-
#: intergeo/index.php:219
|
74 |
-
msgid "Styles are broken. Please, fix it and try again."
|
75 |
-
msgstr "Styles are broken. Please, fix it and try again."
|
76 |
-
|
77 |
-
#: intergeo/index.php:220
|
78 |
-
msgid "Direction was not found."
|
79 |
-
msgstr "Maps"
|
80 |
-
|
81 |
-
#: intergeo/index.php:235
|
82 |
-
msgid "Insert into post"
|
83 |
-
msgstr "Insert into post"
|
84 |
-
|
85 |
-
#: intergeo/index.php:238
|
86 |
-
msgid "Create the map"
|
87 |
-
msgstr "Create the map"
|
88 |
-
|
89 |
-
#: intergeo/index.php:253
|
90 |
-
msgid "Update the map"
|
91 |
-
msgstr "Update the map"
|
92 |
-
|
93 |
-
#: intergeo/index.php:621
|
94 |
-
msgid "The map has been updated successfully."
|
95 |
-
msgstr "The map has been updated successfully."
|
96 |
-
|
97 |
-
#: intergeo/index.php:622
|
98 |
-
msgid "The map has been created successfully."
|
99 |
-
msgstr "The map has been created successfully."
|
100 |
-
|
101 |
-
#: intergeo/index.php:630
|
102 |
-
msgid "The map updating failed."
|
103 |
-
msgstr "The map updating failed."
|
104 |
-
|
105 |
-
#: intergeo/index.php:631
|
106 |
-
msgid "The map creation failed."
|
107 |
-
msgstr "The map creation failed."
|
108 |
-
|
109 |
-
#: intergeo/index.php:768
|
110 |
-
msgid "Overview"
|
111 |
-
msgstr "Overview"
|
112 |
-
|
113 |
-
#: intergeo/index.php:771
|
114 |
-
msgid "The library is a list to view all maps you have created in your system. The library is showing you 3x3 grid of maps' previews. You will see the same maps embedded into your posts at front end, as you see here. The library is paginated and if you have more than 9 maps, you will see pagination links under maps grid."
|
115 |
-
msgstr "The library is a list to view all maps you have created in your system. The library is showing you 3x3 grid of maps' previews. You will see the same maps embedded into your posts at front end, as you see here. The library is paginated and if you have more than 9 maps, you will see pagination links under maps grid."
|
116 |
-
|
117 |
-
#: intergeo/index.php:772
|
118 |
-
msgid "To create a new map, click on \"Add New\" button next to the page title and map editor popup will appear. In case you want to edit a map, you can click on pencil icon in the right bottom corner of map preview box and edit popup window will appear."
|
119 |
-
msgstr "To create a new map, click on \"Add New\" button next to the page title and map editor popup will appear. In case you want to edit a map, you can click on pencil icon in the right bottom corner of map preview box and edit popup window will appear."
|
120 |
-
|
121 |
-
#: intergeo/index.php:773
|
122 |
-
msgid "If you want to delete a map, click on the trash icon in the right bottom corner of a map and confirm your action. Pay attention that whole information about the map will be removed from the system, but all shortcodes will be left where you embed it. However these deprecated shortcodes won't be rendered anymore, so you don't have to worry about it while the plugin is enabled."
|
123 |
-
msgstr "If you want to delete a map, click on the trash icon in the right bottom corner of a map and confirm your action. Pay attention that whole information about the map will be removed from the system, but all shortcodes will be left where you embed it. However these deprecated shortcodes won't be rendered anymore, so you don't have to worry about it while the plugin is enabled."
|
124 |
-
|
125 |
-
#: intergeo/index.php:778
|
126 |
-
msgid "Shortcodes"
|
127 |
-
msgstr "Shortcodes"
|
128 |
-
|
129 |
-
#: intergeo/index.php:781
|
130 |
-
msgid "You can easily embed a map into your posts, pages, categories or tags descriptions and text widgets by copying shortcode which you can find in the input field of a map preview box."
|
131 |
-
msgstr "You can easily embed a map into your posts, pages, categories or tags descriptions and text widgets by copying shortcode which you can find in the input field of a map preview box."
|
132 |
-
|
133 |
-
#: intergeo/index.php:782
|
134 |
-
msgid "To specify a certain address just type it inside a shortcode, and a map will be automatically centered at this place. Also each shortcode could be extended with custom attributes like width, height, style, zoom and hook. Use standard CSS values for such attributes as width, height and style. Type an integer between 0 and 19 for zoom attribute. You can use hook attribute to set up a filter hook which you can use in your custom plugin or theme to configure all options of a map."
|
135 |
-
msgstr "To specify a certain address just type it inside a shortcode, and a map will be automatically centered at this place. Also each shortcode could be extended with custom attributes like width, height, style, zoom and hook. Use standard CSS values for such attributes as width, height and style. Type an integer between 0 and 19 for zoom attribute. You can use hook attribute to set up a filter hook which you can use in your custom plugin or theme to configure all options of a map."
|
136 |
-
|
137 |
-
#: intergeo/index.php:841
|
138 |
-
msgid "The map was deleted successfully."
|
139 |
-
msgstr "The map was deleted successfully."
|
140 |
-
|
141 |
-
#: intergeo/templates/library/list.php:4
|
142 |
-
msgid "Add New"
|
143 |
-
msgstr "Add New"
|
144 |
-
|
145 |
-
#: intergeo/templates/library/list.php:45
|
146 |
-
msgid "Edit"
|
147 |
-
msgstr "Edit"
|
148 |
-
|
149 |
-
#: intergeo/templates/library/list.php:46
|
150 |
-
msgid "Copy"
|
151 |
-
msgstr "Copy"
|
152 |
-
|
153 |
-
#: intergeo/templates/library/list.php:47
|
154 |
-
msgid "Delete"
|
155 |
-
msgstr "Delete"
|
156 |
-
|
157 |
-
#: intergeo/templates/library/list.php:81
|
158 |
-
msgid "You do not have created maps. Start adding it by clicking \"Add New\" button."
|
159 |
-
msgstr "You do not have created maps. Start adding it by clicking \"Add New\" button."
|
160 |
-
|
161 |
-
#: intergeo/templates/iframe/layers.php:1
|
162 |
-
msgid "Layers"
|
163 |
-
msgstr "Layers"
|
164 |
-
|
165 |
-
#: intergeo/templates/iframe/layers.php:4
|
166 |
-
msgid "Traffic layer"
|
167 |
-
msgstr "Traffic layer"
|
168 |
-
|
169 |
-
#: intergeo/templates/iframe/layers.php:11
|
170 |
-
#: intergeo/templates/iframe/layers.php:27
|
171 |
-
#: intergeo/templates/iframe/layers.php:103
|
172 |
-
#: intergeo/templates/iframe/controls.php:12
|
173 |
-
#: intergeo/templates/iframe/controls.php:86
|
174 |
-
#: intergeo/templates/iframe/controls.php:148
|
175 |
-
#: intergeo/templates/iframe/controls.php:210
|
176 |
-
#: intergeo/templates/iframe/controls.php:311
|
177 |
-
#: intergeo/templates/iframe/controls.php:373
|
178 |
-
#: intergeo/templates/iframe/controls.php:435
|
179 |
-
msgid "Enabled"
|
180 |
-
msgstr "Enabled"
|
181 |
-
|
182 |
-
#: intergeo/templates/iframe/layers.php:15
|
183 |
-
#, php-format
|
184 |
-
msgid "Allows you to add real-time traffic information (where supported) to your map. Traffic information is provided for the time at which the request is made. Consult %s this spreadsheet %s to determine traffic coverage support."
|
185 |
-
msgstr "Allows you to add real-time traffic information (where supported) to your map. Traffic information is provided for the time at which the request is made. Consult %s this spreadsheet %s to determine traffic coverage support."
|
186 |
-
|
187 |
-
#: intergeo/templates/iframe/layers.php:20
|
188 |
-
msgid "Bicycling layer"
|
189 |
-
msgstr "Bicycling layer"
|
190 |
-
|
191 |
-
#: intergeo/templates/iframe/layers.php:31
|
192 |
-
msgid "Allows you to add bicycle information to your map. It renders a layer of bike paths, suggested bike routes and other overlays specific to bicycling usage on top of the given map. Additionally, the layer alters the style of the base map itself to emphasize streets supporting bicycle routes and de-emphasize streets inappropriate for bicycles."
|
193 |
-
msgstr "Allows you to add bicycle information to your map. It renders a layer of bike paths, suggested bike routes and other overlays specific to bicycling usage on top of the given map. Additionally, the layer alters the style of the base map itself to emphasize streets supporting bicycle routes and de-emphasize streets inappropriate for bicycles."
|
194 |
-
|
195 |
-
#: intergeo/templates/iframe/layers.php:36
|
196 |
-
msgid "Weather & Cloud layers"
|
197 |
-
msgstr "Weather & Cloud layers"
|
198 |
-
|
199 |
-
#: intergeo/templates/iframe/layers.php:43
|
200 |
-
msgid "Enabled cloud"
|
201 |
-
msgstr "Enabled cloud"
|
202 |
-
|
203 |
-
#: intergeo/templates/iframe/layers.php:47
|
204 |
-
msgid "Allows you to add the display of cloud imagery on your map. Enabling the cloud layer will add cloud coverage imagery to your map, visible at low zoom levels."
|
205 |
-
msgstr "Allows you to add the display of cloud imagery on your map. Enabling the cloud layer will add cloud coverage imagery to your map, visible at low zoom levels."
|
206 |
-
|
207 |
-
#: intergeo/templates/iframe/layers.php:54
|
208 |
-
msgid "Enabled weather"
|
209 |
-
msgstr "Enabled weather"
|
210 |
-
|
211 |
-
#: intergeo/templates/iframe/layers.php:58
|
212 |
-
msgid "Allows you to add the display of weather data on your map. Enabling the weather layer will show current weather conditions from weather.com on your map, including icons that denote sun, clouds, rain and so on."
|
213 |
-
msgstr "Allows you to add the display of weather data on your map. Enabling the weather layer will show current weather conditions from weather.com on your map, including icons that denote sun, clouds, rain and so on."
|
214 |
-
|
215 |
-
#: intergeo/templates/iframe/layers.php:65
|
216 |
-
msgid "temperature units"
|
217 |
-
msgstr "temperature units"
|
218 |
-
|
219 |
-
#: intergeo/templates/iframe/layers.php:68
|
220 |
-
msgid "Celsius"
|
221 |
-
msgstr "Celsius"
|
222 |
-
|
223 |
-
#: intergeo/templates/iframe/layers.php:71
|
224 |
-
msgid "Fahrenheit"
|
225 |
-
msgstr "Fahrenheit"
|
226 |
-
|
227 |
-
#: intergeo/templates/iframe/layers.php:78
|
228 |
-
msgid "wind speed units"
|
229 |
-
msgstr "wind speed units"
|
230 |
-
|
231 |
-
#: intergeo/templates/iframe/layers.php:81
|
232 |
-
msgid "kilometers per hour"
|
233 |
-
msgstr "kilometers per hour"
|
234 |
-
|
235 |
-
#: intergeo/templates/iframe/layers.php:84
|
236 |
-
msgid "meters per second"
|
237 |
-
msgstr "meters per second"
|
238 |
-
|
239 |
-
#: intergeo/templates/iframe/layers.php:87
|
240 |
-
msgid "miles per hour"
|
241 |
-
msgstr "miles per hour"
|
242 |
-
|
243 |
-
#: intergeo/templates/iframe/layers.php:96
|
244 |
-
msgid "Panoramio layer"
|
245 |
-
msgstr "Panoramio layer"
|
246 |
-
|
247 |
-
#: intergeo/templates/iframe/layers.php:107
|
248 |
-
msgid "Allows you to add photos from Panoramio as a layer to your map. It renders a layer of geotagged photo icons from Panoramio on the map as a series of large and small photo icons."
|
249 |
-
msgstr "Allows you to add photos from Panoramio as a layer to your map. It renders a layer of geotagged photo icons from Panoramio on the map as a series of large and small photo icons."
|
250 |
-
|
251 |
-
#: intergeo/templates/iframe/layers.php:111
|
252 |
-
msgid "Restricting photos by tag"
|
253 |
-
msgstr "Restricting photos by tag"
|
254 |
-
|
255 |
-
#: intergeo/templates/iframe/layers.php:115
|
256 |
-
msgid "Allows you to restrict the set of photos to display on the map to those matching a certain textual tag."
|
257 |
-
msgstr "Allows you to restrict the set of photos to display on the map to those matching a certain textual tag."
|
258 |
-
|
259 |
-
#: intergeo/templates/iframe/layers.php:119
|
260 |
-
msgid "Restricting photos by user id"
|
261 |
-
msgstr "Restricting photos by user id"
|
262 |
-
|
263 |
-
#: intergeo/templates/iframe/layers.php:123
|
264 |
-
msgid "Allows you to restrict the set of photos to display on the map to those matching a particular user."
|
265 |
-
msgstr "Allows you to restrict the set of photos to display on the map to those matching a particular user."
|
266 |
-
|
267 |
-
#: intergeo/templates/iframe/form.php:34
|
268 |
-
msgid "The center of the map"
|
269 |
-
msgstr "The center of the map"
|
270 |
-
|
271 |
-
#: intergeo/templates/iframe/form.php:37
|
272 |
-
msgid "Go to
|
273 |
-
msgstr "Go to
|
274 |
-
|
275 |
-
#: intergeo/templates/iframe/overlays.php:1
|
276 |
-
msgid "Overlays"
|
277 |
-
msgstr "Overlays"
|
278 |
-
|
279 |
-
#: intergeo/templates/iframe/overlays.php:5
|
280 |
-
msgid "Drawing tools allows you to add overlays over the map. You can add markers, polylines, polygons, circles and rectangles. To enable drawing tools just put a tick in the checkbox below."
|
281 |
-
msgstr "Drawing tools allows you to add overlays over the map. You can add markers, polylines, polygons, circles and rectangles. To enable drawing tools just put a tick in the checkbox below."
|
282 |
-
|
283 |
-
#: intergeo/templates/iframe/overlays.php:8
|
284 |
-
msgid "To delete a marker, just double click on it and an item will be removed."
|
285 |
-
msgstr "To delete a marker, just double click on it and an item will be removed."
|
286 |
-
|
287 |
-
#: intergeo/templates/iframe/overlays.php:16
|
288 |
-
msgid "Enable drawing tools"
|
289 |
-
msgstr "Enable drawing tools"
|
290 |
-
|
291 |
-
#: intergeo/templates/iframe/overlays.php:34
|
292 |
-
#: intergeo/templates/iframe/overlays.php:60
|
293 |
-
msgid "Delete marker"
|
294 |
-
msgstr "Delete marker"
|
295 |
-
|
296 |
-
#: intergeo/templates/iframe/overlays.php:35
|
297 |
-
#: intergeo/templates/iframe/overlays.php:61
|
298 |
-
msgid "Edit marker"
|
299 |
-
msgstr "Edit marker"
|
300 |
-
|
301 |
-
#: intergeo/templates/iframe/overlays.php:41
|
302 |
-
msgid "Markers"
|
303 |
-
msgstr "Markers"
|
304 |
-
|
305 |
-
#: intergeo/templates/iframe/overlays.php:74
|
306 |
-
#: intergeo/templates/iframe/overlays.php:102
|
307 |
-
msgid "polyline"
|
308 |
-
msgstr "polyline"
|
309 |
-
|
310 |
-
#: intergeo/templates/iframe/overlays.php:82
|
311 |
-
#: intergeo/templates/iframe/overlays.php:110
|
312 |
-
msgid "Delete polyline"
|
313 |
-
msgstr "Delete polyline"
|
314 |
-
|
315 |
-
#: intergeo/templates/iframe/overlays.php:83
|
316 |
-
#: intergeo/templates/iframe/overlays.php:111
|
317 |
-
msgid "Edit polyline"
|
318 |
-
msgstr "Edit polyline"
|
319 |
-
|
320 |
-
#: intergeo/templates/iframe/overlays.php:90
|
321 |
-
msgid "Polylines"
|
322 |
-
msgstr "Polylines"
|
323 |
-
|
324 |
-
#: intergeo/templates/iframe/overlays.php:126
|
325 |
-
#: intergeo/templates/iframe/overlays.php:171
|
326 |
-
msgid "rectangle"
|
327 |
-
msgstr "Maps"
|
328 |
-
|
329 |
-
#: intergeo/templates/iframe/overlays.php:137
|
330 |
-
#: intergeo/templates/iframe/overlays.php:182
|
331 |
-
#: intergeo/templates/iframe/overlays.php:210
|
332 |
-
msgid "Delete rectangle"
|
333 |
-
msgstr "Delete rectangle"
|
334 |
-
|
335 |
-
#: intergeo/templates/iframe/overlays.php:138
|
336 |
-
#: intergeo/templates/iframe/overlays.php:183
|
337 |
-
#: intergeo/templates/iframe/overlays.php:211
|
338 |
-
msgid "Edit rectangle"
|
339 |
-
msgstr "Edit rectangle"
|
340 |
-
|
341 |
-
#: intergeo/templates/iframe/overlays.php:146
|
342 |
-
msgid "Rectangles"
|
343 |
-
msgstr "Rectangles"
|
344 |
-
|
345 |
-
#: intergeo/templates/iframe/overlays.php:199
|
346 |
-
#: intergeo/templates/iframe/overlays.php:244
|
347 |
-
msgid "circle"
|
348 |
-
msgstr "circle"
|
349 |
-
|
350 |
-
#: intergeo/templates/iframe/overlays.php:219
|
351 |
-
msgid "Circles"
|
352 |
-
msgstr "Circles"
|
353 |
-
|
354 |
-
#: intergeo/templates/iframe/overlays.php:255
|
355 |
-
msgid "Delete circle"
|
356 |
-
msgstr "Delete circle"
|
357 |
-
|
358 |
-
#: intergeo/templates/iframe/overlays.php:256
|
359 |
-
msgid "Edit circle"
|
360 |
-
msgstr "Edit circle"
|
361 |
-
|
362 |
-
#: intergeo/templates/iframe/overlays.php:272
|
363 |
-
#: intergeo/templates/iframe/overlays.php:317
|
364 |
-
msgid "polygon"
|
365 |
-
msgstr "polygon"
|
366 |
-
|
367 |
-
#: intergeo/templates/iframe/overlays.php:283
|
368 |
-
#: intergeo/templates/iframe/overlays.php:328
|
369 |
-
msgid "Delete polygon"
|
370 |
-
msgstr "Delete polygon"
|
371 |
-
|
372 |
-
#: intergeo/templates/iframe/overlays.php:284
|
373 |
-
#: intergeo/templates/iframe/overlays.php:329
|
374 |
-
msgid "Edit polygon"
|
375 |
-
msgstr "Edit polygon"
|
376 |
-
|
377 |
-
#: intergeo/templates/iframe/overlays.php:292
|
378 |
-
msgid "Polygons"
|
379 |
-
msgstr "Polygons"
|
380 |
-
|
381 |
-
#: intergeo/templates/iframe/positioning.php:1
|
382 |
-
msgid "Positioning & Zooming"
|
383 |
-
msgstr "Positioning & Zooming"
|
384 |
-
|
385 |
-
#: intergeo/templates/iframe/positioning.php:5
|
386 |
-
msgid "If you want to set specific map position and certain level of zooming, just set it up on preview map and these settings will be remembered at published map."
|
387 |
-
msgstr "If you want to set specific map position and certain level of zooming, just set it up on preview map and these settings will be remembered at published map."
|
388 |
-
|
389 |
-
#: intergeo/templates/iframe/positioning.php:9
|
390 |
-
msgid "Positioning"
|
391 |
-
msgstr "Positioning"
|
392 |
-
|
393 |
-
#: intergeo/templates/iframe/positioning.php:12
|
394 |
-
msgid "The initial map type"
|
395 |
-
msgstr "The initial map type"
|
396 |
-
|
397 |
-
#: intergeo/templates/iframe/positioning.php:15
|
398 |
-
#: intergeo/templates/iframe/controls.php:280
|
399 |
-
msgid "Road map"
|
400 |
-
msgstr "Road map"
|
401 |
-
|
402 |
-
#: intergeo/templates/iframe/positioning.php:18
|
403 |
-
#: intergeo/templates/iframe/controls.php:286
|
404 |
-
msgid "Terrain"
|
405 |
-
msgstr "Terrain"
|
406 |
-
|
407 |
-
#: intergeo/templates/iframe/positioning.php:21
|
408 |
-
#: intergeo/templates/iframe/controls.php:292
|
409 |
-
msgid "Satellite"
|
410 |
-
msgstr "Satellite"
|
411 |
-
|
412 |
-
#: intergeo/templates/iframe/positioning.php:24
|
413 |
-
#: intergeo/templates/iframe/controls.php:298
|
414 |
-
msgid "Hybrid"
|
415 |
-
msgstr "Hybrid"
|
416 |
-
|
417 |
-
#: intergeo/templates/iframe/positioning.php:33
|
418 |
-
msgid "Draggable map"
|
419 |
-
msgstr "Draggable map"
|
420 |
-
|
421 |
-
#: intergeo/templates/iframe/positioning.php:37
|
422 |
-
msgid "If unchecked prevents the map from being dragged. Dragging is enabled by default."
|
423 |
-
msgstr "If unchecked prevents the map from being dragged. Dragging is enabled by default."
|
424 |
-
|
425 |
-
#: intergeo/templates/iframe/positioning.php:42
|
426 |
-
msgid "Zooming"
|
427 |
-
msgstr "Zooming"
|
428 |
-
|
429 |
-
#: intergeo/templates/iframe/positioning.php:46
|
430 |
-
msgid "Zoom range values"
|
431 |
-
msgstr "Zoom range values"
|
432 |
-
|
433 |
-
#: intergeo/templates/iframe/positioning.php:59
|
434 |
-
msgid "The maximum (19) and minimum (0) zoom levels which could be displayed on the map."
|
435 |
-
msgstr "The maximum (19) and minimum (0) zoom levels which could be displayed on the map."
|
436 |
-
|
437 |
-
#: intergeo/templates/iframe/positioning.php:66
|
438 |
-
msgid "Scrollwheel zooming"
|
439 |
-
msgstr "Scrollwheel zooming"
|
440 |
-
|
441 |
-
#: intergeo/templates/iframe/positioning.php:70
|
442 |
-
msgid "Determines if scrollwheel zooming is enabled on the map."
|
443 |
-
msgstr "Determines if scrollwheel zooming is enabled on the map."
|
444 |
-
|
445 |
-
#: intergeo/templates/iframe/positioning.php:75
|
446 |
-
msgid "Preview settings"
|
447 |
-
msgstr "Preview settings"
|
448 |
-
|
449 |
-
#: intergeo/templates/iframe/positioning.php:81
|
450 |
-
msgid "Lock preview"
|
451 |
-
msgstr "Lock preview"
|
452 |
-
|
453 |
-
#: intergeo/templates/iframe/positioning.php:85
|
454 |
-
msgid "Lock preview map to preserve changing of the viewport bounds and zoom level. Locking affects only on preview map and won't lock embedded map."
|
455 |
-
msgstr "Lock preview map to preserve changing of the viewport bounds and zoom level. Locking affects only on preview map and won't lock embedded map."
|
456 |
-
|
457 |
-
#: intergeo/templates/iframe/positioning.php:91
|
458 |
-
msgid "Show map center"
|
459 |
-
msgstr "Show map center"
|
460 |
-
|
461 |
-
#: intergeo/templates/iframe/positioning.php:95
|
462 |
-
msgid "Show small red circle at the center of the map. It helps you to centralize the map bounds. Note that this option won't be displayed at frontend."
|
463 |
-
msgstr "Show small red circle at the center of the map. It helps you to centralize the map bounds. Note that this option won't be displayed at frontend."
|
464 |
-
|
465 |
-
#: intergeo/templates/iframe/styles.php:1
|
466 |
-
#: intergeo/templates/iframe/adsense.php:128
|
467 |
-
msgid "Styles"
|
468 |
-
msgstr "Styles"
|
469 |
-
|
470 |
-
#: intergeo/templates/iframe/styles.php:4
|
471 |
-
msgid "Container's Styles"
|
472 |
-
msgstr "Container's Styles"
|
473 |
-
|
474 |
-
#: intergeo/templates/iframe/styles.php:7
|
475 |
-
msgid "Width"
|
476 |
-
msgstr "Width"
|
477 |
-
|
478 |
-
#: intergeo/templates/iframe/styles.php:11
|
479 |
-
msgid "Height"
|
480 |
-
msgstr "Height"
|
481 |
-
|
482 |
-
#: intergeo/templates/iframe/styles.php:15
|
483 |
-
msgid "Extra Styles"
|
484 |
-
msgstr "Extra Styles"
|
485 |
-
|
486 |
-
#: intergeo/templates/iframe/styles.php:21
|
487 |
-
msgid "Predefined Map Styles"
|
488 |
-
msgstr "Predefined Map Styles"
|
489 |
-
|
490 |
-
#: intergeo/templates/iframe/styles.php:66
|
491 |
-
msgid "Custom Map Styles"
|
492 |
-
msgstr "Custom Map Styles"
|
493 |
-
|
494 |
-
#: intergeo/templates/iframe/styles.php:72
|
495 |
-
msgid "Use custom styles"
|
496 |
-
msgstr "Use custom styles"
|
497 |
-
|
498 |
-
#: intergeo/templates/iframe/styles.php:79
|
499 |
-
#, php-format
|
500 |
-
msgid "Creating styles by hand and testing your code to see how they look is potentially time-consuming. Instead, you can use the %sStyled Map Wizard%s to set up the JSON for your map's styles."
|
501 |
-
msgstr "Creating styles by hand and testing your code to see how they look is potentially time-consuming. Instead, you can use the %sStyled Map Wizard%s to set up the JSON for your map's styles."
|
502 |
-
|
503 |
-
#: intergeo/templates/iframe/controls.php:2
|
504 |
-
msgid "Controls"
|
505 |
-
msgstr "Controls"
|
506 |
-
|
507 |
-
#: intergeo/templates/iframe/controls.php:5
|
508 |
-
msgid "Zoom control"
|
509 |
-
msgstr "Zoom control"
|
510 |
-
|
511 |
-
#: intergeo/templates/iframe/controls.php:16
|
512 |
-
msgid "The Zoom control displays a slider (for large maps) or small \"+/-\" buttons (for small maps) to control the zoom level of the map. This control appears by default in the top left corner of the map on non-touch devices or in the bottom left corner on touch devices."
|
513 |
-
msgstr "The Zoom control displays a slider (for large maps) or small \"+/-\" buttons (for small maps) to control the zoom level of the map. This control appears by default in the top left corner of the map on non-touch devices or in the bottom left corner on touch devices."
|
514 |
-
|
515 |
-
#: intergeo/templates/iframe/controls.php:22
|
516 |
-
#: intergeo/templates/iframe/controls.php:96
|
517 |
-
#: intergeo/templates/iframe/controls.php:158
|
518 |
-
#: intergeo/templates/iframe/controls.php:220
|
519 |
-
#: intergeo/templates/iframe/controls.php:321
|
520 |
-
#: intergeo/templates/iframe/controls.php:383
|
521 |
-
#: intergeo/templates/iframe/adsense.php:84
|
522 |
-
msgid "default position"
|
523 |
-
msgstr "default position"
|
524 |
-
|
525 |
-
#: intergeo/templates/iframe/controls.php:24
|
526 |
-
#: intergeo/templates/iframe/controls.php:98
|
527 |
-
#: intergeo/templates/iframe/controls.php:160
|
528 |
-
#: intergeo/templates/iframe/controls.php:222
|
529 |
-
#: intergeo/templates/iframe/controls.php:323
|
530 |
-
#: intergeo/templates/iframe/controls.php:385
|
531 |
-
#: intergeo/templates/iframe/adsense.php:86
|
532 |
-
msgid "Top Left"
|
533 |
-
msgstr "Top Left"
|
534 |
-
|
535 |
-
#: intergeo/templates/iframe/controls.php:27
|
536 |
-
#: intergeo/templates/iframe/controls.php:101
|
537 |
-
#: intergeo/templates/iframe/controls.php:163
|
538 |
-
#: intergeo/templates/iframe/controls.php:225
|
539 |
-
#: intergeo/templates/iframe/controls.php:326
|
540 |
-
#: intergeo/templates/iframe/controls.php:388
|
541 |
-
#: intergeo/templates/iframe/adsense.php:89
|
542 |
-
msgid "Top Center"
|
543 |
-
msgstr "Top Center"
|
544 |
-
|
545 |
-
#: intergeo/templates/iframe/controls.php:30
|
546 |
-
#: intergeo/templates/iframe/controls.php:104
|
547 |
-
#: intergeo/templates/iframe/controls.php:166
|
548 |
-
#: intergeo/templates/iframe/controls.php:228
|
549 |
-
#: intergeo/templates/iframe/controls.php:329
|
550 |
-
#: intergeo/templates/iframe/controls.php:391
|
551 |
-
#: intergeo/templates/iframe/adsense.php:92
|
552 |
-
msgid "Top Right"
|
553 |
-
msgstr "Top Right"
|
554 |
-
|
555 |
-
#: intergeo/templates/iframe/controls.php:33
|
556 |
-
#: intergeo/templates/iframe/controls.php:107
|
557 |
-
#: intergeo/templates/iframe/controls.php:169
|
558 |
-
#: intergeo/templates/iframe/controls.php:231
|
559 |
-
#: intergeo/templates/iframe/controls.php:332
|
560 |
-
#: intergeo/templates/iframe/controls.php:394
|
561 |
-
#: intergeo/templates/iframe/adsense.php:95
|
562 |
-
msgid "Right Top"
|
563 |
-
msgstr "Right Top"
|
564 |
-
|
565 |
-
#: intergeo/templates/iframe/controls.php:36
|
566 |
-
#: intergeo/templates/iframe/controls.php:110
|
567 |
-
#: intergeo/templates/iframe/controls.php:172
|
568 |
-
#: intergeo/templates/iframe/controls.php:234
|
569 |
-
#: intergeo/templates/iframe/controls.php:335
|
570 |
-
#: intergeo/templates/iframe/controls.php:397
|
571 |
-
#: intergeo/templates/iframe/adsense.php:98
|
572 |
-
msgid "Right Center"
|
573 |
-
msgstr "Right Center"
|
574 |
-
|
575 |
-
#: intergeo/templates/iframe/controls.php:39
|
576 |
-
#: intergeo/templates/iframe/controls.php:113
|
577 |
-
#: intergeo/templates/iframe/controls.php:175
|
578 |
-
#: intergeo/templates/iframe/controls.php:237
|
579 |
-
#: intergeo/templates/iframe/controls.php:338
|
580 |
-
#: intergeo/templates/iframe/controls.php:400
|
581 |
-
#: intergeo/templates/iframe/adsense.php:101
|
582 |
-
msgid "Right Bottom"
|
583 |
-
msgstr "Right Bottom"
|
584 |
-
|
585 |
-
#: intergeo/templates/iframe/controls.php:42
|
586 |
-
#: intergeo/templates/iframe/controls.php:116
|
587 |
-
#: intergeo/templates/iframe/controls.php:178
|
588 |
-
#: intergeo/templates/iframe/controls.php:240
|
589 |
-
#: intergeo/templates/iframe/controls.php:341
|
590 |
-
#: intergeo/templates/iframe/controls.php:403
|
591 |
-
#: intergeo/templates/iframe/adsense.php:104
|
592 |
-
msgid "Bottom Right"
|
593 |
-
msgstr "Bottom Right"
|
594 |
-
|
595 |
-
#: intergeo/templates/iframe/controls.php:45
|
596 |
-
#: intergeo/templates/iframe/controls.php:119
|
597 |
-
#: intergeo/templates/iframe/controls.php:181
|
598 |
-
#: intergeo/templates/iframe/controls.php:243
|
599 |
-
#: intergeo/templates/iframe/controls.php:344
|
600 |
-
#: intergeo/templates/iframe/controls.php:406
|
601 |
-
#: intergeo/templates/iframe/adsense.php:107
|
602 |
-
msgid "Bottom Center"
|
603 |
-
msgstr "Bottom Center"
|
604 |
-
|
605 |
-
#: intergeo/templates/iframe/controls.php:48
|
606 |
-
#: intergeo/templates/iframe/controls.php:122
|
607 |
-
#: intergeo/templates/iframe/controls.php:184
|
608 |
-
#: intergeo/templates/iframe/controls.php:246
|
609 |
-
#: intergeo/templates/iframe/controls.php:347
|
610 |
-
#: intergeo/templates/iframe/controls.php:409
|
611 |
-
#: intergeo/templates/iframe/adsense.php:110
|
612 |
-
msgid "Bottom Left"
|
613 |
-
msgstr "Bottom Left"
|
614 |
-
|
615 |
-
#: intergeo/templates/iframe/controls.php:51
|
616 |
-
#: intergeo/templates/iframe/controls.php:125
|
617 |
-
#: intergeo/templates/iframe/controls.php:187
|
618 |
-
#: intergeo/templates/iframe/controls.php:249
|
619 |
-
#: intergeo/templates/iframe/controls.php:350
|
620 |
-
#: intergeo/templates/iframe/controls.php:412
|
621 |
-
#: intergeo/templates/iframe/adsense.php:113
|
622 |
-
msgid "Left Bottom"
|
623 |
-
msgstr "Left Bottom"
|
624 |
-
|
625 |
-
#: intergeo/templates/iframe/controls.php:54
|
626 |
-
#: intergeo/templates/iframe/controls.php:128
|
627 |
-
#: intergeo/templates/iframe/controls.php:190
|
628 |
-
#: intergeo/templates/iframe/controls.php:252
|
629 |
-
#: intergeo/templates/iframe/controls.php:353
|
630 |
-
#: intergeo/templates/iframe/controls.php:415
|
631 |
-
#: intergeo/templates/iframe/adsense.php:116
|
632 |
-
msgid "Left Center"
|
633 |
-
msgstr "Left Center"
|
634 |
-
|
635 |
-
#: intergeo/templates/iframe/controls.php:57
|
636 |
-
#: intergeo/templates/iframe/controls.php:131
|
637 |
-
#: intergeo/templates/iframe/controls.php:193
|
638 |
-
#: intergeo/templates/iframe/controls.php:255
|
639 |
-
#: intergeo/templates/iframe/controls.php:356
|
640 |
-
#: intergeo/templates/iframe/controls.php:418
|
641 |
-
#: intergeo/templates/iframe/adsense.php:119
|
642 |
-
msgid "Left Top"
|
643 |
-
msgstr "Left Top"
|
644 |
-
|
645 |
-
#: intergeo/templates/iframe/controls.php:64
|
646 |
-
#: intergeo/templates/iframe/controls.php:262
|
647 |
-
msgid "default style"
|
648 |
-
msgstr "default style"
|
649 |
-
|
650 |
-
#: intergeo/templates/iframe/controls.php:67
|
651 |
-
msgid "small"
|
652 |
-
msgstr "small"
|
653 |
-
|
654 |
-
#: intergeo/templates/iframe/controls.php:70
|
655 |
-
msgid "large"
|
656 |
-
msgstr "large"
|
657 |
-
|
658 |
-
#: intergeo/templates/iframe/controls.php:79
|
659 |
-
msgid "Pan control"
|
660 |
-
msgstr "Pan control"
|
661 |
-
|
662 |
-
#: intergeo/templates/iframe/controls.php:90
|
663 |
-
msgid "The Pan control displays buttons for panning the map. This control appears by default in the top left corner of the map on non-touch devices. The Pan control also allows you to rotate 45° imagery, if available."
|
664 |
-
msgstr "The Pan control displays buttons for panning the map. This control appears by default in the top left corner of the map on non-touch devices. The Pan control also allows you to rotate 45° imagery, if available."
|
665 |
-
|
666 |
-
#: intergeo/templates/iframe/controls.php:141
|
667 |
-
msgid "Scale control"
|
668 |
-
msgstr "Scale control"
|
669 |
-
|
670 |
-
#: intergeo/templates/iframe/controls.php:152
|
671 |
-
msgid "The Scale control displays a map scale element. This control is not enabled by default."
|
672 |
-
msgstr "The Scale control displays a map scale element. This control is not enabled by default."
|
673 |
-
|
674 |
-
#: intergeo/templates/iframe/controls.php:203
|
675 |
-
msgid "MapType control"
|
676 |
-
msgstr "MapType control"
|
677 |
-
|
678 |
-
#: intergeo/templates/iframe/controls.php:214
|
679 |
-
msgid "The MapType control lets the user toggle between map types (such as roadmap and satellite). This control appears by default in the top right corner of the map."
|
680 |
-
msgstr "The MapType control lets the user toggle between map types (such as roadmap and satellite). This control appears by default in the top right corner of the map."
|
681 |
-
|
682 |
-
#: intergeo/templates/iframe/controls.php:265
|
683 |
-
msgid "dropdown menu"
|
684 |
-
msgstr "dropdown menu"
|
685 |
-
|
686 |
-
#: intergeo/templates/iframe/controls.php:268
|
687 |
-
msgid "horizontal bar"
|
688 |
-
msgstr "horizontal bar"
|
689 |
-
|
690 |
-
#: intergeo/templates/iframe/controls.php:275
|
691 |
-
msgid "Map types:"
|
692 |
-
msgstr "Map types:"
|
693 |
-
|
694 |
-
#: intergeo/templates/iframe/controls.php:278
|
695 |
-
msgid "This map type displays a normal street map."
|
696 |
-
msgstr "This map type displays a normal street map."
|
697 |
-
|
698 |
-
#: intergeo/templates/iframe/controls.php:284
|
699 |
-
msgid "This map type displays maps with physical features such as terrain and vegetation."
|
700 |
-
msgstr "This map type displays maps with physical features such as terrain and vegetation."
|
701 |
-
|
702 |
-
#: intergeo/templates/iframe/controls.php:290
|
703 |
-
msgid "This map type displays satellite images."
|
704 |
-
msgstr "This map type displays satellite images."
|
705 |
-
|
706 |
-
#: intergeo/templates/iframe/controls.php:296
|
707 |
-
msgid "This map type displays a transparent layer of major streets on satellite images."
|
708 |
-
msgstr "This map type displays a transparent layer of major streets on satellite images."
|
709 |
-
|
710 |
-
#: intergeo/templates/iframe/controls.php:304
|
711 |
-
msgid "Street View control"
|
712 |
-
msgstr "Street View control"
|
713 |
-
|
714 |
-
#: intergeo/templates/iframe/controls.php:315
|
715 |
-
msgid "The Street View control contains a Pegman icon which can be dragged onto the map to enable Street View. This control appears by default in the top left corner of the map."
|
716 |
-
msgstr "The Street View control contains a Pegman icon which can be dragged onto the map to enable Street View. This control appears by default in the top left corner of the map."
|
717 |
-
|
718 |
-
#: intergeo/templates/iframe/controls.php:366
|
719 |
-
msgid "Rotate control"
|
720 |
-
msgstr "Rotate control"
|
721 |
-
|
722 |
-
#: intergeo/templates/iframe/controls.php:377
|
723 |
-
msgid "The Rotate control contains a small circular icon which allows you to rotate maps containing oblique imagery. This control appears by default in the top left corner of the map."
|
724 |
-
msgstr "The Rotate control contains a small circular icon which allows you to rotate maps containing oblique imagery. This control appears by default in the top left corner of the map."
|
725 |
-
|
726 |
-
#: intergeo/templates/iframe/controls.php:428
|
727 |
-
msgid "Overview Map control"
|
728 |
-
msgstr "Overview Map control"
|
729 |
-
|
730 |
-
#: intergeo/templates/iframe/controls.php:439
|
731 |
-
msgid "The Overview Map control displays a thumbnail overview map reflecting the current map viewport within a wider area. This control appears by default in the bottom right corner of the map, and is by default shown in its collapsed state."
|
732 |
-
msgstr "The Overview Map control displays a thumbnail overview map reflecting the current map viewport within a wider area. This control appears by default in the bottom right corner of the map, and is by default shown in its collapsed state."
|
733 |
-
|
734 |
-
#: intergeo/templates/iframe/controls.php:445
|
735 |
-
msgid "Opened"
|
736 |
-
msgstr "Opened"
|
737 |
-
|
738 |
-
#: intergeo/templates/iframe/popups.php:5
|
739 |
-
msgid "Go To Address"
|
740 |
-
msgstr "Go To Address"
|
741 |
-
|
742 |
-
#: intergeo/templates/iframe/popups.php:10
|
743 |
-
msgid "Type an address you want to go to"
|
744 |
-
msgstr "Type an address you want to go to"
|
745 |
-
|
746 |
-
#: intergeo/templates/iframe/popups.php:13
|
747 |
-
msgid "Go"
|
748 |
-
msgstr "Go"
|
749 |
-
|
750 |
-
#: intergeo/templates/iframe/popups.php:24
|
751 |
-
msgid "Marker Options"
|
752 |
-
msgstr "Marker Options"
|
753 |
-
|
754 |
-
#: intergeo/templates/iframe/popups.php:31
|
755 |
-
#: intergeo/templates/iframe/popups.php:32
|
756 |
-
msgid "Enter title"
|
757 |
-
msgstr "Enter title"
|
758 |
-
|
759 |
-
#: intergeo/templates/iframe/popups.php:39
|
760 |
-
#: intergeo/templates/iframe/popups.php:40
|
761 |
-
msgid "Enter icon URL"
|
762 |
-
msgstr "Enter icon URL"
|
763 |
-
|
764 |
-
#: intergeo/templates/iframe/popups.php:47
|
765 |
-
#: intergeo/templates/iframe/popups.php:48
|
766 |
-
msgid "Enter html for info window"
|
767 |
-
msgstr "Enter html for info window"
|
768 |
-
|
769 |
-
#: intergeo/templates/iframe/popups.php:54
|
770 |
-
#: intergeo/templates/iframe/popups.php:89
|
771 |
-
#: intergeo/templates/iframe/popups.php:157
|
772 |
-
msgid "Update"
|
773 |
-
msgstr "Update"
|
774 |
-
|
775 |
-
#: intergeo/templates/iframe/popups.php:65
|
776 |
-
msgid "Polyline Options"
|
777 |
-
msgstr "Polyline Options"
|
778 |
-
|
779 |
-
#: intergeo/templates/iframe/popups.php:72
|
780 |
-
#: intergeo/templates/iframe/popups.php:73
|
781 |
-
#: intergeo/templates/iframe/popups.php:112
|
782 |
-
#: intergeo/templates/iframe/popups.php:113
|
783 |
-
msgid "Stroke weight in pixel"
|
784 |
-
msgstr "Stroke weight in pixel"
|
785 |
-
|
786 |
-
#: intergeo/templates/iframe/popups.php:78
|
787 |
-
#: intergeo/templates/iframe/popups.php:79
|
788 |
-
#: intergeo/templates/iframe/popups.php:118
|
789 |
-
#: intergeo/templates/iframe/popups.php:119
|
790 |
-
msgid "Stroke opacity from 0.0 to 1.0"
|
791 |
-
msgstr "Stroke opacity from 0.0 to 1.0"
|
792 |
-
|
793 |
-
#: intergeo/templates/iframe/popups.php:100
|
794 |
-
msgid "Polygon Options"
|
795 |
-
msgstr "Polygon Options"
|
796 |
-
|
797 |
-
#: intergeo/templates/iframe/popups.php:105
|
798 |
-
msgid "Stroke options"
|
799 |
-
msgstr "Stroke options"
|
800 |
-
|
801 |
-
#: intergeo/templates/iframe/popups.php:125
|
802 |
-
msgid "stroke position"
|
803 |
-
msgstr "stroke position"
|
804 |
-
|
805 |
-
#: intergeo/templates/iframe/popups.php:126
|
806 |
-
msgid "center"
|
807 |
-
msgstr "center"
|
808 |
-
|
809 |
-
#: intergeo/templates/iframe/popups.php:127
|
810 |
-
msgid "inside the object"
|
811 |
-
msgstr "inside the object"
|
812 |
-
|
813 |
-
#: intergeo/templates/iframe/popups.php:128
|
814 |
-
msgid "outside the object"
|
815 |
-
msgstr "outside the object"
|
816 |
-
|
817 |
-
#: intergeo/templates/iframe/popups.php:139
|
818 |
-
msgid "Fill options"
|
819 |
-
msgstr "Fill options"
|
820 |
-
|
821 |
-
#: intergeo/templates/iframe/popups.php:146
|
822 |
-
#: intergeo/templates/iframe/popups.php:147
|
823 |
-
msgid "Fill opacity from 0.0 to 1.0"
|
824 |
-
msgstr "Fill opacity from 0.0 to 1.0"
|
825 |
-
|
826 |
-
#: intergeo/templates/iframe/popups.php:168
|
827 |
-
msgid "Direction Options"
|
828 |
-
msgstr "Direction Options"
|
829 |
-
|
830 |
-
#: intergeo/templates/iframe/popups.php:175
|
831 |
-
#: intergeo/templates/iframe/popups.php:176
|
832 |
-
msgid "The start location from which to calculate directions"
|
833 |
-
msgstr "The start location from which to calculate directions"
|
834 |
-
|
835 |
-
#: intergeo/templates/iframe/popups.php:183
|
836 |
-
#: intergeo/templates/iframe/popups.php:184
|
837 |
-
msgid "The end location to which to calculate directions"
|
838 |
-
msgstr "The end location to which to calculate directions"
|
839 |
-
|
840 |
-
#: intergeo/templates/iframe/popups.php:190
|
841 |
-
#: intergeo/templates/iframe/directions.php:60
|
842 |
-
msgid "via standard driving directions"
|
843 |
-
msgstr "via standard driving directions"
|
844 |
-
|
845 |
-
#: intergeo/templates/iframe/popups.php:191
|
846 |
-
#: intergeo/templates/iframe/directions.php:50
|
847 |
-
msgid "via bicycle paths & preferred streets"
|
848 |
-
msgstr "via bicycle paths & preferred streets"
|
849 |
-
|
850 |
-
#: intergeo/templates/iframe/popups.php:192
|
851 |
-
#: intergeo/templates/iframe/directions.php:53
|
852 |
-
msgid "via public transit routes"
|
853 |
-
msgstr "via public transit routes"
|
854 |
-
|
855 |
-
#: intergeo/templates/iframe/popups.php:193
|
856 |
-
#: intergeo/templates/iframe/directions.php:56
|
857 |
-
msgid "via pedestrian paths & sidewalks"
|
858 |
-
msgstr "via pedestrian paths & sidewalks"
|
859 |
-
|
860 |
-
#: intergeo/templates/iframe/popups.php:199
|
861 |
-
msgid "Save"
|
862 |
-
msgstr "Save"
|
863 |
-
|
864 |
-
#: intergeo/templates/iframe/adsense.php:1
|
865 |
-
msgid "AdSense Integration"
|
866 |
-
msgstr "AdSense Integration"
|
867 |
-
|
868 |
-
#: intergeo/templates/iframe/adsense.php:6
|
869 |
-
#, php-format
|
870 |
-
msgid "To make AdSense working on your maps, you have to setup your publisher ID. You can do it at the %ssettings page%s."
|
871 |
-
msgstr "To make AdSense working on your maps, you have to setup your publisher ID. You can do it at the %ssettings page%s."
|
872 |
-
|
873 |
-
#: intergeo/templates/iframe/adsense.php:24
|
874 |
-
msgid "default format"
|
875 |
-
msgstr "default format"
|
876 |
-
|
877 |
-
#: intergeo/templates/iframe/adsense.php:27
|
878 |
-
msgid "Leaderboard"
|
879 |
-
msgstr "Leaderboard"
|
880 |
-
|
881 |
-
#: intergeo/templates/iframe/adsense.php:30
|
882 |
-
msgid "Banner"
|
883 |
-
msgstr "Banner"
|
884 |
-
|
885 |
-
#: intergeo/templates/iframe/adsense.php:33
|
886 |
-
msgid "Half Banner"
|
887 |
-
msgstr "Half Banner"
|
888 |
-
|
889 |
-
#: intergeo/templates/iframe/adsense.php:36
|
890 |
-
msgid "Skyscraper"
|
891 |
-
msgstr "Skyscraper"
|
892 |
-
|
893 |
-
#: intergeo/templates/iframe/adsense.php:39
|
894 |
-
msgid "Wide Skyscraper"
|
895 |
-
msgstr "Wide Skyscraper"
|
896 |
-
|
897 |
-
#: intergeo/templates/iframe/adsense.php:42
|
898 |
-
msgid "Vertical Banner"
|
899 |
-
msgstr "Vertical Banner"
|
900 |
-
|
901 |
-
#: intergeo/templates/iframe/adsense.php:45
|
902 |
-
msgid "Button"
|
903 |
-
msgstr "Button"
|
904 |
-
|
905 |
-
#: intergeo/templates/iframe/adsense.php:48
|
906 |
-
msgid "Small Square"
|
907 |
-
msgstr "Small Square"
|
908 |
-
|
909 |
-
#: intergeo/templates/iframe/adsense.php:51
|
910 |
-
msgid "Square"
|
911 |
-
msgstr "Square"
|
912 |
-
|
913 |
-
#: intergeo/templates/iframe/adsense.php:54
|
914 |
-
msgid "Small Rectangle"
|
915 |
-
msgstr "Small Rectangle"
|
916 |
-
|
917 |
-
#: intergeo/templates/iframe/adsense.php:57
|
918 |
-
msgid "Medium Rectangle"
|
919 |
-
msgstr "Medium Rectangle"
|
920 |
-
|
921 |
-
#: intergeo/templates/iframe/adsense.php:60
|
922 |
-
msgid "Large Rectangle"
|
923 |
-
msgstr "Large Rectangle"
|
924 |
-
|
925 |
-
#: intergeo/templates/iframe/adsense.php:63
|
926 |
-
msgid "Small Vertical Link Unit"
|
927 |
-
msgstr "Small Vertical Link Unit"
|
928 |
-
|
929 |
-
#: intergeo/templates/iframe/adsense.php:66
|
930 |
-
msgid "Medium Vertical Link Unit"
|
931 |
-
msgstr "Medium Vertical Link Unit"
|
932 |
-
|
933 |
-
#: intergeo/templates/iframe/adsense.php:69
|
934 |
-
msgid "Large Vertical Link Unit"
|
935 |
-
msgstr "Large Vertical Link Unit"
|
936 |
-
|
937 |
-
#: intergeo/templates/iframe/adsense.php:72
|
938 |
-
msgid "Extra Large Vertical Link Unit"
|
939 |
-
msgstr "Extra Large Vertical Link Unit"
|
940 |
-
|
941 |
-
#: intergeo/templates/iframe/adsense.php:75
|
942 |
-
msgid "Small Horizontal Link Unit"
|
943 |
-
msgstr "Small Horizontal Link Unit"
|
944 |
-
|
945 |
-
#: intergeo/templates/iframe/adsense.php:78
|
946 |
-
msgid "Large Horizontal Link Unit"
|
947 |
-
msgstr "Large Horizontal Link Unit"
|
948 |
-
|
949 |
-
#: intergeo/templates/iframe/adsense.php:131
|
950 |
-
msgid "Background color"
|
951 |
-
msgstr "Background color"
|
952 |
-
|
953 |
-
#: intergeo/templates/iframe/adsense.php:134
|
954 |
-
#: intergeo/templates/iframe/adsense.php:140
|
955 |
-
#: intergeo/templates/iframe/adsense.php:146
|
956 |
-
#: intergeo/templates/iframe/adsense.php:152
|
957 |
-
#: intergeo/templates/iframe/adsense.php:158
|
958 |
-
msgid "Hex Value"
|
959 |
-
msgstr "Hex Value"
|
960 |
-
|
961 |
-
#: intergeo/templates/iframe/adsense.php:137
|
962 |
-
msgid "Border color"
|
963 |
-
msgstr "Border color"
|
964 |
-
|
965 |
-
#: intergeo/templates/iframe/adsense.php:143
|
966 |
-
msgid "Title color"
|
967 |
-
msgstr "Title color"
|
968 |
-
|
969 |
-
#: intergeo/templates/iframe/adsense.php:149
|
970 |
-
msgid "Text color"
|
971 |
-
msgstr "Text color"
|
972 |
-
|
973 |
-
#: intergeo/templates/iframe/adsense.php:155
|
974 |
-
msgid "URL color"
|
975 |
-
msgstr "URL color"
|
976 |
-
|
977 |
-
#: intergeo/templates/iframe/directions.php:1
|
978 |
-
msgid "Directions"
|
979 |
-
msgstr "Directions"
|
980 |
-
|
981 |
-
#: intergeo/templates/iframe/directions.php:5
|
982 |
-
msgid "To add a new direction just click the button below:"
|
983 |
-
msgstr "To add a new direction just click the button below:"
|
984 |
-
|
985 |
-
#: intergeo/templates/iframe/directions.php:10
|
986 |
-
msgid "Add Direction"
|
987 |
-
msgstr "Add Direction"
|
988 |
-
|
989 |
-
#: intergeo/templates/iframe/directions.php:16
|
990 |
-
#: intergeo/templates/iframe/directions.php:22
|
991 |
-
#: intergeo/templates/iframe/directions.php:43
|
992 |
-
msgid "from"
|
993 |
-
msgstr "from"
|
994 |
-
|
995 |
-
#: intergeo/templates/iframe/directions.php:16
|
996 |
-
#: intergeo/templates/iframe/directions.php:22
|
997 |
-
#: intergeo/templates/iframe/directions.php:45
|
998 |
-
msgid "to"
|
999 |
-
msgstr "to"
|
1000 |
-
|
1001 |
-
#: intergeo/templates/iframe/directions.php:29
|
1002 |
-
#: intergeo/templates/iframe/directions.php:70
|
1003 |
-
msgid "Delete direction"
|
1004 |
-
msgstr "Delete direction"
|
1005 |
-
|
1006 |
-
#: intergeo/templates/iframe/directions.php:30
|
1007 |
-
#: intergeo/templates/iframe/directions.php:71
|
1008 |
-
msgid "Edit direction"
|
1009 |
-
msgstr "Edit direction"
|
1010 |
-
|
1011 |
-
#: intergeo/templates/iframe/directions.php:35
|
1012 |
-
msgid "Created directions"
|
1013 |
-
msgstr "Created directions"
|
1014 |
-
|
1015 |
-
#~ msgid "Direction calculation process failed."
|
1016 |
-
#~ msgstr "Direction calculation process failed."
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Intergeo 1.0\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2013-02-01 21:40+0300\n"
|
6 |
+
"PO-Revision-Date: 2013-02-01 21:40+0300\n"
|
7 |
+
"Last-Translator: Eugene Manuilov <eugene@manuilov.org>\n"
|
8 |
+
"Language-Team: Intergeo <eugene@manuilov.org>\n"
|
9 |
+
"Language: \n"
|
10 |
+
"MIME-Version: 1.0\n"
|
11 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
+
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Poedit-Basepath: ./../../\n"
|
14 |
+
"X-Poedit-KeywordsList: __;_e;esc_html_e;esc_html__;esc_attr_e;esc_attr__\n"
|
15 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
+
"X-Poedit-Language: English\n"
|
17 |
+
"X-Poedit-Country: UNITED STATES\n"
|
18 |
+
"X-Poedit-SearchPath-0: intergeo\n"
|
19 |
+
|
20 |
+
#: intergeo/index.php:31
|
21 |
+
#: intergeo/templates/library/list.php:3
|
22 |
+
#: intergeo/templates/iframe/form.php:7
|
23 |
+
msgid "Maps"
|
24 |
+
msgstr "Maps"
|
25 |
+
|
26 |
+
#: intergeo/index.php:32
|
27 |
+
msgid "Settings"
|
28 |
+
msgstr "Settings"
|
29 |
+
|
30 |
+
#: intergeo/index.php:81
|
31 |
+
#, php-format
|
32 |
+
msgid "All Maps API applications should load the Maps API using an API key (however it is still possible to use maps without API key). Using an API key enables you to monitor your application's Maps API usage, and ensures that Google can contact you about your application if necessary. If your application's Maps API usage exceeds the %sUsage Limits%s, you must load the Maps API using an API key in order to purchase additional quota. To create your API key:"
|
33 |
+
msgstr "All Maps API applications should load the Maps API using an API key (however it is still possible to use maps without API key). Using an API key enables you to monitor your application's Maps API usage, and ensures that Google can contact you about your application if necessary. If your application's Maps API usage exceeds the %sUsage Limits%s, you must load the Maps API using an API key in order to purchase additional quota. To create your API key:"
|
34 |
+
|
35 |
+
#: intergeo/index.php:84
|
36 |
+
#, php-format
|
37 |
+
msgid "Visit the APIs Console at %shttps://code.google.com/apis/console%s and log in with your Google Account."
|
38 |
+
msgstr "Visit the APIs Console at %shttps://code.google.com/apis/console%s and log in with your Google Account."
|
39 |
+
|
40 |
+
#: intergeo/index.php:85
|
41 |
+
#, php-format
|
42 |
+
msgid "Click the %sServices%s link from the left-hand menu."
|
43 |
+
msgstr "Click the %sServices%s link from the left-hand menu."
|
44 |
+
|
45 |
+
#: intergeo/index.php:86
|
46 |
+
#, php-format
|
47 |
+
msgid "Activate the %sGoogle Maps API v3%s service."
|
48 |
+
msgstr "Activate the %sGoogle Maps API v3%s service."
|
49 |
+
|
50 |
+
#: intergeo/index.php:87
|
51 |
+
msgid "Click the %1$sAPI Access%2$s link from the left-hand menu. Your API key is available from the %1$sAPI Access%2$s page, in the %1$Simple API Access%2$s section. Maps API applications use the %1$sKey for browser apps%2$s."
|
52 |
+
msgstr "Click the %1$sAPI Access%2$s link from the left-hand menu. Your API key is available from the %1$sAPI Access%2$s page, in the %1$Simple API Access%2$s section. Maps API applications use the %1$sKey for browser apps%2$s."
|
53 |
+
|
54 |
+
#: intergeo/index.php:94
|
55 |
+
#, php-format
|
56 |
+
msgid "Adding display ads to your map requires that you have an AdSense account enabled for AdSense for Content. If you don't yet have an AdSense account, %1$ssign up%3$s for one. Once you have done so (or if you already have an account) make sure you've also enabled the account with %2$sAdSense for Content%3$s."
|
57 |
+
msgstr "Adding display ads to your map requires that you have an AdSense account enabled for AdSense for Content. If you don't yet have an AdSense account, %1$ssign up%3$s for one. Once you have done so (or if you already have an account) make sure you've also enabled the account with %2$sAdSense for Content%3$s."
|
58 |
+
|
59 |
+
#: intergeo/index.php:96
|
60 |
+
msgid "Once you have an Adsense for Content account, you will have received an AdSense for Content (AFC) publisher ID. This publisher ID is used to link any advertising shown to your AdSense account, allowing you to share in advertising revenue when a user clicks on one of the ads shown on your maps."
|
61 |
+
msgstr "Once you have an Adsense for Content account, you will have received an AdSense for Content (AFC) publisher ID. This publisher ID is used to link any advertising shown to your AdSense account, allowing you to share in advertising revenue when a user clicks on one of the ads shown on your maps."
|
62 |
+
|
63 |
+
#: intergeo/index.php:180
|
64 |
+
msgid "Intergeo Maps"
|
65 |
+
msgstr "Intergeo Maps"
|
66 |
+
|
67 |
+
#: intergeo/index.php:217
|
68 |
+
#: intergeo/templates/iframe/overlays.php:26
|
69 |
+
#: intergeo/templates/iframe/overlays.php:49
|
70 |
+
msgid "marker"
|
71 |
+
msgstr "marker"
|
72 |
+
|
73 |
+
#: intergeo/index.php:219
|
74 |
+
msgid "Styles are broken. Please, fix it and try again."
|
75 |
+
msgstr "Styles are broken. Please, fix it and try again."
|
76 |
+
|
77 |
+
#: intergeo/index.php:220
|
78 |
+
msgid "Direction was not found."
|
79 |
+
msgstr "Maps"
|
80 |
+
|
81 |
+
#: intergeo/index.php:235
|
82 |
+
msgid "Insert into post"
|
83 |
+
msgstr "Insert into post"
|
84 |
+
|
85 |
+
#: intergeo/index.php:238
|
86 |
+
msgid "Create the map"
|
87 |
+
msgstr "Create the map"
|
88 |
+
|
89 |
+
#: intergeo/index.php:253
|
90 |
+
msgid "Update the map"
|
91 |
+
msgstr "Update the map"
|
92 |
+
|
93 |
+
#: intergeo/index.php:621
|
94 |
+
msgid "The map has been updated successfully."
|
95 |
+
msgstr "The map has been updated successfully."
|
96 |
+
|
97 |
+
#: intergeo/index.php:622
|
98 |
+
msgid "The map has been created successfully."
|
99 |
+
msgstr "The map has been created successfully."
|
100 |
+
|
101 |
+
#: intergeo/index.php:630
|
102 |
+
msgid "The map updating failed."
|
103 |
+
msgstr "The map updating failed."
|
104 |
+
|
105 |
+
#: intergeo/index.php:631
|
106 |
+
msgid "The map creation failed."
|
107 |
+
msgstr "The map creation failed."
|
108 |
+
|
109 |
+
#: intergeo/index.php:768
|
110 |
+
msgid "Overview"
|
111 |
+
msgstr "Overview"
|
112 |
+
|
113 |
+
#: intergeo/index.php:771
|
114 |
+
msgid "The library is a list to view all maps you have created in your system. The library is showing you 3x3 grid of maps' previews. You will see the same maps embedded into your posts at front end, as you see here. The library is paginated and if you have more than 9 maps, you will see pagination links under maps grid."
|
115 |
+
msgstr "The library is a list to view all maps you have created in your system. The library is showing you 3x3 grid of maps' previews. You will see the same maps embedded into your posts at front end, as you see here. The library is paginated and if you have more than 9 maps, you will see pagination links under maps grid."
|
116 |
+
|
117 |
+
#: intergeo/index.php:772
|
118 |
+
msgid "To create a new map, click on \"Add New\" button next to the page title and map editor popup will appear. In case you want to edit a map, you can click on pencil icon in the right bottom corner of map preview box and edit popup window will appear."
|
119 |
+
msgstr "To create a new map, click on \"Add New\" button next to the page title and map editor popup will appear. In case you want to edit a map, you can click on pencil icon in the right bottom corner of map preview box and edit popup window will appear."
|
120 |
+
|
121 |
+
#: intergeo/index.php:773
|
122 |
+
msgid "If you want to delete a map, click on the trash icon in the right bottom corner of a map and confirm your action. Pay attention that whole information about the map will be removed from the system, but all shortcodes will be left where you embed it. However these deprecated shortcodes won't be rendered anymore, so you don't have to worry about it while the plugin is enabled."
|
123 |
+
msgstr "If you want to delete a map, click on the trash icon in the right bottom corner of a map and confirm your action. Pay attention that whole information about the map will be removed from the system, but all shortcodes will be left where you embed it. However these deprecated shortcodes won't be rendered anymore, so you don't have to worry about it while the plugin is enabled."
|
124 |
+
|
125 |
+
#: intergeo/index.php:778
|
126 |
+
msgid "Shortcodes"
|
127 |
+
msgstr "Shortcodes"
|
128 |
+
|
129 |
+
#: intergeo/index.php:781
|
130 |
+
msgid "You can easily embed a map into your posts, pages, categories or tags descriptions and text widgets by copying shortcode which you can find in the input field of a map preview box."
|
131 |
+
msgstr "You can easily embed a map into your posts, pages, categories or tags descriptions and text widgets by copying shortcode which you can find in the input field of a map preview box."
|
132 |
+
|
133 |
+
#: intergeo/index.php:782
|
134 |
+
msgid "To specify a certain address just type it inside a shortcode, and a map will be automatically centered at this place. Also each shortcode could be extended with custom attributes like width, height, style, zoom and hook. Use standard CSS values for such attributes as width, height and style. Type an integer between 0 and 19 for zoom attribute. You can use hook attribute to set up a filter hook which you can use in your custom plugin or theme to configure all options of a map."
|
135 |
+
msgstr "To specify a certain address just type it inside a shortcode, and a map will be automatically centered at this place. Also each shortcode could be extended with custom attributes like width, height, style, zoom and hook. Use standard CSS values for such attributes as width, height and style. Type an integer between 0 and 19 for zoom attribute. You can use hook attribute to set up a filter hook which you can use in your custom plugin or theme to configure all options of a map."
|
136 |
+
|
137 |
+
#: intergeo/index.php:841
|
138 |
+
msgid "The map was deleted successfully."
|
139 |
+
msgstr "The map was deleted successfully."
|
140 |
+
|
141 |
+
#: intergeo/templates/library/list.php:4
|
142 |
+
msgid "Add New"
|
143 |
+
msgstr "Add New"
|
144 |
+
|
145 |
+
#: intergeo/templates/library/list.php:45
|
146 |
+
msgid "Edit"
|
147 |
+
msgstr "Edit"
|
148 |
+
|
149 |
+
#: intergeo/templates/library/list.php:46
|
150 |
+
msgid "Copy"
|
151 |
+
msgstr "Copy"
|
152 |
+
|
153 |
+
#: intergeo/templates/library/list.php:47
|
154 |
+
msgid "Delete"
|
155 |
+
msgstr "Delete"
|
156 |
+
|
157 |
+
#: intergeo/templates/library/list.php:81
|
158 |
+
msgid "You do not have created maps. Start adding it by clicking \"Add New\" button."
|
159 |
+
msgstr "You do not have created maps. Start adding it by clicking \"Add New\" button."
|
160 |
+
|
161 |
+
#: intergeo/templates/iframe/layers.php:1
|
162 |
+
msgid "Layers"
|
163 |
+
msgstr "Layers"
|
164 |
+
|
165 |
+
#: intergeo/templates/iframe/layers.php:4
|
166 |
+
msgid "Traffic layer"
|
167 |
+
msgstr "Traffic layer"
|
168 |
+
|
169 |
+
#: intergeo/templates/iframe/layers.php:11
|
170 |
+
#: intergeo/templates/iframe/layers.php:27
|
171 |
+
#: intergeo/templates/iframe/layers.php:103
|
172 |
+
#: intergeo/templates/iframe/controls.php:12
|
173 |
+
#: intergeo/templates/iframe/controls.php:86
|
174 |
+
#: intergeo/templates/iframe/controls.php:148
|
175 |
+
#: intergeo/templates/iframe/controls.php:210
|
176 |
+
#: intergeo/templates/iframe/controls.php:311
|
177 |
+
#: intergeo/templates/iframe/controls.php:373
|
178 |
+
#: intergeo/templates/iframe/controls.php:435
|
179 |
+
msgid "Enabled"
|
180 |
+
msgstr "Enabled"
|
181 |
+
|
182 |
+
#: intergeo/templates/iframe/layers.php:15
|
183 |
+
#, php-format
|
184 |
+
msgid "Allows you to add real-time traffic information (where supported) to your map. Traffic information is provided for the time at which the request is made. Consult %s this spreadsheet %s to determine traffic coverage support."
|
185 |
+
msgstr "Allows you to add real-time traffic information (where supported) to your map. Traffic information is provided for the time at which the request is made. Consult %s this spreadsheet %s to determine traffic coverage support."
|
186 |
+
|
187 |
+
#: intergeo/templates/iframe/layers.php:20
|
188 |
+
msgid "Bicycling layer"
|
189 |
+
msgstr "Bicycling layer"
|
190 |
+
|
191 |
+
#: intergeo/templates/iframe/layers.php:31
|
192 |
+
msgid "Allows you to add bicycle information to your map. It renders a layer of bike paths, suggested bike routes and other overlays specific to bicycling usage on top of the given map. Additionally, the layer alters the style of the base map itself to emphasize streets supporting bicycle routes and de-emphasize streets inappropriate for bicycles."
|
193 |
+
msgstr "Allows you to add bicycle information to your map. It renders a layer of bike paths, suggested bike routes and other overlays specific to bicycling usage on top of the given map. Additionally, the layer alters the style of the base map itself to emphasize streets supporting bicycle routes and de-emphasize streets inappropriate for bicycles."
|
194 |
+
|
195 |
+
#: intergeo/templates/iframe/layers.php:36
|
196 |
+
msgid "Weather & Cloud layers"
|
197 |
+
msgstr "Weather & Cloud layers"
|
198 |
+
|
199 |
+
#: intergeo/templates/iframe/layers.php:43
|
200 |
+
msgid "Enabled cloud"
|
201 |
+
msgstr "Enabled cloud"
|
202 |
+
|
203 |
+
#: intergeo/templates/iframe/layers.php:47
|
204 |
+
msgid "Allows you to add the display of cloud imagery on your map. Enabling the cloud layer will add cloud coverage imagery to your map, visible at low zoom levels."
|
205 |
+
msgstr "Allows you to add the display of cloud imagery on your map. Enabling the cloud layer will add cloud coverage imagery to your map, visible at low zoom levels."
|
206 |
+
|
207 |
+
#: intergeo/templates/iframe/layers.php:54
|
208 |
+
msgid "Enabled weather"
|
209 |
+
msgstr "Enabled weather"
|
210 |
+
|
211 |
+
#: intergeo/templates/iframe/layers.php:58
|
212 |
+
msgid "Allows you to add the display of weather data on your map. Enabling the weather layer will show current weather conditions from weather.com on your map, including icons that denote sun, clouds, rain and so on."
|
213 |
+
msgstr "Allows you to add the display of weather data on your map. Enabling the weather layer will show current weather conditions from weather.com on your map, including icons that denote sun, clouds, rain and so on."
|
214 |
+
|
215 |
+
#: intergeo/templates/iframe/layers.php:65
|
216 |
+
msgid "temperature units"
|
217 |
+
msgstr "temperature units"
|
218 |
+
|
219 |
+
#: intergeo/templates/iframe/layers.php:68
|
220 |
+
msgid "Celsius"
|
221 |
+
msgstr "Celsius"
|
222 |
+
|
223 |
+
#: intergeo/templates/iframe/layers.php:71
|
224 |
+
msgid "Fahrenheit"
|
225 |
+
msgstr "Fahrenheit"
|
226 |
+
|
227 |
+
#: intergeo/templates/iframe/layers.php:78
|
228 |
+
msgid "wind speed units"
|
229 |
+
msgstr "wind speed units"
|
230 |
+
|
231 |
+
#: intergeo/templates/iframe/layers.php:81
|
232 |
+
msgid "kilometers per hour"
|
233 |
+
msgstr "kilometers per hour"
|
234 |
+
|
235 |
+
#: intergeo/templates/iframe/layers.php:84
|
236 |
+
msgid "meters per second"
|
237 |
+
msgstr "meters per second"
|
238 |
+
|
239 |
+
#: intergeo/templates/iframe/layers.php:87
|
240 |
+
msgid "miles per hour"
|
241 |
+
msgstr "miles per hour"
|
242 |
+
|
243 |
+
#: intergeo/templates/iframe/layers.php:96
|
244 |
+
msgid "Panoramio layer"
|
245 |
+
msgstr "Panoramio layer"
|
246 |
+
|
247 |
+
#: intergeo/templates/iframe/layers.php:107
|
248 |
+
msgid "Allows you to add photos from Panoramio as a layer to your map. It renders a layer of geotagged photo icons from Panoramio on the map as a series of large and small photo icons."
|
249 |
+
msgstr "Allows you to add photos from Panoramio as a layer to your map. It renders a layer of geotagged photo icons from Panoramio on the map as a series of large and small photo icons."
|
250 |
+
|
251 |
+
#: intergeo/templates/iframe/layers.php:111
|
252 |
+
msgid "Restricting photos by tag"
|
253 |
+
msgstr "Restricting photos by tag"
|
254 |
+
|
255 |
+
#: intergeo/templates/iframe/layers.php:115
|
256 |
+
msgid "Allows you to restrict the set of photos to display on the map to those matching a certain textual tag."
|
257 |
+
msgstr "Allows you to restrict the set of photos to display on the map to those matching a certain textual tag."
|
258 |
+
|
259 |
+
#: intergeo/templates/iframe/layers.php:119
|
260 |
+
msgid "Restricting photos by user id"
|
261 |
+
msgstr "Restricting photos by user id"
|
262 |
+
|
263 |
+
#: intergeo/templates/iframe/layers.php:123
|
264 |
+
msgid "Allows you to restrict the set of photos to display on the map to those matching a particular user."
|
265 |
+
msgstr "Allows you to restrict the set of photos to display on the map to those matching a particular user."
|
266 |
+
|
267 |
+
#: intergeo/templates/iframe/form.php:34
|
268 |
+
msgid "The center of the map"
|
269 |
+
msgstr "The center of the map"
|
270 |
+
|
271 |
+
#: intergeo/templates/iframe/form.php:37
|
272 |
+
msgid "Go to address"
|
273 |
+
msgstr "Go to address"
|
274 |
+
|
275 |
+
#: intergeo/templates/iframe/overlays.php:1
|
276 |
+
msgid "Overlays"
|
277 |
+
msgstr "Overlays"
|
278 |
+
|
279 |
+
#: intergeo/templates/iframe/overlays.php:5
|
280 |
+
msgid "Drawing tools allows you to add overlays over the map. You can add markers, polylines, polygons, circles and rectangles. To enable drawing tools just put a tick in the checkbox below."
|
281 |
+
msgstr "Drawing tools allows you to add overlays over the map. You can add markers, polylines, polygons, circles and rectangles. To enable drawing tools just put a tick in the checkbox below."
|
282 |
+
|
283 |
+
#: intergeo/templates/iframe/overlays.php:8
|
284 |
+
msgid "To delete a marker, just double click on it and an item will be removed."
|
285 |
+
msgstr "To delete a marker, just double click on it and an item will be removed."
|
286 |
+
|
287 |
+
#: intergeo/templates/iframe/overlays.php:16
|
288 |
+
msgid "Enable drawing tools"
|
289 |
+
msgstr "Enable drawing tools"
|
290 |
+
|
291 |
+
#: intergeo/templates/iframe/overlays.php:34
|
292 |
+
#: intergeo/templates/iframe/overlays.php:60
|
293 |
+
msgid "Delete marker"
|
294 |
+
msgstr "Delete marker"
|
295 |
+
|
296 |
+
#: intergeo/templates/iframe/overlays.php:35
|
297 |
+
#: intergeo/templates/iframe/overlays.php:61
|
298 |
+
msgid "Edit marker"
|
299 |
+
msgstr "Edit marker"
|
300 |
+
|
301 |
+
#: intergeo/templates/iframe/overlays.php:41
|
302 |
+
msgid "Markers"
|
303 |
+
msgstr "Markers"
|
304 |
+
|
305 |
+
#: intergeo/templates/iframe/overlays.php:74
|
306 |
+
#: intergeo/templates/iframe/overlays.php:102
|
307 |
+
msgid "polyline"
|
308 |
+
msgstr "polyline"
|
309 |
+
|
310 |
+
#: intergeo/templates/iframe/overlays.php:82
|
311 |
+
#: intergeo/templates/iframe/overlays.php:110
|
312 |
+
msgid "Delete polyline"
|
313 |
+
msgstr "Delete polyline"
|
314 |
+
|
315 |
+
#: intergeo/templates/iframe/overlays.php:83
|
316 |
+
#: intergeo/templates/iframe/overlays.php:111
|
317 |
+
msgid "Edit polyline"
|
318 |
+
msgstr "Edit polyline"
|
319 |
+
|
320 |
+
#: intergeo/templates/iframe/overlays.php:90
|
321 |
+
msgid "Polylines"
|
322 |
+
msgstr "Polylines"
|
323 |
+
|
324 |
+
#: intergeo/templates/iframe/overlays.php:126
|
325 |
+
#: intergeo/templates/iframe/overlays.php:171
|
326 |
+
msgid "rectangle"
|
327 |
+
msgstr "Maps"
|
328 |
+
|
329 |
+
#: intergeo/templates/iframe/overlays.php:137
|
330 |
+
#: intergeo/templates/iframe/overlays.php:182
|
331 |
+
#: intergeo/templates/iframe/overlays.php:210
|
332 |
+
msgid "Delete rectangle"
|
333 |
+
msgstr "Delete rectangle"
|
334 |
+
|
335 |
+
#: intergeo/templates/iframe/overlays.php:138
|
336 |
+
#: intergeo/templates/iframe/overlays.php:183
|
337 |
+
#: intergeo/templates/iframe/overlays.php:211
|
338 |
+
msgid "Edit rectangle"
|
339 |
+
msgstr "Edit rectangle"
|
340 |
+
|
341 |
+
#: intergeo/templates/iframe/overlays.php:146
|
342 |
+
msgid "Rectangles"
|
343 |
+
msgstr "Rectangles"
|
344 |
+
|
345 |
+
#: intergeo/templates/iframe/overlays.php:199
|
346 |
+
#: intergeo/templates/iframe/overlays.php:244
|
347 |
+
msgid "circle"
|
348 |
+
msgstr "circle"
|
349 |
+
|
350 |
+
#: intergeo/templates/iframe/overlays.php:219
|
351 |
+
msgid "Circles"
|
352 |
+
msgstr "Circles"
|
353 |
+
|
354 |
+
#: intergeo/templates/iframe/overlays.php:255
|
355 |
+
msgid "Delete circle"
|
356 |
+
msgstr "Delete circle"
|
357 |
+
|
358 |
+
#: intergeo/templates/iframe/overlays.php:256
|
359 |
+
msgid "Edit circle"
|
360 |
+
msgstr "Edit circle"
|
361 |
+
|
362 |
+
#: intergeo/templates/iframe/overlays.php:272
|
363 |
+
#: intergeo/templates/iframe/overlays.php:317
|
364 |
+
msgid "polygon"
|
365 |
+
msgstr "polygon"
|
366 |
+
|
367 |
+
#: intergeo/templates/iframe/overlays.php:283
|
368 |
+
#: intergeo/templates/iframe/overlays.php:328
|
369 |
+
msgid "Delete polygon"
|
370 |
+
msgstr "Delete polygon"
|
371 |
+
|
372 |
+
#: intergeo/templates/iframe/overlays.php:284
|
373 |
+
#: intergeo/templates/iframe/overlays.php:329
|
374 |
+
msgid "Edit polygon"
|
375 |
+
msgstr "Edit polygon"
|
376 |
+
|
377 |
+
#: intergeo/templates/iframe/overlays.php:292
|
378 |
+
msgid "Polygons"
|
379 |
+
msgstr "Polygons"
|
380 |
+
|
381 |
+
#: intergeo/templates/iframe/positioning.php:1
|
382 |
+
msgid "Positioning & Zooming"
|
383 |
+
msgstr "Positioning & Zooming"
|
384 |
+
|
385 |
+
#: intergeo/templates/iframe/positioning.php:5
|
386 |
+
msgid "If you want to set specific map position and certain level of zooming, just set it up on preview map and these settings will be remembered at published map."
|
387 |
+
msgstr "If you want to set specific map position and certain level of zooming, just set it up on preview map and these settings will be remembered at published map."
|
388 |
+
|
389 |
+
#: intergeo/templates/iframe/positioning.php:9
|
390 |
+
msgid "Positioning"
|
391 |
+
msgstr "Positioning"
|
392 |
+
|
393 |
+
#: intergeo/templates/iframe/positioning.php:12
|
394 |
+
msgid "The initial map type"
|
395 |
+
msgstr "The initial map type"
|
396 |
+
|
397 |
+
#: intergeo/templates/iframe/positioning.php:15
|
398 |
+
#: intergeo/templates/iframe/controls.php:280
|
399 |
+
msgid "Road map"
|
400 |
+
msgstr "Road map"
|
401 |
+
|
402 |
+
#: intergeo/templates/iframe/positioning.php:18
|
403 |
+
#: intergeo/templates/iframe/controls.php:286
|
404 |
+
msgid "Terrain"
|
405 |
+
msgstr "Terrain"
|
406 |
+
|
407 |
+
#: intergeo/templates/iframe/positioning.php:21
|
408 |
+
#: intergeo/templates/iframe/controls.php:292
|
409 |
+
msgid "Satellite"
|
410 |
+
msgstr "Satellite"
|
411 |
+
|
412 |
+
#: intergeo/templates/iframe/positioning.php:24
|
413 |
+
#: intergeo/templates/iframe/controls.php:298
|
414 |
+
msgid "Hybrid"
|
415 |
+
msgstr "Hybrid"
|
416 |
+
|
417 |
+
#: intergeo/templates/iframe/positioning.php:33
|
418 |
+
msgid "Draggable map"
|
419 |
+
msgstr "Draggable map"
|
420 |
+
|
421 |
+
#: intergeo/templates/iframe/positioning.php:37
|
422 |
+
msgid "If unchecked prevents the map from being dragged. Dragging is enabled by default."
|
423 |
+
msgstr "If unchecked prevents the map from being dragged. Dragging is enabled by default."
|
424 |
+
|
425 |
+
#: intergeo/templates/iframe/positioning.php:42
|
426 |
+
msgid "Zooming"
|
427 |
+
msgstr "Zooming"
|
428 |
+
|
429 |
+
#: intergeo/templates/iframe/positioning.php:46
|
430 |
+
msgid "Zoom range values"
|
431 |
+
msgstr "Zoom range values"
|
432 |
+
|
433 |
+
#: intergeo/templates/iframe/positioning.php:59
|
434 |
+
msgid "The maximum (19) and minimum (0) zoom levels which could be displayed on the map."
|
435 |
+
msgstr "The maximum (19) and minimum (0) zoom levels which could be displayed on the map."
|
436 |
+
|
437 |
+
#: intergeo/templates/iframe/positioning.php:66
|
438 |
+
msgid "Scrollwheel zooming"
|
439 |
+
msgstr "Scrollwheel zooming"
|
440 |
+
|
441 |
+
#: intergeo/templates/iframe/positioning.php:70
|
442 |
+
msgid "Determines if scrollwheel zooming is enabled on the map."
|
443 |
+
msgstr "Determines if scrollwheel zooming is enabled on the map."
|
444 |
+
|
445 |
+
#: intergeo/templates/iframe/positioning.php:75
|
446 |
+
msgid "Preview settings"
|
447 |
+
msgstr "Preview settings"
|
448 |
+
|
449 |
+
#: intergeo/templates/iframe/positioning.php:81
|
450 |
+
msgid "Lock preview"
|
451 |
+
msgstr "Lock preview"
|
452 |
+
|
453 |
+
#: intergeo/templates/iframe/positioning.php:85
|
454 |
+
msgid "Lock preview map to preserve changing of the viewport bounds and zoom level. Locking affects only on preview map and won't lock embedded map."
|
455 |
+
msgstr "Lock preview map to preserve changing of the viewport bounds and zoom level. Locking affects only on preview map and won't lock embedded map."
|
456 |
+
|
457 |
+
#: intergeo/templates/iframe/positioning.php:91
|
458 |
+
msgid "Show map center"
|
459 |
+
msgstr "Show map center"
|
460 |
+
|
461 |
+
#: intergeo/templates/iframe/positioning.php:95
|
462 |
+
msgid "Show small red circle at the center of the map. It helps you to centralize the map bounds. Note that this option won't be displayed at frontend."
|
463 |
+
msgstr "Show small red circle at the center of the map. It helps you to centralize the map bounds. Note that this option won't be displayed at frontend."
|
464 |
+
|
465 |
+
#: intergeo/templates/iframe/styles.php:1
|
466 |
+
#: intergeo/templates/iframe/adsense.php:128
|
467 |
+
msgid "Styles"
|
468 |
+
msgstr "Styles"
|
469 |
+
|
470 |
+
#: intergeo/templates/iframe/styles.php:4
|
471 |
+
msgid "Container's Styles"
|
472 |
+
msgstr "Container's Styles"
|
473 |
+
|
474 |
+
#: intergeo/templates/iframe/styles.php:7
|
475 |
+
msgid "Width"
|
476 |
+
msgstr "Width"
|
477 |
+
|
478 |
+
#: intergeo/templates/iframe/styles.php:11
|
479 |
+
msgid "Height"
|
480 |
+
msgstr "Height"
|
481 |
+
|
482 |
+
#: intergeo/templates/iframe/styles.php:15
|
483 |
+
msgid "Extra Styles"
|
484 |
+
msgstr "Extra Styles"
|
485 |
+
|
486 |
+
#: intergeo/templates/iframe/styles.php:21
|
487 |
+
msgid "Predefined Map Styles"
|
488 |
+
msgstr "Predefined Map Styles"
|
489 |
+
|
490 |
+
#: intergeo/templates/iframe/styles.php:66
|
491 |
+
msgid "Custom Map Styles"
|
492 |
+
msgstr "Custom Map Styles"
|
493 |
+
|
494 |
+
#: intergeo/templates/iframe/styles.php:72
|
495 |
+
msgid "Use custom styles"
|
496 |
+
msgstr "Use custom styles"
|
497 |
+
|
498 |
+
#: intergeo/templates/iframe/styles.php:79
|
499 |
+
#, php-format
|
500 |
+
msgid "Creating styles by hand and testing your code to see how they look is potentially time-consuming. Instead, you can use the %sStyled Map Wizard%s to set up the JSON for your map's styles."
|
501 |
+
msgstr "Creating styles by hand and testing your code to see how they look is potentially time-consuming. Instead, you can use the %sStyled Map Wizard%s to set up the JSON for your map's styles."
|
502 |
+
|
503 |
+
#: intergeo/templates/iframe/controls.php:2
|
504 |
+
msgid "Controls"
|
505 |
+
msgstr "Controls"
|
506 |
+
|
507 |
+
#: intergeo/templates/iframe/controls.php:5
|
508 |
+
msgid "Zoom control"
|
509 |
+
msgstr "Zoom control"
|
510 |
+
|
511 |
+
#: intergeo/templates/iframe/controls.php:16
|
512 |
+
msgid "The Zoom control displays a slider (for large maps) or small \"+/-\" buttons (for small maps) to control the zoom level of the map. This control appears by default in the top left corner of the map on non-touch devices or in the bottom left corner on touch devices."
|
513 |
+
msgstr "The Zoom control displays a slider (for large maps) or small \"+/-\" buttons (for small maps) to control the zoom level of the map. This control appears by default in the top left corner of the map on non-touch devices or in the bottom left corner on touch devices."
|
514 |
+
|
515 |
+
#: intergeo/templates/iframe/controls.php:22
|
516 |
+
#: intergeo/templates/iframe/controls.php:96
|
517 |
+
#: intergeo/templates/iframe/controls.php:158
|
518 |
+
#: intergeo/templates/iframe/controls.php:220
|
519 |
+
#: intergeo/templates/iframe/controls.php:321
|
520 |
+
#: intergeo/templates/iframe/controls.php:383
|
521 |
+
#: intergeo/templates/iframe/adsense.php:84
|
522 |
+
msgid "default position"
|
523 |
+
msgstr "default position"
|
524 |
+
|
525 |
+
#: intergeo/templates/iframe/controls.php:24
|
526 |
+
#: intergeo/templates/iframe/controls.php:98
|
527 |
+
#: intergeo/templates/iframe/controls.php:160
|
528 |
+
#: intergeo/templates/iframe/controls.php:222
|
529 |
+
#: intergeo/templates/iframe/controls.php:323
|
530 |
+
#: intergeo/templates/iframe/controls.php:385
|
531 |
+
#: intergeo/templates/iframe/adsense.php:86
|
532 |
+
msgid "Top Left"
|
533 |
+
msgstr "Top Left"
|
534 |
+
|
535 |
+
#: intergeo/templates/iframe/controls.php:27
|
536 |
+
#: intergeo/templates/iframe/controls.php:101
|
537 |
+
#: intergeo/templates/iframe/controls.php:163
|
538 |
+
#: intergeo/templates/iframe/controls.php:225
|
539 |
+
#: intergeo/templates/iframe/controls.php:326
|
540 |
+
#: intergeo/templates/iframe/controls.php:388
|
541 |
+
#: intergeo/templates/iframe/adsense.php:89
|
542 |
+
msgid "Top Center"
|
543 |
+
msgstr "Top Center"
|
544 |
+
|
545 |
+
#: intergeo/templates/iframe/controls.php:30
|
546 |
+
#: intergeo/templates/iframe/controls.php:104
|
547 |
+
#: intergeo/templates/iframe/controls.php:166
|
548 |
+
#: intergeo/templates/iframe/controls.php:228
|
549 |
+
#: intergeo/templates/iframe/controls.php:329
|
550 |
+
#: intergeo/templates/iframe/controls.php:391
|
551 |
+
#: intergeo/templates/iframe/adsense.php:92
|
552 |
+
msgid "Top Right"
|
553 |
+
msgstr "Top Right"
|
554 |
+
|
555 |
+
#: intergeo/templates/iframe/controls.php:33
|
556 |
+
#: intergeo/templates/iframe/controls.php:107
|
557 |
+
#: intergeo/templates/iframe/controls.php:169
|
558 |
+
#: intergeo/templates/iframe/controls.php:231
|
559 |
+
#: intergeo/templates/iframe/controls.php:332
|
560 |
+
#: intergeo/templates/iframe/controls.php:394
|
561 |
+
#: intergeo/templates/iframe/adsense.php:95
|
562 |
+
msgid "Right Top"
|
563 |
+
msgstr "Right Top"
|
564 |
+
|
565 |
+
#: intergeo/templates/iframe/controls.php:36
|
566 |
+
#: intergeo/templates/iframe/controls.php:110
|
567 |
+
#: intergeo/templates/iframe/controls.php:172
|
568 |
+
#: intergeo/templates/iframe/controls.php:234
|
569 |
+
#: intergeo/templates/iframe/controls.php:335
|
570 |
+
#: intergeo/templates/iframe/controls.php:397
|
571 |
+
#: intergeo/templates/iframe/adsense.php:98
|
572 |
+
msgid "Right Center"
|
573 |
+
msgstr "Right Center"
|
574 |
+
|
575 |
+
#: intergeo/templates/iframe/controls.php:39
|
576 |
+
#: intergeo/templates/iframe/controls.php:113
|
577 |
+
#: intergeo/templates/iframe/controls.php:175
|
578 |
+
#: intergeo/templates/iframe/controls.php:237
|
579 |
+
#: intergeo/templates/iframe/controls.php:338
|
580 |
+
#: intergeo/templates/iframe/controls.php:400
|
581 |
+
#: intergeo/templates/iframe/adsense.php:101
|
582 |
+
msgid "Right Bottom"
|
583 |
+
msgstr "Right Bottom"
|
584 |
+
|
585 |
+
#: intergeo/templates/iframe/controls.php:42
|
586 |
+
#: intergeo/templates/iframe/controls.php:116
|
587 |
+
#: intergeo/templates/iframe/controls.php:178
|
588 |
+
#: intergeo/templates/iframe/controls.php:240
|
589 |
+
#: intergeo/templates/iframe/controls.php:341
|
590 |
+
#: intergeo/templates/iframe/controls.php:403
|
591 |
+
#: intergeo/templates/iframe/adsense.php:104
|
592 |
+
msgid "Bottom Right"
|
593 |
+
msgstr "Bottom Right"
|
594 |
+
|
595 |
+
#: intergeo/templates/iframe/controls.php:45
|
596 |
+
#: intergeo/templates/iframe/controls.php:119
|
597 |
+
#: intergeo/templates/iframe/controls.php:181
|
598 |
+
#: intergeo/templates/iframe/controls.php:243
|
599 |
+
#: intergeo/templates/iframe/controls.php:344
|
600 |
+
#: intergeo/templates/iframe/controls.php:406
|
601 |
+
#: intergeo/templates/iframe/adsense.php:107
|
602 |
+
msgid "Bottom Center"
|
603 |
+
msgstr "Bottom Center"
|
604 |
+
|
605 |
+
#: intergeo/templates/iframe/controls.php:48
|
606 |
+
#: intergeo/templates/iframe/controls.php:122
|
607 |
+
#: intergeo/templates/iframe/controls.php:184
|
608 |
+
#: intergeo/templates/iframe/controls.php:246
|
609 |
+
#: intergeo/templates/iframe/controls.php:347
|
610 |
+
#: intergeo/templates/iframe/controls.php:409
|
611 |
+
#: intergeo/templates/iframe/adsense.php:110
|
612 |
+
msgid "Bottom Left"
|
613 |
+
msgstr "Bottom Left"
|
614 |
+
|
615 |
+
#: intergeo/templates/iframe/controls.php:51
|
616 |
+
#: intergeo/templates/iframe/controls.php:125
|
617 |
+
#: intergeo/templates/iframe/controls.php:187
|
618 |
+
#: intergeo/templates/iframe/controls.php:249
|
619 |
+
#: intergeo/templates/iframe/controls.php:350
|
620 |
+
#: intergeo/templates/iframe/controls.php:412
|
621 |
+
#: intergeo/templates/iframe/adsense.php:113
|
622 |
+
msgid "Left Bottom"
|
623 |
+
msgstr "Left Bottom"
|
624 |
+
|
625 |
+
#: intergeo/templates/iframe/controls.php:54
|
626 |
+
#: intergeo/templates/iframe/controls.php:128
|
627 |
+
#: intergeo/templates/iframe/controls.php:190
|
628 |
+
#: intergeo/templates/iframe/controls.php:252
|
629 |
+
#: intergeo/templates/iframe/controls.php:353
|
630 |
+
#: intergeo/templates/iframe/controls.php:415
|
631 |
+
#: intergeo/templates/iframe/adsense.php:116
|
632 |
+
msgid "Left Center"
|
633 |
+
msgstr "Left Center"
|
634 |
+
|
635 |
+
#: intergeo/templates/iframe/controls.php:57
|
636 |
+
#: intergeo/templates/iframe/controls.php:131
|
637 |
+
#: intergeo/templates/iframe/controls.php:193
|
638 |
+
#: intergeo/templates/iframe/controls.php:255
|
639 |
+
#: intergeo/templates/iframe/controls.php:356
|
640 |
+
#: intergeo/templates/iframe/controls.php:418
|
641 |
+
#: intergeo/templates/iframe/adsense.php:119
|
642 |
+
msgid "Left Top"
|
643 |
+
msgstr "Left Top"
|
644 |
+
|
645 |
+
#: intergeo/templates/iframe/controls.php:64
|
646 |
+
#: intergeo/templates/iframe/controls.php:262
|
647 |
+
msgid "default style"
|
648 |
+
msgstr "default style"
|
649 |
+
|
650 |
+
#: intergeo/templates/iframe/controls.php:67
|
651 |
+
msgid "small"
|
652 |
+
msgstr "small"
|
653 |
+
|
654 |
+
#: intergeo/templates/iframe/controls.php:70
|
655 |
+
msgid "large"
|
656 |
+
msgstr "large"
|
657 |
+
|
658 |
+
#: intergeo/templates/iframe/controls.php:79
|
659 |
+
msgid "Pan control"
|
660 |
+
msgstr "Pan control"
|
661 |
+
|
662 |
+
#: intergeo/templates/iframe/controls.php:90
|
663 |
+
msgid "The Pan control displays buttons for panning the map. This control appears by default in the top left corner of the map on non-touch devices. The Pan control also allows you to rotate 45° imagery, if available."
|
664 |
+
msgstr "The Pan control displays buttons for panning the map. This control appears by default in the top left corner of the map on non-touch devices. The Pan control also allows you to rotate 45° imagery, if available."
|
665 |
+
|
666 |
+
#: intergeo/templates/iframe/controls.php:141
|
667 |
+
msgid "Scale control"
|
668 |
+
msgstr "Scale control"
|
669 |
+
|
670 |
+
#: intergeo/templates/iframe/controls.php:152
|
671 |
+
msgid "The Scale control displays a map scale element. This control is not enabled by default."
|
672 |
+
msgstr "The Scale control displays a map scale element. This control is not enabled by default."
|
673 |
+
|
674 |
+
#: intergeo/templates/iframe/controls.php:203
|
675 |
+
msgid "MapType control"
|
676 |
+
msgstr "MapType control"
|
677 |
+
|
678 |
+
#: intergeo/templates/iframe/controls.php:214
|
679 |
+
msgid "The MapType control lets the user toggle between map types (such as roadmap and satellite). This control appears by default in the top right corner of the map."
|
680 |
+
msgstr "The MapType control lets the user toggle between map types (such as roadmap and satellite). This control appears by default in the top right corner of the map."
|
681 |
+
|
682 |
+
#: intergeo/templates/iframe/controls.php:265
|
683 |
+
msgid "dropdown menu"
|
684 |
+
msgstr "dropdown menu"
|
685 |
+
|
686 |
+
#: intergeo/templates/iframe/controls.php:268
|
687 |
+
msgid "horizontal bar"
|
688 |
+
msgstr "horizontal bar"
|
689 |
+
|
690 |
+
#: intergeo/templates/iframe/controls.php:275
|
691 |
+
msgid "Map types:"
|
692 |
+
msgstr "Map types:"
|
693 |
+
|
694 |
+
#: intergeo/templates/iframe/controls.php:278
|
695 |
+
msgid "This map type displays a normal street map."
|
696 |
+
msgstr "This map type displays a normal street map."
|
697 |
+
|
698 |
+
#: intergeo/templates/iframe/controls.php:284
|
699 |
+
msgid "This map type displays maps with physical features such as terrain and vegetation."
|
700 |
+
msgstr "This map type displays maps with physical features such as terrain and vegetation."
|
701 |
+
|
702 |
+
#: intergeo/templates/iframe/controls.php:290
|
703 |
+
msgid "This map type displays satellite images."
|
704 |
+
msgstr "This map type displays satellite images."
|
705 |
+
|
706 |
+
#: intergeo/templates/iframe/controls.php:296
|
707 |
+
msgid "This map type displays a transparent layer of major streets on satellite images."
|
708 |
+
msgstr "This map type displays a transparent layer of major streets on satellite images."
|
709 |
+
|
710 |
+
#: intergeo/templates/iframe/controls.php:304
|
711 |
+
msgid "Street View control"
|
712 |
+
msgstr "Street View control"
|
713 |
+
|
714 |
+
#: intergeo/templates/iframe/controls.php:315
|
715 |
+
msgid "The Street View control contains a Pegman icon which can be dragged onto the map to enable Street View. This control appears by default in the top left corner of the map."
|
716 |
+
msgstr "The Street View control contains a Pegman icon which can be dragged onto the map to enable Street View. This control appears by default in the top left corner of the map."
|
717 |
+
|
718 |
+
#: intergeo/templates/iframe/controls.php:366
|
719 |
+
msgid "Rotate control"
|
720 |
+
msgstr "Rotate control"
|
721 |
+
|
722 |
+
#: intergeo/templates/iframe/controls.php:377
|
723 |
+
msgid "The Rotate control contains a small circular icon which allows you to rotate maps containing oblique imagery. This control appears by default in the top left corner of the map."
|
724 |
+
msgstr "The Rotate control contains a small circular icon which allows you to rotate maps containing oblique imagery. This control appears by default in the top left corner of the map."
|
725 |
+
|
726 |
+
#: intergeo/templates/iframe/controls.php:428
|
727 |
+
msgid "Overview Map control"
|
728 |
+
msgstr "Overview Map control"
|
729 |
+
|
730 |
+
#: intergeo/templates/iframe/controls.php:439
|
731 |
+
msgid "The Overview Map control displays a thumbnail overview map reflecting the current map viewport within a wider area. This control appears by default in the bottom right corner of the map, and is by default shown in its collapsed state."
|
732 |
+
msgstr "The Overview Map control displays a thumbnail overview map reflecting the current map viewport within a wider area. This control appears by default in the bottom right corner of the map, and is by default shown in its collapsed state."
|
733 |
+
|
734 |
+
#: intergeo/templates/iframe/controls.php:445
|
735 |
+
msgid "Opened"
|
736 |
+
msgstr "Opened"
|
737 |
+
|
738 |
+
#: intergeo/templates/iframe/popups.php:5
|
739 |
+
msgid "Go To Address"
|
740 |
+
msgstr "Go To Address"
|
741 |
+
|
742 |
+
#: intergeo/templates/iframe/popups.php:10
|
743 |
+
msgid "Type an address you want to go to"
|
744 |
+
msgstr "Type an address you want to go to"
|
745 |
+
|
746 |
+
#: intergeo/templates/iframe/popups.php:13
|
747 |
+
msgid "Go"
|
748 |
+
msgstr "Go"
|
749 |
+
|
750 |
+
#: intergeo/templates/iframe/popups.php:24
|
751 |
+
msgid "Marker Options"
|
752 |
+
msgstr "Marker Options"
|
753 |
+
|
754 |
+
#: intergeo/templates/iframe/popups.php:31
|
755 |
+
#: intergeo/templates/iframe/popups.php:32
|
756 |
+
msgid "Enter title"
|
757 |
+
msgstr "Enter title"
|
758 |
+
|
759 |
+
#: intergeo/templates/iframe/popups.php:39
|
760 |
+
#: intergeo/templates/iframe/popups.php:40
|
761 |
+
msgid "Enter icon URL"
|
762 |
+
msgstr "Enter icon URL"
|
763 |
+
|
764 |
+
#: intergeo/templates/iframe/popups.php:47
|
765 |
+
#: intergeo/templates/iframe/popups.php:48
|
766 |
+
msgid "Enter html for info window"
|
767 |
+
msgstr "Enter html for info window"
|
768 |
+
|
769 |
+
#: intergeo/templates/iframe/popups.php:54
|
770 |
+
#: intergeo/templates/iframe/popups.php:89
|
771 |
+
#: intergeo/templates/iframe/popups.php:157
|
772 |
+
msgid "Update"
|
773 |
+
msgstr "Update"
|
774 |
+
|
775 |
+
#: intergeo/templates/iframe/popups.php:65
|
776 |
+
msgid "Polyline Options"
|
777 |
+
msgstr "Polyline Options"
|
778 |
+
|
779 |
+
#: intergeo/templates/iframe/popups.php:72
|
780 |
+
#: intergeo/templates/iframe/popups.php:73
|
781 |
+
#: intergeo/templates/iframe/popups.php:112
|
782 |
+
#: intergeo/templates/iframe/popups.php:113
|
783 |
+
msgid "Stroke weight in pixel"
|
784 |
+
msgstr "Stroke weight in pixel"
|
785 |
+
|
786 |
+
#: intergeo/templates/iframe/popups.php:78
|
787 |
+
#: intergeo/templates/iframe/popups.php:79
|
788 |
+
#: intergeo/templates/iframe/popups.php:118
|
789 |
+
#: intergeo/templates/iframe/popups.php:119
|
790 |
+
msgid "Stroke opacity from 0.0 to 1.0"
|
791 |
+
msgstr "Stroke opacity from 0.0 to 1.0"
|
792 |
+
|
793 |
+
#: intergeo/templates/iframe/popups.php:100
|
794 |
+
msgid "Polygon Options"
|
795 |
+
msgstr "Polygon Options"
|
796 |
+
|
797 |
+
#: intergeo/templates/iframe/popups.php:105
|
798 |
+
msgid "Stroke options"
|
799 |
+
msgstr "Stroke options"
|
800 |
+
|
801 |
+
#: intergeo/templates/iframe/popups.php:125
|
802 |
+
msgid "stroke position"
|
803 |
+
msgstr "stroke position"
|
804 |
+
|
805 |
+
#: intergeo/templates/iframe/popups.php:126
|
806 |
+
msgid "center"
|
807 |
+
msgstr "center"
|
808 |
+
|
809 |
+
#: intergeo/templates/iframe/popups.php:127
|
810 |
+
msgid "inside the object"
|
811 |
+
msgstr "inside the object"
|
812 |
+
|
813 |
+
#: intergeo/templates/iframe/popups.php:128
|
814 |
+
msgid "outside the object"
|
815 |
+
msgstr "outside the object"
|
816 |
+
|
817 |
+
#: intergeo/templates/iframe/popups.php:139
|
818 |
+
msgid "Fill options"
|
819 |
+
msgstr "Fill options"
|
820 |
+
|
821 |
+
#: intergeo/templates/iframe/popups.php:146
|
822 |
+
#: intergeo/templates/iframe/popups.php:147
|
823 |
+
msgid "Fill opacity from 0.0 to 1.0"
|
824 |
+
msgstr "Fill opacity from 0.0 to 1.0"
|
825 |
+
|
826 |
+
#: intergeo/templates/iframe/popups.php:168
|
827 |
+
msgid "Direction Options"
|
828 |
+
msgstr "Direction Options"
|
829 |
+
|
830 |
+
#: intergeo/templates/iframe/popups.php:175
|
831 |
+
#: intergeo/templates/iframe/popups.php:176
|
832 |
+
msgid "The start location from which to calculate directions"
|
833 |
+
msgstr "The start location from which to calculate directions"
|
834 |
+
|
835 |
+
#: intergeo/templates/iframe/popups.php:183
|
836 |
+
#: intergeo/templates/iframe/popups.php:184
|
837 |
+
msgid "The end location to which to calculate directions"
|
838 |
+
msgstr "The end location to which to calculate directions"
|
839 |
+
|
840 |
+
#: intergeo/templates/iframe/popups.php:190
|
841 |
+
#: intergeo/templates/iframe/directions.php:60
|
842 |
+
msgid "via standard driving directions"
|
843 |
+
msgstr "via standard driving directions"
|
844 |
+
|
845 |
+
#: intergeo/templates/iframe/popups.php:191
|
846 |
+
#: intergeo/templates/iframe/directions.php:50
|
847 |
+
msgid "via bicycle paths & preferred streets"
|
848 |
+
msgstr "via bicycle paths & preferred streets"
|
849 |
+
|
850 |
+
#: intergeo/templates/iframe/popups.php:192
|
851 |
+
#: intergeo/templates/iframe/directions.php:53
|
852 |
+
msgid "via public transit routes"
|
853 |
+
msgstr "via public transit routes"
|
854 |
+
|
855 |
+
#: intergeo/templates/iframe/popups.php:193
|
856 |
+
#: intergeo/templates/iframe/directions.php:56
|
857 |
+
msgid "via pedestrian paths & sidewalks"
|
858 |
+
msgstr "via pedestrian paths & sidewalks"
|
859 |
+
|
860 |
+
#: intergeo/templates/iframe/popups.php:199
|
861 |
+
msgid "Save"
|
862 |
+
msgstr "Save"
|
863 |
+
|
864 |
+
#: intergeo/templates/iframe/adsense.php:1
|
865 |
+
msgid "AdSense Integration"
|
866 |
+
msgstr "AdSense Integration"
|
867 |
+
|
868 |
+
#: intergeo/templates/iframe/adsense.php:6
|
869 |
+
#, php-format
|
870 |
+
msgid "To make AdSense working on your maps, you have to setup your publisher ID. You can do it at the %ssettings page%s."
|
871 |
+
msgstr "To make AdSense working on your maps, you have to setup your publisher ID. You can do it at the %ssettings page%s."
|
872 |
+
|
873 |
+
#: intergeo/templates/iframe/adsense.php:24
|
874 |
+
msgid "default format"
|
875 |
+
msgstr "default format"
|
876 |
+
|
877 |
+
#: intergeo/templates/iframe/adsense.php:27
|
878 |
+
msgid "Leaderboard"
|
879 |
+
msgstr "Leaderboard"
|
880 |
+
|
881 |
+
#: intergeo/templates/iframe/adsense.php:30
|
882 |
+
msgid "Banner"
|
883 |
+
msgstr "Banner"
|
884 |
+
|
885 |
+
#: intergeo/templates/iframe/adsense.php:33
|
886 |
+
msgid "Half Banner"
|
887 |
+
msgstr "Half Banner"
|
888 |
+
|
889 |
+
#: intergeo/templates/iframe/adsense.php:36
|
890 |
+
msgid "Skyscraper"
|
891 |
+
msgstr "Skyscraper"
|
892 |
+
|
893 |
+
#: intergeo/templates/iframe/adsense.php:39
|
894 |
+
msgid "Wide Skyscraper"
|
895 |
+
msgstr "Wide Skyscraper"
|
896 |
+
|
897 |
+
#: intergeo/templates/iframe/adsense.php:42
|
898 |
+
msgid "Vertical Banner"
|
899 |
+
msgstr "Vertical Banner"
|
900 |
+
|
901 |
+
#: intergeo/templates/iframe/adsense.php:45
|
902 |
+
msgid "Button"
|
903 |
+
msgstr "Button"
|
904 |
+
|
905 |
+
#: intergeo/templates/iframe/adsense.php:48
|
906 |
+
msgid "Small Square"
|
907 |
+
msgstr "Small Square"
|
908 |
+
|
909 |
+
#: intergeo/templates/iframe/adsense.php:51
|
910 |
+
msgid "Square"
|
911 |
+
msgstr "Square"
|
912 |
+
|
913 |
+
#: intergeo/templates/iframe/adsense.php:54
|
914 |
+
msgid "Small Rectangle"
|
915 |
+
msgstr "Small Rectangle"
|
916 |
+
|
917 |
+
#: intergeo/templates/iframe/adsense.php:57
|
918 |
+
msgid "Medium Rectangle"
|
919 |
+
msgstr "Medium Rectangle"
|
920 |
+
|
921 |
+
#: intergeo/templates/iframe/adsense.php:60
|
922 |
+
msgid "Large Rectangle"
|
923 |
+
msgstr "Large Rectangle"
|
924 |
+
|
925 |
+
#: intergeo/templates/iframe/adsense.php:63
|
926 |
+
msgid "Small Vertical Link Unit"
|
927 |
+
msgstr "Small Vertical Link Unit"
|
928 |
+
|
929 |
+
#: intergeo/templates/iframe/adsense.php:66
|
930 |
+
msgid "Medium Vertical Link Unit"
|
931 |
+
msgstr "Medium Vertical Link Unit"
|
932 |
+
|
933 |
+
#: intergeo/templates/iframe/adsense.php:69
|
934 |
+
msgid "Large Vertical Link Unit"
|
935 |
+
msgstr "Large Vertical Link Unit"
|
936 |
+
|
937 |
+
#: intergeo/templates/iframe/adsense.php:72
|
938 |
+
msgid "Extra Large Vertical Link Unit"
|
939 |
+
msgstr "Extra Large Vertical Link Unit"
|
940 |
+
|
941 |
+
#: intergeo/templates/iframe/adsense.php:75
|
942 |
+
msgid "Small Horizontal Link Unit"
|
943 |
+
msgstr "Small Horizontal Link Unit"
|
944 |
+
|
945 |
+
#: intergeo/templates/iframe/adsense.php:78
|
946 |
+
msgid "Large Horizontal Link Unit"
|
947 |
+
msgstr "Large Horizontal Link Unit"
|
948 |
+
|
949 |
+
#: intergeo/templates/iframe/adsense.php:131
|
950 |
+
msgid "Background color"
|
951 |
+
msgstr "Background color"
|
952 |
+
|
953 |
+
#: intergeo/templates/iframe/adsense.php:134
|
954 |
+
#: intergeo/templates/iframe/adsense.php:140
|
955 |
+
#: intergeo/templates/iframe/adsense.php:146
|
956 |
+
#: intergeo/templates/iframe/adsense.php:152
|
957 |
+
#: intergeo/templates/iframe/adsense.php:158
|
958 |
+
msgid "Hex Value"
|
959 |
+
msgstr "Hex Value"
|
960 |
+
|
961 |
+
#: intergeo/templates/iframe/adsense.php:137
|
962 |
+
msgid "Border color"
|
963 |
+
msgstr "Border color"
|
964 |
+
|
965 |
+
#: intergeo/templates/iframe/adsense.php:143
|
966 |
+
msgid "Title color"
|
967 |
+
msgstr "Title color"
|
968 |
+
|
969 |
+
#: intergeo/templates/iframe/adsense.php:149
|
970 |
+
msgid "Text color"
|
971 |
+
msgstr "Text color"
|
972 |
+
|
973 |
+
#: intergeo/templates/iframe/adsense.php:155
|
974 |
+
msgid "URL color"
|
975 |
+
msgstr "URL color"
|
976 |
+
|
977 |
+
#: intergeo/templates/iframe/directions.php:1
|
978 |
+
msgid "Directions"
|
979 |
+
msgstr "Directions"
|
980 |
+
|
981 |
+
#: intergeo/templates/iframe/directions.php:5
|
982 |
+
msgid "To add a new direction just click the button below:"
|
983 |
+
msgstr "To add a new direction just click the button below:"
|
984 |
+
|
985 |
+
#: intergeo/templates/iframe/directions.php:10
|
986 |
+
msgid "Add Direction"
|
987 |
+
msgstr "Add Direction"
|
988 |
+
|
989 |
+
#: intergeo/templates/iframe/directions.php:16
|
990 |
+
#: intergeo/templates/iframe/directions.php:22
|
991 |
+
#: intergeo/templates/iframe/directions.php:43
|
992 |
+
msgid "from"
|
993 |
+
msgstr "from"
|
994 |
+
|
995 |
+
#: intergeo/templates/iframe/directions.php:16
|
996 |
+
#: intergeo/templates/iframe/directions.php:22
|
997 |
+
#: intergeo/templates/iframe/directions.php:45
|
998 |
+
msgid "to"
|
999 |
+
msgstr "to"
|
1000 |
+
|
1001 |
+
#: intergeo/templates/iframe/directions.php:29
|
1002 |
+
#: intergeo/templates/iframe/directions.php:70
|
1003 |
+
msgid "Delete direction"
|
1004 |
+
msgstr "Delete direction"
|
1005 |
+
|
1006 |
+
#: intergeo/templates/iframe/directions.php:30
|
1007 |
+
#: intergeo/templates/iframe/directions.php:71
|
1008 |
+
msgid "Edit direction"
|
1009 |
+
msgstr "Edit direction"
|
1010 |
+
|
1011 |
+
#: intergeo/templates/iframe/directions.php:35
|
1012 |
+
msgid "Created directions"
|
1013 |
+
msgstr "Created directions"
|
1014 |
+
|
1015 |
+
#~ msgid "Direction calculation process failed."
|
1016 |
+
#~ msgstr "Direction calculation process failed."
|
readme.txt
CHANGED
@@ -1,129 +1,135 @@
|
|
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.4.
|
6 |
-
Stable tag: trunk
|
7 |
-
License: GPL v2.0 or later
|
8 |
-
License URI: http://www.opensource.org/licenses/gpl-license.php
|
9 |
-
|
10 |
-
A simple, easy and quite powerful Google Maps tool to create, manage and embed custom Google Maps into your WordPress posts and pages.
|
11 |
-
|
12 |
-
== Description ==
|
13 |
-
|
14 |
-
The Intergeo Google Maps WordPress plugin is a simple, easy and in the same time quite powerful tool for handling Google Maps in your website. This simple WordPress map plugin allow users to create new maps by using powerful UI builder. Created maps could be easily edited and saved with new settings. To increase the speed of creation process the plugin has ability to clone a map with all it's settings. Finally the plugin has attractive library which allows users to browse all maps in the system and delete unnecessary maps.
|
15 |
-
|
16 |
-
The powerful UI builder allows users to:
|
17 |
-
|
18 |
-
* Setup initial position and zooming level of a map;
|
19 |
-
* Adjust controls settings and positioning;
|
20 |
-
* Setup map color styles by using predefined color schemes or by using custom color settings;
|
21 |
-
* Add overlays like markers, rectangles, circles, polylines and polygons;
|
22 |
-
* Create directions routes from A address to B address;
|
23 |
-
* Integrate AdSense service into your maps and earn money by displaying ads on maps.
|
24 |
-
|
25 |
-
### Create Google maps with shortcode ###
|
26 |
-
|
27 |
-
To create new WordPress maps you just can input simple shortcode into your post, page, text widget or taxonomy description:
|
28 |
-
|
29 |
-
`[intergeo]Your address[/intergeo]`
|
30 |
-
|
31 |
-
This shortcode will be displayed as Google 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.
|
32 |
-
|
33 |
-
> **Time-saving features available in the Pro version:**
|
34 |
-
>
|
35 |
-
> * Custom layers for maps
|
36 |
-
> * Import markers in bulk
|
37 |
-
> * Priority email support from the developer of the plugin
|
38 |
-
> * Support and updates for 1 year
|
39 |
-
>
|
40 |
-
> **[Learn more about Intergeo Maps Pro](http://themeisle.com/plugins/intergeo-maps-pro/)**
|
41 |
-
|
42 |
-
The following table describes all possible attributes, which users can use with shortcodes:
|
43 |
-
|
44 |
-
**Width**
|
45 |
-
Sets width of the map container. Accepts all valid CSS values as css width property accepts. For example, the value could be set in pixels like 500px, or in percentage like 75%. Default value is 100%.
|
46 |
-
|
47 |
-
**Height**
|
48 |
-
Sets width of the map container. Accepts all valid CSS values as css height property accepts. For example, the value could be set in pixels like 700px. Default value is 300px.
|
49 |
-
|
50 |
-
**Style**
|
51 |
-
This attribute allows users to set extra styles for Google map's container element. It accepts all valid css properties and will echo it in the style attribute of the container element. Default value is empty.
|
52 |
-
|
53 |
-
**Zoom**
|
54 |
-
Sets the initial zoom level of the map. This attribute accepts integer value from 0 to 19, where 0 is the biggest distance and 19 is the lowest distance to the ground. The default value is 5.
|
55 |
-
|
56 |
-
**Hook**
|
57 |
-
This attribute allows users to setup their own filter, which will be used to filter settings of a map before using it to render a map. Hooks for the filter will receive one parameter which will be array of options and they have to return it modified or not.
|
58 |
-
|
59 |
-
So your shortcode could looks like this one:
|
60 |
-
|
61 |
-
`[intergeo zoom=”12” width=”50%” heigth=”400px” style=”border: 3px solid red; margin: 0 auto;”]Central Park, NY[/intergeo]`
|
62 |
-
|
63 |
-
Check-out the <a href="http://themeisle.com/plugins/intergeo-maps-lite/" rel="frield">#1 free Google Maps plugin</a>
|
64 |
-
|
65 |
-
### Create map with UI builder ###
|
66 |
-
|
67 |
-
Another way to create map is to use UI builder. This is more recommended way to build a Google map as this way provides much more features and wide range of settings to customize. To create a map with UI builder, pass following steps:
|
68 |
-
|
69 |
-
1. Create a new post or a page, or just edit existing one;
|
70 |
-
1. Place the mouse cursor into the content editor, at the place you want to embed a map and click on **Add Media** button above editor toolbar;
|
71 |
-
1. When media popup appears, find **Intergeo Maps** link in the left sidebar of popup window, click on the link;
|
72 |
-
1. Now you have to see Intergeo UI builder which allows you to customize your map;
|
73 |
-
1. Use all tools from right sidebar of the builder to create a map you need;
|
74 |
-
1. After finishing maps configuration click on **Insert into post** button at the footer of the builder;
|
75 |
-
1. After doing it a map has to be saved in background, popup has to be closed and new appropriate shortcode has to be inserted into the place, where your cursor was.
|
76 |
-
|
77 |
-
### Using maps library ###
|
78 |
-
|
79 |
-
All maps which have been created with UI builder are stored in WordPress database. The plugin allows to browse and manage these Google maps in the maps library. To see it go to the **Media** » **Intergeo Maps** page to see all maps which have been created in your website.
|
80 |
-
|
81 |
-
The library shows you maps preview as you will see it at front end pages. Here users can copy shortcode of a Google map, edit or clone maps, and delete unnecessary or deprecated maps.
|
82 |
-
|
83 |
-
Also users can create a Google map from library page. To do it just click on **Add New** button next to the page title and UI builder popup immediately appears. The builder interacts in the same way as it does at edit posts page, except that popup doesn't insert shortcode into somewhere, popup just save a map into database for future reuse.
|
84 |
-
|
85 |
-
Check-out the <a href="http://www.codeinwp.com/blog/intergeo-maps-plugin-review/" target="_blank" rel="friend">Intergeo review</a> and find out some of the <a href="http://www.codeinwp.com/blog/top-non-obvious-wordpress-plugins/" target="_blank" rel="friend">best WordPress plugins</a>.
|
86 |
-
|
87 |
-
== Installation ==
|
88 |
-
|
89 |
-
1. Upload the files to the `/wp-content/plugins/intergeo/` directory.
|
90 |
-
1. Activate the plugin through the 'Plugins' menu in WordPress.
|
91 |
-
|
92 |
-
|
93 |
-
== Frequently Asked Questions ==
|
94 |
-
|
95 |
-
= How to override Google map settings =
|
96 |
-
|
97 |
-
To override Google map settings you can use your own hook. Just add **hook** attribute to your shortcode like this:
|
98 |
-
|
99 |
-
`[intergeo hook="my_custom_intergeo_hook" ...]...[/intergeo]`
|
100 |
-
|
101 |
-
And add a function to hook that filter:
|
102 |
-
|
103 |
-
`add_filter( 'my_custom_intergeo_hook', 'filter_intergeo_map_settings' ) {
|
104 |
-
function filter_intergeo_map_settings( $options ) {
|
105 |
-
// update options
|
106 |
-
$options[...] = ...;
|
107 |
-
...
|
108 |
-
|
109 |
-
// return updated options
|
110 |
-
return $options;
|
111 |
-
}`
|
112 |
-
|
113 |
-
== Screenshots ==
|
114 |
-
|
115 |
-
1. Directions Google Maps layer
|
116 |
-
2. Wather and cloud Google Maps layers
|
117 |
-
3. Panaramio layer and styles settings
|
118 |
-
4. Bicycling layer and gray styles
|
119 |
-
5. Overlay settings
|
120 |
-
6. Markers settings
|
121 |
-
|
122 |
-
== Changelog ==
|
123 |
-
|
124 |
-
= 1.0.
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
|
|
|
|
|
|
|
|
|
|
|
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.4.2
|
6 |
+
Stable tag: trunk
|
7 |
+
License: GPL v2.0 or later
|
8 |
+
License URI: http://www.opensource.org/licenses/gpl-license.php
|
9 |
+
|
10 |
+
A simple, easy and quite powerful Google Maps tool to create, manage and embed custom Google Maps into your WordPress posts and pages.
|
11 |
+
|
12 |
+
== Description ==
|
13 |
+
|
14 |
+
The Intergeo Google Maps WordPress plugin is a simple, easy and in the same time quite powerful tool for handling Google Maps in your website. This simple WordPress map plugin allow users to create new maps by using powerful UI builder. Created maps could be easily edited and saved with new settings. To increase the speed of creation process the plugin has ability to clone a map with all it's settings. Finally the plugin has attractive library which allows users to browse all maps in the system and delete unnecessary maps.
|
15 |
+
|
16 |
+
The powerful UI builder allows users to:
|
17 |
+
|
18 |
+
* Setup initial position and zooming level of a map;
|
19 |
+
* Adjust controls settings and positioning;
|
20 |
+
* Setup map color styles by using predefined color schemes or by using custom color settings;
|
21 |
+
* Add overlays like markers, rectangles, circles, polylines and polygons;
|
22 |
+
* Create directions routes from A address to B address;
|
23 |
+
* Integrate AdSense service into your maps and earn money by displaying ads on maps.
|
24 |
+
|
25 |
+
### Create Google maps with shortcode ###
|
26 |
+
|
27 |
+
To create new WordPress maps you just can input simple shortcode into your post, page, text widget or taxonomy description:
|
28 |
+
|
29 |
+
`[intergeo]Your address[/intergeo]`
|
30 |
+
|
31 |
+
This shortcode will be displayed as Google 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.
|
32 |
+
|
33 |
+
> **Time-saving features available in the Pro version:**
|
34 |
+
>
|
35 |
+
> * Custom layers for maps
|
36 |
+
> * Import markers in bulk
|
37 |
+
> * Priority email support from the developer of the plugin
|
38 |
+
> * Support and updates for 1 year
|
39 |
+
>
|
40 |
+
> **[Learn more about Intergeo Maps Pro](http://themeisle.com/plugins/intergeo-maps-pro/)**
|
41 |
+
|
42 |
+
The following table describes all possible attributes, which users can use with shortcodes:
|
43 |
+
|
44 |
+
**Width**
|
45 |
+
Sets width of the map container. Accepts all valid CSS values as css width property accepts. For example, the value could be set in pixels like 500px, or in percentage like 75%. Default value is 100%.
|
46 |
+
|
47 |
+
**Height**
|
48 |
+
Sets width of the map container. Accepts all valid CSS values as css height property accepts. For example, the value could be set in pixels like 700px. Default value is 300px.
|
49 |
+
|
50 |
+
**Style**
|
51 |
+
This attribute allows users to set extra styles for Google map's container element. It accepts all valid css properties and will echo it in the style attribute of the container element. Default value is empty.
|
52 |
+
|
53 |
+
**Zoom**
|
54 |
+
Sets the initial zoom level of the map. This attribute accepts integer value from 0 to 19, where 0 is the biggest distance and 19 is the lowest distance to the ground. The default value is 5.
|
55 |
+
|
56 |
+
**Hook**
|
57 |
+
This attribute allows users to setup their own filter, which will be used to filter settings of a map before using it to render a map. Hooks for the filter will receive one parameter which will be array of options and they have to return it modified or not.
|
58 |
+
|
59 |
+
So your shortcode could looks like this one:
|
60 |
+
|
61 |
+
`[intergeo zoom=”12” width=”50%” heigth=”400px” style=”border: 3px solid red; margin: 0 auto;”]Central Park, NY[/intergeo]`
|
62 |
+
|
63 |
+
Check-out the <a href="http://themeisle.com/plugins/intergeo-maps-lite/" rel="frield">#1 free Google Maps plugin</a>
|
64 |
+
|
65 |
+
### Create map with UI builder ###
|
66 |
+
|
67 |
+
Another way to create map is to use UI builder. This is more recommended way to build a Google map as this way provides much more features and wide range of settings to customize. To create a map with UI builder, pass following steps:
|
68 |
+
|
69 |
+
1. Create a new post or a page, or just edit existing one;
|
70 |
+
1. Place the mouse cursor into the content editor, at the place you want to embed a map and click on **Add Media** button above editor toolbar;
|
71 |
+
1. When media popup appears, find **Intergeo Maps** link in the left sidebar of popup window, click on the link;
|
72 |
+
1. Now you have to see Intergeo UI builder which allows you to customize your map;
|
73 |
+
1. Use all tools from right sidebar of the builder to create a map you need;
|
74 |
+
1. After finishing maps configuration click on **Insert into post** button at the footer of the builder;
|
75 |
+
1. After doing it a map has to be saved in background, popup has to be closed and new appropriate shortcode has to be inserted into the place, where your cursor was.
|
76 |
+
|
77 |
+
### Using maps library ###
|
78 |
+
|
79 |
+
All maps which have been created with UI builder are stored in WordPress database. The plugin allows to browse and manage these Google maps in the maps library. To see it go to the **Media** » **Intergeo Maps** page to see all maps which have been created in your website.
|
80 |
+
|
81 |
+
The library shows you maps preview as you will see it at front end pages. Here users can copy shortcode of a Google map, edit or clone maps, and delete unnecessary or deprecated maps.
|
82 |
+
|
83 |
+
Also users can create a Google map from library page. To do it just click on **Add New** button next to the page title and UI builder popup immediately appears. The builder interacts in the same way as it does at edit posts page, except that popup doesn't insert shortcode into somewhere, popup just save a map into database for future reuse.
|
84 |
+
|
85 |
+
Check-out the <a href="http://www.codeinwp.com/blog/intergeo-maps-plugin-review/" target="_blank" rel="friend">Intergeo review</a> and find out some of the <a href="http://www.codeinwp.com/blog/top-non-obvious-wordpress-plugins/" target="_blank" rel="friend">best WordPress plugins</a>.
|
86 |
+
|
87 |
+
== Installation ==
|
88 |
+
|
89 |
+
1. Upload the files to the `/wp-content/plugins/intergeo/` directory.
|
90 |
+
1. Activate the plugin through the 'Plugins' menu in WordPress.
|
91 |
+
|
92 |
+
|
93 |
+
== Frequently Asked Questions ==
|
94 |
+
|
95 |
+
= How to override Google map settings =
|
96 |
+
|
97 |
+
To override Google map settings you can use your own hook. Just add **hook** attribute to your shortcode like this:
|
98 |
+
|
99 |
+
`[intergeo hook="my_custom_intergeo_hook" ...]...[/intergeo]`
|
100 |
+
|
101 |
+
And add a function to hook that filter:
|
102 |
+
|
103 |
+
`add_filter( 'my_custom_intergeo_hook', 'filter_intergeo_map_settings' ) {
|
104 |
+
function filter_intergeo_map_settings( $options ) {
|
105 |
+
// update options
|
106 |
+
$options[...] = ...;
|
107 |
+
...
|
108 |
+
|
109 |
+
// return updated options
|
110 |
+
return $options;
|
111 |
+
}`
|
112 |
+
|
113 |
+
== Screenshots ==
|
114 |
+
|
115 |
+
1. Directions Google Maps layer
|
116 |
+
2. Wather and cloud Google Maps layers
|
117 |
+
3. Panaramio layer and styles settings
|
118 |
+
4. Bicycling layer and gray styles
|
119 |
+
5. Overlay settings
|
120 |
+
6. Markers settings
|
121 |
+
|
122 |
+
== Changelog ==
|
123 |
+
|
124 |
+
= 1.0.3 =
|
125 |
+
|
126 |
+
* Fixed issue with warning error when including some templates
|
127 |
+
|
128 |
+
= 1.0.2 =
|
129 |
+
|
130 |
+
* Fixed minZoom and maxZoom settings.
|
131 |
+
|
132 |
+
= 1.0.1 =
|
133 |
+
|
134 |
+
* Fixed compatibility with Wordpress 4.3 versions
|
135 |
+
|
templates/iframe/adsense.php
CHANGED
@@ -1,162 +1,162 @@
|
|
1 |
-
<h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'AdSense Integration', INTERGEO_PLUGIN_NAME ) ?></h3>
|
2 |
-
<ul class="intergeo_tlbr_ul_li_ul"><?php
|
3 |
-
if ( empty( $publisher_id ) ) :
|
4 |
-
?><li class="intergeo_tlbr_ul_li_ul_li">
|
5 |
-
<p class="intergeo_tlbr_grp_dsc"><?php
|
6 |
-
printf( esc_html__( 'To make AdSense working on your maps, you have to setup your publisher ID. You can do it at the %ssettings page%s.', INTERGEO_PLUGIN_NAME ), '<a href="' . admin_url( 'options-media.php' ) . '" target="_blank">', '</a>' )
|
7 |
-
?></p>
|
8 |
-
</li><?php
|
9 |
-
endif;
|
10 |
-
?><li class="intergeo_tlbr_ul_li_ul_li">
|
11 |
-
<div class="intergeo_tlbr_cntrl_items" style="display:block">
|
12 |
-
<div class="intergeo_tlbr_cntrl_item">
|
13 |
-
<label>
|
14 |
-
<input type="hidden" name="layer_adsense" value="0">
|
15 |
-
<input type="checkbox" name="layer_adsense" value="1" <?php checked( isset( $json['layer']['adsense'] ) ? $json['layer']['adsense'] == '1' : false ) ?>>
|
16 |
-
Enabled
|
17 |
-
</label>
|
18 |
-
</div>
|
19 |
-
<table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
|
20 |
-
<tr>
|
21 |
-
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
22 |
-
<select name="adsense_format" class="intergeo_tlbr_cntrl_slct">
|
23 |
-
<option value="">
|
24 |
-
<?php esc_html_e( 'default format', INTERGEO_PLUGIN_NAME ) ?>
|
25 |
-
</option>
|
26 |
-
<option value="LEADERBOARD" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'LEADERBOARD' : false ) ?>>
|
27 |
-
<?php esc_html_e( 'Leaderboard', INTERGEO_PLUGIN_NAME ) ?>
|
28 |
-
</option>
|
29 |
-
<option value="BANNER" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'BANNER' : false ) ?>>
|
30 |
-
<?php esc_html_e( 'Banner', INTERGEO_PLUGIN_NAME ) ?>
|
31 |
-
</option>
|
32 |
-
<option value="HALF_BANNER" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'HALF_BANNER' : false ) ?>>
|
33 |
-
<?php esc_html_e( 'Half Banner', INTERGEO_PLUGIN_NAME ) ?>
|
34 |
-
</option>
|
35 |
-
<option value="SKYSCRAPER" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'SKYSCRAPER' : false ) ?>>
|
36 |
-
<?php esc_html_e( 'Skyscraper', INTERGEO_PLUGIN_NAME ) ?>
|
37 |
-
</option>
|
38 |
-
<option value="WIDE_SKYSCRAPER" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'WIDE_SKYSCRAPER' : false ) ?>>
|
39 |
-
<?php esc_html_e( 'Wide Skyscraper', INTERGEO_PLUGIN_NAME ) ?>
|
40 |
-
</option>
|
41 |
-
<option value="VERTICAL_BANNER" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'VERTICAL_BANNER' : false ) ?>>
|
42 |
-
<?php esc_html_e( 'Vertical Banner', INTERGEO_PLUGIN_NAME ) ?>
|
43 |
-
</option>
|
44 |
-
<option value="BUTTON" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'BUTTON' : false ) ?>>
|
45 |
-
<?php esc_html_e( 'Button', INTERGEO_PLUGIN_NAME ) ?>
|
46 |
-
</option>
|
47 |
-
<option value="SMALL_SQUARE" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'SMALL_SQUARE' : false ) ?>>
|
48 |
-
<?php esc_html_e( 'Small Square', INTERGEO_PLUGIN_NAME ) ?>
|
49 |
-
</option>
|
50 |
-
<option value="SQUARE" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'SQUARE' : false ) ?>>
|
51 |
-
<?php esc_html_e( 'Square', INTERGEO_PLUGIN_NAME ) ?>
|
52 |
-
</option>
|
53 |
-
<option value="SMALL_RECTANGLE" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'SMALL_RECTANGLE' : false ) ?>>
|
54 |
-
<?php esc_html_e( 'Small Rectangle', INTERGEO_PLUGIN_NAME ) ?>
|
55 |
-
</option>
|
56 |
-
<option value="MEDIUM_RECTANGLE" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'MEDIUM_RECTANGLE' : false ) ?>>
|
57 |
-
<?php esc_html_e( 'Medium Rectangle', INTERGEO_PLUGIN_NAME ) ?>
|
58 |
-
</option>
|
59 |
-
<option value="LARGE_RECTANGLE" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'LARGE_RECTANGLE' : false ) ?>>
|
60 |
-
<?php esc_html_e( 'Large Rectangle', INTERGEO_PLUGIN_NAME ) ?>
|
61 |
-
</option>
|
62 |
-
<option value="SMALL_VERTICAL_LINK_UNIT" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'SMALL_VERTICAL_LINK_UNIT' : false ) ?>>
|
63 |
-
<?php esc_html_e( 'Small Vertical Link Unit', INTERGEO_PLUGIN_NAME ) ?>
|
64 |
-
</option>
|
65 |
-
<option value="MEDIUM_VERTICAL_LINK_UNIT" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'MEDIUM_VERTICAL_LINK_UNIT' : false ) ?>>
|
66 |
-
<?php esc_html_e( 'Medium Vertical Link Unit', INTERGEO_PLUGIN_NAME ) ?>
|
67 |
-
</option>
|
68 |
-
<option value="LARGE_VERTICAL_LINK_UNIT" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'LARGE_VERTICAL_LINK_UNIT' : false ) ?>>
|
69 |
-
<?php esc_html_e( 'Large Vertical Link Unit', INTERGEO_PLUGIN_NAME ) ?>
|
70 |
-
</option>
|
71 |
-
<option value="X_LARGE_VERTICAL_LINK_UNIT" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'X_LARGE_VERTICAL_LINK_UNIT' : false ) ?>>
|
72 |
-
<?php esc_html_e( 'Extra Large Vertical Link Unit', INTERGEO_PLUGIN_NAME ) ?>
|
73 |
-
</option>
|
74 |
-
<option value="SMALL_HORIZONTAL_LINK_UNIT" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'SMALL_HORIZONTAL_LINK_UNIT' : false ) ?>>
|
75 |
-
<?php esc_html_e( 'Small Horizontal Link Unit', INTERGEO_PLUGIN_NAME ) ?>
|
76 |
-
</option>
|
77 |
-
<option value="LARGE_HORIZONTAL_LINK_UNIT" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'LARGE_HORIZONTAL_LINK_UNIT' : false ) ?>>
|
78 |
-
<?php esc_html_e( 'Large Horizontal Link Unit', INTERGEO_PLUGIN_NAME ) ?>
|
79 |
-
</option>
|
80 |
-
</select>
|
81 |
-
</td>
|
82 |
-
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
83 |
-
<select class="intergeo_tlbr_cntrl_slct" name="adsense_position">
|
84 |
-
<option value=""><?php esc_html_e( 'default position', INTERGEO_PLUGIN_NAME ) ?></option>
|
85 |
-
<option value="TOP_LEFT" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'TOP_LEFT' : false ) ?>>
|
86 |
-
<?php esc_html_e( 'Top Left', INTERGEO_PLUGIN_NAME ) ?>
|
87 |
-
</option>
|
88 |
-
<option value="TOP_CENTER" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'TOP_CENTER' : false ) ?>>
|
89 |
-
<?php esc_html_e( 'Top Center', INTERGEO_PLUGIN_NAME ) ?>
|
90 |
-
</option>
|
91 |
-
<option value="TOP_RIGHT" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'TOP_RIGHT' : false ) ?>>
|
92 |
-
<?php esc_html_e( 'Top Right', INTERGEO_PLUGIN_NAME ) ?>
|
93 |
-
</option>
|
94 |
-
<option value="RIGHT_TOP" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'RIGHT_TOP' : false ) ?>>
|
95 |
-
<?php esc_html_e( 'Right Top', INTERGEO_PLUGIN_NAME ) ?>
|
96 |
-
</option>
|
97 |
-
<option value="RIGHT_CENTER" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'RIGHT_CENTER' : false ) ?>>
|
98 |
-
<?php esc_html_e( 'Right Center', INTERGEO_PLUGIN_NAME ) ?>
|
99 |
-
</option>
|
100 |
-
<option value="RIGHT_BOTTOM" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'RIGHT_BOTTOM' : false ) ?>>
|
101 |
-
<?php esc_html_e( 'Right Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
102 |
-
</option>
|
103 |
-
<option value="BOTTOM_RIGHT" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'BOTTOM_RIGHT' : false ) ?>>
|
104 |
-
<?php esc_html_e( 'Bottom Right', INTERGEO_PLUGIN_NAME ) ?>
|
105 |
-
</option>
|
106 |
-
<option value="BOTTOM_CENTER" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'BOTTOM_CENTER' : false ) ?>>
|
107 |
-
<?php esc_html_e( 'Bottom Center', INTERGEO_PLUGIN_NAME ) ?>
|
108 |
-
</option>
|
109 |
-
<option value="BOTTOM_LEFT" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'BOTTOM_LEFT' : false ) ?>>
|
110 |
-
<?php esc_html_e( 'Bottom Left', INTERGEO_PLUGIN_NAME ) ?>
|
111 |
-
</option>
|
112 |
-
<option value="LEFT_BOTTOM" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'LEFT_BOTTOM' : false ) ?>>
|
113 |
-
<?php esc_html_e( 'Left Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
114 |
-
</option>
|
115 |
-
<option value="LEFT_CENTER" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'LEFT_CENTER' : false ) ?>>
|
116 |
-
<?php esc_html_e( 'Left Center', INTERGEO_PLUGIN_NAME ) ?>
|
117 |
-
</option>
|
118 |
-
<option value="LEFT_TOP" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'LEFT_TOP' : false ) ?>>
|
119 |
-
<?php esc_html_e( 'Left Top', INTERGEO_PLUGIN_NAME ) ?>
|
120 |
-
</option>
|
121 |
-
</select>
|
122 |
-
</td>
|
123 |
-
</tr>
|
124 |
-
</table>
|
125 |
-
</div>
|
126 |
-
</li>
|
127 |
-
<li class="intergeo_tlbr_ul_li_ul_li">
|
128 |
-
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Styles', INTERGEO_PLUGIN_NAME ) ?></span>
|
129 |
-
<div class="intergeo_tlbr_cntrl_items">
|
130 |
-
<div class="intergeo_tlbr_cntrl_item">
|
131 |
-
<b><?php esc_html_e( 'Background color', INTERGEO_PLUGIN_NAME ) ?></b>
|
132 |
-
</div>
|
133 |
-
<div class="intergeo_tlbr_cntrl_item">
|
134 |
-
<input class="color-picker-hex" type="text" name="adsense_backgroundColor" maxlength="7" placeholder="<?php esc_attr_e( 'Hex Value' ) ?>" value="<?php echo isset( $json['adsense']['backgroundColor'] ) ? esc_attr( $json['adsense']['backgroundColor'] ) : '#c4d4f3' ?>" data-default-color="#c4d4f3">
|
135 |
-
</div>
|
136 |
-
<div class="intergeo_tlbr_cntrl_item">
|
137 |
-
<b><?php esc_html_e( 'Border color', INTERGEO_PLUGIN_NAME ) ?></b>
|
138 |
-
</div>
|
139 |
-
<div class="intergeo_tlbr_cntrl_item">
|
140 |
-
<input class="color-picker-hex" type="text" name="adsense_borderColor" maxlength="7" placeholder="<?php esc_attr_e( 'Hex Value' ) ?>" value="<?php echo isset( $json['adsense']['borderColor'] ) ? esc_attr( $json['adsense']['borderColor'] ) : '#e5ecf9' ?>" data-default-color="#e5ecf9">
|
141 |
-
</div>
|
142 |
-
<div class="intergeo_tlbr_cntrl_item">
|
143 |
-
<b><?php esc_html_e( 'Title color', INTERGEO_PLUGIN_NAME ) ?></b>
|
144 |
-
</div>
|
145 |
-
<div class="intergeo_tlbr_cntrl_item">
|
146 |
-
<input class="color-picker-hex" type="text" name="adsense_titleColor" maxlength="7" placeholder="<?php esc_attr_e( 'Hex Value' ) ?>" value="<?php echo isset( $json['adsense']['titleColor'] ) ? esc_attr( $json['adsense']['titleColor'] ) : '#0000cc' ?>" data-default-color="#0000cc">
|
147 |
-
</div>
|
148 |
-
<div class="intergeo_tlbr_cntrl_item">
|
149 |
-
<b><?php esc_html_e( 'Text color', INTERGEO_PLUGIN_NAME ) ?></b>
|
150 |
-
</div>
|
151 |
-
<div class="intergeo_tlbr_cntrl_item">
|
152 |
-
<input class="color-picker-hex" type="text" name="adsense_textColor" maxlength="7" placeholder="<?php esc_attr_e( 'Hex Value' ) ?>" value="<?php echo isset( $json['adsense']['textColor'] ) ? esc_attr( $json['adsense']['textColor'] ) : '#000000' ?>" data-default-color="#000000">
|
153 |
-
</div>
|
154 |
-
<div class="intergeo_tlbr_cntrl_item">
|
155 |
-
<b><?php esc_html_e( 'URL color', INTERGEO_PLUGIN_NAME ) ?></b>
|
156 |
-
</div>
|
157 |
-
<div class="intergeo_tlbr_cntrl_item">
|
158 |
-
<input class="color-picker-hex" type="text" name="adsense_urlColor" maxlength="7" placeholder="<?php esc_attr_e( 'Hex Value' ) ?>" value="<?php echo isset( $json['adsense']['urlColor'] ) ? esc_attr( $json['adsense']['urlColor'] ) : '#009900' ?>" data-default-color="#009900">
|
159 |
-
</div>
|
160 |
-
</div>
|
161 |
-
</li>
|
162 |
</ul>
|
1 |
+
<h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'AdSense Integration', INTERGEO_PLUGIN_NAME ) ?></h3>
|
2 |
+
<ul class="intergeo_tlbr_ul_li_ul"><?php
|
3 |
+
if ( empty( $publisher_id ) ) :
|
4 |
+
?><li class="intergeo_tlbr_ul_li_ul_li">
|
5 |
+
<p class="intergeo_tlbr_grp_dsc"><?php
|
6 |
+
printf( esc_html__( 'To make AdSense working on your maps, you have to setup your publisher ID. You can do it at the %ssettings page%s.', INTERGEO_PLUGIN_NAME ), '<a href="' . admin_url( 'options-media.php' ) . '" target="_blank">', '</a>' )
|
7 |
+
?></p>
|
8 |
+
</li><?php
|
9 |
+
endif;
|
10 |
+
?><li class="intergeo_tlbr_ul_li_ul_li">
|
11 |
+
<div class="intergeo_tlbr_cntrl_items" style="display:block">
|
12 |
+
<div class="intergeo_tlbr_cntrl_item">
|
13 |
+
<label>
|
14 |
+
<input type="hidden" name="layer_adsense" value="0">
|
15 |
+
<input type="checkbox" name="layer_adsense" value="1" <?php checked( isset( $json['layer']['adsense'] ) ? $json['layer']['adsense'] == '1' : false ) ?>>
|
16 |
+
Enabled
|
17 |
+
</label>
|
18 |
+
</div>
|
19 |
+
<table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
|
20 |
+
<tr>
|
21 |
+
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
22 |
+
<select name="adsense_format" class="intergeo_tlbr_cntrl_slct">
|
23 |
+
<option value="">
|
24 |
+
<?php esc_html_e( 'default format', INTERGEO_PLUGIN_NAME ) ?>
|
25 |
+
</option>
|
26 |
+
<option value="LEADERBOARD" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'LEADERBOARD' : false ) ?>>
|
27 |
+
<?php esc_html_e( 'Leaderboard', INTERGEO_PLUGIN_NAME ) ?>
|
28 |
+
</option>
|
29 |
+
<option value="BANNER" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'BANNER' : false ) ?>>
|
30 |
+
<?php esc_html_e( 'Banner', INTERGEO_PLUGIN_NAME ) ?>
|
31 |
+
</option>
|
32 |
+
<option value="HALF_BANNER" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'HALF_BANNER' : false ) ?>>
|
33 |
+
<?php esc_html_e( 'Half Banner', INTERGEO_PLUGIN_NAME ) ?>
|
34 |
+
</option>
|
35 |
+
<option value="SKYSCRAPER" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'SKYSCRAPER' : false ) ?>>
|
36 |
+
<?php esc_html_e( 'Skyscraper', INTERGEO_PLUGIN_NAME ) ?>
|
37 |
+
</option>
|
38 |
+
<option value="WIDE_SKYSCRAPER" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'WIDE_SKYSCRAPER' : false ) ?>>
|
39 |
+
<?php esc_html_e( 'Wide Skyscraper', INTERGEO_PLUGIN_NAME ) ?>
|
40 |
+
</option>
|
41 |
+
<option value="VERTICAL_BANNER" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'VERTICAL_BANNER' : false ) ?>>
|
42 |
+
<?php esc_html_e( 'Vertical Banner', INTERGEO_PLUGIN_NAME ) ?>
|
43 |
+
</option>
|
44 |
+
<option value="BUTTON" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'BUTTON' : false ) ?>>
|
45 |
+
<?php esc_html_e( 'Button', INTERGEO_PLUGIN_NAME ) ?>
|
46 |
+
</option>
|
47 |
+
<option value="SMALL_SQUARE" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'SMALL_SQUARE' : false ) ?>>
|
48 |
+
<?php esc_html_e( 'Small Square', INTERGEO_PLUGIN_NAME ) ?>
|
49 |
+
</option>
|
50 |
+
<option value="SQUARE" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'SQUARE' : false ) ?>>
|
51 |
+
<?php esc_html_e( 'Square', INTERGEO_PLUGIN_NAME ) ?>
|
52 |
+
</option>
|
53 |
+
<option value="SMALL_RECTANGLE" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'SMALL_RECTANGLE' : false ) ?>>
|
54 |
+
<?php esc_html_e( 'Small Rectangle', INTERGEO_PLUGIN_NAME ) ?>
|
55 |
+
</option>
|
56 |
+
<option value="MEDIUM_RECTANGLE" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'MEDIUM_RECTANGLE' : false ) ?>>
|
57 |
+
<?php esc_html_e( 'Medium Rectangle', INTERGEO_PLUGIN_NAME ) ?>
|
58 |
+
</option>
|
59 |
+
<option value="LARGE_RECTANGLE" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'LARGE_RECTANGLE' : false ) ?>>
|
60 |
+
<?php esc_html_e( 'Large Rectangle', INTERGEO_PLUGIN_NAME ) ?>
|
61 |
+
</option>
|
62 |
+
<option value="SMALL_VERTICAL_LINK_UNIT" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'SMALL_VERTICAL_LINK_UNIT' : false ) ?>>
|
63 |
+
<?php esc_html_e( 'Small Vertical Link Unit', INTERGEO_PLUGIN_NAME ) ?>
|
64 |
+
</option>
|
65 |
+
<option value="MEDIUM_VERTICAL_LINK_UNIT" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'MEDIUM_VERTICAL_LINK_UNIT' : false ) ?>>
|
66 |
+
<?php esc_html_e( 'Medium Vertical Link Unit', INTERGEO_PLUGIN_NAME ) ?>
|
67 |
+
</option>
|
68 |
+
<option value="LARGE_VERTICAL_LINK_UNIT" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'LARGE_VERTICAL_LINK_UNIT' : false ) ?>>
|
69 |
+
<?php esc_html_e( 'Large Vertical Link Unit', INTERGEO_PLUGIN_NAME ) ?>
|
70 |
+
</option>
|
71 |
+
<option value="X_LARGE_VERTICAL_LINK_UNIT" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'X_LARGE_VERTICAL_LINK_UNIT' : false ) ?>>
|
72 |
+
<?php esc_html_e( 'Extra Large Vertical Link Unit', INTERGEO_PLUGIN_NAME ) ?>
|
73 |
+
</option>
|
74 |
+
<option value="SMALL_HORIZONTAL_LINK_UNIT" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'SMALL_HORIZONTAL_LINK_UNIT' : false ) ?>>
|
75 |
+
<?php esc_html_e( 'Small Horizontal Link Unit', INTERGEO_PLUGIN_NAME ) ?>
|
76 |
+
</option>
|
77 |
+
<option value="LARGE_HORIZONTAL_LINK_UNIT" <?php selected( isset( $json['adsense']['format'] ) ? $json['adsense']['format'] == 'LARGE_HORIZONTAL_LINK_UNIT' : false ) ?>>
|
78 |
+
<?php esc_html_e( 'Large Horizontal Link Unit', INTERGEO_PLUGIN_NAME ) ?>
|
79 |
+
</option>
|
80 |
+
</select>
|
81 |
+
</td>
|
82 |
+
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
83 |
+
<select class="intergeo_tlbr_cntrl_slct" name="adsense_position">
|
84 |
+
<option value=""><?php esc_html_e( 'default position', INTERGEO_PLUGIN_NAME ) ?></option>
|
85 |
+
<option value="TOP_LEFT" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'TOP_LEFT' : false ) ?>>
|
86 |
+
<?php esc_html_e( 'Top Left', INTERGEO_PLUGIN_NAME ) ?>
|
87 |
+
</option>
|
88 |
+
<option value="TOP_CENTER" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'TOP_CENTER' : false ) ?>>
|
89 |
+
<?php esc_html_e( 'Top Center', INTERGEO_PLUGIN_NAME ) ?>
|
90 |
+
</option>
|
91 |
+
<option value="TOP_RIGHT" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'TOP_RIGHT' : false ) ?>>
|
92 |
+
<?php esc_html_e( 'Top Right', INTERGEO_PLUGIN_NAME ) ?>
|
93 |
+
</option>
|
94 |
+
<option value="RIGHT_TOP" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'RIGHT_TOP' : false ) ?>>
|
95 |
+
<?php esc_html_e( 'Right Top', INTERGEO_PLUGIN_NAME ) ?>
|
96 |
+
</option>
|
97 |
+
<option value="RIGHT_CENTER" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'RIGHT_CENTER' : false ) ?>>
|
98 |
+
<?php esc_html_e( 'Right Center', INTERGEO_PLUGIN_NAME ) ?>
|
99 |
+
</option>
|
100 |
+
<option value="RIGHT_BOTTOM" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'RIGHT_BOTTOM' : false ) ?>>
|
101 |
+
<?php esc_html_e( 'Right Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
102 |
+
</option>
|
103 |
+
<option value="BOTTOM_RIGHT" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'BOTTOM_RIGHT' : false ) ?>>
|
104 |
+
<?php esc_html_e( 'Bottom Right', INTERGEO_PLUGIN_NAME ) ?>
|
105 |
+
</option>
|
106 |
+
<option value="BOTTOM_CENTER" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'BOTTOM_CENTER' : false ) ?>>
|
107 |
+
<?php esc_html_e( 'Bottom Center', INTERGEO_PLUGIN_NAME ) ?>
|
108 |
+
</option>
|
109 |
+
<option value="BOTTOM_LEFT" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'BOTTOM_LEFT' : false ) ?>>
|
110 |
+
<?php esc_html_e( 'Bottom Left', INTERGEO_PLUGIN_NAME ) ?>
|
111 |
+
</option>
|
112 |
+
<option value="LEFT_BOTTOM" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'LEFT_BOTTOM' : false ) ?>>
|
113 |
+
<?php esc_html_e( 'Left Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
114 |
+
</option>
|
115 |
+
<option value="LEFT_CENTER" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'LEFT_CENTER' : false ) ?>>
|
116 |
+
<?php esc_html_e( 'Left Center', INTERGEO_PLUGIN_NAME ) ?>
|
117 |
+
</option>
|
118 |
+
<option value="LEFT_TOP" <?php selected( isset( $json['adsense']['position'] ) ? $json['adsense']['position'] == 'LEFT_TOP' : false ) ?>>
|
119 |
+
<?php esc_html_e( 'Left Top', INTERGEO_PLUGIN_NAME ) ?>
|
120 |
+
</option>
|
121 |
+
</select>
|
122 |
+
</td>
|
123 |
+
</tr>
|
124 |
+
</table>
|
125 |
+
</div>
|
126 |
+
</li>
|
127 |
+
<li class="intergeo_tlbr_ul_li_ul_li">
|
128 |
+
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Styles', INTERGEO_PLUGIN_NAME ) ?></span>
|
129 |
+
<div class="intergeo_tlbr_cntrl_items">
|
130 |
+
<div class="intergeo_tlbr_cntrl_item">
|
131 |
+
<b><?php esc_html_e( 'Background color', INTERGEO_PLUGIN_NAME ) ?></b>
|
132 |
+
</div>
|
133 |
+
<div class="intergeo_tlbr_cntrl_item">
|
134 |
+
<input class="color-picker-hex" type="text" name="adsense_backgroundColor" maxlength="7" placeholder="<?php esc_attr_e( 'Hex Value' ) ?>" value="<?php echo isset( $json['adsense']['backgroundColor'] ) ? esc_attr( $json['adsense']['backgroundColor'] ) : '#c4d4f3' ?>" data-default-color="#c4d4f3">
|
135 |
+
</div>
|
136 |
+
<div class="intergeo_tlbr_cntrl_item">
|
137 |
+
<b><?php esc_html_e( 'Border color', INTERGEO_PLUGIN_NAME ) ?></b>
|
138 |
+
</div>
|
139 |
+
<div class="intergeo_tlbr_cntrl_item">
|
140 |
+
<input class="color-picker-hex" type="text" name="adsense_borderColor" maxlength="7" placeholder="<?php esc_attr_e( 'Hex Value' ) ?>" value="<?php echo isset( $json['adsense']['borderColor'] ) ? esc_attr( $json['adsense']['borderColor'] ) : '#e5ecf9' ?>" data-default-color="#e5ecf9">
|
141 |
+
</div>
|
142 |
+
<div class="intergeo_tlbr_cntrl_item">
|
143 |
+
<b><?php esc_html_e( 'Title color', INTERGEO_PLUGIN_NAME ) ?></b>
|
144 |
+
</div>
|
145 |
+
<div class="intergeo_tlbr_cntrl_item">
|
146 |
+
<input class="color-picker-hex" type="text" name="adsense_titleColor" maxlength="7" placeholder="<?php esc_attr_e( 'Hex Value' ) ?>" value="<?php echo isset( $json['adsense']['titleColor'] ) ? esc_attr( $json['adsense']['titleColor'] ) : '#0000cc' ?>" data-default-color="#0000cc">
|
147 |
+
</div>
|
148 |
+
<div class="intergeo_tlbr_cntrl_item">
|
149 |
+
<b><?php esc_html_e( 'Text color', INTERGEO_PLUGIN_NAME ) ?></b>
|
150 |
+
</div>
|
151 |
+
<div class="intergeo_tlbr_cntrl_item">
|
152 |
+
<input class="color-picker-hex" type="text" name="adsense_textColor" maxlength="7" placeholder="<?php esc_attr_e( 'Hex Value' ) ?>" value="<?php echo isset( $json['adsense']['textColor'] ) ? esc_attr( $json['adsense']['textColor'] ) : '#000000' ?>" data-default-color="#000000">
|
153 |
+
</div>
|
154 |
+
<div class="intergeo_tlbr_cntrl_item">
|
155 |
+
<b><?php esc_html_e( 'URL color', INTERGEO_PLUGIN_NAME ) ?></b>
|
156 |
+
</div>
|
157 |
+
<div class="intergeo_tlbr_cntrl_item">
|
158 |
+
<input class="color-picker-hex" type="text" name="adsense_urlColor" maxlength="7" placeholder="<?php esc_attr_e( 'Hex Value' ) ?>" value="<?php echo isset( $json['adsense']['urlColor'] ) ? esc_attr( $json['adsense']['urlColor'] ) : '#009900' ?>" data-default-color="#009900">
|
159 |
+
</div>
|
160 |
+
</div>
|
161 |
+
</li>
|
162 |
</ul>
|
templates/iframe/controls.php
CHANGED
@@ -1,450 +1,450 @@
|
|
1 |
-
|
2 |
-
<h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'Controls', INTERGEO_PLUGIN_NAME ) ?></h3>
|
3 |
-
<ul class="intergeo_tlbr_ul_li_ul">
|
4 |
-
<li class="intergeo_tlbr_ul_li_ul_li">
|
5 |
-
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Zoom control', INTERGEO_PLUGIN_NAME ) ?></span>
|
6 |
-
<div class="intergeo_tlbr_cntrl_items">
|
7 |
-
<div class="intergeo_tlbr_cntrl_item">
|
8 |
-
<a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
|
9 |
-
<label>
|
10 |
-
<input type="hidden" name="map_zoomControl" value="0">
|
11 |
-
<input type="checkbox" name="map_zoomControl" value="1" <?php checked( isset( $json['map']['zoomControl'] ) ? $json['map']['zoomControl'] == 1 : true ) ?>>
|
12 |
-
<?php esc_html_e( 'Enabled', INTERGEO_PLUGIN_NAME ) ?>
|
13 |
-
</label>
|
14 |
-
</div>
|
15 |
-
<p class="intergeo_tlbr_cntrl_dsc">
|
16 |
-
<?php esc_html_e( 'The Zoom control displays a slider (for large maps) or small "+/-" buttons (for small maps) to control the zoom level of the map. This control appears by default in the top left corner of the map on non-touch devices or in the bottom left corner on touch devices.', INTERGEO_PLUGIN_NAME ) ?>
|
17 |
-
</p>
|
18 |
-
<table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
|
19 |
-
<tr>
|
20 |
-
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
21 |
-
<select class="intergeo_tlbr_cntrl_slct" name="map_zoomControlOptions_position">
|
22 |
-
<option value=""><?php esc_html_e( 'default position', INTERGEO_PLUGIN_NAME ) ?></option>
|
23 |
-
<option value="TOP_LEFT" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'TOP_LEFT' : false ) ?>>
|
24 |
-
<?php esc_html_e( 'Top Left', INTERGEO_PLUGIN_NAME ) ?>
|
25 |
-
</option>
|
26 |
-
<option value="TOP_CENTER" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'TOP_CENTER' : false ) ?>>
|
27 |
-
<?php esc_html_e( 'Top Center', INTERGEO_PLUGIN_NAME ) ?>
|
28 |
-
</option>
|
29 |
-
<option value="TOP_RIGHT" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'TOP_RIGHT' : false ) ?>>
|
30 |
-
<?php esc_html_e( 'Top Right', INTERGEO_PLUGIN_NAME ) ?>
|
31 |
-
</option>
|
32 |
-
<option value="RIGHT_TOP" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'RIGHT_TOP' : false ) ?>>
|
33 |
-
<?php esc_html_e( 'Right Top', INTERGEO_PLUGIN_NAME ) ?>
|
34 |
-
</option>
|
35 |
-
<option value="RIGHT_CENTER" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'RIGHT_CENTER' : false ) ?>>
|
36 |
-
<?php esc_html_e( 'Right Center', INTERGEO_PLUGIN_NAME ) ?>
|
37 |
-
</option>
|
38 |
-
<option value="RIGHT_BOTTOM" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'RIGHT_BOTTOM' : false ) ?>>
|
39 |
-
<?php esc_html_e( 'Right Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
40 |
-
</option>
|
41 |
-
<option value="BOTTOM_RIGHT" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'BOTTOM_RIGHT' : false ) ?>>
|
42 |
-
<?php esc_html_e( 'Bottom Right', INTERGEO_PLUGIN_NAME ) ?>
|
43 |
-
</option>
|
44 |
-
<option value="BOTTOM_CENTER" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'BOTTOM_CENTER' : false ) ?>>
|
45 |
-
<?php esc_html_e( 'Bottom Center', INTERGEO_PLUGIN_NAME ) ?>
|
46 |
-
</option>
|
47 |
-
<option value="BOTTOM_LEFT" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'BOTTOM_LEFT' : false ) ?>>
|
48 |
-
<?php esc_html_e( 'Bottom Left', INTERGEO_PLUGIN_NAME ) ?>
|
49 |
-
</option>
|
50 |
-
<option value="LEFT_BOTTOM" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'LEFT_BOTTOM' : false ) ?>>
|
51 |
-
<?php esc_html_e( 'Left Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
52 |
-
</option>
|
53 |
-
<option value="LEFT_CENTER" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'LEFT_CENTER' : false ) ?>>
|
54 |
-
<?php esc_html_e( 'Left Center', INTERGEO_PLUGIN_NAME ) ?>
|
55 |
-
</option>
|
56 |
-
<option value="LEFT_TOP" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'LEFT_TOP' : false ) ?>>
|
57 |
-
<?php esc_html_e( 'Left Top', INTERGEO_PLUGIN_NAME ) ?>
|
58 |
-
</option>
|
59 |
-
</select>
|
60 |
-
</td>
|
61 |
-
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
62 |
-
<select class="intergeo_tlbr_cntrl_slct" name="map_zoomControlOptions_style">
|
63 |
-
<option value="DEFAULT">
|
64 |
-
<?php esc_html_e( 'default style', INTERGEO_PLUGIN_NAME ) ?>
|
65 |
-
</option>
|
66 |
-
<option value="SMALL" <?php selected( isset( $json['map']['zoomControlOptions']['style'] ) ? $json['map']['zoomControlOptions']['style'] == 'SMALL' : false ) ?>>
|
67 |
-
<?php esc_html_e( 'small', INTERGEO_PLUGIN_NAME ) ?>
|
68 |
-
</option>
|
69 |
-
<option value="LARGE" <?php selected( isset( $json['map']['zoomControlOptions']['style'] ) ? $json['map']['zoomControlOptions']['style'] == 'LARGE' : false ) ?>>
|
70 |
-
<?php esc_html_e( 'large', INTERGEO_PLUGIN_NAME ) ?>
|
71 |
-
</option>
|
72 |
-
</select>
|
73 |
-
</td>
|
74 |
-
</tr>
|
75 |
-
</table>
|
76 |
-
</div>
|
77 |
-
</li>
|
78 |
-
<li class="intergeo_tlbr_ul_li_ul_li">
|
79 |
-
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Pan control', INTERGEO_PLUGIN_NAME ) ?></span>
|
80 |
-
<div class="intergeo_tlbr_cntrl_items">
|
81 |
-
<div class="intergeo_tlbr_cntrl_item">
|
82 |
-
<a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
|
83 |
-
<label>
|
84 |
-
<input type="hidden" name="map_panControl" value="0">
|
85 |
-
<input type="checkbox" name="map_panControl" value="1" <?php checked( isset( $json['map']['panControl'] ) ? $json['map']['panControl'] == 1 : true ) ?>>
|
86 |
-
<?php esc_html_e( 'Enabled', INTERGEO_PLUGIN_NAME ) ?>
|
87 |
-
</label>
|
88 |
-
</div>
|
89 |
-
<p class="intergeo_tlbr_cntrl_dsc">
|
90 |
-
<?php esc_html_e( 'The Pan control displays buttons for panning the map. This control appears by default in the top left corner of the map on non-touch devices. The Pan control also allows you to rotate 45° imagery, if available.', INTERGEO_PLUGIN_NAME ) ?>
|
91 |
-
</p>
|
92 |
-
<table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
|
93 |
-
<tr>
|
94 |
-
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
95 |
-
<select class="intergeo_tlbr_cntrl_slct" name="map_panControlOptions_position">
|
96 |
-
<option value=""><?php esc_html_e( 'default position', INTERGEO_PLUGIN_NAME ) ?></option>
|
97 |
-
<option value="TOP_LEFT" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'TOP_LEFT' : false ) ?>>
|
98 |
-
<?php esc_html_e( 'Top Left', INTERGEO_PLUGIN_NAME ) ?>
|
99 |
-
</option>
|
100 |
-
<option value="TOP_CENTER" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'TOP_CENTER' : false ) ?>>
|
101 |
-
<?php esc_html_e( 'Top Center', INTERGEO_PLUGIN_NAME ) ?>
|
102 |
-
</option>
|
103 |
-
<option value="TOP_RIGHT" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'TOP_RIGHT' : false ) ?>>
|
104 |
-
<?php esc_html_e( 'Top Right', INTERGEO_PLUGIN_NAME ) ?>
|
105 |
-
</option>
|
106 |
-
<option value="RIGHT_TOP" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'RIGHT_TOP' : false ) ?>>
|
107 |
-
<?php esc_html_e( 'Right Top', INTERGEO_PLUGIN_NAME ) ?>
|
108 |
-
</option>
|
109 |
-
<option value="RIGHT_CENTER" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'RIGHT_CENTER' : false ) ?>>
|
110 |
-
<?php esc_html_e( 'Right Center', INTERGEO_PLUGIN_NAME ) ?>
|
111 |
-
</option>
|
112 |
-
<option value="RIGHT_BOTTOM" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'RIGHT_BOTTOM' : false ) ?>>
|
113 |
-
<?php esc_html_e( 'Right Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
114 |
-
</option>
|
115 |
-
<option value="BOTTOM_RIGHT" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'BOTTOM_RIGHT' : false ) ?>>
|
116 |
-
<?php esc_html_e( 'Bottom Right', INTERGEO_PLUGIN_NAME ) ?>
|
117 |
-
</option>
|
118 |
-
<option value="BOTTOM_CENTER" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'BOTTOM_CENTER' : false ) ?>>
|
119 |
-
<?php esc_html_e( 'Bottom Center', INTERGEO_PLUGIN_NAME ) ?>
|
120 |
-
</option>
|
121 |
-
<option value="BOTTOM_LEFT" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'BOTTOM_LEFT' : false ) ?>>
|
122 |
-
<?php esc_html_e( 'Bottom Left', INTERGEO_PLUGIN_NAME ) ?>
|
123 |
-
</option>
|
124 |
-
<option value="LEFT_BOTTOM" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'LEFT_BOTTOM' : false ) ?>>
|
125 |
-
<?php esc_html_e( 'Left Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
126 |
-
</option>
|
127 |
-
<option value="LEFT_CENTER" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'LEFT_CENTER' : false ) ?>>
|
128 |
-
<?php esc_html_e( 'Left Center', INTERGEO_PLUGIN_NAME ) ?>
|
129 |
-
</option>
|
130 |
-
<option value="LEFT_TOP" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'LEFT_TOP' : false ) ?>>
|
131 |
-
<?php esc_html_e( 'Left Top', INTERGEO_PLUGIN_NAME ) ?>
|
132 |
-
</option>
|
133 |
-
</select>
|
134 |
-
</td>
|
135 |
-
<td class="intergeo_tlbr_cntrl_tbl_clmn"> </td>
|
136 |
-
</tr>
|
137 |
-
</table>
|
138 |
-
</div>
|
139 |
-
</li>
|
140 |
-
<li class="intergeo_tlbr_ul_li_ul_li">
|
141 |
-
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Scale control', INTERGEO_PLUGIN_NAME ) ?></span>
|
142 |
-
<div class="intergeo_tlbr_cntrl_items">
|
143 |
-
<div class="intergeo_tlbr_cntrl_item">
|
144 |
-
<a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
|
145 |
-
<label>
|
146 |
-
<input type="hidden" name="map_scaleControl" value="0">
|
147 |
-
<input type="checkbox" name="map_scaleControl" value="1" <?php checked( isset( $json['map']['scaleControl'] ) ? $json['map']['scaleControl'] : false ) ?>>
|
148 |
-
<?php esc_html_e( 'Enabled', INTERGEO_PLUGIN_NAME ) ?>
|
149 |
-
</label>
|
150 |
-
</div>
|
151 |
-
<p class="intergeo_tlbr_cntrl_dsc">
|
152 |
-
<?php esc_html_e( 'The Scale control displays a map scale element. This control is not enabled by default.', INTERGEO_PLUGIN_NAME ) ?>
|
153 |
-
</p>
|
154 |
-
<table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
|
155 |
-
<tr>
|
156 |
-
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
157 |
-
<select class="intergeo_tlbr_cntrl_slct" name="map_scaleControlOptions_position">
|
158 |
-
<option value=""><?php esc_html_e( 'default position', INTERGEO_PLUGIN_NAME ) ?></option>
|
159 |
-
<option value="TOP_LEFT" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'TOP_LEFT' : false ) ?>>
|
160 |
-
<?php esc_html_e( 'Top Left', INTERGEO_PLUGIN_NAME ) ?>
|
161 |
-
</option>
|
162 |
-
<option value="TOP_CENTER" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'TOP_CENTER' : false ) ?>>
|
163 |
-
<?php esc_html_e( 'Top Center', INTERGEO_PLUGIN_NAME ) ?>
|
164 |
-
</option>
|
165 |
-
<option value="TOP_RIGHT" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'TOP_RIGHT' : false ) ?>>
|
166 |
-
<?php esc_html_e( 'Top Right', INTERGEO_PLUGIN_NAME ) ?>
|
167 |
-
</option>
|
168 |
-
<option value="RIGHT_TOP" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'RIGHT_TOP' : false ) ?>>
|
169 |
-
<?php esc_html_e( 'Right Top', INTERGEO_PLUGIN_NAME ) ?>
|
170 |
-
</option>
|
171 |
-
<option value="RIGHT_CENTER" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'RIGHT_CENTER' : false ) ?>>
|
172 |
-
<?php esc_html_e( 'Right Center', INTERGEO_PLUGIN_NAME ) ?>
|
173 |
-
</option>
|
174 |
-
<option value="RIGHT_BOTTOM" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'RIGHT_BOTTOM' : false ) ?>>
|
175 |
-
<?php esc_html_e( 'Right Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
176 |
-
</option>
|
177 |
-
<option value="BOTTOM_RIGHT" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'BOTTOM_RIGHT' : false ) ?>>
|
178 |
-
<?php esc_html_e( 'Bottom Right', INTERGEO_PLUGIN_NAME ) ?>
|
179 |
-
</option>
|
180 |
-
<option value="BOTTOM_CENTER" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'BOTTOM_CENTER' : false ) ?>>
|
181 |
-
<?php esc_html_e( 'Bottom Center', INTERGEO_PLUGIN_NAME ) ?>
|
182 |
-
</option>
|
183 |
-
<option value="BOTTOM_LEFT" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'BOTTOM_LEFT' : false ) ?>>
|
184 |
-
<?php esc_html_e( 'Bottom Left', INTERGEO_PLUGIN_NAME ) ?>
|
185 |
-
</option>
|
186 |
-
<option value="LEFT_BOTTOM" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'LEFT_BOTTOM' : false ) ?>>
|
187 |
-
<?php esc_html_e( 'Left Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
188 |
-
</option>
|
189 |
-
<option value="LEFT_CENTER" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'LEFT_CENTER' : false ) ?>>
|
190 |
-
<?php esc_html_e( 'Left Center', INTERGEO_PLUGIN_NAME ) ?>
|
191 |
-
</option>
|
192 |
-
<option value="LEFT_TOP" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'LEFT_TOP' : false ) ?>>
|
193 |
-
<?php esc_html_e( 'Left Top', INTERGEO_PLUGIN_NAME ) ?>
|
194 |
-
</option>
|
195 |
-
</select>
|
196 |
-
</td>
|
197 |
-
<td class="intergeo_tlbr_cntrl_tbl_clmn"> </td>
|
198 |
-
</tr>
|
199 |
-
</table>
|
200 |
-
</div>
|
201 |
-
</li>
|
202 |
-
<li class="intergeo_tlbr_ul_li_ul_li">
|
203 |
-
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'MapType control', INTERGEO_PLUGIN_NAME ) ?></span>
|
204 |
-
<div class="intergeo_tlbr_cntrl_items">
|
205 |
-
<div class="intergeo_tlbr_cntrl_item">
|
206 |
-
<a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
|
207 |
-
<label>
|
208 |
-
<input type="hidden" name="map_mapTypeControl" value="0">
|
209 |
-
<input type="checkbox" name="map_mapTypeControl" value="1" <?php checked( isset( $json['map']['mapTypeControl'] ) ? $json['map']['mapTypeControl'] : true ) ?>>
|
210 |
-
<?php esc_html_e( 'Enabled', INTERGEO_PLUGIN_NAME ) ?>
|
211 |
-
</label>
|
212 |
-
</div>
|
213 |
-
<p class="intergeo_tlbr_cntrl_dsc">
|
214 |
-
<?php esc_html_e( 'The MapType control lets the user toggle between map types (such as roadmap and satellite). This control appears by default in the top right corner of the map.', INTERGEO_PLUGIN_NAME ) ?>
|
215 |
-
</p>
|
216 |
-
<table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
|
217 |
-
<tr>
|
218 |
-
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
219 |
-
<select class="intergeo_tlbr_cntrl_slct" name="map_mapTypeControlOptions_position">
|
220 |
-
<option value=""><?php esc_html_e( 'default position', INTERGEO_PLUGIN_NAME ) ?></option>
|
221 |
-
<option value="TOP_LEFT" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'TOP_LEFT' : false ) ?>>
|
222 |
-
<?php esc_html_e( 'Top Left', INTERGEO_PLUGIN_NAME ) ?>
|
223 |
-
</option>
|
224 |
-
<option value="TOP_CENTER" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'TOP_CENTER' : false ) ?>>
|
225 |
-
<?php esc_html_e( 'Top Center', INTERGEO_PLUGIN_NAME ) ?>
|
226 |
-
</option>
|
227 |
-
<option value="TOP_RIGHT" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'TOP_RIGHT' : false ) ?>>
|
228 |
-
<?php esc_html_e( 'Top Right', INTERGEO_PLUGIN_NAME ) ?>
|
229 |
-
</option>
|
230 |
-
<option value="RIGHT_TOP" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'RIGHT_TOP' : false ) ?>>
|
231 |
-
<?php esc_html_e( 'Right Top', INTERGEO_PLUGIN_NAME ) ?>
|
232 |
-
</option>
|
233 |
-
<option value="RIGHT_CENTER" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'RIGHT_CENTER' : false ) ?>>
|
234 |
-
<?php esc_html_e( 'Right Center', INTERGEO_PLUGIN_NAME ) ?>
|
235 |
-
</option>
|
236 |
-
<option value="RIGHT_BOTTOM" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'RIGHT_BOTTOM' : false ) ?>>
|
237 |
-
<?php esc_html_e( 'Right Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
238 |
-
</option>
|
239 |
-
<option value="BOTTOM_RIGHT" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'BOTTOM_RIGHT' : false ) ?>>
|
240 |
-
<?php esc_html_e( 'Bottom Right', INTERGEO_PLUGIN_NAME ) ?>
|
241 |
-
</option>
|
242 |
-
<option value="BOTTOM_CENTER" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'BOTTOM_CENTER' : false ) ?>>
|
243 |
-
<?php esc_html_e( 'Bottom Center', INTERGEO_PLUGIN_NAME ) ?>
|
244 |
-
</option>
|
245 |
-
<option value="BOTTOM_LEFT" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'BOTTOM_LEFT' : false ) ?>>
|
246 |
-
<?php esc_html_e( 'Bottom Left', INTERGEO_PLUGIN_NAME ) ?>
|
247 |
-
</option>
|
248 |
-
<option value="LEFT_BOTTOM" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'LEFT_BOTTOM' : false ) ?>>
|
249 |
-
<?php esc_html_e( 'Left Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
250 |
-
</option>
|
251 |
-
<option value="LEFT_CENTER" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'LEFT_CENTER' : false ) ?>>
|
252 |
-
<?php esc_html_e( 'Left Center', INTERGEO_PLUGIN_NAME ) ?>
|
253 |
-
</option>
|
254 |
-
<option value="LEFT_TOP" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'LEFT_TOP' : false ) ?>>
|
255 |
-
<?php esc_html_e( 'Left Top', INTERGEO_PLUGIN_NAME ) ?>
|
256 |
-
</option>
|
257 |
-
</select>
|
258 |
-
</td>
|
259 |
-
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
260 |
-
<select class="intergeo_tlbr_cntrl_slct" name="map_mapTypeControlOptions_style">
|
261 |
-
<option value="DEFAULT">
|
262 |
-
<?php esc_html_e( 'default style', INTERGEO_PLUGIN_NAME ) ?>
|
263 |
-
</option>
|
264 |
-
<option value="DROPDOWN_MENU" <?php selected( isset( $json['map']['mapTypeControlOptions']['style'] ) ? $json['map']['mapTypeControlOptions']['style'] == 'DROPDOWN_MENU' : false ) ?>>
|
265 |
-
<?php esc_html_e( 'dropdown menu', INTERGEO_PLUGIN_NAME ) ?>
|
266 |
-
</option>
|
267 |
-
<option value="HORIZONTAL_BAR" <?php selected( isset( $json['map']['mapTypeControlOptions']['style'] ) ? $json['map']['mapTypeControlOptions']['style'] == 'HORIZONTAL_BAR' : false ) ?>>
|
268 |
-
<?php esc_html_e( 'horizontal bar', INTERGEO_PLUGIN_NAME ) ?>
|
269 |
-
</option>
|
270 |
-
</select>
|
271 |
-
</td>
|
272 |
-
</tr>
|
273 |
-
</table>
|
274 |
-
<div class="intergeo_tlbr_cntrl_item">
|
275 |
-
<b><?php esc_html_e( 'Map types:', INTERGEO_PLUGIN_NAME ) ?></b>
|
276 |
-
</div>
|
277 |
-
<div class="intergeo_tlbr_cntrl_item">
|
278 |
-
<label title="<?php esc_attr_e( 'This map type displays a normal street map.', INTERGEO_PLUGIN_NAME ) ?>">
|
279 |
-
<input type="checkbox" name="map_mapTypeControlOptions_mapTypeIds[]" value="ROADMAP" <?php checked( isset( $json['map']['mapTypeControlOptions']['mapTypeIds'] ) ? in_array( 'ROADMAP', $json['map']['mapTypeControlOptions']['mapTypeIds'] ) : true ) ?>>
|
280 |
-
<?php esc_html_e( 'Road map', INTERGEO_PLUGIN_NAME ) ?>
|
281 |
-
</label>
|
282 |
-
</div>
|
283 |
-
<div class="intergeo_tlbr_cntrl_item">
|
284 |
-
<label title="<?php esc_attr_e( 'This map type displays maps with physical features such as terrain and vegetation.', INTERGEO_PLUGIN_NAME ) ?>">
|
285 |
-
<input type="checkbox" name="map_mapTypeControlOptions_mapTypeIds[]" value="TERRAIN" <?php checked( isset( $json['map']['mapTypeControlOptions']['mapTypeIds'] ) ? in_array( 'TERRAIN', $json['map']['mapTypeControlOptions']['mapTypeIds'] ) : true ) ?>>
|
286 |
-
<?php esc_html_e( 'Terrain', INTERGEO_PLUGIN_NAME ) ?>
|
287 |
-
</label>
|
288 |
-
</div>
|
289 |
-
<div class="intergeo_tlbr_cntrl_item">
|
290 |
-
<label title="<?php esc_attr_e( 'This map type displays satellite images.', INTERGEO_PLUGIN_NAME ) ?>">
|
291 |
-
<input type="checkbox" name="map_mapTypeControlOptions_mapTypeIds[]" value="SATELLITE" <?php checked( isset( $json['map']['mapTypeControlOptions']['mapTypeIds'] ) ? in_array( 'SATELLITE', $json['map']['mapTypeControlOptions']['mapTypeIds'] ) : true ) ?>>
|
292 |
-
<?php esc_html_e( 'Satellite', INTERGEO_PLUGIN_NAME ) ?>
|
293 |
-
</label>
|
294 |
-
</div>
|
295 |
-
<div class="intergeo_tlbr_cntrl_item">
|
296 |
-
<label title="<?php esc_attr_e( 'This map type displays a transparent layer of major streets on satellite images.', INTERGEO_PLUGIN_NAME ) ?>">
|
297 |
-
<input type="checkbox" name="map_mapTypeControlOptions_mapTypeIds[]" value="HYBRID" <?php checked( isset( $json['map']['mapTypeControlOptions']['mapTypeIds'] ) ? in_array( 'HYBRID', $json['map']['mapTypeControlOptions']['mapTypeIds'] ) : true ) ?>>
|
298 |
-
<?php esc_html_e( 'Hybrid', INTERGEO_PLUGIN_NAME ) ?>
|
299 |
-
</label>
|
300 |
-
</div>
|
301 |
-
</div>
|
302 |
-
</li>
|
303 |
-
<li class="intergeo_tlbr_ul_li_ul_li">
|
304 |
-
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Street View control', INTERGEO_PLUGIN_NAME ) ?></span>
|
305 |
-
<div class="intergeo_tlbr_cntrl_items">
|
306 |
-
<div class="intergeo_tlbr_cntrl_item">
|
307 |
-
<a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
|
308 |
-
<label>
|
309 |
-
<input type="hidden" name="map_streetViewControl" value="0">
|
310 |
-
<input type="checkbox" name="map_streetViewControl" value="1" <?php checked( isset( $json['map']['streetViewControl'] ) ? $json['map']['streetViewControl'] == 1 : true ) ?>>
|
311 |
-
<?php esc_html_e( 'Enabled', INTERGEO_PLUGIN_NAME ) ?>
|
312 |
-
</label>
|
313 |
-
</div>
|
314 |
-
<p class="intergeo_tlbr_cntrl_dsc">
|
315 |
-
<?php esc_html_e( 'The Street View control contains a Pegman icon which can be dragged onto the map to enable Street View. This control appears by default in the top left corner of the map.', INTERGEO_PLUGIN_NAME ) ?>
|
316 |
-
</p>
|
317 |
-
<table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
|
318 |
-
<tr>
|
319 |
-
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
320 |
-
<select class="intergeo_tlbr_cntrl_slct" name="map_streetViewControlOptions_position">
|
321 |
-
<option value=""><?php esc_html_e( 'default position', INTERGEO_PLUGIN_NAME ) ?></option>
|
322 |
-
<option value="TOP_LEFT" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'TOP_LEFT' : false ) ?>>
|
323 |
-
<?php esc_html_e( 'Top Left', INTERGEO_PLUGIN_NAME ) ?>
|
324 |
-
</option>
|
325 |
-
<option value="TOP_CENTER" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'TOP_CENTER' : false ) ?>>
|
326 |
-
<?php esc_html_e( 'Top Center', INTERGEO_PLUGIN_NAME ) ?>
|
327 |
-
</option>
|
328 |
-
<option value="TOP_RIGHT" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'TOP_RIGHT' : false ) ?>>
|
329 |
-
<?php esc_html_e( 'Top Right', INTERGEO_PLUGIN_NAME ) ?>
|
330 |
-
</option>
|
331 |
-
<option value="RIGHT_TOP" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'RIGHT_TOP' : false ) ?>>
|
332 |
-
<?php esc_html_e( 'Right Top', INTERGEO_PLUGIN_NAME ) ?>
|
333 |
-
</option>
|
334 |
-
<option value="RIGHT_CENTER" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'RIGHT_CENTER' : false ) ?>>
|
335 |
-
<?php esc_html_e( 'Right Center', INTERGEO_PLUGIN_NAME ) ?>
|
336 |
-
</option>
|
337 |
-
<option value="RIGHT_BOTTOM" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'RIGHT_BOTTOM' : false ) ?>>
|
338 |
-
<?php esc_html_e( 'Right Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
339 |
-
</option>
|
340 |
-
<option value="BOTTOM_RIGHT" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'BOTTOM_RIGHT' : false ) ?>>
|
341 |
-
<?php esc_html_e( 'Bottom Right', INTERGEO_PLUGIN_NAME ) ?>
|
342 |
-
</option>
|
343 |
-
<option value="BOTTOM_CENTER" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'BOTTOM_CENTER' : false ) ?>>
|
344 |
-
<?php esc_html_e( 'Bottom Center', INTERGEO_PLUGIN_NAME ) ?>
|
345 |
-
</option>
|
346 |
-
<option value="BOTTOM_LEFT" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'BOTTOM_LEFT' : false ) ?>>
|
347 |
-
<?php esc_html_e( 'Bottom Left', INTERGEO_PLUGIN_NAME ) ?>
|
348 |
-
</option>
|
349 |
-
<option value="LEFT_BOTTOM" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'LEFT_BOTTOM' : false ) ?>>
|
350 |
-
<?php esc_html_e( 'Left Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
351 |
-
</option>
|
352 |
-
<option value="LEFT_CENTER" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'LEFT_CENTER' : false ) ?>>
|
353 |
-
<?php esc_html_e( 'Left Center', INTERGEO_PLUGIN_NAME ) ?>
|
354 |
-
</option>
|
355 |
-
<option value="LEFT_TOP" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'LEFT_TOP' : false ) ?>>
|
356 |
-
<?php esc_html_e( 'Left Top', INTERGEO_PLUGIN_NAME ) ?>
|
357 |
-
</option>
|
358 |
-
</select>
|
359 |
-
</td>
|
360 |
-
<td class="intergeo_tlbr_cntrl_tbl_clmn"> </td>
|
361 |
-
</tr>
|
362 |
-
</table>
|
363 |
-
</div>
|
364 |
-
</li>
|
365 |
-
<li class="intergeo_tlbr_ul_li_ul_li">
|
366 |
-
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Rotate control', INTERGEO_PLUGIN_NAME ) ?></span>
|
367 |
-
<div class="intergeo_tlbr_cntrl_items">
|
368 |
-
<div class="intergeo_tlbr_cntrl_item">
|
369 |
-
<a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
|
370 |
-
<label>
|
371 |
-
<input type="hidden" name="map_rotateControl" value="0">
|
372 |
-
<input type="checkbox" name="map_rotateControl" value="1" <?php checked( isset( $json['map']['rotateControl'] ) ? $json['map']['rotateControl'] == 1 : true ) ?>>
|
373 |
-
<?php esc_html_e( 'Enabled', INTERGEO_PLUGIN_NAME ) ?>
|
374 |
-
</label>
|
375 |
-
</div>
|
376 |
-
<p class="intergeo_tlbr_cntrl_dsc">
|
377 |
-
<?php esc_html_e( 'The Rotate control contains a small circular icon which allows you to rotate maps containing oblique imagery. This control appears by default in the top left corner of the map.', INTERGEO_PLUGIN_NAME ) ?>
|
378 |
-
</p>
|
379 |
-
<table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
|
380 |
-
<tr>
|
381 |
-
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
382 |
-
<select class="intergeo_tlbr_cntrl_slct" name="map_rotateControlOptions_position">
|
383 |
-
<option value=""><?php esc_html_e( 'default position', INTERGEO_PLUGIN_NAME ) ?></option>
|
384 |
-
<option value="TOP_LEFT" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'TOP_LEFT' : false ) ?>>
|
385 |
-
<?php esc_html_e( 'Top Left', INTERGEO_PLUGIN_NAME ) ?>
|
386 |
-
</option>
|
387 |
-
<option value="TOP_CENTER" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'TOP_CENTER' : false ) ?>>
|
388 |
-
<?php esc_html_e( 'Top Center', INTERGEO_PLUGIN_NAME ) ?>
|
389 |
-
</option>
|
390 |
-
<option value="TOP_RIGHT" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'TOP_RIGHT' : false ) ?>>
|
391 |
-
<?php esc_html_e( 'Top Right', INTERGEO_PLUGIN_NAME ) ?>
|
392 |
-
</option>
|
393 |
-
<option value="RIGHT_TOP" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'RIGHT_TOP' : false ) ?>>
|
394 |
-
<?php esc_html_e( 'Right Top', INTERGEO_PLUGIN_NAME ) ?>
|
395 |
-
</option>
|
396 |
-
<option value="RIGHT_CENTER" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'RIGHT_CENTER' : false ) ?>>
|
397 |
-
<?php esc_html_e( 'Right Center', INTERGEO_PLUGIN_NAME ) ?>
|
398 |
-
</option>
|
399 |
-
<option value="RIGHT_BOTTOM" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'RIGHT_BOTTOM' : false ) ?>>
|
400 |
-
<?php esc_html_e( 'Right Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
401 |
-
</option>
|
402 |
-
<option value="BOTTOM_RIGHT" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'BOTTOM_RIGHT' : false ) ?>>
|
403 |
-
<?php esc_html_e( 'Bottom Right', INTERGEO_PLUGIN_NAME ) ?>
|
404 |
-
</option>
|
405 |
-
<option value="BOTTOM_CENTER" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'BOTTOM_CENTER' : false ) ?>>
|
406 |
-
<?php esc_html_e( 'Bottom Center', INTERGEO_PLUGIN_NAME ) ?>
|
407 |
-
</option>
|
408 |
-
<option value="BOTTOM_LEFT" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'BOTTOM_LEFT' : false ) ?>>
|
409 |
-
<?php esc_html_e( 'Bottom Left', INTERGEO_PLUGIN_NAME ) ?>
|
410 |
-
</option>
|
411 |
-
<option value="LEFT_BOTTOM" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'LEFT_BOTTOM' : false ) ?>>
|
412 |
-
<?php esc_html_e( 'Left Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
413 |
-
</option>
|
414 |
-
<option value="LEFT_CENTER" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'LEFT_CENTER' : false ) ?>>
|
415 |
-
<?php esc_html_e( 'Left Center', INTERGEO_PLUGIN_NAME ) ?>
|
416 |
-
</option>
|
417 |
-
<option value="LEFT_TOP" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'LEFT_TOP' : false ) ?>>
|
418 |
-
<?php esc_html_e( 'Left Top', INTERGEO_PLUGIN_NAME ) ?>
|
419 |
-
</option>
|
420 |
-
</select>
|
421 |
-
</td>
|
422 |
-
<td class="intergeo_tlbr_cntrl_tbl_clmn"> </td>
|
423 |
-
</tr>
|
424 |
-
</table>
|
425 |
-
</div>
|
426 |
-
</li>
|
427 |
-
<li class="intergeo_tlbr_ul_li_ul_li">
|
428 |
-
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Overview Map control', INTERGEO_PLUGIN_NAME ) ?></span>
|
429 |
-
<div class="intergeo_tlbr_cntrl_items">
|
430 |
-
<div class="intergeo_tlbr_cntrl_item">
|
431 |
-
<a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
|
432 |
-
<label>
|
433 |
-
<input type="hidden" name="map_overviewMapControl" value="0">
|
434 |
-
<input type="checkbox" name="map_overviewMapControl" value="1" <?php checked( isset( $json['map']['overviewMapControl'] ) ? $json['map']['overviewMapControl'] == 1 : false ) ?>>
|
435 |
-
<?php esc_html_e( 'Enabled', INTERGEO_PLUGIN_NAME ) ?>
|
436 |
-
</label>
|
437 |
-
</div>
|
438 |
-
<p class="intergeo_tlbr_cntrl_dsc">
|
439 |
-
<?php esc_html_e( 'The Overview Map control displays a thumbnail overview map reflecting the current map viewport within a wider area. This control appears by default in the bottom right corner of the map, and is by default shown in its collapsed state.', INTERGEO_PLUGIN_NAME ) ?>
|
440 |
-
</p>
|
441 |
-
<div class="intergeo_tlbr_cntrl_item">
|
442 |
-
<label>
|
443 |
-
<input type="hidden" name="map_overviewMapControlOptions_opened" value="0">
|
444 |
-
<input type="checkbox" name="map_overviewMapControlOptions_opened" value="1" <?php checked( isset( $json['map']['overviewMapControlOptions']['opened'] ) ? $json['map']['overviewMapControlOptions']['opened'] == 1 : false ) ?>>
|
445 |
-
<?php esc_html_e( 'Opened', INTERGEO_PLUGIN_NAME ) ?>
|
446 |
-
</label>
|
447 |
-
</div>
|
448 |
-
</div>
|
449 |
-
</li>
|
450 |
</ul>
|
1 |
+
|
2 |
+
<h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'Controls', INTERGEO_PLUGIN_NAME ) ?></h3>
|
3 |
+
<ul class="intergeo_tlbr_ul_li_ul">
|
4 |
+
<li class="intergeo_tlbr_ul_li_ul_li">
|
5 |
+
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Zoom control', INTERGEO_PLUGIN_NAME ) ?></span>
|
6 |
+
<div class="intergeo_tlbr_cntrl_items">
|
7 |
+
<div class="intergeo_tlbr_cntrl_item">
|
8 |
+
<a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
|
9 |
+
<label>
|
10 |
+
<input type="hidden" name="map_zoomControl" value="0">
|
11 |
+
<input type="checkbox" name="map_zoomControl" value="1" <?php checked( isset( $json['map']['zoomControl'] ) ? $json['map']['zoomControl'] == 1 : true ) ?>>
|
12 |
+
<?php esc_html_e( 'Enabled', INTERGEO_PLUGIN_NAME ) ?>
|
13 |
+
</label>
|
14 |
+
</div>
|
15 |
+
<p class="intergeo_tlbr_cntrl_dsc">
|
16 |
+
<?php esc_html_e( 'The Zoom control displays a slider (for large maps) or small "+/-" buttons (for small maps) to control the zoom level of the map. This control appears by default in the top left corner of the map on non-touch devices or in the bottom left corner on touch devices.', INTERGEO_PLUGIN_NAME ) ?>
|
17 |
+
</p>
|
18 |
+
<table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
|
19 |
+
<tr>
|
20 |
+
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
21 |
+
<select class="intergeo_tlbr_cntrl_slct" name="map_zoomControlOptions_position">
|
22 |
+
<option value=""><?php esc_html_e( 'default position', INTERGEO_PLUGIN_NAME ) ?></option>
|
23 |
+
<option value="TOP_LEFT" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'TOP_LEFT' : false ) ?>>
|
24 |
+
<?php esc_html_e( 'Top Left', INTERGEO_PLUGIN_NAME ) ?>
|
25 |
+
</option>
|
26 |
+
<option value="TOP_CENTER" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'TOP_CENTER' : false ) ?>>
|
27 |
+
<?php esc_html_e( 'Top Center', INTERGEO_PLUGIN_NAME ) ?>
|
28 |
+
</option>
|
29 |
+
<option value="TOP_RIGHT" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'TOP_RIGHT' : false ) ?>>
|
30 |
+
<?php esc_html_e( 'Top Right', INTERGEO_PLUGIN_NAME ) ?>
|
31 |
+
</option>
|
32 |
+
<option value="RIGHT_TOP" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'RIGHT_TOP' : false ) ?>>
|
33 |
+
<?php esc_html_e( 'Right Top', INTERGEO_PLUGIN_NAME ) ?>
|
34 |
+
</option>
|
35 |
+
<option value="RIGHT_CENTER" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'RIGHT_CENTER' : false ) ?>>
|
36 |
+
<?php esc_html_e( 'Right Center', INTERGEO_PLUGIN_NAME ) ?>
|
37 |
+
</option>
|
38 |
+
<option value="RIGHT_BOTTOM" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'RIGHT_BOTTOM' : false ) ?>>
|
39 |
+
<?php esc_html_e( 'Right Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
40 |
+
</option>
|
41 |
+
<option value="BOTTOM_RIGHT" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'BOTTOM_RIGHT' : false ) ?>>
|
42 |
+
<?php esc_html_e( 'Bottom Right', INTERGEO_PLUGIN_NAME ) ?>
|
43 |
+
</option>
|
44 |
+
<option value="BOTTOM_CENTER" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'BOTTOM_CENTER' : false ) ?>>
|
45 |
+
<?php esc_html_e( 'Bottom Center', INTERGEO_PLUGIN_NAME ) ?>
|
46 |
+
</option>
|
47 |
+
<option value="BOTTOM_LEFT" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'BOTTOM_LEFT' : false ) ?>>
|
48 |
+
<?php esc_html_e( 'Bottom Left', INTERGEO_PLUGIN_NAME ) ?>
|
49 |
+
</option>
|
50 |
+
<option value="LEFT_BOTTOM" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'LEFT_BOTTOM' : false ) ?>>
|
51 |
+
<?php esc_html_e( 'Left Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
52 |
+
</option>
|
53 |
+
<option value="LEFT_CENTER" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'LEFT_CENTER' : false ) ?>>
|
54 |
+
<?php esc_html_e( 'Left Center', INTERGEO_PLUGIN_NAME ) ?>
|
55 |
+
</option>
|
56 |
+
<option value="LEFT_TOP" <?php selected( isset( $json['map']['zoomControlOptions']['position'] ) ? $json['map']['zoomControlOptions']['position'] == 'LEFT_TOP' : false ) ?>>
|
57 |
+
<?php esc_html_e( 'Left Top', INTERGEO_PLUGIN_NAME ) ?>
|
58 |
+
</option>
|
59 |
+
</select>
|
60 |
+
</td>
|
61 |
+
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
62 |
+
<select class="intergeo_tlbr_cntrl_slct" name="map_zoomControlOptions_style">
|
63 |
+
<option value="DEFAULT">
|
64 |
+
<?php esc_html_e( 'default style', INTERGEO_PLUGIN_NAME ) ?>
|
65 |
+
</option>
|
66 |
+
<option value="SMALL" <?php selected( isset( $json['map']['zoomControlOptions']['style'] ) ? $json['map']['zoomControlOptions']['style'] == 'SMALL' : false ) ?>>
|
67 |
+
<?php esc_html_e( 'small', INTERGEO_PLUGIN_NAME ) ?>
|
68 |
+
</option>
|
69 |
+
<option value="LARGE" <?php selected( isset( $json['map']['zoomControlOptions']['style'] ) ? $json['map']['zoomControlOptions']['style'] == 'LARGE' : false ) ?>>
|
70 |
+
<?php esc_html_e( 'large', INTERGEO_PLUGIN_NAME ) ?>
|
71 |
+
</option>
|
72 |
+
</select>
|
73 |
+
</td>
|
74 |
+
</tr>
|
75 |
+
</table>
|
76 |
+
</div>
|
77 |
+
</li>
|
78 |
+
<li class="intergeo_tlbr_ul_li_ul_li">
|
79 |
+
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Pan control', INTERGEO_PLUGIN_NAME ) ?></span>
|
80 |
+
<div class="intergeo_tlbr_cntrl_items">
|
81 |
+
<div class="intergeo_tlbr_cntrl_item">
|
82 |
+
<a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
|
83 |
+
<label>
|
84 |
+
<input type="hidden" name="map_panControl" value="0">
|
85 |
+
<input type="checkbox" name="map_panControl" value="1" <?php checked( isset( $json['map']['panControl'] ) ? $json['map']['panControl'] == 1 : true ) ?>>
|
86 |
+
<?php esc_html_e( 'Enabled', INTERGEO_PLUGIN_NAME ) ?>
|
87 |
+
</label>
|
88 |
+
</div>
|
89 |
+
<p class="intergeo_tlbr_cntrl_dsc">
|
90 |
+
<?php esc_html_e( 'The Pan control displays buttons for panning the map. This control appears by default in the top left corner of the map on non-touch devices. The Pan control also allows you to rotate 45° imagery, if available.', INTERGEO_PLUGIN_NAME ) ?>
|
91 |
+
</p>
|
92 |
+
<table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
|
93 |
+
<tr>
|
94 |
+
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
95 |
+
<select class="intergeo_tlbr_cntrl_slct" name="map_panControlOptions_position">
|
96 |
+
<option value=""><?php esc_html_e( 'default position', INTERGEO_PLUGIN_NAME ) ?></option>
|
97 |
+
<option value="TOP_LEFT" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'TOP_LEFT' : false ) ?>>
|
98 |
+
<?php esc_html_e( 'Top Left', INTERGEO_PLUGIN_NAME ) ?>
|
99 |
+
</option>
|
100 |
+
<option value="TOP_CENTER" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'TOP_CENTER' : false ) ?>>
|
101 |
+
<?php esc_html_e( 'Top Center', INTERGEO_PLUGIN_NAME ) ?>
|
102 |
+
</option>
|
103 |
+
<option value="TOP_RIGHT" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'TOP_RIGHT' : false ) ?>>
|
104 |
+
<?php esc_html_e( 'Top Right', INTERGEO_PLUGIN_NAME ) ?>
|
105 |
+
</option>
|
106 |
+
<option value="RIGHT_TOP" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'RIGHT_TOP' : false ) ?>>
|
107 |
+
<?php esc_html_e( 'Right Top', INTERGEO_PLUGIN_NAME ) ?>
|
108 |
+
</option>
|
109 |
+
<option value="RIGHT_CENTER" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'RIGHT_CENTER' : false ) ?>>
|
110 |
+
<?php esc_html_e( 'Right Center', INTERGEO_PLUGIN_NAME ) ?>
|
111 |
+
</option>
|
112 |
+
<option value="RIGHT_BOTTOM" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'RIGHT_BOTTOM' : false ) ?>>
|
113 |
+
<?php esc_html_e( 'Right Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
114 |
+
</option>
|
115 |
+
<option value="BOTTOM_RIGHT" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'BOTTOM_RIGHT' : false ) ?>>
|
116 |
+
<?php esc_html_e( 'Bottom Right', INTERGEO_PLUGIN_NAME ) ?>
|
117 |
+
</option>
|
118 |
+
<option value="BOTTOM_CENTER" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'BOTTOM_CENTER' : false ) ?>>
|
119 |
+
<?php esc_html_e( 'Bottom Center', INTERGEO_PLUGIN_NAME ) ?>
|
120 |
+
</option>
|
121 |
+
<option value="BOTTOM_LEFT" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'BOTTOM_LEFT' : false ) ?>>
|
122 |
+
<?php esc_html_e( 'Bottom Left', INTERGEO_PLUGIN_NAME ) ?>
|
123 |
+
</option>
|
124 |
+
<option value="LEFT_BOTTOM" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'LEFT_BOTTOM' : false ) ?>>
|
125 |
+
<?php esc_html_e( 'Left Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
126 |
+
</option>
|
127 |
+
<option value="LEFT_CENTER" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'LEFT_CENTER' : false ) ?>>
|
128 |
+
<?php esc_html_e( 'Left Center', INTERGEO_PLUGIN_NAME ) ?>
|
129 |
+
</option>
|
130 |
+
<option value="LEFT_TOP" <?php selected( isset( $json['map']['panControlOptions']['position'] ) ? $json['map']['panControlOptions']['position'] == 'LEFT_TOP' : false ) ?>>
|
131 |
+
<?php esc_html_e( 'Left Top', INTERGEO_PLUGIN_NAME ) ?>
|
132 |
+
</option>
|
133 |
+
</select>
|
134 |
+
</td>
|
135 |
+
<td class="intergeo_tlbr_cntrl_tbl_clmn"> </td>
|
136 |
+
</tr>
|
137 |
+
</table>
|
138 |
+
</div>
|
139 |
+
</li>
|
140 |
+
<li class="intergeo_tlbr_ul_li_ul_li">
|
141 |
+
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Scale control', INTERGEO_PLUGIN_NAME ) ?></span>
|
142 |
+
<div class="intergeo_tlbr_cntrl_items">
|
143 |
+
<div class="intergeo_tlbr_cntrl_item">
|
144 |
+
<a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
|
145 |
+
<label>
|
146 |
+
<input type="hidden" name="map_scaleControl" value="0">
|
147 |
+
<input type="checkbox" name="map_scaleControl" value="1" <?php checked( isset( $json['map']['scaleControl'] ) ? $json['map']['scaleControl'] : false ) ?>>
|
148 |
+
<?php esc_html_e( 'Enabled', INTERGEO_PLUGIN_NAME ) ?>
|
149 |
+
</label>
|
150 |
+
</div>
|
151 |
+
<p class="intergeo_tlbr_cntrl_dsc">
|
152 |
+
<?php esc_html_e( 'The Scale control displays a map scale element. This control is not enabled by default.', INTERGEO_PLUGIN_NAME ) ?>
|
153 |
+
</p>
|
154 |
+
<table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
|
155 |
+
<tr>
|
156 |
+
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
157 |
+
<select class="intergeo_tlbr_cntrl_slct" name="map_scaleControlOptions_position">
|
158 |
+
<option value=""><?php esc_html_e( 'default position', INTERGEO_PLUGIN_NAME ) ?></option>
|
159 |
+
<option value="TOP_LEFT" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'TOP_LEFT' : false ) ?>>
|
160 |
+
<?php esc_html_e( 'Top Left', INTERGEO_PLUGIN_NAME ) ?>
|
161 |
+
</option>
|
162 |
+
<option value="TOP_CENTER" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'TOP_CENTER' : false ) ?>>
|
163 |
+
<?php esc_html_e( 'Top Center', INTERGEO_PLUGIN_NAME ) ?>
|
164 |
+
</option>
|
165 |
+
<option value="TOP_RIGHT" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'TOP_RIGHT' : false ) ?>>
|
166 |
+
<?php esc_html_e( 'Top Right', INTERGEO_PLUGIN_NAME ) ?>
|
167 |
+
</option>
|
168 |
+
<option value="RIGHT_TOP" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'RIGHT_TOP' : false ) ?>>
|
169 |
+
<?php esc_html_e( 'Right Top', INTERGEO_PLUGIN_NAME ) ?>
|
170 |
+
</option>
|
171 |
+
<option value="RIGHT_CENTER" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'RIGHT_CENTER' : false ) ?>>
|
172 |
+
<?php esc_html_e( 'Right Center', INTERGEO_PLUGIN_NAME ) ?>
|
173 |
+
</option>
|
174 |
+
<option value="RIGHT_BOTTOM" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'RIGHT_BOTTOM' : false ) ?>>
|
175 |
+
<?php esc_html_e( 'Right Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
176 |
+
</option>
|
177 |
+
<option value="BOTTOM_RIGHT" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'BOTTOM_RIGHT' : false ) ?>>
|
178 |
+
<?php esc_html_e( 'Bottom Right', INTERGEO_PLUGIN_NAME ) ?>
|
179 |
+
</option>
|
180 |
+
<option value="BOTTOM_CENTER" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'BOTTOM_CENTER' : false ) ?>>
|
181 |
+
<?php esc_html_e( 'Bottom Center', INTERGEO_PLUGIN_NAME ) ?>
|
182 |
+
</option>
|
183 |
+
<option value="BOTTOM_LEFT" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'BOTTOM_LEFT' : false ) ?>>
|
184 |
+
<?php esc_html_e( 'Bottom Left', INTERGEO_PLUGIN_NAME ) ?>
|
185 |
+
</option>
|
186 |
+
<option value="LEFT_BOTTOM" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'LEFT_BOTTOM' : false ) ?>>
|
187 |
+
<?php esc_html_e( 'Left Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
188 |
+
</option>
|
189 |
+
<option value="LEFT_CENTER" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'LEFT_CENTER' : false ) ?>>
|
190 |
+
<?php esc_html_e( 'Left Center', INTERGEO_PLUGIN_NAME ) ?>
|
191 |
+
</option>
|
192 |
+
<option value="LEFT_TOP" <?php selected( isset( $json['map']['scaleControlOptions']['position'] ) ? $json['map']['scaleControlOptions']['position'] == 'LEFT_TOP' : false ) ?>>
|
193 |
+
<?php esc_html_e( 'Left Top', INTERGEO_PLUGIN_NAME ) ?>
|
194 |
+
</option>
|
195 |
+
</select>
|
196 |
+
</td>
|
197 |
+
<td class="intergeo_tlbr_cntrl_tbl_clmn"> </td>
|
198 |
+
</tr>
|
199 |
+
</table>
|
200 |
+
</div>
|
201 |
+
</li>
|
202 |
+
<li class="intergeo_tlbr_ul_li_ul_li">
|
203 |
+
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'MapType control', INTERGEO_PLUGIN_NAME ) ?></span>
|
204 |
+
<div class="intergeo_tlbr_cntrl_items">
|
205 |
+
<div class="intergeo_tlbr_cntrl_item">
|
206 |
+
<a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
|
207 |
+
<label>
|
208 |
+
<input type="hidden" name="map_mapTypeControl" value="0">
|
209 |
+
<input type="checkbox" name="map_mapTypeControl" value="1" <?php checked( isset( $json['map']['mapTypeControl'] ) ? $json['map']['mapTypeControl'] : true ) ?>>
|
210 |
+
<?php esc_html_e( 'Enabled', INTERGEO_PLUGIN_NAME ) ?>
|
211 |
+
</label>
|
212 |
+
</div>
|
213 |
+
<p class="intergeo_tlbr_cntrl_dsc">
|
214 |
+
<?php esc_html_e( 'The MapType control lets the user toggle between map types (such as roadmap and satellite). This control appears by default in the top right corner of the map.', INTERGEO_PLUGIN_NAME ) ?>
|
215 |
+
</p>
|
216 |
+
<table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
|
217 |
+
<tr>
|
218 |
+
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
219 |
+
<select class="intergeo_tlbr_cntrl_slct" name="map_mapTypeControlOptions_position">
|
220 |
+
<option value=""><?php esc_html_e( 'default position', INTERGEO_PLUGIN_NAME ) ?></option>
|
221 |
+
<option value="TOP_LEFT" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'TOP_LEFT' : false ) ?>>
|
222 |
+
<?php esc_html_e( 'Top Left', INTERGEO_PLUGIN_NAME ) ?>
|
223 |
+
</option>
|
224 |
+
<option value="TOP_CENTER" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'TOP_CENTER' : false ) ?>>
|
225 |
+
<?php esc_html_e( 'Top Center', INTERGEO_PLUGIN_NAME ) ?>
|
226 |
+
</option>
|
227 |
+
<option value="TOP_RIGHT" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'TOP_RIGHT' : false ) ?>>
|
228 |
+
<?php esc_html_e( 'Top Right', INTERGEO_PLUGIN_NAME ) ?>
|
229 |
+
</option>
|
230 |
+
<option value="RIGHT_TOP" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'RIGHT_TOP' : false ) ?>>
|
231 |
+
<?php esc_html_e( 'Right Top', INTERGEO_PLUGIN_NAME ) ?>
|
232 |
+
</option>
|
233 |
+
<option value="RIGHT_CENTER" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'RIGHT_CENTER' : false ) ?>>
|
234 |
+
<?php esc_html_e( 'Right Center', INTERGEO_PLUGIN_NAME ) ?>
|
235 |
+
</option>
|
236 |
+
<option value="RIGHT_BOTTOM" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'RIGHT_BOTTOM' : false ) ?>>
|
237 |
+
<?php esc_html_e( 'Right Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
238 |
+
</option>
|
239 |
+
<option value="BOTTOM_RIGHT" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'BOTTOM_RIGHT' : false ) ?>>
|
240 |
+
<?php esc_html_e( 'Bottom Right', INTERGEO_PLUGIN_NAME ) ?>
|
241 |
+
</option>
|
242 |
+
<option value="BOTTOM_CENTER" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'BOTTOM_CENTER' : false ) ?>>
|
243 |
+
<?php esc_html_e( 'Bottom Center', INTERGEO_PLUGIN_NAME ) ?>
|
244 |
+
</option>
|
245 |
+
<option value="BOTTOM_LEFT" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'BOTTOM_LEFT' : false ) ?>>
|
246 |
+
<?php esc_html_e( 'Bottom Left', INTERGEO_PLUGIN_NAME ) ?>
|
247 |
+
</option>
|
248 |
+
<option value="LEFT_BOTTOM" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'LEFT_BOTTOM' : false ) ?>>
|
249 |
+
<?php esc_html_e( 'Left Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
250 |
+
</option>
|
251 |
+
<option value="LEFT_CENTER" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'LEFT_CENTER' : false ) ?>>
|
252 |
+
<?php esc_html_e( 'Left Center', INTERGEO_PLUGIN_NAME ) ?>
|
253 |
+
</option>
|
254 |
+
<option value="LEFT_TOP" <?php selected( isset( $json['map']['mapTypeControlOptions']['position'] ) ? $json['map']['mapTypeControlOptions']['position'] == 'LEFT_TOP' : false ) ?>>
|
255 |
+
<?php esc_html_e( 'Left Top', INTERGEO_PLUGIN_NAME ) ?>
|
256 |
+
</option>
|
257 |
+
</select>
|
258 |
+
</td>
|
259 |
+
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
260 |
+
<select class="intergeo_tlbr_cntrl_slct" name="map_mapTypeControlOptions_style">
|
261 |
+
<option value="DEFAULT">
|
262 |
+
<?php esc_html_e( 'default style', INTERGEO_PLUGIN_NAME ) ?>
|
263 |
+
</option>
|
264 |
+
<option value="DROPDOWN_MENU" <?php selected( isset( $json['map']['mapTypeControlOptions']['style'] ) ? $json['map']['mapTypeControlOptions']['style'] == 'DROPDOWN_MENU' : false ) ?>>
|
265 |
+
<?php esc_html_e( 'dropdown menu', INTERGEO_PLUGIN_NAME ) ?>
|
266 |
+
</option>
|
267 |
+
<option value="HORIZONTAL_BAR" <?php selected( isset( $json['map']['mapTypeControlOptions']['style'] ) ? $json['map']['mapTypeControlOptions']['style'] == 'HORIZONTAL_BAR' : false ) ?>>
|
268 |
+
<?php esc_html_e( 'horizontal bar', INTERGEO_PLUGIN_NAME ) ?>
|
269 |
+
</option>
|
270 |
+
</select>
|
271 |
+
</td>
|
272 |
+
</tr>
|
273 |
+
</table>
|
274 |
+
<div class="intergeo_tlbr_cntrl_item">
|
275 |
+
<b><?php esc_html_e( 'Map types:', INTERGEO_PLUGIN_NAME ) ?></b>
|
276 |
+
</div>
|
277 |
+
<div class="intergeo_tlbr_cntrl_item">
|
278 |
+
<label title="<?php esc_attr_e( 'This map type displays a normal street map.', INTERGEO_PLUGIN_NAME ) ?>">
|
279 |
+
<input type="checkbox" name="map_mapTypeControlOptions_mapTypeIds[]" value="ROADMAP" <?php checked( isset( $json['map']['mapTypeControlOptions']['mapTypeIds'] ) ? in_array( 'ROADMAP', $json['map']['mapTypeControlOptions']['mapTypeIds'] ) : true ) ?>>
|
280 |
+
<?php esc_html_e( 'Road map', INTERGEO_PLUGIN_NAME ) ?>
|
281 |
+
</label>
|
282 |
+
</div>
|
283 |
+
<div class="intergeo_tlbr_cntrl_item">
|
284 |
+
<label title="<?php esc_attr_e( 'This map type displays maps with physical features such as terrain and vegetation.', INTERGEO_PLUGIN_NAME ) ?>">
|
285 |
+
<input type="checkbox" name="map_mapTypeControlOptions_mapTypeIds[]" value="TERRAIN" <?php checked( isset( $json['map']['mapTypeControlOptions']['mapTypeIds'] ) ? in_array( 'TERRAIN', $json['map']['mapTypeControlOptions']['mapTypeIds'] ) : true ) ?>>
|
286 |
+
<?php esc_html_e( 'Terrain', INTERGEO_PLUGIN_NAME ) ?>
|
287 |
+
</label>
|
288 |
+
</div>
|
289 |
+
<div class="intergeo_tlbr_cntrl_item">
|
290 |
+
<label title="<?php esc_attr_e( 'This map type displays satellite images.', INTERGEO_PLUGIN_NAME ) ?>">
|
291 |
+
<input type="checkbox" name="map_mapTypeControlOptions_mapTypeIds[]" value="SATELLITE" <?php checked( isset( $json['map']['mapTypeControlOptions']['mapTypeIds'] ) ? in_array( 'SATELLITE', $json['map']['mapTypeControlOptions']['mapTypeIds'] ) : true ) ?>>
|
292 |
+
<?php esc_html_e( 'Satellite', INTERGEO_PLUGIN_NAME ) ?>
|
293 |
+
</label>
|
294 |
+
</div>
|
295 |
+
<div class="intergeo_tlbr_cntrl_item">
|
296 |
+
<label title="<?php esc_attr_e( 'This map type displays a transparent layer of major streets on satellite images.', INTERGEO_PLUGIN_NAME ) ?>">
|
297 |
+
<input type="checkbox" name="map_mapTypeControlOptions_mapTypeIds[]" value="HYBRID" <?php checked( isset( $json['map']['mapTypeControlOptions']['mapTypeIds'] ) ? in_array( 'HYBRID', $json['map']['mapTypeControlOptions']['mapTypeIds'] ) : true ) ?>>
|
298 |
+
<?php esc_html_e( 'Hybrid', INTERGEO_PLUGIN_NAME ) ?>
|
299 |
+
</label>
|
300 |
+
</div>
|
301 |
+
</div>
|
302 |
+
</li>
|
303 |
+
<li class="intergeo_tlbr_ul_li_ul_li">
|
304 |
+
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Street View control', INTERGEO_PLUGIN_NAME ) ?></span>
|
305 |
+
<div class="intergeo_tlbr_cntrl_items">
|
306 |
+
<div class="intergeo_tlbr_cntrl_item">
|
307 |
+
<a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
|
308 |
+
<label>
|
309 |
+
<input type="hidden" name="map_streetViewControl" value="0">
|
310 |
+
<input type="checkbox" name="map_streetViewControl" value="1" <?php checked( isset( $json['map']['streetViewControl'] ) ? $json['map']['streetViewControl'] == 1 : true ) ?>>
|
311 |
+
<?php esc_html_e( 'Enabled', INTERGEO_PLUGIN_NAME ) ?>
|
312 |
+
</label>
|
313 |
+
</div>
|
314 |
+
<p class="intergeo_tlbr_cntrl_dsc">
|
315 |
+
<?php esc_html_e( 'The Street View control contains a Pegman icon which can be dragged onto the map to enable Street View. This control appears by default in the top left corner of the map.', INTERGEO_PLUGIN_NAME ) ?>
|
316 |
+
</p>
|
317 |
+
<table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
|
318 |
+
<tr>
|
319 |
+
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
320 |
+
<select class="intergeo_tlbr_cntrl_slct" name="map_streetViewControlOptions_position">
|
321 |
+
<option value=""><?php esc_html_e( 'default position', INTERGEO_PLUGIN_NAME ) ?></option>
|
322 |
+
<option value="TOP_LEFT" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'TOP_LEFT' : false ) ?>>
|
323 |
+
<?php esc_html_e( 'Top Left', INTERGEO_PLUGIN_NAME ) ?>
|
324 |
+
</option>
|
325 |
+
<option value="TOP_CENTER" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'TOP_CENTER' : false ) ?>>
|
326 |
+
<?php esc_html_e( 'Top Center', INTERGEO_PLUGIN_NAME ) ?>
|
327 |
+
</option>
|
328 |
+
<option value="TOP_RIGHT" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'TOP_RIGHT' : false ) ?>>
|
329 |
+
<?php esc_html_e( 'Top Right', INTERGEO_PLUGIN_NAME ) ?>
|
330 |
+
</option>
|
331 |
+
<option value="RIGHT_TOP" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'RIGHT_TOP' : false ) ?>>
|
332 |
+
<?php esc_html_e( 'Right Top', INTERGEO_PLUGIN_NAME ) ?>
|
333 |
+
</option>
|
334 |
+
<option value="RIGHT_CENTER" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'RIGHT_CENTER' : false ) ?>>
|
335 |
+
<?php esc_html_e( 'Right Center', INTERGEO_PLUGIN_NAME ) ?>
|
336 |
+
</option>
|
337 |
+
<option value="RIGHT_BOTTOM" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'RIGHT_BOTTOM' : false ) ?>>
|
338 |
+
<?php esc_html_e( 'Right Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
339 |
+
</option>
|
340 |
+
<option value="BOTTOM_RIGHT" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'BOTTOM_RIGHT' : false ) ?>>
|
341 |
+
<?php esc_html_e( 'Bottom Right', INTERGEO_PLUGIN_NAME ) ?>
|
342 |
+
</option>
|
343 |
+
<option value="BOTTOM_CENTER" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'BOTTOM_CENTER' : false ) ?>>
|
344 |
+
<?php esc_html_e( 'Bottom Center', INTERGEO_PLUGIN_NAME ) ?>
|
345 |
+
</option>
|
346 |
+
<option value="BOTTOM_LEFT" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'BOTTOM_LEFT' : false ) ?>>
|
347 |
+
<?php esc_html_e( 'Bottom Left', INTERGEO_PLUGIN_NAME ) ?>
|
348 |
+
</option>
|
349 |
+
<option value="LEFT_BOTTOM" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'LEFT_BOTTOM' : false ) ?>>
|
350 |
+
<?php esc_html_e( 'Left Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
351 |
+
</option>
|
352 |
+
<option value="LEFT_CENTER" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'LEFT_CENTER' : false ) ?>>
|
353 |
+
<?php esc_html_e( 'Left Center', INTERGEO_PLUGIN_NAME ) ?>
|
354 |
+
</option>
|
355 |
+
<option value="LEFT_TOP" <?php selected( isset( $json['map']['streetViewControlOptions']['position'] ) ? $json['map']['streetViewControlOptions']['position'] == 'LEFT_TOP' : false ) ?>>
|
356 |
+
<?php esc_html_e( 'Left Top', INTERGEO_PLUGIN_NAME ) ?>
|
357 |
+
</option>
|
358 |
+
</select>
|
359 |
+
</td>
|
360 |
+
<td class="intergeo_tlbr_cntrl_tbl_clmn"> </td>
|
361 |
+
</tr>
|
362 |
+
</table>
|
363 |
+
</div>
|
364 |
+
</li>
|
365 |
+
<li class="intergeo_tlbr_ul_li_ul_li">
|
366 |
+
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Rotate control', INTERGEO_PLUGIN_NAME ) ?></span>
|
367 |
+
<div class="intergeo_tlbr_cntrl_items">
|
368 |
+
<div class="intergeo_tlbr_cntrl_item">
|
369 |
+
<a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
|
370 |
+
<label>
|
371 |
+
<input type="hidden" name="map_rotateControl" value="0">
|
372 |
+
<input type="checkbox" name="map_rotateControl" value="1" <?php checked( isset( $json['map']['rotateControl'] ) ? $json['map']['rotateControl'] == 1 : true ) ?>>
|
373 |
+
<?php esc_html_e( 'Enabled', INTERGEO_PLUGIN_NAME ) ?>
|
374 |
+
</label>
|
375 |
+
</div>
|
376 |
+
<p class="intergeo_tlbr_cntrl_dsc">
|
377 |
+
<?php esc_html_e( 'The Rotate control contains a small circular icon which allows you to rotate maps containing oblique imagery. This control appears by default in the top left corner of the map.', INTERGEO_PLUGIN_NAME ) ?>
|
378 |
+
</p>
|
379 |
+
<table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
|
380 |
+
<tr>
|
381 |
+
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
382 |
+
<select class="intergeo_tlbr_cntrl_slct" name="map_rotateControlOptions_position">
|
383 |
+
<option value=""><?php esc_html_e( 'default position', INTERGEO_PLUGIN_NAME ) ?></option>
|
384 |
+
<option value="TOP_LEFT" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'TOP_LEFT' : false ) ?>>
|
385 |
+
<?php esc_html_e( 'Top Left', INTERGEO_PLUGIN_NAME ) ?>
|
386 |
+
</option>
|
387 |
+
<option value="TOP_CENTER" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'TOP_CENTER' : false ) ?>>
|
388 |
+
<?php esc_html_e( 'Top Center', INTERGEO_PLUGIN_NAME ) ?>
|
389 |
+
</option>
|
390 |
+
<option value="TOP_RIGHT" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'TOP_RIGHT' : false ) ?>>
|
391 |
+
<?php esc_html_e( 'Top Right', INTERGEO_PLUGIN_NAME ) ?>
|
392 |
+
</option>
|
393 |
+
<option value="RIGHT_TOP" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'RIGHT_TOP' : false ) ?>>
|
394 |
+
<?php esc_html_e( 'Right Top', INTERGEO_PLUGIN_NAME ) ?>
|
395 |
+
</option>
|
396 |
+
<option value="RIGHT_CENTER" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'RIGHT_CENTER' : false ) ?>>
|
397 |
+
<?php esc_html_e( 'Right Center', INTERGEO_PLUGIN_NAME ) ?>
|
398 |
+
</option>
|
399 |
+
<option value="RIGHT_BOTTOM" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'RIGHT_BOTTOM' : false ) ?>>
|
400 |
+
<?php esc_html_e( 'Right Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
401 |
+
</option>
|
402 |
+
<option value="BOTTOM_RIGHT" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'BOTTOM_RIGHT' : false ) ?>>
|
403 |
+
<?php esc_html_e( 'Bottom Right', INTERGEO_PLUGIN_NAME ) ?>
|
404 |
+
</option>
|
405 |
+
<option value="BOTTOM_CENTER" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'BOTTOM_CENTER' : false ) ?>>
|
406 |
+
<?php esc_html_e( 'Bottom Center', INTERGEO_PLUGIN_NAME ) ?>
|
407 |
+
</option>
|
408 |
+
<option value="BOTTOM_LEFT" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'BOTTOM_LEFT' : false ) ?>>
|
409 |
+
<?php esc_html_e( 'Bottom Left', INTERGEO_PLUGIN_NAME ) ?>
|
410 |
+
</option>
|
411 |
+
<option value="LEFT_BOTTOM" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'LEFT_BOTTOM' : false ) ?>>
|
412 |
+
<?php esc_html_e( 'Left Bottom', INTERGEO_PLUGIN_NAME ) ?>
|
413 |
+
</option>
|
414 |
+
<option value="LEFT_CENTER" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'LEFT_CENTER' : false ) ?>>
|
415 |
+
<?php esc_html_e( 'Left Center', INTERGEO_PLUGIN_NAME ) ?>
|
416 |
+
</option>
|
417 |
+
<option value="LEFT_TOP" <?php selected( isset( $json['map']['rotateControlOptions']['position'] ) ? $json['map']['rotateControlOptions']['position'] == 'LEFT_TOP' : false ) ?>>
|
418 |
+
<?php esc_html_e( 'Left Top', INTERGEO_PLUGIN_NAME ) ?>
|
419 |
+
</option>
|
420 |
+
</select>
|
421 |
+
</td>
|
422 |
+
<td class="intergeo_tlbr_cntrl_tbl_clmn"> </td>
|
423 |
+
</tr>
|
424 |
+
</table>
|
425 |
+
</div>
|
426 |
+
</li>
|
427 |
+
<li class="intergeo_tlbr_ul_li_ul_li">
|
428 |
+
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Overview Map control', INTERGEO_PLUGIN_NAME ) ?></span>
|
429 |
+
<div class="intergeo_tlbr_cntrl_items">
|
430 |
+
<div class="intergeo_tlbr_cntrl_item">
|
431 |
+
<a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
|
432 |
+
<label>
|
433 |
+
<input type="hidden" name="map_overviewMapControl" value="0">
|
434 |
+
<input type="checkbox" name="map_overviewMapControl" value="1" <?php checked( isset( $json['map']['overviewMapControl'] ) ? $json['map']['overviewMapControl'] == 1 : false ) ?>>
|
435 |
+
<?php esc_html_e( 'Enabled', INTERGEO_PLUGIN_NAME ) ?>
|
436 |
+
</label>
|
437 |
+
</div>
|
438 |
+
<p class="intergeo_tlbr_cntrl_dsc">
|
439 |
+
<?php esc_html_e( 'The Overview Map control displays a thumbnail overview map reflecting the current map viewport within a wider area. This control appears by default in the bottom right corner of the map, and is by default shown in its collapsed state.', INTERGEO_PLUGIN_NAME ) ?>
|
440 |
+
</p>
|
441 |
+
<div class="intergeo_tlbr_cntrl_item">
|
442 |
+
<label>
|
443 |
+
<input type="hidden" name="map_overviewMapControlOptions_opened" value="0">
|
444 |
+
<input type="checkbox" name="map_overviewMapControlOptions_opened" value="1" <?php checked( isset( $json['map']['overviewMapControlOptions']['opened'] ) ? $json['map']['overviewMapControlOptions']['opened'] == 1 : false ) ?>>
|
445 |
+
<?php esc_html_e( 'Opened', INTERGEO_PLUGIN_NAME ) ?>
|
446 |
+
</label>
|
447 |
+
</div>
|
448 |
+
</div>
|
449 |
+
</li>
|
450 |
</ul>
|
templates/iframe/directions.php
CHANGED
@@ -1,79 +1,79 @@
|
|
1 |
-
<h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'Directions', INTERGEO_PLUGIN_NAME ) ?></h3>
|
2 |
-
<ul class="intergeo_tlbr_ul_li_ul">
|
3 |
-
<li class="intergeo_tlbr_ul_li_ul_li">
|
4 |
-
<p class="intergeo_tlbr_grp_dsc">
|
5 |
-
<?php esc_html_e( 'To add a new direction just click the button below:' ) ?>
|
6 |
-
</p>
|
7 |
-
<p class="intergeo_tlbr_grp_dsc">
|
8 |
-
<a id="intergeo_tlbr_new_drctn" class="button button-small" href="javascript:;">
|
9 |
-
<span id="intergeo_tlbr_drctn_icon"></span>
|
10 |
-
<?php esc_html_e( 'Add Direction', INTERGEO_PLUGIN_NAME ) ?>
|
11 |
-
</a>
|
12 |
-
</p>
|
13 |
-
</li>
|
14 |
-
<li class="intergeo_tlbr_ul_li_ul_li">
|
15 |
-
<script id="intergeo_tlbr_drctn_ttl_tmpl" type="text/html">
|
16 |
-
#%num% <?php esc_html_e( 'from', INTERGEO_PLUGIN_NAME ) ?> %from% <?php esc_html_e( 'to', INTERGEO_PLUGIN_NAME ) ?> %to% %mode%
|
17 |
-
</script>
|
18 |
-
<script id="intergeo_tlbr_drctn_tmpl" type="text/html">
|
19 |
-
<table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_drctn" border="0" cellspacing="0" cellpadding="0">
|
20 |
-
<tr>
|
21 |
-
<td class="intergeo_tlbr_direction_title_td">
|
22 |
-
#%num% <?php esc_html_e( 'from', INTERGEO_PLUGIN_NAME ) ?> %from% <?php esc_html_e( 'to', INTERGEO_PLUGIN_NAME ) ?> %to% %mode%
|
23 |
-
</td>
|
24 |
-
<td>
|
25 |
-
<input type="hidden" class="intergeo_tlbr_drctn_from" name="directions[%pos%][from]" data-position="%pos%">
|
26 |
-
<input type="hidden" class="intergeo_tlbr_drctn_to" name="directions[%pos%][to]">
|
27 |
-
<input type="hidden" class="intergeo_tlbr_drctn_mode" name="directions[%pos%][mode]">
|
28 |
-
|
29 |
-
<a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete direction', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
30 |
-
<a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit direction', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
31 |
-
</td>
|
32 |
-
</tr>
|
33 |
-
</table>
|
34 |
-
</script>
|
35 |
-
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Created directions', INTERGEO_PLUGIN_NAME ) ?></span>
|
36 |
-
<div id="intergeo_tlbr_drctns" class="intergeo_tlbr_cntrl_items">
|
37 |
-
<?php if ( !empty( $json['directions'] ) ) : ?>
|
38 |
-
<?php foreach ( $json['directions'] as $i => $direction ) : ?>
|
39 |
-
<table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_drctn" border="0" cellspacing="0" cellpadding="0">
|
40 |
-
<tr>
|
41 |
-
<td class="intergeo_tlbr_direction_title_td">
|
42 |
-
#<?php echo $i + 1 ?>
|
43 |
-
<?php esc_html_e( 'from', INTERGEO_PLUGIN_NAME ) ?>
|
44 |
-
<?php echo esc_html( $direction['from'] ) ?>
|
45 |
-
<?php esc_html_e( 'to', INTERGEO_PLUGIN_NAME ) ?>
|
46 |
-
<?php echo esc_html( $direction['to'] ) ?>
|
47 |
-
<?php
|
48 |
-
switch ( $direction['mode'] ) :
|
49 |
-
case 'BICYCLING':
|
50 |
-
esc_html_e( 'via bicycle paths & preferred streets', INTERGEO_PLUGIN_NAME );
|
51 |
-
break;
|
52 |
-
case 'TRANSIT':
|
53 |
-
esc_html_e( 'via public transit routes', INTERGEO_PLUGIN_NAME );
|
54 |
-
break;
|
55 |
-
case 'WALKING':
|
56 |
-
esc_html_e( 'via pedestrian paths & sidewalks', INTERGEO_PLUGIN_NAME );
|
57 |
-
break;
|
58 |
-
case 'DRIVING':
|
59 |
-
default:
|
60 |
-
esc_html_e( 'via standard driving directions', INTERGEO_PLUGIN_NAME );
|
61 |
-
break;
|
62 |
-
endswitch;
|
63 |
-
?>
|
64 |
-
</td>
|
65 |
-
<td>
|
66 |
-
<input type="hidden" class="intergeo_tlbr_drctn_from" name="directions[<?php echo $i ?>][from]" data-position="<?php echo $i ?>" value="<?php echo esc_attr( $direction['from'] ) ?>">
|
67 |
-
<input type="hidden" class="intergeo_tlbr_drctn_to" name="directions[<?php echo $i ?>][to]" value="<?php echo esc_attr( $direction['to'] ) ?>">
|
68 |
-
<input type="hidden" class="intergeo_tlbr_drctn_mode" name="directions[<?php echo $i ?>][mode]" value="<?php echo esc_attr( $direction['mode'] ) ?>">
|
69 |
-
|
70 |
-
<a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete direction', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
71 |
-
<a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit direction', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
72 |
-
</td>
|
73 |
-
</tr>
|
74 |
-
</table>
|
75 |
-
<?php endforeach; ?>
|
76 |
-
<?php endif; ?>
|
77 |
-
</div>
|
78 |
-
</li>
|
79 |
</ul>
|
1 |
+
<h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'Directions', INTERGEO_PLUGIN_NAME ) ?></h3>
|
2 |
+
<ul class="intergeo_tlbr_ul_li_ul">
|
3 |
+
<li class="intergeo_tlbr_ul_li_ul_li">
|
4 |
+
<p class="intergeo_tlbr_grp_dsc">
|
5 |
+
<?php esc_html_e( 'To add a new direction just click the button below:' ) ?>
|
6 |
+
</p>
|
7 |
+
<p class="intergeo_tlbr_grp_dsc">
|
8 |
+
<a id="intergeo_tlbr_new_drctn" class="button button-small" href="javascript:;">
|
9 |
+
<span id="intergeo_tlbr_drctn_icon"></span>
|
10 |
+
<?php esc_html_e( 'Add Direction', INTERGEO_PLUGIN_NAME ) ?>
|
11 |
+
</a>
|
12 |
+
</p>
|
13 |
+
</li>
|
14 |
+
<li class="intergeo_tlbr_ul_li_ul_li">
|
15 |
+
<script id="intergeo_tlbr_drctn_ttl_tmpl" type="text/html">
|
16 |
+
#%num% <?php esc_html_e( 'from', INTERGEO_PLUGIN_NAME ) ?> %from% <?php esc_html_e( 'to', INTERGEO_PLUGIN_NAME ) ?> %to% %mode%
|
17 |
+
</script>
|
18 |
+
<script id="intergeo_tlbr_drctn_tmpl" type="text/html">
|
19 |
+
<table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_drctn" border="0" cellspacing="0" cellpadding="0">
|
20 |
+
<tr>
|
21 |
+
<td class="intergeo_tlbr_direction_title_td">
|
22 |
+
#%num% <?php esc_html_e( 'from', INTERGEO_PLUGIN_NAME ) ?> %from% <?php esc_html_e( 'to', INTERGEO_PLUGIN_NAME ) ?> %to% %mode%
|
23 |
+
</td>
|
24 |
+
<td>
|
25 |
+
<input type="hidden" class="intergeo_tlbr_drctn_from" name="directions[%pos%][from]" data-position="%pos%">
|
26 |
+
<input type="hidden" class="intergeo_tlbr_drctn_to" name="directions[%pos%][to]">
|
27 |
+
<input type="hidden" class="intergeo_tlbr_drctn_mode" name="directions[%pos%][mode]">
|
28 |
+
|
29 |
+
<a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete direction', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
30 |
+
<a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit direction', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
31 |
+
</td>
|
32 |
+
</tr>
|
33 |
+
</table>
|
34 |
+
</script>
|
35 |
+
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Created directions', INTERGEO_PLUGIN_NAME ) ?></span>
|
36 |
+
<div id="intergeo_tlbr_drctns" class="intergeo_tlbr_cntrl_items">
|
37 |
+
<?php if ( !empty( $json['directions'] ) ) : ?>
|
38 |
+
<?php foreach ( $json['directions'] as $i => $direction ) : ?>
|
39 |
+
<table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_drctn" border="0" cellspacing="0" cellpadding="0">
|
40 |
+
<tr>
|
41 |
+
<td class="intergeo_tlbr_direction_title_td">
|
42 |
+
#<?php echo $i + 1 ?>
|
43 |
+
<?php esc_html_e( 'from', INTERGEO_PLUGIN_NAME ) ?>
|
44 |
+
<?php echo esc_html( $direction['from'] ) ?>
|
45 |
+
<?php esc_html_e( 'to', INTERGEO_PLUGIN_NAME ) ?>
|
46 |
+
<?php echo esc_html( $direction['to'] ) ?>
|
47 |
+
<?php
|
48 |
+
switch ( $direction['mode'] ) :
|
49 |
+
case 'BICYCLING':
|
50 |
+
esc_html_e( 'via bicycle paths & preferred streets', INTERGEO_PLUGIN_NAME );
|
51 |
+
break;
|
52 |
+
case 'TRANSIT':
|
53 |
+
esc_html_e( 'via public transit routes', INTERGEO_PLUGIN_NAME );
|
54 |
+
break;
|
55 |
+
case 'WALKING':
|
56 |
+
esc_html_e( 'via pedestrian paths & sidewalks', INTERGEO_PLUGIN_NAME );
|
57 |
+
break;
|
58 |
+
case 'DRIVING':
|
59 |
+
default:
|
60 |
+
esc_html_e( 'via standard driving directions', INTERGEO_PLUGIN_NAME );
|
61 |
+
break;
|
62 |
+
endswitch;
|
63 |
+
?>
|
64 |
+
</td>
|
65 |
+
<td>
|
66 |
+
<input type="hidden" class="intergeo_tlbr_drctn_from" name="directions[<?php echo $i ?>][from]" data-position="<?php echo $i ?>" value="<?php echo esc_attr( $direction['from'] ) ?>">
|
67 |
+
<input type="hidden" class="intergeo_tlbr_drctn_to" name="directions[<?php echo $i ?>][to]" value="<?php echo esc_attr( $direction['to'] ) ?>">
|
68 |
+
<input type="hidden" class="intergeo_tlbr_drctn_mode" name="directions[<?php echo $i ?>][mode]" value="<?php echo esc_attr( $direction['mode'] ) ?>">
|
69 |
+
|
70 |
+
<a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete direction', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
71 |
+
<a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit direction', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
72 |
+
</td>
|
73 |
+
</tr>
|
74 |
+
</table>
|
75 |
+
<?php endforeach; ?>
|
76 |
+
<?php endif; ?>
|
77 |
+
</div>
|
78 |
+
</li>
|
79 |
</ul>
|
templates/iframe/extra.php
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!--<li class="intergeo_tlbr_ul_li">
|
2 |
+
<h3 class="intergeo_tlbr_ul_li_h3"><?php /*esc_html_e( 'Import 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 |
+
<?php /*esc_html_e( 'Enabled ( Available in PRO )', INTERGEO_PLUGIN_NAME ) */?>
|
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>
|
32 |
+
-->
|
templates/iframe/form.php
CHANGED
@@ -1,46 +1,46 @@
|
|
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">
|
10 |
-
<?php include INTERGEO_ABSPATH . '/templates/iframe/positioning.php' ?>
|
11 |
-
</li>
|
12 |
-
<li class="intergeo_tlbr_ul_li">
|
13 |
-
<?php include INTERGEO_ABSPATH . '/templates/iframe/controls.php' ?>
|
14 |
-
</li>
|
15 |
-
<li class="intergeo_tlbr_ul_li">
|
16 |
-
<?php include INTERGEO_ABSPATH . '/templates/iframe/styles.php' ?>
|
17 |
-
</li>
|
18 |
-
<li class="intergeo_tlbr_ul_li">
|
19 |
-
<?php include INTERGEO_ABSPATH . '/templates/iframe/overlays.php' ?>
|
20 |
-
</li>
|
21 |
-
<li class="intergeo_tlbr_ul_li">
|
22 |
-
<?php include INTERGEO_ABSPATH . '/templates/iframe/directions.php' ?>
|
23 |
-
</li>
|
24 |
-
<li class="intergeo_tlbr_ul_li">
|
25 |
-
<?php include INTERGEO_ABSPATH . '/templates/iframe/layers.php' ?>
|
26 |
-
</li>
|
27 |
-
<li class="intergeo_tlbr_ul_li">
|
28 |
-
<?php include INTERGEO_ABSPATH . '/templates/iframe/adsense.php' ?>
|
29 |
-
</li>
|
30 |
-
<?php
|
31 |
-
// Added by Ash/Upwork
|
32 |
-
|
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
|
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_PLUGIN_NAME ) ?></div>
|
8 |
+
<ul id="intergeo_tlbr_ul">
|
9 |
+
<li class="intergeo_tlbr_ul_li">
|
10 |
+
<?php include INTERGEO_ABSPATH . '/templates/iframe/positioning.php' ?>
|
11 |
+
</li>
|
12 |
+
<li class="intergeo_tlbr_ul_li">
|
13 |
+
<?php include INTERGEO_ABSPATH . '/templates/iframe/controls.php' ?>
|
14 |
+
</li>
|
15 |
+
<li class="intergeo_tlbr_ul_li">
|
16 |
+
<?php include INTERGEO_ABSPATH . '/templates/iframe/styles.php' ?>
|
17 |
+
</li>
|
18 |
+
<li class="intergeo_tlbr_ul_li">
|
19 |
+
<?php include INTERGEO_ABSPATH . '/templates/iframe/overlays.php' ?>
|
20 |
+
</li>
|
21 |
+
<li class="intergeo_tlbr_ul_li">
|
22 |
+
<?php include INTERGEO_ABSPATH . '/templates/iframe/directions.php' ?>
|
23 |
+
</li>
|
24 |
+
<li class="intergeo_tlbr_ul_li">
|
25 |
+
<?php include INTERGEO_ABSPATH . '/templates/iframe/layers.php' ?>
|
26 |
+
</li>
|
27 |
+
<li class="intergeo_tlbr_ul_li">
|
28 |
+
<?php include INTERGEO_ABSPATH . '/templates/iframe/adsense.php' ?>
|
29 |
+
</li>
|
30 |
+
<?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'; ?>
|
templates/iframe/layers.php
CHANGED
@@ -1,149 +1,151 @@
|
|
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 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
<
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
<
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
|
|
|
|
149 |
</ul>
|
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>Custom Layers are available in the PRO version</a>
|
143 |
+
</p>
|
144 |
+
</div>
|
145 |
+
</div>
|
146 |
+
</li>-->
|
147 |
+
<?php
|
148 |
+
}
|
149 |
+
// Added by Ash/Upwork
|
150 |
+
?>
|
151 |
</ul>
|
templates/iframe/overlays.php
CHANGED
@@ -1,340 +1,340 @@
|
|
1 |
-
<h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'Overlays', INTERGEO_PLUGIN_NAME ) ?></h3>
|
2 |
-
<ul class="intergeo_tlbr_ul_li_ul">
|
3 |
-
<li class="intergeo_tlbr_li_ul_li">
|
4 |
-
<p class="intergeo_tlbr_grp_dsc">
|
5 |
-
<?php esc_html_e( 'Drawing tools allows you to add overlays over the map. You can add markers, polylines, polygons, circles and rectangles. To enable drawing tools just put a tick in the checkbox below.', INTERGEO_PLUGIN_NAME ) ?>
|
6 |
-
</p>
|
7 |
-
<p class="intergeo_tlbr_grp_dsc">
|
8 |
-
<?php esc_html_e( 'To delete a marker, just double click on it and an item will be removed.', INTERGEO_PLUGIN_NAME ) ?>
|
9 |
-
</p>
|
10 |
-
</li>
|
11 |
-
<li class="intergeo_tlbr_ul_li_ul_li">
|
12 |
-
<div class="intergeo_tlbr_cntrl_items" style="display:block">
|
13 |
-
<div class="intergeo_tlbr_cntrl_item">
|
14 |
-
<label>
|
15 |
-
<input type="checkbox" id="intergeo_tlbr_drawing_tools">
|
16 |
-
<?php esc_html_e( 'Enable drawing tools', INTERGEO_PLUGIN_NAME ) ?>
|
17 |
-
</label>
|
18 |
-
</div>
|
19 |
-
</div>
|
20 |
-
</li>
|
21 |
-
<li class="intergeo_tlbr_ul_li_ul_li">
|
22 |
-
<script id="intergeo_tlbr_marker_tmpl" type="text/html">
|
23 |
-
<table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_marker" border="0" cellspacing="0" cellpadding="0">
|
24 |
-
<tr>
|
25 |
-
<td class="intergeo_tlbr_marker_title_td">
|
26 |
-
#%num% <?php esc_html_e( 'marker', INTERGEO_PLUGIN_NAME ) ?>
|
27 |
-
</td>
|
28 |
-
<td>
|
29 |
-
<input type="hidden" class="intergeo_tlbr_marker_location" name="overlays_marker[%pos%][position]" data-position="%pos%">
|
30 |
-
<input type="hidden" class="intergeo_tlbr_marker_title" name="overlays_marker[%pos%][title]">
|
31 |
-
<input type="hidden" class="intergeo_tlbr_marker_icon" name="overlays_marker[%pos%][icon]">
|
32 |
-
<input type="hidden" class="intergeo_tlbr_marker_info" name="overlays_marker[%pos%][info]">
|
33 |
-
|
34 |
-
<a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete marker', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
35 |
-
<a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit marker', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
36 |
-
</td>
|
37 |
-
</tr>
|
38 |
-
</table>
|
39 |
-
</script>
|
40 |
-
|
41 |
-
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Markers', INTERGEO_PLUGIN_NAME ) ?></span>
|
42 |
-
<div id="intergeo_tlbr_markers" class="intergeo_tlbr_cntrl_items">
|
43 |
-
<?php if ( !empty( $json['overlays']['marker'] ) ) : ?>
|
44 |
-
<?php foreach ( $json['overlays']['marker'] as $i => $overlay ) : ?>
|
45 |
-
<table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_marker" border="0" cellspacing="0" cellpadding="0">
|
46 |
-
<tr>
|
47 |
-
<td class="intergeo_tlbr_marker_title_td">
|
48 |
-
<?php if ( empty( $overlay['title'] ) ) : ?>
|
49 |
-
#<?php echo $i + 1 ?> <?php esc_html_e( 'marker', INTERGEO_PLUGIN_NAME ) ?>
|
50 |
-
<?php else : ?>
|
51 |
-
<?php echo esc_html( $overlay['title'] ) ?>
|
52 |
-
<?php endif; ?>
|
53 |
-
</td>
|
54 |
-
<td>
|
55 |
-
<input type="hidden" class="intergeo_tlbr_marker_location" name="overlays_marker[<?php echo $i ?>][position]" value="<?php echo esc_attr( implode( ',', $overlay['position'] ) ) ?>" data-position="<?php echo $i ?>">
|
56 |
-
<input type="hidden" class="intergeo_tlbr_marker_title" name="overlays_marker[<?php echo $i ?>][title]" value="<?php echo esc_attr( $overlay['title'] ) ?>">
|
57 |
-
<input type="hidden" class="intergeo_tlbr_marker_icon" name="overlays_marker[<?php echo $i ?>][icon]" value="<?php echo esc_attr( $overlay['icon'] ) ?>">
|
58 |
-
<input type="hidden" class="intergeo_tlbr_marker_info" name="overlays_marker[<?php echo $i ?>][info]" value="<?php echo esc_attr( $overlay['info'] ) ?>">
|
59 |
-
|
60 |
-
<a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete marker', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
61 |
-
<a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit marker', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
62 |
-
</td>
|
63 |
-
</tr>
|
64 |
-
</table>
|
65 |
-
<?php endforeach; ?>
|
66 |
-
<?php endif; ?>
|
67 |
-
</div>
|
68 |
-
</li>
|
69 |
-
<li class="intergeo_tlbr_ul_li_ul_li">
|
70 |
-
<script id="intergeo_tlbr_polyline_tmpl" type="text/html">
|
71 |
-
<table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_polyline" border="0" cellspacing="0" cellpadding="0">
|
72 |
-
<tr>
|
73 |
-
<td>
|
74 |
-
#%num% <?php esc_html_e( 'polyline', INTERGEO_PLUGIN_NAME ) ?>
|
75 |
-
</td>
|
76 |
-
<td>
|
77 |
-
<input type="hidden" class="intergeo_tlbr_polyline_path" name="overlays_polyline[%pos%][path]" data-position="%pos%">
|
78 |
-
<input type="hidden" class="intergeo_tlbr_polyline_weight" name="overlays_polyline[%pos%][weight]">
|
79 |
-
<input type="hidden" class="intergeo_tlbr_polyline_opacity" name="overlays_polyline[%pos%][opacity]">
|
80 |
-
<input type="hidden" class="intergeo_tlbr_polyline_color" name="overlays_polyline[%pos%][color]">
|
81 |
-
|
82 |
-
<a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete polyline', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
83 |
-
<a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit polyline', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
84 |
-
|
85 |
-
<span class="intergeo_tlbr_clr_prvw" style="background-color:black;"></span>
|
86 |
-
</td>
|
87 |
-
</tr>
|
88 |
-
</table>
|
89 |
-
</script>
|
90 |
-
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Polylines', INTERGEO_PLUGIN_NAME ) ?></span>
|
91 |
-
<div id="intergeo_tlbr_polylines" class="intergeo_tlbr_cntrl_items"><?php
|
92 |
-
if ( !empty( $json['overlays']['polyline'] ) ) :
|
93 |
-
$i = 0;
|
94 |
-
foreach ( $json['overlays']['polyline'] as $overlay ) :
|
95 |
-
$path = array();
|
96 |
-
foreach( $overlay['path'] as $point ) :
|
97 |
-
$path[] = implode( ',', $point );
|
98 |
-
endforeach; ?>
|
99 |
-
<table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_polyline" border="0" cellspacing="0" cellpadding="0">
|
100 |
-
<tr>
|
101 |
-
<td>
|
102 |
-
#<?php echo $i + 1 ?> <?php esc_html_e( 'polyline', INTERGEO_PLUGIN_NAME ) ?>
|
103 |
-
</td>
|
104 |
-
<td>
|
105 |
-
<input type="hidden" class="intergeo_tlbr_polyline_path" name="overlays_polyline[<?php echo $i ?>][path]" value="<?php echo implode( ';', $path ) ?>" data-position="<?php echo $i ?>">
|
106 |
-
<input type="hidden" class="intergeo_tlbr_polyline_weight" name="overlays_polyline[<?php echo $i ?>][weight]" value="<?php echo esc_attr( $overlay['weight'] ) ?>">
|
107 |
-
<input type="hidden" class="intergeo_tlbr_polyline_opacity" name="overlays_polyline[<?php echo $i ?>][opacity]" value="<?php echo esc_attr( $overlay['opacity'] ) ?>">
|
108 |
-
<input type="hidden" class="intergeo_tlbr_polyline_color" name="overlays_polyline[<?php echo $i++ ?>][color]" value="<?php echo esc_attr( $overlay['color'] ) ?>">
|
109 |
-
|
110 |
-
<a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete polyline', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
111 |
-
<a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit polyline', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
112 |
-
|
113 |
-
<span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['color'] ) ?>;opacity:<?php echo esc_attr( $overlay['opacity'] ) ?>"></span>
|
114 |
-
</td>
|
115 |
-
</tr>
|
116 |
-
</table>
|
117 |
-
<?php endforeach; ?>
|
118 |
-
<?php endif; ?>
|
119 |
-
</div>
|
120 |
-
</li>
|
121 |
-
<li class="intergeo_tlbr_ul_li_ul_li">
|
122 |
-
<script id="intergeo_tlbr_rectangle_tmpl" type="text/html">
|
123 |
-
<table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_rectangle" border="0" cellspacing="0" cellpadding="0">
|
124 |
-
<tr>
|
125 |
-
<td>
|
126 |
-
#%num% <?php esc_html_e( 'rectangle', INTERGEO_PLUGIN_NAME ) ?>
|
127 |
-
</td>
|
128 |
-
<td>
|
129 |
-
<input type="hidden" class="intergeo_tlbr_rectangle_path" name="overlays_rectangle[%pos%][path]" data-position="%pos%">
|
130 |
-
<input type="hidden" class="intergeo_tlbr_rectangle_weight" name="overlays_rectangle[%pos%][weight]">
|
131 |
-
<input type="hidden" class="intergeo_tlbr_rectangle_stroke_opacity" name="overlays_rectangle[%pos%][stroke_opacity]">
|
132 |
-
<input type="hidden" class="intergeo_tlbr_rectangle_position" name="overlays_rectangle[%pos%][position]">
|
133 |
-
<input type="hidden" class="intergeo_tlbr_rectangle_stroke_color" name="overlays_rectangle[%pos%][stroke_color]">
|
134 |
-
<input type="hidden" class="intergeo_tlbr_rectangle_fill_opacity" name="overlays_rectangle[%pos%][fill_opacity]">
|
135 |
-
<input type="hidden" class="intergeo_tlbr_rectangle_fill_color" name="overlays_rectangle[%pos%][fill_color]">
|
136 |
-
|
137 |
-
<a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete rectangle', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
138 |
-
<a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit rectangle', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
139 |
-
|
140 |
-
<span class="intergeo_tlbr_clr_prvw" style="background-color:black;opacity:0.3;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=30)';filter:alpha(opacity=30);"></span>
|
141 |
-
<span class="intergeo_tlbr_clr_prvw" style="background-color:black;"></span>
|
142 |
-
</td>
|
143 |
-
</tr>
|
144 |
-
</table>
|
145 |
-
</script>
|
146 |
-
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Rectangles', INTERGEO_PLUGIN_NAME ) ?></span>
|
147 |
-
<div id="intergeo_tlbr_rectangles" class="intergeo_tlbr_cntrl_items"><?php
|
148 |
-
if ( !empty( $json['overlays']['rectangle'] ) ) :
|
149 |
-
$i = 0;
|
150 |
-
foreach ( $json['overlays']['rectangle'] as $overlay ) :
|
151 |
-
|
152 |
-
$fill_opacity = "opacity:0.3;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=30)';filter:alpha(opacity=30);";
|
153 |
-
if ( is_numeric( $overlay['fill_opacity'] ) ) {
|
154 |
-
$opacity = floatval( $overlay['fill_opacity'] );
|
155 |
-
$fill_opacity = sprintf( "opacity:%1\$.2f;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=%2\$u)';filter:alpha(opacity=%2\$u);", $opacity, $opacity * 100 );
|
156 |
-
}
|
157 |
-
|
158 |
-
$stroke_opacity = '';
|
159 |
-
if ( is_numeric( $overlay['stroke_opacity'] ) ) {
|
160 |
-
$opacity = floatval( $overlay['stroke_opacity'] );
|
161 |
-
$stroke_opacity = sprintf( "opacity:%1\$f;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=%2\$u)';filter:alpha(opacity=%2\$u);", $opacity, $opacity * 100 );
|
162 |
-
}
|
163 |
-
|
164 |
-
$path = array();
|
165 |
-
foreach( $overlay['path'] as $point ) :
|
166 |
-
$path[] = implode( ',', $point );
|
167 |
-
endforeach; ?>
|
168 |
-
<table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_rectangle" border="0" cellspacing="0" cellpadding="0">
|
169 |
-
<tr>
|
170 |
-
<td>
|
171 |
-
#<?php echo $i + 1 ?> <?php esc_html_e( 'rectangle', INTERGEO_PLUGIN_NAME ) ?>
|
172 |
-
</td>
|
173 |
-
<td>
|
174 |
-
<input type="hidden" class="intergeo_tlbr_rectangle_path" name="overlays_rectangle[<?php echo $i ?>][path]" value="<?php echo implode( ';', $path ) ?>" data-position="<?php echo $i ?>">
|
175 |
-
<input type="hidden" class="intergeo_tlbr_rectangle_weight" name="overlays_rectangle[<?php echo $i ?>][weight]" value="<?php echo esc_attr( $overlay['weight'] ) ?>">
|
176 |
-
<input type="hidden" class="intergeo_tlbr_rectangle_stroke_opacity" name="overlays_rectangle[<?php echo $i ?>][stroke_opacity]" value="<?php echo esc_attr( $overlay['stroke_opacity'] ) ?>">
|
177 |
-
<input type="hidden" class="intergeo_tlbr_rectangle_position" name="overlays_rectangle[<?php echo $i ?>][position]" value="<?php echo esc_attr( $overlay['position'] ) ?>">
|
178 |
-
<input type="hidden" class="intergeo_tlbr_rectangle_stroke_color" name="overlays_rectangle[<?php echo $i ?>][stroke_color]" value="<?php echo esc_attr( $overlay['stroke_color'] ) ?>">
|
179 |
-
<input type="hidden" class="intergeo_tlbr_rectangle_fill_opacity" name="overlays_rectangle[<?php echo $i ?>][fill_opacity]" value="<?php echo esc_attr( $overlay['fill_opacity'] ) ?>">
|
180 |
-
<input type="hidden" class="intergeo_tlbr_rectangle_fill_color" name="overlays_rectangle[<?php echo $i++ ?>][fill_color]" value="<?php echo esc_attr( $overlay['fill_color'] ) ?>">
|
181 |
-
|
182 |
-
<a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete rectangle', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
183 |
-
<a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit rectangle', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
184 |
-
|
185 |
-
<span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['fill_color'] ) ?>;<?php echo $fill_opacity ?>"></span>
|
186 |
-
<span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['stroke_color'] ) ?>;<?php echo $stroke_opacity ?>"></span>
|
187 |
-
</td>
|
188 |
-
</tr>
|
189 |
-
</table>
|
190 |
-
<?php endforeach; ?>
|
191 |
-
<?php endif; ?>
|
192 |
-
</div>
|
193 |
-
</li>
|
194 |
-
<li class="intergeo_tlbr_ul_li_ul_li">
|
195 |
-
<script id="intergeo_tlbr_circle_tmpl" type="text/html">
|
196 |
-
<table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_circle" border="0" cellspacing="0" cellpadding="0">
|
197 |
-
<tr>
|
198 |
-
<td>
|
199 |
-
#%num% <?php esc_html_e( 'circle', INTERGEO_PLUGIN_NAME ) ?>
|
200 |
-
</td>
|
201 |
-
<td>
|
202 |
-
<input type="hidden" class="intergeo_tlbr_circle_path" name="overlays_circle[%pos%][path]" data-position="%pos%">
|
203 |
-
<input type="hidden" class="intergeo_tlbr_circle_weight" name="overlays_circle[%pos%][weight]">
|
204 |
-
<input type="hidden" class="intergeo_tlbr_circle_stroke_opacity" name="overlays_circle[%pos%][stroke_opacity]">
|
205 |
-
<input type="hidden" class="intergeo_tlbr_circle_position" name="overlays_circle[%pos%][position]">
|
206 |
-
<input type="hidden" class="intergeo_tlbr_circle_stroke_color" name="overlays_circle[%pos%][stroke_color]">
|
207 |
-
<input type="hidden" class="intergeo_tlbr_circle_fill_opacity" name="overlays_circle[%pos%][fill_opacity]">
|
208 |
-
<input type="hidden" class="intergeo_tlbr_circle_fill_color" name="overlays_circle[%pos%][fill_color]">
|
209 |
-
|
210 |
-
<a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete rectangle', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
211 |
-
<a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit rectangle', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
212 |
-
|
213 |
-
<span class="intergeo_tlbr_clr_prvw" style="background-color:black;opacity:0.3;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=30)';filter:alpha(opacity=30);"></span>
|
214 |
-
<span class="intergeo_tlbr_clr_prvw" style="background-color:black;"></span>
|
215 |
-
</td>
|
216 |
-
</tr>
|
217 |
-
</table>
|
218 |
-
</script>
|
219 |
-
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Circles', INTERGEO_PLUGIN_NAME ) ?></span>
|
220 |
-
<div id="intergeo_tlbr_circles" class="intergeo_tlbr_cntrl_items"><?php
|
221 |
-
if ( !empty( $json['overlays']['circle'] ) ) :
|
222 |
-
$i = 0;
|
223 |
-
foreach ( $json['overlays']['circle'] as $overlay ) :
|
224 |
-
|
225 |
-
$fill_opacity = "opacity:0.3;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=30)';filter:alpha(opacity=30);";
|
226 |
-
if ( is_numeric( $overlay['fill_opacity'] ) ) {
|
227 |
-
$opacity = floatval( $overlay['fill_opacity'] );
|
228 |
-
$fill_opacity = sprintf( "opacity:%1\$.2f;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=%2\$u)';filter:alpha(opacity=%2\$u);", $opacity, $opacity * 100 );
|
229 |
-
}
|
230 |
-
|
231 |
-
$stroke_opacity = '';
|
232 |
-
if ( is_numeric( $overlay['stroke_opacity'] ) ) {
|
233 |
-
$opacity = floatval( $overlay['stroke_opacity'] );
|
234 |
-
$stroke_opacity = sprintf( "opacity:%1\$f;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=%2\$u)';filter:alpha(opacity=%2\$u);", $opacity, $opacity * 100 );
|
235 |
-
}
|
236 |
-
|
237 |
-
$path = array();
|
238 |
-
foreach( $overlay['path'] as $point ) :
|
239 |
-
$path[] = implode( ',', $point );
|
240 |
-
endforeach; ?>
|
241 |
-
<table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_circle" border="0" cellspacing="0" cellpadding="0">
|
242 |
-
<tr>
|
243 |
-
<td>
|
244 |
-
#<?php echo $i + 1 ?> <?php esc_html_e( 'circle', INTERGEO_PLUGIN_NAME ) ?>
|
245 |
-
</td>
|
246 |
-
<td>
|
247 |
-
<input type="hidden" class="intergeo_tlbr_circle_path" name="overlays_circle[<?php echo $i ?>][path]" value="<?php echo implode( ';', $path ) ?>" data-position="<?php echo $i ?>">
|
248 |
-
<input type="hidden" class="intergeo_tlbr_circle_weight" name="overlays_circle[<?php echo $i ?>][weight]" value="<?php echo esc_attr( $overlay['weight'] ) ?>">
|
249 |
-
<input type="hidden" class="intergeo_tlbr_circle_stroke_opacity" name="overlays_circle[<?php echo $i ?>][stroke_opacity]" value="<?php echo esc_attr( $overlay['stroke_opacity'] ) ?>">
|
250 |
-
<input type="hidden" class="intergeo_tlbr_circle_position" name="overlays_circle[<?php echo $i ?>][position]" value="<?php echo esc_attr( $overlay['position'] ) ?>">
|
251 |
-
<input type="hidden" class="intergeo_tlbr_circle_stroke_color" name="overlays_circle[<?php echo $i ?>][stroke_color]" value="<?php echo esc_attr( $overlay['stroke_color'] ) ?>">
|
252 |
-
<input type="hidden" class="intergeo_tlbr_circle_fill_opacity" name="overlays_circle[<?php echo $i ?>][fill_opacity]" value="<?php echo esc_attr( $overlay['fill_opacity'] ) ?>">
|
253 |
-
<input type="hidden" class="intergeo_tlbr_circle_fill_color" name="overlays_circle[<?php echo $i++ ?>][fill_color]" value="<?php echo esc_attr( $overlay['fill_color'] ) ?>">
|
254 |
-
|
255 |
-
<a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete circle', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
256 |
-
<a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit circle', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
257 |
-
|
258 |
-
<span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['fill_color'] ) ?>;<?php echo $fill_opacity ?>"></span>
|
259 |
-
<span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['stroke_color'] ) ?>;<?php echo $stroke_opacity ?>"></span>
|
260 |
-
</td>
|
261 |
-
</tr>
|
262 |
-
</table>
|
263 |
-
<?php endforeach; ?>
|
264 |
-
<?php endif; ?>
|
265 |
-
</div>
|
266 |
-
</li>
|
267 |
-
<li class="intergeo_tlbr_ul_li_ul_li">
|
268 |
-
<script id="intergeo_tlbr_polygon_tmpl" type="text/html">
|
269 |
-
<table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_polygon" border="0" cellspacing="0" cellpadding="0">
|
270 |
-
<tr>
|
271 |
-
<td>
|
272 |
-
#%num% <?php esc_html_e( 'polygon', INTERGEO_PLUGIN_NAME ) ?>
|
273 |
-
</td>
|
274 |
-
<td>
|
275 |
-
<input type="hidden" class="intergeo_tlbr_polygon_path" name="overlays_polygon[%pos%][path]" data-position="%pos%">
|
276 |
-
<input type="hidden" class="intergeo_tlbr_polygon_weight" name="overlays_polygon[%pos%][weight]">
|
277 |
-
<input type="hidden" class="intergeo_tlbr_polygon_stroke_opacity" name="overlays_polygon[%pos%][stroke_opacity]">
|
278 |
-
<input type="hidden" class="intergeo_tlbr_polygon_position" name="overlays_polygon[%pos%][position]">
|
279 |
-
<input type="hidden" class="intergeo_tlbr_polygon_stroke_color" name="overlays_polygon[%pos%][stroke_color]">
|
280 |
-
<input type="hidden" class="intergeo_tlbr_polygon_fill_opacity" name="overlays_polygon[%pos%][fill_opacity]">
|
281 |
-
<input type="hidden" class="intergeo_tlbr_polygon_fill_color" name="overlays_polygon[%pos%][fill_color]">
|
282 |
-
|
283 |
-
<a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete polygon', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
284 |
-
<a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit polygon', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
285 |
-
|
286 |
-
<span class="intergeo_tlbr_clr_prvw" style="background-color:black;opacity:0.3;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=30)';filter:alpha(opacity=30);"></span>
|
287 |
-
<span class="intergeo_tlbr_clr_prvw" style="background-color:black;"></span>
|
288 |
-
</td>
|
289 |
-
</tr>
|
290 |
-
</table>
|
291 |
-
</script>
|
292 |
-
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Polygons', INTERGEO_PLUGIN_NAME ) ?></span>
|
293 |
-
<div id="intergeo_tlbr_polygons" class="intergeo_tlbr_cntrl_items"><?php
|
294 |
-
if ( !empty( $json['overlays']['polygon'] ) ) :
|
295 |
-
$i = 0;
|
296 |
-
foreach ( $json['overlays']['polygon'] as $overlay ) :
|
297 |
-
|
298 |
-
$fill_opacity = "opacity:0.3;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=30)';filter:alpha(opacity=30);";
|
299 |
-
if ( is_numeric( $overlay['fill_opacity'] ) ) {
|
300 |
-
$opacity = floatval( $overlay['fill_opacity'] );
|
301 |
-
$fill_opacity = sprintf( "opacity:%1\$.2f;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=%2\$u)';filter:alpha(opacity=%2\$u);", $opacity, $opacity * 100 );
|
302 |
-
}
|
303 |
-
|
304 |
-
$stroke_opacity = '';
|
305 |
-
if ( is_numeric( $overlay['stroke_opacity'] ) ) {
|
306 |
-
$opacity = floatval( $overlay['stroke_opacity'] );
|
307 |
-
$stroke_opacity = sprintf( "opacity:%1\$f;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=%2\$u)';filter:alpha(opacity=%2\$u);", $opacity, $opacity * 100 );
|
308 |
-
}
|
309 |
-
|
310 |
-
$path = array();
|
311 |
-
foreach( $overlay['path'] as $point ) :
|
312 |
-
$path[] = implode( ',', $point );
|
313 |
-
endforeach; ?>
|
314 |
-
<table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_polygon" border="0" cellspacing="0" cellpadding="0">
|
315 |
-
<tr>
|
316 |
-
<td>
|
317 |
-
#<?php echo $i + 1 ?> <?php esc_html_e( 'polygon', INTERGEO_PLUGIN_NAME ) ?>
|
318 |
-
</td>
|
319 |
-
<td>
|
320 |
-
<input type="hidden" class="intergeo_tlbr_polygon_path" name="overlays_polygon[<?php echo $i ?>][path]" value="<?php echo implode( ';', $path ) ?>" data-position="<?php echo $i ?>">
|
321 |
-
<input type="hidden" class="intergeo_tlbr_polygon_weight" name="overlays_polygon[<?php echo $i ?>][weight]" value="<?php echo esc_attr( $overlay['weight'] ) ?>">
|
322 |
-
<input type="hidden" class="intergeo_tlbr_polygon_stroke_opacity" name="overlays_polygon[<?php echo $i ?>][stroke_opacity]" value="<?php echo esc_attr( $overlay['stroke_opacity'] ) ?>">
|
323 |
-
<input type="hidden" class="intergeo_tlbr_polygon_position" name="overlays_polygon[<?php echo $i ?>][position]" value="<?php echo esc_attr( $overlay['position'] ) ?>">
|
324 |
-
<input type="hidden" class="intergeo_tlbr_polygon_stroke_color" name="overlays_polygon[<?php echo $i ?>][stroke_color]" value="<?php echo esc_attr( $overlay['stroke_color'] ) ?>">
|
325 |
-
<input type="hidden" class="intergeo_tlbr_polygon_fill_opacity" name="overlays_polygon[<?php echo $i ?>][fill_opacity]" value="<?php echo esc_attr( $overlay['fill_opacity'] ) ?>">
|
326 |
-
<input type="hidden" class="intergeo_tlbr_polygon_fill_color" name="overlays_polygon[<?php echo $i++ ?>][fill_color]" value="<?php echo esc_attr( $overlay['fill_color'] ) ?>">
|
327 |
-
|
328 |
-
<a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete polygon', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
329 |
-
<a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit polygon', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
330 |
-
|
331 |
-
<span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['fill_color'] ) ?>;<?php echo $fill_opacity ?>"></span>
|
332 |
-
<span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['stroke_color'] ) ?>;<?php echo $stroke_opacity ?>"></span>
|
333 |
-
</td>
|
334 |
-
</tr>
|
335 |
-
</table>
|
336 |
-
<?php endforeach; ?>
|
337 |
-
<?php endif; ?>
|
338 |
-
</div>
|
339 |
-
</li>
|
340 |
</ul>
|
1 |
+
<h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'Overlays', INTERGEO_PLUGIN_NAME ) ?></h3>
|
2 |
+
<ul class="intergeo_tlbr_ul_li_ul">
|
3 |
+
<li class="intergeo_tlbr_li_ul_li">
|
4 |
+
<p class="intergeo_tlbr_grp_dsc">
|
5 |
+
<?php esc_html_e( 'Drawing tools allows you to add overlays over the map. You can add markers, polylines, polygons, circles and rectangles. To enable drawing tools just put a tick in the checkbox below.', INTERGEO_PLUGIN_NAME ) ?>
|
6 |
+
</p>
|
7 |
+
<p class="intergeo_tlbr_grp_dsc">
|
8 |
+
<?php esc_html_e( 'To delete a marker, just double click on it and an item will be removed.', INTERGEO_PLUGIN_NAME ) ?>
|
9 |
+
</p>
|
10 |
+
</li>
|
11 |
+
<li class="intergeo_tlbr_ul_li_ul_li">
|
12 |
+
<div class="intergeo_tlbr_cntrl_items" style="display:block">
|
13 |
+
<div class="intergeo_tlbr_cntrl_item">
|
14 |
+
<label>
|
15 |
+
<input type="checkbox" id="intergeo_tlbr_drawing_tools">
|
16 |
+
<?php esc_html_e( 'Enable drawing tools', INTERGEO_PLUGIN_NAME ) ?>
|
17 |
+
</label>
|
18 |
+
</div>
|
19 |
+
</div>
|
20 |
+
</li>
|
21 |
+
<li class="intergeo_tlbr_ul_li_ul_li">
|
22 |
+
<script id="intergeo_tlbr_marker_tmpl" type="text/html">
|
23 |
+
<table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_marker" border="0" cellspacing="0" cellpadding="0">
|
24 |
+
<tr>
|
25 |
+
<td class="intergeo_tlbr_marker_title_td">
|
26 |
+
#%num% <?php esc_html_e( 'marker', INTERGEO_PLUGIN_NAME ) ?>
|
27 |
+
</td>
|
28 |
+
<td>
|
29 |
+
<input type="hidden" class="intergeo_tlbr_marker_location" name="overlays_marker[%pos%][position]" data-position="%pos%">
|
30 |
+
<input type="hidden" class="intergeo_tlbr_marker_title" name="overlays_marker[%pos%][title]">
|
31 |
+
<input type="hidden" class="intergeo_tlbr_marker_icon" name="overlays_marker[%pos%][icon]">
|
32 |
+
<input type="hidden" class="intergeo_tlbr_marker_info" name="overlays_marker[%pos%][info]">
|
33 |
+
|
34 |
+
<a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete marker', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
35 |
+
<a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit marker', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
36 |
+
</td>
|
37 |
+
</tr>
|
38 |
+
</table>
|
39 |
+
</script>
|
40 |
+
|
41 |
+
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Markers', INTERGEO_PLUGIN_NAME ) ?></span>
|
42 |
+
<div id="intergeo_tlbr_markers" class="intergeo_tlbr_cntrl_items">
|
43 |
+
<?php if ( !empty( $json['overlays']['marker'] ) ) : ?>
|
44 |
+
<?php foreach ( $json['overlays']['marker'] as $i => $overlay ) : ?>
|
45 |
+
<table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_marker" border="0" cellspacing="0" cellpadding="0">
|
46 |
+
<tr>
|
47 |
+
<td class="intergeo_tlbr_marker_title_td">
|
48 |
+
<?php if ( empty( $overlay['title'] ) ) : ?>
|
49 |
+
#<?php echo $i + 1 ?> <?php esc_html_e( 'marker', INTERGEO_PLUGIN_NAME ) ?>
|
50 |
+
<?php else : ?>
|
51 |
+
<?php echo esc_html( $overlay['title'] ) ?>
|
52 |
+
<?php endif; ?>
|
53 |
+
</td>
|
54 |
+
<td>
|
55 |
+
<input type="hidden" class="intergeo_tlbr_marker_location" name="overlays_marker[<?php echo $i ?>][position]" value="<?php echo esc_attr( implode( ',', $overlay['position'] ) ) ?>" data-position="<?php echo $i ?>">
|
56 |
+
<input type="hidden" class="intergeo_tlbr_marker_title" name="overlays_marker[<?php echo $i ?>][title]" value="<?php echo esc_attr( $overlay['title'] ) ?>">
|
57 |
+
<input type="hidden" class="intergeo_tlbr_marker_icon" name="overlays_marker[<?php echo $i ?>][icon]" value="<?php echo esc_attr( $overlay['icon'] ) ?>">
|
58 |
+
<input type="hidden" class="intergeo_tlbr_marker_info" name="overlays_marker[<?php echo $i ?>][info]" value="<?php echo esc_attr( $overlay['info'] ) ?>">
|
59 |
+
|
60 |
+
<a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete marker', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
61 |
+
<a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit marker', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
62 |
+
</td>
|
63 |
+
</tr>
|
64 |
+
</table>
|
65 |
+
<?php endforeach; ?>
|
66 |
+
<?php endif; ?>
|
67 |
+
</div>
|
68 |
+
</li>
|
69 |
+
<li class="intergeo_tlbr_ul_li_ul_li">
|
70 |
+
<script id="intergeo_tlbr_polyline_tmpl" type="text/html">
|
71 |
+
<table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_polyline" border="0" cellspacing="0" cellpadding="0">
|
72 |
+
<tr>
|
73 |
+
<td>
|
74 |
+
#%num% <?php esc_html_e( 'polyline', INTERGEO_PLUGIN_NAME ) ?>
|
75 |
+
</td>
|
76 |
+
<td>
|
77 |
+
<input type="hidden" class="intergeo_tlbr_polyline_path" name="overlays_polyline[%pos%][path]" data-position="%pos%">
|
78 |
+
<input type="hidden" class="intergeo_tlbr_polyline_weight" name="overlays_polyline[%pos%][weight]">
|
79 |
+
<input type="hidden" class="intergeo_tlbr_polyline_opacity" name="overlays_polyline[%pos%][opacity]">
|
80 |
+
<input type="hidden" class="intergeo_tlbr_polyline_color" name="overlays_polyline[%pos%][color]">
|
81 |
+
|
82 |
+
<a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete polyline', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
83 |
+
<a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit polyline', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
84 |
+
|
85 |
+
<span class="intergeo_tlbr_clr_prvw" style="background-color:black;"></span>
|
86 |
+
</td>
|
87 |
+
</tr>
|
88 |
+
</table>
|
89 |
+
</script>
|
90 |
+
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Polylines', INTERGEO_PLUGIN_NAME ) ?></span>
|
91 |
+
<div id="intergeo_tlbr_polylines" class="intergeo_tlbr_cntrl_items"><?php
|
92 |
+
if ( !empty( $json['overlays']['polyline'] ) ) :
|
93 |
+
$i = 0;
|
94 |
+
foreach ( $json['overlays']['polyline'] as $overlay ) :
|
95 |
+
$path = array();
|
96 |
+
foreach( $overlay['path'] as $point ) :
|
97 |
+
$path[] = implode( ',', $point );
|
98 |
+
endforeach; ?>
|
99 |
+
<table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_polyline" border="0" cellspacing="0" cellpadding="0">
|
100 |
+
<tr>
|
101 |
+
<td>
|
102 |
+
#<?php echo $i + 1 ?> <?php esc_html_e( 'polyline', INTERGEO_PLUGIN_NAME ) ?>
|
103 |
+
</td>
|
104 |
+
<td>
|
105 |
+
<input type="hidden" class="intergeo_tlbr_polyline_path" name="overlays_polyline[<?php echo $i ?>][path]" value="<?php echo implode( ';', $path ) ?>" data-position="<?php echo $i ?>">
|
106 |
+
<input type="hidden" class="intergeo_tlbr_polyline_weight" name="overlays_polyline[<?php echo $i ?>][weight]" value="<?php echo esc_attr( $overlay['weight'] ) ?>">
|
107 |
+
<input type="hidden" class="intergeo_tlbr_polyline_opacity" name="overlays_polyline[<?php echo $i ?>][opacity]" value="<?php echo esc_attr( $overlay['opacity'] ) ?>">
|
108 |
+
<input type="hidden" class="intergeo_tlbr_polyline_color" name="overlays_polyline[<?php echo $i++ ?>][color]" value="<?php echo esc_attr( $overlay['color'] ) ?>">
|
109 |
+
|
110 |
+
<a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete polyline', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
111 |
+
<a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit polyline', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
112 |
+
|
113 |
+
<span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['color'] ) ?>;opacity:<?php echo esc_attr( $overlay['opacity'] ) ?>"></span>
|
114 |
+
</td>
|
115 |
+
</tr>
|
116 |
+
</table>
|
117 |
+
<?php endforeach; ?>
|
118 |
+
<?php endif; ?>
|
119 |
+
</div>
|
120 |
+
</li>
|
121 |
+
<li class="intergeo_tlbr_ul_li_ul_li">
|
122 |
+
<script id="intergeo_tlbr_rectangle_tmpl" type="text/html">
|
123 |
+
<table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_rectangle" border="0" cellspacing="0" cellpadding="0">
|
124 |
+
<tr>
|
125 |
+
<td>
|
126 |
+
#%num% <?php esc_html_e( 'rectangle', INTERGEO_PLUGIN_NAME ) ?>
|
127 |
+
</td>
|
128 |
+
<td>
|
129 |
+
<input type="hidden" class="intergeo_tlbr_rectangle_path" name="overlays_rectangle[%pos%][path]" data-position="%pos%">
|
130 |
+
<input type="hidden" class="intergeo_tlbr_rectangle_weight" name="overlays_rectangle[%pos%][weight]">
|
131 |
+
<input type="hidden" class="intergeo_tlbr_rectangle_stroke_opacity" name="overlays_rectangle[%pos%][stroke_opacity]">
|
132 |
+
<input type="hidden" class="intergeo_tlbr_rectangle_position" name="overlays_rectangle[%pos%][position]">
|
133 |
+
<input type="hidden" class="intergeo_tlbr_rectangle_stroke_color" name="overlays_rectangle[%pos%][stroke_color]">
|
134 |
+
<input type="hidden" class="intergeo_tlbr_rectangle_fill_opacity" name="overlays_rectangle[%pos%][fill_opacity]">
|
135 |
+
<input type="hidden" class="intergeo_tlbr_rectangle_fill_color" name="overlays_rectangle[%pos%][fill_color]">
|
136 |
+
|
137 |
+
<a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete rectangle', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
138 |
+
<a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit rectangle', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
139 |
+
|
140 |
+
<span class="intergeo_tlbr_clr_prvw" style="background-color:black;opacity:0.3;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=30)';filter:alpha(opacity=30);"></span>
|
141 |
+
<span class="intergeo_tlbr_clr_prvw" style="background-color:black;"></span>
|
142 |
+
</td>
|
143 |
+
</tr>
|
144 |
+
</table>
|
145 |
+
</script>
|
146 |
+
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Rectangles', INTERGEO_PLUGIN_NAME ) ?></span>
|
147 |
+
<div id="intergeo_tlbr_rectangles" class="intergeo_tlbr_cntrl_items"><?php
|
148 |
+
if ( !empty( $json['overlays']['rectangle'] ) ) :
|
149 |
+
$i = 0;
|
150 |
+
foreach ( $json['overlays']['rectangle'] as $overlay ) :
|
151 |
+
|
152 |
+
$fill_opacity = "opacity:0.3;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=30)';filter:alpha(opacity=30);";
|
153 |
+
if ( is_numeric( $overlay['fill_opacity'] ) ) {
|
154 |
+
$opacity = floatval( $overlay['fill_opacity'] );
|
155 |
+
$fill_opacity = sprintf( "opacity:%1\$.2f;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=%2\$u)';filter:alpha(opacity=%2\$u);", $opacity, $opacity * 100 );
|
156 |
+
}
|
157 |
+
|
158 |
+
$stroke_opacity = '';
|
159 |
+
if ( is_numeric( $overlay['stroke_opacity'] ) ) {
|
160 |
+
$opacity = floatval( $overlay['stroke_opacity'] );
|
161 |
+
$stroke_opacity = sprintf( "opacity:%1\$f;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=%2\$u)';filter:alpha(opacity=%2\$u);", $opacity, $opacity * 100 );
|
162 |
+
}
|
163 |
+
|
164 |
+
$path = array();
|
165 |
+
foreach( $overlay['path'] as $point ) :
|
166 |
+
$path[] = implode( ',', $point );
|
167 |
+
endforeach; ?>
|
168 |
+
<table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_rectangle" border="0" cellspacing="0" cellpadding="0">
|
169 |
+
<tr>
|
170 |
+
<td>
|
171 |
+
#<?php echo $i + 1 ?> <?php esc_html_e( 'rectangle', INTERGEO_PLUGIN_NAME ) ?>
|
172 |
+
</td>
|
173 |
+
<td>
|
174 |
+
<input type="hidden" class="intergeo_tlbr_rectangle_path" name="overlays_rectangle[<?php echo $i ?>][path]" value="<?php echo implode( ';', $path ) ?>" data-position="<?php echo $i ?>">
|
175 |
+
<input type="hidden" class="intergeo_tlbr_rectangle_weight" name="overlays_rectangle[<?php echo $i ?>][weight]" value="<?php echo esc_attr( $overlay['weight'] ) ?>">
|
176 |
+
<input type="hidden" class="intergeo_tlbr_rectangle_stroke_opacity" name="overlays_rectangle[<?php echo $i ?>][stroke_opacity]" value="<?php echo esc_attr( $overlay['stroke_opacity'] ) ?>">
|
177 |
+
<input type="hidden" class="intergeo_tlbr_rectangle_position" name="overlays_rectangle[<?php echo $i ?>][position]" value="<?php echo esc_attr( $overlay['position'] ) ?>">
|
178 |
+
<input type="hidden" class="intergeo_tlbr_rectangle_stroke_color" name="overlays_rectangle[<?php echo $i ?>][stroke_color]" value="<?php echo esc_attr( $overlay['stroke_color'] ) ?>">
|
179 |
+
<input type="hidden" class="intergeo_tlbr_rectangle_fill_opacity" name="overlays_rectangle[<?php echo $i ?>][fill_opacity]" value="<?php echo esc_attr( $overlay['fill_opacity'] ) ?>">
|
180 |
+
<input type="hidden" class="intergeo_tlbr_rectangle_fill_color" name="overlays_rectangle[<?php echo $i++ ?>][fill_color]" value="<?php echo esc_attr( $overlay['fill_color'] ) ?>">
|
181 |
+
|
182 |
+
<a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete rectangle', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
183 |
+
<a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit rectangle', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
184 |
+
|
185 |
+
<span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['fill_color'] ) ?>;<?php echo $fill_opacity ?>"></span>
|
186 |
+
<span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['stroke_color'] ) ?>;<?php echo $stroke_opacity ?>"></span>
|
187 |
+
</td>
|
188 |
+
</tr>
|
189 |
+
</table>
|
190 |
+
<?php endforeach; ?>
|
191 |
+
<?php endif; ?>
|
192 |
+
</div>
|
193 |
+
</li>
|
194 |
+
<li class="intergeo_tlbr_ul_li_ul_li">
|
195 |
+
<script id="intergeo_tlbr_circle_tmpl" type="text/html">
|
196 |
+
<table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_circle" border="0" cellspacing="0" cellpadding="0">
|
197 |
+
<tr>
|
198 |
+
<td>
|
199 |
+
#%num% <?php esc_html_e( 'circle', INTERGEO_PLUGIN_NAME ) ?>
|
200 |
+
</td>
|
201 |
+
<td>
|
202 |
+
<input type="hidden" class="intergeo_tlbr_circle_path" name="overlays_circle[%pos%][path]" data-position="%pos%">
|
203 |
+
<input type="hidden" class="intergeo_tlbr_circle_weight" name="overlays_circle[%pos%][weight]">
|
204 |
+
<input type="hidden" class="intergeo_tlbr_circle_stroke_opacity" name="overlays_circle[%pos%][stroke_opacity]">
|
205 |
+
<input type="hidden" class="intergeo_tlbr_circle_position" name="overlays_circle[%pos%][position]">
|
206 |
+
<input type="hidden" class="intergeo_tlbr_circle_stroke_color" name="overlays_circle[%pos%][stroke_color]">
|
207 |
+
<input type="hidden" class="intergeo_tlbr_circle_fill_opacity" name="overlays_circle[%pos%][fill_opacity]">
|
208 |
+
<input type="hidden" class="intergeo_tlbr_circle_fill_color" name="overlays_circle[%pos%][fill_color]">
|
209 |
+
|
210 |
+
<a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete rectangle', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
211 |
+
<a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit rectangle', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
212 |
+
|
213 |
+
<span class="intergeo_tlbr_clr_prvw" style="background-color:black;opacity:0.3;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=30)';filter:alpha(opacity=30);"></span>
|
214 |
+
<span class="intergeo_tlbr_clr_prvw" style="background-color:black;"></span>
|
215 |
+
</td>
|
216 |
+
</tr>
|
217 |
+
</table>
|
218 |
+
</script>
|
219 |
+
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Circles', INTERGEO_PLUGIN_NAME ) ?></span>
|
220 |
+
<div id="intergeo_tlbr_circles" class="intergeo_tlbr_cntrl_items"><?php
|
221 |
+
if ( !empty( $json['overlays']['circle'] ) ) :
|
222 |
+
$i = 0;
|
223 |
+
foreach ( $json['overlays']['circle'] as $overlay ) :
|
224 |
+
|
225 |
+
$fill_opacity = "opacity:0.3;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=30)';filter:alpha(opacity=30);";
|
226 |
+
if ( is_numeric( $overlay['fill_opacity'] ) ) {
|
227 |
+
$opacity = floatval( $overlay['fill_opacity'] );
|
228 |
+
$fill_opacity = sprintf( "opacity:%1\$.2f;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=%2\$u)';filter:alpha(opacity=%2\$u);", $opacity, $opacity * 100 );
|
229 |
+
}
|
230 |
+
|
231 |
+
$stroke_opacity = '';
|
232 |
+
if ( is_numeric( $overlay['stroke_opacity'] ) ) {
|
233 |
+
$opacity = floatval( $overlay['stroke_opacity'] );
|
234 |
+
$stroke_opacity = sprintf( "opacity:%1\$f;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=%2\$u)';filter:alpha(opacity=%2\$u);", $opacity, $opacity * 100 );
|
235 |
+
}
|
236 |
+
|
237 |
+
$path = array();
|
238 |
+
foreach( $overlay['path'] as $point ) :
|
239 |
+
$path[] = implode( ',', $point );
|
240 |
+
endforeach; ?>
|
241 |
+
<table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_circle" border="0" cellspacing="0" cellpadding="0">
|
242 |
+
<tr>
|
243 |
+
<td>
|
244 |
+
#<?php echo $i + 1 ?> <?php esc_html_e( 'circle', INTERGEO_PLUGIN_NAME ) ?>
|
245 |
+
</td>
|
246 |
+
<td>
|
247 |
+
<input type="hidden" class="intergeo_tlbr_circle_path" name="overlays_circle[<?php echo $i ?>][path]" value="<?php echo implode( ';', $path ) ?>" data-position="<?php echo $i ?>">
|
248 |
+
<input type="hidden" class="intergeo_tlbr_circle_weight" name="overlays_circle[<?php echo $i ?>][weight]" value="<?php echo esc_attr( $overlay['weight'] ) ?>">
|
249 |
+
<input type="hidden" class="intergeo_tlbr_circle_stroke_opacity" name="overlays_circle[<?php echo $i ?>][stroke_opacity]" value="<?php echo esc_attr( $overlay['stroke_opacity'] ) ?>">
|
250 |
+
<input type="hidden" class="intergeo_tlbr_circle_position" name="overlays_circle[<?php echo $i ?>][position]" value="<?php echo esc_attr( $overlay['position'] ) ?>">
|
251 |
+
<input type="hidden" class="intergeo_tlbr_circle_stroke_color" name="overlays_circle[<?php echo $i ?>][stroke_color]" value="<?php echo esc_attr( $overlay['stroke_color'] ) ?>">
|
252 |
+
<input type="hidden" class="intergeo_tlbr_circle_fill_opacity" name="overlays_circle[<?php echo $i ?>][fill_opacity]" value="<?php echo esc_attr( $overlay['fill_opacity'] ) ?>">
|
253 |
+
<input type="hidden" class="intergeo_tlbr_circle_fill_color" name="overlays_circle[<?php echo $i++ ?>][fill_color]" value="<?php echo esc_attr( $overlay['fill_color'] ) ?>">
|
254 |
+
|
255 |
+
<a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete circle', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
256 |
+
<a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit circle', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
257 |
+
|
258 |
+
<span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['fill_color'] ) ?>;<?php echo $fill_opacity ?>"></span>
|
259 |
+
<span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['stroke_color'] ) ?>;<?php echo $stroke_opacity ?>"></span>
|
260 |
+
</td>
|
261 |
+
</tr>
|
262 |
+
</table>
|
263 |
+
<?php endforeach; ?>
|
264 |
+
<?php endif; ?>
|
265 |
+
</div>
|
266 |
+
</li>
|
267 |
+
<li class="intergeo_tlbr_ul_li_ul_li">
|
268 |
+
<script id="intergeo_tlbr_polygon_tmpl" type="text/html">
|
269 |
+
<table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_polygon" border="0" cellspacing="0" cellpadding="0">
|
270 |
+
<tr>
|
271 |
+
<td>
|
272 |
+
#%num% <?php esc_html_e( 'polygon', INTERGEO_PLUGIN_NAME ) ?>
|
273 |
+
</td>
|
274 |
+
<td>
|
275 |
+
<input type="hidden" class="intergeo_tlbr_polygon_path" name="overlays_polygon[%pos%][path]" data-position="%pos%">
|
276 |
+
<input type="hidden" class="intergeo_tlbr_polygon_weight" name="overlays_polygon[%pos%][weight]">
|
277 |
+
<input type="hidden" class="intergeo_tlbr_polygon_stroke_opacity" name="overlays_polygon[%pos%][stroke_opacity]">
|
278 |
+
<input type="hidden" class="intergeo_tlbr_polygon_position" name="overlays_polygon[%pos%][position]">
|
279 |
+
<input type="hidden" class="intergeo_tlbr_polygon_stroke_color" name="overlays_polygon[%pos%][stroke_color]">
|
280 |
+
<input type="hidden" class="intergeo_tlbr_polygon_fill_opacity" name="overlays_polygon[%pos%][fill_opacity]">
|
281 |
+
<input type="hidden" class="intergeo_tlbr_polygon_fill_color" name="overlays_polygon[%pos%][fill_color]">
|
282 |
+
|
283 |
+
<a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete polygon', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
284 |
+
<a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit polygon', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
285 |
+
|
286 |
+
<span class="intergeo_tlbr_clr_prvw" style="background-color:black;opacity:0.3;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=30)';filter:alpha(opacity=30);"></span>
|
287 |
+
<span class="intergeo_tlbr_clr_prvw" style="background-color:black;"></span>
|
288 |
+
</td>
|
289 |
+
</tr>
|
290 |
+
</table>
|
291 |
+
</script>
|
292 |
+
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Polygons', INTERGEO_PLUGIN_NAME ) ?></span>
|
293 |
+
<div id="intergeo_tlbr_polygons" class="intergeo_tlbr_cntrl_items"><?php
|
294 |
+
if ( !empty( $json['overlays']['polygon'] ) ) :
|
295 |
+
$i = 0;
|
296 |
+
foreach ( $json['overlays']['polygon'] as $overlay ) :
|
297 |
+
|
298 |
+
$fill_opacity = "opacity:0.3;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=30)';filter:alpha(opacity=30);";
|
299 |
+
if ( is_numeric( $overlay['fill_opacity'] ) ) {
|
300 |
+
$opacity = floatval( $overlay['fill_opacity'] );
|
301 |
+
$fill_opacity = sprintf( "opacity:%1\$.2f;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=%2\$u)';filter:alpha(opacity=%2\$u);", $opacity, $opacity * 100 );
|
302 |
+
}
|
303 |
+
|
304 |
+
$stroke_opacity = '';
|
305 |
+
if ( is_numeric( $overlay['stroke_opacity'] ) ) {
|
306 |
+
$opacity = floatval( $overlay['stroke_opacity'] );
|
307 |
+
$stroke_opacity = sprintf( "opacity:%1\$f;-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=%2\$u)';filter:alpha(opacity=%2\$u);", $opacity, $opacity * 100 );
|
308 |
+
}
|
309 |
+
|
310 |
+
$path = array();
|
311 |
+
foreach( $overlay['path'] as $point ) :
|
312 |
+
$path[] = implode( ',', $point );
|
313 |
+
endforeach; ?>
|
314 |
+
<table class="intergeo_tlbr_cntrl_tbl intergeo_tlbr_overlay intergeo_tlbr_polygon" border="0" cellspacing="0" cellpadding="0">
|
315 |
+
<tr>
|
316 |
+
<td>
|
317 |
+
#<?php echo $i + 1 ?> <?php esc_html_e( 'polygon', INTERGEO_PLUGIN_NAME ) ?>
|
318 |
+
</td>
|
319 |
+
<td>
|
320 |
+
<input type="hidden" class="intergeo_tlbr_polygon_path" name="overlays_polygon[<?php echo $i ?>][path]" value="<?php echo implode( ';', $path ) ?>" data-position="<?php echo $i ?>">
|
321 |
+
<input type="hidden" class="intergeo_tlbr_polygon_weight" name="overlays_polygon[<?php echo $i ?>][weight]" value="<?php echo esc_attr( $overlay['weight'] ) ?>">
|
322 |
+
<input type="hidden" class="intergeo_tlbr_polygon_stroke_opacity" name="overlays_polygon[<?php echo $i ?>][stroke_opacity]" value="<?php echo esc_attr( $overlay['stroke_opacity'] ) ?>">
|
323 |
+
<input type="hidden" class="intergeo_tlbr_polygon_position" name="overlays_polygon[<?php echo $i ?>][position]" value="<?php echo esc_attr( $overlay['position'] ) ?>">
|
324 |
+
<input type="hidden" class="intergeo_tlbr_polygon_stroke_color" name="overlays_polygon[<?php echo $i ?>][stroke_color]" value="<?php echo esc_attr( $overlay['stroke_color'] ) ?>">
|
325 |
+
<input type="hidden" class="intergeo_tlbr_polygon_fill_opacity" name="overlays_polygon[<?php echo $i ?>][fill_opacity]" value="<?php echo esc_attr( $overlay['fill_opacity'] ) ?>">
|
326 |
+
<input type="hidden" class="intergeo_tlbr_polygon_fill_color" name="overlays_polygon[<?php echo $i++ ?>][fill_color]" value="<?php echo esc_attr( $overlay['fill_color'] ) ?>">
|
327 |
+
|
328 |
+
<a class="intergeo_tlbr_actn_delete intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Delete polygon', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
329 |
+
<a class="intergeo_tlbr_actn_edit intergeo_tlbr_actn" href="javascript:;" title="<?php esc_attr_e( 'Edit polygon', INTERGEO_PLUGIN_NAME ) ?>"></a>
|
330 |
+
|
331 |
+
<span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['fill_color'] ) ?>;<?php echo $fill_opacity ?>"></span>
|
332 |
+
<span class="intergeo_tlbr_clr_prvw" style="background-color:<?php echo esc_attr( $overlay['stroke_color'] ) ?>;<?php echo $stroke_opacity ?>"></span>
|
333 |
+
</td>
|
334 |
+
</tr>
|
335 |
+
</table>
|
336 |
+
<?php endforeach; ?>
|
337 |
+
<?php endif; ?>
|
338 |
+
</div>
|
339 |
+
</li>
|
340 |
</ul>
|
templates/iframe/popups.php
CHANGED
@@ -1,204 +1,204 @@
|
|
1 |
-
<div id="intergeo_address_ppp" class="intergeo_ppp">
|
2 |
-
<form class="intergeo_ppp_frm">
|
3 |
-
<div class="intergeo_ppp_ttl">
|
4 |
-
<a class="intergeo_ppp_cls" href="javascript:;"></a>
|
5 |
-
<?php esc_html_e( 'Go To Address', INTERGEO_PLUGIN_NAME ) ?>
|
6 |
-
</div>
|
7 |
-
<table class="intergeo_ppp_tbl" cellspacing="0" cellpadding="0" border="0">
|
8 |
-
<tr>
|
9 |
-
<td>
|
10 |
-
<input type="text" class="intergeo_ppp_txt" placeholder="<?php esc_attr_e( 'Type an address you want to go to', INTERGEO_PLUGIN_NAME ) ?>">
|
11 |
-
</td>
|
12 |
-
<td style="width:40px;text-align:right">
|
13 |
-
<button type="submit" class="button button-primary"><?php esc_html_e( 'Go', INTERGEO_PLUGIN_NAME ) ?></button>
|
14 |
-
</td>
|
15 |
-
</tr>
|
16 |
-
</table>
|
17 |
-
</form>
|
18 |
-
</div>
|
19 |
-
|
20 |
-
<div id="intergeo_marker_ppp" class="intergeo_ppp">
|
21 |
-
<form class="intergeo_ppp_frm intregeo_ppp_frm_overlay" data-position="" data-target="markers">
|
22 |
-
<div class="intergeo_ppp_ttl">
|
23 |
-
<a class="intergeo_ppp_cls" href="javascript:;"></a>
|
24 |
-
<?php esc_html_e( 'Marker Options', INTERGEO_PLUGIN_NAME ) ?>
|
25 |
-
</div>
|
26 |
-
<table class="intergeo_ppp_tbl" cellspacing="0" cellpadding="0" border="0">
|
27 |
-
<tr>
|
28 |
-
<td>
|
29 |
-
<input type="text"
|
30 |
-
class="intergeo_tlbr_marker_title intergeo_tlbr_cntrl_txt"
|
31 |
-
placeholder="<?php esc_attr_e( 'Enter title', INTERGEO_PLUGIN_NAME ) ?>"
|
32 |
-
title="<?php esc_attr_e( 'Enter title', INTERGEO_PLUGIN_NAME ) ?>">
|
33 |
-
</td>
|
34 |
-
</tr>
|
35 |
-
<tr>
|
36 |
-
<td>
|
37 |
-
<input type="text"
|
38 |
-
class="intergeo_tlbr_marker_icon intergeo_tlbr_cntrl_txt"
|
39 |
-
placeholder="<?php esc_attr_e( 'Enter icon URL', INTERGEO_PLUGIN_NAME ) ?>"
|
40 |
-
title="<?php esc_attr_e( 'Enter icon URL', INTERGEO_PLUGIN_NAME ) ?>">
|
41 |
-
</td>
|
42 |
-
</tr>
|
43 |
-
<tr>
|
44 |
-
<td>
|
45 |
-
<textarea cols="20" rows="5"
|
46 |
-
class="intergeo_tlbr_marker_info intergeo_tlbr_cntrl_txt"
|
47 |
-
title="<?php esc_attr_e( 'Enter html for info window', INTERGEO_PLUGIN_NAME ) ?>"
|
48 |
-
placeholder="<?php esc_attr_e( 'Enter html for info window', INTERGEO_PLUGIN_NAME ) ?>"
|
49 |
-
></textarea>
|
50 |
-
</td>
|
51 |
-
</tr>
|
52 |
-
<tr>
|
53 |
-
<td>
|
54 |
-
<input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Update', INTERGEO_PLUGIN_NAME ) ?>">
|
55 |
-
</td>
|
56 |
-
</tr>
|
57 |
-
</table>
|
58 |
-
</form>
|
59 |
-
</div>
|
60 |
-
|
61 |
-
<div id="intergeo_polyline_ppp" class="intergeo_ppp">
|
62 |
-
<form class="intergeo_ppp_frm intregeo_ppp_frm_overlay" data-position="" data-target="polyline">
|
63 |
-
<div class="intergeo_ppp_ttl">
|
64 |
-
<a class="intergeo_ppp_cls" href="javascript:;"></a>
|
65 |
-
<?php esc_html_e( 'Polyline Options', INTERGEO_PLUGIN_NAME ) ?>
|
66 |
-
</div>
|
67 |
-
<table class="intergeo_ppp_tbl" cellspacing="0" cellpadding="0" border="0">
|
68 |
-
<tr>
|
69 |
-
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
70 |
-
<input type="text"
|
71 |
-
class="intergeo_tlbr_polyline_weight intergeo_tlbr_cntrl_txt"
|
72 |
-
placeholder="<?php esc_attr_e( 'Stroke weight in pixel', INTERGEO_PLUGIN_NAME ) ?>"
|
73 |
-
title="<?php esc_attr_e( 'Stroke weight in pixel', INTERGEO_PLUGIN_NAME ) ?>">
|
74 |
-
</td>
|
75 |
-
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
76 |
-
<input type="text"
|
77 |
-
class="intergeo_tlbr_polyline_opacity intergeo_tlbr_cntrl_txt"
|
78 |
-
placeholder="<?php esc_attr_e( 'Stroke opacity from 0.0 to 1.0', INTERGEO_PLUGIN_NAME ) ?>"
|
79 |
-
title="<?php esc_attr_e( 'Stroke opacity from 0.0 to 1.0', INTERGEO_PLUGIN_NAME ) ?>">
|
80 |
-
</td>
|
81 |
-
</tr>
|
82 |
-
<tr>
|
83 |
-
<td colspan="2">
|
84 |
-
<input type="text" class="intergeo_tlbr_polyline_color intergeo_tlbr_clr" maxlength="7" data-default-color="#000000">
|
85 |
-
</td>
|
86 |
-
</tr>
|
87 |
-
<tr>
|
88 |
-
<td colspan="2">
|
89 |
-
<input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Update', INTERGEO_PLUGIN_NAME ) ?>">
|
90 |
-
</td>
|
91 |
-
</tr>
|
92 |
-
</table>
|
93 |
-
</form>
|
94 |
-
</div>
|
95 |
-
|
96 |
-
<div id="intergeo_polyoverlay_ppp" class="intergeo_ppp">
|
97 |
-
<form class="intergeo_ppp_frm intregeo_ppp_frm_overlay" data-position="" data-target="">
|
98 |
-
<div class="intergeo_ppp_ttl">
|
99 |
-
<a class="intergeo_ppp_cls" href="javascript:;"></a>
|
100 |
-
<?php esc_html_e( 'Polygon Options', INTERGEO_PLUGIN_NAME ) ?>
|
101 |
-
</div>
|
102 |
-
<table class="intergeo_ppp_tbl" cellspacing="0" cellpadding="0" border="0">
|
103 |
-
<tr>
|
104 |
-
<td colspan="2">
|
105 |
-
<b><?php esc_html_e( 'Stroke options', INTERGEO_PLUGIN_NAME ) ?></b>
|
106 |
-
</td>
|
107 |
-
</tr>
|
108 |
-
<tr>
|
109 |
-
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
110 |
-
<input type="text"
|
111 |
-
class="intergeo_tlbr_polyoverlay_weight intergeo_tlbr_cntrl_txt"
|
112 |
-
placeholder="<?php esc_attr_e( 'Stroke weight in pixel', INTERGEO_PLUGIN_NAME ) ?>"
|
113 |
-
title="<?php esc_attr_e( 'Stroke weight in pixel', INTERGEO_PLUGIN_NAME ) ?>">
|
114 |
-
</td>
|
115 |
-
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
116 |
-
<input type="text"
|
117 |
-
class="intergeo_tlbr_polyoverlay_stroke_opacity intergeo_tlbr_cntrl_txt"
|
118 |
-
placeholder="<?php esc_attr_e( 'Stroke opacity from 0.0 to 1.0', INTERGEO_PLUGIN_NAME ) ?>"
|
119 |
-
title="<?php esc_attr_e( 'Stroke opacity from 0.0 to 1.0', INTERGEO_PLUGIN_NAME ) ?>">
|
120 |
-
</td>
|
121 |
-
</tr>
|
122 |
-
<tr>
|
123 |
-
<td colspan="2">
|
124 |
-
<select class="intergeo_tlbr_polyoverlay_position intergeo_tlbr_cntrl_slct">
|
125 |
-
<option value=""><?php esc_html_e( 'stroke position', INTERGEO_PLUGIN_NAME ) ?></option>
|
126 |
-
<option value="CENTER"><?php esc_html_e( 'center', INTERGEO_PLUGIN_NAME ) ?></option>
|
127 |
-
<option value="INSIDE"><?php esc_html_e( 'inside the object', INTERGEO_PLUGIN_NAME ) ?></option>
|
128 |
-
<option value="OUTSIDE"><?php esc_html_e( 'outside the object', INTERGEO_PLUGIN_NAME ) ?></option>
|
129 |
-
</select>
|
130 |
-
</td>
|
131 |
-
</tr>
|
132 |
-
<tr>
|
133 |
-
<td colspan="2">
|
134 |
-
<input type="text" class="intergeo_tlbr_polyoverlay_stroke_color intergeo_tlbr_clr" maxlength="7" data-default-color="#000000">
|
135 |
-
</td>
|
136 |
-
</tr>
|
137 |
-
<tr>
|
138 |
-
<td colspan="2">
|
139 |
-
<b><?php esc_html_e( 'Fill options', INTERGEO_PLUGIN_NAME ) ?></b>
|
140 |
-
</td>
|
141 |
-
</tr>
|
142 |
-
<tr>
|
143 |
-
<td colspan="2">
|
144 |
-
<input type="text"
|
145 |
-
class="intergeo_tlbr_polyoverlay_fill_opacity intergeo_tlbr_cntrl_txt"
|
146 |
-
placeholder="<?php esc_attr_e( 'Fill opacity from 0.0 to 1.0', INTERGEO_PLUGIN_NAME ) ?>"
|
147 |
-
title="<?php esc_attr_e( 'Fill opacity from 0.0 to 1.0', INTERGEO_PLUGIN_NAME ) ?>">
|
148 |
-
</td>
|
149 |
-
</tr>
|
150 |
-
<tr>
|
151 |
-
<td colspan="2">
|
152 |
-
<input type="text" class="intergeo_tlbr_polyoverlay_fill_color intergeo_tlbr_clr" maxlength="7" data-default-color="#000000">
|
153 |
-
</td>
|
154 |
-
</tr>
|
155 |
-
<tr>
|
156 |
-
<td colspan="2">
|
157 |
-
<input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Update', INTERGEO_PLUGIN_NAME ) ?>">
|
158 |
-
</td>
|
159 |
-
</tr>
|
160 |
-
</table>
|
161 |
-
</form>
|
162 |
-
</div>
|
163 |
-
|
164 |
-
<div id="intergeo_drctn_ppp" class="intergeo_ppp">
|
165 |
-
<form class="intergeo_ppp_frm intregeo_ppp_frm_overlay" data-position="" data-target="direction">
|
166 |
-
<div class="intergeo_ppp_ttl">
|
167 |
-
<a class="intergeo_ppp_cls" href="javascript:;"></a>
|
168 |
-
<?php esc_html_e( 'Direction Options', INTERGEO_PLUGIN_NAME ) ?>
|
169 |
-
</div>
|
170 |
-
<table class="intergeo_ppp_tbl" cellspacing="0" cellpadding="0" border="0">
|
171 |
-
<tr>
|
172 |
-
<td>
|
173 |
-
<input type="text"
|
174 |
-
id="intergeo_ppp_drctn_from" class="intergeo_tlbr_cntrl_txt"
|
175 |
-
title="<?php esc_attr_e( 'The start location from which to calculate directions', INTERGEO_PLUGIN_NAME ) ?>"
|
176 |
-
placeholder="<?php esc_attr_e( 'The start location from which to calculate directions', INTERGEO_PLUGIN_NAME ) ?>">
|
177 |
-
</td>
|
178 |
-
</tr>
|
179 |
-
<tr>
|
180 |
-
<td>
|
181 |
-
<input type="text"
|
182 |
-
id="intergeo_ppp_drctn_to" class="intergeo_tlbr_cntrl_txt"
|
183 |
-
title="<?php esc_attr_e( 'The end location to which to calculate directions', INTERGEO_PLUGIN_NAME ) ?>"
|
184 |
-
placeholder="<?php esc_attr_e( 'The end location to which to calculate directions', INTERGEO_PLUGIN_NAME ) ?>">
|
185 |
-
</td>
|
186 |
-
</tr>
|
187 |
-
<tr>
|
188 |
-
<td>
|
189 |
-
<select id="intergeo_ppp_drctn_mode" class="intergeo_tlbr_cntrl_slct">
|
190 |
-
<option value="DRIVING"><?php esc_html_e( 'via standard driving directions', INTERGEO_PLUGIN_NAME ) ?></option>
|
191 |
-
<option value="BICYCLING"><?php esc_html_e( 'via bicycle paths & preferred streets', INTERGEO_PLUGIN_NAME ) ?></option>
|
192 |
-
<option value="TRANSIT"><?php esc_html_e( 'via public transit routes', INTERGEO_PLUGIN_NAME ) ?></option>
|
193 |
-
<option value="WALKING"><?php esc_html_e( 'via pedestrian paths & sidewalks', INTERGEO_PLUGIN_NAME ) ?></option>
|
194 |
-
</select>
|
195 |
-
</td>
|
196 |
-
</tr>
|
197 |
-
<tr>
|
198 |
-
<td>
|
199 |
-
<input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Save', INTERGEO_PLUGIN_NAME ) ?>">
|
200 |
-
</td>
|
201 |
-
</tr>
|
202 |
-
</table>
|
203 |
-
</form>
|
204 |
</div>
|
1 |
+
<div id="intergeo_address_ppp" class="intergeo_ppp">
|
2 |
+
<form class="intergeo_ppp_frm">
|
3 |
+
<div class="intergeo_ppp_ttl">
|
4 |
+
<a class="intergeo_ppp_cls" href="javascript:;"></a>
|
5 |
+
<?php esc_html_e( 'Go To Address', INTERGEO_PLUGIN_NAME ) ?>
|
6 |
+
</div>
|
7 |
+
<table class="intergeo_ppp_tbl" cellspacing="0" cellpadding="0" border="0">
|
8 |
+
<tr>
|
9 |
+
<td>
|
10 |
+
<input type="text" class="intergeo_ppp_txt" placeholder="<?php esc_attr_e( 'Type an address you want to go to', INTERGEO_PLUGIN_NAME ) ?>">
|
11 |
+
</td>
|
12 |
+
<td style="width:40px;text-align:right">
|
13 |
+
<button type="submit" class="button button-primary"><?php esc_html_e( 'Go', INTERGEO_PLUGIN_NAME ) ?></button>
|
14 |
+
</td>
|
15 |
+
</tr>
|
16 |
+
</table>
|
17 |
+
</form>
|
18 |
+
</div>
|
19 |
+
|
20 |
+
<div id="intergeo_marker_ppp" class="intergeo_ppp">
|
21 |
+
<form class="intergeo_ppp_frm intregeo_ppp_frm_overlay" data-position="" data-target="markers">
|
22 |
+
<div class="intergeo_ppp_ttl">
|
23 |
+
<a class="intergeo_ppp_cls" href="javascript:;"></a>
|
24 |
+
<?php esc_html_e( 'Marker Options', INTERGEO_PLUGIN_NAME ) ?>
|
25 |
+
</div>
|
26 |
+
<table class="intergeo_ppp_tbl" cellspacing="0" cellpadding="0" border="0">
|
27 |
+
<tr>
|
28 |
+
<td>
|
29 |
+
<input type="text"
|
30 |
+
class="intergeo_tlbr_marker_title intergeo_tlbr_cntrl_txt"
|
31 |
+
placeholder="<?php esc_attr_e( 'Enter title', INTERGEO_PLUGIN_NAME ) ?>"
|
32 |
+
title="<?php esc_attr_e( 'Enter title', INTERGEO_PLUGIN_NAME ) ?>">
|
33 |
+
</td>
|
34 |
+
</tr>
|
35 |
+
<tr>
|
36 |
+
<td>
|
37 |
+
<input type="text"
|
38 |
+
class="intergeo_tlbr_marker_icon intergeo_tlbr_cntrl_txt"
|
39 |
+
placeholder="<?php esc_attr_e( 'Enter icon URL', INTERGEO_PLUGIN_NAME ) ?>"
|
40 |
+
title="<?php esc_attr_e( 'Enter icon URL', INTERGEO_PLUGIN_NAME ) ?>">
|
41 |
+
</td>
|
42 |
+
</tr>
|
43 |
+
<tr>
|
44 |
+
<td>
|
45 |
+
<textarea cols="20" rows="5"
|
46 |
+
class="intergeo_tlbr_marker_info intergeo_tlbr_cntrl_txt"
|
47 |
+
title="<?php esc_attr_e( 'Enter html for info window', INTERGEO_PLUGIN_NAME ) ?>"
|
48 |
+
placeholder="<?php esc_attr_e( 'Enter html for info window', INTERGEO_PLUGIN_NAME ) ?>"
|
49 |
+
></textarea>
|
50 |
+
</td>
|
51 |
+
</tr>
|
52 |
+
<tr>
|
53 |
+
<td>
|
54 |
+
<input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Update', INTERGEO_PLUGIN_NAME ) ?>">
|
55 |
+
</td>
|
56 |
+
</tr>
|
57 |
+
</table>
|
58 |
+
</form>
|
59 |
+
</div>
|
60 |
+
|
61 |
+
<div id="intergeo_polyline_ppp" class="intergeo_ppp">
|
62 |
+
<form class="intergeo_ppp_frm intregeo_ppp_frm_overlay" data-position="" data-target="polyline">
|
63 |
+
<div class="intergeo_ppp_ttl">
|
64 |
+
<a class="intergeo_ppp_cls" href="javascript:;"></a>
|
65 |
+
<?php esc_html_e( 'Polyline Options', INTERGEO_PLUGIN_NAME ) ?>
|
66 |
+
</div>
|
67 |
+
<table class="intergeo_ppp_tbl" cellspacing="0" cellpadding="0" border="0">
|
68 |
+
<tr>
|
69 |
+
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
70 |
+
<input type="text"
|
71 |
+
class="intergeo_tlbr_polyline_weight intergeo_tlbr_cntrl_txt"
|
72 |
+
placeholder="<?php esc_attr_e( 'Stroke weight in pixel', INTERGEO_PLUGIN_NAME ) ?>"
|
73 |
+
title="<?php esc_attr_e( 'Stroke weight in pixel', INTERGEO_PLUGIN_NAME ) ?>">
|
74 |
+
</td>
|
75 |
+
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
76 |
+
<input type="text"
|
77 |
+
class="intergeo_tlbr_polyline_opacity intergeo_tlbr_cntrl_txt"
|
78 |
+
placeholder="<?php esc_attr_e( 'Stroke opacity from 0.0 to 1.0', INTERGEO_PLUGIN_NAME ) ?>"
|
79 |
+
title="<?php esc_attr_e( 'Stroke opacity from 0.0 to 1.0', INTERGEO_PLUGIN_NAME ) ?>">
|
80 |
+
</td>
|
81 |
+
</tr>
|
82 |
+
<tr>
|
83 |
+
<td colspan="2">
|
84 |
+
<input type="text" class="intergeo_tlbr_polyline_color intergeo_tlbr_clr" maxlength="7" data-default-color="#000000">
|
85 |
+
</td>
|
86 |
+
</tr>
|
87 |
+
<tr>
|
88 |
+
<td colspan="2">
|
89 |
+
<input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Update', INTERGEO_PLUGIN_NAME ) ?>">
|
90 |
+
</td>
|
91 |
+
</tr>
|
92 |
+
</table>
|
93 |
+
</form>
|
94 |
+
</div>
|
95 |
+
|
96 |
+
<div id="intergeo_polyoverlay_ppp" class="intergeo_ppp">
|
97 |
+
<form class="intergeo_ppp_frm intregeo_ppp_frm_overlay" data-position="" data-target="">
|
98 |
+
<div class="intergeo_ppp_ttl">
|
99 |
+
<a class="intergeo_ppp_cls" href="javascript:;"></a>
|
100 |
+
<?php esc_html_e( 'Polygon Options', INTERGEO_PLUGIN_NAME ) ?>
|
101 |
+
</div>
|
102 |
+
<table class="intergeo_ppp_tbl" cellspacing="0" cellpadding="0" border="0">
|
103 |
+
<tr>
|
104 |
+
<td colspan="2">
|
105 |
+
<b><?php esc_html_e( 'Stroke options', INTERGEO_PLUGIN_NAME ) ?></b>
|
106 |
+
</td>
|
107 |
+
</tr>
|
108 |
+
<tr>
|
109 |
+
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
110 |
+
<input type="text"
|
111 |
+
class="intergeo_tlbr_polyoverlay_weight intergeo_tlbr_cntrl_txt"
|
112 |
+
placeholder="<?php esc_attr_e( 'Stroke weight in pixel', INTERGEO_PLUGIN_NAME ) ?>"
|
113 |
+
title="<?php esc_attr_e( 'Stroke weight in pixel', INTERGEO_PLUGIN_NAME ) ?>">
|
114 |
+
</td>
|
115 |
+
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
116 |
+
<input type="text"
|
117 |
+
class="intergeo_tlbr_polyoverlay_stroke_opacity intergeo_tlbr_cntrl_txt"
|
118 |
+
placeholder="<?php esc_attr_e( 'Stroke opacity from 0.0 to 1.0', INTERGEO_PLUGIN_NAME ) ?>"
|
119 |
+
title="<?php esc_attr_e( 'Stroke opacity from 0.0 to 1.0', INTERGEO_PLUGIN_NAME ) ?>">
|
120 |
+
</td>
|
121 |
+
</tr>
|
122 |
+
<tr>
|
123 |
+
<td colspan="2">
|
124 |
+
<select class="intergeo_tlbr_polyoverlay_position intergeo_tlbr_cntrl_slct">
|
125 |
+
<option value=""><?php esc_html_e( 'stroke position', INTERGEO_PLUGIN_NAME ) ?></option>
|
126 |
+
<option value="CENTER"><?php esc_html_e( 'center', INTERGEO_PLUGIN_NAME ) ?></option>
|
127 |
+
<option value="INSIDE"><?php esc_html_e( 'inside the object', INTERGEO_PLUGIN_NAME ) ?></option>
|
128 |
+
<option value="OUTSIDE"><?php esc_html_e( 'outside the object', INTERGEO_PLUGIN_NAME ) ?></option>
|
129 |
+
</select>
|
130 |
+
</td>
|
131 |
+
</tr>
|
132 |
+
<tr>
|
133 |
+
<td colspan="2">
|
134 |
+
<input type="text" class="intergeo_tlbr_polyoverlay_stroke_color intergeo_tlbr_clr" maxlength="7" data-default-color="#000000">
|
135 |
+
</td>
|
136 |
+
</tr>
|
137 |
+
<tr>
|
138 |
+
<td colspan="2">
|
139 |
+
<b><?php esc_html_e( 'Fill options', INTERGEO_PLUGIN_NAME ) ?></b>
|
140 |
+
</td>
|
141 |
+
</tr>
|
142 |
+
<tr>
|
143 |
+
<td colspan="2">
|
144 |
+
<input type="text"
|
145 |
+
class="intergeo_tlbr_polyoverlay_fill_opacity intergeo_tlbr_cntrl_txt"
|
146 |
+
placeholder="<?php esc_attr_e( 'Fill opacity from 0.0 to 1.0', INTERGEO_PLUGIN_NAME ) ?>"
|
147 |
+
title="<?php esc_attr_e( 'Fill opacity from 0.0 to 1.0', INTERGEO_PLUGIN_NAME ) ?>">
|
148 |
+
</td>
|
149 |
+
</tr>
|
150 |
+
<tr>
|
151 |
+
<td colspan="2">
|
152 |
+
<input type="text" class="intergeo_tlbr_polyoverlay_fill_color intergeo_tlbr_clr" maxlength="7" data-default-color="#000000">
|
153 |
+
</td>
|
154 |
+
</tr>
|
155 |
+
<tr>
|
156 |
+
<td colspan="2">
|
157 |
+
<input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Update', INTERGEO_PLUGIN_NAME ) ?>">
|
158 |
+
</td>
|
159 |
+
</tr>
|
160 |
+
</table>
|
161 |
+
</form>
|
162 |
+
</div>
|
163 |
+
|
164 |
+
<div id="intergeo_drctn_ppp" class="intergeo_ppp">
|
165 |
+
<form class="intergeo_ppp_frm intregeo_ppp_frm_overlay" data-position="" data-target="direction">
|
166 |
+
<div class="intergeo_ppp_ttl">
|
167 |
+
<a class="intergeo_ppp_cls" href="javascript:;"></a>
|
168 |
+
<?php esc_html_e( 'Direction Options', INTERGEO_PLUGIN_NAME ) ?>
|
169 |
+
</div>
|
170 |
+
<table class="intergeo_ppp_tbl" cellspacing="0" cellpadding="0" border="0">
|
171 |
+
<tr>
|
172 |
+
<td>
|
173 |
+
<input type="text"
|
174 |
+
id="intergeo_ppp_drctn_from" class="intergeo_tlbr_cntrl_txt"
|
175 |
+
title="<?php esc_attr_e( 'The start location from which to calculate directions', INTERGEO_PLUGIN_NAME ) ?>"
|
176 |
+
placeholder="<?php esc_attr_e( 'The start location from which to calculate directions', INTERGEO_PLUGIN_NAME ) ?>">
|
177 |
+
</td>
|
178 |
+
</tr>
|
179 |
+
<tr>
|
180 |
+
<td>
|
181 |
+
<input type="text"
|
182 |
+
id="intergeo_ppp_drctn_to" class="intergeo_tlbr_cntrl_txt"
|
183 |
+
title="<?php esc_attr_e( 'The end location to which to calculate directions', INTERGEO_PLUGIN_NAME ) ?>"
|
184 |
+
placeholder="<?php esc_attr_e( 'The end location to which to calculate directions', INTERGEO_PLUGIN_NAME ) ?>">
|
185 |
+
</td>
|
186 |
+
</tr>
|
187 |
+
<tr>
|
188 |
+
<td>
|
189 |
+
<select id="intergeo_ppp_drctn_mode" class="intergeo_tlbr_cntrl_slct">
|
190 |
+
<option value="DRIVING"><?php esc_html_e( 'via standard driving directions', INTERGEO_PLUGIN_NAME ) ?></option>
|
191 |
+
<option value="BICYCLING"><?php esc_html_e( 'via bicycle paths & preferred streets', INTERGEO_PLUGIN_NAME ) ?></option>
|
192 |
+
<option value="TRANSIT"><?php esc_html_e( 'via public transit routes', INTERGEO_PLUGIN_NAME ) ?></option>
|
193 |
+
<option value="WALKING"><?php esc_html_e( 'via pedestrian paths & sidewalks', INTERGEO_PLUGIN_NAME ) ?></option>
|
194 |
+
</select>
|
195 |
+
</td>
|
196 |
+
</tr>
|
197 |
+
<tr>
|
198 |
+
<td>
|
199 |
+
<input type="submit" class="button button-primary" value="<?php esc_attr_e( 'Save', INTERGEO_PLUGIN_NAME ) ?>">
|
200 |
+
</td>
|
201 |
+
</tr>
|
202 |
+
</table>
|
203 |
+
</form>
|
204 |
</div>
|
templates/iframe/positioning.php
CHANGED
@@ -1,99 +1,99 @@
|
|
1 |
-
<h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'Positioning & Zooming', INTERGEO_PLUGIN_NAME ) ?></h3>
|
2 |
-
<ul class="intergeo_tlbr_ul_li_ul">
|
3 |
-
<li class="intergeo_tlbr_ul_li_ul_li">
|
4 |
-
<p class="intergeo_tlbr_grp_dsc">
|
5 |
-
<?php esc_html_e( 'If you want to set specific map position and certain level of zooming, just set it up on preview map and these settings will be remembered at published map.', INTERGEO_PLUGIN_NAME ) ?>
|
6 |
-
</p>
|
7 |
-
</li>
|
8 |
-
<li class="intergeo_tlbr_ul_li_ul_li">
|
9 |
-
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Positioning', INTERGEO_PLUGIN_NAME ) ?></span>
|
10 |
-
<div class="intergeo_tlbr_cntrl_items">
|
11 |
-
<div class="intergeo_tlbr_cntrl_item">
|
12 |
-
<?php esc_html_e( 'The initial map type', INTERGEO_PLUGIN_NAME ) ?>
|
13 |
-
<select name="map_mapTypeId" class="intergeo_tlbr_cntrl_slct">
|
14 |
-
<option value="ROADMAP" <?php selected( isset( $json['map']['mapTypeId'] ) ? $json['map']['mapTypeId'] == 'ROADMAP' : false ) ?>>
|
15 |
-
<?php esc_html_e( 'Road map', INTERGEO_PLUGIN_NAME ) ?>
|
16 |
-
</option>
|
17 |
-
<option value="TERRAIN" <?php selected( isset( $json['map']['mapTypeId'] ) ? $json['map']['mapTypeId'] == 'TERRAIN' : false ) ?>>
|
18 |
-
<?php esc_html_e( 'Terrain', INTERGEO_PLUGIN_NAME ) ?>
|
19 |
-
</option>
|
20 |
-
<option value="SATELLITE" <?php selected( isset( $json['map']['mapTypeId'] ) ? $json['map']['mapTypeId'] == 'SATELLITE' : false ) ?>>
|
21 |
-
<?php esc_html_e( 'Satellite', INTERGEO_PLUGIN_NAME ) ?>
|
22 |
-
</option>
|
23 |
-
<option value="HYBRID" <?php selected( isset( $json['map']['mapTypeId'] ) ? $json['map']['mapTypeId'] == 'HYBRID' : false ) ?>>
|
24 |
-
<?php esc_html_e( 'Hybrid', INTERGEO_PLUGIN_NAME ) ?>
|
25 |
-
</option>
|
26 |
-
</select>
|
27 |
-
</div>
|
28 |
-
<div class="intergeo_tlbr_cntrl_item">
|
29 |
-
<a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
|
30 |
-
<label>
|
31 |
-
<input type="hidden" name="map_draggable" value="0">
|
32 |
-
<input type="checkbox" name="map_draggable" value="1" <?php checked( isset( $json['map']['draggable'] ) ? $json['map']['draggable'] : true ) ?>>
|
33 |
-
<?php esc_html_e( 'Draggable map', INTERGEO_PLUGIN_NAME ) ?>
|
34 |
-
</label>
|
35 |
-
</div>
|
36 |
-
<p class="intergeo_tlbr_cntrl_dsc">
|
37 |
-
<?php esc_html_e( 'If unchecked prevents the map from being dragged. Dragging is enabled by default.', INTERGEO_PLUGIN_NAME ) ?>
|
38 |
-
</p>
|
39 |
-
</div>
|
40 |
-
</li>
|
41 |
-
<li class="intergeo_tlbr_ul_li_ul_li">
|
42 |
-
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Zooming', INTERGEO_PLUGIN_NAME ) ?></span>
|
43 |
-
<div class="intergeo_tlbr_cntrl_items">
|
44 |
-
<div class="intergeo_tlbr_cntrl_item">
|
45 |
-
<a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
|
46 |
-
<?php esc_html_e( 'Zoom range values', INTERGEO_PLUGIN_NAME ) ?>
|
47 |
-
</div>
|
48 |
-
<table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
|
49 |
-
<tr>
|
50 |
-
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
51 |
-
<input type="number" class="intergeo_tlbr_cntrl_txt" min="0" max="19" name="map_minZoom" value="<?php echo isset( $json['map']['minZoom'] ) ? intval( $json['map']['minZoom'] ) : 0 ?>">
|
52 |
-
</td>
|
53 |
-
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
54 |
-
<input type="number" class="intergeo_tlbr_cntrl_txt" min="0" max="19" name="map_maxZoom" value="<?php echo isset( $json['map']['maxZoom'] ) ? intval( $json['map']['maxZoom'] ) : 19 ?>">
|
55 |
-
</td>
|
56 |
-
</tr>
|
57 |
-
</table>
|
58 |
-
<p class="intergeo_tlbr_cntrl_dsc">
|
59 |
-
<?php esc_html_e( 'The maximum (19) and minimum (0) zoom levels which could be displayed on the map.', INTERGEO_PLUGIN_NAME ) ?>
|
60 |
-
</p>
|
61 |
-
<div class="intergeo_tlbr_cntrl_item">
|
62 |
-
<a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
|
63 |
-
<label>
|
64 |
-
<input type="hidden" name="map_scrollwheel" value="0">
|
65 |
-
<input type="checkbox" name="map_scrollwheel" value="1" <?php checked( isset( $json['map']['scrollwheel'] ) ? $json['map']['scrollwheel'] == 1 : true ) ?>>
|
66 |
-
<?php esc_html_e( 'Scrollwheel zooming', INTERGEO_PLUGIN_NAME ) ?>
|
67 |
-
</label>
|
68 |
-
</div>
|
69 |
-
<p class="intergeo_tlbr_cntrl_dsc">
|
70 |
-
<?php esc_html_e( 'Determines if scrollwheel zooming is enabled on the map.', INTERGEO_PLUGIN_NAME ) ?>
|
71 |
-
</p>
|
72 |
-
</div>
|
73 |
-
</li>
|
74 |
-
<li class="intergeo_tlbr_ul_li_ul_li">
|
75 |
-
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Preview settings', INTERGEO_PLUGIN_NAME ) ?></span>
|
76 |
-
<div class="intergeo_tlbr_cntrl_items">
|
77 |
-
<div class="intergeo_tlbr_cntrl_item">
|
78 |
-
<a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
|
79 |
-
<label>
|
80 |
-
<input type="checkbox" id="intergeo_map_lock_preview" value="1">
|
81 |
-
<?php esc_html_e( 'Lock preview', INTERGEO_PLUGIN_NAME ) ?>
|
82 |
-
</label>
|
83 |
-
</div>
|
84 |
-
<p class="intergeo_tlbr_cntrl_dsc">
|
85 |
-
<?php esc_html_e( "Lock preview map to preserve changing of the viewport bounds and zoom level. Locking affects only on preview map and won't lock embedded map.", INTERGEO_PLUGIN_NAME ) ?>
|
86 |
-
</p>
|
87 |
-
<div class="intergeo_tlbr_cntrl_item">
|
88 |
-
<a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
|
89 |
-
<label>
|
90 |
-
<input type="checkbox" id="intergeo_show_map_center" value="1" <?php checked( $show_map_center ) ?>>
|
91 |
-
<?php esc_html_e( 'Show map center', INTERGEO_PLUGIN_NAME ) ?>
|
92 |
-
</label>
|
93 |
-
</div>
|
94 |
-
<p class="intergeo_tlbr_cntrl_dsc">
|
95 |
-
<?php esc_html_e( "Show small red circle at the center of the map. It helps you to centralize the map bounds. Note that this option won't be displayed at frontend.", INTERGEO_PLUGIN_NAME ) ?>
|
96 |
-
</p>
|
97 |
-
</div>
|
98 |
-
</li>
|
99 |
</ul>
|
1 |
+
<h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'Positioning & Zooming', INTERGEO_PLUGIN_NAME ) ?></h3>
|
2 |
+
<ul class="intergeo_tlbr_ul_li_ul">
|
3 |
+
<li class="intergeo_tlbr_ul_li_ul_li">
|
4 |
+
<p class="intergeo_tlbr_grp_dsc">
|
5 |
+
<?php esc_html_e( 'If you want to set specific map position and certain level of zooming, just set it up on preview map and these settings will be remembered at published map.', INTERGEO_PLUGIN_NAME ) ?>
|
6 |
+
</p>
|
7 |
+
</li>
|
8 |
+
<li class="intergeo_tlbr_ul_li_ul_li">
|
9 |
+
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Positioning', INTERGEO_PLUGIN_NAME ) ?></span>
|
10 |
+
<div class="intergeo_tlbr_cntrl_items">
|
11 |
+
<div class="intergeo_tlbr_cntrl_item">
|
12 |
+
<?php esc_html_e( 'The initial map type', INTERGEO_PLUGIN_NAME ) ?>
|
13 |
+
<select name="map_mapTypeId" class="intergeo_tlbr_cntrl_slct">
|
14 |
+
<option value="ROADMAP" <?php selected( isset( $json['map']['mapTypeId'] ) ? $json['map']['mapTypeId'] == 'ROADMAP' : false ) ?>>
|
15 |
+
<?php esc_html_e( 'Road map', INTERGEO_PLUGIN_NAME ) ?>
|
16 |
+
</option>
|
17 |
+
<option value="TERRAIN" <?php selected( isset( $json['map']['mapTypeId'] ) ? $json['map']['mapTypeId'] == 'TERRAIN' : false ) ?>>
|
18 |
+
<?php esc_html_e( 'Terrain', INTERGEO_PLUGIN_NAME ) ?>
|
19 |
+
</option>
|
20 |
+
<option value="SATELLITE" <?php selected( isset( $json['map']['mapTypeId'] ) ? $json['map']['mapTypeId'] == 'SATELLITE' : false ) ?>>
|
21 |
+
<?php esc_html_e( 'Satellite', INTERGEO_PLUGIN_NAME ) ?>
|
22 |
+
</option>
|
23 |
+
<option value="HYBRID" <?php selected( isset( $json['map']['mapTypeId'] ) ? $json['map']['mapTypeId'] == 'HYBRID' : false ) ?>>
|
24 |
+
<?php esc_html_e( 'Hybrid', INTERGEO_PLUGIN_NAME ) ?>
|
25 |
+
</option>
|
26 |
+
</select>
|
27 |
+
</div>
|
28 |
+
<div class="intergeo_tlbr_cntrl_item">
|
29 |
+
<a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
|
30 |
+
<label>
|
31 |
+
<input type="hidden" name="map_draggable" value="0">
|
32 |
+
<input type="checkbox" name="map_draggable" value="1" <?php checked( isset( $json['map']['draggable'] ) ? $json['map']['draggable'] : true ) ?>>
|
33 |
+
<?php esc_html_e( 'Draggable map', INTERGEO_PLUGIN_NAME ) ?>
|
34 |
+
</label>
|
35 |
+
</div>
|
36 |
+
<p class="intergeo_tlbr_cntrl_dsc">
|
37 |
+
<?php esc_html_e( 'If unchecked prevents the map from being dragged. Dragging is enabled by default.', INTERGEO_PLUGIN_NAME ) ?>
|
38 |
+
</p>
|
39 |
+
</div>
|
40 |
+
</li>
|
41 |
+
<li class="intergeo_tlbr_ul_li_ul_li">
|
42 |
+
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Zooming', INTERGEO_PLUGIN_NAME ) ?></span>
|
43 |
+
<div class="intergeo_tlbr_cntrl_items">
|
44 |
+
<div class="intergeo_tlbr_cntrl_item">
|
45 |
+
<a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
|
46 |
+
<?php esc_html_e( 'Zoom range values', INTERGEO_PLUGIN_NAME ) ?>
|
47 |
+
</div>
|
48 |
+
<table class="intergeo_tlbr_cntrl_tbl" cellpadding="0" cellspacing="0" border="0">
|
49 |
+
<tr>
|
50 |
+
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
51 |
+
<input type="number" class="intergeo_tlbr_cntrl_txt" min="0" max="19" name="map_minZoom" value="<?php echo isset( $json['map']['minZoom'] ) ? intval( $json['map']['minZoom'] ) : 0 ?>">
|
52 |
+
</td>
|
53 |
+
<td class="intergeo_tlbr_cntrl_tbl_clmn">
|
54 |
+
<input type="number" class="intergeo_tlbr_cntrl_txt" min="0" max="19" name="map_maxZoom" value="<?php echo isset( $json['map']['maxZoom'] ) ? intval( $json['map']['maxZoom'] ) : 19 ?>">
|
55 |
+
</td>
|
56 |
+
</tr>
|
57 |
+
</table>
|
58 |
+
<p class="intergeo_tlbr_cntrl_dsc">
|
59 |
+
<?php esc_html_e( 'The maximum (19) and minimum (0) zoom levels which could be displayed on the map.', INTERGEO_PLUGIN_NAME ) ?>
|
60 |
+
</p>
|
61 |
+
<div class="intergeo_tlbr_cntrl_item">
|
62 |
+
<a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
|
63 |
+
<label>
|
64 |
+
<input type="hidden" name="map_scrollwheel" value="0">
|
65 |
+
<input type="checkbox" name="map_scrollwheel" value="1" <?php checked( isset( $json['map']['scrollwheel'] ) ? $json['map']['scrollwheel'] == 1 : true ) ?>>
|
66 |
+
<?php esc_html_e( 'Scrollwheel zooming', INTERGEO_PLUGIN_NAME ) ?>
|
67 |
+
</label>
|
68 |
+
</div>
|
69 |
+
<p class="intergeo_tlbr_cntrl_dsc">
|
70 |
+
<?php esc_html_e( 'Determines if scrollwheel zooming is enabled on the map.', INTERGEO_PLUGIN_NAME ) ?>
|
71 |
+
</p>
|
72 |
+
</div>
|
73 |
+
</li>
|
74 |
+
<li class="intergeo_tlbr_ul_li_ul_li">
|
75 |
+
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Preview settings', INTERGEO_PLUGIN_NAME ) ?></span>
|
76 |
+
<div class="intergeo_tlbr_cntrl_items">
|
77 |
+
<div class="intergeo_tlbr_cntrl_item">
|
78 |
+
<a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
|
79 |
+
<label>
|
80 |
+
<input type="checkbox" id="intergeo_map_lock_preview" value="1">
|
81 |
+
<?php esc_html_e( 'Lock preview', INTERGEO_PLUGIN_NAME ) ?>
|
82 |
+
</label>
|
83 |
+
</div>
|
84 |
+
<p class="intergeo_tlbr_cntrl_dsc">
|
85 |
+
<?php esc_html_e( "Lock preview map to preserve changing of the viewport bounds and zoom level. Locking affects only on preview map and won't lock embedded map.", INTERGEO_PLUGIN_NAME ) ?>
|
86 |
+
</p>
|
87 |
+
<div class="intergeo_tlbr_cntrl_item">
|
88 |
+
<a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
|
89 |
+
<label>
|
90 |
+
<input type="checkbox" id="intergeo_show_map_center" value="1" <?php checked( $show_map_center ) ?>>
|
91 |
+
<?php esc_html_e( 'Show map center', INTERGEO_PLUGIN_NAME ) ?>
|
92 |
+
</label>
|
93 |
+
</div>
|
94 |
+
<p class="intergeo_tlbr_cntrl_dsc">
|
95 |
+
<?php esc_html_e( "Show small red circle at the center of the map. It helps you to centralize the map bounds. Note that this option won't be displayed at frontend.", INTERGEO_PLUGIN_NAME ) ?>
|
96 |
+
</p>
|
97 |
+
</div>
|
98 |
+
</li>
|
99 |
</ul>
|
templates/iframe/styles.php
CHANGED
@@ -1,83 +1,83 @@
|
|
1 |
-
<h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'Styles', INTERGEO_PLUGIN_NAME ) ?></h3>
|
2 |
-
<ul class="intergeo_tlbr_ul_li_ul">
|
3 |
-
<li class="intergeo_tlbr_ul_li_ul_li">
|
4 |
-
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( "Container's Styles", INTERGEO_PLUGIN_NAME ) ?></span>
|
5 |
-
<div class="intergeo_tlbr_cntrl_items">
|
6 |
-
<div class="intergeo_tlbr_cntrl_item">
|
7 |
-
<?php esc_html_e( 'Width', INTERGEO_PLUGIN_NAME ) ?>
|
8 |
-
<input type="text" class="intergeo_tlbr_cntrl_txt" name="container_width" placeholder="100%" value="<?php echo isset( $json['container']['width'] ) ? esc_attr( $json['container']['width'] ) : '' ?>">
|
9 |
-
</div>
|
10 |
-
<div class="intergeo_tlbr_cntrl_item">
|
11 |
-
<?php esc_html_e( 'Height', INTERGEO_PLUGIN_NAME ) ?>
|
12 |
-
<input type="text" class="intergeo_tlbr_cntrl_txt" name="container_height" placeholder="300px" value="<?php echo isset( $json['container']['height'] ) ? esc_attr( $json['container']['height'] ) : '' ?>">
|
13 |
-
</div>
|
14 |
-
<div class="intergeo_tlbr_cntrl_item">
|
15 |
-
<?php esc_html_e( 'Extra Styles', INTERGEO_PLUGIN_NAME ) ?>
|
16 |
-
<input type="text" class="intergeo_tlbr_cntrl_txt" name="container_styles" placeholder="border: 1px solid gray;" value="<?php echo isset( $json['container']['styles'] ) ? esc_attr( $json['container']['styles'] ) : '' ?>">
|
17 |
-
</div>
|
18 |
-
</div>
|
19 |
-
</li>
|
20 |
-
<li class="intergeo_tlbr_ul_li_ul_li">
|
21 |
-
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Predefined Map Styles', INTERGEO_PLUGIN_NAME ) ?></span>
|
22 |
-
<div class="intergeo_tlbr_cntrl_items">
|
23 |
-
<div class="intergeo_tlbr_cntrl_item">
|
24 |
-
<label class="intergeo_tlbr_style_preview" title="Default">
|
25 |
-
<input type="radio" name="styles_type" value="DEFAULT" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == 'DEFAULT' : true ) ?>>
|
26 |
-
</label>
|
27 |
-
</div>
|
28 |
-
<div class="intergeo_tlbr_cntrl_item">
|
29 |
-
<label id="intergeo_tlbr_style_red" class="intergeo_tlbr_style_preview" title="Red">
|
30 |
-
<input type="radio" name="styles_type" value="RED" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == 'RED' : false ) ?>>
|
31 |
-
</label>
|
32 |
-
</div>
|
33 |
-
<div class="intergeo_tlbr_cntrl_item">
|
34 |
-
<label id="intergeo_tlbr_style_night" class="intergeo_tlbr_style_preview" title="Night">
|
35 |
-
<input type="radio" name="styles_type" value="NIGHT" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == 'NIGHT' : false ) ?>>
|
36 |
-
</label>
|
37 |
-
</div>
|
38 |
-
<div class="intergeo_tlbr_cntrl_item">
|
39 |
-
<label id="intergeo_tlbr_style_blue" class="intergeo_tlbr_style_preview" title="Blue">
|
40 |
-
<input type="radio" name="styles_type" value="BLUE" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == 'BLUE' : false ) ?>>
|
41 |
-
</label>
|
42 |
-
</div>
|
43 |
-
<div class="intergeo_tlbr_cntrl_item">
|
44 |
-
<label id="intergeo_tlbr_style_grayscale" class="intergeo_tlbr_style_preview" title="Greyscale">
|
45 |
-
<input type="radio" name="styles_type" value="GREYSCALE" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == 'GREYSCALE' : false ) ?>>
|
46 |
-
</label>
|
47 |
-
</div>
|
48 |
-
<div class="intergeo_tlbr_cntrl_item">
|
49 |
-
<label id="intergeo_tlbr_style_no_roads" class="intergeo_tlbr_style_preview" title="No Roads">
|
50 |
-
<input type="radio" name="styles_type" value="NO_ROADS" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == 'NO_ROADS' : false ) ?>>
|
51 |
-
</label>
|
52 |
-
</div>
|
53 |
-
<div class="intergeo_tlbr_cntrl_item">
|
54 |
-
<label id="intergeo_tlbr_style_mixed" class="intergeo_tlbr_style_preview" title="Mixed">
|
55 |
-
<input type="radio" name="styles_type" value="MIXED" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == 'MIXED' : false ) ?>>
|
56 |
-
</label>
|
57 |
-
</div>
|
58 |
-
<div class="intergeo_tlbr_cntrl_item">
|
59 |
-
<label id="intergeo_tlbr_style_chilled" class="intergeo_tlbr_style_preview" title="Chilled">
|
60 |
-
<input type="radio" name="styles_type" value="CHILLED" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == 'CHILLED' : false ) ?>>
|
61 |
-
</label>
|
62 |
-
</div>
|
63 |
-
</div>
|
64 |
-
</li>
|
65 |
-
<li class="intergeo_tlbr_ul_li_ul_li">
|
66 |
-
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Custom Map Styles', INTERGEO_PLUGIN_NAME ) ?></span>
|
67 |
-
<div class="intergeo_tlbr_cntrl_items">
|
68 |
-
<div class="intergeo_tlbr_cntrl_item">
|
69 |
-
<a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
|
70 |
-
<label>
|
71 |
-
<input type="radio" name="styles_type" value="-1" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == '-1' : false ) ?>>
|
72 |
-
<?php esc_html_e( 'Use custom styles', INTERGEO_PLUGIN_NAME ) ?>
|
73 |
-
</label>
|
74 |
-
<textarea class="intergeo_tlbr_cntrl_txt" name="styles_custom" cols="30" rows="5"><?php
|
75 |
-
echo isset( $json['styles']['custom'] ) ? esc_textarea( @json_encode( $json['styles']['custom'] ) ) : ''
|
76 |
-
?></textarea>
|
77 |
-
</div>
|
78 |
-
<p class="intergeo_tlbr_cntrl_dsc">
|
79 |
-
<?php printf( esc_html__( "Creating styles by hand and testing your code to see how they look is potentially time-consuming. Instead, you can use the %sStyled Map Wizard%s to set up the JSON for your map's styles.", INTERGEO_PLUGIN_NAME ), '<a href="http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html" target="_blank">', '</a>' ) ?>
|
80 |
-
</p>
|
81 |
-
</div>
|
82 |
-
</li>
|
83 |
</ul>
|
1 |
+
<h3 class="intergeo_tlbr_ul_li_h3"><?php esc_html_e( 'Styles', INTERGEO_PLUGIN_NAME ) ?></h3>
|
2 |
+
<ul class="intergeo_tlbr_ul_li_ul">
|
3 |
+
<li class="intergeo_tlbr_ul_li_ul_li">
|
4 |
+
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( "Container's Styles", INTERGEO_PLUGIN_NAME ) ?></span>
|
5 |
+
<div class="intergeo_tlbr_cntrl_items">
|
6 |
+
<div class="intergeo_tlbr_cntrl_item">
|
7 |
+
<?php esc_html_e( 'Width', INTERGEO_PLUGIN_NAME ) ?>
|
8 |
+
<input type="text" class="intergeo_tlbr_cntrl_txt" name="container_width" placeholder="100%" value="<?php echo isset( $json['container']['width'] ) ? esc_attr( $json['container']['width'] ) : '' ?>">
|
9 |
+
</div>
|
10 |
+
<div class="intergeo_tlbr_cntrl_item">
|
11 |
+
<?php esc_html_e( 'Height', INTERGEO_PLUGIN_NAME ) ?>
|
12 |
+
<input type="text" class="intergeo_tlbr_cntrl_txt" name="container_height" placeholder="300px" value="<?php echo isset( $json['container']['height'] ) ? esc_attr( $json['container']['height'] ) : '' ?>">
|
13 |
+
</div>
|
14 |
+
<div class="intergeo_tlbr_cntrl_item">
|
15 |
+
<?php esc_html_e( 'Extra Styles', INTERGEO_PLUGIN_NAME ) ?>
|
16 |
+
<input type="text" class="intergeo_tlbr_cntrl_txt" name="container_styles" placeholder="border: 1px solid gray;" value="<?php echo isset( $json['container']['styles'] ) ? esc_attr( $json['container']['styles'] ) : '' ?>">
|
17 |
+
</div>
|
18 |
+
</div>
|
19 |
+
</li>
|
20 |
+
<li class="intergeo_tlbr_ul_li_ul_li">
|
21 |
+
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Predefined Map Styles', INTERGEO_PLUGIN_NAME ) ?></span>
|
22 |
+
<div class="intergeo_tlbr_cntrl_items">
|
23 |
+
<div class="intergeo_tlbr_cntrl_item">
|
24 |
+
<label class="intergeo_tlbr_style_preview" title="Default">
|
25 |
+
<input type="radio" name="styles_type" value="DEFAULT" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == 'DEFAULT' : true ) ?>>
|
26 |
+
</label>
|
27 |
+
</div>
|
28 |
+
<div class="intergeo_tlbr_cntrl_item">
|
29 |
+
<label id="intergeo_tlbr_style_red" class="intergeo_tlbr_style_preview" title="Red">
|
30 |
+
<input type="radio" name="styles_type" value="RED" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == 'RED' : false ) ?>>
|
31 |
+
</label>
|
32 |
+
</div>
|
33 |
+
<div class="intergeo_tlbr_cntrl_item">
|
34 |
+
<label id="intergeo_tlbr_style_night" class="intergeo_tlbr_style_preview" title="Night">
|
35 |
+
<input type="radio" name="styles_type" value="NIGHT" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == 'NIGHT' : false ) ?>>
|
36 |
+
</label>
|
37 |
+
</div>
|
38 |
+
<div class="intergeo_tlbr_cntrl_item">
|
39 |
+
<label id="intergeo_tlbr_style_blue" class="intergeo_tlbr_style_preview" title="Blue">
|
40 |
+
<input type="radio" name="styles_type" value="BLUE" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == 'BLUE' : false ) ?>>
|
41 |
+
</label>
|
42 |
+
</div>
|
43 |
+
<div class="intergeo_tlbr_cntrl_item">
|
44 |
+
<label id="intergeo_tlbr_style_grayscale" class="intergeo_tlbr_style_preview" title="Greyscale">
|
45 |
+
<input type="radio" name="styles_type" value="GREYSCALE" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == 'GREYSCALE' : false ) ?>>
|
46 |
+
</label>
|
47 |
+
</div>
|
48 |
+
<div class="intergeo_tlbr_cntrl_item">
|
49 |
+
<label id="intergeo_tlbr_style_no_roads" class="intergeo_tlbr_style_preview" title="No Roads">
|
50 |
+
<input type="radio" name="styles_type" value="NO_ROADS" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == 'NO_ROADS' : false ) ?>>
|
51 |
+
</label>
|
52 |
+
</div>
|
53 |
+
<div class="intergeo_tlbr_cntrl_item">
|
54 |
+
<label id="intergeo_tlbr_style_mixed" class="intergeo_tlbr_style_preview" title="Mixed">
|
55 |
+
<input type="radio" name="styles_type" value="MIXED" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == 'MIXED' : false ) ?>>
|
56 |
+
</label>
|
57 |
+
</div>
|
58 |
+
<div class="intergeo_tlbr_cntrl_item">
|
59 |
+
<label id="intergeo_tlbr_style_chilled" class="intergeo_tlbr_style_preview" title="Chilled">
|
60 |
+
<input type="radio" name="styles_type" value="CHILLED" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == 'CHILLED' : false ) ?>>
|
61 |
+
</label>
|
62 |
+
</div>
|
63 |
+
</div>
|
64 |
+
</li>
|
65 |
+
<li class="intergeo_tlbr_ul_li_ul_li">
|
66 |
+
<span class="intergeo_tlbr_cntrl_ttl"><?php esc_html_e( 'Custom Map Styles', INTERGEO_PLUGIN_NAME ) ?></span>
|
67 |
+
<div class="intergeo_tlbr_cntrl_items">
|
68 |
+
<div class="intergeo_tlbr_cntrl_item">
|
69 |
+
<a class="intergeo_tlbr_cntrl_more_info" href="javascript:;">[?]</a>
|
70 |
+
<label>
|
71 |
+
<input type="radio" name="styles_type" value="-1" <?php checked( isset( $json['styles']['type'] ) ? $json['styles']['type'] == '-1' : false ) ?>>
|
72 |
+
<?php esc_html_e( 'Use custom styles', INTERGEO_PLUGIN_NAME ) ?>
|
73 |
+
</label>
|
74 |
+
<textarea class="intergeo_tlbr_cntrl_txt" name="styles_custom" cols="30" rows="5"><?php
|
75 |
+
echo isset( $json['styles']['custom'] ) ? esc_textarea( @json_encode( $json['styles']['custom'] ) ) : ''
|
76 |
+
?></textarea>
|
77 |
+
</div>
|
78 |
+
<p class="intergeo_tlbr_cntrl_dsc">
|
79 |
+
<?php printf( esc_html__( "Creating styles by hand and testing your code to see how they look is potentially time-consuming. Instead, you can use the %sStyled Map Wizard%s to set up the JSON for your map's styles.", INTERGEO_PLUGIN_NAME ), '<a href="http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html" target="_blank">', '</a>' ) ?>
|
80 |
+
</p>
|
81 |
+
</div>
|
82 |
+
</li>
|
83 |
</ul>
|
templates/library/list.php
CHANGED
@@ -1,85 +1,85 @@
|
|
1 |
-
<div class="wrap">
|
2 |
-
<h2>
|
3 |
-
<div id="intergeo_lbrr_ttl">Inter<span style="color:#4067dc">g</span><span style="color:#e21b31">e</span><span style="color:#fcaa08">o</span> <?php _e( 'Maps', INTERGEO_PLUGIN_NAME ) ?></div>
|
4 |
-
<a id="intergeo_lbrr_add_new" href="javascript:;" class="add-new-h2"><?php _e( 'Add New', INTERGEO_PLUGIN_NAME ) ?></a>
|
5 |
-
</h2>
|
6 |
-
|
7 |
-
<script type="text/javascript">
|
8 |
-
/* <![CDATA[ */
|
9 |
-
window.intergeo_maps = [];
|
10 |
-
window.intergeo_maps_maps = [];
|
11 |
-
/* ]]> */
|
12 |
-
</script>
|
13 |
-
|
14 |
-
<?php if ( $query->have_posts() ) : ?>
|
15 |
-
|
16 |
-
<div id="intergeo_lbrr_items"><?php
|
17 |
-
$index = 0;
|
18 |
-
while ( $query->have_posts() ) :
|
19 |
-
$post = $query->next_post();
|
20 |
-
|
21 |
-
$id = intergeo_encode( $post->ID );
|
22 |
-
$json = json_decode( $post->post_content, true );
|
23 |
-
|
24 |
-
$delete_url = add_query_arg( array(
|
25 |
-
'map' => $id,
|
26 |
-
'do' => 'delete',
|
27 |
-
'noheader' => 'true',
|
28 |
-
'nonce' => wp_create_nonce( $post->ID . filter_input( INPUT_SERVER, 'REMOTE_ADDR', FILTER_VALIDATE_IP ) ),
|
29 |
-
) );
|
30 |
-
|
31 |
-
$libraries = intergeo_check_libraries( $json, $libraries );
|
32 |
-
|
33 |
-
?><div class="intergeo_lbrr_item"<?php echo $index != 0 && $index % 3 == 0 ? ' style="clear:both"' : '' ?>>
|
34 |
-
<div class="intergeo_lbrr_wrapper">
|
35 |
-
<div class="intergeo_lbrr_map_wrapper">
|
36 |
-
<div class="intergeo_lbrr_map_loader">
|
37 |
-
<div id="intergeo_map<?php echo $id ?>" class="intergeo_lbrr_map"></div>
|
38 |
-
</div>
|
39 |
-
</div>
|
40 |
-
<table class="intergeo_lbrr_cntrls" cellspacing="0" cellpadding="0" border="0">
|
41 |
-
<tr>
|
42 |
-
<td>
|
43 |
-
<input type="text" class="intergeo_lbrr_code" value="[intergeo id="<?php echo $id ?>"]<?php echo !empty( $json['address'] ) ? esc_attr( $json['address'] ) : '' ?>[/intergeo]">
|
44 |
-
</td>
|
45 |
-
<td class="intergeo_lbrr_item_actions">
|
46 |
-
<a class="intergeo_lbrr_item_edit" href="javascript:;" title="<?php _e( "Edit", INTERGEO_PLUGIN_NAME ) ?>" data-map="<?php echo $id ?>"></a>
|
47 |
-
<a class="intergeo_lbrr_item_copy" href="javascript:;" title="<?php _e( "Copy", INTERGEO_PLUGIN_NAME ) ?>" data-map="<?php echo $id ?>"></a>
|
48 |
-
<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>
|
49 |
-
</td>
|
50 |
-
</tr>
|
51 |
-
</table>
|
52 |
-
</div>
|
53 |
-
</div>
|
54 |
-
<script type="text/javascript">
|
55 |
-
/* <![CDATA[ */
|
56 |
-
window.intergeo_maps.push({
|
57 |
-
container: 'intergeo_map<?php echo $id ?>',
|
58 |
-
options: <?php echo $post->post_content ?>
|
59 |
-
});
|
60 |
-
/* ]]> */
|
61 |
-
</script><?php
|
62 |
-
|
63 |
-
$index++;
|
64 |
-
endwhile;
|
65 |
-
|
66 |
-
?><div style="clear:both"></div>
|
67 |
-
</div>
|
68 |
-
|
69 |
-
<?php if ( !empty( $pagination ) ) : ?>
|
70 |
-
<div>
|
71 |
-
<ul id="intergeo_lbrr_pgntn">
|
72 |
-
<?php foreach ( $pagination as $page_item ) : ?>
|
73 |
-
<li><?php echo $page_item ?></li>
|
74 |
-
<?php endforeach; ?>
|
75 |
-
</ul>
|
76 |
-
<div style="clear:both"></div>
|
77 |
-
</div>
|
78 |
-
<?php endif; ?>
|
79 |
-
|
80 |
-
<?php else : ?>
|
81 |
-
<p>
|
82 |
-
<?php esc_html_e( 'You do not have created maps. Start adding it by clicking "Add New" button.', INTERGEO_PLUGIN_NAME ) ?>
|
83 |
-
</p>
|
84 |
-
<?php endif; ?>
|
85 |
</div>
|
1 |
+
<div class="wrap">
|
2 |
+
<h2>
|
3 |
+
<div id="intergeo_lbrr_ttl">Inter<span style="color:#4067dc">g</span><span style="color:#e21b31">e</span><span style="color:#fcaa08">o</span> <?php _e( 'Maps', INTERGEO_PLUGIN_NAME ) ?></div>
|
4 |
+
<a id="intergeo_lbrr_add_new" href="javascript:;" class="add-new-h2"><?php _e( 'Add New', INTERGEO_PLUGIN_NAME ) ?></a>
|
5 |
+
</h2>
|
6 |
+
|
7 |
+
<script type="text/javascript">
|
8 |
+
/* <![CDATA[ */
|
9 |
+
window.intergeo_maps = [];
|
10 |
+
window.intergeo_maps_maps = [];
|
11 |
+
/* ]]> */
|
12 |
+
</script>
|
13 |
+
|
14 |
+
<?php if ( $query->have_posts() ) : ?>
|
15 |
+
|
16 |
+
<div id="intergeo_lbrr_items"><?php
|
17 |
+
$index = 0;
|
18 |
+
while ( $query->have_posts() ) :
|
19 |
+
$post = $query->next_post();
|
20 |
+
|
21 |
+
$id = intergeo_encode( $post->ID );
|
22 |
+
$json = json_decode( $post->post_content, true );
|
23 |
+
|
24 |
+
$delete_url = add_query_arg( array(
|
25 |
+
'map' => $id,
|
26 |
+
'do' => 'delete',
|
27 |
+
'noheader' => 'true',
|
28 |
+
'nonce' => wp_create_nonce( $post->ID . filter_input( INPUT_SERVER, 'REMOTE_ADDR', FILTER_VALIDATE_IP ) ),
|
29 |
+
) );
|
30 |
+
|
31 |
+
$libraries = intergeo_check_libraries( $json, $libraries );
|
32 |
+
|
33 |
+
?><div class="intergeo_lbrr_item"<?php echo $index != 0 && $index % 3 == 0 ? ' style="clear:both"' : '' ?>>
|
34 |
+
<div class="intergeo_lbrr_wrapper">
|
35 |
+
<div class="intergeo_lbrr_map_wrapper">
|
36 |
+
<div class="intergeo_lbrr_map_loader">
|
37 |
+
<div id="intergeo_map<?php echo $id ?>" class="intergeo_lbrr_map"></div>
|
38 |
+
</div>
|
39 |
+
</div>
|
40 |
+
<table class="intergeo_lbrr_cntrls" cellspacing="0" cellpadding="0" border="0">
|
41 |
+
<tr>
|
42 |
+
<td>
|
43 |
+
<input type="text" class="intergeo_lbrr_code" value="[intergeo id="<?php echo $id ?>"]<?php echo !empty( $json['address'] ) ? esc_attr( $json['address'] ) : '' ?>[/intergeo]">
|
44 |
+
</td>
|
45 |
+
<td class="intergeo_lbrr_item_actions">
|
46 |
+
<a class="intergeo_lbrr_item_edit" href="javascript:;" title="<?php _e( "Edit", INTERGEO_PLUGIN_NAME ) ?>" data-map="<?php echo $id ?>"></a>
|
47 |
+
<a class="intergeo_lbrr_item_copy" href="javascript:;" title="<?php _e( "Copy", INTERGEO_PLUGIN_NAME ) ?>" data-map="<?php echo $id ?>"></a>
|
48 |
+
<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>
|
49 |
+
</td>
|
50 |
+
</tr>
|
51 |
+
</table>
|
52 |
+
</div>
|
53 |
+
</div>
|
54 |
+
<script type="text/javascript">
|
55 |
+
/* <![CDATA[ */
|
56 |
+
window.intergeo_maps.push({
|
57 |
+
container: 'intergeo_map<?php echo $id ?>',
|
58 |
+
options: <?php echo $post->post_content ?>
|
59 |
+
});
|
60 |
+
/* ]]> */
|
61 |
+
</script><?php
|
62 |
+
|
63 |
+
$index++;
|
64 |
+
endwhile;
|
65 |
+
|
66 |
+
?><div style="clear:both"></div>
|
67 |
+
</div>
|
68 |
+
|
69 |
+
<?php if ( !empty( $pagination ) ) : ?>
|
70 |
+
<div>
|
71 |
+
<ul id="intergeo_lbrr_pgntn">
|
72 |
+
<?php foreach ( $pagination as $page_item ) : ?>
|
73 |
+
<li><?php echo $page_item ?></li>
|
74 |
+
<?php endforeach; ?>
|
75 |
+
</ul>
|
76 |
+
<div style="clear:both"></div>
|
77 |
+
</div>
|
78 |
+
<?php endif; ?>
|
79 |
+
|
80 |
+
<?php else : ?>
|
81 |
+
<p>
|
82 |
+
<?php esc_html_e( 'You do not have created maps. Start adding it by clicking "Add New" button.', INTERGEO_PLUGIN_NAME ) ?>
|
83 |
+
</p>
|
84 |
+
<?php endif; ?>
|
85 |
</div>
|