Version Description
- November 24th 2015 =
Check out the blog post about 1.0.6 release
Download this release
Release Info
Developer | LiveComposer |
Plugin | Page Builder: Live Composer – drag and drop website builder (visual front end site editor) |
Version | 1.0.6 |
Comparing to | |
See all releases |
Code changes from version 1.0.5 to 1.0.6
- LICENSE +340 -0
- README.md +2 -0
- css/font/fontawesome-webfont.woff2 +0 -0
- css/main.css +1 -0
- css/main.min.css +1 -1
- css/modules.css +54 -0
- css/modules.min.css +1 -1
- css/plugins.css +1 -1
- ds-live-composer.php +3 -3
- includes/display-functions.php +3 -12
- includes/other-functions.php +26 -4
- includes/other.php +0 -19
- includes/scripts.php +6 -1
- includes/single-templates-framework/inc/functions.php +1 -1
- js/builder.main.js +1 -1
- js/builder.main.min.js +4 -4
- js/main.js +58 -2
- js/main.min.js +1 -1
- js/plugins.js +4 -1
- js/yoast-seo.js +43 -0
- modules/blog/module.php +21 -0
- modules/button/module.php +40 -10
- modules/html/module.php +23 -1
- modules/image/module.php +2 -0
- modules/infobox/module.php +14 -0
- modules/notification/module.php +17 -2
- modules/posts/module.php +22 -1
- modules/text-simple/module.php +23 -1
- modules/tp-content/module.php +23 -1
- modules/tp-staff-social/module.php +24 -24
- modules/tp-thumbnail/module.php +2 -2
- modules/widgets/module.php +11 -0
- readme.txt +5 -1
LICENSE
ADDED
@@ -0,0 +1,340 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
GNU GENERAL PUBLIC LICENSE
|
2 |
+
Version 2, June 1991
|
3 |
+
|
4 |
+
Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
|
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 |
+
{description}
|
294 |
+
Copyright (C) {year} {fullname}
|
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.
|
340 |
+
|
README.md
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
# Live-Composer
|
2 |
+
Free page builder plugin for WordPress http://livecomposerplugin.com
|
css/font/fontawesome-webfont.woff2
ADDED
Binary file
|
css/main.css
CHANGED
@@ -530,6 +530,7 @@ body.rtl .dslc-last-col {
|
|
530 |
|
531 |
.dslc-masonry-item {
|
532 |
margin-bottom: 30px;
|
|
|
533 |
}
|
534 |
|
535 |
.dslc-masonry-item-animate {
|
530 |
|
531 |
.dslc-masonry-item {
|
532 |
margin-bottom: 30px;
|
533 |
+
margin-right: 0;
|
534 |
}
|
535 |
|
536 |
.dslc-masonry-item-animate {
|
css/main.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.dslc-clear,.dslc-clearfix:after,.dslc-first-col,.dslc-module-heading:after{clear:both}#dslc-content blockquote p:last-child{margin-bottom:0!important}#dslc-header{position:relative}#dslc-header.dslc-header-pos-absolute{position:absolute;top:0;left:0;right:0;z-index:999999}#dslc-header.dslc-header-pos-fixed{position:fixed;top:0;left:0;right:0;z-index:999999}body.admin-bar #dslc-header.dslc-header-pos-absolute,body.admin-bar #dslc-header.dslc-header-pos-fixed{top:32px}#dslc-footer{position:relative}#dslc-footer.dslc-footer-pos-absolute{position:absolute;bottom:0;left:0;right:0;z-index:999999}#dslc-footer.dslc-footer-pos-fixed{position:fixed;bottom:0;left:0;right:0;z-index:999999}#dslc-header.dslca-header-low-z-index,.dslca-drag-in-progress #dslc-header{z-index:0}#dslc-content{position:relative}.dslca-activate-composer-hook,.dslca-container .dslca-close-composer-hook,.dslca-container .dslca-hide-composer-hook,.dslca-container .dslca-show-composer-hook{background:#e55f5f;border-radius:3px;bottom:4px;color:#fff;cursor:pointer;display:block;font-size:11px;font-family:"Open Sans";font-weight:900;line-height:1;padding:11px 12px;text-transform:uppercase;text-decoration:none;white-space:nowrap;float:left;margin-left:5px}.dslca-container .dslca-hide-composer-hook{background:#06b2ac}.dslca-container .dslca-show-composer-hook{background:#9268a9;display:none}.dslca-activate-composer-hook:hover,.dslca-activate-composer-hook:visited,.dslca-close-composer-hook:hover,.dslca-close-composer-hook:visited{color:#fff}.dslca-activate-composer-hook{background:#54c13f;color:#fff;position:fixed;z-index:99999;right:5px;bottom:5px}.dslca-activate-composer-hook.dslca-position-left{right:auto;left:5px}.dslca-activate-composer-hook .dslca-icon,.dslca-container .dslca-close-composer-hook .dslca-icon,.dslca-container .dslca-hide-composer-hook .dslca-icon,.dslca-container .dslca-show-composer-hook .dslca-icon{color:rgba(255,255,255,.66);margin-right:5px}.dslc-modules-section{border:0 solid transparent;position:relative}.dslc-modules-section.dslc-init-parallax{background-attachment:fixed}.dslc-modules-section-wrapper{max-width:100%;margin:0 auto}.dslc-modules-section.dslc-full .dslc-modules-section-wrapper{width:100%}.dslc-module-front{position:relative}.dslc-col{display:block;float:left;margin-right:2.12766%}body.rtl .dslc-col{float:right;margin-left:2.12766%;margin-right:0}.dslc-1-col{width:6.38297%}.dslc-2-col{width:14.89361%}.dslc-3-col{width:23.40425%}.dslc-4-col{width:31.91489%}.dslc-5-col{width:40.42553%}.dslc-6-col{width:48.93617%}.dslc-7-col{width:57.4468%}.dslc-8-col{width:65.95744%}.dslc-9-col{width:74.46808%}.dslc-10-col{width:82.97872%}.dslc-11-col{width:91.48936%}.dslc-12-col{width:100%}.dslc-last-col{margin-right:0}body.rtl .dslc-last-col{margin-left:0}.dslc-no-columns-spacing .dslc-col{margin:0}.dslc-no-columns-spacing .dslc-1-col{width:8.33333%}.dslc-no-columns-spacing .dslc-2-col{width:16.66666%}.dslc-no-columns-spacing .dslc-3-col{width:25%}.dslc-no-columns-spacing .dslc-4-col{width:33.33333%}.dslc-no-columns-spacing .dslc-5-col{width:41.66666%}.dslc-no-columns-spacing .dslc-6-col{width:50%}.dslc-no-columns-spacing .dslc-7-col{width:58.33333%}.dslc-no-columns-spacing .dslc-8-col{width:66.66666%}.dslc-no-columns-spacing .dslc-9-col{width:75%}.dslc-no-columns-spacing .dslc-10-col{width:83.33333%}.dslc-no-columns-spacing .dslc-11-col{width:91.66666%}.dslc-no-columns-spacing .dslc-12-col,.dslc-no-columns-spacing .dslc-carousel .dslc-col,.dslc-no-columns-spacing .dslc-carousel .dslc-first-col,.dslc-no-columns-spacing .dslc-carousel .dslc-last-col{width:100%}.dslc-clearfix:after,.dslc-clearfix:before,.dslc-module-heading:after,.dslc-module-heading:before{content:" ";display:table}.dslc-fl{float:left}.dslc-fr{float:right}.dslc-no-float{float:none!important}.dslc-posts{overflow:hidden}.dslc-carousel .dslc-col,.dslc-carousel .dslc-first-col,.dslc-carousel .dslc-last-col{float:none;clear:none;margin:0}.dslc-carousel-item{width:auto}.dslc-carousel-nav{float:right}.dslc-carousel-nav-inner{display:block}.dslc-carousel-nav-next,.dslc-carousel-nav-prev{background:#c9c9c9;border:0 solid transparent;border-radius:3px;display:inline-block;height:23px;position:relative;width:23px;text-decoration:none;vertical-align:bottom}.dslc-carousel-nav-prev{margin-right:7px}.dslc-carousel-nav-next span,.dslc-carousel-nav-prev span{color:#fff;font-size:10px;position:absolute;left:0;right:0;text-align:center;font-weight:400}#dslc-content .dslc-carousel .owl-pagination .owl-page span{margin:0;filter:Alpha(Opacity=100);opacity:1}#dslc-content .dslc-slider{padding-bottom:1px;opacity:0;max-height:10px}#dslc-content .dslc-slider img{max-width:100%}#dslc-content .dslc-slider .owl-pagination .owl-page span{margin:0;filter:Alpha(Opacity=100);opacity:1}.dslc-carousel{opacity:0;max-height:100px}@keyframes dslcSpin{0%{-webkit-transform:rotate(0);-moz-transform:rotate(0);-o-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-o-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes dslcSpin{0%{-moz-transform:rotate(0);transform:rotate(0)}100%{-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dslcSpin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-ms-keyframes "dslcSpin"{0%{-ms-transform:rotate(0);transform:rotate(0)}100%{-ms-transform:rotate(360deg);transform:rotate(360deg)}}@-o-keyframes dslcSpin{0%{-o-transform:rotate(0);transform:rotate(0)}100%{-o-transform:rotate(360deg);transform:rotate(360deg)}}.dslc-loader{position:relative;width:20px;height:20px;border:2px solid #0cf;border-radius:50%;-webkit-animation:dslcSpin .75s infinite linear;-moz-animation:dslcSpin .75s infinite linear;-ms-animation:dslcSpin .75s infinite linear;-o-animation:dslcSpin .75s infinite linear;animation:dslcSpin .75s infinite linear;margin-left:48%}.dslc-loader::after,.dslc-loader::before{left:-2px;top:-2px;display:none;position:absolute;content:'';width:inherit;height:inherit;border:inherit;border-radius:inherit}.dslc-loader,.dslc-loader::before{display:inline-block;border-color:#0cf transparent transparent}.dslc-loader::before{-webkit-animation:dslcSpin 1.5s infinite ease;-moz-animation:dslcSpin 1.5s infinite ease;-ms-animation:dslcSpin 1.5s infinite ease;-o-animation:dslcSpin 1.5s infinite ease;animation:dslcSpin 1.5s infinite ease}.dslc-notification{background:#fff;border:1px solid #e8e8e8;border-radius:3px;color:#979797;margin-bottom:20px;padding:15px;position:relative;font-size:14px;line-height:25px;font-family:"Open Sans"}.dslc-notification.dslc-green,.dslc-notification.dslc-red,.dslc-notification.dslc-yellow{color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.14)}.dslc-notification .dslc-icon{cursor:pointer;position:absolute;right:14px;top:21px}.dslc-notification.dslc-red{background:#f65757;border-color:#e43737}.dslc-notification.dslc-yellow{background:#fac841;border-color:#eab72e}.dslc-notification.dslc-green{background:#8ccb25;border-color:#77b01a}#dslc-content .dslc-module-heading{overflow:hidden;position:relative}.dslc-init-topleft,.dslc-init-topright{position:absolute!important;top:0!important;bottom:auto!important}#dslc-content .dslc-module-heading h2{display:block;float:left;font-size:17px;font-weight:400;font-family:Oswald;line-height:1;margin:0 15px 0 0;padding:0}#dslc-content .dslc-module-heading-view-all{display:block;float:left;font-size:11px;line-height:1;margin:3px 20px 3px 0}#dslc-content .dslc-module-heading-view-all a{display:block;padding-left:15px;border-left:1px dotted #4f4f4f;font-family:"Open Sans";font-weight:600;line-height:1;text-decoration:none}.dslc-masonry-item{margin-bottom:30px}.dslc-masonry-item-animate{-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;-ms-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.dslc-post-separator{clear:both;height:1px;margin-bottom:15px;padding-bottom:15px;border-bottom:1px solid #ededed}.dslc-pagination{border:0 solid transparent;overflow:hidden;margin-top:30px}.dslc-pagination ul{margin:0;padding:0}.dslc-pagination li{display:inline-block;margin:0 10px 0 0;padding:0}.dslc-pagination li:last-child{margin-right:0!important}.dslc-pagination-load-more .dslc-icon,.dslc-post-filter{margin-right:10px}.dslc-pagination li a{background:#eee;border:0 solid transparent;color:#000;display:block;line-height:1;padding:10px;text-decoration:none}.dslc-pagination li.current a{background:#000;color:#fff}.dslc-pagination li.dslc-pagination-load-more{width:auto;display:block}.dslc-pagination li.dslc-pagination-load-more.dslc-inactive a{cursor:default}.dslc-load-more-temp{display:none}.dslc-init-center{visibility:hidden}.dslc-init-topleft{left:0!important;right:auto!important}.dslc-init-topright{right:0!important;left:auto!important}.dslc-init-bottomleft,.dslc-init-bottomright{position:absolute!important;bottom:0!important;top:auto!important}.dslc-init-bottomleft{left:0!important;right:auto!important}.dslc-init-bottomright{right:0!important;left:auto!important}.dslc-post-filters{overflow:hidden;font-size:0}.dslc-post-filter{background:#fff;border:1px solid #e8e8e8;border-radius:3px;color:#979797;cursor:pointer;display:inline-block;font-size:11px;font-weight:700;font-family:"Open Sans";line-height:1;padding:12px}#dslc-content .dslc-bg-video .mejs-controls,.dslc-res-big .dslc-hide-on-desktop,.dslc-res-phone .dslc-hide-on-phone,.dslc-res-smaller-monitor .dslc-hide-on-desktop,.dslc-res-tablet .dslc-hide-on-tablet{display:none!important}.dslc-post-filter.dslc-active{color:#ff4e01}.dslc-post-filter:last-child{margin-right:0!important}#dslc-content .dslc-bg-video{background:0 0;position:absolute;left:0;right:0;bottom:0;top:0;opacity:0}#dslc-content .dslc-bg-video.dslc-force-show{opacity:1}#dslc-content .dslc-bg-video .mejs-container{background:0 0;position:absolute;left:0;right:0;bottom:0;top:0;width:100%!important;height:auto!important;overflow:hidden}#dslc-content .dslc-bg-video video{min-width:100%;height:auto!important;min-height:100%}#dslc-content .dslc-bg-video-overlay{position:absolute;left:0;top:0;right:0;bottom:0;opacity:0;background:#000}.dslc-trigger-lightbox-gallery{cursor:pointer}body.dslc-res-phone .dslc-col{width:100%;margin:0 0 30px;min-width:0}body.dslc-res-phone .dslc-module-front.dslc-col{margin-bottom:0}@media only screen and (min-device-width :768px) and (max-device-width :1024px){.dslc-modules-section.dslc-init-parallax{background-attachment:scroll!important;background-position:0 0!important}}@media only screen and (max-width:767px){.dslc-modules-section.dslc-init-parallax{background-attachment:scroll!important;background-position:0 0!important}}body.dslca-enabled.dslc-res-tablet #dslc-content{max-width:768px;margin:0 auto}body.dslca-enabled.dslc-res-phone #dslc-content{max-width:480px;margin:0 auto}@media only screen and (min-width:768px){@-webkit-keyframes dslcFadeIn{to{opacity:1}}@-moz-keyframes dslcFadeIn{to{opacity:1}}@keyframes dslcFadeIn{to{opacity:1}}.dslc-in-viewport-anim-dslcFadeIn.dslc-in-viewport-check{opacity:0}@-webkit-keyframes dslcSlideUp{to{-webkit-transform:translateY(0)}}@-moz-keyframes dslcSlideUp{to{-moz-transform:translateY(0)}}@keyframes dslcSlideUp{to{transform:translateY(0)}}.dslc-in-viewport-anim-dslcSlideUp.dslc-in-viewport-check{-webkit-transform:translateY(100px);-moz-transform:translateY(100px);transform:translateY(100px)}@-webkit-keyframes dslcSlideDown{to{-webkit-transform:translateY(0)}}@-moz-keyframes dslcSlideDown{to{-moz-transform:translateY(0)}}@keyframes dslcSlideDown{to{transform:translateY(0)}}.dslc-in-viewport-anim-dslcSlideDown.dslc-in-viewport-check{-webkit-transform:translateY(-100px);-moz-transform:translateY(-100px);transform:translateY(-100px)}@-webkit-keyframes dslcSlideRight{to{-webkit-transform:translateX(0)}}@-moz-keyframes dslcSlideRight{to{-moz-transform:translateX(0)}}@keyframes dslcSlideRight{to{transform:translateX(0)}}.dslc-in-viewport-anim-dslcSlideRight.dslc-in-viewport-check{-webkit-transform:translateX(-100px);-moz-transform:translateX(-100px);transform:translateX(-100px)}@-webkit-keyframes dslcSlideLeft{to{-webkit-transform:translateX(0)}}@-moz-keyframes dslcSlideLeft{to{-moz-transform:translateX(0)}}@keyframes dslcSlideLeft{to{transform:translateX(0)}}.dslc-in-viewport-anim-dslcSlideLeft.dslc-in-viewport-check{-webkit-transform:translateX(100px);-moz-transform:translateX(100px);transform:translateX(100px)}@-webkit-keyframes dslcSlideUpFadeIn{to{-webkit-transform:translateY(0);opacity:1}}@-moz-keyframes dslcSlideUpFadeIn{to{-moz-transform:translateY(0);opacity:1}}@keyframes dslcSlideUpFadeIn{to{transform:translateY(0);opacity:1}}.dslc-in-viewport-anim-dslcSlideUpFadeIn.dslc-in-viewport-check{-webkit-transform:translateY(100px);-moz-transform:translateY(100px);transform:translateY(100px);opacity:0}@-webkit-keyframes dslcSlideDownFadeIn{to{-webkit-transform:translateY(0);opacity:1}}@-moz-keyframes dslcSlideDownFadeIn{to{-moz-transform:translateY(0);opacity:1}}@keyframes dslcSlideDownFadeIn{to{transform:translateY(0);opacity:1}}.dslc-in-viewport-anim-dslcSlideDownFadeIn.dslc-in-viewport-check{-webkit-transform:translateY(-100px);-moz-transform:translateY(-100px);transform:translateY(-100px);opacity:0}@-webkit-keyframes dslcSlideRightFadeIn{to{-webkit-transform:translateX(0);opacity:1}}@-moz-keyframes dslcSlideRightFadeIn{to{-moz-transform:translateX(0);opacity:1}}@keyframes dslcSlideRightFadeIn{to{transform:translateX(0);opacity:1}}.dslc-in-viewport-anim-dslcSlideRightFadeIn.dslc-in-viewport-check{-webkit-transform:translateX(-100px);-moz-transform:translateX(-100px);transform:translateX(-100px);opacity:0}@-webkit-keyframes dslcSlideLeftFadeIn{to{-webkit-transform:translateX(0);opacity:1}}@-moz-keyframes dslcSlideLeftFadeIn{to{-moz-transform:translateX(0);opacity:1}}@keyframes dslcSlideLeftFadeIn{to{transform:translateX(0);opacity:1}}.dslc-in-viewport-anim-dslcSlideLeftFadeIn.dslc-in-viewport-check{-webkit-transform:translateX(100px);-moz-transform:translateX(100px);transform:translateX(100px);opacity:0}}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-post-thumb .dslc-on-hover-anim-target{opacity:1!important;-webkit-transform:translateY(0)!important;-moz-transform:translateY(0)!important;transform:translateY(0)!important;-webkit-transform:translateX(0)!important;-moz-transform:translateX(0)!important;transform:translateX(0)!important}.dslc-anim-dslcFadeIn,.dslc-anim-dslcSlideDownFadeIn,.dslc-anim-dslcSlideLeftFadeIn,.dslc-anim-dslcSlideRightFadeIn,.dslc-anim-dslcSlideUpFadeIn{opacity:0}.dslc-on-hover-anim:hover .dslc-anim-dslcFadeIn,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideDownFadeIn,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideLeftFadeIn,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideRightFadeIn,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideUpFadeIn{opacity:1}.dslc-anim-dslcSlideDown,.dslc-anim-dslcSlideDownFadeIn{-webkit-transform:translateY(-100%);-moz-transform:translateY(-100%);transform:translateY(-100%)}.dslc-on-hover-anim:hover .dslc-anim-dslcSlideDown,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideDownFadeIn{-webkit-transform:translateY(0);-moz-transform:translateY(0);transform:translateY(0)}.dslc-anim-dslcSlideUp,.dslc-anim-dslcSlideUpFadeIn{-webkit-transform:translateY(100%);-moz-transform:translateY(100%);transform:translateY(100%)}.dslc-on-hover-anim:hover .dslc-anim-dslcSlideUp,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideUpFadeIn{-webkit-transform:translateY(0);-moz-transform:translateY(0);transform:translateY(0)}.dslc-anim-dslcSlideRight,.dslc-anim-dslcSlideRightFadeIn{-webkit-transform:translateX(-100%);-moz-transform:translateX(-100%);transform:translateX(-100%)}.dslc-on-hover-anim:hover .dslc-anim-dslcSlideRight,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideRightFadeIn{-webkit-transform:translateX(0);-moz-transform:translateX(0);transform:translateX(0)}.dslc-anim-dslcSlideLeft,.dslc-anim-dslcSlideLeftFadeIn{-webkit-transform:translateX(100%);-moz-transform:translateX(100%);transform:translateX(100%)}.dslc-on-hover-anim:hover .dslc-anim-dslcSlideLeft,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideLeftFadeIn{-webkit-transform:translateX(0);-moz-transform:translateX(0);transform:translateX(0)}.dslc-anim-none{opacity:0;-webkit-transition:all 0s ease-out!important}.dslc-on-hover-anim:hover .dslc-anim-none{opacity:1}.dslca-enabled.dslc-res-big .dslc-hide-on-desktop,.dslca-enabled.dslc-res-smaller-monitor .dslc-hide-on-desktop{display:block!important}.dslca-composer-hidden.dslc-res-big .dslc-hide-on-desktop,.dslca-composer-hidden.dslc-res-smaller-monitor .dslc-hide-on-desktop{display:none!important}
|
1 |
+
.dslc-clear,.dslc-clearfix:after,.dslc-first-col,.dslc-module-heading:after{clear:both}#dslc-content blockquote p:last-child{margin-bottom:0!important}#dslc-header{position:relative}#dslc-header.dslc-header-pos-absolute{position:absolute;top:0;left:0;right:0;z-index:999999}#dslc-header.dslc-header-pos-fixed{position:fixed;top:0;left:0;right:0;z-index:999999}body.admin-bar #dslc-header.dslc-header-pos-absolute,body.admin-bar #dslc-header.dslc-header-pos-fixed{top:32px}#dslc-footer{position:relative}#dslc-footer.dslc-footer-pos-absolute{position:absolute;bottom:0;left:0;right:0;z-index:999999}#dslc-footer.dslc-footer-pos-fixed{position:fixed;bottom:0;left:0;right:0;z-index:999999}#dslc-header.dslca-header-low-z-index,.dslca-drag-in-progress #dslc-header{z-index:0}#dslc-content{position:relative}.dslca-activate-composer-hook,.dslca-container .dslca-close-composer-hook,.dslca-container .dslca-hide-composer-hook,.dslca-container .dslca-show-composer-hook{background:#e55f5f;border-radius:3px;bottom:4px;color:#fff;cursor:pointer;display:block;font-size:11px;font-family:"Open Sans";font-weight:900;line-height:1;padding:11px 12px;text-transform:uppercase;text-decoration:none;white-space:nowrap;float:left;margin-left:5px}.dslca-container .dslca-hide-composer-hook{background:#06b2ac}.dslca-container .dslca-show-composer-hook{background:#9268a9;display:none}.dslca-activate-composer-hook:hover,.dslca-activate-composer-hook:visited,.dslca-close-composer-hook:hover,.dslca-close-composer-hook:visited{color:#fff}.dslca-activate-composer-hook{background:#54c13f;color:#fff;position:fixed;z-index:99999;right:5px;bottom:5px}.dslca-activate-composer-hook.dslca-position-left{right:auto;left:5px}.dslca-activate-composer-hook .dslca-icon,.dslca-container .dslca-close-composer-hook .dslca-icon,.dslca-container .dslca-hide-composer-hook .dslca-icon,.dslca-container .dslca-show-composer-hook .dslca-icon{color:rgba(255,255,255,.66);margin-right:5px}.dslc-modules-section{border:0 solid transparent;position:relative}.dslc-modules-section.dslc-init-parallax{background-attachment:fixed}.dslc-modules-section-wrapper{max-width:100%;margin:0 auto}.dslc-modules-section.dslc-full .dslc-modules-section-wrapper{width:100%}.dslc-module-front{position:relative}.dslc-col{display:block;float:left;margin-right:2.12766%}body.rtl .dslc-col{float:right;margin-left:2.12766%;margin-right:0}.dslc-1-col{width:6.38297%}.dslc-2-col{width:14.89361%}.dslc-3-col{width:23.40425%}.dslc-4-col{width:31.91489%}.dslc-5-col{width:40.42553%}.dslc-6-col{width:48.93617%}.dslc-7-col{width:57.4468%}.dslc-8-col{width:65.95744%}.dslc-9-col{width:74.46808%}.dslc-10-col{width:82.97872%}.dslc-11-col{width:91.48936%}.dslc-12-col{width:100%}.dslc-last-col{margin-right:0}body.rtl .dslc-last-col{margin-left:0}.dslc-no-columns-spacing .dslc-col{margin:0}.dslc-no-columns-spacing .dslc-1-col{width:8.33333%}.dslc-no-columns-spacing .dslc-2-col{width:16.66666%}.dslc-no-columns-spacing .dslc-3-col{width:25%}.dslc-no-columns-spacing .dslc-4-col{width:33.33333%}.dslc-no-columns-spacing .dslc-5-col{width:41.66666%}.dslc-no-columns-spacing .dslc-6-col{width:50%}.dslc-no-columns-spacing .dslc-7-col{width:58.33333%}.dslc-no-columns-spacing .dslc-8-col{width:66.66666%}.dslc-no-columns-spacing .dslc-9-col{width:75%}.dslc-no-columns-spacing .dslc-10-col{width:83.33333%}.dslc-no-columns-spacing .dslc-11-col{width:91.66666%}.dslc-no-columns-spacing .dslc-12-col,.dslc-no-columns-spacing .dslc-carousel .dslc-col,.dslc-no-columns-spacing .dslc-carousel .dslc-first-col,.dslc-no-columns-spacing .dslc-carousel .dslc-last-col{width:100%}.dslc-clearfix:after,.dslc-clearfix:before,.dslc-module-heading:after,.dslc-module-heading:before{content:" ";display:table}.dslc-fl{float:left}.dslc-fr{float:right}.dslc-no-float{float:none!important}.dslc-posts{overflow:hidden}.dslc-carousel .dslc-col,.dslc-carousel .dslc-first-col,.dslc-carousel .dslc-last-col{float:none;clear:none;margin:0}.dslc-carousel-item{width:auto}.dslc-carousel-nav{float:right}.dslc-carousel-nav-inner{display:block}.dslc-carousel-nav-next,.dslc-carousel-nav-prev{background:#c9c9c9;border:0 solid transparent;border-radius:3px;display:inline-block;height:23px;position:relative;width:23px;text-decoration:none;vertical-align:bottom}.dslc-carousel-nav-prev{margin-right:7px}.dslc-carousel-nav-next span,.dslc-carousel-nav-prev span{color:#fff;font-size:10px;position:absolute;left:0;right:0;text-align:center;font-weight:400}#dslc-content .dslc-carousel .owl-pagination .owl-page span{margin:0;filter:Alpha(Opacity=100);opacity:1}#dslc-content .dslc-slider{padding-bottom:1px;opacity:0;max-height:10px}#dslc-content .dslc-slider img{max-width:100%}#dslc-content .dslc-slider .owl-pagination .owl-page span{margin:0;filter:Alpha(Opacity=100);opacity:1}.dslc-carousel{opacity:0;max-height:100px}@keyframes dslcSpin{0%{-webkit-transform:rotate(0);-moz-transform:rotate(0);-o-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-o-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes dslcSpin{0%{-moz-transform:rotate(0);transform:rotate(0)}100%{-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dslcSpin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-ms-keyframes "dslcSpin"{0%{-ms-transform:rotate(0);transform:rotate(0)}100%{-ms-transform:rotate(360deg);transform:rotate(360deg)}}@-o-keyframes dslcSpin{0%{-o-transform:rotate(0);transform:rotate(0)}100%{-o-transform:rotate(360deg);transform:rotate(360deg)}}.dslc-loader{position:relative;width:20px;height:20px;border:2px solid #0cf;border-radius:50%;-webkit-animation:dslcSpin .75s infinite linear;-moz-animation:dslcSpin .75s infinite linear;-ms-animation:dslcSpin .75s infinite linear;-o-animation:dslcSpin .75s infinite linear;animation:dslcSpin .75s infinite linear;margin-left:48%}.dslc-loader::after,.dslc-loader::before{left:-2px;top:-2px;display:none;position:absolute;content:'';width:inherit;height:inherit;border:inherit;border-radius:inherit}.dslc-loader,.dslc-loader::before{display:inline-block;border-color:#0cf transparent transparent}.dslc-loader::before{-webkit-animation:dslcSpin 1.5s infinite ease;-moz-animation:dslcSpin 1.5s infinite ease;-ms-animation:dslcSpin 1.5s infinite ease;-o-animation:dslcSpin 1.5s infinite ease;animation:dslcSpin 1.5s infinite ease}.dslc-notification{background:#fff;border:1px solid #e8e8e8;border-radius:3px;color:#979797;margin-bottom:20px;padding:15px;position:relative;font-size:14px;line-height:25px;font-family:"Open Sans"}.dslc-notification.dslc-green,.dslc-notification.dslc-red,.dslc-notification.dslc-yellow{color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.14)}.dslc-notification .dslc-icon{cursor:pointer;position:absolute;right:14px;top:21px}.dslc-notification.dslc-red{background:#f65757;border-color:#e43737}.dslc-notification.dslc-yellow{background:#fac841;border-color:#eab72e}.dslc-notification.dslc-green{background:#8ccb25;border-color:#77b01a}#dslc-content .dslc-module-heading{overflow:hidden;position:relative}.dslc-init-topleft,.dslc-init-topright{position:absolute!important;top:0!important;bottom:auto!important}#dslc-content .dslc-module-heading h2{display:block;float:left;font-size:17px;font-weight:400;font-family:Oswald;line-height:1;margin:0 15px 0 0;padding:0}#dslc-content .dslc-module-heading-view-all{display:block;float:left;font-size:11px;line-height:1;margin:3px 20px 3px 0}#dslc-content .dslc-module-heading-view-all a{display:block;padding-left:15px;border-left:1px dotted #4f4f4f;font-family:"Open Sans";font-weight:600;line-height:1;text-decoration:none}.dslc-masonry-item{margin-bottom:30px;margin-right:0}.dslc-masonry-item-animate{-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;-ms-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.dslc-post-separator{clear:both;height:1px;margin-bottom:15px;padding-bottom:15px;border-bottom:1px solid #ededed}.dslc-pagination{border:0 solid transparent;overflow:hidden;margin-top:30px}.dslc-pagination ul{margin:0;padding:0}.dslc-pagination li{display:inline-block;margin:0 10px 0 0;padding:0}.dslc-pagination li:last-child{margin-right:0!important}.dslc-pagination-load-more .dslc-icon,.dslc-post-filter{margin-right:10px}.dslc-pagination li a{background:#eee;border:0 solid transparent;color:#000;display:block;line-height:1;padding:10px;text-decoration:none}.dslc-pagination li.current a{background:#000;color:#fff}.dslc-pagination li.dslc-pagination-load-more{width:auto;display:block}.dslc-pagination li.dslc-pagination-load-more.dslc-inactive a{cursor:default}.dslc-load-more-temp{display:none}.dslc-init-center{visibility:hidden}.dslc-init-topleft{left:0!important;right:auto!important}.dslc-init-topright{right:0!important;left:auto!important}.dslc-init-bottomleft,.dslc-init-bottomright{position:absolute!important;bottom:0!important;top:auto!important}.dslc-init-bottomleft{left:0!important;right:auto!important}.dslc-init-bottomright{right:0!important;left:auto!important}.dslc-post-filters{overflow:hidden;font-size:0}.dslc-post-filter{background:#fff;border:1px solid #e8e8e8;border-radius:3px;color:#979797;cursor:pointer;display:inline-block;font-size:11px;font-weight:700;font-family:"Open Sans";line-height:1;padding:12px}#dslc-content .dslc-bg-video .mejs-controls,.dslc-res-big .dslc-hide-on-desktop,.dslc-res-phone .dslc-hide-on-phone,.dslc-res-smaller-monitor .dslc-hide-on-desktop,.dslc-res-tablet .dslc-hide-on-tablet{display:none!important}.dslc-post-filter.dslc-active{color:#ff4e01}.dslc-post-filter:last-child{margin-right:0!important}#dslc-content .dslc-bg-video{background:0 0;position:absolute;left:0;right:0;bottom:0;top:0;opacity:0}#dslc-content .dslc-bg-video.dslc-force-show{opacity:1}#dslc-content .dslc-bg-video .mejs-container{background:0 0;position:absolute;left:0;right:0;bottom:0;top:0;width:100%!important;height:auto!important;overflow:hidden}#dslc-content .dslc-bg-video video{min-width:100%;height:auto!important;min-height:100%}#dslc-content .dslc-bg-video-overlay{position:absolute;left:0;top:0;right:0;bottom:0;opacity:0;background:#000}.dslc-trigger-lightbox-gallery{cursor:pointer}body.dslc-res-phone .dslc-col{width:100%;margin:0 0 30px;min-width:0}body.dslc-res-phone .dslc-module-front.dslc-col{margin-bottom:0}@media only screen and (min-device-width :768px) and (max-device-width :1024px){.dslc-modules-section.dslc-init-parallax{background-attachment:scroll!important;background-position:0 0!important}}@media only screen and (max-width:767px){.dslc-modules-section.dslc-init-parallax{background-attachment:scroll!important;background-position:0 0!important}}body.dslca-enabled.dslc-res-tablet #dslc-content{max-width:768px;margin:0 auto}body.dslca-enabled.dslc-res-phone #dslc-content{max-width:480px;margin:0 auto}@media only screen and (min-width:768px){@-webkit-keyframes dslcFadeIn{to{opacity:1}}@-moz-keyframes dslcFadeIn{to{opacity:1}}@keyframes dslcFadeIn{to{opacity:1}}.dslc-in-viewport-anim-dslcFadeIn.dslc-in-viewport-check{opacity:0}@-webkit-keyframes dslcSlideUp{to{-webkit-transform:translateY(0)}}@-moz-keyframes dslcSlideUp{to{-moz-transform:translateY(0)}}@keyframes dslcSlideUp{to{transform:translateY(0)}}.dslc-in-viewport-anim-dslcSlideUp.dslc-in-viewport-check{-webkit-transform:translateY(100px);-moz-transform:translateY(100px);transform:translateY(100px)}@-webkit-keyframes dslcSlideDown{to{-webkit-transform:translateY(0)}}@-moz-keyframes dslcSlideDown{to{-moz-transform:translateY(0)}}@keyframes dslcSlideDown{to{transform:translateY(0)}}.dslc-in-viewport-anim-dslcSlideDown.dslc-in-viewport-check{-webkit-transform:translateY(-100px);-moz-transform:translateY(-100px);transform:translateY(-100px)}@-webkit-keyframes dslcSlideRight{to{-webkit-transform:translateX(0)}}@-moz-keyframes dslcSlideRight{to{-moz-transform:translateX(0)}}@keyframes dslcSlideRight{to{transform:translateX(0)}}.dslc-in-viewport-anim-dslcSlideRight.dslc-in-viewport-check{-webkit-transform:translateX(-100px);-moz-transform:translateX(-100px);transform:translateX(-100px)}@-webkit-keyframes dslcSlideLeft{to{-webkit-transform:translateX(0)}}@-moz-keyframes dslcSlideLeft{to{-moz-transform:translateX(0)}}@keyframes dslcSlideLeft{to{transform:translateX(0)}}.dslc-in-viewport-anim-dslcSlideLeft.dslc-in-viewport-check{-webkit-transform:translateX(100px);-moz-transform:translateX(100px);transform:translateX(100px)}@-webkit-keyframes dslcSlideUpFadeIn{to{-webkit-transform:translateY(0);opacity:1}}@-moz-keyframes dslcSlideUpFadeIn{to{-moz-transform:translateY(0);opacity:1}}@keyframes dslcSlideUpFadeIn{to{transform:translateY(0);opacity:1}}.dslc-in-viewport-anim-dslcSlideUpFadeIn.dslc-in-viewport-check{-webkit-transform:translateY(100px);-moz-transform:translateY(100px);transform:translateY(100px);opacity:0}@-webkit-keyframes dslcSlideDownFadeIn{to{-webkit-transform:translateY(0);opacity:1}}@-moz-keyframes dslcSlideDownFadeIn{to{-moz-transform:translateY(0);opacity:1}}@keyframes dslcSlideDownFadeIn{to{transform:translateY(0);opacity:1}}.dslc-in-viewport-anim-dslcSlideDownFadeIn.dslc-in-viewport-check{-webkit-transform:translateY(-100px);-moz-transform:translateY(-100px);transform:translateY(-100px);opacity:0}@-webkit-keyframes dslcSlideRightFadeIn{to{-webkit-transform:translateX(0);opacity:1}}@-moz-keyframes dslcSlideRightFadeIn{to{-moz-transform:translateX(0);opacity:1}}@keyframes dslcSlideRightFadeIn{to{transform:translateX(0);opacity:1}}.dslc-in-viewport-anim-dslcSlideRightFadeIn.dslc-in-viewport-check{-webkit-transform:translateX(-100px);-moz-transform:translateX(-100px);transform:translateX(-100px);opacity:0}@-webkit-keyframes dslcSlideLeftFadeIn{to{-webkit-transform:translateX(0);opacity:1}}@-moz-keyframes dslcSlideLeftFadeIn{to{-moz-transform:translateX(0);opacity:1}}@keyframes dslcSlideLeftFadeIn{to{transform:translateX(0);opacity:1}}.dslc-in-viewport-anim-dslcSlideLeftFadeIn.dslc-in-viewport-check{-webkit-transform:translateX(100px);-moz-transform:translateX(100px);transform:translateX(100px);opacity:0}}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-post-thumb .dslc-on-hover-anim-target{opacity:1!important;-webkit-transform:translateY(0)!important;-moz-transform:translateY(0)!important;transform:translateY(0)!important;-webkit-transform:translateX(0)!important;-moz-transform:translateX(0)!important;transform:translateX(0)!important}.dslc-anim-dslcFadeIn,.dslc-anim-dslcSlideDownFadeIn,.dslc-anim-dslcSlideLeftFadeIn,.dslc-anim-dslcSlideRightFadeIn,.dslc-anim-dslcSlideUpFadeIn{opacity:0}.dslc-on-hover-anim:hover .dslc-anim-dslcFadeIn,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideDownFadeIn,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideLeftFadeIn,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideRightFadeIn,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideUpFadeIn{opacity:1}.dslc-anim-dslcSlideDown,.dslc-anim-dslcSlideDownFadeIn{-webkit-transform:translateY(-100%);-moz-transform:translateY(-100%);transform:translateY(-100%)}.dslc-on-hover-anim:hover .dslc-anim-dslcSlideDown,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideDownFadeIn{-webkit-transform:translateY(0);-moz-transform:translateY(0);transform:translateY(0)}.dslc-anim-dslcSlideUp,.dslc-anim-dslcSlideUpFadeIn{-webkit-transform:translateY(100%);-moz-transform:translateY(100%);transform:translateY(100%)}.dslc-on-hover-anim:hover .dslc-anim-dslcSlideUp,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideUpFadeIn{-webkit-transform:translateY(0);-moz-transform:translateY(0);transform:translateY(0)}.dslc-anim-dslcSlideRight,.dslc-anim-dslcSlideRightFadeIn{-webkit-transform:translateX(-100%);-moz-transform:translateX(-100%);transform:translateX(-100%)}.dslc-on-hover-anim:hover .dslc-anim-dslcSlideRight,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideRightFadeIn{-webkit-transform:translateX(0);-moz-transform:translateX(0);transform:translateX(0)}.dslc-anim-dslcSlideLeft,.dslc-anim-dslcSlideLeftFadeIn{-webkit-transform:translateX(100%);-moz-transform:translateX(100%);transform:translateX(100%)}.dslc-on-hover-anim:hover .dslc-anim-dslcSlideLeft,.dslc-on-hover-anim:hover .dslc-anim-dslcSlideLeftFadeIn{-webkit-transform:translateX(0);-moz-transform:translateX(0);transform:translateX(0)}.dslc-anim-none{opacity:0;-webkit-transition:all 0s ease-out!important}.dslc-on-hover-anim:hover .dslc-anim-none{opacity:1}.dslca-enabled.dslc-res-big .dslc-hide-on-desktop,.dslca-enabled.dslc-res-smaller-monitor .dslc-hide-on-desktop{display:block!important}.dslca-composer-hidden.dslc-res-big .dslc-hide-on-desktop,.dslca-composer-hidden.dslc-res-smaller-monitor .dslc-hide-on-desktop{display:none!important}
|
css/modules.css
CHANGED
@@ -19,6 +19,7 @@
|
|
19 |
|
20 |
#dslc-content .dslc-cpt-post-thumb-inner {
|
21 |
border: 0 solid transparent;
|
|
|
22 |
}
|
23 |
|
24 |
#dslc-content .dslc-cpt-post-thumb a {
|
@@ -162,6 +163,7 @@
|
|
162 |
|
163 |
#dslc-content .dslc-blog-post-thumb-inner {
|
164 |
border: 0 solid transparent;
|
|
|
165 |
}
|
166 |
|
167 |
#dslc-content .dslc-blog-post-thumb a {
|
@@ -313,6 +315,7 @@
|
|
313 |
|
314 |
#dslc-content .dslc-download-thumb-inner {
|
315 |
border: 0 solid transparent;
|
|
|
316 |
}
|
317 |
|
318 |
#dslc-content .dslc-download-thumb a {
|
@@ -440,6 +443,7 @@
|
|
440 |
#dslc-content .dslc-gallery-thumb-inner {
|
441 |
border: 0 solid transparent;
|
442 |
position: relative;
|
|
|
443 |
}
|
444 |
|
445 |
#dslc-content .dslc-gallery-thumb a {
|
@@ -774,6 +778,7 @@
|
|
774 |
|
775 |
#dslc-content .dslc-projects .dslc-project-thumb-inner {
|
776 |
border: 0 solid transparent;
|
|
|
777 |
}
|
778 |
|
779 |
#dslc-content .dslc-projects .dslc-project-thumb a {
|
@@ -1263,6 +1268,7 @@
|
|
1263 |
|
1264 |
#dslc-content .dslc-product-thumb-inner {
|
1265 |
bottom: 0 solid transparent;
|
|
|
1266 |
}
|
1267 |
|
1268 |
#dslc-content .dslc-product-thumb a {
|
@@ -1504,6 +1510,7 @@
|
|
1504 |
|
1505 |
#dslc-content .dslc-tp-thumbnail {
|
1506 |
bottom: 0 solid transparent;
|
|
|
1507 |
}
|
1508 |
|
1509 |
#dslc-content .dslc-tp-thumbnail img {
|
@@ -1591,6 +1598,45 @@
|
|
1591 |
display: block;
|
1592 |
}
|
1593 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1594 |
/**
|
1595 |
* Notification
|
1596 |
*/
|
@@ -1602,6 +1648,14 @@
|
|
1602 |
border-radius: 3px;
|
1603 |
color: #fff;
|
1604 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1605 |
|
1606 |
#dslc-content .dslc-notification-box-content {
|
1607 |
|
19 |
|
20 |
#dslc-content .dslc-cpt-post-thumb-inner {
|
21 |
border: 0 solid transparent;
|
22 |
+
overflow: hidden;
|
23 |
}
|
24 |
|
25 |
#dslc-content .dslc-cpt-post-thumb a {
|
163 |
|
164 |
#dslc-content .dslc-blog-post-thumb-inner {
|
165 |
border: 0 solid transparent;
|
166 |
+
overflow: hidden;
|
167 |
}
|
168 |
|
169 |
#dslc-content .dslc-blog-post-thumb a {
|
315 |
|
316 |
#dslc-content .dslc-download-thumb-inner {
|
317 |
border: 0 solid transparent;
|
318 |
+
overflow: hidden;
|
319 |
}
|
320 |
|
321 |
#dslc-content .dslc-download-thumb a {
|
443 |
#dslc-content .dslc-gallery-thumb-inner {
|
444 |
border: 0 solid transparent;
|
445 |
position: relative;
|
446 |
+
overflow: hidden;
|
447 |
}
|
448 |
|
449 |
#dslc-content .dslc-gallery-thumb a {
|
778 |
|
779 |
#dslc-content .dslc-projects .dslc-project-thumb-inner {
|
780 |
border: 0 solid transparent;
|
781 |
+
overflow: hidden;
|
782 |
}
|
783 |
|
784 |
#dslc-content .dslc-projects .dslc-project-thumb a {
|
1268 |
|
1269 |
#dslc-content .dslc-product-thumb-inner {
|
1270 |
bottom: 0 solid transparent;
|
1271 |
+
overflow: hidden;
|
1272 |
}
|
1273 |
|
1274 |
#dslc-content .dslc-product-thumb a {
|
1510 |
|
1511 |
#dslc-content .dslc-tp-thumbnail {
|
1512 |
bottom: 0 solid transparent;
|
1513 |
+
overflow: hidden;
|
1514 |
}
|
1515 |
|
1516 |
#dslc-content .dslc-tp-thumbnail img {
|
1598 |
display: block;
|
1599 |
}
|
1600 |
|
1601 |
+
/**
|
1602 |
+
* Staff Social
|
1603 |
+
*/
|
1604 |
+
|
1605 |
+
#dslc-content ul.dslc-staff-social {
|
1606 |
+
margin: 0;
|
1607 |
+
padding: 0;
|
1608 |
+
list-style-type: none;
|
1609 |
+
font-size: 0;
|
1610 |
+
line-height: 1;
|
1611 |
+
}
|
1612 |
+
|
1613 |
+
#dslc-content ul.dslc-staff-social li {
|
1614 |
+
margin: 0;
|
1615 |
+
padding: 0;
|
1616 |
+
line-height: 1;
|
1617 |
+
display: inline-block;
|
1618 |
+
overflow: hidden;
|
1619 |
+
}
|
1620 |
+
|
1621 |
+
#dslc-content ul.dslc-staff-social a {
|
1622 |
+
border: 0 solid transparent;
|
1623 |
+
display: block;
|
1624 |
+
text-decoration: none;
|
1625 |
+
text-align: center;
|
1626 |
+
position: relative;
|
1627 |
+
float: left;
|
1628 |
+
}
|
1629 |
+
|
1630 |
+
#dslc-content ul.dslc-staff-social .dslc-icon {
|
1631 |
+
line-height: 1;
|
1632 |
+
position: absolute;
|
1633 |
+
}
|
1634 |
+
|
1635 |
+
#dslc-content ul.dslc-staff-social .dslc-social-label {
|
1636 |
+
float: left;
|
1637 |
+
display: block;
|
1638 |
+
}
|
1639 |
+
|
1640 |
/**
|
1641 |
* Notification
|
1642 |
*/
|
1648 |
border-radius: 3px;
|
1649 |
color: #fff;
|
1650 |
}
|
1651 |
+
|
1652 |
+
.dslc-notification-box-has-timeout {
|
1653 |
+
display: none;
|
1654 |
+
}
|
1655 |
+
|
1656 |
+
body.dslca-enabled .dslc-notification-box-has-timeout {
|
1657 |
+
display: block;
|
1658 |
+
}
|
1659 |
|
1660 |
#dslc-content .dslc-notification-box-content {
|
1661 |
|
css/modules.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#dslc-content .dslc-cpt-post-main,#dslc-content .dslc-cpt-post-thumb-inner{border:0 solid transparent}#dslc-content .dslc-cpt-post-thumb{margin-bottom:20px;overflow:hidden;position:relative;line-height:0}#dslc-content .dslc-cpt-post-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-cpt-post-thumb img{border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;display:block;max-width:100%;height:auto}#dslc-content .dslc-cpt-post-thumb .dslc-cpt-post-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-cpt-post-thumb .dslc-cpt-post-main.dslc-cpt-post-main-visible{opacity:1!important}#dslc-content .dslc-cpt-post-thumb .dslc-cpt-post-main .dslc-init-center{position:relative}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-cpt-post-thumb .dslc-cpt-post-main{opacity:1}#dslc-content .dslc-cpt-post-meta{border:1px solid #e5e5e5;border-left:0;border-right:0;margin-bottom:20px;overflow:hidden;padding:13px 0;font-size:11px;line-height:1}#dslc-content .dslc-blog-post-main,#dslc-content .dslc-blog-post-thumb-inner{border:0 solid transparent}#dslc-content .dslc-cpt-post-meta-author{float:left}#dslc-content .dslc-cpt-post-meta-author a{text-decoration:none}#dslc-content .dslc-cpt-post-meta-date{float:right}#dslc-content .dslc-cpt-post-title{margin-bottom:13px}#dslc-content .dslc-cpt-post-title h2{font-family:"Open Sans";font-weight:600;font-size:15px;line-height:26px;margin:0;padding:0}#dslc-content .dslc-cpt-post-title h2 a{display:block;color:inherit;text-decoration:none}#dslc-content .dslc-cpt-post-excerpt{margin-bottom:22px;font-size:13px;line-height:22px}#dslc-content .dslc-cpt-post-read-more a{display:inline-block;line-height:1;text-decoration:none;border:0 solid transparent}#dslc-content .dslc-cpt-posts-orientation-horizontal .dslc-cpt-post-thumb{float:left;margin-right:20px;width:200px}#dslc-content .dslc-cpt-posts-orientation-horizontal .dslc-cpt-post-main,.dslc-post-thumb{overflow:hidden}#dslc-content .dslc-blog-post-thumb{margin-bottom:20px;overflow:hidden;position:relative;line-height:0}#dslc-content .dslc-blog-post-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-blog-post-thumb img{border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;display:block;max-width:100%;height:auto}#dslc-content .dslc-blog-post-thumb .dslc-blog-post-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-blog-post-thumb .dslc-blog-post-main.dslc-blog-post-main-visible{opacity:1!important}#dslc-content .dslc-blog-post-thumb .dslc-blog-post-main .dslc-init-center{position:relative}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-blog-post-thumb .dslc-blog-post-main{opacity:1}#dslc-content .dslc-blog-post-meta{border:1px solid #e5e5e5;border-left:0;border-right:0;margin-bottom:20px;overflow:hidden;padding:13px 0;font-size:11px;line-height:1}#dslc-content .dslc-blog-post-meta-author{float:left}#dslc-content .dslc-blog-post-meta-avatar{margin-right:10px;width:30px;display:inline-block}#dslc-content .dslc-blog-post-meta-avatar img{vertical-align:middle;width:100%;height:auto;border-radius:50%}#dslc-content .dslc-blog-post-meta-author a{text-decoration:none}#dslc-content .dslc-blog-post-meta-date{float:right}#dslc-content .dslc-blog-post-title{margin-bottom:13px}#dslc-content .dslc-blog-post-title h2{font-family:"Open Sans";font-weight:600;font-size:15px;line-height:26px;margin:0;padding:0}#dslc-content .dslc-blog-post-title h2 a{display:block;color:inherit;text-decoration:none}#dslc-content .dslc-blog-post-excerpt{margin-bottom:22px;font-size:13px;line-height:22px}#dslc-content .dslc-blog-post-read-more a{display:inline-block;line-height:1;text-decoration:none;border:0 solid transparent}#dslc-content .dslc-posts-orientation-horizontal .dslc-post-thumb{float:left;margin-right:20px;width:200px}#dslc-content .dslc-posts-orientation-horizontal .dslc-post-main{overflow:hidden}#dslc-content .dslc-download-thumb{position:relative;line-height:0}#dslc-content .dslc-download-thumb-inner{border:0 solid transparent}#dslc-content .dslc-download-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-download-thumb img{border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;display:block;max-width:100%;height:auto}#dslc-content .dslc-download-download a,#dslc-content .dslc-download-main{border:0 solid transparent;text-align:center}#dslc-content .dslc-download-thumb .dslc-download-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-download-thumb .dslc-download-main.dslc-download-main-visible{opacity:1!important}#dslc-content .dslc-download-thumb .dslc-download-main .dslc-init-center{position:relative}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-download-thumb .dslc-download-main{opacity:1}#dslc-content .dslc-download-title{margin-bottom:13px}#dslc-content .dslc-download-title h2{font-size:15px;line-height:1.7;margin:0;padding:0}#dslc-content .dslc-download-title h2 a{display:block;color:inherit;text-decoration:none}#dslc-content .dslc-download-tags{border:1px solid #e5e5e5;border-width:1px 0;font-size:12px;padding:8px 0;line-height:1;margin-bottom:22px}#dslc-content .dslc-download-excerpt{margin-bottom:22px;font-size:13px;line-height:22px;font-weight:400}#dslc-content .dslc-download-download{margin-bottom:10px}#dslc-content .dslc-download-download a{background:#ff4e01;border-radius:3px;color:#fff;display:block;font-size:13px;font-weight:700;line-height:1;padding:15px 0;text-decoration:none}#dslc-content .dslc-download-download .dslc-icon{margin-right:10px}#dslc-content .dslc-download-info{font-size:10px;font-style:italic}#dslc-content .dslc-gallery-thumb{position:relative;line-height:0}#dslc-content .dslc-gallery-thumb-inner{border:0 solid transparent;position:relative}#dslc-content .dslc-gallery-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-gallery-thumb img{border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;display:block;box-shadow:none;max-width:100%;height:auto}#dslc-content .dslc-gallery-images-count{background:0 0;border:0 solid transparent;border-radius:50%;position:absolute;top:40%;left:35%;text-align:center;text-decoration:none}#dslc-content .dslc-gallery-images-count-bg{background:0 0;border:0 solid transparent;position:absolute;top:0;left:0;right:0;bottom:0}#dslc-content .dslc-gallery-images-count-main{position:relative}#dslc-content .dslc-gallery-images-count-num{color:#fff;display:block;font-size:25px;font-family:Oswald;font-weight:200;line-height:1;margin-bottom:8px}#dslc-content .dslc-gallery-images-count-txt{color:#7d7d7d;display:block;font-size:11px;font-family:Brawler;line-height:1}#dslc-content .dslc-gallery-thumb .dslc-gallery-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-gallery-thumb .dslc-gallery-main.dslc-gallery-main-visible{opacity:1!important}#dslc-content .dslc-gallery-thumb .dslc-gallery-main .dslc-init-center{position:relative}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-gallery-thumb .dslc-gallery-main{opacity:1}#dslc-content .dslc-gallery-main{border:0 solid transparent;text-align:center}#dslc-content .dslc-gallery-title{margin-bottom:15px}#dslc-content .dslc-gallery-title h2{font-family:Brawler;font-size:11px;line-height:1;margin:0;padding:0}#dslc-content .dslc-gallery-title h2 a{display:block;color:#7d7d7d;text-decoration:none}#dslc-content .dslc-gallery-sep{display:block;height:1px;border-bottom:1px solid #4a4a4a;margin-bottom:15px}#dslc-content .dslc-gallery-excerpt{font-size:12px;border-width:1px 0 0}#dslc-content .dslc-gallery-read-more a{display:inline-block;line-height:1;text-decoration:none;border:0 solid transparent}#dslc-content .dslc-gallery .dslc-lightbox-gallery{display:none}.dslc-info-box{text-align:center;border:0 solid transparent;-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.dslc-info-box-image{margin-bottom:25px;position:relative;font-size:0}.dslc-info-box-image-link{position:absolute;top:0;left:0;right:0;bottom:0}.dslc-info-box-icon-pos-aside .dslc-info-box-main{overflow:hidden}.dslc-info-box-icon-pos-aside .dslc-info-box-image{float:left;margin-right:20px}.dslc-info-box-image-inner{display:inline-block;position:relative;border:0 solid transparent}.dslc-info-box-image-inner .dslc-icon{color:#fff;line-height:1;font-size:40px;position:absolute}.dslc-info-box-image-alt-inner img{-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.dslc-info-box-title{margin-bottom:25px}.dslc-info-box-title h4{font-size:17px;line-height:1;margin:0;padding:0;font-weight:400}.dslc-info-box-title h4 a{color:inherit;text-decoration:none}.dslc-info-box-content{margin-bottom:25px}.dslc-info-box-button{font-size:0}.dslc-info-box-button a{display:inline-block;line-height:1;text-decoration:none}.dslc-info-box-button-aside{float:right}#dslc-content .dslc-partner .dslc-partner-thumb{border:1px solid #ebebeb;padding:50px 0;text-align:center;position:relative;line-height:0}#dslc-content .dslc-partner .dslc-partner-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-partner .dslc-partner-thumb img{border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;display:inline-block;vertical-align:bottom;width:auto;max-width:100%;height:auto}#dslc-content .dslc-partner .dslc-partner-main,#dslc-content .dslc-projects .dslc-project-thumb-inner{border:0 solid transparent}#dslc-content .dslc-partner-thumb .dslc-partner-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-partner-thumb .dslc-partner-main.dslc-partner-main-visible{opacity:1!important}#dslc-content .dslc-partner-thumb .dslc-partner-main .dslc-init-center{position:relative}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-partner-thumb .dslc-partner-main{opacity:1}#dslc-content .dslc-partner .dslc-partner-title{margin-bottom:10px}#dslc-content .dslc-partner .dslc-partner-title h2{color:#222;font-family:Oswald;font-weight:700;font-size:14px;line-height:1;margin:0;padding:0}#dslc-content .dslc-partner .dslc-partner-title h2 a{display:block;color:inherit;text-decoration:none}#dslc-content .dslc-partner .dslc-partner-excerpt{color:#444;font-family:"Open Sans";font-weight:400;font-size:12px;line-height:22px}#dslc-content .dslc-projects .dslc-project-thumb{margin-bottom:24px;position:relative;line-height:0}#dslc-content .dslc-projects .dslc-project-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-projects .dslc-project-thumb img{border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;display:block;max-width:100%;height:auto}#dslc-content .dslc-projects .dslc-project-thumb .dslc-project-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-projects .dslc-project-thumb .dslc-project-main.dslc-project-main-visible{opacity:1!important}#dslc-content .dslc-projects .dslc-project-thumb .dslc-project-main .dslc-init-center{position:relative}body.dslca-enabled #dslc-content .dslc-projects .dslc-post:first-child .dslc-project-thumb .dslc-project-main{opacity:1}#dslc-content .dslc-projects .dslc-project-main{border:0 solid transparent}#dslc-content .dslc-projects .dslc-project-title{margin-bottom:10px}#dslc-content .dslc-projects .dslc-project-title h2{color:#000;font-family:"Open Sans";font-weight:700;font-size:12px;line-height:1;margin:0;padding:0}#dslc-content .dslc-projects .dslc-project-title h2 a{display:block;color:inherit;text-decoration:none}#dslc-content .dslc-projects .dslc-project-cats{font-family:"Droid Serif";font-size:10px;font-style:italic;line-height:1}#dslc-content .dslc-project-excerpt{margin-bottom:22px;font-size:13px;line-height:22px;border-top:0 solid #000}#dslc-content .dslc-project-read-more a{display:inline-block;line-height:1;text-decoration:none;border:0 solid transparent}.dslc-separator-wrapper{padding-bottom:1px}.dslc-separator{clear:both;height:1px;padding-bottom:25px;margin-bottom:25px;width:100%}.dslc-separator.dslc-separator-style-solid{border-bottom:1px solid #ededed}.dslc-separator.dslc-separator-style-dashed{border-bottom:1px dashed #ededed}.dslc-separator.dslc-separator-style-dotted{border-bottom:1px dotted #ededed}#dslc-content .dslc-staff-member{text-align:center}#dslc-content .dslc-staff-member-thumb{position:relative;line-height:0;border:0 solid transparent}#dslc-content .dslc-staff-member-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-staff-member-thumb img{border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;display:block;max-width:100%;height:auto}#dslc-content .dslc-staff-member-thumb .dslc-staff-member-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-staff-member-thumb .dslc-staff-member-main.dslc-staff-member-main-visible{opacity:1!important}#dslc-content .dslc-staff-member-thumb .dslc-staff-member-main .dslc-init-center{position:relative}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-staff-member-thumb .dslc-staff-member-main{opacity:1}#dslc-content .dslc-staff-member-social{background:#40bde6;border:0 solid transparent;border-radius:0 0 3px 3px;padding:12px 0;margin-bottom:25px}#dslc-content .dslc-staff-member-social a{color:#fff;margin:0 6px;font-size:13px;text-decoration:none}#dslc-content .dslc-staff-member-main{border:0 solid transparent}#dslc-content .dslc-staff-member-title{margin-bottom:23px}#dslc-content .dslc-staff-member-title h2{color:#323232;font-size:15px;font-family:"Open Sans";font-weight:600;line-height:1;margin:0;padding:0}#dslc-content .dslc-staff-member-title h2 a{display:block;text-decoration:none;color:inherit}#dslc-content .dslc-staff-member-position{border:1px solid #e5e5e5;font-size:12px;font-weight:600;font-style:italic;line-height:1;margin-bottom:20px}#dslc-content .dslc-tabs-nav-hook{background:#fbfbfb;border:1px solid #e8e8e8;border-bottom:1px solid #e8e8e8;border-radius:3px 3px 0 0;bottom:-1px;cursor:pointer;display:inline-block;padding:10px;position:relative;line-height:1;margin-left:-1px}#dslc-content .dslc-tabs-nav-hook:first-child{margin-left:0!important}#dslc-content .dslc-tabs-nav-hook.dslc-active{background:#fff}#dslc-content .dslc-tabs-content{background:#fff;border:1px solid #e8e8e8;border-radius:0 3px 3px}#dslc-content .dslc-tabs-tab-content{padding:35px;display:none;position:relative}#dslc-content .dslc-tabs-tab-content.dslc-active{display:block}.dslca-add-new-tab-hook,.dslca-delete-tab-hook{display:inline-block;margin-left:10px;cursor:pointer}.dslca-add-new-tab-hook{background:#78CA4F;border-radius:50%;color:#fff;font-size:11px;height:20px;text-align:center;line-height:22px;margin-top:8px;width:20px;position:relative}.dslca-add-new-tab-hook .dslca-icon{position:absolute;line-height:1;top:5px;right:6px}.dslca-delete-tab-hook{color:#E55F5F;font-size:12px;line-height:1;vertical-align:top}.dslc-tabs-content .dslc-tabs-nav-hook{display:none!important}body.dslc-res-phone .dslc-tabs-nav{display:none}body.dslc-res-phone .dslc-tabs-tab-content{display:block!important}body.dslc-res-phone .dslc-tabs-content .dslc-tabs-nav-hook{display:block!important;float:none!important;margin-bottom:20px}#dslc-content .dslc-testimonials{border:0 solid transparent}#dslc-content .dslc-testimonial-main{border:0 solid transparent;border-radius:4px;padding:25px;overflow:hidden}#dslc-content .dslc-widget-wrap,#dslc-content .dslc-widgets-wrap,.dslc-text-module-content{border:0 solid transparent}#dslc-content .dslc-testimonial-quote{border-bottom:0 solid transparent}#dslc-content .dslc-testimonial-author-pos-outside-left{float:left}#dslc-content .dslc-testimonial-author-pos-outside-right{float:right}#dslc-content .dslc-testimonial-author-avatar{border:0 solid transparent;float:left}#dslc-content .dslc-testimonial-author-avatar img{display:block;height:auto}#dslc-content .dslc-testimonial-author-main{overflow:hidden;float:left}#dslc-content .dslc-testimonial-author-name{line-height:1}#dslc-content .dslc-testimonial-author-position{line-height:1.1}#dslc-content .dslc-widget{margin-bottom:30px;width:100%}#dslc-content .dslc-widget:last-child{margin-bottom:0!important}#dslc-content .dslc-widget-title{font-size:15px;font-weight:600;border-bottom:1px solid #e5e5e5;margin-bottom:10px;padding-bottom:10px;line-height:1}#dslc-content .dslc-widget-title-inner{display:block}#dslc-content .dslc-widgets-2-col .dslc-col{width:14.89361%}#dslc-content .dslc-widgets-3-col .dslc-col{width:23.40425%}#dslc-content .dslc-widgets-4-col .dslc-col{width:31.91489%}#dslc-content .dslc-widgets-5-col .dslc-col{width:40.42553%}#dslc-content .dslc-widgets-6-col .dslc-col{width:48.93617%}#dslc-content .dslc-widgets-7-col .dslc-col{width:57.4468%}#dslc-content .dslc-widgets-8-col .dslc-col{width:65.95744%}#dslc-content .dslc-widgets-9-col .dslc-col{width:74.46808%}#dslc-content .dslc-widgets-10-col .dslc-col{width:82.97872%}#dslc-content .dslc-widgets-11-col .dslc-col{width:91.48936%}#dslc-content .dslc-widgets-12-col .dslc-col{width:100%;margin-right:0}#dslc-content .dslc-widgets-2-col .dslc-col:nth-child(6n),#dslc-content .dslc-widgets-3-col .dslc-col:nth-child(4n),#dslc-content .dslc-widgets-4-col .dslc-col:nth-child(3n),#dslc-content .dslc-widgets-6-col .dslc-col:nth-child(2n){margin-right:0}#dslc-content .dslc-widget li{border-style:solid}#dslc-content .dslc-product-thumb{position:relative;line-height:0}#dslc-content .dslc-product-thumb-inner{bottom:0 solid transparent}#dslc-content .dslc-product-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-product-thumb img{-moz-box-shadow:none;-webkit-box-shadow:none;display:block;border-radius:3px 3px 0 0;box-shadow:none;max-width:100%;height:auto}#dslc-content .dslc-product-thumb .dslc-product-price{background:0 0;color:#fff;display:block;font-weight:400;font-size:25px;font-family:Oswald;left:35%;line-height:1;position:absolute;top:40%;text-decoration:none;text-align:center}#dslc-content .dslc-product-price-secondary del,#dslc-content .dslc-product-thumb .dslc-product-price .from,#dslc-content .dslc-product-thumb .dslc-product-price del{display:none}#dslc-content .dslc-product-price-bg{background:0 0;border:0 solid transparent;position:absolute;top:0;left:0;right:0;bottom:0}#dslc-content .dslc-product-price-main{position:relative}#dslc-content .dslc-product-thumb .dslc-product-price ins{text-decoration:none;background:0 0}#dslc-content .dslc-product-thumb .dslc-product-price .amount{vertical-align:middle}#dslc-content .dslc-products .dslc-product-thumb .dslc-product-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-products .dslc-product-thumb .dslc-product-main.dslc-product-main-visible{opacity:1!important}#dslc-content .dslc-products .dslc-product-thumb .dslc-product-main .dslc-init-center{position:relative}body.dslca-enabled #dslc-content .dslc-products .dslc-post:first-child .dslc-product-thumb .dslc-product-main{opacity:1}#dslc-content .dslc-product-main{background:#1d1d1d;border-radius:0 0 3px 3px;padding:20px;text-align:center;border:0 solid transparent}#dslc-content .dslc-product-title{margin-bottom:15px}#dslc-content .dslc-product-price-secondary{color:#fff;float:left;font-size:20px;line-height:1;font-family:Oswald}#dslc-content .dslc-product-price-secondary ins{text-decoration:none;background:0 0}#dslc-content .dslc-product-title h2{clear:none;font-size:11px;font-family:Brawler;line-height:1;vertical-align:middle;margin:0;padding:0}#dslc-content .dslc-product-title h2 a{display:block;color:#7d7d7d;text-decoration:none}#dslc-content .dslc-product-excerpt{border-bottom:0 solid transparent}#dslc-content .dslc-product-sep{display:block;border-bottom:1px solid #4a4a4a;height:1px;margin-bottom:15px}#dslc-content .dslc-product-extra .dslc-product-add-to-cart{color:#8d8d8d;font-size:12px;line-height:1;text-decoration:none;float:left}#dslc-content .dslc-product-extra .dslc-product-details{color:#8d8d8d;font-size:12px;text-decoration:none;line-height:1;float:right}#dslc-content .dslc-product-extra .dslc-icon{margin-right:5px}#dslc-content .dslc-tp-content,#dslc-content .dslc-tp-meta,#dslc-content .dslc-tp-title,#dslc-content .dslc-tp-title h1{border:0 solid transparent}#dslc-content .dslc-tp-meta ul{margin:0;list-style-type:none;font-size:0}#dslc-content .dslc-tp-meta-horizontal li{display:inline-block;margin-top:0!important;margin-bottom:0!important;list-style-type:none}#dslc-content .dslc-tp-meta-horizontal li:first-child{margin-left:0!important}#dslc-content .dslc-tp-meta-horizontal li:last-child{margin-right:0!important}#dslc-content .dslc-tp-meta-vertical li{margin-left:0!important;margin-right:0!important}#dslc-content .dslc-tp-meta-vertical li:first-child{margin-top:0!important}#dslc-content .dslc-tp-meta-vertical li:last-child{margin-bottom:0!important}#dslc-content .dslc-tp-meta-avatar{margin-right:10px;width:30px;display:inline-block}#dslc-content .dslc-tp-meta-avatar img{vertical-align:middle;width:100%;border-radius:50%}#dslc-content .dslc-tp-gallery-slider,#dslc-content .dslc-tp-gallery-slider-main,#dslc-content .dslc-tp-gallery-slider-nav{border:0 solid transparent}#dslc-content .dslc-tp-download-button a{border:0 solid transparent;display:block;line-height:1;text-decoration:none;text-align:center}#dslc-content .dslc-tp-thumbnail{bottom:0 solid transparent}#dslc-content .dslc-tp-thumbnail img{display:inline-block;vertical-align:middle;max-width:100%;height:auto}#dslc-content .dslc-tp-gallery-slider-main li{overflow:hidden}#dslc-content .dslc-tp-gallery-slider-nav li{margin-right:10px;padding:5px;border:1px solid red;cursor:pointer;opacity:.7}#dslc-content .dslc-tp-gallery-slider-nav li.flex-active-slide{opacity:1}#dslc-content ul.dslc-social{margin:0;padding:0;list-style-type:none;font-size:0;line-height:1}#dslc-content ul.dslc-social li{margin:0 10px 0 0;padding:0;line-height:1;display:inline-block;overflow:hidden}#dslc-content ul.dslc-social a.dslc-social-icon{border:0 solid transparent;display:block;background:#40bde6;text-decoration:none;color:#fff;width:30px;height:30px;border-radius:15px;text-align:center;font-size:15px;position:relative;float:left}#dslc-content ul.dslc-social .dslc-icon{line-height:1;position:absolute}#dslc-content ul.dslc-social .dslc-social-label{float:left;display:block}#dslc-content .dslc-notification-box{background:#f65757;padding:15px;border:1px solid #e43737;border-radius:3px;color:#fff}#dslc-content .dslc-notification-box-content p:last-child{margin-bottom:0}#dslc-content .dslc-notification-box-close{position:absolute;right:15px;top:20px;cursor:pointer;background:#fff;color:#f65757;border-radius:50%;width:15px;height:15px}.dslc-comment,.dslc-tp-comments{border:0 solid transparent}#dslc-content .dslc-notification-box-close .dslc-icon{color:#f65757;position:absolute;font-size:12px}#dslc-content .dslc-button{overflow:hidden}#dslc-content .dslc-button a{display:inline-block;text-decoration:none;line-height:1}.dslc-tp-comments li,.dslc-tp-comments ol,.dslc-tp-comments ul{list-style-type:none}.dslc-tp-comments ol{margin-left:0}.dslc-comment{margin:0}.dslc-comment-inner{border:1px solid #ddd;padding:10px;margin-bottom:20px}.dslc-comment-info{margin-bottom:10px;border-bottom:1px solid #ddd}.dslc-accordion,.dslc-accordion-content,.dslc-accordion-header,.dslc-accordion-title,.dslc-progress-bar,.dslc-tp-comment-form,.dslc-tp-comment-form input,.dslc-tp-comment-form textarea{border:0 solid transparent}.dslc-comment-meta{float:left;margin:0}.dslc-comment-meta-author{display:inline-block;margin-right:15px;line-height:1}.dslc-comment-author-avatar{margin-right:5px}.dslc-comment-author-avatar img{vertical-align:middle}.dslc-comment-meta-date{display:inline-block;line-height:1}.dslc-comment-reply{float:right}.dslc-comment-reply a{text-decoration:none}.dslc-comment .dslc-comment{margin-left:50px}.dslc-res-phone .dslc-comment .dslc-comment{margin-left:0}.dslc-res-phone .dslc-comment .children{margin-left:0;padding-left:0}.dslc-tp-comment-form input[type=text]{line-height:1}.dslc-tp-comment-form textarea{width:100%;height:130px;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.dslc-tp-comment-form .logged-in-as{margin-bottom:15px}.dslc-tp-comment-form #submit{cursor:pointer}.dslc-image img{max-width:100%;display:inline-block;vertical-align:middle}.dslc-progress-bar-label{margin:0;padding:0;line-height:1}.dslc-progress-bar-loader{background:#666;display:block;height:18px}.dslc-progress-bar-loader-inner{display:block;float:left;overflow:hidden;white-space:nowrap}.dslc-progress-bar-animated .dslc-progress-bar-loader-inner{opacity:0}.dslca-enabled .dslc-progress-bar-animated .dslc-progress-bar-loader-inner{opacity:1}.dslc-accordion-item:first-child{margin-top:0!important}.dslc-accordion-header{display:block;font-family:"Open Sans";font-weight:700;font-size:11px;line-height:1;position:relative}.dslc-accordion-title{display:block}.dslc-accordion-hook{cursor:pointer}.dslc-accordion-toggle{display:block;position:absolute;left:0;top:0;bottom:0}.dslc-accordion-content{position:relative}.dslca-add-accordion{text-align:center}.dslca-add-accordion-hook{background:#78CA4F;border-radius:50%;color:#fff;cursor:pointer;display:inline-block;font-size:12px;height:20px;text-align:center;line-height:22px;width:20px;position:relative;margin-top:10px}.dslca-add-accordion-hook .dslca-icon{position:absolute;line-height:1;top:5px;right:6px}.dslca-accordion-action-hooks{position:absolute;right:14px;top:14px}.dslca-move-down-accordion-hook,.dslca-move-up-accordion-hook{color:#5890e5}.dslca-move-down-accordion-hook:hover,.dslca-move-up-accordion-hook:hover{color:#3b6fbe}.dslca-delete-accordion-hook{color:#E55F5F;cursor:pointer;display:inline-block;font-size:12px;margin-left:10px;line-height:1;vertical-align:top}.dslc-icon-module{position:relative;display:inline-block}.dslc-navigation{z-index:99998;position:relative;text-align:right;font-size:0}.dslc-navigation-inner{display:inline-block}.dslc-navigation .menu{list-style:none;margin:0;padding:0}.dslc-navigation.dslc-navigation-orientation-horizontal .menu>li,.dslc-navigation.dslc-navigation-orientation-vertical .menu>li:first-child{margin-top:0!important}.dslc-navigation .menu>li{display:inline-block;position:relative;z-index:99998}.dslc-navigation.dslc-navigation-orientation-vertical .menu>li{display:block;margin-left:0!important}.dslc-navigation .menu>li:first-child{margin-left:0!important}.dslc-navigation .menu>li>a{display:inline-block;text-decoration:none;vertical-align:middle}.dslc-navigation-arrow{display:inline-block;margin-left:5px;vertical-align:middle}.dslc-navigation .menu ul{border-style:solid;display:none;list-style-type:none;margin:0;opacity:0;position:absolute;top:100%;left:-28px}.dslc-navigation.dslc-navigation-sub-position-left .menu ul{left:0;right:auto}.dslc-navigation.dslc-navigation-sub-position-right .menu ul{right:0;left:auto}.dslc-navigation.dslc-navigation-sub-position-center .menu ul{left:auto;right:auto}.dslc-navigation-orientation-vertical .menu ul{top:0;left:100%}.dslc-navigation .menu ul.dslc-navigation-invert-subnav{left:auto;right:0}.dslc-navigation .menu ul li{display:block;white-space:nowrap;margin:0}.dslc-navigation .menu ul li a{display:block;line-height:1;text-decoration:none}.dslc-navigation .menu ul li:last-child a{border-bottom:0!important}.dslc-navigation .dt-icon.dt-subnav-arrow{display:none;color:#bfbfbf;font-size:8px;margin-left:10px;vertical-align:middle;position:relative;top:-3px;margin-right:0}.dslc-navigation li.current-menu-item .dt-icon.dt-subnav-arrow{color:#878787}.dslc-navigation .menu ul ul{left:100%;margin-left:-10px;top:-1px}.dslc-navigation .menu ul ul.dslc-navigation-invert-subnav{left:auto;right:100%}.dslc-navigation .menu li:hover>ul{display:block}.dslc-mobile-navigation{position:relative;text-align:right;display:none}.dslc-mobile-navigation select{cursor:pointer;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0;position:absolute;right:0;top:0;padding-top:0;padding-bottom:0;z-index:10;height:38px;width:100%}.dslc-mobile-navigation-hook{color:#555;font-size:24px;line-height:22px}.dslc-res-phone .dslc-mobile-navigation.dslc-navigation-res-p-enabled,.dslc-res-tablet .dslc-mobile-navigation.dslc-navigation-res-t-enabled{display:block}.dslc-res-phone .dslc-navigation.dslc-navigation-res-p-enabled,.dslc-res-tablet .dslc-navigation.dslc-navigation-res-t-enabled{display:none}.dslc-post-main-inner-link-cover{display:none;position:absolute;top:0;left:0;right:0;bottom:0}body.dslc-res-phone .dslc-post-main-inner-link-cover,body.dslc-res-tablet .dslc-post-main-inner-link-cover{display:block}.dslc-posts-social-share{line-height:1}.dslc-posts-social-share a:last-child{margin-right:0!important}.dslc-posts-social-share-count{display:inline-block;border-style:solid}
|
1 |
+
#dslc-content .dslc-cpt-post-main{border:0 solid transparent}#dslc-content .dslc-cpt-post-thumb{margin-bottom:20px;overflow:hidden;position:relative;line-height:0}#dslc-content .dslc-cpt-post-thumb-inner{border:0 solid transparent;overflow:hidden}#dslc-content .dslc-cpt-post-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-cpt-post-thumb img{border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;display:block;max-width:100%;height:auto}#dslc-content .dslc-cpt-post-thumb .dslc-cpt-post-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-cpt-post-thumb .dslc-cpt-post-main.dslc-cpt-post-main-visible{opacity:1!important}#dslc-content .dslc-cpt-post-thumb .dslc-cpt-post-main .dslc-init-center{position:relative}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-cpt-post-thumb .dslc-cpt-post-main{opacity:1}#dslc-content .dslc-cpt-post-meta{border:1px solid #e5e5e5;border-left:0;border-right:0;margin-bottom:20px;overflow:hidden;padding:13px 0;font-size:11px;line-height:1}#dslc-content .dslc-cpt-post-meta-author{float:left}#dslc-content .dslc-cpt-post-meta-author a{text-decoration:none}#dslc-content .dslc-cpt-post-meta-date{float:right}#dslc-content .dslc-cpt-post-title{margin-bottom:13px}#dslc-content .dslc-cpt-post-title h2{font-family:"Open Sans";font-weight:600;font-size:15px;line-height:26px;margin:0;padding:0}#dslc-content .dslc-cpt-post-title h2 a{display:block;color:inherit;text-decoration:none}#dslc-content .dslc-cpt-post-excerpt{margin-bottom:22px;font-size:13px;line-height:22px}#dslc-content .dslc-cpt-post-read-more a{display:inline-block;line-height:1;text-decoration:none;border:0 solid transparent}#dslc-content .dslc-cpt-posts-orientation-horizontal .dslc-cpt-post-thumb{float:left;margin-right:20px;width:200px}#dslc-content .dslc-cpt-posts-orientation-horizontal .dslc-cpt-post-main,.dslc-post-thumb{overflow:hidden}#dslc-content .dslc-blog-post-main{border:0 solid transparent}#dslc-content .dslc-blog-post-thumb{margin-bottom:20px;overflow:hidden;position:relative;line-height:0}#dslc-content .dslc-blog-post-thumb-inner{border:0 solid transparent;overflow:hidden}#dslc-content .dslc-blog-post-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-blog-post-thumb img{border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;display:block;max-width:100%;height:auto}#dslc-content .dslc-blog-post-thumb .dslc-blog-post-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-blog-post-thumb .dslc-blog-post-main.dslc-blog-post-main-visible{opacity:1!important}#dslc-content .dslc-blog-post-thumb .dslc-blog-post-main .dslc-init-center{position:relative}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-blog-post-thumb .dslc-blog-post-main{opacity:1}#dslc-content .dslc-blog-post-meta{border:1px solid #e5e5e5;border-left:0;border-right:0;margin-bottom:20px;overflow:hidden;padding:13px 0;font-size:11px;line-height:1}#dslc-content .dslc-blog-post-meta-author{float:left}#dslc-content .dslc-blog-post-meta-avatar{margin-right:10px;width:30px;display:inline-block}#dslc-content .dslc-blog-post-meta-avatar img{vertical-align:middle;width:100%;height:auto;border-radius:50%}#dslc-content .dslc-blog-post-meta-author a{text-decoration:none}#dslc-content .dslc-blog-post-meta-date{float:right}#dslc-content .dslc-blog-post-title{margin-bottom:13px}#dslc-content .dslc-blog-post-title h2{font-family:"Open Sans";font-weight:600;font-size:15px;line-height:26px;margin:0;padding:0}#dslc-content .dslc-blog-post-title h2 a{display:block;color:inherit;text-decoration:none}#dslc-content .dslc-blog-post-excerpt{margin-bottom:22px;font-size:13px;line-height:22px}#dslc-content .dslc-blog-post-read-more a{display:inline-block;line-height:1;text-decoration:none;border:0 solid transparent}#dslc-content .dslc-posts-orientation-horizontal .dslc-post-thumb{float:left;margin-right:20px;width:200px}#dslc-content .dslc-posts-orientation-horizontal .dslc-post-main{overflow:hidden}#dslc-content .dslc-download-thumb{position:relative;line-height:0}#dslc-content .dslc-download-thumb-inner{border:0 solid transparent;overflow:hidden}#dslc-content .dslc-download-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-download-thumb img{border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;display:block;max-width:100%;height:auto}#dslc-content .dslc-download-download a,#dslc-content .dslc-download-main{border:0 solid transparent;text-align:center}#dslc-content .dslc-download-thumb .dslc-download-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-download-thumb .dslc-download-main.dslc-download-main-visible{opacity:1!important}#dslc-content .dslc-download-thumb .dslc-download-main .dslc-init-center{position:relative}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-download-thumb .dslc-download-main{opacity:1}#dslc-content .dslc-download-title{margin-bottom:13px}#dslc-content .dslc-download-title h2{font-size:15px;line-height:1.7;margin:0;padding:0}#dslc-content .dslc-download-title h2 a{display:block;color:inherit;text-decoration:none}#dslc-content .dslc-download-tags{border:1px solid #e5e5e5;border-width:1px 0;font-size:12px;padding:8px 0;line-height:1;margin-bottom:22px}#dslc-content .dslc-download-excerpt{margin-bottom:22px;font-size:13px;line-height:22px;font-weight:400}#dslc-content .dslc-download-download{margin-bottom:10px}#dslc-content .dslc-download-download a{background:#ff4e01;border-radius:3px;color:#fff;display:block;font-size:13px;font-weight:700;line-height:1;padding:15px 0;text-decoration:none}#dslc-content .dslc-download-download .dslc-icon{margin-right:10px}#dslc-content .dslc-download-info{font-size:10px;font-style:italic}#dslc-content .dslc-gallery-thumb{position:relative;line-height:0}#dslc-content .dslc-gallery-thumb-inner{border:0 solid transparent;position:relative;overflow:hidden}#dslc-content .dslc-gallery-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-gallery-thumb img{border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;display:block;box-shadow:none;max-width:100%;height:auto}#dslc-content .dslc-gallery-images-count{background:0 0;border:0 solid transparent;border-radius:50%;position:absolute;top:40%;left:35%;text-align:center;text-decoration:none}#dslc-content .dslc-gallery-images-count-bg{background:0 0;border:0 solid transparent;position:absolute;top:0;left:0;right:0;bottom:0}#dslc-content .dslc-gallery-images-count-main{position:relative}#dslc-content .dslc-gallery-images-count-num{color:#fff;display:block;font-size:25px;font-family:Oswald;font-weight:200;line-height:1;margin-bottom:8px}#dslc-content .dslc-gallery-images-count-txt{color:#7d7d7d;display:block;font-size:11px;font-family:Brawler;line-height:1}#dslc-content .dslc-gallery-thumb .dslc-gallery-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-gallery-thumb .dslc-gallery-main.dslc-gallery-main-visible{opacity:1!important}#dslc-content .dslc-gallery-thumb .dslc-gallery-main .dslc-init-center{position:relative}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-gallery-thumb .dslc-gallery-main{opacity:1}#dslc-content .dslc-gallery-main{border:0 solid transparent;text-align:center}#dslc-content .dslc-gallery-title{margin-bottom:15px}#dslc-content .dslc-gallery-title h2{font-family:Brawler;font-size:11px;line-height:1;margin:0;padding:0}#dslc-content .dslc-gallery-title h2 a{display:block;color:#7d7d7d;text-decoration:none}#dslc-content .dslc-gallery-sep{display:block;height:1px;border-bottom:1px solid #4a4a4a;margin-bottom:15px}#dslc-content .dslc-gallery-excerpt{font-size:12px;border-width:1px 0 0}#dslc-content .dslc-gallery-read-more a{display:inline-block;line-height:1;text-decoration:none;border:0 solid transparent}#dslc-content .dslc-gallery .dslc-lightbox-gallery{display:none}.dslc-info-box{text-align:center;border:0 solid transparent;-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.dslc-info-box-image{margin-bottom:25px;position:relative;font-size:0}.dslc-info-box-image-link{position:absolute;top:0;left:0;right:0;bottom:0}.dslc-info-box-icon-pos-aside .dslc-info-box-main{overflow:hidden}.dslc-info-box-icon-pos-aside .dslc-info-box-image{float:left;margin-right:20px}.dslc-info-box-image-inner{display:inline-block;position:relative;border:0 solid transparent}.dslc-info-box-image-inner .dslc-icon{color:#fff;line-height:1;font-size:40px;position:absolute}.dslc-info-box-image-alt-inner img{-webkit-transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.dslc-info-box-title{margin-bottom:25px}.dslc-info-box-title h4{font-size:17px;line-height:1;margin:0;padding:0;font-weight:400}.dslc-info-box-title h4 a{color:inherit;text-decoration:none}.dslc-info-box-content{margin-bottom:25px}.dslc-info-box-button{font-size:0}.dslc-info-box-button a{display:inline-block;line-height:1;text-decoration:none}.dslc-info-box-button-aside{float:right}#dslc-content .dslc-partner .dslc-partner-thumb{border:1px solid #ebebeb;padding:50px 0;text-align:center;position:relative;line-height:0}#dslc-content .dslc-partner .dslc-partner-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-partner .dslc-partner-thumb img{border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;display:inline-block;vertical-align:bottom;width:auto;max-width:100%;height:auto}#dslc-content .dslc-partner-thumb .dslc-partner-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-partner-thumb .dslc-partner-main.dslc-partner-main-visible{opacity:1!important}#dslc-content .dslc-partner-thumb .dslc-partner-main .dslc-init-center{position:relative}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-partner-thumb .dslc-partner-main{opacity:1}#dslc-content .dslc-partner .dslc-partner-main{border:0 solid transparent}#dslc-content .dslc-partner .dslc-partner-title{margin-bottom:10px}#dslc-content .dslc-partner .dslc-partner-title h2{color:#222;font-family:Oswald;font-weight:700;font-size:14px;line-height:1;margin:0;padding:0}#dslc-content .dslc-partner .dslc-partner-title h2 a{display:block;color:inherit;text-decoration:none}#dslc-content .dslc-partner .dslc-partner-excerpt{color:#444;font-family:"Open Sans";font-weight:400;font-size:12px;line-height:22px}#dslc-content .dslc-projects .dslc-project-thumb{margin-bottom:24px;position:relative;line-height:0}#dslc-content .dslc-projects .dslc-project-thumb-inner{border:0 solid transparent;overflow:hidden}#dslc-content .dslc-projects .dslc-project-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-projects .dslc-project-thumb img{border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;display:block;max-width:100%;height:auto}#dslc-content .dslc-projects .dslc-project-thumb .dslc-project-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-projects .dslc-project-thumb .dslc-project-main.dslc-project-main-visible{opacity:1!important}#dslc-content .dslc-projects .dslc-project-thumb .dslc-project-main .dslc-init-center{position:relative}body.dslca-enabled #dslc-content .dslc-projects .dslc-post:first-child .dslc-project-thumb .dslc-project-main{opacity:1}#dslc-content .dslc-projects .dslc-project-main{border:0 solid transparent}#dslc-content .dslc-projects .dslc-project-title{margin-bottom:10px}#dslc-content .dslc-projects .dslc-project-title h2{color:#000;font-family:"Open Sans";font-weight:700;font-size:12px;line-height:1;margin:0;padding:0}#dslc-content .dslc-projects .dslc-project-title h2 a{display:block;color:inherit;text-decoration:none}#dslc-content .dslc-projects .dslc-project-cats{font-family:"Droid Serif";font-size:10px;font-style:italic;line-height:1}#dslc-content .dslc-project-excerpt{margin-bottom:22px;font-size:13px;line-height:22px;border-top:0 solid #000}#dslc-content .dslc-project-read-more a{display:inline-block;line-height:1;text-decoration:none;border:0 solid transparent}.dslc-separator-wrapper{padding-bottom:1px}.dslc-separator{clear:both;height:1px;padding-bottom:25px;margin-bottom:25px;width:100%}.dslc-separator.dslc-separator-style-solid{border-bottom:1px solid #ededed}.dslc-separator.dslc-separator-style-dashed{border-bottom:1px dashed #ededed}.dslc-separator.dslc-separator-style-dotted{border-bottom:1px dotted #ededed}#dslc-content .dslc-staff-member{text-align:center}#dslc-content .dslc-staff-member-thumb{position:relative;line-height:0;border:0 solid transparent}#dslc-content .dslc-staff-member-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-staff-member-thumb img{border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;display:block;max-width:100%;height:auto}#dslc-content .dslc-staff-member-thumb .dslc-staff-member-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-staff-member-thumb .dslc-staff-member-main.dslc-staff-member-main-visible{opacity:1!important}#dslc-content .dslc-staff-member-thumb .dslc-staff-member-main .dslc-init-center{position:relative}body.dslca-enabled #dslc-content .dslc-post:first-child .dslc-staff-member-thumb .dslc-staff-member-main{opacity:1}#dslc-content .dslc-staff-member-social{background:#40bde6;border:0 solid transparent;border-radius:0 0 3px 3px;padding:12px 0;margin-bottom:25px}#dslc-content .dslc-staff-member-social a{color:#fff;margin:0 6px;font-size:13px;text-decoration:none}#dslc-content .dslc-staff-member-main{border:0 solid transparent}#dslc-content .dslc-staff-member-title{margin-bottom:23px}#dslc-content .dslc-staff-member-title h2{color:#323232;font-size:15px;font-family:"Open Sans";font-weight:600;line-height:1;margin:0;padding:0}#dslc-content .dslc-staff-member-title h2 a{display:block;text-decoration:none;color:inherit}#dslc-content .dslc-staff-member-position{border:1px solid #e5e5e5;font-size:12px;font-weight:600;font-style:italic;line-height:1;margin-bottom:20px}#dslc-content .dslc-tabs-nav-hook{background:#fbfbfb;border:1px solid #e8e8e8;border-bottom:1px solid #e8e8e8;border-radius:3px 3px 0 0;bottom:-1px;cursor:pointer;display:inline-block;padding:10px;position:relative;line-height:1;margin-left:-1px}#dslc-content .dslc-tabs-nav-hook:first-child{margin-left:0!important}#dslc-content .dslc-tabs-nav-hook.dslc-active{background:#fff}#dslc-content .dslc-tabs-content{background:#fff;border:1px solid #e8e8e8;border-radius:0 3px 3px}#dslc-content .dslc-tabs-tab-content{padding:35px;display:none;position:relative}#dslc-content .dslc-tabs-tab-content.dslc-active{display:block}.dslca-add-new-tab-hook,.dslca-delete-tab-hook{display:inline-block;margin-left:10px;cursor:pointer}.dslca-add-new-tab-hook{background:#78CA4F;border-radius:50%;color:#fff;font-size:11px;height:20px;text-align:center;line-height:22px;margin-top:8px;width:20px;position:relative}.dslca-add-new-tab-hook .dslca-icon{position:absolute;line-height:1;top:5px;right:6px}.dslca-delete-tab-hook{color:#E55F5F;font-size:12px;line-height:1;vertical-align:top}.dslc-tabs-content .dslc-tabs-nav-hook{display:none!important}body.dslc-res-phone .dslc-tabs-nav{display:none}body.dslc-res-phone .dslc-tabs-tab-content{display:block!important}body.dslc-res-phone .dslc-tabs-content .dslc-tabs-nav-hook{display:block!important;float:none!important;margin-bottom:20px}#dslc-content .dslc-testimonials{border:0 solid transparent}#dslc-content .dslc-testimonial-main{border:0 solid transparent;border-radius:4px;padding:25px;overflow:hidden}#dslc-content .dslc-widget-wrap,#dslc-content .dslc-widgets-wrap,.dslc-text-module-content{border:0 solid transparent}#dslc-content .dslc-testimonial-quote{border-bottom:0 solid transparent}#dslc-content .dslc-testimonial-author-pos-outside-left{float:left}#dslc-content .dslc-testimonial-author-pos-outside-right{float:right}#dslc-content .dslc-testimonial-author-avatar{border:0 solid transparent;float:left}#dslc-content .dslc-testimonial-author-avatar img{display:block;height:auto}#dslc-content .dslc-testimonial-author-main{overflow:hidden;float:left}#dslc-content .dslc-testimonial-author-name{line-height:1}#dslc-content .dslc-testimonial-author-position{line-height:1.1}#dslc-content .dslc-widget{margin-bottom:30px;width:100%}#dslc-content .dslc-widget:last-child{margin-bottom:0!important}#dslc-content .dslc-widget-title{font-size:15px;font-weight:600;border-bottom:1px solid #e5e5e5;margin-bottom:10px;padding-bottom:10px;line-height:1}#dslc-content .dslc-widget-title-inner{display:block}#dslc-content .dslc-widgets-2-col .dslc-col{width:14.89361%}#dslc-content .dslc-widgets-3-col .dslc-col{width:23.40425%}#dslc-content .dslc-widgets-4-col .dslc-col{width:31.91489%}#dslc-content .dslc-widgets-5-col .dslc-col{width:40.42553%}#dslc-content .dslc-widgets-6-col .dslc-col{width:48.93617%}#dslc-content .dslc-widgets-7-col .dslc-col{width:57.4468%}#dslc-content .dslc-widgets-8-col .dslc-col{width:65.95744%}#dslc-content .dslc-widgets-9-col .dslc-col{width:74.46808%}#dslc-content .dslc-widgets-10-col .dslc-col{width:82.97872%}#dslc-content .dslc-widgets-11-col .dslc-col{width:91.48936%}#dslc-content .dslc-widgets-12-col .dslc-col{width:100%;margin-right:0}#dslc-content .dslc-widgets-2-col .dslc-col:nth-child(6n),#dslc-content .dslc-widgets-3-col .dslc-col:nth-child(4n),#dslc-content .dslc-widgets-4-col .dslc-col:nth-child(3n),#dslc-content .dslc-widgets-6-col .dslc-col:nth-child(2n){margin-right:0}#dslc-content .dslc-widget li{border-style:solid}#dslc-content .dslc-product-thumb{position:relative;line-height:0}#dslc-content .dslc-product-thumb-inner{bottom:0 solid transparent;overflow:hidden}#dslc-content .dslc-product-thumb a{display:inline-block;max-width:100%}#dslc-content .dslc-product-thumb img{-moz-box-shadow:none;-webkit-box-shadow:none;display:block;border-radius:3px 3px 0 0;box-shadow:none;max-width:100%;height:auto}#dslc-content .dslc-product-thumb .dslc-product-price{background:0 0;color:#fff;display:block;font-weight:400;font-size:25px;font-family:Oswald;left:35%;line-height:1;position:absolute;top:40%;text-decoration:none;text-align:center}#dslc-content .dslc-product-price-secondary del,#dslc-content .dslc-product-thumb .dslc-product-price .from,#dslc-content .dslc-product-thumb .dslc-product-price del{display:none}#dslc-content .dslc-product-price-bg{background:0 0;border:0 solid transparent;position:absolute;top:0;left:0;right:0;bottom:0}#dslc-content .dslc-product-price-main{position:relative}#dslc-content .dslc-product-thumb .dslc-product-price ins{text-decoration:none;background:0 0}#dslc-content .dslc-product-thumb .dslc-product-price .amount{vertical-align:middle}#dslc-content .dslc-products .dslc-product-thumb .dslc-product-main{position:absolute;top:0;left:0;bottom:0;right:0}#dslc-content .dslc-products .dslc-product-thumb .dslc-product-main.dslc-product-main-visible{opacity:1!important}#dslc-content .dslc-products .dslc-product-thumb .dslc-product-main .dslc-init-center{position:relative}body.dslca-enabled #dslc-content .dslc-products .dslc-post:first-child .dslc-product-thumb .dslc-product-main{opacity:1}#dslc-content .dslc-product-main{background:#1d1d1d;border-radius:0 0 3px 3px;padding:20px;text-align:center;border:0 solid transparent}#dslc-content .dslc-product-title{margin-bottom:15px}#dslc-content .dslc-product-price-secondary{color:#fff;float:left;font-size:20px;line-height:1;font-family:Oswald}#dslc-content .dslc-product-price-secondary ins{text-decoration:none;background:0 0}#dslc-content .dslc-product-title h2{clear:none;font-size:11px;font-family:Brawler;line-height:1;vertical-align:middle;margin:0;padding:0}#dslc-content .dslc-product-title h2 a{display:block;color:#7d7d7d;text-decoration:none}#dslc-content .dslc-product-excerpt{border-bottom:0 solid transparent}#dslc-content .dslc-product-sep{display:block;border-bottom:1px solid #4a4a4a;height:1px;margin-bottom:15px}#dslc-content .dslc-product-extra .dslc-product-add-to-cart{color:#8d8d8d;font-size:12px;line-height:1;text-decoration:none;float:left}#dslc-content .dslc-product-extra .dslc-product-details{color:#8d8d8d;font-size:12px;text-decoration:none;line-height:1;float:right}#dslc-content .dslc-product-extra .dslc-icon{margin-right:5px}#dslc-content .dslc-tp-content,#dslc-content .dslc-tp-meta,#dslc-content .dslc-tp-title,#dslc-content .dslc-tp-title h1{border:0 solid transparent}#dslc-content .dslc-tp-meta ul{margin:0;list-style-type:none;font-size:0}#dslc-content .dslc-tp-meta-horizontal li{display:inline-block;margin-top:0!important;margin-bottom:0!important;list-style-type:none}#dslc-content .dslc-tp-meta-horizontal li:first-child{margin-left:0!important}#dslc-content .dslc-tp-meta-horizontal li:last-child{margin-right:0!important}#dslc-content .dslc-tp-meta-vertical li{margin-left:0!important;margin-right:0!important}#dslc-content .dslc-tp-meta-vertical li:first-child{margin-top:0!important}#dslc-content .dslc-tp-meta-vertical li:last-child{margin-bottom:0!important}#dslc-content .dslc-tp-meta-avatar{margin-right:10px;width:30px;display:inline-block}#dslc-content .dslc-tp-meta-avatar img{vertical-align:middle;width:100%;border-radius:50%}#dslc-content .dslc-tp-download-button a,#dslc-content .dslc-tp-gallery-slider,#dslc-content .dslc-tp-gallery-slider-main,#dslc-content .dslc-tp-gallery-slider-nav{border:0 solid transparent}#dslc-content .dslc-tp-download-button a{display:block;line-height:1;text-decoration:none;text-align:center}#dslc-content .dslc-tp-thumbnail{bottom:0 solid transparent;overflow:hidden}#dslc-content .dslc-tp-thumbnail img{display:inline-block;vertical-align:middle;max-width:100%;height:auto}#dslc-content .dslc-tp-gallery-slider-main li{overflow:hidden}#dslc-content .dslc-tp-gallery-slider-nav li{margin-right:10px;padding:5px;border:1px solid red;cursor:pointer;opacity:.7}#dslc-content .dslc-tp-gallery-slider-nav li.flex-active-slide{opacity:1}#dslc-content ul.dslc-social{margin:0;padding:0;list-style-type:none;font-size:0;line-height:1}#dslc-content ul.dslc-social li{margin:0 10px 0 0;padding:0;line-height:1;display:inline-block;overflow:hidden}#dslc-content ul.dslc-social a.dslc-social-icon{border:0 solid transparent;display:block;background:#40bde6;text-decoration:none;color:#fff;width:30px;height:30px;border-radius:15px;text-align:center;font-size:15px;position:relative;float:left}#dslc-content ul.dslc-social .dslc-icon{line-height:1;position:absolute}#dslc-content ul.dslc-social .dslc-social-label{float:left;display:block}#dslc-content ul.dslc-staff-social{margin:0;padding:0;list-style-type:none;font-size:0;line-height:1}#dslc-content ul.dslc-staff-social li{margin:0;padding:0;line-height:1;display:inline-block;overflow:hidden}#dslc-content ul.dslc-staff-social a{border:0 solid transparent;display:block;text-decoration:none;text-align:center;position:relative;float:left}#dslc-content ul.dslc-staff-social .dslc-icon{line-height:1;position:absolute}#dslc-content ul.dslc-staff-social .dslc-social-label{float:left;display:block}#dslc-content .dslc-notification-box{background:#f65757;padding:15px;border:1px solid #e43737;border-radius:3px;color:#fff}.dslc-notification-box-has-timeout{display:none}body.dslca-enabled .dslc-notification-box-has-timeout{display:block}#dslc-content .dslc-notification-box-content p:last-child{margin-bottom:0}#dslc-content .dslc-notification-box-close{position:absolute;right:15px;top:20px;cursor:pointer;background:#fff;color:#f65757;border-radius:50%;width:15px;height:15px}.dslc-comment,.dslc-tp-comments{border:0 solid transparent}#dslc-content .dslc-notification-box-close .dslc-icon{color:#f65757;position:absolute;font-size:12px}#dslc-content .dslc-button{overflow:hidden}#dslc-content .dslc-button a{display:inline-block;text-decoration:none;line-height:1}.dslc-tp-comments li,.dslc-tp-comments ol,.dslc-tp-comments ul{list-style-type:none}.dslc-tp-comments ol{margin-left:0}.dslc-comment{margin:0}.dslc-comment-inner{border:1px solid #ddd;padding:10px;margin-bottom:20px}.dslc-comment-info{margin-bottom:10px;border-bottom:1px solid #ddd}.dslc-accordion,.dslc-accordion-content,.dslc-accordion-header,.dslc-accordion-title,.dslc-progress-bar,.dslc-tp-comment-form,.dslc-tp-comment-form input,.dslc-tp-comment-form textarea{border:0 solid transparent}.dslc-comment-meta{float:left;margin:0}.dslc-comment-meta-author{display:inline-block;margin-right:15px;line-height:1}.dslc-comment-author-avatar{margin-right:5px}.dslc-comment-author-avatar img{vertical-align:middle}.dslc-comment-meta-date{display:inline-block;line-height:1}.dslc-comment-reply{float:right}.dslc-comment-reply a{text-decoration:none}.dslc-comment .dslc-comment{margin-left:50px}.dslc-res-phone .dslc-comment .dslc-comment{margin-left:0}.dslc-res-phone .dslc-comment .children{margin-left:0;padding-left:0}.dslc-tp-comment-form input[type=text]{line-height:1}.dslc-tp-comment-form textarea{width:100%;height:130px;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.dslc-tp-comment-form .logged-in-as{margin-bottom:15px}.dslc-tp-comment-form #submit{cursor:pointer}.dslc-image img{max-width:100%;display:inline-block;vertical-align:middle}.dslc-progress-bar-label{margin:0;padding:0;line-height:1}.dslc-progress-bar-loader{background:#666;display:block;height:18px}.dslc-progress-bar-loader-inner{display:block;float:left;overflow:hidden;white-space:nowrap}.dslc-progress-bar-animated .dslc-progress-bar-loader-inner{opacity:0}.dslca-enabled .dslc-progress-bar-animated .dslc-progress-bar-loader-inner{opacity:1}.dslc-accordion-item:first-child{margin-top:0!important}.dslc-accordion-header{display:block;font-family:"Open Sans";font-weight:700;font-size:11px;line-height:1;position:relative}.dslc-accordion-title{display:block}.dslc-accordion-hook{cursor:pointer}.dslc-accordion-toggle{display:block;position:absolute;left:0;top:0;bottom:0}.dslc-accordion-content{position:relative}.dslca-add-accordion{text-align:center}.dslca-add-accordion-hook{background:#78CA4F;border-radius:50%;color:#fff;cursor:pointer;display:inline-block;font-size:12px;height:20px;text-align:center;line-height:22px;width:20px;position:relative;margin-top:10px}.dslca-add-accordion-hook .dslca-icon{position:absolute;line-height:1;top:5px;right:6px}.dslca-accordion-action-hooks{position:absolute;right:14px;top:14px}.dslca-move-down-accordion-hook,.dslca-move-up-accordion-hook{color:#5890e5}.dslca-move-down-accordion-hook:hover,.dslca-move-up-accordion-hook:hover{color:#3b6fbe}.dslca-delete-accordion-hook{color:#E55F5F;cursor:pointer;display:inline-block;font-size:12px;margin-left:10px;line-height:1;vertical-align:top}.dslc-icon-module{position:relative;display:inline-block}.dslc-navigation{z-index:99998;position:relative;text-align:right;font-size:0}.dslc-navigation-inner{display:inline-block}.dslc-navigation .menu{list-style:none;margin:0;padding:0}.dslc-navigation.dslc-navigation-orientation-horizontal .menu>li,.dslc-navigation.dslc-navigation-orientation-vertical .menu>li:first-child{margin-top:0!important}.dslc-navigation .menu>li{display:inline-block;position:relative;z-index:99998}.dslc-navigation.dslc-navigation-orientation-vertical .menu>li{display:block;margin-left:0!important}.dslc-navigation .menu>li:first-child{margin-left:0!important}.dslc-navigation .menu>li>a{display:inline-block;text-decoration:none;vertical-align:middle}.dslc-navigation-arrow{display:inline-block;margin-left:5px;vertical-align:middle}.dslc-navigation .menu ul{border-style:solid;display:none;list-style-type:none;margin:0;opacity:0;position:absolute;top:100%;left:-28px}.dslc-navigation.dslc-navigation-sub-position-left .menu ul{left:0;right:auto}.dslc-navigation.dslc-navigation-sub-position-right .menu ul{right:0;left:auto}.dslc-navigation.dslc-navigation-sub-position-center .menu ul{left:auto;right:auto}.dslc-navigation-orientation-vertical .menu ul{top:0;left:100%}.dslc-navigation .menu ul.dslc-navigation-invert-subnav{left:auto;right:0}.dslc-navigation .menu ul li{display:block;white-space:nowrap;margin:0}.dslc-navigation .menu ul li a{display:block;line-height:1;text-decoration:none}.dslc-navigation .menu ul li:last-child a{border-bottom:0!important}.dslc-navigation .dt-icon.dt-subnav-arrow{display:none;color:#bfbfbf;font-size:8px;margin-left:10px;vertical-align:middle;position:relative;top:-3px;margin-right:0}.dslc-navigation li.current-menu-item .dt-icon.dt-subnav-arrow{color:#878787}.dslc-navigation .menu ul ul{left:100%;margin-left:-10px;top:-1px}.dslc-navigation .menu ul ul.dslc-navigation-invert-subnav{left:auto;right:100%}.dslc-navigation .menu li:hover>ul{display:block}.dslc-mobile-navigation{position:relative;text-align:right;display:none}.dslc-mobile-navigation select{cursor:pointer;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0;position:absolute;right:0;top:0;padding-top:0;padding-bottom:0;z-index:10;height:38px;width:100%}.dslc-mobile-navigation-hook{color:#555;font-size:24px;line-height:22px}.dslc-res-phone .dslc-mobile-navigation.dslc-navigation-res-p-enabled,.dslc-res-tablet .dslc-mobile-navigation.dslc-navigation-res-t-enabled{display:block}.dslc-res-phone .dslc-navigation.dslc-navigation-res-p-enabled,.dslc-res-tablet .dslc-navigation.dslc-navigation-res-t-enabled{display:none}.dslc-post-main-inner-link-cover{display:none;position:absolute;top:0;left:0;right:0;bottom:0}body.dslc-res-phone .dslc-post-main-inner-link-cover,body.dslc-res-tablet .dslc-post-main-inner-link-cover{display:block}.dslc-posts-social-share{line-height:1}.dslc-posts-social-share a:last-child{margin-right:0!important}.dslc-posts-social-share-count{display:inline-block;border-style:solid}
|
css/plugins.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.owl-carousel .owl-wrapper:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.owl-carousel{display:none;position:relative;width:100%;-ms-touch-action:pan-y}.owl-carousel .owl-wrapper{display:none;position:relative}.owl-carousel .owl-wrapper-outer{overflow:hidden;position:relative;width:100%}.owl-carousel .owl-wrapper-outer.autoHeight{-webkit-transition:height 500ms ease-in-out;-moz-transition:height 500ms ease-in-out;-ms-transition:height 500ms ease-in-out;-o-transition:height 500ms ease-in-out;transition:height 500ms ease-in-out}.owl-carousel .owl-item{float:left}.owl-controls .owl-buttons div,.owl-controls .owl-page{cursor:pointer}.owl-controls{-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.owl-carousel .owl-item,.owl-carousel .owl-wrapper{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}.owl-origin{-webkit-perspective:1200px;-webkit-perspective-origin-x:50%;-webkit-perspective-origin-y:50%;-moz-perspective:1200px;-moz-perspective-origin-x:50%;-moz-perspective-origin-y:50%;perspective:1200px}.owl-fade-out{z-index:10;-webkit-animation:fadeOut .7s both ease;-moz-animation:fadeOut .7s both ease;animation:fadeOut .7s both ease}.owl-fade-in{-webkit-animation:fadeIn .7s both ease;-moz-animation:fadeIn .7s both ease;animation:fadeIn .7s both ease}.owl-backSlide-out{-webkit-animation:backSlideOut 1s both ease;-moz-animation:backSlideOut 1s both ease;animation:backSlideOut 1s both ease}.owl-backSlide-in{-webkit-animation:backSlideIn 1s both ease;-moz-animation:backSlideIn 1s both ease;animation:backSlideIn 1s both ease}.owl-goDown-out{-webkit-animation:scaleToFade .7s ease both;-moz-animation:scaleToFade .7s ease both;animation:scaleToFade .7s ease both}.owl-goDown-in{-webkit-animation:goDown .6s ease both;-moz-animation:goDown .6s ease both;animation:goDown .6s ease both}.owl-fadeUp-in{-webkit-animation:scaleUpFrom .5s ease both;-moz-animation:scaleUpFrom .5s ease both;animation:scaleUpFrom .5s ease both}.owl-fadeUp-out{-webkit-animation:scaleUpTo .5s ease both;-moz-animation:scaleUpTo .5s ease both;animation:scaleUpTo .5s ease both}@-webkit-keyframes empty{0%{opacity:1}}@-moz-keyframes empty{0%{opacity:1}}@keyframes empty{0%{opacity:1}}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@-moz-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@-moz-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes backSlideOut{25%{opacity:.5;-webkit-transform:translateZ(-500px)}100%,75%{opacity:.5;-webkit-transform:translateZ(-500px) translateX(-200%)}}@-moz-keyframes backSlideOut{25%{opacity:.5;-moz-transform:translateZ(-500px)}100%,75%{opacity:.5;-moz-transform:translateZ(-500px) translateX(-200%)}}@keyframes backSlideOut{25%{opacity:.5;transform:translateZ(-500px)}100%,75%{opacity:.5;transform:translateZ(-500px) translateX(-200%)}}@-webkit-keyframes backSlideIn{0%,25%{opacity:.5;-webkit-transform:translateZ(-500px) translateX(200%)}75%{opacity:.5;-webkit-transform:translateZ(-500px)}100%{opacity:1;-webkit-transform:translateZ(0) translateX(0)}}@-moz-keyframes backSlideIn{0%,25%{opacity:.5;-moz-transform:translateZ(-500px) translateX(200%)}75%{opacity:.5;-moz-transform:translateZ(-500px)}100%{opacity:1;-moz-transform:translateZ(0) translateX(0)}}@keyframes backSlideIn{0%,25%{opacity:.5;transform:translateZ(-500px) translateX(200%)}75%{opacity:.5;transform:translateZ(-500px)}100%{opacity:1;transform:translateZ(0) translateX(0)}}@-webkit-keyframes scaleToFade{to{opacity:0;-webkit-transform:scale(.8)}}@-moz-keyframes scaleToFade{to{opacity:0;-moz-transform:scale(.8)}}@keyframes scaleToFade{to{opacity:0;transform:scale(.8)}}@-webkit-keyframes goDown{from{-webkit-transform:translateY(-100%)}}@-moz-keyframes goDown{from{-moz-transform:translateY(-100%)}}@keyframes goDown{from{transform:translateY(-100%)}}@-webkit-keyframes scaleUpFrom{from{opacity:0;-webkit-transform:scale(1.5)}}@-moz-keyframes scaleUpFrom{from{opacity:0;-moz-transform:scale(1.5)}}@keyframes scaleUpFrom{from{opacity:0;transform:scale(1.5)}}@-webkit-keyframes scaleUpTo{to{opacity:0;-webkit-transform:scale(1.5)}}@-moz-keyframes scaleUpTo{to{opacity:0;-moz-transform:scale(1.5)}}@keyframes scaleUpTo{to{opacity:0;transform:scale(1.5)}}.owl-theme .owl-controls{margin-top:10px;text-align:center}.owl-theme .owl-controls .owl-buttons div{color:#FFF;display:inline-block;zoom:1;margin:5px;padding:3px 10px;font-size:12px;-webkit-border-radius:30px;-moz-border-radius:30px;border-radius:30px;background:#869791;filter:Alpha(Opacity=50);opacity:.5}.owl-theme .owl-controls.clickable .owl-buttons div:hover{filter:Alpha(Opacity=100);opacity:1;text-decoration:none}.owl-theme .owl-controls .owl-page{display:inline-block;zoom:1}.owl-theme .owl-controls .owl-page span{display:block;width:12px;height:12px;margin:5px 7px;filter:Alpha(Opacity=50);opacity:.5;-webkit-border-radius:20px;-moz-border-radius:20px;border-radius:20px;background:#869791}.owl-theme .owl-controls .owl-page.active span,.owl-theme .owl-controls.clickable .owl-page:hover span{filter:Alpha(Opacity=100);opacity:1}.owl-theme .owl-controls .owl-page span.owl-numbers{height:auto;width:auto;color:#FFF;padding:2px 10px;font-size:12px;-webkit-border-radius:30px;-moz-border-radius:30px;border-radius:30px}.owl-item.loading{min-height:150px;background:url(AjaxLoader.gif) no-repeat center center}.mfp-bg{top:0;left:0;width:100%;height:100%;z-index:1042;overflow:hidden;position:fixed;background:#0b0b0b;opacity:.8;filter:alpha(opacity=80)}.mfp-wrap{top:0;left:0;width:100%;height:100%;z-index:1043;position:fixed;outline:0!important;-webkit-backface-visibility:hidden}.mfp-container{text-align:center;position:absolute;width:100%;height:100%;left:0;top:0;padding:0 8px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mfp-container:before{content:'';display:inline-block;height:100%;vertical-align:middle}.mfp-align-top .mfp-container:before{display:none}.mfp-content{position:relative;display:inline-block;vertical-align:middle;margin:0 auto;text-align:left;z-index:1045}.mfp-ajax-holder .mfp-content,.mfp-inline-holder .mfp-content{width:100%;cursor:auto}.mfp-ajax-cur{cursor:progress}.mfp-zoom-out-cur,.mfp-zoom-out-cur .mfp-image-holder .mfp-close{cursor:-moz-zoom-out;cursor:-webkit-zoom-out;cursor:zoom-out}.mfp-zoom{cursor:pointer;cursor:-webkit-zoom-in;cursor:-moz-zoom-in;cursor:zoom-in}.mfp-auto-cursor .mfp-content{cursor:auto}.mfp-arrow,.mfp-close,.mfp-counter,.mfp-preloader{-webkit-user-select:none;-moz-user-select:none;user-select:none}.mfp-loading.mfp-figure{display:none}.mfp-hide{display:none!important}.mfp-preloader{color:#ccc;position:absolute;top:50%;width:auto;text-align:center;margin-top:-.8em;left:8px;right:8px;z-index:1044}.mfp-preloader a{color:#ccc}.mfp-preloader a:hover{color:#fff}.mfp-s-error .mfp-content,.mfp-s-ready .mfp-preloader{display:none}button.mfp-arrow,button.mfp-close{overflow:visible;cursor:pointer;background:0 0;border:0;-webkit-appearance:none;display:block;outline:0;padding:0;z-index:1046;-webkit-box-shadow:none;box-shadow:none}button::-moz-focus-inner{padding:0;border:0}.mfp-close{width:44px;height:44px;line-height:44px;position:absolute;right:0;top:0;text-decoration:none;text-align:center;opacity:.65;filter:alpha(opacity=65);padding:0 0 18px 10px;color:#fff;font-style:normal;font-size:28px;font-family:Arial,Baskerville,monospace}.mfp-close:focus,.mfp-close:hover{opacity:1;filter:alpha(opacity=100)}.mfp-close:active{top:1px}.mfp-close-btn-in .mfp-close{color:#333}.mfp-iframe-holder .mfp-close,.mfp-image-holder .mfp-close{color:#fff;right:-6px;text-align:right;padding-right:6px;width:100%}.mfp-counter{position:absolute;top:0;right:0;color:#ccc;font-size:12px;line-height:18px}.mfp-arrow{position:absolute;opacity:.65;filter:alpha(opacity=65);margin:-55px 0 0;top:50%;padding:0;width:90px;height:110px;-webkit-tap-highlight-color:transparent}.mfp-arrow:active{margin-top:-54px}.mfp-arrow:focus,.mfp-arrow:hover{opacity:1;filter:alpha(opacity=100)}.mfp-arrow .mfp-a,.mfp-arrow .mfp-b,.mfp-arrow:after,.mfp-arrow:before{content:'';display:block;width:0;height:0;position:absolute;left:0;top:0;margin-top:35px;margin-left:35px;border:inset transparent}.mfp-arrow .mfp-a,.mfp-arrow:after{border-top-width:13px;border-bottom-width:13px;top:8px}.mfp-arrow .mfp-b,.mfp-arrow:before{border-top-width:21px;border-bottom-width:21px;opacity:.7}.mfp-arrow-left{left:0}.mfp-arrow-left .mfp-a,.mfp-arrow-left:after{border-right:17px solid #fff;margin-left:31px}.mfp-arrow-left .mfp-b,.mfp-arrow-left:before{margin-left:25px;border-right:27px solid #3f3f3f}.mfp-arrow-right{right:0}.mfp-arrow-right .mfp-a,.mfp-arrow-right:after{border-left:17px solid #fff;margin-left:39px}.mfp-arrow-right .mfp-b,.mfp-arrow-right:before{border-left:27px solid #3f3f3f}.mfp-iframe-holder{padding-top:40px;padding-bottom:40px}.mfp-iframe-holder .mfp-content{line-height:0;width:100%;max-width:900px}.mfp-iframe-holder .mfp-close{top:-40px}.mfp-iframe-scaler{width:100%;height:0;overflow:hidden;padding-top:56.25%}.mfp-iframe-scaler iframe{position:absolute;display:block;top:0;left:0;width:100%;height:100%;box-shadow:0 0 8px rgba(0,0,0,.6);background:#000}img.mfp-img{width:auto;max-width:100%;height:auto;display:block;line-height:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:40px 0;margin:0 auto}.mfp-figure{line-height:0}.mfp-figure:after{content:'';position:absolute;left:0;top:40px;bottom:40px;display:block;right:0;width:auto;height:auto;z-index:-1;box-shadow:0 0 8px rgba(0,0,0,.6);background:#444}.mfp-figure small{color:#bdbdbd;display:block;font-size:12px;line-height:14px}.mfp-figure figure{margin:0}.mfp-bottom-bar{margin-top:-36px;position:absolute;top:100%;left:0;width:100%;cursor:auto}.mfp-title{text-align:left;line-height:18px;color:#f3f3f3;word-wrap:break-word;padding-right:36px}.mfp-image-holder .mfp-content{max-width:100%}.mfp-gallery .mfp-image-holder .mfp-figure{cursor:pointer}@media screen and (max-width:800px) and (orientation:landscape),screen and (max-height:300px){.mfp-img-mobile .mfp-image-holder{padding-left:0;padding-right:0}.mfp-img-mobile img.mfp-img{padding:0}.mfp-img-mobile .mfp-figure:after{top:0;bottom:0}.mfp-img-mobile .mfp-figure small{display:inline;margin-left:5px}.mfp-img-mobile .mfp-bottom-bar{background:rgba(0,0,0,.6);bottom:0;margin:0;top:auto;padding:3px 5px;position:fixed;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mfp-img-mobile .mfp-bottom-bar:empty{padding:0}.mfp-img-mobile .mfp-counter{right:5px;top:3px}.mfp-img-mobile .mfp-close{top:0;right:0;width:35px;height:35px;line-height:35px;background:rgba(0,0,0,.6);position:fixed;text-align:center;padding:0}}@media all and (max-width:900px){.mfp-arrow{-webkit-transform:scale(0.75);transform:scale(0.75)}.mfp-arrow-left{-webkit-transform-origin:0;transform-origin:0}.mfp-arrow-right{-webkit-transform-origin:100%;transform-origin:100%}.mfp-container{padding-left:6px;padding-right:6px}}.mfp-ie7 .mfp-img{padding:0}.mfp-ie7 .mfp-bottom-bar{width:600px;left:50%;margin-left:-300px;margin-top:5px;padding-bottom:5px}.mfp-ie7 .mfp-container{padding:0}.mfp-ie7 .mfp-content{padding-top:44px}.mfp-ie7 .mfp-close{top:0;right:0;padding-top:0} .mfp-close:hover { background: transparent; }
|
1 |
+
.owl-carousel .owl-wrapper:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.owl-carousel{display:none;position:relative;width:100%;-ms-touch-action:pan-y}.owl-carousel .owl-wrapper{display:none;position:relative}.owl-carousel .owl-wrapper-outer{overflow:hidden;position:relative;width:100%}.owl-carousel .owl-wrapper-outer.autoHeight{-webkit-transition:height 500ms ease-in-out;-moz-transition:height 500ms ease-in-out;-ms-transition:height 500ms ease-in-out;-o-transition:height 500ms ease-in-out;transition:height 500ms ease-in-out}.owl-carousel .owl-item{float:left}.owl-controls .owl-buttons div,.owl-controls .owl-page{cursor:pointer}.owl-controls{-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.owl-carousel .owl-item,.owl-carousel .owl-wrapper{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}.owl-origin{-webkit-perspective:1200px;-webkit-perspective-origin-x:50%;-webkit-perspective-origin-y:50%;-moz-perspective:1200px;-moz-perspective-origin-x:50%;-moz-perspective-origin-y:50%;perspective:1200px}.owl-fade-out{z-index:10;-webkit-animation:fadeOut .7s both ease;-moz-animation:fadeOut .7s both ease;animation:fadeOut .7s both ease}.owl-fade-in{-webkit-animation:fadeIn .7s both ease;-moz-animation:fadeIn .7s both ease;animation:fadeIn .7s both ease}.owl-backSlide-out{-webkit-animation:backSlideOut 1s both ease;-moz-animation:backSlideOut 1s both ease;animation:backSlideOut 1s both ease}.owl-backSlide-in{-webkit-animation:backSlideIn 1s both ease;-moz-animation:backSlideIn 1s both ease;animation:backSlideIn 1s both ease}.owl-goDown-out{-webkit-animation:scaleToFade .7s ease both;-moz-animation:scaleToFade .7s ease both;animation:scaleToFade .7s ease both}.owl-goDown-in{-webkit-animation:goDown .6s ease both;-moz-animation:goDown .6s ease both;animation:goDown .6s ease both}.owl-fadeUp-in{-webkit-animation:scaleUpFrom .5s ease both;-moz-animation:scaleUpFrom .5s ease both;animation:scaleUpFrom .5s ease both}.owl-fadeUp-out{-webkit-animation:scaleUpTo .5s ease both;-moz-animation:scaleUpTo .5s ease both;animation:scaleUpTo .5s ease both}@-webkit-keyframes empty{0%{opacity:1}}@-moz-keyframes empty{0%{opacity:1}}@keyframes empty{0%{opacity:1}}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@-moz-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@-moz-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes backSlideOut{25%{opacity:.5;-webkit-transform:translateZ(-500px)}100%,75%{opacity:.5;-webkit-transform:translateZ(-500px) translateX(-200%)}}@-moz-keyframes backSlideOut{25%{opacity:.5;-moz-transform:translateZ(-500px)}100%,75%{opacity:.5;-moz-transform:translateZ(-500px) translateX(-200%)}}@keyframes backSlideOut{25%{opacity:.5;transform:translateZ(-500px)}100%,75%{opacity:.5;transform:translateZ(-500px) translateX(-200%)}}@-webkit-keyframes backSlideIn{0%,25%{opacity:.5;-webkit-transform:translateZ(-500px) translateX(200%)}75%{opacity:.5;-webkit-transform:translateZ(-500px)}100%{opacity:1;-webkit-transform:translateZ(0) translateX(0)}}@-moz-keyframes backSlideIn{0%,25%{opacity:.5;-moz-transform:translateZ(-500px) translateX(200%)}75%{opacity:.5;-moz-transform:translateZ(-500px)}100%{opacity:1;-moz-transform:translateZ(0) translateX(0)}}@keyframes backSlideIn{0%,25%{opacity:.5;transform:translateZ(-500px) translateX(200%)}75%{opacity:.5;transform:translateZ(-500px)}100%{opacity:1;transform:translateZ(0) translateX(0)}}@-webkit-keyframes scaleToFade{to{opacity:0;-webkit-transform:scale(.8)}}@-moz-keyframes scaleToFade{to{opacity:0;-moz-transform:scale(.8)}}@keyframes scaleToFade{to{opacity:0;transform:scale(.8)}}@-webkit-keyframes goDown{from{-webkit-transform:translateY(-100%)}}@-moz-keyframes goDown{from{-moz-transform:translateY(-100%)}}@keyframes goDown{from{transform:translateY(-100%)}}@-webkit-keyframes scaleUpFrom{from{opacity:0;-webkit-transform:scale(1.5)}}@-moz-keyframes scaleUpFrom{from{opacity:0;-moz-transform:scale(1.5)}}@keyframes scaleUpFrom{from{opacity:0;transform:scale(1.5)}}@-webkit-keyframes scaleUpTo{to{opacity:0;-webkit-transform:scale(1.5)}}@-moz-keyframes scaleUpTo{to{opacity:0;-moz-transform:scale(1.5)}}@keyframes scaleUpTo{to{opacity:0;transform:scale(1.5)}}.owl-theme .owl-controls{margin-top:10px;text-align:center}.owl-theme .owl-controls .owl-buttons div{color:#FFF;display:inline-block;zoom:1;margin:5px;padding:3px 10px;font-size:12px;-webkit-border-radius:30px;-moz-border-radius:30px;border-radius:30px;background:#869791;filter:Alpha(Opacity=50);opacity:.5}.owl-theme .owl-controls.clickable .owl-buttons div:hover{filter:Alpha(Opacity=100);opacity:1;text-decoration:none}.owl-theme .owl-controls .owl-page{display:inline-block;zoom:1}.owl-theme .owl-controls .owl-page span{display:block;width:12px;height:12px;margin:5px 7px;filter:Alpha(Opacity=50);opacity:.5;-webkit-border-radius:20px;-moz-border-radius:20px;border-radius:20px;background:#869791}.owl-theme .owl-controls .owl-page.active span,.owl-theme .owl-controls.clickable .owl-page:hover span{filter:Alpha(Opacity=100);opacity:1}.owl-theme .owl-controls .owl-page span.owl-numbers{height:auto;width:auto;color:#FFF;padding:2px 10px;font-size:12px;-webkit-border-radius:30px;-moz-border-radius:30px;border-radius:30px}.owl-item.loading{min-height:150px;background:url(AjaxLoader.gif) no-repeat center center}.mfp-bg{top:0;left:0;width:100%;height:100%;z-index:99999;overflow:hidden;position:fixed;background:#0b0b0b;opacity:.8;filter:alpha(opacity=80)}.mfp-wrap{top:0;left:0;width:100%;height:100%;z-index:100000;position:fixed;outline:0!important;-webkit-backface-visibility:hidden}.mfp-container{text-align:center;position:absolute;width:100%;height:100%;left:0;top:0;padding:0 8px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mfp-container:before{content:'';display:inline-block;height:100%;vertical-align:middle}.mfp-align-top .mfp-container:before{display:none}.mfp-content{position:relative;display:inline-block;vertical-align:middle;margin:0 auto;text-align:left;z-index:100001}.mfp-ajax-holder .mfp-content,.mfp-inline-holder .mfp-content{width:100%;cursor:auto}.mfp-ajax-cur{cursor:progress}.mfp-zoom-out-cur,.mfp-zoom-out-cur .mfp-image-holder .mfp-close{cursor:-moz-zoom-out;cursor:-webkit-zoom-out;cursor:zoom-out}.mfp-zoom{cursor:pointer;cursor:-webkit-zoom-in;cursor:-moz-zoom-in;cursor:zoom-in}.mfp-auto-cursor .mfp-content{cursor:auto}.mfp-arrow,.mfp-close,.mfp-counter,.mfp-preloader{-webkit-user-select:none;-moz-user-select:none;user-select:none}.mfp-loading.mfp-figure{display:none}.mfp-hide{display:none!important}.mfp-preloader{color:#ccc;position:absolute;top:50%;width:auto;text-align:center;margin-top:-.8em;left:8px;right:8px;z-index:100000}.mfp-preloader a{color:#ccc}.mfp-preloader a:hover{color:#fff}.mfp-s-error .mfp-content,.mfp-s-ready .mfp-preloader{display:none}button.mfp-arrow,button.mfp-close{overflow:visible;cursor:pointer;background:0 0;border:0;-webkit-appearance:none;display:block;outline:0;padding:0;z-index:100002;-webkit-box-shadow:none;box-shadow:none}button::-moz-focus-inner{padding:0;border:0}.mfp-close{width:44px;height:44px;line-height:44px;position:absolute;right:0;top:0;text-decoration:none;text-align:center;opacity:.65;filter:alpha(opacity=65);padding:0 0 18px 10px;color:#fff;font-style:normal;font-size:28px;font-family:Arial,Baskerville,monospace}.mfp-close:focus,.mfp-close:hover{opacity:1;filter:alpha(opacity=100)}.mfp-close:active{top:1px}.mfp-close-btn-in .mfp-close{color:#333}.mfp-iframe-holder .mfp-close,.mfp-image-holder .mfp-close{color:#fff;right:-6px;text-align:right;padding-right:6px;width:100%}.mfp-counter{position:absolute;top:0;right:0;color:#ccc;font-size:12px;line-height:18px}.mfp-arrow{position:absolute;opacity:.65;filter:alpha(opacity=65);margin:-55px 0 0;top:50%;padding:0;width:90px;height:110px;-webkit-tap-highlight-color:transparent}.mfp-arrow:active{margin-top:-54px}.mfp-arrow:focus,.mfp-arrow:hover{opacity:1;filter:alpha(opacity=100)}.mfp-arrow .mfp-a,.mfp-arrow .mfp-b,.mfp-arrow:after,.mfp-arrow:before{content:'';display:block;width:0;height:0;position:absolute;left:0;top:0;margin-top:35px;margin-left:35px;border:inset transparent}.mfp-arrow .mfp-a,.mfp-arrow:after{border-top-width:13px;border-bottom-width:13px;top:8px}.mfp-arrow .mfp-b,.mfp-arrow:before{border-top-width:21px;border-bottom-width:21px;opacity:.7}.mfp-arrow-left{left:0}.mfp-arrow-left .mfp-a,.mfp-arrow-left:after{border-right:17px solid #fff;margin-left:31px}.mfp-arrow-left .mfp-b,.mfp-arrow-left:before{margin-left:25px;border-right:27px solid #3f3f3f}.mfp-arrow-right{right:0}.mfp-arrow-right .mfp-a,.mfp-arrow-right:after{border-left:17px solid #fff;margin-left:39px}.mfp-arrow-right .mfp-b,.mfp-arrow-right:before{border-left:27px solid #3f3f3f}.mfp-iframe-holder{padding-top:40px;padding-bottom:40px}.mfp-iframe-holder .mfp-content{line-height:0;width:100%;max-width:900px}.mfp-iframe-holder .mfp-close{top:-40px}.mfp-iframe-scaler{width:100%;height:0;overflow:hidden;padding-top:56.25%}.mfp-iframe-scaler iframe{position:absolute;display:block;top:0;left:0;width:100%;height:100%;box-shadow:0 0 8px rgba(0,0,0,.6);background:#000}img.mfp-img{width:auto;max-width:100%;height:auto;display:block;line-height:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:40px 0;margin:0 auto}.mfp-figure{line-height:0}.mfp-figure:after{content:'';position:absolute;left:0;top:40px;bottom:40px;display:block;right:0;width:auto;height:auto;z-index:-1;box-shadow:0 0 8px rgba(0,0,0,.6);background:#444}.mfp-figure small{color:#bdbdbd;display:block;font-size:12px;line-height:14px}.mfp-figure figure{margin:0}.mfp-bottom-bar{margin-top:-36px;position:absolute;top:100%;left:0;width:100%;cursor:auto}.mfp-title{text-align:left;line-height:18px;color:#f3f3f3;word-wrap:break-word;padding-right:36px}.mfp-image-holder .mfp-content{max-width:100%}.mfp-gallery .mfp-image-holder .mfp-figure{cursor:pointer}@media screen and (max-width:800px) and (orientation:landscape),screen and (max-height:300px){.mfp-img-mobile .mfp-image-holder{padding-left:0;padding-right:0}.mfp-img-mobile img.mfp-img{padding:0}.mfp-img-mobile .mfp-figure:after{top:0;bottom:0}.mfp-img-mobile .mfp-figure small{display:inline;margin-left:5px}.mfp-img-mobile .mfp-bottom-bar{background:rgba(0,0,0,.6);bottom:0;margin:0;top:auto;padding:3px 5px;position:fixed;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mfp-img-mobile .mfp-bottom-bar:empty{padding:0}.mfp-img-mobile .mfp-counter{right:5px;top:3px}.mfp-img-mobile .mfp-close{top:0;right:0;width:35px;height:35px;line-height:35px;background:rgba(0,0,0,.6);position:fixed;text-align:center;padding:0}}@media all and (max-width:900px){.mfp-arrow{-webkit-transform:scale(0.75);transform:scale(0.75)}.mfp-arrow-left{-webkit-transform-origin:0;transform-origin:0}.mfp-arrow-right{-webkit-transform-origin:100%;transform-origin:100%}.mfp-container{padding-left:6px;padding-right:6px}}.mfp-ie7 .mfp-img{padding:0}.mfp-ie7 .mfp-bottom-bar{width:600px;left:50%;margin-left:-300px;margin-top:5px;padding-bottom:5px}.mfp-ie7 .mfp-container{padding:0}.mfp-ie7 .mfp-content{padding-top:44px}.mfp-ie7 .mfp-close{top:0;right:0;padding-top:0} .mfp-close:hover { background: transparent; }
|
ds-live-composer.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin URI: http://www.livecomposerplugin.com
|
5 |
Description: Primarily a front-end page builder but can also be used to build a whole website ( with our blank theme ) from header to footer.
|
6 |
Author: Dany Duchaine and Slobodan Kustrimovic
|
7 |
-
Version: 1.0.
|
8 |
Author URI: http://livecomposerplugin.com
|
9 |
License: GPL2
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -16,7 +16,7 @@
|
|
16 |
* Constants
|
17 |
*/
|
18 |
|
19 |
-
define( 'DS_LIVE_COMPOSER_VER', '1.0.
|
20 |
define( 'DS_LIVE_COMPOSER_LOAD_MINIFIED', true );
|
21 |
|
22 |
define( 'DS_LIVE_COMPOSER_BASENAME', plugin_basename( __FILE__ ) );
|
@@ -56,7 +56,7 @@
|
|
56 |
$dslc_css_fonts = '';
|
57 |
$dslc_css_style = '';
|
58 |
$dslc_googlefonts_array = array();
|
59 |
-
$dslc_all_googlefonts_array = array( "ABeeZee","Abel","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akronim","Aladin","Aldrich","Alef","Alegreya","Alegreya SC","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allura","Almendra","Almendra Display","Almendra SC","Amarante","Amaranth","Amatic SC","Amethysta","Anaheim","Andada","Andika","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo Black","Archivo Narrow","Arimo","Arizonia","Armata","Artifika","Arvo","Asap","Asset","Astloch","Asul","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Bad Script","Balthazar","Bangers","Basic","Baumans","Belgrano","Belleza","BenchNine","Bentham","Berkshire Swash","Bevan","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","Bitter","Black Ops One","Bonbon","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Bubblegum Sans","Bubbler One","Buda","Buenard","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Calligraffitti","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Caudex","Cedarville Cursive","Ceviche One","Changa One","Chango","Chau Philomene One","Chela One","Chelsea Market","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chivo","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Combo","Comfortaa","Coming Soon","Concert One","Condiment","Contrail One","Convergence","Cookie","Copse","Corben","Courgette","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Text","Croissant One","Crushed","Cuprum","Cutive","Cutive Mono","Damion","Dancing Script", "Dawning of a New Day","Days One","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Didact Gothic","Diplomata","Diplomata SC","Domine","Donegal One","Doppio One","Dorsa","Dosis","Dr Sugiyama","Droid Sans","Droid Sans Mono","Droid Serif","Duru Sans","Dynalight","Eagle Lake","Eater","EB Garamond","Economica","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Engagement","Englebert","Enriqueta","Erica One","Esteban","Euphoria Script","Ewert","Exo","Expletus Sans","Fanwood Text","Fascinate","Fascinate Inline","Faster One","Fauna One","Federant","Federo","Felipa","Fenix","Finger Paint","Fjalla One","Fjord One","Flamenco","Flavors","Fondamento","Fontdiner Swanky","Forum","Francois One","Freckle Face","Fredericka the Great","Fredoka One","Fresca","Frijole","Fruktur","Fugaz One","Gabriela","Gafata","Galdeano","Galindo","Gentium Basic","Gentium Book Basic","Geo","Geostar","Geostar Fill","Germania One","GFS Didot","GFS Neohellenic","Gilda Display","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Goblin One","Gochi Hand","Gorditas","Goudy Bookletter 1911","Graduate","Grand Hotel","Gravitas One","Great Vibes","Griffy","Gruppo","Gudea","Habibi","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Happy Monkey","Headland One","Henny Penny","Herr Von Muellerhoff","Holtwood One SC","Homemade Apple","Homenaje","Iceberg","Iceland","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Imprima","Inconsolata","Inder","Indie Flower","Inika","Irish Grover","Istok Web","Italiana","Italianno","Jacques Francois","Jacques Francois Shadow","Jim Nightshade","Jockey One","Jolly Lodger","Josefin Sans","Josefin Slab","Joti One","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","Kameron","Karla","Kaushan Script","Kavoon","Keania One","Kelly Slab","Kenia","Kite One","Knewave","Kotta One","Kranky","Kreon","Kristi","Krona One","La Belle Aurore","Lancelot","Lato","League Script","Leckerli One","Ledger","Lekton","Lemon","Libre Baskerville","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Lora","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","Macondo","Macondo Swash Caps","Magra","Maiden Orange","Mako","Marcellus","Marcellus SC","Marck Script","Margarine","Marko One","Marmelad","Marvel","Mate","Mate SC","Maven Pro","McLaren","Meddon","MedievalSharp","Medula One","Megrim","Meie Script","Merienda","Merienda One","Merriweather","Merriweather Sans","Metal Mania","Metamorphous","Metrophobic","Michroma","Milonga","Miltonian","Miltonian Tattoo","Miniver","Miss Fajardose","Modern Antiqua","Molengo","Molle","Monda","Monofett","Monoton","Monsieur La Doulaise","Montaga","Montez","Montserrat","Montserrat Alternates","Montserrat Subrayada","Mountains of Christmas","Mouse Memoirs","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Muli","Mystery Quest","Neucha","Neuton","New Rocker","News Cycle","Niconne","Nixie One","Nobile","Norican","Nosifer","Nothing You Could Do","Noticia Text","Noto Sans","Noto Serif","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Offside","Old Standard TT","Oldenburg","Oleo Script","Oleo Script Swash Caps","Open Sans","Open Sans Condensed","Oranienbaum","Orbitron","Oregano","Orienta","Original Surfer","Oswald","Over the Rainbow","Overlock","Overlock SC","Ovo","Oxygen","Oxygen Mono","Pacifico","Paprika","Parisienne","Passero One","Passion One","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Patua One","Paytone One","Peralta","Permanent Marker","Petit Formal Script","Petrona","Philosopher","Piedra","Pinyon Script","Pirata One","Plaster","Play","Playball","Playfair Display","Playfair Display SC","Podkova","Poiret One","Poller One","Poly","Pompiere","Pontano Sans","Port Lligat Sans","Port Lligat Slab","Prata","Press Start 2P","Princess Sofia","Prociono","Prosto One","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Puritan","Purple Purse","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Racing Sans One","Radley","Raleway","Raleway Dots","Rambla","Rammetto One","Ranchers","Rancho","Rationale","Redressed","Reenie Beanie","Revalia","Ribeye","Ribeye Marrow","Righteous","Risque","Roboto","Roboto Condensed","Roboto Slab","Rochester","Rock Salt","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Rye","Sacramento","Sail","Salsa","Sanchez","Sancreek","Sansita One","Sarina","Satisfy","Scada","Schoolbell","Seaweed Script","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shanti","Share","Share Tech","Share Tech Mono","Shojumaru","Short Stack","Sigmar One","Signika","Signika Negative","Simonetta","Sintony","Sirin Stencil","Six Caps","Skranji","Slackey","Smokum","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Sonsie One","Sorts Mill Goudy","Source Code Pro","Source Sans Pro","Special Elite","Spicy Rice","Spinnaker","Spirax","Squada One","Stalemate","Stalinist One","Stardos Stencil","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Sue Ellen Francisco","Sunshiney","Supermercado One","Swanky and Moo Moo","Syncopate","Tangerine","Tauri","Telex","Tenor Sans","Text Me One","The Girl Next Door","Tienne","Tinos","Titan One","Titillium Web","Trade Winds","Trocchi","Trochut","Trykker","Tulpen One","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","Vampiro One","Varela","Varela Round","Vast Shadow","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Voltaire","VT323","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Wellfleet","Wendy One","Wire One","Yanone Kaffeesatz","Yellowtail","Yeseva One","Yesteryear","Zeyada" );
|
60 |
$dslc_should_filter = true;
|
61 |
|
62 |
/**
|
4 |
Plugin URI: http://www.livecomposerplugin.com
|
5 |
Description: Primarily a front-end page builder but can also be used to build a whole website ( with our blank theme ) from header to footer.
|
6 |
Author: Dany Duchaine and Slobodan Kustrimovic
|
7 |
+
Version: 1.0.6
|
8 |
Author URI: http://livecomposerplugin.com
|
9 |
License: GPL2
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
16 |
* Constants
|
17 |
*/
|
18 |
|
19 |
+
define( 'DS_LIVE_COMPOSER_VER', '1.0.6' );
|
20 |
define( 'DS_LIVE_COMPOSER_LOAD_MINIFIED', true );
|
21 |
|
22 |
define( 'DS_LIVE_COMPOSER_BASENAME', plugin_basename( __FILE__ ) );
|
56 |
$dslc_css_fonts = '';
|
57 |
$dslc_css_style = '';
|
58 |
$dslc_googlefonts_array = array();
|
59 |
+
$dslc_all_googlefonts_array = array( "ABeeZee","Abel","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akronim","Aladin","Aldrich","Alef","Alegreya","Alegreya SC","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allura","Almendra","Almendra Display","Almendra SC","Amarante","Amaranth","Amatic SC","Amethysta","Anaheim","Andada","Andika","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo Black","Archivo Narrow","Arimo","Arizonia","Armata","Artifika","Arvo","Asap","Asset","Astloch","Asul","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Bad Script","Balthazar","Bangers","Basic","Baumans","Belgrano","Belleza","BenchNine","Bentham","Berkshire Swash","Bevan","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","Bitter","Black Ops One","Bonbon","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Bubblegum Sans","Bubbler One","Buda","Buenard","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Calligraffitti","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Caudex","Cedarville Cursive","Ceviche One","Changa One","Chango","Chau Philomene One","Chela One","Chelsea Market","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chivo","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Combo","Comfortaa","Coming Soon","Concert One","Condiment","Contrail One","Convergence","Cookie","Copse","Corben","Courgette","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Text","Croissant One","Crushed","Cuprum","Cutive","Cutive Mono","Damion","Dancing Script", "Dawning of a New Day","Days One","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Didact Gothic","Diplomata","Diplomata SC","Domine","Donegal One","Doppio One","Dorsa","Dosis","Dr Sugiyama","Droid Sans","Droid Sans Mono","Droid Serif","Duru Sans","Dynalight","Eagle Lake","Eater","EB Garamond","Economica","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Engagement","Englebert","Enriqueta","Erica One","Esteban","Euphoria Script","Ewert","Exo","Expletus Sans","Fanwood Text","Fascinate","Fascinate Inline","Faster One","Fauna One","Federant","Federo","Felipa","Fenix","Finger Paint","Fjalla One","Fjord One","Flamenco","Flavors","Fondamento","Fontdiner Swanky","Forum","Francois One","Freckle Face","Fredericka the Great","Fredoka One","Fresca","Frijole","Fruktur","Fugaz One","Gabriela","Gafata","Galdeano","Galindo","Gentium Basic","Gentium Book Basic","Geo","Geostar","Geostar Fill","Germania One","GFS Didot","GFS Neohellenic","Gilda Display","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Goblin One","Gochi Hand","Gorditas","Goudy Bookletter 1911","Graduate","Grand Hotel","Gravitas One","Great Vibes","Griffy","Gruppo","Gudea","Habibi","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Happy Monkey","Headland One","Henny Penny","Herr Von Muellerhoff","Holtwood One SC","Homemade Apple","Homenaje","Iceberg","Iceland","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Imprima","Inconsolata","Inder","Indie Flower","Inika","Irish Grover","Istok Web","Italiana","Italianno","Jacques Francois","Jacques Francois Shadow","Jim Nightshade","Jockey One","Jolly Lodger","Josefin Sans","Josefin Slab","Joti One","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","Kameron","Karla","Kaushan Script","Kavoon","Keania One","Kelly Slab","Kenia","Kite One","Knewave","Kotta One","Kranky","Kreon","Kristi","Krona One","La Belle Aurore","Lancelot","Lato","League Script","Leckerli One","Ledger","Lekton","Lemon","Libre Baskerville","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Lora","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","Macondo","Macondo Swash Caps","Magra","Maiden Orange","Mako","Marcellus","Marcellus SC","Marck Script","Margarine","Marko One","Marmelad","Marvel","Mate","Mate SC","Maven Pro","McLaren","Meddon","MedievalSharp","Medula One","Megrim","Meie Script","Merienda","Merienda One","Merriweather","Merriweather Sans","Metal Mania","Metamorphous","Metrophobic","Michroma","Milonga","Miltonian","Miltonian Tattoo","Miniver","Miss Fajardose","Modern Antiqua","Molengo","Molle","Monda","Monofett","Monoton","Monsieur La Doulaise","Montaga","Montez","Montserrat","Montserrat Alternates","Montserrat Subrayada","Mountains of Christmas","Mouse Memoirs","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Muli","Mystery Quest","Neucha","Neuton","New Rocker","News Cycle","Niconne","Nixie One","Nobile","Norican","Nosifer","Nothing You Could Do","Noticia Text","Noto Sans","Noto Serif","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Offside","Old Standard TT","Oldenburg","Oleo Script","Oleo Script Swash Caps","Open Sans","Open Sans Condensed","Oranienbaum","Orbitron","Oregano","Orienta","Original Surfer","Oswald","Over the Rainbow","Overlock","Overlock SC","Ovo","Oxygen","Oxygen Mono","Pacifico","Paprika","Parisienne","Passero One","Passion One","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Patua One","Paytone One","Peralta","Permanent Marker","Petit Formal Script","Petrona","Philosopher","Piedra","Pinyon Script","Pirata One","Plaster","Play","Playball","Playfair Display","Playfair Display SC","Podkova","Poiret One","Poller One","Poly","Pompiere","Poppins","Pontano Sans","Port Lligat Sans","Port Lligat Slab","Prata","Press Start 2P","Princess Sofia","Prociono","Prosto One","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Puritan","Purple Purse","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Racing Sans One","Radley","Raleway","Raleway Dots","Rambla","Rammetto One","Ranchers","Rancho","Rationale","Redressed","Reenie Beanie","Revalia","Ribeye","Ribeye Marrow","Righteous","Risque","Roboto","Roboto Condensed","Roboto Slab","Rochester","Rock Salt","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Rye","Sacramento","Sail","Salsa","Sanchez","Sancreek","Sansita One","Sarina","Satisfy","Scada","Schoolbell","Seaweed Script","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shanti","Share","Share Tech","Share Tech Mono","Shojumaru","Short Stack","Sigmar One","Signika","Signika Negative","Simonetta","Sintony","Sirin Stencil","Six Caps","Skranji","Slackey","Smokum","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Sonsie One","Sorts Mill Goudy","Source Code Pro","Source Sans Pro","Special Elite","Spicy Rice","Spinnaker","Spirax","Squada One","Stalemate","Stalinist One","Stardos Stencil","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Sue Ellen Francisco","Sunshiney","Supermercado One","Swanky and Moo Moo","Syncopate","Tangerine","Tauri","Telex","Tenor Sans","Text Me One","The Girl Next Door","Tienne","Tinos","Titan One","Titillium Web","Trade Winds","Trocchi","Trochut","Trykker","Tulpen One","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","Vampiro One","Varela","Varela Round","Vast Shadow","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Voltaire","VT323","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Wellfleet","Wendy One","Wire One","Yanone Kaffeesatz","Yellowtail","Yeseva One","Yesteryear","Zeyada" );
|
60 |
$dslc_should_filter = true;
|
61 |
|
62 |
/**
|
includes/display-functions.php
CHANGED
@@ -644,10 +644,7 @@ function dslc_filter_content( $content ) {
|
|
644 |
if ( $template_ID ) {
|
645 |
|
646 |
// Get LC code of the template
|
647 |
-
$
|
648 |
-
|
649 |
-
// Add the template code to the holder variable
|
650 |
-
$composer_prepend .= do_shortcode( $template_code );
|
651 |
|
652 |
}
|
653 |
|
@@ -663,10 +660,7 @@ function dslc_filter_content( $content ) {
|
|
663 |
if ( $template_ID ) {
|
664 |
|
665 |
// Get LC code of the page
|
666 |
-
$
|
667 |
-
|
668 |
-
// Add the template code to the holder variable
|
669 |
-
$composer_prepend .= do_shortcode( $template_code );
|
670 |
|
671 |
}
|
672 |
|
@@ -682,10 +676,7 @@ function dslc_filter_content( $content ) {
|
|
682 |
if ( $template_ID ) {
|
683 |
|
684 |
// Get LC code of the page
|
685 |
-
$
|
686 |
-
|
687 |
-
// Add the template code to the holder variable
|
688 |
-
$composer_prepend .= do_shortcode( $template_code );
|
689 |
|
690 |
}
|
691 |
|
644 |
if ( $template_ID ) {
|
645 |
|
646 |
// Get LC code of the template
|
647 |
+
$composer_code = dslc_get_code( $template_ID );
|
|
|
|
|
|
|
648 |
|
649 |
}
|
650 |
|
660 |
if ( $template_ID ) {
|
661 |
|
662 |
// Get LC code of the page
|
663 |
+
$composer_code = dslc_get_code( $template_ID );
|
|
|
|
|
|
|
664 |
|
665 |
}
|
666 |
|
676 |
if ( $template_ID ) {
|
677 |
|
678 |
// Get LC code of the page
|
679 |
+
$composer_code = dslc_get_code( $template_ID );
|
|
|
|
|
|
|
680 |
|
681 |
}
|
682 |
|
includes/other-functions.php
CHANGED
@@ -205,8 +205,30 @@ if ( ! function_exists('dslc_aq_resize') ) {
|
|
205 |
* Array contains 0 = URL, 1 = width, 2 = height
|
206 |
*/
|
207 |
function dslc_aq_resize( $url, $width = null, $height = null, $crop = null, $single = true, $upscale = false ) {
|
208 |
-
|
209 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
}
|
211 |
|
212 |
}
|
@@ -223,9 +245,9 @@ if ( ! function_exists('dslc_aq_resize') ) {
|
|
223 |
function dslc_get_social_count( $post_ID = false, $refresh_in = 3600 ) {
|
224 |
|
225 |
// If ID nt supplied use current
|
226 |
-
if ( $post_ID
|
227 |
$post_ID = get_the_ID();
|
228 |
-
}
|
229 |
|
230 |
// Transient
|
231 |
$transient_id = 'dslc_social_shares_count_' . $post_ID;
|
205 |
* Array contains 0 = URL, 1 = width, 2 = height
|
206 |
*/
|
207 |
function dslc_aq_resize( $url, $width = null, $height = null, $crop = null, $single = true, $upscale = false ) {
|
208 |
+
|
209 |
+
if( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'photon' ) ) {
|
210 |
+
|
211 |
+
$args = array(
|
212 |
+
'resize' => "$width,$height"
|
213 |
+
);
|
214 |
+
if ( $single == true ) {
|
215 |
+
return jetpack_photon_url( $url, $args );
|
216 |
+
} else {
|
217 |
+
$image = array (
|
218 |
+
0 => $img_url,
|
219 |
+
1 => $width,
|
220 |
+
2 => $height
|
221 |
+
);
|
222 |
+
return jetpack_photon_url( $url, $args );
|
223 |
+
}
|
224 |
+
|
225 |
+
} else {
|
226 |
+
|
227 |
+
$aq_resize = DSLC_Aq_Resize::getInstance();
|
228 |
+
return $aq_resize->process( $url, $width, $height, $crop, $single, $upscale );
|
229 |
+
|
230 |
+
}
|
231 |
+
|
232 |
}
|
233 |
|
234 |
}
|
245 |
function dslc_get_social_count( $post_ID = false, $refresh_in = 3600 ) {
|
246 |
|
247 |
// If ID nt supplied use current
|
248 |
+
if ( $post_ID == false ) {
|
249 |
$post_ID = get_the_ID();
|
250 |
+
}
|
251 |
|
252 |
// Transient
|
253 |
$transient_id = 'dslc_social_shares_count_' . $post_ID;
|
includes/other.php
CHANGED
@@ -3,30 +3,11 @@
|
|
3 |
/**
|
4 |
* Table of contents
|
5 |
*
|
6 |
-
* - dslc_yoast_seo_content_filter ( Include LC content in Yoast SEO filter )
|
7 |
* - dslc_plugin_action_links ( Additional links on plugin listings page )
|
8 |
* - dslc_icons
|
9 |
*/
|
10 |
|
11 |
|
12 |
-
/**
|
13 |
-
* Include LC content in Yoast SEO filter
|
14 |
-
*
|
15 |
-
* @since 1.0
|
16 |
-
*/
|
17 |
-
|
18 |
-
function dslc_yoast_seo_content_filter( $post_content, $post ) {
|
19 |
-
|
20 |
-
// If there's LC content append it to the post content var
|
21 |
-
if ( get_post_meta( $post->ID, 'dslc_content_for_search', true ) ) {
|
22 |
-
$post_content .= ' ' . get_post_meta( $post->ID, 'dslc_content_for_search', true );
|
23 |
-
}
|
24 |
-
|
25 |
-
// Return the post content var
|
26 |
-
return $post_content;
|
27 |
-
|
28 |
-
} add_filter( 'wpseo_pre_analysis_post_content', 'dslc_yoast_seo_content_filter', 10, 2 );
|
29 |
-
|
30 |
/**
|
31 |
* Additional links on plugin listings page
|
32 |
*
|
3 |
/**
|
4 |
* Table of contents
|
5 |
*
|
|
|
6 |
* - dslc_plugin_action_links ( Additional links on plugin listings page )
|
7 |
* - dslc_icons
|
8 |
*/
|
9 |
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
/**
|
12 |
* Additional links on plugin listings page
|
13 |
*
|
includes/scripts.php
CHANGED
@@ -50,7 +50,7 @@ function dslc_load_scripts() {
|
|
50 |
// Array of fonts available to be used in LC editor
|
51 |
$fonts_array = array(
|
52 |
'regular' => array( "Georgia", "Times", "Arial", "Lucida Sans Unicode", "Tahoma", "Trebuchet MS", "Verdana", "Helvetica" ),
|
53 |
-
'google' => array( "ABeeZee","Abel","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akronim","Aladin","Aldrich","Alef","Alegreya","Alegreya SC","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allura","Almendra","Almendra Display","Almendra SC","Amarante","Amaranth","Amatic SC","Amethysta","Anaheim","Andada","Andika","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo Black","Archivo Narrow","Arimo","Arizonia","Armata","Artifika","Arvo","Asap","Asset","Astloch","Asul","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Bad Script","Balthazar","Bangers","Basic","Baumans","Belgrano","Belleza","BenchNine","Bentham","Berkshire Swash","Bevan","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","Bitter","Black Ops One","Bonbon","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Bubblegum Sans","Bubbler One","Buda","Buenard","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Calligraffitti","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Caudex","Cedarville Cursive","Ceviche One","Changa One","Chango","Chau Philomene One","Chela One","Chelsea Market","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chivo","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Combo","Comfortaa","Coming Soon","Concert One","Condiment","Contrail One","Convergence","Cookie","Copse","Corben","Courgette","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Text","Croissant One","Crushed","Cuprum","Cutive","Cutive Mono","Damion","Dancing Script", "Dawning of a New Day","Days One","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Didact Gothic","Diplomata","Diplomata SC","Domine","Donegal One","Doppio One","Dorsa","Dosis","Dr Sugiyama","Droid Sans","Droid Sans Mono","Droid Serif","Duru Sans","Dynalight","Eagle Lake","Eater","EB Garamond","Economica","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Engagement","Englebert","Enriqueta","Erica One","Esteban","Euphoria Script","Ewert","Exo","Expletus Sans","Fanwood Text","Fascinate","Fascinate Inline","Faster One","Fauna One","Federant","Federo","Felipa","Fenix","Finger Paint","Fjalla One","Fjord One","Flamenco","Flavors","Fondamento","Fontdiner Swanky","Forum","Francois One","Freckle Face","Fredericka the Great","Fredoka One","Fresca","Frijole","Fruktur","Fugaz One","Gabriela","Gafata","Galdeano","Galindo","Gentium Basic","Gentium Book Basic","Geo","Geostar","Geostar Fill","Germania One","GFS Didot","GFS Neohellenic","Gilda Display","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Goblin One","Gochi Hand","Gorditas","Goudy Bookletter 1911","Graduate","Grand Hotel","Gravitas One","Great Vibes","Griffy","Gruppo","Gudea","Habibi","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Happy Monkey","Headland One","Henny Penny","Herr Von Muellerhoff","Holtwood One SC","Homemade Apple","Homenaje","Iceberg","Iceland","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Imprima","Inconsolata","Inder","Indie Flower","Inika","Irish Grover","Istok Web","Italiana","Italianno","Jacques Francois","Jacques Francois Shadow","Jim Nightshade","Jockey One","Jolly Lodger","Josefin Sans","Josefin Slab","Joti One","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","Kameron","Karla","Kaushan Script","Kavoon","Keania One","Kelly Slab","Kenia","Kite One","Knewave","Kotta One","Kranky","Kreon","Kristi","Krona One","La Belle Aurore","Lancelot","Lato","League Script","Leckerli One","Ledger","Lekton","Lemon","Libre Baskerville","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Lora","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","Macondo","Macondo Swash Caps","Magra","Maiden Orange","Mako","Marcellus","Marcellus SC","Marck Script","Margarine","Marko One","Marmelad","Marvel","Mate","Mate SC","Maven Pro","McLaren","Meddon","MedievalSharp","Medula One","Megrim","Meie Script","Merienda","Merienda One","Merriweather","Merriweather Sans","Metal Mania","Metamorphous","Metrophobic","Michroma","Milonga","Miltonian","Miltonian Tattoo","Miniver","Miss Fajardose","Modern Antiqua","Molengo","Molle","Monda","Monofett","Monoton","Monsieur La Doulaise","Montaga","Montez","Montserrat","Montserrat Alternates","Montserrat Subrayada","Mountains of Christmas","Mouse Memoirs","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Muli","Mystery Quest","Neucha","Neuton","New Rocker","News Cycle","Niconne","Nixie One","Nobile","Norican","Nosifer","Nothing You Could Do","Noticia Text","Noto Sans","Noto Serif","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Offside","Old Standard TT","Oldenburg","Oleo Script","Oleo Script Swash Caps","Open Sans","Open Sans Condensed","Oranienbaum","Orbitron","Oregano","Orienta","Original Surfer","Oswald","Over the Rainbow","Overlock","Overlock SC","Ovo","Oxygen","Oxygen Mono","Pacifico","Paprika","Parisienne","Passero One","Passion One","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Patua One","Paytone One","Peralta","Permanent Marker","Petit Formal Script","Petrona","Philosopher","Piedra","Pinyon Script","Pirata One","Plaster","Play","Playball","Playfair Display","Playfair Display SC","Podkova","Poiret One","Poller One","Poly","Pompiere","Pontano Sans","Port Lligat Sans","Port Lligat Slab","Prata","Press Start 2P","Princess Sofia","Prociono","Prosto One","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Puritan","Purple Purse","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Racing Sans One","Radley","Raleway","Raleway Dots","Rambla","Rammetto One","Ranchers","Rancho","Rationale","Redressed","Reenie Beanie","Revalia","Ribeye","Ribeye Marrow","Righteous","Risque","Roboto","Roboto Condensed","Roboto Slab","Rochester","Rock Salt","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Rye","Sacramento","Sail","Salsa","Sanchez","Sancreek","Sansita One","Sarina","Satisfy","Scada","Schoolbell","Seaweed Script","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shanti","Share","Share Tech","Share Tech Mono","Shojumaru","Short Stack","Sigmar One","Signika","Signika Negative","Simonetta","Sintony","Sirin Stencil","Six Caps","Skranji","Slackey","Smokum","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Sonsie One","Sorts Mill Goudy","Source Code Pro","Source Sans Pro","Special Elite","Spicy Rice","Spinnaker","Spirax","Squada One","Stalemate","Stalinist One","Stardos Stencil","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Sue Ellen Francisco","Sunshiney","Supermercado One","Swanky and Moo Moo","Syncopate","Tangerine","Tauri","Telex","Tenor Sans","Text Me One","The Girl Next Door","Tienne","Tinos","Titan One","Titillium Web","Trade Winds","Trocchi","Trochut","Trykker","Tulpen One","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","Vampiro One","Varela","Varela Round","Vast Shadow","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Voltaire","VT323","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Wellfleet","Wendy One","Wire One","Yanone Kaffeesatz","Yellowtail","Yeseva One","Yesteryear","Zeyada" ),
|
54 |
);
|
55 |
|
56 |
// Allow devs to alter available fonts
|
@@ -168,6 +168,11 @@ function dslc_load_admin_scripts( $hook ) {
|
|
168 |
wp_enqueue_style( 'dslc-plugin-options-css-admin', DS_LIVE_COMPOSER_URL . 'includes/plugin-options-framework/css/main.css', array(), DS_LIVE_COMPOSER_VER);
|
169 |
}
|
170 |
|
|
|
|
|
|
|
|
|
|
|
171 |
} add_action( 'admin_enqueue_scripts', 'dslc_load_admin_scripts' );
|
172 |
|
173 |
|
50 |
// Array of fonts available to be used in LC editor
|
51 |
$fonts_array = array(
|
52 |
'regular' => array( "Georgia", "Times", "Arial", "Lucida Sans Unicode", "Tahoma", "Trebuchet MS", "Verdana", "Helvetica" ),
|
53 |
+
'google' => array( "ABeeZee","Abel","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akronim","Aladin","Aldrich","Alef","Alegreya","Alegreya SC","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allura","Almendra","Almendra Display","Almendra SC","Amarante","Amaranth","Amatic SC","Amethysta","Anaheim","Andada","Andika","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo Black","Archivo Narrow","Arimo","Arizonia","Armata","Artifika","Arvo","Asap","Asset","Astloch","Asul","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Bad Script","Balthazar","Bangers","Basic","Baumans","Belgrano","Belleza","BenchNine","Bentham","Berkshire Swash","Bevan","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","Bitter","Black Ops One","Bonbon","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Bubblegum Sans","Bubbler One","Buda","Buenard","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Calligraffitti","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Caudex","Cedarville Cursive","Ceviche One","Changa One","Chango","Chau Philomene One","Chela One","Chelsea Market","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chivo","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Combo","Comfortaa","Coming Soon","Concert One","Condiment","Contrail One","Convergence","Cookie","Copse","Corben","Courgette","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Text","Croissant One","Crushed","Cuprum","Cutive","Cutive Mono","Damion","Dancing Script", "Dawning of a New Day","Days One","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Didact Gothic","Diplomata","Diplomata SC","Domine","Donegal One","Doppio One","Dorsa","Dosis","Dr Sugiyama","Droid Sans","Droid Sans Mono","Droid Serif","Duru Sans","Dynalight","Eagle Lake","Eater","EB Garamond","Economica","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Engagement","Englebert","Enriqueta","Erica One","Esteban","Euphoria Script","Ewert","Exo","Expletus Sans","Fanwood Text","Fascinate","Fascinate Inline","Faster One","Fauna One","Federant","Federo","Felipa","Fenix","Finger Paint","Fjalla One","Fjord One","Flamenco","Flavors","Fondamento","Fontdiner Swanky","Forum","Francois One","Freckle Face","Fredericka the Great","Fredoka One","Fresca","Frijole","Fruktur","Fugaz One","Gabriela","Gafata","Galdeano","Galindo","Gentium Basic","Gentium Book Basic","Geo","Geostar","Geostar Fill","Germania One","GFS Didot","GFS Neohellenic","Gilda Display","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Goblin One","Gochi Hand","Gorditas","Goudy Bookletter 1911","Graduate","Grand Hotel","Gravitas One","Great Vibes","Griffy","Gruppo","Gudea","Habibi","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Happy Monkey","Headland One","Henny Penny","Herr Von Muellerhoff","Holtwood One SC","Homemade Apple","Homenaje","Iceberg","Iceland","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Imprima","Inconsolata","Inder","Indie Flower","Inika","Irish Grover","Istok Web","Italiana","Italianno","Jacques Francois","Jacques Francois Shadow","Jim Nightshade","Jockey One","Jolly Lodger","Josefin Sans","Josefin Slab","Joti One","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","Kameron","Karla","Kaushan Script","Kavoon","Keania One","Kelly Slab","Kenia","Kite One","Knewave","Kotta One","Kranky","Kreon","Kristi","Krona One","La Belle Aurore","Lancelot","Lato","League Script","Leckerli One","Ledger","Lekton","Lemon","Libre Baskerville","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Lora","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","Macondo","Macondo Swash Caps","Magra","Maiden Orange","Mako","Marcellus","Marcellus SC","Marck Script","Margarine","Marko One","Marmelad","Marvel","Mate","Mate SC","Maven Pro","McLaren","Meddon","MedievalSharp","Medula One","Megrim","Meie Script","Merienda","Merienda One","Merriweather","Merriweather Sans","Metal Mania","Metamorphous","Metrophobic","Michroma","Milonga","Miltonian","Miltonian Tattoo","Miniver","Miss Fajardose","Modern Antiqua","Molengo","Molle","Monda","Monofett","Monoton","Monsieur La Doulaise","Montaga","Montez","Montserrat","Montserrat Alternates","Montserrat Subrayada","Mountains of Christmas","Mouse Memoirs","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Muli","Mystery Quest","Neucha","Neuton","New Rocker","News Cycle","Niconne","Nixie One","Nobile","Norican","Nosifer","Nothing You Could Do","Noticia Text","Noto Sans","Noto Serif","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Offside","Old Standard TT","Oldenburg","Oleo Script","Oleo Script Swash Caps","Open Sans","Open Sans Condensed","Oranienbaum","Orbitron","Oregano","Orienta","Original Surfer","Oswald","Over the Rainbow","Overlock","Overlock SC","Ovo","Oxygen","Oxygen Mono","Pacifico","Paprika","Parisienne","Passero One","Passion One","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Patua One","Paytone One","Peralta","Permanent Marker","Petit Formal Script","Petrona","Philosopher","Piedra","Pinyon Script","Pirata One","Plaster","Play","Playball","Playfair Display","Playfair Display SC","Podkova","Poiret One","Poller One","Poly","Pompiere","Pontano Sans","Poppins","Port Lligat Sans","Port Lligat Slab","Prata","Press Start 2P","Princess Sofia","Prociono","Prosto One","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Puritan","Purple Purse","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Racing Sans One","Radley","Raleway","Raleway Dots","Rambla","Rammetto One","Ranchers","Rancho","Rationale","Redressed","Reenie Beanie","Revalia","Ribeye","Ribeye Marrow","Righteous","Risque","Roboto","Roboto Condensed","Roboto Slab","Rochester","Rock Salt","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Rye","Sacramento","Sail","Salsa","Sanchez","Sancreek","Sansita One","Sarina","Satisfy","Scada","Schoolbell","Seaweed Script","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shanti","Share","Share Tech","Share Tech Mono","Shojumaru","Short Stack","Sigmar One","Signika","Signika Negative","Simonetta","Sintony","Sirin Stencil","Six Caps","Skranji","Slackey","Smokum","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Sonsie One","Sorts Mill Goudy","Source Code Pro","Source Sans Pro","Special Elite","Spicy Rice","Spinnaker","Spirax","Squada One","Stalemate","Stalinist One","Stardos Stencil","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Sue Ellen Francisco","Sunshiney","Supermercado One","Swanky and Moo Moo","Syncopate","Tangerine","Tauri","Telex","Tenor Sans","Text Me One","The Girl Next Door","Tienne","Tinos","Titan One","Titillium Web","Trade Winds","Trocchi","Trochut","Trykker","Tulpen One","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","Vampiro One","Varela","Varela Round","Vast Shadow","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Voltaire","VT323","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Wellfleet","Wendy One","Wire One","Yanone Kaffeesatz","Yellowtail","Yeseva One","Yesteryear","Zeyada" ),
|
54 |
);
|
55 |
|
56 |
// Allow devs to alter available fonts
|
168 |
wp_enqueue_style( 'dslc-plugin-options-css-admin', DS_LIVE_COMPOSER_URL . 'includes/plugin-options-framework/css/main.css', array(), DS_LIVE_COMPOSER_VER);
|
169 |
}
|
170 |
|
171 |
+
// Yoast SEO
|
172 |
+
if ( $hook == 'post-new.php' || $hook == 'post.php' && defined( 'WPSEO_VERSION' ) ) {
|
173 |
+
wp_enqueue_script( 'dslc-yoast-seo-admin', DS_LIVE_COMPOSER_URL . 'js/yoast-seo.js', array(), DS_LIVE_COMPOSER_VER, true );
|
174 |
+
}
|
175 |
+
|
176 |
} add_action( 'admin_enqueue_scripts', 'dslc_load_admin_scripts' );
|
177 |
|
178 |
|
includes/single-templates-framework/inc/functions.php
CHANGED
@@ -77,7 +77,7 @@ function dslc_st_init() {
|
|
77 |
'value' => 'theme'
|
78 |
),
|
79 |
array(
|
80 |
-
'label' => '
|
81 |
'value' => 'custom'
|
82 |
),
|
83 |
)
|
77 |
'value' => 'theme'
|
78 |
),
|
79 |
array(
|
80 |
+
'label' => 'Plugin Template',
|
81 |
'value' => 'custom'
|
82 |
),
|
83 |
)
|
js/builder.main.js
CHANGED
@@ -5429,7 +5429,7 @@ var dslcDebug = false;
|
|
5429 |
// Go through each content element
|
5430 |
jQuery('#dslc-main .dslca-editable-content').each(function(){
|
5431 |
// Append the content to the variable
|
5432 |
-
content += jQuery(this).
|
5433 |
});
|
5434 |
|
5435 |
// Set the value of the content field
|
5429 |
// Go through each content element
|
5430 |
jQuery('#dslc-main .dslca-editable-content').each(function(){
|
5431 |
// Append the content to the variable
|
5432 |
+
content += jQuery(this).html().replace(/\s+/g, ' ').trim() + ' ';
|
5433 |
});
|
5434 |
|
5435 |
// Set the value of the content field
|
js/builder.main.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
"use strict";function dslc_hide_composer(){dslcDebug&&console.log("dslc_hide_composer"),jQuery(".dslca-hide-composer-hook").hide(),jQuery(".dslca-show-composer-hook").show(),jQuery("body").addClass("dslca-composer-hidden"),jQuery(".dslca-container").css({bottom:-1*jQuery(".dslca-container").outerHeight()}),jQuery(".dslca-header").hide()}function dslc_show_composer(){dslcDebug&&console.log("dslc_show_composer"),jQuery(".dslca-show-composer-hook").hide(),jQuery(".dslca-hide-composer-hook").show(),jQuery("body").removeClass("dslca-composer-hidden"),jQuery(".dslca-container").css({bottom:0}),jQuery(".dslca-header").show()}function dslc_show_publish_button(){dslcDebug&&console.log("dslc_show_publish_button"),jQuery(".dslca-save-composer").show().addClass("dslca-init-animation"),jQuery(".dslca-save-draft-composer").show().addClass("dslca-init-animation")}function dslc_show_section(e){dslcDebug&&console.log("dslc_show_section"),jQuery("body").addClass("dslca-anim-in-progress");var s=(jQuery(e).data("title"),jQuery(e).data("bg"));jQuery(".dslca-container").css({bottom:-500}),jQuery(".dslca-sections").animate({backgroundColor:s},200),jQuery(".dslca-section").hide(),jQuery(e).show(),".dslca-modules-section-edit"==e&&dslc_row_edit_scrollbar_init(),".dslca-module-edit"==e?jQuery(".dslca-currently-editing").show().css("background-color",s).find("strong").text(jQuery(".dslca-module-being-edited").attr("title")+" module"):".dslca-modules-section-edit"==e?jQuery(".dslca-currently-editing").show().css("background-color","#e5855f").find("strong").text("Row"):jQuery(".dslca-currently-editing").hide().find("strong").text(""),dslc_module_options_tab_filter(),".dslca-module-edit"!=e&&dslc_scroller_init(),setTimeout(function(){jQuery(".dslca-container").css({bottom:0})},300),jQuery("body").removeClass("dslca-anim-in-progress")}function dslc_generate_filters(){dslcDebug&&console.log("dslc_generate_filters");var e,s=[],d='<span data-origin="">ALL</span>',o=jQuery(".dslca-section:visible .dslca-origin");o.each(function(){e=jQuery(this),-1==jQuery.inArray(e.data("origin"),s)&&(s.push(e.data("origin")),d+='<span data-origin="'+e.data("origin")+'">'+e.data("origin").replace("_"," ")+"</span>")}),jQuery(".dslca-section:visible .dslca-section-title-filter-options").html(d).css("background",jQuery(".dslca-section:visible").data("bg"))}function dslc_filter_origin(e,s){dslcDebug&&console.log("dslc_filter_origin"),jQuery(".dslca-origin",s).hide(),jQuery('.dslca-origin[data-origin="'+e+'"]',s).show(),""==e&&jQuery(".dslca-origin",s).show(),dslc_scroller_init()}function dslc_drag_and_drop(){dslcDebug&&console.log("dslc_drag_and_drop");var e,s,d;jQuery(".dslca-modules .dslca-module").draggable({scroll:!1,appendTo:"body",helper:"clone",cursor:"default",cursorAt:{top:50,left:30},containment:"body",start:function(){jQuery("body").removeClass("dslca-new-module-drag-not-in-progress").addClass("dslca-new-module-drag-in-progress"),jQuery("#dslc-header").addClass("dslca-header-low-z-index")},stop:function(){jQuery("body").removeClass("dslca-new-module-drag-in-progress").addClass("dslca-new-module-drag-not-in-progress"),jQuery("#dslc-header").removeClass("dslca-header-low-z-index")}}),jQuery(".dslc-content").sortable({items:".dslc-modules-section",handle:'.dslca-move-modules-section-hook:not(".dslca-action-disabled")',placeholder:"dslca-modules-section-placeholder",tolerance:"pointer",cursorAt:{bottom:10},axis:"y",scroll:!0,scrollSensitivity:200,scrollSpeed:10,sort:function(){jQuery(this).removeClass("ui-state-default")},update:function(){dslc_generate_code(),dslc_show_publish_button()},start:function(e,s){jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress"),s.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+DSLCString.str_row_helper_text+"</span></span>"),jQuery(".dslc-content").sortable("refreshPositions")},stop:function(){jQuery("body").removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress"),jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop"),jQuery(".dslc-modules-section").css({overflow:"visible","max-height":"none"})}}),jQuery(".dslc-modules-section-inner").sortable({connectWith:".dslc-modules-section-inner",items:".dslc-modules-area",handle:'.dslca-move-modules-area-hook:not(".dslca-action-disabled")',placeholder:"dslca-modules-area-placeholder",cursorAt:{top:0,left:0},tolerance:"intersect",scroll:!0,scrollSensitivity:100,scrollSpeed:15,sort:function(){jQuery(this).removeClass("ui-state-default")},over:function(e,s){var d=s.placeholder.closest(".dslc-modules-section");jQuery(d).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty"),d.siblings(".dslc-modules-section").each(function(){jQuery(".dslc-modules-area:not(.ui-sortable-helper)",jQuery(this)).length?jQuery(this).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty"):jQuery(this).removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty")})},update:function(){dslc_generate_code(),dslc_show_publish_button()},start:function(e,s){s.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+DSLCString.str_area_helper_text+"</span></span>"),jQuery(s.item).hasClass("dslc-12-col")?s.placeholder.width(s.item.width()).css({margin:0}):s.placeholder.width(s.item.width()-10),jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress dslca-modules-area-drag-in-progress"),jQuery(".dslc-modules-section-inner").sortable("refreshPositions")},stop:function(){jQuery("body").removeClass("dslca-drag-in-progress dslca-modules-area-drag-in-progress").addClass("dslca-drag-not-in-progress"),jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop")},change:function(){}}),jQuery(".dslc-modules-section").droppable({drop:function(e,s){var d=jQuery(this).find(".dslc-modules-section-inner"),o=s.draggable.data("id");"DSLC_M_A"==o&&dslc_modules_area_add(d)}}),jQuery(".dslc-modules-area").droppable({activeClass:"dslca-ui-state-default",hoverClass:"dslca-ui-state-hover",accept:":not(.ui-sortable-helper)",drop:function(o,l){if(e=jQuery(this),s=l.draggable.data("id"),"DSLC_M_A"==s||jQuery("body").hasClass("dslca-module-drop-in-progress")||e.closest("#dslc-header").length||e.closest("#dslc-footer").length);else{jQuery("body").addClass("dslca-anim-in-progress dslca-module-drop-in-progress"),e.hasClass("dslc-modules-area-not-empty")&&e.animate({paddingBottom:50},150),dslc_module_output_default(s,function(s){d=s.output,jQuery(".dslca-module-loading-inner",e).stop().animate({width:"100%"},300,"linear",function(){e.css({paddingBottom:0}),jQuery(".dslca-module-loading",e).hide();var s=jQuery(d).appendTo(e);s.css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s"}),setTimeout(function(){dslc_init_square(),dslc_center(),dslc_masonry(s),jQuery("body").removeClass("dslca-anim-in-progress dslca-module-drop-in-progress")},700),jQuery(".dslca-no-content-primary",e).css({opacity:1}),jQuery(".dslca-modules-area-manage",e).css({visibility:"visible"}),jQuery(".dslca-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"}),dslc_carousel(),dslc_tabs(),dslc_init_accordion(),dslc_init_square(),dslc_center(),dslc_generate_code(),dslc_show_publish_button()})}),jQuery(".dslca-module-loading",e).show(),jQuery(".dslca-no-content-primary",e).css({opacity:0}),jQuery(".dslca-modules-area-manage",e).css({visibility:"hidden"});var t=100*Math.floor(51*Math.random()+50);jQuery(".dslca-module-loading-inner",e).css({width:0}).animate({width:"100%"},t,"linear")}}}).sortable({connectWith:".dslc-modules-area",items:".dslc-module-front",handle:'.dslca-move-module-hook:not(".dslca-action-disabled")',placeholder:"dslca-module-placeholder",cursorAt:{top:50,left:30},tolerance:"pointer",scroll:!0,scrollSensitivity:100,scrollSpeed:15,start:function(e,s){s.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+s.item.find(".dslc-sortable-helper-icon").data("title")+"</span></span>"),jQuery(s.item).hasClass("dslc-12-col")?s.placeholder.width(s.item.width()).css({margin:0}):s.placeholder.width(s.item.width()-10),jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress"),jQuery(".dslc-module-front",this).length<2&&(jQuery(this).removeClass("dslc-modules-area-not-empty").addClass("dslc-modules-area-empty"),jQuery(".dslca-no-content:not(:visible)",this).show().css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",padding:0}).animate({padding:"35px 0"},300,function(){})),jQuery(".dslc-modules-area").sortable("refreshPositions")},sort:function(){jQuery(this).removeClass("ui-state-default")},update:function(){dslc_show_publish_button()},stop:function(e,s){dslc_generate_code(),jQuery("body").removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress"),jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop"),s.item.trigger("mouseleave")},change:function(){}})}function dslc_option_changed(){dslc_show_publish_button()}function dslc_module_dragdrop_init(){dslc_drag_and_drop()}function dslc_scroller_init(){dslcDebug&&console.log("dslc_scroller_init");var e=jQuery(".dslca-section-scroller");e.length&&e.each(function(){{var e,s=jQuery(this),d=jQuery(".dslca-section-scroller-inner",s),o=d.position(),l=jQuery(".dslca-section-scroller-content",s),t=jQuery(".dslca-scroller-item:visible",s),a=0,i=s.width()+-1*o.left;l.width()}jQuery(".dslca-section-scroller-item-last",s).removeClass("dslca-section-scroller-item-last"),t.each(function(){e=jQuery(this),a+=e.outerWidth(),a>i&&jQuery(".dslca-section-scroller-item-last",s).length<1&&(e.addClass("dslca-section-scroller-item-last"),s.data("current",e.prev(".dslca-scroller-item:visible").index()))})})}function dslc_scroller_go_to(e,s){dslcDebug&&console.log("dslc_scroller_go_to");var d=jQuery(".dslca-section-scroller-inner",s),o=jQuery(".dslca-section-scroller-content",s),l=(jQuery(".dslca-scroller-item",s),jQuery(".dslca-scroller-item:eq("+e+")",s));if(l.length){var t=s.width(),a=(o.width(),l.position()),i=t-(a.left+l.outerWidth());0>i?(s.data("current",e),d.css({left:i})):d.css({left:0})}}function dslc_scroller_prev(e){dslcDebug&&console.log("dslc_scroller_prev");var s=e.data("current"),d=e.find(".dslca-scroller-item:eq("+s+")").prevAll(".dslca-scroller-item:visible").eq(1).index(),o=e.find(".dslca-scroller-item:eq("+s+")").prevAll(".dslca-scroller-item:visible").eq(0).index();-1!==d?dslc_scroller_go_to(d,e):-1!==o&&dslc_scroller_go_to(o,e)}function dslc_scroller_next(e){dslcDebug&&console.log("dslc_scroller_next");var s=e.data("current"),d=e.find(".dslca-scroller-item:eq("+s+")").nextAll(".dslca-scroller-item:visible").eq(1).index(),o=e.find(".dslca-scroller-item:eq("+s+")").nextAll(".dslca-scroller-item:visible").eq(0).index();-1!==d?dslc_scroller_go_to(d,e):-1!==o&&dslc_scroller_go_to(o,e)}function dslc_ui_animations(){dslcDebug&&console.log("dslc_ui_animations"),jQuery(document).on("mouseenter",".dslca-modules-area-manage",function(){jQuery(this).closest(".dslc-modules-area").addClass("dslca-options-hovered"),dslca_draggable_calc_center(jQuery(this).closest(".dslc-modules-area"))}).on("mouseleave",".dslca-modules-area-manage",function(){jQuery(this).closest(".dslc-modules-area").removeClass("dslca-options-hovered")}),jQuery(document).on("mouseenter",".dslca-drag-not-in-progress .dslc-module-front",function(){jQuery("body").hasClass("dslca-composer-hidden")||(jQuery(this).height()<190?jQuery(".dslca-module-manage",this).addClass("dslca-horizontal"):jQuery(".dslca-module-manage",this).removeClass("dslca-horizontal"))}).on("mouseleave",".dslca-drag-not-in-progress .dslc-module-front",function(){jQuery("body").hasClass("dslca-composer-hidden")||jQuery(this).find(".dslca-change-width-module-options").hide(),jQuery(this).find(".dslca-module-manage").removeClass("dslca-module-manage-change-width-active")}),jQuery(document).on("mouseenter",".dslca-drag-not-in-progress .dslc-modules-area",function(){jQuery(this);jQuery("body").hasClass("dslca-composer-hidden")||(jQuery("#dslc-header").addClass("dslca-header-low-z-index"),jQuery(this).height()<130?jQuery(".dslca-modules-area-manage",this).addClass("dslca-horizontal"):jQuery(".dslca-modules-area-manage",this).removeClass("dslca-horizontal"))}).on("mouseleave",".dslca-drag-not-in-progress .dslc-modules-area",function(){jQuery(this);jQuery("body").hasClass("dslca-composer-hidden")||jQuery("#dslc-header").removeClass("dslca-header-low-z-index")})}function dslc_show_modal(e,s){dslcDebug&&console.log("dslc_show_modal"),dslc_hide_modal("",jQuery(".dslca-modal:visible"));var s=jQuery(s),d=jQuery(e).position(),o=s.outerWidth()/2-e.outerWidth()/2,l=d.left-o;s.css({left:l}).show(),s.css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s"}).fadeIn(600)}function dslc_hide_modal(e,s){dslcDebug&&console.log("dslc_hide_modal");var s=jQuery(s);s.css({"-webkit-animation-name":"dslcBounceOut","-moz-animation-name":"dslcBounceOut","animation-name":"dslcBounceOut","animation-duration":"0.6s","-webkit-animation-duration":"0.6s"}).fadeOut(600)}function dslc_js_confirm(e,s,d){dslcDebug&&console.log("dslc_js_confirm"),jQuery(".dslca-prompt-modal").addClass("dslca-prompt-modal-active"),jQuery(".dslca-prompt-modal").data("id",e),jQuery(".dslca-prompt-modal").data("target",d),jQuery(".dslca-prompt-modal-msg").html(s),jQuery(".dslca-prompt-modal").css({opacity:0}).show().animate({opacity:1},400),jQuery(".dslca-prompt-modal-content").css({top:"55%"}).animate({top:"50%"},400)}function dslc_js_confirm_close(){dslcDebug&&console.log("dslc_js_confirm_close"),jQuery(".dslca-prompt-modal").removeClass("dslca-prompt-modal-active"),jQuery(".dslca-prompt-modal").animate({opacity:0},400,function(){jQuery(this).hide(),jQuery(".dslca-prompt-modal-cancel-hook").show(),jQuery(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>'+DSLCString.str_confirm)}),jQuery(".dslca-prompt-modal-content").animate({top:"55%"},400)}function dslc_row_add(e){dslcDebug&&console.log("dslc_row_add"),e="undefined"!=typeof e?e:!1,jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-modules-section",dslc:"active"},function(s){jQuery(s.output).appendTo("#dslc-main"),dslc_drag_and_drop(),dslc_generate_code(),dslc_show_publish_button(),e&&e()})}function dslc_row_delete(e){dslcDebug&&console.log("dslc_row_delete"),e.find(".dslca-module-being-edited")&&(jQuery(".dslca-header .dslca-options-filter-hook").hide(),jQuery(".dslca-module-edit-actions").hide(),jQuery(".dslca-header .dslca-go-to-section-hook").show(),dslc_show_section(".dslca-modules")),e.trigger("mouseleave").remove(),dslc_generate_code(),dslc_show_publish_button()}function dslc_row_edit(e){dslcDebug&&console.log("dslc_row_edit");jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),jQuery(".dslca-modules-section-being-edited").removeClass("dslca-modules-section-being-edited").removeClass("dslca-modules-section-change-made"),e.addClass("dslca-modules-section-being-edited"),jQuery(".dslca-header .dslca-go-to-section-hook").hide(),jQuery('.dslca-row-options-filter-hook[data-section="styling"], .dslca-row-options-filter-hook[data-section="responsive"]').show(),jQuery('.dslca-row-options-filter-hook[data-section="styling"]').trigger("click"),jQuery(".dslca-header .dslca-options-filter-hook").hide(),jQuery(".dslca-module-edit-actions").hide(),jQuery(".dslca-row-edit-actions").show(),jQuery(".dslca-modules-section-edit-field").each(function(){if("border-top"==jQuery(this).data("id"))jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]').val().indexOf("top")>=0?(jQuery(this).prop("checked",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty"));else if("border-right"==jQuery(this).data("id"))jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]').val().indexOf("right")>=0?(jQuery(this).prop("checked",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty"));else if("border-bottom"==jQuery(this).data("id"))jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]').val().indexOf("bottom")>=0?(jQuery(this).prop("checked",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty"));else if("border-left"==jQuery(this).data("id"))jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]').val().indexOf("left")>=0?(jQuery(this).prop("checked",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty"));else if(jQuery(this).hasClass("dslca-modules-section-edit-field-checkbox"))jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="'+jQuery(this).data("id")+'"]').val().indexOf(jQuery(this).data("val"))>=0?(jQuery(this).prop("checked",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty"));else if(jQuery(this).val(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="'+jQuery(this).data("id")+'"]').val()),jQuery(this).hasClass("dslca-modules-section-edit-field-colorpicker")){var e=jQuery(this);jQuery(this).closest(".dslca-modules-section-edit-option").find(".sp-preview-inner").removeClass("sp-clear-display").css({"background-color":e.val()})}}),jQuery(".dslca-modules-section-edit-field-upload").each(function(){var e=jQuery(this).closest(".dslca-modules-section-edit-option");jQuery(this).val()&&"disabled"!==jQuery(this).val()?(jQuery(".dslca-modules-section-edit-field-image-add-hook",e).hide(),jQuery(".dslca-modules-section-edit-field-image-remove-hook",e).show()):(jQuery(".dslca-modules-section-edit-field-image-remove-hook",e).hide(),jQuery(".dslca-modules-section-edit-field-image-add-hook",e).show())}),dslc_row_edit_slider_init(),dslc_show_section(".dslca-modules-section-edit"),jQuery(".dslca-save-composer-hook").css({visibility:"hidden"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"hidden"})}function dslc_row_edit_colorpicker_init(){dslcDebug&&console.log("dslc_row_edit_colorpicker_init");var e,s,d,o,l,t,a,i,c,n,r=[];if(r[0]=[],r[1]=[],r[2]=[],r[3]=[],void 0==localStorage.dslcColorpickerPalleteStorage);else for(c=JSON.parse(localStorage.dslcColorpickerPalleteStorage),n=0;n<c.length;n++){var u=Math.floor(n/3);4>u&&r[u].push(c[n])}jQuery(".dslca-modules-section-edit-field-colorpicker").each(function(){i=jQuery(this).val(),jQuery(this).spectrum({color:i,showInput:!0,allowEmpty:!0,showAlpha:!0,clickoutFiresChange:!0,cancelText:"",chooseText:"",preferredFormat:"rgb",showPalette:!0,palette:r,move:function(i){e=jQuery(this),s=e.data("id"),o=null==i?"transparent":i.toRgbString(),l=e.data("css-rule"),d=jQuery(".dslca-modules-section-being-edited"),a=d,t=jQuery('.dslca-modules-section-settings input[data-id="'+s+'"]',d),d.addClass("dslca-modules-section-change-made"),e.data("css-element")&&(a=jQuery(e.data("css-element"),d)),a.css(l,o),t.val(o)},change:function(d){if(e=jQuery(this),s=e.data("id"),o=null==d?"transparent":d.toRgbString(),void 0==localStorage.dslcColorpickerPalleteStorage){var l=[o];localStorage.dslcColorpickerPalleteStorage=JSON.stringify(l)}else{var l=JSON.parse(localStorage.dslcColorpickerPalleteStorage);-1==l.indexOf(o)&&l.unshift(o),localStorage.dslcColorpickerPalleteStorage=JSON.stringify(l)}},show:function(){jQuery("body").addClass("dslca-disable-selection"),jQuery(this).spectrum("set",jQuery(this).val())},hide:function(){jQuery("body").removeClass("dslca-disable-selection")}})})}function dslc_row_edit_slider_init(){dslcDebug&&console.log("dslc_row_edit_slider_init"),jQuery(".dslca-modules-section-edit-field-slider").each(function(){var e,s,d,o,l,t,a,i,c,n,r,u="",m=0,h=300,p=1;e=jQuery(this),s=e.siblings(".dslca-modules-section-edit-field"),t=e.siblings(".dslca-modules-section-edit-field-slider-tooltip"),e.data("min")&&(m=e.data("min")),e.data("max")&&(h=e.data("max")),e.data("incr")&&(p=e.data("incr")),e.data("ext")&&(u=e.data("ext")),e.slider({min:m,max:h,step:p,value:s.val(),slide:function(m,h){d=h.value+u,s.val(d),l=jQuery(".dslca-modules-section-being-edited"),s.data("css-element")&&(l=jQuery(s.data("css-element"),l)),o=s.data("css-rule").replace(/ /g,""),r=o.split(",");for(var p=0;p<r.length;p++)jQuery(l).css(r[p],d);c=jQuery(".dslca-modules-section-being-edited"),n=s.data("id"),jQuery('.dslca-modules-section-settings input[data-id="'+n+'"]',c).val(h.value),c.addClass("dslca-modules-section-change-made"),t.text(d),i=e.find(".ui-slider-handle"),a=i[0].style.left,t.css({left:a})},stop:function(){t.hide();var e=jQuery(window).scrollTop();dslc_masonry(),jQuery(window).scrollTop(e)},start:function(s,o){d=o.value,t.show(),t.text(d),i=e.find(".ui-slider-handle"),a=i[0].style.left,t.css({left:a})}})})}function dslc_row_edit_scrollbar_init(){dslcDebug&&console.log("dslc_row_edit_scrollbar_init");var e=0;jQuery(".dslca-modules-section-edit-option").each(function(){e+=jQuery(this).outerWidth(!0)+1}),jQuery(".dslca-modules-section-edit-options-wrapper").width(e>jQuery(".dslca-modules-section-edit-options").width()?e:"auto"),jQuery("body").hasClass("rtl")||(jQuery(".dslca-modules-section-edit-options-inner").data("jsp")&&jQuery(".dslca-modules-section-edit-options-inner").data("jsp").destroy(),jQuery(".dslca-modules-section-edit-options-inner").jScrollPane())}function dslc_row_edit_cancel(e){dslcDebug&&console.log("dslc_row_cancel_changes"),e="undefined"!=typeof e?e:!1,jQuery(".dslca-modules-section-being-edited .dslca-modules-section-settings input").each(function(){jQuery(this).val(jQuery(this).data("def")),jQuery('.dslca-modules-section-edit-field[data-id="'+jQuery(this).data("id")+'"]').val(jQuery(this).data("def")).trigger("change")}),dslc_show_section(".dslca-modules"),jQuery(".dslca-row-edit-actions").hide(),jQuery(".dslca-row-options-filter-hook").hide(),jQuery(".dslca-header .dslca-go-to-section-hook").show(),jQuery(".dslca-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"}),jQuery(".dslca-modules-section-being-edited").removeClass("dslca-modules-section-being-edited dslca-modules-section-change-made"),e&&e(),jQuery(".dslca-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"})}function dslc_row_edit_confirm(e){dslcDebug&&console.log("dslc_confirm_row_changes"),e="undefined"!=typeof e?e:!1,jQuery(".dslca-modules-section-being-edited .dslca-modules-section-settings input").each(function(){jQuery(this).data("def",jQuery(this).val())}),dslc_show_section(".dslca-modules"),jQuery(".dslca-row-edit-actions").hide(),jQuery(".dslca-row-options-filter-hook").hide(),jQuery(".dslca-header .dslca-go-to-section-hook").show(),jQuery(".dslca-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"}),jQuery(".dslca-modules-section-being-edited").removeClass("dslca-modules-section-being-edited dslca-modules-section-change-made"),dslc_generate_code(),dslc_show_publish_button(),e&&e(),jQuery(".dslca-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"})}function dslc_row_copy(e){dslcDebug&&console.log("dslc_row_copy");var s,d,o;d=e.clone().appendTo("#dslc-main"),d.find(".dslc-modules-area").each(function(){var s=jQuery(this).index();jQuery(this).data("size",e.find(".dslc-modules-area:eq( "+s+" )").data("size"))}),d.find(".dslc-module-front").css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).each(function(){o=jQuery(this),jQuery.ajax({type:"POST",method:"POST",url:DSLCAjax.ajaxurl,data:{action:"dslc-ajax-get-new-module-id"},async:!1}).done(function(e){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),s=e.output,o.data("module-id",s).attr("id","dslc-module-"+s).addClass("dslca-module-being-edited"),dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited").animate({opacity:1},300)})})}),dslc_drag_and_drop(),dslc_generate_code(),dslc_show_publish_button()}function dslc_row_import(e){dslcDebug&&console.log("dslc_row_import"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-import-modules-section",dslc:"active",dslc_modules_section_code:e},function(e){dslc_js_confirm_close(),jQuery("#dslc-main").append(e.output),dslc_bg_video(),dslc_carousel(),dslc_masonry(jQuery("#dslc-main").find(".dslc-modules-section:last-child")),dslc_drag_and_drop(),dslc_show_publish_button(),dslc_generate_code()})}function dslc_add_modules_section(){dslc_row_add()}function dslc_delete_modules_section(e){dslc_row_delete(e)}function dslc_edit_modules_section(e){dslc_row_edit(e)}function dslc_edit_modules_section_colorpicker(){dslc_row_edit_colorpicker_init()}function dslc_edit_modules_section_slider(){dslc_row_edit_slider_init()}function dslc_edit_modules_section_scroller(){dslc_row_edit_scrollbar_init()}function dslc_copy_modules_section(e){dslc_row_copy(e)}function dslc_import_modules_section(e){dslc_row_import(e)}function dslc_modules_area_add(e){dslcDebug&&console.log("dslc_add_modules_area"),jQuery("body").addClass("dslca-anim-in-progress"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-modules-area",dslc:"active"},function(s){jQuery(".dslca-modules-area-loading .dslca-module-loading-inner",e.closest(".dslc-modules-section")).stop().animate({width:"100%"},200,"linear",function(){e.css({paddingBottom:0}),jQuery(this).closest(".dslca-modules-area-loading").hide()}),setTimeout(function(){jQuery(s.output).appendTo(e).css({height:0}).animate({height:99},300,function(){jQuery(this).css({height:"auto"})}).addClass("dslca-init-animation"),dslc_drag_and_drop(),dslc_generate_code(),dslc_show_publish_button(),jQuery("body").removeClass("dslca-anim-in-progress")},250)});var s=100*Math.floor(51*Math.random()+50);e.animate({paddingBottom:50},150),jQuery(".dslca-modules-area-loading",e.closest(".dslc-modules-section")).show(),jQuery(".dslca-modules-area-loading .dslca-module-loading-inner",e.closest(".dslc-modules-section")).css({width:0}).animate({width:"100%"},s,"linear")}function dslc_modules_area_delete(e){dslcDebug&&console.log("dslc_delete_modules_area");var s=e.closest(".dslc-modules-section").find(".dslc-modules-section-inner"),d=!1;e.addClass("dslca-modules-area-being-deleted"),s.find(".dslc-modules-area").length<2&&(d=!0),e.find(".dslca-module-being-edited").length&&(jQuery(".dslca-header .dslca-options-filter-hook").hide(),jQuery(".dslca-module-edit-actions").hide(),jQuery(".dslca-header .dslca-go-to-section-hook").show(),dslc_show_section(".dslca-modules")),setTimeout(function(){e.remove(),dslc_generate_code(),dslc_show_publish_button(),d&&dslc_modules_area_add(s)},900),e.css({"-webkit-animation-name":"dslcBounceOut","-moz-animation-name":"dslcBounceOut","animation-name":"dslcBounceOut","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",overflow:"hidden"}).animate({opacity:0},600).animate({height:0,marginBottom:0},300,function(){e.remove(),dslc_generate_code(),dslc_show_publish_button()})}function dslc_modules_area_copy(e){dslcDebug&&console.log("dslc_copy_modules_area");var s,d=e.closest(".dslc-modules-section").find(".dslc-modules-section-inner"),o=e.clone().appendTo(d);o.find(".dslca-modules-area-manage").trigger("mouseleave"),o.data("size",e.data("size")).find(".dslc-module-front").css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).each(function(){var e=jQuery(this);jQuery.ajax({type:"POST",method:"POST",url:DSLCAjax.ajaxurl,data:{action:"dslc-ajax-get-new-module-id"},async:!1}).done(function(d){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),s=d.output,e.data("module-id",s).attr("id","dslc-module-"+s).addClass("dslca-module-being-edited"),dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited").animate({opacity:1},300)})})}),dslc_drag_and_drop(),dslc_generate_code(),dslc_show_publish_button()}function dslc_modules_area_width_set(e,s){dslcDebug&&console.log("dslc_modules_area_width_set");var d="dslc-"+s+"-col";e.removeClass("dslc-1-col dslc-2-col dslc-3-col dslc-4-col dslc-5-col dslc-6-col dslc-7-col dslc-8-col dslc-9-col dslc-10-col dslc-11-col dslc-12-col").addClass(d).data("size",s),dslc_init_square(),dslc_center(),dslc_generate_code(),dslc_show_publish_button(),dslc_masonry()}function dslc_add_modules_area(e){dslc_modules_area_add(e)}function dslc_delete_modules_area(e){dslc_modules_area_delete(e)}function dslc_copy_modules_area(e){dslc_modules_area_copy(e)}function dslc_module_delete(e){dslcDebug&&console.log("dslc_delete_module"),e.addClass("dslca-module-being-deleted"),e.hasClass("dslca-module-being-edited")&&dslc_show_section(".dslca-modules"),setTimeout(function(){e.remove(),dslc_generate_code(),dslc_show_publish_button()},1e3),e.css({"-webkit-animation-name":"dslcBounceOut2","-moz-animation-name":"dslcBounceOut2","animation-name":"dslcBounceOut2","animation-duration":"0.6s","-webkit-animation-duration":"0.6s"}).animate({opacity:0},500,function(){e.css({marginBottom:0}).animate({height:0},400,"easeOutQuart")})}function dslc_module_copy(e){dslcDebug&&console.log("dslc_copy_module");var s;jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-get-new-module-id"},function(d){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),s=d.output,e.clone().appendTo(e.closest(".dslc-modules-area")).css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).data("module-id",s).attr("id","dslc-module-"+s).addClass("dslca-module-being-edited"),dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited").css({opacity:0}).removeClass("dslca-module-being-edited").animate({opacity:1},300)
|
2 |
-
})})}function dslc_module_width_set(e,s){dslcDebug&&console.log("dslc_module_width_set");var d="dslc-"+s+"-col";e.removeClass("dslc-1-col dslc-2-col dslc-3-col dslc-4-col dslc-5-col dslc-6-col dslc-7-col dslc-8-col dslc-9-col dslc-10-col dslc-11-col dslc-12-col").addClass(d).data("dslc-module-size",s).addClass("dslca-module-being-edited"),jQuery('.dslca-module-option-front[data-id="dslc_m_size"]',e).val(s),dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited")})}function dslc_module_options_show(e){dslcDebug&&console.log("dslc_module_options_show");var s=jQuery(".dslca-module-being-edited"),d=jQuery(".dslca-module-options-front textarea",s),o=jQuery(".dslca-header").data("default-section"),l={};l.action="dslc-ajax-display-module-options",l.dslc="active",l.dslc_module_id=e,l.dslc_post_id=jQuery(".dslca-container").data("data-post-id"),d.each(function(){var e=jQuery(this),s=e.data("id"),d=e.val();l[s]=d}),jQuery(".dslca-wp-editor-actions").hide(),jQuery(".dslca-wp-editor-notification").show(),jQuery.post(DSLCAjax.ajaxurl,l,function(e){jQuery(".dslca-save-composer-hook").css({visibility:"hidden"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"hidden"}),dslc_show_section(".dslca-module-edit"),jQuery("body").hasClass("rtl")?jQuery(".dslca-module-edit-options-inner").html(e.output):jQuery(".dslca-module-edit-options-inner .jspPane").html(e.output),jQuery(".dslca-module-edit-options-tabs").html(e.output_tabs),jQuery(".dslca-header .dslca-options-filter-hook").show(),jQuery('.dslca-module-edit-option[data-section="'+o+'"]').length?(jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+o+'"]').show(),jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+o+'"]').trigger("click")):(jQuery(".dslca-header .dslca-options-filter-hook:first").hide(),jQuery(".dslca-header .dslca-options-filter-hook:first").next(".dslca-options-filter-hook").trigger("click")),jQuery(".dslca-module-edit-actions").show(),jQuery(".dslca-wp-editor-notification").hide(),jQuery(".dslca-wp-editor-actions").show(),jQuery(".dslca-header .dslca-go-to-section-hook").hide(),jQuery(".dslca-row-edit-actions").hide(),dslc_module_options_color(),dslc_modules_options_box_shadow_color(),dslc_modules_options_text_shadow_color(),dslc_module_options_numeric();var s=jQuery(".dslca-module-options-front",".dslca-module-being-edited").children().clone();jQuery(".dslca-module-options-front-backup").html("").append(s)})}function dslc_module_options_scrollbar(){dslcDebug&&console.log("dslc_module_options_scrollbar");var e=0;if(jQuery(".dslca-module-edit-option:visible").each(function(){e+=jQuery(this).outerWidth(!0)+1}),jQuery(".dslca-module-edit-options-wrapper").width(e>jQuery(".dslca-module-edit-options").width()?e:"auto"),!jQuery("body").hasClass("rtl")&&jQuery(".dslca-module-edit-options-inner").data("jsp")){var s=jQuery(".dslca-module-edit-options-inner").data("jsp");s.reinitialise()}}function dslc_module_options_section_filter(e){dslcDebug&&console.log("dslc_module_options_section_filter"),jQuery(".dslca-module-edit-option").hide(),jQuery('.dslca-module-edit-option[data-section="'+e+'"]').show(),dslc_module_options_tab_filter()}function dslc_module_options_tab_filter(e){dslcDebug&&console.log("dslc_module_options_tab_filter");var s=jQuery(".dslca-options-filter-hook.dslca-active").data("section");e="undefined"!=typeof e?e:jQuery('.dslca-module-edit-options-tab-hook[data-section="'+s+'"]:first');var d=e.data("id");jQuery(".dslca-module-edit-options-tab-hook").removeClass("dslca-active"),e.addClass("dslca-active"),jQuery(".dslca-module-edit-options-tabs").show(),jQuery(".dslca-module-edit-options-tab-hook").hide(),jQuery('.dslca-module-edit-options-tab-hook[data-section="'+s+'"]').show(),d&&(jQuery(".dslca-module-edit-option").hide(),jQuery('.dslca-module-edit-option[data-tab="'+d+'"]').show(),dslc_module_options_scrollbar(),dslc_module_options_hideshow_tabs(),jQuery(".dslca-module-edit-options-tab-hook:visible").length<2?jQuery(".dslca-module-edit-options-tabs").hide():jQuery(".dslca-module-edit-options-tabs").show(),d==DSLCString.str_res_tablet+"_responsive"&&(jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet"),jQuery("body").addClass("dslc-res-tablet")),d==DSLCString.str_res_phone+"_responsive"&&(jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet"),jQuery("body").addClass("dslc-res-phone")),(d==DSLCString.str_res_tablet+"_responsive"||d==DSLCString.str_res_phone+"_responsive")&&(jQuery(".dslca-container-loader").show(),dslc_module_output_altered(function(){jQuery(".dslca-container-loader").hide()})))}function dslc_module_options_hideshow_tabs(){dslcDebug&&console.log("dslc_module_options_hideshow_tabs");var e=jQuery(".dslca-options-filter-hook.dslca-active").data("section");if("styling"==e){var s=(jQuery(".dslca-module-edit"),!0),d=!0,o=!0,l=!0,t=!0,a=!0,i=!0,c=!0,n=!0,r=!0,u=!0,m=!0,h=!0,p=!0,_=!0,y=!0,f=!0,g=!0,j=!0,v=!0,Q=!0,b=!0,w=!0,k=!0,C=!0;jQuery('.dslca-module-edit-field[value="main_heading"]').is(":checked")||(s=!1),jQuery('.dslca-module-edit-field[value="filters"]').is(":checked")||(d=!1),jQuery('.dslca-module-edit-field[value="arrows"]').is(":checked")||(o=!1),jQuery('.dslca-module-edit-field[value="circles"]').is(":checked")||(l=!1),"carousel"!=jQuery('.dslca-module-edit-field[data-id="type"]').val()&&(o=!1,l=!1),"disabled"==jQuery('.dslca-module-edit-field[data-id="pagination_type"]').val()&&(t=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="thumbnail"]').is(":checked")||(a=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="title"]').is(":checked")&&(i=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="excerpt"]').is(":checked")||(c=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="meta"]').is(":checked")||(n=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').is(":checked")&&(r=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="categories"]').is(":checked")||(u=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="separator"]').is(":checked")||(h=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="count"]').is(":checked")||(m=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="tags"]').is(":checked")||(p=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="social"]').is(":checked")||(_=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="position"]').is(":checked")||(y=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').is(":checked")&&(f=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').is(":checked")&&(g=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="price"]').is(":checked")||(j=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="price_2"]').is(":checked")||(v=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="addtocart"]').is(":checked")||(Q=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="details"]').is(":checked")||(b=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="quote"]').is(":checked")||(w=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_name"]').is(":checked")||(k=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_position"]').is(":checked")||(C=!1),s?jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').hide(),d?jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').hide(),o?jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').hide(),l?jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').hide(),t?jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').hide(),a?jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').hide(),i?jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').hide(),c?jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').hide(),n?jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').hide(),r?jQuery('.dslca-module-edit-options-tab-hook[data-id="button_styling"], .dslca-module-edit-options-tab-hook[data-id="primary_button_styling"], .dslca-module-edit-options-tab-hook[data-id="secondary_button_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="button_styling"], .dslca-module-edit-options-tab-hook[data-id="primary_button_styling"], .dslca-module-edit-options-tab-hook[data-id="secondary_button_styling"]').hide(),u?jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').hide(),h?jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').hide(),m?jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').hide(),p?jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').hide(),y?jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').hide(),_?jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').hide(),f?jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').hide(),g?jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').hide(),j?jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').hide(),v?jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').hide(),Q||b?jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').hide(),w?jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').hide(),k?jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').hide(),C?jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').hide()}if(jQuery('.dslca-options-filter-hook[data-section="styling"]').hasClass("dslca-active")){if("DSLC_Text_Simple"==jQuery(".dslca-module-being-edited").data("dslc-module-id")||"DSLC_TP_Content"==jQuery(".dslca-module-being-edited").data("dslc-module-id")||"DSLC_Html"==jQuery(".dslca-module-being-edited").data("dslc-module-id")){var x=jQuery('.dslca-module-edit-option[data-id="css_custom"]'),S=x.find("select").val();"enabled"==S?(jQuery('.dslca-module-edit-option[data-section="styling"]').css({visibility:"visible"}),jQuery(".dslca-module-edit-options-tabs").show()):(jQuery('.dslca-module-edit-option[data-section="styling"]').css({visibility:"hidden"}),jQuery(".dslca-module-edit-options-tabs").hide(),x.css({visibility:"visible"}))}}else jQuery(".dslca-module-edit-options-tabs").show();"disabled"==jQuery('select.dslca-module-edit-field[data-id="css_res_t"]').val()?jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css("visibility","hidden"):jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css("visibility","visible"),"disabled"==jQuery('select.dslca-module-edit-field[data-id="css_res_p"]').val()?jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css("visibility","hidden"):jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css("visibility","visible"),jQuery('.dslca-module-edit-option[data-id="css_res_p"], .dslca-module-edit-option[data-id="css_res_t"]').css("visibility","visible")}function dslc_module_options_confirm_changes(e){dslcDebug&&console.log("dslc_module_options_confirm_changes"),e="undefined"!=typeof e?e:!1,jQuery(".dslca-module-being-edited").hasClass("dslc-module-DSLC_Sliders")?jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"):(jQuery("body").addClass("dslca-module-saving-in-progress"),dslc_module_output_altered(function(){dslc_update_preset(),jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),jQuery("body").removeClass("dslca-module-saving-in-progress"),jQuery("body").hasClass("rtl")?jQuery(".dslca-module-edit-options-inner").html(""):jQuery(".dslca-module-edit-options-inner .jspPane").html(""),jQuery(".dslca-module-edit-options-tabs").html(""),e&&e()})),dslc_show_section(".dslca-modules"),jQuery(".dslca-header .dslca-options-filter-hook").hide(),jQuery(".dslca-module-edit-actions").hide(),jQuery(".dslca-header .dslca-go-to-section-hook").show(),jQuery(".dslca-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"})}function dslc_module_options_cancel_changes(e){dslcDebug&&console.log("dslc_module_options_cancel_changes"),e="undefined"!=typeof e?e:!1;var s=jQuery(".dslca-module-being-edited"),d=jQuery(".dslca-module-options-front-backup").children().clone();jQuery(".dslca-module-options-front",s).html("").append(d),dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),jQuery("body").hasClass("rtl")?jQuery(".dslca-module-edit-options-inner").html(""):jQuery(".dslca-module-edit-options-inner .jspPane").html(""),jQuery(".dslca-module-edit-options-tabs").html(""),e&&e()}),dslc_show_section(".dslca-modules"),jQuery(".dslca-header .dslca-options-filter-hook").hide(),jQuery(".dslca-module-edit-actions").hide(),jQuery(".dslca-header .dslca-go-to-section-hook").show(),jQuery(".dslca-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"})}function dslc_module_options_tooltip(){jQuery(document).on("click",".dslca-module-edit-field-ttip-close",function(){jQuery(".dslca-module-edit-field-ttip, .dslca-module-edit-field-icon-ttip").hide()}),jQuery(document).on("click",".dslca-module-edit-field-ttip-hook",function(){var e=jQuery(".dslca-module-edit-field-ttip"),s=e.find(".dslca-module-edit-field-ttip-inner"),d=jQuery(this),o=d.closest(".dslca-module-edit-option").find(".dslca-module-edit-field-ttip-content").html();if(e.is(":visible"))jQuery(".dslca-module-edit-field-ttip").hide();else{s.html(o);var l=d.offset(),t=e.outerHeight(),a=e.outerWidth(),i=l.left-a/2+6,c="50%";0>i&&(c=a/2+i+"px",i=0),jQuery(".dslca-module-edit-field-ttip").show().css({top:l.top-t-20,left:i}),jQuery("head").append(jQuery("<style>.dslca-module-edit-field-ttip:after, .dslca-module-edit-field-ttip:before { left: "+c+" }</style>"))}}),jQuery(document).on("click",".dslca-module-edit-field-icon-ttip-hook",function(){var e=jQuery(".dslca-module-edit-field-icon-ttip"),s=jQuery(this);if(e.is(":visible"))jQuery(".dslca-module-edit-field-icon-ttip").hide();else{var d=s.offset(),o=e.outerHeight(),l=e.outerWidth(),t=d.left-l/2+6,a="50%";0>t&&(a=l/2+t+"px",t=0),jQuery(".dslca-module-edit-field-icon-ttip").show().css({top:d.top-o-20,left:t}),jQuery("head").append(jQuery("<style>.dslca-module-edit-field-icon-ttip:after, .dslca-module-edit-field-icon-ttip:before { left: "+a+" }</style>"))}})}function dslc_module_options_font(){jQuery(document).on("click",".dslca-module-edit-field-font-next",function(e){if(e.preventDefault(),!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var s=jQuery(this).closest(".dslca-module-edit-option-font"),d=jQuery(".dslca-module-edit-field-font",s),o=dslcAllFontsArray.indexOf(d.val()),l=o+1;jQuery(".dslca-module-edit-field-font-suggest",s).text(""),d.val(dslcAllFontsArray[l]).trigger("change"),jQuery(this).addClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-chevron-right").addClass("dslc-icon-refresh dslc-icon-spin")}}),jQuery(document).on("click",".dslca-module-edit-field-font-prev",function(e){if(e.preventDefault(),!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var s=jQuery(this).closest(".dslca-module-edit-option-font"),d=jQuery(".dslca-module-edit-field-font",s),o=dslcAllFontsArray.indexOf(d.val()),l=o-1;jQuery(".dslca-module-edit-field-font-suggest",s).text(""),0>l&&(l=dslcAllFontsArray.length-1),d.val(dslcAllFontsArray[l]).trigger("change"),jQuery(this).addClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-chevron-left").addClass("dslc-icon-refresh dslc-icon-spin")}}),jQuery(document).on("keyup",".dslca-module-edit-field-font",function(e){var s,d,o,l,t=!1;if(s=jQuery(this),d=s.closest(".dslca-module-edit-option"),38==e.which&&jQuery(".dslca-module-edit-field-font-prev",d).click(),40==e.which&&jQuery(".dslca-module-edit-field-font-next",d).click(),13!=e.which&&38!=e.which&&40!=e.which){o=s.val();var a=new RegExp("^"+o,"i"),i=dslcAllFontsArray.length,c=0;do{if(a.test(dslcAllFontsArray[c])&&!t)var t=dslcAllFontsArray[c];c++}while(i>c);t?(l=t,jQuery(".dslca-module-edit-field-font-suggest",d).show()):(l=o,jQuery(".dslca-module-edit-field-font-suggest",d).hide()),jQuery(".dslca-module-edit-field-font-suggest",d).text(l),l.length&&s.val(l.substring(0,s.val().length))}}),jQuery(document).on("keypress",".dslca-module-edit-field-font",function(e){if(13==e.which){e.preventDefault();var s,d;s=jQuery(this),d=s.closest(".dslca-module-edit-option"),jQuery(this).val(jQuery(".dslca-module-edit-field-font-suggest",d).text()).trigger("change"),jQuery(".dslca-module-edit-field-font-suggest",d).text("")}})}function dslc_module_options_icon(){jQuery(document).on("click",".dslca-module-edit-field-icon-next",function(e){e.preventDefault();var s=jQuery(this).closest(".dslca-module-edit-option-icon"),d=jQuery(".dslca-module-edit-field-icon",s),o=dslcIconsCurrentSet.indexOf(d.val()),l=o+1;jQuery(".dslca-module-edit-field-icon-suggest",s).text(""),d.val(dslcIconsCurrentSet[l]).trigger("change")}),jQuery(document).on("click",".dslca-module-edit-field-icon-prev",function(e){e.preventDefault();var s=jQuery(this).closest(".dslca-module-edit-option-icon"),d=jQuery(".dslca-module-edit-field-icon",s),o=dslcIconsCurrentSet.indexOf(d.val()),l=o-1;jQuery(".dslca-module-edit-field-icon-suggest",s).text(""),0>l&&(l=dslcIconsCurrentSet.length-1),d.val(dslcIconsCurrentSet[l]).trigger("change")}),jQuery(document).on("keyup",".dslca-module-edit-field-icon",function(e){var s,d,o,l,t;s=jQuery(this),d=s.closest(".dslca-module-edit-option"),38==e.which&&jQuery(".dslca-module-edit-field-icon-prev",d).click(),40==e.which&&jQuery(".dslca-module-edit-field-icon-next",d).click(),13!=e.which&&38!=e.which&&40!=e.which&&(o=s.val().toLowerCase(),s.val(o),l=jQuery.grep(dslcIconsCurrentSet,function(e){return 0==e.indexOf(o)}),t=l[0],jQuery(".dslca-module-edit-field-icon-suggest",d).text(t))}),jQuery(document).on("keypress",".dslca-module-edit-field-icon",function(e){if(13==e.which){e.preventDefault();var s,d;s=jQuery(this),d=s.closest(".dslca-module-edit-option"),jQuery(this).val(jQuery(".dslca-module-edit-field-icon-suggest",d).text()).trigger("change"),jQuery(".dslca-module-edit-field-icon-suggest",d).text("")}})}function dslc_module_options_text_align(){jQuery(document).on("click",".dslca-module-edit-option-text-align-hook",function(){var e=jQuery(this),s=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").find(".dslca-module-edit-option-text-align-hook"),d=e.data("val"),o=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").siblings("input.dslca-module-edit-field");s.removeClass("dslca-active"),e.addClass("dslca-active"),o.val(d).trigger("change")})}function dslc_module_options_checkbox(){jQuery(document).on("click",".dslca-module-edit-option-checkbox-hook, .dslca-modules-section-edit-option-checkbox-hook",function(){var e=jQuery(this),s=e.siblings('input[type="checkbox"]');s.prop("checked")?(s.prop("checked",!1),e.find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")):(s.prop("checked",!0),e.find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")),s.change()})}function dslc_module_options_box_shadow(){dslcDebug&&console.log("dslc_module_options_box_shadow"),jQuery(document).on("change",".dslca-module-edit-option-box-shadow-hor, .dslca-module-edit-option-box-shadow-ver, .dslca-module-edit-option-box-shadow-blur, .dslca-module-edit-option-box-shadow-spread, .dslca-module-edit-option-box-shadow-color, .dslca-module-edit-option-box-shadow-inset",function(){var e=jQuery(this).closest(".dslca-module-edit-option"),s=e.find(".dslca-module-edit-field"),d=e.find(".dslca-module-edit-option-box-shadow-hor").val(),o=e.find(".dslca-module-edit-option-box-shadow-ver").val(),l=e.find(".dslca-module-edit-option-box-shadow-blur").val(),t=e.find(".dslca-module-edit-option-box-shadow-spread").val(),a=e.find(".dslca-module-edit-option-box-shadow-color").val(),i=e.find(".dslca-module-edit-option-box-shadow-inset").is(":checked");i=i?" inset":"";var c=d+"px "+o+"px "+l+"px "+t+"px "+a+i;s.val(c).trigger("change")})}function dslc_modules_options_box_shadow_color(){var e,s,d=[];if(d[0]=[],d[1]=[],d[2]=[],d[3]=[],void 0==localStorage.dslcColorpickerPalleteStorage);else for(e=JSON.parse(localStorage.dslcColorpickerPalleteStorage),s=0;s<e.length;s++){var o=Math.floor(s/3);4>o&&d[o].push(e[s])}jQuery(".dslca-module-edit-option-box-shadow-color").each(function(){var e,s,o=jQuery(this),l=o.val();jQuery(this).spectrum({color:l,showInput:!0,allowEmpty:!0,showAlpha:!0,clickoutFiresChange:!0,cancelText:"",chooseText:"",preferredFormat:"rgb",showPalette:!0,palette:d,move:function(d){e=jQuery(this),s=null==d?"transparent":d.toRgbString().replace(/ /g,""),e.val(s).trigger("change")},change:function(d){if(e=jQuery(this),s=null==d?"transparent":d.toRgbString().replace(/ /g,""),e.val(s).trigger("change"),void 0==localStorage.dslcColorpickerPalleteStorage){var o=[s];localStorage.dslcColorpickerPalleteStorage=JSON.stringify(o)}else{var o=JSON.parse(localStorage.dslcColorpickerPalleteStorage);-1==o.indexOf(s)&&o.unshift(s),localStorage.dslcColorpickerPalleteStorage=JSON.stringify(o)}},show:function(){jQuery("body").addClass("dslca-disable-selection")},hide:function(){jQuery("body").removeClass("dslca-disable-selection")}})})}function dslc_module_options_text_shadow(){dslcDebug&&console.log("dslc_module_options_text_shadow"),jQuery(document).on("change",".dslca-module-edit-option-text-shadow-hor, .dslca-module-edit-option-text-shadow-ver, .dslca-module-edit-option-text-shadow-blur, .dslca-module-edit-option-text-shadow-color",function(){var e=jQuery(this).closest(".dslca-module-edit-option"),s=e.find(".dslca-module-edit-field"),d=e.find(".dslca-module-edit-option-text-shadow-hor").val(),o=e.find(".dslca-module-edit-option-text-shadow-ver").val(),l=e.find(".dslca-module-edit-option-text-shadow-blur").val(),t=e.find(".dslca-module-edit-option-text-shadow-color").val(),a=d+"px "+o+"px "+l+"px "+t;s.val(a).trigger("change")})}function dslc_modules_options_text_shadow_color(){jQuery(".dslca-module-edit-option-text-shadow-color").each(function(){var e,s,d=jQuery(this),o=d.val();jQuery(this).spectrum({color:o,showInput:!0,allowEmpty:!0,showAlpha:!0,clickoutFiresChange:!0,cancelText:"",chooseText:"",preferredFormat:"rgb",move:function(d){e=jQuery(this),s=null==d?"transparent":d.toRgbString().replace(/ /g,""),e.val(s).trigger("change")},change:function(d){e=jQuery(this),s=null==d?"transparent":d.toRgbString().replace(/ /g,""),e.val(s).trigger("change")},show:function(){jQuery("body").addClass("dslca-disable-selection")},hide:function(){jQuery("body").removeClass("dslca-disable-selection")}})})}function dslc_module_options_color(){dslcDebug&&console.log("dslc_module_options_color");var e,s,d,o,l,t,a,i,c,n=[];if(n[0]=[],n[1]=[],n[2]=[],n[3]=[],void 0==localStorage.dslcColorpickerPalleteStorage);else for(i=JSON.parse(localStorage.dslcColorpickerPalleteStorage),c=0;c<i.length;c++){var r=Math.floor(c/3);4>r&&n[r].push(i[c])}jQuery(".dslca-module-edit-field-colorpicker").each(function(){a=jQuery(this).val(),jQuery(this).spectrum({color:a,showInput:!0,allowEmpty:!0,showAlpha:!0,clickoutFiresChange:!0,cancelText:"",chooseText:"",preferredFormat:"rgb",showPalette:!0,palette:n,move:function(a){e=jQuery(this),o=null==a?"transparent":a.toRgbString(),e.val(o),s=e.data("affect-on-change-el"),d=e.data("affect-on-change-rule"),jQuery(s,".dslca-module-being-edited").css(d,o),l=jQuery(".dslca-module-being-edited"),t=e.data("id"),jQuery('.dslca-module-option-front[data-id="'+t+'"]',l).val(o),l.addClass("dslca-module-change-made")},change:function(a){if(e=jQuery(this),o=null==a?"transparent":a.toRgbString(),e.val(o),s=e.data("affect-on-change-el"),d=e.data("affect-on-change-rule"),jQuery(s,".dslca-module-being-edited").css(d,o),l=jQuery(".dslca-module-being-edited"),t=e.data("id"),jQuery('.dslca-module-option-front[data-id="'+t+'"]',l).val(o),l.addClass("dslca-module-change-made"),void 0==localStorage.dslcColorpickerPalleteStorage){var i=[o];localStorage.dslcColorpickerPalleteStorage=JSON.stringify(i)}else{var i=JSON.parse(localStorage.dslcColorpickerPalleteStorage);-1==i.indexOf(o)&&i.unshift(o),localStorage.dslcColorpickerPalleteStorage=JSON.stringify(i)}},show:function(){jQuery("body").addClass("dslca-disable-selection")},hide:function(){jQuery("body").removeClass("dslca-disable-selection")}})}),jQuery(".dslca-sp-revert").click(function(){var e=jQuery(".sp-replacer.sp-active").closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("default");jQuery(this).closest(".sp-container").find(".sp-input").val(e).trigger("change")})}function dslc_module_options_numeric(){dslcDebug&&console.log("dslc_module_options_numeric"),jQuery(".dslca-module-edit-field-slider").each(function(){var e,s,d,o,l,t,a,i,c,n,r;e=jQuery(this),s=e.siblings(".dslca-module-edit-field"),t=e.closest(".dslca-module-edit-option-slider").find(".dslca-module-edit-field-slider-tooltip"),e.slider({min:s.data("min"),max:s.data("max"),step:s.data("increment"),value:s.val(),slide:function(u,m){n=s.data("ext"),d=m.value+n,s.val(d),l=s.data("affect-on-change-el"),o=s.data("affect-on-change-rule").replace(/ /g,""),r=o.split(",");for(var h=0;h<r.length;h++)jQuery(l,".dslca-module-being-edited").css(r[h],d);i=jQuery(".dslca-module-being-edited"),c=s.data("id"),jQuery('.dslca-module-option-front[data-id="'+c+'"]',i).val(m.value),i.addClass("dslca-module-change-made"),t.text(d);var p=e.find(".ui-slider-handle");a=p[0].style.left,t.css({left:a}),dslc_masonry(i),dslc_init_square(),dslc_center(),dslc_init_square(i)},stop:function(){t.hide()},start:function(e,s){t.show(),t.text(d),a=s.handle.style.left,t.css({left:a})}})})}function dslc_module_output_default(e,s){dslcDebug&&console.log("dslc_module_output_default"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-module",dslc:"active",dslc_module_id:e,dslc_post_id:jQuery(".dslca-container").data("post-id")},function(e){s(e)})}function dslc_module_output_altered(e){dslcDebug&&console.log("dslc_module_output_altered"),e="undefined"!=typeof e?e:!1;var s=jQuery(".dslca-module-being-edited"),d=s.data("dslc-module-id"),o=jQuery(".dslca-module-options-front textarea",s),l=s.data("module-id"),t={};t.action="dslc-ajax-add-module",t.dslc="active",t.dslc_module_id=d,t.dslc_module_instance_id=l,t.dslc_post_id=jQuery(".dslca-container").data("post-id"),t.dslc_preload_preset=s.hasClass("dslca-preload-preset")?"enabled":"disabled",s.removeClass("dslca-preload-preset"),o.each(function(){var e=jQuery(this),s=e.data("id"),d=e.val();t[s]=d}),jQuery.post(DSLCAjax.ajaxurl,t,function(d){s.after(d.output).next().addClass("dslca-module-being-edited"),s.remove(),dslc_generate_code(),dslc_show_publish_button(),dslc_carousel(),dslc_masonry(jQuery(".dslca-module-being-edited")),jQuery(".dslca-module-being-edited img").load(function(){dslc_masonry(jQuery(".dslca-module-being-edited")),dslc_center()}),dslc_tabs(),dslc_init_accordion(),dslc_init_square(),dslc_center(),e&&e(d)})}function dslc_module_output_reload(e,s){dslcDebug&&console.log("dslc_module_output_reload"),s="undefined"!=typeof s?s:!1;var d=e.data("dslc-module-id"),o=jQuery(".dslca-module-options-front textarea",e),l=e.data("module-id"),t={};t.action="dslc-ajax-add-module",t.dslc="active",t.dslc_module_id=d,t.dslc_module_instance_id=l,t.dslc_post_id=jQuery(".dslca-container").data("post-id"),t.dslc_preload_preset="enabled",e.removeClass("dslca-preload-preset"),o.each(function(){var e=jQuery(this),s=e.data("id"),d=e.val();t[s]=d}),e.append('<div class="dslca-module-reloading"><span class="dslca-icon dslc-icon-spin dslc-icon-refresh"></span></div>'),jQuery.post(DSLCAjax.ajaxurl,t,function(d){e.after(d.output).next().addClass("dslca-module-being-edited"),e.remove(),dslc_generate_code(),dslc_show_publish_button(),dslc_carousel(),dslc_masonry(jQuery(".dslca-module-being-edited")),jQuery(".dslca-module-being-edited img").load(function(){dslc_masonry(jQuery(".dslca-module-being-edited")),dslc_center()}),dslc_tabs(),dslc_init_accordion(),dslc_init_square(),dslc_center(),s&&s(d),jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited")})}function dslc_delete_module(e){dslc_module_delete(e)}function dslc_copy_module(e){dslc_module_copy(e)}function dslc_display_module_options(e){dslc_module_options_show(e)}function dslc_filter_module_options(e){dslc_module_options_section_filter(e)}function dslc_show_module_options_tab(e){dslc_module_options_tab_filter(e)}function dslc_confirm_changes(e){dslc_module_options_confirm_changes(e)}function dslc_cancel_changes(e){dslc_module_options_cancel_changes(e)}function dslc_init_colorpicker(){dslc_module_options_color()}function dslc_init_options_slider(){dslc_module_options_numeric()}function dslc_init_options_scrollbar(){dslc_module_options_scrollbar()}function dslc_module_edit_options_hideshow_tabs(){dslc_module_options_hideshow_tabs()}function dslc_get_module_output(e,s){dslc_module_output_default(e,s)}function dslc_preview_change(e){dslc_module_output_altered(e)}function dslc_reload_module(e,s){dslc_module_output_reload(e,s)}function dslc_template_load(e){dslcDebug&&console.log("dslc_load_template");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-load-template",dslc:"active",dslc_template_id:e},function(e){jQuery("#dslc-main").html(e.output),dslc_carousel(),dslc_drag_and_drop(),dslc_show_publish_button(),dslc_generate_code()
|
3 |
-
})}function dslc_template_import(){dslcDebug&&console.log("dslc_import_template");jQuery(".dslca-modal-templates-import .dslca-modal-title").css({opacity:0}),jQuery(".dslca-modal-templates-import .dslca-loading").show(),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-import-template",dslc:"active",dslc_template_code:jQuery("#dslca-import-code").val()},function(e){jQuery("#dslc-main").html(e.output),jQuery(".dslca-modal-templates-import .dslca-loading").hide(),jQuery(".dslca-modal-templates-import .dslca-modal-title").css({opacity:1}),dslc_hide_modal("",".dslca-modal-templates-import"),dslc_bg_video(),dslc_center(),dslc_drag_and_drop(),dslc_show_publish_button(),dslc_generate_code()})}function dslc_template_save(){dslcDebug&&console.log("dslc_save_template"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-template",dslc:"active",dslc_template_code:jQuery("#dslca-code").val(),dslc_template_title:jQuery("#dslca-save-template-title").val()},function(){dslc_hide_modal("",".dslca-modal-templates-save")})}function dslc_template_delete(e){dslcDebug&&console.log("dslc_delete_template"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-delete-template",dslc:"active",dslc_template_id:e},function(){jQuery('.dslca-template[data-id="'+e+'"]').fadeOut(200,function(){jQuery(this).remove()})})}function dslc_load_template(e){dslc_template_load(e)}function dslc_import_template(){dslc_template_import()}function dslc_save_template(){dslc_template_save()}function dslc_delete_template(e){dslc_template_delete(e)}function dslc_save_composer(){dslcDebug&&console.log("dslc_save_composer");var e=jQuery("#dslca-code").val(),s=jQuery("#dslca-content-for-search").val(),d=jQuery(".dslca-container").data("post-id");jQuery("body").addClass("dslca-saving-in-progress"),jQuery(".dslca-save-composer .dslca-icon").removeClass("dslc-icon-ok").addClass("dslc-icon-spin dslc-icon-spinner"),jQuery.ajax({method:"POST",type:"POST",url:DSLCAjax.ajaxurl,data:{action:"dslc-ajax-save-composer",dslc:"active",dslc_post_id:d,dslc_code:e,dslc_content_for_search:s},timeout:1e4}).done(function(e){"success"==e.status?(jQuery(".dslca-save-composer").fadeOut(250),jQuery(".dslca-save-draft-composer").fadeOut(250)):alert("Something went wrong, please try to save again.")}).fail(function(e){alert("timeout"==e.statusText?"The request timed out after 10 seconds. Please try again.":"Something went wrong. Please try again.")}).always(function(){jQuery(".dslca-save-composer .dslca-icon").removeClass("dslc-icon-spin dslc-icon-spinner").addClass("dslc-icon-ok"),jQuery("body").removeClass("dslca-saving-in-progress")})}function dslc_save_draft_composer(){dslcDebug&&console.log("dslc_save_draft_composer");var e=jQuery("#dslca-code").val(),s=jQuery(".dslca-container").data("post-id");jQuery("body").addClass("dslca-saving-in-progress"),jQuery(".dslca-save-draft-composer .dslca-icon").removeClass("dslc-icon-ok").addClass("dslc-icon-spin dslc-icon-spinner"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-draft-composer",dslc:"active",dslc_post_id:s,dslc_code:e},function(e){jQuery(".dslca-save-draft-composer .dslca-icon").removeClass("dslc-icon-spin dslc-icon-spinner").addClass("dslc-icon-save"),"success"==e.status?jQuery(".dslca-save-draft-composer").fadeOut(250):alert("Something went wrong, please try to save again."),jQuery("body").removeClass("dslca-saving-in-progress")})}function dslc_generate_code(){dslcDebug&&console.log("dslc_generate_code");var e,s,d,o,l,t,a,i="",c=12,n=12,r=0,u=0,m="";jQuery("#dslc-main .dslc-modules-area").each(function(){jQuery(".dslc-module-front",this).length?(jQuery(this).removeClass("dslc-modules-area-empty").addClass("dslc-modules-area-not-empty"),jQuery(".dslca-no-content",this).hide()):(jQuery(this).removeClass("dslc-modules-area-not-empty").addClass("dslc-modules-area-empty"),jQuery(".dslca-no-content:not(:visible)",this).show().css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",padding:0}).animate({padding:"35px 0"},300))}),jQuery("#dslc-main .dslc-modules-section").each(function(){jQuery(".dslc-modules-area",this).length?jQuery(this).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty"):jQuery(this).removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty")}),jQuery("#dslc-main .dslc-modules-area.dslc-last-col, .dslc-modules-area.dslc-first-col").removeClass("dslc-last-col dslc-first-col"),jQuery("#dslc-main .dslc-module-front.dslc-last-col, .dslc-module-front.dslc-first-col").removeClass("dslc-last-col dslc-first-col"),jQuery("#dslc-main .dslc-modules-section").each(function(){u=0,a=jQuery(this),m="",jQuery(".dslca-modules-section-settings input",a).each(function(){m=m+jQuery(this).data("id")+'="'+jQuery(this).val()+'" '}),i=i+"[dslc_modules_section "+m+"] ",jQuery(".dslc-modules-area",a).each(function(){o=jQuery(this),d=parseInt(o.data("size")),l="no",t="no",u+=d,u==n?(jQuery(this).addClass("dslc-last-col").next(".dslc-modules-area").addClass("dslc-first-col"),u=0,l="yes"):u>n&&(jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col"),u=d,t="yes"),u==d&&(t="yes"),i=i+'[dslc_modules_area last="'+l+'" first="'+t+'" size="'+d+'"] ',jQuery(".dslc-module-front",o).each(function(){s=parseInt(jQuery(this).data("dslc-module-size"));var d="no",o="no";r+=s,r==c?(jQuery(this).addClass("dslc-last-col").next(".dslc-module-front").addClass("dslc-first-col"),r=0,d="yes"):r>c&&(jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col"),r=s,o="yes"),r==c&&(o="yes",jQuery(this).addClass("dslc-last-col").next(".dslc-module-front").addClass("dslc-first-col"),r=0),e=jQuery(this).find(".dslca-module-code").val(),i=i+'[dslc_module last="'+d+'"]'+e+"[/dslc_module] "}),i+="[/dslc_modules_area] "}),i+="[/dslc_modules_section] "}),jQuery("#dslca-code").val(i),jQuery("#dslca-export-code").val(i),dslca_gen_content_for_search()}function dslc_generate_section_code(e){dslcDebug&&console.log("dslc_generate_section_code");var s,d,o,l,t,a,i,c="",n=12,r=0,u=0,m="";u=0;var i=e;return jQuery(".dslca-modules-section-settings input",i).each(function(){m=m+jQuery(this).data("id")+'="'+jQuery(this).val()+'" '}),c=c+"[dslc_modules_section "+m+"] ",jQuery(".dslc-modules-area",i).each(function(){l=jQuery(this),o=parseInt(l.data("size")),t="no",a="no",u+=o,u==n?(jQuery(this).addClass("dslc-last-col").next(".dslc-modules-area").addClass("dslc-first-col"),u=0,t="yes"):u>n&&(jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col"),u=o,a="yes"),u==o&&(a="yes"),c=c+'[dslc_modules_area last="'+t+'" first="'+a+'" size="'+o+'"] ',jQuery(".dslc-module-front",l).each(function(){d=parseInt(jQuery(this).data("dslc-module-size")),r+=d,r==o&&(jQuery(this).addClass("dslc-last-col").next(".dslc-module-front").addClass("dslc-first-col"),r=0),s=jQuery(this).find(".dslca-module-code").val(),c=c+"[dslc_module]"+s+"[/dslc_module] "}),c+="[/dslc_modules_area] "}),c+="[/dslc_modules_section] "}function dslc_update_preset(){dslcDebug&&console.log("dslc_update_preset");var e=jQuery(".dslca-module-being-edited"),s=e.find('.dslca-module-option-front[data-id="css_load_preset"]').val(),d=e.find(".dslca-module-code").val(),o=e.data("dslc-module-id");"none"!==s&&jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-preset",dslc_preset_name:s,dslc_preset_code:d,dslc_module_id:o},function(){jQuery(".dslc-module-front:not(#"+e.attr("id")+')[data-dslc-module-id="'+e.data("dslc-module-id")+'"][data-dslc-preset="'+e.data("dslc-preset")+'"]').each(function(){dslc_module_output_reload(jQuery(this))})})}function dslc_dm_get_defaults(e){dslcDebug&&console.log("dslc_dm_get_defaults");var s=e.find(".dslca-module-code").val();jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-dm-module-defaults",dslc:"active",dslc_modules_options:s},function(e){jQuery(".dslca-prompt-modal textarea").val(e.output)})}function dslca_gen_content_for_search(){dslcDebug&&console.log("dslca_gen_content_for_search");var e=jQuery("#dslca-content-for-search"),s=e.val(),d="";jQuery("#dslc-main .dslca-editable-content").each(function(){d+=jQuery(this).text().replace(/\s+/g," ").trim()+" "}),e.val(d),s!==d&&dslc_show_publish_button()}function dslca_draggable_calc_center(e){dslcDebug&&console.log("dslca_draggable_calc_center"),jQuery(".dslc-modules-section-inner").sortable("option","cursorAt",{top:e.outerHeight()/2,left:e.outerWidth()/2})}function dslc_editable_content_gen_code(e){dslcDebug&&console.log("dslc_editable_content_gen_code");var s,d,o;s=e.closest(".dslc-module-front"),d=e.html().trim().replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea"),o=e.data("id"),jQuery('.dslca-module-option-front[data-id="'+o+'"]',s).val(d),dslc_show_publish_button()}var dslcRegularFontsArray=DSLCFonts.regular,dslcGoogleFontsArray=DSLCFonts.google,dslcAllFontsArray=dslcRegularFontsArray.concat(dslcGoogleFontsArray),dslcIconsCurrentSet=DSLCIcons.fontawesome,dslcDebug=!1;jQuery(document).ready(function(e){jQuery("body").hasClass("rtl")||jQuery(".dslca-module-edit-options-inner").jScrollPane(),e("body").addClass("dslca-enabled dslca-drag-not-in-progress"),e(".dslca-invisible-overlay").hide(),e(".dslca-section").eq(0).show(),dslc_drag_and_drop(),dslc_generate_code(),e(document).on("click",".dslca-currently-editing",function(){var s,d=!1,o=!1;e(".dslca-module-being-edited").length?(d=e(".dslca-module-being-edited"),s="#5890e5"):e(".dslca-modules-section-being-edited").length&&(d=e(".dslca-modules-section-being-edited"),s="#eabba9"),d&&(o=d.offset().top-100,0>o&&(o=0),e("html, body").animate({scrollTop:o},300,function(){d.animate({"outline-color":s},70,function(){d.animate({"outline-color":"transparent"},70,function(){d.animate({"outline-color":s},70,function(){d.animate({"outline-color":"transparent"},70,function(){d.removeAttr("style")})})})})}))}),e(document).on("click",".dslca-hide-composer-hook",function(){dslc_hide_composer()}),e(document).on("click",".dslca-show-composer-hook",function(){dslc_show_composer()}),e(document).on("click",".dslca-go-to-modules-hook",function(e){e.preventDefault(),dslc_show_section(".dslca-modules")}),e(document).on("click",".dslca-go-to-section-hook",function(s){s.preventDefault();var d=e(this).data("section");dslc_show_section(d),e(this).addClass("dslca-active").siblings(".dslca-go-to-section-hook").removeClass("dslca-active")}),e(document).on("click",".dslca-close-composer-hook",function(s){s.preventDefault(),e("body").hasClass("dslca-saving-in-progress")||dslc_js_confirm("disable_lc",'<span class="dslca-prompt-modal-title">'+DSLCString.str_exit_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_exit_descr+"</span>",e(this).attr("href"))}),e(document).on("click",".dslca-submit",function(){jQuery(this).closest("form").submit()}),e(document).on("click",".dslca-section-title",function(s){s.stopPropagation(),e(".dslca-section-title-filter",this).length&&(dslc_generate_filters(),e(".dslca-section-title-filter-options").slideToggle(300))}),e(document).on("click",".dslca-section-title-filter-options span",function(s){s.stopPropagation();var d=e(this).data("origin"),o=e(this).closest(".dslca-section");e(".dslca-section-title-filter-curr",o).text(o.hasClass("dslca-templates-load")?e(this).text()+" TEMPLATES":e(this).text()+" MODULES"),e(".dslca-section-scroller-inner").css({left:0}),dslc_filter_origin(d,o)})}),jQuery(document).ready(function(e){e(document).on("click",".dslca-section-scroller-prev",function(s){s.preventDefault(),dslc_scroller_prev(e(this).closest(".dslca-section").find(".dslca-section-scroller"))}),e(document).on("click",".dslca-section-scroller-next",function(s){s.preventDefault(),dslc_scroller_next(e(this).closest(".dslca-section").find(".dslca-section-scroller"))})}),jQuery(window).load(function(){dslc_scroller_init(),jQuery(window).resize(function(){dslc_scroller_init()})}),jQuery(document).ready(function(){dslc_ui_animations()}),jQuery(document).ready(function(e){e(document).on("click",".dslca-open-modal-hook",function(){var s=e(this).data("modal");dslc_show_modal(e(this),s)}),e(document).on("click",".dslca-close-modal-hook",function(){if(!e(this).hasClass("dslca-action-disabled")){var s=e(this).data("modal");dslc_hide_modal(e(this),s)}})}),jQuery(document).ready(function(e){e(document).on("click",".dslca-prompt-modal-cancel-hook",function(e){e.preventDefault();var s=jQuery(".dslca-prompt-modal").data("id"),d=jQuery(".dslca-prompt-modal").data("target");"edit_in_progress"==s&&dslc_module_options_cancel_changes(function(){d.trigger("click")}),dslc_js_confirm_close(),jQuery(".dslca-prompt-modal").data("id","")}),e(document).on("click",".dslca-prompt-modal-confirm-hook",function(s){s.preventDefault();var d=jQuery(".dslca-prompt-modal").data("id"),o=jQuery(".dslca-prompt-modal").data("target"),l=!0;if("edit_in_progress"==d)dslc_module_options_confirm_changes(function(){o.trigger("click")});else if("disable_lc"==d)window.location=o;else if("delete_module"==d){var t=o.closest(".dslc-module-front");dslc_delete_module(t)}else if("delete_modules_area"==d){var a=o.closest(".dslc-modules-area");dslc_modules_area_delete(a)}else"delete_modules_section"==d?dslc_row_delete(o.closest(".dslc-modules-section")):"export_modules_section"==d||"import_modules_section"==d&&(dslc_row_import(e(".dslca-prompt-modal textarea").val()),e(".dslca-prompt-modal-confirm-hook span").css({opacity:0}),e(".dslca-prompt-modal-confirm-hook .dslca-loading").show(),l=!1);l&&dslc_js_confirm_close(),jQuery(".dslca-prompt-modal").data("id","")}),e(window).on("keydown",function(s){13==s.which?e(".dslca-prompt-modal-active").length&&e(".dslca-prompt-modal-confirm-hook").trigger("click"):27==s.which&&e(".dslca-prompt-modal-active").length&&e(".dslca-prompt-modal-cancel-hook").trigger("click")})}),jQuery(document).ready(function(e){dslc_row_edit_colorpicker_init(),dslc_row_edit_slider_init(),e("#dslc-main .dslc-modules-section").length||e("#dslca-tut-page").length||dslc_row_add(),e(document).on("click",".dslca-add-modules-section-hook",function(){var s=e(this);e(this).hasClass("dslca-action-disabled")||(s.find(".dslca-icon").removeClass("dslc-icon-align-justify").addClass("dslc-icon-spinner dslc-icon-spin"),dslc_row_add(function(){s.find(".dslca-icon").removeClass("dslc-icon-spinner dslc-icon-spin").addClass("dslc-icon-align-justify")}))}),e(document).on("click",".dslca-edit-modules-section-hook",function(){e(this).hasClass("dslca-action-disabled")||(jQuery(".dslca-module-being-edited.dslca-module-change-made").length?dslc_js_confirm("edit_in_progress",'<span class="dslca-prompt-modal-title">'+DSLCString.str_module_curr_edit_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_module_curr_edit_descr+"</span>",jQuery(this)):jQuery(".dslca-modules-section-being-edited.dslca-modules-section-change-made").length?dslc_js_confirm("edit_in_progress",'<span class="dslca-prompt-modal-title">'+DSLCString.str_row_curr_edit_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_row_curr_edit_descr+"</span>",jQuery(this)):dslc_row_edit(e(this).closest(".dslc-modules-section")))}),e(document).on("click",".dslca-row-edit-save",function(){dslc_row_edit_confirm(),e(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active"),dslc_responsive_classes(!0)}),e(document).on("click",".dslca-row-edit-cancel",function(){dslc_row_edit_cancel(),e(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active"),dslc_responsive_classes(!0)}),e(document).on("click",".dslca-copy-modules-section-hook",function(){e(this).hasClass("dslca-action-disabled")||dslc_row_copy(e(this).closest(".dslc-modules-section"))}),e(document).on("click",".dslca-import-modules-section-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||(e(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span><span>'+DSLCString.str_import+'</span><div class="dslca-loading followingBallsGWrap"><div class="followingBallsG_1 followingBallsG"></div><div class="followingBallsG_2 followingBallsG"></div><div class="followingBallsG_3 followingBallsG"></div><div class="followingBallsG_4 followingBallsG"></div></div>'),dslc_js_confirm("import_modules_section",'<span class="dslca-prompt-modal-title">'+DSLCString.str_import_row_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_import_row_descr+" <br><br><textarea></textarea></span>",e(this)))}),e(document).on("click",".dslca-delete-modules-section-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||dslc_js_confirm("delete_modules_section",'<span class="dslca-prompt-modal-title">'+DSLCString.str_del_row_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_del_row_descr+"</span>",e(this))}),e(document).on("click",".dslca-export-modules-section-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||(e(".dslca-prompt-modal-cancel-hook").hide(),e(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>'+DSLCString.str_ok),dslc_js_confirm("export_modules_section",'<span class="dslca-prompt-modal-title">'+DSLCString.str_export_row_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_export_row_descr+" <br><br><textarea></textarea></span>",e(this)),e(".dslca-prompt-modal textarea").val(dslc_generate_section_code(e(this).closest(".dslc-modules-section"))))})}),jQuery(document).ready(function(e){e(document).on("click",".dslca-add-modules-area-hook",function(e){e.preventDefault(),dslc_modules_area_add(jQuery(this).closest(".dslc-modules-section").find(".dslc-modules-section-inner"))}),e(document).on("click",".dslca-delete-modules-area-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||dslc_js_confirm("delete_modules_area",'<span class="dslca-prompt-modal-title">'+DSLCString.str_del_area_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_del_area_descr+"</span>",e(this))}),e(document).on("click",".dslca-copy-modules-area-hook",function(s){if(s.preventDefault(),!e(this).hasClass("dslca-action-disabled")){var d=e(this).closest(".dslc-modules-area");dslc_copy_modules_area(d)}}),e(document).on("click",".dslca-change-width-modules-area-options span",function(){e(this).hasClass("dslca-action-disabled")||dslc_modules_area_width_set(jQuery(this).closest(".dslc-modules-area"),jQuery(this).data("size"))}),e(document).on("click",".dslca-change-width-modules-area-hook",function(s){if(s.preventDefault(),!e(this).hasClass("dslca-action-disabled"))if(e(".dslca-change-width-modules-area-options:visible",this).length)e(".dslca-change-width-modules-area-options",this).hide();else{e(".dslca-change-width-modules-area-options .dslca-active-width").removeClass("dslca-active-width");var d=e(this).closest(".dslc-modules-area").data("size");e('.dslca-change-width-modules-area-options span[data-size="'+d+'"]').addClass("dslca-active-width"),e(".dslca-change-width-modules-area-options",this).show()}})}),jQuery(document).ready(function(e){dslc_module_options_tooltip(),dslc_module_options_font(),dslc_module_options_icon(),dslc_module_options_text_align(),dslc_module_options_checkbox(),dslc_module_options_box_shadow(),dslc_module_options_text_shadow(),e(".dslca-module-edit-form").submit(function(e){e.preventDefault(),dslc_module_output_altered()}),e(document).on("click",".dslca-copy-module-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||dslc_module_copy(e(this).closest(".dslc-module-front"))}),e(document).on("click",".dslca-delete-module-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||dslc_js_confirm("delete_module",'<span class="dslca-prompt-modal-title">'+DSLCString.str_del_module_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_del_module_descr+"</span>",e(this))}),e(document).on("click",".dslca-change-width-module-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||(e(".dslca-change-width-module-options",this).toggle(),e(this).closest(".dslca-module-manage").toggleClass("dslca-module-manage-change-width-active"))}),e(document).on("click",".dslca-change-width-module-options span",function(){dslc_module_width_set(jQuery(this).closest(".dslc-module-front"),jQuery(this).data("size"))}),e(document).on("click",".dslca-module-edit-hook",function(s){if(s.preventDefault(),!e("body").hasClass("dslca-composer-hidden"))if(e(".dslca-module-being-edited.dslca-module-change-made").length)dslc_js_confirm("edit_in_progress",'<span class="dslca-prompt-modal-title">'+DSLCString.str_module_curr_edit_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_module_curr_edit_descr+"</span>",e(this));else if(e(".dslca-modules-section-being-edited.dslca-modules-section-change-made").length)dslc_js_confirm("edit_in_progress",'<span class="dslca-prompt-modal-title">'+DSLCString.str_row_curr_edit_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_row_curr_edit_descr+"</span>",e(this));else{e(".dslca-modules-section-being-edited").length&&e(".dslca-module-edit-cancel").trigger("click");{var d=e(this).closest(".dslc-module-front"),o=d.data("dslc-module-id");d.find(".dslca-module-code").val()}e(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),d.addClass("dslca-module-being-edited"),dslc_module_options_show(o)}}),e(document).on("click",".dslca-module-edit-options-tab-hook",function(){dslc_module_options_tab_filter(e(this))}),e(document).on("click",".dslca-options-filter-hook",function(){var s=jQuery(".dslca-options-filter-hook.dslca-active").data("section");e(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active"),e(this).addClass("dslca-active"),dslc_module_options_section_filter(jQuery(this).data("section")),"responsive"==s&&(jQuery(".dslca-container-loader").show(),dslc_responsive_classes(),dslc_module_output_altered(function(){jQuery(".dslca-container-loader").hide()}))}),e(document).on("click",".dslca-module-edit-save",function(){dslc_module_options_confirm_changes(),e(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active"),dslc_responsive_classes(!0)}),e(document).on("click",".dslca-module-edit-cancel",function(){dslc_module_options_cancel_changes(),e(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active"),dslc_responsive_classes(!0)}),jQuery(document).on("click",".dslca-module-edit-field-icon-switch-set",function(){var e=jQuery(".dslca-module-edit-field-icon-switch-sets"),s=jQuery(this);if(jQuery(".dslca-module-edit-field-icon-switch-set.dslca-active").removeClass("dslca-active"),s.addClass("dslca-active"),e.is(":visible"))jQuery(".dslca-module-edit-field-icon-switch-sets").hide();else{var d=s.find(".dslca-module-edit-field-icon-curr-set").text();jQuery(".dslca-module-edit-field-icon-switch-sets span.dslca-active").removeClass("dslca-active"),jQuery('.dslca-module-edit-field-icon-switch-sets span[data-set="'+d+'"]').addClass("dslca-active");var o=s.offset(),l=e.outerHeight(),t=e.outerWidth(),a=o.left-t/2+6,i="50%";0>a&&(i=t/2+a+"px",a=0),jQuery(".dslca-module-edit-field-icon-switch-sets").show().css({top:o.top-l-20,left:a}),jQuery("head").append(jQuery("<style>.dslca-module-edit-field-icon-switch-sets:after, .dslca-module-edit-field-icon-switch-sets:before { left: "+i+" }</style>"))}}),jQuery(document).on("click",".dslca-module-edit-field-icon-switch-sets span",function(){var s=e(this).data("set");dslcIconsCurrentSet=DSLCIcons[s],e(this).addClass("dslca-active").siblings(".dslca-active").removeClass("dslca-active"),e(".dslca-module-edit-field-icon-switch-set.dslca-active .dslca-module-edit-field-icon-curr-set").text(s),e(".dslca-module-edit-field-icon-switch-set.dslca-active").closest(".dslca-module-edit-option").find(".dslca-module-edit-field-icon-next").trigger("click"),e(".dslca-module-edit-field-icon-switch-sets").hide()}),jQuery(document).on("mouseenter",".dslca-module-edit-option-icon",function(){var s=e(this).find(".dslca-module-edit-field-icon-curr-set").text();dslcIconsCurrentSet=DSLCIcons[s]})}),jQuery(document).ready(function(e){e(document).on("click",".dslca-template",function(){dslc_template_load(jQuery(this).data("id"))}),e(".dslca-template-import-form").submit(function(e){e.preventDefault(),dslc_template_import()}),e(".dslca-template-save-form").submit(function(e){e.preventDefault(),dslc_template_save()}),e(document).on("click",".dslca-delete-template-hook",function(s){s.stopPropagation(),dslc_template_delete(e(this).data("id"))})}),jQuery(document).ready(function(e){e(document).on("click",".dslca-save-composer-hook",function(){e("body").hasClass("dslca-module-saving-in-progress")||e("body").hasClass("dslca-saving-in-progress")||dslc_save_composer()}),e(document).on("click",".dslca-save-draft-composer-hook",function(){e("body").hasClass("dslca-module-saving-in-progress")||e("body").hasClass("dslca-saving-in-progress")||dslc_save_draft_composer()})}),jQuery(document).ready(function(e){e(document).on("keypress",'.dslca-module-edit-field[name="css_save_preset"]',function(s){if(13==s.which){var d=e(this).val(),o=d.toLowerCase().replace(/\s/g,"-");e("body").addClass("dslca-new-preset-added"),e('.dslca-module-edit-field[name="css_load_preset"]').append('<option value="'+o+'">'+o+"</option>").val(o).trigger("change"),e(this).val("")}}),e(document).on("change",'.dslca-module-edit-field[name="css_load_preset"]',function(){e(".dslca-module-being-edited").addClass("dslca-preload-preset")})}),jQuery(document).ready(function(e){e(document).on("click",".dslca-module-get-defaults-hook",function(){var s=jQuery(this).closest(".dslc-module-front"),d=(dslc_dm_get_defaults(s),'<span class="dslca-prompt-modal-title">Module Defaults</span><span class="dslca-prompt-modal-descr">The code bellow is used to alter the defaults.</span><textarea></textarea><br><br>');e(".dslca-prompt-modal-cancel-hook").hide(),e(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>OK'),dslc_js_confirm("dev_mode_get_default",d,s)}),e(document).on("click","a:not(.dslca-link)",function(e){e.preventDefault()}),e(document).unbind("keydown").bind("keydown",function(s){var d=!1;if(8===s.keyCode){var o=s.srcElement||s.target;d="INPUT"===o.tagName.toUpperCase()&&("TEXT"===o.type.toUpperCase()||"PASSWORD"===o.type.toUpperCase()||"FILE"===o.type.toUpperCase())||"TEXTAREA"===o.tagName.toUpperCase()||e(o).hasClass("dslca-editable-content")||e(o).hasClass("dslc-tabs-nav-hook-title")||e(o).hasClass("dslc-accordion-title")?o.readOnly||o.disabled:!0}d&&s.preventDefault()}),e(document).on("keydown",function(e){116==(e.which||e.keyCode)&&(jQuery(".dslca-save-composer-hook").is(":visible")||jQuery(".dslca-module-edit-save").is(":visible"))&&(e.preventDefault(),dslc_js_confirm("disable_lc",'<span class="dslca-prompt-modal-title">'+DSLCString.str_refresh_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_refresh_descr+"</span>",document.URL))}),e(document).on("click",".dslca-refresh-module-hook",function(){e(this).css({"-webkit-animation-name":"dslcRotate","-moz-animation-name":"dslcRotate","animation-name":"dslcRotate","animation-duration":"0.6s","-webkit-animation-duration":"0.6s","animation-iteration-count":"infinite","-webkit-animation-iteration-count":"infinite"}),e(this).closest(".dslc-module-front").addClass("dslca-module-being-edited"),dslc_module_output_altered(function(){e(".dslca-module-being-edited").removeClass("dslca-module-being-edited")})})}),window.onbeforeunload=function(){},jQuery(document).ready(function(e){e(document).on("change",".dslca-modules-section-edit-field",function(){var s,d,o,l,t,a,i,c;if(s=e(this),d=s.data("id"),l=s.val(),t=l,a=s.data("css-rule"),o=e(".dslca-modules-section-being-edited"),c=o,i=e('.dslca-modules-section-settings input[data-id="'+d+'"]',o),o.addClass("dslca-modules-section-change-made"),s.hasClass("dslca-modules-section-edit-field-upload")&&l&&l.length&&(l=s.data("dslca-img-url")),"background-image"==a&&(l='url("'+l+'")',dslc_bg_video()),"bg_image_attachment"==d&&o.removeClass("dslc-init-parallax"),"border-top"==d||"border-right"==d||"border-bottom"==d||"border-left"==d){var n=e('.dslca-modules-section-settings input[data-id="border_style"]').val();i=e('.dslca-modules-section-settings input[data-id="border"]',o),t="";var r=s.closest(".dslca-modules-section-edit-option-checkbox-wrapper");r.find(".dslca-modules-section-edit-field-checkbox").each(function(){e(this).is(":checked")&&("border-top"==e(this).data("id")?t+="top ":"border-right"==e(this).data("id")?t+="right ":"border-bottom"==e(this).data("id")?t+="bottom ":"border-left"==e(this).data("id")&&(t+="left "))}),s.is(":checked")?"border-top"==s.data("id")?o.css({"border-top-style":n}):"border-right"==s.data("id")?o.css({"border-right-style":n}):"border-bottom"==s.data("id")?o.css({"border-bottom-style":n}):"border-left"==s.data("id")&&o.css({"border-left-style":n}):"border-top"==s.data("id")?o.css({"border-top-style":"hidden"}):"border-right"==s.data("id")?o.css({"border-right-style":"hidden"}):"border-bottom"==s.data("id")?o.css({"border-bottom-style":"hidden"}):"border-left"==s.data("id")&&o.css({"border-left-style":"hidden"})}else if(s.hasClass("dslca-modules-section-edit-field-checkbox")){var u=e(this).closest(".dslca-modules-section-edit-option-checkbox-wrapper").find(".dslca-modules-section-edit-field-checkbox"),m="";u.each(function(){e(this).prop("checked")&&(m+=e(this).data("val")+" ")});var t=m;"show_on"==s.data("id")&&(console.log(m),-1!==m.indexOf("desktop")?e(".dslca-modules-section-being-edited").removeClass("dslc-hide-on-desktop"):e(".dslca-modules-section-being-edited").addClass("dslc-hide-on-desktop"),-1!==m.indexOf("tablet")?e(".dslca-modules-section-being-edited").removeClass("dslc-hide-on-tablet"):e(".dslca-modules-section-being-edited").addClass("dslc-hide-on-tablet"),-1!==m.indexOf("phone")?e(".dslca-modules-section-being-edited").removeClass("dslc-hide-on-phone"):e(".dslca-modules-section-being-edited").addClass("dslc-hide-on-phone"))}else if("bg_image_attachment"==d&&"parallax"==l||"type"==d)"bg_image_attachment"==d?(o.addClass("dslc-init-parallax"),dslc_parallax()):"type"==d&&("full"==l?o.addClass("dslc-full"):o.removeClass("dslc-full"),dslc_masonry());else if("columns_spacing"==d)"nospacing"==l?o.addClass("dslc-no-columns-spacing"):o.removeClass("dslc-no-columns-spacing");else if("custom_class"==d);else if("custom_id"==d);else if("bg_video"==d){if(jQuery(".dslc-bg-video video",o).remove(),l&&l.length){var h=l;h=h.replace(".webm",""),h=h.replace(".mp4",""),jQuery(".dslc-bg-video-inner",o).html('<video><source type="video/mp4" src="'+h+'.mp4" /><source type="video/webm" src="'+h+'.webm" /></video>'),dslc_bg_video()}}else if("bg_image_thumb"==d)if("enabled"==t){if(jQuery("#dslca-post-data-thumb").length){var p="url('"+jQuery("#dslca-post-data-thumb").val()+"')";c.css(a,p)}}else"disabled"==t&&c.css(a,"none");else s.data("css-element")&&(c=jQuery(s.data("css-element"),o)),c.css(a,l);i.val(t),dslc_generate_code(),dslc_show_publish_button()}),jQuery(document).on("blur",".dslca-editable-content",function(){jQuery("body").hasClass("dslca-composer-hidden")||"simple"!=jQuery(this).data("type")||dslc_editable_content_gen_code(jQuery(this))}).on("paste",".dslca-editable-content",function(){if(!jQuery("body").hasClass("dslca-composer-hidden")&&"simple"==jQuery(this).data("type")){var e=jQuery(this);setTimeout(function(){"simple"==e.data("type")&&e.html(e.text()),dslc_editable_content_gen_code(jQuery(this))},1)}}).on("focus",".dslca-editable-content",function(){"simple"==jQuery(this).data("type")&&(jQuery("body").hasClass("dslca-composer-hidden")?e(this).trigger("blur"):jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click"))}).on("keyup",".dslca-editable-content",function(){"simple"==jQuery(this).data("type")&&jQuery(this).closest(".dslc-module-front").addClass("dslca-module-change-made")
|
4 |
-
}),e(document).on("blur",".dslc-editable-area",function(){var
|
1 |
+
"use strict";function dslc_hide_composer(){dslcDebug&&console.log("dslc_hide_composer"),jQuery(".dslca-hide-composer-hook").hide(),jQuery(".dslca-show-composer-hook").show(),jQuery("body").addClass("dslca-composer-hidden"),jQuery(".dslca-container").css({bottom:-1*jQuery(".dslca-container").outerHeight()}),jQuery(".dslca-header").hide()}function dslc_show_composer(){dslcDebug&&console.log("dslc_show_composer"),jQuery(".dslca-show-composer-hook").hide(),jQuery(".dslca-hide-composer-hook").show(),jQuery("body").removeClass("dslca-composer-hidden"),jQuery(".dslca-container").css({bottom:0}),jQuery(".dslca-header").show()}function dslc_show_publish_button(){dslcDebug&&console.log("dslc_show_publish_button"),jQuery(".dslca-save-composer").show().addClass("dslca-init-animation"),jQuery(".dslca-save-draft-composer").show().addClass("dslca-init-animation")}function dslc_show_section(e){dslcDebug&&console.log("dslc_show_section"),jQuery("body").addClass("dslca-anim-in-progress");var s=(jQuery(e).data("title"),jQuery(e).data("bg"));jQuery(".dslca-container").css({bottom:-500}),jQuery(".dslca-sections").animate({backgroundColor:s},200),jQuery(".dslca-section").hide(),jQuery(e).show(),".dslca-modules-section-edit"==e&&dslc_row_edit_scrollbar_init(),".dslca-module-edit"==e?jQuery(".dslca-currently-editing").show().css("background-color",s).find("strong").text(jQuery(".dslca-module-being-edited").attr("title")+" module"):".dslca-modules-section-edit"==e?jQuery(".dslca-currently-editing").show().css("background-color","#e5855f").find("strong").text("Row"):jQuery(".dslca-currently-editing").hide().find("strong").text(""),dslc_module_options_tab_filter(),".dslca-module-edit"!=e&&dslc_scroller_init(),setTimeout(function(){jQuery(".dslca-container").css({bottom:0})},300),jQuery("body").removeClass("dslca-anim-in-progress")}function dslc_generate_filters(){dslcDebug&&console.log("dslc_generate_filters");var e,s=[],d='<span data-origin="">ALL</span>',o=jQuery(".dslca-section:visible .dslca-origin");o.each(function(){e=jQuery(this),-1==jQuery.inArray(e.data("origin"),s)&&(s.push(e.data("origin")),d+='<span data-origin="'+e.data("origin")+'">'+e.data("origin").replace("_"," ")+"</span>")}),jQuery(".dslca-section:visible .dslca-section-title-filter-options").html(d).css("background",jQuery(".dslca-section:visible").data("bg"))}function dslc_filter_origin(e,s){dslcDebug&&console.log("dslc_filter_origin"),jQuery(".dslca-origin",s).hide(),jQuery('.dslca-origin[data-origin="'+e+'"]',s).show(),""==e&&jQuery(".dslca-origin",s).show(),dslc_scroller_init()}function dslc_drag_and_drop(){dslcDebug&&console.log("dslc_drag_and_drop");var e,s,d;jQuery(".dslca-modules .dslca-module").draggable({scroll:!1,appendTo:"body",helper:"clone",cursor:"default",cursorAt:{top:50,left:30},containment:"body",start:function(e,s){jQuery("body").removeClass("dslca-new-module-drag-not-in-progress").addClass("dslca-new-module-drag-in-progress"),jQuery("#dslc-header").addClass("dslca-header-low-z-index")},stop:function(e,s){jQuery("body").removeClass("dslca-new-module-drag-in-progress").addClass("dslca-new-module-drag-not-in-progress"),jQuery("#dslc-header").removeClass("dslca-header-low-z-index")}}),jQuery(".dslc-content").sortable({items:".dslc-modules-section",handle:'.dslca-move-modules-section-hook:not(".dslca-action-disabled")',placeholder:"dslca-modules-section-placeholder",tolerance:"pointer",cursorAt:{bottom:10},axis:"y",scroll:!0,scrollSensitivity:200,scrollSpeed:10,sort:function(){jQuery(this).removeClass("ui-state-default")},update:function(e,s){dslc_generate_code(),dslc_show_publish_button()},start:function(e,s){jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress"),s.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+DSLCString.str_row_helper_text+"</span></span>"),jQuery(".dslc-content").sortable("refreshPositions")},stop:function(e,s){jQuery("body").removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress"),jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop"),jQuery(".dslc-modules-section").css({overflow:"visible","max-height":"none"})}}),jQuery(".dslc-modules-section-inner").sortable({connectWith:".dslc-modules-section-inner",items:".dslc-modules-area",handle:'.dslca-move-modules-area-hook:not(".dslca-action-disabled")',placeholder:"dslca-modules-area-placeholder",cursorAt:{top:0,left:0},tolerance:"intersect",scroll:!0,scrollSensitivity:100,scrollSpeed:15,sort:function(){jQuery(this).removeClass("ui-state-default")},over:function(e,s){var d=s.placeholder.closest(".dslc-modules-section");jQuery(d).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty"),d.siblings(".dslc-modules-section").each(function(){jQuery(".dslc-modules-area:not(.ui-sortable-helper)",jQuery(this)).length?jQuery(this).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty"):jQuery(this).removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty")})},update:function(e,s){dslc_generate_code(),dslc_show_publish_button()},start:function(e,s){s.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+DSLCString.str_area_helper_text+"</span></span>"),jQuery(s.item).hasClass("dslc-12-col")?s.placeholder.width(s.item.width()).css({margin:0}):s.placeholder.width(s.item.width()-10),jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress dslca-modules-area-drag-in-progress"),jQuery(".dslc-modules-section-inner").sortable("refreshPositions")},stop:function(e,s){jQuery("body").removeClass("dslca-drag-in-progress dslca-modules-area-drag-in-progress").addClass("dslca-drag-not-in-progress"),jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop")},change:function(e,s){}}),jQuery(".dslc-modules-section").droppable({drop:function(e,s){var d=jQuery(this).find(".dslc-modules-section-inner"),o=s.draggable.data("id");"DSLC_M_A"==o&&dslc_modules_area_add(d)}}),jQuery(".dslc-modules-area").droppable({activeClass:"dslca-ui-state-default",hoverClass:"dslca-ui-state-hover",accept:":not(.ui-sortable-helper)",drop:function(o,l){if(e=jQuery(this),s=l.draggable.data("id"),"DSLC_M_A"==s||jQuery("body").hasClass("dslca-module-drop-in-progress")||e.closest("#dslc-header").length||e.closest("#dslc-footer").length);else{jQuery("body").addClass("dslca-anim-in-progress dslca-module-drop-in-progress"),e.hasClass("dslc-modules-area-not-empty")&&e.animate({paddingBottom:50},150),dslc_module_output_default(s,function(s){d=s.output,jQuery(".dslca-module-loading-inner",e).stop().animate({width:"100%"},300,"linear",function(){e.css({paddingBottom:0}),jQuery(".dslca-module-loading",e).hide();var s=jQuery(d).appendTo(e);s.css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s"}),setTimeout(function(){dslc_init_square(),dslc_center(),dslc_masonry(s),jQuery("body").removeClass("dslca-anim-in-progress dslca-module-drop-in-progress")},700),jQuery(".dslca-no-content-primary",e).css({opacity:1}),jQuery(".dslca-modules-area-manage",e).css({visibility:"visible"}),jQuery(".dslca-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"}),dslc_carousel(),dslc_tabs(),dslc_init_accordion(),dslc_init_square(),dslc_center(),dslc_generate_code(),dslc_show_publish_button()})}),jQuery(".dslca-module-loading",e).show(),jQuery(".dslca-no-content-primary",e).css({opacity:0}),jQuery(".dslca-modules-area-manage",e).css({visibility:"hidden"});var t=100*Math.floor(51*Math.random()+50);jQuery(".dslca-module-loading-inner",e).css({width:0}).animate({width:"100%"},t,"linear")}}}).sortable({connectWith:".dslc-modules-area",items:".dslc-module-front",handle:'.dslca-move-module-hook:not(".dslca-action-disabled")',placeholder:"dslca-module-placeholder",cursorAt:{top:50,left:30},tolerance:"pointer",scroll:!0,scrollSensitivity:100,scrollSpeed:15,start:function(e,s){s.placeholder.html('<span class="dslca-placeholder-help-text"><span class="dslca-placeholder-help-text-inner">'+s.item.find(".dslc-sortable-helper-icon").data("title")+"</span></span>"),jQuery(s.item).hasClass("dslc-12-col")?s.placeholder.width(s.item.width()).css({margin:0}):s.placeholder.width(s.item.width()-10),jQuery("body").removeClass("dslca-drag-not-in-progress").addClass("dslca-drag-in-progress"),jQuery(".dslc-module-front",this).length<2&&(jQuery(this).removeClass("dslc-modules-area-not-empty").addClass("dslc-modules-area-empty"),jQuery(".dslca-no-content:not(:visible)",this).show().css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",padding:0}).animate({padding:"35px 0"},300,function(){})),jQuery(".dslc-modules-area").sortable("refreshPositions")},sort:function(e,s){jQuery(this).removeClass("ui-state-default")},update:function(e,s){dslc_show_publish_button()},stop:function(e,s){dslc_generate_code(),jQuery("body").removeClass("dslca-drag-in-progress").addClass("dslca-drag-not-in-progress"),jQuery(".dslca-anim-opacity-drop").removeClass("dslca-anim-opacity-drop"),s.item.trigger("mouseleave")},change:function(e,s){}})}function dslc_option_changed(){dslc_show_publish_button()}function dslc_module_dragdrop_init(){dslc_drag_and_drop()}function dslc_scroller_init(){dslcDebug&&console.log("dslc_scroller_init");var e=jQuery(".dslca-section-scroller");e.length&&e.each(function(){var e,s=jQuery(this),d=jQuery(".dslca-section-scroller-inner",s),o=d.position(),l=jQuery(".dslca-section-scroller-content",s),t=jQuery(".dslca-scroller-item:visible",s),a=0,i=s.width()+-1*o.left;l.width();jQuery(".dslca-section-scroller-item-last",s).removeClass("dslca-section-scroller-item-last"),t.each(function(){e=jQuery(this),a+=e.outerWidth(),a>i&&jQuery(".dslca-section-scroller-item-last",s).length<1&&(e.addClass("dslca-section-scroller-item-last"),s.data("current",e.prev(".dslca-scroller-item:visible").index()))})})}function dslc_scroller_go_to(e,s){dslcDebug&&console.log("dslc_scroller_go_to");var d=jQuery(".dslca-section-scroller-inner",s),o=jQuery(".dslca-section-scroller-content",s),l=(jQuery(".dslca-scroller-item",s),jQuery(".dslca-scroller-item:eq("+e+")",s));if(l.length){var t=s.width(),a=(o.width(),l.position()),i=t-(a.left+l.outerWidth());0>i?(s.data("current",e),d.css({left:i})):d.css({left:0})}}function dslc_scroller_prev(e){dslcDebug&&console.log("dslc_scroller_prev");var s=e.data("current"),d=e.find(".dslca-scroller-item:eq("+s+")").prevAll(".dslca-scroller-item:visible").eq(1).index(),o=e.find(".dslca-scroller-item:eq("+s+")").prevAll(".dslca-scroller-item:visible").eq(0).index();-1!==d?dslc_scroller_go_to(d,e):-1!==o&&dslc_scroller_go_to(o,e)}function dslc_scroller_next(e){dslcDebug&&console.log("dslc_scroller_next");var s=e.data("current"),d=e.find(".dslca-scroller-item:eq("+s+")").nextAll(".dslca-scroller-item:visible").eq(1).index(),o=e.find(".dslca-scroller-item:eq("+s+")").nextAll(".dslca-scroller-item:visible").eq(0).index();-1!==d?dslc_scroller_go_to(d,e):-1!==o&&dslc_scroller_go_to(o,e)}function dslc_ui_animations(){dslcDebug&&console.log("dslc_ui_animations"),jQuery(document).on("mouseenter",".dslca-modules-area-manage",function(){jQuery(this).closest(".dslc-modules-area").addClass("dslca-options-hovered"),dslca_draggable_calc_center(jQuery(this).closest(".dslc-modules-area"))}).on("mouseleave",".dslca-modules-area-manage",function(){jQuery(this).closest(".dslc-modules-area").removeClass("dslca-options-hovered")}),jQuery(document).on("mouseenter",".dslca-drag-not-in-progress .dslc-module-front",function(e){jQuery("body").hasClass("dslca-composer-hidden")||(jQuery(this).height()<190?jQuery(".dslca-module-manage",this).addClass("dslca-horizontal"):jQuery(".dslca-module-manage",this).removeClass("dslca-horizontal"))}).on("mouseleave",".dslca-drag-not-in-progress .dslc-module-front",function(e){jQuery("body").hasClass("dslca-composer-hidden")||jQuery(this).find(".dslca-change-width-module-options").hide(),jQuery(this).find(".dslca-module-manage").removeClass("dslca-module-manage-change-width-active")}),jQuery(document).on("mouseenter",".dslca-drag-not-in-progress .dslc-modules-area",function(e){jQuery(this);jQuery("body").hasClass("dslca-composer-hidden")||(jQuery("#dslc-header").addClass("dslca-header-low-z-index"),jQuery(this).height()<130?jQuery(".dslca-modules-area-manage",this).addClass("dslca-horizontal"):jQuery(".dslca-modules-area-manage",this).removeClass("dslca-horizontal"))}).on("mouseleave",".dslca-drag-not-in-progress .dslc-modules-area",function(e){jQuery(this);jQuery("body").hasClass("dslca-composer-hidden")||jQuery("#dslc-header").removeClass("dslca-header-low-z-index")})}function dslc_show_modal(e,s){dslcDebug&&console.log("dslc_show_modal"),dslc_hide_modal("",jQuery(".dslca-modal:visible"));var s=jQuery(s),d=jQuery(e).position(),o=s.outerWidth()/2-e.outerWidth()/2,l=d.left-o;s.css({left:l}).show(),s.css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s"}).fadeIn(600)}function dslc_hide_modal(e,s){dslcDebug&&console.log("dslc_hide_modal");var s=jQuery(s);s.css({"-webkit-animation-name":"dslcBounceOut","-moz-animation-name":"dslcBounceOut","animation-name":"dslcBounceOut","animation-duration":"0.6s","-webkit-animation-duration":"0.6s"}).fadeOut(600)}function dslc_js_confirm(e,s,d){dslcDebug&&console.log("dslc_js_confirm"),jQuery(".dslca-prompt-modal").addClass("dslca-prompt-modal-active"),jQuery(".dslca-prompt-modal").data("id",e),jQuery(".dslca-prompt-modal").data("target",d),jQuery(".dslca-prompt-modal-msg").html(s),jQuery(".dslca-prompt-modal").css({opacity:0}).show().animate({opacity:1},400),jQuery(".dslca-prompt-modal-content").css({top:"55%"}).animate({top:"50%"},400)}function dslc_js_confirm_close(){dslcDebug&&console.log("dslc_js_confirm_close"),jQuery(".dslca-prompt-modal").removeClass("dslca-prompt-modal-active"),jQuery(".dslca-prompt-modal").animate({opacity:0},400,function(){jQuery(this).hide(),jQuery(".dslca-prompt-modal-cancel-hook").show(),jQuery(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>'+DSLCString.str_confirm)}),jQuery(".dslca-prompt-modal-content").animate({top:"55%"},400)}function dslc_row_add(e){dslcDebug&&console.log("dslc_row_add"),e="undefined"!=typeof e?e:!1,jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-modules-section",dslc:"active"},function(s){jQuery(s.output).appendTo("#dslc-main"),dslc_drag_and_drop(),dslc_generate_code(),dslc_show_publish_button(),e&&e()})}function dslc_row_delete(e){dslcDebug&&console.log("dslc_row_delete"),e.find(".dslca-module-being-edited")&&(jQuery(".dslca-header .dslca-options-filter-hook").hide(),jQuery(".dslca-module-edit-actions").hide(),jQuery(".dslca-header .dslca-go-to-section-hook").show(),dslc_show_section(".dslca-modules")),e.trigger("mouseleave").remove(),dslc_generate_code(),dslc_show_publish_button()}function dslc_row_edit(e){dslcDebug&&console.log("dslc_row_edit");jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),jQuery(".dslca-modules-section-being-edited").removeClass("dslca-modules-section-being-edited").removeClass("dslca-modules-section-change-made"),e.addClass("dslca-modules-section-being-edited"),jQuery(".dslca-header .dslca-go-to-section-hook").hide(),jQuery('.dslca-row-options-filter-hook[data-section="styling"], .dslca-row-options-filter-hook[data-section="responsive"]').show(),jQuery('.dslca-row-options-filter-hook[data-section="styling"]').trigger("click"),jQuery(".dslca-header .dslca-options-filter-hook").hide(),jQuery(".dslca-module-edit-actions").hide(),jQuery(".dslca-row-edit-actions").show(),jQuery(".dslca-modules-section-edit-field").each(function(){if("border-top"==jQuery(this).data("id"))jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]').val().indexOf("top")>=0?(jQuery(this).prop("checked",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty"));else if("border-right"==jQuery(this).data("id"))jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]').val().indexOf("right")>=0?(jQuery(this).prop("checked",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty"));else if("border-bottom"==jQuery(this).data("id"))jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]').val().indexOf("bottom")>=0?(jQuery(this).prop("checked",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty"));else if("border-left"==jQuery(this).data("id"))jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="border"]').val().indexOf("left")>=0?(jQuery(this).prop("checked",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty"));else if(jQuery(this).hasClass("dslca-modules-section-edit-field-checkbox"))jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="'+jQuery(this).data("id")+'"]').val().indexOf(jQuery(this).data("val"))>=0?(jQuery(this).prop("checked",!0),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")):(jQuery(this).prop("checked",!1),jQuery(this).siblings(".dslca-modules-section-edit-option-checkbox-hook").find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty"));else if(jQuery(this).val(jQuery('.dslca-modules-section-being-edited .dslca-modules-section-settings input[data-id="'+jQuery(this).data("id")+'"]').val()),jQuery(this).hasClass("dslca-modules-section-edit-field-colorpicker")){var e=jQuery(this);jQuery(this).closest(".dslca-modules-section-edit-option").find(".sp-preview-inner").removeClass("sp-clear-display").css({"background-color":e.val()})}}),jQuery(".dslca-modules-section-edit-field-upload").each(function(){var e=jQuery(this).closest(".dslca-modules-section-edit-option");jQuery(this).val()&&"disabled"!==jQuery(this).val()?(jQuery(".dslca-modules-section-edit-field-image-add-hook",e).hide(),jQuery(".dslca-modules-section-edit-field-image-remove-hook",e).show()):(jQuery(".dslca-modules-section-edit-field-image-remove-hook",e).hide(),jQuery(".dslca-modules-section-edit-field-image-add-hook",e).show())}),dslc_row_edit_slider_init(),dslc_show_section(".dslca-modules-section-edit"),jQuery(".dslca-save-composer-hook").css({visibility:"hidden"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"hidden"})}function dslc_row_edit_colorpicker_init(){dslcDebug&&console.log("dslc_row_edit_colorpicker_init");var e,s,d,o,l,t,a,i,c,n,r=[];if(r[0]=[],r[1]=[],r[2]=[],r[3]=[],void 0==localStorage.dslcColorpickerPalleteStorage);else for(c=JSON.parse(localStorage.dslcColorpickerPalleteStorage),n=0;n<c.length;n++){var u=Math.floor(n/3);4>u&&r[u].push(c[n])}jQuery(".dslca-modules-section-edit-field-colorpicker").each(function(){i=jQuery(this).val(),jQuery(this).spectrum({color:i,showInput:!0,allowEmpty:!0,showAlpha:!0,clickoutFiresChange:!0,cancelText:"",chooseText:"",preferredFormat:"rgb",showPalette:!0,palette:r,move:function(i){e=jQuery(this),s=e.data("id"),o=null==i?"transparent":i.toRgbString(),l=e.data("css-rule"),d=jQuery(".dslca-modules-section-being-edited"),a=d,t=jQuery('.dslca-modules-section-settings input[data-id="'+s+'"]',d),d.addClass("dslca-modules-section-change-made"),e.data("css-element")&&(a=jQuery(e.data("css-element"),d)),a.css(l,o),t.val(o)},change:function(d){if(e=jQuery(this),s=e.data("id"),o=null==d?"transparent":d.toRgbString(),void 0==localStorage.dslcColorpickerPalleteStorage){var l=[o];localStorage.dslcColorpickerPalleteStorage=JSON.stringify(l)}else{var l=JSON.parse(localStorage.dslcColorpickerPalleteStorage);-1==l.indexOf(o)&&l.unshift(o),localStorage.dslcColorpickerPalleteStorage=JSON.stringify(l)}},show:function(e){jQuery("body").addClass("dslca-disable-selection"),jQuery(this).spectrum("set",jQuery(this).val())},hide:function(){jQuery("body").removeClass("dslca-disable-selection")}})})}function dslc_row_edit_slider_init(){dslcDebug&&console.log("dslc_row_edit_slider_init"),jQuery(".dslca-modules-section-edit-field-slider").each(function(){var e,s,d,o,l,t,a,i,c,n,r,u="",m=0,h=300,p=1;e=jQuery(this),s=e.siblings(".dslca-modules-section-edit-field"),t=e.siblings(".dslca-modules-section-edit-field-slider-tooltip"),e.data("min")&&(m=e.data("min")),e.data("max")&&(h=e.data("max")),e.data("incr")&&(p=e.data("incr")),e.data("ext")&&(u=e.data("ext")),e.slider({min:m,max:h,step:p,value:s.val(),slide:function(m,h){d=h.value+u,s.val(d),l=jQuery(".dslca-modules-section-being-edited"),s.data("css-element")&&(l=jQuery(s.data("css-element"),l)),o=s.data("css-rule").replace(/ /g,""),r=o.split(",");for(var p=0;p<r.length;p++)jQuery(l).css(r[p],d);c=jQuery(".dslca-modules-section-being-edited"),n=s.data("id"),jQuery('.dslca-modules-section-settings input[data-id="'+n+'"]',c).val(h.value),c.addClass("dslca-modules-section-change-made"),t.text(d),i=e.find(".ui-slider-handle"),a=i[0].style.left,t.css({left:a})},stop:function(e,s){t.hide();var d=jQuery(window).scrollTop();dslc_masonry(),jQuery(window).scrollTop(d)},start:function(s,o){d=o.value,t.show(),t.text(d),i=e.find(".ui-slider-handle"),a=i[0].style.left,t.css({left:a})}})})}function dslc_row_edit_scrollbar_init(){dslcDebug&&console.log("dslc_row_edit_scrollbar_init");var e=0;jQuery(".dslca-modules-section-edit-option").each(function(){e+=jQuery(this).outerWidth(!0)+1}),e>jQuery(".dslca-modules-section-edit-options").width()?jQuery(".dslca-modules-section-edit-options-wrapper").width(e):jQuery(".dslca-modules-section-edit-options-wrapper").width("auto"),jQuery("body").hasClass("rtl")||(jQuery(".dslca-modules-section-edit-options-inner").data("jsp")&&jQuery(".dslca-modules-section-edit-options-inner").data("jsp").destroy(),jQuery(".dslca-modules-section-edit-options-inner").jScrollPane())}function dslc_row_edit_cancel(e){dslcDebug&&console.log("dslc_row_cancel_changes"),e="undefined"!=typeof e?e:!1,jQuery(".dslca-modules-section-being-edited .dslca-modules-section-settings input").each(function(){jQuery(this).val(jQuery(this).data("def")),jQuery('.dslca-modules-section-edit-field[data-id="'+jQuery(this).data("id")+'"]').val(jQuery(this).data("def")).trigger("change")}),dslc_show_section(".dslca-modules"),jQuery(".dslca-row-edit-actions").hide(),jQuery(".dslca-row-options-filter-hook").hide(),jQuery(".dslca-header .dslca-go-to-section-hook").show(),jQuery(".dslca-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"}),jQuery(".dslca-modules-section-being-edited").removeClass("dslca-modules-section-being-edited dslca-modules-section-change-made"),e&&e(),jQuery(".dslca-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"})}function dslc_row_edit_confirm(e){dslcDebug&&console.log("dslc_confirm_row_changes"),e="undefined"!=typeof e?e:!1,jQuery(".dslca-modules-section-being-edited .dslca-modules-section-settings input").each(function(){jQuery(this).data("def",jQuery(this).val())}),dslc_show_section(".dslca-modules"),jQuery(".dslca-row-edit-actions").hide(),jQuery(".dslca-row-options-filter-hook").hide(),jQuery(".dslca-header .dslca-go-to-section-hook").show(),jQuery(".dslca-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"}),jQuery(".dslca-modules-section-being-edited").removeClass("dslca-modules-section-being-edited dslca-modules-section-change-made"),dslc_generate_code(),dslc_show_publish_button(),e&&e(),jQuery(".dslca-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"})}function dslc_row_copy(e){dslcDebug&&console.log("dslc_row_copy");var s,d,o;d=e.clone().appendTo("#dslc-main"),d.find(".dslc-modules-area").each(function(){var s=jQuery(this).index();jQuery(this).data("size",e.find(".dslc-modules-area:eq( "+s+" )").data("size"))}),d.find(".dslc-module-front").css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).each(function(){o=jQuery(this),jQuery.ajax({type:"POST",method:"POST",url:DSLCAjax.ajaxurl,data:{action:"dslc-ajax-get-new-module-id"},async:!1}).done(function(e){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),s=e.output,o.data("module-id",s).attr("id","dslc-module-"+s).addClass("dslca-module-being-edited"),dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited").animate({opacity:1},300)})})}),dslc_drag_and_drop(),dslc_generate_code(),dslc_show_publish_button()}function dslc_row_import(e){dslcDebug&&console.log("dslc_row_import"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-import-modules-section",dslc:"active",dslc_modules_section_code:e},function(e){dslc_js_confirm_close(),jQuery("#dslc-main").append(e.output),dslc_bg_video(),dslc_carousel(),dslc_masonry(jQuery("#dslc-main").find(".dslc-modules-section:last-child")),dslc_drag_and_drop(),dslc_show_publish_button(),dslc_generate_code()})}function dslc_add_modules_section(){dslc_row_add()}function dslc_delete_modules_section(e){dslc_row_delete(e)}function dslc_edit_modules_section(e){dslc_row_edit(e)}function dslc_edit_modules_section_colorpicker(){dslc_row_edit_colorpicker_init()}function dslc_edit_modules_section_slider(){dslc_row_edit_slider_init()}function dslc_edit_modules_section_scroller(){dslc_row_edit_scrollbar_init()}function dslc_copy_modules_section(e){dslc_row_copy(e)}function dslc_import_modules_section(e){dslc_row_import(e)}function dslc_modules_area_add(e){dslcDebug&&console.log("dslc_add_modules_area"),jQuery("body").addClass("dslca-anim-in-progress"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-modules-area",dslc:"active"},function(s){jQuery(".dslca-modules-area-loading .dslca-module-loading-inner",e.closest(".dslc-modules-section")).stop().animate({width:"100%"},200,"linear",function(){e.css({paddingBottom:0}),jQuery(this).closest(".dslca-modules-area-loading").hide()}),setTimeout(function(){jQuery(s.output).appendTo(e).css({height:0}).animate({height:99},300,function(){jQuery(this).css({height:"auto"})}).addClass("dslca-init-animation"),dslc_drag_and_drop(),dslc_generate_code(),dslc_show_publish_button(),jQuery("body").removeClass("dslca-anim-in-progress")},250)});var s=100*Math.floor(51*Math.random()+50);e.animate({paddingBottom:50},150),jQuery(".dslca-modules-area-loading",e.closest(".dslc-modules-section")).show(),jQuery(".dslca-modules-area-loading .dslca-module-loading-inner",e.closest(".dslc-modules-section")).css({width:0}).animate({width:"100%"},s,"linear")}function dslc_modules_area_delete(e){dslcDebug&&console.log("dslc_delete_modules_area");var s=e.closest(".dslc-modules-section").find(".dslc-modules-section-inner"),d=!1;e.addClass("dslca-modules-area-being-deleted"),s.find(".dslc-modules-area").length<2&&(d=!0),e.find(".dslca-module-being-edited").length&&(jQuery(".dslca-header .dslca-options-filter-hook").hide(),jQuery(".dslca-module-edit-actions").hide(),jQuery(".dslca-header .dslca-go-to-section-hook").show(),dslc_show_section(".dslca-modules")),setTimeout(function(){e.remove(),dslc_generate_code(),dslc_show_publish_button(),d&&dslc_modules_area_add(s)},900),e.css({"-webkit-animation-name":"dslcBounceOut","-moz-animation-name":"dslcBounceOut","animation-name":"dslcBounceOut","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",overflow:"hidden"}).animate({opacity:0},600).animate({height:0,marginBottom:0},300,function(){e.remove(),dslc_generate_code(),dslc_show_publish_button()})}function dslc_modules_area_copy(e){dslcDebug&&console.log("dslc_copy_modules_area");var s,d=e.closest(".dslc-modules-section").find(".dslc-modules-section-inner"),o=e.clone().appendTo(d);o.find(".dslca-modules-area-manage").trigger("mouseleave"),o.data("size",e.data("size")).find(".dslc-module-front").css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).each(function(){var e=jQuery(this);jQuery.ajax({type:"POST",method:"POST",url:DSLCAjax.ajaxurl,data:{action:"dslc-ajax-get-new-module-id"},async:!1}).done(function(d){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),s=d.output,e.data("module-id",s).attr("id","dslc-module-"+s).addClass("dslca-module-being-edited"),dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited").animate({opacity:1},300)})})}),dslc_drag_and_drop(),dslc_generate_code(),dslc_show_publish_button()}function dslc_modules_area_width_set(e,s){dslcDebug&&console.log("dslc_modules_area_width_set");var d="dslc-"+s+"-col";e.removeClass("dslc-1-col dslc-2-col dslc-3-col dslc-4-col dslc-5-col dslc-6-col dslc-7-col dslc-8-col dslc-9-col dslc-10-col dslc-11-col dslc-12-col").addClass(d).data("size",s),dslc_init_square(),dslc_center(),dslc_generate_code(),dslc_show_publish_button(),dslc_masonry()}function dslc_add_modules_area(e){dslc_modules_area_add(e)}function dslc_delete_modules_area(e){dslc_modules_area_delete(e)}function dslc_copy_modules_area(e){dslc_modules_area_copy(e)}function dslc_module_delete(e){dslcDebug&&console.log("dslc_delete_module"),e.addClass("dslca-module-being-deleted"),e.hasClass("dslca-module-being-edited")&&dslc_show_section(".dslca-modules"),setTimeout(function(){e.remove(),dslc_generate_code(),dslc_show_publish_button()},1e3),e.css({"-webkit-animation-name":"dslcBounceOut2","-moz-animation-name":"dslcBounceOut2","animation-name":"dslcBounceOut2","animation-duration":"0.6s","-webkit-animation-duration":"0.6s"}).animate({opacity:0},500,function(){e.css({marginBottom:0}).animate({height:0},400,"easeOutQuart")})}function dslc_module_copy(e){dslcDebug&&console.log("dslc_copy_module");var s;jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-get-new-module-id"},function(d){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),s=d.output,e.clone().appendTo(e.closest(".dslc-modules-area")).css({"-webkit-animation-name":"none","-moz-animation-name":"none","animation-name":"none","animation-duration":"0","-webkit-animation-duration":"0",opacity:0}).data("module-id",s).attr("id","dslc-module-"+s).addClass("dslca-module-being-edited"),
|
2 |
+
dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited").css({opacity:0}).removeClass("dslca-module-being-edited").animate({opacity:1},300)})})}function dslc_module_width_set(e,s){dslcDebug&&console.log("dslc_module_width_set");var d="dslc-"+s+"-col";e.removeClass("dslc-1-col dslc-2-col dslc-3-col dslc-4-col dslc-5-col dslc-6-col dslc-7-col dslc-8-col dslc-9-col dslc-10-col dslc-11-col dslc-12-col").addClass(d).data("dslc-module-size",s).addClass("dslca-module-being-edited"),jQuery('.dslca-module-option-front[data-id="dslc_m_size"]',e).val(s),dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited")})}function dslc_module_options_show(e){dslcDebug&&console.log("dslc_module_options_show");var s=jQuery(".dslca-module-being-edited"),d=jQuery(".dslca-module-options-front textarea",s),o=jQuery(".dslca-header").data("default-section"),l={};l.action="dslc-ajax-display-module-options",l.dslc="active",l.dslc_module_id=e,l.dslc_post_id=jQuery(".dslca-container").data("data-post-id"),d.each(function(){var e=jQuery(this),s=e.data("id"),d=e.val();l[s]=d}),jQuery(".dslca-wp-editor-actions").hide(),jQuery(".dslca-wp-editor-notification").show(),jQuery.post(DSLCAjax.ajaxurl,l,function(e){jQuery(".dslca-save-composer-hook").css({visibility:"hidden"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"hidden"}),dslc_show_section(".dslca-module-edit"),jQuery("body").hasClass("rtl")?jQuery(".dslca-module-edit-options-inner").html(e.output):jQuery(".dslca-module-edit-options-inner .jspPane").html(e.output),jQuery(".dslca-module-edit-options-tabs").html(e.output_tabs),jQuery(".dslca-header .dslca-options-filter-hook").show(),jQuery('.dslca-module-edit-option[data-section="'+o+'"]').length?(jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+o+'"]').show(),jQuery('.dslca-header .dslca-options-filter-hook[data-section="'+o+'"]').trigger("click")):(jQuery(".dslca-header .dslca-options-filter-hook:first").hide(),jQuery(".dslca-header .dslca-options-filter-hook:first").next(".dslca-options-filter-hook").trigger("click")),jQuery(".dslca-module-edit-actions").show(),jQuery(".dslca-wp-editor-notification").hide(),jQuery(".dslca-wp-editor-actions").show(),jQuery(".dslca-header .dslca-go-to-section-hook").hide(),jQuery(".dslca-row-edit-actions").hide(),dslc_module_options_color(),dslc_modules_options_box_shadow_color(),dslc_modules_options_text_shadow_color(),dslc_module_options_numeric();var s=jQuery(".dslca-module-options-front",".dslca-module-being-edited").children().clone();jQuery(".dslca-module-options-front-backup").html("").append(s)})}function dslc_module_options_scrollbar(){dslcDebug&&console.log("dslc_module_options_scrollbar");var e=0;if(jQuery(".dslca-module-edit-option:visible").each(function(){e+=jQuery(this).outerWidth(!0)+1}),e>jQuery(".dslca-module-edit-options").width()?jQuery(".dslca-module-edit-options-wrapper").width(e):jQuery(".dslca-module-edit-options-wrapper").width("auto"),!jQuery("body").hasClass("rtl")&&jQuery(".dslca-module-edit-options-inner").data("jsp")){var s=jQuery(".dslca-module-edit-options-inner").data("jsp");s.reinitialise()}}function dslc_module_options_section_filter(e){dslcDebug&&console.log("dslc_module_options_section_filter"),jQuery(".dslca-module-edit-option").hide(),jQuery('.dslca-module-edit-option[data-section="'+e+'"]').show(),dslc_module_options_tab_filter()}function dslc_module_options_tab_filter(e){dslcDebug&&console.log("dslc_module_options_tab_filter");var s=jQuery(".dslca-options-filter-hook.dslca-active").data("section");e="undefined"!=typeof e?e:jQuery('.dslca-module-edit-options-tab-hook[data-section="'+s+'"]:first');var d=e.data("id");jQuery(".dslca-module-edit-options-tab-hook").removeClass("dslca-active"),e.addClass("dslca-active"),jQuery(".dslca-module-edit-options-tabs").show(),jQuery(".dslca-module-edit-options-tab-hook").hide(),jQuery('.dslca-module-edit-options-tab-hook[data-section="'+s+'"]').show(),d&&(jQuery(".dslca-module-edit-option").hide(),jQuery('.dslca-module-edit-option[data-tab="'+d+'"]').show(),dslc_module_options_scrollbar(),dslc_module_options_hideshow_tabs(),jQuery(".dslca-module-edit-options-tab-hook:visible").length<2?jQuery(".dslca-module-edit-options-tabs").hide():jQuery(".dslca-module-edit-options-tabs").show(),d==DSLCString.str_res_tablet+"_responsive"&&(jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet"),jQuery("body").addClass("dslc-res-tablet")),d==DSLCString.str_res_phone+"_responsive"&&(jQuery("body").removeClass("dslc-res-big dslc-res-smaller-monitor dslc-res-phone dslc-res-tablet"),jQuery("body").addClass("dslc-res-phone")),(d==DSLCString.str_res_tablet+"_responsive"||d==DSLCString.str_res_phone+"_responsive")&&(jQuery(".dslca-container-loader").show(),dslc_module_output_altered(function(){jQuery(".dslca-container-loader").hide()})))}function dslc_module_options_hideshow_tabs(){dslcDebug&&console.log("dslc_module_options_hideshow_tabs");var e=jQuery(".dslca-options-filter-hook.dslca-active").data("section");if("styling"==e){var s=(jQuery(".dslca-module-edit"),!0),d=!0,o=!0,l=!0,t=!0,a=!0,i=!0,c=!0,n=!0,r=!0,u=!0,m=!0,h=!0,p=!0,_=!0,y=!0,f=!0,g=!0,j=!0,v=!0,Q=!0,b=!0,w=!0,k=!0,C=!0;jQuery('.dslca-module-edit-field[value="main_heading"]').is(":checked")||(s=!1),jQuery('.dslca-module-edit-field[value="filters"]').is(":checked")||(d=!1),jQuery('.dslca-module-edit-field[value="arrows"]').is(":checked")||(o=!1),jQuery('.dslca-module-edit-field[value="circles"]').is(":checked")||(l=!1),"carousel"!=jQuery('.dslca-module-edit-field[data-id="type"]').val()&&(o=!1,l=!1),"disabled"==jQuery('.dslca-module-edit-field[data-id="pagination_type"]').val()&&(t=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="thumbnail"]').is(":checked")||(a=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="title"]').is(":checked")&&(i=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="excerpt"]').is(":checked")||(c=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="meta"]').is(":checked")||(n=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="button"]').is(":checked")&&(r=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="categories"]').is(":checked")||(u=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="separator"]').is(":checked")||(h=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="count"]').is(":checked")||(m=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="tags"]').is(":checked")||(p=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="social"]').is(":checked")||(_=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="position"]').is(":checked")||(y=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="icon"]').is(":checked")&&(f=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').length&&!jQuery('.dslca-module-edit-field[data-id*="elements"][value="content"]').is(":checked")&&(g=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="price"]').is(":checked")||(j=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="price_2"]').is(":checked")||(v=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="addtocart"]').is(":checked")||(Q=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="details"]').is(":checked")||(b=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="quote"]').is(":checked")||(w=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_name"]').is(":checked")||(k=!1),jQuery('.dslca-module-edit-field[data-id*="elements"][value="author_position"]').is(":checked")||(C=!1),s?jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="heading_styling"]').hide(),d?jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="filters_styling"]').hide(),o?jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_arrows_styling"]').hide(),l?jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="carousel_circles_styling"]').hide(),t?jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="pagination_styling"]').hide(),a?jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="thumbnail_styling"]').hide(),i?jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="title_styling"]').hide(),c?jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="excerpt_styling"]').hide(),n?jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="meta_styling"]').hide(),r?jQuery('.dslca-module-edit-options-tab-hook[data-id="button_styling"], .dslca-module-edit-options-tab-hook[data-id="primary_button_styling"], .dslca-module-edit-options-tab-hook[data-id="secondary_button_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="button_styling"], .dslca-module-edit-options-tab-hook[data-id="primary_button_styling"], .dslca-module-edit-options-tab-hook[data-id="secondary_button_styling"]').hide(),u?jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="categories_styling"]').hide(),h?jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="separator_styling"]').hide(),m?jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="count_styling"]').hide(),p?jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="tags_styling"]').hide(),y?jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="position_styling"]').hide(),_?jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="social_styling"]').hide(),f?jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="icon_styling"]').hide(),g?jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="content_styling"]').hide(),j?jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="price_styling"]').hide(),v?jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="price_secondary_styling"]').hide(),Q||b?jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="other_styling"]').hide(),w?jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="quote_styling"]').hide(),k?jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="author_name_styling"]').hide(),C?jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').show():jQuery('.dslca-module-edit-options-tab-hook[data-id="author_position_styling"]').hide()}if(jQuery('.dslca-options-filter-hook[data-section="styling"]').hasClass("dslca-active")){if("DSLC_Text_Simple"==jQuery(".dslca-module-being-edited").data("dslc-module-id")||"DSLC_TP_Content"==jQuery(".dslca-module-being-edited").data("dslc-module-id")||"DSLC_Html"==jQuery(".dslca-module-being-edited").data("dslc-module-id")){var x=jQuery('.dslca-module-edit-option[data-id="css_custom"]'),S=x.find("select").val();"enabled"==S?(jQuery('.dslca-module-edit-option[data-section="styling"]').css({visibility:"visible"}),jQuery(".dslca-module-edit-options-tabs").show()):(jQuery('.dslca-module-edit-option[data-section="styling"]').css({visibility:"hidden"}),jQuery(".dslca-module-edit-options-tabs").hide(),x.css({visibility:"visible"}))}}else jQuery(".dslca-module-edit-options-tabs").show();"disabled"==jQuery('select.dslca-module-edit-field[data-id="css_res_t"]').val()?jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css("visibility","hidden"):jQuery('.dslca-module-edit-option[data-id*="css_res_t"]').css("visibility","visible"),"disabled"==jQuery('select.dslca-module-edit-field[data-id="css_res_p"]').val()?jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css("visibility","hidden"):jQuery('.dslca-module-edit-option[data-id*="css_res_p"]').css("visibility","visible"),jQuery('.dslca-module-edit-option[data-id="css_res_p"], .dslca-module-edit-option[data-id="css_res_t"]').css("visibility","visible")}function dslc_module_options_confirm_changes(e){dslcDebug&&console.log("dslc_module_options_confirm_changes"),e="undefined"!=typeof e?e:!1,jQuery(".dslca-module-being-edited").hasClass("dslc-module-DSLC_Sliders")?jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"):(jQuery("body").addClass("dslca-module-saving-in-progress"),dslc_module_output_altered(function(){dslc_update_preset(),jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),jQuery("body").removeClass("dslca-module-saving-in-progress"),jQuery("body").hasClass("rtl")?jQuery(".dslca-module-edit-options-inner").html(""):jQuery(".dslca-module-edit-options-inner .jspPane").html(""),jQuery(".dslca-module-edit-options-tabs").html(""),e&&e()})),dslc_show_section(".dslca-modules"),jQuery(".dslca-header .dslca-options-filter-hook").hide(),jQuery(".dslca-module-edit-actions").hide(),jQuery(".dslca-header .dslca-go-to-section-hook").show(),jQuery(".dslca-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"})}function dslc_module_options_cancel_changes(e){dslcDebug&&console.log("dslc_module_options_cancel_changes"),e="undefined"!=typeof e?e:!1;var s=jQuery(".dslca-module-being-edited"),d=jQuery(".dslca-module-options-front-backup").children().clone();jQuery(".dslca-module-options-front",s).html("").append(d),dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),jQuery("body").hasClass("rtl")?jQuery(".dslca-module-edit-options-inner").html(""):jQuery(".dslca-module-edit-options-inner .jspPane").html(""),jQuery(".dslca-module-edit-options-tabs").html(""),e&&e()}),dslc_show_section(".dslca-modules"),jQuery(".dslca-header .dslca-options-filter-hook").hide(),jQuery(".dslca-module-edit-actions").hide(),jQuery(".dslca-header .dslca-go-to-section-hook").show(),jQuery(".dslca-save-composer-hook").css({visibility:"visible"}),jQuery(".dslca-save-draft-composer-hook").css({visibility:"visible"})}function dslc_module_options_tooltip(){jQuery(document).on("click",".dslca-module-edit-field-ttip-close",function(){jQuery(".dslca-module-edit-field-ttip, .dslca-module-edit-field-icon-ttip").hide()}),jQuery(document).on("click",".dslca-module-edit-field-ttip-hook",function(){var e=jQuery(".dslca-module-edit-field-ttip"),s=e.find(".dslca-module-edit-field-ttip-inner"),d=jQuery(this),o=d.closest(".dslca-module-edit-option").find(".dslca-module-edit-field-ttip-content").html();if(e.is(":visible"))jQuery(".dslca-module-edit-field-ttip").hide();else{s.html(o);var l=d.offset(),t=e.outerHeight(),a=e.outerWidth(),i=l.left-a/2+6,c="50%";0>i&&(c=a/2+i+"px",i=0),jQuery(".dslca-module-edit-field-ttip").show().css({top:l.top-t-20,left:i}),jQuery("head").append(jQuery("<style>.dslca-module-edit-field-ttip:after, .dslca-module-edit-field-ttip:before { left: "+c+" }</style>"))}}),jQuery(document).on("click",".dslca-module-edit-field-icon-ttip-hook",function(){var e=jQuery(".dslca-module-edit-field-icon-ttip"),s=jQuery(this);if(e.is(":visible"))jQuery(".dslca-module-edit-field-icon-ttip").hide();else{var d=s.offset(),o=e.outerHeight(),l=e.outerWidth(),t=d.left-l/2+6,a="50%";0>t&&(a=l/2+t+"px",t=0),jQuery(".dslca-module-edit-field-icon-ttip").show().css({top:d.top-o-20,left:t}),jQuery("head").append(jQuery("<style>.dslca-module-edit-field-icon-ttip:after, .dslca-module-edit-field-icon-ttip:before { left: "+a+" }</style>"))}})}function dslc_module_options_font(){jQuery(document).on("click",".dslca-module-edit-field-font-next",function(e){if(e.preventDefault(),!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var s=jQuery(this).closest(".dslca-module-edit-option-font"),d=jQuery(".dslca-module-edit-field-font",s),o=dslcAllFontsArray.indexOf(d.val()),l=o+1;jQuery(".dslca-module-edit-field-font-suggest",s).text(""),d.val(dslcAllFontsArray[l]).trigger("change"),jQuery(this).addClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-chevron-right").addClass("dslc-icon-refresh dslc-icon-spin")}}),jQuery(document).on("click",".dslca-module-edit-field-font-prev",function(e){if(e.preventDefault(),!jQuery(this).hasClass("dslca-font-loading")&&!jQuery(this).siblings(".dslca-font-loading").length){var s=jQuery(this).closest(".dslca-module-edit-option-font"),d=jQuery(".dslca-module-edit-field-font",s),o=dslcAllFontsArray.indexOf(d.val()),l=o-1;jQuery(".dslca-module-edit-field-font-suggest",s).text(""),0>l&&(l=dslcAllFontsArray.length-1),d.val(dslcAllFontsArray[l]).trigger("change"),jQuery(this).addClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-chevron-left").addClass("dslc-icon-refresh dslc-icon-spin")}}),jQuery(document).on("keyup",".dslca-module-edit-field-font",function(e){var s,d,o,l,t=!1;if(s=jQuery(this),d=s.closest(".dslca-module-edit-option"),38==e.which&&jQuery(".dslca-module-edit-field-font-prev",d).click(),40==e.which&&jQuery(".dslca-module-edit-field-font-next",d).click(),13!=e.which&&38!=e.which&&40!=e.which){o=s.val();var a=new RegExp("^"+o,"i"),i=dslcAllFontsArray.length,c=0;do{if(a.test(dslcAllFontsArray[c])&&!t)var t=dslcAllFontsArray[c];c++}while(i>c);t?(l=t,jQuery(".dslca-module-edit-field-font-suggest",d).show()):(l=o,jQuery(".dslca-module-edit-field-font-suggest",d).hide()),jQuery(".dslca-module-edit-field-font-suggest",d).text(l),l.length&&s.val(l.substring(0,s.val().length))}}),jQuery(document).on("keypress",".dslca-module-edit-field-font",function(e){if(13==e.which){e.preventDefault();var s,d;s=jQuery(this),d=s.closest(".dslca-module-edit-option"),jQuery(this).val(jQuery(".dslca-module-edit-field-font-suggest",d).text()).trigger("change"),jQuery(".dslca-module-edit-field-font-suggest",d).text("")}})}function dslc_module_options_icon(){jQuery(document).on("click",".dslca-module-edit-field-icon-next",function(e){e.preventDefault();var s=jQuery(this).closest(".dslca-module-edit-option-icon"),d=jQuery(".dslca-module-edit-field-icon",s),o=dslcIconsCurrentSet.indexOf(d.val()),l=o+1;jQuery(".dslca-module-edit-field-icon-suggest",s).text(""),d.val(dslcIconsCurrentSet[l]).trigger("change")}),jQuery(document).on("click",".dslca-module-edit-field-icon-prev",function(e){e.preventDefault();var s=jQuery(this).closest(".dslca-module-edit-option-icon"),d=jQuery(".dslca-module-edit-field-icon",s),o=dslcIconsCurrentSet.indexOf(d.val()),l=o-1;jQuery(".dslca-module-edit-field-icon-suggest",s).text(""),0>l&&(l=dslcIconsCurrentSet.length-1),d.val(dslcIconsCurrentSet[l]).trigger("change")}),jQuery(document).on("keyup",".dslca-module-edit-field-icon",function(e){var s,d,o,l,t;s=jQuery(this),d=s.closest(".dslca-module-edit-option"),38==e.which&&jQuery(".dslca-module-edit-field-icon-prev",d).click(),40==e.which&&jQuery(".dslca-module-edit-field-icon-next",d).click(),13!=e.which&&38!=e.which&&40!=e.which&&(o=s.val().toLowerCase(),s.val(o),l=jQuery.grep(dslcIconsCurrentSet,function(e,s){return 0==e.indexOf(o)}),t=l[0],jQuery(".dslca-module-edit-field-icon-suggest",d).text(t))}),jQuery(document).on("keypress",".dslca-module-edit-field-icon",function(e){if(13==e.which){e.preventDefault();var s,d;s=jQuery(this),d=s.closest(".dslca-module-edit-option"),jQuery(this).val(jQuery(".dslca-module-edit-field-icon-suggest",d).text()).trigger("change"),jQuery(".dslca-module-edit-field-icon-suggest",d).text("")}})}function dslc_module_options_text_align(){jQuery(document).on("click",".dslca-module-edit-option-text-align-hook",function(){var e=jQuery(this),s=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").find(".dslca-module-edit-option-text-align-hook"),d=e.data("val"),o=jQuery(this).closest(".dslca-module-edit-option-text-align-wrapper").siblings("input.dslca-module-edit-field");s.removeClass("dslca-active"),e.addClass("dslca-active"),o.val(d).trigger("change")})}function dslc_module_options_checkbox(){jQuery(document).on("click",".dslca-module-edit-option-checkbox-hook, .dslca-modules-section-edit-option-checkbox-hook",function(){var e=jQuery(this),s=e.siblings('input[type="checkbox"]');s.prop("checked")?(s.prop("checked",!1),e.find(".dslca-icon").removeClass("dslc-icon-check").addClass("dslc-icon-check-empty")):(s.prop("checked",!0),e.find(".dslca-icon").removeClass("dslc-icon-check-empty").addClass("dslc-icon-check")),s.change()})}function dslc_module_options_box_shadow(){dslcDebug&&console.log("dslc_module_options_box_shadow"),jQuery(document).on("change",".dslca-module-edit-option-box-shadow-hor, .dslca-module-edit-option-box-shadow-ver, .dslca-module-edit-option-box-shadow-blur, .dslca-module-edit-option-box-shadow-spread, .dslca-module-edit-option-box-shadow-color, .dslca-module-edit-option-box-shadow-inset",function(){var e=jQuery(this).closest(".dslca-module-edit-option"),s=e.find(".dslca-module-edit-field"),d=e.find(".dslca-module-edit-option-box-shadow-hor").val(),o=e.find(".dslca-module-edit-option-box-shadow-ver").val(),l=e.find(".dslca-module-edit-option-box-shadow-blur").val(),t=e.find(".dslca-module-edit-option-box-shadow-spread").val(),a=e.find(".dslca-module-edit-option-box-shadow-color").val(),i=e.find(".dslca-module-edit-option-box-shadow-inset").is(":checked");i=i?" inset":"";var c=d+"px "+o+"px "+l+"px "+t+"px "+a+i;s.val(c).trigger("change")})}function dslc_modules_options_box_shadow_color(){var e,s,d=[];if(d[0]=[],d[1]=[],d[2]=[],d[3]=[],void 0==localStorage.dslcColorpickerPalleteStorage);else for(e=JSON.parse(localStorage.dslcColorpickerPalleteStorage),s=0;s<e.length;s++){var o=Math.floor(s/3);4>o&&d[o].push(e[s])}jQuery(".dslca-module-edit-option-box-shadow-color").each(function(){var e,s,o=jQuery(this),l=o.val();jQuery(this).spectrum({color:l,showInput:!0,allowEmpty:!0,showAlpha:!0,clickoutFiresChange:!0,cancelText:"",chooseText:"",preferredFormat:"rgb",showPalette:!0,palette:d,move:function(d){e=jQuery(this),s=null==d?"transparent":d.toRgbString().replace(/ /g,""),e.val(s).trigger("change")},change:function(d){if(e=jQuery(this),s=null==d?"transparent":d.toRgbString().replace(/ /g,""),e.val(s).trigger("change"),void 0==localStorage.dslcColorpickerPalleteStorage){var o=[s];localStorage.dslcColorpickerPalleteStorage=JSON.stringify(o)}else{var o=JSON.parse(localStorage.dslcColorpickerPalleteStorage);-1==o.indexOf(s)&&o.unshift(s),localStorage.dslcColorpickerPalleteStorage=JSON.stringify(o)}},show:function(e){jQuery("body").addClass("dslca-disable-selection")},hide:function(){jQuery("body").removeClass("dslca-disable-selection")}})})}function dslc_module_options_text_shadow(){dslcDebug&&console.log("dslc_module_options_text_shadow"),jQuery(document).on("change",".dslca-module-edit-option-text-shadow-hor, .dslca-module-edit-option-text-shadow-ver, .dslca-module-edit-option-text-shadow-blur, .dslca-module-edit-option-text-shadow-color",function(){var e=jQuery(this).closest(".dslca-module-edit-option"),s=e.find(".dslca-module-edit-field"),d=e.find(".dslca-module-edit-option-text-shadow-hor").val(),o=e.find(".dslca-module-edit-option-text-shadow-ver").val(),l=e.find(".dslca-module-edit-option-text-shadow-blur").val(),t=e.find(".dslca-module-edit-option-text-shadow-color").val(),a=d+"px "+o+"px "+l+"px "+t;s.val(a).trigger("change")})}function dslc_modules_options_text_shadow_color(){jQuery(".dslca-module-edit-option-text-shadow-color").each(function(){var e,s,d=jQuery(this),o=d.val();jQuery(this).spectrum({color:o,showInput:!0,allowEmpty:!0,showAlpha:!0,clickoutFiresChange:!0,cancelText:"",chooseText:"",preferredFormat:"rgb",move:function(d){e=jQuery(this),s=null==d?"transparent":d.toRgbString().replace(/ /g,""),e.val(s).trigger("change")},change:function(d){e=jQuery(this),s=null==d?"transparent":d.toRgbString().replace(/ /g,""),e.val(s).trigger("change")},show:function(e){jQuery("body").addClass("dslca-disable-selection")},hide:function(){jQuery("body").removeClass("dslca-disable-selection")}})})}function dslc_module_options_color(){dslcDebug&&console.log("dslc_module_options_color");var e,s,d,o,l,t,a,i,c,n=[];if(n[0]=[],n[1]=[],n[2]=[],n[3]=[],void 0==localStorage.dslcColorpickerPalleteStorage);else for(i=JSON.parse(localStorage.dslcColorpickerPalleteStorage),c=0;c<i.length;c++){var r=Math.floor(c/3);4>r&&n[r].push(i[c])}jQuery(".dslca-module-edit-field-colorpicker").each(function(){a=jQuery(this).val(),jQuery(this).spectrum({color:a,showInput:!0,allowEmpty:!0,showAlpha:!0,clickoutFiresChange:!0,cancelText:"",chooseText:"",preferredFormat:"rgb",showPalette:!0,palette:n,move:function(a){e=jQuery(this),o=null==a?"transparent":a.toRgbString(),e.val(o),s=e.data("affect-on-change-el"),d=e.data("affect-on-change-rule"),jQuery(s,".dslca-module-being-edited").css(d,o),l=jQuery(".dslca-module-being-edited"),t=e.data("id"),jQuery('.dslca-module-option-front[data-id="'+t+'"]',l).val(o),l.addClass("dslca-module-change-made")},change:function(a){if(e=jQuery(this),o=null==a?"transparent":a.toRgbString(),e.val(o),s=e.data("affect-on-change-el"),d=e.data("affect-on-change-rule"),jQuery(s,".dslca-module-being-edited").css(d,o),l=jQuery(".dslca-module-being-edited"),t=e.data("id"),jQuery('.dslca-module-option-front[data-id="'+t+'"]',l).val(o),l.addClass("dslca-module-change-made"),void 0==localStorage.dslcColorpickerPalleteStorage){var i=[o];localStorage.dslcColorpickerPalleteStorage=JSON.stringify(i)}else{var i=JSON.parse(localStorage.dslcColorpickerPalleteStorage);-1==i.indexOf(o)&&i.unshift(o),localStorage.dslcColorpickerPalleteStorage=JSON.stringify(i)}},show:function(e){jQuery("body").addClass("dslca-disable-selection")},hide:function(){jQuery("body").removeClass("dslca-disable-selection")}})}),jQuery(".dslca-sp-revert").click(function(){var e=jQuery(".sp-replacer.sp-active").closest(".dslca-module-edit-option").find(".dslca-module-edit-field").data("default");jQuery(this).closest(".sp-container").find(".sp-input").val(e).trigger("change")})}function dslc_module_options_numeric(){dslcDebug&&console.log("dslc_module_options_numeric"),jQuery(".dslca-module-edit-field-slider").each(function(){var e,s,d,o,l,t,a,i,c,n,r;e=jQuery(this),s=e.siblings(".dslca-module-edit-field"),t=e.closest(".dslca-module-edit-option-slider").find(".dslca-module-edit-field-slider-tooltip"),e.slider({min:s.data("min"),max:s.data("max"),step:s.data("increment"),value:s.val(),slide:function(u,m){n=s.data("ext"),d=m.value+n,s.val(d),l=s.data("affect-on-change-el"),o=s.data("affect-on-change-rule").replace(/ /g,""),r=o.split(",");for(var h=0;h<r.length;h++)jQuery(l,".dslca-module-being-edited").css(r[h],d);i=jQuery(".dslca-module-being-edited"),c=s.data("id"),jQuery('.dslca-module-option-front[data-id="'+c+'"]',i).val(m.value),i.addClass("dslca-module-change-made"),t.text(d);var p=e.find(".ui-slider-handle");a=p[0].style.left,t.css({left:a}),dslc_masonry(i),dslc_init_square(),dslc_center(),dslc_init_square(i)},stop:function(e,s){t.hide()},start:function(e,s){t.show(),t.text(d),a=s.handle.style.left,t.css({left:a})}})})}function dslc_module_output_default(e,s){dslcDebug&&console.log("dslc_module_output_default"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-add-module",dslc:"active",dslc_module_id:e,dslc_post_id:jQuery(".dslca-container").data("post-id")},function(e){s(e)})}function dslc_module_output_altered(e){dslcDebug&&console.log("dslc_module_output_altered"),e="undefined"!=typeof e?e:!1;var s=jQuery(".dslca-module-being-edited"),d=s.data("dslc-module-id"),o=jQuery(".dslca-module-options-front textarea",s),l=s.data("module-id"),t={};t.action="dslc-ajax-add-module",t.dslc="active",t.dslc_module_id=d,t.dslc_module_instance_id=l,t.dslc_post_id=jQuery(".dslca-container").data("post-id"),s.hasClass("dslca-preload-preset")?t.dslc_preload_preset="enabled":t.dslc_preload_preset="disabled",s.removeClass("dslca-preload-preset"),o.each(function(){var e=jQuery(this),s=e.data("id"),d=e.val();t[s]=d}),jQuery.post(DSLCAjax.ajaxurl,t,function(d){s.after(d.output).next().addClass("dslca-module-being-edited"),s.remove(),dslc_generate_code(),dslc_show_publish_button(),dslc_carousel(),dslc_masonry(jQuery(".dslca-module-being-edited")),jQuery(".dslca-module-being-edited img").load(function(){dslc_masonry(jQuery(".dslca-module-being-edited")),dslc_center()}),dslc_tabs(),dslc_init_accordion(),dslc_init_square(),dslc_center(),e&&e(d)})}function dslc_module_output_reload(e,s){dslcDebug&&console.log("dslc_module_output_reload"),s="undefined"!=typeof s?s:!1;var d=e.data("dslc-module-id"),o=jQuery(".dslca-module-options-front textarea",e),l=e.data("module-id"),t={};t.action="dslc-ajax-add-module",t.dslc="active",t.dslc_module_id=d,t.dslc_module_instance_id=l,t.dslc_post_id=jQuery(".dslca-container").data("post-id"),t.dslc_preload_preset="enabled",e.removeClass("dslca-preload-preset"),o.each(function(){var e=jQuery(this),s=e.data("id"),d=e.val();t[s]=d}),e.append('<div class="dslca-module-reloading"><span class="dslca-icon dslc-icon-spin dslc-icon-refresh"></span></div>'),jQuery.post(DSLCAjax.ajaxurl,t,function(d){e.after(d.output).next().addClass("dslca-module-being-edited"),e.remove(),dslc_generate_code(),dslc_show_publish_button(),dslc_carousel(),dslc_masonry(jQuery(".dslca-module-being-edited")),jQuery(".dslca-module-being-edited img").load(function(){dslc_masonry(jQuery(".dslca-module-being-edited")),dslc_center()}),dslc_tabs(),dslc_init_accordion(),dslc_init_square(),dslc_center(),s&&s(d),jQuery(".dslca-module-being-edited").removeClass("dslca-module-being-edited")})}function dslc_delete_module(e){dslc_module_delete(e)}function dslc_copy_module(e){dslc_module_copy(e)}function dslc_display_module_options(e){dslc_module_options_show(e)}function dslc_filter_module_options(e){dslc_module_options_section_filter(e)}function dslc_show_module_options_tab(e){dslc_module_options_tab_filter(e)}function dslc_confirm_changes(e){dslc_module_options_confirm_changes(e)}function dslc_cancel_changes(e){dslc_module_options_cancel_changes(e)}function dslc_init_colorpicker(){dslc_module_options_color()}function dslc_init_options_slider(){dslc_module_options_numeric()}function dslc_init_options_scrollbar(){dslc_module_options_scrollbar()}function dslc_module_edit_options_hideshow_tabs(){dslc_module_options_hideshow_tabs()}function dslc_get_module_output(e,s){dslc_module_output_default(e,s)}function dslc_preview_change(e){dslc_module_output_altered(e)}function dslc_reload_module(e,s){dslc_module_output_reload(e,s);
|
3 |
+
}function dslc_template_load(e){dslcDebug&&console.log("dslc_load_template");jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-load-template",dslc:"active",dslc_template_id:e},function(e){jQuery("#dslc-main").html(e.output),dslc_carousel(),dslc_drag_and_drop(),dslc_show_publish_button(),dslc_generate_code()})}function dslc_template_import(){dslcDebug&&console.log("dslc_import_template");jQuery(".dslca-modal-templates-import .dslca-modal-title").css({opacity:0}),jQuery(".dslca-modal-templates-import .dslca-loading").show(),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-import-template",dslc:"active",dslc_template_code:jQuery("#dslca-import-code").val()},function(e){jQuery("#dslc-main").html(e.output),jQuery(".dslca-modal-templates-import .dslca-loading").hide(),jQuery(".dslca-modal-templates-import .dslca-modal-title").css({opacity:1}),dslc_hide_modal("",".dslca-modal-templates-import"),dslc_bg_video(),dslc_center(),dslc_drag_and_drop(),dslc_show_publish_button(),dslc_generate_code()})}function dslc_template_save(){dslcDebug&&console.log("dslc_save_template"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-template",dslc:"active",dslc_template_code:jQuery("#dslca-code").val(),dslc_template_title:jQuery("#dslca-save-template-title").val()},function(e){dslc_hide_modal("",".dslca-modal-templates-save")})}function dslc_template_delete(e){dslcDebug&&console.log("dslc_delete_template"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-delete-template",dslc:"active",dslc_template_id:e},function(s){jQuery('.dslca-template[data-id="'+e+'"]').fadeOut(200,function(){jQuery(this).remove()})})}function dslc_load_template(e){dslc_template_load(e)}function dslc_import_template(){dslc_template_import()}function dslc_save_template(){dslc_template_save()}function dslc_delete_template(e){dslc_template_delete(e)}function dslc_save_composer(){dslcDebug&&console.log("dslc_save_composer");var e=jQuery("#dslca-code").val(),s=jQuery("#dslca-content-for-search").val(),d=jQuery(".dslca-container").data("post-id");jQuery("body").addClass("dslca-saving-in-progress"),jQuery(".dslca-save-composer .dslca-icon").removeClass("dslc-icon-ok").addClass("dslc-icon-spin dslc-icon-spinner"),jQuery.ajax({method:"POST",type:"POST",url:DSLCAjax.ajaxurl,data:{action:"dslc-ajax-save-composer",dslc:"active",dslc_post_id:d,dslc_code:e,dslc_content_for_search:s},timeout:1e4}).done(function(e){"success"==e.status?(jQuery(".dslca-save-composer").fadeOut(250),jQuery(".dslca-save-draft-composer").fadeOut(250)):alert("Something went wrong, please try to save again.")}).fail(function(e){"timeout"==e.statusText?alert("The request timed out after 10 seconds. Please try again."):alert("Something went wrong. Please try again.")}).always(function(e){jQuery(".dslca-save-composer .dslca-icon").removeClass("dslc-icon-spin dslc-icon-spinner").addClass("dslc-icon-ok"),jQuery("body").removeClass("dslca-saving-in-progress")})}function dslc_save_draft_composer(){dslcDebug&&console.log("dslc_save_draft_composer");var e=jQuery("#dslca-code").val(),s=jQuery(".dslca-container").data("post-id");jQuery("body").addClass("dslca-saving-in-progress"),jQuery(".dslca-save-draft-composer .dslca-icon").removeClass("dslc-icon-ok").addClass("dslc-icon-spin dslc-icon-spinner"),jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-draft-composer",dslc:"active",dslc_post_id:s,dslc_code:e},function(e){jQuery(".dslca-save-draft-composer .dslca-icon").removeClass("dslc-icon-spin dslc-icon-spinner").addClass("dslc-icon-save"),"success"==e.status?jQuery(".dslca-save-draft-composer").fadeOut(250):alert("Something went wrong, please try to save again."),jQuery("body").removeClass("dslca-saving-in-progress")})}function dslc_generate_code(){dslcDebug&&console.log("dslc_generate_code");var e,s,d,o,l,t,a,i="",c=12,n=12,r=0,u=0,m="";jQuery("#dslc-main .dslc-modules-area").each(function(){jQuery(".dslc-module-front",this).length?(jQuery(this).removeClass("dslc-modules-area-empty").addClass("dslc-modules-area-not-empty"),jQuery(".dslca-no-content",this).hide()):(jQuery(this).removeClass("dslc-modules-area-not-empty").addClass("dslc-modules-area-empty"),jQuery(".dslca-no-content:not(:visible)",this).show().css({"-webkit-animation-name":"dslcBounceIn","-moz-animation-name":"dslcBounceIn","animation-name":"dslcBounceIn","animation-duration":"0.6s","-webkit-animation-duration":"0.6s",padding:0}).animate({padding:"35px 0"},300))}),jQuery("#dslc-main .dslc-modules-section").each(function(){jQuery(".dslc-modules-area",this).length?jQuery(this).removeClass("dslc-modules-section-empty").addClass("dslc-modules-section-not-empty"):jQuery(this).removeClass("dslc-modules-section-not-empty").addClass("dslc-modules-section-empty")}),jQuery("#dslc-main .dslc-modules-area.dslc-last-col, .dslc-modules-area.dslc-first-col").removeClass("dslc-last-col dslc-first-col"),jQuery("#dslc-main .dslc-module-front.dslc-last-col, .dslc-module-front.dslc-first-col").removeClass("dslc-last-col dslc-first-col"),jQuery("#dslc-main .dslc-modules-section").each(function(){u=0,a=jQuery(this),m="",jQuery(".dslca-modules-section-settings input",a).each(function(){m=m+jQuery(this).data("id")+'="'+jQuery(this).val()+'" '}),i=i+"[dslc_modules_section "+m+"] ",jQuery(".dslc-modules-area",a).each(function(){o=jQuery(this),d=parseInt(o.data("size")),l="no",t="no",u+=d,u==n?(jQuery(this).addClass("dslc-last-col").next(".dslc-modules-area").addClass("dslc-first-col"),u=0,l="yes"):u>n&&(jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col"),u=d,t="yes"),u==d&&(t="yes"),i=i+'[dslc_modules_area last="'+l+'" first="'+t+'" size="'+d+'"] ',jQuery(".dslc-module-front",o).each(function(){s=parseInt(jQuery(this).data("dslc-module-size"));var d="no",o="no";r+=s,r==c?(jQuery(this).addClass("dslc-last-col").next(".dslc-module-front").addClass("dslc-first-col"),r=0,d="yes"):r>c&&(jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col"),r=s,o="yes"),r==c&&(o="yes",jQuery(this).addClass("dslc-last-col").next(".dslc-module-front").addClass("dslc-first-col"),r=0),e=jQuery(this).find(".dslca-module-code").val(),i=i+'[dslc_module last="'+d+'"]'+e+"[/dslc_module] "}),i+="[/dslc_modules_area] "}),i+="[/dslc_modules_section] "}),jQuery("#dslca-code").val(i),jQuery("#dslca-export-code").val(i),dslca_gen_content_for_search()}function dslc_generate_section_code(e){dslcDebug&&console.log("dslc_generate_section_code");var s,d,o,l,t,a,i,c="",n=12,r=0,u=0,m="";u=0;var i=e;return jQuery(".dslca-modules-section-settings input",i).each(function(){m=m+jQuery(this).data("id")+'="'+jQuery(this).val()+'" '}),c=c+"[dslc_modules_section "+m+"] ",jQuery(".dslc-modules-area",i).each(function(){l=jQuery(this),o=parseInt(l.data("size")),t="no",a="no",u+=o,u==n?(jQuery(this).addClass("dslc-last-col").next(".dslc-modules-area").addClass("dslc-first-col"),u=0,t="yes"):u>n&&(jQuery(this).removeClass("dslc-last-col").addClass("dslc-first-col"),u=o,a="yes"),u==o&&(a="yes"),c=c+'[dslc_modules_area last="'+t+'" first="'+a+'" size="'+o+'"] ',jQuery(".dslc-module-front",l).each(function(){d=parseInt(jQuery(this).data("dslc-module-size")),r+=d,r==o&&(jQuery(this).addClass("dslc-last-col").next(".dslc-module-front").addClass("dslc-first-col"),r=0),s=jQuery(this).find(".dslca-module-code").val(),c=c+"[dslc_module]"+s+"[/dslc_module] "}),c+="[/dslc_modules_area] "}),c+="[/dslc_modules_section] "}function dslc_update_preset(){dslcDebug&&console.log("dslc_update_preset");var e=jQuery(".dslca-module-being-edited"),s=e.find('.dslca-module-option-front[data-id="css_load_preset"]').val(),d=e.find(".dslca-module-code").val(),o=e.data("dslc-module-id");"none"!==s&&jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-save-preset",dslc_preset_name:s,dslc_preset_code:d,dslc_module_id:o},function(s){jQuery(".dslc-module-front:not(#"+e.attr("id")+')[data-dslc-module-id="'+e.data("dslc-module-id")+'"][data-dslc-preset="'+e.data("dslc-preset")+'"]').each(function(){dslc_module_output_reload(jQuery(this))})})}function dslc_dm_get_defaults(e){dslcDebug&&console.log("dslc_dm_get_defaults");var s=e.find(".dslca-module-code").val();jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-ajax-dm-module-defaults",dslc:"active",dslc_modules_options:s},function(e){jQuery(".dslca-prompt-modal textarea").val(e.output)})}function dslca_gen_content_for_search(){dslcDebug&&console.log("dslca_gen_content_for_search");var e=jQuery("#dslca-content-for-search"),s=e.val(),d="";jQuery("#dslc-main .dslca-editable-content").each(function(){d+=jQuery(this).html().replace(/\s+/g," ").trim()+" "}),e.val(d),s!==d&&dslc_show_publish_button()}function dslca_draggable_calc_center(e){dslcDebug&&console.log("dslca_draggable_calc_center"),jQuery(".dslc-modules-section-inner").sortable("option","cursorAt",{top:e.outerHeight()/2,left:e.outerWidth()/2})}function dslc_editable_content_gen_code(e){dslcDebug&&console.log("dslc_editable_content_gen_code");var s,d,o;s=e.closest(".dslc-module-front"),d=e.html().trim().replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea"),o=e.data("id"),jQuery('.dslca-module-option-front[data-id="'+o+'"]',s).val(d),dslc_show_publish_button()}var dslcRegularFontsArray=DSLCFonts.regular,dslcGoogleFontsArray=DSLCFonts.google,dslcAllFontsArray=dslcRegularFontsArray.concat(dslcGoogleFontsArray),dslcIconsCurrentSet=DSLCIcons.fontawesome,dslcDebug=!1;jQuery(document).ready(function(e){jQuery("body").hasClass("rtl")||jQuery(".dslca-module-edit-options-inner").jScrollPane(),e("body").addClass("dslca-enabled dslca-drag-not-in-progress"),e(".dslca-invisible-overlay").hide(),e(".dslca-section").eq(0).show(),dslc_drag_and_drop(),dslc_generate_code(),e(document).on("click",".dslca-currently-editing",function(){var s,d=!1,o=!1;e(".dslca-module-being-edited").length?(d=e(".dslca-module-being-edited"),s="#5890e5"):e(".dslca-modules-section-being-edited").length&&(d=e(".dslca-modules-section-being-edited"),s="#eabba9"),d&&(o=d.offset().top-100,0>o&&(o=0),e("html, body").animate({scrollTop:o},300,function(){d.animate({"outline-color":s},70,function(){d.animate({"outline-color":"transparent"},70,function(){d.animate({"outline-color":s},70,function(){d.animate({"outline-color":"transparent"},70,function(){d.removeAttr("style")})})})})}))}),e(document).on("click",".dslca-hide-composer-hook",function(){dslc_hide_composer()}),e(document).on("click",".dslca-show-composer-hook",function(){dslc_show_composer()}),e(document).on("click",".dslca-go-to-modules-hook",function(e){e.preventDefault(),dslc_show_section(".dslca-modules")}),e(document).on("click",".dslca-go-to-section-hook",function(s){s.preventDefault();var d=e(this).data("section");dslc_show_section(d),e(this).addClass("dslca-active").siblings(".dslca-go-to-section-hook").removeClass("dslca-active")}),e(document).on("click",".dslca-close-composer-hook",function(s){s.preventDefault(),e("body").hasClass("dslca-saving-in-progress")||dslc_js_confirm("disable_lc",'<span class="dslca-prompt-modal-title">'+DSLCString.str_exit_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_exit_descr+"</span>",e(this).attr("href"))}),e(document).on("click",".dslca-submit",function(){jQuery(this).closest("form").submit()}),e(document).on("click",".dslca-section-title",function(s){s.stopPropagation(),e(".dslca-section-title-filter",this).length&&(dslc_generate_filters(),e(".dslca-section-title-filter-options").slideToggle(300))}),e(document).on("click",".dslca-section-title-filter-options span",function(s){s.stopPropagation();var d=e(this).data("origin"),o=e(this).closest(".dslca-section");o.hasClass("dslca-templates-load")?e(".dslca-section-title-filter-curr",o).text(e(this).text()+" TEMPLATES"):e(".dslca-section-title-filter-curr",o).text(e(this).text()+" MODULES"),e(".dslca-section-scroller-inner").css({left:0}),dslc_filter_origin(d,o)})}),jQuery(document).ready(function(e){e(document).on("click",".dslca-section-scroller-prev",function(s){s.preventDefault(),dslc_scroller_prev(e(this).closest(".dslca-section").find(".dslca-section-scroller"))}),e(document).on("click",".dslca-section-scroller-next",function(s){s.preventDefault(),dslc_scroller_next(e(this).closest(".dslca-section").find(".dslca-section-scroller"))})}),jQuery(window).load(function(){dslc_scroller_init(),jQuery(window).resize(function(){dslc_scroller_init()})}),jQuery(document).ready(function(){dslc_ui_animations()}),jQuery(document).ready(function(e){e(document).on("click",".dslca-open-modal-hook",function(){var s=e(this).data("modal");dslc_show_modal(e(this),s)}),e(document).on("click",".dslca-close-modal-hook",function(){if(!e(this).hasClass("dslca-action-disabled")){var s=e(this).data("modal");dslc_hide_modal(e(this),s)}})}),jQuery(document).ready(function(e){e(document).on("click",".dslca-prompt-modal-cancel-hook",function(e){e.preventDefault();var s=jQuery(".dslca-prompt-modal").data("id"),d=jQuery(".dslca-prompt-modal").data("target");"edit_in_progress"==s&&dslc_module_options_cancel_changes(function(){d.trigger("click")}),dslc_js_confirm_close(),jQuery(".dslca-prompt-modal").data("id","")}),e(document).on("click",".dslca-prompt-modal-confirm-hook",function(s){s.preventDefault();var d=jQuery(".dslca-prompt-modal").data("id"),o=jQuery(".dslca-prompt-modal").data("target"),l=!0;if("edit_in_progress"==d)dslc_module_options_confirm_changes(function(){o.trigger("click")});else if("disable_lc"==d)window.location=o;else if("delete_module"==d){var t=o.closest(".dslc-module-front");dslc_delete_module(t)}else if("delete_modules_area"==d){var a=o.closest(".dslc-modules-area");dslc_modules_area_delete(a)}else"delete_modules_section"==d?dslc_row_delete(o.closest(".dslc-modules-section")):"export_modules_section"==d||"import_modules_section"==d&&(dslc_row_import(e(".dslca-prompt-modal textarea").val()),e(".dslca-prompt-modal-confirm-hook span").css({opacity:0}),e(".dslca-prompt-modal-confirm-hook .dslca-loading").show(),l=!1);l&&dslc_js_confirm_close(),jQuery(".dslca-prompt-modal").data("id","")}),e(window).on("keydown",function(s){13==s.which?e(".dslca-prompt-modal-active").length&&e(".dslca-prompt-modal-confirm-hook").trigger("click"):27==s.which&&e(".dslca-prompt-modal-active").length&&e(".dslca-prompt-modal-cancel-hook").trigger("click")})}),jQuery(document).ready(function(e){dslc_row_edit_colorpicker_init(),dslc_row_edit_slider_init(),e("#dslc-main .dslc-modules-section").length||e("#dslca-tut-page").length||dslc_row_add(),e(document).on("click",".dslca-add-modules-section-hook",function(){var s=e(this);e(this).hasClass("dslca-action-disabled")||(s.find(".dslca-icon").removeClass("dslc-icon-align-justify").addClass("dslc-icon-spinner dslc-icon-spin"),dslc_row_add(function(){s.find(".dslca-icon").removeClass("dslc-icon-spinner dslc-icon-spin").addClass("dslc-icon-align-justify")}))}),e(document).on("click",".dslca-edit-modules-section-hook",function(){e(this).hasClass("dslca-action-disabled")||(jQuery(".dslca-module-being-edited.dslca-module-change-made").length?dslc_js_confirm("edit_in_progress",'<span class="dslca-prompt-modal-title">'+DSLCString.str_module_curr_edit_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_module_curr_edit_descr+"</span>",jQuery(this)):jQuery(".dslca-modules-section-being-edited.dslca-modules-section-change-made").length?dslc_js_confirm("edit_in_progress",'<span class="dslca-prompt-modal-title">'+DSLCString.str_row_curr_edit_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_row_curr_edit_descr+"</span>",jQuery(this)):dslc_row_edit(e(this).closest(".dslc-modules-section")))}),e(document).on("click",".dslca-row-edit-save",function(){dslc_row_edit_confirm(),e(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active"),dslc_responsive_classes(!0)}),e(document).on("click",".dslca-row-edit-cancel",function(){dslc_row_edit_cancel(),e(".dslca-row-options-filter-hook.dslca-active").removeClass("dslca-active"),dslc_responsive_classes(!0)}),e(document).on("click",".dslca-copy-modules-section-hook",function(){e(this).hasClass("dslca-action-disabled")||dslc_row_copy(e(this).closest(".dslc-modules-section"))}),e(document).on("click",".dslca-import-modules-section-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||(e(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span><span>'+DSLCString.str_import+'</span><div class="dslca-loading followingBallsGWrap"><div class="followingBallsG_1 followingBallsG"></div><div class="followingBallsG_2 followingBallsG"></div><div class="followingBallsG_3 followingBallsG"></div><div class="followingBallsG_4 followingBallsG"></div></div>'),dslc_js_confirm("import_modules_section",'<span class="dslca-prompt-modal-title">'+DSLCString.str_import_row_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_import_row_descr+" <br><br><textarea></textarea></span>",e(this)))}),e(document).on("click",".dslca-delete-modules-section-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||dslc_js_confirm("delete_modules_section",'<span class="dslca-prompt-modal-title">'+DSLCString.str_del_row_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_del_row_descr+"</span>",e(this))}),e(document).on("click",".dslca-export-modules-section-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||(e(".dslca-prompt-modal-cancel-hook").hide(),e(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>'+DSLCString.str_ok),dslc_js_confirm("export_modules_section",'<span class="dslca-prompt-modal-title">'+DSLCString.str_export_row_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_export_row_descr+" <br><br><textarea></textarea></span>",e(this)),e(".dslca-prompt-modal textarea").val(dslc_generate_section_code(e(this).closest(".dslc-modules-section"))))})}),jQuery(document).ready(function(e){e(document).on("click",".dslca-add-modules-area-hook",function(e){e.preventDefault(),dslc_modules_area_add(jQuery(this).closest(".dslc-modules-section").find(".dslc-modules-section-inner"))}),e(document).on("click",".dslca-delete-modules-area-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||dslc_js_confirm("delete_modules_area",'<span class="dslca-prompt-modal-title">'+DSLCString.str_del_area_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_del_area_descr+"</span>",e(this))}),e(document).on("click",".dslca-copy-modules-area-hook",function(s){if(s.preventDefault(),!e(this).hasClass("dslca-action-disabled")){var d=e(this).closest(".dslc-modules-area");dslc_copy_modules_area(d)}}),e(document).on("click",".dslca-change-width-modules-area-options span",function(){e(this).hasClass("dslca-action-disabled")||dslc_modules_area_width_set(jQuery(this).closest(".dslc-modules-area"),jQuery(this).data("size"))}),e(document).on("click",".dslca-change-width-modules-area-hook",function(s){if(s.preventDefault(),!e(this).hasClass("dslca-action-disabled"))if(e(".dslca-change-width-modules-area-options:visible",this).length)e(".dslca-change-width-modules-area-options",this).hide();else{e(".dslca-change-width-modules-area-options .dslca-active-width").removeClass("dslca-active-width");var d=e(this).closest(".dslc-modules-area").data("size");e('.dslca-change-width-modules-area-options span[data-size="'+d+'"]').addClass("dslca-active-width"),e(".dslca-change-width-modules-area-options",this).show()}})}),jQuery(document).ready(function(e){dslc_module_options_tooltip(),dslc_module_options_font(),dslc_module_options_icon(),dslc_module_options_text_align(),dslc_module_options_checkbox(),dslc_module_options_box_shadow(),dslc_module_options_text_shadow(),e(".dslca-module-edit-form").submit(function(e){e.preventDefault(),dslc_module_output_altered()}),e(document).on("click",".dslca-copy-module-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||dslc_module_copy(e(this).closest(".dslc-module-front"))}),e(document).on("click",".dslca-delete-module-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||dslc_js_confirm("delete_module",'<span class="dslca-prompt-modal-title">'+DSLCString.str_del_module_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_del_module_descr+"</span>",e(this))}),e(document).on("click",".dslca-change-width-module-hook",function(s){s.preventDefault(),e(this).hasClass("dslca-action-disabled")||(e(".dslca-change-width-module-options",this).toggle(),e(this).closest(".dslca-module-manage").toggleClass("dslca-module-manage-change-width-active"))}),e(document).on("click",".dslca-change-width-module-options span",function(){dslc_module_width_set(jQuery(this).closest(".dslc-module-front"),jQuery(this).data("size"))}),e(document).on("click",".dslca-module-edit-hook",function(s){if(s.preventDefault(),!e("body").hasClass("dslca-composer-hidden"))if(e(".dslca-module-being-edited.dslca-module-change-made").length)dslc_js_confirm("edit_in_progress",'<span class="dslca-prompt-modal-title">'+DSLCString.str_module_curr_edit_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_module_curr_edit_descr+"</span>",e(this));else if(e(".dslca-modules-section-being-edited.dslca-modules-section-change-made").length)dslc_js_confirm("edit_in_progress",'<span class="dslca-prompt-modal-title">'+DSLCString.str_row_curr_edit_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_row_curr_edit_descr+"</span>",e(this));else{e(".dslca-modules-section-being-edited").length&&e(".dslca-module-edit-cancel").trigger("click");var d=e(this).closest(".dslc-module-front"),o=d.data("dslc-module-id");d.find(".dslca-module-code").val();e(".dslca-module-being-edited").removeClass("dslca-module-being-edited"),d.addClass("dslca-module-being-edited"),dslc_module_options_show(o)}}),e(document).on("click",".dslca-module-edit-options-tab-hook",function(){dslc_module_options_tab_filter(e(this))}),e(document).on("click",".dslca-options-filter-hook",function(s){var d=jQuery(".dslca-options-filter-hook.dslca-active").data("section");e(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active"),e(this).addClass("dslca-active"),dslc_module_options_section_filter(jQuery(this).data("section")),"responsive"==d&&(jQuery(".dslca-container-loader").show(),dslc_responsive_classes(),dslc_module_output_altered(function(){jQuery(".dslca-container-loader").hide()}))}),e(document).on("click",".dslca-module-edit-save",function(){dslc_module_options_confirm_changes(),e(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active"),dslc_responsive_classes(!0)}),e(document).on("click",".dslca-module-edit-cancel",function(){dslc_module_options_cancel_changes(),e(".dslca-options-filter-hook.dslca-active").removeClass("dslca-active"),dslc_responsive_classes(!0)}),jQuery(document).on("click",".dslca-module-edit-field-icon-switch-set",function(){var e=jQuery(".dslca-module-edit-field-icon-switch-sets"),s=jQuery(this);if(jQuery(".dslca-module-edit-field-icon-switch-set.dslca-active").removeClass("dslca-active"),s.addClass("dslca-active"),e.is(":visible"))jQuery(".dslca-module-edit-field-icon-switch-sets").hide();else{var d=s.find(".dslca-module-edit-field-icon-curr-set").text();jQuery(".dslca-module-edit-field-icon-switch-sets span.dslca-active").removeClass("dslca-active"),jQuery('.dslca-module-edit-field-icon-switch-sets span[data-set="'+d+'"]').addClass("dslca-active");var o=s.offset(),l=e.outerHeight(),t=e.outerWidth(),a=o.left-t/2+6,i="50%";0>a&&(i=t/2+a+"px",a=0),jQuery(".dslca-module-edit-field-icon-switch-sets").show().css({top:o.top-l-20,left:a}),jQuery("head").append(jQuery("<style>.dslca-module-edit-field-icon-switch-sets:after, .dslca-module-edit-field-icon-switch-sets:before { left: "+i+" }</style>"))}}),jQuery(document).on("click",".dslca-module-edit-field-icon-switch-sets span",function(){var s=e(this).data("set");dslcIconsCurrentSet=DSLCIcons[s],e(this).addClass("dslca-active").siblings(".dslca-active").removeClass("dslca-active"),e(".dslca-module-edit-field-icon-switch-set.dslca-active .dslca-module-edit-field-icon-curr-set").text(s),e(".dslca-module-edit-field-icon-switch-set.dslca-active").closest(".dslca-module-edit-option").find(".dslca-module-edit-field-icon-next").trigger("click"),e(".dslca-module-edit-field-icon-switch-sets").hide()}),jQuery(document).on("mouseenter",".dslca-module-edit-option-icon",function(){var s=e(this).find(".dslca-module-edit-field-icon-curr-set").text();dslcIconsCurrentSet=DSLCIcons[s]})}),jQuery(document).ready(function(e){e(document).on("click",".dslca-template",function(){dslc_template_load(jQuery(this).data("id"))}),e(".dslca-template-import-form").submit(function(e){e.preventDefault(),dslc_template_import()}),e(".dslca-template-save-form").submit(function(e){e.preventDefault(),dslc_template_save()}),e(document).on("click",".dslca-delete-template-hook",function(s){s.stopPropagation(),dslc_template_delete(e(this).data("id"))})}),jQuery(document).ready(function(e){e(document).on("click",".dslca-save-composer-hook",function(){e("body").hasClass("dslca-module-saving-in-progress")||e("body").hasClass("dslca-saving-in-progress")||dslc_save_composer()}),e(document).on("click",".dslca-save-draft-composer-hook",function(){e("body").hasClass("dslca-module-saving-in-progress")||e("body").hasClass("dslca-saving-in-progress")||dslc_save_draft_composer()})}),jQuery(document).ready(function(e){e(document).on("keypress",'.dslca-module-edit-field[name="css_save_preset"]',function(s){if(13==s.which){var d=e(this).val(),o=d.toLowerCase().replace(/\s/g,"-");e("body").addClass("dslca-new-preset-added"),e('.dslca-module-edit-field[name="css_load_preset"]').append('<option value="'+o+'">'+o+"</option>").val(o).trigger("change"),e(this).val("")}}),e(document).on("change",'.dslca-module-edit-field[name="css_load_preset"]',function(s){e(".dslca-module-being-edited").addClass("dslca-preload-preset")})}),jQuery(document).ready(function(e){e(document).on("click",".dslca-module-get-defaults-hook",function(){var s=jQuery(this).closest(".dslc-module-front"),d=(dslc_dm_get_defaults(s),'<span class="dslca-prompt-modal-title">Module Defaults</span><span class="dslca-prompt-modal-descr">The code bellow is used to alter the defaults.</span><textarea></textarea><br><br>');e(".dslca-prompt-modal-cancel-hook").hide(),e(".dslca-prompt-modal-confirm-hook").html('<span class="dslc-icon dslc-icon-ok"></span>OK'),dslc_js_confirm("dev_mode_get_default",d,s)}),e(document).on("click","a:not(.dslca-link)",function(e){e.preventDefault()}),e(document).unbind("keydown").bind("keydown",function(s){var d=!1;if(8===s.keyCode){var o=s.srcElement||s.target;d="INPUT"===o.tagName.toUpperCase()&&("TEXT"===o.type.toUpperCase()||"PASSWORD"===o.type.toUpperCase()||"FILE"===o.type.toUpperCase())||"TEXTAREA"===o.tagName.toUpperCase()||e(o).hasClass("dslca-editable-content")||e(o).hasClass("dslc-tabs-nav-hook-title")||e(o).hasClass("dslc-accordion-title")?o.readOnly||o.disabled:!0}d&&s.preventDefault()}),e(document).on("keydown",function(e){116==(e.which||e.keyCode)&&(jQuery(".dslca-save-composer-hook").is(":visible")||jQuery(".dslca-module-edit-save").is(":visible"))&&(e.preventDefault(),dslc_js_confirm("disable_lc",'<span class="dslca-prompt-modal-title">'+DSLCString.str_refresh_title+'</span><span class="dslca-prompt-modal-descr">'+DSLCString.str_refresh_descr+"</span>",document.URL))}),e(document).on("click",".dslca-refresh-module-hook",function(s){e(this).css({"-webkit-animation-name":"dslcRotate","-moz-animation-name":"dslcRotate","animation-name":"dslcRotate","animation-duration":"0.6s","-webkit-animation-duration":"0.6s","animation-iteration-count":"infinite","-webkit-animation-iteration-count":"infinite"}),e(this).closest(".dslc-module-front").addClass("dslca-module-being-edited"),dslc_module_output_altered(function(){e(".dslca-module-being-edited").removeClass("dslca-module-being-edited")})})}),window.onbeforeunload=function(){},jQuery(document).ready(function(e){e(document).on("change",".dslca-modules-section-edit-field",function(){var s,d,o,l,t,a,i,c;if(s=e(this),d=s.data("id"),l=s.val(),t=l,a=s.data("css-rule"),o=e(".dslca-modules-section-being-edited"),c=o,i=e('.dslca-modules-section-settings input[data-id="'+d+'"]',o),o.addClass("dslca-modules-section-change-made"),s.hasClass("dslca-modules-section-edit-field-upload")&&l&&l.length&&(l=s.data("dslca-img-url")),"background-image"==a&&(l='url("'+l+'")',dslc_bg_video()),"bg_image_attachment"==d&&o.removeClass("dslc-init-parallax"),"border-top"==d||"border-right"==d||"border-bottom"==d||"border-left"==d){var n=e('.dslca-modules-section-settings input[data-id="border_style"]').val();i=e('.dslca-modules-section-settings input[data-id="border"]',o),t="";var r=s.closest(".dslca-modules-section-edit-option-checkbox-wrapper");r.find(".dslca-modules-section-edit-field-checkbox").each(function(){e(this).is(":checked")&&("border-top"==e(this).data("id")?t+="top ":"border-right"==e(this).data("id")?t+="right ":"border-bottom"==e(this).data("id")?t+="bottom ":"border-left"==e(this).data("id")&&(t+="left "))}),s.is(":checked")?"border-top"==s.data("id")?o.css({"border-top-style":n}):"border-right"==s.data("id")?o.css({"border-right-style":n}):"border-bottom"==s.data("id")?o.css({"border-bottom-style":n}):"border-left"==s.data("id")&&o.css({"border-left-style":n}):"border-top"==s.data("id")?o.css({"border-top-style":"hidden"}):"border-right"==s.data("id")?o.css({"border-right-style":"hidden"}):"border-bottom"==s.data("id")?o.css({"border-bottom-style":"hidden"}):"border-left"==s.data("id")&&o.css({"border-left-style":"hidden"})}else if(s.hasClass("dslca-modules-section-edit-field-checkbox")){var u=e(this).closest(".dslca-modules-section-edit-option-checkbox-wrapper").find(".dslca-modules-section-edit-field-checkbox"),m="";u.each(function(){e(this).prop("checked")&&(m+=e(this).data("val")+" ")});var t=m;"show_on"==s.data("id")&&(console.log(m),-1!==m.indexOf("desktop")?e(".dslca-modules-section-being-edited").removeClass("dslc-hide-on-desktop"):e(".dslca-modules-section-being-edited").addClass("dslc-hide-on-desktop"),-1!==m.indexOf("tablet")?e(".dslca-modules-section-being-edited").removeClass("dslc-hide-on-tablet"):e(".dslca-modules-section-being-edited").addClass("dslc-hide-on-tablet"),-1!==m.indexOf("phone")?e(".dslca-modules-section-being-edited").removeClass("dslc-hide-on-phone"):e(".dslca-modules-section-being-edited").addClass("dslc-hide-on-phone"))}else if("bg_image_attachment"==d&&"parallax"==l||"type"==d)"bg_image_attachment"==d?(o.addClass("dslc-init-parallax"),dslc_parallax()):"type"==d&&("full"==l?o.addClass("dslc-full"):o.removeClass("dslc-full"),dslc_masonry());else if("columns_spacing"==d)"nospacing"==l?o.addClass("dslc-no-columns-spacing"):o.removeClass("dslc-no-columns-spacing");else if("custom_class"==d);else if("custom_id"==d);else if("bg_video"==d){if(jQuery(".dslc-bg-video video",o).remove(),l&&l.length){var h=l;h=h.replace(".webm",""),h=h.replace(".mp4",""),jQuery(".dslc-bg-video-inner",o).html('<video><source type="video/mp4" src="'+h+'.mp4" /><source type="video/webm" src="'+h+'.webm" /></video>'),dslc_bg_video()}}else if("bg_image_thumb"==d)if("enabled"==t){if(jQuery("#dslca-post-data-thumb").length){var p="url('"+jQuery("#dslca-post-data-thumb").val()+"')";c.css(a,p)}}else"disabled"==t&&c.css(a,"none");else s.data("css-element")&&(c=jQuery(s.data("css-element"),o)),c.css(a,l);i.val(t),dslc_generate_code(),dslc_show_publish_button()}),jQuery(document).on("blur",".dslca-editable-content",function(){jQuery("body").hasClass("dslca-composer-hidden")||"simple"!=jQuery(this).data("type")||dslc_editable_content_gen_code(jQuery(this))}).on("paste",".dslca-editable-content",function(){if(!jQuery("body").hasClass("dslca-composer-hidden")&&"simple"==jQuery(this).data("type")){var e=jQuery(this);setTimeout(function(){"simple"==e.data("type")&&e.html(e.text()),dslc_editable_content_gen_code(jQuery(this))},1)}}).on("focus",".dslca-editable-content",function(){
|
4 |
+
"simple"==jQuery(this).data("type")&&(jQuery("body").hasClass("dslca-composer-hidden")?e(this).trigger("blur"):jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click"))}).on("keyup",".dslca-editable-content",function(){"simple"==jQuery(this).data("type")&&jQuery(this).closest(".dslc-module-front").addClass("dslca-module-change-made")}),e(document).on("blur",".dslc-editable-area",function(s){var d=e(this).closest(".dslc-module-front"),o=e(this).data("dslc-option-id"),l=e(this).html();jQuery('.dslca-module-options-front textarea[data-id="'+o+'"]',d).val(l),dslc_module_output_altered()}),e(document).on("change",".dslca-module-edit-field",function(){dslc_module_options_hideshow_tabs();var s="",d="",o=e(this),l=o.data("id"),t=o.closest(".dslca-module-edit-option"),a=e(".dslca-module-being-edited"),i=a.data("dslc-module-id");jQuery(".dslca-module-options-front textarea",a);if(a.addClass("dslca-module-change-made"),"active"==jQuery(this).closest(".dslca-module-edit-option").data("refresh-on-change")){if(t.find(".dslca-module-edit-option-checkbox-wrapper").length){var c=e('input[type="checkbox"]',t);c.each(function(){e(this).prop("checked")&&(s=s+e(this).val()+" ")})}else if(o.hasClass("dslca-module-edit-option-radio"))var s=e(".dslca-module-edit-field:checked",o).val();else{var s=o.val();if("orientation"==l&&"horizontal"==s){var n=jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field-slider");n.slider({value:40}).slider("option","slide")(null,{value:n.slider("value")})}else if("orientation"==l&&"vertical"==s){var n=jQuery(".dslca-module-edit-option-thumb_width .dslca-module-edit-field-slider");n.slider({value:100}).slider("option","slide")(null,{value:n.slider("value")})}}jQuery('.dslca-module-options-front textarea[data-id="'+l+'"]',a).val(s),jQuery(".dslca-container-loader").show(),dslc_module_output_altered(function(){jQuery(".dslca-module-being-edited").addClass("dslca-module-change-made"),"css_load_preset"!=l||jQuery("body").hasClass("dslca-new-preset-added")?jQuery(".dslca-container-loader").hide():(dslc_module_options_show(i),jQuery(".dslca-container-loader").hide()),jQuery("body").removeClass("dslca-new-preset-added")})}else{if(o.hasClass("dslca-module-edit-field-font")){var r=o.val();r+=":400,100,200,300,500,600,700,800,900";var u=o.data("affect-on-change-el"),m=o.data("affect-on-change-rule"),h=o.val(),p=h;o.val().length&&-1!==dslcGoogleFontsArray.indexOf(o.val())?WebFont.load({google:{families:[r]},active:function(e,s){jQuery(".dslca-font-loading").closest(".dslca-module-edit-field-font-next").length?jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right"):jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left"),jQuery(u,".dslca-module-being-edited").css(m,h)},inactive:function(e,s){jQuery(".dslca-font-loading").closest(".dslca-module-edit-field-font-next").length?jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right"):jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left")}}):(jQuery(".dslca-font-loading").closest(".dslca-module-edit-field-font-next").length?jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-right"):jQuery(".dslca-font-loading").removeClass("dslca-font-loading").find(".dslca-icon").removeClass("dslc-icon-spin").addClass("dslc-icon-chevron-left"),jQuery(u,".dslca-module-being-edited").css(m,h))}else if(o.hasClass("dslca-module-edit-field-checkbox")){var c=e('input[type="checkbox"]',t);c.each(function(){e(this).prop("checked")?(s+="solid ",d=d+e(this).val()+" "):s+="none "})}if(!o.hasClass("dslca-module-edit-field-font")){var u=o.data("affect-on-change-el"),m=o.data("affect-on-change-rule"),h=o.val(),p=h;o.hasClass("dslca-module-edit-field-checkbox")&&(h=s,p=d),o.hasClass("dslca-module-edit-field-image")&&(h='url("'+h+'")'),h.length<1&&("background-color"==m||"background"==m)&&(h="transparent"),jQuery(u,".dslca-module-being-edited").css(m,h)}jQuery('.dslca-module-option-front[data-id="'+l+'"]',a).val(p)}}),e(document).on("keyup, blur",".dslca-module-edit-field-numeric",function(){var s,d=e(this),o=d.data("id"),l=(d.closest(".dslca-module-edit-option"),e(".dslca-module-being-edited")),t=(l.data("dslc-module-id"),jQuery(".dslca-module-options-front textarea",l),d.data("affect-on-change-el")),a=d.data("affect-on-change-rule"),i=d.val(),c=i+d.data("ext");if(l.addClass("dslca-module-change-made"),"active"!=jQuery(this).closest(".dslca-module-edit-option").data("refresh-on-change")){s=a.replace(/ /g,"").split(",");for(var n=0;n<s.length;n++)jQuery(t,".dslca-module-being-edited").css(s[n],c);jQuery('.dslca-module-option-front[data-id="'+o+'"]',l).val(i)}}),e(document).on("keyup",".dslca-modules-section-edit-field-numeric",function(){var s,d=e(this),o=d.data("id"),l=(d.closest(".dslca-modules-section-edit-option"),e(".dslca-modules-section-being-edited")),t=d.data("css-rule"),a=d.val(),i=a+d.data("ext");l.addClass("dslca-modules-section-change-made"),s=t.replace(/ /g,"").split(",");for(var c=0;c<s.length;c++)l.css(s[c],i);jQuery('.dslca-modules-section-settings input[data-id="'+o+'"]',l).val(a)})}),jQuery(document).ready(function(e){var s;jQuery(document).on("click",".dslca-module-edit-field-image-add-hook, .dslca-modules-section-edit-field-image-add-hook",function(){var e=jQuery(this);if(e.hasClass("dslca-module-edit-field-image-add-hook"))var d=e.siblings(".dslca-module-edit-field-image"),o=e.siblings(".dslca-module-edit-field-image-remove-hook");else var d=e.siblings(".dslca-modules-section-edit-field-upload"),o=e.siblings(".dslca-modules-section-edit-field-image-remove-hook");var l=!1;s=wp.media.frames.file_frame=wp.media({title:"Choose Image",button:{text:"Confirm"},multiple:l}),s.on("select",function(){var l=s.state().get("selection").first().toJSON();d.val(l.id).data("dslca-img-url",l.url).trigger("change"),e.hide(),o.show()}),s.open()}),jQuery(document).on("click",".dslca-module-edit-field-image-remove-hook, .dslca-modules-section-edit-field-image-remove-hook",function(){var e=jQuery(this);if(e.hasClass("dslca-module-edit-field-image-remove-hook"))var s=e.siblings(".dslca-module-edit-field-image"),d=e.siblings(".dslca-module-edit-field-image-add-hook");else var s=e.siblings(".dslca-modules-section-edit-field-upload"),d=e.siblings(".dslca-modules-section-edit-field-image-add-hook");s.val("").trigger("change"),e.hide(),d.show()}),e(document).on("click",".dslca-wysiwyg-actions-edit-hook",function(){var s=e(this).parent().siblings(".dslca-editable-content"),d=s.closest(".dslc-module-front");if(d.hasClass("dslc-module-handle-like-accordion")){dslc_accordion_generate_code(d.find(".dslc-accordion"));var o=d.find('.dslca-module-option-front[data-id="accordion_content"]').val(),l=o.split("(dslc_sep)"),t=s.closest(".dslc-accordion-item").index(),a=l[t].trim().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}else if(d.hasClass("dslc-module-handle-like-tabs")){dslc_tabs_generate_code(d.find(".dslc-tabs"));var o=d.find('.dslca-module-option-front[data-id="tabs_content"]').val(),l=o.split("(dslc_sep)"),t=s.closest(".dslc-tabs-tab-content").index(),a=l[t].trim().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea")}else var a=d.find('.dslca-module-option-front[data-id="'+s.data("id")+'"]').val().replace(/<lctextarea/g,"<textarea").replace(/<\/lctextarea/g,"</textarea");if("undefined"!=typeof tinymce){var i=tinymce.get("dslcawpeditor");e("#wp-dslcawpeditor-wrap").hasClass("tmce-active")?i.setContent(a,{format:"html"}):jQuery("textarea#dslcawpeditor").val(a),d.hasClass("dslca-module-being-edited")||d.find(".dslca-module-edit-hook").trigger("click"),e(".dslca-wp-editor").show(),s.addClass("dslca-wysiwyg-active"),e("#dslcawpeditor_ifr, #dslcawpeditor").css({height:e(".dslca-wp-editor").height()-350})}}),e(document).on("click",".dslca-wp-editor-save-hook",function(){var s=e(".dslca-wysiwyg-active").closest(".dslc-module-front");if("undefined"!=typeof tinymce){if(e("#wp-dslcawpeditor-wrap").hasClass("tmce-active"))var d=tinymce.get("dslcawpeditor"),o=d.getContent();else var o=e("#dslcawpeditor").val();if(e(".dslca-wp-editor").hide(),e(".dslca-wysiwyg-active").html(o),s.hasClass("dslc-module-handle-like-accordion")){e(".dslca-wysiwyg-active").siblings(".dslca-accordion-plain-content").val(o);var l=s.find(".dslc-accordion");dslc_accordion_generate_code(l)}else if(s.hasClass("dslc-module-handle-like-tabs")){e(".dslca-wysiwyg-active").siblings(".dslca-tab-plain-content").val(o);var t=s.find(".dslc-tabs");dslc_tabs_generate_code(t)}dslc_editable_content_gen_code(e(".dslca-wysiwyg-active")),e(".dslca-wysiwyg-active").removeClass("dslca-wysiwyg-active")}}),e(document).on("click",".dslca-wp-editor-cancel-hook",function(){e(".dslca-wp-editor").hide(),e(".dslca-wysiwyg-active").removeClass("dslca-wysiwyg-active")})});
|
js/main.js
CHANGED
@@ -135,8 +135,20 @@ function dslc_init_accordion() {
|
|
135 |
|
136 |
function dslc_init_lightbox() {
|
137 |
|
|
|
|
|
138 |
jQuery( '.dslc-lightbox-image' ).each(function(){
|
139 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
});
|
141 |
|
142 |
jQuery( '.dslc-lightbox-gallery' ).each(function(){
|
@@ -1028,12 +1040,47 @@ jQuery(document).ready(function($){
|
|
1028 |
* Notification Close
|
1029 |
*/
|
1030 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1031 |
$(document).on( 'click', '.dslc-notification-box-close', function() {
|
1032 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1033 |
opacity : 0
|
1034 |
}, 400, function(){
|
1035 |
$(this).remove();
|
1036 |
});
|
|
|
1037 |
});
|
1038 |
|
1039 |
/**
|
@@ -1156,9 +1203,18 @@ jQuery(document).ready(function($){
|
|
1156 |
e.preventDefault();
|
1157 |
|
1158 |
if ( jQuery(this).closest('.dslc-post').length ) {
|
|
|
1159 |
jQuery(this).closest('.dslc-post').find('.dslc-lightbox-gallery a:first-child').trigger('click');
|
|
|
|
|
|
|
|
|
|
|
|
|
1160 |
} else {
|
|
|
1161 |
jQuery(this).closest('.dslc-module-front').find('.dslc-lightbox-gallery a:first-child').trigger('click');
|
|
|
1162 |
}
|
1163 |
|
1164 |
});
|
135 |
|
136 |
function dslc_init_lightbox() {
|
137 |
|
138 |
+
var type;
|
139 |
+
|
140 |
jQuery( '.dslc-lightbox-image' ).each(function(){
|
141 |
+
|
142 |
+
// Default type
|
143 |
+
type = 'image';
|
144 |
+
|
145 |
+
// Check if video
|
146 |
+
if ( jQuery(this).attr('href').indexOf('youtube.com') >= 0 || jQuery(this).attr('href').indexOf('vimeo.com') >= 0 ) {
|
147 |
+
type = 'iframe';
|
148 |
+
}
|
149 |
+
|
150 |
+
jQuery(this).magnificPopup({ type: type });
|
151 |
+
|
152 |
});
|
153 |
|
154 |
jQuery( '.dslc-lightbox-gallery' ).each(function(){
|
1040 |
* Notification Close
|
1041 |
*/
|
1042 |
|
1043 |
+
$('.dslc-notification-box-has-timeout').each(function(){
|
1044 |
+
|
1045 |
+
var nBox = $(this);
|
1046 |
+
nTimeout = 'none',
|
1047 |
+
moduleID = nBox.closest('.dslc-module-front').data('module-id'),
|
1048 |
+
cookieID = 'nBox' + moduleID;
|
1049 |
+
|
1050 |
+
// Check timeout
|
1051 |
+
if ( nBox.data('notification-timeout') ) {
|
1052 |
+
|
1053 |
+
if ( Cookies.get(cookieID) == undefined ) {
|
1054 |
+
nBox.show();
|
1055 |
+
}
|
1056 |
+
|
1057 |
+
}
|
1058 |
+
});
|
1059 |
+
|
1060 |
$(document).on( 'click', '.dslc-notification-box-close', function() {
|
1061 |
+
|
1062 |
+
var nBox = $(this).closest('.dslc-notification-box'),
|
1063 |
+
nTimeout = 'none',
|
1064 |
+
moduleID = nBox.closest('.dslc-module-front').data('module-id'),
|
1065 |
+
cookieID = 'nBox' + moduleID;
|
1066 |
+
|
1067 |
+
// Check timeout
|
1068 |
+
if ( nBox.data('notification-timeout') ) {
|
1069 |
+
nTimeout = nBox.data('notification-timeout');
|
1070 |
+
}
|
1071 |
+
|
1072 |
+
// Set cookie if timeout exists
|
1073 |
+
if ( nTimeout !== 'none' ) {
|
1074 |
+
Cookies.set( cookieID, 'closed', { expires: nTimeout } );
|
1075 |
+
}
|
1076 |
+
|
1077 |
+
// Close with animation
|
1078 |
+
nBox.animate({
|
1079 |
opacity : 0
|
1080 |
}, 400, function(){
|
1081 |
$(this).remove();
|
1082 |
});
|
1083 |
+
|
1084 |
});
|
1085 |
|
1086 |
/**
|
1203 |
e.preventDefault();
|
1204 |
|
1205 |
if ( jQuery(this).closest('.dslc-post').length ) {
|
1206 |
+
|
1207 |
jQuery(this).closest('.dslc-post').find('.dslc-lightbox-gallery a:first-child').trigger('click');
|
1208 |
+
|
1209 |
+
} else if ( jQuery(this).closest('.dslc-col') ) {
|
1210 |
+
|
1211 |
+
var imageIndex = jQuery(this).closest('.dslc-col').index();
|
1212 |
+
jQuery(this).closest('.dslc-module-front').find('.dslc-lightbox-gallery a:eq(' + imageIndex + ')').trigger('click');
|
1213 |
+
|
1214 |
} else {
|
1215 |
+
|
1216 |
jQuery(this).closest('.dslc-module-front').find('.dslc-lightbox-gallery a:first-child').trigger('click');
|
1217 |
+
|
1218 |
}
|
1219 |
|
1220 |
});
|
js/main.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function dslc_responsive_classes(e){void 0===e&&(e=!1);var s=jQuery(window).width(),t=jQuery("body");(1==e||!t.hasClass("dslc-res-disabled")&&!jQuery('.dslca-module-edit-options-tab-hook.dslca-active[data-section="responsive"]').length)&&(t.removeClass("dslc-res-phone dslc-res-tablet dslc-res-smaller-monitor dslc-res-big"),t.addClass(s>=1024&&1280>s?"dslc-res-smaller-monitor":s>=768&&1024>s?"dslc-res-tablet":768>s?"dslc-res-phone":"dslc-res-big")),t.hasClass("dslca-enabled")||(jQuery(".dslc-modules-area").each(s>=768&&1024>s?function(){0!=jQuery(this).find(".dslc-module-front").length&&jQuery(this).find(".dslc-module-front").length==jQuery(this).find(".dslc-module-front.dslc-hide-on-tablet").length?jQuery(this).hide():jQuery(this).show()}:768>s?function(){0!=jQuery(this).find(".dslc-module-front").length&&jQuery(this).find(".dslc-module-front").length==jQuery(this).find(".dslc-module-front.dslc-hide-on-phone").length?jQuery(this).hide():jQuery(this).show()}:function(){0!=jQuery(this).find(".dslc-module-front").length&&jQuery(this).find(".dslc-module-front").length==jQuery(this).find(".dslc-module-front.dslc-hide-on-desktop").length?jQuery(this).hide():jQuery(this).show()}),jQuery(".dslc-modules-section").each(function(){jQuery(this).show(),jQuery(this).find(".dslc-modules-area").length==jQuery(this).find(".dslc-modules-area:not(:visible)").length&&jQuery(this).hide()})),dslc_masonry(),dslc_center()}function dslc_init_accordion(){jQuery(".dslc-accordion").each(function(){var e=jQuery(this),s=e.data("open")-1,t=jQuery(".dslc-accordion-item:eq("+s+")",e),c=t.siblings(".dslc-accordion-item"),a=jQuery(".dslc-accordion-item",e);s>=0?(t.addClass("dslc-active"),c.addClass("dslc-inactive"),jQuery(".dslc-accordion-content",c).hide()):(a.addClass("dslc-inactive"),jQuery(".dslc-accordion-content",a).hide())})}function dslc_init_lightbox(){jQuery(".dslc-lightbox-image").each(function(){jQuery(this).magnificPopup({type:"image"})}),jQuery(".dslc-lightbox-gallery").each(function(){jQuery(this).magnificPopup({delegate:"a",type:"image",gallery:{enabled:!0}})})}function dslc_carousel(){jQuery(".dslc-carousel, .dslc-slider").each(function(){var e,s,t,c,a;if(e=jQuery(this),s=e.closest(".dslc-module-front"),s.closest(".dslc-modules-section").hasClass("dslc-no-columns-spacing"))var o=0;else var o=s.width()/100*2.12766/2;e.hasClass("dslc-carousel")&&(e.find(".dslc-col").css({"margin-left":o,"margin-right":o}),e.css({"margin-left":-1*o,width:e.width()+2*o})),t={items:4,pagination:!0,singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1e3,autoPlay:!1,stopOnHover:!1,lazyLoad:!1,lazyFollow:!0,autoHeight:!1,mouseDrag:!0,touchDrag:!0,addClassActive:!0,transitionStyle:"fade",scrollPerPage:!0},c={items:e.data("columns"),pagination:e.data("pagination"),itemsScaleUp:e.data("scale-up"),slideSpeed:e.data("slide-speed"),paginationSpeed:e.data("pagination-speed"),rewindSpeed:e.data("rewind-speed"),autoPlay:e.data("autoplay"),stopOnHover:e.data("stop-on-hover"),lazyLoad:e.data("lazy-load"),lazyFollow:e.data("lazy-follow"),autoHeight:e.data("flexible-height"),mouseDrag:e.data("mouse-drag"),touchDrag:e.data("touch-drag"),addClassActive:e.data("active-class"),transitionStyle:e.data("animation"),scrollPerPage:e.data("scroll-per-page")},a=jQuery.extend({},t,c),(e.hasClass("dslc-slider")||1==a.items)&&(a.singleItem=!0),0==a.autoPlay&&(a.autoPlay=!1),e.owlCarousel({items:a.items,pagination:a.pagination,singleItem:a.singleItem,itemsScaleUp:a.itemsScaleUp,slideSpeed:a.slideSpeed,paginationSpeed:a.paginationSpeed,rewindSpeed:a.rewindSpeed,autoPlay:a.autoPlay,stopOnHover:a.stopOnHover,lazyLoad:a.lazyLoad,lazyFollow:a.lazyFollow,mouseDrag:a.mouseDrag,touchDrag:a.touchDrag,scrollPerPage:a.scrollPerPage,transitionStyle:a.transitionStyle,autoHeight:a.autoHeight,itemsDesktop:!1,itemsDesktopSmall:!1,itemsTablet:!1,itemsMobile:[766,1],afterInit:function(){e.prev(".dslc-loader").remove(),e.css({opacity:1,maxHeight:"none"})},afterAction:function(){var s=this.owl.visibleItems;e.find(".dslc-carousel-item-visible").removeClass("dslc-carousel-item-visible"),e.find(".owl-item").filter(function(e){return s.indexOf(e)>-1}).addClass("dslc-carousel-item-visible")}}),jQuery(".dslc-carousel-nav-next",s).click(function(s){s.preventDefault(),e.data("owlCarousel").next()}),jQuery(".dslc-carousel-nav-prev",s).click(function(s){s.preventDefault(),e.data("owlCarousel").prev()})})}function dslc_carousel_responsive(){jQuery(".dslc-carousel").each(function(){var e,s;if(e=jQuery(this),s=e.closest(".dslc-module-front"),e.css({"margin-left":0,width:"auto"}),s.closest(".dslc-modules-section").hasClass("dslc-no-columns-spacing"))var t=0;else var t=s.width()/100*2.12766/2;e.hasClass("dslc-carousel")&&(e.find(".dslc-col").css({"margin-left":t,"margin-right":t}),e.css({"margin-left":-1*t,width:e.width()+2*t}))})}function dslc_bg_video(){jQuery(".dslc-bg-video").each(function(){jQuery(this).find("video").length||jQuery(this).css({opacity:1})}),jQuery(".dslc-bg-video video").mediaelementplayer({loop:!0,pauseOtherPlayers:!1,success:function(e,s){e.addEventListener("loadeddata",function(){jQuery(s).closest(".dslc-bg-video").animate({opacity:1},400)}),e.play()}})}function dslc_parallax(){jQuery(".dslc-init-parallax").each(function(){var e=4,s=jQuery(this).css("background-position").split(" "),t=s[0],c=t+" "+-1*(window.pageYOffset-jQuery(this).offset().top)/e+"px";jQuery(this).css({backgroundPosition:c})}),window.onscroll=function(){jQuery(".dslc-init-parallax").each(function(){var e=4,s=jQuery(this).css("background-position").split(" "),t=s[0],c=t+" "+-1*(window.pageYOffset-jQuery(this).offset().top)/e+"px";jQuery(this).css({backgroundPosition:c})})}}function dslc_masonry(e,s){e="undefined"!=typeof e?e:jQuery("body"),s="undefined"!=typeof s?s:!1,jQuery(".dslc-init-masonry",e).each(function(){var e,t,c,a,o;e=jQuery(this).find(".dslc-posts-inner").length?jQuery(this).find(".dslc-posts-inner"):jQuery(this),t=".dslc-masonry-item",c=jQuery(t,e).width(),a=jQuery(e).width(),o=jQuery(this).closest(".dslc-modules-section").hasClass("dslc-no-columns-spacing")?0:a/100*2.05,e.data("masonry")?jQuery(e).waitForImages(function(){jQuery(e).masonry("destroy").masonry({gutter:o,itemSelector:t}),jQuery(e).find(".dslc-post:not(.dslc-masonry-item)").hide(),s&&jQuery(t,e).css({scale:"0.2"}).animate({scale:"1"},500)}):(jQuery(t).css({marginRight:0}),jQuery(e).waitForImages(function(){jQuery(e).masonry({gutter:o,itemSelector:t})}))})}function dslc_browser_classes(){var e=["iphone","ipad","windows","mac","linux"],s=navigator.appVersion.toLowerCase().match(new RegExp(e.join("|")));s&&jQuery("body").addClass(s[0])}function dslc_center(){var e,s,t,c,a,o,i,n;jQuery(".dslc-init-center").each(function(){e=jQuery(this),s=e.parent(),a=e.outerWidth(),t=e.outerHeight(),o=s.width(),c=s.height(),i=c/2-t/2,n=o/2-a/2,i>0&&(e.css({top:i,left:n}),e.css({visibility:"visible"}))}),jQuery(".dslc-navigation .menu > li:has(ul):not(:has(.dslc-navigation-arrow)) > a").after('<span class="dslc-navigation-arrow dslc-icon dslc-icon-chevron-down"></span>')}function dslc_init_square(e){e="undefined"!=typeof e?e:jQuery("body");var s,t,c;jQuery(".dslc-init-square",e).each(function(){s=jQuery(this),s.css({width:"auto",height:"auto"}),t=s.height(),c=s.width(),t>c?s.width(t):s.height(c)})}function dslc_tabs_generate_code(e){var s=e.closest(".dslc-module-front");dslcTabsNav=jQuery(".dslc-tabs-nav",e),dslcTabsContent=jQuery(".dslc-tabs-content",e),dslcTabContent=jQuery(".dslc-tabs-tab-content",e);var t="",c="",a=0,o=0;jQuery(".dslc-tabs-nav-hook",dslcTabsNav).each(function(){a++,a>1&&(t+=" (dslc_sep) "),t+=jQuery(this).find(".dslc-tabs-nav-hook-title").text()}),dslcTabContent.each(function(){o++,o>1&&(c+=" (dslc_sep) "),c+=jQuery(this).find(".dslca-tab-plain-content").val()}),c=c.replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea"),jQuery('.dslca-module-option-front[data-id="tabs_nav"]',s).val(t),jQuery('.dslca-module-option-front[data-id="tabs_content"]',s).val(c),dslc_option_changed()}function dslc_accordion_generate_code(e){var s=e.closest(".dslc-module-front"),t=0,c="",a="";jQuery(".dslc-accordion-item",e).each(function(){t++,t>1&&(c+=" (dslc_sep) ",a+=" (dslc_sep) "),c+=jQuery(this).find(".dslc-accordion-title").text(),a+=jQuery(this).find(".dslc-accordion-content").find(".dslca-accordion-plain-content").val()}),a=a.replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea"),jQuery('.dslca-module-option-front[data-id="accordion_nav"]',s).val(c),jQuery('.dslca-module-option-front[data-id="accordion_content"]',s).val(a),dslc_option_changed()}function dslc_tabs(){var e,s,t,c;jQuery(".dslc-tabs").each(function(){e=jQuery(this),s=jQuery(".dslc-tabs-nav",e),t=jQuery(".dslc-tabs-content",e),c=jQuery(".dslc-tabs-tab-content",e),c.eq(0).addClass("dslc-active"),jQuery(".dslc-tabs-nav-hook",s).eq(0).addClass("dslc-active")})}function dslc_download_count_increment(e){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-download-count-increment",dslc_post_id:e},function(){})}function dslc_check_viewport(){var e=!1||!!document.documentMode;e?jQuery(".dslc-in-viewport-check").css("opacity",1):jQuery(".dslc-in-viewport-check:in-viewport:not(.dslc-in-viewport)").each(function(){var e=jQuery(this),s=e.data("dslc-anim"),t=parseInt(e.data("dslc-anim-duration"))/1e3,c=t+"s";jQuery(window).width()<768&&(c="0s");var a=parseInt(e.data("dslc-anim-delay")),o=e.data("dslc-anim-easing"),i=s+" "+c+" "+o+" forwards";jQuery(this).addClass("dslc-in-viewport"),a>0?setTimeout(function(){e.css({"-webkit-animation":i,"-moz-animation":i,animation:i})},a):jQuery(this).css({"-webkit-animation":i,"-moz-animation":i,animation:i})})}function dslc_el_anim_hover(){jQuery(".dslc-on-hover-anim-target").each(function(){var e=parseInt(jQuery(this).data("dslc-anim-speed"))/1e3,s="all "+e+"s ease-out";jQuery(this).css({"-webkit-transition":s,"-moz-transition":s,transition:s})})}function dslc_check_progress_bar_viewport(){jQuery(".dslc-progress-bar-animated:in-viewport:not(.dslc-progress-bar-in-viewport)").each(function(){var e=jQuery(this),s=e.find(".dslc-progress-bar-loader-inner"),t=s.data("amount")+"%",c=s.data("speed");e.addClass("dslc-progress-bar-in-viewport"),s.css({width:0,opacity:1}).animate({width:t},c)})}function dslc_validate_comment_form(e){var s=e.find("#author"),t=e.find("#email"),c=(e.find("#url"),e.find("#comment")),a=!0;return s.length&&0==s.val().length?(s.css({borderColor:"#e55f5f"}),a=!1):s.attr("style",""),!t.length||0!=t.val().length&&-1!==t.val().indexOf("@")?t.attr("style",""):(t.css({borderColor:"#e55f5f"}),a=!1),0==c.val().length?(c.css({borderColor:"#e55f5f"}),a=!1):c.attr("style",""),a}function dslc_social_share(e,s,t){var c,a,o,i;c=window.screen.width/2-(e/2+10),a=window.screen.height/2-(s/2+50);var n="status=no,height="+s+",width="+e+",resizable=yes,left="+c+",top="+a+",screenX="+c+",screenY="+a+",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no";return o=location.href,i=document.title,window.open(t,"sharer",n),!1}jQuery(document).ready(function(e){dslc_el_anim_hover(),dslc_browser_classes(),dslc_bg_video(),dslc_tabs(),dslc_init_square(),dslc_center(),e(document).on("click",".dslc-pagination-load-more a",function(s){if(s.preventDefault(),e(this).parent().hasClass("dslc-active")){var t=e(this),c=e(this).closest(".dslc-module-front"),a=c.find(".dslc-pagination"),o=c.find(".dslc-posts-inner"),i=c.attr("id"),n=t.attr("href"),l=c.find(".dslc-load-more-temp");t.find(".dslc-icon").addClass("dslc-icon-spin"),l.load(n+" #"+i,function(){o.append('<div class="dslc-post-separator"></div>'),o.append(l.find(".dslc-posts-inner").html()),c.find(".dslc-pagination").html(l.find(".dslc-pagination").html()),a.replaceWith(l.find(".dslc-pagination")),l.html(""),o.imagesLoaded(function(){c.find(".dslc-init-masonry").length&&c.find(".dslc-init-masonry .dslc-posts-inner").masonry("reloadItems").masonry()})})}}),e(".dslc-tp-comment-form form").submit(function(e){dslc_validate_comment_form(jQuery(this))||e.preventDefault()}),jQuery(".dslc-mobile-navigation select").change(function(){window.location=e(this).val()}),jQuery(document).on("click",".dslca-add-new-tab-hook",function(){var e=jQuery(this).closest(".dslc-tabs"),s=jQuery(".dslc-tabs-nav .dslc-tabs-nav-hook:last",e),t=(jQuery(".dslc-tabs-content",e),jQuery(".dslc-tabs-tab-content:last",e));s.after('<span class="dslc-tabs-nav-hook"><span class="dslc-tabs-nav-hook-title" contenteditable>Click to edit title</span><span class="dslca-delete-tab-hook"><span class="dslca-icon dslc-icon-remove"></span></span></span>'),t.after('<div class="dslc-tabs-tab-content"><div class="dslca-editable-content">This is just placeholder text.</div><textarea class="dslca-tab-plain-content">This is just placeholder text.</textarea><div class="dslca-wysiwyg-actions-edit"><span class="dslca-wysiwyg-actions-edit-hook">Edit Content</span></div></div>'),jQuery(".dslc-tabs-nav-hook:last",e).click(),dslc_tabs_generate_code(e),jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")}),jQuery(document).on("click",".dslca-delete-tab-hook",function(e){var s=jQuery(this).closest(".dslc-tabs"),t=jQuery(this).closest(".dslc-tabs-nav-hook"),c=t.index(),a=jQuery(".dslc-tabs-tab-content",s).eq(c);jQuery(".dslc-tabs-nav-hook",s).length>1?(t.remove(),a.remove(),jQuery(".dslc-tabs-tab-content.dslc-active",s).length||jQuery(".dslc-tabs-nav-hook:first",s).trigger("click"),dslc_tabs_generate_code(s)):alert("You can not delete the last remaining tab"),e.stopPropagation()}),jQuery(document).on("click",".dslc-tabs-nav-hook",function(){jQuery(this).hasClass("dslc-active")||(dslcTabs=jQuery(this).closest(".dslc-tabs"),dslcTabsNav=jQuery(".dslc-tabs-nav",dslcTabs),dslcTabsContent=jQuery(".dslc-tabs-content",dslcTabs),dslcTabContent=jQuery(".dslc-tabs-tab-content",dslcTabs),dslcTabIndex=jQuery(this).index(),jQuery(".dslc-tabs-nav-hook.dslc-active",dslcTabs).removeClass("dslc-active"),jQuery(this).addClass("dslc-active"),jQuery(".dslc-tabs-tab-content.dslc-active",dslcTabs).length?jQuery(".dslc-tabs-tab-content.dslc-active",dslcTabs).animate({opacity:0},250,function(){jQuery(this).removeClass("dslc-active"),dslcTabContent.eq(dslcTabIndex).css({opacity:0}).addClass("dslc-active").show().animate({opacity:1},250)}):dslcTabContent.eq(dslcTabIndex).css({opacity:0}).addClass("dslc-active").show().animate({opacity:1},250))}),jQuery(document).on("blur paste",".dslc-tabs-nav-hook-title[contenteditable], .dslc-tabs-tab-content[contenteditable]",function(){dslc_tabs_generate_code(jQuery(this).closest(".dslc-tabs"))}).on("focus",".dslc-tabs-nav-hook-title[contenteditable], .dslc-tabs-tab-content[contenteditable]",function(){jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")}),e(document).on("click",".dslc-notification-close",function(){e(this).closest(".dslc-notification").slideUp(200,function(){e(this).remove()})}),e(document).on("click",".dslc-post-filter",function(){var s=e(this).data("id"),t=e(this).closest(".dslc-module-front").find(".dslc-post"),c=e(this).closest(".dslc-module-front").find('.dslc-post[data-cats*="'+s+'"]'),a=e(this).closest(".dslc-module-front").find('.dslc-post:not([data-cats*="'+s+'"])'),o=t.closest(".dslc-posts"),i=e(this).closest(".dslc-module-front");e(this).removeClass("dslc-inactive").addClass("dslc-active").siblings(".dslc-active").removeClass("dslc-active").addClass("dslc-inactive"),o.hasClass("dslc-init-grid")?(c.stop().animate({opacity:1},300),a.stop().animate({opacity:.3},300)):(a.removeClass("dslc-masonry-item dslc-masonry-item-animate").css({visibility:"hidden"}),c.addClass("dslc-masonry-item dslc-masonry-item-animate").css({visibility:"visible"}).show(),dslc_masonry(i,!0))}),e(document).on("click",".dslc-download-count-hook",function(){dslc_download_count_increment(e(this).data("post-id"))}),e(document).on("click",".dslc-notification-box-close",function(){e(this).closest(".dslc-notification-box").animate({opacity:0},400,function(){e(this).remove()})}),dslc_init_lightbox(),dslc_init_accordion(),e(document).on("click",".dslc-accordion-hook",function(){var s=e(this).closest(".dslc-accordion-item"),t=s.siblings(".dslc-accordion-item");s.hasClass("dslc-active")?t=s:s.removeClass("dslc-inactive").addClass("dslc-active"),t.removeClass("dslc-active").addClass("dslc-inactive"),e(".dslc-accordion-content",s).slideDown(300),e(".dslc-accordion-content",t).slideUp(300)}),jQuery(document).on("click",".dslca-add-accordion-hook",function(){var e=jQuery(this).closest(".dslc-accordion"),s=jQuery(".dslc-accordion-item:last",e),t=s.clone().insertAfter(s);jQuery(".dslc-accordion-title",t).html("CLICK TO EDIT"),jQuery(".dslc-accordion-content",t).html('<div class="dslca-editable-content">Placeholder content, click to edit. Lorem ipsum dolor sit amet, consectetur tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div><textarea class="dslca-accordion-plain-content"></textarea><div class="dslca-wysiwyg-actions-edit"><span class="dslca-wysiwyg-actions-edit-hook">Edit Content</span></div>'),jQuery(".dslc-accordion-hook",t).click(),dslc_accordion_generate_code(e),jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")}),jQuery(document).on("click",".dslca-delete-accordion-hook",function(e){var s=jQuery(this).closest(".dslc-accordion"),t=jQuery(this).closest(".dslc-accordion-item");jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click"),jQuery(".dslc-accordion-item",s).length>1?(t.remove(),jQuery(".dslc-accordion-item.dslc-active",s).length||jQuery(".dslc-accordion-hook:first",s).trigger("click"),dslc_accordion_generate_code(s)):alert("You can not delete the last remaining accordion item."),e.stopPropagation()}),jQuery(document).on("click",".dslca-move-up-accordion-hook, .dslca-move-down-accordion-hook",function(e){var s=jQuery(this).closest(".dslc-accordion"),t=jQuery(this).closest(".dslc-accordion-item"),c=t.next(".dslc-accordion-item"),a=t.prev(".dslc-accordion-item");jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click"),jQuery(this).hasClass("dslca-move-down-accordion-hook")?(t.insertAfter(c),dslc_accordion_generate_code(s)):(t.insertBefore(a),dslc_accordion_generate_code(s)),e.stopPropagation()}),jQuery(document).on("blur paste keyup",".dslc-accordion-title[contenteditable], .dslc-accordion-content[contenteditable]",function(){dslc_accordion_generate_code(jQuery(this).closest(".dslc-accordion"))}).on("focus",".dslc-accordion-title[contenteditable], .dslc-accordion-content[contenteditable]",function(){jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")}),e(document).on("click",".dslc-trigger-lightbox-gallery",function(e){e.preventDefault(),jQuery(this).closest(".dslc-post").length?jQuery(this).closest(".dslc-post").find(".dslc-lightbox-gallery a:first-child").trigger("click"):jQuery(this).closest(".dslc-module-front").find(".dslc-lightbox-gallery a:first-child").trigger("click")}),e(".dslc-navigation li").mouseenter(function(){var s=e(this).children("ul");if(s.length){if(e(this).closest(".dslc-navigation").hasClass("dslc-navigation-sub-position-center")){var t=e(this).closest("li").width(),c=s.outerWidth(),a=parseInt(t)/2-parseInt(c)/2+"px";s.css({left:a})}s.css({display:"block"});var o=s.offset().left,i=s.outerWidth(),n=e("body").width();o+i>n&&s.addClass("dslc-navigation-invert-subnav"),e(this).children("ul").stop().animate({opacity:1},300)}}).mouseleave(function(){e(this).children("ul").stop().animate({opacity:0},300,function(){e(this).css({display:"none"}).children("ul").removeClass("dslc-navigation-invert-subnav")})}),dslc_check_viewport(),dslc_check_progress_bar_viewport(),e(document).on("scroll",function(){dslc_check_viewport(),dslc_check_progress_bar_viewport()})}),jQuery(window).load(function(){dslc_responsive_classes(),dslc_carousel(),dslc_parallax(),dslc_init_square(),dslc_center(),dslc_init_lightbox()}),jQuery(window).resize(function(){dslc_center(),dslc_responsive_classes(),dslc_carousel_responsive()});
|
1 |
+
function dslc_responsive_classes(e){void 0===e&&(e=!1);var s=jQuery(window).width(),t=jQuery("body");(1==e||!t.hasClass("dslc-res-disabled")&&!jQuery('.dslca-module-edit-options-tab-hook.dslca-active[data-section="responsive"]').length)&&(t.removeClass("dslc-res-phone dslc-res-tablet dslc-res-smaller-monitor dslc-res-big"),s>=1024&&1280>s?t.addClass("dslc-res-smaller-monitor"):s>=768&&1024>s?t.addClass("dslc-res-tablet"):768>s?t.addClass("dslc-res-phone"):t.addClass("dslc-res-big")),t.hasClass("dslca-enabled")||(s>=768&&1024>s?jQuery(".dslc-modules-area").each(function(){0!=jQuery(this).find(".dslc-module-front").length&&jQuery(this).find(".dslc-module-front").length==jQuery(this).find(".dslc-module-front.dslc-hide-on-tablet").length?jQuery(this).hide():jQuery(this).show()}):768>s?jQuery(".dslc-modules-area").each(function(){0!=jQuery(this).find(".dslc-module-front").length&&jQuery(this).find(".dslc-module-front").length==jQuery(this).find(".dslc-module-front.dslc-hide-on-phone").length?jQuery(this).hide():jQuery(this).show()}):jQuery(".dslc-modules-area").each(function(){0!=jQuery(this).find(".dslc-module-front").length&&jQuery(this).find(".dslc-module-front").length==jQuery(this).find(".dslc-module-front.dslc-hide-on-desktop").length?jQuery(this).hide():jQuery(this).show()}),jQuery(".dslc-modules-section").each(function(){jQuery(this).show(),jQuery(this).find(".dslc-modules-area").length==jQuery(this).find(".dslc-modules-area:not(:visible)").length&&jQuery(this).hide()})),dslc_masonry(),dslc_center()}function dslc_init_accordion(){jQuery(".dslc-accordion").each(function(){var e=jQuery(this),s=e.data("open")-1,t=jQuery(".dslc-accordion-item:eq("+s+")",e),o=t.siblings(".dslc-accordion-item"),a=jQuery(".dslc-accordion-item",e);s>=0?(t.addClass("dslc-active"),o.addClass("dslc-inactive"),jQuery(".dslc-accordion-content",o).hide()):(a.addClass("dslc-inactive"),jQuery(".dslc-accordion-content",a).hide())})}function dslc_init_lightbox(){var e;jQuery(".dslc-lightbox-image").each(function(){e="image",(jQuery(this).attr("href").indexOf("youtube.com")>=0||jQuery(this).attr("href").indexOf("vimeo.com")>=0)&&(e="iframe"),jQuery(this).magnificPopup({type:e})}),jQuery(".dslc-lightbox-gallery").each(function(){jQuery(this).magnificPopup({delegate:"a",type:"image",gallery:{enabled:!0}})})}function dslc_carousel(){jQuery(".dslc-carousel, .dslc-slider").each(function(){var e,s,t,o,a;if(e=jQuery(this),s=e.closest(".dslc-module-front"),s.closest(".dslc-modules-section").hasClass("dslc-no-columns-spacing"))var c=0;else var c=s.width()/100*2.12766/2;e.hasClass("dslc-carousel")&&(e.find(".dslc-col").css({"margin-left":c,"margin-right":c}),e.css({"margin-left":-1*c,width:e.width()+2*c})),t={items:4,pagination:!0,singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1e3,autoPlay:!1,stopOnHover:!1,lazyLoad:!1,lazyFollow:!0,autoHeight:!1,mouseDrag:!0,touchDrag:!0,addClassActive:!0,transitionStyle:"fade",scrollPerPage:!0},o={items:e.data("columns"),pagination:e.data("pagination"),itemsScaleUp:e.data("scale-up"),slideSpeed:e.data("slide-speed"),paginationSpeed:e.data("pagination-speed"),rewindSpeed:e.data("rewind-speed"),autoPlay:e.data("autoplay"),stopOnHover:e.data("stop-on-hover"),lazyLoad:e.data("lazy-load"),lazyFollow:e.data("lazy-follow"),autoHeight:e.data("flexible-height"),mouseDrag:e.data("mouse-drag"),touchDrag:e.data("touch-drag"),addClassActive:e.data("active-class"),transitionStyle:e.data("animation"),scrollPerPage:e.data("scroll-per-page")},a=jQuery.extend({},t,o),(e.hasClass("dslc-slider")||1==a.items)&&(a.singleItem=!0),0==a.autoPlay&&(a.autoPlay=!1),e.owlCarousel({items:a.items,pagination:a.pagination,singleItem:a.singleItem,itemsScaleUp:a.itemsScaleUp,slideSpeed:a.slideSpeed,paginationSpeed:a.paginationSpeed,rewindSpeed:a.rewindSpeed,autoPlay:a.autoPlay,stopOnHover:a.stopOnHover,lazyLoad:a.lazyLoad,lazyFollow:a.lazyFollow,mouseDrag:a.mouseDrag,touchDrag:a.touchDrag,scrollPerPage:a.scrollPerPage,transitionStyle:a.transitionStyle,autoHeight:a.autoHeight,itemsDesktop:!1,itemsDesktopSmall:!1,itemsTablet:!1,itemsMobile:[766,1],afterInit:function(){e.prev(".dslc-loader").remove(),e.css({opacity:1,maxHeight:"none"})},afterAction:function(){var s=this.owl.visibleItems;e.find(".dslc-carousel-item-visible").removeClass("dslc-carousel-item-visible"),e.find(".owl-item").filter(function(e){return s.indexOf(e)>-1}).addClass("dslc-carousel-item-visible")}}),jQuery(".dslc-carousel-nav-next",s).click(function(s){s.preventDefault(),e.data("owlCarousel").next()}),jQuery(".dslc-carousel-nav-prev",s).click(function(s){s.preventDefault(),e.data("owlCarousel").prev()})})}function dslc_carousel_responsive(){jQuery(".dslc-carousel").each(function(){var e,s;if(e=jQuery(this),s=e.closest(".dslc-module-front"),e.css({"margin-left":0,width:"auto"}),s.closest(".dslc-modules-section").hasClass("dslc-no-columns-spacing"))var t=0;else var t=s.width()/100*2.12766/2;e.hasClass("dslc-carousel")&&(e.find(".dslc-col").css({"margin-left":t,"margin-right":t}),e.css({"margin-left":-1*t,width:e.width()+2*t}))})}function dslc_bg_video(){jQuery(".dslc-bg-video").each(function(){jQuery(this).find("video").length||jQuery(this).css({opacity:1})}),jQuery(".dslc-bg-video video").mediaelementplayer({loop:!0,pauseOtherPlayers:!1,success:function(e,s){e.addEventListener("loadeddata",function(e){jQuery(s).closest(".dslc-bg-video").animate({opacity:1},400)}),e.play()}})}function dslc_parallax(){jQuery(".dslc-init-parallax").each(function(){var e=4,s=jQuery(this).css("background-position").split(" "),t=s[0],o=t+" "+-1*(window.pageYOffset-jQuery(this).offset().top)/e+"px";jQuery(this).css({backgroundPosition:o})}),window.onscroll=function(){jQuery(".dslc-init-parallax").each(function(){var e=4,s=jQuery(this).css("background-position").split(" "),t=s[0],o=t+" "+-1*(window.pageYOffset-jQuery(this).offset().top)/e+"px";jQuery(this).css({backgroundPosition:o})})}}function dslc_masonry(e,s){e="undefined"!=typeof e?e:jQuery("body"),s="undefined"!=typeof s?s:!1,jQuery(".dslc-init-masonry",e).each(function(){var e,t,o,a,c;e=jQuery(this).find(".dslc-posts-inner").length?jQuery(this).find(".dslc-posts-inner"):jQuery(this),t=".dslc-masonry-item",o=jQuery(t,e).width(),a=jQuery(e).width(),c=jQuery(this).closest(".dslc-modules-section").hasClass("dslc-no-columns-spacing")?0:a/100*2.05,e.data("masonry")?jQuery(e).waitForImages(function(){jQuery(e).masonry("destroy").masonry({gutter:c,itemSelector:t}),jQuery(e).find(".dslc-post:not(.dslc-masonry-item)").hide(),s&&jQuery(t,e).css({scale:"0.2"}).animate({scale:"1"},500)}):(jQuery(t).css({marginRight:0}),jQuery(e).waitForImages(function(){jQuery(e).masonry({gutter:c,itemSelector:t})}))})}function dslc_browser_classes(){var e=["iphone","ipad","windows","mac","linux"],s=navigator.appVersion.toLowerCase().match(new RegExp(e.join("|")));s&&jQuery("body").addClass(s[0])}function dslc_center(){var e,s,t,o,a,c,i,n;jQuery(".dslc-init-center").each(function(){e=jQuery(this),s=e.parent(),a=e.outerWidth(),t=e.outerHeight(),c=s.width(),o=s.height(),i=o/2-t/2,n=c/2-a/2,i>0&&(e.css({top:i,left:n}),e.css({visibility:"visible"}))}),jQuery(".dslc-navigation .menu > li:has(ul):not(:has(.dslc-navigation-arrow)) > a").after('<span class="dslc-navigation-arrow dslc-icon dslc-icon-chevron-down"></span>')}function dslc_init_square(e){e="undefined"!=typeof e?e:jQuery("body");var s,t,o;jQuery(".dslc-init-square",e).each(function(){s=jQuery(this),s.css({width:"auto",height:"auto"}),t=s.height(),o=s.width(),t>o?s.width(t):s.height(o)})}function dslc_tabs_generate_code(e){var s=e.closest(".dslc-module-front");dslcTabsNav=jQuery(".dslc-tabs-nav",e),dslcTabsContent=jQuery(".dslc-tabs-content",e),dslcTabContent=jQuery(".dslc-tabs-tab-content",e);var t="",o="",a=0,c=0;jQuery(".dslc-tabs-nav-hook",dslcTabsNav).each(function(){a++,a>1&&(t+=" (dslc_sep) "),t+=jQuery(this).find(".dslc-tabs-nav-hook-title").text()}),dslcTabContent.each(function(){c++,c>1&&(o+=" (dslc_sep) "),o+=jQuery(this).find(".dslca-tab-plain-content").val()}),o=o.replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea"),jQuery('.dslca-module-option-front[data-id="tabs_nav"]',s).val(t),jQuery('.dslca-module-option-front[data-id="tabs_content"]',s).val(o),dslc_option_changed()}function dslc_accordion_generate_code(e){var s=e.closest(".dslc-module-front"),t=0,o="",a="";jQuery(".dslc-accordion-item",e).each(function(){t++,t>1&&(o+=" (dslc_sep) ",a+=" (dslc_sep) "),o+=jQuery(this).find(".dslc-accordion-title").text(),a+=jQuery(this).find(".dslc-accordion-content").find(".dslca-accordion-plain-content").val()}),a=a.replace(/<textarea/g,"<lctextarea").replace(/<\/textarea/g,"</lctextarea"),jQuery('.dslca-module-option-front[data-id="accordion_nav"]',s).val(o),jQuery('.dslca-module-option-front[data-id="accordion_content"]',s).val(a),dslc_option_changed()}function dslc_tabs(){var e,s,t,o;jQuery(".dslc-tabs").each(function(){e=jQuery(this),s=jQuery(".dslc-tabs-nav",e),t=jQuery(".dslc-tabs-content",e),o=jQuery(".dslc-tabs-tab-content",e),o.eq(0).addClass("dslc-active"),jQuery(".dslc-tabs-nav-hook",s).eq(0).addClass("dslc-active")})}function dslc_download_count_increment(e){jQuery.post(DSLCAjax.ajaxurl,{action:"dslc-download-count-increment",dslc_post_id:e},function(e){})}function dslc_check_viewport(){var e=!!document.documentMode;e?jQuery(".dslc-in-viewport-check").css("opacity",1):jQuery(".dslc-in-viewport-check:in-viewport:not(.dslc-in-viewport)").each(function(){var e=jQuery(this),s=e.data("dslc-anim"),t=parseInt(e.data("dslc-anim-duration"))/1e3,o=t+"s";jQuery(window).width()<768&&(o="0s");var a=parseInt(e.data("dslc-anim-delay")),c=e.data("dslc-anim-easing"),i=s+" "+o+" "+c+" forwards";jQuery(this).addClass("dslc-in-viewport"),a>0?setTimeout(function(){e.css({"-webkit-animation":i,"-moz-animation":i,animation:i})},a):jQuery(this).css({"-webkit-animation":i,"-moz-animation":i,animation:i})})}function dslc_el_anim_hover(){jQuery(".dslc-on-hover-anim-target").each(function(){var e=parseInt(jQuery(this).data("dslc-anim-speed"))/1e3,s="all "+e+"s ease-out";jQuery(this).css({"-webkit-transition":s,"-moz-transition":s,transition:s})})}function dslc_check_progress_bar_viewport(){jQuery(".dslc-progress-bar-animated:in-viewport:not(.dslc-progress-bar-in-viewport)").each(function(){var e=jQuery(this),s=e.find(".dslc-progress-bar-loader-inner"),t=s.data("amount")+"%",o=s.data("speed");e.addClass("dslc-progress-bar-in-viewport"),s.css({width:0,opacity:1}).animate({width:t},o)})}function dslc_validate_comment_form(e){var s=e.find("#author"),t=e.find("#email"),o=(e.find("#url"),e.find("#comment")),a=!0;return s.length&&0==s.val().length?(s.css({borderColor:"#e55f5f"}),a=!1):s.attr("style",""),!t.length||0!=t.val().length&&-1!==t.val().indexOf("@")?t.attr("style",""):(t.css({borderColor:"#e55f5f"}),a=!1),0==o.val().length?(o.css({borderColor:"#e55f5f"}),a=!1):o.attr("style",""),a}function dslc_social_share(e,s,t){var o,a,c,i;o=window.screen.width/2-(e/2+10),a=window.screen.height/2-(s/2+50);var n="status=no,height="+s+",width="+e+",resizable=yes,left="+o+",top="+a+",screenX="+o+",screenY="+a+",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no";return c=location.href,i=document.title,window.open(t,"sharer",n),!1}jQuery(document).ready(function(e){dslc_el_anim_hover(),dslc_browser_classes(),dslc_bg_video(),dslc_tabs(),dslc_init_square(),dslc_center(),e(document).on("click",".dslc-pagination-load-more a",function(s){if(s.preventDefault(),e(this).parent().hasClass("dslc-active")){var t=e(this),o=e(this).closest(".dslc-module-front"),a=o.find(".dslc-pagination"),c=o.find(".dslc-posts-inner"),i=o.attr("id"),n=t.attr("href"),l=o.find(".dslc-load-more-temp");t.find(".dslc-icon").addClass("dslc-icon-spin"),l.load(n+" #"+i,function(){c.append('<div class="dslc-post-separator"></div>'),c.append(l.find(".dslc-posts-inner").html()),o.find(".dslc-pagination").html(l.find(".dslc-pagination").html()),a.replaceWith(l.find(".dslc-pagination")),l.html(""),c.imagesLoaded(function(){o.find(".dslc-init-masonry").length&&o.find(".dslc-init-masonry .dslc-posts-inner").masonry("reloadItems").masonry()})})}}),e(".dslc-tp-comment-form form").submit(function(e){dslc_validate_comment_form(jQuery(this))||e.preventDefault()}),jQuery(".dslc-mobile-navigation select").change(function(){window.location=e(this).val()}),jQuery(document).on("click",".dslca-add-new-tab-hook",function(){var e=jQuery(this).closest(".dslc-tabs"),s=jQuery(".dslc-tabs-nav .dslc-tabs-nav-hook:last",e),t=(jQuery(".dslc-tabs-content",e),jQuery(".dslc-tabs-tab-content:last",e));s.after('<span class="dslc-tabs-nav-hook"><span class="dslc-tabs-nav-hook-title" contenteditable>Click to edit title</span><span class="dslca-delete-tab-hook"><span class="dslca-icon dslc-icon-remove"></span></span></span>'),t.after('<div class="dslc-tabs-tab-content"><div class="dslca-editable-content">This is just placeholder text.</div><textarea class="dslca-tab-plain-content">This is just placeholder text.</textarea><div class="dslca-wysiwyg-actions-edit"><span class="dslca-wysiwyg-actions-edit-hook">Edit Content</span></div></div>'),jQuery(".dslc-tabs-nav-hook:last",e).click(),dslc_tabs_generate_code(e),jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")}),jQuery(document).on("click",".dslca-delete-tab-hook",function(e){var s=jQuery(this).closest(".dslc-tabs"),t=jQuery(this).closest(".dslc-tabs-nav-hook"),o=t.index(),a=jQuery(".dslc-tabs-tab-content",s).eq(o);jQuery(".dslc-tabs-nav-hook",s).length>1?(t.remove(),a.remove(),jQuery(".dslc-tabs-tab-content.dslc-active",s).length||jQuery(".dslc-tabs-nav-hook:first",s).trigger("click"),dslc_tabs_generate_code(s)):alert("You can not delete the last remaining tab"),e.stopPropagation()}),jQuery(document).on("click",".dslc-tabs-nav-hook",function(e){jQuery(this).hasClass("dslc-active")||(dslcTabs=jQuery(this).closest(".dslc-tabs"),dslcTabsNav=jQuery(".dslc-tabs-nav",dslcTabs),dslcTabsContent=jQuery(".dslc-tabs-content",dslcTabs),dslcTabContent=jQuery(".dslc-tabs-tab-content",dslcTabs),dslcTabIndex=jQuery(this).index(),jQuery(".dslc-tabs-nav-hook.dslc-active",dslcTabs).removeClass("dslc-active"),jQuery(this).addClass("dslc-active"),jQuery(".dslc-tabs-tab-content.dslc-active",dslcTabs).length?jQuery(".dslc-tabs-tab-content.dslc-active",dslcTabs).animate({opacity:0},250,function(){jQuery(this).removeClass("dslc-active"),dslcTabContent.eq(dslcTabIndex).css({opacity:0}).addClass("dslc-active").show().animate({opacity:1},250)}):dslcTabContent.eq(dslcTabIndex).css({opacity:0}).addClass("dslc-active").show().animate({opacity:1},250))}),jQuery(document).on("blur paste",".dslc-tabs-nav-hook-title[contenteditable], .dslc-tabs-tab-content[contenteditable]",function(){dslc_tabs_generate_code(jQuery(this).closest(".dslc-tabs"))}).on("focus",".dslc-tabs-nav-hook-title[contenteditable], .dslc-tabs-tab-content[contenteditable]",function(){jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")}),e(document).on("click",".dslc-notification-close",function(s){e(this).closest(".dslc-notification").slideUp(200,function(){e(this).remove()})}),e(document).on("click",".dslc-post-filter",function(){var s=e(this).data("id"),t=e(this).closest(".dslc-module-front").find(".dslc-post"),o=e(this).closest(".dslc-module-front").find('.dslc-post[data-cats*="'+s+'"]'),a=e(this).closest(".dslc-module-front").find('.dslc-post:not([data-cats*="'+s+'"])'),c=t.closest(".dslc-posts"),i=e(this).closest(".dslc-module-front");e(this).removeClass("dslc-inactive").addClass("dslc-active").siblings(".dslc-active").removeClass("dslc-active").addClass("dslc-inactive"),c.hasClass("dslc-init-grid")?(o.stop().animate({opacity:1},300),a.stop().animate({opacity:.3},300)):(a.removeClass("dslc-masonry-item dslc-masonry-item-animate").css({visibility:"hidden"}),o.addClass("dslc-masonry-item dslc-masonry-item-animate").css({visibility:"visible"}).show(),dslc_masonry(i,!0))}),e(document).on("click",".dslc-download-count-hook",function(s){dslc_download_count_increment(e(this).data("post-id"))}),e(".dslc-notification-box-has-timeout").each(function(){var s=e(this);nTimeout="none",moduleID=s.closest(".dslc-module-front").data("module-id"),cookieID="nBox"+moduleID,s.data("notification-timeout")&&void 0==Cookies.get(cookieID)&&s.show()}),e(document).on("click",".dslc-notification-box-close",function(){var s=e(this).closest(".dslc-notification-box"),t="none",o=s.closest(".dslc-module-front").data("module-id"),a="nBox"+o;s.data("notification-timeout")&&(t=s.data("notification-timeout")),"none"!==t&&Cookies.set(a,"closed",{expires:t}),s.animate({opacity:0},400,function(){e(this).remove()})}),dslc_init_lightbox(),dslc_init_accordion(),e(document).on("click",".dslc-accordion-hook",function(){var s=e(this).closest(".dslc-accordion-item"),t=s.siblings(".dslc-accordion-item");s.hasClass("dslc-active")?t=s:s.removeClass("dslc-inactive").addClass("dslc-active"),t.removeClass("dslc-active").addClass("dslc-inactive"),e(".dslc-accordion-content",s).slideDown(300),e(".dslc-accordion-content",t).slideUp(300)}),jQuery(document).on("click",".dslca-add-accordion-hook",function(){var e=jQuery(this).closest(".dslc-accordion"),s=jQuery(".dslc-accordion-item:last",e),t=s.clone().insertAfter(s);jQuery(".dslc-accordion-title",t).html("CLICK TO EDIT"),jQuery(".dslc-accordion-content",t).html('<div class="dslca-editable-content">Placeholder content, click to edit. Lorem ipsum dolor sit amet, consectetur tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div><textarea class="dslca-accordion-plain-content"></textarea><div class="dslca-wysiwyg-actions-edit"><span class="dslca-wysiwyg-actions-edit-hook">Edit Content</span></div>'),jQuery(".dslc-accordion-hook",t).click(),dslc_accordion_generate_code(e),jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")}),jQuery(document).on("click",".dslca-delete-accordion-hook",function(e){var s=jQuery(this).closest(".dslc-accordion"),t=jQuery(this).closest(".dslc-accordion-item");jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click"),jQuery(".dslc-accordion-item",s).length>1?(t.remove(),jQuery(".dslc-accordion-item.dslc-active",s).length||jQuery(".dslc-accordion-hook:first",s).trigger("click"),dslc_accordion_generate_code(s)):alert("You can not delete the last remaining accordion item."),e.stopPropagation()}),jQuery(document).on("click",".dslca-move-up-accordion-hook, .dslca-move-down-accordion-hook",function(e){var s=jQuery(this).closest(".dslc-accordion"),t=jQuery(this).closest(".dslc-accordion-item"),o=t.next(".dslc-accordion-item"),a=t.prev(".dslc-accordion-item");jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click"),jQuery(this).hasClass("dslca-move-down-accordion-hook")?(t.insertAfter(o),dslc_accordion_generate_code(s)):(t.insertBefore(a),dslc_accordion_generate_code(s)),e.stopPropagation()}),jQuery(document).on("blur paste keyup",".dslc-accordion-title[contenteditable], .dslc-accordion-content[contenteditable]",function(){dslc_accordion_generate_code(jQuery(this).closest(".dslc-accordion"))}).on("focus",".dslc-accordion-title[contenteditable], .dslc-accordion-content[contenteditable]",function(){jQuery(this).closest(".dslc-module-front").hasClass("dslca-module-being-edited")||jQuery(this).closest(".dslc-module-front").find(".dslca-module-edit-hook").trigger("click")}),e(document).on("click",".dslc-trigger-lightbox-gallery",function(e){if(e.preventDefault(),jQuery(this).closest(".dslc-post").length)jQuery(this).closest(".dslc-post").find(".dslc-lightbox-gallery a:first-child").trigger("click");else if(jQuery(this).closest(".dslc-col")){var s=jQuery(this).closest(".dslc-col").index();jQuery(this).closest(".dslc-module-front").find(".dslc-lightbox-gallery a:eq("+s+")").trigger("click")}else jQuery(this).closest(".dslc-module-front").find(".dslc-lightbox-gallery a:first-child").trigger("click")}),e(".dslc-navigation li").mouseenter(function(){var s=e(this).children("ul");if(s.length){if(e(this).closest(".dslc-navigation").hasClass("dslc-navigation-sub-position-center")){var t=e(this).closest("li").width(),o=s.outerWidth(),a=parseInt(t)/2-parseInt(o)/2+"px";s.css({left:a})}s.css({display:"block"});var c=s.offset().left,i=s.outerWidth(),n=e("body").width();c+i>n&&s.addClass("dslc-navigation-invert-subnav"),e(this).children("ul").stop().animate({opacity:1},300)}}).mouseleave(function(){e(this).children("ul").stop().animate({opacity:0},300,function(){e(this).css({display:"none"}).children("ul").removeClass("dslc-navigation-invert-subnav")})}),dslc_check_viewport(),dslc_check_progress_bar_viewport(),e(document).on("scroll",function(){dslc_check_viewport(),dslc_check_progress_bar_viewport()})}),jQuery(window).load(function(){dslc_responsive_classes(),dslc_carousel(),dslc_parallax(),dslc_init_square(),dslc_center(),dslc_init_lightbox()}),jQuery(window).resize(function(){dslc_center(),dslc_responsive_classes(),dslc_carousel_responsive()});
|
js/plugins.js
CHANGED
@@ -17,4 +17,7 @@ eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a
|
|
17 |
function dslc_browser_selectors(u){var ua=u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1},g='gecko',w='webkit',s='safari',o='opera',m='mobile',h=document.documentElement,b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3.5')?g+' ff3 ff3_5':is('firefox/3.6')?g+' ff3 ff3_6':is('firefox/3')?g+' ff3':is('gecko/')?g:is('opera')?o+(/version\/(\d+)/.test(ua)?' '+o+RegExp.$1:(/opera(\s|\/)(\d+)/.test(ua)?' '+o+RegExp.$2:'')):is('konqueror')?'konqueror':is('blackberry')?m+' blackberry':is('android')?m+' android':is('chrome')?w+' chrome':is('iron')?w+' iron':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?m+' j2me':is('iphone')?m+' iphone':is('ipod')?m+' ipod':is('ipad')?m+' ipad':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win'+(is('windows nt 6.0')?' vista':''):is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js']; c = b.join(' '); h.className += ' '+c; return c;}; dslc_browser_selectors(navigator.userAgent);
|
18 |
|
19 |
/*! imagesLoaded PACKAGED v3.1.8 | JavaScript is all like "You images are done yet or what?" | MIT License */
|
20 |
-
(function(){function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var i=e.prototype,r=this,o=r.EventEmitter;i.getListeners=function(e){var t,n,i=this._getEvents();if("object"==typeof e){t={};for(n in i)i.hasOwnProperty(n)&&e.test(n)&&(t[n]=i[n])}else t=i[e]||(i[e]=[]);return t},i.flattenListeners=function(e){var t,n=[];for(t=0;e.length>t;t+=1)n.push(e[t].listener);return n},i.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},i.addListener=function(e,n){var i,r=this.getListenersAsObject(e),o="object"==typeof n;for(i in r)r.hasOwnProperty(i)&&-1===t(r[i],n)&&r[i].push(o?n:{listener:n,once:!1});return this},i.on=n("addListener"),i.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},i.once=n("addOnceListener"),i.defineEvent=function(e){return this.getListeners(e),this},i.defineEvents=function(e){for(var t=0;e.length>t;t+=1)this.defineEvent(e[t]);return this},i.removeListener=function(e,n){var i,r,o=this.getListenersAsObject(e);for(r in o)o.hasOwnProperty(r)&&(i=t(o[r],n),-1!==i&&o[r].splice(i,1));return this},i.off=n("removeListener"),i.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},i.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},i.manipulateListeners=function(e,t,n){var i,r,o=e?this.removeListener:this.addListener,s=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(i=n.length;i--;)o.call(this,t,n[i]);else for(i in t)t.hasOwnProperty(i)&&(r=t[i])&&("function"==typeof r?o.call(this,i,r):s.call(this,i,r));return this},i.removeEvent=function(e){var t,n=typeof e,i=this._getEvents();if("string"===n)delete i[e];else if("object"===n)for(t in i)i.hasOwnProperty(t)&&e.test(t)&&delete i[t];else delete this._events;return this},i.removeAllListeners=n("removeEvent"),i.emitEvent=function(e,t){var n,i,r,o,s=this.getListenersAsObject(e);for(r in s)if(s.hasOwnProperty(r))for(i=s[r].length;i--;)n=s[r][i],n.once===!0&&this.removeListener(e,n.listener),o=n.listener.apply(this,t||[]),o===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},i.trigger=n("emitEvent"),i.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},i.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},i._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},i._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return r.EventEmitter=o,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}).call(this),function(e){function t(t){var n=e.event;return n.target=n.target||n.srcElement||t,n}var n=document.documentElement,i=function(){};n.addEventListener?i=function(e,t,n){e.addEventListener(t,n,!1)}:n.attachEvent&&(i=function(e,n,i){e[n+i]=i.handleEvent?function(){var n=t(e);i.handleEvent.call(i,n)}:function(){var n=t(e);i.call(e,n)},e.attachEvent("on"+n,e[n+i])});var r=function(){};n.removeEventListener?r=function(e,t,n){e.removeEventListener(t,n,!1)}:n.detachEvent&&(r=function(e,t,n){e.detachEvent("on"+t,e[t+n]);try{delete e[t+n]}catch(i){e[t+n]=void 0}});var o={bind:i,unbind:r};"function"==typeof define&&define.amd?define("eventie/eventie",o):e.eventie=o}(this),function(e,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(n,i){return t(e,n,i)}):"object"==typeof exports?module.exports=t(e,require("wolfy87-eventemitter"),require("eventie")):e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(window,function(e,t,n){function i(e,t){for(var n in t)e[n]=t[n];return e}function r(e){return"[object Array]"===d.call(e)}function o(e){var t=[];if(r(e))t=e;else if("number"==typeof e.length)for(var n=0,i=e.length;i>n;n++)t.push(e[n]);else t.push(e);return t}function s(e,t,n){if(!(this instanceof s))return new s(e,t);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=o(e),this.options=i({},this.options),"function"==typeof t?n=t:i(this.options,t),n&&this.on("always",n),this.getImages(),a&&(this.jqDeferred=new a.Deferred);var r=this;setTimeout(function(){r.check()})}function f(e){this.img=e}function c(e){this.src=e,v[e]=this}var a=e.jQuery,u=e.console,h=u!==void 0,d=Object.prototype.toString;s.prototype=new t,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var n=this.elements[e];"IMG"===n.nodeName&&this.addImage(n);var i=n.nodeType;if(i&&(1===i||9===i||11===i))for(var r=n.querySelectorAll("img"),o=0,s=r.length;s>o;o++){var f=r[o];this.addImage(f)}}},s.prototype.addImage=function(e){var t=new f(e);this.images.push(t)},s.prototype.check=function(){function e(e,r){return t.options.debug&&h&&u.log("confirm",e,r),t.progress(e),n++,n===i&&t.complete(),!0}var t=this,n=0,i=this.images.length;if(this.hasAnyBroken=!1,!i)return this.complete(),void 0;for(var r=0;i>r;r++){var o=this.images[r];o.on("confirm",e),o.check()}},s.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var t=this;setTimeout(function(){if(t.emit(e,t),t.emit("always",t),t.jqDeferred){var n=t.hasAnyBroken?"reject":"resolve";t.jqDeferred[n](t)}})},a&&(a.fn.imagesLoaded=function(e,t){var n=new s(this,e,t);return n.jqDeferred.promise(a(this))}),f.prototype=new t,f.prototype.check=function(){var e=v[this.img.src]||new c(this.img.src);if(e.isConfirmed)return this.confirm(e.isLoaded,"cached was confirmed"),void 0;if(this.img.complete&&void 0!==this.img.naturalWidth)return this.confirm(0!==this.img.naturalWidth,"naturalWidth"),void 0;var t=this;e.on("confirm",function(e,n){return t.confirm(e.isLoaded,n),!0}),e.check()},f.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)};var v={};return c.prototype=new t,c.prototype.check=function(){if(!this.isChecked){var e=new Image;n.bind(e,"load",this),n.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},c.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},c.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},c.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},c.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit("confirm",this,t)},c.prototype.unbindProxyEvents=function(e){n.unbind(e.target,"load",this),n.unbind(e.target,"error",this)},s});
|
|
|
|
|
|
17 |
function dslc_browser_selectors(u){var ua=u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1},g='gecko',w='webkit',s='safari',o='opera',m='mobile',h=document.documentElement,b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3.5')?g+' ff3 ff3_5':is('firefox/3.6')?g+' ff3 ff3_6':is('firefox/3')?g+' ff3':is('gecko/')?g:is('opera')?o+(/version\/(\d+)/.test(ua)?' '+o+RegExp.$1:(/opera(\s|\/)(\d+)/.test(ua)?' '+o+RegExp.$2:'')):is('konqueror')?'konqueror':is('blackberry')?m+' blackberry':is('android')?m+' android':is('chrome')?w+' chrome':is('iron')?w+' iron':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?m+' j2me':is('iphone')?m+' iphone':is('ipod')?m+' ipod':is('ipad')?m+' ipad':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win'+(is('windows nt 6.0')?' vista':''):is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js']; c = b.join(' '); h.className += ' '+c; return c;}; dslc_browser_selectors(navigator.userAgent);
|
18 |
|
19 |
/*! imagesLoaded PACKAGED v3.1.8 | JavaScript is all like "You images are done yet or what?" | MIT License */
|
20 |
+
(function(){function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var i=e.prototype,r=this,o=r.EventEmitter;i.getListeners=function(e){var t,n,i=this._getEvents();if("object"==typeof e){t={};for(n in i)i.hasOwnProperty(n)&&e.test(n)&&(t[n]=i[n])}else t=i[e]||(i[e]=[]);return t},i.flattenListeners=function(e){var t,n=[];for(t=0;e.length>t;t+=1)n.push(e[t].listener);return n},i.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},i.addListener=function(e,n){var i,r=this.getListenersAsObject(e),o="object"==typeof n;for(i in r)r.hasOwnProperty(i)&&-1===t(r[i],n)&&r[i].push(o?n:{listener:n,once:!1});return this},i.on=n("addListener"),i.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},i.once=n("addOnceListener"),i.defineEvent=function(e){return this.getListeners(e),this},i.defineEvents=function(e){for(var t=0;e.length>t;t+=1)this.defineEvent(e[t]);return this},i.removeListener=function(e,n){var i,r,o=this.getListenersAsObject(e);for(r in o)o.hasOwnProperty(r)&&(i=t(o[r],n),-1!==i&&o[r].splice(i,1));return this},i.off=n("removeListener"),i.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},i.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},i.manipulateListeners=function(e,t,n){var i,r,o=e?this.removeListener:this.addListener,s=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(i=n.length;i--;)o.call(this,t,n[i]);else for(i in t)t.hasOwnProperty(i)&&(r=t[i])&&("function"==typeof r?o.call(this,i,r):s.call(this,i,r));return this},i.removeEvent=function(e){var t,n=typeof e,i=this._getEvents();if("string"===n)delete i[e];else if("object"===n)for(t in i)i.hasOwnProperty(t)&&e.test(t)&&delete i[t];else delete this._events;return this},i.removeAllListeners=n("removeEvent"),i.emitEvent=function(e,t){var n,i,r,o,s=this.getListenersAsObject(e);for(r in s)if(s.hasOwnProperty(r))for(i=s[r].length;i--;)n=s[r][i],n.once===!0&&this.removeListener(e,n.listener),o=n.listener.apply(this,t||[]),o===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},i.trigger=n("emitEvent"),i.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},i.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},i._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},i._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return r.EventEmitter=o,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}).call(this),function(e){function t(t){var n=e.event;return n.target=n.target||n.srcElement||t,n}var n=document.documentElement,i=function(){};n.addEventListener?i=function(e,t,n){e.addEventListener(t,n,!1)}:n.attachEvent&&(i=function(e,n,i){e[n+i]=i.handleEvent?function(){var n=t(e);i.handleEvent.call(i,n)}:function(){var n=t(e);i.call(e,n)},e.attachEvent("on"+n,e[n+i])});var r=function(){};n.removeEventListener?r=function(e,t,n){e.removeEventListener(t,n,!1)}:n.detachEvent&&(r=function(e,t,n){e.detachEvent("on"+t,e[t+n]);try{delete e[t+n]}catch(i){e[t+n]=void 0}});var o={bind:i,unbind:r};"function"==typeof define&&define.amd?define("eventie/eventie",o):e.eventie=o}(this),function(e,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(n,i){return t(e,n,i)}):"object"==typeof exports?module.exports=t(e,require("wolfy87-eventemitter"),require("eventie")):e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(window,function(e,t,n){function i(e,t){for(var n in t)e[n]=t[n];return e}function r(e){return"[object Array]"===d.call(e)}function o(e){var t=[];if(r(e))t=e;else if("number"==typeof e.length)for(var n=0,i=e.length;i>n;n++)t.push(e[n]);else t.push(e);return t}function s(e,t,n){if(!(this instanceof s))return new s(e,t);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=o(e),this.options=i({},this.options),"function"==typeof t?n=t:i(this.options,t),n&&this.on("always",n),this.getImages(),a&&(this.jqDeferred=new a.Deferred);var r=this;setTimeout(function(){r.check()})}function f(e){this.img=e}function c(e){this.src=e,v[e]=this}var a=e.jQuery,u=e.console,h=u!==void 0,d=Object.prototype.toString;s.prototype=new t,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var n=this.elements[e];"IMG"===n.nodeName&&this.addImage(n);var i=n.nodeType;if(i&&(1===i||9===i||11===i))for(var r=n.querySelectorAll("img"),o=0,s=r.length;s>o;o++){var f=r[o];this.addImage(f)}}},s.prototype.addImage=function(e){var t=new f(e);this.images.push(t)},s.prototype.check=function(){function e(e,r){return t.options.debug&&h&&u.log("confirm",e,r),t.progress(e),n++,n===i&&t.complete(),!0}var t=this,n=0,i=this.images.length;if(this.hasAnyBroken=!1,!i)return this.complete(),void 0;for(var r=0;i>r;r++){var o=this.images[r];o.on("confirm",e),o.check()}},s.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var t=this;setTimeout(function(){if(t.emit(e,t),t.emit("always",t),t.jqDeferred){var n=t.hasAnyBroken?"reject":"resolve";t.jqDeferred[n](t)}})},a&&(a.fn.imagesLoaded=function(e,t){var n=new s(this,e,t);return n.jqDeferred.promise(a(this))}),f.prototype=new t,f.prototype.check=function(){var e=v[this.img.src]||new c(this.img.src);if(e.isConfirmed)return this.confirm(e.isLoaded,"cached was confirmed"),void 0;if(this.img.complete&&void 0!==this.img.naturalWidth)return this.confirm(0!==this.img.naturalWidth,"naturalWidth"),void 0;var t=this;e.on("confirm",function(e,n){return t.confirm(e.isLoaded,n),!0}),e.check()},f.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)};var v={};return c.prototype=new t,c.prototype.check=function(){if(!this.isChecked){var e=new Image;n.bind(e,"load",this),n.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},c.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},c.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},c.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},c.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit("confirm",this,t)},c.prototype.unbindProxyEvents=function(e){n.unbind(e.target,"load",this),n.unbind(e.target,"error",this)},s});
|
21 |
+
|
22 |
+
/*! JavaScript Cookie v2.0.4 | https://github.com/js-cookie/js-cookie | Copyright 2006, 2015 Klaus Hartl & Fagner Brack | Released under the MIT license */
|
23 |
+
!function(e){if("function"==typeof define&&define.amd)define(e);else if("object"==typeof exports)module.exports=e();else{var n=window.Cookies,t=window.Cookies=e();t.noConflict=function(){return window.Cookies=n,t}}}(function(){function e(){for(var e=0,n={};e<arguments.length;e++){var t=arguments[e];for(var o in t)n[o]=t[o]}return n}function n(t){function o(n,r,i){var c;if(arguments.length>1){if(i=e({path:"/"},o.defaults,i),"number"==typeof i.expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*i.expires),i.expires=s}try{c=JSON.stringify(r),/^[\{\[]/.test(c)&&(r=c)}catch(a){}return r=t.write?t.write(r,n):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=encodeURIComponent(String(n)),n=n.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),n=n.replace(/[\(\)]/g,escape),document.cookie=[n,"=",r,i.expires&&"; expires="+i.expires.toUTCString(),i.path&&"; path="+i.path,i.domain&&"; domain="+i.domain,i.secure?"; secure":""].join("")}n||(c={});for(var p=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,u=0;u<p.length;u++){var f=p[u].split("="),l=f[0].replace(d,decodeURIComponent),m=f.slice(1).join("=");'"'===m.charAt(0)&&(m=m.slice(1,-1));try{if(m=t.read?t.read(m,l):t(m,l)||m.replace(d,decodeURIComponent),this.json)try{m=JSON.parse(m)}catch(a){}if(n===l){c=m;break}n||(c[l]=m)}catch(a){}}return c}return o.get=o.set=o,o.getJSON=function(){return o.apply({json:!0},[].slice.call(arguments))},o.defaults={},o.remove=function(n,t){o(n,"",e(t,{expires:-1}))},o.withConverter=n,o}return n(function(){})});
|
js/yoast-seo.js
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(document).ready(function(){
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Main Function
|
5 |
+
*/
|
6 |
+
dslcYoastFilter = function() {
|
7 |
+
|
8 |
+
YoastSEO.app.registerPlugin( 'dslcYoastFilter', {status: 'ready'} );
|
9 |
+
YoastSEO.app.registerModification( 'content', this.modifyContent, 'dslcYoastFilter', 5 );
|
10 |
+
|
11 |
+
}
|
12 |
+
|
13 |
+
/**
|
14 |
+
* Add LC content
|
15 |
+
*/
|
16 |
+
dslcYoastFilter.prototype.modifyContent = function(data) {
|
17 |
+
|
18 |
+
// Get LC Content
|
19 |
+
var lcContent = jQuery('input[value="dslc_content_for_search"]').closest('tr').find('textarea').val();
|
20 |
+
|
21 |
+
// If there is LC content append
|
22 |
+
if ( lcContent !== 'undefined' ) {
|
23 |
+
data = data + ' ' + lcContent;
|
24 |
+
}
|
25 |
+
|
26 |
+
// Pass it back to Yoast
|
27 |
+
return data;
|
28 |
+
|
29 |
+
};
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Initiate
|
33 |
+
*/
|
34 |
+
setTimeout( function(){
|
35 |
+
|
36 |
+
// Make sure YoastSEO is a thing
|
37 |
+
if (typeof YoastSEO !== 'undefined') {
|
38 |
+
new dslcYoastFilter();
|
39 |
+
}
|
40 |
+
|
41 |
+
}, 0);
|
42 |
+
|
43 |
+
});
|
modules/blog/module.php
CHANGED
@@ -183,6 +183,23 @@ class DSLC_Blog extends DSLC_Module {
|
|
183 |
'std' => '0',
|
184 |
'type' => 'text',
|
185 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
array(
|
187 |
'label' => __( 'Include (IDs)', 'live-composer-page-builder' ),
|
188 |
'id' => 'query_post_in',
|
@@ -2704,6 +2721,10 @@ class DSLC_Blog extends DSLC_Module {
|
|
2704 |
// No paging
|
2705 |
if ( $options['pagination_type'] == 'disabled' )
|
2706 |
$args['no_found_rows'] = true;
|
|
|
|
|
|
|
|
|
2707 |
|
2708 |
// Do the query
|
2709 |
if ( ( is_category() || is_tag() || is_tax() ) && $options['query_alter_cat'] == 'enabled' ) {
|
183 |
'std' => '0',
|
184 |
'type' => 'text',
|
185 |
),
|
186 |
+
array(
|
187 |
+
'label' => __( 'Sticky Posts', 'live-composer-page-builder' ),
|
188 |
+
'id' => 'sticky_posts',
|
189 |
+
'help' => __( 'If enabled sticky posts will be pushed to the top. If disabled sticky posts will follow regular order.', 'live-composer-page-builder' ),
|
190 |
+
'std' => 'enabled',
|
191 |
+
'type' => 'select',
|
192 |
+
'choices' => array(
|
193 |
+
array(
|
194 |
+
'label' => __( 'Enabled', 'live-composer-page-builder' ),
|
195 |
+
'value' => 'enabled'
|
196 |
+
),
|
197 |
+
array(
|
198 |
+
'label' => __( 'Disabled', 'live-composer-page-builder' ),
|
199 |
+
'value' => 'disabled'
|
200 |
+
)
|
201 |
+
)
|
202 |
+
),
|
203 |
array(
|
204 |
'label' => __( 'Include (IDs)', 'live-composer-page-builder' ),
|
205 |
'id' => 'query_post_in',
|
2721 |
// No paging
|
2722 |
if ( $options['pagination_type'] == 'disabled' )
|
2723 |
$args['no_found_rows'] = true;
|
2724 |
+
|
2725 |
+
// Sticky Posts
|
2726 |
+
if ( $options['sticky_posts'] == 'disabled' )
|
2727 |
+
$args['ignore_sticky_posts'] = true;
|
2728 |
|
2729 |
// Do the query
|
2730 |
if ( ( is_category() || is_tag() || is_tax() ) && $options['query_alter_cat'] == 'enabled' ) {
|
modules/button/module.php
CHANGED
@@ -85,6 +85,10 @@ class DSLC_Button extends DSLC_Module {
|
|
85 |
'label' => __( 'New Tab', 'live-composer-page-builder' ),
|
86 |
'value' => '_blank',
|
87 |
),
|
|
|
|
|
|
|
|
|
88 |
)
|
89 |
),
|
90 |
|
@@ -340,6 +344,20 @@ class DSLC_Button extends DSLC_Module {
|
|
340 |
'section' => 'styling',
|
341 |
'tab' => __( 'typography', 'live-composer-page-builder' ),
|
342 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
343 |
|
344 |
/**
|
345 |
* Icon
|
@@ -881,16 +899,28 @@ class DSLC_Button extends DSLC_Module {
|
|
881 |
?>
|
882 |
|
883 |
<div class="dslc-button">
|
884 |
-
|
885 |
-
<?php
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
|
893 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
894 |
|
895 |
<?php
|
896 |
|
85 |
'label' => __( 'New Tab', 'live-composer-page-builder' ),
|
86 |
'value' => '_blank',
|
87 |
),
|
88 |
+
array(
|
89 |
+
'label' => __( 'Lightbox', 'live-composer-page-builder' ),
|
90 |
+
'value' => 'lightbox',
|
91 |
+
),
|
92 |
)
|
93 |
),
|
94 |
|
344 |
'section' => 'styling',
|
345 |
'tab' => __( 'typography', 'live-composer-page-builder' ),
|
346 |
),
|
347 |
+
array(
|
348 |
+
'label' => __( 'Letter Spacing', 'live-composer-page-builder' ),
|
349 |
+
'id' => 'css_button_letter_spacing',
|
350 |
+
'std' => '0',
|
351 |
+
'type' => 'slider',
|
352 |
+
'refresh_on_change' => false,
|
353 |
+
'affect_on_change_el' => '.dslc-button a',
|
354 |
+
'affect_on_change_rule' => 'letter-spacing',
|
355 |
+
'section' => 'styling',
|
356 |
+
'tab' => __( 'typography', 'live-composer-page-builder' ),
|
357 |
+
'ext' => 'px',
|
358 |
+
'min' => -50,
|
359 |
+
'max' => 50
|
360 |
+
),
|
361 |
|
362 |
/**
|
363 |
* Icon
|
899 |
?>
|
900 |
|
901 |
<div class="dslc-button">
|
902 |
+
<?php if ( $options['button_target'] == 'lightbox' ) : ?>
|
903 |
+
<a href="<?php echo do_shortcode( $options['button_url'] ); ?>" <?php echo $anchor_append; ?> class="dslc-lightbox-image <?php echo esc_attr( $options['button_class'] ); ?>">
|
904 |
+
<?php if ( $options['button_state'] == 'enabled' && $options['icon_pos'] == 'left' ) : ?>
|
905 |
+
<span class="dslc-icon dslc-icon-<?php echo $options['button_icon_id']; ?>"></span>
|
906 |
+
<?php endif; ?>
|
907 |
+
<span class="dslca-editable-content" data-id="button_text" data-type="simple" <?php if ( $dslc_is_admin ) echo 'contenteditable'; ?>><?php echo stripslashes( $options['button_text'] ); ?></span>
|
908 |
+
<?php if ( $options['button_state'] == 'enabled' && $options['icon_pos'] == 'right' ) : ?>
|
909 |
+
<span class="dslc-icon dslc-icon-<?php echo $options['button_icon_id']; ?>"></span>
|
910 |
+
<?php endif; ?>
|
911 |
+
</a>
|
912 |
+
<?php else : ?>
|
913 |
+
<a href="<?php echo do_shortcode( $options['button_url'] ); ?>" target="<?php echo $options['button_target']; ?>" <?php echo $anchor_append; ?> class="<?php echo esc_attr( $options['button_class'] ); ?>">
|
914 |
+
<?php if ( $options['button_state'] == 'enabled' && $options['icon_pos'] == 'left' ) : ?>
|
915 |
+
<span class="dslc-icon dslc-icon-<?php echo $options['button_icon_id']; ?>"></span>
|
916 |
+
<?php endif; ?>
|
917 |
+
<span class="dslca-editable-content" data-id="button_text" data-type="simple" <?php if ( $dslc_is_admin ) echo 'contenteditable'; ?>><?php echo stripslashes( $options['button_text'] ); ?></span>
|
918 |
+
<?php if ( $options['button_state'] == 'enabled' && $options['icon_pos'] == 'right' ) : ?>
|
919 |
+
<span class="dslc-icon dslc-icon-<?php echo $options['button_icon_id']; ?>"></span>
|
920 |
+
<?php endif; ?>
|
921 |
+
</a>
|
922 |
+
<?php endif; ?>
|
923 |
+
</div><!-- .dslc-button -->
|
924 |
|
925 |
<?php
|
926 |
|
modules/html/module.php
CHANGED
@@ -2049,7 +2049,7 @@ class DSLC_Html extends DSLC_Module {
|
|
2049 |
'std' => 'left',
|
2050 |
'type' => 'text_align',
|
2051 |
'refresh_on_change' => false,
|
2052 |
-
'affect_on_change_el' => 'blockquote',
|
2053 |
'affect_on_change_rule' => 'text-align',
|
2054 |
'section' => 'styling',
|
2055 |
'tab' => __( 'blockquote', 'live-composer-page-builder' ),
|
@@ -2274,6 +2274,28 @@ class DSLC_Html extends DSLC_Module {
|
|
2274 |
'section' => 'styling',
|
2275 |
'tab' => __( 'buttons', 'live-composer-page-builder' ),
|
2276 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2277 |
|
2278 |
/**
|
2279 |
* Responsive Tablet
|
2049 |
'std' => 'left',
|
2050 |
'type' => 'text_align',
|
2051 |
'refresh_on_change' => false,
|
2052 |
+
'affect_on_change_el' => 'blockquote, .dslc-html-module-content blockquote p',
|
2053 |
'affect_on_change_rule' => 'text-align',
|
2054 |
'section' => 'styling',
|
2055 |
'tab' => __( 'blockquote', 'live-composer-page-builder' ),
|
2274 |
'section' => 'styling',
|
2275 |
'tab' => __( 'buttons', 'live-composer-page-builder' ),
|
2276 |
),
|
2277 |
+
array(
|
2278 |
+
'label' => __( 'Box Shadow', 'live-composer-page-builder' ),
|
2279 |
+
'id' => 'css_button_box_shadow',
|
2280 |
+
'std' => '',
|
2281 |
+
'type' => 'box_shadow',
|
2282 |
+
'refresh_on_change' => false,
|
2283 |
+
'affect_on_change_el' => 'input[type=submit], button',
|
2284 |
+
'affect_on_change_rule' => 'box-shadow',
|
2285 |
+
'section' => 'styling',
|
2286 |
+
'tab' => __( 'buttons', 'live-composer-page-builder' ),
|
2287 |
+
),
|
2288 |
+
array(
|
2289 |
+
'label' => __( 'Box Shadow - Hover', 'live-composer-page-builder' ),
|
2290 |
+
'id' => 'css_button_box_shadow_hover',
|
2291 |
+
'std' => '',
|
2292 |
+
'type' => 'box_shadow',
|
2293 |
+
'refresh_on_change' => false,
|
2294 |
+
'affect_on_change_el' => 'input[type=submit]:hover, button:hover',
|
2295 |
+
'affect_on_change_rule' => 'box-shadow',
|
2296 |
+
'section' => 'styling',
|
2297 |
+
'tab' => __( 'buttons', 'live-composer-page-builder' ),
|
2298 |
+
),
|
2299 |
|
2300 |
/**
|
2301 |
* Responsive Tablet
|
modules/image/module.php
CHANGED
@@ -234,6 +234,8 @@ class DSLC_Image extends DSLC_Module {
|
|
234 |
'affect_on_change_rule' => 'margin-bottom',
|
235 |
'section' => 'styling',
|
236 |
'ext' => 'px',
|
|
|
|
|
237 |
),
|
238 |
array(
|
239 |
'label' => __( 'Minimum Height', 'live-composer-page-builder' ),
|
234 |
'affect_on_change_rule' => 'margin-bottom',
|
235 |
'section' => 'styling',
|
236 |
'ext' => 'px',
|
237 |
+
'min' => -150,
|
238 |
+
'max' => 150
|
239 |
),
|
240 |
array(
|
241 |
'label' => __( 'Minimum Height', 'live-composer-page-builder' ),
|
modules/infobox/module.php
CHANGED
@@ -1048,6 +1048,20 @@ class DSLC_Info_Box extends DSLC_Module {
|
|
1048 |
'section' => 'styling',
|
1049 |
'tab' => __( 'Title', 'live-composer-page-builder' ),
|
1050 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1051 |
array(
|
1052 |
'label' => __( 'Line Height', 'live-composer-page-builder' ),
|
1053 |
'id' => 'css_title_line_height',
|
1048 |
'section' => 'styling',
|
1049 |
'tab' => __( 'Title', 'live-composer-page-builder' ),
|
1050 |
),
|
1051 |
+
array(
|
1052 |
+
'label' => __( 'Letter Spacing', 'live-composer-page-builder' ),
|
1053 |
+
'id' => 'css_title_letter_spacing',
|
1054 |
+
'std' => '0',
|
1055 |
+
'type' => 'slider',
|
1056 |
+
'refresh_on_change' => false,
|
1057 |
+
'affect_on_change_el' => '.dslc-info-box-title h4',
|
1058 |
+
'affect_on_change_rule' => 'letter-spacing',
|
1059 |
+
'section' => 'styling',
|
1060 |
+
'tab' => __( 'Title', 'live-composer-page-builder' ),
|
1061 |
+
'ext' => 'px',
|
1062 |
+
'min' => -50,
|
1063 |
+
'max' => 50
|
1064 |
+
),
|
1065 |
array(
|
1066 |
'label' => __( 'Line Height', 'live-composer-page-builder' ),
|
1067 |
'id' => 'css_title_line_height',
|
modules/notification/module.php
CHANGED
@@ -40,6 +40,13 @@ class DSLC_Notification extends DSLC_Module {
|
|
40 |
),
|
41 |
),
|
42 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
/**
|
45 |
* Styling
|
@@ -685,10 +692,18 @@ class DSLC_Notification extends DSLC_Module {
|
|
685 |
$this->module_start( $options );
|
686 |
|
687 |
/* Module output starts here */
|
688 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
689 |
?>
|
690 |
|
691 |
-
<div class="
|
692 |
<div class="dslc-notification-box-content dslca-editable-content" data-id="content">
|
693 |
<?php
|
694 |
$output_content = stripslashes( $options['content'] );
|
40 |
),
|
41 |
),
|
42 |
),
|
43 |
+
array(
|
44 |
+
'label' => __( 'Show Again After ( days )', 'live-composer-page-builder' ),
|
45 |
+
'help' => __( 'Amount of days until the notifications shows again to the user that closed it.<br>If value empty it will show on every page load.', 'live-composer-page-builder' ),
|
46 |
+
'id' => 'notification_timeout',
|
47 |
+
'std' => '',
|
48 |
+
'type' => 'text',
|
49 |
+
),
|
50 |
|
51 |
/**
|
52 |
* Styling
|
692 |
$this->module_start( $options );
|
693 |
|
694 |
/* Module output starts here */
|
695 |
+
|
696 |
+
// Classes
|
697 |
+
$classes = 'dslc-notification-box ';
|
698 |
+
|
699 |
+
// Timeout after closing
|
700 |
+
if ( is_numeric( $options['notification_timeout'] ) ) {
|
701 |
+
$classes .= 'dslc-notification-box-has-timeout ';
|
702 |
+
}
|
703 |
+
|
704 |
?>
|
705 |
|
706 |
+
<div class="<?php echo $classes; ?>" data-notification-timeout="<?php echo $options['notification_timeout']; ?>">
|
707 |
<div class="dslc-notification-box-content dslca-editable-content" data-id="content">
|
708 |
<?php
|
709 |
$output_content = stripslashes( $options['content'] );
|
modules/posts/module.php
CHANGED
@@ -183,6 +183,23 @@ class DSLC_Posts extends DSLC_Module {
|
|
183 |
'std' => '0',
|
184 |
'type' => 'text',
|
185 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
array(
|
187 |
'label' => __( 'Include (IDs)', 'live-composer-page-builder' ),
|
188 |
'id' => 'query_post_in',
|
@@ -2272,7 +2289,11 @@ class DSLC_Posts extends DSLC_Module {
|
|
2272 |
// No paging
|
2273 |
if ( $options['pagination_type'] == 'disabled' )
|
2274 |
$args['no_found_rows'] = true;
|
2275 |
-
|
|
|
|
|
|
|
|
|
2276 |
// Do the query
|
2277 |
if ( ( is_category() || is_tag() || is_tax() ) && $options['query_alter_cat'] == 'enabled' ) {
|
2278 |
global $wp_query;
|
183 |
'std' => '0',
|
184 |
'type' => 'text',
|
185 |
),
|
186 |
+
array(
|
187 |
+
'label' => __( 'Sticky Posts', 'live-composer-page-builder' ),
|
188 |
+
'id' => 'sticky_posts',
|
189 |
+
'help' => __( 'If enabled sticky posts will be pushed to the top. If disabled sticky posts will follow regular order.', 'live-composer-page-builder' ),
|
190 |
+
'std' => 'enabled',
|
191 |
+
'type' => 'select',
|
192 |
+
'choices' => array(
|
193 |
+
array(
|
194 |
+
'label' => __( 'Enabled', 'live-composer-page-builder' ),
|
195 |
+
'value' => 'enabled'
|
196 |
+
),
|
197 |
+
array(
|
198 |
+
'label' => __( 'Disabled', 'live-composer-page-builder' ),
|
199 |
+
'value' => 'disabled'
|
200 |
+
)
|
201 |
+
)
|
202 |
+
),
|
203 |
array(
|
204 |
'label' => __( 'Include (IDs)', 'live-composer-page-builder' ),
|
205 |
'id' => 'query_post_in',
|
2289 |
// No paging
|
2290 |
if ( $options['pagination_type'] == 'disabled' )
|
2291 |
$args['no_found_rows'] = true;
|
2292 |
+
|
2293 |
+
// Sticky Posts
|
2294 |
+
if ( $options['sticky_posts'] == 'disabled' )
|
2295 |
+
$args['ignore_sticky_posts'] = true;
|
2296 |
+
|
2297 |
// Do the query
|
2298 |
if ( ( is_category() || is_tag() || is_tax() ) && $options['query_alter_cat'] == 'enabled' ) {
|
2299 |
global $wp_query;
|
modules/text-simple/module.php
CHANGED
@@ -2919,7 +2919,7 @@ class DSLC_Text_Simple extends DSLC_Module {
|
|
2919 |
'std' => 'left',
|
2920 |
'type' => 'text_align',
|
2921 |
'refresh_on_change' => false,
|
2922 |
-
'affect_on_change_el' => 'blockquote',
|
2923 |
'affect_on_change_rule' => 'text-align',
|
2924 |
'section' => 'styling',
|
2925 |
'tab' => __( 'blockquote', 'live-composer-page-builder' ),
|
@@ -3144,6 +3144,28 @@ class DSLC_Text_Simple extends DSLC_Module {
|
|
3144 |
'section' => 'styling',
|
3145 |
'tab' => __( 'buttons', 'live-composer-page-builder' ),
|
3146 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3147 |
|
3148 |
/**
|
3149 |
* Responsive Tablet
|
2919 |
'std' => 'left',
|
2920 |
'type' => 'text_align',
|
2921 |
'refresh_on_change' => false,
|
2922 |
+
'affect_on_change_el' => 'blockquote, .dslc-text-module-content blockquote p',
|
2923 |
'affect_on_change_rule' => 'text-align',
|
2924 |
'section' => 'styling',
|
2925 |
'tab' => __( 'blockquote', 'live-composer-page-builder' ),
|
3144 |
'section' => 'styling',
|
3145 |
'tab' => __( 'buttons', 'live-composer-page-builder' ),
|
3146 |
),
|
3147 |
+
array(
|
3148 |
+
'label' => __( 'Box Shadow', 'live-composer-page-builder' ),
|
3149 |
+
'id' => 'css_button_box_shadow',
|
3150 |
+
'std' => '',
|
3151 |
+
'type' => 'box_shadow',
|
3152 |
+
'refresh_on_change' => false,
|
3153 |
+
'affect_on_change_el' => 'input[type=submit], button',
|
3154 |
+
'affect_on_change_rule' => 'box-shadow',
|
3155 |
+
'section' => 'styling',
|
3156 |
+
'tab' => __( 'buttons', 'live-composer-page-builder' ),
|
3157 |
+
),
|
3158 |
+
array(
|
3159 |
+
'label' => __( 'Box Shadow - Hover', 'live-composer-page-builder' ),
|
3160 |
+
'id' => 'css_button_box_shadow_hover',
|
3161 |
+
'std' => '',
|
3162 |
+
'type' => 'box_shadow',
|
3163 |
+
'refresh_on_change' => false,
|
3164 |
+
'affect_on_change_el' => 'input[type=submit]:hover, button:hover',
|
3165 |
+
'affect_on_change_rule' => 'box-shadow',
|
3166 |
+
'section' => 'styling',
|
3167 |
+
'tab' => __( 'buttons', 'live-composer-page-builder' ),
|
3168 |
+
),
|
3169 |
|
3170 |
/**
|
3171 |
* Responsive Tablet
|
modules/tp-content/module.php
CHANGED
@@ -2689,6 +2689,28 @@ class DSLC_TP_Content extends DSLC_Module {
|
|
2689 |
'section' => 'styling',
|
2690 |
'tab' => __( 'buttons', 'live-composer-page-builder' ),
|
2691 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2692 |
|
2693 |
/**
|
2694 |
* Blockquote
|
@@ -3022,7 +3044,7 @@ class DSLC_TP_Content extends DSLC_Module {
|
|
3022 |
'std' => 'left',
|
3023 |
'type' => 'text_align',
|
3024 |
'refresh_on_change' => false,
|
3025 |
-
'affect_on_change_el' => 'blockquote',
|
3026 |
'affect_on_change_rule' => 'text-align',
|
3027 |
'section' => 'styling',
|
3028 |
'tab' => __( 'blockquote', 'live-composer-page-builder' ),
|
2689 |
'section' => 'styling',
|
2690 |
'tab' => __( 'buttons', 'live-composer-page-builder' ),
|
2691 |
),
|
2692 |
+
array(
|
2693 |
+
'label' => __( 'Box Shadow', 'live-composer-page-builder' ),
|
2694 |
+
'id' => 'css_button_box_shadow',
|
2695 |
+
'std' => '',
|
2696 |
+
'type' => 'box_shadow',
|
2697 |
+
'refresh_on_change' => false,
|
2698 |
+
'affect_on_change_el' => 'input[type=submit], button',
|
2699 |
+
'affect_on_change_rule' => 'box-shadow',
|
2700 |
+
'section' => 'styling',
|
2701 |
+
'tab' => __( 'buttons', 'live-composer-page-builder' ),
|
2702 |
+
),
|
2703 |
+
array(
|
2704 |
+
'label' => __( 'Box Shadow - Hover', 'live-composer-page-builder' ),
|
2705 |
+
'id' => 'css_button_box_shadow_hover',
|
2706 |
+
'std' => '',
|
2707 |
+
'type' => 'box_shadow',
|
2708 |
+
'refresh_on_change' => false,
|
2709 |
+
'affect_on_change_el' => 'input[type=submit]:hover, button:hover',
|
2710 |
+
'affect_on_change_rule' => 'box-shadow',
|
2711 |
+
'section' => 'styling',
|
2712 |
+
'tab' => __( 'buttons', 'live-composer-page-builder' ),
|
2713 |
+
),
|
2714 |
|
2715 |
/**
|
2716 |
* Blockquote
|
3044 |
'std' => 'left',
|
3045 |
'type' => 'text_align',
|
3046 |
'refresh_on_change' => false,
|
3047 |
+
'affect_on_change_el' => 'blockquote, .dslc-tp-content blockquote p',
|
3048 |
'affect_on_change_rule' => 'text-align',
|
3049 |
'section' => 'styling',
|
3050 |
'tab' => __( 'blockquote', 'live-composer-page-builder' ),
|
modules/tp-staff-social/module.php
CHANGED
@@ -50,7 +50,7 @@ class DSLC_TP_Staff_Social extends DSLC_Module {
|
|
50 |
'std' => '#000000',
|
51 |
'type' => 'color',
|
52 |
'refresh_on_change' => false,
|
53 |
-
'affect_on_change_el' => 'ul.dslc-social a',
|
54 |
'affect_on_change_rule' => 'border-color',
|
55 |
'section' => 'styling',
|
56 |
),
|
@@ -60,7 +60,7 @@ class DSLC_TP_Staff_Social extends DSLC_Module {
|
|
60 |
'std' => '',
|
61 |
'type' => 'color',
|
62 |
'refresh_on_change' => false,
|
63 |
-
'affect_on_change_el' => 'ul.dslc-social a:hover',
|
64 |
'affect_on_change_rule' => 'border-color',
|
65 |
'section' => 'styling',
|
66 |
),
|
@@ -70,7 +70,7 @@ class DSLC_TP_Staff_Social extends DSLC_Module {
|
|
70 |
'std' => '0',
|
71 |
'type' => 'slider',
|
72 |
'refresh_on_change' => false,
|
73 |
-
'affect_on_change_el' => 'ul.dslc-social a',
|
74 |
'affect_on_change_rule' => 'border-width',
|
75 |
'section' => 'styling',
|
76 |
'ext' => 'px',
|
@@ -99,7 +99,7 @@ class DSLC_TP_Staff_Social extends DSLC_Module {
|
|
99 |
),
|
100 |
),
|
101 |
'refresh_on_change' => false,
|
102 |
-
'affect_on_change_el' => 'ul.dslc-social a',
|
103 |
'affect_on_change_rule' => 'border-style',
|
104 |
'section' => 'styling',
|
105 |
),
|
@@ -109,7 +109,7 @@ class DSLC_TP_Staff_Social extends DSLC_Module {
|
|
109 |
'std' => '50',
|
110 |
'type' => 'slider',
|
111 |
'refresh_on_change' => false,
|
112 |
-
'affect_on_change_el' => 'ul.dslc-social a',
|
113 |
'affect_on_change_rule' => 'border-radius',
|
114 |
'section' => 'styling',
|
115 |
'ext' => 'px',
|
@@ -120,7 +120,7 @@ class DSLC_TP_Staff_Social extends DSLC_Module {
|
|
120 |
'std' => '#40bde6',
|
121 |
'type' => 'color',
|
122 |
'refresh_on_change' => false,
|
123 |
-
'affect_on_change_el' => ' ul.dslc-social a',
|
124 |
'affect_on_change_rule' => 'background-color',
|
125 |
'section' => 'styling',
|
126 |
),
|
@@ -130,7 +130,7 @@ class DSLC_TP_Staff_Social extends DSLC_Module {
|
|
130 |
'std' => '#40bde6',
|
131 |
'type' => 'color',
|
132 |
'refresh_on_change' => false,
|
133 |
-
'affect_on_change_el' => ' ul.dslc-social a:hover',
|
134 |
'affect_on_change_rule' => 'background-color',
|
135 |
'section' => 'styling',
|
136 |
),
|
@@ -140,7 +140,7 @@ class DSLC_TP_Staff_Social extends DSLC_Module {
|
|
140 |
'std' => '0',
|
141 |
'type' => 'slider',
|
142 |
'refresh_on_change' => false,
|
143 |
-
'affect_on_change_el' => 'ul.dslc-social',
|
144 |
'affect_on_change_rule' => 'margin-bottom',
|
145 |
'section' => 'styling',
|
146 |
'ext' => 'px',
|
@@ -151,7 +151,7 @@ class DSLC_TP_Staff_Social extends DSLC_Module {
|
|
151 |
'std' => '0',
|
152 |
'type' => 'slider',
|
153 |
'refresh_on_change' => false,
|
154 |
-
'affect_on_change_el' => 'ul.dslc-social',
|
155 |
'affect_on_change_rule' => 'min-height',
|
156 |
'section' => 'styling',
|
157 |
'ext' => 'px',
|
@@ -165,7 +165,7 @@ class DSLC_TP_Staff_Social extends DSLC_Module {
|
|
165 |
'std' => '30',
|
166 |
'type' => 'slider',
|
167 |
'refresh_on_change' => false,
|
168 |
-
'affect_on_change_el' => 'ul.dslc-social a',
|
169 |
'affect_on_change_rule' => 'width,height',
|
170 |
'section' => 'styling',
|
171 |
'ext' => 'px'
|
@@ -176,7 +176,7 @@ class DSLC_TP_Staff_Social extends DSLC_Module {
|
|
176 |
'std' => '10',
|
177 |
'type' => 'slider',
|
178 |
'refresh_on_change' => false,
|
179 |
-
'affect_on_change_el' => 'ul.dslc-social li',
|
180 |
'affect_on_change_rule' => 'margin-right',
|
181 |
'section' => 'styling',
|
182 |
'ext' => 'px'
|
@@ -190,7 +190,7 @@ class DSLC_TP_Staff_Social extends DSLC_Module {
|
|
190 |
'std' => '#ffffff',
|
191 |
'type' => 'color',
|
192 |
'refresh_on_change' => false,
|
193 |
-
'affect_on_change_el' => ' ul.dslc-social .dslc-icon',
|
194 |
'affect_on_change_rule' => 'color',
|
195 |
'section' => 'styling',
|
196 |
'tab' => __( 'icon', 'live-composer-page-builder' ),
|
@@ -201,7 +201,7 @@ class DSLC_TP_Staff_Social extends DSLC_Module {
|
|
201 |
'std' => '#ffffff',
|
202 |
'type' => 'color',
|
203 |
'refresh_on_change' => false,
|
204 |
-
'affect_on_change_el' => ' ul.dslc-social a:hover .dslc-icon',
|
205 |
'affect_on_change_rule' => 'color',
|
206 |
'section' => 'styling',
|
207 |
'tab' => __( 'icon', 'live-composer-page-builder' ),
|
@@ -212,7 +212,7 @@ class DSLC_TP_Staff_Social extends DSLC_Module {
|
|
212 |
'std' => '15',
|
213 |
'type' => 'slider',
|
214 |
'refresh_on_change' => false,
|
215 |
-
'affect_on_change_el' => 'ul.dslc-social a',
|
216 |
'affect_on_change_rule' => 'font-size',
|
217 |
'section' => 'styling',
|
218 |
'tab' => __( 'icon', 'live-composer-page-builder' ),
|
@@ -247,7 +247,7 @@ class DSLC_TP_Staff_Social extends DSLC_Module {
|
|
247 |
'std' => '0',
|
248 |
'type' => 'slider',
|
249 |
'refresh_on_change' => false,
|
250 |
-
'affect_on_change_el' => 'ul.dslc-social',
|
251 |
'affect_on_change_rule' => 'margin-bottom',
|
252 |
'section' => 'responsive',
|
253 |
'tab' => __( 'tablet', 'live-composer-page-builder' ),
|
@@ -259,7 +259,7 @@ class DSLC_TP_Staff_Social extends DSLC_Module {
|
|
259 |
'std' => '30',
|
260 |
'type' => 'slider',
|
261 |
'refresh_on_change' => false,
|
262 |
-
'affect_on_change_el' => 'ul.dslc-social a',
|
263 |
'affect_on_change_rule' => 'width,height',
|
264 |
'section' => 'responsive',
|
265 |
'tab' => __( 'tablet', 'live-composer-page-builder' ),
|
@@ -271,7 +271,7 @@ class DSLC_TP_Staff_Social extends DSLC_Module {
|
|
271 |
'std' => '15',
|
272 |
'type' => 'slider',
|
273 |
'refresh_on_change' => false,
|
274 |
-
'affect_on_change_el' => 'ul.dslc-social a',
|
275 |
'affect_on_change_rule' => 'font-size',
|
276 |
'section' => 'responsive',
|
277 |
'tab' => __( 'tablet', 'live-composer-page-builder' ),
|
@@ -283,7 +283,7 @@ class DSLC_TP_Staff_Social extends DSLC_Module {
|
|
283 |
'std' => '10',
|
284 |
'type' => 'slider',
|
285 |
'refresh_on_change' => false,
|
286 |
-
'affect_on_change_el' => 'ul.dslc-social li',
|
287 |
'affect_on_change_rule' => 'margin-right',
|
288 |
'section' => 'responsive',
|
289 |
'tab' => __( 'tablet', 'live-composer-page-builder' ),
|
@@ -318,7 +318,7 @@ class DSLC_TP_Staff_Social extends DSLC_Module {
|
|
318 |
'std' => '0',
|
319 |
'type' => 'slider',
|
320 |
'refresh_on_change' => false,
|
321 |
-
'affect_on_change_el' => 'ul.dslc-social',
|
322 |
'affect_on_change_rule' => 'margin-bottom',
|
323 |
'section' => 'responsive',
|
324 |
'tab' => __( 'phone', 'live-composer-page-builder' ),
|
@@ -330,7 +330,7 @@ class DSLC_TP_Staff_Social extends DSLC_Module {
|
|
330 |
'std' => '30',
|
331 |
'type' => 'slider',
|
332 |
'refresh_on_change' => false,
|
333 |
-
'affect_on_change_el' => 'ul.dslc-social a',
|
334 |
'affect_on_change_rule' => 'width,height',
|
335 |
'section' => 'responsive',
|
336 |
'tab' => __( 'phone', 'live-composer-page-builder' ),
|
@@ -342,7 +342,7 @@ class DSLC_TP_Staff_Social extends DSLC_Module {
|
|
342 |
'std' => '15',
|
343 |
'type' => 'slider',
|
344 |
'refresh_on_change' => false,
|
345 |
-
'affect_on_change_el' => 'ul.dslc-social a',
|
346 |
'affect_on_change_rule' => 'font-size',
|
347 |
'section' => 'responsive',
|
348 |
'tab' => __( 'phone', 'live-composer-page-builder' ),
|
@@ -354,7 +354,7 @@ class DSLC_TP_Staff_Social extends DSLC_Module {
|
|
354 |
'std' => '10',
|
355 |
'type' => 'slider',
|
356 |
'refresh_on_change' => false,
|
357 |
-
'affect_on_change_el' => 'ul.dslc-social li',
|
358 |
'affect_on_change_rule' => 'margin-right',
|
359 |
'section' => 'responsive',
|
360 |
'tab' => __( 'phone', 'live-composer-page-builder' ),
|
@@ -393,7 +393,7 @@ class DSLC_TP_Staff_Social extends DSLC_Module {
|
|
393 |
?>
|
394 |
|
395 |
<div class="dslc-tp-staff-social">
|
396 |
-
<ul class="dslc-social">
|
397 |
<?php if ( $show_fake ) : ?>
|
398 |
<li><a target="_blank" href="#"><span class="dslc-icon dslc-init-center dslc-icon-twitter"></span></a></li>
|
399 |
<li><a target="_blank" href="#"><span class="dslc-icon dslc-init-center dslc-icon-facebook"></span></a></li>
|
@@ -419,7 +419,7 @@ class DSLC_TP_Staff_Social extends DSLC_Module {
|
|
419 |
<li><a target="_blank" href="<?php echo $social_linkedin; ?>"><span class="dslc-icon dslc-init-center dslc-icon-linkedin"></span></a></li>
|
420 |
<?php endif; ?>
|
421 |
<?php endif; ?>
|
422 |
-
</ul><!-- .dslc-social -->
|
423 |
</div><!-- .dslc-tp-staff-social -->
|
424 |
|
425 |
<?php
|
50 |
'std' => '#000000',
|
51 |
'type' => 'color',
|
52 |
'refresh_on_change' => false,
|
53 |
+
'affect_on_change_el' => 'ul.dslc-staff-social a',
|
54 |
'affect_on_change_rule' => 'border-color',
|
55 |
'section' => 'styling',
|
56 |
),
|
60 |
'std' => '',
|
61 |
'type' => 'color',
|
62 |
'refresh_on_change' => false,
|
63 |
+
'affect_on_change_el' => 'ul.dslc-staff-social a:hover',
|
64 |
'affect_on_change_rule' => 'border-color',
|
65 |
'section' => 'styling',
|
66 |
),
|
70 |
'std' => '0',
|
71 |
'type' => 'slider',
|
72 |
'refresh_on_change' => false,
|
73 |
+
'affect_on_change_el' => 'ul.dslc-staff-social a',
|
74 |
'affect_on_change_rule' => 'border-width',
|
75 |
'section' => 'styling',
|
76 |
'ext' => 'px',
|
99 |
),
|
100 |
),
|
101 |
'refresh_on_change' => false,
|
102 |
+
'affect_on_change_el' => 'ul.dslc-staff-social a',
|
103 |
'affect_on_change_rule' => 'border-style',
|
104 |
'section' => 'styling',
|
105 |
),
|
109 |
'std' => '50',
|
110 |
'type' => 'slider',
|
111 |
'refresh_on_change' => false,
|
112 |
+
'affect_on_change_el' => 'ul.dslc-staff-social a',
|
113 |
'affect_on_change_rule' => 'border-radius',
|
114 |
'section' => 'styling',
|
115 |
'ext' => 'px',
|
120 |
'std' => '#40bde6',
|
121 |
'type' => 'color',
|
122 |
'refresh_on_change' => false,
|
123 |
+
'affect_on_change_el' => ' ul.dslc-staff-social a',
|
124 |
'affect_on_change_rule' => 'background-color',
|
125 |
'section' => 'styling',
|
126 |
),
|
130 |
'std' => '#40bde6',
|
131 |
'type' => 'color',
|
132 |
'refresh_on_change' => false,
|
133 |
+
'affect_on_change_el' => ' ul.dslc-staff-social a:hover',
|
134 |
'affect_on_change_rule' => 'background-color',
|
135 |
'section' => 'styling',
|
136 |
),
|
140 |
'std' => '0',
|
141 |
'type' => 'slider',
|
142 |
'refresh_on_change' => false,
|
143 |
+
'affect_on_change_el' => 'ul.dslc-staff-social',
|
144 |
'affect_on_change_rule' => 'margin-bottom',
|
145 |
'section' => 'styling',
|
146 |
'ext' => 'px',
|
151 |
'std' => '0',
|
152 |
'type' => 'slider',
|
153 |
'refresh_on_change' => false,
|
154 |
+
'affect_on_change_el' => 'ul.dslc-staff-social',
|
155 |
'affect_on_change_rule' => 'min-height',
|
156 |
'section' => 'styling',
|
157 |
'ext' => 'px',
|
165 |
'std' => '30',
|
166 |
'type' => 'slider',
|
167 |
'refresh_on_change' => false,
|
168 |
+
'affect_on_change_el' => 'ul.dslc-staff-social a',
|
169 |
'affect_on_change_rule' => 'width,height',
|
170 |
'section' => 'styling',
|
171 |
'ext' => 'px'
|
176 |
'std' => '10',
|
177 |
'type' => 'slider',
|
178 |
'refresh_on_change' => false,
|
179 |
+
'affect_on_change_el' => 'ul.dslc-staff-social li',
|
180 |
'affect_on_change_rule' => 'margin-right',
|
181 |
'section' => 'styling',
|
182 |
'ext' => 'px'
|
190 |
'std' => '#ffffff',
|
191 |
'type' => 'color',
|
192 |
'refresh_on_change' => false,
|
193 |
+
'affect_on_change_el' => ' ul.dslc-staff-social .dslc-icon',
|
194 |
'affect_on_change_rule' => 'color',
|
195 |
'section' => 'styling',
|
196 |
'tab' => __( 'icon', 'live-composer-page-builder' ),
|
201 |
'std' => '#ffffff',
|
202 |
'type' => 'color',
|
203 |
'refresh_on_change' => false,
|
204 |
+
'affect_on_change_el' => ' ul.dslc-staff-social a:hover .dslc-icon',
|
205 |
'affect_on_change_rule' => 'color',
|
206 |
'section' => 'styling',
|
207 |
'tab' => __( 'icon', 'live-composer-page-builder' ),
|
212 |
'std' => '15',
|
213 |
'type' => 'slider',
|
214 |
'refresh_on_change' => false,
|
215 |
+
'affect_on_change_el' => 'ul.dslc-staff-social a',
|
216 |
'affect_on_change_rule' => 'font-size',
|
217 |
'section' => 'styling',
|
218 |
'tab' => __( 'icon', 'live-composer-page-builder' ),
|
247 |
'std' => '0',
|
248 |
'type' => 'slider',
|
249 |
'refresh_on_change' => false,
|
250 |
+
'affect_on_change_el' => 'ul.dslc-staff-social',
|
251 |
'affect_on_change_rule' => 'margin-bottom',
|
252 |
'section' => 'responsive',
|
253 |
'tab' => __( 'tablet', 'live-composer-page-builder' ),
|
259 |
'std' => '30',
|
260 |
'type' => 'slider',
|
261 |
'refresh_on_change' => false,
|
262 |
+
'affect_on_change_el' => 'ul.dslc-staff-social a',
|
263 |
'affect_on_change_rule' => 'width,height',
|
264 |
'section' => 'responsive',
|
265 |
'tab' => __( 'tablet', 'live-composer-page-builder' ),
|
271 |
'std' => '15',
|
272 |
'type' => 'slider',
|
273 |
'refresh_on_change' => false,
|
274 |
+
'affect_on_change_el' => 'ul.dslc-staff-social a',
|
275 |
'affect_on_change_rule' => 'font-size',
|
276 |
'section' => 'responsive',
|
277 |
'tab' => __( 'tablet', 'live-composer-page-builder' ),
|
283 |
'std' => '10',
|
284 |
'type' => 'slider',
|
285 |
'refresh_on_change' => false,
|
286 |
+
'affect_on_change_el' => 'ul.dslc-staff-social li',
|
287 |
'affect_on_change_rule' => 'margin-right',
|
288 |
'section' => 'responsive',
|
289 |
'tab' => __( 'tablet', 'live-composer-page-builder' ),
|
318 |
'std' => '0',
|
319 |
'type' => 'slider',
|
320 |
'refresh_on_change' => false,
|
321 |
+
'affect_on_change_el' => 'ul.dslc-staff-social',
|
322 |
'affect_on_change_rule' => 'margin-bottom',
|
323 |
'section' => 'responsive',
|
324 |
'tab' => __( 'phone', 'live-composer-page-builder' ),
|
330 |
'std' => '30',
|
331 |
'type' => 'slider',
|
332 |
'refresh_on_change' => false,
|
333 |
+
'affect_on_change_el' => 'ul.dslc-staff-social a',
|
334 |
'affect_on_change_rule' => 'width,height',
|
335 |
'section' => 'responsive',
|
336 |
'tab' => __( 'phone', 'live-composer-page-builder' ),
|
342 |
'std' => '15',
|
343 |
'type' => 'slider',
|
344 |
'refresh_on_change' => false,
|
345 |
+
'affect_on_change_el' => 'ul.dslc-staff-social a',
|
346 |
'affect_on_change_rule' => 'font-size',
|
347 |
'section' => 'responsive',
|
348 |
'tab' => __( 'phone', 'live-composer-page-builder' ),
|
354 |
'std' => '10',
|
355 |
'type' => 'slider',
|
356 |
'refresh_on_change' => false,
|
357 |
+
'affect_on_change_el' => 'ul.dslc-staff-social li',
|
358 |
'affect_on_change_rule' => 'margin-right',
|
359 |
'section' => 'responsive',
|
360 |
'tab' => __( 'phone', 'live-composer-page-builder' ),
|
393 |
?>
|
394 |
|
395 |
<div class="dslc-tp-staff-social">
|
396 |
+
<ul class="dslc-staff-social">
|
397 |
<?php if ( $show_fake ) : ?>
|
398 |
<li><a target="_blank" href="#"><span class="dslc-icon dslc-init-center dslc-icon-twitter"></span></a></li>
|
399 |
<li><a target="_blank" href="#"><span class="dslc-icon dslc-init-center dslc-icon-facebook"></span></a></li>
|
419 |
<li><a target="_blank" href="<?php echo $social_linkedin; ?>"><span class="dslc-icon dslc-init-center dslc-icon-linkedin"></span></a></li>
|
420 |
<?php endif; ?>
|
421 |
<?php endif; ?>
|
422 |
+
</ul><!-- .dslc-staff-social -->
|
423 |
</div><!-- .dslc-tp-staff-social -->
|
424 |
|
425 |
<?php
|
modules/tp-thumbnail/module.php
CHANGED
@@ -115,7 +115,7 @@ class DSLC_TP_Thumbnail extends DSLC_Module {
|
|
115 |
'std' => '0',
|
116 |
'type' => 'slider',
|
117 |
'refresh_on_change' => false,
|
118 |
-
'affect_on_change_el' => '.dslc-tp-thumbnail
|
119 |
'affect_on_change_rule' => 'border-top-left-radius,border-top-right-radius',
|
120 |
'section' => 'styling',
|
121 |
'ext' => 'px'
|
@@ -126,7 +126,7 @@ class DSLC_TP_Thumbnail extends DSLC_Module {
|
|
126 |
'std' => '0',
|
127 |
'type' => 'slider',
|
128 |
'refresh_on_change' => false,
|
129 |
-
'affect_on_change_el' => '.dslc-tp-thumbnail
|
130 |
'affect_on_change_rule' => 'border-bottom-left-radius,border-bottom-right-radius',
|
131 |
'section' => 'styling',
|
132 |
'ext' => 'px'
|
115 |
'std' => '0',
|
116 |
'type' => 'slider',
|
117 |
'refresh_on_change' => false,
|
118 |
+
'affect_on_change_el' => '.dslc-tp-thumbnail',
|
119 |
'affect_on_change_rule' => 'border-top-left-radius,border-top-right-radius',
|
120 |
'section' => 'styling',
|
121 |
'ext' => 'px'
|
126 |
'std' => '0',
|
127 |
'type' => 'slider',
|
128 |
'refresh_on_change' => false,
|
129 |
+
'affect_on_change_el' => '.dslc-tp-thumbnail',
|
130 |
'affect_on_change_rule' => 'border-bottom-left-radius,border-bottom-right-radius',
|
131 |
'section' => 'styling',
|
132 |
'ext' => 'px'
|
modules/widgets/module.php
CHANGED
@@ -169,6 +169,17 @@ class DSLC_Widgets extends DSLC_Module {
|
|
169 |
'section' => 'styling',
|
170 |
'ext' => 'px'
|
171 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
array(
|
173 |
'label' => __( 'Margin Bottom', 'live-composer-page-builder' ),
|
174 |
'id' => 'css_margin_bottom',
|
169 |
'section' => 'styling',
|
170 |
'ext' => 'px'
|
171 |
),
|
172 |
+
array(
|
173 |
+
'label' => __( 'Margin Left', 'live-composer-page-builder' ),
|
174 |
+
'id' => 'css_margin_left',
|
175 |
+
'std' => '0',
|
176 |
+
'type' => 'slider',
|
177 |
+
'refresh_on_change' => false,
|
178 |
+
'affect_on_change_el' => '.dslc-widgets-wrap',
|
179 |
+
'affect_on_change_rule' => 'margin-left',
|
180 |
+
'section' => 'styling',
|
181 |
+
'ext' => 'px',
|
182 |
+
),
|
183 |
array(
|
184 |
'label' => __( 'Margin Bottom', 'live-composer-page-builder' ),
|
185 |
'id' => 'css_margin_bottom',
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: LiveComposer
|
|
3 |
Tags: page builder, page, modules, front-end, builder, live, composer
|
4 |
Requires at least: 3.9
|
5 |
Tested up to: 4.3.1
|
6 |
-
Stable tag: 1.0.
|
7 |
License: GPLv3
|
8 |
|
9 |
Live Composer is a front-end WordPress page builder plugin. But with the free "blank" theme you can build a whole website.
|
@@ -45,6 +45,10 @@ In most of the cases this is because the homepage is not a real WordPress page,
|
|
45 |
|
46 |
== Changelog ==
|
47 |
|
|
|
|
|
|
|
|
|
48 |
= 1.0.5 - November 2nd 2015 =
|
49 |
|
50 |
[Check out the blog post about 1.0.5 release](http://livecomposerplugin.com/blog/version-1-0-5-released/)
|
3 |
Tags: page builder, page, modules, front-end, builder, live, composer
|
4 |
Requires at least: 3.9
|
5 |
Tested up to: 4.3.1
|
6 |
+
Stable tag: 1.0.6
|
7 |
License: GPLv3
|
8 |
|
9 |
Live Composer is a front-end WordPress page builder plugin. But with the free "blank" theme you can build a whole website.
|
45 |
|
46 |
== Changelog ==
|
47 |
|
48 |
+
= 1.0.6 - November 24th 2015 =
|
49 |
+
|
50 |
+
[Check out the blog post about 1.0.6 release](http://livecomposerplugin.com/blog/version-1-0-6-released/)
|
51 |
+
|
52 |
= 1.0.5 - November 2nd 2015 =
|
53 |
|
54 |
[Check out the blog post about 1.0.5 release](http://livecomposerplugin.com/blog/version-1-0-5-released/)
|