Version Description
- Fix JS error in front.js
Plugin tested with WordPress 5.2.3 and Divi 3.27.4
Download this release
Release Info
Developer | stracker.phil |
Plugin | Popups for Divi |
Version | 1.6.2 |
Comparing to | |
See all releases |
Version 1.6.2
- LICENSE.txt +339 -0
- css/builder.css +55 -0
- css/builder.css.map +1 -0
- css/front.css +159 -0
- css/front.css.map +1 -0
- img/spin.gif +0 -0
- include/class-popups-for-divi-onboarding.php +265 -0
- include/class-popups-for-divi.php +406 -0
- js/builder.js +1 -0
- js/front.js +1 -0
- lang/divi-popup-de_DE.mo +0 -0
- lang/divi-popup-de_DE.po +49 -0
- plugin.php +65 -0
- readme.txt +262 -0
LICENSE.txt
ADDED
@@ -0,0 +1,339 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
css/builder.css
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Popups for Divi - styles in page builder
|
3 |
+
*/
|
4 |
+
.popup {
|
5 |
+
box-shadow: 0 3px 10px -1px rgba(0, 0, 0, 0.3), 0 0 20px 2px rgba(0, 0, 0, 0.2);
|
6 |
+
min-width: 360px;
|
7 |
+
max-width: 95%; }
|
8 |
+
|
9 |
+
#et-fb-app .et_pb_section.popup {
|
10 |
+
background-color: #FFF;
|
11 |
+
margin: 30px auto;
|
12 |
+
overflow: visible;
|
13 |
+
z-index: auto; }
|
14 |
+
#et-fb-app .et_pb_section.popup + .et_pb_section.popup {
|
15 |
+
margin-top: 60px; }
|
16 |
+
#et-fb-app .et_pb_section.popup:after {
|
17 |
+
content: '';
|
18 |
+
position: absolute;
|
19 |
+
background: rgba(0, 0, 0, 0.2);
|
20 |
+
left: 50%;
|
21 |
+
top: -30px;
|
22 |
+
bottom: -30px;
|
23 |
+
z-index: -1;
|
24 |
+
width: 10000px;
|
25 |
+
min-width: 100vw;
|
26 |
+
-webkit-transform: translateX(-50%);
|
27 |
+
transform: translateX(-50%); }
|
28 |
+
#et-fb-app .et_pb_section.popup:before {
|
29 |
+
content: "#" attr(id);
|
30 |
+
position: absolute;
|
31 |
+
top: 0px;
|
32 |
+
left: 50%;
|
33 |
+
-webkit-transform: translate(-50%, -100%);
|
34 |
+
transform: translate(-50%, -100%);
|
35 |
+
background: #666;
|
36 |
+
padding: 0 8px;
|
37 |
+
color: #FFF;
|
38 |
+
font-size: 12px;
|
39 |
+
line-height: 26px;
|
40 |
+
font-weight: bold;
|
41 |
+
opacity: 0.5;
|
42 |
+
transition: all 0.3s;
|
43 |
+
bottom: auto;
|
44 |
+
right: auto;
|
45 |
+
z-index: 20;
|
46 |
+
border-radius: 3px 3px 0 0; }
|
47 |
+
#et-fb-app .et_pb_section.popup:hover:before {
|
48 |
+
background: #2B87DA;
|
49 |
+
opacity: 1; }
|
50 |
+
|
51 |
+
.et_fb_hidden_header #et-fb-app .et_pb_section.popup:after {
|
52 |
+
width: 100vw; }
|
53 |
+
|
54 |
+
|
55 |
+
/*# sourceMappingURL=builder.css.map*/
|
css/builder.css.map
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"version":3,"sources":["webpack:///./gulp/sass/builder.scss"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA,eAAe;;AAEf;AACA,eAAe","file":"css/builder.css","sourcesContent":["/**\n * Popups for Divi - styles in page builder\n */\n.popup {\n box-shadow: 0 3px 10px -1px rgba(0, 0, 0, 0.3), 0 0 20px 2px rgba(0, 0, 0, 0.2);\n min-width: 360px;\n max-width: 95%; }\n\n#et-fb-app .et_pb_section.popup {\n background-color: #FFF;\n margin: 30px auto;\n overflow: visible;\n z-index: auto; }\n #et-fb-app .et_pb_section.popup + .et_pb_section.popup {\n margin-top: 60px; }\n #et-fb-app .et_pb_section.popup:after {\n content: '';\n position: absolute;\n background: rgba(0, 0, 0, 0.2);\n left: 50%;\n top: -30px;\n bottom: -30px;\n z-index: -1;\n width: 10000px;\n min-width: 100vw;\n -webkit-transform: translateX(-50%);\n transform: translateX(-50%); }\n #et-fb-app .et_pb_section.popup:before {\n content: \"#\" attr(id);\n position: absolute;\n top: 0px;\n left: 50%;\n -webkit-transform: translate(-50%, -100%);\n transform: translate(-50%, -100%);\n background: #666;\n padding: 0 8px;\n color: #FFF;\n font-size: 12px;\n line-height: 26px;\n font-weight: bold;\n opacity: 0.5;\n transition: all 0.3s;\n bottom: auto;\n right: auto;\n z-index: 20;\n border-radius: 3px 3px 0 0; }\n #et-fb-app .et_pb_section.popup:hover:before {\n background: #2B87DA;\n opacity: 1; }\n\n.et_fb_hidden_header #et-fb-app .et_pb_section.popup:after {\n width: 100vw; }\n"],"sourceRoot":""}
|
css/front.css
ADDED
@@ -0,0 +1,159 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Divi Areas Pro - styles for front-end
|
3 |
+
*/
|
4 |
+
.evr_fb_popup_modal {
|
5 |
+
position: fixed;
|
6 |
+
left: 0;
|
7 |
+
top: 0;
|
8 |
+
right: 0;
|
9 |
+
bottom: 0;
|
10 |
+
background: rgba(0, 0, 0, 0.55);
|
11 |
+
z-index: 99; }
|
12 |
+
|
13 |
+
.popup:not(.no-shadow) {
|
14 |
+
box-shadow: 0 3px 10px -1px rgba(0, 0, 0, 0.3), 0 2px 50px 2px rgba(0, 0, 0, 0.2); }
|
15 |
+
|
16 |
+
.popup_outer_wrap {
|
17 |
+
position: fixed;
|
18 |
+
left: 50%;
|
19 |
+
-webkit-transform: translate(-50%, -50%);
|
20 |
+
transform: translate(-50%, -50%);
|
21 |
+
top: 50%;
|
22 |
+
width: 90%;
|
23 |
+
z-index: 100;
|
24 |
+
min-width: 320px;
|
25 |
+
pointer-events: none; }
|
26 |
+
.popup_outer_wrap.popup_full_width {
|
27 |
+
-webkit-transform: translateY(-50%);
|
28 |
+
transform: translateY(-50%);
|
29 |
+
width: 100%;
|
30 |
+
left: 0; }
|
31 |
+
.popup_outer_wrap.popup_full_width > .popup {
|
32 |
+
overflow-x: auto; }
|
33 |
+
.popup_outer_wrap.popup_full_height {
|
34 |
+
-webkit-transform: translateX(-50%);
|
35 |
+
transform: translateX(-50%);
|
36 |
+
height: 100%;
|
37 |
+
top: 0; }
|
38 |
+
.popup_outer_wrap.popup_full_height > .popup {
|
39 |
+
overflow-y: auto; }
|
40 |
+
.popup_outer_wrap.popup_full_width.popup_full_height {
|
41 |
+
-webkit-transform: none;
|
42 |
+
transform: none; }
|
43 |
+
.popup_outer_wrap.popup_full_width.popup_full_height > .popup {
|
44 |
+
overflow: auto; }
|
45 |
+
.popup_outer_wrap .popup {
|
46 |
+
position: relative;
|
47 |
+
background-repeat: no-repeat;
|
48 |
+
background-position: center center;
|
49 |
+
margin: auto;
|
50 |
+
transition: all 0.3s;
|
51 |
+
max-height: 100%;
|
52 |
+
pointer-events: all; }
|
53 |
+
.popup_outer_wrap .popup.with-loader {
|
54 |
+
background-image: url(../img/spin.gif), radial-gradient(circle at center, #FFF 65%, #fff0 66%);
|
55 |
+
background-size: 32px 32px, 48px 48px; }
|
56 |
+
.popup_outer_wrap .popup .et_pb_row:after,
|
57 |
+
.popup_outer_wrap .popup .et_pb_row_inner:after,
|
58 |
+
.popup_outer_wrap .popup .et_pb_slides:after,
|
59 |
+
.popup_outer_wrap .popup .clearfix:after {
|
60 |
+
content: ''; }
|
61 |
+
|
62 |
+
.admin-bar .popup_outer_wrap {
|
63 |
+
top: calc(50% + 16px); }
|
64 |
+
.admin-bar .popup_outer_wrap.popup_full_height {
|
65 |
+
height: calc(100% - 52px);
|
66 |
+
top: 42px; }
|
67 |
+
|
68 |
+
/* Used in front-end when a popup is displayed to a visitor */
|
69 |
+
#page-container #main-content {
|
70 |
+
transition: all 0s; }
|
71 |
+
|
72 |
+
body.evr_popup_open {
|
73 |
+
overflow: hidden; }
|
74 |
+
body.evr_popup_open #page-container #main-content {
|
75 |
+
transition: all 0.5s 1s;
|
76 |
+
-webkit-filter: blur(2px);
|
77 |
+
filter: blur(2px);
|
78 |
+
opacity: 0.75; }
|
79 |
+
|
80 |
+
.divi-area-wrap {
|
81 |
+
position: relative; }
|
82 |
+
|
83 |
+
/* Styles that are shared between Popups for Divi and Divi Areas Pro */
|
84 |
+
.divi-area-wrap.with-close .evr-close_wrap,
|
85 |
+
.popup_outer_wrap .popup.with-close .evr-close_wrap {
|
86 |
+
display: block !important; }
|
87 |
+
|
88 |
+
.divi-area-wrap.no-close .evr-close_wrap,
|
89 |
+
.popup_outer_wrap .popup.no-close .evr-close_wrap {
|
90 |
+
display: none !important; }
|
91 |
+
|
92 |
+
.divi-area-wrap .evr-close_wrap,
|
93 |
+
.popup_outer_wrap .popup .evr-close_wrap {
|
94 |
+
position: absolute;
|
95 |
+
right: 0;
|
96 |
+
top: 0;
|
97 |
+
opacity: 0.2;
|
98 |
+
z-index: 100;
|
99 |
+
text-align: right;
|
100 |
+
transition: opacity 0.6s 0.3s; }
|
101 |
+
|
102 |
+
.divi-area-wrap .evr-close,
|
103 |
+
.popup_outer_wrap .popup .evr-close {
|
104 |
+
display: block;
|
105 |
+
box-sizing: content-box;
|
106 |
+
width: 30px;
|
107 |
+
height: 30px;
|
108 |
+
line-height: 30px;
|
109 |
+
text-align: center;
|
110 |
+
font-family: "Courier New", monospace;
|
111 |
+
font-size: 20px;
|
112 |
+
font-weight: bold;
|
113 |
+
cursor: pointer;
|
114 |
+
color: #333;
|
115 |
+
background: #fff2;
|
116 |
+
opacity: 0.7;
|
117 |
+
box-shadow: 0 0 3px 1px #00000008;
|
118 |
+
transition: all 0.3s; }
|
119 |
+
.divi-area-wrap .evr-close:hover, .divi-area-wrap .evr-close:focus, .divi-area-wrap .evr-close:active,
|
120 |
+
.popup_outer_wrap .popup .evr-close:hover,
|
121 |
+
.popup_outer_wrap .popup .evr-close:focus,
|
122 |
+
.popup_outer_wrap .popup .evr-close:active {
|
123 |
+
color: #000;
|
124 |
+
background: #FFF;
|
125 |
+
opacity: 1;
|
126 |
+
box-shadow: 0 0 4px 0 #0002, 0 0 3px 1px #0001;
|
127 |
+
-webkit-transform: scale(1.1);
|
128 |
+
transform: scale(1.1); }
|
129 |
+
|
130 |
+
.divi-area-wrap.dark .evr-close,
|
131 |
+
.popup_outer_wrap .popup.dark .evr-close {
|
132 |
+
color: #EEE;
|
133 |
+
background: #0002;
|
134 |
+
box-shadow: 0 0 0 1px #FFFFFF08;
|
135 |
+
text-shadow: 0px 0px 1px #000,0px 0px 3px #000A; }
|
136 |
+
.divi-area-wrap.dark .evr-close:hover, .divi-area-wrap.dark .evr-close:focus, .divi-area-wrap.dark .evr-close:active,
|
137 |
+
.popup_outer_wrap .popup.dark .evr-close:hover,
|
138 |
+
.popup_outer_wrap .popup.dark .evr-close:focus,
|
139 |
+
.popup_outer_wrap .popup.dark .evr-close:active {
|
140 |
+
color: #FFF;
|
141 |
+
background: #2b2b2b;
|
142 |
+
box-shadow: 0 0 1px 1px #FFF3; }
|
143 |
+
|
144 |
+
.divi-area-wrap.is-open .evr-close_wrap,
|
145 |
+
.popup_outer_wrap .popup.is-open .evr-close_wrap {
|
146 |
+
opacity: 1;
|
147 |
+
transition: opacity 0.6s 0.3s; }
|
148 |
+
|
149 |
+
.divi-area-wrap.close-alt .evr-close,
|
150 |
+
.popup_outer_wrap .popup.close-alt .evr-close {
|
151 |
+
box-shadow: none !important;
|
152 |
+
background: transparent !important; }
|
153 |
+
|
154 |
+
.divi-area-wrap .et_pb_contact_select,
|
155 |
+
.popup_outer_wrap .popup .et_pb_contact_select {
|
156 |
+
-moz-appearance: textfield; }
|
157 |
+
|
158 |
+
|
159 |
+
/*# sourceMappingURL=front.css.map*/
|
css/front.css.map
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"version":3,"sources":["webpack:///./gulp/sass/front.scss"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;;AAEd;AACA,oFAAoF;;AAEpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,uBAAuB;AACvB;AACA;AACA,4BAA4B;AAC5B;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA,4CAA4C;AAC5C;AACA;AACA;AACA;AACA,kBAAkB;;AAElB;AACA,wBAAwB;AACxB;AACA;AACA,cAAc;;AAEd;AACA;AACA,qBAAqB;;AAErB;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA,kBAAkB;;AAElB;AACA,qBAAqB;;AAErB;AACA;AACA;AACA,4BAA4B;;AAE5B;AACA;AACA,2BAA2B;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC;;AAElC;AACA;AACA;AACA;AACA;AACA,kDAAkD;AAClD;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC;;AAElC;AACA;AACA;AACA,gCAAgC;;AAEhC;AACA;AACA;AACA,qCAAqC;;AAErC;AACA;AACA,6BAA6B","file":"css/front.css","sourcesContent":["/**\n * Divi Areas Pro - styles for front-end\n */\n.evr_fb_popup_modal {\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.55);\n z-index: 99; }\n\n.popup:not(.no-shadow) {\n box-shadow: 0 3px 10px -1px rgba(0, 0, 0, 0.3), 0 2px 50px 2px rgba(0, 0, 0, 0.2); }\n\n.popup_outer_wrap {\n position: fixed;\n left: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n top: 50%;\n width: 90%;\n z-index: 100;\n min-width: 320px;\n pointer-events: none; }\n .popup_outer_wrap.popup_full_width {\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%);\n width: 100%;\n left: 0; }\n .popup_outer_wrap.popup_full_width > .popup {\n overflow-x: auto; }\n .popup_outer_wrap.popup_full_height {\n -webkit-transform: translateX(-50%);\n transform: translateX(-50%);\n height: 100%;\n top: 0; }\n .popup_outer_wrap.popup_full_height > .popup {\n overflow-y: auto; }\n .popup_outer_wrap.popup_full_width.popup_full_height {\n -webkit-transform: none;\n transform: none; }\n .popup_outer_wrap.popup_full_width.popup_full_height > .popup {\n overflow: auto; }\n .popup_outer_wrap .popup {\n position: relative;\n background-repeat: no-repeat;\n background-position: center center;\n margin: auto;\n transition: all 0.3s;\n max-height: 100%;\n pointer-events: all; }\n .popup_outer_wrap .popup.with-loader {\n background-image: url(../img/spin.gif), radial-gradient(circle at center, #FFF 65%, #fff0 66%);\n background-size: 32px 32px, 48px 48px; }\n .popup_outer_wrap .popup .et_pb_row:after,\n .popup_outer_wrap .popup .et_pb_row_inner:after,\n .popup_outer_wrap .popup .et_pb_slides:after,\n .popup_outer_wrap .popup .clearfix:after {\n content: ''; }\n\n.admin-bar .popup_outer_wrap {\n top: calc(50% + 16px); }\n .admin-bar .popup_outer_wrap.popup_full_height {\n height: calc(100% - 52px);\n top: 42px; }\n\n/* Used in front-end when a popup is displayed to a visitor */\n#page-container #main-content {\n transition: all 0s; }\n\nbody.evr_popup_open {\n overflow: hidden; }\n body.evr_popup_open #page-container #main-content {\n transition: all 0.5s 1s;\n -webkit-filter: blur(2px);\n filter: blur(2px);\n opacity: 0.75; }\n\n.divi-area-wrap {\n position: relative; }\n\n/* Styles that are shared between Popups for Divi and Divi Areas Pro */\n.divi-area-wrap.with-close .evr-close_wrap,\n.popup_outer_wrap .popup.with-close .evr-close_wrap {\n display: block !important; }\n\n.divi-area-wrap.no-close .evr-close_wrap,\n.popup_outer_wrap .popup.no-close .evr-close_wrap {\n display: none !important; }\n\n.divi-area-wrap .evr-close_wrap,\n.popup_outer_wrap .popup .evr-close_wrap {\n position: absolute;\n right: 0;\n top: 0;\n opacity: 0.2;\n z-index: 100;\n text-align: right;\n transition: opacity 0.6s 0.3s; }\n\n.divi-area-wrap .evr-close,\n.popup_outer_wrap .popup .evr-close {\n display: block;\n box-sizing: content-box;\n width: 30px;\n height: 30px;\n line-height: 30px;\n text-align: center;\n font-family: \"Courier New\", monospace;\n font-size: 20px;\n font-weight: bold;\n cursor: pointer;\n color: #333;\n background: #fff2;\n opacity: 0.7;\n box-shadow: 0 0 3px 1px #00000008;\n transition: all 0.3s; }\n .divi-area-wrap .evr-close:hover, .divi-area-wrap .evr-close:focus, .divi-area-wrap .evr-close:active,\n .popup_outer_wrap .popup .evr-close:hover,\n .popup_outer_wrap .popup .evr-close:focus,\n .popup_outer_wrap .popup .evr-close:active {\n color: #000;\n background: #FFF;\n opacity: 1;\n box-shadow: 0 0 4px 0 #0002, 0 0 3px 1px #0001;\n -webkit-transform: scale(1.1);\n transform: scale(1.1); }\n\n.divi-area-wrap.dark .evr-close,\n.popup_outer_wrap .popup.dark .evr-close {\n color: #EEE;\n background: #0002;\n box-shadow: 0 0 0 1px #FFFFFF08;\n text-shadow: 0px 0px 1px #000,0px 0px 3px #000A; }\n .divi-area-wrap.dark .evr-close:hover, .divi-area-wrap.dark .evr-close:focus, .divi-area-wrap.dark .evr-close:active,\n .popup_outer_wrap .popup.dark .evr-close:hover,\n .popup_outer_wrap .popup.dark .evr-close:focus,\n .popup_outer_wrap .popup.dark .evr-close:active {\n color: #FFF;\n background: #2b2b2b;\n box-shadow: 0 0 1px 1px #FFF3; }\n\n.divi-area-wrap.is-open .evr-close_wrap,\n.popup_outer_wrap .popup.is-open .evr-close_wrap {\n opacity: 1;\n transition: opacity 0.6s 0.3s; }\n\n.divi-area-wrap.close-alt .evr-close,\n.popup_outer_wrap .popup.close-alt .evr-close {\n box-shadow: none !important;\n background: transparent !important; }\n\n.divi-area-wrap .et_pb_contact_select,\n.popup_outer_wrap .popup .et_pb_contact_select {\n -moz-appearance: textfield; }\n"],"sourceRoot":""}
|
img/spin.gif
ADDED
Binary file
|
include/class-popups-for-divi-onboarding.php
ADDED
@@ -0,0 +1,265 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Onboarding signup.
|
4 |
+
*
|
5 |
+
* Offers an onboarding signup form so new users for new users.
|
6 |
+
*
|
7 |
+
* @package Popups_For_Divi
|
8 |
+
*/
|
9 |
+
|
10 |
+
defined( 'ABSPATH' ) || die();
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Set up our popup integration.
|
14 |
+
*/
|
15 |
+
class Popups_For_Divi_Onboarding {
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Hook up the module.
|
19 |
+
*
|
20 |
+
* @since 1.6.0
|
21 |
+
* @return void
|
22 |
+
*/
|
23 |
+
public function __construct() {
|
24 |
+
if ( ! is_admin() ) {
|
25 |
+
return;
|
26 |
+
}
|
27 |
+
|
28 |
+
// This action only fires on the main wp-admin Dashboard page.
|
29 |
+
add_action(
|
30 |
+
'load-index.php',
|
31 |
+
array( $this, 'init_onboarding' )
|
32 |
+
);
|
33 |
+
|
34 |
+
add_action(
|
35 |
+
'wp_ajax_pfd_hide_onboarding',
|
36 |
+
array( $this, 'ajax_hide_onboarding' )
|
37 |
+
);
|
38 |
+
|
39 |
+
add_action(
|
40 |
+
'wp_ajax_pfd_start_course',
|
41 |
+
array( $this, 'ajax_start_course' )
|
42 |
+
);
|
43 |
+
}
|
44 |
+
|
45 |
+
/**
|
46 |
+
* Initialize the onboarding process.
|
47 |
+
*
|
48 |
+
* @since 1.6.0
|
49 |
+
* @return void
|
50 |
+
*/
|
51 |
+
public function init_onboarding() {
|
52 |
+
if ( defined( 'DISABLE_NAG_NOTICES' ) && DISABLE_NAG_NOTICES ) {
|
53 |
+
return;
|
54 |
+
}
|
55 |
+
|
56 |
+
if ( ! defined( 'DIVI_POPUP_ONBOARDING_CAP' ) ) {
|
57 |
+
// By default display the onboarding notice to all users who can
|
58 |
+
// activate plugins (i.e. administrators).
|
59 |
+
define( 'DIVI_POPUP_ONBOARDING_CAP', 'activate_plugins' );
|
60 |
+
}
|
61 |
+
|
62 |
+
$user = wp_get_current_user();
|
63 |
+
|
64 |
+
if ( ! $user->has_cap( DIVI_POPUP_ONBOARDING_CAP ) ) {
|
65 |
+
return;
|
66 |
+
}
|
67 |
+
|
68 |
+
if ( 'done' === $user->get( '_pfd_onboarding' ) ) {
|
69 |
+
return;
|
70 |
+
}
|
71 |
+
|
72 |
+
add_action(
|
73 |
+
'admin_notices',
|
74 |
+
array( $this, 'onboarding_notice' ),
|
75 |
+
1
|
76 |
+
);
|
77 |
+
}
|
78 |
+
|
79 |
+
/**
|
80 |
+
* Ajax handler: Permanently close the onboarding notice.
|
81 |
+
*
|
82 |
+
* @since 1.6.0
|
83 |
+
* @return void
|
84 |
+
*/
|
85 |
+
public function ajax_hide_onboarding() {
|
86 |
+
// phpcs:ignore
|
87 |
+
update_user_meta( get_current_user_id(), '_pfd_onboarding', 'done' );
|
88 |
+
|
89 |
+
wp_send_json_success();
|
90 |
+
}
|
91 |
+
|
92 |
+
/**
|
93 |
+
* Ajax handler: Subscribe the email address to our onboarding course.
|
94 |
+
*
|
95 |
+
* @since 1.6.0
|
96 |
+
* @return void
|
97 |
+
*/
|
98 |
+
public function ajax_start_course() {
|
99 |
+
// phpcs:ignore
|
100 |
+
$form = wp_unslash( $_POST );
|
101 |
+
|
102 |
+
$email = sanitize_email( trim( $form['email'] ) );
|
103 |
+
$name = sanitize_text_field( trim( $form['name'] ) );
|
104 |
+
|
105 |
+
// Send the subscription details to our website.
|
106 |
+
$resp = wp_remote_post(
|
107 |
+
'https://philippstracker.com/wp-admin/admin-post.php',
|
108 |
+
array(
|
109 |
+
'headers' => array(
|
110 |
+
'Content-Type' => 'application/x-www-form-urlencoded; charset=utf-8',
|
111 |
+
),
|
112 |
+
'body' => array(
|
113 |
+
'action' => 'pfd_start_onboarding',
|
114 |
+
'fname' => $name,
|
115 |
+
'email' => $email,
|
116 |
+
),
|
117 |
+
)
|
118 |
+
);
|
119 |
+
|
120 |
+
if ( is_wp_error( $resp ) ) {
|
121 |
+
wp_send_json_success( 'ERROR' );
|
122 |
+
}
|
123 |
+
|
124 |
+
$result = wp_remote_retrieve_body( $resp );
|
125 |
+
wp_send_json_success( $result );
|
126 |
+
}
|
127 |
+
|
128 |
+
/**
|
129 |
+
* Output the onboarding notice on th wp-admin Dashboard.
|
130 |
+
*
|
131 |
+
* This function intentionally outputs inline CSS and JS - since it's only
|
132 |
+
* displayed once, it does not make sense to store the CSS/JS in the browsers
|
133 |
+
* cache.
|
134 |
+
*
|
135 |
+
* @since 1.6.0
|
136 |
+
* @return void
|
137 |
+
*/
|
138 |
+
public function onboarding_notice() {
|
139 |
+
$user = wp_get_current_user();
|
140 |
+
|
141 |
+
?>
|
142 |
+
<div class="pfd-onboarding notice">
|
143 |
+
<p class="title"><?php _e( 'Thanks for using Popups for Divi', 'divi-popup' ); ?> 😊</p>
|
144 |
+
<div class="pfd-layout">
|
145 |
+
<p class="msg"><?php _e( 'We have created a short email course that helps you get the most out of <a href="https://wordpress.org/plugins/popups-for-divi/" target="_blank">Popups for Divi</a>. You will receive six short emails that help you to avoid common pitfalls and teach you some advanced use cases.', 'divi-popup' ); ?></p>
|
146 |
+
<div class="form">
|
147 |
+
<input
|
148 |
+
type="name"
|
149 |
+
class="name"
|
150 |
+
placeholder="Your first name"
|
151 |
+
/>
|
152 |
+
<input
|
153 |
+
type="email"
|
154 |
+
class="email"
|
155 |
+
placeholder="Your email address"
|
156 |
+
value="<?php echo esc_attr( $user->user_email ); ?>"
|
157 |
+
/>
|
158 |
+
<button class="button-primary submit">
|
159 |
+
<?php _e( 'Start The Course!', 'divi-popup' ); ?>
|
160 |
+
</button>
|
161 |
+
</div>
|
162 |
+
</div>
|
163 |
+
<p class="privacy"><?php _e( 'Only your name and email is sent to our website. We use the information to deliver the onboarding mails. Nothing else. <a href="https://philippstracker.com/privacy/" target="_blank">Privacy Policy</a>', 'divi-popup' ); ?></p>
|
164 |
+
<div class="loader"><span class="spinner is-active"></span></div>
|
165 |
+
<span class="notice-dismiss"><?php _e( 'Close forever', 'divi-popup' ); ?></span>
|
166 |
+
</div>
|
167 |
+
<style>
|
168 |
+
.wrap .notice.pfd-onboarding{position:relative;margin-bottom:4em;padding-bottom:0;border-left-color:#660099}
|
169 |
+
.pfd-onboarding .title{font-weight:600;color:#000;border-bottom:1px solid #eee;padding-bottom:.5em;padding-right:100px;margin-bottom:0}
|
170 |
+
.pfd-onboarding .form{text-align:center;position:relative;padding:.5em}
|
171 |
+
.pfd-onboarding .privacy{font-size:.9em;text-align:center;opacity:.6;position:absolute;left:0;right:0}
|
172 |
+
.pfd-onboarding .pfd-layout{display:flex;flex-wrap:wrap;position:relative}
|
173 |
+
.pfd-onboarding .form:before{content:'';position:absolute;right:-9px;left:-9px;top:0;bottom:1px;background:#9944cc linear-gradient(-45deg,#660099 0%,#9944cc 100%)!important;box-shadow:0 0 0 1px #0004 inset}
|
174 |
+
.pfd-onboarding .pfd-layout>*{flex:1 1 100%;align-self:center;z-index:10}
|
175 |
+
.pfd-onboarding input:focus,
|
176 |
+
.pfd-onboarding input,
|
177 |
+
.pfd-onboarding button.button-primary,
|
178 |
+
.pfd-onboarding button.button-primary:focus{display:block;width:80%;margin:12px auto;text-align:center;border-radius:0;height:30px;vertical-align:top;box-shadow:0 0 0 5px #fff3;outline:none;position:relative;z-index:10}
|
179 |
+
.pfd-onboarding input:focus,
|
180 |
+
.pfd-onboarding input{border:1px solid #0002;padding:5px 3px}
|
181 |
+
.pfd-onboarding .notice-dismiss:before{display:none}
|
182 |
+
.pfd-onboarding .msg{position:relative;z-index:20}
|
183 |
+
.pfd-onboarding .msg .dismiss{float:right}
|
184 |
+
.pfd-onboarding .msg strong{white-space:nowrap}
|
185 |
+
.pfd-onboarding .msg .emoji{width:3em!important;height:3em!important;vertical-align:middle!important;margin-right:1em!important;float:left}
|
186 |
+
.pfd-onboarding .loader{display:none;position:absolute;background:#fffc;z-index:50;left:0;top:0;right:0;bottom:0}
|
187 |
+
.pfd-onboarding.loading .loader{display:block}
|
188 |
+
.pfd-onboarding .loader .spinner{position:absolute;left:50%;top:50%;margin:0;transform:translate(-50%,-50%)}
|
189 |
+
|
190 |
+
@media (min-width: 783px) and (max-width: 1023px) {
|
191 |
+
.pfd-onboarding .form:before{right:-11px;left:-11px}
|
192 |
+
}
|
193 |
+
@media (min-width:1024px) {
|
194 |
+
.wrap .notice.pfd-onboarding{margin-bottom:2em;padding-right:0}
|
195 |
+
.pfd-onboarding .pfd-layout{flex-wrap:nowrap;overflow:hidden;padding:.5em 0}
|
196 |
+
.pfd-onboarding .pfd-layout>*{flex:0 0 50%}
|
197 |
+
.pfd-onboarding input:focus,
|
198 |
+
.pfd-onboarding input,
|
199 |
+
.pfd-onboarding button.button-primary,
|
200 |
+
.pfd-onboarding button.button-primary:focus{display:inline-block;width:auto;margin:5px}
|
201 |
+
.pfd-onboarding input:focus,
|
202 |
+
.pfd-onboarding input{width:32%}
|
203 |
+
.pfd-onboarding .form{position:static}
|
204 |
+
.pfd-onboarding .form:before{width:50%;right:0;left:auto;bottom:0}
|
205 |
+
.pfd-onboarding .form:after{content:'';position:absolute;right:50%;width:50px;height:50px;top:50%;background:#fff;transform:translate(50%,-50%) rotate(45deg) skew(20deg,20deg)}
|
206 |
+
}
|
207 |
+
</style>
|
208 |
+
<script>jQuery(function() {
|
209 |
+
var notice = jQuery('.pfd-onboarding.notice');
|
210 |
+
var msg = notice.find('.msg');
|
211 |
+
notice.on('click', '.notice-dismiss, .dismiss', dismissForever);
|
212 |
+
notice.find('.submit').on('click', startCourse);
|
213 |
+
function dismissForever() {
|
214 |
+
notice.addClass('loading');
|
215 |
+
jQuery.post(ajaxurl, {
|
216 |
+
action: 'pfd_hide_onboarding'
|
217 |
+
}, function() {
|
218 |
+
notice.removeClass('loading');
|
219 |
+
notice.fadeOut(400, function() {
|
220 |
+
notice.remove();
|
221 |
+
});
|
222 |
+
});
|
223 |
+
}
|
224 |
+
function startCourse() {
|
225 |
+
var email = notice.find('input.email').val().trim();
|
226 |
+
var name = notice.find('input.name').val().trim();
|
227 |
+
|
228 |
+
if (name.length<2) {
|
229 |
+
notice.find('input.name').focus();
|
230 |
+
return false;
|
231 |
+
}
|
232 |
+
if (email.length<5) {
|
233 |
+
notice.find('input.email').focus();
|
234 |
+
return false;
|
235 |
+
}
|
236 |
+
notice.addClass('loading');
|
237 |
+
jQuery.post(ajaxurl, {
|
238 |
+
action: 'pfd_start_course',
|
239 |
+
name: name,
|
240 |
+
email: email,
|
241 |
+
}, function(res) {
|
242 |
+
notice.removeClass('loading');
|
243 |
+
state = res && res.data ? res.data : '';
|
244 |
+
if ('OK'===state) {
|
245 |
+
msg.html("🎉 <?php echo _e( 'Congratulations! Please check your inbox and look for an email with the subject "<strong>Your Popups for Divi course is one click away!</strong>" to confirm your registration.', 'divi-popup' ); ?>");
|
246 |
+
msg.append("<br><a href='#' class='dismiss'><?php esc_html_e( 'Close this message', 'divi-popup' ); ?></a>");
|
247 |
+
}
|
248 |
+
else if ('DUPLICATE'===state) {
|
249 |
+
msg.html("<?php esc_html_e( 'It looks like you already signed up for this course... Please check your inbox or use a different email address', 'divi-popup' ); ?>");
|
250 |
+
}
|
251 |
+
else if ('INVALID_NAME'===state) {
|
252 |
+
msg.html("<?php esc_html_e( 'Our system says, your name is invalid. Please check your input', 'divi-popup' ); ?>");
|
253 |
+
}
|
254 |
+
else if ('INVALID_EMAIL'===state) {
|
255 |
+
msg.html("<?php esc_html_e( 'Our system rejected the email address. Please check your input', 'divi-popup' ); ?>");
|
256 |
+
}
|
257 |
+
else {
|
258 |
+
msg.html("<?php esc_html_e( 'Something went wrong, but we\'re not sure what. Please try again in a moment or contact us via the wp.org support forum', 'divi-popup' ); ?>");
|
259 |
+
}
|
260 |
+
});
|
261 |
+
}
|
262 |
+
})</script>
|
263 |
+
<?php
|
264 |
+
}
|
265 |
+
}
|
include/class-popups-for-divi.php
ADDED
@@ -0,0 +1,406 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Popups for Divi
|
4 |
+
* Main plugin instance/controller. The main popup logic is done in javascript,
|
5 |
+
* so we mainly need to make sure that our JS/CSS is loaded on the correctly.
|
6 |
+
*
|
7 |
+
* @package Popups_For_Divi
|
8 |
+
*/
|
9 |
+
|
10 |
+
defined( 'ABSPATH' ) || die();
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Set up our popup integration.
|
14 |
+
*/
|
15 |
+
class Popups_For_Divi {
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Hook up the module.
|
19 |
+
*
|
20 |
+
* @since 1.0.0
|
21 |
+
*/
|
22 |
+
public function __construct() {
|
23 |
+
add_filter(
|
24 |
+
'plugin_action_links_' . DIVI_POPUP_PLUGIN,
|
25 |
+
array( $this, 'plugin_add_settings_link' )
|
26 |
+
);
|
27 |
+
|
28 |
+
add_filter(
|
29 |
+
'plugin_row_meta',
|
30 |
+
array( $this, 'plugin_row_meta' ),
|
31 |
+
10, 4
|
32 |
+
);
|
33 |
+
|
34 |
+
// Do not load the JS library, when the Pro version is active.
|
35 |
+
if ( defined( 'DIVI_AREAS_PLUGIN' ) ) {
|
36 |
+
return;
|
37 |
+
}
|
38 |
+
|
39 |
+
add_action(
|
40 |
+
'wp_enqueue_scripts',
|
41 |
+
array( $this, 'enqueue_scripts' )
|
42 |
+
);
|
43 |
+
|
44 |
+
// Load the onboarding wizard.
|
45 |
+
require_once __DIR__ . '/class-popups-for-divi-onboarding.php';
|
46 |
+
$this->onboarding = new Popups_For_Divi_Onboarding();
|
47 |
+
}
|
48 |
+
|
49 |
+
/**
|
50 |
+
* Display a custom link in the plugins list
|
51 |
+
*
|
52 |
+
* @since 1.0.2
|
53 |
+
* @param array $links List of plugin links.
|
54 |
+
* @return array New list of plugin links.
|
55 |
+
*/
|
56 |
+
public function plugin_add_settings_link( $links ) {
|
57 |
+
$links[] = sprintf(
|
58 |
+
'<a href="%s" target="_blank">%s</a>',
|
59 |
+
'https://philippstracker.com/divi-popup/',
|
60 |
+
__( 'How it works', 'divi-popup' )
|
61 |
+
);
|
62 |
+
return $links;
|
63 |
+
}
|
64 |
+
|
65 |
+
/**
|
66 |
+
* Display additional details in the right column of the "Plugins" page.
|
67 |
+
*
|
68 |
+
* @since 1.6.0
|
69 |
+
* @param string[] $plugin_meta An array of the plugin's metadata,
|
70 |
+
* including the version, author,
|
71 |
+
* author URI, and plugin URI.
|
72 |
+
* @param string $plugin_file Path to the plugin file relative to the plugins directory.
|
73 |
+
* @param array $plugin_data An array of plugin data.
|
74 |
+
* @param string $status Status of the plugin. Defaults are 'All', 'Active',
|
75 |
+
* 'Inactive', 'Recently Activated', 'Upgrade', 'Must-Use',
|
76 |
+
* 'Drop-ins', 'Search'.
|
77 |
+
*/
|
78 |
+
public function plugin_row_meta( $plugin_meta, $plugin_file, $plugin_data, $status ) {
|
79 |
+
if ( DIVI_POPUP_PLUGIN !== $plugin_file ) {
|
80 |
+
return $plugin_meta;
|
81 |
+
}
|
82 |
+
|
83 |
+
$plugin_meta[] = sprintf(
|
84 |
+
'<a href="%s" target="_blank">%s</a>',
|
85 |
+
'https://philippstracker.com/divi-areas-pro/',
|
86 |
+
__( 'Divi Areas <strong>Pro</strong>', 'divi-popup' )
|
87 |
+
);
|
88 |
+
|
89 |
+
return $plugin_meta;
|
90 |
+
}
|
91 |
+
|
92 |
+
/**
|
93 |
+
* Add the CSS/JS support to the front-end to make the popups work.
|
94 |
+
*
|
95 |
+
* @since 1.0.0
|
96 |
+
*/
|
97 |
+
public function enqueue_scripts() {
|
98 |
+
if ( defined( 'DOING_CRON' ) && DOING_CRON ) {
|
99 |
+
return;
|
100 |
+
}
|
101 |
+
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
|
102 |
+
return;
|
103 |
+
}
|
104 |
+
|
105 |
+
// phpcs:ignore
|
106 |
+
if ( isset( $_GET['et_pb_preview'] ) && isset( $_GET['et_pb_preview_nonce'] ) ) {
|
107 |
+
return;
|
108 |
+
}
|
109 |
+
$cache_version = DIVI_POPUP_VERSION;
|
110 |
+
|
111 |
+
if ( function_exists( 'et_fb_is_enabled' ) ) {
|
112 |
+
$is_divi_v3 = true;
|
113 |
+
add_filter( 'evr_divi_popup-build_mode', 'et_fb_is_enabled' );
|
114 |
+
} else {
|
115 |
+
$is_divi_v3 = false;
|
116 |
+
}
|
117 |
+
|
118 |
+
$config = array();
|
119 |
+
|
120 |
+
// -- Modify UI of popups --
|
121 |
+
|
122 |
+
/**
|
123 |
+
* The base z-index. This z-index is used for the overlay, every
|
124 |
+
* popup has a z-index increased by 1:
|
125 |
+
*/
|
126 |
+
$config['zIndex'] = 100000;
|
127 |
+
|
128 |
+
/**
|
129 |
+
* Speed of the fade-in/out animations. Set this to 0 to disable fade-in/out.
|
130 |
+
*/
|
131 |
+
$config['animateSpeed'] = 400;
|
132 |
+
|
133 |
+
// -- Modify triggers and behavior --
|
134 |
+
|
135 |
+
/**
|
136 |
+
* A class-name prefix that can be used in *any* element to trigger
|
137 |
+
* the given popup. Default prefix is 'show-popup-', so we could
|
138 |
+
* add the class 'show-popup-demo' to an image. When this image is
|
139 |
+
* clicked, the popup "#demo" is opened.
|
140 |
+
* The prefix must have 3 characters or more.
|
141 |
+
*
|
142 |
+
* Example:
|
143 |
+
* <span class="show-popup-demo">Click here to show #demo</span>
|
144 |
+
*
|
145 |
+
* @since 1.3.0
|
146 |
+
*/
|
147 |
+
$config['triggerClassPrefix'] = 'show-popup-';
|
148 |
+
|
149 |
+
/**
|
150 |
+
* Alternate popup trigger via data-popup attribute.
|
151 |
+
*
|
152 |
+
* Example:
|
153 |
+
* <span data-popup="demo">Click here to show #demo</span>
|
154 |
+
*/
|
155 |
+
$config['idAttrib'] = 'data-popup';
|
156 |
+
|
157 |
+
/**
|
158 |
+
* Class that indicates a modal popup. A modal popup can only
|
159 |
+
* be closed via a close button, not by clicking on the overlay.
|
160 |
+
*/
|
161 |
+
$config['modalIndicatorClass'] = 'is-modal';
|
162 |
+
|
163 |
+
/**
|
164 |
+
* This changes the default close-button state when a popup does
|
165 |
+
* not specify noCloseClass or withCloseClass
|
166 |
+
*
|
167 |
+
* @since 1.1.0
|
168 |
+
*/
|
169 |
+
$config['defaultShowCloseButton'] = true;
|
170 |
+
|
171 |
+
/**
|
172 |
+
* Add this class to the popup section to show the close button
|
173 |
+
* in the top right corner.
|
174 |
+
*
|
175 |
+
* @since 1.1.0
|
176 |
+
*/
|
177 |
+
$config['withCloseClass'] = 'with-close';
|
178 |
+
|
179 |
+
/**
|
180 |
+
* Add this class to the popup section to hide the close button
|
181 |
+
* in the top right corner.
|
182 |
+
*
|
183 |
+
* @since 1.1.0
|
184 |
+
*/
|
185 |
+
$config['noCloseClass'] = 'no-close';
|
186 |
+
|
187 |
+
/**
|
188 |
+
* Name of the class that closes the currently open popup. By default
|
189 |
+
* this is "close".
|
190 |
+
*
|
191 |
+
* @since 1.3.0
|
192 |
+
*/
|
193 |
+
$config['triggerCloseClass'] = 'close';
|
194 |
+
|
195 |
+
/**
|
196 |
+
* Name of the class that marks a popup as "singleton". A "singleton" popup
|
197 |
+
* will close all other popups when it is opened/focused. By default this
|
198 |
+
* is "single".
|
199 |
+
*
|
200 |
+
* @since 1.4.0
|
201 |
+
*/
|
202 |
+
$config['singletonClass'] = 'single';
|
203 |
+
|
204 |
+
/**
|
205 |
+
* Name of the class that activates the dark mode (dark close button) of the
|
206 |
+
* popup.
|
207 |
+
*
|
208 |
+
* @since 1.6.0
|
209 |
+
*/
|
210 |
+
$config['darkModeClass'] = 'dark';
|
211 |
+
|
212 |
+
/**
|
213 |
+
* Name of the class that removes the box-shadow from the popup.
|
214 |
+
*
|
215 |
+
* @since 1.6.0
|
216 |
+
*/
|
217 |
+
$config['noShadowClass'] = 'no-shadow';
|
218 |
+
|
219 |
+
/**
|
220 |
+
* Name of the class that changes the popups close button layout.
|
221 |
+
*
|
222 |
+
* @since 1.6.0
|
223 |
+
*/
|
224 |
+
$config['altCloseClass'] = 'close-alt';
|
225 |
+
|
226 |
+
/**
|
227 |
+
* CSS selector used to identify popups.
|
228 |
+
* Each popup must also have a unique ID attribute that
|
229 |
+
* identifies the individual popups.
|
230 |
+
*/
|
231 |
+
$config['popupSelector'] = '.et_pb_section.popup';
|
232 |
+
|
233 |
+
/**
|
234 |
+
* Whether to wait for an JS event-trigger before initializing
|
235 |
+
* the popup module in front end. This is automatically set
|
236 |
+
* for the Divi theme.
|
237 |
+
*
|
238 |
+
* If set to false, the popups will be initialized instantly when the JS
|
239 |
+
* library is loaded.
|
240 |
+
*
|
241 |
+
* @since 1.2.0
|
242 |
+
*/
|
243 |
+
$config['initializeOnEvent'] = (
|
244 |
+
$is_divi_v3
|
245 |
+
? 'et_pb_after_init_modules' // Divi 3.0+ detected.
|
246 |
+
: false // Older Divi or other themes.
|
247 |
+
);
|
248 |
+
|
249 |
+
// -- CSS classes that control layout --
|
250 |
+
|
251 |
+
/**
|
252 |
+
* All popups are wrapped in a new div element. This is the
|
253 |
+
* class name of this wrapper div.
|
254 |
+
*
|
255 |
+
* @since 1.2.0
|
256 |
+
*/
|
257 |
+
$config['popupWrapperClass'] = 'popup_outer_wrap';
|
258 |
+
|
259 |
+
/**
|
260 |
+
* CSS class that is added to the popup when it enters
|
261 |
+
* full-width mode (i.e. on small screens)
|
262 |
+
*/
|
263 |
+
$config['fullWidthClass'] = 'popup_full_width';
|
264 |
+
|
265 |
+
/**
|
266 |
+
* CSS class that is added to the popup when it enters
|
267 |
+
* full-height mode (i.e. on small screens)
|
268 |
+
*/
|
269 |
+
$config['fullHeightClass'] = 'popup_full_height';
|
270 |
+
|
271 |
+
/**
|
272 |
+
* CSS class that is added to the website body when at least
|
273 |
+
* one popup is visible.
|
274 |
+
*/
|
275 |
+
$config['openPopupClass'] = 'evr_popup_open';
|
276 |
+
|
277 |
+
/**
|
278 |
+
* CSS class that is added to the modal overlay that is
|
279 |
+
* displayed while at least one popup is visible.
|
280 |
+
*/
|
281 |
+
$config['overlayClass'] = 'evr_fb_popup_modal';
|
282 |
+
|
283 |
+
/**
|
284 |
+
* Class that adds an exit-intent trigger to the popup.
|
285 |
+
* The exit intent popup is additionally triggered, when the
|
286 |
+
* mouse pointer leaves the screen towards the top.
|
287 |
+
* It's only triggered once.
|
288 |
+
*/
|
289 |
+
$config['exitIndicatorClass'] = 'on-exit';
|
290 |
+
|
291 |
+
/**
|
292 |
+
* Defines the delay for reacting to exit-intents.
|
293 |
+
* Default is 2000, which means that an exit intent during the first two
|
294 |
+
* seconds after page load is ignored.
|
295 |
+
*
|
296 |
+
* @since 1.5.1
|
297 |
+
*/
|
298 |
+
$config['onExitDelay'] = 2000;
|
299 |
+
|
300 |
+
/**
|
301 |
+
* Class to hide a popup on mobile devices.
|
302 |
+
* Used for non-Divi themes or when creating popups via DiviPopup.register().
|
303 |
+
*
|
304 |
+
* @since 1.5.0
|
305 |
+
*/
|
306 |
+
$config['notMobileClass'] = 'not-mobile';
|
307 |
+
|
308 |
+
/**
|
309 |
+
* Class to hide a popup on tablet devices.
|
310 |
+
* Used for non-Divi themes or when creating popups via DiviPopup.register().
|
311 |
+
*
|
312 |
+
* @since 1.5.0
|
313 |
+
*/
|
314 |
+
$config['notTabletClass'] = 'not-tablet';
|
315 |
+
|
316 |
+
/**
|
317 |
+
* Class to hide a popup on desktop devices.
|
318 |
+
* Used for non-Divi themes or when creating popups via DiviPopup.register().
|
319 |
+
*
|
320 |
+
* @since 1.5.0
|
321 |
+
*/
|
322 |
+
$config['notDesktopClass'] = 'not-desktop';
|
323 |
+
|
324 |
+
/**
|
325 |
+
* The parent container which holds all popups. For most Divi sites
|
326 |
+
* this could be "#page-container", but some child themes do not
|
327 |
+
* adhere to this convention.
|
328 |
+
* When a valid Divi theme is detected by the JS library, it will switch from
|
329 |
+
* 'body' to '#page-container'. To avoid this, simply use
|
330 |
+
*
|
331 |
+
* @since 1.3.0
|
332 |
+
*/
|
333 |
+
$config['baseContext'] = 'body';
|
334 |
+
|
335 |
+
/**
|
336 |
+
* This class is added to the foremost popup; this is useful to
|
337 |
+
* hide/fade popups in the background.
|
338 |
+
*
|
339 |
+
* @since 1.1.0
|
340 |
+
*/
|
341 |
+
$config['activePopupClass'] = 'is-open';
|
342 |
+
|
343 |
+
/**
|
344 |
+
* This is the class-name of the close button that is
|
345 |
+
* automatically added to the popup. Only change this, if you
|
346 |
+
* want to use existing CSS or when the default class causes a
|
347 |
+
* conflict with your existing code.
|
348 |
+
*
|
349 |
+
* Note: The button is wrapped in a span which gets the class-
|
350 |
+
* name `closeButtonClass + "_wrap"` e.g. "evr-close_wrap"
|
351 |
+
*
|
352 |
+
* @since 1.1.0
|
353 |
+
*/
|
354 |
+
$config['closeButtonClass'] = 'evr-close';
|
355 |
+
|
356 |
+
/**
|
357 |
+
* Display debug output in the JS console.
|
358 |
+
*
|
359 |
+
* @since 1.3.0 Default value is WP_DEBUG. Before it, default was false.
|
360 |
+
*/
|
361 |
+
$config['debug'] = defined( WP_DEBUG ) ? WP_DEBUG : false;
|
362 |
+
|
363 |
+
// -- End of default configuration.
|
364 |
+
$js_data = apply_filters( 'evr_divi_popup-js_data', $config ); // phpcs:ignore
|
365 |
+
|
366 |
+
if ( apply_filters( 'evr_divi_popup-build_mode', false ) ) { // phpcs:ignore
|
367 |
+
$base_name = 'builder';
|
368 |
+
$inline_css = '';
|
369 |
+
} else {
|
370 |
+
$base_name = 'front';
|
371 |
+
$inline_css = sprintf(
|
372 |
+
'.et_pb_section%s{display:none}',
|
373 |
+
$js_data['popupSelector']
|
374 |
+
);
|
375 |
+
}
|
376 |
+
|
377 |
+
if ( $js_data['debug'] ) {
|
378 |
+
$cache_version .= '-' . time();
|
379 |
+
}
|
380 |
+
|
381 |
+
wp_register_script(
|
382 |
+
'js-divi-popup',
|
383 |
+
plugins_url( 'js/' . $base_name . '.js', dirname( __FILE__ ) ),
|
384 |
+
array( 'jquery' ),
|
385 |
+
$cache_version,
|
386 |
+
true
|
387 |
+
);
|
388 |
+
|
389 |
+
wp_register_style(
|
390 |
+
'css-divi-popup',
|
391 |
+
plugins_url( 'css/' . $base_name . '.css', dirname( __FILE__ ) ),
|
392 |
+
array(),
|
393 |
+
$cache_version,
|
394 |
+
'all'
|
395 |
+
);
|
396 |
+
|
397 |
+
wp_localize_script( 'js-divi-popup', 'DiviPopupData', $js_data );
|
398 |
+
|
399 |
+
wp_enqueue_script( 'js-divi-popup' );
|
400 |
+
wp_enqueue_style( 'css-divi-popup' );
|
401 |
+
|
402 |
+
if ( $inline_css ) {
|
403 |
+
wp_add_inline_style( 'css-divi-popup', $inline_css );
|
404 |
+
}
|
405 |
+
}
|
406 |
+
}
|
js/builder.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=9)}({10:function(e,n,t){"use strict";window.parent&&window.parent!==window&&window.parent.DiviPopupBuilder?window.DiviPopupBuilder=window.parent.DiviPopupBuilder:window.DiviPopupBuilder=new function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e)}},11:function(e,n,t){},9:function(e,n,t){t(10),e.exports=t(11)}});
|
js/front.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(e){var t={};function a(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=e,a.c=t,a.d=function(e,t,o){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(a.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(o,i,function(t){return e[t]}.bind(null,i));return o},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=3)}([function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getContext=n,t.getOption=r,t.findTriggers=function(e,t){var a,o,i,n=[];if(!e.ids)return[];function r(e,t){var a;for(a=0;a<t.length;a++)n.push({id:e,item:jQuery(t[a])})}for(a=0;a<e.ids.length;a++)if(r(i=e.ids[a].replace(/^#/,""),jQuery('[href="#'+i+'"]',t)),e.linkPrefix&&r(i,jQuery('[href="#'+e.linkPrefix+i+'"]',t)),e.classPrefix&&r(i,jQuery("."+e.classPrefix+i,t)),e.dataAttrib&&r(i,jQuery("["+e.dataAttrib+'="'+i+'"]',t)),window.et_link_options_data)for(o=et_link_options_data.length-1;o>=0;o--)if("#"+i===et_link_options_data[o].url){var s=jQuery(".et_pb_module."+et_link_options_data[o].class,t);r(i,s),s.off("click"),et_link_options_data.splice(o,1)}return n},t.debug=s,t.error=p,t.toBool=function(e,t){void 0===t&&(t=!0);if(void 0===e||null===e)return!!t;if(!0===e||!1===e)return e;"string"==typeof e&&(e=e.toLowerCase());if(0===e||"0"===e||"n"===e[0]||"f"===e[0]||"off"===e)return!1;if(1===e||"1"===e||"y"===e[0]||"t"===e[0]||"on"===e)return!0;return!!t},t.setLocalData=function(e,t,a){(!a||isNaN(a)||a<1)&&(a=525600);if(window.localStorage){var o=new Date;o=o.setMinutes(o.getMinutes()+a),localStorage.setItem("_da_"+e,o+":"+t)}else l("_da_"+e,t,a)},t.getLocalData=function(e){if(window.localStorage){var t=localStorage.getItem("_da_"+e);if(!t)return!1;var a=t.split(":"),o=parseInt(a.shift()),i=a.join(":");return o>new Date?i:(localStorage.removeItem("_da_"+e),!1)}return d("_da_"+e)},t.setCookie=l,t.getCookie=d,t.addObservers=function(e,t,a,o){var r=window.MutationObserver||window.WebKitMutationObserver,s=window.ResizeObserver||window.WebKitResizeObserver,p=window.addEventListener,l=n();if(r){var d=new r(function(e,a){(e[0].addedNodes.length||e[0].removedNodes.length)&&t()});d.observe(l[0],{childList:!0,subtree:!0})}else p&&(l.addEventListener("DOMNodeInserted",t,!1),l.addEventListener("DOMNodeRemoved",t,!1));s?i[e]=new s(a):window.setInterval(a,750);jQuery(window).resize(a),jQuery(document).on("keyup",o)},t.addAdditionalResizeObserver=function(e,t){i[e]&&!t.data("observe-resize")&&(i[e].observe(t[0]),t.data("observe-resize",!0))},t.removeAdditionalResizeObserver=function(e,t){i[e]&&t.data("observe-resize")&&(i[e].unobserve(t[0]),t.data("observe-resize",!1))};var o=null,i={};function n(){return o}function r(e){return DiviPopupData[e]}function s(){r("debug")&&console.log.apply(this,arguments)}function p(){console.error.apply(this,arguments)}function l(e,t,a){var o=escape(t);if(a){var i=new Date;i.setMinutes(i.getMinutes()+a),o+="; expires="+i.toUTCString()}document.cookie=e+"="+o+"; path=/"}function d(e){var t,a,o,i=document.cookie.split(";");for(t=0;t<i.length;t++)if(a=i[t].substr(0,i[t].indexOf("=")),o=i[t].substr(i[t].indexOf("=")+1),(a=a.replace(/^\s+|\s+$/g,""))===e)return unescape(o);return!1}!function(){var e={popupSelector:".et_pb_section.popup",fullWidthClass:"popup_full_width",fullHeightClass:"popup_full_height",openPopupClass:"evr_popup_open",overlayClass:"evr_fb_popup_modal",modalIndicatorClass:"is-modal",exitIndicatorClass:"on-exit",activePopupClass:"is-open",noCloseClass:"no-close",altCloseClass:"close-alt",notMobileClass:"not-mobile",notTabletClass:"not-tablet",notDesktopClass:"not-desktop",withCloseClass:"with-close",singletonClass:"single",darkModeClass:"dark",noShadowClass:"with-shadow",closeButtonClass:"evr-close",defaultShowCloseButton:!0,idAttrib:"data-popup",triggerClassPrefix:"show-popup-",baseContext:"body",triggerCloseClass:"close",zIndex:1e5,onExitDelay:2e3,animateSpeed:300,debug:!1,initializeOnEvent:"et_pb_after_init_modules"};if(window.DiviPopupData)for(var t in e)void 0===DiviPopupData[t]&&(DiviPopupData[t]=e[t]),DiviPopupData[t].replace&&(DiviPopupData[t]=DiviPopupData[t].replace(/^[\s\xA0]+|[\s\xA0]+$/g,""));else window.DiviPopupData=e;DiviPopupData.zIndex=parseInt(DiviPopupData.zIndex),DiviPopupData.onExitDelay=parseInt(DiviPopupData.onExitDelay),DiviPopupData.animateSpeed=parseInt(DiviPopupData.animateSpeed),DiviPopupData.debug=!!DiviPopupData.debug,DiviPopupData.defaultShowCloseButton=!!DiviPopupData.defaultShowCloseButton,(!DiviPopupData.triggerClassPrefix||DiviPopupData.triggerClassPrefix.length<3)&&(DiviPopupData.triggerClassPrefix=!1),"body"===DiviPopupData.baseContext&&1===jQuery("body.et_divi_theme #page-container").length&&(s("Divi theme detected. Use #page-container instead of body"),DiviPopupData.baseContext="#page-container"),"body"===DiviPopupData.baseContext||jQuery(DiviPopupData.baseContext).length||(DiviPopupData.baseContext="body"),jQuery(document).trigger("DiviPopup:OptionsReady")}(),(o=jQuery(r("baseContext"))).length||p('Could not find the popup container "'+r("baseContext")+'"')},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getId=p,t.getRealId=l,t.addAltId=function(e,t){if(e===t)return;t=p(t),null===e?delete s[t]:s[t]=e},t.getArea=d,t.registerArea=function(e,t,a){void 0===r[e]&&(r[e]=[]);if(!(t=p(t)))return!1;var s=d(t);if(s)return s;var l=jQuery(t);if(!l.length)return!1;a&&(l=l.filter(a));if(!l||1!==l.length)return!1;"inline"===e?l.attr("data-visible","yes"):(l.detach(),l.attr("data-visible","no"));l.addClass(e),l.data("_id",t),l.data("_type",e),(0,o.attachCloseButton)(l),jQuery(document).trigger("DiviArea:Init",l),l.trigger("DiviArea:Init"),"popup"===e&&(jQuery(document).trigger("DiviPopup:Init",l),l.trigger("DiviPopup:Init"));n[t]=l,l.hasClass((0,i.getOption)("notMobileClass"))?l.data("on-mobile",!1):l.data("on-mobile",(0,i.toBool)(l.data("on-mobile")));l.hasClass((0,i.getOption)("notTabletClass"))?l.data("on-tablet",!1):l.data("on-tablet",(0,i.toBool)(l.data("on-tablet")));l.hasClass((0,i.getOption)("notDesktopClass"))?l.data("on-desktop",!1):l.data("on-desktop",(0,i.toBool)(l.data("on-desktop")));l.hasClass((0,i.getOption)("withCloseClass"))?l.data("show-close",!0):l.hasClass((0,i.getOption)("noCloseClass"))?l.data("show-close",!1):l.data("show-close",(0,i.toBool)(l.data("show-close")));l.hasClass((0,i.getOption)("altCloseClass"))?l.data("close-alt",!0):l.data("close-alt",(0,i.toBool)(l.data("close-alt"),!1));l.hasClass((0,i.getOption)("modalIndicatorClass"))?l.data("is-modal",!0):l.data("is-modal",(0,i.toBool)(l.data("is-modal"),!1));l.hasClass((0,i.getOption)("exitIndicatorClass"))?l.data("trigger-exit",!0):l.data("trigger-exit",(0,i.toBool)(l.data("trigger-exit"),!1));l.hasClass((0,i.getOption)("noShadowClass"))?l.data("no-shadow",!0):l.data("no-shadow",(0,i.toBool)(l.data("no-shadow"),!1));l.hasClass((0,i.getOption)("darkModeClass"))?l.data("dark-mode",!0):l.data("dark-mode",(0,i.toBool)(l.data("dark-mode"),!1));l.hasClass((0,i.getOption)("singletonClass"))?l.data("singleton",!0):l.data("singleton",(0,i.toBool)(l.data("singleton"),!1));return(0,o.configArea)(l),(0,i.debug)("[+] Registered new area:",t),l},t.getAllIds=function(e){var t=[];for(var a in n){var o=n[a];e===o.data("_type")&&t.push(a)}for(var i in s){var r=s[i],p=n[r];e===p.data("_type")&&t.push(i)}return t},t.loopAllAreas=function(e,t){for(var a in n){var o=n[a];e===o.data("_type")&&t(o,a)}},t.countVisibleAreas=function(e){if(void 0===r[e])return 0;return r[e].length},t.addVisibleArea=function(e,t){void 0===r[e]&&(r[e]=[]);r[e].push(t)},t.removeVisibleArea=function(e,t){if(void 0===r[e])return!1;for(var a=r[e].length-1;a>=0;a--){var o=r[e][a];t===o.data("_id")&&r[e].splice(a,1)}},t.getVisibleArea=function(e,t){if(void 0===r[e])return!1;if(void 0===t||-1===t)return r[e][r[e].length-1];if(t)for(var a=0;a<r[e].length;a++)if(t===r[e][a].data("_id"))return r[e][a];return!1},t.loopVisibleAreas=function(e,t){if(void 0===r[e])return!1;for(var a=0;a<r[e].length;a++){var o=r[e][a];t(o,a)}};var o=a(2),i=a(0),n={},r={},s={};function p(e,t){if(e instanceof jQuery){if(e.data("_id"))return e.data("_id");e=e.attr("id")}if(!e)return"";if("#"!==e[0]&&(e="#"+e),t){var a=new RegExp("^#"+t+":");e=e.replace(a,"#",e)}return e?e.toString():""}function l(e){var t=p(e),a=p(s[t]);return void 0!==n[t]?t:void 0!==n[a]?a:""}function d(e){if(e instanceof jQuery)return!!e.data("_id")&&e;var t=l(e);return!!t&&n[t]}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.attachCloseButton=function(e){var t=(0,n.getOption)("closeButtonClass"),a=t+"_wrap",o=(0,n.getOption)("noCloseClass"),i=(0,n.getOption)("withCloseClass");if(e.find("."+a).length)return;var r=jQuery("<span />").addClass(a),s=jQuery('<a href="#close" />').addClass(t);s.html("×"),s.appendTo(r),r.appendTo(e),e.hasClass(o)||e.hasClass(i)||((0,n.getOption)("defaultShowCloseButton")?e.addClass(i):e.addClass(o));s.on("click",function(){jQuery(document).trigger("DiviArea:Close",e),e.trigger("DiviArea:Close")}),(0,n.debug)("-> Added a close button to area",e.attr("data-id"))},t.checkViewport=function(e){var t=!0,a=jQuery(window).innerWidth();t=a<768?!!e.data("on-mobile"):a<981?!!e.data("on-tablet"):!!e.data("on-desktop");return t},t.triggerLazyLoad=function(e){jQuery("body").trigger("post-load")},t.triggerAnimations=function(e){void 0!==window.et_reinit_waypoint_modules&&window.et_reinit_waypoint_modules()},t.initRecaptcha=function(e){if(!window.grecaptcha)return;if(!e.find('input[name="g-recaptcha-response"]').length)return;if(e.find("[data-sitekey].g-recaptcha").length>0)e.find("form").each(function(){var e=jQuery(this),t=e.find("[data-sitekey].g-recaptcha");if(t.length&&!e.find('iframe[src*="/recaptcha/"]').length){var a={sitekey:t.attr("data-sitekey"),type:t.attr("data-type"),size:t.attr("data-size"),theme:t.attr("data-theme"),badge:t.attr("data-badge"),tabindex:t.attr("data-tabindex")},o=t.attr("data-callback"),i=t.attr("data-expired-callback");o&&"function"==typeof window[o]&&(a.callback=window[o]),i&&"function"==typeof window[i]&&(a["expired-callback"]=window[i]);var n=grecaptcha.render(t[0],a);window.recaptchaWidgets&&recaptchaWidgets.push(n)}});else{var t=jQuery('script[src*="google.com/recaptcha/api.js"]').attr("src"),a=t.replace(/^.*render=(.*)$/,"$1").split("&")[0];grecaptcha.execute(a,{action:"homepage"}).then(function(t){e.find('form [name="g-recaptcha-response]').val(t)})}},t.configArea=function(e,t,a){var r,s,p=(0,i.getArea)(e);if(!p||1!==p.length)return;if(r=p.data("_id"),"object"===(void 0===t?"undefined":o(t))){for(var l in t)t.hasOwnProperty(l)&&DiviPopup.config(p,l,t[l]);return}if(void 0!==t){if("string"!=typeof t)return;switch(t=t.trim().toLowerCase().replace("-","")){case"notmobile":s=(0,n.toBool)(p.data("on-mobile")),p.data("on-mobile",!(0,n.toBool)(a,!s));break;case"onmobile":s=(0,n.toBool)(p.data("on-mobile")),p.data("on-mobile",(0,n.toBool)(a,s));break;case"nottablet":s=(0,n.toBool)(p.data("on-tablet")),p.data("on-tablet",!(0,n.toBool)(a,!s));break;case"ontablet":s=(0,n.toBool)(p.data("on-tablet")),p.data("on-tablet",(0,n.toBool)(a,s));break;case"notdesktop":s=(0,n.toBool)(p.data("on-desktop")),p.data("on-desktop",!(0,n.toBool)(a,!s));break;case"ondesktop":s=(0,n.toBool)(p.data("on-desktop")),p.data("on-desktop",(0,n.toBool)(a,s));break;case"triggerexit":p.data("trigger-exit",(0,n.toBool)(a));break;case"hideclose":p.data("show-close",!(0,n.toBool)(a));break;case"showclose":p.data("show-close",(0,n.toBool)(a));break;case"closealt":p.data("close-alt",(0,n.toBool)(a));break;case"ismodal":p.data("is-modal",(0,n.toBool)(a));break;case"notmodal":p.data("is-modal",!(0,n.toBool)(a));break;case"shadow":p.data("no-shadow",(0,n.toBool)(a));break;case"noshadow":p.data("no-shadow",!(0,n.toBool)(a));break;case"dark":p.data("dark-mode",(0,n.toBool)(a));break;case"width":p.data("width",a);break;case"singleton":p.data("singleton",(0,n.toBool)(a));break;case"ids":case"alternateid":Array.isArray(a)?a.forEach(function(e){return(0,i.addAltId)(r,e)}):(0,i.addAltId)(r,a)}}p.data("on-mobile")?p.removeClass((0,n.getOption)("notMobileClass")):p.addClass((0,n.getOption)("notMobileClass"));p.data("on-tablet")?p.removeClass((0,n.getOption)("notTabletClass")):p.addClass((0,n.getOption)("notTabletClass"));p.data("on-desktop")?p.removeClass((0,n.getOption)("notDesktopClass")):p.addClass((0,n.getOption)("notDesktopClass"));p.data("trigger-exit")?p.addClass((0,n.getOption)("exitIndicatorClass")):p.removeClass((0,n.getOption)("exitIndicatorClass"));p.data("show-close")?(p.addClass((0,n.getOption)("withCloseClass")),p.removeClass((0,n.getOption)("noCloseClass"))):(p.addClass((0,n.getOption)("noCloseClass")),p.removeClass((0,n.getOption)("withCloseClass")));p.data("close-alt")?p.addClass((0,n.getOption)("altCloseClass")):p.removeClass((0,n.getOption)("altCloseClass"));p.data("is-modal")?p.addClass((0,n.getOption)("modalIndicatorClass")):p.removeClass((0,n.getOption)("modalIndicatorClass"));p.data("no-shadow")?p.addClass((0,n.getOption)("noShadowClass")):p.removeClass((0,n.getOption)("noShadowClass"));p.data("dark-mode")?p.addClass((0,n.getOption)("darkModeClass")):p.removeClass((0,n.getOption)("darkModeClass"));p.data("singleton")?p.addClass((0,n.getOption)("singletonClass")):p.removeClass((0,n.getOption)("singletonClass"))};var i=a(1),n=a(0)},function(e,t,a){a(4),e.exports=a(8)},function(e,t,a){"use strict";var o=function(e){return e&&e.__esModule?e:{default:e}}(a(5));window.DiviPopup=new o.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var a=0;a<t.length;a++){var o=t[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,a,o){return a&&e(t.prototype,a),o&&e(t,o),t}}(),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=a(6),r=a(1),s=a(2),p=a(7),l=a(0);function d(){(0,l.debug)("Initialize popups-for-divi..."),jQuery(document).trigger("DiviPopup:Load");var e=y,t=g,a=f;(0,l.addObservers)("popup",e,t,a),window.setTimeout(function(){jQuery(window).on("mouseleave",c)},(0,l.getOption)("onExitDelay")),e(),jQuery(document).trigger("DiviPopup:Ready")}function u(){if((0,r.countVisibleAreas)("popup")){(0,r.loopAllAreas)("popup",function(e){e.hasClass((0,l.getOption)("activePopupClass"))&&(e.removeClass((0,l.getOption)("activePopupClass")),jQuery(document).trigger("DiviPopup:Blur",e),e.trigger("DiviPopup:Blur"))}),(0,r.loopVisibleAreas)("popup",function(e,t){var a=e.parent();a.hasClass((0,l.getOption)("popupWrapperClass"))||((a=jQuery("<div/>")).appendTo((0,l.getContext)()),a.addClass((0,l.getOption)("popupWrapperClass")),e.detach().appendTo(a)),a.css({zIndex:(0,l.getOption)("zIndex")+t})});var e=(0,r.getVisibleArea)("popup");"yes"!==e.attr("data-visible")&&(e.attr("data-visible","yes"),(0,n.animatePopup)(e,function(e){e.fadeIn((0,l.getOption)("animateSpeed"))}),jQuery(document).trigger("DiviPopup:Show",e),e.trigger("DiviPopup:Show")),e.addClass((0,l.getOption)("activePopupClass")),jQuery(document).trigger("DiviPopup:Focus",e),e.trigger("DiviPopup:Focus"),(0,l.addAdditionalResizeObserver)("popup",e),window.setTimeout(g,50),DiviPopup.showOverlay()}}function c(e){var t;"input"!==e.target.tagName.toLowerCase()&&"textarea"!==e.target.tagName.toLowerCase()&&"select"!==e.target.tagName.toLowerCase()&&(t=Math.max(document.documentElement.clientWidth,window.innerWidth||0),e.clientX>=t-50||e.clientY>=50||e.toElement||e.relatedTarget||((0,l.debug)("Popup exit-intent trigger"),(0,r.loopAllAreas)("popup",function(e,t){(0,l.debug)("Popup",(0,l.getOption)("exitIndicatorClass"),e),e.hasClass((0,l.getOption)("exitIndicatorClass"))&&DiviPopup.openPopup(t)})))}function g(){var e=parseInt(jQuery("html").css("marginTop")),t=jQuery(window).innerWidth(),a=jQuery(window).innerHeight()-e;(0,r.loopVisibleAreas)("popup",function(e){var o,i,n=e.parent();e.data("width")||(e.hasClass("et_pb_section")?e.data("width",e.outerWidth()):e.data("width",e.children(".et_pb_section").first().outerWidth()),e.attr("width",e.data("width"))),e.css({maxWidth:e.data("width")}),i=isNaN(e[0].scrollHeight)?e.innerHeight:e[0].scrollHeight,o=isNaN(e[0].scrollWidth)?e.innerWidth:e[0].scrollWidth,t<o+20?n.addClass((0,l.getOption)("fullWidthClass")):n.removeClass((0,l.getOption)("fullWidthClass")),a<i+20?n.addClass((0,l.getOption)("fullHeightClass")):n.removeClass((0,l.getOption)("fullHeightClass"))})}function f(e){if(27===e.keyCode)return!(0,r.countVisibleAreas)("popup")||((0,l.debug)("Handle [ESC] key: Close active popup"),DiviPopup.closePopup(),!1)}function v(){if(!(0,r.countVisibleAreas)("popup"))return!1;jQuery(document).trigger("DiviPopup:OverlayClick");var e=(0,r.getVisibleArea)("popup");if(e.length&&e.hasClass((0,l.getOption)("modalIndicatorClass")))return!1;DiviPopup.closePopup()}function h(e){return e.preventDefault(),e.stopPropagation(),(0,l.debug)("Click on popup close"),DiviPopup.closePopup(),!1}function b(e){var t=jQuery(this);return(0,l.debug)("Open popup: "+t.attr("data-popup-id")),e.preventDefault(),e.stopPropagation(),DiviPopup.openPopup(t.attr("data-popup-id")),!1}function m(e,t){var a=[],o=(e=jQuery(e)).data("_id"),n=o.replace(/^#/,""),s=[];function p(e){"object"===(void 0===e?"undefined":i(e))&&(e=e.data("_id")),e&&e.length&&("#"!==e[0]&&(e="#"+e),a.push(e))}(0,r.loopVisibleAreas)("popup",function(e){e.hasClass((0,l.getOption)("singletonClass"))?a.push(e.data("_id")):s.push(e.data("_id"))}),t?(a.push(o),o=!1):e.hasClass((0,l.getOption)("singletonClass"))&&(a=s,o=!1),t?(jQuery(document).triggerHandler("DiviPopup:BeforeHide",[e,s,p]),jQuery(document).triggerHandler("DiviPopup:BeforeHide:"+n,[e,s,p])):(jQuery(document).triggerHandler("DiviPopup:BeforeShow",[e,s,p]),jQuery(document).triggerHandler("DiviPopup:BeforeShow:"+e.attr("key"),[e,s,p])),a.length&&(0,l.debug)("Hide popups",a),(0,r.loopVisibleAreas)("popup",function(e){var t=e.data("_id");-1!==a.indexOf(t)&&function(e){e=jQuery(e),jQuery(document).trigger("DiviPopup:Hide",e),e.trigger("DiviPopup:Hide"),e.find("."+(0,l.getOption)("closeButtonClass")).off(".popup"),e.find("div ."+(0,l.getOption)("triggerCloseClass")).off(".popup"),e.find("div .popup-trigger").off(".popup"),(0,l.removeAdditionalResizeObserver)("popup",e);var t=e.parent();e.detach().hide().attr("data-visible","no"),t.hasClass((0,l.getOption)("popupWrapperClass"))&&t.remove();(0,r.removeVisibleArea)("popup",e.data("_id"))}(e)}),o&&(0,r.removeVisibleArea)("popup",o)}function C(e,t){var a,o,i;if(a=(0,r.getId)(t)){if(e.attr("data-popup-id"))return e.off(".popup"),e.on("click.popup",b),void(0,l.debug)("-> Trigger already linked with popup: "+i,e);o=DiviPopup.register(a,{selector:(0,l.getOption)("popupSelector")}),i=a.toLowerCase(),o?(e.attr("data-popup-id",i),e.addClass("popup-trigger"),e.on("click.popup",b),(0,l.debug)("-> Trigger linked to popup: "+i,e)):(0,l.debug)("-> Trigger has no popup",e)}else(0,l.debug)("-> Not a popup trigger",e)}function y(e){var t,a,o;for((0,l.debug)(" -- Activate triggers --"),void 0===e&&(e=(0,l.getContext)()),jQuery((0,l.getOption)("popupSelector"),e).each(function(){(0,l.debug)("Found a popup-selector, try to register it",this),DiviPopup.register(jQuery(this).attr("id"),{selector:(0,l.getOption)("popupSelector")})}),o=(0,l.findTriggers)({ids:(0,r.getAllIds)("popup"),linkPrefix:"popup:",dataAttrib:(0,l.getOption)("idAttrib"),classPrefix:(0,l.getOption)("triggerClassPrefix")},e),t=0;t<o.length;t++)C((a=o[t]).item,a.id)}var w=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(0,l.debug)("Load popups-for-divi..."),(0,l.getOption)("initializeOnEvent")?jQuery(window,document).on((0,l.getOption)("initializeOnEvent"),function(){window.setTimeout(d,1)}):window.setTimeout(d,1)}return o(e,[{key:"register",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(0,r.getArea)(e);if(a)return a;var o=(0,r.registerArea)("popup",e,t.selector);return!(!o||!o.length)&&((0,n.initializePopupAnimation)(o),Object.keys(t).forEach(function(e){(0,s.configArea)(o,e,t[e])}),o)}},{key:"config",value:function(e,t,a){(0,s.configArea)(e,t,a)}},{key:"openPopup",value:function(e){var t=(0,r.getArea)(e);return t&&t.length?(0,s.checkViewport)(t)?(m(t),t.removeClass((0,l.getOption)("exitIndicatorClass")),(0,l.debug)("Show popup and set event handlers:",e),function(e){e=jQuery(e),(0,r.addVisibleArea)("popup",e),y(e),e.find("div ."+(0,l.getOption)("triggerCloseClass")).off(".popup"),e.find("div ."+(0,l.getOption)("triggerCloseClass")).on("click.popup",h),e.find("div .popup-trigger").off(".popup"),e.find("div .popup-trigger").on("click.popup",b),e.hasClass((0,l.getOption)("withCloseClass"))&&(e.find("."+(0,l.getOption)("closeButtonClass")).off(".popup"),e.find("."+(0,l.getOption)("closeButtonClass")).on("click.popup",h))}(t),u(),window.setTimeout(function(){(0,s.triggerLazyLoad)(t),(0,s.triggerAnimations)(t),(0,s.initRecaptcha)(t)},50),!0):((0,l.debug)("Do not trigger popup on this device:",e),!1):((0,l.error)("Could not find a popup with the ID:",e),!1)}},{key:"closePopup",value:function(e){var t;(0,r.countVisibleAreas)("popup")&&(t=e?(0,r.getVisibleArea)("popup",(0,r.getRealId)(e)):(0,r.getVisibleArea)("popup"))&&((0,l.debug)("Close popup and unlink event handlers:",t.data("_id")),m(t,!0)),(0,r.countVisibleAreas)("popup")?u():DiviPopup.hideOverlay()}},{key:"showOverlay",value:function(){(0,p.showOverlay)(v)}},{key:"hideOverlay",value:function(){(0,p.hideOverlay)()}}]),e}();t.default=w},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={};function i(e,t,a){a=a||e.data("et_waypoint_max_instances")||1;var o=e.data("et_waypoint")||[];if(o.length<a){var i=e.waypoint(t);i&&i.length>0&&(o.push(i[0]),e.data("et_waypoint",o))}else for(var n=0;n<o.length;n++)o[n].context.refresh()}t.animatePopup=function(e,t){return!e.is(":visible")&&(jQuery.fn.waypoint?"yes"===et_pb_custom.ignore_waypoints?t(e):function(e){var t=e.attr("data-animation"),a=!1;return!!t&&(!!(a=o[t])&&(jQuery("body").css("overflow-x","hidden"),jQuery("#page-container").css("overflow-y","hidden"),e.attr({"data-animation-style":a.style,"data-animation-repeat":"once"===a.repeat?"":"infinite","data-animation-duration":a.duration,"data-animation-delay":a.delay,"data-animation-intensity":a.intensity,"data-animation-starting-opacity":a.starting_opacity,"data-animation-speed-curve":a.speed_curve}),void i(e,{offset:"100%",handler:function(){!function(e){var t=e.attr("data-animation-style"),a=e.attr("data-animation-repeat"),o=e.attr("data-animation-duration"),i=e.attr("data-animation-delay"),n=e.attr("data-animation-intensity"),r=e.attr("data-animation-starting-opacity"),s=e.attr("data-animation-speed-curve");!function(e){for(var t=[],a=e.get(0).attributes,o=0;o<a.length;o++)"data-animation-"===a[o].name.substring(0,15)&&t.push(a[o].name);jQuery.each(t,function(t,a){e.removeAttr(a)})}(e);var p=isNaN(parseInt(r))?0:.01*parseInt(r);-1===jQuery.inArray(s,["linear","ease","ease-in","ease-out","ease-in-out"])&&(s="ease-in-out"),e.css({"animation-duration":o,"animation-delay":i,opacity:p,"animation-timing-function":s});for(var l={},d=isNaN(parseInt(n))?50:parseInt(n),u=["slide","zoom","flip","fold","roll"],c=!1,g=!1,f=0;f<u.length;f++){var v=u[f];if(t&&t.substr(0,v.length)===v){c=v,""!==(g=t.substr(v.length,t.length))&&(g=g.toLowerCase());break}}!1!==c&&!1!==g&&(l=function(e,t,a){var o={};switch(e){case"slide":switch(t){case"top":o={transform:"translate3d(0, "+(i=-2*a)+"%, 0)"};break;case"right":o={transform:"translate3d("+(i=2*a)+"%, 0, 0)"};break;case"bottom":o={transform:"translate3d(0, "+(i=2*a)+"%, 0)"};break;case"left":var i=-2*a;o={transform:"translate3d("+i+"%, 0, 0)"};break;default:o={transform:"scale3d("+(n=.01*(100-a))+", "+n+", "+n+")"}}break;case"zoom":var n=.01*(100-a);switch(t){case"top":case"right":case"bottom":case"left":default:o={transform:"scale3d("+n+", "+n+", "+n+")"}}break;case"flip":switch(t){case"right":o={transform:"perspective(2000px) rotateY("+(r=Math.ceil(.9*a))+"deg)"};break;case"left":o={transform:"perspective(2000px) rotateY("+(r=-1*Math.ceil(.9*a))+"deg)"};break;case"top":default:o={transform:"perspective(2000px) rotateX("+(r=Math.ceil(.9*a))+"deg)"};break;case"bottom":o={transform:"perspective(2000px) rotateX("+(r=-1*Math.ceil(.9*a))+"deg)"}}break;case"fold":switch(t){case"top":o={transform:"perspective(2000px) rotateX("+(r=-1*Math.ceil(.9*a))+"deg)"};break;case"bottom":o={transform:"perspective(2000px) rotateX("+(r=Math.ceil(.9*a))+"deg)"};break;case"left":o={transform:"perspective(2000px) rotateY("+(r=Math.ceil(.9*a))+"deg)"};break;case"right":default:o={transform:"perspective(2000px) rotateY("+(r=-1*Math.ceil(.9*a))+"deg)"}}break;case"roll":switch(t){case"right":case"bottom":o={transform:"rotateZ("+(r=-1*Math.ceil(3.6*a))+"deg)"};break;case"top":case"left":o={transform:"rotateZ("+(r=Math.ceil(3.6*a))+"deg)"};break;default:var r=Math.ceil(3.6*a);o={transform:"rotateZ("+r+"deg)"}}}return o}(c,g,d)),jQuery.isEmptyObject(l)||e.css(l),e.addClass("et_animated"),e.addClass(t),e.addClass(a)}(jQuery(this.element))}})))}(e)?(e.show(),e.css({opacity:0}),void window.setTimeout(function(){e.css({opacity:""}),i(e,{offset:"100%",handler:function(){e.addClass("et-animated")}},2)},10)):t(e):t(e))},t.initializePopupAnimation=function(e){if(!window.et_animation_data||!window.et_animation_data.length>0)return!1;e.removeClass("et-waypoint"),e.removeClass("et-animated");for(var t=0;t<et_animation_data.length;t++){var a=!1,i=et_animation_data[t];i&&i.class&&e.hasClass(i.class)&&i.style&&i.repeat&&i.duration&&i.delay&&i.intensity&&i.starting_opacity&&i.speed_curve&&(a=i.class,e.addClass("pfd-waypoint"),e.attr("data-animation",a),o[a]=i,et_animation_data[t].class=void 0)}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showOverlay=function(e){var t=(0,i.getOption)("zIndex");r=e,null===n&&((n=jQuery("<div />")).addClass((0,i.getOption)("overlayClass")),n.prependTo((0,i.getContext)()),n.on("click.popup",s));t+=Math.max(0,(0,o.countVisibleAreas)("popup")-1),(0,i.debug)("Show background overlay"),n.css({zIndex:t}),n.fadeIn((0,i.getOption)("animateSpeed"),function(){jQuery("body").addClass((0,i.getOption)("openPopupClass"))}),jQuery(document).trigger("DiviPopup:OverlayShow")},t.hideOverlay=function(){(0,i.debug)("Hide background overlay"),n.hide(),jQuery("body").removeClass((0,i.getOption)("openPopupClass")),jQuery(document).trigger("DiviPopup:OverlayHide")};var o=a(1),i=a(0),n=null,r=null;function s(e){return(0,i.debug)("Click on background overlay"),e.preventDefault(),e.stopPropagation(),r(),!1}},function(e,t,a){}]);
|
lang/divi-popup-de_DE.mo
ADDED
Binary file
|
lang/divi-popup-de_DE.po
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Popups for Divi\n"
|
4 |
+
"POT-Creation-Date: 2018-01-11 20:11+0100\n"
|
5 |
+
"PO-Revision-Date: 2018-01-11 20:12+0100\n"
|
6 |
+
"Last-Translator: Philipp Stracker <philipp@stracker.net>\n"
|
7 |
+
"Language-Team: Philipp Stracker <philipp@stracker.net>\n"
|
8 |
+
"Language: de_DE\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 2.0.5\n"
|
13 |
+
"X-Poedit-Basepath: ..\n"
|
14 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
+
"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
|
16 |
+
"X-Poedit-WPHeader: plugin.php\n"
|
17 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
+
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
19 |
+
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;"
|
20 |
+
"_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
21 |
+
"X-Poedit-SearchPath-0: .\n"
|
22 |
+
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
23 |
+
|
24 |
+
#: include/class-evr-divi-popup.php:70
|
25 |
+
msgid "How it works"
|
26 |
+
msgstr "So funktioniert es"
|
27 |
+
|
28 |
+
#. Plugin Name of the plugin/theme
|
29 |
+
msgid "Popups for Divi"
|
30 |
+
msgstr "Popups für Divi"
|
31 |
+
|
32 |
+
#. Plugin URI of the plugin/theme
|
33 |
+
msgid "https://philippstracker.com/divi-popup/"
|
34 |
+
msgstr "https://philippstracker.com/divi-popup/"
|
35 |
+
|
36 |
+
#. Description of the plugin/theme
|
37 |
+
msgid ""
|
38 |
+
"Finally a simple and intuitive way to add custom popups to your divi pages!"
|
39 |
+
msgstr ""
|
40 |
+
"Endlich eine einfache und intuitive Lösung, um individuelle Popups in Divi "
|
41 |
+
"zu erstellen!"
|
42 |
+
|
43 |
+
#. Author of the plugin/theme
|
44 |
+
msgid "Philipp Stracker"
|
45 |
+
msgstr "Philipp Stracker"
|
46 |
+
|
47 |
+
#. Author URI of the plugin/theme
|
48 |
+
msgid "https://philippstracker.com/"
|
49 |
+
msgstr "https://philippstracker.com/"
|
plugin.php
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Enables JS popups within Divi.
|
4 |
+
*
|
5 |
+
* @package Popups_For_Divi
|
6 |
+
* @author Philipp Stracker
|
7 |
+
* @license GPL2+
|
8 |
+
*
|
9 |
+
* Plugin Name: Popups for Divi
|
10 |
+
* Plugin URI: https://philippstracker.com/divi-popup/
|
11 |
+
* Description: Finally a simple and intuitive way to add custom popups to your Divi pages!
|
12 |
+
* Author: Philipp Stracker
|
13 |
+
* Author URI: https://philippstracker.com/
|
14 |
+
* Created: 30.12.2017
|
15 |
+
* Version: 1.6.2
|
16 |
+
* License: GPLv2 or later
|
17 |
+
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
18 |
+
* Text Domain: divi-popup
|
19 |
+
* Domain Path: /lang
|
20 |
+
*
|
21 |
+
* Popups for Divi is free software: you can redistribute it and/or modify
|
22 |
+
* it under the terms of the GNU General Public License as published by
|
23 |
+
* the Free Software Foundation, either version 2 of the License, or
|
24 |
+
* any later version.
|
25 |
+
*
|
26 |
+
* Popups for Divi is distributed in the hope that it will be useful,
|
27 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
28 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
29 |
+
* GNU General Public License for more details.
|
30 |
+
*
|
31 |
+
* You should have received a copy of the GNU General Public License
|
32 |
+
* along with Popups for Divi. If not, see https://www.gnu.org/licenses/gpl-2.0.html.
|
33 |
+
*/
|
34 |
+
|
35 |
+
defined( 'ABSPATH' ) || die();
|
36 |
+
|
37 |
+
define( 'DIVI_POPUP_PLUGIN', plugin_basename( __FILE__ ) );
|
38 |
+
|
39 |
+
/**
|
40 |
+
* A new version value will force refresh of CSS and JS files for all users.
|
41 |
+
*/
|
42 |
+
define( 'DIVI_POPUP_VERSION', '1.6.2' );
|
43 |
+
|
44 |
+
add_action(
|
45 |
+
'plugins_loaded',
|
46 |
+
'divi_popup_init_plugin'
|
47 |
+
);
|
48 |
+
|
49 |
+
/**
|
50 |
+
* Initialize the Popups for Divi objecand add multilanguage support for the plugin.
|
51 |
+
*
|
52 |
+
* @since 1.5.0
|
53 |
+
*/
|
54 |
+
function divi_popup_init_plugin() {
|
55 |
+
load_plugin_textdomain(
|
56 |
+
'popups-for-divi',
|
57 |
+
false,
|
58 |
+
dirname( DIVI_POPUP_PLUGIN ) . '/lang/'
|
59 |
+
);
|
60 |
+
|
61 |
+
require 'include/class-popups-for-divi.php';
|
62 |
+
|
63 |
+
global $divi_popup;
|
64 |
+
$divi_popup = new Popups_For_Divi();
|
65 |
+
}
|
readme.txt
ADDED
@@ -0,0 +1,262 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== Popups for Divi ===
|
2 |
+
Contributors: strackerphil-1
|
3 |
+
Tags: popup, marketing, divi
|
4 |
+
Requires at least: 3.0.1
|
5 |
+
Tested up to: 5.2.3
|
6 |
+
Stable tag: trunk
|
7 |
+
Requires PHP: 5.2.4
|
8 |
+
License: GPLv2 or later
|
9 |
+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
+
|
11 |
+
A quick and easy way to create Popup layers inside the Divi Visual Builder!
|
12 |
+
|
13 |
+
== Description ==
|
14 |
+
|
15 |
+
No configuration needed. Simply activate the plugin and add the CSS class "popup" and ID tag to a divi section. To open the popup you only need to place a link on the page with the URL pointing to the section ID.
|
16 |
+
|
17 |
+
# ℹ️ How it works
|
18 |
+
|
19 |
+
1. Edit a section and set the **section ID** to "`newsletter-optin`" and the **section CSS class** to "`popup`"
|
20 |
+
2. Add a link (or button, etc) on the page and set the **link URL** to "`#newsletter-optin`"
|
21 |
+
3. **That's all**. Save the page! When a visitor clicks on your new link the popup will be opened.
|
22 |
+
|
23 |
+
# ⭐️ Additional details
|
24 |
+
|
25 |
+
Check out the [Plugin website](https://philippstracker.com/divi-popup/) for more details. You'll find:
|
26 |
+
|
27 |
+
* Examples
|
28 |
+
* CSS class options
|
29 |
+
* JS API documentation
|
30 |
+
* WP filter documentation
|
31 |
+
|
32 |
+
Tested in all major browsers on Windows and Mac: Chrome, Firefox, Safari, IE 11, Edge!
|
33 |
+
|
34 |
+
# 🎂 Popups for Divi turns 2
|
35 |
+
|
36 |
+
Wow, it's already two years since the beginning of Popups for Divi!
|
37 |
+
|
38 |
+
It has been a great time and we've learned a lot. During that time we added a ton of features and have created a stable and powerful marketing plugin.
|
39 |
+
|
40 |
+
To celebrate the anniversary, we have created a six-day course that teaches you everything about the plugin. It walks you through the basics of creating your first Popup, shows possible ways to customize your Popup layouts and goes into advanced techniques and usages of the plugin.
|
41 |
+
|
42 |
+
> "The instruction emails really helped me to understand how to use the plugin correctly!"
|
43 |
+
|
44 |
+
The course is available in your **wp-admin Dashboard** right after you install and activate the plugin. Check out the screenshots to see the form. Also, have a look in the FAQ section, if you want to disable this feature.
|
45 |
+
|
46 |
+
# 🥳 Want more?
|
47 |
+
|
48 |
+
If you want to get the most out of Divi, you need to have a look at **[Divi Areas Pro](https://philippstracker.com/divi-areas-pro)** to get additional features:
|
49 |
+
|
50 |
+
> * An **admin UI** to create and configure your popups
|
51 |
+
> * Choose **Area Type**: Popup, Inline, Fly-in, Hover
|
52 |
+
> * A **beautiful UI** that blends in perfectly with Divi
|
53 |
+
> * Add **advanced triggers** to your Areas:
|
54 |
+
> * On click
|
55 |
+
> * On hover
|
56 |
+
> * On scroll
|
57 |
+
> * After delay
|
58 |
+
> * On Exit
|
59 |
+
> * Customize the Area **Display**
|
60 |
+
> * Show on certain pages
|
61 |
+
> * Show on certain devices
|
62 |
+
> * Show for certain user roles or guests
|
63 |
+
> * Customize Area **Behavior**
|
64 |
+
> * Show/Hide the Close button
|
65 |
+
> * Display the Area once per hour, day, week, ...
|
66 |
+
> * Flexible **position for Inline Areas**
|
67 |
+
> * Replace/extend the page header
|
68 |
+
> * or Footer
|
69 |
+
> * or Comment section
|
70 |
+
> * or actually *any* Divi section inside the page content
|
71 |
+
> * It comes with an extended version of the **JS API**
|
72 |
+
> * **Great documentation** built into the plugin and an online knowledge base
|
73 |
+
> * and much more...
|
74 |
+
>
|
75 |
+
> 👉 [Learn more about **Divi Areas Pro**](https://philippstracker.com/divi-areas-pro/) (with screenshots!)
|
76 |
+
|
77 |
+
== Installation ==
|
78 |
+
|
79 |
+
Install the plugin from the WordPress admin page "Plugins > Install"
|
80 |
+
|
81 |
+
or
|
82 |
+
|
83 |
+
1. Upload `popups-for-divi` directory to the `/wp-content/plugins/` directory
|
84 |
+
1. Activate the plugin through the 'Plugins' menu in WordPress
|
85 |
+
|
86 |
+
== Frequently Asked Questions ==
|
87 |
+
|
88 |
+
= How much performance does Popups for Divi need? =
|
89 |
+
|
90 |
+
Actually none! We designed it with maximum page performance in mind. Our tests did show literally no change in page loading speed.
|
91 |
+
|
92 |
+
The plugin will add a single line of CSS to the page output and load two files that currently are only about 31 kb in size (9kb gzipped). Both files are cached by the browser and used on all other pages of your website.
|
93 |
+
|
94 |
+
Those two files are the JS API and the popup CSS rules that center the popup, dim the background, etc.
|
95 |
+
|
96 |
+
= Is Popups for Divi compatible with Caching plugins? =
|
97 |
+
|
98 |
+
Yes, absolutely! There is no dynamic logic in the PHP code like other popup plugins have. Popups for Divi is a little bit of PHP but the main logic sits inside the small javascript library it provides. It works on the client-side and therefore is not restricted by caching plugins.
|
99 |
+
|
100 |
+
= Is this plugin compatible with every Divi version? =
|
101 |
+
|
102 |
+
This plugin is kept compatible with the latest Divi release.
|
103 |
+
|
104 |
+
We did test it with all releases since the initial Divi 3.0 release. Possibly it will also work with older versions
|
105 |
+
|
106 |
+
= Does this plugin also work with other themes/site builders? =
|
107 |
+
|
108 |
+
Yes, actually it will! But out of the box it is optimized to work with Divi 3.x. If you use any other theme or site builder then you need to change the default options of the plugin via the `evr_divi_popup-js_data` filter.
|
109 |
+
|
110 |
+
For more details visit https://philippstracker.com/divi-popup/
|
111 |
+
|
112 |
+
= Does this plugin display any ads? =
|
113 |
+
|
114 |
+
No. This plugin is free and does not display any ads. In fact, the plugin does not have a UI at all.
|
115 |
+
|
116 |
+
Popups for Divi is just that - a plain popup plugin, not our marketing strategy!
|
117 |
+
|
118 |
+
Since version 1.6.0 we now offer a six-day email course that shows you how the plugin works. You will see a notification in your wp-admin dashboard right after activating the plugin. This is not an advertisement - you do not land in a newsletter list, but only receive those six onboarding mails.
|
119 |
+
|
120 |
+
= Do you collect any details from my website? =
|
121 |
+
|
122 |
+
No, we do not collect or transmit any data from your website.
|
123 |
+
|
124 |
+
Since version 1.6.0 there is one exception: We now offer an email course that shows you how the plugin works. You will see a notification in your wp-admin dashboard right after activating the plugin. When you opt-in to receive the onboarding emails we will transmit the details you entered (your name and email address) to the plugin website.
|
125 |
+
|
126 |
+
Those details are only used to send you the onboarding emails (6 emails) and for nothing else.
|
127 |
+
|
128 |
+
= Is there a way to hide the onboarding notice? =
|
129 |
+
|
130 |
+
Yes, there is!
|
131 |
+
|
132 |
+
Since 1.6.0 the plugin offers an onboarding course that consists of 6 emails. We offer this course right after plugin activation in your wp-admin "Dashboard" page (nowhere else).
|
133 |
+
|
134 |
+
This onboarding notice is displayed to administrator users only. Once the user clicks on the "Dismiss" button, the message is never displayed again for them.
|
135 |
+
|
136 |
+
You can also globally disable the onboarding notice by defining the constant [`DISABLE_NAG_NOTICES`](https://codex.wordpress.org/Plugin_API/Action_Reference/admin_notices#Disable_Nag_Notices) in your wp-config.php or themes function.php
|
137 |
+
|
138 |
+
= I have more questions or need help =
|
139 |
+
|
140 |
+
Please first visit the [**plugin website**](https://philippstracker.com/divi-popup/), as it includes examples and documentation that could answer your questions.
|
141 |
+
|
142 |
+
If that does not help, then head over to the [**support forum**](https://wordpress.org/support/plugin/popups-for-divi/) and post a new thread.
|
143 |
+
|
144 |
+
When you need additional features, then please have a look at our the Premium plugin [**Divi Areas Pro**](https://philippstracker.com/divi-areas-pro/) which comes with a lot of cool options!
|
145 |
+
|
146 |
+
We cannot provide customization and development via the forum. If you need that, [**you can hire us**](https://philippstracker.com/go/inquire-popup-change/) to create some special triggers, layouts or other changes.
|
147 |
+
|
148 |
+
== Screenshots ==
|
149 |
+
|
150 |
+
1. This is a normal Divi page, before adding a popup.
|
151 |
+
2. Step 1: Modify the section and add the "popup" class, as well as an ID.
|
152 |
+
3. Step 2: Add the popup-ID as a button link. Clicking this button will show the popup.
|
153 |
+
4. That's all. Save the page and open it up without the editor. All popups are initially hidden.
|
154 |
+
5. Click on the "Contact" button displays the popup. You can style the Divi section (change the width, background-color, etc) or customize the CSS of the popup...
|
155 |
+
6. ...check out the extensive API documentation and popup samples on philippstracker.com
|
156 |
+
7. Our free email course walks you through every aspect of the plugin - from the basics to advances use-cases and techniques.
|
157 |
+
|
158 |
+
== Changelog ==
|
159 |
+
|
160 |
+
= 1.6.2 =
|
161 |
+
* Fix JS error in front.js
|
162 |
+
|
163 |
+
Plugin tested with WordPress 5.2.3 and Divi 3.27.4
|
164 |
+
|
165 |
+
= 1.6.0 =
|
166 |
+
* Change Popup behavior: The size now matches the width of your Divi section! 🤩
|
167 |
+
* Add an dashboard notification to sign up for the six-day onboarding course.
|
168 |
+
* Add popup support via Blurb "Content Link".
|
169 |
+
* Add Google reCaptcha integration! Tested with CF7, but works with any plugin.
|
170 |
+
* Add new WP filter options to customize dark-mode and box-shadow style.
|
171 |
+
* Add new Popup Class: `no-shadow` removes the default box-shadow.
|
172 |
+
* Add new Popup Class: `close-alt` removes the background color of the Close Button.
|
173 |
+
* Fix Popup shadow: The box-shadow fo the Divi Section overrides the default box-shadow. *Style it your way!*
|
174 |
+
* Fix select list behavior in Firefox.
|
175 |
+
* Fix Popup width on iPhone 6 and earlier.
|
176 |
+
* Tweak the CSS that makes the page body un-scrollable while a popup is open.
|
177 |
+
* Tweak the JS library for easier maintenance and better performance.
|
178 |
+
|
179 |
+
= 1.5.1 =
|
180 |
+
* Fix broken exit-intent initialization (sorry for that!)
|
181 |
+
* Fix bug where exit intent did trigger in some form fields, e.g. when closing auto-complete suggestions or changing an option in a select list.
|
182 |
+
* Fix setting "animateSpeed" that can be set via the WP filter. It was ignored until now.
|
183 |
+
|
184 |
+
= 1.5.0 =
|
185 |
+
* Fixed the exit-intent behavior - now it triggers, even when you move the mouse very sloooowly
|
186 |
+
* New JS API to turn literally *any* element on the page into a popup: `DiviPopup.register('#the-id')`
|
187 |
+
* New JS API to configure popups after they were registered: `DiviPopup.config('#the-id', 'on-mobile', false)`
|
188 |
+
|
189 |
+
= 1.4.0 =
|
190 |
+
* In Divis Visual Builder you now see each popup ID right above the popup. This makes it easier for you to correctly link popups
|
191 |
+
* When the class "single" is added to a popup, it will close any other popup that was currently visible
|
192 |
+
* Custom styles are now applied to modules inside popups, for example, custom button styles
|
193 |
+
|
194 |
+
Thanks for your feedback and all your fantastic support for the Popups for Divi plugin! Check out the webpage for documentation, e.g. for the single class.
|
195 |
+
|
196 |
+
= 1.3.2 =
|
197 |
+
* Update plugin icon and assets
|
198 |
+
* Improved code and documentation
|
199 |
+
|
200 |
+
= 1.3.1 =
|
201 |
+
* Improve: Popup sections now support animations! Add those "Number Counters" and zoom-in images in your next popup.
|
202 |
+
* Fix: Certain Divi settings could prevent popups from being opened, as the trigger-click-event could be intercepted by a different Divi module. Not anymore. The unstoppable Popup!
|
203 |
+
* Fix: Minor javascript errors fixed, when "triggerClassPrefix" was set to false via the WP filter.
|
204 |
+
|
205 |
+
= 1.3.0 =
|
206 |
+
* Added trigger: Use class name "show-popup-demo" to show the popup "demo" on click. Can be used to turn any element into a popup trigger!
|
207 |
+
* Improve: The default value of the popup-debug option is taken from WP_DEBUG. You can see debug output in your browser console while WP_DEBUG is enabled.
|
208 |
+
* Improve: Better compatibility with Divi Child-themes (and Non-Divi themes).
|
209 |
+
* Fix: Custom "close" buttons inside a popup will now close the popup before following the link or scrolling the page.
|
210 |
+
* Fix: Popups will now work with themes that do not have the default "#page-container" div.
|
211 |
+
|
212 |
+
= 1.2.3 =
|
213 |
+
* Fix: jQuery "invalid expression" error is gone.
|
214 |
+
|
215 |
+
= 1.2.2 =
|
216 |
+
* Fix: Fully compatible with Divi 3.1.16 and higher.
|
217 |
+
* Add: Plugin is now backward compatible until PHP 5.2.4 - before this, the plugin required PHP 5.4 or higher.
|
218 |
+
|
219 |
+
= 1.2.1 =
|
220 |
+
* Improve: Faster and smoother handling of popup resizing, without an interval timer!
|
221 |
+
* Added Javascript event: $('.popup').on('DiviPopup:Init', ...)
|
222 |
+
* Added Javascript event: $('.popup').on('DiviPopup:Show', ...)
|
223 |
+
* Added Javascript event: $('.popup').on('DiviPopup:Hide', ...)
|
224 |
+
* Added Javascript event: $('.popup').on('DiviPopup:Blur', ...)
|
225 |
+
* Added Javascript event: $('.popup').on('DiviPopup:Focus', ...)
|
226 |
+
|
227 |
+
= 1.2.0 =
|
228 |
+
* Feature: Popups now support Divi loading animations!
|
229 |
+
* Improve: Popups will now correctly limit the size after the contents are changed, e.g. when accordion is expanded.
|
230 |
+
* Bugfix: The Popups For Divi plugin now waits until Divi could initialize all components, before creating popups.
|
231 |
+
|
232 |
+
= 1.1.0 =
|
233 |
+
* Feature: Yay! All Popups now have a Close button in the top-right corner by default.
|
234 |
+
* Feature: Pressing the escape key will now close the currently open popup.
|
235 |
+
* Improve: The active popup now has an additional CSS class `is-open` that can be used for styling inactive popups.
|
236 |
+
* Improve: CSS and JS code is now minified.
|
237 |
+
|
238 |
+
Thanks for your feedback and all the positive comments and reviews you posted! You are awesome :)
|
239 |
+
|
240 |
+
= 1.0.3 =
|
241 |
+
* Improve: Apply custom modules styles to elements inside a popup
|
242 |
+
* Fix: Correct popup preview in the Visual Builder
|
243 |
+
|
244 |
+
= 1.0.2.3 =
|
245 |
+
* Minor: Fixes in the readme.txt and naming of assets/language files
|
246 |
+
|
247 |
+
= 1.0.2 =
|
248 |
+
* Minor: Added link to the plugin documentation inside the plugins list
|
249 |
+
* Minor: Make plugin translatable
|
250 |
+
|
251 |
+
= 1.0.1 =
|
252 |
+
* Added: Support for lazy-load plugin
|
253 |
+
|
254 |
+
= 1.0 =
|
255 |
+
* Initial public release
|
256 |
+
* Added trigger: Click
|
257 |
+
* Added trigger: `on-exit`
|
258 |
+
* Added JavaScript API: DiviPopup.openPopup()
|
259 |
+
* Added JavaScript API: DiviPopup.closePopup()
|
260 |
+
* Added JavaScript API: DiviPopup.showOverlay()
|
261 |
+
* Added JavaScript API: DiviPopup.hideOverlay()
|
262 |
+
* Added WordPress filter: `evr_divi_popup-js_data`
|