Version Description
Download this release
Release Info
Developer | dlocc |
Plugin | ![]() |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- LICENSE.txt +339 -0
- README.txt +112 -0
- admin/assets/css/admin-settings.css +196 -0
- admin/assets/css/admin-settings.min.css +1 -0
- admin/assets/css/admin-widget.css +459 -0
- admin/assets/css/admin-widget.min.css +1 -0
- admin/assets/css/admin.css +687 -0
- admin/assets/css/admin.min.css +1 -0
- admin/assets/css/grid.css +890 -0
- admin/assets/css/grid.min.css +1 -0
- admin/assets/css/index.php +1 -0
- admin/assets/img/arrows.png +0 -0
- admin/assets/img/help.png +0 -0
- admin/assets/img/icons-app-000.svg +56 -0
- admin/assets/img/icons-infowindow-002.svg +111 -0
- admin/assets/img/marker-btn.png +0 -0
- admin/assets/img/new-window-icon.png +0 -0
- admin/assets/img/powered-by-google-on-white.png +0 -0
- admin/assets/img/spinner.gif +0 -0
- admin/assets/img/wordimpress-logo-small.png +0 -0
- admin/assets/js/admin-google-map.min.js +1 -0
- admin/assets/js/admin-settings.js +53 -0
- admin/assets/js/admin-settings.min.js +1 -0
- admin/assets/js/admin-widget.js +267 -0
- admin/assets/js/admin-widget.min.js +1 -0
- admin/assets/js/index.php +1 -0
- admin/class-wordpress-google-maps-admin.php +758 -0
- admin/class-wordpress-google-maps-settings.php +422 -0
- admin/includes/index.php +1 -0
- admin/includes/tooltips/jquery.qtip.css +513 -0
- admin/includes/tooltips/jquery.qtip.js +3302 -0
- admin/includes/tooltips/jquery.qtip.min.css +2 -0
- admin/includes/tooltips/jquery.qtip.min.js +5 -0
- admin/includes/tooltips/jquery.qtip.min.map +1 -0
- admin/views/admin-widget.php +61 -0
- admin/views/index.php +1 -0
- admin/views/logo-svg-small.php +33 -0
- admin/views/logo-svg.php +34 -0
- admin/views/markers.php +224 -0
- admin/views/settings-page.php +86 -0
- admin/views/social-media.php +45 -0
- admin/views/tab-general-settings.php +28 -0
- admin/views/tab-map-options.php +31 -0
- google-maps-builder.php +64 -0
- includes/assets/css/index.php +1 -0
- includes/assets/img/loading.GIF +0 -0
- includes/assets/img/review_stars.png +0 -0
- includes/assets/index.php +1 -0
- includes/assets/js/index.php +1 -0
- includes/index.php +1 -0
- includes/map-icons/README.md +118 -0
- includes/map-icons/css/map-icons.css +568 -0
- includes/map-icons/demo.html +124 -0
- includes/map-icons/fonts/map-icons.dev.svg +1394 -0
- includes/map-icons/fonts/map-icons.eot +0 -0
- includes/map-icons/fonts/map-icons.svg +1394 -0
- includes/map-icons/fonts/map-icons.ttf +0 -0
- includes/map-icons/fonts/map-icons.woff +0 -0
- includes/map-icons/js/map-icons-ie7.js +203 -0
- includes/map-icons/js/map-icons.js +99 -0
- includes/map-icons/js/map-icons.min.js +7 -0
- includes/metabox/example-functions.php +413 -0
- includes/metabox/helpers/cmb_Meta_Box_Sanitize.php +346 -0
- includes/metabox/helpers/cmb_Meta_Box_Show_Filters.php +105 -0
- includes/metabox/helpers/cmb_Meta_Box_ajax.php +203 -0
- includes/metabox/helpers/cmb_Meta_Box_field.php +478 -0
- includes/metabox/helpers/cmb_Meta_Box_types.php +791 -0
- includes/metabox/images/ico-delete.png +0 -0
- includes/metabox/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- includes/metabox/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- includes/metabox/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- includes/metabox/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- includes/metabox/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- includes/metabox/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- includes/metabox/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- includes/metabox/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- includes/metabox/images/ui-icons_222222_256x240.png +0 -0
- includes/metabox/images/ui-icons_2e83ff_256x240.png +0 -0
- includes/metabox/images/ui-icons_454545_256x240.png +0 -0
- includes/metabox/images/ui-icons_888888_256x240.png +0 -0
- includes/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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
GNU GENERAL PUBLIC LICENSE
|
2 |
+
Version 2, June 1991
|
3 |
+
|
4 |
+
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
5 |
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
6 |
+
Everyone is permitted to copy and distribute verbatim copies
|
7 |
+
of this license document, but changing it is not allowed.
|
8 |
+
|
9 |
+
Preamble
|
10 |
+
|
11 |
+
The licenses for most software are designed to take away your
|
12 |
+
freedom to share and change it. By contrast, the GNU General Public
|
13 |
+
License is intended to guarantee your freedom to share and change free
|
14 |
+
software--to make sure the software is free for all its users. This
|
15 |
+
General Public License applies to most of the Free Software
|
16 |
+
Foundation's software and to any other program whose authors commit to
|
17 |
+
using it. (Some other Free Software Foundation software is covered by
|
18 |
+
the GNU Lesser General Public License instead.) You can apply it to
|
19 |
+
your programs, too.
|
20 |
+
|
21 |
+
When we speak of free software, we are referring to freedom, not
|
22 |
+
price. Our General Public Licenses are designed to make sure that you
|
23 |
+
have the freedom to distribute copies of free software (and charge for
|
24 |
+
this service if you wish), that you receive source code or can get it
|
25 |
+
if you want it, that you can change the software or use pieces of it
|
26 |
+
in new free programs; and that you know you can do these things.
|
27 |
+
|
28 |
+
To protect your rights, we need to make restrictions that forbid
|
29 |
+
anyone to deny you these rights or to ask you to surrender the rights.
|
30 |
+
These restrictions translate to certain responsibilities for you if you
|
31 |
+
distribute copies of the software, or if you modify it.
|
32 |
+
|
33 |
+
For example, if you distribute copies of such a program, whether
|
34 |
+
gratis or for a fee, you must give the recipients all the rights that
|
35 |
+
you have. You must make sure that they, too, receive or can get the
|
36 |
+
source code. And you must show them these terms so they know their
|
37 |
+
rights.
|
38 |
+
|
39 |
+
We protect your rights with two steps: (1) copyright the software, and
|
40 |
+
(2) offer you this license which gives you legal permission to copy,
|
41 |
+
distribute and/or modify the software.
|
42 |
+
|
43 |
+
Also, for each author's protection and ours, we want to make certain
|
44 |
+
that everyone understands that there is no warranty for this free
|
45 |
+
software. If the software is modified by someone else and passed on, we
|
46 |
+
want its recipients to know that what they have is not the original, so
|
47 |
+
that any problems introduced by others will not reflect on the original
|
48 |
+
authors' reputations.
|
49 |
+
|
50 |
+
Finally, any free program is threatened constantly by software
|
51 |
+
patents. We wish to avoid the danger that redistributors of a free
|
52 |
+
program will individually obtain patent licenses, in effect making the
|
53 |
+
program proprietary. To prevent this, we have made it clear that any
|
54 |
+
patent must be licensed for everyone's free use or not licensed at all.
|
55 |
+
|
56 |
+
The precise terms and conditions for copying, distribution and
|
57 |
+
modification follow.
|
58 |
+
|
59 |
+
GNU GENERAL PUBLIC LICENSE
|
60 |
+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
61 |
+
|
62 |
+
0. This License applies to any program or other work which contains
|
63 |
+
a notice placed by the copyright holder saying it may be distributed
|
64 |
+
under the terms of this General Public License. The "Program", below,
|
65 |
+
refers to any such program or work, and a "work based on the Program"
|
66 |
+
means either the Program or any derivative work under copyright law:
|
67 |
+
that is to say, a work containing the Program or a portion of it,
|
68 |
+
either verbatim or with modifications and/or translated into another
|
69 |
+
language. (Hereinafter, translation is included without limitation in
|
70 |
+
the term "modification".) Each licensee is addressed as "you".
|
71 |
+
|
72 |
+
Activities other than copying, distribution and modification are not
|
73 |
+
covered by this License; they are outside its scope. The act of
|
74 |
+
running the Program is not restricted, and the output from the Program
|
75 |
+
is covered only if its contents constitute a work based on the
|
76 |
+
Program (independent of having been made by running the Program).
|
77 |
+
Whether that is true depends on what the Program does.
|
78 |
+
|
79 |
+
1. You may copy and distribute verbatim copies of the Program's
|
80 |
+
source code as you receive it, in any medium, provided that you
|
81 |
+
conspicuously and appropriately publish on each copy an appropriate
|
82 |
+
copyright notice and disclaimer of warranty; keep intact all the
|
83 |
+
notices that refer to this License and to the absence of any warranty;
|
84 |
+
and give any other recipients of the Program a copy of this License
|
85 |
+
along with the Program.
|
86 |
+
|
87 |
+
You may charge a fee for the physical act of transferring a copy, and
|
88 |
+
you may at your option offer warranty protection in exchange for a fee.
|
89 |
+
|
90 |
+
2. You may modify your copy or copies of the Program or any portion
|
91 |
+
of it, thus forming a work based on the Program, and copy and
|
92 |
+
distribute such modifications or work under the terms of Section 1
|
93 |
+
above, provided that you also meet all of these conditions:
|
94 |
+
|
95 |
+
a) You must cause the modified files to carry prominent notices
|
96 |
+
stating that you changed the files and the date of any change.
|
97 |
+
|
98 |
+
b) You must cause any work that you distribute or publish, that in
|
99 |
+
whole or in part contains or is derived from the Program or any
|
100 |
+
part thereof, to be licensed as a whole at no charge to all third
|
101 |
+
parties under the terms of this License.
|
102 |
+
|
103 |
+
c) If the modified program normally reads commands interactively
|
104 |
+
when run, you must cause it, when started running for such
|
105 |
+
interactive use in the most ordinary way, to print or display an
|
106 |
+
announcement including an appropriate copyright notice and a
|
107 |
+
notice that there is no warranty (or else, saying that you provide
|
108 |
+
a warranty) and that users may redistribute the program under
|
109 |
+
these conditions, and telling the user how to view a copy of this
|
110 |
+
License. (Exception: if the Program itself is interactive but
|
111 |
+
does not normally print such an announcement, your work based on
|
112 |
+
the Program is not required to print an announcement.)
|
113 |
+
|
114 |
+
These requirements apply to the modified work as a whole. If
|
115 |
+
identifiable sections of that work are not derived from the Program,
|
116 |
+
and can be reasonably considered independent and separate works in
|
117 |
+
themselves, then this License, and its terms, do not apply to those
|
118 |
+
sections when you distribute them as separate works. But when you
|
119 |
+
distribute the same sections as part of a whole which is a work based
|
120 |
+
on the Program, the distribution of the whole must be on the terms of
|
121 |
+
this License, whose permissions for other licensees extend to the
|
122 |
+
entire whole, and thus to each and every part regardless of who wrote it.
|
123 |
+
|
124 |
+
Thus, it is not the intent of this section to claim rights or contest
|
125 |
+
your rights to work written entirely by you; rather, the intent is to
|
126 |
+
exercise the right to control the distribution of derivative or
|
127 |
+
collective works based on the Program.
|
128 |
+
|
129 |
+
In addition, mere aggregation of another work not based on the Program
|
130 |
+
with the Program (or with a work based on the Program) on a volume of
|
131 |
+
a storage or distribution medium does not bring the other work under
|
132 |
+
the scope of this License.
|
133 |
+
|
134 |
+
3. You may copy and distribute the Program (or a work based on it,
|
135 |
+
under Section 2) in object code or executable form under the terms of
|
136 |
+
Sections 1 and 2 above provided that you also do one of the following:
|
137 |
+
|
138 |
+
a) Accompany it with the complete corresponding machine-readable
|
139 |
+
source code, which must be distributed under the terms of Sections
|
140 |
+
1 and 2 above on a medium customarily used for software interchange; or,
|
141 |
+
|
142 |
+
b) Accompany it with a written offer, valid for at least three
|
143 |
+
years, to give any third party, for a charge no more than your
|
144 |
+
cost of physically performing source distribution, a complete
|
145 |
+
machine-readable copy of the corresponding source code, to be
|
146 |
+
distributed under the terms of Sections 1 and 2 above on a medium
|
147 |
+
customarily used for software interchange; or,
|
148 |
+
|
149 |
+
c) Accompany it with the information you received as to the offer
|
150 |
+
to distribute corresponding source code. (This alternative is
|
151 |
+
allowed only for noncommercial distribution and only if you
|
152 |
+
received the program in object code or executable form with such
|
153 |
+
an offer, in accord with Subsection b above.)
|
154 |
+
|
155 |
+
The source code for a work means the preferred form of the work for
|
156 |
+
making modifications to it. For an executable work, complete source
|
157 |
+
code means all the source code for all modules it contains, plus any
|
158 |
+
associated interface definition files, plus the scripts used to
|
159 |
+
control compilation and installation of the executable. However, as a
|
160 |
+
special exception, the source code distributed need not include
|
161 |
+
anything that is normally distributed (in either source or binary
|
162 |
+
form) with the major components (compiler, kernel, and so on) of the
|
163 |
+
operating system on which the executable runs, unless that component
|
164 |
+
itself accompanies the executable.
|
165 |
+
|
166 |
+
If distribution of executable or object code is made by offering
|
167 |
+
access to copy from a designated place, then offering equivalent
|
168 |
+
access to copy the source code from the same place counts as
|
169 |
+
distribution of the source code, even though third parties are not
|
170 |
+
compelled to copy the source along with the object code.
|
171 |
+
|
172 |
+
4. You may not copy, modify, sublicense, or distribute the Program
|
173 |
+
except as expressly provided under this License. Any attempt
|
174 |
+
otherwise to copy, modify, sublicense or distribute the Program is
|
175 |
+
void, and will automatically terminate your rights under this License.
|
176 |
+
However, parties who have received copies, or rights, from you under
|
177 |
+
this License will not have their licenses terminated so long as such
|
178 |
+
parties remain in full compliance.
|
179 |
+
|
180 |
+
5. You are not required to accept this License, since you have not
|
181 |
+
signed it. However, nothing else grants you permission to modify or
|
182 |
+
distribute the Program or its derivative works. These actions are
|
183 |
+
prohibited by law if you do not accept this License. Therefore, by
|
184 |
+
modifying or distributing the Program (or any work based on the
|
185 |
+
Program), you indicate your acceptance of this License to do so, and
|
186 |
+
all its terms and conditions for copying, distributing or modifying
|
187 |
+
the Program or works based on it.
|
188 |
+
|
189 |
+
6. Each time you redistribute the Program (or any work based on the
|
190 |
+
Program), the recipient automatically receives a license from the
|
191 |
+
original licensor to copy, distribute or modify the Program subject to
|
192 |
+
these terms and conditions. You may not impose any further
|
193 |
+
restrictions on the recipients' exercise of the rights granted herein.
|
194 |
+
You are not responsible for enforcing compliance by third parties to
|
195 |
+
this License.
|
196 |
+
|
197 |
+
7. If, as a consequence of a court judgment or allegation of patent
|
198 |
+
infringement or for any other reason (not limited to patent issues),
|
199 |
+
conditions are imposed on you (whether by court order, agreement or
|
200 |
+
otherwise) that contradict the conditions of this License, they do not
|
201 |
+
excuse you from the conditions of this License. If you cannot
|
202 |
+
distribute so as to satisfy simultaneously your obligations under this
|
203 |
+
License and any other pertinent obligations, then as a consequence you
|
204 |
+
may not distribute the Program at all. For example, if a patent
|
205 |
+
license would not permit royalty-free redistribution of the Program by
|
206 |
+
all those who receive copies directly or indirectly through you, then
|
207 |
+
the only way you could satisfy both it and this License would be to
|
208 |
+
refrain entirely from distribution of the Program.
|
209 |
+
|
210 |
+
If any portion of this section is held invalid or unenforceable under
|
211 |
+
any particular circumstance, the balance of the section is intended to
|
212 |
+
apply and the section as a whole is intended to apply in other
|
213 |
+
circumstances.
|
214 |
+
|
215 |
+
It is not the purpose of this section to induce you to infringe any
|
216 |
+
patents or other property right claims or to contest validity of any
|
217 |
+
such claims; this section has the sole purpose of protecting the
|
218 |
+
integrity of the free software distribution system, which is
|
219 |
+
implemented by public license practices. Many people have made
|
220 |
+
generous contributions to the wide range of software distributed
|
221 |
+
through that system in reliance on consistent application of that
|
222 |
+
system; it is up to the author/donor to decide if he or she is willing
|
223 |
+
to distribute software through any other system and a licensee cannot
|
224 |
+
impose that choice.
|
225 |
+
|
226 |
+
This section is intended to make thoroughly clear what is believed to
|
227 |
+
be a consequence of the rest of this License.
|
228 |
+
|
229 |
+
8. If the distribution and/or use of the Program is restricted in
|
230 |
+
certain countries either by patents or by copyrighted interfaces, the
|
231 |
+
original copyright holder who places the Program under this License
|
232 |
+
may add an explicit geographical distribution limitation excluding
|
233 |
+
those countries, so that distribution is permitted only in or among
|
234 |
+
countries not thus excluded. In such case, this License incorporates
|
235 |
+
the limitation as if written in the body of this License.
|
236 |
+
|
237 |
+
9. The Free Software Foundation may publish revised and/or new versions
|
238 |
+
of the General Public License from time to time. Such new versions will
|
239 |
+
be similar in spirit to the present version, but may differ in detail to
|
240 |
+
address new problems or concerns.
|
241 |
+
|
242 |
+
Each version is given a distinguishing version number. If the Program
|
243 |
+
specifies a version number of this License which applies to it and "any
|
244 |
+
later version", you have the option of following the terms and conditions
|
245 |
+
either of that version or of any later version published by the Free
|
246 |
+
Software Foundation. If the Program does not specify a version number of
|
247 |
+
this License, you may choose any version ever published by the Free Software
|
248 |
+
Foundation.
|
249 |
+
|
250 |
+
10. If you wish to incorporate parts of the Program into other free
|
251 |
+
programs whose distribution conditions are different, write to the author
|
252 |
+
to ask for permission. For software which is copyrighted by the Free
|
253 |
+
Software Foundation, write to the Free Software Foundation; we sometimes
|
254 |
+
make exceptions for this. Our decision will be guided by the two goals
|
255 |
+
of preserving the free status of all derivatives of our free software and
|
256 |
+
of promoting the sharing and reuse of software generally.
|
257 |
+
|
258 |
+
NO WARRANTY
|
259 |
+
|
260 |
+
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
261 |
+
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
262 |
+
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
263 |
+
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
264 |
+
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
265 |
+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
266 |
+
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
267 |
+
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
268 |
+
REPAIR OR CORRECTION.
|
269 |
+
|
270 |
+
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
271 |
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
272 |
+
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
273 |
+
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
274 |
+
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
275 |
+
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
276 |
+
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
277 |
+
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
278 |
+
POSSIBILITY OF SUCH DAMAGES.
|
279 |
+
|
280 |
+
END OF TERMS AND CONDITIONS
|
281 |
+
|
282 |
+
How to Apply These Terms to Your New Programs
|
283 |
+
|
284 |
+
If you develop a new program, and you want it to be of the greatest
|
285 |
+
possible use to the public, the best way to achieve this is to make it
|
286 |
+
free software which everyone can redistribute and change under these terms.
|
287 |
+
|
288 |
+
To do so, attach the following notices to the program. It is safest
|
289 |
+
to attach them to the start of each source file to most effectively
|
290 |
+
convey the exclusion of warranty; and each file should have at least
|
291 |
+
the "copyright" line and a pointer to where the full notice is found.
|
292 |
+
|
293 |
+
<one line to give the program's name and a brief idea of what it does.>
|
294 |
+
Copyright (C) <year> <name of author>
|
295 |
+
|
296 |
+
This program is free software; you can redistribute it and/or modify
|
297 |
+
it under the terms of the GNU General Public License as published by
|
298 |
+
the Free Software Foundation; either version 2 of the License, or
|
299 |
+
(at your option) any later version.
|
300 |
+
|
301 |
+
This program is distributed in the hope that it will be useful,
|
302 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
303 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
304 |
+
GNU General Public License for more details.
|
305 |
+
|
306 |
+
You should have received a copy of the GNU General Public License along
|
307 |
+
with this program; if not, write to the Free Software Foundation, Inc.,
|
308 |
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
309 |
+
|
310 |
+
Also add information on how to contact you by electronic and paper mail.
|
311 |
+
|
312 |
+
If the program is interactive, make it output a short notice like this
|
313 |
+
when it starts in an interactive mode:
|
314 |
+
|
315 |
+
Gnomovision version 69, Copyright (C) year name of author
|
316 |
+
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
317 |
+
This is free software, and you are welcome to redistribute it
|
318 |
+
under certain conditions; type `show c' for details.
|
319 |
+
|
320 |
+
The hypothetical commands `show w' and `show c' should show the appropriate
|
321 |
+
parts of the General Public License. Of course, the commands you use may
|
322 |
+
be called something other than `show w' and `show c'; they could even be
|
323 |
+
mouse-clicks or menu items--whatever suits your program.
|
324 |
+
|
325 |
+
You should also get your employer (if you work as a programmer) or your
|
326 |
+
school, if any, to sign a "copyright disclaimer" for the program, if
|
327 |
+
necessary. Here is a sample; alter the names:
|
328 |
+
|
329 |
+
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
330 |
+
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
331 |
+
|
332 |
+
<signature of Ty Coon>, 1 April 1989
|
333 |
+
Ty Coon, President of Vice
|
334 |
+
|
335 |
+
This General Public License does not permit incorporating your program into
|
336 |
+
proprietary programs. If your program is a subroutine library, you may
|
337 |
+
consider it more useful to permit linking proprietary applications with the
|
338 |
+
library. If this is what you want to do, use the GNU Lesser General
|
339 |
+
Public License instead of this License.
|
README.txt
ADDED
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== Google Maps Builder ===
|
2 |
+
Contributors: dlocc, wordimpress
|
3 |
+
Donate link: http://wordimpress.com/
|
4 |
+
Tags: google maps, google map, google map widget, google map shortcode, maps, map, wp map, wp google maps, google maps directions, google maps builder, google maps plugin, google places, google places api, google maps api, google places reviews
|
5 |
+
Requires at least: 3.6
|
6 |
+
Tested up to: 3.9
|
7 |
+
Stable tag: 1.0.0
|
8 |
+
License: GPLv2 or later
|
9 |
+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
+
|
11 |
+
One Google Maps plugin to rule them all. Google Maps Builder is intuitive, sleek, powerful and easy to use. Forget the rest, use the best.
|
12 |
+
|
13 |
+
== Description ==
|
14 |
+
|
15 |
+
Google Maps Builder isn't just another Google Maps plugin. It's built from the ground up to be the easiest, most intuitive and fastest Google Maps plugin for WordPress. Visually build powerfule customized Google Maps to use on your WordPress site quickly and easily without ever having to touch a bit of code.
|
16 |
+
|
17 |
+
= Plugin highlights: =
|
18 |
+
|
19 |
+
* **Google Places API integration** to display business ratings and nearby points of interest
|
20 |
+
* **Snazzy Maps integration** for truly unique Google Map themes that look great with any design
|
21 |
+
* **Unique Marker Icons** The only plugin with [Map Icons](map-icons.com) integration; set icon and marker colors for truly unique markers
|
22 |
+
* **Intuitive UI** that seamlessly integrates with WordPress' - no eye sores or outdated interfaces here
|
23 |
+
* **Small Footprint** - GMB does not create any new database tables, not even one
|
24 |
+
* **Optimized** - All scripts and styles are optimized and packaged with Grunt
|
25 |
+
* **No notices or warnings** We developed this plugins in debug mode. This results in high quality plugins with no errors, warnings or notices.
|
26 |
+
|
27 |
+
= Marker Creation =
|
28 |
+
|
29 |
+
Google Maps builder features a simple **"Point and Click" marker creation system**. As well, you can add markers using an intuitive Google autocomplete search field. As well, **Bulk edit marker data ** using meta fields attached to each marker's content.
|
30 |
+
|
31 |
+
= Map Themes =
|
32 |
+
|
33 |
+
Want to add some pazazz to your maps? [Snazzy Maps](http://snazzymaps.com/) themes are baked right in to Google Map Builder. This means your maps can stand out, fit into any design, and look unique and intriguing.
|
34 |
+
|
35 |
+
|
36 |
+
|
37 |
+
== Installation ==
|
38 |
+
|
39 |
+
This section describes how to install the plugin and get it working.
|
40 |
+
|
41 |
+
= Using The WordPress Dashboard =
|
42 |
+
|
43 |
+
1. Navigate to the 'Add New' in the plugins dashboard
|
44 |
+
2. Search for 'Google Maps Builder'
|
45 |
+
3. Click 'Install Now'
|
46 |
+
4. Activate the plugin on the Plugin dashboard
|
47 |
+
|
48 |
+
= Uploading in WordPress Dashboard =
|
49 |
+
|
50 |
+
1. Navigate to the 'Add New' in the plugins dashboard
|
51 |
+
2. Navigate to the 'Upload' area
|
52 |
+
3. Select `google-maps-builder.zip` from your computer
|
53 |
+
4. Click 'Install Now'
|
54 |
+
5. Activate the plugin in the Plugin dashboard
|
55 |
+
|
56 |
+
= Using FTP =
|
57 |
+
|
58 |
+
1. Download `google-maps-builder.zip`
|
59 |
+
2. Extract the `google-maps-builder` directory to your computer
|
60 |
+
3. Upload the `google-maps-builder` directory to the `/wp-content/plugins/` directory
|
61 |
+
4. Activate the plugin in the Plugin dashboard
|
62 |
+
|
63 |
+
== Frequently Asked Questions ==
|
64 |
+
|
65 |
+
1. What sets this plugin apart from all the other Google Maps plugins for WordPress?
|
66 |
+
|
67 |
+
There are many features and functionality that set Google Maps Builder apart. The plugin is built from the ground up to be easy and fun to use. We've placed extra care and attention on the map creation process. The admin UI integrates seamlessly with WordPress without adding and distracting visuals. Built in integration with Google Places means you can display various points of interest next to your markers for added value.
|
68 |
+
|
69 |
+
There is really a lot more that distinguishes GMB, but you should see for yourself. Give it a try!
|
70 |
+
|
71 |
+
2. Does this plugin create any new database tables?
|
72 |
+
|
73 |
+
Unlike other Google Maps plugins, Google Maps Builder does not create a single new table in your WordPress database. There is no added database overhead or foreign MySQL queries. It's our guarantee that this plugin will never leave an orphaned table in your WordPress account.
|
74 |
+
|
75 |
+
|
76 |
+
== Roadmap ==
|
77 |
+
|
78 |
+
Here is what we are working on for future releases:
|
79 |
+
|
80 |
+
* Maps Widget - Build in a widget to output Google Maps
|
81 |
+
* Custom Map Marker Images - Ability to upload your own map marker images
|
82 |
+
* Map Icons: Fix maps icon overlap issue when they are bunched in an area (zIndex issue)
|
83 |
+
* Admin JS i18n - Please contact us at info@wordimpress.com to volunteer for translating!
|
84 |
+
* Public JS i18n - Please contact us at info@wordimpress.com to volunteer for translating!
|
85 |
+
* Google Places - Add the ability to remove place information
|
86 |
+
* Google Places - Pagination for markers, the ability to set number of markers
|
87 |
+
* Google Places - Customize the individual place markers
|
88 |
+
* Markers - Add the ability to drag markers to new positions (lat, lng) in builder.
|
89 |
+
* Info Window - Add a WYSIWYG editor? Possible complications with this.
|
90 |
+
|
91 |
+
Bug Fixes
|
92 |
+
|
93 |
+
* Info Window - FOUC: Investigate why sometimes pointer tip of info window flashes before it opens (mainly Chrome)
|
94 |
+
* Chrome - Look into while map tiles have strange lines in between
|
95 |
+
* Firefox - Clicking on a marker to open the same info window creates content overflow
|
96 |
+
|
97 |
+
== Screenshots ==
|
98 |
+
|
99 |
+
1. **Google Map Builder** - A view of the single map view in the WordPress admin panel. Notice the autocomplete search field and "Drop a Marker" button.
|
100 |
+
|
101 |
+
2. **Editable Marker** - Customize the content of the map markers directly in the builder. Built to mock Google's own Maps Engine.
|
102 |
+
|
103 |
+
3. **Custom Markers** - Configure a marker to fit your location. Easily adjust the marker, icon and color.
|
104 |
+
|
105 |
+
4. **Frontend View** - A view the a map on the frontend of a WordPress site using the TwentyTwelve theme. This map displays various Google Places.
|
106 |
+
|
107 |
+
5. **Settings Panel** - Adjust the various plugin settings using a UI that is built using WordPress' own styles.
|
108 |
+
|
109 |
+
== Changelog ==
|
110 |
+
|
111 |
+
= 1.0 =
|
112 |
+
* Plugin released. Yay!
|
admin/assets/css/admin-settings.css
ADDED
@@ -0,0 +1,196 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Google Places Map CPT Styles
|
3 |
+
*/
|
4 |
+
|
5 |
+
.wrap {
|
6 |
+
margin-left: -5px;
|
7 |
+
}
|
8 |
+
|
9 |
+
.clear:before,
|
10 |
+
.clear:after {
|
11 |
+
content: " ";
|
12 |
+
display: table;
|
13 |
+
}
|
14 |
+
|
15 |
+
.clear:after {
|
16 |
+
clear: both;
|
17 |
+
}
|
18 |
+
|
19 |
+
table.form-table {
|
20 |
+
margin:0 0 20px;
|
21 |
+
}
|
22 |
+
|
23 |
+
/*---------------------------
|
24 |
+
Header
|
25 |
+
-----------------------------*/
|
26 |
+
|
27 |
+
.main-heading {
|
28 |
+
font-size: 36px;
|
29 |
+
font-weight: 400;
|
30 |
+
line-height: 1.1em;
|
31 |
+
margin: 10px 0 20px;
|
32 |
+
}
|
33 |
+
|
34 |
+
.main-subheading {
|
35 |
+
font-size: 20px;
|
36 |
+
line-height: 1.4em;
|
37 |
+
}
|
38 |
+
|
39 |
+
.logo-svg {
|
40 |
+
margin: 15px 0 0;
|
41 |
+
}
|
42 |
+
|
43 |
+
.logo-svg.logo-svg-small {
|
44 |
+
float: right;
|
45 |
+
margin: 0;
|
46 |
+
}
|
47 |
+
|
48 |
+
.gmb-plugin-heading {
|
49 |
+
width: 170px;
|
50 |
+
float: left;
|
51 |
+
margin: 9px 0 0;
|
52 |
+
}
|
53 |
+
|
54 |
+
.new-window {
|
55 |
+
background: url('../img/new-window-icon.png') no-repeat right 5px transparent;
|
56 |
+
padding-right: 13px;
|
57 |
+
margin-right: 4px;
|
58 |
+
}
|
59 |
+
|
60 |
+
/* Social Media */
|
61 |
+
|
62 |
+
.social-items-wrap {
|
63 |
+
float: left;
|
64 |
+
}
|
65 |
+
|
66 |
+
.social-items-wrap > div {
|
67 |
+
display: inline-block;
|
68 |
+
}
|
69 |
+
|
70 |
+
.google-plus {
|
71 |
+
margin-left: 20px;
|
72 |
+
display: inline;
|
73 |
+
width: 150px;
|
74 |
+
}
|
75 |
+
|
76 |
+
.wordimpress-logo {
|
77 |
+
float: left;
|
78 |
+
margin: -7px 0 0;
|
79 |
+
}
|
80 |
+
|
81 |
+
.logo-link {
|
82 |
+
background: url('../img/wordimpress-logo-small.png') no-repeat 0 0 transparent;
|
83 |
+
width: 100px;
|
84 |
+
height: 40px;
|
85 |
+
display: block;
|
86 |
+
}
|
87 |
+
|
88 |
+
.hide-welcome {
|
89 |
+
margin: 2px 0 0 30px;
|
90 |
+
}
|
91 |
+
|
92 |
+
.hide-welcome span {
|
93 |
+
background: url('../img/arrows.png') no-repeat 0 -33px rgba(0, 0, 0, 0);
|
94 |
+
width: 15px;
|
95 |
+
height: 14px;
|
96 |
+
display: inline-block;
|
97 |
+
margin-left: 3px;
|
98 |
+
}
|
99 |
+
|
100 |
+
.pull-left {
|
101 |
+
float: left;
|
102 |
+
}
|
103 |
+
|
104 |
+
.pull-right {
|
105 |
+
float: right;
|
106 |
+
}
|
107 |
+
|
108 |
+
.small-desc {
|
109 |
+
font-size: 12px;
|
110 |
+
font-style: italic;
|
111 |
+
color: #B3B3B3;
|
112 |
+
}
|
113 |
+
|
114 |
+
/*---------------------------
|
115 |
+
Map Options Tab
|
116 |
+
-----------------------------*/
|
117 |
+
|
118 |
+
.size-label {
|
119 |
+
margin: 8px 10px 0 0;
|
120 |
+
font-style: italic;
|
121 |
+
width: 50px;
|
122 |
+
}
|
123 |
+
|
124 |
+
/* Map Size */
|
125 |
+
|
126 |
+
.width_unit_label, .width_radio, .map-width, .map-height, .size-label, .radio-left, .label-left {
|
127 |
+
float: left !important;
|
128 |
+
}
|
129 |
+
|
130 |
+
#width_wrap {
|
131 |
+
margin: 0 0 10px;
|
132 |
+
}
|
133 |
+
|
134 |
+
#size_labels_wrap {
|
135 |
+
margin: 8px 0 0 10px;
|
136 |
+
padding: 0;
|
137 |
+
float: left;
|
138 |
+
}
|
139 |
+
|
140 |
+
#width_unit_percent {
|
141 |
+
margin: 0 3px 0 0;
|
142 |
+
}
|
143 |
+
|
144 |
+
#width_unit_px {
|
145 |
+
margin: 0 3px 0 8px;
|
146 |
+
}
|
147 |
+
|
148 |
+
.map-width, .map-height {
|
149 |
+
width: 55px !important
|
150 |
+
}
|
151 |
+
|
152 |
+
/* Lat Lng */
|
153 |
+
#lat-lng-wrap {
|
154 |
+
float: left;
|
155 |
+
clear: both;
|
156 |
+
margin: 15px 0 0;
|
157 |
+
display: none;
|
158 |
+
}
|
159 |
+
|
160 |
+
label.geocode-label {
|
161 |
+
width: 130px;
|
162 |
+
margin-right: 0;
|
163 |
+
}
|
164 |
+
|
165 |
+
label.yes-label {
|
166 |
+
margin-right: 10px;
|
167 |
+
}
|
168 |
+
|
169 |
+
#lat-lng-wrap input[type=text].latitude, #lat-lng-wrap input[type=text].longitude {
|
170 |
+
width: 120px;
|
171 |
+
float: left;
|
172 |
+
}
|
173 |
+
|
174 |
+
.lat-lng-wrap {
|
175 |
+
margin: 0 0 10px;
|
176 |
+
clear: none;
|
177 |
+
}
|
178 |
+
|
179 |
+
.lat-lng-wrap > span, .lat-lng-wrap > input {
|
180 |
+
float: left;
|
181 |
+
}
|
182 |
+
|
183 |
+
.lat-lng-wrap > span {
|
184 |
+
margin: 8px 5px 0 0;
|
185 |
+
width: 80px;
|
186 |
+
font-style: italic;
|
187 |
+
}
|
188 |
+
|
189 |
+
|
190 |
+
/*---------------------------
|
191 |
+
General Options Tab
|
192 |
+
-----------------------------*/
|
193 |
+
|
194 |
+
#gmb_menu_position {
|
195 |
+
width: 40px;
|
196 |
+
}
|
admin/assets/css/admin-settings.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.wrap{margin-left:-5px}.clear:before,.clear:after{content:" ";display:table}.clear:after{clear:both}table.form-table{margin:0 0 20px}.main-heading{font-size:36px;font-weight:400;line-height:1.1em;margin:10px 0 20px}.main-subheading{font-size:20px;line-height:1.4em}.logo-svg{margin:15px 0 0}.logo-svg.logo-svg-small{float:right;margin:0}.gmb-plugin-heading{width:170px;float:left;margin:9px 0 0}.new-window{background:url(../img/new-window-icon.png) no-repeat right 5px transparent;padding-right:13px;margin-right:4px}.social-items-wrap{float:left}.social-items-wrap>div{display:inline-block}.google-plus{margin-left:20px;display:inline;width:150px}.wordimpress-logo{float:left;margin:-7px 0 0}.logo-link{background:url(../img/wordimpress-logo-small.png) no-repeat 0 0 transparent;width:100px;height:40px;display:block}.hide-welcome{margin:2px 0 0 30px}.hide-welcome span{background:url(../img/arrows.png) no-repeat 0 -33px rgba(0,0,0,0);width:15px;height:14px;display:inline-block;margin-left:3px}.pull-left{float:left}.pull-right{float:right}.small-desc{font-size:12px;font-style:italic;color:#B3B3B3}.size-label{margin:8px 10px 0 0;font-style:italic;width:50px}.width_unit_label,.width_radio,.map-width,.map-height,.size-label,.radio-left,.label-left{float:left!important}#width_wrap{margin:0 0 10px}#size_labels_wrap{margin:8px 0 0 10px;padding:0;float:left}#width_unit_percent{margin:0 3px 0 0}#width_unit_px{margin:0 3px 0 8px}.map-width,.map-height{width:55px!important}#lat-lng-wrap{float:left;clear:both;margin:15px 0 0;display:none}label.geocode-label{width:130px;margin-right:0}label.yes-label{margin-right:10px}#lat-lng-wrap input[type=text].latitude,#lat-lng-wrap input[type=text].longitude{width:120px;float:left}.lat-lng-wrap{margin:0 0 10px;clear:none}.lat-lng-wrap>span,.lat-lng-wrap>input{float:left}.lat-lng-wrap>span{margin:8px 5px 0 0;width:80px;font-style:italic}#gmb_menu_position{width:40px}
|
admin/assets/css/admin-widget.css
ADDED
@@ -0,0 +1,459 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* Styles specifically for the Yelp Widget Pro widget in the WP admin interface
|
3 |
+
* Is only loaded on widgets.php
|
4 |
+
*/
|
5 |
+
.wpgp-toggler {
|
6 |
+
padding: 10px;
|
7 |
+
margin: 0 0 10px;
|
8 |
+
cursor: pointer;
|
9 |
+
background-color: #EBEBEB;
|
10 |
+
border: 1px solid #E5E5E5;
|
11 |
+
display: block;
|
12 |
+
}
|
13 |
+
|
14 |
+
.wpgp-toggler span {
|
15 |
+
background: url('../img/arrows.png') no-repeat 60% -107px;
|
16 |
+
float: right;
|
17 |
+
height: 12px;
|
18 |
+
display: inline-block;
|
19 |
+
width: 12px;
|
20 |
+
}
|
21 |
+
|
22 |
+
.wpgp-toggler.toggled span {
|
23 |
+
background-position: 60% 1px;
|
24 |
+
}
|
25 |
+
|
26 |
+
.toggle-item, .reviews-toggle-container {
|
27 |
+
display: none;
|
28 |
+
}
|
29 |
+
|
30 |
+
.toggle-item p {
|
31 |
+
padding: 0;
|
32 |
+
margin: 0 0 10px;
|
33 |
+
}
|
34 |
+
|
35 |
+
.toggle-item.toggled, .reviews-toggle-container.toggled {
|
36 |
+
display: block;
|
37 |
+
}
|
38 |
+
|
39 |
+
.widget-api-option {
|
40 |
+
line-height: 22px;
|
41 |
+
}
|
42 |
+
|
43 |
+
.widget-api-option input {
|
44 |
+
}
|
45 |
+
|
46 |
+
.toggle-item select {
|
47 |
+
background: #FFF;
|
48 |
+
}
|
49 |
+
|
50 |
+
.wpgp-method-span:hover, .search-api-option:hover, .business-api-option:hover {
|
51 |
+
cursor: pointer;
|
52 |
+
}
|
53 |
+
|
54 |
+
.wpgp-method-label {
|
55 |
+
padding-left: 4px;
|
56 |
+
}
|
57 |
+
|
58 |
+
.new-window {
|
59 |
+
background: url('../img/new-window-icon.png') no-repeat right 3px transparent;
|
60 |
+
padding-right: 16px;
|
61 |
+
}
|
62 |
+
|
63 |
+
.wpgp-radio-label {
|
64 |
+
margin: 0 0 5px;
|
65 |
+
display: block;
|
66 |
+
}
|
67 |
+
|
68 |
+
.wpgp-widget-footer-links {
|
69 |
+
font-style: italic;
|
70 |
+
}
|
71 |
+
|
72 |
+
.wpgp-widget-footer-links a {
|
73 |
+
margin-right: 10px;
|
74 |
+
}
|
75 |
+
|
76 |
+
.powered-by-google {
|
77 |
+
background: url('../img/powered-by-google-on-white.png') no-repeat 0 0 transparent;
|
78 |
+
width: 104px;
|
79 |
+
height: 16px;
|
80 |
+
}
|
81 |
+
|
82 |
+
/*------------------------------------------------
|
83 |
+
Google Maps
|
84 |
+
---------------------------------------------------*/
|
85 |
+
.map-canvas {
|
86 |
+
height: 100%;
|
87 |
+
margin: 0px;
|
88 |
+
padding: 0px;
|
89 |
+
min-height: 400px;
|
90 |
+
}
|
91 |
+
|
92 |
+
.google-autocomplete-map-wrap {
|
93 |
+
display: none;
|
94 |
+
}
|
95 |
+
|
96 |
+
.google-autocomplete-map-wrap .controls {
|
97 |
+
margin-top: 16px;
|
98 |
+
border: 1px solid transparent;
|
99 |
+
border-radius: 2px;
|
100 |
+
box-sizing: border-box;
|
101 |
+
-moz-box-sizing: border-box;
|
102 |
+
height: 32px;
|
103 |
+
outline: none;
|
104 |
+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
|
105 |
+
}
|
106 |
+
|
107 |
+
.marker-label,
|
108 |
+
.marker-icon {
|
109 |
+
z-index: 99;
|
110 |
+
position: absolute;
|
111 |
+
display: block;
|
112 |
+
margin-top: -50px;
|
113 |
+
margin-left: -25px;
|
114 |
+
width: 50px;
|
115 |
+
height: 50px;
|
116 |
+
font-size: 30px !important;
|
117 |
+
text-align: center;
|
118 |
+
color: #FFFFFF;
|
119 |
+
white-space: nowrap;
|
120 |
+
}
|
121 |
+
|
122 |
+
/* PAC input */
|
123 |
+
|
124 |
+
.pac-input {
|
125 |
+
background-color: #fff;
|
126 |
+
padding: 0 11px 0 13px;
|
127 |
+
width: 100%;
|
128 |
+
font-family: Roboto;
|
129 |
+
font-size: 15px;
|
130 |
+
font-weight: 300;
|
131 |
+
text-overflow: ellipsis;
|
132 |
+
display: none;
|
133 |
+
}
|
134 |
+
|
135 |
+
.pac-input:focus {
|
136 |
+
border-color: #4d90fe;
|
137 |
+
width: 100%;
|
138 |
+
}
|
139 |
+
|
140 |
+
.map-canvas .pac-input {
|
141 |
+
left:10px !important;
|
142 |
+
top: 42px !important;
|
143 |
+
display: block !important;
|
144 |
+
width: 92%;
|
145 |
+
line-height: 26px;
|
146 |
+
margin:0;
|
147 |
+
}
|
148 |
+
|
149 |
+
|
150 |
+
|
151 |
+
|
152 |
+
.pac-container {
|
153 |
+
font-family: Roboto;
|
154 |
+
}
|
155 |
+
|
156 |
+
/* Type Selector */
|
157 |
+
|
158 |
+
.type-selector {
|
159 |
+
color: #fff;
|
160 |
+
background-color: #4d90fe;
|
161 |
+
padding: 5px 11px 0px 11px;
|
162 |
+
display: none;
|
163 |
+
}
|
164 |
+
|
165 |
+
.type-selector label {
|
166 |
+
font-family: Roboto;
|
167 |
+
font-size: 13px;
|
168 |
+
font-weight: 300;
|
169 |
+
}
|
170 |
+
|
171 |
+
.map-canvas .type-selector {
|
172 |
+
left:0 !important;
|
173 |
+
top: 0 !important;
|
174 |
+
display: block !important;
|
175 |
+
margin: 0;
|
176 |
+
width: 100%;
|
177 |
+
}
|
178 |
+
|
179 |
+
|
180 |
+
ul.map-control-list {
|
181 |
+
margin: 0;
|
182 |
+
padding: 0;
|
183 |
+
}
|
184 |
+
|
185 |
+
.map-control-list li {
|
186 |
+
float: left;
|
187 |
+
margin: 0 10px 0 0;
|
188 |
+
}
|
189 |
+
|
190 |
+
.map-control-list li:last-child {
|
191 |
+
margin-right: 0;
|
192 |
+
}
|
193 |
+
|
194 |
+
.map-control-list li input[type="radio"] {
|
195 |
+
margin: 0 2px 0 0;
|
196 |
+
}
|
197 |
+
|
198 |
+
/*-------------------------------------------
|
199 |
+
Helper Classes
|
200 |
+
---------------------------------------------*/
|
201 |
+
.clearfix {
|
202 |
+
*zoom: 1;
|
203 |
+
}
|
204 |
+
|
205 |
+
.clearfix:before, .clearfix:after {
|
206 |
+
display: table;
|
207 |
+
content: "";
|
208 |
+
line-height: 0;
|
209 |
+
}
|
210 |
+
|
211 |
+
.clearfix:after {
|
212 |
+
clear: both;
|
213 |
+
}
|
214 |
+
|
215 |
+
.hide-text {
|
216 |
+
font: 0/0 a;
|
217 |
+
color: transparent;
|
218 |
+
text-shadow: none;
|
219 |
+
background-color: transparent;
|
220 |
+
border: 0;
|
221 |
+
}
|
222 |
+
|
223 |
+
.input-block-level {
|
224 |
+
display: block;
|
225 |
+
width: 100%;
|
226 |
+
min-height: 30px;
|
227 |
+
-webkit-box-sizing: border-box;
|
228 |
+
-moz-box-sizing: border-box;
|
229 |
+
box-sizing: border-box;
|
230 |
+
}
|
231 |
+
|
232 |
+
.clickable + .toggle-item {
|
233 |
+
padding: 0 5px;
|
234 |
+
}
|
235 |
+
|
236 |
+
/*----------------------------------------
|
237 |
+
Toggle Tips
|
238 |
+
-------------------------------------------*/
|
239 |
+
|
240 |
+
.tooltip {
|
241 |
+
position: absolute;
|
242 |
+
z-index: 1030;
|
243 |
+
display: block;
|
244 |
+
visibility: visible;
|
245 |
+
padding: 5px;
|
246 |
+
font-size: 11px;
|
247 |
+
opacity: 0;
|
248 |
+
filter: alpha(opacity=0);
|
249 |
+
}
|
250 |
+
|
251 |
+
.tooltip.in {
|
252 |
+
opacity: 0.8;
|
253 |
+
filter: alpha(opacity=80);
|
254 |
+
}
|
255 |
+
|
256 |
+
.tooltip.top {
|
257 |
+
margin-top: -3px;
|
258 |
+
}
|
259 |
+
|
260 |
+
.tooltip.right {
|
261 |
+
margin-left: 3px;
|
262 |
+
}
|
263 |
+
|
264 |
+
.tooltip.bottom {
|
265 |
+
margin-top: 3px;
|
266 |
+
}
|
267 |
+
|
268 |
+
.tooltip.left {
|
269 |
+
margin-left: -3px;
|
270 |
+
}
|
271 |
+
|
272 |
+
.tooltip-inner {
|
273 |
+
max-width: 200px;
|
274 |
+
padding: 3px 8px;
|
275 |
+
color: #ffffff;
|
276 |
+
text-align: center;
|
277 |
+
text-decoration: none;
|
278 |
+
background-color: #000000;
|
279 |
+
-webkit-border-radius: 4px;
|
280 |
+
-moz-border-radius: 4px;
|
281 |
+
border-radius: 4px;
|
282 |
+
}
|
283 |
+
|
284 |
+
.tooltip-arrow {
|
285 |
+
position: absolute;
|
286 |
+
width: 0;
|
287 |
+
height: 0;
|
288 |
+
border-color: transparent;
|
289 |
+
border-style: solid;
|
290 |
+
}
|
291 |
+
|
292 |
+
.tooltip.top .tooltip-arrow {
|
293 |
+
bottom: 0;
|
294 |
+
left: 50%;
|
295 |
+
margin-left: -5px;
|
296 |
+
border-width: 5px 5px 0;
|
297 |
+
border-top-color: #000000;
|
298 |
+
}
|
299 |
+
|
300 |
+
.tooltip.right .tooltip-arrow {
|
301 |
+
top: 50%;
|
302 |
+
left: 0;
|
303 |
+
margin-top: -5px;
|
304 |
+
border-width: 5px 5px 5px 0;
|
305 |
+
border-right-color: #000000;
|
306 |
+
}
|
307 |
+
|
308 |
+
.tooltip.left .tooltip-arrow {
|
309 |
+
top: 50%;
|
310 |
+
right: 0;
|
311 |
+
margin-top: -5px;
|
312 |
+
border-width: 5px 0 5px 5px;
|
313 |
+
border-left-color: #000000;
|
314 |
+
}
|
315 |
+
|
316 |
+
.tooltip.bottom .tooltip-arrow {
|
317 |
+
top: 0;
|
318 |
+
left: 50%;
|
319 |
+
margin-left: -5px;
|
320 |
+
border-width: 0 5px 5px;
|
321 |
+
border-bottom-color: #000000;
|
322 |
+
}
|
323 |
+
|
324 |
+
/*----------------------------------------
|
325 |
+
Tipsy
|
326 |
+
-------------------------------------------*/
|
327 |
+
|
328 |
+
.tooltip-info {
|
329 |
+
cursor: help;
|
330 |
+
margin: -3px 0 0 5px;
|
331 |
+
position: relative;
|
332 |
+
top: 3px;
|
333 |
+
}
|
334 |
+
|
335 |
+
.tipsy {
|
336 |
+
font-size: 10px;
|
337 |
+
position: absolute;
|
338 |
+
padding: 5px;
|
339 |
+
z-index: 100000;
|
340 |
+
}
|
341 |
+
|
342 |
+
.tipsy-inner {
|
343 |
+
background-color: #000;
|
344 |
+
color: #FFF;
|
345 |
+
max-width: 200px;
|
346 |
+
padding: 5px 8px 4px 8px;
|
347 |
+
text-align: center;
|
348 |
+
}
|
349 |
+
|
350 |
+
/* Rounded corners */
|
351 |
+
.tipsy-inner {
|
352 |
+
border-radius: 3px;
|
353 |
+
-moz-border-radius: 3px;
|
354 |
+
-webkit-border-radius: 3px;
|
355 |
+
}
|
356 |
+
|
357 |
+
/* Uncomment for shadow */
|
358 |
+
/*.tipsy-inner { box-shadow: 0 0 5px #000000; -webkit-box-shadow: 0 0 5px #000000; -moz-box-shadow: 0 0 5px #000000; }*/
|
359 |
+
|
360 |
+
.tipsy-arrow {
|
361 |
+
position: absolute;
|
362 |
+
width: 0;
|
363 |
+
height: 0;
|
364 |
+
line-height: 0;
|
365 |
+
border: 5px dashed #000;
|
366 |
+
}
|
367 |
+
|
368 |
+
/* Rules to colour arrows */
|
369 |
+
.tipsy-arrow-n {
|
370 |
+
border-bottom-color: #000;
|
371 |
+
}
|
372 |
+
|
373 |
+
.tipsy-arrow-s {
|
374 |
+
border-top-color: #000;
|
375 |
+
}
|
376 |
+
|
377 |
+
.tipsy-arrow-e {
|
378 |
+
border-left-color: #000;
|
379 |
+
}
|
380 |
+
|
381 |
+
.tipsy-arrow-w {
|
382 |
+
border-right-color: #000;
|
383 |
+
}
|
384 |
+
|
385 |
+
.tipsy-n .tipsy-arrow {
|
386 |
+
top: 0px;
|
387 |
+
left: 50%;
|
388 |
+
margin-left: -5px;
|
389 |
+
border-bottom-style: solid;
|
390 |
+
border-top: none;
|
391 |
+
border-left-color: transparent;
|
392 |
+
border-right-color: transparent;
|
393 |
+
}
|
394 |
+
|
395 |
+
.tipsy-nw .tipsy-arrow {
|
396 |
+
top: 0;
|
397 |
+
left: 10px;
|
398 |
+
border-bottom-style: solid;
|
399 |
+
border-top: none;
|
400 |
+
border-left-color: transparent;
|
401 |
+
border-right-color: transparent;
|
402 |
+
}
|
403 |
+
|
404 |
+
.tipsy-ne .tipsy-arrow {
|
405 |
+
top: 0;
|
406 |
+
right: 10px;
|
407 |
+
border-bottom-style: solid;
|
408 |
+
border-top: none;
|
409 |
+
border-left-color: transparent;
|
410 |
+
border-right-color: transparent;
|
411 |
+
}
|
412 |
+
|
413 |
+
.tipsy-s .tipsy-arrow {
|
414 |
+
bottom: 0;
|
415 |
+
left: 50%;
|
416 |
+
margin-left: -5px;
|
417 |
+
border-top-style: solid;
|
418 |
+
border-bottom: none;
|
419 |
+
border-left-color: transparent;
|
420 |
+
border-right-color: transparent;
|
421 |
+
}
|
422 |
+
|
423 |
+
.tipsy-sw .tipsy-arrow {
|
424 |
+
bottom: 0;
|
425 |
+
left: 10px;
|
426 |
+
border-top-style: solid;
|
427 |
+
border-bottom: none;
|
428 |
+
border-left-color: transparent;
|
429 |
+
border-right-color: transparent;
|
430 |
+
}
|
431 |
+
|
432 |
+
.tipsy-se .tipsy-arrow {
|
433 |
+
bottom: 0;
|
434 |
+
right: 10px;
|
435 |
+
border-top-style: solid;
|
436 |
+
border-bottom: none;
|
437 |
+
border-left-color: transparent;
|
438 |
+
border-right-color: transparent;
|
439 |
+
}
|
440 |
+
|
441 |
+
.tipsy-e .tipsy-arrow {
|
442 |
+
right: 0;
|
443 |
+
top: 50%;
|
444 |
+
margin-top: -5px;
|
445 |
+
border-left-style: solid;
|
446 |
+
border-right: none;
|
447 |
+
border-top-color: transparent;
|
448 |
+
border-bottom-color: transparent;
|
449 |
+
}
|
450 |
+
|
451 |
+
.tipsy-w .tipsy-arrow {
|
452 |
+
left: 0;
|
453 |
+
top: 50%;
|
454 |
+
margin-top: -5px;
|
455 |
+
border-right-style: solid;
|
456 |
+
border-left: none;
|
457 |
+
border-top-color: transparent;
|
458 |
+
border-bottom-color: transparent;
|
459 |
+
}
|
admin/assets/css/admin-widget.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.wpgp-toggler{padding:10px;margin:0 0 10px;cursor:pointer;background-color:#EBEBEB;border:1px solid #E5E5E5;display:block}.wpgp-toggler span{background:url(../img/arrows.png) no-repeat 60% -107px;float:right;height:12px;display:inline-block;width:12px}.wpgp-toggler.toggled span{background-position:60% 1px}.toggle-item,.reviews-toggle-container{display:none}.toggle-item p{padding:0;margin:0 0 10px}.toggle-item.toggled,.reviews-toggle-container.toggled{display:block}.widget-api-option{line-height:22px}.widget-api-option input{}.toggle-item select{background:#FFF}.wpgp-method-span:hover,.search-api-option:hover,.business-api-option:hover{cursor:pointer}.wpgp-method-label{padding-left:4px}.new-window{background:url(../img/new-window-icon.png) no-repeat right 3px transparent;padding-right:16px}.wpgp-radio-label{margin:0 0 5px;display:block}.wpgp-widget-footer-links{font-style:italic}.wpgp-widget-footer-links a{margin-right:10px}.powered-by-google{background:url(../img/powered-by-google-on-white.png) no-repeat 0 0 transparent;width:104px;height:16px}.map-canvas{height:100%;margin:0;padding:0;min-height:400px}.google-autocomplete-map-wrap{display:none}.google-autocomplete-map-wrap .controls{margin-top:16px;border:1px solid transparent;border-radius:2px;box-sizing:border-box;-moz-box-sizing:border-box;height:32px;outline:0;box-shadow:0 2px 6px rgba(0,0,0,.3)}.marker-label,.marker-icon{z-index:99;position:absolute;display:block;margin-top:-50px;margin-left:-25px;width:50px;height:50px;font-size:30px!important;text-align:center;color:#FFF;white-space:nowrap}.pac-input{background-color:#fff;padding:0 11px 0 13px;width:100%;font-family:Roboto;font-size:15px;font-weight:300;text-overflow:ellipsis;display:none}.pac-input:focus{border-color:#4d90fe;width:100%}.map-canvas .pac-input{left:10px!important;top:42px!important;display:block!important;width:92%;line-height:26px;margin:0}.pac-container{font-family:Roboto}.type-selector{color:#fff;background-color:#4d90fe;padding:5px 11px 0;display:none}.type-selector label{font-family:Roboto;font-size:13px;font-weight:300}.map-canvas .type-selector{left:0!important;top:0!important;display:block!important;margin:0;width:100%}ul.map-control-list{margin:0;padding:0}.map-control-list li{float:left;margin:0 10px 0 0}.map-control-list li:last-child{margin-right:0}.map-control-list li input[type=radio]{margin:0 2px 0 0}.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:"";line-height:0}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.clickable+.toggle-item{padding:0 5px}.tooltip{position:absolute;z-index:1030;display:block;visibility:visible;padding:5px;font-size:11px;opacity:0;filter:alpha(opacity=0)}.tooltip.in{opacity:.8;filter:alpha(opacity=80)}.tooltip.top{margin-top:-3px}.tooltip.right{margin-left:3px}.tooltip.bottom{margin-top:3px}.tooltip.left{margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip-info{cursor:help;margin:-3px 0 0 5px;position:relative;top:3px}.tipsy{font-size:10px;position:absolute;padding:5px;z-index:100000}.tipsy-inner{background-color:#000;color:#FFF;max-width:200px;padding:5px 8px 4px;text-align:center}.tipsy-inner{border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px}.tipsy-arrow{position:absolute;width:0;height:0;line-height:0;border:5px dashed #000}.tipsy-arrow-n{border-bottom-color:#000}.tipsy-arrow-s{border-top-color:#000}.tipsy-arrow-e{border-left-color:#000}.tipsy-arrow-w{border-right-color:#000}.tipsy-n .tipsy-arrow{top:0;left:50%;margin-left:-5px;border-bottom-style:solid;border-top:0;border-left-color:transparent;border-right-color:transparent}.tipsy-nw .tipsy-arrow{top:0;left:10px;border-bottom-style:solid;border-top:0;border-left-color:transparent;border-right-color:transparent}.tipsy-ne .tipsy-arrow{top:0;right:10px;border-bottom-style:solid;border-top:0;border-left-color:transparent;border-right-color:transparent}.tipsy-s .tipsy-arrow{bottom:0;left:50%;margin-left:-5px;border-top-style:solid;border-bottom:0;border-left-color:transparent;border-right-color:transparent}.tipsy-sw .tipsy-arrow{bottom:0;left:10px;border-top-style:solid;border-bottom:0;border-left-color:transparent;border-right-color:transparent}.tipsy-se .tipsy-arrow{bottom:0;right:10px;border-top-style:solid;border-bottom:0;border-left-color:transparent;border-right-color:transparent}.tipsy-e .tipsy-arrow{right:0;top:50%;margin-top:-5px;border-left-style:solid;border-right:0;border-top-color:transparent;border-bottom-color:transparent}.tipsy-w .tipsy-arrow{left:0;top:50%;margin-top:-5px;border-right-style:solid;border-left:0;border-top-color:transparent;border-bottom-color:transparent}
|
admin/assets/css/admin.css
ADDED
@@ -0,0 +1,687 @@
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Google Places Map CPT Styles
|
3 |
+
*/
|
4 |
+
|
5 |
+
.clear:before,
|
6 |
+
.clear:after {
|
7 |
+
content: " ";
|
8 |
+
display: table;
|
9 |
+
}
|
10 |
+
|
11 |
+
.clear:after {
|
12 |
+
clear: both;
|
13 |
+
}
|
14 |
+
|
15 |
+
.hover-transition, .marker-icon-row .icon, .marker-row .marker-item {
|
16 |
+
-webkit-transition: 0.2s all linear;
|
17 |
+
-moz-transition: 0.2s all linear;
|
18 |
+
-o-transition: 0.2s all linear;
|
19 |
+
transition: 0.2s all linear;
|
20 |
+
}
|
21 |
+
|
22 |
+
#gmb_markers_group_repeat {
|
23 |
+
/*display: none;*/
|
24 |
+
}
|
25 |
+
|
26 |
+
.cmb_id_gmb_theme_json {
|
27 |
+
display: none;
|
28 |
+
}
|
29 |
+
|
30 |
+
.marker-info-wrapper {
|
31 |
+
background-color: #F1F1F1;
|
32 |
+
margin: 8px 0 4px;
|
33 |
+
padding: 12px 12px 12px 12px;
|
34 |
+
font-size: 13px;
|
35 |
+
}
|
36 |
+
|
37 |
+
.marker-info-wrapper > div {
|
38 |
+
margin: 0 0 5px;
|
39 |
+
padding: 0;
|
40 |
+
}
|
41 |
+
|
42 |
+
.marker-info-wrapper > div.rating-wrap {
|
43 |
+
margin: 0;
|
44 |
+
padding: 0;
|
45 |
+
}
|
46 |
+
|
47 |
+
.repeatable-grouping .cmb-nested-table td {
|
48 |
+
padding-top: 3px;
|
49 |
+
}
|
50 |
+
|
51 |
+
.repeatable-grouping .cmb-nested-table td pre {
|
52 |
+
margin: 0;
|
53 |
+
}
|
54 |
+
|
55 |
+
.repeatable-grouping .cmb-nested-table td pre textarea {
|
56 |
+
height: 50px;
|
57 |
+
}
|
58 |
+
|
59 |
+
.new-window {
|
60 |
+
background: url('../img/new-window-icon.png') no-repeat right 3px transparent;
|
61 |
+
padding-right: 16px;
|
62 |
+
}
|
63 |
+
|
64 |
+
|
65 |
+
/*------------------------------------------
|
66 |
+
CMB Interface
|
67 |
+
--------------------------------------------*/
|
68 |
+
|
69 |
+
.cmb_metabox_description {
|
70 |
+
display: block;
|
71 |
+
margin-top: 5px;
|
72 |
+
}
|
73 |
+
|
74 |
+
.cmb_id_gmb_places_search_multicheckbox ul {
|
75 |
+
overflow: hidden;
|
76 |
+
}
|
77 |
+
|
78 |
+
.cmb_id_gmb_places_search_multicheckbox li {
|
79 |
+
float: left;
|
80 |
+
width: 33%;
|
81 |
+
}
|
82 |
+
|
83 |
+
.cmb_id_gmb_places_search_multicheckbox .cmb_metabox_description {
|
84 |
+
margin-top: 10px;
|
85 |
+
margin-right: 2px;
|
86 |
+
}
|
87 |
+
|
88 |
+
#google-map-wrap {
|
89 |
+
position: relative;
|
90 |
+
}
|
91 |
+
|
92 |
+
.autocomplete-wrap {
|
93 |
+
background: url('../img/powered-by-google-on-white.png') no-repeat right 8px rgba(0, 0, 0, 0);
|
94 |
+
}
|
95 |
+
|
96 |
+
.repeatable-group .shift-rows {
|
97 |
+
display: none;
|
98 |
+
}
|
99 |
+
|
100 |
+
/*------------------------------------------
|
101 |
+
Messages
|
102 |
+
--------------------------------------------*/
|
103 |
+
|
104 |
+
.wpgp-message {
|
105 |
+
background-color: #FFF;
|
106 |
+
border-left: 4px solid #7AD03A;
|
107 |
+
-webkit-box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.15);
|
108 |
+
box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.15);
|
109 |
+
box-sizing: border-box;
|
110 |
+
-webkit-box-sizing: border-box;
|
111 |
+
-moz-box-sizing: border-box;
|
112 |
+
padding: 1px 12px;
|
113 |
+
display: none;
|
114 |
+
}
|
115 |
+
|
116 |
+
.wpgp-message.warning-message {
|
117 |
+
border-left: 4px solid #d40000;
|
118 |
+
margin: 20px 0 0;
|
119 |
+
}
|
120 |
+
|
121 |
+
.wpgp-message p, .form-table td .wpgp-message p {
|
122 |
+
margin: .5em 0;
|
123 |
+
padding: 2px;
|
124 |
+
}
|
125 |
+
|
126 |
+
.places-change-message {
|
127 |
+
margin-bottom: 15px;
|
128 |
+
margin-right: 2px;
|
129 |
+
}
|
130 |
+
|
131 |
+
.places-change-message p {
|
132 |
+
float: left;
|
133 |
+
}
|
134 |
+
|
135 |
+
.places-change-message .button {
|
136 |
+
float: right;
|
137 |
+
margin-top: 5px;
|
138 |
+
}
|
139 |
+
|
140 |
+
#google-map-wrap .wpgp-message {
|
141 |
+
margin-top: 20px;
|
142 |
+
}
|
143 |
+
|
144 |
+
/*------------------------------------------
|
145 |
+
Google Map Metabox
|
146 |
+
--------------------------------------------*/
|
147 |
+
|
148 |
+
#map {
|
149 |
+
width: 100%;
|
150 |
+
margin: 0 auto;
|
151 |
+
}
|
152 |
+
|
153 |
+
.places-loading {
|
154 |
+
background: url('../img/spinner.gif') no-repeat center right transparent;
|
155 |
+
font-style: italic;
|
156 |
+
position: absolute;
|
157 |
+
top: -34px;
|
158 |
+
right: 31px;
|
159 |
+
padding: 0 25px 0 0;
|
160 |
+
display: none;
|
161 |
+
}
|
162 |
+
|
163 |
+
.cmb_id_gmb_map_type td {
|
164 |
+
padding-bottom: 0;
|
165 |
+
}
|
166 |
+
|
167 |
+
.cmb_id_gmb_map_type .cmb_option {
|
168 |
+
margin: 5px 0 10px;
|
169 |
+
}
|
170 |
+
|
171 |
+
.cmb_id_gmb_geocoder td {
|
172 |
+
padding-bottom: 3px;
|
173 |
+
}
|
174 |
+
|
175 |
+
/*------------------------------------------
|
176 |
+
General Styles
|
177 |
+
--------------------------------------------*/
|
178 |
+
|
179 |
+
.cmb_id_gmb_search_radius, .cmb_id_gmb_places_search_multicheckbox {
|
180 |
+
display: none;
|
181 |
+
}
|
182 |
+
|
183 |
+
#google_maps_details_options tr {
|
184 |
+
display: none;
|
185 |
+
}
|
186 |
+
|
187 |
+
#google_maps_details_options tr.cmb_id_gmb_show_poi {
|
188 |
+
display: table-row;
|
189 |
+
}
|
190 |
+
|
191 |
+
.snazzy-link {
|
192 |
+
font-size: 10px;
|
193 |
+
text-transform: uppercase;
|
194 |
+
font-style: normal;
|
195 |
+
display: inline-block;
|
196 |
+
}
|
197 |
+
|
198 |
+
.width_unit_label, .width_radio, .map-width, .map-height, .size-label {
|
199 |
+
float: left !important;
|
200 |
+
}
|
201 |
+
|
202 |
+
#width_wrap {
|
203 |
+
margin: 0 0 10px;
|
204 |
+
}
|
205 |
+
|
206 |
+
#size_labels_wrap {
|
207 |
+
margin: 8px 0 0 10px;
|
208 |
+
padding: 0;
|
209 |
+
float: left;
|
210 |
+
}
|
211 |
+
|
212 |
+
#width_unit_percent {
|
213 |
+
margin: 0 3px 0 0;
|
214 |
+
}
|
215 |
+
|
216 |
+
#width_unit_px {
|
217 |
+
margin: 0 3px 0 8px;
|
218 |
+
}
|
219 |
+
|
220 |
+
.inner-sidebar table.cmb_metabox label.size-label, #side-sortables table.cmb_metabox label.size-label, label.size-label {
|
221 |
+
font-weight: normal;
|
222 |
+
font-style: italic;
|
223 |
+
}
|
224 |
+
|
225 |
+
.inner-sidebar table.cmb_metabox label.size-label, #side-sortables table.cmb_metabox label.size-label, .form-table label.size-label {
|
226 |
+
padding: 9px 0 0;
|
227 |
+
width: 50px;
|
228 |
+
font-weight: normal;
|
229 |
+
}
|
230 |
+
|
231 |
+
.map-width, .map-height {
|
232 |
+
width: 55px !important
|
233 |
+
}
|
234 |
+
|
235 |
+
/*------------------------------------------
|
236 |
+
Place Markers
|
237 |
+
--------------------------------------------*/
|
238 |
+
|
239 |
+
#google-map-wrap div#infobubble-content {
|
240 |
+
line-height: 1.35;
|
241 |
+
/*overflow: hidden;*/
|
242 |
+
/*white-space: nowrap;*/
|
243 |
+
}
|
244 |
+
|
245 |
+
#infobubble-content.loading {
|
246 |
+
background: url('../../../includes/assets/img/loading.GIF') no-repeat center center #FFF;
|
247 |
+
}
|
248 |
+
|
249 |
+
#google-map-wrap div#infobubble-content > div {
|
250 |
+
white-space: normal;
|
251 |
+
}
|
252 |
+
|
253 |
+
.gm-style-iw, .gm-style-iw > div {
|
254 |
+
overflow: visible !important;
|
255 |
+
}
|
256 |
+
|
257 |
+
#infobubble-content p {
|
258 |
+
font-size: 12px;
|
259 |
+
margin: 0 0 7px;
|
260 |
+
color: #2C2C2C;
|
261 |
+
}
|
262 |
+
|
263 |
+
#infobubble-content {
|
264 |
+
padding: 0 0 0 0;
|
265 |
+
margin: 3px -20px 0 0;
|
266 |
+
min-width: 314px;
|
267 |
+
min-height: 80px;
|
268 |
+
height: 100%;
|
269 |
+
overflow: hidden;
|
270 |
+
box-sizing: border-box;
|
271 |
+
cursor: default;
|
272 |
+
}
|
273 |
+
|
274 |
+
#infobubble-content .place-title {
|
275 |
+
border: 1px solid #FFF;
|
276 |
+
font-family: Roboto, Arial, sans-serif;
|
277 |
+
font-size: 16px;
|
278 |
+
line-height: 21px;
|
279 |
+
font-weight: 700;
|
280 |
+
min-height: 21px;
|
281 |
+
white-space: normal;
|
282 |
+
padding-right: 20px;
|
283 |
+
}
|
284 |
+
|
285 |
+
#infobubble-content .place-description {
|
286 |
+
white-space: normal;
|
287 |
+
}
|
288 |
+
|
289 |
+
.marker-confirm-place {
|
290 |
+
margin: 0 8px 4px 0;
|
291 |
+
display: inline-block;
|
292 |
+
}
|
293 |
+
|
294 |
+
.marker-confirm-place:hover {
|
295 |
+
cursor: pointer;
|
296 |
+
}
|
297 |
+
|
298 |
+
/* Ratings */
|
299 |
+
#infobubble-content .rating-wrap {
|
300 |
+
overflow: hidden;
|
301 |
+
}
|
302 |
+
|
303 |
+
#infobubble-content .numeric-rating {
|
304 |
+
font-size: 16px;
|
305 |
+
color: #DD4B39;
|
306 |
+
font-weight: 400;
|
307 |
+
float: left;
|
308 |
+
margin: 0 5px 0 0;
|
309 |
+
}
|
310 |
+
|
311 |
+
#infobubble-content .star-rating-wrap {
|
312 |
+
background: url('../../../includes/assets/img/review_stars.png') no-repeat 0 0 transparent;
|
313 |
+
height: 13px;
|
314 |
+
width: 67px;
|
315 |
+
float: left;
|
316 |
+
margin: 5px 0 0;
|
317 |
+
}
|
318 |
+
|
319 |
+
#infobubble-content .star-rating-size {
|
320 |
+
background: url('../../../includes/assets/img/review_stars.png') no-repeat 0 -13px transparent;
|
321 |
+
height: 13px;
|
322 |
+
}
|
323 |
+
|
324 |
+
/*------------------------------------------
|
325 |
+
Editable Marker
|
326 |
+
--------------------------------------------*/
|
327 |
+
|
328 |
+
#edit-toolbar {
|
329 |
+
list-style: none;
|
330 |
+
margin: 0;
|
331 |
+
padding: 0;
|
332 |
+
text-align: right;
|
333 |
+
}
|
334 |
+
|
335 |
+
#edit-toolbar > li {
|
336 |
+
margin: 0 4px;
|
337 |
+
cursor: pointer;
|
338 |
+
display: inline-block;
|
339 |
+
content: '';
|
340 |
+
height: 21px;
|
341 |
+
width: 21px;
|
342 |
+
opacity: .5;
|
343 |
+
background: url('../img/icons-infowindow-002.svg');
|
344 |
+
}
|
345 |
+
|
346 |
+
#edit-toolbar > li:hover {
|
347 |
+
opacity: .75;
|
348 |
+
}
|
349 |
+
|
350 |
+
#edit-toolbar > li.trash-marker {
|
351 |
+
background-position: -42px 0;
|
352 |
+
}
|
353 |
+
|
354 |
+
#edit-toolbar > li.edit-info {
|
355 |
+
background: url('../img/icons-app-000.svg');
|
356 |
+
background-position: 21px 21px;
|
357 |
+
}
|
358 |
+
|
359 |
+
/*------------------------------------------
|
360 |
+
Display Options
|
361 |
+
--------------------------------------------*/
|
362 |
+
|
363 |
+
#lat-lng-wrap input[type=text].latitude, #lat-lng-wrap input[type=text].longitude,
|
364 |
+
#side-sortables #lat-lng-wrap input[type=text].latitude, #side-sortables #lat-lng-wrap input[type=text].longitude {
|
365 |
+
width: 100px;
|
366 |
+
float: left;
|
367 |
+
}
|
368 |
+
|
369 |
+
.lat-lng-wrap {
|
370 |
+
float: left;
|
371 |
+
margin: 0 0 10px;
|
372 |
+
clear: none;
|
373 |
+
}
|
374 |
+
|
375 |
+
.lng-wrap {
|
376 |
+
margin-bottom: 0;
|
377 |
+
}
|
378 |
+
|
379 |
+
.lat-lng-wrap > span, .lat-lng-wrap > input {
|
380 |
+
float: left;
|
381 |
+
}
|
382 |
+
|
383 |
+
.lat-lng-wrap > span {
|
384 |
+
margin: 8px 5px 0 0;
|
385 |
+
width: 80px;
|
386 |
+
font-style: italic;
|
387 |
+
}
|
388 |
+
|
389 |
+
/* Mini message */
|
390 |
+
|
391 |
+
.lat-lng-change-message {
|
392 |
+
float: left;
|
393 |
+
clear: both;
|
394 |
+
margin: 10px 0 0;
|
395 |
+
width: 100%;
|
396 |
+
}
|
397 |
+
|
398 |
+
.lat-lng-change-message > p {
|
399 |
+
float: left;
|
400 |
+
}
|
401 |
+
|
402 |
+
.lat-lng-update-btn {
|
403 |
+
float: right;
|
404 |
+
margin: 7px 0 0 !important;
|
405 |
+
}
|
406 |
+
|
407 |
+
/*-------------------------------------
|
408 |
+
Autocomplete Metabox
|
409 |
+
---------------------------------------*/
|
410 |
+
#google_maps_metabox .search-autocomplete {
|
411 |
+
width: 78%;
|
412 |
+
margin-right: 10px;
|
413 |
+
}
|
414 |
+
|
415 |
+
#google_maps_metabox .autocomplete-wrap p {
|
416 |
+
font-style: italic;
|
417 |
+
margin-bottom: 5px !important;
|
418 |
+
}
|
419 |
+
|
420 |
+
#google_maps_metabox a.drop-marker {
|
421 |
+
font-style: normal;
|
422 |
+
}
|
423 |
+
|
424 |
+
/*-------------------------------------
|
425 |
+
Save Info Window Toolbar
|
426 |
+
---------------------------------------*/
|
427 |
+
|
428 |
+
#save-toolbar {
|
429 |
+
margin: 0;
|
430 |
+
padding: 0;
|
431 |
+
float: left;
|
432 |
+
}
|
433 |
+
|
434 |
+
#save-toolbar > li {
|
435 |
+
display: inline-block;
|
436 |
+
margin: 0;
|
437 |
+
padding: 0;
|
438 |
+
}
|
439 |
+
|
440 |
+
#save-toolbar > li:first-child {
|
441 |
+
margin: 0 5px 0 0;
|
442 |
+
}
|
443 |
+
|
444 |
+
#save-toolbar > li .google-btn {
|
445 |
+
width: 75px;
|
446 |
+
}
|
447 |
+
|
448 |
+
a.marker-edit-link {
|
449 |
+
background: url('../img/marker-btn.png') no-repeat 0 0 transparent;
|
450 |
+
width: 20px;
|
451 |
+
height: 20px;
|
452 |
+
opacity: 0.5;
|
453 |
+
margin: 4px 0 0;
|
454 |
+
display: block;
|
455 |
+
float: right;
|
456 |
+
}
|
457 |
+
|
458 |
+
#save-toolbar > li .marker-edit-link {
|
459 |
+
opacity: 0.75;
|
460 |
+
}
|
461 |
+
|
462 |
+
#infobubble-content .edit-place-title {
|
463 |
+
width: 290px;
|
464 |
+
}
|
465 |
+
|
466 |
+
#infobubble-content .edit-place-description {
|
467 |
+
display: block;
|
468 |
+
font-size: 12px;
|
469 |
+
width: 100%;
|
470 |
+
min-height: 100px;
|
471 |
+
}
|
472 |
+
|
473 |
+
/*-------------------------------------
|
474 |
+
Marker Icon Modal
|
475 |
+
---------------------------------------*/
|
476 |
+
|
477 |
+
.marker-icon-row {
|
478 |
+
margin-bottom: 10px;
|
479 |
+
}
|
480 |
+
|
481 |
+
.marker-icon-row, .save-marker-icon {
|
482 |
+
display: none;
|
483 |
+
}
|
484 |
+
|
485 |
+
.marker-icon-row .icon, .marker-row .marker-item {
|
486 |
+
width: 31%;
|
487 |
+
float: left;
|
488 |
+
font-size: 14px;
|
489 |
+
margin-bottom: 10px;
|
490 |
+
padding: 4px;
|
491 |
+
border-radius: 5px;
|
492 |
+
}
|
493 |
+
|
494 |
+
.icon-inner {
|
495 |
+
position: relative;
|
496 |
+
top: -8px;
|
497 |
+
}
|
498 |
+
|
499 |
+
.marker-icon-row .icon span {
|
500 |
+
font-size: 32px;
|
501 |
+
margin-right: 8px;
|
502 |
+
position: relative;
|
503 |
+
top: 8px;
|
504 |
+
}
|
505 |
+
|
506 |
+
.marker-icon-row .icon:hover, .marker-row .marker-item:hover, .marker-item-selected {
|
507 |
+
cursor: pointer;
|
508 |
+
background: #DDEAEC;
|
509 |
+
}
|
510 |
+
|
511 |
+
.marker-label {
|
512 |
+
z-index: 99;
|
513 |
+
position: absolute;
|
514 |
+
display: block;
|
515 |
+
margin-top: -50px;
|
516 |
+
margin-left: -25px;
|
517 |
+
width: 50px;
|
518 |
+
height: 50px;
|
519 |
+
font-size: 28px;
|
520 |
+
text-align: center;
|
521 |
+
color: #FFFFFF;
|
522 |
+
white-space: nowrap;
|
523 |
+
line-height: 1;
|
524 |
+
}
|
525 |
+
|
526 |
+
/* Color */
|
527 |
+
|
528 |
+
.marker-icon-color-wrap, .marker-label-color-wrap {
|
529 |
+
display: none;
|
530 |
+
}
|
531 |
+
|
532 |
+
.marker-label-color-wrap {
|
533 |
+
margin-bottom: 60px;
|
534 |
+
}
|
535 |
+
|
536 |
+
.marker-color-picker-wrap {
|
537 |
+
float: left;
|
538 |
+
}
|
539 |
+
|
540 |
+
#TB_ajaxContent p.color-desc {
|
541 |
+
float: left;
|
542 |
+
margin: 0 0 0 10px;
|
543 |
+
padding-top: 3px;
|
544 |
+
font-style: italic;
|
545 |
+
}
|
546 |
+
|
547 |
+
/* Pins */
|
548 |
+
|
549 |
+
.marker-row .marker-item {
|
550 |
+
float: left;
|
551 |
+
width: 31%;
|
552 |
+
}
|
553 |
+
|
554 |
+
.marker-svg {
|
555 |
+
float: left;
|
556 |
+
margin-right: 12px;
|
557 |
+
height: 50px;
|
558 |
+
}
|
559 |
+
|
560 |
+
.marker-svg .default-marker {
|
561 |
+
margin: 8px 0 0 10px;
|
562 |
+
}
|
563 |
+
|
564 |
+
.marker-description {
|
565 |
+
line-height: 50px;
|
566 |
+
}
|
567 |
+
|
568 |
+
/* Save button */
|
569 |
+
|
570 |
+
.save-marker-icon {
|
571 |
+
background: #F1F1F1;
|
572 |
+
padding: 10px;
|
573 |
+
position: absolute;
|
574 |
+
bottom: 0;
|
575 |
+
left: 0;
|
576 |
+
width: 100%;
|
577 |
+
box-sizing: border-box;
|
578 |
+
-moz-box-sizing: border-box;
|
579 |
+
-webkit-box-sizing: border-box;
|
580 |
+
border-top: 1px solid #DFDFDF;
|
581 |
+
}
|
582 |
+
|
583 |
+
.save-marker-icon .save-text {
|
584 |
+
float: left;
|
585 |
+
font-style: italic;
|
586 |
+
margin: 0;
|
587 |
+
}
|
588 |
+
|
589 |
+
.save-marker-icon .button {
|
590 |
+
float: right;
|
591 |
+
}
|
592 |
+
|
593 |
+
.radius-label {
|
594 |
+
position: relative;
|
595 |
+
top: 35px;
|
596 |
+
color: #7dbee8;
|
597 |
+
}
|
598 |
+
|
599 |
+
/*-------------------------------------
|
600 |
+
Buttons
|
601 |
+
---------------------------------------*/
|
602 |
+
|
603 |
+
.google-btn {
|
604 |
+
-webkit-border-radius: 2px;
|
605 |
+
border-radius: 2px;
|
606 |
+
cursor: default;
|
607 |
+
font-weight: 300;
|
608 |
+
font-size: 13px;
|
609 |
+
text-align: center;
|
610 |
+
white-space: nowrap;
|
611 |
+
height: 27px;
|
612 |
+
line-height: 27px;
|
613 |
+
min-width: 54px;
|
614 |
+
outline: 0;
|
615 |
+
padding: 0 8px;
|
616 |
+
|
617 |
+
}
|
618 |
+
|
619 |
+
.google-btn-blue {
|
620 |
+
-webkit-box-shadow: none;
|
621 |
+
box-shadow: none;
|
622 |
+
background-color: #4D90FE;
|
623 |
+
background-image: -webkit-linear-gradient(top, #4D90FE, #4787ED);
|
624 |
+
background-image: linear-gradient(top, #4d90fe, #4787ed);
|
625 |
+
border: 1px solid #3079ED;
|
626 |
+
color: #FFF;
|
627 |
+
}
|
628 |
+
|
629 |
+
.google-btn-blue:hover {
|
630 |
+
-webkit-box-shadow: none;
|
631 |
+
box-shadow: none;
|
632 |
+
background-color: #357AE8;
|
633 |
+
background-image: -webkit-linear-gradient(top, #4D90FE, #357AE8);
|
634 |
+
background-image: linear-gradient(top, #4d90fe, #357ae8);
|
635 |
+
border: 1px solid #2F5BB7;
|
636 |
+
border-bottom-color: #2F5BB7;
|
637 |
+
}
|
638 |
+
|
639 |
+
.google-btn-blue:active, .google-btn-blue:focus {
|
640 |
+
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
|
641 |
+
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
|
642 |
+
background: #357AE8;
|
643 |
+
border: 1px solid #2F5BB7;
|
644 |
+
border-top: 1px solid #2F5BB7;
|
645 |
+
}
|
646 |
+
|
647 |
+
.google-btn-default {
|
648 |
+
-webkit-box-shadow: none;
|
649 |
+
box-shadow: none;
|
650 |
+
background-color: #F5F5F5;
|
651 |
+
background-image: -webkit-linear-gradient(top, #F5F5F5, #F1F1F1);
|
652 |
+
background-image: linear-gradient(top, #f5f5f5, #f1f1f1);
|
653 |
+
color: #333;
|
654 |
+
border: 1px solid #DCDCDC;
|
655 |
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
656 |
+
}
|
657 |
+
|
658 |
+
.google-btn-default:hover {
|
659 |
+
-webkit-box-shadow: none;
|
660 |
+
box-shadow: none;
|
661 |
+
background-color: #F8F8F8;
|
662 |
+
background-image: -webkit-linear-gradient(top, #F8F8F8, #F1F1F1);
|
663 |
+
background-image: linear-gradient(top, #f8f8f8, #f1f1f1);
|
664 |
+
border: 1px solid #C6C6C6;
|
665 |
+
color: #111;
|
666 |
+
}
|
667 |
+
|
668 |
+
.google-btn-default:active {
|
669 |
+
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
670 |
+
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
671 |
+
background: #F8F8F8;
|
672 |
+
color: #111;
|
673 |
+
}
|
674 |
+
|
675 |
+
/*-------------------------------------
|
676 |
+
Temporary Info Window
|
677 |
+
---------------------------------------*/
|
678 |
+
|
679 |
+
.infowindow-toolbar {
|
680 |
+
display: block;
|
681 |
+
margin: 0;
|
682 |
+
padding: 8px 0 5px;
|
683 |
+
}
|
684 |
+
|
685 |
+
.add-marker {
|
686 |
+
text-decoration: none;
|
687 |
+
}
|
admin/assets/css/admin.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.clear:before,.clear:after{content:" ";display:table}.clear:after{clear:both}.hover-transition,.marker-icon-row .icon,.marker-row .marker-item{-webkit-transition:.2s all linear;-moz-transition:.2s all linear;-o-transition:.2s all linear;transition:.2s all linear}#gmb_markers_group_repeat{}.cmb_id_gmb_theme_json{display:none}.marker-info-wrapper{background-color:#F1F1F1;margin:8px 0 4px;padding:12px;font-size:13px}.marker-info-wrapper>div{margin:0 0 5px;padding:0}.marker-info-wrapper>div.rating-wrap{margin:0;padding:0}.repeatable-grouping .cmb-nested-table td{padding-top:3px}.repeatable-grouping .cmb-nested-table td pre{margin:0}.repeatable-grouping .cmb-nested-table td pre textarea{height:50px}.new-window{background:url(../img/new-window-icon.png) no-repeat right 3px transparent;padding-right:16px}.cmb_metabox_description{display:block;margin-top:5px}.cmb_id_gmb_places_search_multicheckbox ul{overflow:hidden}.cmb_id_gmb_places_search_multicheckbox li{float:left;width:33%}.cmb_id_gmb_places_search_multicheckbox .cmb_metabox_description{margin-top:10px;margin-right:2px}#google-map-wrap{position:relative}.autocomplete-wrap{background:url(../img/powered-by-google-on-white.png) no-repeat right 8px rgba(0,0,0,0)}.repeatable-group .shift-rows{display:none}.wpgp-message{background-color:#FFF;border-left:4px solid #7AD03A;-webkit-box-shadow:1px 1px 1px 1px rgba(0,0,0,.15);box-shadow:1px 1px 1px 1px rgba(0,0,0,.15);box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;padding:1px 12px;display:none}.wpgp-message.warning-message{border-left:4px solid #d40000;margin:20px 0 0}.wpgp-message p,.form-table td .wpgp-message p{margin:.5em 0;padding:2px}.places-change-message{margin-bottom:15px;margin-right:2px}.places-change-message p{float:left}.places-change-message .button{float:right;margin-top:5px}#google-map-wrap .wpgp-message{margin-top:20px}#map{width:100%;margin:0 auto}.places-loading{background:url(../img/spinner.gif) no-repeat center right transparent;font-style:italic;position:absolute;top:-34px;right:31px;padding:0 25px 0 0;display:none}.cmb_id_gmb_map_type td{padding-bottom:0}.cmb_id_gmb_map_type .cmb_option{margin:5px 0 10px}.cmb_id_gmb_geocoder td{padding-bottom:3px}.cmb_id_gmb_search_radius,.cmb_id_gmb_places_search_multicheckbox{display:none}#google_maps_details_options tr{display:none}#google_maps_details_options tr.cmb_id_gmb_show_poi{display:table-row}.snazzy-link{font-size:10px;text-transform:uppercase;font-style:normal;display:inline-block}.width_unit_label,.width_radio,.map-width,.map-height,.size-label{float:left!important}#width_wrap{margin:0 0 10px}#size_labels_wrap{margin:8px 0 0 10px;padding:0;float:left}#width_unit_percent{margin:0 3px 0 0}#width_unit_px{margin:0 3px 0 8px}.inner-sidebar table.cmb_metabox label.size-label,#side-sortables table.cmb_metabox label.size-label,label.size-label{font-weight:400;font-style:italic}.inner-sidebar table.cmb_metabox label.size-label,#side-sortables table.cmb_metabox label.size-label,.form-table label.size-label{padding:9px 0 0;width:50px;font-weight:400}.map-width,.map-height{width:55px!important}#google-map-wrap div#infobubble-content{line-height:1.35}#infobubble-content.loading{background:url(../../../includes/assets/img/loading.GIF) no-repeat center center #FFF}#google-map-wrap div#infobubble-content>div{white-space:normal}.gm-style-iw,.gm-style-iw>div{overflow:visible!important}#infobubble-content p{font-size:12px;margin:0 0 7px;color:#2C2C2C}#infobubble-content{padding:0;margin:3px -20px 0 0;min-width:314px;min-height:80px;height:100%;overflow:hidden;box-sizing:border-box;cursor:default}#infobubble-content .place-title{border:1px solid #FFF;font-family:Roboto,Arial,sans-serif;font-size:16px;line-height:21px;font-weight:700;min-height:21px;white-space:normal;padding-right:20px}#infobubble-content .place-description{white-space:normal}.marker-confirm-place{margin:0 8px 4px 0;display:inline-block}.marker-confirm-place:hover{cursor:pointer}#infobubble-content .rating-wrap{overflow:hidden}#infobubble-content .numeric-rating{font-size:16px;color:#DD4B39;font-weight:400;float:left;margin:0 5px 0 0}#infobubble-content .star-rating-wrap{background:url(../../../includes/assets/img/review_stars.png) no-repeat 0 0 transparent;height:13px;width:67px;float:left;margin:5px 0 0}#infobubble-content .star-rating-size{background:url(../../../includes/assets/img/review_stars.png) no-repeat 0 -13px transparent;height:13px}#edit-toolbar{list-style:none;margin:0;padding:0;text-align:right}#edit-toolbar>li{margin:0 4px;cursor:pointer;display:inline-block;content:'';height:21px;width:21px;opacity:.5;background:url(../img/icons-infowindow-002.svg)}#edit-toolbar>li:hover{opacity:.75}#edit-toolbar>li.trash-marker{background-position:-42px 0}#edit-toolbar>li.edit-info{background:url(../img/icons-app-000.svg);background-position:21px 21px}#lat-lng-wrap input[type=text].latitude,#lat-lng-wrap input[type=text].longitude,#side-sortables #lat-lng-wrap input[type=text].latitude,#side-sortables #lat-lng-wrap input[type=text].longitude{width:100px;float:left}.lat-lng-wrap{float:left;margin:0 0 10px;clear:none}.lng-wrap{margin-bottom:0}.lat-lng-wrap>span,.lat-lng-wrap>input{float:left}.lat-lng-wrap>span{margin:8px 5px 0 0;width:80px;font-style:italic}.lat-lng-change-message{float:left;clear:both;margin:10px 0 0;width:100%}.lat-lng-change-message>p{float:left}.lat-lng-update-btn{float:right;margin:7px 0 0!important}#google_maps_metabox .search-autocomplete{width:78%;margin-right:10px}#google_maps_metabox .autocomplete-wrap p{font-style:italic;margin-bottom:5px!important}#google_maps_metabox a.drop-marker{font-style:normal}#save-toolbar{margin:0;padding:0;float:left}#save-toolbar>li{display:inline-block;margin:0;padding:0}#save-toolbar>li:first-child{margin:0 5px 0 0}#save-toolbar>li .google-btn{width:75px}a.marker-edit-link{background:url(../img/marker-btn.png) no-repeat 0 0 transparent;width:20px;height:20px;opacity:.5;margin:4px 0 0;display:block;float:right}#save-toolbar>li .marker-edit-link{opacity:.75}#infobubble-content .edit-place-title{width:290px}#infobubble-content .edit-place-description{display:block;font-size:12px;width:100%;min-height:100px}.marker-icon-row{margin-bottom:10px}.marker-icon-row,.save-marker-icon{display:none}.marker-icon-row .icon,.marker-row .marker-item{width:31%;float:left;font-size:14px;margin-bottom:10px;padding:4px;border-radius:5px}.icon-inner{position:relative;top:-8px}.marker-icon-row .icon span{font-size:32px;margin-right:8px;position:relative;top:8px}.marker-icon-row .icon:hover,.marker-row .marker-item:hover,.marker-item-selected{cursor:pointer;background:#DDEAEC}.marker-label{z-index:99;position:absolute;display:block;margin-top:-50px;margin-left:-25px;width:50px;height:50px;font-size:28px;text-align:center;color:#FFF;white-space:nowrap;line-height:1}.marker-icon-color-wrap,.marker-label-color-wrap{display:none}.marker-label-color-wrap{margin-bottom:60px}.marker-color-picker-wrap{float:left}#TB_ajaxContent p.color-desc{float:left;margin:0 0 0 10px;padding-top:3px;font-style:italic}.marker-row .marker-item{float:left;width:31%}.marker-svg{float:left;margin-right:12px;height:50px}.marker-svg .default-marker{margin:8px 0 0 10px}.marker-description{line-height:50px}.save-marker-icon{background:#F1F1F1;padding:10px;position:absolute;bottom:0;left:0;width:100%;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;border-top:1px solid #DFDFDF}.save-marker-icon .save-text{float:left;font-style:italic;margin:0}.save-marker-icon .button{float:right}.radius-label{position:relative;top:35px;color:#7dbee8}.google-btn{-webkit-border-radius:2px;border-radius:2px;cursor:default;font-weight:300;font-size:13px;text-align:center;white-space:nowrap;height:27px;line-height:27px;min-width:54px;outline:0;padding:0 8px}.google-btn-blue{-webkit-box-shadow:none;box-shadow:none;background-color:#4D90FE;background-image:-webkit-linear-gradient(top,#4D90FE,#4787ED);background-image:linear-gradient(top,#4d90fe,#4787ed);border:1px solid #3079ED;color:#FFF}.google-btn-blue:hover{-webkit-box-shadow:none;box-shadow:none;background-color:#357AE8;background-image:-webkit-linear-gradient(top,#4D90FE,#357AE8);background-image:linear-gradient(top,#4d90fe,#357ae8);border:1px solid #2F5BB7;border-bottom-color:#2F5BB7}.google-btn-blue:active,.google-btn-blue:focus{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.3);box-shadow:inset 0 1px 2px rgba(0,0,0,.3);background:#357AE8;border:1px solid #2F5BB7;border-top:1px solid #2F5BB7}.google-btn-default{-webkit-box-shadow:none;box-shadow:none;background-color:#F5F5F5;background-image:-webkit-linear-gradient(top,#F5F5F5,#F1F1F1);background-image:linear-gradient(top,#f5f5f5,#f1f1f1);color:#333;border:1px solid #DCDCDC;border:1px solid rgba(0,0,0,.1)}.google-btn-default:hover{-webkit-box-shadow:none;box-shadow:none;background-color:#F8F8F8;background-image:-webkit-linear-gradient(top,#F8F8F8,#F1F1F1);background-image:linear-gradient(top,#f8f8f8,#f1f1f1);border:1px solid #C6C6C6;color:#111}.google-btn-default:active{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);background:#F8F8F8;color:#111}.infowindow-toolbar{display:block;margin:0;padding:8px 0 5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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
* {
|
2 |
+
-webkit-box-sizing: border-box;
|
3 |
+
-moz-box-sizing: border-box;
|
4 |
+
box-sizing: border-box;
|
5 |
+
}
|
6 |
+
|
7 |
+
.clearfix:before, .clearfix:after, .container:before, .container:after, .container-fluid:before, .container-fluid:after, .row:before, .row:after, .form-horizontal .form-group:before, .form-horizontal .form-group:after, .btn-toolbar:before, .btn-toolbar:after, .btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after, .nav:before, .nav:after, .navbar:before, .navbar:after, .navbar-header:before, .navbar-header:after, .navbar-collapse:before, .navbar-collapse:after, .pager:before, .pager:after, .panel-body:before, .panel-body:after, .modal-footer:before, .modal-footer:after {
|
8 |
+
content: " ";
|
9 |
+
display: table;
|
10 |
+
}
|
11 |
+
|
12 |
+
.container {
|
13 |
+
padding-left: 15px;
|
14 |
+
padding-right: 15px;
|
15 |
+
}
|
16 |
+
|
17 |
+
@media (min-width: 768px) {
|
18 |
+
.container {
|
19 |
+
width: 750px;
|
20 |
+
}
|
21 |
+
}
|
22 |
+
|
23 |
+
@media (min-width: 992px) {
|
24 |
+
.container {
|
25 |
+
width: 970px;
|
26 |
+
}
|
27 |
+
}
|
28 |
+
|
29 |
+
@media (min-width: 1200px) {
|
30 |
+
.container {
|
31 |
+
width: 1170px;
|
32 |
+
}
|
33 |
+
}
|
34 |
+
|
35 |
+
.container-fluid {
|
36 |
+
margin-right: auto;
|
37 |
+
margin-left: auto;
|
38 |
+
padding-left: 15px;
|
39 |
+
padding-right: 15px;
|
40 |
+
}
|
41 |
+
|
42 |
+
.row {
|
43 |
+
margin-left: -15px;
|
44 |
+
margin-right: -15px;
|
45 |
+
}
|
46 |
+
|
47 |
+
.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
|
48 |
+
position: relative;
|
49 |
+
min-height: 1px;
|
50 |
+
padding-left: 15px;
|
51 |
+
padding-right: 15px;
|
52 |
+
}
|
53 |
+
|
54 |
+
.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {
|
55 |
+
float: left;
|
56 |
+
}
|
57 |
+
|
58 |
+
.col-xs-12 {
|
59 |
+
width: 100%;
|
60 |
+
}
|
61 |
+
|
62 |
+
.col-xs-11 {
|
63 |
+
width: 91.66666667%;
|
64 |
+
}
|
65 |
+
|
66 |
+
.col-xs-10 {
|
67 |
+
width: 83.33333333%;
|
68 |
+
}
|
69 |
+
|
70 |
+
.col-xs-9 {
|
71 |
+
width: 75%;
|
72 |
+
}
|
73 |
+
|
74 |
+
.col-xs-8 {
|
75 |
+
width: 66.66666667%;
|
76 |
+
}
|
77 |
+
|
78 |
+
.col-xs-7 {
|
79 |
+
width: 58.33333333%;
|
80 |
+
}
|
81 |
+
|
82 |
+
.col-xs-6 {
|
83 |
+
width: 50%;
|
84 |
+
}
|
85 |
+
|
86 |
+
.col-xs-5 {
|
87 |
+
width: 41.66666667%;
|
88 |
+
}
|
89 |
+
|
90 |
+
.col-xs-4 {
|
91 |
+
width: 33.33333333%;
|
92 |
+
}
|
93 |
+
|
94 |
+
.col-xs-3 {
|
95 |
+
width: 25%;
|
96 |
+
}
|
97 |
+
|
98 |
+
.col-xs-2 {
|
99 |
+
width: 16.66666667%;
|
100 |
+
}
|
101 |
+
|
102 |
+
.col-xs-1 {
|
103 |
+
width: 8.33333333%;
|
104 |
+
}
|
105 |
+
|
106 |
+
.col-xs-pull-12 {
|
107 |
+
right: 100%;
|
108 |
+
}
|
109 |
+
|
110 |
+
.col-xs-pull-11 {
|
111 |
+
right: 91.66666667%;
|
112 |
+
}
|
113 |
+
|
114 |
+
.col-xs-pull-10 {
|
115 |
+
right: 83.33333333%;
|
116 |
+
}
|
117 |
+
|
118 |
+
.col-xs-pull-9 {
|
119 |
+
right: 75%;
|
120 |
+
}
|
121 |
+
|
122 |
+
.col-xs-pull-8 {
|
123 |
+
right: 66.66666667%;
|
124 |
+
}
|
125 |
+
|
126 |
+
.col-xs-pull-7 {
|
127 |
+
right: 58.33333333%;
|
128 |
+
}
|
129 |
+
|
130 |
+
.col-xs-pull-6 {
|
131 |
+
right: 50%;
|
132 |
+
}
|
133 |
+
|
134 |
+
.col-xs-pull-5 {
|
135 |
+
right: 41.66666667%;
|
136 |
+
}
|
137 |
+
|
138 |
+
.col-xs-pull-4 {
|
139 |
+
right: 33.33333333%;
|
140 |
+
}
|
141 |
+
|
142 |
+
.col-xs-pull-3 {
|
143 |
+
right: 25%;
|
144 |
+
}
|
145 |
+
|
146 |
+
.col-xs-pull-2 {
|
147 |
+
right: 16.66666667%;
|
148 |
+
}
|
149 |
+
|
150 |
+
.col-xs-pull-1 {
|
151 |
+
right: 8.33333333%;
|
152 |
+
}
|
153 |
+
|
154 |
+
.col-xs-pull-0 {
|
155 |
+
right: 0%;
|
156 |
+
}
|
157 |
+
|
158 |
+
.col-xs-push-12 {
|
159 |
+
left: 100%;
|
160 |
+
}
|
161 |
+
|
162 |
+
.col-xs-push-11 {
|
163 |
+
left: 91.66666667%;
|
164 |
+
}
|
165 |
+
|
166 |
+
.col-xs-push-10 {
|
167 |
+
left: 83.33333333%;
|
168 |
+
}
|
169 |
+
|
170 |
+
.col-xs-push-9 {
|
171 |
+
left: 75%;
|
172 |
+
}
|
173 |
+
|
174 |
+
.col-xs-push-8 {
|
175 |
+
left: 66.66666667%;
|
176 |
+
}
|
177 |
+
|
178 |
+
.col-xs-push-7 {
|
179 |
+
left: 58.33333333%;
|
180 |
+
}
|
181 |
+
|
182 |
+
.col-xs-push-6 {
|
183 |
+
left: 50%;
|
184 |
+
}
|
185 |
+
|
186 |
+
.col-xs-push-5 {
|
187 |
+
left: 41.66666667%;
|
188 |
+
}
|
189 |
+
|
190 |
+
.col-xs-push-4 {
|
191 |
+
left: 33.33333333%;
|
192 |
+
}
|
193 |
+
|
194 |
+
.col-xs-push-3 {
|
195 |
+
left: 25%;
|
196 |
+
}
|
197 |
+
|
198 |
+
.col-xs-push-2 {
|
199 |
+
left: 16.66666667%;
|
200 |
+
}
|
201 |
+
|
202 |
+
.col-xs-push-1 {
|
203 |
+
left: 8.33333333%;
|
204 |
+
}
|
205 |
+
|
206 |
+
.col-xs-push-0 {
|
207 |
+
left: 0%;
|
208 |
+
}
|
209 |
+
|
210 |
+
.col-xs-offset-12 {
|
211 |
+
margin-left: 100%;
|
212 |
+
}
|
213 |
+
|
214 |
+
.col-xs-offset-11 {
|
215 |
+
margin-left: 91.66666667%;
|
216 |
+
}
|
217 |
+
|
218 |
+
.col-xs-offset-10 {
|
219 |
+
margin-left: 83.33333333%;
|
220 |
+
}
|
221 |
+
|
222 |
+
.col-xs-offset-9 {
|
223 |
+
margin-left: 75%;
|
224 |
+
}
|
225 |
+
|
226 |
+
.col-xs-offset-8 {
|
227 |
+
margin-left: 66.66666667%;
|
228 |
+
}
|
229 |
+
|
230 |
+
.col-xs-offset-7 {
|
231 |
+
margin-left: 58.33333333%;
|
232 |
+
}
|
233 |
+
|
234 |
+
.col-xs-offset-6 {
|
235 |
+
margin-left: 50%;
|
236 |
+
}
|
237 |
+
|
238 |
+
.col-xs-offset-5 {
|
239 |
+
margin-left: 41.66666667%;
|
240 |
+
}
|
241 |
+
|
242 |
+
.col-xs-offset-4 {
|
243 |
+
margin-left: 33.33333333%;
|
244 |
+
}
|
245 |
+
|
246 |
+
.col-xs-offset-3 {
|
247 |
+
margin-left: 25%;
|
248 |
+
}
|
249 |
+
|
250 |
+
.col-xs-offset-2 {
|
251 |
+
margin-left: 16.66666667%;
|
252 |
+
}
|
253 |
+
|
254 |
+
.col-xs-offset-1 {
|
255 |
+
margin-left: 8.33333333%;
|
256 |
+
}
|
257 |
+
|
258 |
+
.col-xs-offset-0 {
|
259 |
+
margin-left: 0%;
|
260 |
+
}
|
261 |
+
|
262 |
+
@media (min-width: 768px) {
|
263 |
+
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
|
264 |
+
float: left;
|
265 |
+
}
|
266 |
+
|
267 |
+
.col-sm-12 {
|
268 |
+
width: 100%;
|
269 |
+
}
|
270 |
+
|
271 |
+
.col-sm-11 {
|
272 |
+
width: 91.66666667%;
|
273 |
+
}
|
274 |
+
|
275 |
+
.col-sm-10 {
|
276 |
+
width: 83.33333333%;
|
277 |
+
}
|
278 |
+
|
279 |
+
.col-sm-9 {
|
280 |
+
width: 75%;
|
281 |
+
}
|
282 |
+
|
283 |
+
.col-sm-8 {
|
284 |
+
width: 66.66666667%;
|
285 |
+
}
|
286 |
+
|
287 |
+
.col-sm-7 {
|
288 |
+
width: 58.33333333%;
|
289 |
+
}
|
290 |
+
|
291 |
+
.col-sm-6 {
|
292 |
+
width: 50%;
|
293 |
+
}
|
294 |
+
|
295 |
+
.col-sm-5 {
|
296 |
+
width: 41.66666667%;
|
297 |
+
}
|
298 |
+
|
299 |
+
.col-sm-4 {
|
300 |
+
width: 33.33333333%;
|
301 |
+
}
|
302 |
+
|
303 |
+
.col-sm-3 {
|
304 |
+
width: 25%;
|
305 |
+
}
|
306 |
+
|
307 |
+
.col-sm-2 {
|
308 |
+
width: 16.66666667%;
|
309 |
+
}
|
310 |
+
|
311 |
+
.col-sm-1 {
|
312 |
+
width: 8.33333333%;
|
313 |
+
}
|
314 |
+
|
315 |
+
.col-sm-pull-12 {
|
316 |
+
right: 100%;
|
317 |
+
}
|
318 |
+
|
319 |
+
.col-sm-pull-11 {
|
320 |
+
right: 91.66666667%;
|
321 |
+
}
|
322 |
+
|
323 |
+
.col-sm-pull-10 {
|
324 |
+
right: 83.33333333%;
|
325 |
+
}
|
326 |
+
|
327 |
+
.col-sm-pull-9 {
|
328 |
+
right: 75%;
|
329 |
+
}
|
330 |
+
|
331 |
+
.col-sm-pull-8 {
|
332 |
+
right: 66.66666667%;
|
333 |
+
}
|
334 |
+
|
335 |
+
.col-sm-pull-7 {
|
336 |
+
right: 58.33333333%;
|
337 |
+
}
|
338 |
+
|
339 |
+
.col-sm-pull-6 {
|
340 |
+
right: 50%;
|
341 |
+
}
|
342 |
+
|
343 |
+
.col-sm-pull-5 {
|
344 |
+
right: 41.66666667%;
|
345 |
+
}
|
346 |
+
|
347 |
+
.col-sm-pull-4 {
|
348 |
+
right: 33.33333333%;
|
349 |
+
}
|
350 |
+
|
351 |
+
.col-sm-pull-3 {
|
352 |
+
right: 25%;
|
353 |
+
}
|
354 |
+
|
355 |
+
.col-sm-pull-2 {
|
356 |
+
right: 16.66666667%;
|
357 |
+
}
|
358 |
+
|
359 |
+
.col-sm-pull-1 {
|
360 |
+
right: 8.33333333%;
|
361 |
+
}
|
362 |
+
|
363 |
+
.col-sm-pull-0 {
|
364 |
+
right: 0%;
|
365 |
+
}
|
366 |
+
|
367 |
+
.col-sm-push-12 {
|
368 |
+
left: 100%;
|
369 |
+
}
|
370 |
+
|
371 |
+
.col-sm-push-11 {
|
372 |
+
left: 91.66666667%;
|
373 |
+
}
|
374 |
+
|
375 |
+
.col-sm-push-10 {
|
376 |
+
left: 83.33333333%;
|
377 |
+
}
|
378 |
+
|
379 |
+
.col-sm-push-9 {
|
380 |
+
left: 75%;
|
381 |
+
}
|
382 |
+
|
383 |
+
.col-sm-push-8 {
|
384 |
+
left: 66.66666667%;
|
385 |
+
}
|
386 |
+
|
387 |
+
.col-sm-push-7 {
|
388 |
+
left: 58.33333333%;
|
389 |
+
}
|
390 |
+
|
391 |
+
.col-sm-push-6 {
|
392 |
+
left: 50%;
|
393 |
+
}
|
394 |
+
|
395 |
+
.col-sm-push-5 {
|
396 |
+
left: 41.66666667%;
|
397 |
+
}
|
398 |
+
|
399 |
+
.col-sm-push-4 {
|
400 |
+
left: 33.33333333%;
|
401 |
+
}
|
402 |
+
|
403 |
+
.col-sm-push-3 {
|
404 |
+
left: 25%;
|
405 |
+
}
|
406 |
+
|
407 |
+
.col-sm-push-2 {
|
408 |
+
left: 16.66666667%;
|
409 |
+
}
|
410 |
+
|
411 |
+
.col-sm-push-1 {
|
412 |
+
left: 8.33333333%;
|
413 |
+
}
|
414 |
+
|
415 |
+
.col-sm-push-0 {
|
416 |
+
left: 0%;
|
417 |
+
}
|
418 |
+
|
419 |
+
.col-sm-offset-12 {
|
420 |
+
margin-left: 100%;
|
421 |
+
}
|
422 |
+
|
423 |
+
.col-sm-offset-11 {
|
424 |
+
margin-left: 91.66666667%;
|
425 |
+
}
|
426 |
+
|
427 |
+
.col-sm-offset-10 {
|
428 |
+
margin-left: 83.33333333%;
|
429 |
+
}
|
430 |
+
|
431 |
+
.col-sm-offset-9 {
|
432 |
+
margin-left: 75%;
|
433 |
+
}
|
434 |
+
|
435 |
+
.col-sm-offset-8 {
|
436 |
+
margin-left: 66.66666667%;
|
437 |
+
}
|
438 |
+
|
439 |
+
.col-sm-offset-7 {
|
440 |
+
margin-left: 58.33333333%;
|
441 |
+
}
|
442 |
+
|
443 |
+
.col-sm-offset-6 {
|
444 |
+
margin-left: 50%;
|
445 |
+
}
|
446 |
+
|
447 |
+
.col-sm-offset-5 {
|
448 |
+
margin-left: 41.66666667%;
|
449 |
+
}
|
450 |
+
|
451 |
+
.col-sm-offset-4 {
|
452 |
+
margin-left: 33.33333333%;
|
453 |
+
}
|
454 |
+
|
455 |
+
.col-sm-offset-3 {
|
456 |
+
margin-left: 25%;
|
457 |
+
}
|
458 |
+
|
459 |
+
.col-sm-offset-2 {
|
460 |
+
margin-left: 16.66666667%;
|
461 |
+
}
|
462 |
+
|
463 |
+
.col-sm-offset-1 {
|
464 |
+
margin-left: 8.33333333%;
|
465 |
+
}
|
466 |
+
|
467 |
+
.col-sm-offset-0 {
|
468 |
+
margin-left: 0%;
|
469 |
+
}
|
470 |
+
}
|
471 |
+
|
472 |
+
@media (min-width: 992px) {
|
473 |
+
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
|
474 |
+
float: left;
|
475 |
+
}
|
476 |
+
|
477 |
+
.col-md-12 {
|
478 |
+
width: 100%;
|
479 |
+
}
|
480 |
+
|
481 |
+
.col-md-11 {
|
482 |
+
width: 91.66666667%;
|
483 |
+
}
|
484 |
+
|
485 |
+
.col-md-10 {
|
486 |
+
width: 83.33333333%;
|
487 |
+
}
|
488 |
+
|
489 |
+
.col-md-9 {
|
490 |
+
width: 75%;
|
491 |
+
}
|
492 |
+
|
493 |
+
.col-md-8 {
|
494 |
+
width: 66.66666667%;
|
495 |
+
}
|
496 |
+
|
497 |
+
.col-md-7 {
|
498 |
+
width: 58.33333333%;
|
499 |
+
}
|
500 |
+
|
501 |
+
.col-md-6 {
|
502 |
+
width: 50%;
|
503 |
+
}
|
504 |
+
|
505 |
+
.col-md-5 {
|
506 |
+
width: 41.66666667%;
|
507 |
+
}
|
508 |
+
|
509 |
+
.col-md-4 {
|
510 |
+
width: 33.33333333%;
|
511 |
+
}
|
512 |
+
|
513 |
+
.col-md-3 {
|
514 |
+
width: 25%;
|
515 |
+
}
|
516 |
+
|
517 |
+
.col-md-2 {
|
518 |
+
width: 16.66666667%;
|
519 |
+
}
|
520 |
+
|
521 |
+
.col-md-1 {
|
522 |
+
width: 8.33333333%;
|
523 |
+
}
|
524 |
+
|
525 |
+
.col-md-pull-12 {
|
526 |
+
right: 100%;
|
527 |
+
}
|
528 |
+
|
529 |
+
.col-md-pull-11 {
|
530 |
+
right: 91.66666667%;
|
531 |
+
}
|
532 |
+
|
533 |
+
.col-md-pull-10 {
|
534 |
+
right: 83.33333333%;
|
535 |
+
}
|
536 |
+
|
537 |
+
.col-md-pull-9 {
|
538 |
+
right: 75%;
|
539 |
+
}
|
540 |
+
|
541 |
+
.col-md-pull-8 {
|
542 |
+
right: 66.66666667%;
|
543 |
+
}
|
544 |
+
|
545 |
+
.col-md-pull-7 {
|
546 |
+
right: 58.33333333%;
|
547 |
+
}
|
548 |
+
|
549 |
+
.col-md-pull-6 {
|
550 |
+
right: 50%;
|
551 |
+
}
|
552 |
+
|
553 |
+
.col-md-pull-5 {
|
554 |
+
right: 41.66666667%;
|
555 |
+
}
|
556 |
+
|
557 |
+
.col-md-pull-4 {
|
558 |
+
right: 33.33333333%;
|
559 |
+
}
|
560 |
+
|
561 |
+
.col-md-pull-3 {
|
562 |
+
right: 25%;
|
563 |
+
}
|
564 |
+
|
565 |
+
.col-md-pull-2 {
|
566 |
+
right: 16.66666667%;
|
567 |
+
}
|
568 |
+
|
569 |
+
.col-md-pull-1 {
|
570 |
+
right: 8.33333333%;
|
571 |
+
}
|
572 |
+
|
573 |
+
.col-md-pull-0 {
|
574 |
+
right: 0%;
|
575 |
+
}
|
576 |
+
|
577 |
+
.col-md-push-12 {
|
578 |
+
left: 100%;
|
579 |
+
}
|
580 |
+
|
581 |
+
.col-md-push-11 {
|
582 |
+
left: 91.66666667%;
|
583 |
+
}
|
584 |
+
|
585 |
+
.col-md-push-10 {
|
586 |
+
left: 83.33333333%;
|
587 |
+
}
|
588 |
+
|
589 |
+
.col-md-push-9 {
|
590 |
+
left: 75%;
|
591 |
+
}
|
592 |
+
|
593 |
+
.col-md-push-8 {
|
594 |
+
left: 66.66666667%;
|
595 |
+
}
|
596 |
+
|
597 |
+
.col-md-push-7 {
|
598 |
+
left: 58.33333333%;
|
599 |
+
}
|
600 |
+
|
601 |
+
.col-md-push-6 {
|
602 |
+
left: 50%;
|
603 |
+
}
|
604 |
+
|
605 |
+
.col-md-push-5 {
|
606 |
+
left: 41.66666667%;
|
607 |
+
}
|
608 |
+
|
609 |
+
.col-md-push-4 {
|
610 |
+
left: 33.33333333%;
|
611 |
+
}
|
612 |
+
|
613 |
+
.col-md-push-3 {
|
614 |
+
left: 25%;
|
615 |
+
}
|
616 |
+
|
617 |
+
.col-md-push-2 {
|
618 |
+
left: 16.66666667%;
|
619 |
+
}
|
620 |
+
|
621 |
+
.col-md-push-1 {
|
622 |
+
left: 8.33333333%;
|
623 |
+
}
|
624 |
+
|
625 |
+
.col-md-push-0 {
|
626 |
+
left: 0%;
|
627 |
+
}
|
628 |
+
|
629 |
+
.col-md-offset-12 {
|
630 |
+
margin-left: 100%;
|
631 |
+
}
|
632 |
+
|
633 |
+
.col-md-offset-11 {
|
634 |
+
margin-left: 91.66666667%;
|
635 |
+
}
|
636 |
+
|
637 |
+
.col-md-offset-10 {
|
638 |
+
margin-left: 83.33333333%;
|
639 |
+
}
|
640 |
+
|
641 |
+
.col-md-offset-9 {
|
642 |
+
margin-left: 75%;
|
643 |
+
}
|
644 |
+
|
645 |
+
.col-md-offset-8 {
|
646 |
+
margin-left: 66.66666667%;
|
647 |
+
}
|
648 |
+
|
649 |
+
.col-md-offset-7 {
|
650 |
+
margin-left: 58.33333333%;
|
651 |
+
}
|
652 |
+
|
653 |
+
.col-md-offset-6 {
|
654 |
+
margin-left: 50%;
|
655 |
+
}
|
656 |
+
|
657 |
+
.col-md-offset-5 {
|
658 |
+
margin-left: 41.66666667%;
|
659 |
+
}
|
660 |
+
|
661 |
+
.col-md-offset-4 {
|
662 |
+
margin-left: 33.33333333%;
|
663 |
+
}
|
664 |
+
|
665 |
+
.col-md-offset-3 {
|
666 |
+
margin-left: 25%;
|
667 |
+
}
|
668 |
+
|
669 |
+
.col-md-offset-2 {
|
670 |
+
margin-left: 16.66666667%;
|
671 |
+
}
|
672 |
+
|
673 |
+
.col-md-offset-1 {
|
674 |
+
margin-left: 8.33333333%;
|
675 |
+
}
|
676 |
+
|
677 |
+
.col-md-offset-0 {
|
678 |
+
margin-left: 0%;
|
679 |
+
}
|
680 |
+
}
|
681 |
+
|
682 |
+
@media (min-width: 1200px) {
|
683 |
+
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
|
684 |
+
float: left;
|
685 |
+
}
|
686 |
+
|
687 |
+
.col-lg-12 {
|
688 |
+
width: 100%;
|
689 |
+
}
|
690 |
+
|
691 |
+
.col-lg-11 {
|
692 |
+
width: 91.66666667%;
|
693 |
+
}
|
694 |
+
|
695 |
+
.col-lg-10 {
|
696 |
+
width: 83.33333333%;
|
697 |
+
}
|
698 |
+
|
699 |
+
.col-lg-9 {
|
700 |
+
width: 75%;
|
701 |
+
}
|
702 |
+
|
703 |
+
.col-lg-8 {
|
704 |
+
width: 66.66666667%;
|
705 |
+
}
|
706 |
+
|
707 |
+
.col-lg-7 {
|
708 |
+
width: 58.33333333%;
|
709 |
+
}
|
710 |
+
|
711 |
+
.col-lg-6 {
|
712 |
+
width: 50%;
|
713 |
+
}
|
714 |
+
|
715 |
+
.col-lg-5 {
|
716 |
+
width: 41.66666667%;
|
717 |
+
}
|
718 |
+
|
719 |
+
.col-lg-4 {
|
720 |
+
width: 33.33333333%;
|
721 |
+
}
|
722 |
+
|
723 |
+
.col-lg-3 {
|
724 |
+
width: 25%;
|
725 |
+
}
|
726 |
+
|
727 |
+
.col-lg-2 {
|
728 |
+
width: 16.66666667%;
|
729 |
+
}
|
730 |
+
|
731 |
+
.col-lg-1 {
|
732 |
+
width: 8.33333333%;
|
733 |
+
}
|
734 |
+
|
735 |
+
.col-lg-pull-12 {
|
736 |
+
right: 100%;
|
737 |
+
}
|
738 |
+
|
739 |
+
.col-lg-pull-11 {
|
740 |
+
right: 91.66666667%;
|
741 |
+
}
|
742 |
+
|
743 |
+
.col-lg-pull-10 {
|
744 |
+
right: 83.33333333%;
|
745 |
+
}
|
746 |
+
|
747 |
+
.col-lg-pull-9 {
|
748 |
+
right: 75%;
|
749 |
+
}
|
750 |
+
|
751 |
+
.col-lg-pull-8 {
|
752 |
+
right: 66.66666667%;
|
753 |
+
}
|
754 |
+
|
755 |
+
.col-lg-pull-7 {
|
756 |
+
right: 58.33333333%;
|
757 |
+
}
|
758 |
+
|
759 |
+
.col-lg-pull-6 {
|
760 |
+
right: 50%;
|
761 |
+
}
|
762 |
+
|
763 |
+
.col-lg-pull-5 {
|
764 |
+
right: 41.66666667%;
|
765 |
+
}
|
766 |
+
|
767 |
+
.col-lg-pull-4 {
|
768 |
+
right: 33.33333333%;
|
769 |
+
}
|
770 |
+
|
771 |
+
.col-lg-pull-3 {
|
772 |
+
right: 25%;
|
773 |
+
}
|
774 |
+
|
775 |
+
.col-lg-pull-2 {
|
776 |
+
right: 16.66666667%;
|
777 |
+
}
|
778 |
+
|
779 |
+
.col-lg-pull-1 {
|
780 |
+
right: 8.33333333%;
|
781 |
+
}
|
782 |
+
|
783 |
+
.col-lg-pull-0 {
|
784 |
+
right: 0%;
|
785 |
+
}
|
786 |
+
|
787 |
+
.col-lg-push-12 {
|
788 |
+
left: 100%;
|
789 |
+
}
|
790 |
+
|
791 |
+
.col-lg-push-11 {
|
792 |
+
left: 91.66666667%;
|
793 |
+
}
|
794 |
+
|
795 |
+
.col-lg-push-10 {
|
796 |
+
left: 83.33333333%;
|
797 |
+
}
|
798 |
+
|
799 |
+
.col-lg-push-9 {
|
800 |
+
left: 75%;
|
801 |
+
}
|
802 |
+
|
803 |
+
.col-lg-push-8 {
|
804 |
+
left: 66.66666667%;
|
805 |
+
}
|
806 |
+
|
807 |
+
.col-lg-push-7 {
|
808 |
+
left: 58.33333333%;
|
809 |
+
}
|
810 |
+
|
811 |
+
.col-lg-push-6 {
|
812 |
+
left: 50%;
|
813 |
+
}
|
814 |
+
|
815 |
+
.col-lg-push-5 {
|
816 |
+
left: 41.66666667%;
|
817 |
+
}
|
818 |
+
|
819 |
+
.col-lg-push-4 {
|
820 |
+
left: 33.33333333%;
|
821 |
+
}
|
822 |
+
|
823 |
+
.col-lg-push-3 {
|
824 |
+
left: 25%;
|
825 |
+
}
|
826 |
+
|
827 |
+
.col-lg-push-2 {
|
828 |
+
left: 16.66666667%;
|
829 |
+
}
|
830 |
+
|
831 |
+
.col-lg-push-1 {
|
832 |
+
left: 8.33333333%;
|
833 |
+
}
|
834 |
+
|
835 |
+
.col-lg-push-0 {
|
836 |
+
left: 0%;
|
837 |
+
}
|
838 |
+
|
839 |
+
.col-lg-offset-12 {
|
840 |
+
margin-left: 100%;
|
841 |
+
}
|
842 |
+
|
843 |
+
.col-lg-offset-11 {
|
844 |
+
margin-left: 91.66666667%;
|
845 |
+
}
|
846 |
+
|
847 |
+
.col-lg-offset-10 {
|
848 |
+
margin-left: 83.33333333%;
|
849 |
+
}
|
850 |
+
|
851 |
+
.col-lg-offset-9 {
|
852 |
+
margin-left: 75%;
|
853 |
+
}
|
854 |
+
|
855 |
+
.col-lg-offset-8 {
|
856 |
+
margin-left: 66.66666667%;
|
857 |
+
}
|
858 |
+
|
859 |
+
.col-lg-offset-7 {
|
860 |
+
margin-left: 58.33333333%;
|
861 |
+
}
|
862 |
+
|
863 |
+
.col-lg-offset-6 {
|
864 |
+
margin-left: 50%;
|
865 |
+
}
|
866 |
+
|
867 |
+
.col-lg-offset-5 {
|
868 |
+
margin-left: 41.66666667%;
|
869 |
+
}
|
870 |
+
|
871 |
+
.col-lg-offset-4 {
|
872 |
+
margin-left: 33.33333333%;
|
873 |
+
}
|
874 |
+
|
875 |
+
.col-lg-offset-3 {
|
876 |
+
margin-left: 25%;
|
877 |
+
}
|
878 |
+
|
879 |
+
.col-lg-offset-2 {
|
880 |
+
margin-left: 16.66666667%;
|
881 |
+
}
|
882 |
+
|
883 |
+
.col-lg-offset-1 {
|
884 |
+
margin-left: 8.33333333%;
|
885 |
+
}
|
886 |
+
|
887 |
+
.col-lg-offset-0 {
|
888 |
+
margin-left: 0%;
|
889 |
+
}
|
890 |
+
}
|
admin/assets/css/grid.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.clearfix:before,.clearfix:after,.container:before,.container:after,.container-fluid:before,.container-fluid:after,.row:before,.row:after,.form-horizontal .form-group:before,.form-horizontal .form-group:after,.btn-toolbar:before,.btn-toolbar:after,.btn-group-vertical>.btn-group:before,.btn-group-vertical>.btn-group:after,.nav:before,.nav:after,.navbar:before,.navbar:after,.navbar-header:before,.navbar-header:after,.navbar-collapse:before,.navbar-collapse:after,.pager:before,.pager:after,.panel-body:before,.panel-body:after,.modal-footer:before,.modal-footer:after{content:" ";display:table}.container{padding-left:15px;padding-right:15px}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}.row{margin-left:-15px;margin-right:-15px}.col-xs-1,.col-sm-1,.col-md-1,.col-lg-1,.col-xs-2,.col-sm-2,.col-md-2,.col-lg-2,.col-xs-3,.col-sm-3,.col-md-3,.col-lg-3,.col-xs-4,.col-sm-4,.col-md-4,.col-lg-4,.col-xs-5,.col-sm-5,.col-md-5,.col-lg-5,.col-xs-6,.col-sm-6,.col-md-6,.col-lg-6,.col-xs-7,.col-sm-7,.col-md-7,.col-lg-7,.col-xs-8,.col-sm-8,.col-md-8,.col-lg-8,.col-xs-9,.col-sm-9,.col-md-9,.col-lg-9,.col-xs-10,.col-sm-10,.col-md-10,.col-lg-10,.col-xs-11,.col-sm-11,.col-md-11,.col-lg-11,.col-xs-12,.col-sm-12,.col-md-12,.col-lg-12{position:relative;min-height:1px;padding-left:15px;padding-right:15px}.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:0}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:0}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:0}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:0}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:0}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:0}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:0}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:0}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}
|
admin/assets/css/index.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php // Silence is golden
|
admin/assets/img/arrows.png
ADDED
Binary file
|
admin/assets/img/help.png
ADDED
Binary file
|
admin/assets/img/icons-app-000.svg
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="utf-8"?>
|
2 |
+
<!-- Generator: Adobe Illustrator 16.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3 |
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
4 |
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
5 |
+
width="84px" height="63px" viewBox="0 0 84 63" enable-background="new 0 0 84 63" xml:space="preserve">
|
6 |
+
<path d="M16.7422,15.502L14,12.7578h-0.6426l-0.5508-0.5508C13.54,11.3379,14,10.229,14,9c0-2.7607-2.2383-5-5-5
|
7 |
+
C6.2378,4,4,6.2393,4,9c0,2.7617,2.2378,5,5,5c1.229,0,2.3379-0.459,3.208-1.1934l0.5518,0.5508V14l2.7422,2.7422
|
8 |
+
c0.3418,0.3438,0.8965,0.3438,1.2402,0.002C17.0859,16.4004,17.0859,15.8457,16.7422,15.502z M9,12.25
|
9 |
+
c-1.7949,0-3.25-1.4551-3.25-3.25S7.2051,5.75,9,5.75c1.7969,0,3.25,1.4551,3.25,3.25S10.7969,12.25,9,12.25z"/>
|
10 |
+
<g>
|
11 |
+
<path d="M60.25,52H59v-2.25c0-0.4141-0.3359-0.75-0.75-0.75h-5.9395l-1.7793-1.7788C50.3965,47.084,50.209,47,50,47h-4.25
|
12 |
+
C45.3359,47,45,47.3359,45,47.75V49v10.25c0,0.4141,0.3359,0.75,0.75,0.75H48h6.5h3.75h0.25c0.4141,0,0.75-0.3359,0.75-0.75
|
13 |
+
l1.75-6.5C61,52.3359,60.6641,52,60.25,52z"/>
|
14 |
+
</g>
|
15 |
+
<path fill="#FFFFFF" d="M47.25,58l1-5.75c0-0.1382,0.1113-0.25,0.25-0.25H59v-1H48.5c-0.6895,0-1.25,0.561-1.25,1.25l-1,5.75"/>
|
16 |
+
<polygon points="58,5.4141 56.5859,4 52,8.5859 47.4141,4 46,5.4141 50.5859,10 46,14.5859 47.4141,16 52,11.4141 56.5859,16
|
17 |
+
58,14.5859 53.4141,10 "/>
|
18 |
+
<rect x="42" fill="#4387FD" fill-opacity="0" width="21" height="21"/>
|
19 |
+
<polygon enable-background="new " points="77.9141,7.5 76.5,6.0859 73.5,9.0859 70.5,6.0859 69.085,7.5 72.085,10.5 69.085,13.5
|
20 |
+
70.5,14.9141 73.5,11.9141 76.5,14.9141 77.9141,13.5 74.9141,10.5 "/>
|
21 |
+
<path d="M60.8633,37.4961l-7-12C53.6855,25.189,53.3555,25,53,25c-0.3545,0-0.6846,0.189-0.8623,0.4961l-7,12
|
22 |
+
c-0.1826,0.3105-0.1826,0.6914-0.0049,1.002C45.3115,38.8086,45.6436,39,46,39h14c0.3574,0,0.6895-0.1914,0.8672-0.502
|
23 |
+
S61.0449,37.8066,60.8633,37.4961z"/>
|
24 |
+
<circle fill="#FFFFFF" cx="52.998" cy="35.999" r="1.0508"/>
|
25 |
+
<polygon fill="#FFFFFF" points="52,29 54,29 53.6504,34 52.3506,34 "/>
|
26 |
+
<path fill="#4D90FE" d="M26,52c0,3.3145,2.6875,6,6,6c3.3145,0,6-2.6855,6-6c0-3.313-2.6855-6-6-6C28.6875,46,26,48.687,26,52z"/>
|
27 |
+
<rect x="31" y="51" fill="#FFFFFF" width="2" height="4"/>
|
28 |
+
<rect x="31" y="48" fill="#FFFFFF" width="2" height="2"/>
|
29 |
+
<path d="M15.5,25h-10C4.6719,25,4,25.6719,4,26.5v10C4,37.3281,4.6719,38,5.5,38h10c0.8281,0,1.5-0.6719,1.5-1.5v-10
|
30 |
+
C17,25.6719,16.3281,25,15.5,25z"/>
|
31 |
+
<path fill="#FFFFFF" d="M11,35.5c0,0.2754-0.2251,0.5-0.5,0.5h-1C9.2241,36,9,35.7754,9,35.5v-1C9,34.2246,9.2241,34,9.5,34h1
|
32 |
+
c0.2749,0,0.5,0.2246,0.5,0.5V35.5z M14,30c0,0.5532-0.4473,1-1,1h-2v2H9v-2c0-0.5312,0.4839-1,1-1h2v-2h-2v1H8v-1
|
33 |
+
c0-0.5532,0.4468-1,1-1h4c0.5527,0,1,0.4468,1,1V30z"/>
|
34 |
+
<path fill="#4D90FE" d="M36.5,25h-10c-0.8281,0-1.5,0.6719-1.5,1.5v10c0,0.8281,0.6719,1.5,1.5,1.5h10c0.8281,0,1.5-0.6719,1.5-1.5
|
35 |
+
v-10C38,25.6719,37.3281,25,36.5,25z"/>
|
36 |
+
<path fill="#FFFFFF" d="M32,35.5c0,0.2754-0.2251,0.5-0.5,0.5h-1c-0.2759,0-0.5-0.2246-0.5-0.5v-1c0-0.2754,0.2241-0.5,0.5-0.5h1
|
37 |
+
c0.2749,0,0.5,0.2246,0.5,0.5V35.5z M35,30c0,0.5532-0.4473,1-1,1h-2v2h-2v-2c0-0.5312,0.4839-1,1-1h2v-2h-2v1h-2v-1
|
38 |
+
c0-0.5532,0.4468-1,1-1h4c0.5527,0,1,0.4468,1,1V30z"/>
|
39 |
+
<path fill="#FFFFFF" d="M37.7422,15.502L35,12.7578h-0.6426l-0.5508-0.5508C34.54,11.3379,35,10.229,35,9c0-2.7607-2.2383-5-5-5
|
40 |
+
c-2.7622,0-5,2.2393-5,5c0,2.7617,2.2378,5,5,5c1.229,0,2.3379-0.459,3.208-1.1934l0.5518,0.5508V14l2.7422,2.7422
|
41 |
+
c0.3418,0.3438,0.8965,0.3438,1.2402,0.002C38.0859,16.4004,38.0859,15.8457,37.7422,15.502z M30,12.25
|
42 |
+
c-1.7949,0-3.25-1.4551-3.25-3.25S28.2051,5.75,30,5.75c1.7969,0,3.25,1.4551,3.25,3.25S31.7969,12.25,30,12.25z"/>
|
43 |
+
<g>
|
44 |
+
<polygon points="74.1152,48.4683 67,55.5859 67,59 70.416,59 77.5312,51.8838 "/>
|
45 |
+
<path d="M79.585,49.8281c0.5537-0.5532,0.5518-1.4473-0.001-2.002l-1.4102-1.4102c-0.5508-0.5532-1.4492-0.5552-2.0049-0.0039
|
46 |
+
l-1.1924,1.1948l3.416,3.4141L79.585,49.8281z"/>
|
47 |
+
</g>
|
48 |
+
<path d="M5,52c0,3.3145,2.6875,6,6,6c3.3145,0,6-2.6855,6-6c0-3.313-2.6855-6-6-6C7.6875,46,5,48.687,5,52z"/>
|
49 |
+
<rect x="10" y="51" fill="#FFFFFF" width="2" height="4"/>
|
50 |
+
<rect x="10" y="48" fill="#FFFFFF" width="2" height="2"/>
|
51 |
+
<path fill="#DD4B39" d="M81.8633,37.4961l-7-12C74.6855,25.189,74.3555,25,74,25c-0.3545,0-0.6846,0.189-0.8623,0.4961l-7,12
|
52 |
+
c-0.1826,0.3105-0.1826,0.6914-0.0049,1.002C66.3115,38.8086,66.6436,39,67,39h14c0.3574,0,0.6895-0.1914,0.8672-0.502
|
53 |
+
S82.0449,37.8066,81.8633,37.4961z"/>
|
54 |
+
<circle fill="#FFFFFF" cx="73.998" cy="35.999" r="1.0508"/>
|
55 |
+
<polygon fill="#FFFFFF" points="73,29 75,29 74.6504,34 73.3506,34 "/>
|
56 |
+
</svg>
|
admin/assets/img/icons-infowindow-002.svg
ADDED
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="utf-8"?>
|
2 |
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
|
3 |
+
<!ENTITY st0 "fill:#4D90FE;">
|
4 |
+
<!ENTITY st1 "fill:#4387FD;fill-opacity:0;">
|
5 |
+
<!ENTITY st2 "enable-background:new ;">
|
6 |
+
<!ENTITY st3 "opacity:0.5;fill:none;stroke:#000000;stroke-miterlimit:10;">
|
7 |
+
<!ENTITY st4 "opacity:0.55;enable-background:new ;">
|
8 |
+
<!ENTITY st5 "stroke:#FFFFFF;stroke-width:0.35;stroke-miterlimit:10;">
|
9 |
+
<!ENTITY st6 "fill:#FFFFFF;stroke:#000000;stroke-width:0.8;stroke-miterlimit:10;">
|
10 |
+
<!ENTITY st7 "opacity:0.45;enable-background:new ;">
|
11 |
+
<!ENTITY st8 "fill:none;stroke:#000000;stroke-width:1.4;stroke-miterlimit:10;">
|
12 |
+
<!ENTITY st9 "opacity:0.5;">
|
13 |
+
<!ENTITY st10 "fill:none;stroke:#000000;stroke-miterlimit:10;">
|
14 |
+
<!ENTITY st11 "fill:#FFD040;">
|
15 |
+
<!ENTITY st12 "fill:#FFFFFF;">
|
16 |
+
<!ENTITY st13 "fill:none;">
|
17 |
+
<!ENTITY st14 "opacity:0.5;fill:#FFFFFF;enable-background:new;">
|
18 |
+
<!ENTITY st15 "fill:#DD4B39;">
|
19 |
+
]>
|
20 |
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="84px"
|
21 |
+
height="63px" viewBox="0 0 84 63" style="enable-background:new 0 0 84 63;" xml:space="preserve">
|
22 |
+
<g id="Infowindow">
|
23 |
+
<g id="Length">
|
24 |
+
<polygon points="58,31 55,28 55,30 49,30 49,28 46,31 49,34 49,32 55,32 55,34 "/>
|
25 |
+
<rect x="42" y="21" style="&st13;" width="21" height="21"/>
|
26 |
+
</g>
|
27 |
+
<g id="Perimeter">
|
28 |
+
<path d="M35,27v8h-8v-8H35 M37,25H25v12h12V25L37,25z"/>
|
29 |
+
<rect x="21" y="21" style="&st13;" width="21" height="21"/>
|
30 |
+
</g>
|
31 |
+
<g id="Area">
|
32 |
+
<rect y="21" style="&st13;" width="21" height="21"/>
|
33 |
+
<g>
|
34 |
+
<polygon points="6.646,25 4,27.646 4,28.354 7.354,25 "/>
|
35 |
+
</g>
|
36 |
+
<g>
|
37 |
+
<polygon points="9.646,25 4,30.646 4,31.354 10.354,25 "/>
|
38 |
+
</g>
|
39 |
+
<g>
|
40 |
+
<polygon points="12.646,25 4,33.646 4,34.354 13.354,25 "/>
|
41 |
+
</g>
|
42 |
+
<g>
|
43 |
+
<polygon points="15.646,25 4,36.646 4,37 4.354,37 16,25.354 16,25 "/>
|
44 |
+
</g>
|
45 |
+
<g>
|
46 |
+
<polygon points="6.646,37 7.354,37 16,28.354 16,27.646 "/>
|
47 |
+
</g>
|
48 |
+
<g>
|
49 |
+
<polygon points="9.646,37 10.354,37 16,31.354 16,30.646 "/>
|
50 |
+
</g>
|
51 |
+
<g>
|
52 |
+
<polygon points="12.646,37 13.354,37 16,34.354 16,33.646 "/>
|
53 |
+
</g>
|
54 |
+
</g>
|
55 |
+
<g id="Delete">
|
56 |
+
<rect x="42" style="&st13;" width="21" height="21"/>
|
57 |
+
<polygon points="53.997,4 53.997,3 50.003,3 50.003,4 46,4 46,6 58,6 58,4 "/>
|
58 |
+
<rect x="47" y="7" width="10" height="11"/>
|
59 |
+
</g>
|
60 |
+
<g id="Direections">
|
61 |
+
<rect x="21" style="&st13;" width="21" height="21"/>
|
62 |
+
<path style="&st7;" d="M27,4l3.805,3.853C32.227,9.275,32.801,11,32.801,13v4H30.1v-4c-0.016-1.158-0.365-2.311-1.248-3.195L25,6
|
63 |
+
L27,4z"/>
|
64 |
+
<path d="M32.197,7.853l1.816-1.84L32,4h6v6l-2.012-2.012L34.15,9.805C33.266,10.69,32.916,11.842,32.9,13v4H30v-4
|
65 |
+
C30,11,30.773,9.275,32.197,7.853z"/>
|
66 |
+
</g>
|
67 |
+
<g id="Settings">
|
68 |
+
<rect style="&st13;" width="21" height="21"/>
|
69 |
+
<path d="M16.895,11.641C16.96,11.27,17,10.89,17,10.5s-0.04-0.77-0.105-1.14l1.535-1.129l0.182-0.683l-1.5-2.598l-0.684-0.184
|
70 |
+
l-1.738,0.762c-0.58-0.49-1.25-0.875-1.979-1.138L12.5,2.5L12,2H9L8.5,2.499L8.29,4.395C7.562,4.658,6.896,5.043,6.314,5.531
|
71 |
+
L4.57,4.768L3.889,4.951l-1.5,2.598l0.184,0.684l1.535,1.129C4.04,9.731,4,10.111,4,10.5s0.04,0.77,0.105,1.139L2.57,12.768
|
72 |
+
l-0.182,0.685l1.5,2.598l0.682,0.185l1.744-0.764c0.58,0.487,1.248,0.872,1.975,1.137l0.21,1.896L9,19h3l0.5-0.5l0.21-1.893
|
73 |
+
c0.729-0.262,1.397-0.647,1.979-1.137l1.737,0.762l0.685-0.185l1.498-2.598l-0.18-0.683L16.895,11.641z M14.15,10.5
|
74 |
+
c0,2.016-1.635,3.65-3.65,3.65s-3.65-1.635-3.65-3.65c0-2.015,1.635-3.65,3.65-3.65S14.15,8.484,14.15,10.5z"/>
|
75 |
+
</g>
|
76 |
+
</g>
|
77 |
+
<g id="Table">
|
78 |
+
</g>
|
79 |
+
<g id="Toolbar">
|
80 |
+
</g>
|
81 |
+
<g id="Legend_panel">
|
82 |
+
</g>
|
83 |
+
<g id="App">
|
84 |
+
<g id="Add_image">
|
85 |
+
<rect x="63" y="21" style="&st13;" width="21" height="21"/>
|
86 |
+
<polygon style="&st12;" points="72,27 74,27 74,30 77,30 77,32 74,32 74,35 72,35 72,32 69,32 69,30 72,30 "/>
|
87 |
+
</g>
|
88 |
+
<g id="Delete_small_white">
|
89 |
+
<rect x="63" style="&st13;" width="21" height="21"/>
|
90 |
+
<polygon style="&st12;" points="74.997,5 74.997,4 71.003,4 71.003,5 68,5 68,7 78,7 78,5 "/>
|
91 |
+
<rect x="69" y="8" style="&st12;" width="8" height="8"/>
|
92 |
+
</g>
|
93 |
+
<g id="Next_arrow_1_">
|
94 |
+
<rect x="21" y="42" style="&st13;" width="21" height="21"/>
|
95 |
+
<polygon style="&st12;" points="30.277,57 35,53.048 30.287,49 29,50.408 32.053,53.029 29.01,55.576 "/>
|
96 |
+
</g>
|
97 |
+
<g id="Previous_arrow_1_">
|
98 |
+
<rect y="42" style="&st13;" width="21" height="21"/>
|
99 |
+
<polygon style="&st12;" points="12.99,55.576 9.947,53.029 13,50.408 11.713,49 7,53.048 11.723,57 "/>
|
100 |
+
</g>
|
101 |
+
<g>
|
102 |
+
<rect x="42" y="42" style="&st13;" width="21" height="21"/>
|
103 |
+
<g>
|
104 |
+
<path d="M46.5,60c-1,0-1.5-0.5-1.5-1.5v-9c0-1,0.5-1.5,1.5-1.5H48c0,0,2-2,3-2h4c1,0,3,2,3,2h1.5c1,0,1.5,0.5,1.5,1.5v9
|
105 |
+
c0,1-0.5,1.5-1.5,1.5H46.5z"/>
|
106 |
+
<path style="&st12;" d="M53,50c-2.209,0-4,1.791-4,4s1.791,4,4,4s4-1.791,4-4S55.209,50,53,50z M53,56.375
|
107 |
+
c-1.312,0-2.375-1.063-2.375-2.375s1.063-2.375,2.375-2.375s2.375,1.063,2.375,2.375S54.312,56.375,53,56.375z"/>
|
108 |
+
</g>
|
109 |
+
</g>
|
110 |
+
</g>
|
111 |
+
</svg>
|
admin/assets/img/marker-btn.png
ADDED
Binary file
|
admin/assets/img/new-window-icon.png
ADDED
Binary file
|
admin/assets/img/powered-by-google-on-white.png
ADDED
Binary file
|
admin/assets/img/spinner.gif
ADDED
Binary file
|
admin/assets/img/wordimpress-logo-small.png
ADDED
Binary file
|
admin/assets/js/admin-google-map.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function($){"use strict";function drop_marker(a,b){var c=a.lat(),d=a.lng();"undefined"!=typeof e&&e.setVisible(!1),$(".drop-marker").removeClass("active").text("Drop a Marker"),map.setOptions({draggableCursor:null}),google.maps.event.removeListener(b);var e=new Marker({position:a,map:map,icon:gmb_data.plugin_url+"/public/assets/img/default-marker.png",zIndex:google.maps.Marker.MAX_ZINDEX+1,optimized:!1}),f=get_marker_index();$("#gmb_markers_group_"+f+"_title").val("Point "+f),$("#gmb_markers_group_"+f+"_lat").val(c),$("#gmb_markers_group_"+f+"_lng").val(d),get_editable_info_window(f,e),google.maps.event.addListener(e,"click",function(){get_info_window_content(f,e)})}function initialize_map(a){lat_field=$("#gmb_lat_lng-latitude"),lng_field=$("#gmb_lat_lng-longitude");var b=lat_field.val()?lat_field.val():"",c=lng_field.val()?lng_field.val():"";zoom=parseInt($("#gmb_zoom").val()),lat_lng=new google.maps.LatLng(b,c);var d={zoom:zoom,streetViewControl:!1,styles:[{stylers:[{visibility:"simplified"}]},{elementType:"labels",stylers:[{visibility:"off"}]}]};map=new google.maps.Map(a[0],d),places_service=new google.maps.places.PlacesService(map),navigator.geolocation&&"yes"===gmb_data.geolocate_setting&&""==c&&""==b?navigator.geolocation.getCurrentPosition(function(a){initial_location=new google.maps.LatLng(a.coords.latitude,a.coords.longitude),map.setCenter(initial_location),lat_field.val(a.coords.latitude),lng_field.val(a.coords.longitude)}):""!==b&&""!==c?map.setCenter(new google.maps.LatLng(b,c)):(alert("Geolocation service failed."),initial_location=new google.maps.LatLng(gmb_data.default_lat,gmb_data.default_lng),lat_field.val(gmb_data.default_lat),lng_field.val(gmb_data.default_lng),map.setCenter(initial_location)),set_map_type(!1),"none"!==$("#gmb_theme").val()&&set_map_theme(!1),set_street_view(),set_pan_control(),set_draggable(),set_double_click_zoom(),set_mouse_wheel_scroll(),set_map_type_control(),set_map_zoom_control(),"undefined"==typeof autocomplete&&(autocomplete=new google.maps.places.Autocomplete($("#gmb_geocoder")[0]),autocomplete.bindTo("bounds",map),google.maps.event.addListener(autocomplete,"place_changed",function(){return $("#gmb_geocoder").one("blur",function(){$("#gmb_geocoder").val("")}),setTimeout(function(){$("#gmb_geocoder").val("")},10),"undefined"!=typeof tentative_location_marker&&tentative_location_marker.setVisible(!1),place=autocomplete.getPlace(),lat_field.val(place.geometry.location.lat()),lng_field.val(place.geometry.location.lng()),place.geometry?(map.setCenter(place.geometry.location),void add_tentative_marker(map,place.reference)):void alert("Error: Place not found!")})),info_bubble=new google.maps.InfoWindow({maxWidth:315}),google.maps.event.addListenerOnce(map,"idle",function(){handle_map_zoom(map),add_markers(map),"undefined"!=typeof $(".cmb_id_gmb_show_places input:radio").prop("checked")&&"yes"===$(".cmb_id_gmb_show_places input:radio:checked").val()&&perform_places_search()}),google.maps.event.addListener(map,"zoom_changed",function(){handle_map_zoom(map)}),google.maps.event.addListener(map,"dragend",function(){var a=map.getCenter();$(".lat-lng-change-message").slideDown(),$(".lat-lng-update-btn").attr("data-lat",a.lat()),$(".lat-lng-update-btn").attr("data-lng",a.lng())})}function add_tentative_marker(a,b){var c=a.getCenter();tentative_location_marker=new google.maps.Marker({map:a,title:"Map Icons",animation:google.maps.Animation.DROP,position:new google.maps.LatLng(c.lat(),c.lng()),icon:new google.maps.MarkerImage(gmb_data.plugin_url+"/public/assets/img/temp-marker.png"),zIndex:google.maps.Marker.MAX_ZINDEX+1,optimized:!1});var d=google.maps.event.addListener(tentative_location_marker,"mouseover",function(){add_circle(b)}),e=google.maps.event.addListener(tentative_location_marker,"mouseout",function(){hover_circle.setVisible(!1)});google.maps.event.addListener(tentative_location_marker,"click",function(){google.maps.event.removeListener(d),google.maps.event.removeListener(e),hover_circle.setVisible(!0),add_tenative_info_window(b,tentative_location_marker)}),tentative_location_marker.setVisible(!0),a.setZoom(zoom)}function add_tenative_info_window(a,b){var c={key:gmb_data.api_key,reference:a};places_service.getDetails(c,function(a,c){if(c==google.maps.places.PlacesServiceStatus.OK){var d=a.geometry.location.lat(),e=a.geometry.location.lng(),f='<p class="place-title">'+a.name+"</p>";f+=add_place_content_to_info_window(a),f+='<div class="infowindow-toolbar clear"><a href="#" class="add-marker" data-title="'+a.name+'" data-reference="'+a.reference+'" data-lat="'+d+'" data-lng="'+e+'">Add to Map</a></div>',f=set_info_window_wrapper(f),info_bubble.setContent(f),info_bubble.open(map,b),google.maps.event.addListener(info_bubble,"closeclick",function(){hover_circle.setVisible(!1)})}})}function add_place_content_to_info_window(a){var b;return b='<div class="marker-info-wrapper">',b+=a.formatted_address?'<div class="place-address">'+a.formatted_address+"</div>":"",b+=a.formatted_phone_number?'<div class="place-phone">'+a.formatted_phone_number+"</div>":"",b+=a.website?'<div class="place-website"><a href="'+a.website+'" target="_blank" rel="nofollow" title="Click to visit the '+a.name+' website">Website</a></div>':"",a.rating&&(b+='<div class="rating-wrap clear"><p class="numeric-rating">'+a.rating+'</p><div class="star-rating-wrap"><div class="star-rating-size" style="width:'+65*a.rating/5+'px;"></div></div></div>'),b+="</div>"}function get_editable_info_window(index,marker){info_bubble.close(),info_bubble.setContent('<div id="infobubble-content" class="loading"></div>'),info_bubble.open(map,marker);var info_window_data=get_info_window_saved_data(index),info_window_content;info_window_data.title||(info_window_data.title="Point "+index),info_window_content='<input class="edit-place-title" data-field="#gmb_markers_group_'+index+'_title" type="text" value="'+info_window_data.title+'">',info_window_content+='<textarea class="edit-place-description" data-field="#gmb_markers_group_'+index+'_description">'+info_window_data.desc+"</textarea>",info_window_content+='<div class="infowindow-toolbar clear"><ul id="save-toolbar"><li class="info-window-save"><div class="google-btn-blue google-btn google-save-btn" data-tooltip="Save changes" data-index="'+index+'">Save</div></li><li class="info-window-cancel"><div class="google-btn-default google-btn google-cancel-btn" data-tooltip="Cancel edit" data-index="'+index+'">Cancel</div></li></ul><span class="marker-edit-link-wrap" data-index="'+index+'"><a href="#TB_inline?width=600&height=550&inlineId=marker-icon-modal" data-tooltip="Change icon" class="marker-edit-link thickbox"></a></span></div>',info_window_content=set_info_window_wrapper(info_window_content),info_bubble.setContent(info_window_content),initialize_tooltips(),google.maps.event.addDomListener($(".google-save-btn")[0],"click",function(){var a=$(".edit-place-title").data("field"),b=$(".edit-place-title").val(),c=$(".edit-place-description").data("field"),d=$(".edit-place-description").val();$(a).val(b),$(c).val(d),get_info_window_content($(this).data("index"),marker),google.maps.event.removeListener(save_icon_listener),google.maps.event.removeListener(edit_marker_icon_button_click)}),google.maps.event.addDomListener(info_bubble,"closeclick",function(){google.maps.event.removeListener(save_icon_listener),google.maps.event.removeListener(edit_marker_icon_button_click)}),google.maps.event.addDomListener($(".google-cancel-btn")[0],"click",function(){get_info_window_content($(this).data("index"),marker),google.maps.event.removeListener(save_icon_listener),google.maps.event.removeListener(edit_marker_icon_button_click)});var edit_marker_icon_button_click=google.maps.event.addDomListener($(".marker-edit-link-wrap")[0],"click",function(){$(".save-marker-button").attr("data-marker-index",$(this).data("index"))}),save_icon_listener=google.maps.event.addDomListener($(".save-marker-button")[0],"click",function(){var marker_position=marker.getPosition(),marker_icon_data,marker_icon=$(this).data("marker"),marker_icon_color=$(this).data("marker-color"),label_color=$(this).data("label-color"),marker_label_inline_style="color:"+label_color+"; ";"MAP_PIN"===marker_icon?marker_label_inline_style+="font-size: 20px;position: relative; top: -3px;":"SQUARE_PIN"==marker_icon&&(marker_label_inline_style+="font-size: 20px;position: relative; top: 12px;");var marker_label_data='<i class="'+$(this).data("label")+'" style="'+marker_label_inline_style+'"></i>';""==marker_icon?(marker_icon_data=gmb_data.plugin_url+"/public/assets/img/default-marker.png",$("#gmb_markers_group_"+index+"_marker").val(""),marker_label_data=""):(marker_icon_data="{ path : "+marker_icon+', fillColor : "'+marker_icon_color+'", fillOpacity : 1, strokeColor : "", strokeWeight: 0, scale : 1 / 3 }',$("#gmb_markers_group_"+index+"_marker").val(marker_icon_data),marker_icon_data=eval("("+marker_icon_data+")")),marker.setMap(null),$("#gmb_markers_group_"+index+"_label").val(marker_label_data),marker=new Marker({position:marker_position,map:map,zIndex:9,icon:marker_icon_data,label:marker_label_data}),google.maps.event.addListener(marker,"click",function(){get_info_window_content(index,marker)}),$(".icon, .marker-item").removeClass("marker-item-selected"),$(".marker-icon-row, .save-marker-icon, .marker-icon-color-wrap, .marker-label-color-wrap").hide(),$(this).removeData("marker"),$(this).removeData("marker-color"),$(this).removeData("label"),$(this).removeData("label-color"),tb_remove(),google.maps.event.removeListener(save_icon_listener),google.maps.event.removeListener(edit_marker_icon_button_click)})}function set_info_window_wrapper(a){var b='<div id="infobubble-content" class="main-place-infobubble-content">';return b+=a,b+="</div>"}function add_circle(a){hover_circle=new google.maps.Marker({position:tentative_location_marker.getPosition(),zIndex:google.maps.Marker.MAX_ZINDEX-1,optimized:!1,icon:{path:google.maps.SymbolPath.CIRCLE,scale:20,strokeWeight:3,strokeOpacity:.9,strokeColor:"#FFF",fillOpacity:.3,fillColor:"#FFF"},map:map}),google.maps.event.addListener(hover_circle,"click",function(){add_tenative_info_window(a,tentative_location_marker)}),google.maps.event.addListener(tentative_location_marker,"click",function(){hover_circle.setVisible(!0)})}function add_markers(map){clear_main_markers(),$("#gmb_markers_group_repeat .repeatable-grouping").each(function(index){var marker_icon=gmb_data.plugin_url+"/public/assets/img/default-marker.png",marker_label="",custom_marker_icon=$("#gmb_markers_group_"+index+"_marker").val();custom_marker_icon.length>0&&(marker_icon=eval("("+custom_marker_icon+")"));var custom_label=$("#gmb_markers_group_"+index+"_label").val();custom_label.length>0&&(marker_label=custom_label);var location_marker=new Marker({map:map,zIndex:9,icon:marker_icon,label:marker_label}),marker_lat=$("#gmb_markers_group_"+index+"_lat").val(),marker_lng=$("#gmb_markers_group_"+index+"_lng").val();location_marker.setPosition(new google.maps.LatLng(marker_lat,marker_lng)),location_marker.setVisible(!0),google.maps.event.addListener(location_marker,"click",function(){get_info_window_content(index,location_marker)})})}function get_info_window_saved_data(a){var b=new Object;return b.title=$("#gmb_markers_group_"+a+"_title").val(),b.desc=$("#gmb_markers_group_"+a+"_description").val(),b.reference=$("#gmb_markers_group_"+a+"_reference").val(),b.lat=$("#gmb_markers_group_"+a+"_lat").val(),b.lng=$("#gmb_markers_group_"+a+"_lng").val(),b}function get_info_window_content(a,b){info_bubble.close(),info_bubble.setContent('<div id="infobubble-content" class="loading"></div>'),info_bubble.open(map,b);var c,d=get_info_window_saved_data(a);if(d.reference){var e={reference:d.reference};places_service.getDetails(e,function(e,f){f==google.maps.places.PlacesServiceStatus.OK&&(c='<p class="place-title">'+d.title+"</p>",c+='<div class="place-description">'+d.desc+"</div>",c+=add_place_content_to_info_window(e),c+='<div class="infowindow-toolbar"><ul id="edit-toolbar"><li class="edit-info" data-index="'+a+'" data-tooltip="Edit Marker"></li><li class="trash-marker" data-index="'+a+'" data-tooltip="Delete Marker"></li></ul></div>',add_edit_events(c,b))})}else c='<p class="place-title">'+d.title+"</p>",c+='<div class="place-description">'+d.desc+"</div>",c+='<div class="infowindow-toolbar"><ul id="edit-toolbar"><li class="edit-info" data-index="'+a+'" data-tooltip="Edit Marker"></li><li class="trash-marker" data-index="'+a+'" data-tooltip="Delete Marker"></li></ul></div>',add_edit_events(c,b)}function add_edit_events(a,b){a=set_info_window_wrapper(a),info_bubble.setContent(a),initialize_tooltips(),google.maps.event.addDomListener($(".edit-info")[0],"click",function(){get_editable_info_window($(this).data("index"),b)}),google.maps.event.addDomListener($(".trash-marker")[0],"click",function(){var a=$(this).data("index");0===a&&$('tr[data-iterator="'+a+'"] ').find("input,textarea").val(""),$('tr[data-iterator="'+a+'"] .remove-group-row').trigger("click"),info_bubble.close(),b.setVisible(!1)})}function get_marker_index(){var a=parseInt($("#gmb_markers_group_repeat tr.repeatable-grouping").last().attr("data-iterator")),b=$('tr[data-iterator="0"] ').find("input,textarea").val();return b&&0===a?($(".add-group-row.button").trigger("click"),a=1):0!==a&&($(".add-group-row.button").trigger("click"),a=parseInt($("#gmb_markers_group_repeat tr.repeatable-grouping").last().attr("data-iterator"))),a}function get_place_info_window_content(a,b){info_bubble.setContent('<div id="infobubble-content" class="loading"></div>'),info_bubble.open(map,b);var c={reference:a.reference};places_service.getDetails(c,function(a,b){if(b==google.maps.places.PlacesServiceStatus.OK){var c;c='<p class="place-title">'+a.name+"</p>",c+=add_place_content_to_info_window(a),c=set_info_window_wrapper(c),info_bubble.setContent(c),initialize_tooltips()}})}function get_places_type_array(){var a=[];return $('.cmb_id_gmb_places_search_multicheckbox input[type="checkbox"]').each(function(){$(this).is(":checked")&&a.push($(this).val())}),a}function perform_places_search(){$(".places-loading").fadeIn(),$(".warning-message").hide().empty();var a=get_places_type_array();if(clear_search_markers(),a.length>0){var b={location:return_lat_lng(),types:a,radius:parseInt($("#gmb_search_radius").val())};places_service.nearbySearch(b,places_search_callback)}else show_warning_message("<strong>Notice: No Place Types are selected</strong><br/> Please select the types of places you would like to display on this map using the Place Type field checkboxes found below.")}function show_warning_message(a){$(".wpgp-loading").fadeOut(),$(".warning-message").empty().append("<p>"+a+"</p>").fadeIn()}function return_lat_lng(){var a=map.getCenter(),b=new google.maps.LatLng(a.lat(),a.lng());return b}function handle_map_zoom(a){var b=a.getZoom();$("#gmb_zoom").val(b),$("#gmb_zoom").on("change",function(){a.setZoom(parseInt($(this).val()))})}function lat_lng_field_change(a){var b=new google.maps.LatLng($(lat_field).val(),$(lng_field).val());a.panTo(b)}function places_search_callback(a,b,c){var d,e=0;if(b==google.maps.places.PlacesServiceStatus.OK){for(e=0;d=a[e];e++)create_search_result_marker(a[e]);c.hasNextPage?c.nextPage():$(".places-loading").fadeOut()}}function create_search_result_marker(a){var b=new Marker({map:map,zIndex:0,optimized:!1});b.setIcon({url:a.icon,size:new google.maps.Size(24,24),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(17,34),scaledSize:new google.maps.Size(24,24)}),b.setPosition(a.geometry.location),b.setVisible(!0),google.maps.event.addListener(b,"click",function(){get_place_info_window_content(a,b)}),search_markers.push(b)}function clear_main_markers(){for(var a=0;a<location_marker_array.length;a++)location_marker_array[a].setMap(null);for(location_marker_array.length=0,a=0;a<info_bubble_array.length;a++)info_bubble_array[a].close(),google.maps.event.trigger(info_bubble_array[a],"closeclick");info_bubble_array.length=0}function clear_search_markers(){for(var a=0;a<search_markers.length;a++)search_markers[a].setMap(null);search_markers=[]}function geocode_position(a){var b={location:a,radius:10};places_service.nearbySearch(b,function(a,b){if(b==google.maps.places.PlacesServiceStatus.OK){var c="";if(info_bubble.close(),a.length>1){c='<div id="infobubble-content"><p>Hmm, it looks like there are multiple places in this area. Please confirm which place you would like this marker to display:</p>';for(var d=0;d<a.length;d++)c+='<a class="marker-confirm-place" data-reference="'+a[d].reference+'" data-name-address="'+a[d].name+", "+a[d].vicinity+'">'+a[d].name+"</a>";c+="</div>",google.maps.event.addDomListener(info_bubble,"domready",function(){$(".marker-confirm-place").on("click",function(a){a.preventDefault(),$("#gmb_geocoder").val($(this).data("name-address")),$("#gmb_reference").val($(this).data("reference")),info_bubble.close(),get_info_window_content($(this).data("reference"))})})}info_bubble.setContent(c),info_bubble.open(map,location_marker)}})}function scroll_to_field(a){$("html, body").animate({scrollTop:parseInt($(a).offset().top)},600)}function marker_drag_end(a){var b=a.getPosition();geocode_position(b),$(lat_field).val(b.lat()),$(lng_field).val(b.lng()),map.panTo(b)}function calc_radius(a,b){radius_marker=new Marker({position:a.getCenter(),map:a,icon:{path:MAP_PIN,fillColor:"#0E77E9",fillOpacity:0,strokeColor:"",strokeWeight:0,scale:.25},label:'<i class="map-icon-crosshairs radius-label"></i>',zIndex:google.maps.Marker.MAX_ZINDEX+1,optimized:!1}),radius_circle=new google.maps.Circle({map:a,fillColor:"#BBD8E9",fillOpacity:.3,radius:b,strokeColor:"#BBD8E9",strokeOpacity:.9,strokeWeight:2}),radius_circle.bindTo("center",radius_marker,"position")}function toggle_metabox_fields(){var a=$(".cmb_id_gmb_show_places input:radio");a.prop("checked")===!0&&($(".cmb_id_gmb_search_radius").show(),$(".cmb_id_gmb_places_search_multicheckbox").show()),a.prop("checked")===!1&&$("#gmb_show_places2").prop("checked",!0),a.on("change",function(){$(".cmb_id_gmb_search_radius").toggle(),$(".cmb_id_gmb_places_search_multicheckbox").toggle(),"no"===$(this).val()?clear_search_markers():perform_places_search()})}function set_map_size(){var a=$("#gmb_width_height-width").val(),b=$('input[name="gmb_width_height[map_width_unit]"]:checked').val(),c=$("#gmb_width_height-height").val();$("#map").css({width:a+b,height:c})}function set_map_zoom_control(){var a=$("#gmb_zoom_control").val().toUpperCase();map.setOptions("NONE"==a?{zoomControl:!1}:{zoomControl:!0,zoomControlOptions:{style:google.maps.ZoomControlStyle[a]}})}function set_map_type_control(){var a=$("#gmb_map_type_control").val().toUpperCase();map.setOptions("NONE"==a?{mapTypeControl:!1}:{mapTypeControl:!0,mapTypeControlOptions:{style:google.maps.MapTypeControlStyle[a]}})}function set_mouse_wheel_scroll(){var a=$("#gmb_wheel_zoom").val();map.setOptions("none"===a?{scrollwheel:!1}:{scrollwheel:!0})}function set_double_click_zoom(){var a=$("#gmb_double_click").val();map.setOptions("none"===a?{disableDoubleClickZoom:!0}:{disableDoubleClickZoom:!1})}function set_draggable(){var a=$("#gmb_draggable").val();map.setOptions("none"==a?{draggable:!1}:{draggable:!0})}function set_pan_control(){var a=$("#gmb_pan").val();map.setOptions("none"===a?{panControl:!1}:{panControl:!0})}function set_street_view(){var a=$("#gmb_street_view").val();map.setOptions("none"===a?{streetViewControl:!1}:{streetViewControl:!0})}function set_map_type(a){a===!0&&($("#gmb_theme").val("none"),$("#gmb_theme_json").val("none"));var b=$("#gmb_type").val().toUpperCase();map.setOptions({mapTypeId:google.maps.MapTypeId[b],styles:!1})}function set_map_theme(reset){reset===!0&&($("#gmb_type").val("RoadMap"),$("#gmb_theme_json").val("none"));var map_theme_input_val=parseInt($("#gmb_theme").val());"none"===map_theme_input_val&&set_map_type(),$.each(snazzy_json,function(index){snazzy_json[index].id===map_theme_input_val&&(map_theme_input_val=eval(snazzy_json[index].json),$("#gmb_theme_json").val(snazzy_json[index].json))}),map.setOptions({mapTypeId:google.maps.MapTypeId.ROADMAP,styles:map_theme_input_val})}function set_map_marker_icon(){$(".marker-item").on("click",function(){var a=$(this).data("marker");$(".marker-item").removeClass("marker-item-selected"),$(this).addClass("marker-item-selected"),"default"==a?($(".marker-icon-row, .marker-icon-color-wrap, .marker-label-color-wrap").slideUp(),$(".save-marker-icon").slideDown(),$("#TB_window .save-marker-button").attr("data-marker",""),$("#TB_window .save-marker-button").attr("data-label","")):($(".marker-icon-color-wrap, .marker-icon-row").slideDown(),$("#TB_window .save-marker-button").attr("data-marker",a))}),$(".icon").on("click",function(){$(".icon").removeClass("marker-item-selected"),$(this).addClass("marker-item-selected"),$(".save-marker-icon, .marker-label-color-wrap").slideDown(),$("#TB_window .save-marker-button").attr("data-label",$(this).find("span").attr("class"))});var a={change:function(a,b){var c=b.color.toString();$(this).hasClass("marker-color")===!0?($(".save-marker-button").attr("data-marker-color",c),$(".marker-svg polygon, .marker-svg path").attr("fill",c)):$(this).hasClass("label-color")===!0&&($(".save-marker-button").attr("data-label-color",c),$(".icon-inner span").css("color",c))},clear:function(){},hide:!0,palettes:!0};$(".color-picker").wpColorPicker(a)}function initialize_tooltips(){$('[data-tooltip!=""]').qtip({content:{attr:"data-tooltip"},hide:{fixed:!0,delay:100},position:{my:"top center",at:"bottom center"},style:{classes:"qtip-tipsy"},show:{when:{event:"focus"},effect:function(){$(this).fadeIn(200)}}})}$(window).load(function(){toggle_metabox_fields(),initialize_tooltips(),initialize_map($("#map")),$("#gmb_lat_lng-latitude").on("change",function(){lat_lng_field_change(map)}),$("#gmb_lat_lng-longitude").on("change",function(){lat_lng_field_change(map)}),$(".drop-marker").on("click",function(a){if(a.preventDefault(),$(this).hasClass("active"))$(this).text("Drop a Marker").removeClass("active"),map.setOptions({draggableCursor:null});else{$(this).text("Click on the Map").addClass("active"),map.setOptions({draggableCursor:"crosshair"});var b=google.maps.event.addListener(map,"click",function(a){drop_marker(a.latLng,b)})}});var a;$("#gmb_search_radius").on("focus",function(){a=$(this).val(),calc_radius(map,parseInt($(this).val()))}).focusout(function(){a!==$(this).val()&&perform_places_search(),radius_circle.setMap(null),radius_marker.setMap(null)}),$('[name^="gmb_places_search_multicheckbox"]').on("change",function(){0===$(".places-change-message").length&&($(".cmb_id_gmb_places_search_multicheckbox ul").prepend('<div class="wpgp-message places-change-message clear"><p>Place selections have changed.</p><a href="#" class="button update-places-map">Update Map</a></div>'),$(".places-change-message").slideDown())}),$(document).on("click",".update-places-map",function(a){a.preventDefault(),scroll_to_field("#google_maps_preview_metabox"),perform_places_search(),$(this).parent().fadeOut(function(){$(this).remove()})}),$(".lat-lng-update-btn").on("click",function(a){a.preventDefault(),$(".lat-lng-change-message").slideUp(),$("#gmb_lat_lng-latitude").val($(this).attr("data-lat")),$("#gmb_lat_lng-longitude").val($(this).attr("data-lng"))}),$(document).on("click",".add-marker",function(a){a.preventDefault(),hover_circle.setVisible(!1);var b=new google.maps.Marker({position:tentative_location_marker.getPosition(),map:map,icon:gmb_data.plugin_url+"/public/assets/img/default-marker.png",zIndex:google.maps.Marker.MAX_ZINDEX+1,optimized:!1});tentative_location_marker.setVisible(!1);var c=get_marker_index(),d=$(this).data("reference");$("#gmb_markers_group_"+c+"_title").val($(this).data("title")),$("#gmb_markers_group_"+c+"_lat").val($(this).data("lat")),$("#gmb_markers_group_"+c+"_lng").val($(this).data("lng")),$("#gmb_markers_group_"+c+"_reference").val(d),get_editable_info_window(c,b),google.maps.event.addListener(b,"click",function(){get_info_window_content(c,b)})}),set_map_marker_icon(),$("#gmb_type").change(function(){set_map_type(!0)}),$("#gmb_theme").change(function(){set_map_theme(!0)}),$("#gmb_street_view").change(function(){set_street_view()}),$("#gmb_pan").change(function(){set_pan_control()}),$("#gmb_draggable").change(function(){set_draggable()}),$("#gmb_double_click").change(function(){set_double_click_zoom()}),$("#gmb_wheel_zoom").change(function(){set_mouse_wheel_scroll()}),$("#gmb_map_type_control").change(function(){set_map_type_control()}),$("#gmb_zoom_control").change(function(){set_map_zoom_control()}),$("#gmb_width_height-width, #gmb_width_height-height").keyup(function(){delay(function(){set_map_size()},500)}),$('input[name="gmb_width_height[map_width_unit]"]').change(function(){set_map_size()})});var map,places_service,lat_lng,zoom,lat_field,lng_field,radius_circle,radius_marker,place,autocomplete,info_bubble,info_bubble_array=[],tentative_location_marker,location_marker,location_marker_array=[],search_markers=[],hover_circle,initial_location,snazzy_json=$.parseJSON(eval(gmb_data.snazzy)),delay=function(){var a=0;return function(b,c){clearTimeout(a),a=setTimeout(b,c)}}()}(jQuery);
|
admin/assets/js/admin-settings.js
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Google Maps Builder Settings JS
|
3 |
+
*/
|
4 |
+
(function ( $ ) {
|
5 |
+
"use strict";
|
6 |
+
|
7 |
+
$( function () {
|
8 |
+
|
9 |
+
//Hide Welcome Message
|
10 |
+
$( '.hide-welcome' ).on( 'click', function ( e ) {
|
11 |
+
e.preventDefault();
|
12 |
+
$( '.welcome-header' ).slideUp( 'normal', function () {
|
13 |
+
$( '.logo-svg-small' ).fadeIn(); //Show new tiny logo
|
14 |
+
} ); //slide up welcome header
|
15 |
+
|
16 |
+
var data = {
|
17 |
+
action: 'hide_welcome'
|
18 |
+
};
|
19 |
+
$.post( ajaxurl, data, function ( response ) {
|
20 |
+
|
21 |
+
//Do something here if necessary
|
22 |
+
|
23 |
+
} );
|
24 |
+
|
25 |
+
} );
|
26 |
+
|
27 |
+
//Geolocate position change
|
28 |
+
var geolocate_radio = $( '.geolocate-radio-wrap input:radio' );
|
29 |
+
if ( geolocate_radio.prop( 'checked' ) === true ) {
|
30 |
+
$( '#lat-lng-wrap' ).hide();
|
31 |
+
}
|
32 |
+
if ( geolocate_radio.prop( 'checked' ) === false ) {
|
33 |
+
$( '#lat-lng-wrap' ).show();
|
34 |
+
}
|
35 |
+
geolocate_radio.on( 'change', function () {
|
36 |
+
$( '#lat-lng-wrap' ).toggle();
|
37 |
+
} );
|
38 |
+
|
39 |
+
//Default setting for Has Archive Inline Radio
|
40 |
+
if ( $( '#gmb_has_archive1' ).prop( 'checked' ) === false && $( '#gmb_has_archive2' ).prop( 'checked' ) === 'false' ) {
|
41 |
+
$( '#gmb_has_archive1' ).prop( 'checked', true );
|
42 |
+
}
|
43 |
+
|
44 |
+
|
45 |
+
//Label Click Helper
|
46 |
+
$( 'input:radio + label' ).on( 'click', function () {
|
47 |
+
$( this ).prev( 'input:radio' ).prop( 'checked', true );
|
48 |
+
} );
|
49 |
+
|
50 |
+
} );
|
51 |
+
|
52 |
+
|
53 |
+
}( jQuery ));
|
admin/assets/js/admin-settings.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(a){"use strict";a(function(){a(".hide-welcome").on("click",function(b){b.preventDefault(),a(".welcome-header").slideUp("normal",function(){a(".logo-svg-small").fadeIn()});var c={action:"hide_welcome"};a.post(ajaxurl,c,function(){})});var b=a(".geolocate-radio-wrap input:radio");b.prop("checked")===!0&&a("#lat-lng-wrap").hide(),b.prop("checked")===!1&&a("#lat-lng-wrap").show(),b.on("change",function(){a("#lat-lng-wrap").toggle()}),a("#gmb_has_archive1").prop("checked")===!1&&"false"===a("#gmb_has_archive2").prop("checked")&&a("#gmb_has_archive1").prop("checked",!0),a("input:radio + label").on("click",function(){a(this).prev("input:radio").prop("checked",!0)})})}(jQuery);
|
admin/assets/js/admin-widget.js
ADDED
@@ -0,0 +1,267 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function ($) {
|
2 |
+
"use strict";
|
3 |
+
|
4 |
+
$(function () {
|
5 |
+
|
6 |
+
gmb_widget_toggles();
|
7 |
+
gmb_widget_tooltips();
|
8 |
+
|
9 |
+
//Initialize Gmap when user clicks an option
|
10 |
+
place_details_on_click();
|
11 |
+
place_search_on_click();
|
12 |
+
|
13 |
+
|
14 |
+
});
|
15 |
+
|
16 |
+
/*
|
17 |
+
* Function to Refresh jQuery toggles for wpgp Widget Pro upon saving specific widget
|
18 |
+
*/
|
19 |
+
$(document).ajaxSuccess(function (e, xhr, settings) {
|
20 |
+
|
21 |
+
gmb_widget_toggles();
|
22 |
+
gmb_widget_tooltips();
|
23 |
+
refresh_google_map();
|
24 |
+
place_details_on_click();
|
25 |
+
place_search_on_click();
|
26 |
+
|
27 |
+
|
28 |
+
});
|
29 |
+
$(document).ajaxStop(function (e, xhr, settings) {
|
30 |
+
|
31 |
+
});
|
32 |
+
|
33 |
+
/**
|
34 |
+
* Place Details Radio
|
35 |
+
*
|
36 |
+
* This function handles displaying the Google Map and initializing gmaps
|
37 |
+
*/
|
38 |
+
function place_details_on_click() {
|
39 |
+
//set up the click event
|
40 |
+
$('.place-details-api-option-wrap').on('click', function () {
|
41 |
+
var map_wrap = $(this).parentsUntil('form').find('.google-autocomplete-map-wrap');
|
42 |
+
var map_canvas = $(map_wrap).find('.map-canvas');
|
43 |
+
|
44 |
+
//slide down the autocomplete map
|
45 |
+
$(map_wrap).slideDown('normal', function () {
|
46 |
+
//check if map initialized already by checking for children in canvas
|
47 |
+
if (map_canvas.children().length == 0) {
|
48 |
+
//no map so initialize
|
49 |
+
place_details_autocomplete_initialize(map_canvas);
|
50 |
+
}
|
51 |
+
|
52 |
+
}); //slide down
|
53 |
+
}); //click
|
54 |
+
}
|
55 |
+
|
56 |
+
/**
|
57 |
+
* Place Search Radio
|
58 |
+
*
|
59 |
+
* This function handles displaying the Google Map and initializing gmaps
|
60 |
+
*/
|
61 |
+
function place_search_on_click() {
|
62 |
+
$('.place-search-api-option-wrap').on('click', function () {
|
63 |
+
//Slide up Autocomplete Map
|
64 |
+
$('.google-autocomplete-map-wrap').slideUp('normal');
|
65 |
+
});
|
66 |
+
}
|
67 |
+
|
68 |
+
|
69 |
+
/**
|
70 |
+
* Refresh Gmap
|
71 |
+
*/
|
72 |
+
function refresh_google_map() {
|
73 |
+
|
74 |
+
//check if Place Details Option enabled and/or map is displayed
|
75 |
+
|
76 |
+
//initialize map
|
77 |
+
var google_widget = jQuery('.widget-inside:visible').has('.google-autocomplete-map-wrap');
|
78 |
+
|
79 |
+
|
80 |
+
// console.log(google_widget);
|
81 |
+
//
|
82 |
+
// var map_canvas = google_widget.find('.map-canvas');
|
83 |
+
// place_details_autocomplete_initialize(map_canvas);
|
84 |
+
|
85 |
+
// $('.google-autocomplete-map-wrap').slideDown('normal', function () {
|
86 |
+
// var map_canvas = $(this).parentsUntil('form').find('.map-canvas');
|
87 |
+
// place_details_autocomplete_initialize(map_canvas);
|
88 |
+
// });
|
89 |
+
|
90 |
+
}
|
91 |
+
|
92 |
+
|
93 |
+
/**
|
94 |
+
* Widget Autocomplete Map
|
95 |
+
*
|
96 |
+
* Created the map with autocomplete searching used within the widget admin UI
|
97 |
+
*
|
98 |
+
* @see: https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete
|
99 |
+
*/
|
100 |
+
function place_details_autocomplete_initialize(map_canvas) {
|
101 |
+
|
102 |
+
var latitude = '32.713240';
|
103 |
+
var longitude = '-117.159443';
|
104 |
+
var referenceField = $(map_canvas[0]).parent().find('.place-detail-reference').val();
|
105 |
+
|
106 |
+
var mapOptions = {
|
107 |
+
center : new google.maps.LatLng(latitude, longitude),
|
108 |
+
zoom : 13,
|
109 |
+
zoomControl : true,
|
110 |
+
zoomControlOptions: {
|
111 |
+
style : google.maps.ZoomControlStyle.SMALL,
|
112 |
+
position: google.maps.ControlPosition.LEFT_BOTTOM
|
113 |
+
},
|
114 |
+
mapTypeControl : false,
|
115 |
+
streetViewControl : false
|
116 |
+
};
|
117 |
+
|
118 |
+
var map = new google.maps.Map(map_canvas[0], mapOptions);
|
119 |
+
|
120 |
+
|
121 |
+
//Check to see if this widget already has been setup
|
122 |
+
//@see: https://developers.google.com/maps/documentation/javascript/examples/place-details
|
123 |
+
if (referenceField) {
|
124 |
+
var service = new google.maps.places.PlacesService(map);
|
125 |
+
var request = {
|
126 |
+
reference: referenceField
|
127 |
+
};
|
128 |
+
|
129 |
+
service.getDetails(request, function (place, status) {
|
130 |
+
if (status == google.maps.places.PlacesServiceStatus.OK) {
|
131 |
+
|
132 |
+
set_marker_open_infobubble(map, place);
|
133 |
+
|
134 |
+
}
|
135 |
+
});
|
136 |
+
|
137 |
+
}
|
138 |
+
|
139 |
+
var input = /** @type {HTMLInputElement} */(
|
140 |
+
$(map_canvas[0]).parent().find('.pac-input')[0]);
|
141 |
+
|
142 |
+
var types = $(map_canvas[0]).parent().find('.type-selector')[0];
|
143 |
+
map.controls[google.maps.ControlPosition.TOP_CENTER].push(input);
|
144 |
+
map.controls[google.maps.ControlPosition.TOP_CENTER].push(types);
|
145 |
+
|
146 |
+
var autocomplete = new google.maps.places.Autocomplete(input);
|
147 |
+
autocomplete.bindTo('bounds', map);
|
148 |
+
|
149 |
+
|
150 |
+
//Autocomplete Place Change
|
151 |
+
google.maps.event.addListener(autocomplete, 'place_changed', function () {
|
152 |
+
|
153 |
+
var place = autocomplete.getPlace();
|
154 |
+
if (!place.geometry) {
|
155 |
+
return;
|
156 |
+
}
|
157 |
+
|
158 |
+
//set reference hidden input value
|
159 |
+
$(map_canvas[0]).parent().find('.place-detail-reference').val(place.reference);
|
160 |
+
|
161 |
+
// If the place has a geometry, then present it on a map.
|
162 |
+
set_marker_open_infobubble(map, place);
|
163 |
+
|
164 |
+
|
165 |
+
});
|
166 |
+
|
167 |
+
// Sets a listener on a radio button to change the filter type on Places
|
168 |
+
// Autocomplete.
|
169 |
+
function setupClickListener(id, types) {
|
170 |
+
var radioButton = document.getElementById(id);
|
171 |
+
google.maps.event.addDomListener(radioButton, 'click', function () {
|
172 |
+
autocomplete.setTypes(types);
|
173 |
+
});
|
174 |
+
}
|
175 |
+
|
176 |
+
setupClickListener('changetype-all', []);
|
177 |
+
setupClickListener('changetype-establishment', ['establishment']);
|
178 |
+
setupClickListener('changetype-geocode', ['geocode']);
|
179 |
+
|
180 |
+
}
|
181 |
+
|
182 |
+
|
183 |
+
function set_marker_open_infobubble(map, place) {
|
184 |
+
|
185 |
+
//Marker for map
|
186 |
+
var marker = new google.maps.Marker({
|
187 |
+
map: map
|
188 |
+
});
|
189 |
+
marker.setVisible(false);
|
190 |
+
|
191 |
+
//Custom InfoBubble
|
192 |
+
var infoBubble = new InfoBubble({
|
193 |
+
maxWidth: 300
|
194 |
+
});
|
195 |
+
//Update map with saved place detail
|
196 |
+
// If the place has a geometry, then present it on a map.
|
197 |
+
if (place.geometry.viewport) {
|
198 |
+
map.fitBounds(place.geometry.viewport);
|
199 |
+
} else {
|
200 |
+
map.setCenter(place.geometry.location);
|
201 |
+
map.setZoom(17); // Why 17? Because it looks good.
|
202 |
+
}
|
203 |
+
//setup marker icon
|
204 |
+
marker.setIcon(/** @type {google.maps.Icon} */({
|
205 |
+
url : place.icon,
|
206 |
+
size : new google.maps.Size(71, 71),
|
207 |
+
origin : new google.maps.Point(0, 0),
|
208 |
+
anchor : new google.maps.Point(17, 34),
|
209 |
+
scaledSize: new google.maps.Size(35, 35)
|
210 |
+
}));
|
211 |
+
marker.setPosition(place.geometry.location);
|
212 |
+
marker.setVisible(true);
|
213 |
+
|
214 |
+
var address = '';
|
215 |
+
if (place.address_components) {
|
216 |
+
address = [
|
217 |
+
(place.address_components[0] && place.address_components[0].short_name || ''),
|
218 |
+
(place.address_components[1] && place.address_components[1].short_name || ''),
|
219 |
+
(place.address_components[2] && place.address_components[2].short_name || '')
|
220 |
+
].join(' ');
|
221 |
+
}
|
222 |
+
|
223 |
+
infoBubble.setContent('<div><strong>' + place.name + '</strong><br>' + address);
|
224 |
+
infoBubble.open(map, marker);
|
225 |
+
|
226 |
+
}
|
227 |
+
|
228 |
+
|
229 |
+
/**
|
230 |
+
* Toggles Widget Panels
|
231 |
+
*/
|
232 |
+
function gmb_widget_toggles() {
|
233 |
+
|
234 |
+
//API Method Toggle
|
235 |
+
$('#widgets-right .widget-api-option .wpgp-method-span:not("clickable")').each(function () {
|
236 |
+
|
237 |
+
$(this).addClass("clickable").unbind("click").click(function () {
|
238 |
+
$(this).parent().parent().find('.toggled').slideUp().removeClass('toggled');
|
239 |
+
$(this).find('input').attr('checked', 'checked');
|
240 |
+
if ($(this).hasClass('search-api-option-wrap')) {
|
241 |
+
$(this).parent().next('.toggle-api-option-1').slideToggle().toggleClass('toggled');
|
242 |
+
} else {
|
243 |
+
$(this).parent().next().next('.toggle-api-option-2').slideToggle().toggleClass('toggled');
|
244 |
+
}
|
245 |
+
});
|
246 |
+
});
|
247 |
+
|
248 |
+
|
249 |
+
}
|
250 |
+
|
251 |
+
|
252 |
+
/**
|
253 |
+
* Tooltips
|
254 |
+
*/
|
255 |
+
function gmb_widget_tooltips() {
|
256 |
+
//Tooltips for admins
|
257 |
+
$('.tooltip-info').tipsy({
|
258 |
+
fade : true,
|
259 |
+
html : true,
|
260 |
+
gravity : 's',
|
261 |
+
delayOut: 1000,
|
262 |
+
delayIn : 500
|
263 |
+
});
|
264 |
+
}
|
265 |
+
|
266 |
+
|
267 |
+
}(jQuery));
|
admin/assets/js/admin-widget.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(a){"use strict";function b(){a(".place-details-api-option-wrap").on("click",function(){var b=a(this).parentsUntil("form").find(".google-autocomplete-map-wrap"),c=a(b).find(".map-canvas");a(b).slideDown("normal",function(){0==c.children().length&&e(c)})})}function c(){a(".place-search-api-option-wrap").on("click",function(){a(".google-autocomplete-map-wrap").slideUp("normal")})}function d(){jQuery(".widget-inside:visible").has(".google-autocomplete-map-wrap")}function e(b){function c(a,b){var c=document.getElementById(a);google.maps.event.addDomListener(c,"click",function(){n.setTypes(b)})}var d="32.713240",e="-117.159443",g=a(b[0]).parent().find(".place-detail-reference").val(),h={center:new google.maps.LatLng(d,e),zoom:13,zoomControl:!0,zoomControlOptions:{style:google.maps.ZoomControlStyle.SMALL,position:google.maps.ControlPosition.LEFT_BOTTOM},mapTypeControl:!1,streetViewControl:!1},i=new google.maps.Map(b[0],h);if(g){var j=new google.maps.places.PlacesService(i),k={reference:g};j.getDetails(k,function(a,b){b==google.maps.places.PlacesServiceStatus.OK&&f(i,a)})}var l=a(b[0]).parent().find(".pac-input")[0],m=a(b[0]).parent().find(".type-selector")[0];i.controls[google.maps.ControlPosition.TOP_CENTER].push(l),i.controls[google.maps.ControlPosition.TOP_CENTER].push(m);var n=new google.maps.places.Autocomplete(l);n.bindTo("bounds",i),google.maps.event.addListener(n,"place_changed",function(){var c=n.getPlace();c.geometry&&(a(b[0]).parent().find(".place-detail-reference").val(c.reference),f(i,c))}),c("changetype-all",[]),c("changetype-establishment",["establishment"]),c("changetype-geocode",["geocode"])}function f(a,b){var c=new google.maps.Marker({map:a});c.setVisible(!1);var d=new InfoBubble({maxWidth:300});b.geometry.viewport?a.fitBounds(b.geometry.viewport):(a.setCenter(b.geometry.location),a.setZoom(17)),c.setIcon({url:b.icon,size:new google.maps.Size(71,71),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(17,34),scaledSize:new google.maps.Size(35,35)}),c.setPosition(b.geometry.location),c.setVisible(!0);var e="";b.address_components&&(e=[b.address_components[0]&&b.address_components[0].short_name||"",b.address_components[1]&&b.address_components[1].short_name||"",b.address_components[2]&&b.address_components[2].short_name||""].join(" ")),d.setContent("<div><strong>"+b.name+"</strong><br>"+e),d.open(a,c)}function g(){a('#widgets-right .widget-api-option .wpgp-method-span:not("clickable")').each(function(){a(this).addClass("clickable").unbind("click").click(function(){a(this).parent().parent().find(".toggled").slideUp().removeClass("toggled"),a(this).find("input").attr("checked","checked"),a(this).hasClass("search-api-option-wrap")?a(this).parent().next(".toggle-api-option-1").slideToggle().toggleClass("toggled"):a(this).parent().next().next(".toggle-api-option-2").slideToggle().toggleClass("toggled")})})}function h(){a(".tooltip-info").tipsy({fade:!0,html:!0,gravity:"s",delayOut:1e3,delayIn:500})}a(function(){g(),h(),b(),c()}),a(document).ajaxSuccess(function(){g(),h(),d(),b(),c()}),a(document).ajaxStop(function(){})}(jQuery);
|
admin/assets/js/index.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php // Silence is golden
|
admin/class-wordpress-google-maps-adm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 |
+
/**
|
3 |
+
* Google Maps Admin
|
4 |
+
*
|
5 |
+
* The admin is considered the single post view where you build maps
|
6 |
+
*
|
7 |
+
* @package Google_Maps_Builder_Admin
|
8 |
+
* @author Devin Walker <devin@wordimpress.com>
|
9 |
+
* @license GPL-2.0+
|
10 |
+
* @link http://wordimpress.com
|
11 |
+
* @copyright 2014 WordImpress, Devin Walker
|
12 |
+
*/
|
13 |
+
|
14 |
+
class Google_Maps_Builder_Admin {
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Instance of this class.
|
18 |
+
*
|
19 |
+
* @since 1.0.0
|
20 |
+
*
|
21 |
+
* @var object
|
22 |
+
*/
|
23 |
+
protected static $instance = null;
|
24 |
+
|
25 |
+
|
26 |
+
/**
|
27 |
+
* Array of metaboxes/fields
|
28 |
+
*
|
29 |
+
* @since 1.0.0
|
30 |
+
*
|
31 |
+
* @var array
|
32 |
+
*/
|
33 |
+
protected static $plugin_options = array();
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Array of metaboxes/fields
|
37 |
+
*
|
38 |
+
* @since 1.0.0
|
39 |
+
*
|
40 |
+
* @var array
|
41 |
+
*/
|
42 |
+
protected static $default_map_options;
|
43 |
+
|
44 |
+
|
45 |
+
/**
|
46 |
+
* Initialize the plugin by loading admin scripts & styles and adding a
|
47 |
+
* settings page and menu.
|
48 |
+
*
|
49 |
+
* @since 1.0.0
|
50 |
+
*/
|
51 |
+
private function __construct() {
|
52 |
+
|
53 |
+
/*
|
54 |
+
* Call $plugin_slug from public plugin class.
|
55 |
+
*/
|
56 |
+
$plugin = Google_Maps_Builder::get_instance();
|
57 |
+
$this->plugin_slug = $plugin->get_plugin_slug();
|
58 |
+
|
59 |
+
// Load admin style sheet and JavaScript.
|
60 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_styles' ) );
|
61 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_scripts' ) );
|
62 |
+
|
63 |
+
//Add metaboxes and fields to CPT
|
64 |
+
add_filter( 'cmb_meta_boxes', array( $this, 'cpt_metaboxes_fields' ), 1 );
|
65 |
+
|
66 |
+
//Custom Meta Fields
|
67 |
+
add_action( 'cmb_render_google_geocoder', array( $this, 'cmb_render_google_geocoder' ), 10, 2 );
|
68 |
+
add_action( 'cmb_render_google_maps_preview', array( $this, 'cmb_render_google_maps_preview' ), 10, 2 );
|
69 |
+
add_action( 'cmb_render_search_options', array( $this, 'cmb_render_search_options' ), 10, 2 );
|
70 |
+
add_action( 'cmb_render_width_height', array( $this, 'cmb_render_width_height' ), 10, 2 );
|
71 |
+
add_action( 'cmb_render_lat_lng', array( $this, 'cmb_render_lat_lng' ), 10, 2 );
|
72 |
+
|
73 |
+
|
74 |
+
|
75 |
+
}
|
76 |
+
|
77 |
+
|
78 |
+
public function get_default_map_options() {
|
79 |
+
|
80 |
+
$width_height = gmb_get_option( 'gmb_width_height' );
|
81 |
+
// $lat_lng = gmb_get_option( 'gmb_lat_lng' );
|
82 |
+
|
83 |
+
$defaults = array(
|
84 |
+
'width' => ( isset( $width_height['width'] ) ) ? $width_height['width'] : '100',
|
85 |
+
'width_unit' => ( isset( $width_height['map_width_unit'] ) ) ? $width_height['map_width_unit'] : '%',
|
86 |
+
'height' => ( isset( $width_height['height'] ) ) ? $width_height['height'] : '600',
|
87 |
+
// 'latitude' => ( isset( $lat_lng['latitude'] ) ) ? $lat_lng['latitude'] : '600',
|
88 |
+
// 'longitude' => ( isset( $lat_lng['longitude'] ) ) ? $lat_lng['longitude'] : '600',
|
89 |
+
);
|
90 |
+
|
91 |
+
return $defaults;
|
92 |
+
|
93 |
+
}
|
94 |
+
|
95 |
+
/**
|
96 |
+
* Return an instance of this class.
|
97 |
+
*
|
98 |
+
* @since 1.0.0
|
99 |
+
*
|
100 |
+
* @return object A single instance of this class.
|
101 |
+
*/
|
102 |
+
public static function get_instance() {
|
103 |
+
|
104 |
+
// If the single instance hasn't been set, set it now.
|
105 |
+
if ( null == self::$instance ) {
|
106 |
+
self::$instance = new self;
|
107 |
+
}
|
108 |
+
|
109 |
+
return self::$instance;
|
110 |
+
}
|
111 |
+
|
112 |
+
|
113 |
+
/**
|
114 |
+
* Register and enqueue admin-specific style sheet.
|
115 |
+
*
|
116 |
+
* Return early if no settings page is registered.
|
117 |
+
* @since 1.0.0
|
118 |
+
*
|
119 |
+
* @return null
|
120 |
+
*/
|
121 |
+
public function enqueue_admin_styles( $hook ) {
|
122 |
+
|
123 |
+
global $post;
|
124 |
+
$suffix = defined( 'GMB_DEBUG' ) && GMB_DEBUG ? '' : '.min';
|
125 |
+
|
126 |
+
//Only enqueue scripts for CPT on post type screen
|
127 |
+
if ( $hook == 'post-new.php' || $hook == 'post.php' && 'google_maps' === $post->post_type ) {
|
128 |
+
|
129 |
+
wp_enqueue_style( $this->plugin_slug . '-admin-styles', plugins_url( 'assets/css/admin' . $suffix . '.css', __FILE__ ), array(), Google_Maps_Builder::VERSION );
|
130 |
+
wp_enqueue_style( $this->plugin_slug . '-map-icons', plugins_url( 'includes/map-icons/css/map-icons.css', dirname( __FILE__ ) ), array(), Google_Maps_Builder::VERSION );
|
131 |
+
wp_enqueue_style( $this->plugin_slug . '-map-tooltips', plugins_url( 'includes/tooltips/jquery.qtip' . $suffix . '.css', __FILE__ ), array(), Google_Maps_Builder::VERSION );
|
132 |
+
|
133 |
+
}
|
134 |
+
|
135 |
+
}
|
136 |
+
|
137 |
+
/**
|
138 |
+
* Register and enqueue admin-specific JavaScript.
|
139 |
+
*
|
140 |
+
* @since 1.0.0
|
141 |
+
*
|
142 |
+
* @return null Return early if no settings page is registered.
|
143 |
+
*/
|
144 |
+
public function enqueue_admin_scripts( $hook ) {
|
145 |
+
global $post;
|
146 |
+
$suffix = defined( 'GMB_DEBUG' ) && GMB_DEBUG ? '' : '.min';
|
147 |
+
|
148 |
+
//Only enqueue scripts for CPT on post type screen
|
149 |
+
if ( $hook == 'post-new.php' || $hook == 'post.php' && 'google_maps' === $post->post_type ) {
|
150 |
+
|
151 |
+
wp_enqueue_script( $this->plugin_slug . '-admin-gmaps', 'https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places', array( 'jquery' ) );
|
152 |
+
wp_enqueue_script( $this->plugin_slug . '-map-icons', plugins_url( 'includes/map-icons/js/map-icons.js', dirname( __FILE__ ) ), array( 'jquery' ) );
|
153 |
+
wp_enqueue_script( $this->plugin_slug . '-admin-map-builder', plugins_url( 'assets/js/admin-google-map' . $suffix . '.js', __FILE__ ), array( 'jquery' ), Google_Maps_Builder::VERSION );
|
154 |
+
wp_enqueue_script( $this->plugin_slug . '-admin-qtip', plugins_url( 'includes/tooltips/jquery.qtip' . $suffix . '.js', __FILE__ ), array( 'jquery' ), Google_Maps_Builder::VERSION, true );
|
155 |
+
|
156 |
+
|
157 |
+
$snazzy = wp_remote_fopen( GMB_PLUGIN_URL . '/includes/snazzy.php' );
|
158 |
+
$api_key = gmb_get_option( 'gmb_api_key' );
|
159 |
+
$geolocate = gmb_get_option( 'gmb_lat_lng' );
|
160 |
+
|
161 |
+
$maps_data = array(
|
162 |
+
'api_key' => $api_key,
|
163 |
+
'geolocate_setting' => isset( $geolocate['geolocate_map'] ) ? $geolocate['geolocate_map'] : 'yes',
|
164 |
+
'default_lat' => isset( $geolocate['latitude'] ) ? $geolocate['latitude'] : '32.715738',
|
165 |
+
'default_lng' => isset( $geolocate['longitude'] ) ? $geolocate['longitude'] : '-117.16108380000003',
|
166 |
+
'plugin_url' => GMB_PLUGIN_URL,
|
167 |
+
'snazzy' => json_encode( $snazzy )
|
168 |
+
);
|
169 |
+
wp_localize_script( $this->plugin_slug . '-admin-map-builder', 'gmb_data', $maps_data );
|
170 |
+
|
171 |
+
}
|
172 |
+
|
173 |
+
wp_enqueue_style( 'dashicons' );
|
174 |
+
|
175 |
+
|
176 |
+
}
|
177 |
+
|
178 |
+
|
179 |
+
|
180 |
+
|
181 |
+
/**
|
182 |
+
* Register our setting to WP
|
183 |
+
* @since 1.0.0
|
184 |
+
*/
|
185 |
+
public function settings_init() {
|
186 |
+
register_setting( $this->plugin_slug, $this->plugin_slug );
|
187 |
+
}
|
188 |
+
|
189 |
+
|
190 |
+
/**
|
191 |
+
* Defines the Google Places CPT metabox and field configuration
|
192 |
+
* @since 1.0.0
|
193 |
+
* @return array
|
194 |
+
*/
|
195 |
+
|
196 |
+
public function cpt_metaboxes_fields( array $meta_boxes ) {
|
197 |
+
|
198 |
+
$prefix = 'gmb_'; // Prefix for all fields
|
199 |
+
|
200 |
+
$default_options = $this->get_default_map_options();
|
201 |
+
|
202 |
+
$meta_boxes['google_maps_metabox'] = array(
|
203 |
+
'id' => 'google_maps_metabox',
|
204 |
+
'title' => __( 'Google Map Markers', $this->plugin_slug ),
|
205 |
+
'pages' => array( 'google_maps' ), // post type
|
206 |
+
'context' => 'normal', // 'normal', 'advanced', or 'side'
|
207 |
+
'priority' => 'high', // 'high', 'core', 'default' or 'low'
|
208 |
+
'show_names' => true, // Show field names on the left
|
209 |
+
'fields' => array(
|
210 |
+
array(
|
211 |
+
'name' => __( 'Create Marker', $this->plugin_slug ),
|
212 |
+
'id' => $prefix . 'geocoder',
|
213 |
+
'type' => 'google_geocoder',
|
214 |
+
'std' => 'San Diego, CA, United States',
|
215 |
+
'desc' => '',
|
216 |
+
),
|
217 |
+
),
|
218 |
+
);
|
219 |
+
$meta_boxes['google_maps_preview_metabox'] = array(
|
220 |
+
'id' => 'google_maps_preview_metabox',
|
221 |
+
'title' => __( 'Google Map Preview', $this->plugin_slug ),
|
222 |
+
'pages' => array( 'google_maps' ), // post type
|
223 |
+
'context' => 'normal', // 'normal', 'advanced', or 'side'
|
224 |
+
'priority' => 'core', // 'high', 'core', 'default' or 'low'
|
225 |
+
'show_names' => false, // Show field names on the left
|
226 |
+
'fields' => array(
|
227 |
+
array(
|
228 |
+
'name' => 'Map Preview',
|
229 |
+
'id' => $prefix . 'preview',
|
230 |
+
'type' => 'google_maps_preview',
|
231 |
+
'std' => '',
|
232 |
+
),
|
233 |
+
|
234 |
+
),
|
235 |
+
);
|
236 |
+
$meta_boxes['google_maps_markers'] = array(
|
237 |
+
'id' => 'google_maps_markers',
|
238 |
+
'title' => __( 'Google Map Markers', $this->plugin_slug ),
|
239 |
+
'pages' => array( 'google_maps' ), // post type
|
240 |
+
'context' => 'normal', // 'normal', 'advanced', or 'side'
|
241 |
+
'priority' => 'low', // 'high', 'core', 'default' or 'low'
|
242 |
+
'show_names' => true, // Show field names on the left
|
243 |
+
'fields' => array(
|
244 |
+
array(
|
245 |
+
'id' => $prefix . 'markers_group',
|
246 |
+
'type' => 'group',
|
247 |
+
'description' => __('Generatemap m marke. You may update marker data here in bulk ps', $this->plugin_slug ),
|
248 |
+
'options' => array(
|
249 |
+
'add_button' => __( 'Add Another Marker', $this->plugin_slug ),
|
250 |
+
'remove_button' => __( 'Remove Marker', $this->plugin_slug ),
|
251 |
+
'sortable' => true, // beta
|
252 |
+
),
|
253 |
+
// Fields array works the same, except id's only need to be unique for this group. Prefix is not needed.
|
254 |
+
'fields' => array(
|
255 |
+
array(
|
256 |
+
'name' => 'Marker Title',
|
257 |
+
'id' => 'title',
|
258 |
+
'type' => 'text',
|
259 |
+
),
|
260 |
+
array(
|
261 |
+
'name' => 'Marker Description',
|
262 |
+
'description' => 'Write a short description for this marker',
|
263 |
+
'id' => 'description',
|
264 |
+
'type' => 'textarea_small',
|
265 |
+
),
|
266 |
+
array(
|
267 |
+
'name' => 'Marker Reference',
|
268 |
+
'id' => 'reference',
|
269 |
+
'type' => 'text',
|
270 |
+
),
|
271 |
+
array(
|
272 |
+
'name' => 'Hide Place Details',
|
273 |
+
'id' => 'hide_details',
|
274 |
+
'type' => 'checkbox',
|
275 |
+
),
|
276 |
+
array(
|
277 |
+
'name' => 'Marker Latitude',
|
278 |
+
'id' => 'lat',
|
279 |
+
'type' => 'text',
|
280 |
+
),
|
281 |
+
array(
|
282 |
+
'name' => 'Marker Longitude',
|
283 |
+
'id' => 'lng',
|
284 |
+
'type' => 'text',
|
285 |
+
),
|
286 |
+
array(
|
287 |
+
'name' => 'Marker Data',
|
288 |
+
'id' => 'marker',
|
289 |
+
'type' => 'textarea_code',
|
290 |
+
),
|
291 |
+
array(
|
292 |
+
'name' => 'Marker Label Data',
|
293 |
+
'id' => 'label',
|
294 |
+
'type' => 'textarea_code',
|
295 |
+
),
|
296 |
+
),
|
297 |
+
),
|
298 |
+
),
|
299 |
+
);
|
300 |
+
|
301 |
+
|
302 |
+
$meta_boxes['google_maps_search_options'] = array(
|
303 |
+
'id' => 'google_maps_search_options',
|
304 |
+
'title' => __( 'Google Places', $this->plugin_slug ),
|
305 |
+
'pages' => array( 'google_maps' ), // post type
|
306 |
+
'context' => 'normal', // 'normal', 'advanced', or 'side'
|
307 |
+
'priority' => 'core', // 'high', 'core', 'default' or 'low'
|
308 |
+
'show_names' => true, // Show field names on the left
|
309 |
+
'fields' => array(
|
310 |
+
array(
|
311 |
+
'name' => __( 'Show Places?', $this->plugin_slug ),
|
312 |
+
'desc' => __( 'Display establishments, prominent points of interest, geographic locations, and more.', $this->plugin_slug ),
|
313 |
+
'id' => $prefix . 'show_places',
|
314 |
+
'type' => 'radio_inline',
|
315 |
+
'options' => array(
|
316 |
+
'yes' => __( 'Yes', 'cmb' ),
|
317 |
+
'no' => __( 'No', 'cmb' ),
|
318 |
+
),
|
319 |
+
),
|
320 |
+
array(
|
321 |
+
'name' => __( 'Search Radius', $this->plugin_slug ),
|
322 |
+
'desc' => __( 'Defines the distance (in meters) within which to return Place results. The maximum allowed radius is 50,000 meters.', $this->plugin_slug ),
|
323 |
+
'std' => '1000',
|
324 |
+
'id' => $prefix . 'search_radius',
|
325 |
+
'type' => 'text_small'
|
326 |
+
),
|
327 |
+
array(
|
328 |
+
'name' => __( 'Place Types', $this->plugin_slug ),
|
329 |
+
'desc' => __( 'Select which type of places you would like to display on this map.', $this->plugin_slug ),
|
330 |
+
'id' => $prefix . 'places_search_multicheckbox',
|
331 |
+
'type' => 'multicheck',
|
332 |
+
'options' => array(
|
333 |
+
'accounting' => __( 'Accounting', $this->plugin_slug ),
|
334 |
+
'airport' => __( 'Airport', $this->plugin_slug ),
|
335 |
+
// 'amusement_park' => __('Amusement Park', $this->plugin_slug ),
|
336 |
+
// 'aquarium' => __('Aquarium', $this->plugin_slug ),
|
337 |
+
// 'art_gallery' => __('Art Gallery',
|
338 |
+
'atm' => __( 'ATM', $this->plugin_slug ),
|
339 |
+
'bakery' => __( 'Bakery', $this->plugin_slug ),
|
340 |
+
'bank' => __( 'Bank', $this->plugin_slug ),
|
341 |
+
'bar' => __( 'Bar', $this->plugin_slug ),
|
342 |
+
// 'beauty_salon' => __('Beauty Salon', $this->plugin_slug ),
|
343 |
+
// 'bicycle_store' => __('Bicycle Store', $this->plugin_slug ),
|
344 |
+
// 'book_store' => __('Book Store', $this->plugin_slug ),
|
345 |
+
'bowling_alley' => __( 'Bowling Alley', $this->plugin_slug ),
|
346 |
+
'bus_station' => __( 'Bus Station', $this->plugin_slug ),
|
347 |
+
'cafe' => __( 'Cafe', $this->plugin_slug ),
|
348 |
+
'campground' => __( 'Campground', $this->plugin_slug ),
|
349 |
+
// 'car_dealer' => __('Car Dealer', $this->plugin_slug ),
|
350 |
+
// 'car_rental' => __('Car Rental', $this->plugin_slug ),
|
351 |
+
// 'car_repair' => __('Car Repair', $this->plugin_slug ),
|
352 |
+
'car_wash' => __( 'Car Wash', $this->plugin_slug ),
|
353 |
+
'casino' => __( 'Casino', $this->plugin_slug ),
|
354 |
+
'cemetery' => __( 'Cemetery', $this->plugin_slug ),
|
355 |
+
'church' => __( 'Church', $this->plugin_slug ),
|
356 |
+
'city_hall' => __( 'City Hall', $this->plugin_slug ),
|
357 |
+
'clothing_store' => __( 'Clothing Store', $this->plugin_slug ),
|
358 |
+
'convenience_store' => __( 'Convenience Store', $this->plugin_slug ),
|
359 |
+
'courthouse' => __( 'Courthouse', $this->plugin_slug ),
|
360 |
+
'dentist' => __( 'Dentist', $this->plugin_slug ),
|
361 |
+
'department_store' => __( 'Department Store', $this->plugin_slug ),
|
362 |
+
// 'doctor' => __('Doctor', $this->plugin_slug ),
|
363 |
+
// 'electrician' => __('Electrician', $this->plugin_slug ),
|
364 |
+
// 'electronics_store' => __('Electronics Store', $this->plugin_slug ),
|
365 |
+
'embassy' => __( 'Embassy', $this->plugin_slug ),
|
366 |
+
'establishment' => __( 'Establishment', $this->plugin_slug ),
|
367 |
+
'finance' => __( 'Finance', $this->plugin_slug ),
|
368 |
+
'fire_station' => __( 'Fire Station', $this->plugin_slug ),
|
369 |
+
'florist' => __( 'Florist', $this->plugin_slug ),
|
370 |
+
'food' => __( 'Food', $this->plugin_slug ),
|
371 |
+
'funeral_home' => __( 'Funeral Home', $this->plugin_slug ),
|
372 |
+
'furniture_store' => __( 'Furniture_store', $this->plugin_slug ),
|
373 |
+
// 'gas_station' => __('Gas Station', $this->plugin_slug ),
|
374 |
+
// 'general_contractor' => __('General Contractor', $this->plugin_slug ),
|
375 |
+
// 'grocery_or_supermarket' => __('Grocery or Supermarket', $this->plugin_slug ),
|
376 |
+
'gym' => __( 'Gym', $this->plugin_slug ),
|
377 |
+
'hair_care' => __( 'Hair Care', $this->plugin_slug ),
|
378 |
+
'hardware_store' => __( 'Hardware Store', $this->plugin_slug ),
|
379 |
+
'health' => __( 'Health', $this->plugin_slug ),
|
380 |
+
'hindu_temple' => __( 'Hindu Temple', $this->plugin_slug ),
|
381 |
+
// 'home_goods_store' => __('Home Goods Store', $this->plugin_slug ),
|
382 |
+
// 'hospital' => __('Hospital', $this->plugin_slug ),
|
383 |
+
// 'insurance_agency' => __('Insurance Agency', $this->plugin_slug ),
|
384 |
+
'jewelry_store' => __( 'Jewelry Store', $this->plugin_slug ),
|
385 |
+
'laundry' => __( 'Laundry', $this->plugin_slug ),
|
386 |
+
'lawyer' => __( 'Lawyer', $this->plugin_slug ),
|
387 |
+
'library' => __( 'Library', $this->plugin_slug ),
|
388 |
+
'liquor_store' => __( 'Liquor Store', $this->plugin_slug ),
|
389 |
+
'local_government_office' => __( 'Local Government Office', $this->plugin_slug ),
|
390 |
+
'locksmith' => __( 'Locksmith', $this->plugin_slug ),
|
391 |
+
'lodging' => __( 'Lodging', $this->plugin_slug ),
|
392 |
+
'meal_delivery' => __( 'Meal Delivery', $this->plugin_slug ),
|
393 |
+
'meal_takeaway' => __( 'Meal Takeaway', $this->plugin_slug ),
|
394 |
+
// 'mosque' => __('Mosque', $this->plugin_slug ),
|
395 |
+
// 'movie_rental' => __('Movie Rental', $this->plugin_slug ),
|
396 |
+
// 'movie_theater' => __('Movie Theater', $this->plugin_slug ),
|
397 |
+
// 'moving_company' => __('Moving Company', $this->plugin_slug ),
|
398 |
+
'museum' => __( 'Museum', $this->plugin_slug ),
|
399 |
+
'night_club' => __( 'Night Club', $this->plugin_slug ),
|
400 |
+
'painter' => __( 'Painter', $this->plugin_slug ),
|
401 |
+
'park' => __( 'Park', $this->plugin_slug ),
|
402 |
+
'parking' => __( 'Parking', $this->plugin_slug ),
|
403 |
+
'pet_store' => __( 'Pet Store', $this->plugin_slug ),
|
404 |
+
'pharmacy' => __( 'Pharmacy', $this->plugin_slug ),
|
405 |
+
'physiotherapist' => __( 'Physiotherapist', $this->plugin_slug ),
|
406 |
+
'place_of_worship' => __( 'Place of Worship', $this->plugin_slug ),
|
407 |
+
'plumber' => __( 'Plumber', $this->plugin_slug ),
|
408 |
+
'police' => __( 'Police', $this->plugin_slug ),
|
409 |
+
'post_office' => __( 'Post Office', $this->plugin_slug ),
|
410 |
+
// 'real_estate_agency' => __('Real Estate Agency', $this->plugin_slug ),
|
411 |
+
// 'restaurant' => __('Restaurant', $this->plugin_slug ),
|
412 |
+
// 'roofing_contractor' => __('Roofing Contractor', $this->plugin_slug ),
|
413 |
+
'rv_park' => __( 'RV Park', $this->plugin_slug ),
|
414 |
+
'school' => __( 'School', $this->plugin_slug ),
|
415 |
+
'shoe_store' => __( 'Shoe Store', $this->plugin_slug ),
|
416 |
+
'shopping_mall' => __( 'Shopping Mall', $this->plugin_slug ),
|
417 |
+
'spa' => __( 'Spa', $this->plugin_slug ),
|
418 |
+
'stadium' => __( 'Stadium', $this->plugin_slug ),
|
419 |
+
'storage' => __( 'Storage', $this->plugin_slug ),
|
420 |
+
'store' => __( 'Store', $this->plugin_slug ),
|
421 |
+
'subway_station' => __( 'Subway Station', $this->plugin_slug ),
|
422 |
+
'synagogue' => __( 'Synagogue', $this->plugin_slug ),
|
423 |
+
'taxi_stand' => __( 'Taxi Stand', $this->plugin_slug ),
|
424 |
+
// 'train_station' => __('Train Station', $this->plugin_slug ),
|
425 |
+
// 'travel_agency' => __('Travel Agency', $this->plugin_slug ),
|
426 |
+
'university' => __( 'University', $this->plugin_slug ),
|
427 |
+
'veterinary_care' => __( 'Veterinary Care', $this->plugin_slug ),
|
428 |
+
'zoo' => __( 'Zoo', $this->plugin_slug )
|
429 |
+
),
|
430 |
+
),
|
431 |
+
),
|
432 |
+
);
|
433 |
+
|
434 |
+
$meta_boxes['google_maps_options'] = array(
|
435 |
+
'id' => 'google_maps_options',
|
436 |
+
'title' => __( 'Google Map Display Options', $this->plugin_slug ),
|
437 |
+
'pages' => array( 'google_maps' ), // post type
|
438 |
+
'context' => 'side', // 'normal', 'advanced', or 'side'
|
439 |
+
'priority' => 'default', // 'high', 'core', 'default' or 'low'
|
440 |
+
'show_names' => true, // Show field names on the left
|
441 |
+
'fields' => array(
|
442 |
+
array(
|
443 |
+
'name' => __( 'Map Size', $this->plugin_slug ),
|
444 |
+
'id' => $prefix . 'width_height',
|
445 |
+
'type' => 'width_height',
|
446 |
+
'width_std' => $default_options['width'],
|
447 |
+
'width_unit_std' => $default_options['width_unit'],
|
448 |
+
'height_std' => $default_options['height'],
|
449 |
+
'desc' => '',
|
450 |
+
),
|
451 |
+
array(
|
452 |
+
'name' => __( 'Map Location', $this->plugin_slug ),
|
453 |
+
'id' => $prefix . 'lat_lng',
|
454 |
+
'type' => 'lat_lng',
|
455 |
+
'lat_std' => '',
|
456 |
+
'lng_std' => '',
|
457 |
+
'desc' => '',
|
458 |
+
),
|
459 |
+
|
460 |
+
array(
|
461 |
+
'name' => 'Map Type',
|
462 |
+
'id' => $prefix . 'type',
|
463 |
+
'type' => 'select',
|
464 |
+
'std' => 'default',
|
465 |
+
'options' => array(
|
466 |
+
array( 'name' => __( 'Road Map', $this->plugin_slug ), 'value' => 'RoadMap' ),
|
467 |
+
array( 'name' => __( 'Satellite', $this->plugin_slug ), 'value' => 'Satellite' ),
|
468 |
+
array( 'name' => __( 'Hybrid', $this->plugin_slug ), 'value' => 'Hybrid' ),
|
469 |
+
array( 'name' => __( 'Terrain', $this->plugin_slug ), 'value' => 'Terrain' ),
|
470 |
+
),
|
471 |
+
),
|
472 |
+
array(
|
473 |
+
'name' => 'Map Theme',
|
474 |
+
'desc' => sprintf( __( 'Set optional preconfigured styles. <a href="%s" class="snazzy-link new-window" target="_blank">Snazzy Maps</a>', $this->plugin_slug ), esc_url( 'http://snazzymaps.com' ) ),
|
475 |
+
'id' => $prefix . 'theme',
|
476 |
+
'type' => 'select',
|
477 |
+
'std' => 'none',
|
478 |
+
'options' => array(
|
479 |
+
array( 'name' => __( 'None', $this->plugin_slug ), 'value' => 'none' ),
|
480 |
+
array( 'name' => __( 'Aqua', $this->plugin_slug ), 'value' => '68' ),
|
481 |
+
array( 'name' => __( 'A Dark World', $this->plugin_slug ), 'value' => '73' ),
|
482 |
+
array( 'name' => __( 'Bluish', $this->plugin_slug ), 'value' => '28' ),
|
483 |
+
array( 'name' => __( 'Cool Grey', $this->plugin_slug ), 'value' => '80' ),
|
484 |
+
array( 'name' => __( 'Clean Cut', $this->plugin_slug ), 'value' => '77' ),
|
485 |
+
array( 'name' => __( 'Flat Green', $this->plugin_slug ), 'value' => '36' ),
|
486 |
+
array( 'name' => __( 'MapBox', $this->plugin_slug ), 'value' => '44' ),
|
487 |
+
array( 'name' => __( 'Muted Blue', $this->plugin_slug ), 'value' => '83' ),
|
488 |
+
array( 'name' => __( 'Old Timey', $this->plugin_slug ), 'value' => '22' ),
|
489 |
+
array( 'name' => __( 'Pale Dawn', $this->plugin_slug ), 'value' => '1' ),
|
490 |
+
array( 'name' => __( 'Paper', $this->plugin_slug ), 'value' => '19' ),
|
491 |
+
array( 'name' => __( 'Lunar Landscape', $this->plugin_slug ), 'value' => '37' ),
|
492 |
+
array( 'name' => __( 'Shade of Green', $this->plugin_slug ), 'value' => '75' ),
|
493 |
+
array( 'name' => __( 'Shift Worker', $this->plugin_slug ), 'value' => '27' ),
|
494 |
+
array( 'name' => __( 'Subtle Grayscale', $this->plugin_slug ), 'value' => '15' ),
|
495 |
+
array( 'name' => __( 'The Endless Atlas', $this->plugin_slug ), 'value' => '50' ),
|
496 |
+
),
|
497 |
+
),
|
498 |
+
array(
|
499 |
+
'name' => 'Map Theme JSON',
|
500 |
+
'desc' => 'Contains the map theme JSON',
|
501 |
+
'default' => 'none',
|
502 |
+
'id' => $prefix . 'theme_json',
|
503 |
+
'type' => 'textarea_code'
|
504 |
+
),
|
505 |
+
array(
|
506 |
+
'name' => 'Zoom',
|
507 |
+
'desc' => __( 'Adjust the map zoom (0-21)', $this->plugin_slug ),
|
508 |
+
'id' => $prefix . 'zoom',
|
509 |
+
'type' => 'select',
|
510 |
+
'std' => '15',
|
511 |
+
'options' => array(
|
512 |
+
array( 'name' => '21', 'value' => '21' ),
|
513 |
+
array( 'name' => '20', 'value' => '20' ),
|
514 |
+
array( 'name' => '19', 'value' => '19' ),
|
515 |
+
array( 'name' => '18', 'value' => '18' ),
|
516 |
+
array( 'name' => '17', 'value' => '17' ),
|
517 |
+
array( 'name' => '16', 'value' => '16' ),
|
518 |
+
array( 'name' => '15', 'value' => '15' ),
|
519 |
+
array( 'name' => '14', 'value' => '14' ),
|
520 |
+
array( 'name' => '13', 'value' => '13' ),
|
521 |
+
array( 'name' => '12', 'value' => '12' ),
|
522 |
+
array( 'name' => '11', 'value' => '11' ),
|
523 |
+
array( 'name' => '10', 'value' => '10' ),
|
524 |
+
array( 'name' => '9', 'value' => '9' ),
|
525 |
+
array( 'name' => '8', 'value' => '8' ),
|
526 |
+
array( 'name' => '7', 'value' => '7' ),
|
527 |
+
array( 'name' => '6', 'value' => '6' ),
|
528 |
+
array( 'name' => '5', 'value' => '5' ),
|
529 |
+
array( 'name' => '4', 'value' => '4' ),
|
530 |
+
array( 'name' => '3', 'value' => '3' ),
|
531 |
+
array( 'name' => '2', 'value' => '2' ),
|
532 |
+
array( 'name' => '1', 'value' => '1' ),
|
533 |
+
array( 'name' => '0', 'value' => '0' ),
|
534 |
+
|
535 |
+
)
|
536 |
+
),
|
537 |
+
),
|
538 |
+
);
|
539 |
+
|
540 |
+
$meta_boxes['google_maps_control_options'] = array(
|
541 |
+
'id' => 'google_maps_control_options',
|
542 |
+
'title' => __( 'Google Map Control Options', $this->plugin_slug ),
|
543 |
+
'pages' => array( 'google_maps' ), // post type
|
544 |
+
'context' => 'side', // 'normal', 'advanced', or 'side'
|
545 |
+
'priority' => 'default', // 'high', 'core', 'default' or 'low'
|
546 |
+
'show_names' => true, // Show field names on the left
|
547 |
+
'fields' => array(
|
548 |
+
array(
|
549 |
+
'name' => 'Zoom Control',
|
550 |
+
'id' => $prefix . 'zoom_control',
|
551 |
+
'type' => 'select',
|
552 |
+
'std' => 'default',
|
553 |
+
'options' => array(
|
554 |
+
array( 'name' => __( 'None', $this->plugin_slug ), 'value' => 'none' ),
|
555 |
+
array( 'name' => __( 'Small', $this->plugin_slug ), 'value' => 'small' ),
|
556 |
+
array( 'name' => __( 'Large', $this->plugin_slug ), 'value' => 'large' ),
|
557 |
+
array( 'name' => __( 'Default', $this->plugin_slug ), 'value' => 'default' ),
|
558 |
+
),
|
559 |
+
),
|
560 |
+
array(
|
561 |
+
'name' => 'Street View',
|
562 |
+
'id' => $prefix . 'street_view',
|
563 |
+
'type' => 'select',
|
564 |
+
'std' => 'true',
|
565 |
+
'options' => array(
|
566 |
+
array( 'name' => __( 'None', $this->plugin_slug ), 'value' => 'none' ),
|
567 |
+
array( 'name' => __( 'Standard', $this->plugin_slug ), 'value' => 'true' ),
|
568 |
+
),
|
569 |
+
),
|
570 |
+
array(
|
571 |
+
'name' => 'Pan Control',
|
572 |
+
'id' => $prefix . 'pan',
|
573 |
+
'type' => 'select',
|
574 |
+
'std' => 'true',
|
575 |
+
'options' => array(
|
576 |
+
array( 'name' => __( 'None', $this->plugin_slug ), 'value' => 'none' ),
|
577 |
+
array( 'name' => __( 'Standard', $this->plugin_slug ), 'value' => 'true' ),
|
578 |
+
),
|
579 |
+
),
|
580 |
+
array(
|
581 |
+
'name' => 'Map Type Control',
|
582 |
+
'id' => $prefix . 'map_type_control',
|
583 |
+
'type' => 'select',
|
584 |
+
'std' => 'horizontal_bar',
|
585 |
+
'options' => array(
|
586 |
+
array( 'name' => __( 'None', $this->plugin_slug ), 'value' => 'none' ),
|
587 |
+
array( 'name' => __( 'Dropdown Menu', $this->plugin_slug ), 'value' => 'dropdown_menu' ),
|
588 |
+
array( 'name' => __( 'Horizontal Bar', $this->plugin_slug ), 'value' => 'horizontal_bar' ),
|
589 |
+
),
|
590 |
+
),
|
591 |
+
|
592 |
+
array(
|
593 |
+
'name' => 'Draggable Map',
|
594 |
+
'id' => $prefix . 'draggable',
|
595 |
+
'type' => 'select',
|
596 |
+
'std' => 'true',
|
597 |
+
'options' => array(
|
598 |
+
array( 'name' => __( 'None', $this->plugin_slug ), 'value' => 'none' ),
|
599 |
+
array( 'name' => __( 'Standard', $this->plugin_slug ), 'value' => 'true' ),
|
600 |
+
),
|
601 |
+
),
|
602 |
+
array(
|
603 |
+
'name' => 'Double Click to Zoom',
|
604 |
+
'id' => $prefix . 'double_click',
|
605 |
+
'type' => 'select',
|
606 |
+
'std' => 'true',
|
607 |
+
'options' => array(
|
608 |
+
array( 'name' => __( 'None', $this->plugin_slug ), 'value' => 'none' ),
|
609 |
+
array( 'name' => __( 'Standard', $this->plugin_slug ), 'value' => 'true' ),
|
610 |
+
),
|
611 |
+
),
|
612 |
+
array(
|
613 |
+
'name' => 'Mouse Wheel to Zoom',
|
614 |
+
'id' => $prefix . 'wheel_zoom',
|
615 |
+
'type' => 'select',
|
616 |
+
'std' => 'none',
|
617 |
+
'options' => array(
|
618 |
+
array( 'name' => __( 'None', $this->plugin_slug ), 'value' => 'none' ),
|
619 |
+
array( 'name' => __( 'Standard', $this->plugin_slug ), 'value' => 'true' ),
|
620 |
+
),
|
621 |
+
),
|
622 |
+
),
|
623 |
+
|
624 |
+
);
|
625 |
+
|
626 |
+
return $meta_boxes;
|
627 |
+
|
628 |
+
}
|
629 |
+
|
630 |
+
|
631 |
+
/**
|
632 |
+
* CMB Width Height
|
633 |
+
*
|
634 |
+
* Custom CMB field for Gmap width and height
|
635 |
+
*
|
636 |
+
* @param $field
|
637 |
+
* @param $meta
|
638 |
+
*/
|
639 |
+
function cmb_render_width_height( $field, $meta ) {
|
640 |
+
$default_options = $this->get_default_map_options();
|
641 |
+
$meta = wp_parse_args(
|
642 |
+
$meta, array(
|
643 |
+
'width' => $default_options['width'],
|
644 |
+
'height' => $default_options['height'],
|
645 |
+
'map_width_unit' => $default_options['width_unit'],
|
646 |
+
)
|
647 |
+
);
|
648 |
+
|
649 |
+
$output = '<div id="width_height_wrap" class="clear">';
|
650 |
+
//width
|
651 |
+
$output .= '<div id="width_wrap" class="clear">';
|
652 |
+
$output .= '<label class="width-label size-label">Width:</label><input type="text" class="regular-text map-width" name="' . $field['id'] . '[width]" id="' . $field['id'] . '-width" value="' . ( $meta['width'] ? $meta['width'] : $field['width_std'] ) . '" />';
|
653 |
+
$output .= '<div id="size_labels_wrap">';
|
654 |
+
$output .= '<input id="width_unit_percent" type="radio" name="' . $field['id'] . '[map_width_unit]" class="width_radio" value="%" ' . ( $meta['map_width_unit'] === '%' || $field['width_unit_std'] === '%' ? 'checked="checked"' : '' ) . '><label class="width_unit_label">%</label>';
|
655 |
+
$output .= '<input id="width_unit_px" type="radio" name="' . $field['id'] . '[map_width_unit]" class="width_radio" value="px" ' . ( $meta['map_width_unit'] === 'px' ? 'checked="checked"' : '' ) . ' ><label class="width_unit_label">px</label>';
|
656 |
+
$output .= '</div>';
|
657 |
+
$output .= '</div>';
|
658 |
+
|
659 |
+
//height
|
660 |
+
$output .= '<div id="height_wrap" class="clear">';
|
661 |
+
$output .= '<label for="' . $field['id'] . '[height]" class="height-label size-label">Height:</label><input type="text" class="regular-text map-height" name="' . $field['id'] . '[height]" id="' . $field['id'] . '-height" value="' . ( $meta['height'] ? $meta['height'] : $field['height_std'] ) . '" />';
|
662 |
+
$output .= '</div>';
|
663 |
+
$output .= '</div>';
|
664 |
+
|
665 |
+
|
666 |
+
echo $output;
|
667 |
+
|
668 |
+
|
669 |
+
}
|
670 |
+
|
671 |
+
|
672 |
+
/**
|
673 |
+
* CMB Lat Lng
|
674 |
+
*
|
675 |
+
* Custom CMB field for Gmap latitude and longitude
|
676 |
+
*
|
677 |
+
* @param $field
|
678 |
+
* @param $meta
|
679 |
+
*/
|
680 |
+
function cmb_render_lat_lng( $field, $meta ) {
|
681 |
+
$meta = wp_parse_args(
|
682 |
+
$meta, array(
|
683 |
+
'latitude' => '',
|
684 |
+
'longitude' => '',
|
685 |
+
)
|
686 |
+
);
|
687 |
+
|
688 |
+
//lat lng
|
689 |
+
$output = '<div id="lat-lng-wrap">
|
690 |
+
<div class="coordinates-wrap clear">
|
691 |
+
<div class="lat-lng-wrap lat-wrap clear"><span>Latitude: </span>
|
692 |
+
<input type="text" class="regular-text latitude" name="' . $field['id'] . '[latitude]" id="' . $field['id'] . '-latitude" value="' . ( $meta['latitude'] ? $meta['latitude'] : $field['lat_std'] ) . '" />
|
693 |
+
</div>
|
694 |
+
<div class="lat-lng-wrap lng-wrap clear"><span>Longitude: </span>
|
695 |
+
<input type="text" class="regular-text longitude" name="' . $field['id'] . '[longitude]" id="' . $field['id'] . '-longitude" value="' . ( $meta['longitude'] ? $meta['longitude'] : $field['lng_std'] ) . '" />
|
696 |
+
</div>';
|
697 |
+
$output .= '<div class="wpgp-message lat-lng-change-message clear"><p>Lat/lng changed</p><a href="#" class="button lat-lng-update-btn button-small" data-lat="" data-lng="">Update</a></div>';
|
698 |
+
$output .= '</div><!-- /.coordinates-wrap -->
|
699 |
+
</div>';
|
700 |
+
|
701 |
+
|
702 |
+
echo $output;
|
703 |
+
|
704 |
+
|
705 |
+
}
|
706 |
+
|
707 |
+
/**
|
708 |
+
* Custom Google Geocoder field
|
709 |
+
* @since 1.0.0
|
710 |
+
* @return array
|
711 |
+
*/
|
712 |
+
function cmb_render_google_geocoder( $field, $meta ) {
|
713 |
+
|
714 |
+
$meta = wp_parse_args(
|
715 |
+
$meta, array(
|
716 |
+
'geocode' => '',
|
717 |
+
)
|
718 |
+
);
|
719 |
+
|
720 |
+
echo '<div class="autocomplete-wrap"><input type="text" name="' . $field['id'] . '[geocode]" id="' . $field['id'] . '" value="" class="search-autocomplete" /><p class="autocomplete-description">' .
|
721 |
+
sprintf( __( 'Enter the name of a place or an address above to create a map marker or %s', $this->plugin_slug ), '<a href="#" class="drop-marker button button-small">Drop a Marker</a>' ) .
|
722 |
+
'</p></div>';
|
723 |
+
|
724 |
+
//'desc' => sprintf( __( 'Set optional preconfigured styles. <a href="%s" class="snazzy-link new-window" target="_blank">Snazzy Maps</a>', $this->plugin_slug ), esc_url( 'http://snazzymaps.com' ) ),
|
725 |
+
|
726 |
+
|
727 |
+
//Markers Modal
|
728 |
+
add_thickbox();
|
729 |
+
include( 'views/markers.php' );
|
730 |
+
|
731 |
+
}
|
732 |
+
|
733 |
+
/**
|
734 |
+
* Custom Google Geocoder field
|
735 |
+
* @since 1.0.0
|
736 |
+
*/
|
737 |
+
function cmb_render_google_maps_preview( $field, $meta ) {
|
738 |
+
global $post;
|
739 |
+
$meta = wp_parse_args( $meta, array() );
|
740 |
+
$wh_value = get_post_meta( $post->ID, 'gmb_width_height', true );
|
741 |
+
$default_options = $this->get_default_map_options();
|
742 |
+
|
743 |
+
|
744 |
+
$map_height = isset( $wh_value['height'] ) ? $wh_value['height'] : $default_options['height'];
|
745 |
+
$map_width = isset( $wh_value['width'] ) ? $wh_value['width'] : $default_options['width'];
|
746 |
+
$map_width_val = isset( $wh_value['map_width_unit'] ) ? $wh_value['map_width_unit'] : $default_options['width_unit'];
|
747 |
+
|
748 |
+
$output = '<div class="places-loading wpgp-loading">Loading Places</div><div id="google-map-wrap">';
|
749 |
+
$output .= '<div id="map" style="height:' . $map_height . 'px; width:' . $map_width . $map_width_val . '"></div>';
|
750 |
+
$output .= '</div>';
|
751 |
+
$output .= '<div class="warning-message wpgp-message"></div>';
|
752 |
+
|
753 |
+
echo $output;
|
754 |
+
|
755 |
+
}
|
756 |
+
|
757 |
+
|
758 |
+
} //end class
|
admin/class-wordpress-google-maps-settings.php
ADDED
@@ -0,0 +1,422 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* CMB Theme Options
|
4 |
+
* @version 0.1.0
|
5 |
+
*/
|
6 |
+
class Google_Maps_Builder_Settings {
|
7 |
+
|
8 |
+
|
9 |
+
/**
|
10 |
+
* Array of metaboxes/fields
|
11 |
+
* @var array
|
12 |
+
*/
|
13 |
+
protected static $plugin_options = array();
|
14 |
+
|
15 |
+
public $plugin_slug;
|
16 |
+
|
17 |
+
public $options_page;
|
18 |
+
|
19 |
+
/**
|
20 |
+
* Option key, and option page slug
|
21 |
+
* @var string
|
22 |
+
*/
|
23 |
+
protected static $key = 'gmb_settings';
|
24 |
+
|
25 |
+
|
26 |
+
/**
|
27 |
+
* Constructor
|
28 |
+
* @since 0.1.0
|
29 |
+
*/
|
30 |
+
public function __construct() {
|
31 |
+
|
32 |
+
$plugin = Google_Maps_Builder::get_instance();
|
33 |
+
$this->plugin_slug = $plugin->get_plugin_slug();
|
34 |
+
$this->meta = $plugin->meta;
|
35 |
+
|
36 |
+
|
37 |
+
//Create Settings submenu
|
38 |
+
add_action( 'admin_init', array( $this, 'mninit' ) );
|
39 |
+
add_action( 'admin_menu', array( $this, 'add_page' ) );
|
40 |
+
|
41 |
+
// Load admin style sheet and JavaScript.
|
42 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_styles' ) );
|
43 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_scripts' ) );
|
44 |
+
add_action( 'wp_ajax_hide_welcome', array( $this, 'hide_welcome_callback' ) );
|
45 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_pointer_script_style' ) );
|
46 |
+
add_action( 'cmb_render_lat_lng_default', array( $this, 'cmb_render_lat_lng_default' ), 10, 2 );
|
47 |
+
|
48 |
+
//Add links/information to plugin row meta
|
49 |
+
add_filter( 'plugin_row_meta', array( $this, 'add_plugin_meta_links' ), 10, 2 );
|
50 |
+
add_filter( 'plugin_action_links', array( $this, 'add_plugin_page_links' ), 10, 2 );
|
51 |
+
|
52 |
+
}
|
53 |
+
|
54 |
+
|
55 |
+
/**
|
56 |
+
* Activation Welcome Tooltip Scripts
|
57 |
+
*
|
58 |
+
* @param $hook_suffix
|
59 |
+
*/
|
60 |
+
function enqueue_pointer_script_style( $hook_suffix ) {
|
61 |
+
|
62 |
+
// Assume pointer shouldn't be shown
|
63 |
+
$enqueue_pointer_script_style = false;
|
64 |
+
|
65 |
+
// Get array list of dismissed pointers for current user and convert it to array
|
66 |
+
$dismissed_pointers = explode( ',', get_user_meta( get_current_user_id(), 'dismissed_wp_pointers', true ) );
|
67 |
+
$key = array_search( 'gmb_welcome_pointer', $dismissed_pointers ); // $key = 2;
|
68 |
+
|
69 |
+
// Check if our pointer is not among dismissed ones
|
70 |
+
if ( ! in_array( 'gmb_welcome_pointer', $dismissed_pointers ) ) {
|
71 |
+
$enqueue_pointer_script_style = true;
|
72 |
+
|
73 |
+
// Add footer scripts using callback function
|
74 |
+
add_action( 'admin_print_footer_scripts', array( $this, 'welcome_pointer_print_scripts' ) );
|
75 |
+
}
|
76 |
+
|
77 |
+
// Enqueue pointer CSS and JS files, if needed
|
78 |
+
if ( $enqueue_pointer_script_style ) {
|
79 |
+
wp_enqueue_style( 'wp-pointer' );
|
80 |
+
wp_enqueue_script( 'wp-pointer' );
|
81 |
+
}
|
82 |
+
|
83 |
+
}
|
84 |
+
|
85 |
+
/**
|
86 |
+
* Print Activation Message
|
87 |
+
*/
|
88 |
+
function welcome_pointer_print_scripts() {
|
89 |
+
$pointer_content = '<h3>' . __( 'Welcome to the Google Maps Builder', $this->plugin_slug ) . '</h3>';
|
90 |
+
$pointer_content .= '<p>' . __( 'Thank you for using Google Maps Builder for WordPress. To stay up to date on the latest plugin updates, enhancements and news please sign up for our mailing list.', $this->plugin_slug ) . '</p>';
|
91 |
+
$pointer_content .= '<div id="mc_embed_signup" style="padding: 0 15px;"><form action="http://wordimpress.us3.list-manage2.com/subscribe/post?u=3ccb75d68bda4381e2f45794c&id=83609e2883" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate><div class="mc-field-group" style="margin: 0 0 10px;"><input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL" style="margin-right:5px;width:230px;" placeholder="my.email@wordpress.com"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div><div id="mce-responses" class="clear"><div class="response" id="mce-error-response" style="display:none"></div><div class="response" id="mce-success-response" style="display:none"></div></div><div style="position: absolute; left: -5000px;"><input type="text" name="b_3ccb75d68bda4381e2f45794c_83609e2883" value=""></div></form></div>';
|
92 |
+
?>
|
93 |
+
|
94 |
+
<script type="text/javascript">
|
95 |
+
//<![CDATA[
|
96 |
+
jQuery( document ).ready( function ( $ ) {
|
97 |
+
$( '#menu-posts-google_maps' ).pointer( {
|
98 |
+
content : '<?php echo $pointer_content; ?>',
|
99 |
+
position : {
|
100 |
+
edge : 'left', // arrow direction
|
101 |
+
align: 'center' // vertical alignment
|
102 |
+
},
|
103 |
+
pointerWidth: 350,
|
104 |
+
close : function () {
|
105 |
+
$.post( ajaxurl, {
|
106 |
+
pointer: 'gmb_welcome_pointer', // pointer ID
|
107 |
+
action : 'dismiss-wp-pointer'
|
108 |
+
} );
|
109 |
+
}
|
110 |
+
} ).pointer( 'open' );
|
111 |
+
} );
|
112 |
+
//]]>
|
113 |
+
</script>
|
114 |
+
|
115 |
+
<?php
|
116 |
+
}
|
117 |
+
|
118 |
+
/**
|
119 |
+
* Register our setting to WP
|
120 |
+
* @since 0.1.0
|
121 |
+
*/
|
122 |
+
public function mninit() {
|
123 |
+
|
124 |
+
register_setting( self::$key, self::$key );
|
125 |
+
}
|
126 |
+
|
127 |
+
/**
|
128 |
+
* Add menu options page
|
129 |
+
* @since 1.0.0
|
130 |
+
*/
|
131 |
+
public function add_page() {
|
132 |
+
|
133 |
+
$this->options_page = add_submenu_page(
|
134 |
+
'edit.php?post_type=google_maps',
|
135 |
+
__( 'Google Maps Builder Settings', $this->plugin_slug ),
|
136 |
+
__( 'Settings', $this->plugin_slug ),
|
137 |
+
'manage_options',
|
138 |
+
self::$key,
|
139 |
+
array( $this, 'admin_page_display' )
|
140 |
+
);
|
141 |
+
|
142 |
+
}
|
143 |
+
|
144 |
+
/**
|
145 |
+
* Register and enqueue admin-specific style sheet.
|
146 |
+
*
|
147 |
+
*
|
148 |
+
* @since 1.0.0
|
149 |
+
*
|
150 |
+
* @param $hook
|
151 |
+
*/
|
152 |
+
public function enqueue_admin_styles( $hook ) {
|
153 |
+
|
154 |
+
$suffix = defined( 'GMB_DEBUG' ) && GMB_DEBUG ? '' : '.min';
|
155 |
+
$screen = get_current_screen();
|
156 |
+
|
157 |
+
//Only enqueue scripts for Setting screen
|
158 |
+
if ( $this->options_page == $screen->id ) {
|
159 |
+
|
160 |
+
wp_enqueue_style( $this->plugin_slug . '-settings-grid', plugins_url( 'assets/css/grid' . $suffix . '.css', __FILE__ ), array(), Google_Maps_Builder::VERSION );
|
161 |
+
wp_enqueue_style( $this->plugin_slug . '-settings-styles', plugins_url( 'assets/css/admin-settings' . $suffix . '.css', __FILE__ ), array(), Google_Maps_Builder::VERSION );
|
162 |
+
|
163 |
+
}
|
164 |
+
|
165 |
+
|
166 |
+
}
|
167 |
+
|
168 |
+
/**
|
169 |
+
* Register and enqueue admin-specific JavaScript
|
170 |
+
*
|
171 |
+
*
|
172 |
+
* @since 1.0.0
|
173 |
+
*
|
174 |
+
* @param $hook
|
175 |
+
*/
|
176 |
+
public function enqueue_admin_scripts( $hook ) {
|
177 |
+
global $post;
|
178 |
+
$suffix = defined( 'GMB_DEBUG' ) && GMB_DEBUG ? '' : '.min';
|
179 |
+
$screen = get_current_screen();
|
180 |
+
|
181 |
+
//Only enqueue scripts for Setting screen
|
182 |
+
if ( $this->options_page == $screen->id ) {
|
183 |
+
|
184 |
+
wp_enqueue_script( $this->plugin_slug . '-admin-settings', plugins_url( 'assets/js/admin-settings' . $suffix . '.js', __FILE__ ), array( 'jquery' ), Google_Maps_Builder::VERSION );
|
185 |
+
|
186 |
+
}
|
187 |
+
|
188 |
+
|
189 |
+
}
|
190 |
+
|
191 |
+
|
192 |
+
/**
|
193 |
+
* Hide the Settings welcome on click
|
194 |
+
*
|
195 |
+
* Sets a user meta key that once set
|
196 |
+
*
|
197 |
+
*/
|
198 |
+
public function hide_welcome_callback() {
|
199 |
+
global $current_user;
|
200 |
+
$user_id = $current_user->ID;
|
201 |
+
add_user_meta( $user_id, 'gmb_hide_welcome', 'true', true );
|
202 |
+
wp_die(); // ajax call must die to avoid trailing 0 in your response
|
203 |
+
}
|
204 |
+
|
205 |
+
|
206 |
+
/**
|
207 |
+
* Admin page markup. Mostly handled by CMB
|
208 |
+
* @since 0.1.0
|
209 |
+
*/
|
210 |
+
public function admin_page_display() {
|
211 |
+
|
212 |
+
include( 'views/settings-page.php' );
|
213 |
+
|
214 |
+
}
|
215 |
+
|
216 |
+
/**
|
217 |
+
* General Option Fields
|
218 |
+
* Defines the plugin option metabox and field configuration
|
219 |
+
* @since 1.0.0
|
220 |
+
* @return array
|
221 |
+
*/
|
222 |
+
public function general_option_fields() {
|
223 |
+
|
224 |
+
// Only need to initiate the array once per page-load
|
225 |
+
if ( ! empty( self::$plugin_options ) ) {
|
226 |
+
return self::$plugin_options;
|
227 |
+
}
|
228 |
+
|
229 |
+
$prefix = 'gmb_';
|
230 |
+
|
231 |
+
self::$plugin_options = array(
|
232 |
+
'id' => 'plugin_options',
|
233 |
+
'show_on' => array( 'key' => 'options-page', 'value' => array( self::$key, ), ),
|
234 |
+
'show_names' => true,
|
235 |
+
'fields' => array(
|
236 |
+
array(
|
237 |
+
'name' => __( 'Post Type Slug', $this->plugin_slug ),
|
238 |
+
'desc' => sprintf( __( 'Customize the default slug for this post type. <a href="%s">Resave (flush) permalinks</a> after customizing.', $this->plugin_slug ), esc_url( '/wp-admin/options-permalink.php' ) ),
|
239 |
+
'default' => 'google-maps',
|
240 |
+
'id' => $prefix . 'custom_slug',
|
241 |
+
'type' => 'text_small'
|
242 |
+
),
|
243 |
+
array(
|
244 |
+
'name' => __( 'Menu Position', $this->plugin_slug ),
|
245 |
+
'desc' => sprintf( __( 'Set the menu position for Google Maps Builder. See the <a href="%s" class="new-window">menu_position</a> arg.', $this->plugin_slug ), esc_url( 'http://codex.wordpress.org/Function_Reference/register_post_type#Arguments' ) ),
|
246 |
+
'default' => '25',
|
247 |
+
'id' => $prefix . 'menu_position',
|
248 |
+
'type' => 'text_small'
|
249 |
+
),
|
250 |
+
array(
|
251 |
+
'name' => __( 'Has Archive', $this->plugin_slug ),
|
252 |
+
'id' => $prefix . 'has_archive',
|
253 |
+
'desc' => sprintf( __( 'Controls the post type archive page. See <a href="%s">Resave (flush) permalinks</a> after customizing.', $this->plugin_slug ), esc_url( '/wp-admin/options-permalink.php' ) ),
|
254 |
+
'type' => 'radio_inline',
|
255 |
+
'options' => array(
|
256 |
+
'true' => __( 'Yes', 'cmb' ),
|
257 |
+
'false' => __( 'No', 'cmb' ),
|
258 |
+
),
|
259 |
+
),
|
260 |
+
),
|
261 |
+
);
|
262 |
+
|
263 |
+
return self::$plugin_options;
|
264 |
+
|
265 |
+
}
|
266 |
+
|
267 |
+
/**
|
268 |
+
* Map Option Fields
|
269 |
+
* Defines the plugin option metabox and field configuration
|
270 |
+
* @since 1.0.0
|
271 |
+
* @return array
|
272 |
+
*/
|
273 |
+
public function map_option_fields() {
|
274 |
+
|
275 |
+
// Only need to initiate the array once per page-load
|
276 |
+
if ( ! empty( self::$plugin_options ) ) {
|
277 |
+
return self::$plugin_options;
|
278 |
+
}
|
279 |
+
|
280 |
+
$prefix = 'gmb_';
|
281 |
+
|
282 |
+
self::$plugin_options = array(
|
283 |
+
'id' => 'plugin_options',
|
284 |
+
'show_on' => array( 'key' => 'options-page', 'value' => array( self::$key, ), ),
|
285 |
+
'show_names' => true,
|
286 |
+
'fields' => array(
|
287 |
+
array(
|
288 |
+
'name' => __( 'Map Size', $this->plugin_slug ),
|
289 |
+
'id' => $prefix . 'width_height',
|
290 |
+
'type' => 'width_height',
|
291 |
+
'width_std' => '100',
|
292 |
+
'width_unit_std' => '%',
|
293 |
+
'height_std' => '600',
|
294 |
+
'lat_std' => '32.7153292',
|
295 |
+
'lng_std' => '-117.15725509',
|
296 |
+
'desc' => '',
|
297 |
+
),
|
298 |
+
array(
|
299 |
+
'name' => __( 'Map Location', $this->plugin_slug ),
|
300 |
+
'id' => $prefix . 'lat_lng',
|
301 |
+
'type' => 'lat_lng_default',
|
302 |
+
'lat_std' => '32.7153292',
|
303 |
+
'lng_std' => '-117.15725509',
|
304 |
+
'desc' => '',
|
305 |
+
),
|
306 |
+
array(
|
307 |
+
'name' => __( 'Places API Key', $this->plugin_slug ),
|
308 |
+
'desc' => sprintf( __( 'API keys are manage through the <a href="%1$s" class="new-window" target="_blank" class="new-window">Google API Console</a>. For more information please see <a href="%2$s" class="new-window" title="Google Places API Introduction">this article</a>.', $this->plugin_slug ), esc_url( 'https://code.google.com/apis/console/?noredirect' ), esc_url( 'https://developers.google.com/places/documentation/#Authentication' ) ),
|
309 |
+
'id' => $prefix . 'api_key',
|
310 |
+
'type' => 'text',
|
311 |
+
),
|
312 |
+
),
|
313 |
+
);
|
314 |
+
|
315 |
+
return self::$plugin_options;
|
316 |
+
|
317 |
+
}
|
318 |
+
|
319 |
+
/**
|
320 |
+
* CMB Lat Lng
|
321 |
+
*
|
322 |
+
* Custom CMB field for Gmap latitude and longitude
|
323 |
+
*
|
324 |
+
* @param $field
|
325 |
+
* @param $meta
|
326 |
+
*/
|
327 |
+
function cmb_render_lat_lng_default( $field, $meta ) {
|
328 |
+
|
329 |
+
$meta = wp_parse_args(
|
330 |
+
$meta, array(
|
331 |
+
'geolocate_map' => 'yes',
|
332 |
+
'latitude' => '',
|
333 |
+
'longitude' => '',
|
334 |
+
)
|
335 |
+
);
|
336 |
+
|
337 |
+
//Geolocate
|
338 |
+
$output = '<div id="width_wrap" class="clear">';
|
339 |
+
$output .= '<label class="geocode-label size-label">' . __( 'Geolocate Position', $this->plugin_slug ) . ':</label>';
|
340 |
+
$output .= '<div id="size_labels_wrap" class="geolocate-radio-wrap">';
|
341 |
+
$output .= '<input id="geolocate_map_yes" type="radio" name="' . $field['id'] . '[geolocate_map]" class="geolocate_map_radio radio-left" value="yes" ' . ( $meta['geolocate_map'] === 'yes' ? 'checked="checked"' : '' ) . '><label class="yes-label label-left">' . __( 'Yes', $this->plugin_slug ) . '</label>';
|
342 |
+
|
343 |
+
$output .= '<input id="geolocate_map_no" type="radio" name="' . $field['id'] . '[geolocate_map]" class="geolocate_map_radio radio-left" value="no" ' . ( $meta['geolocate_map'] === 'no' ? 'checked="checked"' : '' ) . ' ><label class="no-label label-left">' . __( 'No', $this->plugin_slug ) . '</label>';
|
344 |
+
$output .= '</div>';
|
345 |
+
|
346 |
+
//lat_lng
|
347 |
+
$output .= '<div id="lat-lng-wrap"><div class="coordinates-wrap clear">';
|
348 |
+
$output .= '<div class="lat-lng-wrap lat-wrap clear"><span>Latitude: </span>
|
349 |
+
<input type="text" class="regular-text latitude" name="' . $field['id'] . '[latitude]" id="' . $field['id'] . '-latitude" value="' . ( $meta['latitude'] ? $meta['latitude'] : $field['lat_std'] ) . '" />
|
350 |
+
</div>
|
351 |
+
<div class="lat-lng-wrap lng-wrap clear"><span>Longitude: </span>
|
352 |
+
<input type="text" class="regular-text longitude" name="' . $field['id'] . '[longitude]" id="' . $field['id'] . '-longitude" value="' . ( $meta['longitude'] ? $meta['longitude'] : $field['lng_std'] ) . '" />
|
353 |
+
</div>';
|
354 |
+
$output .= '<p class="small-desc">' . sprintf( __( 'For quick lat/lng lookup use <a href="%s" class="new-window" target="_blank">this service</a>', $this->plugin_slug ), esc_url( 'http://www.latlong.net/' ) ) . '</p>';
|
355 |
+
$output .= '</div><!-- /.search-coordinates-wrap -->
|
356 |
+
</div>';
|
357 |
+
|
358 |
+
|
359 |
+
echo $output;
|
360 |
+
|
361 |
+
|
362 |
+
}
|
363 |
+
|
364 |
+
|
365 |
+
/**
|
366 |
+
* Make public the protected $key variable.
|
367 |
+
* @since 0.1.0
|
368 |
+
* @return string Option key
|
369 |
+
*/
|
370 |
+
public static function key() {
|
371 |
+
return self::$key;
|
372 |
+
}
|
373 |
+
|
374 |
+
|
375 |
+
/**
|
376 |
+
* Add links to Plugin listings view
|
377 |
+
*
|
378 |
+
* @param $links
|
379 |
+
*
|
380 |
+
* @return mixed
|
381 |
+
*/
|
382 |
+
function add_plugin_page_links( $links, $file ) {
|
383 |
+
|
384 |
+
if ( $file == GMB_PLUGIN_BASE ) {
|
385 |
+
|
386 |
+
// Add Widget Page link to our plugin
|
387 |
+
$settings_link = '<a href="edit.php?post_type=google_maps&page=' . self::$key . '" title="' . __( 'Visit the Google Maps Builder plugin settings page', $this->plugin_slug ) . '">' . __( 'Settings', $this->plugin_slug ) . '</a>';
|
388 |
+
array_unshift( $links, $settings_link );
|
389 |
+
|
390 |
+
}
|
391 |
+
|
392 |
+
return $links;
|
393 |
+
}
|
394 |
+
|
395 |
+
function add_plugin_meta_links( $meta, $file ) {
|
396 |
+
|
397 |
+
if ( $file == GMB_PLUGIN_BASE ) {
|
398 |
+
$meta[] = "<a href='http://wordpress.org/support/view/plugin-reviews/google-maps-builder' target='_blank' title='" . __( 'Rate Google Maps Builder on WordPress.org', $this->plugin_slug ) . "'>" . __( 'Rate Plugin', $this->plugin_slug ) . "</a>";
|
399 |
+
$meta[] = '<a href="http://wordpress.org/support/plugin/google-maps-builder/" target="_blank" title="' . __( 'Get plugin support via the WordPress community', $this->plugin_slug ) . '">' . __( 'Support', $this->plugin_slug ) . '</a>';
|
400 |
+
$meta[] = __( 'Thank You for using Google Maps Builder', $this->plugin_slug );
|
401 |
+
}
|
402 |
+
|
403 |
+
return $meta;
|
404 |
+
}
|
405 |
+
|
406 |
+
|
407 |
+
}
|
408 |
+
|
409 |
+
// Get it started
|
410 |
+
$Google_Maps_Builder_Settings = new Google_Maps_Builder_Settings();
|
411 |
+
|
412 |
+
/**
|
413 |
+
* Wrapper function around cmb_get_option
|
414 |
+
* @since 0.1.0
|
415 |
+
*
|
416 |
+
* @param string $key Options array key
|
417 |
+
*
|
418 |
+
* @return mixed Option value
|
419 |
+
*/
|
420 |
+
function gmb_get_option( $key = '' ) {
|
421 |
+
return cmb_get_option( Google_Maps_Builder_Settings::key(), $key );
|
422 |
+
}
|
admin/includes/index.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php // Silence is golden
|
admin/includes/tooltips/jquery.qtip.css
ADDED
@@ -0,0 +1,513 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* qTip2 - Pretty powerful tooltips - v2.2.0
|
3 |
+
* http://qtip2.com
|
4 |
+
*
|
5 |
+
* Copyright (c) 2014 Craig Michael Thompson
|
6 |
+
* Released under the MIT, GPL licenses
|
7 |
+
* http://jquery.org/license
|
8 |
+
*
|
9 |
+
* Date: Sun Mar 16 2014 07:12 EDT-0400
|
10 |
+
* Plugins: tips viewport imagemap svg modal
|
11 |
+
* Styles: css3
|
12 |
+
*/
|
13 |
+
.qtip{
|
14 |
+
position: absolute;
|
15 |
+
left: -28000px;
|
16 |
+
top: -28000px;
|
17 |
+
display: none;
|
18 |
+
|
19 |
+
max-width: 280px;
|
20 |
+
min-width: 50px;
|
21 |
+
|
22 |
+
font-size: 10.5px;
|
23 |
+
line-height: 12px;
|
24 |
+
|
25 |
+
direction: ltr;
|
26 |
+
|
27 |
+
box-shadow: none;
|
28 |
+
padding: 0;
|
29 |
+
}
|
30 |
+
|
31 |
+
.qtip-content{
|
32 |
+
position: relative;
|
33 |
+
padding: 5px 9px;
|
34 |
+
overflow: hidden;
|
35 |
+
|
36 |
+
text-align: left;
|
37 |
+
word-wrap: break-word;
|
38 |
+
}
|
39 |
+
|
40 |
+
.qtip-titlebar{
|
41 |
+
position: relative;
|
42 |
+
padding: 5px 35px 5px 10px;
|
43 |
+
overflow: hidden;
|
44 |
+
|
45 |
+
border-width: 0 0 1px;
|
46 |
+
font-weight: bold;
|
47 |
+
}
|
48 |
+
|
49 |
+
.qtip-titlebar + .qtip-content{ border-top-width: 0 !important; }
|
50 |
+
|
51 |
+
/* Default close button class */
|
52 |
+
.qtip-close{
|
53 |
+
position: absolute;
|
54 |
+
right: -9px; top: -9px;
|
55 |
+
|
56 |
+
cursor: pointer;
|
57 |
+
outline: medium none;
|
58 |
+
|
59 |
+
border-width: 1px;
|
60 |
+
border-style: solid;
|
61 |
+
border-color: transparent;
|
62 |
+
}
|
63 |
+
|
64 |
+
.qtip-titlebar .qtip-close{
|
65 |
+
right: 4px; top: 50%;
|
66 |
+
margin-top: -9px;
|
67 |
+
}
|
68 |
+
|
69 |
+
* html .qtip-titlebar .qtip-close{ top: 16px; } /* IE fix */
|
70 |
+
|
71 |
+
.qtip-titlebar .ui-icon,
|
72 |
+
.qtip-icon .ui-icon{
|
73 |
+
display: block;
|
74 |
+
text-indent: -1000em;
|
75 |
+
direction: ltr;
|
76 |
+
}
|
77 |
+
|
78 |
+
.qtip-icon, .qtip-icon .ui-icon{
|
79 |
+
-moz-border-radius: 3px;
|
80 |
+
-webkit-border-radius: 3px;
|
81 |
+
border-radius: 3px;
|
82 |
+
text-decoration: none;
|
83 |
+
}
|
84 |
+
|
85 |
+
.qtip-icon .ui-icon{
|
86 |
+
width: 18px;
|
87 |
+
height: 14px;
|
88 |
+
|
89 |
+
line-height: 14px;
|
90 |
+
text-align: center;
|
91 |
+
text-indent: 0;
|
92 |
+
font: normal bold 10px/13px Tahoma,sans-serif;
|
93 |
+
|
94 |
+
color: inherit;
|
95 |
+
background: transparent none no-repeat -100em -100em;
|
96 |
+
}
|
97 |
+
|
98 |
+
/* Applied to 'focused' tooltips e.g. most recently displayed/interacted with */
|
99 |
+
.qtip-focus{}
|
100 |
+
|
101 |
+
/* Applied on hover of tooltips i.e. added/removed on mouseenter/mouseleave respectively */
|
102 |
+
.qtip-hover{}
|
103 |
+
|
104 |
+
/* Default tooltip style */
|
105 |
+
.qtip-default{
|
106 |
+
border-width: 1px;
|
107 |
+
border-style: solid;
|
108 |
+
border-color: #F1D031;
|
109 |
+
|
110 |
+
background-color: #FFFFA3;
|
111 |
+
color: #555;
|
112 |
+
}
|
113 |
+
|
114 |
+
.qtip-default .qtip-titlebar{
|
115 |
+
background-color: #FFEF93;
|
116 |
+
}
|
117 |
+
|
118 |
+
.qtip-default .qtip-icon{
|
119 |
+
border-color: #CCC;
|
120 |
+
background: #F1F1F1;
|
121 |
+
color: #777;
|
122 |
+
}
|
123 |
+
|
124 |
+
.qtip-default .qtip-titlebar .qtip-close{
|
125 |
+
border-color: #AAA;
|
126 |
+
color: #111;
|
127 |
+
}
|
128 |
+
|
129 |
+
|
130 |
+
|
131 |
+
.qtip-shadow{
|
132 |
+
-webkit-box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.15);
|
133 |
+
-moz-box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.15);
|
134 |
+
box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.15);
|
135 |
+
}
|
136 |
+
|
137 |
+
/* Add rounded corners to your tooltips in: FF3+, Chrome 2+, Opera 10.6+, IE9+, Safari 2+ */
|
138 |
+
.qtip-rounded,
|
139 |
+
.qtip-tipsy,
|
140 |
+
.qtip-bootstrap{
|
141 |
+
-moz-border-radius: 5px;
|
142 |
+
-webkit-border-radius: 5px;
|
143 |
+
border-radius: 5px;
|
144 |
+
}
|
145 |
+
|
146 |
+
.qtip-rounded .qtip-titlebar{
|
147 |
+
-moz-border-radius: 4px 4px 0 0;
|
148 |
+
-webkit-border-radius: 4px 4px 0 0;
|
149 |
+
border-radius: 4px 4px 0 0;
|
150 |
+
}
|
151 |
+
|
152 |
+
/* Youtube tooltip style */
|
153 |
+
.qtip-youtube{
|
154 |
+
-moz-border-radius: 2px;
|
155 |
+
-webkit-border-radius: 2px;
|
156 |
+
border-radius: 2px;
|
157 |
+
|
158 |
+
-webkit-box-shadow: 0 0 3px #333;
|
159 |
+
-moz-box-shadow: 0 0 3px #333;
|
160 |
+
box-shadow: 0 0 3px #333;
|
161 |
+
|
162 |
+
color: white;
|
163 |
+
border-width: 0;
|
164 |
+
|
165 |
+
background: #4A4A4A;
|
166 |
+
background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0,#4A4A4A),color-stop(100%,black));
|
167 |
+
background-image: -webkit-linear-gradient(top,#4A4A4A 0,black 100%);
|
168 |
+
background-image: -moz-linear-gradient(top,#4A4A4A 0,black 100%);
|
169 |
+
background-image: -ms-linear-gradient(top,#4A4A4A 0,black 100%);
|
170 |
+
background-image: -o-linear-gradient(top,#4A4A4A 0,black 100%);
|
171 |
+
}
|
172 |
+
|
173 |
+
.qtip-youtube .qtip-titlebar{
|
174 |
+
background-color: #4A4A4A;
|
175 |
+
background-color: rgba(0,0,0,0);
|
176 |
+
}
|
177 |
+
|
178 |
+
.qtip-youtube .qtip-content{
|
179 |
+
padding: .75em;
|
180 |
+
font: 12px arial,sans-serif;
|
181 |
+
|
182 |
+
filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#4a4a4a,EndColorStr=#000000);
|
183 |
+
-ms-filter: "progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#4a4a4a,EndColorStr=#000000);";
|
184 |
+
}
|
185 |
+
|
186 |
+
.qtip-youtube .qtip-icon{
|
187 |
+
border-color: #222;
|
188 |
+
}
|
189 |
+
|
190 |
+
.qtip-youtube .qtip-titlebar .ui-state-hover{
|
191 |
+
border-color: #303030;
|
192 |
+
}
|
193 |
+
|
194 |
+
|
195 |
+
/* jQuery TOOLS Tooltip style */
|
196 |
+
.qtip-jtools{
|
197 |
+
background: #232323;
|
198 |
+
background: rgba(0, 0, 0, 0.7);
|
199 |
+
background-image: -webkit-gradient(linear, left top, left bottom, from(#717171), to(#232323));
|
200 |
+
background-image: -moz-linear-gradient(top, #717171, #232323);
|
201 |
+
background-image: -webkit-linear-gradient(top, #717171, #232323);
|
202 |
+
background-image: -ms-linear-gradient(top, #717171, #232323);
|
203 |
+
background-image: -o-linear-gradient(top, #717171, #232323);
|
204 |
+
|
205 |
+
border: 2px solid #ddd;
|
206 |
+
border: 2px solid rgba(241,241,241,1);
|
207 |
+
|
208 |
+
-moz-border-radius: 2px;
|
209 |
+
-webkit-border-radius: 2px;
|
210 |
+
border-radius: 2px;
|
211 |
+
|
212 |
+
-webkit-box-shadow: 0 0 12px #333;
|
213 |
+
-moz-box-shadow: 0 0 12px #333;
|
214 |
+
box-shadow: 0 0 12px #333;
|
215 |
+
}
|
216 |
+
|
217 |
+
/* IE Specific */
|
218 |
+
.qtip-jtools .qtip-titlebar{
|
219 |
+
background-color: transparent;
|
220 |
+
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A);
|
221 |
+
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A)";
|
222 |
+
}
|
223 |
+
.qtip-jtools .qtip-content{
|
224 |
+
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323);
|
225 |
+
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323)";
|
226 |
+
}
|
227 |
+
|
228 |
+
.qtip-jtools .qtip-titlebar,
|
229 |
+
.qtip-jtools .qtip-content{
|
230 |
+
background: transparent;
|
231 |
+
color: white;
|
232 |
+
border: 0 dashed transparent;
|
233 |
+
}
|
234 |
+
|
235 |
+
.qtip-jtools .qtip-icon{
|
236 |
+
border-color: #555;
|
237 |
+
}
|
238 |
+
|
239 |
+
.qtip-jtools .qtip-titlebar .ui-state-hover{
|
240 |
+
border-color: #333;
|
241 |
+
}
|
242 |
+
|
243 |
+
|
244 |
+
/* Cluetip style */
|
245 |
+
.qtip-cluetip{
|
246 |
+
-webkit-box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.4);
|
247 |
+
-moz-box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.4);
|
248 |
+
box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.4);
|
249 |
+
|
250 |
+
background-color: #D9D9C2;
|
251 |
+
color: #111;
|
252 |
+
border: 0 dashed transparent;
|
253 |
+
}
|
254 |
+
|
255 |
+
.qtip-cluetip .qtip-titlebar{
|
256 |
+
background-color: #87876A;
|
257 |
+
color: white;
|
258 |
+
border: 0 dashed transparent;
|
259 |
+
}
|
260 |
+
|
261 |
+
.qtip-cluetip .qtip-icon{
|
262 |
+
border-color: #808064;
|
263 |
+
}
|
264 |
+
|
265 |
+
.qtip-cluetip .qtip-titlebar .ui-state-hover{
|
266 |
+
border-color: #696952;
|
267 |
+
color: #696952;
|
268 |
+
}
|
269 |
+
|
270 |
+
|
271 |
+
/* Tipsy style */
|
272 |
+
.qtip-tipsy{
|
273 |
+
background: black;
|
274 |
+
background: rgba(0, 0, 0, .87);
|
275 |
+
|
276 |
+
color: white;
|
277 |
+
border: 0 solid transparent;
|
278 |
+
|
279 |
+
font-size: 11px;
|
280 |
+
font-family: 'Lucida Grande', sans-serif;
|
281 |
+
font-weight: bold;
|
282 |
+
line-height: 16px;
|
283 |
+
text-shadow: 0 1px black;
|
284 |
+
}
|
285 |
+
|
286 |
+
.qtip-tipsy .qtip-titlebar{
|
287 |
+
padding: 6px 35px 0 10px;
|
288 |
+
background-color: transparent;
|
289 |
+
}
|
290 |
+
|
291 |
+
.qtip-tipsy .qtip-content{
|
292 |
+
padding: 6px 10px;
|
293 |
+
}
|
294 |
+
|
295 |
+
.qtip-tipsy .qtip-icon{
|
296 |
+
border-color: #222;
|
297 |
+
text-shadow: none;
|
298 |
+
}
|
299 |
+
|
300 |
+
.qtip-tipsy .qtip-titlebar .ui-state-hover{
|
301 |
+
border-color: #303030;
|
302 |
+
}
|
303 |
+
|
304 |
+
|
305 |
+
/* Tipped style */
|
306 |
+
.qtip-tipped{
|
307 |
+
border: 3px solid #959FA9;
|
308 |
+
|
309 |
+
-moz-border-radius: 3px;
|
310 |
+
-webkit-border-radius: 3px;
|
311 |
+
border-radius: 3px;
|
312 |
+
|
313 |
+
background-color: #F9F9F9;
|
314 |
+
color: #454545;
|
315 |
+
|
316 |
+
font-weight: normal;
|
317 |
+
font-family: serif;
|
318 |
+
}
|
319 |
+
|
320 |
+
.qtip-tipped .qtip-titlebar{
|
321 |
+
border-bottom-width: 0;
|
322 |
+
|
323 |
+
color: white;
|
324 |
+
background: #3A79B8;
|
325 |
+
background-image: -webkit-gradient(linear, left top, left bottom, from(#3A79B8), to(#2E629D));
|
326 |
+
background-image: -webkit-linear-gradient(top, #3A79B8, #2E629D);
|
327 |
+
background-image: -moz-linear-gradient(top, #3A79B8, #2E629D);
|
328 |
+
background-image: -ms-linear-gradient(top, #3A79B8, #2E629D);
|
329 |
+
background-image: -o-linear-gradient(top, #3A79B8, #2E629D);
|
330 |
+
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D);
|
331 |
+
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D)";
|
332 |
+
}
|
333 |
+
|
334 |
+
.qtip-tipped .qtip-icon{
|
335 |
+
border: 2px solid #285589;
|
336 |
+
background: #285589;
|
337 |
+
}
|
338 |
+
|
339 |
+
.qtip-tipped .qtip-icon .ui-icon{
|
340 |
+
background-color: #FBFBFB;
|
341 |
+
color: #555;
|
342 |
+
}
|
343 |
+
|
344 |
+
|
345 |
+
/**
|
346 |
+
* Twitter Bootstrap style.
|
347 |
+
*
|
348 |
+
* Tested with IE 8, IE 9, Chrome 18, Firefox 9, Opera 11.
|
349 |
+
* Does not work with IE 7.
|
350 |
+
*/
|
351 |
+
.qtip-bootstrap{
|
352 |
+
/** Taken from Bootstrap body */
|
353 |
+
font-size: 14px;
|
354 |
+
line-height: 20px;
|
355 |
+
color: #333333;
|
356 |
+
|
357 |
+
/** Taken from Bootstrap .popover */
|
358 |
+
padding: 1px;
|
359 |
+
background-color: #ffffff;
|
360 |
+
border: 1px solid #ccc;
|
361 |
+
border: 1px solid rgba(0, 0, 0, 0.2);
|
362 |
+
-webkit-border-radius: 6px;
|
363 |
+
-moz-border-radius: 6px;
|
364 |
+
border-radius: 6px;
|
365 |
+
-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
|
366 |
+
-moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
|
367 |
+
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
|
368 |
+
-webkit-background-clip: padding-box;
|
369 |
+
-moz-background-clip: padding;
|
370 |
+
background-clip: padding-box;
|
371 |
+
}
|
372 |
+
|
373 |
+
.qtip-bootstrap .qtip-titlebar{
|
374 |
+
/** Taken from Bootstrap .popover-title */
|
375 |
+
padding: 8px 14px;
|
376 |
+
margin: 0;
|
377 |
+
font-size: 14px;
|
378 |
+
font-weight: normal;
|
379 |
+
line-height: 18px;
|
380 |
+
background-color: #f7f7f7;
|
381 |
+
border-bottom: 1px solid #ebebeb;
|
382 |
+
-webkit-border-radius: 5px 5px 0 0;
|
383 |
+
-moz-border-radius: 5px 5px 0 0;
|
384 |
+
border-radius: 5px 5px 0 0;
|
385 |
+
}
|
386 |
+
|
387 |
+
.qtip-bootstrap .qtip-titlebar .qtip-close{
|
388 |
+
/**
|
389 |
+
* Overrides qTip2:
|
390 |
+
* .qtip-titlebar .qtip-close{
|
391 |
+
* [...]
|
392 |
+
* right: 4px;
|
393 |
+
* top: 50%;
|
394 |
+
* [...]
|
395 |
+
* border-style: solid;
|
396 |
+
* }
|
397 |
+
*/
|
398 |
+
right: 11px;
|
399 |
+
top: 45%;
|
400 |
+
border-style: none;
|
401 |
+
}
|
402 |
+
|
403 |
+
.qtip-bootstrap .qtip-content{
|
404 |
+
/** Taken from Bootstrap .popover-content */
|
405 |
+
padding: 9px 14px;
|
406 |
+
}
|
407 |
+
|
408 |
+
.qtip-bootstrap .qtip-icon{
|
409 |
+
/**
|
410 |
+
* Overrides qTip2:
|
411 |
+
* .qtip-default .qtip-icon {
|
412 |
+
* border-color: #CCC;
|
413 |
+
* background: #F1F1F1;
|
414 |
+
* color: #777;
|
415 |
+
* }
|
416 |
+
*/
|
417 |
+
background: transparent;
|
418 |
+
}
|
419 |
+
|
420 |
+
.qtip-bootstrap .qtip-icon .ui-icon{
|
421 |
+
/**
|
422 |
+
* Overrides qTip2:
|
423 |
+
* .qtip-icon .ui-icon{
|
424 |
+
* width: 18px;
|
425 |
+
* height: 14px;
|
426 |
+
* }
|
427 |
+
*/
|
428 |
+
width: auto;
|
429 |
+
height: auto;
|
430 |
+
|
431 |
+
/* Taken from Bootstrap .close */
|
432 |
+
float: right;
|
433 |
+
font-size: 20px;
|
434 |
+
font-weight: bold;
|
435 |
+
line-height: 18px;
|
436 |
+
color: #000000;
|
437 |
+
text-shadow: 0 1px 0 #ffffff;
|
438 |
+
opacity: 0.2;
|
439 |
+
filter: alpha(opacity=20);
|
440 |
+
}
|
441 |
+
|
442 |
+
.qtip-bootstrap .qtip-icon .ui-icon:hover{
|
443 |
+
/* Taken from Bootstrap .close:hover */
|
444 |
+
color: #000000;
|
445 |
+
text-decoration: none;
|
446 |
+
cursor: pointer;
|
447 |
+
opacity: 0.4;
|
448 |
+
filter: alpha(opacity=40);
|
449 |
+
}
|
450 |
+
|
451 |
+
|
452 |
+
/* IE9 fix - removes all filters */
|
453 |
+
.qtip:not(.ie9haxors) div.qtip-content,
|
454 |
+
.qtip:not(.ie9haxors) div.qtip-titlebar{
|
455 |
+
filter: none;
|
456 |
+
-ms-filter: none;
|
457 |
+
}
|
458 |
+
|
459 |
+
|
460 |
+
|
461 |
+
.qtip .qtip-tip{
|
462 |
+
margin: 0 auto;
|
463 |
+
overflow: hidden;
|
464 |
+
z-index: 10;
|
465 |
+
|
466 |
+
}
|
467 |
+
|
468 |
+
/* Opera bug #357 - Incorrect tip position
|
469 |
+
https://github.com/Craga89/qTip2/issues/367 */
|
470 |
+
x:-o-prefocus, .qtip .qtip-tip{
|
471 |
+
visibility: hidden;
|
472 |
+
}
|
473 |
+
|
474 |
+
.qtip .qtip-tip,
|
475 |
+
.qtip .qtip-tip .qtip-vml,
|
476 |
+
.qtip .qtip-tip canvas{
|
477 |
+
position: absolute;
|
478 |
+
|
479 |
+
color: #123456;
|
480 |
+
background: transparent;
|
481 |
+
border: 0 dashed transparent;
|
482 |
+
}
|
483 |
+
|
484 |
+
.qtip .qtip-tip canvas{ top: 0; left: 0; }
|
485 |
+
|
486 |
+
.qtip .qtip-tip .qtip-vml{
|
487 |
+
behavior: url(#default#VML);
|
488 |
+
display: inline-block;
|
489 |
+
visibility: visible;
|
490 |
+
}
|
491 |
+
|
492 |
+
#qtip-overlay{
|
493 |
+
position: fixed;
|
494 |
+
left: 0; top: 0;
|
495 |
+
width: 100%; height: 100%;
|
496 |
+
}
|
497 |
+
|
498 |
+
/* Applied to modals with show.modal.blur set to true */
|
499 |
+
#qtip-overlay.blurs{ cursor: pointer; }
|
500 |
+
|
501 |
+
/* Change opacity of overlay here */
|
502 |
+
#qtip-overlay div{
|
503 |
+
position: absolute;
|
504 |
+
left: 0; top: 0;
|
505 |
+
width: 100%; height: 100%;
|
506 |
+
|
507 |
+
background-color: black;
|
508 |
+
|
509 |
+
opacity: 0.7;
|
510 |
+
filter:alpha(opacity=70);
|
511 |
+
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
|
512 |
+
}
|
513 |
+
|
admin/includes/tooltips/jquery.qtip.js
ADDED
@@ -0,0 +1,3302 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* qTip2 - Pretty powerful tooltips - v2.2.0
|
3 |
+
* http://qtip2.com
|
4 |
+
*
|
5 |
+
* Copyright (c) 2014 Craig Michael Thompson
|
6 |
+
* Released under the MIT, GPL licenses
|
7 |
+
* http://jquery.org/license
|
8 |
+
*
|
9 |
+
* Date: Sun Mar 16 2014 07:12 EDT-0400
|
10 |
+
* Plugins: tips viewport imagemap svg modal
|
11 |
+
* Styles: css3
|
12 |
+
*/
|
13 |
+
/*global window: false, jQuery: false, console: false, define: false */
|
14 |
+
|
15 |
+
/* Cache window, document, undefined */
|
16 |
+
(function( window, document, undefined ) {
|
17 |
+
|
18 |
+
// Uses AMD or browser globals to create a jQuery plugin.
|
19 |
+
(function( factory ) {
|
20 |
+
"use strict";
|
21 |
+
if(typeof define === 'function' && define.amd) {
|
22 |
+
define(['jquery'], factory);
|
23 |
+
}
|
24 |
+
else if(jQuery && !jQuery.fn.qtip) {
|
25 |
+
factory(jQuery);
|
26 |
+
}
|
27 |
+
}
|
28 |
+
(function($) {
|
29 |
+
"use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/
|
30 |
+
|
31 |
+
;// Munge the primitives - Paul Irish tip
|
32 |
+
var TRUE = true,
|
33 |
+
FALSE = false,
|
34 |
+
NULL = null,
|
35 |
+
|
36 |
+
// Common variables
|
37 |
+
X = 'x', Y = 'y',
|
38 |
+
WIDTH = 'width',
|
39 |
+
HEIGHT = 'height',
|
40 |
+
|
41 |
+
// Positioning sides
|
42 |
+
TOP = 'top',
|
43 |
+
LEFT = 'left',
|
44 |
+
BOTTOM = 'bottom',
|
45 |
+
RIGHT = 'right',
|
46 |
+
CENTER = 'center',
|
47 |
+
|
48 |
+
// Position adjustment types
|
49 |
+
FLIP = 'flip',
|
50 |
+
FLIPINVERT = 'flipinvert',
|
51 |
+
SHIFT = 'shift',
|
52 |
+
|
53 |
+
// Shortcut vars
|
54 |
+
QTIP, PROTOTYPE, CORNER, CHECKS,
|
55 |
+
PLUGINS = {},
|
56 |
+
NAMESPACE = 'qtip',
|
57 |
+
ATTR_HAS = 'data-hasqtip',
|
58 |
+
ATTR_ID = 'data-qtip-id',
|
59 |
+
WIDGET = ['ui-widget', 'ui-tooltip'],
|
60 |
+
SELECTOR = '.'+NAMESPACE,
|
61 |
+
INACTIVE_EVENTS = 'click dblclick mousedown mouseup mousemove mouseleave mouseenter'.split(' '),
|
62 |
+
|
63 |
+
CLASS_FIXED = NAMESPACE+'-fixed',
|
64 |
+
CLASS_DEFAULT = NAMESPACE + '-default',
|
65 |
+
CLASS_FOCUS = NAMESPACE + '-focus',
|
66 |
+
CLASS_HOVER = NAMESPACE + '-hover',
|
67 |
+
CLASS_DISABLED = NAMESPACE+'-disabled',
|
68 |
+
|
69 |
+
replaceSuffix = '_replacedByqTip',
|
70 |
+
oldtitle = 'oldtitle',
|
71 |
+
trackingBound,
|
72 |
+
|
73 |
+
// Browser detection
|
74 |
+
BROWSER = {
|
75 |
+
/*
|
76 |
+
* IE version detection
|
77 |
+
*
|
78 |
+
* Adapted from: http://ajaxian.com/archives/attack-of-the-ie-conditional-comment
|
79 |
+
* Credit to James Padolsey for the original implemntation!
|
80 |
+
*/
|
81 |
+
ie: (function(){
|
82 |
+
var v = 3, div = document.createElement('div');
|
83 |
+
while ((div.innerHTML = '<!--[if gt IE '+(++v)+']><i></i><![endif]-->')) {
|
84 |
+
if(!div.getElementsByTagName('i')[0]) { break; }
|
85 |
+
}
|
86 |
+
return v > 4 ? v : NaN;
|
87 |
+
}()),
|
88 |
+
|
89 |
+
/*
|
90 |
+
* iOS version detection
|
91 |
+
*/
|
92 |
+
iOS: parseFloat(
|
93 |
+
('' + (/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent) || [0,''])[1])
|
94 |
+
.replace('undefined', '3_2').replace('_', '.').replace('_', '')
|
95 |
+
) || FALSE
|
96 |
+
};
|
97 |
+
|
98 |
+
;function QTip(target, options, id, attr) {
|
99 |
+
// Elements and ID
|
100 |
+
this.id = id;
|
101 |
+
this.target = target;
|
102 |
+
this.tooltip = NULL;
|
103 |
+
this.elements = { target: target };
|
104 |
+
|
105 |
+
// Internal constructs
|
106 |
+
this._id = NAMESPACE + '-' + id;
|
107 |
+
this.timers = { img: {} };
|
108 |
+
this.options = options;
|
109 |
+
this.plugins = {};
|
110 |
+
|
111 |
+
// Cache object
|
112 |
+
this.cache = {
|
113 |
+
event: {},
|
114 |
+
target: $(),
|
115 |
+
disabled: FALSE,
|
116 |
+
attr: attr,
|
117 |
+
onTooltip: FALSE,
|
118 |
+
lastClass: ''
|
119 |
+
};
|
120 |
+
|
121 |
+
// Set the initial flags
|
122 |
+
this.rendered = this.destroyed = this.disabled = this.waiting =
|
123 |
+
this.hiddenDuringWait = this.positioning = this.triggering = FALSE;
|
124 |
+
}
|
125 |
+
PROTOTYPE = QTip.prototype;
|
126 |
+
|
127 |
+
PROTOTYPE._when = function(deferreds) {
|
128 |
+
return $.when.apply($, deferreds);
|
129 |
+
};
|
130 |
+
|
131 |
+
PROTOTYPE.render = function(show) {
|
132 |
+
if(this.rendered || this.destroyed) { return this; } // If tooltip has already been rendered, exit
|
133 |
+
|
134 |
+
var self = this,
|
135 |
+
options = this.options,
|
136 |
+
cache = this.cache,
|
137 |
+
elements = this.elements,
|
138 |
+
text = options.content.text,
|
139 |
+
title = options.content.title,
|
140 |
+
button = options.content.button,
|
141 |
+
posOptions = options.position,
|
142 |
+
namespace = '.'+this._id+' ',
|
143 |
+
deferreds = [],
|
144 |
+
tooltip;
|
145 |
+
|
146 |
+
// Add ARIA attributes to target
|
147 |
+
$.attr(this.target[0], 'aria-describedby', this._id);
|
148 |
+
|
149 |
+
// Create tooltip element
|
150 |
+
this.tooltip = elements.tooltip = tooltip = $('<div/>', {
|
151 |
+
'id': this._id,
|
152 |
+
'class': [ NAMESPACE, CLASS_DEFAULT, options.style.classes, NAMESPACE + '-pos-' + options.position.my.abbrev() ].join(' '),
|
153 |
+
'width': options.style.width || '',
|
154 |
+
'height': options.style.height || '',
|
155 |
+
'tracking': posOptions.target === 'mouse' && posOptions.adjust.mouse,
|
156 |
+
|
157 |
+
/* ARIA specific attributes */
|
158 |
+
'role': 'alert',
|
159 |
+
'aria-live': 'polite',
|
160 |
+
'aria-atomic': FALSE,
|
161 |
+
'aria-describedby': this._id + '-content',
|
162 |
+
'aria-hidden': TRUE
|
163 |
+
})
|
164 |
+
.toggleClass(CLASS_DISABLED, this.disabled)
|
165 |
+
.attr(ATTR_ID, this.id)
|
166 |
+
.data(NAMESPACE, this)
|
167 |
+
.appendTo(posOptions.container)
|
168 |
+
.append(
|
169 |
+
// Create content element
|
170 |
+
elements.content = $('<div />', {
|
171 |
+
'class': NAMESPACE + '-content',
|
172 |
+
'id': this._id + '-content',
|
173 |
+
'aria-atomic': TRUE
|
174 |
+
})
|
175 |
+
);
|
176 |
+
|
177 |
+
// Set rendered flag and prevent redundant reposition calls for now
|
178 |
+
this.rendered = -1;
|
179 |
+
this.positioning = TRUE;
|
180 |
+
|
181 |
+
// Create title...
|
182 |
+
if(title) {
|
183 |
+
this._createTitle();
|
184 |
+
|
185 |
+
// Update title only if its not a callback (called in toggle if so)
|
186 |
+
if(!$.isFunction(title)) {
|
187 |
+
deferreds.push( this._updateTitle(title, FALSE) );
|
188 |
+
}
|
189 |
+
}
|
190 |
+
|
191 |
+
// Create button
|
192 |
+
if(button) { this._createButton(); }
|
193 |
+
|
194 |
+
// Set proper rendered flag and update content if not a callback function (called in toggle)
|
195 |
+
if(!$.isFunction(text)) {
|
196 |
+
deferreds.push( this._updateContent(text, FALSE) );
|
197 |
+
}
|
198 |
+
this.rendered = TRUE;
|
199 |
+
|
200 |
+
// Setup widget classes
|
201 |
+
this._setWidget();
|
202 |
+
|
203 |
+
// Initialize 'render' plugins
|
204 |
+
$.each(PLUGINS, function(name) {
|
205 |
+
var instance;
|
206 |
+
if(this.initialize === 'render' && (instance = this(self))) {
|
207 |
+
self.plugins[name] = instance;
|
208 |
+
}
|
209 |
+
});
|
210 |
+
|
211 |
+
// Unassign initial events and assign proper events
|
212 |
+
this._unassignEvents();
|
213 |
+
this._assignEvents();
|
214 |
+
|
215 |
+
// When deferreds have completed
|
216 |
+
this._when(deferreds).then(function() {
|
217 |
+
// tooltiprender event
|
218 |
+
self._trigger('render');
|
219 |
+
|
220 |
+
// Reset flags
|
221 |
+
self.positioning = FALSE;
|
222 |
+
|
223 |
+
// Show tooltip if not hidden during wait period
|
224 |
+
if(!self.hiddenDuringWait && (options.show.ready || show)) {
|
225 |
+
self.toggle(TRUE, cache.event, FALSE);
|
226 |
+
}
|
227 |
+
self.hiddenDuringWait = FALSE;
|
228 |
+
});
|
229 |
+
|
230 |
+
// Expose API
|
231 |
+
QTIP.api[this.id] = this;
|
232 |
+
|
233 |
+
return this;
|
234 |
+
};
|
235 |
+
|
236 |
+
PROTOTYPE.destroy = function(immediate) {
|
237 |
+
// Set flag the signify destroy is taking place to plugins
|
238 |
+
// and ensure it only gets destroyed once!
|
239 |
+
if(this.destroyed) { return this.target; }
|
240 |
+
|
241 |
+
function process() {
|
242 |
+
if(this.destroyed) { return; }
|
243 |
+
this.destroyed = TRUE;
|
244 |
+
|
245 |
+
var target = this.target,
|
246 |
+
title = target.attr(oldtitle);
|
247 |
+
|
248 |
+
// Destroy tooltip if rendered
|
249 |
+
if(this.rendered) {
|
250 |
+
this.tooltip.stop(1,0).find('*').remove().end().remove();
|
251 |
+
}
|
252 |
+
|
253 |
+
// Destroy all plugins
|
254 |
+
$.each(this.plugins, function(name) {
|
255 |
+
this.destroy && this.destroy();
|
256 |
+
});
|
257 |
+
|
258 |
+
// Clear timers and remove bound events
|
259 |
+
clearTimeout(this.timers.show);
|
260 |
+
clearTimeout(this.timers.hide);
|
261 |
+
this._unassignEvents();
|
262 |
+
|
263 |
+
// Remove api object and ARIA attributes
|
264 |
+
target.removeData(NAMESPACE)
|
265 |
+
.removeAttr(ATTR_ID)
|
266 |
+
.removeAttr(ATTR_HAS)
|
267 |
+
.removeAttr('aria-describedby');
|
268 |
+
|
269 |
+
// Reset old title attribute if removed
|
270 |
+
if(this.options.suppress && title) {
|
271 |
+
target.attr('title', title).removeAttr(oldtitle);
|
272 |
+
}
|
273 |
+
|
274 |
+
// Remove qTip events associated with this API
|
275 |
+
this._unbind(target);
|
276 |
+
|
277 |
+
// Remove ID from used id objects, and delete object references
|
278 |
+
// for better garbage collection and leak protection
|
279 |
+
this.options = this.elements = this.cache = this.timers =
|
280 |
+
this.plugins = this.mouse = NULL;
|
281 |
+
|
282 |
+
// Delete epoxsed API object
|
283 |
+
delete QTIP.api[this.id];
|
284 |
+
}
|
285 |
+
|
286 |
+
// If an immediate destory is needed
|
287 |
+
if((immediate !== TRUE || this.triggering === 'hide') && this.rendered) {
|
288 |
+
this.tooltip.one('tooltiphidden', $.proxy(process, this));
|
289 |
+
!this.triggering && this.hide();
|
290 |
+
}
|
291 |
+
|
292 |
+
// If we're not in the process of hiding... process
|
293 |
+
else { process.call(this); }
|
294 |
+
|
295 |
+
return this.target;
|
296 |
+
};
|
297 |
+
|
298 |
+
;function invalidOpt(a) {
|
299 |
+
return a === NULL || $.type(a) !== 'object';
|
300 |
+
}
|
301 |
+
|
302 |
+
function invalidContent(c) {
|
303 |
+
return !( $.isFunction(c) || (c && c.attr) || c.length || ($.type(c) === 'object' && (c.jquery || c.then) ));
|
304 |
+
}
|
305 |
+
|
306 |
+
// Option object sanitizer
|
307 |
+
function sanitizeOptions(opts) {
|
308 |
+
var content, text, ajax, once;
|
309 |
+
|
310 |
+
if(invalidOpt(opts)) { return FALSE; }
|
311 |
+
|
312 |
+
if(invalidOpt(opts.metadata)) {
|
313 |
+
opts.metadata = { type: opts.metadata };
|
314 |
+
}
|
315 |
+
|
316 |
+
if('content' in opts) {
|
317 |
+
content = opts.content;
|
318 |
+
|
319 |
+
if(invalidOpt(content) || content.jquery || content.done) {
|
320 |
+
content = opts.content = {
|
321 |
+
text: (text = invalidContent(content) ? FALSE : content)
|
322 |
+
};
|
323 |
+
}
|
324 |
+
else { text = content.text; }
|
325 |
+
|
326 |
+
// DEPRECATED - Old content.ajax plugin functionality
|
327 |
+
// Converts it into the proper Deferred syntax
|
328 |
+
if('ajax' in content) {
|
329 |
+
ajax = content.ajax;
|
330 |
+
once = ajax && ajax.once !== FALSE;
|
331 |
+
delete content.ajax;
|
332 |
+
|
333 |
+
content.text = function(event, api) {
|
334 |
+
var loading = text || $(this).attr(api.options.content.attr) || 'Loading...',
|
335 |
+
|
336 |
+
deferred = $.ajax(
|
337 |
+
$.extend({}, ajax, { context: api })
|
338 |
+
)
|
339 |
+
.then(ajax.success, NULL, ajax.error)
|
340 |
+
.then(function(content) {
|
341 |
+
if(content && once) { api.set('content.text', content); }
|
342 |
+
return content;
|
343 |
+
},
|
344 |
+
function(xhr, status, error) {
|
345 |
+
if(api.destroyed || xhr.status === 0) { return; }
|
346 |
+
api.set('content.text', status + ': ' + error);
|
347 |
+
});
|
348 |
+
|
349 |
+
return !once ? (api.set('content.text', loading), deferred) : loading;
|
350 |
+
};
|
351 |
+
}
|
352 |
+
|
353 |
+
if('title' in content) {
|
354 |
+
if(!invalidOpt(content.title)) {
|
355 |
+
content.button = content.title.button;
|
356 |
+
content.title = content.title.text;
|
357 |
+
}
|
358 |
+
|
359 |
+
if(invalidContent(content.title || FALSE)) {
|
360 |
+
content.title = FALSE;
|
361 |
+
}
|
362 |
+
}
|
363 |
+
}
|
364 |
+
|
365 |
+
if('position' in opts && invalidOpt(opts.position)) {
|
366 |
+
opts.position = { my: opts.position, at: opts.position };
|
367 |
+
}
|
368 |
+
|
369 |
+
if('show' in opts && invalidOpt(opts.show)) {
|
370 |
+
opts.show = opts.show.jquery ? { target: opts.show } :
|
371 |
+
opts.show === TRUE ? { ready: TRUE } : { event: opts.show };
|
372 |
+
}
|
373 |
+
|
374 |
+
if('hide' in opts && invalidOpt(opts.hide)) {
|
375 |
+
opts.hide = opts.hide.jquery ? { target: opts.hide } : { event: opts.hide };
|
376 |
+
}
|
377 |
+
|
378 |
+
if('style' in opts && invalidOpt(opts.style)) {
|
379 |
+
opts.style = { classes: opts.style };
|
380 |
+
}
|
381 |
+
|
382 |
+
// Sanitize plugin options
|
383 |
+
$.each(PLUGINS, function() {
|
384 |
+
this.sanitize && this.sanitize(opts);
|
385 |
+
});
|
386 |
+
|
387 |
+
return opts;
|
388 |
+
}
|
389 |
+
|
390 |
+
// Setup builtin .set() option checks
|
391 |
+
CHECKS = PROTOTYPE.checks = {
|
392 |
+
builtin: {
|
393 |
+
// Core checks
|
394 |
+
'^id$': function(obj, o, v, prev) {
|
395 |
+
var id = v === TRUE ? QTIP.nextid : v,
|
396 |
+
new_id = NAMESPACE + '-' + id;
|
397 |
+
|
398 |
+
if(id !== FALSE && id.length > 0 && !$('#'+new_id).length) {
|
399 |
+
this._id = new_id;
|
400 |
+
|
401 |
+
if(this.rendered) {
|
402 |
+
this.tooltip[0].id = this._id;
|
403 |
+
this.elements.content[0].id = this._id + '-content';
|
404 |
+
this.elements.title[0].id = this._id + '-title';
|
405 |
+
}
|
406 |
+
}
|
407 |
+
else { obj[o] = prev; }
|
408 |
+
},
|
409 |
+
'^prerender': function(obj, o, v) {
|
410 |
+
v && !this.rendered && this.render(this.options.show.ready);
|
411 |
+
},
|
412 |
+
|
413 |
+
// Content checks
|
414 |
+
'^content.text$': function(obj, o, v) {
|
415 |
+
this._updateContent(v);
|
416 |
+
},
|
417 |
+
'^content.attr$': function(obj, o, v, prev) {
|
418 |
+
if(this.options.content.text === this.target.attr(prev)) {
|
419 |
+
this._updateContent( this.target.attr(v) );
|
420 |
+
}
|
421 |
+
},
|
422 |
+
'^content.title$': function(obj, o, v) {
|
423 |
+
// Remove title if content is null
|
424 |
+
if(!v) { return this._removeTitle(); }
|
425 |
+
|
426 |
+
// If title isn't already created, create it now and update
|
427 |
+
v && !this.elements.title && this._createTitle();
|
428 |
+
this._updateTitle(v);
|
429 |
+
},
|
430 |
+
'^content.button$': function(obj, o, v) {
|
431 |
+
this._updateButton(v);
|
432 |
+
},
|
433 |
+
'^content.title.(text|button)$': function(obj, o, v) {
|
434 |
+
this.set('content.'+o, v); // Backwards title.text/button compat
|
435 |
+
},
|
436 |
+
|
437 |
+
// Position checks
|
438 |
+
'^position.(my|at)$': function(obj, o, v){
|
439 |
+
'string' === typeof v && (obj[o] = new CORNER(v, o === 'at'));
|
440 |
+
},
|
441 |
+
'^position.container$': function(obj, o, v){
|
442 |
+
this.rendered && this.tooltip.appendTo(v);
|
443 |
+
},
|
444 |
+
|
445 |
+
// Show checks
|
446 |
+
'^show.ready$': function(obj, o, v) {
|
447 |
+
v && (!this.rendered && this.render(TRUE) || this.toggle(TRUE));
|
448 |
+
},
|
449 |
+
|
450 |
+
// Style checks
|
451 |
+
'^style.classes$': function(obj, o, v, p) {
|
452 |
+
this.rendered && this.tooltip.removeClass(p).addClass(v);
|
453 |
+
},
|
454 |
+
'^style.(width|height)': function(obj, o, v) {
|
455 |
+
this.rendered && this.tooltip.css(o, v);
|
456 |
+
},
|
457 |
+
'^style.widget|content.title': function() {
|
458 |
+
this.rendered && this._setWidget();
|
459 |
+
},
|
460 |
+
'^style.def': function(obj, o, v) {
|
461 |
+
this.rendered && this.tooltip.toggleClass(CLASS_DEFAULT, !!v);
|
462 |
+
},
|
463 |
+
|
464 |
+
// Events check
|
465 |
+
'^events.(render|show|move|hide|focus|blur)$': function(obj, o, v) {
|
466 |
+
this.rendered && this.tooltip[($.isFunction(v) ? '' : 'un') + 'bind']('tooltip'+o, v);
|
467 |
+
},
|
468 |
+
|
469 |
+
// Properties which require event reassignment
|
470 |
+
'^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)': function() {
|
471 |
+
if(!this.rendered) { return; }
|
472 |
+
|
473 |
+
// Set tracking flag
|
474 |
+
var posOptions = this.options.position;
|
475 |
+
this.tooltip.attr('tracking', posOptions.target === 'mouse' && posOptions.adjust.mouse);
|
476 |
+
|
477 |
+
// Reassign events
|
478 |
+
this._unassignEvents();
|
479 |
+
this._assignEvents();
|
480 |
+
}
|
481 |
+
}
|
482 |
+
};
|
483 |
+
|
484 |
+
// Dot notation converter
|
485 |
+
function convertNotation(options, notation) {
|
486 |
+
var i = 0, obj, option = options,
|
487 |
+
|
488 |
+
// Split notation into array
|
489 |
+
levels = notation.split('.');
|
490 |
+
|
491 |
+
// Loop through
|
492 |
+
while( option = option[ levels[i++] ] ) {
|
493 |
+
if(i < levels.length) { obj = option; }
|
494 |
+
}
|
495 |
+
|
496 |
+
return [obj || options, levels.pop()];
|
497 |
+
}
|
498 |
+
|
499 |
+
PROTOTYPE.get = function(notation) {
|
500 |
+
if(this.destroyed) { return this; }
|
501 |
+
|
502 |
+
var o = convertNotation(this.options, notation.toLowerCase()),
|
503 |
+
result = o[0][ o[1] ];
|
504 |
+
|
505 |
+
return result.precedance ? result.string() : result;
|
506 |
+
};
|
507 |
+
|
508 |
+
function setCallback(notation, args) {
|
509 |
+
var category, rule, match;
|
510 |
+
|
511 |
+
for(category in this.checks) {
|
512 |
+
for(rule in this.checks[category]) {
|
513 |
+
if(match = (new RegExp(rule, 'i')).exec(notation)) {
|
514 |
+
args.push(match);
|
515 |
+
|
516 |
+
if(category === 'builtin' || this.plugins[category]) {
|
517 |
+
this.checks[category][rule].apply(
|
518 |
+
this.plugins[category] || this, args
|
519 |
+
);
|
520 |
+
}
|
521 |
+
}
|
522 |
+
}
|
523 |
+
}
|
524 |
+
}
|
525 |
+
|
526 |
+
var rmove = /^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i,
|
527 |
+
rrender = /^prerender|show\.ready/i;
|
528 |
+
|
529 |
+
PROTOTYPE.set = function(option, value) {
|
530 |
+
if(this.destroyed) { return this; }
|
531 |
+
|
532 |
+
var rendered = this.rendered,
|
533 |
+
reposition = FALSE,
|
534 |
+
options = this.options,
|
535 |
+
checks = this.checks,
|
536 |
+
name;
|
537 |
+
|
538 |
+
// Convert singular option/value pair into object form
|
539 |
+
if('string' === typeof option) {
|
540 |
+
name = option; option = {}; option[name] = value;
|
541 |
+
}
|
542 |
+
else { option = $.extend({}, option); }
|
543 |
+
|
544 |
+
// Set all of the defined options to their new values
|
545 |
+
$.each(option, function(notation, value) {
|
546 |
+
if(rendered && rrender.test(notation)) {
|
547 |
+
delete option[notation]; return;
|
548 |
+
}
|
549 |
+
|
550 |
+
// Set new obj value
|
551 |
+
var obj = convertNotation(options, notation.toLowerCase()), previous;
|
552 |
+
previous = obj[0][ obj[1] ];
|
553 |
+
obj[0][ obj[1] ] = value && value.nodeType ? $(value) : value;
|
554 |
+
|
555 |
+
// Also check if we need to reposition
|
556 |
+
reposition = rmove.test(notation) || reposition;
|
557 |
+
|
558 |
+
// Set the new params for the callback
|
559 |
+
option[notation] = [obj[0], obj[1], value, previous];
|
560 |
+
});
|
561 |
+
|
562 |
+
// Re-sanitize options
|
563 |
+
sanitizeOptions(options);
|
564 |
+
|
565 |
+
/*
|
566 |
+
* Execute any valid callbacks for the set options
|
567 |
+
* Also set positioning flag so we don't get loads of redundant repositioning calls.
|
568 |
+
*/
|
569 |
+
this.positioning = TRUE;
|
570 |
+
$.each(option, $.proxy(setCallback, this));
|
571 |
+
this.positioning = FALSE;
|
572 |
+
|
573 |
+
// Update position if needed
|
574 |
+
if(this.rendered && this.tooltip[0].offsetWidth > 0 && reposition) {
|
575 |
+
this.reposition( options.position.target === 'mouse' ? NULL : this.cache.event );
|
576 |
+
}
|
577 |
+
|
578 |
+
return this;
|
579 |
+
};
|
580 |
+
|
581 |
+
;PROTOTYPE._update = function(content, element, reposition) {
|
582 |
+
var self = this,
|
583 |
+
cache = this.cache;
|
584 |
+
|
585 |
+
// Make sure tooltip is rendered and content is defined. If not return
|
586 |
+
if(!this.rendered || !content) { return FALSE; }
|
587 |
+
|
588 |
+
// Use function to parse content
|
589 |
+
if($.isFunction(content)) {
|
590 |
+
content = content.call(this.elements.target, cache.event, this) || '';
|
591 |
+
}
|
592 |
+
|
593 |
+
// Handle deferred content
|
594 |
+
if($.isFunction(content.then)) {
|
595 |
+
cache.waiting = TRUE;
|
596 |
+
return content.then(function(c) {
|
597 |
+
cache.waiting = FALSE;
|
598 |
+
return self._update(c, element);
|
599 |
+
}, NULL, function(e) {
|
600 |
+
return self._update(e, element);
|
601 |
+
});
|
602 |
+
}
|
603 |
+
|
604 |
+
// If content is null... return false
|
605 |
+
if(content === FALSE || (!content && content !== '')) { return FALSE; }
|
606 |
+
|
607 |
+
// Append new content if its a DOM array and show it if hidden
|
608 |
+
if(content.jquery && content.length > 0) {
|
609 |
+
element.empty().append(
|
610 |
+
content.css({ display: 'block', visibility: 'visible' })
|
611 |
+
);
|
612 |
+
}
|
613 |
+
|
614 |
+
// Content is a regular string, insert the new content
|
615 |
+
else { element.html(content); }
|
616 |
+
|
617 |
+
// Wait for content to be loaded, and reposition
|
618 |
+
return this._waitForContent(element).then(function(images) {
|
619 |
+
if(images.images && images.images.length && self.rendered && self.tooltip[0].offsetWidth > 0) {
|
620 |
+
self.reposition(cache.event, !images.length);
|
621 |
+
}
|
622 |
+
});
|
623 |
+
};
|
624 |
+
|
625 |
+
PROTOTYPE._waitForContent = function(element) {
|
626 |
+
var cache = this.cache;
|
627 |
+
|
628 |
+
// Set flag
|
629 |
+
cache.waiting = TRUE;
|
630 |
+
|
631 |
+
// If imagesLoaded is included, ensure images have loaded and return promise
|
632 |
+
return ( $.fn.imagesLoaded ? element.imagesLoaded() : $.Deferred().resolve([]) )
|
633 |
+
.done(function() { cache.waiting = FALSE; })
|
634 |
+
.promise();
|
635 |
+
};
|
636 |
+
|
637 |
+
PROTOTYPE._updateContent = function(content, reposition) {
|
638 |
+
this._update(content, this.elements.content, reposition);
|
639 |
+
};
|
640 |
+
|
641 |
+
PROTOTYPE._updateTitle = function(content, reposition) {
|
642 |
+
if(this._update(content, this.elements.title, reposition) === FALSE) {
|
643 |
+
this._removeTitle(FALSE);
|
644 |
+
}
|
645 |
+
};
|
646 |
+
|
647 |
+
PROTOTYPE._createTitle = function()
|
648 |
+
{
|
649 |
+
var elements = this.elements,
|
650 |
+
id = this._id+'-title';
|
651 |
+
|
652 |
+
// Destroy previous title element, if present
|
653 |
+
if(elements.titlebar) { this._removeTitle(); }
|
654 |
+
|
655 |
+
// Create title bar and title elements
|
656 |
+
elements.titlebar = $('<div />', {
|
657 |
+
'class': NAMESPACE + '-titlebar ' + (this.options.style.widget ? createWidgetClass('header') : '')
|
658 |
+
})
|
659 |
+
.append(
|
660 |
+
elements.title = $('<div />', {
|
661 |
+
'id': id,
|
662 |
+
'class': NAMESPACE + '-title',
|
663 |
+
'aria-atomic': TRUE
|
664 |
+
})
|
665 |
+
)
|
666 |
+
.insertBefore(elements.content)
|
667 |
+
|
668 |
+
// Button-specific events
|
669 |
+
.delegate('.qtip-close', 'mousedown keydown mouseup keyup mouseout', function(event) {
|
670 |
+
$(this).toggleClass('ui-state-active ui-state-focus', event.type.substr(-4) === 'down');
|
671 |
+
})
|
672 |
+
.delegate('.qtip-close', 'mouseover mouseout', function(event){
|
673 |
+
$(this).toggleClass('ui-state-hover', event.type === 'mouseover');
|
674 |
+
});
|
675 |
+
|
676 |
+
// Create button if enabled
|
677 |
+
if(this.options.content.button) { this._createButton(); }
|
678 |
+
};
|
679 |
+
|
680 |
+
PROTOTYPE._removeTitle = function(reposition)
|
681 |
+
{
|
682 |
+
var elements = this.elements;
|
683 |
+
|
684 |
+
if(elements.title) {
|
685 |
+
elements.titlebar.remove();
|
686 |
+
elements.titlebar = elements.title = elements.button = NULL;
|
687 |
+
|
688 |
+
// Reposition if enabled
|
689 |
+
if(reposition !== FALSE) { this.reposition(); }
|
690 |
+
}
|
691 |
+
};
|
692 |
+
|
693 |
+
;PROTOTYPE.reposition = function(event, effect) {
|
694 |
+
if(!this.rendered || this.positioning || this.destroyed) { return this; }
|
695 |
+
|
696 |
+
// Set positioning flag
|
697 |
+
this.positioning = TRUE;
|
698 |
+
|
699 |
+
var cache = this.cache,
|
700 |
+
tooltip = this.tooltip,
|
701 |
+
posOptions = this.options.position,
|
702 |
+
target = posOptions.target,
|
703 |
+
my = posOptions.my,
|
704 |
+
at = posOptions.at,
|
705 |
+
viewport = posOptions.viewport,
|
706 |
+
container = posOptions.container,
|
707 |
+
adjust = posOptions.adjust,
|
708 |
+
method = adjust.method.split(' '),
|
709 |
+
tooltipWidth = tooltip.outerWidth(FALSE),
|
710 |
+
tooltipHeight = tooltip.outerHeight(FALSE),
|
711 |
+
targetWidth = 0,
|
712 |
+
targetHeight = 0,
|
713 |
+
type = tooltip.css('position'),
|
714 |
+
position = { left: 0, top: 0 },
|
715 |
+
visible = tooltip[0].offsetWidth > 0,
|
716 |
+
isScroll = event && event.type === 'scroll',
|
717 |
+
win = $(window),
|
718 |
+
doc = container[0].ownerDocument,
|
719 |
+
mouse = this.mouse,
|
720 |
+
pluginCalculations, offset;
|
721 |
+
|
722 |
+
// Check if absolute position was passed
|
723 |
+
if($.isArray(target) && target.length === 2) {
|
724 |
+
// Force left top and set position
|
725 |
+
at = { x: LEFT, y: TOP };
|
726 |
+
position = { left: target[0], top: target[1] };
|
727 |
+
}
|
728 |
+
|
729 |
+
// Check if mouse was the target
|
730 |
+
else if(target === 'mouse') {
|
731 |
+
// Force left top to allow flipping
|
732 |
+
at = { x: LEFT, y: TOP };
|
733 |
+
|
734 |
+
// Use the cached mouse coordinates if available, or passed event has no coordinates
|
735 |
+
if(mouse && mouse.pageX && (adjust.mouse || !event || !event.pageX) ) {
|
736 |
+
event = mouse;
|
737 |
+
}
|
738 |
+
|
739 |
+
// If the passed event has no coordinates (such as a scroll event)
|
740 |
+
else if(!event || !event.pageX) {
|
741 |
+
// Use the mouse origin that caused the show event, if distance hiding is enabled
|
742 |
+
if((!adjust.mouse || this.options.show.distance) && cache.origin && cache.origin.pageX) {
|
743 |
+
event = cache.origin;
|
744 |
+
}
|
745 |
+
|
746 |
+
// Use cached event for resize/scroll events
|
747 |
+
else if(!event || (event && (event.type === 'resize' || event.type === 'scroll'))) {
|
748 |
+
event = cache.event;
|
749 |
+
}
|
750 |
+
}
|
751 |
+
|
752 |
+
// Calculate body and container offset and take them into account below
|
753 |
+
if(type !== 'static') { position = container.offset(); }
|
754 |
+
if(doc.body.offsetWidth !== (window.innerWidth || doc.documentElement.clientWidth)) {
|
755 |
+
offset = $(document.body).offset();
|
756 |
+
}
|
757 |
+
|
758 |
+
// Use event coordinates for position
|
759 |
+
position = {
|
760 |
+
left: event.pageX - position.left + (offset && offset.left || 0),
|
761 |
+
top: event.pageY - position.top + (offset && offset.top || 0)
|
762 |
+
};
|
763 |
+
|
764 |
+
// Scroll events are a pain, some browsers
|
765 |
+
if(adjust.mouse && isScroll && mouse) {
|
766 |
+
position.left -= (mouse.scrollX || 0) - win.scrollLeft();
|
767 |
+
position.top -= (mouse.scrollY || 0) - win.scrollTop();
|
768 |
+
}
|
769 |
+
}
|
770 |
+
|
771 |
+
// Target wasn't mouse or absolute...
|
772 |
+
else {
|
773 |
+
// Check if event targetting is being used
|
774 |
+
if(target === 'event') {
|
775 |
+
if(event && event.target && event.type !== 'scroll' && event.type !== 'resize') {
|
776 |
+
cache.target = $(event.target);
|
777 |
+
}
|
778 |
+
else if(!event.target) {
|
779 |
+
cache.target = this.elements.target;
|
780 |
+
}
|
781 |
+
}
|
782 |
+
else if(target !== 'event'){
|
783 |
+
cache.target = $(target.jquery ? target : this.elements.target);
|
784 |
+
}
|
785 |
+
target = cache.target;
|
786 |
+
|
787 |
+
// Parse the target into a jQuery object and make sure there's an element present
|
788 |
+
target = $(target).eq(0);
|
789 |
+
if(target.length === 0) { return this; }
|
790 |
+
|
791 |
+
// Check if window or document is the target
|
792 |
+
else if(target[0] === document || target[0] === window) {
|
793 |
+
targetWidth = BROWSER.iOS ? window.innerWidth : target.width();
|
794 |
+
targetHeight = BROWSER.iOS ? window.innerHeight : target.height();
|
795 |
+
|
796 |
+
if(target[0] === window) {
|
797 |
+
position = {
|
798 |
+
top: (viewport || target).scrollTop(),
|
799 |
+
left: (viewport || target).scrollLeft()
|
800 |
+
};
|
801 |
+
}
|
802 |
+
}
|
803 |
+
|
804 |
+
// Check if the target is an <AREA> element
|
805 |
+
else if(PLUGINS.imagemap && target.is('area')) {
|
806 |
+
pluginCalculations = PLUGINS.imagemap(this, target, at, PLUGINS.viewport ? method : FALSE);
|
807 |
+
}
|
808 |
+
|
809 |
+
// Check if the target is an SVG element
|
810 |
+
else if(PLUGINS.svg && target && target[0].ownerSVGElement) {
|
811 |
+
pluginCalculations = PLUGINS.svg(this, target, at, PLUGINS.viewport ? method : FALSE);
|
812 |
+
}
|
813 |
+
|
814 |
+
// Otherwise use regular jQuery methods
|
815 |
+
else {
|
816 |
+
targetWidth = target.outerWidth(FALSE);
|
817 |
+
targetHeight = target.outerHeight(FALSE);
|
818 |
+
position = target.offset();
|
819 |
+
}
|
820 |
+
|
821 |
+
// Parse returned plugin values into proper variables
|
822 |
+
if(pluginCalculations) {
|
823 |
+
targetWidth = pluginCalculations.width;
|
824 |
+
targetHeight = pluginCalculations.height;
|
825 |
+
offset = pluginCalculations.offset;
|
826 |
+
position = pluginCalculations.position;
|
827 |
+
}
|
828 |
+
|
829 |
+
// Adjust position to take into account offset parents
|
830 |
+
position = this.reposition.offset(target, position, container);
|
831 |
+
|
832 |
+
// Adjust for position.fixed tooltips (and also iOS scroll bug in v3.2-4.0 & v4.3-4.3.2)
|
833 |
+
if((BROWSER.iOS > 3.1 && BROWSER.iOS < 4.1) ||
|
834 |
+
(BROWSER.iOS >= 4.3 && BROWSER.iOS < 4.33) ||
|
835 |
+
(!BROWSER.iOS && type === 'fixed')
|
836 |
+
){
|
837 |
+
position.left -= win.scrollLeft();
|
838 |
+
position.top -= win.scrollTop();
|
839 |
+
}
|
840 |
+
|
841 |
+
// Adjust position relative to target
|
842 |
+
if(!pluginCalculations || (pluginCalculations && pluginCalculations.adjustable !== FALSE)) {
|
843 |
+
position.left += at.x === RIGHT ? targetWidth : at.x === CENTER ? targetWidth / 2 : 0;
|
844 |
+
position.top += at.y === BOTTOM ? targetHeight : at.y === CENTER ? targetHeight / 2 : 0;
|
845 |
+
}
|
846 |
+
}
|
847 |
+
|
848 |
+
|