Version Description
- January 3, 2020 =
- NEW - Added new
vars
parameter that allows for passing data more easily into Filters and Repeater Templates. Variables can accessed in Repeater Templates by accessing the$args
array. This will pull in all query and variable parameters.[ajax_load_more vars="var1:The value of var1 value;var2:The value for #2"]
print_r($args);
- UPDATE - Various admin UI/UX updates and layout improvements.
- FIX - Fixed issue with Single Posts add-on custom query returning all posts if the query was empty.
- FIX - Fixed issue with height of Ajax Load More when filtering with Masonry and zero results are returned.
- FIX - Fixed issue in Shortcode builder caused by updated Select2 JS.
Download this release
Release Info
Developer | dcooney |
Plugin | WordPress Infinite Scroll – Ajax Load More |
Version | 5.4.2 |
Comparing to | |
See all releases |
Code changes from version 5.4.1 to 5.4.2
- .babelrc +0 -3
- .editorconfig +0 -11
- .eslintrc +0 -5
- .jshintrc +0 -3
- .prettierrc.js +0 -3
- LICENSE.txt +0 -339
- README.txt +10 -1
- admin/admin.php +45 -63
- admin/dist/css/admin.css +255 -350
- admin/dist/js/admin.js +456 -456
- admin/includes/components/custom-layouts.php +6 -6
- admin/includes/cta/extend-theme-repeaters.php +32 -0
- admin/includes/cta/extend.php +2 -2
- admin/includes/cta/pro-hero.php +24 -29
- admin/shortcode-builder/js/shortcode-builder.js +7 -7
- admin/shortcode-builder/shortcode-builder.php +11 -5
- admin/src/js/admin.js +0 -569
- admin/src/js/libs/jquery.drops.js +0 -52
- admin/src/js/libs/jquery.tooltipster.min.js +0 -1
- admin/src/js/libs/select2.min.js +0 -5
- admin/src/js/modules/sticky.js +0 -65
- admin/src/scss/_variables.scss +0 -16
- admin/src/scss/admin.scss +0 -4018
- admin/src/scss/libs/select2.scss +0 -349
- admin/src/scss/libs/tooltipster.scss +0 -276
- admin/src/scss/partials/_alm-block.scss +0 -49
- admin/src/scss/partials/_alm-settings-feedback.scss +0 -63
- admin/src/scss/partials/_builder-option-toggle.scss +0 -54
- admin/src/scss/partials/_codemirror.scss +0 -83
- admin/src/scss/partials/_header.scss +0 -42
- admin/src/scss/partials/_pro-listing.scss +0 -242
- admin/src/scss/partials/_select2.scss +0 -74
- admin/src/scss/partials/_shortcode-builder.scss +0 -200
- admin/src/scss/partials/_sidebar.scss +0 -23
- admin/src/scss/partials/_woocommerce.scss +0 -33
- admin/views/add-ons.php +18 -19
- admin/views/go-pro.php +27 -27
- admin/views/help.php +15 -15
- admin/views/licenses.php +10 -9
- admin/views/repeater-templates.php +160 -152
- admin/views/shortcode-builder.php +17 -14
- ajax-load-more.php +66 -107
- core/classes/{class.alm-enqueue.php → class-alm-enqueue.php} +20 -22
- core/classes/{class.alm-localize.php → class-alm-localize.php} +12 -14
- core/classes/{class.alm-noscript.php → class-alm-noscript.php} +92 -91
- core/classes/{class.alm-queryargs.php → class-alm-queryargs.php} +98 -52
- core/classes/{class.alm-shortcode.php → class-alm-shortcode.php} +30 -49
- core/classes/{class.alm-woocommerce.php → class-alm-woocommerce.php} +0 -0
- core/classes/includes/preloaded.php +72 -77
- core/dist/css/ajax-load-more.css +0 -0
- core/dist/css/ajax-load-more.min.css +0 -0
- core/dist/js/ajax-load-more.js +263 -261
- core/dist/js/ajax-load-more.min.js +3 -3
- core/functions.php +133 -469
- core/functions/addons.php +331 -0
- core/functions/masonry.php +29 -0
- core/src/js/addons/cache.js +0 -59
- core/src/js/addons/elementor.js +0 -340
- core/src/js/addons/filters.js +0 -161
- core/src/js/addons/seo.js +0 -149
- core/src/js/addons/singleposts.js +0 -29
- core/src/js/addons/woocommerce.js +0 -205
- core/src/js/ajax-load-more.js +0 -2574
- core/src/js/helpers/almAppendChild.js +0 -26
- core/src/js/helpers/almAppendChildren.js +0 -20
- core/src/js/helpers/almDomParser.js +0 -17
- core/src/js/helpers/commentReplyFix.js +0 -47
- core/src/js/helpers/getCacheUrl.js +0 -79
- core/src/js/helpers/getParameterByName.js +0 -10
- core/src/js/helpers/getQueryVariable.js +0 -19
- core/src/js/helpers/helpers.js +0 -138
- core/src/js/helpers/polyfills.js +0 -232
- core/src/js/helpers/queryParams.js +0 -225
- core/src/js/helpers/srcsetPolyfill.js +0 -31
- core/src/js/helpers/stripEmptyNodes.js +0 -24
- core/src/js/helpers/tableWrap.js +0 -17
- core/src/js/modules/almDebug.js +0 -19
- core/src/js/modules/fadeIn.js +0 -25
- core/src/js/modules/fadeOut.js +0 -17
- core/src/js/modules/filtering.js +0 -198
- core/src/js/modules/getButtonURL.js +0 -17
- core/src/js/modules/getScrollPercentage.js +0 -26
- core/src/js/modules/insertScript.js +0 -62
- core/src/js/modules/loadImage.js +0 -25
- core/src/js/modules/loadItems.js +0 -67
- core/src/js/modules/masonry.js +0 -176
- core/src/js/modules/noResults.js +0 -20
- core/src/js/modules/placeholder.js +0 -25
- core/src/js/modules/resultsText.js +0 -150
- core/src/js/modules/setFocus.js +0 -111
- core/src/js/modules/setLocalizedVars.js +0 -72
- core/src/js/modules/tableofcontents.js +0 -155
- core/src/js/vendor/imagesloaded/imagesloaded.pkgd.min.js +0 -6
- core/src/scss/_listing.scss +0 -162
- core/src/scss/_loaders.scss +0 -281
- core/src/scss/_tableofcontents.scss +0 -32
- core/src/scss/_variables.scss +0 -3
- core/src/scss/ajax-load-more.scss +0 -18
- gulpfile.js +0 -93
- lang/ajax-load-more.pot +50 -52
.babelrc
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"presets": ["env"]
|
3 |
-
}
|
|
|
|
|
|
.editorconfig
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
# EditorConfig
|
2 |
-
|
3 |
-
root = true
|
4 |
-
|
5 |
-
[*]
|
6 |
-
charset = utf-8
|
7 |
-
end_of_line = lf
|
8 |
-
insert_final_newline = true
|
9 |
-
trim_trailing_whitespace = true
|
10 |
-
indent_style = tab
|
11 |
-
indent_size = 3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.eslintrc
DELETED
@@ -1,5 +0,0 @@
|
|
1 |
-
{
|
2 |
-
parser: "babel-eslint",
|
3 |
-
"rules": {
|
4 |
-
}
|
5 |
-
}
|
|
|
|
|
|
|
|
|
|
.jshintrc
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"esversion": 6
|
3 |
-
}
|
|
|
|
|
|
.prettierrc.js
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
module.exports = {
|
2 |
-
singleQuote: true,
|
3 |
-
};
|
|
|
|
|
|
LICENSE.txt
DELETED
@@ -1,339 +0,0 @@
|
|
1 |
-
GNU GENERAL PUBLIC LICENSE
|
2 |
-
Version 2, June 1991
|
3 |
-
|
4 |
-
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
5 |
-
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
6 |
-
Everyone is permitted to copy and distribute verbatim copies
|
7 |
-
of this license document, but changing it is not allowed.
|
8 |
-
|
9 |
-
Preamble
|
10 |
-
|
11 |
-
The licenses for most software are designed to take away your
|
12 |
-
freedom to share and change it. By contrast, the GNU General Public
|
13 |
-
License is intended to guarantee your freedom to share and change free
|
14 |
-
software--to make sure the software is free for all its users. This
|
15 |
-
General Public License applies to most of the Free Software
|
16 |
-
Foundation's software and to any other program whose authors commit to
|
17 |
-
using it. (Some other Free Software Foundation software is covered by
|
18 |
-
the GNU Lesser General Public License instead.) You can apply it to
|
19 |
-
your programs, too.
|
20 |
-
|
21 |
-
When we speak of free software, we are referring to freedom, not
|
22 |
-
price. Our General Public Licenses are designed to make sure that you
|
23 |
-
have the freedom to distribute copies of free software (and charge for
|
24 |
-
this service if you wish), that you receive source code or can get it
|
25 |
-
if you want it, that you can change the software or use pieces of it
|
26 |
-
in new free programs; and that you know you can do these things.
|
27 |
-
|
28 |
-
To protect your rights, we need to make restrictions that forbid
|
29 |
-
anyone to deny you these rights or to ask you to surrender the rights.
|
30 |
-
These restrictions translate to certain responsibilities for you if you
|
31 |
-
distribute copies of the software, or if you modify it.
|
32 |
-
|
33 |
-
For example, if you distribute copies of such a program, whether
|
34 |
-
gratis or for a fee, you must give the recipients all the rights that
|
35 |
-
you have. You must make sure that they, too, receive or can get the
|
36 |
-
source code. And you must show them these terms so they know their
|
37 |
-
rights.
|
38 |
-
|
39 |
-
We protect your rights with two steps: (1) copyright the software, and
|
40 |
-
(2) offer you this license which gives you legal permission to copy,
|
41 |
-
distribute and/or modify the software.
|
42 |
-
|
43 |
-
Also, for each author's protection and ours, we want to make certain
|
44 |
-
that everyone understands that there is no warranty for this free
|
45 |
-
software. If the software is modified by someone else and passed on, we
|
46 |
-
want its recipients to know that what they have is not the original, so
|
47 |
-
that any problems introduced by others will not reflect on the original
|
48 |
-
authors' reputations.
|
49 |
-
|
50 |
-
Finally, any free program is threatened constantly by software
|
51 |
-
patents. We wish to avoid the danger that redistributors of a free
|
52 |
-
program will individually obtain patent licenses, in effect making the
|
53 |
-
program proprietary. To prevent this, we have made it clear that any
|
54 |
-
patent must be licensed for everyone's free use or not licensed at all.
|
55 |
-
|
56 |
-
The precise terms and conditions for copying, distribution and
|
57 |
-
modification follow.
|
58 |
-
|
59 |
-
GNU GENERAL PUBLIC LICENSE
|
60 |
-
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
61 |
-
|
62 |
-
0. This License applies to any program or other work which contains
|
63 |
-
a notice placed by the copyright holder saying it may be distributed
|
64 |
-
under the terms of this General Public License. The "Program", below,
|
65 |
-
refers to any such program or work, and a "work based on the Program"
|
66 |
-
means either the Program or any derivative work under copyright law:
|
67 |
-
that is to say, a work containing the Program or a portion of it,
|
68 |
-
either verbatim or with modifications and/or translated into another
|
69 |
-
language. (Hereinafter, translation is included without limitation in
|
70 |
-
the term "modification".) Each licensee is addressed as "you".
|
71 |
-
|
72 |
-
Activities other than copying, distribution and modification are not
|
73 |
-
covered by this License; they are outside its scope. The act of
|
74 |
-
running the Program is not restricted, and the output from the Program
|
75 |
-
is covered only if its contents constitute a work based on the
|
76 |
-
Program (independent of having been made by running the Program).
|
77 |
-
Whether that is true depends on what the Program does.
|
78 |
-
|
79 |
-
1. You may copy and distribute verbatim copies of the Program's
|
80 |
-
source code as you receive it, in any medium, provided that you
|
81 |
-
conspicuously and appropriately publish on each copy an appropriate
|
82 |
-
copyright notice and disclaimer of warranty; keep intact all the
|
83 |
-
notices that refer to this License and to the absence of any warranty;
|
84 |
-
and give any other recipients of the Program a copy of this License
|
85 |
-
along with the Program.
|
86 |
-
|
87 |
-
You may charge a fee for the physical act of transferring a copy, and
|
88 |
-
you may at your option offer warranty protection in exchange for a fee.
|
89 |
-
|
90 |
-
2. You may modify your copy or copies of the Program or any portion
|
91 |
-
of it, thus forming a work based on the Program, and copy and
|
92 |
-
distribute such modifications or work under the terms of Section 1
|
93 |
-
above, provided that you also meet all of these conditions:
|
94 |
-
|
95 |
-
a) You must cause the modified files to carry prominent notices
|
96 |
-
stating that you changed the files and the date of any change.
|
97 |
-
|
98 |
-
b) You must cause any work that you distribute or publish, that in
|
99 |
-
whole or in part contains or is derived from the Program or any
|
100 |
-
part thereof, to be licensed as a whole at no charge to all third
|
101 |
-
parties under the terms of this License.
|
102 |
-
|
103 |
-
c) If the modified program normally reads commands interactively
|
104 |
-
when run, you must cause it, when started running for such
|
105 |
-
interactive use in the most ordinary way, to print or display an
|
106 |
-
announcement including an appropriate copyright notice and a
|
107 |
-
notice that there is no warranty (or else, saying that you provide
|
108 |
-
a warranty) and that users may redistribute the program under
|
109 |
-
these conditions, and telling the user how to view a copy of this
|
110 |
-
License. (Exception: if the Program itself is interactive but
|
111 |
-
does not normally print such an announcement, your work based on
|
112 |
-
the Program is not required to print an announcement.)
|
113 |
-
|
114 |
-
These requirements apply to the modified work as a whole. If
|
115 |
-
identifiable sections of that work are not derived from the Program,
|
116 |
-
and can be reasonably considered independent and separate works in
|
117 |
-
themselves, then this License, and its terms, do not apply to those
|
118 |
-
sections when you distribute them as separate works. But when you
|
119 |
-
distribute the same sections as part of a whole which is a work based
|
120 |
-
on the Program, the distribution of the whole must be on the terms of
|
121 |
-
this License, whose permissions for other licensees extend to the
|
122 |
-
entire whole, and thus to each and every part regardless of who wrote it.
|
123 |
-
|
124 |
-
Thus, it is not the intent of this section to claim rights or contest
|
125 |
-
your rights to work written entirely by you; rather, the intent is to
|
126 |
-
exercise the right to control the distribution of derivative or
|
127 |
-
collective works based on the Program.
|
128 |
-
|
129 |
-
In addition, mere aggregation of another work not based on the Program
|
130 |
-
with the Program (or with a work based on the Program) on a volume of
|
131 |
-
a storage or distribution medium does not bring the other work under
|
132 |
-
the scope of this License.
|
133 |
-
|
134 |
-
3. You may copy and distribute the Program (or a work based on it,
|
135 |
-
under Section 2) in object code or executable form under the terms of
|
136 |
-
Sections 1 and 2 above provided that you also do one of the following:
|
137 |
-
|
138 |
-
a) Accompany it with the complete corresponding machine-readable
|
139 |
-
source code, which must be distributed under the terms of Sections
|
140 |
-
1 and 2 above on a medium customarily used for software interchange; or,
|
141 |
-
|
142 |
-
b) Accompany it with a written offer, valid for at least three
|
143 |
-
years, to give any third party, for a charge no more than your
|
144 |
-
cost of physically performing source distribution, a complete
|
145 |
-
machine-readable copy of the corresponding source code, to be
|
146 |
-
distributed under the terms of Sections 1 and 2 above on a medium
|
147 |
-
customarily used for software interchange; or,
|
148 |
-
|
149 |
-
c) Accompany it with the information you received as to the offer
|
150 |
-
to distribute corresponding source code. (This alternative is
|
151 |
-
allowed only for noncommercial distribution and only if you
|
152 |
-
received the program in object code or executable form with such
|
153 |
-
an offer, in accord with Subsection b above.)
|
154 |
-
|
155 |
-
The source code for a work means the preferred form of the work for
|
156 |
-
making modifications to it. For an executable work, complete source
|
157 |
-
code means all the source code for all modules it contains, plus any
|
158 |
-
associated interface definition files, plus the scripts used to
|
159 |
-
control compilation and installation of the executable. However, as a
|
160 |
-
special exception, the source code distributed need not include
|
161 |
-
anything that is normally distributed (in either source or binary
|
162 |
-
form) with the major components (compiler, kernel, and so on) of the
|
163 |
-
operating system on which the executable runs, unless that component
|
164 |
-
itself accompanies the executable.
|
165 |
-
|
166 |
-
If distribution of executable or object code is made by offering
|
167 |
-
access to copy from a designated place, then offering equivalent
|
168 |
-
access to copy the source code from the same place counts as
|
169 |
-
distribution of the source code, even though third parties are not
|
170 |
-
compelled to copy the source along with the object code.
|
171 |
-
|
172 |
-
4. You may not copy, modify, sublicense, or distribute the Program
|
173 |
-
except as expressly provided under this License. Any attempt
|
174 |
-
otherwise to copy, modify, sublicense or distribute the Program is
|
175 |
-
void, and will automatically terminate your rights under this License.
|
176 |
-
However, parties who have received copies, or rights, from you under
|
177 |
-
this License will not have their licenses terminated so long as such
|
178 |
-
parties remain in full compliance.
|
179 |
-
|
180 |
-
5. You are not required to accept this License, since you have not
|
181 |
-
signed it. However, nothing else grants you permission to modify or
|
182 |
-
distribute the Program or its derivative works. These actions are
|
183 |
-
prohibited by law if you do not accept this License. Therefore, by
|
184 |
-
modifying or distributing the Program (or any work based on the
|
185 |
-
Program), you indicate your acceptance of this License to do so, and
|
186 |
-
all its terms and conditions for copying, distributing or modifying
|
187 |
-
the Program or works based on it.
|
188 |
-
|
189 |
-
6. Each time you redistribute the Program (or any work based on the
|
190 |
-
Program), the recipient automatically receives a license from the
|
191 |
-
original licensor to copy, distribute or modify the Program subject to
|
192 |
-
these terms and conditions. You may not impose any further
|
193 |
-
restrictions on the recipients' exercise of the rights granted herein.
|
194 |
-
You are not responsible for enforcing compliance by third parties to
|
195 |
-
this License.
|
196 |
-
|
197 |
-
7. If, as a consequence of a court judgment or allegation of patent
|
198 |
-
infringement or for any other reason (not limited to patent issues),
|
199 |
-
conditions are imposed on you (whether by court order, agreement or
|
200 |
-
otherwise) that contradict the conditions of this License, they do not
|
201 |
-
excuse you from the conditions of this License. If you cannot
|
202 |
-
distribute so as to satisfy simultaneously your obligations under this
|
203 |
-
License and any other pertinent obligations, then as a consequence you
|
204 |
-
may not distribute the Program at all. For example, if a patent
|
205 |
-
license would not permit royalty-free redistribution of the Program by
|
206 |
-
all those who receive copies directly or indirectly through you, then
|
207 |
-
the only way you could satisfy both it and this License would be to
|
208 |
-
refrain entirely from distribution of the Program.
|
209 |
-
|
210 |
-
If any portion of this section is held invalid or unenforceable under
|
211 |
-
any particular circumstance, the balance of the section is intended to
|
212 |
-
apply and the section as a whole is intended to apply in other
|
213 |
-
circumstances.
|
214 |
-
|
215 |
-
It is not the purpose of this section to induce you to infringe any
|
216 |
-
patents or other property right claims or to contest validity of any
|
217 |
-
such claims; this section has the sole purpose of protecting the
|
218 |
-
integrity of the free software distribution system, which is
|
219 |
-
implemented by public license practices. Many people have made
|
220 |
-
generous contributions to the wide range of software distributed
|
221 |
-
through that system in reliance on consistent application of that
|
222 |
-
system; it is up to the author/donor to decide if he or she is willing
|
223 |
-
to distribute software through any other system and a licensee cannot
|
224 |
-
impose that choice.
|
225 |
-
|
226 |
-
This section is intended to make thoroughly clear what is believed to
|
227 |
-
be a consequence of the rest of this License.
|
228 |
-
|
229 |
-
8. If the distribution and/or use of the Program is restricted in
|
230 |
-
certain countries either by patents or by copyrighted interfaces, the
|
231 |
-
original copyright holder who places the Program under this License
|
232 |
-
may add an explicit geographical distribution limitation excluding
|
233 |
-
those countries, so that distribution is permitted only in or among
|
234 |
-
countries not thus excluded. In such case, this License incorporates
|
235 |
-
the limitation as if written in the body of this License.
|
236 |
-
|
237 |
-
9. The Free Software Foundation may publish revised and/or new versions
|
238 |
-
of the General Public License from time to time. Such new versions will
|
239 |
-
be similar in spirit to the present version, but may differ in detail to
|
240 |
-
address new problems or concerns.
|
241 |
-
|
242 |
-
Each version is given a distinguishing version number. If the Program
|
243 |
-
specifies a version number of this License which applies to it and "any
|
244 |
-
later version", you have the option of following the terms and conditions
|
245 |
-
either of that version or of any later version published by the Free
|
246 |
-
Software Foundation. If the Program does not specify a version number of
|
247 |
-
this License, you may choose any version ever published by the Free Software
|
248 |
-
Foundation.
|
249 |
-
|
250 |
-
10. If you wish to incorporate parts of the Program into other free
|
251 |
-
programs whose distribution conditions are different, write to the author
|
252 |
-
to ask for permission. For software which is copyrighted by the Free
|
253 |
-
Software Foundation, write to the Free Software Foundation; we sometimes
|
254 |
-
make exceptions for this. Our decision will be guided by the two goals
|
255 |
-
of preserving the free status of all derivatives of our free software and
|
256 |
-
of promoting the sharing and reuse of software generally.
|
257 |
-
|
258 |
-
NO WARRANTY
|
259 |
-
|
260 |
-
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
261 |
-
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
262 |
-
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
263 |
-
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
264 |
-
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
265 |
-
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
266 |
-
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
267 |
-
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
268 |
-
REPAIR OR CORRECTION.
|
269 |
-
|
270 |
-
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
271 |
-
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
272 |
-
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
273 |
-
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
274 |
-
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
275 |
-
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
276 |
-
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
277 |
-
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
278 |
-
POSSIBILITY OF SUCH DAMAGES.
|
279 |
-
|
280 |
-
END OF TERMS AND CONDITIONS
|
281 |
-
|
282 |
-
How to Apply These Terms to Your New Programs
|
283 |
-
|
284 |
-
If you develop a new program, and you want it to be of the greatest
|
285 |
-
possible use to the public, the best way to achieve this is to make it
|
286 |
-
free software which everyone can redistribute and change under these terms.
|
287 |
-
|
288 |
-
To do so, attach the following notices to the program. It is safest
|
289 |
-
to attach them to the start of each source file to most effectively
|
290 |
-
convey the exclusion of warranty; and each file should have at least
|
291 |
-
the "copyright" line and a pointer to where the full notice is found.
|
292 |
-
|
293 |
-
<one line to give the program's name and a brief idea of what it does.>
|
294 |
-
Copyright (C) <year> <name of author>
|
295 |
-
|
296 |
-
This program is free software; you can redistribute it and/or modify
|
297 |
-
it under the terms of the GNU General Public License as published by
|
298 |
-
the Free Software Foundation; either version 2 of the License, or
|
299 |
-
(at your option) any later version.
|
300 |
-
|
301 |
-
This program is distributed in the hope that it will be useful,
|
302 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
303 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
304 |
-
GNU General Public License for more details.
|
305 |
-
|
306 |
-
You should have received a copy of the GNU General Public License along
|
307 |
-
with this program; if not, write to the Free Software Foundation, Inc.,
|
308 |
-
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
309 |
-
|
310 |
-
Also add information on how to contact you by electronic and paper mail.
|
311 |
-
|
312 |
-
If the program is interactive, make it output a short notice like this
|
313 |
-
when it starts in an interactive mode:
|
314 |
-
|
315 |
-
Gnomovision version 69, Copyright (C) year name of author
|
316 |
-
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
317 |
-
This is free software, and you are welcome to redistribute it
|
318 |
-
under certain conditions; type `show c' for details.
|
319 |
-
|
320 |
-
The hypothetical commands `show w' and `show c' should show the appropriate
|
321 |
-
parts of the General Public License. Of course, the commands you use may
|
322 |
-
be called something other than `show w' and `show c'; they could even be
|
323 |
-
mouse-clicks or menu items--whatever suits your program.
|
324 |
-
|
325 |
-
You should also get your employer (if you work as a programmer) or your
|
326 |
-
school, if any, to sign a "copyright disclaimer" for the program, if
|
327 |
-
necessary. Here is a sample; alter the names:
|
328 |
-
|
329 |
-
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
330 |
-
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
331 |
-
|
332 |
-
<signature of Ty Coon>, 1 April 1989
|
333 |
-
Ty Coon, President of Vice
|
334 |
-
|
335 |
-
This General Public License does not permit incorporating your program into
|
336 |
-
proprietary programs. If your program is a subroutine library, you may
|
337 |
-
consider it more useful to permit linking proprietary applications with the
|
338 |
-
library. If this is what you want to do, use the GNU Lesser General
|
339 |
-
Public License instead of this License.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://connekthq.com/donate/
|
|
4 |
Tags: infinite scroll, load more, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, woocommerce, ajax load more, masonry
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.6
|
7 |
-
Stable tag: 5.4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -347,6 +347,15 @@ How to install Ajax Load More.
|
|
347 |
|
348 |
== Changelog ==
|
349 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
350 |
= 5.4.1 - November 25, 2020 =
|
351 |
|
352 |
** UPGRADE NOTICE for Elementor Add-on Users**
|
4 |
Tags: infinite scroll, load more, scroll, infinite, lazy load, lazy loading, endless scroll, pagination, ajax pagination, ajax, ajax posts, woocommerce, ajax load more, masonry
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.6
|
7 |
+
Stable tag: 5.4.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
347 |
|
348 |
== Changelog ==
|
349 |
|
350 |
+
= 5.4.2 - January 3, 2020 =
|
351 |
+
* NEW - Added new `vars` parameter that allows for passing data more easily into Filters and Repeater Templates. Variables can accessed in Repeater Templates by accessing the `$args` array. This will pull in all query and variable parameters.
|
352 |
+
`[ajax_load_more vars="var1:The value of var1 value;var2:The value for #2"]`
|
353 |
+
`print_r($args);`
|
354 |
+
* UPDATE - Various admin UI/UX updates and layout improvements.
|
355 |
+
* FIX - Fixed issue with Single Posts add-on custom query returning all posts if the query was empty.
|
356 |
+
* FIX - Fixed issue with height of Ajax Load More when filtering with Masonry and zero results are returned.
|
357 |
+
* FIX - Fixed issue in Shortcode builder caused by updated Select2 JS.
|
358 |
+
|
359 |
= 5.4.1 - November 25, 2020 =
|
360 |
|
361 |
** UPGRADE NOTICE for Elementor Add-on Users**
|
admin/admin.php
CHANGED
@@ -1,21 +1,19 @@
|
|
1 |
<?php
|
2 |
-
add_action( 'init', 'alm_core_update' ); // Core Update
|
3 |
add_action( 'admin_init', 'alm_admin_hooks' );
|
4 |
-
add_action( 'wp_ajax_alm_save_repeater', 'alm_save_repeater' ); // Ajax Save Repeater
|
5 |
-
add_action( 'wp_ajax_alm_update_repeater', 'alm_update_repeater' ); // Ajax Update Repeater
|
6 |
-
add_action( 'wp_ajax_alm_get_tax_terms', 'alm_get_tax_terms' ); // Ajax Get Taxonomy Terms
|
7 |
-
add_action( 'wp_ajax_alm_delete_cache', 'alm_delete_cache' ); // Delete Cache
|
8 |
-
add_action( 'wp_ajax_alm_layouts_dismiss', 'alm_layouts_dismiss' ); // Dismiss Layouts CTA
|
9 |
-
add_action( 'wp_ajax_alm_license_activation', 'alm_license_activation' ); // Activate Add-on
|
10 |
-
add_action( 'alm_get_layouts', 'alm_get_layouts' ); // Add layout selection
|
11 |
-
add_action( 'wp_ajax_alm_get_layout', 'alm_get_layout' ); // Get layout
|
12 |
-
add_action( 'wp_ajax_alm_dismiss_sharing', 'alm_dismiss_sharing' ); // Dismiss sharing
|
13 |
-
add_action( 'wp_ajax_alm_set_transient', 'alm_set_transient' ); // Set transient
|
14 |
-
add_filter( 'admin_footer_text', 'alm_filter_admin_footer_text'); // Admin menu text
|
15 |
add_action( 'after_plugin_row', 'alm_plugin_row' );
|
16 |
|
17 |
-
|
18 |
-
|
19 |
/**
|
20 |
* Setup the admin hooks
|
21 |
*
|
@@ -25,10 +23,8 @@ function alm_admin_hooks() {
|
|
25 |
require_once( plugin_dir_path( __FILE__ ) . '/classes/class-nag.php' );
|
26 |
}
|
27 |
|
28 |
-
|
29 |
/**
|
30 |
-
*
|
31 |
-
* Create custom update notifications
|
32 |
*
|
33 |
* @since 5.2
|
34 |
*/
|
@@ -131,30 +127,22 @@ function alm_plugin_row( $plugin_name ) {
|
|
131 |
}
|
132 |
}
|
133 |
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
*
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
$msg = '🔥 Introducing <strong><a href="https://connekthq.com/plugins/ajax-load-more/pro/" target="_blank">Ajax Load More Pro</a></strong> - get instant access to all 13 add-ons in a single installation! <strong><a href="https://connekthq.com/plugins/ajax-load-more/pro/" target="_blank" class="button button-primary">Upgrade Now</a></strong>';
|
146 |
-
|
147 |
-
alm_transient_notification($msg, 'alm_pro_upgrade', 'YEAR_IN_SECONDS', true);
|
148 |
-
}
|
149 |
}
|
150 |
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
*
|
155 |
-
* Display a notification on pages with transient
|
156 |
-
*
|
157 |
-
* @since 4.0
|
158 |
*/
|
159 |
function alm_transient_notification($message = '', $transient = '', $duration = 'YEAR_IN_SECONDS', $dismissible = true, $type = 'info'){
|
160 |
if(!empty($transient)){
|
@@ -169,16 +157,14 @@ function alm_transient_notification($message = '', $transient = '', $duration =
|
|
169 |
}
|
170 |
|
171 |
|
172 |
-
|
173 |
-
|
174 |
-
*
|
175 |
-
*
|
176 |
-
|
177 |
-
* @since 4.0
|
178 |
-
*/
|
179 |
function alm_set_transient(){
|
180 |
|
181 |
-
if (current_user_can( 'edit_theme_options' )){
|
182 |
|
183 |
$nonce = $_POST["nonce"];
|
184 |
$transient = $_POST["transient_name"];
|
@@ -1509,13 +1495,13 @@ function alm_admin_init(){
|
|
1509 |
'alm_admin_settings'
|
1510 |
);
|
1511 |
|
1512 |
-
add_settings_field( // Hide btn
|
1513 |
-
|
1514 |
-
|
1515 |
-
|
1516 |
-
|
1517 |
-
|
1518 |
-
);
|
1519 |
|
1520 |
add_settings_field( // Display error notices
|
1521 |
'_alm_error_notices',
|
@@ -1652,15 +1638,12 @@ function alm_disable_css_callback(){
|
|
1652 |
echo $html;
|
1653 |
}
|
1654 |
|
1655 |
-
|
1656 |
-
|
1657 |
/*
|
1658 |
-
*
|
1659 |
-
*
|
1660 |
-
*
|
1661 |
-
*
|
1662 |
-
*/
|
1663 |
-
|
1664 |
function alm_hide_btn_callback(){
|
1665 |
$options = get_option( 'alm_settings' );
|
1666 |
if(!isset($options['_alm_hide_btn']))
|
@@ -1673,7 +1656,6 @@ function alm_hide_btn_callback(){
|
|
1673 |
}
|
1674 |
|
1675 |
|
1676 |
-
|
1677 |
/*
|
1678 |
* _alm_error_notices_callback
|
1679 |
* Display admin error notices in browser console.
|
1 |
<?php
|
2 |
+
add_action( 'init', 'alm_core_update' ); // Core Update.
|
3 |
add_action( 'admin_init', 'alm_admin_hooks' );
|
4 |
+
add_action( 'wp_ajax_alm_save_repeater', 'alm_save_repeater' ); // Ajax Save Repeater.
|
5 |
+
add_action( 'wp_ajax_alm_update_repeater', 'alm_update_repeater' ); // Ajax Update Repeater.
|
6 |
+
add_action( 'wp_ajax_alm_get_tax_terms', 'alm_get_tax_terms' ); // Ajax Get Taxonomy Terms.
|
7 |
+
add_action( 'wp_ajax_alm_delete_cache', 'alm_delete_cache' ); // Delete Cache.
|
8 |
+
add_action( 'wp_ajax_alm_layouts_dismiss', 'alm_layouts_dismiss' ); // Dismiss Layouts CTA.
|
9 |
+
add_action( 'wp_ajax_alm_license_activation', 'alm_license_activation' ); // Activate Add-on.
|
10 |
+
add_action( 'alm_get_layouts', 'alm_get_layouts' ); // Add layout selection.
|
11 |
+
add_action( 'wp_ajax_alm_get_layout', 'alm_get_layout' ); // Get layout.
|
12 |
+
add_action( 'wp_ajax_alm_dismiss_sharing', 'alm_dismiss_sharing' ); // Dismiss sharing.
|
13 |
+
add_action( 'wp_ajax_alm_set_transient', 'alm_set_transient' ); // Set transient.
|
14 |
+
add_filter( 'admin_footer_text', 'alm_filter_admin_footer_text' ); // Admin menu text.
|
15 |
add_action( 'after_plugin_row', 'alm_plugin_row' );
|
16 |
|
|
|
|
|
17 |
/**
|
18 |
* Setup the admin hooks
|
19 |
*
|
23 |
require_once( plugin_dir_path( __FILE__ ) . '/classes/class-nag.php' );
|
24 |
}
|
25 |
|
|
|
26 |
/**
|
27 |
+
* Create custom update notifications.
|
|
|
28 |
*
|
29 |
* @since 5.2
|
30 |
*/
|
127 |
}
|
128 |
}
|
129 |
|
130 |
+
/**
|
131 |
+
* Render a notification in the dashboard.
|
132 |
+
*
|
133 |
+
* @since 4.0
|
134 |
+
*/
|
135 |
+
function alm_render_transient_notification() {
|
136 |
+
if ( ! has_action( 'alm_pro_installed' ) ) {
|
137 |
+
$msg = '🔥 Introducing <strong><a href="https://connekthq.com/plugins/ajax-load-more/pro/" target="_blank">Ajax Load More Pro</a></strong> - get instant access to all 13 add-ons in a single installation! <strong><a href="https://connekthq.com/plugins/ajax-load-more/pro/" target="_blank" class="button button-primary">Upgrade Now</a></strong>';
|
138 |
+
alm_transient_notification( $msg, 'alm_pro_upgrade', 'YEAR_IN_SECONDS', true );
|
139 |
+
}
|
|
|
|
|
|
|
|
|
|
|
140 |
}
|
141 |
|
142 |
+
/**
|
143 |
+
* Display a notification on pages with transient
|
144 |
+
*
|
145 |
+
* @since 4.0
|
|
|
|
|
|
|
146 |
*/
|
147 |
function alm_transient_notification($message = '', $transient = '', $duration = 'YEAR_IN_SECONDS', $dismissible = true, $type = 'info'){
|
148 |
if(!empty($transient)){
|
157 |
}
|
158 |
|
159 |
|
160 |
+
/**
|
161 |
+
* Set transient via Ajax.
|
162 |
+
*
|
163 |
+
* @since 4.0
|
164 |
+
*/
|
|
|
|
|
165 |
function alm_set_transient(){
|
166 |
|
167 |
+
if ( current_user_can( 'edit_theme_options' ) ) {
|
168 |
|
169 |
$nonce = $_POST["nonce"];
|
170 |
$transient = $_POST["transient_name"];
|
1495 |
'alm_admin_settings'
|
1496 |
);
|
1497 |
|
1498 |
+
// add_settings_field( // Hide btn
|
1499 |
+
// '_alm_hide_btn',
|
1500 |
+
// __('Editor Button', 'ajax-load-more' ),
|
1501 |
+
// 'alm_hide_btn_callback',
|
1502 |
+
// 'ajax-load-more',
|
1503 |
+
// 'alm_admin_settings'
|
1504 |
+
// );
|
1505 |
|
1506 |
add_settings_field( // Display error notices
|
1507 |
'_alm_error_notices',
|
1638 |
echo $html;
|
1639 |
}
|
1640 |
|
|
|
|
|
1641 |
/*
|
1642 |
+
* Disbale the ALM shortcode button in the WordPress content editor.
|
1643 |
+
*
|
1644 |
+
* @since 2.2.1
|
1645 |
+
* @deprecated 5.4.2
|
1646 |
+
*/
|
|
|
1647 |
function alm_hide_btn_callback(){
|
1648 |
$options = get_option( 'alm_settings' );
|
1649 |
if(!isset($options['_alm_hide_btn']))
|
1656 |
}
|
1657 |
|
1658 |
|
|
|
1659 |
/*
|
1660 |
* _alm_error_notices_callback
|
1661 |
* Display admin error notices in browser console.
|
admin/dist/css/admin.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
@import
|
2 |
/* This is the default Tooltipster theme (feel free to modify or duplicate and create multiple themes!): */
|
3 |
.tooltipster-default {
|
4 |
border-radius: 3px;
|
@@ -517,43 +517,54 @@ disabled look for disabled choices in the results dropdown
|
|
517 |
left: 0; }
|
518 |
|
519 |
.ajax-load-more .header-wrap {
|
520 |
-
overflow: hidden;
|
521 |
-
padding: 25px 25px 12.5px;
|
522 |
-
background: #f7f7f7;
|
523 |
-
border-bottom: 1px solid #e1e1e1;
|
524 |
position: relative;
|
525 |
-
z-index: 1;
|
526 |
-
-webkit-box-shadow: 0 1px 12px 2px rgba(0, 0, 0, 0.045);
|
527 |
-
box-shadow: 0 1px 12px 2px rgba(0, 0, 0, 0.045); }
|
528 |
.ajax-load-more .header-wrap h1 {
|
529 |
-
padding:
|
|
|
530 |
min-height: 48px;
|
531 |
-
|
532 |
-
background: url("../../img/alm-logo-48x48.
|
533 |
-
|
534 |
-
font-
|
|
|
|
|
|
|
|
|
535 |
.ajax-load-more .header-wrap h1 em {
|
536 |
display: block;
|
537 |
position: relative;
|
538 |
-
|
539 |
-
|
540 |
-
opacity: 0.7;
|
541 |
font-style: normal;
|
542 |
font-weight: 400;
|
543 |
-
line-height: 1.
|
544 |
-
padding: 1px 0
|
|
|
|
|
|
|
|
|
545 |
.ajax-load-more .header-wrap h1 strong {
|
546 |
-
font-weight:
|
547 |
.ajax-load-more .header-wrap h1 span {
|
548 |
color: #999;
|
549 |
font-weight: 300;
|
550 |
-
|
551 |
-
|
|
|
|
|
|
|
552 |
border-radius: 2px;
|
553 |
-
|
|
|
|
|
554 |
position: relative;
|
555 |
-
top:
|
556 |
-
|
|
|
|
|
|
|
|
|
557 |
|
558 |
/* Pro Add-on Listing */
|
559 |
.alm-pro-listing {
|
@@ -858,19 +869,25 @@ disabled look for disabled choices in the results dropdown
|
|
858 |
color: #009999 !important; }
|
859 |
|
860 |
.ajax-load-more .cnkt-sidebar {
|
861 |
-
width:
|
862 |
float: right;
|
863 |
-
|
864 |
-
padding: 25px;
|
865 |
position: absolute;
|
866 |
right: 0;
|
867 |
top: 0;
|
868 |
height: 100%; }
|
|
|
|
|
|
|
|
|
869 |
.ajax-load-more .cnkt-sidebar .major-publishing-actions {
|
870 |
padding: 15px;
|
871 |
clear: both;
|
872 |
border-top: 1px solid #e1e1e1;
|
873 |
-
|
|
|
|
|
|
|
874 |
.ajax-load-more .cnkt-sidebar .major-publishing-actions i {
|
875 |
opacity: 0.4;
|
876 |
margin: 0 2px 0 0; }
|
@@ -1257,122 +1274,75 @@ disabled look for disabled choices in the results dropdown
|
|
1257 |
color: #fff;
|
1258 |
cursor: default; }
|
1259 |
|
1260 |
-
body.toplevel_page_ajax-load-more,
|
1261 |
-
body.ajax-load-more_page_ajax-load-more-repeaters,
|
1262 |
-
body.ajax-load-more_page_ajax-load-more-shortcode-builder,
|
1263 |
-
body.ajax-load-more_page_ajax-load-more-add-ons,
|
1264 |
-
body.ajax-load-more_page_ajax-load-more-extensions,
|
1265 |
-
body.ajax-load-more_page_ajax-load-more-help,
|
1266 |
-
body.ajax-load-more_page_ajax-load-more-licenses,
|
1267 |
-
body.ajax-load-more_page_ajax-load-more-cache,
|
1268 |
-
body.ajax-load-more_page_ajax-load-more-filters,
|
1269 |
-
body.ajax-load-more_page_ajax-load-more-pro,
|
1270 |
-
body.ajax-load-more_page_ajax-load-more-go-pro,
|
1271 |
-
body.ajax-load-more_page_ajax-load-more-woocommerce {
|
1272 |
-
|
1273 |
-
|
1274 |
-
|
1275 |
-
|
1276 |
-
|
1277 |
-
|
1278 |
-
|
1279 |
-
|
1280 |
-
|
1281 |
-
|
1282 |
-
|
1283 |
-
|
1284 |
-
|
1285 |
-
|
1286 |
-
|
1287 |
-
|
1288 |
-
|
1289 |
-
|
1290 |
-
|
1291 |
-
|
1292 |
-
|
1293 |
-
|
1294 |
-
|
1295 |
-
|
1296 |
-
|
1297 |
-
|
1298 |
-
|
1299 |
-
|
1300 |
-
|
1301 |
-
|
1302 |
-
|
1303 |
-
|
1304 |
-
|
1305 |
-
|
1306 |
-
|
1307 |
-
|
1308 |
-
|
1309 |
-
body.
|
1310 |
-
body.ajax-load-more_page_ajax-load-more-
|
1311 |
-
body.ajax-load-more_page_ajax-load-more-
|
1312 |
-
body.ajax-load-more_page_ajax-load-more-
|
1313 |
-
body.ajax-load-more_page_ajax-load-more-
|
1314 |
-
|
1315 |
-
body.
|
1316 |
-
body.ajax-load-more_page_ajax-load-more-
|
1317 |
-
body.ajax-load-more_page_ajax-load-more-
|
1318 |
-
body.ajax-load-more_page_ajax-load-more-
|
1319 |
-
body.ajax-load-more_page_ajax-load-more-
|
1320 |
-
body.ajax-load-more_page_ajax-load-more-
|
1321 |
-
|
1322 |
-
body.ajax-load-more_page_ajax-load-more-cache #wpfooter,
|
1323 |
-
body.ajax-load-more_page_ajax-load-more-filters #wpfooter,
|
1324 |
-
body.ajax-load-more_page_ajax-load-more-pro #wpfooter,
|
1325 |
-
body.ajax-load-more_page_ajax-load-more-go-pro #wpfooter,
|
1326 |
-
body.ajax-load-more_page_ajax-load-more-woocommerce #wpfooter {
|
1327 |
-
padding-top: 0;
|
1328 |
-
padding-bottom: 0;
|
1329 |
-
line-height: 40px;
|
1330 |
-
background: #f7f7f7;
|
1331 |
-
border-top: 1px solid #efefef;
|
1332 |
-
position: fixed;
|
1333 |
-
bottom: 0;
|
1334 |
-
z-index: 1100; }
|
1335 |
-
body.toplevel_page_ajax-load-more #wpfooter p,
|
1336 |
-
body.ajax-load-more_page_ajax-load-more-repeaters #wpfooter p,
|
1337 |
-
body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpfooter p,
|
1338 |
-
body.ajax-load-more_page_ajax-load-more-add-ons #wpfooter p,
|
1339 |
-
body.ajax-load-more_page_ajax-load-more-extensions #wpfooter p,
|
1340 |
-
body.ajax-load-more_page_ajax-load-more-help #wpfooter p,
|
1341 |
-
body.ajax-load-more_page_ajax-load-more-licenses #wpfooter p,
|
1342 |
-
body.ajax-load-more_page_ajax-load-more-cache #wpfooter p,
|
1343 |
-
body.ajax-load-more_page_ajax-load-more-filters #wpfooter p,
|
1344 |
-
body.ajax-load-more_page_ajax-load-more-pro #wpfooter p,
|
1345 |
-
body.ajax-load-more_page_ajax-load-more-go-pro #wpfooter p,
|
1346 |
-
body.ajax-load-more_page_ajax-load-more-woocommerce #wpfooter p {
|
1347 |
-
line-height: 40px; }
|
1348 |
-
@media screen and (min-width: 901px) {
|
1349 |
-
body.toplevel_page_ajax-load-more .ajax-load-more .cnkt-main,
|
1350 |
-
body.ajax-load-more_page_ajax-load-more-repeaters .ajax-load-more .cnkt-main,
|
1351 |
-
body.ajax-load-more_page_ajax-load-more-shortcode-builder .ajax-load-more .cnkt-main,
|
1352 |
-
body.ajax-load-more_page_ajax-load-more-add-ons .ajax-load-more .cnkt-main,
|
1353 |
-
body.ajax-load-more_page_ajax-load-more-extensions .ajax-load-more .cnkt-main,
|
1354 |
-
body.ajax-load-more_page_ajax-load-more-help .ajax-load-more .cnkt-main,
|
1355 |
-
body.ajax-load-more_page_ajax-load-more-licenses .ajax-load-more .cnkt-main,
|
1356 |
-
body.ajax-load-more_page_ajax-load-more-cache .ajax-load-more .cnkt-main,
|
1357 |
-
body.ajax-load-more_page_ajax-load-more-filters .ajax-load-more .cnkt-main,
|
1358 |
-
body.ajax-load-more_page_ajax-load-more-pro .ajax-load-more .cnkt-main,
|
1359 |
-
body.ajax-load-more_page_ajax-load-more-go-pro .ajax-load-more .cnkt-main,
|
1360 |
-
body.ajax-load-more_page_ajax-load-more-woocommerce .ajax-load-more .cnkt-main {
|
1361 |
-
min-height: 100vh; } }
|
1362 |
-
|
1363 |
-
body.ajax-load-more_page_ajax-load-more-extensions,
|
1364 |
-
body.ajax-load-more_page_ajax-load-more-pro {
|
1365 |
-
background: #fff; }
|
1366 |
-
body.ajax-load-more_page_ajax-load-more-extensions #wpcontent,
|
1367 |
-
body.ajax-load-more_page_ajax-load-more-pro #wpcontent {
|
1368 |
-
background: #fff; }
|
1369 |
|
1370 |
.main-cnkt-wrap {
|
1371 |
padding: 0 !important;
|
1372 |
margin: 0 !important; }
|
1373 |
|
1374 |
.ajax-load-more-inner-wrapper {
|
1375 |
-
padding:
|
1376 |
display: block;
|
1377 |
clear: both;
|
1378 |
max-width: 1440px;
|
@@ -1436,13 +1406,6 @@ body.ajax-load-more_page_ajax-load-more-pro {
|
|
1436 |
#alm-help.ajax-load-more {
|
1437 |
max-width: 1600px; }
|
1438 |
|
1439 |
-
/*
|
1440 |
-
.ajax-load-more a:focus{
|
1441 |
-
-webkit-box-shadow: none;
|
1442 |
-
-moz-box-shadow: none;
|
1443 |
-
box-shadow: none;
|
1444 |
-
}
|
1445 |
-
*/
|
1446 |
.ajax-load-more img {
|
1447 |
max-width: 100%; }
|
1448 |
|
@@ -1476,7 +1439,7 @@ body.ajax-load-more_page_ajax-load-more-pro {
|
|
1476 |
color: #999;
|
1477 |
padding: 0 20px 15px 5px;
|
1478 |
margin: 0;
|
1479 |
-
font-size:
|
1480 |
|
1481 |
.ajax-load-more .file-location {
|
1482 |
border: 1px solid #e1e1e1;
|
@@ -1631,8 +1594,8 @@ a.layout-hover:hover img {
|
|
1631 |
outline: none; }
|
1632 |
|
1633 |
.ajax-load-more h3.heading:after {
|
1634 |
-
font-family:
|
1635 |
-
content:
|
1636 |
color: #e1e1e1;
|
1637 |
position: absolute;
|
1638 |
left: 13px;
|
@@ -1641,7 +1604,7 @@ a.layout-hover:hover img {
|
|
1641 |
width: 20px; }
|
1642 |
|
1643 |
.ajax-load-more h3.heading.open:after {
|
1644 |
-
content:
|
1645 |
|
1646 |
.ajax-load-more h3.heading.open {
|
1647 |
border-bottom-color: transparent; }
|
@@ -1649,7 +1612,7 @@ a.layout-hover:hover img {
|
|
1649 |
/* Expand/Collapse all rows */
|
1650 |
.ajax-load-more .toggle-all {
|
1651 |
position: static;
|
1652 |
-
top: -
|
1653 |
right: 20px;
|
1654 |
width: auto;
|
1655 |
display: inline-block;
|
@@ -1657,8 +1620,8 @@ a.layout-hover:hover img {
|
|
1657 |
text-transform: uppercase;
|
1658 |
border-radius: 3px;
|
1659 |
padding: 0 12px 0 10px;
|
1660 |
-
height:
|
1661 |
-
line-height:
|
1662 |
background: #fff;
|
1663 |
border: 1px solid #e1e1e1;
|
1664 |
color: #777;
|
@@ -1694,21 +1657,21 @@ a.layout-hover:hover img {
|
|
1694 |
display: none; }
|
1695 |
|
1696 |
.ajax-load-more .toggle-all .inner-wrap:before {
|
1697 |
-
font-family:
|
1698 |
-
content:
|
1699 |
font-size: 10px;
|
1700 |
position: absolute;
|
1701 |
left: 0;
|
1702 |
top: -5px; }
|
1703 |
|
1704 |
.ajax-load-more .toggle-all.closed .inner-wrap:before {
|
1705 |
-
content:
|
1706 |
|
1707 |
#alm-container.ajax-load-more .toggle-all {
|
1708 |
display: none; }
|
1709 |
|
1710 |
#alm-builder {
|
1711 |
-
font-family: -apple-system, BlinkMacSystemFont,
|
1712 |
|
1713 |
a.button-small {
|
1714 |
text-decoration: none;
|
@@ -1960,8 +1923,8 @@ a.button-small {
|
|
1960 |
-webkit-box-shadow: none;
|
1961 |
box-shadow: none; }
|
1962 |
|
1963 |
-
.ajax-load-more input[type=
|
1964 |
-
.ajax-load-more input[type=
|
1965 |
width: 1rem; }
|
1966 |
|
1967 |
.controls button.disabled {
|
@@ -1998,14 +1961,14 @@ a.button-small {
|
|
1998 |
margin-left: 3px; }
|
1999 |
|
2000 |
.ajax-load-more textarea,
|
2001 |
-
.ajax-load-more input[type=
|
2002 |
-
.ajax-load-more input[type=
|
2003 |
padding: 10px 12px;
|
2004 |
line-height: 1.3;
|
2005 |
border: 1px solid #e1e1e1;
|
2006 |
width: 60%; }
|
2007 |
|
2008 |
-
.ajax-load-more input[type=
|
2009 |
width: 100%; }
|
2010 |
|
2011 |
.ajax-load-more .wrap-30 {
|
@@ -2020,12 +1983,12 @@ a.button-small {
|
|
2020 |
.ajax-load-more .wrap-30.wrap-50.padding-top {
|
2021 |
padding-top: 15px; }
|
2022 |
|
2023 |
-
.ajax-load-more .wrap-30 input[type=
|
2024 |
.ajax-load-more .wrap-30 .select2-container {
|
2025 |
width: 100%;
|
2026 |
margin: 0; }
|
2027 |
|
2028 |
-
.ajax-load-more input[type=
|
2029 |
width: 100px; }
|
2030 |
|
2031 |
.ajax-load-more ::-webkit-input-placeholder {
|
@@ -2046,16 +2009,16 @@ a.button-small {
|
|
2046 |
color: #999;
|
2047 |
font-style: italic; }
|
2048 |
|
2049 |
-
.ajax-load-more input[type=
|
2050 |
-
.ajax-load-more input[type=
|
2051 |
-
.ajax-load-more input[type=
|
2052 |
.ajax-load-more textarea {
|
2053 |
background: #f7f7f7; }
|
2054 |
|
2055 |
-
.ajax-load-more .repeaters input[type=
|
2056 |
padding: 9px 10px; }
|
2057 |
|
2058 |
-
.ajax-load-more input[type=
|
2059 |
height: auto; }
|
2060 |
|
2061 |
.ajax-load-more input.disabled-input {
|
@@ -2067,9 +2030,9 @@ a.button-small {
|
|
2067 |
-webkit-box-shadow: none !important;
|
2068 |
box-shadow: none !important; }
|
2069 |
|
2070 |
-
.ajax-load-more input[type=
|
2071 |
-
.ajax-load-more input[type=
|
2072 |
-
.ajax-load-more input[type=
|
2073 |
.ajax-load-more textarea:focus {
|
2074 |
border-color: #bbbbbb;
|
2075 |
-webkit-box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
|
@@ -2092,7 +2055,7 @@ a.button-small {
|
|
2092 |
display: block;
|
2093 |
width: 100%; }
|
2094 |
.ajax-load-more .alm-row:after {
|
2095 |
-
content:
|
2096 |
clear: both;
|
2097 |
display: table; }
|
2098 |
.ajax-load-more .alm-row--margin-btm {
|
@@ -2330,28 +2293,25 @@ hr.indented {
|
|
2330 |
-- Shortcode Output
|
2331 |
**************************************/
|
2332 |
.ajax-load-more .output-wrap {
|
2333 |
-
|
2334 |
-
margin: 0;
|
2335 |
-
position: fixed;
|
2336 |
-
bottom: 0;
|
2337 |
-
left: 0;
|
2338 |
background: #ff5a58;
|
2339 |
-
border-top: 1px solid #ca5252;
|
2340 |
-
-webkit-box-shadow: 0 -5px 5px #efefef;
|
2341 |
-
box-shadow: 0 -5px 5px #efefef;
|
2342 |
width: 100%;
|
2343 |
display: block;
|
2344 |
-
|
2345 |
-
|
2346 |
-
|
2347 |
-
|
2348 |
-
|
2349 |
-
|
2350 |
-
|
2351 |
-
|
2352 |
-
|
2353 |
-
|
2354 |
-
|
|
|
|
|
|
|
|
|
2355 |
|
2356 |
.ajax-load-more .row .wrap.output {
|
2357 |
display: block !important; }
|
@@ -2364,69 +2324,6 @@ hr.indented {
|
|
2364 |
width: 49.333%;
|
2365 |
display: inline-block; }
|
2366 |
|
2367 |
-
.output-wrap .copy {
|
2368 |
-
background: #fff;
|
2369 |
-
color: #ff5a58;
|
2370 |
-
margin: 0;
|
2371 |
-
display: inline-block;
|
2372 |
-
z-index: 9;
|
2373 |
-
padding: 3px 8px;
|
2374 |
-
cursor: pointer;
|
2375 |
-
border-radius: 2px;
|
2376 |
-
position: fixed;
|
2377 |
-
right: 10px;
|
2378 |
-
bottom: 10px;
|
2379 |
-
font-size: 11px;
|
2380 |
-
font-weight: 600;
|
2381 |
-
text-transform: uppercase;
|
2382 |
-
opacity: 0.6;
|
2383 |
-
filter: alpha(opacity=60); }
|
2384 |
-
|
2385 |
-
.admin.ajax-load-more .output-wrap .copy {
|
2386 |
-
float: right;
|
2387 |
-
position: relative;
|
2388 |
-
top: -10px; }
|
2389 |
-
|
2390 |
-
.output-wrap .copy:hover,
|
2391 |
-
.output-wrap .copy:active {
|
2392 |
-
opacity: 1;
|
2393 |
-
filter: alpha(opacity=100); }
|
2394 |
-
|
2395 |
-
.output-wrap .copy:active {
|
2396 |
-
-webkit-box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.1);
|
2397 |
-
box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.1); }
|
2398 |
-
|
2399 |
-
.shortcode-display {
|
2400 |
-
float: right;
|
2401 |
-
width: 75%; }
|
2402 |
-
|
2403 |
-
.admin.ajax-load-more .shortcode-display {
|
2404 |
-
float: none;
|
2405 |
-
width: 100%; }
|
2406 |
-
|
2407 |
-
#shortcode_output {
|
2408 |
-
border-left: 1px solid #ca5252;
|
2409 |
-
padding: 26px 10px 26px 30px;
|
2410 |
-
font-family: monospace;
|
2411 |
-
font-size: 13px;
|
2412 |
-
color: #fff;
|
2413 |
-
cursor: pointer;
|
2414 |
-
word-wrap: break-word; }
|
2415 |
-
|
2416 |
-
.admin.ajax-load-more #shortcode_output {
|
2417 |
-
border: none;
|
2418 |
-
padding: 12px 12px 24px; }
|
2419 |
-
|
2420 |
-
#shortcode_output::-moz-selection {
|
2421 |
-
background: #fff;
|
2422 |
-
color: #ca5252;
|
2423 |
-
text-shadow: none; }
|
2424 |
-
|
2425 |
-
#shortcode_output::selection {
|
2426 |
-
background: #fff;
|
2427 |
-
color: #ca5252;
|
2428 |
-
text-shadow: none; }
|
2429 |
-
|
2430 |
/*
|
2431 |
* Insert Shortcode Button
|
2432 |
*
|
@@ -2481,14 +2378,13 @@ hr.indented {
|
|
2481 |
display: block;
|
2482 |
clear: both;
|
2483 |
float: none;
|
2484 |
-
vertical-align: top;
|
2485 |
padding: 0 0 8px;
|
2486 |
max-width: 90%;
|
2487 |
cursor: pointer !important;
|
2488 |
line-height: 1.5; }
|
2489 |
|
2490 |
-
.form-table input[type=
|
2491 |
-
.form-table input[type=
|
2492 |
vertical-align: top;
|
2493 |
margin-top: 0 !important;
|
2494 |
max-width: 8%; }
|
@@ -2552,13 +2448,13 @@ hr.indented {
|
|
2552 |
text-shadow: 1px 1px 0 #fff;
|
2553 |
resize: none; }
|
2554 |
|
2555 |
-
.admin.ajax-load-more .form-table input[type=
|
2556 |
-
.admin.ajax-load-more .form-table input[type=
|
2557 |
margin-right: 10px;
|
2558 |
margin-top: 0 !important; }
|
2559 |
|
2560 |
-
.admin.ajax-load-more.settings input[type=
|
2561 |
-
.admin.ajax-load-more.settings input[type=
|
2562 |
.admin.ajax-load-more.settings .select2-container {
|
2563 |
margin-top: 10px; }
|
2564 |
|
@@ -2641,7 +2537,7 @@ hr.indented {
|
|
2641 |
.ajax-load-more .cnkt-sidebar h3 {
|
2642 |
padding: 0 0 10px;
|
2643 |
margin: 0 0 20px;
|
2644 |
-
border-bottom: 1px solid #
|
2645 |
|
2646 |
.ajax-load-more p.desc,
|
2647 |
.ajax-load-more p.writeable-title {
|
@@ -2721,13 +2617,16 @@ table.highlight {
|
|
2721 |
|
2722 |
/* Columns */
|
2723 |
.ajax-load-more .cnkt-main {
|
2724 |
-
width:
|
2725 |
float: left;
|
2726 |
-
background: #fff
|
2727 |
padding: 25px;
|
2728 |
-
border
|
2729 |
-
|
2730 |
-
|
|
|
|
|
|
|
2731 |
|
2732 |
.ajax-load-more .cnkt-main .group {
|
2733 |
background: #fff;
|
@@ -2741,7 +2640,6 @@ table.highlight {
|
|
2741 |
.ajax-load-more .cnkt-sidebar .cta,
|
2742 |
.call-out.light {
|
2743 |
border: 1px solid #e1e1e1;
|
2744 |
-
border-radius: 3px;
|
2745 |
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
|
2746 |
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); }
|
2747 |
.ajax-load-more .cnkt-main .group.no-shadow,
|
@@ -2751,12 +2649,16 @@ table.highlight {
|
|
2751 |
box-shadow: none; }
|
2752 |
|
2753 |
.ajax-load-more .cnkt-main .repeater-listing {
|
2754 |
-
border
|
2755 |
-
|
|
|
|
|
2756 |
position: relative; }
|
2757 |
.ajax-load-more .cnkt-main .repeater-listing .toggle-all {
|
2758 |
-
right:
|
2759 |
top: -45px; }
|
|
|
|
|
2760 |
|
2761 |
.ajax-load-more .cnkt-main.full {
|
2762 |
width: 100%;
|
@@ -2779,7 +2681,7 @@ table.highlight {
|
|
2779 |
overflow: hidden;
|
2780 |
line-height: 1px;
|
2781 |
margin: 0;
|
2782 |
-
content:
|
2783 |
|
2784 |
#alm_OptionsForm .form-table:last-of-type {
|
2785 |
margin-bottom: 0; }
|
@@ -2804,7 +2706,7 @@ table.highlight {
|
|
2804 |
max-width: 25%; }
|
2805 |
|
2806 |
.repeaters .repeater-wrap textarea,
|
2807 |
-
.repeaters .repeater-wrap input[type=
|
2808 |
width: 100%; }
|
2809 |
|
2810 |
.repeaters input.save-repeater.saving {
|
@@ -2862,9 +2764,15 @@ table.highlight {
|
|
2862 |
margin-bottom: 20px;
|
2863 |
border-top: 1px solid #e1e1e1;
|
2864 |
border-left: 1px solid #e1e1e1;
|
2865 |
-
background-color: #
|
2866 |
-webkit-box-shadow: inset 0 0 0 1px #e1e1e1;
|
2867 |
box-shadow: inset 0 0 0 1px #e1e1e1; }
|
|
|
|
|
|
|
|
|
|
|
|
|
2868 |
|
2869 |
#alm-add-ons .group {
|
2870 |
overflow: hidden;
|
@@ -2879,17 +2787,17 @@ table.highlight {
|
|
2879 |
border-radius: 0;
|
2880 |
border-top: none;
|
2881 |
border-left: none; }
|
2882 |
-
#alm-add-ons .group.highlighted {
|
2883 |
width: 100%; }
|
2884 |
-
#alm-add-ons .group.highlighted a {
|
2885 |
background: #f7f7f7;
|
2886 |
border: 10px solid rgba(0, 0, 0, 0.025); }
|
2887 |
-
#alm-add-ons .group.highlighted img {
|
2888 |
padding: 10px; }
|
2889 |
@media screen and (min-width: 768px) {
|
2890 |
-
#alm-add-ons .group.highlighted {
|
2891 |
text-align: left; }
|
2892 |
-
#alm-add-ons .group.highlighted a {
|
2893 |
padding: 25px;
|
2894 |
overflow: hidden;
|
2895 |
display: -webkit-box;
|
@@ -2901,17 +2809,18 @@ table.highlight {
|
|
2901 |
-ms-flex-align: center;
|
2902 |
align-items: center; }
|
2903 |
#alm-add-ons .group.highlighted .pro-img,
|
2904 |
-
#alm-add-ons .group.highlighted .pro-details
|
|
|
2905 |
-webkit-box-flex: 1;
|
2906 |
-ms-flex: 1;
|
2907 |
flex: 1; }
|
2908 |
-
#alm-add-ons .group.highlighted .pro-img {
|
2909 |
max-width: 355px; }
|
2910 |
-
#alm-add-ons .group.highlighted .pro-details {
|
2911 |
padding: 0 15px 0 35px; }
|
2912 |
-
#alm-add-ons .group.highlighted img {
|
2913 |
position: static; }
|
2914 |
-
#alm-add-ons .group.highlighted span.cnkt-button {
|
2915 |
position: static;
|
2916 |
width: auto;
|
2917 |
display: inline-block;
|
@@ -2920,8 +2829,10 @@ table.highlight {
|
|
2920 |
margin-top: 15px;
|
2921 |
font-size: 14px; } }
|
2922 |
@media screen and (min-width: 769px) and (max-width: 1270px) {
|
2923 |
-
#alm-add-ons .group.highlighted .pro-desc {
|
2924 |
display: none; } }
|
|
|
|
|
2925 |
#alm-add-ons .group.installed {
|
2926 |
opacity: 0.85;
|
2927 |
-webkit-filter: grayscale(1);
|
@@ -2975,19 +2886,18 @@ table.highlight {
|
|
2975 |
/* Add-on Callout! */
|
2976 |
.call-out {
|
2977 |
background: #75d0b4;
|
2978 |
-
|
|
|
|
|
|
|
2979 |
border-radius: 3px;
|
2980 |
margin: 0;
|
2981 |
width: 100%;
|
2982 |
display: block;
|
2983 |
-
color: #fff;
|
2984 |
-
font-size: 13px;
|
2985 |
-
font-weight: 400;
|
2986 |
position: relative; }
|
2987 |
|
2988 |
.call-out.light {
|
2989 |
-
background: #fdfdec;
|
2990 |
-
width: 97.666%; }
|
2991 |
|
2992 |
.call-out.light p {
|
2993 |
margin: 0;
|
@@ -3009,18 +2919,18 @@ table.highlight {
|
|
3009 |
margin: 10px; }
|
3010 |
|
3011 |
.call-out .cnkt-button {
|
|
|
3012 |
padding: 6px 10px;
|
3013 |
display: inline-block;
|
3014 |
background: #fff;
|
3015 |
border: none;
|
3016 |
border-radius: 3px;
|
3017 |
position: absolute;
|
3018 |
-
right:
|
3019 |
-
top:
|
3020 |
color: #387061 !important;
|
3021 |
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
|
3022 |
-
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
|
3023 |
-
font-size: 13px; }
|
3024 |
|
3025 |
.call-out a {
|
3026 |
color: #42524e !important;
|
@@ -3208,7 +3118,7 @@ span.cnkt-button.installed i,
|
|
3208 |
font-weight: 600;
|
3209 |
top: -3px; }
|
3210 |
|
3211 |
-
.license-wrap input[type=
|
3212 |
margin: 0;
|
3213 |
width: 100% !important;
|
3214 |
padding: 14px; }
|
@@ -3272,7 +3182,8 @@ span.cnkt-button.installed i,
|
|
3272 |
overflow: visible;
|
3273 |
position: relative;
|
3274 |
-webkit-box-shadow: 0 4px 10px 1px rgba(0, 0, 0, 0.065);
|
3275 |
-
box-shadow: 0 4px 10px 1px rgba(0, 0, 0, 0.065);
|
|
|
3276 |
.ajax-load-more .cnkt-sidebar .cta .alm-file-location {
|
3277 |
padding-top: 15px;
|
3278 |
margin-top: 15px;
|
@@ -3301,9 +3212,6 @@ span.cnkt-button.installed i,
|
|
3301 |
.ajax-load-more .cnkt-sidebar .cta-inner.padding-bottom {
|
3302 |
padding-bottom: 80px; }
|
3303 |
|
3304 |
-
.ajax-load-more .cnkt-sidebar .cta.mailing-list {
|
3305 |
-
padding: 0; }
|
3306 |
-
|
3307 |
.ajax-load-more .cnkt-sidebar .cta.mailing-list .head-wrap {
|
3308 |
display: block;
|
3309 |
padding: 20px; }
|
@@ -3316,14 +3224,12 @@ span.cnkt-button.installed i,
|
|
3316 |
margin-top: 0; }
|
3317 |
|
3318 |
.ajax-load-more .cnkt-sidebar h3 {
|
3319 |
-
padding:
|
3320 |
-
background: #fff;
|
3321 |
margin: 0;
|
3322 |
display: block;
|
3323 |
font-size: 14px;
|
3324 |
font-weight: 700;
|
3325 |
-
text-transform: none;
|
3326 |
-
border-radius: 2px 2px 0 0; }
|
3327 |
|
3328 |
.ajax-load-more .cnkt-sidebar .item {
|
3329 |
overflow: hidden; }
|
@@ -3564,7 +3470,7 @@ span.cnkt-button.installed i,
|
|
3564 |
opacity: 0;
|
3565 |
cursor: default; }
|
3566 |
|
3567 |
-
.ajax-load-more .row.unlimited input[type=
|
3568 |
width: 100%; }
|
3569 |
|
3570 |
.alm-add-template {
|
@@ -3723,9 +3629,9 @@ span.cnkt-button.installed i,
|
|
3723 |
.alm-cache .alm-dir-listing h3.heading {
|
3724 |
padding-left: 40px !important; }
|
3725 |
.alm-cache .alm-dir-listing h3.heading:after {
|
3726 |
-
content:
|
3727 |
.alm-cache .alm-dir-listing h3.heading.open:after {
|
3728 |
-
content:
|
3729 |
.alm-cache .alm-dir-listing .dir-title .delete {
|
3730 |
position: absolute;
|
3731 |
right: 10px;
|
@@ -3931,19 +3837,19 @@ p.theme-title {
|
|
3931 |
margin: 0;
|
3932 |
width: 100%; }
|
3933 |
|
3934 |
-
.shortcode-builder input[type=
|
3935 |
-
.shortcode-builder input[type=
|
3936 |
-
.ajax-load-more .form-table input[type=
|
3937 |
-
.ajax-load-more .form-table input[type=
|
3938 |
width: 0;
|
3939 |
height: 0;
|
3940 |
opacity: 0;
|
3941 |
position: absolute; }
|
3942 |
|
3943 |
-
.shortcode-builder input[type=
|
3944 |
-
.ajax-load-more .form-table input[type=
|
3945 |
-
.shortcode-builder input[type=
|
3946 |
-
.ajax-load-more .form-table input[type=
|
3947 |
background: transparent url("../../img/bkg-chkbox_off.png") no-repeat left 1px;
|
3948 |
height: auto;
|
3949 |
min-height: 23px;
|
@@ -3954,49 +3860,49 @@ p.theme-title {
|
|
3954 |
font-size: 14px;
|
3955 |
line-height: 1.5;
|
3956 |
cursor: pointer !important; }
|
3957 |
-
.shortcode-builder input[type=
|
3958 |
-
.ajax-load-more .form-table input[type=
|
3959 |
-
.shortcode-builder input[type=
|
3960 |
-
.ajax-load-more .form-table input[type=
|
3961 |
display: inline-block;
|
3962 |
padding-left: 1px;
|
3963 |
font-size: 12px;
|
3964 |
color: #999; }
|
3965 |
|
3966 |
-
.shortcode-builder input[type=
|
3967 |
-
.ajax-load-more .form-table input[type=
|
3968 |
background: transparent url("../../img/bkg-radio_off.png") no-repeat left 2px; }
|
3969 |
|
3970 |
-
.shortcode-builder input[type=
|
3971 |
-
.ajax-load-more .form-table input[type=
|
3972 |
-
.shortcode-builder input[type=
|
3973 |
-
.ajax-load-more .form-table input[type=
|
3974 |
/* hover/focus */
|
3975 |
background-image: url("../../img/bkg-chkbox_on.png"); }
|
3976 |
|
3977 |
-
.shortcode-builder input[type=
|
3978 |
-
.ajax-load-more .form-table input[type=
|
3979 |
-
.shortcode-builder input[type=
|
3980 |
-
.ajax-load-more .form-table input[type=
|
3981 |
/* hover/focus */
|
3982 |
background-image: url("../../img/bkg-radio_on.png"); }
|
3983 |
|
3984 |
-
.shortcode-builder input[type=
|
3985 |
-
.ajax-load-more .form-table input[type=
|
3986 |
/* selected */
|
3987 |
background-image: url("../../img/bkg-chkbox_selected.png");
|
3988 |
color: #000; }
|
3989 |
|
3990 |
-
.shortcode-builder input[type=
|
3991 |
-
.ajax-load-more .form-table input[type=
|
3992 |
/* selected */
|
3993 |
background-image: url("../../img/bkg-radio_selected.png");
|
3994 |
color: #000; }
|
3995 |
|
3996 |
-
.shortcode-builder input[type=
|
3997 |
-
.ajax-load-more .form-table input[type=
|
3998 |
-
.shortcode-builder input[type=
|
3999 |
-
.ajax-load-more .form-table input[type=
|
4000 |
color: #000; }
|
4001 |
|
4002 |
/*
|
@@ -4036,8 +3942,8 @@ p.theme-title {
|
|
4036 |
#alm-shortcode-builder-form .shortcode-parameter-wrap h2:hover:after, #alm-shortcode-builder-form .shortcode-parameter-wrap h2:focus:after {
|
4037 |
color: #ccc; }
|
4038 |
#alm-shortcode-builder-form .shortcode-parameter-wrap h2:after {
|
4039 |
-
font-family:
|
4040 |
-
content:
|
4041 |
color: #e1e1e1;
|
4042 |
position: absolute;
|
4043 |
left: 15px;
|
@@ -4045,7 +3951,7 @@ p.theme-title {
|
|
4045 |
height: 20px;
|
4046 |
width: 20px; }
|
4047 |
#alm-shortcode-builder-form .shortcode-parameter-wrap h2.open:after {
|
4048 |
-
content:
|
4049 |
#alm-shortcode-builder-form .shortcode-parameter-wrap h2 i {
|
4050 |
position: absolute;
|
4051 |
right: 15px;
|
@@ -4364,7 +4270,7 @@ span.dismiss a {
|
|
4364 |
bottom: 100%;
|
4365 |
right: 26px;
|
4366 |
border: solid transparent;
|
4367 |
-
content:
|
4368 |
height: 0;
|
4369 |
width: 0;
|
4370 |
position: absolute;
|
@@ -4796,7 +4702,7 @@ span.dismiss a {
|
|
4796 |
display: block;
|
4797 |
clear: both;
|
4798 |
margin: 0;
|
4799 |
-
padding: 0
|
4800 |
overflow: hidden;
|
4801 |
position: relative;
|
4802 |
top: 1px;
|
@@ -4809,7 +4715,7 @@ span.dismiss a {
|
|
4809 |
list-style: none; }
|
4810 |
.ajax-load-more .alm-toggle-switch li a {
|
4811 |
display: block;
|
4812 |
-
padding:
|
4813 |
line-height: 1;
|
4814 |
text-decoration: none;
|
4815 |
border: 1px solid #e1e1e1;
|
@@ -4821,7 +4727,7 @@ span.dismiss a {
|
|
4821 |
background-color: #fff; }
|
4822 |
.ajax-load-more .alm-toggle-switch li a.active {
|
4823 |
background: #fff;
|
4824 |
-
font-weight:
|
4825 |
border-bottom-color: #fff;
|
4826 |
color: #111; }
|
4827 |
|
@@ -4831,8 +4737,8 @@ span.dismiss a {
|
|
4831 |
* @since 1.0
|
4832 |
*/
|
4833 |
@media screen and (max-width: 1200px) {
|
4834 |
-
.ajax-load-more input[type=
|
4835 |
-
.ajax-load-more input[type=
|
4836 |
.select2-container,
|
4837 |
#alm-builder .select2-container-multi,
|
4838 |
.ajax-load-more textarea {
|
@@ -4851,8 +4757,7 @@ span.dismiss a {
|
|
4851 |
clear: both;
|
4852 |
margin: 0;
|
4853 |
width: 100%;
|
4854 |
-
position: static !important;
|
4855 |
-
border: none; }
|
4856 |
.admin.ajax-load-more.settings .form-table td {
|
4857 |
padding: 24px 20px 20px; }
|
4858 |
.call-out.light {
|
@@ -4889,8 +4794,8 @@ span.dismiss a {
|
|
4889 |
.ajax-load-more .row .wrap {
|
4890 |
padding: 10px 20px; }
|
4891 |
.ajax-load-more textarea,
|
4892 |
-
.ajax-load-more input[type=
|
4893 |
-
.ajax-load-more input[type=
|
4894 |
.select2-container,
|
4895 |
#alm-builder .select2-container-multi {
|
4896 |
width: 100% !important; }
|
1 |
+
@import '//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css';
|
2 |
/* This is the default Tooltipster theme (feel free to modify or duplicate and create multiple themes!): */
|
3 |
.tooltipster-default {
|
4 |
border-radius: 3px;
|
517 |
left: 0; }
|
518 |
|
519 |
.ajax-load-more .header-wrap {
|
|
|
|
|
|
|
|
|
520 |
position: relative;
|
521 |
+
z-index: 1; }
|
|
|
|
|
522 |
.ajax-load-more .header-wrap h1 {
|
523 |
+
padding: 15px 15px 15px 80px;
|
524 |
+
margin: 0;
|
525 |
min-height: 48px;
|
526 |
+
background: #fff url("../../img/alm-logo-48x48.png") no-repeat 15px 15px;
|
527 |
+
background: #fff url("../../img/alm-logo-48x48.svg") no-repeat 15px 15px;
|
528 |
+
font-size: 18px;
|
529 |
+
font-weight: 800;
|
530 |
+
border-bottom: 1px solid #e1e1e1; }
|
531 |
+
@media screen and (min-width: 768px) {
|
532 |
+
.ajax-load-more .header-wrap h1 {
|
533 |
+
font-size: 21px; } }
|
534 |
.ajax-load-more .header-wrap h1 em {
|
535 |
display: block;
|
536 |
position: relative;
|
537 |
+
font-size: 12px;
|
538 |
+
color: #999;
|
|
|
539 |
font-style: normal;
|
540 |
font-weight: 400;
|
541 |
+
line-height: 1.3;
|
542 |
+
padding: 1px 0 0;
|
543 |
+
margin: 0; }
|
544 |
+
@media screen and (min-width: 768px) {
|
545 |
+
.ajax-load-more .header-wrap h1 em {
|
546 |
+
font-size: 14px; } }
|
547 |
.ajax-load-more .header-wrap h1 strong {
|
548 |
+
font-weight: 600; }
|
549 |
.ajax-load-more .header-wrap h1 span {
|
550 |
color: #999;
|
551 |
font-weight: 300;
|
552 |
+
font-style: italic;
|
553 |
+
margin: 0 0 0 5px;
|
554 |
+
vertical-align: top;
|
555 |
+
font-size: 12px;
|
556 |
+
background-color: #f7f7f7;
|
557 |
border-radius: 2px;
|
558 |
+
padding: 2px 4px;
|
559 |
+
display: inline-block;
|
560 |
+
line-height: 1.45;
|
561 |
position: relative;
|
562 |
+
top: 3px; }
|
563 |
+
@media screen and (min-width: 768px) {
|
564 |
+
.ajax-load-more .header-wrap h1 span {
|
565 |
+
font-size: 13px; } }
|
566 |
+
.ajax-load-more .header-wrap .notice {
|
567 |
+
margin: 15px; }
|
568 |
|
569 |
/* Pro Add-on Listing */
|
570 |
.alm-pro-listing {
|
869 |
color: #009999 !important; }
|
870 |
|
871 |
.ajax-load-more .cnkt-sidebar {
|
872 |
+
width: 30%;
|
873 |
float: right;
|
874 |
+
padding: 15px;
|
|
|
875 |
position: absolute;
|
876 |
right: 0;
|
877 |
top: 0;
|
878 |
height: 100%; }
|
879 |
+
@media screen and (max-width: 900px) {
|
880 |
+
.ajax-load-more .cnkt-sidebar {
|
881 |
+
padding-left: 0;
|
882 |
+
padding-right: 0; } }
|
883 |
.ajax-load-more .cnkt-sidebar .major-publishing-actions {
|
884 |
padding: 15px;
|
885 |
clear: both;
|
886 |
border-top: 1px solid #e1e1e1;
|
887 |
+
-webkit-box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.025);
|
888 |
+
box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.025);
|
889 |
+
background: #f7f7f7;
|
890 |
+
border-radius: 0 0 2px 2px; }
|
891 |
.ajax-load-more .cnkt-sidebar .major-publishing-actions i {
|
892 |
opacity: 0.4;
|
893 |
margin: 0 2px 0 0; }
|
1274 |
color: #fff;
|
1275 |
cursor: default; }
|
1276 |
|
1277 |
+
body.toplevel_page_ajax-load-more #wpcontent,
|
1278 |
+
body.ajax-load-more_page_ajax-load-more-repeaters #wpcontent,
|
1279 |
+
body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpcontent,
|
1280 |
+
body.ajax-load-more_page_ajax-load-more-add-ons #wpcontent,
|
1281 |
+
body.ajax-load-more_page_ajax-load-more-extensions #wpcontent,
|
1282 |
+
body.ajax-load-more_page_ajax-load-more-help #wpcontent,
|
1283 |
+
body.ajax-load-more_page_ajax-load-more-licenses #wpcontent,
|
1284 |
+
body.ajax-load-more_page_ajax-load-more-cache #wpcontent,
|
1285 |
+
body.ajax-load-more_page_ajax-load-more-filters #wpcontent,
|
1286 |
+
body.ajax-load-more_page_ajax-load-more-pro #wpcontent,
|
1287 |
+
body.ajax-load-more_page_ajax-load-more-go-pro #wpcontent,
|
1288 |
+
body.ajax-load-more_page_ajax-load-more-woocommerce #wpcontent {
|
1289 |
+
padding-left: 0;
|
1290 |
+
padding-bottom: 20px; }
|
1291 |
+
|
1292 |
+
body.toplevel_page_ajax-load-more #wpbody-content,
|
1293 |
+
body.ajax-load-more_page_ajax-load-more-repeaters #wpbody-content,
|
1294 |
+
body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpbody-content,
|
1295 |
+
body.ajax-load-more_page_ajax-load-more-add-ons #wpbody-content,
|
1296 |
+
body.ajax-load-more_page_ajax-load-more-extensions #wpbody-content,
|
1297 |
+
body.ajax-load-more_page_ajax-load-more-help #wpbody-content,
|
1298 |
+
body.ajax-load-more_page_ajax-load-more-licenses #wpbody-content,
|
1299 |
+
body.ajax-load-more_page_ajax-load-more-cache #wpbody-content,
|
1300 |
+
body.ajax-load-more_page_ajax-load-more-filters #wpbody-content,
|
1301 |
+
body.ajax-load-more_page_ajax-load-more-pro #wpbody-content,
|
1302 |
+
body.ajax-load-more_page_ajax-load-more-go-pro #wpbody-content,
|
1303 |
+
body.ajax-load-more_page_ajax-load-more-woocommerce #wpbody-content {
|
1304 |
+
padding-bottom: 0; }
|
1305 |
+
|
1306 |
+
body.toplevel_page_ajax-load-more #wpfooter,
|
1307 |
+
body.ajax-load-more_page_ajax-load-more-repeaters #wpfooter,
|
1308 |
+
body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpfooter,
|
1309 |
+
body.ajax-load-more_page_ajax-load-more-add-ons #wpfooter,
|
1310 |
+
body.ajax-load-more_page_ajax-load-more-extensions #wpfooter,
|
1311 |
+
body.ajax-load-more_page_ajax-load-more-help #wpfooter,
|
1312 |
+
body.ajax-load-more_page_ajax-load-more-licenses #wpfooter,
|
1313 |
+
body.ajax-load-more_page_ajax-load-more-cache #wpfooter,
|
1314 |
+
body.ajax-load-more_page_ajax-load-more-filters #wpfooter,
|
1315 |
+
body.ajax-load-more_page_ajax-load-more-pro #wpfooter,
|
1316 |
+
body.ajax-load-more_page_ajax-load-more-go-pro #wpfooter,
|
1317 |
+
body.ajax-load-more_page_ajax-load-more-woocommerce #wpfooter {
|
1318 |
+
padding-top: 0;
|
1319 |
+
padding-bottom: 0;
|
1320 |
+
line-height: 42px;
|
1321 |
+
background: #f8f9fb;
|
1322 |
+
border-top: 1px solid #e1e1e1;
|
1323 |
+
position: fixed;
|
1324 |
+
bottom: 0;
|
1325 |
+
z-index: 1100; }
|
1326 |
+
body.toplevel_page_ajax-load-more #wpfooter p,
|
1327 |
+
body.ajax-load-more_page_ajax-load-more-repeaters #wpfooter p,
|
1328 |
+
body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpfooter p,
|
1329 |
+
body.ajax-load-more_page_ajax-load-more-add-ons #wpfooter p,
|
1330 |
+
body.ajax-load-more_page_ajax-load-more-extensions #wpfooter p,
|
1331 |
+
body.ajax-load-more_page_ajax-load-more-help #wpfooter p,
|
1332 |
+
body.ajax-load-more_page_ajax-load-more-licenses #wpfooter p,
|
1333 |
+
body.ajax-load-more_page_ajax-load-more-cache #wpfooter p,
|
1334 |
+
body.ajax-load-more_page_ajax-load-more-filters #wpfooter p,
|
1335 |
+
body.ajax-load-more_page_ajax-load-more-pro #wpfooter p,
|
1336 |
+
body.ajax-load-more_page_ajax-load-more-go-pro #wpfooter p,
|
1337 |
+
body.ajax-load-more_page_ajax-load-more-woocommerce #wpfooter p {
|
1338 |
+
line-height: 42px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1339 |
|
1340 |
.main-cnkt-wrap {
|
1341 |
padding: 0 !important;
|
1342 |
margin: 0 !important; }
|
1343 |
|
1344 |
.ajax-load-more-inner-wrapper {
|
1345 |
+
padding: 15px 15px 45px;
|
1346 |
display: block;
|
1347 |
clear: both;
|
1348 |
max-width: 1440px;
|
1406 |
#alm-help.ajax-load-more {
|
1407 |
max-width: 1600px; }
|
1408 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1409 |
.ajax-load-more img {
|
1410 |
max-width: 100%; }
|
1411 |
|
1439 |
color: #999;
|
1440 |
padding: 0 20px 15px 5px;
|
1441 |
margin: 0;
|
1442 |
+
font-size: 14px; }
|
1443 |
|
1444 |
.ajax-load-more .file-location {
|
1445 |
border: 1px solid #e1e1e1;
|
1594 |
outline: none; }
|
1595 |
|
1596 |
.ajax-load-more h3.heading:after {
|
1597 |
+
font-family: 'FontAwesome';
|
1598 |
+
content: '\f056';
|
1599 |
color: #e1e1e1;
|
1600 |
position: absolute;
|
1601 |
left: 13px;
|
1604 |
width: 20px; }
|
1605 |
|
1606 |
.ajax-load-more h3.heading.open:after {
|
1607 |
+
content: '\f055'; }
|
1608 |
|
1609 |
.ajax-load-more h3.heading.open {
|
1610 |
border-bottom-color: transparent; }
|
1612 |
/* Expand/Collapse all rows */
|
1613 |
.ajax-load-more .toggle-all {
|
1614 |
position: static;
|
1615 |
+
top: -21px;
|
1616 |
right: 20px;
|
1617 |
width: auto;
|
1618 |
display: inline-block;
|
1620 |
text-transform: uppercase;
|
1621 |
border-radius: 3px;
|
1622 |
padding: 0 12px 0 10px;
|
1623 |
+
height: 38px;
|
1624 |
+
line-height: 37px;
|
1625 |
background: #fff;
|
1626 |
border: 1px solid #e1e1e1;
|
1627 |
color: #777;
|
1657 |
display: none; }
|
1658 |
|
1659 |
.ajax-load-more .toggle-all .inner-wrap:before {
|
1660 |
+
font-family: 'FontAwesome';
|
1661 |
+
content: '\f068';
|
1662 |
font-size: 10px;
|
1663 |
position: absolute;
|
1664 |
left: 0;
|
1665 |
top: -5px; }
|
1666 |
|
1667 |
.ajax-load-more .toggle-all.closed .inner-wrap:before {
|
1668 |
+
content: '\f067'; }
|
1669 |
|
1670 |
#alm-container.ajax-load-more .toggle-all {
|
1671 |
display: none; }
|
1672 |
|
1673 |
#alm-builder {
|
1674 |
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif; }
|
1675 |
|
1676 |
a.button-small {
|
1677 |
text-decoration: none;
|
1923 |
-webkit-box-shadow: none;
|
1924 |
box-shadow: none; }
|
1925 |
|
1926 |
+
.ajax-load-more input[type='checkbox'],
|
1927 |
+
.ajax-load-more input[type='radio'] {
|
1928 |
width: 1rem; }
|
1929 |
|
1930 |
.controls button.disabled {
|
1961 |
margin-left: 3px; }
|
1962 |
|
1963 |
.ajax-load-more textarea,
|
1964 |
+
.ajax-load-more input[type='text'],
|
1965 |
+
.ajax-load-more input[type='number'] {
|
1966 |
padding: 10px 12px;
|
1967 |
line-height: 1.3;
|
1968 |
border: 1px solid #e1e1e1;
|
1969 |
width: 60%; }
|
1970 |
|
1971 |
+
.ajax-load-more input[type='text'].full {
|
1972 |
width: 100%; }
|
1973 |
|
1974 |
.ajax-load-more .wrap-30 {
|
1983 |
.ajax-load-more .wrap-30.wrap-50.padding-top {
|
1984 |
padding-top: 15px; }
|
1985 |
|
1986 |
+
.ajax-load-more .wrap-30 input[type='text'].sm,
|
1987 |
.ajax-load-more .wrap-30 .select2-container {
|
1988 |
width: 100%;
|
1989 |
margin: 0; }
|
1990 |
|
1991 |
+
.ajax-load-more input[type='number'].sm {
|
1992 |
width: 100px; }
|
1993 |
|
1994 |
.ajax-load-more ::-webkit-input-placeholder {
|
2009 |
color: #999;
|
2010 |
font-style: italic; }
|
2011 |
|
2012 |
+
.ajax-load-more input[type='text'],
|
2013 |
+
.ajax-load-more input[type='number'],
|
2014 |
+
.ajax-load-more input[type='email'],
|
2015 |
.ajax-load-more textarea {
|
2016 |
background: #f7f7f7; }
|
2017 |
|
2018 |
+
.ajax-load-more .repeaters input[type='text'] {
|
2019 |
padding: 9px 10px; }
|
2020 |
|
2021 |
+
.ajax-load-more input[type='number'] {
|
2022 |
height: auto; }
|
2023 |
|
2024 |
.ajax-load-more input.disabled-input {
|
2030 |
-webkit-box-shadow: none !important;
|
2031 |
box-shadow: none !important; }
|
2032 |
|
2033 |
+
.ajax-load-more input[type='text']:focus,
|
2034 |
+
.ajax-load-more input[type='number']:focus,
|
2035 |
+
.ajax-load-more input[type='email']:focus,
|
2036 |
.ajax-load-more textarea:focus {
|
2037 |
border-color: #bbbbbb;
|
2038 |
-webkit-box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
|
2055 |
display: block;
|
2056 |
width: 100%; }
|
2057 |
.ajax-load-more .alm-row:after {
|
2058 |
+
content: '';
|
2059 |
clear: both;
|
2060 |
display: table; }
|
2061 |
.ajax-load-more .alm-row--margin-btm {
|
2293 |
-- Shortcode Output
|
2294 |
**************************************/
|
2295 |
.ajax-load-more .output-wrap {
|
2296 |
+
margin: 20px 0 0;
|
|
|
|
|
|
|
|
|
2297 |
background: #ff5a58;
|
|
|
|
|
|
|
2298 |
width: 100%;
|
2299 |
display: block;
|
2300 |
+
border-radius: 3px; }
|
2301 |
+
.ajax-load-more .output-wrap textarea {
|
2302 |
+
background-color: transparent !important;
|
2303 |
+
resize: none !important;
|
2304 |
+
height: auto !important;
|
2305 |
+
min-height: 100px;
|
2306 |
+
border: none !important;
|
2307 |
+
width: 100% !important;
|
2308 |
+
display: block;
|
2309 |
+
border-radius: 3px;
|
2310 |
+
font-family: monospace;
|
2311 |
+
font-size: 12px;
|
2312 |
+
line-height: 18px;
|
2313 |
+
color: #fff;
|
2314 |
+
cursor: pointer; }
|
2315 |
|
2316 |
.ajax-load-more .row .wrap.output {
|
2317 |
display: block !important; }
|
2324 |
width: 49.333%;
|
2325 |
display: inline-block; }
|
2326 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2327 |
/*
|
2328 |
* Insert Shortcode Button
|
2329 |
*
|
2378 |
display: block;
|
2379 |
clear: both;
|
2380 |
float: none;
|
|
|
2381 |
padding: 0 0 8px;
|
2382 |
max-width: 90%;
|
2383 |
cursor: pointer !important;
|
2384 |
line-height: 1.5; }
|
2385 |
|
2386 |
+
.form-table input[type='radio'],
|
2387 |
+
.form-table input[type='checkbox'] {
|
2388 |
vertical-align: top;
|
2389 |
margin-top: 0 !important;
|
2390 |
max-width: 8%; }
|
2448 |
text-shadow: 1px 1px 0 #fff;
|
2449 |
resize: none; }
|
2450 |
|
2451 |
+
.admin.ajax-load-more .form-table input[type='radio'],
|
2452 |
+
.admin.ajax-load-more .form-table input[type='checkbox'] {
|
2453 |
margin-right: 10px;
|
2454 |
margin-top: 0 !important; }
|
2455 |
|
2456 |
+
.admin.ajax-load-more.settings input[type='text'],
|
2457 |
+
.admin.ajax-load-more.settings input[type='number'],
|
2458 |
.admin.ajax-load-more.settings .select2-container {
|
2459 |
margin-top: 10px; }
|
2460 |
|
2537 |
.ajax-load-more .cnkt-sidebar h3 {
|
2538 |
padding: 0 0 10px;
|
2539 |
margin: 0 0 20px;
|
2540 |
+
border-bottom: 1px solid #e1e1e1; }
|
2541 |
|
2542 |
.ajax-load-more p.desc,
|
2543 |
.ajax-load-more p.writeable-title {
|
2617 |
|
2618 |
/* Columns */
|
2619 |
.ajax-load-more .cnkt-main {
|
2620 |
+
width: 70%;
|
2621 |
float: left;
|
2622 |
+
background: #fff;
|
2623 |
padding: 25px;
|
2624 |
+
border: 1px solid #e1e1e1;
|
2625 |
+
border-radius: 3px; }
|
2626 |
+
.ajax-load-more .cnkt-main.stylefree {
|
2627 |
+
padding: 0;
|
2628 |
+
background-color: transparent;
|
2629 |
+
border: none; }
|
2630 |
|
2631 |
.ajax-load-more .cnkt-main .group {
|
2632 |
background: #fff;
|
2640 |
.ajax-load-more .cnkt-sidebar .cta,
|
2641 |
.call-out.light {
|
2642 |
border: 1px solid #e1e1e1;
|
|
|
2643 |
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
|
2644 |
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); }
|
2645 |
.ajax-load-more .cnkt-main .group.no-shadow,
|
2649 |
box-shadow: none; }
|
2650 |
|
2651 |
.ajax-load-more .cnkt-main .repeater-listing {
|
2652 |
+
border: 1px solid #e1e1e1;
|
2653 |
+
background-color: #fff;
|
2654 |
+
border-radius: 3px;
|
2655 |
+
padding: 25px;
|
2656 |
position: relative; }
|
2657 |
.ajax-load-more .cnkt-main .repeater-listing .toggle-all {
|
2658 |
+
right: -1px;
|
2659 |
top: -45px; }
|
2660 |
+
.ajax-load-more .cnkt-main .repeater-listing .flexbox-wrap {
|
2661 |
+
margin: 0; }
|
2662 |
|
2663 |
.ajax-load-more .cnkt-main.full {
|
2664 |
width: 100%;
|
2681 |
overflow: hidden;
|
2682 |
line-height: 1px;
|
2683 |
margin: 0;
|
2684 |
+
content: ''; }
|
2685 |
|
2686 |
#alm_OptionsForm .form-table:last-of-type {
|
2687 |
margin-bottom: 0; }
|
2706 |
max-width: 25%; }
|
2707 |
|
2708 |
.repeaters .repeater-wrap textarea,
|
2709 |
+
.repeaters .repeater-wrap input[type='text'] {
|
2710 |
width: 100%; }
|
2711 |
|
2712 |
.repeaters input.save-repeater.saving {
|
2764 |
margin-bottom: 20px;
|
2765 |
border-top: 1px solid #e1e1e1;
|
2766 |
border-left: 1px solid #e1e1e1;
|
2767 |
+
background-color: #fff;
|
2768 |
-webkit-box-shadow: inset 0 0 0 1px #e1e1e1;
|
2769 |
box-shadow: inset 0 0 0 1px #e1e1e1; }
|
2770 |
+
.flexbox-wrap p.intro {
|
2771 |
+
border-bottom: 1px solid #e1e1e1;
|
2772 |
+
width: 100%;
|
2773 |
+
padding: 15px;
|
2774 |
+
margin: 0;
|
2775 |
+
font-style: italic; }
|
2776 |
|
2777 |
#alm-add-ons .group {
|
2778 |
overflow: hidden;
|
2787 |
border-radius: 0;
|
2788 |
border-top: none;
|
2789 |
border-left: none; }
|
2790 |
+
#alm-add-ons .group.highlighted, #alm-add-ons .group.extend {
|
2791 |
width: 100%; }
|
2792 |
+
#alm-add-ons .group.highlighted a, #alm-add-ons .group.extend a {
|
2793 |
background: #f7f7f7;
|
2794 |
border: 10px solid rgba(0, 0, 0, 0.025); }
|
2795 |
+
#alm-add-ons .group.highlighted img, #alm-add-ons .group.extend img {
|
2796 |
padding: 10px; }
|
2797 |
@media screen and (min-width: 768px) {
|
2798 |
+
#alm-add-ons .group.highlighted, #alm-add-ons .group.extend {
|
2799 |
text-align: left; }
|
2800 |
+
#alm-add-ons .group.highlighted a, #alm-add-ons .group.extend a {
|
2801 |
padding: 25px;
|
2802 |
overflow: hidden;
|
2803 |
display: -webkit-box;
|
2809 |
-ms-flex-align: center;
|
2810 |
align-items: center; }
|
2811 |
#alm-add-ons .group.highlighted .pro-img,
|
2812 |
+
#alm-add-ons .group.highlighted .pro-details, #alm-add-ons .group.extend .pro-img,
|
2813 |
+
#alm-add-ons .group.extend .pro-details {
|
2814 |
-webkit-box-flex: 1;
|
2815 |
-ms-flex: 1;
|
2816 |
flex: 1; }
|
2817 |
+
#alm-add-ons .group.highlighted .pro-img, #alm-add-ons .group.extend .pro-img {
|
2818 |
max-width: 355px; }
|
2819 |
+
#alm-add-ons .group.highlighted .pro-details, #alm-add-ons .group.extend .pro-details {
|
2820 |
padding: 0 15px 0 35px; }
|
2821 |
+
#alm-add-ons .group.highlighted img, #alm-add-ons .group.extend img {
|
2822 |
position: static; }
|
2823 |
+
#alm-add-ons .group.highlighted span.cnkt-button, #alm-add-ons .group.extend span.cnkt-button {
|
2824 |
position: static;
|
2825 |
width: auto;
|
2826 |
display: inline-block;
|
2829 |
margin-top: 15px;
|
2830 |
font-size: 14px; } }
|
2831 |
@media screen and (min-width: 769px) and (max-width: 1270px) {
|
2832 |
+
#alm-add-ons .group.highlighted .pro-desc, #alm-add-ons .group.extend .pro-desc {
|
2833 |
display: none; } }
|
2834 |
+
#alm-add-ons .group.extend a {
|
2835 |
+
background-color: #fff; }
|
2836 |
#alm-add-ons .group.installed {
|
2837 |
opacity: 0.85;
|
2838 |
-webkit-filter: grayscale(1);
|
2886 |
/* Add-on Callout! */
|
2887 |
.call-out {
|
2888 |
background: #75d0b4;
|
2889 |
+
font-size: 14px;
|
2890 |
+
color: #fff;
|
2891 |
+
font-weight: 400;
|
2892 |
+
padding: 20px 100px 20px 20px;
|
2893 |
border-radius: 3px;
|
2894 |
margin: 0;
|
2895 |
width: 100%;
|
2896 |
display: block;
|
|
|
|
|
|
|
2897 |
position: relative; }
|
2898 |
|
2899 |
.call-out.light {
|
2900 |
+
background: #fdfdec; }
|
|
|
2901 |
|
2902 |
.call-out.light p {
|
2903 |
margin: 0;
|
2919 |
margin: 10px; }
|
2920 |
|
2921 |
.call-out .cnkt-button {
|
2922 |
+
font-size: 13px;
|
2923 |
padding: 6px 10px;
|
2924 |
display: inline-block;
|
2925 |
background: #fff;
|
2926 |
border: none;
|
2927 |
border-radius: 3px;
|
2928 |
position: absolute;
|
2929 |
+
right: 12px;
|
2930 |
+
top: 13px;
|
2931 |
color: #387061 !important;
|
2932 |
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
|
2933 |
+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); }
|
|
|
2934 |
|
2935 |
.call-out a {
|
2936 |
color: #42524e !important;
|
3118 |
font-weight: 600;
|
3119 |
top: -3px; }
|
3120 |
|
3121 |
+
.license-wrap input[type='text'] {
|
3122 |
margin: 0;
|
3123 |
width: 100% !important;
|
3124 |
padding: 14px; }
|
3182 |
overflow: visible;
|
3183 |
position: relative;
|
3184 |
-webkit-box-shadow: 0 4px 10px 1px rgba(0, 0, 0, 0.065);
|
3185 |
+
box-shadow: 0 4px 10px 1px rgba(0, 0, 0, 0.065);
|
3186 |
+
border-radius: 3px; }
|
3187 |
.ajax-load-more .cnkt-sidebar .cta .alm-file-location {
|
3188 |
padding-top: 15px;
|
3189 |
margin-top: 15px;
|
3212 |
.ajax-load-more .cnkt-sidebar .cta-inner.padding-bottom {
|
3213 |
padding-bottom: 80px; }
|
3214 |
|
|
|
|
|
|
|
3215 |
.ajax-load-more .cnkt-sidebar .cta.mailing-list .head-wrap {
|
3216 |
display: block;
|
3217 |
padding: 20px; }
|
3224 |
margin-top: 0; }
|
3225 |
|
3226 |
.ajax-load-more .cnkt-sidebar h3 {
|
3227 |
+
padding: 12px 15px;
|
|
|
3228 |
margin: 0;
|
3229 |
display: block;
|
3230 |
font-size: 14px;
|
3231 |
font-weight: 700;
|
3232 |
+
text-transform: none; }
|
|
|
3233 |
|
3234 |
.ajax-load-more .cnkt-sidebar .item {
|
3235 |
overflow: hidden; }
|
3470 |
opacity: 0;
|
3471 |
cursor: default; }
|
3472 |
|
3473 |
+
.ajax-load-more .row.unlimited input[type='text'] {
|
3474 |
width: 100%; }
|
3475 |
|
3476 |
.alm-add-template {
|
3629 |
.alm-cache .alm-dir-listing h3.heading {
|
3630 |
padding-left: 40px !important; }
|
3631 |
.alm-cache .alm-dir-listing h3.heading:after {
|
3632 |
+
content: '\f07c'; }
|
3633 |
.alm-cache .alm-dir-listing h3.heading.open:after {
|
3634 |
+
content: '\f07b'; }
|
3635 |
.alm-cache .alm-dir-listing .dir-title .delete {
|
3636 |
position: absolute;
|
3637 |
right: 10px;
|
3837 |
margin: 0;
|
3838 |
width: 100%; }
|
3839 |
|
3840 |
+
.shortcode-builder input[type='checkbox'],
|
3841 |
+
.shortcode-builder input[type='radio'],
|
3842 |
+
.ajax-load-more .form-table input[type='checkbox'],
|
3843 |
+
.ajax-load-more .form-table input[type='radio'] {
|
3844 |
width: 0;
|
3845 |
height: 0;
|
3846 |
opacity: 0;
|
3847 |
position: absolute; }
|
3848 |
|
3849 |
+
.shortcode-builder input[type='checkbox'] + label,
|
3850 |
+
.ajax-load-more .form-table input[type='checkbox'] + label,
|
3851 |
+
.shortcode-builder input[type='radio'] + label,
|
3852 |
+
.ajax-load-more .form-table input[type='radio'] + label {
|
3853 |
background: transparent url("../../img/bkg-chkbox_off.png") no-repeat left 1px;
|
3854 |
height: auto;
|
3855 |
min-height: 23px;
|
3860 |
font-size: 14px;
|
3861 |
line-height: 1.5;
|
3862 |
cursor: pointer !important; }
|
3863 |
+
.shortcode-builder input[type='checkbox'] + label span,
|
3864 |
+
.ajax-load-more .form-table input[type='checkbox'] + label span,
|
3865 |
+
.shortcode-builder input[type='radio'] + label span,
|
3866 |
+
.ajax-load-more .form-table input[type='radio'] + label span {
|
3867 |
display: inline-block;
|
3868 |
padding-left: 1px;
|
3869 |
font-size: 12px;
|
3870 |
color: #999; }
|
3871 |
|
3872 |
+
.shortcode-builder input[type='radio'] + label,
|
3873 |
+
.ajax-load-more .form-table input[type='radio'] + label {
|
3874 |
background: transparent url("../../img/bkg-radio_off.png") no-repeat left 2px; }
|
3875 |
|
3876 |
+
.shortcode-builder input[type='checkbox']:hover + label,
|
3877 |
+
.ajax-load-more .form-table input[type='checkbox']:hover + label,
|
3878 |
+
.shortcode-builder input[type='checkbox']:focus + label,
|
3879 |
+
.ajax-load-more .form-table input[type='checkbox']:focus + label {
|
3880 |
/* hover/focus */
|
3881 |
background-image: url("../../img/bkg-chkbox_on.png"); }
|
3882 |
|
3883 |
+
.shortcode-builder input[type='radio']:hover + label,
|
3884 |
+
.ajax-load-more .form-table input[type='radio']:hover + label,
|
3885 |
+
.shortcode-builder input[type='radio']:focus + label,
|
3886 |
+
.ajax-load-more .form-table input[type='radio']:focus + label {
|
3887 |
/* hover/focus */
|
3888 |
background-image: url("../../img/bkg-radio_on.png"); }
|
3889 |
|
3890 |
+
.shortcode-builder input[type='checkbox']:checked + label,
|
3891 |
+
.ajax-load-more .form-table input[type='checkbox']:checked + label {
|
3892 |
/* selected */
|
3893 |
background-image: url("../../img/bkg-chkbox_selected.png");
|
3894 |
color: #000; }
|
3895 |
|
3896 |
+
.shortcode-builder input[type='radio']:checked + label,
|
3897 |
+
.ajax-load-more .form-table input[type='radio']:checked + label {
|
3898 |
/* selected */
|
3899 |
background-image: url("../../img/bkg-radio_selected.png");
|
3900 |
color: #000; }
|
3901 |
|
3902 |
+
.shortcode-builder input[type='checkbox'] + label:hover,
|
3903 |
+
.ajax-load-more .form-table input[type='checkbox'] + label:hover,
|
3904 |
+
.shortcode-builder input[type='radio'] + label:hover,
|
3905 |
+
.ajax-load-more .form-table input[type='radio'] + label:hover {
|
3906 |
color: #000; }
|
3907 |
|
3908 |
/*
|
3942 |
#alm-shortcode-builder-form .shortcode-parameter-wrap h2:hover:after, #alm-shortcode-builder-form .shortcode-parameter-wrap h2:focus:after {
|
3943 |
color: #ccc; }
|
3944 |
#alm-shortcode-builder-form .shortcode-parameter-wrap h2:after {
|
3945 |
+
font-family: 'FontAwesome';
|
3946 |
+
content: '\f056';
|
3947 |
color: #e1e1e1;
|
3948 |
position: absolute;
|
3949 |
left: 15px;
|
3951 |
height: 20px;
|
3952 |
width: 20px; }
|
3953 |
#alm-shortcode-builder-form .shortcode-parameter-wrap h2.open:after {
|
3954 |
+
content: '\f055'; }
|
3955 |
#alm-shortcode-builder-form .shortcode-parameter-wrap h2 i {
|
3956 |
position: absolute;
|
3957 |
right: 15px;
|
4270 |
bottom: 100%;
|
4271 |
right: 26px;
|
4272 |
border: solid transparent;
|
4273 |
+
content: ' ';
|
4274 |
height: 0;
|
4275 |
width: 0;
|
4276 |
position: absolute;
|
4702 |
display: block;
|
4703 |
clear: both;
|
4704 |
margin: 0;
|
4705 |
+
padding: 2px 25px 0;
|
4706 |
overflow: hidden;
|
4707 |
position: relative;
|
4708 |
top: 1px;
|
4715 |
list-style: none; }
|
4716 |
.ajax-load-more .alm-toggle-switch li a {
|
4717 |
display: block;
|
4718 |
+
padding: 15px 20px;
|
4719 |
line-height: 1;
|
4720 |
text-decoration: none;
|
4721 |
border: 1px solid #e1e1e1;
|
4727 |
background-color: #fff; }
|
4728 |
.ajax-load-more .alm-toggle-switch li a.active {
|
4729 |
background: #fff;
|
4730 |
+
font-weight: 700;
|
4731 |
border-bottom-color: #fff;
|
4732 |
color: #111; }
|
4733 |
|
4737 |
* @since 1.0
|
4738 |
*/
|
4739 |
@media screen and (max-width: 1200px) {
|
4740 |
+
.ajax-load-more input[type='text'],
|
4741 |
+
.ajax-load-more input[type='number'],
|
4742 |
.select2-container,
|
4743 |
#alm-builder .select2-container-multi,
|
4744 |
.ajax-load-more textarea {
|
4757 |
clear: both;
|
4758 |
margin: 0;
|
4759 |
width: 100%;
|
4760 |
+
position: static !important; }
|
|
|
4761 |
.admin.ajax-load-more.settings .form-table td {
|
4762 |
padding: 24px 20px 20px; }
|
4763 |
.call-out.light {
|
4794 |
.ajax-load-more .row .wrap {
|
4795 |
padding: 10px 20px; }
|
4796 |
.ajax-load-more textarea,
|
4797 |
+
.ajax-load-more input[type='text'],
|
4798 |
+
.ajax-load-more input[type='number'],
|
4799 |
.select2-container,
|
4800 |
#alm-builder .select2-container-multi {
|
4801 |
width: 100% !important; }
|
admin/dist/js/admin.js
CHANGED
@@ -1273,520 +1273,520 @@ window.onload = function () {
|
|
1273 |
var _alm = _alm || {};
|
1274 |
|
1275 |
jQuery(document).ready(function ($) {
|
1276 |
-
|
1277 |
|
1278 |
-
|
1279 |
-
|
1280 |
-
|
1281 |
|
1282 |
-
|
1283 |
* Test REST API access
|
1284 |
*
|
1285 |
* @since 5.1.1
|
1286 |
*/
|
1287 |
-
|
1288 |
-
|
1289 |
-
|
1290 |
-
|
1291 |
-
|
1292 |
-
|
1293 |
-
|
1294 |
-
|
1295 |
-
|
1296 |
-
|
1297 |
-
|
1298 |
-
|
1299 |
-
|
1300 |
-
|
1301 |
-
|
1302 |
-
|
1303 |
|
1304 |
-
|
1305 |
-
|
1306 |
-
|
1307 |
-
|
1308 |
-
|
1309 |
-
|
1310 |
-
|
1311 |
-
|
1312 |
-
|
1313 |
-
|
1314 |
-
|
1315 |
-
|
1316 |
-
|
1317 |
-
}
|
1318 |
|
1319 |
-
|
1320 |
-
|
1321 |
-
|
1322 |
|
1323 |
-
|
1324 |
* Set focus in code mirror editor
|
1325 |
* @since 5.1
|
1326 |
*/
|
1327 |
-
|
1328 |
-
|
1329 |
-
|
1330 |
-
|
1331 |
-
|
1332 |
-
|
1333 |
-
|
1334 |
-
|
1335 |
-
|
1336 |
|
1337 |
-
|
1338 |
* _alm.saveSettings
|
1339 |
* Setting panel save actions
|
1340 |
*
|
1341 |
* @since 3.2.0
|
1342 |
*/
|
1343 |
|
1344 |
-
|
1345 |
-
|
1346 |
-
|
1347 |
-
|
1348 |
|
1349 |
-
|
1350 |
-
|
1351 |
-
|
1352 |
-
|
1353 |
-
_alm.saveSettings = function () {
|
1354 |
-
|
1355 |
-
if (savingSettings) return false;
|
1356 |
-
|
1357 |
-
savingSettings = true;
|
1358 |
-
settingsForm.classList.add('--saving');
|
1359 |
-
settingsTarget.classList.add('--saving');
|
1360 |
-
settingsTarget.innerHTML = alm_admin_localize.settings_saving;
|
1361 |
-
|
1362 |
-
almSettings.ajaxSubmit({
|
1363 |
-
|
1364 |
-
// Success
|
1365 |
-
success: function success() {
|
1366 |
-
|
1367 |
-
// Delay for effect
|
1368 |
-
setTimeout(function () {
|
1369 |
-
settingsTarget.classList.remove('--saving');
|
1370 |
-
settingsTarget.classList.add('--saved');
|
1371 |
-
settingsTarget.innerHTML = alm_admin_localize.settings_saved;
|
1372 |
-
settingsForm.classList.remove('--saving');
|
1373 |
-
//console.log(alm_admin_localize.ajax_load_more +' - '+ alm_admin_localize.settings_saved);
|
1374 |
-
savingSettings = false;
|
1375 |
-
|
1376 |
-
setTimeout(function () {
|
1377 |
-
settingsTarget.classList.remove('--saved');
|
1378 |
-
}, 2500);
|
1379 |
-
}, 500);
|
1380 |
-
},
|
1381 |
-
|
1382 |
-
// Error
|
1383 |
-
error: function error() {
|
1384 |
-
|
1385 |
-
// Delay for effect
|
1386 |
-
setTimeout(function () {
|
1387 |
-
settingsTarget.classList.remove('--saving');
|
1388 |
-
settingsTarget.classList.add('--error');
|
1389 |
-
settingsTarget.innerHTML = alm_admin_localize.settings_error;
|
1390 |
-
settingsForm.classList.remove('--saving');
|
1391 |
-
console.log(alm_admin_localize.ajax_load_more + ' - ' + alm_admin_localize.settings_error);
|
1392 |
-
savingSettings = false;
|
1393 |
-
|
1394 |
-
setTimeout(function () {
|
1395 |
-
settingsTarget.classList.remove('--error');
|
1396 |
-
}, 2500);
|
1397 |
-
}, 500);
|
1398 |
-
}
|
1399 |
-
});
|
1400 |
-
return false;
|
1401 |
-
};
|
1402 |
-
|
1403 |
-
// On Change, save the settings
|
1404 |
-
var settingsTimer = void 0;
|
1405 |
-
$(document).on('change', '#alm_OptionsForm input, #alm_OptionsForm textarea, #alm_OptionsForm select', function () {
|
1406 |
-
// Set a timer to avoid updating settings to frequently
|
1407 |
-
if (settingsTimer) clearTimeout(settingsTimer);
|
1408 |
-
settingsTimer = setTimeout(function () {
|
1409 |
-
_alm.saveSettings();
|
1410 |
-
}, 500);
|
1411 |
-
});
|
1412 |
|
1413 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1414 |
* Download Repeater Template
|
1415 |
* Trigger the download of a repeater template from the admin
|
1416 |
*
|
1417 |
* @since 3.6
|
1418 |
*/
|
1419 |
|
1420 |
-
|
1421 |
-
|
1422 |
-
|
1423 |
-
|
1424 |
|
1425 |
-
|
1426 |
-
|
1427 |
-
|
1428 |
-
|
1429 |
-
|
1430 |
-
|
1431 |
-
|
1432 |
-
|
1433 |
-
|
1434 |
-
|
1435 |
-
|
1436 |
-
|
1437 |
-
|
1438 |
-
|
1439 |
-
|
1440 |
-
|
1441 |
-
|
1442 |
-
|
1443 |
-
|
1444 |
-
|
1445 |
-
|
1446 |
-
$("select#alm_settings_btn_color").change(function () {
|
1447 |
-
var color = jQuery(this).val();
|
1448 |
-
// Remove other colors
|
1449 |
|
1450 |
-
|
1451 |
-
|
1452 |
-
|
1453 |
|
1454 |
-
|
1455 |
-
|
1456 |
-
|
1457 |
-
}
|
1458 |
-
});
|
1459 |
|
1460 |
-
|
1461 |
-
|
1462 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1463 |
|
1464 |
-
|
1465 |
-
|
1466 |
-
|
1467 |
-
|
1468 |
-
|
1469 |
-
});
|
1470 |
|
1471 |
-
|
1472 |
-
|
1473 |
-
|
1474 |
-
|
1475 |
-
parent = el.parent().parent().parent('.repeater-wrap');
|
1476 |
|
1477 |
-
|
1478 |
-
|
1479 |
-
$('.alm-template-toggle', parent).hide();
|
1480 |
-
$('.alm-template-toggle', parent).eq(index).show();
|
1481 |
-
}
|
1482 |
-
});
|
1483 |
-
|
1484 |
-
/*
|
1485 |
-
* _alm.copyToClipboard
|
1486 |
-
* Copy shortcode to clipboard
|
1487 |
*
|
1488 |
* @since 2.0.0
|
1489 |
*/
|
1490 |
|
1491 |
-
|
1492 |
-
|
1493 |
-
|
1494 |
-
|
1495 |
-
|
1496 |
-
|
1497 |
-
|
1498 |
-
|
1499 |
-
|
1500 |
-
|
1501 |
-
|
1502 |
-
|
1503 |
-
|
1504 |
-
|
1505 |
-
|
1506 |
-
|
1507 |
-
|
1508 |
-
|
1509 |
-
|
1510 |
-
|
1511 |
-
|
1512 |
-
|
1513 |
-
|
1514 |
-
|
1515 |
-
|
1516 |
-
|
1517 |
-
|
1518 |
-
|
1519 |
-
|
1520 |
-
|
1521 |
-
|
1522 |
-
|
1523 |
-
|
1524 |
-
|
1525 |
-
|
1526 |
-
|
1527 |
-
|
1528 |
-
|
1529 |
-
|
1530 |
-
|
1531 |
-
|
1532 |
-
});
|
1533 |
-
|
1534 |
-
$(document).on('click', 'h3.heading', function () {
|
1535 |
-
var el = $(this);
|
1536 |
-
if ($(el).hasClass('open')) {
|
1537 |
-
$(el).next('.expand-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad', function () {
|
1538 |
-
$(el).removeClass('open');
|
1539 |
-
});
|
1540 |
-
} else {
|
1541 |
-
$(el).next('.expand-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad', function () {
|
1542 |
-
$(el).addClass('open');
|
1543 |
-
});
|
1544 |
-
}
|
1545 |
-
});
|
1546 |
-
|
1547 |
-
$(document).on('click', '.toggle-all', function () {
|
1548 |
-
var el = $(this),
|
1549 |
-
type = el.data('id');
|
1550 |
-
if (el.hasClass('closed')) {
|
1551 |
-
el.removeClass('closed');
|
1552 |
-
|
1553 |
-
$('h2.shortcode-title').closest('.shortcode-parameter-wrap').removeClass('closed');
|
1554 |
-
$('h3.heading, h2.shortcode-title').removeClass('open');
|
1555 |
-
$('.section-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad');
|
1556 |
-
$('.expand-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad');
|
1557 |
-
} else {
|
1558 |
-
el.addClass('closed');
|
1559 |
-
|
1560 |
-
$('h2.shortcode-title').closest('.shortcode-parameter-wrap').addClass('closed');
|
1561 |
-
$('h3.heading, h2.shortcode-title').addClass('open');
|
1562 |
-
$('.section-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad');
|
1563 |
-
$('.expand-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad');
|
1564 |
-
}
|
1565 |
-
});
|
1566 |
|
1567 |
-
|
1568 |
-
|
1569 |
-
|
1570 |
-
|
1571 |
-
|
1572 |
-
|
1573 |
-
|
1574 |
-
|
1575 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1576 |
|
1577 |
-
|
1578 |
* Activate License
|
1579 |
*
|
1580 |
* @since 2.8.3
|
1581 |
*/
|
1582 |
|
1583 |
-
|
1584 |
-
|
1585 |
-
|
1586 |
-
|
1587 |
-
|
1588 |
-
|
1589 |
-
|
1590 |
-
|
1591 |
-
|
1592 |
-
|
1593 |
-
|
1594 |
-
|
1595 |
-
|
1596 |
-
|
1597 |
-
|
1598 |
-
|
1599 |
-
|
1600 |
-
|
1601 |
-
|
1602 |
-
|
1603 |
-
|
1604 |
-
|
1605 |
-
|
1606 |
-
|
1607 |
-
|
1608 |
-
|
1609 |
-
|
1610 |
-
|
1611 |
-
|
1612 |
-
|
1613 |
-
|
1614 |
-
|
1615 |
-
|
1616 |
-
|
1617 |
-
|
1618 |
-
|
1619 |
-
|
1620 |
-
|
1621 |
-
|
1622 |
-
|
1623 |
-
|
1624 |
-
|
1625 |
-
|
1626 |
-
|
1627 |
-
|
1628 |
-
|
1629 |
-
|
1630 |
-
|
1631 |
-
|
1632 |
-
|
1633 |
-
|
1634 |
-
|
1635 |
-
|
1636 |
-
|
1637 |
-
|
1638 |
-
|
1639 |
-
|
1640 |
-
|
1641 |
-
|
1642 |
-
|
1643 |
-
|
1644 |
-
|
1645 |
-
|
1646 |
-
|
1647 |
-
|
1648 |
-
|
1649 |
-
|
1650 |
-
|
1651 |
-
|
1652 |
-
|
1653 |
-
|
1654 |
-
|
1655 |
-
|
1656 |
-
}
|
1657 |
-
});
|
1658 |
|
1659 |
-
|
1660 |
-
|
1661 |
-
|
1662 |
-
|
1663 |
-
|
1664 |
-
|
1665 |
-
|
1666 |
-
|
1667 |
-
|
1668 |
-
|
1669 |
-
|
1670 |
-
|
1671 |
-
|
1672 |
-
|
1673 |
-
|
1674 |
-
|
1675 |
-
|
1676 |
-
|
1677 |
-
|
1678 |
-
|
1679 |
-
|
1680 |
-
|
1681 |
-
|
1682 |
-
|
1683 |
-
|
1684 |
-
|
1685 |
-
}
|
1686 |
|
1687 |
-
|
1688 |
-
|
1689 |
-
|
1690 |
-
|
1691 |
-
|
1692 |
-
|
1693 |
-
|
1694 |
-
|
1695 |
-
|
1696 |
-
|
1697 |
-
|
1698 |
-
|
1699 |
-
|
1700 |
-
|
1701 |
-
|
1702 |
-
|
1703 |
-
|
1704 |
-
|
1705 |
-
|
1706 |
-
|
1707 |
-
|
1708 |
-
|
1709 |
-
|
1710 |
-
|
1711 |
-
|
1712 |
-
|
1713 |
-
|
1714 |
-
|
1715 |
-
|
1716 |
-
|
1717 |
-
|
1718 |
-
});
|
1719 |
|
1720 |
-
|
1721 |
* Dismiss Sharing (Transient)
|
1722 |
* @since 2.8.7
|
1723 |
*/
|
1724 |
-
|
1725 |
-
|
1726 |
-
|
1727 |
-
|
1728 |
-
|
1729 |
-
|
1730 |
-
|
1731 |
-
|
1732 |
-
|
1733 |
-
|
1734 |
-
|
1735 |
-
|
1736 |
-
|
1737 |
-
|
1738 |
-
|
1739 |
-
|
1740 |
-
|
1741 |
-
|
1742 |
-
|
1743 |
-
|
1744 |
-
|
1745 |
|
1746 |
-
|
1747 |
* Set Transient (Transient)
|
1748 |
* @since 4.0
|
1749 |
*/
|
1750 |
-
|
1751 |
-
|
1752 |
-
|
1753 |
-
|
1754 |
-
|
1755 |
-
|
1756 |
-
|
1757 |
-
|
1758 |
-
|
1759 |
-
|
1760 |
-
|
1761 |
-
|
1762 |
-
|
1763 |
-
|
1764 |
-
|
1765 |
-
|
1766 |
-
|
1767 |
-
|
1768 |
-
|
1769 |
-
|
1770 |
-
|
1771 |
-
|
1772 |
-
|
1773 |
-
|
1774 |
-
|
1775 |
|
1776 |
-
|
1777 |
* Scroll to setting section
|
1778 |
* @since 2.7.3
|
1779 |
*/
|
1780 |
|
1781 |
-
|
1782 |
-
|
1783 |
-
|
1784 |
-
|
1785 |
-
|
1786 |
-
|
1787 |
-
|
1788 |
-
|
1789 |
-
|
1790 |
-
|
1791 |
-
|
1792 |
});
|
1273 |
var _alm = _alm || {};
|
1274 |
|
1275 |
jQuery(document).ready(function ($) {
|
1276 |
+
'use strict';
|
1277 |
|
1278 |
+
_alm.options = {
|
1279 |
+
speed: 200
|
1280 |
+
};
|
1281 |
|
1282 |
+
/*
|
1283 |
* Test REST API access
|
1284 |
*
|
1285 |
* @since 5.1.1
|
1286 |
*/
|
1287 |
+
if ($('.restapi-access').length) {
|
1288 |
+
$.ajax({
|
1289 |
+
type: 'GET',
|
1290 |
+
url: alm_admin_localize.restapi.url + alm_admin_localize.restapi.namespace + '/test/',
|
1291 |
+
dataType: 'json',
|
1292 |
+
success: function success(data) {
|
1293 |
+
if (data.success) {
|
1294 |
+
console.log('Ajax Load More successfully connected to the WordPress REST API.');
|
1295 |
+
}
|
1296 |
+
},
|
1297 |
+
error: function error(xhr, status, _error) {
|
1298 |
+
console.log(status);
|
1299 |
+
$('.restapi-access').fadeIn();
|
1300 |
+
}
|
1301 |
+
});
|
1302 |
+
}
|
1303 |
|
1304 |
+
/*
|
1305 |
+
* Save Repeater Templates with cmd + s and ctrl + s
|
1306 |
+
* @since 5.1
|
1307 |
+
*/
|
1308 |
+
document.addEventListener('keydown', function (e) {
|
1309 |
+
if ((window.navigator.platform.match('Mac') ? e.metaKey : e.ctrlKey) && e.keyCode == 83) {
|
1310 |
+
if (e.target.nodeName === 'TEXTAREA' && $(e.target).closest('.repeater-wrap')) {
|
1311 |
+
console.log('Saving template...');
|
1312 |
+
var btn = $(e.target).closest('.repeater-wrap').find('input.save-repeater');
|
1313 |
+
if (btn) {
|
1314 |
+
btn.click();
|
1315 |
+
}
|
1316 |
+
}
|
|
|
1317 |
|
1318 |
+
e.preventDefault();
|
1319 |
+
}
|
1320 |
+
}, false);
|
1321 |
|
1322 |
+
/*
|
1323 |
* Set focus in code mirror editor
|
1324 |
* @since 5.1
|
1325 |
*/
|
1326 |
+
$('label.trigger-codemirror').on('click', function () {
|
1327 |
+
var el = $(this);
|
1328 |
+
var id = el.data('id');
|
1329 |
+
var cm = window['editor_' + id];
|
1330 |
+
if (cm) {
|
1331 |
+
cm.focus();
|
1332 |
+
cm.setCursor(cm.lineCount(), 0);
|
1333 |
+
}
|
1334 |
+
});
|
1335 |
|
1336 |
+
/*
|
1337 |
* _alm.saveSettings
|
1338 |
* Setting panel save actions
|
1339 |
*
|
1340 |
* @since 3.2.0
|
1341 |
*/
|
1342 |
|
1343 |
+
var almSettings = $('#alm_OptionsForm'),
|
1344 |
+
savingSettings = false,
|
1345 |
+
settingsForm = document.querySelector('#alm_OptionsForm'),
|
1346 |
+
settingsTarget = document.querySelector('.alm-settings-feedback');
|
1347 |
|
1348 |
+
if (settingsForm) {
|
1349 |
+
document.body.appendChild(settingsTarget);
|
1350 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1351 |
|
1352 |
+
_alm.saveSettings = function () {
|
1353 |
+
if (savingSettings) return false;
|
1354 |
+
|
1355 |
+
savingSettings = true;
|
1356 |
+
settingsForm.classList.add('--saving');
|
1357 |
+
settingsTarget.classList.add('--saving');
|
1358 |
+
settingsTarget.innerHTML = alm_admin_localize.settings_saving;
|
1359 |
+
|
1360 |
+
almSettings.ajaxSubmit({
|
1361 |
+
// Success
|
1362 |
+
success: function success() {
|
1363 |
+
// Delay for effect
|
1364 |
+
setTimeout(function () {
|
1365 |
+
settingsTarget.classList.remove('--saving');
|
1366 |
+
settingsTarget.classList.add('--saved');
|
1367 |
+
settingsTarget.innerHTML = alm_admin_localize.settings_saved;
|
1368 |
+
settingsForm.classList.remove('--saving');
|
1369 |
+
//console.log(alm_admin_localize.ajax_load_more +' - '+ alm_admin_localize.settings_saved);
|
1370 |
+
savingSettings = false;
|
1371 |
+
|
1372 |
+
setTimeout(function () {
|
1373 |
+
settingsTarget.classList.remove('--saved');
|
1374 |
+
}, 2500);
|
1375 |
+
}, 500);
|
1376 |
+
},
|
1377 |
+
|
1378 |
+
// Error
|
1379 |
+
error: function error() {
|
1380 |
+
// Delay for effect
|
1381 |
+
setTimeout(function () {
|
1382 |
+
settingsTarget.classList.remove('--saving');
|
1383 |
+
settingsTarget.classList.add('--error');
|
1384 |
+
settingsTarget.innerHTML = alm_admin_localize.settings_error;
|
1385 |
+
settingsForm.classList.remove('--saving');
|
1386 |
+
console.log(alm_admin_localize.ajax_load_more + ' - ' + alm_admin_localize.settings_error);
|
1387 |
+
savingSettings = false;
|
1388 |
+
|
1389 |
+
setTimeout(function () {
|
1390 |
+
settingsTarget.classList.remove('--error');
|
1391 |
+
}, 2500);
|
1392 |
+
}, 500);
|
1393 |
+
}
|
1394 |
+
});
|
1395 |
+
return false;
|
1396 |
+
};
|
1397 |
+
|
1398 |
+
// On Change, save the settings
|
1399 |
+
var settingsTimer = void 0;
|
1400 |
+
$(document).on('change', '#alm_OptionsForm input, #alm_OptionsForm textarea, #alm_OptionsForm select', function () {
|
1401 |
+
// Set a timer to avoid updating settings to frequently
|
1402 |
+
if (settingsTimer) clearTimeout(settingsTimer);
|
1403 |
+
settingsTimer = setTimeout(function () {
|
1404 |
+
_alm.saveSettings();
|
1405 |
+
}, 500);
|
1406 |
+
});
|
1407 |
+
|
1408 |
+
/*
|
1409 |
* Download Repeater Template
|
1410 |
* Trigger the download of a repeater template from the admin
|
1411 |
*
|
1412 |
* @since 3.6
|
1413 |
*/
|
1414 |
|
1415 |
+
$('.download-repeater').on('click', function (e) {
|
1416 |
+
var el = this;
|
1417 |
+
el.closest('form').submit();
|
1418 |
+
});
|
1419 |
|
1420 |
+
/*
|
1421 |
+
* Tooltipster
|
1422 |
+
* http://iamceege.github.io/tooltipster/
|
1423 |
+
*
|
1424 |
+
* @since 2.8.4
|
1425 |
+
*/
|
1426 |
+
$('body').on('mouseenter', '.tooltip:not(.tooltipstered)', function () {
|
1427 |
+
$(this).tooltipster({
|
1428 |
+
delay: 100,
|
1429 |
+
speed: 150,
|
1430 |
+
maxWidth: 325
|
1431 |
+
}).tooltipster('show');
|
1432 |
+
});
|
1433 |
+
|
1434 |
+
/*
|
1435 |
+
* Button preview pane
|
1436 |
+
* Found on Settings and Shortcode Builder
|
1437 |
+
*
|
1438 |
+
* @since 2.8.4
|
1439 |
+
*/
|
|
|
|
|
|
|
|
|
1440 |
|
1441 |
+
$('select#alm_settings_btn_color').change(function () {
|
1442 |
+
var color = jQuery(this).val();
|
1443 |
+
// Remove other colors
|
1444 |
|
1445 |
+
$('.alm-btn-wrap .ajax-load-more-wrap').attr('class', 'ajax-load-more-wrap');
|
1446 |
+
$('.alm-btn-wrap .ajax-load-more-wrap').addClass(color);
|
1447 |
+
$('.alm-btn-wrap .ajax-load-more-wrap #test-alm-button').removeClass('loading');
|
|
|
|
|
1448 |
|
1449 |
+
// Add loading class if Infinite loading style
|
1450 |
+
if (color.indexOf('infinite') >= 0) {
|
1451 |
+
$('.alm-btn-wrap .ajax-load-more-wrap #test-alm-button').addClass('loading');
|
1452 |
+
}
|
1453 |
+
});
|
1454 |
+
|
1455 |
+
$('select#alm_settings_btn_color').click(function (e) {
|
1456 |
+
e.preventDefault();
|
1457 |
+
});
|
1458 |
+
|
1459 |
+
$('.alm-template-listing li a').click(function (e) {
|
1460 |
+
e.preventDefault();
|
1461 |
+
var el = $(this),
|
1462 |
+
val = el.data('path');
|
1463 |
+
el.parent().parent().next('.template-selection').val(val);
|
1464 |
+
});
|
1465 |
+
|
1466 |
+
$('.alm-template-section-nav li a').click(function (e) {
|
1467 |
+
e.preventDefault();
|
1468 |
+
var el = $(this),
|
1469 |
+
index = el.parent().index(),
|
1470 |
+
parent = el.parent().parent().parent('.repeater-wrap');
|
1471 |
+
|
1472 |
+
if (!el.hasClass('active')) {
|
1473 |
+
el.parent().addClass('active').siblings().removeClass('active');
|
1474 |
+
$('.alm-template-toggle', parent).hide();
|
1475 |
+
$('.alm-template-toggle', parent).eq(index).show();
|
1476 |
+
}
|
1477 |
+
});
|
1478 |
+
|
1479 |
+
// Copy to Clipboard
|
1480 |
+
$('.copy-to-clipboard').on('click', function () {
|
1481 |
+
var btn = $(this).get(0);
|
1482 |
+
var input = document.querySelector('#shortcode_output');
|
1483 |
+
|
1484 |
+
if (input && btn) {
|
1485 |
+
var old_txt = btn.innerHTML;
|
1486 |
+
var copied_txt = btn.dataset.copied ? btn.dataset.copied : old_txt;
|
1487 |
+
|
1488 |
+
input.select();
|
1489 |
+
document.execCommand('copy');
|
1490 |
+
input.disabled = true;
|
1491 |
+
btn.disabled = true;
|
1492 |
+
input.focus();
|
1493 |
+
|
1494 |
+
// Set Text of Button
|
1495 |
+
btn.innerHTML = copied_txt;
|
1496 |
+
|
1497 |
+
setTimeout(function () {
|
1498 |
+
btn.innerHTML = old_txt;
|
1499 |
+
input.disabled = false;
|
1500 |
+
btn.disabled = false;
|
1501 |
+
}, 2500);
|
1502 |
+
}
|
1503 |
+
});
|
1504 |
|
1505 |
+
// Copy link on repeater templates
|
1506 |
+
$('.alm-dropdown .copy a').click(function () {
|
1507 |
+
var container = $(this).closest('.repeater-wrap'),
|
1508 |
+
// find closet wrap
|
1509 |
+
el = container.data('name'); // get template name
|
|
|
1510 |
|
1511 |
+
if (el === 'default') el = 'template-default';
|
1512 |
+
var c = $('#' + el).val(); // Get textarea val()
|
1513 |
+
_alm.copyToClipboard(c);
|
1514 |
+
});
|
|
|
1515 |
|
1516 |
+
/*
|
1517 |
+
* Expand/Collapse shortcode headings
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1518 |
*
|
1519 |
* @since 2.0.0
|
1520 |
*/
|
1521 |
|
1522 |
+
$(document).on('click', 'h2.shortcode-title', function () {
|
1523 |
+
var el = $(this);
|
1524 |
+
var parent = el.closest('.shortcode-parameter-wrap');
|
1525 |
+
if (el.hasClass('open')) {
|
1526 |
+
el.next('.section-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad', function () {
|
1527 |
+
el.removeClass('open');
|
1528 |
+
parent.removeClass('closed');
|
1529 |
+
});
|
1530 |
+
} else {
|
1531 |
+
el.next('.section-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad', function () {
|
1532 |
+
el.addClass('open');
|
1533 |
+
parent.addClass('closed');
|
1534 |
+
});
|
1535 |
+
}
|
1536 |
+
});
|
1537 |
+
|
1538 |
+
$(document).on('click', 'h3.heading', function () {
|
1539 |
+
var el = $(this);
|
1540 |
+
if ($(el).hasClass('open')) {
|
1541 |
+
$(el).next('.expand-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad', function () {
|
1542 |
+
$(el).removeClass('open');
|
1543 |
+
});
|
1544 |
+
} else {
|
1545 |
+
$(el).next('.expand-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad', function () {
|
1546 |
+
$(el).addClass('open');
|
1547 |
+
});
|
1548 |
+
}
|
1549 |
+
});
|
1550 |
+
|
1551 |
+
$(document).on('click', '.toggle-all', function () {
|
1552 |
+
var el = $(this),
|
1553 |
+
type = el.data('id');
|
1554 |
+
if (el.hasClass('closed')) {
|
1555 |
+
el.removeClass('closed');
|
1556 |
+
|
1557 |
+
$('h2.shortcode-title').closest('.shortcode-parameter-wrap').removeClass('closed');
|
1558 |
+
$('h3.heading, h2.shortcode-title').removeClass('open');
|
1559 |
+
$('.section-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad');
|
1560 |
+
$('.expand-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad');
|
1561 |
+
} else {
|
1562 |
+
el.addClass('closed');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1563 |
|
1564 |
+
$('h2.shortcode-title').closest('.shortcode-parameter-wrap').addClass('closed');
|
1565 |
+
$('h3.heading, h2.shortcode-title').addClass('open');
|
1566 |
+
$('.section-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad');
|
1567 |
+
$('.expand-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad');
|
1568 |
+
}
|
1569 |
+
});
|
1570 |
+
|
1571 |
+
// Trigger click events on enter/return
|
1572 |
+
$('h3.heading, h2.shortcode-title').keypress(function (e) {
|
1573 |
+
var key = e.which;
|
1574 |
+
if (key == 13) {
|
1575 |
+
// the enter key code
|
1576 |
+
$(this).click();
|
1577 |
+
return false;
|
1578 |
+
}
|
1579 |
+
});
|
1580 |
|
1581 |
+
/*
|
1582 |
* Activate License
|
1583 |
*
|
1584 |
* @since 2.8.3
|
1585 |
*/
|
1586 |
|
1587 |
+
var almActivating = false;
|
1588 |
+
$(document).on('click', '.license-btn', function (e) {
|
1589 |
+
e.preventDefault();
|
1590 |
+
|
1591 |
+
if (!almActivating) {
|
1592 |
+
$('.license-btn-wrap .msg').remove();
|
1593 |
+
almActivating = true;
|
1594 |
+
|
1595 |
+
var el = $(this),
|
1596 |
+
wrap = el.closest('.license-btn-wrap'),
|
1597 |
+
parent = el.closest('.license'),
|
1598 |
+
type = el.data('type'),
|
1599 |
+
item = wrap.data('name'),
|
1600 |
+
url = wrap.data('url'),
|
1601 |
+
upgrade = wrap.data('upgrade-url'),
|
1602 |
+
status = wrap.data('option-status'),
|
1603 |
+
key = wrap.data('option-key'),
|
1604 |
+
license = parent.find('input[type=text]').val();
|
1605 |
+
|
1606 |
+
$('.loading', parent).fadeIn(300);
|
1607 |
+
|
1608 |
+
// Get value from Ajax
|
1609 |
+
$.ajax({
|
1610 |
+
type: 'GET',
|
1611 |
+
url: alm_admin_localize.ajax_admin_url,
|
1612 |
+
dataType: 'json',
|
1613 |
+
|
1614 |
+
data: {
|
1615 |
+
action: 'alm_license_activation',
|
1616 |
+
nonce: alm_admin_localize.alm_admin_nonce,
|
1617 |
+
type: type,
|
1618 |
+
item: item,
|
1619 |
+
status: status,
|
1620 |
+
url: url,
|
1621 |
+
upgrade: upgrade,
|
1622 |
+
key: key,
|
1623 |
+
license: license
|
1624 |
+
},
|
1625 |
+
|
1626 |
+
success: function success(data) {
|
1627 |
+
if (data.msg) {
|
1628 |
+
$('.license-btn-wrap', parent).append('<div class="msg">' + data.msg + '</div>');
|
1629 |
+
}
|
1630 |
+
|
1631 |
+
if (data.license === 'valid') {
|
1632 |
+
$('.license-key-field .status', parent).addClass('active').removeClass('inactive').text(alm_admin_localize.active);
|
1633 |
+
$('.license-title .status', parent).addClass('valid').removeClass('invalid');
|
1634 |
+
$('.activate.license-btn', parent).addClass('hide');
|
1635 |
+
$('.check-licence.license-btn', parent).addClass('hide');
|
1636 |
+
$('.deactivate.license-btn', parent).removeClass('hide');
|
1637 |
+
$('.renew-btn', parent).addClass('hide');
|
1638 |
+
$('.no-license', parent).slideUp(200);
|
1639 |
+
} else {
|
1640 |
+
$('.license-key-field .status', parent).removeClass('active').addClass('inactive').text(alm_admin_localize.inactive);
|
1641 |
+
$('.license-title .status', parent).removeClass('valid').addClass('invalid');
|
1642 |
+
$('.activate.license-btn', parent).removeClass('hide');
|
1643 |
+
$('.check-licence.license-btn', parent).addClass('hide');
|
1644 |
+
$('.deactivate.license-btn', parent).addClass('hide');
|
1645 |
+
$('.no-license', parent).slideDown(200);
|
1646 |
+
}
|
1647 |
+
|
1648 |
+
$('.loading', parent).delay(250).fadeOut(300);
|
1649 |
+
almActivating = false;
|
1650 |
+
},
|
1651 |
+
|
1652 |
+
error: function error(xhr, status, _error2) {
|
1653 |
+
console.log(status);
|
1654 |
+
$('.loading', parent).delay(250).fadeOut(300);
|
1655 |
+
almActivating = false;
|
1656 |
+
}
|
1657 |
+
});
|
1658 |
+
}
|
1659 |
+
});
|
|
|
|
|
1660 |
|
1661 |
+
/*
|
1662 |
+
* Get layout value Ajax
|
1663 |
+
* @since 2.8.7
|
1664 |
+
*/
|
1665 |
+
$(document).on('click', '.alm-layout-selection li a.layout', function (e) {
|
1666 |
+
e.preventDefault();
|
1667 |
+
var el = $(this),
|
1668 |
+
type = el.data('type'),
|
1669 |
+
custom = el.hasClass('custom') ? 'true' : 'false',
|
1670 |
+
textarea = el.closest('.repeater-wrap').find('.CodeMirror'),
|
1671 |
+
layout_btn_text = el.html(),
|
1672 |
+
name = el.closest('.repeater-wrap').data('name');
|
1673 |
+
|
1674 |
+
if (!el.hasClass('updating')) {
|
1675 |
+
el.addClass('updating').text(alm_admin_localize.applying_layout + '...');
|
1676 |
+
textarea.addClass('loading');
|
1677 |
+
|
1678 |
+
// Get Codemirror Editor ID
|
1679 |
+
var eid = '';
|
1680 |
+
if (name === 'default') {
|
1681 |
+
// Default Template
|
1682 |
+
eid = window.editor_default;
|
1683 |
+
} else {
|
1684 |
+
// Repeater Templates
|
1685 |
+
eid = window['editor_' + name];
|
1686 |
+
}
|
|
|
1687 |
|
1688 |
+
// Get value from Ajax
|
1689 |
+
$.ajax({
|
1690 |
+
type: 'GET',
|
1691 |
+
url: alm_admin_localize.ajax_admin_url,
|
1692 |
+
data: {
|
1693 |
+
action: 'alm_get_layout',
|
1694 |
+
type: type,
|
1695 |
+
custom: custom,
|
1696 |
+
nonce: alm_admin_localize.alm_admin_nonce
|
1697 |
+
},
|
1698 |
+
dataType: 'JSON',
|
1699 |
+
success: function success(data) {
|
1700 |
+
eid.setValue(data.value);
|
1701 |
+
|
1702 |
+
// Clear button styles
|
1703 |
+
setTimeout(function () {
|
1704 |
+
el.text(alm_admin_localize.template_updated).blur();
|
1705 |
+
setTimeout(function () {
|
1706 |
+
el.removeClass('updating').html(layout_btn_text).blur(); // CLose drop menu
|
1707 |
+
el.closest('.alm-drop-btn').trigger('click');
|
1708 |
+
textarea.removeClass('loading');
|
1709 |
+
}, 400);
|
1710 |
+
}, 400);
|
1711 |
+
},
|
1712 |
+
error: function error(xhr, status, _error3) {
|
1713 |
+
console.log(status);
|
1714 |
+
textarea.removeClass('loading');
|
1715 |
+
}
|
1716 |
+
});
|
1717 |
+
}
|
1718 |
+
});
|
|
|
1719 |
|
1720 |
+
/*
|
1721 |
* Dismiss Sharing (Transient)
|
1722 |
* @since 2.8.7
|
1723 |
*/
|
1724 |
+
$(document).on('click', '.alm-notification--dismiss', function (e) {
|
1725 |
+
e.preventDefault();
|
1726 |
+
var el = $(this),
|
1727 |
+
container = el.parent('.cta');
|
1728 |
+
|
1729 |
+
// Get value from Ajax
|
1730 |
+
$.ajax({
|
1731 |
+
type: 'POST',
|
1732 |
+
url: alm_admin_localize.ajax_admin_url,
|
1733 |
+
data: {
|
1734 |
+
action: 'alm_dismiss_sharing',
|
1735 |
+
nonce: alm_admin_localize.alm_admin_nonce
|
1736 |
+
},
|
1737 |
+
success: function success(data) {
|
1738 |
+
container.fadeOut();
|
1739 |
+
},
|
1740 |
+
error: function error(xhr, status, _error4) {
|
1741 |
+
console.log(status);
|
1742 |
+
}
|
1743 |
+
});
|
1744 |
+
});
|
1745 |
|
1746 |
+
/*
|
1747 |
* Set Transient (Transient)
|
1748 |
* @since 4.0
|
1749 |
*/
|
1750 |
+
$(document).on('click', '.alm-transient button.notice-dismiss', function (e) {
|
1751 |
+
e.preventDefault();
|
1752 |
+
var el = $(this),
|
1753 |
+
container = el.parent('.alm-transient'),
|
1754 |
+
transient_name = container.data('transient'),
|
1755 |
+
duration = container.data('duration');
|
1756 |
+
|
1757 |
+
// Get value from Ajax
|
1758 |
+
$.ajax({
|
1759 |
+
type: 'POST',
|
1760 |
+
url: alm_admin_localize.ajax_admin_url,
|
1761 |
+
data: {
|
1762 |
+
action: 'alm_set_transient',
|
1763 |
+
nonce: alm_admin_localize.alm_admin_nonce,
|
1764 |
+
transient_name: transient_name,
|
1765 |
+
duration: duration
|
1766 |
+
},
|
1767 |
+
success: function success(data) {
|
1768 |
+
container.fadeOut();
|
1769 |
+
},
|
1770 |
+
error: function error(xhr, status, _error5) {
|
1771 |
+
console.log(status);
|
1772 |
+
}
|
1773 |
+
});
|
1774 |
+
});
|
1775 |
|
1776 |
+
/*
|
1777 |
* Scroll to setting section
|
1778 |
* @since 2.7.3
|
1779 |
*/
|
1780 |
|
1781 |
+
$(document).on('change', '#alm-settings-nav', function (e) {
|
1782 |
+
e.preventDefault();
|
1783 |
+
var el = $(this),
|
1784 |
+
index = $('option:selected', el).index();
|
1785 |
+
if (index !== '#') {
|
1786 |
+
index = index - 1;
|
1787 |
+
$('html, body').animate({
|
1788 |
+
scrollTop: $('#alm_OptionsForm h2').eq(index).offset().top - 40
|
1789 |
+
}, 500);
|
1790 |
+
}
|
1791 |
+
});
|
1792 |
});
|
admin/includes/components/custom-layouts.php
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
?>
|
1 |
<?php
|
2 |
+
$custom_layouts = apply_filters( 'alm_custom_layouts', '' );
|
3 |
+
if ( $custom_layouts ) {
|
4 |
+
foreach ( $custom_layouts as $layout ) {
|
5 |
+
echo '<li><a href="javascript:void(0);" class="layout custom" data-type="' . $layout['layout'] . '"><i class="fa fa-list-alt"></i>' . $layout['name'] . '</a></li>';
|
6 |
+
}
|
7 |
+
}
|
8 |
?>
|
admin/includes/cta/extend-theme-repeaters.php
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$extend = alm_get_addon( 'theme-repeaters' );
|
3 |
+
if ( $extend ) {
|
4 |
+
$name = $extend['name'];
|
5 |
+
$intro = $extend['intro'];
|
6 |
+
$desc = $extend['desc'];
|
7 |
+
$key = $extend['key'];
|
8 |
+
$url = $extend['url'];
|
9 |
+
$img = $extend['img'];
|
10 |
+
?>
|
11 |
+
<div id="alm-add-ons">
|
12 |
+
<div class="flexbox-wrap">
|
13 |
+
<div class="group no-shadow extend">
|
14 |
+
<a href="<?php echo $url; ?>?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=<?php echo $name; ?>" target="_blank">
|
15 |
+
<div class="pro-img">
|
16 |
+
<img src="<?php echo ALM_ADMIN_URL; ?><?php echo $img; ?>" alt="">
|
17 |
+
</div>
|
18 |
+
<div class="pro-details">
|
19 |
+
<h2 class="addon-title"><?php echo $name; ?></h2>
|
20 |
+
<p class="addon-intro"><?php echo $intro; ?></p>
|
21 |
+
<p class="pro-desc"><?php echo $desc; ?></p>
|
22 |
+
<?php
|
23 |
+
echo '<span class="cnkt-button">' . __( 'Upgrade Now', 'ajax-load-more' ) . '</span>';
|
24 |
+
?>
|
25 |
+
</div>
|
26 |
+
</a>
|
27 |
+
</div>
|
28 |
+
</div>
|
29 |
+
</div>
|
30 |
+
<?php
|
31 |
+
}
|
32 |
+
?>
|
admin/includes/cta/extend.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<div class="clear"></div>
|
2 |
<div class="call-out">
|
3 |
-
<?php _e('Unlock additional templates with the <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/?utm_source=WP%20Admin&utm_medium=CustomRepeaters%20Extend&utm_campaign=Custom%20Repeaters" target="_parent">Custom Repeaters add-on</a>', 'ajax-load-more'); ?>
|
4 |
<a class="cnkt-button" href="https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/?utm_source=WP%20Admin&utm_medium=CustomRepeaters%20Extend&utm_campaign=Custom%20Repeaters" target="_blank">
|
5 |
<?php _e('More Info', 'ajax-load-more'); ?>
|
6 |
</a>
|
7 |
-
</div>
|
1 |
<div class="clear"></div>
|
2 |
<div class="call-out">
|
3 |
+
<?php _e('Unlock additional templates with the <a href="https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/?utm_source=WP%20Admin&utm_medium=CustomRepeaters%20Extend&utm_campaign=Custom%20Repeaters" target="_parent">Custom Repeaters add-on</a>', 'ajax-load-more'); ?>
|
4 |
<a class="cnkt-button" href="https://connekthq.com/plugins/ajax-load-more/add-ons/custom-repeaters/?utm_source=WP%20Admin&utm_medium=CustomRepeaters%20Extend&utm_campaign=Custom%20Repeaters" target="_blank">
|
5 |
<?php _e('More Info', 'ajax-load-more'); ?>
|
6 |
</a>
|
7 |
+
</div>
|
admin/includes/cta/pro-hero.php
CHANGED
@@ -1,38 +1,33 @@
|
|
1 |
-
<?php
|
2 |
-
if(!has_action('alm_pro_installed')){
|
3 |
$pro_addon = alm_get_pro_addon();
|
4 |
-
foreach($pro_addon as $pro){
|
5 |
-
$name
|
6 |
-
$intro
|
7 |
-
$desc
|
8 |
$action = $pro['action'];
|
9 |
-
$key
|
10 |
$status = $pro['status'];
|
11 |
$settings_field = $pro['settings_field'];
|
12 |
-
$url
|
13 |
-
$img
|
14 |
?>
|
15 |
<div class="group no-shadow highlighted">
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
}
|
30 |
-
?>
|
31 |
-
|
32 |
-
</div>
|
33 |
-
</a>
|
34 |
</div>
|
35 |
-
<?php
|
36 |
}
|
37 |
}
|
38 |
-
?>
|
1 |
+
<?php
|
2 |
+
if ( ! has_action( 'alm_pro_installed' ) ) {
|
3 |
$pro_addon = alm_get_pro_addon();
|
4 |
+
foreach( $pro_addon as $pro ) {
|
5 |
+
$name = $pro['name'];
|
6 |
+
$intro = $pro['intro'];
|
7 |
+
$desc = $pro['desc'];
|
8 |
$action = $pro['action'];
|
9 |
+
$key = $pro['key'];
|
10 |
$status = $pro['status'];
|
11 |
$settings_field = $pro['settings_field'];
|
12 |
+
$url = $pro['url'];
|
13 |
+
$img = $pro['img'];
|
14 |
?>
|
15 |
<div class="group no-shadow highlighted">
|
16 |
+
<a href="<?php echo $url; ?>?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=<?php echo $name; ?>" target="_blank">
|
17 |
+
<div class="pro-img">
|
18 |
+
<img src="<?php echo ALM_ADMIN_URL; ?><?php echo $img; ?>" alt="">
|
19 |
+
</div>
|
20 |
+
<div class="pro-details">
|
21 |
+
<h2 class="addon-title"><?php echo $name; ?></h2>
|
22 |
+
<p class="addon-intro"><?php echo $intro; ?></p>
|
23 |
+
<p class="pro-desc"><?php echo $desc; ?></p>
|
24 |
+
<?php
|
25 |
+
echo '<span class="cnkt-button">' . __( 'Upgrade Now', 'ajax-load-more' ) . '</span>';
|
26 |
+
?>
|
27 |
+
</div>
|
28 |
+
</a>
|
|
|
|
|
|
|
|
|
|
|
29 |
</div>
|
30 |
+
<?php
|
31 |
}
|
32 |
}
|
33 |
+
?>
|
admin/shortcode-builder/js/shortcode-builder.js
CHANGED
@@ -754,19 +754,19 @@ jQuery(document).ready(function ($) {
|
|
754 |
|
755 |
// IN
|
756 |
var cat = $('.categories #category-select').val();
|
757 |
-
if (cat !== '' && cat !== undefined && cat !== null) {
|
758 |
output += ' category="' + cat + '"';
|
759 |
}
|
760 |
|
761 |
// AND
|
762 |
var cat__and = $('.categories #category--and-select').val();
|
763 |
-
if (cat__and !== '' && cat__and !== undefined && cat__and !== null) {
|
764 |
output += ' category__and="' + cat__and + '"';
|
765 |
}
|
766 |
|
767 |
// NOT_IN
|
768 |
var cat_not_in = $('.categories #category-exclude-select').val();
|
769 |
-
if (cat_not_in !== '' && cat_not_in !== undefined && cat_not_in !== null) output += ' category__not_in="' + cat_not_in + '"';
|
770 |
|
771 |
// ---------------------------
|
772 |
// - Tags
|
@@ -795,19 +795,19 @@ jQuery(document).ready(function ($) {
|
|
795 |
|
796 |
// IN
|
797 |
var tag = $('.tags #tag-select').val();
|
798 |
-
if (tag !== '' && tag !== undefined && tag !== null) {
|
799 |
output += ' tag="' + tag + '"';
|
800 |
}
|
801 |
|
802 |
// AND
|
803 |
var tag__and = $('.tags #tag--and-select').val();
|
804 |
-
if (tag__and !== '' && tag__and !== undefined && tag__and !== null) {
|
805 |
output += ' tag__and="' + tag__and + '"';
|
806 |
}
|
807 |
|
808 |
// NOT_IN
|
809 |
var tag_not_in = $('.tags #tag-exclude-select').val();
|
810 |
-
if (tag_not_in !== '' && tag_not_in !== undefined && tag_not_in !== null) output += ' tag__not_in="' + tag_not_in + '"';
|
811 |
|
812 |
// ---------------------------
|
813 |
// - Taxonomy Query
|
@@ -1013,7 +1013,7 @@ jQuery(document).ready(function ($) {
|
|
1013 |
// ---------------------------
|
1014 |
|
1015 |
var author = $('.authors #author-select').val();
|
1016 |
-
if (author !== '' && author !== undefined && author !== null) output += ' author="' + author + '"';
|
1017 |
|
1018 |
// ---------------------------
|
1019 |
// - Posts
|
754 |
|
755 |
// IN
|
756 |
var cat = $('.categories #category-select').val();
|
757 |
+
if (cat !== '' && cat.length > 0 && cat !== undefined && cat !== null) {
|
758 |
output += ' category="' + cat + '"';
|
759 |
}
|
760 |
|
761 |
// AND
|
762 |
var cat__and = $('.categories #category--and-select').val();
|
763 |
+
if (cat__and !== '' && cat__and.length > 0 && cat__and !== undefined && cat__and !== null) {
|
764 |
output += ' category__and="' + cat__and + '"';
|
765 |
}
|
766 |
|
767 |
// NOT_IN
|
768 |
var cat_not_in = $('.categories #category-exclude-select').val();
|
769 |
+
if (cat_not_in !== '' && cat_not_in.length > 0 && cat_not_in !== undefined && cat_not_in !== null) output += ' category__not_in="' + cat_not_in + '"';
|
770 |
|
771 |
// ---------------------------
|
772 |
// - Tags
|
795 |
|
796 |
// IN
|
797 |
var tag = $('.tags #tag-select').val();
|
798 |
+
if (tag !== '' && tag.length > 0 && tag !== undefined && tag !== null) {
|
799 |
output += ' tag="' + tag + '"';
|
800 |
}
|
801 |
|
802 |
// AND
|
803 |
var tag__and = $('.tags #tag--and-select').val();
|
804 |
+
if (tag__and !== '' && tag__and.length > 0 && tag__and !== undefined && tag__and !== null) {
|
805 |
output += ' tag__and="' + tag__and + '"';
|
806 |
}
|
807 |
|
808 |
// NOT_IN
|
809 |
var tag_not_in = $('.tags #tag-exclude-select').val();
|
810 |
+
if (tag_not_in !== '' && tag_not_in.length > 0 && tag_not_in !== undefined && tag_not_in !== null) output += ' tag__not_in="' + tag_not_in + '"';
|
811 |
|
812 |
// ---------------------------
|
813 |
// - Taxonomy Query
|
1013 |
// ---------------------------
|
1014 |
|
1015 |
var author = $('.authors #author-select').val();
|
1016 |
+
if (author !== '' && author.length > 0 && author !== undefined && author !== null) output += ' author="' + author + '"';
|
1017 |
|
1018 |
// ---------------------------
|
1019 |
// - Posts
|
admin/shortcode-builder/shortcode-builder.php
CHANGED
@@ -1,7 +1,10 @@
|
|
|
|
|
|
|
|
1 |
<span class="toggle-all" role="button" tabindex="0" data-id="shortcode-builder-state">
|
2 |
<span class="inner-wrap">
|
3 |
-
<em class="collapse"><?php _e('Collapse All', 'ajax-load-more'); ?></em>
|
4 |
-
<em class="expand"><?php _e('Expand All', 'ajax-load-more'); ?></em>
|
5 |
</span>
|
6 |
</span>
|
7 |
|
@@ -892,7 +895,7 @@
|
|
892 |
$cats = 'null';
|
893 |
}else{
|
894 |
$cats = get_categories();
|
895 |
-
if(count($cats) > $show_max){
|
896 |
$disable_dynamic_content = true;
|
897 |
}
|
898 |
}
|
@@ -985,7 +988,7 @@
|
|
985 |
$tags = 'null';
|
986 |
}else{
|
987 |
$tags = get_tags();
|
988 |
-
if(count($tags) >
|
989 |
$disable_dynamic_content = true;
|
990 |
}
|
991 |
}
|
@@ -1172,7 +1175,10 @@
|
|
1172 |
if($disable_dynamic_content){
|
1173 |
$authors = 'null';
|
1174 |
}else{
|
1175 |
-
|
|
|
|
|
|
|
1176 |
}
|
1177 |
if($authors){
|
1178 |
echo '<div class="row select authors" id="alm-authors">';
|
1 |
+
<?php
|
2 |
+
// @codingStandardsIgnoreStart
|
3 |
+
?>
|
4 |
<span class="toggle-all" role="button" tabindex="0" data-id="shortcode-builder-state">
|
5 |
<span class="inner-wrap">
|
6 |
+
<em class="collapse"><?php _e( 'Collapse All', 'ajax-load-more' ); ?></em>
|
7 |
+
<em class="expand"><?php _e( 'Expand All', 'ajax-load-more' ); ?></em>
|
8 |
</span>
|
9 |
</span>
|
10 |
|
895 |
$cats = 'null';
|
896 |
}else{
|
897 |
$cats = get_categories();
|
898 |
+
if($cats && count($cats) > $show_max){
|
899 |
$disable_dynamic_content = true;
|
900 |
}
|
901 |
}
|
988 |
$tags = 'null';
|
989 |
}else{
|
990 |
$tags = get_tags();
|
991 |
+
if($tags && count($tags) > $show_max){
|
992 |
$disable_dynamic_content = true;
|
993 |
}
|
994 |
}
|
1175 |
if($disable_dynamic_content){
|
1176 |
$authors = 'null';
|
1177 |
}else{
|
1178 |
+
$authors = get_users();
|
1179 |
+
if($authors && count($authors) > $show_max){
|
1180 |
+
$disable_dynamic_content = true;
|
1181 |
+
}
|
1182 |
}
|
1183 |
if($authors){
|
1184 |
echo '<div class="row select authors" id="alm-authors">';
|
admin/src/js/admin.js
DELETED
@@ -1,569 +0,0 @@
|
|
1 |
-
var _alm = _alm || {};
|
2 |
-
|
3 |
-
jQuery(document).ready(function($) {
|
4 |
-
"use strict";
|
5 |
-
|
6 |
-
_alm.options = {
|
7 |
-
speed: 200
|
8 |
-
};
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
/*
|
14 |
-
* Test REST API access
|
15 |
-
*
|
16 |
-
* @since 5.1.1
|
17 |
-
*/
|
18 |
-
if($('.restapi-access').length){
|
19 |
-
$.ajax({
|
20 |
-
type: 'GET',
|
21 |
-
url: alm_admin_localize.restapi.url + alm_admin_localize.restapi.namespace + '/test/',
|
22 |
-
dataType: 'json',
|
23 |
-
success: function(data) {
|
24 |
-
if(data.success){
|
25 |
-
console.log('Ajax Load More successfully connected to the WordPress REST API.');
|
26 |
-
}
|
27 |
-
},
|
28 |
-
error: function(xhr, status, error) {
|
29 |
-
console.log(status);
|
30 |
-
$('.restapi-access').fadeIn();
|
31 |
-
}
|
32 |
-
});
|
33 |
-
}
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
/*
|
38 |
-
* Save Repeater Templates with cmd + s and ctrl + s
|
39 |
-
* @since 5.1
|
40 |
-
*/
|
41 |
-
document.addEventListener("keydown", function(e) {
|
42 |
-
if ((window.navigator.platform.match("Mac") ? e.metaKey : e.ctrlKey) && e.keyCode == 83) {
|
43 |
-
|
44 |
-
|
45 |
-
if(e.target.nodeName === 'TEXTAREA' && $(e.target).closest('.repeater-wrap')){
|
46 |
-
console.log('Saving template...');
|
47 |
-
var btn = $(e.target).closest('.repeater-wrap').find('input.save-repeater');
|
48 |
-
if(btn){
|
49 |
-
btn.click();
|
50 |
-
}
|
51 |
-
}
|
52 |
-
|
53 |
-
e.preventDefault();
|
54 |
-
|
55 |
-
}
|
56 |
-
}, false);
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
/*
|
61 |
-
* Set focus in code mirror editor
|
62 |
-
* @since 5.1
|
63 |
-
*/
|
64 |
-
$('label.trigger-codemirror').on('click', function(){
|
65 |
-
var el = $(this);
|
66 |
-
var id = el.data('id');
|
67 |
-
var cm = window['editor_'+id];
|
68 |
-
if(cm){
|
69 |
-
cm.focus();
|
70 |
-
cm.setCursor(cm.lineCount(), 0);
|
71 |
-
}
|
72 |
-
});
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
/*
|
77 |
-
* _alm.saveSettings
|
78 |
-
* Setting panel save actions
|
79 |
-
*
|
80 |
-
* @since 3.2.0
|
81 |
-
*/
|
82 |
-
|
83 |
-
let almSettings = $('#alm_OptionsForm'),
|
84 |
-
savingSettings = false,
|
85 |
-
settingsForm = document.querySelector('#alm_OptionsForm'),
|
86 |
-
settingsTarget = document.querySelector('.alm-settings-feedback');
|
87 |
-
|
88 |
-
if(settingsForm){
|
89 |
-
document.body.appendChild(settingsTarget);
|
90 |
-
}
|
91 |
-
|
92 |
-
_alm.saveSettings = function(){
|
93 |
-
|
94 |
-
if(savingSettings)
|
95 |
-
return false;
|
96 |
-
|
97 |
-
savingSettings = true;
|
98 |
-
settingsForm.classList.add('--saving');
|
99 |
-
settingsTarget.classList.add('--saving');
|
100 |
-
settingsTarget.innerHTML = alm_admin_localize.settings_saving;
|
101 |
-
|
102 |
-
almSettings.ajaxSubmit({
|
103 |
-
|
104 |
-
// Success
|
105 |
-
success: function(){
|
106 |
-
|
107 |
-
// Delay for effect
|
108 |
-
setTimeout(function(){
|
109 |
-
settingsTarget.classList.remove('--saving');
|
110 |
-
settingsTarget.classList.add('--saved');
|
111 |
-
settingsTarget.innerHTML = alm_admin_localize.settings_saved;
|
112 |
-
settingsForm.classList.remove('--saving');
|
113 |
-
//console.log(alm_admin_localize.ajax_load_more +' - '+ alm_admin_localize.settings_saved);
|
114 |
-
savingSettings = false;
|
115 |
-
|
116 |
-
setTimeout(function(){
|
117 |
-
settingsTarget.classList.remove('--saved');
|
118 |
-
}, 2500);
|
119 |
-
|
120 |
-
}, 500);
|
121 |
-
|
122 |
-
},
|
123 |
-
|
124 |
-
// Error
|
125 |
-
error: function(){
|
126 |
-
|
127 |
-
// Delay for effect
|
128 |
-
setTimeout(function(){
|
129 |
-
settingsTarget.classList.remove('--saving');
|
130 |
-
settingsTarget.classList.add('--error');
|
131 |
-
settingsTarget.innerHTML = alm_admin_localize.settings_error;
|
132 |
-
settingsForm.classList.remove('--saving');
|
133 |
-
console.log(alm_admin_localize.ajax_load_more +' - '+ alm_admin_localize.settings_error);
|
134 |
-
savingSettings = false;
|
135 |
-
|
136 |
-
setTimeout(function(){
|
137 |
-
settingsTarget.classList.remove('--error');
|
138 |
-
}, 2500);
|
139 |
-
|
140 |
-
}, 500);
|
141 |
-
}
|
142 |
-
});
|
143 |
-
return false;
|
144 |
-
|
145 |
-
};
|
146 |
-
|
147 |
-
// On Change, save the settings
|
148 |
-
let settingsTimer;
|
149 |
-
$(document).on('change', '#alm_OptionsForm input, #alm_OptionsForm textarea, #alm_OptionsForm select', function(){
|
150 |
-
// Set a timer to avoid updating settings to frequently
|
151 |
-
if(settingsTimer) clearTimeout(settingsTimer);
|
152 |
-
settingsTimer = setTimeout(function(){
|
153 |
-
_alm.saveSettings();
|
154 |
-
}, 500);
|
155 |
-
|
156 |
-
});
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
/*
|
161 |
-
* Download Repeater Template
|
162 |
-
* Trigger the download of a repeater template from the admin
|
163 |
-
*
|
164 |
-
* @since 3.6
|
165 |
-
*/
|
166 |
-
|
167 |
-
$('.download-repeater').on('click', function(e){
|
168 |
-
let el = this;
|
169 |
-
el.closest('form').submit();
|
170 |
-
});
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
/*
|
175 |
-
* Tooltipster
|
176 |
-
* http://iamceege.github.io/tooltipster/
|
177 |
-
*
|
178 |
-
* @since 2.8.4
|
179 |
-
*/
|
180 |
-
$('body').on('mouseenter', '.tooltip:not(.tooltipstered)', function(){
|
181 |
-
$(this).tooltipster({
|
182 |
-
delay: 100,
|
183 |
-
speed: 150,
|
184 |
-
maxWidth: 325
|
185 |
-
}).tooltipster('show');
|
186 |
-
});
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
/*
|
192 |
-
* Button preview pane
|
193 |
-
* Found on Settings and Shortcode Builder
|
194 |
-
*
|
195 |
-
* @since 2.8.4
|
196 |
-
*/
|
197 |
-
|
198 |
-
$("select#alm_settings_btn_color").change(function() {
|
199 |
-
var color = jQuery(this).val();
|
200 |
-
// Remove other colors
|
201 |
-
|
202 |
-
$(".alm-btn-wrap .ajax-load-more-wrap").attr('class', 'ajax-load-more-wrap');
|
203 |
-
$('.alm-btn-wrap .ajax-load-more-wrap').addClass(color);
|
204 |
-
$('.alm-btn-wrap .ajax-load-more-wrap #test-alm-button').removeClass('loading');
|
205 |
-
|
206 |
-
// Add loading class if Infinite loading style
|
207 |
-
if (color.indexOf("infinite") >= 0){
|
208 |
-
$('.alm-btn-wrap .ajax-load-more-wrap #test-alm-button').addClass('loading');
|
209 |
-
}
|
210 |
-
|
211 |
-
});
|
212 |
-
|
213 |
-
$("select#alm_settings_btn_color").click(function(e){
|
214 |
-
e.preventDefault();
|
215 |
-
});
|
216 |
-
|
217 |
-
|
218 |
-
$('.alm-template-listing li a').click(function(e){
|
219 |
-
e.preventDefault();
|
220 |
-
var el = $(this),
|
221 |
-
val = el.data('path');
|
222 |
-
el.parent().parent().next('.template-selection').val(val);
|
223 |
-
});
|
224 |
-
|
225 |
-
|
226 |
-
$('.alm-template-section-nav li a').click(function(e){
|
227 |
-
e.preventDefault();
|
228 |
-
var el = $(this),
|
229 |
-
index = el.parent().index(),
|
230 |
-
parent = el.parent().parent().parent('.repeater-wrap');
|
231 |
-
|
232 |
-
if(!el.hasClass('active')){
|
233 |
-
el.parent().addClass('active').siblings().removeClass('active');
|
234 |
-
$('.alm-template-toggle', parent).hide();
|
235 |
-
$('.alm-template-toggle', parent).eq(index).show();
|
236 |
-
}
|
237 |
-
});
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
/*
|
242 |
-
* _alm.copyToClipboard
|
243 |
-
* Copy shortcode to clipboard
|
244 |
-
*
|
245 |
-
* @since 2.0.0
|
246 |
-
*/
|
247 |
-
|
248 |
-
_alm.copyToClipboard = function(text) {
|
249 |
-
window.prompt ("Copy link to your clipboard: Press Ctrl + C then hit Enter to copy.", text);
|
250 |
-
};
|
251 |
-
|
252 |
-
// Copy link on shortcode builder
|
253 |
-
$('.copy-to-clipboard').on('click', function(){
|
254 |
-
var c = $('#shortcode_output').html();
|
255 |
-
_alm.copyToClipboard(c);
|
256 |
-
});
|
257 |
-
|
258 |
-
// Copy link on repeater templates
|
259 |
-
$('.alm-dropdown .copy a').click(function(){
|
260 |
-
var container = $(this).closest('.repeater-wrap'), // find closet wrap
|
261 |
-
el = container.data('name'); // get template name
|
262 |
-
|
263 |
-
if(el === 'default') el = 'template-default';
|
264 |
-
var c = $('#'+el).val(); // Get textarea val()
|
265 |
-
_alm.copyToClipboard(c);
|
266 |
-
});
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
/*
|
271 |
-
* Expand/Collapse shortcode headings
|
272 |
-
*
|
273 |
-
* @since 2.0.0
|
274 |
-
*/
|
275 |
-
|
276 |
-
$(document).on('click', 'h2.shortcode-title', function(){
|
277 |
-
var el = $(this);
|
278 |
-
var parent = el.closest('.shortcode-parameter-wrap');
|
279 |
-
if(el.hasClass('open')){
|
280 |
-
el.next('.section-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad', function(){
|
281 |
-
el.removeClass('open');
|
282 |
-
parent.removeClass('closed');
|
283 |
-
});
|
284 |
-
}else{
|
285 |
-
el.next('.section-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad', function(){
|
286 |
-
el.addClass('open');
|
287 |
-
parent.addClass('closed');
|
288 |
-
});
|
289 |
-
}
|
290 |
-
});
|
291 |
-
|
292 |
-
$(document).on('click', 'h3.heading', function(){
|
293 |
-
var el = $(this);
|
294 |
-
if($(el).hasClass('open')){
|
295 |
-
$(el).next('.expand-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad', function(){
|
296 |
-
$(el).removeClass('open');
|
297 |
-
});
|
298 |
-
}else{
|
299 |
-
$(el).next('.expand-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad', function(){
|
300 |
-
$(el).addClass('open');
|
301 |
-
});
|
302 |
-
}
|
303 |
-
});
|
304 |
-
|
305 |
-
$(document).on('click', '.toggle-all', function(){
|
306 |
-
var el = $(this),
|
307 |
-
type = el.data('id');
|
308 |
-
if(el.hasClass('closed')){
|
309 |
-
el.removeClass('closed');
|
310 |
-
|
311 |
-
$('h2.shortcode-title').closest('.shortcode-parameter-wrap').removeClass('closed');
|
312 |
-
$('h3.heading, h2.shortcode-title').removeClass('open');
|
313 |
-
$('.section-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad');
|
314 |
-
$('.expand-wrap').slideDown(_alm.options.speed, 'alm_easeInOutQuad');
|
315 |
-
|
316 |
-
}else{
|
317 |
-
el.addClass('closed');
|
318 |
-
|
319 |
-
$('h2.shortcode-title').closest('.shortcode-parameter-wrap').addClass('closed');
|
320 |
-
$('h3.heading, h2.shortcode-title').addClass('open');
|
321 |
-
$('.section-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad');
|
322 |
-
$('.expand-wrap').slideUp(_alm.options.speed, 'alm_easeInOutQuad');
|
323 |
-
}
|
324 |
-
});
|
325 |
-
|
326 |
-
|
327 |
-
// Trigger click events on enter/return
|
328 |
-
$('h3.heading, h2.shortcode-title').keypress(function (e) {
|
329 |
-
var key = e.which;
|
330 |
-
if(key == 13){ // the enter key code
|
331 |
-
$(this).click();
|
332 |
-
return false;
|
333 |
-
}
|
334 |
-
});
|
335 |
-
|
336 |
-
|
337 |
-
/*
|
338 |
-
* Activate License
|
339 |
-
*
|
340 |
-
* @since 2.8.3
|
341 |
-
*/
|
342 |
-
|
343 |
-
var almActivating = false;
|
344 |
-
$(document).on('click', '.license-btn', function(e){
|
345 |
-
e.preventDefault();
|
346 |
-
|
347 |
-
if(!almActivating){
|
348 |
-
|
349 |
-
$('.license-btn-wrap .msg').remove();
|
350 |
-
almActivating = true;
|
351 |
-
|
352 |
-
var el = $(this),
|
353 |
-
wrap = el.closest('.license-btn-wrap'),
|
354 |
-
parent = el.closest('.license'),
|
355 |
-
type = el.data('type'),
|
356 |
-
item = wrap.data('name'),
|
357 |
-
url = wrap.data('url'),
|
358 |
-
upgrade = wrap.data('upgrade-url'),
|
359 |
-
status = wrap.data('option-status'),
|
360 |
-
key = wrap.data('option-key'),
|
361 |
-
license = parent.find('input[type=text]').val();
|
362 |
-
|
363 |
-
$('.loading', parent).fadeIn(300);
|
364 |
-
|
365 |
-
// Get value from Ajax
|
366 |
-
$.ajax({
|
367 |
-
type: 'GET',
|
368 |
-
url: alm_admin_localize.ajax_admin_url,
|
369 |
-
dataType: 'json',
|
370 |
-
|
371 |
-
data: {
|
372 |
-
action: 'alm_license_activation',
|
373 |
-
nonce: alm_admin_localize.alm_admin_nonce,
|
374 |
-
type: type,
|
375 |
-
item: item,
|
376 |
-
status: status,
|
377 |
-
url: url,
|
378 |
-
upgrade: upgrade,
|
379 |
-
key: key,
|
380 |
-
license: license,
|
381 |
-
},
|
382 |
-
|
383 |
-
success: function(data) {
|
384 |
-
|
385 |
-
if(data.msg){
|
386 |
-
$('.license-btn-wrap', parent).append('<div class="msg">'+data.msg+'</div>');
|
387 |
-
}
|
388 |
-
|
389 |
-
if(data.license === 'valid'){
|
390 |
-
$('.license-key-field .status', parent).addClass('active').removeClass('inactive').text(alm_admin_localize.active);
|
391 |
-
$('.license-title .status', parent).addClass('valid').removeClass('invalid');
|
392 |
-
$('.activate.license-btn', parent).addClass('hide');
|
393 |
-
$('.check-licence.license-btn', parent).addClass('hide');
|
394 |
-
$('.deactivate.license-btn', parent).removeClass('hide');
|
395 |
-
$('.renew-btn', parent).addClass('hide');
|
396 |
-
$('.no-license', parent).slideUp(200);
|
397 |
-
|
398 |
-
}else{
|
399 |
-
$('.license-key-field .status', parent).removeClass('active').addClass('inactive').text(alm_admin_localize.inactive);
|
400 |
-
$('.license-title .status', parent).removeClass('valid').addClass('invalid');
|
401 |
-
$('.activate.license-btn', parent).removeClass('hide');
|
402 |
-
$('.check-licence.license-btn', parent).addClass('hide');
|
403 |
-
$('.deactivate.license-btn', parent).addClass('hide');
|
404 |
-
$('.no-license', parent).slideDown(200);
|
405 |
-
}
|
406 |
-
|
407 |
-
$('.loading', parent).delay(250).fadeOut(300);
|
408 |
-
almActivating = false;
|
409 |
-
|
410 |
-
},
|
411 |
-
|
412 |
-
error: function(xhr, status, error) {
|
413 |
-
console.log(status);
|
414 |
-
$('.loading', parent).delay(250).fadeOut(300);
|
415 |
-
almActivating = false;
|
416 |
-
}
|
417 |
-
});
|
418 |
-
}
|
419 |
-
});
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
/*
|
424 |
-
* Get layout value Ajax
|
425 |
-
* @since 2.8.7
|
426 |
-
*/
|
427 |
-
$(document).on('click', '.alm-layout-selection li a.layout', function(e){
|
428 |
-
e.preventDefault();
|
429 |
-
var el = $(this),
|
430 |
-
type = el.data('type'),
|
431 |
-
custom = (el.hasClass('custom')) ? 'true' : 'false',
|
432 |
-
textarea = el.closest('.repeater-wrap').find('.CodeMirror'),
|
433 |
-
layout_btn_text = el.html(),
|
434 |
-
name = el.closest('.repeater-wrap').data('name');
|
435 |
-
|
436 |
-
if(!el.hasClass('updating')){
|
437 |
-
|
438 |
-
el.addClass('updating').text(alm_admin_localize.applying_layout+"...");
|
439 |
-
textarea.addClass('loading');
|
440 |
-
|
441 |
-
// Get Codemirror Editor ID
|
442 |
-
var eid = '';
|
443 |
-
if(name === 'default'){
|
444 |
-
// Default Template
|
445 |
-
eid = window.editor_default;
|
446 |
-
}else{
|
447 |
-
// Repeater Templates
|
448 |
-
eid = window['editor_'+name];
|
449 |
-
}
|
450 |
-
|
451 |
-
// Get value from Ajax
|
452 |
-
$.ajax({
|
453 |
-
type: 'GET',
|
454 |
-
url: alm_admin_localize.ajax_admin_url,
|
455 |
-
data: {
|
456 |
-
action : 'alm_get_layout',
|
457 |
-
type : type,
|
458 |
-
custom : custom,
|
459 |
-
nonce : alm_admin_localize.alm_admin_nonce,
|
460 |
-
},
|
461 |
-
dataType : "JSON",
|
462 |
-
success: function(data) {
|
463 |
-
|
464 |
-
eid.setValue(data.value);
|
465 |
-
|
466 |
-
// Clear button styles
|
467 |
-
setTimeout(function() {
|
468 |
-
el.text(alm_admin_localize.template_updated).blur();
|
469 |
-
setTimeout(function() {
|
470 |
-
el.removeClass('updating').html(layout_btn_text).blur(); // CLose drop menu
|
471 |
-
el.closest('.alm-drop-btn').trigger('click');
|
472 |
-
textarea.removeClass('loading');
|
473 |
-
}, 400);
|
474 |
-
}, 400);
|
475 |
-
|
476 |
-
|
477 |
-
},
|
478 |
-
error: function(xhr, status, error) {
|
479 |
-
console.log(status);
|
480 |
-
textarea.removeClass('loading');
|
481 |
-
}
|
482 |
-
});
|
483 |
-
}
|
484 |
-
|
485 |
-
});
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
/*
|
490 |
-
* Dismiss Sharing (Transient)
|
491 |
-
* @since 2.8.7
|
492 |
-
*/
|
493 |
-
$(document).on('click', '.alm-notification--dismiss', function(e){
|
494 |
-
e.preventDefault();
|
495 |
-
var el = $(this),
|
496 |
-
container = el.parent('.cta');
|
497 |
-
|
498 |
-
// Get value from Ajax
|
499 |
-
$.ajax({
|
500 |
-
type: 'POST',
|
501 |
-
url: alm_admin_localize.ajax_admin_url,
|
502 |
-
data: {
|
503 |
-
action: 'alm_dismiss_sharing',
|
504 |
-
nonce: alm_admin_localize.alm_admin_nonce,
|
505 |
-
},
|
506 |
-
success: function(data) {
|
507 |
-
container.fadeOut();
|
508 |
-
},
|
509 |
-
error: function(xhr, status, error) {
|
510 |
-
console.log(status);
|
511 |
-
}
|
512 |
-
});
|
513 |
-
|
514 |
-
});
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
/*
|
519 |
-
* Set Transient (Transient)
|
520 |
-
* @since 4.0
|
521 |
-
*/
|
522 |
-
$(document).on('click', '.alm-transient button.notice-dismiss', function(e){
|
523 |
-
e.preventDefault();
|
524 |
-
var el = $(this),
|
525 |
-
container = el.parent('.alm-transient'),
|
526 |
-
transient_name = container.data('transient'),
|
527 |
-
duration = container.data('duration');
|
528 |
-
|
529 |
-
// Get value from Ajax
|
530 |
-
$.ajax({
|
531 |
-
type: 'POST',
|
532 |
-
url: alm_admin_localize.ajax_admin_url,
|
533 |
-
data: {
|
534 |
-
action: 'alm_set_transient',
|
535 |
-
nonce: alm_admin_localize.alm_admin_nonce,
|
536 |
-
transient_name: transient_name,
|
537 |
-
duration: duration
|
538 |
-
},
|
539 |
-
success: function(data) {
|
540 |
-
container.fadeOut();
|
541 |
-
},
|
542 |
-
error: function(xhr, status, error) {
|
543 |
-
console.log(status);
|
544 |
-
}
|
545 |
-
});
|
546 |
-
|
547 |
-
});
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
/*
|
552 |
-
* Scroll to setting section
|
553 |
-
* @since 2.7.3
|
554 |
-
*/
|
555 |
-
|
556 |
-
$(document).on('change', '#alm-settings-nav', function(e){
|
557 |
-
e.preventDefault();
|
558 |
-
var el = $(this),
|
559 |
-
index = $('option:selected', el).index();
|
560 |
-
if(index !== '#'){
|
561 |
-
index = index - 1;
|
562 |
-
$('html, body').animate({
|
563 |
-
scrollTop: $("#alm_OptionsForm h2").eq(index).offset().top - 40
|
564 |
-
}, 500);
|
565 |
-
}
|
566 |
-
});
|
567 |
-
|
568 |
-
|
569 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/src/js/libs/jquery.drops.js
DELETED
@@ -1,52 +0,0 @@
|
|
1 |
-
var drops = drops || {};
|
2 |
-
|
3 |
-
jQuery(document).ready(function($) {
|
4 |
-
"use strict";
|
5 |
-
|
6 |
-
drops.dropdown = function(e) {
|
7 |
-
var el = e.parent();
|
8 |
-
var dropdown = $('.alm-dropdown', el);
|
9 |
-
var text = $('input[type="text"]', el);
|
10 |
-
|
11 |
-
if($(el).hasClass('active')){//If is currently active, hide it
|
12 |
-
el.removeClass('active');
|
13 |
-
$('.alm-dropdown', el).removeClass('active');
|
14 |
-
return false;
|
15 |
-
}
|
16 |
-
else if($('.alm-dropdown').hasClass('active')){
|
17 |
-
$('.alm-dropdown').each(function(i){
|
18 |
-
$(this).removeClass('active');
|
19 |
-
$(this).parent().removeClass('active');
|
20 |
-
});
|
21 |
-
}
|
22 |
-
|
23 |
-
$('.alm-dropdown').removeClass('active');//remove active states from currently open dropdowns
|
24 |
-
el.addClass('active');
|
25 |
-
$('.alm-dropdown', el).addClass('active');
|
26 |
-
text.focus(); //Focus on input boxes
|
27 |
-
|
28 |
-
$(window).unbind('click').bind('click', drops.closeDropDown); // Bind click event to site container
|
29 |
-
|
30 |
-
dropdown.unbind('click').bind('click', function(event){
|
31 |
-
//event.stopPropagation();
|
32 |
-
});
|
33 |
-
//http://stackoverflow.com/questions/10439779/closing-modal-popup-by-clicking-away-from-it
|
34 |
-
};
|
35 |
-
drops.closeDropDown = function() {
|
36 |
-
$('.alm-dropdown').each(function(i) {
|
37 |
-
$(this).removeClass('active');
|
38 |
-
$(this).parent().removeClass('active');
|
39 |
-
});
|
40 |
-
};
|
41 |
-
|
42 |
-
//Dropdown links
|
43 |
-
$(document).on('click', '.alm-drop-btn a.target', function(){
|
44 |
-
var e = $(this);
|
45 |
-
drops.dropdown(e);
|
46 |
-
return false;
|
47 |
-
});
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/src/js/libs/jquery.tooltipster.min.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
/* Tooltipster v3.3.0 */;(function(e,t,n){function s(t,n){this.bodyOverflowX;this.callbacks={hide:[],show:[]};this.checkInterval=null;this.Content;this.$el=e(t);this.$elProxy;this.elProxyPosition;this.enabled=true;this.options=e.extend({},i,n);this.mouseIsOverProxy=false;this.namespace="tooltipster-"+Math.round(Math.random()*1e5);this.Status="hidden";this.timerHide=null;this.timerShow=null;this.$tooltip;this.options.iconTheme=this.options.iconTheme.replace(".","");this.options.theme=this.options.theme.replace(".","");this._init()}function o(t,n){var r=true;e.each(t,function(e,i){if(typeof n[e]==="undefined"||t[e]!==n[e]){r=false;return false}});return r}function f(){return!a&&u}function l(){var e=n.body||n.documentElement,t=e.style,r="transition";if(typeof t[r]=="string"){return true}v=["Moz","Webkit","Khtml","O","ms"],r=r.charAt(0).toUpperCase()+r.substr(1);for(var i=0;i<v.length;i++){if(typeof t[v[i]+r]=="string"){return true}}return false}var r="tooltipster",i={animation:"fade",arrow:true,arrowColor:"",autoClose:true,content:null,contentAsHTML:false,contentCloning:true,debug:true,delay:200,minWidth:0,maxWidth:null,functionInit:function(e,t){},functionBefore:function(e,t){t()},functionReady:function(e,t){},functionAfter:function(e){},hideOnClick:false,icon:"(?)",iconCloning:true,iconDesktop:false,iconTouch:false,iconTheme:"tooltipster-icon",interactive:false,interactiveTolerance:350,multiple:false,offsetX:0,offsetY:0,onlyOne:false,position:"top",positionTracker:false,positionTrackerCallback:function(e){if(this.option("trigger")=="hover"&&this.option("autoClose")){this.hide()}},restoration:"current",speed:350,timer:0,theme:"tooltipster-default",touchDevices:true,trigger:"hover",updateAnimation:true};s.prototype={_init:function(){var t=this;if(n.querySelector){var r=null;if(t.$el.data("tooltipster-initialTitle")===undefined){r=t.$el.attr("title");if(r===undefined)r=null;t.$el.data("tooltipster-initialTitle",r)}if(t.options.content!==null){t._content_set(t.options.content)}else{t._content_set(r)}var i=t.options.functionInit.call(t.$el,t.$el,t.Content);if(typeof i!=="undefined")t._content_set(i);t.$el.removeAttr("title").addClass("tooltipstered");if(!u&&t.options.iconDesktop||u&&t.options.iconTouch){if(typeof t.options.icon==="string"){t.$elProxy=e('<span class="'+t.options.iconTheme+'"></span>');t.$elProxy.text(t.options.icon)}else{if(t.options.iconCloning)t.$elProxy=t.options.icon.clone(true);else t.$elProxy=t.options.icon}t.$elProxy.insertAfter(t.$el)}else{t.$elProxy=t.$el}if(t.options.trigger=="hover"){t.$elProxy.on("mouseenter."+t.namespace,function(){if(!f()||t.options.touchDevices){t.mouseIsOverProxy=true;t._show()}}).on("mouseleave."+t.namespace,function(){if(!f()||t.options.touchDevices){t.mouseIsOverProxy=false}});if(u&&t.options.touchDevices){t.$elProxy.on("touchstart."+t.namespace,function(){t._showNow()})}}else if(t.options.trigger=="click"){t.$elProxy.on("click."+t.namespace,function(){if(!f()||t.options.touchDevices){t._show()}})}}},_show:function(){var e=this;if(e.Status!="shown"&&e.Status!="appearing"){if(e.options.delay){e.timerShow=setTimeout(function(){if(e.options.trigger=="click"||e.options.trigger=="hover"&&e.mouseIsOverProxy){e._showNow()}},e.options.delay)}else e._showNow()}},_showNow:function(n){var r=this;r.options.functionBefore.call(r.$el,r.$el,function(){if(r.enabled&&r.Content!==null){if(n)r.callbacks.show.push(n);r.callbacks.hide=[];clearTimeout(r.timerShow);r.timerShow=null;clearTimeout(r.timerHide);r.timerHide=null;if(r.options.onlyOne){e(".tooltipstered").not(r.$el).each(function(t,n){var r=e(n),i=r.data("tooltipster-ns");e.each(i,function(e,t){var n=r.data(t),i=n.status(),s=n.option("autoClose");if(i!=="hidden"&&i!=="disappearing"&&s){n.hide()}})})}var i=function(){r.Status="shown";e.each(r.callbacks.show,function(e,t){t.call(r.$el)});r.callbacks.show=[]};if(r.Status!=="hidden"){var s=0;if(r.Status==="disappearing"){r.Status="appearing";if(l()){r.$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-"+r.options.animation+"-show");if(r.options.speed>0)r.$tooltip.delay(r.options.speed);r.$tooltip.queue(i)}else{r.$tooltip.stop().fadeIn(i)}}else if(r.Status==="shown"){i()}}else{r.Status="appearing";var s=r.options.speed;r.bodyOverflowX=e("body").css("overflow-x");e("body").css("overflow-x","hidden");var o="tooltipster-"+r.options.animation,a="-webkit-transition-duration: "+r.options.speed+"ms; -webkit-animation-duration: "+r.options.speed+"ms; -moz-transition-duration: "+r.options.speed+"ms; -moz-animation-duration: "+r.options.speed+"ms; -o-transition-duration: "+r.options.speed+"ms; -o-animation-duration: "+r.options.speed+"ms; -ms-transition-duration: "+r.options.speed+"ms; -ms-animation-duration: "+r.options.speed+"ms; transition-duration: "+r.options.speed+"ms; animation-duration: "+r.options.speed+"ms;",f=r.options.minWidth?"min-width:"+Math.round(r.options.minWidth)+"px;":"",c=r.options.maxWidth?"max-width:"+Math.round(r.options.maxWidth)+"px;":"",h=r.options.interactive?"pointer-events: auto;":"";r.$tooltip=e('<div class="tooltipster-base '+r.options.theme+'" style="'+f+" "+c+" "+h+" "+a+'"><div class="tooltipster-content"></div></div>');if(l())r.$tooltip.addClass(o);r._content_insert();r.$tooltip.appendTo("body");r.reposition();r.options.functionReady.call(r.$el,r.$el,r.$tooltip);if(l()){r.$tooltip.addClass(o+"-show");if(r.options.speed>0)r.$tooltip.delay(r.options.speed);r.$tooltip.queue(i)}else{r.$tooltip.css("display","none").fadeIn(r.options.speed,i)}r._interval_set();e(t).on("scroll."+r.namespace+" resize."+r.namespace,function(){r.reposition()});if(r.options.autoClose){e("body").off("."+r.namespace);if(r.options.trigger=="hover"){if(u){setTimeout(function(){e("body").on("touchstart."+r.namespace,function(){r.hide()})},0)}if(r.options.interactive){if(u){r.$tooltip.on("touchstart."+r.namespace,function(e){e.stopPropagation()})}var p=null;r.$elProxy.add(r.$tooltip).on("mouseleave."+r.namespace+"-autoClose",function(){clearTimeout(p);p=setTimeout(function(){r.hide()},r.options.interactiveTolerance)}).on("mouseenter."+r.namespace+"-autoClose",function(){clearTimeout(p)})}else{r.$elProxy.on("mouseleave."+r.namespace+"-autoClose",function(){r.hide()})}if(r.options.hideOnClick){r.$elProxy.on("click."+r.namespace+"-autoClose",function(){r.hide()})}}else if(r.options.trigger=="click"){setTimeout(function(){e("body").on("click."+r.namespace+" touchstart."+r.namespace,function(){r.hide()})},0);if(r.options.interactive){r.$tooltip.on("click."+r.namespace+" touchstart."+r.namespace,function(e){e.stopPropagation()})}}}}if(r.options.timer>0){r.timerHide=setTimeout(function(){r.timerHide=null;r.hide()},r.options.timer+s)}}})},_interval_set:function(){var t=this;t.checkInterval=setInterval(function(){if(e("body").find(t.$el).length===0||e("body").find(t.$elProxy).length===0||t.Status=="hidden"||e("body").find(t.$tooltip).length===0){if(t.Status=="shown"||t.Status=="appearing")t.hide();t._interval_cancel()}else{if(t.options.positionTracker){var n=t._repositionInfo(t.$elProxy),r=false;if(o(n.dimension,t.elProxyPosition.dimension)){if(t.$elProxy.css("position")==="fixed"){if(o(n.position,t.elProxyPosition.position))r=true}else{if(o(n.offset,t.elProxyPosition.offset))r=true}}if(!r){t.reposition();t.options.positionTrackerCallback.call(t,t.$el)}}}},200)},_interval_cancel:function(){clearInterval(this.checkInterval);this.checkInterval=null},_content_set:function(e){if(typeof e==="object"&&e!==null&&this.options.contentCloning){e=e.clone(true)}this.Content=e},_content_insert:function(){var e=this,t=this.$tooltip.find(".tooltipster-content");if(typeof e.Content==="string"&&!e.options.contentAsHTML){t.text(e.Content)}else{t.empty().append(e.Content)}},_update:function(e){var t=this;t._content_set(e);if(t.Content!==null){if(t.Status!=="hidden"){t._content_insert();t.reposition();if(t.options.updateAnimation){if(l()){t.$tooltip.css({width:"","-webkit-transition":"all "+t.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-moz-transition":"all "+t.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-o-transition":"all "+t.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-ms-transition":"all "+t.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms",transition:"all "+t.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms"}).addClass("tooltipster-content-changing");setTimeout(function(){if(t.Status!="hidden"){t.$tooltip.removeClass("tooltipster-content-changing");setTimeout(function(){if(t.Status!=="hidden"){t.$tooltip.css({"-webkit-transition":t.options.speed+"ms","-moz-transition":t.options.speed+"ms","-o-transition":t.options.speed+"ms","-ms-transition":t.options.speed+"ms",transition:t.options.speed+"ms"})}},t.options.speed)}},t.options.speed)}else{t.$tooltip.fadeTo(t.options.speed,.5,function(){if(t.Status!="hidden"){t.$tooltip.fadeTo(t.options.speed,1)}})}}}}else{t.hide()}},_repositionInfo:function(e){return{dimension:{height:e.outerHeight(false),width:e.outerWidth(false)},offset:e.offset(),position:{left:parseInt(e.css("left")),top:parseInt(e.css("top"))}}},hide:function(n){var r=this;if(n)r.callbacks.hide.push(n);r.callbacks.show=[];clearTimeout(r.timerShow);r.timerShow=null;clearTimeout(r.timerHide);r.timerHide=null;var i=function(){e.each(r.callbacks.hide,function(e,t){t.call(r.$el)});r.callbacks.hide=[]};if(r.Status=="shown"||r.Status=="appearing"){r.Status="disappearing";var s=function(){r.Status="hidden";if(typeof r.Content=="object"&&r.Content!==null){r.Content.detach()}r.$tooltip.remove();r.$tooltip=null;e(t).off("."+r.namespace);e("body").off("."+r.namespace).css("overflow-x",r.bodyOverflowX);e("body").off("."+r.namespace);r.$elProxy.off("."+r.namespace+"-autoClose");r.options.functionAfter.call(r.$el,r.$el);i()};if(l()){r.$tooltip.clearQueue().removeClass("tooltipster-"+r.options.animation+"-show").addClass("tooltipster-dying");if(r.options.speed>0)r.$tooltip.delay(r.options.speed);r.$tooltip.queue(s)}else{r.$tooltip.stop().fadeOut(r.options.speed,s)}}else if(r.Status=="hidden"){i()}return r},show:function(e){this._showNow(e);return this},update:function(e){return this.content(e)},content:function(e){if(typeof e==="undefined"){return this.Content}else{this._update(e);return this}},reposition:function(){var n=this;if(e("body").find(n.$tooltip).length!==0){n.$tooltip.css("width","");n.elProxyPosition=n._repositionInfo(n.$elProxy);var r=null,i=e(t).width(),s=n.elProxyPosition,o=n.$tooltip.outerWidth(false),u=n.$tooltip.innerWidth()+1,a=n.$tooltip.outerHeight(false);if(n.$elProxy.is("area")){var f=n.$elProxy.attr("shape"),l=n.$elProxy.parent().attr("name"),c=e('img[usemap="#'+l+'"]'),h=c.offset().left,p=c.offset().top,d=n.$elProxy.attr("coords")!==undefined?n.$elProxy.attr("coords").split(","):undefined;if(f=="circle"){var v=parseInt(d[0]),m=parseInt(d[1]),g=parseInt(d[2]);s.dimension.height=g*2;s.dimension.width=g*2;s.offset.top=p+m-g;s.offset.left=h+v-g}else if(f=="rect"){var v=parseInt(d[0]),m=parseInt(d[1]),y=parseInt(d[2]),b=parseInt(d[3]);s.dimension.height=b-m;s.dimension.width=y-v;s.offset.top=p+m;s.offset.left=h+v}else if(f=="poly"){var w=[],E=[],S=0,x=0,T=0,N=0,C="even";for(var k=0;k<d.length;k++){var L=parseInt(d[k]);if(C=="even"){if(L>T){T=L;if(k===0){S=T}}if(L<S){S=L}C="odd"}else{if(L>N){N=L;if(k==1){x=N}}if(L<x){x=L}C="even"}}s.dimension.height=N-x;s.dimension.width=T-S;s.offset.top=p+x;s.offset.left=h+S}else{s.dimension.height=c.outerHeight(false);s.dimension.width=c.outerWidth(false);s.offset.top=p;s.offset.left=h}}var A=0,O=0,M=0,_=parseInt(n.options.offsetY),D=parseInt(n.options.offsetX),P=n.options.position;function H(){var n=e(t).scrollLeft();if(A-n<0){r=A-n;A=n}if(A+o-n>i){r=A-(i+n-o);A=i+n-o}}function B(n,r){if(s.offset.top-e(t).scrollTop()-a-_-12<0&&r.indexOf("top")>-1){P=n}if(s.offset.top+s.dimension.height+a+12+_>e(t).scrollTop()+e(t).height()&&r.indexOf("bottom")>-1){P=n;M=s.offset.top-a-_-12}}if(P=="top"){var j=s.offset.left+o-(s.offset.left+s.dimension.width);A=s.offset.left+D-j/2;M=s.offset.top-a-_-12;H();B("bottom","top")}if(P=="top-left"){A=s.offset.left+D;M=s.offset.top-a-_-12;H();B("bottom-left","top-left")}if(P=="top-right"){A=s.offset.left+s.dimension.width+D-o;M=s.offset.top-a-_-12;H();B("bottom-right","top-right")}if(P=="bottom"){var j=s.offset.left+o-(s.offset.left+s.dimension.width);A=s.offset.left-j/2+D;M=s.offset.top+s.dimension.height+_+12;H();B("top","bottom")}if(P=="bottom-left"){A=s.offset.left+D;M=s.offset.top+s.dimension.height+_+12;H();B("top-left","bottom-left")}if(P=="bottom-right"){A=s.offset.left+s.dimension.width+D-o;M=s.offset.top+s.dimension.height+_+12;H();B("top-right","bottom-right")}if(P=="left"){A=s.offset.left-D-o-12;O=s.offset.left+D+s.dimension.width+12;var F=s.offset.top+a-(s.offset.top+s.dimension.height);M=s.offset.top-F/2-_;if(A<0&&O+o>i){var I=parseFloat(n.$tooltip.css("border-width"))*2,q=o+A-I;n.$tooltip.css("width",q+"px");a=n.$tooltip.outerHeight(false);A=s.offset.left-D-q-12-I;F=s.offset.top+a-(s.offset.top+s.dimension.height);M=s.offset.top-F/2-_}else if(A<0){A=s.offset.left+D+s.dimension.width+12;r="left"}}if(P=="right"){A=s.offset.left+D+s.dimension.width+12;O=s.offset.left-D-o-12;var F=s.offset.top+a-(s.offset.top+s.dimension.height);M=s.offset.top-F/2-_;if(A+o>i&&O<0){var I=parseFloat(n.$tooltip.css("border-width"))*2,q=i-A-I;n.$tooltip.css("width",q+"px");a=n.$tooltip.outerHeight(false);F=s.offset.top+a-(s.offset.top+s.dimension.height);M=s.offset.top-F/2-_}else if(A+o>i){A=s.offset.left-D-o-12;r="right"}}if(n.options.arrow){var R="tooltipster-arrow-"+P;if(n.options.arrowColor.length<1){var U=n.$tooltip.css("background-color")}else{var U=n.options.arrowColor}if(!r){r=""}else if(r=="left"){R="tooltipster-arrow-right";r=""}else if(r=="right"){R="tooltipster-arrow-left";r=""}else{r="left:"+Math.round(r)+"px;"}if(P=="top"||P=="top-left"||P=="top-right"){var z=parseFloat(n.$tooltip.css("border-bottom-width")),W=n.$tooltip.css("border-bottom-color")}else if(P=="bottom"||P=="bottom-left"||P=="bottom-right"){var z=parseFloat(n.$tooltip.css("border-top-width")),W=n.$tooltip.css("border-top-color")}else if(P=="left"){var z=parseFloat(n.$tooltip.css("border-right-width")),W=n.$tooltip.css("border-right-color")}else if(P=="right"){var z=parseFloat(n.$tooltip.css("border-left-width")),W=n.$tooltip.css("border-left-color")}else{var z=parseFloat(n.$tooltip.css("border-bottom-width")),W=n.$tooltip.css("border-bottom-color")}if(z>1){z++}var X="";if(z!==0){var V="",J="border-color: "+W+";";if(R.indexOf("bottom")!==-1){V="margin-top: -"+Math.round(z)+"px;"}else if(R.indexOf("top")!==-1){V="margin-bottom: -"+Math.round(z)+"px;"}else if(R.indexOf("left")!==-1){V="margin-right: -"+Math.round(z)+"px;"}else if(R.indexOf("right")!==-1){V="margin-left: -"+Math.round(z)+"px;"}X='<span class="tooltipster-arrow-border" style="'+V+" "+J+';"></span>'}n.$tooltip.find(".tooltipster-arrow").remove();var K='<div class="'+R+' tooltipster-arrow" style="'+r+'">'+X+'<span style="border-color:'+U+';"></span></div>';n.$tooltip.append(K)}n.$tooltip.css({top:Math.round(M)+"px",left:Math.round(A)+"px"})}return n},enable:function(){this.enabled=true;return this},disable:function(){this.hide();this.enabled=false;return this},destroy:function(){var t=this;t.hide();if(t.$el[0]!==t.$elProxy[0]){t.$elProxy.remove()}t.$el.removeData(t.namespace).off("."+t.namespace);var n=t.$el.data("tooltipster-ns");if(n.length===1){var r=null;if(t.options.restoration==="previous"){r=t.$el.data("tooltipster-initialTitle")}else if(t.options.restoration==="current"){r=typeof t.Content==="string"?t.Content:e("<div></div>").append(t.Content).html()}if(r){t.$el.attr("title",r)}t.$el.removeClass("tooltipstered").removeData("tooltipster-ns").removeData("tooltipster-initialTitle")}else{n=e.grep(n,function(e,n){return e!==t.namespace});t.$el.data("tooltipster-ns",n)}return t},elementIcon:function(){return this.$el[0]!==this.$elProxy[0]?this.$elProxy[0]:undefined},elementTooltip:function(){return this.$tooltip?this.$tooltip[0]:undefined},option:function(e,t){if(typeof t=="undefined")return this.options[e];else{this.options[e]=t;return this}},status:function(){return this.Status}};e.fn[r]=function(){var t=arguments;if(this.length===0){if(typeof t[0]==="string"){var n=true;switch(t[0]){case"setDefaults":e.extend(i,t[1]);break;default:n=false;break}if(n)return true;else return this}else{return this}}else{if(typeof t[0]==="string"){var r="#*$~&";this.each(function(){var n=e(this).data("tooltipster-ns"),i=n?e(this).data(n[0]):null;if(i){if(typeof i[t[0]]==="function"){var s=i[t[0]](t[1],t[2])}else{throw new Error('Unknown method .tooltipster("'+t[0]+'")')}if(s!==i){r=s;return false}}else{throw new Error("You called Tooltipster's \""+t[0]+'" method on an uninitialized element')}});return r!=="#*$~&"?r:this}else{var o=[],u=t[0]&&typeof t[0].multiple!=="undefined",a=u&&t[0].multiple||!u&&i.multiple,f=t[0]&&typeof t[0].debug!=="undefined",l=f&&t[0].debug||!f&&i.debug;this.each(function(){var n=false,r=e(this).data("tooltipster-ns"),i=null;if(!r){n=true}else if(a){n=true}else if(l){console.log('Tooltipster: one or more tooltips are already attached to this element: ignoring. Use the "multiple" option to attach more tooltips.')}if(n){i=new s(this,t[0]);if(!r)r=[];r.push(i.namespace);e(this).data("tooltipster-ns",r);e(this).data(i.namespace,i)}o.push(i)});if(a)return o;else return this}}};var u=!!("ontouchstart"in t);var a=false;e("body").one("mousemove",function(){a=true})})(jQuery,window,document);
|
|
admin/src/js/libs/select2.min.js
DELETED
@@ -1,5 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
SELECT 2 FORM REPLACEMNT
|
3 |
-
*/
|
4 |
-
(function(a){a.fn.each2===void 0&&a.fn.extend({each2:function(b){for(var c=a([0]),d=-1,e=this.length;e>++d&&(c.context=c[0]=this[d])&&b.call(c[0],d,c)!==!1;);return this}})})(jQuery),function(a,b){"use strict";function k(a,b){for(var c=0,d=b.length;d>c;c+=1)if(l(a,b[c]))return c;return-1}function l(a,c){return a===c?!0:a===b||c===b?!1:null===a||null===c?!1:a.constructor===String?a+""==c+"":c.constructor===String?c+""==a+"":!1}function m(b,c){var d,e,f;if(null===b||1>b.length)return[];for(d=b.split(c),e=0,f=d.length;f>e;e+=1)d[e]=a.trim(d[e]);return d}function n(a){return a.outerWidth(!1)-a.width()}function o(c){var d="keyup-change-value";c.bind("keydown",function(){a.data(c,d)===b&&a.data(c,d,c.val())}),c.bind("keyup",function(){var e=a.data(c,d);e!==b&&c.val()!==e&&(a.removeData(c,d),c.trigger("keyup-change"))})}function p(c){c.bind("mousemove",function(c){var d=i;(d===b||d.x!==c.pageX||d.y!==c.pageY)&&a(c.target).trigger("mousemove-filtered",c)})}function q(a,c,d){d=d||b;var e;return function(){var b=arguments;window.clearTimeout(e),e=window.setTimeout(function(){c.apply(d,b)},a)}}function r(a){var c,b=!1;return function(){return b===!1&&(c=a(),b=!0),c}}function s(a,b){var c=q(a,function(a){b.trigger("scroll-debounced",a)});b.bind("scroll",function(a){k(a.target,b.get())>=0&&c(a)})}function t(a){a[0]!==document.activeElement&&window.setTimeout(function(){var d,b=a[0],c=a.val().length;a.focus(),a.is(":visible")&&b===document.activeElement&&(b.setSelectionRange?b.setSelectionRange(c,c):b.createTextRange&&(d=b.createTextRange(),d.collapse(!1),d.select()))},0)}function u(a){a.preventDefault(),a.stopPropagation()}function v(a){a.preventDefault(),a.stopImmediatePropagation()}function w(b){if(!h){var c=b[0].currentStyle||window.getComputedStyle(b[0],null);h=a(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:c.fontSize,fontFamily:c.fontFamily,fontStyle:c.fontStyle,fontWeight:c.fontWeight,letterSpacing:c.letterSpacing,textTransform:c.textTransform,whiteSpace:"nowrap"}),h.attr("class","select2-sizer"),a("body").append(h)}return h.text(b.val()),h.width()}function x(b,c,d){var e,g,f=[];e=b.attr("class"),e&&(e=""+e,a(e.split(" ")).each2(function(){0===this.indexOf("select2-")&&f.push(this)})),e=c.attr("class"),e&&(e=""+e,a(e.split(" ")).each2(function(){0!==this.indexOf("select2-")&&(g=d(this),g&&f.push(this))})),b.attr("class",f.join(" "))}function y(a,c,d,e){var f=a.toUpperCase().indexOf(c.toUpperCase()),g=c.length;return 0>f?(d.push(e(a)),b):(d.push(e(a.substring(0,f))),d.push("<span class='select2-match'>"),d.push(e(a.substring(f,f+g))),d.push("</span>"),d.push(e(a.substring(f+g,a.length))),b)}function z(b){var c,d=0,e=null,f=b.quietMillis||100,g=b.url,h=this;return function(i){window.clearTimeout(c),c=window.setTimeout(function(){d+=1;var c=d,f=b.data,j=g,k=b.transport||a.ajax,l=b.type||"GET",m={};f=f?f.call(h,i.term,i.page,i.context):null,j="function"==typeof j?j.call(h,i.term,i.page,i.context):j,null!==e&&e.abort(),b.params&&(a.isFunction(b.params)?a.extend(m,b.params.call(h)):a.extend(m,b.params)),a.extend(m,{url:j,dataType:b.dataType,data:f,type:l,cache:!1,success:function(a){if(!(d>c)){var e=b.results(a,i.page);i.callback(e)}}}),e=k.call(h,m)},f)}}function A(c){var e,f,d=c,g=function(a){return""+a.text};a.isArray(d)&&(f=d,d={results:f}),a.isFunction(d)===!1&&(f=d,d=function(){return f});var h=d();return h.text&&(g=h.text,a.isFunction(g)||(e=d.text,g=function(a){return a[e]})),function(c){var h,e=c.term,f={results:[]};return""===e?(c.callback(d()),b):(h=function(b,d){var f,i;if(b=b[0],b.children){f={};for(i in b)b.hasOwnProperty(i)&&(f[i]=b[i]);f.children=[],a(b.children).each2(function(a,b){h(b,f.children)}),(f.children.length||c.matcher(e,g(f),b))&&d.push(f)}else c.matcher(e,g(b),b)&&d.push(b)},a(d().results).each2(function(a,b){h(b,f.results)}),c.callback(f),b)}}function B(c){var d=a.isFunction(c);return function(e){var f=e.term,g={results:[]};a(d?c():c).each(function(){var a=this.text!==b,c=a?this.text:this;(""===f||e.matcher(f,c))&&g.results.push(a?this:{id:this,text:this})}),e.callback(g)}}function C(b){if(a.isFunction(b))return!0;if(!b)return!1;throw Error("formatterName must be a function or a falsy value")}function D(b){return a.isFunction(b)?b():b}function E(b){var c=0;return a.each(b,function(a,b){b.children?c+=E(b.children):c++}),c}function F(a,c,d,e){var h,i,j,k,m,f=a,g=!1;if(!e.createSearchChoice||!e.tokenSeparators||1>e.tokenSeparators.length)return b;for(;;){for(i=-1,j=0,k=e.tokenSeparators.length;k>j&&(m=e.tokenSeparators[j],i=a.indexOf(m),!(i>=0));j++);if(0>i)break;if(h=a.substring(0,i),a=a.substring(i+m.length),h.length>0&&(h=e.createSearchChoice(h,c),h!==b&&null!==h&&e.id(h)!==b&&null!==e.id(h))){for(g=!1,j=0,k=c.length;k>j;j++)if(l(e.id(h),e.id(c[j]))){g=!0;break}g||d(h)}}return f!==a?a:b}function G(b,c){var d=function(){};return d.prototype=new b,d.prototype.constructor=d,d.prototype.parent=b.prototype,d.prototype=a.extend(d.prototype,c),d}if(window.Select2===b){var c,d,e,f,g,h,i,j;c={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(a){switch(a=a.which?a.which:a){case c.LEFT:case c.RIGHT:case c.UP:case c.DOWN:return!0}return!1},isControl:function(a){var b=a.which;switch(b){case c.SHIFT:case c.CTRL:case c.ALT:return!0}return a.metaKey?!0:!1},isFunctionKey:function(a){return a=a.which?a.which:a,a>=112&&123>=a}},j=a(document),g=function(){var a=1;return function(){return a++}}(),j.bind("mousemove",function(a){i={x:a.pageX,y:a.pageY}}),d=G(Object,{bind:function(a){var b=this;return function(){a.apply(b,arguments)}},init:function(c){var d,e,f=".select2-results";this.opts=c=this.prepareOpts(c),this.id=c.id,c.element.data("select2")!==b&&null!==c.element.data("select2")&&this.destroy(),this.enabled=!0,this.container=this.createContainer(),this.containerId="s2id_"+(c.element.attr("id")||"autogen"+g()),this.containerSelector="#"+this.containerId.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.body=r(function(){return c.element.closest("body")}),x(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.css(D(c.containerCss)),this.container.addClass(D(c.containerCssClass)),this.elementTabIndex=this.opts.element.attr("tabIndex"),this.opts.element.data("select2",this).addClass("select2-offscreen").bind("focus.select2",function(){a(this).select2("focus")}).attr("tabIndex","-1").before(this.container),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),this.dropdown.addClass(D(c.dropdownCssClass)),this.dropdown.data("select2",this),this.results=d=this.container.find(f),this.search=e=this.container.find("input.select2-input"),e.attr("tabIndex",this.elementTabIndex),this.resultsPage=0,this.context=null,this.initContainer(),p(this.results),this.dropdown.delegate(f,"mousemove-filtered touchstart touchmove touchend",this.bind(this.highlightUnderEvent)),s(80,this.results),this.dropdown.delegate(f,"scroll-debounced",this.bind(this.loadMoreIfNeeded)),a.fn.mousewheel&&d.mousewheel(function(a,b,c,e){var f=d.scrollTop();e>0&&0>=f-e?(d.scrollTop(0),u(a)):0>e&&d.get(0).scrollHeight-d.scrollTop()+e<=d.height()&&(d.scrollTop(d.get(0).scrollHeight-d.height()),u(a))}),o(e),e.bind("keyup-change input paste",this.bind(this.updateResults)),e.bind("focus",function(){e.addClass("select2-focused")}),e.bind("blur",function(){e.removeClass("select2-focused")}),this.dropdown.delegate(f,"mouseup",this.bind(function(b){a(b.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(b),this.selectHighlighted(b))})),this.dropdown.bind("click mouseup mousedown",function(a){a.stopPropagation()}),a.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),(c.element.is(":disabled")||c.element.is("[readonly='readonly']"))&&this.disable()},destroy:function(){var a=this.opts.element.data("select2");this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),a!==b&&(a.container.remove(),a.dropdown.remove(),a.opts.element.removeClass("select2-offscreen").removeData("select2").unbind(".select2").attr({tabIndex:this.elementTabIndex}).show())},prepareOpts:function(c){var d,e,f,g;if(d=c.element,"select"===d.get(0).tagName.toLowerCase()&&(this.select=e=c.element),e&&a.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in c)throw Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),c=a.extend({},{populateResults:function(d,e,f){var g,k=this.opts.id,l=this;g=function(d,e,h){var i,j,m,n,o,p,q,r,s,t;for(d=c.sortResults(d,e,f),i=0,j=d.length;j>i;i+=1)m=d[i],o=m.disabled===!0,n=!o&&k(m)!==b,p=m.children&&m.children.length>0,q=a("<li></li>"),q.addClass("select2-results-dept-"+h),q.addClass("select2-result"),q.addClass(n?"select2-result-selectable":"select2-result-unselectable"),o&&q.addClass("select2-disabled"),p&&q.addClass("select2-result-with-children"),q.addClass(l.opts.formatResultCssClass(m)),r=a(document.createElement("div")),r.addClass("select2-result-label"),t=c.formatResult(m,r,f,l.opts.escapeMarkup),t!==b&&r.html(t),q.append(r),p&&(s=a("<ul></ul>"),s.addClass("select2-result-sub"),g(m.children,s,h+1),q.append(s)),q.data("select2-data",m),e.append(q)},g(e,d,0)}},a.fn.select2.defaults,c),"function"!=typeof c.id&&(f=c.id,c.id=function(a){return a[f]}),a.isArray(c.element.data("select2Tags"))){if("tags"in c)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+c.element.attr("id");c.tags=c.element.data("select2Tags")}if(e?(c.query=this.bind(function(c){var g,h,i,e={results:[],more:!1},f=c.term;i=function(a,b){var d;a.is("option")?c.matcher(f,a.text(),a)&&b.push({id:a.attr("value"),text:a.text(),element:a.get(),css:a.attr("class"),disabled:l(a.attr("disabled"),"disabled")}):a.is("optgroup")&&(d={text:a.attr("label"),children:[],element:a.get(),css:a.attr("class")},a.children().each2(function(a,b){i(b,d.children)}),d.children.length>0&&b.push(d))},g=d.children(),this.getPlaceholder()!==b&&g.length>0&&(h=g[0],""===a(h).text()&&(g=g.not(h))),g.each2(function(a,b){i(b,e.results)}),c.callback(e)}),c.id=function(a){return a.id},c.formatResultCssClass=function(a){return a.css}):"query"in c||("ajax"in c?(g=c.element.data("ajax-url"),g&&g.length>0&&(c.ajax.url=g),c.query=z.call(c.element,c.ajax)):"data"in c?c.query=A(c.data):"tags"in c&&(c.query=B(c.tags),c.createSearchChoice===b&&(c.createSearchChoice=function(a){return{id:a,text:a}}),c.initSelection===b&&(c.initSelection=function(d,e){var f=[];a(m(d.val(),c.separator)).each(function(){var d=this,e=this,g=c.tags;a.isFunction(g)&&(g=g()),a(g).each(function(){return l(this.id,d)?(e=this.text,!1):b}),f.push({id:d,text:e})}),e(f)}))),"function"!=typeof c.query)throw"query function not defined for Select2 "+c.element.attr("id");return c},monitorSource:function(){var b,a=this.opts.element;a.bind("change.select2",this.bind(function(){this.opts.element.data("select2-change-triggered")!==!0&&this.initSelection()})),b=this.bind(function(){var a,b;a="disabled"!==this.opts.element.attr("disabled"),b="readonly"===this.opts.element.attr("readonly"),a=a&&!b,this.enabled!==a&&(a?this.enable():this.disable()),x(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(D(this.opts.containerCssClass)),x(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(D(this.opts.dropdownCssClass))}),a.bind("propertychange.select2 DOMAttrModified.select2",b),"undefined"!=typeof WebKitMutationObserver&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new WebKitMutationObserver(function(a){a.forEach(b)}),this.propertyObserver.observe(a.get(0),{attributes:!0,subtree:!1}))},triggerChange:function(b){b=b||{},b=a.extend({},b,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(b),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},enable:function(){this.enabled||(this.enabled=!0,this.container.removeClass("select2-container-disabled"),this.opts.element.removeAttr("disabled"))},disable:function(){this.enabled&&(this.close(),this.enabled=!1,this.container.addClass("select2-container-disabled"),this.opts.element.attr("disabled","disabled"))},opened:function(){return this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var o,p,q,b=this.container.offset(),c=this.container.outerHeight(!1),d=this.container.outerWidth(!1),e=this.dropdown.outerHeight(!1),f=a(window).scrollLeft()+a(window).width(),g=a(window).scrollTop()+a(window).height(),h=b.top+c,i=b.left,j=g>=h+e,k=b.top-e>=this.body().scrollTop(),l=this.dropdown.outerWidth(!1),m=f>=i+l,n=this.dropdown.hasClass("select2-drop-above");"static"!==this.body().css("position")&&(o=this.body().offset(),h-=o.top,i-=o.left),n?(p=!0,!k&&j&&(p=!1)):(p=!1,!j&&k&&(p=!0)),m||(i=b.left+d-l),p?(h=b.top-e,this.container.addClass("select2-drop-above"),this.dropdown.addClass("select2-drop-above")):(this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")),q=a.extend({top:h,left:i,width:d},D(this.opts.dropdownCss)),this.dropdown.css(q)},shouldOpen:function(){var b;return this.opened()?!1:(b=a.Event("opening"),this.opts.element.trigger(b),!b.isDefaultPrevented())},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return this.shouldOpen()?(window.setTimeout(this.bind(this.opening),1),!0):!1},opening:function(){function h(){return{width:Math.max(document.documentElement.scrollWidth,a(window).width()),height:Math.max(document.documentElement.scrollHeight,a(window).height())}}var f,b=this.containerId,c="scroll."+b,d="resize."+b,e="orientationchange."+b;this.clearDropdownAlignmentPreference(),this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.dropdown[0]!==this.body().children().last()[0]&&this.dropdown.detach().appendTo(this.body()),this.updateResults(!0),f=a("#select2-drop-mask"),0==f.length&&(f=a(document.createElement("div")),f.attr("id","select2-drop-mask").attr("class","select2-drop-mask"),f.hide(),f.appendTo(this.body()),f.bind("mousedown touchstart",function(){var d,c=a("#select2-drop");c.length>0&&(d=c.data("select2"),d.opts.selectOnBlur&&d.selectHighlighted({noFocus:!0}),d.close())})),this.dropdown.prev()[0]!==f[0]&&this.dropdown.before(f),a("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),f.css(h()),f.show(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active"),this.ensureHighlightVisible();var g=this;this.container.parents().add(window).each(function(){a(this).bind(d+" "+c+" "+e,function(){a("#select2-drop-mask").css(h()),g.positionDropdown()})}),this.focusSearch()},close:function(){if(this.opened()){var b=this.containerId,c="scroll."+b,d="resize."+b,e="orientationchange."+b;this.container.parents().add(window).each(function(){a(this).unbind(c).unbind(d).unbind(e)}),this.clearDropdownAlignmentPreference(),a("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open"),this.results.empty(),this.clearSearch(),this.search.removeClass("select2-active"),this.opts.element.trigger(a.Event("close"))}},clearSearch:function(){},getMaximumSelectionSize:function(){return D(this.opts.maximumSelectionSize)},ensureHighlightVisible:function(){var d,e,f,g,h,i,j,c=this.results;if(e=this.highlight(),!(0>e)){if(0==e)return c.scrollTop(0),b;d=this.findHighlightableChoices(),f=a(d[e]),g=f.offset().top+f.outerHeight(!0),e===d.length-1&&(j=c.find("li.select2-more-results"),j.length>0&&(g=j.offset().top+j.outerHeight(!0))),h=c.offset().top+c.outerHeight(!0),g>h&&c.scrollTop(c.scrollTop()+(g-h)),i=f.offset().top-c.offset().top,0>i&&"none"!=f.css("display")&&c.scrollTop(c.scrollTop()+i)}},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-selected):not(.select2-disabled)"),this.results.find(".select2-result-selectable:not(.select2-selected):not(.select2-disabled)")},moveHighlight:function(b){for(var c=this.findHighlightableChoices(),d=this.highlight();d>-1&&c.length>d;){d+=b;var e=a(c[d]);if(e.hasClass("select2-result-selectable")&&!e.hasClass("select2-disabled")&&!e.hasClass("select2-selected")){this.highlight(d);break}}},highlight:function(c){var e,f,d=this.findHighlightableChoices();return 0===arguments.length?k(d.filter(".select2-highlighted")[0],d.get()):(c>=d.length&&(c=d.length-1),0>c&&(c=0),this.results.find(".select2-highlighted").removeClass("select2-highlighted"),e=a(d[c]),e.addClass("select2-highlighted"),this.ensureHighlightVisible(),f=e.data("select2-data"),f&&this.opts.element.trigger({type:"highlight",val:this.id(f),choice:f}),b)},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(b){var c=a(b.target).closest(".select2-result-selectable");if(c.length>0&&!c.is(".select2-highlighted")){var d=this.findHighlightableChoices();this.highlight(d.index(c))}else 0==c.length&&this.results.find(".select2-highlighted").removeClass("select2-highlighted")},loadMoreIfNeeded:function(){var c,a=this.results,b=a.find("li.select2-more-results"),e=this.resultsPage+1,f=this,g=this.search.val(),h=this.context;0!==b.length&&(c=b.offset().top-a.offset().top-a.height(),this.opts.loadMorePadding>=c&&(b.addClass("select2-active"),this.opts.query({element:this.opts.element,term:g,page:e,context:h,matcher:this.opts.matcher,callback:this.bind(function(c){f.opened()&&(f.opts.populateResults.call(this,a,c.results,{term:g,page:e,context:h}),f.postprocessResults(c,!1,!1),c.more===!0?(b.detach().appendTo(a).text(f.opts.formatLoadMore(e+1)),window.setTimeout(function(){f.loadMoreIfNeeded()},10)):b.remove(),f.positionDropdown(),f.resultsPage=e,f.context=c.context)})})))},tokenize:function(){},updateResults:function(c){function m(){e.scrollTop(0),d.removeClass("select2-active"),h.positionDropdown()}function n(a){e.html(a),m()}var g,i,d=this.search,e=this.results,f=this.opts,h=this,j=d.val(),k=a.data(this.container,"select2-last-term");if((c===!0||!k||!l(j,k))&&(a.data(this.container,"select2-last-term",j),c===!0||this.showSearchInput!==!1&&this.opened())){var o=this.getMaximumSelectionSize();if(o>=1&&(g=this.data(),a.isArray(g)&&g.length>=o&&C(f.formatSelectionTooBig,"formatSelectionTooBig")))return n("<li class='select2-selection-limit'>"+f.formatSelectionTooBig(o)+"</li>"),b;if(d.val().length<f.minimumInputLength)return C(f.formatInputTooShort,"formatInputTooShort")?n("<li class='select2-no-results'>"+f.formatInputTooShort(d.val(),f.minimumInputLength)+"</li>"):n(""),b;if(f.maximumInputLength&&d.val().length>f.maximumInputLength)return C(f.formatInputTooLong,"formatInputTooLong")?n("<li class='select2-no-results'>"+f.formatInputTooLong(d.val(),f.maximumInputLength)+"</li>"):n(""),b;f.formatSearching&&0===this.findHighlightableChoices().length&&n("<li class='select2-searching'>"+f.formatSearching()+"</li>"),d.addClass("select2-active"),i=this.tokenize(),i!=b&&null!=i&&d.val(i),this.resultsPage=1,f.query({element:f.element,term:d.val(),page:this.resultsPage,context:null,matcher:f.matcher,callback:this.bind(function(g){var i;return this.opened()?(this.context=g.context===b?null:g.context,this.opts.createSearchChoice&&""!==d.val()&&(i=this.opts.createSearchChoice.call(null,d.val(),g.results),i!==b&&null!==i&&h.id(i)!==b&&null!==h.id(i)&&0===a(g.results).filter(function(){return l(h.id(this),h.id(i))}).length&&g.results.unshift(i)),0===g.results.length&&C(f.formatNoMatches,"formatNoMatches")?(n("<li class='select2-no-results'>"+f.formatNoMatches(d.val())+"</li>"),b):(e.empty(),h.opts.populateResults.call(this,e,g.results,{term:d.val(),page:this.resultsPage,context:null}),g.more===!0&&C(f.formatLoadMore,"formatLoadMore")&&(e.append("<li class='select2-more-results'>"+h.opts.escapeMarkup(f.formatLoadMore(this.resultsPage))+"</li>"),window.setTimeout(function(){h.loadMoreIfNeeded()},10)),this.postprocessResults(g,c),m(),this.opts.element.trigger({type:"loaded",data:g}),b)):(this.search.removeClass("select2-active"),b)})})}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){t(this.search)},selectHighlighted:function(a){var b=this.highlight(),c=this.results.find(".select2-highlighted"),d=c.closest(".select2-result").data("select2-data");d&&(this.highlight(b),this.onSelect(d,a))},getPlaceholder:function(){return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder},initContainerWidth:function(){function c(){var c,d,e,f,g;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if(c=this.opts.element.attr("style"),c!==b)for(d=c.split(";"),f=0,g=d.length;g>f;f+=1)if(e=d[f].replace(/\s/g,"").match(/width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/),null!==e&&e.length>=1)return e[1];return"resolve"===this.opts.width?(c=this.opts.element.css("width"),c.indexOf("%")>0?c:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px"):null}return a.isFunction(this.opts.width)?this.opts.width():this.opts.width}var d=c.call(this);null!==d&&this.container.css("width",d)}}),e=G(d,{createContainer:function(){var b=a(document.createElement("div")).attr({"class":"select2-container"}).html(["<a href='javascript:void(0)' onclick='return false;' class='select2-choice' tabindex='-1'>"," <span></span><abbr class='select2-search-choice-close' style='display:none;'></abbr>"," <div><b></b></div>","</a>","<input class='select2-focusser select2-offscreen' type='text'/>","<div class='select2-drop' style='display:none'>"," <div class='select2-search'>"," <input type='text' autocomplete='off' class='select2-input'/>"," </div>"," <ul class='select2-results'>"," </ul>","</div>"].join(""));return b},disable:function(){this.enabled&&(this.parent.disable.apply(this,arguments),this.focusser.attr("disabled","disabled"))},enable:function(){this.enabled||(this.parent.enable.apply(this,arguments),this.focusser.removeAttr("disabled"))},opening:function(){this.parent.opening.apply(this,arguments),this.focusser.attr("disabled","disabled"),this.opts.element.trigger(a.Event("open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.removeAttr("disabled"),t(this.focusser))},focus:function(){this.opened()?this.close():(this.focusser.removeAttr("disabled"),this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.removeAttr("disabled"),this.focusser.focus()},initContainer:function(){var d,e=this.container,f=this.dropdown,h=!1;this.showSearch(this.opts.minimumResultsForSearch>=0),this.selection=d=e.find(".select2-choice"),this.focusser=e.find(".select2-focusser"),this.focusser.attr("id","s2id_autogen"+g()),a("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.focusser.attr("id")),this.search.bind("keydown",this.bind(function(a){if(this.enabled){if(a.which===c.PAGE_UP||a.which===c.PAGE_DOWN)return u(a),b;switch(a.which){case c.UP:case c.DOWN:return this.moveHighlight(a.which===c.UP?-1:1),u(a),b;case c.TAB:case c.ENTER:return this.selectHighlighted(),u(a),b;case c.ESC:return this.cancel(a),u(a),b}}})),this.search.bind("blur",this.bind(function(){document.activeElement===this.body().get(0)&&window.setTimeout(this.bind(function(){this.search.focus()}),0)})),this.focusser.bind("keydown",this.bind(function(a){return!this.enabled||a.which===c.TAB||c.isControl(a)||c.isFunctionKey(a)||a.which===c.ESC?b:this.opts.openOnEnter===!1&&a.which===c.ENTER?(u(a),b):a.which==c.DOWN||a.which==c.UP||a.which==c.ENTER&&this.opts.openOnEnter?(this.open(),u(a),b):a.which==c.DELETE||a.which==c.BACKSPACE?(this.opts.allowClear&&this.clear(),u(a),b):b})),o(this.focusser),this.focusser.bind("keyup-change input",this.bind(function(a){this.opened()||(this.open(),this.showSearchInput!==!1&&this.search.val(this.focusser.val()),this.focusser.val(""),u(a))})),d.delegate("abbr","mousedown",this.bind(function(a){this.enabled&&(this.clear(),v(a),this.close(),this.selection.focus())})),d.bind("mousedown",this.bind(function(a){h=!0,this.opened()?this.close():this.enabled&&this.open(),u(a),h=!1})),f.bind("mousedown",this.bind(function(){this.search.focus()})),d.bind("focus",this.bind(function(a){u(a)})),this.focusser.bind("focus",this.bind(function(){this.container.addClass("select2-container-active")})).bind("blur",this.bind(function(){this.opened()||this.container.removeClass("select2-container-active")})),this.search.bind("focus",this.bind(function(){this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.setPlaceholder()},clear:function(a){var b=this.selection.data("select2-data");b&&(this.opts.element.val(""),this.selection.find("span").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),a!==!1&&(this.opts.element.trigger({type:"removed",val:this.id(b),choice:b}),this.triggerChange({removed:b})))},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text())this.close(),this.setPlaceholder();else{var c=this;this.opts.initSelection.call(null,this.opts.element,function(a){a!==b&&null!==a&&(c.updateSelection(a),c.close(),c.setPlaceholder())})}},prepareOpts:function(){var b=this.parent.prepareOpts.apply(this,arguments);return"select"===b.element.get(0).tagName.toLowerCase()?b.initSelection=function(b,c){var d=b.find(":selected");a.isFunction(c)&&c({id:d.attr("value"),text:d.text(),element:d})}:"data"in b&&(b.initSelection=b.initSelection||function(c,d){var e=c.val(),f=null;b.query({matcher:function(a,c,d){var g=l(e,b.id(d));return g&&(f=d),g},callback:a.isFunction(d)?function(){d(f)}:a.noop})}),b},getPlaceholder:function(){return this.select&&""!==this.select.find("option").first().text()?b:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var a=this.getPlaceholder();if(""===this.opts.element.val()&&a!==b){if(this.select&&""!==this.select.find("option:first").text())return;this.selection.find("span").html(this.opts.escapeMarkup(a)),this.selection.addClass("select2-default"),this.selection.find("abbr").hide()}},postprocessResults:function(a,c,d){var e=0,f=this,g=!0;if(this.findHighlightableChoices().each2(function(a,c){return l(f.id(c.data("select2-data")),f.opts.element.val())?(e=a,!1):b}),d!==!1&&this.highlight(e),c===!0){var h=this.opts.minimumResultsForSearch;g=0>h?!1:E(a.results)>=h,this.showSearch(g)}},showSearch:function(b){this.showSearchInput=b,this.dropdown.find(".select2-search")[b?"removeClass":"addClass"]("select2-search-hidden"),a(this.dropdown,this.container)[b?"addClass":"removeClass"]("select2-with-searchbox")},onSelect:function(a,b){var c=this.opts.element.val();this.opts.element.val(this.id(a)),this.updateSelection(a),this.opts.element.trigger({type:"selected",val:this.id(a),choice:a}),this.close(),b&&b.noFocus||this.selection.focus(),l(c,this.id(a))||this.triggerChange()},updateSelection:function(a){var d,c=this.selection.find("span");this.selection.data("select2-data",a),c.empty(),d=this.opts.formatSelection(a,c),d!==b&&c.append(this.opts.escapeMarkup(d)),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==b&&this.selection.find("abbr").show()},val:function(){var a,c=!1,d=null,e=this;if(0===arguments.length)return this.opts.element.val();if(a=arguments[0],arguments.length>1&&(c=arguments[1]),this.select)this.select.val(a).find(":selected").each2(function(a,b){return d={id:b.attr("value"),text:b.text(),element:b.get(0)},!1}),this.updateSelection(d),this.setPlaceholder(),c&&this.triggerChange();else{if(this.opts.initSelection===b)throw Error("cannot call val() if initSelection() is not defined");if(!a&&0!==a)return this.clear(c),c&&this.triggerChange(),b;this.opts.element.val(a),this.opts.initSelection(this.opts.element,function(a){e.opts.element.val(a?e.id(a):""),e.updateSelection(a),e.setPlaceholder(),c&&e.triggerChange()})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(a){var c;return 0===arguments.length?(c=this.selection.data("select2-data"),c==b&&(c=null),c):(a&&""!==a?(this.opts.element.val(a?this.id(a):""),this.updateSelection(a)):this.clear(),b)}}),f=G(d,{createContainer:function(){var b=a(document.createElement("div")).attr({"class":"select2-container select2-container-multi"}).html([" <ul class='select2-choices'>"," <li class='select2-search-field'>"," <input type='text' autocomplete='off' class='select2-input'>"," </li>","</ul>","<div class='select2-drop select2-drop-multi' style='display:none;'>"," <ul class='select2-results'>"," </ul>","</div>"].join(""));return b},prepareOpts:function(){var b=this.parent.prepareOpts.apply(this,arguments);return"select"===b.element.get(0).tagName.toLowerCase()?b.initSelection=function(a,b){var c=[];a.find(":selected").each2(function(a,b){c.push({id:b.attr("value"),text:b.text(),element:b[0]})}),b(c)}:"data"in b&&(b.initSelection=b.initSelection||function(c,d){var e=m(c.val(),b.separator),f=[];b.query({matcher:function(c,d,g){var h=a.grep(e,function(a){return l(a,b.id(g))}).length;return h&&f.push(g),h},callback:a.isFunction(d)?function(){d(f)}:a.noop})}),b},initContainer:function(){var e,d=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=e=this.container.find(d),this.search.attr("id","s2id_autogen"+g()),a("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.search.attr("id")),this.search.bind("input paste",this.bind(function(){this.enabled&&(this.opened()||this.open())})),this.search.bind("keydown",this.bind(function(a){if(this.enabled){if(a.which===c.BACKSPACE&&""===this.search.val()){this.close();var d,f=e.find(".select2-search-choice-focus");if(f.length>0)return this.unselect(f.first()),this.search.width(10),u(a),b;d=e.find(".select2-search-choice:not(.select2-locked)"),d.length>0&&d.last().addClass("select2-search-choice-focus")}else e.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus");if(this.opened())switch(a.which){case c.UP:case c.DOWN:return this.moveHighlight(a.which===c.UP?-1:1),u(a),b;case c.ENTER:case c.TAB:return this.selectHighlighted(),u(a),b;case c.ESC:return this.cancel(a),u(a),b}if(a.which!==c.TAB&&!c.isControl(a)&&!c.isFunctionKey(a)&&a.which!==c.BACKSPACE&&a.which!==c.ESC){if(a.which===c.ENTER){if(this.opts.openOnEnter===!1)return;if(a.altKey||a.ctrlKey||a.shiftKey||a.metaKey)return}this.open(),(a.which===c.PAGE_UP||a.which===c.PAGE_DOWN)&&u(a),a.which===c.ENTER&&u(a)}}})),this.search.bind("keyup",this.bind(this.resizeSearch)),this.search.bind("blur",this.bind(function(a){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.opened()||this.clearSearch(),a.stopImmediatePropagation()})),this.container.delegate(d,"mousedown",this.bind(function(b){this.enabled&&(a(b.target).closest(".select2-search-choice").length>0||(this.clearPlaceholder(),this.open(),this.focusSearch(),b.preventDefault()))
|
5 |
-
})),this.container.delegate(d,"focus",this.bind(function(){this.enabled&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.clearSearch()},enable:function(){this.enabled||(this.parent.enable.apply(this,arguments),this.search.removeAttr("disabled"))},disable:function(){this.enabled&&(this.parent.disable.apply(this,arguments),this.search.attr("disabled",!0))},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var c=this;this.opts.initSelection.call(null,this.opts.element,function(a){a!==b&&null!==a&&(c.updateSelection(a),c.close(),c.clearSearch())})}},clearSearch:function(){var a=this.getPlaceholder();a!==b&&0===this.getVal().length&&this.search.hasClass("select2-focused")===!1?(this.search.val(a).addClass("select2-default"),this.search.width(this.getMaxSearchWidth())):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),this.opts.element.trigger(a.Event("open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(b){var c=[],d=[],e=this;a(b).each(function(){0>k(e.id(this),c)&&(c.push(e.id(this)),d.push(this))}),b=d,this.selection.find(".select2-search-choice").remove(),a(b).each(function(){e.addSelectedChoice(this)}),e.postprocessResults()},tokenize:function(){var a=this.search.val();a=this.opts.tokenizer(a,this.data(),this.bind(this.onSelect),this.opts),null!=a&&a!=b&&(this.search.val(a),a.length>0&&this.open())},onSelect:function(a,b){this.addSelectedChoice(a),this.opts.element.trigger({type:"selected",val:this.id(a),choice:a}),(this.select||!this.opts.closeOnSelect)&&this.postprocessResults(),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()&&this.updateResults(!0),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:a}),b&&b.noFocus||this.focusSearch()},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(c){var j,d=!c.locked,e=a("<li class='select2-search-choice'> <div></div> <a href='#' onclick='return false;' class='select2-search-choice-close' tabindex='-1'></a></li>"),f=a("<li class='select2-search-choice select2-locked'><div></div></li>"),g=d?e:f,h=this.id(c),i=this.getVal();j=this.opts.formatSelection(c,g.find("div")),j!=b&&g.find("div").replaceWith("<div>"+this.opts.escapeMarkup(j)+"</div>"),d&&g.find(".select2-search-choice-close").bind("mousedown",u).bind("click dblclick",this.bind(function(b){this.enabled&&(a(b.target).closest(".select2-search-choice").fadeOut("fast",this.bind(function(){this.unselect(a(b.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),this.close(),this.focusSearch()})).dequeue(),u(b))})).bind("focus",this.bind(function(){this.enabled&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),g.data("select2-data",c),g.insertBefore(this.searchContainer),i.push(h),this.setVal(i)},unselect:function(a){var c,d,b=this.getVal();if(a=a.closest(".select2-search-choice"),0===a.length)throw"Invalid argument: "+a+". Must be .select2-search-choice";c=a.data("select2-data"),c&&(d=k(this.id(c),b),d>=0&&(b.splice(d,1),this.setVal(b),this.select&&this.postprocessResults()),a.remove(),this.opts.element.trigger({type:"removed",val:this.id(c),choice:c}),this.triggerChange({removed:c}))},postprocessResults:function(){var a=this.getVal(),b=this.results.find(".select2-result"),c=this.results.find(".select2-result-with-children"),d=this;b.each2(function(b,c){var e=d.id(c.data("select2-data"));k(e,a)>=0&&(c.addClass("select2-selected"),c.find(".select2-result-selectable").addClass("select2-selected"))}),c.each2(function(a,b){b.is(".select2-result-selectable")||0!==b.find(".select2-result-selectable:not(.select2-selected)").length||b.addClass("select2-selected")}),-1==this.highlight()&&d.highlight(0)},getMaxSearchWidth:function(){return this.selection.width()-n(this.search)},resizeSearch:function(){var a,b,c,d,e,f=n(this.search);a=w(this.search)+10,b=this.search.offset().left,c=this.selection.width(),d=this.selection.offset().left,e=c-(b-d)-f,a>e&&(e=c-f),40>e&&(e=c-f),0>=e&&(e=a),this.search.width(e)},getVal:function(){var a;return this.select?(a=this.select.val(),null===a?[]:a):(a=this.opts.element.val(),m(a,this.opts.separator))},setVal:function(b){var c;this.select?this.select.val(b):(c=[],a(b).each(function(){0>k(this,c)&&c.push(this)}),this.opts.element.val(0===c.length?"":c.join(this.opts.separator)))},val:function(){var c,d=!1,f=this;if(0===arguments.length)return this.getVal();if(c=arguments[0],arguments.length>1&&(d=arguments[1]),!c&&0!==c)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),d&&this.triggerChange(),b;if(this.setVal(c),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),d&&this.triggerChange();else{if(this.opts.initSelection===b)throw Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(b){var c=a(b).map(f.id);f.setVal(c),f.updateSelection(b),f.clearSearch(),d&&f.triggerChange()})}this.clearSearch()},onSortStart:function(){if(this.select)throw Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var b=[],c=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){b.push(c.opts.id(a(this).data("select2-data")))}),this.setVal(b),this.triggerChange()},data:function(c){var e,d=this;return 0===arguments.length?this.selection.find(".select2-search-choice").map(function(){return a(this).data("select2-data")}).get():(c||(c=[]),e=a.map(c,function(a){return d.opts.id(a)}),this.setVal(e),this.updateSelection(c),this.clearSearch(),b)}}),a.fn.select2=function(){var d,g,h,i,c=Array.prototype.slice.call(arguments,0),j=["val","destroy","opened","open","close","focus","isFocused","container","onSortStart","onSortEnd","enable","disable","positionDropdown","data"];return this.each(function(){if(0===c.length||"object"==typeof c[0])d=0===c.length?{}:a.extend({},c[0]),d.element=a(this),"select"===d.element.get(0).tagName.toLowerCase()?i=d.element.attr("multiple"):(i=d.multiple||!1,"tags"in d&&(d.multiple=i=!0)),g=i?new f:new e,g.init(d);else{if("string"!=typeof c[0])throw"Invalid arguments to select2 plugin: "+c;if(0>k(c[0],j))throw"Unknown method: "+c[0];if(h=b,g=a(this).data("select2"),g===b)return;if(h="container"===c[0]?g.container:g[c[0]].apply(g,c.slice(1)),h!==b)return!1}}),h===b?this:h},a.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(a,b,c,d){var e=[];return y(a.text,c.term,e,d),e.join("")},formatSelection:function(a){return a?a.text:b},sortResults:function(a){return a},formatResultCssClass:function(){return b},formatNoMatches:function(){return"No matches found"},formatInputTooShort:function(a,b){var c=b-a.length;return"Please enter "+c+" more character"+(1==c?"":"s")},formatInputTooLong:function(a,b){var c=a.length-b;return"Please delete "+c+" character"+(1==c?"":"s")},formatSelectionTooBig:function(a){return"You can only select "+a+" item"+(1==a?"":"s")},formatLoadMore:function(){return"Loading more results..."},formatSearching:function(){return"Searching..."},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(a){return a.id},matcher:function(a,b){return(""+b).toUpperCase().indexOf((""+a).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:F,escapeMarkup:function(a){var b={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return(a+"").replace(/[&<>"'\/\\]/g,function(a){return b[a[0]]})},blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(a){return a},adaptDropdownCssClass:function(){return null}},window.Select2={query:{ajax:z,local:A,tags:B},util:{debounce:q,markMatch:y},"class":{"abstract":d,single:e,multi:f}}}}(jQuery);
|
|
|
|
|
|
|
|
|
|
admin/src/js/modules/sticky.js
DELETED
@@ -1,65 +0,0 @@
|
|
1 |
-
var alm = alm || {};
|
2 |
-
|
3 |
-
/*
|
4 |
-
* alm.attachSticky
|
5 |
-
*/
|
6 |
-
alm.attachSticky = (el, anchor, top = 0) => {
|
7 |
-
let h = el.offsetHeight + top, // height of sticky el
|
8 |
-
anchorOffset = anchor.getBoundingClientRect(),
|
9 |
-
anchor_top = anchorOffset.top,
|
10 |
-
w_height = window.innerHeight, // Window height
|
11 |
-
el_height = el.offsetHeight; // element height
|
12 |
-
|
13 |
-
if(w_height > (el_height + top)){
|
14 |
-
// If container height > than sticky height
|
15 |
-
if(anchor_top <= top) {
|
16 |
-
el.classList.add('attached');
|
17 |
-
} else {
|
18 |
-
if(anchor_top > top) {
|
19 |
-
el.classList.remove('attached');
|
20 |
-
}
|
21 |
-
}
|
22 |
-
}
|
23 |
-
};
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
/*
|
28 |
-
* alm.resizeSticky
|
29 |
-
*/
|
30 |
-
alm.resizeSticky = () => {
|
31 |
-
let sticky = document.getElementById('cnkt-sticky');
|
32 |
-
let el = document.getElementById('cnkt-sticky-wrapper');
|
33 |
-
let atts = window.getComputedStyle(el);
|
34 |
-
sticky.style.width = atts.width;
|
35 |
-
}
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
/*
|
40 |
-
* initSticky
|
41 |
-
*/
|
42 |
-
const initSticky = () => {
|
43 |
-
if(document.getElementById("cnkt-sticky-wrapper")){
|
44 |
-
const sticky_el = document.getElementById('cnkt-sticky');
|
45 |
-
const sticky_anchor = document.getElementById('cnkt-sticky-wrapper');
|
46 |
-
const sticky_top = 70; // The position the sticky should stick
|
47 |
-
|
48 |
-
// Scroll
|
49 |
-
window.addEventListener('scroll', function(e) {
|
50 |
-
alm.attachSticky(sticky_el, sticky_anchor, sticky_top);
|
51 |
-
});
|
52 |
-
// Resize
|
53 |
-
window.addEventListener('resize', function(e) {
|
54 |
-
alm.resizeSticky();
|
55 |
-
});
|
56 |
-
// Init
|
57 |
-
alm.resizeSticky();
|
58 |
-
alm.attachSticky(sticky_el, sticky_anchor, sticky_top);
|
59 |
-
|
60 |
-
}
|
61 |
-
}
|
62 |
-
|
63 |
-
window.onload = function(){
|
64 |
-
initSticky();
|
65 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/src/scss/_variables.scss
DELETED
@@ -1,16 +0,0 @@
|
|
1 |
-
$gutter: 25px;
|
2 |
-
$padding: 15px;
|
3 |
-
$grey: #555;
|
4 |
-
$green: #8ed074;
|
5 |
-
$green_hover: #57bda4;
|
6 |
-
$yellow: #ffffe8;
|
7 |
-
$yellow_dark: #e4e4c8;
|
8 |
-
$red: #e06464;
|
9 |
-
$light_grey: #f7f7f7;
|
10 |
-
$light_border: #f1f1f1;
|
11 |
-
$border: #e1e1e1;
|
12 |
-
$border_hover: #ccc;
|
13 |
-
$radius: 3px;
|
14 |
-
|
15 |
-
$small: 480px;
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/src/scss/admin.scss
DELETED
@@ -1,4018 +0,0 @@
|
|
1 |
-
@import "//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css",
|
2 |
-
"libs/tooltipster", "libs/select2", "variables", "partials/header",
|
3 |
-
"partials/pro-listing", "partials/codemirror", "partials/sidebar",
|
4 |
-
"partials/alm-settings-feedback", "partials/select2",
|
5 |
-
"partials/shortcode-builder", "partials/woocommerce",
|
6 |
-
"partials/builder-option-toggle";
|
7 |
-
|
8 |
-
body.toplevel_page_ajax-load-more,
|
9 |
-
body.ajax-load-more_page_ajax-load-more-repeaters,
|
10 |
-
body.ajax-load-more_page_ajax-load-more-shortcode-builder,
|
11 |
-
body.ajax-load-more_page_ajax-load-more-add-ons,
|
12 |
-
body.ajax-load-more_page_ajax-load-more-extensions,
|
13 |
-
body.ajax-load-more_page_ajax-load-more-help,
|
14 |
-
body.ajax-load-more_page_ajax-load-more-licenses,
|
15 |
-
body.ajax-load-more_page_ajax-load-more-cache,
|
16 |
-
body.ajax-load-more_page_ajax-load-more-filters,
|
17 |
-
body.ajax-load-more_page_ajax-load-more-pro,
|
18 |
-
body.ajax-load-more_page_ajax-load-more-go-pro,
|
19 |
-
body.ajax-load-more_page_ajax-load-more-woocommerce {
|
20 |
-
background-color: #f7f7f7;
|
21 |
-
#wpcontent {
|
22 |
-
padding-left: 0;
|
23 |
-
padding-bottom: 20px;
|
24 |
-
background-color: #efefef;
|
25 |
-
}
|
26 |
-
#wpbody-content {
|
27 |
-
padding-bottom: 0;
|
28 |
-
}
|
29 |
-
}
|
30 |
-
body.toplevel_page_ajax-load-more,
|
31 |
-
body.ajax-load-more_page_ajax-load-more-repeaters,
|
32 |
-
body.ajax-load-more_page_ajax-load-more-shortcode-builder,
|
33 |
-
body.ajax-load-more_page_ajax-load-more-add-ons,
|
34 |
-
body.ajax-load-more_page_ajax-load-more-extensions,
|
35 |
-
body.ajax-load-more_page_ajax-load-more-help,
|
36 |
-
body.ajax-load-more_page_ajax-load-more-licenses,
|
37 |
-
body.ajax-load-more_page_ajax-load-more-cache,
|
38 |
-
body.ajax-load-more_page_ajax-load-more-filters,
|
39 |
-
body.ajax-load-more_page_ajax-load-more-pro,
|
40 |
-
body.ajax-load-more_page_ajax-load-more-go-pro,
|
41 |
-
body.ajax-load-more_page_ajax-load-more-woocommerce {
|
42 |
-
background: #efefef;
|
43 |
-
#wpfooter {
|
44 |
-
padding-top: 0;
|
45 |
-
padding-bottom: 0;
|
46 |
-
line-height: 40px;
|
47 |
-
background: #f7f7f7;
|
48 |
-
border-top: 1px solid #efefef;
|
49 |
-
position: fixed;
|
50 |
-
bottom: 0;
|
51 |
-
z-index: 1100;
|
52 |
-
p {
|
53 |
-
line-height: 40px;
|
54 |
-
}
|
55 |
-
}
|
56 |
-
.ajax-load-more .cnkt-main {
|
57 |
-
// Set main column height to min 100% viewport
|
58 |
-
@media screen and (min-width: 901px) {
|
59 |
-
min-height: 100vh;
|
60 |
-
}
|
61 |
-
}
|
62 |
-
.ajax-load-more .cnkt-sidebar {
|
63 |
-
@media screen and (max-width: 900px) {
|
64 |
-
//background-color: #efefef;
|
65 |
-
}
|
66 |
-
}
|
67 |
-
}
|
68 |
-
// Extensions, Pro
|
69 |
-
body.ajax-load-more_page_ajax-load-more-extensions,
|
70 |
-
body.ajax-load-more_page_ajax-load-more-pro {
|
71 |
-
background: #fff;
|
72 |
-
#wpcontent {
|
73 |
-
background: #fff;
|
74 |
-
}
|
75 |
-
}
|
76 |
-
.main-cnkt-wrap {
|
77 |
-
padding: 0 !important;
|
78 |
-
margin: 0 !important;
|
79 |
-
}
|
80 |
-
.ajax-load-more-inner-wrapper {
|
81 |
-
padding: 0;
|
82 |
-
display: block;
|
83 |
-
clear: both;
|
84 |
-
max-width: 1440px;
|
85 |
-
position: relative;
|
86 |
-
}
|
87 |
-
|
88 |
-
.ajax-load-more .alm-transient {
|
89 |
-
padding: 6px 12px;
|
90 |
-
p {
|
91 |
-
margin: 0.5em 0;
|
92 |
-
a {
|
93 |
-
font-weight: 600;
|
94 |
-
}
|
95 |
-
}
|
96 |
-
a.button {
|
97 |
-
position: static;
|
98 |
-
vertical-align: inherit !important;
|
99 |
-
}
|
100 |
-
button {
|
101 |
-
transform: translateY(-50%);
|
102 |
-
top: 50%;
|
103 |
-
}
|
104 |
-
}
|
105 |
-
|
106 |
-
// Styled Buttons
|
107 |
-
#wpcontent .ajax-load-more {
|
108 |
-
.button:not(.button-primary),
|
109 |
-
.button.button-secondary {
|
110 |
-
border-color: #ccc;
|
111 |
-
color: #444;
|
112 |
-
background-color: #f3f5f6;
|
113 |
-
&:hover,
|
114 |
-
&:active,
|
115 |
-
&:focus {
|
116 |
-
color: #222;
|
117 |
-
border-color: #999;
|
118 |
-
background-color: #f1f1f1;
|
119 |
-
box-shadow: none;
|
120 |
-
}
|
121 |
-
&:focus {
|
122 |
-
background-color: #e7e7e7;
|
123 |
-
}
|
124 |
-
}
|
125 |
-
}
|
126 |
-
|
127 |
-
/*
|
128 |
-
* Admin - Popup Generator
|
129 |
-
*
|
130 |
-
* @since 1.0
|
131 |
-
*/
|
132 |
-
|
133 |
-
.ajax-load-more * {
|
134 |
-
box-sizing: border-box;
|
135 |
-
}
|
136 |
-
.forceColors {
|
137 |
-
background: #fff !important;
|
138 |
-
}
|
139 |
-
.offscreen {
|
140 |
-
position: absolute;
|
141 |
-
left: -9999px;
|
142 |
-
}
|
143 |
-
.ajax-load-more {
|
144 |
-
font-size: 14px;
|
145 |
-
color: #666;
|
146 |
-
position: relative;
|
147 |
-
max-width: 100%;
|
148 |
-
}
|
149 |
-
#alm-help.ajax-load-more {
|
150 |
-
max-width: 1600px;
|
151 |
-
}
|
152 |
-
/*
|
153 |
-
.ajax-load-more a:focus{
|
154 |
-
-webkit-box-shadow: none;
|
155 |
-
-moz-box-shadow: none;
|
156 |
-
box-shadow: none;
|
157 |
-
}
|
158 |
-
*/
|
159 |
-
.ajax-load-more img {
|
160 |
-
max-width: 100%;
|
161 |
-
}
|
162 |
-
#alm-container {
|
163 |
-
overflow: hidden;
|
164 |
-
padding: 15px 10px 140px !important;
|
165 |
-
}
|
166 |
-
#alm-settings {
|
167 |
-
.admin-select {
|
168 |
-
width: 100%;
|
169 |
-
display: block;
|
170 |
-
padding: 0 0 25px;
|
171 |
-
margin: -10px 0 0;
|
172 |
-
.select2-container {
|
173 |
-
width: 40%;
|
174 |
-
min-width: 40%;
|
175 |
-
display: inline-block;
|
176 |
-
vertical-align: top;
|
177 |
-
}
|
178 |
-
}
|
179 |
-
}
|
180 |
-
|
181 |
-
/* Saved Settings */
|
182 |
-
|
183 |
-
#alm-settings .row.alm-save-settings {
|
184 |
-
padding-bottom: 5px !important;
|
185 |
-
}
|
186 |
-
|
187 |
-
#alm-settings form {
|
188 |
-
h2 {
|
189 |
-
padding: 20px 20px 5px 5px;
|
190 |
-
margin: 0;
|
191 |
-
font-weight: 700;
|
192 |
-
border-radius: 2px 2px 0 0;
|
193 |
-
&:first-of-type {
|
194 |
-
padding-top: 0;
|
195 |
-
}
|
196 |
-
+ p {
|
197 |
-
color: #999;
|
198 |
-
padding: 0 20px 15px 5px;
|
199 |
-
margin: 0;
|
200 |
-
font-size: 13px;
|
201 |
-
}
|
202 |
-
}
|
203 |
-
}
|
204 |
-
|
205 |
-
// File location on Theme Repeaters
|
206 |
-
.ajax-load-more .file-location {
|
207 |
-
border: 1px solid #e1e1e1;
|
208 |
-
background: #fff;
|
209 |
-
margin: 0;
|
210 |
-
padding: 0;
|
211 |
-
line-height: 1;
|
212 |
-
display: flex;
|
213 |
-
flex-wrap: nowrap;
|
214 |
-
font-family: Consolas, monaco, monospace;
|
215 |
-
border-radius: 3px;
|
216 |
-
p,
|
217 |
-
code {
|
218 |
-
padding: 12px 16px;
|
219 |
-
line-height: 18px;
|
220 |
-
font-size: 12px;
|
221 |
-
}
|
222 |
-
p {
|
223 |
-
background: #f7f7f7;
|
224 |
-
color: #555;
|
225 |
-
font-weight: 600;
|
226 |
-
margin: 0;
|
227 |
-
width: auto;
|
228 |
-
display: inline;
|
229 |
-
border-right: 1px solid #e1e1e1;
|
230 |
-
}
|
231 |
-
code {
|
232 |
-
color: #999;
|
233 |
-
background: transparent;
|
234 |
-
cursor: help;
|
235 |
-
}
|
236 |
-
}
|
237 |
-
|
238 |
-
.ajax-load-more code {
|
239 |
-
background: #fcf3d0;
|
240 |
-
}
|
241 |
-
.ajax-load-more p {
|
242 |
-
display: block;
|
243 |
-
color: #777;
|
244 |
-
width: 100%;
|
245 |
-
display: block;
|
246 |
-
clear: both;
|
247 |
-
text-transform: none;
|
248 |
-
padding: 0;
|
249 |
-
margin: 0 0 15px;
|
250 |
-
}
|
251 |
-
|
252 |
-
.ajax-load-more p,
|
253 |
-
.ajax-load-more li,
|
254 |
-
.ajax-load-more input,
|
255 |
-
.ajax-load-more textarea,
|
256 |
-
.ajax-load-more label {
|
257 |
-
font-size: 14px;
|
258 |
-
&.lg {
|
259 |
-
font-size: 16px;
|
260 |
-
}
|
261 |
-
}
|
262 |
-
textarea#_alm_layouts_css {
|
263 |
-
height: 240px;
|
264 |
-
}
|
265 |
-
a.layout-hover {
|
266 |
-
width: 20px !important;
|
267 |
-
height: 20px !important;
|
268 |
-
background: #ccc;
|
269 |
-
display: inline-block;
|
270 |
-
position: relative;
|
271 |
-
}
|
272 |
-
a.layout-hover img {
|
273 |
-
position: absolute;
|
274 |
-
left: 100%;
|
275 |
-
top: 0;
|
276 |
-
z-index: 999;
|
277 |
-
opacity: 0;
|
278 |
-
filter: alpha(opacity=0);
|
279 |
-
}
|
280 |
-
a.layout-hover:hover img {
|
281 |
-
position: absolute;
|
282 |
-
left: 100%;
|
283 |
-
top: 0;
|
284 |
-
z-index: 999;
|
285 |
-
opacity: 1;
|
286 |
-
filter: alpha(opacity=100);
|
287 |
-
}
|
288 |
-
|
289 |
-
.ajax-load-more p.highlight {
|
290 |
-
background-color: #fffbd4;
|
291 |
-
color: #333;
|
292 |
-
padding: 5px 10px;
|
293 |
-
border-radius: 3px;
|
294 |
-
margin: -5px 0 10px;
|
295 |
-
}
|
296 |
-
|
297 |
-
.ajax-load-more h1 {
|
298 |
-
font-weight: 600;
|
299 |
-
line-height: 28px;
|
300 |
-
}
|
301 |
-
.ajax-load-more h1,
|
302 |
-
.ajax-load-more h3,
|
303 |
-
.ajax-load-more h4 {
|
304 |
-
color: #444;
|
305 |
-
margin-top: 0;
|
306 |
-
}
|
307 |
-
.ajax-load-more h4 + p {
|
308 |
-
margin-top: -6px;
|
309 |
-
}
|
310 |
-
.ajax-load-more p.small {
|
311 |
-
font-size: 12px;
|
312 |
-
margin-top: -10px;
|
313 |
-
opacity: 0.7;
|
314 |
-
}
|
315 |
-
.ajax-load-more.shortcode-builder .major-publishing-actions {
|
316 |
-
position: relative;
|
317 |
-
}
|
318 |
-
.ajax-load-more p.small.reset-shortcode-builder {
|
319 |
-
position: absolute;
|
320 |
-
right: 15px;
|
321 |
-
top: 50%;
|
322 |
-
transform: translateY(-45%);
|
323 |
-
text-align: right;
|
324 |
-
margin: 0;
|
325 |
-
padding: 0;
|
326 |
-
display: none;
|
327 |
-
width: auto;
|
328 |
-
opacity: 1;
|
329 |
-
font-size: 12px;
|
330 |
-
}
|
331 |
-
.ajax-load-more p.small.reset-shortcode-builder a {
|
332 |
-
text-decoration: none;
|
333 |
-
}
|
334 |
-
|
335 |
-
/* Expand Collapse Headings */
|
336 |
-
.ajax-load-more h3.heading {
|
337 |
-
font-weight: 700;
|
338 |
-
padding: 15px 10px 15px 38px !important;
|
339 |
-
line-height: normal !important;
|
340 |
-
margin: 0 !important;
|
341 |
-
color: $grey;
|
342 |
-
cursor: pointer;
|
343 |
-
width: 100%;
|
344 |
-
position: relative;
|
345 |
-
font-size: 16px;
|
346 |
-
background: #f7f7f7;
|
347 |
-
border-bottom: 1px solid #e1e1e1;
|
348 |
-
}
|
349 |
-
.ajax-load-more h3.heading:hover:after,
|
350 |
-
.ajax-load-more h3.heading:focus:after {
|
351 |
-
color: #ccc;
|
352 |
-
}
|
353 |
-
.ajax-load-more h3.heading:hover,
|
354 |
-
.ajax-load-more h3.heading:focus {
|
355 |
-
color: #222;
|
356 |
-
outline: none;
|
357 |
-
}
|
358 |
-
.ajax-load-more h3.heading:after {
|
359 |
-
font-family: "FontAwesome";
|
360 |
-
content: "\f056";
|
361 |
-
color: #e1e1e1;
|
362 |
-
position: absolute;
|
363 |
-
left: 13px;
|
364 |
-
top: 16px;
|
365 |
-
height: 20px;
|
366 |
-
width: 20px;
|
367 |
-
}
|
368 |
-
.ajax-load-more h3.heading.open:after {
|
369 |
-
content: "\f055";
|
370 |
-
}
|
371 |
-
.ajax-load-more h3.heading.open {
|
372 |
-
border-bottom-color: transparent;
|
373 |
-
}
|
374 |
-
|
375 |
-
/* Expand/Collapse all rows */
|
376 |
-
.ajax-load-more {
|
377 |
-
.toggle-all {
|
378 |
-
position: static;
|
379 |
-
top: -16px;
|
380 |
-
right: 20px;
|
381 |
-
width: auto;
|
382 |
-
display: inline-block;
|
383 |
-
font-size: 11px;
|
384 |
-
text-transform: uppercase;
|
385 |
-
border-radius: 3px;
|
386 |
-
padding: 0 12px 0 10px;
|
387 |
-
height: 31px;
|
388 |
-
line-height: 30px;
|
389 |
-
background: #fff;
|
390 |
-
border: 1px solid #e1e1e1;
|
391 |
-
color: #777;
|
392 |
-
cursor: pointer;
|
393 |
-
z-index: 20;
|
394 |
-
margin-bottom: 10px;
|
395 |
-
overflow: hidden;
|
396 |
-
@media screen and (min-width: 768px) {
|
397 |
-
position: absolute;
|
398 |
-
}
|
399 |
-
}
|
400 |
-
.toggle-all:hover {
|
401 |
-
color: #ca5252;
|
402 |
-
}
|
403 |
-
.toggle-all .inner-wrap {
|
404 |
-
position: relative;
|
405 |
-
padding-left: 16px;
|
406 |
-
line-height: 24px;
|
407 |
-
}
|
408 |
-
.toggle-all .expand {
|
409 |
-
display: none;
|
410 |
-
}
|
411 |
-
.toggle-all .collapse {
|
412 |
-
display: inline-block;
|
413 |
-
}
|
414 |
-
.toggle-all em {
|
415 |
-
font-style: normal;
|
416 |
-
}
|
417 |
-
.toggle-all.closed .expand {
|
418 |
-
display: inline-block;
|
419 |
-
}
|
420 |
-
.toggle-all.closed .collapse {
|
421 |
-
display: none;
|
422 |
-
}
|
423 |
-
.toggle-all .inner-wrap:before {
|
424 |
-
font-family: "FontAwesome";
|
425 |
-
content: "\f068";
|
426 |
-
font-size: 10px;
|
427 |
-
position: absolute;
|
428 |
-
left: 0;
|
429 |
-
top: -5px;
|
430 |
-
}
|
431 |
-
.toggle-all.closed .inner-wrap:before {
|
432 |
-
content: "\f067";
|
433 |
-
}
|
434 |
-
}
|
435 |
-
#alm-container.ajax-load-more .toggle-all {
|
436 |
-
display: none;
|
437 |
-
}
|
438 |
-
|
439 |
-
#alm-builder {
|
440 |
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
441 |
-
Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
442 |
-
}
|
443 |
-
|
444 |
-
a.button-small {
|
445 |
-
text-decoration: none;
|
446 |
-
font-size: 12px;
|
447 |
-
padding: 7px 10px;
|
448 |
-
display: inline-block;
|
449 |
-
background-color: #eaf6fb;
|
450 |
-
border: 1px solid #b9d2de;
|
451 |
-
color: #333;
|
452 |
-
line-height: 1.1;
|
453 |
-
border-radius: 2px;
|
454 |
-
&:hover,
|
455 |
-
&:focus {
|
456 |
-
color: #222;
|
457 |
-
background-color: #d9edf5;
|
458 |
-
text-decoration: none;
|
459 |
-
border-color: #98b2be;
|
460 |
-
}
|
461 |
-
}
|
462 |
-
|
463 |
-
.ajax-load-more ul {
|
464 |
-
padding: 0;
|
465 |
-
margin: 0;
|
466 |
-
list-style: none;
|
467 |
-
}
|
468 |
-
#alm-builder li,
|
469 |
-
.forceColors li {
|
470 |
-
padding: 0 5% 0 0;
|
471 |
-
margin: 0 0 5px;
|
472 |
-
width: 48.666%;
|
473 |
-
clear: both;
|
474 |
-
display: inline-block;
|
475 |
-
vertical-align: top;
|
476 |
-
overflow: visible;
|
477 |
-
position: relative;
|
478 |
-
}
|
479 |
-
|
480 |
-
.ajax-load-more label.full {
|
481 |
-
display: block;
|
482 |
-
clear: both;
|
483 |
-
width: 100%;
|
484 |
-
color: #444;
|
485 |
-
font-weight: 600;
|
486 |
-
padding: 0 0 10px;
|
487 |
-
cursor: default;
|
488 |
-
font-size: 12px;
|
489 |
-
text-transform: uppercase;
|
490 |
-
}
|
491 |
-
.ajax-load-more .border-top {
|
492 |
-
display: block;
|
493 |
-
border-top: 1px solid #efefef;
|
494 |
-
width: 100%;
|
495 |
-
clear: both;
|
496 |
-
margin: 0 0 20px;
|
497 |
-
padding: 20px 0 0 !important;
|
498 |
-
overflow: visible;
|
499 |
-
position: relative;
|
500 |
-
}
|
501 |
-
.ajax-load-more .border-top.controls {
|
502 |
-
padding: 0 !important;
|
503 |
-
}
|
504 |
-
.ajax-load-more .border-top.controls button {
|
505 |
-
margin-top: 20px !important;
|
506 |
-
}
|
507 |
-
|
508 |
-
.ajax-load-more .border-top.highlighted {
|
509 |
-
background-color: #feffe3;
|
510 |
-
padding: 15px !important;
|
511 |
-
border: 1px solid #eeefd4;
|
512 |
-
}
|
513 |
-
|
514 |
-
.ajax-load-more .alm-settings-nav {
|
515 |
-
margin: 0 0 5px;
|
516 |
-
padding: 0;
|
517 |
-
overflow: hidden;
|
518 |
-
position: relative;
|
519 |
-
width: calc(100% + 40px);
|
520 |
-
top: -20px;
|
521 |
-
left: -20px;
|
522 |
-
border-bottom: 1px solid #ebebeb;
|
523 |
-
background: #f7f7f7;
|
524 |
-
border-radius: 3px 3px 0 0;
|
525 |
-
}
|
526 |
-
.alm-settings-nav li {
|
527 |
-
float: left;
|
528 |
-
margin: 0;
|
529 |
-
padding: 0;
|
530 |
-
font-weight: 600;
|
531 |
-
background: none;
|
532 |
-
font-size: 13px;
|
533 |
-
}
|
534 |
-
|
535 |
-
.alm-settings-nav a {
|
536 |
-
text-decoration: none;
|
537 |
-
padding: 8px 16px 8px 16px;
|
538 |
-
border-left: 1px solid #ebebeb;
|
539 |
-
display: block;
|
540 |
-
}
|
541 |
-
.alm-settings-nav a:hover {
|
542 |
-
color: #fff;
|
543 |
-
background-color: #ff5a58;
|
544 |
-
}
|
545 |
-
.alm-settings-nav li:first-of-type a {
|
546 |
-
border: none;
|
547 |
-
border-radius: 3px 0 0 0;
|
548 |
-
}
|
549 |
-
|
550 |
-
#meta-query-relation {
|
551 |
-
margin: 10px 0 0;
|
552 |
-
}
|
553 |
-
#meta-query-relation .inner {
|
554 |
-
margin: 5px 0 0 !important;
|
555 |
-
}
|
556 |
-
#alm-meta-key .meta-query-wrap,
|
557 |
-
.taxonomy-wrap {
|
558 |
-
padding: 15px;
|
559 |
-
border: 1px solid #efefef;
|
560 |
-
margin: 20px 0 0;
|
561 |
-
position: relative;
|
562 |
-
border-radius: 2px;
|
563 |
-
}
|
564 |
-
.meta-query-wrap.removing,
|
565 |
-
.taxonomy-wrap.removing {
|
566 |
-
background-color: #f5d0d0;
|
567 |
-
}
|
568 |
-
#alm-meta-key .meta-query-wrap-first .meta-query-wrap {
|
569 |
-
border: none;
|
570 |
-
background-color: transparent;
|
571 |
-
padding: 0;
|
572 |
-
margin: 0;
|
573 |
-
}
|
574 |
-
#meta-key .border-top {
|
575 |
-
border: none !important;
|
576 |
-
}
|
577 |
-
.row .controls {
|
578 |
-
display: block;
|
579 |
-
clear: both;
|
580 |
-
padding: 20px 0 10px;
|
581 |
-
overflow: hidden;
|
582 |
-
}
|
583 |
-
.row.taxonomy .controls {
|
584 |
-
padding-bottom: 20px;
|
585 |
-
}
|
586 |
-
.row.taxonomy .highlighted {
|
587 |
-
margin-bottom: 0 !important;
|
588 |
-
}
|
589 |
-
|
590 |
-
.meta-query-wrap .remove-meta-query,
|
591 |
-
.taxonomy-wrap .remove-tax-query {
|
592 |
-
position: absolute;
|
593 |
-
right: 7px;
|
594 |
-
top: 7px;
|
595 |
-
width: 24px;
|
596 |
-
height: 24px;
|
597 |
-
line-height: 24px;
|
598 |
-
text-align: center;
|
599 |
-
font-weight: 400;
|
600 |
-
font-size: 17px;
|
601 |
-
background-color: transparent;
|
602 |
-
color: #666;
|
603 |
-
text-decoration: none;
|
604 |
-
border-radius: 2px;
|
605 |
-
&:hover,
|
606 |
-
&:hover {
|
607 |
-
background-color: #cb2222;
|
608 |
-
color: #fff;
|
609 |
-
}
|
610 |
-
}
|
611 |
-
|
612 |
-
.ajax-load-more .meta-query-wrap .border-top:first-of-type {
|
613 |
-
padding: 0 0 0 !important;
|
614 |
-
border: none;
|
615 |
-
}
|
616 |
-
|
617 |
-
.ajax-load-more #taxonomy-extended,
|
618 |
-
.ajax-load-more #nav-controls,
|
619 |
-
.ajax-load-more #seo-extended,
|
620 |
-
.ajax-load-more #meta-query-relation,
|
621 |
-
.ajax-load-more #tax-query-relation,
|
622 |
-
.ajax-load-more .comments_extras,
|
623 |
-
.ajax-load-more #users-extended,
|
624 |
-
.ajax-load-more .taxonomy-extended,
|
625 |
-
.ajax-load-more #paging-controls-nav {
|
626 |
-
display: none;
|
627 |
-
overflow: hidden;
|
628 |
-
}
|
629 |
-
.ajax-load-more .taxonomy-extended {
|
630 |
-
padding-top: 20px;
|
631 |
-
}
|
632 |
-
.ajax-load-more #tax-query-relation {
|
633 |
-
margin-top: 20px;
|
634 |
-
}
|
635 |
-
.ajax-load-more .taxonomy-wrap {
|
636 |
-
display: none;
|
637 |
-
position: relative;
|
638 |
-
}
|
639 |
-
.ajax-load-more .row .wrap .inner .ajax-load-more p.warning {
|
640 |
-
color: #d24646;
|
641 |
-
font-size: 13px;
|
642 |
-
border-left: 3px solid #d24646;
|
643 |
-
margin: 0;
|
644 |
-
padding: 0 0 0 10px;
|
645 |
-
}
|
646 |
-
.ajax-load-more .row .wrap .inner.taxonomy {
|
647 |
-
padding-bottom: 0;
|
648 |
-
}
|
649 |
-
|
650 |
-
.ajax-load-more p.warning-callout {
|
651 |
-
background-color: #eaf6fb;
|
652 |
-
border-left: 6px solid #4e99bf;
|
653 |
-
color: #333;
|
654 |
-
font-size: 12px;
|
655 |
-
margin: 0;
|
656 |
-
display: block;
|
657 |
-
padding: 18px 100px 18px 18px;
|
658 |
-
border-radius: 3px;
|
659 |
-
margin: 10px;
|
660 |
-
width: auto;
|
661 |
-
line-height: 1.55;
|
662 |
-
position: relative;
|
663 |
-
a {
|
664 |
-
color: #0071ac;
|
665 |
-
}
|
666 |
-
a.button-small {
|
667 |
-
position: absolute;
|
668 |
-
right: 14px;
|
669 |
-
top: 14px;
|
670 |
-
font-size: 12px;
|
671 |
-
display: inline-block;
|
672 |
-
background-color: rgba(255, 255, 255, 0.75);
|
673 |
-
margin: 0 0 0 10px;
|
674 |
-
&:hover,
|
675 |
-
&:focus {
|
676 |
-
background-color: #fff;
|
677 |
-
}
|
678 |
-
}
|
679 |
-
strong {
|
680 |
-
display: inline-block;
|
681 |
-
font-weight: normal;
|
682 |
-
font-family: Consolas, monaco, monospace;
|
683 |
-
background-color: #fff;
|
684 |
-
padding: 1px 6px 0;
|
685 |
-
border-radius: 2px;
|
686 |
-
}
|
687 |
-
}
|
688 |
-
.ajax-load-more p.warning-callout.notify {
|
689 |
-
background-color: #da5858;
|
690 |
-
border-color: #b94848;
|
691 |
-
color: #fff;
|
692 |
-
strong {
|
693 |
-
background-color: #9a4343;
|
694 |
-
color: #fff;
|
695 |
-
}
|
696 |
-
}
|
697 |
-
|
698 |
-
.ajax-load-more label,
|
699 |
-
.ajax-load-more input,
|
700 |
-
.ajax-load-more select,
|
701 |
-
.ajax-load-more textarea {
|
702 |
-
font-size: 14px;
|
703 |
-
padding: 5px 8px;
|
704 |
-
width: auto;
|
705 |
-
margin-top: 0;
|
706 |
-
display: inline-block;
|
707 |
-
clear: both;
|
708 |
-
border-radius: 3px;
|
709 |
-
color: $grey;
|
710 |
-
box-shadow: none;
|
711 |
-
}
|
712 |
-
.ajax-load-more input[type="checkbox"],
|
713 |
-
.ajax-load-more input[type="radio"] {
|
714 |
-
width: 1rem;
|
715 |
-
}
|
716 |
-
|
717 |
-
.controls button.disabled {
|
718 |
-
opacity: 0.5;
|
719 |
-
}
|
720 |
-
|
721 |
-
.ajax-load-more textarea._alm_repeater {
|
722 |
-
font-family: Consolas, monaco, monospace;
|
723 |
-
font-size: 13px;
|
724 |
-
line-height: 19px;
|
725 |
-
padding: 10px;
|
726 |
-
}
|
727 |
-
.ajax-load-more textarea._alm_repeater:focus {
|
728 |
-
color: #222;
|
729 |
-
}
|
730 |
-
|
731 |
-
.ajax-load-more label {
|
732 |
-
padding: 5px 0;
|
733 |
-
border-radius: 0;
|
734 |
-
}
|
735 |
-
|
736 |
-
.checkboxes {
|
737 |
-
}
|
738 |
-
.checkboxes input,
|
739 |
-
.radio input {
|
740 |
-
margin-top: 2px;
|
741 |
-
}
|
742 |
-
.checkboxes input,
|
743 |
-
.checkboxes label,
|
744 |
-
.radio input,
|
745 |
-
.radio label {
|
746 |
-
float: left;
|
747 |
-
width: auto;
|
748 |
-
margin-right: 10px;
|
749 |
-
padding: 0;
|
750 |
-
clear: none;
|
751 |
-
}
|
752 |
-
.radio input {
|
753 |
-
margin-left: 3px;
|
754 |
-
}
|
755 |
-
.ajax-load-more textarea,
|
756 |
-
.ajax-load-more input[type="text"],
|
757 |
-
.ajax-load-more input[type="number"] {
|
758 |
-
padding: 10px 12px;
|
759 |
-
line-height: 1.3;
|
760 |
-
border: 1px solid #e1e1e1;
|
761 |
-
width: 60%;
|
762 |
-
}
|
763 |
-
.ajax-load-more input[type="text"].full {
|
764 |
-
width: 100%;
|
765 |
-
}
|
766 |
-
|
767 |
-
.ajax-load-more .wrap-30 {
|
768 |
-
width: 32.333%;
|
769 |
-
padding-right: 3%;
|
770 |
-
display: inline-block;
|
771 |
-
vertical-align: top;
|
772 |
-
}
|
773 |
-
.ajax-load-more .wrap-30.wrap-50 {
|
774 |
-
width: 48.6666%;
|
775 |
-
}
|
776 |
-
.ajax-load-more .wrap-30.wrap-50.padding-top {
|
777 |
-
padding-top: 15px;
|
778 |
-
}
|
779 |
-
.ajax-load-more .wrap-30 input[type="text"].sm,
|
780 |
-
.ajax-load-more .wrap-30 .select2-container {
|
781 |
-
width: 100%;
|
782 |
-
margin: 0;
|
783 |
-
}
|
784 |
-
|
785 |
-
.ajax-load-more input[type="number"].sm {
|
786 |
-
width: 100px;
|
787 |
-
}
|
788 |
-
|
789 |
-
.ajax-load-more ::-webkit-input-placeholder {
|
790 |
-
color: #999;
|
791 |
-
font-style: italic;
|
792 |
-
}
|
793 |
-
|
794 |
-
.ajax-load-more :-moz-placeholder {
|
795 |
-
/* Firefox 18- */
|
796 |
-
color: #999;
|
797 |
-
font-style: italic;
|
798 |
-
}
|
799 |
-
|
800 |
-
.ajax-load-more ::-moz-placeholder {
|
801 |
-
/* Firefox 19+ */
|
802 |
-
color: #999;
|
803 |
-
font-style: italic;
|
804 |
-
}
|
805 |
-
|
806 |
-
.ajax-load-more :-ms-input-placeholder {
|
807 |
-
color: #999;
|
808 |
-
font-style: italic;
|
809 |
-
}
|
810 |
-
|
811 |
-
.ajax-load-more input[type="text"],
|
812 |
-
.ajax-load-more input[type="number"],
|
813 |
-
.ajax-load-more input[type="email"],
|
814 |
-
.ajax-load-more textarea {
|
815 |
-
background: #f7f7f7;
|
816 |
-
}
|
817 |
-
.ajax-load-more .repeaters input[type="text"] {
|
818 |
-
padding: 9px 10px;
|
819 |
-
}
|
820 |
-
.ajax-load-more input[type="number"] {
|
821 |
-
height: auto;
|
822 |
-
}
|
823 |
-
|
824 |
-
.ajax-load-more input.disabled-input {
|
825 |
-
opacity: 0.5;
|
826 |
-
filter: alpha(opacity=50);
|
827 |
-
cursor: not-allowed;
|
828 |
-
background: #f7f7f7 !important;
|
829 |
-
border-color: #ccc !important;
|
830 |
-
box-shadow: none !important;
|
831 |
-
}
|
832 |
-
.ajax-load-more input[type="text"]:focus,
|
833 |
-
.ajax-load-more input[type="number"]:focus,
|
834 |
-
.ajax-load-more input[type="email"]:focus,
|
835 |
-
.ajax-load-more textarea:focus {
|
836 |
-
border-color: #bbbbbb;
|
837 |
-
box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
|
838 |
-
background: #f7f7f7;
|
839 |
-
}
|
840 |
-
|
841 |
-
.checkboxes label {
|
842 |
-
margin-right: 5px;
|
843 |
-
}
|
844 |
-
|
845 |
-
.ajax-load-more .one_half {
|
846 |
-
display: inline-block;
|
847 |
-
width: 48%;
|
848 |
-
margin: 0 -2px 1% 2%;
|
849 |
-
vertical-align: top;
|
850 |
-
}
|
851 |
-
.ajax-load-more .one_half:first-of-type {
|
852 |
-
margin: 0 2% 1% 0;
|
853 |
-
}
|
854 |
-
|
855 |
-
// 2018 Grid
|
856 |
-
.ajax-load-more .alm-row {
|
857 |
-
display: block;
|
858 |
-
width: 100%;
|
859 |
-
&:after {
|
860 |
-
content: "";
|
861 |
-
clear: both;
|
862 |
-
display: table;
|
863 |
-
}
|
864 |
-
&--margin-btm {
|
865 |
-
margin-bottom: $padding;
|
866 |
-
}
|
867 |
-
&--margin-btm-lg {
|
868 |
-
margin-bottom: $gutter;
|
869 |
-
}
|
870 |
-
.column {
|
871 |
-
width: 100%;
|
872 |
-
float: none;
|
873 |
-
padding: 0 $padding;
|
874 |
-
&--half {
|
875 |
-
width: 50%;
|
876 |
-
float: left;
|
877 |
-
}
|
878 |
-
&--one-third {
|
879 |
-
width: 33.333%;
|
880 |
-
float: left;
|
881 |
-
}
|
882 |
-
&--two-third {
|
883 |
-
width: 66.666%;
|
884 |
-
float: left;
|
885 |
-
}
|
886 |
-
&--one-fourth {
|
887 |
-
width: 25%;
|
888 |
-
float: left;
|
889 |
-
}
|
890 |
-
@media screen and (max-width: $small) {
|
891 |
-
&--half,
|
892 |
-
&--one-third {
|
893 |
-
float: none;
|
894 |
-
width: 100%;
|
895 |
-
}
|
896 |
-
}
|
897 |
-
}
|
898 |
-
}
|
899 |
-
|
900 |
-
/* --------------------------------------------------------------------------- */
|
901 |
-
/* Row */
|
902 |
-
/* --------------------------------------------------------------------------- */
|
903 |
-
|
904 |
-
.ajax-load-more .row {
|
905 |
-
padding: 0 !important;
|
906 |
-
margin: 10px 0 0;
|
907 |
-
height: auto;
|
908 |
-
width: 100%;
|
909 |
-
display: block;
|
910 |
-
overflow: hidden;
|
911 |
-
clear: both;
|
912 |
-
border: 1px solid $border;
|
913 |
-
border-radius: $radius;
|
914 |
-
&.no-brd {
|
915 |
-
border: none !important;
|
916 |
-
padding: 0 !important;
|
917 |
-
}
|
918 |
-
}
|
919 |
-
.ajax-load-more#alm-repeaters .row {
|
920 |
-
overflow: visible;
|
921 |
-
}
|
922 |
-
.admin.ajax-load-more .row,
|
923 |
-
.forceColors .ajax-load-more .row {
|
924 |
-
border-color: #e1e1e1;
|
925 |
-
}
|
926 |
-
.admin.ajax-load-more .repeaters .row:hover,
|
927 |
-
.admin.ajax-load-more.shortcode-builder .row:hover {
|
928 |
-
border-color: #d9d9d9;
|
929 |
-
box-shadow: 0 0 0 3px #f7f7f7;
|
930 |
-
}
|
931 |
-
.admin.ajax-load-more .row:first-of-type {
|
932 |
-
margin-top: 20px;
|
933 |
-
padding-top: 0;
|
934 |
-
}
|
935 |
-
.ajax-load-more .intro {
|
936 |
-
height: auto;
|
937 |
-
width: 100%;
|
938 |
-
display: block;
|
939 |
-
overflow: hidden;
|
940 |
-
}
|
941 |
-
|
942 |
-
/* Jump Menu */
|
943 |
-
|
944 |
-
.pop-up-jump {
|
945 |
-
display: block;
|
946 |
-
width: 100%;
|
947 |
-
.jump-menu-wrap {
|
948 |
-
position: relative;
|
949 |
-
float: right;
|
950 |
-
width: 30%;
|
951 |
-
}
|
952 |
-
.jump-menu-wrap .select2-container {
|
953 |
-
width: 100% !important;
|
954 |
-
margin-bottom: 15px;
|
955 |
-
position: relative;
|
956 |
-
top: -5px;
|
957 |
-
}
|
958 |
-
.intro-wrap {
|
959 |
-
position: relative;
|
960 |
-
float: left;
|
961 |
-
width: 65%;
|
962 |
-
padding-right: 5%;
|
963 |
-
}
|
964 |
-
}
|
965 |
-
.admin.ajax-load-more .jump-menu {
|
966 |
-
display: none;
|
967 |
-
}
|
968 |
-
|
969 |
-
/* Table of Contents */
|
970 |
-
#cnkt-sticky {
|
971 |
-
}
|
972 |
-
#cnkt-sticky.attached {
|
973 |
-
position: fixed;
|
974 |
-
width: auto;
|
975 |
-
top: 70px;
|
976 |
-
}
|
977 |
-
.table-of-contents .select2-container {
|
978 |
-
width: 100%;
|
979 |
-
}
|
980 |
-
.table-of-contents ul {
|
981 |
-
margin: 0 !important;
|
982 |
-
}
|
983 |
-
.table-of-contents li {
|
984 |
-
width: auto !important;
|
985 |
-
display: inline-block;
|
986 |
-
vertical-align: top;
|
987 |
-
padding: 0;
|
988 |
-
margin: 5px 5px 5px 0;
|
989 |
-
}
|
990 |
-
|
991 |
-
.ajax-load-more .expand-wrap {
|
992 |
-
display: block;
|
993 |
-
}
|
994 |
-
#alm-examples.ajax-load-more .expand-wrap {
|
995 |
-
padding: 10px 10px 0;
|
996 |
-
}
|
997 |
-
.ajax-load-more .expand-wrap hr {
|
998 |
-
border: 0;
|
999 |
-
height: 0;
|
1000 |
-
border-top: 1px solid #efefef;
|
1001 |
-
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
|
1002 |
-
}
|
1003 |
-
hr.indented {
|
1004 |
-
// Indented as fake padding in shortcode builder
|
1005 |
-
width: calc(100% - 40px);
|
1006 |
-
margin-left: 20px;
|
1007 |
-
}
|
1008 |
-
.ajax-load-more .section-title {
|
1009 |
-
float: left;
|
1010 |
-
padding: 20px 0 25px 20px;
|
1011 |
-
width: 35%;
|
1012 |
-
&.full {
|
1013 |
-
width: 100%;
|
1014 |
-
float: none;
|
1015 |
-
padding-right: 25px;
|
1016 |
-
}
|
1017 |
-
p:last-of-type {
|
1018 |
-
margin-bottom: 0;
|
1019 |
-
}
|
1020 |
-
small {
|
1021 |
-
font-size: 12px;
|
1022 |
-
padding-top: 10px;
|
1023 |
-
display: block;
|
1024 |
-
}
|
1025 |
-
h4 {
|
1026 |
-
font-size: 14px;
|
1027 |
-
font-weight: 600;
|
1028 |
-
margin-bottom: 15px;
|
1029 |
-
}
|
1030 |
-
p,
|
1031 |
-
.wrap p.descriptor {
|
1032 |
-
font-size: 13px;
|
1033 |
-
line-height: 20px;
|
1034 |
-
color: #999;
|
1035 |
-
}
|
1036 |
-
}
|
1037 |
-
.ajax-load-more .wrap p.descriptor {
|
1038 |
-
margin: 0;
|
1039 |
-
font-style: italic;
|
1040 |
-
}
|
1041 |
-
.ajax-load-more .section-title p .fa.tooltip:hover,
|
1042 |
-
.form-table label .fa.tooltip:hover {
|
1043 |
-
opacity: 1;
|
1044 |
-
}
|
1045 |
-
.ajax-load-more .fa.tooltip {
|
1046 |
-
display: inline-block;
|
1047 |
-
margin: 0 2px;
|
1048 |
-
text-decoration: none;
|
1049 |
-
cursor: help;
|
1050 |
-
position: relative;
|
1051 |
-
top: 0;
|
1052 |
-
background: #fff;
|
1053 |
-
border-radius: 100%;
|
1054 |
-
width: 20px;
|
1055 |
-
height: 20px;
|
1056 |
-
text-align: center;
|
1057 |
-
line-height: 20px;
|
1058 |
-
box-shadow: 0 -1px 1px #ccc;
|
1059 |
-
}
|
1060 |
-
.cta h3 .fa.tooltip {
|
1061 |
-
top: 1px;
|
1062 |
-
}
|
1063 |
-
.ajax-load-more .section-title p span,
|
1064 |
-
.admin.ajax-load-more.settings .form-table p.notify span {
|
1065 |
-
display: inline-block;
|
1066 |
-
padding: 0 4px;
|
1067 |
-
border-radius: 2px;
|
1068 |
-
background: #f7f7f7;
|
1069 |
-
border: 1px solid #efefef;
|
1070 |
-
color: #666;
|
1071 |
-
}
|
1072 |
-
.ajax-load-more .section-title h4 {
|
1073 |
-
margin: 0 0 10px;
|
1074 |
-
}
|
1075 |
-
|
1076 |
-
.ajax-load-more .repeaters .section-title,
|
1077 |
-
.ajax-load-more .repeaters .row .wrap {
|
1078 |
-
width: 100%;
|
1079 |
-
float: none;
|
1080 |
-
padding: 0;
|
1081 |
-
}
|
1082 |
-
.ajax-load-more .repeaters .section-title p {
|
1083 |
-
padding-left: 0 !important;
|
1084 |
-
}
|
1085 |
-
.ajax-load-more label.template-title {
|
1086 |
-
padding: 3px 2px 0;
|
1087 |
-
margin: 0;
|
1088 |
-
display: block;
|
1089 |
-
&.has-margin-btm {
|
1090 |
-
margin-bottom: 10px;
|
1091 |
-
}
|
1092 |
-
}
|
1093 |
-
|
1094 |
-
.ajax-load-more label input._alm_repeater_alias {
|
1095 |
-
height: auto;
|
1096 |
-
line-height: normal !important;
|
1097 |
-
}
|
1098 |
-
|
1099 |
-
.preload_amount,
|
1100 |
-
.cache_id,
|
1101 |
-
.alternate_template_wrap,
|
1102 |
-
.cta_template_wrap,
|
1103 |
-
.restapi_options,
|
1104 |
-
.filters_options,
|
1105 |
-
.next-page-content,
|
1106 |
-
.acf-options,
|
1107 |
-
.masonry-options,
|
1108 |
-
.progress-bar-options,
|
1109 |
-
.hide-section {
|
1110 |
-
display: none;
|
1111 |
-
}
|
1112 |
-
|
1113 |
-
.ajax-load-more .row .wrap {
|
1114 |
-
padding: 20px 20px 0 5%;
|
1115 |
-
margin: 0;
|
1116 |
-
border: none;
|
1117 |
-
width: 65%;
|
1118 |
-
float: left;
|
1119 |
-
position: relative;
|
1120 |
-
}
|
1121 |
-
.ajax-load-more .row .wrap.full {
|
1122 |
-
float: none;
|
1123 |
-
width: 100%;
|
1124 |
-
padding: 0 15px 15px 36px;
|
1125 |
-
}
|
1126 |
-
|
1127 |
-
/* ***********************************
|
1128 |
-
-- Shortcode Output
|
1129 |
-
**************************************/
|
1130 |
-
.ajax-load-more .output-wrap {
|
1131 |
-
padding: 0 50px 0 15px;
|
1132 |
-
margin: 0;
|
1133 |
-
position: fixed;
|
1134 |
-
bottom: 0;
|
1135 |
-
left: 0;
|
1136 |
-
background: #ff5a58;
|
1137 |
-
border-top: 1px solid #ca5252;
|
1138 |
-
box-shadow: 0 -5px 5px #efefef;
|
1139 |
-
width: 100%;
|
1140 |
-
display: block;
|
1141 |
-
z-index: 1;
|
1142 |
-
}
|
1143 |
-
.admin.ajax-load-more .output-wrap {
|
1144 |
-
position: static;
|
1145 |
-
overflow: hidden;
|
1146 |
-
margin-top: 20px;
|
1147 |
-
border-radius: 2px;
|
1148 |
-
border: none;
|
1149 |
-
padding: 0;
|
1150 |
-
box-shadow: none;
|
1151 |
-
}
|
1152 |
-
.ajax-load-more .row .wrap.output {
|
1153 |
-
display: block !important;
|
1154 |
-
}
|
1155 |
-
.ajax-load-more .row .wrap .inner {
|
1156 |
-
padding: 0 0 20px;
|
1157 |
-
}
|
1158 |
-
.ajax-load-more .row .wrap .inner.half {
|
1159 |
-
padding: 0 0 20px;
|
1160 |
-
width: 49.333%;
|
1161 |
-
display: inline-block;
|
1162 |
-
}
|
1163 |
-
|
1164 |
-
.output-wrap .copy {
|
1165 |
-
background: #fff;
|
1166 |
-
color: #ff5a58;
|
1167 |
-
margin: 0;
|
1168 |
-
display: inline-block;
|
1169 |
-
z-index: 9;
|
1170 |
-
padding: 3px 8px;
|
1171 |
-
cursor: pointer;
|
1172 |
-
border-radius: 2px;
|
1173 |
-
position: fixed;
|
1174 |
-
right: 10px;
|
1175 |
-
bottom: 10px;
|
1176 |
-
font-size: 11px;
|
1177 |
-
font-weight: 600;
|
1178 |
-
text-transform: uppercase;
|
1179 |
-
opacity: 0.6;
|
1180 |
-
filter: alpha(opacity = 60);
|
1181 |
-
}
|
1182 |
-
.admin.ajax-load-more .output-wrap .copy {
|
1183 |
-
float: right;
|
1184 |
-
position: relative;
|
1185 |
-
top: -10px;
|
1186 |
-
}
|
1187 |
-
.output-wrap .copy:hover,
|
1188 |
-
.output-wrap .copy:active {
|
1189 |
-
opacity: 1;
|
1190 |
-
filter: alpha(opacity = 100);
|
1191 |
-
}
|
1192 |
-
.output-wrap .copy:active {
|
1193 |
-
box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.1);
|
1194 |
-
}
|
1195 |
-
|
1196 |
-
.shortcode-display {
|
1197 |
-
float: right;
|
1198 |
-
width: 75%;
|
1199 |
-
}
|
1200 |
-
.admin.ajax-load-more .shortcode-display {
|
1201 |
-
float: none;
|
1202 |
-
width: 100%;
|
1203 |
-
}
|
1204 |
-
|
1205 |
-
#shortcode_output {
|
1206 |
-
border-left: 1px solid #ca5252;
|
1207 |
-
padding: 26px 10px 26px 30px;
|
1208 |
-
font-family: monospace;
|
1209 |
-
font-size: 13px;
|
1210 |
-
color: #fff;
|
1211 |
-
cursor: pointer;
|
1212 |
-
word-wrap: break-word;
|
1213 |
-
}
|
1214 |
-
|
1215 |
-
.admin.ajax-load-more #shortcode_output {
|
1216 |
-
border: none;
|
1217 |
-
padding: 12px 12px 24px;
|
1218 |
-
}
|
1219 |
-
|
1220 |
-
#shortcode_output::-moz-selection {
|
1221 |
-
background: #fff;
|
1222 |
-
color: #ca5252;
|
1223 |
-
text-shadow: none;
|
1224 |
-
}
|
1225 |
-
#shortcode_output::selection {
|
1226 |
-
background: #fff;
|
1227 |
-
color: #ca5252;
|
1228 |
-
text-shadow: none;
|
1229 |
-
}
|
1230 |
-
|
1231 |
-
/*
|
1232 |
-
* Insert Shortcode Button
|
1233 |
-
*
|
1234 |
-
* @since 1.0
|
1235 |
-
*/
|
1236 |
-
|
1237 |
-
#insert.insert_alm {
|
1238 |
-
background: #fff !important;
|
1239 |
-
color: #ca5252 !important;
|
1240 |
-
border: none;
|
1241 |
-
font-size: 14px !important;
|
1242 |
-
font-weight: 600;
|
1243 |
-
padding: 8px 13px;
|
1244 |
-
display: inline-block;
|
1245 |
-
text-align: center;
|
1246 |
-
margin: 15px 0;
|
1247 |
-
float: left;
|
1248 |
-
line-height: normal !important;
|
1249 |
-
height: auto !important;
|
1250 |
-
box-shadow: inset 0 -15px 15px rgba(0, 0, 0, 0.1), 0 1px 0px #ca5252;
|
1251 |
-
text-shadow: none !important;
|
1252 |
-
max-width: 20%;
|
1253 |
-
border-radius: 2px;
|
1254 |
-
}
|
1255 |
-
.admin.ajax-load-more #insert.insert_alm {
|
1256 |
-
display: none;
|
1257 |
-
}
|
1258 |
-
|
1259 |
-
#insert.insert_alm:hover {
|
1260 |
-
box-shadow: inset 0 -15px 15px rgba(0, 0, 0, 0.1),
|
1261 |
-
0 0 3px rgba(255, 255, 255, 1);
|
1262 |
-
}
|
1263 |
-
#insert.insert_alm:active {
|
1264 |
-
background: #d0413f !important;
|
1265 |
-
box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.1);
|
1266 |
-
color: #fff !important;
|
1267 |
-
}
|
1268 |
-
|
1269 |
-
.ajax-load-more .clear {
|
1270 |
-
clear: both;
|
1271 |
-
height: auto;
|
1272 |
-
overflow: hidden;
|
1273 |
-
width: 100%;
|
1274 |
-
padding: 0;
|
1275 |
-
margin: 0;
|
1276 |
-
}
|
1277 |
-
|
1278 |
-
/*
|
1279 |
-
* Admin Screens - Setting pages
|
1280 |
-
*
|
1281 |
-
* @since 1.0
|
1282 |
-
*/
|
1283 |
-
|
1284 |
-
.form-table label {
|
1285 |
-
display: block;
|
1286 |
-
clear: both;
|
1287 |
-
float: none;
|
1288 |
-
vertical-align: top;
|
1289 |
-
padding: 0 0 8px;
|
1290 |
-
max-width: 90%;
|
1291 |
-
cursor: pointer !important;
|
1292 |
-
line-height: 1.5;
|
1293 |
-
}
|
1294 |
-
.form-table input[type="radio"],
|
1295 |
-
.form-table input[type="checkbox"] {
|
1296 |
-
vertical-align: top;
|
1297 |
-
margin-top: 0 !important;
|
1298 |
-
max-width: 8%;
|
1299 |
-
}
|
1300 |
-
.form-table label + textarea {
|
1301 |
-
margin-top: 10px;
|
1302 |
-
}
|
1303 |
-
.form-table label span,
|
1304 |
-
#alm-shortcode-builder-form label span.description {
|
1305 |
-
font-size: 13px;
|
1306 |
-
color: #999;
|
1307 |
-
padding-top: 10px;
|
1308 |
-
}
|
1309 |
-
#alm-shortcode-builder-form label span.description {
|
1310 |
-
display: block;
|
1311 |
-
padding-top: 1px;
|
1312 |
-
padding-bottom: 5px;
|
1313 |
-
}
|
1314 |
-
|
1315 |
-
.form-table .template-tags {
|
1316 |
-
overflow: hidden;
|
1317 |
-
border-left: 6px solid #dfd8c2;
|
1318 |
-
padding: 15px;
|
1319 |
-
background: #fff9ea;
|
1320 |
-
margin: 20px 0 0;
|
1321 |
-
border-radius: 3px;
|
1322 |
-
}
|
1323 |
-
.form-table .template-tags h4,
|
1324 |
-
.form-table .template-tags li {
|
1325 |
-
margin: 0 0 8px;
|
1326 |
-
padding: 0;
|
1327 |
-
font-size: 13px;
|
1328 |
-
}
|
1329 |
-
.form-table .template-tags li {
|
1330 |
-
margin: 2px 0;
|
1331 |
-
}
|
1332 |
-
.form-table .template-tags ul {
|
1333 |
-
margin: 0;
|
1334 |
-
padding: 0;
|
1335 |
-
}
|
1336 |
-
.form-table .template-tags pre {
|
1337 |
-
display: inline-block;
|
1338 |
-
min-width: 120px;
|
1339 |
-
padding: 0;
|
1340 |
-
margin: 0;
|
1341 |
-
color: #888;
|
1342 |
-
}
|
1343 |
-
|
1344 |
-
.admin.ajax-load-more .form-table textarea {
|
1345 |
-
clear: both;
|
1346 |
-
display: inline-block;
|
1347 |
-
float: none;
|
1348 |
-
width: 100%;
|
1349 |
-
}
|
1350 |
-
.admin.ajax-load-more textarea.disabled,
|
1351 |
-
.admin.ajax-load-more input.disabled {
|
1352 |
-
opacity: 0.9;
|
1353 |
-
filter: alpha(opacity=90);
|
1354 |
-
cursor: default;
|
1355 |
-
border: 1px solid #ccc;
|
1356 |
-
background: #efefef;
|
1357 |
-
color: #666;
|
1358 |
-
text-shadow: 1px 1px 0 #fff;
|
1359 |
-
resize: none;
|
1360 |
-
}
|
1361 |
-
|
1362 |
-
.admin.ajax-load-more .form-table input[type="radio"],
|
1363 |
-
.admin.ajax-load-more .form-table input[type="checkbox"] {
|
1364 |
-
margin-right: 10px;
|
1365 |
-
margin-top: 0 !important;
|
1366 |
-
}
|
1367 |
-
|
1368 |
-
.admin.ajax-load-more.settings input[type="text"],
|
1369 |
-
.admin.ajax-load-more.settings input[type="number"],
|
1370 |
-
.admin.ajax-load-more.settings .select2-container {
|
1371 |
-
margin-top: 10px;
|
1372 |
-
}
|
1373 |
-
.admin.ajax-load-more .alm-btn-wrap {
|
1374 |
-
text-align: left;
|
1375 |
-
}
|
1376 |
-
.admin.ajax-load-more .ajax-load-more-wrap {
|
1377 |
-
position: relative;
|
1378 |
-
top: 5px;
|
1379 |
-
padding: 15px;
|
1380 |
-
border: 1px dashed #e1e1e1;
|
1381 |
-
display: inline-block;
|
1382 |
-
margin-top: 10px;
|
1383 |
-
margin-bottom: 10px;
|
1384 |
-
&.preview-pane.none {
|
1385 |
-
display: none;
|
1386 |
-
}
|
1387 |
-
button {
|
1388 |
-
margin: 0 !important;
|
1389 |
-
}
|
1390 |
-
> span {
|
1391 |
-
display: block;
|
1392 |
-
font-size: 10px;
|
1393 |
-
line-height: 1;
|
1394 |
-
opacity: 0.7;
|
1395 |
-
padding: 0 0 15px;
|
1396 |
-
text-transform: uppercase;
|
1397 |
-
}
|
1398 |
-
}
|
1399 |
-
|
1400 |
-
.admin.ajax-load-more.settings .ajax-load-more-wrap.pages {
|
1401 |
-
}
|
1402 |
-
.admin.ajax-load-more.settings .ajax-load-more-wrap.pages li {
|
1403 |
-
font-size: 14px;
|
1404 |
-
}
|
1405 |
-
.admin.ajax-load-more.settings .ajax-load-more-wrap.pages li a {
|
1406 |
-
text-decoration: none;
|
1407 |
-
}
|
1408 |
-
|
1409 |
-
/* Table Overrides */
|
1410 |
-
.admin.ajax-load-more.settings .form-table td,
|
1411 |
-
.admin.ajax-load-more.settings .form-table th {
|
1412 |
-
padding: 20px;
|
1413 |
-
line-height: 1.5;
|
1414 |
-
}
|
1415 |
-
.admin.ajax-load-more.settings .form-table td {
|
1416 |
-
padding-right: 20px;
|
1417 |
-
}
|
1418 |
-
.admin.ajax-load-more.settings .form-table th {
|
1419 |
-
padding-left: 20px;
|
1420 |
-
font-weight: 700;
|
1421 |
-
background-color: #f7f7f7;
|
1422 |
-
border-right: 1px solid #e1e1e1;
|
1423 |
-
}
|
1424 |
-
.admin.ajax-load-more.settings .form-table p {
|
1425 |
-
margin-top: 0;
|
1426 |
-
}
|
1427 |
-
.admin.ajax-load-more.settings .form-table p.notify {
|
1428 |
-
font-size: 12px;
|
1429 |
-
padding: 5px 0;
|
1430 |
-
margin: 5px 0 20px;
|
1431 |
-
overflow: hidden;
|
1432 |
-
color: #999;
|
1433 |
-
}
|
1434 |
-
|
1435 |
-
.ajax-load-more h2.addon-title {
|
1436 |
-
font-size: 19px !important;
|
1437 |
-
line-height: 24px;
|
1438 |
-
font-weight: 700 !important;
|
1439 |
-
color: #444 !important;
|
1440 |
-
padding: 0;
|
1441 |
-
margin: 0 0 10px;
|
1442 |
-
}
|
1443 |
-
.ajax-load-more p.addon-intro {
|
1444 |
-
font-size: 16px !important;
|
1445 |
-
line-height: 22px !important;
|
1446 |
-
color: #999 !important;
|
1447 |
-
}
|
1448 |
-
|
1449 |
-
.ajax-load-more h3.add-on-title {
|
1450 |
-
padding: 0 0 10px;
|
1451 |
-
margin: 0 0 20px;
|
1452 |
-
border-bottom: 1px solid #efefef;
|
1453 |
-
}
|
1454 |
-
.ajax-load-more h3 {
|
1455 |
-
margin-bottom: 10px;
|
1456 |
-
}
|
1457 |
-
.ajax-load-more h3.add-on-title,
|
1458 |
-
.ajax-load-more .cnkt-sidebar h3 {
|
1459 |
-
padding: 0 0 10px;
|
1460 |
-
margin: 0 0 20px;
|
1461 |
-
border-bottom: 1px solid #efefef;
|
1462 |
-
}
|
1463 |
-
.ajax-load-more p.desc,
|
1464 |
-
.ajax-load-more p.writeable-title {
|
1465 |
-
padding: 0 0 2px 28px;
|
1466 |
-
}
|
1467 |
-
.ajax-load-more p.desc {
|
1468 |
-
font-size: 13px !important;
|
1469 |
-
line-height: 19px !important;
|
1470 |
-
}
|
1471 |
-
.ajax-load-more p.writeable-title {
|
1472 |
-
position: relative;
|
1473 |
-
}
|
1474 |
-
.ajax-load-more p.writeable-title i {
|
1475 |
-
position: absolute !important;
|
1476 |
-
left: 0 !important;
|
1477 |
-
top: 1px !important;
|
1478 |
-
}
|
1479 |
-
|
1480 |
-
.ajax-load-more p.back2top {
|
1481 |
-
font-size: 14px;
|
1482 |
-
margin: 0;
|
1483 |
-
padding: 0;
|
1484 |
-
text-align: center;
|
1485 |
-
}
|
1486 |
-
.ajax-load-more p.back2top a {
|
1487 |
-
text-decoration: none;
|
1488 |
-
display: block;
|
1489 |
-
}
|
1490 |
-
|
1491 |
-
.saved-response,
|
1492 |
-
p.loading {
|
1493 |
-
font-size: 12px;
|
1494 |
-
padding: 0;
|
1495 |
-
color: #999;
|
1496 |
-
background: none;
|
1497 |
-
transition: padding 0.2s ease;
|
1498 |
-
display: inline-block;
|
1499 |
-
width: auto;
|
1500 |
-
position: relative;
|
1501 |
-
top: 5px;
|
1502 |
-
left: 15px;
|
1503 |
-
}
|
1504 |
-
|
1505 |
-
.saved-error {
|
1506 |
-
color: #e03e3e;
|
1507 |
-
}
|
1508 |
-
.saved-response em {
|
1509 |
-
color: #333;
|
1510 |
-
display: block;
|
1511 |
-
padding: 5px 0;
|
1512 |
-
}
|
1513 |
-
|
1514 |
-
.saved {
|
1515 |
-
color: #90be59;
|
1516 |
-
font-weight: 700;
|
1517 |
-
}
|
1518 |
-
|
1519 |
-
p.loading {
|
1520 |
-
position: static;
|
1521 |
-
}
|
1522 |
-
.saved-response.loading,
|
1523 |
-
p.loading,
|
1524 |
-
.alm-dropdown ul li a.updating {
|
1525 |
-
background: url("../../img/loader.gif") no-repeat left center;
|
1526 |
-
padding-left: 24px;
|
1527 |
-
}
|
1528 |
-
|
1529 |
-
.alm-dropdown ul li a.updating {
|
1530 |
-
background-position: 9px 54%;
|
1531 |
-
padding-left: 34px;
|
1532 |
-
}
|
1533 |
-
|
1534 |
-
.restore-default {
|
1535 |
-
float: right;
|
1536 |
-
margin: 19px 20px 0 0;
|
1537 |
-
font-size: 12px;
|
1538 |
-
}
|
1539 |
-
.restore-default a {
|
1540 |
-
text-decoration: none;
|
1541 |
-
}
|
1542 |
-
|
1543 |
-
table.highlight {
|
1544 |
-
background: #fff !important;
|
1545 |
-
}
|
1546 |
-
|
1547 |
-
/* Columns */
|
1548 |
-
.ajax-load-more .cnkt-main {
|
1549 |
-
width: 67%;
|
1550 |
-
float: left;
|
1551 |
-
background: #fff !important;
|
1552 |
-
padding: $gutter;
|
1553 |
-
border-right: 1px solid #e1e1e1;
|
1554 |
-
&.full {
|
1555 |
-
border: none !important;
|
1556 |
-
}
|
1557 |
-
}
|
1558 |
-
.ajax-load-more .cnkt-main .group {
|
1559 |
-
background: #fff;
|
1560 |
-
padding: 20px;
|
1561 |
-
margin: 0 0 20px;
|
1562 |
-
position: relative;
|
1563 |
-
display: block;
|
1564 |
-
clear: both;
|
1565 |
-
}
|
1566 |
-
.ajax-load-more .cnkt-main .group,
|
1567 |
-
.ajax-load-more .cnkt-sidebar .cta,
|
1568 |
-
.call-out.light {
|
1569 |
-
border: 1px solid #e1e1e1;
|
1570 |
-
border-radius: 3px;
|
1571 |
-
box-shadow: 0 0 5px rgba(#000, 0.1);
|
1572 |
-
&.no-shadow {
|
1573 |
-
box-shadow: none;
|
1574 |
-
}
|
1575 |
-
}
|
1576 |
-
|
1577 |
-
.ajax-load-more .cnkt-main .repeater-listing {
|
1578 |
-
border-top: 1px solid $border;
|
1579 |
-
padding-top: 20px;
|
1580 |
-
position: relative;
|
1581 |
-
.toggle-all {
|
1582 |
-
right: 0;
|
1583 |
-
top: -45px;
|
1584 |
-
}
|
1585 |
-
}
|
1586 |
-
|
1587 |
-
.ajax-load-more .cnkt-main.full {
|
1588 |
-
width: 100%;
|
1589 |
-
float: none;
|
1590 |
-
}
|
1591 |
-
.ajax-load-more .cnkt-main h2,
|
1592 |
-
.ajax-load-more .cnkt-main h3,
|
1593 |
-
.ajax-load-more .cnkt-main h4 {
|
1594 |
-
margin-top: 0;
|
1595 |
-
}
|
1596 |
-
.form-table tr {
|
1597 |
-
border-top: 1px solid #e1e1e1;
|
1598 |
-
}
|
1599 |
-
.form-table {
|
1600 |
-
border: 1px solid #e1e1e1;
|
1601 |
-
margin: 0 0 20px;
|
1602 |
-
br {
|
1603 |
-
height: 1px;
|
1604 |
-
display: block;
|
1605 |
-
overflow: hidden;
|
1606 |
-
line-height: 1px;
|
1607 |
-
margin: 0;
|
1608 |
-
content: "";
|
1609 |
-
}
|
1610 |
-
}
|
1611 |
-
#alm_OptionsForm {
|
1612 |
-
.form-table:last-of-type {
|
1613 |
-
margin-bottom: 0;
|
1614 |
-
}
|
1615 |
-
}
|
1616 |
-
|
1617 |
-
/* Repeaters */
|
1618 |
-
.repeaters {
|
1619 |
-
.repeater-wrap {
|
1620 |
-
padding: 15px 0 !important;
|
1621 |
-
}
|
1622 |
-
.repeater-wrap label {
|
1623 |
-
font-weight: 600;
|
1624 |
-
span {
|
1625 |
-
display: block;
|
1626 |
-
font-weight: 400;
|
1627 |
-
color: #999;
|
1628 |
-
font-size: 13px;
|
1629 |
-
padding-top: 2px;
|
1630 |
-
}
|
1631 |
-
}
|
1632 |
-
input.save-repeater {
|
1633 |
-
display: inline-block;
|
1634 |
-
margin: 0;
|
1635 |
-
clear: none;
|
1636 |
-
max-width: 25%;
|
1637 |
-
}
|
1638 |
-
.repeater-wrap textarea,
|
1639 |
-
.repeater-wrap input[type="text"] {
|
1640 |
-
width: 100%;
|
1641 |
-
}
|
1642 |
-
input.save-repeater.saving {
|
1643 |
-
cursor: default !important;
|
1644 |
-
opacity: 0.3 !important;
|
1645 |
-
}
|
1646 |
-
.saved-response {
|
1647 |
-
max-width: 72%;
|
1648 |
-
opacity: 0;
|
1649 |
-
}
|
1650 |
-
.one_half {
|
1651 |
-
padding-bottom: 10px;
|
1652 |
-
}
|
1653 |
-
.alm-delete {
|
1654 |
-
clear: none;
|
1655 |
-
display: inline-block;
|
1656 |
-
margin: 14px 0 0;
|
1657 |
-
width: auto;
|
1658 |
-
float: right;
|
1659 |
-
opacity: 0;
|
1660 |
-
transition: all 0.2s ease;
|
1661 |
-
position: absolute;
|
1662 |
-
right: 15px;
|
1663 |
-
bottom: 15px;
|
1664 |
-
a {
|
1665 |
-
border-radius: $radius;
|
1666 |
-
background: none;
|
1667 |
-
color: #c94141;
|
1668 |
-
font-size: 14px;
|
1669 |
-
line-height: 28px;
|
1670 |
-
height: 28px;
|
1671 |
-
text-decoration: none;
|
1672 |
-
display: block;
|
1673 |
-
padding: 0 10px;
|
1674 |
-
&:hover {
|
1675 |
-
background-color: #c94141;
|
1676 |
-
color: #fff;
|
1677 |
-
}
|
1678 |
-
&:focus {
|
1679 |
-
box-shadow: none;
|
1680 |
-
}
|
1681 |
-
&:active {
|
1682 |
-
background-color: #b93636;
|
1683 |
-
}
|
1684 |
-
}
|
1685 |
-
}
|
1686 |
-
.row:hover .alm-delete {
|
1687 |
-
opacity: 1;
|
1688 |
-
}
|
1689 |
-
}
|
1690 |
-
|
1691 |
-
/* Add-ons & Extensions */
|
1692 |
-
|
1693 |
-
.flexbox-wrap {
|
1694 |
-
display: flex;
|
1695 |
-
flex-wrap: wrap;
|
1696 |
-
margin-bottom: 20px;
|
1697 |
-
border-top: 1px solid #e1e1e1;
|
1698 |
-
border-left: 1px solid #e1e1e1;
|
1699 |
-
background-color: #f7f7f7;
|
1700 |
-
box-shadow: inset 0 0 0 1px #e1e1e1;
|
1701 |
-
}
|
1702 |
-
|
1703 |
-
#alm-add-ons {
|
1704 |
-
}
|
1705 |
-
#alm-add-ons .group {
|
1706 |
-
overflow: hidden;
|
1707 |
-
width: 33.333%;
|
1708 |
-
display: flex;
|
1709 |
-
vertical-align: top;
|
1710 |
-
text-align: center;
|
1711 |
-
margin: 0 !important;
|
1712 |
-
padding: 0;
|
1713 |
-
border-radius: 0;
|
1714 |
-
border-top: none;
|
1715 |
-
border-left: none;
|
1716 |
-
|
1717 |
-
// Featured Addon
|
1718 |
-
&.highlighted {
|
1719 |
-
width: 100%;
|
1720 |
-
a {
|
1721 |
-
background: #f7f7f7;
|
1722 |
-
border: 10px solid rgba(0, 0, 0, 0.025);
|
1723 |
-
}
|
1724 |
-
img {
|
1725 |
-
padding: 10px;
|
1726 |
-
}
|
1727 |
-
@media screen and (min-width: 768px) {
|
1728 |
-
text-align: left;
|
1729 |
-
a {
|
1730 |
-
padding: 25px;
|
1731 |
-
overflow: hidden;
|
1732 |
-
display: flex;
|
1733 |
-
flex-wrap: nowrap;
|
1734 |
-
align-items: center;
|
1735 |
-
}
|
1736 |
-
.pro-img,
|
1737 |
-
.pro-details {
|
1738 |
-
flex: 1;
|
1739 |
-
}
|
1740 |
-
.pro-img {
|
1741 |
-
max-width: 355px;
|
1742 |
-
}
|
1743 |
-
.pro-details {
|
1744 |
-
padding: 0 15px 0 35px;
|
1745 |
-
}
|
1746 |
-
img {
|
1747 |
-
position: static;
|
1748 |
-
}
|
1749 |
-
span.cnkt-button {
|
1750 |
-
position: static;
|
1751 |
-
width: auto;
|
1752 |
-
display: inline-block;
|
1753 |
-
padding: 13px 30px;
|
1754 |
-
text-align: center;
|
1755 |
-
margin-top: 15px;
|
1756 |
-
font-size: 14px;
|
1757 |
-
}
|
1758 |
-
}
|
1759 |
-
@media screen and (min-width: 769px) and (max-width: 1270px) {
|
1760 |
-
.pro-desc {
|
1761 |
-
display: none;
|
1762 |
-
}
|
1763 |
-
}
|
1764 |
-
}
|
1765 |
-
&.installed {
|
1766 |
-
opacity: 0.85;
|
1767 |
-
filter: grayscale(1);
|
1768 |
-
p:before {
|
1769 |
-
display: none !important;
|
1770 |
-
}
|
1771 |
-
}
|
1772 |
-
@media screen and (max-width: 1350px) {
|
1773 |
-
width: 50%;
|
1774 |
-
}
|
1775 |
-
}
|
1776 |
-
|
1777 |
-
#alm-add-ons .group span.cnkt-button {
|
1778 |
-
position: absolute;
|
1779 |
-
left: 20px;
|
1780 |
-
bottom: 20px;
|
1781 |
-
width: 100%;
|
1782 |
-
width: calc(100% - 40px);
|
1783 |
-
display: block;
|
1784 |
-
font-size: 14px;
|
1785 |
-
padding: 11px 14px;
|
1786 |
-
transition: all 0.15s ease;
|
1787 |
-
border-bottom: none;
|
1788 |
-
border-left: none;
|
1789 |
-
border-right: none;
|
1790 |
-
}
|
1791 |
-
#alm-add-ons .group img {
|
1792 |
-
padding: 0 15px 15px;
|
1793 |
-
}
|
1794 |
-
#alm-add-ons .group {
|
1795 |
-
a {
|
1796 |
-
text-decoration: none;
|
1797 |
-
display: block;
|
1798 |
-
padding: 25px 25px 70px;
|
1799 |
-
position: relative;
|
1800 |
-
}
|
1801 |
-
&--pro {
|
1802 |
-
a {
|
1803 |
-
padding-bottom: 17px;
|
1804 |
-
}
|
1805 |
-
}
|
1806 |
-
}
|
1807 |
-
|
1808 |
-
#alm-add-ons .group:hover h2 {
|
1809 |
-
text-decoration: underline;
|
1810 |
-
}
|
1811 |
-
#alm-add-ons .group a h2 {
|
1812 |
-
transition: all 0.15s ease;
|
1813 |
-
}
|
1814 |
-
#alm-add-ons .group a:hover h2 {
|
1815 |
-
color: #ff5a58 !important;
|
1816 |
-
}
|
1817 |
-
#alm-add-ons .group.installed a:hover h2 {
|
1818 |
-
color: #444 !important;
|
1819 |
-
}
|
1820 |
-
|
1821 |
-
/* Add-on Callout! */
|
1822 |
-
.call-out {
|
1823 |
-
background: #75d0b4;
|
1824 |
-
padding: 18px 100px 18px 18px;
|
1825 |
-
border-radius: 3px;
|
1826 |
-
margin: 0;
|
1827 |
-
width: 100%;
|
1828 |
-
display: block;
|
1829 |
-
color: #fff;
|
1830 |
-
font-size: 13px;
|
1831 |
-
font-weight: 400;
|
1832 |
-
position: relative;
|
1833 |
-
}
|
1834 |
-
.call-out.light {
|
1835 |
-
background: #fdfdec;
|
1836 |
-
width: 97.666%;
|
1837 |
-
}
|
1838 |
-
.call-out.light p {
|
1839 |
-
margin: 0;
|
1840 |
-
padding: 0 30px;
|
1841 |
-
text-align: center;
|
1842 |
-
font-weight: 400;
|
1843 |
-
}
|
1844 |
-
.call-out.light p a {
|
1845 |
-
color: #ff5a58 !important;
|
1846 |
-
}
|
1847 |
-
.call-out.light p a:hover {
|
1848 |
-
text-decoration: underline;
|
1849 |
-
}
|
1850 |
-
#alm-builder .call-out,
|
1851 |
-
.forceColors .call-out {
|
1852 |
-
/* Shortcode builder */
|
1853 |
-
width: 90%;
|
1854 |
-
width: calc(100% - 20px);
|
1855 |
-
margin: 10px;
|
1856 |
-
}
|
1857 |
-
.call-out .cnkt-button {
|
1858 |
-
padding: 6px 10px;
|
1859 |
-
display: inline-block;
|
1860 |
-
background: #fff;
|
1861 |
-
border: none;
|
1862 |
-
border-radius: 3px;
|
1863 |
-
position: absolute;
|
1864 |
-
right: 11px;
|
1865 |
-
top: 11px;
|
1866 |
-
color: #387061 !important;
|
1867 |
-
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
|
1868 |
-
font-size: 13px;
|
1869 |
-
}
|
1870 |
-
.call-out a {
|
1871 |
-
color: #42524e !important;
|
1872 |
-
text-decoration: none;
|
1873 |
-
font-weight: 600;
|
1874 |
-
}
|
1875 |
-
.call-out a:hover,
|
1876 |
-
.call-out a:focus {
|
1877 |
-
color: #222 !important;
|
1878 |
-
}
|
1879 |
-
a.cnkt-button,
|
1880 |
-
span.cnkt-button {
|
1881 |
-
padding: 6px 10px;
|
1882 |
-
display: inline-block;
|
1883 |
-
background: #5acfb2;
|
1884 |
-
border: 1px solid #5acfb2;
|
1885 |
-
border-radius: 2px;
|
1886 |
-
position: static;
|
1887 |
-
text-decoration: none !important;
|
1888 |
-
color: #fff !important;
|
1889 |
-
font-size: 14px;
|
1890 |
-
font-weight: 600;
|
1891 |
-
}
|
1892 |
-
a.cnkt-button:hover,
|
1893 |
-
a.cnkt-button:hover i,
|
1894 |
-
.group:hover span.cnkt-button,
|
1895 |
-
.group:hover span.cnkt-button i {
|
1896 |
-
background-color: #935eaf;
|
1897 |
-
border-color: #935eaf;
|
1898 |
-
color: #fff !important;
|
1899 |
-
box-shadow: none;
|
1900 |
-
}
|
1901 |
-
a.cnkt-button:focus,
|
1902 |
-
.group:focus span.cnkt-button {
|
1903 |
-
background-color: #83519d;
|
1904 |
-
border-color: #935eaf;
|
1905 |
-
color: #fff !important;
|
1906 |
-
outline: none;
|
1907 |
-
}
|
1908 |
-
a.cnkt-button i,
|
1909 |
-
span.cnkt-button i {
|
1910 |
-
color: #397666;
|
1911 |
-
margin-right: 3px;
|
1912 |
-
position: relative;
|
1913 |
-
top: 1px;
|
1914 |
-
background: none !important;
|
1915 |
-
transition: all 0.15s ease;
|
1916 |
-
}
|
1917 |
-
a.cnkt-button.installed,
|
1918 |
-
span.cnkt-button.installed,
|
1919 |
-
.group span.cnkt-button.installed {
|
1920 |
-
background: #f7f7f7 !important;
|
1921 |
-
border-color: #efefef !important;
|
1922 |
-
color: #888 !important;
|
1923 |
-
box-shadow: none !important;
|
1924 |
-
}
|
1925 |
-
a.cnkt-button.installed i,
|
1926 |
-
span.cnkt-button.installed i,
|
1927 |
-
.group:hover span.cnkt-button.installed i {
|
1928 |
-
background: none !important;
|
1929 |
-
color: #5da592 !important;
|
1930 |
-
top: 0;
|
1931 |
-
}
|
1932 |
-
|
1933 |
-
/*
|
1934 |
-
* Licenses
|
1935 |
-
*
|
1936 |
-
* @since 2.7.0
|
1937 |
-
*/
|
1938 |
-
|
1939 |
-
.license {
|
1940 |
-
overflow: hidden;
|
1941 |
-
margin: 0;
|
1942 |
-
display: block;
|
1943 |
-
padding: 20px 0 0;
|
1944 |
-
position: relative;
|
1945 |
-
}
|
1946 |
-
|
1947 |
-
.license:first-of-type {
|
1948 |
-
padding: 10px 0 0;
|
1949 |
-
}
|
1950 |
-
.license-title {
|
1951 |
-
border-radius: 3px 3px 0 0;
|
1952 |
-
border: 1px solid #e1e1e1;
|
1953 |
-
background-color: #f7f7f7;
|
1954 |
-
position: relative;
|
1955 |
-
}
|
1956 |
-
.license-title .status {
|
1957 |
-
width: 13px;
|
1958 |
-
height: 13px;
|
1959 |
-
border-radius: 100%;
|
1960 |
-
background: #d45656;
|
1961 |
-
position: absolute;
|
1962 |
-
left: 15px;
|
1963 |
-
top: 50%;
|
1964 |
-
margin-top: -7px;
|
1965 |
-
box-shadow: inset 0 -6px 6px rgba(0, 0, 0, 0.05), 0 1px 0 #fff;
|
1966 |
-
}
|
1967 |
-
.license-title .status.valid {
|
1968 |
-
background-color: $green;
|
1969 |
-
}
|
1970 |
-
.license h2 {
|
1971 |
-
margin: 0;
|
1972 |
-
padding: 15px 15px 15px 38px;
|
1973 |
-
font-size: 16px;
|
1974 |
-
font-weight: 700;
|
1975 |
-
line-height: 1.2;
|
1976 |
-
}
|
1977 |
-
.license p,
|
1978 |
-
.license label {
|
1979 |
-
font-size: 400;
|
1980 |
-
font-size: 14px;
|
1981 |
-
}
|
1982 |
-
.license .cnkt-button {
|
1983 |
-
position: absolute;
|
1984 |
-
top: 9px;
|
1985 |
-
right: 15px;
|
1986 |
-
padding: 5px 7px !important;
|
1987 |
-
}
|
1988 |
-
.license a.cnkt-button.installed {
|
1989 |
-
background-color: none !important;
|
1990 |
-
box-shadow: none !important;
|
1991 |
-
border-color: transparent !important;
|
1992 |
-
}
|
1993 |
-
|
1994 |
-
.license .no-license {
|
1995 |
-
display: block;
|
1996 |
-
padding: 12px;
|
1997 |
-
margin: 0 0 20px;
|
1998 |
-
border: 1px solid #e7e7c6;
|
1999 |
-
background-color: #ffffe5;
|
2000 |
-
border-radius: 2px;
|
2001 |
-
}
|
2002 |
-
.license .no-license h4 {
|
2003 |
-
margin: 0 0 3px;
|
2004 |
-
}
|
2005 |
-
.license .no-license p {
|
2006 |
-
margin: 5px 0 0;
|
2007 |
-
padding: 0;
|
2008 |
-
}
|
2009 |
-
|
2010 |
-
.license .loading {
|
2011 |
-
position: absolute;
|
2012 |
-
left: 0;
|
2013 |
-
top: 0;
|
2014 |
-
width: 100%;
|
2015 |
-
height: 100%;
|
2016 |
-
background: rgba(255, 255, 255, 0.6) url("../../img/loader.gif") no-repeat
|
2017 |
-
center center;
|
2018 |
-
z-index: 9;
|
2019 |
-
display: none;
|
2020 |
-
}
|
2021 |
-
.license-btn.hide,
|
2022 |
-
.renew-btn.hide {
|
2023 |
-
display: none;
|
2024 |
-
}
|
2025 |
-
.license-btn-wrap {
|
2026 |
-
display: block;
|
2027 |
-
}
|
2028 |
-
.license-btn-wrap .msg {
|
2029 |
-
display: block;
|
2030 |
-
padding: 15px 0 0;
|
2031 |
-
font-size: 14px;
|
2032 |
-
line-height: 24px;
|
2033 |
-
position: relative;
|
2034 |
-
top: 4px;
|
2035 |
-
}
|
2036 |
-
.license-btn-wrap .msg strong {
|
2037 |
-
display: block;
|
2038 |
-
}
|
2039 |
-
.license-btn-wrap .msg em {
|
2040 |
-
opacity: 0.7;
|
2041 |
-
font-style: normal;
|
2042 |
-
}
|
2043 |
-
|
2044 |
-
.license-wrap,
|
2045 |
-
.license-no-addons {
|
2046 |
-
overflow: hidden;
|
2047 |
-
display: block;
|
2048 |
-
padding: 18px 15px;
|
2049 |
-
border: 1px solid #e1e1e1;
|
2050 |
-
border-top: none;
|
2051 |
-
background-color: #fff;
|
2052 |
-
border-radius: 0 0 3px 3px;
|
2053 |
-
}
|
2054 |
-
.license-wrap label {
|
2055 |
-
font-weight: 600;
|
2056 |
-
top: -3px;
|
2057 |
-
}
|
2058 |
-
.license-wrap input[type="text"] {
|
2059 |
-
margin: 0;
|
2060 |
-
width: 100% !important;
|
2061 |
-
padding: 14px;
|
2062 |
-
}
|
2063 |
-
.license-wrap .button-primary {
|
2064 |
-
margin-right: 5px;
|
2065 |
-
}
|
2066 |
-
.license-key-field {
|
2067 |
-
position: relative;
|
2068 |
-
display: block;
|
2069 |
-
margin: 0 0 20px;
|
2070 |
-
}
|
2071 |
-
.license-key-field .status {
|
2072 |
-
position: absolute;
|
2073 |
-
right: 10px;
|
2074 |
-
top: 50%;
|
2075 |
-
transform: translateY(-50%);
|
2076 |
-
display: inline-block;
|
2077 |
-
border-radius: 2px;
|
2078 |
-
padding: 6px 12px;
|
2079 |
-
line-height: 1.3;
|
2080 |
-
color: #fff;
|
2081 |
-
border-color: #999;
|
2082 |
-
cursor: default;
|
2083 |
-
}
|
2084 |
-
.license-key-field .status.active {
|
2085 |
-
background-color: $green;
|
2086 |
-
}
|
2087 |
-
.license-key-field .status.inactive {
|
2088 |
-
background-color: #d45656;
|
2089 |
-
}
|
2090 |
-
|
2091 |
-
.ajax-load-more .alm-nav {
|
2092 |
-
font-size: 600;
|
2093 |
-
font-size: 14px;
|
2094 |
-
margin: 0 !important;
|
2095 |
-
padding: 5px 0 5px;
|
2096 |
-
}
|
2097 |
-
.ajax-load-more .alm-nav a {
|
2098 |
-
display: inline-block;
|
2099 |
-
}
|
2100 |
-
|
2101 |
-
.license-no-addons {
|
2102 |
-
border: 1px solid #bad0da;
|
2103 |
-
border-radius: 3px;
|
2104 |
-
background-color: #e0f5ff;
|
2105 |
-
}
|
2106 |
-
.license-no-addons p {
|
2107 |
-
margin: 0;
|
2108 |
-
padding: 0;
|
2109 |
-
}
|
2110 |
-
|
2111 |
-
/*
|
2112 |
-
* Plugin Sidebar
|
2113 |
-
*
|
2114 |
-
* @since 1.0
|
2115 |
-
*/
|
2116 |
-
.ajax-load-more .cnkt-sidebar {
|
2117 |
-
}
|
2118 |
-
.ajax-load-more .cnkt-sidebar .cta {
|
2119 |
-
background: #fff;
|
2120 |
-
padding: 0;
|
2121 |
-
margin: 0 0 20px;
|
2122 |
-
overflow: visible;
|
2123 |
-
position: relative;
|
2124 |
-
box-shadow: 0 4px 10px 1px rgba(0, 0, 0, 0.065);
|
2125 |
-
|
2126 |
-
.alm-file-location {
|
2127 |
-
padding-top: 15px;
|
2128 |
-
margin-top: 15px;
|
2129 |
-
border-top: 1px solid #efefef;
|
2130 |
-
input {
|
2131 |
-
font-size: 12px;
|
2132 |
-
font-family: Consolas, monaco, monospace;
|
2133 |
-
background: #f7f7f7;
|
2134 |
-
border: 1px solid #e1e1e1;
|
2135 |
-
display: block;
|
2136 |
-
width: 100%;
|
2137 |
-
padding: 8px;
|
2138 |
-
margin: 0;
|
2139 |
-
color: #777;
|
2140 |
-
box-shadow: none !important;
|
2141 |
-
}
|
2142 |
-
}
|
2143 |
-
}
|
2144 |
-
.ajax-load-more .cnkt-sidebar .cta-inner {
|
2145 |
-
padding: 15px;
|
2146 |
-
display: block;
|
2147 |
-
.cta-inner {
|
2148 |
-
background-color: #f7f7f7;
|
2149 |
-
border-radius: 3px;
|
2150 |
-
border: 1px solid #e1e1e1;
|
2151 |
-
}
|
2152 |
-
}
|
2153 |
-
.ajax-load-more .cnkt-sidebar .cta-inner.padding-bottom {
|
2154 |
-
padding-bottom: 80px;
|
2155 |
-
}
|
2156 |
-
.ajax-load-more .cnkt-sidebar .cta.mailing-list {
|
2157 |
-
padding: 0;
|
2158 |
-
}
|
2159 |
-
.ajax-load-more .cnkt-sidebar .cta.mailing-list .head-wrap {
|
2160 |
-
display: block;
|
2161 |
-
padding: 20px;
|
2162 |
-
}
|
2163 |
-
.ajax-load-more .cnkt-sidebar .cta.padding-bottom {
|
2164 |
-
padding-bottom: 50px;
|
2165 |
-
}
|
2166 |
-
.ajax-load-more .cnkt-sidebar h3,
|
2167 |
-
.ajax-load-more .cnkt-sidebar h4 {
|
2168 |
-
margin-top: 0;
|
2169 |
-
}
|
2170 |
-
.ajax-load-more .cnkt-sidebar h3 {
|
2171 |
-
padding: 10px 15px;
|
2172 |
-
background: #fff;
|
2173 |
-
margin: 0;
|
2174 |
-
display: block;
|
2175 |
-
font-size: 14px;
|
2176 |
-
font-weight: 700;
|
2177 |
-
text-transform: none;
|
2178 |
-
border-radius: 2px 2px 0 0;
|
2179 |
-
}
|
2180 |
-
|
2181 |
-
.ajax-load-more .cnkt-sidebar .item {
|
2182 |
-
overflow: hidden;
|
2183 |
-
}
|
2184 |
-
.ajax-load-more .cnkt-sidebar .item h4 {
|
2185 |
-
margin: 0 0 5px;
|
2186 |
-
font-size: 0.9em;
|
2187 |
-
text-transform: uppercase;
|
2188 |
-
opacity: 0.5;
|
2189 |
-
}
|
2190 |
-
.ajax-load-more .cnkt-sidebar h4 {
|
2191 |
-
margin-bottom: 5px;
|
2192 |
-
}
|
2193 |
-
.ajax-load-more .cnkt-sidebar p {
|
2194 |
-
line-height: 22px;
|
2195 |
-
margin: 0 0 5px;
|
2196 |
-
font-size: 14px;
|
2197 |
-
}
|
2198 |
-
.ajax-load-more .cnkt-sidebar .cta.dyk {
|
2199 |
-
.cta-inner {
|
2200 |
-
overflow: hidden;
|
2201 |
-
}
|
2202 |
-
.img {
|
2203 |
-
float: left;
|
2204 |
-
width: 40%;
|
2205 |
-
padding: 0 10px 10px 0;
|
2206 |
-
}
|
2207 |
-
.text {
|
2208 |
-
float: left;
|
2209 |
-
width: 60%;
|
2210 |
-
padding: 0 0 10px 10px;
|
2211 |
-
}
|
2212 |
-
@media screen and (min-width: 900px) and (max-width: 1300px) {
|
2213 |
-
.img,
|
2214 |
-
.text {
|
2215 |
-
float: none;
|
2216 |
-
padding: 0 0 10px;
|
2217 |
-
width: 100%;
|
2218 |
-
}
|
2219 |
-
}
|
2220 |
-
@media screen and (max-width: 480px) {
|
2221 |
-
.img,
|
2222 |
-
.text {
|
2223 |
-
float: none;
|
2224 |
-
padding: 0 0 10px;
|
2225 |
-
width: 100%;
|
2226 |
-
}
|
2227 |
-
}
|
2228 |
-
p {
|
2229 |
-
margin: 0 0 15px;
|
2230 |
-
clear: none;
|
2231 |
-
&:last-child {
|
2232 |
-
margin: 0;
|
2233 |
-
}
|
2234 |
-
&.addon-intro {
|
2235 |
-
margin-top: -1px;
|
2236 |
-
font-size: 16px;
|
2237 |
-
}
|
2238 |
-
}
|
2239 |
-
}
|
2240 |
-
.ajax-load-more .cnkt-sidebar ul {
|
2241 |
-
padding: 5px 0 0;
|
2242 |
-
margin: 0;
|
2243 |
-
overflow: hidden;
|
2244 |
-
}
|
2245 |
-
.ajax-load-more .cnkt-sidebar li {
|
2246 |
-
font-size: 14px;
|
2247 |
-
margin: 0 0 10px;
|
2248 |
-
line-height: 1.5;
|
2249 |
-
}
|
2250 |
-
|
2251 |
-
.ajax-load-more .cnkt-sidebar .cta.resources li {
|
2252 |
-
display: block;
|
2253 |
-
width: 100%;
|
2254 |
-
line-height: 1;
|
2255 |
-
margin: 1px 0;
|
2256 |
-
}
|
2257 |
-
.ajax-load-more .cnkt-sidebar .cta.resources li a {
|
2258 |
-
text-decoration: none;
|
2259 |
-
padding: 10px 0;
|
2260 |
-
display: block;
|
2261 |
-
border-top: 1px solid #efefef;
|
2262 |
-
}
|
2263 |
-
.ajax-load-more .cnkt-sidebar .cta.resources li:first-of-type a {
|
2264 |
-
border: none;
|
2265 |
-
padding-top: 0;
|
2266 |
-
}
|
2267 |
-
.ajax-load-more .cnkt-sidebar .cta.resources li i {
|
2268 |
-
display: inline-block;
|
2269 |
-
width: 20px;
|
2270 |
-
text-align: center;
|
2271 |
-
color: #ccc;
|
2272 |
-
text-decoration: none;
|
2273 |
-
font-size: 14px;
|
2274 |
-
}
|
2275 |
-
.ajax-load-more .cnkt-sidebar .item i {
|
2276 |
-
font-size: 12px;
|
2277 |
-
float: left;
|
2278 |
-
width: 18px;
|
2279 |
-
height: 18px;
|
2280 |
-
border-radius: 100%;
|
2281 |
-
background: #efefef;
|
2282 |
-
line-height: 18px;
|
2283 |
-
text-align: center;
|
2284 |
-
margin: 1px 7px 0 0;
|
2285 |
-
position: relative;
|
2286 |
-
}
|
2287 |
-
|
2288 |
-
.ajax-load-more .cnkt-sidebar .item i.fa-check {
|
2289 |
-
background: #90be59;
|
2290 |
-
color: #fff;
|
2291 |
-
}
|
2292 |
-
.ajax-load-more .cnkt-sidebar .item i.fa-exclamation {
|
2293 |
-
background: #c43a3a;
|
2294 |
-
color: #fff;
|
2295 |
-
}
|
2296 |
-
|
2297 |
-
.ajax-load-more .cnkt-sidebar a.visit {
|
2298 |
-
background: #ed7070;
|
2299 |
-
padding: 17px 20px 18px 44px;
|
2300 |
-
position: absolute;
|
2301 |
-
bottom: 0;
|
2302 |
-
left: 0;
|
2303 |
-
width: 100%;
|
2304 |
-
display: block;
|
2305 |
-
color: #fff !important;
|
2306 |
-
z-index: 2;
|
2307 |
-
text-decoration: none;
|
2308 |
-
line-height: 1;
|
2309 |
-
border-radius: 0 0 2px 2px;
|
2310 |
-
}
|
2311 |
-
.ajax-load-more .cnkt-sidebar a.visit i {
|
2312 |
-
font-size: 21px;
|
2313 |
-
opacity: 0.6;
|
2314 |
-
margin: 0 5px 0 0;
|
2315 |
-
position: absolute;
|
2316 |
-
top: 13px;
|
2317 |
-
left: 18px;
|
2318 |
-
display: inline-block;
|
2319 |
-
}
|
2320 |
-
.ajax-load-more .cnkt-sidebar a.visit:hover,
|
2321 |
-
.ajax-load-more .cnkt-sidebar a.visit:focus {
|
2322 |
-
background: #f06060;
|
2323 |
-
}
|
2324 |
-
.ajax-load-more .cnkt-sidebar a.visit:hover i {
|
2325 |
-
opacity: 1;
|
2326 |
-
}
|
2327 |
-
|
2328 |
-
.ajax-load-more .cnkt-sidebar .project-listing {
|
2329 |
-
padding: 0;
|
2330 |
-
}
|
2331 |
-
.ajax-load-more .cnkt-sidebar .project-listing li {
|
2332 |
-
margin: 20px 0 0;
|
2333 |
-
padding: 0;
|
2334 |
-
position: relative;
|
2335 |
-
clear: both;
|
2336 |
-
}
|
2337 |
-
.ajax-load-more .cnkt-sidebar .project-listing li a {
|
2338 |
-
display: block;
|
2339 |
-
position: static;
|
2340 |
-
padding-left: 60px;
|
2341 |
-
min-height: 58px;
|
2342 |
-
text-decoration: none;
|
2343 |
-
}
|
2344 |
-
.ajax-load-more .cnkt-sidebar .project-listing li:first-of-type {
|
2345 |
-
margin-top: 0;
|
2346 |
-
}
|
2347 |
-
.ajax-load-more .cnkt-sidebar .project-listing img {
|
2348 |
-
height: 48px;
|
2349 |
-
left: 0;
|
2350 |
-
position: absolute;
|
2351 |
-
top: 2px;
|
2352 |
-
width: 48px;
|
2353 |
-
}
|
2354 |
-
.ajax-load-more .cnkt-sidebar .project-listing li strong {
|
2355 |
-
display: block;
|
2356 |
-
}
|
2357 |
-
.ajax-load-more .cnkt-sidebar .project-listing li span {
|
2358 |
-
color: #777;
|
2359 |
-
}
|
2360 |
-
|
2361 |
-
/*
|
2362 |
-
* CodeMirror Syntax Highlighting
|
2363 |
-
* @since 2.2.0
|
2364 |
-
*/
|
2365 |
-
|
2366 |
-
.shortcode-builder {
|
2367 |
-
hr {
|
2368 |
-
margin: 0;
|
2369 |
-
}
|
2370 |
-
}
|
2371 |
-
|
2372 |
-
/*
|
2373 |
-
* Delete Template (Unlimited Repeaters
|
2374 |
-
*
|
2375 |
-
* @since 2.2.7
|
2376 |
-
*/
|
2377 |
-
|
2378 |
-
#unlmited-container {
|
2379 |
-
margin: 0;
|
2380 |
-
display: block;
|
2381 |
-
overflow: visible;
|
2382 |
-
}
|
2383 |
-
.admin.ajax-load-more .row.unlimited:first-of-type {
|
2384 |
-
margin-top: 10px;
|
2385 |
-
}
|
2386 |
-
|
2387 |
-
.repeaters .row,
|
2388 |
-
.shortcode-builder .row {
|
2389 |
-
transition: background-color 0.3s ease;
|
2390 |
-
}
|
2391 |
-
.repeaters .row.no-brd:hover,
|
2392 |
-
.shortcode-builder .row.no-brd:hover {
|
2393 |
-
box-shadow: none;
|
2394 |
-
border-color: transparent;
|
2395 |
-
}
|
2396 |
-
.unlimited-wrap {
|
2397 |
-
display: none;
|
2398 |
-
}
|
2399 |
-
|
2400 |
-
.admin.ajax-load-more .row.unlimited.deleting {
|
2401 |
-
/* Deleting Row */
|
2402 |
-
background: #fff url("../../img/loader-unlimited.gif") no-repeat center
|
2403 |
-
center;
|
2404 |
-
border-color: #fff;
|
2405 |
-
opacity: 0.4;
|
2406 |
-
}
|
2407 |
-
.admin.ajax-load-more .row.unlimited.deleting.deleted {
|
2408 |
-
/* Deleting Row */
|
2409 |
-
background-image: none !important;
|
2410 |
-
}
|
2411 |
-
.admin.ajax-load-more .row.unlimited.new {
|
2412 |
-
/* New Row */
|
2413 |
-
background: url("../../img/loader-unlimited.gif") no-repeat center center;
|
2414 |
-
border-color: #efefef !important;
|
2415 |
-
min-height: 60px;
|
2416 |
-
display: none;
|
2417 |
-
}
|
2418 |
-
.admin.ajax-load-more .row.unlimited.new.done {
|
2419 |
-
background-image: none !important;
|
2420 |
-
}
|
2421 |
-
.admin.ajax-load-more .row.unlimited.loaded {
|
2422 |
-
/* Loading complete */
|
2423 |
-
background-color: #64e49d;
|
2424 |
-
border-color: #64e49d;
|
2425 |
-
}
|
2426 |
-
|
2427 |
-
.admin.ajax-load-more .row.unlimited.deleting .expand-wrap,
|
2428 |
-
.row.unlimited.deleting h3.heading {
|
2429 |
-
opacity: 0.6;
|
2430 |
-
}
|
2431 |
-
.row.unlimited.deleting .alm-delete {
|
2432 |
-
display: none;
|
2433 |
-
}
|
2434 |
-
.row.unlimited.deleting .save-repeater {
|
2435 |
-
opacity: 0;
|
2436 |
-
cursor: default;
|
2437 |
-
}
|
2438 |
-
|
2439 |
-
.ajax-load-more .row.unlimited input[type="text"] {
|
2440 |
-
width: 100%;
|
2441 |
-
}
|
2442 |
-
|
2443 |
-
.alm-add-template {
|
2444 |
-
text-align: center;
|
2445 |
-
margin: 20px 0 5px !important;
|
2446 |
-
display: block;
|
2447 |
-
font-size: 15px !important;
|
2448 |
-
font-weight: 700;
|
2449 |
-
text-transform: none !important;
|
2450 |
-
text-align: center;
|
2451 |
-
}
|
2452 |
-
.alm-add-template a {
|
2453 |
-
background: #efefef;
|
2454 |
-
border: 1px solid #e1e1e1;
|
2455 |
-
color: #333;
|
2456 |
-
display: inline-block;
|
2457 |
-
padding: 11px 16px 13px;
|
2458 |
-
line-height: 1;
|
2459 |
-
border-radius: 3px;
|
2460 |
-
text-decoration: none;
|
2461 |
-
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset,
|
2462 |
-
0 1px 0 rgba(0, 0, 0, 0.07);
|
2463 |
-
text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
|
2464 |
-
}
|
2465 |
-
.alm-add-template a.active {
|
2466 |
-
opacity: 0.5;
|
2467 |
-
cursor: default;
|
2468 |
-
color: #333 !important;
|
2469 |
-
background: #efefef !important;
|
2470 |
-
border-color: #efefef !important;
|
2471 |
-
}
|
2472 |
-
.alm-add-template a:hover {
|
2473 |
-
background: #ff5a58;
|
2474 |
-
border-color: #ff5a58;
|
2475 |
-
color: #fff;
|
2476 |
-
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset,
|
2477 |
-
0 1px 0 rgba(0, 0, 0, 0.07);
|
2478 |
-
text-shadow: none;
|
2479 |
-
}
|
2480 |
-
.alm-add-template a:focus {
|
2481 |
-
box-shadow: none;
|
2482 |
-
text-shadow: none;
|
2483 |
-
}
|
2484 |
-
.alm-add-template a:active {
|
2485 |
-
color: #fff;
|
2486 |
-
background: #ec4745;
|
2487 |
-
border-color: #ec4745;
|
2488 |
-
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
|
2489 |
-
text-shadow: none;
|
2490 |
-
}
|
2491 |
-
|
2492 |
-
.alm-add-template a i {
|
2493 |
-
font-size: 20px;
|
2494 |
-
color: #ec4745;
|
2495 |
-
margin: 0 3px 0 0;
|
2496 |
-
position: relative;
|
2497 |
-
top: 2px;
|
2498 |
-
left: -1px;
|
2499 |
-
}
|
2500 |
-
.alm-add-template a:hover i,
|
2501 |
-
.alm-add-template a:active i {
|
2502 |
-
color: #fff;
|
2503 |
-
}
|
2504 |
-
|
2505 |
-
.spacer {
|
2506 |
-
height: 10px;
|
2507 |
-
clear: both;
|
2508 |
-
display: block;
|
2509 |
-
&.lg {
|
2510 |
-
height: 20px;
|
2511 |
-
}
|
2512 |
-
}
|
2513 |
-
.alm-text-center {
|
2514 |
-
text-align: center;
|
2515 |
-
}
|
2516 |
-
|
2517 |
-
.ajax-load-more p.generate-id {
|
2518 |
-
margin: 10px 0 0 !important;
|
2519 |
-
padding: 0 0 0 5px;
|
2520 |
-
font-size: 12px !important;
|
2521 |
-
i {
|
2522 |
-
margin: 0 2px 0 0;
|
2523 |
-
color: #999;
|
2524 |
-
}
|
2525 |
-
a {
|
2526 |
-
text-decoration: none;
|
2527 |
-
}
|
2528 |
-
}
|
2529 |
-
|
2530 |
-
/*
|
2531 |
-
* Cache
|
2532 |
-
* @since 2.6.0
|
2533 |
-
*/
|
2534 |
-
|
2535 |
-
.alm-cache {
|
2536 |
-
.group .row {
|
2537 |
-
overflow: visible;
|
2538 |
-
}
|
2539 |
-
.row {
|
2540 |
-
&:first-of-type {
|
2541 |
-
margin-top: 0 !important;
|
2542 |
-
}
|
2543 |
-
}
|
2544 |
-
|
2545 |
-
h3.heading {
|
2546 |
-
padding-right: 90px !important;
|
2547 |
-
white-space: nowrap;
|
2548 |
-
overflow: hidden;
|
2549 |
-
text-overflow: ellipsis;
|
2550 |
-
}
|
2551 |
-
|
2552 |
-
/* Live Search */
|
2553 |
-
.alm-cache-search-wrap {
|
2554 |
-
position: relative;
|
2555 |
-
display: block;
|
2556 |
-
margin: 0 0 15px;
|
2557 |
-
input {
|
2558 |
-
width: 100% !important;
|
2559 |
-
margin: 0 !important;
|
2560 |
-
padding: 12px 20px;
|
2561 |
-
display: block;
|
2562 |
-
font-size: 16px;
|
2563 |
-
border-radius: 100px;
|
2564 |
-
}
|
2565 |
-
i {
|
2566 |
-
position: absolute;
|
2567 |
-
right: 15px;
|
2568 |
-
top: 50%;
|
2569 |
-
transform: translateY(-50%);
|
2570 |
-
color: #ccc;
|
2571 |
-
font-size: 20px;
|
2572 |
-
z-index: 1;
|
2573 |
-
}
|
2574 |
-
}
|
2575 |
-
|
2576 |
-
.alm-cache-listing {
|
2577 |
-
position: relative;
|
2578 |
-
.toggle-all {
|
2579 |
-
right: 0;
|
2580 |
-
top: -42px;
|
2581 |
-
}
|
2582 |
-
}
|
2583 |
-
|
2584 |
-
hr {
|
2585 |
-
margin: 30px 0 25px;
|
2586 |
-
border-top-color: #efefef;
|
2587 |
-
}
|
2588 |
-
|
2589 |
-
/* Directory Listing */
|
2590 |
-
.alm-dir-listing {
|
2591 |
-
border: 1px solid $border;
|
2592 |
-
border-radius: $radius;
|
2593 |
-
overflow: hidden;
|
2594 |
-
padding: 0;
|
2595 |
-
margin: 10px 0 0;
|
2596 |
-
&--nested {
|
2597 |
-
padding: 0 15px 15px;
|
2598 |
-
.alm-dir-listing {
|
2599 |
-
margin: 0;
|
2600 |
-
}
|
2601 |
-
}
|
2602 |
-
&:hover {
|
2603 |
-
//box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
|
2604 |
-
}
|
2605 |
-
&.theme-repeaters {
|
2606 |
-
padding: 15px;
|
2607 |
-
margin: 0;
|
2608 |
-
ul {
|
2609 |
-
border: none;
|
2610 |
-
padding: 0;
|
2611 |
-
margin: 0;
|
2612 |
-
}
|
2613 |
-
i {
|
2614 |
-
color: #ccc;
|
2615 |
-
font-size: 1.1em;
|
2616 |
-
}
|
2617 |
-
}
|
2618 |
-
}
|
2619 |
-
|
2620 |
-
.alm-dir-listing.deleting {
|
2621 |
-
opacity: 0.5;
|
2622 |
-
background: #fff url("../../img/loader-unlimited.gif") no-repeat center
|
2623 |
-
center;
|
2624 |
-
}
|
2625 |
-
.alm-dir-listing .dir-title {
|
2626 |
-
margin: 0 0 5px;
|
2627 |
-
position: relative;
|
2628 |
-
}
|
2629 |
-
.alm-dir-listing h3.heading {
|
2630 |
-
padding-left: 40px !important;
|
2631 |
-
&:after {
|
2632 |
-
content: "\f07c";
|
2633 |
-
}
|
2634 |
-
&.open:after {
|
2635 |
-
content: "\f07b";
|
2636 |
-
}
|
2637 |
-
}
|
2638 |
-
.alm-dir-listing .dir-title .delete {
|
2639 |
-
position: absolute;
|
2640 |
-
right: 10px;
|
2641 |
-
top: 10px;
|
2642 |
-
font-weight: 400;
|
2643 |
-
font-size: 13px;
|
2644 |
-
text-decoration: none;
|
2645 |
-
padding: 5px 12px;
|
2646 |
-
border: 1px solid #e1e1e1;
|
2647 |
-
color: #ccc;
|
2648 |
-
border-radius: $radius;
|
2649 |
-
}
|
2650 |
-
.alm-dir-listing:hover .dir-title .delete {
|
2651 |
-
border-color: #e1e1e1;
|
2652 |
-
background-color: #fff;
|
2653 |
-
color: #666;
|
2654 |
-
}
|
2655 |
-
.alm-dir-listing .dir-title .delete:hover {
|
2656 |
-
background-color: #c94141;
|
2657 |
-
border-color: #c94141;
|
2658 |
-
color: #fff;
|
2659 |
-
}
|
2660 |
-
.alm-dir-listing .dir-title .delete:active {
|
2661 |
-
box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2);
|
2662 |
-
}
|
2663 |
-
|
2664 |
-
.cache-page-title {
|
2665 |
-
font-size: 12px;
|
2666 |
-
display: block;
|
2667 |
-
width: 100%;
|
2668 |
-
padding: 0 7px 10px;
|
2669 |
-
font-weight: 700;
|
2670 |
-
text-transform: uppercase;
|
2671 |
-
}
|
2672 |
-
|
2673 |
-
.cache-page-wrap {
|
2674 |
-
padding: 0 10px 20px;
|
2675 |
-
}
|
2676 |
-
|
2677 |
-
.cache-full-path {
|
2678 |
-
display: none;
|
2679 |
-
&-button {
|
2680 |
-
border: 1px solid $light_border;
|
2681 |
-
border-radius: 3px;
|
2682 |
-
background: #fff;
|
2683 |
-
cursor: pointer;
|
2684 |
-
margin: 0 2px 0 0;
|
2685 |
-
text-align: left;
|
2686 |
-
color: #878787;
|
2687 |
-
font-size: 13px;
|
2688 |
-
padding: 2px 4px;
|
2689 |
-
&:hover,
|
2690 |
-
&:focus {
|
2691 |
-
border-color: $border;
|
2692 |
-
}
|
2693 |
-
}
|
2694 |
-
}
|
2695 |
-
|
2696 |
-
.alm-dir-listing ul.cache-details {
|
2697 |
-
display: block;
|
2698 |
-
padding: 15px 10px 5px;
|
2699 |
-
margin: 0;
|
2700 |
-
border: none;
|
2701 |
-
li {
|
2702 |
-
position: relative;
|
2703 |
-
display: block;
|
2704 |
-
width: 100%;
|
2705 |
-
background: none;
|
2706 |
-
padding: 0 10px 0 28px;
|
2707 |
-
margin: 0 0 10px;
|
2708 |
-
color: #878787;
|
2709 |
-
font-size: 13px;
|
2710 |
-
i {
|
2711 |
-
color: #ccc;
|
2712 |
-
font-size: 16px;
|
2713 |
-
position: absolute;
|
2714 |
-
top: 1px;
|
2715 |
-
left: 5px;
|
2716 |
-
}
|
2717 |
-
a {
|
2718 |
-
word-break: break-word;
|
2719 |
-
}
|
2720 |
-
}
|
2721 |
-
}
|
2722 |
-
|
2723 |
-
.dir-empty {
|
2724 |
-
margin-top: 10px;
|
2725 |
-
}
|
2726 |
-
.dir-empty,
|
2727 |
-
.cache-cleared {
|
2728 |
-
background-color: $yellow;
|
2729 |
-
border: 1px solid $yellow_dark;
|
2730 |
-
padding: 20px;
|
2731 |
-
display: block;
|
2732 |
-
color: #222;
|
2733 |
-
text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
|
2734 |
-
}
|
2735 |
-
.cache-cleared {
|
2736 |
-
margin: 0 0 20px;
|
2737 |
-
background-color: #e0f5ff;
|
2738 |
-
border-color: #bad0da;
|
2739 |
-
color: #666;
|
2740 |
-
i {
|
2741 |
-
color: #111;
|
2742 |
-
margin: 0 5px 0 0;
|
2743 |
-
}
|
2744 |
-
.remove {
|
2745 |
-
float: right;
|
2746 |
-
font-size: 12px;
|
2747 |
-
font-weight: 600;
|
2748 |
-
}
|
2749 |
-
}
|
2750 |
-
.cnkt-sidebar .item {
|
2751 |
-
padding: 20px;
|
2752 |
-
display: block;
|
2753 |
-
}
|
2754 |
-
p.cache-stats {
|
2755 |
-
min-height: 38px;
|
2756 |
-
line-height: 37px;
|
2757 |
-
display: block;
|
2758 |
-
padding: 0;
|
2759 |
-
margin: 0;
|
2760 |
-
span {
|
2761 |
-
display: inline-block;
|
2762 |
-
width: 38px;
|
2763 |
-
height: 38px;
|
2764 |
-
line-height: 36px;
|
2765 |
-
text-align: center;
|
2766 |
-
margin: 0 9px 0 0;
|
2767 |
-
font-weight: 700;
|
2768 |
-
font-size: 15px;
|
2769 |
-
border-radius: 2px;
|
2770 |
-
background: #a4a5e2;
|
2771 |
-
background: linear-gradient(
|
2772 |
-
to bottom,
|
2773 |
-
#a4a5e2 0%,
|
2774 |
-
#9ea0d9 50%,
|
2775 |
-
#8d8fce 51%,
|
2776 |
-
#a4a5e2 100%
|
2777 |
-
);
|
2778 |
-
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a4a5e2', endColorstr='#a4a5e2',GradientType=0 );
|
2779 |
-
border: 1px solid #8586be;
|
2780 |
-
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
|
2781 |
-
color: #fff;
|
2782 |
-
text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.1);
|
2783 |
-
}
|
2784 |
-
}
|
2785 |
-
}
|
2786 |
-
|
2787 |
-
// Directory Listing
|
2788 |
-
.alm-dir-listing ul {
|
2789 |
-
padding: 20px 0 0;
|
2790 |
-
margin: 10px 0 0;
|
2791 |
-
border-top: 1px solid #efefef;
|
2792 |
-
}
|
2793 |
-
p.theme-title {
|
2794 |
-
font-weight: 600;
|
2795 |
-
margin: 0 0 15px !important;
|
2796 |
-
padding: 0 5px;
|
2797 |
-
}
|
2798 |
-
.alm-dir-listing ul li {
|
2799 |
-
margin: 0 -2px;
|
2800 |
-
padding: 9px 0 5px 40px;
|
2801 |
-
display: inline-block;
|
2802 |
-
vertical-align: top;
|
2803 |
-
overflow: hidden;
|
2804 |
-
width: 47%;
|
2805 |
-
font-size: 14px;
|
2806 |
-
background: transparent url("../../img/directory-list.gif") no-repeat left
|
2807 |
-
46%;
|
2808 |
-
&.full {
|
2809 |
-
width: 100%;
|
2810 |
-
display: block;
|
2811 |
-
}
|
2812 |
-
}
|
2813 |
-
.alm-dir-listing.theme-repeaters ul li {
|
2814 |
-
display: block;
|
2815 |
-
width: 100%;
|
2816 |
-
padding-top: 10px;
|
2817 |
-
padding: 0 0 0 40px;
|
2818 |
-
background-position: left 54%;
|
2819 |
-
}
|
2820 |
-
.alm-dir-listing.theme-repeaters ul li label {
|
2821 |
-
display: block;
|
2822 |
-
width: 100%;
|
2823 |
-
}
|
2824 |
-
|
2825 |
-
.alm-dir-listing ul li:last-child,
|
2826 |
-
.alm-dir-listing ul li:nth-last-child(2) {
|
2827 |
-
background-image: url("../../img/directory-list-btm.gif");
|
2828 |
-
}
|
2829 |
-
.alm-dir-listing.theme-repeaters ul li:nth-last-child(2) {
|
2830 |
-
background: transparent url("../../img/directory-list.gif") no-repeat left
|
2831 |
-
center;
|
2832 |
-
}
|
2833 |
-
.alm-dir-listing ul li a {
|
2834 |
-
text-decoration: none;
|
2835 |
-
}
|
2836 |
-
.alm-dir-listing li i {
|
2837 |
-
color: #999;
|
2838 |
-
padding: 0 5px 0 0;
|
2839 |
-
}
|
2840 |
-
|
2841 |
-
/*
|
2842 |
-
* Error Handling
|
2843 |
-
*
|
2844 |
-
* @since 2.6
|
2845 |
-
*/
|
2846 |
-
|
2847 |
-
.alm-error {
|
2848 |
-
position: absolute;
|
2849 |
-
z-index: 9999;
|
2850 |
-
background: #fff;
|
2851 |
-
padding: 10px;
|
2852 |
-
}
|
2853 |
-
|
2854 |
-
/*
|
2855 |
-
* Form Replacements
|
2856 |
-
*
|
2857 |
-
* @since 2.4
|
2858 |
-
*/
|
2859 |
-
|
2860 |
-
.ajax-load-more .alm-styled-input {
|
2861 |
-
display: flex;
|
2862 |
-
width: 100%;
|
2863 |
-
flex-wrap: nowrap;
|
2864 |
-
align-items: center;
|
2865 |
-
border-radius: 3px;
|
2866 |
-
border: 1px solid #e1e1e1;
|
2867 |
-
label {
|
2868 |
-
padding: 10px;
|
2869 |
-
font-size: 12px;
|
2870 |
-
font-weight: 700;
|
2871 |
-
border-right: 1px solid #e1e1e1;
|
2872 |
-
}
|
2873 |
-
input {
|
2874 |
-
border: none;
|
2875 |
-
border-radius: 0 2px 2px 0;
|
2876 |
-
margin: 0;
|
2877 |
-
width: 100%;
|
2878 |
-
}
|
2879 |
-
}
|
2880 |
-
|
2881 |
-
.shortcode-builder input[type="checkbox"],
|
2882 |
-
.shortcode-builder input[type="radio"],
|
2883 |
-
.ajax-load-more .form-table input[type="checkbox"],
|
2884 |
-
.ajax-load-more .form-table input[type="radio"] {
|
2885 |
-
width: 0;
|
2886 |
-
height: 0;
|
2887 |
-
opacity: 0;
|
2888 |
-
position: absolute;
|
2889 |
-
}
|
2890 |
-
|
2891 |
-
.shortcode-builder input[type="checkbox"] + label,
|
2892 |
-
.ajax-load-more .form-table input[type="checkbox"] + label,
|
2893 |
-
.shortcode-builder input[type="radio"] + label,
|
2894 |
-
.ajax-load-more .form-table input[type="radio"] + label {
|
2895 |
-
background: transparent url("../../img/bkg-chkbox_off.png") no-repeat left
|
2896 |
-
1px;
|
2897 |
-
height: auto;
|
2898 |
-
min-height: 23px;
|
2899 |
-
width: 100%;
|
2900 |
-
display: inline-block;
|
2901 |
-
padding: 0.1em 0 0 30px;
|
2902 |
-
margin: 0 0 5px;
|
2903 |
-
font-size: 14px;
|
2904 |
-
line-height: 1.5;
|
2905 |
-
cursor: pointer !important;
|
2906 |
-
span {
|
2907 |
-
display: inline-block;
|
2908 |
-
padding-left: 1px;
|
2909 |
-
font-size: 12px;
|
2910 |
-
color: #999;
|
2911 |
-
}
|
2912 |
-
}
|
2913 |
-
.shortcode-builder input[type="radio"] + label,
|
2914 |
-
.ajax-load-more .form-table input[type="radio"] + label {
|
2915 |
-
background: transparent url("../../img/bkg-radio_off.png") no-repeat left 2px;
|
2916 |
-
}
|
2917 |
-
|
2918 |
-
.shortcode-builder input[type="checkbox"]:hover + label,
|
2919 |
-
.ajax-load-more .form-table input[type="checkbox"]:hover + label,
|
2920 |
-
.shortcode-builder input[type="checkbox"]:focus + label,
|
2921 |
-
.ajax-load-more .form-table input[type="checkbox"]:focus + label {
|
2922 |
-
/* hover/focus */
|
2923 |
-
background-image: url("../../img/bkg-chkbox_on.png");
|
2924 |
-
}
|
2925 |
-
|
2926 |
-
.shortcode-builder input[type="radio"]:hover + label,
|
2927 |
-
.ajax-load-more .form-table input[type="radio"]:hover + label,
|
2928 |
-
.shortcode-builder input[type="radio"]:focus + label,
|
2929 |
-
.ajax-load-more .form-table input[type="radio"]:focus + label {
|
2930 |
-
/* hover/focus */
|
2931 |
-
background-image: url("../../img/bkg-radio_on.png");
|
2932 |
-
}
|
2933 |
-
|
2934 |
-
.shortcode-builder input[type="checkbox"]:checked + label,
|
2935 |
-
.ajax-load-more .form-table input[type="checkbox"]:checked + label {
|
2936 |
-
/* selected */
|
2937 |
-
background-image: url("../../img/bkg-chkbox_selected.png");
|
2938 |
-
color: #000;
|
2939 |
-
}
|
2940 |
-
|
2941 |
-
.shortcode-builder input[type="radio"]:checked + label,
|
2942 |
-
.ajax-load-more .form-table input[type="radio"]:checked + label {
|
2943 |
-
/* selected */
|
2944 |
-
background-image: url("../../img/bkg-radio_selected.png");
|
2945 |
-
color: #000;
|
2946 |
-
}
|
2947 |
-
|
2948 |
-
.shortcode-builder input[type="checkbox"] + label:hover,
|
2949 |
-
.ajax-load-more .form-table input[type="checkbox"] + label:hover,
|
2950 |
-
.shortcode-builder input[type="radio"] + label:hover,
|
2951 |
-
.ajax-load-more .form-table input[type="radio"] + label:hover {
|
2952 |
-
color: #000;
|
2953 |
-
}
|
2954 |
-
|
2955 |
-
/*
|
2956 |
-
* Shortcode Builder
|
2957 |
-
*
|
2958 |
-
* @since 2.13.0
|
2959 |
-
*/
|
2960 |
-
#alm-shortcode-builder-form {
|
2961 |
-
position: relative;
|
2962 |
-
}
|
2963 |
-
#alm-shortcode-builder-form .shortcode-parameter-wrap {
|
2964 |
-
padding: 0 20px 20px;
|
2965 |
-
display: block;
|
2966 |
-
background: #fff;
|
2967 |
-
border: 1px solid #e1e1e1;
|
2968 |
-
border-radius: 3px;
|
2969 |
-
margin-bottom: 10px;
|
2970 |
-
&.closed {
|
2971 |
-
padding-bottom: 0;
|
2972 |
-
border-bottom: none;
|
2973 |
-
}
|
2974 |
-
h2 {
|
2975 |
-
padding: 20px 22px 20px 43px;
|
2976 |
-
margin: 0 -20px;
|
2977 |
-
display: block;
|
2978 |
-
font-size: 20px;
|
2979 |
-
width: calc(100% + 40px);
|
2980 |
-
border-bottom: 1px solid #e1e1e1;
|
2981 |
-
background-color: #f7f7f7;
|
2982 |
-
border-radius: 2px 2px 0 0;
|
2983 |
-
color: $grey;
|
2984 |
-
font-weight: 700;
|
2985 |
-
position: relative;
|
2986 |
-
cursor: pointer;
|
2987 |
-
&:focus,
|
2988 |
-
&:hover {
|
2989 |
-
color: #222;
|
2990 |
-
outline: none;
|
2991 |
-
}
|
2992 |
-
&:hover:after,
|
2993 |
-
&:focus:after {
|
2994 |
-
color: #ccc;
|
2995 |
-
}
|
2996 |
-
&:after {
|
2997 |
-
font-family: "FontAwesome";
|
2998 |
-
content: "\f056";
|
2999 |
-
color: #e1e1e1;
|
3000 |
-
position: absolute;
|
3001 |
-
left: 15px;
|
3002 |
-
top: 20px;
|
3003 |
-
height: 20px;
|
3004 |
-
width: 20px;
|
3005 |
-
}
|
3006 |
-
&.open:after {
|
3007 |
-
content: "\f055";
|
3008 |
-
}
|
3009 |
-
i {
|
3010 |
-
position: absolute;
|
3011 |
-
right: 15px;
|
3012 |
-
top: 50%;
|
3013 |
-
transform: translateY(-50%);
|
3014 |
-
font-size: 25px;
|
3015 |
-
color: #ccc;
|
3016 |
-
opacity: 0.45;
|
3017 |
-
display: none;
|
3018 |
-
}
|
3019 |
-
}
|
3020 |
-
}
|
3021 |
-
|
3022 |
-
#alm-shortcode-builder-form .shortcode-parameter-wrap:first-of-type {
|
3023 |
-
margin-top: 0;
|
3024 |
-
}
|
3025 |
-
.progress_bar_color_indicator {
|
3026 |
-
position: absolute;
|
3027 |
-
left: 11px;
|
3028 |
-
top: 9px;
|
3029 |
-
width: 0;
|
3030 |
-
height: 0;
|
3031 |
-
padding: 11px;
|
3032 |
-
border-radius: 2px;
|
3033 |
-
z-index: 1;
|
3034 |
-
display: block;
|
3035 |
-
background-color: #ed7070;
|
3036 |
-
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
|
3037 |
-
}
|
3038 |
-
|
3039 |
-
/*
|
3040 |
-
* Repeater Template options dropdown
|
3041 |
-
* @since 2.4.1
|
3042 |
-
*/
|
3043 |
-
|
3044 |
-
.ajax-load-more .row.template {
|
3045 |
-
position: relative;
|
3046 |
-
&:first-of-type {
|
3047 |
-
margin-top: 0;
|
3048 |
-
}
|
3049 |
-
}
|
3050 |
-
.ajax-load-more .row.template:hover .alm-repeater-options {
|
3051 |
-
opacity: 1;
|
3052 |
-
}
|
3053 |
-
|
3054 |
-
.alm-drop-btn.alm-repeater-options {
|
3055 |
-
position: absolute;
|
3056 |
-
top: -42px;
|
3057 |
-
right: 7px;
|
3058 |
-
z-index: 8;
|
3059 |
-
a.target {
|
3060 |
-
padding: 5px 10px;
|
3061 |
-
box-shadow: none;
|
3062 |
-
border: none;
|
3063 |
-
> i {
|
3064 |
-
font-size: 20px;
|
3065 |
-
position: static;
|
3066 |
-
}
|
3067 |
-
}
|
3068 |
-
}
|
3069 |
-
|
3070 |
-
.alm-drop-btn a.target {
|
3071 |
-
position: relative;
|
3072 |
-
color: #444;
|
3073 |
-
text-decoration: none !important;
|
3074 |
-
padding: 0 12px 0 28px;
|
3075 |
-
border: 1px solid #ccc;
|
3076 |
-
border-radius: $radius;
|
3077 |
-
font-size: 13px;
|
3078 |
-
line-height: 30px;
|
3079 |
-
height: 32px;
|
3080 |
-
display: block;
|
3081 |
-
box-shadow: 0 0 0 1px #fff;
|
3082 |
-
}
|
3083 |
-
.alm-drop-btn a.target > i {
|
3084 |
-
color: #999;
|
3085 |
-
font-size: 15px;
|
3086 |
-
position: absolute;
|
3087 |
-
top: 8px;
|
3088 |
-
left: 8px;
|
3089 |
-
}
|
3090 |
-
.alm-repeater-options a.target:hover i.fa-cog {
|
3091 |
-
color: #333;
|
3092 |
-
}
|
3093 |
-
|
3094 |
-
/* Active / Hover state */
|
3095 |
-
.alm-repeater-options a.target:active,
|
3096 |
-
.alm-repeater-options.active a.target,
|
3097 |
-
.alm-repeater-options a.target:hover,
|
3098 |
-
.alm-repeater-options a.target:focus {
|
3099 |
-
background-color: transparent;
|
3100 |
-
color: #222;
|
3101 |
-
border-color: transparent;
|
3102 |
-
box-shadow: none;
|
3103 |
-
opacity: 1;
|
3104 |
-
}
|
3105 |
-
.alm-repeater-options.active a.target,
|
3106 |
-
.alm-repeater-options.active a.target i.fa-cog {
|
3107 |
-
color: #444;
|
3108 |
-
}
|
3109 |
-
|
3110 |
-
/* Layout Dropdown */
|
3111 |
-
.alm-drop-btn.alm-layout-selection {
|
3112 |
-
display: inline-block;
|
3113 |
-
float: right;
|
3114 |
-
margin: 6px 0 0;
|
3115 |
-
@media screen and (max-width: 480px) {
|
3116 |
-
float: none;
|
3117 |
-
}
|
3118 |
-
a.target {
|
3119 |
-
background-color: #f7f7f7;
|
3120 |
-
border-color: #e1e1e1;
|
3121 |
-
color: $grey;
|
3122 |
-
text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
|
3123 |
-
}
|
3124 |
-
> a > i {
|
3125 |
-
left: 12px;
|
3126 |
-
}
|
3127 |
-
li.type {
|
3128 |
-
height: 36px;
|
3129 |
-
line-height: 36px;
|
3130 |
-
padding: 0 4px 0 8px;
|
3131 |
-
position: relative;
|
3132 |
-
border-top: 1px solid $border;
|
3133 |
-
&:first-of-type {
|
3134 |
-
border: none;
|
3135 |
-
}
|
3136 |
-
}
|
3137 |
-
}
|
3138 |
-
.alm-dropdown ul li.layout i {
|
3139 |
-
top: 11px;
|
3140 |
-
}
|
3141 |
-
.alm-drop-btn.alm-layout-selection li.type .col-select {
|
3142 |
-
float: right;
|
3143 |
-
text-align: right;
|
3144 |
-
width: auto;
|
3145 |
-
height: 33px;
|
3146 |
-
line-height: 33px;
|
3147 |
-
}
|
3148 |
-
.alm-drop-btn.alm-layout-selection li.type .col-select a {
|
3149 |
-
width: 32px;
|
3150 |
-
height: 30px;
|
3151 |
-
margin: 3px 0 0 0;
|
3152 |
-
padding: 0;
|
3153 |
-
float: left;
|
3154 |
-
text-align: center;
|
3155 |
-
background-position: center center;
|
3156 |
-
background-repeat: no-repeat;
|
3157 |
-
vertical-align: top;
|
3158 |
-
text-indent: -99999px;
|
3159 |
-
overflow: hidden;
|
3160 |
-
opacity: 1;
|
3161 |
-
border-radius: 2px;
|
3162 |
-
border: 1px solid transparent;
|
3163 |
-
}
|
3164 |
-
.alm-drop-btn.alm-layout-selection li.type .col-select a.column-1 {
|
3165 |
-
background-image: url("../../img/column-1.png");
|
3166 |
-
}
|
3167 |
-
.alm-drop-btn.alm-layout-selection li.type .col-select a.column-2 {
|
3168 |
-
background-image: url("../../img/column-2.png");
|
3169 |
-
}
|
3170 |
-
.alm-drop-btn.alm-layout-selection li.type .col-select a.column-3 {
|
3171 |
-
background-image: url("../../img/column-3.png");
|
3172 |
-
width: 36px;
|
3173 |
-
}
|
3174 |
-
.alm-drop-btn.alm-layout-selection li.type .col-select a.column-4 {
|
3175 |
-
background-image: url("../../img/column-4.png");
|
3176 |
-
width: 36px;
|
3177 |
-
}
|
3178 |
-
.alm-drop-btn.alm-layout-selection li.type .col-select a.column-1.updating,
|
3179 |
-
.alm-drop-btn.alm-layout-selection li.type .col-select a.column-2.updating,
|
3180 |
-
.alm-drop-btn.alm-layout-selection li.type .col-select a.column-3.updating {
|
3181 |
-
background-image: url("../../img/loader.gif");
|
3182 |
-
padding: 0 !important;
|
3183 |
-
}
|
3184 |
-
.alm-drop-btn.alm-layout-selection li.type .col-select a:hover,
|
3185 |
-
.alm-drop-btn.alm-layout-selection li.type .col-select a.updating {
|
3186 |
-
opacity: 1;
|
3187 |
-
background-color: #fff;
|
3188 |
-
border-color: #ccc;
|
3189 |
-
}
|
3190 |
-
.alm-drop-btn.alm-layout-selection li.type:hover {
|
3191 |
-
background-color: #faf8e6;
|
3192 |
-
}
|
3193 |
-
|
3194 |
-
/* External Link + Add-on */
|
3195 |
-
.alm-drop-btn.alm-layout-selection a.external,
|
3196 |
-
.alm-drop-btn.alm-layout-selection a.add-on {
|
3197 |
-
background-color: #f7f7f7;
|
3198 |
-
padding: 13px 10px 13px 36px;
|
3199 |
-
display: block;
|
3200 |
-
}
|
3201 |
-
.alm-drop-btn.alm-layout-selection a.external {
|
3202 |
-
padding: 0 10px 0 36px;
|
3203 |
-
font-weight: 600;
|
3204 |
-
border: 1px solid $border;
|
3205 |
-
border-radius: $radius;
|
3206 |
-
}
|
3207 |
-
.alm-drop-btn.alm-layout-selection a.external i {
|
3208 |
-
color: #999;
|
3209 |
-
border-color: #ccc;
|
3210 |
-
top: 53%;
|
3211 |
-
transform: translateY(-50%);
|
3212 |
-
width: 38px;
|
3213 |
-
}
|
3214 |
-
.alm-drop-btn.alm-layout-selection a.external:hover i {
|
3215 |
-
color: #666;
|
3216 |
-
}
|
3217 |
-
.alm-drop-btn.alm-layout-selection a.add-on {
|
3218 |
-
line-height: 1.5;
|
3219 |
-
background-color: #75d0b4;
|
3220 |
-
border: none;
|
3221 |
-
color: #fff;
|
3222 |
-
font-weight: 400;
|
3223 |
-
text-overflow: inherit;
|
3224 |
-
height: auto;
|
3225 |
-
white-space: normal;
|
3226 |
-
font-size: 13px;
|
3227 |
-
padding: 12px 15px;
|
3228 |
-
}
|
3229 |
-
.alm-drop-btn.alm-layout-selection a.add-on:hover,
|
3230 |
-
.alm-drop-btn.alm-layout-selection a.add-on:focus {
|
3231 |
-
background-color: $green_hover;
|
3232 |
-
}
|
3233 |
-
.alm-drop-btn.alm-layout-selection a.add-on:hover i {
|
3234 |
-
opacity: 1;
|
3235 |
-
}
|
3236 |
-
.alm-drop-btn.alm-layout-selection a.add-on strong {
|
3237 |
-
color: #41635a;
|
3238 |
-
font-weight: 600;
|
3239 |
-
}
|
3240 |
-
.alm-drop-btn.alm-layout-selection a.add-on i {
|
3241 |
-
top: 14px;
|
3242 |
-
left: 3px;
|
3243 |
-
display: none;
|
3244 |
-
}
|
3245 |
-
.alm-drop-btn.alm-layout-selection a.add-on i {
|
3246 |
-
color: #fff !important;
|
3247 |
-
border-color: rgba(255, 255, 255, 0.3);
|
3248 |
-
}
|
3249 |
-
|
3250 |
-
.alm-drop-btn.alm-layout-selection a.target:hover,
|
3251 |
-
.alm-drop-btn.alm-layout-selection a.target:active,
|
3252 |
-
.alm-drop-btn.alm-layout-selection.active a.target {
|
3253 |
-
color: #222;
|
3254 |
-
border-color: #999;
|
3255 |
-
background-color: #f1f1f1;
|
3256 |
-
opacity: 1;
|
3257 |
-
}
|
3258 |
-
.alm-drop-btn.alm-layout-selection.active a.target,
|
3259 |
-
.alm-drop-btn.alm-layout-selection a.target:active {
|
3260 |
-
box-shadow: inset 0 1px 1px #ccc !important;
|
3261 |
-
}
|
3262 |
-
|
3263 |
-
.alm-drop-btn.alm-layout-selection .alm-dropdown {
|
3264 |
-
display: none;
|
3265 |
-
position: absolute;
|
3266 |
-
right: 0;
|
3267 |
-
top: 108%;
|
3268 |
-
z-index: 9;
|
3269 |
-
@media screen and (max-width: $small) {
|
3270 |
-
right: auto;
|
3271 |
-
left: 0;
|
3272 |
-
}
|
3273 |
-
}
|
3274 |
-
.alm-drop-btn .alm-dropdown:hover {
|
3275 |
-
display: block !important;
|
3276 |
-
}
|
3277 |
-
|
3278 |
-
@media screen and (max-width: $small) {
|
3279 |
-
.alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:after,
|
3280 |
-
.alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:before {
|
3281 |
-
right: auto;
|
3282 |
-
left: 36px;
|
3283 |
-
}
|
3284 |
-
.alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:after {
|
3285 |
-
margin-left: 0;
|
3286 |
-
}
|
3287 |
-
.alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:before {
|
3288 |
-
right: auto;
|
3289 |
-
left: 35px;
|
3290 |
-
}
|
3291 |
-
}
|
3292 |
-
|
3293 |
-
.add-layout-cta {
|
3294 |
-
border-radius: 2px;
|
3295 |
-
border: 1px solid #e1e1e1;
|
3296 |
-
background-color: #fefeed;
|
3297 |
-
padding: 10px 100px 10px 10px;
|
3298 |
-
display: block;
|
3299 |
-
margin: 5px 0 15px;
|
3300 |
-
font-weight: 600;
|
3301 |
-
position: relative;
|
3302 |
-
}
|
3303 |
-
.add-layout-cta p {
|
3304 |
-
margin: 0;
|
3305 |
-
font-size: 13px;
|
3306 |
-
}
|
3307 |
-
span.dismiss {
|
3308 |
-
position: absolute;
|
3309 |
-
right: 10px;
|
3310 |
-
top: 11px;
|
3311 |
-
font-size: 13px;
|
3312 |
-
}
|
3313 |
-
span.dismiss a {
|
3314 |
-
text-decoration: none;
|
3315 |
-
}
|
3316 |
-
|
3317 |
-
/* Dropwbown */
|
3318 |
-
|
3319 |
-
.alm-drop-btn {
|
3320 |
-
position: relative;
|
3321 |
-
width: auto;
|
3322 |
-
}
|
3323 |
-
|
3324 |
-
.alm-dropdown {
|
3325 |
-
display: none;
|
3326 |
-
position: absolute;
|
3327 |
-
top: 108%;
|
3328 |
-
right: -15px;
|
3329 |
-
z-index: 9;
|
3330 |
-
.alm-drop-inner {
|
3331 |
-
display: block;
|
3332 |
-
position: relative;
|
3333 |
-
background: #fff;
|
3334 |
-
border-radius: $radius;
|
3335 |
-
border: 1px solid #ccc;
|
3336 |
-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
3337 |
-
padding: 8px 10px;
|
3338 |
-
width: 220px;
|
3339 |
-
}
|
3340 |
-
.alm-drop-inner:after,
|
3341 |
-
.alm-drop-inner:before {
|
3342 |
-
bottom: 100%;
|
3343 |
-
right: 26px;
|
3344 |
-
border: solid transparent;
|
3345 |
-
content: " ";
|
3346 |
-
height: 0;
|
3347 |
-
width: 0;
|
3348 |
-
position: absolute;
|
3349 |
-
pointer-events: none;
|
3350 |
-
}
|
3351 |
-
|
3352 |
-
.alm-drop-inner:after {
|
3353 |
-
border-color: rgba(247, 247, 247, 0);
|
3354 |
-
border-bottom-color: #fff;
|
3355 |
-
border-width: 7px;
|
3356 |
-
margin-left: -7px;
|
3357 |
-
}
|
3358 |
-
.alm-drop-inner:before {
|
3359 |
-
border-color: rgba(204, 204, 204, 0);
|
3360 |
-
border-bottom-color: #ccc;
|
3361 |
-
border-width: 8px;
|
3362 |
-
right: 25px;
|
3363 |
-
}
|
3364 |
-
|
3365 |
-
&.active {
|
3366 |
-
display: block !important;
|
3367 |
-
}
|
3368 |
-
}
|
3369 |
-
|
3370 |
-
.alm-layout-selection .alm-dropdown .alm-drop-inner {
|
3371 |
-
width: 270px;
|
3372 |
-
padding: 10px 10px 6px;
|
3373 |
-
}
|
3374 |
-
|
3375 |
-
.alm-dropdown {
|
3376 |
-
ul {
|
3377 |
-
padding: 0;
|
3378 |
-
margin: 0;
|
3379 |
-
overflow: hidden;
|
3380 |
-
}
|
3381 |
-
li {
|
3382 |
-
margin: 0;
|
3383 |
-
padding: 2px 0;
|
3384 |
-
list-style: none;
|
3385 |
-
clear: both;
|
3386 |
-
font-size: 13px;
|
3387 |
-
line-height: 1.2;
|
3388 |
-
font-weight: 400;
|
3389 |
-
&.option {
|
3390 |
-
border-radius: $radius;
|
3391 |
-
&:nth-child(even) {
|
3392 |
-
background-color: $light_grey;
|
3393 |
-
}
|
3394 |
-
}
|
3395 |
-
a:not(.button) {
|
3396 |
-
padding: 0 10px 0 32px;
|
3397 |
-
line-height: 40px;
|
3398 |
-
height: 40px;
|
3399 |
-
display: block;
|
3400 |
-
text-decoration: none;
|
3401 |
-
background-position: 4px center;
|
3402 |
-
color: $grey;
|
3403 |
-
box-shadow: none !important;
|
3404 |
-
position: relative;
|
3405 |
-
width: 100%;
|
3406 |
-
white-space: nowrap;
|
3407 |
-
overflow: hidden;
|
3408 |
-
text-overflow: ellipsis;
|
3409 |
-
border-radius: $radius;
|
3410 |
-
&:hover,
|
3411 |
-
&:focus {
|
3412 |
-
color: #333;
|
3413 |
-
i {
|
3414 |
-
opacity: 0.8;
|
3415 |
-
}
|
3416 |
-
}
|
3417 |
-
i {
|
3418 |
-
margin: 0;
|
3419 |
-
position: absolute;
|
3420 |
-
left: 0px;
|
3421 |
-
top: 50%;
|
3422 |
-
transform: translateY(-50%);
|
3423 |
-
width: 32px;
|
3424 |
-
font-size: 14px;
|
3425 |
-
line-height: 1;
|
3426 |
-
display: inline-block;
|
3427 |
-
text-align: center;
|
3428 |
-
opacity: 0.5;
|
3429 |
-
}
|
3430 |
-
}
|
3431 |
-
&.layout-cta {
|
3432 |
-
border: 1px solid $border;
|
3433 |
-
padding: 20px 10px;
|
3434 |
-
border-radius: $radius;
|
3435 |
-
margin-bottom: 5px;
|
3436 |
-
background-color: #fffeed;
|
3437 |
-
text-align: center;
|
3438 |
-
span {
|
3439 |
-
display: block;
|
3440 |
-
padding: 0 0 12px;
|
3441 |
-
line-height: 1.5;
|
3442 |
-
}
|
3443 |
-
}
|
3444 |
-
}
|
3445 |
-
}
|
3446 |
-
|
3447 |
-
/*
|
3448 |
-
* Mailchimp Sign-up
|
3449 |
-
*
|
3450 |
-
* @since 2.7.2
|
3451 |
-
*/
|
3452 |
-
|
3453 |
-
#alm-mailing-list {
|
3454 |
-
}
|
3455 |
-
#alm-mailing-list .center {
|
3456 |
-
text-align: center;
|
3457 |
-
display: block;
|
3458 |
-
background: #f7f7f7;
|
3459 |
-
border: 1px solid #efefef;
|
3460 |
-
padding: 15px;
|
3461 |
-
margin: -5px 0 20px;
|
3462 |
-
border-radius: 2px;
|
3463 |
-
box-shadow: inset 0 0 0 1px #fff;
|
3464 |
-
}
|
3465 |
-
.center-text {
|
3466 |
-
text-align: center;
|
3467 |
-
}
|
3468 |
-
#alm-mailing-list .center p {
|
3469 |
-
margin-bottom: 15px;
|
3470 |
-
}
|
3471 |
-
.ajax-load-more .cnkt-sidebar .cta.social .follow-btn {
|
3472 |
-
display: inline-block;
|
3473 |
-
background-color: #fff;
|
3474 |
-
color: #333;
|
3475 |
-
font-size: 20px;
|
3476 |
-
padding: 0;
|
3477 |
-
width: 44px;
|
3478 |
-
height: 44px;
|
3479 |
-
line-height: 44px;
|
3480 |
-
text-align: center;
|
3481 |
-
vertical-align: top;
|
3482 |
-
border-radius: 100%;
|
3483 |
-
margin: 0 1px 0 0;
|
3484 |
-
opacity: 0.8;
|
3485 |
-
}
|
3486 |
-
|
3487 |
-
.ajax-load-more .cnkt-sidebar .cta.social .follow-btn.facebook {
|
3488 |
-
background-color: #3b5998;
|
3489 |
-
color: #fff;
|
3490 |
-
}
|
3491 |
-
.ajax-load-more .cnkt-sidebar .cta.social .follow-btn.twitter {
|
3492 |
-
background-color: #00aced;
|
3493 |
-
color: #fff;
|
3494 |
-
}
|
3495 |
-
.ajax-load-more .cnkt-sidebar .cta.social .follow-btn:hover {
|
3496 |
-
opacity: 1;
|
3497 |
-
}
|
3498 |
-
|
3499 |
-
#alm-mailing-list .form-wrap {
|
3500 |
-
background-color: #fff;
|
3501 |
-
padding: 12px;
|
3502 |
-
border: 1px solid #e1e1e1;
|
3503 |
-
box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.025);
|
3504 |
-
position: relative;
|
3505 |
-
border-radius: 2px;
|
3506 |
-
}
|
3507 |
-
#alm-mailing-list .form-wrap .inner-wrap {
|
3508 |
-
position: relative;
|
3509 |
-
display: block;
|
3510 |
-
}
|
3511 |
-
#alm-mailing-list .form-wrap input {
|
3512 |
-
width: 100%;
|
3513 |
-
display: block;
|
3514 |
-
margin: 0;
|
3515 |
-
background: #fff;
|
3516 |
-
font-size: 13px;
|
3517 |
-
border-color: #eee;
|
3518 |
-
padding: 0 7px 0 46px;
|
3519 |
-
height: 40px;
|
3520 |
-
line-height: 40px;
|
3521 |
-
}
|
3522 |
-
#alm-mailing-list .form-wrap i.fa-envelope {
|
3523 |
-
color: #fff;
|
3524 |
-
background: #ff5a58;
|
3525 |
-
position: absolute;
|
3526 |
-
top: 0;
|
3527 |
-
left: 0;
|
3528 |
-
font-size: 18px;
|
3529 |
-
z-index: 1;
|
3530 |
-
height: 40px;
|
3531 |
-
width: 40px;
|
3532 |
-
text-align: center;
|
3533 |
-
line-height: 40px;
|
3534 |
-
border-radius: 2px 0 0 2px;
|
3535 |
-
}
|
3536 |
-
#alm-mailing-list .form-wrap button {
|
3537 |
-
padding: 0;
|
3538 |
-
margin: 0;
|
3539 |
-
height: auto;
|
3540 |
-
line-height: 1.2;
|
3541 |
-
font-weight: 600;
|
3542 |
-
position: absolute;
|
3543 |
-
right: 0;
|
3544 |
-
top: 0;
|
3545 |
-
z-index: 1;
|
3546 |
-
height: 100%;
|
3547 |
-
font-size: 13px;
|
3548 |
-
border-radius: 0;
|
3549 |
-
width: 40px;
|
3550 |
-
height: 40px;
|
3551 |
-
color: #ff5a58;
|
3552 |
-
background: none !important;
|
3553 |
-
cursor: pointer;
|
3554 |
-
}
|
3555 |
-
|
3556 |
-
#alm-mailing-list .form-wrap button i {
|
3557 |
-
color: #ccc;
|
3558 |
-
line-height: 40px;
|
3559 |
-
width: 20px;
|
3560 |
-
text-align: center;
|
3561 |
-
position: absolute;
|
3562 |
-
right: 5px;
|
3563 |
-
top: 0;
|
3564 |
-
font-size: 19px;
|
3565 |
-
}
|
3566 |
-
#alm-mailing-list .form-wrap button:hover i {
|
3567 |
-
color: #999;
|
3568 |
-
}
|
3569 |
-
|
3570 |
-
#alm-mailing-list .form-wrap button span {
|
3571 |
-
position: absolute;
|
3572 |
-
left: -9999px;
|
3573 |
-
top: -9999px;
|
3574 |
-
}
|
3575 |
-
|
3576 |
-
#alm-mailing-list .form-wrap label {
|
3577 |
-
font-size: 11px;
|
3578 |
-
text-transform: uppercase;
|
3579 |
-
margin: 0 0;
|
3580 |
-
padding: 0;
|
3581 |
-
font-weight: 600;
|
3582 |
-
position: absolute;
|
3583 |
-
left: -9999px;
|
3584 |
-
top: -9999px;
|
3585 |
-
}
|
3586 |
-
#alm-mailing-list .form-wrap #response {
|
3587 |
-
padding-top: 11px;
|
3588 |
-
font-size: 13px;
|
3589 |
-
display: none;
|
3590 |
-
text-align: center;
|
3591 |
-
position: absolute;
|
3592 |
-
left: 0;
|
3593 |
-
top: 0;
|
3594 |
-
width: 100%;
|
3595 |
-
height: 100%;
|
3596 |
-
background: #fff;
|
3597 |
-
z-index: 1;
|
3598 |
-
}
|
3599 |
-
#alm-mailing-list .form-wrap #response p {
|
3600 |
-
font-style: normal !important;
|
3601 |
-
}
|
3602 |
-
|
3603 |
-
/* share-alm */
|
3604 |
-
.alm-notification {
|
3605 |
-
border-radius: 2px;
|
3606 |
-
&--blue {
|
3607 |
-
background: #5899de !important;
|
3608 |
-
border-color: #4b7eb5 !important;
|
3609 |
-
}
|
3610 |
-
&:hover {
|
3611 |
-
a.dismiss {
|
3612 |
-
opacity: 0.7;
|
3613 |
-
}
|
3614 |
-
}
|
3615 |
-
&--inner {
|
3616 |
-
padding: 14px 20px 20px;
|
3617 |
-
}
|
3618 |
-
.dotted {
|
3619 |
-
border: none;
|
3620 |
-
border-bottom: 1px dashed #ccc;
|
3621 |
-
background: none;
|
3622 |
-
margin: 0 0 20px;
|
3623 |
-
padding: 0 0 15px;
|
3624 |
-
}
|
3625 |
-
h2 {
|
3626 |
-
line-height: 1.25;
|
3627 |
-
position: relative;
|
3628 |
-
color: #fff;
|
3629 |
-
font-size: 15px;
|
3630 |
-
margin: 0;
|
3631 |
-
padding: 14px 20px;
|
3632 |
-
font-weight: 700;
|
3633 |
-
border-bottom: 1px solid rgba(255, 255, 255, 0.15);
|
3634 |
-
span {
|
3635 |
-
position: absolute;
|
3636 |
-
left: 0;
|
3637 |
-
top: 0;
|
3638 |
-
}
|
3639 |
-
@media screen and (max-width: $small) {
|
3640 |
-
padding-left: 0;
|
3641 |
-
span {
|
3642 |
-
display: none;
|
3643 |
-
}
|
3644 |
-
}
|
3645 |
-
}
|
3646 |
-
|
3647 |
-
p {
|
3648 |
-
font-size: 14px;
|
3649 |
-
margin: 0 0 20px;
|
3650 |
-
a {
|
3651 |
-
font-weight: 600;
|
3652 |
-
&:hover,
|
3653 |
-
&:focus {
|
3654 |
-
text-decoration: none;
|
3655 |
-
}
|
3656 |
-
}
|
3657 |
-
&.opening {
|
3658 |
-
font-size: 18px;
|
3659 |
-
margin: 0 0 15px;
|
3660 |
-
font-weight: 300;
|
3661 |
-
line-height: 1.4;
|
3662 |
-
}
|
3663 |
-
}
|
3664 |
-
|
3665 |
-
p.opener {
|
3666 |
-
color: #444;
|
3667 |
-
font-weight: 700;
|
3668 |
-
font-size: 16px;
|
3669 |
-
position: relative;
|
3670 |
-
margin: 0 0 20px;
|
3671 |
-
}
|
3672 |
-
|
3673 |
-
ul.share {
|
3674 |
-
margin: 0;
|
3675 |
-
padding: 0;
|
3676 |
-
width: auto;
|
3677 |
-
clear: both;
|
3678 |
-
display: flex;
|
3679 |
-
flex-wrap: nowrap;
|
3680 |
-
width: 100%;
|
3681 |
-
overflow: visible;
|
3682 |
-
text-align: left;
|
3683 |
-
width: 100%;
|
3684 |
-
height: auto;
|
3685 |
-
border-radius: 0 0 3px 3px;
|
3686 |
-
background-color: $red;
|
3687 |
-
background-color: #9d87c7;
|
3688 |
-
li {
|
3689 |
-
flex: 1;
|
3690 |
-
background: none;
|
3691 |
-
display: block;
|
3692 |
-
vertical-align: top;
|
3693 |
-
height: auto;
|
3694 |
-
line-height: 40px;
|
3695 |
-
font-size: 13px;
|
3696 |
-
position: relative;
|
3697 |
-
font-weight: 400;
|
3698 |
-
text-align: left;
|
3699 |
-
background: none;
|
3700 |
-
color: #787878;
|
3701 |
-
width: auto;
|
3702 |
-
text-align: center;
|
3703 |
-
margin: 0 !important;
|
3704 |
-
padding: 0;
|
3705 |
-
background: none;
|
3706 |
-
border-left: 1px solid rgba(255, 255, 255, 0.15);
|
3707 |
-
&:first-of-type {
|
3708 |
-
border-left: none;
|
3709 |
-
}
|
3710 |
-
a {
|
3711 |
-
display: block;
|
3712 |
-
line-height: 50px;
|
3713 |
-
height: 50px;
|
3714 |
-
width: 100%;
|
3715 |
-
padding: 0 10px;
|
3716 |
-
text-decoration: none;
|
3717 |
-
color: #fff;
|
3718 |
-
text-align: center;
|
3719 |
-
background: none;
|
3720 |
-
border-radius: 0;
|
3721 |
-
position: relative;
|
3722 |
-
font-weight: 500;
|
3723 |
-
&:hover,
|
3724 |
-
&:focus {
|
3725 |
-
background-color: #b3a0d6 !important;
|
3726 |
-
}
|
3727 |
-
i {
|
3728 |
-
margin: 0 10px 0 0;
|
3729 |
-
font-size: 1.25em;
|
3730 |
-
position: relative;
|
3731 |
-
top: 1px;
|
3732 |
-
}
|
3733 |
-
&:hover,
|
3734 |
-
&:hover i {
|
3735 |
-
text-decoration: none;
|
3736 |
-
color: #fff !important;
|
3737 |
-
span {
|
3738 |
-
text-decoration: none;
|
3739 |
-
}
|
3740 |
-
}
|
3741 |
-
}
|
3742 |
-
&.twitter a {
|
3743 |
-
//background: #00aced;
|
3744 |
-
}
|
3745 |
-
&.twitter a:hover {
|
3746 |
-
//background: #13beff !important;
|
3747 |
-
}
|
3748 |
-
&.facebook a {
|
3749 |
-
//background: #3b5998;
|
3750 |
-
}
|
3751 |
-
&.facebook a:hover {
|
3752 |
-
//background: #466cbc !important;
|
3753 |
-
}
|
3754 |
-
}
|
3755 |
-
}
|
3756 |
-
|
3757 |
-
// Close BTN
|
3758 |
-
a.dismiss {
|
3759 |
-
position: absolute;
|
3760 |
-
right: 3px;
|
3761 |
-
top: 3px;
|
3762 |
-
text-decoration: none;
|
3763 |
-
width: 30px;
|
3764 |
-
height: 30px;
|
3765 |
-
line-height: 30px;
|
3766 |
-
padding: 0;
|
3767 |
-
text-align: center;
|
3768 |
-
color: #ccc;
|
3769 |
-
border-right: none;
|
3770 |
-
border-top: none;
|
3771 |
-
display: block;
|
3772 |
-
font-size: 24px;
|
3773 |
-
font-weight: 300;
|
3774 |
-
opacity: 0.3;
|
3775 |
-
&:hover,
|
3776 |
-
&:focus {
|
3777 |
-
color: #999;
|
3778 |
-
opacity: 1;
|
3779 |
-
}
|
3780 |
-
}
|
3781 |
-
}
|
3782 |
-
|
3783 |
-
/*
|
3784 |
-
* Local templates Add-on
|
3785 |
-
*
|
3786 |
-
* @since 2.7.3
|
3787 |
-
*/
|
3788 |
-
|
3789 |
-
.select-theme-repeater {
|
3790 |
-
display: flex;
|
3791 |
-
width: 100%;
|
3792 |
-
flex-wrap: nowrap;
|
3793 |
-
position: relative;
|
3794 |
-
.or {
|
3795 |
-
position: absolute;
|
3796 |
-
left: 70px;
|
3797 |
-
top: -20px;
|
3798 |
-
background: #fff;
|
3799 |
-
color: #333;
|
3800 |
-
width: 34px;
|
3801 |
-
height: 34px;
|
3802 |
-
line-height: 34px;
|
3803 |
-
text-align: center;
|
3804 |
-
z-index: 1;
|
3805 |
-
font-weight: 700;
|
3806 |
-
border-radius: 100%;
|
3807 |
-
text-transform: uppercase;
|
3808 |
-
border: 1px solid #e1e1e1;
|
3809 |
-
box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
|
3810 |
-
font-size: 11px;
|
3811 |
-
}
|
3812 |
-
}
|
3813 |
-
|
3814 |
-
.alm-template-section-nav {
|
3815 |
-
display: block;
|
3816 |
-
margin: 0 0;
|
3817 |
-
padding: 0;
|
3818 |
-
}
|
3819 |
-
.alm-template-section-nav li {
|
3820 |
-
display: inline-block;
|
3821 |
-
vertical-align: top;
|
3822 |
-
}
|
3823 |
-
.alm-template-section-nav li a {
|
3824 |
-
padding: 5px;
|
3825 |
-
display: block;
|
3826 |
-
}
|
3827 |
-
.alm-template-section-nav li.active a {
|
3828 |
-
background: #ff0000;
|
3829 |
-
}
|
3830 |
-
|
3831 |
-
/*
|
3832 |
-
* Toggle Switch
|
3833 |
-
*
|
3834 |
-
* @since 2.14.0
|
3835 |
-
*/
|
3836 |
-
.ajax-load-more .alm-toggle-switch {
|
3837 |
-
display: block;
|
3838 |
-
clear: both;
|
3839 |
-
margin: 0;
|
3840 |
-
padding: 0 10px;
|
3841 |
-
overflow: hidden;
|
3842 |
-
position: relative;
|
3843 |
-
top: 1px;
|
3844 |
-
z-index: 9;
|
3845 |
-
li {
|
3846 |
-
float: left;
|
3847 |
-
margin: 0 2px 0 0;
|
3848 |
-
padding: 0;
|
3849 |
-
background: none;
|
3850 |
-
list-style: none;
|
3851 |
-
}
|
3852 |
-
li a {
|
3853 |
-
display: block;
|
3854 |
-
padding: 14px 20px;
|
3855 |
-
line-height: 1;
|
3856 |
-
text-decoration: none;
|
3857 |
-
border: 1px solid $border;
|
3858 |
-
border-radius: $radius $radius 0 0;
|
3859 |
-
background: #f7f7f7;
|
3860 |
-
color: $grey;
|
3861 |
-
}
|
3862 |
-
li a:hover {
|
3863 |
-
color: #222;
|
3864 |
-
background-color: #fff;
|
3865 |
-
}
|
3866 |
-
li a.active {
|
3867 |
-
background: #fff;
|
3868 |
-
font-weight: 600;
|
3869 |
-
border-bottom-color: #fff;
|
3870 |
-
color: #111;
|
3871 |
-
}
|
3872 |
-
}
|
3873 |
-
|
3874 |
-
/*
|
3875 |
-
* Admin screen media queries
|
3876 |
-
*
|
3877 |
-
* @since 1.0
|
3878 |
-
*/
|
3879 |
-
|
3880 |
-
@media screen and (max-width: 1200px) {
|
3881 |
-
.ajax-load-more input[type="text"],
|
3882 |
-
.ajax-load-more input[type="number"],
|
3883 |
-
.select2-container,
|
3884 |
-
#alm-builder .select2-container-multi,
|
3885 |
-
.ajax-load-more textarea {
|
3886 |
-
width: 95%;
|
3887 |
-
}
|
3888 |
-
|
3889 |
-
#alm-builder .select2-container-multi {
|
3890 |
-
width: 95% !important;
|
3891 |
-
}
|
3892 |
-
}
|
3893 |
-
|
3894 |
-
@media screen and (max-width: 900px) {
|
3895 |
-
.table-of-contents {
|
3896 |
-
position: static !important;
|
3897 |
-
width: 100% !important;
|
3898 |
-
}
|
3899 |
-
.ajax-load-more .cnkt-main,
|
3900 |
-
.ajax-load-more .cnkt-sidebar,
|
3901 |
-
.ajax-load-more .cnkt-main.full {
|
3902 |
-
float: none;
|
3903 |
-
clear: both;
|
3904 |
-
margin: 0;
|
3905 |
-
width: 100%;
|
3906 |
-
position: static !important;
|
3907 |
-
border: none;
|
3908 |
-
}
|
3909 |
-
.admin.ajax-load-more.settings .form-table td {
|
3910 |
-
padding: 24px 20px 20px;
|
3911 |
-
}
|
3912 |
-
.call-out.light {
|
3913 |
-
padding: 15px !important;
|
3914 |
-
}
|
3915 |
-
.repeaters input.save-repeater {
|
3916 |
-
max-width: 50%;
|
3917 |
-
}
|
3918 |
-
}
|
3919 |
-
|
3920 |
-
@media screen and (max-width: 782px) {
|
3921 |
-
.admin.ajax-load-more.settings .form-table th {
|
3922 |
-
padding-bottom: 0;
|
3923 |
-
border: none;
|
3924 |
-
background-color: transparent;
|
3925 |
-
}
|
3926 |
-
.share-alm .sharing {
|
3927 |
-
padding-right: 0;
|
3928 |
-
width: 100%;
|
3929 |
-
margin-right: 0 !important;
|
3930 |
-
}
|
3931 |
-
.share-alm .mailing {
|
3932 |
-
width: 100%;
|
3933 |
-
margin-left: 0 !important;
|
3934 |
-
padding-left: 0;
|
3935 |
-
padding-top: 40px;
|
3936 |
-
border-left: none;
|
3937 |
-
}
|
3938 |
-
}
|
3939 |
-
|
3940 |
-
@media screen and (max-width: 480px) {
|
3941 |
-
.ajax-load-more .section-title,
|
3942 |
-
.ajax-load-more .row .wrap {
|
3943 |
-
clear: both;
|
3944 |
-
width: 100%;
|
3945 |
-
display: block;
|
3946 |
-
float: none;
|
3947 |
-
padding: 10px;
|
3948 |
-
}
|
3949 |
-
.ajax-load-more .section-title {
|
3950 |
-
padding: 20px 20px 10px;
|
3951 |
-
}
|
3952 |
-
.ajax-load-more .row .wrap {
|
3953 |
-
padding: 10px 20px;
|
3954 |
-
}
|
3955 |
-
.ajax-load-more textarea,
|
3956 |
-
.ajax-load-more input[type="text"],
|
3957 |
-
.ajax-load-more input[type="number"],
|
3958 |
-
.select2-container,
|
3959 |
-
#alm-builder .select2-container-multi {
|
3960 |
-
width: 100% !important;
|
3961 |
-
}
|
3962 |
-
.ajax-load-more .row .wrap .inner.half {
|
3963 |
-
display: block;
|
3964 |
-
padding: 0 0 20px;
|
3965 |
-
width: 100%;
|
3966 |
-
}
|
3967 |
-
.ajax-load-more .section-title p {
|
3968 |
-
color: #999;
|
3969 |
-
padding: 0 !important;
|
3970 |
-
}
|
3971 |
-
#alm-add-ons .row .wrap {
|
3972 |
-
padding-bottom: 60px;
|
3973 |
-
width: 100%;
|
3974 |
-
}
|
3975 |
-
#alm-add-ons .section-title {
|
3976 |
-
width: 100%;
|
3977 |
-
}
|
3978 |
-
|
3979 |
-
.alm-repeater-options {
|
3980 |
-
display: none !important;
|
3981 |
-
}
|
3982 |
-
|
3983 |
-
.ajax-load-more .wrap-30 {
|
3984 |
-
width: 100%;
|
3985 |
-
display: block;
|
3986 |
-
padding: 0 0 10px;
|
3987 |
-
}
|
3988 |
-
.ajax-load-more .row .wrap.full {
|
3989 |
-
padding: 10px;
|
3990 |
-
}
|
3991 |
-
|
3992 |
-
#alm-add-ons .group {
|
3993 |
-
width: 100%;
|
3994 |
-
display: block;
|
3995 |
-
margin: 0 0 2% 0;
|
3996 |
-
}
|
3997 |
-
.call-out.light {
|
3998 |
-
background: #fdfdec none repeat scroll 0 0;
|
3999 |
-
width: 100%;
|
4000 |
-
}
|
4001 |
-
.call-out.light p {
|
4002 |
-
padding: 0;
|
4003 |
-
}
|
4004 |
-
.ajax-load-more .one_half {
|
4005 |
-
width: 100%;
|
4006 |
-
margin: 0 0 2%;
|
4007 |
-
display: block;
|
4008 |
-
}
|
4009 |
-
.add-layout-cta {
|
4010 |
-
padding: 10px;
|
4011 |
-
}
|
4012 |
-
span.dismiss {
|
4013 |
-
position: static;
|
4014 |
-
padding-top: 20px;
|
4015 |
-
display: block;
|
4016 |
-
font-size: 12px;
|
4017 |
-
}
|
4018 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/src/scss/libs/select2.scss
DELETED
@@ -1,349 +0,0 @@
|
|
1 |
-
|
2 |
-
/*
|
3 |
-
* Select2 - form replacement - http://ivaynberg.github.io/select2/
|
4 |
-
*
|
5 |
-
* @since 1.0
|
6 |
-
*/
|
7 |
-
|
8 |
-
.select2-container {
|
9 |
-
position: relative;
|
10 |
-
display: inline-block;
|
11 |
-
zoom: 1;
|
12 |
-
*display: inline;
|
13 |
-
vertical-align: middle;
|
14 |
-
min-width: 60%;
|
15 |
-
}
|
16 |
-
.inner.half .select2-container{
|
17 |
-
min-width: 90%;
|
18 |
-
width: 90%;
|
19 |
-
}
|
20 |
-
#alm-builder .select2-container li{
|
21 |
-
padding-right: 0;
|
22 |
-
}
|
23 |
-
.select2-container a.select2-choice {
|
24 |
-
display: block;
|
25 |
-
height: 40px;
|
26 |
-
line-height: 38px;
|
27 |
-
padding: 0 10px;
|
28 |
-
overflow: hidden;
|
29 |
-
position: relative;
|
30 |
-
border: 1px solid #e1e1e1;
|
31 |
-
white-space: nowrap;
|
32 |
-
color: #333;
|
33 |
-
text-decoration: none;
|
34 |
-
background: #fff;
|
35 |
-
background: #f7f7f7;
|
36 |
-
border-radius:2px;
|
37 |
-
-webkit-background-clip: padding-box;
|
38 |
-
-moz-background-clip: padding;
|
39 |
-
background-clip: padding-box;
|
40 |
-
-webkit-touch-callout: none;
|
41 |
-
-webkit-user-select: none;
|
42 |
-
-khtml-user-select: none;
|
43 |
-
-moz-user-select: none;
|
44 |
-
-ms-user-select: none;
|
45 |
-
user-select: none;
|
46 |
-
font-size: 14px;
|
47 |
-
}
|
48 |
-
|
49 |
-
.select2-dropdown-open.select2-container-active .select2-choice {
|
50 |
-
-webkit-border-radius: 4px 4px 0 0;
|
51 |
-
-moz-border-radius: 4px 4px 0 0;
|
52 |
-
border-radius: 4px 4px 0 0;
|
53 |
-
}
|
54 |
-
|
55 |
-
.select2-container.select2-drop-above .select2-choice {
|
56 |
-
background: #fff;
|
57 |
-
-webkit-border-radius: 0 0 4px 4px;
|
58 |
-
-moz-border-radius: 0px 0px 4px 4px;
|
59 |
-
border-radius: 0 0 4px 4px;
|
60 |
-
}
|
61 |
-
|
62 |
-
.select2-container .select2-choice span {
|
63 |
-
margin-right: 30px;
|
64 |
-
margin-left: 2px;
|
65 |
-
display: block;
|
66 |
-
overflow: hidden;
|
67 |
-
white-space: nowrap;
|
68 |
-
color: #666;
|
69 |
-
-ms-text-overflow: ellipsis;
|
70 |
-
-o-text-overflow: ellipsis;
|
71 |
-
text-overflow: ellipsis;
|
72 |
-
}
|
73 |
-
|
74 |
-
.select2-container .select2-choice abbr:hover {
|
75 |
-
background-position: right -11px;
|
76 |
-
cursor: pointer;
|
77 |
-
}
|
78 |
-
|
79 |
-
.select2-drop-mask {
|
80 |
-
position: absolute;
|
81 |
-
left: 0;
|
82 |
-
top: 0;
|
83 |
-
z-index: 8;
|
84 |
-
background-color: #fff;
|
85 |
-
opacity: 0;
|
86 |
-
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
|
87 |
-
/* works in IE 8 */
|
88 |
-
filter: "alpha(opacity=0)";
|
89 |
-
/* expected to work in IE 8 */
|
90 |
-
filter: alpha(opacity = 0);
|
91 |
-
/* IE 4-7 */
|
92 |
-
}
|
93 |
-
|
94 |
-
.select2-drop {
|
95 |
-
overflow: hidden;
|
96 |
-
width: 100%;
|
97 |
-
margin-top: -1px;
|
98 |
-
position: absolute;
|
99 |
-
z-index: 9;
|
100 |
-
top: 100%;
|
101 |
-
background: #fff;
|
102 |
-
color: #000;
|
103 |
-
border: 1px solid #efefef;
|
104 |
-
border-top: 0;
|
105 |
-
border-radius: 0 0 2px 2px;
|
106 |
-
box-shadow: 0 2px 1px rgba(0, 0, 0, 0.1);
|
107 |
-
font-size: 14px;
|
108 |
-
}
|
109 |
-
|
110 |
-
.select2-drop.select2-drop-above {
|
111 |
-
margin-top: 1px;
|
112 |
-
border-top: 1px solid #efefef;
|
113 |
-
border-bottom: 0;
|
114 |
-
border-radius: 2px 2px 0 0;
|
115 |
-
box-shadow: 0 -2px -1px rgba(0, 0, 0, 0.1);
|
116 |
-
}
|
117 |
-
|
118 |
-
.select2-container .select2-choice div {
|
119 |
-
display: block;
|
120 |
-
width: 30px;
|
121 |
-
height: 100%;
|
122 |
-
position: absolute;
|
123 |
-
right: 0;
|
124 |
-
top: 0;
|
125 |
-
}
|
126 |
-
|
127 |
-
.select2-container .select2-choice div b {
|
128 |
-
display: block;
|
129 |
-
width: 100%;
|
130 |
-
height: 100%;
|
131 |
-
background: #fff url("../../img/bkg-select.png") no-repeat center center;
|
132 |
-
}
|
133 |
-
|
134 |
-
.select2-dropdown-open.select2-container-active div b {
|
135 |
-
display: block;
|
136 |
-
width: 100%;
|
137 |
-
height: 100%;
|
138 |
-
background-color: #fff;
|
139 |
-
}
|
140 |
-
|
141 |
-
/* Search */
|
142 |
-
.select2-search {
|
143 |
-
display: none !important;
|
144 |
-
padding: 2px;
|
145 |
-
display: block;
|
146 |
-
background-color: #fff;
|
147 |
-
}
|
148 |
-
.select2-search .select2-input{
|
149 |
-
width: 99%;
|
150 |
-
height: 26px !important;
|
151 |
-
border-color: #efefef !important;
|
152 |
-
-webkit-box-shadow: none !important;
|
153 |
-
-moz-box-shadow: none !important;
|
154 |
-
box-shadow: none !important;
|
155 |
-
background: url("../../img/select2.png") no-repeat scroll 100% -22px !important;
|
156 |
-
}
|
157 |
-
|
158 |
-
/* Multi select box */
|
159 |
-
#alm-builder .select2-container-multi{
|
160 |
-
width: 60%;
|
161 |
-
}
|
162 |
-
#alm-builder .select2-results li{
|
163 |
-
width: 100%;
|
164 |
-
}
|
165 |
-
|
166 |
-
#alm-builder .select2-container-multi .select2-input{
|
167 |
-
cursor: pointer;
|
168 |
-
margin: 0 !important;
|
169 |
-
}
|
170 |
-
|
171 |
-
#alm-builder ul.select2-choices{
|
172 |
-
width: 100%;
|
173 |
-
overflow: hidden;
|
174 |
-
}
|
175 |
-
#alm-builder ul.select2-choices li.select2-search-field,
|
176 |
-
#alm-builder ul.select2-choices li.select2-search-field input{
|
177 |
-
width: 100% !important;
|
178 |
-
display: block;
|
179 |
-
}
|
180 |
-
/* Selected Choice */
|
181 |
-
#alm-builder ul.select2-choices li.select2-search-choice{
|
182 |
-
display: inline-block;
|
183 |
-
font-size: 12px;
|
184 |
-
line-height: 13px;
|
185 |
-
margin: 0 5px 5px 0;
|
186 |
-
padding: 5px 10px 5px 24px;
|
187 |
-
border-radius: 3px;
|
188 |
-
background: #fff;
|
189 |
-
border: 1px solid #ccc;
|
190 |
-
width: auto;
|
191 |
-
position: relative;
|
192 |
-
}
|
193 |
-
#alm-builder ul.select2-choices .select2-input{
|
194 |
-
background: #f7f7f7 url("../../img/bkg-select.png") no-repeat right center;
|
195 |
-
}
|
196 |
-
#alm-builder ul.select2-choices li.select2-search-choice a{
|
197 |
-
position: absolute;
|
198 |
-
left: 5px;
|
199 |
-
top: 5px;
|
200 |
-
width: 13px;
|
201 |
-
height: 13px;
|
202 |
-
background: #999 url("../../img/ico-close.png") no-repeat center center;
|
203 |
-
color: #fff;
|
204 |
-
display: block;
|
205 |
-
border-radius: 2px;
|
206 |
-
}
|
207 |
-
|
208 |
-
#alm-builder ul.select2-choices li.select2-search-choice a:hover{
|
209 |
-
background-color: #ff0000;
|
210 |
-
}
|
211 |
-
|
212 |
-
|
213 |
-
/* results UL */
|
214 |
-
.select2-results {
|
215 |
-
max-height: 311px;
|
216 |
-
padding: 0 0 0 0;
|
217 |
-
margin: 0 0 0 0;
|
218 |
-
position: relative;
|
219 |
-
overflow-x: hidden;
|
220 |
-
overflow-y: auto;
|
221 |
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
222 |
-
}
|
223 |
-
.select2-result-sub{
|
224 |
-
margin: 0;
|
225 |
-
padding: 0;
|
226 |
-
}
|
227 |
-
|
228 |
-
.select2-results li {
|
229 |
-
list-style: none;
|
230 |
-
display: block;
|
231 |
-
background-image: none;
|
232 |
-
padding: 0;
|
233 |
-
margin: 0 !important;
|
234 |
-
border-top: 1px solid #efefef;
|
235 |
-
color: #666;
|
236 |
-
width: auto;
|
237 |
-
font-size: 13px;
|
238 |
-
}
|
239 |
-
|
240 |
-
.select2-results li.select2-result-with-children > .select2-result-label {
|
241 |
-
font-weight: 600;
|
242 |
-
font-size: 14px;
|
243 |
-
cursor: default;
|
244 |
-
color: #222;
|
245 |
-
}
|
246 |
-
|
247 |
-
.select2-results .select2-result-label {
|
248 |
-
margin: 0;
|
249 |
-
cursor: pointer;
|
250 |
-
min-height: 1em;
|
251 |
-
padding: 10px 8px;
|
252 |
-
-webkit-touch-callout: none;
|
253 |
-
-webkit-user-select: none;
|
254 |
-
-khtml-user-select: none;
|
255 |
-
-moz-user-select: none;
|
256 |
-
-ms-user-select: none;
|
257 |
-
user-select: none;
|
258 |
-
}
|
259 |
-
|
260 |
-
.select2-results .select2-highlighted .select2-result-label{ /* Hover */
|
261 |
-
background: #f7f7f7;
|
262 |
-
color: #ca5252;
|
263 |
-
}
|
264 |
-
|
265 |
-
.select2-results .select2-highlighted:active {
|
266 |
-
background: #fff;
|
267 |
-
}
|
268 |
-
|
269 |
-
.select2-results li em {
|
270 |
-
background: #feffde;
|
271 |
-
font-style: normal;
|
272 |
-
}
|
273 |
-
|
274 |
-
.select2-results .select2-highlighted em {
|
275 |
-
background: transparent;
|
276 |
-
}
|
277 |
-
|
278 |
-
.select2-results .select2-highlighted ul {
|
279 |
-
background: white;
|
280 |
-
color: #000;
|
281 |
-
}
|
282 |
-
|
283 |
-
.select2-results .select2-no-results,
|
284 |
-
.select2-results .select2-searching,
|
285 |
-
.select2-results .select2-selection-limit {
|
286 |
-
background: #f4f4f4;
|
287 |
-
display: list-item;
|
288 |
-
}
|
289 |
-
|
290 |
-
.select2-results .select2-no-results{
|
291 |
-
min-height: 1em;
|
292 |
-
padding: 10px 7px;
|
293 |
-
font-size: 13px;
|
294 |
-
}
|
295 |
-
|
296 |
-
/*
|
297 |
-
disabled look for disabled choices in the results dropdown
|
298 |
-
*/
|
299 |
-
.select2-results .select2-disabled.select2-highlighted {
|
300 |
-
color: #666;
|
301 |
-
background: #f4f4f4;
|
302 |
-
display: list-item;
|
303 |
-
cursor: default;
|
304 |
-
}
|
305 |
-
|
306 |
-
.select2-results .select2-disabled {
|
307 |
-
background: #f4f4f4;
|
308 |
-
display: list-item;
|
309 |
-
cursor: default;
|
310 |
-
}
|
311 |
-
|
312 |
-
.select2-results .select2-selected {
|
313 |
-
display: none;
|
314 |
-
}
|
315 |
-
|
316 |
-
.select2-more-results {
|
317 |
-
background: #f4f4f4;
|
318 |
-
display: list-item;
|
319 |
-
}
|
320 |
-
|
321 |
-
/* disabled styles */
|
322 |
-
.select2-container.select2-container-disabled .select2-choice {
|
323 |
-
background-color: #f4f4f4;
|
324 |
-
background-image: none;
|
325 |
-
border: 1px solid #ddd;
|
326 |
-
cursor: default;
|
327 |
-
}
|
328 |
-
|
329 |
-
.select2-container.select2-container-disabled .select2-choice div {
|
330 |
-
background-color: #f4f4f4;
|
331 |
-
background-image: none;
|
332 |
-
border-left: 0;
|
333 |
-
}
|
334 |
-
|
335 |
-
.select2-container.select2-container-disabled .select2-choice abbr {
|
336 |
-
display: none;
|
337 |
-
}
|
338 |
-
|
339 |
-
.select2-offscreen {
|
340 |
-
border: 0;
|
341 |
-
clip: rect(0 0 0 0);
|
342 |
-
height: 1px;
|
343 |
-
margin: -1px;
|
344 |
-
overflow: hidden;
|
345 |
-
padding: 0;
|
346 |
-
position: absolute;
|
347 |
-
width: 1px;
|
348 |
-
left: 0;
|
349 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/src/scss/libs/tooltipster.scss
DELETED
@@ -1,276 +0,0 @@
|
|
1 |
-
/* This is the default Tooltipster theme (feel free to modify or duplicate and create multiple themes!): */
|
2 |
-
.tooltipster-default {
|
3 |
-
border-radius: 3px;
|
4 |
-
border: 2px solid #222;
|
5 |
-
border: none;
|
6 |
-
background: #0073aa;
|
7 |
-
background: rgba(33, 149, 204, 0.95);
|
8 |
-
color: #e7f3f8;
|
9 |
-
}
|
10 |
-
|
11 |
-
/* Use this next selector to style things like font-size and line-height: */
|
12 |
-
.tooltipster-default .tooltipster-content {
|
13 |
-
font-size: 12px;
|
14 |
-
line-height: 20px;
|
15 |
-
padding: 12px 16px;
|
16 |
-
overflow: hidden;
|
17 |
-
text-align: center;
|
18 |
-
}
|
19 |
-
|
20 |
-
/* This next selector defines the color of the border on the outside of the arrow. This will automatically match the color and size of the border set on the main tooltip styles. Set display: none; if you would like a border around the tooltip but no border around the arrow */
|
21 |
-
.tooltipster-default .tooltipster-arrow .tooltipster-arrow-border {
|
22 |
-
/* border-color: ... !important; */
|
23 |
-
}
|
24 |
-
|
25 |
-
|
26 |
-
/* If you're using the icon option, use this next selector to style them */
|
27 |
-
.tooltipster-icon {
|
28 |
-
cursor: help;
|
29 |
-
margin-left: 4px;
|
30 |
-
}
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
/* This is the base styling required to make all Tooltipsters work */
|
40 |
-
.tooltipster-base {
|
41 |
-
padding: 0;
|
42 |
-
font-size: 0;
|
43 |
-
line-height: 0;
|
44 |
-
position: absolute;
|
45 |
-
left: 0;
|
46 |
-
top: 0;
|
47 |
-
z-index: 9999999;
|
48 |
-
pointer-events: none;
|
49 |
-
width: auto;
|
50 |
-
overflow: visible;
|
51 |
-
}
|
52 |
-
.tooltipster-base .tooltipster-content {
|
53 |
-
overflow: hidden;
|
54 |
-
}
|
55 |
-
|
56 |
-
|
57 |
-
/* These next classes handle the styles for the little arrow attached to the tooltip. By default, the arrow will inherit the same colors and border as what is set on the main tooltip itself. */
|
58 |
-
.tooltipster-arrow {
|
59 |
-
display: block;
|
60 |
-
text-align: center;
|
61 |
-
width: 100%;
|
62 |
-
height: 100%;
|
63 |
-
position: absolute;
|
64 |
-
top: 0;
|
65 |
-
left: 0;
|
66 |
-
z-index: -1;
|
67 |
-
}
|
68 |
-
.tooltipster-arrow span, .tooltipster-arrow-border {
|
69 |
-
display: block;
|
70 |
-
width: 0;
|
71 |
-
height: 0;
|
72 |
-
position: absolute;
|
73 |
-
}
|
74 |
-
.tooltipster-arrow-top span, .tooltipster-arrow-top-right span, .tooltipster-arrow-top-left span {
|
75 |
-
border-left: 8px solid transparent !important;
|
76 |
-
border-right: 8px solid transparent !important;
|
77 |
-
border-top: 8px solid;
|
78 |
-
bottom: -7px;
|
79 |
-
}
|
80 |
-
.tooltipster-arrow-top .tooltipster-arrow-border, .tooltipster-arrow-top-right .tooltipster-arrow-border, .tooltipster-arrow-top-left .tooltipster-arrow-border {
|
81 |
-
border-left: 9px solid transparent !important;
|
82 |
-
border-right: 9px solid transparent !important;
|
83 |
-
border-top: 9px solid;
|
84 |
-
bottom: -7px;
|
85 |
-
}
|
86 |
-
|
87 |
-
.tooltipster-arrow-bottom span, .tooltipster-arrow-bottom-right span, .tooltipster-arrow-bottom-left span {
|
88 |
-
border-left: 8px solid transparent !important;
|
89 |
-
border-right: 8px solid transparent !important;
|
90 |
-
border-bottom: 8px solid;
|
91 |
-
top: -7px;
|
92 |
-
}
|
93 |
-
.tooltipster-arrow-bottom .tooltipster-arrow-border, .tooltipster-arrow-bottom-right .tooltipster-arrow-border, .tooltipster-arrow-bottom-left .tooltipster-arrow-border {
|
94 |
-
border-left: 9px solid transparent !important;
|
95 |
-
border-right: 9px solid transparent !important;
|
96 |
-
border-bottom: 9px solid;
|
97 |
-
top: -7px;
|
98 |
-
}
|
99 |
-
.tooltipster-arrow-top span, .tooltipster-arrow-top .tooltipster-arrow-border, .tooltipster-arrow-bottom span, .tooltipster-arrow-bottom .tooltipster-arrow-border {
|
100 |
-
left: 0;
|
101 |
-
right: 0;
|
102 |
-
margin: 0 auto;
|
103 |
-
}
|
104 |
-
.tooltipster-arrow-top-left span, .tooltipster-arrow-bottom-left span {
|
105 |
-
left: 6px;
|
106 |
-
}
|
107 |
-
.tooltipster-arrow-top-left .tooltipster-arrow-border, .tooltipster-arrow-bottom-left .tooltipster-arrow-border {
|
108 |
-
left: 5px;
|
109 |
-
}
|
110 |
-
.tooltipster-arrow-top-right span, .tooltipster-arrow-bottom-right span {
|
111 |
-
right: 6px;
|
112 |
-
}
|
113 |
-
.tooltipster-arrow-top-right .tooltipster-arrow-border, .tooltipster-arrow-bottom-right .tooltipster-arrow-border {
|
114 |
-
right: 5px;
|
115 |
-
}
|
116 |
-
.tooltipster-arrow-left span, .tooltipster-arrow-left .tooltipster-arrow-border {
|
117 |
-
border-top: 8px solid transparent !important;
|
118 |
-
border-bottom: 8px solid transparent !important;
|
119 |
-
border-left: 8px solid;
|
120 |
-
top: 50%;
|
121 |
-
margin-top: -7px;
|
122 |
-
right: -7px;
|
123 |
-
}
|
124 |
-
.tooltipster-arrow-left .tooltipster-arrow-border {
|
125 |
-
border-top: 9px solid transparent !important;
|
126 |
-
border-bottom: 9px solid transparent !important;
|
127 |
-
border-left: 9px solid;
|
128 |
-
margin-top: -8px;
|
129 |
-
}
|
130 |
-
.tooltipster-arrow-right span, .tooltipster-arrow-right .tooltipster-arrow-border {
|
131 |
-
border-top: 8px solid transparent !important;
|
132 |
-
border-bottom: 8px solid transparent !important;
|
133 |
-
border-right: 8px solid;
|
134 |
-
top: 50%;
|
135 |
-
margin-top: -7px;
|
136 |
-
left: -7px;
|
137 |
-
}
|
138 |
-
.tooltipster-arrow-right .tooltipster-arrow-border {
|
139 |
-
border-top: 9px solid transparent !important;
|
140 |
-
border-bottom: 9px solid transparent !important;
|
141 |
-
border-right: 9px solid;
|
142 |
-
margin-top: -8px;
|
143 |
-
}
|
144 |
-
|
145 |
-
|
146 |
-
/* Some CSS magic for the awesome animations - feel free to make your own custom animations and reference it in your Tooltipster settings! */
|
147 |
-
|
148 |
-
.tooltipster-fade {
|
149 |
-
opacity: 0;
|
150 |
-
-webkit-transition-property: opacity;
|
151 |
-
-moz-transition-property: opacity;
|
152 |
-
-o-transition-property: opacity;
|
153 |
-
-ms-transition-property: opacity;
|
154 |
-
transition-property: opacity;
|
155 |
-
}
|
156 |
-
.tooltipster-fade-show {
|
157 |
-
opacity: 1;
|
158 |
-
}
|
159 |
-
|
160 |
-
.tooltipster-grow {
|
161 |
-
-webkit-transform: scale(0,0);
|
162 |
-
-moz-transform: scale(0,0);
|
163 |
-
-o-transform: scale(0,0);
|
164 |
-
-ms-transform: scale(0,0);
|
165 |
-
transform: scale(0,0);
|
166 |
-
-webkit-transition-property: -webkit-transform;
|
167 |
-
-moz-transition-property: -moz-transform;
|
168 |
-
-o-transition-property: -o-transform;
|
169 |
-
-ms-transition-property: -ms-transform;
|
170 |
-
transition-property: transform;
|
171 |
-
-webkit-backface-visibility: hidden;
|
172 |
-
}
|
173 |
-
.tooltipster-grow-show {
|
174 |
-
-webkit-transform: scale(1,1);
|
175 |
-
-moz-transform: scale(1,1);
|
176 |
-
-o-transform: scale(1,1);
|
177 |
-
-ms-transform: scale(1,1);
|
178 |
-
transform: scale(1,1);
|
179 |
-
-webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
|
180 |
-
-webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
181 |
-
-moz-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
182 |
-
-ms-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
183 |
-
-o-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
184 |
-
transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
185 |
-
}
|
186 |
-
|
187 |
-
.tooltipster-swing {
|
188 |
-
opacity: 0;
|
189 |
-
-webkit-transform: rotateZ(4deg);
|
190 |
-
-moz-transform: rotateZ(4deg);
|
191 |
-
-o-transform: rotateZ(4deg);
|
192 |
-
-ms-transform: rotateZ(4deg);
|
193 |
-
transform: rotateZ(4deg);
|
194 |
-
-webkit-transition-property: -webkit-transform, opacity;
|
195 |
-
-moz-transition-property: -moz-transform;
|
196 |
-
-o-transition-property: -o-transform;
|
197 |
-
-ms-transition-property: -ms-transform;
|
198 |
-
transition-property: transform;
|
199 |
-
}
|
200 |
-
.tooltipster-swing-show {
|
201 |
-
opacity: 1;
|
202 |
-
-webkit-transform: rotateZ(0deg);
|
203 |
-
-moz-transform: rotateZ(0deg);
|
204 |
-
-o-transform: rotateZ(0deg);
|
205 |
-
-ms-transform: rotateZ(0deg);
|
206 |
-
transform: rotateZ(0deg);
|
207 |
-
-webkit-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 1);
|
208 |
-
-webkit-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4);
|
209 |
-
-moz-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4);
|
210 |
-
-ms-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4);
|
211 |
-
-o-transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4);
|
212 |
-
transition-timing-function: cubic-bezier(0.230, 0.635, 0.495, 2.4);
|
213 |
-
}
|
214 |
-
|
215 |
-
.tooltipster-fall {
|
216 |
-
top: 0;
|
217 |
-
-webkit-transition-property: top;
|
218 |
-
-moz-transition-property: top;
|
219 |
-
-o-transition-property: top;
|
220 |
-
-ms-transition-property: top;
|
221 |
-
transition-property: top;
|
222 |
-
-webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
|
223 |
-
-webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
224 |
-
-moz-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
225 |
-
-ms-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
226 |
-
-o-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
227 |
-
transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
228 |
-
}
|
229 |
-
.tooltipster-fall-show {
|
230 |
-
}
|
231 |
-
.tooltipster-fall.tooltipster-dying {
|
232 |
-
-webkit-transition-property: all;
|
233 |
-
-moz-transition-property: all;
|
234 |
-
-o-transition-property: all;
|
235 |
-
-ms-transition-property: all;
|
236 |
-
transition-property: all;
|
237 |
-
top: 0px !important;
|
238 |
-
opacity: 0;
|
239 |
-
}
|
240 |
-
|
241 |
-
.tooltipster-slide {
|
242 |
-
left: -40px;
|
243 |
-
-webkit-transition-property: left;
|
244 |
-
-moz-transition-property: left;
|
245 |
-
-o-transition-property: left;
|
246 |
-
-ms-transition-property: left;
|
247 |
-
transition-property: left;
|
248 |
-
-webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1);
|
249 |
-
-webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
250 |
-
-moz-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
251 |
-
-ms-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
252 |
-
-o-transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
253 |
-
transition-timing-function: cubic-bezier(0.175, 0.885, 0.320, 1.15);
|
254 |
-
}
|
255 |
-
.tooltipster-slide.tooltipster-slide-show {
|
256 |
-
}
|
257 |
-
.tooltipster-slide.tooltipster-dying {
|
258 |
-
-webkit-transition-property: all;
|
259 |
-
-moz-transition-property: all;
|
260 |
-
-o-transition-property: all;
|
261 |
-
-ms-transition-property: all;
|
262 |
-
transition-property: all;
|
263 |
-
left: 0px !important;
|
264 |
-
opacity: 0;
|
265 |
-
}
|
266 |
-
|
267 |
-
|
268 |
-
/* CSS transition for when contenting is changing in a tooltip that is still open. The only properties that will NOT transition are: width, height, top, and left */
|
269 |
-
.tooltipster-content-changing {
|
270 |
-
opacity: 0.5;
|
271 |
-
-webkit-transform: scale(1.1, 1.1);
|
272 |
-
-moz-transform: scale(1.1, 1.1);
|
273 |
-
-o-transform: scale(1.1, 1.1);
|
274 |
-
-ms-transform: scale(1.1, 1.1);
|
275 |
-
transform: scale(1.1, 1.1);
|
276 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/src/scss/partials/_alm-block.scss
DELETED
@@ -1,49 +0,0 @@
|
|
1 |
-
.ajax-load-more{
|
2 |
-
|
3 |
-
.alm-block{
|
4 |
-
&--wrap{
|
5 |
-
border: 1px solid $border;
|
6 |
-
border-top: none;
|
7 |
-
}
|
8 |
-
&--row{
|
9 |
-
display: flex;
|
10 |
-
flex-wrap: nowrap;
|
11 |
-
border-top: 1px solid $border;
|
12 |
-
&_title{
|
13 |
-
width: 100%;
|
14 |
-
flex: 1;
|
15 |
-
padding: 20px;
|
16 |
-
h3{
|
17 |
-
font-weight: 700;
|
18 |
-
margin: 0;
|
19 |
-
padding: 0;
|
20 |
-
}
|
21 |
-
}
|
22 |
-
&_label,
|
23 |
-
&_detail{
|
24 |
-
padding: 20px;
|
25 |
-
}
|
26 |
-
&_label{
|
27 |
-
background-color: #f7f7f7;
|
28 |
-
font-weight: 600;
|
29 |
-
width: 20%;
|
30 |
-
border-right: 1px solid $border;
|
31 |
-
}
|
32 |
-
&_detail{
|
33 |
-
background-color: #fff;
|
34 |
-
flex: 1;
|
35 |
-
}
|
36 |
-
}
|
37 |
-
|
38 |
-
label{
|
39 |
-
font-size: 14px;
|
40 |
-
.small{
|
41 |
-
font-weight: 400;
|
42 |
-
font-size: 12px;
|
43 |
-
line-height: 1.35;
|
44 |
-
opacity: 0.8;
|
45 |
-
}
|
46 |
-
}
|
47 |
-
}
|
48 |
-
|
49 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/src/scss/partials/_alm-settings-feedback.scss
DELETED
@@ -1,63 +0,0 @@
|
|
1 |
-
.alm-settings-feedback{
|
2 |
-
position: fixed;
|
3 |
-
bottom: 20px;
|
4 |
-
right: 25px;
|
5 |
-
width: auto;
|
6 |
-
height: auto;
|
7 |
-
background: #fff;
|
8 |
-
border-left: 5px solid #5cc583;
|
9 |
-
color: #444;
|
10 |
-
padding: 25px 30px 25px 25px;
|
11 |
-
line-height: 1;
|
12 |
-
z-index: 9999;
|
13 |
-
border-radius: 2px;
|
14 |
-
opacity: 0;
|
15 |
-
visibility: hidden;
|
16 |
-
transition: all 0.2s ease-in-out;
|
17 |
-
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
|
18 |
-
font-size: 13px;
|
19 |
-
&.--saving{
|
20 |
-
border-color: #e0bd5e;
|
21 |
-
opacity: 1;
|
22 |
-
visibility: visible;
|
23 |
-
bottom: 25px;
|
24 |
-
}
|
25 |
-
&.--saved{
|
26 |
-
opacity: 1;
|
27 |
-
visibility: visible;
|
28 |
-
bottom: 25px;
|
29 |
-
}
|
30 |
-
&.--error{
|
31 |
-
border-color: #e03e3e;
|
32 |
-
opacity: 1;
|
33 |
-
visibility: visible;
|
34 |
-
bottom: 25px;
|
35 |
-
}
|
36 |
-
i{
|
37 |
-
opacity: 0.6;
|
38 |
-
margin: 0 3px 0 0;
|
39 |
-
}
|
40 |
-
}
|
41 |
-
|
42 |
-
#alm_OptionsForm{
|
43 |
-
position: relative;
|
44 |
-
.save-in-progress{
|
45 |
-
width: 100%;
|
46 |
-
height: 100%;
|
47 |
-
position: absolute;
|
48 |
-
left: 0;
|
49 |
-
top: 0;
|
50 |
-
z-index: 10;
|
51 |
-
background: rgba(255, 255, 255, 0.5);
|
52 |
-
transition: all 0.2s ease;
|
53 |
-
opacity: 0;
|
54 |
-
visibility: hidden;
|
55 |
-
}
|
56 |
-
&.--saving{
|
57 |
-
.save-in-progress{
|
58 |
-
opacity: 1;
|
59 |
-
visibility: visible;
|
60 |
-
cursor: not-allowed !important;
|
61 |
-
}
|
62 |
-
}
|
63 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/src/scss/partials/_builder-option-toggle.scss
DELETED
@@ -1,54 +0,0 @@
|
|
1 |
-
.ajax-load-more .builder-option-toggle{
|
2 |
-
display: flex;
|
3 |
-
flex-wrap: nowrap;
|
4 |
-
input{
|
5 |
-
border-radius: $radius 0 0 $radius;
|
6 |
-
margin: 0;
|
7 |
-
width: auto;
|
8 |
-
flex: 1;
|
9 |
-
}
|
10 |
-
&--buttons{
|
11 |
-
border-radius: 0 $radius $radius 0;
|
12 |
-
padding: 3px;
|
13 |
-
width: auto;
|
14 |
-
border: 1px solid $border;
|
15 |
-
border-left: none;
|
16 |
-
button{
|
17 |
-
height: 100%;
|
18 |
-
border: 1px solid $border;
|
19 |
-
border-left-width: 0;
|
20 |
-
margin: 0;
|
21 |
-
font-weight: 600;
|
22 |
-
font-size: 11px;
|
23 |
-
text-transform: uppercase;
|
24 |
-
float: left;
|
25 |
-
cursor: pointer;
|
26 |
-
padding: 0;
|
27 |
-
margin: 0;
|
28 |
-
border-radius: 0;
|
29 |
-
width: 34px;
|
30 |
-
text-align: center;
|
31 |
-
display: inline-block;
|
32 |
-
color: $grey;
|
33 |
-
background-color: transparent;
|
34 |
-
&:hover,
|
35 |
-
&:focus{
|
36 |
-
color: #222;
|
37 |
-
border-color: #ccc;
|
38 |
-
}
|
39 |
-
&:first-child{
|
40 |
-
border-radius: $radius 0 0 $radius;
|
41 |
-
border-left-width: 1px;
|
42 |
-
}
|
43 |
-
&:last-child{
|
44 |
-
border-radius: 0 $radius $radius 0;
|
45 |
-
}
|
46 |
-
&.active{
|
47 |
-
border-color: $grey;
|
48 |
-
background-color: $grey;
|
49 |
-
color: #fff;
|
50 |
-
cursor: default;
|
51 |
-
}
|
52 |
-
}
|
53 |
-
}
|
54 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/src/scss/partials/_codemirror.scss
DELETED
@@ -1,83 +0,0 @@
|
|
1 |
-
.ajax-load-more .CodeMirror {
|
2 |
-
height: auto;
|
3 |
-
border-radius: $radius;
|
4 |
-
padding: 0;
|
5 |
-
background: $light_grey;
|
6 |
-
border: 1px solid $border;
|
7 |
-
color: #999;
|
8 |
-
line-height: 1.5;
|
9 |
-
font-size: 13px;
|
10 |
-
&.CodeMirror-focused{
|
11 |
-
border-color: #bbbbbb;
|
12 |
-
box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
|
13 |
-
}
|
14 |
-
}
|
15 |
-
.ajax-load-more .cm-readonly .CodeMirror{
|
16 |
-
opacity: 0.8;
|
17 |
-
}
|
18 |
-
.ajax-load-more .cm-readonly .CodeMirror pre{
|
19 |
-
cursor: default !important;
|
20 |
-
}
|
21 |
-
.ajax-load-more .CodeMirror pre{
|
22 |
-
padding: 0 10px;
|
23 |
-
}
|
24 |
-
.CodeMirror-lines{
|
25 |
-
padding: 10px !important;
|
26 |
-
}
|
27 |
-
.CodeMirror-linenumber{
|
28 |
-
padding: 0 10px !important;
|
29 |
-
line-height: 1.25 !important;
|
30 |
-
color: #ccc !important;
|
31 |
-
}
|
32 |
-
.CodeMirror-linenumber.CodeMirror-gutter-elt {
|
33 |
-
padding: 0 20px 0 0 !important;
|
34 |
-
}
|
35 |
-
.ajax-load-more .cm-readonly.sm-margin .CodeMirror{
|
36 |
-
margin: 0 0 10px;
|
37 |
-
}
|
38 |
-
.ajax-load-more .cm-readonly p.warning-callout{
|
39 |
-
margin: 0 0 10px;
|
40 |
-
}
|
41 |
-
.ajax-load-more .CodeMirror.loading {
|
42 |
-
background: $light_grey url("../../img/loader-unlimited.gif") no-repeat center center;
|
43 |
-
opacity: 0.6;
|
44 |
-
}
|
45 |
-
.ajax-load-more .cm-s-pastel-on-dark.CodeMirror{ /* Bkg color */
|
46 |
-
background: #333;
|
47 |
-
}
|
48 |
-
.ajax-load-more .CodeMirror-gutters{ /* Line Number color */
|
49 |
-
background: #fff;
|
50 |
-
border-right: 1px solid $border;
|
51 |
-
border-radius: 2px;
|
52 |
-
}
|
53 |
-
.ajax-load-more .CodeMirror-scroll {
|
54 |
-
overflow-y: hidden;
|
55 |
-
overflow-x: auto;
|
56 |
-
}
|
57 |
-
|
58 |
-
.ajax-load-more .cm-tag{ /* <li> <h2> html elements */
|
59 |
-
color: #0a4b83 !important;
|
60 |
-
}
|
61 |
-
.ajax-load-more .cm-string{ /* Elements in " " */
|
62 |
-
color: #c75050 !important;
|
63 |
-
}
|
64 |
-
.ajax-load-more .cm-attribute{ /* class names */
|
65 |
-
color: #008080 !important;
|
66 |
-
}
|
67 |
-
.ajax-load-more .cm-keyword{ /* if, array, echo */
|
68 |
-
color: #ae5fb3 !important;
|
69 |
-
}
|
70 |
-
.ajax-load-more span.CodeMirror-matchingbracket{
|
71 |
-
color: #ff0000 !important;
|
72 |
-
}
|
73 |
-
.ajax-load-more .CodeMirror span.cm-meta{ /* <?php */
|
74 |
-
color: #999;
|
75 |
-
}
|
76 |
-
.ajax-load-more .CodeMirror span.cm-variable{ /* Function names */
|
77 |
-
color: #111;
|
78 |
-
font-weight: 500;
|
79 |
-
padding: 0 1px;
|
80 |
-
}
|
81 |
-
.ajax-load-more .CodeMirror span.cm-number{ /* Numbers */
|
82 |
-
color: #009999 !important;
|
83 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/src/scss/partials/_header.scss
DELETED
@@ -1,42 +0,0 @@
|
|
1 |
-
.ajax-load-more .header-wrap{
|
2 |
-
overflow: hidden;
|
3 |
-
padding: $gutter $gutter $gutter/2;
|
4 |
-
background: #f7f7f7;
|
5 |
-
border-bottom: 1px solid #e1e1e1;
|
6 |
-
position: relative;
|
7 |
-
z-index: 1;
|
8 |
-
box-shadow: 0 1px 12px 2px rgba(0, 0, 0, 0.045);
|
9 |
-
h1{
|
10 |
-
padding: 0 0 0 58px;
|
11 |
-
min-height: 48px;
|
12 |
-
padding-top: 0;
|
13 |
-
background: url('../../img/alm-logo-48x48.png') no-repeat 0 0;
|
14 |
-
background: url('../../img/alm-logo-48x48.svg') no-repeat 0 0;
|
15 |
-
font-size: 22px;
|
16 |
-
em{
|
17 |
-
display: block;
|
18 |
-
position: relative;
|
19 |
-
margin: 1px 0 0;
|
20 |
-
font-size: 14px;
|
21 |
-
opacity: 0.7;
|
22 |
-
font-style: normal;
|
23 |
-
font-weight: 400;
|
24 |
-
line-height: 1.35;
|
25 |
-
padding: 1px 0 $gutter/2;
|
26 |
-
}
|
27 |
-
strong{
|
28 |
-
font-weight: 700;
|
29 |
-
}
|
30 |
-
span{
|
31 |
-
color: #999;
|
32 |
-
font-weight: 300;
|
33 |
-
background: #fff;
|
34 |
-
padding: 5px 6px;
|
35 |
-
border-radius: 2px;
|
36 |
-
font-size: 0.8em;
|
37 |
-
position: relative;
|
38 |
-
top: -2px;
|
39 |
-
left: 5px;
|
40 |
-
}
|
41 |
-
}
|
42 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/src/scss/partials/_pro-listing.scss
DELETED
@@ -1,242 +0,0 @@
|
|
1 |
-
|
2 |
-
/* Pro Add-on Listing */
|
3 |
-
.alm-pro-listing{
|
4 |
-
padding: 0;
|
5 |
-
border-top: none;
|
6 |
-
position: relative;
|
7 |
-
padding-bottom: 20px;
|
8 |
-
.loader{
|
9 |
-
position: absolute;
|
10 |
-
left: 0;
|
11 |
-
top: 0;
|
12 |
-
width: 100%;
|
13 |
-
height: 100%;
|
14 |
-
z-index: 99;
|
15 |
-
display: none;
|
16 |
-
}
|
17 |
-
&.loading{
|
18 |
-
.loader{
|
19 |
-
display: block;
|
20 |
-
}
|
21 |
-
}
|
22 |
-
&--header{
|
23 |
-
border: 1px solid #e1e1e1;
|
24 |
-
background: #f7f7f7;
|
25 |
-
padding: 18px;
|
26 |
-
font-size: 13px;
|
27 |
-
font-weight: 600;
|
28 |
-
text-transform: uppercase;
|
29 |
-
color: #23282d;
|
30 |
-
position: relative;
|
31 |
-
margin-bottom: 30px;
|
32 |
-
border-radius: 2px;
|
33 |
-
div{
|
34 |
-
position: absolute;
|
35 |
-
right: 15px;
|
36 |
-
top: 50%;
|
37 |
-
transform: translateY(-50%);
|
38 |
-
font-size: 13px;
|
39 |
-
opacity: 0.7;
|
40 |
-
font-weight: normal;
|
41 |
-
text-transform: none;
|
42 |
-
font-style: italic;
|
43 |
-
@media screen and (max-width: 480px){
|
44 |
-
display: none;
|
45 |
-
}
|
46 |
-
}
|
47 |
-
}
|
48 |
-
&--wrap{
|
49 |
-
display: flex;
|
50 |
-
flex-wrap: wrap;
|
51 |
-
width: calc(100% + 10px);
|
52 |
-
margin-left: -5px;
|
53 |
-
}
|
54 |
-
|
55 |
-
.item{
|
56 |
-
width: calc(50% - 10px);
|
57 |
-
display: flex;
|
58 |
-
margin: 0 5px 10px;
|
59 |
-
@media screen and (min-width: 1500px){
|
60 |
-
width: calc(33.333% - 10px);
|
61 |
-
}
|
62 |
-
@media screen and (max-width: 480px){
|
63 |
-
width: 100%;
|
64 |
-
margin: 0 0 10px;
|
65 |
-
}
|
66 |
-
h2, p, img, .state{
|
67 |
-
transition: all 0.15s ease;
|
68 |
-
}
|
69 |
-
a{
|
70 |
-
text-decoration: none !important;
|
71 |
-
padding: 0 55px 0 0;
|
72 |
-
position: relative;
|
73 |
-
display: flex;
|
74 |
-
border: 1px solid #e1e1e1;
|
75 |
-
transition: all 0.15s ease;
|
76 |
-
border-radius: 2px;
|
77 |
-
@media screen and (max-width: 1100px){
|
78 |
-
padding: 0 10px 20px;
|
79 |
-
}
|
80 |
-
&:hover,
|
81 |
-
&:focus{
|
82 |
-
border-color: #bbb;
|
83 |
-
h2{
|
84 |
-
text-decoration: none;
|
85 |
-
}
|
86 |
-
}
|
87 |
-
}
|
88 |
-
&--detail{
|
89 |
-
padding: 20px;
|
90 |
-
position: relative;
|
91 |
-
min-height: 110px;
|
92 |
-
display: flex;
|
93 |
-
align-items: flex-start;
|
94 |
-
@media screen and (max-width: 1100px){
|
95 |
-
display: block;
|
96 |
-
text-align: center;
|
97 |
-
img{
|
98 |
-
padding-bottom: 20px;
|
99 |
-
}
|
100 |
-
}
|
101 |
-
div{
|
102 |
-
padding: 0;
|
103 |
-
}
|
104 |
-
img{
|
105 |
-
width: 110px;
|
106 |
-
height: auto;
|
107 |
-
margin-right: 20px;
|
108 |
-
}
|
109 |
-
a{
|
110 |
-
text-decoration: none;
|
111 |
-
&:hover,
|
112 |
-
&:focus{
|
113 |
-
text-decoration: none;
|
114 |
-
h2{
|
115 |
-
text-decoration: none;
|
116 |
-
}
|
117 |
-
}
|
118 |
-
}
|
119 |
-
h2{
|
120 |
-
margin: 0 0 7px;
|
121 |
-
font-size: 16px;
|
122 |
-
line-height: 1;
|
123 |
-
transition: all 0.15s ease;
|
124 |
-
span{
|
125 |
-
font-weight: 400;
|
126 |
-
opacity: 0.4;
|
127 |
-
font-size: 12px;
|
128 |
-
position: relative;
|
129 |
-
top: 0;
|
130 |
-
left: 3px;
|
131 |
-
text-decoration: none !important;
|
132 |
-
}
|
133 |
-
}
|
134 |
-
p{
|
135 |
-
margin: 0;
|
136 |
-
padding: 0;
|
137 |
-
font-size: 14px;
|
138 |
-
&.link{
|
139 |
-
font-size: 13px;
|
140 |
-
padding-top: 2px;
|
141 |
-
opacity: 0;
|
142 |
-
transition: opacity 0.15s ease;
|
143 |
-
}
|
144 |
-
}
|
145 |
-
.highlight-addon{
|
146 |
-
padding-top: 15px;
|
147 |
-
font-size: 12px;
|
148 |
-
margin: 0;
|
149 |
-
|
150 |
-
span{
|
151 |
-
display: inline-block;
|
152 |
-
padding: 5px;
|
153 |
-
position: relative;
|
154 |
-
left: -5px;
|
155 |
-
line-height: 1;
|
156 |
-
background-color: $yellow;
|
157 |
-
font-weight: 500;
|
158 |
-
}
|
159 |
-
}
|
160 |
-
}
|
161 |
-
.result{
|
162 |
-
position: absolute;
|
163 |
-
right: 6px;
|
164 |
-
bottom: 6px;
|
165 |
-
font-size: 12px;
|
166 |
-
opacity: 0;
|
167 |
-
transition: all 0.25s ease;
|
168 |
-
&.in-view{
|
169 |
-
opacity: 0.7;
|
170 |
-
}
|
171 |
-
.type{
|
172 |
-
background: #47bd79;
|
173 |
-
color: #fff;
|
174 |
-
display: none;
|
175 |
-
border-radius: 2px;
|
176 |
-
padding: 3px 6px;
|
177 |
-
display: inline-block;
|
178 |
-
}
|
179 |
-
.type.inactive{
|
180 |
-
background: #c54545;
|
181 |
-
display: none;
|
182 |
-
}
|
183 |
-
}
|
184 |
-
.state{
|
185 |
-
width: 22px;
|
186 |
-
height: 22px;
|
187 |
-
position: absolute;
|
188 |
-
right: 6px;
|
189 |
-
top: 6px;
|
190 |
-
border-radius: 2px;
|
191 |
-
background: #57d48c;
|
192 |
-
color: #fff;
|
193 |
-
display: flex;
|
194 |
-
align-items: center;
|
195 |
-
justify-content: center;
|
196 |
-
text-decoration: none !important;
|
197 |
-
font-size: 12px;
|
198 |
-
transition: all 0.15s ease;
|
199 |
-
&:before{
|
200 |
-
font-family: 'FontAwesome';
|
201 |
-
content: '\f00c';
|
202 |
-
display: block;
|
203 |
-
|
204 |
-
}
|
205 |
-
}
|
206 |
-
|
207 |
-
&.active{
|
208 |
-
a{
|
209 |
-
border-color: #57d48c;
|
210 |
-
}
|
211 |
-
&:hover{
|
212 |
-
.state{
|
213 |
-
opacity: 0.9;
|
214 |
-
}
|
215 |
-
}
|
216 |
-
}
|
217 |
-
|
218 |
-
&.inactive{
|
219 |
-
h2, p, img, .state{
|
220 |
-
opacity: 0.5;
|
221 |
-
}
|
222 |
-
.state{
|
223 |
-
background: #e1e1e1;
|
224 |
-
&:before{
|
225 |
-
opacity: 0;
|
226 |
-
}
|
227 |
-
}
|
228 |
-
&:hover{
|
229 |
-
h2, p, img, .state{
|
230 |
-
opacity: 0.8;
|
231 |
-
}
|
232 |
-
|
233 |
-
.state{
|
234 |
-
background: #ccc;
|
235 |
-
&:before{
|
236 |
-
opacity: 1;
|
237 |
-
}
|
238 |
-
}
|
239 |
-
}
|
240 |
-
}
|
241 |
-
}
|
242 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/src/scss/partials/_select2.scss
DELETED
@@ -1,74 +0,0 @@
|
|
1 |
-
/* Custom buttom/loading styles */
|
2 |
-
.select2-results .select2-result.alm-color .select2-result-label{
|
3 |
-
position: relative;
|
4 |
-
}
|
5 |
-
.select2-results .select2-result.alm-color .select2-result-label:after{
|
6 |
-
width: 10px;
|
7 |
-
height: 10px;
|
8 |
-
border-radius: 100%;
|
9 |
-
content: '';
|
10 |
-
display: block;
|
11 |
-
position: absolute;
|
12 |
-
right: 20px;
|
13 |
-
top: 50%;
|
14 |
-
margin-top: -5px;
|
15 |
-
z-index: 1;
|
16 |
-
}
|
17 |
-
.select2-results .select2-result.alm-color.default .select2-result-label:after{
|
18 |
-
background-color: #ed7070;
|
19 |
-
}
|
20 |
-
.select2-results .select2-result.alm-color.white .select2-result-label:after{
|
21 |
-
background-color: #fff;
|
22 |
-
box-shadow: 0 0 0 1px #ccc;
|
23 |
-
}
|
24 |
-
.select2-results .select2-result.alm-color.light-grey .select2-result-label:after{
|
25 |
-
background-color: #efefef;
|
26 |
-
box-shadow: 0 0 0 1px #ccc;
|
27 |
-
}
|
28 |
-
.select2-results .select2-result.alm-color.blue .select2-result-label:after{
|
29 |
-
background-color: #1b91ca;
|
30 |
-
}
|
31 |
-
.select2-results .select2-result.alm-color.green .select2-result-label:after{
|
32 |
-
background-color: #80ca7a;
|
33 |
-
}
|
34 |
-
.select2-results .select2-result.alm-color.purple .select2-result-label:after{
|
35 |
-
background-color: #b97eca;
|
36 |
-
}
|
37 |
-
.select2-results .select2-result.alm-color.grey .select2-result-label:after{
|
38 |
-
background-color: #a09e9e;
|
39 |
-
}
|
40 |
-
.select2-results .select2-result.infinite .select2-result-label:after{
|
41 |
-
display: none;
|
42 |
-
}
|
43 |
-
.select2-results .select2-result.infinite .select2-result-label{
|
44 |
-
-webkit-background-size: 20px 20px;
|
45 |
-
-moz-background-size: 20px 20px;
|
46 |
-
background-size: 20px 20px;
|
47 |
-
background-repeat: no-repeat;
|
48 |
-
background-position: 93% center;
|
49 |
-
}
|
50 |
-
.select2-results .select2-result.classic .select2-result-label{
|
51 |
-
background-image: url("../../../core/img/spinner.gif");
|
52 |
-
}
|
53 |
-
.select2-results .select2-result.skype .select2-result-label{
|
54 |
-
background-image: url("../../../core/img/spinner-skype.gif");
|
55 |
-
}
|
56 |
-
.select2-results .select2-result.ring .select2-result-label{
|
57 |
-
background-image: url("../../../core/img/spinner-ring.gif");
|
58 |
-
}
|
59 |
-
.select2-results .select2-result.chasing-arrows .select2-result-label{
|
60 |
-
background-image: url("../../../core/img/spinner-chasing-arrows.gif");
|
61 |
-
}
|
62 |
-
.select2-results .select2-result.fading-blocks .select2-result-label{
|
63 |
-
background-image: url("../../../core/img/loader-fading-blocks.gif");
|
64 |
-
-webkit-background-size: 20px 16px;
|
65 |
-
-moz-background-size: 20px 16px;
|
66 |
-
background-size: 20px 16px;
|
67 |
-
}
|
68 |
-
.select2-results .select2-result.fading-circles .select2-result-label{
|
69 |
-
background-image: url("../../../core/img/loader-fading-circles.gif");
|
70 |
-
-webkit-background-size: 30px 10px;
|
71 |
-
-moz-background-size: 30px 10px;
|
72 |
-
background-size: 30px 10px;
|
73 |
-
background-position: 95% center;
|
74 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/src/scss/partials/_shortcode-builder.scss
DELETED
@@ -1,200 +0,0 @@
|
|
1 |
-
.shortcode-builder{
|
2 |
-
|
3 |
-
p.warning-callout{
|
4 |
-
&:before{
|
5 |
-
display: block;
|
6 |
-
width: calc(100% + 36px);
|
7 |
-
height: 1px;
|
8 |
-
content: '';
|
9 |
-
background: $light_border;
|
10 |
-
position: absolute;
|
11 |
-
left: -18px;
|
12 |
-
top: -10px;
|
13 |
-
z-index: 1;
|
14 |
-
}
|
15 |
-
}
|
16 |
-
section{
|
17 |
-
display: flex;
|
18 |
-
flex-wrap: nowrap;
|
19 |
-
width: 100%;
|
20 |
-
border-top: 1px solid $light_border;
|
21 |
-
&:hover,
|
22 |
-
&:focus-within{
|
23 |
-
h4{
|
24 |
-
text-decoration: underline;
|
25 |
-
}
|
26 |
-
}
|
27 |
-
&.first{
|
28 |
-
border-top: none;
|
29 |
-
}
|
30 |
-
&.full{
|
31 |
-
flex-wrap: wrap;
|
32 |
-
.shortcode-builder--label,
|
33 |
-
.shortcode-builder--fields{
|
34 |
-
width: 100%;
|
35 |
-
}
|
36 |
-
.shortcode-builder--label{
|
37 |
-
border-bottom: 1px solid $light_border;
|
38 |
-
}
|
39 |
-
}
|
40 |
-
input[type=text],
|
41 |
-
input[type=email],
|
42 |
-
input[type=number],
|
43 |
-
textarea{
|
44 |
-
width: 100%;
|
45 |
-
}
|
46 |
-
.select2-container{
|
47 |
-
min-width: 100%;
|
48 |
-
width: 100%;
|
49 |
-
}
|
50 |
-
}
|
51 |
-
&--label,
|
52 |
-
&--fields{
|
53 |
-
padding: 23px 20px;
|
54 |
-
}
|
55 |
-
&--label{
|
56 |
-
background-color: #fcfcfc;
|
57 |
-
border-right: 1px solid $light_border;
|
58 |
-
width: 40%;
|
59 |
-
padding-right: 30px;
|
60 |
-
&.full{
|
61 |
-
width: 100%;
|
62 |
-
}
|
63 |
-
h4{
|
64 |
-
margin: 0 0 10px;
|
65 |
-
}
|
66 |
-
p{
|
67 |
-
font-size: 13px !important;
|
68 |
-
line-height: 18px !important;
|
69 |
-
small{
|
70 |
-
padding-top: 10px;
|
71 |
-
display: block;
|
72 |
-
font-size: 12px !important;
|
73 |
-
}
|
74 |
-
&:last-of-type{
|
75 |
-
margin-bottom: 0;
|
76 |
-
}
|
77 |
-
}
|
78 |
-
}
|
79 |
-
&--fields{
|
80 |
-
padding-top: 22px;
|
81 |
-
flex: 1;
|
82 |
-
input, textarea, select{
|
83 |
-
width: 100%;
|
84 |
-
}
|
85 |
-
section{
|
86 |
-
width: 104%;
|
87 |
-
margin-left: -2%;
|
88 |
-
border: none;
|
89 |
-
}
|
90 |
-
.half{
|
91 |
-
width: 50%;
|
92 |
-
padding: 0 2%;
|
93 |
-
}
|
94 |
-
.flex-grid{
|
95 |
-
display: flex;
|
96 |
-
width: 100%;
|
97 |
-
flex-wrap: nowrap;
|
98 |
-
&--two,
|
99 |
-
&--three{
|
100 |
-
width: 102%;
|
101 |
-
margin-left: -1%;
|
102 |
-
> div {
|
103 |
-
width: 50%;
|
104 |
-
padding: 0 1%;
|
105 |
-
}
|
106 |
-
}
|
107 |
-
|
108 |
-
&--three{
|
109 |
-
> div{
|
110 |
-
width: 33.333%;
|
111 |
-
}
|
112 |
-
}
|
113 |
-
}
|
114 |
-
}
|
115 |
-
|
116 |
-
@media screen and (max-width: 1000px){
|
117 |
-
section{
|
118 |
-
flex-wrap: wrap;
|
119 |
-
}
|
120 |
-
&--label,
|
121 |
-
&--fields{
|
122 |
-
width: 100%;
|
123 |
-
}
|
124 |
-
&--label{
|
125 |
-
border-right: none;
|
126 |
-
border-bottom: 1px solid $light_border;
|
127 |
-
}
|
128 |
-
|
129 |
-
}
|
130 |
-
|
131 |
-
.flex-input{
|
132 |
-
display: flex;
|
133 |
-
width: 100%;
|
134 |
-
flex-wrap: nowrap;
|
135 |
-
input{
|
136 |
-
margin: 0;
|
137 |
-
flex: 1;
|
138 |
-
border-radius: 3px 0 0 3px;
|
139 |
-
}
|
140 |
-
span{
|
141 |
-
border: 1px solid #e1e1e1;
|
142 |
-
border-left: none;
|
143 |
-
margin: 0;
|
144 |
-
font-weight: 600;
|
145 |
-
font-size: 11px;
|
146 |
-
text-transform: uppercase;
|
147 |
-
padding: 0 15px;
|
148 |
-
display: flex;
|
149 |
-
align-items: center;
|
150 |
-
border-radius: 0 3px 3px 0;
|
151 |
-
}
|
152 |
-
}
|
153 |
-
|
154 |
-
|
155 |
-
.nested-component{
|
156 |
-
padding: 0;
|
157 |
-
position: relative;
|
158 |
-
&:after, &:before {
|
159 |
-
top: 0;
|
160 |
-
left: 35px;
|
161 |
-
border: solid transparent;
|
162 |
-
content: " ";
|
163 |
-
height: 0;
|
164 |
-
width: 0;
|
165 |
-
position: absolute;
|
166 |
-
pointer-events: none;
|
167 |
-
z-index: 2;
|
168 |
-
}
|
169 |
-
&:after {
|
170 |
-
border-color: rgba(255, 255, 255, 0);
|
171 |
-
border-top-color: #fcfcfc;
|
172 |
-
border-width: 10px;
|
173 |
-
margin-left: -10px;
|
174 |
-
}
|
175 |
-
&:before {
|
176 |
-
border-color: rgba(239, 239, 239, 0);
|
177 |
-
border-top-color: $border;
|
178 |
-
border-width: 11px;
|
179 |
-
margin-left: -11px;
|
180 |
-
z-index: 1;
|
181 |
-
}
|
182 |
-
|
183 |
-
&--inner{
|
184 |
-
padding: 0;
|
185 |
-
position: relative;
|
186 |
-
//border-top: 1px solid $light_border;
|
187 |
-
&:after {
|
188 |
-
clear: both;
|
189 |
-
display: table;
|
190 |
-
content: '';
|
191 |
-
}
|
192 |
-
}
|
193 |
-
}
|
194 |
-
.section-intro{
|
195 |
-
font-size: 13px;
|
196 |
-
padding: 20px 5px 20px;
|
197 |
-
margin: 0 0 20px;
|
198 |
-
border-bottom: 1px solid $light_border;
|
199 |
-
}
|
200 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/src/scss/partials/_sidebar.scss
DELETED
@@ -1,23 +0,0 @@
|
|
1 |
-
.ajax-load-more .cnkt-sidebar{
|
2 |
-
width: 33%;
|
3 |
-
float: right;
|
4 |
-
background: #efefef;
|
5 |
-
padding: $gutter;
|
6 |
-
position: absolute;
|
7 |
-
right: 0;
|
8 |
-
top: 0;
|
9 |
-
height: 100%;
|
10 |
-
h3{
|
11 |
-
|
12 |
-
}
|
13 |
-
.major-publishing-actions{
|
14 |
-
padding: 15px;
|
15 |
-
clear: both;
|
16 |
-
border-top: 1px solid #e1e1e1;
|
17 |
-
background: #f7f7f7;
|
18 |
-
i{
|
19 |
-
opacity: 0.4;
|
20 |
-
margin: 0 2px 0 0;
|
21 |
-
}
|
22 |
-
}
|
23 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/src/scss/partials/_woocommerce.scss
DELETED
@@ -1,33 +0,0 @@
|
|
1 |
-
.woocommerce-intro{
|
2 |
-
}
|
3 |
-
.woocommerce-help{
|
4 |
-
&--item{
|
5 |
-
width: 100%;
|
6 |
-
display: flex;
|
7 |
-
flex-wrap: nowrap;
|
8 |
-
align-items: center;
|
9 |
-
padding-top: 20px;
|
10 |
-
margin-top: 20px;
|
11 |
-
border-top: 1px solid #efefef;
|
12 |
-
div{
|
13 |
-
flex: 1;
|
14 |
-
padding: 20px 20px 20px 30px;
|
15 |
-
@media screen and (max-width: 600px){
|
16 |
-
padding: 20px 0;
|
17 |
-
}
|
18 |
-
}
|
19 |
-
.img{
|
20 |
-
padding: 0;
|
21 |
-
flex: none;
|
22 |
-
width: 30%;
|
23 |
-
@media screen and (max-width: 600px){
|
24 |
-
display: none;
|
25 |
-
}
|
26 |
-
img{
|
27 |
-
border: 1px solid #efefef;
|
28 |
-
padding: 2px;
|
29 |
-
border-radius: 4px;
|
30 |
-
}
|
31 |
-
}
|
32 |
-
}
|
33 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/views/add-ons.php
CHANGED
@@ -6,20 +6,19 @@
|
|
6 |
<?php echo ALM_TITLE; ?>: <strong><?php _e('Add-ons', 'ajax-load-more'); ?></strong>
|
7 |
<em><?php _e('Add-ons are available to extend and enhance the core functionality of Ajax Load More', 'ajax-load-more'); ?>.</em>
|
8 |
</h1>
|
9 |
-
<?php alm_render_transient_notification(); ?>
|
10 |
</header>
|
11 |
-
|
12 |
-
<div class="ajax-load-more-inner-wrapper">
|
13 |
-
|
14 |
-
<div class="cnkt-main">
|
15 |
-
|
16 |
-
<div class="flexbox-wrap">
|
17 |
-
|
18 |
-
|
19 |
-
<?php
|
20 |
$target = 'target="_blank"';
|
21 |
-
$addons = alm_get_addons();
|
22 |
-
foreach($addons as $addon){
|
23 |
$name = $addon['name'];
|
24 |
$intro = $addon['intro'];
|
25 |
$desc = $addon['desc'];
|
@@ -44,24 +43,24 @@
|
|
44 |
}
|
45 |
?>
|
46 |
</a>
|
47 |
-
</div>
|
48 |
-
<?php } ?>
|
49 |
</div>
|
50 |
-
|
51 |
<div class="call-out light no-shadow">
|
52 |
<p><?php _e('All add-ons are installed as stand alone plugins and with a valid license key will receive plugin update notifications directly within the <a href="plugins.php">WordPress plugin dashboard</a>.', 'ajax-load-more'); ?></p>
|
53 |
</div>
|
54 |
</div>
|
55 |
-
|
56 |
<aside class="cnkt-sidebar">
|
57 |
<div id="cnkt-sticky-wrapper">
|
58 |
<div id="cnkt-sticky">
|
59 |
<?php include_once( ALM_PATH . 'admin/includes/cta/add-ons.php'); ?>
|
60 |
</div>
|
61 |
</div>
|
62 |
-
</aside>
|
63 |
-
|
64 |
-
<div class="clear"></div>
|
65 |
</div>
|
66 |
|
67 |
</div>
|
6 |
<?php echo ALM_TITLE; ?>: <strong><?php _e('Add-ons', 'ajax-load-more'); ?></strong>
|
7 |
<em><?php _e('Add-ons are available to extend and enhance the core functionality of Ajax Load More', 'ajax-load-more'); ?>.</em>
|
8 |
</h1>
|
9 |
+
<?php alm_render_transient_notification(); ?>
|
10 |
</header>
|
11 |
+
|
12 |
+
<div class="ajax-load-more-inner-wrapper">
|
13 |
+
|
14 |
+
<div class="cnkt-main stylefree">
|
15 |
+
|
16 |
+
<div class="flexbox-wrap">
|
17 |
+
<?php
|
18 |
+
require_once( ALM_PATH . 'admin/includes/cta/pro-hero.php');
|
|
|
19 |
$target = 'target="_blank"';
|
20 |
+
$addons = alm_get_addons();
|
21 |
+
foreach( $addons as $addon ) {
|
22 |
$name = $addon['name'];
|
23 |
$intro = $addon['intro'];
|
24 |
$desc = $addon['desc'];
|
43 |
}
|
44 |
?>
|
45 |
</a>
|
46 |
+
</div>
|
47 |
+
<?php } ?>
|
48 |
</div>
|
49 |
+
|
50 |
<div class="call-out light no-shadow">
|
51 |
<p><?php _e('All add-ons are installed as stand alone plugins and with a valid license key will receive plugin update notifications directly within the <a href="plugins.php">WordPress plugin dashboard</a>.', 'ajax-load-more'); ?></p>
|
52 |
</div>
|
53 |
</div>
|
54 |
+
|
55 |
<aside class="cnkt-sidebar">
|
56 |
<div id="cnkt-sticky-wrapper">
|
57 |
<div id="cnkt-sticky">
|
58 |
<?php include_once( ALM_PATH . 'admin/includes/cta/add-ons.php'); ?>
|
59 |
</div>
|
60 |
</div>
|
61 |
+
</aside>
|
62 |
+
|
63 |
+
<div class="clear"></div>
|
64 |
</div>
|
65 |
|
66 |
</div>
|
admin/views/go-pro.php
CHANGED
@@ -1,28 +1,28 @@
|
|
1 |
<div class="admin ajax-load-more" id="alm-add-ons">
|
2 |
-
<div class="wrap main-cnkt-wrap">
|
3 |
<header class="header-wrap">
|
4 |
<h1>
|
5 |
<?php echo ALM_TITLE; ?>: <strong><?php _e('Pro', 'ajax-load-more'); ?></strong>
|
6 |
<em><?php _e('All current and future add-ons in a single installation.', 'ajax-load-more'); ?></em>
|
7 |
</h1>
|
8 |
</header>
|
9 |
-
|
10 |
-
<div class="ajax-load-more-inner-wrapper">
|
11 |
-
|
12 |
-
<div class="cnkt-main">
|
13 |
-
|
14 |
-
<div class="flexbox-wrap">
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
<?php
|
23 |
$target = 'target="_blank"';
|
24 |
-
$addons = alm_get_addons();
|
25 |
-
foreach($addons as $addon){
|
26 |
$name = $addon['name'];
|
27 |
$intro = $addon['intro'];
|
28 |
$desc = $addon['desc'];
|
@@ -40,12 +40,12 @@
|
|
40 |
<p class="addon-intro"><?php echo $intro; ?></p>
|
41 |
<p><?php echo $desc; ?></p>
|
42 |
</a>
|
43 |
-
</div>
|
44 |
-
<?php } ?>
|
45 |
</div>
|
46 |
-
|
47 |
</div>
|
48 |
-
|
49 |
<aside class="cnkt-sidebar">
|
50 |
<div id="cnkt-sticky-wrapper">
|
51 |
<div id="cnkt-sticky">
|
@@ -57,15 +57,15 @@
|
|
57 |
<p style="padding: 15px 0 0 0; border-top: 1px solid #efefef; font-size: 12px;"><strong><?php _e('Please note:', 'ajax-load-more'); ?></strong> <?php _e('The core Ajax Load More plugin is <u>still</u> required when using the Pro add-on.', 'ajax-load-more'); ?></p>
|
58 |
</div>
|
59 |
<div class="major-publishing-actions">
|
60 |
-
<a href="https://connekthq.com/plugins/ajax-load-more/pro/?utm_source=WP%20Admin&utm_medium=Go%20Pro%20Dashboard&utm_campaign=ProUpgrade" class="button button-primary" target="_blank"><?php _e('Get More Information', 'ajax-load-more'); ?></a>
|
61 |
</div>
|
62 |
-
</div>
|
63 |
</div>
|
64 |
</div>
|
65 |
-
</aside>
|
66 |
-
|
67 |
-
<div class="clear"></div>
|
68 |
</div>
|
69 |
-
|
70 |
</div>
|
71 |
</div>
|
1 |
<div class="admin ajax-load-more" id="alm-add-ons">
|
2 |
+
<div class="wrap main-cnkt-wrap">
|
3 |
<header class="header-wrap">
|
4 |
<h1>
|
5 |
<?php echo ALM_TITLE; ?>: <strong><?php _e('Pro', 'ajax-load-more'); ?></strong>
|
6 |
<em><?php _e('All current and future add-ons in a single installation.', 'ajax-load-more'); ?></em>
|
7 |
</h1>
|
8 |
</header>
|
9 |
+
|
10 |
+
<div class="ajax-load-more-inner-wrapper">
|
11 |
+
|
12 |
+
<div class="cnkt-main stylefree">
|
13 |
+
|
14 |
+
<div class="flexbox-wrap">
|
15 |
+
<?php include_once ALM_PATH . 'admin/includes/cta/pro-hero.php'; ?>
|
16 |
+
|
17 |
+
</div>
|
18 |
+
<p class="alm-text-center intro">
|
19 |
+
<?php esc_html_e('The following products are included when you purchase Ajax Load More Pro:', 'ajax-load-more'); ?>
|
20 |
+
</p>
|
21 |
+
<div class="flexbox-wrap">
|
22 |
+
<?php
|
23 |
$target = 'target="_blank"';
|
24 |
+
$addons = alm_get_addons();
|
25 |
+
foreach($addons as $addon){
|
26 |
$name = $addon['name'];
|
27 |
$intro = $addon['intro'];
|
28 |
$desc = $addon['desc'];
|
40 |
<p class="addon-intro"><?php echo $intro; ?></p>
|
41 |
<p><?php echo $desc; ?></p>
|
42 |
</a>
|
43 |
+
</div>
|
44 |
+
<?php } ?>
|
45 |
</div>
|
46 |
+
|
47 |
</div>
|
48 |
+
|
49 |
<aside class="cnkt-sidebar">
|
50 |
<div id="cnkt-sticky-wrapper">
|
51 |
<div id="cnkt-sticky">
|
57 |
<p style="padding: 15px 0 0 0; border-top: 1px solid #efefef; font-size: 12px;"><strong><?php _e('Please note:', 'ajax-load-more'); ?></strong> <?php _e('The core Ajax Load More plugin is <u>still</u> required when using the Pro add-on.', 'ajax-load-more'); ?></p>
|
58 |
</div>
|
59 |
<div class="major-publishing-actions">
|
60 |
+
<a href="https://connekthq.com/plugins/ajax-load-more/pro/?utm_source=WP%20Admin&utm_medium=Go%20Pro%20Dashboard&utm_campaign=ProUpgrade" class="button button-primary" target="_blank"><?php _e('Get More Information', 'ajax-load-more'); ?></a>
|
61 |
</div>
|
62 |
+
</div>
|
63 |
</div>
|
64 |
</div>
|
65 |
+
</aside>
|
66 |
+
|
67 |
+
<div class="clear"></div>
|
68 |
</div>
|
69 |
+
|
70 |
</div>
|
71 |
</div>
|
admin/views/help.php
CHANGED
@@ -18,13 +18,13 @@
|
|
18 |
<?php echo ALM_TITLE; ?>: <strong><?php _e('Help', 'ajax-load-more'); ?></strong>
|
19 |
<em><?php echo $subtitle; ?></em>
|
20 |
</h1>
|
21 |
-
<?php alm_render_transient_notification(); ?>
|
22 |
</header>
|
23 |
-
|
24 |
<div class="ajax-load-more-inner-wrapper">
|
25 |
-
|
26 |
-
<div class="cnkt-main">
|
27 |
-
|
28 |
<ul class="alm-toggle-switch">
|
29 |
<li>
|
30 |
<a href="?page=ajax-load-more-help" class="<?php if(!$examples){ echo 'active';} ?>">
|
@@ -37,31 +37,31 @@
|
|
37 |
</a>
|
38 |
</li>
|
39 |
</ul>
|
40 |
-
|
41 |
<?php
|
42 |
if(!$examples){
|
43 |
// Implementation Guide
|
44 |
?>
|
45 |
-
|
46 |
<div class="group no-shadow">
|
47 |
<img src="<?php echo ALM_ADMIN_URL; ?>img/infographic.png">
|
48 |
</div>
|
49 |
-
|
50 |
<?php } else {
|
51 |
// Examples
|
52 |
include_once( ALM_PATH . 'admin/includes/components/example-list.php');
|
53 |
-
|
54 |
} ?>
|
55 |
-
|
56 |
</div>
|
57 |
-
|
58 |
<aside class="cnkt-sidebar">
|
59 |
<?php
|
60 |
if(!$examples){
|
61 |
// Implementation Guide
|
62 |
include_once( ALM_PATH . 'admin/includes/cta/resources.php');
|
63 |
include_once( ALM_PATH . 'admin/includes/cta/dyk.php');
|
64 |
-
|
65 |
} else {
|
66 |
// Examples
|
67 |
?>
|
@@ -69,7 +69,7 @@
|
|
69 |
<h3><?php _e('Example Library', 'ajax-load-more'); ?></h3>
|
70 |
<div class="cta-inner">
|
71 |
<p style="padding-bottom: 10px;"><?php _e('We have a collection of over 20 real world Ajax Load More <a href="https://connekthq.com/plugins/ajax-load-more/examples/" target="_blank">examples</a> available on the plugin website', 'ajax-load-more'); ?>.</p>
|
72 |
-
</div>
|
73 |
<div class="major-publishing-actions">
|
74 |
<a href="https://connekthq.com/plugins/ajax-load-more/examples/" class="button button-primary" target="_blank"><?php _e('View All Examples', 'ajax-load-more'); ?></a>
|
75 |
</div>
|
@@ -80,8 +80,8 @@
|
|
80 |
}
|
81 |
?>
|
82 |
</aside>
|
83 |
-
|
84 |
-
<div class="clear"></div>
|
85 |
</div>
|
86 |
|
87 |
</div>
|
18 |
<?php echo ALM_TITLE; ?>: <strong><?php _e('Help', 'ajax-load-more'); ?></strong>
|
19 |
<em><?php echo $subtitle; ?></em>
|
20 |
</h1>
|
21 |
+
<?php alm_render_transient_notification(); ?>
|
22 |
</header>
|
23 |
+
|
24 |
<div class="ajax-load-more-inner-wrapper">
|
25 |
+
|
26 |
+
<div class="cnkt-main stylefree">
|
27 |
+
|
28 |
<ul class="alm-toggle-switch">
|
29 |
<li>
|
30 |
<a href="?page=ajax-load-more-help" class="<?php if(!$examples){ echo 'active';} ?>">
|
37 |
</a>
|
38 |
</li>
|
39 |
</ul>
|
40 |
+
|
41 |
<?php
|
42 |
if(!$examples){
|
43 |
// Implementation Guide
|
44 |
?>
|
45 |
+
|
46 |
<div class="group no-shadow">
|
47 |
<img src="<?php echo ALM_ADMIN_URL; ?>img/infographic.png">
|
48 |
</div>
|
49 |
+
|
50 |
<?php } else {
|
51 |
// Examples
|
52 |
include_once( ALM_PATH . 'admin/includes/components/example-list.php');
|
53 |
+
|
54 |
} ?>
|
55 |
+
|
56 |
</div>
|
57 |
+
|
58 |
<aside class="cnkt-sidebar">
|
59 |
<?php
|
60 |
if(!$examples){
|
61 |
// Implementation Guide
|
62 |
include_once( ALM_PATH . 'admin/includes/cta/resources.php');
|
63 |
include_once( ALM_PATH . 'admin/includes/cta/dyk.php');
|
64 |
+
|
65 |
} else {
|
66 |
// Examples
|
67 |
?>
|
69 |
<h3><?php _e('Example Library', 'ajax-load-more'); ?></h3>
|
70 |
<div class="cta-inner">
|
71 |
<p style="padding-bottom: 10px;"><?php _e('We have a collection of over 20 real world Ajax Load More <a href="https://connekthq.com/plugins/ajax-load-more/examples/" target="_blank">examples</a> available on the plugin website', 'ajax-load-more'); ?>.</p>
|
72 |
+
</div>
|
73 |
<div class="major-publishing-actions">
|
74 |
<a href="https://connekthq.com/plugins/ajax-load-more/examples/" class="button button-primary" target="_blank"><?php _e('View All Examples', 'ajax-load-more'); ?></a>
|
75 |
</div>
|
80 |
}
|
81 |
?>
|
82 |
</aside>
|
83 |
+
|
84 |
+
<div class="clear"></div>
|
85 |
</div>
|
86 |
|
87 |
</div>
|
admin/views/licenses.php
CHANGED
@@ -4,7 +4,8 @@
|
|
4 |
?>
|
5 |
<div class="admin ajax-load-more" id="alm-licenses">
|
6 |
<div class="wrap main-cnkt-wrap">
|
7 |
-
|
|
|
8 |
<h1>
|
9 |
<?php echo ALM_TITLE; ?>: <strong><?php echo $pg_title; ?></strong>
|
10 |
<em><?php echo $pg_desc; ?>.</em>
|
@@ -150,14 +151,13 @@
|
|
150 |
<p><?php _e('You do not have any Ajax Load More add-ons installed', 'ajax-load-more'); ?> | <a href="admin.php?page=ajax-load-more-add-ons"><strong><?php _e('Browse Add-ons', 'ajax-load-more'); ?></strong></a> | <a href="https://connekthq.com/plugins/ajax-load-more/pro/" target="_blank"><strong><?php _e('Go Pro', 'ajax-load-more'); ?></strong></a></p>
|
151 |
</div>
|
152 |
<?php endif; ?>
|
153 |
-
|
154 |
</div>
|
155 |
|
156 |
<aside class="cnkt-sidebar">
|
157 |
<div id="cnkt-sticky-wrapper">
|
158 |
<div id="cnkt-sticky">
|
159 |
-
|
160 |
-
|
161 |
<div class="cta-inner">
|
162 |
<ul>
|
163 |
<li><?php _e('License keys are found in the purchase receipt email that was sent immediately after purchase and in the <a target="_blank" href="https://connekthq.com/account/">Account</a> section on our website', 'ajax-load-more');?></li>
|
@@ -166,19 +166,20 @@
|
|
166 |
<strong><?php _e('Are you having issues updating an add-on?', 'ajax-load-more'); ?></strong><br/>
|
167 |
<?php _e('Please try deactivating and then re-activating each license. Once you\'ve done that, try running the update again.', 'ajax-load-more'); ?></li>
|
168 |
</ul>
|
169 |
-
|
170 |
<div class="major-publishing-actions">
|
171 |
<a class="button button-primary" target="_blank" href="https://connekthq.com/account/">
|
172 |
<?php _e('Your Account', 'ajax-load-more'); ?>
|
173 |
</a>
|
174 |
-
|
175 |
-
|
176 |
</div>
|
177 |
</div>
|
178 |
-
|
|
|
179 |
|
180 |
<div class="clear"></div>
|
181 |
-
</aside>
|
182 |
|
|
|
183 |
</div>
|
184 |
</div>
|
4 |
?>
|
5 |
<div class="admin ajax-load-more" id="alm-licenses">
|
6 |
<div class="wrap main-cnkt-wrap">
|
7 |
+
|
8 |
+
<header class="header-wrap">
|
9 |
<h1>
|
10 |
<?php echo ALM_TITLE; ?>: <strong><?php echo $pg_title; ?></strong>
|
11 |
<em><?php echo $pg_desc; ?>.</em>
|
151 |
<p><?php _e('You do not have any Ajax Load More add-ons installed', 'ajax-load-more'); ?> | <a href="admin.php?page=ajax-load-more-add-ons"><strong><?php _e('Browse Add-ons', 'ajax-load-more'); ?></strong></a> | <a href="https://connekthq.com/plugins/ajax-load-more/pro/" target="_blank"><strong><?php _e('Go Pro', 'ajax-load-more'); ?></strong></a></p>
|
152 |
</div>
|
153 |
<?php endif; ?>
|
|
|
154 |
</div>
|
155 |
|
156 |
<aside class="cnkt-sidebar">
|
157 |
<div id="cnkt-sticky-wrapper">
|
158 |
<div id="cnkt-sticky">
|
159 |
+
<div class="cta">
|
160 |
+
<h3><?php _e('About Licenses', 'ajax-load-more'); ?></h3>
|
161 |
<div class="cta-inner">
|
162 |
<ul>
|
163 |
<li><?php _e('License keys are found in the purchase receipt email that was sent immediately after purchase and in the <a target="_blank" href="https://connekthq.com/account/">Account</a> section on our website', 'ajax-load-more');?></li>
|
166 |
<strong><?php _e('Are you having issues updating an add-on?', 'ajax-load-more'); ?></strong><br/>
|
167 |
<?php _e('Please try deactivating and then re-activating each license. Once you\'ve done that, try running the update again.', 'ajax-load-more'); ?></li>
|
168 |
</ul>
|
169 |
+
</div>
|
170 |
<div class="major-publishing-actions">
|
171 |
<a class="button button-primary" target="_blank" href="https://connekthq.com/account/">
|
172 |
<?php _e('Your Account', 'ajax-load-more'); ?>
|
173 |
</a>
|
174 |
+
</div>
|
175 |
+
</div>
|
176 |
</div>
|
177 |
</div>
|
178 |
+
<div class="clear"></div>
|
179 |
+
</aside>
|
180 |
|
181 |
<div class="clear"></div>
|
|
|
182 |
|
183 |
+
</div>
|
184 |
</div>
|
185 |
</div>
|
admin/views/repeater-templates.php
CHANGED
@@ -1,8 +1,7 @@
|
|
1 |
<?php
|
2 |
$theme_repeaters = false;
|
3 |
-
if (isset($_GET['theme-repeaters'])) {
|
4 |
-
$theme_repeaters = $_GET['theme-repeaters'];
|
5 |
-
$theme_repeaters = ($theme_repeaters == 'true' && has_action('alm_get_theme_repeater')) ? true : false;
|
6 |
}
|
7 |
?>
|
8 |
|
@@ -11,145 +10,160 @@
|
|
11 |
|
12 |
<header class="header-wrap">
|
13 |
<h1>
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
</header>
|
19 |
|
20 |
<div class="ajax-load-more-inner-wrapper">
|
21 |
|
22 |
-
<div class="cnkt-main repeaters">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
-
<?php if(has_action('alm_get_theme_repeater')){ ?>
|
25 |
-
<ul class="alm-toggle-switch">
|
26 |
-
<li><a href="?page=ajax-load-more-repeaters" class="<?php if(!$theme_repeaters){ echo 'active'; } ?>"><?php _e('Repeater Templates', 'ajax-load-more'); ?></a></li>
|
27 |
-
<li><a href="?page=ajax-load-more-repeaters&theme-repeaters=true" class="<?php if($theme_repeaters){ echo 'active'; } ?>"><?php _e('Theme Repeaters', 'ajax-load-more'); ?></a></li>
|
28 |
-
</ul>
|
29 |
-
<?php } ?>
|
30 |
-
|
31 |
-
<?php
|
32 |
-
|
33 |
-
// Theme Repeaters
|
34 |
-
|
35 |
-
if($theme_repeaters){ ?>
|
36 |
<div class="repeater-listing">
|
37 |
|
38 |
-
|
|
|
|
|
39 |
|
40 |
-
|
41 |
-
if(!isset($options['_alm_theme_repeaters_dir'])){
|
42 |
-
$options['_alm_theme_repeaters_dir'] = 'alm_templates';
|
43 |
-
}
|
44 |
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
$link = substr($file, strlen($dir) + 1);
|
57 |
-
|
58 |
-
$file_extension = strtolower(substr(basename($file), strrpos(basename($file), '.') + 1));
|
59 |
-
$file_directory = get_option('stylesheet') .'/'. strtolower(substr(basename($dir), strrpos(basename($dir), '/')));
|
60 |
-
|
61 |
-
$id = preg_replace('/\\.[^.\\s]{3,4}$/', '', $link);
|
62 |
-
|
63 |
-
if($file_extension == 'php'){ // Only display .php files files ?>
|
64 |
-
|
65 |
-
<div class="row template" id="tr-<?php echo $id; ?>">
|
66 |
-
<h3 class="heading" tabindex="0"><?php echo basename($file); ?></h3>
|
67 |
-
<div class="expand-wrap">
|
68 |
-
<div class="wrap repeater-wrap cm-readonly" data-name="template-tr-<?php echo $id; ?>">
|
69 |
-
|
70 |
-
<div class="alm-row alm-row--margin-btm">
|
71 |
-
<div class="column">
|
72 |
-
<?php
|
73 |
-
$template = fopen ($file, "r"); // Open file
|
74 |
-
$tr_contents = '';
|
75 |
-
if(filesize ($file) != 0){
|
76 |
-
$tr_contents = fread ($template, filesize ($file));
|
77 |
-
}
|
78 |
-
fclose ($template);
|
79 |
-
?>
|
80 |
-
<textarea rows="10" id="template-tr-<?php echo $id; ?>" class="_alm_repeater"><?php echo $tr_contents; ?></textarea>
|
81 |
-
<script>
|
82 |
-
var editor_default = CodeMirror.fromTextArea(document.getElementById("template-tr-<?php echo $id; ?>"), {
|
83 |
-
mode: "application/x-httpd-php",
|
84 |
-
lineNumbers: true,
|
85 |
-
lineWrapping: true,
|
86 |
-
indentUnit: 0,
|
87 |
-
matchBrackets: true,
|
88 |
-
readOnly: true,
|
89 |
-
viewportMargin: Infinity,foldGutter: true,
|
90 |
-
gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"],
|
91 |
-
extraKeys: {"Ctrl-Space": "autocomplete"},
|
92 |
-
});
|
93 |
-
</script>
|
94 |
-
</div>
|
95 |
-
</div>
|
96 |
-
|
97 |
-
<div class="alm-row">
|
98 |
-
<div class="column">
|
99 |
-
<div class="file-location">
|
100 |
-
<p><?php _e('Location', 'ajax-load-more'); ?>:</p>
|
101 |
-
<code title="<?php echo $file; ?>"><?php echo $file_directory; ?>/<?php echo basename($file); ?></code>
|
102 |
-
</div>
|
103 |
-
</div>
|
104 |
-
</div>
|
105 |
-
<?php
|
106 |
-
$repeater_options = array(
|
107 |
-
'path' => $file,
|
108 |
-
'name' => basename($file),
|
109 |
-
'type' => 'theme-repeater'
|
110 |
-
);
|
111 |
-
include( ALM_PATH . 'admin/includes/components/repeater-options.php');
|
112 |
-
unset($repeater_options);
|
113 |
-
?>
|
114 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
</div>
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
</span>
|
131 |
-
<?php
|
132 |
-
}
|
133 |
-
|
134 |
-
if($count == 0){ ?>
|
135 |
-
<div style="padding: 20px;">
|
136 |
-
<h3><?php _e('Templates Not Found', 'ajax-load-more'); ?></h3>
|
137 |
-
<p>
|
138 |
-
<?php _e('Oh no - looks like you haven\'t added any Theme Repeater templates - you need to create and upload templates to your theme directory before you can access them in Ajax Load More', 'ajax-load-more'); ?>.
|
139 |
-
</p>
|
140 |
-
<p style="margin: 20px 0 0;">
|
141 |
-
<a href="https://connekthq.com/plugins/ajax-load-more/add-ons/theme-repeaters/" class="button button-primary button-large" target="_blank"><?php _e('Learn More About Theme Repeaters', 'ajax-load-more'); ?></a>
|
142 |
-
</p>
|
143 |
-
</div>
|
144 |
-
<?php }
|
145 |
-
?>
|
146 |
-
</div>
|
147 |
-
|
148 |
-
<?php } else { ?>
|
149 |
-
|
150 |
-
<!-- Repeaters -->
|
151 |
-
<div class="<?php if(has_action('alm_get_theme_repeater')){ echo 'repeater-listing'; } ?>">
|
152 |
|
|
|
|
|
|
|
153 |
<?php
|
154 |
if (has_action('alm_custom_repeaters') || has_action('alm_unlimited_repeaters')){ ?>
|
155 |
<span class="toggle-all" role="button" tabindex="0">
|
@@ -274,27 +288,22 @@
|
|
274 |
</div>
|
275 |
<!-- End Default Template -->
|
276 |
|
277 |
-
|
278 |
<!-- Custom Repeaters -->
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
if (has_action('alm_unlimited_repeaters')){
|
295 |
-
do_action('alm_unlimited_repeaters');
|
296 |
-
}
|
297 |
-
|
298 |
?>
|
299 |
|
300 |
<script>
|
@@ -458,11 +467,10 @@
|
|
458 |
|
459 |
});
|
460 |
</script>
|
461 |
-
|
462 |
-
</div>
|
463 |
<!-- End Repeaters -->
|
|
|
464 |
|
465 |
-
|
466 |
|
467 |
</div>
|
468 |
|
1 |
<?php
|
2 |
$theme_repeaters = false;
|
3 |
+
if ( isset( $_GET['theme-repeaters'] ) ) {
|
4 |
+
$theme_repeaters = ( 'true' === $_GET['theme-repeaters'] ) ? true : false;
|
|
|
5 |
}
|
6 |
?>
|
7 |
|
10 |
|
11 |
<header class="header-wrap">
|
12 |
<h1>
|
13 |
+
<?php echo ALM_TITLE; ?>: <strong><?php _e('Repeater Templates', 'ajax-load-more'); ?></strong>
|
14 |
+
<em><?php _e('The library of editable templates for use within your theme', 'ajax-load-more'); ?></em>
|
15 |
+
</h1>
|
16 |
+
<?php alm_render_transient_notification(); ?>
|
17 |
</header>
|
18 |
|
19 |
<div class="ajax-load-more-inner-wrapper">
|
20 |
|
21 |
+
<div class="cnkt-main stylefree repeaters">
|
22 |
+
|
23 |
+
<ul class="alm-toggle-switch">
|
24 |
+
<li>
|
25 |
+
<a href="?page=ajax-load-more-repeaters" class="<?php if ( ! $theme_repeaters ) { echo 'active'; } ?>">
|
26 |
+
<?php esc_html_e('Repeater Templates', 'ajax-load-more'); ?>
|
27 |
+
</a>
|
28 |
+
</li>
|
29 |
+
<li>
|
30 |
+
<a href="?page=ajax-load-more-repeaters&theme-repeaters=true" class="<?php if ( $theme_repeaters ) { echo 'active'; } ?>">
|
31 |
+
<?php esc_html_e( 'Theme Repeaters', 'ajax-load-more' ); ?>
|
32 |
+
</a>
|
33 |
+
</li>
|
34 |
+
</ul>
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
<div class="repeater-listing">
|
37 |
|
38 |
+
<?php
|
39 |
+
// Theme Repeaters.
|
40 |
+
if ( $theme_repeaters ) {
|
41 |
|
42 |
+
if ( has_action( 'alm_get_theme_repeater' ) ) {
|
|
|
|
|
|
|
43 |
|
44 |
+
$options = get_option( 'alm_settings' );
|
45 |
+
if ( ! isset( $options['_alm_theme_repeaters_dir'] ) ) {
|
46 |
+
$options['_alm_theme_repeaters_dir'] = 'alm_templates';
|
47 |
+
}
|
48 |
+
|
49 |
+
// Get template location.
|
50 |
+
if ( is_child_theme() ) {
|
51 |
+
$dir = get_stylesheet_directory() . '/' . $options['_alm_theme_repeaters_dir'];
|
52 |
+
} else {
|
53 |
+
$dir = get_template_directory() . '/' . $options['_alm_theme_repeaters_dir'];
|
54 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
|
56 |
+
$count = 0;
|
57 |
+
foreach ( glob( $dir . '/*' ) as $file ) {
|
58 |
+
$file = realpath( $file );
|
59 |
+
$link = substr( $file, strlen( $dir ) + 1 );
|
60 |
+
|
61 |
+
$file_extension = strtolower(substr(basename($file), strrpos(basename($file), '.') + 1));
|
62 |
+
$file_directory = get_option('stylesheet') .'/'. strtolower(substr(basename($dir), strrpos(basename($dir), '/')));
|
63 |
+
|
64 |
+
$id = preg_replace( '/\\.[^.\\s]{3,4}$/', '', $link );
|
65 |
+
|
66 |
+
// Only display .php files files.
|
67 |
+
if ( 'php' === $file_extension ) {
|
68 |
+
?>
|
69 |
+
|
70 |
+
<div class="row template" id="tr-<?php echo esc_html( $id ); ?>">
|
71 |
+
<h3 class="heading" tabindex="0"><?php echo basename($file); ?></h3>
|
72 |
+
<div class="expand-wrap">
|
73 |
+
<div class="wrap repeater-wrap cm-readonly" data-name="template-tr-<?php echo $id; ?>">
|
74 |
+
<div class="alm-row alm-row--margin-btm">
|
75 |
+
<div class="column">
|
76 |
+
<?php
|
77 |
+
// Open file.
|
78 |
+
$template = fopen ($file, "r");
|
79 |
+
$tr_contents = '';
|
80 |
+
if(filesize ($file) != 0){
|
81 |
+
$tr_contents = fread ($template, filesize ($file));
|
82 |
+
}
|
83 |
+
fclose ($template);
|
84 |
+
?>
|
85 |
+
<textarea rows="10" id="template-tr-<?php echo $id; ?>" class="_alm_repeater"><?php echo $tr_contents; ?></textarea>
|
86 |
+
<script>
|
87 |
+
var editor_default = CodeMirror.fromTextArea(document.getElementById("template-tr-<?php echo $id; ?>"), {
|
88 |
+
mode: "application/x-httpd-php",
|
89 |
+
lineNumbers: true,
|
90 |
+
lineWrapping: true,
|
91 |
+
indentUnit: 0,
|
92 |
+
matchBrackets: true,
|
93 |
+
readOnly: true,
|
94 |
+
viewportMargin: Infinity,foldGutter: true,
|
95 |
+
gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"],
|
96 |
+
extraKeys: {"Ctrl-Space": "autocomplete"},
|
97 |
+
});
|
98 |
+
</script>
|
99 |
+
</div>
|
100 |
+
</div>
|
101 |
+
|
102 |
+
<div class="alm-row">
|
103 |
+
<div class="column">
|
104 |
+
<div class="file-location">
|
105 |
+
<p><?php _e('Location', 'ajax-load-more'); ?>:</p>
|
106 |
+
<code title="<?php echo $file; ?>"><?php echo $file_directory; ?>/<?php echo basename($file); ?></code>
|
107 |
+
</div>
|
108 |
+
</div>
|
109 |
+
</div>
|
110 |
+
<?php
|
111 |
+
$repeater_options = array(
|
112 |
+
'path' => $file,
|
113 |
+
'name' => basename($file),
|
114 |
+
'type' => 'theme-repeater'
|
115 |
+
);
|
116 |
+
include( ALM_PATH . 'admin/includes/components/repeater-options.php');
|
117 |
+
unset($repeater_options);
|
118 |
+
?>
|
119 |
+
|
120 |
+
</div>
|
121 |
+
</div>
|
122 |
</div>
|
123 |
+
<?php
|
124 |
+
$count++;
|
125 |
+
unset( $template );
|
126 |
+
unset( $file );
|
127 |
+
}
|
128 |
+
}
|
129 |
+
// Expand/Collapse.
|
130 |
+
if ( $count > 1 ) {
|
131 |
+
?>
|
132 |
+
<span class="toggle-all" role="button" tabindex="0">
|
133 |
+
<span class="inner-wrap">
|
134 |
+
<em class="collapse"><?php _e( 'Collapse All', 'ajax-load-more' ); ?></em>
|
135 |
+
<em class="expand"><?php _e( 'Expand All', 'ajax-load-more' ); ?></em>
|
136 |
+
</span>
|
137 |
+
</span>
|
138 |
+
<?php
|
139 |
+
}
|
140 |
+
?>
|
141 |
+
<?php
|
142 |
+
// Empty Theme Repeaters.
|
143 |
+
if ( 0 === $count ) {
|
144 |
+
?>
|
145 |
+
<div style="padding: 25px; text-align: center;">
|
146 |
+
<h3><?php esc_html_e('Theme Repeaters Not Found!', 'ajax-load-more'); ?></h3>
|
147 |
+
<p style="padding: 0 10%;">
|
148 |
+
<?php _e('You\'ll need to create and upload templates to your theme directory before you can access them with Ajax Load More', 'ajax-load-more'); ?>.
|
149 |
+
</p>
|
150 |
+
<p style="margin: 20px 0 0;">
|
151 |
+
<a href="https://connekthq.com/plugins/ajax-load-more/add-ons/theme-repeaters/" class="button button-primary button-large" target="_blank"><?php _e('Learn More', 'ajax-load-more'); ?></a>
|
152 |
+
<a href="admin.php?page=ajax-load-more" class="button button-large" target="_blank"><?php _e('Manage Settings', 'ajax-load-more'); ?></a>
|
153 |
+
</p>
|
154 |
+
</div>
|
155 |
+
<?php } ?>
|
156 |
|
157 |
+
<?php } else {
|
158 |
+
$tr_extend_cta = alm_get_addon( 'theme-repeaters' );
|
159 |
+
if ( $tr_extend_cta ) {
|
160 |
+
echo alm_display_featured_addon( $tr_extend_cta, 'Upgrade Now');
|
161 |
+
}
|
162 |
+
} ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
|
164 |
+
<?php } else { ?>
|
165 |
+
|
166 |
+
<!-- Repeaters -->
|
167 |
<?php
|
168 |
if (has_action('alm_custom_repeaters') || has_action('alm_unlimited_repeaters')){ ?>
|
169 |
<span class="toggle-all" role="button" tabindex="0">
|
288 |
</div>
|
289 |
<!-- End Default Template -->
|
290 |
|
|
|
291 |
<!-- Custom Repeaters -->
|
292 |
+
<?php
|
293 |
+
if ( ! has_action( 'alm_get_unlimited_repeaters' ) && ! has_action( 'alm_get_custom_repeaters' ) ) {
|
294 |
+
// If Custom Repeaters & Theme Repeaters is NOT installed.
|
295 |
+
echo '<div class="alm-row" style="padding-top: 15px;">';
|
296 |
+
require_once ALM_PATH . 'admin/includes/cta/extend.php';
|
297 |
+
echo '</div>';
|
298 |
+
}
|
299 |
+
// Custom Repeaters V1.
|
300 |
+
if ( has_action( 'alm_custom_repeaters' ) ) {
|
301 |
+
do_action( 'alm_custom_repeaters' );
|
302 |
+
}
|
303 |
+
// Custom Repeaters V2.
|
304 |
+
if ( has_action( 'alm_unlimited_repeaters' ) ) {
|
305 |
+
do_action( 'alm_unlimited_repeaters' );
|
306 |
+
}
|
|
|
|
|
|
|
|
|
307 |
?>
|
308 |
|
309 |
<script>
|
467 |
|
468 |
});
|
469 |
</script>
|
|
|
|
|
470 |
<!-- End Repeaters -->
|
471 |
+
<?php } ?>
|
472 |
|
473 |
+
</div>
|
474 |
|
475 |
</div>
|
476 |
|
admin/views/shortcode-builder.php
CHANGED
@@ -1,23 +1,26 @@
|
|
|
|
|
|
|
|
1 |
<div class="admin ajax-load-more shortcode-builder" id="alm-builder">
|
2 |
<div class="wrap main-cnkt-wrap">
|
3 |
-
|
4 |
<header class="header-wrap">
|
5 |
<h1>
|
6 |
<?php echo ALM_TITLE; ?>: <strong><?php _e('Shortcode Builder', 'ajax-load-more'); ?></strong>
|
7 |
<em><?php _e('Create your own Ajax Load More <a href="http://en.support.wordpress.com/shortcodes/" target="_blank">shortcode</a> by adjusting the values below', 'ajax-load-more'); ?></em>
|
8 |
</h1>
|
9 |
-
<?php alm_render_transient_notification(); ?>
|
10 |
</header>
|
11 |
-
|
12 |
<div class="ajax-load-more-inner-wrapper">
|
13 |
-
|
14 |
-
<div class="cnkt-main">
|
15 |
<form id="alm-shortcode-builder-form">
|
16 |
-
<?php
|
17 |
</form>
|
18 |
<p class="back2top"><a href="#wpcontent" class="group no-shadow"><i class="fa fa-angle-up"></i> <?php _e('Back to Top', 'ajax-load-more'); ?></a></p>
|
19 |
</div>
|
20 |
-
|
21 |
<aside class="cnkt-sidebar">
|
22 |
<div id="cnkt-sticky-wrapper" class="table-of-contents">
|
23 |
<div id="cnkt-sticky">
|
@@ -31,20 +34,20 @@
|
|
31 |
<div class="cta-inner">
|
32 |
<p><?php _e('Place the following shortcode into the content editor or widget area of your theme.', 'ajax-load-more'); ?></p>
|
33 |
<div class="output-wrap">
|
34 |
-
<
|
35 |
-
</div>
|
36 |
</div>
|
37 |
<div class="major-publishing-actions">
|
38 |
-
<a class="button button-primary copy copy-to-clipboard"><?php _e('Copy Shortcode', 'ajax-load-more'); ?></a>
|
39 |
<p class="small reset-shortcode-builder"><a href="javascript:void(0);"><i class="fa fa-refresh"></i> <?php _e('Reset', 'ajax-load-more'); ?></a></p>
|
40 |
</div>
|
41 |
</div>
|
42 |
</div>
|
43 |
</div>
|
44 |
-
</aside>
|
45 |
-
|
46 |
-
<div class="clear"></div>
|
47 |
</div>
|
48 |
-
|
49 |
</div>
|
50 |
</div>
|
1 |
+
<?php
|
2 |
+
// @codingStandardsIgnoreStart
|
3 |
+
?>
|
4 |
<div class="admin ajax-load-more shortcode-builder" id="alm-builder">
|
5 |
<div class="wrap main-cnkt-wrap">
|
6 |
+
|
7 |
<header class="header-wrap">
|
8 |
<h1>
|
9 |
<?php echo ALM_TITLE; ?>: <strong><?php _e('Shortcode Builder', 'ajax-load-more'); ?></strong>
|
10 |
<em><?php _e('Create your own Ajax Load More <a href="http://en.support.wordpress.com/shortcodes/" target="_blank">shortcode</a> by adjusting the values below', 'ajax-load-more'); ?></em>
|
11 |
</h1>
|
12 |
+
<?php alm_render_transient_notification(); ?>
|
13 |
</header>
|
14 |
+
|
15 |
<div class="ajax-load-more-inner-wrapper">
|
16 |
+
|
17 |
+
<div class="cnkt-main stylefree">
|
18 |
<form id="alm-shortcode-builder-form">
|
19 |
+
<?php require_once ALM_PATH . 'admin/shortcode-builder/shortcode-builder.php'; ?>
|
20 |
</form>
|
21 |
<p class="back2top"><a href="#wpcontent" class="group no-shadow"><i class="fa fa-angle-up"></i> <?php _e('Back to Top', 'ajax-load-more'); ?></a></p>
|
22 |
</div>
|
23 |
+
|
24 |
<aside class="cnkt-sidebar">
|
25 |
<div id="cnkt-sticky-wrapper" class="table-of-contents">
|
26 |
<div id="cnkt-sticky">
|
34 |
<div class="cta-inner">
|
35 |
<p><?php _e('Place the following shortcode into the content editor or widget area of your theme.', 'ajax-load-more'); ?></p>
|
36 |
<div class="output-wrap">
|
37 |
+
<textarea id="shortcode_output" readonly></textarea>
|
38 |
+
</div>
|
39 |
</div>
|
40 |
<div class="major-publishing-actions">
|
41 |
+
<a class="button button-primary copy copy-to-clipboard" data-copied="<?php _e('Copied!', 'ajax-load-more'); ?>"><?php _e('Copy Shortcode', 'ajax-load-more'); ?></a>
|
42 |
<p class="small reset-shortcode-builder"><a href="javascript:void(0);"><i class="fa fa-refresh"></i> <?php _e('Reset', 'ajax-load-more'); ?></a></p>
|
43 |
</div>
|
44 |
</div>
|
45 |
</div>
|
46 |
</div>
|
47 |
+
</aside>
|
48 |
+
|
49 |
+
<div class="clear"></div>
|
50 |
</div>
|
51 |
+
|
52 |
</div>
|
53 |
</div>
|
ajax-load-more.php
CHANGED
@@ -7,13 +7,15 @@ Text Domain: ajax-load-more
|
|
7 |
Author: Darren Cooney
|
8 |
Twitter: @KaptonKaos
|
9 |
Author URI: https://connekthq.com
|
10 |
-
Version: 5.4.
|
11 |
License: GPL
|
12 |
Copyright: Darren Cooney & Connekt Media
|
13 |
*/
|
14 |
|
15 |
-
|
16 |
-
|
|
|
|
|
17 |
define( 'ALM_STORE_URL', 'https://connekthq.com' );
|
18 |
|
19 |
/**
|
@@ -182,7 +184,7 @@ if ( !class_exists('AjaxLoadMore') ) :
|
|
182 |
if ( is_admin() || apply_filters( 'alm_disable_noscript', false ) ) {
|
183 |
return false;
|
184 |
}
|
185 |
-
include_once
|
186 |
$noscript = ALM_NOSCRIPT::alm_get_noscript( $args, $container_element, $css_classes, $transition_container_classes );
|
187 |
return $noscript;
|
188 |
}
|
@@ -198,7 +200,7 @@ if ( !class_exists('AjaxLoadMore') ) :
|
|
198 |
if ( is_admin() || apply_filters( 'alm_disable_noscript', false ) ) {
|
199 |
return false;
|
200 |
}
|
201 |
-
include_once
|
202 |
$noscript = ALM_NOSCRIPT::build_noscript_paging( $query );
|
203 |
return '<noscript>' . $noscript . '</noscript>';
|
204 |
}
|
@@ -240,15 +242,14 @@ if ( !class_exists('AjaxLoadMore') ) :
|
|
240 |
*/
|
241 |
public function alm_includes() {
|
242 |
include_once ALM_PATH . 'core/functions.php'; // Load Core Functions.
|
243 |
-
include_once ALM_PATH . 'core/classes/class
|
244 |
-
include_once ALM_PATH . 'core/classes/class
|
245 |
-
include_once ALM_PATH . 'core/classes/class
|
246 |
-
include_once ALM_PATH . 'core/classes/class
|
247 |
-
include_once ALM_PATH . 'core/classes/class
|
248 |
include_once ALM_PATH . 'core/integration/elementor/elementor.php';
|
249 |
|
250 |
if ( is_admin() ) {
|
251 |
-
require_once 'admin/editor/editor.php';
|
252 |
require_once 'admin/admin.php';
|
253 |
require_once 'admin/admin-functions.php';
|
254 |
require_once 'vendor/connekt-plugin-installer/class-connekt-plugin-installer.php';
|
@@ -295,8 +296,6 @@ if ( !class_exists('AjaxLoadMore') ) :
|
|
295 |
return $links;
|
296 |
}
|
297 |
|
298 |
-
|
299 |
-
|
300 |
/**
|
301 |
* Add default image size.
|
302 |
*
|
@@ -306,14 +305,12 @@ if ( !class_exists('AjaxLoadMore') ) :
|
|
306 |
add_image_size( 'alm-thumbnail', 150, 150, true );
|
307 |
}
|
308 |
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
*/
|
316 |
-
public function alm_enqueue_scripts() {
|
317 |
|
318 |
// Get ALM Options.
|
319 |
$options = get_option( 'alm_settings' );
|
@@ -360,33 +357,30 @@ if ( !class_exists('AjaxLoadMore') ) :
|
|
360 |
);
|
361 |
}
|
362 |
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
}
|
373 |
-
|
374 |
-
/**
|
375 |
-
* Return the ALM shortcode atts.
|
376 |
-
*
|
377 |
-
* @since 3.2.0
|
378 |
-
*/
|
379 |
-
public static function alm_return_shortcode_atts(){
|
380 |
-
return self::$shortcode_atts;
|
381 |
-
}
|
382 |
-
|
383 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
384 |
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
public function alm_query_posts() {
|
391 |
|
392 |
// WPML fix for category/tag/taxonomy archives
|
@@ -478,13 +472,14 @@ if ( !class_exists('AjaxLoadMore') ) :
|
|
478 |
|
479 |
// Set up initial WP_Query $args.
|
480 |
$args = ALM_QUERY_ARGS::alm_build_queryargs( $_GET, true );
|
481 |
-
|
|
|
482 |
$args['offset'] = $offset + ($posts_per_page*$page);
|
483 |
|
484 |
// Get current page number for determining item number.
|
485 |
$alm_page_count = ($page == 0) ? 1 : $page + 1;
|
486 |
|
487 |
-
|
488 |
* Single Post Add-on hook
|
489 |
* Hijack $args and and return single post only $args
|
490 |
*
|
@@ -492,36 +487,35 @@ if ( !class_exists('AjaxLoadMore') ) :
|
|
492 |
*/
|
493 |
$args = ( $single_post && has_action( 'alm_single_post_installed' ) ) ? apply_filters( 'alm_single_post_args', $single_post_id, $postType ) : $args;
|
494 |
|
495 |
-
|
496 |
* ALM Core Query Filter Hook
|
497 |
*
|
498 |
* @return $args;
|
499 |
-
*
|
500 |
*/
|
501 |
$args = apply_filters( 'alm_modify_query_args', $args, $slug );
|
502 |
|
503 |
-
|
504 |
* ALM Core Query Filter Hook
|
505 |
*
|
506 |
* @return $args;
|
507 |
*/
|
508 |
$args = apply_filters( 'alm_query_args_'. $id, $args, $post_id );
|
509 |
|
510 |
-
|
511 |
* Custom `alm_query` parameter in the WP_Query
|
512 |
* Value is accessed elsewhere for filters & hooks etc.
|
513 |
*/
|
514 |
$args['alm_query'] = ( $single_post ) ? 'single_posts' : 'alm';
|
515 |
|
516 |
-
|
517 |
* Custom WP_Query.
|
518 |
*
|
519 |
* @return $alm_query;
|
520 |
*/
|
521 |
$alm_query = new WP_Query( $args );
|
522 |
|
523 |
-
|
524 |
-
/*
|
525 |
* ALM Core Filter Hook to modify the returned query
|
526 |
*
|
527 |
* @return $alm_query;
|
@@ -541,11 +535,8 @@ if ( !class_exists('AjaxLoadMore') ) :
|
|
541 |
$alm_loop_count = 0;
|
542 |
}
|
543 |
|
544 |
-
|
545 |
-
* Cache Add-on hook
|
546 |
-
* Create cache directory + info .txt file
|
547 |
-
*
|
548 |
-
* @return null
|
549 |
*/
|
550 |
if(!empty($cache_id) && has_action('alm_cache_create_dir') && $do_create_cache){
|
551 |
apply_filters('alm_cache_create_dir', $cache_id, $canonical_url);
|
@@ -555,13 +546,17 @@ if ( !class_exists('AjaxLoadMore') ) :
|
|
555 |
$cache_id = apply_filters('alm_cache_create_nested_id', $cache_id);
|
556 |
apply_filters('alm_cache_create_dir', $cache_id, $_SERVER["HTTP_REFERER"]);
|
557 |
}
|
558 |
-
|
559 |
}
|
560 |
|
|
|
|
|
|
|
|
|
|
|
561 |
|
562 |
-
|
563 |
|
564 |
-
|
565 |
* ALM Core Filter Hook
|
566 |
*
|
567 |
* @return $alm_query/false;
|
@@ -592,32 +587,20 @@ if ( !class_exists('AjaxLoadMore') ) :
|
|
592 |
$alm_page = $alm_page_count; // Get page number
|
593 |
$alm_item = ($alm_page_count * $posts_per_page) - $posts_per_page + $alm_loop_count; // Get current item
|
594 |
|
595 |
-
// Call to Action [Before]
|
596 |
if($cta && has_action('alm_cta_inc') && $cta_pos === 'before' && in_array($alm_current, $cta_array)){
|
597 |
do_action('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, false);
|
598 |
$alm_has_cta = true;
|
599 |
}
|
600 |
-
// End Call to Action [Before]
|
601 |
|
602 |
-
|
603 |
-
|
604 |
-
// Theme Repeater
|
605 |
-
do_action('alm_get_theme_repeater', $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current);
|
606 |
|
607 |
-
|
608 |
-
else{
|
609 |
-
// Default Repeaters
|
610 |
-
include(alm_get_current_repeater($repeater, $type));
|
611 |
-
|
612 |
-
}
|
613 |
-
// End Repeater Template
|
614 |
-
|
615 |
-
// Call to Action [After]
|
616 |
if($cta && has_action('alm_cta_inc') && $cta_pos === 'after' && in_array($alm_current, $cta_array)){
|
617 |
do_action('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, false);
|
618 |
$alm_has_cta = true;
|
619 |
}
|
620 |
-
// End Call to Action [After]
|
621 |
|
622 |
endwhile; wp_reset_query();
|
623 |
// End ALM Loop
|
@@ -625,15 +608,12 @@ if ( !class_exists('AjaxLoadMore') ) :
|
|
625 |
$data = ob_get_clean();
|
626 |
|
627 |
|
628 |
-
|
629 |
-
* Cache Add-on hook
|
630 |
-
* If Cache is enabled, check the cache file
|
631 |
*
|
632 |
* @param $cache_id String ID of the ALM cache
|
633 |
* @param $do_create_cache Boolean Should cache be created for this user
|
634 |
-
*
|
635 |
-
* @updated 3.2.1
|
636 |
-
* @return null
|
637 |
*/
|
638 |
if(!empty($cache_id) && has_action('alm_cache_installed') && $do_create_cache){
|
639 |
if($single_post){
|
@@ -669,7 +649,6 @@ if ( !class_exists('AjaxLoadMore') ) :
|
|
669 |
wp_send_json($return);
|
670 |
|
671 |
} else {
|
672 |
-
|
673 |
$return = array(
|
674 |
'html' => null,
|
675 |
'meta' => array(
|
@@ -678,36 +657,19 @@ if ( !class_exists('AjaxLoadMore') ) :
|
|
678 |
'debug' => $debug
|
679 |
)
|
680 |
);
|
681 |
-
|
682 |
-
wp_send_json($return);
|
683 |
|
684 |
}
|
685 |
-
|
686 |
-
}
|
687 |
-
|
688 |
-
elseif($queryType === 'totalposts'){ // Paging add-on
|
689 |
-
|
690 |
-
// Paging add-on
|
691 |
-
wp_send_json(array(
|
692 |
-
'totalposts' => $alm_total_posts
|
693 |
-
));
|
694 |
-
|
695 |
}
|
696 |
-
|
697 |
wp_die();
|
698 |
-
|
699 |
}
|
700 |
-
|
701 |
}
|
702 |
|
703 |
-
|
704 |
-
|
705 |
/**
|
706 |
* The main function responsible for returning the one true AjaxLoadMore instance.
|
707 |
*
|
708 |
* @since 2.0.0
|
709 |
*/
|
710 |
-
|
711 |
function AjaxLoadMore(){
|
712 |
global $ajax_load_more;
|
713 |
if( !isset($ajax_load_more) ){
|
@@ -715,9 +677,6 @@ if ( !class_exists('AjaxLoadMore') ) :
|
|
715 |
}
|
716 |
return $ajax_load_more;
|
717 |
}
|
718 |
-
|
719 |
AjaxLoadMore(); // initialize
|
720 |
|
721 |
-
|
722 |
-
|
723 |
endif; // class_exists check
|
7 |
Author: Darren Cooney
|
8 |
Twitter: @KaptonKaos
|
9 |
Author URI: https://connekthq.com
|
10 |
+
Version: 5.4.2
|
11 |
License: GPL
|
12 |
Copyright: Darren Cooney & Connekt Media
|
13 |
*/
|
14 |
|
15 |
+
// @codingStandardsIgnoreStart
|
16 |
+
|
17 |
+
define( 'ALM_VERSION', '5.4.2' );
|
18 |
+
define( 'ALM_RELEASE', 'January 3, 2021' );
|
19 |
define( 'ALM_STORE_URL', 'https://connekthq.com' );
|
20 |
|
21 |
/**
|
184 |
if ( is_admin() || apply_filters( 'alm_disable_noscript', false ) ) {
|
185 |
return false;
|
186 |
}
|
187 |
+
include_once ALM_PATH . 'core/classes/class-alm-noscript.php'; // Load Noscript Class.
|
188 |
$noscript = ALM_NOSCRIPT::alm_get_noscript( $args, $container_element, $css_classes, $transition_container_classes );
|
189 |
return $noscript;
|
190 |
}
|
200 |
if ( is_admin() || apply_filters( 'alm_disable_noscript', false ) ) {
|
201 |
return false;
|
202 |
}
|
203 |
+
include_once ALM_PATH . 'core/classes/class-alm-noscript.php'; // Load Noscript Class.
|
204 |
$noscript = ALM_NOSCRIPT::build_noscript_paging( $query );
|
205 |
return '<noscript>' . $noscript . '</noscript>';
|
206 |
}
|
242 |
*/
|
243 |
public function alm_includes() {
|
244 |
include_once ALM_PATH . 'core/functions.php'; // Load Core Functions.
|
245 |
+
include_once ALM_PATH . 'core/classes/class-alm-shortcode.php'; // Load Shortcode Class.
|
246 |
+
include_once ALM_PATH . 'core/classes/class-alm-woocommerce.php'; // Load Woocommerce Class.
|
247 |
+
include_once ALM_PATH . 'core/classes/class-alm-enqueue.php'; // Load Enqueue Class.
|
248 |
+
include_once ALM_PATH . 'core/classes/class-alm-queryargs.php'; // Load Query Args Class.
|
249 |
+
include_once ALM_PATH . 'core/classes/class-alm-localize.php'; // Load Localize Class.
|
250 |
include_once ALM_PATH . 'core/integration/elementor/elementor.php';
|
251 |
|
252 |
if ( is_admin() ) {
|
|
|
253 |
require_once 'admin/admin.php';
|
254 |
require_once 'admin/admin-functions.php';
|
255 |
require_once 'vendor/connekt-plugin-installer/class-connekt-plugin-installer.php';
|
296 |
return $links;
|
297 |
}
|
298 |
|
|
|
|
|
299 |
/**
|
300 |
* Add default image size.
|
301 |
*
|
305 |
add_image_size( 'alm-thumbnail', 150, 150, true );
|
306 |
}
|
307 |
|
308 |
+
/**
|
309 |
+
* Enqueue scripts and create localized variables.
|
310 |
+
*
|
311 |
+
* @since 2.0.0
|
312 |
+
*/
|
313 |
+
public function alm_enqueue_scripts() {
|
|
|
|
|
314 |
|
315 |
// Get ALM Options.
|
316 |
$options = get_option( 'alm_settings' );
|
357 |
);
|
358 |
}
|
359 |
|
360 |
+
/**
|
361 |
+
* The AjaxLoadMore shortcode.
|
362 |
+
*
|
363 |
+
* @since 2.0.0
|
364 |
+
*/
|
365 |
+
public static function alm_shortcode( $atts ) {
|
366 |
+
self::$shortcode_atts = $atts;
|
367 |
+
return ALM_SHORTCODE::alm_render_shortcode( $atts );
|
368 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
369 |
|
370 |
+
/**
|
371 |
+
* Return the ALM shortcode atts.
|
372 |
+
*
|
373 |
+
* @since 3.2.0
|
374 |
+
*/
|
375 |
+
public static function alm_return_shortcode_atts() {
|
376 |
+
return self::$shortcode_atts;
|
377 |
+
}
|
378 |
|
379 |
+
/**
|
380 |
+
* Core Ajax Load More Query.
|
381 |
+
*
|
382 |
+
* @since 2.0.0
|
383 |
+
*/
|
384 |
public function alm_query_posts() {
|
385 |
|
386 |
// WPML fix for category/tag/taxonomy archives
|
472 |
|
473 |
// Set up initial WP_Query $args.
|
474 |
$args = ALM_QUERY_ARGS::alm_build_queryargs( $_GET, true );
|
475 |
+
|
476 |
+
$args['paged'] = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
|
477 |
$args['offset'] = $offset + ($posts_per_page*$page);
|
478 |
|
479 |
// Get current page number for determining item number.
|
480 |
$alm_page_count = ($page == 0) ? 1 : $page + 1;
|
481 |
|
482 |
+
/**
|
483 |
* Single Post Add-on hook
|
484 |
* Hijack $args and and return single post only $args
|
485 |
*
|
487 |
*/
|
488 |
$args = ( $single_post && has_action( 'alm_single_post_installed' ) ) ? apply_filters( 'alm_single_post_args', $single_post_id, $postType ) : $args;
|
489 |
|
490 |
+
/**
|
491 |
* ALM Core Query Filter Hook
|
492 |
*
|
493 |
* @return $args;
|
494 |
+
* @deprecated 2.10
|
495 |
*/
|
496 |
$args = apply_filters( 'alm_modify_query_args', $args, $slug );
|
497 |
|
498 |
+
/**
|
499 |
* ALM Core Query Filter Hook
|
500 |
*
|
501 |
* @return $args;
|
502 |
*/
|
503 |
$args = apply_filters( 'alm_query_args_'. $id, $args, $post_id );
|
504 |
|
505 |
+
/**
|
506 |
* Custom `alm_query` parameter in the WP_Query
|
507 |
* Value is accessed elsewhere for filters & hooks etc.
|
508 |
*/
|
509 |
$args['alm_query'] = ( $single_post ) ? 'single_posts' : 'alm';
|
510 |
|
511 |
+
/**
|
512 |
* Custom WP_Query.
|
513 |
*
|
514 |
* @return $alm_query;
|
515 |
*/
|
516 |
$alm_query = new WP_Query( $args );
|
517 |
|
518 |
+
/**
|
|
|
519 |
* ALM Core Filter Hook to modify the returned query
|
520 |
*
|
521 |
* @return $alm_query;
|
535 |
$alm_loop_count = 0;
|
536 |
}
|
537 |
|
538 |
+
/**
|
539 |
+
* Cache Add-on hook - Create cache directory + info .txt file.
|
|
|
|
|
|
|
540 |
*/
|
541 |
if(!empty($cache_id) && has_action('alm_cache_create_dir') && $do_create_cache){
|
542 |
apply_filters('alm_cache_create_dir', $cache_id, $canonical_url);
|
546 |
$cache_id = apply_filters('alm_cache_create_nested_id', $cache_id);
|
547 |
apply_filters('alm_cache_create_dir', $cache_id, $_SERVER["HTTP_REFERER"]);
|
548 |
}
|
|
|
549 |
}
|
550 |
|
551 |
+
if ( $queryType === 'totalposts' ) {
|
552 |
+
// Paging add-on
|
553 |
+
wp_send_json(array(
|
554 |
+
'totalposts' => $alm_total_posts
|
555 |
+
));
|
556 |
|
557 |
+
} else {
|
558 |
|
559 |
+
/**
|
560 |
* ALM Core Filter Hook
|
561 |
*
|
562 |
* @return $alm_query/false;
|
587 |
$alm_page = $alm_page_count; // Get page number
|
588 |
$alm_item = ($alm_page_count * $posts_per_page) - $posts_per_page + $alm_loop_count; // Get current item
|
589 |
|
590 |
+
// Call to Action [Before].
|
591 |
if($cta && has_action('alm_cta_inc') && $cta_pos === 'before' && in_array($alm_current, $cta_array)){
|
592 |
do_action('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, false);
|
593 |
$alm_has_cta = true;
|
594 |
}
|
|
|
595 |
|
596 |
+
// Load Repeater
|
597 |
+
alm_loop($repeater, $type, $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, $args, false);
|
|
|
|
|
598 |
|
599 |
+
// Call to Action [After].
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
600 |
if($cta && has_action('alm_cta_inc') && $cta_pos === 'after' && in_array($alm_current, $cta_array)){
|
601 |
do_action('alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, false);
|
602 |
$alm_has_cta = true;
|
603 |
}
|
|
|
604 |
|
605 |
endwhile; wp_reset_query();
|
606 |
// End ALM Loop
|
608 |
$data = ob_get_clean();
|
609 |
|
610 |
|
611 |
+
/**
|
612 |
+
* Cache Add-on hook - If Cache is enabled, check the cache file
|
|
|
613 |
*
|
614 |
* @param $cache_id String ID of the ALM cache
|
615 |
* @param $do_create_cache Boolean Should cache be created for this user
|
616 |
+
* @since 3.2.1
|
|
|
|
|
617 |
*/
|
618 |
if(!empty($cache_id) && has_action('alm_cache_installed') && $do_create_cache){
|
619 |
if($single_post){
|
649 |
wp_send_json($return);
|
650 |
|
651 |
} else {
|
|
|
652 |
$return = array(
|
653 |
'html' => null,
|
654 |
'meta' => array(
|
657 |
'debug' => $debug
|
658 |
)
|
659 |
);
|
660 |
+
wp_send_json($return);
|
|
|
661 |
|
662 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
663 |
}
|
|
|
664 |
wp_die();
|
|
|
665 |
}
|
|
|
666 |
}
|
667 |
|
|
|
|
|
668 |
/**
|
669 |
* The main function responsible for returning the one true AjaxLoadMore instance.
|
670 |
*
|
671 |
* @since 2.0.0
|
672 |
*/
|
|
|
673 |
function AjaxLoadMore(){
|
674 |
global $ajax_load_more;
|
675 |
if( !isset($ajax_load_more) ){
|
677 |
}
|
678 |
return $ajax_load_more;
|
679 |
}
|
|
|
680 |
AjaxLoadMore(); // initialize
|
681 |
|
|
|
|
|
682 |
endif; // class_exists check
|
core/classes/{class.alm-enqueue.php → class-alm-enqueue.php}
RENAMED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Ajax Load More Enqueue
|
4 |
*
|
5 |
-
*
|
6 |
-
*
|
7 |
-
* @author Darren Cooney
|
8 |
* @since 2.10.1
|
9 |
*/
|
10 |
|
|
|
|
|
11 |
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
exit;
|
13 |
}
|
@@ -16,8 +16,6 @@ if( !class_exists('ALM_ENQUEUE') ):
|
|
16 |
|
17 |
class ALM_ENQUEUE {
|
18 |
|
19 |
-
|
20 |
-
|
21 |
/**
|
22 |
* alm_enqueue_css
|
23 |
*
|
@@ -56,9 +54,9 @@ if( !class_exists('ALM_ENQUEUE') ):
|
|
56 |
// Enqueue $file
|
57 |
wp_enqueue_style( $name, $file );
|
58 |
}
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
/**
|
63 |
* alm_inline_css
|
64 |
*
|
@@ -67,12 +65,12 @@ if( !class_exists('ALM_ENQUEUE') ):
|
|
67 |
*
|
68 |
* @param $name Enqueue filename
|
69 |
* @param $file Path to file
|
70 |
-
* @param $url_path URL to plugin directory
|
71 |
* @since 2.3.1
|
72 |
* @return $contents
|
73 |
*/
|
74 |
public static function alm_inline_css($name, $file, $url_path){
|
75 |
-
|
76 |
$css = '';
|
77 |
$css_path = '';
|
78 |
$dir = 'alm';
|
@@ -100,27 +98,27 @@ if( !class_exists('ALM_ENQUEUE') ):
|
|
100 |
$file = $css_path;
|
101 |
$core_alm_css = false;
|
102 |
}
|
103 |
-
}
|
104 |
-
|
105 |
-
if(file_exists($file)){
|
106 |
$css_file = file_get_contents( $file );
|
107 |
-
|
108 |
// If using core CSS, replace the `../..` path in the CSS file.
|
109 |
if($core_alm_css){
|
110 |
-
|
111 |
$new_img_path = $url_path .'/core';
|
112 |
-
|
113 |
// Find and replace strings in CSS
|
114 |
$css_file = str_replace('../..', $new_img_path, $css_file);
|
115 |
-
|
116 |
}
|
117 |
-
|
118 |
$contents = '<style type="text/css">' . $css_file . '</style>';
|
119 |
}
|
120 |
-
|
121 |
return $contents;
|
122 |
-
|
123 |
-
}
|
124 |
|
125 |
}
|
126 |
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Ajax Load More Enqueue scripts class.
|
4 |
*
|
5 |
+
* @package ajaxloadmore
|
|
|
|
|
6 |
* @since 2.10.1
|
7 |
*/
|
8 |
|
9 |
+
// @codingStandardsIgnoreStart
|
10 |
+
|
11 |
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
exit;
|
13 |
}
|
16 |
|
17 |
class ALM_ENQUEUE {
|
18 |
|
|
|
|
|
19 |
/**
|
20 |
* alm_enqueue_css
|
21 |
*
|
54 |
// Enqueue $file
|
55 |
wp_enqueue_style( $name, $file );
|
56 |
}
|
57 |
+
|
58 |
+
|
59 |
+
|
60 |
/**
|
61 |
* alm_inline_css
|
62 |
*
|
65 |
*
|
66 |
* @param $name Enqueue filename
|
67 |
* @param $file Path to file
|
68 |
+
* @param $url_path URL to plugin directory
|
69 |
* @since 2.3.1
|
70 |
* @return $contents
|
71 |
*/
|
72 |
public static function alm_inline_css($name, $file, $url_path){
|
73 |
+
|
74 |
$css = '';
|
75 |
$css_path = '';
|
76 |
$dir = 'alm';
|
98 |
$file = $css_path;
|
99 |
$core_alm_css = false;
|
100 |
}
|
101 |
+
}
|
102 |
+
|
103 |
+
if(file_exists($file)){
|
104 |
$css_file = file_get_contents( $file );
|
105 |
+
|
106 |
// If using core CSS, replace the `../..` path in the CSS file.
|
107 |
if($core_alm_css){
|
108 |
+
|
109 |
$new_img_path = $url_path .'/core';
|
110 |
+
|
111 |
// Find and replace strings in CSS
|
112 |
$css_file = str_replace('../..', $new_img_path, $css_file);
|
113 |
+
|
114 |
}
|
115 |
+
|
116 |
$contents = '<style type="text/css">' . $css_file . '</style>';
|
117 |
}
|
118 |
+
|
119 |
return $contents;
|
120 |
+
|
121 |
+
}
|
122 |
|
123 |
}
|
124 |
|
core/classes/{class.alm-localize.php → class-alm-localize.php}
RENAMED
@@ -1,12 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* ALM_LOCALIZE
|
4 |
* A class for adding localize ALM JS variables to the screen.
|
5 |
*
|
6 |
-
* @
|
7 |
* @since 3.7
|
8 |
*/
|
9 |
|
|
|
|
|
10 |
if (!defined( 'ABSPATH')){
|
11 |
exit;
|
12 |
}
|
@@ -14,10 +15,9 @@ if (!defined( 'ABSPATH')){
|
|
14 |
if(!class_exists('ALM_LOCALIZE')):
|
15 |
|
16 |
class ALM_LOCALIZE {
|
17 |
-
|
18 |
-
|
19 |
static $vars = array();
|
20 |
-
|
21 |
/**
|
22 |
* add_localized_var
|
23 |
* Create <script> variables for use with Preloaded addon
|
@@ -29,16 +29,14 @@ if(!class_exists('ALM_LOCALIZE')):
|
|
29 |
* @since 3.7
|
30 |
*/
|
31 |
public static function add_localized_var($key = '', $value = '', $id = 'ajax-load-more', $position = ''){
|
32 |
-
|
33 |
if($position){
|
34 |
self::$vars[$id][$position][$key] = $value; // Add key & val
|
35 |
} else {
|
36 |
self::$vars[$id][$key] = $value; // Add key & val
|
37 |
}
|
38 |
}
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
/**
|
43 |
* create_script_vars
|
44 |
* Create <script> variables for use with Preloaded addon
|
@@ -49,13 +47,13 @@ if(!class_exists('ALM_LOCALIZE')):
|
|
49 |
*/
|
50 |
public static function create_script_vars($id){
|
51 |
if(!empty(self::$vars) && isset(self::$vars[$id]) && is_array(self::$vars[$id])){
|
52 |
-
|
53 |
// Render wp_localize_script vars with 'ajax-load-more' script handle.
|
54 |
wp_localize_script( 'ajax-load-more', alm_convert_dashes_to_underscore($id) .'_vars', self::$vars[$id] );
|
55 |
-
|
56 |
}
|
57 |
}
|
58 |
-
|
59 |
}
|
60 |
-
|
61 |
-
endif;
|
1 |
<?php
|
2 |
/**
|
|
|
3 |
* A class for adding localize ALM JS variables to the screen.
|
4 |
*
|
5 |
+
* @package ajaxloadmore
|
6 |
* @since 3.7
|
7 |
*/
|
8 |
|
9 |
+
// @codingStandardsIgnoreStart
|
10 |
+
|
11 |
if (!defined( 'ABSPATH')){
|
12 |
exit;
|
13 |
}
|
15 |
if(!class_exists('ALM_LOCALIZE')):
|
16 |
|
17 |
class ALM_LOCALIZE {
|
18 |
+
|
|
|
19 |
static $vars = array();
|
20 |
+
|
21 |
/**
|
22 |
* add_localized_var
|
23 |
* Create <script> variables for use with Preloaded addon
|
29 |
* @since 3.7
|
30 |
*/
|
31 |
public static function add_localized_var($key = '', $value = '', $id = 'ajax-load-more', $position = ''){
|
32 |
+
|
33 |
if($position){
|
34 |
self::$vars[$id][$position][$key] = $value; // Add key & val
|
35 |
} else {
|
36 |
self::$vars[$id][$key] = $value; // Add key & val
|
37 |
}
|
38 |
}
|
39 |
+
|
|
|
|
|
40 |
/**
|
41 |
* create_script_vars
|
42 |
* Create <script> variables for use with Preloaded addon
|
47 |
*/
|
48 |
public static function create_script_vars($id){
|
49 |
if(!empty(self::$vars) && isset(self::$vars[$id]) && is_array(self::$vars[$id])){
|
50 |
+
|
51 |
// Render wp_localize_script vars with 'ajax-load-more' script handle.
|
52 |
wp_localize_script( 'ajax-load-more', alm_convert_dashes_to_underscore($id) .'_vars', self::$vars[$id] );
|
53 |
+
|
54 |
}
|
55 |
}
|
56 |
+
|
57 |
}
|
58 |
+
|
59 |
+
endif;
|
core/classes/{class.alm-noscript.php → class-alm-noscript.php}
RENAMED
@@ -1,12 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* ALM_NOSCRIPT
|
4 |
* Class that generates a wp_query for injection into <noscript />.
|
5 |
*
|
6 |
-
* @
|
7 |
* @since 3.7
|
8 |
*/
|
9 |
|
|
|
|
|
10 |
if (!defined( 'ABSPATH')){
|
11 |
exit;
|
12 |
}
|
@@ -14,10 +15,10 @@ if (!defined( 'ABSPATH')){
|
|
14 |
if(!class_exists('ALM_NOSCRIPT')):
|
15 |
|
16 |
class ALM_NOSCRIPT {
|
17 |
-
|
18 |
static $element = 'noscript';
|
19 |
-
|
20 |
-
|
21 |
/**
|
22 |
* alm_get_noscript
|
23 |
* This function will return a generated query for the noscript.
|
@@ -26,64 +27,64 @@ if(!class_exists('ALM_NOSCRIPT')):
|
|
26 |
* @param $q array
|
27 |
* @param $container string
|
28 |
* @return <noscript>
|
29 |
-
*/
|
30 |
public static function alm_get_noscript($q, $container = 'ul', $css_classes = '', $transition_container_classes = ''){
|
31 |
-
|
32 |
$paged = ($q['paged']) ? $q['paged'] : 1;
|
33 |
-
|
34 |
// Comments
|
35 |
-
if($q['comments']){
|
36 |
if(has_action('alm_comments_installed') && $q['comments']){
|
37 |
// SEO does not support comments at this time
|
38 |
}
|
39 |
}
|
40 |
-
|
41 |
-
|
42 |
// Users
|
43 |
-
elseif($q['users']){
|
44 |
-
|
45 |
-
if(has_action('alm_users_preloaded') && $q['users']){
|
46 |
-
|
47 |
// Encrypt User Role
|
48 |
if(!empty($q['users_role']) && function_exists('alm_role_encrypt')){
|
49 |
$q['users_role'] = alm_role_encrypt($q['users_role']);
|
50 |
}
|
51 |
-
|
52 |
// Update offset
|
53 |
$q['offset'] = ALM_NOSCRIPT::set_offset($paged, $q['users_per_page'], $q['offset']);
|
54 |
-
|
55 |
// Build output
|
56 |
$output = apply_filters('alm_users_preloaded', $q, $q['users_per_page'], $q['repeater'], $q['theme_repeater']); // located in Users add-on
|
57 |
-
|
58 |
return ALM_NOSCRIPT::render($output['data'], $container, '', $css_classes, $transition_container_classes);
|
59 |
}
|
60 |
-
|
61 |
-
}
|
62 |
-
|
63 |
|
64 |
// Advanced Custom Fields (Repeater, Gallery, Flex Content
|
65 |
-
elseif($q['acf'] && ($q['acf_field_type'] !== 'relationship')){
|
66 |
if(has_action('alm_acf_installed') && $q['acf']){
|
67 |
-
|
68 |
// Update offset
|
69 |
$q['offset'] = ALM_NOSCRIPT::set_offset($paged, $q['posts_per_page'], $q['offset']);
|
70 |
-
|
71 |
// Build output
|
72 |
$output = apply_filters('alm_acf_preloaded', $q, $q['repeater'], $q['theme_repeater']); //located in ACF add-on
|
73 |
-
|
74 |
return ALM_NOSCRIPT::render($output, $container, '', $css_classes, $transition_container_classes);
|
75 |
}
|
76 |
}
|
77 |
-
|
78 |
-
|
79 |
// Standard ALM
|
80 |
-
else {
|
81 |
-
|
82 |
-
|
83 |
// Build the $args array to use with this WP_Query
|
84 |
$query_args = ALM_QUERY_ARGS::alm_build_queryargs($q, false);
|
85 |
-
|
86 |
-
|
87 |
/*
|
88 |
* alm_query_args_[id]
|
89 |
*
|
@@ -92,48 +93,48 @@ if(!class_exists('ALM_NOSCRIPT')):
|
|
92 |
* @return $query_args;
|
93 |
*/
|
94 |
$query_args = apply_filters('alm_query_args_'.$q['id'], $query_args, $q['post_id']);
|
95 |
-
|
96 |
-
|
97 |
-
// Get Per Page param
|
98 |
$posts_per_page = $query_args['posts_per_page'];
|
99 |
-
|
100 |
-
|
101 |
// Get Repeater Template type
|
102 |
$type = alm_get_repeater_type($q['repeater']);
|
103 |
-
|
104 |
-
|
105 |
-
// Update offset
|
106 |
$query_args['paged'] = $paged;
|
107 |
-
$query_args['offset'] = ALM_NOSCRIPT::set_offset($paged, $posts_per_page, $q['offset']);
|
108 |
-
|
109 |
$output = '';
|
110 |
$i = 0;
|
111 |
-
|
112 |
$noscript_query = new WP_Query($query_args);
|
113 |
-
|
114 |
-
if($noscript_query->have_posts()) :
|
115 |
-
|
116 |
$alm_found_posts = $noscript_query->found_posts;
|
117 |
-
$alm_page = $paged;
|
118 |
-
|
119 |
while ($noscript_query->have_posts()) : $noscript_query->the_post();
|
120 |
$i++;
|
121 |
$alm_current = $i;
|
122 |
$alm_item = $query_args['offset'] + $i;
|
123 |
-
|
124 |
-
$output .= alm_loop($q['repeater'], $type, $q['theme_repeater'], $alm_found_posts, $alm_page, $alm_item, $alm_current);
|
125 |
-
|
126 |
endwhile; wp_reset_query();
|
127 |
-
|
128 |
-
endif;
|
129 |
-
|
130 |
-
$paging = ALM_NOSCRIPT::build_noscript_paging($noscript_query);
|
131 |
-
|
132 |
-
return ALM_NOSCRIPT::render($output, $container, $paging, $css_classes, $transition_container_classes);
|
133 |
-
|
134 |
}
|
135 |
-
|
136 |
-
}
|
137 |
|
138 |
|
139 |
|
@@ -145,56 +146,56 @@ if(!class_exists('ALM_NOSCRIPT')):
|
|
145 |
* @updated 3.7
|
146 |
* @since 2.8.3
|
147 |
*/
|
148 |
-
public static function build_noscript_paging($query){
|
149 |
-
|
150 |
-
$paged = (empty(get_query_var('paged'))) ? 1 : get_query_var('paged');
|
151 |
$numposts = $query->found_posts;
|
152 |
-
$max_page = $query->max_num_pages;
|
153 |
-
$posts_per_page = $query->query_vars['posts_per_page'];
|
154 |
-
$total = ceil($numposts/$posts_per_page);
|
155 |
-
|
156 |
$start_page = 1;
|
157 |
$content = '';
|
158 |
-
|
159 |
if ($total > 1) {
|
160 |
-
|
161 |
$content .= '<div class="alm-paging" style="opacity: 1">';
|
162 |
-
|
163 |
$content .= __('Pages: ', 'ajax-load-more');
|
164 |
-
|
165 |
// First Page
|
166 |
if ($paged >= 2) {
|
167 |
$first_page_text = __('First Page', 'ajax-load-more');
|
168 |
$content .= '<span class="page"><a href="'.get_pagenum_link(1).'">'.$first_page_text.'</a></span>';
|
169 |
}
|
170 |
-
|
171 |
// Loop pages
|
172 |
for($i = $start_page; $i <= $total; $i++) {
|
173 |
$content .= '<span class="page">';
|
174 |
if($paged === $i){
|
175 |
-
$content .= '<u>'.$i.'</u>';
|
176 |
} else {
|
177 |
-
$content .= '<a href="'.get_pagenum_link($i).'">'.$i.'</a>';
|
178 |
}
|
179 |
$content .= '</span>';
|
180 |
-
|
181 |
}
|
182 |
-
|
183 |
// Last Page
|
184 |
if ($paged != $total) {
|
185 |
$last_page_text = __('Last Page', 'ajax-load-more');
|
186 |
$content .= '<span><a href="'.get_pagenum_link($total).'">'.$last_page_text.'</a></span>';
|
187 |
}
|
188 |
-
|
189 |
$content .= '</div>';
|
190 |
}
|
191 |
-
|
192 |
return $content;
|
193 |
-
|
194 |
}
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
/**
|
199 |
* render
|
200 |
* This function will return the HTML output of the <noscript/>
|
@@ -204,13 +205,13 @@ if(!class_exists('ALM_NOSCRIPT')):
|
|
204 |
* @param $container string
|
205 |
* @param $paging string
|
206 |
* @return <noscript>
|
207 |
-
*/
|
208 |
public static function render($output, $container, $paging = '', $css_classes, $transition_container_classes){
|
209 |
-
return (!empty($output)) ? '<'. self::$element .'><'. $container .' class="alm-listing alm-noscript'. $css_classes .'"><div class="alm-reveal'. $transition_container_classes .'">'. $output .'</div></'. $container .'>'. $paging .'</'. self::$element .'>' : '';
|
210 |
-
}
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
/**
|
215 |
* set_offset
|
216 |
* This function will set the offset of the noscript query
|
@@ -223,8 +224,8 @@ if(!class_exists('ALM_NOSCRIPT')):
|
|
223 |
*/
|
224 |
public static function set_offset($paged, $per_page, $offset){
|
225 |
return ($paged * $per_page) - $per_page + $offset;
|
226 |
-
}
|
227 |
-
|
228 |
}
|
229 |
-
|
230 |
endif;
|
1 |
<?php
|
2 |
/**
|
|
|
3 |
* Class that generates a wp_query for injection into <noscript />.
|
4 |
*
|
5 |
+
* @package ajaxloadmore
|
6 |
* @since 3.7
|
7 |
*/
|
8 |
|
9 |
+
// @codingStandardsIgnoreStart
|
10 |
+
|
11 |
if (!defined( 'ABSPATH')){
|
12 |
exit;
|
13 |
}
|
15 |
if(!class_exists('ALM_NOSCRIPT')):
|
16 |
|
17 |
class ALM_NOSCRIPT {
|
18 |
+
|
19 |
static $element = 'noscript';
|
20 |
+
|
21 |
+
|
22 |
/**
|
23 |
* alm_get_noscript
|
24 |
* This function will return a generated query for the noscript.
|
27 |
* @param $q array
|
28 |
* @param $container string
|
29 |
* @return <noscript>
|
30 |
+
*/
|
31 |
public static function alm_get_noscript($q, $container = 'ul', $css_classes = '', $transition_container_classes = ''){
|
32 |
+
|
33 |
$paged = ($q['paged']) ? $q['paged'] : 1;
|
34 |
+
|
35 |
// Comments
|
36 |
+
if($q['comments']){
|
37 |
if(has_action('alm_comments_installed') && $q['comments']){
|
38 |
// SEO does not support comments at this time
|
39 |
}
|
40 |
}
|
41 |
+
|
42 |
+
|
43 |
// Users
|
44 |
+
elseif($q['users']){
|
45 |
+
|
46 |
+
if(has_action('alm_users_preloaded') && $q['users']){
|
47 |
+
|
48 |
// Encrypt User Role
|
49 |
if(!empty($q['users_role']) && function_exists('alm_role_encrypt')){
|
50 |
$q['users_role'] = alm_role_encrypt($q['users_role']);
|
51 |
}
|
52 |
+
|
53 |
// Update offset
|
54 |
$q['offset'] = ALM_NOSCRIPT::set_offset($paged, $q['users_per_page'], $q['offset']);
|
55 |
+
|
56 |
// Build output
|
57 |
$output = apply_filters('alm_users_preloaded', $q, $q['users_per_page'], $q['repeater'], $q['theme_repeater']); // located in Users add-on
|
58 |
+
|
59 |
return ALM_NOSCRIPT::render($output['data'], $container, '', $css_classes, $transition_container_classes);
|
60 |
}
|
61 |
+
|
62 |
+
}
|
63 |
+
|
64 |
|
65 |
// Advanced Custom Fields (Repeater, Gallery, Flex Content
|
66 |
+
elseif($q['acf'] && ($q['acf_field_type'] !== 'relationship')){
|
67 |
if(has_action('alm_acf_installed') && $q['acf']){
|
68 |
+
|
69 |
// Update offset
|
70 |
$q['offset'] = ALM_NOSCRIPT::set_offset($paged, $q['posts_per_page'], $q['offset']);
|
71 |
+
|
72 |
// Build output
|
73 |
$output = apply_filters('alm_acf_preloaded', $q, $q['repeater'], $q['theme_repeater']); //located in ACF add-on
|
74 |
+
|
75 |
return ALM_NOSCRIPT::render($output, $container, '', $css_classes, $transition_container_classes);
|
76 |
}
|
77 |
}
|
78 |
+
|
79 |
+
|
80 |
// Standard ALM
|
81 |
+
else {
|
82 |
+
|
83 |
+
|
84 |
// Build the $args array to use with this WP_Query
|
85 |
$query_args = ALM_QUERY_ARGS::alm_build_queryargs($q, false);
|
86 |
+
|
87 |
+
|
88 |
/*
|
89 |
* alm_query_args_[id]
|
90 |
*
|
93 |
* @return $query_args;
|
94 |
*/
|
95 |
$query_args = apply_filters('alm_query_args_'.$q['id'], $query_args, $q['post_id']);
|
96 |
+
|
97 |
+
|
98 |
+
// Get Per Page param
|
99 |
$posts_per_page = $query_args['posts_per_page'];
|
100 |
+
|
101 |
+
|
102 |
// Get Repeater Template type
|
103 |
$type = alm_get_repeater_type($q['repeater']);
|
104 |
+
|
105 |
+
|
106 |
+
// Update offset
|
107 |
$query_args['paged'] = $paged;
|
108 |
+
$query_args['offset'] = ALM_NOSCRIPT::set_offset($paged, $posts_per_page, $q['offset']);
|
109 |
+
|
110 |
$output = '';
|
111 |
$i = 0;
|
112 |
+
|
113 |
$noscript_query = new WP_Query($query_args);
|
114 |
+
|
115 |
+
if($noscript_query->have_posts()) :
|
116 |
+
|
117 |
$alm_found_posts = $noscript_query->found_posts;
|
118 |
+
$alm_page = $paged;
|
119 |
+
|
120 |
while ($noscript_query->have_posts()) : $noscript_query->the_post();
|
121 |
$i++;
|
122 |
$alm_current = $i;
|
123 |
$alm_item = $query_args['offset'] + $i;
|
124 |
+
|
125 |
+
$output .= alm_loop($q['repeater'], $type, $q['theme_repeater'], $alm_found_posts, $alm_page, $alm_item, $alm_current, $query_args);
|
126 |
+
|
127 |
endwhile; wp_reset_query();
|
128 |
+
|
129 |
+
endif;
|
130 |
+
|
131 |
+
$paging = ALM_NOSCRIPT::build_noscript_paging($noscript_query);
|
132 |
+
|
133 |
+
return ALM_NOSCRIPT::render($output, $container, $paging, $css_classes, $transition_container_classes);
|
134 |
+
|
135 |
}
|
136 |
+
|
137 |
+
}
|
138 |
|
139 |
|
140 |
|
146 |
* @updated 3.7
|
147 |
* @since 2.8.3
|
148 |
*/
|
149 |
+
public static function build_noscript_paging($query){
|
150 |
+
|
151 |
+
$paged = (empty(get_query_var('paged'))) ? 1 : get_query_var('paged');
|
152 |
$numposts = $query->found_posts;
|
153 |
+
$max_page = $query->max_num_pages;
|
154 |
+
$posts_per_page = $query->query_vars['posts_per_page'];
|
155 |
+
$total = ceil($numposts/$posts_per_page);
|
156 |
+
|
157 |
$start_page = 1;
|
158 |
$content = '';
|
159 |
+
|
160 |
if ($total > 1) {
|
161 |
+
|
162 |
$content .= '<div class="alm-paging" style="opacity: 1">';
|
163 |
+
|
164 |
$content .= __('Pages: ', 'ajax-load-more');
|
165 |
+
|
166 |
// First Page
|
167 |
if ($paged >= 2) {
|
168 |
$first_page_text = __('First Page', 'ajax-load-more');
|
169 |
$content .= '<span class="page"><a href="'.get_pagenum_link(1).'">'.$first_page_text.'</a></span>';
|
170 |
}
|
171 |
+
|
172 |
// Loop pages
|
173 |
for($i = $start_page; $i <= $total; $i++) {
|
174 |
$content .= '<span class="page">';
|
175 |
if($paged === $i){
|
176 |
+
$content .= '<u>'.$i.'</u>';
|
177 |
} else {
|
178 |
+
$content .= '<a href="'.get_pagenum_link($i).'">'.$i.'</a>';
|
179 |
}
|
180 |
$content .= '</span>';
|
181 |
+
|
182 |
}
|
183 |
+
|
184 |
// Last Page
|
185 |
if ($paged != $total) {
|
186 |
$last_page_text = __('Last Page', 'ajax-load-more');
|
187 |
$content .= '<span><a href="'.get_pagenum_link($total).'">'.$last_page_text.'</a></span>';
|
188 |
}
|
189 |
+
|
190 |
$content .= '</div>';
|
191 |
}
|
192 |
+
|
193 |
return $content;
|
194 |
+
|
195 |
}
|
196 |
+
|
197 |
+
|
198 |
+
|
199 |
/**
|
200 |
* render
|
201 |
* This function will return the HTML output of the <noscript/>
|
205 |
* @param $container string
|
206 |
* @param $paging string
|
207 |
* @return <noscript>
|
208 |
+
*/
|
209 |
public static function render($output, $container, $paging = '', $css_classes, $transition_container_classes){
|
210 |
+
return (!empty($output)) ? '<'. self::$element .'><'. $container .' class="alm-listing alm-noscript'. $css_classes .'"><div class="alm-reveal'. $transition_container_classes .'">'. $output .'</div></'. $container .'>'. $paging .'</'. self::$element .'>' : '';
|
211 |
+
}
|
212 |
+
|
213 |
+
|
214 |
+
|
215 |
/**
|
216 |
* set_offset
|
217 |
* This function will set the offset of the noscript query
|
224 |
*/
|
225 |
public static function set_offset($paged, $per_page, $offset){
|
226 |
return ($paged * $per_page) - $per_page + $offset;
|
227 |
+
}
|
228 |
+
|
229 |
}
|
230 |
+
|
231 |
endif;
|
core/classes/{class.alm-queryargs.php → class-alm-queryargs.php}
RENAMED
@@ -1,23 +1,21 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* ALM_QUERY_ARGS
|
4 |
* Generate args that pass into the ALM WP_Query
|
5 |
*
|
6 |
-
* @
|
7 |
* @since 3.7
|
8 |
*/
|
9 |
|
|
|
|
|
10 |
if ( ! defined( 'ABSPATH' ) ) {
|
11 |
exit;
|
12 |
}
|
13 |
|
14 |
-
// @codingStandardsIgnoreStart
|
15 |
-
|
16 |
if(!class_exists('ALM_QUERY_ARGS')):
|
17 |
|
18 |
class ALM_QUERY_ARGS {
|
19 |
|
20 |
-
|
21 |
/**
|
22 |
* alm_build_queryargs
|
23 |
* This function will return a generated $args array.
|
@@ -27,7 +25,6 @@ if(!class_exists('ALM_QUERY_ARGS')):
|
|
27 |
* @return $args
|
28 |
*/
|
29 |
|
30 |
-
|
31 |
public static function alm_build_queryargs($a, $is_ajax = true){
|
32 |
|
33 |
// Post ID
|
@@ -93,6 +90,9 @@ if(!class_exists('ALM_QUERY_ARGS')):
|
|
93 |
// Custom Args
|
94 |
$custom_args = (isset($a['custom_args'])) ? $a['custom_args'] : '';
|
95 |
|
|
|
|
|
|
|
96 |
// Author
|
97 |
$author_id = (isset($a['author'])) ? $a['author'] : '';
|
98 |
|
@@ -120,14 +120,13 @@ if(!class_exists('ALM_QUERY_ARGS')):
|
|
120 |
$post_status = 'publish';
|
121 |
if($post_status != 'publish' && $post_status != 'inherit'){
|
122 |
// If not 'publish', confirm user has rights to view these old posts.
|
123 |
-
if (current_user_can( 'edit_theme_options' )
|
124 |
$post_status = $post_status;
|
125 |
} else {
|
126 |
$post_status = 'publish';
|
127 |
}
|
128 |
}
|
129 |
|
130 |
-
|
131 |
// Advanced Custom Fields
|
132 |
// Only used for Relationship Field. Gallery, Repeater and Flex Content is in the ACF extension.
|
133 |
if($is_ajax){
|
@@ -141,7 +140,7 @@ if(!class_exists('ALM_QUERY_ARGS')):
|
|
141 |
|
142 |
} else {
|
143 |
// If Preloaded, $a needs to access acf data differently.
|
144 |
-
if(isset($a['acf'])){
|
145 |
if($a['acf'] === 'true'){
|
146 |
$acf_post_id = (isset($a['acf_post_id'])) ? $a['acf_post_id'] : ''; // Post ID
|
147 |
$acf_field_type = (isset($a['acf_field_type'])) ? $a['acf_field_type'] : ''; // Field Type
|
@@ -163,17 +162,16 @@ if(!class_exists('ALM_QUERY_ARGS')):
|
|
163 |
'ignore_sticky_posts' => true
|
164 |
);
|
165 |
|
166 |
-
|
167 |
// Post Format & Taxonomy
|
168 |
// * Both use tax_query, so we need to combine these queries
|
169 |
-
if(!empty($post_format) || !empty($taxonomy)){
|
170 |
|
171 |
$tax_query_total = count(explode(":", $taxonomy)); // Total $taxonomy objects
|
172 |
$taxonomy = explode(":", $taxonomy); // convert to array
|
173 |
$taxonomy_terms = explode(":", $taxonomy_terms); // convert to array
|
174 |
$taxonomy_operator = explode(":", $taxonomy_operator); // convert to array
|
175 |
|
176 |
-
if(empty($taxonomy)){
|
177 |
|
178 |
// Post Format only
|
179 |
$args['tax_query'] = array(
|
@@ -198,46 +196,46 @@ if(!class_exists('ALM_QUERY_ARGS')):
|
|
198 |
}
|
199 |
|
200 |
// Category
|
201 |
-
if(!empty($category)){
|
202 |
$args['category_name'] = $category;
|
203 |
}
|
204 |
-
if(!empty($category__and)){
|
205 |
$args['category__and'] = explode(",", $category__and);
|
206 |
}
|
207 |
|
208 |
// Category Not In
|
209 |
-
if(!empty($category__not_in)){
|
210 |
$exclude_cats = explode(",",$category__not_in);
|
211 |
$args['category__not_in'] = $exclude_cats;
|
212 |
}
|
213 |
|
214 |
// Tag
|
215 |
-
if(!empty($tag)){
|
216 |
$args['tag'] = $tag;
|
217 |
}
|
218 |
-
if(!empty($tag__and)){
|
219 |
$args['tag__and'] = explode(",", $tag__and);
|
220 |
}
|
221 |
|
222 |
// Tag Not In
|
223 |
-
if(!empty($tag__not_in)){
|
224 |
$exclude_tags = explode(",",$tag__not_in);
|
225 |
$args['tag__not_in'] = $exclude_tags;
|
226 |
}
|
227 |
|
228 |
// Date (not using date_query as there was issue with year/month archives)
|
229 |
-
if(!empty($year)){
|
230 |
$args['year'] = $year;
|
231 |
}
|
232 |
-
if(!empty($month)){
|
233 |
$args['monthnum'] = $month;
|
234 |
}
|
235 |
-
if(!empty($day)){
|
236 |
$args['day'] = $day;
|
237 |
}
|
238 |
|
239 |
// Meta Query
|
240 |
-
if(!empty($meta_key) && isset($meta_value) || !empty($meta_key) && $meta_compare !== "IN"){
|
241 |
|
242 |
// Parse multiple meta query
|
243 |
$meta_query_total = count(explode(":", $meta_key)); // Total meta_query objects
|
@@ -256,7 +254,7 @@ if(!class_exists('ALM_QUERY_ARGS')):
|
|
256 |
}
|
257 |
|
258 |
// Meta_key, used for ordering by meta value
|
259 |
-
if(!empty($meta_key)){
|
260 |
if (strpos($orderby, 'meta_value') !== false) { // Only order by meta_key, if $orderby is set to meta_value{_num}
|
261 |
$meta_key_single = explode(":", $meta_key);
|
262 |
$args['meta_key'] = $meta_key_single[0];
|
@@ -264,50 +262,43 @@ if(!class_exists('ALM_QUERY_ARGS')):
|
|
264 |
}
|
265 |
|
266 |
// Author
|
267 |
-
if(!empty($author_id)){
|
268 |
$args['author'] = $author_id;
|
269 |
}
|
270 |
|
271 |
// Search Term
|
272 |
-
if(!empty($s)){
|
273 |
$args['s'] = $s;
|
274 |
}
|
275 |
|
276 |
// Custom Args
|
277 |
-
if(!empty($custom_args)){
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
$argument = preg_replace('/\s+/', '', $argument); // Remove all whitespace
|
282 |
-
$argument = explode(":",$argument); // Split the $argument at ':'
|
283 |
-
$argument_arr = explode(",", $argument[1]); // explode $argument[1] at ','
|
284 |
-
if(sizeof($argument_arr) > 1){
|
285 |
-
$args[$argument[0]] = $argument_arr;
|
286 |
-
}else{
|
287 |
-
$args[$argument[0]] = $argument[1];
|
288 |
-
}
|
289 |
|
290 |
-
|
|
|
|
|
291 |
}
|
292 |
|
293 |
// Include posts
|
294 |
-
if(!empty($post__in)){
|
295 |
$post__in = explode(",",$post__in);
|
296 |
$args['post__in'] = $post__in;
|
297 |
}
|
298 |
|
299 |
// Exclude posts
|
300 |
-
if(!empty($post__not_in)){
|
301 |
$post__not_in = explode(",",$post__not_in);
|
302 |
$args['post__not_in'] = $post__not_in;
|
303 |
}
|
304 |
-
if(!empty($exclude)){ // Deprecate this soon - 2.8.5 */
|
305 |
$exclude = explode(",",$exclude);
|
306 |
$args['post__not_in'] = $exclude;
|
307 |
}
|
308 |
|
309 |
// Language
|
310 |
-
if(!empty($lang)){
|
311 |
$args['lang'] = $lang;
|
312 |
}
|
313 |
|
@@ -374,19 +365,18 @@ if(!class_exists('ALM_QUERY_ARGS')):
|
|
374 |
|
375 |
}
|
376 |
|
377 |
-
|
378 |
// Advanced Custom Fields
|
379 |
-
if(!empty($acf_field_type) && !empty($acf_field_name) && function_exists('get_field')){
|
380 |
if($acf_field_type === 'relationship'){ // Relationship Field
|
381 |
$acf_post_id = (empty($acf_post_id)) ? $post_id : $acf_post_id;
|
382 |
$acf_post_ids = [];
|
383 |
|
384 |
-
if(empty($acf_parent_field_name)){
|
385 |
// Get field value from ACF
|
386 |
$acf_post_ids = get_field($acf_field_name, $acf_post_id);
|
387 |
} else {
|
388 |
// Call function in ACF extension
|
389 |
-
if(function_exists('alm_acf_loop_gallery_rows')){
|
390 |
// Sub Fields
|
391 |
$acf_post_ids = alm_acf_loop_relationship_rows($acf_parent_field_name, $acf_field_name, $acf_post_id);
|
392 |
}
|
@@ -400,15 +390,71 @@ if(!class_exists('ALM_QUERY_ARGS')):
|
|
400 |
* This allows pre_get_posts to parse based on ALM ID
|
401 |
* print_r($query->query);
|
402 |
*/
|
403 |
-
|
404 |
|
|
|
|
|
405 |
|
406 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
407 |
|
|
|
|
|
408 |
|
409 |
-
|
410 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
411 |
|
412 |
-
}
|
413 |
-
}
|
414 |
endif;
|
1 |
<?php
|
2 |
/**
|
|
|
3 |
* Generate args that pass into the ALM WP_Query
|
4 |
*
|
5 |
+
* @package ajaxloadmore
|
6 |
* @since 3.7
|
7 |
*/
|
8 |
|
9 |
+
// @codingStandardsIgnoreStart
|
10 |
+
|
11 |
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
exit;
|
13 |
}
|
14 |
|
|
|
|
|
15 |
if(!class_exists('ALM_QUERY_ARGS')):
|
16 |
|
17 |
class ALM_QUERY_ARGS {
|
18 |
|
|
|
19 |
/**
|
20 |
* alm_build_queryargs
|
21 |
* This function will return a generated $args array.
|
25 |
* @return $args
|
26 |
*/
|
27 |
|
|
|
28 |
public static function alm_build_queryargs($a, $is_ajax = true){
|
29 |
|
30 |
// Post ID
|
90 |
// Custom Args
|
91 |
$custom_args = (isset($a['custom_args'])) ? $a['custom_args'] : '';
|
92 |
|
93 |
+
// Custom Args
|
94 |
+
$vars = (isset($a['vars'])) ? $a['vars'] : '';
|
95 |
+
|
96 |
// Author
|
97 |
$author_id = (isset($a['author'])) ? $a['author'] : '';
|
98 |
|
120 |
$post_status = 'publish';
|
121 |
if($post_status != 'publish' && $post_status != 'inherit'){
|
122 |
// If not 'publish', confirm user has rights to view these old posts.
|
123 |
+
if (current_user_can( 'edit_theme_options' ) ) {
|
124 |
$post_status = $post_status;
|
125 |
} else {
|
126 |
$post_status = 'publish';
|
127 |
}
|
128 |
}
|
129 |
|
|
|
130 |
// Advanced Custom Fields
|
131 |
// Only used for Relationship Field. Gallery, Repeater and Flex Content is in the ACF extension.
|
132 |
if($is_ajax){
|
140 |
|
141 |
} else {
|
142 |
// If Preloaded, $a needs to access acf data differently.
|
143 |
+
if(isset($a['acf'] ) ) {
|
144 |
if($a['acf'] === 'true'){
|
145 |
$acf_post_id = (isset($a['acf_post_id'])) ? $a['acf_post_id'] : ''; // Post ID
|
146 |
$acf_field_type = (isset($a['acf_field_type'])) ? $a['acf_field_type'] : ''; // Field Type
|
162 |
'ignore_sticky_posts' => true
|
163 |
);
|
164 |
|
|
|
165 |
// Post Format & Taxonomy
|
166 |
// * Both use tax_query, so we need to combine these queries
|
167 |
+
if ( ! empty( $post_format) || !empty($taxonomy ) ) {
|
168 |
|
169 |
$tax_query_total = count(explode(":", $taxonomy)); // Total $taxonomy objects
|
170 |
$taxonomy = explode(":", $taxonomy); // convert to array
|
171 |
$taxonomy_terms = explode(":", $taxonomy_terms); // convert to array
|
172 |
$taxonomy_operator = explode(":", $taxonomy_operator); // convert to array
|
173 |
|
174 |
+
if(empty($taxonomy ) ) {
|
175 |
|
176 |
// Post Format only
|
177 |
$args['tax_query'] = array(
|
196 |
}
|
197 |
|
198 |
// Category
|
199 |
+
if ( ! empty( $category ) ) {
|
200 |
$args['category_name'] = $category;
|
201 |
}
|
202 |
+
if ( ! empty( $category__and ) ) {
|
203 |
$args['category__and'] = explode(",", $category__and);
|
204 |
}
|
205 |
|
206 |
// Category Not In
|
207 |
+
if ( ! empty( $category__not_in ) ) {
|
208 |
$exclude_cats = explode(",",$category__not_in);
|
209 |
$args['category__not_in'] = $exclude_cats;
|
210 |
}
|
211 |
|
212 |
// Tag
|
213 |
+
if ( ! empty( $tag ) ) {
|
214 |
$args['tag'] = $tag;
|
215 |
}
|
216 |
+
if ( ! empty( $tag__and ) ) {
|
217 |
$args['tag__and'] = explode(",", $tag__and);
|
218 |
}
|
219 |
|
220 |
// Tag Not In
|
221 |
+
if ( ! empty( $tag__not_in ) ) {
|
222 |
$exclude_tags = explode(",",$tag__not_in);
|
223 |
$args['tag__not_in'] = $exclude_tags;
|
224 |
}
|
225 |
|
226 |
// Date (not using date_query as there was issue with year/month archives)
|
227 |
+
if ( ! empty( $year ) ) {
|
228 |
$args['year'] = $year;
|
229 |
}
|
230 |
+
if ( ! empty( $month ) ) {
|
231 |
$args['monthnum'] = $month;
|
232 |
}
|
233 |
+
if ( ! empty( $day ) ) {
|
234 |
$args['day'] = $day;
|
235 |
}
|
236 |
|
237 |
// Meta Query
|
238 |
+
if ( ! empty( $meta_key) && isset($meta_value) || !empty($meta_key) && $meta_compare !== "IN"){
|
239 |
|
240 |
// Parse multiple meta query
|
241 |
$meta_query_total = count(explode(":", $meta_key)); // Total meta_query objects
|
254 |
}
|
255 |
|
256 |
// Meta_key, used for ordering by meta value
|
257 |
+
if ( ! empty( $meta_key ) ) {
|
258 |
if (strpos($orderby, 'meta_value') !== false) { // Only order by meta_key, if $orderby is set to meta_value{_num}
|
259 |
$meta_key_single = explode(":", $meta_key);
|
260 |
$args['meta_key'] = $meta_key_single[0];
|
262 |
}
|
263 |
|
264 |
// Author
|
265 |
+
if ( ! empty( $author_id ) ) {
|
266 |
$args['author'] = $author_id;
|
267 |
}
|
268 |
|
269 |
// Search Term
|
270 |
+
if ( ! empty( $s ) ) {
|
271 |
$args['s'] = $s;
|
272 |
}
|
273 |
|
274 |
// Custom Args
|
275 |
+
if ( ! empty( $custom_args ) ) {
|
276 |
+
$args = self::parse_custom_args($args, $custom_args);
|
277 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
278 |
|
279 |
+
// Vars
|
280 |
+
if ( ! empty( $vars ) ) {
|
281 |
+
$args = self::parse_custom_vars($args, $vars);
|
282 |
}
|
283 |
|
284 |
// Include posts
|
285 |
+
if ( ! empty( $post__in ) ) {
|
286 |
$post__in = explode(",",$post__in);
|
287 |
$args['post__in'] = $post__in;
|
288 |
}
|
289 |
|
290 |
// Exclude posts
|
291 |
+
if ( ! empty( $post__not_in ) ) {
|
292 |
$post__not_in = explode(",",$post__not_in);
|
293 |
$args['post__not_in'] = $post__not_in;
|
294 |
}
|
295 |
+
if ( ! empty( $exclude ) ) { // Deprecate this soon - 2.8.5 */
|
296 |
$exclude = explode(",",$exclude);
|
297 |
$args['post__not_in'] = $exclude;
|
298 |
}
|
299 |
|
300 |
// Language
|
301 |
+
if ( ! empty( $lang ) ) {
|
302 |
$args['lang'] = $lang;
|
303 |
}
|
304 |
|
365 |
|
366 |
}
|
367 |
|
|
|
368 |
// Advanced Custom Fields
|
369 |
+
if ( ! empty( $acf_field_type) && !empty($acf_field_name) && function_exists('get_field' ) ) {
|
370 |
if($acf_field_type === 'relationship'){ // Relationship Field
|
371 |
$acf_post_id = (empty($acf_post_id)) ? $post_id : $acf_post_id;
|
372 |
$acf_post_ids = [];
|
373 |
|
374 |
+
if(empty($acf_parent_field_name ) ) {
|
375 |
// Get field value from ACF
|
376 |
$acf_post_ids = get_field($acf_field_name, $acf_post_id);
|
377 |
} else {
|
378 |
// Call function in ACF extension
|
379 |
+
if(function_exists('alm_acf_loop_gallery_rows' ) ) {
|
380 |
// Sub Fields
|
381 |
$acf_post_ids = alm_acf_loop_relationship_rows($acf_parent_field_name, $acf_field_name, $acf_post_id);
|
382 |
}
|
390 |
* This allows pre_get_posts to parse based on ALM ID
|
391 |
* print_r($query->query);
|
392 |
*/
|
393 |
+
$args['alm_id'] = $id;
|
394 |
|
395 |
+
// Return $args
|
396 |
+
return $args;
|
397 |
|
398 |
+
}
|
399 |
+
|
400 |
+
/**
|
401 |
+
* Parse a var parameter as string into array.
|
402 |
+
*
|
403 |
+
* @param object $args The current $args array.
|
404 |
+
* @param string argument The parameter to parse.
|
405 |
+
*/
|
406 |
+
public static function parse_custom_vars( $args, $param ){
|
407 |
+
if ( empty( $param ) ) {
|
408 |
+
return $args;
|
409 |
+
}
|
410 |
|
411 |
+
// Split the $param at `;`.
|
412 |
+
$params = explode( ';', $param );
|
413 |
|
414 |
+
// New array.
|
415 |
+
$array = [];
|
416 |
+
|
417 |
+
// Loop each $param.
|
418 |
+
foreach( $params as $param ){
|
419 |
+
$param = explode( ':', $param ); // Split the $argument at ':'.
|
420 |
+
$array[$param[0]] = $param[1];
|
421 |
+
}
|
422 |
+
|
423 |
+
$args['alm_vars'] = $array;
|
424 |
+
|
425 |
+
// Return parsed $array.
|
426 |
+
return $args;
|
427 |
+
}
|
428 |
+
|
429 |
+
|
430 |
+
/**
|
431 |
+
* Parse `custom_args` string parameter into array.
|
432 |
+
*
|
433 |
+
* @param object $args The current $args array.
|
434 |
+
* @param string $argument The parameter to parse.
|
435 |
+
*/
|
436 |
+
public static function parse_custom_args($args, $param){
|
437 |
+
|
438 |
+
// Split the $param at `;`.
|
439 |
+
$array = explode( ';', $param );
|
440 |
+
|
441 |
+
// Loop each $argument.
|
442 |
+
foreach($array as $arg){
|
443 |
+
|
444 |
+
$arg = preg_replace('/\s+/', '', $arg); // Remove all whitespace.
|
445 |
+
$arg = explode( ':',$arg ); // Split at `:`.
|
446 |
+
$argument_arr = explode( ',', $arg[1] ); // explode $argument[1] at `,`.
|
447 |
+
if(sizeof($argument_arr) > 1){
|
448 |
+
$args[$arg[0]] = $argument_arr;
|
449 |
+
}else{
|
450 |
+
$args[$arg[0]] = $arg[1];
|
451 |
+
}
|
452 |
+
|
453 |
+
}
|
454 |
+
|
455 |
+
// Return parsed $args.
|
456 |
+
return $args;
|
457 |
+
}
|
458 |
+
}
|
459 |
|
|
|
|
|
460 |
endif;
|
core/classes/{class.alm-shortcode.php → class-alm-shortcode.php}
RENAMED
@@ -1,14 +1,14 @@
|
|
1 |
<?php
|
2 |
-
// @codingStandardsIgnoreStart
|
3 |
-
|
4 |
/**
|
5 |
* Ajax Load More Shortcode.
|
6 |
* Returns [ajax_load_more {params}] shortcode.
|
7 |
*
|
8 |
-
* @
|
9 |
* @since 2.10.1
|
10 |
*/
|
11 |
|
|
|
|
|
12 |
if ( ! defined( 'ABSPATH' ) ) {
|
13 |
exit;
|
14 |
}
|
@@ -210,6 +210,7 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
210 |
'css_classes' => '',
|
211 |
'loading_style' => '',
|
212 |
'id' => '',
|
|
|
213 |
'primary' => false,
|
214 |
'no_results_text' => '',
|
215 |
'placeholder' => '',
|
@@ -222,7 +223,7 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
222 |
'elementor_controls' => '',
|
223 |
'elementor_scrolltop' => '',
|
224 |
'elementor_paged' => ( ! get_query_var( 'page' ) || get_query_var( 'page' ) == 0 ) ? 1 : (int) get_query_var( 'page' ),
|
225 |
-
'elementor_woo_paged' => ( !isset($_GET['product-page']) || $_GET['product-page'] == 1 ) ? 1 : (int) $_GET['product-page']
|
226 |
), $atts) );
|
227 |
|
228 |
// Elementor.
|
@@ -350,8 +351,6 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
350 |
wp_enqueue_script( 'ajax-load-more-elementor' );
|
351 |
}
|
352 |
|
353 |
-
|
354 |
-
|
355 |
/*
|
356 |
* alm_enqueue_external_scripts
|
357 |
*
|
@@ -361,17 +360,15 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
361 |
*/
|
362 |
do_action('alm_enqueue_external_scripts', $atts);
|
363 |
|
364 |
-
|
365 |
// End Enqueue Scripts
|
366 |
|
367 |
-
|
368 |
// Filters - Set initial shortcode state
|
369 |
$filters = ($filters === 'true' && class_exists('ALMFilters')) ? true : false;
|
370 |
if($filters){
|
371 |
$single_post = $seo = $nextpage = false;
|
372 |
$transition_container = "true"; // required
|
373 |
if(defined('ALM_FILTERS_PATH')){
|
374 |
-
include
|
375 |
}
|
376 |
}
|
377 |
|
@@ -382,7 +379,6 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
382 |
// Transition Container Classes
|
383 |
$transition_container_classes = (!empty($transition_container_classes)) ? ' '. $transition_container_classes : '';
|
384 |
|
385 |
-
|
386 |
// REST API
|
387 |
if($restapi === 'true'){
|
388 |
$restapi = true;
|
@@ -393,7 +389,7 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
393 |
$container_element = 'ul';
|
394 |
if($options['_alm_container_type'] == '2' || $single_post){
|
395 |
$container_element = 'div';
|
396 |
-
|
397 |
|
398 |
// CSS Classes
|
399 |
$css_classes = (!empty($css_classes)) ? ' ' . $css_classes : '';
|
@@ -474,15 +470,12 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
474 |
// Start ALM object
|
475 |
$ajaxloadmore = '';
|
476 |
|
477 |
-
|
478 |
$ajaxloadmore .= ALM_WOOCOMMERCE::hide_pagination($woocommerce);
|
479 |
$ajaxloadmore .= ALM_WOOCOMMERCE::hide_orderby($woocommerce);
|
480 |
|
481 |
-
|
482 |
// Elementor Posts Widget Hook (Before)
|
483 |
$ajaxloadmore .= (has_action('alm_elementor_installed') && $elementor === 'posts') ? apply_filters('alm_elementor_hide_pagination', '') : '';
|
484 |
|
485 |
-
|
486 |
/*
|
487 |
* alm_before_container
|
488 |
*
|
@@ -729,10 +722,11 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
729 |
// If Filters & Filters Paging, set preloaded_amount to posts_per_page
|
730 |
if($filters && $filters_paging === 'true'){
|
731 |
$preloaded_amount = $posts_per_page;
|
732 |
-
|
733 |
|
734 |
|
735 |
-
|
|
|
736 |
$query_args = array(
|
737 |
'post_id' => $post_id,
|
738 |
'preloaded' => $preloaded,
|
@@ -797,16 +791,16 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
797 |
'lang' => $lang,
|
798 |
'css_classes' => $css_classes,
|
799 |
'id' => $id,
|
|
|
800 |
'repeater' => $repeater,
|
801 |
'theme_repeater' => $theme_repeater,
|
802 |
'paged' => (get_query_var('paged')) ? get_query_var('paged') : 1
|
803 |
-
|
804 |
-
|
805 |
|
|
|
806 |
$listing_class = ($comments === 'true') ? 'commentlist alm-comments' : 'alm-listing'; // If Comments
|
807 |
|
808 |
-
|
809 |
-
// Open #ajax-load-more
|
810 |
|
811 |
$ajaxloadmore .= '<'.$container_element.' aria-live="polite" aria-atomic="true"';
|
812 |
$ajaxloadmore .= ' class="'.$listing_class.' alm-ajax'. $paging_container_class . $classname . $css_classes .'"'.$paging_transition.'';
|
@@ -1146,6 +1140,9 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
1146 |
// Custom Args
|
1147 |
$ajaxloadmore .= (!empty($custom_args)) ? ' data-custom-args="'.$custom_args.'"' : '';
|
1148 |
|
|
|
|
|
|
|
1149 |
// Status
|
1150 |
$ajaxloadmore .= (!empty($post_status)) ? ' data-post-status="'.$post_status.'"' : '';
|
1151 |
|
@@ -1210,7 +1207,7 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
1210 |
// Add Preloaded Posts
|
1211 |
$noscript_pagingnav = '';
|
1212 |
if(has_action('alm_preload_installed') && $preloaded === 'true'){
|
1213 |
-
include
|
1214 |
}
|
1215 |
|
1216 |
|
@@ -1231,18 +1228,17 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
1231 |
// Get previous post include, build output from the next post filter
|
1232 |
$single_post_output = '<div class="alm-reveal alm-single-post post-'. $single_post_id .'" data-url="'. $single_post_permanlink .'" data-title="'. strip_tags(get_the_title($single_post_id)) .'" data-id="'. $single_post_id .'" data-page="0">'; // Set the post id .alm-reveal div
|
1233 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1234 |
|
1235 |
-
|
1236 |
-
|
1237 |
-
|
1238 |
-
|
1239 |
-
* @return $args;
|
1240 |
-
*/
|
1241 |
-
|
1242 |
-
if($offset < 1){
|
1243 |
-
// Only render include if offset is zero
|
1244 |
-
$single_post_output .= apply_filters('alm_single_post_inc', $repeater, $repeater_type, $theme_repeater, $single_post_id, $post_type);
|
1245 |
-
}
|
1246 |
|
1247 |
|
1248 |
$single_post_output .= '</div>';
|
@@ -1366,12 +1362,10 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
1366 |
// End REST API Add-on
|
1367 |
|
1368 |
|
1369 |
-
|
1370 |
// Add localized vars
|
1371 |
ALM_LOCALIZE::add_localized_var('id', $master_id, $localize_id);
|
1372 |
|
1373 |
|
1374 |
-
|
1375 |
/*
|
1376 |
* alm_create_script_vars
|
1377 |
*
|
@@ -1379,17 +1373,13 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
1379 |
*
|
1380 |
* @return <script>
|
1381 |
*/
|
1382 |
-
|
1383 |
-
|
1384 |
|
1385 |
return $ajaxloadmore; // End $ajaxloadmore object
|
1386 |
|
1387 |
}
|
1388 |
|
1389 |
-
|
1390 |
-
|
1391 |
/**
|
1392 |
-
* alm_render_button
|
1393 |
* Render the load more button.
|
1394 |
*
|
1395 |
* @since 3.3.2
|
@@ -1411,20 +1401,15 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
1411 |
$html .= '</div>';
|
1412 |
|
1413 |
return $html;
|
1414 |
-
|
1415 |
}
|
1416 |
|
1417 |
-
|
1418 |
-
|
1419 |
/**
|
1420 |
-
* alm_render_placeholder
|
1421 |
* Render a placeholder loader.
|
1422 |
*
|
1423 |
* @since 5.1.7
|
1424 |
* @return $html
|
1425 |
*/
|
1426 |
public static function alm_render_placeholder($placeholder, $paging){
|
1427 |
-
|
1428 |
if(isset($placeholder) && !empty($placeholder) && $paging !== 'true'){
|
1429 |
$placeholder_url = ($placeholder === 'true') ? ALM_URL .'/core/img/placeholder.png' : $placeholder;
|
1430 |
if($placeholder_url){
|
@@ -1432,12 +1417,8 @@ if ( ! class_exists( 'ALM_SHORTCODE' ) ) :
|
|
1432 |
return $html;
|
1433 |
}
|
1434 |
}
|
1435 |
-
|
1436 |
-
}
|
1437 |
-
|
1438 |
-
|
1439 |
|
1440 |
}
|
1441 |
-
|
1442 |
endif;
|
1443 |
|
1 |
<?php
|
|
|
|
|
2 |
/**
|
3 |
* Ajax Load More Shortcode.
|
4 |
* Returns [ajax_load_more {params}] shortcode.
|
5 |
*
|
6 |
+
* @package ajaxloadmore
|
7 |
* @since 2.10.1
|
8 |
*/
|
9 |
|
10 |
+
// @codingStandardsIgnoreStart
|
11 |
+
|
12 |
if ( ! defined( 'ABSPATH' ) ) {
|
13 |
exit;
|
14 |
}
|
210 |
'css_classes' => '',
|
211 |
'loading_style' => '',
|
212 |
'id' => '',
|
213 |
+
'vars' => '',
|
214 |
'primary' => false,
|
215 |
'no_results_text' => '',
|
216 |
'placeholder' => '',
|
223 |
'elementor_controls' => '',
|
224 |
'elementor_scrolltop' => '',
|
225 |
'elementor_paged' => ( ! get_query_var( 'page' ) || get_query_var( 'page' ) == 0 ) ? 1 : (int) get_query_var( 'page' ),
|
226 |
+
'elementor_woo_paged' => ( !isset( $_GET['product-page'] ) || $_GET['product-page'] == 1 ) ? 1 : (int) $_GET['product-page']
|
227 |
), $atts) );
|
228 |
|
229 |
// Elementor.
|
351 |
wp_enqueue_script( 'ajax-load-more-elementor' );
|
352 |
}
|
353 |
|
|
|
|
|
354 |
/*
|
355 |
* alm_enqueue_external_scripts
|
356 |
*
|
360 |
*/
|
361 |
do_action('alm_enqueue_external_scripts', $atts);
|
362 |
|
|
|
363 |
// End Enqueue Scripts
|
364 |
|
|
|
365 |
// Filters - Set initial shortcode state
|
366 |
$filters = ($filters === 'true' && class_exists('ALMFilters')) ? true : false;
|
367 |
if($filters){
|
368 |
$single_post = $seo = $nextpage = false;
|
369 |
$transition_container = "true"; // required
|
370 |
if(defined('ALM_FILTERS_PATH')){
|
371 |
+
include ALM_FILTERS_PATH . 'includes/initial-state-params.php';
|
372 |
}
|
373 |
}
|
374 |
|
379 |
// Transition Container Classes
|
380 |
$transition_container_classes = (!empty($transition_container_classes)) ? ' '. $transition_container_classes : '';
|
381 |
|
|
|
382 |
// REST API
|
383 |
if($restapi === 'true'){
|
384 |
$restapi = true;
|
389 |
$container_element = 'ul';
|
390 |
if($options['_alm_container_type'] == '2' || $single_post){
|
391 |
$container_element = 'div';
|
392 |
+
}
|
393 |
|
394 |
// CSS Classes
|
395 |
$css_classes = (!empty($css_classes)) ? ' ' . $css_classes : '';
|
470 |
// Start ALM object
|
471 |
$ajaxloadmore = '';
|
472 |
|
|
|
473 |
$ajaxloadmore .= ALM_WOOCOMMERCE::hide_pagination($woocommerce);
|
474 |
$ajaxloadmore .= ALM_WOOCOMMERCE::hide_orderby($woocommerce);
|
475 |
|
|
|
476 |
// Elementor Posts Widget Hook (Before)
|
477 |
$ajaxloadmore .= (has_action('alm_elementor_installed') && $elementor === 'posts') ? apply_filters('alm_elementor_hide_pagination', '') : '';
|
478 |
|
|
|
479 |
/*
|
480 |
* alm_before_container
|
481 |
*
|
722 |
// If Filters & Filters Paging, set preloaded_amount to posts_per_page
|
723 |
if($filters && $filters_paging === 'true'){
|
724 |
$preloaded_amount = $posts_per_page;
|
725 |
+
}
|
726 |
|
727 |
|
728 |
+
|
729 |
+
// $query_args array to store global ALM variables.
|
730 |
$query_args = array(
|
731 |
'post_id' => $post_id,
|
732 |
'preloaded' => $preloaded,
|
791 |
'lang' => $lang,
|
792 |
'css_classes' => $css_classes,
|
793 |
'id' => $id,
|
794 |
+
'vars' => $vars,
|
795 |
'repeater' => $repeater,
|
796 |
'theme_repeater' => $theme_repeater,
|
797 |
'paged' => (get_query_var('paged')) ? get_query_var('paged') : 1
|
798 |
+
);
|
|
|
799 |
|
800 |
+
// Set `alm-listing` classname.
|
801 |
$listing_class = ($comments === 'true') ? 'commentlist alm-comments' : 'alm-listing'; // If Comments
|
802 |
|
803 |
+
// Open #ajax-load-more
|
|
|
804 |
|
805 |
$ajaxloadmore .= '<'.$container_element.' aria-live="polite" aria-atomic="true"';
|
806 |
$ajaxloadmore .= ' class="'.$listing_class.' alm-ajax'. $paging_container_class . $classname . $css_classes .'"'.$paging_transition.'';
|
1140 |
// Custom Args
|
1141 |
$ajaxloadmore .= (!empty($custom_args)) ? ' data-custom-args="'.$custom_args.'"' : '';
|
1142 |
|
1143 |
+
// Vars
|
1144 |
+
$ajaxloadmore .= (!empty($vars)) ? ' data-vars="' . $vars . '"' : '';
|
1145 |
+
|
1146 |
// Status
|
1147 |
$ajaxloadmore .= (!empty($post_status)) ? ' data-post-status="'.$post_status.'"' : '';
|
1148 |
|
1207 |
// Add Preloaded Posts
|
1208 |
$noscript_pagingnav = '';
|
1209 |
if(has_action('alm_preload_installed') && $preloaded === 'true'){
|
1210 |
+
include ALM_PATH .'core/classes/includes/preloaded.php';
|
1211 |
}
|
1212 |
|
1213 |
|
1228 |
// Get previous post include, build output from the next post filter
|
1229 |
$single_post_output = '<div class="alm-reveal alm-single-post post-'. $single_post_id .'" data-url="'. $single_post_permanlink .'" data-title="'. strip_tags(get_the_title($single_post_id)) .'" data-id="'. $single_post_id .'" data-page="0">'; // Set the post id .alm-reveal div
|
1230 |
|
1231 |
+
/*
|
1232 |
+
* alm_single_post_inc
|
1233 |
+
* Previous Post Add-on hook
|
1234 |
+
*
|
1235 |
+
* @return $args;
|
1236 |
+
*/
|
1237 |
|
1238 |
+
if($offset < 1){
|
1239 |
+
// Only render include if offset is zero
|
1240 |
+
$single_post_output .= apply_filters('alm_single_post_inc', $repeater, $repeater_type, $theme_repeater, $single_post_id, $post_type);
|
1241 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1242 |
|
1243 |
|
1244 |
$single_post_output .= '</div>';
|
1362 |
// End REST API Add-on
|
1363 |
|
1364 |
|
|
|
1365 |
// Add localized vars
|
1366 |
ALM_LOCALIZE::add_localized_var('id', $master_id, $localize_id);
|
1367 |
|
1368 |
|
|
|
1369 |
/*
|
1370 |
* alm_create_script_vars
|
1371 |
*
|
1373 |
*
|
1374 |
* @return <script>
|
1375 |
*/
|
1376 |
+
ALM_LOCALIZE::create_script_vars($localize_id);
|
|
|
1377 |
|
1378 |
return $ajaxloadmore; // End $ajaxloadmore object
|
1379 |
|
1380 |
}
|
1381 |
|
|
|
|
|
1382 |
/**
|
|
|
1383 |
* Render the load more button.
|
1384 |
*
|
1385 |
* @since 3.3.2
|
1401 |
$html .= '</div>';
|
1402 |
|
1403 |
return $html;
|
|
|
1404 |
}
|
1405 |
|
|
|
|
|
1406 |
/**
|
|
|
1407 |
* Render a placeholder loader.
|
1408 |
*
|
1409 |
* @since 5.1.7
|
1410 |
* @return $html
|
1411 |
*/
|
1412 |
public static function alm_render_placeholder($placeholder, $paging){
|
|
|
1413 |
if(isset($placeholder) && !empty($placeholder) && $paging !== 'true'){
|
1414 |
$placeholder_url = ($placeholder === 'true') ? ALM_URL .'/core/img/placeholder.png' : $placeholder;
|
1415 |
if($placeholder_url){
|
1417 |
return $html;
|
1418 |
}
|
1419 |
}
|
1420 |
+
}
|
|
|
|
|
|
|
1421 |
|
1422 |
}
|
|
|
1423 |
endif;
|
1424 |
|
core/classes/{class.alm-woocommerce.php → class-alm-woocommerce.php}
RENAMED
File without changes
|
core/classes/includes/preloaded.php
CHANGED
@@ -1,20 +1,25 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
-
//
|
4 |
|
5 |
-
|
6 |
-
// Initial vars
|
7 |
$preloaded_output = '';
|
8 |
-
$preload_offset
|
9 |
|
10 |
|
11 |
// .alm-reveal default
|
12 |
$alm_reveal = '<div class="alm-reveal alm-preloaded'. $transition_container_classes .'">';
|
13 |
|
14 |
|
15 |
-
// If $seo or $filters, set $preloaded_amount to
|
16 |
-
if((has_action('alm_seo_installed') && $seo === 'true' &&
|
17 |
-
|
18 |
}
|
19 |
|
20 |
|
@@ -231,39 +236,35 @@ elseif($acf && ($acf_field_type !== 'relationship')){
|
|
231 |
}
|
232 |
|
233 |
// Standard ALM
|
|
|
234 |
else {
|
235 |
|
236 |
-
|
237 |
-
*
|
238 |
-
* This function will return an $args array for the ALM WP_Query
|
239 |
*
|
240 |
* @return $args;
|
241 |
* @since in 3.7
|
242 |
*/
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
|
247 |
|
248 |
-
|
249 |
-
*
|
250 |
-
*
|
251 |
-
* ALM Core Filter Hook
|
252 |
*
|
253 |
* @return $args;
|
254 |
-
*
|
255 |
*/
|
256 |
-
|
257 |
|
258 |
|
259 |
-
|
260 |
-
*
|
261 |
-
*
|
262 |
-
* ALM Core Filter Hook
|
263 |
*
|
264 |
* @return $args;
|
265 |
*/
|
266 |
-
|
267 |
|
268 |
|
269 |
/*
|
@@ -271,46 +272,45 @@ else {
|
|
271 |
*
|
272 |
* @return $alm_preload_query;
|
273 |
*/
|
274 |
-
$alm_preload_query = new WP_Query($args);
|
275 |
|
276 |
-
|
277 |
-
|
278 |
-
* alm_query_after_{id}
|
279 |
-
*
|
280 |
-
* ALM Core Filter Hook to modify the returned query
|
281 |
*
|
282 |
* @return $alm_query;
|
283 |
*/
|
284 |
-
|
285 |
|
286 |
$alm_total_posts = $alm_preload_query->found_posts - $offset;
|
287 |
-
$alm_post_count
|
288 |
|
289 |
-
|
290 |
|
291 |
-
if ($alm_preload_query->have_posts()) :
|
292 |
|
293 |
-
$alm_item
|
|
|
|
|
294 |
$alm_found_posts = $alm_total_posts;
|
295 |
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
$output .= apply_filters('alm_filters_reveal_open', $transition_container_classes, $canonicalURL, true, $alm_preload_query->found_posts);
|
300 |
}
|
301 |
|
302 |
-
|
|
|
303 |
|
304 |
$alm_item++;
|
305 |
$alm_current++;
|
306 |
|
307 |
// Call to Action [Before].
|
308 |
-
if( $cta === 'true' && has_action( 'alm_cta_inc') && $cta_pos === 'before' ){
|
309 |
$output .= ( $alm_current == $cta_val ) ? apply_filters( 'alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, true ) : '';
|
310 |
}
|
311 |
|
312 |
// Repeater Template.
|
313 |
-
$output .= alm_loop( $repeater, $type, $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current );
|
314 |
|
315 |
// Call to Action [After].
|
316 |
if ( $cta === 'true' && has_action( 'alm_cta_inc' ) && $cta_pos === 'after' ) {
|
@@ -320,57 +320,52 @@ else {
|
|
320 |
endwhile;
|
321 |
wp_reset_query();
|
322 |
|
|
|
|
|
|
|
|
|
323 |
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
// SEO, create noscript pagination
|
331 |
-
if ( has_action( 'alm_seo_installed') && $seo === 'true' ) {
|
332 |
-
$noscript_pagingnav = apply_filters('alm_noscript_pagination', $alm_preload_query); // Build pagination
|
333 |
-
}
|
334 |
-
|
335 |
|
336 |
endif;
|
337 |
|
|
|
|
|
|
|
338 |
|
339 |
-
|
340 |
-
ALM_LOCALIZE::add_localized_var('total_posts', $alm_total_posts, $localize_id);
|
341 |
-
ALM_LOCALIZE::add_localized_var('post_count', $alm_post_count, $localize_id);
|
342 |
-
|
343 |
-
|
344 |
-
if($seo === "true"){ // SEO, not Paging
|
345 |
|
346 |
-
// Get querystring to append to URL
|
347 |
$querystring = $_SERVER['QUERY_STRING'];
|
348 |
|
349 |
-
// If search, append slug (?s=term) to data-url
|
350 |
-
$search_slug = (is_search()) ? $slug : '';
|
351 |
|
352 |
-
// Append querystring to data-url
|
353 |
-
|
354 |
|
355 |
-
|
356 |
|
357 |
-
|
358 |
|
359 |
-
|
|
|
360 |
|
361 |
-
|
362 |
-
|
363 |
-
}
|
364 |
|
365 |
-
|
366 |
-
|
367 |
|
368 |
-
|
369 |
-
|
370 |
|
371 |
-
// Close .alm-reveal
|
372 |
-
$preloaded_output .= (
|
373 |
|
374 |
}
|
375 |
|
376 |
-
|
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* Get preloaded posts and append to alm object.
|
4 |
+
*
|
5 |
+
* @package ajaxloadmore
|
6 |
+
* @since 2.0
|
7 |
+
*/
|
8 |
|
9 |
+
// @codingStandardsIgnoreStart
|
10 |
|
11 |
+
// Initial vars.
|
|
|
12 |
$preloaded_output = '';
|
13 |
+
$preload_offset = $offset;
|
14 |
|
15 |
|
16 |
// .alm-reveal default
|
17 |
$alm_reveal = '<div class="alm-reveal alm-preloaded'. $transition_container_classes .'">';
|
18 |
|
19 |
|
20 |
+
// If $seo or $filters, set $preloaded_amount to `$posts_per_page`.
|
21 |
+
if ( ( has_action( 'alm_seo_installed' ) && $seo === 'true' && ! $users ) || $filters ) {
|
22 |
+
$preloaded_amount = $posts_per_page;
|
23 |
}
|
24 |
|
25 |
|
236 |
}
|
237 |
|
238 |
// Standard ALM
|
239 |
+
|
240 |
else {
|
241 |
|
242 |
+
/**
|
243 |
+
* This function will return an $args array for the ALM WP_Query.
|
|
|
244 |
*
|
245 |
* @return $args;
|
246 |
* @since in 3.7
|
247 |
*/
|
248 |
+
if ( class_exists( 'ALM_QUERY_ARGS' ) ) {
|
249 |
+
$args = ALM_QUERY_ARGS::alm_build_queryargs( $query_args, false );
|
250 |
+
}
|
251 |
|
252 |
|
253 |
+
/**
|
254 |
+
* ALM Core Filter Hook.
|
|
|
|
|
255 |
*
|
256 |
* @return $args;
|
257 |
+
* @deprecated 2.10
|
258 |
*/
|
259 |
+
$args = apply_filters( 'alm_modify_query_args', $args, $slug );
|
260 |
|
261 |
|
262 |
+
/**
|
263 |
+
* ALM Core Filter Hook.
|
|
|
|
|
264 |
*
|
265 |
* @return $args;
|
266 |
*/
|
267 |
+
$args = apply_filters( 'alm_query_args_' . $id, $args, $post_id );
|
268 |
|
269 |
|
270 |
/*
|
272 |
*
|
273 |
* @return $alm_preload_query;
|
274 |
*/
|
275 |
+
$alm_preload_query = new WP_Query( $args );
|
276 |
|
277 |
+
/**
|
278 |
+
* ALM Core Filter Hook to modify the returned query.
|
|
|
|
|
|
|
279 |
*
|
280 |
* @return $alm_query;
|
281 |
*/
|
282 |
+
$alm_preload_query = apply_filters( 'alm_query_after_'. $id, $alm_preload_query, $post_id );
|
283 |
|
284 |
$alm_total_posts = $alm_preload_query->found_posts - $offset;
|
285 |
+
$alm_post_count = $alm_preload_query->post_count;
|
286 |
|
287 |
+
$output = '';
|
288 |
|
289 |
+
if ( $alm_preload_query->have_posts() ) :
|
290 |
|
291 |
+
$alm_item = 0;
|
292 |
+
$alm_page = 0;
|
293 |
+
$alm_current = 0;
|
294 |
$alm_found_posts = $alm_total_posts;
|
295 |
|
296 |
+
// Filters Wrap [Open].
|
297 |
+
if ( $filters && has_filter( 'alm_filters_reveal_open' ) ) {
|
298 |
+
$output .= apply_filters( 'alm_filters_reveal_open', $transition_container_classes, $canonicalURL, true, $alm_preload_query->found_posts );
|
|
|
299 |
}
|
300 |
|
301 |
+
while ( $alm_preload_query->have_posts() ) :
|
302 |
+
$alm_preload_query->the_post();
|
303 |
|
304 |
$alm_item++;
|
305 |
$alm_current++;
|
306 |
|
307 |
// Call to Action [Before].
|
308 |
+
if( $cta === 'true' && has_action( 'alm_cta_inc' ) && $cta_pos === 'before' ) {
|
309 |
$output .= ( $alm_current == $cta_val ) ? apply_filters( 'alm_cta_inc', $cta_repeater, $cta_theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, true ) : '';
|
310 |
}
|
311 |
|
312 |
// Repeater Template.
|
313 |
+
$output .= alm_loop( $repeater, $type, $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current, $args );
|
314 |
|
315 |
// Call to Action [After].
|
316 |
if ( $cta === 'true' && has_action( 'alm_cta_inc' ) && $cta_pos === 'after' ) {
|
320 |
endwhile;
|
321 |
wp_reset_query();
|
322 |
|
323 |
+
// Filters Wrap [close].
|
324 |
+
if ( $filters && has_filter( 'alm_filters_reveal_close' ) ) {
|
325 |
+
$output .= apply_filters( 'alm_filters_reveal_close', '</div>' );
|
326 |
+
}
|
327 |
|
328 |
+
// SEO, create noscript pagination.
|
329 |
+
if ( has_action( 'alm_seo_installed') && $seo === 'true' ) {
|
330 |
+
$noscript_pagingnav = apply_filters('alm_noscript_pagination', $alm_preload_query);
|
331 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
332 |
|
333 |
endif;
|
334 |
|
335 |
+
// Add localized ALM JS variables.
|
336 |
+
ALM_LOCALIZE::add_localized_var( 'total_posts', $alm_total_posts, $localize_id );
|
337 |
+
ALM_LOCALIZE::add_localized_var( 'post_count', $alm_post_count, $localize_id );
|
338 |
|
339 |
+
if ( $seo === "true" ) { // SEO, not Paging.
|
|
|
|
|
|
|
|
|
|
|
340 |
|
341 |
+
// Get querystring to append to URL.
|
342 |
$querystring = $_SERVER['QUERY_STRING'];
|
343 |
|
344 |
+
// If search, append slug (?s=term) to data-url.
|
345 |
+
$search_slug = ( is_search() ) ? $slug : '';
|
346 |
|
347 |
+
// Append querystring to data-url.
|
348 |
+
$querystring = ( $querystring ) ? '?'.$querystring : '';
|
349 |
|
350 |
+
$cleaned_url = esc_url( $canonicalURL .''. $querystring );
|
351 |
|
352 |
+
$alm_reveal = '<div class="alm-reveal alm-seo alm-preloaded'. $transition_container_classes .'" data-page="1" data-url="'. $cleaned_url .'" data-total-posts="'. $alm_preload_query->found_posts .'">';
|
353 |
|
354 |
+
} else {
|
355 |
+
$alm_reveal= '<div class="alm-reveal alm-preloaded'. $transition_container_classes .'" data-total-posts="'. $alm_preload_query->found_posts .'">';
|
356 |
|
357 |
+
}
|
|
|
|
|
358 |
|
359 |
+
// Open .alm-reveal.
|
360 |
+
$preloaded_output .= ( ! $filters ) ? $alm_reveal : '';
|
361 |
|
362 |
+
// Append content.
|
363 |
+
$preloaded_output .= $output;
|
364 |
|
365 |
+
// Close .alm-reveal.
|
366 |
+
$preloaded_output .= ( ! $filters ) ? '</div>' : '';
|
367 |
|
368 |
}
|
369 |
|
370 |
+
// Add $preloaded_output data to $ajaxloadmore
|
371 |
+
$ajaxloadmore .= $preloaded_output;
|
core/dist/css/ajax-load-more.css
CHANGED
File without changes
|
core/dist/css/ajax-load-more.min.css
CHANGED
File without changes
|
core/dist/js/ajax-load-more.js
CHANGED
@@ -740,7 +740,9 @@ function createMasonryFiltersPages(alm, elements) {
|
|
740 |
}
|
741 |
} else {
|
742 |
pagenum = page;
|
743 |
-
elements
|
|
|
|
|
744 |
}
|
745 |
|
746 |
return elements;
|
@@ -1452,7 +1454,6 @@ var alm_is_filtering = false;
|
|
1452 |
alm.vendor = window.navigator.vendor ? window.navigator.vendor : ''; // Browser Vendor
|
1453 |
alm.isSafari = /Safari/i.test(alm.ua) && /Apple Computer/.test(alm.vendor) && !/Mobi|Android/i.test(alm.ua);
|
1454 |
|
1455 |
-
alm.main = el;
|
1456 |
alm.master_id = el.dataset.id ? 'ajax-load-more-' + el.dataset.id : el.id; // The defined or generated ID of the ALM instance
|
1457 |
el.classList.add('alm-' + e); // Add unique classname
|
1458 |
el.setAttribute('data-alm-id', e); // Add unique data id
|
@@ -1461,7 +1462,7 @@ var alm_is_filtering = false;
|
|
1461 |
alm.master_id = alm.master_id.replace(/-/g, '_'); // Convert dashes to underscores for the var name
|
1462 |
alm.localize = window[alm.master_id + '_vars']; // Get localize vars
|
1463 |
|
1464 |
-
//
|
1465 |
alm.main = el; // Top level DOM element
|
1466 |
alm.listing = el.querySelector('.alm-listing') || el.querySelector('.alm-comments');
|
1467 |
alm.content = alm.listing;
|
@@ -1569,6 +1570,7 @@ var alm_is_filtering = false;
|
|
1569 |
alm.addons.single_post = alm.listing.dataset.singlePost;
|
1570 |
if (alm.addons.single_post === 'true') {
|
1571 |
alm.addons.single_post_id = alm.listing.dataset.singlePostId;
|
|
|
1572 |
alm.addons.single_post_order = alm.listing.dataset.singlePostOrder;
|
1573 |
alm.addons.single_post_init_id = alm.listing.dataset.singlePostId;
|
1574 |
alm.addons.single_post_taxonomy = alm.listing.dataset.singlePostTaxonomy;
|
@@ -3000,6 +3002,11 @@ var alm_is_filtering = false;
|
|
3000 |
}
|
3001 |
}
|
3002 |
|
|
|
|
|
|
|
|
|
|
|
3003 |
alm.AjaxLoadMore.triggerDone(); // ALM Done
|
3004 |
};
|
3005 |
|
@@ -3129,12 +3136,10 @@ var alm_is_filtering = false;
|
|
3129 |
};
|
3130 |
|
3131 |
/**
|
3132 |
-
*
|
3133 |
-
* Get the previous post ID via ajax
|
3134 |
*
|
3135 |
* @since 2.7.4
|
3136 |
*/
|
3137 |
-
|
3138 |
if (alm.addons.single_post_id) {
|
3139 |
alm.fetchingPreviousPost = false;
|
3140 |
alm.addons.single_post_init = true;
|
@@ -3167,7 +3172,6 @@ var alm_is_filtering = false;
|
|
3167 |
// Send HTTP request via Axios
|
3168 |
_axios2.default.get(ajaxURL, { params: params }).then(function (response) {
|
3169 |
// Success
|
3170 |
-
|
3171 |
var data = response.data; // Get data from response
|
3172 |
|
3173 |
if (data.has_previous_post) {
|
@@ -3188,16 +3192,14 @@ var alm_is_filtering = false;
|
|
3188 |
alm.addons.single_post_init = false;
|
3189 |
}).catch(function (error) {
|
3190 |
// Error
|
3191 |
-
|
3192 |
alm.AjaxLoadMore.error(error, 'getSinglePost');
|
3193 |
alm.fetchingPreviousPost = false;
|
3194 |
});
|
3195 |
};
|
3196 |
|
3197 |
/**
|
3198 |
-
* triggerAddons
|
3199 |
-
*
|
3200 |
* Triggers various add-on functions (if available) after load complete.
|
|
|
3201 |
* @since 2.14.0
|
3202 |
*/
|
3203 |
alm.AjaxLoadMore.triggerAddons = function (alm) {
|
@@ -3220,9 +3222,8 @@ var alm_is_filtering = false;
|
|
3220 |
};
|
3221 |
|
3222 |
/**
|
3223 |
-
* ALM
|
3224 |
*
|
3225 |
-
* Fires the almDone() function (if available).
|
3226 |
* @since 2.11.3
|
3227 |
*/
|
3228 |
alm.AjaxLoadMore.triggerDone = function () {
|
@@ -3252,8 +3253,7 @@ var alm_is_filtering = false;
|
|
3252 |
};
|
3253 |
|
3254 |
/**
|
3255 |
-
*
|
3256 |
-
* Resets the loading button text after loading has completed
|
3257 |
*
|
3258 |
* @since 2.8.4
|
3259 |
*/
|
@@ -3265,8 +3265,7 @@ var alm_is_filtering = false;
|
|
3265 |
};
|
3266 |
|
3267 |
/**
|
3268 |
-
*
|
3269 |
-
* Error function after failed data
|
3270 |
*
|
3271 |
* @since 2.6.0
|
3272 |
*/
|
@@ -3307,8 +3306,7 @@ var alm_is_filtering = false;
|
|
3307 |
};
|
3308 |
|
3309 |
/**
|
3310 |
-
* click
|
3311 |
-
* Button click handler to load posts
|
3312 |
*
|
3313 |
* @since 4.2.0
|
3314 |
*/
|
@@ -3328,18 +3326,17 @@ var alm_is_filtering = false;
|
|
3328 |
};
|
3329 |
|
3330 |
/**
|
3331 |
-
*
|
3332 |
-
* Load more button click event
|
3333 |
*
|
3334 |
* @since 1.0.0
|
3335 |
*/
|
3336 |
-
|
3337 |
if (!alm.addons.paging && !alm.fetchingPreviousPost) {
|
3338 |
alm.button.onclick = alm.AjaxLoadMore.click;
|
3339 |
}
|
3340 |
|
3341 |
/**
|
3342 |
* Window resize functions for Paging, Scroll Distance Percentage, Tabs etc.
|
|
|
3343 |
* @since 2.1.2
|
3344 |
* @updated 5.2
|
3345 |
*/
|
@@ -3371,7 +3368,8 @@ var alm_is_filtering = false;
|
|
3371 |
}
|
3372 |
|
3373 |
/**
|
3374 |
-
* Check to see if element is visible before loading posts
|
|
|
3375 |
* @since 2.1.2
|
3376 |
*/
|
3377 |
alm.AjaxLoadMore.isVisible = function () {
|
@@ -3381,7 +3379,8 @@ var alm_is_filtering = false;
|
|
3381 |
};
|
3382 |
|
3383 |
/**
|
3384 |
-
* Trigger a window resize browser function
|
|
|
3385 |
* @since 5.3.1
|
3386 |
*/
|
3387 |
alm.AjaxLoadMore.triggerWindowResize = function () {
|
@@ -3397,11 +3396,11 @@ var alm_is_filtering = false;
|
|
3397 |
};
|
3398 |
|
3399 |
/**
|
3400 |
-
* Load posts as user scrolls the page
|
|
|
3401 |
* @since 1.0
|
3402 |
* @updated 4.2.0
|
3403 |
*/
|
3404 |
-
|
3405 |
alm.AjaxLoadMore.scroll = function () {
|
3406 |
if (alm.timer) {
|
3407 |
clearTimeout(alm.timer);
|
@@ -3447,7 +3446,8 @@ var alm_is_filtering = false;
|
|
3447 |
};
|
3448 |
|
3449 |
/**
|
3450 |
-
* Add scroll eventlisteners, only when needed
|
|
|
3451 |
* @since 5.2.0
|
3452 |
*/
|
3453 |
alm.AjaxLoadMore.scrollSetup = function () {
|
@@ -3483,7 +3483,8 @@ var alm_is_filtering = false;
|
|
3483 |
};
|
3484 |
|
3485 |
/**
|
3486 |
-
* Configure horizontal scroll settings
|
|
|
3487 |
* @since 5.3.6
|
3488 |
*/
|
3489 |
alm.AjaxLoadMore.horizontal = function () {
|
@@ -3493,7 +3494,8 @@ var alm_is_filtering = false;
|
|
3493 |
};
|
3494 |
|
3495 |
/**
|
3496 |
-
* Destroy Ajax Load More functionality
|
|
|
3497 |
* @since 3.4.2
|
3498 |
*/
|
3499 |
alm.AjaxLoadMore.destroyed = function () {
|
@@ -3508,7 +3510,8 @@ var alm_is_filtering = false;
|
|
3508 |
};
|
3509 |
|
3510 |
/**
|
3511 |
-
* Set variables after loading transiton completes
|
|
|
3512 |
* @since 3.5
|
3513 |
*/
|
3514 |
alm.AjaxLoadMore.transitionEnd = function () {
|
@@ -3527,7 +3530,8 @@ var alm_is_filtering = false;
|
|
3527 |
};
|
3528 |
|
3529 |
/**
|
3530 |
-
* Set
|
|
|
3531 |
* @param {string} name
|
3532 |
* @param {string} value
|
3533 |
* @since 4.1
|
@@ -3543,8 +3547,7 @@ var alm_is_filtering = false;
|
|
3543 |
};
|
3544 |
|
3545 |
/**
|
3546 |
-
* Init Ajax load More
|
3547 |
-
* Load posts as user scrolls the page
|
3548 |
*
|
3549 |
* @since 2.0
|
3550 |
*/
|
@@ -3568,11 +3571,16 @@ var alm_is_filtering = false;
|
|
3568 |
}
|
3569 |
}
|
3570 |
|
3571 |
-
//
|
3572 |
if (alm.addons.single_post) {
|
3573 |
alm.AjaxLoadMore.getSinglePost(); // Set next post on load
|
3574 |
alm.loading = false;
|
3575 |
|
|
|
|
|
|
|
|
|
|
|
3576 |
/*
|
3577 |
* Display tableOfContents
|
3578 |
*/
|
@@ -3704,18 +3712,8 @@ var alm_is_filtering = false;
|
|
3704 |
});
|
3705 |
};
|
3706 |
|
3707 |
-
// Flag to prevent loading of posts on initial page load.
|
3708 |
-
setTimeout(function () {
|
3709 |
-
alm.proceed = true;
|
3710 |
-
alm.AjaxLoadMore.scrollSetup();
|
3711 |
-
}, 500);
|
3712 |
-
|
3713 |
-
// Init Ajax Load More
|
3714 |
-
alm.AjaxLoadMore.init();
|
3715 |
-
|
3716 |
/**
|
3717 |
-
*
|
3718 |
-
* Update current page - triggered from paging add-on
|
3719 |
*
|
3720 |
* @since 2.7.0
|
3721 |
*/
|
@@ -3754,8 +3752,7 @@ var alm_is_filtering = false;
|
|
3754 |
};
|
3755 |
|
3756 |
/**
|
3757 |
-
*
|
3758 |
-
* return the parent ALM container
|
3759 |
*
|
3760 |
* @since 2.7.0
|
3761 |
* @return element
|
@@ -3765,8 +3762,7 @@ var alm_is_filtering = false;
|
|
3765 |
};
|
3766 |
|
3767 |
/**
|
3768 |
-
*
|
3769 |
-
* Returns the current ALM obj
|
3770 |
*
|
3771 |
* @param {string} specific obj
|
3772 |
* @since 2.7.0
|
@@ -3783,20 +3779,27 @@ var alm_is_filtering = false;
|
|
3783 |
};
|
3784 |
|
3785 |
/**
|
3786 |
-
*
|
3787 |
-
* Trigger ajaxloadmore from any element on page
|
3788 |
*
|
3789 |
* @since 2.12.0
|
3790 |
*/
|
3791 |
window.almTriggerClick = function () {
|
3792 |
alm.button.click();
|
3793 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3794 |
};
|
3795 |
|
3796 |
// End ajaxloadmore
|
3797 |
|
3798 |
/**
|
3799 |
-
* almInit
|
3800 |
* Initiate instance of Ajax load More
|
3801 |
*
|
3802 |
* @since 5.0
|
@@ -3809,9 +3812,9 @@ var alm_is_filtering = false;
|
|
3809 |
|
3810 |
/**
|
3811 |
* Initiate Ajax load More if div is present on screen
|
|
|
3812 |
* @since 2.1.2
|
3813 |
*/
|
3814 |
-
|
3815 |
var alm_instances = document.querySelectorAll('.ajax-load-more-wrap');
|
3816 |
if (alm_instances.length) {
|
3817 |
[].concat(_toConsumableArray(alm_instances)).forEach(function (alm, e) {
|
@@ -3821,7 +3824,7 @@ var alm_is_filtering = false;
|
|
3821 |
})();
|
3822 |
|
3823 |
/**
|
3824 |
-
* Filter an Ajax Load More instance
|
3825 |
*
|
3826 |
* @since 5.0
|
3827 |
* @param {*} transition
|
@@ -3842,7 +3845,7 @@ var filter = function filter() {
|
|
3842 |
exports.filter = filter;
|
3843 |
|
3844 |
/**
|
3845 |
-
* Reset an Ajax Load More instance
|
3846 |
*
|
3847 |
* @since 5.3.8
|
3848 |
* @param {*} target
|
@@ -3898,7 +3901,7 @@ var reset = function reset() {
|
|
3898 |
exports.reset = reset;
|
3899 |
|
3900 |
/**
|
3901 |
-
* Tabbed content for Ajax Load More instance
|
3902 |
*
|
3903 |
* @since 5.2
|
3904 |
* @param {*} data
|
@@ -3922,7 +3925,7 @@ var tab = function tab() {
|
|
3922 |
exports.tab = tab;
|
3923 |
|
3924 |
/**
|
3925 |
-
* Track Page Views in Google Analytics
|
3926 |
*
|
3927 |
* @since 5.0
|
3928 |
* @param {*} path
|
@@ -3961,8 +3964,7 @@ var tracking = function tracking(path) {
|
|
3961 |
exports.tracking = tracking;
|
3962 |
|
3963 |
/**
|
3964 |
-
*
|
3965 |
-
* Trigger Ajax Load More from other events
|
3966 |
*
|
3967 |
* @since 5.0
|
3968 |
* @param {*} el
|
@@ -3977,8 +3979,7 @@ var start = function start(el) {
|
|
3977 |
exports.start = start;
|
3978 |
|
3979 |
/**
|
3980 |
-
*
|
3981 |
-
* Scroll window to position (global function)
|
3982 |
*
|
3983 |
* @since 5.0
|
3984 |
* @param {*} position
|
@@ -3996,7 +3997,6 @@ var almScroll = function almScroll(position) {
|
|
3996 |
exports.almScroll = almScroll;
|
3997 |
|
3998 |
/**
|
3999 |
-
* getOffset
|
4000 |
* Get the current top/left coordinates of an element relative to the document.
|
4001 |
*
|
4002 |
* @since 5.0
|
@@ -4017,10 +4017,9 @@ var getOffset = function getOffset() {
|
|
4017 |
exports.getOffset = getOffset;
|
4018 |
|
4019 |
/**
|
4020 |
-
*
|
4021 |
*
|
4022 |
* @since 5.0
|
4023 |
-
* @param {*} position
|
4024 |
*/
|
4025 |
|
4026 |
var render = function render(el) {
|
@@ -4723,229 +4722,232 @@ if (!document.documentElement.dataset && (
|
|
4723 |
|
4724 |
|
4725 |
Object.defineProperty(exports, "__esModule", {
|
4726 |
-
|
4727 |
});
|
4728 |
exports.almGetAjaxParams = almGetAjaxParams;
|
4729 |
exports.almGetRestParams = almGetRestParams;
|
4730 |
/**
|
4731 |
* almGetAjaxParams
|
4732 |
* Build the data object to send with the Ajax request
|
4733 |
-
*
|
4734 |
* @param alm object
|
4735 |
* @param action string
|
4736 |
-
* @param queryType string
|
4737 |
* @since 3.6
|
4738 |
*/
|
4739 |
|
4740 |
function almGetAjaxParams(alm, action, queryType) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4741 |
|
4742 |
-
|
4743 |
-
var data = {
|
4744 |
-
id: alm.id,
|
4745 |
-
post_id: alm.post_id,
|
4746 |
-
slug: alm.slug,
|
4747 |
-
canonical_url: encodeURIComponent(alm.canonical_url),
|
4748 |
-
posts_per_page: alm.posts_per_page,
|
4749 |
-
page: alm.page,
|
4750 |
-
offset: alm.offset,
|
4751 |
-
post_type: alm.post_type,
|
4752 |
-
repeater: alm.repeater,
|
4753 |
-
seo_start_page: alm.start_page
|
4754 |
-
};
|
4755 |
-
|
4756 |
-
// Addons & Extensions
|
4757 |
-
|
4758 |
-
if (alm.theme_repeater) {
|
4759 |
-
data.theme_repeater = alm.theme_repeater;
|
4760 |
-
}
|
4761 |
-
if (alm.addons.filters) {
|
4762 |
-
data.filters = alm.addons.filters;
|
4763 |
-
data.filters_startpage = alm.addons.filters_startpage;
|
4764 |
-
}
|
4765 |
-
if (alm.addons.paging) {
|
4766 |
-
data.paging = alm.addons.paging;
|
4767 |
-
}
|
4768 |
-
if (alm.addons.preloaded) {
|
4769 |
-
data.preloaded = alm.addons.preloaded;
|
4770 |
-
data.preloaded_amount = alm.addons.preloaded_amount;
|
4771 |
-
}
|
4772 |
-
if (alm.addons.cache === 'true') {
|
4773 |
-
data.cache_id = alm.addons.cache_id;
|
4774 |
-
data.cache_logged_in = alm.addons.cache_logged_in;
|
4775 |
-
}
|
4776 |
-
if (alm.acf_array) {
|
4777 |
-
data.acf = alm.acf_array;
|
4778 |
-
}
|
4779 |
-
if (alm.term_query_array) {
|
4780 |
-
data.term_query = alm.term_query_array;
|
4781 |
-
}
|
4782 |
-
if (alm.cta_array) {
|
4783 |
-
data.cta = alm.cta_array;
|
4784 |
-
}
|
4785 |
-
if (alm.comments_array) {
|
4786 |
-
data.comments = alm.comments_array;
|
4787 |
-
}
|
4788 |
-
if (alm.nextpage_array) {
|
4789 |
-
data.nextpage = alm.nextpage_array;
|
4790 |
-
}
|
4791 |
-
if (alm.single_post_array) {
|
4792 |
-
data.single_post = alm.single_post_array;
|
4793 |
-
}
|
4794 |
-
if (alm.users_array) {
|
4795 |
-
data.users = alm.users_array;
|
4796 |
-
}
|
4797 |
|
4798 |
-
|
4799 |
-
|
4800 |
-
|
4801 |
-
|
4802 |
-
|
4803 |
-
|
4804 |
-
|
4805 |
-
|
4806 |
-
|
4807 |
-
|
4808 |
-
|
4809 |
-
|
4810 |
-
|
4811 |
-
|
4812 |
-
|
4813 |
-
|
4814 |
-
|
4815 |
-
|
4816 |
-
|
4817 |
-
|
4818 |
-
|
4819 |
-
|
4820 |
-
|
4821 |
-
|
4822 |
-
|
4823 |
-
|
4824 |
-
|
4825 |
-
|
4826 |
-
|
4827 |
-
|
4828 |
-
|
4829 |
-
|
4830 |
-
|
4831 |
-
|
4832 |
-
|
4833 |
-
|
4834 |
-
|
4835 |
-
|
4836 |
-
|
4837 |
-
|
4838 |
-
|
4839 |
-
|
4840 |
-
|
4841 |
-
|
4842 |
-
|
4843 |
-
|
4844 |
-
|
4845 |
-
|
4846 |
-
|
4847 |
-
|
4848 |
-
|
4849 |
-
|
4850 |
-
|
4851 |
-
|
4852 |
-
|
4853 |
-
|
4854 |
-
|
4855 |
-
|
4856 |
-
|
4857 |
-
|
4858 |
-
|
4859 |
-
|
4860 |
-
|
4861 |
-
|
4862 |
-
|
4863 |
-
|
4864 |
-
|
4865 |
-
|
4866 |
-
|
4867 |
-
|
4868 |
-
|
4869 |
-
|
4870 |
-
|
4871 |
-
|
4872 |
-
|
4873 |
-
|
4874 |
-
|
4875 |
-
|
4876 |
-
|
4877 |
-
|
4878 |
-
|
4879 |
-
|
4880 |
-
|
4881 |
-
|
4882 |
-
|
4883 |
-
|
4884 |
-
|
4885 |
-
|
4886 |
-
|
4887 |
-
|
4888 |
-
|
4889 |
-
|
4890 |
-
|
4891 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4892 |
|
4893 |
-
|
4894 |
-
|
4895 |
|
4896 |
-
|
4897 |
}
|
4898 |
|
4899 |
/**
|
4900 |
* almGetRestParams
|
4901 |
* Build the REST API data object to send with REST API request
|
4902 |
-
*
|
4903 |
* @param alm object
|
4904 |
* @since 3.6
|
4905 |
*/
|
4906 |
function almGetRestParams(alm) {
|
4907 |
-
|
4908 |
-
|
4909 |
-
|
4910 |
-
|
4911 |
-
|
4912 |
-
|
4913 |
-
|
4914 |
-
|
4915 |
-
|
4916 |
-
|
4917 |
-
|
4918 |
-
|
4919 |
-
|
4920 |
-
|
4921 |
-
|
4922 |
-
|
4923 |
-
|
4924 |
-
|
4925 |
-
|
4926 |
-
|
4927 |
-
|
4928 |
-
|
4929 |
-
|
4930 |
-
|
4931 |
-
|
4932 |
-
|
4933 |
-
|
4934 |
-
|
4935 |
-
|
4936 |
-
|
4937 |
-
|
4938 |
-
|
4939 |
-
|
4940 |
-
|
4941 |
-
|
4942 |
-
|
4943 |
-
|
4944 |
-
|
4945 |
-
|
4946 |
-
|
4947 |
-
|
4948 |
-
|
|
|
4949 |
}
|
4950 |
|
4951 |
/***/ }),
|
740 |
}
|
741 |
} else {
|
742 |
pagenum = page;
|
743 |
+
if (elements && elements[0]) {
|
744 |
+
elements[0] = masonryFiltersAtts(alm, elements[0], querystring, pagenum);
|
745 |
+
}
|
746 |
}
|
747 |
|
748 |
return elements;
|
1454 |
alm.vendor = window.navigator.vendor ? window.navigator.vendor : ''; // Browser Vendor
|
1455 |
alm.isSafari = /Safari/i.test(alm.ua) && /Apple Computer/.test(alm.vendor) && !/Mobi|Android/i.test(alm.ua);
|
1456 |
|
|
|
1457 |
alm.master_id = el.dataset.id ? 'ajax-load-more-' + el.dataset.id : el.id; // The defined or generated ID of the ALM instance
|
1458 |
el.classList.add('alm-' + e); // Add unique classname
|
1459 |
el.setAttribute('data-alm-id', e); // Add unique data id
|
1462 |
alm.master_id = alm.master_id.replace(/-/g, '_'); // Convert dashes to underscores for the var name
|
1463 |
alm.localize = window[alm.master_id + '_vars']; // Get localize vars
|
1464 |
|
1465 |
+
// ALM Element Containers
|
1466 |
alm.main = el; // Top level DOM element
|
1467 |
alm.listing = el.querySelector('.alm-listing') || el.querySelector('.alm-comments');
|
1468 |
alm.content = alm.listing;
|
1570 |
alm.addons.single_post = alm.listing.dataset.singlePost;
|
1571 |
if (alm.addons.single_post === 'true') {
|
1572 |
alm.addons.single_post_id = alm.listing.dataset.singlePostId;
|
1573 |
+
alm.addons.single_post_query = alm.listing.dataset.singlePostQuery;
|
1574 |
alm.addons.single_post_order = alm.listing.dataset.singlePostOrder;
|
1575 |
alm.addons.single_post_init_id = alm.listing.dataset.singlePostId;
|
1576 |
alm.addons.single_post_taxonomy = alm.listing.dataset.singlePostTaxonomy;
|
3002 |
}
|
3003 |
}
|
3004 |
|
3005 |
+
// Masonry, clear `alm-listing` height
|
3006 |
+
if (alm.transition === 'masonry') {
|
3007 |
+
alm.content.style.height = 'auto';
|
3008 |
+
}
|
3009 |
+
|
3010 |
alm.AjaxLoadMore.triggerDone(); // ALM Done
|
3011 |
};
|
3012 |
|
3136 |
};
|
3137 |
|
3138 |
/**
|
3139 |
+
* Get the Single Posts post ID via ajax.
|
|
|
3140 |
*
|
3141 |
* @since 2.7.4
|
3142 |
*/
|
|
|
3143 |
if (alm.addons.single_post_id) {
|
3144 |
alm.fetchingPreviousPost = false;
|
3145 |
alm.addons.single_post_init = true;
|
3172 |
// Send HTTP request via Axios
|
3173 |
_axios2.default.get(ajaxURL, { params: params }).then(function (response) {
|
3174 |
// Success
|
|
|
3175 |
var data = response.data; // Get data from response
|
3176 |
|
3177 |
if (data.has_previous_post) {
|
3192 |
alm.addons.single_post_init = false;
|
3193 |
}).catch(function (error) {
|
3194 |
// Error
|
|
|
3195 |
alm.AjaxLoadMore.error(error, 'getSinglePost');
|
3196 |
alm.fetchingPreviousPost = false;
|
3197 |
});
|
3198 |
};
|
3199 |
|
3200 |
/**
|
|
|
|
|
3201 |
* Triggers various add-on functions (if available) after load complete.
|
3202 |
+
*
|
3203 |
* @since 2.14.0
|
3204 |
*/
|
3205 |
alm.AjaxLoadMore.triggerAddons = function (alm) {
|
3222 |
};
|
3223 |
|
3224 |
/**
|
3225 |
+
* Fires a set of actions and functions when ALM has no other posts to load.
|
3226 |
*
|
|
|
3227 |
* @since 2.11.3
|
3228 |
*/
|
3229 |
alm.AjaxLoadMore.triggerDone = function () {
|
3253 |
};
|
3254 |
|
3255 |
/**
|
3256 |
+
* Resets the loading button text after loading has completed.
|
|
|
3257 |
*
|
3258 |
* @since 2.8.4
|
3259 |
*/
|
3265 |
};
|
3266 |
|
3267 |
/**
|
3268 |
+
* Error function after failed data attempt.
|
|
|
3269 |
*
|
3270 |
* @since 2.6.0
|
3271 |
*/
|
3306 |
};
|
3307 |
|
3308 |
/**
|
3309 |
+
* Button click handler to load posts.
|
|
|
3310 |
*
|
3311 |
* @since 4.2.0
|
3312 |
*/
|
3326 |
};
|
3327 |
|
3328 |
/**
|
3329 |
+
* Load More button click event handler.
|
|
|
3330 |
*
|
3331 |
* @since 1.0.0
|
3332 |
*/
|
|
|
3333 |
if (!alm.addons.paging && !alm.fetchingPreviousPost) {
|
3334 |
alm.button.onclick = alm.AjaxLoadMore.click;
|
3335 |
}
|
3336 |
|
3337 |
/**
|
3338 |
* Window resize functions for Paging, Scroll Distance Percentage, Tabs etc.
|
3339 |
+
*
|
3340 |
* @since 2.1.2
|
3341 |
* @updated 5.2
|
3342 |
*/
|
3368 |
}
|
3369 |
|
3370 |
/**
|
3371 |
+
* Check to see if element is visible before loading posts.
|
3372 |
+
*
|
3373 |
* @since 2.1.2
|
3374 |
*/
|
3375 |
alm.AjaxLoadMore.isVisible = function () {
|
3379 |
};
|
3380 |
|
3381 |
/**
|
3382 |
+
* Trigger a window resize browser function.
|
3383 |
+
*
|
3384 |
* @since 5.3.1
|
3385 |
*/
|
3386 |
alm.AjaxLoadMore.triggerWindowResize = function () {
|
3396 |
};
|
3397 |
|
3398 |
/**
|
3399 |
+
* Load posts as user scrolls the page.
|
3400 |
+
*
|
3401 |
* @since 1.0
|
3402 |
* @updated 4.2.0
|
3403 |
*/
|
|
|
3404 |
alm.AjaxLoadMore.scroll = function () {
|
3405 |
if (alm.timer) {
|
3406 |
clearTimeout(alm.timer);
|
3446 |
};
|
3447 |
|
3448 |
/**
|
3449 |
+
* Add scroll eventlisteners, only when needed.
|
3450 |
+
*
|
3451 |
* @since 5.2.0
|
3452 |
*/
|
3453 |
alm.AjaxLoadMore.scrollSetup = function () {
|
3483 |
};
|
3484 |
|
3485 |
/**
|
3486 |
+
* Configure horizontal scroll settings.
|
3487 |
+
*
|
3488 |
* @since 5.3.6
|
3489 |
*/
|
3490 |
alm.AjaxLoadMore.horizontal = function () {
|
3494 |
};
|
3495 |
|
3496 |
/**
|
3497 |
+
* Destroy Ajax Load More functionality.
|
3498 |
+
*
|
3499 |
* @since 3.4.2
|
3500 |
*/
|
3501 |
alm.AjaxLoadMore.destroyed = function () {
|
3510 |
};
|
3511 |
|
3512 |
/**
|
3513 |
+
* Set variables after loading transiton completes.
|
3514 |
+
*
|
3515 |
* @since 3.5
|
3516 |
*/
|
3517 |
alm.AjaxLoadMore.transitionEnd = function () {
|
3530 |
};
|
3531 |
|
3532 |
/**
|
3533 |
+
* Set individual localized variable.
|
3534 |
+
*
|
3535 |
* @param {string} name
|
3536 |
* @param {string} value
|
3537 |
* @since 4.1
|
3547 |
};
|
3548 |
|
3549 |
/**
|
3550 |
+
* Init Ajax load More functionality and add-ons.
|
|
|
3551 |
*
|
3552 |
* @since 2.0
|
3553 |
*/
|
3571 |
}
|
3572 |
}
|
3573 |
|
3574 |
+
// Single Post Add-on
|
3575 |
if (alm.addons.single_post) {
|
3576 |
alm.AjaxLoadMore.getSinglePost(); // Set next post on load
|
3577 |
alm.loading = false;
|
3578 |
|
3579 |
+
// Trigger done if custom query and no posts to render
|
3580 |
+
if (alm.addons.single_post_query && alm.addons.single_post_order === '') {
|
3581 |
+
alm.AjaxLoadMore.triggerDone();
|
3582 |
+
}
|
3583 |
+
|
3584 |
/*
|
3585 |
* Display tableOfContents
|
3586 |
*/
|
3712 |
});
|
3713 |
};
|
3714 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3715 |
/**
|
3716 |
+
* Update current page - triggered from paging add-on.
|
|
|
3717 |
*
|
3718 |
* @since 2.7.0
|
3719 |
*/
|
3752 |
};
|
3753 |
|
3754 |
/**
|
3755 |
+
* Get the parent ALM container.
|
|
|
3756 |
*
|
3757 |
* @since 2.7.0
|
3758 |
* @return element
|
3762 |
};
|
3763 |
|
3764 |
/**
|
3765 |
+
* Returns the current ALM obj.
|
|
|
3766 |
*
|
3767 |
* @param {string} specific obj
|
3768 |
* @since 2.7.0
|
3779 |
};
|
3780 |
|
3781 |
/**
|
3782 |
+
* Trigger ajaxloadmore from any element on page.
|
|
|
3783 |
*
|
3784 |
* @since 2.12.0
|
3785 |
*/
|
3786 |
window.almTriggerClick = function () {
|
3787 |
alm.button.click();
|
3788 |
};
|
3789 |
+
|
3790 |
+
// Flag to prevent loading of posts on initial page load.
|
3791 |
+
setTimeout(function () {
|
3792 |
+
alm.proceed = true;
|
3793 |
+
alm.AjaxLoadMore.scrollSetup();
|
3794 |
+
}, 500);
|
3795 |
+
|
3796 |
+
// Init Ajax Load More
|
3797 |
+
alm.AjaxLoadMore.init();
|
3798 |
};
|
3799 |
|
3800 |
// End ajaxloadmore
|
3801 |
|
3802 |
/**
|
|
|
3803 |
* Initiate instance of Ajax load More
|
3804 |
*
|
3805 |
* @since 5.0
|
3812 |
|
3813 |
/**
|
3814 |
* Initiate Ajax load More if div is present on screen
|
3815 |
+
*
|
3816 |
* @since 2.1.2
|
3817 |
*/
|
|
|
3818 |
var alm_instances = document.querySelectorAll('.ajax-load-more-wrap');
|
3819 |
if (alm_instances.length) {
|
3820 |
[].concat(_toConsumableArray(alm_instances)).forEach(function (alm, e) {
|
3824 |
})();
|
3825 |
|
3826 |
/**
|
3827 |
+
* Filter an Ajax Load More instance.
|
3828 |
*
|
3829 |
* @since 5.0
|
3830 |
* @param {*} transition
|
3845 |
exports.filter = filter;
|
3846 |
|
3847 |
/**
|
3848 |
+
* Reset an Ajax Load More instance.
|
3849 |
*
|
3850 |
* @since 5.3.8
|
3851 |
* @param {*} target
|
3901 |
exports.reset = reset;
|
3902 |
|
3903 |
/**
|
3904 |
+
* Tabbed content for Ajax Load More instance.
|
3905 |
*
|
3906 |
* @since 5.2
|
3907 |
* @param {*} data
|
3925 |
exports.tab = tab;
|
3926 |
|
3927 |
/**
|
3928 |
+
* Track Page Views in Google Analytics.
|
3929 |
*
|
3930 |
* @since 5.0
|
3931 |
* @param {*} path
|
3964 |
exports.tracking = tracking;
|
3965 |
|
3966 |
/**
|
3967 |
+
* Trigger Ajax Load More from other events.
|
|
|
3968 |
*
|
3969 |
* @since 5.0
|
3970 |
* @param {*} el
|
3979 |
exports.start = start;
|
3980 |
|
3981 |
/**
|
3982 |
+
* Scroll window to position (global function).
|
|
|
3983 |
*
|
3984 |
* @since 5.0
|
3985 |
* @param {*} position
|
3997 |
exports.almScroll = almScroll;
|
3998 |
|
3999 |
/**
|
|
|
4000 |
* Get the current top/left coordinates of an element relative to the document.
|
4001 |
*
|
4002 |
* @since 5.0
|
4017 |
exports.getOffset = getOffset;
|
4018 |
|
4019 |
/**
|
4020 |
+
* ALM Render (in progress)
|
4021 |
*
|
4022 |
* @since 5.0
|
|
|
4023 |
*/
|
4024 |
|
4025 |
var render = function render(el) {
|
4722 |
|
4723 |
|
4724 |
Object.defineProperty(exports, "__esModule", {
|
4725 |
+
value: true
|
4726 |
});
|
4727 |
exports.almGetAjaxParams = almGetAjaxParams;
|
4728 |
exports.almGetRestParams = almGetRestParams;
|
4729 |
/**
|
4730 |
* almGetAjaxParams
|
4731 |
* Build the data object to send with the Ajax request
|
4732 |
+
*
|
4733 |
* @param alm object
|
4734 |
* @param action string
|
4735 |
+
* @param queryType string
|
4736 |
* @since 3.6
|
4737 |
*/
|
4738 |
|
4739 |
function almGetAjaxParams(alm, action, queryType) {
|
4740 |
+
// Defaults
|
4741 |
+
var data = {
|
4742 |
+
id: alm.id,
|
4743 |
+
post_id: alm.post_id,
|
4744 |
+
slug: alm.slug,
|
4745 |
+
canonical_url: encodeURIComponent(alm.canonical_url),
|
4746 |
+
posts_per_page: alm.posts_per_page,
|
4747 |
+
page: alm.page,
|
4748 |
+
offset: alm.offset,
|
4749 |
+
post_type: alm.post_type,
|
4750 |
+
repeater: alm.repeater,
|
4751 |
+
seo_start_page: alm.start_page
|
4752 |
+
};
|
4753 |
|
4754 |
+
// Addons & Extensions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4755 |
|
4756 |
+
if (alm.theme_repeater) {
|
4757 |
+
data.theme_repeater = alm.theme_repeater;
|
4758 |
+
}
|
4759 |
+
if (alm.addons.filters) {
|
4760 |
+
data.filters = alm.addons.filters;
|
4761 |
+
data.filters_startpage = alm.addons.filters_startpage;
|
4762 |
+
}
|
4763 |
+
if (alm.addons.paging) {
|
4764 |
+
data.paging = alm.addons.paging;
|
4765 |
+
}
|
4766 |
+
if (alm.addons.preloaded) {
|
4767 |
+
data.preloaded = alm.addons.preloaded;
|
4768 |
+
data.preloaded_amount = alm.addons.preloaded_amount;
|
4769 |
+
}
|
4770 |
+
if (alm.addons.cache === 'true') {
|
4771 |
+
data.cache_id = alm.addons.cache_id;
|
4772 |
+
data.cache_logged_in = alm.addons.cache_logged_in;
|
4773 |
+
}
|
4774 |
+
if (alm.acf_array) {
|
4775 |
+
data.acf = alm.acf_array;
|
4776 |
+
}
|
4777 |
+
if (alm.term_query_array) {
|
4778 |
+
data.term_query = alm.term_query_array;
|
4779 |
+
}
|
4780 |
+
if (alm.cta_array) {
|
4781 |
+
data.cta = alm.cta_array;
|
4782 |
+
}
|
4783 |
+
if (alm.comments_array) {
|
4784 |
+
data.comments = alm.comments_array;
|
4785 |
+
}
|
4786 |
+
if (alm.nextpage_array) {
|
4787 |
+
data.nextpage = alm.nextpage_array;
|
4788 |
+
}
|
4789 |
+
if (alm.single_post_array) {
|
4790 |
+
data.single_post = alm.single_post_array;
|
4791 |
+
}
|
4792 |
+
if (alm.users_array) {
|
4793 |
+
data.users = alm.users_array;
|
4794 |
+
}
|
4795 |
+
|
4796 |
+
// Query data
|
4797 |
+
if (alm.listing.dataset.lang) {
|
4798 |
+
data.lang = alm.listing.dataset.lang;
|
4799 |
+
}
|
4800 |
+
if (alm.listing.dataset.stickyPosts) {
|
4801 |
+
data.sticky_posts = alm.listing.dataset.stickyPosts;
|
4802 |
+
}
|
4803 |
+
if (alm.listing.dataset.postFormat) {
|
4804 |
+
data.post_format = alm.listing.dataset.postFormat;
|
4805 |
+
}
|
4806 |
+
if (alm.listing.dataset.category) {
|
4807 |
+
data.category = alm.listing.dataset.category;
|
4808 |
+
}
|
4809 |
+
if (alm.listing.dataset.categoryAnd) {
|
4810 |
+
data.category__and = alm.listing.dataset.categoryAnd;
|
4811 |
+
}
|
4812 |
+
if (alm.listing.dataset.categoryNotIn) {
|
4813 |
+
data.category__not_in = alm.listing.dataset.categoryNotIn;
|
4814 |
+
}
|
4815 |
+
if (alm.listing.dataset.tag) {
|
4816 |
+
data.tag = alm.listing.dataset.tag;
|
4817 |
+
}
|
4818 |
+
if (alm.listing.dataset.tagAnd) {
|
4819 |
+
data.tag__and = alm.listing.dataset.tagAnd;
|
4820 |
+
}
|
4821 |
+
if (alm.listing.dataset.tagNotIn) {
|
4822 |
+
data.tag__not_in = alm.listing.dataset.tagNotIn;
|
4823 |
+
}
|
4824 |
+
if (alm.listing.dataset.taxonomy) {
|
4825 |
+
data.taxonomy = alm.listing.dataset.taxonomy;
|
4826 |
+
}
|
4827 |
+
if (alm.listing.dataset.taxonomyTerms) {
|
4828 |
+
data.taxonomy_terms = alm.listing.dataset.taxonomyTerms;
|
4829 |
+
}
|
4830 |
+
if (alm.listing.dataset.taxonomyOperator) {
|
4831 |
+
data.taxonomy_operator = alm.listing.dataset.taxonomyOperator;
|
4832 |
+
}
|
4833 |
+
if (alm.listing.dataset.taxonomyRelation) {
|
4834 |
+
data.taxonomy_relation = alm.listing.dataset.taxonomyRelation;
|
4835 |
+
}
|
4836 |
+
if (alm.listing.dataset.metaKey) {
|
4837 |
+
data.meta_key = alm.listing.dataset.metaKey;
|
4838 |
+
}
|
4839 |
+
if (alm.listing.dataset.metaValue) {
|
4840 |
+
data.meta_value = alm.listing.dataset.metaValue;
|
4841 |
+
}
|
4842 |
+
if (alm.listing.dataset.metaCompare) {
|
4843 |
+
data.meta_compare = alm.listing.dataset.metaCompare;
|
4844 |
+
}
|
4845 |
+
if (alm.listing.dataset.metaRelation) {
|
4846 |
+
data.meta_relation = alm.listing.dataset.metaRelation;
|
4847 |
+
}
|
4848 |
+
if (alm.listing.dataset.metaType) {
|
4849 |
+
data.meta_type = alm.listing.dataset.metaType;
|
4850 |
+
}
|
4851 |
+
if (alm.listing.dataset.author) {
|
4852 |
+
data.author = alm.listing.dataset.author;
|
4853 |
+
}
|
4854 |
+
if (alm.listing.dataset.year) {
|
4855 |
+
data.year = alm.listing.dataset.year;
|
4856 |
+
}
|
4857 |
+
if (alm.listing.dataset.month) {
|
4858 |
+
data.month = alm.listing.dataset.month;
|
4859 |
+
}
|
4860 |
+
if (alm.listing.dataset.day) {
|
4861 |
+
data.day = alm.listing.dataset.day;
|
4862 |
+
}
|
4863 |
+
if (alm.listing.dataset.order) {
|
4864 |
+
data.order = alm.listing.dataset.order;
|
4865 |
+
}
|
4866 |
+
if (alm.listing.dataset.orderby) {
|
4867 |
+
data.orderby = alm.listing.dataset.orderby;
|
4868 |
+
}
|
4869 |
+
if (alm.listing.dataset.postStatus) {
|
4870 |
+
data.post_status = alm.listing.dataset.postStatus;
|
4871 |
+
}
|
4872 |
+
if (alm.listing.dataset.postIn) {
|
4873 |
+
data.post__in = alm.listing.dataset.postIn;
|
4874 |
+
}
|
4875 |
+
if (alm.listing.dataset.postNotIn) {
|
4876 |
+
data.post__not_in = alm.listing.dataset.postNotIn;
|
4877 |
+
}
|
4878 |
+
if (alm.listing.dataset.exclude) {
|
4879 |
+
data.exclude = alm.listing.dataset.exclude;
|
4880 |
+
}
|
4881 |
+
if (alm.listing.dataset.search) {
|
4882 |
+
data.search = alm.listing.dataset.search;
|
4883 |
+
}
|
4884 |
+
if (alm.listing.dataset.s) {
|
4885 |
+
data.search = alm.listing.dataset.s;
|
4886 |
+
}
|
4887 |
+
if (alm.listing.dataset.customArgs) {
|
4888 |
+
data.custom_args = escape(alm.listing.dataset.customArgs);
|
4889 |
+
}
|
4890 |
+
if (alm.listing.dataset.vars) {
|
4891 |
+
data.vars = escape(alm.listing.dataset.vars);
|
4892 |
+
}
|
4893 |
|
4894 |
+
data.action = action;
|
4895 |
+
data.query_type = queryType;
|
4896 |
|
4897 |
+
return data;
|
4898 |
}
|
4899 |
|
4900 |
/**
|
4901 |
* almGetRestParams
|
4902 |
* Build the REST API data object to send with REST API request
|
4903 |
+
*
|
4904 |
* @param alm object
|
4905 |
* @since 3.6
|
4906 |
*/
|
4907 |
function almGetRestParams(alm) {
|
4908 |
+
var data = {
|
4909 |
+
id: alm.id,
|
4910 |
+
post_id: alm.post_id,
|
4911 |
+
posts_per_page: alm.posts_per_page,
|
4912 |
+
page: alm.page,
|
4913 |
+
offset: alm.offset,
|
4914 |
+
slug: alm.slug,
|
4915 |
+
canonical_url: encodeURIComponent(alm.canonical_url),
|
4916 |
+
post_type: alm.post_type,
|
4917 |
+
post_format: alm.listing.dataset.postFormat,
|
4918 |
+
category: alm.listing.dataset.category,
|
4919 |
+
category__not_in: alm.listing.dataset.categoryNotIn,
|
4920 |
+
tag: alm.listing.dataset.tag,
|
4921 |
+
tag__not_in: alm.listing.dataset.tagNotIn,
|
4922 |
+
taxonomy: alm.listing.dataset.taxonomy,
|
4923 |
+
taxonomy_terms: alm.listing.dataset.taxonomyTerms,
|
4924 |
+
taxonomy_operator: alm.listing.dataset.taxonomyOperator,
|
4925 |
+
taxonomy_relation: alm.listing.dataset.taxonomyRelation,
|
4926 |
+
meta_key: alm.listing.dataset.metaKey,
|
4927 |
+
meta_value: alm.listing.dataset.metaValue,
|
4928 |
+
meta_compare: alm.listing.dataset.metaCompare,
|
4929 |
+
meta_relation: alm.listing.dataset.metaRelation,
|
4930 |
+
meta_type: alm.listing.dataset.metaType,
|
4931 |
+
author: alm.listing.dataset.author,
|
4932 |
+
year: alm.listing.dataset.year,
|
4933 |
+
month: alm.listing.dataset.month,
|
4934 |
+
day: alm.listing.dataset.day,
|
4935 |
+
post_status: alm.listing.dataset.postStatus,
|
4936 |
+
order: alm.listing.dataset.order,
|
4937 |
+
orderby: alm.listing.dataset.orderby,
|
4938 |
+
post__in: alm.listing.dataset.postIn,
|
4939 |
+
post__not_in: alm.listing.dataset.postNotIn,
|
4940 |
+
search: alm.listing.dataset.search,
|
4941 |
+
s: alm.listing.dataset.s,
|
4942 |
+
custom_args: alm.listing.dataset.customArgs,
|
4943 |
+
vars: alm.listing.dataset.vars,
|
4944 |
+
lang: alm.lang,
|
4945 |
+
preloaded: alm.addons.preloaded,
|
4946 |
+
preloaded_amount: alm.addons.preloaded_amount,
|
4947 |
+
seo_start_page: alm.start_page
|
4948 |
+
};
|
4949 |
+
|
4950 |
+
return data;
|
4951 |
}
|
4952 |
|
4953 |
/***/ }),
|
core/dist/js/ajax-load-more.min.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
-
var ajaxloadmore=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=96)}([function(t,e,n){var r=n(1),o=n(7),a=n(15),i=n(11),s=n(18),l=function(t,e,n){var c,u,d,f,p=t&l.F,g=t&l.G,h=t&l.S,m=t&l.P,v=t&l.B,_=g?r:h?r[e]||(r[e]={}):(r[e]||{}).prototype,y=g?o:o[e]||(o[e]={}),b=y.prototype||(y.prototype={});for(c in g&&(n=e),n)d=((u=!p&&_&&void 0!==_[c])?_:n)[c],f=v&&u?s(d,r):m&&"function"==typeof d?s(Function.call,d):d,_&&i(_,c,d,t&l.U),y[c]!=d&&a(y,c,f),m&&b[c]!=d&&(b[c]=d)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(51)("wks"),o=n(30),a=n(1).Symbol,i="function"==typeof a;(t.exports=function(t){return r[t]||(r[t]=i&&a[t]||(i?a:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(20),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=!n(2)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(3),o=n(108),a=n(27),i=Object.defineProperty;e.f=n(8)?Object.defineProperty:function(t,e,n){if(r(t),e=a(e,!0),r(n),o)try{return i(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(25);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(1),o=n(15),a=n(14),i=n(30)("src"),s=n(185),l=(""+s).split("toString");n(7).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(a(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(a(n,i)||o(n,i,t[e]?""+t[e]:l.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[i]||s.call(this)}))},function(t,e,n){var r=n(0),o=n(2),a=n(25),i=/"/g,s=function(t,e,n,r){var o=String(a(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(r).replace(i,""")+'"'),s+">"+o+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(s),r(r.P+r.F*o((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",n)}},function(t,e,n){"use strict";var r=n(97),o=n(141),a=Object.prototype.toString;function i(t){return"[object Array]"===a.call(t)}function s(t){return null!==t&&"object"==typeof t}function l(t){return"[object Function]"===a.call(t)}function c(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===a.call(t)},isBuffer:o,isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isUndefined:function(t){return void 0===t},isDate:function(t){return"[object Date]"===a.call(t)},isFile:function(t){return"[object File]"===a.call(t)},isBlob:function(t){return"[object Blob]"===a.call(t)},isFunction:l,isStream:function(t){return s(t)&&l(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function t(){var e={};function n(n,r){"object"==typeof e[r]&&"object"==typeof n?e[r]=t(e[r],n):e[r]=n}for(var r=0,o=arguments.length;r<o;r++)c(arguments[r],n);return e},extend:function(t,e,n){return c(e,(function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(9),o=n(29);t.exports=n(8)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(45),o=n(25);t.exports=function(t){return r(o(t))}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},function(t,e,n){var r=n(19);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(46),o=n(29),a=n(16),i=n(27),s=n(14),l=n(108),c=Object.getOwnPropertyDescriptor;e.f=n(8)?c:function(t,e){if(t=a(t),e=i(e,!0),l)try{return c(t,e)}catch(t){}if(s(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(0),o=n(7),a=n(2);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],i={};i[t]=e(n),r(r.S+r.F*a((function(){n(1)})),"Object",i)}},function(t,e,n){var r=n(18),o=n(45),a=n(10),i=n(6),s=n(124);t.exports=function(t,e){var n=1==t,l=2==t,c=3==t,u=4==t,d=6==t,f=5==t||d,p=e||s;return function(e,s,g){for(var h,m,v=a(e),_=o(v),y=r(s,g,3),b=i(_.length),w=0,x=n?p(e,b):l?p(e,0):void 0;b>w;w++)if((f||w in _)&&(m=y(h=_[w],w,v),t))if(n)x[w]=m;else if(m)switch(t){case 3:return!0;case 5:return h;case 6:return w;case 2:x.push(h)}else if(u)return!1;return d?-1:c||u?u:x}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";if(n(8)){var r=n(31),o=n(1),a=n(2),i=n(0),s=n(62),l=n(94),c=n(18),u=n(43),d=n(29),f=n(15),p=n(44),g=n(20),h=n(6),m=n(135),v=n(33),_=n(27),y=n(14),b=n(47),w=n(4),x=n(10),S=n(86),A=n(34),j=n(36),E=n(35).f,L=n(88),P=n(30),M=n(5),O=n(23),T=n(52),I=n(48),F=n(90),C=n(41),N=n(55),k=n(42),R=n(89),q=n(126),D=n(9),z=n(21),B=D.f,W=z.f,H=o.RangeError,U=o.TypeError,V=o.Uint8Array,G=Array.prototype,Y=l.ArrayBuffer,X=l.DataView,Q=O(0),$=O(2),J=O(3),K=O(4),Z=O(5),tt=O(6),et=T(!0),nt=T(!1),rt=F.values,ot=F.keys,at=F.entries,it=G.lastIndexOf,st=G.reduce,lt=G.reduceRight,ct=G.join,ut=G.sort,dt=G.slice,ft=G.toString,pt=G.toLocaleString,gt=M("iterator"),ht=M("toStringTag"),mt=P("typed_constructor"),vt=P("def_constructor"),_t=s.CONSTR,yt=s.TYPED,bt=s.VIEW,wt=O(1,(function(t,e){return Et(I(t,t[vt]),e)})),xt=a((function(){return 1===new V(new Uint16Array([1]).buffer)[0]})),St=!!V&&!!V.prototype.set&&a((function(){new V(1).set({})})),At=function(t,e){var n=g(t);if(n<0||n%e)throw H("Wrong offset!");return n},jt=function(t){if(w(t)&&yt in t)return t;throw U(t+" is not a typed array!")},Et=function(t,e){if(!w(t)||!(mt in t))throw U("It is not a typed array constructor!");return new t(e)},Lt=function(t,e){return Pt(I(t,t[vt]),e)},Pt=function(t,e){for(var n=0,r=e.length,o=Et(t,r);r>n;)o[n]=e[n++];return o},Mt=function(t,e,n){B(t,e,{get:function(){return this._d[n]}})},Ot=function(t){var e,n,r,o,a,i,s=x(t),l=arguments.length,u=l>1?arguments[1]:void 0,d=void 0!==u,f=L(s);if(null!=f&&!S(f)){for(i=f.call(s),r=[],e=0;!(a=i.next()).done;e++)r.push(a.value);s=r}for(d&&l>2&&(u=c(u,arguments[2],2)),e=0,n=h(s.length),o=Et(this,n);n>e;e++)o[e]=d?u(s[e],e):s[e];return o},Tt=function(){for(var t=0,e=arguments.length,n=Et(this,e);e>t;)n[t]=arguments[t++];return n},It=!!V&&a((function(){pt.call(new V(1))})),Ft=function(){return pt.apply(It?dt.call(jt(this)):jt(this),arguments)},Ct={copyWithin:function(t,e){return q.call(jt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return K(jt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return R.apply(jt(this),arguments)},filter:function(t){return Lt(this,$(jt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(jt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(jt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(jt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(jt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(jt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ct.apply(jt(this),arguments)},lastIndexOf:function(t){return it.apply(jt(this),arguments)},map:function(t){return wt(jt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return st.apply(jt(this),arguments)},reduceRight:function(t){return lt.apply(jt(this),arguments)},reverse:function(){for(var t,e=jt(this).length,n=Math.floor(e/2),r=0;r<n;)t=this[r],this[r++]=this[--e],this[e]=t;return this},some:function(t){return J(jt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return ut.call(jt(this),t)},subarray:function(t,e){var n=jt(this),r=n.length,o=v(t,r);return new(I(n,n[vt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,h((void 0===e?r:v(e,r))-o))}},Nt=function(t,e){return Lt(this,dt.call(jt(this),t,e))},kt=function(t){jt(this);var e=At(arguments[1],1),n=this.length,r=x(t),o=h(r.length),a=0;if(o+e>n)throw H("Wrong length!");for(;a<o;)this[e+a]=r[a++]},Rt={entries:function(){return at.call(jt(this))},keys:function(){return ot.call(jt(this))},values:function(){return rt.call(jt(this))}},qt=function(t,e){return w(t)&&t[yt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Dt=function(t,e){return qt(t,e=_(e,!0))?d(2,t[e]):W(t,e)},zt=function(t,e,n){return!(qt(t,e=_(e,!0))&&w(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?B(t,e,n):(t[e]=n.value,t)};_t||(z.f=Dt,D.f=zt),i(i.S+i.F*!_t,"Object",{getOwnPropertyDescriptor:Dt,defineProperty:zt}),a((function(){ft.call({})}))&&(ft=pt=function(){return ct.call(this)});var Bt=p({},Ct);p(Bt,Rt),f(Bt,gt,Rt.values),p(Bt,{slice:Nt,set:kt,constructor:function(){},toString:ft,toLocaleString:Ft}),Mt(Bt,"buffer","b"),Mt(Bt,"byteOffset","o"),Mt(Bt,"byteLength","l"),Mt(Bt,"length","e"),B(Bt,ht,{get:function(){return this[yt]}}),t.exports=function(t,e,n,l){var c=t+((l=!!l)?"Clamped":"")+"Array",d="get"+t,p="set"+t,g=o[c],v=g||{},_=g&&j(g),y=!g||!s.ABV,x={},S=g&&g.prototype,L=function(t,n){B(t,n,{get:function(){return function(t,n){var r=t._d;return r.v[d](n*e+r.o,xt)}(this,n)},set:function(t){return function(t,n,r){var o=t._d;l&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),o.v[p](n*e+o.o,r,xt)}(this,n,t)},enumerable:!0})};y?(g=n((function(t,n,r,o){u(t,g,c,"_d");var a,i,s,l,d=0,p=0;if(w(n)){if(!(n instanceof Y||"ArrayBuffer"==(l=b(n))||"SharedArrayBuffer"==l))return yt in n?Pt(g,n):Ot.call(g,n);a=n,p=At(r,e);var v=n.byteLength;if(void 0===o){if(v%e)throw H("Wrong length!");if((i=v-p)<0)throw H("Wrong length!")}else if((i=h(o)*e)+p>v)throw H("Wrong length!");s=i/e}else s=m(n),a=new Y(i=s*e);for(f(t,"_d",{b:a,o:p,l:i,e:s,v:new X(a)});d<s;)L(t,d++)})),S=g.prototype=A(Bt),f(S,"constructor",g)):a((function(){g(1)}))&&a((function(){new g(-1)}))&&N((function(t){new g,new g(null),new g(1.5),new g(t)}),!0)||(g=n((function(t,n,r,o){var a;return u(t,g,c),w(n)?n instanceof Y||"ArrayBuffer"==(a=b(n))||"SharedArrayBuffer"==a?void 0!==o?new v(n,At(r,e),o):void 0!==r?new v(n,At(r,e)):new v(n):yt in n?Pt(g,n):Ot.call(g,n):new v(m(n))})),Q(_!==Function.prototype?E(v).concat(E(_)):E(v),(function(t){t in g||f(g,t,v[t])})),g.prototype=S,r||(S.constructor=g));var P=S[gt],M=!!P&&("values"==P.name||null==P.name),O=Rt.values;f(g,mt,!0),f(S,yt,c),f(S,bt,!0),f(S,vt,g),(l?new g(1)[ht]==c:ht in S)||B(S,ht,{get:function(){return c}}),x[c]=g,i(i.G+i.W+i.F*(g!=v),x),i(i.S,c,{BYTES_PER_ELEMENT:e}),i(i.S+i.F*a((function(){v.of.call(g,1)})),c,{from:Ot,of:Tt}),"BYTES_PER_ELEMENT"in S||f(S,"BYTES_PER_ELEMENT",e),i(i.P,c,Ct),k(c),i(i.P+i.F*St,c,{set:kt}),i(i.P+i.F*!M,c,Rt),r||S.toString==ft||(S.toString=ft),i(i.P+i.F*a((function(){new g(1).slice()})),c,{slice:Nt}),i(i.P+i.F*(a((function(){return[1,2].toLocaleString()!=new g([1,2]).toLocaleString()}))||!a((function(){S.toLocaleString.call([1,2])}))),c,{toLocaleString:Ft}),C[c]=M?P:O,r||M||f(S,gt,O)}}else t.exports=function(){}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(30)("meta"),o=n(4),a=n(14),i=n(9).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(2)((function(){return l(Object.preventExtensions({}))})),u=function(t){i(t,r,{value:{i:"O"+ ++s,w:{}}})},d=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,r)){if(!l(t))return"F";if(!e)return"E";u(t)}return t[r].i},getWeak:function(t,e){if(!a(t,r)){if(!l(t))return!0;if(!e)return!1;u(t)}return t[r].w},onFreeze:function(t){return c&&d.NEED&&l(t)&&!a(t,r)&&u(t),t}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=!1},function(t,e,n){var r=n(110),o=n(73);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(20),o=Math.max,a=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):a(t,e)}},function(t,e,n){var r=n(3),o=n(111),a=n(73),i=n(72)("IE_PROTO"),s=function(){},l=function(){var t,e=n(70)("iframe"),r=a.length;for(e.style.display="none",n(74).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;r--;)delete l.prototype[a[r]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[i]=t):n=l(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(110),o=n(73).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(14),o=n(10),a=n(72)("IE_PROTO"),i=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?i:null}},function(t,e,n){var r=n(5)("unscopables"),o=Array.prototype;null==o[r]&&n(15)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){var r=n(9).f,o=n(14),a=n(5)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},function(t,e,n){var r=n(0),o=n(25),a=n(2),i=n(76),s="["+i+"]",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),u=function(t,e,n){var o={},s=a((function(){return!!i[t]()||"
"!="
"[t]()})),l=o[t]=s?e(d):i[t];n&&(o[n]=l),r(r.P+r.F*s,"String",o)},d=u.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(c,"")),t};t.exports=u},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(1),o=n(9),a=n(8),i=n(5)("species");t.exports=function(t){var e=r[t];a&&e&&!e[i]&&o.f(e,i,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(11);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){var r=n(24);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(24),o=n(5)("toStringTag"),a="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:a?r(e):"Object"==(i=r(e))&&"function"==typeof e.callee?"Arguments":i}},function(t,e,n){var r=n(3),o=n(19),a=n(5)("species");t.exports=function(t,e){var n,i=r(t).constructor;return void 0===i||null==(n=r(i)[a])?e:o(n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!alm_localize.a11y_focus)return!1;t.addons.woocommerce||t.addons.elementor?r(!1,!1,e,!1,t.isSafari):t.transition_container&&n>0?t.addons.paging?r(t.init,t.addons.preloaded,t.listing,o,t.isSafari):t.addons.single_post||t.addons.nextpage?r(!1,t.addons.preloaded,e,o,t.isSafari):r(t.init,t.addons.preloaded,e,o,t.isSafari):t.transition_container||r(t.init,t.addons.preloaded,e[0],o,t.isSafari)};var r=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"false",n=arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!r&&(t||!n)&&"true"!==e)return!1;n.setAttribute("tabIndex","-1"),n.style.outline="none";var o=n.classList.contains("alm-listing")?n:n.parentNode,a=o.dataset.scrollContainer;if(a){var i=document.querySelector(a);i&&setTimeout((function(){n.focus({preventScroll:!0})}),50)}else setTimeout((function(){n.focus({preventScroll:!0})}),50)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){if(0==e)t.style.opacity=1,t.style.height="auto";else{e/=10;var n=0,r=setInterval((function(){n>.9&&(t.style.opacity=1,clearInterval(r)),t.style.opacity=n,n+=.1}),e);t.style.height="auto"}}},function(t,e,n){var r=n(7),o=n(1),a=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(31)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(16),o=n(6),a=n(33);t.exports=function(t){return function(e,n,i){var s,l=r(e),c=o(l.length),u=a(i,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(5)("iterator"),o=!1;try{var a=[7][r]();a.return=function(){o=!0},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var a=[7],i=a[r]();i.next=function(){return{done:n=!0}},a[r]=function(){return i},t(a)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(3);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(47),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var a=n.call(t,e);if("object"!=typeof a)throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,n){"use strict";n(128);var r=n(11),o=n(15),a=n(2),i=n(25),s=n(5),l=n(91),c=s("species"),u=!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var f=s(t),p=!a((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),g=p?!a((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[f](""),!e})):void 0;if(!p||!g||"replace"===t&&!u||"split"===t&&!d){var h=/./[f],m=n(i,f,""[t],(function(t,e,n,r,o){return e.exec===l?p&&!o?{done:!0,value:h.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),v=m[0],_=m[1];r(String.prototype,t,v),o(RegExp.prototype,f,2==e?function(t,e){return _.call(t,this,e)}:function(t){return _.call(t,this)})}}},function(t,e,n){var r=n(18),o=n(123),a=n(86),i=n(3),s=n(6),l=n(88),c={},u={};(e=t.exports=function(t,e,n,d,f){var p,g,h,m,v=f?function(){return t}:l(t),_=r(n,d,e?2:1),y=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(a(v)){for(p=s(t.length);p>y;y++)if((m=e?_(i(g=t[y])[0],g[1]):_(t[y]))===c||m===u)return m}else for(h=v.call(t);!(g=h.next()).done;)if((m=o(h,_,g.value,e))===c||m===u)return m}).BREAK=c,e.RETURN=u},function(t,e,n){var r=n(1).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){"use strict";var r=n(1),o=n(0),a=n(11),i=n(44),s=n(28),l=n(59),c=n(43),u=n(4),d=n(2),f=n(55),p=n(39),g=n(77);t.exports=function(t,e,n,h,m,v){var _=r[t],y=_,b=m?"set":"add",w=y&&y.prototype,x={},S=function(t){var e=w[t];a(w,t,"delete"==t||"has"==t?function(t){return!(v&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!u(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof y&&(v||w.forEach&&!d((function(){(new y).entries().next()})))){var A=new y,j=A[b](v?{}:-0,1)!=A,E=d((function(){A.has(1)})),L=f((function(t){new y(t)})),P=!v&&d((function(){for(var t=new y,e=5;e--;)t[b](e,e);return!t.has(-0)}));L||((y=e((function(e,n){c(e,y,t);var r=g(new _,e,y);return null!=n&&l(n,m,r[b],r),r}))).prototype=w,w.constructor=y),(E||P)&&(S("delete"),S("has"),m&&S("get")),(P||j)&&S(b),v&&w.clear&&delete w.clear}else y=h.getConstructor(e,t,m,b),i(y.prototype,n),s.NEED=!0;return p(y,t),x[t]=y,o(o.G+o.W+o.F*(y!=_),x),v||h.setStrong(y,t,m),y}},function(t,e,n){for(var r,o=n(1),a=n(15),i=n(30),s=i("typed_array"),l=i("view"),c=!(!o.ArrayBuffer||!o.DataView),u=c,d=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");d<9;)(r=o[f[d++]])?(a(r.prototype,s,!0),a(r.prototype,l,!0)):u=!1;t.exports={ABV:c,CONSTR:u,TYPED:s,VIEW:l}},function(t,e,n){t.exports=n(140)},function(t,e,n){"use strict";(function(e){var r=n(13),o=n(144),a={"Content-Type":"application/x-www-form-urlencoded"};function i(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,l={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e)&&(s=n(98)),s),transformRequest:[function(t,e){return o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(i(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(i(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){l.headers[t]=r.merge(a)})),t.exports=l}).call(this,n(143))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseQuerystring=function(t){var e=window.location.search.substring(1),n="",r="";e&&((n=JSON.parse('{"'+e.replace(/&/g,'","').replace(/=/g,'":"')+'"}',(function(t,e){return""===t?e:decodeURIComponent(e.replace(/\+/g,"-"))}))).pg&&delete n.pg,n.auto&&delete n.auto);n&&(r+="/",Object.keys(n).forEach((function(t,e){r+=e>0?"--":"",r+=t+"--"+n[t]})));return t+r},e.buildFilterURL=i,e.createMasonryFiltersPage=function(t,e){if(!t.addons.filters)return e;var n=window.location.search,r=t.page+1;return r="true"===t.addons.preloaded?r+1:r,e=s(t,e,n,r)},e.createMasonryFiltersPages=function(t,e){if(!t.addons.filters)return e;var n=1,r=t.page,o=window.location.search;if(t.addons.filters_startpage>1){for(var a=parseInt(t.posts_per_page),i=[],l=0;l<e.length;l+=a)i.push(e.slice(l,a+l));for(var c=0;c<i.length;c++){var u=c>0?c*a:0;n=c+1,e[u]&&(e[u]=s(t,e[u],o,n))}}else n=r,e[0]=s(t,e[0],o,n);return e};var r,o=n(164),a=(r=o)&&r.__esModule?r:{default:r};function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=e;return t.addons.filters_paging&&(r=n>1?r?(0,a.default)("pg")?e.replace(/(pg=)[^\&]+/,"$1"+n):e+"&pg="+n:"?pg="+n:"&"===(r="?"===(r=e.replace(/(pg=)[^\&]+/,""))?"":r)[r.length-1]?r.slice(0,-1):r),r}function s(t,e,n,r){if(e.classList.add("alm-filters"),e.dataset.page=r,r>1)e.dataset.url=t.canonical_url+i(t,n,r);else{var o=n.replace(/(pg=)[^\&]+/,"");o="?"===o?"":o,e.dataset.url=t.canonical_url+o}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text/html";if(!t)return!1;var n=new DOMParser,r=n.parseFromString(t,e);return r?Array.prototype.slice.call(r.body.childNodes):r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!t)return!1;if(e.indexOf("Safari")>-1&&-1!=e.indexOf("Chrome")||e.indexOf("Firefox")>-1||e.indexOf("Windows")>-1)return!1;for(var n=t.querySelectorAll("img[srcset]:not(.alm-loaded)"),r=0;r<n.length;r++){var o=n[r];o.classList.add("alm-loaded"),o.outerHTML=o.outerHTML}}},function(t,e,n){var r,o;
|
2 |
/*!
|
3 |
* imagesLoaded v4.1.4
|
4 |
* JavaScript is all like "You images are done yet or what?"
|
5 |
* MIT License
|
6 |
-
*/!function(a,i){"use strict";r=[n(170)],void 0===(o=function(t){return function(t,e){var n=t.jQuery,r=t.console;function o(t,e){for(var n in e)t[n]=e[n];return t}var a=Array.prototype.slice;function i(t,e,s){if(!(this instanceof i))return new i(t,e,s);var l,c=t;("string"==typeof t&&(c=document.querySelectorAll(t)),c)?(this.elements=(l=c,Array.isArray(l)?l:"object"==typeof l&&"number"==typeof l.length?a.call(l):[l]),this.options=o({},this.options),"function"==typeof e?s=e:o(this.options,e),s&&this.on("always",s),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(c||t))}i.prototype=Object.create(e.prototype),i.prototype.options={},i.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},i.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&s[e]){for(var n=t.querySelectorAll("img"),r=0;r<n.length;r++){var o=n[r];this.addImage(o)}if("string"==typeof this.options.background){var a=t.querySelectorAll(this.options.background);for(r=0;r<a.length;r++){var i=a[r];this.addElementBackgroundImages(i)}}}};var s={1:!0,9:!0,11:!0};function l(t){this.img=t}function c(t,e){this.url=t,this.element=e,this.img=new Image}return i.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var n=/url\((['"])?(.*?)\1\)/gi,r=n.exec(e.backgroundImage);null!==r;){var o=r&&r[2];o&&this.addBackground(o,t),r=n.exec(e.backgroundImage)}},i.prototype.addImage=function(t){var e=new l(t);this.images.push(e)},i.prototype.addBackground=function(t,e){var n=new c(t,e);this.images.push(n)},i.prototype.check=function(){var t=this;function e(e,n,r){setTimeout((function(){t.progress(e,n,r)}))}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(t){t.once("progress",e),t.check()})):this.complete()},i.prototype.progress=function(t,e,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+n,t,e)},i.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},l.prototype=Object.create(e.prototype),l.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},l.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},l.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},l.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},l.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},l.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype=Object.create(l.prototype),c.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},c.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},i.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((n=e).fn.imagesLoaded=function(t,e){return new i(this,t,e).jqDeferred.promise(n(this))})},i.makeJQueryPlugin(),i}(a,t)}.apply(e,r))||(t.exports=o)}("undefined"!=typeof window?window:this)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){e/=10,t.style.opacity=.5;var n=setInterval((function(){t.style.opacity<.1?clearInterval(n):t.style.opacity-=.1}),e)}},function(t,e,n){var r=n(4),o=n(1).document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,n){e.f=n(5)},function(t,e,n){var r=n(51)("keys"),o=n(30);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(1).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(4),o=n(3),a=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(18)(Function.call,n(21).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return a(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:a}},function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,e,n){var r=n(4),o=n(75).set;t.exports=function(t,e,n){var a,i=e.constructor;return i!==n&&"function"==typeof i&&(a=i.prototype)!==n.prototype&&r(a)&&o&&o(t,a),t}},function(t,e,n){"use strict";var r=n(20),o=n(25);t.exports=function(t){var e=String(o(this)),n="",a=r(t);if(a<0||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(20),o=n(25);t.exports=function(t){return function(e,n){var a,i,s=String(o(e)),l=r(n),c=s.length;return l<0||l>=c?t?"":void 0:(a=s.charCodeAt(l))<55296||a>56319||l+1===c||(i=s.charCodeAt(l+1))<56320||i>57343?t?s.charAt(l):a:t?s.slice(l,l+2):i-56320+(a-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(31),o=n(0),a=n(11),i=n(15),s=n(41),l=n(122),c=n(39),u=n(36),d=n(5)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,g,h,m,v){l(n,e,g);var _,y,b,w=function(t){if(!f&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",S="values"==h,A=!1,j=t.prototype,E=j[d]||j["@@iterator"]||h&&j[h],L=E||w(h),P=h?S?w("entries"):L:void 0,M="Array"==e&&j.entries||E;if(M&&(b=u(M.call(new t)))!==Object.prototype&&b.next&&(c(b,x,!0),r||"function"==typeof b[d]||i(b,d,p)),S&&E&&"values"!==E.name&&(A=!0,L=function(){return E.call(this)}),r&&!v||!f&&!A&&j[d]||i(j,d,L),s[e]=L,s[x]=p,h)if(_={values:S?L:w("values"),keys:m?L:w("keys"),entries:P},v)for(y in _)y in j||a(j,y,_[y]);else o(o.P+o.F*(f||A),e,_);return _}},function(t,e,n){var r=n(84),o=n(25);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){var r=n(4),o=n(24),a=n(5)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(5)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(41),o=n(5)("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[o]===t)}},function(t,e,n){"use strict";var r=n(9),o=n(29);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(47),o=n(5)("iterator"),a=n(41);t.exports=n(7).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||a[r(t)]}},function(t,e,n){"use strict";var r=n(10),o=n(33),a=n(6);t.exports=function(t){for(var e=r(this),n=a(e.length),i=arguments.length,s=o(i>1?arguments[1]:void 0,n),l=i>2?arguments[2]:void 0,c=void 0===l?n:o(l,n);c>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var r=n(37),o=n(127),a=n(41),i=n(16);t.exports=n(82)(Array,"Array",(function(t,e){this._t=i(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";var r,o,a=n(56),i=RegExp.prototype.exec,s=String.prototype.replace,l=i,c=(r=/a/,o=/b*/g,i.call(r,"a"),i.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(l=function(t){var e,n,r,o,l=this;return u&&(n=new RegExp("^"+l.source+"$(?!\\s)",a.call(l))),c&&(e=l.lastIndex),r=i.call(l,t),c&&r&&(l.lastIndex=l.global?r.index+r[0].length:e),u&&r&&r.length>1&&s.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),t.exports=l},function(t,e,n){"use strict";var r=n(81)(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){var r,o,a,i=n(18),s=n(116),l=n(74),c=n(70),u=n(1),d=u.process,f=u.setImmediate,p=u.clearImmediate,g=u.MessageChannel,h=u.Dispatch,m=0,v={},_=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},y=function(t){_.call(t.data)};f&&p||(f=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++m]=function(){s("function"==typeof t?t:Function(t),e)},r(m),m},p=function(t){delete v[t]},"process"==n(24)(d)?r=function(t){d.nextTick(i(_,t,1))}:h&&h.now?r=function(t){h.now(i(_,t,1))}:g?(a=(o=new g).port2,o.port1.onmessage=y,r=i(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(t){u.postMessage(t+"","*")},u.addEventListener("message",y,!1)):r="onreadystatechange"in c("script")?function(t){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),_.call(t)}}:function(t){setTimeout(i(_,t,1),0)}),t.exports={set:f,clear:p}},function(t,e,n){"use strict";var r=n(1),o=n(8),a=n(31),i=n(62),s=n(15),l=n(44),c=n(2),u=n(43),d=n(20),f=n(6),p=n(135),g=n(35).f,h=n(9).f,m=n(89),v=n(39),_=r.ArrayBuffer,y=r.DataView,b=r.Math,w=r.RangeError,x=r.Infinity,S=_,A=b.abs,j=b.pow,E=b.floor,L=b.log,P=b.LN2,M=o?"_b":"buffer",O=o?"_l":"byteLength",T=o?"_o":"byteOffset";function I(t,e,n){var r,o,a,i=new Array(n),s=8*n-e-1,l=(1<<s)-1,c=l>>1,u=23===e?j(2,-24)-j(2,-77):0,d=0,f=t<0||0===t&&1/t<0?1:0;for((t=A(t))!=t||t===x?(o=t!=t?1:0,r=l):(r=E(L(t)/P),t*(a=j(2,-r))<1&&(r--,a*=2),(t+=r+c>=1?u/a:u*j(2,1-c))*a>=2&&(r++,a/=2),r+c>=l?(o=0,r=l):r+c>=1?(o=(t*a-1)*j(2,e),r+=c):(o=t*j(2,c-1)*j(2,e),r=0));e>=8;i[d++]=255&o,o/=256,e-=8);for(r=r<<e|o,s+=e;s>0;i[d++]=255&r,r/=256,s-=8);return i[--d]|=128*f,i}function F(t,e,n){var r,o=8*n-e-1,a=(1<<o)-1,i=a>>1,s=o-7,l=n-1,c=t[l--],u=127&c;for(c>>=7;s>0;u=256*u+t[l],l--,s-=8);for(r=u&(1<<-s)-1,u>>=-s,s+=e;s>0;r=256*r+t[l],l--,s-=8);if(0===u)u=1-i;else{if(u===a)return r?NaN:c?-x:x;r+=j(2,e),u-=i}return(c?-1:1)*r*j(2,u-e)}function C(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function N(t){return[255&t]}function k(t){return[255&t,t>>8&255]}function R(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function q(t){return I(t,52,8)}function D(t){return I(t,23,4)}function z(t,e,n){h(t.prototype,e,{get:function(){return this[n]}})}function B(t,e,n,r){var o=p(+n);if(o+e>t[O])throw w("Wrong index!");var a=t[M]._b,i=o+t[T],s=a.slice(i,i+e);return r?s:s.reverse()}function W(t,e,n,r,o,a){var i=p(+n);if(i+e>t[O])throw w("Wrong index!");for(var s=t[M]._b,l=i+t[T],c=r(+o),u=0;u<e;u++)s[l+u]=c[a?u:e-u-1]}if(i.ABV){if(!c((function(){_(1)}))||!c((function(){new _(-1)}))||c((function(){return new _,new _(1.5),new _(NaN),"ArrayBuffer"!=_.name}))){for(var H,U=(_=function(t){return u(this,_),new S(p(t))}).prototype=S.prototype,V=g(S),G=0;V.length>G;)(H=V[G++])in _||s(_,H,S[H]);a||(U.constructor=_)}var Y=new y(new _(2)),X=y.prototype.setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||l(y.prototype,{setInt8:function(t,e){X.call(this,t,e<<24>>24)},setUint8:function(t,e){X.call(this,t,e<<24>>24)}},!0)}else _=function(t){u(this,_,"ArrayBuffer");var e=p(t);this._b=m.call(new Array(e),0),this[O]=e},y=function(t,e,n){u(this,y,"DataView"),u(t,_,"DataView");var r=t[O],o=d(e);if(o<0||o>r)throw w("Wrong offset!");if(o+(n=void 0===n?r-o:f(n))>r)throw w("Wrong length!");this[M]=t,this[T]=o,this[O]=n},o&&(z(_,"byteLength","_l"),z(y,"buffer","_b"),z(y,"byteLength","_l"),z(y,"byteOffset","_o")),l(y.prototype,{getInt8:function(t){return B(this,1,t)[0]<<24>>24},getUint8:function(t){return B(this,1,t)[0]},getInt16:function(t){var e=B(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=B(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return C(B(this,4,t,arguments[1]))},getUint32:function(t){return C(B(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return F(B(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return F(B(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){W(this,1,t,N,e)},setUint8:function(t,e){W(this,1,t,N,e)},setInt16:function(t,e){W(this,2,t,k,e,arguments[2])},setUint16:function(t,e){W(this,2,t,k,e,arguments[2])},setInt32:function(t,e){W(this,4,t,R,e,arguments[2])},setUint32:function(t,e){W(this,4,t,R,e,arguments[2])},setFloat32:function(t,e){W(this,4,t,D,e,arguments[2])},setFloat64:function(t,e){W(this,8,t,q,e,arguments[2])}});v(_,"ArrayBuffer"),v(y,"DataView"),s(y.prototype,i.VIEW,!0),e.ArrayBuffer=_,e.DataView=y},function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),i=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:i,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var a=e[r],i=a.obj[a.prop],s=Object.keys(i),l=0;l<s.length;++l){var c=s[l],u=i[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(e.push({obj:i,prop:c}),n.push(u))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(o(n)){for(var r=[],a=0;a<n.length;++a)void 0!==n[a]&&r.push(n[a]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(t,e,n){if(0===t.length)return t;var r=t;if("symbol"==typeof t?r=Symbol.prototype.toString.call(t):"string"!=typeof t&&(r=String(t)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var o="",i=0;i<r.length;++i){var s=r.charCodeAt(i);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=r.charAt(i):s<128?o+=a[s]:s<2048?o+=a[192|s>>6]+a[128|63&s]:s<55296||s>=57344?o+=a[224|s>>12]+a[128|s>>6&63]+a[128|63&s]:(i+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(i)),o+=a[240|s>>18]+a[128|s>>12&63]+a[128|s>>6&63]+a[128|63&s])}return o},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(o(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)},merge:function t(e,n,a){if(!n)return e;if("object"!=typeof n){if(o(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(a&&(a.plainObjects||a.allowPrototypes)||!r.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var s=e;return o(e)&&!o(n)&&(s=i(e,a)),o(e)&&o(n)?(n.forEach((function(n,o){if(r.call(e,o)){var i=e[o];i&&"object"==typeof i&&n&&"object"==typeof n?e[o]=t(i,n,a):e.push(n)}else e[o]=n})),e):Object.keys(n).reduce((function(e,o){var i=n[o];return r.call(e,o)?e[o]=t(e[o],i,a):e[o]=i,e}),s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.render=e.getOffset=e.almScroll=e.start=e.tracking=e.tab=e.reset=e.filter=void 0;var r=C(n(63)),o=C(n(158));n(159);var a=C(n(160)),i=C(n(102)),s=C(n(162)),l=C(n(163)),c=C(n(66)),u=C(n(103)),d=F(n(165)),f=F(n(104)),p=n(105),g=C(n(166)),h=C(n(167)),m=C(n(49)),v=C(n(168)),_=C(n(169)),y=C(n(50)),b=C(n(69)),w=C(n(171)),x=C(n(172)),S=C(n(173)),A=C(n(174)),j=C(n(67)),E=n(175),L=n(176),P=n(177),M=n(178),O=n(180),T=n(65),I=n(106);function F(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function C(t){return t&&t.__esModule?t:{default:t}}function N(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}n(181),n(354),n(355);var k=n(356),R=n(68);o.default.polyfill();var q=!1;!function(){var t=function(t,e){alm_localize&&"true"===alm_localize.scrolltop&&window.scrollTo(0,0);var n=this;n.AjaxLoadMore={},n.addons={},n.extensions={},n.integration={},n.window=window,n.page=0,n.posts=0,n.totalposts=0,n.proceed=!1,n.disable_ajax=!1,n.init=!0,n.loading=!0,n.finished=!1,n.timer=null,n.ua=window.navigator.userAgent?window.navigator.userAgent:"",n.vendor=window.navigator.vendor?window.navigator.vendor:"",n.isSafari=/Safari/i.test(n.ua)&&/Apple Computer/.test(n.vendor)&&!/Mobi|Android/i.test(n.ua),n.main=t,n.master_id=t.dataset.id?"ajax-load-more-"+t.dataset.id:t.id,t.classList.add("alm-"+e),t.setAttribute("data-alm-id",e),n.master_id=n.master_id.replace(/-/g,"_"),n.localize=window[n.master_id+"_vars"],n.main=t,n.listing=t.querySelector(".alm-listing")||t.querySelector(".alm-comments"),n.content=n.listing,n.el=n.content,n.ajax=t.querySelector(".alm-ajax"),n.container_type=n.listing.dataset.containerType,n.canonical_url=t.dataset.canonicalUrl,n.nested=t.dataset.nested?t.dataset.nested:null,n.is_search=t.dataset.search,n.slug=t.dataset.slug,n.post_id=t.dataset.postId,n.id=t.dataset.id?t.dataset.id:"";var o=t.querySelector(".alm-no-results");if(n.no_results=o?o.innerHTML:"",n.repeater=n.listing.dataset.repeater,n.theme_repeater=n.listing.dataset.themeRepeater,n.post_type=n.listing.dataset.postType?n.listing.dataset.postType:"post",n.sticky_posts=n.listing.dataset.stickyPosts?n.listing.dataset.stickyPosts:null,n.btnWrap=t.querySelectorAll(".alm-btn-wrap"),n.btnWrap=Array.prototype.slice.call(n.btnWrap),n.btnWrap[n.btnWrap.length-1].style.visibility="visible",n.trigger=n.btnWrap[n.btnWrap.length-1],n.button=n.trigger.querySelector("button.alm-load-more-btn"),n.button_label=n.listing.dataset.buttonLabel,n.button_loading_label=n.listing.dataset.buttonLoadingLabel,n.button_done_label=n.listing.dataset.buttonDoneLabel,n.placeholder=n.main.querySelector(".alm-placeholder"),n.scroll_distance=n.listing.dataset.scrollDistance,n.scroll_distance=n.scroll_distance?n.scroll_distance:100,n.scroll_container=n.listing.dataset.scrollContainer,n.scroll_direction=n.listing.dataset.scrollDirection,n.max_pages=n.listing.dataset.maxPages?parseInt(n.listing.dataset.maxPages):0,n.pause_override=n.listing.dataset.pauseOverride,n.pause=!!n.listing.dataset.pause&&n.listing.dataset.pause,n.transition=n.listing.dataset.transition,n.transition_container=n.listing.dataset.transitionContainer,n.tcc=n.listing.dataset.transitionContainerClasses,n.speed=alm_localize.speed?parseInt(alm_localize.speed):200,n.images_loaded=!!n.listing.dataset.imagesLoaded&&n.listing.dataset.imagesLoaded,n.destroy_after=n.listing.dataset.destroyAfter?n.listing.dataset.destroyAfter:"",n.orginal_posts_per_page=parseInt(n.listing.dataset.postsPerPage),n.posts_per_page=n.listing.dataset.postsPerPage,n.offset=n.listing.dataset.offset?parseInt(n.listing.dataset.offset):0,n.integration.woocommerce=!!n.listing.dataset.woocommerce&&n.listing.dataset.woocommerce,n.integration.woocommerce="true"===n.integration.woocommerce,n.is_search=void 0!==n.is_search&&n.is_search,n.search_value="true"===n.is_search?n.slug:"",n.addons.elementor=!("posts"!==n.listing.dataset.elementor||!n.listing.dataset.elementorSettings),n.addons.elementor&&(n=(0,O.elementorCreateParams)(n)),n.addons.woocommerce=!(!n.listing.dataset.woo||"true"!==n.listing.dataset.woo),n.addons.woocommerce&&n.listing.dataset.wooSettings&&(n.addons.woocommerce_settings=JSON.parse(n.listing.dataset.wooSettings),n.addons.woocommerce_settings.results_text=document.querySelectorAll(n.addons.woocommerce_settings.results),n.page=parseInt(n.page)+parseInt(n.addons.woocommerce_settings.paged)),n.addons.cache=n.listing.dataset.cache,n.addons.cache=void 0!==n.addons.cache&&n.addons.cache,"true"===n.addons.cache&&(n.addons.cache_id=n.listing.dataset.cacheId,n.addons.cache_path=n.listing.dataset.cachePath,n.addons.cache_logged_in=n.listing.dataset.cacheLoggedIn,n.addons.cache_logged_in=void 0!==n.addons.cache_logged_in&&n.addons.cache_logged_in),n.addons.cta=!!n.listing.dataset.cta&&n.listing.dataset.cta,"true"===n.addons.cta&&(n.addons.cta_position=n.listing.dataset.ctaPosition,n.addons.cta_repeater=n.listing.dataset.ctaRepeater,n.addons.cta_theme_repeater=n.listing.dataset.ctaThemeRepeater),n.addons.nextpage=n.listing.dataset.nextpage,"true"===n.addons.nextpage&&(n.addons.nextpage_urls=n.listing.dataset.nextpageUrls,n.addons.nextpage_scroll=n.listing.dataset.nextpageScroll,n.addons.nextpage_pageviews=n.listing.dataset.nextpagePageviews,n.addons.nextpage_post_id=n.listing.dataset.nextpagePostId,n.addons.nextpage_startpage=n.listing.dataset.nextpageStartpage),n.addons.single_post=n.listing.dataset.singlePost,"true"===n.addons.single_post&&(n.addons.single_post_id=n.listing.dataset.singlePostId,n.addons.single_post_order=n.listing.dataset.singlePostOrder,n.addons.single_post_init_id=n.listing.dataset.singlePostId,n.addons.single_post_taxonomy=n.listing.dataset.singlePostTaxonomy,n.addons.single_post_excluded_terms=n.listing.dataset.singlePostExcludedTerms,n.addons.single_post_progress_bar=n.listing.dataset.singlePostProgressBar,n.addons.single_post_target=n.listing.dataset.singlePostTarget),n.addons.comments=!!n.listing.dataset.comments&&n.listing.dataset.comments,"true"===n.addons.comments&&(n.addons.comments_post_id=n.listing.dataset.comments_post_id,n.addons.comments_per_page=n.listing.dataset.comments_per_page,n.addons.comments_per_page=void 0===n.addons.comments_per_page?"5":n.addons.comments_per_page,n.addons.comments_type=n.listing.dataset.comments_type,n.addons.comments_style=n.listing.dataset.comments_style,n.addons.comments_template=n.listing.dataset.comments_template,n.addons.comments_callback=n.listing.dataset.comments_callback),n.addons.tabs=n.listing.dataset.tabs,n.addons.filters=n.listing.dataset.filters,n.addons.seo=n.listing.dataset.seo,n.addons.preloaded=n.listing.dataset.preloaded,n.addons.preloaded_amount=n.listing.dataset.preloadedAmount?n.listing.dataset.preloadedAmount:0,n.is_preloaded="true"===n.listing.dataset.isPreloaded,n.addons.users="true"===n.listing.dataset.users,n.addons.users&&(n.orginal_posts_per_page=n.listing.dataset.usersPerPage,n.posts_per_page=n.listing.dataset.usersPerPage),n.extensions.restapi=n.listing.dataset.restapi,n.extensions.restapi_base_url=n.listing.dataset.restapiBaseUrl,n.extensions.restapi_namespace=n.listing.dataset.restapiNamespace,n.extensions.restapi_endpoint=n.listing.dataset.restapiEndpoint,n.extensions.restapi_template_id=n.listing.dataset.restapiTemplateId,n.extensions.restapi_debug=n.listing.dataset.restapiDebug,n.extensions.acf=n.listing.dataset.acf,n.extensions.acf_field_type=n.listing.dataset.acfFieldType,n.extensions.acf_field_name=n.listing.dataset.acfFieldName,n.extensions.acf_parent_field_name=n.listing.dataset.acfParentFieldName,n.extensions.acf_post_id=n.listing.dataset.acfPostId,n.extensions.acf="true"===n.extensions.acf,void 0!==n.extensions.acf_field_type&&void 0!==n.extensions.acf_field_name&&void 0!==n.extensions.acf_post_id||(n.extensions.acf=!1),n.extensions.term_query=n.listing.dataset.termQuery,n.extensions.term_query_taxonomy=n.listing.dataset.termQueryTaxonomy,n.extensions.term_query_hide_empty=n.listing.dataset.termQueryHideEmpty,n.extensions.term_query_number=n.listing.dataset.termQueryNumber,n.extensions.term_query="true"===n.extensions.term_query,n.addons.paging=n.listing.dataset.paging,"true"===n.addons.paging?(n.addons.paging=!0,n.addons.paging_init=!0,n.addons.paging_controls="true"===n.listing.dataset.pagingControls,n.addons.paging_show_at_most=n.listing.dataset.pagingShowAtMost,n.addons.paging_classes=n.listing.dataset.pagingClasses,n.addons.paging_show_at_most=void 0===n.addons.paging_show_at_most?7:n.addons.paging_show_at_most,n.addons.paging_first_label=n.listing.dataset.pagingFirstLabel,n.addons.paging_previous_label=n.listing.dataset.pagingPreviousLabel,n.addons.paging_next_label=n.listing.dataset.pagingNextLabel,n.addons.paging_last_label=n.listing.dataset.pagingLastLabel,n.addons.paging_scroll=!!n.listing.dataset.pagingScroll&&n.listing.dataset.pagingScroll,n.addons.paging_scrolltop=n.listing.dataset.pagingScrolltop?parseInt(n.listing.dataset.pagingScrolltop):100,n.pause="true"===n.addons.preloaded||n.pause):n.addons.paging=!1,"true"===n.addons.filters){n.addons.filters=!0,n.addons.filters_url="true"===n.listing.dataset.filtersUrl,n.addons.filters_paging="true"===n.listing.dataset.filtersPaging,n.addons.filters_scroll="true"===n.listing.dataset.filtersScroll,n.addons.filters_scrolltop=n.listing.dataset.filtersScrolltop?n.listing.dataset.filtersScrolltop:"30",n.addons.filters_analtyics=n.listing.dataset.filtersAnalytics,n.addons.filters_debug=n.listing.dataset.filtersDebug,n.addons.filters_startpage=0;var w=(0,a.default)("pg");n.addons.filters_startpage=null!==w?parseInt(w):0,!n.addons.paging&&n.addons.filters_startpage>0&&(n.posts_per_page=n.posts_per_page*n.addons.filters_startpage,n.isPaged=n.addons.filters_startpage>0)}else n.addons.filters=!1;if("true"===n.addons.tabs){if(n.addons.tabs=!0,n.addons.tab_template=n.listing.dataset.tabTemplate?n.listing.dataset.tabTemplate:"",n.addons.tab_onload=n.listing.dataset.tabOnload?n.listing.dataset.tabOnload:"",n.addons.tabs_resturl=n.listing.dataset.tabsRestUrl?n.listing.dataset.tabsRestUrl:"",""!==n.addons.tab_onload){var F=document.querySelector(".alm-tab-nav li [data-tab-url="+n.addons.tab_onload+"]");if(n.addons.tab_template=F?F.dataset.tabTemplate:n.addons.tab_template,n.listing.dataset.tabOnload="",F){var C=document.querySelector(".alm-tab-nav li .active");C&&C.classList.remove("active")}}}else n.addons.tabs=!1;if("true"===n.extensions.restapi?(n.extensions.restapi=!0,n.extensions.restapi_debug=void 0!==n.extensions.restapi_debug&&n.extensions.restapi_debug,n.extensions.restapi=""!==n.extensions.restapi_template_id&&n.extensions.restapi):n.extensions.restapi=!1,"true"===n.addons.preloaded?(n.addons.preloaded_amount=void 0===n.addons.preloaded_amount?n.posts_per_page:n.addons.preloaded_amount,n.localize&&n.localize.total_posts&&parseInt(n.localize.total_posts)<=parseInt(n.addons.preloaded_amount)&&(n.addons.preloaded_total_posts=n.localize.total_posts,n.disable_ajax=!0)):n.addons.preloaded="false",n.addons.seo=void 0!==n.addons.seo&&n.addons.seo,n.addons.seo="true"===n.addons.seo||n.addons.seo,n.addons.seo&&(n.addons.seo_permalink=n.listing.dataset.seoPermalink,n.addons.seo_pageview=n.listing.dataset.seoPageview,n.addons.seo_trailing_slash="false"===n.listing.dataset.seoTrailingSlash?"":"/",n.addons.seo_leading_slash="true"===n.listing.dataset.seoLeadingSlash?"/":""),n.start_page=n.listing.dataset.seoStartPage,n.start_page?(n.addons.seo_scroll=n.listing.dataset.seoScroll,n.addons.seo_scrolltop=n.listing.dataset.seoScrolltop,n.addons.seo_controls=n.listing.dataset.seoControls,n.isPaged=!1,n.start_page>1&&(n.isPaged=!0,n.posts_per_page=n.start_page*n.posts_per_page),n.addons.paging&&(n.posts_per_page=n.orginal_posts_per_page)):n.start_page=1,"true"===n.addons.nextpage?(n.addons.nextpage=!0,n.posts_per_page=1,void 0===n.addons.nextpage_urls&&(n.addons.nextpage_urls="true"),void 0===n.addons.nextpage_scroll&&(n.addons.nextpage_scroll="false:30"),void 0===n.addons.nextpage_pageviews&&(n.addons.nextpage_pageviews="true"),void 0===n.addons.nextpage_post_id&&(n.addons.nextpage=!1,n.addons.nextpage_post_id=null),void 0===n.addons.nextpage_startpage&&(n.addons.nextpage_startpage=1),n.addons.nextpage_startpage>1&&(n.isPaged=!0)):n.addons.nextpage=!1,"true"===n.addons.single_post?(n.addons.single_post=!0,n.addons.single_post_permalink="",n.addons.single_post_title="",n.addons.single_post_slug="",n.addons.single_post_order=void 0===n.addons.single_post_order?"previous":n.addons.single_post_order,n.addons.single_post_taxonomy=void 0===n.addons.single_post_taxonomy?"":n.addons.single_post_taxonomy,n.addons.single_post_excluded_terms=void 0===n.addons.single_post_excluded_terms?"":n.addons.single_post_excluded_terms,n.addons.single_post_progress_bar=void 0===n.addons.single_post_progress_bar?"":n.addons.single_post_progress_bar,n.addons.single_post_target=void 0===n.addons.single_post_target?"":n.addons.single_post_target,n.addons.single_post_title_template=n.listing.dataset.singlePostTitleTemplate,n.addons.single_post_siteTitle=n.listing.dataset.singlePostSiteTitle,n.addons.single_post_siteTagline=n.listing.dataset.singlePostSiteTagline,n.addons.single_post_pageview=n.listing.dataset.singlePostPageview,n.addons.single_post_scroll=n.listing.dataset.singlePostScroll,n.addons.single_post_scroll_speed=n.listing.dataset.singlePostScrollSpeed,n.addons.single_post_scroll_top=n.listing.dataset.singlePostScrolltop,n.addons.single_post_controls=n.listing.dataset.singlePostControls):n.addons.single_post=!1,n.addons.single_post&&void 0===n.addons.single_post_id&&(n.addons.single_post_id="",n.addons.single_post_init_id=""),(void 0===n.pause||n.addons.seo&&n.start_page>1)&&(n.pause=!1),"true"===n.addons.preloaded&&n.addons.seo&&n.start_page>0&&(n.pause=!1),n.addons.filters&&n.addons.filters_startpage>0&&(n.pause=!1),"true"===n.addons.preloaded&&n.addons.paging&&(n.pause=!0),n.repeater=void 0===n.repeater?"default":n.repeater,n.theme_repeater=void 0!==n.theme_repeater&&n.theme_repeater,n.max_pages=void 0===n.max_pages||0===n.max_pages?1e4:n.max_pages,n.scroll_distance=void 0===n.scroll_distance?100:n.scroll_distance,n.scroll_distance_perc=!1,-1==n.scroll_distance.toString().indexOf("%")?n.scroll_distance=parseInt(n.scroll_distance):(n.scroll_distance_perc=!0,n.scroll_distance_orig=parseInt(n.scroll_distance),n.scroll_distance=(0,A.default)(n)),n.scroll_container=void 0===n.scroll_container?"":n.scroll_container,n.scroll_direction=void 0===n.scroll_direction?"vertical":n.scroll_direction,n.transition=void 0===n.transition?"fade":n.transition,n.tcc=void 0===n.tcc?"":n.tcc,n.is_masonry_preloaded=!1,"masonry"===n.transition&&(n.masonry_init=!0,n.msnry?n.msnry.destroy():n.msnry="",n.masonry_selector=n.listing.dataset.masonrySelector,n.masonry_columnwidth=n.listing.dataset.masonryColumnwidth,n.masonry_animation=n.listing.dataset.masonryAnimation,n.masonry_animation=void 0===n.masonry_animation?"standard":n.masonry_animation,n.masonry_horizontalorder=n.listing.dataset.masonryHorizontalorder,n.masonry_horizontalorder=void 0===n.masonry_horizontalorder?"true":n.masonry_horizontalorder,n.transition_container=!1,n.images_loaded=!1,n.is_masonry_preloaded="true"===n.addons.preloaded||n.is_masonry_preloaded),void 0===n.listing.dataset.scroll?n.scroll=!0:"false"===n.listing.dataset.scroll?n.scroll=!1:n.scroll=!0,n.transition_container=void 0===n.transition_container||"true"===n.transition_container,n.button_label=void 0===n.button_label?"Load More":n.button_label,n.button_loading_label=void 0!==n.button_loading_label&&n.button_loading_label,n.button_done_label=void 0!==n.button_done_label&&n.button_done_label,n.addons.paging)n.main.classList.add("loading");else{var D=t.childNodes;if(D){var z=Array.prototype.slice.call(D).filter((function(t){return!!t.classList&&t.classList.contains("alm-btn-wrap")}));n.button=z?z[0].querySelector(".alm-load-more-btn"):container.querySelector(".alm-btn-wrap .alm-load-more-btn")}else n.button=container.querySelector(".alm-btn-wrap .alm-load-more-btn");n.button.disabled=!1,n.button.style.display=""}if(n.integration.woocommerce?(n.resultsText=document.querySelectorAll(".woocommerce-result-count"),n.resultsText.length<1&&(n.resultsText=document.querySelectorAll(".alm-results-text"))):n.resultsText=document.querySelectorAll(".alm-results-text"),n.resultsText?n.resultsText.forEach((function(t){t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true")})):n.resultsText=!1,n.tableofcontents=document.querySelector(".alm-toc"),n.tableofcontents?(n.tableofcontents.setAttribute("aria-live","polite"),n.tableofcontents.setAttribute("aria-atomic","true")):n.tableofcontents=!1,n.AjaxLoadMore.loadPosts=function(){if("function"==typeof almOnChange&&window.almOnChange(n),(0,E.showPlaceholder)(n),!n.disable_ajax)if(n.addons.paging||(n.button.classList.add("loading"),!1!==n.button_loading_label&&(n.button.innerHTML=n.button_loading_label)),n.main.classList.add("alm-loading"),n.loading=!0,"true"!==n.addons.cache||n.addons.cache_logged_in)n.AjaxLoadMore.ajax("standard");else{var t=(0,l.default)(n);t?r.default.get(t).then((function(t){n.AjaxLoadMore.success(t.data,!0)})).catch((function(t){n.AjaxLoadMore.ajax("standard")})):n.AjaxLoadMore.ajax("standard")}},n.AjaxLoadMore.ajax=function(t){var e="alm_get_posts";n.acf_array="",n.extensions.acf&&("relationship"!==n.extensions.acf_field_type&&(e="alm_acf"),n.acf_array={acf:"true",post_id:n.extensions.acf_post_id,field_type:n.extensions.acf_field_type,field_name:n.extensions.acf_field_name,parent_field_name:n.extensions.acf_parent_field_name}),n.term_query_array="",n.extensions.term_query&&(e="alm_get_terms",n.term_query_array={term_query:"true",taxonomy:n.extensions.term_query_taxonomy,hide_empty:n.extensions.term_query_hide_empty,number:n.extensions.term_query_number}),n.nextpage_array="",n.addons.nextpage&&(e="alm_nextpage",n.nextpage_array={nextpage:"true",urls:n.addons.nextpage_urls,scroll:n.addons.nextpage_scroll,pageviews:n.addons.nextpage_pageviews,post_id:n.addons.nextpage_post_id,startpage:n.addons.nextpage_startpage}),n.single_post_array="",n.addons.single_post&&(n.single_post_array={single_post:"true",id:n.addons.single_post_id,slug:n.addons.single_post_slug}),n.comments_array="","true"===n.addons.comments&&(e="alm_comments",n.posts_per_page=n.addons.comments_per_page,n.comments_array={comments:"true",post_id:n.addons.comments_post_id,per_page:n.addons.comments_per_page,type:n.addons.comments_type,style:n.addons.comments_style,template:n.addons.comments_template,callback:n.addons.comments_callback}),n.users_array="",n.addons.users&&(e="alm_users",n.users_array={users:"true",role:n.listing.dataset.usersRole,include:n.listing.dataset.usersInclude,exclude:n.listing.dataset.usersExclude,per_page:n.posts_per_page,order:n.listing.dataset.usersOrder,orderby:n.listing.dataset.usersOrderby}),n.cta_array="","true"===n.addons.cta&&(n.cta_array={cta:"true",cta_position:n.addons.cta_position,cta_repeater:n.addons.cta_repeater,cta_theme_repeater:n.addons.cta_theme_repeater}),n.extensions.restapi?n.AjaxLoadMore.restapi(n,e,t):n.addons.tabs?n.AjaxLoadMore.tabs(n):n.AjaxLoadMore.adminajax(n,e,t)},n.AjaxLoadMore.adminajax=function(t,e,n){1==t.page||t.addons.paging||t.button.classList.add("loading"),r.default.interceptors.request.use((function(t){return t.paramsSerializer=function(t){return k.stringify(t,{arrayFormat:"brackets",encode:!1})},t}));var o=alm_localize.ajaxurl,a=d.almGetAjaxParams(t,e,n);t.addons.single_post&&t.addons.single_post_target&&(o=t.addons.single_post_permalink+"?id="+t.addons.single_post_id+"&alm_page="+(parseInt(t.page)+1),a=""),t.addons.woocommerce&&(o=(0,v.default)(t),a=""),t.addons.elementor&&t.addons.elementor_type&&"posts"===t.addons.elementor_type&&(o=(0,v.default)(t),a=""),r.default.get(o,{params:a}).then((function(e){var r="";t.addons.single_post&&t.addons.single_post_target?(r=(0,L.singlePostHTML)(e,t.addons.single_post_target),(0,P.createCacheFile)(t,r.html,"single")):t.addons.woocommerce?(r=(0,M.wooGetContent)(e,t),(0,P.createCacheFile)(t,r.html,"woocommerce")):t.addons.elementor?(r=(0,O.elementorGetContent)(e,t),(0,P.createCacheFile)(t,r.html,"elementor")):r=e.data,"standard"===n?t.AjaxLoadMore.success(r,!1):"totalpages"===n&&t.addons.paging&&t.addons.nextpage?"function"==typeof almBuildPagination&&window.almBuildPagination(r.totalpages,t):"totalposts"===n&&t.addons.paging&&"function"==typeof almBuildPagination&&window.almBuildPagination(r.totalposts,t)})).catch((function(e){t.AjaxLoadMore.error(e,"adminajax")}))},n.AjaxLoadMore.tabs=function(t){var e=t.addons.tabs_resturl+"ajaxloadmore/tab",n={post_id:t.post_id,template:t.addons.tab_template};r.default.interceptors.request.use((function(t){return t.paramsSerializer=function(t){return k.stringify(t,{arrayFormat:"brackets",encode:!1})},t})),r.default.get(e,{params:n}).then((function(e){var n={html:e.data.html,meta:{postcount:1,totalposts:1}};t.AjaxLoadMore.success(n,!1),"function"==typeof almTabLoaded&&window.almTabLoaded(t)})).catch((function(e){t.AjaxLoadMore.error(e,"restapi")}))},n.AjaxLoadMore.restapi=function(t,e,n){var o=wp.template(t.extensions.restapi_template_id),a=t.extensions.restapi_base_url+"/"+t.extensions.restapi_namespace+"/"+t.extensions.restapi_endpoint,i=d.almGetRestParams(t);r.default.interceptors.request.use((function(t){return t.paramsSerializer=function(t){return k.stringify(t,{arrayFormat:"brackets",encode:!1})},t})),r.default.get(a,{params:i}).then((function(e){for(var n=e.data,r="",a=n.html,i=n.meta,s=i.postcount,l=i.totalposts,c=0;c<a.length;c++){var u=a[c];"true"===t.restapi_debug&&console.log(u),r+=o(u)}var d={html:r,meta:{postcount:s,totalposts:l}};t.AjaxLoadMore.success(d,!1)})).catch((function(e){t.AjaxLoadMore.error(e,"restapi")}))},n.addons.paging&&(n.addons.nextpage?n.AjaxLoadMore.ajax("totalpages"):n.AjaxLoadMore.ajax("totalposts")),n.AjaxLoadMore.success=function(e,r){var o=this;n.addons.single_post&&n.AjaxLoadMore.getSinglePost();var a=!1,l="table"===n.container_type?document.createElement("tbody"):document.createElement("div");n.el=l,l.style.opacity=0,l.style.height=0,l.style.outline="none";var d,f,v,w=n.listing.querySelector(".alm-paging-content");if(r?d=e:(d=e.html,f=e.meta,n.posts=n.addons.paging?f.postcount:n.posts+f.postcount,v=f.postcount,n.totalposts=f.totalposts,n.totalposts="true"===n.addons.preloaded?n.totalposts-n.addons.preloaded_amount:n.totalposts,n.debug=f.debug?f.debug:""),n.html=d,v=r?(0,c.default)(d).length:v,n.init&&(f&&(n.main.dataset.totalPosts=f.totalposts?f.totalposts:0),n.addons.paging&&v>0&&n.AjaxLoadMore.pagingInit(d,"alm-reveal"),0===v&&(n.addons.paging&&"function"==typeof almPagingEmpty&&window.almPagingEmpty(n),"function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&setTimeout((function(){(0,x.default)(n.content,n.no_results)}),n.speed+10)),n.isPaged&&(n.posts_per_page=n.addons.users?n.listing.dataset.usersPerPage:n.listing.dataset.postsPerPage,n.posts_per_page=n.addons.nextpage?1:n.posts_per_page,n.page=n.start_page?n.start_page-1:n.page,n.addons.filters&&n.addons.filters_startpage>0&&(n.page=n.addons.filters_startpage-1,n.posts_per_page=n.listing.dataset.postsPerPage))),(0,S.default)(n),N(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,g.default)(n);case 2:case"end":return t.stop()}}),t,o)})))(),v>0){if(n.addons.paging)n.init?setTimeout((function(){n.main.classList.remove("alm-loading"),n.AjaxLoadMore.triggerAddons(n)}),n.speed):w&&((0,b.default)(w,n.speed),w.style.outline="none",n.main.classList.remove("alm-loading"),setTimeout((function(){w.style.opacity=0,w.innerHTML=n.html,R(w,(function(){n.AjaxLoadMore.triggerAddons(n),(0,y.default)(w,n.speed),setTimeout((function(){w.style.opacity="",h.default.init(w)}),parseInt(n.speed)+10),"function"==typeof almOnPagingComplete&&window.almOnPagingComplete(n)}))}),parseInt(n.speed)+25));else{if(n.addons.single_post)l.setAttribute("class","alm-reveal alm-single-post post-"+n.addons.single_post_id+n.tcc),l.dataset.url=n.addons.single_post_permalink,n.addons.single_post_target?l.dataset.page=parseInt(n.page)+1:l.dataset.page=n.page,l.dataset.id=n.addons.single_post_id,l.dataset.title=n.addons.single_post_title,l.innerHTML=n.html;else if(n.transition_container){var A=void 0,E=window.location.search,L=n.addons.seo?" alm-seo":"",P=n.addons.filters?" alm-filters":"",F=n.is_preloaded?" alm-preloaded":"";if(n.init&&(n.start_page>1||n.addons.filters_startpage>0)){var C=[],k=[],D=parseInt(n.posts_per_page),z=Math.ceil(v/D);a=!0,"true"===n.addons.cta&&(D+=1,z=Math.ceil(v/D),v=z+v);for(var B=(0,u.default)((0,c.default)(n.html,"text/html")),W=0;W<v;W+=D)C.push(B.slice(W,D+W));for(var H=0;H<C.length;H++){var U="true"===n.addons.preloaded?1:0,V=document.createElement("div");H>0||"true"===n.addons.preloaded?(A=H+1+U,n.addons.seo&&(V=(0,I.createSEOAttributes)(n,V,E,L,A)),n.addons.filters&&(V.setAttribute("class","alm-reveal"+P+n.tcc),V.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,E,A),V.dataset.page=A)):(n.addons.seo&&(V=(0,I.createSEOAttributes)(n,V,E,L,1)),n.addons.filters&&(V.setAttribute("class","alm-reveal"+P+F+n.tcc),V.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,E,0),V.dataset.page="1")),(0,i.default)(V,C[H]),(0,j.default)(V,n.ua),k.push(V)}n.listing.style.opacity=0,n.listing.style.height=0,(0,i.default)(n.listing,k),l=n.listing,n.el=l}else{if(n.addons.seo&&n.page>0||"true"===n.addons.preloaded){var G="true"===n.addons.preloaded?1:0;A=n.page+1+G,n.addons.seo?l=(0,I.createSEOAttributes)(n,l,E,L,A):n.addons.filters?(l.setAttribute("class","alm-reveal"+P+n.tcc),l.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,E,A),l.dataset.page=A):l.setAttribute("class","alm-reveal"+n.tcc)}else n.addons.filters?(l.setAttribute("class","alm-reveal"+P+n.tcc),l.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,E,parseInt(n.page)+1),l.dataset.page=parseInt(n.page)+1):n.addons.seo?l=(0,I.createSEOAttributes)(n,l,E,L,1):l.setAttribute("class","alm-reveal"+n.tcc);l.innerHTML=n.html}}else n.el=n.html,l="table"===n.container_type?(0,s.default)(n.html):(0,u.default)((0,c.default)(n.html,"text/html"));if(n.addons.woocommerce)return N(regeneratorRuntime.mark((function t(){var r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,M.woocommerce)(l,n,e.pageTitle);case 2:r=n.page+2,n.button.dataset.page=r,o=n.addons.woocommerce_settings.paged_urls[r-1],n.button.dataset.url=o||"",n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),r>parseInt(n.addons.woocommerce_settings.pages)&&n.AjaxLoadMore.triggerDone();case 9:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t),console.log("There was an error loading woocommerce products")})),void(n.init=!1);if(n.addons.elementor)return N(regeneratorRuntime.mark((function t(){var r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,O.elementor)(l,n,e.pageTitle);case 2:r=n.page+1,n.button.dataset.page=r,o=n.addons.elementor_next_page_url,n.button.dataset.url=o||"",n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),o||n.AjaxLoadMore.triggerDone();case 9:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t),console.log("There was an error loading Elementor Post Widget items")})),void(n.init=!1);("masonry"!==n.transition||n.init&&!n.is_masonry_preloaded)&&(a||(n.transition_container?n.listing.appendChild(l):"true"===n.images_loaded?R(l,(function(){(0,i.default)(n.listing,l),(0,j.default)(n.listing,n.ua)})):((0,i.default)(n.listing,l),(0,j.default)(n.listing,n.ua)))),"masonry"===n.transition?(n.el=n.listing,N(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,_.default)(n,n.init,q);case 2:n.masonry_init=!1,n.AjaxLoadMore.triggerWindowResize(),n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&window.almComplete(n);case 6:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log("There was an error with ALM Masonry")}))):"none"===n.transition?"true"===n.images_loaded?R(l,(function(){(0,y.default)(l,0),n.AjaxLoadMore.transitionEnd()})):((0,y.default)(l,0),n.AjaxLoadMore.transitionEnd()):"true"===n.images_loaded?R(l,(function(){n.transition_container&&(0,y.default)(l,n.speed),n.AjaxLoadMore.transitionEnd()})):(n.transition_container&&(0,y.default)(l,n.speed),n.AjaxLoadMore.transitionEnd()),n.addons.tabs&&"function"==typeof almTabsSetHeight&&R(l,(function(){(0,y.default)(n.listing,n.speed),setTimeout((function(){window.almTabsSetHeight(n)}),n.speed)}))}R(l,(function(){n.AjaxLoadMore.nested(l),h.default.init(n.el),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),q&&n.addons.filters&&"function"==typeof almFiltersAddonComplete&&window.almFiltersAddonComplete(t),q=!1,n.addons.tabs&&"function"==typeof almTabsComplete&&window.almTabsComplete(),n.addons.cache?n.addons.nextpage&&n.localize?parseInt(n.localize.page)===parseInt(n.localize.total_posts)&&n.AjaxLoadMore.triggerDone():v<parseInt(n.posts_per_page)&&n.AjaxLoadMore.triggerDone():n.posts>=n.totalposts&&!n.addons.single_post&&n.AjaxLoadMore.triggerDone()})),"function"==typeof almFiltersOnload&&n.init&&window.almFiltersOnload(n)}else n.AjaxLoadMore.noresults();if(void 0!==n.destroy_after&&""!==n.destroy_after){var Y=n.page+1;(Y="true"===n.addons.preloaded?Y++:Y)==n.destroy_after&&n.AjaxLoadMore.destroyed()}(0,p.tableOfContents)(n,n.init),"masonry"!==n.transition&&(0,m.default)(n,l,v,q),n.main.classList.contains("alm-is-filtering")&&n.main.classList.remove("alm-is-filtering"),n.init=!1},n.AjaxLoadMore.noresults=function(){n.addons.paging||(setTimeout((function(){n.button.classList.remove("loading"),n.button.classList.add("done")}),n.speed),n.AjaxLoadMore.resetBtnText()),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),q&&n.addons.filters&&("function"==typeof almFiltersAddonComplete&&almFiltersAddonComplete(t),q=!1),n.addons.tabs&&"function"==typeof almTabsComplete&&almTabsComplete(),n.AjaxLoadMore.triggerDone()},n.AjaxLoadMore.pagingPreloadedInit=function(t){t=null==t?"":t,n.AjaxLoadMore.pagingInit(t,"alm-reveal"),""===t&&("function"==typeof almPagingEmpty&&window.almPagingEmpty(n),"function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&(0,x.default)(n.content,n.no_results))},n.AjaxLoadMore.pagingNextpageInit=function(t){t=null==t?"":t,n.AjaxLoadMore.pagingInit(t,"alm-reveal alm-nextpage"),"function"==typeof almSetNextPageVars&&window.almSetNextPageVars(n)},n.AjaxLoadMore.pagingInit=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"alm-reveal";t=null==t?"":t;var r=document.createElement("div");r.setAttribute("class",e);var o=document.createElement("div");o.setAttribute("class","alm-paging-content"+n.tcc),o.innerHTML=t,r.appendChild(o);var a=document.createElement("div");a.setAttribute("class","alm-paging-loading"),r.appendChild(a),n.listing.appendChild(r);var i=window.getComputedStyle(n.listing),s=parseInt(i.getPropertyValue("padding-top").replace("px","")),l=parseInt(i.getPropertyValue("padding-bottom").replace("px","")),c=r.offsetHeight;n.listing.style.height=c+s+l+"px",h.default.init(r),n.AjaxLoadMore.resetBtnText(),setTimeout((function(){"function"==typeof almFadePageControls&&window.almFadePageControls(n.btnWrap),"function"==typeof almOnWindowResize&&window.almOnWindowResize(n),n.main.classList.remove("loading")}),n.speed)},n.AjaxLoadMore.nested=function(t){if(!t||!n.transition_container)return!1;var e=t.querySelectorAll(".ajax-load-more-wrap");e&&e.forEach((function(t){window.almInit(t)}))},n.addons.single_post_id&&(n.fetchingPreviousPost=!1,n.addons.single_post_init=!0),n.AjaxLoadMore.getSinglePost=function(){if(n.fetchingPreviousPost)return!1;n.fetchingPreviousPost=!0;var t=alm_localize.ajaxurl,e={id:n.addons.single_post_id,initial_id:n.addons.single_post_init_id,order:n.addons.single_post_order,taxonomy:n.addons.single_post_taxonomy,excluded_terms:n.addons.single_post_excluded_terms,post_type:n.post_type,init:n.addons.single_post_init,action:"alm_get_single"};r.default.get(t,{params:e}).then((function(t){var e=t.data;e.has_previous_post?(n.listing.dataset.singlePostId=e.prev_id,n.addons.single_post_id=e.prev_id,n.addons.single_post_permalink=e.prev_permalink,n.addons.single_post_title=e.prev_title,n.addons.single_post_slug=e.prev_slug):e.has_previous_post||n.AjaxLoadMore.triggerDone(),"function"==typeof window.almSetSinglePost&&window.almSetSinglePost(n,e.current_id,e.permalink,e.title),n.fetchingPreviousPost=!1,n.addons.single_post_init=!1})).catch((function(t){n.AjaxLoadMore.error(t,"getSinglePost"),n.fetchingPreviousPost=!1}))},n.AjaxLoadMore.triggerAddons=function(t){"function"==typeof almSetNextPage&&window.almSetNextPage(t),"function"==typeof almSEO&&window.almSEO(t,!1),"function"==typeof almWooCommerce&&window.almWooCommerce(t),"function"==typeof almElementor&&window.almElementor(t)},n.AjaxLoadMore.triggerDone=function(){n.loading=!1,n.finished=!0,(0,E.hidePlaceholder)(n),n.addons.paging||(!1!==n.button_done_label&&setTimeout((function(){n.button.innerHTML=n.button_done_label}),75),n.button.classList.add("done"),n.button.disabled=!0),"function"==typeof almDone&&setTimeout((function(){window.almDone(n)}),n.speed+10)},n.AjaxLoadMore.resetBtnText=function(){!1===n.button_loading_label||n.addons.paging||(n.button.innerHTML=n.button_label)},n.AjaxLoadMore.error=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;n.loading=!1,n.addons.paging||(n.button.classList.remove("loading"),n.AjaxLoadMore.resetBtnText()),console.log("Error: ",t),t.response?console.log("Error Msg: ",t.message):t.request?console.log(t.request):console.log("Error Msg: ",t.message),e&&console.log("ALM Error started in "+e),t.config&&console.log("ALM Error Debug: ",t.config)},n.AjaxLoadMore.click=function(t){var e=t.target||t.currentTarget;"true"===n.pause&&(n.pause=!1,n.pause_override=!1,n.AjaxLoadMore.loadPosts()),n.loading||n.finished||e.classList.contains("done")||(n.loading=!0,n.page++,n.AjaxLoadMore.loadPosts()),e.blur()},n.addons.paging||n.fetchingPreviousPost||(n.button.onclick=n.AjaxLoadMore.click),n.addons.paging||n.addons.tabs||n.scroll_distance_perc||"horizontal"===n.scroll_direction){var B=void 0;n.window.onresize=function(){clearTimeout(B),B=setTimeout((function(t){n.addons.tabs&&"function"==typeof almOnTabsWindowResize&&window.almOnTabsWindowResize(n),n.addons.paging&&"function"==typeof almOnWindowResize&&window.almOnWindowResize(n),n.scroll_distance_perc&&(n.scroll_distance=(0,A.default)(n)),"horizontal"===n.scroll_direction&&n.AjaxLoadMore.horizontal()}),n.speed)}}n.AjaxLoadMore.isVisible=function(){return n.visible=n.main.clientWidth>0&&n.main.clientHeight>0,n.visible},n.AjaxLoadMore.triggerWindowResize=function(){if("function"==typeof Event)window.dispatchEvent(new Event("resize"));else{var t=window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}},n.AjaxLoadMore.scroll=function(){n.timer&&clearTimeout(n.timer),n.timer=setTimeout((function(){if(n.AjaxLoadMore.isVisible()&&!n.fetchingPreviousPost){var t=n.trigger.getBoundingClientRect(),e=Math.round(t.top-n.window.innerHeight)+n.scroll_distance<=0;if(n.window!==window){var r=n.main.offsetHeight,o=n.main.offsetWidth;"horizontal"===n.scroll_direction?(n.AjaxLoadMore.horizontal(),e=o<=Math.round(n.window.scrollLeft+n.window.offsetWidth-n.scroll_distance)):e=r<=Math.round(n.window.scrollTop+n.window.offsetHeight-n.scroll_distance)}(!n.loading&&!n.finished&&e&&n.page<n.max_pages-1&&n.proceed&&"true"===n.pause&&"true"===n.pause_override||!n.loading&&!n.finished&&e&&n.page<n.max_pages-1&&n.proceed&&"true"!==n.pause)&&n.button.click()}}),25)},n.AjaxLoadMore.scrollSetup=function(){n.scroll&&!n.addons.paging&&(""!==n.scroll_container&&(n.window=document.querySelector(n.scroll_container)?document.querySelector(n.scroll_container):n.window,setTimeout((function(){n.AjaxLoadMore.horizontal()}),500)),n.window.addEventListener("scroll",n.AjaxLoadMore.scroll),n.window.addEventListener("touchstart",n.AjaxLoadMore.scroll),n.window.addEventListener("wheel",(function(t){Math.sign(t.deltaY)>0&&n.AjaxLoadMore.scroll()})),n.window.addEventListener("keyup",(function(t){switch(t.keyCode?t.keyCode:t.which){case 35:case 34:n.AjaxLoadMore.scroll()}})))},n.AjaxLoadMore.horizontal=function(){"horizontal"===n.scroll_direction&&(n.main.style.width=n.listing.offsetWidth+"px")},n.AjaxLoadMore.destroyed=function(){n.disable_ajax=!0,n.addons.paging||(n.button.style.display="none",n.AjaxLoadMore.triggerDone(),"function"==typeof almDestroyed&&window.almDestroyed(n))},n.AjaxLoadMore.transitionEnd=function(){setTimeout((function(){n.AjaxLoadMore.resetBtnText(),n.main.classList.remove("alm-loading"),n.button.classList.remove("loading"),n.AjaxLoadMore.triggerAddons(n),n.addons.paging||setTimeout((function(){n.loading=!1}),3*n.speed)}),50),(0,E.hidePlaceholder)(n)},n.AjaxLoadMore.setLocalizedVar=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";n.localize&&""!==t&&""!==e&&(n.localize[t]=e.toString(),window[n.master_id+"_vars"][t]=e.toString())},n.AjaxLoadMore.init=function(){if("true"===n.addons.preloaded&&1==n.destroy_after&&n.AjaxLoadMore.destroyed(),n.addons.paging||n.addons.single_post||(n.disable_ajax?(n.finished=!0,n.button.classList.add("done")):"true"===n.pause?(n.button.innerHTML=n.button_label,n.loading=!1):n.AjaxLoadMore.loadPosts()),n.addons.single_post&&(n.AjaxLoadMore.getSinglePost(),n.loading=!1,(0,p.tableOfContents)(n,!0,!0)),"true"===n.addons.preloaded&&n.addons.seo&&!n.addons.paging&&setTimeout((function(){"function"==typeof almSEO&&n.start_page<1&&window.almSEO(n,!0)}),n.speed),"true"!==n.addons.preloaded||n.addons.paging||setTimeout((function(){n.addons.preloaded_total_posts<=parseInt(n.addons.preloaded_amount)&&n.AjaxLoadMore.triggerDone(),0==n.addons.preloaded_total_posts&&("function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&(0,x.default)(n.content,n.no_results))}),n.speed),"true"===n.addons.preloaded&&(n.resultsText&&f.almInitResultsText(n,"preloaded"),(0,p.tableOfContents)(n,n.init,!0)),n.addons.nextpage){if(n.listing.querySelector(".alm-nextpage")&&!n.addons.paging){var t=n.listing.querySelectorAll(".alm-nextpage");if(t){var e=t[0],r=n.localize.total_posts?parseInt(n.localize.total_posts):e.dataset.totalPosts;t.length!==r&&parseInt(e.dataset.id)!==r||n.AjaxLoadMore.triggerDone()}}n.resultsText&&f.almInitResultsText(n,"nextpage"),(0,p.tableOfContents)(n,n.init,!0)}n.addons.woocommerce&&((0,M.wooInit)(n),n.addons.woocommerce_settings.paged>=parseInt(n.addons.woocommerce_settings.pages)&&n.AjaxLoadMore.triggerDone()),n.addons.elementor&&n.addons.elementor_type&&"posts"===n.addons.elementor_type&&((0,O.elementorInit)(n),""===n.addons.elementor_next_page_url&&n.AjaxLoadMore.triggerDone()),n.window.addEventListener("load",(function(){n.is_masonry_preloaded&&N(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,_.default)(n,!0,!1);case 2:n.masonry_init=!1;case 3:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log("There was an error with ALM Masonry")})),"function"==typeof almOnLoad&&window.almOnLoad(n)}))},setTimeout((function(){n.proceed=!0,n.AjaxLoadMore.scrollSetup()}),500),n.AjaxLoadMore.init(),window.almUpdateCurrentPage=function(t,e,n){n.page=t,n.page=n.addons.nextpage&&!n.addons.paging?n.page-1:n.page;var r="",o="";n.addons.paging_init&&"true"===n.addons.preloaded?((o=n.listing.querySelector(".alm-reveal")||n.listing.querySelector(".alm-nextpage"))&&(r=o.innerHTML,o.parentNode.removeChild(o),n.addons.preloaded_amount=0,n.AjaxLoadMore.pagingPreloadedInit(r)),n.addons.paging_init=!1,n.init=!1):n.addons.paging_init&&n.addons.nextpage?((o=n.listing.querySelector(".alm-reveal")||n.listing.querySelector(".alm-nextpage"))&&(r=o.innerHTML,o.parentNode.removeChild(o),n.AjaxLoadMore.pagingNextpageInit(r)),n.addons.paging_init=!1,n.init=!1):n.AjaxLoadMore.loadPosts()},window.almGetParentContainer=function(){return n.listing},window.almGetObj=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""!==t?n[t]:n},window.almTriggerClick=function(){n.button.click()}};window.almInit=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;new t(e,n)};var e=document.querySelectorAll(".ajax-load-more-wrap");e.length&&[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(e)).forEach((function(e,n){new t(e,n)}))}();e.filter=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fade",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"200",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!t||!e||!n)return!1;q=!0,(0,w.default)(t,e,n,"filter")};e.reset=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={};q=!0,t&&t.target&&(e={target:target}),t&&"woocommerce"===t.type?N(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=document.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'),t.next=3,(0,M.wooReset)();case 3:(r=t.sent)&&(n.dataset.wooSettings=r,(0,w.default)("fade","100",e,"filter"));case 5:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log("There was an resetting the Ajax Load More instance.")})):(0,w.default)("fade","200",e,"filter")};e.tab=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e="fade",n=alm_localize.speed?parseInt(alm_localize.speed):200;if(!t)return!1;q=!0,(0,w.default)(e,n,t,"tab")};e.tracking=function(t){"function"==typeof gtag&&(gtag("event","page_view",{page_path:t}),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (gtag)")),"function"==typeof ga&&(ga("send","pageview",t),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (ga)")),"function"==typeof __gaTracker&&(__gaTracker("send","pageview",t),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (__gaTracker)")),"function"==typeof almAnalytics&&window.almAnalytics(t)};e.start=function(t){if(!t)return!1;window.almInit(t)};e.almScroll=function(t){if(!t)return!1;window.scrollTo({top:t,behavior:"smooth"})};e.getOffset=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return!1;var e=t.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop;return{top:e.top+r,left:e.left+n}};e.render=function(t){if(!t)return!1}},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";var r=n(13),o=n(145),a=n(147),i=n(148),s=n(149),l=n(99);t.exports=function(t){return new Promise((function(e,c){var u=t.data,d=t.headers;r.isFormData(u)&&delete d["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",g=t.auth.password||"";d.Authorization="Basic "+btoa(p+":"+g)}if(f.open(t.method.toUpperCase(),a(t.url,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?i(f.getAllResponseHeaders()):null,r={data:t.responseType&&"text"!==t.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:n,config:t,request:f};o(e,c,r),f=null}},f.onerror=function(){c(l("Network Error",t,null,f)),f=null},f.ontimeout=function(){c(l("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var h=n(150),m=(t.withCredentials||s(t.url))&&t.xsrfCookieName?h.read(t.xsrfCookieName):void 0;m&&(d[t.xsrfHeaderName]=m)}if("setRequestHeader"in f&&r.forEach(d,(function(t,e){void 0===u&&"content-type"===e.toLowerCase()?delete d[e]:f.setRequestHeader(e,t)})),t.withCredentials&&(f.withCredentials=!0),t.responseType)try{f.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){f&&(f.abort(),c(t),f=null)})),void 0===u&&(u=null),f.send(u)}))}},function(t,e,n){"use strict";var r=n(146);t.exports=function(t,e,n,o,a){var i=new Error(t);return r(i,e,n,o,a)}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(161),a=(r=o)&&r.__esModule?r:{default:r};e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fade";if(!t||!e)return!1;for(var r=0;r<e.length;r++){var o=e[r];(0,a.default)(t,o,n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!t)return!1;var e=["#text","#comment"],n=t.filter((function(t){return-1===e.indexOf(t.nodeName.toLowerCase())}));return n}},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||!t.localize||"true"===t.nested)return!1;var n=0,r=0,a=0,i=0,s="true"===t.addons.preloaded,l=!!t.addons.paging,c=t.orginal_posts_per_page;switch(e){case"nextpage":a=n=parseInt(t.localize.page),r=parseInt(t.localize.total_posts),i=parseInt(r),o(t.resultsText,n,r,a,i);break;case"woocommerce":break;default:n=parseInt(t.page)+1,r=Math.ceil(t.localize.total_posts/c),a=parseInt(t.localize.post_count),i=parseInt(t.localize.total_posts),s&&(n=l?t.page+1:n+1),o(t.resultsText,n,r,a,i)}}Object.defineProperty(e,"__esModule",{value:!0}),e.almResultsText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||"true"===t.nested)return!1;var n="nextpage"===e||"woocommerce"===e?e:"standard";r(t,n)},e.almGetResultsText=r,e.almInitResultsText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||!t.localize||"true"===t.nested)return!1;var n=0,r=Math.ceil(t.localize.total_posts/t.orginal_posts_per_page),a=parseInt(t.localize.post_count),i=parseInt(t.localize.total_posts);switch(e){case"nextpage":n=t.addons.nextpage_startpage,a=n,r=i,o(t.resultsText,n,i,a,i);break;case"preloaded":n=t.addons.paging&&t.addons.seo?parseInt(t.start_page)+1:parseInt(t.page)+1,o(t.resultsText,n,r,a,i);break;case"woocommerce":break;default:console.log("No results to set.")}};var o=function(t,e,n,r,o){t.forEach((function(t){var a=(n=parseInt(n))>0?alm_localize.results_text:alm_localize.no_results_text;n>0?(a=(a=(a=(a=(a=(a=a.replace("{num}",'<span class="alm-results-num">'+e+"</span>")).replace("{page}",'<span class="alm-results-page">'+e+"</span>")).replace("{total}",'<span class="alm-results-total">'+n+"</span>")).replace("{pages}",'<span class="alm-results-pages">'+n+"</span>")).replace("{post_count}",'<span class="alm-results-post_count">'+r+"</span>")).replace("{total_posts}",'<span class="alm-results-total_posts">'+o+"</span>"),t.innerHTML=a):t.innerHTML=a}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tableOfContents=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.localize&&t.localize.post_count?parseInt(t.localize.post_count):0;if(0==r&&!t.addons.single_post)return!1;if(t&&t.tableofcontents&&t.transition_container&&"masonry"!==t.transition){var o=t.tableofcontents.dataset.offset?parseInt(t.tableofcontents.dataset.offset):30,a=t.start_page?parseInt(t.start_page):0,i=t.addons.filters_startpage?parseInt(t.addons.filters_startpage):0,l=t.addons.nextpage_startpage?parseInt(t.addons.nextpage_startpage):0,c=parseInt(t.page),u="true"===t.addons.preloaded;if(t.addons.paging||t.addons.nextpage)return!1;e?setTimeout((function(){if(t.addons.seo&&a>1||t.addons.filters&&i>1||t.addons.nextpage&&l>1){if(t.addons.seo&&a>1)for(var e=0;e<a;e++)s(t,e,o);if(t.addons.filters&&i>1)for(var r=0;r<i;r++)s(t,r,o);if(t.addons.nextpage&&l>1)for(var d=0;d<l;d++)s(t,d,o)}else!n&&u&&(c+=1),s(t,c,o)}),100):(u&&(t.addons.seo&&a>0||t.addons.filters&&i>0?c=c:c+=1),s(t,c,o))}},e.clearTOC=function(){var t=document.querySelector(".alm-toc");t&&(t.innerHTML="")};var r,o=n(96),a=n(49),i=(r=a)&&r.__esModule?r:{default:r};function s(t,e,n){if(!t.tableofcontents)return!1;var r=document.createElement("button");r.type="button",e=parseInt(e)+1,r.innerHTML=function(t,e){var n=e;if(t.addons.single_post){var r=e-1,o=void 0;if(t.addons.single_post_target){t.init?r=r:r+=1;var a=document.querySelectorAll(".alm-reveal.alm-single-post");a&&(o=a[r])}else o=document.querySelector(".alm-reveal.alm-single-post[data-page="+(e-1)+"]");n=o?o.dataset.title:n}var i="almTOCLabel_"+t.id;"function"==typeof window[i]&&(n=window[i](e,n));return n}(t,e),r.dataset.page=t.addons.single_post_target&&t.init?e-1:e,t.tableofcontents.appendChild(r),r.addEventListener("click",(function(e){var r=this.dataset.page,a=document.querySelector(".alm-reveal:nth-child("+r+")")||document.querySelector(".alm-nextpage:nth-child("+r+")");if(t.addons.single_post_target&&(a=document.querySelector('.alm-reveal.alm-single-post[data-page="'+r+'"]')),!a)return!1;var s="function"==typeof o.getOffset?(0,o.getOffset)(a).top:a.offsetTop;(0,o.almScroll)(s-n),setTimeout((function(){(0,i.default)(t,a,r,!1)}),1e3)}))}},function(t,e,n){"use strict";function r(t,e,n,r,o){return e.classList.add(r),e.dataset.page=o,"default"===t.addons.seo_permalink?e.dataset.url=o>1?t.canonical_url+n+"&paged="+o:t.canonical_url+n:e.dataset.url=o>1?t.canonical_url+t.addons.seo_leading_slash+"page/"+o+t.addons.seo_trailing_slash+n:t.canonical_url+n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.createMasonrySEOPage=function(t,e){if(!t.addons.seo)return e;var n=window.location.search,o=t.page+1;return o="true"===t.addons.preloaded?o+1:o,e=r(t,e,n,"alm-seo",o)},e.createMasonrySEOPages=function(t,e){if(!t.addons.seo)return e;var n=1,o=t.page,a=window.location.search;if(t.start_page>1){for(var i=parseInt(t.posts_per_page),s=[],l=0;l<e.length;l+=i)s.push(e.slice(l,i+l));for(var c=0;c<s.length;c++){var u=c>0?c*i:0;n=c+1,e[u]&&(e[u]=r(t,e[u],a,"alm-seo",n))}}else n=o,e[0]=r(t,e[0],a,"alm-seo",n);return e},e.createSEOAttributes=function(t,e,n,r,o){e.setAttribute("class","alm-reveal"+r+t.tcc),e.dataset.page=o,"default"===t.addons.seo_permalink?e.dataset.url=o>1?t.canonical_url+n+"&paged="+o:t.canonical_url+n:e.dataset.url=o>1?t.canonical_url+t.addons.seo_leading_slash+"page/"+o+t.addons.seo_trailing_slash+n:t.canonical_url+n;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(179)),o=a(n(49));function a(t){return t&&t.__esModule?t:{default:t}}function i(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}e.default=function(t,e,n,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window.location,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"";return new Promise((function(c){var u=e.length,d=0,f=1;!function p(){f<=u?i(regeneratorRuntime.mark((function o(){return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return e[d].style.opacity=0,1==f&&(e[d].classList.add(l),e[d].dataset.url=s,e[d].dataset.page=n.page+1,e[d].dataset.pageTitle=a),o.next=4,(0,r.default)(t,e[d],n.ua);case 4:f++,d++,p();case 7:case"end":return o.stop()}}),o,this)})))().catch((function(t){console.log("There was an error loading the items")})):(setTimeout((function(){e.map((function(t){t.style.opacity=1})),e[0]&&(0,o.default)(n,e[0],null,!1)}),50),c(!0))}()}))}},function(t,e,n){t.exports=!n(8)&&!n(2)((function(){return 7!=Object.defineProperty(n(70)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(1),o=n(7),a=n(31),i=n(71),s=n(9).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=a?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:i.f(t)})}},function(t,e,n){var r=n(14),o=n(16),a=n(52)(!1),i=n(72)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),l=0,c=[];for(n in s)n!=i&&r(s,n)&&c.push(n);for(;e.length>l;)r(s,n=e[l++])&&(~a(c,n)||c.push(n));return c}},function(t,e,n){var r=n(9),o=n(3),a=n(32);t.exports=n(8)?Object.defineProperties:function(t,e){o(t);for(var n,i=a(e),s=i.length,l=0;s>l;)r.f(t,n=i[l++],e[n]);return t}},function(t,e,n){var r=n(16),o=n(35).f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return i&&"[object Window]"==a.call(t)?function(t){try{return o(t)}catch(t){return i.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(8),o=n(32),a=n(53),i=n(46),s=n(10),l=n(45),c=Object.assign;t.exports=!c||n(2)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r}))?function(t,e){for(var n=s(t),c=arguments.length,u=1,d=a.f,f=i.f;c>u;)for(var p,g=l(arguments[u++]),h=d?o(g).concat(d(g)):o(g),m=h.length,v=0;m>v;)p=h[v++],r&&!f.call(g,p)||(n[p]=g[p]);return n}:c},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var r=n(19),o=n(4),a=n(116),i=[].slice,s={},l=function(t,e,n){if(!(e in s)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";s[e]=Function("F,a","return new F("+r.join(",")+")")}return s[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=i.call(arguments,1),s=function(){var r=n.concat(i.call(arguments));return this instanceof s?l(e,r.length,r):a(e,r,t)};return o(e.prototype)&&(s.prototype=e.prototype),s}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(1).parseInt,o=n(40).trim,a=n(76),i=/^[-+]?0[xX]/;t.exports=8!==r(a+"08")||22!==r(a+"0x16")?function(t,e){var n=o(String(t),3);return r(n,e>>>0||(i.test(n)?16:10))}:r},function(t,e,n){var r=n(1).parseFloat,o=n(40).trim;t.exports=1/r(n(76)+"-0")!=-1/0?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(24);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(4),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var r=n(34),o=n(29),a=n(39),i={};n(15)(i,n(5)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(i,{next:o(1,n)}),a(t,e+" Iterator")}},function(t,e,n){var r=n(3);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var a=t.return;throw void 0!==a&&r(a.call(t)),e}}},function(t,e,n){var r=n(275);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(19),o=n(10),a=n(45),i=n(6);t.exports=function(t,e,n,s,l){r(e);var c=o(t),u=a(c),d=i(c.length),f=l?d-1:0,p=l?-1:1;if(n<2)for(;;){if(f in u){s=u[f],f+=p;break}if(f+=p,l?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;l?f>=0:d>f;f+=p)f in u&&(s=e(s,u[f],f,c));return s}},function(t,e,n){"use strict";var r=n(10),o=n(33),a=n(6);t.exports=[].copyWithin||function(t,e){var n=r(this),i=a(n.length),s=o(t,i),l=o(e,i),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?i:o(c,i))-l,i-s),d=1;for(l<s&&s<l+u&&(d=-1,l+=u-1,s+=u-1);u-- >0;)l in n?n[s]=n[l]:delete n[s],s+=d,l+=d;return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(91);n(0)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e,n){n(8)&&"g"!=/./g.flags&&n(9).f(RegExp.prototype,"flags",{configurable:!0,get:n(56)})},function(t,e,n){"use strict";var r,o,a,i,s=n(31),l=n(1),c=n(18),u=n(47),d=n(0),f=n(4),p=n(19),g=n(43),h=n(59),m=n(48),v=n(93).set,_=n(295)(),y=n(131),b=n(296),w=n(60),x=n(132),S=l.TypeError,A=l.process,j=A&&A.versions,E=j&&j.v8||"",L=l.Promise,P="process"==u(A),M=function(){},O=o=y.f,T=!!function(){try{var t=L.resolve(1),e=(t.constructor={})[n(5)("species")]=function(t){t(M,M)};return(P||"function"==typeof PromiseRejectionEvent)&&t.then(M)instanceof e&&0!==E.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),I=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},F=function(t,e){if(!t._n){t._n=!0;var n=t._c;_((function(){for(var r=t._v,o=1==t._s,a=0,i=function(e){var n,a,i,s=o?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(o||(2==t._h&&k(t),t._h=1),!0===s?n=r:(u&&u.enter(),n=s(r),u&&(u.exit(),i=!0)),n===e.promise?c(S("Promise-chain cycle")):(a=I(n))?a.call(n,l,c):l(n)):c(r)}catch(t){u&&!i&&u.exit(),c(t)}};n.length>a;)i(n[a++]);t._c=[],t._n=!1,e&&!t._h&&C(t)}))}},C=function(t){v.call(l,(function(){var e,n,r,o=t._v,a=N(t);if(a&&(e=b((function(){P?A.emit("unhandledRejection",o,t):(n=l.onunhandledrejection)?n({promise:t,reason:o}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",o)})),t._h=P||N(t)?2:1),t._a=void 0,a&&e.e)throw e.v}))},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},k=function(t){v.call(l,(function(){var e;P?A.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})}))},R=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),F(e,!0))},q=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=I(t))?_((function(){var r={_w:n,_d:!1};try{e.call(t,c(q,r,1),c(R,r,1))}catch(t){R.call(r,t)}})):(n._v=t,n._s=1,F(n,!1))}catch(t){R.call({_w:n,_d:!1},t)}}};T||(L=function(t){g(this,L,"Promise","_h"),p(t),r.call(this);try{t(c(q,this,1),c(R,this,1))}catch(t){R.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(44)(L.prototype,{then:function(t,e){var n=O(m(this,L));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=P?A.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&F(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new r;this.promise=t,this.resolve=c(q,t,1),this.reject=c(R,t,1)},y.f=O=function(t){return t===L||t===i?new a(t):o(t)}),d(d.G+d.W+d.F*!T,{Promise:L}),n(39)(L,"Promise"),n(42)("Promise"),i=n(7).Promise,d(d.S+d.F*!T,"Promise",{reject:function(t){var e=O(this);return(0,e.reject)(t),e.promise}}),d(d.S+d.F*(s||!T),"Promise",{resolve:function(t){return x(s&&this===i?L:this,t)}}),d(d.S+d.F*!(T&&n(55)((function(t){L.all(t).catch(M)}))),"Promise",{all:function(t){var e=this,n=O(e),r=n.resolve,o=n.reject,a=b((function(){var n=[],a=0,i=1;h(t,!1,(function(t){var s=a++,l=!1;n.push(void 0),i++,e.resolve(t).then((function(t){l||(l=!0,n[s]=t,--i||r(n))}),o)})),--i||r(n)}));return a.e&&o(a.v),n.promise},race:function(t){var e=this,n=O(e),r=n.reject,o=b((function(){h(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(t,e,n){"use strict";var r=n(19);function o(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(3),o=n(4),a=n(131);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=a.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(9).f,o=n(34),a=n(44),i=n(18),s=n(43),l=n(59),c=n(82),u=n(127),d=n(42),f=n(8),p=n(28).fastKey,g=n(38),h=f?"_s":"size",m=function(t,e){var n,r=p(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var u=t((function(t,r){s(t,u,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[h]=0,null!=r&&l(r,n,t[c],t)}));return a(u.prototype,{clear:function(){for(var t=g(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[h]=0},delete:function(t){var n=g(this,e),r=m(n,t);if(r){var o=r.n,a=r.p;delete n._i[r.i],r.r=!0,a&&(a.n=o),o&&(o.p=a),n._f==r&&(n._f=o),n._l==r&&(n._l=a),n[h]--}return!!r},forEach:function(t){g(this,e);for(var n,r=i(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!m(g(this,e),t)}}),f&&r(u.prototype,"size",{get:function(){return g(this,e)[h]}}),u},def:function(t,e,n){var r,o,a=m(t,e);return a?a.v=n:(t._l=a={i:o=p(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=a),r&&(r.n=a),t[h]++,"F"!==o&&(t._i[o]=a)),t},getEntry:m,setStrong:function(t,e,n){c(t,e,(function(t,n){this._t=g(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?u(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,u(1))}),n?"entries":"values",!n,!0),d(e)}}},function(t,e,n){"use strict";var r=n(44),o=n(28).getWeak,a=n(3),i=n(4),s=n(43),l=n(59),c=n(23),u=n(14),d=n(38),f=c(5),p=c(6),g=0,h=function(t){return t._l||(t._l=new m)},m=function(){this.a=[]},v=function(t,e){return f(t.a,(function(t){return t[0]===e}))};m.prototype={get:function(t){var e=v(this,t);if(e)return e[1]},has:function(t){return!!v(this,t)},set:function(t,e){var n=v(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=p(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,a){var c=t((function(t,r){s(t,c,e,"_i"),t._t=e,t._i=g++,t._l=void 0,null!=r&&l(r,n,t[a],t)}));return r(c.prototype,{delete:function(t){if(!i(t))return!1;var n=o(t);return!0===n?h(d(this,e)).delete(t):n&&u(n,this._i)&&delete n[this._i]},has:function(t){if(!i(t))return!1;var n=o(t);return!0===n?h(d(this,e)).has(t):n&&u(n,this._i)}}),c},def:function(t,e,n){var r=o(a(e),!0);return!0===r?h(t).set(e,n):r[t._i]=n,t},ufstore:h}},function(t,e,n){var r=n(20),o=n(6);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var r=n(35),o=n(53),a=n(3),i=n(1).Reflect;t.exports=i&&i.ownKeys||function(t){var e=r.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(6),o=n(78),a=n(25);t.exports=function(t,e,n,i){var s=String(a(t)),l=s.length,c=void 0===n?" ":String(n),u=r(e);if(u<=l||""==c)return s;var d=u-l,f=o.call(c,Math.ceil(d/c.length));return f.length>d&&(f=f.slice(0,d)),i?f+s:s+f}},function(t,e,n){var r=n(8),o=n(32),a=n(16),i=n(46).f;t.exports=function(t){return function(e){for(var n,s=a(e),l=o(s),c=l.length,u=0,d=[];c>u;)n=l[u++],r&&!i.call(s,n)||d.push(t?[n,s[n]]:s[n]);return d}}},function(t,e,n){"use strict";var r=String.prototype.replace,o=/%20/g,a=n(95),i={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports=a.assign({default:i.RFC3986,formatters:{RFC1738:function(t){return r.call(t,o,"+")},RFC3986:function(t){return String(t)}}},i)},function(t,e,n){"use strict";var r=n(13),o=n(97),a=n(142),i=n(64);function s(t){var e=new a(t),n=o(a.prototype.request,e);return r.extend(n,a.prototype,e),r.extend(n,e),n}var l=s(i);l.Axios=a,l.create=function(t){return s(r.merge(i,t))},l.Cancel=n(101),l.CancelToken=n(156),l.isCancel=n(100),l.all=function(t){return Promise.all(t)},l.spread=n(157),t.exports=l,t.exports.default=l},function(t,e){
|
7 |
/*!
|
8 |
* Determine if an object is a Buffer
|
9 |
*
|
10 |
* @author Feross Aboukhadijeh <https://feross.org>
|
11 |
* @license MIT
|
12 |
*/
|
13 |
-
t.exports=function(t){return null!=t&&null!=t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},function(t,e,n){"use strict";var r=n(64),o=n(13),a=n(151),i=n(152);function s(t){this.defaults=t,this.interceptors={request:new a,response:new a}}s.prototype.request=function(t){"string"==typeof t&&(t=o.merge({url:arguments[0]},arguments[1])),(t=o.merge(r,{method:"get"},this.defaults,t)).method=t.method.toLowerCase();var e=[i,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},o.forEach(["delete","get","head","options"],(function(t){s.prototype[t]=function(e,n){return this.request(o.merge(n||{},{method:t,url:e}))}})),o.forEach(["post","put","patch"],(function(t){s.prototype[t]=function(e,n,r){return this.request(o.merge(r||{},{method:t,url:e,data:n}))}})),t.exports=s},function(t,e){var n,r,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var l,c=[],u=!1,d=-1;function f(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var t=s(f);u=!0;for(var e=c.length;e;){for(l=c,c=[];++d<e;)l&&l[d].run();d=-1,e=c.length}l=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function g(t,e){this.fun=t,this.array=e}function h(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new g(t,e)),1!==c.length||u||s(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(99);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t}},function(t,e,n){"use strict";var r=n(13);function o(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var a;if(n)a=n(e);else if(r.isURLSearchParams(e))a=e.toString();else{var i=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),i.push(o(e)+"="+o(t))})))})),a=i.join("&")}return a&&(t+=(-1===t.indexOf("?")?"?":"&")+a),t}},function(t,e,n){"use strict";var r=n(13),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,a,i={};return t?(r.forEach(t.split("\n"),(function(t){if(a=t.indexOf(":"),e=r.trim(t.substr(0,a)).toLowerCase(),n=r.trim(t.substr(a+1)),e){if(i[e]&&o.indexOf(e)>=0)return;i[e]="set-cookie"===e?(i[e]?i[e]:[]).concat([n]):i[e]?i[e]+", "+n:n}})),i):i}},function(t,e,n){"use strict";var r=n(13);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(13);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,a,i){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(a)&&s.push("domain="+a),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r=n(13);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},function(t,e,n){"use strict";var r=n(13),o=n(153),a=n(100),i=n(64),s=n(154),l=n(155);function c(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return c(t),t.baseURL&&!s(t.url)&&(t.url=l(t.baseURL,t.url)),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||i.adapter)(t).then((function(e){return c(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return a(e)||(c(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(101);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){!function(){"use strict";t.exports={polyfill:function(){var t=window,e=document;if(!("scrollBehavior"in e.documentElement.style)||!0===t.__forceSmoothScrollPolyfill__){var n,r=t.HTMLElement||t.Element,o={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:r.prototype.scroll||s,scrollIntoView:r.prototype.scrollIntoView},a=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,i=(n=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?g.call(t,e.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):o.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?o.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):g.call(t,e.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},r.prototype.scroll=r.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var t=arguments[0].left,e=arguments[0].top;g.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===e?this.scrollTop:~~e)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},r.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},r.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var n=f(this),r=n.getBoundingClientRect(),a=this.getBoundingClientRect();n!==e.body?(g.call(this,n,n.scrollLeft+a.left-r.left,n.scrollTop+a.top-r.top),"fixed"!==t.getComputedStyle(n).position&&t.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):t.scrollBy({left:a.left,top:a.top,behavior:"smooth"})}else o.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function s(t,e){this.scrollLeft=t,this.scrollTop=e}function l(t){if(null===t||"object"!=typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"==typeof t&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function c(t,e){return"Y"===e?t.clientHeight+i<t.scrollHeight:"X"===e?t.clientWidth+i<t.scrollWidth:void 0}function u(e,n){var r=t.getComputedStyle(e,null)["overflow"+n];return"auto"===r||"scroll"===r}function d(t){var e=c(t,"Y")&&u(t,"Y"),n=c(t,"X")&&u(t,"X");return e||n}function f(t){for(;t!==e.body&&!1===d(t);)t=t.parentNode||t.host;return t}function p(e){var n,r,o,i,s=(a()-e.startTime)/468;i=s=s>1?1:s,n=.5*(1-Math.cos(Math.PI*i)),r=e.startX+(e.x-e.startX)*n,o=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,r,o),r===e.x&&o===e.y||t.requestAnimationFrame(p.bind(t,e))}function g(n,r,i){var l,c,u,d,f=a();n===e.body?(l=t,c=t.scrollX||t.pageXOffset,u=t.scrollY||t.pageYOffset,d=o.scroll):(l=n,c=n.scrollLeft,u=n.scrollTop,d=s),p({scrollable:l,method:d,startTime:f,startX:c,startY:u,x:r,y:i})}}}}()},function(t,e,n){"use strict";var r,o,a,i;history,Object.entries||(Object.entries=function(t){for(var e=Object.keys(t),n=e.length,r=new Array(n);n--;)r[n]=[e[n],t[e[n]]];return r}),void 0===Array.isArray&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Array.from||(Array.from=(r=Object.prototype.toString,o=function(t){return"function"==typeof t||"[object Function]"===r.call(t)},a=Math.pow(2,53)-1,i=function(t){var e=function(t){var e=Number(t);return isNaN(e)?0:0!==e&&isFinite(e)?(e>0?1:-1)*Math.floor(Math.abs(e)):e}(t);return Math.min(Math.max(e,0),a)},function(t){var e=this,n=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r,a=arguments.length>1?arguments[1]:void 0;if(void 0!==a){if(!o(a))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(r=arguments[2])}for(var s,l=i(n.length),c=o(e)?Object(new e(l)):new Array(l),u=0;u<l;)s=n[u],c[u]=a?void 0===r?a(s,u):a.call(r,s,u):s,u+=1;return c.length=l,c})),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(t,e){e=e||window;for(var n=0;n<this.length;n++)t.call(e,this[n],n,this)}),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){e||(e=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["#text","#comment"];e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fade";if(!t||!e)return!1;-1===r.indexOf(e.nodeName.toLowerCase())&&("masonry"===n&&(e.style.opacity=0),t.appendChild(e))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return!1;var e=document.createElement("tbody");e.innerHTML=t;var n=[e];return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(65);e.default=function(t){if(!t)return!1;var e="",n=".html",o=t.addons.cache_path+t.addons.cache_id;if(t.init&&t.addons.seo&&t.isPaged)e=o+"/page-1-"+t.start_page+n;else if(t.addons.filters){var a=(0,r.parseQuerystring)(o);if(t.init&&t.isPaged)e=a+"/page-1-"+t.addons.filters_startpage+n;else{var i=t.page+1;"true"===t.addons.preloaded&&(i=t.page+2),e=a+"/page-"+i+n}}else if(t.addons.nextpage){var s=void 0;t.addons.paging?s=parseInt(t.page)+1:(s=parseInt(t.page)+2,t.isPaged&&(s=parseInt(t.page)+parseInt(t.addons.nextpage_startpage)+1)),e=o+"/page-"+s+n}else e=t.addons.single_post?o+"/"+t.addons.single_post_id+n:"true"===t.addons.comments&&"true"===t.addons.preloaded?o+"/page-"+(t.page+2)+n:o+"/page-"+(t.page+1)+n;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){for(var e=window.location.search.substring(1).split("&"),n=0;n<e.length;n++){var r=e[n].split("=");if(decodeURIComponent(r[0])==t)return decodeURIComponent(r[1])}return!1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.almGetAjaxParams=function(t,e,n){var r={id:t.id,post_id:t.post_id,slug:t.slug,canonical_url:encodeURIComponent(t.canonical_url),posts_per_page:t.posts_per_page,page:t.page,offset:t.offset,post_type:t.post_type,repeater:t.repeater,seo_start_page:t.start_page};t.theme_repeater&&(r.theme_repeater=t.theme_repeater);t.addons.filters&&(r.filters=t.addons.filters,r.filters_startpage=t.addons.filters_startpage);t.addons.paging&&(r.paging=t.addons.paging);t.addons.preloaded&&(r.preloaded=t.addons.preloaded,r.preloaded_amount=t.addons.preloaded_amount);"true"===t.addons.cache&&(r.cache_id=t.addons.cache_id,r.cache_logged_in=t.addons.cache_logged_in);t.acf_array&&(r.acf=t.acf_array);t.term_query_array&&(r.term_query=t.term_query_array);t.cta_array&&(r.cta=t.cta_array);t.comments_array&&(r.comments=t.comments_array);t.nextpage_array&&(r.nextpage=t.nextpage_array);t.single_post_array&&(r.single_post=t.single_post_array);t.users_array&&(r.users=t.users_array);t.listing.dataset.lang&&(r.lang=t.listing.dataset.lang);t.listing.dataset.stickyPosts&&(r.sticky_posts=t.listing.dataset.stickyPosts);t.listing.dataset.postFormat&&(r.post_format=t.listing.dataset.postFormat);t.listing.dataset.category&&(r.category=t.listing.dataset.category);t.listing.dataset.categoryAnd&&(r.category__and=t.listing.dataset.categoryAnd);t.listing.dataset.categoryNotIn&&(r.category__not_in=t.listing.dataset.categoryNotIn);t.listing.dataset.tag&&(r.tag=t.listing.dataset.tag);t.listing.dataset.tagAnd&&(r.tag__and=t.listing.dataset.tagAnd);t.listing.dataset.tagNotIn&&(r.tag__not_in=t.listing.dataset.tagNotIn);t.listing.dataset.taxonomy&&(r.taxonomy=t.listing.dataset.taxonomy);t.listing.dataset.taxonomyTerms&&(r.taxonomy_terms=t.listing.dataset.taxonomyTerms);t.listing.dataset.taxonomyOperator&&(r.taxonomy_operator=t.listing.dataset.taxonomyOperator);t.listing.dataset.taxonomyRelation&&(r.taxonomy_relation=t.listing.dataset.taxonomyRelation);t.listing.dataset.metaKey&&(r.meta_key=t.listing.dataset.metaKey);t.listing.dataset.metaValue&&(r.meta_value=t.listing.dataset.metaValue);t.listing.dataset.metaCompare&&(r.meta_compare=t.listing.dataset.metaCompare);t.listing.dataset.metaRelation&&(r.meta_relation=t.listing.dataset.metaRelation);t.listing.dataset.metaType&&(r.meta_type=t.listing.dataset.metaType);t.listing.dataset.author&&(r.author=t.listing.dataset.author);t.listing.dataset.year&&(r.year=t.listing.dataset.year);t.listing.dataset.month&&(r.month=t.listing.dataset.month);t.listing.dataset.day&&(r.day=t.listing.dataset.day);t.listing.dataset.order&&(r.order=t.listing.dataset.order);t.listing.dataset.orderby&&(r.orderby=t.listing.dataset.orderby);t.listing.dataset.postStatus&&(r.post_status=t.listing.dataset.postStatus);t.listing.dataset.postIn&&(r.post__in=t.listing.dataset.postIn);t.listing.dataset.postNotIn&&(r.post__not_in=t.listing.dataset.postNotIn);t.listing.dataset.exclude&&(r.exclude=t.listing.dataset.exclude);t.listing.dataset.search&&(r.search=t.listing.dataset.search);t.listing.dataset.s&&(r.search=t.listing.dataset.s);t.listing.dataset.customArgs&&(r.custom_args=t.listing.dataset.customArgs);return r.action=e,r.query_type=n,r},e.almGetRestParams=function(t){return{id:t.id,post_id:t.post_id,posts_per_page:t.posts_per_page,page:t.page,offset:t.offset,slug:t.slug,canonical_url:encodeURIComponent(t.canonical_url),post_type:t.post_type,post_format:t.listing.dataset.postFormat,category:t.listing.dataset.category,category__not_in:t.listing.dataset.categoryNotIn,tag:t.listing.dataset.tag,tag__not_in:t.listing.dataset.tagNotIn,taxonomy:t.listing.dataset.taxonomy,taxonomy_terms:t.listing.dataset.taxonomyTerms,taxonomy_operator:t.listing.dataset.taxonomyOperator,taxonomy_relation:t.listing.dataset.taxonomyRelation,meta_key:t.listing.dataset.metaKey,meta_value:t.listing.dataset.metaValue,meta_compare:t.listing.dataset.metaCompare,meta_relation:t.listing.dataset.metaRelation,meta_type:t.listing.dataset.metaType,author:t.listing.dataset.author,year:t.listing.dataset.year,month:t.listing.dataset.month,day:t.listing.dataset.day,post_status:t.listing.dataset.postStatus,order:t.listing.dataset.order,orderby:t.listing.dataset.orderby,post__in:t.listing.dataset.postIn,post__not_in:t.listing.dataset.postNotIn,search:t.listing.dataset.search,s:t.listing.dataset.s,custom_args:t.listing.dataset.customArgs,lang:t.lang,preloaded:t.addons.preloaded,preloaded_amount:t.addons.preloaded_amount,seo_start_page:t.start_page}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(104));e.default=function(t){return new Promise((function(e){var n="standard";t.addons.nextpage?(n="nextpage",t.addons.paging?t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1):t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+parseInt(t.addons.nextpage_startpage)+1)):t.addons.woocommerce?(n="woocommerce",t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1)):t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1),"true"===t.addons.preloaded||t.addons.nextpage||t.addons.woocommerce||t.AjaxLoadMore.setLocalizedVar("total_posts",t.totalposts),t.AjaxLoadMore.setLocalizedVar("post_count",function(t){var e=parseInt(t.posts),n=parseInt(t.addons.preloaded_amount),r=e+n;return r=t.start_page>1?r-n:r,r=t.addons.filters_startpage>1?r-n:r,r=t.addons.single_post?r+1:r,r=t.addons.nextpage?r+1:r}(t)),r.almResultsText(t,n),e(!0)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(66);(r=o)&&r.__esModule;var a={init:function(t){if(!0===this.isScript(t))t.parentNode.replaceChild(this.clone(t),t);else{var e=0,n=t.childNodes;if(void 0===n){var r=(new DOMParser).parseFromString(t,"text/html");r&&(n=r.body.childNodes)}for(;e<n.length;)this.replace(n[e++])}return t},replace:function(t){if(!0===this.isScript(t))t.parentNode.replaceChild(this.clone(t),t);else for(var e=0,n=t.childNodes;e<n.length;)this.replace(n[e++]);return t},isScript:function(t){return"SCRIPT"===t.tagName},clone:function(t){var e=document.createElement("script");e.text=t.innerHTML;for(var n=t.attributes.length-1;n>=0;n--)e.setAttribute(t.attributes[n].name,t.attributes[n].value);return e}};e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(!t||!t.trigger)return!1;var e=t.trigger.querySelector("button"),n=e?e.dataset.url:"";return n||""}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=d(n(50)),o=d(n(102)),a=d(n(66)),i=d(n(67)),s=d(n(103)),l=n(65),c=n(106),u=d(n(49));function d(t){return t&&t.__esModule?t:{default:t}}var f=n(68);e.default=function t(e,n,d){return new Promise((function(p){var g=e.listing,h=e.html,m=e.masonry_selector,v=e.masonry_columnwidth,_=e.masonry_animation,y=e.masonry_horizontalorder,b=e.speed,w=e.masonry_init,x=(b+100)/1e3+"s",S="scale(0.5)",A="scale(1)";if("zoom-out"===_&&(S="translateY(-20px) scale(1.25)",A="translateY(0) scale(1)"),"slide-up"===_&&(S="translateY(50px)",A="translateY(0)"),"slide-down"===_&&(S="translateY(-50px)",A="translateY(0)"),"none"===_&&(S="translateY(0)",A="translateY(0)"),v?isNaN(v)||(v=parseInt(v)):v=m,y="true"===y,d)g.parentNode.style.opacity=0,t(e,!0,!1),p(!0);else if(w&&n)(0,i.default)(g,e.ua),f(g,(function(){var t={itemSelector:m,transitionDuration:x,columnWidth:v,horizontalOrder:y,hiddenStyle:{transform:S,opacity:0},visibleStyle:{transform:A,opacity:1}},n=window.alm_masonry_vars;n&&Object.keys(n).forEach((function(e){t[e]=n[e]}));var o=g.querySelectorAll(m);e.addons.filters&&(o=(0,l.createMasonryFiltersPages)(e,Array.prototype.slice.call(o))),e.addons.seo&&(o=(0,c.createMasonrySEOPages)(e,Array.prototype.slice.call(o))),setTimeout((function(){e.msnry=new Masonry(g,t),(0,r.default)(g.parentNode,125),p(!0)}),1)}));else{var j=(0,s.default)((0,a.default)(h,"text/html"));j&&((0,o.default)(e.listing,j,"masonry"),(0,i.default)(g,e.ua),f(g,(function(){e.msnry.appended(j),(0,u.default)(e,j,j.length,!1),e.addons.filters&&(0,l.createMasonryFiltersPage)(e,j[0]),e.addons.seo&&(0,c.createMasonrySEOPage)(e,j[0]),p(!0)})))}}))}},function(t,e,n){var r,o;"undefined"!=typeof window&&window,void 0===(o="function"==typeof(r=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},r=n[t]=n[t]||[];return-1==r.indexOf(e)&&r.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var r=n.indexOf(e);return-1!=r&&n.splice(r,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var r=this._onceEvents&&this._onceEvents[t],o=0;o<n.length;o++){var a=n[o];r&&r[a]&&(this.off(t,a),delete r[a]),a.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?r.call(e,n,e,t):r)||(t.exports=o)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){o=!0,a=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=s(n(50)),a=s(n(69)),i=n(105);function s(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filter";if(n.target){var o=document.querySelectorAll('.ajax-load-more-wrap[data-id="'+n.target+'"]');o.forEach((function(o){l(t,e,n,o,r)}))}else{var a=document.querySelectorAll(".ajax-load-more-wrap");a.forEach((function(o){l(t,e,n,o,r)}))}(0,i.clearTOC)()};var l=function(t,e,n,r,o){if("fade"===t||"masonry"===t){switch(o){case"filter":r.classList.add("alm-is-filtering"),(0,a.default)(r,e);break;case"tab":r.classList.add("alm-loading");var i=r.querySelector(".alm-listing");r.style.height=i.offsetHeight+"px",(0,a.default)(i,e)}setTimeout((function(){c(e,n,r,o)}),e)}else r.classList.add("alm-is-filtering"),c(e,n,r,o)},c=function(t,e,n,r){var o=n.querySelector(".alm-btn-wrap"),a=n.querySelectorAll(".alm-listing");[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(a)).forEach((function(t){t.innerHTML=""}));var i=o.querySelector(".alm-load-more-btn");i&&i.classList.remove("done");var s=o.querySelector(".alm-paging");s&&(s.style.opacity=0),e.preloadedAmount=0,u(t,e,n,r)},u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,e=arguments[1],n=arguments[2],a=arguments[3],i=n.querySelector(".alm-listing")||n.querySelector(".alm-comments");if(!i)return!1;switch(a){case"filter":var s=!0,l=!1,c=void 0;try{for(var u,d=Object.entries(e)[Symbol.iterator]();!(s=(u=d.next()).done);s=!0){var f=u.value,p=r(f,2),g=p[0],h=p[1];g=g.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase(),i.setAttribute("data-"+g,h)}}catch(t){l=!0,c=t}finally{try{!s&&d.return&&d.return()}finally{if(l)throw c}}(0,o.default)(n,t);break;case"tab":i.setAttribute("data-preloaded","false"),i.setAttribute("data-pause","false"),i.setAttribute("data-tab-template",e.tabTemplate)}var m="";switch(e.target?(m=document.querySelector('.ajax-load-more-wrap[data-id="'+e.target+'"]'))&&window.almInit(m):(m=document.querySelector(".ajax-load-more-wrap"))&&window.almInit(m),a){case"filter":"function"==typeof almFilterComplete&&almFilterComplete();break;case"tab":"function"==typeof almTabsComplete&&almTabsComplete()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(""===e)return!1;e=e.replace(/(<p><\/p>)+/g,""),t.innerHTML=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(t&&t.debug){var e={query:t.debug,localize:t.localize};console.log("ALM Debug:",e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(!t)return!1;var e=-1!==t.scroll_distance_orig.toString().indexOf("-"),n=t.scroll_distance_orig.toString().replace("-","").replace("%",""),r=t.window.innerHeight,o=Math.floor(r/100*parseInt(n));return parseInt(e?"-"+o:o)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showPlaceholder=function(t){if(!t||!t.main||t.addons.paging)return!1;t.placeholder&&(t.placeholder.style.display="block",(0,r.default)(t.placeholder,75))},e.hidePlaceholder=function(t){if(!t||!t.main||t.addons.paging)return!1;t.placeholder&&((0,o.default)(t.placeholder,75),setTimeout((function(){t.placeholder.style.display="none"}),75))};var r=a(n(50)),o=a(n(69));function a(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={html:"",meta:{postcount:1,totalposts:1,debug:"Single Posts Query"}};if(200===t.status&&t.data&&e){var r=document.createElement("div");r.innerHTML=t.data;var o=r.querySelector(e);o&&(n.html=o.innerHTML)}return n}Object.defineProperty(e,"__esModule",{value:!0}),e.singlePostHTML=r,e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCacheFile=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"standard";if("true"!==t.addons.cache||!e||""===e)return!1;var r="single"===n?t.addons.single_post_id:"page-"+(t.page+1),o=new FormData;o.append("action","alm_cache_from_html"),o.append("security",alm_localize.alm_nonce),o.append("cache_id",t.addons.cache_id),o.append("cache_logged_in",t.addons.cache_logged_in),o.append("canonical_url",t.canonical_url),o.append("name",r),o.append("html",e.trim()),a.default.post(alm_localize.ajaxurl,o).then((function(e){console.log("Cache created for: "+t.canonical_url)}))},e.wooCache=function(t,e){if("true"!==t.addons.cache||!e||""===e)return!1;var n=new FormData;n.append("action","alm_cache_from_html"),n.append("security",alm_localize.alm_nonce),n.append("cache_id",t.addons.cache_id),n.append("cache_logged_in",t.addons.cache_logged_in),n.append("canonical_url",t.canonical_url),n.append("name","page-"+t.page),n.append("html",e.trim()),a.default.post(alm_localize.ajaxurl,n).then((function(e){console.log("Cache created for post: "+t.canonical_url)}))};var r,o=n(63),a=(r=o)&&r.__esModule?r:{default:r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wooInit=function(t){if(!t||!t.addons.woocommerce)return!1;t.button.dataset.page=t.addons.woocommerce_settings.paged+1;var e=t.addons.woocommerce_settings.paged_urls[t.addons.woocommerce_settings.paged];t.button.dataset.url=e||"";var n=document.querySelector(t.addons.woocommerce_settings.container);if(n){n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),t.listing.removeAttribute("aria-live"),t.listing.removeAttribute("aria-atomic");var r=n.querySelector(t.addons.woocommerce_settings.products);r&&(r.classList.add("alm-woocommerce"),r.dataset.url=t.addons.woocommerce_settings.paged_urls[t.addons.woocommerce_settings.paged-1],r.dataset.page=t.page,r.dataset.pageTitle=document.title),t.addons.woocommerce_settings.paged>1&&function(t){if(t&&t.addons.woocommerce_settings.results_text){var e=document.querySelectorAll(t.addons.woocommerce_settings.results);if(e.length<1)return!1;var n=t.addons.woocommerce_settings.settings.previous_page_link,r=t.addons.woocommerce_settings.settings.previous_page_label,o=t.addons.woocommerce_settings.settings.previous_page_sep;e.forEach((function(t){n&&r&&(t.innerHTML=s(t,n,r,o))}))}}(t)}},e.woocommerce=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.title;if(!t||!e)return!1;return new Promise((function(r){var a=document.querySelector(e.addons.woocommerce_settings.container),s=t.querySelectorAll(e.addons.woocommerce_settings.products),l=e.addons.woocommerce_settings.paged_urls[e.page];a&&s&&l&&(s=Array.prototype.slice.call(s),i(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,o.default)(a,s,e,n,l,"alm-woocommerce");case 2:r(!0);case 3:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t,"There was an error with WooCommerce")})))}))},e.wooReset=function(){return new Promise((function(t){var e=window.location;r.default.get(e).then((function(e){if(200===e.status&&e.data){var n=document.createElement("div");n.innerHTML=e.data;var r=n.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'),o=r?r.dataset.wooSettings:"";t(o)}else t(!1)})).catch((function(e){t(!1)}))}))},e.wooGetContent=function(t,e){var n={html:"",meta:{postcount:1,totalposts:e.localize.total_posts,debug:"WooCommerce Query"}};if(200===t.status&&t.data){var r=document.createElement("div");r.innerHTML=t.data;var o=r.querySelector("title").innerHTML;n.pageTitle=o;var a=r.querySelector(e.addons.woocommerce_settings.container);n.html=a?a.innerHTML:"",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments[1];if(t&&e&&e.addons.woocommerce_settings.results_text){var n=t.querySelector(e.addons.woocommerce_settings.results),r=e.addons.woocommerce_settings.settings.previous_page_link,o=e.addons.woocommerce_settings.settings.previous_page_label,a=e.addons.woocommerce_settings.settings.previous_page_sep;e.addons.woocommerce_settings.results_text&&e.addons.woocommerce_settings.results_text.forEach((function(t){t.innerHTML=r&&o?s(n,r,o,a):n.innerHTML}))}}(r,e)}return n};var r=a(n(63)),o=a(n(107));function a(t){return t&&t.__esModule?t:{default:t}}function i(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}function s(t,e,n,r){var o=" "+r+' <a href="'+e+'">'+n+"</a>";return t.innerHTML+o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(67),a=(r=o)&&r.__esModule?r:{default:r};var i=n(68);e.default=function(t,e,n){return new Promise((function(r){i(e,(function(){e.style.transition="all 0.4s ease",t.appendChild(e),(0,a.default)(e,n),r(!0)}))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.elementorInit=function(t){if(!t.addons.elementor||!t.addons.elementor_type||"posts"===!t.addons.elementor_type)return!1;var e=t.addons.elementor_element;if(e){t.button.dataset.page=t.addons.elementor_paged;var n=t.addons.elementor_next_page_url;t.button.dataset.url=n||"",e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),t.listing.removeAttribute("aria-live"),t.listing.removeAttribute("aria-atomic");var r=e.querySelector("."+t.addons.elementor_item_class);if(r&&(r.classList.add("alm-elementor"),r.dataset.url=window.location,r.dataset.page=t.addons.elementor_paged,r.dataset.pageTitle=document.title),t.addons.elementor_paged,t.addons.elementor_masonry){var o=void 0;setTimeout((function(){window.addEventListener("resize",(function(){clearTimeout(o),o=setTimeout((function(){s(t,"."+t.addons.elementor_container_class,"."+t.addons.elementor_item_class)}),100)}))}),250)}}},e.elementor=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.title;if(!t||!e)return!1;return new Promise((function(r){var o=e.addons.elementor_element.querySelector("."+e.addons.elementor_container_class),l=t.querySelectorAll("."+e.addons.elementor_item_class),c=e.addons.elementor_current_url;o&&l&&c?(l=Array.prototype.slice.call(l),i(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.default)(o,l,e,n,c,"alm-elementor");case 2:e.addons.elementor_masonry&&setTimeout((function(){s(e,"."+e.addons.elementor_container_class,"."+e.addons.elementor_item_class)}),125),r(!0);case 4:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t,"There was an error with Elementor")}))):r(!1)}))},e.elementorGetContent=function(t,e){var n={html:"",meta:{postcount:1,totalposts:e.localize.total_posts,debug:"Elementor Query"}};if(200===t.status&&t.data){var r=document.createElement("div");r.innerHTML=t.data;var o=r.querySelector("title").innerHTML;n.pageTitle=o;var a=r.querySelector(e.addons.elementor_target+" ."+e.addons.elementor_container_class);n.html=a?a.innerHTML:"",e.addons.elementor_current_url=e.addons.elementor_next_page_url,e.addons.elementor_next_page_url=(i=r,s=e.addons.elementor_pagination_class,(c=i.querySelector(s))?l(c):"")}var i,s,c;return n},e.elementorCreateParams=function(t){t.addons.elementor_type="posts",t.addons.elementor_settings=JSON.parse(t.listing.dataset.elementorSettings),t.addons.elementor_target=t.addons.elementor_settings.target,t.addons.elementor_element=t.addons.elementor_settings.target?document.querySelector(".elementor-widget-wrap "+t.addons.elementor_settings.target):"",t.addons.elementor_widget=function(t){if(!t)return!1;return t.classList.contains("elementor-wc-products")?"woocommerce":"posts"}(t.addons.elementor_element),(t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"posts";return t.addons.elementor_container_class="woocommerce"===e?t.addons.elementor_settings.woo_container_class:t.addons.elementor_settings.posts_container_class,t.addons.elementor_item_class="woocommerce"===e?t.addons.elementor_settings.woo_item_class:t.addons.elementor_settings.posts_item_class,t.addons.elementor_pagination_class="woocommerce"===e?"."+t.addons.elementor_settings.woo_pagination_class:"."+t.addons.elementor_settings.posts_pagination_class,t}(t,t.addons.elementor_widget)).addons.elementor_pagination=t.addons.elementor_element.querySelector(t.addons.elementor_pagination_class)||t.addons.elementor_element.querySelector("."+t.addons.elementor_settings.pagination_class),t.addons.elementor_pagination=!!t.addons.elementor_pagination&&t.addons.elementor_pagination,t.addons.elementor_controls=t.addons.elementor_settings.controls,t.addons.elementor_controls="true"===t.addons.elementor_controls,t.addons.elementor_scrolltop=parseInt(t.addons.elementor_settings.scrolltop),t.addons.elementor_current_url=window.location.href,t.addons.elementor_next_page_url=l(t.addons.elementor_pagination),t.addons.elementor_paged=t.addons.elementor_settings.paged?parseInt(t.addons.elementor_settings.paged):1,t.page=parseInt(t.page)+t.addons.elementor_paged,(t=function(t){if(!t.addons.elementor_element)return t;var e=t.addons.elementor_element,n=e.dataset.settings?JSON.parse(e.dataset.settings):"";if(!n)return t;t.addons.elementor_masonry=n.hasOwnProperty("cards_masonry")||n.hasOwnProperty("classic_masonry"),t.addons.elementor_masonry&&(t.addons.elementor_masonry_columns=parseInt(n.cards_columns)||parseInt(n.classic_columns),t.addons.elementor_masonry_columns_mobile=parseInt(n.cards_columns_mobile)||parseInt(n.classic_columns_mobile),t.addons.elementor_masonry_columns_tablet=parseInt(n.cards_columns_tablet)||parseInt(n.classic_columns_tablet),t.addons.elementor_masonry_gap=parseInt(n.cards_row_gap.size));return t}(t)).addons.elementor_element||console.warn("Ajax Load More: Unable to locate Elementor Widget. Are you sure you've set up your target parameter correctly?");t.addons.elementor_pagination||console.warn("Ajax Load More: Unable to locate Elementor pagination. There are either no results or p Ajax Load More is unable to locate the pagination widget?");return t};var r,o=n(107),a=(r=o)&&r.__esModule?r:{default:r};function i(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}function s(t,e,n){var r=[],o=t.addons.elementor_masonry_columns,a=t.addons.elementor_masonry_columns_tablet,i=t.addons.elementor_masonry_columns_mobile,s=t.addons.elementor_masonry_gap,l=o,c=window.elementorFrontendConfig&&window.elementorFrontendConfig.breakpoints?window.elementorFrontendConfig.breakpoints:0,u=window.innerWidth;l=u>c.lg?o:u>c.md?a:i;var d=document.querySelector(e);if(!d)return!1;var f=d.querySelectorAll(n);if(!f)return!1;f.forEach((function(t,e){var n=Math.floor(e/l),o=t.getBoundingClientRect().height+s;if(n){var a=jQuery(t).position(),i=e%l,c=Math.round(a.top)-r[i];c*=-1,t.style.marginTop=Math.round(c)+"px",r[i]+=o}else r.push(o)}))}function l(t){return t&&t.querySelector("a.next")?t.querySelector("a.next").href:""}},function(t,e,n){n(182)},function(t,e,n){"use strict";n(183),n(326),n(328),n(331),n(333),n(335),n(337),n(339),n(341),n(343),n(345),n(347),n(349),n(353)},function(t,e,n){n(184),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(265),n(266),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(90),n(289),n(128),n(290),n(129),n(291),n(292),n(293),n(294),n(130),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),t.exports=n(7)},function(t,e,n){"use strict";var r=n(1),o=n(14),a=n(8),i=n(0),s=n(11),l=n(28).KEY,c=n(2),u=n(51),d=n(39),f=n(30),p=n(5),g=n(71),h=n(109),m=n(186),v=n(54),_=n(3),y=n(4),b=n(10),w=n(16),x=n(27),S=n(29),A=n(34),j=n(112),E=n(21),L=n(53),P=n(9),M=n(32),O=E.f,T=P.f,I=j.f,F=r.Symbol,C=r.JSON,N=C&&C.stringify,k=p("_hidden"),R=p("toPrimitive"),q={}.propertyIsEnumerable,D=u("symbol-registry"),z=u("symbols"),B=u("op-symbols"),W=Object.prototype,H="function"==typeof F&&!!L.f,U=r.QObject,V=!U||!U.prototype||!U.prototype.findChild,G=a&&c((function(){return 7!=A(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=O(W,e);r&&delete W[e],T(t,e,n),r&&t!==W&&T(W,e,r)}:T,Y=function(t){var e=z[t]=A(F.prototype);return e._k=t,e},X=H&&"symbol"==typeof F.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof F},Q=function(t,e,n){return t===W&&Q(B,e,n),_(t),e=x(e,!0),_(n),o(z,e)?(n.enumerable?(o(t,k)&&t[k][e]&&(t[k][e]=!1),n=A(n,{enumerable:S(0,!1)})):(o(t,k)||T(t,k,S(1,{})),t[k][e]=!0),G(t,e,n)):T(t,e,n)},$=function(t,e){_(t);for(var n,r=m(e=w(e)),o=0,a=r.length;a>o;)Q(t,n=r[o++],e[n]);return t},J=function(t){var e=q.call(this,t=x(t,!0));return!(this===W&&o(z,t)&&!o(B,t))&&(!(e||!o(this,t)||!o(z,t)||o(this,k)&&this[k][t])||e)},K=function(t,e){if(t=w(t),e=x(e,!0),t!==W||!o(z,e)||o(B,e)){var n=O(t,e);return!n||!o(z,e)||o(t,k)&&t[k][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=I(w(t)),r=[],a=0;n.length>a;)o(z,e=n[a++])||e==k||e==l||r.push(e);return r},tt=function(t){for(var e,n=t===W,r=I(n?B:w(t)),a=[],i=0;r.length>i;)!o(z,e=r[i++])||n&&!o(W,e)||a.push(z[e]);return a};H||(s((F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===W&&e.call(B,n),o(this,k)&&o(this[k],t)&&(this[k][t]=!1),G(this,t,S(1,n))};return a&&V&&G(W,t,{configurable:!0,set:e}),Y(t)}).prototype,"toString",(function(){return this._k})),E.f=K,P.f=Q,n(35).f=j.f=Z,n(46).f=J,L.f=tt,a&&!n(31)&&s(W,"propertyIsEnumerable",J,!0),g.f=function(t){return Y(p(t))}),i(i.G+i.W+i.F*!H,{Symbol:F});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)p(et[nt++]);for(var rt=M(p.store),ot=0;rt.length>ot;)h(rt[ot++]);i(i.S+i.F*!H,"Symbol",{for:function(t){return o(D,t+="")?D[t]:D[t]=F(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in D)if(D[e]===t)return e},useSetter:function(){V=!0},useSimple:function(){V=!1}}),i(i.S+i.F*!H,"Object",{create:function(t,e){return void 0===e?A(t):$(A(t),e)},defineProperty:Q,defineProperties:$,getOwnPropertyDescriptor:K,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var at=c((function(){L.f(1)}));i(i.S+i.F*at,"Object",{getOwnPropertySymbols:function(t){return L.f(b(t))}}),C&&i(i.S+i.F*(!H||c((function(){var t=F();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(y(e)||void 0!==t)&&!X(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!X(e))return e}),r[1]=e,N.apply(C,r)}}),F.prototype[R]||n(15)(F.prototype,R,F.prototype.valueOf),d(F,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(t,e,n){t.exports=n(51)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(32),o=n(53),a=n(46);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var i,s=n(t),l=a.f,c=0;s.length>c;)l.call(t,i=s[c++])&&e.push(i);return e}},function(t,e,n){var r=n(0);r(r.S,"Object",{create:n(34)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperty:n(9).f})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperties:n(111)})},function(t,e,n){var r=n(16),o=n(21).f;n(22)("getOwnPropertyDescriptor",(function(){return function(t,e){return o(r(t),e)}}))},function(t,e,n){var r=n(10),o=n(36);n(22)("getPrototypeOf",(function(){return function(t){return o(r(t))}}))},function(t,e,n){var r=n(10),o=n(32);n(22)("keys",(function(){return function(t){return o(r(t))}}))},function(t,e,n){n(22)("getOwnPropertyNames",(function(){return n(112).f}))},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("freeze",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("seal",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("preventExtensions",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(4);n(22)("isFrozen",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(4);n(22)("isSealed",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(4);n(22)("isExtensible",(function(t){return function(e){return!!r(e)&&(!t||t(e))}}))},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(113)})},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(114)})},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(75).set})},function(t,e,n){"use strict";var r=n(47),o={};o[n(5)("toStringTag")]="z",o+""!="[object z]"&&n(11)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,e,n){var r=n(0);r(r.P,"Function",{bind:n(115)})},function(t,e,n){var r=n(9).f,o=Function.prototype,a=/^\s*function ([^ (]*)/;"name"in o||n(8)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(4),o=n(36),a=n(5)("hasInstance"),i=Function.prototype;a in i||n(9).f(i,a,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(0),o=n(117);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,e,n){var r=n(0),o=n(118);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(t,e,n){"use strict";var r=n(1),o=n(14),a=n(24),i=n(77),s=n(27),l=n(2),c=n(35).f,u=n(21).f,d=n(9).f,f=n(40).trim,p=r.Number,g=p,h=p.prototype,m="Number"==a(n(34)(h)),v="trim"in String.prototype,_=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){var n,r,o,a=(e=v?e.trim():f(e,3)).charCodeAt(0);if(43===a||45===a){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===a){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var i,l=e.slice(2),c=0,u=l.length;c<u;c++)if((i=l.charCodeAt(c))<48||i>o)return NaN;return parseInt(l,r)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(m?l((function(){h.valueOf.call(n)})):"Number"!=a(n))?i(new g(_(e)),n,p):_(e)};for(var y,b=n(8)?c(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;b.length>w;w++)o(g,y=b[w])&&!o(p,y)&&d(p,y,u(g,y));p.prototype=h,h.constructor=p,n(11)(r,"Number",p)}},function(t,e,n){"use strict";var r=n(0),o=n(20),a=n(119),i=n(78),s=1..toFixed,l=Math.floor,c=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",d=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*c[n],c[n]=r%1e7,r=l(r/1e7)},f=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=l(n/t),n=n%t*1e7},p=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+i.call("0",7-n.length)+n}return e},g=function(t,e,n){return 0===e?n:e%2==1?g(t,e-1,n*t):g(t*t,e/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(2)((function(){s.call({})}))),"Number",{toFixed:function(t){var e,n,r,s,l=a(this,u),c=o(t),h="",m="0";if(c<0||c>20)throw RangeError(u);if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(h="-",l=-l),l>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(l*g(2,69,1))-69)<0?l*g(2,-e,1):l/g(2,e,1),n*=4503599627370496,(e=52-e)>0){for(d(0,n),r=c;r>=7;)d(1e7,0),r-=7;for(d(g(10,r,1),0),r=e-1;r>=23;)f(1<<23),r-=23;f(1<<r),d(1,1),f(2),m=p()}else d(0,n),d(1<<-e,0),m=p()+i.call("0",c);return m=c>0?h+((s=m.length)<=c?"0."+i.call("0",c-s)+m:m.slice(0,s-c)+"."+m.slice(s-c)):h+m}})},function(t,e,n){"use strict";var r=n(0),o=n(2),a=n(119),i=1..toPrecision;r(r.P+r.F*(o((function(){return"1"!==i.call(1,void 0)}))||!o((function(){i.call({})}))),"Number",{toPrecision:function(t){var e=a(this,"Number#toPrecision: incorrect invocation!");return void 0===t?i.call(e):i.call(e,t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(0),o=n(1).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(120)})},function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0),o=n(120),a=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&a(t)<=9007199254740991}})},function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0),o=n(118);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,n){var r=n(0),o=n(117);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,n){var r=n(0),o=n(121),a=Math.sqrt,i=Math.acosh;r(r.S+r.F*!(i&&710==Math.floor(i(Number.MAX_VALUE))&&i(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+a(t-1)*a(t+1))}})},function(t,e,n){var r=n(0),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var r=n(0),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),o=n(79);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(0),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,n){var r=n(0),o=n(80);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e,n){var r=n(0);r(r.S,"Math",{fround:n(229)})},function(t,e,n){var r=n(79),o=Math.pow,a=o(2,-52),i=o(2,-23),s=o(2,127)*(2-i),l=o(2,-126);t.exports=Math.fround||function(t){var e,n,o=Math.abs(t),c=r(t);return o<l?c*(o/l/i+1/a-1/a)*l*i:(n=(e=(1+i/a)*o)-(e-o))>s||n!=n?c*(1/0):c*n}},function(t,e,n){var r=n(0),o=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,a=0,i=0,s=arguments.length,l=0;i<s;)l<(n=o(arguments[i++]))?(a=a*(r=l/n)*r+1,l=n):a+=n>0?(r=n/l)*r:n;return l===1/0?1/0:l*Math.sqrt(a)}})},function(t,e,n){var r=n(0),o=Math.imul;r(r.S+r.F*n(2)((function(){return-5!=o(4294967295,5)||2!=o.length})),"Math",{imul:function(t,e){var n=+t,r=+e,o=65535&n,a=65535&r;return 0|o*a+((65535&n>>>16)*a+o*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(121)})},function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(79)})},function(t,e,n){var r=n(0),o=n(80),a=Math.exp;r(r.S+r.F*n(2)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(a(t-1)-a(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(0),o=n(80),a=Math.exp;r(r.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(a(t)+a(-t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(0),o=n(33),a=String.fromCharCode,i=String.fromCodePoint;r(r.S+r.F*(!!i&&1!=i.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,i=0;r>i;){if(e=+arguments[i++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?a(e):a(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(0),o=n(16),a=n(6);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=a(e.length),r=arguments.length,i=[],s=0;n>s;)i.push(String(e[s++])),s<r&&i.push(String(arguments[s]));return i.join("")}})},function(t,e,n){"use strict";n(40)("trim",(function(t){return function(){return t(this,3)}}))},function(t,e,n){"use strict";var r=n(81)(!0);n(82)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(0),o=n(81)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(0),o=n(6),a=n(83),i="".endsWith;r(r.P+r.F*n(85)("endsWith"),"String",{endsWith:function(t){var e=a(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(e.length),s=void 0===n?r:Math.min(o(n),r),l=String(t);return i?i.call(e,l,s):e.slice(s-l.length,s)===l}})},function(t,e,n){"use strict";var r=n(0),o=n(83);r(r.P+r.F*n(85)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(0);r(r.P,"String",{repeat:n(78)})},function(t,e,n){"use strict";var r=n(0),o=n(6),a=n(83),i="".startsWith;r(r.P+r.F*n(85)("startsWith"),"String",{startsWith:function(t){var e=a(this,t,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return i?i.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(12)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},function(t,e,n){"use strict";n(12)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,e,n){"use strict";n(12)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,e,n){"use strict";n(12)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,e,n){"use strict";n(12)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,e,n){"use strict";n(12)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},function(t,e,n){"use strict";n(12)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},function(t,e,n){"use strict";n(12)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,e,n){"use strict";n(12)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},function(t,e,n){"use strict";n(12)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,e,n){"use strict";n(12)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,e,n){"use strict";n(12)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,e,n){"use strict";n(12)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,e,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(0),o=n(10),a=n(27);r(r.P+r.F*n(2)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=o(this),n=a(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(0),o=n(264);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,e,n){"use strict";var r=n(2),o=Date.prototype.getTime,a=Date.prototype.toISOString,i=function(t){return t>9?t:"0"+t};t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=a.call(new Date(-50000000000001))}))||!r((function(){a.call(new Date(NaN))}))?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+i(t.getUTCMonth()+1)+"-"+i(t.getUTCDate())+"T"+i(t.getUTCHours())+":"+i(t.getUTCMinutes())+":"+i(t.getUTCSeconds())+"."+(n>99?n:"0"+i(n))+"Z"}:a},function(t,e,n){var r=Date.prototype,o=r.toString,a=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(11)(r,"toString",(function(){var t=a.call(this);return t==t?o.call(this):"Invalid Date"}))},function(t,e,n){var r=n(5)("toPrimitive"),o=Date.prototype;r in o||n(15)(o,r,n(267))},function(t,e,n){"use strict";var r=n(3),o=n(27);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!=t)}},function(t,e,n){var r=n(0);r(r.S,"Array",{isArray:n(54)})},function(t,e,n){"use strict";var r=n(18),o=n(0),a=n(10),i=n(123),s=n(86),l=n(6),c=n(87),u=n(88);o(o.S+o.F*!n(55)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,o,d,f=a(t),p="function"==typeof this?this:Array,g=arguments.length,h=g>1?arguments[1]:void 0,m=void 0!==h,v=0,_=u(f);if(m&&(h=r(h,g>2?arguments[2]:void 0,2)),null==_||p==Array&&s(_))for(n=new p(e=l(f.length));e>v;v++)c(n,v,m?h(f[v],v):f[v]);else for(d=_.call(f),n=new p;!(o=d.next()).done;v++)c(n,v,m?i(d,h,[o.value,v],!0):o.value);return n.length=v,n}})},function(t,e,n){"use strict";var r=n(0),o=n(87);r(r.S+r.F*n(2)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(0),o=n(16),a=[].join;r(r.P+r.F*(n(45)!=Object||!n(17)(a)),"Array",{join:function(t){return a.call(o(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(0),o=n(74),a=n(24),i=n(33),s=n(6),l=[].slice;r(r.P+r.F*n(2)((function(){o&&l.call(o)})),"Array",{slice:function(t,e){var n=s(this.length),r=a(this);if(e=void 0===e?n:e,"Array"==r)return l.call(this,t,e);for(var o=i(t,n),c=i(e,n),u=s(c-o),d=new Array(u),f=0;f<u;f++)d[f]="String"==r?this.charAt(o+f):this[o+f];return d}})},function(t,e,n){"use strict";var r=n(0),o=n(19),a=n(10),i=n(2),s=[].sort,l=[1,2,3];r(r.P+r.F*(i((function(){l.sort(void 0)}))||!i((function(){l.sort(null)}))||!n(17)(s)),"Array",{sort:function(t){return void 0===t?s.call(a(this)):s.call(a(this),o(t))}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(0),a=n(17)([].forEach,!0);r(r.P+r.F*!a,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,e,n){var r=n(4),o=n(54),a=n(5)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[a])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){"use strict";var r=n(0),o=n(23)(1);r(r.P+r.F*!n(17)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(2);r(r.P+r.F*!n(17)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(3);r(r.P+r.F*!n(17)([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(4);r(r.P+r.F*!n(17)([].every,!0),"Array",{every:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(125);r(r.P+r.F*!n(17)([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){"use strict";var r=n(0),o=n(125);r(r.P+r.F*!n(17)([].reduceRight,!0),"Array",{reduceRight:function(t){return o(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var r=n(0),o=n(52)(!1),a=[].indexOf,i=!!a&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(i||!n(17)(a)),"Array",{indexOf:function(t){return i?a.apply(this,arguments)||0:o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(16),a=n(20),i=n(6),s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(l||!n(17)(s)),"Array",{lastIndexOf:function(t){if(l)return s.apply(this,arguments)||0;var e=o(this),n=i(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,a(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(126)}),n(37)("copyWithin")},function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(89)}),n(37)("fill")},function(t,e,n){"use strict";var r=n(0),o=n(23)(5),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r(r.P+r.F*a,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)("find")},function(t,e,n){"use strict";var r=n(0),o=n(23)(6),a="findIndex",i=!0;a in[]&&Array(1)[a]((function(){i=!1})),r(r.P+r.F*i,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)(a)},function(t,e,n){n(42)("Array")},function(t,e,n){var r=n(1),o=n(77),a=n(9).f,i=n(35).f,s=n(84),l=n(56),c=r.RegExp,u=c,d=c.prototype,f=/a/g,p=/a/g,g=new c(f)!==f;if(n(8)&&(!g||n(2)((function(){return p[n(5)("match")]=!1,c(f)!=f||c(p)==p||"/a/i"!=c(f,"i")})))){c=function(t,e){var n=this instanceof c,r=s(t),a=void 0===e;return!n&&r&&t.constructor===c&&a?t:o(g?new u(r&&!a?t.source:t,e):u((r=t instanceof c)?t.source:t,r&&a?l.call(t):e),n?this:d,c)};for(var h=function(t){t in c||a(c,t,{configurable:!0,get:function(){return u[t]},set:function(e){u[t]=e}})},m=i(u),v=0;m.length>v;)h(m[v++]);d.constructor=c,c.prototype=d,n(11)(r,"RegExp",c)}n(42)("RegExp")},function(t,e,n){"use strict";n(129);var r=n(3),o=n(56),a=n(8),i=/./.toString,s=function(t){n(11)(RegExp.prototype,"toString",t,!0)};n(2)((function(){return"/a/b"!=i.call({source:"a",flags:"b"})}))?s((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!a&&t instanceof RegExp?o.call(t):void 0)})):"toString"!=i.name&&s((function(){return i.call(this)}))},function(t,e,n){"use strict";var r=n(3),o=n(6),a=n(92),i=n(57);n(58)("match",1,(function(t,e,n,s){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var l=r(t),c=String(this);if(!l.global)return i(l,c);var u=l.unicode;l.lastIndex=0;for(var d,f=[],p=0;null!==(d=i(l,c));){var g=String(d[0]);f[p]=g,""===g&&(l.lastIndex=a(c,o(l.lastIndex),u)),p++}return 0===p?null:f}]}))},function(t,e,n){"use strict";var r=n(3),o=n(10),a=n(6),i=n(20),s=n(92),l=n(57),c=Math.max,u=Math.min,d=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(58)("replace",2,(function(t,e,n,g){return[function(r,o){var a=t(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,a,o):n.call(String(a),r,o)},function(t,e){var o=g(n,t,this,e);if(o.done)return o.value;var d=r(t),f=String(this),p="function"==typeof e;p||(e=String(e));var m=d.global;if(m){var v=d.unicode;d.lastIndex=0}for(var _=[];;){var y=l(d,f);if(null===y)break;if(_.push(y),!m)break;""===String(y[0])&&(d.lastIndex=s(f,a(d.lastIndex),v))}for(var b,w="",x=0,S=0;S<_.length;S++){y=_[S];for(var A=String(y[0]),j=c(u(i(y.index),f.length),0),E=[],L=1;L<y.length;L++)E.push(void 0===(b=y[L])?b:String(b));var P=y.groups;if(p){var M=[A].concat(E,j,f);void 0!==P&&M.push(P);var O=String(e.apply(void 0,M))}else O=h(A,f,j,E,P,e);j>=x&&(w+=f.slice(x,j)+O,x=j+A.length)}return w+f.slice(x)}];function h(t,e,r,a,i,s){var l=r+t.length,c=a.length,u=p;return void 0!==i&&(i=o(i),u=f),n.call(s,u,(function(n,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(l);case"<":s=i[o.slice(1,-1)];break;default:var u=+o;if(0===u)return n;if(u>c){var f=d(u/10);return 0===f?n:f<=c?void 0===a[f-1]?o.charAt(1):a[f-1]+o.charAt(1):n}s=a[u-1]}return void 0===s?"":s}))}}))},function(t,e,n){"use strict";var r=n(3),o=n(114),a=n(57);n(58)("search",1,(function(t,e,n,i){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=i(n,t,this);if(e.done)return e.value;var s=r(t),l=String(this),c=s.lastIndex;o(c,0)||(s.lastIndex=0);var u=a(s,l);return o(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]}))},function(t,e,n){"use strict";var r=n(84),o=n(3),a=n(48),i=n(92),s=n(6),l=n(57),c=n(91),u=n(2),d=Math.min,f=[].push,p="length",g=!u((function(){RegExp(4294967295,"y")}));n(58)("split",2,(function(t,e,n,u){var h;return h="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[p]||2!="ab".split(/(?:ab)*/)[p]||4!=".".split(/(.?)(.?)/)[p]||".".split(/()()/)[p]>1||"".split(/.?/)[p]?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(o,t,e);for(var a,i,s,l=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,g=void 0===e?4294967295:e>>>0,h=new RegExp(t.source,u+"g");(a=c.call(h,o))&&!((i=h.lastIndex)>d&&(l.push(o.slice(d,a.index)),a[p]>1&&a.index<o[p]&&f.apply(l,a.slice(1)),s=a[0][p],d=i,l[p]>=g));)h.lastIndex===a.index&&h.lastIndex++;return d===o[p]?!s&&h.test("")||l.push(""):l.push(o.slice(d)),l[p]>g?l.slice(0,g):l}:"0".split(void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var o=t(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,o,r):h.call(String(o),n,r)},function(t,e){var r=u(h,t,this,e,h!==n);if(r.done)return r.value;var c=o(t),f=String(this),p=a(c,RegExp),m=c.unicode,v=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(g?"y":"g"),_=new p(g?c:"^(?:"+c.source+")",v),y=void 0===e?4294967295:e>>>0;if(0===y)return[];if(0===f.length)return null===l(_,f)?[f]:[];for(var b=0,w=0,x=[];w<f.length;){_.lastIndex=g?w:0;var S,A=l(_,g?f:f.slice(w));if(null===A||(S=d(s(_.lastIndex+(g?0:w)),f.length))===b)w=i(f,w,m);else{if(x.push(f.slice(b,w)),x.length===y)return x;for(var j=1;j<=A.length-1;j++)if(x.push(A[j]),x.length===y)return x;w=b=S}}return x.push(f.slice(b)),x}]}))},function(t,e,n){var r=n(1),o=n(93).set,a=r.MutationObserver||r.WebKitMutationObserver,i=r.process,s=r.Promise,l="process"==n(24)(i);t.exports=function(){var t,e,n,c=function(){var r,o;for(l&&(r=i.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(l)n=function(){i.nextTick(c)};else if(!a||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){o.call(r,c)};else{var d=!0,f=document.createTextNode("");new a(c).observe(f,{characterData:!0}),n=function(){f.data=d=!d}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){"use strict";var r=n(133),o=n(38);t.exports=n(61)("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=r.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(o(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(133),o=n(38);t.exports=n(61)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,o=n(1),a=n(23)(0),i=n(11),s=n(28),l=n(113),c=n(134),u=n(4),d=n(38),f=n(38),p=!o.ActiveXObject&&"ActiveXObject"in o,g=s.getWeak,h=Object.isExtensible,m=c.ufstore,v=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},_={get:function(t){if(u(t)){var e=g(t);return!0===e?m(d(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(d(this,"WeakMap"),t,e)}},y=t.exports=n(61)("WeakMap",v,_,c,!0,!0);f&&p&&(l((r=c.getConstructor(v,"WeakMap")).prototype,_),s.NEED=!0,a(["delete","has","get","set"],(function(t){var e=y.prototype,n=e[t];i(e,t,(function(e,o){if(u(e)&&!h(e)){this._f||(this._f=new r);var a=this._f[t](e,o);return"set"==t?this:a}return n.call(this,e,o)}))})))},function(t,e,n){"use strict";var r=n(134),o=n(38);n(61)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(0),o=n(62),a=n(94),i=n(3),s=n(33),l=n(6),c=n(4),u=n(1).ArrayBuffer,d=n(48),f=a.ArrayBuffer,p=a.DataView,g=o.ABV&&u.isView,h=f.prototype.slice,m=o.VIEW;r(r.G+r.W+r.F*(u!==f),{ArrayBuffer:f}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(t){return g&&g(t)||c(t)&&m in t}}),r(r.P+r.U+r.F*n(2)((function(){return!new f(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,e){if(void 0!==h&&void 0===e)return h.call(i(this),t);for(var n=i(this).byteLength,r=s(t,n),o=s(void 0===e?n:e,n),a=new(d(this,f))(l(o-r)),c=new p(this),u=new p(a),g=0;r<o;)u.setUint8(g++,c.getUint8(r++));return a}}),n(42)("ArrayBuffer")},function(t,e,n){var r=n(0);r(r.G+r.W+r.F*!n(62).ABV,{DataView:n(94).DataView})},function(t,e,n){n(26)("Int8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}),!0)},function(t,e,n){n(26)("Int16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Int32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Float32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Float64",8,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){var r=n(0),o=n(19),a=n(3),i=(n(1).Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n(2)((function(){i((function(){}))})),"Reflect",{apply:function(t,e,n){var r=o(t),l=a(n);return i?i(r,e,l):s.call(r,e,l)}})},function(t,e,n){var r=n(0),o=n(34),a=n(19),i=n(3),s=n(4),l=n(2),c=n(115),u=(n(1).Reflect||{}).construct,d=l((function(){function t(){}return!(u((function(){}),[],t)instanceof t)})),f=!l((function(){u((function(){}))}));r(r.S+r.F*(d||f),"Reflect",{construct:function(t,e){a(t),i(e);var n=arguments.length<3?t:a(arguments[2]);if(f&&!d)return u(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(c.apply(t,r))}var l=n.prototype,p=o(s(l)?l:Object.prototype),g=Function.apply.call(t,p,e);return s(g)?g:p}})},function(t,e,n){var r=n(9),o=n(0),a=n(3),i=n(27);o(o.S+o.F*n(2)((function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,n){a(t),e=i(e,!0),a(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(0),o=n(21).f,a=n(3);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=o(a(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var r=n(0),o=n(3),a=function(t){this._t=o(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(122)(a,"Object",(function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}})),r(r.S,"Reflect",{enumerate:function(t){return new a(t)}})},function(t,e,n){var r=n(21),o=n(36),a=n(14),i=n(0),s=n(4),l=n(3);i(i.S,"Reflect",{get:function t(e,n){var i,c,u=arguments.length<3?e:arguments[2];return l(e)===u?e[n]:(i=r.f(e,n))?a(i,"value")?i.value:void 0!==i.get?i.get.call(u):void 0:s(c=o(e))?t(c,n,u):void 0}})},function(t,e,n){var r=n(21),o=n(0),a=n(3);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(a(t),e)}})},function(t,e,n){var r=n(0),o=n(36),a=n(3);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(a(t))}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),o=n(3),a=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!a||a(t)}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(136)})},function(t,e,n){var r=n(0),o=n(3),a=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return a&&a(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(9),o=n(21),a=n(36),i=n(14),s=n(0),l=n(29),c=n(3),u=n(4);s(s.S,"Reflect",{set:function t(e,n,s){var d,f,p=arguments.length<4?e:arguments[3],g=o.f(c(e),n);if(!g){if(u(f=a(e)))return t(f,n,s,p);g=l(0)}if(i(g,"value")){if(!1===g.writable||!u(p))return!1;if(d=o.f(p,n)){if(d.get||d.set||!1===d.writable)return!1;d.value=s,r.f(p,n,d)}else r.f(p,n,l(0,s));return!0}return void 0!==g.set&&(g.set.call(p,s),!0)}})},function(t,e,n){var r=n(0),o=n(75);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(327),t.exports=n(7).Array.includes},function(t,e,n){"use strict";var r=n(0),o=n(52)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)("includes")},function(t,e,n){n(329),t.exports=n(7).Array.flatMap},function(t,e,n){"use strict";var r=n(0),o=n(330),a=n(10),i=n(6),s=n(19),l=n(124);r(r.P,"Array",{flatMap:function(t){var e,n,r=a(this);return s(t),e=i(r.length),n=l(r,0),o(n,r,r,e,0,1,t,arguments[1]),n}}),n(37)("flatMap")},function(t,e,n){"use strict";var r=n(54),o=n(4),a=n(6),i=n(18),s=n(5)("isConcatSpreadable");t.exports=function t(e,n,l,c,u,d,f,p){for(var g,h,m=u,v=0,_=!!f&&i(f,p,3);v<c;){if(v in l){if(g=_?_(l[v],v,n):l[v],h=!1,o(g)&&(h=void 0!==(h=g[s])?!!h:r(g)),h&&d>0)m=t(e,n,g,a(g.length),m,d-1)-1;else{if(m>=9007199254740991)throw TypeError();e[m]=g}m++}v++}return m}},function(t,e,n){n(332),t.exports=n(7).String.padStart},function(t,e,n){"use strict";var r=n(0),o=n(137),a=n(60),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);r(r.P+r.F*i,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){n(334),t.exports=n(7).String.padEnd},function(t,e,n){"use strict";var r=n(0),o=n(137),a=n(60),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);r(r.P+r.F*i,"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){n(336),t.exports=n(7).String.trimLeft},function(t,e,n){"use strict";n(40)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,e,n){n(338),t.exports=n(7).String.trimRight},function(t,e,n){"use strict";n(40)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,e,n){n(340),t.exports=n(71).f("asyncIterator")},function(t,e,n){n(109)("asyncIterator")},function(t,e,n){n(342),t.exports=n(7).Object.getOwnPropertyDescriptors},function(t,e,n){var r=n(0),o=n(136),a=n(16),i=n(21),s=n(87);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),l=i.f,c=o(r),u={},d=0;c.length>d;)void 0!==(n=l(r,e=c[d++]))&&s(u,e,n);return u}})},function(t,e,n){n(344),t.exports=n(7).Object.values},function(t,e,n){var r=n(0),o=n(138)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){n(346),t.exports=n(7).Object.entries},function(t,e,n){var r=n(0),o=n(138)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,e,n){"use strict";n(130),n(348),t.exports=n(7).Promise.finally},function(t,e,n){"use strict";var r=n(0),o=n(7),a=n(1),i=n(48),s=n(132);r(r.P+r.R,"Promise",{finally:function(t){var e=i(this,o.Promise||a.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){n(350),n(351),n(352),t.exports=n(7)},function(t,e,n){var r=n(1),o=n(0),a=n(60),i=[].slice,s=/MSIE .\./.test(a),l=function(t){return function(e,n){var r=arguments.length>2,o=!!r&&i.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};o(o.G+o.B+o.F*s,{setTimeout:l(r.setTimeout),setInterval:l(r.setInterval)})},function(t,e,n){var r=n(0),o=n(93);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,n){for(var r=n(90),o=n(32),a=n(11),i=n(1),s=n(15),l=n(41),c=n(5),u=c("iterator"),d=c("toStringTag"),f=l.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},g=o(p),h=0;h<g.length;h++){var m,v=g[h],_=p[v],y=i[v],b=y&&y.prototype;if(b&&(b[u]||s(b,u,f),b[d]||s(b,d,v),l[v]=f,_))for(m in r)b[m]||a(b,m,r[m],!0)}},function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof d?e:d,a=Object.create(o.prototype),i=new S(r||[]);return a._invoke=function(t,e,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return j()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=b(i,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,i),a}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var u={};function d(){}function f(){}function p(){}var g={};g[o]=function(){return this};var h=Object.getPrototypeOf,m=h&&h(h(A([])));m&&m!==e&&n.call(m,o)&&(g=m);var v=p.prototype=d.prototype=Object.create(g);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){var r;this._invoke=function(o,a){function i(){return new e((function(r,i){!function r(o,a,i,s){var l=c(t[o],t,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,i,s)}),(function(t){r("throw",t,i,s)})):e.resolve(d).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,s)}))}s(l.arg)}(o,a,r,i)}))}return r=r?r.then(i,i):i()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,u;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function A(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:j}}function j(){return{value:void 0,done:!0}}return f.prototype=v.constructor=p,p.constructor=f,f.displayName=s(p,i,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,s(t,i,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},_(y.prototype),y.prototype[a]=function(){return this},t.AsyncIterator=y,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new y(l(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},_(v),s(v,i,"Generator"),v[o]=function(){return this},v.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=A,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return i.type="throw",i.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,u):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e){!function(){if("undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof HTMLElement){var t=!1;try{var e=document.createElement("div");e.addEventListener("focus",(function(t){t.preventDefault(),t.stopPropagation()}),!0),e.focus(Object.defineProperty({},"preventScroll",{get:function(){if(navigator&&void 0!==navigator.userAgent&&navigator.userAgent&&navigator.userAgent.match(/Edge\/1[7-8]/))return t=!1;t=!0}}))}catch(t){}if(void 0===HTMLElement.prototype.nativeFocus&&!t){HTMLElement.prototype.nativeFocus=HTMLElement.prototype.focus;var n=function(t){for(var e=0;e<t.length;e++)t[e][0].scrollTop=t[e][1],t[e][0].scrollLeft=t[e][2];t=[]};HTMLElement.prototype.focus=function(t){if(t&&t.preventScroll){var e=function(t){for(var e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;e&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push([e,e.scrollTop,e.scrollLeft]),e=e.parentNode;return e=r,n.push([e,e.scrollTop,e.scrollLeft]),n}(this);if("function"==typeof setTimeout){var r=this;setTimeout((function(){r.nativeFocus(),n(e)}),0)}else this.nativeFocus(),n(e)}else this.nativeFocus()}}}}()},function(t,e,n){"use strict";var r,o,a,i,s,l;if(Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),n=this,r=function(){},o=function(){return n.apply(this instanceof r&&t?this:t,e.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,o.prototype=new r,o}),r=Object.prototype,o=r.__defineGetter__,a=r.__defineSetter__,i=r.__lookupGetter__,s=r.__lookupSetter__,l=r.hasOwnProperty,o&&a&&i&&s&&(Object.defineProperty||(Object.defineProperty=function(t,e,n){if(arguments.length<3)throw new TypeError("Arguments not optional");if(e+="",l.call(n,"value")&&(i.call(t,e)||s.call(t,e)||(t[e]=n.value),l.call(n,"get")||l.call(n,"set")))throw new TypeError("Cannot specify an accessor and a value");if(!(n.writable&&n.enumerable&&n.configurable))throw new TypeError("This implementation of Object.defineProperty does not support false for configurable, enumerable, or writable.");return n.get&&o.call(t,e,n.get),n.set&&a.call(t,e,n.set),t}),Object.getOwnPropertyDescriptor||(Object.getOwnPropertyDescriptor=function(t,e){if(arguments.length<2)throw new TypeError("Arguments not optional.");e+="";var n={configurable:!0,enumerable:!0,writable:!0},r=i.call(t,e),o=s.call(t,e);return l.call(t,e)?r||o?(delete n.writable,n.get=n.set=void 0,r&&(n.get=r),o&&(n.set=o),n):(n.value=t[e],n):n}),Object.defineProperties||(Object.defineProperties=function(t,e){var n;for(n in e)l.call(e,n)&&Object.defineProperty(t,n,e[n])})),!(document.documentElement.dataset||Object.getOwnPropertyDescriptor(Element.prototype,"dataset")&&Object.getOwnPropertyDescriptor(Element.prototype,"dataset").get)){var c={enumerable:!0,get:function(){var t,e,n,r,o,a,i=this.attributes,s=i.length,l=function(t){return t.charAt(1).toUpperCase()},c=function(){return this},u=function(t,e){return void 0!==e?this.setAttribute(t,e):this.removeAttribute(t)};try{({}).__defineGetter__("test",(function(){})),e={}}catch(t){e=document.createElement("div")}for(t=0;t<s;t++)if((a=i[t])&&a.name&&/^data-\w[\w\-]*$/.test(a.name)){n=a.value,o=(r=a.name).substr(5).replace(/-./g,l);try{Object.defineProperty(e,o,{enumerable:this.enumerable,get:c.bind(n||""),set:u.bind(this,r)})}catch(t){e[o]=n}}return e}};try{Object.defineProperty(Element.prototype,"dataset",c)}catch(t){c.enumerable=!1,Object.defineProperty(Element.prototype,"dataset",c)}}},function(t,e,n){"use strict";var r=n(357),o=n(358),a=n(139);t.exports={formats:a,parse:o,stringify:r}},function(t,e,n){"use strict";var r=n(95),o=n(139),a=Object.prototype.hasOwnProperty,i={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},s=Array.isArray,l=Array.prototype.push,c=function(t,e){l.apply(t,s(e)?e:[e])},u=Date.prototype.toISOString,d=o.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(t){return u.call(t)},skipNulls:!1,strictNullHandling:!1},p=function t(e,n,o,a,i,l,u,d,p,g,h,m,v){var _,y=e;if("function"==typeof u?y=u(n,y):y instanceof Date?y=g(y):"comma"===o&&s(y)&&(y=r.maybeMap(y,(function(t){return t instanceof Date?g(t):t})).join(",")),null===y){if(a)return l&&!m?l(n,f.encoder,v,"key"):n;y=""}if("string"==typeof(_=y)||"number"==typeof _||"boolean"==typeof _||"symbol"==typeof _||"bigint"==typeof _||r.isBuffer(y))return l?[h(m?n:l(n,f.encoder,v,"key"))+"="+h(l(y,f.encoder,v,"value"))]:[h(n)+"="+h(String(y))];var b,w=[];if(void 0===y)return w;if(s(u))b=u;else{var x=Object.keys(y);b=d?x.sort(d):x}for(var S=0;S<b.length;++S){var A=b[S],j=y[A];if(!i||null!==j){var E=s(y)?"function"==typeof o?o(n,A):n:n+(p?"."+A:"["+A+"]");c(w,t(j,E,o,a,i,l,u,d,p,g,h,m,v))}}return w};t.exports=function(t,e){var n,r=t,l=function(t){if(!t)return f;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||f.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==t.format){if(!a.call(o.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=o.formatters[n],i=f.filter;return("function"==typeof t.filter||s(t.filter))&&(i=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===t.allowDots?f.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:f.charsetSentinel,delimiter:void 0===t.delimiter?f.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:f.encode,encoder:"function"==typeof t.encoder?t.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:f.encodeValuesOnly,filter:i,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:f.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:f.strictNullHandling}}(e);"function"==typeof l.filter?r=(0,l.filter)("",r):s(l.filter)&&(n=l.filter);var u,d=[];if("object"!=typeof r||null===r)return"";u=e&&e.arrayFormat in i?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var g=i[u];n||(n=Object.keys(r)),l.sort&&n.sort(l.sort);for(var h=0;h<n.length;++h){var m=n[h];l.skipNulls&&null===r[m]||c(d,p(r[m],m,g,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.formatter,l.encodeValuesOnly,l.charset))}var v=d.join(l.delimiter),_=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),v.length>0?_+v:""}},function(t,e,n){"use strict";var r=n(95),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},l=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},c=function(t,e,n,r){if(t){var a=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(a),c=s?a.slice(0,s.index):a,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=i.exec(a))&&d<n.depth;){if(d+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+a.slice(s.index)+"]"),function(t,e,n,r){for(var o=r?e:l(e,n),a=t.length-1;a>=0;--a){var i,s=t[a];if("[]"===s&&n.parseArrays)i=[].concat(o);else{i=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(i=[])[u]=o:i[c]=o:i={0:o}}o=i}return o}(u,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return i;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?i.charset:t.charset;return{allowDots:void 0===t.allowDots?i.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:i.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof t?function(t,e){var n,c={},u=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,d=e.parameterLimit===1/0?void 0:e.parameterLimit,f=u.split(e.delimiter,d),p=-1,g=e.charset;if(e.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?g="utf-8":"utf8=%26%2310003%3B"===f[n]&&(g="iso-8859-1"),p=n,n=f.length);for(n=0;n<f.length;++n)if(n!==p){var h,m,v=f[n],_=v.indexOf("]="),y=-1===_?v.indexOf("="):_+1;-1===y?(h=e.decoder(v,i.decoder,g,"key"),m=e.strictNullHandling?null:""):(h=e.decoder(v.slice(0,y),i.decoder,g,"key"),m=r.maybeMap(l(v.slice(y+1),e),(function(t){return e.decoder(t,i.decoder,g,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===g&&(m=s(m)),v.indexOf("[]=")>-1&&(m=a(m)?[m]:m),o.call(c,h)?c[h]=r.combine(c[h],m):c[h]=m}return c}(t,n):t,d=n.plainObjects?Object.create(null):{},f=Object.keys(u),p=0;p<f.length;++p){var g=f[p],h=c(g,u[g],n,"string"==typeof t);d=r.merge(d,h,n)}return r.compact(d)}}]);
|
1 |
+
var ajaxloadmore=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=96)}([function(t,e,n){var r=n(1),o=n(7),a=n(15),i=n(11),s=n(18),l=function(t,e,n){var c,u,d,f,p=t&l.F,g=t&l.G,h=t&l.S,m=t&l.P,v=t&l.B,_=g?r:h?r[e]||(r[e]={}):(r[e]||{}).prototype,y=g?o:o[e]||(o[e]={}),b=y.prototype||(y.prototype={});for(c in g&&(n=e),n)d=((u=!p&&_&&void 0!==_[c])?_:n)[c],f=v&&u?s(d,r):m&&"function"==typeof d?s(Function.call,d):d,_&&i(_,c,d,t&l.U),y[c]!=d&&a(y,c,f),m&&b[c]!=d&&(b[c]=d)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(51)("wks"),o=n(30),a=n(1).Symbol,i="function"==typeof a;(t.exports=function(t){return r[t]||(r[t]=i&&a[t]||(i?a:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(20),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=!n(2)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(3),o=n(108),a=n(27),i=Object.defineProperty;e.f=n(8)?Object.defineProperty:function(t,e,n){if(r(t),e=a(e,!0),r(n),o)try{return i(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(25);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(1),o=n(15),a=n(14),i=n(30)("src"),s=n(185),l=(""+s).split("toString");n(7).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(a(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(a(n,i)||o(n,i,t[e]?""+t[e]:l.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[i]||s.call(this)}))},function(t,e,n){var r=n(0),o=n(2),a=n(25),i=/"/g,s=function(t,e,n,r){var o=String(a(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(r).replace(i,""")+'"'),s+">"+o+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(s),r(r.P+r.F*o((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",n)}},function(t,e,n){"use strict";var r=n(97),o=n(141),a=Object.prototype.toString;function i(t){return"[object Array]"===a.call(t)}function s(t){return null!==t&&"object"==typeof t}function l(t){return"[object Function]"===a.call(t)}function c(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===a.call(t)},isBuffer:o,isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isUndefined:function(t){return void 0===t},isDate:function(t){return"[object Date]"===a.call(t)},isFile:function(t){return"[object File]"===a.call(t)},isBlob:function(t){return"[object Blob]"===a.call(t)},isFunction:l,isStream:function(t){return s(t)&&l(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function t(){var e={};function n(n,r){"object"==typeof e[r]&&"object"==typeof n?e[r]=t(e[r],n):e[r]=n}for(var r=0,o=arguments.length;r<o;r++)c(arguments[r],n);return e},extend:function(t,e,n){return c(e,(function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(9),o=n(29);t.exports=n(8)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(45),o=n(25);t.exports=function(t){return r(o(t))}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},function(t,e,n){var r=n(19);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(46),o=n(29),a=n(16),i=n(27),s=n(14),l=n(108),c=Object.getOwnPropertyDescriptor;e.f=n(8)?c:function(t,e){if(t=a(t),e=i(e,!0),l)try{return c(t,e)}catch(t){}if(s(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(0),o=n(7),a=n(2);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],i={};i[t]=e(n),r(r.S+r.F*a((function(){n(1)})),"Object",i)}},function(t,e,n){var r=n(18),o=n(45),a=n(10),i=n(6),s=n(124);t.exports=function(t,e){var n=1==t,l=2==t,c=3==t,u=4==t,d=6==t,f=5==t||d,p=e||s;return function(e,s,g){for(var h,m,v=a(e),_=o(v),y=r(s,g,3),b=i(_.length),w=0,x=n?p(e,b):l?p(e,0):void 0;b>w;w++)if((f||w in _)&&(m=y(h=_[w],w,v),t))if(n)x[w]=m;else if(m)switch(t){case 3:return!0;case 5:return h;case 6:return w;case 2:x.push(h)}else if(u)return!1;return d?-1:c||u?u:x}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";if(n(8)){var r=n(31),o=n(1),a=n(2),i=n(0),s=n(62),l=n(94),c=n(18),u=n(43),d=n(29),f=n(15),p=n(44),g=n(20),h=n(6),m=n(135),v=n(33),_=n(27),y=n(14),b=n(47),w=n(4),x=n(10),S=n(86),A=n(34),j=n(36),E=n(35).f,L=n(88),P=n(30),M=n(5),O=n(23),T=n(52),I=n(48),F=n(90),C=n(41),N=n(55),k=n(42),R=n(89),q=n(126),D=n(9),z=n(21),B=D.f,W=z.f,H=o.RangeError,U=o.TypeError,V=o.Uint8Array,G=Array.prototype,Y=l.ArrayBuffer,X=l.DataView,Q=O(0),$=O(2),J=O(3),K=O(4),Z=O(5),tt=O(6),et=T(!0),nt=T(!1),rt=F.values,ot=F.keys,at=F.entries,it=G.lastIndexOf,st=G.reduce,lt=G.reduceRight,ct=G.join,ut=G.sort,dt=G.slice,ft=G.toString,pt=G.toLocaleString,gt=M("iterator"),ht=M("toStringTag"),mt=P("typed_constructor"),vt=P("def_constructor"),_t=s.CONSTR,yt=s.TYPED,bt=s.VIEW,wt=O(1,(function(t,e){return Et(I(t,t[vt]),e)})),xt=a((function(){return 1===new V(new Uint16Array([1]).buffer)[0]})),St=!!V&&!!V.prototype.set&&a((function(){new V(1).set({})})),At=function(t,e){var n=g(t);if(n<0||n%e)throw H("Wrong offset!");return n},jt=function(t){if(w(t)&&yt in t)return t;throw U(t+" is not a typed array!")},Et=function(t,e){if(!w(t)||!(mt in t))throw U("It is not a typed array constructor!");return new t(e)},Lt=function(t,e){return Pt(I(t,t[vt]),e)},Pt=function(t,e){for(var n=0,r=e.length,o=Et(t,r);r>n;)o[n]=e[n++];return o},Mt=function(t,e,n){B(t,e,{get:function(){return this._d[n]}})},Ot=function(t){var e,n,r,o,a,i,s=x(t),l=arguments.length,u=l>1?arguments[1]:void 0,d=void 0!==u,f=L(s);if(null!=f&&!S(f)){for(i=f.call(s),r=[],e=0;!(a=i.next()).done;e++)r.push(a.value);s=r}for(d&&l>2&&(u=c(u,arguments[2],2)),e=0,n=h(s.length),o=Et(this,n);n>e;e++)o[e]=d?u(s[e],e):s[e];return o},Tt=function(){for(var t=0,e=arguments.length,n=Et(this,e);e>t;)n[t]=arguments[t++];return n},It=!!V&&a((function(){pt.call(new V(1))})),Ft=function(){return pt.apply(It?dt.call(jt(this)):jt(this),arguments)},Ct={copyWithin:function(t,e){return q.call(jt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return K(jt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return R.apply(jt(this),arguments)},filter:function(t){return Lt(this,$(jt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Z(jt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(jt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(jt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(jt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(jt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ct.apply(jt(this),arguments)},lastIndexOf:function(t){return it.apply(jt(this),arguments)},map:function(t){return wt(jt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return st.apply(jt(this),arguments)},reduceRight:function(t){return lt.apply(jt(this),arguments)},reverse:function(){for(var t,e=jt(this).length,n=Math.floor(e/2),r=0;r<n;)t=this[r],this[r++]=this[--e],this[e]=t;return this},some:function(t){return J(jt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return ut.call(jt(this),t)},subarray:function(t,e){var n=jt(this),r=n.length,o=v(t,r);return new(I(n,n[vt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,h((void 0===e?r:v(e,r))-o))}},Nt=function(t,e){return Lt(this,dt.call(jt(this),t,e))},kt=function(t){jt(this);var e=At(arguments[1],1),n=this.length,r=x(t),o=h(r.length),a=0;if(o+e>n)throw H("Wrong length!");for(;a<o;)this[e+a]=r[a++]},Rt={entries:function(){return at.call(jt(this))},keys:function(){return ot.call(jt(this))},values:function(){return rt.call(jt(this))}},qt=function(t,e){return w(t)&&t[yt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Dt=function(t,e){return qt(t,e=_(e,!0))?d(2,t[e]):W(t,e)},zt=function(t,e,n){return!(qt(t,e=_(e,!0))&&w(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?B(t,e,n):(t[e]=n.value,t)};_t||(z.f=Dt,D.f=zt),i(i.S+i.F*!_t,"Object",{getOwnPropertyDescriptor:Dt,defineProperty:zt}),a((function(){ft.call({})}))&&(ft=pt=function(){return ct.call(this)});var Bt=p({},Ct);p(Bt,Rt),f(Bt,gt,Rt.values),p(Bt,{slice:Nt,set:kt,constructor:function(){},toString:ft,toLocaleString:Ft}),Mt(Bt,"buffer","b"),Mt(Bt,"byteOffset","o"),Mt(Bt,"byteLength","l"),Mt(Bt,"length","e"),B(Bt,ht,{get:function(){return this[yt]}}),t.exports=function(t,e,n,l){var c=t+((l=!!l)?"Clamped":"")+"Array",d="get"+t,p="set"+t,g=o[c],v=g||{},_=g&&j(g),y=!g||!s.ABV,x={},S=g&&g.prototype,L=function(t,n){B(t,n,{get:function(){return function(t,n){var r=t._d;return r.v[d](n*e+r.o,xt)}(this,n)},set:function(t){return function(t,n,r){var o=t._d;l&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),o.v[p](n*e+o.o,r,xt)}(this,n,t)},enumerable:!0})};y?(g=n((function(t,n,r,o){u(t,g,c,"_d");var a,i,s,l,d=0,p=0;if(w(n)){if(!(n instanceof Y||"ArrayBuffer"==(l=b(n))||"SharedArrayBuffer"==l))return yt in n?Pt(g,n):Ot.call(g,n);a=n,p=At(r,e);var v=n.byteLength;if(void 0===o){if(v%e)throw H("Wrong length!");if((i=v-p)<0)throw H("Wrong length!")}else if((i=h(o)*e)+p>v)throw H("Wrong length!");s=i/e}else s=m(n),a=new Y(i=s*e);for(f(t,"_d",{b:a,o:p,l:i,e:s,v:new X(a)});d<s;)L(t,d++)})),S=g.prototype=A(Bt),f(S,"constructor",g)):a((function(){g(1)}))&&a((function(){new g(-1)}))&&N((function(t){new g,new g(null),new g(1.5),new g(t)}),!0)||(g=n((function(t,n,r,o){var a;return u(t,g,c),w(n)?n instanceof Y||"ArrayBuffer"==(a=b(n))||"SharedArrayBuffer"==a?void 0!==o?new v(n,At(r,e),o):void 0!==r?new v(n,At(r,e)):new v(n):yt in n?Pt(g,n):Ot.call(g,n):new v(m(n))})),Q(_!==Function.prototype?E(v).concat(E(_)):E(v),(function(t){t in g||f(g,t,v[t])})),g.prototype=S,r||(S.constructor=g));var P=S[gt],M=!!P&&("values"==P.name||null==P.name),O=Rt.values;f(g,mt,!0),f(S,yt,c),f(S,bt,!0),f(S,vt,g),(l?new g(1)[ht]==c:ht in S)||B(S,ht,{get:function(){return c}}),x[c]=g,i(i.G+i.W+i.F*(g!=v),x),i(i.S,c,{BYTES_PER_ELEMENT:e}),i(i.S+i.F*a((function(){v.of.call(g,1)})),c,{from:Ot,of:Tt}),"BYTES_PER_ELEMENT"in S||f(S,"BYTES_PER_ELEMENT",e),i(i.P,c,Ct),k(c),i(i.P+i.F*St,c,{set:kt}),i(i.P+i.F*!M,c,Rt),r||S.toString==ft||(S.toString=ft),i(i.P+i.F*a((function(){new g(1).slice()})),c,{slice:Nt}),i(i.P+i.F*(a((function(){return[1,2].toLocaleString()!=new g([1,2]).toLocaleString()}))||!a((function(){S.toLocaleString.call([1,2])}))),c,{toLocaleString:Ft}),C[c]=M?P:O,r||M||f(S,gt,O)}}else t.exports=function(){}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(30)("meta"),o=n(4),a=n(14),i=n(9).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(2)((function(){return l(Object.preventExtensions({}))})),u=function(t){i(t,r,{value:{i:"O"+ ++s,w:{}}})},d=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,r)){if(!l(t))return"F";if(!e)return"E";u(t)}return t[r].i},getWeak:function(t,e){if(!a(t,r)){if(!l(t))return!0;if(!e)return!1;u(t)}return t[r].w},onFreeze:function(t){return c&&d.NEED&&l(t)&&!a(t,r)&&u(t),t}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=!1},function(t,e,n){var r=n(110),o=n(73);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(20),o=Math.max,a=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):a(t,e)}},function(t,e,n){var r=n(3),o=n(111),a=n(73),i=n(72)("IE_PROTO"),s=function(){},l=function(){var t,e=n(70)("iframe"),r=a.length;for(e.style.display="none",n(74).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;r--;)delete l.prototype[a[r]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[i]=t):n=l(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(110),o=n(73).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(14),o=n(10),a=n(72)("IE_PROTO"),i=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?i:null}},function(t,e,n){var r=n(5)("unscopables"),o=Array.prototype;null==o[r]&&n(15)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){var r=n(9).f,o=n(14),a=n(5)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},function(t,e,n){var r=n(0),o=n(25),a=n(2),i=n(76),s="["+i+"]",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),u=function(t,e,n){var o={},s=a((function(){return!!i[t]()||"
"!="
"[t]()})),l=o[t]=s?e(d):i[t];n&&(o[n]=l),r(r.P+r.F*s,"String",o)},d=u.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(c,"")),t};t.exports=u},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(1),o=n(9),a=n(8),i=n(5)("species");t.exports=function(t){var e=r[t];a&&e&&!e[i]&&o.f(e,i,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(11);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){var r=n(24);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(24),o=n(5)("toStringTag"),a="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:a?r(e):"Object"==(i=r(e))&&"function"==typeof e.callee?"Arguments":i}},function(t,e,n){var r=n(3),o=n(19),a=n(5)("species");t.exports=function(t,e){var n,i=r(t).constructor;return void 0===i||null==(n=r(i)[a])?e:o(n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!alm_localize.a11y_focus)return!1;t.addons.woocommerce||t.addons.elementor?r(!1,!1,e,!1,t.isSafari):t.transition_container&&n>0?t.addons.paging?r(t.init,t.addons.preloaded,t.listing,o,t.isSafari):t.addons.single_post||t.addons.nextpage?r(!1,t.addons.preloaded,e,o,t.isSafari):r(t.init,t.addons.preloaded,e,o,t.isSafari):t.transition_container||r(t.init,t.addons.preloaded,e[0],o,t.isSafari)};var r=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"false",n=arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!r&&(t||!n)&&"true"!==e)return!1;n.setAttribute("tabIndex","-1"),n.style.outline="none";var o=n.classList.contains("alm-listing")?n:n.parentNode,a=o.dataset.scrollContainer;if(a){var i=document.querySelector(a);i&&setTimeout((function(){n.focus({preventScroll:!0})}),50)}else setTimeout((function(){n.focus({preventScroll:!0})}),50)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){if(0==e)t.style.opacity=1,t.style.height="auto";else{e/=10;var n=0,r=setInterval((function(){n>.9&&(t.style.opacity=1,clearInterval(r)),t.style.opacity=n,n+=.1}),e);t.style.height="auto"}}},function(t,e,n){var r=n(7),o=n(1),a=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(31)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(16),o=n(6),a=n(33);t.exports=function(t){return function(e,n,i){var s,l=r(e),c=o(l.length),u=a(i,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(5)("iterator"),o=!1;try{var a=[7][r]();a.return=function(){o=!0},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var a=[7],i=a[r]();i.next=function(){return{done:n=!0}},a[r]=function(){return i},t(a)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(3);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(47),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var a=n.call(t,e);if("object"!=typeof a)throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,n){"use strict";n(128);var r=n(11),o=n(15),a=n(2),i=n(25),s=n(5),l=n(91),c=s("species"),u=!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var f=s(t),p=!a((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),g=p?!a((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[f](""),!e})):void 0;if(!p||!g||"replace"===t&&!u||"split"===t&&!d){var h=/./[f],m=n(i,f,""[t],(function(t,e,n,r,o){return e.exec===l?p&&!o?{done:!0,value:h.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),v=m[0],_=m[1];r(String.prototype,t,v),o(RegExp.prototype,f,2==e?function(t,e){return _.call(t,this,e)}:function(t){return _.call(t,this)})}}},function(t,e,n){var r=n(18),o=n(123),a=n(86),i=n(3),s=n(6),l=n(88),c={},u={};(e=t.exports=function(t,e,n,d,f){var p,g,h,m,v=f?function(){return t}:l(t),_=r(n,d,e?2:1),y=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(a(v)){for(p=s(t.length);p>y;y++)if((m=e?_(i(g=t[y])[0],g[1]):_(t[y]))===c||m===u)return m}else for(h=v.call(t);!(g=h.next()).done;)if((m=o(h,_,g.value,e))===c||m===u)return m}).BREAK=c,e.RETURN=u},function(t,e,n){var r=n(1).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){"use strict";var r=n(1),o=n(0),a=n(11),i=n(44),s=n(28),l=n(59),c=n(43),u=n(4),d=n(2),f=n(55),p=n(39),g=n(77);t.exports=function(t,e,n,h,m,v){var _=r[t],y=_,b=m?"set":"add",w=y&&y.prototype,x={},S=function(t){var e=w[t];a(w,t,"delete"==t||"has"==t?function(t){return!(v&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!u(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof y&&(v||w.forEach&&!d((function(){(new y).entries().next()})))){var A=new y,j=A[b](v?{}:-0,1)!=A,E=d((function(){A.has(1)})),L=f((function(t){new y(t)})),P=!v&&d((function(){for(var t=new y,e=5;e--;)t[b](e,e);return!t.has(-0)}));L||((y=e((function(e,n){c(e,y,t);var r=g(new _,e,y);return null!=n&&l(n,m,r[b],r),r}))).prototype=w,w.constructor=y),(E||P)&&(S("delete"),S("has"),m&&S("get")),(P||j)&&S(b),v&&w.clear&&delete w.clear}else y=h.getConstructor(e,t,m,b),i(y.prototype,n),s.NEED=!0;return p(y,t),x[t]=y,o(o.G+o.W+o.F*(y!=_),x),v||h.setStrong(y,t,m),y}},function(t,e,n){for(var r,o=n(1),a=n(15),i=n(30),s=i("typed_array"),l=i("view"),c=!(!o.ArrayBuffer||!o.DataView),u=c,d=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");d<9;)(r=o[f[d++]])?(a(r.prototype,s,!0),a(r.prototype,l,!0)):u=!1;t.exports={ABV:c,CONSTR:u,TYPED:s,VIEW:l}},function(t,e,n){t.exports=n(140)},function(t,e,n){"use strict";(function(e){var r=n(13),o=n(144),a={"Content-Type":"application/x-www-form-urlencoded"};function i(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,l={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e)&&(s=n(98)),s),transformRequest:[function(t,e){return o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(i(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(i(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){l.headers[t]=r.merge(a)})),t.exports=l}).call(this,n(143))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseQuerystring=function(t){var e=window.location.search.substring(1),n="",r="";e&&((n=JSON.parse('{"'+e.replace(/&/g,'","').replace(/=/g,'":"')+'"}',(function(t,e){return""===t?e:decodeURIComponent(e.replace(/\+/g,"-"))}))).pg&&delete n.pg,n.auto&&delete n.auto);n&&(r+="/",Object.keys(n).forEach((function(t,e){r+=e>0?"--":"",r+=t+"--"+n[t]})));return t+r},e.buildFilterURL=i,e.createMasonryFiltersPage=function(t,e){if(!t.addons.filters)return e;var n=window.location.search,r=t.page+1;return r="true"===t.addons.preloaded?r+1:r,e=s(t,e,n,r)},e.createMasonryFiltersPages=function(t,e){if(!t.addons.filters)return e;var n=1,r=t.page,o=window.location.search;if(t.addons.filters_startpage>1){for(var a=parseInt(t.posts_per_page),i=[],l=0;l<e.length;l+=a)i.push(e.slice(l,a+l));for(var c=0;c<i.length;c++){var u=c>0?c*a:0;n=c+1,e[u]&&(e[u]=s(t,e[u],o,n))}}else n=r,e&&e[0]&&(e[0]=s(t,e[0],o,n));return e};var r,o=n(164),a=(r=o)&&r.__esModule?r:{default:r};function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=e;return t.addons.filters_paging&&(r=n>1?r?(0,a.default)("pg")?e.replace(/(pg=)[^\&]+/,"$1"+n):e+"&pg="+n:"?pg="+n:"&"===(r="?"===(r=e.replace(/(pg=)[^\&]+/,""))?"":r)[r.length-1]?r.slice(0,-1):r),r}function s(t,e,n,r){if(e.classList.add("alm-filters"),e.dataset.page=r,r>1)e.dataset.url=t.canonical_url+i(t,n,r);else{var o=n.replace(/(pg=)[^\&]+/,"");o="?"===o?"":o,e.dataset.url=t.canonical_url+o}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text/html";if(!t)return!1;var n=new DOMParser,r=n.parseFromString(t,e);return r?Array.prototype.slice.call(r.body.childNodes):r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!t)return!1;if(e.indexOf("Safari")>-1&&-1!=e.indexOf("Chrome")||e.indexOf("Firefox")>-1||e.indexOf("Windows")>-1)return!1;for(var n=t.querySelectorAll("img[srcset]:not(.alm-loaded)"),r=0;r<n.length;r++){var o=n[r];o.classList.add("alm-loaded"),o.outerHTML=o.outerHTML}}},function(t,e,n){var r,o;
|
2 |
/*!
|
3 |
* imagesLoaded v4.1.4
|
4 |
* JavaScript is all like "You images are done yet or what?"
|
5 |
* MIT License
|
6 |
+
*/!function(a,i){"use strict";r=[n(170)],void 0===(o=function(t){return function(t,e){var n=t.jQuery,r=t.console;function o(t,e){for(var n in e)t[n]=e[n];return t}var a=Array.prototype.slice;function i(t,e,s){if(!(this instanceof i))return new i(t,e,s);var l,c=t;("string"==typeof t&&(c=document.querySelectorAll(t)),c)?(this.elements=(l=c,Array.isArray(l)?l:"object"==typeof l&&"number"==typeof l.length?a.call(l):[l]),this.options=o({},this.options),"function"==typeof e?s=e:o(this.options,e),s&&this.on("always",s),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(c||t))}i.prototype=Object.create(e.prototype),i.prototype.options={},i.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},i.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&s[e]){for(var n=t.querySelectorAll("img"),r=0;r<n.length;r++){var o=n[r];this.addImage(o)}if("string"==typeof this.options.background){var a=t.querySelectorAll(this.options.background);for(r=0;r<a.length;r++){var i=a[r];this.addElementBackgroundImages(i)}}}};var s={1:!0,9:!0,11:!0};function l(t){this.img=t}function c(t,e){this.url=t,this.element=e,this.img=new Image}return i.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var n=/url\((['"])?(.*?)\1\)/gi,r=n.exec(e.backgroundImage);null!==r;){var o=r&&r[2];o&&this.addBackground(o,t),r=n.exec(e.backgroundImage)}},i.prototype.addImage=function(t){var e=new l(t);this.images.push(e)},i.prototype.addBackground=function(t,e){var n=new c(t,e);this.images.push(n)},i.prototype.check=function(){var t=this;function e(e,n,r){setTimeout((function(){t.progress(e,n,r)}))}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(t){t.once("progress",e),t.check()})):this.complete()},i.prototype.progress=function(t,e,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+n,t,e)},i.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},l.prototype=Object.create(e.prototype),l.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},l.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},l.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},l.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},l.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},l.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype=Object.create(l.prototype),c.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},c.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},i.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((n=e).fn.imagesLoaded=function(t,e){return new i(this,t,e).jqDeferred.promise(n(this))})},i.makeJQueryPlugin(),i}(a,t)}.apply(e,r))||(t.exports=o)}("undefined"!=typeof window?window:this)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){e/=10,t.style.opacity=.5;var n=setInterval((function(){t.style.opacity<.1?clearInterval(n):t.style.opacity-=.1}),e)}},function(t,e,n){var r=n(4),o=n(1).document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,n){e.f=n(5)},function(t,e,n){var r=n(51)("keys"),o=n(30);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(1).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(4),o=n(3),a=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(18)(Function.call,n(21).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return a(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:a}},function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,e,n){var r=n(4),o=n(75).set;t.exports=function(t,e,n){var a,i=e.constructor;return i!==n&&"function"==typeof i&&(a=i.prototype)!==n.prototype&&r(a)&&o&&o(t,a),t}},function(t,e,n){"use strict";var r=n(20),o=n(25);t.exports=function(t){var e=String(o(this)),n="",a=r(t);if(a<0||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(20),o=n(25);t.exports=function(t){return function(e,n){var a,i,s=String(o(e)),l=r(n),c=s.length;return l<0||l>=c?t?"":void 0:(a=s.charCodeAt(l))<55296||a>56319||l+1===c||(i=s.charCodeAt(l+1))<56320||i>57343?t?s.charAt(l):a:t?s.slice(l,l+2):i-56320+(a-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(31),o=n(0),a=n(11),i=n(15),s=n(41),l=n(122),c=n(39),u=n(36),d=n(5)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,g,h,m,v){l(n,e,g);var _,y,b,w=function(t){if(!f&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",S="values"==h,A=!1,j=t.prototype,E=j[d]||j["@@iterator"]||h&&j[h],L=E||w(h),P=h?S?w("entries"):L:void 0,M="Array"==e&&j.entries||E;if(M&&(b=u(M.call(new t)))!==Object.prototype&&b.next&&(c(b,x,!0),r||"function"==typeof b[d]||i(b,d,p)),S&&E&&"values"!==E.name&&(A=!0,L=function(){return E.call(this)}),r&&!v||!f&&!A&&j[d]||i(j,d,L),s[e]=L,s[x]=p,h)if(_={values:S?L:w("values"),keys:m?L:w("keys"),entries:P},v)for(y in _)y in j||a(j,y,_[y]);else o(o.P+o.F*(f||A),e,_);return _}},function(t,e,n){var r=n(84),o=n(25);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){var r=n(4),o=n(24),a=n(5)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(5)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(41),o=n(5)("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[o]===t)}},function(t,e,n){"use strict";var r=n(9),o=n(29);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(47),o=n(5)("iterator"),a=n(41);t.exports=n(7).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||a[r(t)]}},function(t,e,n){"use strict";var r=n(10),o=n(33),a=n(6);t.exports=function(t){for(var e=r(this),n=a(e.length),i=arguments.length,s=o(i>1?arguments[1]:void 0,n),l=i>2?arguments[2]:void 0,c=void 0===l?n:o(l,n);c>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var r=n(37),o=n(127),a=n(41),i=n(16);t.exports=n(82)(Array,"Array",(function(t,e){this._t=i(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";var r,o,a=n(56),i=RegExp.prototype.exec,s=String.prototype.replace,l=i,c=(r=/a/,o=/b*/g,i.call(r,"a"),i.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(l=function(t){var e,n,r,o,l=this;return u&&(n=new RegExp("^"+l.source+"$(?!\\s)",a.call(l))),c&&(e=l.lastIndex),r=i.call(l,t),c&&r&&(l.lastIndex=l.global?r.index+r[0].length:e),u&&r&&r.length>1&&s.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),t.exports=l},function(t,e,n){"use strict";var r=n(81)(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){var r,o,a,i=n(18),s=n(116),l=n(74),c=n(70),u=n(1),d=u.process,f=u.setImmediate,p=u.clearImmediate,g=u.MessageChannel,h=u.Dispatch,m=0,v={},_=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},y=function(t){_.call(t.data)};f&&p||(f=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++m]=function(){s("function"==typeof t?t:Function(t),e)},r(m),m},p=function(t){delete v[t]},"process"==n(24)(d)?r=function(t){d.nextTick(i(_,t,1))}:h&&h.now?r=function(t){h.now(i(_,t,1))}:g?(a=(o=new g).port2,o.port1.onmessage=y,r=i(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(t){u.postMessage(t+"","*")},u.addEventListener("message",y,!1)):r="onreadystatechange"in c("script")?function(t){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),_.call(t)}}:function(t){setTimeout(i(_,t,1),0)}),t.exports={set:f,clear:p}},function(t,e,n){"use strict";var r=n(1),o=n(8),a=n(31),i=n(62),s=n(15),l=n(44),c=n(2),u=n(43),d=n(20),f=n(6),p=n(135),g=n(35).f,h=n(9).f,m=n(89),v=n(39),_=r.ArrayBuffer,y=r.DataView,b=r.Math,w=r.RangeError,x=r.Infinity,S=_,A=b.abs,j=b.pow,E=b.floor,L=b.log,P=b.LN2,M=o?"_b":"buffer",O=o?"_l":"byteLength",T=o?"_o":"byteOffset";function I(t,e,n){var r,o,a,i=new Array(n),s=8*n-e-1,l=(1<<s)-1,c=l>>1,u=23===e?j(2,-24)-j(2,-77):0,d=0,f=t<0||0===t&&1/t<0?1:0;for((t=A(t))!=t||t===x?(o=t!=t?1:0,r=l):(r=E(L(t)/P),t*(a=j(2,-r))<1&&(r--,a*=2),(t+=r+c>=1?u/a:u*j(2,1-c))*a>=2&&(r++,a/=2),r+c>=l?(o=0,r=l):r+c>=1?(o=(t*a-1)*j(2,e),r+=c):(o=t*j(2,c-1)*j(2,e),r=0));e>=8;i[d++]=255&o,o/=256,e-=8);for(r=r<<e|o,s+=e;s>0;i[d++]=255&r,r/=256,s-=8);return i[--d]|=128*f,i}function F(t,e,n){var r,o=8*n-e-1,a=(1<<o)-1,i=a>>1,s=o-7,l=n-1,c=t[l--],u=127&c;for(c>>=7;s>0;u=256*u+t[l],l--,s-=8);for(r=u&(1<<-s)-1,u>>=-s,s+=e;s>0;r=256*r+t[l],l--,s-=8);if(0===u)u=1-i;else{if(u===a)return r?NaN:c?-x:x;r+=j(2,e),u-=i}return(c?-1:1)*r*j(2,u-e)}function C(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function N(t){return[255&t]}function k(t){return[255&t,t>>8&255]}function R(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function q(t){return I(t,52,8)}function D(t){return I(t,23,4)}function z(t,e,n){h(t.prototype,e,{get:function(){return this[n]}})}function B(t,e,n,r){var o=p(+n);if(o+e>t[O])throw w("Wrong index!");var a=t[M]._b,i=o+t[T],s=a.slice(i,i+e);return r?s:s.reverse()}function W(t,e,n,r,o,a){var i=p(+n);if(i+e>t[O])throw w("Wrong index!");for(var s=t[M]._b,l=i+t[T],c=r(+o),u=0;u<e;u++)s[l+u]=c[a?u:e-u-1]}if(i.ABV){if(!c((function(){_(1)}))||!c((function(){new _(-1)}))||c((function(){return new _,new _(1.5),new _(NaN),"ArrayBuffer"!=_.name}))){for(var H,U=(_=function(t){return u(this,_),new S(p(t))}).prototype=S.prototype,V=g(S),G=0;V.length>G;)(H=V[G++])in _||s(_,H,S[H]);a||(U.constructor=_)}var Y=new y(new _(2)),X=y.prototype.setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||l(y.prototype,{setInt8:function(t,e){X.call(this,t,e<<24>>24)},setUint8:function(t,e){X.call(this,t,e<<24>>24)}},!0)}else _=function(t){u(this,_,"ArrayBuffer");var e=p(t);this._b=m.call(new Array(e),0),this[O]=e},y=function(t,e,n){u(this,y,"DataView"),u(t,_,"DataView");var r=t[O],o=d(e);if(o<0||o>r)throw w("Wrong offset!");if(o+(n=void 0===n?r-o:f(n))>r)throw w("Wrong length!");this[M]=t,this[T]=o,this[O]=n},o&&(z(_,"byteLength","_l"),z(y,"buffer","_b"),z(y,"byteLength","_l"),z(y,"byteOffset","_o")),l(y.prototype,{getInt8:function(t){return B(this,1,t)[0]<<24>>24},getUint8:function(t){return B(this,1,t)[0]},getInt16:function(t){var e=B(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=B(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return C(B(this,4,t,arguments[1]))},getUint32:function(t){return C(B(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return F(B(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return F(B(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){W(this,1,t,N,e)},setUint8:function(t,e){W(this,1,t,N,e)},setInt16:function(t,e){W(this,2,t,k,e,arguments[2])},setUint16:function(t,e){W(this,2,t,k,e,arguments[2])},setInt32:function(t,e){W(this,4,t,R,e,arguments[2])},setUint32:function(t,e){W(this,4,t,R,e,arguments[2])},setFloat32:function(t,e){W(this,4,t,D,e,arguments[2])},setFloat64:function(t,e){W(this,8,t,q,e,arguments[2])}});v(_,"ArrayBuffer"),v(y,"DataView"),s(y.prototype,i.VIEW,!0),e.ArrayBuffer=_,e.DataView=y},function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),i=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:i,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var a=e[r],i=a.obj[a.prop],s=Object.keys(i),l=0;l<s.length;++l){var c=s[l],u=i[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(e.push({obj:i,prop:c}),n.push(u))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(o(n)){for(var r=[],a=0;a<n.length;++a)void 0!==n[a]&&r.push(n[a]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(t,e,n){if(0===t.length)return t;var r=t;if("symbol"==typeof t?r=Symbol.prototype.toString.call(t):"string"!=typeof t&&(r=String(t)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var o="",i=0;i<r.length;++i){var s=r.charCodeAt(i);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=r.charAt(i):s<128?o+=a[s]:s<2048?o+=a[192|s>>6]+a[128|63&s]:s<55296||s>=57344?o+=a[224|s>>12]+a[128|s>>6&63]+a[128|63&s]:(i+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(i)),o+=a[240|s>>18]+a[128|s>>12&63]+a[128|s>>6&63]+a[128|63&s])}return o},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(o(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)},merge:function t(e,n,a){if(!n)return e;if("object"!=typeof n){if(o(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(a&&(a.plainObjects||a.allowPrototypes)||!r.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var s=e;return o(e)&&!o(n)&&(s=i(e,a)),o(e)&&o(n)?(n.forEach((function(n,o){if(r.call(e,o)){var i=e[o];i&&"object"==typeof i&&n&&"object"==typeof n?e[o]=t(i,n,a):e.push(n)}else e[o]=n})),e):Object.keys(n).reduce((function(e,o){var i=n[o];return r.call(e,o)?e[o]=t(e[o],i,a):e[o]=i,e}),s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.render=e.getOffset=e.almScroll=e.start=e.tracking=e.tab=e.reset=e.filter=void 0;var r=C(n(63)),o=C(n(158));n(159);var a=C(n(160)),i=C(n(102)),s=C(n(162)),l=C(n(163)),c=C(n(66)),u=C(n(103)),d=F(n(165)),f=F(n(104)),p=n(105),g=C(n(166)),h=C(n(167)),m=C(n(49)),v=C(n(168)),_=C(n(169)),y=C(n(50)),b=C(n(69)),w=C(n(171)),x=C(n(172)),S=C(n(173)),A=C(n(174)),j=C(n(67)),E=n(175),L=n(176),P=n(177),M=n(178),O=n(180),T=n(65),I=n(106);function F(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function C(t){return t&&t.__esModule?t:{default:t}}function N(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}n(181),n(354),n(355);var k=n(356),R=n(68);o.default.polyfill();var q=!1;!function(){var t=function(t,e){alm_localize&&"true"===alm_localize.scrolltop&&window.scrollTo(0,0);var n=this;n.AjaxLoadMore={},n.addons={},n.extensions={},n.integration={},n.window=window,n.page=0,n.posts=0,n.totalposts=0,n.proceed=!1,n.disable_ajax=!1,n.init=!0,n.loading=!0,n.finished=!1,n.timer=null,n.ua=window.navigator.userAgent?window.navigator.userAgent:"",n.vendor=window.navigator.vendor?window.navigator.vendor:"",n.isSafari=/Safari/i.test(n.ua)&&/Apple Computer/.test(n.vendor)&&!/Mobi|Android/i.test(n.ua),n.master_id=t.dataset.id?"ajax-load-more-"+t.dataset.id:t.id,t.classList.add("alm-"+e),t.setAttribute("data-alm-id",e),n.master_id=n.master_id.replace(/-/g,"_"),n.localize=window[n.master_id+"_vars"],n.main=t,n.listing=t.querySelector(".alm-listing")||t.querySelector(".alm-comments"),n.content=n.listing,n.el=n.content,n.ajax=t.querySelector(".alm-ajax"),n.container_type=n.listing.dataset.containerType,n.canonical_url=t.dataset.canonicalUrl,n.nested=t.dataset.nested?t.dataset.nested:null,n.is_search=t.dataset.search,n.slug=t.dataset.slug,n.post_id=t.dataset.postId,n.id=t.dataset.id?t.dataset.id:"";var o=t.querySelector(".alm-no-results");if(n.no_results=o?o.innerHTML:"",n.repeater=n.listing.dataset.repeater,n.theme_repeater=n.listing.dataset.themeRepeater,n.post_type=n.listing.dataset.postType?n.listing.dataset.postType:"post",n.sticky_posts=n.listing.dataset.stickyPosts?n.listing.dataset.stickyPosts:null,n.btnWrap=t.querySelectorAll(".alm-btn-wrap"),n.btnWrap=Array.prototype.slice.call(n.btnWrap),n.btnWrap[n.btnWrap.length-1].style.visibility="visible",n.trigger=n.btnWrap[n.btnWrap.length-1],n.button=n.trigger.querySelector("button.alm-load-more-btn"),n.button_label=n.listing.dataset.buttonLabel,n.button_loading_label=n.listing.dataset.buttonLoadingLabel,n.button_done_label=n.listing.dataset.buttonDoneLabel,n.placeholder=n.main.querySelector(".alm-placeholder"),n.scroll_distance=n.listing.dataset.scrollDistance,n.scroll_distance=n.scroll_distance?n.scroll_distance:100,n.scroll_container=n.listing.dataset.scrollContainer,n.scroll_direction=n.listing.dataset.scrollDirection,n.max_pages=n.listing.dataset.maxPages?parseInt(n.listing.dataset.maxPages):0,n.pause_override=n.listing.dataset.pauseOverride,n.pause=!!n.listing.dataset.pause&&n.listing.dataset.pause,n.transition=n.listing.dataset.transition,n.transition_container=n.listing.dataset.transitionContainer,n.tcc=n.listing.dataset.transitionContainerClasses,n.speed=alm_localize.speed?parseInt(alm_localize.speed):200,n.images_loaded=!!n.listing.dataset.imagesLoaded&&n.listing.dataset.imagesLoaded,n.destroy_after=n.listing.dataset.destroyAfter?n.listing.dataset.destroyAfter:"",n.orginal_posts_per_page=parseInt(n.listing.dataset.postsPerPage),n.posts_per_page=n.listing.dataset.postsPerPage,n.offset=n.listing.dataset.offset?parseInt(n.listing.dataset.offset):0,n.integration.woocommerce=!!n.listing.dataset.woocommerce&&n.listing.dataset.woocommerce,n.integration.woocommerce="true"===n.integration.woocommerce,n.is_search=void 0!==n.is_search&&n.is_search,n.search_value="true"===n.is_search?n.slug:"",n.addons.elementor=!("posts"!==n.listing.dataset.elementor||!n.listing.dataset.elementorSettings),n.addons.elementor&&(n=(0,O.elementorCreateParams)(n)),n.addons.woocommerce=!(!n.listing.dataset.woo||"true"!==n.listing.dataset.woo),n.addons.woocommerce&&n.listing.dataset.wooSettings&&(n.addons.woocommerce_settings=JSON.parse(n.listing.dataset.wooSettings),n.addons.woocommerce_settings.results_text=document.querySelectorAll(n.addons.woocommerce_settings.results),n.page=parseInt(n.page)+parseInt(n.addons.woocommerce_settings.paged)),n.addons.cache=n.listing.dataset.cache,n.addons.cache=void 0!==n.addons.cache&&n.addons.cache,"true"===n.addons.cache&&(n.addons.cache_id=n.listing.dataset.cacheId,n.addons.cache_path=n.listing.dataset.cachePath,n.addons.cache_logged_in=n.listing.dataset.cacheLoggedIn,n.addons.cache_logged_in=void 0!==n.addons.cache_logged_in&&n.addons.cache_logged_in),n.addons.cta=!!n.listing.dataset.cta&&n.listing.dataset.cta,"true"===n.addons.cta&&(n.addons.cta_position=n.listing.dataset.ctaPosition,n.addons.cta_repeater=n.listing.dataset.ctaRepeater,n.addons.cta_theme_repeater=n.listing.dataset.ctaThemeRepeater),n.addons.nextpage=n.listing.dataset.nextpage,"true"===n.addons.nextpage&&(n.addons.nextpage_urls=n.listing.dataset.nextpageUrls,n.addons.nextpage_scroll=n.listing.dataset.nextpageScroll,n.addons.nextpage_pageviews=n.listing.dataset.nextpagePageviews,n.addons.nextpage_post_id=n.listing.dataset.nextpagePostId,n.addons.nextpage_startpage=n.listing.dataset.nextpageStartpage),n.addons.single_post=n.listing.dataset.singlePost,"true"===n.addons.single_post&&(n.addons.single_post_id=n.listing.dataset.singlePostId,n.addons.single_post_query=n.listing.dataset.singlePostQuery,n.addons.single_post_order=n.listing.dataset.singlePostOrder,n.addons.single_post_init_id=n.listing.dataset.singlePostId,n.addons.single_post_taxonomy=n.listing.dataset.singlePostTaxonomy,n.addons.single_post_excluded_terms=n.listing.dataset.singlePostExcludedTerms,n.addons.single_post_progress_bar=n.listing.dataset.singlePostProgressBar,n.addons.single_post_target=n.listing.dataset.singlePostTarget),n.addons.comments=!!n.listing.dataset.comments&&n.listing.dataset.comments,"true"===n.addons.comments&&(n.addons.comments_post_id=n.listing.dataset.comments_post_id,n.addons.comments_per_page=n.listing.dataset.comments_per_page,n.addons.comments_per_page=void 0===n.addons.comments_per_page?"5":n.addons.comments_per_page,n.addons.comments_type=n.listing.dataset.comments_type,n.addons.comments_style=n.listing.dataset.comments_style,n.addons.comments_template=n.listing.dataset.comments_template,n.addons.comments_callback=n.listing.dataset.comments_callback),n.addons.tabs=n.listing.dataset.tabs,n.addons.filters=n.listing.dataset.filters,n.addons.seo=n.listing.dataset.seo,n.addons.preloaded=n.listing.dataset.preloaded,n.addons.preloaded_amount=n.listing.dataset.preloadedAmount?n.listing.dataset.preloadedAmount:0,n.is_preloaded="true"===n.listing.dataset.isPreloaded,n.addons.users="true"===n.listing.dataset.users,n.addons.users&&(n.orginal_posts_per_page=n.listing.dataset.usersPerPage,n.posts_per_page=n.listing.dataset.usersPerPage),n.extensions.restapi=n.listing.dataset.restapi,n.extensions.restapi_base_url=n.listing.dataset.restapiBaseUrl,n.extensions.restapi_namespace=n.listing.dataset.restapiNamespace,n.extensions.restapi_endpoint=n.listing.dataset.restapiEndpoint,n.extensions.restapi_template_id=n.listing.dataset.restapiTemplateId,n.extensions.restapi_debug=n.listing.dataset.restapiDebug,n.extensions.acf=n.listing.dataset.acf,n.extensions.acf_field_type=n.listing.dataset.acfFieldType,n.extensions.acf_field_name=n.listing.dataset.acfFieldName,n.extensions.acf_parent_field_name=n.listing.dataset.acfParentFieldName,n.extensions.acf_post_id=n.listing.dataset.acfPostId,n.extensions.acf="true"===n.extensions.acf,void 0!==n.extensions.acf_field_type&&void 0!==n.extensions.acf_field_name&&void 0!==n.extensions.acf_post_id||(n.extensions.acf=!1),n.extensions.term_query=n.listing.dataset.termQuery,n.extensions.term_query_taxonomy=n.listing.dataset.termQueryTaxonomy,n.extensions.term_query_hide_empty=n.listing.dataset.termQueryHideEmpty,n.extensions.term_query_number=n.listing.dataset.termQueryNumber,n.extensions.term_query="true"===n.extensions.term_query,n.addons.paging=n.listing.dataset.paging,"true"===n.addons.paging?(n.addons.paging=!0,n.addons.paging_init=!0,n.addons.paging_controls="true"===n.listing.dataset.pagingControls,n.addons.paging_show_at_most=n.listing.dataset.pagingShowAtMost,n.addons.paging_classes=n.listing.dataset.pagingClasses,n.addons.paging_show_at_most=void 0===n.addons.paging_show_at_most?7:n.addons.paging_show_at_most,n.addons.paging_first_label=n.listing.dataset.pagingFirstLabel,n.addons.paging_previous_label=n.listing.dataset.pagingPreviousLabel,n.addons.paging_next_label=n.listing.dataset.pagingNextLabel,n.addons.paging_last_label=n.listing.dataset.pagingLastLabel,n.addons.paging_scroll=!!n.listing.dataset.pagingScroll&&n.listing.dataset.pagingScroll,n.addons.paging_scrolltop=n.listing.dataset.pagingScrolltop?parseInt(n.listing.dataset.pagingScrolltop):100,n.pause="true"===n.addons.preloaded||n.pause):n.addons.paging=!1,"true"===n.addons.filters){n.addons.filters=!0,n.addons.filters_url="true"===n.listing.dataset.filtersUrl,n.addons.filters_paging="true"===n.listing.dataset.filtersPaging,n.addons.filters_scroll="true"===n.listing.dataset.filtersScroll,n.addons.filters_scrolltop=n.listing.dataset.filtersScrolltop?n.listing.dataset.filtersScrolltop:"30",n.addons.filters_analtyics=n.listing.dataset.filtersAnalytics,n.addons.filters_debug=n.listing.dataset.filtersDebug,n.addons.filters_startpage=0;var w=(0,a.default)("pg");n.addons.filters_startpage=null!==w?parseInt(w):0,!n.addons.paging&&n.addons.filters_startpage>0&&(n.posts_per_page=n.posts_per_page*n.addons.filters_startpage,n.isPaged=n.addons.filters_startpage>0)}else n.addons.filters=!1;if("true"===n.addons.tabs){if(n.addons.tabs=!0,n.addons.tab_template=n.listing.dataset.tabTemplate?n.listing.dataset.tabTemplate:"",n.addons.tab_onload=n.listing.dataset.tabOnload?n.listing.dataset.tabOnload:"",n.addons.tabs_resturl=n.listing.dataset.tabsRestUrl?n.listing.dataset.tabsRestUrl:"",""!==n.addons.tab_onload){var F=document.querySelector(".alm-tab-nav li [data-tab-url="+n.addons.tab_onload+"]");if(n.addons.tab_template=F?F.dataset.tabTemplate:n.addons.tab_template,n.listing.dataset.tabOnload="",F){var C=document.querySelector(".alm-tab-nav li .active");C&&C.classList.remove("active")}}}else n.addons.tabs=!1;if("true"===n.extensions.restapi?(n.extensions.restapi=!0,n.extensions.restapi_debug=void 0!==n.extensions.restapi_debug&&n.extensions.restapi_debug,n.extensions.restapi=""!==n.extensions.restapi_template_id&&n.extensions.restapi):n.extensions.restapi=!1,"true"===n.addons.preloaded?(n.addons.preloaded_amount=void 0===n.addons.preloaded_amount?n.posts_per_page:n.addons.preloaded_amount,n.localize&&n.localize.total_posts&&parseInt(n.localize.total_posts)<=parseInt(n.addons.preloaded_amount)&&(n.addons.preloaded_total_posts=n.localize.total_posts,n.disable_ajax=!0)):n.addons.preloaded="false",n.addons.seo=void 0!==n.addons.seo&&n.addons.seo,n.addons.seo="true"===n.addons.seo||n.addons.seo,n.addons.seo&&(n.addons.seo_permalink=n.listing.dataset.seoPermalink,n.addons.seo_pageview=n.listing.dataset.seoPageview,n.addons.seo_trailing_slash="false"===n.listing.dataset.seoTrailingSlash?"":"/",n.addons.seo_leading_slash="true"===n.listing.dataset.seoLeadingSlash?"/":""),n.start_page=n.listing.dataset.seoStartPage,n.start_page?(n.addons.seo_scroll=n.listing.dataset.seoScroll,n.addons.seo_scrolltop=n.listing.dataset.seoScrolltop,n.addons.seo_controls=n.listing.dataset.seoControls,n.isPaged=!1,n.start_page>1&&(n.isPaged=!0,n.posts_per_page=n.start_page*n.posts_per_page),n.addons.paging&&(n.posts_per_page=n.orginal_posts_per_page)):n.start_page=1,"true"===n.addons.nextpage?(n.addons.nextpage=!0,n.posts_per_page=1,void 0===n.addons.nextpage_urls&&(n.addons.nextpage_urls="true"),void 0===n.addons.nextpage_scroll&&(n.addons.nextpage_scroll="false:30"),void 0===n.addons.nextpage_pageviews&&(n.addons.nextpage_pageviews="true"),void 0===n.addons.nextpage_post_id&&(n.addons.nextpage=!1,n.addons.nextpage_post_id=null),void 0===n.addons.nextpage_startpage&&(n.addons.nextpage_startpage=1),n.addons.nextpage_startpage>1&&(n.isPaged=!0)):n.addons.nextpage=!1,"true"===n.addons.single_post?(n.addons.single_post=!0,n.addons.single_post_permalink="",n.addons.single_post_title="",n.addons.single_post_slug="",n.addons.single_post_order=void 0===n.addons.single_post_order?"previous":n.addons.single_post_order,n.addons.single_post_taxonomy=void 0===n.addons.single_post_taxonomy?"":n.addons.single_post_taxonomy,n.addons.single_post_excluded_terms=void 0===n.addons.single_post_excluded_terms?"":n.addons.single_post_excluded_terms,n.addons.single_post_progress_bar=void 0===n.addons.single_post_progress_bar?"":n.addons.single_post_progress_bar,n.addons.single_post_target=void 0===n.addons.single_post_target?"":n.addons.single_post_target,n.addons.single_post_title_template=n.listing.dataset.singlePostTitleTemplate,n.addons.single_post_siteTitle=n.listing.dataset.singlePostSiteTitle,n.addons.single_post_siteTagline=n.listing.dataset.singlePostSiteTagline,n.addons.single_post_pageview=n.listing.dataset.singlePostPageview,n.addons.single_post_scroll=n.listing.dataset.singlePostScroll,n.addons.single_post_scroll_speed=n.listing.dataset.singlePostScrollSpeed,n.addons.single_post_scroll_top=n.listing.dataset.singlePostScrolltop,n.addons.single_post_controls=n.listing.dataset.singlePostControls):n.addons.single_post=!1,n.addons.single_post&&void 0===n.addons.single_post_id&&(n.addons.single_post_id="",n.addons.single_post_init_id=""),(void 0===n.pause||n.addons.seo&&n.start_page>1)&&(n.pause=!1),"true"===n.addons.preloaded&&n.addons.seo&&n.start_page>0&&(n.pause=!1),n.addons.filters&&n.addons.filters_startpage>0&&(n.pause=!1),"true"===n.addons.preloaded&&n.addons.paging&&(n.pause=!0),n.repeater=void 0===n.repeater?"default":n.repeater,n.theme_repeater=void 0!==n.theme_repeater&&n.theme_repeater,n.max_pages=void 0===n.max_pages||0===n.max_pages?1e4:n.max_pages,n.scroll_distance=void 0===n.scroll_distance?100:n.scroll_distance,n.scroll_distance_perc=!1,-1==n.scroll_distance.toString().indexOf("%")?n.scroll_distance=parseInt(n.scroll_distance):(n.scroll_distance_perc=!0,n.scroll_distance_orig=parseInt(n.scroll_distance),n.scroll_distance=(0,A.default)(n)),n.scroll_container=void 0===n.scroll_container?"":n.scroll_container,n.scroll_direction=void 0===n.scroll_direction?"vertical":n.scroll_direction,n.transition=void 0===n.transition?"fade":n.transition,n.tcc=void 0===n.tcc?"":n.tcc,n.is_masonry_preloaded=!1,"masonry"===n.transition&&(n.masonry_init=!0,n.msnry?n.msnry.destroy():n.msnry="",n.masonry_selector=n.listing.dataset.masonrySelector,n.masonry_columnwidth=n.listing.dataset.masonryColumnwidth,n.masonry_animation=n.listing.dataset.masonryAnimation,n.masonry_animation=void 0===n.masonry_animation?"standard":n.masonry_animation,n.masonry_horizontalorder=n.listing.dataset.masonryHorizontalorder,n.masonry_horizontalorder=void 0===n.masonry_horizontalorder?"true":n.masonry_horizontalorder,n.transition_container=!1,n.images_loaded=!1,n.is_masonry_preloaded="true"===n.addons.preloaded||n.is_masonry_preloaded),void 0===n.listing.dataset.scroll?n.scroll=!0:"false"===n.listing.dataset.scroll?n.scroll=!1:n.scroll=!0,n.transition_container=void 0===n.transition_container||"true"===n.transition_container,n.button_label=void 0===n.button_label?"Load More":n.button_label,n.button_loading_label=void 0!==n.button_loading_label&&n.button_loading_label,n.button_done_label=void 0!==n.button_done_label&&n.button_done_label,n.addons.paging)n.main.classList.add("loading");else{var D=t.childNodes;if(D){var z=Array.prototype.slice.call(D).filter((function(t){return!!t.classList&&t.classList.contains("alm-btn-wrap")}));n.button=z?z[0].querySelector(".alm-load-more-btn"):container.querySelector(".alm-btn-wrap .alm-load-more-btn")}else n.button=container.querySelector(".alm-btn-wrap .alm-load-more-btn");n.button.disabled=!1,n.button.style.display=""}if(n.integration.woocommerce?(n.resultsText=document.querySelectorAll(".woocommerce-result-count"),n.resultsText.length<1&&(n.resultsText=document.querySelectorAll(".alm-results-text"))):n.resultsText=document.querySelectorAll(".alm-results-text"),n.resultsText?n.resultsText.forEach((function(t){t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true")})):n.resultsText=!1,n.tableofcontents=document.querySelector(".alm-toc"),n.tableofcontents?(n.tableofcontents.setAttribute("aria-live","polite"),n.tableofcontents.setAttribute("aria-atomic","true")):n.tableofcontents=!1,n.AjaxLoadMore.loadPosts=function(){if("function"==typeof almOnChange&&window.almOnChange(n),(0,E.showPlaceholder)(n),!n.disable_ajax)if(n.addons.paging||(n.button.classList.add("loading"),!1!==n.button_loading_label&&(n.button.innerHTML=n.button_loading_label)),n.main.classList.add("alm-loading"),n.loading=!0,"true"!==n.addons.cache||n.addons.cache_logged_in)n.AjaxLoadMore.ajax("standard");else{var t=(0,l.default)(n);t?r.default.get(t).then((function(t){n.AjaxLoadMore.success(t.data,!0)})).catch((function(t){n.AjaxLoadMore.ajax("standard")})):n.AjaxLoadMore.ajax("standard")}},n.AjaxLoadMore.ajax=function(t){var e="alm_get_posts";n.acf_array="",n.extensions.acf&&("relationship"!==n.extensions.acf_field_type&&(e="alm_acf"),n.acf_array={acf:"true",post_id:n.extensions.acf_post_id,field_type:n.extensions.acf_field_type,field_name:n.extensions.acf_field_name,parent_field_name:n.extensions.acf_parent_field_name}),n.term_query_array="",n.extensions.term_query&&(e="alm_get_terms",n.term_query_array={term_query:"true",taxonomy:n.extensions.term_query_taxonomy,hide_empty:n.extensions.term_query_hide_empty,number:n.extensions.term_query_number}),n.nextpage_array="",n.addons.nextpage&&(e="alm_nextpage",n.nextpage_array={nextpage:"true",urls:n.addons.nextpage_urls,scroll:n.addons.nextpage_scroll,pageviews:n.addons.nextpage_pageviews,post_id:n.addons.nextpage_post_id,startpage:n.addons.nextpage_startpage}),n.single_post_array="",n.addons.single_post&&(n.single_post_array={single_post:"true",id:n.addons.single_post_id,slug:n.addons.single_post_slug}),n.comments_array="","true"===n.addons.comments&&(e="alm_comments",n.posts_per_page=n.addons.comments_per_page,n.comments_array={comments:"true",post_id:n.addons.comments_post_id,per_page:n.addons.comments_per_page,type:n.addons.comments_type,style:n.addons.comments_style,template:n.addons.comments_template,callback:n.addons.comments_callback}),n.users_array="",n.addons.users&&(e="alm_users",n.users_array={users:"true",role:n.listing.dataset.usersRole,include:n.listing.dataset.usersInclude,exclude:n.listing.dataset.usersExclude,per_page:n.posts_per_page,order:n.listing.dataset.usersOrder,orderby:n.listing.dataset.usersOrderby}),n.cta_array="","true"===n.addons.cta&&(n.cta_array={cta:"true",cta_position:n.addons.cta_position,cta_repeater:n.addons.cta_repeater,cta_theme_repeater:n.addons.cta_theme_repeater}),n.extensions.restapi?n.AjaxLoadMore.restapi(n,e,t):n.addons.tabs?n.AjaxLoadMore.tabs(n):n.AjaxLoadMore.adminajax(n,e,t)},n.AjaxLoadMore.adminajax=function(t,e,n){1==t.page||t.addons.paging||t.button.classList.add("loading"),r.default.interceptors.request.use((function(t){return t.paramsSerializer=function(t){return k.stringify(t,{arrayFormat:"brackets",encode:!1})},t}));var o=alm_localize.ajaxurl,a=d.almGetAjaxParams(t,e,n);t.addons.single_post&&t.addons.single_post_target&&(o=t.addons.single_post_permalink+"?id="+t.addons.single_post_id+"&alm_page="+(parseInt(t.page)+1),a=""),t.addons.woocommerce&&(o=(0,v.default)(t),a=""),t.addons.elementor&&t.addons.elementor_type&&"posts"===t.addons.elementor_type&&(o=(0,v.default)(t),a=""),r.default.get(o,{params:a}).then((function(e){var r="";t.addons.single_post&&t.addons.single_post_target?(r=(0,L.singlePostHTML)(e,t.addons.single_post_target),(0,P.createCacheFile)(t,r.html,"single")):t.addons.woocommerce?(r=(0,M.wooGetContent)(e,t),(0,P.createCacheFile)(t,r.html,"woocommerce")):t.addons.elementor?(r=(0,O.elementorGetContent)(e,t),(0,P.createCacheFile)(t,r.html,"elementor")):r=e.data,"standard"===n?t.AjaxLoadMore.success(r,!1):"totalpages"===n&&t.addons.paging&&t.addons.nextpage?"function"==typeof almBuildPagination&&window.almBuildPagination(r.totalpages,t):"totalposts"===n&&t.addons.paging&&"function"==typeof almBuildPagination&&window.almBuildPagination(r.totalposts,t)})).catch((function(e){t.AjaxLoadMore.error(e,"adminajax")}))},n.AjaxLoadMore.tabs=function(t){var e=t.addons.tabs_resturl+"ajaxloadmore/tab",n={post_id:t.post_id,template:t.addons.tab_template};r.default.interceptors.request.use((function(t){return t.paramsSerializer=function(t){return k.stringify(t,{arrayFormat:"brackets",encode:!1})},t})),r.default.get(e,{params:n}).then((function(e){var n={html:e.data.html,meta:{postcount:1,totalposts:1}};t.AjaxLoadMore.success(n,!1),"function"==typeof almTabLoaded&&window.almTabLoaded(t)})).catch((function(e){t.AjaxLoadMore.error(e,"restapi")}))},n.AjaxLoadMore.restapi=function(t,e,n){var o=wp.template(t.extensions.restapi_template_id),a=t.extensions.restapi_base_url+"/"+t.extensions.restapi_namespace+"/"+t.extensions.restapi_endpoint,i=d.almGetRestParams(t);r.default.interceptors.request.use((function(t){return t.paramsSerializer=function(t){return k.stringify(t,{arrayFormat:"brackets",encode:!1})},t})),r.default.get(a,{params:i}).then((function(e){for(var n=e.data,r="",a=n.html,i=n.meta,s=i.postcount,l=i.totalposts,c=0;c<a.length;c++){var u=a[c];"true"===t.restapi_debug&&console.log(u),r+=o(u)}var d={html:r,meta:{postcount:s,totalposts:l}};t.AjaxLoadMore.success(d,!1)})).catch((function(e){t.AjaxLoadMore.error(e,"restapi")}))},n.addons.paging&&(n.addons.nextpage?n.AjaxLoadMore.ajax("totalpages"):n.AjaxLoadMore.ajax("totalposts")),n.AjaxLoadMore.success=function(e,r){var o=this;n.addons.single_post&&n.AjaxLoadMore.getSinglePost();var a=!1,l="table"===n.container_type?document.createElement("tbody"):document.createElement("div");n.el=l,l.style.opacity=0,l.style.height=0,l.style.outline="none";var d,f,v,w=n.listing.querySelector(".alm-paging-content");if(r?d=e:(d=e.html,f=e.meta,n.posts=n.addons.paging?f.postcount:n.posts+f.postcount,v=f.postcount,n.totalposts=f.totalposts,n.totalposts="true"===n.addons.preloaded?n.totalposts-n.addons.preloaded_amount:n.totalposts,n.debug=f.debug?f.debug:""),n.html=d,v=r?(0,c.default)(d).length:v,n.init&&(f&&(n.main.dataset.totalPosts=f.totalposts?f.totalposts:0),n.addons.paging&&v>0&&n.AjaxLoadMore.pagingInit(d,"alm-reveal"),0===v&&(n.addons.paging&&"function"==typeof almPagingEmpty&&window.almPagingEmpty(n),"function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&setTimeout((function(){(0,x.default)(n.content,n.no_results)}),n.speed+10)),n.isPaged&&(n.posts_per_page=n.addons.users?n.listing.dataset.usersPerPage:n.listing.dataset.postsPerPage,n.posts_per_page=n.addons.nextpage?1:n.posts_per_page,n.page=n.start_page?n.start_page-1:n.page,n.addons.filters&&n.addons.filters_startpage>0&&(n.page=n.addons.filters_startpage-1,n.posts_per_page=n.listing.dataset.postsPerPage))),(0,S.default)(n),N(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,g.default)(n);case 2:case"end":return t.stop()}}),t,o)})))(),v>0){if(n.addons.paging)n.init?setTimeout((function(){n.main.classList.remove("alm-loading"),n.AjaxLoadMore.triggerAddons(n)}),n.speed):w&&((0,b.default)(w,n.speed),w.style.outline="none",n.main.classList.remove("alm-loading"),setTimeout((function(){w.style.opacity=0,w.innerHTML=n.html,R(w,(function(){n.AjaxLoadMore.triggerAddons(n),(0,y.default)(w,n.speed),setTimeout((function(){w.style.opacity="",h.default.init(w)}),parseInt(n.speed)+10),"function"==typeof almOnPagingComplete&&window.almOnPagingComplete(n)}))}),parseInt(n.speed)+25));else{if(n.addons.single_post)l.setAttribute("class","alm-reveal alm-single-post post-"+n.addons.single_post_id+n.tcc),l.dataset.url=n.addons.single_post_permalink,n.addons.single_post_target?l.dataset.page=parseInt(n.page)+1:l.dataset.page=n.page,l.dataset.id=n.addons.single_post_id,l.dataset.title=n.addons.single_post_title,l.innerHTML=n.html;else if(n.transition_container){var A=void 0,E=window.location.search,L=n.addons.seo?" alm-seo":"",P=n.addons.filters?" alm-filters":"",F=n.is_preloaded?" alm-preloaded":"";if(n.init&&(n.start_page>1||n.addons.filters_startpage>0)){var C=[],k=[],D=parseInt(n.posts_per_page),z=Math.ceil(v/D);a=!0,"true"===n.addons.cta&&(D+=1,z=Math.ceil(v/D),v=z+v);for(var B=(0,u.default)((0,c.default)(n.html,"text/html")),W=0;W<v;W+=D)C.push(B.slice(W,D+W));for(var H=0;H<C.length;H++){var U="true"===n.addons.preloaded?1:0,V=document.createElement("div");H>0||"true"===n.addons.preloaded?(A=H+1+U,n.addons.seo&&(V=(0,I.createSEOAttributes)(n,V,E,L,A)),n.addons.filters&&(V.setAttribute("class","alm-reveal"+P+n.tcc),V.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,E,A),V.dataset.page=A)):(n.addons.seo&&(V=(0,I.createSEOAttributes)(n,V,E,L,1)),n.addons.filters&&(V.setAttribute("class","alm-reveal"+P+F+n.tcc),V.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,E,0),V.dataset.page="1")),(0,i.default)(V,C[H]),(0,j.default)(V,n.ua),k.push(V)}n.listing.style.opacity=0,n.listing.style.height=0,(0,i.default)(n.listing,k),l=n.listing,n.el=l}else{if(n.addons.seo&&n.page>0||"true"===n.addons.preloaded){var G="true"===n.addons.preloaded?1:0;A=n.page+1+G,n.addons.seo?l=(0,I.createSEOAttributes)(n,l,E,L,A):n.addons.filters?(l.setAttribute("class","alm-reveal"+P+n.tcc),l.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,E,A),l.dataset.page=A):l.setAttribute("class","alm-reveal"+n.tcc)}else n.addons.filters?(l.setAttribute("class","alm-reveal"+P+n.tcc),l.dataset.url=n.canonical_url+(0,T.buildFilterURL)(n,E,parseInt(n.page)+1),l.dataset.page=parseInt(n.page)+1):n.addons.seo?l=(0,I.createSEOAttributes)(n,l,E,L,1):l.setAttribute("class","alm-reveal"+n.tcc);l.innerHTML=n.html}}else n.el=n.html,l="table"===n.container_type?(0,s.default)(n.html):(0,u.default)((0,c.default)(n.html,"text/html"));if(n.addons.woocommerce)return N(regeneratorRuntime.mark((function t(){var r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,M.woocommerce)(l,n,e.pageTitle);case 2:r=n.page+2,n.button.dataset.page=r,o=n.addons.woocommerce_settings.paged_urls[r-1],n.button.dataset.url=o||"",n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),r>parseInt(n.addons.woocommerce_settings.pages)&&n.AjaxLoadMore.triggerDone();case 9:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t),console.log("There was an error loading woocommerce products")})),void(n.init=!1);if(n.addons.elementor)return N(regeneratorRuntime.mark((function t(){var r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,O.elementor)(l,n,e.pageTitle);case 2:r=n.page+1,n.button.dataset.page=r,o=n.addons.elementor_next_page_url,n.button.dataset.url=o||"",n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),o||n.AjaxLoadMore.triggerDone();case 9:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t),console.log("There was an error loading Elementor Post Widget items")})),void(n.init=!1);("masonry"!==n.transition||n.init&&!n.is_masonry_preloaded)&&(a||(n.transition_container?n.listing.appendChild(l):"true"===n.images_loaded?R(l,(function(){(0,i.default)(n.listing,l),(0,j.default)(n.listing,n.ua)})):((0,i.default)(n.listing,l),(0,j.default)(n.listing,n.ua)))),"masonry"===n.transition?(n.el=n.listing,N(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,_.default)(n,n.init,q);case 2:n.masonry_init=!1,n.AjaxLoadMore.triggerWindowResize(),n.AjaxLoadMore.transitionEnd(),"function"==typeof almComplete&&window.almComplete(n);case 6:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log("There was an error with ALM Masonry")}))):"none"===n.transition?"true"===n.images_loaded?R(l,(function(){(0,y.default)(l,0),n.AjaxLoadMore.transitionEnd()})):((0,y.default)(l,0),n.AjaxLoadMore.transitionEnd()):"true"===n.images_loaded?R(l,(function(){n.transition_container&&(0,y.default)(l,n.speed),n.AjaxLoadMore.transitionEnd()})):(n.transition_container&&(0,y.default)(l,n.speed),n.AjaxLoadMore.transitionEnd()),n.addons.tabs&&"function"==typeof almTabsSetHeight&&R(l,(function(){(0,y.default)(n.listing,n.speed),setTimeout((function(){window.almTabsSetHeight(n)}),n.speed)}))}R(l,(function(){n.AjaxLoadMore.nested(l),h.default.init(n.el),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),q&&n.addons.filters&&"function"==typeof almFiltersAddonComplete&&window.almFiltersAddonComplete(t),q=!1,n.addons.tabs&&"function"==typeof almTabsComplete&&window.almTabsComplete(),n.addons.cache?n.addons.nextpage&&n.localize?parseInt(n.localize.page)===parseInt(n.localize.total_posts)&&n.AjaxLoadMore.triggerDone():v<parseInt(n.posts_per_page)&&n.AjaxLoadMore.triggerDone():n.posts>=n.totalposts&&!n.addons.single_post&&n.AjaxLoadMore.triggerDone()})),"function"==typeof almFiltersOnload&&n.init&&window.almFiltersOnload(n)}else n.AjaxLoadMore.noresults();if(void 0!==n.destroy_after&&""!==n.destroy_after){var Y=n.page+1;(Y="true"===n.addons.preloaded?Y++:Y)==n.destroy_after&&n.AjaxLoadMore.destroyed()}(0,p.tableOfContents)(n,n.init),"masonry"!==n.transition&&(0,m.default)(n,l,v,q),n.main.classList.contains("alm-is-filtering")&&n.main.classList.remove("alm-is-filtering"),n.init=!1},n.AjaxLoadMore.noresults=function(){n.addons.paging||(setTimeout((function(){n.button.classList.remove("loading"),n.button.classList.add("done")}),n.speed),n.AjaxLoadMore.resetBtnText()),"function"==typeof almComplete&&"masonry"!==n.transition&&window.almComplete(n),q&&n.addons.filters&&("function"==typeof almFiltersAddonComplete&&almFiltersAddonComplete(t),q=!1),n.addons.tabs&&"function"==typeof almTabsComplete&&almTabsComplete(),"masonry"===n.transition&&(n.content.style.height="auto"),n.AjaxLoadMore.triggerDone()},n.AjaxLoadMore.pagingPreloadedInit=function(t){t=null==t?"":t,n.AjaxLoadMore.pagingInit(t,"alm-reveal"),""===t&&("function"==typeof almPagingEmpty&&window.almPagingEmpty(n),"function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&(0,x.default)(n.content,n.no_results))},n.AjaxLoadMore.pagingNextpageInit=function(t){t=null==t?"":t,n.AjaxLoadMore.pagingInit(t,"alm-reveal alm-nextpage"),"function"==typeof almSetNextPageVars&&window.almSetNextPageVars(n)},n.AjaxLoadMore.pagingInit=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"alm-reveal";t=null==t?"":t;var r=document.createElement("div");r.setAttribute("class",e);var o=document.createElement("div");o.setAttribute("class","alm-paging-content"+n.tcc),o.innerHTML=t,r.appendChild(o);var a=document.createElement("div");a.setAttribute("class","alm-paging-loading"),r.appendChild(a),n.listing.appendChild(r);var i=window.getComputedStyle(n.listing),s=parseInt(i.getPropertyValue("padding-top").replace("px","")),l=parseInt(i.getPropertyValue("padding-bottom").replace("px","")),c=r.offsetHeight;n.listing.style.height=c+s+l+"px",h.default.init(r),n.AjaxLoadMore.resetBtnText(),setTimeout((function(){"function"==typeof almFadePageControls&&window.almFadePageControls(n.btnWrap),"function"==typeof almOnWindowResize&&window.almOnWindowResize(n),n.main.classList.remove("loading")}),n.speed)},n.AjaxLoadMore.nested=function(t){if(!t||!n.transition_container)return!1;var e=t.querySelectorAll(".ajax-load-more-wrap");e&&e.forEach((function(t){window.almInit(t)}))},n.addons.single_post_id&&(n.fetchingPreviousPost=!1,n.addons.single_post_init=!0),n.AjaxLoadMore.getSinglePost=function(){if(n.fetchingPreviousPost)return!1;n.fetchingPreviousPost=!0;var t=alm_localize.ajaxurl,e={id:n.addons.single_post_id,initial_id:n.addons.single_post_init_id,order:n.addons.single_post_order,taxonomy:n.addons.single_post_taxonomy,excluded_terms:n.addons.single_post_excluded_terms,post_type:n.post_type,init:n.addons.single_post_init,action:"alm_get_single"};r.default.get(t,{params:e}).then((function(t){var e=t.data;e.has_previous_post?(n.listing.dataset.singlePostId=e.prev_id,n.addons.single_post_id=e.prev_id,n.addons.single_post_permalink=e.prev_permalink,n.addons.single_post_title=e.prev_title,n.addons.single_post_slug=e.prev_slug):e.has_previous_post||n.AjaxLoadMore.triggerDone(),"function"==typeof window.almSetSinglePost&&window.almSetSinglePost(n,e.current_id,e.permalink,e.title),n.fetchingPreviousPost=!1,n.addons.single_post_init=!1})).catch((function(t){n.AjaxLoadMore.error(t,"getSinglePost"),n.fetchingPreviousPost=!1}))},n.AjaxLoadMore.triggerAddons=function(t){"function"==typeof almSetNextPage&&window.almSetNextPage(t),"function"==typeof almSEO&&window.almSEO(t,!1),"function"==typeof almWooCommerce&&window.almWooCommerce(t),"function"==typeof almElementor&&window.almElementor(t)},n.AjaxLoadMore.triggerDone=function(){n.loading=!1,n.finished=!0,(0,E.hidePlaceholder)(n),n.addons.paging||(!1!==n.button_done_label&&setTimeout((function(){n.button.innerHTML=n.button_done_label}),75),n.button.classList.add("done"),n.button.disabled=!0),"function"==typeof almDone&&setTimeout((function(){window.almDone(n)}),n.speed+10)},n.AjaxLoadMore.resetBtnText=function(){!1===n.button_loading_label||n.addons.paging||(n.button.innerHTML=n.button_label)},n.AjaxLoadMore.error=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;n.loading=!1,n.addons.paging||(n.button.classList.remove("loading"),n.AjaxLoadMore.resetBtnText()),console.log("Error: ",t),t.response?console.log("Error Msg: ",t.message):t.request?console.log(t.request):console.log("Error Msg: ",t.message),e&&console.log("ALM Error started in "+e),t.config&&console.log("ALM Error Debug: ",t.config)},n.AjaxLoadMore.click=function(t){var e=t.target||t.currentTarget;"true"===n.pause&&(n.pause=!1,n.pause_override=!1,n.AjaxLoadMore.loadPosts()),n.loading||n.finished||e.classList.contains("done")||(n.loading=!0,n.page++,n.AjaxLoadMore.loadPosts()),e.blur()},n.addons.paging||n.fetchingPreviousPost||(n.button.onclick=n.AjaxLoadMore.click),n.addons.paging||n.addons.tabs||n.scroll_distance_perc||"horizontal"===n.scroll_direction){var B=void 0;n.window.onresize=function(){clearTimeout(B),B=setTimeout((function(t){n.addons.tabs&&"function"==typeof almOnTabsWindowResize&&window.almOnTabsWindowResize(n),n.addons.paging&&"function"==typeof almOnWindowResize&&window.almOnWindowResize(n),n.scroll_distance_perc&&(n.scroll_distance=(0,A.default)(n)),"horizontal"===n.scroll_direction&&n.AjaxLoadMore.horizontal()}),n.speed)}}n.AjaxLoadMore.isVisible=function(){return n.visible=n.main.clientWidth>0&&n.main.clientHeight>0,n.visible},n.AjaxLoadMore.triggerWindowResize=function(){if("function"==typeof Event)window.dispatchEvent(new Event("resize"));else{var t=window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}},n.AjaxLoadMore.scroll=function(){n.timer&&clearTimeout(n.timer),n.timer=setTimeout((function(){if(n.AjaxLoadMore.isVisible()&&!n.fetchingPreviousPost){var t=n.trigger.getBoundingClientRect(),e=Math.round(t.top-n.window.innerHeight)+n.scroll_distance<=0;if(n.window!==window){var r=n.main.offsetHeight,o=n.main.offsetWidth;"horizontal"===n.scroll_direction?(n.AjaxLoadMore.horizontal(),e=o<=Math.round(n.window.scrollLeft+n.window.offsetWidth-n.scroll_distance)):e=r<=Math.round(n.window.scrollTop+n.window.offsetHeight-n.scroll_distance)}(!n.loading&&!n.finished&&e&&n.page<n.max_pages-1&&n.proceed&&"true"===n.pause&&"true"===n.pause_override||!n.loading&&!n.finished&&e&&n.page<n.max_pages-1&&n.proceed&&"true"!==n.pause)&&n.button.click()}}),25)},n.AjaxLoadMore.scrollSetup=function(){n.scroll&&!n.addons.paging&&(""!==n.scroll_container&&(n.window=document.querySelector(n.scroll_container)?document.querySelector(n.scroll_container):n.window,setTimeout((function(){n.AjaxLoadMore.horizontal()}),500)),n.window.addEventListener("scroll",n.AjaxLoadMore.scroll),n.window.addEventListener("touchstart",n.AjaxLoadMore.scroll),n.window.addEventListener("wheel",(function(t){Math.sign(t.deltaY)>0&&n.AjaxLoadMore.scroll()})),n.window.addEventListener("keyup",(function(t){switch(t.keyCode?t.keyCode:t.which){case 35:case 34:n.AjaxLoadMore.scroll()}})))},n.AjaxLoadMore.horizontal=function(){"horizontal"===n.scroll_direction&&(n.main.style.width=n.listing.offsetWidth+"px")},n.AjaxLoadMore.destroyed=function(){n.disable_ajax=!0,n.addons.paging||(n.button.style.display="none",n.AjaxLoadMore.triggerDone(),"function"==typeof almDestroyed&&window.almDestroyed(n))},n.AjaxLoadMore.transitionEnd=function(){setTimeout((function(){n.AjaxLoadMore.resetBtnText(),n.main.classList.remove("alm-loading"),n.button.classList.remove("loading"),n.AjaxLoadMore.triggerAddons(n),n.addons.paging||setTimeout((function(){n.loading=!1}),3*n.speed)}),50),(0,E.hidePlaceholder)(n)},n.AjaxLoadMore.setLocalizedVar=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";n.localize&&""!==t&&""!==e&&(n.localize[t]=e.toString(),window[n.master_id+"_vars"][t]=e.toString())},n.AjaxLoadMore.init=function(){if("true"===n.addons.preloaded&&1==n.destroy_after&&n.AjaxLoadMore.destroyed(),n.addons.paging||n.addons.single_post||(n.disable_ajax?(n.finished=!0,n.button.classList.add("done")):"true"===n.pause?(n.button.innerHTML=n.button_label,n.loading=!1):n.AjaxLoadMore.loadPosts()),n.addons.single_post&&(n.AjaxLoadMore.getSinglePost(),n.loading=!1,n.addons.single_post_query&&""===n.addons.single_post_order&&n.AjaxLoadMore.triggerDone(),(0,p.tableOfContents)(n,!0,!0)),"true"===n.addons.preloaded&&n.addons.seo&&!n.addons.paging&&setTimeout((function(){"function"==typeof almSEO&&n.start_page<1&&window.almSEO(n,!0)}),n.speed),"true"!==n.addons.preloaded||n.addons.paging||setTimeout((function(){n.addons.preloaded_total_posts<=parseInt(n.addons.preloaded_amount)&&n.AjaxLoadMore.triggerDone(),0==n.addons.preloaded_total_posts&&("function"==typeof almEmpty&&window.almEmpty(n),n.no_results&&(0,x.default)(n.content,n.no_results))}),n.speed),"true"===n.addons.preloaded&&(n.resultsText&&f.almInitResultsText(n,"preloaded"),(0,p.tableOfContents)(n,n.init,!0)),n.addons.nextpage){if(n.listing.querySelector(".alm-nextpage")&&!n.addons.paging){var t=n.listing.querySelectorAll(".alm-nextpage");if(t){var e=t[0],r=n.localize.total_posts?parseInt(n.localize.total_posts):e.dataset.totalPosts;t.length!==r&&parseInt(e.dataset.id)!==r||n.AjaxLoadMore.triggerDone()}}n.resultsText&&f.almInitResultsText(n,"nextpage"),(0,p.tableOfContents)(n,n.init,!0)}n.addons.woocommerce&&((0,M.wooInit)(n),n.addons.woocommerce_settings.paged>=parseInt(n.addons.woocommerce_settings.pages)&&n.AjaxLoadMore.triggerDone()),n.addons.elementor&&n.addons.elementor_type&&"posts"===n.addons.elementor_type&&((0,O.elementorInit)(n),""===n.addons.elementor_next_page_url&&n.AjaxLoadMore.triggerDone()),n.window.addEventListener("load",(function(){n.is_masonry_preloaded&&N(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,_.default)(n,!0,!1);case 2:n.masonry_init=!1;case 3:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log("There was an error with ALM Masonry")})),"function"==typeof almOnLoad&&window.almOnLoad(n)}))},window.almUpdateCurrentPage=function(t,e,n){n.page=t,n.page=n.addons.nextpage&&!n.addons.paging?n.page-1:n.page;var r="",o="";n.addons.paging_init&&"true"===n.addons.preloaded?((o=n.listing.querySelector(".alm-reveal")||n.listing.querySelector(".alm-nextpage"))&&(r=o.innerHTML,o.parentNode.removeChild(o),n.addons.preloaded_amount=0,n.AjaxLoadMore.pagingPreloadedInit(r)),n.addons.paging_init=!1,n.init=!1):n.addons.paging_init&&n.addons.nextpage?((o=n.listing.querySelector(".alm-reveal")||n.listing.querySelector(".alm-nextpage"))&&(r=o.innerHTML,o.parentNode.removeChild(o),n.AjaxLoadMore.pagingNextpageInit(r)),n.addons.paging_init=!1,n.init=!1):n.AjaxLoadMore.loadPosts()},window.almGetParentContainer=function(){return n.listing},window.almGetObj=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""!==t?n[t]:n},window.almTriggerClick=function(){n.button.click()},setTimeout((function(){n.proceed=!0,n.AjaxLoadMore.scrollSetup()}),500),n.AjaxLoadMore.init()};window.almInit=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;new t(e,n)};var e=document.querySelectorAll(".ajax-load-more-wrap");e.length&&[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(e)).forEach((function(e,n){new t(e,n)}))}();e.filter=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fade",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"200",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!t||!e||!n)return!1;q=!0,(0,w.default)(t,e,n,"filter")};e.reset=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={};q=!0,t&&t.target&&(e={target:target}),t&&"woocommerce"===t.type?N(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=document.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'),t.next=3,(0,M.wooReset)();case 3:(r=t.sent)&&(n.dataset.wooSettings=r,(0,w.default)("fade","100",e,"filter"));case 5:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log("There was an resetting the Ajax Load More instance.")})):(0,w.default)("fade","200",e,"filter")};e.tab=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e="fade",n=alm_localize.speed?parseInt(alm_localize.speed):200;if(!t)return!1;q=!0,(0,w.default)(e,n,t,"tab")};e.tracking=function(t){"function"==typeof gtag&&(gtag("event","page_view",{page_path:t}),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (gtag)")),"function"==typeof ga&&(ga("send","pageview",t),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (ga)")),"function"==typeof __gaTracker&&(__gaTracker("send","pageview",t),alm_localize.ga_debug&&console.log("Pageview sent to Google Analytics (__gaTracker)")),"function"==typeof almAnalytics&&window.almAnalytics(t)};e.start=function(t){if(!t)return!1;window.almInit(t)};e.almScroll=function(t){if(!t)return!1;window.scrollTo({top:t,behavior:"smooth"})};e.getOffset=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return!1;var e=t.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop;return{top:e.top+r,left:e.left+n}};e.render=function(t){if(!t)return!1}},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";var r=n(13),o=n(145),a=n(147),i=n(148),s=n(149),l=n(99);t.exports=function(t){return new Promise((function(e,c){var u=t.data,d=t.headers;r.isFormData(u)&&delete d["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",g=t.auth.password||"";d.Authorization="Basic "+btoa(p+":"+g)}if(f.open(t.method.toUpperCase(),a(t.url,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?i(f.getAllResponseHeaders()):null,r={data:t.responseType&&"text"!==t.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:n,config:t,request:f};o(e,c,r),f=null}},f.onerror=function(){c(l("Network Error",t,null,f)),f=null},f.ontimeout=function(){c(l("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var h=n(150),m=(t.withCredentials||s(t.url))&&t.xsrfCookieName?h.read(t.xsrfCookieName):void 0;m&&(d[t.xsrfHeaderName]=m)}if("setRequestHeader"in f&&r.forEach(d,(function(t,e){void 0===u&&"content-type"===e.toLowerCase()?delete d[e]:f.setRequestHeader(e,t)})),t.withCredentials&&(f.withCredentials=!0),t.responseType)try{f.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){f&&(f.abort(),c(t),f=null)})),void 0===u&&(u=null),f.send(u)}))}},function(t,e,n){"use strict";var r=n(146);t.exports=function(t,e,n,o,a){var i=new Error(t);return r(i,e,n,o,a)}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(161),a=(r=o)&&r.__esModule?r:{default:r};e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fade";if(!t||!e)return!1;for(var r=0;r<e.length;r++){var o=e[r];(0,a.default)(t,o,n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!t)return!1;var e=["#text","#comment"],n=t.filter((function(t){return-1===e.indexOf(t.nodeName.toLowerCase())}));return n}},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||!t.localize||"true"===t.nested)return!1;var n=0,r=0,a=0,i=0,s="true"===t.addons.preloaded,l=!!t.addons.paging,c=t.orginal_posts_per_page;switch(e){case"nextpage":a=n=parseInt(t.localize.page),r=parseInt(t.localize.total_posts),i=parseInt(r),o(t.resultsText,n,r,a,i);break;case"woocommerce":break;default:n=parseInt(t.page)+1,r=Math.ceil(t.localize.total_posts/c),a=parseInt(t.localize.post_count),i=parseInt(t.localize.total_posts),s&&(n=l?t.page+1:n+1),o(t.resultsText,n,r,a,i)}}Object.defineProperty(e,"__esModule",{value:!0}),e.almResultsText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||"true"===t.nested)return!1;var n="nextpage"===e||"woocommerce"===e?e:"standard";r(t,n)},e.almGetResultsText=r,e.almInitResultsText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"standard";if(!t.resultsText||!t.localize||"true"===t.nested)return!1;var n=0,r=Math.ceil(t.localize.total_posts/t.orginal_posts_per_page),a=parseInt(t.localize.post_count),i=parseInt(t.localize.total_posts);switch(e){case"nextpage":n=t.addons.nextpage_startpage,a=n,r=i,o(t.resultsText,n,i,a,i);break;case"preloaded":n=t.addons.paging&&t.addons.seo?parseInt(t.start_page)+1:parseInt(t.page)+1,o(t.resultsText,n,r,a,i);break;case"woocommerce":break;default:console.log("No results to set.")}};var o=function(t,e,n,r,o){t.forEach((function(t){var a=(n=parseInt(n))>0?alm_localize.results_text:alm_localize.no_results_text;n>0?(a=(a=(a=(a=(a=(a=a.replace("{num}",'<span class="alm-results-num">'+e+"</span>")).replace("{page}",'<span class="alm-results-page">'+e+"</span>")).replace("{total}",'<span class="alm-results-total">'+n+"</span>")).replace("{pages}",'<span class="alm-results-pages">'+n+"</span>")).replace("{post_count}",'<span class="alm-results-post_count">'+r+"</span>")).replace("{total_posts}",'<span class="alm-results-total_posts">'+o+"</span>"),t.innerHTML=a):t.innerHTML=a}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tableOfContents=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.localize&&t.localize.post_count?parseInt(t.localize.post_count):0;if(0==r&&!t.addons.single_post)return!1;if(t&&t.tableofcontents&&t.transition_container&&"masonry"!==t.transition){var o=t.tableofcontents.dataset.offset?parseInt(t.tableofcontents.dataset.offset):30,a=t.start_page?parseInt(t.start_page):0,i=t.addons.filters_startpage?parseInt(t.addons.filters_startpage):0,l=t.addons.nextpage_startpage?parseInt(t.addons.nextpage_startpage):0,c=parseInt(t.page),u="true"===t.addons.preloaded;if(t.addons.paging||t.addons.nextpage)return!1;e?setTimeout((function(){if(t.addons.seo&&a>1||t.addons.filters&&i>1||t.addons.nextpage&&l>1){if(t.addons.seo&&a>1)for(var e=0;e<a;e++)s(t,e,o);if(t.addons.filters&&i>1)for(var r=0;r<i;r++)s(t,r,o);if(t.addons.nextpage&&l>1)for(var d=0;d<l;d++)s(t,d,o)}else!n&&u&&(c+=1),s(t,c,o)}),100):(u&&(t.addons.seo&&a>0||t.addons.filters&&i>0?c=c:c+=1),s(t,c,o))}},e.clearTOC=function(){var t=document.querySelector(".alm-toc");t&&(t.innerHTML="")};var r,o=n(96),a=n(49),i=(r=a)&&r.__esModule?r:{default:r};function s(t,e,n){if(!t.tableofcontents)return!1;var r=document.createElement("button");r.type="button",e=parseInt(e)+1,r.innerHTML=function(t,e){var n=e;if(t.addons.single_post){var r=e-1,o=void 0;if(t.addons.single_post_target){t.init?r=r:r+=1;var a=document.querySelectorAll(".alm-reveal.alm-single-post");a&&(o=a[r])}else o=document.querySelector(".alm-reveal.alm-single-post[data-page="+(e-1)+"]");n=o?o.dataset.title:n}var i="almTOCLabel_"+t.id;"function"==typeof window[i]&&(n=window[i](e,n));return n}(t,e),r.dataset.page=t.addons.single_post_target&&t.init?e-1:e,t.tableofcontents.appendChild(r),r.addEventListener("click",(function(e){var r=this.dataset.page,a=document.querySelector(".alm-reveal:nth-child("+r+")")||document.querySelector(".alm-nextpage:nth-child("+r+")");if(t.addons.single_post_target&&(a=document.querySelector('.alm-reveal.alm-single-post[data-page="'+r+'"]')),!a)return!1;var s="function"==typeof o.getOffset?(0,o.getOffset)(a).top:a.offsetTop;(0,o.almScroll)(s-n),setTimeout((function(){(0,i.default)(t,a,r,!1)}),1e3)}))}},function(t,e,n){"use strict";function r(t,e,n,r,o){return e.classList.add(r),e.dataset.page=o,"default"===t.addons.seo_permalink?e.dataset.url=o>1?t.canonical_url+n+"&paged="+o:t.canonical_url+n:e.dataset.url=o>1?t.canonical_url+t.addons.seo_leading_slash+"page/"+o+t.addons.seo_trailing_slash+n:t.canonical_url+n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.createMasonrySEOPage=function(t,e){if(!t.addons.seo)return e;var n=window.location.search,o=t.page+1;return o="true"===t.addons.preloaded?o+1:o,e=r(t,e,n,"alm-seo",o)},e.createMasonrySEOPages=function(t,e){if(!t.addons.seo)return e;var n=1,o=t.page,a=window.location.search;if(t.start_page>1){for(var i=parseInt(t.posts_per_page),s=[],l=0;l<e.length;l+=i)s.push(e.slice(l,i+l));for(var c=0;c<s.length;c++){var u=c>0?c*i:0;n=c+1,e[u]&&(e[u]=r(t,e[u],a,"alm-seo",n))}}else n=o,e[0]=r(t,e[0],a,"alm-seo",n);return e},e.createSEOAttributes=function(t,e,n,r,o){e.setAttribute("class","alm-reveal"+r+t.tcc),e.dataset.page=o,"default"===t.addons.seo_permalink?e.dataset.url=o>1?t.canonical_url+n+"&paged="+o:t.canonical_url+n:e.dataset.url=o>1?t.canonical_url+t.addons.seo_leading_slash+"page/"+o+t.addons.seo_trailing_slash+n:t.canonical_url+n;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(179)),o=a(n(49));function a(t){return t&&t.__esModule?t:{default:t}}function i(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}e.default=function(t,e,n,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window.location,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"";return new Promise((function(c){var u=e.length,d=0,f=1;!function p(){f<=u?i(regeneratorRuntime.mark((function o(){return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return e[d].style.opacity=0,1==f&&(e[d].classList.add(l),e[d].dataset.url=s,e[d].dataset.page=n.page+1,e[d].dataset.pageTitle=a),o.next=4,(0,r.default)(t,e[d],n.ua);case 4:f++,d++,p();case 7:case"end":return o.stop()}}),o,this)})))().catch((function(t){console.log("There was an error loading the items")})):(setTimeout((function(){e.map((function(t){t.style.opacity=1})),e[0]&&(0,o.default)(n,e[0],null,!1)}),50),c(!0))}()}))}},function(t,e,n){t.exports=!n(8)&&!n(2)((function(){return 7!=Object.defineProperty(n(70)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(1),o=n(7),a=n(31),i=n(71),s=n(9).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=a?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:i.f(t)})}},function(t,e,n){var r=n(14),o=n(16),a=n(52)(!1),i=n(72)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),l=0,c=[];for(n in s)n!=i&&r(s,n)&&c.push(n);for(;e.length>l;)r(s,n=e[l++])&&(~a(c,n)||c.push(n));return c}},function(t,e,n){var r=n(9),o=n(3),a=n(32);t.exports=n(8)?Object.defineProperties:function(t,e){o(t);for(var n,i=a(e),s=i.length,l=0;s>l;)r.f(t,n=i[l++],e[n]);return t}},function(t,e,n){var r=n(16),o=n(35).f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return i&&"[object Window]"==a.call(t)?function(t){try{return o(t)}catch(t){return i.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(8),o=n(32),a=n(53),i=n(46),s=n(10),l=n(45),c=Object.assign;t.exports=!c||n(2)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r}))?function(t,e){for(var n=s(t),c=arguments.length,u=1,d=a.f,f=i.f;c>u;)for(var p,g=l(arguments[u++]),h=d?o(g).concat(d(g)):o(g),m=h.length,v=0;m>v;)p=h[v++],r&&!f.call(g,p)||(n[p]=g[p]);return n}:c},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var r=n(19),o=n(4),a=n(116),i=[].slice,s={},l=function(t,e,n){if(!(e in s)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";s[e]=Function("F,a","return new F("+r.join(",")+")")}return s[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=i.call(arguments,1),s=function(){var r=n.concat(i.call(arguments));return this instanceof s?l(e,r.length,r):a(e,r,t)};return o(e.prototype)&&(s.prototype=e.prototype),s}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(1).parseInt,o=n(40).trim,a=n(76),i=/^[-+]?0[xX]/;t.exports=8!==r(a+"08")||22!==r(a+"0x16")?function(t,e){var n=o(String(t),3);return r(n,e>>>0||(i.test(n)?16:10))}:r},function(t,e,n){var r=n(1).parseFloat,o=n(40).trim;t.exports=1/r(n(76)+"-0")!=-1/0?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(24);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(4),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var r=n(34),o=n(29),a=n(39),i={};n(15)(i,n(5)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(i,{next:o(1,n)}),a(t,e+" Iterator")}},function(t,e,n){var r=n(3);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var a=t.return;throw void 0!==a&&r(a.call(t)),e}}},function(t,e,n){var r=n(275);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(19),o=n(10),a=n(45),i=n(6);t.exports=function(t,e,n,s,l){r(e);var c=o(t),u=a(c),d=i(c.length),f=l?d-1:0,p=l?-1:1;if(n<2)for(;;){if(f in u){s=u[f],f+=p;break}if(f+=p,l?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;l?f>=0:d>f;f+=p)f in u&&(s=e(s,u[f],f,c));return s}},function(t,e,n){"use strict";var r=n(10),o=n(33),a=n(6);t.exports=[].copyWithin||function(t,e){var n=r(this),i=a(n.length),s=o(t,i),l=o(e,i),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?i:o(c,i))-l,i-s),d=1;for(l<s&&s<l+u&&(d=-1,l+=u-1,s+=u-1);u-- >0;)l in n?n[s]=n[l]:delete n[s],s+=d,l+=d;return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(91);n(0)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e,n){n(8)&&"g"!=/./g.flags&&n(9).f(RegExp.prototype,"flags",{configurable:!0,get:n(56)})},function(t,e,n){"use strict";var r,o,a,i,s=n(31),l=n(1),c=n(18),u=n(47),d=n(0),f=n(4),p=n(19),g=n(43),h=n(59),m=n(48),v=n(93).set,_=n(295)(),y=n(131),b=n(296),w=n(60),x=n(132),S=l.TypeError,A=l.process,j=A&&A.versions,E=j&&j.v8||"",L=l.Promise,P="process"==u(A),M=function(){},O=o=y.f,T=!!function(){try{var t=L.resolve(1),e=(t.constructor={})[n(5)("species")]=function(t){t(M,M)};return(P||"function"==typeof PromiseRejectionEvent)&&t.then(M)instanceof e&&0!==E.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),I=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},F=function(t,e){if(!t._n){t._n=!0;var n=t._c;_((function(){for(var r=t._v,o=1==t._s,a=0,i=function(e){var n,a,i,s=o?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(o||(2==t._h&&k(t),t._h=1),!0===s?n=r:(u&&u.enter(),n=s(r),u&&(u.exit(),i=!0)),n===e.promise?c(S("Promise-chain cycle")):(a=I(n))?a.call(n,l,c):l(n)):c(r)}catch(t){u&&!i&&u.exit(),c(t)}};n.length>a;)i(n[a++]);t._c=[],t._n=!1,e&&!t._h&&C(t)}))}},C=function(t){v.call(l,(function(){var e,n,r,o=t._v,a=N(t);if(a&&(e=b((function(){P?A.emit("unhandledRejection",o,t):(n=l.onunhandledrejection)?n({promise:t,reason:o}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",o)})),t._h=P||N(t)?2:1),t._a=void 0,a&&e.e)throw e.v}))},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},k=function(t){v.call(l,(function(){var e;P?A.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})}))},R=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),F(e,!0))},q=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=I(t))?_((function(){var r={_w:n,_d:!1};try{e.call(t,c(q,r,1),c(R,r,1))}catch(t){R.call(r,t)}})):(n._v=t,n._s=1,F(n,!1))}catch(t){R.call({_w:n,_d:!1},t)}}};T||(L=function(t){g(this,L,"Promise","_h"),p(t),r.call(this);try{t(c(q,this,1),c(R,this,1))}catch(t){R.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(44)(L.prototype,{then:function(t,e){var n=O(m(this,L));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=P?A.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&F(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new r;this.promise=t,this.resolve=c(q,t,1),this.reject=c(R,t,1)},y.f=O=function(t){return t===L||t===i?new a(t):o(t)}),d(d.G+d.W+d.F*!T,{Promise:L}),n(39)(L,"Promise"),n(42)("Promise"),i=n(7).Promise,d(d.S+d.F*!T,"Promise",{reject:function(t){var e=O(this);return(0,e.reject)(t),e.promise}}),d(d.S+d.F*(s||!T),"Promise",{resolve:function(t){return x(s&&this===i?L:this,t)}}),d(d.S+d.F*!(T&&n(55)((function(t){L.all(t).catch(M)}))),"Promise",{all:function(t){var e=this,n=O(e),r=n.resolve,o=n.reject,a=b((function(){var n=[],a=0,i=1;h(t,!1,(function(t){var s=a++,l=!1;n.push(void 0),i++,e.resolve(t).then((function(t){l||(l=!0,n[s]=t,--i||r(n))}),o)})),--i||r(n)}));return a.e&&o(a.v),n.promise},race:function(t){var e=this,n=O(e),r=n.reject,o=b((function(){h(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(t,e,n){"use strict";var r=n(19);function o(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(3),o=n(4),a=n(131);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=a.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(9).f,o=n(34),a=n(44),i=n(18),s=n(43),l=n(59),c=n(82),u=n(127),d=n(42),f=n(8),p=n(28).fastKey,g=n(38),h=f?"_s":"size",m=function(t,e){var n,r=p(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var u=t((function(t,r){s(t,u,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[h]=0,null!=r&&l(r,n,t[c],t)}));return a(u.prototype,{clear:function(){for(var t=g(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[h]=0},delete:function(t){var n=g(this,e),r=m(n,t);if(r){var o=r.n,a=r.p;delete n._i[r.i],r.r=!0,a&&(a.n=o),o&&(o.p=a),n._f==r&&(n._f=o),n._l==r&&(n._l=a),n[h]--}return!!r},forEach:function(t){g(this,e);for(var n,r=i(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!m(g(this,e),t)}}),f&&r(u.prototype,"size",{get:function(){return g(this,e)[h]}}),u},def:function(t,e,n){var r,o,a=m(t,e);return a?a.v=n:(t._l=a={i:o=p(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=a),r&&(r.n=a),t[h]++,"F"!==o&&(t._i[o]=a)),t},getEntry:m,setStrong:function(t,e,n){c(t,e,(function(t,n){this._t=g(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?u(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,u(1))}),n?"entries":"values",!n,!0),d(e)}}},function(t,e,n){"use strict";var r=n(44),o=n(28).getWeak,a=n(3),i=n(4),s=n(43),l=n(59),c=n(23),u=n(14),d=n(38),f=c(5),p=c(6),g=0,h=function(t){return t._l||(t._l=new m)},m=function(){this.a=[]},v=function(t,e){return f(t.a,(function(t){return t[0]===e}))};m.prototype={get:function(t){var e=v(this,t);if(e)return e[1]},has:function(t){return!!v(this,t)},set:function(t,e){var n=v(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=p(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,a){var c=t((function(t,r){s(t,c,e,"_i"),t._t=e,t._i=g++,t._l=void 0,null!=r&&l(r,n,t[a],t)}));return r(c.prototype,{delete:function(t){if(!i(t))return!1;var n=o(t);return!0===n?h(d(this,e)).delete(t):n&&u(n,this._i)&&delete n[this._i]},has:function(t){if(!i(t))return!1;var n=o(t);return!0===n?h(d(this,e)).has(t):n&&u(n,this._i)}}),c},def:function(t,e,n){var r=o(a(e),!0);return!0===r?h(t).set(e,n):r[t._i]=n,t},ufstore:h}},function(t,e,n){var r=n(20),o=n(6);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var r=n(35),o=n(53),a=n(3),i=n(1).Reflect;t.exports=i&&i.ownKeys||function(t){var e=r.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(6),o=n(78),a=n(25);t.exports=function(t,e,n,i){var s=String(a(t)),l=s.length,c=void 0===n?" ":String(n),u=r(e);if(u<=l||""==c)return s;var d=u-l,f=o.call(c,Math.ceil(d/c.length));return f.length>d&&(f=f.slice(0,d)),i?f+s:s+f}},function(t,e,n){var r=n(8),o=n(32),a=n(16),i=n(46).f;t.exports=function(t){return function(e){for(var n,s=a(e),l=o(s),c=l.length,u=0,d=[];c>u;)n=l[u++],r&&!i.call(s,n)||d.push(t?[n,s[n]]:s[n]);return d}}},function(t,e,n){"use strict";var r=String.prototype.replace,o=/%20/g,a=n(95),i={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports=a.assign({default:i.RFC3986,formatters:{RFC1738:function(t){return r.call(t,o,"+")},RFC3986:function(t){return String(t)}}},i)},function(t,e,n){"use strict";var r=n(13),o=n(97),a=n(142),i=n(64);function s(t){var e=new a(t),n=o(a.prototype.request,e);return r.extend(n,a.prototype,e),r.extend(n,e),n}var l=s(i);l.Axios=a,l.create=function(t){return s(r.merge(i,t))},l.Cancel=n(101),l.CancelToken=n(156),l.isCancel=n(100),l.all=function(t){return Promise.all(t)},l.spread=n(157),t.exports=l,t.exports.default=l},function(t,e){
|
7 |
/*!
|
8 |
* Determine if an object is a Buffer
|
9 |
*
|
10 |
* @author Feross Aboukhadijeh <https://feross.org>
|
11 |
* @license MIT
|
12 |
*/
|
13 |
+
t.exports=function(t){return null!=t&&null!=t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},function(t,e,n){"use strict";var r=n(64),o=n(13),a=n(151),i=n(152);function s(t){this.defaults=t,this.interceptors={request:new a,response:new a}}s.prototype.request=function(t){"string"==typeof t&&(t=o.merge({url:arguments[0]},arguments[1])),(t=o.merge(r,{method:"get"},this.defaults,t)).method=t.method.toLowerCase();var e=[i,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},o.forEach(["delete","get","head","options"],(function(t){s.prototype[t]=function(e,n){return this.request(o.merge(n||{},{method:t,url:e}))}})),o.forEach(["post","put","patch"],(function(t){s.prototype[t]=function(e,n,r){return this.request(o.merge(r||{},{method:t,url:e,data:n}))}})),t.exports=s},function(t,e){var n,r,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var l,c=[],u=!1,d=-1;function f(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var t=s(f);u=!0;for(var e=c.length;e;){for(l=c,c=[];++d<e;)l&&l[d].run();d=-1,e=c.length}l=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function g(t,e){this.fun=t,this.array=e}function h(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new g(t,e)),1!==c.length||u||s(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(99);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t}},function(t,e,n){"use strict";var r=n(13);function o(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var a;if(n)a=n(e);else if(r.isURLSearchParams(e))a=e.toString();else{var i=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),i.push(o(e)+"="+o(t))})))})),a=i.join("&")}return a&&(t+=(-1===t.indexOf("?")?"?":"&")+a),t}},function(t,e,n){"use strict";var r=n(13),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,a,i={};return t?(r.forEach(t.split("\n"),(function(t){if(a=t.indexOf(":"),e=r.trim(t.substr(0,a)).toLowerCase(),n=r.trim(t.substr(a+1)),e){if(i[e]&&o.indexOf(e)>=0)return;i[e]="set-cookie"===e?(i[e]?i[e]:[]).concat([n]):i[e]?i[e]+", "+n:n}})),i):i}},function(t,e,n){"use strict";var r=n(13);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(13);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,a,i){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(a)&&s.push("domain="+a),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r=n(13);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},function(t,e,n){"use strict";var r=n(13),o=n(153),a=n(100),i=n(64),s=n(154),l=n(155);function c(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return c(t),t.baseURL&&!s(t.url)&&(t.url=l(t.baseURL,t.url)),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||i.adapter)(t).then((function(e){return c(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return a(e)||(c(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(101);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){!function(){"use strict";t.exports={polyfill:function(){var t=window,e=document;if(!("scrollBehavior"in e.documentElement.style)||!0===t.__forceSmoothScrollPolyfill__){var n,r=t.HTMLElement||t.Element,o={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:r.prototype.scroll||s,scrollIntoView:r.prototype.scrollIntoView},a=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,i=(n=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?g.call(t,e.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):o.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?o.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):g.call(t,e.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},r.prototype.scroll=r.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var t=arguments[0].left,e=arguments[0].top;g.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===e?this.scrollTop:~~e)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},r.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},r.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var n=f(this),r=n.getBoundingClientRect(),a=this.getBoundingClientRect();n!==e.body?(g.call(this,n,n.scrollLeft+a.left-r.left,n.scrollTop+a.top-r.top),"fixed"!==t.getComputedStyle(n).position&&t.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):t.scrollBy({left:a.left,top:a.top,behavior:"smooth"})}else o.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function s(t,e){this.scrollLeft=t,this.scrollTop=e}function l(t){if(null===t||"object"!=typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"==typeof t&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function c(t,e){return"Y"===e?t.clientHeight+i<t.scrollHeight:"X"===e?t.clientWidth+i<t.scrollWidth:void 0}function u(e,n){var r=t.getComputedStyle(e,null)["overflow"+n];return"auto"===r||"scroll"===r}function d(t){var e=c(t,"Y")&&u(t,"Y"),n=c(t,"X")&&u(t,"X");return e||n}function f(t){for(;t!==e.body&&!1===d(t);)t=t.parentNode||t.host;return t}function p(e){var n,r,o,i,s=(a()-e.startTime)/468;i=s=s>1?1:s,n=.5*(1-Math.cos(Math.PI*i)),r=e.startX+(e.x-e.startX)*n,o=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,r,o),r===e.x&&o===e.y||t.requestAnimationFrame(p.bind(t,e))}function g(n,r,i){var l,c,u,d,f=a();n===e.body?(l=t,c=t.scrollX||t.pageXOffset,u=t.scrollY||t.pageYOffset,d=o.scroll):(l=n,c=n.scrollLeft,u=n.scrollTop,d=s),p({scrollable:l,method:d,startTime:f,startX:c,startY:u,x:r,y:i})}}}}()},function(t,e,n){"use strict";var r,o,a,i;history,Object.entries||(Object.entries=function(t){for(var e=Object.keys(t),n=e.length,r=new Array(n);n--;)r[n]=[e[n],t[e[n]]];return r}),void 0===Array.isArray&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Array.from||(Array.from=(r=Object.prototype.toString,o=function(t){return"function"==typeof t||"[object Function]"===r.call(t)},a=Math.pow(2,53)-1,i=function(t){var e=function(t){var e=Number(t);return isNaN(e)?0:0!==e&&isFinite(e)?(e>0?1:-1)*Math.floor(Math.abs(e)):e}(t);return Math.min(Math.max(e,0),a)},function(t){var e=this,n=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r,a=arguments.length>1?arguments[1]:void 0;if(void 0!==a){if(!o(a))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(r=arguments[2])}for(var s,l=i(n.length),c=o(e)?Object(new e(l)):new Array(l),u=0;u<l;)s=n[u],c[u]=a?void 0===r?a(s,u):a.call(r,s,u):s,u+=1;return c.length=l,c})),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(t,e){e=e||window;for(var n=0;n<this.length;n++)t.call(e,this[n],n,this)}),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){e||(e=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["#text","#comment"];e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fade";if(!t||!e)return!1;-1===r.indexOf(e.nodeName.toLowerCase())&&("masonry"===n&&(e.style.opacity=0),t.appendChild(e))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t)return!1;var e=document.createElement("tbody");e.innerHTML=t;var n=[e];return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(65);e.default=function(t){if(!t)return!1;var e="",n=".html",o=t.addons.cache_path+t.addons.cache_id;if(t.init&&t.addons.seo&&t.isPaged)e=o+"/page-1-"+t.start_page+n;else if(t.addons.filters){var a=(0,r.parseQuerystring)(o);if(t.init&&t.isPaged)e=a+"/page-1-"+t.addons.filters_startpage+n;else{var i=t.page+1;"true"===t.addons.preloaded&&(i=t.page+2),e=a+"/page-"+i+n}}else if(t.addons.nextpage){var s=void 0;t.addons.paging?s=parseInt(t.page)+1:(s=parseInt(t.page)+2,t.isPaged&&(s=parseInt(t.page)+parseInt(t.addons.nextpage_startpage)+1)),e=o+"/page-"+s+n}else e=t.addons.single_post?o+"/"+t.addons.single_post_id+n:"true"===t.addons.comments&&"true"===t.addons.preloaded?o+"/page-"+(t.page+2)+n:o+"/page-"+(t.page+1)+n;return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){for(var e=window.location.search.substring(1).split("&"),n=0;n<e.length;n++){var r=e[n].split("=");if(decodeURIComponent(r[0])==t)return decodeURIComponent(r[1])}return!1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.almGetAjaxParams=function(t,e,n){var r={id:t.id,post_id:t.post_id,slug:t.slug,canonical_url:encodeURIComponent(t.canonical_url),posts_per_page:t.posts_per_page,page:t.page,offset:t.offset,post_type:t.post_type,repeater:t.repeater,seo_start_page:t.start_page};t.theme_repeater&&(r.theme_repeater=t.theme_repeater);t.addons.filters&&(r.filters=t.addons.filters,r.filters_startpage=t.addons.filters_startpage);t.addons.paging&&(r.paging=t.addons.paging);t.addons.preloaded&&(r.preloaded=t.addons.preloaded,r.preloaded_amount=t.addons.preloaded_amount);"true"===t.addons.cache&&(r.cache_id=t.addons.cache_id,r.cache_logged_in=t.addons.cache_logged_in);t.acf_array&&(r.acf=t.acf_array);t.term_query_array&&(r.term_query=t.term_query_array);t.cta_array&&(r.cta=t.cta_array);t.comments_array&&(r.comments=t.comments_array);t.nextpage_array&&(r.nextpage=t.nextpage_array);t.single_post_array&&(r.single_post=t.single_post_array);t.users_array&&(r.users=t.users_array);t.listing.dataset.lang&&(r.lang=t.listing.dataset.lang);t.listing.dataset.stickyPosts&&(r.sticky_posts=t.listing.dataset.stickyPosts);t.listing.dataset.postFormat&&(r.post_format=t.listing.dataset.postFormat);t.listing.dataset.category&&(r.category=t.listing.dataset.category);t.listing.dataset.categoryAnd&&(r.category__and=t.listing.dataset.categoryAnd);t.listing.dataset.categoryNotIn&&(r.category__not_in=t.listing.dataset.categoryNotIn);t.listing.dataset.tag&&(r.tag=t.listing.dataset.tag);t.listing.dataset.tagAnd&&(r.tag__and=t.listing.dataset.tagAnd);t.listing.dataset.tagNotIn&&(r.tag__not_in=t.listing.dataset.tagNotIn);t.listing.dataset.taxonomy&&(r.taxonomy=t.listing.dataset.taxonomy);t.listing.dataset.taxonomyTerms&&(r.taxonomy_terms=t.listing.dataset.taxonomyTerms);t.listing.dataset.taxonomyOperator&&(r.taxonomy_operator=t.listing.dataset.taxonomyOperator);t.listing.dataset.taxonomyRelation&&(r.taxonomy_relation=t.listing.dataset.taxonomyRelation);t.listing.dataset.metaKey&&(r.meta_key=t.listing.dataset.metaKey);t.listing.dataset.metaValue&&(r.meta_value=t.listing.dataset.metaValue);t.listing.dataset.metaCompare&&(r.meta_compare=t.listing.dataset.metaCompare);t.listing.dataset.metaRelation&&(r.meta_relation=t.listing.dataset.metaRelation);t.listing.dataset.metaType&&(r.meta_type=t.listing.dataset.metaType);t.listing.dataset.author&&(r.author=t.listing.dataset.author);t.listing.dataset.year&&(r.year=t.listing.dataset.year);t.listing.dataset.month&&(r.month=t.listing.dataset.month);t.listing.dataset.day&&(r.day=t.listing.dataset.day);t.listing.dataset.order&&(r.order=t.listing.dataset.order);t.listing.dataset.orderby&&(r.orderby=t.listing.dataset.orderby);t.listing.dataset.postStatus&&(r.post_status=t.listing.dataset.postStatus);t.listing.dataset.postIn&&(r.post__in=t.listing.dataset.postIn);t.listing.dataset.postNotIn&&(r.post__not_in=t.listing.dataset.postNotIn);t.listing.dataset.exclude&&(r.exclude=t.listing.dataset.exclude);t.listing.dataset.search&&(r.search=t.listing.dataset.search);t.listing.dataset.s&&(r.search=t.listing.dataset.s);t.listing.dataset.customArgs&&(r.custom_args=escape(t.listing.dataset.customArgs));t.listing.dataset.vars&&(r.vars=escape(t.listing.dataset.vars));return r.action=e,r.query_type=n,r},e.almGetRestParams=function(t){return{id:t.id,post_id:t.post_id,posts_per_page:t.posts_per_page,page:t.page,offset:t.offset,slug:t.slug,canonical_url:encodeURIComponent(t.canonical_url),post_type:t.post_type,post_format:t.listing.dataset.postFormat,category:t.listing.dataset.category,category__not_in:t.listing.dataset.categoryNotIn,tag:t.listing.dataset.tag,tag__not_in:t.listing.dataset.tagNotIn,taxonomy:t.listing.dataset.taxonomy,taxonomy_terms:t.listing.dataset.taxonomyTerms,taxonomy_operator:t.listing.dataset.taxonomyOperator,taxonomy_relation:t.listing.dataset.taxonomyRelation,meta_key:t.listing.dataset.metaKey,meta_value:t.listing.dataset.metaValue,meta_compare:t.listing.dataset.metaCompare,meta_relation:t.listing.dataset.metaRelation,meta_type:t.listing.dataset.metaType,author:t.listing.dataset.author,year:t.listing.dataset.year,month:t.listing.dataset.month,day:t.listing.dataset.day,post_status:t.listing.dataset.postStatus,order:t.listing.dataset.order,orderby:t.listing.dataset.orderby,post__in:t.listing.dataset.postIn,post__not_in:t.listing.dataset.postNotIn,search:t.listing.dataset.search,s:t.listing.dataset.s,custom_args:t.listing.dataset.customArgs,vars:t.listing.dataset.vars,lang:t.lang,preloaded:t.addons.preloaded,preloaded_amount:t.addons.preloaded_amount,seo_start_page:t.start_page}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(104));e.default=function(t){return new Promise((function(e){var n="standard";t.addons.nextpage?(n="nextpage",t.addons.paging?t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1):t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+parseInt(t.addons.nextpage_startpage)+1)):t.addons.woocommerce?(n="woocommerce",t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1)):t.AjaxLoadMore.setLocalizedVar("page",parseInt(t.page)+1),"true"===t.addons.preloaded||t.addons.nextpage||t.addons.woocommerce||t.AjaxLoadMore.setLocalizedVar("total_posts",t.totalposts),t.AjaxLoadMore.setLocalizedVar("post_count",function(t){var e=parseInt(t.posts),n=parseInt(t.addons.preloaded_amount),r=e+n;return r=t.start_page>1?r-n:r,r=t.addons.filters_startpage>1?r-n:r,r=t.addons.single_post?r+1:r,r=t.addons.nextpage?r+1:r}(t)),r.almResultsText(t,n),e(!0)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(66);(r=o)&&r.__esModule;var a={init:function(t){if(!0===this.isScript(t))t.parentNode.replaceChild(this.clone(t),t);else{var e=0,n=t.childNodes;if(void 0===n){var r=(new DOMParser).parseFromString(t,"text/html");r&&(n=r.body.childNodes)}for(;e<n.length;)this.replace(n[e++])}return t},replace:function(t){if(!0===this.isScript(t))t.parentNode.replaceChild(this.clone(t),t);else for(var e=0,n=t.childNodes;e<n.length;)this.replace(n[e++]);return t},isScript:function(t){return"SCRIPT"===t.tagName},clone:function(t){var e=document.createElement("script");e.text=t.innerHTML;for(var n=t.attributes.length-1;n>=0;n--)e.setAttribute(t.attributes[n].name,t.attributes[n].value);return e}};e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(!t||!t.trigger)return!1;var e=t.trigger.querySelector("button"),n=e?e.dataset.url:"";return n||""}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=d(n(50)),o=d(n(102)),a=d(n(66)),i=d(n(67)),s=d(n(103)),l=n(65),c=n(106),u=d(n(49));function d(t){return t&&t.__esModule?t:{default:t}}var f=n(68);e.default=function t(e,n,d){return new Promise((function(p){var g=e.listing,h=e.html,m=e.masonry_selector,v=e.masonry_columnwidth,_=e.masonry_animation,y=e.masonry_horizontalorder,b=e.speed,w=e.masonry_init,x=(b+100)/1e3+"s",S="scale(0.5)",A="scale(1)";if("zoom-out"===_&&(S="translateY(-20px) scale(1.25)",A="translateY(0) scale(1)"),"slide-up"===_&&(S="translateY(50px)",A="translateY(0)"),"slide-down"===_&&(S="translateY(-50px)",A="translateY(0)"),"none"===_&&(S="translateY(0)",A="translateY(0)"),v?isNaN(v)||(v=parseInt(v)):v=m,y="true"===y,d)g.parentNode.style.opacity=0,t(e,!0,!1),p(!0);else if(w&&n)(0,i.default)(g,e.ua),f(g,(function(){var t={itemSelector:m,transitionDuration:x,columnWidth:v,horizontalOrder:y,hiddenStyle:{transform:S,opacity:0},visibleStyle:{transform:A,opacity:1}},n=window.alm_masonry_vars;n&&Object.keys(n).forEach((function(e){t[e]=n[e]}));var o=g.querySelectorAll(m);e.addons.filters&&(o=(0,l.createMasonryFiltersPages)(e,Array.prototype.slice.call(o))),e.addons.seo&&(o=(0,c.createMasonrySEOPages)(e,Array.prototype.slice.call(o))),setTimeout((function(){e.msnry=new Masonry(g,t),(0,r.default)(g.parentNode,125),p(!0)}),1)}));else{var j=(0,s.default)((0,a.default)(h,"text/html"));j&&((0,o.default)(e.listing,j,"masonry"),(0,i.default)(g,e.ua),f(g,(function(){e.msnry.appended(j),(0,u.default)(e,j,j.length,!1),e.addons.filters&&(0,l.createMasonryFiltersPage)(e,j[0]),e.addons.seo&&(0,c.createMasonrySEOPage)(e,j[0]),p(!0)})))}}))}},function(t,e,n){var r,o;"undefined"!=typeof window&&window,void 0===(o="function"==typeof(r=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},r=n[t]=n[t]||[];return-1==r.indexOf(e)&&r.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var r=n.indexOf(e);return-1!=r&&n.splice(r,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var r=this._onceEvents&&this._onceEvents[t],o=0;o<n.length;o++){var a=n[o];r&&r[a]&&(this.off(t,a),delete r[a]),a.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?r.call(e,n,e,t):r)||(t.exports=o)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){o=!0,a=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=s(n(50)),a=s(n(69)),i=n(105);function s(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filter";if(n.target){var o=document.querySelectorAll('.ajax-load-more-wrap[data-id="'+n.target+'"]');o.forEach((function(o){l(t,e,n,o,r)}))}else{var a=document.querySelectorAll(".ajax-load-more-wrap");a.forEach((function(o){l(t,e,n,o,r)}))}(0,i.clearTOC)()};var l=function(t,e,n,r,o){if("fade"===t||"masonry"===t){switch(o){case"filter":r.classList.add("alm-is-filtering"),(0,a.default)(r,e);break;case"tab":r.classList.add("alm-loading");var i=r.querySelector(".alm-listing");r.style.height=i.offsetHeight+"px",(0,a.default)(i,e)}setTimeout((function(){c(e,n,r,o)}),e)}else r.classList.add("alm-is-filtering"),c(e,n,r,o)},c=function(t,e,n,r){var o=n.querySelector(".alm-btn-wrap"),a=n.querySelectorAll(".alm-listing");[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(a)).forEach((function(t){t.innerHTML=""}));var i=o.querySelector(".alm-load-more-btn");i&&i.classList.remove("done");var s=o.querySelector(".alm-paging");s&&(s.style.opacity=0),e.preloadedAmount=0,u(t,e,n,r)},u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,e=arguments[1],n=arguments[2],a=arguments[3],i=n.querySelector(".alm-listing")||n.querySelector(".alm-comments");if(!i)return!1;switch(a){case"filter":var s=!0,l=!1,c=void 0;try{for(var u,d=Object.entries(e)[Symbol.iterator]();!(s=(u=d.next()).done);s=!0){var f=u.value,p=r(f,2),g=p[0],h=p[1];g=g.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase(),i.setAttribute("data-"+g,h)}}catch(t){l=!0,c=t}finally{try{!s&&d.return&&d.return()}finally{if(l)throw c}}(0,o.default)(n,t);break;case"tab":i.setAttribute("data-preloaded","false"),i.setAttribute("data-pause","false"),i.setAttribute("data-tab-template",e.tabTemplate)}var m="";switch(e.target?(m=document.querySelector('.ajax-load-more-wrap[data-id="'+e.target+'"]'))&&window.almInit(m):(m=document.querySelector(".ajax-load-more-wrap"))&&window.almInit(m),a){case"filter":"function"==typeof almFilterComplete&&almFilterComplete();break;case"tab":"function"==typeof almTabsComplete&&almTabsComplete()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(""===e)return!1;e=e.replace(/(<p><\/p>)+/g,""),t.innerHTML=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(t&&t.debug){var e={query:t.debug,localize:t.localize};console.log("ALM Debug:",e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){if(!t)return!1;var e=-1!==t.scroll_distance_orig.toString().indexOf("-"),n=t.scroll_distance_orig.toString().replace("-","").replace("%",""),r=t.window.innerHeight,o=Math.floor(r/100*parseInt(n));return parseInt(e?"-"+o:o)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showPlaceholder=function(t){if(!t||!t.main||t.addons.paging)return!1;t.placeholder&&(t.placeholder.style.display="block",(0,r.default)(t.placeholder,75))},e.hidePlaceholder=function(t){if(!t||!t.main||t.addons.paging)return!1;t.placeholder&&((0,o.default)(t.placeholder,75),setTimeout((function(){t.placeholder.style.display="none"}),75))};var r=a(n(50)),o=a(n(69));function a(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={html:"",meta:{postcount:1,totalposts:1,debug:"Single Posts Query"}};if(200===t.status&&t.data&&e){var r=document.createElement("div");r.innerHTML=t.data;var o=r.querySelector(e);o&&(n.html=o.innerHTML)}return n}Object.defineProperty(e,"__esModule",{value:!0}),e.singlePostHTML=r,e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCacheFile=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"standard";if("true"!==t.addons.cache||!e||""===e)return!1;var r="single"===n?t.addons.single_post_id:"page-"+(t.page+1),o=new FormData;o.append("action","alm_cache_from_html"),o.append("security",alm_localize.alm_nonce),o.append("cache_id",t.addons.cache_id),o.append("cache_logged_in",t.addons.cache_logged_in),o.append("canonical_url",t.canonical_url),o.append("name",r),o.append("html",e.trim()),a.default.post(alm_localize.ajaxurl,o).then((function(e){console.log("Cache created for: "+t.canonical_url)}))},e.wooCache=function(t,e){if("true"!==t.addons.cache||!e||""===e)return!1;var n=new FormData;n.append("action","alm_cache_from_html"),n.append("security",alm_localize.alm_nonce),n.append("cache_id",t.addons.cache_id),n.append("cache_logged_in",t.addons.cache_logged_in),n.append("canonical_url",t.canonical_url),n.append("name","page-"+t.page),n.append("html",e.trim()),a.default.post(alm_localize.ajaxurl,n).then((function(e){console.log("Cache created for post: "+t.canonical_url)}))};var r,o=n(63),a=(r=o)&&r.__esModule?r:{default:r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wooInit=function(t){if(!t||!t.addons.woocommerce)return!1;t.button.dataset.page=t.addons.woocommerce_settings.paged+1;var e=t.addons.woocommerce_settings.paged_urls[t.addons.woocommerce_settings.paged];t.button.dataset.url=e||"";var n=document.querySelector(t.addons.woocommerce_settings.container);if(n){n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),t.listing.removeAttribute("aria-live"),t.listing.removeAttribute("aria-atomic");var r=n.querySelector(t.addons.woocommerce_settings.products);r&&(r.classList.add("alm-woocommerce"),r.dataset.url=t.addons.woocommerce_settings.paged_urls[t.addons.woocommerce_settings.paged-1],r.dataset.page=t.page,r.dataset.pageTitle=document.title),t.addons.woocommerce_settings.paged>1&&function(t){if(t&&t.addons.woocommerce_settings.results_text){var e=document.querySelectorAll(t.addons.woocommerce_settings.results);if(e.length<1)return!1;var n=t.addons.woocommerce_settings.settings.previous_page_link,r=t.addons.woocommerce_settings.settings.previous_page_label,o=t.addons.woocommerce_settings.settings.previous_page_sep;e.forEach((function(t){n&&r&&(t.innerHTML=s(t,n,r,o))}))}}(t)}},e.woocommerce=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.title;if(!t||!e)return!1;return new Promise((function(r){var a=document.querySelector(e.addons.woocommerce_settings.container),s=t.querySelectorAll(e.addons.woocommerce_settings.products),l=e.addons.woocommerce_settings.paged_urls[e.page];a&&s&&l&&(s=Array.prototype.slice.call(s),i(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,o.default)(a,s,e,n,l,"alm-woocommerce");case 2:r(!0);case 3:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t,"There was an error with WooCommerce")})))}))},e.wooReset=function(){return new Promise((function(t){var e=window.location;r.default.get(e).then((function(e){if(200===e.status&&e.data){var n=document.createElement("div");n.innerHTML=e.data;var r=n.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'),o=r?r.dataset.wooSettings:"";t(o)}else t(!1)})).catch((function(e){t(!1)}))}))},e.wooGetContent=function(t,e){var n={html:"",meta:{postcount:1,totalposts:e.localize.total_posts,debug:"WooCommerce Query"}};if(200===t.status&&t.data){var r=document.createElement("div");r.innerHTML=t.data;var o=r.querySelector("title").innerHTML;n.pageTitle=o;var a=r.querySelector(e.addons.woocommerce_settings.container);n.html=a?a.innerHTML:"",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments[1];if(t&&e&&e.addons.woocommerce_settings.results_text){var n=t.querySelector(e.addons.woocommerce_settings.results),r=e.addons.woocommerce_settings.settings.previous_page_link,o=e.addons.woocommerce_settings.settings.previous_page_label,a=e.addons.woocommerce_settings.settings.previous_page_sep;e.addons.woocommerce_settings.results_text&&e.addons.woocommerce_settings.results_text.forEach((function(t){t.innerHTML=r&&o?s(n,r,o,a):n.innerHTML}))}}(r,e)}return n};var r=a(n(63)),o=a(n(107));function a(t){return t&&t.__esModule?t:{default:t}}function i(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}function s(t,e,n,r){var o=" "+r+' <a href="'+e+'">'+n+"</a>";return t.innerHTML+o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(67),a=(r=o)&&r.__esModule?r:{default:r};var i=n(68);e.default=function(t,e,n){return new Promise((function(r){i(e,(function(){e.style.transition="all 0.4s ease",t.appendChild(e),(0,a.default)(e,n),r(!0)}))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.elementorInit=function(t){if(!t.addons.elementor||!t.addons.elementor_type||"posts"===!t.addons.elementor_type)return!1;var e=t.addons.elementor_element;if(e){t.button.dataset.page=t.addons.elementor_paged;var n=t.addons.elementor_next_page_url;t.button.dataset.url=n||"",e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),t.listing.removeAttribute("aria-live"),t.listing.removeAttribute("aria-atomic");var r=e.querySelector("."+t.addons.elementor_item_class);if(r&&(r.classList.add("alm-elementor"),r.dataset.url=window.location,r.dataset.page=t.addons.elementor_paged,r.dataset.pageTitle=document.title),t.addons.elementor_paged,t.addons.elementor_masonry){var o=void 0;setTimeout((function(){window.addEventListener("resize",(function(){clearTimeout(o),o=setTimeout((function(){s(t,"."+t.addons.elementor_container_class,"."+t.addons.elementor_item_class)}),100)}))}),250)}}},e.elementor=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.title;if(!t||!e)return!1;return new Promise((function(r){var o=e.addons.elementor_element.querySelector("."+e.addons.elementor_container_class),l=t.querySelectorAll("."+e.addons.elementor_item_class),c=e.addons.elementor_current_url;o&&l&&c?(l=Array.prototype.slice.call(l),i(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.default)(o,l,e,n,c,"alm-elementor");case 2:e.addons.elementor_masonry&&setTimeout((function(){s(e,"."+e.addons.elementor_container_class,"."+e.addons.elementor_item_class)}),125),r(!0);case 4:case"end":return t.stop()}}),t,this)})))().catch((function(t){console.log(t,"There was an error with Elementor")}))):r(!1)}))},e.elementorGetContent=function(t,e){var n={html:"",meta:{postcount:1,totalposts:e.localize.total_posts,debug:"Elementor Query"}};if(200===t.status&&t.data){var r=document.createElement("div");r.innerHTML=t.data;var o=r.querySelector("title").innerHTML;n.pageTitle=o;var a=r.querySelector(e.addons.elementor_target+" ."+e.addons.elementor_container_class);n.html=a?a.innerHTML:"",e.addons.elementor_current_url=e.addons.elementor_next_page_url,e.addons.elementor_next_page_url=(i=r,s=e.addons.elementor_pagination_class,(c=i.querySelector(s))?l(c):"")}var i,s,c;return n},e.elementorCreateParams=function(t){t.addons.elementor_type="posts",t.addons.elementor_settings=JSON.parse(t.listing.dataset.elementorSettings),t.addons.elementor_target=t.addons.elementor_settings.target,t.addons.elementor_element=t.addons.elementor_settings.target?document.querySelector(".elementor-widget-wrap "+t.addons.elementor_settings.target):"",t.addons.elementor_widget=function(t){if(!t)return!1;return t.classList.contains("elementor-wc-products")?"woocommerce":"posts"}(t.addons.elementor_element),(t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"posts";return t.addons.elementor_container_class="woocommerce"===e?t.addons.elementor_settings.woo_container_class:t.addons.elementor_settings.posts_container_class,t.addons.elementor_item_class="woocommerce"===e?t.addons.elementor_settings.woo_item_class:t.addons.elementor_settings.posts_item_class,t.addons.elementor_pagination_class="woocommerce"===e?"."+t.addons.elementor_settings.woo_pagination_class:"."+t.addons.elementor_settings.posts_pagination_class,t}(t,t.addons.elementor_widget)).addons.elementor_pagination=t.addons.elementor_element.querySelector(t.addons.elementor_pagination_class)||t.addons.elementor_element.querySelector("."+t.addons.elementor_settings.pagination_class),t.addons.elementor_pagination=!!t.addons.elementor_pagination&&t.addons.elementor_pagination,t.addons.elementor_controls=t.addons.elementor_settings.controls,t.addons.elementor_controls="true"===t.addons.elementor_controls,t.addons.elementor_scrolltop=parseInt(t.addons.elementor_settings.scrolltop),t.addons.elementor_current_url=window.location.href,t.addons.elementor_next_page_url=l(t.addons.elementor_pagination),t.addons.elementor_paged=t.addons.elementor_settings.paged?parseInt(t.addons.elementor_settings.paged):1,t.page=parseInt(t.page)+t.addons.elementor_paged,(t=function(t){if(!t.addons.elementor_element)return t;var e=t.addons.elementor_element,n=e.dataset.settings?JSON.parse(e.dataset.settings):"";if(!n)return t;t.addons.elementor_masonry=n.hasOwnProperty("cards_masonry")||n.hasOwnProperty("classic_masonry"),t.addons.elementor_masonry&&(t.addons.elementor_masonry_columns=parseInt(n.cards_columns)||parseInt(n.classic_columns),t.addons.elementor_masonry_columns_mobile=parseInt(n.cards_columns_mobile)||parseInt(n.classic_columns_mobile),t.addons.elementor_masonry_columns_tablet=parseInt(n.cards_columns_tablet)||parseInt(n.classic_columns_tablet),t.addons.elementor_masonry_gap=parseInt(n.cards_row_gap.size));return t}(t)).addons.elementor_element||console.warn("Ajax Load More: Unable to locate Elementor Widget. Are you sure you've set up your target parameter correctly?");t.addons.elementor_pagination||console.warn("Ajax Load More: Unable to locate Elementor pagination. There are either no results or p Ajax Load More is unable to locate the pagination widget?");return t};var r,o=n(107),a=(r=o)&&r.__esModule?r:{default:r};function i(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){return function r(o,a){try{var i=e[o](a),s=i.value}catch(t){return void n(t)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}("next")}))}}function s(t,e,n){var r=[],o=t.addons.elementor_masonry_columns,a=t.addons.elementor_masonry_columns_tablet,i=t.addons.elementor_masonry_columns_mobile,s=t.addons.elementor_masonry_gap,l=o,c=window.elementorFrontendConfig&&window.elementorFrontendConfig.breakpoints?window.elementorFrontendConfig.breakpoints:0,u=window.innerWidth;l=u>c.lg?o:u>c.md?a:i;var d=document.querySelector(e);if(!d)return!1;var f=d.querySelectorAll(n);if(!f)return!1;f.forEach((function(t,e){var n=Math.floor(e/l),o=t.getBoundingClientRect().height+s;if(n){var a=jQuery(t).position(),i=e%l,c=Math.round(a.top)-r[i];c*=-1,t.style.marginTop=Math.round(c)+"px",r[i]+=o}else r.push(o)}))}function l(t){return t&&t.querySelector("a.next")?t.querySelector("a.next").href:""}},function(t,e,n){n(182)},function(t,e,n){"use strict";n(183),n(326),n(328),n(331),n(333),n(335),n(337),n(339),n(341),n(343),n(345),n(347),n(349),n(353)},function(t,e,n){n(184),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(265),n(266),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(90),n(289),n(128),n(290),n(129),n(291),n(292),n(293),n(294),n(130),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),t.exports=n(7)},function(t,e,n){"use strict";var r=n(1),o=n(14),a=n(8),i=n(0),s=n(11),l=n(28).KEY,c=n(2),u=n(51),d=n(39),f=n(30),p=n(5),g=n(71),h=n(109),m=n(186),v=n(54),_=n(3),y=n(4),b=n(10),w=n(16),x=n(27),S=n(29),A=n(34),j=n(112),E=n(21),L=n(53),P=n(9),M=n(32),O=E.f,T=P.f,I=j.f,F=r.Symbol,C=r.JSON,N=C&&C.stringify,k=p("_hidden"),R=p("toPrimitive"),q={}.propertyIsEnumerable,D=u("symbol-registry"),z=u("symbols"),B=u("op-symbols"),W=Object.prototype,H="function"==typeof F&&!!L.f,U=r.QObject,V=!U||!U.prototype||!U.prototype.findChild,G=a&&c((function(){return 7!=A(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=O(W,e);r&&delete W[e],T(t,e,n),r&&t!==W&&T(W,e,r)}:T,Y=function(t){var e=z[t]=A(F.prototype);return e._k=t,e},X=H&&"symbol"==typeof F.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof F},Q=function(t,e,n){return t===W&&Q(B,e,n),_(t),e=x(e,!0),_(n),o(z,e)?(n.enumerable?(o(t,k)&&t[k][e]&&(t[k][e]=!1),n=A(n,{enumerable:S(0,!1)})):(o(t,k)||T(t,k,S(1,{})),t[k][e]=!0),G(t,e,n)):T(t,e,n)},$=function(t,e){_(t);for(var n,r=m(e=w(e)),o=0,a=r.length;a>o;)Q(t,n=r[o++],e[n]);return t},J=function(t){var e=q.call(this,t=x(t,!0));return!(this===W&&o(z,t)&&!o(B,t))&&(!(e||!o(this,t)||!o(z,t)||o(this,k)&&this[k][t])||e)},K=function(t,e){if(t=w(t),e=x(e,!0),t!==W||!o(z,e)||o(B,e)){var n=O(t,e);return!n||!o(z,e)||o(t,k)&&t[k][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=I(w(t)),r=[],a=0;n.length>a;)o(z,e=n[a++])||e==k||e==l||r.push(e);return r},tt=function(t){for(var e,n=t===W,r=I(n?B:w(t)),a=[],i=0;r.length>i;)!o(z,e=r[i++])||n&&!o(W,e)||a.push(z[e]);return a};H||(s((F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===W&&e.call(B,n),o(this,k)&&o(this[k],t)&&(this[k][t]=!1),G(this,t,S(1,n))};return a&&V&&G(W,t,{configurable:!0,set:e}),Y(t)}).prototype,"toString",(function(){return this._k})),E.f=K,P.f=Q,n(35).f=j.f=Z,n(46).f=J,L.f=tt,a&&!n(31)&&s(W,"propertyIsEnumerable",J,!0),g.f=function(t){return Y(p(t))}),i(i.G+i.W+i.F*!H,{Symbol:F});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)p(et[nt++]);for(var rt=M(p.store),ot=0;rt.length>ot;)h(rt[ot++]);i(i.S+i.F*!H,"Symbol",{for:function(t){return o(D,t+="")?D[t]:D[t]=F(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in D)if(D[e]===t)return e},useSetter:function(){V=!0},useSimple:function(){V=!1}}),i(i.S+i.F*!H,"Object",{create:function(t,e){return void 0===e?A(t):$(A(t),e)},defineProperty:Q,defineProperties:$,getOwnPropertyDescriptor:K,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var at=c((function(){L.f(1)}));i(i.S+i.F*at,"Object",{getOwnPropertySymbols:function(t){return L.f(b(t))}}),C&&i(i.S+i.F*(!H||c((function(){var t=F();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(y(e)||void 0!==t)&&!X(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!X(e))return e}),r[1]=e,N.apply(C,r)}}),F.prototype[R]||n(15)(F.prototype,R,F.prototype.valueOf),d(F,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(t,e,n){t.exports=n(51)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(32),o=n(53),a=n(46);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var i,s=n(t),l=a.f,c=0;s.length>c;)l.call(t,i=s[c++])&&e.push(i);return e}},function(t,e,n){var r=n(0);r(r.S,"Object",{create:n(34)})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperty:n(9).f})},function(t,e,n){var r=n(0);r(r.S+r.F*!n(8),"Object",{defineProperties:n(111)})},function(t,e,n){var r=n(16),o=n(21).f;n(22)("getOwnPropertyDescriptor",(function(){return function(t,e){return o(r(t),e)}}))},function(t,e,n){var r=n(10),o=n(36);n(22)("getPrototypeOf",(function(){return function(t){return o(r(t))}}))},function(t,e,n){var r=n(10),o=n(32);n(22)("keys",(function(){return function(t){return o(r(t))}}))},function(t,e,n){n(22)("getOwnPropertyNames",(function(){return n(112).f}))},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("freeze",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("seal",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(4),o=n(28).onFreeze;n(22)("preventExtensions",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},function(t,e,n){var r=n(4);n(22)("isFrozen",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(4);n(22)("isSealed",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},function(t,e,n){var r=n(4);n(22)("isExtensible",(function(t){return function(e){return!!r(e)&&(!t||t(e))}}))},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(113)})},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(114)})},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(75).set})},function(t,e,n){"use strict";var r=n(47),o={};o[n(5)("toStringTag")]="z",o+""!="[object z]"&&n(11)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,e,n){var r=n(0);r(r.P,"Function",{bind:n(115)})},function(t,e,n){var r=n(9).f,o=Function.prototype,a=/^\s*function ([^ (]*)/;"name"in o||n(8)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(4),o=n(36),a=n(5)("hasInstance"),i=Function.prototype;a in i||n(9).f(i,a,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(0),o=n(117);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,e,n){var r=n(0),o=n(118);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(t,e,n){"use strict";var r=n(1),o=n(14),a=n(24),i=n(77),s=n(27),l=n(2),c=n(35).f,u=n(21).f,d=n(9).f,f=n(40).trim,p=r.Number,g=p,h=p.prototype,m="Number"==a(n(34)(h)),v="trim"in String.prototype,_=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){var n,r,o,a=(e=v?e.trim():f(e,3)).charCodeAt(0);if(43===a||45===a){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===a){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var i,l=e.slice(2),c=0,u=l.length;c<u;c++)if((i=l.charCodeAt(c))<48||i>o)return NaN;return parseInt(l,r)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(m?l((function(){h.valueOf.call(n)})):"Number"!=a(n))?i(new g(_(e)),n,p):_(e)};for(var y,b=n(8)?c(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;b.length>w;w++)o(g,y=b[w])&&!o(p,y)&&d(p,y,u(g,y));p.prototype=h,h.constructor=p,n(11)(r,"Number",p)}},function(t,e,n){"use strict";var r=n(0),o=n(20),a=n(119),i=n(78),s=1..toFixed,l=Math.floor,c=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",d=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*c[n],c[n]=r%1e7,r=l(r/1e7)},f=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=l(n/t),n=n%t*1e7},p=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+i.call("0",7-n.length)+n}return e},g=function(t,e,n){return 0===e?n:e%2==1?g(t,e-1,n*t):g(t*t,e/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(2)((function(){s.call({})}))),"Number",{toFixed:function(t){var e,n,r,s,l=a(this,u),c=o(t),h="",m="0";if(c<0||c>20)throw RangeError(u);if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(h="-",l=-l),l>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(l*g(2,69,1))-69)<0?l*g(2,-e,1):l/g(2,e,1),n*=4503599627370496,(e=52-e)>0){for(d(0,n),r=c;r>=7;)d(1e7,0),r-=7;for(d(g(10,r,1),0),r=e-1;r>=23;)f(1<<23),r-=23;f(1<<r),d(1,1),f(2),m=p()}else d(0,n),d(1<<-e,0),m=p()+i.call("0",c);return m=c>0?h+((s=m.length)<=c?"0."+i.call("0",c-s)+m:m.slice(0,s-c)+"."+m.slice(s-c)):h+m}})},function(t,e,n){"use strict";var r=n(0),o=n(2),a=n(119),i=1..toPrecision;r(r.P+r.F*(o((function(){return"1"!==i.call(1,void 0)}))||!o((function(){i.call({})}))),"Number",{toPrecision:function(t){var e=a(this,"Number#toPrecision: incorrect invocation!");return void 0===t?i.call(e):i.call(e,t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(0),o=n(1).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(120)})},function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0),o=n(120),a=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&a(t)<=9007199254740991}})},function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0),o=n(118);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,n){var r=n(0),o=n(117);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,n){var r=n(0),o=n(121),a=Math.sqrt,i=Math.acosh;r(r.S+r.F*!(i&&710==Math.floor(i(Number.MAX_VALUE))&&i(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+a(t-1)*a(t+1))}})},function(t,e,n){var r=n(0),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var r=n(0),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),o=n(79);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(0),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,n){var r=n(0),o=n(80);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e,n){var r=n(0);r(r.S,"Math",{fround:n(229)})},function(t,e,n){var r=n(79),o=Math.pow,a=o(2,-52),i=o(2,-23),s=o(2,127)*(2-i),l=o(2,-126);t.exports=Math.fround||function(t){var e,n,o=Math.abs(t),c=r(t);return o<l?c*(o/l/i+1/a-1/a)*l*i:(n=(e=(1+i/a)*o)-(e-o))>s||n!=n?c*(1/0):c*n}},function(t,e,n){var r=n(0),o=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,a=0,i=0,s=arguments.length,l=0;i<s;)l<(n=o(arguments[i++]))?(a=a*(r=l/n)*r+1,l=n):a+=n>0?(r=n/l)*r:n;return l===1/0?1/0:l*Math.sqrt(a)}})},function(t,e,n){var r=n(0),o=Math.imul;r(r.S+r.F*n(2)((function(){return-5!=o(4294967295,5)||2!=o.length})),"Math",{imul:function(t,e){var n=+t,r=+e,o=65535&n,a=65535&r;return 0|o*a+((65535&n>>>16)*a+o*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(121)})},function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(79)})},function(t,e,n){var r=n(0),o=n(80),a=Math.exp;r(r.S+r.F*n(2)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(a(t-1)-a(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(0),o=n(80),a=Math.exp;r(r.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(a(t)+a(-t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(0),o=n(33),a=String.fromCharCode,i=String.fromCodePoint;r(r.S+r.F*(!!i&&1!=i.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,i=0;r>i;){if(e=+arguments[i++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?a(e):a(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(0),o=n(16),a=n(6);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=a(e.length),r=arguments.length,i=[],s=0;n>s;)i.push(String(e[s++])),s<r&&i.push(String(arguments[s]));return i.join("")}})},function(t,e,n){"use strict";n(40)("trim",(function(t){return function(){return t(this,3)}}))},function(t,e,n){"use strict";var r=n(81)(!0);n(82)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(0),o=n(81)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(0),o=n(6),a=n(83),i="".endsWith;r(r.P+r.F*n(85)("endsWith"),"String",{endsWith:function(t){var e=a(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(e.length),s=void 0===n?r:Math.min(o(n),r),l=String(t);return i?i.call(e,l,s):e.slice(s-l.length,s)===l}})},function(t,e,n){"use strict";var r=n(0),o=n(83);r(r.P+r.F*n(85)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(0);r(r.P,"String",{repeat:n(78)})},function(t,e,n){"use strict";var r=n(0),o=n(6),a=n(83),i="".startsWith;r(r.P+r.F*n(85)("startsWith"),"String",{startsWith:function(t){var e=a(this,t,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return i?i.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(12)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},function(t,e,n){"use strict";n(12)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,e,n){"use strict";n(12)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,e,n){"use strict";n(12)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,e,n){"use strict";n(12)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,e,n){"use strict";n(12)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},function(t,e,n){"use strict";n(12)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},function(t,e,n){"use strict";n(12)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,e,n){"use strict";n(12)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},function(t,e,n){"use strict";n(12)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,e,n){"use strict";n(12)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,e,n){"use strict";n(12)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,e,n){"use strict";n(12)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,e,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(0),o=n(10),a=n(27);r(r.P+r.F*n(2)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=o(this),n=a(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(0),o=n(264);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,e,n){"use strict";var r=n(2),o=Date.prototype.getTime,a=Date.prototype.toISOString,i=function(t){return t>9?t:"0"+t};t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=a.call(new Date(-50000000000001))}))||!r((function(){a.call(new Date(NaN))}))?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+i(t.getUTCMonth()+1)+"-"+i(t.getUTCDate())+"T"+i(t.getUTCHours())+":"+i(t.getUTCMinutes())+":"+i(t.getUTCSeconds())+"."+(n>99?n:"0"+i(n))+"Z"}:a},function(t,e,n){var r=Date.prototype,o=r.toString,a=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(11)(r,"toString",(function(){var t=a.call(this);return t==t?o.call(this):"Invalid Date"}))},function(t,e,n){var r=n(5)("toPrimitive"),o=Date.prototype;r in o||n(15)(o,r,n(267))},function(t,e,n){"use strict";var r=n(3),o=n(27);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!=t)}},function(t,e,n){var r=n(0);r(r.S,"Array",{isArray:n(54)})},function(t,e,n){"use strict";var r=n(18),o=n(0),a=n(10),i=n(123),s=n(86),l=n(6),c=n(87),u=n(88);o(o.S+o.F*!n(55)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,o,d,f=a(t),p="function"==typeof this?this:Array,g=arguments.length,h=g>1?arguments[1]:void 0,m=void 0!==h,v=0,_=u(f);if(m&&(h=r(h,g>2?arguments[2]:void 0,2)),null==_||p==Array&&s(_))for(n=new p(e=l(f.length));e>v;v++)c(n,v,m?h(f[v],v):f[v]);else for(d=_.call(f),n=new p;!(o=d.next()).done;v++)c(n,v,m?i(d,h,[o.value,v],!0):o.value);return n.length=v,n}})},function(t,e,n){"use strict";var r=n(0),o=n(87);r(r.S+r.F*n(2)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(0),o=n(16),a=[].join;r(r.P+r.F*(n(45)!=Object||!n(17)(a)),"Array",{join:function(t){return a.call(o(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(0),o=n(74),a=n(24),i=n(33),s=n(6),l=[].slice;r(r.P+r.F*n(2)((function(){o&&l.call(o)})),"Array",{slice:function(t,e){var n=s(this.length),r=a(this);if(e=void 0===e?n:e,"Array"==r)return l.call(this,t,e);for(var o=i(t,n),c=i(e,n),u=s(c-o),d=new Array(u),f=0;f<u;f++)d[f]="String"==r?this.charAt(o+f):this[o+f];return d}})},function(t,e,n){"use strict";var r=n(0),o=n(19),a=n(10),i=n(2),s=[].sort,l=[1,2,3];r(r.P+r.F*(i((function(){l.sort(void 0)}))||!i((function(){l.sort(null)}))||!n(17)(s)),"Array",{sort:function(t){return void 0===t?s.call(a(this)):s.call(a(this),o(t))}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(0),a=n(17)([].forEach,!0);r(r.P+r.F*!a,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,e,n){var r=n(4),o=n(54),a=n(5)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[a])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){"use strict";var r=n(0),o=n(23)(1);r(r.P+r.F*!n(17)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(2);r(r.P+r.F*!n(17)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(3);r(r.P+r.F*!n(17)([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(23)(4);r(r.P+r.F*!n(17)([].every,!0),"Array",{every:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(125);r(r.P+r.F*!n(17)([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){"use strict";var r=n(0),o=n(125);r(r.P+r.F*!n(17)([].reduceRight,!0),"Array",{reduceRight:function(t){return o(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var r=n(0),o=n(52)(!1),a=[].indexOf,i=!!a&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(i||!n(17)(a)),"Array",{indexOf:function(t){return i?a.apply(this,arguments)||0:o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(0),o=n(16),a=n(20),i=n(6),s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(l||!n(17)(s)),"Array",{lastIndexOf:function(t){if(l)return s.apply(this,arguments)||0;var e=o(this),n=i(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,a(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(126)}),n(37)("copyWithin")},function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(89)}),n(37)("fill")},function(t,e,n){"use strict";var r=n(0),o=n(23)(5),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r(r.P+r.F*a,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)("find")},function(t,e,n){"use strict";var r=n(0),o=n(23)(6),a="findIndex",i=!0;a in[]&&Array(1)[a]((function(){i=!1})),r(r.P+r.F*i,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)(a)},function(t,e,n){n(42)("Array")},function(t,e,n){var r=n(1),o=n(77),a=n(9).f,i=n(35).f,s=n(84),l=n(56),c=r.RegExp,u=c,d=c.prototype,f=/a/g,p=/a/g,g=new c(f)!==f;if(n(8)&&(!g||n(2)((function(){return p[n(5)("match")]=!1,c(f)!=f||c(p)==p||"/a/i"!=c(f,"i")})))){c=function(t,e){var n=this instanceof c,r=s(t),a=void 0===e;return!n&&r&&t.constructor===c&&a?t:o(g?new u(r&&!a?t.source:t,e):u((r=t instanceof c)?t.source:t,r&&a?l.call(t):e),n?this:d,c)};for(var h=function(t){t in c||a(c,t,{configurable:!0,get:function(){return u[t]},set:function(e){u[t]=e}})},m=i(u),v=0;m.length>v;)h(m[v++]);d.constructor=c,c.prototype=d,n(11)(r,"RegExp",c)}n(42)("RegExp")},function(t,e,n){"use strict";n(129);var r=n(3),o=n(56),a=n(8),i=/./.toString,s=function(t){n(11)(RegExp.prototype,"toString",t,!0)};n(2)((function(){return"/a/b"!=i.call({source:"a",flags:"b"})}))?s((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!a&&t instanceof RegExp?o.call(t):void 0)})):"toString"!=i.name&&s((function(){return i.call(this)}))},function(t,e,n){"use strict";var r=n(3),o=n(6),a=n(92),i=n(57);n(58)("match",1,(function(t,e,n,s){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var l=r(t),c=String(this);if(!l.global)return i(l,c);var u=l.unicode;l.lastIndex=0;for(var d,f=[],p=0;null!==(d=i(l,c));){var g=String(d[0]);f[p]=g,""===g&&(l.lastIndex=a(c,o(l.lastIndex),u)),p++}return 0===p?null:f}]}))},function(t,e,n){"use strict";var r=n(3),o=n(10),a=n(6),i=n(20),s=n(92),l=n(57),c=Math.max,u=Math.min,d=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(58)("replace",2,(function(t,e,n,g){return[function(r,o){var a=t(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,a,o):n.call(String(a),r,o)},function(t,e){var o=g(n,t,this,e);if(o.done)return o.value;var d=r(t),f=String(this),p="function"==typeof e;p||(e=String(e));var m=d.global;if(m){var v=d.unicode;d.lastIndex=0}for(var _=[];;){var y=l(d,f);if(null===y)break;if(_.push(y),!m)break;""===String(y[0])&&(d.lastIndex=s(f,a(d.lastIndex),v))}for(var b,w="",x=0,S=0;S<_.length;S++){y=_[S];for(var A=String(y[0]),j=c(u(i(y.index),f.length),0),E=[],L=1;L<y.length;L++)E.push(void 0===(b=y[L])?b:String(b));var P=y.groups;if(p){var M=[A].concat(E,j,f);void 0!==P&&M.push(P);var O=String(e.apply(void 0,M))}else O=h(A,f,j,E,P,e);j>=x&&(w+=f.slice(x,j)+O,x=j+A.length)}return w+f.slice(x)}];function h(t,e,r,a,i,s){var l=r+t.length,c=a.length,u=p;return void 0!==i&&(i=o(i),u=f),n.call(s,u,(function(n,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(l);case"<":s=i[o.slice(1,-1)];break;default:var u=+o;if(0===u)return n;if(u>c){var f=d(u/10);return 0===f?n:f<=c?void 0===a[f-1]?o.charAt(1):a[f-1]+o.charAt(1):n}s=a[u-1]}return void 0===s?"":s}))}}))},function(t,e,n){"use strict";var r=n(3),o=n(114),a=n(57);n(58)("search",1,(function(t,e,n,i){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=i(n,t,this);if(e.done)return e.value;var s=r(t),l=String(this),c=s.lastIndex;o(c,0)||(s.lastIndex=0);var u=a(s,l);return o(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]}))},function(t,e,n){"use strict";var r=n(84),o=n(3),a=n(48),i=n(92),s=n(6),l=n(57),c=n(91),u=n(2),d=Math.min,f=[].push,p="length",g=!u((function(){RegExp(4294967295,"y")}));n(58)("split",2,(function(t,e,n,u){var h;return h="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[p]||2!="ab".split(/(?:ab)*/)[p]||4!=".".split(/(.?)(.?)/)[p]||".".split(/()()/)[p]>1||"".split(/.?/)[p]?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(o,t,e);for(var a,i,s,l=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,g=void 0===e?4294967295:e>>>0,h=new RegExp(t.source,u+"g");(a=c.call(h,o))&&!((i=h.lastIndex)>d&&(l.push(o.slice(d,a.index)),a[p]>1&&a.index<o[p]&&f.apply(l,a.slice(1)),s=a[0][p],d=i,l[p]>=g));)h.lastIndex===a.index&&h.lastIndex++;return d===o[p]?!s&&h.test("")||l.push(""):l.push(o.slice(d)),l[p]>g?l.slice(0,g):l}:"0".split(void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var o=t(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,o,r):h.call(String(o),n,r)},function(t,e){var r=u(h,t,this,e,h!==n);if(r.done)return r.value;var c=o(t),f=String(this),p=a(c,RegExp),m=c.unicode,v=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(g?"y":"g"),_=new p(g?c:"^(?:"+c.source+")",v),y=void 0===e?4294967295:e>>>0;if(0===y)return[];if(0===f.length)return null===l(_,f)?[f]:[];for(var b=0,w=0,x=[];w<f.length;){_.lastIndex=g?w:0;var S,A=l(_,g?f:f.slice(w));if(null===A||(S=d(s(_.lastIndex+(g?0:w)),f.length))===b)w=i(f,w,m);else{if(x.push(f.slice(b,w)),x.length===y)return x;for(var j=1;j<=A.length-1;j++)if(x.push(A[j]),x.length===y)return x;w=b=S}}return x.push(f.slice(b)),x}]}))},function(t,e,n){var r=n(1),o=n(93).set,a=r.MutationObserver||r.WebKitMutationObserver,i=r.process,s=r.Promise,l="process"==n(24)(i);t.exports=function(){var t,e,n,c=function(){var r,o;for(l&&(r=i.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(l)n=function(){i.nextTick(c)};else if(!a||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){o.call(r,c)};else{var d=!0,f=document.createTextNode("");new a(c).observe(f,{characterData:!0}),n=function(){f.data=d=!d}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){"use strict";var r=n(133),o=n(38);t.exports=n(61)("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=r.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(o(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(133),o=n(38);t.exports=n(61)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,o=n(1),a=n(23)(0),i=n(11),s=n(28),l=n(113),c=n(134),u=n(4),d=n(38),f=n(38),p=!o.ActiveXObject&&"ActiveXObject"in o,g=s.getWeak,h=Object.isExtensible,m=c.ufstore,v=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},_={get:function(t){if(u(t)){var e=g(t);return!0===e?m(d(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(d(this,"WeakMap"),t,e)}},y=t.exports=n(61)("WeakMap",v,_,c,!0,!0);f&&p&&(l((r=c.getConstructor(v,"WeakMap")).prototype,_),s.NEED=!0,a(["delete","has","get","set"],(function(t){var e=y.prototype,n=e[t];i(e,t,(function(e,o){if(u(e)&&!h(e)){this._f||(this._f=new r);var a=this._f[t](e,o);return"set"==t?this:a}return n.call(this,e,o)}))})))},function(t,e,n){"use strict";var r=n(134),o=n(38);n(61)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(0),o=n(62),a=n(94),i=n(3),s=n(33),l=n(6),c=n(4),u=n(1).ArrayBuffer,d=n(48),f=a.ArrayBuffer,p=a.DataView,g=o.ABV&&u.isView,h=f.prototype.slice,m=o.VIEW;r(r.G+r.W+r.F*(u!==f),{ArrayBuffer:f}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(t){return g&&g(t)||c(t)&&m in t}}),r(r.P+r.U+r.F*n(2)((function(){return!new f(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,e){if(void 0!==h&&void 0===e)return h.call(i(this),t);for(var n=i(this).byteLength,r=s(t,n),o=s(void 0===e?n:e,n),a=new(d(this,f))(l(o-r)),c=new p(this),u=new p(a),g=0;r<o;)u.setUint8(g++,c.getUint8(r++));return a}}),n(42)("ArrayBuffer")},function(t,e,n){var r=n(0);r(r.G+r.W+r.F*!n(62).ABV,{DataView:n(94).DataView})},function(t,e,n){n(26)("Int8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}),!0)},function(t,e,n){n(26)("Int16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Int32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Uint32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Float32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(26)("Float64",8,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){var r=n(0),o=n(19),a=n(3),i=(n(1).Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n(2)((function(){i((function(){}))})),"Reflect",{apply:function(t,e,n){var r=o(t),l=a(n);return i?i(r,e,l):s.call(r,e,l)}})},function(t,e,n){var r=n(0),o=n(34),a=n(19),i=n(3),s=n(4),l=n(2),c=n(115),u=(n(1).Reflect||{}).construct,d=l((function(){function t(){}return!(u((function(){}),[],t)instanceof t)})),f=!l((function(){u((function(){}))}));r(r.S+r.F*(d||f),"Reflect",{construct:function(t,e){a(t),i(e);var n=arguments.length<3?t:a(arguments[2]);if(f&&!d)return u(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(c.apply(t,r))}var l=n.prototype,p=o(s(l)?l:Object.prototype),g=Function.apply.call(t,p,e);return s(g)?g:p}})},function(t,e,n){var r=n(9),o=n(0),a=n(3),i=n(27);o(o.S+o.F*n(2)((function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,n){a(t),e=i(e,!0),a(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(0),o=n(21).f,a=n(3);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=o(a(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var r=n(0),o=n(3),a=function(t){this._t=o(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(122)(a,"Object",(function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}})),r(r.S,"Reflect",{enumerate:function(t){return new a(t)}})},function(t,e,n){var r=n(21),o=n(36),a=n(14),i=n(0),s=n(4),l=n(3);i(i.S,"Reflect",{get:function t(e,n){var i,c,u=arguments.length<3?e:arguments[2];return l(e)===u?e[n]:(i=r.f(e,n))?a(i,"value")?i.value:void 0!==i.get?i.get.call(u):void 0:s(c=o(e))?t(c,n,u):void 0}})},function(t,e,n){var r=n(21),o=n(0),a=n(3);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(a(t),e)}})},function(t,e,n){var r=n(0),o=n(36),a=n(3);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(a(t))}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),o=n(3),a=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!a||a(t)}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(136)})},function(t,e,n){var r=n(0),o=n(3),a=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return a&&a(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(9),o=n(21),a=n(36),i=n(14),s=n(0),l=n(29),c=n(3),u=n(4);s(s.S,"Reflect",{set:function t(e,n,s){var d,f,p=arguments.length<4?e:arguments[3],g=o.f(c(e),n);if(!g){if(u(f=a(e)))return t(f,n,s,p);g=l(0)}if(i(g,"value")){if(!1===g.writable||!u(p))return!1;if(d=o.f(p,n)){if(d.get||d.set||!1===d.writable)return!1;d.value=s,r.f(p,n,d)}else r.f(p,n,l(0,s));return!0}return void 0!==g.set&&(g.set.call(p,s),!0)}})},function(t,e,n){var r=n(0),o=n(75);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(327),t.exports=n(7).Array.includes},function(t,e,n){"use strict";var r=n(0),o=n(52)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(37)("includes")},function(t,e,n){n(329),t.exports=n(7).Array.flatMap},function(t,e,n){"use strict";var r=n(0),o=n(330),a=n(10),i=n(6),s=n(19),l=n(124);r(r.P,"Array",{flatMap:function(t){var e,n,r=a(this);return s(t),e=i(r.length),n=l(r,0),o(n,r,r,e,0,1,t,arguments[1]),n}}),n(37)("flatMap")},function(t,e,n){"use strict";var r=n(54),o=n(4),a=n(6),i=n(18),s=n(5)("isConcatSpreadable");t.exports=function t(e,n,l,c,u,d,f,p){for(var g,h,m=u,v=0,_=!!f&&i(f,p,3);v<c;){if(v in l){if(g=_?_(l[v],v,n):l[v],h=!1,o(g)&&(h=void 0!==(h=g[s])?!!h:r(g)),h&&d>0)m=t(e,n,g,a(g.length),m,d-1)-1;else{if(m>=9007199254740991)throw TypeError();e[m]=g}m++}v++}return m}},function(t,e,n){n(332),t.exports=n(7).String.padStart},function(t,e,n){"use strict";var r=n(0),o=n(137),a=n(60),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);r(r.P+r.F*i,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){n(334),t.exports=n(7).String.padEnd},function(t,e,n){"use strict";var r=n(0),o=n(137),a=n(60),i=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);r(r.P+r.F*i,"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){n(336),t.exports=n(7).String.trimLeft},function(t,e,n){"use strict";n(40)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,e,n){n(338),t.exports=n(7).String.trimRight},function(t,e,n){"use strict";n(40)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,e,n){n(340),t.exports=n(71).f("asyncIterator")},function(t,e,n){n(109)("asyncIterator")},function(t,e,n){n(342),t.exports=n(7).Object.getOwnPropertyDescriptors},function(t,e,n){var r=n(0),o=n(136),a=n(16),i=n(21),s=n(87);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),l=i.f,c=o(r),u={},d=0;c.length>d;)void 0!==(n=l(r,e=c[d++]))&&s(u,e,n);return u}})},function(t,e,n){n(344),t.exports=n(7).Object.values},function(t,e,n){var r=n(0),o=n(138)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},function(t,e,n){n(346),t.exports=n(7).Object.entries},function(t,e,n){var r=n(0),o=n(138)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},function(t,e,n){"use strict";n(130),n(348),t.exports=n(7).Promise.finally},function(t,e,n){"use strict";var r=n(0),o=n(7),a=n(1),i=n(48),s=n(132);r(r.P+r.R,"Promise",{finally:function(t){var e=i(this,o.Promise||a.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then((function(){return n}))}:t,n?function(n){return s(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){n(350),n(351),n(352),t.exports=n(7)},function(t,e,n){var r=n(1),o=n(0),a=n(60),i=[].slice,s=/MSIE .\./.test(a),l=function(t){return function(e,n){var r=arguments.length>2,o=!!r&&i.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};o(o.G+o.B+o.F*s,{setTimeout:l(r.setTimeout),setInterval:l(r.setInterval)})},function(t,e,n){var r=n(0),o=n(93);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,n){for(var r=n(90),o=n(32),a=n(11),i=n(1),s=n(15),l=n(41),c=n(5),u=c("iterator"),d=c("toStringTag"),f=l.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},g=o(p),h=0;h<g.length;h++){var m,v=g[h],_=p[v],y=i[v],b=y&&y.prototype;if(b&&(b[u]||s(b,u,f),b[d]||s(b,d,v),l[v]=f,_))for(m in r)b[m]||a(b,m,r[m],!0)}},function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof d?e:d,a=Object.create(o.prototype),i=new S(r||[]);return a._invoke=function(t,e,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return j()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=b(i,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,i),a}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var u={};function d(){}function f(){}function p(){}var g={};g[o]=function(){return this};var h=Object.getPrototypeOf,m=h&&h(h(A([])));m&&m!==e&&n.call(m,o)&&(g=m);var v=p.prototype=d.prototype=Object.create(g);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){var r;this._invoke=function(o,a){function i(){return new e((function(r,i){!function r(o,a,i,s){var l=c(t[o],t,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,i,s)}),(function(t){r("throw",t,i,s)})):e.resolve(d).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,s)}))}s(l.arg)}(o,a,r,i)}))}return r=r?r.then(i,i):i()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,u;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function A(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:j}}function j(){return{value:void 0,done:!0}}return f.prototype=v.constructor=p,p.constructor=f,f.displayName=s(p,i,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,s(t,i,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},_(y.prototype),y.prototype[a]=function(){return this},t.AsyncIterator=y,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new y(l(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},_(v),s(v,i,"Generator"),v[o]=function(){return this},v.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=A,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return i.type="throw",i.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,u):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e){!function(){if("undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof HTMLElement){var t=!1;try{var e=document.createElement("div");e.addEventListener("focus",(function(t){t.preventDefault(),t.stopPropagation()}),!0),e.focus(Object.defineProperty({},"preventScroll",{get:function(){if(navigator&&void 0!==navigator.userAgent&&navigator.userAgent&&navigator.userAgent.match(/Edge\/1[7-8]/))return t=!1;t=!0}}))}catch(t){}if(void 0===HTMLElement.prototype.nativeFocus&&!t){HTMLElement.prototype.nativeFocus=HTMLElement.prototype.focus;var n=function(t){for(var e=0;e<t.length;e++)t[e][0].scrollTop=t[e][1],t[e][0].scrollLeft=t[e][2];t=[]};HTMLElement.prototype.focus=function(t){if(t&&t.preventScroll){var e=function(t){for(var e=t.parentNode,n=[],r=document.scrollingElement||document.documentElement;e&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&n.push([e,e.scrollTop,e.scrollLeft]),e=e.parentNode;return e=r,n.push([e,e.scrollTop,e.scrollLeft]),n}(this);if("function"==typeof setTimeout){var r=this;setTimeout((function(){r.nativeFocus(),n(e)}),0)}else this.nativeFocus(),n(e)}else this.nativeFocus()}}}}()},function(t,e,n){"use strict";var r,o,a,i,s,l;if(Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),n=this,r=function(){},o=function(){return n.apply(this instanceof r&&t?this:t,e.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,o.prototype=new r,o}),r=Object.prototype,o=r.__defineGetter__,a=r.__defineSetter__,i=r.__lookupGetter__,s=r.__lookupSetter__,l=r.hasOwnProperty,o&&a&&i&&s&&(Object.defineProperty||(Object.defineProperty=function(t,e,n){if(arguments.length<3)throw new TypeError("Arguments not optional");if(e+="",l.call(n,"value")&&(i.call(t,e)||s.call(t,e)||(t[e]=n.value),l.call(n,"get")||l.call(n,"set")))throw new TypeError("Cannot specify an accessor and a value");if(!(n.writable&&n.enumerable&&n.configurable))throw new TypeError("This implementation of Object.defineProperty does not support false for configurable, enumerable, or writable.");return n.get&&o.call(t,e,n.get),n.set&&a.call(t,e,n.set),t}),Object.getOwnPropertyDescriptor||(Object.getOwnPropertyDescriptor=function(t,e){if(arguments.length<2)throw new TypeError("Arguments not optional.");e+="";var n={configurable:!0,enumerable:!0,writable:!0},r=i.call(t,e),o=s.call(t,e);return l.call(t,e)?r||o?(delete n.writable,n.get=n.set=void 0,r&&(n.get=r),o&&(n.set=o),n):(n.value=t[e],n):n}),Object.defineProperties||(Object.defineProperties=function(t,e){var n;for(n in e)l.call(e,n)&&Object.defineProperty(t,n,e[n])})),!(document.documentElement.dataset||Object.getOwnPropertyDescriptor(Element.prototype,"dataset")&&Object.getOwnPropertyDescriptor(Element.prototype,"dataset").get)){var c={enumerable:!0,get:function(){var t,e,n,r,o,a,i=this.attributes,s=i.length,l=function(t){return t.charAt(1).toUpperCase()},c=function(){return this},u=function(t,e){return void 0!==e?this.setAttribute(t,e):this.removeAttribute(t)};try{({}).__defineGetter__("test",(function(){})),e={}}catch(t){e=document.createElement("div")}for(t=0;t<s;t++)if((a=i[t])&&a.name&&/^data-\w[\w\-]*$/.test(a.name)){n=a.value,o=(r=a.name).substr(5).replace(/-./g,l);try{Object.defineProperty(e,o,{enumerable:this.enumerable,get:c.bind(n||""),set:u.bind(this,r)})}catch(t){e[o]=n}}return e}};try{Object.defineProperty(Element.prototype,"dataset",c)}catch(t){c.enumerable=!1,Object.defineProperty(Element.prototype,"dataset",c)}}},function(t,e,n){"use strict";var r=n(357),o=n(358),a=n(139);t.exports={formats:a,parse:o,stringify:r}},function(t,e,n){"use strict";var r=n(95),o=n(139),a=Object.prototype.hasOwnProperty,i={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},s=Array.isArray,l=Array.prototype.push,c=function(t,e){l.apply(t,s(e)?e:[e])},u=Date.prototype.toISOString,d=o.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(t){return u.call(t)},skipNulls:!1,strictNullHandling:!1},p=function t(e,n,o,a,i,l,u,d,p,g,h,m,v){var _,y=e;if("function"==typeof u?y=u(n,y):y instanceof Date?y=g(y):"comma"===o&&s(y)&&(y=r.maybeMap(y,(function(t){return t instanceof Date?g(t):t})).join(",")),null===y){if(a)return l&&!m?l(n,f.encoder,v,"key"):n;y=""}if("string"==typeof(_=y)||"number"==typeof _||"boolean"==typeof _||"symbol"==typeof _||"bigint"==typeof _||r.isBuffer(y))return l?[h(m?n:l(n,f.encoder,v,"key"))+"="+h(l(y,f.encoder,v,"value"))]:[h(n)+"="+h(String(y))];var b,w=[];if(void 0===y)return w;if(s(u))b=u;else{var x=Object.keys(y);b=d?x.sort(d):x}for(var S=0;S<b.length;++S){var A=b[S],j=y[A];if(!i||null!==j){var E=s(y)?"function"==typeof o?o(n,A):n:n+(p?"."+A:"["+A+"]");c(w,t(j,E,o,a,i,l,u,d,p,g,h,m,v))}}return w};t.exports=function(t,e){var n,r=t,l=function(t){if(!t)return f;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||f.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==t.format){if(!a.call(o.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=o.formatters[n],i=f.filter;return("function"==typeof t.filter||s(t.filter))&&(i=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===t.allowDots?f.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:f.charsetSentinel,delimiter:void 0===t.delimiter?f.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:f.encode,encoder:"function"==typeof t.encoder?t.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:f.encodeValuesOnly,filter:i,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:f.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:f.strictNullHandling}}(e);"function"==typeof l.filter?r=(0,l.filter)("",r):s(l.filter)&&(n=l.filter);var u,d=[];if("object"!=typeof r||null===r)return"";u=e&&e.arrayFormat in i?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var g=i[u];n||(n=Object.keys(r)),l.sort&&n.sort(l.sort);for(var h=0;h<n.length;++h){var m=n[h];l.skipNulls&&null===r[m]||c(d,p(r[m],m,g,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.formatter,l.encodeValuesOnly,l.charset))}var v=d.join(l.delimiter),_=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),v.length>0?_+v:""}},function(t,e,n){"use strict";var r=n(95),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},l=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},c=function(t,e,n,r){if(t){var a=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(a),c=s?a.slice(0,s.index):a,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=i.exec(a))&&d<n.depth;){if(d+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+a.slice(s.index)+"]"),function(t,e,n,r){for(var o=r?e:l(e,n),a=t.length-1;a>=0;--a){var i,s=t[a];if("[]"===s&&n.parseArrays)i=[].concat(o);else{i=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(i=[])[u]=o:i[c]=o:i={0:o}}o=i}return o}(u,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return i;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?i.charset:t.charset;return{allowDots:void 0===t.allowDots?i.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:i.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof t?function(t,e){var n,c={},u=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,d=e.parameterLimit===1/0?void 0:e.parameterLimit,f=u.split(e.delimiter,d),p=-1,g=e.charset;if(e.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?g="utf-8":"utf8=%26%2310003%3B"===f[n]&&(g="iso-8859-1"),p=n,n=f.length);for(n=0;n<f.length;++n)if(n!==p){var h,m,v=f[n],_=v.indexOf("]="),y=-1===_?v.indexOf("="):_+1;-1===y?(h=e.decoder(v,i.decoder,g,"key"),m=e.strictNullHandling?null:""):(h=e.decoder(v.slice(0,y),i.decoder,g,"key"),m=r.maybeMap(l(v.slice(y+1),e),(function(t){return e.decoder(t,i.decoder,g,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===g&&(m=s(m)),v.indexOf("[]=")>-1&&(m=a(m)?[m]:m),o.call(c,h)?c[h]=r.combine(c[h],m):c[h]=m}return c}(t,n):t,d=n.plainObjects?Object.create(null):{},f=Object.keys(u),p=0;p<f.length;++p){var g=f[p],h=c(g,u[g],n,"string"==typeof t);d=r.merge(d,h,n)}return r.compact(d)}}]);
|
core/functions.php
CHANGED
@@ -1,307 +1,7 @@
|
|
1 |
<?php
|
2 |
// @codingStandardsIgnoreStart
|
3 |
-
|
4 |
-
|
5 |
-
* alm_get_pro_addon
|
6 |
-
* An array of pro addon parameters
|
7 |
-
*
|
8 |
-
* @return array
|
9 |
-
* @since 3.6
|
10 |
-
*/
|
11 |
-
|
12 |
-
function alm_get_pro_addon(){
|
13 |
-
$path_prefix = 'ajax-load-more-';
|
14 |
-
$url_prefix = 'https://connekthq.com/plugins/ajax-load-more/pro/';
|
15 |
-
|
16 |
-
$addons = array(
|
17 |
-
array(
|
18 |
-
'name' => __('Ajax Load More Pro', 'ajax-load-more'),
|
19 |
-
'intro' => __('Get instant access to all premium add-ons in a single installation.', 'ajax-load-more'),
|
20 |
-
'desc' => __('The Pro bundle is installed as a single product with one license key and contains immediate access all premium add-ons.', 'ajax-load-more'),
|
21 |
-
'action' => 'alm_pro_installed',
|
22 |
-
'key' => 'alm_pro_license_key',
|
23 |
-
'status' => 'alm_pro_license_status',
|
24 |
-
'settings_field' => 'alm_pro_license',
|
25 |
-
'img' => 'img/add-ons/pro-bundle-add-on.png',
|
26 |
-
'url' => $url_prefix,
|
27 |
-
'item_id' => ALM_PRO_ITEM_NAME,
|
28 |
-
'version' => 'ALM_PRO_VERSION',
|
29 |
-
'path' => $path_prefix .'pro',
|
30 |
-
'slug' => 'pro'
|
31 |
-
)
|
32 |
-
);
|
33 |
-
return $addons;
|
34 |
-
}
|
35 |
-
|
36 |
-
|
37 |
-
/*
|
38 |
-
* alm_get_addons
|
39 |
-
* An array of add-on parameters
|
40 |
-
*
|
41 |
-
* @return array
|
42 |
-
* @since 3.3.0
|
43 |
-
*/
|
44 |
-
|
45 |
-
function alm_get_addons(){
|
46 |
-
$path_prefix = 'ajax-load-more-';
|
47 |
-
$url_prefix = 'https://connekthq.com/plugins/ajax-load-more/add-ons/';
|
48 |
-
|
49 |
-
$addons = array(
|
50 |
-
array(
|
51 |
-
'name' => __('Cache', 'ajax-load-more'),
|
52 |
-
'intro' => __('Improve performance with the Ajax Load More caching engine.', 'ajax-load-more'),
|
53 |
-
'desc' => __('The Cache add-on creates static HTML files of Ajax Load More requests then delivers those static files to your visitors.', 'ajax-load-more'),
|
54 |
-
'action' => 'alm_cache_installed',
|
55 |
-
'key' => 'alm_cache_license_key',
|
56 |
-
'status' => 'alm_cache_license_status',
|
57 |
-
'settings_field' => 'alm_cache_license',
|
58 |
-
'img' => 'img/add-ons/cache-add-on.jpg',
|
59 |
-
'url' => $url_prefix .'cache/',
|
60 |
-
'item_id' => ALM_CACHE_ITEM_NAME,
|
61 |
-
'version' => 'ALM_CACHE_VERSION',
|
62 |
-
'path' => $path_prefix .'cache',
|
63 |
-
'slug' => 'cache'
|
64 |
-
),
|
65 |
-
array(
|
66 |
-
'name' => __('Call to Actions', 'ajax-load-more'),
|
67 |
-
'intro' => __('Ajax Load More extension for displaying advertisements and call to actions.', 'ajax-load-more'),
|
68 |
-
'desc' => __('The Call to Actions add-on provides the ability to inject a custom CTA template within each Ajax Load More loop.', 'ajax-load-more'),
|
69 |
-
'action' => 'alm_cta_installed',
|
70 |
-
'key' => 'alm_cta_license_key',
|
71 |
-
'status' => 'alm_cta_license_status',
|
72 |
-
'settings_field' => 'alm_cta_license',
|
73 |
-
'img' => 'img/add-ons/cta-add-on.jpg',
|
74 |
-
'url' => $url_prefix .'call-to-actions/',
|
75 |
-
'item_id' => ALM_CTA_ITEM_NAME,
|
76 |
-
'version' => 'ALM_CTA_VERSION',
|
77 |
-
'path' => $path_prefix .'call-to-actions',
|
78 |
-
'slug' => 'call-to-actions'
|
79 |
-
),
|
80 |
-
array(
|
81 |
-
'name' => __('Comments', 'ajax-load-more'),
|
82 |
-
'intro' => __('Load blog comments on demand with Ajax Load More.', 'ajax-load-more'),
|
83 |
-
'desc' => __('The Comments add-on will display your blog comments with Ajax Load More\'s infinite scroll functionality.', 'ajax-load-more'),
|
84 |
-
'action' => 'alm_comments_installed',
|
85 |
-
'key' => 'alm_comments_license_key',
|
86 |
-
'status' => 'alm_comments_license_status',
|
87 |
-
'settings_field' => 'alm_comments_license',
|
88 |
-
'img' => 'img/add-ons/comments-add-on.jpg',
|
89 |
-
'url' => $url_prefix .'comments/',
|
90 |
-
'item_id' => ALM_COMMENTS_ITEM_NAME,
|
91 |
-
'version' => 'ALM_COMMENTS_VERSION',
|
92 |
-
'path' => $path_prefix .'comments',
|
93 |
-
'slug' => 'comments'
|
94 |
-
),
|
95 |
-
array(
|
96 |
-
'name' => __('Custom Repeaters', 'ajax-load-more'),
|
97 |
-
'intro' => __('Extend Ajax Load More with unlimited repeater templates.', 'ajax-load-more'),
|
98 |
-
'desc' => __('Create, delete and modify repeater templates as you need them with absolutely zero restrictions.', 'ajax-load-more'),
|
99 |
-
'action' => 'alm_unlimited_installed',
|
100 |
-
'key' => 'alm_unlimited_license_key',
|
101 |
-
'status' => 'alm_unlimited_license_status',
|
102 |
-
'settings_field' => 'alm_unlimited_license',
|
103 |
-
'img' => 'img/add-ons/unlimited-add-ons.jpg',
|
104 |
-
'url' => $url_prefix .'custom-repeaters/',
|
105 |
-
'item_id' => ALM_UNLIMITED_ITEM_NAME,
|
106 |
-
'version' => 'ALM_UNLIMITED_VERSION',
|
107 |
-
'path' => $path_prefix .'repeaters-v2',
|
108 |
-
'slug' => 'repeaters-v2'
|
109 |
-
),
|
110 |
-
array(
|
111 |
-
'name' => __('Elementor', 'ajax-load-more'),
|
112 |
-
'intro' => __('Infinite scroll Elementor widget content with Ajax Load More.', 'ajax-load-more'),
|
113 |
-
'desc' => __('The Elementor add-on provides functionality required for integrating with the Elementor Posts and WooCommerce Products widget.', 'ajax-load-more'),
|
114 |
-
'action' => 'alm_elementor_installed',
|
115 |
-
'key' => 'alm_elementor_license_key',
|
116 |
-
'status' => 'alm_elementor_license_status',
|
117 |
-
'settings_field' => 'alm_elementor_license',
|
118 |
-
'img' => 'img/add-ons/elementor-add-on.jpg',
|
119 |
-
'url' => $url_prefix .'elementor/',
|
120 |
-
'item_id' => ALM_ELEMENTOR_ITEM_NAME,
|
121 |
-
'version' => 'ALM_ELEMENTOR_VERSION',
|
122 |
-
'path' => $path_prefix .'elementor',
|
123 |
-
'slug' => 'elementor'
|
124 |
-
),
|
125 |
-
array(
|
126 |
-
'name' => __('Filters', 'ajax-load-more'),
|
127 |
-
'intro' => __('Create custom Ajax Load More filters in seconds.', 'ajax-load-more'),
|
128 |
-
'desc' => __('The Filters add-on provides front-end and admin functionality for building and managing Ajax filters.', 'ajax-load-more'),
|
129 |
-
'action' => 'alm_filters_installed',
|
130 |
-
'key' => 'alm_filters_license_key',
|
131 |
-
'status' => 'alm_filters_license_status',
|
132 |
-
'settings_field' => 'alm_filters_license',
|
133 |
-
'img' => 'img/add-ons/filters-add-on.jpg',
|
134 |
-
'url' => $url_prefix .'filters/',
|
135 |
-
'item_id' => ALM_FILTERS_ITEM_NAME,
|
136 |
-
'version' => 'ALM_FILTERS_VERSION',
|
137 |
-
'path' => $path_prefix .'filters',
|
138 |
-
'slug' => 'filters'
|
139 |
-
),
|
140 |
-
array(
|
141 |
-
'name' => __('Layouts', 'ajax-load-more'),
|
142 |
-
'intro' => __('Predefined layouts for repeater templates.', 'ajax-load-more'),
|
143 |
-
'desc' => __('The Layouts add-on provides a collection of unique, well designed and fully responsive templates.', 'ajax-load-more'),
|
144 |
-
'action' => 'alm_layouts_installed',
|
145 |
-
'key' => 'alm_layouts_license_key',
|
146 |
-
'status' => 'alm_layouts_license_status',
|
147 |
-
'settings_field' => 'alm_layouts_license',
|
148 |
-
'img' => 'img/add-ons/layouts-add-on.jpg',
|
149 |
-
'url' => $url_prefix .'layouts/',
|
150 |
-
'item_id' => ALM_LAYOUTS_ITEM_NAME,
|
151 |
-
'version' => 'ALM_LAYOUTS_VERSION',
|
152 |
-
'path' => $path_prefix .'layouts',
|
153 |
-
'slug' => 'layouts'
|
154 |
-
),
|
155 |
-
array(
|
156 |
-
'name' => __('Next Page', 'ajax-load-more'),
|
157 |
-
'intro' => __('Load and display multipage WordPress content.', 'ajax-load-more'),
|
158 |
-
'desc' => __('The Next Page add-on provides functionality for infinite scrolling paginated posts and pages.', 'ajax-load-more'),
|
159 |
-
'action' => 'alm_nextpage_installed',
|
160 |
-
'key' => 'alm_nextpage_license_key',
|
161 |
-
'status' => 'alm_nextpage_license_status',
|
162 |
-
'settings_field' => 'alm_nextpage_license',
|
163 |
-
'img' => 'img/add-ons/next-page-add-on.jpg',
|
164 |
-
'url' => $url_prefix .'nextpage/',
|
165 |
-
'item_id' => ALM_NEXTPAGE_ITEM_NAME,
|
166 |
-
'version' => 'ALM_NEXTPAGE_VERSION',
|
167 |
-
'path' => $path_prefix .'next-page',
|
168 |
-
'slug' => 'next-page'
|
169 |
-
),
|
170 |
-
array(
|
171 |
-
'name' => __('Paging', 'ajax-load-more'),
|
172 |
-
'intro' => __('Extend Ajax Load More with a numbered navigation.', 'ajax-load-more'),
|
173 |
-
'desc' => __('The Paging add-on will transform the default infinite scroll functionality into a robust ajax powered navigation system.', 'ajax-load-more'),
|
174 |
-
'action' => 'alm_paging_installed',
|
175 |
-
'key' => 'alm_paging_license_key',
|
176 |
-
'status' => 'alm_paging_license_status',
|
177 |
-
'settings_field' => 'alm_paging_license',
|
178 |
-
'img' => 'img/add-ons/paging-add-ons.jpg',
|
179 |
-
'url' => $url_prefix .'paging/',
|
180 |
-
'item_id' => ALM_PAGING_ITEM_NAME,
|
181 |
-
'version' => 'ALM_PAGING_VERSION',
|
182 |
-
'path' => $path_prefix .'paging',
|
183 |
-
'slug' => 'paging'
|
184 |
-
),
|
185 |
-
array(
|
186 |
-
'name' => __('Preloaded', 'ajax-load-more'),
|
187 |
-
'intro' => __('Load an initial set of posts before making Ajax requests to the server.', 'ajax-load-more'),
|
188 |
-
'desc' => __('The Preloaded add-on will display content quicker and allow caching of the initial query which can reduce stress on your server.', 'ajax-load-more'),
|
189 |
-
'action' => 'alm_preload_installed',
|
190 |
-
'key' => 'alm_preloaded_license_key',
|
191 |
-
'status' => 'alm_preloaded_license_status',
|
192 |
-
'settings_field' => 'alm_preloaded_license',
|
193 |
-
'img' => 'img/add-ons/preloaded-add-ons.jpg',
|
194 |
-
'url' => $url_prefix .'preloaded/',
|
195 |
-
'item_id' => ALM_PRELOADED_ITEM_NAME,
|
196 |
-
'version' => 'ALM_PRELOADED_VERSION',
|
197 |
-
'path' => $path_prefix .'preloaded',
|
198 |
-
'slug' => 'preloaded'
|
199 |
-
),
|
200 |
-
array(
|
201 |
-
'name' => __('Search Engine Optimization', 'ajax-load-more'),
|
202 |
-
'intro' => __('Generate unique paging URLs with every Ajax Load More query.', 'ajax-load-more'),
|
203 |
-
'desc' => __('The SEO add-on will optimize your ajax loaded content for search engines by generating unique URLs with every query.', 'ajax-load-more'),
|
204 |
-
'action' => 'alm_seo_installed',
|
205 |
-
'key' => 'alm_seo_license_key',
|
206 |
-
'status' => 'alm_seo_license_status',
|
207 |
-
'settings_field' => 'alm_seo_license',
|
208 |
-
'img' => 'img/add-ons/seo-add-ons.jpg',
|
209 |
-
'url' => $url_prefix .'search-engine-optimization/',
|
210 |
-
'item_id' => ALM_SEO_ITEM_NAME,
|
211 |
-
'version' => 'ALM_SEO_VERSION',
|
212 |
-
'path' => $path_prefix .'seo',
|
213 |
-
'slug' => 'seo'
|
214 |
-
),
|
215 |
-
array(
|
216 |
-
'name' => __('Single Posts', 'ajax-load-more'),
|
217 |
-
'intro' => __('An add-on to enable infinite scrolling of single posts.', 'ajax-load-more'),
|
218 |
-
'desc' => __('The Single Posts add-on will load full posts as you scroll and update the browser URL to the current post.', 'ajax-load-more'),
|
219 |
-
'action' => 'alm_prev_post_installed',
|
220 |
-
'key' => 'alm_prev_post_license_key',
|
221 |
-
'status' => 'alm_prev_post_license_status',
|
222 |
-
'settings_field' => 'alm_prev_post_license',
|
223 |
-
'img' => 'img/add-ons/prev-post-add-on.jpg',
|
224 |
-
'url' => $url_prefix .'single-post/',
|
225 |
-
'item_id' => ALM_PREV_POST_ITEM_NAME,
|
226 |
-
'version' => 'ALM_PREV_POST_VERSION',
|
227 |
-
'path' => $path_prefix .'previous-post',
|
228 |
-
'slug' => 'previous-post'
|
229 |
-
),
|
230 |
-
array(
|
231 |
-
'name' => __('Theme Repeaters', 'ajax-load-more'),
|
232 |
-
'intro' => __('Manage repeater templates within your current theme directory.', 'ajax-load-more'),
|
233 |
-
'desc' => __('The Theme Repeater add-on will allow you load, edit and maintain templates from your current theme directory.', 'ajax-load-more'),
|
234 |
-
'action' => 'alm_theme_repeaters_installed',
|
235 |
-
'key' => 'alm_theme_repeaters_license_key',
|
236 |
-
'status' => 'alm_theme_repeaters_license_status',
|
237 |
-
'settings_field' => 'alm_theme_repeaters_license',
|
238 |
-
'img' => 'img/add-ons/theme-repeater-add-on.jpg',
|
239 |
-
'url' => $url_prefix .'theme-repeaters/',
|
240 |
-
'item_id' => ALM_THEME_REPEATERS_ITEM_NAME,
|
241 |
-
'version' => 'ALM_THEME_REPEATERS_VERSION',
|
242 |
-
'path' => $path_prefix .'theme-repeaters',
|
243 |
-
'slug' => 'theme-repeaters'
|
244 |
-
),
|
245 |
-
array(
|
246 |
-
'name' => __('Users', 'ajax-load-more'),
|
247 |
-
'intro' => __('Enable infinite scrolling of WordPress users.', 'ajax-load-more'),
|
248 |
-
'desc' => __('The Users add-on will allow lazy loading of users by role using a WP_User_Query.', 'ajax-load-more'),
|
249 |
-
'action' => 'alm_users_installed',
|
250 |
-
'key' => 'alm_users_license_key',
|
251 |
-
'status' => 'alm_users_license_status',
|
252 |
-
'settings_field' => 'alm_users_license',
|
253 |
-
'img' => 'img/add-ons/users-add-on.jpg',
|
254 |
-
'url' => $url_prefix .'users/',
|
255 |
-
'item_id' => ALM_USERS_ITEM_NAME,
|
256 |
-
'version' => 'ALM_USERS_VERSION',
|
257 |
-
'path' => $path_prefix .'users',
|
258 |
-
'slug' => 'users'
|
259 |
-
),
|
260 |
-
array(
|
261 |
-
'name' => __('WooCommerce', 'ajax-load-more'),
|
262 |
-
'intro' => __('Infinite scroll WooCommerce products with Ajax Load More.', 'ajax-load-more'),
|
263 |
-
'desc' => __('The WooCommerce add-on automatically integrates infinite scrolling into your existing shop templates.', 'ajax-load-more'),
|
264 |
-
'action' => 'alm_woocommerce_installed',
|
265 |
-
'key' => 'alm_woocommerce_license_key',
|
266 |
-
'status' => 'alm_woocommerce_license_status',
|
267 |
-
'settings_field' => 'alm_woocommerce_license',
|
268 |
-
'img' => 'img/add-ons/woocommerce-add-on.jpg',
|
269 |
-
'url' => $url_prefix .'woocommerce/',
|
270 |
-
'item_id' => ALM_WOO_ITEM_NAME,
|
271 |
-
'version' => 'ALM_WOO_VERSION',
|
272 |
-
'path' => $path_prefix .'woocommerce',
|
273 |
-
'slug' => 'woocommerce'
|
274 |
-
)
|
275 |
-
);
|
276 |
-
return $addons;
|
277 |
-
}
|
278 |
-
|
279 |
-
|
280 |
-
/*
|
281 |
-
* alm_masonry_after
|
282 |
-
* Masonry HTML wrapper open
|
283 |
-
*
|
284 |
-
* @param $transition string
|
285 |
-
* @since 3.1.0
|
286 |
-
*/
|
287 |
-
function alm_masonry_before($transition){
|
288 |
-
return ($transition === 'masonry') ? '<div class="alm-masonry" style="opacity: 0;">' : '';
|
289 |
-
}
|
290 |
-
add_filter('alm_masonry_before', 'alm_masonry_before');
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
/*
|
295 |
-
* alm_masonry_after
|
296 |
-
* Masonry HTML wrapper close
|
297 |
-
*
|
298 |
-
* @param $transition string
|
299 |
-
* @since 3.1.0
|
300 |
-
*/
|
301 |
-
function alm_masonry_after($transition){
|
302 |
-
return ($transition === 'masonry') ? '</div>' : '';
|
303 |
-
}
|
304 |
-
add_filter('alm_masonry_after', 'alm_masonry_after');
|
305 |
|
306 |
|
307 |
|
@@ -327,17 +27,13 @@ function alm_progress_css($counter, $progress_bar, $progress_bar_color){
|
|
327 |
}
|
328 |
add_filter('alm_progress_css', 'alm_progress_css', 10, 3);
|
329 |
|
330 |
-
|
331 |
-
|
332 |
/*
|
333 |
-
*
|
334 |
-
* Is ALM CSS disabled?
|
335 |
*
|
336 |
* @param $setting name of the setting field
|
337 |
* @return boolean
|
338 |
* @since 3.3.1
|
339 |
*/
|
340 |
-
|
341 |
function alm_css_disabled($setting) {
|
342 |
$options = get_option( 'alm_settings' );
|
343 |
$disabled = true;
|
@@ -347,18 +43,14 @@ function alm_css_disabled($setting) {
|
|
347 |
return $disabled;
|
348 |
}
|
349 |
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
*
|
354 |
-
*
|
355 |
-
*
|
356 |
-
*
|
357 |
-
* @param $setting name of the setting field
|
358 |
-
* @return boolean
|
359 |
-
* @since 3.3.1
|
360 |
*/
|
361 |
-
|
362 |
function alm_do_inline_css($setting) {
|
363 |
|
364 |
// Exit if this is a REST API request
|
@@ -374,50 +66,54 @@ function alm_do_inline_css($setting) {
|
|
374 |
return $inline;
|
375 |
}
|
376 |
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
*
|
381 |
-
*
|
382 |
-
*
|
383 |
-
* @param $
|
384 |
-
* @param $
|
385 |
-
* @param $
|
386 |
-
* @
|
387 |
-
* @
|
|
|
|
|
|
|
388 |
*/
|
389 |
-
function alm_loop($repeater, $type, $theme_repeater, $alm_found_posts = '', $alm_page = '', $alm_item = '', $alm_current = ''){
|
390 |
-
|
|
|
|
|
|
|
391 |
|
392 |
-
// Theme Repeater
|
393 |
-
if($theme_repeater !== 'null' && has_filter('alm_get_theme_repeater')){
|
394 |
-
do_action('alm_get_theme_repeater', $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current);
|
395 |
}
|
396 |
-
// Standard Repeater Templates
|
397 |
else {
|
398 |
-
$file = alm_get_current_repeater($repeater, $type);
|
399 |
-
include
|
400 |
}
|
401 |
|
402 |
-
$
|
403 |
-
|
404 |
-
|
|
|
|
|
405 |
}
|
406 |
|
407 |
|
408 |
-
|
409 |
-
|
410 |
-
*
|
411 |
-
*
|
412 |
-
*
|
413 |
-
*
|
414 |
-
*
|
415 |
-
*
|
416 |
-
|
417 |
-
* @since 2.5.0
|
418 |
-
* @updated 3.5.1
|
419 |
-
*/
|
420 |
-
|
421 |
function alm_get_current_repeater($repeater, $type) {
|
422 |
|
423 |
$template = $repeater;
|
@@ -454,7 +150,6 @@ function alm_get_current_repeater($repeater, $type) {
|
|
454 |
$include = alm_get_default_repeater();
|
455 |
}
|
456 |
}
|
457 |
-
|
458 |
// Default repeater
|
459 |
else{
|
460 |
$include = alm_get_default_repeater();
|
@@ -471,14 +166,12 @@ function alm_get_current_repeater($repeater, $type) {
|
|
471 |
|
472 |
|
473 |
|
474 |
-
|
475 |
-
*
|
476 |
-
*
|
477 |
-
*
|
478 |
-
*
|
479 |
-
|
480 |
-
*/
|
481 |
-
|
482 |
function alm_get_default_repeater() {
|
483 |
|
484 |
global $wpdb;
|
@@ -515,15 +208,13 @@ function alm_get_default_repeater() {
|
|
515 |
|
516 |
|
517 |
|
518 |
-
|
519 |
-
*
|
520 |
-
*
|
521 |
-
*
|
522 |
-
*
|
523 |
-
*
|
524 |
-
|
525 |
-
* @deprecated in 2.5.0
|
526 |
-
*/
|
527 |
function alm_get_taxonomy($taxonomy, $taxonomy_terms, $taxonomy_operator){
|
528 |
if(!empty($taxonomy) && !empty($taxonomy_terms) && !empty($taxonomy_operator)){
|
529 |
$the_terms = explode(",", $taxonomy_terms);
|
@@ -599,14 +290,13 @@ function alm_get_taxonomy_query($taxonomy, $taxonomy_terms, $taxonomy_operator){
|
|
599 |
|
600 |
|
601 |
|
602 |
-
|
603 |
-
*
|
604 |
-
*
|
605 |
-
*
|
606 |
-
*
|
607 |
-
*
|
608 |
-
|
609 |
-
*/
|
610 |
function alm_parse_tax_terms($taxonomy_terms){
|
611 |
// Remove all whitespace for $taxonomy_terms because it needs to be an exact match
|
612 |
$taxonomy_terms = preg_replace('/\s+/', ' ', $taxonomy_terms); // Trim whitespace
|
@@ -617,14 +307,12 @@ function alm_parse_tax_terms($taxonomy_terms){
|
|
617 |
|
618 |
|
619 |
|
620 |
-
|
621 |
-
*
|
622 |
-
*
|
623 |
-
*
|
624 |
-
*
|
625 |
-
*
|
626 |
-
|
627 |
-
* @deprecated in 2.8.5
|
628 |
*/
|
629 |
function alm_get_tax_query($post_format, $taxonomy, $taxonomy_terms, $taxonomy_operator){
|
630 |
|
@@ -704,21 +392,20 @@ function alm_get_tax_query($post_format, $taxonomy, $taxonomy_terms, $taxonomy_o
|
|
704 |
}
|
705 |
}
|
706 |
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
*
|
711 |
-
*
|
712 |
-
|
713 |
-
* @return $args = array();
|
714 |
-
* @since 2.5.0
|
715 |
-
*/
|
716 |
function alm_get_meta_query($meta_key, $meta_value, $meta_compare, $meta_type){
|
717 |
-
if(!empty($meta_key)){
|
718 |
|
|
|
719 |
// do_shortcode fixes (shortcode was rendering as HTML when using < OR <==)
|
720 |
$meta_compare = ($meta_compare === 'lessthan') ? '<' : $meta_compare;
|
721 |
$meta_compare = ($meta_compare === 'lessthanequalto') ? '<=' : $meta_compare;
|
|
|
|
|
722 |
|
723 |
// Get optimized `meta_value` parameter
|
724 |
$meta_values = alm_parse_meta_value($meta_value, $meta_compare);
|
@@ -773,30 +460,24 @@ function alm_parse_meta_value($meta_value, $meta_compare){
|
|
773 |
return $meta_values;
|
774 |
}
|
775 |
|
776 |
-
|
777 |
-
|
778 |
-
|
779 |
-
*
|
780 |
-
*
|
781 |
-
|
782 |
-
* @return $type;
|
783 |
-
* @since 2.9
|
784 |
-
*/
|
785 |
function alm_get_repeater_type($repeater){
|
786 |
$type = preg_split('/(?=\d)/', $repeater, 2); // split $repeater value at number to determine type
|
787 |
$type = $type[0]; // default | repeater | template_
|
788 |
return $type;
|
789 |
}
|
790 |
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
*
|
795 |
-
*
|
796 |
-
|
797 |
-
* @return $canonicalURL;
|
798 |
-
* @since 2.12
|
799 |
-
*/
|
800 |
function alm_get_canonical_url(){
|
801 |
|
802 |
$canonicalURL = '';
|
@@ -868,15 +549,12 @@ function alm_get_canonical_url(){
|
|
868 |
return $canonicalURL;
|
869 |
}
|
870 |
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
*
|
875 |
-
*
|
876 |
-
|
877 |
-
* @return slug;
|
878 |
-
* @since 2.13.0
|
879 |
-
*/
|
880 |
function alm_get_page_slug($post){
|
881 |
|
882 |
// Exit if admin
|
@@ -947,13 +625,12 @@ function alm_get_page_slug($post){
|
|
947 |
}
|
948 |
|
949 |
|
950 |
-
|
951 |
-
*
|
952 |
-
*
|
953 |
-
*
|
954 |
-
*
|
955 |
-
|
956 |
-
*/
|
957 |
function alm_get_page_id($post){
|
958 |
|
959 |
// Exit if admin
|
@@ -1010,14 +687,11 @@ function alm_get_page_id($post){
|
|
1010 |
return $post_id;
|
1011 |
}
|
1012 |
|
1013 |
-
|
1014 |
-
|
1015 |
-
|
1016 |
-
*
|
1017 |
-
|
1018 |
-
*
|
1019 |
-
* @since 2.14.0
|
1020 |
-
*/
|
1021 |
function alm_get_startpage(){
|
1022 |
if ( get_query_var('paged') ) {
|
1023 |
$start_page = get_query_var('paged');
|
@@ -1029,15 +703,11 @@ function alm_get_startpage(){
|
|
1029 |
return $start_page;
|
1030 |
}
|
1031 |
|
1032 |
-
|
1033 |
-
|
1034 |
-
|
1035 |
-
|
1036 |
-
|
1037 |
-
* Debug helper for printing variables to screen
|
1038 |
-
*
|
1039 |
-
* @since 3.7
|
1040 |
-
*/
|
1041 |
function alm_pretty_print($query){
|
1042 |
if($query){
|
1043 |
echo '<pre>';
|
@@ -1046,31 +716,25 @@ function alm_pretty_print($query){
|
|
1046 |
}
|
1047 |
}
|
1048 |
|
1049 |
-
|
1050 |
-
|
1051 |
-
|
1052 |
-
*
|
1053 |
-
*
|
1054 |
-
*
|
1055 |
-
|
1056 |
-
* @return string
|
1057 |
-
* @since 3.7
|
1058 |
-
*/
|
1059 |
function alm_convert_dashes_to_underscore($string = ''){
|
1060 |
return str_replace('-', '_', $string);
|
1061 |
}
|
1062 |
|
1063 |
-
|
1064 |
-
|
1065 |
-
|
1066 |
-
*
|
1067 |
-
*
|
1068 |
-
*
|
1069 |
-
*
|
1070 |
-
|
1071 |
-
* @return array
|
1072 |
-
* @since 3.7
|
1073 |
-
*/
|
1074 |
function alm_sticky_post__not_in($ids = '', $not_in = ''){
|
1075 |
|
1076 |
if(!empty($not_in)){
|
1 |
<?php
|
2 |
// @codingStandardsIgnoreStart
|
3 |
+
include_once ALM_PATH . 'core/functions/addons.php';
|
4 |
+
include_once ALM_PATH . 'core/functions/masonry.php';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
|
7 |
|
27 |
}
|
28 |
add_filter('alm_progress_css', 'alm_progress_css', 10, 3);
|
29 |
|
|
|
|
|
30 |
/*
|
31 |
+
* Is ALM CSS disabled.
|
|
|
32 |
*
|
33 |
* @param $setting name of the setting field
|
34 |
* @return boolean
|
35 |
* @since 3.3.1
|
36 |
*/
|
|
|
37 |
function alm_css_disabled($setting) {
|
38 |
$options = get_option( 'alm_settings' );
|
39 |
$disabled = true;
|
43 |
return $disabled;
|
44 |
}
|
45 |
|
46 |
+
/**
|
47 |
+
* Load ALM CSS inline.
|
48 |
+
*
|
49 |
+
*
|
50 |
+
* @param $setting name of the setting field
|
51 |
+
* @return boolean
|
52 |
+
* @since 3.3.1
|
|
|
|
|
|
|
53 |
*/
|
|
|
54 |
function alm_do_inline_css($setting) {
|
55 |
|
56 |
// Exit if this is a REST API request
|
66 |
return $inline;
|
67 |
}
|
68 |
|
69 |
+
/**
|
70 |
+
* This function will return HTML of a looped item.
|
71 |
+
*
|
72 |
+
* @param string $repeater
|
73 |
+
* @param string $type
|
74 |
+
* @param string $theme_repeater
|
75 |
+
* @param string $alm_found_posts
|
76 |
+
* @param string $alm_page
|
77 |
+
* @param string $alm_item
|
78 |
+
* @param string $alm_current
|
79 |
+
* @param array $args
|
80 |
+
* @param boolean $ob
|
81 |
+
* @return $html
|
82 |
+
* @since 3.7
|
83 |
*/
|
84 |
+
function alm_loop($repeater, $type, $theme_repeater, $alm_found_posts = '', $alm_page = '', $alm_item = '', $alm_current = '', $args, $ob = true){
|
85 |
+
|
86 |
+
if ( $ob ) { // If Output Buffer is true.
|
87 |
+
ob_start();
|
88 |
+
}
|
89 |
|
90 |
+
// Theme Repeater.
|
91 |
+
if ( $theme_repeater !== 'null' && has_filter( 'alm_get_theme_repeater' ) ) {
|
92 |
+
do_action( 'alm_get_theme_repeater', $theme_repeater, $alm_found_posts, $alm_page, $alm_item, $alm_current );
|
93 |
}
|
94 |
+
// Standard Repeater Templates.
|
95 |
else {
|
96 |
+
$file = alm_get_current_repeater( $repeater, $type );
|
97 |
+
include $file;
|
98 |
}
|
99 |
|
100 |
+
if ( $ob ) { // If Output Buffer is true.
|
101 |
+
$html = ob_get_contents();
|
102 |
+
ob_end_clean();
|
103 |
+
return $html;
|
104 |
+
}
|
105 |
}
|
106 |
|
107 |
|
108 |
+
/**
|
109 |
+
* Get the current repeater template file
|
110 |
+
*
|
111 |
+
* @param string $repeater current repater name
|
112 |
+
* @param string $type Type of template *
|
113 |
+
* @return $include (file path)
|
114 |
+
* @since 2.5.0
|
115 |
+
* @updated 3.5.1
|
116 |
+
*/
|
|
|
|
|
|
|
|
|
117 |
function alm_get_current_repeater($repeater, $type) {
|
118 |
|
119 |
$template = $repeater;
|
150 |
$include = alm_get_default_repeater();
|
151 |
}
|
152 |
}
|
|
|
153 |
// Default repeater
|
154 |
else{
|
155 |
$include = alm_get_default_repeater();
|
166 |
|
167 |
|
168 |
|
169 |
+
/**
|
170 |
+
* Get the default repeater template for current blog
|
171 |
+
*
|
172 |
+
* @return $include (file path)
|
173 |
+
* @since 2.5.0
|
174 |
+
*/
|
|
|
|
|
175 |
function alm_get_default_repeater() {
|
176 |
|
177 |
global $wpdb;
|
208 |
|
209 |
|
210 |
|
211 |
+
/**
|
212 |
+
* Query by custom taxonomy values.
|
213 |
+
*
|
214 |
+
* @return $args = array();
|
215 |
+
* @since 2.5.0
|
216 |
+
* @deprecated in 2.5.0
|
217 |
+
*/
|
|
|
|
|
218 |
function alm_get_taxonomy($taxonomy, $taxonomy_terms, $taxonomy_operator){
|
219 |
if(!empty($taxonomy) && !empty($taxonomy_terms) && !empty($taxonomy_operator)){
|
220 |
$the_terms = explode(",", $taxonomy_terms);
|
290 |
|
291 |
|
292 |
|
293 |
+
/**
|
294 |
+
* Parse the taxonomy terms for multiple vals.
|
295 |
+
*
|
296 |
+
* @helper function @alm_get_taxonomy_query()
|
297 |
+
* @return array;
|
298 |
+
* @since 2.8.5
|
299 |
+
*/
|
|
|
300 |
function alm_parse_tax_terms($taxonomy_terms){
|
301 |
// Remove all whitespace for $taxonomy_terms because it needs to be an exact match
|
302 |
$taxonomy_terms = preg_replace('/\s+/', ' ', $taxonomy_terms); // Trim whitespace
|
307 |
|
308 |
|
309 |
|
310 |
+
/**
|
311 |
+
* Query by custom taxonomy values.
|
312 |
+
*
|
313 |
+
* @return $args = array();
|
314 |
+
* @since 2.5.0
|
315 |
+
* @deprecated in 2.8.5
|
|
|
|
|
316 |
*/
|
317 |
function alm_get_tax_query($post_format, $taxonomy, $taxonomy_terms, $taxonomy_operator){
|
318 |
|
392 |
}
|
393 |
}
|
394 |
|
395 |
+
/**
|
396 |
+
* Query by custom field values.
|
397 |
+
*
|
398 |
+
* @return $args = array();
|
399 |
+
* @since 2.5.0
|
400 |
+
*/
|
|
|
|
|
|
|
401 |
function alm_get_meta_query($meta_key, $meta_value, $meta_compare, $meta_type){
|
|
|
402 |
|
403 |
+
if ( !empty( $meta_key ) ) {
|
404 |
// do_shortcode fixes (shortcode was rendering as HTML when using < OR <==)
|
405 |
$meta_compare = ($meta_compare === 'lessthan') ? '<' : $meta_compare;
|
406 |
$meta_compare = ($meta_compare === 'lessthanequalto') ? '<=' : $meta_compare;
|
407 |
+
$meta_compare = ($meta_compare === 'greaterthan') ? '>' : $meta_compare;
|
408 |
+
$meta_compare = ($meta_compare === 'greatthanequalto') ? '>=' : $meta_compare;
|
409 |
|
410 |
// Get optimized `meta_value` parameter
|
411 |
$meta_values = alm_parse_meta_value($meta_value, $meta_compare);
|
460 |
return $meta_values;
|
461 |
}
|
462 |
|
463 |
+
/**
|
464 |
+
* Get type of repeater.
|
465 |
+
*
|
466 |
+
* @return $type;
|
467 |
+
* @since 2.9
|
468 |
+
*/
|
|
|
|
|
|
|
469 |
function alm_get_repeater_type($repeater){
|
470 |
$type = preg_split('/(?=\d)/', $repeater, 2); // split $repeater value at number to determine type
|
471 |
$type = $type[0]; // default | repeater | template_
|
472 |
return $type;
|
473 |
}
|
474 |
|
475 |
+
/**
|
476 |
+
* Get current page base URL
|
477 |
+
*
|
478 |
+
* @return $canonicalURL;
|
479 |
+
* @since 2.12
|
480 |
+
*/
|
|
|
|
|
|
|
481 |
function alm_get_canonical_url(){
|
482 |
|
483 |
$canonicalURL = '';
|
549 |
return $canonicalURL;
|
550 |
}
|
551 |
|
552 |
+
/**
|
553 |
+
* Get current page slug
|
554 |
+
*
|
555 |
+
* @return slug;
|
556 |
+
* @since 2.13.0
|
557 |
+
*/
|
|
|
|
|
|
|
558 |
function alm_get_page_slug($post){
|
559 |
|
560 |
// Exit if admin
|
625 |
}
|
626 |
|
627 |
|
628 |
+
/**
|
629 |
+
* Get current page ID
|
630 |
+
*
|
631 |
+
* @return $post_id;
|
632 |
+
* @since 3.0.1
|
633 |
+
*/
|
|
|
634 |
function alm_get_page_id($post){
|
635 |
|
636 |
// Exit if admin
|
687 |
return $post_id;
|
688 |
}
|
689 |
|
690 |
+
/**
|
691 |
+
* Get query param of start page (paged, page)
|
692 |
+
*
|
693 |
+
* @since 2.14.0
|
694 |
+
*/
|
|
|
|
|
|
|
695 |
function alm_get_startpage(){
|
696 |
if ( get_query_var('paged') ) {
|
697 |
$start_page = get_query_var('paged');
|
703 |
return $start_page;
|
704 |
}
|
705 |
|
706 |
+
/**
|
707 |
+
* Debug helper for printing variables to screen.
|
708 |
+
*
|
709 |
+
* @since 3.7
|
710 |
+
*/
|
|
|
|
|
|
|
|
|
711 |
function alm_pretty_print($query){
|
712 |
if($query){
|
713 |
echo '<pre>';
|
716 |
}
|
717 |
}
|
718 |
|
719 |
+
/**
|
720 |
+
* Convert dashes to underscores.
|
721 |
+
*
|
722 |
+
* @param $string string
|
723 |
+
* @return string
|
724 |
+
* @since 3.7
|
725 |
+
*/
|
|
|
|
|
|
|
726 |
function alm_convert_dashes_to_underscore($string = ''){
|
727 |
return str_replace('-', '_', $string);
|
728 |
}
|
729 |
|
730 |
+
/**
|
731 |
+
* Remove posts if post__not_in is set in the ALM shortcode.
|
732 |
+
*
|
733 |
+
* @param $ids array
|
734 |
+
* @param $not_in array
|
735 |
+
* @return array
|
736 |
+
* @since 3.7
|
737 |
+
*/
|
|
|
|
|
|
|
738 |
function alm_sticky_post__not_in($ids = '', $not_in = ''){
|
739 |
|
740 |
if(!empty($not_in)){
|
core/functions/addons.php
ADDED
@@ -0,0 +1,331 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// @codingStandardsIgnoreStart
|
3 |
+
/**
|
4 |
+
* This file hold data about add-ons.
|
5 |
+
*
|
6 |
+
* @package ajaxloadmore
|
7 |
+
* @since 5.4.2
|
8 |
+
*/
|
9 |
+
|
10 |
+
/**
|
11 |
+
* An array of pro addon parameters.
|
12 |
+
*
|
13 |
+
* @return array
|
14 |
+
* @since 3.6
|
15 |
+
*/
|
16 |
+
function alm_get_pro_addon() {
|
17 |
+
$path_prefix = 'ajax-load-more-';
|
18 |
+
$url_prefix = 'https://connekthq.com/plugins/ajax-load-more/pro/';
|
19 |
+
|
20 |
+
$addons = array(
|
21 |
+
array(
|
22 |
+
'name' => __(' Ajax Load More Pro', 'ajax-load-more' ),
|
23 |
+
'intro' => __(' Get instant access to all premium add-ons in a single installation.', 'ajax-load-more' ),
|
24 |
+
'desc' => __(' The Pro bundle is installed as a single product with one license key and contains immediate access all premium add-ons.', 'ajax-load-more' ),
|
25 |
+
'action' => 'alm_pro_installed',
|
26 |
+
'key' => 'alm_pro_license_key',
|
27 |
+
'status' => 'alm_pro_license_status',
|
28 |
+
'settings_field' => 'alm_pro_license',
|
29 |
+
'img' => 'img/add-ons/pro-bundle-add-on.png',
|
30 |
+
'url' => $url_prefix,
|
31 |
+
'item_id' => ALM_PRO_ITEM_NAME,
|
32 |
+
'version' => 'ALM_PRO_VERSION',
|
33 |
+
'path' => $path_prefix .'pro',
|
34 |
+
'slug' => 'pro'
|
35 |
+
)
|
36 |
+
);
|
37 |
+
return $addons;
|
38 |
+
}
|
39 |
+
|
40 |
+
/**
|
41 |
+
* An array of add-on parameters.
|
42 |
+
*
|
43 |
+
* @return array
|
44 |
+
* @since 3.3.0
|
45 |
+
*/
|
46 |
+
function alm_get_addons(){
|
47 |
+
$path_prefix = 'ajax-load-more-';
|
48 |
+
$url_prefix = 'https://connekthq.com/plugins/ajax-load-more/add-ons/';
|
49 |
+
|
50 |
+
$addons = array(
|
51 |
+
array(
|
52 |
+
'name' => __(' Cache', 'ajax-load-more' ),
|
53 |
+
'intro' => __(' Improve performance with the Ajax Load More caching engine.', 'ajax-load-more' ),
|
54 |
+
'desc' => __(' The Cache add-on creates static HTML files of Ajax Load More requests then delivers those static files to your visitors.', 'ajax-load-more' ),
|
55 |
+
'action' => 'alm_cache_installed',
|
56 |
+
'key' => 'alm_cache_license_key',
|
57 |
+
'status' => 'alm_cache_license_status',
|
58 |
+
'settings_field' => 'alm_cache_license',
|
59 |
+
'img' => 'img/add-ons/cache-add-on.jpg',
|
60 |
+
'url' => $url_prefix .'cache/',
|
61 |
+
'item_id' => ALM_CACHE_ITEM_NAME,
|
62 |
+
'version' => 'ALM_CACHE_VERSION',
|
63 |
+
'path' => $path_prefix .'cache',
|
64 |
+
'slug' => 'cache'
|
65 |
+
),
|
66 |
+
array(
|
67 |
+
'name' => __(' Call to Actions', 'ajax-load-more' ),
|
68 |
+
'intro' => __(' Ajax Load More extension for displaying advertisements and call to actions.', 'ajax-load-more' ),
|
69 |
+
'desc' => __(' The Call to Actions add-on provides the ability to inject a custom CTA template within each Ajax Load More loop.', 'ajax-load-more' ),
|
70 |
+
'action' => 'alm_cta_installed',
|
71 |
+
'key' => 'alm_cta_license_key',
|
72 |
+
'status' => 'alm_cta_license_status',
|
73 |
+
'settings_field' => 'alm_cta_license',
|
74 |
+
'img' => 'img/add-ons/cta-add-on.jpg',
|
75 |
+
'url' => $url_prefix .'call-to-actions/',
|
76 |
+
'item_id' => ALM_CTA_ITEM_NAME,
|
77 |
+
'version' => 'ALM_CTA_VERSION',
|
78 |
+
'path' => $path_prefix .'call-to-actions',
|
79 |
+
'slug' => 'call-to-actions'
|
80 |
+
),
|
81 |
+
array(
|
82 |
+
'name' => __(' Comments', 'ajax-load-more' ),
|
83 |
+
'intro' => __(' Load blog comments on demand with Ajax Load More.', 'ajax-load-more' ),
|
84 |
+
'desc' => __(' The Comments add-on will display your blog comments with Ajax Load More\'s infinite scroll functionality.', 'ajax-load-more' ),
|
85 |
+
'action' => 'alm_comments_installed',
|
86 |
+
'key' => 'alm_comments_license_key',
|
87 |
+
'status' => 'alm_comments_license_status',
|
88 |
+
'settings_field' => 'alm_comments_license',
|
89 |
+
'img' => 'img/add-ons/comments-add-on.jpg',
|
90 |
+
'url' => $url_prefix .'comments/',
|
91 |
+
'item_id' => ALM_COMMENTS_ITEM_NAME,
|
92 |
+
'version' => 'ALM_COMMENTS_VERSION',
|
93 |
+
'path' => $path_prefix .'comments',
|
94 |
+
'slug' => 'comments'
|
95 |
+
),
|
96 |
+
array(
|
97 |
+
'name' => __(' Custom Repeaters', 'ajax-load-more' ),
|
98 |
+
'intro' => __(' Extend Ajax Load More with unlimited repeater templates.', 'ajax-load-more' ),
|
99 |
+
'desc' => __(' Create, delete and modify repeater templates as you need them with absolutely zero restrictions.', 'ajax-load-more' ),
|
100 |
+
'action' => 'alm_unlimited_installed',
|
101 |
+
'key' => 'alm_unlimited_license_key',
|
102 |
+
'status' => 'alm_unlimited_license_status',
|
103 |
+
'settings_field' => 'alm_unlimited_license',
|
104 |
+
'img' => 'img/add-ons/unlimited-add-ons.jpg',
|
105 |
+
'url' => $url_prefix .'custom-repeaters/',
|
106 |
+
'item_id' => ALM_UNLIMITED_ITEM_NAME,
|
107 |
+
'version' => 'ALM_UNLIMITED_VERSION',
|
108 |
+
'path' => $path_prefix .'repeaters-v2',
|
109 |
+
'slug' => 'repeaters-v2'
|
110 |
+
),
|
111 |
+
array(
|
112 |
+
'name' => __(' Elementor', 'ajax-load-more' ),
|
113 |
+
'intro' => __(' Infinite scroll Elementor widget content with Ajax Load More.', 'ajax-load-more' ),
|
114 |
+
'desc' => __(' The Elementor add-on provides functionality required for integrating with the Elementor Posts and WooCommerce Products widget.', 'ajax-load-more' ),
|
115 |
+
'action' => 'alm_elementor_installed',
|
116 |
+
'key' => 'alm_elementor_license_key',
|
117 |
+
'status' => 'alm_elementor_license_status',
|
118 |
+
'settings_field' => 'alm_elementor_license',
|
119 |
+
'img' => 'img/add-ons/elementor-add-on.jpg',
|
120 |
+
'url' => $url_prefix .'elementor/',
|
121 |
+
'item_id' => ALM_ELEMENTOR_ITEM_NAME,
|
122 |
+
'version' => 'ALM_ELEMENTOR_VERSION',
|
123 |
+
'path' => $path_prefix .'elementor',
|
124 |
+
'slug' => 'elementor'
|
125 |
+
),
|
126 |
+
array(
|
127 |
+
'name' => __(' Filters', 'ajax-load-more' ),
|
128 |
+
'intro' => __(' Create custom Ajax Load More filters in seconds.', 'ajax-load-more' ),
|
129 |
+
'desc' => __(' The Filters add-on provides front-end and admin functionality for building and managing Ajax filters.', 'ajax-load-more' ),
|
130 |
+
'action' => 'alm_filters_installed',
|
131 |
+
'key' => 'alm_filters_license_key',
|
132 |
+
'status' => 'alm_filters_license_status',
|
133 |
+
'settings_field' => 'alm_filters_license',
|
134 |
+
'img' => 'img/add-ons/filters-add-on.jpg',
|
135 |
+
'url' => $url_prefix .'filters/',
|
136 |
+
'item_id' => ALM_FILTERS_ITEM_NAME,
|
137 |
+
'version' => 'ALM_FILTERS_VERSION',
|
138 |
+
'path' => $path_prefix .'filters',
|
139 |
+
'slug' => 'filters'
|
140 |
+
),
|
141 |
+
array(
|
142 |
+
'name' => __(' Layouts', 'ajax-load-more' ),
|
143 |
+
'intro' => __(' Predefined layouts for repeater templates.', 'ajax-load-more' ),
|
144 |
+
'desc' => __(' The Layouts add-on provides a collection of unique, well designed and fully responsive templates.', 'ajax-load-more' ),
|
145 |
+
'action' => 'alm_layouts_installed',
|
146 |
+
'key' => 'alm_layouts_license_key',
|
147 |
+
'status' => 'alm_layouts_license_status',
|
148 |
+
'settings_field' => 'alm_layouts_license',
|
149 |
+
'img' => 'img/add-ons/layouts-add-on.jpg',
|
150 |
+
'url' => $url_prefix .'layouts/',
|
151 |
+
'item_id' => ALM_LAYOUTS_ITEM_NAME,
|
152 |
+
'version' => 'ALM_LAYOUTS_VERSION',
|
153 |
+
'path' => $path_prefix .'layouts',
|
154 |
+
'slug' => 'layouts'
|
155 |
+
),
|
156 |
+
array(
|
157 |
+
'name' => __(' Next Page', 'ajax-load-more' ),
|
158 |
+
'intro' => __(' Load and display multipage WordPress content.', 'ajax-load-more' ),
|
159 |
+
'desc' => __(' The Next Page add-on provides functionality for infinite scrolling paginated posts and pages.', 'ajax-load-more' ),
|
160 |
+
'action' => 'alm_nextpage_installed',
|
161 |
+
'key' => 'alm_nextpage_license_key',
|
162 |
+
'status' => 'alm_nextpage_license_status',
|
163 |
+
'settings_field' => 'alm_nextpage_license',
|
164 |
+
'img' => 'img/add-ons/next-page-add-on.jpg',
|
165 |
+
'url' => $url_prefix .'nextpage/',
|
166 |
+
'item_id' => ALM_NEXTPAGE_ITEM_NAME,
|
167 |
+
'version' => 'ALM_NEXTPAGE_VERSION',
|
168 |
+
'path' => $path_prefix .'next-page',
|
169 |
+
'slug' => 'next-page'
|
170 |
+
),
|
171 |
+
array(
|
172 |
+
'name' => __(' Paging', 'ajax-load-more' ),
|
173 |
+
'intro' => __(' Extend Ajax Load More with a numbered navigation.', 'ajax-load-more' ),
|
174 |
+
'desc' => __(' The Paging add-on will transform the default infinite scroll functionality into a robust ajax powered navigation system.', 'ajax-load-more' ),
|
175 |
+
'action' => 'alm_paging_installed',
|
176 |
+
'key' => 'alm_paging_license_key',
|
177 |
+
'status' => 'alm_paging_license_status',
|
178 |
+
'settings_field' => 'alm_paging_license',
|
179 |
+
'img' => 'img/add-ons/paging-add-ons.jpg',
|
180 |
+
'url' => $url_prefix .'paging/',
|
181 |
+
'item_id' => ALM_PAGING_ITEM_NAME,
|
182 |
+
'version' => 'ALM_PAGING_VERSION',
|
183 |
+
'path' => $path_prefix .'paging',
|
184 |
+
'slug' => 'paging'
|
185 |
+
),
|
186 |
+
array(
|
187 |
+
'name' => __(' Preloaded', 'ajax-load-more' ),
|
188 |
+
'intro' => __(' Load an initial set of posts before making Ajax requests to the server.', 'ajax-load-more' ),
|
189 |
+
'desc' => __(' The Preloaded add-on will display content quicker and allow caching of the initial query which can reduce stress on your server.', 'ajax-load-more' ),
|
190 |
+
'action' => 'alm_preload_installed',
|
191 |
+
'key' => 'alm_preloaded_license_key',
|
192 |
+
'status' => 'alm_preloaded_license_status',
|
193 |
+
'settings_field' => 'alm_preloaded_license',
|
194 |
+
'img' => 'img/add-ons/preloaded-add-ons.jpg',
|
195 |
+
'url' => $url_prefix .'preloaded/',
|
196 |
+
'item_id' => ALM_PRELOADED_ITEM_NAME,
|
197 |
+
'version' => 'ALM_PRELOADED_VERSION',
|
198 |
+
'path' => $path_prefix .'preloaded',
|
199 |
+
'slug' => 'preloaded'
|
200 |
+
),
|
201 |
+
array(
|
202 |
+
'name' => __(' Search Engine Optimization', 'ajax-load-more' ),
|
203 |
+
'intro' => __(' Generate unique paging URLs with every Ajax Load More query.', 'ajax-load-more' ),
|
204 |
+
'desc' => __(' The SEO add-on will optimize your ajax loaded content for search engines by generating unique URLs with every query.', 'ajax-load-more' ),
|
205 |
+
'action' => 'alm_seo_installed',
|
206 |
+
'key' => 'alm_seo_license_key',
|
207 |
+
'status' => 'alm_seo_license_status',
|
208 |
+
'settings_field' => 'alm_seo_license',
|
209 |
+
'img' => 'img/add-ons/seo-add-ons.jpg',
|
210 |
+
'url' => $url_prefix .'search-engine-optimization/',
|
211 |
+
'item_id' => ALM_SEO_ITEM_NAME,
|
212 |
+
'version' => 'ALM_SEO_VERSION',
|
213 |
+
'path' => $path_prefix .'seo',
|
214 |
+
'slug' => 'seo'
|
215 |
+
),
|
216 |
+
array(
|
217 |
+
'name' => __(' Single Posts', 'ajax-load-more' ),
|
218 |
+
'intro' => __(' An add-on to enable infinite scrolling of single posts.', 'ajax-load-more' ),
|
219 |
+
'desc' => __(' The Single Posts add-on will load full posts as you scroll and update the browser URL to the current post.', 'ajax-load-more' ),
|
220 |
+
'action' => 'alm_prev_post_installed',
|
221 |
+
'key' => 'alm_prev_post_license_key',
|
222 |
+
'status' => 'alm_prev_post_license_status',
|
223 |
+
'settings_field' => 'alm_prev_post_license',
|
224 |
+
'img' => 'img/add-ons/prev-post-add-on.jpg',
|
225 |
+
'url' => $url_prefix .'single-post/',
|
226 |
+
'item_id' => ALM_PREV_POST_ITEM_NAME,
|
227 |
+
'version' => 'ALM_PREV_POST_VERSION',
|
228 |
+
'path' => $path_prefix .'previous-post',
|
229 |
+
'slug' => 'previous-post'
|
230 |
+
),
|
231 |
+
array(
|
232 |
+
'name' => __(' Theme Repeaters', 'ajax-load-more' ),
|
233 |
+
'intro' => __(' Manage repeater templates within your current theme directory.', 'ajax-load-more' ),
|
234 |
+
'desc' => __(' The Theme Repeater add-on will allow you load, edit and maintain templates from your current theme directory.', 'ajax-load-more' ),
|
235 |
+
'action' => 'alm_theme_repeaters_installed',
|
236 |
+
'key' => 'alm_theme_repeaters_license_key',
|
237 |
+
'status' => 'alm_theme_repeaters_license_status',
|
238 |
+
'settings_field' => 'alm_theme_repeaters_license',
|
239 |
+
'img' => 'img/add-ons/theme-repeater-add-on.jpg',
|
240 |
+
'url' => $url_prefix .'theme-repeaters/',
|
241 |
+
'item_id' => ALM_THEME_REPEATERS_ITEM_NAME,
|
242 |
+
'version' => 'ALM_THEME_REPEATERS_VERSION',
|
243 |
+
'path' => $path_prefix .'theme-repeaters',
|
244 |
+
'slug' => 'theme-repeaters'
|
245 |
+
),
|
246 |
+
array(
|
247 |
+
'name' => __(' Users', 'ajax-load-more' ),
|
248 |
+
'intro' => __(' Enable infinite scrolling of WordPress users.', 'ajax-load-more' ),
|
249 |
+
'desc' => __(' The Users add-on will allow lazy loading of users by role using a WP_User_Query.', 'ajax-load-more' ),
|
250 |
+
'action' => 'alm_users_installed',
|
251 |
+
'key' => 'alm_users_license_key',
|
252 |
+
'status' => 'alm_users_license_status',
|
253 |
+
'settings_field' => 'alm_users_license',
|
254 |
+
'img' => 'img/add-ons/users-add-on.jpg',
|
255 |
+
'url' => $url_prefix .'users/',
|
256 |
+
'item_id' => ALM_USERS_ITEM_NAME,
|
257 |
+
'version' => 'ALM_USERS_VERSION',
|
258 |
+
'path' => $path_prefix .'users',
|
259 |
+
'slug' => 'users'
|
260 |
+
),
|
261 |
+
array(
|
262 |
+
'name' => __(' WooCommerce', 'ajax-load-more' ),
|
263 |
+
'intro' => __(' Infinite scroll WooCommerce products with Ajax Load More.', 'ajax-load-more' ),
|
264 |
+
'desc' => __(' The WooCommerce add-on automatically integrates infinite scrolling into your existing shop templates.', 'ajax-load-more' ),
|
265 |
+
'action' => 'alm_woocommerce_installed',
|
266 |
+
'key' => 'alm_woocommerce_license_key',
|
267 |
+
'status' => 'alm_woocommerce_license_status',
|
268 |
+
'settings_field' => 'alm_woocommerce_license',
|
269 |
+
'img' => 'img/add-ons/woocommerce-add-on.jpg',
|
270 |
+
'url' => $url_prefix .'woocommerce/',
|
271 |
+
'item_id' => ALM_WOO_ITEM_NAME,
|
272 |
+
'version' => 'ALM_WOO_VERSION',
|
273 |
+
'path' => $path_prefix .'woocommerce',
|
274 |
+
'slug' => 'woocommerce'
|
275 |
+
)
|
276 |
+
);
|
277 |
+
return $addons;
|
278 |
+
}
|
279 |
+
|
280 |
+
/**
|
281 |
+
* Get addon details by add-on slug.
|
282 |
+
*
|
283 |
+
* @param string $slug The addon slug.
|
284 |
+
*/
|
285 |
+
function alm_get_addon( $slug ) {
|
286 |
+
$addons = alm_get_addons();
|
287 |
+
foreach($addons as $addon){
|
288 |
+
if( $slug === $addon['slug'] ) {
|
289 |
+
return $addon;
|
290 |
+
}
|
291 |
+
}
|
292 |
+
}
|
293 |
+
|
294 |
+
/**
|
295 |
+
* Render a CTA to display info about an add-on.
|
296 |
+
*
|
297 |
+
*
|
298 |
+
* @param array $addon The details.
|
299 |
+
* @param string $ctaText The text for the button.
|
300 |
+
*/
|
301 |
+
function alm_display_featured_addon( $addon, $ctaText = 'Upgrade Now' ) {
|
302 |
+
if ( $addon ) {
|
303 |
+
$name = $addon['name'];
|
304 |
+
$intro = $addon['intro'];
|
305 |
+
$desc = $addon['desc'];
|
306 |
+
$key = $addon['key'];
|
307 |
+
$url = $addon['url'];
|
308 |
+
$img = $addon['img'];
|
309 |
+
?>
|
310 |
+
<div id="alm-add-ons">
|
311 |
+
<div class="flexbox-wrap">
|
312 |
+
<div class="group no-shadow extend">
|
313 |
+
<a href="<?php echo $url; ?>?utm_source=WP%20Admin&utm_medium=ALM%20Add-ons&utm_campaign=<?php echo $name; ?>" target="_blank">
|
314 |
+
<div class="pro-img">
|
315 |
+
<img src="<?php echo ALM_ADMIN_URL; ?><?php echo $img; ?>" alt="">
|
316 |
+
</div>
|
317 |
+
<div class="pro-details">
|
318 |
+
<h2 class="addon-title"><?php echo $name; ?></h2>
|
319 |
+
<p class="addon-intro"><?php echo $intro; ?></p>
|
320 |
+
<p class="pro-desc"><?php echo $desc; ?></p>
|
321 |
+
<?php
|
322 |
+
echo '<span class="cnkt-button">' . $ctaText . '</span>';
|
323 |
+
?>
|
324 |
+
</div>
|
325 |
+
</a>
|
326 |
+
</div>
|
327 |
+
</div>
|
328 |
+
</div>
|
329 |
+
<?php
|
330 |
+
}
|
331 |
+
}
|
core/functions/masonry.php
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Functions related to Masonry integration.
|
4 |
+
*
|
5 |
+
* @package ajaxloadmore
|
6 |
+
* @version 5.4.2
|
7 |
+
*/
|
8 |
+
|
9 |
+
/**
|
10 |
+
* Masonry HTML wrapper open.
|
11 |
+
*
|
12 |
+
* @param string $transition
|
13 |
+
* @since 3.1.0
|
14 |
+
*/
|
15 |
+
function alm_masonry_before( $transition ) {
|
16 |
+
return ( $transition === 'masonry' ) ? '<div class="alm-masonry" style="opacity: 0;">' : '';
|
17 |
+
}
|
18 |
+
add_filter( 'alm_masonry_before', 'alm_masonry_before' );
|
19 |
+
|
20 |
+
/**
|
21 |
+
* Masonry HTML wrapper close.
|
22 |
+
*
|
23 |
+
* @param $transition string
|
24 |
+
* @since 3.1.0
|
25 |
+
*/
|
26 |
+
function alm_masonry_after( $transition ){
|
27 |
+
return ( $transition === 'masonry' ) ? '</div>' : '';
|
28 |
+
}
|
29 |
+
add_filter( 'alm_masonry_after', 'alm_masonry_after' );
|
core/src/js/addons/cache.js
DELETED
@@ -1,59 +0,0 @@
|
|
1 |
-
import axios from 'axios';
|
2 |
-
|
3 |
-
/**
|
4 |
-
* createCacheFile
|
5 |
-
* Create a single post cache file
|
6 |
-
*
|
7 |
-
* @param {Object} alm
|
8 |
-
* @param {String} content
|
9 |
-
* @param {String} type
|
10 |
-
* @since 5.3.1
|
11 |
-
*/
|
12 |
-
export function createCacheFile(alm, content, type = 'standard') {
|
13 |
-
if (alm.addons.cache !== 'true' || !content || content === '') {
|
14 |
-
return false;
|
15 |
-
}
|
16 |
-
|
17 |
-
let name = type === 'single' ? alm.addons.single_post_id : `page-${alm.page + 1}`;
|
18 |
-
|
19 |
-
let formData = new FormData();
|
20 |
-
formData.append('action', 'alm_cache_from_html');
|
21 |
-
formData.append('security', alm_localize.alm_nonce);
|
22 |
-
formData.append('cache_id', alm.addons.cache_id);
|
23 |
-
formData.append('cache_logged_in', alm.addons.cache_logged_in);
|
24 |
-
formData.append('canonical_url', alm.canonical_url);
|
25 |
-
formData.append('name', name);
|
26 |
-
formData.append('html', content.trim());
|
27 |
-
|
28 |
-
axios.post(alm_localize.ajaxurl, formData).then(function (response) {
|
29 |
-
console.log('Cache created for: ' + alm.canonical_url);
|
30 |
-
});
|
31 |
-
}
|
32 |
-
|
33 |
-
/**
|
34 |
-
* wooCache
|
35 |
-
* Create a WooCommerce cache file
|
36 |
-
*
|
37 |
-
* @param {Object} alm
|
38 |
-
* @param {String} content
|
39 |
-
* @since 5.3.1
|
40 |
-
*/
|
41 |
-
export function wooCache(alm, content) {
|
42 |
-
if (alm.addons.cache !== 'true' || !content || content === '') {
|
43 |
-
return false;
|
44 |
-
}
|
45 |
-
|
46 |
-
let formData = new FormData();
|
47 |
-
formData.append('action', 'alm_cache_from_html');
|
48 |
-
formData.append('security', alm_localize.alm_nonce);
|
49 |
-
formData.append('cache_id', alm.addons.cache_id);
|
50 |
-
formData.append('cache_logged_in', alm.addons.cache_logged_in);
|
51 |
-
formData.append('canonical_url', alm.canonical_url);
|
52 |
-
formData.append('name', `page-${alm.page}`);
|
53 |
-
formData.append('html', content.trim());
|
54 |
-
|
55 |
-
axios.post(alm_localize.ajaxurl, formData).then(function (response) {
|
56 |
-
console.log('Cache created for post: ' + alm.canonical_url);
|
57 |
-
//console.log(response);
|
58 |
-
});
|
59 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/addons/elementor.js
DELETED
@@ -1,340 +0,0 @@
|
|
1 |
-
import loadItems from '../modules/loadItems';
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Set up the instance on Elementor
|
5 |
-
*
|
6 |
-
* @param {object} alm
|
7 |
-
* @since 5.3.0
|
8 |
-
*/
|
9 |
-
|
10 |
-
export function elementorInit(alm) {
|
11 |
-
if (!alm.addons.elementor || !alm.addons.elementor_type || !alm.addons.elementor_type === 'posts') {
|
12 |
-
return false;
|
13 |
-
}
|
14 |
-
let target = alm.addons.elementor_element;
|
15 |
-
|
16 |
-
if (target) {
|
17 |
-
// Set button data attributes
|
18 |
-
alm.button.dataset.page = alm.addons.elementor_paged;
|
19 |
-
|
20 |
-
// Set button URL
|
21 |
-
let nextPage = alm.addons.elementor_next_page_url;
|
22 |
-
alm.button.dataset.url = nextPage ? nextPage : '';
|
23 |
-
|
24 |
-
// Set a11y attributes
|
25 |
-
target.setAttribute('aria-live', 'polite');
|
26 |
-
target.setAttribute('aria-atomic', 'true');
|
27 |
-
|
28 |
-
alm.listing.removeAttribute('aria-live');
|
29 |
-
alm.listing.removeAttribute('aria-atomic');
|
30 |
-
|
31 |
-
// Set data atts on 1st grid item
|
32 |
-
let item = target.querySelector(`.${alm.addons.elementor_item_class}`); // Get first `.product` item
|
33 |
-
if (item) {
|
34 |
-
item.classList.add('alm-elementor');
|
35 |
-
item.dataset.url = window.location;
|
36 |
-
item.dataset.page = alm.addons.elementor_paged;
|
37 |
-
item.dataset.pageTitle = document.title;
|
38 |
-
}
|
39 |
-
|
40 |
-
if (alm.addons.elementor_paged > 1) {
|
41 |
-
// maybe soon
|
42 |
-
//almElementorResultsTextInit(alm);
|
43 |
-
}
|
44 |
-
|
45 |
-
// Masonry Window Resize. Delay for masonry to be added via Elementor.
|
46 |
-
if (alm.addons.elementor_masonry) {
|
47 |
-
let resizeTimeout;
|
48 |
-
setTimeout(function () {
|
49 |
-
window.addEventListener('resize', function () {
|
50 |
-
clearTimeout(resizeTimeout);
|
51 |
-
resizeTimeout = setTimeout(function () {
|
52 |
-
positionMasonryItems(alm, `.${alm.addons.elementor_container_class}`, `.${alm.addons.elementor_item_class}`);
|
53 |
-
}, 100);
|
54 |
-
});
|
55 |
-
}, 250);
|
56 |
-
}
|
57 |
-
}
|
58 |
-
}
|
59 |
-
|
60 |
-
/**
|
61 |
-
* Core ALM Elementor loader.
|
62 |
-
*
|
63 |
-
* @param {HTMLElement} content
|
64 |
-
* @param {object} alm
|
65 |
-
* @param {String} pageTitle
|
66 |
-
* @since 5.3.0
|
67 |
-
*/
|
68 |
-
|
69 |
-
export function elementor(content, alm, pageTitle = document.title) {
|
70 |
-
if (!content || !alm) {
|
71 |
-
return false;
|
72 |
-
}
|
73 |
-
|
74 |
-
return new Promise((resolve) => {
|
75 |
-
let container = alm.addons.elementor_element.querySelector(`.${alm.addons.elementor_container_class}`); // Get post container
|
76 |
-
let items = content.querySelectorAll(`.${alm.addons.elementor_item_class}`); // Get all items in container
|
77 |
-
let url = alm.addons.elementor_current_url; // Current Page URL
|
78 |
-
|
79 |
-
if (container && items && url) {
|
80 |
-
// Convert NodeList to Array
|
81 |
-
items = Array.prototype.slice.call(items);
|
82 |
-
|
83 |
-
// Load the items
|
84 |
-
(async function () {
|
85 |
-
await loadItems(container, items, alm, pageTitle, url, 'alm-elementor');
|
86 |
-
if (alm.addons.elementor_masonry) {
|
87 |
-
setTimeout(function () {
|
88 |
-
positionMasonryItems(alm, `.${alm.addons.elementor_container_class}`, `.${alm.addons.elementor_item_class}`);
|
89 |
-
}, 125);
|
90 |
-
}
|
91 |
-
|
92 |
-
resolve(true);
|
93 |
-
})().catch((e) => {
|
94 |
-
console.log(e, 'There was an error with Elementor');
|
95 |
-
});
|
96 |
-
} else {
|
97 |
-
resolve(false);
|
98 |
-
}
|
99 |
-
});
|
100 |
-
}
|
101 |
-
|
102 |
-
/**
|
103 |
-
* Get the content, title and results text from the Ajax response.
|
104 |
-
*
|
105 |
-
* @param {*} response
|
106 |
-
* @param {object} alm
|
107 |
-
* @since 5.4.0
|
108 |
-
*/
|
109 |
-
export function elementorGetContent(response, alm) {
|
110 |
-
let data = {
|
111 |
-
html: '',
|
112 |
-
meta: {
|
113 |
-
postcount: 1,
|
114 |
-
totalposts: alm.localize.total_posts,
|
115 |
-
debug: 'Elementor Query',
|
116 |
-
},
|
117 |
-
};
|
118 |
-
if (response.status === 200 && response.data) {
|
119 |
-
let div = document.createElement('div');
|
120 |
-
div.innerHTML = response.data;
|
121 |
-
|
122 |
-
// Get Page Title
|
123 |
-
let title = div.querySelector('title').innerHTML;
|
124 |
-
data.pageTitle = title;
|
125 |
-
|
126 |
-
// Get Elementor Items HTML
|
127 |
-
let items = div.querySelector(`${alm.addons.elementor_target} .${alm.addons.elementor_container_class}`);
|
128 |
-
data.html = items ? items.innerHTML : '';
|
129 |
-
|
130 |
-
// Set Page URL Params
|
131 |
-
alm.addons.elementor_current_url = alm.addons.elementor_next_page_url; // Set current to previous page URL
|
132 |
-
alm.addons.elementor_next_page_url = elementorGetNextPage(div, alm.addons.elementor_pagination_class);
|
133 |
-
|
134 |
-
// Results Text
|
135 |
-
//almElementorResultsText(div, alm);
|
136 |
-
}
|
137 |
-
|
138 |
-
return data;
|
139 |
-
}
|
140 |
-
|
141 |
-
/**
|
142 |
-
* Create Elementor Params for ALM.
|
143 |
-
*
|
144 |
-
* @param Object alm
|
145 |
-
* @return alm
|
146 |
-
*/
|
147 |
-
export function elementorCreateParams(alm) {
|
148 |
-
// Get Settings
|
149 |
-
alm.addons.elementor_type = 'posts';
|
150 |
-
alm.addons.elementor_settings = JSON.parse(alm.listing.dataset.elementorSettings);
|
151 |
-
|
152 |
-
// Parse Container Settings
|
153 |
-
alm.addons.elementor_target = alm.addons.elementor_settings.target;
|
154 |
-
alm.addons.elementor_element = alm.addons.elementor_settings.target
|
155 |
-
? document.querySelector(`.elementor-widget-wrap ${alm.addons.elementor_settings.target}`)
|
156 |
-
: '';
|
157 |
-
alm.addons.elementor_widget = elementorGetWidgetType(alm.addons.elementor_element);
|
158 |
-
|
159 |
-
// Masonry
|
160 |
-
alm = setElementorClasses(alm, alm.addons.elementor_widget);
|
161 |
-
|
162 |
-
// Pagination Element
|
163 |
-
alm.addons.elementor_pagination =
|
164 |
-
alm.addons.elementor_element.querySelector(alm.addons.elementor_pagination_class) ||
|
165 |
-
alm.addons.elementor_element.querySelector(`.${alm.addons.elementor_settings.pagination_class}`);
|
166 |
-
alm.addons.elementor_pagination = alm.addons.elementor_pagination ? alm.addons.elementor_pagination : false;
|
167 |
-
|
168 |
-
alm.addons.elementor_controls = alm.addons.elementor_settings.controls;
|
169 |
-
alm.addons.elementor_controls = alm.addons.elementor_controls === 'true' ? true : false;
|
170 |
-
alm.addons.elementor_scrolltop = parseInt(alm.addons.elementor_settings.scrolltop);
|
171 |
-
|
172 |
-
// Set Page & URL params
|
173 |
-
alm.addons.elementor_current_url = window.location.href;
|
174 |
-
alm.addons.elementor_next_page_url = elementorGetNextUrl(alm.addons.elementor_pagination);
|
175 |
-
alm.addons.elementor_paged = alm.addons.elementor_settings.paged ? parseInt(alm.addons.elementor_settings.paged) : 1;
|
176 |
-
alm.page = parseInt(alm.page) + alm.addons.elementor_paged;
|
177 |
-
|
178 |
-
// Masonry
|
179 |
-
alm = parseMasonryConfig(alm);
|
180 |
-
|
181 |
-
if (!alm.addons.elementor_element) {
|
182 |
-
console.warn("Ajax Load More: Unable to locate Elementor Widget. Are you sure you've set up your target parameter correctly?");
|
183 |
-
}
|
184 |
-
if (!alm.addons.elementor_pagination) {
|
185 |
-
console.warn(
|
186 |
-
'Ajax Load More: Unable to locate Elementor pagination. There are either no results or p Ajax Load More is unable to locate the pagination widget?'
|
187 |
-
);
|
188 |
-
}
|
189 |
-
return alm;
|
190 |
-
}
|
191 |
-
|
192 |
-
/**
|
193 |
-
* Set the required classnames for parsing data and injecting content into the Elementor listing
|
194 |
-
*
|
195 |
-
* @param {*} alm
|
196 |
-
* @param {*} type
|
197 |
-
*/
|
198 |
-
function setElementorClasses(alm, type = 'posts') {
|
199 |
-
// Container Class
|
200 |
-
alm.addons.elementor_container_class =
|
201 |
-
type === 'woocommerce' ? alm.addons.elementor_settings.woo_container_class : alm.addons.elementor_settings.posts_container_class;
|
202 |
-
|
203 |
-
// Item Class
|
204 |
-
alm.addons.elementor_item_class = type === 'woocommerce' ? alm.addons.elementor_settings.woo_item_class : alm.addons.elementor_settings.posts_item_class;
|
205 |
-
|
206 |
-
// Pagination Class
|
207 |
-
alm.addons.elementor_pagination_class =
|
208 |
-
type === 'woocommerce' ? `.${alm.addons.elementor_settings.woo_pagination_class}` : `.${alm.addons.elementor_settings.posts_pagination_class}`;
|
209 |
-
|
210 |
-
return alm;
|
211 |
-
}
|
212 |
-
|
213 |
-
/**
|
214 |
-
* Parse Masonry Settings from Elementor Data atts
|
215 |
-
*
|
216 |
-
* @param {*} alm
|
217 |
-
*/
|
218 |
-
function parseMasonryConfig(alm) {
|
219 |
-
if (!alm.addons.elementor_element) {
|
220 |
-
return alm; // Exit if not found.
|
221 |
-
}
|
222 |
-
|
223 |
-
const target = alm.addons.elementor_element;
|
224 |
-
|
225 |
-
const settings = target.dataset.settings ? JSON.parse(target.dataset.settings) : '';
|
226 |
-
if (!settings) {
|
227 |
-
return alm; // Exit if not found.
|
228 |
-
}
|
229 |
-
|
230 |
-
alm.addons.elementor_masonry = settings.hasOwnProperty('cards_masonry') || settings.hasOwnProperty('classic_masonry');
|
231 |
-
if (alm.addons.elementor_masonry) {
|
232 |
-
alm.addons.elementor_masonry_columns = parseInt(settings.cards_columns) || parseInt(settings.classic_columns);
|
233 |
-
alm.addons.elementor_masonry_columns_mobile = parseInt(settings.cards_columns_mobile) || parseInt(settings.classic_columns_mobile);
|
234 |
-
alm.addons.elementor_masonry_columns_tablet = parseInt(settings.cards_columns_tablet) || parseInt(settings.classic_columns_tablet);
|
235 |
-
alm.addons.elementor_masonry_gap = parseInt(settings.cards_row_gap.size);
|
236 |
-
}
|
237 |
-
|
238 |
-
return alm;
|
239 |
-
}
|
240 |
-
|
241 |
-
/**
|
242 |
-
* Position Elementor Masonry Items
|
243 |
-
*
|
244 |
-
* @param {*} alm
|
245 |
-
* @param {*} container_class
|
246 |
-
* @param {*} item_class
|
247 |
-
*/
|
248 |
-
function positionMasonryItems(alm, container_class, item_class) {
|
249 |
-
let heights = [];
|
250 |
-
|
251 |
-
// Get Elementor Settings
|
252 |
-
const columnsCount = alm.addons.elementor_masonry_columns;
|
253 |
-
const columnsCountTablet = alm.addons.elementor_masonry_columns_tablet;
|
254 |
-
const columnsCountMobile = alm.addons.elementor_masonry_columns_mobile;
|
255 |
-
const verticalSpaceBetween = alm.addons.elementor_masonry_gap;
|
256 |
-
let columns = columnsCount;
|
257 |
-
|
258 |
-
// Get Elementor Breakpoints
|
259 |
-
const breakpoints = window.elementorFrontendConfig && window.elementorFrontendConfig.breakpoints ? window.elementorFrontendConfig.breakpoints : 0;
|
260 |
-
const windowW = window.innerWidth;
|
261 |
-
|
262 |
-
// Set Columns
|
263 |
-
if (windowW > breakpoints.lg) {
|
264 |
-
columns = columnsCount;
|
265 |
-
} else if (windowW > breakpoints.md) {
|
266 |
-
columns = columnsCountTablet;
|
267 |
-
} else {
|
268 |
-
columns = columnsCountMobile;
|
269 |
-
}
|
270 |
-
|
271 |
-
// Get Containers
|
272 |
-
const container = document.querySelector(container_class);
|
273 |
-
if (!container) {
|
274 |
-
return false;
|
275 |
-
}
|
276 |
-
const items = container.querySelectorAll(item_class);
|
277 |
-
if (!items) {
|
278 |
-
return false;
|
279 |
-
}
|
280 |
-
|
281 |
-
// Loop items
|
282 |
-
items.forEach((item, index) => {
|
283 |
-
let row = Math.floor(index / columns);
|
284 |
-
let itemHeight = item.getBoundingClientRect().height + verticalSpaceBetween;
|
285 |
-
|
286 |
-
if (row) {
|
287 |
-
let itemPosition = jQuery(item).position();
|
288 |
-
let indexAtRow = index % columns;
|
289 |
-
let pullHeight = Math.round(itemPosition.top) - heights[indexAtRow];
|
290 |
-
|
291 |
-
pullHeight *= -1;
|
292 |
-
item.style.marginTop = `${Math.round(pullHeight)}px`;
|
293 |
-
heights[indexAtRow] += itemHeight;
|
294 |
-
} else {
|
295 |
-
heights.push(itemHeight);
|
296 |
-
}
|
297 |
-
});
|
298 |
-
}
|
299 |
-
|
300 |
-
/**
|
301 |
-
* Determine the type of elementor widget (woocommerce || posts)
|
302 |
-
*
|
303 |
-
* @param {*} target
|
304 |
-
* @param {*} classname
|
305 |
-
*/
|
306 |
-
function elementorGetWidgetType(target) {
|
307 |
-
if (!target) {
|
308 |
-
return false;
|
309 |
-
}
|
310 |
-
// If container contains the woocommerce elementor class
|
311 |
-
const type = target.classList.contains('elementor-wc-products') ? 'woocommerce' : 'posts';
|
312 |
-
return type;
|
313 |
-
}
|
314 |
-
|
315 |
-
/**
|
316 |
-
* Get the upcoming URL from the a.next link from the HTML
|
317 |
-
*
|
318 |
-
* @param {HTMLElement} element
|
319 |
-
* @param {String} classname
|
320 |
-
* @return {string} href
|
321 |
-
*/
|
322 |
-
function elementorGetNextPage(element, classname) {
|
323 |
-
const pagination = element.querySelector(classname);
|
324 |
-
const href = pagination ? elementorGetNextUrl(pagination) : '';
|
325 |
-
|
326 |
-
return href;
|
327 |
-
}
|
328 |
-
|
329 |
-
/**
|
330 |
-
* Get the URL of the next page to load from the a.next href
|
331 |
-
*
|
332 |
-
* @param {HTMLElement} element
|
333 |
-
* @return {String} url
|
334 |
-
*/
|
335 |
-
function elementorGetNextUrl(element) {
|
336 |
-
if (!element) {
|
337 |
-
return '';
|
338 |
-
}
|
339 |
-
return element.querySelector('a.next') ? element.querySelector('a.next').href : '';
|
340 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/addons/filters.js
DELETED
@@ -1,161 +0,0 @@
|
|
1 |
-
import getQueryVariable from '../helpers/getQueryVariable';
|
2 |
-
const FILTERS_CLASSNAME = 'alm-filters';
|
3 |
-
|
4 |
-
/**
|
5 |
-
* parseQuerystring
|
6 |
-
* Parse a filter querystring for returning caches directories
|
7 |
-
*
|
8 |
-
* @param {Object} alm
|
9 |
-
* @param {Array} elements
|
10 |
-
* @since 5.3.1
|
11 |
-
*/
|
12 |
-
export function parseQuerystring(path) {
|
13 |
-
// Get querystring
|
14 |
-
let query = window.location.search.substring(1);
|
15 |
-
let obj = '';
|
16 |
-
let cache_dir = '';
|
17 |
-
|
18 |
-
// Parse querystring into object
|
19 |
-
if (query) {
|
20 |
-
obj = JSON.parse('{"' + query.replace(/&/g, '","').replace(/=/g, '":"') + '"}', function (key, value) {
|
21 |
-
// Replace + with - in URL
|
22 |
-
return key === '' ? value : decodeURIComponent(value.replace(/\+/g, '-'));
|
23 |
-
});
|
24 |
-
|
25 |
-
// Remove the following properties from the object as they should not be included in the cache ID
|
26 |
-
|
27 |
-
if (obj.pg) {
|
28 |
-
// `pg` object prop
|
29 |
-
delete obj.pg;
|
30 |
-
}
|
31 |
-
|
32 |
-
if (obj.auto) {
|
33 |
-
// `auto` object prop
|
34 |
-
delete obj.auto;
|
35 |
-
}
|
36 |
-
}
|
37 |
-
|
38 |
-
if (obj) {
|
39 |
-
cache_dir += '/';
|
40 |
-
Object.keys(obj).forEach((key, index) => {
|
41 |
-
cache_dir += index > 0 ? '--' : '';
|
42 |
-
cache_dir += `${key}--${obj[key]}`;
|
43 |
-
});
|
44 |
-
}
|
45 |
-
|
46 |
-
return path + cache_dir;
|
47 |
-
}
|
48 |
-
|
49 |
-
/**
|
50 |
-
* Build new paging URL for filters
|
51 |
-
*
|
52 |
-
* @param {Object} alm
|
53 |
-
* @param {String} querystring
|
54 |
-
* @param {Int} page
|
55 |
-
* @since 5.3.5
|
56 |
-
*/
|
57 |
-
export function buildFilterURL(alm, querystring = '', page = 0) {
|
58 |
-
let qs = querystring;
|
59 |
-
|
60 |
-
if (alm.addons.filters_paging) {
|
61 |
-
if (page > 1) {
|
62 |
-
// Paged
|
63 |
-
if (qs) {
|
64 |
-
// If already has `pg` in querystring
|
65 |
-
if (getQueryVariable('pg')) {
|
66 |
-
qs = querystring.replace(/(pg=)[^\&]+/, '$1' + page);
|
67 |
-
} else {
|
68 |
-
qs = querystring + '&pg=' + page;
|
69 |
-
}
|
70 |
-
} else {
|
71 |
-
qs = '?pg=' + page;
|
72 |
-
}
|
73 |
-
} else {
|
74 |
-
// Not Paged
|
75 |
-
qs = querystring.replace(/(pg=)[^\&]+/, '');
|
76 |
-
qs = qs === '?' ? '' : qs; // Remove `?` if only symbol in querystring
|
77 |
-
qs = qs[qs.length - 1] === '&' ? qs.slice(0, -1) : qs; // Remove trailing `&` symbols
|
78 |
-
}
|
79 |
-
}
|
80 |
-
|
81 |
-
return qs;
|
82 |
-
}
|
83 |
-
|
84 |
-
/**
|
85 |
-
* Create data attributes for Filters paged results
|
86 |
-
*
|
87 |
-
* @param {Object} alm
|
88 |
-
* @param {Array} elements
|
89 |
-
* @since 5.3.1
|
90 |
-
*/
|
91 |
-
export function createMasonryFiltersPage(alm, element) {
|
92 |
-
if (!alm.addons.filters) {
|
93 |
-
return element;
|
94 |
-
}
|
95 |
-
|
96 |
-
let querystring = window.location.search;
|
97 |
-
let page = alm.page + 1;
|
98 |
-
page = alm.addons.preloaded === 'true' ? page + 1 : page;
|
99 |
-
element = masonryFiltersAtts(alm, element, querystring, page);
|
100 |
-
|
101 |
-
return element;
|
102 |
-
}
|
103 |
-
|
104 |
-
/**
|
105 |
-
* Create data attributes for Filters - used when ?pg=2, ?pg=3 etc are hit on page load
|
106 |
-
*
|
107 |
-
* @param {Object} alm
|
108 |
-
* @param {Array} elements
|
109 |
-
* @since 5.3.1
|
110 |
-
*/
|
111 |
-
export function createMasonryFiltersPages(alm, elements) {
|
112 |
-
if (!alm.addons.filters) {
|
113 |
-
return elements;
|
114 |
-
}
|
115 |
-
|
116 |
-
let pagenum = 1;
|
117 |
-
let page = alm.page;
|
118 |
-
let querystring = window.location.search;
|
119 |
-
|
120 |
-
if (alm.addons.filters_startpage > 1) {
|
121 |
-
// Create pages
|
122 |
-
let posts_per_page = parseInt(alm.posts_per_page);
|
123 |
-
let return_data = [];
|
124 |
-
|
125 |
-
// Slice data array into individual pages
|
126 |
-
for (let i = 0; i < elements.length; i += posts_per_page) {
|
127 |
-
return_data.push(elements.slice(i, posts_per_page + i));
|
128 |
-
}
|
129 |
-
|
130 |
-
// Loop new data array
|
131 |
-
for (let k = 0; k < return_data.length; k++) {
|
132 |
-
let target = k > 0 ? k * posts_per_page : 0;
|
133 |
-
pagenum = k + 1;
|
134 |
-
|
135 |
-
if (elements[target]) {
|
136 |
-
elements[target] = masonryFiltersAtts(alm, elements[target], querystring, pagenum);
|
137 |
-
}
|
138 |
-
}
|
139 |
-
} else {
|
140 |
-
pagenum = page;
|
141 |
-
elements[0] = masonryFiltersAtts(alm, elements[0], querystring, pagenum);
|
142 |
-
}
|
143 |
-
|
144 |
-
return elements;
|
145 |
-
}
|
146 |
-
|
147 |
-
// Create the attributes (page, url, classes) for the masonry items
|
148 |
-
function masonryFiltersAtts(alm, element, querystring, pagenum) {
|
149 |
-
element.classList.add(FILTERS_CLASSNAME);
|
150 |
-
element.dataset.page = pagenum;
|
151 |
-
if (pagenum > 1) {
|
152 |
-
element.dataset.url = alm.canonical_url + buildFilterURL(alm, querystring, pagenum);
|
153 |
-
} else {
|
154 |
-
let updatedQS = querystring.replace(/(pg=)[^\&]+/, ''); // Remove `pg` from querysting
|
155 |
-
updatedQS = updatedQS === '?' ? '' : updatedQS; // Remove empty querysting
|
156 |
-
|
157 |
-
element.dataset.url = alm.canonical_url + updatedQS;
|
158 |
-
}
|
159 |
-
|
160 |
-
return element;
|
161 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/addons/seo.js
DELETED
@@ -1,149 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* createMasonrySEOPage
|
3 |
-
* Create data attributes for SEO paged results
|
4 |
-
*
|
5 |
-
* @param {Object} alm
|
6 |
-
* @param {Array} elements
|
7 |
-
* @since 5.3.1
|
8 |
-
*/
|
9 |
-
export function createMasonrySEOPage(alm, element) {
|
10 |
-
if (!alm.addons.seo) {
|
11 |
-
return element;
|
12 |
-
}
|
13 |
-
|
14 |
-
let querystring = window.location.search;
|
15 |
-
let seo_class = 'alm-seo';
|
16 |
-
let page = alm.page + 1;
|
17 |
-
page = alm.addons.preloaded === 'true' ? page + 1 : page;
|
18 |
-
element = masonrySEOAtts(alm, element, querystring, seo_class, page);
|
19 |
-
|
20 |
-
return element;
|
21 |
-
}
|
22 |
-
|
23 |
-
/**
|
24 |
-
* createMasonrySEOPages
|
25 |
-
* Create data attributes for SEO - used when /page/2/, /page/3/ etc are hit on page load
|
26 |
-
*
|
27 |
-
* @param {Object} alm
|
28 |
-
* @param {Array} elements
|
29 |
-
* @since 5.3.1
|
30 |
-
*/
|
31 |
-
export function createMasonrySEOPages(alm, elements) {
|
32 |
-
if (!alm.addons.seo) {
|
33 |
-
return elements;
|
34 |
-
}
|
35 |
-
|
36 |
-
let pagenum = 1;
|
37 |
-
let page = alm.page;
|
38 |
-
let seo_class = 'alm-seo';
|
39 |
-
let querystring = window.location.search;
|
40 |
-
|
41 |
-
if (alm.start_page > 1) {
|
42 |
-
// Create pages
|
43 |
-
let posts_per_page = parseInt(alm.posts_per_page);
|
44 |
-
let return_data = [];
|
45 |
-
|
46 |
-
// Slice data array into individual pages
|
47 |
-
for (let i = 0; i < elements.length; i += posts_per_page) {
|
48 |
-
return_data.push(elements.slice(i, posts_per_page + i));
|
49 |
-
}
|
50 |
-
|
51 |
-
// Loop new data array
|
52 |
-
for (let k = 0; k < return_data.length; k++) {
|
53 |
-
let target = k > 0 ? k * posts_per_page : 0;
|
54 |
-
pagenum = k + 1;
|
55 |
-
if (elements[target]) {
|
56 |
-
elements[target] = masonrySEOAtts(
|
57 |
-
alm,
|
58 |
-
elements[target],
|
59 |
-
querystring,
|
60 |
-
seo_class,
|
61 |
-
pagenum
|
62 |
-
);
|
63 |
-
}
|
64 |
-
}
|
65 |
-
} else {
|
66 |
-
pagenum = page;
|
67 |
-
elements[0] = masonrySEOAtts(
|
68 |
-
alm,
|
69 |
-
elements[0],
|
70 |
-
querystring,
|
71 |
-
seo_class,
|
72 |
-
pagenum
|
73 |
-
);
|
74 |
-
}
|
75 |
-
|
76 |
-
return elements;
|
77 |
-
}
|
78 |
-
|
79 |
-
// Create the attributes (page, url, classes) for the masonry items
|
80 |
-
function masonrySEOAtts(alm, element, querystring, seo_class, pagenum) {
|
81 |
-
element.classList.add(seo_class);
|
82 |
-
element.dataset.page = pagenum;
|
83 |
-
|
84 |
-
if (alm.addons.seo_permalink === 'default') {
|
85 |
-
// Default Permalinks
|
86 |
-
if (pagenum > 1) {
|
87 |
-
element.dataset.url =
|
88 |
-
alm.canonical_url + querystring + '&paged=' + pagenum;
|
89 |
-
} else {
|
90 |
-
element.dataset.url = alm.canonical_url + querystring;
|
91 |
-
}
|
92 |
-
} else {
|
93 |
-
// Pretty Permalinks
|
94 |
-
if (pagenum > 1) {
|
95 |
-
element.dataset.url =
|
96 |
-
alm.canonical_url +
|
97 |
-
alm.addons.seo_leading_slash +
|
98 |
-
'page/' +
|
99 |
-
pagenum +
|
100 |
-
alm.addons.seo_trailing_slash +
|
101 |
-
querystring;
|
102 |
-
} else {
|
103 |
-
element.dataset.url = alm.canonical_url + querystring;
|
104 |
-
}
|
105 |
-
}
|
106 |
-
|
107 |
-
return element;
|
108 |
-
}
|
109 |
-
|
110 |
-
/**
|
111 |
-
* createSEOAttributes
|
112 |
-
* Create data attributes for SEO - used when /page/2/, /page/3/ etc are hit on page load
|
113 |
-
*
|
114 |
-
* @param {Object} alm
|
115 |
-
* @param {Array} elements
|
116 |
-
* ...
|
117 |
-
* @since 5.3.1
|
118 |
-
*/
|
119 |
-
export function createSEOAttributes(
|
120 |
-
alm,
|
121 |
-
element,
|
122 |
-
querystring,
|
123 |
-
seo_class,
|
124 |
-
pagenum
|
125 |
-
) {
|
126 |
-
element.setAttribute('class', 'alm-reveal' + seo_class + alm.tcc);
|
127 |
-
element.dataset.page = pagenum;
|
128 |
-
|
129 |
-
if (alm.addons.seo_permalink === 'default') {
|
130 |
-
// Default Permalinks
|
131 |
-
element.dataset.url =
|
132 |
-
pagenum > 1
|
133 |
-
? alm.canonical_url + querystring + '&paged=' + pagenum
|
134 |
-
: alm.canonical_url + querystring;
|
135 |
-
} else {
|
136 |
-
// Pretty Permalinks
|
137 |
-
element.dataset.url =
|
138 |
-
pagenum > 1
|
139 |
-
? alm.canonical_url +
|
140 |
-
alm.addons.seo_leading_slash +
|
141 |
-
'page/' +
|
142 |
-
pagenum +
|
143 |
-
alm.addons.seo_trailing_slash +
|
144 |
-
querystring
|
145 |
-
: alm.canonical_url + querystring;
|
146 |
-
}
|
147 |
-
|
148 |
-
return element;
|
149 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/addons/singleposts.js
DELETED
@@ -1,29 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* singlePostHTML
|
3 |
-
* Create the HTML for loading Single Posts
|
4 |
-
*
|
5 |
-
* @param {Object} response Query response
|
6 |
-
* @param {HTMLElement} target The target div
|
7 |
-
* @since 5.1.8.1
|
8 |
-
*/
|
9 |
-
export function singlePostHTML(response, target = null){
|
10 |
-
let data = {
|
11 |
-
html: '',
|
12 |
-
meta: {
|
13 |
-
postcount: 1,
|
14 |
-
totalposts: 1,
|
15 |
-
debug: 'Single Posts Query',
|
16 |
-
}
|
17 |
-
}
|
18 |
-
if(response.status === 200 && response.data && target){
|
19 |
-
let div = document.createElement("div");
|
20 |
-
div.innerHTML = response.data;
|
21 |
-
let htmlTarget = div.querySelector(target);
|
22 |
-
if(htmlTarget){
|
23 |
-
data.html = htmlTarget.innerHTML;
|
24 |
-
}
|
25 |
-
}
|
26 |
-
return data;
|
27 |
-
}
|
28 |
-
|
29 |
-
export default singlePostHTML;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/addons/woocommerce.js
DELETED
@@ -1,205 +0,0 @@
|
|
1 |
-
import axios from 'axios';
|
2 |
-
import loadItems from '../modules/loadItems';
|
3 |
-
|
4 |
-
/**
|
5 |
-
* Set up the instance of ALM WooCommerce
|
6 |
-
*
|
7 |
-
* @param {object} alm
|
8 |
-
* @since 5.3.0
|
9 |
-
*/
|
10 |
-
export function wooInit(alm) {
|
11 |
-
if (!alm || !alm.addons.woocommerce) {
|
12 |
-
return false;
|
13 |
-
}
|
14 |
-
|
15 |
-
alm.button.dataset.page = alm.addons.woocommerce_settings.paged + 1; // Page
|
16 |
-
|
17 |
-
// URL
|
18 |
-
let nextPage = alm.addons.woocommerce_settings.paged_urls[alm.addons.woocommerce_settings.paged];
|
19 |
-
if (nextPage) {
|
20 |
-
alm.button.dataset.url = nextPage;
|
21 |
-
} else {
|
22 |
-
alm.button.dataset.url = '';
|
23 |
-
}
|
24 |
-
|
25 |
-
// Set up URL and class parameters on first item in product listing
|
26 |
-
let products = document.querySelector(alm.addons.woocommerce_settings.container); // Get `ul.products`
|
27 |
-
if (products) {
|
28 |
-
products.setAttribute('aria-live', 'polite');
|
29 |
-
products.setAttribute('aria-atomic', 'true');
|
30 |
-
|
31 |
-
alm.listing.removeAttribute('aria-live');
|
32 |
-
alm.listing.removeAttribute('aria-atomic');
|
33 |
-
|
34 |
-
let product = products.querySelector(alm.addons.woocommerce_settings.products); // Get first `.product` item
|
35 |
-
if (product) {
|
36 |
-
product.classList.add('alm-woocommerce');
|
37 |
-
product.dataset.url = alm.addons.woocommerce_settings.paged_urls[alm.addons.woocommerce_settings.paged - 1];
|
38 |
-
product.dataset.page = alm.page;
|
39 |
-
product.dataset.pageTitle = document.title;
|
40 |
-
}
|
41 |
-
|
42 |
-
if (alm.addons.woocommerce_settings.paged > 1) {
|
43 |
-
almWooCommerceResultsTextInit(alm);
|
44 |
-
}
|
45 |
-
}
|
46 |
-
}
|
47 |
-
|
48 |
-
/**
|
49 |
-
* Core ALM WooCommerce product loader
|
50 |
-
*
|
51 |
-
* @param {HTMLElement} content
|
52 |
-
* @param {object} alm
|
53 |
-
* @param {String} pageTitle
|
54 |
-
* @since 5.3.0
|
55 |
-
*/
|
56 |
-
|
57 |
-
export function woocommerce(content, alm, pageTitle = document.title) {
|
58 |
-
if (!content || !alm) {
|
59 |
-
return false;
|
60 |
-
}
|
61 |
-
|
62 |
-
return new Promise((resolve) => {
|
63 |
-
let container = document.querySelector(alm.addons.woocommerce_settings.container); // Get `ul.products`
|
64 |
-
let products = content.querySelectorAll(alm.addons.woocommerce_settings.products); // Get all `.products`
|
65 |
-
let url = alm.addons.woocommerce_settings.paged_urls[alm.page];
|
66 |
-
|
67 |
-
if (container && products && url) {
|
68 |
-
// Convert NodeList to Array
|
69 |
-
products = Array.prototype.slice.call(products);
|
70 |
-
|
71 |
-
// Load the Products
|
72 |
-
(async function () {
|
73 |
-
await loadItems(container, products, alm, pageTitle, url, 'alm-woocommerce');
|
74 |
-
resolve(true);
|
75 |
-
})().catch((e) => {
|
76 |
-
console.log(e, 'There was an error with WooCommerce');
|
77 |
-
});
|
78 |
-
}
|
79 |
-
});
|
80 |
-
}
|
81 |
-
|
82 |
-
/**
|
83 |
-
* Reset a WooCommerce Instance by hitting the updated site URL
|
84 |
-
*
|
85 |
-
* @since 5.3.8
|
86 |
-
*/
|
87 |
-
export function wooReset() {
|
88 |
-
return new Promise((resolve) => {
|
89 |
-
let url = window.location;
|
90 |
-
axios
|
91 |
-
.get(url)
|
92 |
-
.then((response) => {
|
93 |
-
if (response.status === 200 && response.data) {
|
94 |
-
let div = document.createElement('div');
|
95 |
-
div.innerHTML = response.data; // Add data to div
|
96 |
-
|
97 |
-
let alm = div.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'); // Get ALM instance
|
98 |
-
let settings = alm ? alm.dataset.wooSettings : ''; // Get settings data
|
99 |
-
resolve(settings);
|
100 |
-
} else {
|
101 |
-
resolve(false);
|
102 |
-
}
|
103 |
-
})
|
104 |
-
.catch(function (error) {
|
105 |
-
resolve(false);
|
106 |
-
});
|
107 |
-
});
|
108 |
-
}
|
109 |
-
|
110 |
-
/**
|
111 |
-
* Get the content, title and results text from the Ajax response
|
112 |
-
*
|
113 |
-
* @param {object} alm
|
114 |
-
* @since 5.3.0
|
115 |
-
*/
|
116 |
-
export function wooGetContent(response, alm) {
|
117 |
-
let data = {
|
118 |
-
html: '',
|
119 |
-
meta: {
|
120 |
-
postcount: 1,
|
121 |
-
totalposts: alm.localize.total_posts,
|
122 |
-
debug: 'WooCommerce Query',
|
123 |
-
},
|
124 |
-
};
|
125 |
-
if (response.status === 200 && response.data) {
|
126 |
-
let div = document.createElement('div');
|
127 |
-
div.innerHTML = response.data;
|
128 |
-
|
129 |
-
// Get Page Title
|
130 |
-
let title = div.querySelector('title').innerHTML;
|
131 |
-
data.pageTitle = title;
|
132 |
-
|
133 |
-
// Get Products HTML
|
134 |
-
let products = div.querySelector(alm.addons.woocommerce_settings.container);
|
135 |
-
data.html = products ? products.innerHTML : '';
|
136 |
-
|
137 |
-
// Results Text
|
138 |
-
almWooCommerceResultsText(div, alm);
|
139 |
-
}
|
140 |
-
|
141 |
-
return data;
|
142 |
-
}
|
143 |
-
|
144 |
-
/**
|
145 |
-
* Set results text for WooCommerce Add-on.
|
146 |
-
*
|
147 |
-
* @param {HTMLElement} target
|
148 |
-
* @param {Object} alm
|
149 |
-
* @since 5.3
|
150 |
-
*/
|
151 |
-
function almWooCommerceResultsText(target = '', alm) {
|
152 |
-
if (target && alm && alm.addons.woocommerce_settings.results_text) {
|
153 |
-
let currentResults = target.querySelector(alm.addons.woocommerce_settings.results);
|
154 |
-
let link = alm.addons.woocommerce_settings.settings.previous_page_link;
|
155 |
-
let label = alm.addons.woocommerce_settings.settings.previous_page_label;
|
156 |
-
let sep = alm.addons.woocommerce_settings.settings.previous_page_sep;
|
157 |
-
|
158 |
-
if (alm.addons.woocommerce_settings.results_text) {
|
159 |
-
alm.addons.woocommerce_settings.results_text.forEach((element) => {
|
160 |
-
if (link && label) {
|
161 |
-
element.innerHTML = returnButton(currentResults, link, label, sep);
|
162 |
-
} else {
|
163 |
-
element.innerHTML = currentResults.innerHTML;
|
164 |
-
}
|
165 |
-
});
|
166 |
-
}
|
167 |
-
}
|
168 |
-
}
|
169 |
-
|
170 |
-
/**
|
171 |
-
* Initiate Results text.
|
172 |
-
*
|
173 |
-
* @param {Object} alm
|
174 |
-
* @since 5.3
|
175 |
-
*/
|
176 |
-
function almWooCommerceResultsTextInit(alm) {
|
177 |
-
if (alm && alm.addons.woocommerce_settings.results_text) {
|
178 |
-
let results = document.querySelectorAll(alm.addons.woocommerce_settings.results);
|
179 |
-
if (results.length < 1) {
|
180 |
-
return false;
|
181 |
-
}
|
182 |
-
let link = alm.addons.woocommerce_settings.settings.previous_page_link;
|
183 |
-
let label = alm.addons.woocommerce_settings.settings.previous_page_label;
|
184 |
-
let sep = alm.addons.woocommerce_settings.settings.previous_page_sep;
|
185 |
-
// Loop all result text elements
|
186 |
-
results.forEach((element) => {
|
187 |
-
if (link && label) {
|
188 |
-
element.innerHTML = returnButton(element, link, label, sep);
|
189 |
-
}
|
190 |
-
});
|
191 |
-
}
|
192 |
-
}
|
193 |
-
|
194 |
-
/**
|
195 |
-
* Create button text for returning to the first page
|
196 |
-
*
|
197 |
-
* @param {*} text
|
198 |
-
* @param {*} link
|
199 |
-
* @param {*} label
|
200 |
-
* @param {*} seperator
|
201 |
-
*/
|
202 |
-
function returnButton(text, link, label, seperator) {
|
203 |
-
let button = ` ${seperator} <a href="${link}">${label}</a>`;
|
204 |
-
return text.innerHTML + button;
|
205 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/ajax-load-more.js
DELETED
@@ -1,2574 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* Ajax Load More
|
3 |
-
* https://connekthq.com/plugins/ajax-load-more/
|
4 |
-
* Author: Darren Cooney
|
5 |
-
* Twitter: @KaptonKaos, @ajaxloadmore, @connekthq
|
6 |
-
* Copyright Connekt Media - https://connekthq.com
|
7 |
-
*/
|
8 |
-
|
9 |
-
// Polyfills
|
10 |
-
require('@babel/polyfill/noConflict');
|
11 |
-
require('focus-options-polyfill');
|
12 |
-
require('./helpers/polyfills.js');
|
13 |
-
|
14 |
-
// External Modules
|
15 |
-
let qs = require('qs');
|
16 |
-
let imagesLoaded = require('imagesloaded');
|
17 |
-
import axios from 'axios';
|
18 |
-
import smoothscroll from 'smoothscroll-polyfill'; // Smooth scrolling polyfill
|
19 |
-
smoothscroll.polyfill();
|
20 |
-
|
21 |
-
// ALM Modules
|
22 |
-
import './helpers/helpers';
|
23 |
-
//import commentReplyFix from './helpers/commentReplyFix';
|
24 |
-
import getParameterByName from './helpers/getParameterByName';
|
25 |
-
import almAppendChildren from './helpers/almAppendChildren';
|
26 |
-
import tableWrap from './helpers/tableWrap';
|
27 |
-
import getCacheUrl from './helpers/getCacheUrl';
|
28 |
-
import almDomParser from './helpers/almDomParser';
|
29 |
-
import stripEmptyNodes from './helpers/stripEmptyNodes';
|
30 |
-
import * as queryParams from './helpers/queryParams';
|
31 |
-
import * as resultsText from './modules/resultsText';
|
32 |
-
import { tableOfContents } from './modules/tableofcontents';
|
33 |
-
import setLocalizedVars from './modules/setLocalizedVars';
|
34 |
-
import insertScript from './modules/insertScript';
|
35 |
-
import setFocus from './modules/setFocus';
|
36 |
-
import getButtonURL from './modules/getButtonURL';
|
37 |
-
import almMasonry from './modules/masonry';
|
38 |
-
import almFadeIn from './modules/fadeIn';
|
39 |
-
import almFadeOut from './modules/fadeOut';
|
40 |
-
import almFilter from './modules/filtering';
|
41 |
-
import almNoResults from './modules/noResults';
|
42 |
-
import almDebug from './modules/almDebug';
|
43 |
-
import getScrollPercentage from './modules/getScrollPercentage';
|
44 |
-
import srcsetPolyfill from './helpers/srcsetPolyfill';
|
45 |
-
import { showPlaceholder, hidePlaceholder } from './modules/placeholder';
|
46 |
-
import { singlePostHTML } from './addons/singleposts';
|
47 |
-
import { createCacheFile } from './addons/cache';
|
48 |
-
import { wooInit, woocommerce, wooGetContent, wooReset } from './addons/woocommerce';
|
49 |
-
import { elementorCreateParams, elementorGetContent, elementorInit, elementor } from './addons/elementor';
|
50 |
-
import { buildFilterURL } from './addons/filters';
|
51 |
-
import { createSEOAttributes } from './addons/seo';
|
52 |
-
|
53 |
-
// Global filtering var
|
54 |
-
let alm_is_filtering = false;
|
55 |
-
|
56 |
-
// Start ALM
|
57 |
-
(function () {
|
58 |
-
'use strict';
|
59 |
-
|
60 |
-
/**
|
61 |
-
* ajaxloadmore
|
62 |
-
* Init Ajax Load More
|
63 |
-
*
|
64 |
-
* @param {*} el
|
65 |
-
* @param {*} e
|
66 |
-
*/
|
67 |
-
let ajaxloadmore = function (el, e) {
|
68 |
-
// Move user to top of page to prevent loading of unnessasry posts
|
69 |
-
if (alm_localize && alm_localize.scrolltop === 'true') {
|
70 |
-
window.scrollTo(0, 0);
|
71 |
-
}
|
72 |
-
|
73 |
-
//Set ALM Variables
|
74 |
-
let alm = this;
|
75 |
-
alm.AjaxLoadMore = {};
|
76 |
-
alm.addons = {};
|
77 |
-
alm.extensions = {};
|
78 |
-
alm.integration = {};
|
79 |
-
alm.window = window;
|
80 |
-
alm.page = 0;
|
81 |
-
alm.posts = 0;
|
82 |
-
alm.totalposts = 0;
|
83 |
-
alm.proceed = false;
|
84 |
-
alm.disable_ajax = false;
|
85 |
-
alm.init = true;
|
86 |
-
alm.loading = true;
|
87 |
-
alm.finished = false;
|
88 |
-
alm.timer = null;
|
89 |
-
|
90 |
-
alm.ua = window.navigator.userAgent ? window.navigator.userAgent : ''; // Browser User Agent
|
91 |
-
alm.vendor = window.navigator.vendor ? window.navigator.vendor : ''; // Browser Vendor
|
92 |
-
alm.isSafari = /Safari/i.test(alm.ua) && /Apple Computer/.test(alm.vendor) && !/Mobi|Android/i.test(alm.ua);
|
93 |
-
|
94 |
-
alm.main = el;
|
95 |
-
alm.master_id = el.dataset.id ? `ajax-load-more-${el.dataset.id}` : el.id; // The defined or generated ID of the ALM instance
|
96 |
-
el.classList.add('alm-' + e); // Add unique classname
|
97 |
-
el.setAttribute('data-alm-id', e); // Add unique data id
|
98 |
-
|
99 |
-
// Get localized <script/> variables
|
100 |
-
alm.master_id = alm.master_id.replace(/-/g, '_'); // Convert dashes to underscores for the var name
|
101 |
-
alm.localize = window[alm.master_id + '_vars']; // Get localize vars
|
102 |
-
|
103 |
-
// Main ALM Containers
|
104 |
-
alm.main = el; // Top level DOM element
|
105 |
-
alm.listing = el.querySelector('.alm-listing') || el.querySelector('.alm-comments');
|
106 |
-
alm.content = alm.listing;
|
107 |
-
alm.el = alm.content;
|
108 |
-
alm.ajax = el.querySelector('.alm-ajax');
|
109 |
-
alm.container_type = alm.listing.dataset.containerType;
|
110 |
-
|
111 |
-
// Instance Params
|
112 |
-
alm.canonical_url = el.dataset.canonicalUrl;
|
113 |
-
alm.nested = el.dataset.nested ? el.dataset.nested : null;
|
114 |
-
alm.is_search = el.dataset.search;
|
115 |
-
alm.slug = el.dataset.slug;
|
116 |
-
alm.post_id = el.dataset.postId;
|
117 |
-
alm.id = el.dataset.id ? el.dataset.id : '';
|
118 |
-
|
119 |
-
// No results template
|
120 |
-
let alm_no_results = el.querySelector('.alm-no-results');
|
121 |
-
alm.no_results = alm_no_results ? alm_no_results.innerHTML : '';
|
122 |
-
|
123 |
-
// Shortcode Params
|
124 |
-
alm.repeater = alm.listing.dataset.repeater; // Repeaters
|
125 |
-
alm.theme_repeater = alm.listing.dataset.themeRepeater;
|
126 |
-
|
127 |
-
alm.post_type = alm.listing.dataset.postType ? alm.listing.dataset.postType : 'post';
|
128 |
-
alm.sticky_posts = alm.listing.dataset.stickyPosts ? alm.listing.dataset.stickyPosts : null;
|
129 |
-
|
130 |
-
alm.btnWrap = el.querySelectorAll('.alm-btn-wrap'); // Get all `.alm-button-wrap` divs
|
131 |
-
alm.btnWrap = Array.prototype.slice.call(alm.btnWrap); // Convert NodeList to array
|
132 |
-
alm.btnWrap[alm.btnWrap.length - 1].style.visibility = 'visible'; // Get last element (used for nesting)
|
133 |
-
alm.trigger = alm.btnWrap[alm.btnWrap.length - 1];
|
134 |
-
alm.button = alm.trigger.querySelector('button.alm-load-more-btn');
|
135 |
-
|
136 |
-
alm.button_label = alm.listing.dataset.buttonLabel;
|
137 |
-
alm.button_loading_label = alm.listing.dataset.buttonLoadingLabel;
|
138 |
-
alm.button_done_label = alm.listing.dataset.buttonDoneLabel;
|
139 |
-
|
140 |
-
alm.placeholder = alm.main.querySelector('.alm-placeholder');
|
141 |
-
|
142 |
-
alm.scroll_distance = alm.listing.dataset.scrollDistance;
|
143 |
-
alm.scroll_distance = alm.scroll_distance ? alm.scroll_distance : 100;
|
144 |
-
alm.scroll_container = alm.listing.dataset.scrollContainer;
|
145 |
-
alm.scroll_direction = alm.listing.dataset.scrollDirection;
|
146 |
-
alm.max_pages = alm.listing.dataset.maxPages ? parseInt(alm.listing.dataset.maxPages) : 0;
|
147 |
-
alm.pause_override = alm.listing.dataset.pauseOverride; // true | false
|
148 |
-
alm.pause = alm.listing.dataset.pause ? alm.listing.dataset.pause : false; // true | false
|
149 |
-
alm.transition = alm.listing.dataset.transition; // Transition
|
150 |
-
alm.transition_container = alm.listing.dataset.transitionContainer; // Transition Container
|
151 |
-
alm.tcc = alm.listing.dataset.transitionContainerClasses; // Transition Container Classes
|
152 |
-
alm.speed = alm_localize.speed ? parseInt(alm_localize.speed) : 200;
|
153 |
-
alm.images_loaded = alm.listing.dataset.imagesLoaded ? alm.listing.dataset.imagesLoaded : false;
|
154 |
-
alm.destroy_after = alm.listing.dataset.destroyAfter ? alm.listing.dataset.destroyAfter : '';
|
155 |
-
alm.orginal_posts_per_page = parseInt(alm.listing.dataset.postsPerPage); // Used for paging add-on
|
156 |
-
alm.posts_per_page = alm.listing.dataset.postsPerPage;
|
157 |
-
alm.offset = alm.listing.dataset.offset ? parseInt(alm.listing.dataset.offset) : 0;
|
158 |
-
alm.integration.woocommerce = alm.listing.dataset.woocommerce ? alm.listing.dataset.woocommerce : false;
|
159 |
-
alm.integration.woocommerce = alm.integration.woocommerce === 'true' ? true : false;
|
160 |
-
alm.is_search = alm.is_search === undefined ? false : alm.is_search;
|
161 |
-
alm.search_value = alm.is_search === 'true' ? alm.slug : ''; // Convert to value of slug for appending to seo url
|
162 |
-
|
163 |
-
// Add-on Shortcode Params
|
164 |
-
|
165 |
-
// Elementor add-on
|
166 |
-
alm.addons.elementor = alm.listing.dataset.elementor === 'posts' && alm.listing.dataset.elementorSettings ? true : false;
|
167 |
-
if (alm.addons.elementor) {
|
168 |
-
alm = elementorCreateParams(alm);
|
169 |
-
}
|
170 |
-
|
171 |
-
// WooCommerce add-on
|
172 |
-
alm.addons.woocommerce = alm.listing.dataset.woo && alm.listing.dataset.woo === 'true' ? true : false;
|
173 |
-
if (alm.addons.woocommerce && alm.listing.dataset.wooSettings) {
|
174 |
-
alm.addons.woocommerce_settings = JSON.parse(alm.listing.dataset.wooSettings);
|
175 |
-
alm.addons.woocommerce_settings.results_text = document.querySelectorAll(alm.addons.woocommerce_settings.results); // Add Results Text
|
176 |
-
alm.page = parseInt(alm.page) + parseInt(alm.addons.woocommerce_settings.paged);
|
177 |
-
}
|
178 |
-
|
179 |
-
// Cache add-on
|
180 |
-
alm.addons.cache = alm.listing.dataset.cache;
|
181 |
-
alm.addons.cache = alm.addons.cache === undefined ? false : alm.addons.cache;
|
182 |
-
if (alm.addons.cache === 'true') {
|
183 |
-
alm.addons.cache_id = alm.listing.dataset.cacheId;
|
184 |
-
alm.addons.cache_path = alm.listing.dataset.cachePath;
|
185 |
-
alm.addons.cache_logged_in = alm.listing.dataset.cacheLoggedIn;
|
186 |
-
alm.addons.cache_logged_in = alm.addons.cache_logged_in === undefined ? false : alm.addons.cache_logged_in;
|
187 |
-
}
|
188 |
-
|
189 |
-
// CTA add-on
|
190 |
-
alm.addons.cta = alm.listing.dataset.cta ? alm.listing.dataset.cta : false;
|
191 |
-
if (alm.addons.cta === 'true') {
|
192 |
-
alm.addons.cta_position = alm.listing.dataset.ctaPosition;
|
193 |
-
alm.addons.cta_repeater = alm.listing.dataset.ctaRepeater;
|
194 |
-
alm.addons.cta_theme_repeater = alm.listing.dataset.ctaThemeRepeater;
|
195 |
-
}
|
196 |
-
|
197 |
-
// Nextpage add-on
|
198 |
-
alm.addons.nextpage = alm.listing.dataset.nextpage;
|
199 |
-
if (alm.addons.nextpage === 'true') {
|
200 |
-
alm.addons.nextpage_urls = alm.listing.dataset.nextpageUrls;
|
201 |
-
alm.addons.nextpage_scroll = alm.listing.dataset.nextpageScroll;
|
202 |
-
alm.addons.nextpage_pageviews = alm.listing.dataset.nextpagePageviews;
|
203 |
-
alm.addons.nextpage_post_id = alm.listing.dataset.nextpagePostId;
|
204 |
-
alm.addons.nextpage_startpage = alm.listing.dataset.nextpageStartpage;
|
205 |
-
}
|
206 |
-
|
207 |
-
// Single Posts add-on
|
208 |
-
alm.addons.single_post = alm.listing.dataset.singlePost;
|
209 |
-
if (alm.addons.single_post === 'true') {
|
210 |
-
alm.addons.single_post_id = alm.listing.dataset.singlePostId;
|
211 |
-
alm.addons.single_post_order = alm.listing.dataset.singlePostOrder;
|
212 |
-
alm.addons.single_post_init_id = alm.listing.dataset.singlePostId;
|
213 |
-
alm.addons.single_post_taxonomy = alm.listing.dataset.singlePostTaxonomy;
|
214 |
-
alm.addons.single_post_excluded_terms = alm.listing.dataset.singlePostExcludedTerms;
|
215 |
-
alm.addons.single_post_progress_bar = alm.listing.dataset.singlePostProgressBar;
|
216 |
-
alm.addons.single_post_target = alm.listing.dataset.singlePostTarget;
|
217 |
-
}
|
218 |
-
|
219 |
-
// Comments add-on
|
220 |
-
alm.addons.comments = alm.listing.dataset.comments ? alm.listing.dataset.comments : false;
|
221 |
-
if (alm.addons.comments === 'true') {
|
222 |
-
alm.addons.comments_post_id = alm.listing.dataset.comments_post_id; // current post id
|
223 |
-
alm.addons.comments_per_page = alm.listing.dataset.comments_per_page;
|
224 |
-
alm.addons.comments_per_page = alm.addons.comments_per_page === undefined ? '5' : alm.addons.comments_per_page;
|
225 |
-
alm.addons.comments_type = alm.listing.dataset.comments_type;
|
226 |
-
alm.addons.comments_style = alm.listing.dataset.comments_style;
|
227 |
-
alm.addons.comments_template = alm.listing.dataset.comments_template;
|
228 |
-
alm.addons.comments_callback = alm.listing.dataset.comments_callback;
|
229 |
-
}
|
230 |
-
|
231 |
-
alm.addons.tabs = alm.listing.dataset.tabs;
|
232 |
-
|
233 |
-
alm.addons.filters = alm.listing.dataset.filters;
|
234 |
-
|
235 |
-
alm.addons.seo = alm.listing.dataset.seo;
|
236 |
-
|
237 |
-
// Preloaded
|
238 |
-
alm.addons.preloaded = alm.listing.dataset.preloaded; // Preloaded add-on
|
239 |
-
alm.addons.preloaded_amount = alm.listing.dataset.preloadedAmount ? alm.listing.dataset.preloadedAmount : 0;
|
240 |
-
alm.is_preloaded = alm.listing.dataset.isPreloaded === 'true' ? true : false;
|
241 |
-
|
242 |
-
// Users
|
243 |
-
alm.addons.users = alm.listing.dataset.users === 'true' ? true : false; // Users add-on
|
244 |
-
if (alm.addons.users) {
|
245 |
-
// Override paging params for users
|
246 |
-
alm.orginal_posts_per_page = alm.listing.dataset.usersPerPage;
|
247 |
-
alm.posts_per_page = alm.listing.dataset.usersPerPage;
|
248 |
-
}
|
249 |
-
|
250 |
-
// Extension Shortcode Params
|
251 |
-
alm.extensions.restapi = alm.listing.dataset.restapi; // REST API
|
252 |
-
alm.extensions.restapi_base_url = alm.listing.dataset.restapiBaseUrl;
|
253 |
-
alm.extensions.restapi_namespace = alm.listing.dataset.restapiNamespace;
|
254 |
-
alm.extensions.restapi_endpoint = alm.listing.dataset.restapiEndpoint;
|
255 |
-
alm.extensions.restapi_template_id = alm.listing.dataset.restapiTemplateId;
|
256 |
-
alm.extensions.restapi_debug = alm.listing.dataset.restapiDebug;
|
257 |
-
|
258 |
-
alm.extensions.acf = alm.listing.dataset.acf; // ACF
|
259 |
-
alm.extensions.acf_field_type = alm.listing.dataset.acfFieldType;
|
260 |
-
alm.extensions.acf_field_name = alm.listing.dataset.acfFieldName;
|
261 |
-
alm.extensions.acf_parent_field_name = alm.listing.dataset.acfParentFieldName;
|
262 |
-
alm.extensions.acf_post_id = alm.listing.dataset.acfPostId;
|
263 |
-
alm.extensions.acf = alm.extensions.acf === 'true' ? true : false;
|
264 |
-
// if field type, name or post ID is empty
|
265 |
-
if (alm.extensions.acf_field_type === undefined || alm.extensions.acf_field_name === undefined || alm.extensions.acf_post_id === undefined) {
|
266 |
-
alm.extensions.acf = false;
|
267 |
-
}
|
268 |
-
|
269 |
-
// Term Query
|
270 |
-
alm.extensions.term_query = alm.listing.dataset.termQuery; // TERM QUERY
|
271 |
-
alm.extensions.term_query_taxonomy = alm.listing.dataset.termQueryTaxonomy;
|
272 |
-
alm.extensions.term_query_hide_empty = alm.listing.dataset.termQueryHideEmpty;
|
273 |
-
alm.extensions.term_query_number = alm.listing.dataset.termQueryNumber;
|
274 |
-
alm.extensions.term_query = alm.extensions.term_query === 'true' ? true : false;
|
275 |
-
|
276 |
-
// Paging
|
277 |
-
alm.addons.paging = alm.listing.dataset.paging; // Paging add-on
|
278 |
-
if (alm.addons.paging === 'true') {
|
279 |
-
alm.addons.paging = true;
|
280 |
-
alm.addons.paging_init = true;
|
281 |
-
alm.addons.paging_controls = alm.listing.dataset.pagingControls === 'true' ? true : false;
|
282 |
-
alm.addons.paging_show_at_most = alm.listing.dataset.pagingShowAtMost;
|
283 |
-
alm.addons.paging_classes = alm.listing.dataset.pagingClasses;
|
284 |
-
alm.addons.paging_show_at_most = alm.addons.paging_show_at_most === undefined ? 7 : alm.addons.paging_show_at_most;
|
285 |
-
|
286 |
-
alm.addons.paging_first_label = alm.listing.dataset.pagingFirstLabel;
|
287 |
-
alm.addons.paging_previous_label = alm.listing.dataset.pagingPreviousLabel;
|
288 |
-
alm.addons.paging_next_label = alm.listing.dataset.pagingNextLabel;
|
289 |
-
alm.addons.paging_last_label = alm.listing.dataset.pagingLastLabel;
|
290 |
-
|
291 |
-
alm.addons.paging_scroll = alm.listing.dataset.pagingScroll ? alm.listing.dataset.pagingScroll : false;
|
292 |
-
alm.addons.paging_scrolltop = alm.listing.dataset.pagingScrolltop ? parseInt(alm.listing.dataset.pagingScrolltop) : 100;
|
293 |
-
|
294 |
-
// If preloaded, pause ALM
|
295 |
-
alm.pause = alm.addons.preloaded === 'true' ? true : alm.pause;
|
296 |
-
} else {
|
297 |
-
alm.addons.paging = false;
|
298 |
-
}
|
299 |
-
/* End Paging */
|
300 |
-
|
301 |
-
/* Filters */
|
302 |
-
if (alm.addons.filters === 'true') {
|
303 |
-
alm.addons.filters = true;
|
304 |
-
|
305 |
-
alm.addons.filters_url = alm.listing.dataset.filtersUrl === 'true' ? true : false;
|
306 |
-
alm.addons.filters_paging = alm.listing.dataset.filtersPaging === 'true' ? true : false;
|
307 |
-
alm.addons.filters_scroll = alm.listing.dataset.filtersScroll === 'true' ? true : false;
|
308 |
-
alm.addons.filters_scrolltop = alm.listing.dataset.filtersScrolltop ? alm.listing.dataset.filtersScrolltop : '30';
|
309 |
-
alm.addons.filters_analtyics = alm.listing.dataset.filtersAnalytics;
|
310 |
-
alm.addons.filters_debug = alm.listing.dataset.filtersDebug;
|
311 |
-
alm.addons.filters_startpage = 0;
|
312 |
-
|
313 |
-
// Get Paged Querystring Val
|
314 |
-
let page = getParameterByName('pg');
|
315 |
-
alm.addons.filters_startpage = page !== null ? parseInt(page) : 0;
|
316 |
-
|
317 |
-
// If not Paging add-on
|
318 |
-
if (!alm.addons.paging && alm.addons.filters_startpage > 0) {
|
319 |
-
alm.posts_per_page = alm.posts_per_page * alm.addons.filters_startpage;
|
320 |
-
alm.isPaged = alm.addons.filters_startpage > 0 ? true : false;
|
321 |
-
}
|
322 |
-
} else {
|
323 |
-
alm.addons.filters = false;
|
324 |
-
}
|
325 |
-
/* End Filters */
|
326 |
-
|
327 |
-
/* TABS */
|
328 |
-
if (alm.addons.tabs === 'true') {
|
329 |
-
alm.addons.tabs = true;
|
330 |
-
alm.addons.tab_template = alm.listing.dataset.tabTemplate ? alm.listing.dataset.tabTemplate : '';
|
331 |
-
alm.addons.tab_onload = alm.listing.dataset.tabOnload ? alm.listing.dataset.tabOnload : '';
|
332 |
-
alm.addons.tabs_resturl = alm.listing.dataset.tabsRestUrl ? alm.listing.dataset.tabsRestUrl : '';
|
333 |
-
|
334 |
-
// Locate active template (deeplinks)
|
335 |
-
if (alm.addons.tab_onload !== '') {
|
336 |
-
let tabNav = document.querySelector(`.alm-tab-nav li [data-tab-url=${alm.addons.tab_onload}]`);
|
337 |
-
alm.addons.tab_template = tabNav ? tabNav.dataset.tabTemplate : alm.addons.tab_template;
|
338 |
-
alm.listing.dataset.tabOnload = ''; // Clear tabOnload param
|
339 |
-
// Set selected tab
|
340 |
-
if (tabNav) {
|
341 |
-
let activeTab = document.querySelector(`.alm-tab-nav li .active`);
|
342 |
-
if (activeTab) {
|
343 |
-
activeTab.classList.remove('active');
|
344 |
-
}
|
345 |
-
}
|
346 |
-
}
|
347 |
-
} else {
|
348 |
-
alm.addons.tabs = false;
|
349 |
-
}
|
350 |
-
/* End TABS */
|
351 |
-
|
352 |
-
/* REST API */
|
353 |
-
if (alm.extensions.restapi === 'true') {
|
354 |
-
alm.extensions.restapi = true;
|
355 |
-
alm.extensions.restapi_debug = alm.extensions.restapi_debug === undefined ? false : alm.extensions.restapi_debug;
|
356 |
-
alm.extensions.restapi = alm.extensions.restapi_template_id === '' ? false : alm.extensions.restapi;
|
357 |
-
} else {
|
358 |
-
alm.extensions.restapi = false;
|
359 |
-
}
|
360 |
-
/* End REST API */
|
361 |
-
|
362 |
-
/* Preloaded */
|
363 |
-
if (alm.addons.preloaded === 'true') {
|
364 |
-
// Preloaded Amount
|
365 |
-
alm.addons.preloaded_amount = alm.addons.preloaded_amount === undefined ? alm.posts_per_page : alm.addons.preloaded_amount;
|
366 |
-
// Disable ALM if total_posts is less than or equal to preloaded_amount
|
367 |
-
if (alm.localize && alm.localize.total_posts) {
|
368 |
-
if (parseInt(alm.localize.total_posts) <= parseInt(alm.addons.preloaded_amount)) {
|
369 |
-
alm.addons.preloaded_total_posts = alm.localize.total_posts;
|
370 |
-
alm.disable_ajax = true;
|
371 |
-
}
|
372 |
-
}
|
373 |
-
} else {
|
374 |
-
alm.addons.preloaded = 'false';
|
375 |
-
}
|
376 |
-
/* End Preloaded */
|
377 |
-
|
378 |
-
/* SEO */
|
379 |
-
alm.addons.seo = alm.addons.seo === undefined ? false : alm.addons.seo;
|
380 |
-
alm.addons.seo = alm.addons.seo === 'true' ? true : alm.addons.seo;
|
381 |
-
|
382 |
-
if (alm.addons.seo) {
|
383 |
-
alm.addons.seo_permalink = alm.listing.dataset.seoPermalink;
|
384 |
-
alm.addons.seo_pageview = alm.listing.dataset.seoPageview;
|
385 |
-
alm.addons.seo_trailing_slash = alm.listing.dataset.seoTrailingSlash === 'false' ? '' : '/';
|
386 |
-
alm.addons.seo_leading_slash = alm.listing.dataset.seoLeadingSlash === 'true' ? '/' : '';
|
387 |
-
}
|
388 |
-
alm.start_page = alm.listing.dataset.seoStartPage;
|
389 |
-
|
390 |
-
if (alm.start_page) {
|
391 |
-
alm.addons.seo_scroll = alm.listing.dataset.seoScroll;
|
392 |
-
alm.addons.seo_scrolltop = alm.listing.dataset.seoScrolltop;
|
393 |
-
alm.addons.seo_controls = alm.listing.dataset.seoControls;
|
394 |
-
alm.isPaged = false;
|
395 |
-
if (alm.start_page > 1) {
|
396 |
-
alm.isPaged = true; // Is this a paged page > 1 ?
|
397 |
-
alm.posts_per_page = alm.start_page * alm.posts_per_page;
|
398 |
-
}
|
399 |
-
if (alm.addons.paging) {
|
400 |
-
// If paging, reset posts_per_page
|
401 |
-
alm.posts_per_page = alm.orginal_posts_per_page;
|
402 |
-
}
|
403 |
-
} else {
|
404 |
-
alm.start_page = 1;
|
405 |
-
}
|
406 |
-
/* End SEO */
|
407 |
-
|
408 |
-
/* Nextpage */
|
409 |
-
if (alm.addons.nextpage === 'true') {
|
410 |
-
alm.addons.nextpage = true;
|
411 |
-
alm.posts_per_page = 1;
|
412 |
-
|
413 |
-
if (alm.addons.nextpage_urls === undefined) {
|
414 |
-
alm.addons.nextpage_urls = 'true';
|
415 |
-
}
|
416 |
-
if (alm.addons.nextpage_scroll === undefined) {
|
417 |
-
alm.addons.nextpage_scroll = 'false:30';
|
418 |
-
}
|
419 |
-
if (alm.addons.nextpage_pageviews === undefined) {
|
420 |
-
alm.addons.nextpage_pageviews = 'true';
|
421 |
-
}
|
422 |
-
if (alm.addons.nextpage_post_id === undefined) {
|
423 |
-
alm.addons.nextpage = false;
|
424 |
-
alm.addons.nextpage_post_id = null;
|
425 |
-
}
|
426 |
-
if (alm.addons.nextpage_startpage === undefined) {
|
427 |
-
alm.addons.nextpage_startpage = 1;
|
428 |
-
}
|
429 |
-
if (alm.addons.nextpage_startpage > 1) {
|
430 |
-
alm.isPaged = true;
|
431 |
-
}
|
432 |
-
} else {
|
433 |
-
alm.addons.nextpage = false;
|
434 |
-
}
|
435 |
-
/* End Nextpage */
|
436 |
-
|
437 |
-
/* Single Post */
|
438 |
-
if (alm.addons.single_post === 'true') {
|
439 |
-
alm.addons.single_post = true;
|
440 |
-
alm.addons.single_post_permalink = '';
|
441 |
-
alm.addons.single_post_title = '';
|
442 |
-
alm.addons.single_post_slug = '';
|
443 |
-
alm.addons.single_post_order = alm.addons.single_post_order === undefined ? 'previous' : alm.addons.single_post_order;
|
444 |
-
alm.addons.single_post_taxonomy = alm.addons.single_post_taxonomy === undefined ? '' : alm.addons.single_post_taxonomy;
|
445 |
-
alm.addons.single_post_excluded_terms = alm.addons.single_post_excluded_terms === undefined ? '' : alm.addons.single_post_excluded_terms;
|
446 |
-
alm.addons.single_post_progress_bar = alm.addons.single_post_progress_bar === undefined ? '' : alm.addons.single_post_progress_bar;
|
447 |
-
alm.addons.single_post_target = alm.addons.single_post_target === undefined ? '' : alm.addons.single_post_target;
|
448 |
-
alm.addons.single_post_title_template = alm.listing.dataset.singlePostTitleTemplate;
|
449 |
-
alm.addons.single_post_siteTitle = alm.listing.dataset.singlePostSiteTitle;
|
450 |
-
alm.addons.single_post_siteTagline = alm.listing.dataset.singlePostSiteTagline;
|
451 |
-
alm.addons.single_post_pageview = alm.listing.dataset.singlePostPageview;
|
452 |
-
alm.addons.single_post_scroll = alm.listing.dataset.singlePostScroll;
|
453 |
-
alm.addons.single_post_scroll_speed = alm.listing.dataset.singlePostScrollSpeed;
|
454 |
-
alm.addons.single_post_scroll_top = alm.listing.dataset.singlePostScrolltop;
|
455 |
-
alm.addons.single_post_controls = alm.listing.dataset.singlePostControls;
|
456 |
-
} else {
|
457 |
-
alm.addons.single_post = false;
|
458 |
-
}
|
459 |
-
if (alm.addons.single_post && alm.addons.single_post_id === undefined) {
|
460 |
-
alm.addons.single_post_id = '';
|
461 |
-
alm.addons.single_post_init_id = '';
|
462 |
-
}
|
463 |
-
/* End Single Post */
|
464 |
-
|
465 |
-
/* Pause */
|
466 |
-
if (alm.pause === undefined || (alm.addons.seo && alm.start_page > 1)) {
|
467 |
-
// SEO only
|
468 |
-
alm.pause = false;
|
469 |
-
}
|
470 |
-
if (alm.addons.preloaded === 'true' && alm.addons.seo && alm.start_page > 0) {
|
471 |
-
// SEO + Preloaded
|
472 |
-
alm.pause = false;
|
473 |
-
}
|
474 |
-
if (alm.addons.filters && alm.addons.filters_startpage > 0) {
|
475 |
-
// Filters
|
476 |
-
alm.pause = false;
|
477 |
-
}
|
478 |
-
if (alm.addons.preloaded === 'true' && alm.addons.paging) {
|
479 |
-
alm.pause = true;
|
480 |
-
}
|
481 |
-
|
482 |
-
/* Repeater and Theme Repeater */
|
483 |
-
alm.repeater = alm.repeater === undefined ? 'default' : alm.repeater;
|
484 |
-
alm.theme_repeater = alm.theme_repeater === undefined ? false : alm.theme_repeater;
|
485 |
-
|
486 |
-
/* Max Pages (while scrolling) */
|
487 |
-
alm.max_pages = alm.max_pages === undefined || alm.max_pages === 0 ? 10000 : alm.max_pages;
|
488 |
-
|
489 |
-
/* Scroll Distance */
|
490 |
-
alm.scroll_distance = alm.scroll_distance === undefined ? 100 : alm.scroll_distance;
|
491 |
-
alm.scroll_distance_perc = false;
|
492 |
-
if (alm.scroll_distance.toString().indexOf('%') == -1) {
|
493 |
-
// Standard scroll_distance
|
494 |
-
alm.scroll_distance = parseInt(alm.scroll_distance);
|
495 |
-
} else {
|
496 |
-
// Percentage scroll_distance
|
497 |
-
alm.scroll_distance_perc = true;
|
498 |
-
alm.scroll_distance_orig = parseInt(alm.scroll_distance);
|
499 |
-
alm.scroll_distance = getScrollPercentage(alm);
|
500 |
-
}
|
501 |
-
|
502 |
-
/* Scroll Container */
|
503 |
-
alm.scroll_container = alm.scroll_container === undefined ? '' : alm.scroll_container;
|
504 |
-
|
505 |
-
/* Scroll Direction */
|
506 |
-
alm.scroll_direction = alm.scroll_direction === undefined ? 'vertical' : alm.scroll_direction;
|
507 |
-
|
508 |
-
/* Transition */
|
509 |
-
alm.transition = alm.transition === undefined ? 'fade' : alm.transition;
|
510 |
-
|
511 |
-
/* Transition Container Class */
|
512 |
-
alm.tcc = alm.tcc === undefined ? '' : alm.tcc;
|
513 |
-
|
514 |
-
/* Masonry */
|
515 |
-
alm.is_masonry_preloaded = false;
|
516 |
-
if (alm.transition === 'masonry') {
|
517 |
-
alm.masonry_init = true;
|
518 |
-
if (alm.msnry) {
|
519 |
-
alm.msnry.destroy(); // destroy masonry if it currently exists
|
520 |
-
} else {
|
521 |
-
alm.msnry = '';
|
522 |
-
}
|
523 |
-
alm.masonry_selector = alm.listing.dataset.masonrySelector;
|
524 |
-
alm.masonry_columnwidth = alm.listing.dataset.masonryColumnwidth;
|
525 |
-
alm.masonry_animation = alm.listing.dataset.masonryAnimation;
|
526 |
-
alm.masonry_animation = alm.masonry_animation === undefined ? 'standard' : alm.masonry_animation;
|
527 |
-
alm.masonry_horizontalorder = alm.listing.dataset.masonryHorizontalorder;
|
528 |
-
alm.masonry_horizontalorder = alm.masonry_horizontalorder === undefined ? 'true' : alm.masonry_horizontalorder;
|
529 |
-
alm.transition_container = false;
|
530 |
-
alm.images_loaded = false;
|
531 |
-
alm.is_masonry_preloaded = alm.addons.preloaded === 'true' ? true : alm.is_masonry_preloaded;
|
532 |
-
}
|
533 |
-
|
534 |
-
/* Scroll */
|
535 |
-
if (alm.listing.dataset.scroll === undefined) {
|
536 |
-
alm.scroll = true;
|
537 |
-
} else if (alm.listing.dataset.scroll === 'false') {
|
538 |
-
alm.scroll = false;
|
539 |
-
} else {
|
540 |
-
alm.scroll = true;
|
541 |
-
}
|
542 |
-
|
543 |
-
/* Transition Container */
|
544 |
-
alm.transition_container = alm.transition_container === undefined || alm.transition_container === 'true' ? true : false;
|
545 |
-
|
546 |
-
/* Button Labels */
|
547 |
-
alm.button_label = alm.button_label === undefined ? 'Load More' : alm.button_label;
|
548 |
-
alm.button_loading_label = alm.button_loading_label === undefined ? false : alm.button_loading_label;
|
549 |
-
alm.button_done_label = alm.button_done_label === undefined ? false : alm.button_done_label;
|
550 |
-
|
551 |
-
/* Paging */
|
552 |
-
if (alm.addons.paging) {
|
553 |
-
alm.main.classList.add('loading'); // add loading class to main container
|
554 |
-
} else {
|
555 |
-
let almChildren = el.childNodes; // Get child nodes of instance [nodeList]
|
556 |
-
if (almChildren) {
|
557 |
-
let almChildArray = Array.prototype.slice.call(almChildren); // Convert nodeList to array
|
558 |
-
|
559 |
-
// Filter array to find the `.alm-btn-wrap` div
|
560 |
-
let btnWrap = almChildArray.filter(function (element) {
|
561 |
-
if (!element.classList) {
|
562 |
-
// If not element (#text node)
|
563 |
-
return false;
|
564 |
-
}
|
565 |
-
return element.classList.contains('alm-btn-wrap');
|
566 |
-
});
|
567 |
-
alm.button = btnWrap ? btnWrap[0].querySelector('.alm-load-more-btn') : container.querySelector('.alm-btn-wrap .alm-load-more-btn');
|
568 |
-
} else {
|
569 |
-
alm.button = container.querySelector('.alm-btn-wrap .alm-load-more-btn');
|
570 |
-
}
|
571 |
-
|
572 |
-
// Reset button state
|
573 |
-
alm.button.disabled = false;
|
574 |
-
alm.button.style.display = '';
|
575 |
-
}
|
576 |
-
|
577 |
-
// Results Text
|
578 |
-
// Render "Showing x of y results" text.
|
579 |
-
// If woocommerce, get the default woocommerce results block
|
580 |
-
if (alm.integration.woocommerce) {
|
581 |
-
alm.resultsText = document.querySelectorAll('.woocommerce-result-count');
|
582 |
-
if (alm.resultsText.length < 1) {
|
583 |
-
alm.resultsText = document.querySelectorAll('.alm-results-text');
|
584 |
-
}
|
585 |
-
} else {
|
586 |
-
alm.resultsText = document.querySelectorAll('.alm-results-text');
|
587 |
-
}
|
588 |
-
if (alm.resultsText) {
|
589 |
-
alm.resultsText.forEach(function (results) {
|
590 |
-
results.setAttribute('aria-live', 'polite');
|
591 |
-
results.setAttribute('aria-atomic', 'true');
|
592 |
-
});
|
593 |
-
} else {
|
594 |
-
alm.resultsText = false;
|
595 |
-
}
|
596 |
-
|
597 |
-
// Table of Contents
|
598 |
-
// Render 1, 2, 3 etc. when pages are loaded
|
599 |
-
alm.tableofcontents = document.querySelector('.alm-toc');
|
600 |
-
if (alm.tableofcontents) {
|
601 |
-
alm.tableofcontents.setAttribute('aria-live', 'polite');
|
602 |
-
alm.tableofcontents.setAttribute('aria-atomic', 'true');
|
603 |
-
} else {
|
604 |
-
alm.tableofcontents = false;
|
605 |
-
}
|
606 |
-
|
607 |
-
/**
|
608 |
-
* LoadPosts()
|
609 |
-
* The function to get posts via Ajax
|
610 |
-
* @since 2.0.0
|
611 |
-
*/
|
612 |
-
|
613 |
-
alm.AjaxLoadMore.loadPosts = function () {
|
614 |
-
if (typeof almOnChange === 'function') {
|
615 |
-
window.almOnChange(alm);
|
616 |
-
}
|
617 |
-
|
618 |
-
showPlaceholder(alm);
|
619 |
-
|
620 |
-
if (!alm.disable_ajax) {
|
621 |
-
// Check for ajax blocker
|
622 |
-
if (!alm.addons.paging) {
|
623 |
-
alm.button.classList.add('loading');
|
624 |
-
if (alm.button_loading_label !== false) {
|
625 |
-
alm.button.innerHTML = alm.button_loading_label;
|
626 |
-
}
|
627 |
-
}
|
628 |
-
alm.main.classList.add('alm-loading');
|
629 |
-
alm.loading = true;
|
630 |
-
if (alm.addons.cache === 'true' && !alm.addons.cache_logged_in) {
|
631 |
-
// Cache
|
632 |
-
let cache_page = getCacheUrl(alm);
|
633 |
-
|
634 |
-
if (cache_page) {
|
635 |
-
// Load `.html` page
|
636 |
-
axios
|
637 |
-
.get(cache_page)
|
638 |
-
.then((response) => {
|
639 |
-
// Exists
|
640 |
-
alm.AjaxLoadMore.success(response.data, true);
|
641 |
-
})
|
642 |
-
.catch(function (error) {
|
643 |
-
// Error || Page does not yet exist
|
644 |
-
alm.AjaxLoadMore.ajax('standard');
|
645 |
-
});
|
646 |
-
} else {
|
647 |
-
// Standard ALM query
|
648 |
-
alm.AjaxLoadMore.ajax('standard');
|
649 |
-
}
|
650 |
-
} else {
|
651 |
-
// Standard ALM query
|
652 |
-
alm.AjaxLoadMore.ajax('standard');
|
653 |
-
}
|
654 |
-
}
|
655 |
-
};
|
656 |
-
|
657 |
-
/* ajax()
|
658 |
-
* Ajax Load Moe Ajax function
|
659 |
-
*
|
660 |
-
* @param queryType The type of Ajax request (standard/totalposts)
|
661 |
-
* @since 2.6.0
|
662 |
-
*/
|
663 |
-
|
664 |
-
alm.AjaxLoadMore.ajax = function (queryType) {
|
665 |
-
// Default ALM action
|
666 |
-
let action = 'alm_get_posts';
|
667 |
-
|
668 |
-
// ACF Params
|
669 |
-
alm.acf_array = '';
|
670 |
-
if (alm.extensions.acf) {
|
671 |
-
// Custom query for the Repeater / Gallery / Flexible Content field types
|
672 |
-
if (alm.extensions.acf_field_type !== 'relationship') {
|
673 |
-
action = 'alm_acf';
|
674 |
-
}
|
675 |
-
alm.acf_array = {
|
676 |
-
acf: 'true',
|
677 |
-
post_id: alm.extensions.acf_post_id,
|
678 |
-
field_type: alm.extensions.acf_field_type,
|
679 |
-
field_name: alm.extensions.acf_field_name,
|
680 |
-
parent_field_name: alm.extensions.acf_parent_field_name,
|
681 |
-
};
|
682 |
-
}
|
683 |
-
|
684 |
-
// Term Query Params
|
685 |
-
alm.term_query_array = '';
|
686 |
-
if (alm.extensions.term_query) {
|
687 |
-
action = 'alm_get_terms';
|
688 |
-
alm.term_query_array = {
|
689 |
-
term_query: 'true',
|
690 |
-
taxonomy: alm.extensions.term_query_taxonomy,
|
691 |
-
hide_empty: alm.extensions.term_query_hide_empty,
|
692 |
-
number: alm.extensions.term_query_number,
|
693 |
-
};
|
694 |
-
}
|
695 |
-
|
696 |
-
// Nextpage Params
|
697 |
-
alm.nextpage_array = '';
|
698 |
-
if (alm.addons.nextpage) {
|
699 |
-
action = 'alm_nextpage';
|
700 |
-
alm.nextpage_array = {
|
701 |
-
nextpage: 'true',
|
702 |
-
urls: alm.addons.nextpage_urls,
|
703 |
-
scroll: alm.addons.nextpage_scroll,
|
704 |
-
pageviews: alm.addons.nextpage_pageviews,
|
705 |
-
post_id: alm.addons.nextpage_post_id,
|
706 |
-
startpage: alm.addons.nextpage_startpage,
|
707 |
-
};
|
708 |
-
}
|
709 |
-
|
710 |
-
// Previous Post Params
|
711 |
-
alm.single_post_array = '';
|
712 |
-
if (alm.addons.single_post) {
|
713 |
-
alm.single_post_array = {
|
714 |
-
single_post: 'true',
|
715 |
-
id: alm.addons.single_post_id,
|
716 |
-
slug: alm.addons.single_post_slug,
|
717 |
-
};
|
718 |
-
}
|
719 |
-
|
720 |
-
// Comment Params
|
721 |
-
alm.comments_array = '';
|
722 |
-
if (alm.addons.comments === 'true') {
|
723 |
-
action = 'alm_comments';
|
724 |
-
alm.posts_per_page = alm.addons.comments_per_page;
|
725 |
-
alm.comments_array = {
|
726 |
-
comments: 'true',
|
727 |
-
post_id: alm.addons.comments_post_id,
|
728 |
-
per_page: alm.addons.comments_per_page,
|
729 |
-
type: alm.addons.comments_type,
|
730 |
-
style: alm.addons.comments_style,
|
731 |
-
template: alm.addons.comments_template,
|
732 |
-
callback: alm.addons.comments_callback,
|
733 |
-
};
|
734 |
-
}
|
735 |
-
|
736 |
-
// Users Params
|
737 |
-
alm.users_array = '';
|
738 |
-
if (alm.addons.users) {
|
739 |
-
action = 'alm_users';
|
740 |
-
alm.users_array = {
|
741 |
-
users: 'true',
|
742 |
-
role: alm.listing.dataset.usersRole,
|
743 |
-
include: alm.listing.dataset.usersInclude,
|
744 |
-
exclude: alm.listing.dataset.usersExclude,
|
745 |
-
per_page: alm.posts_per_page,
|
746 |
-
order: alm.listing.dataset.usersOrder,
|
747 |
-
orderby: alm.listing.dataset.usersOrderby,
|
748 |
-
};
|
749 |
-
}
|
750 |
-
|
751 |
-
// CTA Params
|
752 |
-
alm.cta_array = '';
|
753 |
-
if (alm.addons.cta === 'true') {
|
754 |
-
alm.cta_array = {
|
755 |
-
cta: 'true',
|
756 |
-
cta_position: alm.addons.cta_position,
|
757 |
-
cta_repeater: alm.addons.cta_repeater,
|
758 |
-
cta_theme_repeater: alm.addons.cta_theme_repeater,
|
759 |
-
};
|
760 |
-
}
|
761 |
-
|
762 |
-
// REST API
|
763 |
-
if (alm.extensions.restapi) {
|
764 |
-
alm.AjaxLoadMore.restapi(alm, action, queryType);
|
765 |
-
}
|
766 |
-
// Tabs
|
767 |
-
else if (alm.addons.tabs) {
|
768 |
-
alm.AjaxLoadMore.tabs(alm);
|
769 |
-
}
|
770 |
-
// Standard ALM
|
771 |
-
else {
|
772 |
-
alm.AjaxLoadMore.adminajax(alm, action, queryType);
|
773 |
-
}
|
774 |
-
};
|
775 |
-
|
776 |
-
/**
|
777 |
-
* adminajax
|
778 |
-
* Send request to the admin-ajax.php
|
779 |
-
*
|
780 |
-
* @param {*} alm | ALm object
|
781 |
-
* @param {*} action | Ajax action
|
782 |
-
* @param {*} queryType
|
783 |
-
* @since 5.0.0
|
784 |
-
*/
|
785 |
-
alm.AjaxLoadMore.adminajax = function (alm, action, queryType) {
|
786 |
-
if (alm.page != 1 && !alm.addons.paging) {
|
787 |
-
alm.button.classList.add('loading');
|
788 |
-
}
|
789 |
-
|
790 |
-
// Axios Interceptor for nested data objects
|
791 |
-
axios.interceptors.request.use((config) => {
|
792 |
-
config.paramsSerializer = (params) => {
|
793 |
-
// Qs is already included in the Axios package
|
794 |
-
return qs.stringify(params, {
|
795 |
-
arrayFormat: 'brackets',
|
796 |
-
encode: false,
|
797 |
-
});
|
798 |
-
};
|
799 |
-
return config;
|
800 |
-
});
|
801 |
-
|
802 |
-
// Get Ajax URL
|
803 |
-
let ajaxURL = alm_localize.ajaxurl;
|
804 |
-
|
805 |
-
// Get data params
|
806 |
-
let params = queryParams.almGetAjaxParams(alm, action, queryType); // [./helpers/queryParams.js
|
807 |
-
|
808 |
-
// Single Posts Add-on
|
809 |
-
// If has `single_post_target`, adjust the Ajax URL to the post URL.
|
810 |
-
if (alm.addons.single_post && alm.addons.single_post_target) {
|
811 |
-
ajaxURL = `${alm.addons.single_post_permalink}?id=${alm.addons.single_post_id}&alm_page=${parseInt(alm.page) + 1}`;
|
812 |
-
params = '';
|
813 |
-
}
|
814 |
-
|
815 |
-
// WooCommerce Add-on
|
816 |
-
if (alm.addons.woocommerce) {
|
817 |
-
ajaxURL = getButtonURL(alm);
|
818 |
-
params = '';
|
819 |
-
}
|
820 |
-
|
821 |
-
// Elementor Add-on
|
822 |
-
if (alm.addons.elementor && alm.addons.elementor_type && alm.addons.elementor_type === 'posts') {
|
823 |
-
ajaxURL = getButtonURL(alm);
|
824 |
-
params = '';
|
825 |
-
}
|
826 |
-
|
827 |
-
// Send HTTP request via axios
|
828 |
-
axios
|
829 |
-
.get(ajaxURL, { params })
|
830 |
-
.then(function (response) {
|
831 |
-
// Success
|
832 |
-
let data = '';
|
833 |
-
|
834 |
-
if (alm.addons.single_post && alm.addons.single_post_target) {
|
835 |
-
// Single Posts
|
836 |
-
data = singlePostHTML(response, alm.addons.single_post_target);
|
837 |
-
createCacheFile(alm, data.html, 'single');
|
838 |
-
} else if (alm.addons.woocommerce) {
|
839 |
-
// WooCommerce
|
840 |
-
data = wooGetContent(response, alm);
|
841 |
-
createCacheFile(alm, data.html, 'woocommerce');
|
842 |
-
} else if (alm.addons.elementor) {
|
843 |
-
// Elementor
|
844 |
-
data = elementorGetContent(response, alm);
|
845 |
-
createCacheFile(alm, data.html, 'elementor');
|
846 |
-
} else {
|
847 |
-
// Get data from response
|
848 |
-
data = response.data;
|
849 |
-
}
|
850 |
-
|
851 |
-
// Standard Query
|
852 |
-
if (queryType === 'standard') {
|
853 |
-
alm.AjaxLoadMore.success(data, false);
|
854 |
-
} else if (queryType === 'totalpages' && alm.addons.paging && alm.addons.nextpage) {
|
855 |
-
// Next Page and Paging
|
856 |
-
if (typeof almBuildPagination === 'function') {
|
857 |
-
window.almBuildPagination(data.totalpages, alm);
|
858 |
-
}
|
859 |
-
} else if (queryType === 'totalposts' && alm.addons.paging) {
|
860 |
-
// Paging
|
861 |
-
if (typeof almBuildPagination === 'function') {
|
862 |
-
window.almBuildPagination(data.totalposts, alm);
|
863 |
-
}
|
864 |
-
}
|
865 |
-
})
|
866 |
-
.catch(function (error) {
|
867 |
-
// Error
|
868 |
-
alm.AjaxLoadMore.error(error, 'adminajax');
|
869 |
-
});
|
870 |
-
};
|
871 |
-
|
872 |
-
/**
|
873 |
-
* tabs
|
874 |
-
* Send request to the WP REST API
|
875 |
-
*
|
876 |
-
* @param {*} alm | ALm object
|
877 |
-
* @since 5.2.0
|
878 |
-
*/
|
879 |
-
alm.AjaxLoadMore.tabs = function (alm) {
|
880 |
-
let alm_rest_url = `${alm.addons.tabs_resturl}ajaxloadmore/tab`;
|
881 |
-
|
882 |
-
let params = {
|
883 |
-
post_id: alm.post_id,
|
884 |
-
template: alm.addons.tab_template,
|
885 |
-
};
|
886 |
-
|
887 |
-
// Axios Interceptor for nested data objects
|
888 |
-
axios.interceptors.request.use((config) => {
|
889 |
-
config.paramsSerializer = (params) => {
|
890 |
-
// Qs is already included in the Axios package
|
891 |
-
return qs.stringify(params, {
|
892 |
-
arrayFormat: 'brackets',
|
893 |
-
encode: false,
|
894 |
-
});
|
895 |
-
};
|
896 |
-
return config;
|
897 |
-
});
|
898 |
-
|
899 |
-
// Send Ajax request
|
900 |
-
axios
|
901 |
-
.get(alm_rest_url, { params })
|
902 |
-
.then(function (response) {
|
903 |
-
// Success
|
904 |
-
let results = response.data; // Get data from response
|
905 |
-
let html = results.html;
|
906 |
-
|
907 |
-
// Create object to pass to success()
|
908 |
-
let obj = {
|
909 |
-
html: html,
|
910 |
-
meta: {
|
911 |
-
postcount: 1,
|
912 |
-
totalposts: 1,
|
913 |
-
},
|
914 |
-
};
|
915 |
-
alm.AjaxLoadMore.success(obj, false); // Send data
|
916 |
-
|
917 |
-
// Callback to Tabs add-on
|
918 |
-
if (typeof almTabLoaded === 'function') {
|
919 |
-
window.almTabLoaded(alm);
|
920 |
-
}
|
921 |
-
})
|
922 |
-
.catch(function (error) {
|
923 |
-
// Error
|
924 |
-
alm.AjaxLoadMore.error(error, 'restapi');
|
925 |
-
});
|
926 |
-
};
|
927 |
-
|
928 |
-
/**
|
929 |
-
* restapi
|
930 |
-
* Send request to the WP REST API
|
931 |
-
*
|
932 |
-
* @param {*} alm | ALm object
|
933 |
-
* @param {*} action | Ajax action
|
934 |
-
* @param {*} queryType
|
935 |
-
* @since 5.0.0
|
936 |
-
*/
|
937 |
-
alm.AjaxLoadMore.restapi = function (alm, action, queryType) {
|
938 |
-
let alm_rest_template = wp.template(alm.extensions.restapi_template_id);
|
939 |
-
let alm_rest_url = `${alm.extensions.restapi_base_url}/${alm.extensions.restapi_namespace}/${alm.extensions.restapi_endpoint}`;
|
940 |
-
let params = queryParams.almGetRestParams(alm); // [./helpers/queryParams.js]
|
941 |
-
|
942 |
-
// Axios Interceptor for nested data objects
|
943 |
-
axios.interceptors.request.use((config) => {
|
944 |
-
config.paramsSerializer = (params) => {
|
945 |
-
// Qs is already included in the Axios package
|
946 |
-
return qs.stringify(params, {
|
947 |
-
arrayFormat: 'brackets',
|
948 |
-
encode: false,
|
949 |
-
});
|
950 |
-
};
|
951 |
-
return config;
|
952 |
-
});
|
953 |
-
|
954 |
-
// Send Ajax request
|
955 |
-
axios
|
956 |
-
.get(alm_rest_url, { params })
|
957 |
-
.then(function (response) {
|
958 |
-
// Success
|
959 |
-
let results = response.data; // Get data from response
|
960 |
-
let data = '',
|
961 |
-
html = results.html,
|
962 |
-
meta = results.meta,
|
963 |
-
postcount = meta.postcount,
|
964 |
-
totalposts = meta.totalposts;
|
965 |
-
|
966 |
-
// loop results to get data from each
|
967 |
-
for (let i = 0; i < html.length; i++) {
|
968 |
-
let result = html[i];
|
969 |
-
if (alm.restapi_debug === 'true') {
|
970 |
-
// If debug
|
971 |
-
console.log(result);
|
972 |
-
}
|
973 |
-
data += alm_rest_template(result);
|
974 |
-
}
|
975 |
-
|
976 |
-
// Create object to pass to success()
|
977 |
-
let obj = {
|
978 |
-
html: data,
|
979 |
-
meta: {
|
980 |
-
postcount: postcount,
|
981 |
-
totalposts: totalposts,
|
982 |
-
},
|
983 |
-
};
|
984 |
-
alm.AjaxLoadMore.success(obj, false); // Send data
|
985 |
-
})
|
986 |
-
.catch(function (error) {
|
987 |
-
// Error
|
988 |
-
alm.AjaxLoadMore.error(error, 'restapi');
|
989 |
-
});
|
990 |
-
};
|
991 |
-
|
992 |
-
// If pagination enabled, run totalposts query
|
993 |
-
if (alm.addons.paging) {
|
994 |
-
if (alm.addons.nextpage) {
|
995 |
-
alm.AjaxLoadMore.ajax('totalpages'); // Create paging menu and query for total pages
|
996 |
-
} else {
|
997 |
-
alm.AjaxLoadMore.ajax('totalposts'); // Create paging menu and query for total posts
|
998 |
-
}
|
999 |
-
}
|
1000 |
-
|
1001 |
-
/**
|
1002 |
-
* success
|
1003 |
-
* Success function after loading data
|
1004 |
-
*
|
1005 |
-
* @param data The results of the Ajax request
|
1006 |
-
* @param is_cache Are results of the Ajax request coming from cache
|
1007 |
-
* @since 2.6.0
|
1008 |
-
*/
|
1009 |
-
alm.AjaxLoadMore.success = function (data, is_cache) {
|
1010 |
-
if (alm.addons.single_post) {
|
1011 |
-
// Get previous page data
|
1012 |
-
alm.AjaxLoadMore.getSinglePost();
|
1013 |
-
}
|
1014 |
-
|
1015 |
-
let isPaged = false;
|
1016 |
-
|
1017 |
-
// Create `.alm-reveal` element
|
1018 |
-
//let reveal = document.createElement('div');
|
1019 |
-
let reveal = alm.container_type === 'table' ? document.createElement('tbody') : document.createElement('div');
|
1020 |
-
alm.el = reveal;
|
1021 |
-
reveal.style.opacity = 0;
|
1022 |
-
reveal.style.height = 0;
|
1023 |
-
reveal.style.outline = 'none';
|
1024 |
-
|
1025 |
-
// Paging container
|
1026 |
-
let pagingContent = alm.listing.querySelector('.alm-paging-content');
|
1027 |
-
|
1028 |
-
var html, meta, total, totalLoaded;
|
1029 |
-
|
1030 |
-
if (is_cache) {
|
1031 |
-
// If Cache, do not look for json data as we won't be querying the DB.
|
1032 |
-
html = data;
|
1033 |
-
} else {
|
1034 |
-
// Standard ALM query results
|
1035 |
-
html = data.html;
|
1036 |
-
meta = data.meta;
|
1037 |
-
alm.posts = alm.addons.paging ? meta.postcount : alm.posts + meta.postcount;
|
1038 |
-
total = meta.postcount;
|
1039 |
-
alm.totalposts = meta.totalposts;
|
1040 |
-
alm.totalposts = alm.addons.preloaded === 'true' ? alm.totalposts - alm.addons.preloaded_amount : alm.totalposts;
|
1041 |
-
alm.debug = meta.debug ? meta.debug : '';
|
1042 |
-
}
|
1043 |
-
|
1044 |
-
// Set alm.html as plain text return
|
1045 |
-
alm.html = html;
|
1046 |
-
|
1047 |
-
// If cache, get the length of the html object
|
1048 |
-
total = is_cache ? almDomParser(html).length : total;
|
1049 |
-
|
1050 |
-
// First Run Only
|
1051 |
-
if (alm.init) {
|
1052 |
-
// Set Meta
|
1053 |
-
if (meta) {
|
1054 |
-
alm.main.dataset.totalPosts = meta.totalposts ? meta.totalposts : 0;
|
1055 |
-
}
|
1056 |
-
// Paging
|
1057 |
-
if (alm.addons.paging && total > 0) {
|
1058 |
-
// Add paging containers and content
|
1059 |
-
alm.AjaxLoadMore.pagingInit(html, 'alm-reveal');
|
1060 |
-
}
|
1061 |
-
// ALM Empty
|
1062 |
-
if (total === 0) {
|
1063 |
-
if (alm.addons.paging) {
|
1064 |
-
if (typeof almPagingEmpty === 'function') {
|
1065 |
-
window.almPagingEmpty(alm);
|
1066 |
-
}
|
1067 |
-
}
|
1068 |
-
if (typeof almEmpty === 'function') {
|
1069 |
-
window.almEmpty(alm);
|
1070 |
-
}
|
1071 |
-
if (alm.no_results) {
|
1072 |
-
setTimeout(function () {
|
1073 |
-
almNoResults(alm.content, alm.no_results);
|
1074 |
-
}, alm.speed + 10);
|
1075 |
-
}
|
1076 |
-
}
|
1077 |
-
|
1078 |
-
// isPaged
|
1079 |
-
if (alm.isPaged) {
|
1080 |
-
// Reset the posts_per_page parameter
|
1081 |
-
alm.posts_per_page = alm.addons.users ? alm.listing.dataset.usersPerPage : alm.listing.dataset.postsPerPage; // Users
|
1082 |
-
alm.posts_per_page = alm.addons.nextpage ? 1 : alm.posts_per_page; // NextPage
|
1083 |
-
|
1084 |
-
// SEO add-on
|
1085 |
-
alm.page = alm.start_page ? alm.start_page - 1 : alm.page; // Set new page #
|
1086 |
-
|
1087 |
-
// Filters add-on
|
1088 |
-
if (alm.addons.filters) {
|
1089 |
-
if (alm.addons.filters_startpage > 0) {
|
1090 |
-
alm.page = alm.addons.filters_startpage - 1; // Set new page #
|
1091 |
-
alm.posts_per_page = alm.listing.dataset.postsPerPage; // Reset `filters-startpage` data after the first run
|
1092 |
-
}
|
1093 |
-
}
|
1094 |
-
}
|
1095 |
-
}
|
1096 |
-
|
1097 |
-
/*
|
1098 |
-
* Display alm_debug results
|
1099 |
-
*/
|
1100 |
-
|
1101 |
-
almDebug(alm);
|
1102 |
-
|
1103 |
-
/*
|
1104 |
-
* Set localized variables and Results Text
|
1105 |
-
*/
|
1106 |
-
|
1107 |
-
(async () => {
|
1108 |
-
await setLocalizedVars(alm);
|
1109 |
-
})();
|
1110 |
-
|
1111 |
-
/*
|
1112 |
-
* Render results
|
1113 |
-
*/
|
1114 |
-
|
1115 |
-
if (total > 0) {
|
1116 |
-
// We have results!
|
1117 |
-
|
1118 |
-
if (!alm.addons.paging) {
|
1119 |
-
if (alm.addons.single_post) {
|
1120 |
-
// Single Posts
|
1121 |
-
reveal.setAttribute('class', 'alm-reveal alm-single-post post-' + alm.addons.single_post_id + alm.tcc);
|
1122 |
-
reveal.dataset.url = alm.addons.single_post_permalink;
|
1123 |
-
if (alm.addons.single_post_target) {
|
1124 |
-
reveal.dataset.page = parseInt(alm.page) + 1;
|
1125 |
-
} else {
|
1126 |
-
reveal.dataset.page = alm.page;
|
1127 |
-
}
|
1128 |
-
reveal.dataset.id = alm.addons.single_post_id;
|
1129 |
-
reveal.dataset.title = alm.addons.single_post_title;
|
1130 |
-
reveal.innerHTML = alm.html;
|
1131 |
-
} else {
|
1132 |
-
if (!alm.transition_container) {
|
1133 |
-
// No transition container
|
1134 |
-
|
1135 |
-
alm.el = alm.html;
|
1136 |
-
reveal = alm.container_type === 'table' ? tableWrap(alm.html) : stripEmptyNodes(almDomParser(alm.html, 'text/html'));
|
1137 |
-
} else {
|
1138 |
-
// Standard container
|
1139 |
-
|
1140 |
-
let pagenum;
|
1141 |
-
let querystring = window.location.search;
|
1142 |
-
let seo_class = alm.addons.seo ? ' alm-seo' : '';
|
1143 |
-
let filters_class = alm.addons.filters ? ' alm-filters' : '';
|
1144 |
-
let preloaded_class = alm.is_preloaded ? ' alm-preloaded' : '';
|
1145 |
-
|
1146 |
-
// Init, SEO and Filter Paged
|
1147 |
-
if (alm.init && (alm.start_page > 1 || alm.addons.filters_startpage > 0)) {
|
1148 |
-
// loop through items and break into separate .alm-reveal divs for paging
|
1149 |
-
|
1150 |
-
let return_data = [];
|
1151 |
-
let container_array = [];
|
1152 |
-
let posts_per_page = parseInt(alm.posts_per_page);
|
1153 |
-
let pages = Math.ceil(total / posts_per_page);
|
1154 |
-
isPaged = true;
|
1155 |
-
|
1156 |
-
// Call to Actions
|
1157 |
-
if (alm.addons.cta === 'true') {
|
1158 |
-
posts_per_page = posts_per_page + 1; // Add 1 to posts_per_page for CTAs
|
1159 |
-
pages = Math.ceil(total / posts_per_page); // Update pages var with new posts_per_page
|
1160 |
-
total = pages + total; // Get new total w/ CTAs added
|
1161 |
-
}
|
1162 |
-
|
1163 |
-
// Parse returned HTML and strip empty nodes
|
1164 |
-
let data = stripEmptyNodes(almDomParser(alm.html, 'text/html'));
|
1165 |
-
|
1166 |
-
// Slice data array into individual pages (array)
|
1167 |
-
for (let i = 0; i < total; i += posts_per_page) {
|
1168 |
-
return_data.push(data.slice(i, posts_per_page + i));
|
1169 |
-
}
|
1170 |
-
|
1171 |
-
// Loop return_data array to build .alm-reveal containers
|
1172 |
-
for (let k = 0; k < return_data.length; k++) {
|
1173 |
-
let p = alm.addons.preloaded === 'true' ? 1 : 0; // Add 1 page if items are preloaded.
|
1174 |
-
let alm_reveal = document.createElement('div');
|
1175 |
-
|
1176 |
-
if (k > 0 || alm.addons.preloaded === 'true') {
|
1177 |
-
pagenum = k + 1 + p; // > Paged
|
1178 |
-
|
1179 |
-
if (alm.addons.seo) {
|
1180 |
-
// SEO
|
1181 |
-
alm_reveal = createSEOAttributes(alm, alm_reveal, querystring, seo_class, pagenum);
|
1182 |
-
}
|
1183 |
-
|
1184 |
-
if (alm.addons.filters) {
|
1185 |
-
// Filters
|
1186 |
-
alm_reveal.setAttribute('class', 'alm-reveal' + filters_class + alm.tcc);
|
1187 |
-
alm_reveal.dataset.url = alm.canonical_url + buildFilterURL(alm, querystring, pagenum);
|
1188 |
-
alm_reveal.dataset.page = pagenum;
|
1189 |
-
}
|
1190 |
-
} else {
|
1191 |
-
// First Page
|
1192 |
-
if (alm.addons.seo) {
|
1193 |
-
// SEO
|
1194 |
-
alm_reveal = createSEOAttributes(alm, alm_reveal, querystring, seo_class, 1);
|
1195 |
-
}
|
1196 |
-
if (alm.addons.filters) {
|
1197 |
-
// Filters
|
1198 |
-
alm_reveal.setAttribute('class', 'alm-reveal' + filters_class + preloaded_class + alm.tcc);
|
1199 |
-
alm_reveal.dataset.url = alm.canonical_url + buildFilterURL(alm, querystring, 0);
|
1200 |
-
alm_reveal.dataset.page = '1';
|
1201 |
-
}
|
1202 |
-
}
|
1203 |
-
|
1204 |
-
// Append children to `.alm-reveal` element
|
1205 |
-
almAppendChildren(alm_reveal, return_data[k]);
|
1206 |
-
|
1207 |
-
// Run srcSet polyfill
|
1208 |
-
srcsetPolyfill(alm_reveal, alm.ua);
|
1209 |
-
|
1210 |
-
// Push alm_reveal elements into container_array
|
1211 |
-
container_array.push(alm_reveal);
|
1212 |
-
}
|
1213 |
-
|
1214 |
-
// Set opacity and height of .alm-listing div to allow for fadein.
|
1215 |
-
alm.listing.style.opacity = 0;
|
1216 |
-
alm.listing.style.height = 0;
|
1217 |
-
|
1218 |
-
// Append container_array to `.alm-listing`
|
1219 |
-
almAppendChildren(alm.listing, container_array);
|
1220 |
-
|
1221 |
-
reveal = alm.listing;
|
1222 |
-
alm.el = reveal;
|
1223 |
-
}
|
1224 |
-
// End Init & SEO
|
1225 |
-
else {
|
1226 |
-
// Preloaded OR SEO (and Paged)
|
1227 |
-
if ((alm.addons.seo && alm.page > 0) || alm.addons.preloaded === 'true') {
|
1228 |
-
let p2 = alm.addons.preloaded === 'true' ? 1 : 0; // Add 1 page if items are preloaded.
|
1229 |
-
|
1230 |
-
// SEO [Paged]
|
1231 |
-
pagenum = alm.page + 1 + p2;
|
1232 |
-
|
1233 |
-
if (alm.addons.seo) {
|
1234 |
-
// SEO
|
1235 |
-
reveal = createSEOAttributes(alm, reveal, querystring, seo_class, pagenum);
|
1236 |
-
} else if (alm.addons.filters) {
|
1237 |
-
// Filters
|
1238 |
-
reveal.setAttribute('class', 'alm-reveal' + filters_class + alm.tcc);
|
1239 |
-
reveal.dataset.url = alm.canonical_url + buildFilterURL(alm, querystring, pagenum);
|
1240 |
-
reveal.dataset.page = pagenum;
|
1241 |
-
} else {
|
1242 |
-
// Basic ALM
|
1243 |
-
reveal.setAttribute('class', 'alm-reveal' + alm.tcc);
|
1244 |
-
}
|
1245 |
-
} else if (alm.addons.filters) {
|
1246 |
-
// Filters
|
1247 |
-
reveal.setAttribute('class', 'alm-reveal' + filters_class + alm.tcc);
|
1248 |
-
reveal.dataset.url = alm.canonical_url + buildFilterURL(alm, querystring, parseInt(alm.page) + 1);
|
1249 |
-
reveal.dataset.page = parseInt(alm.page) + 1;
|
1250 |
-
} else {
|
1251 |
-
if (alm.addons.seo) {
|
1252 |
-
// SEO [Page 1]
|
1253 |
-
reveal = createSEOAttributes(alm, reveal, querystring, seo_class, 1);
|
1254 |
-
} else {
|
1255 |
-
// Basic ALM
|
1256 |
-
reveal.setAttribute('class', 'alm-reveal' + alm.tcc);
|
1257 |
-
}
|
1258 |
-
}
|
1259 |
-
|
1260 |
-
reveal.innerHTML = alm.html;
|
1261 |
-
}
|
1262 |
-
}
|
1263 |
-
}
|
1264 |
-
|
1265 |
-
// WooCommerce Add-on
|
1266 |
-
if (alm.addons.woocommerce) {
|
1267 |
-
(async function () {
|
1268 |
-
await woocommerce(reveal, alm, data.pageTitle);
|
1269 |
-
|
1270 |
-
let nextPageNum = alm.page + 2;
|
1271 |
-
|
1272 |
-
// Set button data attributes
|
1273 |
-
alm.button.dataset.page = nextPageNum; // Page
|
1274 |
-
let nextPage = alm.addons.woocommerce_settings.paged_urls[nextPageNum - 1]; // URL
|
1275 |
-
alm.button.dataset.url = nextPage ? nextPage : '';
|
1276 |
-
|
1277 |
-
alm.AjaxLoadMore.transitionEnd();
|
1278 |
-
|
1279 |
-
// almComplete
|
1280 |
-
if (typeof almComplete === 'function' && alm.transition !== 'masonry') {
|
1281 |
-
window.almComplete(alm);
|
1282 |
-
}
|
1283 |
-
|
1284 |
-
// ALM Done
|
1285 |
-
if (nextPageNum > parseInt(alm.addons.woocommerce_settings.pages)) {
|
1286 |
-
alm.AjaxLoadMore.triggerDone();
|
1287 |
-
}
|
1288 |
-
})().catch((e) => {
|
1289 |
-
console.log(e);
|
1290 |
-
console.log('There was an error loading woocommerce products');
|
1291 |
-
});
|
1292 |
-
|
1293 |
-
alm.init = false;
|
1294 |
-
|
1295 |
-
return;
|
1296 |
-
}
|
1297 |
-
|
1298 |
-
// Elementor Add-on
|
1299 |
-
if (alm.addons.elementor) {
|
1300 |
-
(async function () {
|
1301 |
-
await elementor(reveal, alm, data.pageTitle);
|
1302 |
-
|
1303 |
-
let nextPageNum = alm.page + 1;
|
1304 |
-
|
1305 |
-
// Set button data attributes
|
1306 |
-
alm.button.dataset.page = nextPageNum; // Page
|
1307 |
-
let nextPage = alm.addons.elementor_next_page_url; // URL
|
1308 |
-
alm.button.dataset.url = nextPage ? nextPage : '';
|
1309 |
-
|
1310 |
-
alm.AjaxLoadMore.transitionEnd();
|
1311 |
-
|
1312 |
-
// almComplete
|
1313 |
-
if (typeof almComplete === 'function' && alm.transition !== 'masonry') {
|
1314 |
-
window.almComplete(alm);
|
1315 |
-
}
|
1316 |
-
|
1317 |
-
// ALM Done
|
1318 |
-
if (!nextPage) {
|
1319 |
-
alm.AjaxLoadMore.triggerDone();
|
1320 |
-
}
|
1321 |
-
})().catch((e) => {
|
1322 |
-
console.log(e);
|
1323 |
-
console.log('There was an error loading Elementor Post Widget items');
|
1324 |
-
});
|
1325 |
-
|
1326 |
-
alm.init = false;
|
1327 |
-
|
1328 |
-
return;
|
1329 |
-
}
|
1330 |
-
|
1331 |
-
// Append `reveal` div to ALM Listing container
|
1332 |
-
// Do not append when transtion == masonry OR init and !preloaded
|
1333 |
-
if (alm.transition !== 'masonry' || (alm.init && !alm.is_masonry_preloaded)) {
|
1334 |
-
if (!isPaged) {
|
1335 |
-
if (!alm.transition_container) {
|
1336 |
-
// No transition container
|
1337 |
-
if (alm.images_loaded === 'true') {
|
1338 |
-
imagesLoaded(reveal, function () {
|
1339 |
-
almAppendChildren(alm.listing, reveal);
|
1340 |
-
|
1341 |
-
// Run srcSet polyfill
|
1342 |
-
srcsetPolyfill(alm.listing, alm.ua);
|
1343 |
-
});
|
1344 |
-
} else {
|
1345 |
-
almAppendChildren(alm.listing, reveal);
|
1346 |
-
|
1347 |
-
// Run srcSet polyfill
|
1348 |
-
srcsetPolyfill(alm.listing, alm.ua);
|
1349 |
-
}
|
1350 |
-
} else {
|
1351 |
-
// Standard container
|
1352 |
-
alm.listing.appendChild(reveal);
|
1353 |
-
}
|
1354 |
-
}
|
1355 |
-
}
|
1356 |
-
|
1357 |
-
// *****
|
1358 |
-
// Transitions
|
1359 |
-
// *****
|
1360 |
-
|
1361 |
-
// Masonry
|
1362 |
-
if (alm.transition === 'masonry') {
|
1363 |
-
alm.el = alm.listing;
|
1364 |
-
|
1365 |
-
// Wrap almMasonry in anonymous async/await function
|
1366 |
-
(async function () {
|
1367 |
-
await almMasonry(alm, alm.init, alm_is_filtering);
|
1368 |
-
alm.masonry_init = false;
|
1369 |
-
|
1370 |
-
alm.AjaxLoadMore.triggerWindowResize();
|
1371 |
-
alm.AjaxLoadMore.transitionEnd();
|
1372 |
-
if (typeof almComplete === 'function') {
|
1373 |
-
window.almComplete(alm);
|
1374 |
-
}
|
1375 |
-
})().catch((e) => {
|
1376 |
-
console.log('There was an error with ALM Masonry');
|
1377 |
-
});
|
1378 |
-
}
|
1379 |
-
|
1380 |
-
// None
|
1381 |
-
else if (alm.transition === 'none') {
|
1382 |
-
if (alm.images_loaded === 'true') {
|
1383 |
-
imagesLoaded(reveal, function () {
|
1384 |
-
almFadeIn(reveal, 0);
|
1385 |
-
alm.AjaxLoadMore.transitionEnd();
|
1386 |
-
});
|
1387 |
-
} else {
|
1388 |
-
almFadeIn(reveal, 0);
|
1389 |
-
alm.AjaxLoadMore.transitionEnd();
|
1390 |
-
}
|
1391 |
-
}
|
1392 |
-
|
1393 |
-
// Default(Fade)
|
1394 |
-
else {
|
1395 |
-
if (alm.images_loaded === 'true') {
|
1396 |
-
imagesLoaded(reveal, function () {
|
1397 |
-
if (alm.transition_container) {
|
1398 |
-
almFadeIn(reveal, alm.speed);
|
1399 |
-
}
|
1400 |
-
alm.AjaxLoadMore.transitionEnd();
|
1401 |
-
});
|
1402 |
-
} else {
|
1403 |
-
if (alm.transition_container) {
|
1404 |
-
almFadeIn(reveal, alm.speed);
|
1405 |
-
}
|
1406 |
-
alm.AjaxLoadMore.transitionEnd();
|
1407 |
-
}
|
1408 |
-
}
|
1409 |
-
|
1410 |
-
// TABS - Trigger almTabsSetHeight callback in Tabs add-on
|
1411 |
-
if (alm.addons.tabs && typeof almTabsSetHeight === 'function') {
|
1412 |
-
imagesLoaded(reveal, function () {
|
1413 |
-
almFadeIn(alm.listing, alm.speed);
|
1414 |
-
setTimeout(function () {
|
1415 |
-
window.almTabsSetHeight(alm);
|
1416 |
-
}, alm.speed);
|
1417 |
-
});
|
1418 |
-
}
|
1419 |
-
} else {
|
1420 |
-
// Paging
|
1421 |
-
if (!alm.init) {
|
1422 |
-
if (pagingContent) {
|
1423 |
-
almFadeOut(pagingContent, alm.speed);
|
1424 |
-
pagingContent.style.outline = 'none';
|
1425 |
-
alm.main.classList.remove('alm-loading');
|
1426 |
-
|
1427 |
-
setTimeout(function () {
|
1428 |
-
pagingContent.style.opacity = 0;
|
1429 |
-
pagingContent.innerHTML = alm.html;
|
1430 |
-
|
1431 |
-
imagesLoaded(pagingContent, function () {
|
1432 |
-
// Delay for effect
|
1433 |
-
alm.AjaxLoadMore.triggerAddons(alm);
|
1434 |
-
almFadeIn(pagingContent, alm.speed);
|
1435 |
-
|
1436 |
-
// Remove opacity on element to fix CSS transition
|
1437 |
-
setTimeout(function () {
|
1438 |
-
pagingContent.style.opacity = '';
|
1439 |
-
|
1440 |
-
// Insert Script
|
1441 |
-
insertScript.init(pagingContent);
|
1442 |
-
}, parseInt(alm.speed) + 10);
|
1443 |
-
|
1444 |
-
// Paging addon
|
1445 |
-
if (typeof almOnPagingComplete === 'function') {
|
1446 |
-
window.almOnPagingComplete(alm);
|
1447 |
-
}
|
1448 |
-
});
|
1449 |
-
}, parseInt(alm.speed) + 25);
|
1450 |
-
}
|
1451 |
-
} else {
|
1452 |
-
setTimeout(function () {
|
1453 |
-
alm.main.classList.remove('alm-loading');
|
1454 |
-
alm.AjaxLoadMore.triggerAddons(alm);
|
1455 |
-
}, alm.speed);
|
1456 |
-
}
|
1457 |
-
// End Paging
|
1458 |
-
}
|
1459 |
-
|
1460 |
-
// ALM Loaded, run complete callbacks
|
1461 |
-
imagesLoaded(reveal, function () {
|
1462 |
-
// Nested
|
1463 |
-
alm.AjaxLoadMore.nested(reveal);
|
1464 |
-
|
1465 |
-
// Insert Script
|
1466 |
-
insertScript.init(alm.el);
|
1467 |
-
|
1468 |
-
// almComplete
|
1469 |
-
if (typeof almComplete === 'function' && alm.transition !== 'masonry') {
|
1470 |
-
window.almComplete(alm);
|
1471 |
-
}
|
1472 |
-
|
1473 |
-
// Filters Add-on Complete
|
1474 |
-
if (alm_is_filtering && alm.addons.filters) {
|
1475 |
-
if (typeof almFiltersAddonComplete === 'function') {
|
1476 |
-
// Filters Add-on
|
1477 |
-
window.almFiltersAddonComplete(el);
|
1478 |
-
}
|
1479 |
-
}
|
1480 |
-
alm_is_filtering = false;
|
1481 |
-
|
1482 |
-
// Tabs Complete
|
1483 |
-
if (alm.addons.tabs) {
|
1484 |
-
// Tabs Complete
|
1485 |
-
if (typeof almTabsComplete === 'function') {
|
1486 |
-
// Standard Filtering
|
1487 |
-
window.almTabsComplete();
|
1488 |
-
}
|
1489 |
-
}
|
1490 |
-
|
1491 |
-
// ALM Done
|
1492 |
-
if (!alm.addons.cache) {
|
1493 |
-
// Not Cache & Single Post
|
1494 |
-
if (alm.posts >= alm.totalposts && !alm.addons.single_post) {
|
1495 |
-
alm.AjaxLoadMore.triggerDone();
|
1496 |
-
}
|
1497 |
-
} else {
|
1498 |
-
// Cache
|
1499 |
-
if (alm.addons.nextpage && alm.localize) {
|
1500 |
-
// Nextpage
|
1501 |
-
if (parseInt(alm.localize.page) === parseInt(alm.localize.total_posts)) {
|
1502 |
-
alm.AjaxLoadMore.triggerDone();
|
1503 |
-
}
|
1504 |
-
} else {
|
1505 |
-
if (total < parseInt(alm.posts_per_page)) {
|
1506 |
-
alm.AjaxLoadMore.triggerDone();
|
1507 |
-
}
|
1508 |
-
}
|
1509 |
-
}
|
1510 |
-
// End ALM Done
|
1511 |
-
});
|
1512 |
-
// End ALM Loaded
|
1513 |
-
|
1514 |
-
// Filters onLoad
|
1515 |
-
if (typeof almFiltersOnload === 'function' && alm.init) {
|
1516 |
-
window.almFiltersOnload(alm);
|
1517 |
-
}
|
1518 |
-
} else {
|
1519 |
-
/*
|
1520 |
-
* No results from Ajax
|
1521 |
-
*/
|
1522 |
-
alm.AjaxLoadMore.noresults();
|
1523 |
-
}
|
1524 |
-
|
1525 |
-
// Destroy After
|
1526 |
-
if (alm.destroy_after !== undefined && alm.destroy_after !== '') {
|
1527 |
-
var currentPage = alm.page + 1; // Add 1 because alm.page starts at 0
|
1528 |
-
currentPage = alm.addons.preloaded === 'true' ? currentPage++ : currentPage; // Add 1 for preloaded
|
1529 |
-
if (currentPage == alm.destroy_after) {
|
1530 |
-
// Disable ALM if page = alm.destroy_after val
|
1531 |
-
alm.AjaxLoadMore.destroyed();
|
1532 |
-
}
|
1533 |
-
}
|
1534 |
-
|
1535 |
-
/*
|
1536 |
-
* Display tableOfContents
|
1537 |
-
*/
|
1538 |
-
|
1539 |
-
tableOfContents(alm, alm.init);
|
1540 |
-
|
1541 |
-
// Set Focus for A11y
|
1542 |
-
if (alm.transition !== 'masonry') {
|
1543 |
-
setFocus(alm, reveal, total, alm_is_filtering);
|
1544 |
-
}
|
1545 |
-
|
1546 |
-
// Remove filtering class
|
1547 |
-
if (alm.main.classList.contains('alm-is-filtering')) {
|
1548 |
-
alm.main.classList.remove('alm-is-filtering');
|
1549 |
-
}
|
1550 |
-
|
1551 |
-
// Set init flag
|
1552 |
-
alm.init = false;
|
1553 |
-
};
|
1554 |
-
|
1555 |
-
/**
|
1556 |
-
* noresults
|
1557 |
-
* Functions run when no results are returned.
|
1558 |
-
*
|
1559 |
-
* @since 5.3.1
|
1560 |
-
*/
|
1561 |
-
alm.AjaxLoadMore.noresults = function () {
|
1562 |
-
if (!alm.addons.paging) {
|
1563 |
-
// Add .done class, reset btn text
|
1564 |
-
setTimeout(function () {
|
1565 |
-
alm.button.classList.remove('loading');
|
1566 |
-
alm.button.classList.add('done');
|
1567 |
-
}, alm.speed);
|
1568 |
-
alm.AjaxLoadMore.resetBtnText();
|
1569 |
-
}
|
1570 |
-
|
1571 |
-
// almComplete
|
1572 |
-
if (typeof almComplete === 'function' && alm.transition !== 'masonry') {
|
1573 |
-
window.almComplete(alm);
|
1574 |
-
}
|
1575 |
-
|
1576 |
-
// Filters Add-on Complete
|
1577 |
-
if (alm_is_filtering && alm.addons.filters) {
|
1578 |
-
if (typeof almFiltersAddonComplete === 'function') {
|
1579 |
-
// Filters Add-on
|
1580 |
-
almFiltersAddonComplete(el);
|
1581 |
-
}
|
1582 |
-
alm_is_filtering = false;
|
1583 |
-
}
|
1584 |
-
|
1585 |
-
// Tabs Complete
|
1586 |
-
if (alm.addons.tabs) {
|
1587 |
-
// Tabs Complete
|
1588 |
-
if (typeof almTabsComplete === 'function') {
|
1589 |
-
// Standard Filtering
|
1590 |
-
almTabsComplete();
|
1591 |
-
}
|
1592 |
-
}
|
1593 |
-
|
1594 |
-
alm.AjaxLoadMore.triggerDone(); // ALM Done
|
1595 |
-
};
|
1596 |
-
|
1597 |
-
/**
|
1598 |
-
* pagingPreloadedInit
|
1599 |
-
* First run for Paging + Preloaded add-ons
|
1600 |
-
* Moves preloaded content into ajax container
|
1601 |
-
*
|
1602 |
-
* @param {data} Results of the Ajax request
|
1603 |
-
* @since 2.11.3
|
1604 |
-
*/
|
1605 |
-
alm.AjaxLoadMore.pagingPreloadedInit = function (data) {
|
1606 |
-
data = data == null ? '' : data; // Check for null data object
|
1607 |
-
|
1608 |
-
// Add paging containers and content
|
1609 |
-
alm.AjaxLoadMore.pagingInit(data, 'alm-reveal');
|
1610 |
-
|
1611 |
-
if (data === '') {
|
1612 |
-
if (typeof almPagingEmpty === 'function') {
|
1613 |
-
window.almPagingEmpty(alm);
|
1614 |
-
}
|
1615 |
-
if (typeof almEmpty === 'function') {
|
1616 |
-
window.almEmpty(alm);
|
1617 |
-
}
|
1618 |
-
if (alm.no_results) {
|
1619 |
-
almNoResults(alm.content, alm.no_results);
|
1620 |
-
}
|
1621 |
-
}
|
1622 |
-
};
|
1623 |
-
|
1624 |
-
/**
|
1625 |
-
* pagingNextpageInit
|
1626 |
-
* First run for Paging + Next Page add-ons
|
1627 |
-
* Moves .alm-nextpage content into ajax container
|
1628 |
-
*
|
1629 |
-
* @param {data} Results of Ajax request
|
1630 |
-
* @since 2.14.0
|
1631 |
-
*/
|
1632 |
-
alm.AjaxLoadMore.pagingNextpageInit = function (data) {
|
1633 |
-
data = data == null ? '' : data; // Check for null data object
|
1634 |
-
|
1635 |
-
// Add paging containers and content
|
1636 |
-
alm.AjaxLoadMore.pagingInit(data, 'alm-reveal alm-nextpage');
|
1637 |
-
|
1638 |
-
// Set up Nextpage Vars
|
1639 |
-
if (typeof almSetNextPageVars === 'function') {
|
1640 |
-
window.almSetNextPageVars(alm); // Next Page Add-on
|
1641 |
-
}
|
1642 |
-
};
|
1643 |
-
|
1644 |
-
/**
|
1645 |
-
* pagingInit
|
1646 |
-
* First run for Paging + (Preloaded & Next Page) add-ons. Create required containers.
|
1647 |
-
*
|
1648 |
-
* @param {data} Ajax results
|
1649 |
-
* @param {classes} added classes
|
1650 |
-
* @since 5.0
|
1651 |
-
*/
|
1652 |
-
alm.AjaxLoadMore.pagingInit = function (data, classes = 'alm-reveal') {
|
1653 |
-
data = data == null ? '' : data; // Check for null data object
|
1654 |
-
|
1655 |
-
// Create `alm-reveal` container
|
1656 |
-
let reveal = document.createElement('div');
|
1657 |
-
reveal.setAttribute('class', classes);
|
1658 |
-
|
1659 |
-
// Create `alm-paging-loading` container
|
1660 |
-
let content = document.createElement('div');
|
1661 |
-
content.setAttribute('class', 'alm-paging-content' + alm.tcc);
|
1662 |
-
content.innerHTML = data;
|
1663 |
-
reveal.appendChild(content);
|
1664 |
-
|
1665 |
-
// Create `alm-paging-content` container
|
1666 |
-
let loader = document.createElement('div');
|
1667 |
-
loader.setAttribute('class', 'alm-paging-loading');
|
1668 |
-
reveal.appendChild(loader);
|
1669 |
-
|
1670 |
-
// Add div to container
|
1671 |
-
alm.listing.appendChild(reveal);
|
1672 |
-
|
1673 |
-
// Get/Set height of .alm-listing div
|
1674 |
-
let styles = window.getComputedStyle(alm.listing);
|
1675 |
-
let pTop = parseInt(styles.getPropertyValue('padding-top').replace('px', ''));
|
1676 |
-
let pBtm = parseInt(styles.getPropertyValue('padding-bottom').replace('px', ''));
|
1677 |
-
let h = reveal.offsetHeight;
|
1678 |
-
|
1679 |
-
// Set initial `.alm-listing` height
|
1680 |
-
alm.listing.style.height = h + pTop + pBtm + 'px';
|
1681 |
-
|
1682 |
-
// Insert Script
|
1683 |
-
insertScript.init(reveal);
|
1684 |
-
|
1685 |
-
// Reset button text
|
1686 |
-
alm.AjaxLoadMore.resetBtnText();
|
1687 |
-
|
1688 |
-
// Delay reveal of paging to avoid positioning issues
|
1689 |
-
setTimeout(function () {
|
1690 |
-
if (typeof almFadePageControls === 'function') {
|
1691 |
-
window.almFadePageControls(alm.btnWrap);
|
1692 |
-
}
|
1693 |
-
if (typeof almOnWindowResize === 'function') {
|
1694 |
-
window.almOnWindowResize(alm);
|
1695 |
-
}
|
1696 |
-
// Remove loading class from main container
|
1697 |
-
alm.main.classList.remove('loading');
|
1698 |
-
}, alm.speed);
|
1699 |
-
};
|
1700 |
-
|
1701 |
-
/**
|
1702 |
-
* nested
|
1703 |
-
* Automatically trigger nested ALM instances (Requies `.alm-reveal` container
|
1704 |
-
*
|
1705 |
-
* @param {object} instance
|
1706 |
-
* @since 5.0
|
1707 |
-
*/
|
1708 |
-
alm.AjaxLoadMore.nested = function (reveal) {
|
1709 |
-
if (!reveal || !alm.transition_container) {
|
1710 |
-
return false; // Exit if not `transition_container`
|
1711 |
-
}
|
1712 |
-
let nested = reveal.querySelectorAll('.ajax-load-more-wrap'); // Get all instances from jQuery obj
|
1713 |
-
if (nested) {
|
1714 |
-
nested.forEach(function (element) {
|
1715 |
-
window.almInit(element);
|
1716 |
-
});
|
1717 |
-
}
|
1718 |
-
};
|
1719 |
-
|
1720 |
-
/**
|
1721 |
-
* fetchingPreviousPost
|
1722 |
-
* Get the previous post ID via ajax
|
1723 |
-
*
|
1724 |
-
* @since 2.7.4
|
1725 |
-
*/
|
1726 |
-
|
1727 |
-
if (alm.addons.single_post_id) {
|
1728 |
-
alm.fetchingPreviousPost = false;
|
1729 |
-
alm.addons.single_post_init = true;
|
1730 |
-
}
|
1731 |
-
|
1732 |
-
alm.AjaxLoadMore.getSinglePost = function () {
|
1733 |
-
let action = 'alm_get_single';
|
1734 |
-
|
1735 |
-
if (alm.fetchingPreviousPost) {
|
1736 |
-
return false;
|
1737 |
-
}
|
1738 |
-
|
1739 |
-
alm.fetchingPreviousPost = true;
|
1740 |
-
|
1741 |
-
// Get admin-ajax.php URL
|
1742 |
-
let ajaxURL = alm_localize.ajaxurl;
|
1743 |
-
|
1744 |
-
// Get data params
|
1745 |
-
let params = {
|
1746 |
-
id: alm.addons.single_post_id,
|
1747 |
-
initial_id: alm.addons.single_post_init_id,
|
1748 |
-
order: alm.addons.single_post_order,
|
1749 |
-
taxonomy: alm.addons.single_post_taxonomy,
|
1750 |
-
excluded_terms: alm.addons.single_post_excluded_terms,
|
1751 |
-
post_type: alm.post_type,
|
1752 |
-
init: alm.addons.single_post_init,
|
1753 |
-
action: action,
|
1754 |
-
};
|
1755 |
-
|
1756 |
-
// Send HTTP request via Axios
|
1757 |
-
axios
|
1758 |
-
.get(ajaxURL, { params })
|
1759 |
-
.then(function (response) {
|
1760 |
-
// Success
|
1761 |
-
|
1762 |
-
let data = response.data; // Get data from response
|
1763 |
-
|
1764 |
-
if (data.has_previous_post) {
|
1765 |
-
alm.listing.dataset.singlePostId = data.prev_id; // Update single-post-id on instance
|
1766 |
-
alm.addons.single_post_id = data.prev_id;
|
1767 |
-
alm.addons.single_post_permalink = data.prev_permalink;
|
1768 |
-
alm.addons.single_post_title = data.prev_title;
|
1769 |
-
alm.addons.single_post_slug = data.prev_slug;
|
1770 |
-
} else {
|
1771 |
-
if (!data.has_previous_post) {
|
1772 |
-
alm.AjaxLoadMore.triggerDone();
|
1773 |
-
}
|
1774 |
-
}
|
1775 |
-
if (typeof window.almSetSinglePost === 'function') {
|
1776 |
-
window.almSetSinglePost(alm, data.current_id, data.permalink, data.title);
|
1777 |
-
}
|
1778 |
-
alm.fetchingPreviousPost = false;
|
1779 |
-
alm.addons.single_post_init = false;
|
1780 |
-
})
|
1781 |
-
.catch(function (error) {
|
1782 |
-
// Error
|
1783 |
-
|
1784 |
-
alm.AjaxLoadMore.error(error, 'getSinglePost');
|
1785 |
-
alm.fetchingPreviousPost = false;
|
1786 |
-
});
|
1787 |
-
};
|
1788 |
-
|
1789 |
-
/**
|
1790 |
-
* triggerAddons
|
1791 |
-
*
|
1792 |
-
* Triggers various add-on functions (if available) after load complete.
|
1793 |
-
* @since 2.14.0
|
1794 |
-
*/
|
1795 |
-
alm.AjaxLoadMore.triggerAddons = function (alm) {
|
1796 |
-
if (typeof almSetNextPage === 'function') {
|
1797 |
-
// Next Page
|
1798 |
-
window.almSetNextPage(alm);
|
1799 |
-
}
|
1800 |
-
if (typeof almSEO === 'function') {
|
1801 |
-
// SEO
|
1802 |
-
window.almSEO(alm, false);
|
1803 |
-
}
|
1804 |
-
if (typeof almWooCommerce === 'function') {
|
1805 |
-
// WooCommerce
|
1806 |
-
window.almWooCommerce(alm);
|
1807 |
-
}
|
1808 |
-
if (typeof almElementor === 'function') {
|
1809 |
-
// Elementor
|
1810 |
-
window.almElementor(alm);
|
1811 |
-
}
|
1812 |
-
};
|
1813 |
-
|
1814 |
-
/**
|
1815 |
-
* ALM Done
|
1816 |
-
*
|
1817 |
-
* Fires the almDone() function (if available).
|
1818 |
-
* @since 2.11.3
|
1819 |
-
*/
|
1820 |
-
alm.AjaxLoadMore.triggerDone = function () {
|
1821 |
-
alm.loading = false;
|
1822 |
-
alm.finished = true;
|
1823 |
-
hidePlaceholder(alm);
|
1824 |
-
|
1825 |
-
if (!alm.addons.paging) {
|
1826 |
-
// Update button text
|
1827 |
-
if (alm.button_done_label !== false) {
|
1828 |
-
setTimeout(function () {
|
1829 |
-
alm.button.innerHTML = alm.button_done_label;
|
1830 |
-
}, 75);
|
1831 |
-
}
|
1832 |
-
|
1833 |
-
alm.button.classList.add('done');
|
1834 |
-
alm.button.disabled = true;
|
1835 |
-
}
|
1836 |
-
|
1837 |
-
// almDone
|
1838 |
-
if (typeof almDone === 'function') {
|
1839 |
-
// Delay done until animations complete
|
1840 |
-
setTimeout(function () {
|
1841 |
-
window.almDone(alm);
|
1842 |
-
}, alm.speed + 10);
|
1843 |
-
}
|
1844 |
-
};
|
1845 |
-
|
1846 |
-
/**
|
1847 |
-
* resetBtnText
|
1848 |
-
* Resets the loading button text after loading has completed
|
1849 |
-
*
|
1850 |
-
* @since 2.8.4
|
1851 |
-
*/
|
1852 |
-
alm.AjaxLoadMore.resetBtnText = function () {
|
1853 |
-
if (alm.button_loading_label !== false && !alm.addons.paging) {
|
1854 |
-
// Reset button text
|
1855 |
-
alm.button.innerHTML = alm.button_label;
|
1856 |
-
}
|
1857 |
-
};
|
1858 |
-
|
1859 |
-
/**
|
1860 |
-
* Ajax Error
|
1861 |
-
* Error function after failed data
|
1862 |
-
*
|
1863 |
-
* @since 2.6.0
|
1864 |
-
*/
|
1865 |
-
alm.AjaxLoadMore.error = function (error, location = null) {
|
1866 |
-
alm.loading = false;
|
1867 |
-
if (!alm.addons.paging) {
|
1868 |
-
alm.button.classList.remove('loading');
|
1869 |
-
alm.AjaxLoadMore.resetBtnText();
|
1870 |
-
}
|
1871 |
-
|
1872 |
-
console.log('Error: ', error);
|
1873 |
-
if (error.response) {
|
1874 |
-
// The request was made and the server responded with a status code
|
1875 |
-
// that falls out of the range of 2xx
|
1876 |
-
//console.log(error.response.data);
|
1877 |
-
//console.log(error.response.status);
|
1878 |
-
//console.log(error.response.headers);
|
1879 |
-
console.log('Error Msg: ', error.message);
|
1880 |
-
} else if (error.request) {
|
1881 |
-
// The request was made but no response was received
|
1882 |
-
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
|
1883 |
-
// http.ClientRequest in node.js
|
1884 |
-
console.log(error.request);
|
1885 |
-
} else {
|
1886 |
-
// Something happened in setting up the request that triggered an Error
|
1887 |
-
console.log('Error Msg: ', error.message);
|
1888 |
-
}
|
1889 |
-
|
1890 |
-
if (location) {
|
1891 |
-
console.log('ALM Error started in ' + location);
|
1892 |
-
}
|
1893 |
-
|
1894 |
-
if (error.config) {
|
1895 |
-
console.log('ALM Error Debug: ', error.config);
|
1896 |
-
}
|
1897 |
-
};
|
1898 |
-
|
1899 |
-
/**
|
1900 |
-
* click
|
1901 |
-
* Button click handler to load posts
|
1902 |
-
*
|
1903 |
-
* @since 4.2.0
|
1904 |
-
*/
|
1905 |
-
alm.AjaxLoadMore.click = function (e) {
|
1906 |
-
let button = e.target || e.currentTarget;
|
1907 |
-
if (alm.pause === 'true') {
|
1908 |
-
alm.pause = false;
|
1909 |
-
alm.pause_override = false;
|
1910 |
-
alm.AjaxLoadMore.loadPosts();
|
1911 |
-
}
|
1912 |
-
if (!alm.loading && !alm.finished && !button.classList.contains('done')) {
|
1913 |
-
alm.loading = true;
|
1914 |
-
alm.page++;
|
1915 |
-
alm.AjaxLoadMore.loadPosts();
|
1916 |
-
}
|
1917 |
-
button.blur(); // Remove button focus
|
1918 |
-
};
|
1919 |
-
|
1920 |
-
/**
|
1921 |
-
* Button Click Event
|
1922 |
-
* Load more button click event
|
1923 |
-
*
|
1924 |
-
* @since 1.0.0
|
1925 |
-
*/
|
1926 |
-
|
1927 |
-
if (!alm.addons.paging && !alm.fetchingPreviousPost) {
|
1928 |
-
alm.button.onclick = alm.AjaxLoadMore.click;
|
1929 |
-
}
|
1930 |
-
|
1931 |
-
/**
|
1932 |
-
* Window resize functions for Paging, Scroll Distance Percentage, Tabs etc.
|
1933 |
-
* @since 2.1.2
|
1934 |
-
* @updated 5.2
|
1935 |
-
*/
|
1936 |
-
if (alm.addons.paging || alm.addons.tabs || alm.scroll_distance_perc || alm.scroll_direction === 'horizontal') {
|
1937 |
-
let resize;
|
1938 |
-
alm.window.onresize = function () {
|
1939 |
-
clearTimeout(resize);
|
1940 |
-
resize = setTimeout(function (e) {
|
1941 |
-
if (alm.addons.tabs) {
|
1942 |
-
// Tabs
|
1943 |
-
if (typeof almOnTabsWindowResize === 'function') {
|
1944 |
-
window.almOnTabsWindowResize(alm);
|
1945 |
-
}
|
1946 |
-
}
|
1947 |
-
if (alm.addons.paging) {
|
1948 |
-
// Paging
|
1949 |
-
if (typeof almOnWindowResize === 'function') {
|
1950 |
-
window.almOnWindowResize(alm);
|
1951 |
-
}
|
1952 |
-
}
|
1953 |
-
if (alm.scroll_distance_perc) {
|
1954 |
-
alm.scroll_distance = getScrollPercentage(alm);
|
1955 |
-
}
|
1956 |
-
if (alm.scroll_direction === 'horizontal') {
|
1957 |
-
alm.AjaxLoadMore.horizontal();
|
1958 |
-
}
|
1959 |
-
}, alm.speed);
|
1960 |
-
};
|
1961 |
-
}
|
1962 |
-
|
1963 |
-
/**
|
1964 |
-
* Check to see if element is visible before loading posts
|
1965 |
-
* @since 2.1.2
|
1966 |
-
*/
|
1967 |
-
alm.AjaxLoadMore.isVisible = function () {
|
1968 |
-
// Check for a width and height to determine visibility
|
1969 |
-
alm.visible = alm.main.clientWidth > 0 && alm.main.clientHeight > 0 ? true : false;
|
1970 |
-
return alm.visible;
|
1971 |
-
};
|
1972 |
-
|
1973 |
-
/**
|
1974 |
-
* Trigger a window resize browser function
|
1975 |
-
* @since 5.3.1
|
1976 |
-
*/
|
1977 |
-
alm.AjaxLoadMore.triggerWindowResize = function () {
|
1978 |
-
if (typeof Event === 'function') {
|
1979 |
-
// modern browsers
|
1980 |
-
window.dispatchEvent(new Event('resize'));
|
1981 |
-
} else {
|
1982 |
-
//This will be executed on old browsers and especially IE
|
1983 |
-
var resizeEvent = window.document.createEvent('UIEvents');
|
1984 |
-
resizeEvent.initUIEvent('resize', true, false, window, 0);
|
1985 |
-
window.dispatchEvent(resizeEvent);
|
1986 |
-
}
|
1987 |
-
};
|
1988 |
-
|
1989 |
-
/**
|
1990 |
-
* Load posts as user scrolls the page
|
1991 |
-
* @since 1.0
|
1992 |
-
* @updated 4.2.0
|
1993 |
-
*/
|
1994 |
-
|
1995 |
-
alm.AjaxLoadMore.scroll = function () {
|
1996 |
-
if (alm.timer) {
|
1997 |
-
clearTimeout(alm.timer);
|
1998 |
-
}
|
1999 |
-
|
2000 |
-
alm.timer = setTimeout(function () {
|
2001 |
-
if (alm.AjaxLoadMore.isVisible() && !alm.fetchingPreviousPost) {
|
2002 |
-
let trigger = alm.trigger.getBoundingClientRect();
|
2003 |
-
let btnPos = Math.round(trigger.top - alm.window.innerHeight) + alm.scroll_distance;
|
2004 |
-
let scrollTrigger = btnPos <= 0 ? true : false;
|
2005 |
-
|
2006 |
-
// Scroll Container
|
2007 |
-
if (alm.window !== window) {
|
2008 |
-
let scrollHeight = alm.main.offsetHeight; // ALM height
|
2009 |
-
let scrollWidth = alm.main.offsetWidth; // ALM Width
|
2010 |
-
let scrollPosition = '';
|
2011 |
-
|
2012 |
-
if (alm.scroll_direction === 'horizontal') {
|
2013 |
-
// Left/Right
|
2014 |
-
alm.AjaxLoadMore.horizontal();
|
2015 |
-
scrollPosition = Math.round(alm.window.scrollLeft + alm.window.offsetWidth - alm.scroll_distance); // How far user has scrolled
|
2016 |
-
scrollTrigger = scrollWidth <= scrollPosition ? true : false;
|
2017 |
-
} else {
|
2018 |
-
// Up/Down
|
2019 |
-
scrollPosition = Math.round(alm.window.scrollTop + alm.window.offsetHeight - alm.scroll_distance); // How far user has scrolled
|
2020 |
-
scrollTrigger = scrollHeight <= scrollPosition ? true : false;
|
2021 |
-
}
|
2022 |
-
}
|
2023 |
-
|
2024 |
-
// If Pause && Pause Override
|
2025 |
-
if (
|
2026 |
-
!alm.loading &&
|
2027 |
-
!alm.finished &&
|
2028 |
-
scrollTrigger &&
|
2029 |
-
alm.page < alm.max_pages - 1 &&
|
2030 |
-
alm.proceed &&
|
2031 |
-
alm.pause === 'true' &&
|
2032 |
-
alm.pause_override === 'true'
|
2033 |
-
) {
|
2034 |
-
alm.button.click();
|
2035 |
-
}
|
2036 |
-
|
2037 |
-
// Standard Scroll
|
2038 |
-
else {
|
2039 |
-
if (!alm.loading && !alm.finished && scrollTrigger && alm.page < alm.max_pages - 1 && alm.proceed && alm.pause !== 'true') {
|
2040 |
-
alm.button.click();
|
2041 |
-
}
|
2042 |
-
}
|
2043 |
-
}
|
2044 |
-
}, 25);
|
2045 |
-
};
|
2046 |
-
|
2047 |
-
/**
|
2048 |
-
* Add scroll eventlisteners, only when needed
|
2049 |
-
* @since 5.2.0
|
2050 |
-
*/
|
2051 |
-
alm.AjaxLoadMore.scrollSetup = function () {
|
2052 |
-
if (alm.scroll && !alm.addons.paging) {
|
2053 |
-
if (alm.scroll_container !== '') {
|
2054 |
-
// Scroll Container
|
2055 |
-
alm.window = document.querySelector(alm.scroll_container) ? document.querySelector(alm.scroll_container) : alm.window;
|
2056 |
-
setTimeout(function () {
|
2057 |
-
// Delay to allow for ALM container to resize on load.
|
2058 |
-
alm.AjaxLoadMore.horizontal();
|
2059 |
-
}, 500);
|
2060 |
-
}
|
2061 |
-
alm.window.addEventListener('scroll', alm.AjaxLoadMore.scroll); // Scroll
|
2062 |
-
alm.window.addEventListener('touchstart', alm.AjaxLoadMore.scroll); // Touch Devices
|
2063 |
-
alm.window.addEventListener('wheel', function (e) {
|
2064 |
-
// Mousewheel
|
2065 |
-
let direction = Math.sign(e.deltaY);
|
2066 |
-
if (direction > 0) {
|
2067 |
-
alm.AjaxLoadMore.scroll();
|
2068 |
-
}
|
2069 |
-
});
|
2070 |
-
alm.window.addEventListener('keyup', function (e) {
|
2071 |
-
// End, Page Down
|
2072 |
-
let code = e.keyCode ? e.keyCode : e.which;
|
2073 |
-
switch (code) {
|
2074 |
-
case 35:
|
2075 |
-
case 34:
|
2076 |
-
alm.AjaxLoadMore.scroll();
|
2077 |
-
break;
|
2078 |
-
}
|
2079 |
-
});
|
2080 |
-
}
|
2081 |
-
};
|
2082 |
-
|
2083 |
-
/**
|
2084 |
-
* Configure horizontal scroll settings
|
2085 |
-
* @since 5.3.6
|
2086 |
-
*/
|
2087 |
-
alm.AjaxLoadMore.horizontal = function () {
|
2088 |
-
if (alm.scroll_direction === 'horizontal') {
|
2089 |
-
alm.main.style.width = `${alm.listing.offsetWidth}px`;
|
2090 |
-
}
|
2091 |
-
};
|
2092 |
-
|
2093 |
-
/**
|
2094 |
-
* Destroy Ajax Load More functionality
|
2095 |
-
* @since 3.4.2
|
2096 |
-
*/
|
2097 |
-
alm.AjaxLoadMore.destroyed = function () {
|
2098 |
-
alm.disable_ajax = true;
|
2099 |
-
if (!alm.addons.paging) {
|
2100 |
-
alm.button.style.display = 'none';
|
2101 |
-
alm.AjaxLoadMore.triggerDone();
|
2102 |
-
if (typeof almDestroyed === 'function') {
|
2103 |
-
window.almDestroyed(alm);
|
2104 |
-
}
|
2105 |
-
}
|
2106 |
-
};
|
2107 |
-
|
2108 |
-
/**
|
2109 |
-
* Set variables after loading transiton completes
|
2110 |
-
* @since 3.5
|
2111 |
-
*/
|
2112 |
-
alm.AjaxLoadMore.transitionEnd = function () {
|
2113 |
-
setTimeout(function () {
|
2114 |
-
alm.AjaxLoadMore.resetBtnText();
|
2115 |
-
alm.main.classList.remove('alm-loading');
|
2116 |
-
alm.button.classList.remove('loading'); // Loading button
|
2117 |
-
alm.AjaxLoadMore.triggerAddons(alm);
|
2118 |
-
if (!alm.addons.paging) {
|
2119 |
-
setTimeout(function () {
|
2120 |
-
alm.loading = false; // Delay to prevent loading to fast
|
2121 |
-
}, alm.speed * 3);
|
2122 |
-
}
|
2123 |
-
}, 50);
|
2124 |
-
hidePlaceholder(alm);
|
2125 |
-
};
|
2126 |
-
|
2127 |
-
/**
|
2128 |
-
* Set induvidual localized variable
|
2129 |
-
* @param {string} name
|
2130 |
-
* @param {string} value
|
2131 |
-
* @since 4.1
|
2132 |
-
*/
|
2133 |
-
alm.AjaxLoadMore.setLocalizedVar = function (name = '', value = '') {
|
2134 |
-
if (alm.localize && name !== '' && value !== '') {
|
2135 |
-
alm.localize[name] = value.toString(); // Set ALM localize var
|
2136 |
-
window[alm.master_id + '_vars'][name] = value.toString(); // Update global window obj vars
|
2137 |
-
}
|
2138 |
-
};
|
2139 |
-
|
2140 |
-
/**
|
2141 |
-
* Init Ajax load More
|
2142 |
-
* Load posts as user scrolls the page
|
2143 |
-
*
|
2144 |
-
* @since 2.0
|
2145 |
-
*/
|
2146 |
-
alm.AjaxLoadMore.init = function () {
|
2147 |
-
// Preloaded and destroy_after is 1
|
2148 |
-
if (alm.addons.preloaded === 'true' && alm.destroy_after == 1) {
|
2149 |
-
alm.AjaxLoadMore.destroyed();
|
2150 |
-
}
|
2151 |
-
|
2152 |
-
if (!alm.addons.paging && !alm.addons.single_post) {
|
2153 |
-
if (alm.disable_ajax) {
|
2154 |
-
alm.finished = true;
|
2155 |
-
alm.button.classList.add('done');
|
2156 |
-
} else {
|
2157 |
-
if (alm.pause === 'true') {
|
2158 |
-
alm.button.innerHTML = alm.button_label;
|
2159 |
-
alm.loading = false;
|
2160 |
-
} else {
|
2161 |
-
alm.AjaxLoadMore.loadPosts();
|
2162 |
-
}
|
2163 |
-
}
|
2164 |
-
}
|
2165 |
-
|
2166 |
-
// Previous Post Add-on
|
2167 |
-
if (alm.addons.single_post) {
|
2168 |
-
alm.AjaxLoadMore.getSinglePost(); // Set next post on load
|
2169 |
-
alm.loading = false;
|
2170 |
-
|
2171 |
-
/*
|
2172 |
-
* Display tableOfContents
|
2173 |
-
*/
|
2174 |
-
|
2175 |
-
tableOfContents(alm, true, true);
|
2176 |
-
}
|
2177 |
-
|
2178 |
-
// Preloaded + SEO && !Paging
|
2179 |
-
if (alm.addons.preloaded === 'true' && alm.addons.seo && !alm.addons.paging) {
|
2180 |
-
// Delay for scripts to load
|
2181 |
-
setTimeout(function () {
|
2182 |
-
if (typeof almSEO === 'function' && alm.start_page < 1) {
|
2183 |
-
window.almSEO(alm, true);
|
2184 |
-
}
|
2185 |
-
}, alm.speed);
|
2186 |
-
}
|
2187 |
-
|
2188 |
-
// Preloaded && !Paging
|
2189 |
-
if (alm.addons.preloaded === 'true' && !alm.addons.paging) {
|
2190 |
-
// Delay for scripts to load
|
2191 |
-
setTimeout(function () {
|
2192 |
-
// triggerDone
|
2193 |
-
if (alm.addons.preloaded_total_posts <= parseInt(alm.addons.preloaded_amount)) {
|
2194 |
-
alm.AjaxLoadMore.triggerDone();
|
2195 |
-
}
|
2196 |
-
// almEmpty
|
2197 |
-
if (alm.addons.preloaded_total_posts == 0) {
|
2198 |
-
if (typeof almEmpty === 'function') {
|
2199 |
-
window.almEmpty(alm);
|
2200 |
-
}
|
2201 |
-
if (alm.no_results) {
|
2202 |
-
almNoResults(alm.content, alm.no_results);
|
2203 |
-
}
|
2204 |
-
}
|
2205 |
-
}, alm.speed);
|
2206 |
-
}
|
2207 |
-
|
2208 |
-
// Preloaded Add-on ONLY
|
2209 |
-
if (alm.addons.preloaded === 'true') {
|
2210 |
-
if (alm.resultsText) {
|
2211 |
-
resultsText.almInitResultsText(alm, 'preloaded');
|
2212 |
-
}
|
2213 |
-
|
2214 |
-
/*
|
2215 |
-
* Display tableOfContents
|
2216 |
-
*/
|
2217 |
-
|
2218 |
-
tableOfContents(alm, alm.init, true);
|
2219 |
-
}
|
2220 |
-
|
2221 |
-
// Next Page Add-on
|
2222 |
-
if (alm.addons.nextpage) {
|
2223 |
-
// Check that posts remain on load
|
2224 |
-
if (alm.listing.querySelector('.alm-nextpage') && !alm.addons.paging) {
|
2225 |
-
let nextpage_pages = alm.listing.querySelectorAll('.alm-nextpage'); // All Next Page Items
|
2226 |
-
|
2227 |
-
if (nextpage_pages) {
|
2228 |
-
let nextpage_first = nextpage_pages[0];
|
2229 |
-
let nextpage_total = alm.localize.total_posts ? parseInt(alm.localize.total_posts) : nextpage_first.dataset.totalPosts;
|
2230 |
-
|
2231 |
-
// Disable if last page loaded
|
2232 |
-
if (nextpage_pages.length === nextpage_total || parseInt(nextpage_first.dataset.id) === nextpage_total) {
|
2233 |
-
alm.AjaxLoadMore.triggerDone();
|
2234 |
-
}
|
2235 |
-
}
|
2236 |
-
}
|
2237 |
-
|
2238 |
-
if (alm.resultsText) {
|
2239 |
-
resultsText.almInitResultsText(alm, 'nextpage');
|
2240 |
-
}
|
2241 |
-
|
2242 |
-
/*
|
2243 |
-
* Display tableOfContents
|
2244 |
-
*/
|
2245 |
-
|
2246 |
-
tableOfContents(alm, alm.init, true);
|
2247 |
-
}
|
2248 |
-
|
2249 |
-
// WooCommerce Add-on
|
2250 |
-
if (alm.addons.woocommerce) {
|
2251 |
-
// Initiate WooCommerce
|
2252 |
-
wooInit(alm);
|
2253 |
-
|
2254 |
-
// Trigger `Done` if `paged is less than `pages`
|
2255 |
-
if (alm.addons.woocommerce_settings.paged >= parseInt(alm.addons.woocommerce_settings.pages)) {
|
2256 |
-
alm.AjaxLoadMore.triggerDone();
|
2257 |
-
}
|
2258 |
-
}
|
2259 |
-
|
2260 |
-
// Elementor Add-on
|
2261 |
-
if (alm.addons.elementor && alm.addons.elementor_type && alm.addons.elementor_type === 'posts') {
|
2262 |
-
// Initiate Elementor
|
2263 |
-
elementorInit(alm);
|
2264 |
-
|
2265 |
-
// Trigger `Done` if `elementor_next_page_url` is empty
|
2266 |
-
if (alm.addons.elementor_next_page_url === '') {
|
2267 |
-
alm.AjaxLoadMore.triggerDone();
|
2268 |
-
}
|
2269 |
-
}
|
2270 |
-
|
2271 |
-
// Window Load (Masonry + Preloaded)
|
2272 |
-
alm.window.addEventListener('load', function () {
|
2273 |
-
if (alm.is_masonry_preloaded) {
|
2274 |
-
// Wrap almMasonry in anonymous async/await function
|
2275 |
-
(async function () {
|
2276 |
-
await almMasonry(alm, true, false);
|
2277 |
-
alm.masonry_init = false;
|
2278 |
-
})().catch((e) => {
|
2279 |
-
console.log('There was an error with ALM Masonry');
|
2280 |
-
});
|
2281 |
-
}
|
2282 |
-
if (typeof almOnLoad === 'function') {
|
2283 |
-
window.almOnLoad(alm);
|
2284 |
-
}
|
2285 |
-
});
|
2286 |
-
};
|
2287 |
-
|
2288 |
-
// Flag to prevent loading of posts on initial page load.
|
2289 |
-
setTimeout(function () {
|
2290 |
-
alm.proceed = true;
|
2291 |
-
alm.AjaxLoadMore.scrollSetup();
|
2292 |
-
}, 500);
|
2293 |
-
|
2294 |
-
// Init Ajax Load More
|
2295 |
-
alm.AjaxLoadMore.init();
|
2296 |
-
|
2297 |
-
/**
|
2298 |
-
* almUpdateCurrentPage
|
2299 |
-
* Update current page - triggered from paging add-on
|
2300 |
-
*
|
2301 |
-
* @since 2.7.0
|
2302 |
-
*/
|
2303 |
-
window.almUpdateCurrentPage = function (current, obj, alm) {
|
2304 |
-
alm.page = current;
|
2305 |
-
alm.page = alm.addons.nextpage && !alm.addons.paging ? alm.page - 1 : alm.page; // Next Page add-on
|
2306 |
-
|
2307 |
-
let data = '';
|
2308 |
-
let target = '';
|
2309 |
-
|
2310 |
-
if (alm.addons.paging_init && alm.addons.preloaded === 'true') {
|
2311 |
-
// Paging + Preloaded Firstrun
|
2312 |
-
target = alm.listing.querySelector('.alm-reveal') || alm.listing.querySelector('.alm-nextpage');
|
2313 |
-
if (target) {
|
2314 |
-
data = target.innerHTML; // Get content
|
2315 |
-
target.parentNode.removeChild(target); // Remove target
|
2316 |
-
alm.addons.preloaded_amount = 0; // Reset preloaded
|
2317 |
-
alm.AjaxLoadMore.pagingPreloadedInit(data);
|
2318 |
-
}
|
2319 |
-
alm.addons.paging_init = false;
|
2320 |
-
alm.init = false;
|
2321 |
-
} else if (alm.addons.paging_init && alm.addons.nextpage) {
|
2322 |
-
// Paging + Next Page on firstrun
|
2323 |
-
target = alm.listing.querySelector('.alm-reveal') || alm.listing.querySelector('.alm-nextpage');
|
2324 |
-
if (target) {
|
2325 |
-
data = target.innerHTML; // Get content
|
2326 |
-
target.parentNode.removeChild(target); // Remove target
|
2327 |
-
alm.AjaxLoadMore.pagingNextpageInit(data);
|
2328 |
-
}
|
2329 |
-
alm.addons.paging_init = false;
|
2330 |
-
alm.init = false;
|
2331 |
-
} else {
|
2332 |
-
// Standard Paging
|
2333 |
-
alm.AjaxLoadMore.loadPosts();
|
2334 |
-
}
|
2335 |
-
};
|
2336 |
-
|
2337 |
-
/**
|
2338 |
-
* almGetParentContainer
|
2339 |
-
* return the parent ALM container
|
2340 |
-
*
|
2341 |
-
* @since 2.7.0
|
2342 |
-
* @return element
|
2343 |
-
*/
|
2344 |
-
window.almGetParentContainer = function () {
|
2345 |
-
return alm.listing;
|
2346 |
-
};
|
2347 |
-
|
2348 |
-
/**
|
2349 |
-
* almGetObj
|
2350 |
-
* Returns the current ALM obj
|
2351 |
-
*
|
2352 |
-
* @param {string} specific obj
|
2353 |
-
* @since 2.7.0
|
2354 |
-
* @return object
|
2355 |
-
*/
|
2356 |
-
window.almGetObj = function (obj = '') {
|
2357 |
-
if (obj !== '') {
|
2358 |
-
return alm[obj]; // Return specific param
|
2359 |
-
} else {
|
2360 |
-
return alm; // Return the entire alm object
|
2361 |
-
}
|
2362 |
-
};
|
2363 |
-
|
2364 |
-
/**
|
2365 |
-
* almTriggerClick
|
2366 |
-
* Trigger ajaxloadmore from any element on page
|
2367 |
-
*
|
2368 |
-
* @since 2.12.0
|
2369 |
-
*/
|
2370 |
-
window.almTriggerClick = function () {
|
2371 |
-
alm.button.click();
|
2372 |
-
};
|
2373 |
-
};
|
2374 |
-
|
2375 |
-
// End ajaxloadmore
|
2376 |
-
|
2377 |
-
/**
|
2378 |
-
* almInit
|
2379 |
-
* Initiate instance of Ajax load More
|
2380 |
-
*
|
2381 |
-
* @since 5.0
|
2382 |
-
*/
|
2383 |
-
window.almInit = function (el, id = 0) {
|
2384 |
-
new ajaxloadmore(el, id);
|
2385 |
-
};
|
2386 |
-
|
2387 |
-
/**
|
2388 |
-
* Initiate Ajax load More if div is present on screen
|
2389 |
-
* @since 2.1.2
|
2390 |
-
*/
|
2391 |
-
|
2392 |
-
let alm_instances = document.querySelectorAll('.ajax-load-more-wrap');
|
2393 |
-
if (alm_instances.length) {
|
2394 |
-
[...alm_instances].forEach((alm, e) => {
|
2395 |
-
new ajaxloadmore(alm, e);
|
2396 |
-
});
|
2397 |
-
}
|
2398 |
-
})();
|
2399 |
-
|
2400 |
-
/**
|
2401 |
-
* Filter an Ajax Load More instance
|
2402 |
-
*
|
2403 |
-
* @since 5.0
|
2404 |
-
* @param {*} transition
|
2405 |
-
* @param {*} speed
|
2406 |
-
* @param {*} data
|
2407 |
-
*/
|
2408 |
-
let filter = function (transition = 'fade', speed = '200', data = '') {
|
2409 |
-
if (!transition || !speed || !data) {
|
2410 |
-
return false;
|
2411 |
-
}
|
2412 |
-
alm_is_filtering = true;
|
2413 |
-
almFilter(transition, speed, data, 'filter');
|
2414 |
-
};
|
2415 |
-
export { filter };
|
2416 |
-
|
2417 |
-
/**
|
2418 |
-
* Reset an Ajax Load More instance
|
2419 |
-
*
|
2420 |
-
* @since 5.3.8
|
2421 |
-
* @param {*} target
|
2422 |
-
*/
|
2423 |
-
let reset = function (props = {}) {
|
2424 |
-
let data = {};
|
2425 |
-
alm_is_filtering = true;
|
2426 |
-
|
2427 |
-
if (props && props.target) {
|
2428 |
-
data = {
|
2429 |
-
target: target,
|
2430 |
-
};
|
2431 |
-
}
|
2432 |
-
|
2433 |
-
if (props && props.type === 'woocommerce') {
|
2434 |
-
// WooCommerce
|
2435 |
-
(async function () {
|
2436 |
-
let instance = document.querySelector('.ajax-load-more-wrap .alm-listing[data-woo="true"]'); // Get ALM instance
|
2437 |
-
let settings = await wooReset(); // Get WooCommerce `settings` via Ajax
|
2438 |
-
if (settings) {
|
2439 |
-
instance.dataset.wooSettings = settings; // Update data atts
|
2440 |
-
almFilter('fade', '100', data, 'filter');
|
2441 |
-
}
|
2442 |
-
})().catch((e) => {
|
2443 |
-
console.log('There was an resetting the Ajax Load More instance.');
|
2444 |
-
});
|
2445 |
-
} else {
|
2446 |
-
// Standard ALM
|
2447 |
-
almFilter('fade', '200', data, 'filter');
|
2448 |
-
}
|
2449 |
-
};
|
2450 |
-
export { reset };
|
2451 |
-
|
2452 |
-
/**
|
2453 |
-
* Tabbed content for Ajax Load More instance
|
2454 |
-
*
|
2455 |
-
* @since 5.2
|
2456 |
-
* @param {*} data
|
2457 |
-
* @param {*} url
|
2458 |
-
*/
|
2459 |
-
let tab = function (data = '', url = false) {
|
2460 |
-
let transition = 'fade';
|
2461 |
-
let speed = alm_localize.speed ? parseInt(alm_localize.speed) : 200;
|
2462 |
-
|
2463 |
-
if (!data) {
|
2464 |
-
return false;
|
2465 |
-
}
|
2466 |
-
|
2467 |
-
alm_is_filtering = true;
|
2468 |
-
almFilter(transition, speed, data, 'tab');
|
2469 |
-
};
|
2470 |
-
export { tab };
|
2471 |
-
|
2472 |
-
/**
|
2473 |
-
* Track Page Views in Google Analytics
|
2474 |
-
*
|
2475 |
-
* @since 5.0
|
2476 |
-
* @param {*} path
|
2477 |
-
*/
|
2478 |
-
|
2479 |
-
let tracking = function (path) {
|
2480 |
-
if (typeof gtag === 'function') {
|
2481 |
-
// Gtag GA Tracking
|
2482 |
-
gtag('event', 'page_view', {
|
2483 |
-
page_path: path,
|
2484 |
-
});
|
2485 |
-
if (alm_localize.ga_debug) {
|
2486 |
-
console.log('Pageview sent to Google Analytics (gtag)');
|
2487 |
-
}
|
2488 |
-
}
|
2489 |
-
if (typeof ga === 'function') {
|
2490 |
-
// Deprecated GA Tracking
|
2491 |
-
ga('send', 'pageview', path);
|
2492 |
-
if (alm_localize.ga_debug) {
|
2493 |
-
console.log('Pageview sent to Google Analytics (ga)');
|
2494 |
-
}
|
2495 |
-
}
|
2496 |
-
if (typeof __gaTracker === 'function') {
|
2497 |
-
// Monster Insights
|
2498 |
-
__gaTracker('send', 'pageview', path);
|
2499 |
-
if (alm_localize.ga_debug) {
|
2500 |
-
console.log('Pageview sent to Google Analytics (__gaTracker)');
|
2501 |
-
}
|
2502 |
-
}
|
2503 |
-
|
2504 |
-
// Dispatch global Analytics callback
|
2505 |
-
if (typeof almAnalytics === 'function') {
|
2506 |
-
window.almAnalytics(path);
|
2507 |
-
}
|
2508 |
-
};
|
2509 |
-
export { tracking };
|
2510 |
-
|
2511 |
-
/**
|
2512 |
-
* start
|
2513 |
-
* Trigger Ajax Load More from other events
|
2514 |
-
*
|
2515 |
-
* @since 5.0
|
2516 |
-
* @param {*} el
|
2517 |
-
*/
|
2518 |
-
let start = function (el) {
|
2519 |
-
if (!el) {
|
2520 |
-
return false;
|
2521 |
-
}
|
2522 |
-
window.almInit(el);
|
2523 |
-
};
|
2524 |
-
export { start };
|
2525 |
-
|
2526 |
-
/**
|
2527 |
-
* almScroll
|
2528 |
-
* Scroll window to position (global function)
|
2529 |
-
*
|
2530 |
-
* @since 5.0
|
2531 |
-
* @param {*} position
|
2532 |
-
*/
|
2533 |
-
let almScroll = function (position) {
|
2534 |
-
if (!position) {
|
2535 |
-
return false;
|
2536 |
-
}
|
2537 |
-
window.scrollTo({
|
2538 |
-
top: position,
|
2539 |
-
behavior: 'smooth',
|
2540 |
-
});
|
2541 |
-
};
|
2542 |
-
export { almScroll };
|
2543 |
-
|
2544 |
-
/**
|
2545 |
-
* getOffset
|
2546 |
-
* Get the current top/left coordinates of an element relative to the document.
|
2547 |
-
*
|
2548 |
-
* @since 5.0
|
2549 |
-
* @param {*} el
|
2550 |
-
*/
|
2551 |
-
let getOffset = function (el = null) {
|
2552 |
-
if (!el) {
|
2553 |
-
return false;
|
2554 |
-
}
|
2555 |
-
let rect = el.getBoundingClientRect(),
|
2556 |
-
scrollLeft = window.pageXOffset || document.documentElement.scrollLeft,
|
2557 |
-
scrollTop = window.pageYOffset || document.documentElement.scrollTop;
|
2558 |
-
return { top: rect.top + scrollTop, left: rect.left + scrollLeft };
|
2559 |
-
};
|
2560 |
-
export { getOffset };
|
2561 |
-
|
2562 |
-
/**
|
2563 |
-
* render
|
2564 |
-
*
|
2565 |
-
* @since 5.0
|
2566 |
-
* @param {*} position
|
2567 |
-
*/
|
2568 |
-
let render = function (el, options = null) {
|
2569 |
-
if (!el) {
|
2570 |
-
return false;
|
2571 |
-
}
|
2572 |
-
// console.log(el, options);
|
2573 |
-
};
|
2574 |
-
export { render };
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/helpers/almAppendChild.js
DELETED
@@ -1,26 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Append a child element to a container
|
3 |
-
*
|
4 |
-
* @param {*} target | Target element to append items
|
5 |
-
* @param {*} element | The element to append
|
6 |
-
* @param {*} transition | The transiton
|
7 |
-
* @since 5.0
|
8 |
-
*/
|
9 |
-
|
10 |
-
let nodeNameArray = ['#text', '#comment'];
|
11 |
-
|
12 |
-
let almAppendChild = function( target = null, element = null, transition = 'fade' ) {
|
13 |
-
if(!target || !element){
|
14 |
-
return false;
|
15 |
-
}
|
16 |
-
|
17 |
-
// Do not append elements that are not actual element nodes (i.e. #text node)
|
18 |
-
// Add item if not in exclude array
|
19 |
-
if(nodeNameArray.indexOf(element.nodeName.toLowerCase()) === -1){
|
20 |
-
if(transition === 'masonry'){ // If Masonry, opacity = zero
|
21 |
-
element.style.opacity = 0;
|
22 |
-
}
|
23 |
-
target.appendChild(element);
|
24 |
-
}
|
25 |
-
};
|
26 |
-
export default almAppendChild;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/helpers/almAppendChildren.js
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
import almAppendChild from './almAppendChild';
|
2 |
-
/**
|
3 |
-
* Loop array of elements and append to target
|
4 |
-
*
|
5 |
-
* @param {*} target | Target element to append items
|
6 |
-
* @param {*} array | An array of elements
|
7 |
-
* @param {*} transition | The transiton
|
8 |
-
* @since 5.0
|
9 |
-
*/
|
10 |
-
|
11 |
-
let almAppendChildren = function( target = null, array = null, transition = 'fade' ) {
|
12 |
-
if(!target || !array){
|
13 |
-
return false;
|
14 |
-
}
|
15 |
-
for (var i = 0; i < array.length; i++) {
|
16 |
-
let element = array[i];
|
17 |
-
almAppendChild(target, element, transition);
|
18 |
-
}
|
19 |
-
};
|
20 |
-
export default almAppendChildren;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/helpers/almDomParser.js
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Convert a plain text string into an array of HTML nodes
|
3 |
-
*
|
4 |
-
* @param {*} html | The HTML string
|
5 |
-
* @param {*} type
|
6 |
-
* @return array
|
7 |
-
* @since 5.0
|
8 |
-
*/
|
9 |
-
let almDomParser = function( html = '', type = 'text/html' ) {
|
10 |
-
if(!html){
|
11 |
-
return false;
|
12 |
-
}
|
13 |
-
let parser = new DOMParser();
|
14 |
-
let data = parser.parseFromString(html, type);
|
15 |
-
return (data) ? Array.prototype.slice.call(data.body.childNodes) : data;
|
16 |
-
};
|
17 |
-
export default almDomParser;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/helpers/commentReplyFix.js
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* commentReplyFix
|
3 |
-
* Hotfix for Reply links not working in WordPress 5.1+
|
4 |
-
*
|
5 |
-
* @param comments string
|
6 |
-
* @param listing object
|
7 |
-
* @since 5.1
|
8 |
-
*/
|
9 |
-
let commentReplyFix = function(comments = false, listing = null) {
|
10 |
-
|
11 |
-
if(comments !== 'true'){
|
12 |
-
// Exit if not comments
|
13 |
-
return false;
|
14 |
-
}
|
15 |
-
|
16 |
-
// Get all `Reply` links.
|
17 |
-
let replyLinks = listing.querySelectorAll('.comment-reply-link');
|
18 |
-
if(!replyLinks){
|
19 |
-
return false;
|
20 |
-
}
|
21 |
-
// Loop links
|
22 |
-
replyLinks.forEach(function(link){
|
23 |
-
// Add custom click handler
|
24 |
-
link.onclick = function(e) {
|
25 |
-
e.preventDefault();
|
26 |
-
let commId = link.dataset.belowelement,
|
27 |
-
parentId = link.dataset.commentid,
|
28 |
-
respondId = link.dataset.respondelement,
|
29 |
-
postId = link.dataset.postid,
|
30 |
-
follow;
|
31 |
-
if ( ! commId || ! parentId || ! respondId || ! postId ) {
|
32 |
-
/*
|
33 |
-
* Theme or plugin defines own link via custom `wp_list_comments()` callback
|
34 |
-
* and calls `moveForm()` either directly or via a custom event hook.
|
35 |
-
*/
|
36 |
-
return;
|
37 |
-
}
|
38 |
-
|
39 |
-
// Move reply form
|
40 |
-
follow = window.addComment.moveForm(commId, parentId, respondId, postId);
|
41 |
-
if (false === follow) {
|
42 |
-
event.preventDefault();
|
43 |
-
}
|
44 |
-
};
|
45 |
-
});
|
46 |
-
};
|
47 |
-
export default commentReplyFix;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/helpers/getCacheUrl.js
DELETED
@@ -1,79 +0,0 @@
|
|
1 |
-
import { parseQuerystring } from '../addons/filters';
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Generate the cache page URL for GET request
|
5 |
-
*
|
6 |
-
* @param {*} alm
|
7 |
-
* @since 5.0
|
8 |
-
* @supports Standard, SEO, Filters, Nextpage, Single Posts
|
9 |
-
*/
|
10 |
-
let getCacheUrl = function (alm) {
|
11 |
-
if (!alm) {
|
12 |
-
return false;
|
13 |
-
}
|
14 |
-
|
15 |
-
let firstpage = '1';
|
16 |
-
let cache_url = '';
|
17 |
-
let ext = '.html';
|
18 |
-
let path = alm.addons.cache_path + alm.addons.cache_id;
|
19 |
-
|
20 |
-
// SEO Add-on
|
21 |
-
if (alm.init && alm.addons.seo && alm.isPaged) {
|
22 |
-
// If request is a paged URL (e.g. /page/3/)
|
23 |
-
cache_url = path + '/page-' + firstpage + '-' + alm.start_page + ext;
|
24 |
-
}
|
25 |
-
|
26 |
-
// Filters
|
27 |
-
else if (alm.addons.filters) {
|
28 |
-
let filtersPath = parseQuerystring(path);
|
29 |
-
|
30 |
-
if (alm.init && alm.isPaged) {
|
31 |
-
// First run & Paged
|
32 |
-
cache_url = filtersPath + '/page-' + firstpage + '-' + alm.addons.filters_startpage + ext;
|
33 |
-
} else {
|
34 |
-
let page = alm.page + 1;
|
35 |
-
|
36 |
-
if (alm.addons.preloaded === 'true') {
|
37 |
-
// Preloaded + Filters
|
38 |
-
page = alm.page + 2;
|
39 |
-
}
|
40 |
-
cache_url = filtersPath + '/page-' + page + ext;
|
41 |
-
}
|
42 |
-
}
|
43 |
-
|
44 |
-
// Nextpage
|
45 |
-
else if (alm.addons.nextpage) {
|
46 |
-
let nextpage_cache_url;
|
47 |
-
if (alm.addons.paging) {
|
48 |
-
nextpage_cache_url = parseInt(alm.page) + 1;
|
49 |
-
} else {
|
50 |
-
nextpage_cache_url = parseInt(alm.page) + 2;
|
51 |
-
if (alm.isPaged) {
|
52 |
-
// If the request a paged URL (/page/3/)
|
53 |
-
nextpage_cache_url = parseInt(alm.page) + parseInt(alm.addons.nextpage_startpage) + 1;
|
54 |
-
}
|
55 |
-
}
|
56 |
-
|
57 |
-
cache_url = path + '/page-' + nextpage_cache_url + ext;
|
58 |
-
}
|
59 |
-
|
60 |
-
// Single Post
|
61 |
-
else if (alm.addons.single_post) {
|
62 |
-
cache_url = path + '/' + alm.addons.single_post_id + ext;
|
63 |
-
}
|
64 |
-
|
65 |
-
// Comments & Preloaded
|
66 |
-
else if (alm.addons.comments === 'true' && alm.addons.preloaded === 'true') {
|
67 |
-
// When using comments we need to increase the current page by 2
|
68 |
-
cache_url = path + '/page-' + (alm.page + 2) + ext;
|
69 |
-
}
|
70 |
-
|
71 |
-
// Standard URL request
|
72 |
-
else {
|
73 |
-
cache_url = path + '/page-' + (alm.page + 1) + ext;
|
74 |
-
}
|
75 |
-
|
76 |
-
return cache_url;
|
77 |
-
};
|
78 |
-
|
79 |
-
export default getCacheUrl;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/helpers/getParameterByName.js
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
let getParameterByName = function( name, url ) {
|
2 |
-
if (!url) url = window.location.href;
|
3 |
-
name = name.replace(/[\[\]]/g, "\\$&");
|
4 |
-
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
|
5 |
-
results = regex.exec(url);
|
6 |
-
if (!results) return null;
|
7 |
-
if (!results[2]) return '';
|
8 |
-
return decodeURIComponent(results[2].replace(/\+/g, " "));
|
9 |
-
};
|
10 |
-
export default getParameterByName;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/helpers/getQueryVariable.js
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Get a query variable from location querystring
|
3 |
-
*
|
4 |
-
* @param {String} variable
|
5 |
-
* @since 5.3.4
|
6 |
-
*/
|
7 |
-
const getQueryVariable = function (variable) {
|
8 |
-
var query = window.location.search.substring(1);
|
9 |
-
var vars = query.split("&");
|
10 |
-
for (var i = 0; i < vars.length; i++) {
|
11 |
-
var pair = vars[i].split("=");
|
12 |
-
if (decodeURIComponent(pair[0]) == variable) {
|
13 |
-
return decodeURIComponent(pair[1]);
|
14 |
-
}
|
15 |
-
}
|
16 |
-
return false;
|
17 |
-
};
|
18 |
-
|
19 |
-
export default getQueryVariable;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/helpers/helpers.js
DELETED
@@ -1,138 +0,0 @@
|
|
1 |
-
// Prevent native browser scrolling on popstate
|
2 |
-
// https://developer.mozilla.org/en-US/docs/Web/API/History#Browser_compatibility
|
3 |
-
if ('scrollRestoration' in history) {
|
4 |
-
//history.scrollRestoration = 'manual';
|
5 |
-
}
|
6 |
-
|
7 |
-
|
8 |
-
// Object.entries
|
9 |
-
if (!Object.entries){
|
10 |
-
Object.entries = function( obj ){
|
11 |
-
var ownProps = Object.keys( obj ),
|
12 |
-
i = ownProps.length,
|
13 |
-
resArray = new Array(i); // preallocate the Array
|
14 |
-
while (i--)
|
15 |
-
resArray[i] = [ownProps[i], obj[ownProps[i]]];
|
16 |
-
|
17 |
-
return resArray;
|
18 |
-
};
|
19 |
-
}
|
20 |
-
|
21 |
-
|
22 |
-
// isArray
|
23 |
-
if (typeof Array.isArray === 'undefined') {
|
24 |
-
Array.isArray = function(obj) {
|
25 |
-
return Object.prototype.toString.call(obj) === '[object Array]';
|
26 |
-
}
|
27 |
-
};
|
28 |
-
|
29 |
-
|
30 |
-
// Array.from
|
31 |
-
if (!Array.from) {
|
32 |
-
Array.from = (function () {
|
33 |
-
var toStr = Object.prototype.toString;
|
34 |
-
var isCallable = function (fn) {
|
35 |
-
return typeof fn === 'function' || toStr.call(fn) === '[object Function]';
|
36 |
-
};
|
37 |
-
var toInteger = function (value) {
|
38 |
-
var number = Number(value);
|
39 |
-
if (isNaN(number)) { return 0; }
|
40 |
-
if (number === 0 || !isFinite(number)) { return number; }
|
41 |
-
return (number > 0 ? 1 : -1) * Math.floor(Math.abs(number));
|
42 |
-
};
|
43 |
-
var maxSafeInteger = Math.pow(2, 53) - 1;
|
44 |
-
var toLength = function (value) {
|
45 |
-
var len = toInteger(value);
|
46 |
-
return Math.min(Math.max(len, 0), maxSafeInteger);
|
47 |
-
};
|
48 |
-
|
49 |
-
// The length property of the from method is 1.
|
50 |
-
return function from(arrayLike/*, mapFn, thisArg */) {
|
51 |
-
// 1. Let C be the this value.
|
52 |
-
var C = this;
|
53 |
-
|
54 |
-
// 2. Let items be ToObject(arrayLike).
|
55 |
-
var items = Object(arrayLike);
|
56 |
-
|
57 |
-
// 3. ReturnIfAbrupt(items).
|
58 |
-
if (arrayLike == null) {
|
59 |
-
throw new TypeError('Array.from requires an array-like object - not null or undefined');
|
60 |
-
}
|
61 |
-
|
62 |
-
// 4. If mapfn is undefined, then let mapping be false.
|
63 |
-
var mapFn = arguments.length > 1 ? arguments[1] : void undefined;
|
64 |
-
var T;
|
65 |
-
if (typeof mapFn !== 'undefined') {
|
66 |
-
// 5. else
|
67 |
-
// 5. a If IsCallable(mapfn) is false, throw a TypeError exception.
|
68 |
-
if (!isCallable(mapFn)) {
|
69 |
-
throw new TypeError('Array.from: when provided, the second argument must be a function');
|
70 |
-
}
|
71 |
-
|
72 |
-
// 5. b. If thisArg was supplied, let T be thisArg; else let T be undefined.
|
73 |
-
if (arguments.length > 2) {
|
74 |
-
T = arguments[2];
|
75 |
-
}
|
76 |
-
}
|
77 |
-
|
78 |
-
// 10. Let lenValue be Get(items, "length").
|
79 |
-
// 11. Let len be ToLength(lenValue).
|
80 |
-
var len = toLength(items.length);
|
81 |
-
|
82 |
-
// 13. If IsConstructor(C) is true, then
|
83 |
-
// 13. a. Let A be the result of calling the [[Construct]] internal method
|
84 |
-
// of C with an argument list containing the single item len.
|
85 |
-
// 14. a. Else, Let A be ArrayCreate(len).
|
86 |
-
var A = isCallable(C) ? Object(new C(len)) : new Array(len);
|
87 |
-
|
88 |
-
// 16. Let k be 0.
|
89 |
-
var k = 0;
|
90 |
-
// 17. Repeat, while k < len… (also steps a - h)
|
91 |
-
var kValue;
|
92 |
-
while (k < len) {
|
93 |
-
kValue = items[k];
|
94 |
-
if (mapFn) {
|
95 |
-
A[k] = typeof T === 'undefined' ? mapFn(kValue, k) : mapFn.call(T, kValue, k);
|
96 |
-
} else {
|
97 |
-
A[k] = kValue;
|
98 |
-
}
|
99 |
-
k += 1;
|
100 |
-
}
|
101 |
-
// 18. Let putStatus be Put(A, "length", len, true).
|
102 |
-
A.length = len;
|
103 |
-
// 20. Return A.
|
104 |
-
return A;
|
105 |
-
};
|
106 |
-
}());
|
107 |
-
}
|
108 |
-
|
109 |
-
|
110 |
-
// Nodelist
|
111 |
-
if (window.NodeList && !NodeList.prototype.forEach) {
|
112 |
-
NodeList.prototype.forEach = function (callback, thisArg) {
|
113 |
-
thisArg = thisArg || window;
|
114 |
-
for (var i = 0; i < this.length; i++) {
|
115 |
-
callback.call(thisArg, this[i], i, this);
|
116 |
-
}
|
117 |
-
};
|
118 |
-
}
|
119 |
-
|
120 |
-
|
121 |
-
// removeChild
|
122 |
-
// https://github.com/jserz/js_piece/blob/master/DOM/ChildNode/remove()/remove().md
|
123 |
-
(function (arr) {
|
124 |
-
arr.forEach(function (item) {
|
125 |
-
if (item.hasOwnProperty('remove')) {
|
126 |
-
return;
|
127 |
-
}
|
128 |
-
Object.defineProperty(item, 'remove', {
|
129 |
-
configurable: true,
|
130 |
-
enumerable: true,
|
131 |
-
writable: true,
|
132 |
-
value: function remove() {
|
133 |
-
if (this.parentNode !== null)
|
134 |
-
this.parentNode.removeChild(this);
|
135 |
-
}
|
136 |
-
});
|
137 |
-
});
|
138 |
-
})([Element.prototype, CharacterData.prototype, DocumentType.prototype]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/helpers/polyfills.js
DELETED
@@ -1,232 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Add dataset support to elements
|
3 |
-
* No globals, no overriding prototype with non-standard methods,
|
4 |
-
* handles CamelCase properly, attempts to use standard
|
5 |
-
* Object.defineProperty() (and Function bind()) methods,
|
6 |
-
* falls back to native implementation when existing
|
7 |
-
* Inspired by http://code.eligrey.com/html5/dataset/
|
8 |
-
* (via https://github.com/adalgiso/html5-dataset/blob/master/html5-dataset.js )
|
9 |
-
* Depends on Function.bind and Object.defineProperty/Object.getOwnPropertyDescriptor (polyfills below)
|
10 |
-
* All code below is Licensed under the X11/MIT License
|
11 |
-
*/
|
12 |
-
if (!Function.prototype.bind) {
|
13 |
-
Function.prototype.bind = function (oThis) {
|
14 |
-
'use strict';
|
15 |
-
if (typeof this !== "function") {
|
16 |
-
// closest thing possible to the ECMAScript 5 internal IsCallable function
|
17 |
-
throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");
|
18 |
-
}
|
19 |
-
|
20 |
-
var aArgs = Array.prototype.slice.call(arguments, 1),
|
21 |
-
fToBind = this,
|
22 |
-
FNOP = function () {},
|
23 |
-
fBound = function () {
|
24 |
-
return fToBind.apply(
|
25 |
-
this instanceof FNOP && oThis ? this : oThis,
|
26 |
-
aArgs.concat(Array.prototype.slice.call(arguments))
|
27 |
-
);
|
28 |
-
};
|
29 |
-
|
30 |
-
FNOP.prototype = this.prototype;
|
31 |
-
fBound.prototype = new FNOP();
|
32 |
-
|
33 |
-
return fBound;
|
34 |
-
};
|
35 |
-
}
|
36 |
-
|
37 |
-
/*
|
38 |
-
* Xccessors Standard: Cross-browser ECMAScript 5 accessors
|
39 |
-
* http://purl.eligrey.com/github/Xccessors
|
40 |
-
*
|
41 |
-
* 2010-06-21
|
42 |
-
*
|
43 |
-
* By Eli Grey, http://eligrey.com
|
44 |
-
*
|
45 |
-
* A shim that partially implements Object.defineProperty,
|
46 |
-
* Object.getOwnPropertyDescriptor, and Object.defineProperties in browsers that have
|
47 |
-
* legacy __(define|lookup)[GS]etter__ support.
|
48 |
-
*
|
49 |
-
* Licensed under the X11/MIT License
|
50 |
-
* See LICENSE.md
|
51 |
-
*/
|
52 |
-
|
53 |
-
(function () {
|
54 |
-
'use strict';
|
55 |
-
var ObjectProto = Object.prototype,
|
56 |
-
defineGetter = ObjectProto.__defineGetter__,
|
57 |
-
defineSetter = ObjectProto.__defineSetter__,
|
58 |
-
lookupGetter = ObjectProto.__lookupGetter__,
|
59 |
-
lookupSetter = ObjectProto.__lookupSetter__,
|
60 |
-
hasOwnProp = ObjectProto.hasOwnProperty;
|
61 |
-
|
62 |
-
if (defineGetter && defineSetter && lookupGetter && lookupSetter) {
|
63 |
-
|
64 |
-
if (!Object.defineProperty) {
|
65 |
-
Object.defineProperty = function (obj, prop, descriptor) {
|
66 |
-
if (arguments.length < 3) { // all arguments required
|
67 |
-
throw new TypeError("Arguments not optional");
|
68 |
-
}
|
69 |
-
|
70 |
-
prop += ""; // convert prop to string
|
71 |
-
|
72 |
-
if (hasOwnProp.call(descriptor, "value")) {
|
73 |
-
if (!lookupGetter.call(obj, prop) && !lookupSetter.call(obj, prop)) {
|
74 |
-
// data property defined and no pre-existing accessors
|
75 |
-
obj[prop] = descriptor.value;
|
76 |
-
}
|
77 |
-
|
78 |
-
if ((hasOwnProp.call(descriptor, "get") ||
|
79 |
-
hasOwnProp.call(descriptor, "set")))
|
80 |
-
{
|
81 |
-
// descriptor has a value prop but accessor already exists
|
82 |
-
throw new TypeError("Cannot specify an accessor and a value");
|
83 |
-
}
|
84 |
-
}
|
85 |
-
|
86 |
-
// can't switch off these features in ECMAScript 3
|
87 |
-
// so throw a TypeError if any are false
|
88 |
-
if (!(descriptor.writable && descriptor.enumerable &&
|
89 |
-
descriptor.configurable))
|
90 |
-
{
|
91 |
-
throw new TypeError(
|
92 |
-
"This implementation of Object.defineProperty does not support" +
|
93 |
-
" false for configurable, enumerable, or writable."
|
94 |
-
);
|
95 |
-
}
|
96 |
-
|
97 |
-
if (descriptor.get) {
|
98 |
-
defineGetter.call(obj, prop, descriptor.get);
|
99 |
-
}
|
100 |
-
if (descriptor.set) {
|
101 |
-
defineSetter.call(obj, prop, descriptor.set);
|
102 |
-
}
|
103 |
-
|
104 |
-
return obj;
|
105 |
-
};
|
106 |
-
}
|
107 |
-
|
108 |
-
if (!Object.getOwnPropertyDescriptor) {
|
109 |
-
Object.getOwnPropertyDescriptor = function (obj, prop) {
|
110 |
-
if (arguments.length < 2) { // all arguments required
|
111 |
-
throw new TypeError("Arguments not optional.");
|
112 |
-
}
|
113 |
-
|
114 |
-
prop += ""; // convert prop to string
|
115 |
-
|
116 |
-
var descriptor = {
|
117 |
-
configurable: true,
|
118 |
-
enumerable : true,
|
119 |
-
writable : true
|
120 |
-
},
|
121 |
-
getter = lookupGetter.call(obj, prop),
|
122 |
-
setter = lookupSetter.call(obj, prop);
|
123 |
-
|
124 |
-
if (!hasOwnProp.call(obj, prop)) {
|
125 |
-
// property doesn't exist or is inherited
|
126 |
-
return descriptor;
|
127 |
-
}
|
128 |
-
if (!getter && !setter) { // not an accessor so return prop
|
129 |
-
descriptor.value = obj[prop];
|
130 |
-
return descriptor;
|
131 |
-
}
|
132 |
-
|
133 |
-
// there is an accessor, remove descriptor.writable;
|
134 |
-
// populate descriptor.get and descriptor.set (IE's behavior)
|
135 |
-
delete descriptor.writable;
|
136 |
-
descriptor.get = descriptor.set = undefined;
|
137 |
-
|
138 |
-
if (getter) {
|
139 |
-
descriptor.get = getter;
|
140 |
-
}
|
141 |
-
if (setter) {
|
142 |
-
descriptor.set = setter;
|
143 |
-
}
|
144 |
-
|
145 |
-
return descriptor;
|
146 |
-
};
|
147 |
-
}
|
148 |
-
|
149 |
-
if (!Object.defineProperties) {
|
150 |
-
Object.defineProperties = function (obj, props) {
|
151 |
-
var prop;
|
152 |
-
for (prop in props) {
|
153 |
-
if (hasOwnProp.call(props, prop)) {
|
154 |
-
Object.defineProperty(obj, prop, props[prop]);
|
155 |
-
}
|
156 |
-
}
|
157 |
-
};
|
158 |
-
}
|
159 |
-
}
|
160 |
-
}());
|
161 |
-
|
162 |
-
// Begin dataset code
|
163 |
-
|
164 |
-
if (!document.documentElement.dataset &&
|
165 |
-
// FF is empty while IE gives empty object
|
166 |
-
(!Object.getOwnPropertyDescriptor(Element.prototype, 'dataset') ||
|
167 |
-
!Object.getOwnPropertyDescriptor(Element.prototype, 'dataset').get)
|
168 |
-
) {
|
169 |
-
var propDescriptor = {
|
170 |
-
enumerable: true,
|
171 |
-
get: function () {
|
172 |
-
'use strict';
|
173 |
-
var i,
|
174 |
-
that = this,
|
175 |
-
HTML5_DOMStringMap,
|
176 |
-
attrVal, attrName, propName,
|
177 |
-
attribute,
|
178 |
-
attributes = this.attributes,
|
179 |
-
attsLength = attributes.length,
|
180 |
-
toUpperCase = function (n0) {
|
181 |
-
return n0.charAt(1).toUpperCase();
|
182 |
-
},
|
183 |
-
getter = function () {
|
184 |
-
return this;
|
185 |
-
},
|
186 |
-
setter = function (attrName, value) {
|
187 |
-
return (typeof value !== 'undefined') ?
|
188 |
-
this.setAttribute(attrName, value) :
|
189 |
-
this.removeAttribute(attrName);
|
190 |
-
};
|
191 |
-
try { // Simulate DOMStringMap w/accessor support
|
192 |
-
// Test setting accessor on normal object
|
193 |
-
({}).__defineGetter__('test', function () {});
|
194 |
-
HTML5_DOMStringMap = {};
|
195 |
-
}
|
196 |
-
catch (e1) { // Use a DOM object for IE8
|
197 |
-
HTML5_DOMStringMap = document.createElement('div');
|
198 |
-
}
|
199 |
-
for (i = 0; i < attsLength; i++) {
|
200 |
-
attribute = attributes[i];
|
201 |
-
// Fix: This test really should allow any XML Name without
|
202 |
-
// colons (and non-uppercase for XHTML)
|
203 |
-
if (attribute && attribute.name &&
|
204 |
-
(/^data-\w[\w\-]*$/).test(attribute.name)) {
|
205 |
-
attrVal = attribute.value;
|
206 |
-
attrName = attribute.name;
|
207 |
-
// Change to CamelCase
|
208 |
-
propName = attrName.substr(5).replace(/-./g, toUpperCase);
|
209 |
-
try {
|
210 |
-
Object.defineProperty(HTML5_DOMStringMap, propName, {
|
211 |
-
enumerable: this.enumerable,
|
212 |
-
get: getter.bind(attrVal || ''),
|
213 |
-
set: setter.bind(that, attrName)
|
214 |
-
});
|
215 |
-
}
|
216 |
-
catch (e2) { // if accessors are not working
|
217 |
-
HTML5_DOMStringMap[propName] = attrVal;
|
218 |
-
}
|
219 |
-
}
|
220 |
-
}
|
221 |
-
return HTML5_DOMStringMap;
|
222 |
-
}
|
223 |
-
};
|
224 |
-
try {
|
225 |
-
// FF enumerates over element's dataset, but not
|
226 |
-
// Element.prototype.dataset; IE9 iterates over both
|
227 |
-
Object.defineProperty(Element.prototype, 'dataset', propDescriptor);
|
228 |
-
} catch (e) {
|
229 |
-
propDescriptor.enumerable = false; // IE8 does not allow setting to true
|
230 |
-
Object.defineProperty(Element.prototype, 'dataset', propDescriptor);
|
231 |
-
}
|
232 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/helpers/queryParams.js
DELETED
@@ -1,225 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* almGetAjaxParams
|
3 |
-
* Build the data object to send with the Ajax request
|
4 |
-
*
|
5 |
-
* @param alm object
|
6 |
-
* @param action string
|
7 |
-
* @param queryType string
|
8 |
-
* @since 3.6
|
9 |
-
*/
|
10 |
-
|
11 |
-
export function almGetAjaxParams(alm, action, queryType){
|
12 |
-
|
13 |
-
// Defaults
|
14 |
-
let data = {
|
15 |
-
id : alm.id,
|
16 |
-
post_id : alm.post_id,
|
17 |
-
slug : alm.slug,
|
18 |
-
canonical_url : encodeURIComponent(alm.canonical_url),
|
19 |
-
posts_per_page : alm.posts_per_page,
|
20 |
-
page : alm.page,
|
21 |
-
offset : alm.offset,
|
22 |
-
post_type : alm.post_type,
|
23 |
-
repeater : alm.repeater,
|
24 |
-
seo_start_page : alm.start_page
|
25 |
-
};
|
26 |
-
|
27 |
-
|
28 |
-
// Addons & Extensions
|
29 |
-
|
30 |
-
if(alm.theme_repeater){
|
31 |
-
data.theme_repeater = alm.theme_repeater;
|
32 |
-
}
|
33 |
-
if(alm.addons.filters){
|
34 |
-
data.filters = alm.addons.filters;
|
35 |
-
data.filters_startpage = alm.addons.filters_startpage;
|
36 |
-
}
|
37 |
-
if(alm.addons.paging){
|
38 |
-
data.paging = alm.addons.paging;
|
39 |
-
}
|
40 |
-
if(alm.addons.preloaded){
|
41 |
-
data.preloaded = alm.addons.preloaded;
|
42 |
-
data.preloaded_amount = alm.addons.preloaded_amount;
|
43 |
-
}
|
44 |
-
if(alm.addons.cache === 'true'){
|
45 |
-
data.cache_id = alm.addons.cache_id;
|
46 |
-
data.cache_logged_in = alm.addons.cache_logged_in;
|
47 |
-
}
|
48 |
-
if(alm.acf_array){
|
49 |
-
data.acf = alm.acf_array;
|
50 |
-
}
|
51 |
-
if(alm.term_query_array){
|
52 |
-
data.term_query = alm.term_query_array;
|
53 |
-
}
|
54 |
-
if(alm.cta_array){
|
55 |
-
data.cta = alm.cta_array;
|
56 |
-
}
|
57 |
-
if(alm.comments_array){
|
58 |
-
data.comments = alm.comments_array;
|
59 |
-
}
|
60 |
-
if(alm.nextpage_array){
|
61 |
-
data.nextpage = alm.nextpage_array;
|
62 |
-
}
|
63 |
-
if(alm.single_post_array){
|
64 |
-
data.single_post = alm.single_post_array;
|
65 |
-
}
|
66 |
-
if(alm.users_array){
|
67 |
-
data.users = alm.users_array;
|
68 |
-
}
|
69 |
-
|
70 |
-
|
71 |
-
// Query data
|
72 |
-
if(alm.listing.dataset.lang){
|
73 |
-
data.lang = alm.listing.dataset.lang;
|
74 |
-
}
|
75 |
-
if(alm.listing.dataset.stickyPosts){
|
76 |
-
data.sticky_posts = alm.listing.dataset.stickyPosts;
|
77 |
-
}
|
78 |
-
if(alm.listing.dataset.postFormat){
|
79 |
-
data.post_format = alm.listing.dataset.postFormat;
|
80 |
-
}
|
81 |
-
if(alm.listing.dataset.category){
|
82 |
-
data.category = alm.listing.dataset.category;
|
83 |
-
}
|
84 |
-
if(alm.listing.dataset.categoryAnd){
|
85 |
-
data.category__and = alm.listing.dataset.categoryAnd;
|
86 |
-
}
|
87 |
-
if(alm.listing.dataset.categoryNotIn){
|
88 |
-
data.category__not_in = alm.listing.dataset.categoryNotIn;
|
89 |
-
}
|
90 |
-
if(alm.listing.dataset.tag){
|
91 |
-
data.tag = alm.listing.dataset.tag;
|
92 |
-
}
|
93 |
-
if(alm.listing.dataset.tagAnd){
|
94 |
-
data.tag__and = alm.listing.dataset.tagAnd;
|
95 |
-
}
|
96 |
-
if(alm.listing.dataset.tagNotIn){
|
97 |
-
data.tag__not_in = alm.listing.dataset.tagNotIn;
|
98 |
-
}
|
99 |
-
if(alm.listing.dataset.taxonomy){
|
100 |
-
data.taxonomy = alm.listing.dataset.taxonomy;
|
101 |
-
}
|
102 |
-
if(alm.listing.dataset.taxonomyTerms){
|
103 |
-
data.taxonomy_terms = alm.listing.dataset.taxonomyTerms;
|
104 |
-
}
|
105 |
-
if(alm.listing.dataset.taxonomyOperator){
|
106 |
-
data.taxonomy_operator = alm.listing.dataset.taxonomyOperator;
|
107 |
-
}
|
108 |
-
if(alm.listing.dataset.taxonomyRelation){
|
109 |
-
data.taxonomy_relation = alm.listing.dataset.taxonomyRelation;
|
110 |
-
}
|
111 |
-
if(alm.listing.dataset.metaKey){
|
112 |
-
data.meta_key = alm.listing.dataset.metaKey;
|
113 |
-
}
|
114 |
-
if(alm.listing.dataset.metaValue){
|
115 |
-
data.meta_value = alm.listing.dataset.metaValue;
|
116 |
-
}
|
117 |
-
if(alm.listing.dataset.metaCompare){
|
118 |
-
data.meta_compare = alm.listing.dataset.metaCompare;
|
119 |
-
}
|
120 |
-
if(alm.listing.dataset.metaRelation){
|
121 |
-
data.meta_relation = alm.listing.dataset.metaRelation;
|
122 |
-
}
|
123 |
-
if(alm.listing.dataset.metaType){
|
124 |
-
data.meta_type = alm.listing.dataset.metaType;
|
125 |
-
}
|
126 |
-
if(alm.listing.dataset.author){
|
127 |
-
data.author = alm.listing.dataset.author;
|
128 |
-
}
|
129 |
-
if(alm.listing.dataset.year){
|
130 |
-
data.year = alm.listing.dataset.year;
|
131 |
-
}
|
132 |
-
if(alm.listing.dataset.month){
|
133 |
-
data.month = alm.listing.dataset.month;
|
134 |
-
}
|
135 |
-
if(alm.listing.dataset.day){
|
136 |
-
data.day = alm.listing.dataset.day;
|
137 |
-
}
|
138 |
-
if(alm.listing.dataset.order){
|
139 |
-
data.order = alm.listing.dataset.order;
|
140 |
-
}
|
141 |
-
if(alm.listing.dataset.orderby){
|
142 |
-
data.orderby = alm.listing.dataset.orderby;
|
143 |
-
}
|
144 |
-
if(alm.listing.dataset.postStatus){
|
145 |
-
data.post_status = alm.listing.dataset.postStatus;
|
146 |
-
}
|
147 |
-
if(alm.listing.dataset.postIn){
|
148 |
-
data.post__in = alm.listing.dataset.postIn;
|
149 |
-
}
|
150 |
-
if(alm.listing.dataset.postNotIn){
|
151 |
-
data.post__not_in = alm.listing.dataset.postNotIn;
|
152 |
-
}
|
153 |
-
if(alm.listing.dataset.exclude){
|
154 |
-
data.exclude = alm.listing.dataset.exclude;
|
155 |
-
}
|
156 |
-
if(alm.listing.dataset.search){
|
157 |
-
data.search = alm.listing.dataset.search;
|
158 |
-
}
|
159 |
-
if(alm.listing.dataset.s){
|
160 |
-
data.search = alm.listing.dataset.s;
|
161 |
-
}
|
162 |
-
if(alm.listing.dataset.customArgs){
|
163 |
-
data.custom_args = alm.listing.dataset.customArgs;
|
164 |
-
}
|
165 |
-
|
166 |
-
data.action = action;
|
167 |
-
data.query_type = queryType;
|
168 |
-
|
169 |
-
return data;
|
170 |
-
|
171 |
-
}
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
/**
|
176 |
-
* almGetRestParams
|
177 |
-
* Build the REST API data object to send with REST API request
|
178 |
-
*
|
179 |
-
* @param alm object
|
180 |
-
* @since 3.6
|
181 |
-
*/
|
182 |
-
export function almGetRestParams(alm){
|
183 |
-
let data = {
|
184 |
-
id : alm.id,
|
185 |
-
post_id : alm.post_id,
|
186 |
-
posts_per_page : alm.posts_per_page,
|
187 |
-
page : alm.page,
|
188 |
-
offset : alm.offset,
|
189 |
-
slug : alm.slug,
|
190 |
-
canonical_url : encodeURIComponent(alm.canonical_url),
|
191 |
-
post_type : alm.post_type,
|
192 |
-
post_format : alm.listing.dataset.postFormat,
|
193 |
-
category : alm.listing.dataset.category,
|
194 |
-
category__not_in : alm.listing.dataset.categoryNotIn,
|
195 |
-
tag : alm.listing.dataset.tag,
|
196 |
-
tag__not_in : alm.listing.dataset.tagNotIn,
|
197 |
-
taxonomy : alm.listing.dataset.taxonomy,
|
198 |
-
taxonomy_terms : alm.listing.dataset.taxonomyTerms,
|
199 |
-
taxonomy_operator : alm.listing.dataset.taxonomyOperator,
|
200 |
-
taxonomy_relation : alm.listing.dataset.taxonomyRelation,
|
201 |
-
meta_key : alm.listing.dataset.metaKey,
|
202 |
-
meta_value : alm.listing.dataset.metaValue,
|
203 |
-
meta_compare : alm.listing.dataset.metaCompare,
|
204 |
-
meta_relation : alm.listing.dataset.metaRelation,
|
205 |
-
meta_type : alm.listing.dataset.metaType,
|
206 |
-
author : alm.listing.dataset.author,
|
207 |
-
year : alm.listing.dataset.year,
|
208 |
-
month : alm.listing.dataset.month,
|
209 |
-
day : alm.listing.dataset.day,
|
210 |
-
post_status : alm.listing.dataset.postStatus,
|
211 |
-
order : alm.listing.dataset.order,
|
212 |
-
orderby : alm.listing.dataset.orderby,
|
213 |
-
post__in : alm.listing.dataset.postIn,
|
214 |
-
post__not_in : alm.listing.dataset.postNotIn,
|
215 |
-
search : alm.listing.dataset.search,
|
216 |
-
s : alm.listing.dataset.s,
|
217 |
-
custom_args : alm.listing.dataset.customArgs,
|
218 |
-
lang : alm.lang,
|
219 |
-
preloaded : alm.addons.preloaded,
|
220 |
-
preloaded_amount : alm.addons.preloaded_amount,
|
221 |
-
seo_start_page : alm.start_page
|
222 |
-
};
|
223 |
-
|
224 |
-
return data;
|
225 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/helpers/srcsetPolyfill.js
DELETED
@@ -1,31 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* srcsetPolyfill
|
3 |
-
* A Safari srcset polyfill to get Masonry and ImagesLoaded working
|
4 |
-
*
|
5 |
-
* @param {*} container Element
|
6 |
-
* @param {*} ua String
|
7 |
-
* @since 5.0.2
|
8 |
-
*/
|
9 |
-
let srcsetPolyfill = (container = null, ua = '') => {
|
10 |
-
|
11 |
-
// Exit if no container
|
12 |
-
if( !container ){
|
13 |
-
return false;
|
14 |
-
}
|
15 |
-
|
16 |
-
// Exit if useragent is Chrome, Safari or Windows
|
17 |
-
if( (ua.indexOf('Safari') > -1 && ua.indexOf('Chrome') != -1) || (ua.indexOf('Firefox') > -1) || (ua.indexOf('Windows') > -1) ){
|
18 |
-
return false;
|
19 |
-
}
|
20 |
-
|
21 |
-
// Get the images
|
22 |
-
let imgs = container.querySelectorAll('img[srcset]:not(.alm-loaded)');
|
23 |
-
|
24 |
-
// Loop images
|
25 |
-
for ( var i=0; i < imgs.length; i++ ) {
|
26 |
-
let img = imgs[i];
|
27 |
-
img.classList.add('alm-loaded');
|
28 |
-
img.outerHTML = img.outerHTML;
|
29 |
-
}
|
30 |
-
}
|
31 |
-
export default srcsetPolyfill;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/helpers/stripEmptyNodes.js
DELETED
@@ -1,24 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Remove empty HTML nodes from array of nodes
|
3 |
-
* Remove all empty text nodes from SEO and Filters return
|
4 |
-
*
|
5 |
-
* @param {*} nodes | Array of HTML nodes
|
6 |
-
* @return array
|
7 |
-
* @since 5.1.3
|
8 |
-
*/
|
9 |
-
let stripEmptyNodes = function( nodes = '' ) {
|
10 |
-
if(!nodes){
|
11 |
-
return false;
|
12 |
-
}
|
13 |
-
|
14 |
-
// Exclude these nodeNames from being rendered
|
15 |
-
let nodeNameArray = ['#text', '#comment'];
|
16 |
-
|
17 |
-
// Filter data by nodeName
|
18 |
-
let results = nodes.filter(node => (nodeNameArray.indexOf(node.nodeName.toLowerCase()) === -1) );
|
19 |
-
|
20 |
-
// Send the results
|
21 |
-
return results;
|
22 |
-
|
23 |
-
};
|
24 |
-
export default stripEmptyNodes;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/helpers/tableWrap.js
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Wrap `table` containers in tbody elements
|
3 |
-
* innerHTML and DOMParser do not work with <tr/> <td/> elements etc.
|
4 |
-
*
|
5 |
-
* @param {*} html | Plain text
|
6 |
-
* @since 5.0
|
7 |
-
*/
|
8 |
-
let tableWrap = function( html = null ) {
|
9 |
-
if(!html){
|
10 |
-
return false;
|
11 |
-
}
|
12 |
-
let table_reveal = document.createElement('tbody');
|
13 |
-
table_reveal.innerHTML = html;
|
14 |
-
let table_reveal_array = [table_reveal];
|
15 |
-
return table_reveal_array; // Return new array
|
16 |
-
};
|
17 |
-
export default tableWrap;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/modules/almDebug.js
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Display alm_debug results
|
3 |
-
* https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/#alm_debug
|
4 |
-
*
|
5 |
-
* @param {object} alm Global alm object
|
6 |
-
* @since 5.1.6
|
7 |
-
*/
|
8 |
-
|
9 |
-
let almDebug = function(alm){
|
10 |
-
if(alm && alm.debug){
|
11 |
-
let obj = {
|
12 |
-
'query' : alm.debug,
|
13 |
-
'localize' : alm.localize
|
14 |
-
}
|
15 |
-
console.log('ALM Debug:', obj);
|
16 |
-
}
|
17 |
-
}
|
18 |
-
|
19 |
-
export default almDebug;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/modules/fadeIn.js
DELETED
@@ -1,25 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Fade element in
|
3 |
-
* @param {*} element
|
4 |
-
* @param {*} speed
|
5 |
-
*/
|
6 |
-
let almFadeIn = (element, speed) => {
|
7 |
-
if(speed == 0){
|
8 |
-
element.style.opacity = 1;
|
9 |
-
element.style.height = 'auto';
|
10 |
-
|
11 |
-
} else {
|
12 |
-
speed = speed/10;
|
13 |
-
let op = 0; // initial opacity
|
14 |
-
let timer = setInterval(function () {
|
15 |
-
if (op > 0.9){
|
16 |
-
element.style.opacity = 1;
|
17 |
-
clearInterval(timer);
|
18 |
-
}
|
19 |
-
element.style.opacity = op;
|
20 |
-
op += 0.1;
|
21 |
-
}, speed);
|
22 |
-
element.style.height = 'auto';
|
23 |
-
}
|
24 |
-
}
|
25 |
-
export default almFadeIn;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/modules/fadeOut.js
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Fade element out
|
3 |
-
* @param {*} element
|
4 |
-
* @param {*} speed
|
5 |
-
*/
|
6 |
-
let almFadeOut = (element, speed) => {
|
7 |
-
speed = speed/10;
|
8 |
-
element.style.opacity = 0.5;
|
9 |
-
let fadeEffect = setInterval(function () {
|
10 |
-
if (element.style.opacity < 0.1) {
|
11 |
-
clearInterval(fadeEffect);
|
12 |
-
} else {
|
13 |
-
element.style.opacity -= 0.1;
|
14 |
-
}
|
15 |
-
}, speed);
|
16 |
-
}
|
17 |
-
export default almFadeOut;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/modules/filtering.js
DELETED
@@ -1,198 +0,0 @@
|
|
1 |
-
import almFadeIn from './fadeIn';
|
2 |
-
import almFadeOut from './fadeOut';
|
3 |
-
import { clearTOC } from './tableofcontents';
|
4 |
-
|
5 |
-
/**
|
6 |
-
* almFilter(type, speed, data)
|
7 |
-
* Filter Ajax Load More
|
8 |
-
*
|
9 |
-
* @param {*} transition string;
|
10 |
-
* @param {*} speed number;
|
11 |
-
* @param {*} data obj;
|
12 |
-
* @param {*} type string;
|
13 |
-
* @since 2.6.1
|
14 |
-
*/
|
15 |
-
|
16 |
-
let almFilter = function (transition, speed, data, type = 'filter') {
|
17 |
-
if (data.target) {
|
18 |
-
// if a target has been specified
|
19 |
-
let target = document.querySelectorAll(
|
20 |
-
'.ajax-load-more-wrap[data-id="' + data.target + '"]'
|
21 |
-
);
|
22 |
-
target.forEach(function (element) {
|
23 |
-
almFilterTransition(transition, speed, data, element, type);
|
24 |
-
});
|
25 |
-
} else {
|
26 |
-
// Target not specified
|
27 |
-
let alm = document.querySelectorAll('.ajax-load-more-wrap');
|
28 |
-
alm.forEach(function (element) {
|
29 |
-
almFilterTransition(transition, speed, data, element, type);
|
30 |
-
});
|
31 |
-
}
|
32 |
-
|
33 |
-
// Clear table of contents if required
|
34 |
-
clearTOC();
|
35 |
-
};
|
36 |
-
export default almFilter;
|
37 |
-
|
38 |
-
/**
|
39 |
-
* almFilterTransition(transition, speed, data, el)
|
40 |
-
* Transition Ajax Load More
|
41 |
-
*
|
42 |
-
* @param {*} transition string;
|
43 |
-
* @param {*} speed number;
|
44 |
-
* @param {*} data obj;
|
45 |
-
* @param {*} el element;
|
46 |
-
* @param {*} type string;
|
47 |
-
* @since 2.13.1
|
48 |
-
*/
|
49 |
-
let almFilterTransition = function (transition, speed, data, el, type) {
|
50 |
-
if (transition === 'fade' || transition === 'masonry') {
|
51 |
-
// Fade, Masonry transition
|
52 |
-
|
53 |
-
switch (type) {
|
54 |
-
case 'filter':
|
55 |
-
el.classList.add('alm-is-filtering');
|
56 |
-
almFadeOut(el, speed);
|
57 |
-
|
58 |
-
break;
|
59 |
-
|
60 |
-
case 'tab':
|
61 |
-
el.classList.add('alm-loading');
|
62 |
-
let new_el = el.querySelector('.alm-listing');
|
63 |
-
el.style.height = new_el.offsetHeight + 'px';
|
64 |
-
almFadeOut(new_el, speed);
|
65 |
-
|
66 |
-
break;
|
67 |
-
}
|
68 |
-
|
69 |
-
// Move to next function
|
70 |
-
setTimeout(function () {
|
71 |
-
almCompleteFilterTransition(speed, data, el, type);
|
72 |
-
}, speed);
|
73 |
-
} else {
|
74 |
-
// No transition
|
75 |
-
el.classList.add('alm-is-filtering');
|
76 |
-
almCompleteFilterTransition(speed, data, el, type);
|
77 |
-
}
|
78 |
-
};
|
79 |
-
|
80 |
-
/**
|
81 |
-
* almCompleteFilterTransition
|
82 |
-
* Complete the filter transition
|
83 |
-
*
|
84 |
-
* @param {*} speed number;
|
85 |
-
* @param {*} data obj;
|
86 |
-
* @param {*} el element;
|
87 |
-
* @param {*} type string;
|
88 |
-
* @since 3.3
|
89 |
-
*/
|
90 |
-
let almCompleteFilterTransition = (speed, data, el, type) => {
|
91 |
-
// Get `.alm-btn-wrap` element
|
92 |
-
let btnWrap = el.querySelector('.alm-btn-wrap');
|
93 |
-
|
94 |
-
// Get `.alm-listing` element
|
95 |
-
let listing = el.querySelectorAll('.alm-listing');
|
96 |
-
|
97 |
-
// Loop over all .alm-listing divs
|
98 |
-
[...listing].forEach(function (e) {
|
99 |
-
e.innerHTML = ''; // Clear listings
|
100 |
-
});
|
101 |
-
|
102 |
-
// Get Load More button
|
103 |
-
let button = btnWrap.querySelector('.alm-load-more-btn');
|
104 |
-
if (button) {
|
105 |
-
button.classList.remove('done'); // Reset Button
|
106 |
-
}
|
107 |
-
|
108 |
-
// Clear paging navigation
|
109 |
-
let paging = btnWrap.querySelector('.alm-paging');
|
110 |
-
if (paging) {
|
111 |
-
paging.style.opacity = 0;
|
112 |
-
}
|
113 |
-
|
114 |
-
// Reset Preloaded Amount
|
115 |
-
data.preloadedAmount = 0;
|
116 |
-
// Dispatch Filters
|
117 |
-
almSetFilters(speed, data, el, type);
|
118 |
-
};
|
119 |
-
|
120 |
-
/**
|
121 |
-
* almSetFilters
|
122 |
-
* Set filter parameters on .alm-listing element
|
123 |
-
*
|
124 |
-
* @param {*} speed number;
|
125 |
-
* @param {*} el element;
|
126 |
-
* @param {*} data string;
|
127 |
-
* @param {*} type string;
|
128 |
-
* @updated 3.3
|
129 |
-
* @since 2.6.1
|
130 |
-
*/
|
131 |
-
let almSetFilters = function (speed = 250, data, el, type) {
|
132 |
-
// Get `alm-listing` container
|
133 |
-
let listing =
|
134 |
-
el.querySelector('.alm-listing') || el.querySelector('.alm-comments');
|
135 |
-
if (!listing) {
|
136 |
-
return false;
|
137 |
-
}
|
138 |
-
|
139 |
-
switch (type) {
|
140 |
-
case 'filter':
|
141 |
-
// Update data attributes
|
142 |
-
for (let [key, value] of Object.entries(data)) {
|
143 |
-
// Convert camelCase data atts back to dashes (-).
|
144 |
-
key = key
|
145 |
-
.replace(/\W+/g, '-')
|
146 |
-
.replace(/([a-z\d])([A-Z])/g, '$1-$2')
|
147 |
-
.toLowerCase();
|
148 |
-
listing.setAttribute('data-' + key, value);
|
149 |
-
}
|
150 |
-
// Fade ALM back (Filters only)
|
151 |
-
almFadeIn(el, speed);
|
152 |
-
break;
|
153 |
-
|
154 |
-
case 'tab':
|
155 |
-
// Update `data-tab-template` attribute
|
156 |
-
listing.setAttribute('data-preloaded', 'false');
|
157 |
-
listing.setAttribute('data-pause', 'false');
|
158 |
-
listing.setAttribute('data-tab-template', data.tabTemplate);
|
159 |
-
|
160 |
-
break;
|
161 |
-
}
|
162 |
-
|
163 |
-
// Re-initiate Ajax Load More
|
164 |
-
let target = '';
|
165 |
-
if (data.target) {
|
166 |
-
// Target has been specified
|
167 |
-
target = document.querySelector(
|
168 |
-
'.ajax-load-more-wrap[data-id="' + data.target + '"]'
|
169 |
-
);
|
170 |
-
if (target) {
|
171 |
-
window.almInit(target);
|
172 |
-
}
|
173 |
-
} else {
|
174 |
-
// Target not specified
|
175 |
-
target = document.querySelector('.ajax-load-more-wrap');
|
176 |
-
if (target) {
|
177 |
-
window.almInit(target);
|
178 |
-
}
|
179 |
-
}
|
180 |
-
|
181 |
-
switch (type) {
|
182 |
-
case 'filter':
|
183 |
-
// Filters Complete (not the add-on)
|
184 |
-
if (typeof almFilterComplete === 'function') {
|
185 |
-
// Standard Filtering
|
186 |
-
almFilterComplete();
|
187 |
-
}
|
188 |
-
break;
|
189 |
-
|
190 |
-
case 'tab':
|
191 |
-
// Tabs Complete
|
192 |
-
if (typeof almTabsComplete === 'function') {
|
193 |
-
// Standard Filtering
|
194 |
-
almTabsComplete();
|
195 |
-
}
|
196 |
-
break;
|
197 |
-
}
|
198 |
-
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/modules/getButtonURL.js
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Get the next URL for Load More button
|
3 |
-
*
|
4 |
-
* @param {object} alm
|
5 |
-
* @since 5.4.0
|
6 |
-
*/
|
7 |
-
|
8 |
-
const getButtonURL = (alm) => {
|
9 |
-
if (!alm || !alm.trigger) {
|
10 |
-
return false;
|
11 |
-
}
|
12 |
-
let button = alm.trigger.querySelector('button');
|
13 |
-
let url = button ? button.dataset.url : '';
|
14 |
-
|
15 |
-
return url ? url : '';
|
16 |
-
};
|
17 |
-
export default getButtonURL;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/modules/getScrollPercentage.js
DELETED
@@ -1,26 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* getScrollPercentage
|
3 |
-
* Get the scroll distance in pixels from a percentage
|
4 |
-
*
|
5 |
-
* @param {Object} alm
|
6 |
-
* @return {NUMBER} newdistance
|
7 |
-
* @since 5.2
|
8 |
-
*/
|
9 |
-
|
10 |
-
let getScrollPercentage = (alm) => {
|
11 |
-
if(!alm){
|
12 |
-
return false;
|
13 |
-
}
|
14 |
-
|
15 |
-
let is_negative = (alm.scroll_distance_orig.toString().indexOf("-") === -1) ? false : true; // Is this a negative number
|
16 |
-
let raw_distance = alm.scroll_distance_orig.toString().replace("-", "").replace("%", ""); // Remove - and perc
|
17 |
-
let wh = alm.window.innerHeight; // window height
|
18 |
-
|
19 |
-
let height = Math.floor((wh/100) * parseInt(raw_distance)); // Do math to get distance
|
20 |
-
|
21 |
-
let newdistance = (is_negative) ? `-${height}` : height; // Set the distance
|
22 |
-
//console.log(parseInt(newdistance));
|
23 |
-
|
24 |
-
return parseInt(newdistance);
|
25 |
-
}
|
26 |
-
export default getScrollPercentage;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/modules/insertScript.js
DELETED
@@ -1,62 +0,0 @@
|
|
1 |
-
import almDomParser from '../helpers/almDomParser';
|
2 |
-
|
3 |
-
/**
|
4 |
-
* insertScript
|
5 |
-
* Search nodes for <script/> tags and run scripts.
|
6 |
-
* Scripts cannot run with appendChild or innerHTML so this is necessary to function.
|
7 |
-
*
|
8 |
-
* @since 5.0
|
9 |
-
*/
|
10 |
-
let insertScript = {
|
11 |
-
|
12 |
-
init: function(node){
|
13 |
-
if ( this.isScript(node) === true ) {
|
14 |
-
node.parentNode.replaceChild( this.clone(node) , node );
|
15 |
-
}
|
16 |
-
else {
|
17 |
-
let i = 0;
|
18 |
-
let children = node.childNodes;
|
19 |
-
|
20 |
-
if(children === undefined){
|
21 |
-
let parser = new DOMParser();
|
22 |
-
let data = parser.parseFromString(node, 'text/html');
|
23 |
-
if(data){
|
24 |
-
children = data.body.childNodes;
|
25 |
-
}
|
26 |
-
}
|
27 |
-
while ( i < children.length ) {
|
28 |
-
this.replace( children[i++] );
|
29 |
-
}
|
30 |
-
}
|
31 |
-
return node;
|
32 |
-
},
|
33 |
-
|
34 |
-
replace: function(node) {
|
35 |
-
if ( this.isScript(node) === true ) {
|
36 |
-
node.parentNode.replaceChild( this.clone(node) , node );
|
37 |
-
}
|
38 |
-
else {
|
39 |
-
let i = 0;
|
40 |
-
let children = node.childNodes;
|
41 |
-
while (i < children.length) {
|
42 |
-
this.replace( children[i++] );
|
43 |
-
}
|
44 |
-
}
|
45 |
-
return node;
|
46 |
-
},
|
47 |
-
|
48 |
-
isScript: function(node){
|
49 |
-
return node.tagName === 'SCRIPT';
|
50 |
-
},
|
51 |
-
|
52 |
-
clone: function(node){
|
53 |
-
let script = document.createElement("script");
|
54 |
-
script.text = node.innerHTML;
|
55 |
-
for( let i = node.attributes.length-1; i >= 0; i-- ) {
|
56 |
-
script.setAttribute( node.attributes[i].name, node.attributes[i].value );
|
57 |
-
}
|
58 |
-
return script;
|
59 |
-
}
|
60 |
-
|
61 |
-
}
|
62 |
-
export default insertScript;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/modules/loadImage.js
DELETED
@@ -1,25 +0,0 @@
|
|
1 |
-
import srcsetPolyfill from '../helpers/srcsetPolyfill';
|
2 |
-
let imagesLoaded = require('imagesloaded');
|
3 |
-
|
4 |
-
/**
|
5 |
-
* Load the image with imagesLoaded
|
6 |
-
*
|
7 |
-
* @param {HTMLElement} container
|
8 |
-
* @param {HTMLElement} item
|
9 |
-
* @param {String} ua
|
10 |
-
*/
|
11 |
-
const loadImage = (container, item, ua) => {
|
12 |
-
return new Promise((resolve) => {
|
13 |
-
imagesLoaded(item, function () {
|
14 |
-
// Add CSS transition
|
15 |
-
item.style.transition = 'all 0.4s ease';
|
16 |
-
// Append to container
|
17 |
-
container.appendChild(item);
|
18 |
-
// Run srcset fix
|
19 |
-
srcsetPolyfill(item, ua);
|
20 |
-
// Send await callback
|
21 |
-
resolve(true);
|
22 |
-
});
|
23 |
-
});
|
24 |
-
};
|
25 |
-
export default loadImage;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/modules/loadItems.js
DELETED
@@ -1,67 +0,0 @@
|
|
1 |
-
import loadImage from './loadImage';
|
2 |
-
import setFocus from './setFocus';
|
3 |
-
|
4 |
-
/**
|
5 |
-
* Load all items
|
6 |
-
*
|
7 |
-
* @param {HTMLElement} container
|
8 |
-
* @param {HTMLElement} items
|
9 |
-
* @param {Object} alm
|
10 |
-
* @param {String} pageTitle
|
11 |
-
* @param {String} url
|
12 |
-
* @param {String} className
|
13 |
-
*/
|
14 |
-
const loadItems = (container, items, alm, pageTitle, url = window.location, className = '') => {
|
15 |
-
return new Promise((resolve) => {
|
16 |
-
let total = items.length;
|
17 |
-
let index = 0;
|
18 |
-
let count = 1;
|
19 |
-
|
20 |
-
function loadItem() {
|
21 |
-
if (count <= total) {
|
22 |
-
(async function () {
|
23 |
-
items[index].style.opacity = 0;
|
24 |
-
|
25 |
-
// First item only
|
26 |
-
if (count == 1) {
|
27 |
-
items[index].classList.add(className);
|
28 |
-
|
29 |
-
// Set URL
|
30 |
-
items[index].dataset.url = url;
|
31 |
-
|
32 |
-
// Set page num
|
33 |
-
items[index].dataset.page = alm.page + 1;
|
34 |
-
|
35 |
-
// Set page title
|
36 |
-
items[index].dataset.pageTitle = pageTitle;
|
37 |
-
}
|
38 |
-
|
39 |
-
await loadImage(container, items[index], alm.ua);
|
40 |
-
|
41 |
-
count++;
|
42 |
-
index++;
|
43 |
-
|
44 |
-
loadItem();
|
45 |
-
})().catch((e) => {
|
46 |
-
console.log('There was an error loading the items');
|
47 |
-
});
|
48 |
-
} else {
|
49 |
-
// Delay for effect only
|
50 |
-
setTimeout(function () {
|
51 |
-
items.map(function (item) {
|
52 |
-
item.style.opacity = 1;
|
53 |
-
});
|
54 |
-
if (items[0]) {
|
55 |
-
setFocus(alm, items[0], null, false);
|
56 |
-
}
|
57 |
-
}, 50);
|
58 |
-
|
59 |
-
resolve(true);
|
60 |
-
}
|
61 |
-
}
|
62 |
-
|
63 |
-
loadItem();
|
64 |
-
});
|
65 |
-
};
|
66 |
-
|
67 |
-
export default loadItems;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/modules/masonry.js
DELETED
@@ -1,176 +0,0 @@
|
|
1 |
-
import almFadeIn from './fadeIn';
|
2 |
-
import almAppendChildren from '../helpers/almAppendChildren';
|
3 |
-
import almDomParser from '../helpers/almDomParser';
|
4 |
-
import srcsetPolyfill from '../helpers/srcsetPolyfill';
|
5 |
-
import stripEmptyNodes from '../helpers/stripEmptyNodes';
|
6 |
-
import {
|
7 |
-
createMasonryFiltersPages,
|
8 |
-
createMasonryFiltersPage,
|
9 |
-
} from '../addons/filters';
|
10 |
-
import { createMasonrySEOPages, createMasonrySEOPage } from '../addons/seo';
|
11 |
-
import setFocus from './setFocus';
|
12 |
-
let imagesLoaded = require('imagesloaded');
|
13 |
-
|
14 |
-
/**
|
15 |
-
* almMasonry
|
16 |
-
* Function to trigger built-in Ajax Load More Masonry
|
17 |
-
*
|
18 |
-
* @param {object} alm
|
19 |
-
* @param {boolean} init
|
20 |
-
* @param {boolean} filtering
|
21 |
-
* @since 3.1
|
22 |
-
* @updated 5.0.2
|
23 |
-
*/
|
24 |
-
let almMasonry = (alm, init, filtering) => {
|
25 |
-
return new Promise((resolve) => {
|
26 |
-
let container = alm.listing;
|
27 |
-
let html = alm.html;
|
28 |
-
|
29 |
-
let selector = alm.masonry_selector;
|
30 |
-
let columnWidth = alm.masonry_columnwidth;
|
31 |
-
let animation = alm.masonry_animation;
|
32 |
-
let horizontalOrder = alm.masonry_horizontalorder;
|
33 |
-
let speed = alm.speed;
|
34 |
-
let masonry_init = alm.masonry_init;
|
35 |
-
|
36 |
-
let duration = (speed + 100) / 1000 + 's'; // Add 100 for some delay
|
37 |
-
let hidden = 'scale(0.5)';
|
38 |
-
let visible = 'scale(1)';
|
39 |
-
|
40 |
-
if (animation === 'zoom-out') {
|
41 |
-
hidden = 'translateY(-20px) scale(1.25)';
|
42 |
-
visible = 'translateY(0) scale(1)';
|
43 |
-
}
|
44 |
-
|
45 |
-
if (animation === 'slide-up') {
|
46 |
-
hidden = 'translateY(50px)';
|
47 |
-
visible = 'translateY(0)';
|
48 |
-
}
|
49 |
-
|
50 |
-
if (animation === 'slide-down') {
|
51 |
-
hidden = 'translateY(-50px)';
|
52 |
-
visible = 'translateY(0)';
|
53 |
-
}
|
54 |
-
|
55 |
-
if (animation === 'none') {
|
56 |
-
hidden = 'translateY(0)';
|
57 |
-
visible = 'translateY(0)';
|
58 |
-
}
|
59 |
-
|
60 |
-
// columnWidth
|
61 |
-
if (columnWidth) {
|
62 |
-
if (!isNaN(columnWidth)) {
|
63 |
-
// Check if number
|
64 |
-
columnWidth = parseInt(columnWidth);
|
65 |
-
}
|
66 |
-
} else {
|
67 |
-
// No columnWidth, use the selector
|
68 |
-
columnWidth = selector;
|
69 |
-
}
|
70 |
-
|
71 |
-
// horizontalOrder
|
72 |
-
horizontalOrder = horizontalOrder === 'true' ? true : false;
|
73 |
-
|
74 |
-
if (!filtering) {
|
75 |
-
// First Run
|
76 |
-
if (masonry_init && init) {
|
77 |
-
srcsetPolyfill(container, alm.ua); // Run srcSet polyfill
|
78 |
-
|
79 |
-
imagesLoaded(container, function () {
|
80 |
-
let defaults = {
|
81 |
-
itemSelector: selector,
|
82 |
-
transitionDuration: duration,
|
83 |
-
columnWidth: columnWidth,
|
84 |
-
horizontalOrder: horizontalOrder,
|
85 |
-
hiddenStyle: {
|
86 |
-
transform: hidden,
|
87 |
-
opacity: 0,
|
88 |
-
},
|
89 |
-
visibleStyle: {
|
90 |
-
transform: visible,
|
91 |
-
opacity: 1,
|
92 |
-
},
|
93 |
-
};
|
94 |
-
|
95 |
-
// Get custom Masonry options (https://masonry.desandro.com/options.html)
|
96 |
-
let alm_masonry_vars = window.alm_masonry_vars;
|
97 |
-
if (alm_masonry_vars) {
|
98 |
-
Object.keys(alm_masonry_vars).forEach(function (key) {
|
99 |
-
// Loop object to create key:prop
|
100 |
-
defaults[key] = alm_masonry_vars[key];
|
101 |
-
});
|
102 |
-
}
|
103 |
-
|
104 |
-
let data = container.querySelectorAll(selector);
|
105 |
-
|
106 |
-
// Create Filters URL, if required
|
107 |
-
if (alm.addons.filters) {
|
108 |
-
data = createMasonryFiltersPages(
|
109 |
-
alm,
|
110 |
-
Array.prototype.slice.call(data)
|
111 |
-
);
|
112 |
-
}
|
113 |
-
|
114 |
-
// Create SEO URL, if required
|
115 |
-
if (alm.addons.seo) {
|
116 |
-
data = createMasonrySEOPages(
|
117 |
-
alm,
|
118 |
-
Array.prototype.slice.call(data)
|
119 |
-
);
|
120 |
-
}
|
121 |
-
|
122 |
-
// Init Masonry, delay to allow time for items to be added to the page
|
123 |
-
setTimeout(function () {
|
124 |
-
alm.msnry = new Masonry(container, defaults);
|
125 |
-
|
126 |
-
// Fade In
|
127 |
-
almFadeIn(container.parentNode, 125);
|
128 |
-
|
129 |
-
resolve(true);
|
130 |
-
}, 1);
|
131 |
-
});
|
132 |
-
}
|
133 |
-
|
134 |
-
// Standard / Append content
|
135 |
-
else {
|
136 |
-
// Loop all items and create array of node elements
|
137 |
-
let data = stripEmptyNodes(almDomParser(html, 'text/html'));
|
138 |
-
|
139 |
-
if (data) {
|
140 |
-
// Append elements listing
|
141 |
-
almAppendChildren(alm.listing, data, 'masonry');
|
142 |
-
|
143 |
-
// Run srcSet polyfill
|
144 |
-
srcsetPolyfill(container, alm.ua);
|
145 |
-
|
146 |
-
// imagesLoaded & append
|
147 |
-
imagesLoaded(container, function () {
|
148 |
-
alm.msnry.appended(data);
|
149 |
-
|
150 |
-
// Set Focus
|
151 |
-
setFocus(alm, data, data.length, false);
|
152 |
-
|
153 |
-
// Create Filters URL, if required
|
154 |
-
if (alm.addons.filters) {
|
155 |
-
createMasonryFiltersPage(alm, data[0]);
|
156 |
-
}
|
157 |
-
|
158 |
-
// Create SEO URL, if required
|
159 |
-
if (alm.addons.seo) {
|
160 |
-
createMasonrySEOPage(alm, data[0]);
|
161 |
-
}
|
162 |
-
|
163 |
-
resolve(true);
|
164 |
-
});
|
165 |
-
}
|
166 |
-
}
|
167 |
-
} else {
|
168 |
-
// Reset
|
169 |
-
container.parentNode.style.opacity = 0;
|
170 |
-
almMasonry(alm, true, false);
|
171 |
-
resolve(true);
|
172 |
-
}
|
173 |
-
});
|
174 |
-
};
|
175 |
-
|
176 |
-
export default almMasonry;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/modules/noResults.js
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Set the results text if required.
|
3 |
-
*
|
4 |
-
* @param {*} target The target HTML element
|
5 |
-
* @param {*} html The HTML
|
6 |
-
* @since 5.1
|
7 |
-
*/
|
8 |
-
let almNoResults = (target, html = '') => {
|
9 |
-
if(html === ''){
|
10 |
-
return false; // exit if empty
|
11 |
-
}
|
12 |
-
|
13 |
-
// Remove empty <p/> tags
|
14 |
-
html = html.replace(/(<p><\/p>)+/g, '');
|
15 |
-
|
16 |
-
// Append to DOM
|
17 |
-
target.innerHTML = html;
|
18 |
-
}
|
19 |
-
|
20 |
-
export default almNoResults;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/modules/placeholder.js
DELETED
@@ -1,25 +0,0 @@
|
|
1 |
-
import almFadeIn from './fadeIn';
|
2 |
-
import almFadeOut from './fadeOut';
|
3 |
-
|
4 |
-
export function showPlaceholder(alm){
|
5 |
-
if(!alm || !alm.main || alm.addons.paging){
|
6 |
-
return false;
|
7 |
-
}
|
8 |
-
if(alm.placeholder){
|
9 |
-
alm.placeholder.style.display = 'block';
|
10 |
-
almFadeIn(alm.placeholder, 75);
|
11 |
-
}
|
12 |
-
}
|
13 |
-
|
14 |
-
|
15 |
-
export function hidePlaceholder(alm){
|
16 |
-
if(!alm || !alm.main || alm.addons.paging){
|
17 |
-
return false;
|
18 |
-
}
|
19 |
-
if(alm.placeholder){
|
20 |
-
almFadeOut(alm.placeholder, 75);
|
21 |
-
setTimeout(function(){
|
22 |
-
alm.placeholder.style.display = 'none';
|
23 |
-
}, 75);
|
24 |
-
}
|
25 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/modules/resultsText.js
DELETED
@@ -1,150 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Set the results text if required.
|
3 |
-
*
|
4 |
-
* @param {object} alm Global alm object
|
5 |
-
* @param {string} type Type of results
|
6 |
-
* @since 5.1
|
7 |
-
*/
|
8 |
-
export function almResultsText( alm, type = 'standard' ){
|
9 |
-
if(!alm.resultsText || alm.nested === 'true') return false;
|
10 |
-
let resultsType = (type === 'nextpage' || type === 'woocommerce') ? type : 'standard';
|
11 |
-
|
12 |
-
almGetResultsText(alm, resultsType);
|
13 |
-
}
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
/**
|
18 |
-
* Get values for showing results text.
|
19 |
-
*
|
20 |
-
* @param {Object} alm
|
21 |
-
* @param {String} type
|
22 |
-
* @since 4.1
|
23 |
-
*/
|
24 |
-
export function almGetResultsText( alm, type = 'standard' ){
|
25 |
-
|
26 |
-
if(!alm.resultsText || !alm.localize || alm.nested === 'true'){
|
27 |
-
return false;
|
28 |
-
}
|
29 |
-
|
30 |
-
let page = 0;
|
31 |
-
let pages = 0;
|
32 |
-
let post_count = 0;
|
33 |
-
let total_posts = 0;
|
34 |
-
let preloaded = (alm.addons.preloaded === 'true') ? true : false;
|
35 |
-
let paging = (alm.addons.paging) ? true : false;
|
36 |
-
let posts_per_page = alm.orginal_posts_per_page;
|
37 |
-
|
38 |
-
switch (type) {
|
39 |
-
|
40 |
-
// Nextpage
|
41 |
-
case 'nextpage' :
|
42 |
-
|
43 |
-
page = parseInt(alm.localize.page);
|
44 |
-
post_count = page;
|
45 |
-
pages = parseInt(alm.localize.total_posts);
|
46 |
-
total_posts = parseInt(pages);
|
47 |
-
almRenderResultsText(alm.resultsText, page, pages, post_count, total_posts);
|
48 |
-
|
49 |
-
break;
|
50 |
-
|
51 |
-
// WooCommerce
|
52 |
-
case 'woocommerce' :
|
53 |
-
// Don't do anything
|
54 |
-
break;
|
55 |
-
|
56 |
-
default :
|
57 |
-
|
58 |
-
page = parseInt(alm.page) + 1;
|
59 |
-
pages = Math.ceil(alm.localize.total_posts / posts_per_page);
|
60 |
-
post_count = parseInt(alm.localize.post_count);
|
61 |
-
total_posts = parseInt(alm.localize.total_posts);
|
62 |
-
|
63 |
-
// Add 1 page if Preloaded
|
64 |
-
if(preloaded){
|
65 |
-
page = (paging) ? alm.page + 1 : page + 1;
|
66 |
-
}
|
67 |
-
|
68 |
-
almRenderResultsText(alm.resultsText, page, pages, post_count, total_posts);
|
69 |
-
|
70 |
-
}
|
71 |
-
}
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
/**
|
76 |
-
* Display `Showing {x} of {y} pages` text.
|
77 |
-
*
|
78 |
-
* @param {Object} alm
|
79 |
-
* @param {String} type
|
80 |
-
* @since 4.1
|
81 |
-
*/
|
82 |
-
export function almInitResultsText( alm, type = 'standard' ){
|
83 |
-
if(!alm.resultsText || !alm.localize || alm.nested === 'true') return false;
|
84 |
-
|
85 |
-
let page = 0;
|
86 |
-
let pages = Math.ceil(alm.localize.total_posts / alm.orginal_posts_per_page);
|
87 |
-
let post_count = parseInt(alm.localize.post_count);
|
88 |
-
let total_posts = parseInt(alm.localize.total_posts);
|
89 |
-
|
90 |
-
switch (type) {
|
91 |
-
|
92 |
-
// Nextpage
|
93 |
-
case 'nextpage' :
|
94 |
-
page = alm.addons.nextpage_startpage;
|
95 |
-
post_count = page;
|
96 |
-
pages = total_posts;
|
97 |
-
almRenderResultsText(alm.resultsText, page, total_posts, post_count, total_posts);
|
98 |
-
break;
|
99 |
-
|
100 |
-
// Preloaded
|
101 |
-
case 'preloaded' :
|
102 |
-
page = (alm.addons.paging && alm.addons.seo) ? parseInt(alm.start_page) + 1 : parseInt(alm.page) + 1;
|
103 |
-
almRenderResultsText(alm.resultsText, page, pages, post_count, total_posts);
|
104 |
-
break;
|
105 |
-
|
106 |
-
// WooCommerce
|
107 |
-
case 'woocommerce' :
|
108 |
-
// Don't do anything
|
109 |
-
break;
|
110 |
-
|
111 |
-
default :
|
112 |
-
|
113 |
-
console.log('No results to set.');
|
114 |
-
|
115 |
-
}
|
116 |
-
|
117 |
-
}
|
118 |
-
|
119 |
-
|
120 |
-
/**
|
121 |
-
* Render `Showing {x} of {y} results` text.
|
122 |
-
*
|
123 |
-
* @param {Element} el
|
124 |
-
* @param {String} page
|
125 |
-
* @param {String} pages
|
126 |
-
* @param {String} post_count
|
127 |
-
* @param {String} total_posts
|
128 |
-
* @since 4.1
|
129 |
-
*/
|
130 |
-
let almRenderResultsText = function( el, page, pages, post_count, total_posts ){
|
131 |
-
|
132 |
-
el.forEach(function(result){
|
133 |
-
|
134 |
-
pages = parseInt(pages);
|
135 |
-
let text = (pages > 0) ? alm_localize.results_text : alm_localize.no_results_text;
|
136 |
-
|
137 |
-
if(pages > 0){
|
138 |
-
text = text.replace('{num}', `<span class="alm-results-num">${page}</span>`); // Deprecated
|
139 |
-
text = text.replace('{page}', `<span class="alm-results-page">${page}</span>`);
|
140 |
-
text = text.replace('{total}', `<span class="alm-results-total">${pages}</span>`); // Deprecated
|
141 |
-
text = text.replace('{pages}', `<span class="alm-results-pages">${pages}</span>`);
|
142 |
-
text = text.replace('{post_count}', `<span class="alm-results-post_count">${post_count}</span>`)
|
143 |
-
text = text.replace('{total_posts}', `<span class="alm-results-total_posts">${total_posts}</span>`);
|
144 |
-
result.innerHTML = text;
|
145 |
-
} else {
|
146 |
-
result.innerHTML = text;
|
147 |
-
}
|
148 |
-
|
149 |
-
});
|
150 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/modules/setFocus.js
DELETED
@@ -1,111 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* setFocus
|
3 |
-
* Set user focus to improve accessibility after load events
|
4 |
-
*
|
5 |
-
* @param {Object} alm
|
6 |
-
* @param {HTMLElement} preloaded
|
7 |
-
* @param {Number} total
|
8 |
-
* @param {Boolean} is_filtering
|
9 |
-
* @since 5.1
|
10 |
-
*/
|
11 |
-
|
12 |
-
let setFocus = (alm, element = null, total = 0, is_filtering = false) => {
|
13 |
-
if (!alm_localize.a11y_focus) {
|
14 |
-
return false;
|
15 |
-
}
|
16 |
-
|
17 |
-
// WooCommerce Add-on
|
18 |
-
if (alm.addons.woocommerce || alm.addons.elementor) {
|
19 |
-
moveFocus(false, false, element, false, alm.isSafari);
|
20 |
-
return;
|
21 |
-
}
|
22 |
-
|
23 |
-
// Has Total
|
24 |
-
if (alm.transition_container && total > 0) {
|
25 |
-
if (alm.addons.paging) {
|
26 |
-
// Paging
|
27 |
-
moveFocus(alm.init, alm.addons.preloaded, alm.listing, is_filtering, alm.isSafari);
|
28 |
-
} else if (alm.addons.single_post || alm.addons.nextpage) {
|
29 |
-
// Single Posts OR Next Page, set `init` to false to trigger focus
|
30 |
-
moveFocus(false, alm.addons.preloaded, element, is_filtering, alm.isSafari);
|
31 |
-
} else {
|
32 |
-
// Standard ALM
|
33 |
-
moveFocus(alm.init, alm.addons.preloaded, element, is_filtering, alm.isSafari);
|
34 |
-
}
|
35 |
-
} else if (!alm.transition_container) {
|
36 |
-
// Table Layout, no transition container
|
37 |
-
moveFocus(alm.init, alm.addons.preloaded, element[0], is_filtering, alm.isSafari);
|
38 |
-
}
|
39 |
-
};
|
40 |
-
export default setFocus;
|
41 |
-
|
42 |
-
/**
|
43 |
-
* moveFocus
|
44 |
-
* Move user focus to alm-reveal div
|
45 |
-
*
|
46 |
-
* @param {Boolean} init
|
47 |
-
* @param {String} preloaded
|
48 |
-
* @param {HTMLElement} element
|
49 |
-
* @param {Boolean} is_filtering
|
50 |
-
* @param {Boolean} isSafari
|
51 |
-
* @since 5.1
|
52 |
-
*/
|
53 |
-
|
54 |
-
let moveFocus = (init = true, preloaded = 'false', element, is_filtering = false, isSafari = false) => {
|
55 |
-
if (!is_filtering) {
|
56 |
-
if ((init || !element) && preloaded !== 'true') {
|
57 |
-
return false; // Exit if first run
|
58 |
-
}
|
59 |
-
}
|
60 |
-
|
61 |
-
// Check if element is an array.
|
62 |
-
// If `transition_container="false"`, `element` will be an array.
|
63 |
-
/*
|
64 |
-
let is_array = Array.isArray(element);
|
65 |
-
element = (is_array) ? element[0] : element;
|
66 |
-
*/
|
67 |
-
|
68 |
-
// Set tabIndex and style on element
|
69 |
-
element.setAttribute('tabIndex', '-1');
|
70 |
-
element.style.outline = 'none';
|
71 |
-
|
72 |
-
// Get Parent container
|
73 |
-
// If `.alm-listing` set parent to element
|
74 |
-
let parent = !element.classList.contains('alm-listing') ? element.parentNode : element;
|
75 |
-
|
76 |
-
// Scroll Container
|
77 |
-
let scrollContainer = parent.dataset.scrollContainer;
|
78 |
-
|
79 |
-
// If scroll container, move it, not the window.
|
80 |
-
if (scrollContainer) {
|
81 |
-
let container = document.querySelector(scrollContainer);
|
82 |
-
if (container) {
|
83 |
-
//let left = container.scrollLeft;
|
84 |
-
//let top = container.scrollTop;
|
85 |
-
//element.focus();
|
86 |
-
//container.scrollLeft = left;
|
87 |
-
//container.scrollTop = top;
|
88 |
-
setTimeout(function () {
|
89 |
-
element.focus({ preventScroll: true });
|
90 |
-
}, 50);
|
91 |
-
}
|
92 |
-
}
|
93 |
-
|
94 |
-
// Move window
|
95 |
-
else {
|
96 |
-
setTimeout(function () {
|
97 |
-
element.focus({ preventScroll: true });
|
98 |
-
}, 50);
|
99 |
-
|
100 |
-
//let x = window.scrollX;
|
101 |
-
//let y = window.scrollY;
|
102 |
-
|
103 |
-
// Safari fix for window movement if Y = 0
|
104 |
-
//if(isSafari){
|
105 |
-
//window.scrollTo(x, y);
|
106 |
-
//y = (y === 0) ? 1 : y;
|
107 |
-
//}
|
108 |
-
//element.focus();
|
109 |
-
//window.scrollTo(x, y);
|
110 |
-
}
|
111 |
-
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/modules/setLocalizedVars.js
DELETED
@@ -1,72 +0,0 @@
|
|
1 |
-
import * as resultsText from './resultsText';
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Set localized variables
|
5 |
-
*
|
6 |
-
* @param {object} alm Global alm object
|
7 |
-
* @since 4.1
|
8 |
-
*/
|
9 |
-
|
10 |
-
let setLocalizedVars = function(alm){
|
11 |
-
|
12 |
-
return new Promise(resolve => {
|
13 |
-
|
14 |
-
let type = 'standard';
|
15 |
-
|
16 |
-
// Current Page `page`
|
17 |
-
|
18 |
-
// nextpage
|
19 |
-
if(alm.addons.nextpage){
|
20 |
-
type = 'nextpage';
|
21 |
-
if(alm.addons.paging){
|
22 |
-
alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + 1);
|
23 |
-
} else {
|
24 |
-
alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + parseInt(alm.addons.nextpage_startpage) + 1);
|
25 |
-
}
|
26 |
-
}
|
27 |
-
// woocommerce
|
28 |
-
else if(alm.addons.woocommerce){
|
29 |
-
type = 'woocommerce';
|
30 |
-
alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + 1);
|
31 |
-
|
32 |
-
} else {
|
33 |
-
alm.AjaxLoadMore.setLocalizedVar('page', parseInt(alm.page) + 1);
|
34 |
-
|
35 |
-
}
|
36 |
-
|
37 |
-
// Total Posts `total_posts`.
|
38 |
-
// Only update if !preloaded && !nextpage && !woocommerce
|
39 |
-
if(alm.addons.preloaded !== 'true' && !alm.addons.nextpage && !alm.addons.woocommerce){
|
40 |
-
alm.AjaxLoadMore.setLocalizedVar('total_posts', alm.totalposts);
|
41 |
-
}
|
42 |
-
|
43 |
-
// Viewing
|
44 |
-
alm.AjaxLoadMore.setLocalizedVar('post_count', almSetPostCount(alm));
|
45 |
-
|
46 |
-
// Set Results Text (if required)
|
47 |
-
resultsText.almResultsText(alm, type);
|
48 |
-
|
49 |
-
resolve(true);
|
50 |
-
|
51 |
-
});
|
52 |
-
|
53 |
-
}
|
54 |
-
|
55 |
-
export default setLocalizedVars;
|
56 |
-
|
57 |
-
|
58 |
-
/**
|
59 |
-
* almSetViewing
|
60 |
-
* Get total post_count
|
61 |
-
*/
|
62 |
-
function almSetPostCount(alm){
|
63 |
-
let pc = parseInt(alm.posts);
|
64 |
-
let pa = parseInt(alm.addons.preloaded_amount);
|
65 |
-
let count = pc + pa;
|
66 |
-
count = (alm.start_page > 1) ? count - pa : count; // SEO
|
67 |
-
count = (alm.addons.filters_startpage > 1) ? count - pa : count; // Filters
|
68 |
-
count = (alm.addons.single_post) ? count + 1 : count; // Single Posts
|
69 |
-
count = (alm.addons.nextpage) ? count + 1 : count; // Next Page
|
70 |
-
|
71 |
-
return count;
|
72 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/modules/tableofcontents.js
DELETED
@@ -1,155 +0,0 @@
|
|
1 |
-
import { almScroll, getOffset } from '../ajax-load-more';
|
2 |
-
import setFocus from './setFocus';
|
3 |
-
|
4 |
-
/**
|
5 |
-
* Create a numbered table of contents navigation
|
6 |
-
*
|
7 |
-
* @param {object} alm
|
8 |
-
* @param {boolean} init
|
9 |
-
* @since 5.2
|
10 |
-
*/
|
11 |
-
export function tableOfContents(alm, init = false, from_preloaded = false) {
|
12 |
-
let totalPosts = alm.localize && alm.localize.post_count ? parseInt(alm.localize.post_count) : 0;
|
13 |
-
if (totalPosts == 0 && !alm.addons.single_post) {
|
14 |
-
// Exit if zero posts and not single posts
|
15 |
-
return false;
|
16 |
-
}
|
17 |
-
|
18 |
-
if (alm && alm.tableofcontents && alm.transition_container && alm.transition !== 'masonry') {
|
19 |
-
let offset = alm.tableofcontents.dataset.offset ? parseInt(alm.tableofcontents.dataset.offset) : 30;
|
20 |
-
let startPage = alm.start_page ? parseInt(alm.start_page) : 0;
|
21 |
-
let filterStartPage = alm.addons.filters_startpage ? parseInt(alm.addons.filters_startpage) : 0;
|
22 |
-
let nextpageStartPage = alm.addons.nextpage_startpage ? parseInt(alm.addons.nextpage_startpage) : 0;
|
23 |
-
let page = parseInt(alm.page);
|
24 |
-
let preloaded = alm.addons.preloaded === 'true' ? true : false;
|
25 |
-
|
26 |
-
// Exit if Paging or Next Page
|
27 |
-
if (alm.addons.paging || alm.addons.nextpage) {
|
28 |
-
return false;
|
29 |
-
}
|
30 |
-
|
31 |
-
// Init
|
32 |
-
|
33 |
-
if (init) {
|
34 |
-
setTimeout(function () {
|
35 |
-
// Paged results
|
36 |
-
if ((alm.addons.seo && startPage > 1) || (alm.addons.filters && filterStartPage > 1) || (alm.addons.nextpage && nextpageStartPage > 1)) {
|
37 |
-
// SEO
|
38 |
-
if (alm.addons.seo && startPage > 1) {
|
39 |
-
for (let i = 0; i < startPage; i++) {
|
40 |
-
createTOCButton(alm, i, offset);
|
41 |
-
}
|
42 |
-
}
|
43 |
-
// Filters
|
44 |
-
if (alm.addons.filters && filterStartPage > 1) {
|
45 |
-
for (let i = 0; i < filterStartPage; i++) {
|
46 |
-
createTOCButton(alm, i, offset);
|
47 |
-
}
|
48 |
-
}
|
49 |
-
// Nextpage
|
50 |
-
if (alm.addons.nextpage && nextpageStartPage > 1) {
|
51 |
-
for (let i = 0; i < nextpageStartPage; i++) {
|
52 |
-
createTOCButton(alm, i, offset);
|
53 |
-
}
|
54 |
-
}
|
55 |
-
} else {
|
56 |
-
if (!from_preloaded && preloaded) {
|
57 |
-
page = page + 1;
|
58 |
-
}
|
59 |
-
createTOCButton(alm, page, offset);
|
60 |
-
}
|
61 |
-
}, 100);
|
62 |
-
} else {
|
63 |
-
// Preloaded
|
64 |
-
if (preloaded) {
|
65 |
-
if (alm.addons.seo && startPage > 0) {
|
66 |
-
page = page;
|
67 |
-
} else if (alm.addons.filters && filterStartPage > 0) {
|
68 |
-
page = page;
|
69 |
-
} else {
|
70 |
-
page = page + 1;
|
71 |
-
}
|
72 |
-
}
|
73 |
-
|
74 |
-
createTOCButton(alm, page, offset);
|
75 |
-
}
|
76 |
-
}
|
77 |
-
}
|
78 |
-
|
79 |
-
// Clear table of contents
|
80 |
-
export function clearTOC() {
|
81 |
-
let toc = document.querySelector('.alm-toc');
|
82 |
-
if (toc) {
|
83 |
-
toc.innerHTML = '';
|
84 |
-
}
|
85 |
-
}
|
86 |
-
|
87 |
-
// Create Standard Page Button
|
88 |
-
function createTOCButton(alm, page, offset) {
|
89 |
-
if (!alm.tableofcontents) {
|
90 |
-
return false;
|
91 |
-
}
|
92 |
-
|
93 |
-
let button = document.createElement('button');
|
94 |
-
button.type = 'button';
|
95 |
-
|
96 |
-
page = parseInt(page) + 1;
|
97 |
-
button.innerHTML = getTOCLabel(alm, page);
|
98 |
-
button.dataset.page = alm.addons.single_post_target && alm.init ? page - 1 : page;
|
99 |
-
alm.tableofcontents.appendChild(button);
|
100 |
-
|
101 |
-
button.addEventListener('click', function (e) {
|
102 |
-
let page = this.dataset.page;
|
103 |
-
let target = document.querySelector(`.alm-reveal:nth-child(${page})`) || document.querySelector(`.alm-nextpage:nth-child(${page})`);
|
104 |
-
|
105 |
-
// Single Posts
|
106 |
-
if (alm.addons.single_post_target) {
|
107 |
-
target = document.querySelector(`.alm-reveal.alm-single-post[data-page="${page}"]`);
|
108 |
-
}
|
109 |
-
|
110 |
-
if (!target) {
|
111 |
-
return false;
|
112 |
-
}
|
113 |
-
let top = typeof getOffset === 'function' ? getOffset(target).top : target.offsetTop;
|
114 |
-
almScroll(top - offset);
|
115 |
-
|
116 |
-
// Set Focus for A11y
|
117 |
-
setTimeout(function () {
|
118 |
-
setFocus(alm, target, page, false);
|
119 |
-
}, 1000);
|
120 |
-
});
|
121 |
-
}
|
122 |
-
|
123 |
-
// Get Button Label
|
124 |
-
function getTOCLabel(alm, page) {
|
125 |
-
let label = page;
|
126 |
-
|
127 |
-
// Single Posts
|
128 |
-
if (alm.addons.single_post) {
|
129 |
-
let thePage = page - 1;
|
130 |
-
let element;
|
131 |
-
if (alm.addons.single_post_target) {
|
132 |
-
// Special functionality for Single Post with a loading target type
|
133 |
-
if (alm.init) {
|
134 |
-
thePage = thePage;
|
135 |
-
} else {
|
136 |
-
thePage = thePage + 1;
|
137 |
-
}
|
138 |
-
let posts = document.querySelectorAll(`.alm-reveal.alm-single-post`);
|
139 |
-
if (posts) {
|
140 |
-
element = posts[thePage];
|
141 |
-
}
|
142 |
-
} else {
|
143 |
-
element = document.querySelector(`.alm-reveal.alm-single-post[data-page=${page - 1}]`);
|
144 |
-
}
|
145 |
-
label = element ? element.dataset.title : label;
|
146 |
-
}
|
147 |
-
|
148 |
-
// Dynamic function name
|
149 |
-
let funcName = `almTOCLabel_${alm.id}`;
|
150 |
-
if (typeof window[funcName] === 'function') {
|
151 |
-
label = window[funcName](page, label);
|
152 |
-
}
|
153 |
-
|
154 |
-
return label;
|
155 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/js/vendor/imagesloaded/imagesloaded.pkgd.min.js
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
/*!
|
2 |
-
* imagesLoaded PACKAGED v4.1.4
|
3 |
-
* JavaScript is all like "You images are done yet or what?"
|
4 |
-
* MIT License
|
5 |
-
*/
|
6 |
-
!function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return n.indexOf(t)==-1&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},n=i[e]=i[e]||{};return n[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return n!=-1&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(e,r),delete n[r]),r.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){function i(e,t){for(var i in t)e[i]=t[i];return e}function n(e){if(Array.isArray(e))return e;var t="object"==typeof e&&"number"==typeof e.length;return t?d.call(e):[e]}function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);var s=e;return"string"==typeof e&&(s=document.querySelectorAll(e)),s?(this.elements=n(s),this.options=i({},this.options),"function"==typeof t?r=t:i(this.options,t),r&&this.on("always",r),this.getImages(),h&&(this.jqDeferred=new h.Deferred),void setTimeout(this.check.bind(this))):void a.error("Bad element for imagesLoaded "+(s||e))}function r(e){this.img=e}function s(e,t){this.url=e,this.element=t,this.img=new Image}var h=e.jQuery,a=e.console,d=Array.prototype.slice;o.prototype=Object.create(t.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),this.options.background===!0&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&u[t]){for(var i=e.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var r=e.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}}};var u={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(t.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,e),n=i.exec(t.backgroundImage)}},o.prototype.addImage=function(e){var t=new r(e);this.images.push(t)},o.prototype.addBackground=function(e,t){var i=new s(e,t);this.images.push(i)},o.prototype.check=function(){function e(e,i,n){setTimeout(function(){t.progress(e,i,n)})}var t=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.complete()},o.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+i,e,t)},o.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},r.prototype=Object.create(t.prototype),r.prototype.check=function(){var e=this.getIsImageComplete();return e?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},r.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},r.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},r.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(r.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var e=this.getIsImageComplete();e&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},o.makeJQueryPlugin=function(t){t=t||e.jQuery,t&&(h=t,h.fn.imagesLoaded=function(e,t){var i=new o(this,e,t);return i.jqDeferred.promise(h(this))})},o.makeJQueryPlugin(),o});
|
|
|
|
|
|
|
|
|
|
|
|
core/src/scss/_listing.scss
DELETED
@@ -1,162 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Generic alm-listing Styles
|
3 |
-
* @since 1.0.0
|
4 |
-
*/
|
5 |
-
.alm-listing {
|
6 |
-
.alm-reveal {
|
7 |
-
outline: none;
|
8 |
-
&:after {
|
9 |
-
display: table;
|
10 |
-
clear: both;
|
11 |
-
height: 0;
|
12 |
-
width: 100%;
|
13 |
-
content: '';
|
14 |
-
}
|
15 |
-
}
|
16 |
-
}
|
17 |
-
|
18 |
-
.alm-listing {
|
19 |
-
margin: 0;
|
20 |
-
padding: 0;
|
21 |
-
.alm-reveal > li,
|
22 |
-
.alm-paging-content > li,
|
23 |
-
> li {
|
24 |
-
position: relative;
|
25 |
-
&.alm-item {
|
26 |
-
background: none;
|
27 |
-
margin: 0 0 30px;
|
28 |
-
padding: 0 0 0 80px;
|
29 |
-
position: relative;
|
30 |
-
list-style: none;
|
31 |
-
@media screen and (min-width: $sm) {
|
32 |
-
padding: 0 0 0 100px;
|
33 |
-
}
|
34 |
-
@media screen and (min-width: $md) {
|
35 |
-
padding: 0 0 0 135px;
|
36 |
-
}
|
37 |
-
@media screen and (min-width: $lg) {
|
38 |
-
padding: 0 0 0 160px;
|
39 |
-
}
|
40 |
-
h3 {
|
41 |
-
margin: 0;
|
42 |
-
}
|
43 |
-
p {
|
44 |
-
margin: 10px 0 0;
|
45 |
-
&.entry-meta {
|
46 |
-
opacity: 0.75;
|
47 |
-
}
|
48 |
-
}
|
49 |
-
img {
|
50 |
-
position: absolute;
|
51 |
-
left: 0;
|
52 |
-
top: 0;
|
53 |
-
border-radius: 2px;
|
54 |
-
max-width: 65px;
|
55 |
-
@media screen and (min-width: $sm) {
|
56 |
-
max-width: 85px;
|
57 |
-
}
|
58 |
-
@media screen and (min-width: $md) {
|
59 |
-
max-width: 115px;
|
60 |
-
}
|
61 |
-
@media screen and (min-width: $lg) {
|
62 |
-
max-width: 140px;
|
63 |
-
}
|
64 |
-
}
|
65 |
-
}
|
66 |
-
&.no-img {
|
67 |
-
padding: 0;
|
68 |
-
}
|
69 |
-
}
|
70 |
-
&.products {
|
71 |
-
li.product {
|
72 |
-
padding-left: inherit;
|
73 |
-
img {
|
74 |
-
position: static;
|
75 |
-
border-radius: inherit;
|
76 |
-
}
|
77 |
-
}
|
78 |
-
}
|
79 |
-
&.stylefree {
|
80 |
-
.alm-reveal > li,
|
81 |
-
.alm-paging-content > li,
|
82 |
-
> li {
|
83 |
-
padding: inherit;
|
84 |
-
margin: inherit;
|
85 |
-
img {
|
86 |
-
padding: inherit;
|
87 |
-
margin: inherit;
|
88 |
-
position: static;
|
89 |
-
border-radius: inherit;
|
90 |
-
}
|
91 |
-
}
|
92 |
-
}
|
93 |
-
}
|
94 |
-
|
95 |
-
// Right to left (rtl)
|
96 |
-
.alm-listing.rtl {
|
97 |
-
.alm-reveal > li,
|
98 |
-
.alm-paging-content > li {
|
99 |
-
padding: 0 170px 0 0;
|
100 |
-
text-align: right;
|
101 |
-
img {
|
102 |
-
left: auto;
|
103 |
-
right: 0;
|
104 |
-
}
|
105 |
-
}
|
106 |
-
&.products {
|
107 |
-
li.product {
|
108 |
-
padding-right: inherit;
|
109 |
-
}
|
110 |
-
}
|
111 |
-
}
|
112 |
-
|
113 |
-
// Masonry default styles
|
114 |
-
.alm-masonry {
|
115 |
-
display: block;
|
116 |
-
overflow: hidden;
|
117 |
-
clear: both;
|
118 |
-
}
|
119 |
-
|
120 |
-
// Placeholder default styles
|
121 |
-
.alm-placeholder {
|
122 |
-
opacity: 0;
|
123 |
-
transition: opacity 0.2s ease;
|
124 |
-
display: none;
|
125 |
-
}
|
126 |
-
|
127 |
-
// Horizontal Layout
|
128 |
-
.ajax-load-more-wrap {
|
129 |
-
&.alm-horizontal {
|
130 |
-
display: flex;
|
131 |
-
flex-wrap: nowrap;
|
132 |
-
width: 100%;
|
133 |
-
.alm-listing,
|
134 |
-
.alm-listing .alm-reveal {
|
135 |
-
display: flex;
|
136 |
-
flex-wrap: nowrap;
|
137 |
-
flex-direction: row;
|
138 |
-
> li.alm-item {
|
139 |
-
padding: 0;
|
140 |
-
text-align: center;
|
141 |
-
margin: 0 2px;
|
142 |
-
padding: 20px 20px 30px;
|
143 |
-
height: auto;
|
144 |
-
background-color: #fff;
|
145 |
-
border: 1px solid #efefef;
|
146 |
-
border-radius: 4px;
|
147 |
-
width: 300px;
|
148 |
-
img {
|
149 |
-
position: static;
|
150 |
-
border-radius: 100%;
|
151 |
-
max-width: 125px;
|
152 |
-
margin: 0 auto 15px;
|
153 |
-
border-radius: 4px;
|
154 |
-
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.075);
|
155 |
-
}
|
156 |
-
}
|
157 |
-
}
|
158 |
-
.alm-listing .alm-reveal:after {
|
159 |
-
display: none;
|
160 |
-
}
|
161 |
-
}
|
162 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/scss/_loaders.scss
DELETED
@@ -1,281 +0,0 @@
|
|
1 |
-
.alm-btn-wrap {
|
2 |
-
display: block;
|
3 |
-
text-align: center;
|
4 |
-
padding: 10px 0;
|
5 |
-
margin: 0 0 15px;
|
6 |
-
position: relative;
|
7 |
-
&:after {
|
8 |
-
display: table;
|
9 |
-
clear: both;
|
10 |
-
height: 0;
|
11 |
-
width: 100%;
|
12 |
-
content: '';
|
13 |
-
}
|
14 |
-
.alm-load-more-btn {
|
15 |
-
font-size: 15px;
|
16 |
-
font-weight: 500;
|
17 |
-
width: auto;
|
18 |
-
height: 43px;
|
19 |
-
line-height: 1;
|
20 |
-
background: #ed7070;
|
21 |
-
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
|
22 |
-
color: #fff;
|
23 |
-
border: none;
|
24 |
-
border-radius: 4px;
|
25 |
-
margin: 0;
|
26 |
-
padding: 0 20px;
|
27 |
-
display: inline-block;
|
28 |
-
position: relative;
|
29 |
-
transition: all 0.3s ease;
|
30 |
-
text-align: center;
|
31 |
-
text-decoration: none;
|
32 |
-
appearance: none;
|
33 |
-
user-select: none;
|
34 |
-
cursor: pointer;
|
35 |
-
&:hover,
|
36 |
-
&.loading {
|
37 |
-
background-color: #e06161;
|
38 |
-
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.09);
|
39 |
-
color: #fff;
|
40 |
-
text-decoration: none;
|
41 |
-
}
|
42 |
-
&:active {
|
43 |
-
box-shadow: none;
|
44 |
-
text-decoration: none;
|
45 |
-
}
|
46 |
-
|
47 |
-
/* Loading */
|
48 |
-
&.loading {
|
49 |
-
cursor: default;
|
50 |
-
outline: none;
|
51 |
-
padding-left: 44px;
|
52 |
-
}
|
53 |
-
|
54 |
-
/* Loaded / Done */
|
55 |
-
&.done {
|
56 |
-
cursor: default;
|
57 |
-
opacity: 0.15;
|
58 |
-
background-color: #ed7070;
|
59 |
-
outline: none !important;
|
60 |
-
box-shadow: none !important;
|
61 |
-
}
|
62 |
-
|
63 |
-
/* Loading Icon */
|
64 |
-
&:before,
|
65 |
-
&.done:before {
|
66 |
-
background: none;
|
67 |
-
width: 0;
|
68 |
-
}
|
69 |
-
|
70 |
-
/* Loading :before */
|
71 |
-
&.loading:before {
|
72 |
-
background: #fff url('../../img/ajax-loader.gif') no-repeat center center;
|
73 |
-
width: 30px;
|
74 |
-
height: 31px;
|
75 |
-
margin: 6px;
|
76 |
-
border-radius: 3px;
|
77 |
-
display: inline-block;
|
78 |
-
z-index: 0;
|
79 |
-
content: '';
|
80 |
-
position: absolute;
|
81 |
-
left: 0;
|
82 |
-
top: 0;
|
83 |
-
overflow: hidden;
|
84 |
-
transition: width 0.5s ease-in-out;
|
85 |
-
}
|
86 |
-
}
|
87 |
-
|
88 |
-
.alm-elementor-link {
|
89 |
-
display: block;
|
90 |
-
font-size: 13px;
|
91 |
-
margin: 0 0 15px;
|
92 |
-
@media screen and (min-width: $md) {
|
93 |
-
position: absolute;
|
94 |
-
left: 0;
|
95 |
-
top: 50%;
|
96 |
-
transform: translateY(-50%);
|
97 |
-
margin: 0;
|
98 |
-
}
|
99 |
-
}
|
100 |
-
}
|
101 |
-
|
102 |
-
/* white */
|
103 |
-
.ajax-load-more-wrap.white .alm-load-more-btn {
|
104 |
-
background-color: #fff;
|
105 |
-
color: #787878;
|
106 |
-
border: 1px solid #e0e0e0;
|
107 |
-
overflow: hidden;
|
108 |
-
transition: none;
|
109 |
-
outline: none;
|
110 |
-
&:focus,
|
111 |
-
&:hover,
|
112 |
-
&.loading {
|
113 |
-
background-color: #fff;
|
114 |
-
color: #333;
|
115 |
-
border-color: #aaaaaa;
|
116 |
-
}
|
117 |
-
&.done {
|
118 |
-
background-color: #fff;
|
119 |
-
color: #444;
|
120 |
-
border-color: #ccc;
|
121 |
-
}
|
122 |
-
&.loading {
|
123 |
-
color: rgba(255, 255, 255, 0) !important;
|
124 |
-
outline: none !important;
|
125 |
-
background-color: transparent;
|
126 |
-
border-color: transparent !important;
|
127 |
-
box-shadow: none !important;
|
128 |
-
padding-left: 20px;
|
129 |
-
&:before {
|
130 |
-
margin: 0;
|
131 |
-
left: 0;
|
132 |
-
top: 0;
|
133 |
-
width: 100%;
|
134 |
-
height: 100%;
|
135 |
-
background-color: transparent;
|
136 |
-
background-image: url('../../img/ajax-loader-lg.gif');
|
137 |
-
background-size: 25px 25px;
|
138 |
-
background-position: center center;
|
139 |
-
}
|
140 |
-
}
|
141 |
-
}
|
142 |
-
|
143 |
-
/* light grey */
|
144 |
-
.ajax-load-more-wrap.light-grey .alm-load-more-btn {
|
145 |
-
background-color: #efefef;
|
146 |
-
color: #787878;
|
147 |
-
border: 1px solid #e0e0e0;
|
148 |
-
overflow: hidden;
|
149 |
-
transition: all 0.075s ease;
|
150 |
-
outline: none;
|
151 |
-
&:focus,
|
152 |
-
&:hover,
|
153 |
-
&.loading,
|
154 |
-
&.done {
|
155 |
-
background-color: #f1f1f1;
|
156 |
-
color: #222;
|
157 |
-
border-color: #aaaaaa;
|
158 |
-
}
|
159 |
-
&.loading {
|
160 |
-
color: rgba(255, 255, 255, 0) !important;
|
161 |
-
outline: none !important;
|
162 |
-
background-color: transparent;
|
163 |
-
border-color: transparent !important;
|
164 |
-
box-shadow: none !important;
|
165 |
-
padding-left: 20px;
|
166 |
-
&:before {
|
167 |
-
margin: 0;
|
168 |
-
left: 0;
|
169 |
-
top: 0;
|
170 |
-
width: 100%;
|
171 |
-
height: 100%;
|
172 |
-
background-color: transparent;
|
173 |
-
background-image: url('../../img/ajax-loader-lg.gif');
|
174 |
-
background-size: 25px 25px;
|
175 |
-
background-position: center center;
|
176 |
-
}
|
177 |
-
}
|
178 |
-
}
|
179 |
-
|
180 |
-
/* Blue */
|
181 |
-
.ajax-load-more-wrap.blue .alm-load-more-btn {
|
182 |
-
background-color: #1b91ca;
|
183 |
-
&:hover,
|
184 |
-
&.loading,
|
185 |
-
&.done {
|
186 |
-
background-color: #1b84b7;
|
187 |
-
}
|
188 |
-
}
|
189 |
-
|
190 |
-
/* green */
|
191 |
-
.ajax-load-more-wrap.green .alm-load-more-btn {
|
192 |
-
background-color: #80ca7a;
|
193 |
-
&:hover,
|
194 |
-
&.loading,
|
195 |
-
&.done {
|
196 |
-
background-color: #81c17b;
|
197 |
-
}
|
198 |
-
}
|
199 |
-
|
200 |
-
/* purple */
|
201 |
-
.ajax-load-more-wrap.purple .alm-load-more-btn {
|
202 |
-
background-color: #b97eca;
|
203 |
-
&:hover,
|
204 |
-
&.loading,
|
205 |
-
&.done {
|
206 |
-
background-color: #a477b1;
|
207 |
-
}
|
208 |
-
}
|
209 |
-
|
210 |
-
/* grey */
|
211 |
-
.ajax-load-more-wrap.grey .alm-load-more-btn {
|
212 |
-
background-color: #a09e9e;
|
213 |
-
&:hover,
|
214 |
-
&.loading,
|
215 |
-
&.done {
|
216 |
-
background-color: #888;
|
217 |
-
}
|
218 |
-
}
|
219 |
-
|
220 |
-
/* Infinite */
|
221 |
-
.ajax-load-more-wrap.infinite {
|
222 |
-
.alm-load-more-btn {
|
223 |
-
width: 100%;
|
224 |
-
background-color: transparent !important;
|
225 |
-
background-position: center center;
|
226 |
-
background-repeat: no-repeat;
|
227 |
-
background-image: url('../../img/spinner.gif');
|
228 |
-
border: none !important;
|
229 |
-
opacity: 0;
|
230 |
-
transition: opacity 0.2s ease;
|
231 |
-
box-shadow: none !important;
|
232 |
-
overflow: hidden;
|
233 |
-
text-indent: -9999px;
|
234 |
-
cursor: default !important;
|
235 |
-
outline: none !important;
|
236 |
-
&:before {
|
237 |
-
display: none !important;
|
238 |
-
}
|
239 |
-
&:focus,
|
240 |
-
&:active {
|
241 |
-
outline: none;
|
242 |
-
}
|
243 |
-
&.done {
|
244 |
-
opacity: 0;
|
245 |
-
}
|
246 |
-
&.loading {
|
247 |
-
opacity: 1;
|
248 |
-
}
|
249 |
-
}
|
250 |
-
&.skype .alm-load-more-btn {
|
251 |
-
background-image: url('../../img/spinner-skype.gif');
|
252 |
-
}
|
253 |
-
&.ring .alm-load-more-btn {
|
254 |
-
background-image: url('../../img/spinner-ring.gif');
|
255 |
-
}
|
256 |
-
&.fading-blocks .alm-load-more-btn {
|
257 |
-
background-image: url('../../img/loader-fading-blocks.gif');
|
258 |
-
}
|
259 |
-
&.fading-circles .alm-load-more-btn {
|
260 |
-
background-image: url('../../img/loader-fading-circles.gif');
|
261 |
-
}
|
262 |
-
&.chasing-arrows .alm-load-more-btn {
|
263 |
-
background-image: url('../../img/spinner-chasing-arrows.gif');
|
264 |
-
}
|
265 |
-
}
|
266 |
-
|
267 |
-
/// Horizontal
|
268 |
-
.ajax-load-more-wrap.alm-horizontal {
|
269 |
-
.alm-btn-wrap {
|
270 |
-
display: flex;
|
271 |
-
align-items: center;
|
272 |
-
padding: 0;
|
273 |
-
margin: 0;
|
274 |
-
button {
|
275 |
-
margin: 0;
|
276 |
-
&.done {
|
277 |
-
display: none;
|
278 |
-
}
|
279 |
-
}
|
280 |
-
}
|
281 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/scss/_tableofcontents.scss
DELETED
@@ -1,32 +0,0 @@
|
|
1 |
-
.alm-toc{
|
2 |
-
display: flex;
|
3 |
-
width: auto;
|
4 |
-
padding: 10px 0;
|
5 |
-
button{
|
6 |
-
background: #f7f7f7;
|
7 |
-
border-radius: 4px;
|
8 |
-
transition: all 0.15s ease;
|
9 |
-
outline: none;
|
10 |
-
border: 1px solid #efefef;
|
11 |
-
box-shadow: none;
|
12 |
-
color: #454545;
|
13 |
-
cursor: pointer;
|
14 |
-
font-size: 14px;
|
15 |
-
font-weight: 500;
|
16 |
-
padding: 7px 10px;
|
17 |
-
line-height: 1;
|
18 |
-
margin: 0 5px 0 0;
|
19 |
-
height: auto;
|
20 |
-
&:hover,
|
21 |
-
&:focus{
|
22 |
-
border-color: #ccc;
|
23 |
-
color: #222;
|
24 |
-
}
|
25 |
-
&:hover{
|
26 |
-
text-decoration: underline;
|
27 |
-
}
|
28 |
-
&:focus{
|
29 |
-
box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
|
30 |
-
}
|
31 |
-
}
|
32 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/src/scss/_variables.scss
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
$sm: 480px;
|
2 |
-
$md: 768px;
|
3 |
-
$lg: 1024px;
|
|
|
|
|
|
core/src/scss/ajax-load-more.scss
DELETED
@@ -1,18 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* Ajax Load More
|
3 |
-
* http://wordpress.org/plugins/ajax-load-more/
|
4 |
-
*
|
5 |
-
* Copyright 2015-2020 Connekt Media - https://connekthq.com
|
6 |
-
* Free to use under the GPLv2 license.
|
7 |
-
* http://www.gnu.org/licenses/gpl-2.0.html
|
8 |
-
*
|
9 |
-
* Author: Darren Cooney
|
10 |
-
* Twitter: @KaptonKaos
|
11 |
-
* Twitter: @ajaxloadmore
|
12 |
-
* Twitter: @connekthq
|
13 |
-
*/
|
14 |
-
|
15 |
-
@import './variables';
|
16 |
-
@import './loaders';
|
17 |
-
@import './listing';
|
18 |
-
@import './tableofcontents';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gulpfile.js
DELETED
@@ -1,93 +0,0 @@
|
|
1 |
-
|
2 |
-
// Load plugins
|
3 |
-
var gulp = require('gulp'),
|
4 |
-
babel = require('gulp-babel'),
|
5 |
-
concat = require('gulp-concat'),
|
6 |
-
uglify = require('gulp-uglify'),
|
7 |
-
jshint = require('gulp-jshint'),
|
8 |
-
watch = require('gulp-watch'),
|
9 |
-
notify = require('gulp-notify'),
|
10 |
-
sass = require('gulp-sass'),
|
11 |
-
cleanCSS = require('gulp-clean-css'),
|
12 |
-
rename = require('gulp-rename'),
|
13 |
-
sequence = require('gulp-sequence'),
|
14 |
-
prefix = require('gulp-autoprefixer');
|
15 |
-
|
16 |
-
const appname = 'ajax-load-more';
|
17 |
-
const dist = './core/dist';
|
18 |
-
const admin_dist = './admin/dist';
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
/* Core ALM Tasks */
|
23 |
-
|
24 |
-
|
25 |
-
// Sass [Core Compile]
|
26 |
-
gulp.task('sass', () => {
|
27 |
-
setTimeout(function(){
|
28 |
-
gulp.src('./core/src/scss/*.scss')
|
29 |
-
.pipe(sass())
|
30 |
-
.pipe(prefix({browsers: ['last 2 versions', 'ie >= 9', 'and_chr >= 2.3']}))
|
31 |
-
.pipe(gulp.dest( dist +'/css/'))
|
32 |
-
.pipe(cleanCSS())
|
33 |
-
.pipe(rename({ suffix: '.min' }))
|
34 |
-
.pipe(gulp.dest( dist +'/css/'))
|
35 |
-
.pipe(notify({ message: 'Sass Complete' }));
|
36 |
-
}, 250);
|
37 |
-
});
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
/* Admin Tasks */
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
// JS [Lint JS]
|
46 |
-
gulp.task('admin_lint', () => {
|
47 |
-
return gulp.src(['./admin/src/js/admin.js'])
|
48 |
-
.pipe(jshint())
|
49 |
-
.pipe(jshint.reporter('default'))
|
50 |
-
.pipe(notify({ message: 'Admin Lint Complete' }));
|
51 |
-
});
|
52 |
-
|
53 |
-
|
54 |
-
// JS [Concatenate JS]
|
55 |
-
gulp.task('admin_scripts', () => {
|
56 |
-
return gulp.src([
|
57 |
-
'./admin/src/js/libs/*.js',
|
58 |
-
'./admin/src/js/modules/*.js',
|
59 |
-
'./admin/src/js/admin.js',
|
60 |
-
])
|
61 |
-
.pipe(babel())
|
62 |
-
.pipe(concat('admin.js'))
|
63 |
-
.pipe(gulp.dest( admin_dist +'/js/'))
|
64 |
-
.pipe(notify({ message: 'Admin Scripts Complete' }));
|
65 |
-
});
|
66 |
-
|
67 |
-
|
68 |
-
// Sass [Admin Compile]
|
69 |
-
gulp.task('admin_sass', () => {
|
70 |
-
setTimeout(function(){
|
71 |
-
gulp.src('./admin/src/scss/admin.scss')
|
72 |
-
.pipe(sass())
|
73 |
-
.pipe(prefix({browsers: ['last 2 versions', 'ie >= 9', 'and_chr >= 2.3']}))
|
74 |
-
.pipe(gulp.dest( admin_dist +'/css/'))
|
75 |
-
.pipe(notify({ message: 'Admin Sass Complete' }));
|
76 |
-
}, 250);
|
77 |
-
});
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
/* Gulp Run Tasks */
|
82 |
-
|
83 |
-
|
84 |
-
// Watch
|
85 |
-
gulp.task('watch', function() {
|
86 |
-
gulp.watch('core/src/scss/**/*.scss', ['sass']);
|
87 |
-
gulp.watch('admin/src/js/**/*.js', ['admin_lint', 'admin_scripts']);
|
88 |
-
gulp.watch('admin/src/scss/**/*.scss', ['admin_sass']);
|
89 |
-
});
|
90 |
-
|
91 |
-
|
92 |
-
// Default - watches all sass and .js changes
|
93 |
-
gulp.task('default', ['sass', 'admin_sass', 'admin_lint', 'admin_scripts', 'watch']);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lang/ajax-load-more.pot
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Ajax Load More\n"
|
5 |
-
"POT-Creation-Date:
|
6 |
"PO-Revision-Date: 2018-06-20 13:05-0500\n"
|
7 |
"Last-Translator: Darren Cooney <darren@connekthq.com>\n"
|
8 |
"Language-Team: \n"
|
@@ -19,60 +19,60 @@ msgstr ""
|
|
19 |
"X-Poedit-SearchPathExcluded-1: admin/src\n"
|
20 |
"X-Poedit-SearchPathExcluded-2: node_modules\n"
|
21 |
|
22 |
-
#: admin/admin.php:
|
23 |
msgid "Looks like your subscription has expired."
|
24 |
msgstr ""
|
25 |
|
26 |
-
#: admin/admin.php:
|
27 |
msgid ""
|
28 |
"Please login to your <a href=\"https://connekthq.com/account/\" target="
|
29 |
"\"_blank\">Account</a> to renew the license."
|
30 |
msgstr ""
|
31 |
|
32 |
-
#: admin/admin.php:
|
33 |
msgid "Looks like your license is inactive and/or invalid."
|
34 |
msgstr ""
|
35 |
|
36 |
-
#: admin/admin.php:
|
37 |
msgid ""
|
38 |
"Please activate the <a href=\"admin.php?page=ajax-load-more-licenses\" "
|
39 |
"target=\"_blank\">license</a> or login to your <a href=\"https://connekthq."
|
40 |
"com/account/\" target=\"_blank\">Account</a> to renew the license."
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: admin/admin.php:
|
44 |
msgid "Looks like your license has been deactivated."
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: admin/admin.php:
|
48 |
msgid ""
|
49 |
"Please activate the <a href=\"admin.php?page=ajax-load-more-licenses\" "
|
50 |
"target=\"_blank\">license</a> to update."
|
51 |
msgstr ""
|
52 |
|
53 |
-
#: admin/admin.php:
|
54 |
#, php-format
|
55 |
msgid ""
|
56 |
"%sRegister%s your copy of %s to receive access to automatic upgrades and "
|
57 |
"support. Need a license key? %sPurchase one now%s."
|
58 |
msgstr ""
|
59 |
|
60 |
-
#: admin/admin.php:
|
61 |
#: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:170
|
62 |
#: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:241
|
63 |
msgid "Error - unable to verify nonce, please try again."
|
64 |
msgstr ""
|
65 |
|
66 |
-
#: admin/admin.php:
|
67 |
msgid "Transient set successfully"
|
68 |
msgstr ""
|
69 |
|
70 |
-
#: admin/admin.php:
|
71 |
-
#: admin/admin.php:
|
72 |
msgid "You don't belong here."
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: admin/admin.php:
|
76 |
msgid ""
|
77 |
"You have an invalid or expired <a href=\"admin.php?page=ajax-load-more"
|
78 |
"\"><b>Ajax Load More Pro</b></a> license key - please visit the <a href="
|
@@ -81,274 +81,268 @@ msgid ""
|
|
81 |
"\"_blank\">purchase</a> one now."
|
82 |
msgstr ""
|
83 |
|
84 |
-
#: admin/admin.php:
|
85 |
msgid ""
|
86 |
"You have invalid or expired <a href=\"admin.php?page=ajax-load-more"
|
87 |
"\"><b>Ajax Load More</b></a> license keys - please visit the <a href=\"admin."
|
88 |
"php?page=ajax-load-more-licenses\">Licenses</a> section and input your keys."
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: admin/admin.php:
|
92 |
msgid "Ajax Load More"
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: admin/admin.php:
|
96 |
-
#: admin/views/licenses.php:
|
97 |
msgid "Active"
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: admin/admin.php:
|
101 |
-
#: admin/views/licenses.php:
|
102 |
msgid "Inactive"
|
103 |
msgstr ""
|
104 |
|
105 |
-
#: admin/admin.php:
|
106 |
msgid "Applying layout"
|
107 |
msgstr ""
|
108 |
|
109 |
-
#: admin/admin.php:
|
110 |
-
#: admin/views/repeater-templates.php:
|
111 |
msgid "Template Updated"
|
112 |
msgstr ""
|
113 |
|
114 |
-
#: admin/admin.php:
|
115 |
msgid "Select Author(s)"
|
116 |
msgstr ""
|
117 |
|
118 |
-
#: admin/admin.php:
|
119 |
msgid "Select Categories"
|
120 |
msgstr ""
|
121 |
|
122 |
-
#: admin/admin.php:
|
123 |
msgid "Select Tags"
|
124 |
msgstr ""
|
125 |
|
126 |
-
#: admin/admin.php:
|
127 |
msgid "Select"
|
128 |
msgstr ""
|
129 |
|
130 |
-
#: admin/admin.php:
|
131 |
#: admin/editor/editor-build.php:78
|
132 |
msgid "Jump to Option"
|
133 |
msgstr ""
|
134 |
|
135 |
-
#: admin/admin.php:
|
136 |
msgid "Jump to Template"
|
137 |
msgstr ""
|
138 |
|
139 |
-
#: admin/admin.php:
|
140 |
msgid "Are you sure you want to install this Ajax Load More extension?"
|
141 |
msgstr ""
|
142 |
|
143 |
-
#: admin/admin.php:
|
144 |
#: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:51
|
145 |
#: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:379
|
146 |
msgid "Install Now"
|
147 |
msgstr ""
|
148 |
|
149 |
-
#: admin/admin.php:
|
150 |
#: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:90
|
151 |
#: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:380
|
152 |
msgid "Activate"
|
153 |
msgstr ""
|
154 |
|
155 |
-
#: admin/admin.php:
|
156 |
msgid "Saving Settings"
|
157 |
msgstr ""
|
158 |
|
159 |
-
#: admin/admin.php:
|
160 |
msgid "Settings Saved Successfully"
|
161 |
msgstr ""
|
162 |
|
163 |
-
#: admin/admin.php:
|
164 |
msgid "Error Saving Settings"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: admin/admin.php:
|
168 |
msgid ""
|
169 |
"There is a maximum of 3 tax_query objects while using the shortcode builder"
|
170 |
msgstr ""
|
171 |
|
172 |
-
#: admin/admin.php:
|
173 |
msgid ""
|
174 |
"[Ajax Load More] Error opening default repeater template - Please check your "
|
175 |
"file path and ensure your server is configured to allow Ajax Load More to "
|
176 |
"read and write files within the /ajax-load-more/core/repeater directory"
|
177 |
msgstr ""
|
178 |
|
179 |
-
#: admin/admin.php:
|
180 |
msgid ""
|
181 |
"[Ajax Load More] Error updating default repeater template - Please check "
|
182 |
"your file path and ensure your server is configured to allow Ajax Load More "
|
183 |
"to read and write files within the /ajax-load-more/core/repeater directory."
|
184 |
msgstr ""
|
185 |
|
186 |
-
#: admin/admin.php:
|
187 |
msgid "Settings"
|
188 |
msgstr ""
|
189 |
|
190 |
-
#: admin/admin.php:
|
191 |
-
#: admin/views/repeater-templates.php:
|
192 |
msgid "Repeater Templates"
|
193 |
msgstr ""
|
194 |
|
195 |
-
#: admin/admin.php:
|
196 |
msgid "Shortcode Builder"
|
197 |
msgstr ""
|
198 |
|
199 |
-
#: admin/admin.php:
|
200 |
msgid "Add-ons"
|
201 |
msgstr ""
|
202 |
|
203 |
-
#: admin/admin.php:
|
204 |
msgid "Extensions"
|
205 |
msgstr ""
|
206 |
|
207 |
-
#: admin/admin.php:
|
208 |
msgid "Help"
|
209 |
msgstr ""
|
210 |
|
211 |
-
#: admin/admin.php:
|
212 |
msgid "License"
|
213 |
msgstr ""
|
214 |
|
215 |
-
#: admin/admin.php:
|
216 |
msgid "Licenses"
|
217 |
msgstr ""
|
218 |
|
219 |
-
#: admin/admin.php:
|
220 |
#: admin/views/go-pro.php:5
|
221 |
msgid "Pro"
|
222 |
msgstr ""
|
223 |
|
224 |
-
#: admin/admin.php:
|
225 |
msgid "Go Pro"
|
226 |
msgstr ""
|
227 |
|
228 |
-
#: admin/admin.php:
|
229 |
#: admin/shortcode-builder/components/cache.php:3 admin/views/settings.php:35
|
230 |
-
#: core/functions.php:51
|
231 |
msgid "Cache"
|
232 |
msgstr ""
|
233 |
|
234 |
-
#: admin/admin.php:
|
235 |
#: admin/shortcode-builder/components/filters.php:3 admin/views/settings.php:37
|
236 |
-
#: core/functions.php:126
|
237 |
msgid "Filters"
|
238 |
msgstr ""
|
239 |
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Ajax Load More\n"
|
5 |
+
"POT-Creation-Date: 2021-01-03 18:31-0500\n"
|
6 |
"PO-Revision-Date: 2018-06-20 13:05-0500\n"
|
7 |
"Last-Translator: Darren Cooney <darren@connekthq.com>\n"
|
8 |
"Language-Team: \n"
|
19 |
"X-Poedit-SearchPathExcluded-1: admin/src\n"
|
20 |
"X-Poedit-SearchPathExcluded-2: node_modules\n"
|
21 |
|
22 |
+
#: admin/admin.php:71
|
23 |
msgid "Looks like your subscription has expired."
|
24 |
msgstr ""
|
25 |
|
26 |
+
#: admin/admin.php:72
|
27 |
msgid ""
|
28 |
"Please login to your <a href=\"https://connekthq.com/account/\" target="
|
29 |
"\"_blank\">Account</a> to renew the license."
|
30 |
msgstr ""
|
31 |
|
32 |
+
#: admin/admin.php:79
|
33 |
msgid "Looks like your license is inactive and/or invalid."
|
34 |
msgstr ""
|
35 |
|
36 |
+
#: admin/admin.php:80
|
37 |
msgid ""
|
38 |
"Please activate the <a href=\"admin.php?page=ajax-load-more-licenses\" "
|
39 |
"target=\"_blank\">license</a> or login to your <a href=\"https://connekthq."
|
40 |
"com/account/\" target=\"_blank\">Account</a> to renew the license."
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: admin/admin.php:87
|
44 |
msgid "Looks like your license has been deactivated."
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: admin/admin.php:88
|
48 |
msgid ""
|
49 |
"Please activate the <a href=\"admin.php?page=ajax-load-more-licenses\" "
|
50 |
"target=\"_blank\">license</a> to update."
|
51 |
msgstr ""
|
52 |
|
53 |
+
#: admin/admin.php:121
|
54 |
#, php-format
|
55 |
msgid ""
|
56 |
"%sRegister%s your copy of %s to receive access to automatic upgrades and "
|
57 |
"support. Need a license key? %sPurchase one now%s."
|
58 |
msgstr ""
|
59 |
|
60 |
+
#: admin/admin.php:177 admin/admin.php:1343
|
61 |
#: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:170
|
62 |
#: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:241
|
63 |
msgid "Error - unable to verify nonce, please try again."
|
64 |
msgstr ""
|
65 |
|
66 |
+
#: admin/admin.php:181
|
67 |
msgid "Transient set successfully"
|
68 |
msgstr ""
|
69 |
|
70 |
+
#: admin/admin.php:298 admin/admin.php:463 admin/admin.php:1204
|
71 |
+
#: admin/admin.php:1250 admin/admin.php:1300
|
72 |
msgid "You don't belong here."
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: admin/admin.php:327
|
76 |
msgid ""
|
77 |
"You have an invalid or expired <a href=\"admin.php?page=ajax-load-more"
|
78 |
"\"><b>Ajax Load More Pro</b></a> license key - please visit the <a href="
|
81 |
"\"_blank\">purchase</a> one now."
|
82 |
msgstr ""
|
83 |
|
84 |
+
#: admin/admin.php:331
|
85 |
msgid ""
|
86 |
"You have invalid or expired <a href=\"admin.php?page=ajax-load-more"
|
87 |
"\"><b>Ajax Load More</b></a> license keys - please visit the <a href=\"admin."
|
88 |
"php?page=ajax-load-more-licenses\">Licenses</a> section and input your keys."
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: admin/admin.php:498 core/integration/elementor/elementor.php:13
|
92 |
msgid "Ajax Load More"
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: admin/admin.php:499 admin/editor/editor-build.php:69
|
96 |
+
#: admin/views/licenses.php:94
|
97 |
msgid "Active"
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: admin/admin.php:500 admin/editor/editor-build.php:70
|
101 |
+
#: admin/views/licenses.php:102
|
102 |
msgid "Inactive"
|
103 |
msgstr ""
|
104 |
|
105 |
+
#: admin/admin.php:501 admin/editor/editor-build.php:71
|
106 |
msgid "Applying layout"
|
107 |
msgstr ""
|
108 |
|
109 |
+
#: admin/admin.php:502 admin/editor/editor-build.php:72
|
110 |
+
#: admin/views/repeater-templates.php:446
|
111 |
msgid "Template Updated"
|
112 |
msgstr ""
|
113 |
|
114 |
+
#: admin/admin.php:504 admin/editor/editor-build.php:75
|
115 |
msgid "Select Author(s)"
|
116 |
msgstr ""
|
117 |
|
118 |
+
#: admin/admin.php:505 admin/editor/editor-build.php:76
|
119 |
msgid "Select Categories"
|
120 |
msgstr ""
|
121 |
|
122 |
+
#: admin/admin.php:506 admin/editor/editor-build.php:77
|
123 |
msgid "Select Tags"
|
124 |
msgstr ""
|
125 |
|
126 |
+
#: admin/admin.php:507 admin/editor/editor-build.php:74
|
127 |
msgid "Select"
|
128 |
msgstr ""
|
129 |
|
130 |
+
#: admin/admin.php:508 admin/editor/editor-build.php:41
|
131 |
#: admin/editor/editor-build.php:78
|
132 |
msgid "Jump to Option"
|
133 |
msgstr ""
|
134 |
|
135 |
+
#: admin/admin.php:509 admin/editor/editor-build.php:79
|
136 |
msgid "Jump to Template"
|
137 |
msgstr ""
|
138 |
|
139 |
+
#: admin/admin.php:510
|
140 |
msgid "Are you sure you want to install this Ajax Load More extension?"
|
141 |
msgstr ""
|
142 |
|
143 |
+
#: admin/admin.php:511
|
144 |
#: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:51
|
145 |
#: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:379
|
146 |
msgid "Install Now"
|
147 |
msgstr ""
|
148 |
|
149 |
+
#: admin/admin.php:512
|
150 |
#: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:90
|
151 |
#: vendor/connekt-plugin-installer/class-connekt-plugin-installer.php:380
|
152 |
msgid "Activate"
|
153 |
msgstr ""
|
154 |
|
155 |
+
#: admin/admin.php:513
|
156 |
msgid "Saving Settings"
|
157 |
msgstr ""
|
158 |
|
159 |
+
#: admin/admin.php:514
|
160 |
msgid "Settings Saved Successfully"
|
161 |
msgstr ""
|
162 |
|
163 |
+
#: admin/admin.php:515
|
164 |
msgid "Error Saving Settings"
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: admin/admin.php:516
|
168 |
msgid ""
|
169 |
"There is a maximum of 3 tax_query objects while using the shortcode builder"
|
170 |
msgstr ""
|
171 |
|
172 |
+
#: admin/admin.php:622
|
173 |
msgid ""
|
174 |
"[Ajax Load More] Error opening default repeater template - Please check your "
|
175 |
"file path and ensure your server is configured to allow Ajax Load More to "
|
176 |
"read and write files within the /ajax-load-more/core/repeater directory"
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: admin/admin.php:626
|
180 |
msgid ""
|
181 |
"[Ajax Load More] Error updating default repeater template - Please check "
|
182 |
"your file path and ensure your server is configured to allow Ajax Load More "
|
183 |
"to read and write files within the /ajax-load-more/core/repeater directory."
|
184 |
msgstr ""
|
185 |
|
186 |
+
#: admin/admin.php:666 admin/admin.php:667 ajax-load-more.php:278
|
187 |
msgid "Settings"
|
188 |
msgstr ""
|
189 |
|
190 |
+
#: admin/admin.php:675 admin/admin.php:676
|
191 |
+
#: admin/views/repeater-templates.php:13
|
192 |
msgid "Repeater Templates"
|
193 |
msgstr ""
|
194 |
|
195 |
+
#: admin/admin.php:684 admin/admin.php:685 admin/views/shortcode-builder.php:9
|
196 |
msgid "Shortcode Builder"
|
197 |
msgstr ""
|
198 |
|
199 |
+
#: admin/admin.php:694 admin/admin.php:695 admin/views/add-ons.php:6
|
200 |
msgid "Add-ons"
|
201 |
msgstr ""
|
202 |
|
203 |
+
#: admin/admin.php:704 admin/admin.php:705 admin/views/extensions.php:5
|
204 |
msgid "Extensions"
|
205 |
msgstr ""
|
206 |
|
207 |
+
#: admin/admin.php:713 admin/admin.php:714 admin/views/help.php:18
|
208 |
msgid "Help"
|
209 |
msgstr ""
|
210 |
|
211 |
+
#: admin/admin.php:720
|
212 |
msgid "License"
|
213 |
msgstr ""
|
214 |
|
215 |
+
#: admin/admin.php:720 admin/views/licenses.php:2
|
216 |
msgid "Licenses"
|
217 |
msgstr ""
|
218 |
|
219 |
+
#: admin/admin.php:740 admin/admin.php:741 admin/admin.php:749
|
220 |
#: admin/views/go-pro.php:5
|
221 |
msgid "Pro"
|
222 |
msgstr ""
|
223 |
|
224 |
+
#: admin/admin.php:750 admin/views/licenses.php:151
|
225 |
msgid "Go Pro"
|
226 |
msgstr ""
|
227 |
|
228 |
+
#: admin/admin.php:762 admin/admin.php:763
|
229 |
#: admin/shortcode-builder/components/cache.php:3 admin/views/settings.php:35
|
|
|
230 |
msgid "Cache"
|
231 |
msgstr ""
|
232 |
|
233 |
+
#: admin/admin.php:783 admin/admin.php:784
|
234 |
#: admin/shortcode-builder/components/filters.php:3 admin/views/settings.php:37
|
|
|
235 |
msgid "Filters"
|
236 |
msgstr ""
|
237 |
|