Version Description
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Zoom Magnifier |
Version | 1.3.24 |
Comparing to | |
See all releases |
Code changes from version 1.3.23 to 1.3.24
- LICENSE.txt +694 -0
- README.txt +9 -3
- assets/js/jquery.min.js +1 -0
- assets/js/yith_magnifier.min.js +1 -1
- assets/js/ywzm_frontend.min.js +1 -1
- init.php +5 -5
- languages/yith-woocommerce-zoom-magnifier.pot +65 -162
- plugin-fw/.distignore +0 -23
- plugin-fw/.jshintrc +0 -26
- plugin-fw/Gruntfile.js +0 -162
- plugin-fw/assets/css/elementor.css +36 -0
- plugin-fw/assets/css/metaboxes.css +0 -1
- plugin-fw/assets/css/yit-plugin-panel.css +9 -17
- plugin-fw/assets/css/yith-fields.css +113 -221
- plugin-fw/assets/css/yith-icon.css +271 -0
- plugin-fw/assets/fonts/yith-icon.eot +0 -0
- plugin-fw/assets/fonts/yith-icon.svg +0 -46
- plugin-fw/assets/fonts/yith-icon.ttf +0 -0
- plugin-fw/assets/fonts/yith-icon.woff +0 -0
- plugin-fw/assets/fonts/yith-icon.woff2 +0 -0
- plugin-fw/assets/images/yith-icon.svg +14 -1
- plugin-fw/assets/js/yith-fields.js +58 -9
- plugin-fw/assets/js/yith-fields.min.js +1 -1
- plugin-fw/assets/js/yith-gutenberg.js +0 -212
- plugin-fw/assets/js/yith-gutenberg.min.js +0 -1
- plugin-fw/bin/clean-language-files.js +0 -36
- plugin-fw/bin/download-translations-config.json +0 -27
- plugin-fw/bin/download-translations.js +0 -57
- plugin-fw/composer.json +0 -24
- plugin-fw/dist/gutenberg/index.asset.php +1 -0
- plugin-fw/dist/gutenberg/index.js +1 -0
- plugin-fw/dist/gutenberg/style-index.css +2 -0
- plugin-fw/docker-compose.yml +0 -76
- plugin-fw/includes/builders/elementor/class-yith-elementor-widget.php +464 -0
- plugin-fw/includes/builders/elementor/class-yith-elementor.php +123 -0
- plugin-fw/includes/{class-yith-gutenberg.php → builders/gutenberg/class-yith-gutenberg.php} +39 -22
- plugin-fw/includes/class-yit-assets.php +13 -1
- plugin-fw/includes/class-yit-plugin-panel.php +2 -2
- plugin-fw/includes/class-yith-system-status.php +2 -2
- plugin-fw/init.php +2 -2
- plugin-fw/languages/yith-plugin-fw-el.mo +0 -0
- plugin-fw/languages/yith-plugin-fw-el.po +37 -31
- plugin-fw/languages/yith-plugin-fw-es_ES.mo +0 -0
- plugin-fw/languages/yith-plugin-fw-es_ES.po +37 -22
- plugin-fw/languages/yith-plugin-fw-it_IT.mo +0 -0
- plugin-fw/languages/yith-plugin-fw-it_IT.po +45 -20
- plugin-fw/languages/yith-plugin-fw-nl_NL.mo +0 -0
- plugin-fw/languages/yith-plugin-fw-nl_NL.po +43 -28
- plugin-fw/languages/yith-plugin-fw.pot +35 -19
- plugin-fw/lib/yith-gutenberg.php +1 -1
- plugin-fw/package.json +0 -39
- plugin-fw/phpcs.xml +1 -0
- plugin-fw/phpunit.xml.dist +0 -15
- plugin-fw/templates/fields/copy-to-clipboard.php +47 -0
- plugin-fw/templates/fields/inline-fields.php +1 -1
- plugin-fw/tests/bootstrap.php +0 -167
- plugin-fw/tests/framework/fixtures/panel-all-options.php +0 -240
- plugin-fw/tests/framework/helpers/class-yith-plugin-fw-panels-helper.php +0 -83
- plugin-fw/tests/framework/plugin-options/wc-panel-options.php +0 -43
- plugin-fw/tests/unit-tests/class-yith-plugin-fw-tests-plugin-panel-wc.php +0 -49
- plugin-fw/tools/local-env/docker/phpunit/Dockerfile +0 -12
- plugin-fw/tools/local-env/install-wp-tests.sh +0 -154
- plugin-fw/tools/local-env/mysql-init.sql +0 -7
- plugin-fw/tools/local-env/phpunit-config.ini +0 -6
- plugin-fw/tools/local-env/scripts/docker.js +0 -6
- plugin-fw/tools/local-env/scripts/install.js +0 -15
- plugin-fw/tools/local-env/scripts/start.js +0 -7
- plugin-fw/tools/local-env/yith-plugin-fw-loader.php +0 -50
- plugin-fw/yit-functions.php +59 -0
- plugin-fw/yit-plugin.php +4 -1
LICENSE.txt
ADDED
@@ -0,0 +1,694 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Copyright 2015 Your Inspiration Themes (email : plugins@yithemes.com)
|
2 |
+
|
3 |
+
This program is free software; you can redistribute it and/or modify
|
4 |
+
it under the terms of the GNU General Public License as published by
|
5 |
+
the Free Software Foundation; either version 3 of the License, or
|
6 |
+
(at your option) any later version.
|
7 |
+
|
8 |
+
This program is distributed in the hope that it will be useful,
|
9 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
+
GNU General Public License for more details.
|
12 |
+
|
13 |
+
You should have received a copy of the GNU General Public License
|
14 |
+
along with this program; if not, write to the Free Software
|
15 |
+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
16 |
+
|
17 |
+
YITH WooCommerce Zoom Magnifier is released under the GPL
|
18 |
+
|
19 |
+
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
|
20 |
+
|
21 |
+
GNU GENERAL PUBLIC LICENSE
|
22 |
+
Version 3, 29 June 2007
|
23 |
+
|
24 |
+
Copyright © 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
25 |
+
Everyone is permitted to copy and distribute verbatim copies
|
26 |
+
of this license document, but changing it is not allowed.
|
27 |
+
|
28 |
+
Preamble
|
29 |
+
|
30 |
+
The GNU General Public License is a free, copyleft license for
|
31 |
+
software and other kinds of works.
|
32 |
+
|
33 |
+
The licenses for most software and other practical works are designed
|
34 |
+
to take away your freedom to share and change the works. By contrast,
|
35 |
+
the GNU General Public License is intended to guarantee your freedom to
|
36 |
+
share and change all versions of a program--to make sure it remains free
|
37 |
+
software for all its users. We, the Free Software Foundation, use the
|
38 |
+
GNU General Public License for most of our software; it applies also to
|
39 |
+
any other work released this way by its authors. You can apply it to
|
40 |
+
your programs, too.
|
41 |
+
|
42 |
+
When we speak of free software, we are referring to freedom, not
|
43 |
+
price. Our General Public Licenses are designed to make sure that you
|
44 |
+
have the freedom to distribute copies of free software (and charge for
|
45 |
+
them if you wish), that you receive source code or can get it if you
|
46 |
+
want it, that you can change the software or use pieces of it in new
|
47 |
+
free programs, and that you know you can do these things.
|
48 |
+
|
49 |
+
To protect your rights, we need to prevent others from denying you
|
50 |
+
these rights or asking you to surrender the rights. Therefore, you have
|
51 |
+
certain responsibilities if you distribute copies of the software, or if
|
52 |
+
you modify it: responsibilities to respect the freedom of others.
|
53 |
+
|
54 |
+
For example, if you distribute copies of such a program, whether
|
55 |
+
gratis or for a fee, you must pass on to the recipients the same
|
56 |
+
freedoms that you received. You must make sure that they, too, receive
|
57 |
+
or can get the source code. And you must show them these terms so they
|
58 |
+
know their rights.
|
59 |
+
|
60 |
+
Developers that use the GNU GPL protect your rights with two steps:
|
61 |
+
(1) assert copyright on the software, and (2) offer you this License
|
62 |
+
giving you legal permission to copy, distribute and/or modify it.
|
63 |
+
|
64 |
+
For the developers' and authors' protection, the GPL clearly explains
|
65 |
+
that there is no warranty for this free software. For both users' and
|
66 |
+
authors' sake, the GPL requires that modified versions be marked as
|
67 |
+
changed, so that their problems will not be attributed erroneously to
|
68 |
+
authors of previous versions.
|
69 |
+
|
70 |
+
Some devices are designed to deny users access to install or run
|
71 |
+
modified versions of the software inside them, although the manufacturer
|
72 |
+
can do so. This is fundamentally incompatible with the aim of
|
73 |
+
protecting users' freedom to change the software. The systematic
|
74 |
+
pattern of such abuse occurs in the area of products for individuals to
|
75 |
+
use, which is precisely where it is most unacceptable. Therefore, we
|
76 |
+
have designed this version of the GPL to prohibit the practice for those
|
77 |
+
products. If such problems arise substantially in other domains, we
|
78 |
+
stand ready to extend this provision to those domains in future versions
|
79 |
+
of the GPL, as needed to protect the freedom of users.
|
80 |
+
|
81 |
+
Finally, every program is threatened constantly by software patents.
|
82 |
+
States should not allow patents to restrict development and use of
|
83 |
+
software on general-purpose computers, but in those that do, we wish to
|
84 |
+
avoid the special danger that patents applied to a free program could
|
85 |
+
make it effectively proprietary. To prevent this, the GPL assures that
|
86 |
+
patents cannot be used to render the program non-free.
|
87 |
+
|
88 |
+
The precise terms and conditions for copying, distribution and
|
89 |
+
modification follow.
|
90 |
+
|
91 |
+
TERMS AND CONDITIONS
|
92 |
+
|
93 |
+
0. Definitions.
|
94 |
+
|
95 |
+
"This License" refers to version 3 of the GNU General Public License.
|
96 |
+
|
97 |
+
"Copyright" also means copyright-like laws that apply to other kinds of
|
98 |
+
works, such as semiconductor masks.
|
99 |
+
|
100 |
+
"The Program" refers to any copyrightable work licensed under this
|
101 |
+
License. Each licensee is addressed as "you". "Licensees" and
|
102 |
+
"recipients" may be individuals or organizations.
|
103 |
+
|
104 |
+
To "modify" a work means to copy from or adapt all or part of the work
|
105 |
+
in a fashion requiring copyright permission, other than the making of an
|
106 |
+
exact copy. The resulting work is called a "modified version" of the
|
107 |
+
earlier work or a work "based on" the earlier work.
|
108 |
+
|
109 |
+
A "covered work" means either the unmodified Program or a work based
|
110 |
+
on the Program.
|
111 |
+
|
112 |
+
To "propagate" a work means to do anything with it that, without
|
113 |
+
permission, would make you directly or secondarily liable for
|
114 |
+
infringement under applicable copyright law, except executing it on a
|
115 |
+
computer or modifying a private copy. Propagation includes copying,
|
116 |
+
distribution (with or without modification), making available to the
|
117 |
+
public, and in some countries other activities as well.
|
118 |
+
|
119 |
+
To "convey" a work means any kind of propagation that enables other
|
120 |
+
parties to make or receive copies. Mere interaction with a user through
|
121 |
+
a computer network, with no transfer of a copy, is not conveying.
|
122 |
+
|
123 |
+
An interactive user interface displays "Appropriate Legal Notices"
|
124 |
+
to the extent that it includes a convenient and prominently visible
|
125 |
+
feature that (1) displays an appropriate copyright notice, and (2)
|
126 |
+
tells the user that there is no warranty for the work (except to the
|
127 |
+
extent that warranties are provided), that licensees may convey the
|
128 |
+
work under this License, and how to view a copy of this License. If
|
129 |
+
the interface presents a list of user commands or options, such as a
|
130 |
+
menu, a prominent item in the list meets this criterion.
|
131 |
+
|
132 |
+
1. Source Code.
|
133 |
+
|
134 |
+
The "source code" for a work means the preferred form of the work
|
135 |
+
for making modifications to it. "Object code" means any non-source
|
136 |
+
form of a work.
|
137 |
+
|
138 |
+
A "Standard Interface" means an interface that either is an official
|
139 |
+
standard defined by a recognized standards body, or, in the case of
|
140 |
+
interfaces specified for a particular programming language, one that
|
141 |
+
is widely used among developers working in that language.
|
142 |
+
|
143 |
+
The "System Libraries" of an executable work include anything, other
|
144 |
+
than the work as a whole, that (a) is included in the normal form of
|
145 |
+
packaging a Major Component, but which is not part of that Major
|
146 |
+
Component, and (b) serves only to enable use of the work with that
|
147 |
+
Major Component, or to implement a Standard Interface for which an
|
148 |
+
implementation is available to the public in source code form. A
|
149 |
+
"Major Component", in this context, means a major essential component
|
150 |
+
(kernel, window system, and so on) of the specific operating system
|
151 |
+
(if any) on which the executable work runs, or a compiler used to
|
152 |
+
produce the work, or an object code interpreter used to run it.
|
153 |
+
|
154 |
+
The "Corresponding Source" for a work in object code form means all
|
155 |
+
the source code needed to generate, install, and (for an executable
|
156 |
+
work) run the object code and to modify the work, including scripts to
|
157 |
+
control those activities. However, it does not include the work's
|
158 |
+
System Libraries, or general-purpose tools or generally available free
|
159 |
+
programs which are used unmodified in performing those activities but
|
160 |
+
which are not part of the work. For example, Corresponding Source
|
161 |
+
includes interface definition files associated with source files for
|
162 |
+
the work, and the source code for shared libraries and dynamically
|
163 |
+
linked subprograms that the work is specifically designed to require,
|
164 |
+
such as by intimate data communication or control flow between those
|
165 |
+
subprograms and other parts of the work.
|
166 |
+
|
167 |
+
The Corresponding Source need not include anything that users
|
168 |
+
can regenerate automatically from other parts of the Corresponding
|
169 |
+
Source.
|
170 |
+
|
171 |
+
The Corresponding Source for a work in source code form is that
|
172 |
+
same work.
|
173 |
+
|
174 |
+
2. Basic Permissions.
|
175 |
+
|
176 |
+
All rights granted under this License are granted for the term of
|
177 |
+
copyright on the Program, and are irrevocable provided the stated
|
178 |
+
conditions are met. This License explicitly affirms your unlimited
|
179 |
+
permission to run the unmodified Program. The output from running a
|
180 |
+
covered work is covered by this License only if the output, given its
|
181 |
+
content, constitutes a covered work. This License acknowledges your
|
182 |
+
rights of fair use or other equivalent, as provided by copyright law.
|
183 |
+
|
184 |
+
You may make, run and propagate covered works that you do not
|
185 |
+
convey, without conditions so long as your license otherwise remains
|
186 |
+
in force. You may convey covered works to others for the sole purpose
|
187 |
+
of having them make modifications exclusively for you, or provide you
|
188 |
+
with facilities for running those works, provided that you comply with
|
189 |
+
the terms of this License in conveying all material for which you do
|
190 |
+
not control copyright. Those thus making or running the covered works
|
191 |
+
for you must do so exclusively on your behalf, under your direction
|
192 |
+
and control, on terms that prohibit them from making any copies of
|
193 |
+
your copyrighted material outside their relationship with you.
|
194 |
+
|
195 |
+
Conveying under any other circumstances is permitted solely under
|
196 |
+
the conditions stated below. Sublicensing is not allowed; section 10
|
197 |
+
makes it unnecessary.
|
198 |
+
|
199 |
+
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
200 |
+
|
201 |
+
No covered work shall be deemed part of an effective technological
|
202 |
+
measure under any applicable law fulfilling obligations under article
|
203 |
+
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
204 |
+
similar laws prohibiting or restricting circumvention of such
|
205 |
+
measures.
|
206 |
+
|
207 |
+
When you convey a covered work, you waive any legal power to forbid
|
208 |
+
circumvention of technological measures to the extent such circumvention
|
209 |
+
is effected by exercising rights under this License with respect to
|
210 |
+
the covered work, and you disclaim any intention to limit operation or
|
211 |
+
modification of the work as a means of enforcing, against the work's
|
212 |
+
users, your or third parties' legal rights to forbid circumvention of
|
213 |
+
technological measures.
|
214 |
+
|
215 |
+
4. Conveying Verbatim Copies.
|
216 |
+
|
217 |
+
You may convey verbatim copies of the Program's source code as you
|
218 |
+
receive it, in any medium, provided that you conspicuously and
|
219 |
+
appropriately publish on each copy an appropriate copyright notice;
|
220 |
+
keep intact all notices stating that this License and any
|
221 |
+
non-permissive terms added in accord with section 7 apply to the code;
|
222 |
+
keep intact all notices of the absence of any warranty; and give all
|
223 |
+
recipients a copy of this License along with the Program.
|
224 |
+
|
225 |
+
You may charge any price or no price for each copy that you convey,
|
226 |
+
and you may offer support or warranty protection for a fee.
|
227 |
+
|
228 |
+
5. Conveying Modified Source Versions.
|
229 |
+
|
230 |
+
You may convey a work based on the Program, or the modifications to
|
231 |
+
produce it from the Program, in the form of source code under the
|
232 |
+
terms of section 4, provided that you also meet all of these conditions:
|
233 |
+
|
234 |
+
a) The work must carry prominent notices stating that you modified
|
235 |
+
it, and giving a relevant date.
|
236 |
+
|
237 |
+
b) The work must carry prominent notices stating that it is
|
238 |
+
released under this License and any conditions added under section
|
239 |
+
7. This requirement modifies the requirement in section 4 to
|
240 |
+
"keep intact all notices".
|
241 |
+
|
242 |
+
c) You must license the entire work, as a whole, under this
|
243 |
+
License to anyone who comes into possession of a copy. This
|
244 |
+
License will therefore apply, along with any applicable section 7
|
245 |
+
additional terms, to the whole of the work, and all its parts,
|
246 |
+
regardless of how they are packaged. This License gives no
|
247 |
+
permission to license the work in any other way, but it does not
|
248 |
+
invalidate such permission if you have separately received it.
|
249 |
+
|
250 |
+
d) If the work has interactive user interfaces, each must display
|
251 |
+
Appropriate Legal Notices; however, if the Program has interactive
|
252 |
+
interfaces that do not display Appropriate Legal Notices, your
|
253 |
+
work need not make them do so.
|
254 |
+
|
255 |
+
A compilation of a covered work with other separate and independent
|
256 |
+
works, which are not by their nature extensions of the covered work,
|
257 |
+
and which are not combined with it such as to form a larger program,
|
258 |
+
in or on a volume of a storage or distribution medium, is called an
|
259 |
+
"aggregate" if the compilation and its resulting copyright are not
|
260 |
+
used to limit the access or legal rights of the compilation's users
|
261 |
+
beyond what the individual works permit. Inclusion of a covered work
|
262 |
+
in an aggregate does not cause this License to apply to the other
|
263 |
+
parts of the aggregate.
|
264 |
+
|
265 |
+
6. Conveying Non-Source Forms.
|
266 |
+
|
267 |
+
You may convey a covered work in object code form under the terms
|
268 |
+
of sections 4 and 5, provided that you also convey the
|
269 |
+
machine-readable Corresponding Source under the terms of this License,
|
270 |
+
in one of these ways:
|
271 |
+
|
272 |
+
a) Convey the object code in, or embodied in, a physical product
|
273 |
+
(including a physical distribution medium), accompanied by the
|
274 |
+
Corresponding Source fixed on a durable physical medium
|
275 |
+
customarily used for software interchange.
|
276 |
+
|
277 |
+
b) Convey the object code in, or embodied in, a physical product
|
278 |
+
(including a physical distribution medium), accompanied by a
|
279 |
+
written offer, valid for at least three years and valid for as
|
280 |
+
long as you offer spare parts or customer support for that product
|
281 |
+
model, to give anyone who possesses the object code either (1) a
|
282 |
+
copy of the Corresponding Source for all the software in the
|
283 |
+
product that is covered by this License, on a durable physical
|
284 |
+
medium customarily used for software interchange, for a price no
|
285 |
+
more than your reasonable cost of physically performing this
|
286 |
+
conveying of source, or (2) access to copy the
|
287 |
+
Corresponding Source from a network server at no charge.
|
288 |
+
|
289 |
+
c) Convey individual copies of the object code with a copy of the
|
290 |
+
written offer to provide the Corresponding Source. This
|
291 |
+
alternative is allowed only occasionally and noncommercially, and
|
292 |
+
only if you received the object code with such an offer, in accord
|
293 |
+
with subsection 6b.
|
294 |
+
|
295 |
+
d) Convey the object code by offering access from a designated
|
296 |
+
place (gratis or for a charge), and offer equivalent access to the
|
297 |
+
Corresponding Source in the same way through the same place at no
|
298 |
+
further charge. You need not require recipients to copy the
|
299 |
+
Corresponding Source along with the object code. If the place to
|
300 |
+
copy the object code is a network server, the Corresponding Source
|
301 |
+
may be on a different server (operated by you or a third party)
|
302 |
+
that supports equivalent copying facilities, provided you maintain
|
303 |
+
clear directions next to the object code saying where to find the
|
304 |
+
Corresponding Source. Regardless of what server hosts the
|
305 |
+
Corresponding Source, you remain obligated to ensure that it is
|
306 |
+
available for as long as needed to satisfy these requirements.
|
307 |
+
|
308 |
+
e) Convey the object code using peer-to-peer transmission, provided
|
309 |
+
you inform other peers where the object code and Corresponding
|
310 |
+
Source of the work are being offered to the general public at no
|
311 |
+
charge under subsection 6d.
|
312 |
+
|
313 |
+
A separable portion of the object code, whose source code is excluded
|
314 |
+
from the Corresponding Source as a System Library, need not be
|
315 |
+
included in conveying the object code work.
|
316 |
+
|
317 |
+
A "User Product" is either (1) a "consumer product", which means any
|
318 |
+
tangible personal property which is normally used for personal, family,
|
319 |
+
or household purposes, or (2) anything designed or sold for incorporation
|
320 |
+
into a dwelling. In determining whether a product is a consumer product,
|
321 |
+
doubtful cases shall be resolved in favor of coverage. For a particular
|
322 |
+
product received by a particular user, "normally used" refers to a
|
323 |
+
typical or common use of that class of product, regardless of the status
|
324 |
+
of the particular user or of the way in which the particular user
|
325 |
+
actually uses, or expects or is expected to use, the product. A product
|
326 |
+
is a consumer product regardless of whether the product has substantial
|
327 |
+
commercial, industrial or non-consumer uses, unless such uses represent
|
328 |
+
the only significant mode of use of the product.
|
329 |
+
|
330 |
+
"Installation Information" for a User Product means any methods,
|
331 |
+
procedures, authorization keys, or other information required to install
|
332 |
+
and execute modified versions of a covered work in that User Product from
|
333 |
+
a modified version of its Corresponding Source. The information must
|
334 |
+
suffice to ensure that the continued functioning of the modified object
|
335 |
+
code is in no case prevented or interfered with solely because
|
336 |
+
modification has been made.
|
337 |
+
|
338 |
+
If you convey an object code work under this section in, or with, or
|
339 |
+
specifically for use in, a User Product, and the conveying occurs as
|
340 |
+
part of a transaction in which the right of possession and use of the
|
341 |
+
User Product is transferred to the recipient in perpetuity or for a
|
342 |
+
fixed term (regardless of how the transaction is characterized), the
|
343 |
+
Corresponding Source conveyed under this section must be accompanied
|
344 |
+
by the Installation Information. But this requirement does not apply
|
345 |
+
if neither you nor any third party retains the ability to install
|
346 |
+
modified object code on the User Product (for example, the work has
|
347 |
+
been installed in ROM).
|
348 |
+
|
349 |
+
The requirement to provide Installation Information does not include a
|
350 |
+
requirement to continue to provide support service, warranty, or updates
|
351 |
+
for a work that has been modified or installed by the recipient, or for
|
352 |
+
the User Product in which it has been modified or installed. Access to a
|
353 |
+
network may be denied when the modification itself materially and
|
354 |
+
adversely affects the operation of the network or violates the rules and
|
355 |
+
protocols for communication across the network.
|
356 |
+
|
357 |
+
Corresponding Source conveyed, and Installation Information provided,
|
358 |
+
in accord with this section must be in a format that is publicly
|
359 |
+
documented (and with an implementation available to the public in
|
360 |
+
source code form), and must require no special password or key for
|
361 |
+
unpacking, reading or copying.
|
362 |
+
|
363 |
+
7. Additional Terms.
|
364 |
+
|
365 |
+
"Additional permissions" are terms that supplement the terms of this
|
366 |
+
License by making exceptions from one or more of its conditions.
|
367 |
+
Additional permissions that are applicable to the entire Program shall
|
368 |
+
be treated as though they were included in this License, to the extent
|
369 |
+
that they are valid under applicable law. If additional permissions
|
370 |
+
apply only to part of the Program, that part may be used separately
|
371 |
+
under those permissions, but the entire Program remains governed by
|
372 |
+
this License without regard to the additional permissions.
|
373 |
+
|
374 |
+
When you convey a copy of a covered work, you may at your option
|
375 |
+
remove any additional permissions from that copy, or from any part of
|
376 |
+
it. (Additional permissions may be written to require their own
|
377 |
+
removal in certain cases when you modify the work.) You may place
|
378 |
+
additional permissions on material, added by you to a covered work,
|
379 |
+
for which you have or can give appropriate copyright permission.
|
380 |
+
|
381 |
+
Notwithstanding any other provision of this License, for material you
|
382 |
+
add to a covered work, you may (if authorized by the copyright holders of
|
383 |
+
that material) supplement the terms of this License with terms:
|
384 |
+
|
385 |
+
a) Disclaiming warranty or limiting liability differently from the
|
386 |
+
terms of sections 15 and 16 of this License; or
|
387 |
+
|
388 |
+
b) Requiring preservation of specified reasonable legal notices or
|
389 |
+
author attributions in that material or in the Appropriate Legal
|
390 |
+
Notices displayed by works containing it; or
|
391 |
+
|
392 |
+
c) Prohibiting misrepresentation of the origin of that material, or
|
393 |
+
requiring that modified versions of such material be marked in
|
394 |
+
reasonable ways as different from the original version; or
|
395 |
+
|
396 |
+
d) Limiting the use for publicity purposes of names of licensors or
|
397 |
+
authors of the material; or
|
398 |
+
|
399 |
+
e) Declining to grant rights under trademark law for use of some
|
400 |
+
trade names, trademarks, or service marks; or
|
401 |
+
|
402 |
+
f) Requiring indemnification of licensors and authors of that
|
403 |
+
material by anyone who conveys the material (or modified versions of
|
404 |
+
it) with contractual assumptions of liability to the recipient, for
|
405 |
+
any liability that these contractual assumptions directly impose on
|
406 |
+
those licensors and authors.
|
407 |
+
|
408 |
+
All other non-permissive additional terms are considered "further
|
409 |
+
restrictions" within the meaning of section 10. If the Program as you
|
410 |
+
received it, or any part of it, contains a notice stating that it is
|
411 |
+
governed by this License along with a term that is a further
|
412 |
+
restriction, you may remove that term. If a license document contains
|
413 |
+
a further restriction but permits relicensing or conveying under this
|
414 |
+
License, you may add to a covered work material governed by the terms
|
415 |
+
of that license document, provided that the further restriction does
|
416 |
+
not survive such relicensing or conveying.
|
417 |
+
|
418 |
+
If you add terms to a covered work in accord with this section, you
|
419 |
+
must place, in the relevant source files, a statement of the
|
420 |
+
additional terms that apply to those files, or a notice indicating
|
421 |
+
where to find the applicable terms.
|
422 |
+
|
423 |
+
Additional terms, permissive or non-permissive, may be stated in the
|
424 |
+
form of a separately written license, or stated as exceptions;
|
425 |
+
the above requirements apply either way.
|
426 |
+
|
427 |
+
8. Termination.
|
428 |
+
|
429 |
+
You may not propagate or modify a covered work except as expressly
|
430 |
+
provided under this License. Any attempt otherwise to propagate or
|
431 |
+
modify it is void, and will automatically terminate your rights under
|
432 |
+
this License (including any patent licenses granted under the third
|
433 |
+
paragraph of section 11).
|
434 |
+
|
435 |
+
However, if you cease all violation of this License, then your
|
436 |
+
license from a particular copyright holder is reinstated (a)
|
437 |
+
provisionally, unless and until the copyright holder explicitly and
|
438 |
+
finally terminates your license, and (b) permanently, if the copyright
|
439 |
+
holder fails to notify you of the violation by some reasonable means
|
440 |
+
prior to 60 days after the cessation.
|
441 |
+
|
442 |
+
Moreover, your license from a particular copyright holder is
|
443 |
+
reinstated permanently if the copyright holder notifies you of the
|
444 |
+
violation by some reasonable means, this is the first time you have
|
445 |
+
received notice of violation of this License (for any work) from that
|
446 |
+
copyright holder, and you cure the violation prior to 30 days after
|
447 |
+
your receipt of the notice.
|
448 |
+
|
449 |
+
Termination of your rights under this section does not terminate the
|
450 |
+
licenses of parties who have received copies or rights from you under
|
451 |
+
this License. If your rights have been terminated and not permanently
|
452 |
+
reinstated, you do not qualify to receive new licenses for the same
|
453 |
+
material under section 10.
|
454 |
+
|
455 |
+
9. Acceptance Not Required for Having Copies.
|
456 |
+
|
457 |
+
You are not required to accept this License in order to receive or
|
458 |
+
run a copy of the Program. Ancillary propagation of a covered work
|
459 |
+
occurring solely as a consequence of using peer-to-peer transmission
|
460 |
+
to receive a copy likewise does not require acceptance. However,
|
461 |
+
nothing other than this License grants you permission to propagate or
|
462 |
+
modify any covered work. These actions infringe copyright if you do
|
463 |
+
not accept this License. Therefore, by modifying or propagating a
|
464 |
+
covered work, you indicate your acceptance of this License to do so.
|
465 |
+
|
466 |
+
10. Automatic Licensing of Downstream Recipients.
|
467 |
+
|
468 |
+
Each time you convey a covered work, the recipient automatically
|
469 |
+
receives a license from the original licensors, to run, modify and
|
470 |
+
propagate that work, subject to this License. You are not responsible
|
471 |
+
for enforcing compliance by third parties with this License.
|
472 |
+
|
473 |
+
An "entity transaction" is a transaction transferring control of an
|
474 |
+
organization, or substantially all assets of one, or subdividing an
|
475 |
+
organization, or merging organizations. If propagation of a covered
|
476 |
+
work results from an entity transaction, each party to that
|
477 |
+
transaction who receives a copy of the work also receives whatever
|
478 |
+
licenses to the work the party's predecessor in interest had or could
|
479 |
+
give under the previous paragraph, plus a right to possession of the
|
480 |
+
Corresponding Source of the work from the predecessor in interest, if
|
481 |
+
the predecessor has it or can get it with reasonable efforts.
|
482 |
+
|
483 |
+
You may not impose any further restrictions on the exercise of the
|
484 |
+
rights granted or affirmed under this License. For example, you may
|
485 |
+
not impose a license fee, royalty, or other charge for exercise of
|
486 |
+
rights granted under this License, and you may not initiate litigation
|
487 |
+
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
488 |
+
any patent claim is infringed by making, using, selling, offering for
|
489 |
+
sale, or importing the Program or any portion of it.
|
490 |
+
|
491 |
+
11. Patents.
|
492 |
+
|
493 |
+
A "contributor" is a copyright holder who authorizes use under this
|
494 |
+
License of the Program or a work on which the Program is based. The
|
495 |
+
work thus licensed is called the contributor's "contributor version".
|
496 |
+
|
497 |
+
A contributor's "essential patent claims" are all patent claims
|
498 |
+
owned or controlled by the contributor, whether already acquired or
|
499 |
+
hereafter acquired, that would be infringed by some manner, permitted
|
500 |
+
by this License, of making, using, or selling its contributor version,
|
501 |
+
but do not include claims that would be infringed only as a
|
502 |
+
consequence of further modification of the contributor version. For
|
503 |
+
purposes of this definition, "control" includes the right to grant
|
504 |
+
patent sublicenses in a manner consistent with the requirements of
|
505 |
+
this License.
|
506 |
+
|
507 |
+
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
508 |
+
patent license under the contributor's essential patent claims, to
|
509 |
+
make, use, sell, offer for sale, import and otherwise run, modify and
|
510 |
+
propagate the contents of its contributor version.
|
511 |
+
|
512 |
+
In the following three paragraphs, a "patent license" is any express
|
513 |
+
agreement or commitment, however denominated, not to enforce a patent
|
514 |
+
(such as an express permission to practice a patent or covenant not to
|
515 |
+
sue for patent infringement). To "grant" such a patent license to a
|
516 |
+
party means to make such an agreement or commitment not to enforce a
|
517 |
+
patent against the party.
|
518 |
+
|
519 |
+
If you convey a covered work, knowingly relying on a patent license,
|
520 |
+
and the Corresponding Source of the work is not available for anyone
|
521 |
+
to copy, free of charge and under the terms of this License, through a
|
522 |
+
publicly available network server or other readily accessible means,
|
523 |
+
then you must either (1) cause the Corresponding Source to be so
|
524 |
+
available, or (2) arrange to deprive yourself of the benefit of the
|
525 |
+
patent license for this particular work, or (3) arrange, in a manner
|
526 |
+
consistent with the requirements of this License, to extend the patent
|
527 |
+
license to downstream recipients. "Knowingly relying" means you have
|
528 |
+
actual knowledge that, but for the patent license, your conveying the
|
529 |
+
covered work in a country, or your recipient's use of the covered work
|
530 |
+
in a country, would infringe one or more identifiable patents in that
|
531 |
+
country that you have reason to believe are valid.
|
532 |
+
|
533 |
+
If, pursuant to or in connection with a single transaction or
|
534 |
+
arrangement, you convey, or propagate by procuring conveyance of, a
|
535 |
+
covered work, and grant a patent license to some of the parties
|
536 |
+
receiving the covered work authorizing them to use, propagate, modify
|
537 |
+
or convey a specific copy of the covered work, then the patent license
|
538 |
+
you grant is automatically extended to all recipients of the covered
|
539 |
+
work and works based on it.
|
540 |
+
|
541 |
+
A patent license is "discriminatory" if it does not include within
|
542 |
+
the scope of its coverage, prohibits the exercise of, or is
|
543 |
+
conditioned on the non-exercise of one or more of the rights that are
|
544 |
+
specifically granted under this License. You may not convey a covered
|
545 |
+
work if you are a party to an arrangement with a third party that is
|
546 |
+
in the business of distributing software, under which you make payment
|
547 |
+
to the third party based on the extent of your activity of conveying
|
548 |
+
the work, and under which the third party grants, to any of the
|
549 |
+
parties who would receive the covered work from you, a discriminatory
|
550 |
+
patent license (a) in connection with copies of the covered work
|
551 |
+
conveyed by you (or copies made from those copies), or (b) primarily
|
552 |
+
for and in connection with specific products or compilations that
|
553 |
+
contain the covered work, unless you entered into that arrangement,
|
554 |
+
or that patent license was granted, prior to 28 March 2007.
|
555 |
+
|
556 |
+
Nothing in this License shall be construed as excluding or limiting
|
557 |
+
any implied license or other defenses to infringement that may
|
558 |
+
otherwise be available to you under applicable patent law.
|
559 |
+
|
560 |
+
12. No Surrender of Others' Freedom.
|
561 |
+
|
562 |
+
If conditions are imposed on you (whether by court order, agreement or
|
563 |
+
otherwise) that contradict the conditions of this License, they do not
|
564 |
+
excuse you from the conditions of this License. If you cannot convey a
|
565 |
+
covered work so as to satisfy simultaneously your obligations under this
|
566 |
+
License and any other pertinent obligations, then as a consequence you may
|
567 |
+
not convey it at all. For example, if you agree to terms that obligate you
|
568 |
+
to collect a royalty for further conveying from those to whom you convey
|
569 |
+
the Program, the only way you could satisfy both those terms and this
|
570 |
+
License would be to refrain entirely from conveying the Program.
|
571 |
+
|
572 |
+
13. Use with the GNU Affero General Public License.
|
573 |
+
|
574 |
+
Notwithstanding any other provision of this License, you have
|
575 |
+
permission to link or combine any covered work with a work licensed
|
576 |
+
under version 3 of the GNU Affero General Public License into a single
|
577 |
+
combined work, and to convey the resulting work. The terms of this
|
578 |
+
License will continue to apply to the part which is the covered work,
|
579 |
+
but the special requirements of the GNU Affero General Public License,
|
580 |
+
section 13, concerning interaction through a network will apply to the
|
581 |
+
combination as such.
|
582 |
+
|
583 |
+
14. Revised Versions of this License.
|
584 |
+
|
585 |
+
The Free Software Foundation may publish revised and/or new versions of
|
586 |
+
the GNU General Public License from time to time. Such new versions will
|
587 |
+
be similar in spirit to the present version, but may differ in detail to
|
588 |
+
address new problems or concerns.
|
589 |
+
|
590 |
+
Each version is given a distinguishing version number. If the
|
591 |
+
Program specifies that a certain numbered version of the GNU General
|
592 |
+
Public License "or any later version" applies to it, you have the
|
593 |
+
option of following the terms and conditions either of that numbered
|
594 |
+
version or of any later version published by the Free Software
|
595 |
+
Foundation. If the Program does not specify a version number of the
|
596 |
+
GNU General Public License, you may choose any version ever published
|
597 |
+
by the Free Software Foundation.
|
598 |
+
|
599 |
+
If the Program specifies that a proxy can decide which future
|
600 |
+
versions of the GNU General Public License can be used, that proxy's
|
601 |
+
public statement of acceptance of a version permanently authorizes you
|
602 |
+
to choose that version for the Program.
|
603 |
+
|
604 |
+
Later license versions may give you additional or different
|
605 |
+
permissions. However, no additional obligations are imposed on any
|
606 |
+
author or copyright holder as a result of your choosing to follow a
|
607 |
+
later version.
|
608 |
+
|
609 |
+
15. Disclaimer of Warranty.
|
610 |
+
|
611 |
+
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
612 |
+
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
613 |
+
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
614 |
+
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
615 |
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
616 |
+
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
617 |
+
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
618 |
+
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
619 |
+
|
620 |
+
16. Limitation of Liability.
|
621 |
+
|
622 |
+
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
623 |
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
624 |
+
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
625 |
+
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
626 |
+
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
627 |
+
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
628 |
+
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
629 |
+
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
630 |
+
SUCH DAMAGES.
|
631 |
+
|
632 |
+
17. Interpretation of Sections 15 and 16.
|
633 |
+
|
634 |
+
If the disclaimer of warranty and limitation of liability provided
|
635 |
+
above cannot be given local legal effect according to their terms,
|
636 |
+
reviewing courts shall apply local law that most closely approximates
|
637 |
+
an absolute waiver of all civil liability in connection with the
|
638 |
+
Program, unless a warranty or assumption of liability accompanies a
|
639 |
+
copy of the Program in return for a fee.
|
640 |
+
|
641 |
+
END OF TERMS AND CONDITIONS
|
642 |
+
|
643 |
+
How to Apply These Terms to Your New Programs
|
644 |
+
|
645 |
+
If you develop a new program, and you want it to be of the greatest
|
646 |
+
possible use to the public, the best way to achieve this is to make it
|
647 |
+
free software which everyone can redistribute and change under these terms.
|
648 |
+
|
649 |
+
To do so, attach the following notices to the program. It is safest
|
650 |
+
to attach them to the start of each source file to most effectively
|
651 |
+
state the exclusion of warranty; and each file should have at least
|
652 |
+
the "copyright" line and a pointer to where the full notice is found.
|
653 |
+
|
654 |
+
<one line to give the program's name and a brief idea of what it does.>
|
655 |
+
Copyright © <year> <name of author>
|
656 |
+
|
657 |
+
This program is free software: you can redistribute it and/or modify
|
658 |
+
it under the terms of the GNU General Public License as published by
|
659 |
+
the Free Software Foundation, either version 3 of the License, or
|
660 |
+
(at your option) any later version.
|
661 |
+
|
662 |
+
This program is distributed in the hope that it will be useful,
|
663 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
664 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
665 |
+
GNU General Public License for more details.
|
666 |
+
|
667 |
+
You should have received a copy of the GNU General Public License
|
668 |
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
669 |
+
|
670 |
+
Also add information on how to contact you by electronic and paper mail.
|
671 |
+
|
672 |
+
If the program does terminal interaction, make it output a short
|
673 |
+
notice like this when it starts in an interactive mode:
|
674 |
+
|
675 |
+
<program> Copyright © <year> <name of author>
|
676 |
+
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
677 |
+
This is free software, and you are welcome to redistribute it
|
678 |
+
under certain conditions; type `show c' for details.
|
679 |
+
|
680 |
+
The hypothetical commands `show w' and `show c' should show the appropriate
|
681 |
+
parts of the General Public License. Of course, your program's commands
|
682 |
+
might be different; for a GUI interface, you would use an "about box".
|
683 |
+
|
684 |
+
You should also get your employer (if you work as a programmer) or school,
|
685 |
+
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
686 |
+
For more information on this, and how to apply and follow the GNU GPL, see
|
687 |
+
<https://www.gnu.org/licenses/>.
|
688 |
+
|
689 |
+
The GNU General Public License does not permit incorporating your program
|
690 |
+
into proprietary programs. If your program is a subroutine library, you
|
691 |
+
may consider it more useful to permit linking proprietary applications with
|
692 |
+
the library. If this is what you want to do, use the GNU Lesser General
|
693 |
+
Public License instead of this License. But first, please read
|
694 |
+
<https://www.gnu.org/philosophy/why-not-lgpl.html>.
|
README.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
|
3 |
Contributors: yithemes
|
4 |
Tags: zoom, magnifier, slider, carousel, woocommerce
|
5 |
-
Requires at least: 5.
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 1.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
Documentation: https://docs.yithemes.com/yith-woocommerce-zoom-magnifier/
|
@@ -52,6 +52,12 @@ YITH WooCommerce Zoom Magnifier will add a new tab called "Zoom Magnifier" in "Y
|
|
52 |
|
53 |
== Changelog ==
|
54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
= Version 1.3.23 - Released: Feb 18, 2021 =
|
56 |
|
57 |
* New: support for WooCommerce 5.0
|
2 |
|
3 |
Contributors: yithemes
|
4 |
Tags: zoom, magnifier, slider, carousel, woocommerce
|
5 |
+
Requires at least: 5.4
|
6 |
+
Tested up to: 5.7
|
7 |
+
Stable tag: 1.3.24
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
Documentation: https://docs.yithemes.com/yith-woocommerce-zoom-magnifier/
|
52 |
|
53 |
== Changelog ==
|
54 |
|
55 |
+
= Version 1.3.24 - Released: March 12, 2021 =
|
56 |
+
|
57 |
+
* New: Support for WooCommerce 5.1
|
58 |
+
* New: Support for WordPress 5.7
|
59 |
+
* Update: YITH Plugin Framework
|
60 |
+
|
61 |
= Version 1.3.23 - Released: Feb 18, 2021 =
|
62 |
|
63 |
* New: support for WooCommerce 5.0
|
assets/js/jquery.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function($){function sc_setScroll(t,e,s){return{anims:[],duration:t,orgDuration:t,easing:e="transition"==s.transition&&"swing"==e?"ease":e,startTime:getTime()}}function sc_startScroll(t,e){for(var s=0,i=t.anims.length;s<i;s++){var o=t.anims[s];o&&o[0][e.transition](o[1],t.duration,t.easing,o[2])}}function sc_stopScroll(t,e){is_boolean(e)||(e=!0),is_object(t.pre)&&sc_stopScroll(t.pre,e);for(var s=0,i=t.anims.length;s<i;s++){var o=t.anims[s];o[0].stop(!0),e&&(o[0].css(o[1]),is_function(o[2])&&o[2]())}is_object(t.post)&&sc_stopScroll(t.post,e)}function sc_afterScroll(t,e,s){switch(e&&e.remove(),s.fx){case"fade":case"crossfade":case"cover-fade":case"uncover-fade":t.css("opacity",1),t.css("filter","")}}function sc_fireCallbacks(t,e,s,i,o){if(e[s]&&e[s].call(t,i),o[s].length)for(var n=0,r=o[s].length;n<r;n++)o[s][n].call(t,i);return[]}function sc_fireQueue(t,e,s){return e.length&&(t.trigger(cf_e(e[0][0],s),e[0][1]),e.shift()),e}function sc_hideHiddenItems(t){t.each(function(){var t=$(this);t.data("_cfs_isHidden",t.is(":hidden")).hide()})}function sc_showHiddenItems(t){t&&t.each(function(){var t=$(this);t.data("_cfs_isHidden")||t.show()})}function sc_clearTimers(t){return t.auto&&clearTimeout(t.auto),t.progress&&clearInterval(t.progress),t}function sc_mapCallbackArguments(t,e,s,i,o,n,r){return{width:r.width,height:r.height,items:{old:t,skipped:e,visible:s},scroll:{items:i,direction:o,duration:n}}}function sc_getDuration(t,e,s,i){var o=t.duration;return"none"==t.fx?0:("auto"==o?o=e.scroll.duration/e.scroll.items*s:o<10&&(o=i/o),o<1?0:("fade"==t.fx&&(o/=2),Math.round(o)))}function nv_showNavi(t,e,s){var i=is_number(t.items.minimum)?t.items.minimum:t.items.visible+1,i="show"==(e="show"==e||"hide"==e?e:e<i?(debug(s,"Not enough items ("+e+" total, "+i+" needed): Hiding navigation."),"hide"):"show")?"removeClass":"addClass",s=cf_c("hidden",s);t.auto.button&&t.auto.button[e]()[i](s),t.prev.button&&t.prev.button[e]()[i](s),t.next.button&&t.next.button[e]()[i](s),t.pagination.container&&t.pagination.container[e]()[i](s)}function nv_enableNavi(t,e,s){var i,o;t.circular||t.infinite||(i=("removeClass"==e||"addClass"==e)&&e,s=cf_c("disabled",s),t.auto.button&&i&&t.auto.button[i](s),t.prev.button&&t.prev.button[o=i||0==e?"addClass":"removeClass"](s),t.next.button&&(o=i||e==t.items.visible?"addClass":"removeClass",t.next.button[o](s)))}function go_getObject(t,e){return is_function(e)?e=e.call(t):is_undefined(e)&&(e={}),e}function go_getItemsObject(t,e){return is_number(e=go_getObject(t,e))?e={visible:e}:"variable"==e?e={visible:e,width:e,height:e}:is_object(e)||(e={}),e}function go_getScrollObject(t,e){return is_number(e=go_getObject(t,e))?e=e<=50?{items:e}:{duration:e}:is_string(e)?e={easing:e}:is_object(e)||(e={}),e}function go_getNaviObject(t,e){return e=is_string(e=go_getObject(t,e))?-1==(t=cf_getKeyCode(e))?$(e):t:e}function go_getAutoObject(t,e){return is_jquery(e=go_getNaviObject(t,e))?e={button:e}:is_boolean(e)?e={play:e}:is_number(e)&&(e={timeoutDuration:e}),e.progress&&(is_string(e.progress)||is_jquery(e.progress))&&(e.progress={bar:e.progress}),e}function go_complementAutoObject(t,e){return is_function(e.button)&&(e.button=e.button.call(t)),is_string(e.button)&&(e.button=$(e.button)),is_boolean(e.play)||(e.play=!0),is_number(e.delay)||(e.delay=0),is_undefined(e.pauseOnEvent)&&(e.pauseOnEvent=!0),is_boolean(e.pauseOnResize)||(e.pauseOnResize=!0),is_number(e.timeoutDuration)||(e.timeoutDuration=e.duration<10?2500:5*e.duration),e.progress&&(is_function(e.progress.bar)&&(e.progress.bar=e.progress.bar.call(t)),is_string(e.progress.bar)&&(e.progress.bar=$(e.progress.bar)),e.progress.bar?(is_function(e.progress.updater)||(e.progress.updater=$.fn.carouFredSel.progressbarUpdater),is_number(e.progress.interval)||(e.progress.interval=50)):e.progress=!1),e}function go_getPrevNextObject(t,e){return is_jquery(e=go_getNaviObject(t,e))?e={button:e}:is_number(e)&&(e={key:e}),e}function go_complementPrevNextObject(t,e){return is_function(e.button)&&(e.button=e.button.call(t)),is_string(e.button)&&(e.button=$(e.button)),is_string(e.key)&&(e.key=cf_getKeyCode(e.key)),e}function go_getPaginationObject(t,e){return is_jquery(e=go_getNaviObject(t,e))?e={container:e}:is_boolean(e)&&(e={keys:e}),e}function go_complementPaginationObject(t,e){return is_function(e.container)&&(e.container=e.container.call(t)),is_string(e.container)&&(e.container=$(e.container)),is_number(e.items)||(e.items=!1),is_boolean(e.keys)||(e.keys=!1),is_function(e.anchorBuilder)||is_false(e.anchorBuilder)||(e.anchorBuilder=$.fn.carouFredSel.pageAnchorBuilder),is_number(e.deviation)||(e.deviation=0),e}function go_getSwipeObject(t,e){return is_true(e=is_undefined(e=is_function(e)?e.call(t):e)?{onTouch:!1}:e)?e={onTouch:e}:is_number(e)&&(e={items:e}),e}function go_complementSwipeObject(t,e){return is_boolean(e.onTouch)||(e.onTouch=!0),is_boolean(e.onMouse)||(e.onMouse=!1),is_object(e.options)||(e.options={}),is_boolean(e.options.triggerOnTouchEnd)||(e.options.triggerOnTouchEnd=!1),e}function go_getMousewheelObject(t,e){return is_true(e=is_function(e)?e.call(t):e)?e={}:is_number(e)?e={items:e}:is_undefined(e)&&(e=!1),e}function go_complementMousewheelObject(t,e){return e}function gn_getItemIndex(t,e,s,i,o){if(is_jquery(t=is_object(t=is_string(t)?$(t,o):t)?$(t,o):t)?(t=o.children().index(t),is_boolean(s)||(s=!1)):is_boolean(s)||(s=!0),is_number(t)||(t=0),is_number(e)||(e=0),s&&(t+=i.first),t+=e,0<i.total){for(;t>=i.total;)t-=i.total;for(;t<0;)t+=i.total}return t}function gn_getVisibleItemsPrev(t,e,s){for(var i=0,o=0,n=s;0<=n;n--){var r=t.eq(n);if((i+=r.is(":visible")?r[e.d.outerWidth](!0):0)>e.maxDimension)return o;0==n&&(n=t.length),o++}}function gn_getVisibleItemsPrevFilter(t,e,s){return gn_getItemsPrevFilter(t,e.items.filter,e.items.visibleConf.org,s)}function gn_getScrollItemsPrevFilter(t,e,s,i){return gn_getItemsPrevFilter(t,e.items.filter,i,s)}function gn_getItemsPrevFilter(t,e,s,i){for(var o=0,n=0,r=i,c=t.length;0<=r;r--){if(++n==c)return n;var a=t.eq(r);if(a.is(e)&&++o==s)return n;0==r&&(r=c)}}function gn_getVisibleOrg(t,e){return e.items.visibleConf.org||t.children().slice(0,e.items.visible).filter(e.items.filter).length}function gn_getVisibleItemsNext(t,e,s){for(var i=0,o=0,n=s,r=t.length-1;n<=r;n++){var c=t.eq(n);if((i+=c.is(":visible")?c[e.d.outerWidth](!0):0)>e.maxDimension)return o;if(++o==1+r)return o;n==r&&(n=-1)}}function gn_getVisibleItemsNextTestCircular(t,e,s,i){t=gn_getVisibleItemsNext(t,e,s);return e.circular||i<s+t&&(t=i-s),t}function gn_getVisibleItemsNextFilter(t,e,s){return gn_getItemsNextFilter(t,e.items.filter,e.items.visibleConf.org,s,e.circular)}function gn_getScrollItemsNextFilter(t,e,s,i){return gn_getItemsNextFilter(t,e.items.filter,i+1,s,e.circular)-1}function gn_getItemsNextFilter(t,e,s,i,o){for(var n=0,r=0,c=i,a=t.length-1;c<=a;c++){if(a<=++r)return r;var f=t.eq(c);if(f.is(e)&&++n==s)return r;c==a&&(c=-1)}}function gi_getCurrentItems(t,e){return t.slice(0,e.items.visible)}function gi_getOldItemsPrev(t,e,s){return t.slice(s,e.items.visibleConf.old+s)}function gi_getNewItemsPrev(t,e){return t.slice(0,e.items.visible)}function gi_getOldItemsNext(t,e){return t.slice(0,e.items.visibleConf.old)}function gi_getNewItemsNext(t,e,s){return t.slice(s,e.items.visible+s)}function sz_storeMargin(t,s,i){s.usePadding&&(is_string(i)||(i="_cfs_origCssMargin"),t.each(function(){var t=$(this),e=parseInt(t.css(s.d.marginRight),10);is_number(e)||(e=0),t.data(i,e)}))}function sz_resetMargin(t,e,s){var i;e.usePadding&&(i=!!is_boolean(s)&&s,is_number(s)||(s=0),sz_storeMargin(t,e,"_cfs_tempCssMargin"),t.each(function(){var t=$(this);t.css(e.d.marginRight,i?t.data("_cfs_tempCssMargin"):s+t.data("_cfs_origCssMargin"))}))}function sz_storeOrigCss(t){t.each(function(){var t=$(this);t.data("_cfs_origCss",t.attr("style")||"")})}function sz_restoreOrigCss(t){t.each(function(){var t=$(this);t.attr("style",t.data("_cfs_origCss")||"")})}function sz_setResponsiveSizes(s,t){s.items.visible;var i=s.items[s.d.width],o=s[s.d.height],n=is_percentage(o);t.each(function(){var t=$(this),e=i-ms_getPaddingBorderMargin(t,s,"Width");t[s.d.width](e),n&&t[s.d.height](ms_getPercentage(e,o))})}function sz_setSizes(t,e){var s,i=t.parent(),o=t.children(),n=gi_getCurrentItems(o,e),r=cf_mapWrapperSizes(ms_getSizes(n,e,!0),e,!1);return i.css(r),e.usePadding&&(i=(s=e.padding)[e.d[1]],e.align&&i<0&&(i=0),(n=n.last()).css(e.d.marginRight,n.data("_cfs_origCssMargin")+i),t.css(e.d.top,s[e.d[0]]),t.css(e.d.left,s[e.d[3]])),t.css(e.d.width,r[e.d.width]+2*ms_getTotalSize(o,e,"width")),t.css(e.d.height,ms_getLargestSize(o,e,"height")),r}function ms_getSizes(t,e,s){return[ms_getTotalSize(t,e,"width",s),ms_getLargestSize(t,e,"height",s)]}function ms_getLargestSize(t,e,s,i){return is_boolean(i)||(i=!1),is_number(e[e.d[s]])&&i?e[e.d[s]]:is_number(e.items[e.d[s]])?e.items[e.d[s]]:ms_getTrueLargestSize(t,e,s=-1<s.toLowerCase().indexOf("width")?"outerWidth":"outerHeight")}function ms_getTrueLargestSize(t,e,s){for(var i=0,o=0,n=t.length;o<n;o++){var r=t.eq(o),r=r.is(":visible")?r[e.d[s]](!0):0;i<r&&(i=r)}return i}function ms_getTotalSize(t,e,s,i){if(is_boolean(i)||(i=!1),is_number(e[e.d[s]])&&i)return e[e.d[s]];if(is_number(e.items[e.d[s]]))return e.items[e.d[s]]*t.length;for(var o=-1<s.toLowerCase().indexOf("width")?"outerWidth":"outerHeight",n=0,r=0,c=t.length;r<c;r++){var a=t.eq(r);n+=a.is(":visible")?a[e.d[o]](!0):0}return n}function ms_getParentSize(t,e,s){var i=t.is(":visible");i&&t.hide();s=t.parent()[e.d[s]]();return i&&t.show(),s}function ms_getMaxDimension(t,e){return is_number(t[t.d.width])?t[t.d.width]:e}function ms_hasVariableSizes(t,e,s){for(var i=!1,o=!1,n=0,r=t.length;n<r;n++){var c=t.eq(n),c=c.is(":visible")?c[e.d[s]](!0):0;!1===i?i=c:i!=c&&(o=!0),0==i&&(o=!0)}return o}function ms_getPaddingBorderMargin(t,e,s){return t[e.d["outer"+s]](!0)-t[e.d[s.toLowerCase()]]()}function ms_getPercentage(t,e){if(is_percentage(e)){if(!is_number(e=parseInt(e.slice(0,-1),10)))return t;t*=e/100}return t}function cf_e(t,e,s,i,o){return is_boolean(s)||(s=!0),is_boolean(i)||(i=!0),is_boolean(o)||(o=!1),s&&(t=e.events.prefix+t),i&&(t=t+"."+e.events.namespace),i&&o&&(t+=e.serialNumber),t}function cf_c(t,e){return is_string(e.classnames[t])?e.classnames[t]:t}function cf_mapWrapperSizes(t,e,s){is_boolean(s)||(s=!0);var i=e.usePadding&&s?e.padding:[0,0,0,0],s={};return s[e.d.width]=t[0]+i[1]+i[3],s[e.d.height]=t[1]+i[0]+i[2],s}function cf_sortParams(t,e){for(var s=[],i=0,o=t.length;i<o;i++)for(var n=0,r=e.length;n<r;n++)if(-1<e[n].indexOf(typeof t[i])&&is_undefined(s[n])){s[n]=t[i];break}return s}function cf_getPadding(t){if(is_undefined(t))return[0,0,0,0];if(is_number(t))return[t,t,t,t];if(!is_array(t=is_string(t)?t.split("px").join("").split("em").join("").split(" "):t))return[0,0,0,0];for(var e=0;e<4;e++)t[e]=parseInt(t[e],10);switch(t.length){case 0:return[0,0,0,0];case 1:return[t[0],t[0],t[0],t[0]];case 2:return[t[0],t[1],t[0],t[1]];case 3:return[t[0],t[1],t[2],t[1]];default:return[t[0],t[1],t[2],t[3]]}}function cf_getAlignPadding(t,e){var s=is_number(e[e.d.width])?Math.ceil(e[e.d.width]-ms_getTotalSize(t,e,"width")):0;switch(e.align){case"left":return[0,s];case"right":return[s,0];case"center":default:return[Math.ceil(s/2),Math.floor(s/2)]}}function cf_getDimensions(t){for(var e=[["width","innerWidth","outerWidth","height","innerHeight","outerHeight","left","top","marginRight",0,1,2,3],["height","innerHeight","outerHeight","width","innerWidth","outerWidth","top","left","marginBottom",3,2,1,0]],s=e[0].length,i="right"==t.direction||"left"==t.direction?0:1,o={},n=0;n<s;n++)o[e[0][n]]=e[i][n];return o}function cf_getAdjust(t,e,s,i){var o=t;if(is_function(s))o=s.call(i,o);else if(is_string(s)){var n,r,i=s.split("+"),s=s.split("-");switch(i=s.length>i.length?(n=!0,r=s[0],s[1]):(n=!1,r=i[0],i[1]),r){case"even":o=t%2==1?t-1:t;break;case"odd":o=t%2==0?t-1:t;break;default:o=t}is_number(i=parseInt(i,10))&&(o+=i=n?-i:i)}return o=!is_number(o)||o<1?1:o}function cf_getItemsAdjust(t,e,s,i){return cf_getItemAdjustMinMax(cf_getAdjust(t,e,s,i),e.items.visibleConf)}function cf_getItemAdjustMinMax(t,e){return is_number(e.min)&&t<e.min&&(t=e.min),t=(t=is_number(e.max)&&t>e.max?e.max:t)<1?1:t}function cf_getSynchArr(t){is_array(t)||(t=[[t]]);for(var e=0,s=(t=!is_array(t[0])?[t]:t).length;e<s;e++)is_string(t[e][0])&&(t[e][0]=$(t[e][0])),is_boolean(t[e][1])||(t[e][1]=!0),is_boolean(t[e][2])||(t[e][2]=!0),is_number(t[e][3])||(t[e][3]=0);return t}function cf_getKeyCode(t){return"right"==t?39:"left"==t?37:"up"==t?38:"down"==t?40:-1}function cf_setCookie(t,e,s){t&&(s=e.triggerHandler(cf_e("currentPosition",s)),$.fn.carouFredSel.cookie.set(t,s))}function cf_getCookie(t){t=$.fn.carouFredSel.cookie.get(t);return""==t?0:t}function in_mapCss(t,e){for(var s={},i=0,o=e.length;i<o;i++)s[e[i]]=t.css(e[i]);return s}function in_complementItems(t,e,s,i){return is_object(t.visibleConf)||(t.visibleConf={}),is_object(t.sizesConf)||(t.sizesConf={}),0==t.start&&is_number(i)&&(t.start=i),is_object(t.visible)?(t.visibleConf.min=t.visible.min,t.visibleConf.max=t.visible.max,t.visible=!1):is_string(t.visible)?("variable"==t.visible?t.visibleConf.variable=!0:t.visibleConf.adjust=t.visible,t.visible=!1):is_function(t.visible)&&(t.visibleConf.adjust=t.visible,t.visible=!1),is_string(t.filter)||(t.filter=0<s.filter(":hidden").length?":visible":"*"),t[e.d.width]||(e.responsive?(debug(!0,"Set a "+e.d.width+" for the items!"),t[e.d.width]=ms_getTrueLargestSize(s,e,"outerWidth")):t[e.d.width]=ms_hasVariableSizes(s,e,"outerWidth")?"variable":s[e.d.outerWidth](!0)),t[e.d.height]||(t[e.d.height]=ms_hasVariableSizes(s,e,"outerHeight")?"variable":s[e.d.outerHeight](!0)),t.sizesConf.width=t.width,t.sizesConf.height=t.height,t}function in_complementVisibleItems(t,e){return"variable"==t.items[t.d.width]&&(t.items.visibleConf.variable=!0),t.items.visibleConf.variable||(is_number(t[t.d.width])?t.items.visible=Math.floor(t[t.d.width]/t.items[t.d.width]):(t.items.visible=Math.floor(e/t.items[t.d.width]),t[t.d.width]=t.items.visible*t.items[t.d.width],t.items.visibleConf.adjust||(t.align=!1)),("Infinity"==t.items.visible||t.items.visible<1)&&(debug(!0,'Not a valid number of visible items: Set to "variable".'),t.items.visibleConf.variable=!0)),t}function in_complementPrimarySize(t,e,s){return t="auto"==t?ms_getTrueLargestSize(s,e,"outerWidth"):t}function in_complementSecondarySize(t,e,s){return t=(t="auto"==t?ms_getTrueLargestSize(s,e,"outerHeight"):t)||e.items[e.d.height]}function in_getAlignPadding(t,e){e=cf_getAlignPadding(gi_getCurrentItems(e,t),t);return t.padding[t.d[1]]=e[1],t.padding[t.d[3]]=e[0],t}function in_getResponsiveValues(t,e,s){var i=cf_getItemAdjustMinMax(Math.ceil(t[t.d.width]/t.items[t.d.width]),t.items.visibleConf);i>e.length&&(i=e.length);e=Math.floor(t[t.d.width]/i);return t.items.visible=i,t.items[t.d.width]=e,t[t.d.width]=i*e,t}function bt_pauseOnHoverConfig(t){var e,s;return is_string(t)?(s=-1<t.indexOf("immediate"),e=-1<t.indexOf("resume")):s=e=!1,[s,e]}function bt_mousesheelNumber(t){return is_number(t)&&t}function is_null(t){return null===t}function is_undefined(t){return is_null(t)||void 0===t||""===t||"undefined"===t}function is_array(t){return t instanceof Array}function is_jquery(t){return t instanceof jQuery}function is_object(t){return(t instanceof Object||"object"==typeof t)&&!is_null(t)&&!is_jquery(t)&&!is_array(t)&&!is_function(t)}function is_number(t){return(t instanceof Number||"number"==typeof t)&&!isNaN(t)}function is_string(t){return(t instanceof String||"string"==typeof t)&&!is_undefined(t)&&!is_true(t)&&!is_false(t)}function is_function(t){return t instanceof Function||"function"==typeof t}function is_boolean(t){return t instanceof Boolean||"boolean"==typeof t||is_true(t)||is_false(t)}function is_true(t){return!0===t||"true"===t}function is_false(t){return!1===t||"false"===t}function is_percentage(t){return is_string(t)&&"%"==t.slice(-1)}function getTime(){return(new Date).getTime()}function deprecated(t,e){debug(!0,t+" is DEPRECATED, support for it will be removed. Use "+e+" instead.")}function debug(t,e){if(!is_undefined(window.console)&&!is_undefined(window.console.log)){var s;if(is_object(t)?(s=" ("+t.selector+")",t=t.debug):s="",!t)return!1;e=is_string(e)?"carouFredSel"+s+": "+e:["carouFredSel"+s+":",e],window.console.log(e)}return!1}$.fn.carouFredSel||($.fn.caroufredsel=$.fn.carouFredSel=function(options,configs){if(0==this.length)return debug(!0,'No element found for "'+this.selector+'".'),this;if(1<this.length)return this.each(function(){$(this).carouFredSel(options,configs)});var $cfs=this,$tt0=this[0],starting_position=!1;$cfs.data("_cfs_isCarousel")&&(starting_position=$cfs.triggerHandler("_cfs_triggerEvent","currentPosition"),$cfs.trigger("_cfs_triggerEvent",["destroy",!0]));var FN={_init:function(t,e,s){(t=go_getObject($tt0,t)).items=go_getItemsObject($tt0,t.items),t.scroll=go_getScrollObject($tt0,t.scroll),t.auto=go_getAutoObject($tt0,t.auto),t.prev=go_getPrevNextObject($tt0,t.prev),t.next=go_getPrevNextObject($tt0,t.next),t.pagination=go_getPaginationObject($tt0,t.pagination),t.swipe=go_getSwipeObject($tt0,t.swipe),t.mousewheel=go_getMousewheelObject($tt0,t.mousewheel),e&&(opts_orig=$.extend(!0,{},$.fn.carouFredSel.defaults,t)),(opts=$.extend(!0,{},$.fn.carouFredSel.defaults,t)).d=cf_getDimensions(opts),crsl.direction="up"==opts.direction||"left"==opts.direction?"next":"prev";var i=$cfs.children(),t=ms_getParentSize($wrp,opts,"width");if(is_true(opts.cookie)&&(opts.cookie="caroufredsel_cookie_"+conf.serialNumber),opts.maxDimension=ms_getMaxDimension(opts,t),opts.items=in_complementItems(opts.items,opts,i,s),opts[opts.d.width]=in_complementPrimarySize(opts[opts.d.width],opts,i),opts[opts.d.height]=in_complementSecondarySize(opts[opts.d.height],opts,i),opts.responsive&&(is_percentage(opts[opts.d.width])||(opts[opts.d.width]="100%")),is_percentage(opts[opts.d.width])&&(crsl.upDateOnWindowResize=!0,crsl.primarySizePercentage=opts[opts.d.width],opts[opts.d.width]=ms_getPercentage(t,crsl.primarySizePercentage),opts.items.visible||(opts.items.visibleConf.variable=!0)),opts.responsive?(opts.usePadding=!1,opts.padding=[0,0,0,0],opts.align=!1,opts.items.visibleConf.variable=!1):((opts=!opts.items.visible?in_complementVisibleItems(opts,t):opts)[opts.d.width]||(!opts.items.visibleConf.variable&&is_number(opts.items[opts.d.width])&&"*"==opts.items.filter?(opts[opts.d.width]=opts.items.visible*opts.items[opts.d.width],opts.align=!1):opts[opts.d.width]="variable"),is_undefined(opts.align)&&(opts.align=!!is_number(opts[opts.d.width])&&"center"),opts.items.visibleConf.variable&&(opts.items.visible=gn_getVisibleItemsNext(i,opts,0))),"*"==opts.items.filter||opts.items.visibleConf.variable||(opts.items.visibleConf.org=opts.items.visible,opts.items.visible=gn_getVisibleItemsNextFilter(i,opts,0)),opts.items.visible=cf_getItemsAdjust(opts.items.visible,opts,opts.items.visibleConf.adjust,$tt0),opts.items.visibleConf.old=opts.items.visible,opts.responsive)opts.items.visibleConf.min||(opts.items.visibleConf.min=opts.items.visible),opts.items.visibleConf.max||(opts.items.visibleConf.max=opts.items.visible),opts=in_getResponsiveValues(opts,i,t);else switch(opts.padding=cf_getPadding(opts.padding),"top"==opts.align?opts.align="left":"bottom"==opts.align&&(opts.align="right"),opts.align){case"center":case"left":case"right":"variable"!=opts[opts.d.width]&&((opts=in_getAlignPadding(opts,i)).usePadding=!0);break;default:opts.align=!1,opts.usePadding=0!=opts.padding[0]||0!=opts.padding[1]||0!=opts.padding[2]||0!=opts.padding[3]}is_number(opts.scroll.duration)||(opts.scroll.duration=500),is_undefined(opts.scroll.items)&&(opts.scroll.items=opts.responsive||opts.items.visibleConf.variable||"*"!=opts.items.filter?"visible":opts.items.visible),opts.auto=$.extend(!0,{},opts.scroll,opts.auto),opts.prev=$.extend(!0,{},opts.scroll,opts.prev),opts.next=$.extend(!0,{},opts.scroll,opts.next),opts.pagination=$.extend(!0,{},opts.scroll,opts.pagination),opts.auto=go_complementAutoObject($tt0,opts.auto),opts.prev=go_complementPrevNextObject($tt0,opts.prev),opts.next=go_complementPrevNextObject($tt0,opts.next),opts.pagination=go_complementPaginationObject($tt0,opts.pagination),opts.swipe=go_complementSwipeObject($tt0,opts.swipe),opts.mousewheel=go_complementMousewheelObject($tt0,opts.mousewheel),opts.synchronise&&(opts.synchronise=cf_getSynchArr(opts.synchronise)),opts.auto.onPauseStart&&(opts.auto.onTimeoutStart=opts.auto.onPauseStart,deprecated("auto.onPauseStart","auto.onTimeoutStart")),opts.auto.onPausePause&&(opts.auto.onTimeoutPause=opts.auto.onPausePause,deprecated("auto.onPausePause","auto.onTimeoutPause")),opts.auto.onPauseEnd&&(opts.auto.onTimeoutEnd=opts.auto.onPauseEnd,deprecated("auto.onPauseEnd","auto.onTimeoutEnd")),opts.auto.pauseDuration&&(opts.auto.timeoutDuration=opts.auto.pauseDuration,deprecated("auto.pauseDuration","auto.timeoutDuration"))},_build:function(){$cfs.data("_cfs_isCarousel",!0);var t=$cfs.children(),e=in_mapCss($cfs,["textAlign","float","position","top","right","bottom","left","zIndex","width","height","marginTop","marginRight","marginBottom","marginLeft"]),s="relative";switch(e.position){case"absolute":case"fixed":s=e.position}"parent"==conf.wrapper?sz_storeOrigCss($wrp):$wrp.css(e),$wrp.css({overflow:"hidden",position:s}),sz_storeOrigCss($cfs),$cfs.data("_cfs_origCssZindex",e.zIndex),$cfs.css({textAlign:"left","float":"none",position:"absolute",top:0,right:"auto",bottom:"auto",left:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0}),sz_storeMargin(t,opts),sz_storeOrigCss(t),opts.responsive&&sz_setResponsiveSizes(opts,t)},_bind_events:function(){FN._unbind_events(),$cfs.bind(cf_e("stop",conf),function(t,e){return t.stopPropagation(),crsl.isStopped||opts.auto.button&&opts.auto.button.addClass(cf_c("stopped",conf)),crsl.isStopped=!0,opts.auto.play&&(opts.auto.play=!1,$cfs.trigger(cf_e("pause",conf),e)),!0}),$cfs.bind(cf_e("finish",conf),function(t){return t.stopPropagation(),crsl.isScrolling&&sc_stopScroll(scrl),!0}),$cfs.bind(cf_e("pause",conf),function(t,e,s){var i;return t.stopPropagation(),tmrs=sc_clearTimers(tmrs),e&&crsl.isScrolling&&(scrl.isStopped=!0,i=getTime()-scrl.startTime,scrl.duration-=i,scrl.pre&&(scrl.pre.duration-=i),scrl.post&&(scrl.post.duration-=i),sc_stopScroll(scrl,!1)),crsl.isPaused||crsl.isScrolling||s&&(tmrs.timePassed+=getTime()-tmrs.startTime),crsl.isPaused||opts.auto.button&&opts.auto.button.addClass(cf_c("paused",conf)),crsl.isPaused=!0,opts.auto.onTimeoutPause&&(i=opts.auto.timeoutDuration-tmrs.timePassed,s=100-Math.ceil(100*i/opts.auto.timeoutDuration),opts.auto.onTimeoutPause.call($tt0,s,i)),!0}),$cfs.bind(cf_e("play",conf),function(t,e,s,i){t.stopPropagation(),tmrs=sc_clearTimers(tmrs);var o=cf_sortParams([e,s,i],["string","number","boolean"]);if(e=o[0],s=o[1],i=o[2],"prev"!=e&&"next"!=e&&(e=crsl.direction),is_number(s)||(s=0),(i=!is_boolean(i)?!1:i)&&(crsl.isStopped=!1,opts.auto.play=!0),!opts.auto.play)return t.stopImmediatePropagation(),debug(conf,"Carousel stopped: Not scrolling.");crsl.isPaused&&opts.auto.button&&(opts.auto.button.removeClass(cf_c("stopped",conf)),opts.auto.button.removeClass(cf_c("paused",conf))),crsl.isPaused=!1,tmrs.startTime=getTime();var n=opts.auto.timeoutDuration+s;return dur2=n-tmrs.timePassed,perc=100-Math.ceil(100*dur2/n),opts.auto.progress&&(tmrs.progress=setInterval(function(){var t=getTime()-tmrs.startTime+tmrs.timePassed,t=Math.ceil(100*t/n);opts.auto.progress.updater.call(opts.auto.progress.bar[0],t)},opts.auto.progress.interval)),tmrs.auto=setTimeout(function(){opts.auto.progress&&opts.auto.progress.updater.call(opts.auto.progress.bar[0],100),opts.auto.onTimeoutEnd&&opts.auto.onTimeoutEnd.call($tt0,perc,dur2),crsl.isScrolling?$cfs.trigger(cf_e("play",conf),e):$cfs.trigger(cf_e(e,conf),opts.auto)},dur2),opts.auto.onTimeoutStart&&opts.auto.onTimeoutStart.call($tt0,perc,dur2),!0}),$cfs.bind(cf_e("resume",conf),function(t){return t.stopPropagation(),scrl.isStopped?(scrl.isStopped=!1,crsl.isPaused=!1,crsl.isScrolling=!0,scrl.startTime=getTime(),sc_startScroll(scrl,conf)):$cfs.trigger(cf_e("play",conf)),!0}),$cfs.bind(cf_e("prev",conf)+" "+cf_e("next",conf),function(t,e,s,i,o){if(t.stopPropagation(),crsl.isStopped||$cfs.is(":hidden"))return t.stopImmediatePropagation(),debug(conf,"Carousel stopped or hidden: Not scrolling.");var n=is_number(opts.items.minimum)?opts.items.minimum:opts.items.visible+1;if(n>itms.total)return t.stopImmediatePropagation(),debug(conf,"Not enough items ("+itms.total+" total, "+n+" needed): Not scrolling.");e=(a=cf_sortParams([e,s,i,o],["object","number/string","function","boolean"]))[0],s=a[1],i=a[2],o=a[3];var r=t.type.slice(conf.events.prefix.length);if(is_object(e)||(e={}),is_function(i)&&(e.onAfter=i),is_boolean(o)&&(e.queue=o),(e=$.extend(!0,{},opts[r],e)).conditions&&!e.conditions.call($tt0,r))return t.stopImmediatePropagation(),debug(conf,'Callback "conditions" returned false.');if(!is_number(s)){if("*"!=opts.items.filter)s="visible";else for(var c=[s,e.items,opts[r].items],a=0,f=c.length;a<f;a++)if(is_number(c[a])||"page"==c[a]||"visible"==c[a]){s=c[a];break}switch(s){case"page":return t.stopImmediatePropagation(),$cfs.triggerHandler(cf_e(r+"Page",conf),[e,i]);case"visible":opts.items.visibleConf.variable||"*"!=opts.items.filter||(s=opts.items.visible)}}if(scrl.isStopped)return $cfs.trigger(cf_e("resume",conf)),$cfs.trigger(cf_e("queue",conf),[r,[e,s,i]]),t.stopImmediatePropagation(),debug(conf,"Carousel resumed scrolling.");if(0<e.duration&&crsl.isScrolling)return e.queue&&("last"==e.queue&&(queu=[]),"first"==e.queue&&0!=queu.length||$cfs.trigger(cf_e("queue",conf),[r,[e,s,i]])),t.stopImmediatePropagation(),debug(conf,"Carousel currently scrolling.");if(tmrs.timePassed=0,$cfs.trigger(cf_e("slide_"+r,conf),[e,s]),opts.synchronise)for(var l=opts.synchronise,u=[e,s],p=0,f=l.length;p<f;p++){var d=r;l[p][2]||(d="prev"==d?"next":"prev"),l[p][1]||(u[0]=l[p][0].triggerHandler("_cfs_triggerEvent",["configuration",d])),u[1]=s+l[p][3],l[p][0].trigger("_cfs_triggerEvent",["slide_"+d,u])}return!0}),$cfs.bind(cf_e("slide_prev",conf),function(t,e,s){t.stopPropagation();var i=$cfs.children();if(!opts.circular&&0==itms.first)return opts.infinite&&$cfs.trigger(cf_e("next",conf),itms.total-1),t.stopImmediatePropagation();if(sz_resetMargin(i,opts),is_number(s)||(s=cf_getAdjust(s=opts.items.visibleConf.variable?gn_getVisibleItemsPrev(i,opts,itms.total-1):"*"!=opts.items.filter?(p=is_number(e.items)?e.items:gn_getVisibleOrg($cfs,opts),gn_getScrollItemsPrevFilter(i,opts,itms.total-1,p)):opts.items.visible,opts,e.items,$tt0)),opts.circular||itms.total-s<itms.first&&(s=itms.total-itms.first),opts.items.visibleConf.old=opts.items.visible,opts.items.visibleConf.variable?(g=cf_getItemsAdjust(gn_getVisibleItemsNext(i,opts,itms.total-s),opts,opts.items.visibleConf.adjust,$tt0),opts.items.visible+s<=g&&s<itms.total&&(g=cf_getItemsAdjust(gn_getVisibleItemsNext(i,opts,itms.total-++s),opts,opts.items.visibleConf.adjust,$tt0)),opts.items.visible=g):"*"!=opts.items.filter&&(g=gn_getVisibleItemsNextFilter(i,opts,itms.total-s),opts.items.visible=cf_getItemsAdjust(g,opts,opts.items.visibleConf.adjust,$tt0)),sz_resetMargin(i,opts,!0),0==s)return t.stopImmediatePropagation(),debug(conf,"0 items to scroll: Not scrolling.");for(debug(conf,"Scrolling "+s+" items backward."),itms.first+=s;itms.first>=itms.total;)itms.first-=itms.total;opts.circular||(0==itms.first&&e.onEnd&&e.onEnd.call($tt0,"prev"),opts.infinite||nv_enableNavi(opts,itms.first,conf)),$cfs.children().slice(itms.total-s,itms.total).prependTo($cfs),itms.total<opts.items.visible+s&&$cfs.children().slice(0,opts.items.visible+s-itms.total).clone(!0).appendTo($cfs);var o=gi_getOldItemsPrev(i=$cfs.children(),opts,s),n=gi_getNewItemsPrev(i,opts),r=i.eq(s-1),c=o.last(),a=n.last();sz_resetMargin(i,opts);var f=0,l=0;opts.align&&(f=(x=cf_getAlignPadding(n,opts))[0],l=x[1]);var u,p=f<0?opts.padding[opts.d[3]]:0,d=!1,g=$();opts.items.visible<s&&(g=i.slice(opts.items.visibleConf.old,s),"directscroll"==e.fx&&(u=opts.items[opts.d.width],r=a,sc_hideHiddenItems(d=g),opts.items[opts.d.width]="variable"));var m=!1,t=ms_getTotalSize(i.slice(0,s),opts,"width"),_=cf_mapWrapperSizes(ms_getSizes(n,opts,!0),opts,!opts.usePadding),b=0,v={},h={},w={},P={},C={},x={},S={},y=sc_getDuration(e,opts,s,t);switch(e.fx){case"cover":case"cover-fade":b=ms_getTotalSize(i.slice(0,opts.items.visible),opts,"width")}d&&(opts.items[opts.d.width]=u),sz_resetMargin(i,opts,!0),0<=l&&sz_resetMargin(c,opts,opts.padding[opts.d[1]]),0<=f&&sz_resetMargin(r,opts,opts.padding[opts.d[3]]),opts.align&&(opts.padding[opts.d[1]]=l,opts.padding[opts.d[3]]=f),x[opts.d.left]=-(t-p),S[opts.d.left]=-(b-p),h[opts.d.left]=_[opts.d.width];var I=function(){},z=function(){},j=function(){},k=function(){},N=function(){},O=function(){},T=function(){},M=function(){};switch(e.fx){case"crossfade":case"cover":case"cover-fade":case"uncover":case"uncover-fade":m=$cfs.clone(!0).appendTo($wrp)}switch(e.fx){case"crossfade":case"uncover":case"uncover-fade":m.children().slice(0,s).remove(),m.children().slice(opts.items.visibleConf.old).remove();break;case"cover":case"cover-fade":m.children().slice(opts.items.visible).remove(),m.css(S)}if($cfs.css(x),scrl=sc_setScroll(y,e.easing,conf),v[opts.d.left]=opts.usePadding?opts.padding[opts.d[3]]:0,"variable"!=opts[opts.d.width]&&"variable"!=opts[opts.d.height]||(I=function(){$wrp.css(_)},z=function(){scrl.anims.push([$wrp,_])}),opts.usePadding){switch(a.not(r).length&&(w[opts.d.marginRight]=r.data("_cfs_origCssMargin"),f<0?r.css(w):(T=function(){r.css(w)},M=function(){scrl.anims.push([r,w])})),e.fx){case"cover":case"cover-fade":m.children().eq(s-1).css(w)}a.not(c).length&&(P[opts.d.marginRight]=c.data("_cfs_origCssMargin"),j=function(){c.css(P)},k=function(){scrl.anims.push([c,P])}),0<=l&&(C[opts.d.marginRight]=a.data("_cfs_origCssMargin")+opts.padding[opts.d[1]],N=function(){a.css(C)},O=function(){scrl.anims.push([a,C])})}var A=function(){$cfs.css(v)},F=opts.items.visible+s-itms.total,H=function(){var t;0<F&&($cfs.children().slice(itms.total).remove(),o=$($cfs.children().slice(itms.total-(opts.items.visible-F)).get().concat($cfs.children().slice(0,F).get()))),sc_showHiddenItems(d),opts.usePadding&&(t=$cfs.children().eq(opts.items.visible+s-1)).css(opts.d.marginRight,t.data("_cfs_origCssMargin"))},q=sc_mapCallbackArguments(o,g,n,s,"prev",y,_),D=function(){sc_afterScroll($cfs,m,e),crsl.isScrolling=!1,clbk.onAfter=sc_fireCallbacks($tt0,e,"onAfter",q,clbk),queu=sc_fireQueue($cfs,queu,conf),crsl.isPaused||$cfs.trigger(cf_e("play",conf))};switch(crsl.isScrolling=!0,tmrs=sc_clearTimers(tmrs),clbk.onBefore=sc_fireCallbacks($tt0,e,"onBefore",q,clbk),e.fx){case"none":$cfs.css(v),I(),j(),N(),T(),A(),H(),D();break;case"fade":scrl.anims.push([$cfs,{opacity:0},function(){I(),j(),N(),T(),A(),H(),(scrl=sc_setScroll(y,e.easing,conf)).anims.push([$cfs,{opacity:1},D]),sc_startScroll(scrl,conf)}]);break;case"crossfade":$cfs.css({opacity:0}),scrl.anims.push([m,{opacity:0}]),scrl.anims.push([$cfs,{opacity:1},D]),z(),j(),N(),T(),A(),H();break;case"cover":scrl.anims.push([m,v,function(){j(),N(),T(),A(),H(),D()}]),z();break;case"cover-fade":scrl.anims.push([$cfs,{opacity:0}]),scrl.anims.push([m,v,function(){j(),N(),T(),A(),H(),D()}]),z();break;case"uncover":scrl.anims.push([m,h,D]),z(),j(),N(),T(),A(),H();break;case"uncover-fade":$cfs.css({opacity:0}),scrl.anims.push([$cfs,{opacity:1}]),scrl.anims.push([m,h,D]),z(),j(),N(),T(),A(),H();break;default:scrl.anims.push([$cfs,v,function(){H(),D()}]),z(),k(),O(),M()}return sc_startScroll(scrl,conf),cf_setCookie(opts.cookie,$cfs,conf),$cfs.trigger(cf_e("updatePageStatus",conf),[!1,_]),!0}),$cfs.bind(cf_e("slide_next",conf),function(t,e,s){t.stopPropagation();var i=$cfs.children();if(!opts.circular&&itms.first==opts.items.visible)return opts.infinite&&$cfs.trigger(cf_e("prev",conf),itms.total-1),t.stopImmediatePropagation();sz_resetMargin(i,opts),is_number(s)||(s=cf_getAdjust(s="*"!=opts.items.filter?(p=is_number(e.items)?e.items:gn_getVisibleOrg($cfs,opts),gn_getScrollItemsNextFilter(i,opts,0,p)):opts.items.visible,opts,e.items,$tt0));var o=0==itms.first?itms.total:itms.first;if(opts.circular||(p=opts.items.visibleConf.variable?(n=gn_getVisibleItemsNext(i,opts,s),gn_getVisibleItemsPrev(i,opts,o-1)):(n=opts.items.visible,opts.items.visible),o<s+n&&(s=o-p)),opts.items.visibleConf.old=opts.items.visible,opts.items.visibleConf.variable){for(var n=cf_getItemsAdjust(gn_getVisibleItemsNextTestCircular(i,opts,s,o),opts,opts.items.visibleConf.adjust,$tt0);opts.items.visible-s>=n&&s<itms.total;)n=cf_getItemsAdjust(gn_getVisibleItemsNextTestCircular(i,opts,++s,o),opts,opts.items.visibleConf.adjust,$tt0);opts.items.visible=n}else"*"!=opts.items.filter&&(n=gn_getVisibleItemsNextFilter(i,opts,s),opts.items.visible=cf_getItemsAdjust(n,opts,opts.items.visibleConf.adjust,$tt0));if(sz_resetMargin(i,opts,!0),0==s)return t.stopImmediatePropagation(),debug(conf,"0 items to scroll: Not scrolling.");for(debug(conf,"Scrolling "+s+" items forward."),itms.first-=s;itms.first<0;)itms.first+=itms.total;opts.circular||(itms.first==opts.items.visible&&e.onEnd&&e.onEnd.call($tt0,"next"),opts.infinite||nv_enableNavi(opts,itms.first,conf)),itms.total<opts.items.visible+s&&$cfs.children().slice(0,opts.items.visible+s-itms.total).clone(!0).appendTo($cfs);var r=gi_getOldItemsNext(i=$cfs.children(),opts),c=gi_getNewItemsNext(i,opts,s),a=i.eq(s-1),f=r.last(),l=c.last();sz_resetMargin(i,opts);var u=0,p=0;opts.align&&(u=(_=cf_getAlignPadding(c,opts))[0],p=_[1]);var d,g=!1,t=$();opts.items.visibleConf.old<s&&(t=i.slice(opts.items.visibleConf.old,s),"directscroll"==e.fx&&(d=opts.items[opts.d.width],a=f,sc_hideHiddenItems(g=t),opts.items[opts.d.width]="variable"));var m=!1,_=ms_getTotalSize(i.slice(0,s),opts,"width"),b=cf_mapWrapperSizes(ms_getSizes(c,opts,!0),opts,!opts.usePadding),v=0,h={},w={},P={},C={},x={},S=sc_getDuration(e,opts,s,_);switch(e.fx){case"uncover":case"uncover-fade":v=ms_getTotalSize(i.slice(0,opts.items.visibleConf.old),opts,"width")}g&&(opts.items[opts.d.width]=d),opts.align&&opts.padding[opts.d[1]]<0&&(opts.padding[opts.d[1]]=0),sz_resetMargin(i,opts,!0),sz_resetMargin(f,opts,opts.padding[opts.d[1]]),opts.align&&(opts.padding[opts.d[1]]=p,opts.padding[opts.d[3]]=u),x[opts.d.left]=opts.usePadding?opts.padding[opts.d[3]]:0;var y=function(){},I=function(){},z=function(){},j=function(){},k=function(){},N=function(){};switch(e.fx){case"crossfade":case"cover":case"cover-fade":case"uncover":case"uncover-fade":(m=$cfs.clone(!0).appendTo($wrp)).children().slice(opts.items.visibleConf.old).remove()}switch(e.fx){case"crossfade":case"cover":case"cover-fade":$cfs.css("zIndex",1),m.css("zIndex",0)}scrl=sc_setScroll(S,e.easing,conf),h[opts.d.left]=-_,w[opts.d.left]=-v,u<0&&(h[opts.d.left]+=u),"variable"!=opts[opts.d.width]&&"variable"!=opts[opts.d.height]||(y=function(){$wrp.css(b)},I=function(){scrl.anims.push([$wrp,b])}),opts.usePadding&&(_=l.data("_cfs_origCssMargin"),0<=p&&(_+=opts.padding[opts.d[1]]),l.css(opts.d.marginRight,_),a.not(f).length&&(C[opts.d.marginRight]=f.data("_cfs_origCssMargin")),z=function(){f.css(C)},j=function(){scrl.anims.push([f,C])},_=a.data("_cfs_origCssMargin"),0<u&&(_+=opts.padding[opts.d[3]]),P[opts.d.marginRight]=_,k=function(){a.css(P)},N=function(){scrl.anims.push([a,P])});var O=function(){$cfs.css(x)},T=opts.items.visible+s-itms.total,M=function(){0<T&&$cfs.children().slice(itms.total).remove();var t,e=$cfs.children().slice(0,s).appendTo($cfs).last();0<T&&(c=gi_getCurrentItems(i,opts)),sc_showHiddenItems(g),opts.usePadding&&(itms.total<opts.items.visible+s&&(t=$cfs.children().eq(opts.items.visible-1)).css(opts.d.marginRight,t.data("_cfs_origCssMargin")+opts.padding[opts.d[1]]),e.css(opts.d.marginRight,e.data("_cfs_origCssMargin")))},A=sc_mapCallbackArguments(r,t,c,s,"next",S,b),F=function(){$cfs.css("zIndex",$cfs.data("_cfs_origCssZindex")),sc_afterScroll($cfs,m,e),crsl.isScrolling=!1,clbk.onAfter=sc_fireCallbacks($tt0,e,"onAfter",A,clbk),queu=sc_fireQueue($cfs,queu,conf),crsl.isPaused||$cfs.trigger(cf_e("play",conf))};switch(crsl.isScrolling=!0,tmrs=sc_clearTimers(tmrs),clbk.onBefore=sc_fireCallbacks($tt0,e,"onBefore",A,clbk),e.fx){case"none":$cfs.css(h),y(),z(),k(),O(),M(),F();break;case"fade":scrl.anims.push([$cfs,{opacity:0},function(){y(),z(),k(),O(),M(),(scrl=sc_setScroll(S,e.easing,conf)).anims.push([$cfs,{opacity:1},F]),sc_startScroll(scrl,conf)}]);break;case"crossfade":$cfs.css({opacity:0}),scrl.anims.push([m,{opacity:0}]),scrl.anims.push([$cfs,{opacity:1},F]),I(),z(),k(),O(),M();break;case"cover":$cfs.css(opts.d.left,$wrp[opts.d.width]()),scrl.anims.push([$cfs,x,F]),I(),z(),k(),M();break;case"cover-fade":$cfs.css(opts.d.left,$wrp[opts.d.width]()),scrl.anims.push([m,{opacity:0}]),scrl.anims.push([$cfs,x,F]),I(),z(),k(),M();break;case"uncover":scrl.anims.push([m,w,F]),I(),z(),k(),O(),M();break;case"uncover-fade":$cfs.css({opacity:0}),scrl.anims.push([$cfs,{opacity:1}]),scrl.anims.push([m,w,F]),I(),z(),k(),O(),M();break;default:scrl.anims.push([$cfs,h,function(){O(),M(),F()}]),I(),j(),N()}return sc_startScroll(scrl,conf),cf_setCookie(opts.cookie,$cfs,conf),$cfs.trigger(cf_e("updatePageStatus",conf),[!1,b]),!0}),$cfs.bind(cf_e("slideTo",conf),function(t,e,s,i,o,n,r){t.stopPropagation();i=cf_sortParams([e,s,i,o,n,r],["string/number/object","number","boolean","object","string","function"]);return o=i[3],n=i[4],r=i[5],0!=(e=gn_getItemIndex(i[0],i[1],i[2],itms,$cfs))&&(is_object(o)||(o=!1),"prev"==(n="prev"!=n&&"next"!=n?opts.circular?e<=itms.total/2?"next":"prev":0==itms.first||itms.first>e?"next":"prev":n)&&(e=itms.total-e),$cfs.trigger(cf_e(n,conf),[o,e,r]),!0)}),$cfs.bind(cf_e("prevPage",conf),function(t,e,s){t.stopPropagation();t=$cfs.triggerHandler(cf_e("currentPage",conf));return $cfs.triggerHandler(cf_e("slideToPage",conf),[t-1,e,"prev",s])}),$cfs.bind(cf_e("nextPage",conf),function(t,e,s){t.stopPropagation();t=$cfs.triggerHandler(cf_e("currentPage",conf));return $cfs.triggerHandler(cf_e("slideToPage",conf),[t+1,e,"next",s])}),$cfs.bind(cf_e("slideToPage",conf),function(t,e,s,i,o){t.stopPropagation(),is_number(e)||(e=$cfs.triggerHandler(cf_e("currentPage",conf)));var n=opts.pagination.items||opts.items.visible,t=Math.ceil(itms.total/n)-1;return t<(e=e<0?t:e)&&(e=0),$cfs.triggerHandler(cf_e("slideTo",conf),[e*n,0,!0,s,i,o])}),$cfs.bind(cf_e("jumpToStart",conf),function(t,e){if(t.stopPropagation(),e=e?gn_getItemIndex(e,0,!0,itms,$cfs):0,0!=(e+=itms.first)){if(0<itms.total)for(;e>itms.total;)e-=itms.total;$cfs.prepend($cfs.children().slice(e,itms.total))}return!0}),$cfs.bind(cf_e("synchronise",conf),function(t,e){if(t.stopPropagation(),e)e=cf_getSynchArr(e);else{if(!opts.synchronise)return debug(conf,"No carousel to synchronise.");e=opts.synchronise}for(var s=$cfs.triggerHandler(cf_e("currentPosition",conf)),i=!0,o=0,n=e.length;o<n;o++)e[o][0].triggerHandler(cf_e("slideTo",conf),[s,e[o][3],!0])||(i=!1);return i}),$cfs.bind(cf_e("queue",conf),function(t,e,s){return t.stopPropagation(),is_function(e)?e.call($tt0,queu):is_array(e)?queu=e:is_undefined(e)||queu.push([e,s]),queu}),$cfs.bind(cf_e("insertItem",conf),function(t,e,s,i,o){t.stopPropagation();var n=cf_sortParams([e,s,i,o],["string/object","string/number/object","boolean","number"]);if(e=n[0],s=n[1],i=n[2],o=n[3],(is_object(e)&&!is_jquery(e)||is_string(e))&&(e=$(e)),!is_jquery(e)||0==e.length)return debug(conf,"Not a valid object.");is_undefined(s)&&(s="end"),sz_storeMargin(e,opts),sz_storeOrigCss(e);t=s,n="before";"end"==s?i?(0==itms.first?(s=itms.total-1,n="after"):(s=itms.first,itms.first+=e.length),s<0&&(s=0)):(s=itms.total-1,n="after"):s=gn_getItemIndex(s,o,i,itms,$cfs);o=$cfs.children().eq(s);return o.length?o[n](e):(debug(conf,"Correct insert-position not found! Appending item to the end."),$cfs.append(e)),"end"==t||i||s<itms.first&&(itms.first+=e.length),itms.total=$cfs.children().length,itms.first>=itms.total&&(itms.first-=itms.total),$cfs.trigger(cf_e("updateSizes",conf)),$cfs.trigger(cf_e("linkAnchors",conf)),!0}),$cfs.bind(cf_e("removeItem",conf),function(t,e,i,o){t.stopPropagation();t=cf_sortParams([e,i,o],["string/number/object","boolean","number"]);e=t[0],i=t[1],o=t[2];var n;return e instanceof $&&1<e.length?(n=$(),e.each(function(t,e){var s=$cfs.trigger(cf_e("removeItem",conf),[$(this),i,o]);s&&(n=n.add(s))})):(is_undefined(e)||"end"==e?n=$cfs.children().last():(e=gn_getItemIndex(e,o,i,itms,$cfs),(n=$cfs.children().eq(e)).length&&e<itms.first&&(itms.first-=n.length)),n&&n.length&&(n.detach(),itms.total=$cfs.children().length,$cfs.trigger(cf_e("updateSizes",conf)))),n}),$cfs.bind(cf_e("onBefore",conf)+" "+cf_e("onAfter",conf),function(t,e){t.stopPropagation();t=t.type.slice(conf.events.prefix.length);return is_array(e)&&(clbk[t]=e),is_function(e)&&clbk[t].push(e),clbk[t]}),$cfs.bind(cf_e("currentPosition",conf),function(t,e){return t.stopPropagation(),t=0==itms.first?0:itms.total-itms.first,is_function(e)&&e.call($tt0,t),t}),$cfs.bind(cf_e("currentPage",conf),function(t,e){t.stopPropagation();var s=opts.pagination.items||opts.items.visible,t=Math.ceil(itms.total/s-1),s=0==itms.first||itms.first<itms.total%s?0:itms.first!=s||opts.circular?Math.round((itms.total-itms.first)/s):t;return t<(s=s<0?0:s)&&(s=t),is_function(e)&&e.call($tt0,s),s}),$cfs.bind(cf_e("currentVisible",conf),function(t,e){t.stopPropagation();t=gi_getCurrentItems($cfs.children(),opts);return is_function(e)&&e.call($tt0,t),t}),$cfs.bind(cf_e("slice",conf),function(t,e,s,i){if(t.stopPropagation(),0==itms.total)return!1;t=cf_sortParams([e,s,i],["number","number","function"]);if(e=is_number(t[0])?t[0]:0,s=is_number(t[1])?t[1]:itms.total,i=t[2],e+=itms.first,s+=itms.first,0<items.total){for(;e>itms.total;)e-=itms.total;for(;s>itms.total;)s-=itms.total;for(;e<0;)e+=itms.total;for(;s<0;)s+=itms.total}t=$cfs.children(),t=e<s?t.slice(e,s):$(t.slice(e,itms.total).get().concat(t.slice(0,s).get()));return is_function(i)&&i.call($tt0,t),t}),$cfs.bind(cf_e("isPaused",conf)+" "+cf_e("isStopped",conf)+" "+cf_e("isScrolling",conf),function(t,e){t.stopPropagation();t=t.type.slice(conf.events.prefix.length),t=crsl[t];return is_function(e)&&e.call($tt0,t),t}),$cfs.bind(cf_e("configuration",conf),function(e,a,b,c){e.stopPropagation();var reInit=!1,sz;if(is_function(a))a.call($tt0,opts);else if(is_object(a))opts_orig=$.extend(!0,{},opts_orig,a),!1!==b?reInit=!0:opts=$.extend(!0,{},opts,a);else if(!is_undefined(a))if(is_function(b)){var val=eval("opts."+a);is_undefined(val)&&(val=""),b.call($tt0,val)}else{if(is_undefined(b))return eval("opts."+a);"boolean"!=typeof c&&(c=!0),eval("opts_orig."+a+" = b"),!1!==c?reInit=!0:eval("opts."+a+" = b")}return reInit&&(sz_resetMargin($cfs.children(),opts),FN._init(opts_orig),FN._bind_buttons(),sz=sz_setSizes($cfs,opts),$cfs.trigger(cf_e("updatePageStatus",conf),[!0,sz])),opts}),$cfs.bind(cf_e("linkAnchors",conf),function(t,e,s){return t.stopPropagation(),is_undefined(e)?e=$("body"):is_string(e)&&(e=$(e)),is_jquery(e)&&0!=e.length?(is_string(s)||(s="a.caroufredsel"),e.find(s).each(function(){var e=this.hash||"";0<e.length&&-1!=$cfs.children().index($(e))&&$(this).unbind("click").click(function(t){t.preventDefault(),$cfs.trigger(cf_e("slideTo",conf),e)})}),!0):debug(conf,"Not a valid object.")}),$cfs.bind(cf_e("updatePageStatus",conf),function(t,e,s){if(t.stopPropagation(),opts.pagination.container){var i=opts.pagination.items||opts.items.visible,o=Math.ceil(itms.total/i);e&&(opts.pagination.anchorBuilder&&(opts.pagination.container.children().remove(),opts.pagination.container.each(function(){for(var t=0;t<o;t++){var e=$cfs.children().eq(gn_getItemIndex(t*i,0,!0,itms,$cfs));$(this).append(opts.pagination.anchorBuilder.call(e[0],t+1))}})),opts.pagination.container.each(function(){$(this).children().unbind(opts.pagination.event).each(function(e){$(this).bind(opts.pagination.event,function(t){t.preventDefault(),$cfs.trigger(cf_e("slideTo",conf),[e*i,-opts.pagination.deviation,!0,opts.pagination])})})}));var n=$cfs.triggerHandler(cf_e("currentPage",conf))+opts.pagination.deviation;return(n=o<=n?0:n)<0&&(n=o-1),opts.pagination.container.each(function(){$(this).children().removeClass(cf_c("selected",conf)).eq(n).addClass(cf_c("selected",conf))}),!0}}),$cfs.bind(cf_e("updateSizes",conf),function(t){var e=opts.items.visible,s=$cfs.children(),i=ms_getParentSize($wrp,opts,"width");itms.total=s.length,crsl.primarySizePercentage?(opts.maxDimension=i,opts[opts.d.width]=ms_getPercentage(i,crsl.primarySizePercentage)):opts.maxDimension=ms_getMaxDimension(opts,i),opts.responsive?(opts.items.width=opts.items.sizesConf.width,opts.items.height=opts.items.sizesConf.height,e=(opts=in_getResponsiveValues(opts,s,i)).items.visible,sz_setResponsiveSizes(opts,s)):opts.items.visibleConf.variable?e=gn_getVisibleItemsNext(s,opts,0):"*"!=opts.items.filter&&(e=gn_getVisibleItemsNextFilter(s,opts,0)),!opts.circular&&0!=itms.first&&e>itms.first&&(i=opts.items.visibleConf.variable?gn_getVisibleItemsPrev(s,opts,itms.first)-itms.first:"*"!=opts.items.filter?gn_getVisibleItemsPrevFilter(s,opts,itms.first)-itms.first:opts.items.visible-itms.first,debug(conf,"Preventing non-circular: sliding "+i+" items backward."),$cfs.trigger(cf_e("prev",conf),i)),opts.items.visible=cf_getItemsAdjust(e,opts,opts.items.visibleConf.adjust,$tt0),opts.items.visibleConf.old=opts.items.visible,opts=in_getAlignPadding(opts,s);s=sz_setSizes($cfs,opts);return $cfs.trigger(cf_e("updatePageStatus",conf),[!0,s]),nv_showNavi(opts,itms.total,conf),nv_enableNavi(opts,itms.first,conf),s}),$cfs.bind(cf_e("destroy",conf),function(t,e){return t.stopPropagation(),tmrs=sc_clearTimers(tmrs),$cfs.data("_cfs_isCarousel",!1),$cfs.trigger(cf_e("finish",conf)),e&&$cfs.trigger(cf_e("jumpToStart",conf)),sz_restoreOrigCss($cfs.children()),sz_restoreOrigCss($cfs),FN._unbind_events(),FN._unbind_buttons(),"parent"==conf.wrapper?sz_restoreOrigCss($wrp):$wrp.replaceWith($cfs),!0}),$cfs.bind(cf_e("debug",conf),function(t){return debug(conf,"Carousel width: "+opts.width),debug(conf,"Carousel height: "+opts.height),debug(conf,"Item widths: "+opts.items.width),debug(conf,"Item heights: "+opts.items.height),debug(conf,"Number of items visible: "+opts.items.visible),opts.auto.play&&debug(conf,"Number of items scrolled automatically: "+opts.auto.items),opts.prev.button&&debug(conf,"Number of items scrolled backward: "+opts.prev.items),opts.next.button&&debug(conf,"Number of items scrolled forward: "+opts.next.items),conf.debug}),$cfs.bind("_cfs_triggerEvent",function(t,e,s){return t.stopPropagation(),$cfs.triggerHandler(cf_e(e,conf),s)})},_unbind_events:function(){$cfs.unbind(cf_e("",conf)),$cfs.unbind(cf_e("",conf,!1)),$cfs.unbind("_cfs_triggerEvent")},_bind_buttons:function(){var t,s,i,o,n,r,c;if(FN._unbind_buttons(),nv_showNavi(opts,itms.total,conf),nv_enableNavi(opts,itms.first,conf),opts.auto.pauseOnHover&&(t=bt_pauseOnHoverConfig(opts.auto.pauseOnHover),$wrp.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),t)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))})),opts.auto.button&&opts.auto.button.bind(cf_e(opts.auto.event,conf,!1),function(t){t.preventDefault();var e=!1,t=null;crsl.isPaused?e="play":opts.auto.pauseOnEvent&&(e="pause",t=bt_pauseOnHoverConfig(opts.auto.pauseOnEvent)),e&&$cfs.trigger(cf_e(e,conf),t)}),opts.prev.button&&(opts.prev.button.bind(cf_e(opts.prev.event,conf,!1),function(t){t.preventDefault(),$cfs.trigger(cf_e("prev",conf))}),opts.prev.pauseOnHover&&(t=bt_pauseOnHoverConfig(opts.prev.pauseOnHover),opts.prev.button.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),t)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))}))),opts.next.button&&(opts.next.button.bind(cf_e(opts.next.event,conf,!1),function(t){t.preventDefault(),$cfs.trigger(cf_e("next",conf))}),opts.next.pauseOnHover&&(t=bt_pauseOnHoverConfig(opts.next.pauseOnHover),opts.next.button.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),t)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))}))),opts.pagination.container&&opts.pagination.pauseOnHover&&(t=bt_pauseOnHoverConfig(opts.pagination.pauseOnHover),opts.pagination.container.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),t)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))})),(opts.prev.key||opts.next.key)&&$(document).bind(cf_e("keyup",conf,!1,!0,!0),function(t){var e=t.keyCode;e==opts.next.key&&(t.preventDefault(),$cfs.trigger(cf_e("next",conf))),e==opts.prev.key&&(t.preventDefault(),$cfs.trigger(cf_e("prev",conf)))}),opts.pagination.keys&&$(document).bind(cf_e("keyup",conf,!1,!0,!0),function(t){var e=t.keyCode;49<=e&&e<58&&(e=(e-49)*opts.items.visible)<=itms.total&&(t.preventDefault(),$cfs.trigger(cf_e("slideTo",conf),[e,0,!0,opts.pagination]))}),$.fn.swipe){var e="ontouchstart"in window;if(e&&opts.swipe.onTouch||!e&&opts.swipe.onMouse){var a=$.extend(!0,{},opts.prev,opts.swipe),f=$.extend(!0,{},opts.next,opts.swipe),l=function(){$cfs.trigger(cf_e("prev",conf),[a])},u=function(){$cfs.trigger(cf_e("next",conf),[f])};switch(opts.direction){case"up":case"down":opts.swipe.options.swipeUp=u,opts.swipe.options.swipeDown=l;break;default:opts.swipe.options.swipeLeft=u,opts.swipe.options.swipeRight=l}crsl.swipe&&$cfs.swipe("destroy"),$wrp.swipe(opts.swipe.options),$wrp.css("cursor","move"),crsl.swipe=!0}}$.fn.mousewheel&&opts.mousewheel&&(s=$.extend(!0,{},opts.prev,opts.mousewheel),i=$.extend(!0,{},opts.next,opts.mousewheel),crsl.mousewheel&&$wrp.unbind(cf_e("mousewheel",conf,!1)),$wrp.bind(cf_e("mousewheel",conf,!1),function(t,e){t.preventDefault(),0<e?$cfs.trigger(cf_e("prev",conf),[s]):$cfs.trigger(cf_e("next",conf),[i])}),crsl.mousewheel=!0),opts.auto.play&&$cfs.trigger(cf_e("play",conf),opts.auto.delay),crsl.upDateOnWindowResize&&(o=function(t){$cfs.trigger(cf_e("finish",conf)),opts.auto.pauseOnResize&&!crsl.isPaused&&$cfs.trigger(cf_e("play",conf)),sz_resetMargin($cfs.children(),opts),$cfs.trigger(cf_e("updateSizes",conf))},n=$(window),e=null,e=$.debounce&&"debounce"==conf.onWindowResize?$.debounce(200,o):$.throttle&&"throttle"==conf.onWindowResize?$.throttle(300,o):(c=r=0,function(){var t=n.width(),e=n.height();t==r&&e==c||(o(),r=t,c=e)}),n.bind(cf_e("resize",conf,!1,!0,!0),e))},_unbind_buttons:function(){cf_e("",conf);var t=cf_e("",conf,!1);ns3=cf_e("",conf,!1,!0,!0),$(document).unbind(ns3),$(window).unbind(ns3),$wrp.unbind(t),opts.auto.button&&opts.auto.button.unbind(t),opts.prev.button&&opts.prev.button.unbind(t),opts.next.button&&opts.next.button.unbind(t),opts.pagination.container&&(opts.pagination.container.unbind(t),opts.pagination.anchorBuilder&&opts.pagination.container.children().remove()),crsl.swipe&&($cfs.swipe("destroy"),$wrp.css("cursor","default"),crsl.swipe=!1),crsl.mousewheel&&(crsl.mousewheel=!1),nv_showNavi(opts,"hide",conf),nv_enableNavi(opts,"removeClass",conf)}};is_boolean(configs)&&(configs={debug:configs});var crsl={direction:"next",isPaused:!0,isScrolling:!1,isStopped:!1,mousewheel:!1,swipe:!1},itms={total:$cfs.children().length,first:0},tmrs={auto:null,progress:null,startTime:getTime(),timePassed:0},scrl={isStopped:!1,duration:0,startTime:0,easing:"",anims:[]},clbk={onBefore:[],onAfter:[]},queu=[],conf=$.extend(!0,{},$.fn.carouFredSel.configs,configs),opts={},opts_orig=$.extend(!0,{},options),$wrp=("parent"==conf.wrapper?$cfs:$cfs.wrap("<"+conf.wrapper.element+' class="'+conf.wrapper.classname+'" />')).parent(),start_arr,start_arr;if(conf.selector=$cfs.selector,conf.serialNumber=$.fn.carouFredSel.serialNumber++,conf.transition=conf.transition&&$.fn.transition?"transition":"animate",FN._init(opts_orig,!0,starting_position),FN._build(),FN._bind_events(),FN._bind_buttons(),is_array(opts.items.start)?start_arr=opts.items.start:(start_arr=[],0!=opts.items.start&&start_arr.push(opts.items.start)),opts.cookie&&start_arr.unshift(parseInt(cf_getCookie(opts.cookie),10)),0<start_arr.length)for(var a=0,l=start_arr.length;a<l;a++){var s=start_arr[a];if(0!=s){if(!0===s){if(s=window.location.hash,s.length<1)continue}else"random"===s&&(s=Math.floor(Math.random()*itms.total));if($cfs.triggerHandler(cf_e("slideTo",conf),[s,0,!0,{fx:"none"}]))break}}var siz=sz_setSizes($cfs,opts),itm=gi_getCurrentItems($cfs.children(),opts);return opts.onCreate&&opts.onCreate.call($tt0,{width:siz.width,height:siz.height,items:itm}),$cfs.trigger(cf_e("updatePageStatus",conf),[!0,siz]),$cfs.trigger(cf_e("linkAnchors",conf)),conf.debug&&$cfs.trigger(cf_e("debug",conf)),$cfs},$.fn.carouFredSel.serialNumber=1,$.fn.carouFredSel.defaults={synchronise:!1,infinite:!0,circular:!0,responsive:!1,direction:"left",items:{start:0},scroll:{easing:"swing",duration:500,pauseOnHover:!1,event:"click",queue:!1}},$.fn.carouFredSel.configs={debug:!1,transition:!1,onWindowResize:"throttle",events:{prefix:"",namespace:"cfs"},wrapper:{element:"div",classname:"caroufredsel_wrapper"},classnames:{}},$.fn.carouFredSel.pageAnchorBuilder=function(t){return'<a href="#"><span>'+t+"</span></a>"},$.fn.carouFredSel.progressbarUpdater=function(t){$(this).css("width",t+"%")},$.fn.carouFredSel.cookie={get:function(t){t+="=";for(var e=document.cookie.split(";"),s=0,i=e.length;s<i;s++){for(var o=e[s];" "==o.charAt(0);)o=o.slice(1);if(0==o.indexOf(t))return o.slice(t.length)}return 0},set:function(t,e,s){var i,o="";s&&((i=new Date).setTime(i.getTime()+24*s*60*60*1e3),o="; expires="+i.toGMTString()),document.cookie=t+"="+e+o+"; path=/"},remove:function(t){$.fn.carouFredSel.cookie.set(t,"",-1)}},$.extend($.easing,{quadratic:function(t){var e=t*t;return t*(-e*t+4*e-6*t+4)},cubic:function(t){return t*(4*t*t-9*t+6)},elastic:function(t){var e=t*t;return t*(33*e*e-106*e*t+126*e-67*t+15)}}))}(jQuery);
|
assets/js/yith_magnifier.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(t,i,o){"use strict";void 0===i.fn.imagesLoaded&&function(t,i){var o="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";t.fn.imagesLoaded=function(i){var e=this,n=t.isFunction(t.Deferred)?t.Deferred():0,s=t.isFunction(n.notify),a=e.find("img").add(e.filter("img")),r=[],m=[],h=[];function l(){var o=t(m),s=t(h);n&&(h.length?n.reject(a,o,s):n.resolve(a)),t.isFunction(i)&&i.call(e,a,o,s)}function c(t){g(t.target,"error"===t.type)}function g(i,e){i.src!==o&&-1===t.inArray(i,r)&&(r.push(i),e?h.push(i):m.push(i),t.data(i,"imagesLoaded",{isBroken:e,src:i.src}),s&&n.notifyWith(t(i),[e,a,t(m),t(h)]),a.length===r.length&&(setTimeout(l),a.unbind(".imagesLoaded",c)))}return t.isPlainObject(i)&&t.each(i,function(t,o){"callback"===t?i=o:n&&n[t](o)}),a.length?a.bind("load.imagesLoaded error.imagesLoaded",c).each(function(i,e){var n=e.src,s=t.data(e,"imagesLoaded");s&&s.src===n?g(e,s.isBroken):e.complete&&void 0!==e.naturalWidth?g(e,0===e.naturalWidth||0===e.naturalHeight):(e.readyState||e.complete)&&(e.src=o,e.src=n)}):l(),n?n.promise(e):e}}(jQuery),i.yith_magnifier=function(t,o){this.t=o,this.element=i(o),this._init(t)},i.yith_magnifier.defaults={zoomWidth:"auto",zoomHeight:"auto",position:"right",tint:!1,tintOpacity:.5,lensOpacity:.5,softFocus:!1,smoothMove:3,showTitle:!0,titleOpacity:.5,adjustX:0,adjustY:0,phoneBehavior:"inside",loadingLabel:"Loading...",enableSlider:!0,slider:"carouFredSel",sliderOptions:{},from_gallery:"no",onLoad:function(){return!1},onEnter:function(){return!1},onLeave:function(){return!1},onMove:function(){return!1},onClick:function(){return!1},elements:{zoom:i(".yith_magnifier_zoom"),zoomImage:i(".yith_magnifier_zoom img").first(),gallery:i(".yith_magnifier_gallery li a")}},i.yith_magnifier.prototype={_init:function(t){var o=this;i(document).trigger("yith_magnifier_before_init"),i.each(i.yith_magnifier.defaults.elements,function(t,e){i.yith_magnifier.defaults.elements[t]=i(e,o)}),o.options=i.extend(!0,{},i.yith_magnifier.defaults,t),o.isPhone=o._isPhone(),o._loading(),o.element.imagesLoaded(function(){o.options.onLoad(),o._initZoom(),o._initGallery()}),i(document).trigger("yith_magnifier_after_init")},_initGallery:function(){var t=this,o=t.options.elements,e=o.gallery,n=o.zoom,s=o.zoomImage;e.length>0?(e.on("click",function(o){o.preventDefault(),t.options.from_gallery="yes";var e=i(this);t.destroy(),n.attr("href",this.href),s.attr("src",e.data("small")).attr("srcset",e.data("small")).attr("src-orig",e.data("small")).attr("title","").attr("title",e.attr("title")),i.data(t.t,"yith_magnifier",new i.yith_magnifier(t.options,t.element))}),t.options.enableSlider&&(e.closest("ul").trigger("yith_magnifier_slider_destroy"),e.closest("ul")[t.options.slider](t.options.sliderOptions))):e.on("click",function(t){return t.preventDefault(),!1})},_loading:function(){if(this.options.disableRightClick&&i(document).on("contextmenu",function(t){return!1}),void 0===this.mouseTrap){var t=this.options.elements.zoom.width();this.options.loadingLabel&&i('<div class="yith_magnifier_loading">'+this.options.loadingLabel+"</div>").css({width:t,"text-align":"center",opacity:.5}).appendTo(this.options.elements.zoom.parent())}},_initZoom:function(){var t=this;t.zoom=t.options.elements.zoom,t.zoomImage=t.options.elements.zoomImage;var o="yith_magnifier_zoom_wrap";t.options.zoom_wrap_additional_css&&(i("."+o).length||(o+=" "+t.options.zoom_wrap_additional_css)),t.zoom.wrap('<div class="'+o+'"></div>'),t.IMG_zoomImage=new Image;var e=i(".woocommerce-variation-add-to-cart .variation_id").val();if(i.isNumeric(e)&&0!=e&&"no"==t.options.from_gallery){var n={action:"yith_wc_zoom_magnifier_get_main_image",product_id:e,context:"frontend"};i.ajax({data:n,url:yith_wc_zoom_magnifier_storage_object.ajax_url,type:"post",error:function(t){console.log("ERROR - Yith_WC_Zoom_Magnifier"),console.log(t)},success:function(o){t.IMG_zoomImage.src=o.url,t.IMG_smallImage=new Image,t.IMG_smallImage.src=t.zoomImage.attr("src"),o.gallery&&(i(".yith_magnifier_gallery").length?i(".yith_magnifier_gallery").closest(".thumbnails").replaceWith(o.gallery):i(".images").append(o.gallery),t.options.elements.gallery=i(".yith_magnifier_gallery li a")),i.browser&&i.browser.msie&&8==i.browser.version?i(t.IMG_zoomImage).load(function(){t._initGallery(),t._initTrap()}):i([t.IMG_zoomImage,t.IMG_smallImage]).imagesLoaded(function(){t._initGallery(),t._initTrap()}),i(document).trigger("yith_magnifier_after_init_zoom")}})}else t.IMG_zoomImage.src=t.zoom.attr("href"),t.IMG_smallImage=new Image,t.IMG_smallImage.src=t.zoomImage.attr("src"),i.browser&&i.browser.msie&&8==i.browser.version?i(t.IMG_zoomImage).load(function(){t._initTrap()}):i([t.IMG_zoomImage,t.IMG_smallImage]).imagesLoaded(function(){t._initTrap()}),i(document).trigger("yith_magnifier_after_init_zoom")},_initTrap:function(){var t=this,o=t.IMG_zoomImage;t.IMG_smallImage;t.mx=0,t.my=0,t.controlTimer=0,t.lens=null,t.tint=null,t.softFocus=null,t.zoomDiv=null,t.cw=0,t.ch=0,t.zw=0,t.destU=0,t.destV=0,t.currU=0,t.currV=0,t.mouseTrap=null;var e=t.options.elements.zoom,n=t.options.elements.zoomImage;i(".yith_magnifier_loading").remove(),this.element.find(".yith_magnifier_mousetrap")&&this.element.find(".yith_magnifier_mousetrap").remove(),this.mouseTrap=i('<div class="yith_magnifier_mousetrap" />').css({width:"100%",height:"100%",top:0,left:0}).appendTo(e.parent());var s="ontouchstart"in document.documentElement;this.mouseTrap.on("touchmove mousemove",this,function(i){t.options.onMove(),t.mx=void 0!==i.originalEvent.touches?i.originalEvent.touches[0].pageX:i.pageX,t.my=void 0!==i.originalEvent.touches?i.originalEvent.touches[0].pageY:i.pageY}).on("touchend mouseleave",this,function(i){return clearTimeout(t.controlTimer),t.lens&&t.lens.fadeOut(299),t.tint&&t.tint.fadeOut(299),t.softFocus&&t.softFocus.fadeOut(299),t.zoomDiv.fadeOut(300,function(){t._onLeave()}),!1}).on("touchstart click",this,function(i){t.options.onClick()}).on("touchstart mouseenter",this,function(a){t.options.onEnter(),s&&a.preventDefault(),t.mx=void 0!==a.originalEvent.touches?a.originalEvent.touches[0].pageX:a.pageX,t.my=void 0!==a.originalEvent.touches?a.originalEvent.touches[0].pageY:a.pageY,t.zw=a.data,t.zoomDiv&&(t.zoomDiv.stop(!0,!1),t.zoomDiv.remove());var r=t.options.adjustX,m=t.options.adjustY,h=n.outerWidth(),l=n.outerHeight(),c=t.options.zoomWidth,g=t.options.zoomHeight;"auto"==t.options.zoomWidth&&(c=h),"auto"==t.options.zoomHeight&&(g=l);var u=e.parent();switch(t.options.position){case"top":m-=g;break;case"right":r+=h;break;case"bottom":m+=l;break;case"left":r-=c;break;case"inside":c=h,g=l;break;default:(u=i("#"+t.options.position)).length?(c=u.innerWidth(),g=u.innerHeight()):(u=e,r+=h,m+=l)}t.isPhone&&"inside"==t.options.phoneBehavior&&(c=h,g=l,r=0,m=0),t.zoomDiv=i('<div class="yith_magnifier_zoom_magnifier" />').css({left:r,top:m,width:c,height:g,"background-repeat":"no-repeat",backgroundImage:"url("+o.src+")"}).appendTo(u),n.attr("title")&&t.options.showTitle&&i('<div class="yith_magnifier_title">'+n.attr("title")+"</div>").appendTo(t.zoomDiv),t.isPhone?"disable"!=t.options.phoneBehavior?t.zoomDiv.fadeIn(500):t.lens.fadeOut(299):t.zoomDiv.fadeIn(500),t.lens&&(t.lens.remove(),t.lens=null),o.width<=1?t.cw=n.outerWidth()/o.naturalWidth*t.zoomDiv.width():t.cw=n.outerWidth()/o.width*t.zoomDiv.width(),o.height<=1?t.ch=n.outerHeight()/o.naturalHeight*t.zoomDiv.height():t.ch=n.outerHeight()/o.height*t.zoomDiv.height(),t.lens=i('<div class="yith_magnifier_lens" />').css({width:t.cw,height:t.ch}).appendTo(e),t.mouseTrap.css("cursor",t.lens.css("cursor"));var d=!1;t.options.tint&&(t.tint=i("<div />").css({display:"none",position:"absolute",left:0,top:0,width:n.outerWidth(),height:n.outerHeight(),backgroundColor:t.options.tint,opacity:t.options.tintOpacity}).appendTo(e),t.lens.append(i("<img />",{src:n.attr("src")})),d=!0,t.tint.fadeIn(500)),t.options.softFocus&&(t.softFocus=i("<div />").css({position:"absolute",display:"none",top:"1px",left:"1px",width:n.outerWidth(),height:n.outerHeight(),opacity:.5}).appendTo(e),t.softFocus.append(i("<img />",{src:n.attr("src")})),0==t.lens.find("img").length&&t.lens.append(i("<img />",{src:n.attr("src")})),d=!0,t.softFocus.fadeIn(500)),d||t.lens.css("opacity",t.options.lensOpacity),"inside"!==t.options.position&&t.lens.fadeIn(500),t.zw._controlLoop()})},_controlLoop:function(){var t=this;if(this.lens){var i=this.mx-this.zoomImage.offset().left-.5*this.cw>>0,o=this.my-this.zoomImage.offset().top-.5*this.ch>>0;i<0?i=0:i>this.zoomImage.outerWidth()-this.cw&&(i=this.zoomImage.outerWidth()-this.cw),o<0?o=0:o>this.zoomImage.outerHeight()-this.ch&&(o=this.zoomImage.outerHeight()-this.ch),this.lens.css({left:i-2,top:o-1}),this.lens.find("img").css({width:this.zoomImage.outerWidth(),height:this.zoomImage.outerHeight(),marginLeft:-i+"px ",marginTop:-o+"px"}),this.IMG_zoomImage.width<=1?this.destU=i/this.zoomImage.outerWidth()*this.IMG_zoomImage.naturalWidth>>0:this.destU=i/this.zoomImage.outerWidth()*this.IMG_zoomImage.width>>0,this.IMG_zoomImage.height<=1?this.destV=o/this.zoomImage.outerHeight()*this.IMG_zoomImage.naturalHeight>>0:this.destV=o/this.zoomImage.outerHeight()*this.IMG_zoomImage.height>>0,this.currU+=(this.destU-this.currU)/this.options.smoothMove,this.currV+=(this.destV-this.currV)/this.options.smoothMove,this.zoomDiv.css("background-position",-(this.currU>>0)+"px "+-(this.currV>>0)+"px")}this.controlTimer=setTimeout(function(){t._controlLoop()},30)},_onLeave:function(){this.options.onLeave(),this.zoomDiv&&(this.zoomDiv.remove(),this.zoomDiv=null),this._removeElements()},_removeElements:function(){this.lens&&(this.lens.remove(),this.lens=null),this.tint&&(this.tint.remove(),this.tint=null),this.softFocus&&(this.softFocus.remove(),this.softFocus=null),this.element.find(".yith_magnifier_loading").length>0&&this.element.find(".yith_magnifier_loading").remove()},_isPhone:function(){var t=navigator.userAgent.toLowerCase();return t.match(/iphone/i)||t.match(/ipod/i)||t.match(/android/i)},destroy:function(){this.zoom&&this.zoom.unwrap(),this.mouseTrap&&(this.mouseTrap.unbind(),this.mouseTrap.remove(),this.mouseTrap=null),this.zoomDiv&&(this.zoomDiv.remove(),this.zoomDiv=null),this.options.disableRightClick&&i(document).unbind(),this._removeElements(),this.options.elements.gallery.unbind(),this.element.removeData("yith_magnifier")}},i.fn.yith_magnifier=function(t){if("string"==typeof t){var o=Array.prototype.slice.call(arguments,1);this.each(function(){var e=i.data(this,"yith_magnifier");e?i.isFunction(e[t])&&"_"!==t.charAt(0)?e[t].apply(e,o):i.error("no such method '"+t+"' for yith_magnifier instance"):i.error("cannot call methods on yith_magnifier prior to initialization; attempted to call method '"+t+"'")})}else this.each(function(){i.data(this,"yith_magnifier")?i.error("yith_magnifier already istantiated."):i.data(this,"yith_magnifier",new i.yith_magnifier(t,this))});return this}}(window,jQuery);
|
1 |
+
!function(u,i){"use strict";var d,p;u.fn.imagesLoaded===i&&(d=jQuery,p="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",d.fn.imagesLoaded=function(o){var e=this,n=d.isFunction(d.Deferred)?d.Deferred():0,s=d.isFunction(n.notify),a=e.find("img").add(e.filter("img")),r=[],m=[],h=[];function l(){var t=d(m),i=d(h);n&&(h.length?n.reject(a,t,i):n.resolve(a)),d.isFunction(o)&&o.call(e,a,t,i)}function c(t){g(t.target,"error"===t.type)}function g(t,i){t.src!==p&&-1===d.inArray(t,r)&&(r.push(t),(i?h:m).push(t),d.data(t,"imagesLoaded",{isBroken:i,src:t.src}),s&&n.notifyWith(d(t),[i,a,d(m),d(h)]),a.length===r.length&&(setTimeout(l),a.unbind(".imagesLoaded",c)))}return d.isPlainObject(o)&&d.each(o,function(t,i){"callback"===t?o=i:n&&n[t](i)}),a.length?a.bind("load.imagesLoaded error.imagesLoaded",c).each(function(t,i){var o=i.src,e=d.data(i,"imagesLoaded");e&&e.src===o?g(i,e.isBroken):i.complete&&void 0!==i.naturalWidth?g(i,0===i.naturalWidth||0===i.naturalHeight):(i.readyState||i.complete)&&(i.src=p,i.src=o)}):l(),n?n.promise(e):e}),u.yith_magnifier=function(t,i){this.t=i,this.element=u(i),this._init(t)},u.yith_magnifier.defaults={zoomWidth:"auto",zoomHeight:"auto",position:"right",tint:!1,tintOpacity:.5,lensOpacity:.5,softFocus:!1,smoothMove:3,showTitle:!0,titleOpacity:.5,adjustX:0,adjustY:0,phoneBehavior:"inside",loadingLabel:"Loading...",enableSlider:!0,slider:"carouFredSel",sliderOptions:{},from_gallery:"no",onLoad:function(){return!1},onEnter:function(){return!1},onLeave:function(){return!1},onMove:function(){return!1},onClick:function(){return!1},elements:{zoom:u(".yith_magnifier_zoom"),zoomImage:u(".yith_magnifier_zoom img").first(),gallery:u(".yith_magnifier_gallery li a")}},u.yith_magnifier.prototype={_init:function(t){var o=this;u(document).trigger("yith_magnifier_before_init"),u.each(u.yith_magnifier.defaults.elements,function(t,i){u.yith_magnifier.defaults.elements[t]=u(i,o)}),o.options=u.extend(!0,{},u.yith_magnifier.defaults,t),o.isPhone=o._isPhone(),o._loading(),o.element.imagesLoaded(function(){o.options.onLoad(),o._initZoom(),o._initGallery()}),u(document).trigger("yith_magnifier_after_init")},_initGallery:function(){var i=this,t=i.options.elements,o=t.gallery,e=t.zoom,n=t.zoomImage;0<o.length?(o.on("click",function(t){t.preventDefault(),i.options.from_gallery="yes";t=u(this);i.destroy(),e.attr("href",this.href),n.attr("src",t.data("small")).attr("srcset",t.data("small")).attr("src-orig",t.data("small")).attr("title","").attr("title",t.attr("title")),u.data(i.t,"yith_magnifier",new u.yith_magnifier(i.options,i.element))}),i.options.enableSlider&&(o.closest("ul").trigger("yith_magnifier_slider_destroy"),o.closest("ul")[i.options.slider](i.options.sliderOptions))):o.on("click",function(t){return t.preventDefault(),!1})},_loading:function(){var t;this.options.disableRightClick&&u(document).on("contextmenu",function(t){return!1}),this.mouseTrap===i&&(t=this.options.elements.zoom.width(),this.options.loadingLabel&&u('<div class="yith_magnifier_loading">'+this.options.loadingLabel+"</div>").css({width:t,"text-align":"center",opacity:.5}).appendTo(this.options.elements.zoom.parent()))},_initZoom:function(){var i=this;i.zoom=i.options.elements.zoom,i.zoomImage=i.options.elements.zoomImage;var t="yith_magnifier_zoom_wrap";i.options.zoom_wrap_additional_css&&(u("."+t).length||(t+=" "+i.options.zoom_wrap_additional_css)),i.zoom.wrap('<div class="'+t+'"></div>'),i.IMG_zoomImage=new Image;t=u(".woocommerce-variation-add-to-cart .variation_id").val();u.isNumeric(t)&&0!=t&&"no"==i.options.from_gallery?u.ajax({data:{action:"yith_wc_zoom_magnifier_get_main_image",product_id:t,context:"frontend"},url:yith_wc_zoom_magnifier_storage_object.ajax_url,type:"post",error:function(t){console.log("ERROR - Yith_WC_Zoom_Magnifier"),console.log(t)},success:function(t){i.IMG_zoomImage.src=t.url,i.IMG_smallImage=new Image,i.IMG_smallImage.src=i.zoomImage.attr("src"),t.gallery&&(u(".yith_magnifier_gallery").length?u(".yith_magnifier_gallery").closest(".thumbnails").replaceWith(t.gallery):u(".images").append(t.gallery),i.options.elements.gallery=u(".yith_magnifier_gallery li a")),u.browser&&u.browser.msie&&8==u.browser.version?u(i.IMG_zoomImage).load(function(){i._initGallery(),i._initTrap()}):u([i.IMG_zoomImage,i.IMG_smallImage]).imagesLoaded(function(){i._initGallery(),i._initTrap()}),u(document).trigger("yith_magnifier_after_init_zoom")}}):(i.IMG_zoomImage.src=i.zoom.attr("href"),i.IMG_smallImage=new Image,i.IMG_smallImage.src=i.zoomImage.attr("src"),u.browser&&u.browser.msie&&8==u.browser.version?u(i.IMG_zoomImage).load(function(){i._initTrap()}):u([i.IMG_zoomImage,i.IMG_smallImage]).imagesLoaded(function(){i._initTrap()}),u(document).trigger("yith_magnifier_after_init_zoom"))},_initTrap:function(){var m=this,h=m.IMG_zoomImage;m.IMG_smallImage;m.mx=0,m.my=0,m.controlTimer=0,m.lens=null,m.tint=null,m.softFocus=null,m.zoomDiv=null,m.cw=0,m.ch=0,m.zw=0,m.destU=0,m.destV=0,m.currU=0,m.currV=0,m.mouseTrap=null;var l=m.options.elements.zoom,c=m.options.elements.zoomImage;u(".yith_magnifier_loading").remove(),this.element.find(".yith_magnifier_mousetrap")&&this.element.find(".yith_magnifier_mousetrap").remove(),this.mouseTrap=u('<div class="yith_magnifier_mousetrap" />').css({width:"100%",height:"100%",top:0,left:0}).appendTo(l.parent());var g="ontouchstart"in document.documentElement;this.mouseTrap.on("touchmove mousemove",this,function(t){m.options.onMove(),m.mx=("undefined"!=typeof t.originalEvent.touches?t.originalEvent.touches[0]:t).pageX,m.my=("undefined"!=typeof t.originalEvent.touches?t.originalEvent.touches[0]:t).pageY}).on("touchend mouseleave",this,function(t){return clearTimeout(m.controlTimer),m.lens&&m.lens.fadeOut(299),m.tint&&m.tint.fadeOut(299),m.softFocus&&m.softFocus.fadeOut(299),m.zoomDiv.fadeOut(300,function(){m._onLeave()}),!1}).on("touchstart click",this,function(t){m.options.onClick()}).on("touchstart mouseenter",this,function(t){m.options.onEnter(),g&&t.preventDefault(),m.mx=("undefined"!=typeof t.originalEvent.touches?t.originalEvent.touches[0]:t).pageX,m.my=("undefined"!=typeof t.originalEvent.touches?t.originalEvent.touches[0]:t).pageY,m.zw=t.data,m.zoomDiv&&(m.zoomDiv.stop(!0,!1),m.zoomDiv.remove());var i=m.options.adjustX,o=m.options.adjustY,e=c.outerWidth(),n=c.outerHeight(),s=m.options.zoomWidth,a=m.options.zoomHeight;"auto"==m.options.zoomWidth&&(s=e),"auto"==m.options.zoomHeight&&(a=n);var r=l.parent();switch(m.options.position){case"top":o-=a;break;case"right":i+=e;break;case"bottom":o+=n;break;case"left":i-=s;break;case"inside":s=e,a=n;break;default:(r=u("#"+m.options.position)).length?(s=r.innerWidth(),a=r.innerHeight()):(r=l,i+=e,o+=n)}m.isPhone&&"inside"==m.options.phoneBehavior&&(s=e,a=n,o=i=0),m.zoomDiv=u('<div class="yith_magnifier_zoom_magnifier" />').css({left:i,top:o,width:s,height:a,"background-repeat":"no-repeat",backgroundImage:"url("+h.src+")"}).appendTo(r),c.attr("title")&&m.options.showTitle&&u('<div class="yith_magnifier_title">'+c.attr("title")+"</div>").appendTo(m.zoomDiv),!m.isPhone||"disable"!=m.options.phoneBehavior?m.zoomDiv.fadeIn(500):m.lens.fadeOut(299),m.lens&&(m.lens.remove(),m.lens=null),h.width<=1?m.cw=c.outerWidth()/h.naturalWidth*m.zoomDiv.width():m.cw=c.outerWidth()/h.width*m.zoomDiv.width(),h.height<=1?m.ch=c.outerHeight()/h.naturalHeight*m.zoomDiv.height():m.ch=c.outerHeight()/h.height*m.zoomDiv.height(),m.lens=u('<div class="yith_magnifier_lens" />').css({width:m.cw,height:m.ch}).appendTo(l),m.mouseTrap.css("cursor",m.lens.css("cursor"));t=!1;m.options.tint&&(m.tint=u("<div />").css({display:"none",position:"absolute",left:0,top:0,width:c.outerWidth(),height:c.outerHeight(),backgroundColor:m.options.tint,opacity:m.options.tintOpacity}).appendTo(l),m.lens.append(u("<img />",{src:c.attr("src")})),t=!0,m.tint.fadeIn(500)),m.options.softFocus&&(m.softFocus=u("<div />").css({position:"absolute",display:"none",top:"1px",left:"1px",width:c.outerWidth(),height:c.outerHeight(),opacity:.5}).appendTo(l),m.softFocus.append(u("<img />",{src:c.attr("src")})),0==m.lens.find("img").length&&m.lens.append(u("<img />",{src:c.attr("src")})),t=!0,m.softFocus.fadeIn(500)),t||m.lens.css("opacity",m.options.lensOpacity),"inside"!==m.options.position&&m.lens.fadeIn(500),m.zw._controlLoop()})},_controlLoop:function(){var t,i,o=this;this.lens&&(t=this.mx-this.zoomImage.offset().left-.5*this.cw>>0,i=this.my-this.zoomImage.offset().top-.5*this.ch>>0,t<0?t=0:t>this.zoomImage.outerWidth()-this.cw&&(t=this.zoomImage.outerWidth()-this.cw),i<0?i=0:i>this.zoomImage.outerHeight()-this.ch&&(i=this.zoomImage.outerHeight()-this.ch),this.lens.css({left:t-2,top:i-1}),this.lens.find("img").css({width:this.zoomImage.outerWidth(),height:this.zoomImage.outerHeight(),marginLeft:-t+"px ",marginTop:-i+"px"}),this.IMG_zoomImage.width<=1?this.destU=t/this.zoomImage.outerWidth()*this.IMG_zoomImage.naturalWidth>>0:this.destU=t/this.zoomImage.outerWidth()*this.IMG_zoomImage.width>>0,this.IMG_zoomImage.height<=1?this.destV=i/this.zoomImage.outerHeight()*this.IMG_zoomImage.naturalHeight>>0:this.destV=i/this.zoomImage.outerHeight()*this.IMG_zoomImage.height>>0,this.currU+=(this.destU-this.currU)/this.options.smoothMove,this.currV+=(this.destV-this.currV)/this.options.smoothMove,this.zoomDiv.css("background-position",-(this.currU>>0)+"px "+-(this.currV>>0)+"px")),this.controlTimer=setTimeout(function(){o._controlLoop()},30)},_onLeave:function(){this.options.onLeave(),this.zoomDiv&&(this.zoomDiv.remove(),this.zoomDiv=null),this._removeElements()},_removeElements:function(){this.lens&&(this.lens.remove(),this.lens=null),this.tint&&(this.tint.remove(),this.tint=null),this.softFocus&&(this.softFocus.remove(),this.softFocus=null),0<this.element.find(".yith_magnifier_loading").length&&this.element.find(".yith_magnifier_loading").remove()},_isPhone:function(){var t=navigator.userAgent.toLowerCase();return t.match(/iphone/i)||t.match(/ipod/i)||t.match(/android/i)},destroy:function(){this.zoom&&this.zoom.unwrap(),this.mouseTrap&&(this.mouseTrap.unbind(),this.mouseTrap.remove(),this.mouseTrap=null),this.zoomDiv&&(this.zoomDiv.remove(),this.zoomDiv=null),this.options.disableRightClick&&u(document).unbind(),this._removeElements(),this.options.elements.gallery.unbind(),this.element.removeData("yith_magnifier")}},u.fn.yith_magnifier=function(i){var o;return"string"==typeof i?(o=Array.prototype.slice.call(arguments,1),this.each(function(){var t=u.data(this,"yith_magnifier");t?u.isFunction(t[i])&&"_"!==i.charAt(0)?t[i].apply(t,o):u.error("no such method '"+i+"' for yith_magnifier instance"):u.error("cannot call methods on yith_magnifier prior to initialization; attempted to call method '"+i+"'")})):this.each(function(){u.data(this,"yith_magnifier")?u.error("yith_magnifier already istantiated."):u.data(this,"yith_magnifier",new u.yith_magnifier(i,this))}),this}}((window,jQuery));
|
assets/js/ywzm_frontend.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(function(i){var
|
1 |
+
jQuery(function(i){var e=i(".images"),n=i(".yith_magnifier_zoom"),_=i(".yith_magnifier_zoom img").first(),m=e.find(".yith_magnifier_zoom").attr("href"),f=e.find(".yith_magnifier_zoom img").attr("src");if(yith_wcmg_default_gallery=e.find(".thumbnails"),"undefined"==typeof yith_magnifier_options)return!1;e.yith_magnifier(yith_magnifier_options),i(document).on("found_variation","form.variations_form",function(i,t){var r=t.image_magnifier||m,a=f;ywzm_data.wc_before_3_0?t.image_src&&(a=t.image_src):t.image.src&&(a=t.image.src),n.attr("href",r),_.attr("src",a),_.attr("srcset",a),_.attr("src-orig",a),e.data("yith_magnifier")&&e.yith_magnifier("destroy"),e.yith_magnifier(yith_magnifier_options)}).on("reset_image",function(i){n.attr("href",m),_.attr("src",f),_.attr("srcset",f),_.attr("src-orig",f),e.find(".thumbnails").replaceWith(yith_wcmg_default_gallery),e.data("yith_magnifier")&&e.yith_magnifier("destroy"),e.yith_magnifier(yith_magnifier_options)}),i("form.variations_form .variations select").trigger("change")});
|
init.php
CHANGED
@@ -3,13 +3,13 @@
|
|
3 |
* Plugin Name: YITH WooCommerce Zoom Magnifier
|
4 |
* Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-zoom-magnifier/
|
5 |
* Description: <code><strong>YITH WooCommerce Zoom Magnifier</strong></code> allows you to add a zoom effect to product images and a thumbnail slider for the product image gallery. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>.
|
6 |
-
* Version: 1.3.
|
7 |
* Author: YITH
|
8 |
* Author URI: https://yithemes.com/
|
9 |
* Text Domain: yith-woocommerce-zoom-magnifier
|
10 |
* Domain Path: /languages/
|
11 |
-
* WC requires at least: 4.
|
12 |
-
* WC tested up to: 5.
|
13 |
**/
|
14 |
|
15 |
/* Copyright 2013-2018 Your Inspiration Themes (email : plugins@yithemes.com)
|
@@ -78,8 +78,8 @@ register_activation_hook ( __FILE__, 'yith_plugin_registration_hook' );
|
|
78 |
|
79 |
defined ( 'YITH_YWZM_FREE_INIT' ) || define ( 'YITH_YWZM_FREE_INIT', plugin_basename ( __FILE__ ) );
|
80 |
defined ( 'YITH_YWZM_SLUG' ) || define ( 'YITH_YWZM_SLUG', 'yith-woocommerce-zoom-magnifier' );
|
81 |
-
defined ( 'YITH_YWZM_VERSION' ) || define ( 'YITH_YWZM_VERSION', '1.3.
|
82 |
-
defined ( 'YITH_YWZM_JS_VERSION' ) || define ( 'YITH_YWZM_JS_VERSION', '1.3.
|
83 |
|
84 |
defined ( 'YITH_YWZM_FILE' ) || define ( 'YITH_YWZM_FILE', __FILE__ );
|
85 |
defined ( 'YITH_YWZM_DIR' ) || define ( 'YITH_YWZM_DIR', plugin_dir_path ( __FILE__ ) );
|
3 |
* Plugin Name: YITH WooCommerce Zoom Magnifier
|
4 |
* Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-zoom-magnifier/
|
5 |
* Description: <code><strong>YITH WooCommerce Zoom Magnifier</strong></code> allows you to add a zoom effect to product images and a thumbnail slider for the product image gallery. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>.
|
6 |
+
* Version: 1.3.24
|
7 |
* Author: YITH
|
8 |
* Author URI: https://yithemes.com/
|
9 |
* Text Domain: yith-woocommerce-zoom-magnifier
|
10 |
* Domain Path: /languages/
|
11 |
+
* WC requires at least: 4.5
|
12 |
+
* WC tested up to: 5.1
|
13 |
**/
|
14 |
|
15 |
/* Copyright 2013-2018 Your Inspiration Themes (email : plugins@yithemes.com)
|
78 |
|
79 |
defined ( 'YITH_YWZM_FREE_INIT' ) || define ( 'YITH_YWZM_FREE_INIT', plugin_basename ( __FILE__ ) );
|
80 |
defined ( 'YITH_YWZM_SLUG' ) || define ( 'YITH_YWZM_SLUG', 'yith-woocommerce-zoom-magnifier' );
|
81 |
+
defined ( 'YITH_YWZM_VERSION' ) || define ( 'YITH_YWZM_VERSION', '1.3.24' );
|
82 |
+
defined ( 'YITH_YWZM_JS_VERSION' ) || define ( 'YITH_YWZM_JS_VERSION', '1.3.24' );
|
83 |
|
84 |
defined ( 'YITH_YWZM_FILE' ) || define ( 'YITH_YWZM_FILE', __FILE__ );
|
85 |
defined ( 'YITH_YWZM_DIR' ) || define ( 'YITH_YWZM_DIR', plugin_dir_path ( __FILE__ ) );
|
languages/yith-woocommerce-zoom-magnifier.pot
CHANGED
@@ -1,88 +1,79 @@
|
|
1 |
-
|
|
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
-
"Project-Id-Version: YITH WooCommerce
|
5 |
-
"
|
6 |
-
"
|
7 |
-
"Last-Translator: \n"
|
8 |
-
"Language-Team: Your Inspiration Themes <plugins@yithemes.com>\n"
|
9 |
-
"Language: en\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
-
"Content-Type: text/plain; charset=
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
-
"
|
14 |
-
"
|
15 |
-
"
|
16 |
-
"
|
17 |
-
"
|
|
|
18 |
"X-Poedit-SourceCharset: UTF-8\n"
|
|
|
|
|
|
|
|
|
19 |
"X-Poedit-SearchPath-0: .\n"
|
20 |
-
"X-Poedit-
|
|
|
|
|
21 |
|
22 |
-
#: class.yith-wcmg-admin.php:
|
23 |
msgid "Image Size"
|
24 |
msgstr ""
|
25 |
|
26 |
-
#: class.yith-wcmg-admin.php:
|
27 |
msgid "The size of the images used within the magnifier box"
|
28 |
msgstr ""
|
29 |
|
30 |
-
#: init.php:
|
31 |
msgid ""
|
32 |
"YITH WooCommerce Zoom Magnifier is enabled but not effective. It requires "
|
33 |
"WooCommerce in order to work."
|
34 |
msgstr ""
|
35 |
|
36 |
-
#: init.php:
|
37 |
msgid ""
|
38 |
-
"You can't activate the free version of YITH WooCommerce Zoom Magnifier
|
39 |
-
"you are using the premium one."
|
40 |
msgstr ""
|
41 |
|
42 |
#: lib/class.yith-ywzm-custom-types.php:159
|
43 |
msgid "Do you want to hard crop the image?"
|
44 |
msgstr ""
|
45 |
|
46 |
-
#: lib/class.yith-ywzm-plugin-fw-loader.php:
|
47 |
msgid "General"
|
48 |
msgstr ""
|
49 |
|
50 |
-
#: lib/class.yith-ywzm-plugin-fw-loader.php:
|
51 |
-
#: lib/class.yith-ywzm-plugin-fw-loader.php:191
|
52 |
msgid "Premium Version"
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: lib/class.yith-ywzm-plugin-fw-loader.php:
|
56 |
msgid "Product exclusion list"
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: lib/class.yith-ywzm-plugin-fw-loader.php:
|
60 |
-
msgid "Settings"
|
61 |
-
msgstr ""
|
62 |
-
|
63 |
-
#: lib/class.yith-ywzm-plugin-fw-loader.php:216
|
64 |
-
msgid "Plugin Documentation"
|
65 |
-
msgstr ""
|
66 |
-
|
67 |
-
#: lib/class.yith-ywzm-plugin-fw-loader.php:229
|
68 |
msgid ""
|
69 |
"YITH WooCommerce Zoom Magnifier is available in an outstanding PREMIUM "
|
70 |
"version with many new options, discover it now."
|
71 |
msgstr ""
|
72 |
|
73 |
-
#: lib/class.yith-ywzm-plugin-fw-loader.php:
|
74 |
msgid "Premium version"
|
75 |
msgstr ""
|
76 |
|
77 |
-
#: lib/class.yith-ywzm-plugin-fw-loader.php:
|
78 |
-
#: plugin-options/general-options.php:217
|
79 |
-
msgid "YITH WooCommerce Zoom Magnifier"
|
80 |
-
msgstr ""
|
81 |
-
|
82 |
-
#: lib/class.yith-ywzm-plugin-fw-loader.php:238
|
83 |
msgid ""
|
84 |
-
"In YIT Plugins tab you can find YITH WooCommerce Zoom Magnifier
|
85 |
-
"
|
86 |
"activated."
|
87 |
msgstr ""
|
88 |
|
@@ -151,41 +142,41 @@ msgstr ""
|
|
151 |
msgid "The magnifier position"
|
152 |
msgstr ""
|
153 |
|
154 |
-
#: plugin-options/general-options.php:
|
155 |
msgid "Right"
|
156 |
msgstr ""
|
157 |
|
158 |
-
#: plugin-options/general-options.php:
|
159 |
-
#: plugin-options/general-options.php:
|
160 |
msgid "Inside"
|
161 |
msgstr ""
|
162 |
|
163 |
-
#: plugin-options/general-options.php:
|
164 |
msgid "Zoom Box Position for mobile devices"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: plugin-options/general-options.php:
|
168 |
msgid "The magnifier position for the mobile devices (iPhone, Android, etc.)"
|
169 |
msgstr ""
|
170 |
|
171 |
-
#: plugin-options/general-options.php:
|
172 |
msgid "Default"
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: plugin-options/general-options.php:
|
176 |
msgid "Disable"
|
177 |
msgstr ""
|
178 |
|
179 |
-
#: plugin-options/general-options.php:
|
180 |
msgid "Loading label"
|
181 |
msgstr ""
|
182 |
|
183 |
-
#: plugin-options/general-options.php:
|
184 |
-
#: plugin-options/general-options.php:
|
185 |
msgid "Loading..."
|
186 |
msgstr ""
|
187 |
|
188 |
-
#: plugin-options/general-options.php:
|
189 |
msgid "Lens Opacity"
|
190 |
msgstr ""
|
191 |
|
@@ -227,70 +218,36 @@ msgstr ""
|
|
227 |
msgid "Number of items to show"
|
228 |
msgstr ""
|
229 |
|
230 |
-
#: plugin-options/general-options.php:
|
231 |
msgid "Circular carousel"
|
232 |
msgstr ""
|
233 |
|
234 |
-
#: plugin-options/general-options.php:
|
235 |
msgid "It defines whether the carousel should be circular."
|
236 |
msgstr ""
|
237 |
|
238 |
-
#: plugin-options/general-options.php:
|
239 |
msgid "Infinite carousel"
|
240 |
msgstr ""
|
241 |
|
242 |
-
#: plugin-options/general-options.php:
|
243 |
msgid ""
|
244 |
"It defines whether the carousel should be infinite. Note: It is possible to "
|
245 |
-
"create a non-circular, infinite carousel, but it is not possible to create
|
246 |
-
"circular, non-infinite carousel."
|
247 |
-
msgstr ""
|
248 |
-
|
249 |
-
#: plugin-options/general-options.php:214
|
250 |
-
msgid "Upgrade to the PREMIUM VERSION"
|
251 |
-
msgstr ""
|
252 |
-
|
253 |
-
#: plugin-options/general-options.php:218
|
254 |
-
msgid "Discover The Advanced Features"
|
255 |
-
msgstr ""
|
256 |
-
|
257 |
-
#: plugin-options/general-options.php:219
|
258 |
-
msgid ""
|
259 |
-
"Upgrade to the PREMIUM VERSION of YITH WOOCOMMERCE ZOOM MAGNIFIER to benefit "
|
260 |
-
"from all features!"
|
261 |
-
msgstr ""
|
262 |
-
|
263 |
-
#: plugin-options/general-options.php:223
|
264 |
-
msgid ""
|
265 |
-
"See YITH WooCommerce Zoom Magnifier plugin with full premium features in "
|
266 |
-
"action"
|
267 |
-
msgstr ""
|
268 |
-
|
269 |
-
#: plugin-options/general-options.php:225
|
270 |
-
msgid "Get Support and Pro Features"
|
271 |
-
msgstr ""
|
272 |
-
|
273 |
-
#: plugin-options/general-options.php:226
|
274 |
-
msgid ""
|
275 |
-
"Purchasing the premium version of the plugin, you will take advantage of the "
|
276 |
-
"advanced features of the product, and you will get one year of free updates "
|
277 |
-
"and support through our platform available 24h/24."
|
278 |
msgstr ""
|
279 |
|
280 |
#: templates/admin/premium.php:193
|
281 |
-
#, php-format
|
282 |
msgid ""
|
283 |
"Upgrade to the %1$s premium version %2$s of %1$s YITH WooCommerce Zoom "
|
284 |
"Magnifier %2$s to benefit from all features!"
|
285 |
msgstr ""
|
286 |
|
287 |
#: templates/admin/premium.php:196
|
288 |
-
#, php-format
|
289 |
msgid "%1$sUPGRADE%2$s%3$sto the premium version%2$s"
|
290 |
msgstr ""
|
291 |
|
292 |
#: templates/admin/premium.php:202
|
293 |
-
#, php-format
|
294 |
msgid "%1$sPremium Features%2$s"
|
295 |
msgstr ""
|
296 |
|
@@ -299,7 +256,6 @@ msgid "ZOOM BOX POSITION"
|
|
299 |
msgstr ""
|
300 |
|
301 |
#: templates/admin/premium.php:213
|
302 |
-
#, php-format
|
303 |
msgid ""
|
304 |
"Choose where you want to show the %1$szoomed version%2$s of the image of "
|
305 |
"your products. Place it above or below the original image, on its left or "
|
@@ -312,8 +268,9 @@ msgstr ""
|
|
312 |
|
313 |
#: templates/admin/premium.php:225
|
314 |
msgid ""
|
315 |
-
"Just one click and the product image will appear in a bigger size in a
|
316 |
-
"window. A further chance to let users analyze in a better way what
|
|
|
317 |
msgstr ""
|
318 |
|
319 |
#: templates/admin/premium.php:240
|
@@ -322,80 +279,26 @@ msgstr ""
|
|
322 |
|
323 |
#: templates/admin/premium.php:242
|
324 |
msgid ""
|
325 |
-
"Tailored options to limit the plugin features only to certain products.
|
326 |
-
"of these could have too small images to be zoomed, or maybe being part
|
327 |
-
"categories that do not imply zoomed images. Select the products and the "
|
328 |
"categories to exclude and delete all your problems"
|
329 |
msgstr ""
|
330 |
|
331 |
#: templates/admin/premium.php:251
|
332 |
-
#, php-format
|
333 |
msgid ""
|
334 |
-
"Upgrade to the %1$spremium version%2$s of %1$sYITH WooCommerce Zoom
|
335 |
-
"%2$s to benefit from all features!"
|
336 |
msgstr ""
|
337 |
|
338 |
#: templates/admin/premium.php:254
|
339 |
-
#, php-format
|
340 |
msgid "%1$sUPGRADE%2$s %3$sto the premium version%2$s"
|
341 |
msgstr ""
|
342 |
|
343 |
-
|
344 |
-
msgid "
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
msgstr ""
|
350 |
-
|
351 |
-
#: yit-common/yith-panel.php:431 yit-common/yith-panel.php:432
|
352 |
-
msgid "Minutes"
|
353 |
-
msgstr ""
|
354 |
-
|
355 |
-
#: yit-common/yith-panel.php:440
|
356 |
-
msgid "Upload"
|
357 |
-
msgstr ""
|
358 |
-
|
359 |
-
#: yit-common/yith-panel.php:477
|
360 |
-
msgid "px"
|
361 |
-
msgstr ""
|
362 |
-
|
363 |
-
#: yit-common/yith-panel.php:479
|
364 |
-
msgid "em"
|
365 |
-
msgstr ""
|
366 |
-
|
367 |
-
#: yit-common/yith-panel.php:481
|
368 |
-
msgid "pt"
|
369 |
-
msgstr ""
|
370 |
-
|
371 |
-
#: yit-common/yith-panel.php:483
|
372 |
-
msgid "rem"
|
373 |
-
msgstr ""
|
374 |
-
|
375 |
-
#: yit-common/yith-panel.php:495
|
376 |
-
msgid "Select a font family"
|
377 |
-
msgstr ""
|
378 |
-
|
379 |
-
#: yit-common/yith-panel.php:505
|
380 |
-
msgid "Regular"
|
381 |
-
msgstr ""
|
382 |
-
|
383 |
-
#: yit-common/yith-panel.php:507
|
384 |
-
msgid "Bold"
|
385 |
-
msgstr ""
|
386 |
-
|
387 |
-
#: yit-common/yith-panel.php:509
|
388 |
-
msgid "Extra bold"
|
389 |
-
msgstr ""
|
390 |
-
|
391 |
-
#: yit-common/yith-panel.php:511
|
392 |
-
msgid "Italic"
|
393 |
-
msgstr ""
|
394 |
-
|
395 |
-
#: yit-common/yith-panel.php:513
|
396 |
-
msgid "Italic bold"
|
397 |
-
msgstr ""
|
398 |
-
|
399 |
-
#: yit-common/yith-panel.php:529
|
400 |
-
msgid "Click to preview"
|
401 |
-
msgstr ""
|
1 |
+
# Copyright (C) 2021 YITH
|
2 |
+
# This file is distributed under the same license as the YITH WooCommerce Zoom Magnifier package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: YITH WooCommerce Zoom Magnifier 1.3.24\n"
|
6 |
+
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2021-03-12 13:53:27+00:00\n"
|
|
|
|
|
|
|
8 |
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2021-MO-DA HO:MI+ZONE\n"
|
12 |
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
+
"Language-Team: YITH <info@yithemes.com>\n"
|
14 |
+
"Language: en\n"
|
15 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
16 |
+
"X-Poedit-Country: United States\n"
|
17 |
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
+
"X-Poedit-KeywordsList: "
|
19 |
+
"__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_"
|
20 |
+
"attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
|
21 |
+
"X-Poedit-Basepath: ../\n"
|
22 |
"X-Poedit-SearchPath-0: .\n"
|
23 |
+
"X-Poedit-Bookmarks: \n"
|
24 |
+
"X-Textdomain-Support: yes\n"
|
25 |
+
"X-Generator: grunt-wp-i18n 1.0.3\n"
|
26 |
|
27 |
+
#: class.yith-wcmg-admin.php:75
|
28 |
msgid "Image Size"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: class.yith-wcmg-admin.php:76 plugin-options/general-options.php:17
|
32 |
msgid "The size of the images used within the magnifier box"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: init.php:51
|
36 |
msgid ""
|
37 |
"YITH WooCommerce Zoom Magnifier is enabled but not effective. It requires "
|
38 |
"WooCommerce in order to work."
|
39 |
msgstr ""
|
40 |
|
41 |
+
#: init.php:67
|
42 |
msgid ""
|
43 |
+
"You can't activate the free version of YITH WooCommerce Zoom Magnifier "
|
44 |
+
"while you are using the premium one."
|
45 |
msgstr ""
|
46 |
|
47 |
#: lib/class.yith-ywzm-custom-types.php:159
|
48 |
msgid "Do you want to hard crop the image?"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: lib/class.yith-ywzm-plugin-fw-loader.php:120
|
52 |
msgid "General"
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: lib/class.yith-ywzm-plugin-fw-loader.php:123
|
|
|
56 |
msgid "Premium Version"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: lib/class.yith-ywzm-plugin-fw-loader.php:125
|
60 |
msgid "Product exclusion list"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: lib/class.yith-ywzm-plugin-fw-loader.php:180
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
msgid ""
|
65 |
"YITH WooCommerce Zoom Magnifier is available in an outstanding PREMIUM "
|
66 |
"version with many new options, discover it now."
|
67 |
msgstr ""
|
68 |
|
69 |
+
#: lib/class.yith-ywzm-plugin-fw-loader.php:181
|
70 |
msgid "Premium version"
|
71 |
msgstr ""
|
72 |
|
73 |
+
#: lib/class.yith-ywzm-plugin-fw-loader.php:189
|
|
|
|
|
|
|
|
|
|
|
74 |
msgid ""
|
75 |
+
"In YIT Plugins tab you can find YITH WooCommerce Zoom Magnifier "
|
76 |
+
"options.<br> From this menu you can access all settings of the YITH plugins "
|
77 |
"activated."
|
78 |
msgstr ""
|
79 |
|
142 |
msgid "The magnifier position"
|
143 |
msgstr ""
|
144 |
|
145 |
+
#: plugin-options/general-options.php:105
|
146 |
msgid "Right"
|
147 |
msgstr ""
|
148 |
|
149 |
+
#: plugin-options/general-options.php:106
|
150 |
+
#: plugin-options/general-options.php:119
|
151 |
msgid "Inside"
|
152 |
msgstr ""
|
153 |
|
154 |
+
#: plugin-options/general-options.php:110
|
155 |
msgid "Zoom Box Position for mobile devices"
|
156 |
msgstr ""
|
157 |
|
158 |
+
#: plugin-options/general-options.php:111
|
159 |
msgid "The magnifier position for the mobile devices (iPhone, Android, etc.)"
|
160 |
msgstr ""
|
161 |
|
162 |
+
#: plugin-options/general-options.php:118
|
163 |
msgid "Default"
|
164 |
msgstr ""
|
165 |
|
166 |
+
#: plugin-options/general-options.php:120
|
167 |
msgid "Disable"
|
168 |
msgstr ""
|
169 |
|
170 |
+
#: plugin-options/general-options.php:124
|
171 |
msgid "Loading label"
|
172 |
msgstr ""
|
173 |
|
174 |
+
#: plugin-options/general-options.php:127
|
175 |
+
#: plugin-options/general-options.php:128
|
176 |
msgid "Loading..."
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: plugin-options/general-options.php:133
|
180 |
msgid "Lens Opacity"
|
181 |
msgstr ""
|
182 |
|
218 |
msgid "Number of items to show"
|
219 |
msgstr ""
|
220 |
|
221 |
+
#: plugin-options/general-options.php:186
|
222 |
msgid "Circular carousel"
|
223 |
msgstr ""
|
224 |
|
225 |
+
#: plugin-options/general-options.php:187
|
226 |
msgid "It defines whether the carousel should be circular."
|
227 |
msgstr ""
|
228 |
|
229 |
+
#: plugin-options/general-options.php:194
|
230 |
msgid "Infinite carousel"
|
231 |
msgstr ""
|
232 |
|
233 |
+
#: plugin-options/general-options.php:195
|
234 |
msgid ""
|
235 |
"It defines whether the carousel should be infinite. Note: It is possible to "
|
236 |
+
"create a non-circular, infinite carousel, but it is not possible to create "
|
237 |
+
"a circular, non-infinite carousel."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
238 |
msgstr ""
|
239 |
|
240 |
#: templates/admin/premium.php:193
|
|
|
241 |
msgid ""
|
242 |
"Upgrade to the %1$s premium version %2$s of %1$s YITH WooCommerce Zoom "
|
243 |
"Magnifier %2$s to benefit from all features!"
|
244 |
msgstr ""
|
245 |
|
246 |
#: templates/admin/premium.php:196
|
|
|
247 |
msgid "%1$sUPGRADE%2$s%3$sto the premium version%2$s"
|
248 |
msgstr ""
|
249 |
|
250 |
#: templates/admin/premium.php:202
|
|
|
251 |
msgid "%1$sPremium Features%2$s"
|
252 |
msgstr ""
|
253 |
|
256 |
msgstr ""
|
257 |
|
258 |
#: templates/admin/premium.php:213
|
|
|
259 |
msgid ""
|
260 |
"Choose where you want to show the %1$szoomed version%2$s of the image of "
|
261 |
"your products. Place it above or below the original image, on its left or "
|
268 |
|
269 |
#: templates/admin/premium.php:225
|
270 |
msgid ""
|
271 |
+
"Just one click and the product image will appear in a bigger size in a "
|
272 |
+
"modal window. A further chance to let users analyze in a better way what "
|
273 |
+
"you sell."
|
274 |
msgstr ""
|
275 |
|
276 |
#: templates/admin/premium.php:240
|
279 |
|
280 |
#: templates/admin/premium.php:242
|
281 |
msgid ""
|
282 |
+
"Tailored options to limit the plugin features only to certain products. "
|
283 |
+
"Some of these could have too small images to be zoomed, or maybe being part "
|
284 |
+
"of categories that do not imply zoomed images. Select the products and the "
|
285 |
"categories to exclude and delete all your problems"
|
286 |
msgstr ""
|
287 |
|
288 |
#: templates/admin/premium.php:251
|
|
|
289 |
msgid ""
|
290 |
+
"Upgrade to the %1$spremium version%2$s of %1$sYITH WooCommerce Zoom "
|
291 |
+
"Magnifier%2$s to benefit from all features!"
|
292 |
msgstr ""
|
293 |
|
294 |
#: templates/admin/premium.php:254
|
|
|
295 |
msgid "%1$sUPGRADE%2$s %3$sto the premium version%2$s"
|
296 |
msgstr ""
|
297 |
|
298 |
+
#. Description of the plugin/theme
|
299 |
+
msgid ""
|
300 |
+
"<code><strong>YITH WooCommerce Zoom Magnifier</strong></code> allows you to "
|
301 |
+
"add a zoom effect to product images and a thumbnail slider for the product "
|
302 |
+
"image gallery. <a href=\"https://yithemes.com/\" target=\"_blank\">Get more "
|
303 |
+
"plugins for your e-commerce shop on <strong>YITH</strong></a>."
|
304 |
+
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/.distignore
DELETED
@@ -1,23 +0,0 @@
|
|
1 |
-
# Hidden files and folders
|
2 |
-
.*
|
3 |
-
.*/
|
4 |
-
*/.*
|
5 |
-
|
6 |
-
# NPM, composer, grunt and other utilities
|
7 |
-
*.lock
|
8 |
-
node_modules
|
9 |
-
vendor
|
10 |
-
package.json
|
11 |
-
package-lock.json
|
12 |
-
composer.json
|
13 |
-
Gruntfile.js
|
14 |
-
|
15 |
-
# Local environment and scripts
|
16 |
-
bin
|
17 |
-
tests
|
18 |
-
tools
|
19 |
-
docker-compose.yml
|
20 |
-
docker-compose.yaml
|
21 |
-
phpunit.xml
|
22 |
-
phpunit.xml.dist
|
23 |
-
phpcs.xml.dist
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/.jshintrc
DELETED
@@ -1,26 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"boss": true,
|
3 |
-
"curly": true,
|
4 |
-
"eqeqeq": true,
|
5 |
-
"eqnull": true,
|
6 |
-
"es3": true,
|
7 |
-
"expr": true,
|
8 |
-
"immed": true,
|
9 |
-
"noarg": true,
|
10 |
-
"onevar": true,
|
11 |
-
"trailing": true,
|
12 |
-
"undef": true,
|
13 |
-
"unused": true,
|
14 |
-
|
15 |
-
"browser": true,
|
16 |
-
|
17 |
-
"globals": {
|
18 |
-
"_": false,
|
19 |
-
"Backbone": false,
|
20 |
-
"jQuery": true,
|
21 |
-
"console": true,
|
22 |
-
"alert": true,
|
23 |
-
"JSON": false,
|
24 |
-
"wp": false
|
25 |
-
}
|
26 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/Gruntfile.js
DELETED
@@ -1,162 +0,0 @@
|
|
1 |
-
const potInfo = {
|
2 |
-
languageFolderPath: './languages/',
|
3 |
-
filename : 'yith-plugin-fw.pot',
|
4 |
-
headers : {
|
5 |
-
poedit : true, // Includes common Poedit headers.
|
6 |
-
'x-poedit-keywordslist': true, // Include a list of all possible gettext functions.
|
7 |
-
'report-msgid-bugs-to' : 'YITH <plugins@yithemes.com>',
|
8 |
-
'language-team' : 'YITH <info@yithemes.com>'
|
9 |
-
}
|
10 |
-
};
|
11 |
-
|
12 |
-
module.exports = function ( grunt ) {
|
13 |
-
'use strict';
|
14 |
-
|
15 |
-
grunt.initConfig( {
|
16 |
-
dirs: {
|
17 |
-
css: 'assets/css',
|
18 |
-
js : 'assets/js'
|
19 |
-
},
|
20 |
-
|
21 |
-
uglify: {
|
22 |
-
options: {
|
23 |
-
ie8 : true,
|
24 |
-
parse : {
|
25 |
-
strict: false
|
26 |
-
},
|
27 |
-
output: {
|
28 |
-
comments: /@license|@preserve|^!/
|
29 |
-
}
|
30 |
-
},
|
31 |
-
common : {
|
32 |
-
files: [{
|
33 |
-
expand: true,
|
34 |
-
cwd : '<%= dirs.js %>/',
|
35 |
-
src : ['*.js', '!*.min.js'],
|
36 |
-
dest : '<%= dirs.js %>/',
|
37 |
-
rename: function ( dst, src ) {
|
38 |
-
// To keep the source js files and make new files as `*.min.js`:
|
39 |
-
return dst + '/' + src.replace( '.js', '.min.js' );
|
40 |
-
}
|
41 |
-
}]
|
42 |
-
}
|
43 |
-
},
|
44 |
-
|
45 |
-
jshint: {
|
46 |
-
options: {
|
47 |
-
jshintrc: '.jshintrc'
|
48 |
-
},
|
49 |
-
all : [
|
50 |
-
'<%= dirs.js %>/*.js',
|
51 |
-
'!<%= dirs.js %>/*.min.js'
|
52 |
-
]
|
53 |
-
},
|
54 |
-
|
55 |
-
|
56 |
-
makepot : {
|
57 |
-
options: {
|
58 |
-
type : 'wp-plugin',
|
59 |
-
domainPath : 'languages',
|
60 |
-
domain : 'yith-plugin-fw',
|
61 |
-
potHeaders : potInfo.headers,
|
62 |
-
updatePoFiles: false
|
63 |
-
},
|
64 |
-
dist : {
|
65 |
-
options: {
|
66 |
-
potFilename: potInfo.filename,
|
67 |
-
exclude : [
|
68 |
-
'bin/.*',
|
69 |
-
'node_modules/.*',
|
70 |
-
'tests/.*',
|
71 |
-
'tmp/.*',
|
72 |
-
'vendor/.*'
|
73 |
-
]
|
74 |
-
}
|
75 |
-
}
|
76 |
-
},
|
77 |
-
update_po: {
|
78 |
-
options: {
|
79 |
-
template: potInfo.languageFolderPath + potInfo.filename
|
80 |
-
},
|
81 |
-
build : {
|
82 |
-
src: potInfo.languageFolderPath + '*.po'
|
83 |
-
}
|
84 |
-
},
|
85 |
-
|
86 |
-
// PHP Code Sniffer.
|
87 |
-
phpcs: {
|
88 |
-
options: {
|
89 |
-
bin: 'vendor/bin/phpcs'
|
90 |
-
},
|
91 |
-
dist : {
|
92 |
-
src: [
|
93 |
-
'**/*.php', // Include all php files.
|
94 |
-
'!node_modules/**',
|
95 |
-
'!tests/**',
|
96 |
-
'!tools/**',
|
97 |
-
'!tmp/**',
|
98 |
-
'!vendor/**'
|
99 |
-
]
|
100 |
-
}
|
101 |
-
}
|
102 |
-
|
103 |
-
} );
|
104 |
-
|
105 |
-
grunt.registerMultiTask( 'update_po', 'This task update .po strings by .pot', function () {
|
106 |
-
grunt.log.writeln( 'Updating .po files.' );
|
107 |
-
|
108 |
-
var done = this.async(),
|
109 |
-
options = this.options(),
|
110 |
-
template = options.template;
|
111 |
-
this.files.forEach( function ( file ) {
|
112 |
-
if ( file.src.length ) {
|
113 |
-
var counter = file.src.length;
|
114 |
-
|
115 |
-
grunt.log.writeln( 'Processing ' + file.src.length + ' files.' );
|
116 |
-
|
117 |
-
file.src.forEach( function ( fileSrc ) {
|
118 |
-
grunt.util.spawn( {
|
119 |
-
cmd : 'msgmerge',
|
120 |
-
args: ['-U', fileSrc, template]
|
121 |
-
}, function ( error, result, code ) {
|
122 |
-
const output = fileSrc.replace( '.po', '.mo' );
|
123 |
-
grunt.log.writeln( 'Updating: ' + fileSrc + ' ...' );
|
124 |
-
|
125 |
-
if ( error ) {
|
126 |
-
grunt.verbose.error();
|
127 |
-
} else {
|
128 |
-
grunt.verbose.ok();
|
129 |
-
}
|
130 |
-
|
131 |
-
// Updating also the .mo files
|
132 |
-
grunt.util.spawn( {
|
133 |
-
cmd : 'msgfmt',
|
134 |
-
args: [fileSrc, '-o', output]
|
135 |
-
}, function ( moError, moResult, moCode ) {
|
136 |
-
grunt.log.writeln( 'Updating MO for: ' + fileSrc + ' ...' );
|
137 |
-
counter--;
|
138 |
-
if ( moError || counter === 0 ) {
|
139 |
-
done( moError );
|
140 |
-
}
|
141 |
-
} );
|
142 |
-
if ( error ) {
|
143 |
-
done( error );
|
144 |
-
}
|
145 |
-
} );
|
146 |
-
} );
|
147 |
-
} else {
|
148 |
-
grunt.log.writeln( 'No file to process.' );
|
149 |
-
}
|
150 |
-
} );
|
151 |
-
} );
|
152 |
-
|
153 |
-
// Load NPM tasks to be used here.
|
154 |
-
grunt.loadNpmTasks( 'grunt-wp-i18n' );
|
155 |
-
grunt.loadNpmTasks( 'grunt-phpcs' );
|
156 |
-
|
157 |
-
// Use uglify-es (instead of uglify) to uglify also JS for ES6.
|
158 |
-
grunt.loadNpmTasks( 'grunt-contrib-uglify-es' );
|
159 |
-
|
160 |
-
// Register tasks.
|
161 |
-
grunt.registerTask( 'js', ['uglify'] );
|
162 |
-
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/assets/css/elementor.css
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Style for Elementor Editor customization
|
3 |
+
*/
|
4 |
+
|
5 |
+
.yith-plugin-fw-elementor-widget-description {
|
6 |
+
margin-bottom : 10px;
|
7 |
+
font-style : italic;
|
8 |
+
}
|
9 |
+
|
10 |
+
.yith-plugin-fw-elementor-shortcode-widget--shortcode,
|
11 |
+
.yith-plugin-fw-elementor-shortcode-widget--empty-html {
|
12 |
+
font-family : -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
13 |
+
padding : 1em 1em 1.2em;
|
14 |
+
border : 1px solid #1e1e1e;
|
15 |
+
border-radius : 4px;
|
16 |
+
}
|
17 |
+
|
18 |
+
.yith-plugin-fw-elementor-shortcode-widget__title {
|
19 |
+
font-size : 15px;
|
20 |
+
font-weight : 700;
|
21 |
+
margin-bottom : 10px;
|
22 |
+
}
|
23 |
+
|
24 |
+
.yith-plugin-fw-elementor-shortcode-widget__message {
|
25 |
+
font-style : italic;
|
26 |
+
font-size : 13px;
|
27 |
+
}
|
28 |
+
|
29 |
+
.yith-plugin-fw-elementor-shortcode-widget--shortcode .yith-plugin-fw-elementor-shortcode-widget__content {
|
30 |
+
font-family : Menlo, Consolas, monaco, monospace;
|
31 |
+
color : #1e1e1e;
|
32 |
+
font-size : 13px;
|
33 |
+
padding : 0.8em 1em;
|
34 |
+
border : 1px solid #ddd;
|
35 |
+
border-radius : 4px;
|
36 |
+
}
|
plugin-fw/assets/css/metaboxes.css
CHANGED
@@ -179,7 +179,6 @@
|
|
179 |
display : inline-block;
|
180 |
line-height : 23px;
|
181 |
width : auto;
|
182 |
-
vertical-align : middle;
|
183 |
margin : 0;
|
184 |
}
|
185 |
|
179 |
display : inline-block;
|
180 |
line-height : 23px;
|
181 |
width : auto;
|
|
|
182 |
margin : 0;
|
183 |
}
|
184 |
|
plugin-fw/assets/css/yit-plugin-panel.css
CHANGED
@@ -117,9 +117,9 @@
|
|
117 |
}
|
118 |
|
119 |
.yith-plugin-fw-wp-page-wrapper .wrap h1.wp-heading-inline {
|
120 |
-
color
|
121 |
-
font-size
|
122 |
-
font-weight
|
123 |
}
|
124 |
|
125 |
.yith-plugin-fw-wp-page-wrapper .wrap a.page-title-action,
|
@@ -514,9 +514,9 @@
|
|
514 |
}
|
515 |
|
516 |
#wpwrap h2.nav-tab-wrapper, #wpbody-content h2.nav-tab-wrapper {
|
517 |
-
border-bottom
|
518 |
-
margin-right
|
519 |
-
text-transform: uppercase;
|
520 |
}
|
521 |
|
522 |
/* === YIT FRAMEWORK === */
|
@@ -535,9 +535,7 @@
|
|
535 |
.yith-plugin-ui .yit-admin-panel-container {
|
536 |
position : relative;
|
537 |
margin-right : 15px;
|
538 |
-
margin-top : -3px;
|
539 |
z-index : 0;
|
540 |
-
border-top : 1px solid #dbdada;
|
541 |
}
|
542 |
|
543 |
.yit-admin-panel-content-wrap {
|
@@ -576,12 +574,11 @@
|
|
576 |
*/
|
577 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav {
|
578 |
background : #fff;
|
579 |
-
padding : 10px 14px
|
580 |
box-sizing : border-box;
|
581 |
margin-right : 15px;
|
582 |
border-left : 1px solid #d8d8d8;
|
583 |
border-right : 1px solid #d8d8d8;
|
584 |
-
margin-top : -2px;
|
585 |
}
|
586 |
|
587 |
.yith-plugin-ui .yith-plugin-fw-wp-page-wrapper .wrap {
|
@@ -683,13 +680,12 @@ li.yith-plugin-fw-tab-element {
|
|
683 |
margin : 0;
|
684 |
padding : 0;
|
685 |
display : inline-block;
|
686 |
-
height : 37px;
|
687 |
overflow : visible;
|
688 |
z-index : 10;
|
689 |
}
|
690 |
|
691 |
-
.yith-plugin-
|
692 |
-
margin-
|
693 |
}
|
694 |
|
695 |
li.yith-plugin-fw-tab-element:hover {
|
@@ -736,10 +732,6 @@ li.yith-plugin-fw-tab-element a.nav-tab i:before {
|
|
736 |
color : #fff;
|
737 |
}
|
738 |
|
739 |
-
.yith-plugin-fw-panel .woocommerce-page {
|
740 |
-
margin-top : -2px;
|
741 |
-
}
|
742 |
-
|
743 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav ~ .yit-admin-panel-container {
|
744 |
margin-top : 0;
|
745 |
padding-top : 0;
|
117 |
}
|
118 |
|
119 |
.yith-plugin-fw-wp-page-wrapper .wrap h1.wp-heading-inline {
|
120 |
+
color : #2a8db0;
|
121 |
+
font-size : 16px;
|
122 |
+
font-weight : 600;
|
123 |
}
|
124 |
|
125 |
.yith-plugin-fw-wp-page-wrapper .wrap a.page-title-action,
|
514 |
}
|
515 |
|
516 |
#wpwrap h2.nav-tab-wrapper, #wpbody-content h2.nav-tab-wrapper {
|
517 |
+
border-bottom : 1px solid #ccc;
|
518 |
+
margin-right : 15px;
|
519 |
+
text-transform : uppercase;
|
520 |
}
|
521 |
|
522 |
/* === YIT FRAMEWORK === */
|
535 |
.yith-plugin-ui .yit-admin-panel-container {
|
536 |
position : relative;
|
537 |
margin-right : 15px;
|
|
|
538 |
z-index : 0;
|
|
|
539 |
}
|
540 |
|
541 |
.yit-admin-panel-content-wrap {
|
574 |
*/
|
575 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav {
|
576 |
background : #fff;
|
577 |
+
padding : 10px 14px 0 20px;
|
578 |
box-sizing : border-box;
|
579 |
margin-right : 15px;
|
580 |
border-left : 1px solid #d8d8d8;
|
581 |
border-right : 1px solid #d8d8d8;
|
|
|
582 |
}
|
583 |
|
584 |
.yith-plugin-ui .yith-plugin-fw-wp-page-wrapper .wrap {
|
680 |
margin : 0;
|
681 |
padding : 0;
|
682 |
display : inline-block;
|
|
|
683 |
overflow : visible;
|
684 |
z-index : 10;
|
685 |
}
|
686 |
|
687 |
+
.yith-plugin-ui li.yith-plugin-fw-tab-element {
|
688 |
+
margin-bottom: -1px;
|
689 |
}
|
690 |
|
691 |
li.yith-plugin-fw-tab-element:hover {
|
732 |
color : #fff;
|
733 |
}
|
734 |
|
|
|
|
|
|
|
|
|
735 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav ~ .yit-admin-panel-container {
|
736 |
margin-top : 0;
|
737 |
padding-top : 0;
|
plugin-fw/assets/css/yith-fields.css
CHANGED
@@ -8,8 +8,10 @@
|
|
8 |
}
|
9 |
|
10 |
.yith-plugin-fw span.description.inline {
|
11 |
-
display
|
12 |
-
margin
|
|
|
|
|
13 |
}
|
14 |
|
15 |
.yith-disabled {
|
@@ -95,7 +97,8 @@
|
|
95 |
.yith-plugin-fw .select2-container .select2-search--inline .select2-search__field,
|
96 |
.woocommerce .yith-plugin-fw input.select2-search__field,
|
97 |
.woocommerce .yith-plugin-fw table.form-table input.select2-search__field {
|
98 |
-
padding
|
|
|
99 |
}
|
100 |
|
101 |
.yith-plugin-fw .select2-container .select2-selection--single .select2-selection__rendered {
|
@@ -466,205 +469,6 @@ WordPress 5.3 with old panel fixes
|
|
466 |
/****************
|
467 |
YITH UI
|
468 |
****************/
|
469 |
-
@font-face {
|
470 |
-
font-family : 'yith-icon';
|
471 |
-
src : url('../fonts/yith-icon.eot?g6bfgy');
|
472 |
-
src : url('../fonts/yith-icon.eot?g6bfgy#iefix') format('embedded-opentype'),
|
473 |
-
url('../fonts/yith-icon.ttf?g6bfgy') format('truetype'),
|
474 |
-
url('../fonts/yith-icon.woff?g6bfgy') format('woff'),
|
475 |
-
url('../fonts/yith-icon.svg?g6bfgy#yith-icon') format('svg');
|
476 |
-
font-weight : normal;
|
477 |
-
font-style : normal;
|
478 |
-
}
|
479 |
-
|
480 |
-
[class^="icon-"], [class*=" icon-"][class^="yith-icon-"], [class*=" yith-icon-"] {
|
481 |
-
/* use !important to prevent issues with browser extensions that change fonts */
|
482 |
-
font-family : 'yith-icon' !important;
|
483 |
-
speak : none;
|
484 |
-
font-style : normal;
|
485 |
-
font-weight : normal;
|
486 |
-
font-variant : normal;
|
487 |
-
text-transform : none;
|
488 |
-
line-height : 1;
|
489 |
-
|
490 |
-
/* Better Font Rendering =========== */
|
491 |
-
-webkit-font-smoothing : antialiased;
|
492 |
-
-moz-osx-font-smoothing : grayscale;
|
493 |
-
}
|
494 |
-
|
495 |
-
.yith-icon-paypal-svgrepo-com:before {
|
496 |
-
content : "\e91b";
|
497 |
-
}
|
498 |
-
|
499 |
-
.yith-icon-check-circle:before {
|
500 |
-
content : "\e921";
|
501 |
-
color : #757575;
|
502 |
-
}
|
503 |
-
|
504 |
-
.yith-icon-info-squared:before {
|
505 |
-
content : "\e922";
|
506 |
-
color : #757575;
|
507 |
-
}
|
508 |
-
|
509 |
-
.yith-icon-warning-triangle:before {
|
510 |
-
content : "\e923";
|
511 |
-
color : #757575;
|
512 |
-
}
|
513 |
-
|
514 |
-
.yith-icon-bank:before {
|
515 |
-
content : "\e91c";
|
516 |
-
}
|
517 |
-
|
518 |
-
.yith-icon-accounting:before {
|
519 |
-
content : "\e91d";
|
520 |
-
}
|
521 |
-
|
522 |
-
.yith-icon-bank-check:before {
|
523 |
-
content : "\e91e";
|
524 |
-
}
|
525 |
-
|
526 |
-
.yith-icon-cash:before {
|
527 |
-
content : "\e91f";
|
528 |
-
}
|
529 |
-
|
530 |
-
.yith-icon-credit-card:before {
|
531 |
-
content : "\e920";
|
532 |
-
}
|
533 |
-
|
534 |
-
.yith-icon-calendar_add:before {
|
535 |
-
content : "\e913";
|
536 |
-
color : #757575;
|
537 |
-
}
|
538 |
-
|
539 |
-
.yith-icon-calendar_money:before {
|
540 |
-
content : "\e914";
|
541 |
-
color : #757575;
|
542 |
-
}
|
543 |
-
|
544 |
-
.yith-icon-calendar2:before {
|
545 |
-
content : "\e915";
|
546 |
-
color : #757575;
|
547 |
-
}
|
548 |
-
|
549 |
-
.yith-icon-people:before {
|
550 |
-
content : "\e916";
|
551 |
-
color : #757575;
|
552 |
-
}
|
553 |
-
|
554 |
-
.yith-icon-shield_money:before {
|
555 |
-
content : "\e917";
|
556 |
-
color : #757575;
|
557 |
-
}
|
558 |
-
|
559 |
-
.yith-icon-time_check:before {
|
560 |
-
content : "\e918";
|
561 |
-
color : #757575;
|
562 |
-
}
|
563 |
-
|
564 |
-
.yith-icon-world_settings:before {
|
565 |
-
content : "\e919";
|
566 |
-
color : #757575;
|
567 |
-
}
|
568 |
-
|
569 |
-
.yith-icon-arrow_eye_closed:before {
|
570 |
-
content : "\e912";
|
571 |
-
color : #757575;
|
572 |
-
}
|
573 |
-
|
574 |
-
.yith-icon-arrow_eye:before {
|
575 |
-
content : "\e911";
|
576 |
-
color : #757575;
|
577 |
-
}
|
578 |
-
|
579 |
-
.yith-icon-reset:before {
|
580 |
-
content : "\e910";
|
581 |
-
color : #757575;
|
582 |
-
}
|
583 |
-
|
584 |
-
.yith-icon-drag:before {
|
585 |
-
content : "\e90f";
|
586 |
-
color : #757575;
|
587 |
-
}
|
588 |
-
|
589 |
-
.yith-icon-trash:before {
|
590 |
-
content : "\e90d";
|
591 |
-
color : #757575;
|
592 |
-
}
|
593 |
-
|
594 |
-
.yith-icon-info:before {
|
595 |
-
content : "\e90e";
|
596 |
-
color : #757575;
|
597 |
-
}
|
598 |
-
|
599 |
-
.yith-icon-arrow_down:before {
|
600 |
-
content : "\e900";
|
601 |
-
color : #757575;
|
602 |
-
}
|
603 |
-
|
604 |
-
.yith-icon-arrow_left:before {
|
605 |
-
content : "\e901";
|
606 |
-
color : #757575;
|
607 |
-
}
|
608 |
-
|
609 |
-
.yith-icon-arrow_right:before {
|
610 |
-
content : "\e902";
|
611 |
-
color : #757575;
|
612 |
-
}
|
613 |
-
|
614 |
-
.yith-icon-arrow_up:before {
|
615 |
-
content : "\e903";
|
616 |
-
color : #757575;
|
617 |
-
}
|
618 |
-
|
619 |
-
.yith-icon-calendar:before {
|
620 |
-
content : "\e904";
|
621 |
-
color : #757575;
|
622 |
-
}
|
623 |
-
|
624 |
-
.yith-icon-check:before {
|
625 |
-
content : "\e905";
|
626 |
-
color : #757575;
|
627 |
-
}
|
628 |
-
|
629 |
-
.yith-icon-close:before {
|
630 |
-
content : "\e906";
|
631 |
-
color : #757575;
|
632 |
-
}
|
633 |
-
|
634 |
-
.yith-icon-edit:before {
|
635 |
-
content : "\e907";
|
636 |
-
color : #757575;
|
637 |
-
}
|
638 |
-
|
639 |
-
.yith-icon-magnifier:before {
|
640 |
-
content : "\e908";
|
641 |
-
color : #757575;
|
642 |
-
}
|
643 |
-
|
644 |
-
.yith-icon-pencil:before {
|
645 |
-
content : "\e909";
|
646 |
-
color : #757575;
|
647 |
-
}
|
648 |
-
|
649 |
-
.yith-icon-plus:before {
|
650 |
-
content : "\e90a";
|
651 |
-
color : #757575;
|
652 |
-
}
|
653 |
-
|
654 |
-
.yith-icon-update:before {
|
655 |
-
content : "\e90b";
|
656 |
-
color : #757575;
|
657 |
-
}
|
658 |
-
|
659 |
-
.yith-icon-upload:before {
|
660 |
-
content : "\e90c";
|
661 |
-
color : #757575;
|
662 |
-
}
|
663 |
-
|
664 |
-
.yith-icon-reply:before {
|
665 |
-
content : "\e91a";
|
666 |
-
}
|
667 |
-
|
668 |
.yith-plugin-fw-banner {
|
669 |
width : 100%;
|
670 |
height : 45px;
|
@@ -729,18 +533,15 @@ YITH UI
|
|
729 |
}
|
730 |
|
731 |
.yith-plugin-ui .nav-tab {
|
732 |
-
margin-left : 0px;
|
733 |
-
margin-right : 2px;
|
734 |
background-color : #336374;
|
735 |
color : #fff;
|
736 |
font-size : 15px;
|
737 |
padding : 7px 20px;
|
738 |
border : 0;
|
|
|
739 |
transition : background-color 0.3s linear;
|
740 |
-
|
741 |
-
|
742 |
-
.yith-plugin-ui .nav-tab:first-child {
|
743 |
-
border-left : 1px solid #d9d9d9;
|
744 |
}
|
745 |
|
746 |
.yith-plugin-ui .nav-tab.yith-premium {
|
@@ -755,7 +556,11 @@ YITH UI
|
|
755 |
.yith-plugin-ui .nav-tab-active {
|
756 |
background-color : #fff;
|
757 |
color : #336374;
|
758 |
-
|
|
|
|
|
|
|
|
|
759 |
}
|
760 |
|
761 |
.yith-plugin-ui .nav-tab-active.yith-premium {
|
@@ -798,7 +603,7 @@ YITH UI
|
|
798 |
|
799 |
#wpwrap .yith-plugin-ui h2.nav-tab-wrapper, #wpbody-content .yith-plugin-ui h2.nav-tab-wrapper {
|
800 |
border : 0;
|
801 |
-
|
802 |
margin-right : 15px;
|
803 |
margin-bottom : 0;
|
804 |
background-color : transparent;
|
@@ -1159,7 +964,7 @@ YITH UI
|
|
1159 |
.yith-plugin-ui button.yith-plugin-fw-upload-button:before {
|
1160 |
content : "\e90c";
|
1161 |
font-family : 'yith-icon';
|
1162 |
-
font-size :
|
1163 |
font-weight : 400;
|
1164 |
margin-right : 10px;
|
1165 |
vertical-align : middle;
|
@@ -1500,6 +1305,12 @@ span.select2.select2-container.select2-container--default.yith-plugin-fw-select2
|
|
1500 |
/**
|
1501 |
DATEPICKER
|
1502 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
1503 |
div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
1504 |
border : 0;
|
1505 |
box-shadow : 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 2px 10px 0 rgba(0, 0, 0, 0.12) !important;
|
@@ -1712,7 +1523,7 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
|
1712 |
content : "\e91a";
|
1713 |
text-indent : 0;
|
1714 |
font-family : 'yith-icon';
|
1715 |
-
font-size :
|
1716 |
color : #d8d8d8;
|
1717 |
font-weight : normal;
|
1718 |
width : 15px;
|
@@ -2297,6 +2108,84 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
|
2297 |
border-color : #007694;
|
2298 |
}
|
2299 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2300 |
|
2301 |
/** OVERRIDE WOOCOMMERCE CLASSES FOR 5.3 */
|
2302 |
.branch-5-3 .yith-plugin-fw .select2-container .select2-selection--single .select2-selection__arrow {
|
@@ -2453,13 +2342,16 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
|
2453 |
}
|
2454 |
|
2455 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input + span {
|
2456 |
-
width
|
2457 |
-
height
|
|
|
2458 |
}
|
2459 |
|
2460 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input + span:before {
|
2461 |
-
top
|
2462 |
-
left
|
|
|
|
|
2463 |
}
|
2464 |
|
2465 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:before, .yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:before {
|
@@ -2467,15 +2359,15 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
|
2467 |
}
|
2468 |
|
2469 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:after, .yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:after {
|
2470 |
-
font-size
|
2471 |
-
padding
|
2472 |
-
margin-top
|
2473 |
}
|
2474 |
|
2475 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input + span:after {
|
2476 |
font-size : 11px;
|
2477 |
-
padding-left :
|
2478 |
-
margin-top :
|
2479 |
}
|
2480 |
|
2481 |
.yith-plugin-fw .select2-container .select2-selection--single .select2-selection__rendered {
|
8 |
}
|
9 |
|
10 |
.yith-plugin-fw span.description.inline {
|
11 |
+
display : inline-block;
|
12 |
+
margin : 0 0 0 5px;
|
13 |
+
min-width : 0;
|
14 |
+
max-width : 100%;
|
15 |
}
|
16 |
|
17 |
.yith-disabled {
|
97 |
.yith-plugin-fw .select2-container .select2-search--inline .select2-search__field,
|
98 |
.woocommerce .yith-plugin-fw input.select2-search__field,
|
99 |
.woocommerce .yith-plugin-fw table.form-table input.select2-search__field {
|
100 |
+
padding : 3px;
|
101 |
+
min-width : 380px;
|
102 |
}
|
103 |
|
104 |
.yith-plugin-fw .select2-container .select2-selection--single .select2-selection__rendered {
|
469 |
/****************
|
470 |
YITH UI
|
471 |
****************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
472 |
.yith-plugin-fw-banner {
|
473 |
width : 100%;
|
474 |
height : 45px;
|
533 |
}
|
534 |
|
535 |
.yith-plugin-ui .nav-tab {
|
|
|
|
|
536 |
background-color : #336374;
|
537 |
color : #fff;
|
538 |
font-size : 15px;
|
539 |
padding : 7px 20px;
|
540 |
border : 0;
|
541 |
+
margin : 0 4px 0 0;
|
542 |
transition : background-color 0.3s linear;
|
543 |
+
float : none;
|
544 |
+
display : inline-block;
|
|
|
|
|
545 |
}
|
546 |
|
547 |
.yith-plugin-ui .nav-tab.yith-premium {
|
556 |
.yith-plugin-ui .nav-tab-active {
|
557 |
background-color : #fff;
|
558 |
color : #336374;
|
559 |
+
box-shadow : 0 3px 0 -1px #fff;
|
560 |
+
}
|
561 |
+
|
562 |
+
.yith-plugin-ui .yith-plugin-fw-tab-element:first-child .nav-tab-active {
|
563 |
+
border-left : 1px solid #ddd;
|
564 |
}
|
565 |
|
566 |
.yith-plugin-ui .nav-tab-active.yith-premium {
|
603 |
|
604 |
#wpwrap .yith-plugin-ui h2.nav-tab-wrapper, #wpbody-content .yith-plugin-ui h2.nav-tab-wrapper {
|
605 |
border : 0;
|
606 |
+
border-bottom : 1px solid #ddd;
|
607 |
margin-right : 15px;
|
608 |
margin-bottom : 0;
|
609 |
background-color : transparent;
|
964 |
.yith-plugin-ui button.yith-plugin-fw-upload-button:before {
|
965 |
content : "\e90c";
|
966 |
font-family : 'yith-icon';
|
967 |
+
font-size : 17px;
|
968 |
font-weight : 400;
|
969 |
margin-right : 10px;
|
970 |
vertical-align : middle;
|
1305 |
/**
|
1306 |
DATEPICKER
|
1307 |
*/
|
1308 |
+
.yith-plugin-ui .yith-plugin-fw-datepicker + .yith-icon-calendar,
|
1309 |
+
.yith-plugin-fw-datepicker + .yith-icon-calendar {
|
1310 |
+
color : #ccc;
|
1311 |
+
font-size : 18px;
|
1312 |
+
}
|
1313 |
+
|
1314 |
div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
1315 |
border : 0;
|
1316 |
box-shadow : 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 2px 10px 0 rgba(0, 0, 0, 0.12) !important;
|
1523 |
content : "\e91a";
|
1524 |
text-indent : 0;
|
1525 |
font-family : 'yith-icon';
|
1526 |
+
font-size : 16px;
|
1527 |
color : #d8d8d8;
|
1528 |
font-weight : normal;
|
1529 |
width : 15px;
|
2108 |
border-color : #007694;
|
2109 |
}
|
2110 |
|
2111 |
+
/**
|
2112 |
+
* Copy to clipboard
|
2113 |
+
*/
|
2114 |
+
.yith-plugin-fw-copy-to-clipboard {
|
2115 |
+
background : #ffffff;
|
2116 |
+
border-radius : 8px;
|
2117 |
+
border : 1px solid #d8d8d8;
|
2118 |
+
display : flex;
|
2119 |
+
align-items : center;
|
2120 |
+
padding : 0 12px;
|
2121 |
+
max-width : 400px;
|
2122 |
+
box-sizing : border-box;
|
2123 |
+
}
|
2124 |
+
|
2125 |
+
.yith-plugin-fw-copy-to-clipboard.yith-plugin-fw-copy-to-clipboard--readonly {
|
2126 |
+
background : #f1f1f1;
|
2127 |
+
border : 1px dashed #cccccc;
|
2128 |
+
}
|
2129 |
+
|
2130 |
+
.yith-plugin-fw-copy-to-clipboard__field-wrap {
|
2131 |
+
position : relative;
|
2132 |
+
flex : 1;
|
2133 |
+
}
|
2134 |
+
|
2135 |
+
.yith-plugin-fw-copy-to-clipboard__tip {
|
2136 |
+
display : none;
|
2137 |
+
position : absolute;
|
2138 |
+
background : rgba(30, 30, 30, 0.9);
|
2139 |
+
color : #ffffff;
|
2140 |
+
padding : 7px 10px;
|
2141 |
+
border-radius : 3px;
|
2142 |
+
right : 8px;
|
2143 |
+
top : 50%;
|
2144 |
+
transform : translateY(-50%);
|
2145 |
+
pointer-events : none;
|
2146 |
+
font-size : 12px;
|
2147 |
+
line-height : 1;
|
2148 |
+
}
|
2149 |
+
|
2150 |
+
|
2151 |
+
.yith-plugin-fw-copy-to-clipboard input[type=text].yith-plugin-fw-copy-to-clipboard__field,
|
2152 |
+
.woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text].yith-plugin-fw-copy-to-clipboard__field {
|
2153 |
+
height : 38px;
|
2154 |
+
width : 100%;
|
2155 |
+
background : transparent;
|
2156 |
+
padding : 0;
|
2157 |
+
border : 0;
|
2158 |
+
border-radius : 0;
|
2159 |
+
}
|
2160 |
+
|
2161 |
+
.yith-plugin-fw-copy-to-clipboard.yith-plugin-fw-copy-to-clipboard--readonly input[type=text].yith-plugin-fw-copy-to-clipboard__field,
|
2162 |
+
.woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table .yith-plugin-fw-copy-to-clipboard--readonly input[type=text].yith-plugin-fw-copy-to-clipboard__field {
|
2163 |
+
color : #999;
|
2164 |
+
cursor : default;
|
2165 |
+
}
|
2166 |
+
|
2167 |
+
.yith-plugin-fw-copy-to-clipboard__copy {
|
2168 |
+
display : flex;
|
2169 |
+
align-items : center;
|
2170 |
+
cursor : pointer;
|
2171 |
+
border-radius : 2px;
|
2172 |
+
padding : 1px;
|
2173 |
+
user-select : none;
|
2174 |
+
}
|
2175 |
+
|
2176 |
+
.yith-plugin-fw-copy-to-clipboard__copy:hover {
|
2177 |
+
box-shadow : 0 0 0 2px #2470ff;
|
2178 |
+
}
|
2179 |
+
|
2180 |
+
.yith-plugin-fw-copy-to-clipboard__copy__text {
|
2181 |
+
font-size : 12px;
|
2182 |
+
font-weight : 600;
|
2183 |
+
}
|
2184 |
+
|
2185 |
+
.yith-plugin-fw-copy-to-clipboard__copy__icon {
|
2186 |
+
margin-right : 4px;
|
2187 |
+
font-size : 14px;
|
2188 |
+
}
|
2189 |
|
2190 |
/** OVERRIDE WOOCOMMERCE CLASSES FOR 5.3 */
|
2191 |
.branch-5-3 .yith-plugin-fw .select2-container .select2-selection--single .select2-selection__arrow {
|
2342 |
}
|
2343 |
|
2344 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input + span {
|
2345 |
+
width : 48px;
|
2346 |
+
height : 20px;
|
2347 |
+
padding : 2px;
|
2348 |
}
|
2349 |
|
2350 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input + span:before {
|
2351 |
+
top : 4px;
|
2352 |
+
left : 3px;
|
2353 |
+
width : 10px;
|
2354 |
+
height : 10px;
|
2355 |
}
|
2356 |
|
2357 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:before, .yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:before {
|
2359 |
}
|
2360 |
|
2361 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:after, .yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:after {
|
2362 |
+
font-size : 11px;
|
2363 |
+
padding-right : 12px;
|
2364 |
+
margin-top : 0;
|
2365 |
}
|
2366 |
|
2367 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input + span:after {
|
2368 |
font-size : 11px;
|
2369 |
+
padding-left : 12px;
|
2370 |
+
margin-top : 0;
|
2371 |
}
|
2372 |
|
2373 |
.yith-plugin-fw .select2-container .select2-selection--single .select2-selection__rendered {
|
plugin-fw/assets/css/yith-icon.css
ADDED
@@ -0,0 +1,271 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* DO NOT EDIT THIS FILE DIRECTLY
|
3 |
+
* This file is automatically built using a build process
|
4 |
+
*/
|
5 |
+
|
6 |
+
/* stylelint-disable function-url-quotes, declaration-colon-newline-after */
|
7 |
+
@font-face {
|
8 |
+
font-family: yith-icon;
|
9 |
+
src: url("../fonts/yith-icon.eot?c433269285442943176e8d23fe8a0d79");
|
10 |
+
src: url("../fonts/yith-icon.eot?c433269285442943176e8d23fe8a0d79#iefix") format("embedded-opentype"),
|
11 |
+
url("data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAABZ4AAsAAAAAJlgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAAQAAAAFY4xkrtY21hcAAAAXwAAAEiAAADjOVDAG5nbHlmAAACoAAAEKUAABxIxW96k2hlYWQAABNIAAAAMAAAADYZ8YY2aGhlYQAAE3gAAAAeAAAAJAQ1AhtobXR4AAATmAAAACIAAACUSAT/7GxvY2EAABO8AAAATAAAAEx7BICobWF4cAAAFAgAAAAfAAAAIAFDAVZuYW1lAAAUKAAAATAAAAIiyMcJZnBvc3QAABVYAAABHwAAAaxT8f8ZeJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2Bk/MQ4gYGVgYNBjDGNgYHBHUp/ZZBkaGFgYGJgZWbACgLSXFMYHF4yfGRiAnH1mNgYeIE0I4gDAIwfCDF4nO3TyXHDMBBE0U+K2ndZ+75V+eJYHI4D8smB+TJHRSD3sBWGUfUIEhRRAHoENIGGfEgFxQ8F2b41WtTjDXr1eMWXnlvqC8q4P8rnE4JHkb1aoXef6kt9UWneHkNGzFjJjgMXziyZ6m7OGx26+sWWIydu7NnQrmfoM2HAgit3xqw1bYv/NshL8ft6es9zN502UVjmGKVlltGwzDgqyyyjacqHaJmSItqmvIiOKT2ia/V4z5Qo0TclSgxMKRNDU97EyJQ8MTbVADGx+tupqS6ImalCiBdyLXMj17Kwei9LUyURK1NNEWtTdREbU50RW1PFETsj3++NPIODZf3H0chzOhm577OR+7hYphRXI9d4M3Lsbqpq/WNM9c2jNNZ/+gpeOwAAeJytOGuQHMV5/c2rZ3Zmdndm53G7O7Pv3dHd6u6k28fo2HvoDk5CD0AC6STxEo8TAQfKQQkQySSW4yooExPiihMlQg5JpSqGxH9SLmNwqhKSwiDbqZRdhMRAhXLCOUVclAvLSVyxxShfz+69JMCmKnez33R//fXX/X39vXqIRfAP/pkjJENckidNMk5myZXkBnKI/BL5ZfIJ8knyBPk98hT5EnmOvEi+jdTVTtmuViTbsJxWeaLbMdqNesuu8kbZ4BHvg+X0YKI7De0G7bRs+j64zvvgwl8QF7wPjq3bx7QbrXXt6vpOE96fCJ5vRstNLZ3W4DjC6BvLyzvh+M5lhmHg3eWXfdb2VcPY5K9r3ulphqExsMlbYiiVDQ77S+vwN1NeEHgGApW1Erwo8gdimMD+aKKPFIRrVgnh7NJSWovOMoawpKWvvjo6BUvRWZjsL8xWmfT9s4aaYj0EzVTqVFpLslWTWnokmRy5tLfEKJHXqaWl5oZ5cEKQhA95mHnENnIBPk1EQupB6IYukAvW229bvxpDskrzabiwQkNd+PgFNizEcI3m8T5NGOC/+zk2/4IQw9V1Hu/zoDgOb7ORC78RQzasMcAR+AlR0V6raK09shOt9ShZIneT+8jjyPkDbGF9211vIusshPv5UyGg9iy4NKAdlDKs0tYEekK1XEE/6EF4iWP8WpKddBJPtZviRJFLxS120gwErBFTNPstBG996AzQ9n5+734v7d1/h3f75xvJNsdFUxz3A+1/NNPU4EWEL15+iNd8+BnDvvEfHqj9xMib/1T8gnl2v89FEccBx/mmHkUxY043iX7xIuoeMFZUSUA2k62kQ6bIdrJjoPsHMVYQaMVeOQ6NFAzc1B44LNMJc9gmsAjAYB1VaFO73KGVSez6XLUjbqmWQ7FOHddudWagHTSCjuOGCKt2EiwX8Y3QsWjQDrHBjoUdCq002t0Jx5JgOSnJ8o8o/ZEsS2lgPgAvIVSnS0UoRQeXl49E7/SgVIJnIJoEeDn6cSLtGZatK5mkriQd1pQtq67rBV23zFyulsuZVFGSigKbZakrC6d4/lOC0pbkVwytyBZAUCpNnfYKJ3696L3yyunTp71S6eYSHLM1LmNxVlGRhAJHbYXLZDgbe6LPuaLBzSf4rPD9PC5Qy0+zBZIKs/x1Om6SBbI/jrj96OWvb200tAAjMPuBVa1nWvZKeHRXWy1atat2C7Xa6lThrYNxLDkeB5ODq2o64/sv+z4sMt2sp1h8w5ucxAe+XmSho9iHhhY9FE/9jGYUl5aWoqcA4LFhFiCHYRN7bTrDZnmE6Kty8cQgxVi6DuaZnWQPOUYeIb9NfhflxDOmsf3gVrFtOSHb74rEPa4v4gZky+1T9oVcGa+GKKoRq6JziaJ4ZD0GQei4nUbQ6LS7IVqj49JGgNCxLSnoSLbltgO7C5PHJ1EFnu+hKrxYEdj2Jj3vrRjFhlbwkzH+/oN91a1p9F+ctKdoxpCrpnNDTs5Q02k3kc6OpTsYe5/2vQXUFf5hZB4o1fO83qC5sKmvRD/+ix5i2vXWKz16ZmgIFJrTuapEVcvM8kMup+YVribG3ZsLgqZMKlKBhXGSXncGFONnapDziwNbG4+z/k3kASwGVtQ4+Ik/p5/5f7HQ45530PfxWfS8i+SDOvd/RNMFb/DXvOQNN3xEY0b10UH+eRW1lyc1Moo2fITcgbZbvsTMBikB+za9LEyt5Ch7NbHElUy101opVFYqHEw4bisYAyq24N+jqdUon4jjPrzILQ9VKlsqlSHce9YwThQlRZEMC4OgVMHmu5bBmjG2gi0QcgWfd9ToL2+B3aYWRbpp6sBpZvS9OOJzuxmzLZXD5pCJz5KiyVfjT5aOScqxq2UN2RxDNpoCo9ffqKr8fYRZU6wTjmXnLFoTKVfGoD0DEwWwksBXMGwXYAJj+Rjwg+ph4cGFhQcfY2Bh5u6ZmbsfZmD/ojX7MWeARwDLgwEE0QvX2pO/ZQ5qhAi+O6ghXHC/8w+Zr0DW3fLX9p/DbxrxVhjNs/BsbOcEXAgyQAH+1Ir+wrJgEV/wFdaGxRiQ1XNlvsH8Iht7xCy5Dj2h3e1Bv1xtUbTeehx7AloAEX/xUIN5i8jCUEzGguzamWYsCY+zgU3kM+HYnpOS5Xwjtr+tXmFI1M3oHU+oDQ0NJa3bjh6F7ce96XyjVmvkv5VvNBJO6lspJwbwtynHa+RpePQLSFwTPM5+U3SLnglF7zSjn/aO4ww2LfqvwRwnhWLJA5v9E5TMjb19pWq6zGrF8oQP5U4b8dNQtq3YZ3+BEnpDgbTeTKMtaKLRNngJrRXO3VUqnUuuVDpTq62Pr7a6q8UPPMWss197aKbHhSEX/ZQ7c4a7s+R+WK168acXf8xJeI5oh0AxObhhQN0QwxR7oTzxC+8M+IKvWcN/17T2XGc1/37Uum7vhh7g+/k+9rkRey/2vtnvfQN7A5unnEQE1C9mNwVoCFWsWdnbhSejTyZPwqeGt8/PRm/ulSEzz0nRJ08k4dT2q7ZHh+Q9YF7FWIgXf4Z8RPg+nkxArsBseC3uGxNTgBWQRKVqBRutibAbdmdBrDSB9bqdNhahlpShjWqFIlUKsC5yWM0tImFrwmUDLIvRRki7cEG3hzfbvXapuePacsltju6cGwtslUYXMMS5up6rS671zD2bGtPbxza7SZkmrNrm+yz4crTYGN11Zc4PMMfU+Zne0xkJ1KRZdR1/opYfkYf0klvPpJWqK9Zyuu7ySQuke7SiU8+kFCVl1tx7kcu36/mmHPD1HFWm/X2ZuBQQBnJ/hjhxFO1ixV9BqRvjwGSdcJ0iMMmoVEfJmPw4hrK6KxE0WImpQAbSyMXRG79041hBpqodjM1Fr5c2L5zd0SyhCI/sGn0+V6+36/Vc0rI8yzqJ+7bSilIuTk0Xy4qSztTd0qP1XHMkX6vnNzfzd9aQuF27jRF7eMMRVmMciyksa8Y50ma57xIfArwHn2f+fT7aFl/hziGMRuEcnGqOfBEeNtQ1fOTBuWgbWc+fxVCflD8sitLByh8QR/eyxd8/jC7hDthaFy/GazkYC7aR3ey2NQMd5NxfBS0sdJly19bHvdTHMKPTJBSAmRieSgt348ZBDhXgWlRyXJwJF07m/KljD93V693VG95TOClocuS1D99zuNVC0IYpe64x1hA5qorFerGTFqkocxaHWQY4PHNOkodOFvYM9xiDh45N+bmTgqxBun24PWDyaLGaE9QExzteTpLwVqsqEmWPIiWADvIRPA9N9EyD5PCk+pZSQSu/tLEzW83i8zvZWhafJ/o9ICbrZc0NrwHfC6i3UbKP3IttLBeZiQbMC1Nc7IgBXlF6sQ3Pcgh64LB20IBZWN8NMJTG9s2jn6+fEHZjV3bo1tj6g60NvOlshdeTcv7eyWsEXaECb/MKVeQdvJickxNSgnN4QUrowjWT9+YTPB991uYFqvT7qiDVx275nKLQBH8UQJDUeRknT1qcwGgcQ63KAo/eG1hJDSuAL+bKueyRkoH1hkxvTckSByCjWvFUkkepLFIwSkdKxZHohdVerTyer8YE0TEqC5Q1oxskiqM8ZlSpkNLrps5znKDR+HqTiO0PYHlwPlW8S3Yw195ADpNb8bT6J4PFP/Nz5u/hZRj3csyGunP9dVPEChXjf8bNbGF3zsWM7we+b8mqaqjql70g2BYEXtp1S677Ncv3N3mepcRjcycM7Y8040RcFX6dJbOnT8KJrz4JZ/4ATpwEhZFu8he0tIZPirHZFnyMsSm5f7Nh7JZp3TD0aUP/KmP1nGa8+pz/KmQg+uFzZLVeOQ/n+/VKpmyXMy2jmoTlyFvGMiHpAYm8wfcTToXvENYp9xNaGf3TZx5axWnokNMsQMDD0UtjmcXr7TbMldrFYrsU/THc2ZgPgnl4YtS+ftHqFjvF7TjkB/PB9mC+QVZiELwH/4i1lR1/C4wrrNClVYwDzOUpCwFJEONvM1jMBiELFhg6WriBPTuxNLLmve4t4dRSNmcfao3vG4ffb3es3TvfizGLbcTg+A92WXjnGg1vCedCdWzb+L5PIIOdu8/MdbXxbeP7x3Egzo3xfv4V/jfey168CS+ySNVYSxOzcd5byRSUZ57T7eeKABHuR7jqEcn2Oo2uyWnB6GHMidauVkvjzG6j49kvuLtGtmwZ2eWOj1xZKFw58oeOUUjoZi6rml7O8UzVMLOqkd9ihOm0xCtuc/bIA7qAWWjYdWu1bErQHzgy23QSsO+Rmzr5fOemR1J2qVYrWS9lhyBBvSTXkKhmZ/J8NsupXoILRFl1zPztJUFP9BSpKPRtJI7ZKjmIWqgym2cFJQpBUZQk0EEkRmNwx7hgrWCjAZ5eGLtE7BBBIf565WaCwXH28woWfW/6oqKIPqvv7fIVS1MYd2Vh29EpURAYUvJFAa64oweIhmCHd3rYnvmZNVU9tGUlDf0HjuDzZ1Z3duquGV4QV6bx4U0hz7hxvbtmBJ7rL8TxXCH75GjmKuCtmVJlJZPtXj3711He1CAfDjObZ5d6Fi6xIOgYLb5fW3eMMh3cLXn2aQBzI7we7a1aRvZ81rCqs1byPBYm3RO+f7vv08/6L/nwqBe9MzJk20MjYEXv5EulPFi91157DR7vHTq08q0y1ndhrUrugbFSTWKOx2UGCX+5n9D/e4x5Vvu7cO7JJ7HPkX6mB3urdfB6e+ICS/VeP+9j/fMei4Fxvu/fw0mdxwKHl+K41a7ngcnTYVn+vXcFUzjP4+VtGSNr/Y03/pMleBf+jdLIl3VZVeDZaPeh5vceY9qKYysHyNdErlncf4004q91Lcz1M2Q7+SvYhVFmQ0HRRR+pTgOWnEEV3aMbsu9v1S613ZYt0YZrI85thawkZZ/iWlLYCSvVBiPFvMa+9lVSILFusBqGJSRuDEasImBuXLnVogsyjDPBciLyXPsE0MWlncEI48q6YWtwO2anzfYXl7tIZCHjChKNA0PZDjIf3LUaYScYoGOKNrKbhT5q3W0MJRqgY4oJ5FkEhuqs3td8cFAJA3RMwVbtb6DVv9FF1V612ltgwCrnLfGgZRhlLmkZZmbKKx0QRDhQ8qx9GdOoAGINaypfPiBIv8IJSVmUJUVIJpN6oIuKmDYB8hkrkwfIpAVFRCyOpRXJzeTzGVdS0gNSWUxnVknNtLhCKigSstQpkgMWxGnZxBpB1LDSEvGdEiVV1BJOVsVBi6rAqXlHVURNxKEkkqg0IaUkXqdKmqrxfJ1HRGJtviYkEk5+bX7WSWjr52v45k0pgfPhVKW3o1eJwQHecgtX5PmEmvV4NcGXLL5QaHJ6AfHeZegQwEiLCVFvoLQ6yoS1ncZkykgaRQGpqKOwDcypZl8HGcyufVqmUKlPi1NwoiL0aZFd2hiobH6wdUXfsHUpKfFp2aAD0VO8pF8qupvTuYHsqLpEYqPqdIlPrc1P88hwnepRT0pf9Ws5/5scT6bIPLYkGpeFlFXWWGNXKyy9oSvFxo5INH7MZ3HxGPaTndS/FYZWV2TEEpyrhR7PT+92tKSaApgeQnkVJZ81Ki3TEVPgAehGMDqWMSXlYKMr0IPbOqPlKwIlelcHbqEGc9ncrfvnOO6AaGqFnX5qrJnKlTiuMOoYNtw2VDJtni/q6aITeI3N1yz07vTz4sTrqlWZI/8Hf5ASXgAAAHicY2BkYGAAYrM/isHx/DZfGbiZGEDgTtqiBTD6/6//n5m4mdiAXA4GsDQASo8MZ3icY2BkYGBiAAI9Job/v/5/ZeJmYGRABaoAXyUEVAAAeJxjYGBgYMKJ///HLYei7heU/g3BxOjBMOMvjA0AtjAKMAAAAAAAAAESASQBNgFGAVgCFgLIAzQD9gSYBSIFWAVqBYQF8gZoBpwGwAc8B5QHxAf6CGoIlgk6CcIJ1goGCk4K1AtMC4wLvAvoDbwOJHicY2BkYGBQZfRiEGEAASYg5gJCBob/YD4DABVRAZsAeJxtjz1uwkAQhZ/5iwJShBIpUrpVijQR5qeg4ADQU9Abs/5BttdaFiQukBPkDDlDTpAyZ8hR8mxGLhJ2pdX33rzZ0QAY4gsequPhtn6r08IN1YXbpKFwh/wk3MUAz8I9+iPhPl4xFx7gAQF/8DrVb/dwwi3c4U24Tf9duEP+EO7iEZ/CPfrfwn1s8CM8wIs3P6cuGaWhKdY6PmaBbXQDG20PqSnU1J803koX2gZO79T2rA6neOZcpCJrcrU0hdNZZlRpzV6Hzk+cKxfjcSS+H5ocZ6TcJuHWKUIYFFhDI8YRGTe2V+r/nQ07LA7UlVKYwsfkSm7FXFFnA1Y0dsxumVPsPXHmjK5DRB0xY5CTlnVnlc54DZ2yru3phPR9Tqi6Siww5o3+5P16dv4LqwRgqnicbZDZboMwEEW5jaEJoWm673vTN3+Ua0/AirFdY4T4+0Jo+9R5GJ0jzZVmJjlIpkqT/2uDA8zAkCLDIeZYIMcSBY6wwjHWOMEpznCOC1ziCte4wS3ucI8HPOIJz3jBK97wjg0+klxI6VobtS1zEYLruHKd/UFD27icMOiyivOJW59/CrvjsiK5YyMWUhiySgQulFr9Se0s9fNfZVI0VbEPcamDNJTuJZXGNcSk8/1SBlI6cimCYiqIko2aU098P6RmAxbabh1vvloxDLNRFrUord5qCqx2gTIvei9M5sl5Q8ybtkkDedMPvaFYNJUmo6bt8qhrmi5JYxgWzFpvnFDrTgQ7PIXHoIUtDa06F4bQkB9/1bBexypJvgEkfHYEAA==") format("woff"),
|
12 |
+
url("../fonts/yith-icon.ttf?c433269285442943176e8d23fe8a0d79") format("truetype");
|
13 |
+
font-weight: 400;
|
14 |
+
font-style: normal;
|
15 |
+
}
|
16 |
+
/* stylelint-enable */
|
17 |
+
|
18 |
+
|
19 |
+
[class^="yith-icon-"], [class*=" yith-icon-"] {
|
20 |
+
font-family: yith-icon !important;
|
21 |
+
speak: never;
|
22 |
+
font-style: normal;
|
23 |
+
font-weight: normal;
|
24 |
+
font-variant: normal;
|
25 |
+
text-transform: none;
|
26 |
+
line-height: 1;
|
27 |
+
|
28 |
+
-webkit-font-smoothing: antialiased;
|
29 |
+
-moz-osx-font-smoothing: grayscale;
|
30 |
+
|
31 |
+
width: 1em;
|
32 |
+
height: 1em;
|
33 |
+
font-size: 20px;
|
34 |
+
}
|
35 |
+
|
36 |
+
/* Icons */
|
37 |
+
|
38 |
+
.yith-icon-accounting:before {
|
39 |
+
content: "\e91d";
|
40 |
+
}
|
41 |
+
|
42 |
+
.yith-icon-arrow-down:before {
|
43 |
+
content: "\e900";
|
44 |
+
}
|
45 |
+
|
46 |
+
.yith-icon-arrow-left:before {
|
47 |
+
content: "\e901";
|
48 |
+
}
|
49 |
+
|
50 |
+
.yith-icon-arrow-right:before {
|
51 |
+
content: "\e902";
|
52 |
+
}
|
53 |
+
|
54 |
+
.yith-icon-arrow-up:before {
|
55 |
+
content: "\e903";
|
56 |
+
}
|
57 |
+
|
58 |
+
.yith-icon-bank-check:before {
|
59 |
+
content: "\e91e";
|
60 |
+
}
|
61 |
+
|
62 |
+
.yith-icon-bank:before {
|
63 |
+
content: "\e91c";
|
64 |
+
}
|
65 |
+
|
66 |
+
.yith-icon-calendar-add:before {
|
67 |
+
content: "\e913";
|
68 |
+
}
|
69 |
+
|
70 |
+
.yith-icon-calendar-money:before {
|
71 |
+
content: "\e914";
|
72 |
+
}
|
73 |
+
|
74 |
+
.yith-icon-calendar:before {
|
75 |
+
content: "\e904";
|
76 |
+
}
|
77 |
+
|
78 |
+
.yith-icon-calendar2:before {
|
79 |
+
content: "\e915";
|
80 |
+
}
|
81 |
+
|
82 |
+
.yith-icon-cash:before {
|
83 |
+
content: "\e91f";
|
84 |
+
}
|
85 |
+
|
86 |
+
.yith-icon-check-circle:before {
|
87 |
+
content: "\e921";
|
88 |
+
}
|
89 |
+
|
90 |
+
.yith-icon-check:before {
|
91 |
+
content: "\e905";
|
92 |
+
}
|
93 |
+
|
94 |
+
.yith-icon-close:before {
|
95 |
+
content: "\e906";
|
96 |
+
}
|
97 |
+
|
98 |
+
.yith-icon-copy:before {
|
99 |
+
content: "\f101";
|
100 |
+
}
|
101 |
+
|
102 |
+
.yith-icon-credit-card:before {
|
103 |
+
content: "\e920";
|
104 |
+
}
|
105 |
+
|
106 |
+
.yith-icon-drag:before {
|
107 |
+
content: "\e90f";
|
108 |
+
}
|
109 |
+
|
110 |
+
.yith-icon-edit:before {
|
111 |
+
content: "\e907";
|
112 |
+
}
|
113 |
+
|
114 |
+
.yith-icon-eye-closed:before {
|
115 |
+
content: "\e912";
|
116 |
+
}
|
117 |
+
|
118 |
+
.yith-icon-eye:before {
|
119 |
+
content: "\e911";
|
120 |
+
}
|
121 |
+
|
122 |
+
.yith-icon-info-squared:before {
|
123 |
+
content: "\e922";
|
124 |
+
}
|
125 |
+
|
126 |
+
.yith-icon-info:before {
|
127 |
+
content: "\e90e";
|
128 |
+
}
|
129 |
+
|
130 |
+
.yith-icon-magnifier:before {
|
131 |
+
content: "\e908";
|
132 |
+
}
|
133 |
+
|
134 |
+
.yith-icon-more:before {
|
135 |
+
content: "\f102";
|
136 |
+
}
|
137 |
+
|
138 |
+
.yith-icon-paypal:before {
|
139 |
+
content: "\e91b";
|
140 |
+
}
|
141 |
+
|
142 |
+
.yith-icon-pencil:before {
|
143 |
+
content: "\e909";
|
144 |
+
}
|
145 |
+
|
146 |
+
.yith-icon-people:before {
|
147 |
+
content: "\e916";
|
148 |
+
}
|
149 |
+
|
150 |
+
.yith-icon-plus:before {
|
151 |
+
content: "\e90a";
|
152 |
+
}
|
153 |
+
|
154 |
+
.yith-icon-reply:before {
|
155 |
+
content: "\e91a";
|
156 |
+
}
|
157 |
+
|
158 |
+
.yith-icon-reset:before {
|
159 |
+
content: "\e910";
|
160 |
+
}
|
161 |
+
|
162 |
+
.yith-icon-shield-money:before {
|
163 |
+
content: "\e917";
|
164 |
+
}
|
165 |
+
|
166 |
+
.yith-icon-time-check:before {
|
167 |
+
content: "\e918";
|
168 |
+
}
|
169 |
+
|
170 |
+
.yith-icon-trash:before {
|
171 |
+
content: "\e90d";
|
172 |
+
}
|
173 |
+
|
174 |
+
.yith-icon-update:before {
|
175 |
+
content: "\e90b";
|
176 |
+
}
|
177 |
+
|
178 |
+
.yith-icon-upload:before {
|
179 |
+
content: "\e90c";
|
180 |
+
}
|
181 |
+
|
182 |
+
.yith-icon-warning-triangle:before {
|
183 |
+
content: "\e923";
|
184 |
+
}
|
185 |
+
|
186 |
+
.yith-icon-world-settings:before {
|
187 |
+
content: "\e919";
|
188 |
+
}
|
189 |
+
|
190 |
+
.yith-icon-yith:before {
|
191 |
+
content: "\e924";
|
192 |
+
}
|
193 |
+
|
194 |
+
/** -------------------------------------------
|
195 |
+
* Deprecated icons
|
196 |
+
*/
|
197 |
+
|
198 |
+
/** Deprecated: use yith-icon-paypal instead */
|
199 |
+
.yith-icon-paypal-svgrepo-com:before {
|
200 |
+
content: "\e91b";
|
201 |
+
}
|
202 |
+
|
203 |
+
/** Deprecated: use yith-icon-arrow-down instead */
|
204 |
+
.yith-icon-arrow_down:before {
|
205 |
+
content: "\e900";
|
206 |
+
}
|
207 |
+
|
208 |
+
/** Deprecated: use yith-icon-eye instead */
|
209 |
+
.yith-icon-arrow_eye:before {
|
210 |
+
content: "\e911";
|
211 |
+
}
|
212 |
+
|
213 |
+
/** Deprecated: use yith-icon-eye-closed instead */
|
214 |
+
.yith-icon-arrow_eye_closed:before {
|
215 |
+
content: "\e912";
|
216 |
+
}
|
217 |
+
|
218 |
+
/** Deprecated: use yith-icon-arrow-left instead */
|
219 |
+
.yith-icon-arrow_left:before {
|
220 |
+
content: "\e901";
|
221 |
+
}
|
222 |
+
|
223 |
+
/** Deprecated: use yith-icon-arrow-right instead */
|
224 |
+
.yith-icon-arrow_right:before {
|
225 |
+
content: "\e902";
|
226 |
+
}
|
227 |
+
|
228 |
+
/** Deprecated: use yith-icon-arrow-up instead */
|
229 |
+
.yith-icon-arrow_up:before {
|
230 |
+
content: "\e903";
|
231 |
+
}
|
232 |
+
|
233 |
+
/** Deprecated: use yith-icon-calendar instead */
|
234 |
+
.yith-icon-calendar2:before {
|
235 |
+
content: "\e904";
|
236 |
+
}
|
237 |
+
|
238 |
+
/** Deprecated: use yith-icon-calendar-add instead */
|
239 |
+
.yith-icon-calendar_add:before {
|
240 |
+
content: "\e913";
|
241 |
+
}
|
242 |
+
|
243 |
+
/** Deprecated: use yith-icon-calendar-money instead */
|
244 |
+
.yith-icon-calendar_money:before {
|
245 |
+
content: "\e914";
|
246 |
+
}
|
247 |
+
|
248 |
+
/** Deprecated: use yith-icon-shield-money instead */
|
249 |
+
.yith-icon-shield_money:before {
|
250 |
+
content: "\e917";
|
251 |
+
}
|
252 |
+
|
253 |
+
/** Deprecated: use yith-icon-time-check instead */
|
254 |
+
.yith-icon-time_check:before {
|
255 |
+
content: "\e918";
|
256 |
+
}
|
257 |
+
|
258 |
+
/** Deprecated: use yith-icon-world-settings instead */
|
259 |
+
.yith-icon-world_settings:before {
|
260 |
+
content: "\e919";
|
261 |
+
}
|
262 |
+
|
263 |
+
/** Deprecated: use yith-icon-edit instead */
|
264 |
+
.yith-icon-pencil:before {
|
265 |
+
content: "\e907";
|
266 |
+
}
|
267 |
+
|
268 |
+
/** Deprecated: use yith-icon-reset instead */
|
269 |
+
.yith-icon-update:before {
|
270 |
+
content: "\e910";
|
271 |
+
}
|
plugin-fw/assets/fonts/yith-icon.eot
CHANGED
Binary file
|
plugin-fw/assets/fonts/yith-icon.svg
DELETED
@@ -1,46 +0,0 @@
|
|
1 |
-
<?xml version="1.0" standalone="no"?>
|
2 |
-
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
3 |
-
<svg xmlns="http://www.w3.org/2000/svg">
|
4 |
-
<metadata>Generated by IcoMoon</metadata>
|
5 |
-
<defs>
|
6 |
-
<font id="yith-icon" horiz-adv-x="1024">
|
7 |
-
<font-face units-per-em="1024" ascent="960" descent="-64" />
|
8 |
-
<missing-glyph horiz-adv-x="1024" />
|
9 |
-
<glyph unicode=" " horiz-adv-x="512" d="" />
|
10 |
-
<glyph unicode="" glyph-name="arrow_down" d="M85.333 618.667l426.684-426.65 426.65 426.65-85.35 85.316-341.299-341.299-341.367 341.299z" />
|
11 |
-
<glyph unicode="" glyph-name="arrow_left" d="M767.966 106.684l-341.316 341.367 341.316 341.265-85.35 85.35-426.581-426.615 426.581-426.718z" />
|
12 |
-
<glyph unicode="" glyph-name="arrow_right" d="M341.385 21.333l426.581 426.718-426.581 426.615-85.35-85.35 341.316-341.265-341.316-341.367z" />
|
13 |
-
<glyph unicode="" glyph-name="arrow_up" d="M938.667 277.333l-426.684 426.65-426.65-426.65 85.316-85.316 341.333 341.299 341.333-341.299z" />
|
14 |
-
<glyph unicode="" glyph-name="calendar" d="M263.1 341.385h71.083v-71.083h-71.083v71.083zM369.766 341.385h71.083v-71.083h-71.083v71.083zM476.416 341.385h71.083v-71.083h-71.083v71.083zM583.083 341.385h71.083v-71.083h-71.083v71.083zM369.766 448.034h71.083v-71.083h-71.083v71.083zM476.416 448.034h71.083v-71.083h-71.083v71.083zM583.083 448.034h71.083v-71.083h-71.083v71.083zM263.1 234.718h71.083v-71.083h-71.083v71.083zM369.766 234.718h71.083v-71.083h-71.083v71.083zM476.416 234.718h71.083v-71.083h-71.083v71.083zM583.083 234.718h71.083v-71.083h-71.083v71.083zM689.818 341.385h71.083v-71.083h-71.083v71.083zM689.818 448.034h71.083v-71.083h-71.083v71.083zM903.134 803.584h-142.234v71.083h-71.083v-71.083h-355.55v71.083h-71.083v-71.083h-142.319v-782.251h782.251v782.251zM263.1 732.501v-71.083h71.083v71.083h355.55v-71.083h71.083v71.083h71.083v-142.234h-640.017v142.234h71.219zM191.949 92.484v426.701h640.017v-426.701h-640.017z" />
|
15 |
-
<glyph unicode="" glyph-name="check" d="M938.667 734.191l-56.371 56.371-566.391-566.391-168.875 207.258-61.696-50.295 224.58-275.695z" />
|
16 |
-
<glyph unicode="" glyph-name="close" d="M158.857 21.333l353.143 353.143 353.143-353.143 73.523 73.523-353.143 353.143 353.143 353.143-73.523 73.523-353.143-353.143-353.143 353.143-73.523-73.523 353.143-353.143-353.143-353.143z" />
|
17 |
-
<glyph unicode="" glyph-name="edit" d="M868.847 357.239l-517.427 517.427-193.178-193.178 517.427-517.427h193.178v193.178zM705.178 235.435l92.297 92.297v-92.297h-92.297zM654.729 285.884l-306.398 306.398 92.297 92.297 306.398-306.398-92.297-92.297zM351.42 773.786l38.775-38.775-92.297-92.297-38.775 38.775 92.297 92.297zM155.153 92.706h713.677v-71.373h-713.677v71.373z" />
|
18 |
-
<glyph unicode="" glyph-name="magnifier" d="M694.528 570.095c0 167.953-136.619 304.572-304.572 304.572s-304.589-136.619-304.589-304.572 136.619-304.572 304.572-304.572c70.229 0 134.895 24.115 186.419 64.239l26.18-26.18-38.076-38.076 244.19-244.173 129.963 129.963-244.173 244.19-38.076-38.076-26.18 26.18c40.124 51.695 64.341 116.258 64.341 186.505zM830.976 151.296l-22.323-22.323-136.533 136.533 22.323 22.323 136.533-136.533zM389.956 341.658c-125.952 0-228.437 102.485-228.437 228.437s102.485 228.42 228.437 228.42 228.437-102.485 228.437-228.437c-0.017-125.935-102.502-228.42-228.437-228.42z" />
|
19 |
-
<glyph unicode="" glyph-name="pencil" d="M669.542 874.701l-584.209-584.192 2.628-266.581 266.496-2.628 584.209 584.192-269.124 269.21zM831.010 605.577l-25.515-25.515-161.485 161.553 25.532 25.532 161.468-161.57zM323.277 97.758l-159.915 1.553-1.553 160 428.39 428.476 53.828-53.914-412.894-412.791 53.828-53.828 412.877 412.809 53.828-53.828-428.39-428.476z" />
|
20 |
-
<glyph unicode="" glyph-name="plus" d="M475.409 21.333h78.029v385.229h385.229v78.029h-385.229v390.076h-78.029v-390.076h-390.076v-78.029h390.076z" />
|
21 |
-
<glyph unicode="" glyph-name="update" d="M188.075 400.162c23.313-158.703 159.932-281.139 325.035-281.139 118.903 0 228.949 64.495 287.13 168.38l-63.761 35.703c-45.295-80.828-130.884-131.055-223.369-131.055-120.798 0-222.14 84.275-248.73 197.018l40.209-40.124 51.695 51.695-135.475 135.475-135.475-135.458 51.695-51.695 51.046 51.2zM513.109 703.863c121.941 0 224.017-85.828 249.549-200.141l-43.247 43.247-51.695-51.695 135.475-135.475 135.475 135.475-51.695 51.695-49.152-49.152c-24.132 157.713-160.341 279.159-324.71 279.159-117.009 0-226.236-62.942-284.911-164.369l63.266-36.591c45.705 78.78 130.56 127.846 221.645 127.846z" />
|
22 |
-
<glyph unicode="" glyph-name="upload" d="M937.728 139.315v619.247c0 64-52.105 116.105-116.105 116.105h-619.247c-64 0-116.105-52.105-116.105-116.105v-619.247c0-64 52.105-116.105 116.105-116.105h190.276v77.38h-190.276c-21.333 0-38.724 17.306-38.724 38.724v619.247c0 21.333 17.306 38.724 38.724 38.724h619.247c21.333 0 38.724-17.306 38.724-38.724v-619.247c0-21.333-17.391-38.724-38.724-38.724h-193.485v-77.38h193.485c64 0.017 116.105 52.105 116.105 116.105zM550.69 21.333v412.553l88.61-89.515 54.972 54.391-180.429 182.323-183.876-181.982 54.409-55.057 88.934 87.945v-410.658z" />
|
23 |
-
<glyph unicode="" glyph-name="trash" d="M734.591 132.655c0-20.48-16.696-37.101-37.101-37.101h-371.014c-20.406 0-37.101 16.621-37.101 37.101v519.42h-74.203v-519.42c0-61.403 50.087-111.304 111.304-111.304h371.014c61.217 0 111.304 49.901 111.304 111.304v519.42h-74.203v-519.42zM400.679 800.48h222.608v-37.101h-222.608v37.101zM697.49 800.48c0 40.923-33.391 74.203-74.203 74.203h-222.608c-40.812 0-74.203-33.28-74.203-74.203v-37.101h-185.507v-74.203h742.028v74.203h-185.507v37.101zM474.882 614.973h74.203v-445.217h-74.203v445.217zM363.577 614.973h74.203v-445.217h-74.203v445.217zM586.186 614.973h74.203v-445.217h-74.203v445.217z" />
|
24 |
-
<glyph unicode="" glyph-name="info" d="M511.957 92.471c-196.017 0-355.555 159.466-355.555 355.555 0 196.053 159.538 355.555 355.555 355.555 196.053 0 355.555-159.502 355.555-355.555 0-196.089-159.502-355.555-355.555-355.555zM511.957 874.692c-235.271 0-426.666-191.431-426.666-426.666 0-235.271 191.395-426.666 426.666-426.666 235.306 0 426.666 191.395 426.666 426.666 0 235.235-191.36 426.666-426.666 426.666zM476.402 270.248v177.777h35.555v-177.777h-35.555zM583.068 448.026v71.111h-213.333v-71.111h35.555v-248.888h213.333v71.111h-35.555v177.777zM494.179 661.359c9.813 0 17.778-8 17.778-17.778 0-9.813-7.964-17.778-17.778-17.778-9.778 0-17.778 7.964-17.778 17.778 0 9.778 8 17.778 17.778 17.778zM494.179 554.692c49.031 0 88.889 39.858 88.889 88.889 0 48.995-39.858 88.889-88.889 88.889-48.995 0-88.889-39.893-88.889-88.889 0-49.031 39.893-88.889 88.889-88.889z" />
|
25 |
-
<glyph unicode="" glyph-name="drag" d="M241.835 409.259h232.277v-232.277h-116.053l156.501-154.795 156.501 154.795h-119.467v232.277h233.813v-116.224l154.965 156.672-154.965 156.501v-119.467h-233.813v232.277h119.467l-156.501 154.795-156.501-154.795h116.053v-232.277h-232.277v119.467l-154.795-156.501 154.795-156.672z" />
|
26 |
-
<glyph unicode="" glyph-name="reset" d="M188.928 400.384c23.211-158.379 159.573-280.405 324.267-280.405 118.613 0 228.352 64.341 286.379 167.936l-63.488 35.499c-45.227-80.555-130.56-130.731-222.891-130.731-120.491 0-221.525 84.139-248.149 196.608l40.107-40.107 51.541 51.541-135.168 135.168-135.168-135.168 51.541-51.541 51.029 51.2zM513.195 703.317c121.685 0 223.573-85.675 249.003-199.68l-43.179 43.179-51.541-51.541 135.168-135.168 135.168 135.168-51.541 51.541-48.981-48.981c-24.064 157.355-159.915 278.528-323.925 278.528-116.736 0-225.621-62.805-284.16-164.011l63.147-36.523c45.227 78.507 129.877 127.488 220.843 127.488z" />
|
27 |
-
<glyph unicode="" glyph-name="arrow_eye" d="M512 184.32c147.797 0 288.939 82.603 408.235 238.933l17.408 22.869-17.408 22.869c-119.296 156.501-260.437 239.104-408.235 239.104s-289.109-82.603-408.235-239.104l-17.408-22.869 17.408-22.869c119.125-156.331 260.437-238.933 408.235-238.933zM512 632.661c116.395 0 230.059-64.341 330.411-186.539-100.352-122.027-214.187-186.368-330.411-186.368-116.395 0-230.059 64.341-330.411 186.539 100.181 122.027 214.016 186.368 330.411 186.368zM510.293 293.717c83.115 0 150.699 67.584 150.699 150.699s-67.584 150.699-150.699 150.699c-83.115 0-150.699-67.584-150.699-150.699s67.584-150.699 150.699-150.699zM510.293 519.68c41.472 0 75.264-33.792 75.264-75.264s-33.792-75.264-75.264-75.264c-41.472 0-75.264 33.792-75.264 75.264-0.171 41.472 33.621 75.264 75.264 75.264z" />
|
28 |
-
<glyph unicode="" glyph-name="arrow_eye_closed" d="M920.235 468.992c-119.296 156.501-260.437 239.104-408.235 239.104-57.296 0-113.616-12.423-168.047-36.743l70.881-53.755c32.024 9.991 64.493 15.065 97.166 15.065 116.395 0 230.059-64.341 330.411-186.54-27.682-33.661-56.393-62.906-85.893-87.648l61.426-46.583c35.519 31.508 69.722 68.681 102.292 111.363l17.408 22.868-17.41 22.869zM510.293 595.115c-18.676 0-36.564-3.422-53.081-9.656l203.208-154.107c0.37 4.306 0.572 8.661 0.572 13.063 0 83.116-67.584 150.7-150.699 150.7zM873.18 226.28l-713.387 541.013c-21.289 16.145-51.633 11.974-67.779-9.315s-11.976-51.633 9.315-67.779l123.489-93.652c-42.291-34.717-82.818-77.322-121.054-127.556l-17.408-22.869 17.408-22.869c119.125-156.332 260.437-238.933 408.235-238.933 65.911 0 130.495 16.445 192.411 48.517l110.302-83.651c8.743-6.63 19.011-9.834 29.196-9.834 14.619 0 29.068 6.6 38.583 19.147 16.147 21.291 11.977 51.635-9.312 67.78zM523.187 370.273c-4.192-0.73-8.497-1.121-12.894-1.121-38.915 0-71.067 29.756-74.882 67.688l87.776-66.567zM512 259.755c-116.395 0-230.059 64.34-330.411 186.539 33.684 41.028 68.92 75.481 105.271 103.204l79.536-60.319c-4.41-14.148-6.799-29.181-6.799-44.764 0-83.113 67.584-150.699 150.699-150.699 30.172 0 58.289 8.917 81.877 24.241l44.037-33.396c-40.75-16.406-82.321-24.806-124.209-24.806z" />
|
29 |
-
<glyph unicode="" glyph-name="calendar_add" d="M547.499 483.499h-70.997v-106.496h-106.325v-70.827h106.325v-106.496h70.997v106.496h106.325v70.827h-106.325zM902.315 802.816h-141.824v70.827h-70.997v-70.997h-354.816v70.997h-70.997v-70.997h-141.995v-780.459h780.459v780.629zM263.68 731.819v-70.997h70.997v70.997h354.816v-70.997h70.997v70.997h70.997v-106.496h-638.805v106.496h70.997zM192.683 93.184v461.312h638.635v-461.141h-638.635z" />
|
30 |
-
<glyph unicode="" glyph-name="calendar_money" d="M474.965 133.291h74.069v37.035c40.96 0 74.069 33.109 74.069 74.069v37.035c0 40.96-33.109 74.069-74.069 74.069h-74.069v37.035h148.139v74.069h-74.069v37.035h-74.069v-37.035c-40.96 0-74.069-33.109-74.069-74.069v-37.035c0-40.96 33.109-74.069 74.069-74.069h74.069v-37.035h-148.139v-74.069h74.069v-37.035zM252.928 873.643v-222.037h73.899v74.069h333.312v74.069h-333.312v73.899zM919.211 540.501v259.243h-148.139v73.899h-74.069v-222.037h74.069v74.069h74.069v-111.104h-666.283v111.104h37.035v74.069h-111.104v-777.387h814.421v518.144zM845.141 96.256h-666.283v444.245h666.283v-444.245z" />
|
31 |
-
<glyph unicode="" glyph-name="calendar2" d="M937.643 796.331h-154.795v77.312h-77.312v-232.107h77.312v77.312h77.483v-619.179h-696.661v619.179h38.741v77.483h-116.053v-773.973h851.285zM318.464 873.643h-77.312v-232.107h77.312v77.312h348.331v77.483h-348.331zM395.947 564.053h77.483v-77.483h-77.483v77.483zM550.741 564.053h77.483v-77.483h-77.483v77.483zM705.536 564.053h77.483v-77.483h-77.483v77.483zM241.152 409.259h77.483v-77.483h-77.483v77.483zM395.947 409.259h77.483v-77.483h-77.483v77.483zM550.741 409.259h77.483v-77.483h-77.483v77.483zM705.536 409.259h77.483v-77.483h-77.483v77.483zM241.152 254.464h77.483v-77.483h-77.483v77.483zM395.947 254.464h77.483v-77.483h-77.483v77.483zM550.741 254.464h77.483v-77.483h-77.483v77.483zM705.536 254.464h77.483v-77.483h-77.483v77.483z" />
|
32 |
-
<glyph unicode="" glyph-name="people" d="M263.68 696.32c0-39.211-31.787-70.997-70.997-70.997s-70.997 31.787-70.997 70.997c0 39.211 31.787 70.997 70.997 70.997s70.997-31.787 70.997-70.997zM121.685 128.683h70.997v212.821h35.499v-212.821h70.997v390.315h70.997v70.997h-212.992c-39.253 0-70.997-31.744-70.997-70.997v-177.323h35.499v-212.992zM902.315 696.32c0-39.211-31.787-70.997-70.997-70.997s-70.997 31.787-70.997 70.997c0 39.211 31.787 70.997 70.997 70.997s70.997-31.787 70.997-70.997zM866.816 589.824h-212.992v-70.997h70.997v-390.315h70.997v212.992h35.499v-212.821h70.997v212.821h35.499v177.493c-0.171 39.083-31.915 70.827-70.997 70.827zM582.997 696.32c0-39.211-31.787-70.997-70.997-70.997s-70.997 31.787-70.997 70.997c0 39.211 31.787 70.997 70.997 70.997s70.997-31.787 70.997-70.997zM405.504 518.997v-141.824h35.499v-248.32h141.824v248.149h35.499v141.824c0 39.253-31.744 70.997-70.997 70.997h-70.997c-38.912 0-70.827-31.744-70.827-70.827z" />
|
33 |
-
<glyph unicode="" glyph-name="shield_money" d="M146.091 837.12v-530.261l365.909-284.501 365.909 284.672v530.091h-219.477v-73.216h-36.523v109.739h-219.648v-109.739h-36.523v73.216h-219.648zM475.477 690.859v109.739h73.216v-109.739h182.955v73.216h73.216v-421.205l-292.864-227.669-292.693 227.669v421.035h73.216v-73.216h182.955zM548.523 324.949h-73.216c-20.139 0-36.523 16.384-36.523 36.523h-73.216c0-60.587 49.152-109.739 109.739-109.739v-36.523h73.216v36.523c60.587 0 109.739 49.152 109.739 109.739s-49.152 109.739-109.739 109.739h-73.216c-20.139 0-36.523 16.384-36.523 36.523s16.384 36.523 36.523 36.523h73.216c20.139 0 36.523-16.384 36.523-36.523h73.216c0 60.587-49.152 109.739-109.739 109.739v36.523h-73.216v-36.523c-60.587 0-109.739-49.152-109.739-109.739s49.152-109.739 109.739-109.739h73.216c20.139 0 36.523-16.384 36.523-36.523s-16.213-36.523-36.523-36.523z" />
|
34 |
-
<glyph unicode="" glyph-name="time_check" d="M86.528 448.341c-0.341-235.008 189.952-425.643 424.96-425.984s425.643 189.952 425.984 424.96c0.171 83.968-24.576 166.059-71.168 236.032l-60.075-63.488c22.528-39.765 37.035-83.627 42.325-129.195h-80.384v-84.651h80.384c-19.627-154.795-141.483-276.651-296.277-296.277v84.651h-84.651v-84.651c-154.795 19.456-276.821 141.483-296.277 296.277h84.651v84.651h-84.651c18.432 155.307 140.971 277.845 296.277 296.277v-82.603h84.651v81.749c46.251-5.803 90.795-21.163 130.731-44.885l61.44 61.44c-68.779 46.080-149.675 70.827-232.448 71.168-234.837-0.341-425.301-190.635-425.472-425.472zM414.549 605.355l-59.563-59.733 157.013-157.013 410.624 410.965-59.733 59.733-350.891-350.891z" />
|
35 |
-
<glyph unicode="" glyph-name="world_settings" d="M833.707 597.333l48.981 81.92-139.435 139.435-81.92-48.981c-8.875 4.267-18.091 7.851-27.648 11.435l-23.040 92.672h-98.645c-235.179-0.171-425.643-190.635-425.643-425.813s190.464-425.643 425.643-425.643h98.645l23.040 92.672c9.557 3.584 18.773 7.168 27.648 11.435l81.92-48.981 139.435 139.435-48.981 81.92c3.925 8.875 7.851 18.091 11.435 27.648l92.672 23.040v197.12l-92.672 23.040c-3.584 9.557-7.168 20.139-11.435 27.648zM319.659 448c0.171 35.669 3.243 71.339 9.216 106.496h147.627v-212.821h-147.627c-5.973 34.987-9.045 70.656-9.216 106.325zM476.501 795.989v-170.667h-129.877c28.16 86.699 75.264 150.869 129.877 170.667zM476.501 270.677v-171.008c-54.613 19.797-101.888 84.139-129.877 171.008h129.877zM547.499 547.669c55.125-20.309 83.456-81.579 63.147-136.704-10.752-29.184-33.792-52.224-63.147-63.147v199.851zM323.925 748.203c-22.869-38.4-40.277-79.701-51.712-122.709h-67.072c29.013 49.835 69.803 91.989 118.784 122.709zM173.568 554.496h83.797c-11.435-70.485-11.435-142.336 0-212.821h-83.797c-21.845 69.12-21.845 143.531 0 212.821zM205.141 270.677h67.072c11.435-43.179 29.013-84.651 51.712-123.051-48.981 30.72-89.771 73.045-118.784 123.051zM866.816 404.651l-77.312-19.456-5.632-19.115c-5.632-18.091-12.8-35.669-21.675-52.565l-9.557-17.749 40.789-68.096-61.099-61.44-68.437 41.301-17.749-9.557c-16.725-8.875-34.133-16.043-52.224-21.675l-19.456-5.632-19.115-77.312h-7.851v180.907c96.085 19.456 158.037 113.152 138.581 209.067-14.165 69.803-68.779 124.416-138.581 138.581v180.907h7.851l19.115-77.312 19.456-5.632c18.091-5.973 35.669-13.824 52.224-23.381l17.749-9.557 68.437 40.789 61.099-61.099-40.96-66.731 9.557-17.749c8.875-16.555 16.213-34.133 21.675-52.224l5.632-19.456 77.312-19.115 0.171-86.699z" />
|
36 |
-
<glyph unicode="" glyph-name="reply" d="M426 554.667q208-30 321-159t149-311q-154 218-470 218v-174l-298 298 298 298v-170z" />
|
37 |
-
<glyph unicode="" glyph-name="paypal-svgrepo-com" d="M948.695 781.407c41.592-76.275 27.867-166.22 11.486-219.376-88.641-289.544-488.607-273.795-546.47-273.795-57.795 0-71.254-53.893-71.254-53.893l-43.213-188.526c-11.779-66.175-71.793-62.877-71.793-62.877s-78.009 0-130.188 0c-3.273 0-6.328 0.225-9.134 0.631-0.645-12.117 1.079-47.541 44.401-47.541 52.139 0 130.147 0 130.147 0s60.013-3.366 71.834 62.806l43.165 188.519c0 0 13.507 53.897 71.301 53.897 57.767 0 457.829-15.746 546.514 273.808 19.787 64.717 35.874 183.635-46.797 266.347zM259.046 86.911l43.206 188.533c0 0 13.421 53.801 71.301 53.801 57.747 0 457.781-15.664 546.429 273.819 32.437 105.838 54.958 356.92-348.956 356.92h-291.749c0 0-60.641 2.816-75.606-61.659l-190.628-822.715c0 0-8.185-51.555 43.974-51.555 52.207 0 130.233 0 130.233 0s60.013-3.393 71.796 62.857zM369 565.482l38.741 167.179c0 0 12.339 45.462 52.207 52.193 39.827 6.755 107.667-1.201 125.12-4.495 113.299-21.279 89.201-128.478 89.201-128.478-22.433-165.476-280.007-142.514-280.007-142.514-40.383 14.602-25.262 56.115-25.262 56.115z" />
|
38 |
-
<glyph unicode="" glyph-name="bank" d="M511.488 599.723c-8.875 0-16.213 7.168-16.213 16.213 0 4.608-3.755 8.363-8.363 8.363s-8.363-3.755-8.363-8.363c0-15.189 10.411-27.989 24.576-31.744v-6.315c0-4.608 3.755-8.363 8.363-8.363s8.363 3.755 8.363 8.363v6.315c14.165 3.755 24.576 16.384 24.576 31.744 0 18.091-14.848 32.939-32.939 32.939-8.875 0-16.213 7.168-16.213 16.213 0 8.875 7.168 16.213 16.213 16.213 8.533 0 15.531-6.656 16.213-15.019 0.341-4.608 4.437-8.021 8.875-7.851 4.608 0.341 8.192 4.267 7.851 8.875-1.024 14.336-11.093 25.941-24.576 29.525v6.315c0 4.608-3.755 8.363-8.363 8.363s-8.363-3.755-8.363-8.363v-6.315c-13.995-3.755-24.576-16.555-24.576-31.744 0-18.091 14.848-32.939 32.939-32.939 8.875 0 16.213-7.168 16.213-16.213s-7.339-16.213-16.213-16.213zM862.72 508.587c0 0.512-0.171 1.195-0.341 1.707s-0.171 1.024-0.341 1.365c-0.171 0.512-0.512 0.853-0.853 1.195-0.341 0.512-0.683 1.024-1.024 1.365-0.171 0.171-0.171 0.171-0.171 0.341l-342.699 283.648c-3.072 2.56-7.68 2.56-10.752 0l-342.187-283.477c-0.171-0.171-0.171-0.171-0.171-0.341-0.512-0.341-0.683-0.853-1.024-1.365-0.341-0.341-0.683-0.853-0.853-1.195-0.171-0.512-0.341-1.024-0.341-1.365-0.171-0.512-0.341-1.195-0.341-1.707 0-0.171 0-0.171 0-0.341v-66.56c0-4.608 3.755-8.363 8.363-8.363h85.504v-258.048h-85.845c-4.608 0-8.363-3.755-8.363-8.363v-55.467c0-1.365 0.341-2.56 0.853-3.584-0.512-1.024-0.853-2.219-0.853-3.584 0-4.608 3.755-8.363 8.363-8.363h678.571c4.608 0 8.363 3.755 8.363 8.363v62.635c0 4.608-3.755 8.363-8.363 8.363h-79.872v257.877h86.016c4.608 0 8.363 3.755 8.363 8.363v66.56c0 0.171 0 0.171 0 0.341zM178.005 450.048v49.835h667.989v-49.835h-667.989zM839.851 158.549v-45.909h-661.845v45.909h661.845zM482.816 175.275v258.048h62.123v-258.048h-62.123zM512 780.971l319.147-264.363h-638.293l319.147 264.363zM271.872 433.323h194.048v-258.048h-115.029v228.352c0 4.608-3.755 8.363-8.363 8.363s-8.363-3.755-8.363-8.363v-228.352h-62.123v258.048zM751.616 175.275h-189.952v258.048h110.933v-227.499c0-4.608 3.755-8.363 8.363-8.363s8.363 3.755 8.363 8.363v227.499h62.123v-258.048z" />
|
39 |
-
<glyph unicode="" glyph-name="accounting" d="M862.72 432.128c0 0.512-0.171 1.024-0.341 1.536s-0.171 0.853-0.512 1.365c-0.171 0.341-0.512 0.853-0.853 1.195s-0.683 0.853-1.024 1.195c-0.171 0.171-0.171 0.171-0.341 0.341l-30.891 23.893c-2.56 2.048-6.315 2.219-9.045 0.341l-31.061-21.163-33.792 21.163c0 0 0 0 0 0h-0.171c-0.171 0.171-0.512 0.171-0.853 0.341-0.683 0.341-1.195 0.683-2.048 0.683-0.512 0-1.024 0-1.365 0-0.512 0-1.024 0-1.536 0-0.683-0.171-1.365-0.512-1.877-0.853-0.171-0.171-0.512-0.171-0.683-0.341v0c0 0 0 0 0 0l-5.973-4.096-29.184-19.797c-3.413-2.389-4.437-7.168-2.048-10.581 1.536-2.219 3.925-3.413 6.315-3.413 1.536 0 2.901 0.512 4.267 1.365l31.232 21.163 33.963-21.333c2.56-1.707 5.803-1.536 8.363 0.171l30.549 20.821 23.552-18.261v-152.747c0-43.861-35.669-79.701-79.701-79.701-43.861 0-79.701 35.669-79.701 79.701v407.723c0 47.957-35.84 87.723-82.261 94.037-1.024 0.512-2.219 1.024-3.584 1.024h-297.813c-52.395 0-94.891-42.667-94.891-94.891v-27.819h-13.995c-18.773 0-33.963-15.189-33.963-33.963v-468.821c0-18.773 15.189-33.963 33.963-33.963h341.504c18.773 0 33.963 15.189 33.963 33.963v468.651c0 18.773-15.189 33.963-33.963 33.963h-13.995v27.819c0 42.325 33.28 76.971 75.093 79.36 41.813-2.389 75.093-37.035 75.093-79.36v-407.723c0-33.28 17.408-62.635 43.52-79.701h-114.517c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h166.059c52.395 0 94.891 42.667 94.891 94.891v156.501c-0.341 0.341-0.341 0.512-0.341 0.683zM507.563 682.837v-81.749c0-4.267 3.413-7.68 7.68-7.68s7.68 3.413 7.68 7.68v38.571h13.995c10.411 0 18.773-8.363 18.773-18.773v-468.821c0-10.24-8.363-18.773-18.773-18.773h-341.675c-10.24 0-18.773 8.363-18.773 18.773v468.992c0 10.24 8.363 18.773 18.773 18.773h13.995v-38.571c0-4.267 3.413-7.68 7.68-7.68h248.832c4.267 0 7.68 3.413 7.68 7.68s-3.413 7.68-7.68 7.68h-241.152v74.069c0 43.861 35.669 79.701 79.701 79.701h246.784c-26.283-17.237-43.52-46.421-43.52-79.872zM209.237 558.251v-85.333c0-4.267 3.413-7.68 7.68-7.68h298.155c4.267 0 7.68 3.413 7.68 7.68v85.333c0 4.267-3.413 7.68-7.68 7.68h-298.155c-4.096 0-7.68-3.413-7.68-7.68zM224.597 550.571h282.965v-70.144h-282.965v70.144zM290.304 416.597h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68s-3.413 7.68-7.68 7.68zM402.773 416.597h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68s-3.413 7.68-7.68 7.68zM515.243 416.597h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68-0.171 4.267-3.584 7.68-7.68 7.68zM290.304 334.507h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68s-3.413 7.68-7.68 7.68zM402.773 334.507h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68s-3.413 7.68-7.68 7.68zM515.243 334.507h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68s-3.584 7.68-7.68 7.68zM290.304 252.245h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68s-3.413 7.68-7.68 7.68zM402.773 252.245h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68s-3.413 7.68-7.68 7.68zM515.243 252.245h-73.387c-4.267 0-7.68-3.413-7.68-7.68s3.413-7.68 7.68-7.68h73.387c4.267 0 7.68 3.413 7.68 7.68-0.171 4.267-3.584 7.68-7.68 7.68z" />
|
40 |
-
<glyph unicode="" glyph-name="bank-check" d="M862.72 645.803c-0.171 1.877-1.195 3.755-2.731 4.949l-96.768 75.776c-3.243 2.56-7.851 1.877-10.411-1.195l-274.091-349.184c-0.853-1.024-1.365-2.389-1.536-3.584l-14.677-118.955c-0.341-2.56 0.683-5.12 2.731-6.656 1.365-1.024 2.901-1.536 4.608-1.536 0.853 0 1.707 0.171 2.731 0.512l111.445 43.008c1.195 0.512 2.389 1.195 3.072 2.389l153.259 195.243v-303.957h-564.395l0.512 337.408 347.989-1.536c0 0 0 0 0 0 4.096 0 7.339 3.243 7.339 7.339s-3.243 7.339-7.339 7.339l-355.328 1.536c-2.219-0.341-3.755-0.683-5.291-2.219-1.365-1.365-2.219-3.243-2.219-5.291l-0.512-351.915c0-3.584 2.56-6.315 5.973-6.997 0.853-0.341 1.877-0.683 2.901-0.683h577.707c4.096 0 7.339 3.243 7.339 7.339v330.24l106.155 135.168c1.195 1.536 1.707 3.584 1.536 5.461zM587.776 315.904l-56.491 44.203c-3.243 2.56-7.851 1.877-10.411-1.195-2.56-3.243-1.877-7.851 1.195-10.411l56.491-44.203-1.877-2.389-98.133-37.888 12.971 104.619 222.208 283.136 61.099-47.957c1.365-1.024 2.901-1.536 4.608-1.536 2.219 0 4.267 1.024 5.803 2.901 2.56 3.243 1.877 7.851-1.195 10.411l-61.099 47.787 37.035 47.104 85.163-66.731-257.365-327.851zM466.261 443.051c0 4.096-3.243 7.339-7.339 7.339h-206.507c-4.096 0-7.339-3.243-7.339-7.339s3.243-7.339 7.339-7.339h206.507c3.925 0 7.339 3.243 7.339 7.339zM395.605 351.403c0 4.096-3.243 7.339-7.339 7.339h-136.021c-4.096 0-7.339-3.243-7.339-7.339s3.243-7.339 7.339-7.339h136.021c4.096 0 7.339 3.243 7.339 7.339zM252.245 267.264c-4.096 0-7.339-3.243-7.339-7.339s3.243-7.339 7.339-7.339h81.92c4.096 0 7.339 3.243 7.339 7.339s-3.243 7.339-7.339 7.339h-81.92z" />
|
41 |
-
<glyph unicode="" glyph-name="cash" d="M387.072 268.629c1.024-0.853 2.389-1.195 3.755-1.195 0.853 0 1.707 0.171 2.56 0.512l138.752 59.733c3.243 1.365 4.779 5.291 3.413 8.533s-5.291 4.779-8.533 3.413l-135.339-58.368-218.795 151.552c-2.901 2.048-6.997 1.365-9.045-1.707-2.048-2.901-1.365-6.997 1.707-9.045l221.525-153.429zM852.48 474.453l-131.584-55.125c-3.243-1.365-4.949-5.12-3.413-8.533 1.024-2.56 3.413-3.925 5.973-3.925 0.853 0 1.707 0.171 2.56 0.512l131.584 55.125c3.243 1.365 4.949 5.12 3.413 8.533-1.365 3.243-5.291 4.779-8.533 3.413zM851.285 425.643l-153.771-64.341 2.219 83.285 0.683 0.341c0.341 0.171 0.512 0.171 0.853 0.341l157.696 66.048c2.219 0.853 3.755 2.901 3.925 5.291s-0.853 4.608-2.731 5.973l-221.696 153.6c-1.877 1.195-4.096 1.536-6.144 0.683l-464.213-194.389c-0.171 0-0.341-0.171-0.512-0.341-0.341-0.171-0.683-0.512-1.024-0.683-0.341-0.341-0.683-0.512-1.024-0.853-0.171-0.171-0.341-0.171-0.341-0.341-0.171-0.171-0.171-0.341-0.341-0.683s-0.341-0.853-0.512-1.195c-0.171-0.341-0.171-0.853-0.171-1.195s0-0.853 0-1.195c0-0.512 0.171-0.853 0.341-1.365 0-0.171 0-0.512 0.171-0.683 0-0.171 0.171-0.341 0.341-0.512 0.171-0.341 0.512-0.683 0.683-1.024 0.341-0.341 0.512-0.683 0.853-1.024 0.171-0.171 0.171-0.341 0.341-0.341l221.696-153.6c0 0 0 0 0 0 0.341-0.341 0.853-0.512 1.195-0.683 0.171 0 0.341-0.171 0.512-0.171 0.512-0.171 1.024-0.171 1.365-0.171 0.171 0 0.341 0 0.341 0v0c0 0 0 0 0 0 0.853 0 1.707 0.171 2.56 0.512l158.379 66.389-2.219-83.285-160.427-67.243-218.795 151.723c-2.901 2.048-6.997 1.365-9.045-1.707-2.048-2.901-1.365-6.997 1.707-9.045l221.696-153.6c1.195-0.853 2.389-1.195 3.755-1.195 0.853 0 1.707 0.171 2.56 0.512l464.213 194.389c3.243 1.365 4.949 5.12 3.413 8.533-1.536 3.072-5.291 4.608-8.533 3.243zM633.685 663.381l209.067-144.896-144.213-60.416-209.067 144.896 144.213 60.416zM392.704 330.069l-209.067 144.896 155.819 65.195 209.067-144.896-155.819-65.195zM566.101 395.264c0 0.171-0.171 0.341-0.171 0.683 0 0.512-0.171 0.853-0.171 1.365-0.171 0.341-0.171 0.853-0.512 1.195-0.171 0.341-0.341 0.683-0.683 1.024s-0.512 0.683-0.853 1.024c-0.171 0.171-0.341 0.341-0.512 0.512l-209.749 145.408 121.515 50.859 211.456-146.603-2.389-94.891-120.32-50.347 2.389 89.771zM391.168 437.76c-1.877 4.779-7.339 7.168-12.117 5.291s-7.168-7.339-5.291-12.117c1.877-4.779 7.339-7.168 12.117-5.291s7.168 7.339 5.291 12.117zM674.133 551.083c4.779 1.877 7.168 7.339 5.291 12.117s-7.339 7.168-12.117 5.291c-4.779-1.877-7.168-7.339-5.291-12.117 1.877-4.949 7.339-7.168 12.117-5.291z" />
|
42 |
-
<glyph unicode="" glyph-name="credit-card" d="M813.909 620.544h-645.12c-4.096 0-7.509-3.413-7.509-7.509v-376.832c0-4.096 3.413-7.509 7.509-7.509h645.12c4.096 0 7.509 3.413 7.509 7.509v376.832c0 4.096-3.243 7.509-7.509 7.509zM806.4 243.712h-630.101v361.813h630.101v-361.813zM717.141 378.197c-10.24 0-19.627-3.243-27.477-8.533-8.021 5.461-17.408 8.533-27.307 8.533-26.795 0-48.811-21.845-48.811-48.811s21.845-48.811 48.811-48.811c9.899 0 19.285 3.072 27.307 8.533 7.851-5.461 17.237-8.533 27.477-8.533 26.795 0 48.811 21.845 48.811 48.811s-22.016 48.811-48.811 48.811zM628.736 329.557c0 18.603 15.019 33.621 33.621 33.621 5.803 0 11.264-1.536 16.213-4.267-6.315-8.192-10.069-18.261-10.069-29.355s3.925-21.163 10.069-29.355c-4.949-2.731-10.411-4.267-16.213-4.267-18.603 0-33.621 15.019-33.621 33.621zM717.141 295.936c-18.603 0-33.621 15.019-33.621 33.621s15.019 33.621 33.621 33.621c18.603 0 33.621-15.019 33.621-33.621s-15.019-33.621-33.621-33.621zM224.427 472.064h117.589c4.096 0 7.509 3.413 7.509 7.509v80.555c0 4.096-3.413 7.509-7.509 7.509h-117.589c-4.096 0-7.509-3.413-7.509-7.509v-80.555c0-4.096 3.243-7.509 7.509-7.509zM231.936 552.619h102.571v-65.365h-102.571v65.365zM224.427 417.109h533.845c4.096 0 7.509 3.413 7.509 7.509s-3.413 7.509-7.509 7.509h-533.845c-4.096 0-7.509-3.413-7.509-7.509s3.243-7.509 7.509-7.509zM855.211 667.307h-628.736c-4.096 0-7.509-3.413-7.509-7.509s3.413-7.509 7.509-7.509h621.227v-359.765c0-4.096 3.413-7.509 7.509-7.509s7.509 3.413 7.509 7.509v367.275c0 4.096-3.413 7.509-7.509 7.509z" />
|
43 |
-
<glyph unicode="" glyph-name="check-circle" d="M483.499 298.667c-7.509 0-14.848 3.072-20.139 8.363l-99.499 99.669c-11.093 11.093-11.093 29.184 0 40.277s29.184 11.093 40.277 0l77.141-77.141 179.2 224.085c9.728 12.288 27.648 14.336 39.936 4.437 12.288-9.728 14.336-27.648 4.437-39.936l-199.168-249.173c-5.12-6.315-12.629-10.24-20.651-10.581-0.512 0-1.024 0-1.536 0zM512 35.499c-227.499 0-412.501 185.003-412.501 412.501s185.003 412.501 412.501 412.501 412.501-185.003 412.501-412.501-185.003-412.501-412.501-412.501zM512 803.499c-196.096 0-355.499-159.403-355.499-355.499s159.403-355.499 355.499-355.499 355.499 159.573 355.499 355.499-159.403 355.499-355.499 355.499z" />
|
44 |
-
<glyph unicode="" glyph-name="info-squared" d="M853.333 35.499h-682.667c-39.253 0-71.168 31.915-71.168 71.168v682.667c0 39.253 31.915 71.168 71.168 71.168h682.667c39.253 0 71.168-31.915 71.168-71.168v-682.667c0-39.253-31.915-71.168-71.168-71.168zM170.667 803.499c-7.851 0-14.165-6.315-14.165-14.165v-682.667c0-7.851 6.315-14.165 14.165-14.165h682.667c7.851 0 14.165 6.315 14.165 14.165v682.667c0 7.851-6.315 14.165-14.165 14.165h-682.667zM504.832 561.835c-19.627 0-35.499 15.872-35.499 35.499s15.872 35.499 35.499 35.499 35.499-15.872 35.499-35.499-15.872-35.499-35.499-35.499zM568.832 291.499h-28.501v199.168c0 15.701-12.8 28.501-28.501 28.501h-28.501c-15.701 0-28.501-12.8-28.501-28.501s12.8-28.501 28.501-28.501v-170.667h-28.501c-15.701 0-28.501-12.8-28.501-28.501s12.8-28.501 28.501-28.501h113.835c15.701 0 28.501 12.8 28.501 28.501s-12.629 28.501-28.331 28.501z" />
|
45 |
-
<glyph unicode="" glyph-name="warning-triangle" d="M504.832 789.333l384-682.667h-768l384 682.667zM504.832 846.165v0c-20.48 0-39.424-11.093-49.664-29.013l-384-682.667c-9.899-17.579-9.728-39.083 0.512-56.661 10.24-17.408 28.843-28.16 49.152-28.16h768c20.139 0 38.912 10.752 49.152 28.16s10.411 39.083 0.512 56.661l-384 682.667c-10.069 17.92-29.013 29.013-49.664 29.013v0zM504.832 276.48c23.552 0 42.667-19.115 42.667-42.667s-19.115-42.667-42.667-42.667-42.667 19.115-42.667 42.667 19.115 42.667 42.667 42.667zM497.835 334.165c-15.701 0-28.501 12.8-28.501 28.501v227.499c0 15.701 12.8 28.501 28.501 28.501s28.501-12.8 28.501-28.501v-227.499c-0.171-15.701-12.8-28.501-28.501-28.501z" />
|
46 |
-
</font></defs></svg>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/assets/fonts/yith-icon.ttf
CHANGED
Binary file
|
plugin-fw/assets/fonts/yith-icon.woff
DELETED
Binary file
|
plugin-fw/assets/fonts/yith-icon.woff2
ADDED
Binary file
|
plugin-fw/assets/images/yith-icon.svg
CHANGED
@@ -1 +1,14 @@
|
|
1 |
-
<?xml version="1.0" standalone="no"?><!-- Generator: Gravit.io
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" standalone="no"?><!-- Generator: Gravit.io -->
|
2 |
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="isolation:isolate" viewBox="0 0 20.5 20.479" width="20.5" height="20.479">
|
3 |
+
<defs>
|
4 |
+
<clipPath id="_clipPath_BBRuGaomYLKjPKjOOHpnNdPxBnLPFPyk">
|
5 |
+
<rect width="20.5" height="20.479"/>
|
6 |
+
</clipPath>
|
7 |
+
</defs>
|
8 |
+
<g clip-path="url(#_clipPath_BBRuGaomYLKjPKjOOHpnNdPxBnLPFPyk)">
|
9 |
+
<g>
|
10 |
+
<path d=" M 18.24 7.628 C 17.291 8.284 16.076 8.971 14.587 9.688 C 15.344 7.186 15.765 4.851 15.849 2.684 C 15.912 0.939 15.133 0.045 13.514 0.003 C 11.558 -0.06 10.275 1.033 9.665 3.284 C 10.007 3.137 10.359 3.063 10.723 3.063 C 11.021 3.063 11.267 3.184 11.459 3.426 C 11.651 3.668 11.736 3.947 11.715 4.262 C 11.695 5.082 11.276 5.961 10.46 6.896 C 9.644 7.833 8.918 8.3 8.282 8.3 C 7.837 8.3 7.625 7.922 7.646 7.165 C 7.667 6.765 7.804 5.955 8.056 4.735 C 8.287 3.579 8.403 2.801 8.403 2.401 C 8.403 1.707 8.224 1.144 7.867 0.713 C 7.509 0.282 6.994 0.098 6.321 0.161 C 5.858 0.203 5.175 0.624 4.27 1.422 C 3.596 2.035 2.923 2.644 2.25 3.254 L 2.976 4.106 C 3.564 3.664 3.922 3.443 4.048 3.443 C 4.448 3.443 4.637 3.717 4.617 4.263 C 4.617 4.306 4.427 4.968 4.049 6.251 C 3.671 7.534 3.471 8.491 3.449 9.122 C 3.407 9.985 3.565 10.647 3.924 11.109 C 4.367 11.677 5.106 11.919 6.142 11.835 C 7.366 11.751 8.591 11.298 9.816 10.479 C 10.323 10.142 10.808 9.753 11.273 9.311 C 11.105 10.153 10.905 10.868 10.673 11.457 C 8.402 12.487 6.762 13.37 5.752 14.107 C 4.321 15.137 3.554 16.241 3.449 17.419 C 3.259 19.459 4.29 20.479 6.541 20.479 C 8.055 20.479 9.517 19.554 10.926 17.703 C 12.125 16.126 13.166 14.022 14.049 11.394 C 15.578 10.635 16.87 9.892 17.928 9.164 C 17.894 9.409 18.319 7.308 18.24 7.628 Z M 7.393 16.095 C 7.056 16.095 6.898 15.947 6.919 15.653 C 6.961 15.106 7.908 14.38 9.759 13.476 C 8.791 15.221 8.002 16.095 7.393 16.095 Z "
|
11 |
+
fill="rgb(255,255,255)"/>
|
12 |
+
</g>
|
13 |
+
</g>
|
14 |
+
</svg>
|
plugin-fw/assets/js/yith-fields.js
CHANGED
@@ -23,7 +23,9 @@
|
|
23 |
|
24 |
/* Datepicker */
|
25 |
$datepicker.each( function () {
|
26 |
-
var
|
|
|
|
|
27 |
|
28 |
// set animation to false to prevent style 'glitches' when removing class on closing
|
29 |
args.showAnim = false;
|
@@ -34,7 +36,12 @@
|
|
34 |
instance.dpDiv.removeClass( 'yith-plugin-fw-datepicker-div' );
|
35 |
};
|
36 |
|
37 |
-
|
|
|
|
|
|
|
|
|
|
|
38 |
} );
|
39 |
|
40 |
/* Colorpicker */
|
@@ -203,8 +210,8 @@
|
|
203 |
} );
|
204 |
|
205 |
$image_gallery_ids.val( attachment_ids );
|
206 |
-
|
207 |
-
|
208 |
|
209 |
image_gallery_frame.open();
|
210 |
|
@@ -426,8 +433,13 @@
|
|
426 |
|
427 |
/* on-off */
|
428 |
$( document ).on( 'click', '.yith-plugin-fw-onoff-container span', function () {
|
429 |
-
var input
|
430 |
-
checked
|
|
|
|
|
|
|
|
|
|
|
431 |
|
432 |
if ( checked ) {
|
433 |
input.prop( 'checked', false ).attr( 'value', 'no' ).removeClass( 'onoffchecked' );
|
@@ -605,12 +617,12 @@
|
|
605 |
counter = 0,
|
606 |
hidden_obj = $( '<input type="hidden">' );
|
607 |
|
608 |
-
toggle_element.find( '.yith-toggle-row' ).each( function() {
|
609 |
var key = parseInt( $( this ).data( 'item_key' ) );
|
610 |
-
if( counter <= key ) {
|
611 |
counter = key + 1;
|
612 |
}
|
613 |
-
});
|
614 |
|
615 |
hidden_obj.val( counter );
|
616 |
|
@@ -809,4 +821,41 @@
|
|
809 |
};
|
810 |
fw_dimensions.init();
|
811 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
812 |
} )( jQuery );
|
23 |
|
24 |
/* Datepicker */
|
25 |
$datepicker.each( function () {
|
26 |
+
var currentDatePicker = $( this ),
|
27 |
+
args = currentDatePicker.data(),
|
28 |
+
icon = currentDatePicker.next( '.yith-icon-calendar' );
|
29 |
|
30 |
// set animation to false to prevent style 'glitches' when removing class on closing
|
31 |
args.showAnim = false;
|
36 |
instance.dpDiv.removeClass( 'yith-plugin-fw-datepicker-div' );
|
37 |
};
|
38 |
|
39 |
+
currentDatePicker.datepicker( args );
|
40 |
+
if ( icon ) {
|
41 |
+
icon.on( 'click', function () {
|
42 |
+
currentDatePicker.datepicker( 'show' );
|
43 |
+
} )
|
44 |
+
}
|
45 |
} );
|
46 |
|
47 |
/* Colorpicker */
|
210 |
} );
|
211 |
|
212 |
$image_gallery_ids.val( attachment_ids );
|
213 |
+
$image_gallery_ids.trigger( 'change' );
|
214 |
+
} );
|
215 |
|
216 |
image_gallery_frame.open();
|
217 |
|
433 |
|
434 |
/* on-off */
|
435 |
$( document ).on( 'click', '.yith-plugin-fw-onoff-container span', function () {
|
436 |
+
var input = $( this ).prev( 'input' ),
|
437 |
+
checked = input.prop( 'checked' ),
|
438 |
+
disabled = input.prop( 'disabled' );
|
439 |
+
|
440 |
+
if ( disabled ) {
|
441 |
+
return;
|
442 |
+
}
|
443 |
|
444 |
if ( checked ) {
|
445 |
input.prop( 'checked', false ).attr( 'value', 'no' ).removeClass( 'onoffchecked' );
|
617 |
counter = 0,
|
618 |
hidden_obj = $( '<input type="hidden">' );
|
619 |
|
620 |
+
toggle_element.find( '.yith-toggle-row' ).each( function () {
|
621 |
var key = parseInt( $( this ).data( 'item_key' ) );
|
622 |
+
if ( counter <= key ) {
|
623 |
counter = key + 1;
|
624 |
}
|
625 |
+
} );
|
626 |
|
627 |
hidden_obj.val( counter );
|
628 |
|
821 |
};
|
822 |
fw_dimensions.init();
|
823 |
|
824 |
+
/**
|
825 |
+
* Copy to clip-board
|
826 |
+
*/
|
827 |
+
var clearSelection = function () {
|
828 |
+
var selection = 'getSelection' in window ? window.getSelection() : false;
|
829 |
+
if ( selection ) {
|
830 |
+
if ( 'empty' in selection ) { // Chrome.
|
831 |
+
selection.empty();
|
832 |
+
} else if ( 'removeAllRanges' in selection ) { // Firefox.
|
833 |
+
selection.removeAllRanges();
|
834 |
+
}
|
835 |
+
} else if ( 'selection' in document ) { // IE.
|
836 |
+
document.selection.empty();
|
837 |
+
}
|
838 |
+
}
|
839 |
+
|
840 |
+
$( document ).on( 'click', '.yith-plugin-fw-copy-to-clipboard__copy', function () {
|
841 |
+
var wrap = $( this ).closest( '.yith-plugin-fw-copy-to-clipboard' ),
|
842 |
+
input = wrap.find( '.yith-plugin-fw-copy-to-clipboard__field' ),
|
843 |
+
tip = wrap.find( '.yith-plugin-fw-copy-to-clipboard__tip' ),
|
844 |
+
timeout = wrap.data( 'tip-timeout' );
|
845 |
+
|
846 |
+
timeout && clearTimeout( timeout );
|
847 |
+
|
848 |
+
input.select();
|
849 |
+
document.execCommand( 'copy' );
|
850 |
+
clearSelection();
|
851 |
+
|
852 |
+
tip.fadeIn( 400 );
|
853 |
+
|
854 |
+
// Use timeout instead of delay to prevent issues with multiple clicks.
|
855 |
+
timeout = setTimeout( function () {
|
856 |
+
tip.fadeOut( 400 );
|
857 |
+
}, 1500 );
|
858 |
+
wrap.data( 'tip-timeout', timeout );
|
859 |
+
} )
|
860 |
+
|
861 |
} )( jQuery );
|
plugin-fw/assets/js/yith-fields.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){e(document).on("yith_fields_init",function(){var t=e(".yith-plugin-fw-datepicker"),i=e(".yith-plugin-fw-colorpicker"),n={imgPreviewHandler:".yith-plugin-fw-upload-img-preview",uploadButtonHandler:".yith-plugin-fw-upload-button",imgUrlHandler:".yith-plugin-fw-upload-img-url",resetButtonHandler:".yith-plugin-fw-upload-button-reset",imgUrl:e(".yith-plugin-fw-upload-img-url")},a=e(".add_media"),l={rootSelector:".yith-plugin-fw-image-gallery",buttonSelector:".yith-plugin-fw-image-gallery .image-gallery-button",sliderWrapper:e(".yith-plugin-fw-image-gallery ul.slides-wrapper")},o=e(".yith-plugin-fw-sidebar-layout"),s=e(".yith-plugin-fw .yith-plugin-fw-slider-container .ui-slider-horizontal"),r=e(".yit-icons-manager-wrapper");e(".yith-plugin-ui td.forminp-checkbox");t.each(function(){var t=e(this).data();t.showAnim=!1,t.beforeShow=function(e,t){t.dpDiv.addClass("yith-plugin-fw-datepicker-div")},t.onClose=function(e,t){t.dpDiv.removeClass("yith-plugin-fw-datepicker-div")},e(this).datepicker(t)}),i.wpColorPicker({palettes:!1,width:200,mode:"hsl",clear:function(){var t=e(this);t.val(t.data("default-color")),t.change()}}),i.each(function(){var t=e(this).data("variations-label"),i=e(this).closest(".yith-plugin-fw-colorpicker-field-wrapper"),n=e(this).closest(".yith-single-colorpicker"),a=i.find(".wp-picker-input-wrap"),l=n.find(".wp-picker-input-wrap");if(a.length&&i.find("a.wp-color-result").attr("title",t),n.length&&n.find("a.wp-color-result").attr("title",t),!a.find(".wp-picker-default-custom").length){var o=e("<span/>").attr({"class":"wp-picker-default-custom"});a.find(".wp-picker-default").wrap(o)}l.find(".wp-picker-default-custom").length||(o=e("<span/>").attr({"class":"wp-picker-default-custom"}),l.find(".wp-picker-default").wrap(o))}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(n.imgUrl.change(function(){var t=e(this).val(),i=new RegExp("(http|ftp|https)://[a-zA-Z0-9@?^=%&:/~+#-_.]*.(gif|jpg|jpeg|png|ico|svg)"),a=e(this).parent().find(n.imgPreviewHandler).first();a.length<1&&(a=e(this).parent().parent().find(n.imgPreviewHandler).first()),i.test(t)?a.html('<img src="'+t+'" style="max-width:100px; max-height:100px;" />'):a.html("")}).trigger("change"),e(document).on("click",n.uploadButtonHandler,function(t){t.preventDefault();var i,a=e(this).attr("id").replace(/-button$/,"").replace(/(\[|\])/g,"\\$1");if(i)i.open();else{var l=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:"Choose Image",priority:20,filterable:"uploaded"})];(i=wp.media.frames.downloadable_file=wp.media({title:"Choose Image",library:{type:""},button:{text:"Choose Image"},multiple:!1,states:l})).on("select",function(){var t=i.state().get("selection").first().toJSON();e("#"+a).val(t.url),e("#"+a+"-yith-attachment-id")&&e("#"+a+"-yith-attachment-id").val(t.id),n.imgUrl.trigger("change")}),i.open()}}),e(document).on("click",n.resetButtonHandler,function(t){var i=e(this),a=i.attr("id").replace(/(\[|\])/g,"\\$1"),l=i.attr("id").replace(/-button-reset$/,"").replace(/(\[|\])/g,"\\$1"),o=e("#"+a).data("default");e("#"+l).val(o),n.imgUrl.trigger("change")}));a.on("click",function(){}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(e(document).on("click",l.buttonSelector,function(t){var i=e(this),n=i.closest(l.rootSelector),a=n.find(".image_gallery_ids"),o=a.val(),s=n.find("ul.slides-wrapper"),r=wp.media.frames.image_gallery=wp.media({title:i.data("choose"),button:{text:i.data("update")},states:[new wp.media.controller.Library({title:i.data("choose"),filterable:"all",multiple:!0})]});r.on("select",function(){r.state().get("selection").map(function(e){(e=e.toJSON()).id&&(o=o?o+","+e.id:e.id,s.append('<li class="image" data-attachment_id="'+e.id+'"><img src="'+e.sizes.thumbnail.url+'"/><ul class="actions"><li><a href="#" class="delete" title="'+i.data("delete")+'">x</a></li></ul></li>'))}),a.val(o),a.trigger("change")}),r.open()}),l.sliderWrapper.each(function(){var t=e(this);t.sortable({items:"li.image",cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,helper:"clone",opacity:.65,start:function(e,t){t.item.css("background-color","#f6f6f6")},stop:function(e,t){t.item.removeAttr("style")},update:function(i,n){var a="";t.find("li.image").css("cursor","default").each(function(){var t=e(this).attr("data-attachment_id");a=a+t+","}),t.closest(l.rootSelector).find(".image_gallery_ids").val(a)}})}),l.sliderWrapper.on("click","a.delete",function(t){t.preventDefault();var i=e(this).closest(l.rootSelector),n=i.find("ul.slides-wrapper"),a=i.find(".image_gallery_ids"),o="";e(this).closest("li.image").remove(),n.find("li.image").css("cursor","default").each(function(){var t=e(this).attr("data-attachment_id");o=o+t+","}),a.val(o)})),o.each(function(){e(this).find("img").on("click",function(){var t=e(this).closest(".yith-plugin-fw-sidebar-layout"),i=t.find(".yith-plugin-fw-sidebar-layout-sidebar-left-container"),n=t.find(".yith-plugin-fw-sidebar-layout-sidebar-right-container"),a=e(this).data("type");if(e(this).parent().children(":radio").attr("checked",!1),e(this).prev(":radio").attr("checked",!0),void 0!==a)switch(a){case"left":i.show(),n.hide();break;case"right":n.show(),i.hide();break;case"double":i.show(),n.show();break;default:i.hide(),n.hide()}})}),s.each(function(){var t=e(this).data("val"),i=e(this).data("min"),n=e(this).data("max"),a=e(this).data("step"),l=e(this).data("labels");e(this).slider({value:t,min:i,max:n,range:"min",step:a,create:function(){e(this).find(".ui-slider-handle").text(e(this).slider("value"))},slide:function(t,i){e(this).find("input").val(i.value),e(this).find(".ui-slider-handle").text(i.value),e(this).siblings(".feedback").find("strong").text(i.value+l)}})}),e(function(){e(document).on("yith-plugin-fw-codemirror-init",function(){"undefined"!=typeof wp&&"undefined"!=typeof wp.codeEditor&&e(".codemirror:not(.codemirror--initialized)").each(function(){var t=e(this).data("settings"),i=wp.codeEditor.initialize(e(this),t);e(this).addClass("codemirror--initialized"),e(this).data("codemirrorInstance",i)})}).trigger("yith-plugin-fw-codemirror-init")}),e(document).on("click",".yith-plugin-fw-select-all",function(){e("#"+e(this).data("select-id")).find("option").prop("selected",!0).trigger("change")}),e(document).on("click",".yith-plugin-fw-deselect-all",function(){e("#"+e(this).data("select-id")).find("option").prop("selected",!1).trigger("change")}),r.each(function(){var t=e(this),i=t.find(".yit-icons-manager-icon-preview").first(),n=t.find(".yit-icons-manager-icon-text");t.on("click",".yit-icons-manager-list li",function(a){var l=e(a.target).closest("li"),o=l.data("font"),s=l.data("icon"),r=l.data("key"),d=l.data("name");i.attr("data-font",o),i.attr("data-icon",s),i.attr("data-key",r),i.attr("data-name",d),n.val(o+":"+d),t.find(".yit-icons-manager-list li").removeClass("active"),l.addClass("active")}),t.on("click",".yit-icons-manager-action-set-default",function(){t.find(".yit-icons-manager-list li.default").trigger("click")})}),e(document).on("click",".yith-plugin-fw-select-images__item",function(){var t=e(this),i=t.data("key"),n=t.closest(".yith-plugin-fw-select-images__wrapper"),a=n.find(".yith-plugin-fw-select-images__item"),l=n.find("select").first();l.length&&(l.val(i).trigger("yith_select_images_value_changed"),a.removeClass("yith-plugin-fw-select-images__item--selected"),t.addClass("yith-plugin-fw-select-images__item--selected"))}),e(document.body).trigger("wc-enhanced-select-init"),e(document).find(".ui-sortable .yith-toggle-elements").sortable({cursor:"move",axis:"y",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",stop:function(t,i){var n=jQuery(".ui-sortable-handle"),a=0,l=new Array;for(a=0;a<n.length;a++)l[a]=e(n[a]).data("item_key");l.length>0&&e(this).closest(".toggle-element").saveToggleElement(null,l)}}),e(document.body).trigger("yith-framework-enhanced-select-init")}).trigger("yith_fields_init"),e(document).on("click",".yith-plugin-fw-onoff-container span",function(){var t=e(this).prev("input");t.prop("checked")?t.prop("checked",!1).attr("value","no").removeClass("onoffchecked"):t.prop("checked",!0).attr("value","yes").addClass("onoffchecked"),t.change()}),e.fn.saveToggleElement=function(t,i){var n=e(this),a="yith_plugin_fw_save_toggle_element",l=n.serializeToggleElement(),o=n.find(".yith-toggle_wrapper"),s=o.attr("id"),r=e.urlParam("tab");l.append("security",o.data("nonce")),void 0!==i&&i.length>0&&l.append("yith_toggle_elements_order_keys",i),n.closest(".metaboxes-tab.yith-plugin-ui").length?(a="yith_plugin_fw_save_toggle_element_metabox",post_id=e(this).closest("form#post").find("#post_ID").val(),yit_metaboxes_nonce=e(this).closest("form#post").find("#yit_metaboxes_nonce").val(),metabox_tab=e(this).closest(".tabs-panel").attr("id"),url=yith_framework_fw_fields.ajax_url+"?action="+a+"&post_ID="+post_id+"&yit_metaboxes_nonce="+yit_metaboxes_nonce+"&toggle_id="+s+"&metabox_tab="+metabox_tab):url=yith_framework_fw_fields.admin_url+"?action="+a+"&tab="+r+"&toggle_id="+s,e.ajax({type:"POST",url:url,data:l,contentType:!1,processData:!1,success:function(i){t&&t.removeClass("show"),e(document).trigger("yith_save_toggle_element_done",[i,n])}})},e.fn.serializeToggleElement=function(){var t=e(this),i=new FormData,n=e(t).find(":input").serializeArray();return e.each(n,function(e,t){el_name=t.name,i.append(t.name,t.value)}),i},e.fn.formatToggleTitle=function(){var t=e(this),i=t.find(":input"),n=t.find("span.title").data("title_format"),a=t.find(".subtitle").data("subtitle_format"),l=new RegExp("[^%%]+(?=[%%])","g");if(void 0!==n)var o=n.match(l);if(void 0!==a)var s=a.match(l);e.each(i,function(t,i){void 0!==e(i).attr("id")&&($field_id=e(i).attr("id"),$field_array=$field_id.split("_"),$field_array.pop(),$field_id=$field_array.join("_"),$field_val=e(i).val(),null!=o&&void 0!==o&&-1!==o.indexOf($field_id)&&(n=n.replace("%%"+$field_id+"%%",$field_val)),null!=s&&void 0!==s&&-1!==s.indexOf($field_id)&&(a=a.replace("%%"+$field_id+"%%",$field_val)))}),""!==n&&t.find("span.title").html(n),""!==a&&t.find(".subtitle").html(a),e(document).trigger("yith-toggle-element-item-title",[t])},e.urlParam=function(e){var t=new RegExp("[?&]"+e+"=([^&#]*)").exec(window.location.search);return null!==t&&(t[1]||0)},e(document).on("click",".yith-toggle-title",function(t){var i=e(t.target),n=i.closest(".yith-toggle-row"),a=n.find(".yith-toggle-content");if(i.hasClass("yith-plugin-fw-onoff")||i.hasClass("yith-icon-drag"))return!1;n.is(".yith-toggle-row-opened")?a.slideUp(400):a.slideDown(400),n.toggleClass("yith-toggle-row-opened")}),e(document).on("click",".yith-add-box-button",function(t){t.preventDefault();var i=e(this),n=i.data("box_id"),a=i.data("closed_label"),l=i.data("opened_label"),o=i.closest(".yith-toggle_wrapper").attr("id"),s=wp.template("yith-toggle-element-add-box-content-"+o);""!==n&&(e("#"+n).html(s({index:"box_id"})).slideToggle(),""!==a&&(i.html()===a?i.html(l).removeClass("closed"):i.html(a).addClass("closed")),e(document).trigger("yith_fields_init"),e(document).trigger("yith-add-box-button-toggle",[i]))}),e(document).on("click",".yith-add-box-buttons .yith-save-button",function(t){t.preventDefault();var i=e(this).parents(".yith-add-box"),n=e(this).closest(".yith-toggle_wrapper").attr("id"),a=i.find(".spinner"),l=e(this).parents(".toggle-element"),o=i.find(":input"),s=0,r=e('<input type="hidden">');l.find(".yith-toggle-row").each(function(){var t=parseInt(e(this).data("item_key"));s<=t&&(s=t+1)}),r.val(s),e(document).trigger("yith-toggle-change-counter",[r,i]),s=r.val();var d=wp.template("yith-toggle-element-item-"+n),c=e(d({index:s}));a.addClass("show"),e.each(o,function(t,i){if(void 0!==e(i).attr("id")){var n=e(i).attr("id"),a=e(i).val();n="radio"===e(i).attr("type")?(n=(n=e(i).closest(".yith-plugin-fw-radio").attr("id")).replace("new_","")+"_"+s)+"-"+a:n.replace("new_","")+"_"+s,e(i).is(":checked")&&e(c).find("#"+n).prop("checked",!0),(e(i).hasClass("yith-post-search")||e(i).hasClass("yith-term-search"))&&e(c).find("#"+n).html(e("#"+e(i).attr("id")).html()),e(c).find("#"+n).val(a)}}),e(c).formatToggleTitle();var u=e('<input type="hidden">').val("yes");e(document).trigger("yith-toggle-element-item-before-add",[i,c,u]);setTimeout(function(){if("yes"===u.val()){e(l).find(".yith-toggle-elements").append(c),e(i).find(".yith-plugin-fw-datepicker").datepicker("destroy"),e(i).html(""),e(i).prev(".yith-add-box-button").trigger("click"),l.saveToggleElement();setTimeout(function(){e(l).find(".highlight").removeClass("highlight")},2e3),e(document).trigger("yith_fields_init")}},1e3)}),e(document).on("click",".yith-toggle-row .yith-save-button",function(t){t.preventDefault();var i=e(this).closest(".toggle-element"),n=e(this).closest(".yith-toggle-row"),a=n.find(".spinner");n.formatToggleTitle();var l=e('<input type="hidden">').val("yes");e(document).trigger("yith-toggle-element-item-before-update",[i,n,l]),"yes"===l.val()&&(a.addClass("show"),i.saveToggleElement(a))}),e(document).on("click",".yith-toggle-row .yith-delete-button",function(t){t.preventDefault();var i=e(this).closest(".toggle-element");e(this).closest(".yith-toggle-row").remove(),i.saveToggleElement()}),e(document).on("click",".yith-toggle-onoff",function(t){t.preventDefault(),e(this).closest(".toggle-element").saveToggleElement()}),e(document).on("click",".yith-plugin-fw-radio input[type=radio]",function(){var t=e(this).closest(".yith-plugin-fw-radio"),i=e(this).val();t.val(i).data("value",i).trigger("change")}),e(document.body).on("yith-plugin-fw-init-radio",function(){e(".yith-plugin-fw-radio:not(.yith-plugin-fw-radio--initialized)").each(function(){e(this).val(e(this).data("value")),e(this).addClass("yith-plugin-fw-radio--initialized")})}).trigger("yith-plugin-fw-init-radio"),e(document).on("click",".yith-password-eye",function(){var t=e(this),i=e(this).closest(".yith-password-wrapper").find("input");"password"===i.attr("type")?(i.attr("type","text"),t.addClass("yith-password-eye-closed")):(i.attr("type","password"),t.removeClass("yith-password-eye-closed"))}),e(document).on("select2:open",function(t){e(t.target).closest(".yith-plugin-ui").length&&e(".select2-results").closest(".select2-container").addClass("yith-plugin-fw-select2-container")});var t={selectors:{wrapper:".yith-plugin-fw-dimensions",units:{wrapper:".yith-plugin-fw-dimensions__units",single:".yith-plugin-fw-dimensions__unit",value:".yith-plugin-fw-dimensions__unit__value",selectedClass:"yith-plugin-fw-dimensions__unit--selected"},linked:{button:".yith-plugin-fw-dimensions__linked",value:".yith-plugin-fw-dimensions__linked__value",wrapperActiveClass:"yith-plugin-fw-dimensions--linked-active"},dimensions:{number:".yith-plugin-fw-dimensions__dimension__number"}},init:function(){var i=t;e(document).on("click",i.selectors.units.single,i.unitChange),e(document).on("click",i.selectors.linked.button,i.linkedChange),e(document).on("change keyup",i.selectors.dimensions.number,i.numberChange)},unitChange:function(i){var n=e(this).closest(t.selectors.units.single),a=n.closest(t.selectors.units.wrapper),l=a.find(t.selectors.units.single),o=a.find(t.selectors.units.value).first(),s=n.data("value");l.removeClass(t.selectors.units.selectedClass),n.addClass(t.selectors.units.selectedClass),o.val(s)},linkedChange:function(){var i=e(this).closest(t.selectors.linked.button),n=i.closest(t.selectors.wrapper),a=i.find(t.selectors.linked.value);"yes"===a.val()?(n.removeClass(t.selectors.linked.wrapperActiveClass),a.val("no")):(n.addClass(t.selectors.linked.wrapperActiveClass),a.val("yes"),n.find(t.selectors.dimensions.number).first().trigger("change"))},numberChange:function(i){var n=e(this).closest(t.selectors.dimensions.number),a=n.closest(t.selectors.wrapper);a.hasClass(t.selectors.linked.wrapperActiveClass)&&a.find(t.selectors.dimensions.number).val(n.val())}};t.init()}(jQuery);
|
1 |
+
!function(e){e(document).on("yith_fields_init",function(){var t=e(".yith-plugin-fw-datepicker"),i=e(".yith-plugin-fw-colorpicker"),n={imgPreviewHandler:".yith-plugin-fw-upload-img-preview",uploadButtonHandler:".yith-plugin-fw-upload-button",imgUrlHandler:".yith-plugin-fw-upload-img-url",resetButtonHandler:".yith-plugin-fw-upload-button-reset",imgUrl:e(".yith-plugin-fw-upload-img-url")},a=e(".add_media"),l={rootSelector:".yith-plugin-fw-image-gallery",buttonSelector:".yith-plugin-fw-image-gallery .image-gallery-button",sliderWrapper:e(".yith-plugin-fw-image-gallery ul.slides-wrapper")},o=e(".yith-plugin-fw-sidebar-layout"),s=e(".yith-plugin-fw .yith-plugin-fw-slider-container .ui-slider-horizontal"),r=e(".yit-icons-manager-wrapper");e(".yith-plugin-ui td.forminp-checkbox");t.each(function(){var t=e(this),i=t.data(),n=t.next(".yith-icon-calendar");i.showAnim=!1,i.beforeShow=function(e,t){t.dpDiv.addClass("yith-plugin-fw-datepicker-div")},i.onClose=function(e,t){t.dpDiv.removeClass("yith-plugin-fw-datepicker-div")},t.datepicker(i),n&&n.on("click",function(){t.datepicker("show")})}),i.wpColorPicker({palettes:!1,width:200,mode:"hsl",clear:function(){var t=e(this);t.val(t.data("default-color")),t.change()}}),i.each(function(){var t=e(this).data("variations-label"),i=e(this).closest(".yith-plugin-fw-colorpicker-field-wrapper"),n=e(this).closest(".yith-single-colorpicker"),a=i.find(".wp-picker-input-wrap"),l=n.find(".wp-picker-input-wrap");if(a.length&&i.find("a.wp-color-result").attr("title",t),n.length&&n.find("a.wp-color-result").attr("title",t),!a.find(".wp-picker-default-custom").length){var o=e("<span/>").attr({"class":"wp-picker-default-custom"});a.find(".wp-picker-default").wrap(o)}l.find(".wp-picker-default-custom").length||(o=e("<span/>").attr({"class":"wp-picker-default-custom"}),l.find(".wp-picker-default").wrap(o))}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(n.imgUrl.change(function(){var t=e(this).val(),i=new RegExp("(http|ftp|https)://[a-zA-Z0-9@?^=%&:/~+#-_.]*.(gif|jpg|jpeg|png|ico|svg)"),a=e(this).parent().find(n.imgPreviewHandler).first();a.length<1&&(a=e(this).parent().parent().find(n.imgPreviewHandler).first()),i.test(t)?a.html('<img src="'+t+'" style="max-width:100px; max-height:100px;" />'):a.html("")}).trigger("change"),e(document).on("click",n.uploadButtonHandler,function(t){t.preventDefault();var i,a=e(this).attr("id").replace(/-button$/,"").replace(/(\[|\])/g,"\\$1");if(i)i.open();else{var l=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:"Choose Image",priority:20,filterable:"uploaded"})];(i=wp.media.frames.downloadable_file=wp.media({title:"Choose Image",library:{type:""},button:{text:"Choose Image"},multiple:!1,states:l})).on("select",function(){var t=i.state().get("selection").first().toJSON();e("#"+a).val(t.url),e("#"+a+"-yith-attachment-id")&&e("#"+a+"-yith-attachment-id").val(t.id),n.imgUrl.trigger("change")}),i.open()}}),e(document).on("click",n.resetButtonHandler,function(t){var i=e(this),a=i.attr("id").replace(/(\[|\])/g,"\\$1"),l=i.attr("id").replace(/-button-reset$/,"").replace(/(\[|\])/g,"\\$1"),o=e("#"+a).data("default");e("#"+l).val(o),n.imgUrl.trigger("change")}));a.on("click",function(){}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(e(document).on("click",l.buttonSelector,function(t){var i=e(this),n=i.closest(l.rootSelector),a=n.find(".image_gallery_ids"),o=a.val(),s=n.find("ul.slides-wrapper"),r=wp.media.frames.image_gallery=wp.media({title:i.data("choose"),button:{text:i.data("update")},states:[new wp.media.controller.Library({title:i.data("choose"),filterable:"all",multiple:!0})]});r.on("select",function(){r.state().get("selection").map(function(e){(e=e.toJSON()).id&&(o=o?o+","+e.id:e.id,s.append('<li class="image" data-attachment_id="'+e.id+'"><img src="'+e.sizes.thumbnail.url+'"/><ul class="actions"><li><a href="#" class="delete" title="'+i.data("delete")+'">x</a></li></ul></li>'))}),a.val(o),a.trigger("change")}),r.open()}),l.sliderWrapper.each(function(){var t=e(this);t.sortable({items:"li.image",cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,helper:"clone",opacity:.65,start:function(e,t){t.item.css("background-color","#f6f6f6")},stop:function(e,t){t.item.removeAttr("style")},update:function(i,n){var a="";t.find("li.image").css("cursor","default").each(function(){var t=e(this).attr("data-attachment_id");a=a+t+","}),t.closest(l.rootSelector).find(".image_gallery_ids").val(a)}})}),l.sliderWrapper.on("click","a.delete",function(t){t.preventDefault();var i=e(this).closest(l.rootSelector),n=i.find("ul.slides-wrapper"),a=i.find(".image_gallery_ids"),o="";e(this).closest("li.image").remove(),n.find("li.image").css("cursor","default").each(function(){var t=e(this).attr("data-attachment_id");o=o+t+","}),a.val(o)})),o.each(function(){e(this).find("img").on("click",function(){var t=e(this).closest(".yith-plugin-fw-sidebar-layout"),i=t.find(".yith-plugin-fw-sidebar-layout-sidebar-left-container"),n=t.find(".yith-plugin-fw-sidebar-layout-sidebar-right-container"),a=e(this).data("type");if(e(this).parent().children(":radio").attr("checked",!1),e(this).prev(":radio").attr("checked",!0),void 0!==a)switch(a){case"left":i.show(),n.hide();break;case"right":n.show(),i.hide();break;case"double":i.show(),n.show();break;default:i.hide(),n.hide()}})}),s.each(function(){var t=e(this).data("val"),i=e(this).data("min"),n=e(this).data("max"),a=e(this).data("step"),l=e(this).data("labels");e(this).slider({value:t,min:i,max:n,range:"min",step:a,create:function(){e(this).find(".ui-slider-handle").text(e(this).slider("value"))},slide:function(t,i){e(this).find("input").val(i.value),e(this).find(".ui-slider-handle").text(i.value),e(this).siblings(".feedback").find("strong").text(i.value+l)}})}),e(function(){e(document).on("yith-plugin-fw-codemirror-init",function(){"undefined"!=typeof wp&&"undefined"!=typeof wp.codeEditor&&e(".codemirror:not(.codemirror--initialized)").each(function(){var t=e(this).data("settings"),i=wp.codeEditor.initialize(e(this),t);e(this).addClass("codemirror--initialized"),e(this).data("codemirrorInstance",i)})}).trigger("yith-plugin-fw-codemirror-init")}),e(document).on("click",".yith-plugin-fw-select-all",function(){e("#"+e(this).data("select-id")).find("option").prop("selected",!0).trigger("change")}),e(document).on("click",".yith-plugin-fw-deselect-all",function(){e("#"+e(this).data("select-id")).find("option").prop("selected",!1).trigger("change")}),r.each(function(){var t=e(this),i=t.find(".yit-icons-manager-icon-preview").first(),n=t.find(".yit-icons-manager-icon-text");t.on("click",".yit-icons-manager-list li",function(a){var l=e(a.target).closest("li"),o=l.data("font"),s=l.data("icon"),r=l.data("key"),d=l.data("name");i.attr("data-font",o),i.attr("data-icon",s),i.attr("data-key",r),i.attr("data-name",d),n.val(o+":"+d),t.find(".yit-icons-manager-list li").removeClass("active"),l.addClass("active")}),t.on("click",".yit-icons-manager-action-set-default",function(){t.find(".yit-icons-manager-list li.default").trigger("click")})}),e(document).on("click",".yith-plugin-fw-select-images__item",function(){var t=e(this),i=t.data("key"),n=t.closest(".yith-plugin-fw-select-images__wrapper"),a=n.find(".yith-plugin-fw-select-images__item"),l=n.find("select").first();l.length&&(l.val(i).trigger("yith_select_images_value_changed"),a.removeClass("yith-plugin-fw-select-images__item--selected"),t.addClass("yith-plugin-fw-select-images__item--selected"))}),e(document.body).trigger("wc-enhanced-select-init"),e(document).find(".ui-sortable .yith-toggle-elements").sortable({cursor:"move",axis:"y",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",stop:function(t,i){var n=jQuery(".ui-sortable-handle"),a=0,l=new Array;for(a=0;a<n.length;a++)l[a]=e(n[a]).data("item_key");l.length>0&&e(this).closest(".toggle-element").saveToggleElement(null,l)}}),e(document.body).trigger("yith-framework-enhanced-select-init")}).trigger("yith_fields_init"),e(document).on("click",".yith-plugin-fw-onoff-container span",function(){var t=e(this).prev("input"),i=t.prop("checked");t.prop("disabled")||(i?t.prop("checked",!1).attr("value","no").removeClass("onoffchecked"):t.prop("checked",!0).attr("value","yes").addClass("onoffchecked"),t.change())}),e.fn.saveToggleElement=function(t,i){var n=e(this),a="yith_plugin_fw_save_toggle_element",l=n.serializeToggleElement(),o=n.find(".yith-toggle_wrapper"),s=o.attr("id"),r=e.urlParam("tab");l.append("security",o.data("nonce")),void 0!==i&&i.length>0&&l.append("yith_toggle_elements_order_keys",i),n.closest(".metaboxes-tab.yith-plugin-ui").length?(a="yith_plugin_fw_save_toggle_element_metabox",post_id=e(this).closest("form#post").find("#post_ID").val(),yit_metaboxes_nonce=e(this).closest("form#post").find("#yit_metaboxes_nonce").val(),metabox_tab=e(this).closest(".tabs-panel").attr("id"),url=yith_framework_fw_fields.ajax_url+"?action="+a+"&post_ID="+post_id+"&yit_metaboxes_nonce="+yit_metaboxes_nonce+"&toggle_id="+s+"&metabox_tab="+metabox_tab):url=yith_framework_fw_fields.admin_url+"?action="+a+"&tab="+r+"&toggle_id="+s,e.ajax({type:"POST",url:url,data:l,contentType:!1,processData:!1,success:function(i){t&&t.removeClass("show"),e(document).trigger("yith_save_toggle_element_done",[i,n])}})},e.fn.serializeToggleElement=function(){var t=e(this),i=new FormData,n=e(t).find(":input").serializeArray();return e.each(n,function(e,t){el_name=t.name,i.append(t.name,t.value)}),i},e.fn.formatToggleTitle=function(){var t=e(this),i=t.find(":input"),n=t.find("span.title").data("title_format"),a=t.find(".subtitle").data("subtitle_format"),l=new RegExp("[^%%]+(?=[%%])","g");if(void 0!==n)var o=n.match(l);if(void 0!==a)var s=a.match(l);e.each(i,function(t,i){void 0!==e(i).attr("id")&&($field_id=e(i).attr("id"),$field_array=$field_id.split("_"),$field_array.pop(),$field_id=$field_array.join("_"),$field_val=e(i).val(),null!=o&&void 0!==o&&-1!==o.indexOf($field_id)&&(n=n.replace("%%"+$field_id+"%%",$field_val)),null!=s&&void 0!==s&&-1!==s.indexOf($field_id)&&(a=a.replace("%%"+$field_id+"%%",$field_val)))}),""!==n&&t.find("span.title").html(n),""!==a&&t.find(".subtitle").html(a),e(document).trigger("yith-toggle-element-item-title",[t])},e.urlParam=function(e){var t=new RegExp("[?&]"+e+"=([^&#]*)").exec(window.location.search);return null!==t&&(t[1]||0)},e(document).on("click",".yith-toggle-title",function(t){var i=e(t.target),n=i.closest(".yith-toggle-row"),a=n.find(".yith-toggle-content");if(i.hasClass("yith-plugin-fw-onoff")||i.hasClass("yith-icon-drag"))return!1;n.is(".yith-toggle-row-opened")?a.slideUp(400):a.slideDown(400),n.toggleClass("yith-toggle-row-opened")}),e(document).on("click",".yith-add-box-button",function(t){t.preventDefault();var i=e(this),n=i.data("box_id"),a=i.data("closed_label"),l=i.data("opened_label"),o=i.closest(".yith-toggle_wrapper").attr("id"),s=wp.template("yith-toggle-element-add-box-content-"+o);""!==n&&(e("#"+n).html(s({index:"box_id"})).slideToggle(),""!==a&&(i.html()===a?i.html(l).removeClass("closed"):i.html(a).addClass("closed")),e(document).trigger("yith_fields_init"),e(document).trigger("yith-add-box-button-toggle",[i]))}),e(document).on("click",".yith-add-box-buttons .yith-save-button",function(t){t.preventDefault();var i=e(this).parents(".yith-add-box"),n=e(this).closest(".yith-toggle_wrapper").attr("id"),a=i.find(".spinner"),l=e(this).parents(".toggle-element"),o=i.find(":input"),s=0,r=e('<input type="hidden">');l.find(".yith-toggle-row").each(function(){var t=parseInt(e(this).data("item_key"));s<=t&&(s=t+1)}),r.val(s),e(document).trigger("yith-toggle-change-counter",[r,i]),s=r.val();var d=wp.template("yith-toggle-element-item-"+n),c=e(d({index:s}));a.addClass("show"),e.each(o,function(t,i){if(void 0!==e(i).attr("id")){var n=e(i).attr("id"),a=e(i).val();n="radio"===e(i).attr("type")?(n=(n=e(i).closest(".yith-plugin-fw-radio").attr("id")).replace("new_","")+"_"+s)+"-"+a:n.replace("new_","")+"_"+s,e(i).is(":checked")&&e(c).find("#"+n).prop("checked",!0),(e(i).hasClass("yith-post-search")||e(i).hasClass("yith-term-search"))&&e(c).find("#"+n).html(e("#"+e(i).attr("id")).html()),e(c).find("#"+n).val(a)}}),e(c).formatToggleTitle();var u=e('<input type="hidden">').val("yes");e(document).trigger("yith-toggle-element-item-before-add",[i,c,u]);setTimeout(function(){if("yes"===u.val()){e(l).find(".yith-toggle-elements").append(c),e(i).find(".yith-plugin-fw-datepicker").datepicker("destroy"),e(i).html(""),e(i).prev(".yith-add-box-button").trigger("click"),l.saveToggleElement();setTimeout(function(){e(l).find(".highlight").removeClass("highlight")},2e3),e(document).trigger("yith_fields_init")}},1e3)}),e(document).on("click",".yith-toggle-row .yith-save-button",function(t){t.preventDefault();var i=e(this).closest(".toggle-element"),n=e(this).closest(".yith-toggle-row"),a=n.find(".spinner");n.formatToggleTitle();var l=e('<input type="hidden">').val("yes");e(document).trigger("yith-toggle-element-item-before-update",[i,n,l]),"yes"===l.val()&&(a.addClass("show"),i.saveToggleElement(a))}),e(document).on("click",".yith-toggle-row .yith-delete-button",function(t){t.preventDefault();var i=e(this).closest(".toggle-element");e(this).closest(".yith-toggle-row").remove(),i.saveToggleElement()}),e(document).on("click",".yith-toggle-onoff",function(t){t.preventDefault(),e(this).closest(".toggle-element").saveToggleElement()}),e(document).on("click",".yith-plugin-fw-radio input[type=radio]",function(){var t=e(this).closest(".yith-plugin-fw-radio"),i=e(this).val();t.val(i).data("value",i).trigger("change")}),e(document.body).on("yith-plugin-fw-init-radio",function(){e(".yith-plugin-fw-radio:not(.yith-plugin-fw-radio--initialized)").each(function(){e(this).val(e(this).data("value")),e(this).addClass("yith-plugin-fw-radio--initialized")})}).trigger("yith-plugin-fw-init-radio"),e(document).on("click",".yith-password-eye",function(){var t=e(this),i=e(this).closest(".yith-password-wrapper").find("input");"password"===i.attr("type")?(i.attr("type","text"),t.addClass("yith-password-eye-closed")):(i.attr("type","password"),t.removeClass("yith-password-eye-closed"))}),e(document).on("select2:open",function(t){e(t.target).closest(".yith-plugin-ui").length&&e(".select2-results").closest(".select2-container").addClass("yith-plugin-fw-select2-container")});var t={selectors:{wrapper:".yith-plugin-fw-dimensions",units:{wrapper:".yith-plugin-fw-dimensions__units",single:".yith-plugin-fw-dimensions__unit",value:".yith-plugin-fw-dimensions__unit__value",selectedClass:"yith-plugin-fw-dimensions__unit--selected"},linked:{button:".yith-plugin-fw-dimensions__linked",value:".yith-plugin-fw-dimensions__linked__value",wrapperActiveClass:"yith-plugin-fw-dimensions--linked-active"},dimensions:{number:".yith-plugin-fw-dimensions__dimension__number"}},init:function(){var i=t;e(document).on("click",i.selectors.units.single,i.unitChange),e(document).on("click",i.selectors.linked.button,i.linkedChange),e(document).on("change keyup",i.selectors.dimensions.number,i.numberChange)},unitChange:function(i){var n=e(this).closest(t.selectors.units.single),a=n.closest(t.selectors.units.wrapper),l=a.find(t.selectors.units.single),o=a.find(t.selectors.units.value).first(),s=n.data("value");l.removeClass(t.selectors.units.selectedClass),n.addClass(t.selectors.units.selectedClass),o.val(s)},linkedChange:function(){var i=e(this).closest(t.selectors.linked.button),n=i.closest(t.selectors.wrapper),a=i.find(t.selectors.linked.value);"yes"===a.val()?(n.removeClass(t.selectors.linked.wrapperActiveClass),a.val("no")):(n.addClass(t.selectors.linked.wrapperActiveClass),a.val("yes"),n.find(t.selectors.dimensions.number).first().trigger("change"))},numberChange:function(i){var n=e(this).closest(t.selectors.dimensions.number),a=n.closest(t.selectors.wrapper);a.hasClass(t.selectors.linked.wrapperActiveClass)&&a.find(t.selectors.dimensions.number).val(n.val())}};t.init();e(document).on("click",".yith-plugin-fw-copy-to-clipboard__copy",function(){var t,i=e(this).closest(".yith-plugin-fw-copy-to-clipboard"),n=i.find(".yith-plugin-fw-copy-to-clipboard__field"),a=i.find(".yith-plugin-fw-copy-to-clipboard__tip"),l=i.data("tip-timeout");l&&clearTimeout(l),n.select(),document.execCommand("copy"),(t="getSelection"in window&&window.getSelection())?"empty"in t?t.empty():"removeAllRanges"in t&&t.removeAllRanges():"selection"in document&&document.selection.empty(),a.fadeIn(400),l=setTimeout(function(){a.fadeOut(400)},1500),i.data("tip-timeout",l)})}(jQuery);
|
plugin-fw/assets/js/yith-gutenberg.js
DELETED
@@ -1,212 +0,0 @@
|
|
1 |
-
(function ($) {
|
2 |
-
// Get registerBlockType() from wp.blocks in the global scope
|
3 |
-
var __ = wp.i18n.__,
|
4 |
-
el = wp.element.createElement,
|
5 |
-
Fragment = wp.element.Fragment,
|
6 |
-
PanelBody = wp.components.PanelBody,
|
7 |
-
registerBlockType = wp.blocks.registerBlockType,
|
8 |
-
RichText = wp.editor.RichText,
|
9 |
-
BlockControls = wp.editor.BlockControls,
|
10 |
-
InspectorControls = wp.editor.InspectorControls,
|
11 |
-
AlignmentToolbar = wp.editor.AlignmentToolbar,
|
12 |
-
Components = wp.components,
|
13 |
-
RawHTML = wp.element.RawHTML,
|
14 |
-
SelectControl = wp.components.SelectControl,
|
15 |
-
ToggleControl = wp.components.ToggleControl,
|
16 |
-
CheckboxControl = wp.components.CheckboxControl,
|
17 |
-
RangeControl = wp.components.RangeControl,
|
18 |
-
ColorPicker = wp.components.ColorPicker,
|
19 |
-
RadioControl = wp.components.RadioControl,
|
20 |
-
TextControl = wp.components.TextControl,
|
21 |
-
TextareaControl = wp.components.TextareaControl;
|
22 |
-
|
23 |
-
const yith_icon = el('svg', {width: 22, height: 22},
|
24 |
-
el('path', {d: "M 18.24 7.628 C 17.291 8.284 16.076 8.971 14.587 9.688 C 15.344 7.186 15.765 4.851 15.849 2.684 C 15.912 0.939 15.133 0.045 13.514 0.003 C 11.558 -0.06 10.275 1.033 9.665 3.284 C 10.007 3.137 10.359 3.063 10.723 3.063 C 11.021 3.063 11.267 3.184 11.459 3.426 C 11.651 3.668 11.736 3.947 11.715 4.262 C 11.695 5.082 11.276 5.961 10.46 6.896 C 9.644 7.833 8.918 8.3 8.282 8.3 C 7.837 8.3 7.625 7.922 7.646 7.165 C 7.667 6.765 7.804 5.955 8.056 4.735 C 8.287 3.579 8.403 2.801 8.403 2.401 C 8.403 1.707 8.224 1.144 7.867 0.713 C 7.509 0.282 6.994 0.098 6.321 0.161 C 5.858 0.203 5.175 0.624 4.27 1.422 C 3.596 2.035 2.923 2.644 2.25 3.254 L 2.976 4.106 C 3.564 3.664 3.922 3.443 4.048 3.443 C 4.448 3.443 4.637 3.717 4.617 4.263 C 4.617 4.306 4.427 4.968 4.049 6.251 C 3.671 7.534 3.471 8.491 3.449 9.122 C 3.407 9.985 3.565 10.647 3.924 11.109 C 4.367 11.677 5.106 11.919 6.142 11.835 C 7.366 11.751 8.591 11.298 9.816 10.479 C 10.323 10.142 10.808 9.753 11.273 9.311 C 11.105 10.153 10.905 10.868 10.673 11.457 C 8.402 12.487 6.762 13.37 5.752 14.107 C 4.321 15.137 3.554 16.241 3.449 17.419 C 3.259 19.459 4.29 20.479 6.541 20.479 C 8.055 20.479 9.517 19.554 10.926 17.703 C 12.125 16.126 13.166 14.022 14.049 11.394 C 15.578 10.635 16.87 9.892 17.928 9.164 C 17.894 9.409 18.319 7.308 18.24 7.628 Z M 7.393 16.095 C 7.056 16.095 6.898 15.947 6.919 15.653 C 6.961 15.106 7.908 14.38 9.759 13.476 C 8.791 15.221 8.002 16.095 7.393 16.095 Z"})
|
25 |
-
);
|
26 |
-
|
27 |
-
function create_shortcode(sc_args, props, callback) {
|
28 |
-
var gt_block = '',
|
29 |
-
gutenberg_preview = '';
|
30 |
-
|
31 |
-
if (typeof props.callback != 'undefined' && typeof $[props.callback] == 'function') {
|
32 |
-
gt_block = $[props.callback](sc_args, props);
|
33 |
-
}
|
34 |
-
|
35 |
-
else {
|
36 |
-
var sc_name = props.shortcode_name,
|
37 |
-
sc = '[' + sc_name,
|
38 |
-
do_shortcode = null;
|
39 |
-
|
40 |
-
|
41 |
-
$.each(sc_args.attributes, function ($v, $k) {
|
42 |
-
if ( typeof props.attributes != 'undefined' && typeof props.attributes[$v] != 'undefined' ) {
|
43 |
-
sc += ' ' + $v + '=';
|
44 |
-
var arg = props.attributes[$v],
|
45 |
-
remove_quotes = arg.remove_quotes;
|
46 |
-
|
47 |
-
if( remove_quotes == true ){
|
48 |
-
sc += $k;
|
49 |
-
}
|
50 |
-
|
51 |
-
else {
|
52 |
-
sc += '"' + $k + '"';
|
53 |
-
}
|
54 |
-
}
|
55 |
-
});
|
56 |
-
|
57 |
-
sc += ']';
|
58 |
-
|
59 |
-
var block_id = md5(sc);
|
60 |
-
|
61 |
-
gutenberg_preview = '<span class="yith_block_' + block_id + '">' + sc + '</span>';
|
62 |
-
|
63 |
-
if (callback == 'edit' && props.do_shortcode != false) {
|
64 |
-
do_shortcode = (function (block_id) {
|
65 |
-
var ajax_call_date = null;
|
66 |
-
$(document).trigger( 'yith_plugin_fw_gutenberg_before_do_shortcode', [sc, block_id] );
|
67 |
-
$.ajax({
|
68 |
-
async: true,
|
69 |
-
url: yith_gutenberg_ajax.ajaxurl,
|
70 |
-
method: 'post',
|
71 |
-
data: {action: 'yith_plugin_fw_gutenberg_do_shortcode', shortcode: sc},
|
72 |
-
success: function (data) {
|
73 |
-
ajax_call_date = data;
|
74 |
-
if (ajax_call_date != '') {
|
75 |
-
$('.yith_block_' + block_id).html(ajax_call_date);
|
76 |
-
$(document).trigger( 'yith_plugin_fw_gutenberg_success_do_shortcode', [sc, block_id, ajax_call_date] );
|
77 |
-
}
|
78 |
-
}
|
79 |
-
});
|
80 |
-
$(document).trigger( 'yith_plugin_fw_gutenberg_after_do_shortcode', [sc, block_id, ajax_call_date] );
|
81 |
-
return ajax_call_date;
|
82 |
-
})(block_id);
|
83 |
-
}
|
84 |
-
|
85 |
-
gt_block = el(RawHTML, null, gutenberg_preview);
|
86 |
-
}
|
87 |
-
|
88 |
-
return gt_block;
|
89 |
-
}
|
90 |
-
|
91 |
-
function onChangeEvent(new_value, attribute_name, args, block_type) {
|
92 |
-
var attributes = {};
|
93 |
-
|
94 |
-
if (block_type == 'colorpicker' || block_type == 'color') {
|
95 |
-
new_value = new_value.hex;
|
96 |
-
}
|
97 |
-
|
98 |
-
attributes[attribute_name] = new_value;
|
99 |
-
args.setAttributes(attributes);
|
100 |
-
return args;
|
101 |
-
}
|
102 |
-
|
103 |
-
$.each(yith_gutenberg, function ($block, $props) {
|
104 |
-
registerBlockType("yith/" + $block, {
|
105 |
-
title: $props.title,
|
106 |
-
description: $props.description,
|
107 |
-
category: $props.category,
|
108 |
-
attributes: $props.attributes,
|
109 |
-
icon: typeof $props.icon != 'undefined' ? $props.icon : yith_icon,
|
110 |
-
keywords: $props.keywords,
|
111 |
-
edit: function edit(args) {
|
112 |
-
var elements = new Array();
|
113 |
-
|
114 |
-
$.each($props.attributes, function ($attribute_name, $attribute_args) {
|
115 |
-
var ComponentControl = null,
|
116 |
-
block_type = $attribute_args.blocktype,
|
117 |
-
name = $attribute_name;
|
118 |
-
if (typeof block_type != 'undefined') {
|
119 |
-
switch (block_type) {
|
120 |
-
case 'select':
|
121 |
-
ComponentControl = SelectControl;
|
122 |
-
break;
|
123 |
-
|
124 |
-
case 'text':
|
125 |
-
ComponentControl = TextControl;
|
126 |
-
break;
|
127 |
-
|
128 |
-
case 'textarea':
|
129 |
-
ComponentControl = TextareaControl;
|
130 |
-
break;
|
131 |
-
|
132 |
-
case 'toggle':
|
133 |
-
ComponentControl = ToggleControl;
|
134 |
-
break;
|
135 |
-
|
136 |
-
case 'checkbox':
|
137 |
-
ComponentControl = CheckboxControl;
|
138 |
-
break;
|
139 |
-
|
140 |
-
case 'number':
|
141 |
-
case 'range':
|
142 |
-
ComponentControl = RangeControl;
|
143 |
-
break;
|
144 |
-
|
145 |
-
case 'color':
|
146 |
-
case 'colorpicker':
|
147 |
-
ComponentControl = ColorPicker;
|
148 |
-
break;
|
149 |
-
|
150 |
-
case 'radio':
|
151 |
-
ComponentControl = RadioControl;
|
152 |
-
break;
|
153 |
-
}
|
154 |
-
|
155 |
-
if (ComponentControl != null) {
|
156 |
-
var helpMessageChecked = helpMessageUncheked = '';
|
157 |
-
if (typeof $attribute_args.helps != 'undefined' && typeof $attribute_args.helps.checked != 'undefined' && typeof $attribute_args.helps.unchecked != 'undefined') {
|
158 |
-
helpMessageChecked = $attribute_args.helps.checked;
|
159 |
-
helpMessageUncheked = $attribute_args.helps.unchecked;
|
160 |
-
}
|
161 |
-
|
162 |
-
else if (typeof $attribute_args.help != 'undefined') {
|
163 |
-
helpMessageChecked = helpMessageUncheked = $attribute_args.help;
|
164 |
-
}
|
165 |
-
|
166 |
-
elements.push(
|
167 |
-
el(
|
168 |
-
ComponentControl,
|
169 |
-
{
|
170 |
-
value: args.attributes[$attribute_name],
|
171 |
-
options: $attribute_args.options,
|
172 |
-
label: $attribute_args.label,
|
173 |
-
checked: args.attributes[$attribute_name],
|
174 |
-
selected: args.attributes[$attribute_name],
|
175 |
-
help: args.attributes[$attribute_name] ? helpMessageChecked : helpMessageUncheked,
|
176 |
-
disableAlpha: $attribute_args.disableAlpha,
|
177 |
-
min: $attribute_args.min,
|
178 |
-
max: $attribute_args.max,
|
179 |
-
multiple: $attribute_args.multiple,
|
180 |
-
onChange: function (new_value) {
|
181 |
-
args = onChangeEvent(new_value, name, args, block_type);
|
182 |
-
},
|
183 |
-
onChangeComplete: function (new_value) {
|
184 |
-
args = onChangeEvent(new_value, name, args, block_type);
|
185 |
-
},
|
186 |
-
},
|
187 |
-
)
|
188 |
-
);
|
189 |
-
}
|
190 |
-
}
|
191 |
-
});
|
192 |
-
|
193 |
-
sc = create_shortcode(args, $props, 'edit');
|
194 |
-
|
195 |
-
return [
|
196 |
-
el(
|
197 |
-
Fragment,
|
198 |
-
null,
|
199 |
-
el(
|
200 |
-
InspectorControls,
|
201 |
-
null,
|
202 |
-
elements,
|
203 |
-
),
|
204 |
-
sc,
|
205 |
-
)];
|
206 |
-
},
|
207 |
-
save: function save(args) {
|
208 |
-
return create_shortcode(args, $props, 'save');
|
209 |
-
}
|
210 |
-
});
|
211 |
-
});
|
212 |
-
})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/assets/js/yith-gutenberg.min.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
!function(e){wp.i18n.__;var t=wp.element.createElement,o=wp.element.Fragment,n=(wp.components.PanelBody,wp.blocks.registerBlockType),c=(wp.editor.RichText,wp.editor.BlockControls,wp.editor.InspectorControls),r=(wp.editor.AlignmentToolbar,wp.components,wp.element.RawHTML),a=wp.components.SelectControl,i=wp.components.ToggleControl,s=wp.components.CheckboxControl,l=wp.components.RangeControl,p=wp.components.ColorPicker,u=wp.components.RadioControl,d=wp.components.TextControl,h=wp.components.TextareaControl;const C=t("svg",{width:22,height:22},t("path",{d:"M 18.24 7.628 C 17.291 8.284 16.076 8.971 14.587 9.688 C 15.344 7.186 15.765 4.851 15.849 2.684 C 15.912 0.939 15.133 0.045 13.514 0.003 C 11.558 -0.06 10.275 1.033 9.665 3.284 C 10.007 3.137 10.359 3.063 10.723 3.063 C 11.021 3.063 11.267 3.184 11.459 3.426 C 11.651 3.668 11.736 3.947 11.715 4.262 C 11.695 5.082 11.276 5.961 10.46 6.896 C 9.644 7.833 8.918 8.3 8.282 8.3 C 7.837 8.3 7.625 7.922 7.646 7.165 C 7.667 6.765 7.804 5.955 8.056 4.735 C 8.287 3.579 8.403 2.801 8.403 2.401 C 8.403 1.707 8.224 1.144 7.867 0.713 C 7.509 0.282 6.994 0.098 6.321 0.161 C 5.858 0.203 5.175 0.624 4.27 1.422 C 3.596 2.035 2.923 2.644 2.25 3.254 L 2.976 4.106 C 3.564 3.664 3.922 3.443 4.048 3.443 C 4.448 3.443 4.637 3.717 4.617 4.263 C 4.617 4.306 4.427 4.968 4.049 6.251 C 3.671 7.534 3.471 8.491 3.449 9.122 C 3.407 9.985 3.565 10.647 3.924 11.109 C 4.367 11.677 5.106 11.919 6.142 11.835 C 7.366 11.751 8.591 11.298 9.816 10.479 C 10.323 10.142 10.808 9.753 11.273 9.311 C 11.105 10.153 10.905 10.868 10.673 11.457 C 8.402 12.487 6.762 13.37 5.752 14.107 C 4.321 15.137 3.554 16.241 3.449 17.419 C 3.259 19.459 4.29 20.479 6.541 20.479 C 8.055 20.479 9.517 19.554 10.926 17.703 C 12.125 16.126 13.166 14.022 14.049 11.394 C 15.578 10.635 16.87 9.892 17.928 9.164 C 17.894 9.409 18.319 7.308 18.24 7.628 Z M 7.393 16.095 C 7.056 16.095 6.898 15.947 6.919 15.653 C 6.961 15.106 7.908 14.38 9.759 13.476 C 8.791 15.221 8.002 16.095 7.393 16.095 Z"}));function b(o,n,c){var a="",i="";if("undefined"!=typeof n.callback&&"function"==typeof e[n.callback])a=e[n.callback](o,n);else{var s="["+n.shortcode_name;e.each(o.attributes,function(e,t){if("undefined"!=typeof n.attributes&&"undefined"!=typeof n.attributes[e]){s+=" "+e+"=";var o=n.attributes[e].remove_quotes;s+=1==o?t:'"'+t+'"'}}),s+="]";var l=md5(s);i='<span class="yith_block_'+l+'">'+s+"</span>","edit"==c&&0!=n.do_shortcode&&function(t){var o=null;return e(document).trigger("yith_plugin_fw_gutenberg_before_do_shortcode",[s,t]),e.ajax({async:!0,url:yith_gutenberg_ajax.ajaxurl,method:"post",data:{action:"yith_plugin_fw_gutenberg_do_shortcode",shortcode:s},success:function(n){""!=(o=n)&&(e(".yith_block_"+t).html(o),e(document).trigger("yith_plugin_fw_gutenberg_success_do_shortcode",[s,t,o]))}}),e(document).trigger("yith_plugin_fw_gutenberg_after_do_shortcode",[s,t,o]),o}(l),a=t(r,null,i)}return a}function g(e,t,o,n){var c={};return"colorpicker"!=n&&"color"!=n||(e=e.hex),c[t]=e,o.setAttributes(c),o}e.each(yith_gutenberg,function(r,f){n("yith/"+r,{title:f.title,description:f.description,category:f.category,attributes:f.attributes,icon:"undefined"!=typeof f.icon?f.icon:C,keywords:f.keywords,edit:function(n){var r=new Array;return e.each(f.attributes,function(e,o){var c=null,C=o.blocktype,b=e;if(void 0!==C){switch(C){case"select":c=a;break;case"text":c=d;break;case"textarea":c=h;break;case"toggle":c=i;break;case"checkbox":c=s;break;case"number":case"range":c=l;break;case"color":case"colorpicker":c=p;break;case"radio":c=u}if(null!=c){var f=helpMessageUncheked="";"undefined"!=typeof o.helps&&"undefined"!=typeof o.helps.checked&&"undefined"!=typeof o.helps.unchecked?(f=o.helps.checked,helpMessageUncheked=o.helps.unchecked):"undefined"!=typeof o.help&&(f=helpMessageUncheked=o.help),r.push(t(c,{value:n.attributes[e],options:o.options,label:o.label,checked:n.attributes[e],selected:n.attributes[e],help:n.attributes[e]?f:helpMessageUncheked,disableAlpha:o.disableAlpha,min:o.min,max:o.max,multiple:o.multiple,onChange:function(e){n=g(e,b,n,C)},onChangeComplete:function(e){n=g(e,b,n,C)}}))}}}),sc=b(n,f,"edit"),[t(o,null,t(c,null,r),sc)]},save:function(e){return b(e,f,"save")}})})}(jQuery);
|
|
plugin-fw/bin/clean-language-files.js
DELETED
@@ -1,36 +0,0 @@
|
|
1 |
-
/* jshint ignore: start */
|
2 |
-
|
3 |
-
/**
|
4 |
-
*
|
5 |
-
*
|
6 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
7 |
-
*/
|
8 |
-
|
9 |
-
const fs = require( 'fs' );
|
10 |
-
const glob = require( 'glob' );
|
11 |
-
const chalk = require( 'chalk' );
|
12 |
-
|
13 |
-
const DELETED = chalk.reset.inverse.bold.green( ' DELETED ' );
|
14 |
-
const ERROR = chalk.reset.inverse.bold.red( ' ERROR ' );
|
15 |
-
|
16 |
-
console.log( chalk.green( '\nCleaning language files...' ) );
|
17 |
-
glob( "languages/*.po~", function ( er, files ) {
|
18 |
-
|
19 |
-
if ( files.length ) {
|
20 |
-
console.log( `Processing ${files.length} files:` );
|
21 |
-
|
22 |
-
files.forEach( ( file ) => {
|
23 |
-
fs.unlink( file, ( err ) => {
|
24 |
-
if ( err ) {
|
25 |
-
console.log( chalk.bold( ` - ${file} ` ) + ERROR );
|
26 |
-
console.error( err );
|
27 |
-
return;
|
28 |
-
}
|
29 |
-
console.log( chalk.bold( ` - ${file} ` ) + DELETED );
|
30 |
-
} );
|
31 |
-
} );
|
32 |
-
} else {
|
33 |
-
console.log( `No file to clean.\n` );
|
34 |
-
}
|
35 |
-
|
36 |
-
} );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/bin/download-translations-config.json
DELETED
@@ -1,27 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"projectPath": "https://translate.yithemes.com/gp/projects/yith-framework/",
|
3 |
-
"textDomain": "yith-plugin-fw",
|
4 |
-
"destFolder": "languages/",
|
5 |
-
"languages": [
|
6 |
-
{
|
7 |
-
"id": "es",
|
8 |
-
"name": "Spanish",
|
9 |
-
"slug": "es_ES"
|
10 |
-
},
|
11 |
-
{
|
12 |
-
"id": "it",
|
13 |
-
"name": "Italian",
|
14 |
-
"slug": "it_IT"
|
15 |
-
},
|
16 |
-
{
|
17 |
-
"id": "nl",
|
18 |
-
"name": "Dutch",
|
19 |
-
"slug": "nl_NL"
|
20 |
-
},
|
21 |
-
{
|
22 |
-
"id": "el",
|
23 |
-
"name": "Greek",
|
24 |
-
"slug": "el"
|
25 |
-
}
|
26 |
-
]
|
27 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/bin/download-translations.js
DELETED
@@ -1,57 +0,0 @@
|
|
1 |
-
/* jshint ignore: start */
|
2 |
-
|
3 |
-
/**
|
4 |
-
* This script download translations from https://translate.yithemes.com/
|
5 |
-
*
|
6 |
-
* @version 1.1.0
|
7 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
8 |
-
*/
|
9 |
-
|
10 |
-
const fs = require( 'fs' );
|
11 |
-
const path = require( 'path' );
|
12 |
-
const axios = require( 'axios' );
|
13 |
-
const chalk = require( 'chalk' );
|
14 |
-
const options = require( './download-translations-config' );
|
15 |
-
|
16 |
-
const SPACE = '\t';
|
17 |
-
const DONE = chalk.reset.inverse.bold.green( ' DONE ' );
|
18 |
-
const ERROR = chalk.reset.inverse.bold.red( ' ERROR ' );
|
19 |
-
|
20 |
-
async function download( url, dest ) {
|
21 |
-
const destPath = path.resolve( dest );
|
22 |
-
const writer = fs.createWriteStream( destPath );
|
23 |
-
|
24 |
-
const response = await axios( {
|
25 |
-
url,
|
26 |
-
method : 'GET',
|
27 |
-
responseType: 'stream'
|
28 |
-
} );
|
29 |
-
|
30 |
-
response.data.pipe( writer );
|
31 |
-
|
32 |
-
return new Promise( ( resolve, reject ) => {
|
33 |
-
writer.on( 'finish', resolve );
|
34 |
-
writer.on( 'error', reject );
|
35 |
-
} )
|
36 |
-
}
|
37 |
-
|
38 |
-
const downloadLanguage = function ( language ) {
|
39 |
-
const languageName = language.name || language.id;
|
40 |
-
const source = options.projectPath + language.id + "/default/export-translations/";
|
41 |
-
const fileName = options.textDomain + '-' + language.slug + '.po';
|
42 |
-
const dest = options.destFolder + fileName;
|
43 |
-
const message = ' - ' + chalk.bold( languageName ) + SPACE;
|
44 |
-
|
45 |
-
download( source, dest ).then( () => {
|
46 |
-
console.log( message + DONE );
|
47 |
-
} ).catch( ( err ) => {
|
48 |
-
console.log( message + ERROR );
|
49 |
-
throw err;
|
50 |
-
} );
|
51 |
-
};
|
52 |
-
|
53 |
-
console.log( chalk.green( '\nDownloading Transations from translate.yithemes.com...' ) );
|
54 |
-
|
55 |
-
options.languages.forEach( ( language ) => {
|
56 |
-
downloadLanguage( language );
|
57 |
-
} );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/composer.json
DELETED
@@ -1,24 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"name": "yith/plugin-fw",
|
3 |
-
"description": "YITH Plugin Framework",
|
4 |
-
"type": "wordpress-plugin",
|
5 |
-
"license": "GPL-3.0-or-later",
|
6 |
-
"prefer-stable": true,
|
7 |
-
"minimum-stability": "dev",
|
8 |
-
"require-dev": {
|
9 |
-
"wp-coding-standards/wpcs": "^2.2",
|
10 |
-
"squizlabs/php_codesniffer": "^3.5",
|
11 |
-
"dealerdirect/phpcodesniffer-composer-installer": "^0.6.2"
|
12 |
-
},
|
13 |
-
"scripts": {
|
14 |
-
"phpcs": [
|
15 |
-
"phpcs -s -p"
|
16 |
-
],
|
17 |
-
"phpcs-pre-commit": [
|
18 |
-
"phpcs -s -p -n"
|
19 |
-
],
|
20 |
-
"phpcbf": [
|
21 |
-
"phpcbf -p --standard=WordPress"
|
22 |
-
]
|
23 |
-
}
|
24 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/dist/gutenberg/index.asset.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php return array('dependencies' => array('lodash', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-url'), 'version' => 'c56d63ac6af03c66ca94fd8585344781');
|
plugin-fw/dist/gutenberg/index.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
(window.webpackJsonp_yith_plugin_framewowrk=window.webpackJsonp_yith_plugin_framewowrk||[]).push([[1],{27:function(e,t,n){},28:function(e,t,n){}}]),function(e){function t(t){for(var r,a,l=t[0],i=t[1],u=t[2],f=0,p=[];f<l.length;f++)a=l[f],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);for(s&&s(t);p.length;)p.shift()();return c.push.apply(c,u||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],r=!0,l=1;l<n.length;l++){var i=n[l];0!==o[i]&&(r=!1)}r&&(c.splice(t--,1),e=a(a.s=n[0]))}return e}var r={},o={0:0},c=[];function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var l=window.webpackJsonp_yith_plugin_framewowrk=window.webpackJsonp_yith_plugin_framewowrk||[],i=l.push.bind(l);l.push=t,l=l.slice();for(var u=0;u<l.length;u++)t(l[u]);var s=i;c.push([29,1]),n()}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=window.React},function(e,t,n){var r=n(17),o=n(18),c=n(19),a=n(21);e.exports=function(e,t){return r(e)||o(e,t)||c(e,t)||a()}},function(e,t){e.exports=window.wp.hooks},function(e,t,n){var r,o,c,a,l;r=n(22),o=n(9).utf8,c=n(23),a=n(9).bin,(l=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?a.stringToBytes(e):o.stringToBytes(e):c(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),i=8*e.length,u=1732584193,s=-271733879,f=-1732584194,p=271733878,h=0;h<n.length;h++)n[h]=16711935&(n[h]<<8|n[h]>>>24)|4278255360&(n[h]<<24|n[h]>>>8);n[i>>>5]|=128<<i%32,n[14+(i+64>>>9<<4)]=i;var b=l._ff,d=l._gg,y=l._hh,g=l._ii;for(h=0;h<n.length;h+=16){var m=u,v=s,_=f,j=p;u=b(u,s,f,p,n[h+0],7,-680876936),p=b(p,u,s,f,n[h+1],12,-389564586),f=b(f,p,u,s,n[h+2],17,606105819),s=b(s,f,p,u,n[h+3],22,-1044525330),u=b(u,s,f,p,n[h+4],7,-176418897),p=b(p,u,s,f,n[h+5],12,1200080426),f=b(f,p,u,s,n[h+6],17,-1473231341),s=b(s,f,p,u,n[h+7],22,-45705983),u=b(u,s,f,p,n[h+8],7,1770035416),p=b(p,u,s,f,n[h+9],12,-1958414417),f=b(f,p,u,s,n[h+10],17,-42063),s=b(s,f,p,u,n[h+11],22,-1990404162),u=b(u,s,f,p,n[h+12],7,1804603682),p=b(p,u,s,f,n[h+13],12,-40341101),f=b(f,p,u,s,n[h+14],17,-1502002290),u=d(u,s=b(s,f,p,u,n[h+15],22,1236535329),f,p,n[h+1],5,-165796510),p=d(p,u,s,f,n[h+6],9,-1069501632),f=d(f,p,u,s,n[h+11],14,643717713),s=d(s,f,p,u,n[h+0],20,-373897302),u=d(u,s,f,p,n[h+5],5,-701558691),p=d(p,u,s,f,n[h+10],9,38016083),f=d(f,p,u,s,n[h+15],14,-660478335),s=d(s,f,p,u,n[h+4],20,-405537848),u=d(u,s,f,p,n[h+9],5,568446438),p=d(p,u,s,f,n[h+14],9,-1019803690),f=d(f,p,u,s,n[h+3],14,-187363961),s=d(s,f,p,u,n[h+8],20,1163531501),u=d(u,s,f,p,n[h+13],5,-1444681467),p=d(p,u,s,f,n[h+2],9,-51403784),f=d(f,p,u,s,n[h+7],14,1735328473),u=y(u,s=d(s,f,p,u,n[h+12],20,-1926607734),f,p,n[h+5],4,-378558),p=y(p,u,s,f,n[h+8],11,-2022574463),f=y(f,p,u,s,n[h+11],16,1839030562),s=y(s,f,p,u,n[h+14],23,-35309556),u=y(u,s,f,p,n[h+1],4,-1530992060),p=y(p,u,s,f,n[h+4],11,1272893353),f=y(f,p,u,s,n[h+7],16,-155497632),s=y(s,f,p,u,n[h+10],23,-1094730640),u=y(u,s,f,p,n[h+13],4,681279174),p=y(p,u,s,f,n[h+0],11,-358537222),f=y(f,p,u,s,n[h+3],16,-722521979),s=y(s,f,p,u,n[h+6],23,76029189),u=y(u,s,f,p,n[h+9],4,-640364487),p=y(p,u,s,f,n[h+12],11,-421815835),f=y(f,p,u,s,n[h+15],16,530742520),u=g(u,s=y(s,f,p,u,n[h+2],23,-995338651),f,p,n[h+0],6,-198630844),p=g(p,u,s,f,n[h+7],10,1126891415),f=g(f,p,u,s,n[h+14],15,-1416354905),s=g(s,f,p,u,n[h+5],21,-57434055),u=g(u,s,f,p,n[h+12],6,1700485571),p=g(p,u,s,f,n[h+3],10,-1894986606),f=g(f,p,u,s,n[h+10],15,-1051523),s=g(s,f,p,u,n[h+1],21,-2054922799),u=g(u,s,f,p,n[h+8],6,1873313359),p=g(p,u,s,f,n[h+15],10,-30611744),f=g(f,p,u,s,n[h+6],15,-1560198380),s=g(s,f,p,u,n[h+13],21,1309151649),u=g(u,s,f,p,n[h+4],6,-145523070),p=g(p,u,s,f,n[h+11],10,-1120210379),f=g(f,p,u,s,n[h+2],15,718787259),s=g(s,f,p,u,n[h+9],21,-343485551),u=u+m>>>0,s=s+v>>>0,f=f+_>>>0,p=p+j>>>0}return r.endian([u,s,f,p])})._ff=function(e,t,n,r,o,c,a){var l=e+(t&n|~t&r)+(o>>>0)+a;return(l<<c|l>>>32-c)+t},l._gg=function(e,t,n,r,o,c,a){var l=e+(t&r|n&~r)+(o>>>0)+a;return(l<<c|l>>>32-c)+t},l._hh=function(e,t,n,r,o,c,a){var l=e+(t^n^r)+(o>>>0)+a;return(l<<c|l>>>32-c)+t},l._ii=function(e,t,n,r,o,c,a){var l=e+(n^(t|~r))+(o>>>0)+a;return(l<<c|l>>>32-c)+t},l._blocksize=16,l._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(l(e,t));return t&&t.asBytes?n:t&&t.asString?a.bytesToString(n):r.bytesToHex(n)}},function(e,t){e.exports=window.wp.blockEditor},function(e,t){e.exports=window.wp.compose},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=n},function(e,t){e.exports=window.wp.blocks},function(e,t){e.exports=window.wp.url},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(24);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(25),o=n(26);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t){e.exports=window.lodash},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw c}}return n}}},function(e,t,n){var r=n(20);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){var n,r;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=r.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var t=[],r=0;r<e.length;r+=3)for(var o=e[r]<<16|e[r+1]<<8|e[r+2],c=0;c<4;c++)8*r+6*c<=8*e.length?t.push(n.charAt(o>>>6*(3-c)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],r=0,o=0;r<e.length;o=++r%4)0!=o&&t.push((n.indexOf(e.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|n.indexOf(e.charAt(r))>>>6-2*o);return t}},e.exports=r},function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},,,function(e,t,n){"use strict";n.r(t);var r=n(3),o=n.n(r),c=n(0),a=n(2),l=n(5),i=n.n(l),u=n(10),s=n(11);function f(e){if(e.status>=200&&e.status<300)return e;throw e}function p(e){return e.json?e.json():e.text()}var h=Object(c.createElement)("svg",{viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",role:"img","aria-hidden":"true",focusable:"false"},Object(c.createElement)("path",{width:"22",height:"22",d:"M 18.24 7.628 C 17.291 8.284 16.076 8.971 14.587 9.688 C 15.344 7.186 15.765 4.851 15.849 2.684 C 15.912 0.939 15.133 0.045 13.514 0.003 C 11.558 -0.06 10.275 1.033 9.665 3.284 C 10.007 3.137 10.359 3.063 10.723 3.063 C 11.021 3.063 11.267 3.184 11.459 3.426 C 11.651 3.668 11.736 3.947 11.715 4.262 C 11.695 5.082 11.276 5.961 10.46 6.896 C 9.644 7.833 8.918 8.3 8.282 8.3 C 7.837 8.3 7.625 7.922 7.646 7.165 C 7.667 6.765 7.804 5.955 8.056 4.735 C 8.287 3.579 8.403 2.801 8.403 2.401 C 8.403 1.707 8.224 1.144 7.867 0.713 C 7.509 0.282 6.994 0.098 6.321 0.161 C 5.858 0.203 5.175 0.624 4.27 1.422 C 3.596 2.035 2.923 2.644 2.25 3.254 L 2.976 4.106 C 3.564 3.664 3.922 3.443 4.048 3.443 C 4.448 3.443 4.637 3.717 4.617 4.263 C 4.617 4.306 4.427 4.968 4.049 6.251 C 3.671 7.534 3.471 8.491 3.449 9.122 C 3.407 9.985 3.565 10.647 3.924 11.109 C 4.367 11.677 5.106 11.919 6.142 11.835 C 7.366 11.751 8.591 11.298 9.816 10.479 C 10.323 10.142 10.808 9.753 11.273 9.311 C 11.105 10.153 10.905 10.868 10.673 11.457 C 8.402 12.487 6.762 13.37 5.752 14.107 C 4.321 15.137 3.554 16.241 3.449 17.419 C 3.259 19.459 4.29 20.479 6.541 20.479 C 8.055 20.479 9.517 19.554 10.926 17.703 C 12.125 16.126 13.166 14.022 14.049 11.394 C 15.578 10.635 16.87 9.892 17.928 9.164 C 17.894 9.409 18.319 7.308 18.24 7.628 Z M 7.393 16.095 C 7.056 16.095 6.898 15.947 6.919 15.653 C 6.961 15.106 7.908 14.38 9.759 13.476 C 8.791 15.221 8.002 16.095 7.393 16.095 Z"})),b=function(e,t){var n=e.controlType,r=!0;if(e.deps&&e.deps.id&&"value"in e.deps){var o=e.deps.value;"toggle"!==n&&"checkbox"!==n||(o=!0===o||"yes"===o||1===o),r=void 0!==t[e.deps.id]&&o===t[e.deps.id]}return r},d=function(e,t){var n="",r=!1;if(void 0!==e.callback&&(jQuery&&e.callback in jQuery.fn?r=jQuery.fn[e.callback]:e.callback in window&&(r=window[e.callback])),"function"==typeof r)n=r(t,e);else{var c=e.attributes?Object.entries(e.attributes).map((function(e){var n=o()(e,2),r=n[0],c=n[1],a=b(c,t),l=t[r];if(a&&void 0!==l)return r+"="+(c.remove_quotes?l:'"'.concat(l,'"'))})):[],a=c.length?" "+c.join(" "):"";n="[".concat(e.shortcode_name).concat(a,"]")}return n},y=n(1),g=n(6),m=n(12),v=n.n(m),_=n(13),j=n.n(_),w=n(14),k=n.n(w),x=n(15),O=n.n(x),C=n(8),E=n.n(C),S=n(16),T=n(4);n(27);var A=function(e){k()(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=E()(t);if(n){var o=E()(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return O()(this,e)});function o(){var e;return v()(this,o),(e=r.apply(this,arguments)).state={html:"",shortcode:"",shortcodeHash:"",ajaxUpdated:!1,ajaxSuccess:!1,ajaxResponse:!1,loading:!1},e.ajaxTimeout=!1,e}return j()(o,[{key:"componentDidMount",value:function(){this.updateShortcode()}},{key:"componentDidUpdate",value:function(e,t,n){var r=this.state,o=r.shortcode,c=r.shortcodeHash,a=r.ajaxSuccess,l=r.ajaxResponse,i=r.ajaxUpdated;Object(S.isEqual)(e,this.props)||this.updateShortcode(),this.props.blockArgs.do_shortcode&&i&&(a&&Object(T.doAction)("yith_plugin_fw_gutenberg_success_do_shortcode",o,c,l),Object(T.doAction)("yith_plugin_fw_gutenberg_after_do_shortcode",o,c,l),this.setState({ajaxUpdated:!1}))}},{key:"updateShortcode",value:function(){var e=this,t=this.props,n=t.attributes,r=t.blockArgs;this.setState({loading:!0,ajaxSuccess:!1,ajaxResponse:!1});var o=d(r,n),c=i()(o);r.do_shortcode?(this.ajaxTimeout&&clearTimeout(this.ajaxTimeout),Object(T.doAction)("yith_plugin_fw_gutenberg_before_do_shortcode",o,c),this.ajaxTimeout=setTimeout((function(){(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yithGutenberg.ajaxurl;return t=Object(s.addQueryArgs)(t,e),fetch(t).then(f).then(p)})({action:"yith_plugin_fw_gutenberg_do_shortcode",shortcode:o}).then((function(t){e.setState({loading:!1,html:t.html,shortcode:o,shortcodeHash:c,ajaxSuccess:!0,ajaxUpdated:!0,ajaxResponse:t})})).catch((function(e){console.log({error:e})}))}),300)):this.setState({loading:!1,html:o,shortcode:o,shortcodeHash:c})}},{key:"render",value:function(){var e=this.state,t=e.html,n=e.loading,r=e.shortcode,o=e.shortcodeHash,a=this.props.blockArgs,l=a.do_shortcode,i=a.title,u=a.empty_message,s="block-editor-yith-plugin-fw-shortcode-block",f=[s],p=l?"html":"shortcode",b=t,d="";l&&!t&&(p="empty-html",b=r,u&&(d=u));var g=["shortcode","empty-html"].includes(p),m="empty-html"!==p,v=!!d;return f.push("".concat(s,"--").concat(p)),f.push("".concat(s,v?"--has-message":"--no-message")),f.push("yith_block_".concat(o)),Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:f.join(" ")},n?Object(c.createElement)("div",{className:"".concat(s,"__spinner-wrap")},Object(c.createElement)(y.Spinner,null)):"",g&&Object(c.createElement)("div",{className:"".concat(s,"__title components-placeholder__label")},h,i),v&&Object(c.createElement)(c.RawHTML,{className:"".concat(s,"__message")},d),m&&Object(c.createElement)(c.RawHTML,{className:"".concat(s,"__content")},b)))}}]),o}(a.Component),B=n(7);function N(e){var t=e.className,n=e.label,r=e.onChange,o=e.value,a=e.help,l=e.disableAlpha,i=Object(B.useInstanceId)(N),u="inspector-yith-color-picker-control-".concat(i);return Object(c.createElement)(y.BaseControl,{id:u,label:n,className:"block-editor-yith-color-control ".concat(t),help:a},Object(c.createElement)(y.ColorPicker,{color:o,disableAlpha:l,onChangeComplete:r}))}function R(e){var t=e.label,n=e.colorValue;return Object(c.createElement)(c.Fragment,null,t,!!n&&Object(c.createElement)(y.ColorIndicator,{colorValue:n}))}function P(e){var t=e.className,n=e.label,r=e.onChange,o=e.value,a=e.help,l=e.palette,i=e.clearable;l=l||Object(g.__experimentalUseEditorFeature)("color.palette");var u=Object(B.useInstanceId)(P),s="inspector-yith-color-palette-control-".concat(u);return Object(c.createElement)(y.BaseControl,{id:s,className:"block-editor-yith-color-palette-control ".concat(t),help:a},Object(c.createElement)("fieldset",null,Object(c.createElement)("legend",null,Object(c.createElement)("div",{className:"block-editor-yith-color-palette-control__color-indicator"},Object(c.createElement)(y.BaseControl.VisualLabel,null,Object(c.createElement)(R,{colorValue:o,label:n})))),Object(c.createElement)(y.ColorPalette,{value:o,onChange:r,colors:l,clearable:i})))}n(28);for(var M=function(e,t){return function(n){var r=n.attributes,a=(n.className,n.setAttributes),l=function(e,t,n){["colorpicker","color"].includes(n)&&(e=e.color.getAlpha()<1?e.color.toRgbString():e.color.toHexString());var r={};r[t]=e,a(r)};return Object(c.createElement)(c.Fragment,null,!!t.attributes&&Object(c.createElement)(g.InspectorControls,null,Object(c.createElement)(y.PanelBody,null,Object.entries(t.attributes).map((function(t){var n=o()(t,2),a=function(t,n){var o=n.controlType,a=r[t],i=function(e,t){var n="";return e.helps&&e.helps.checked&&e.helps.unchecked?n=t?e.helps.checked:e.helps.unchecked:e.help&&(n=e.help),n}(n,a),u="".concat(e,"__").concat(t,"-field-wrapper"),s=b(n,r);n.wrapper_class&&(u+=" "+n.wrapper_class);var f=!1;if(s)switch(o){case"select":f=Object(c.createElement)(y.SelectControl,{className:u,key:t,value:a,label:n.label,options:n.options,selected:a,help:i,multiple:!!n.multiple,onChange:function(e){l(e,t,o)}});break;case"text":f=Object(c.createElement)(y.TextControl,{className:u,key:t,value:a,label:n.label,help:i,onChange:function(e){l(e,t,o)}});break;case"textarea":f=Object(c.createElement)(y.TextareaControl,{className:u,key:t,value:a,label:n.label,help:i,onChange:function(e){l(e,t,o)}});break;case"toggle":f=Object(c.createElement)(y.ToggleControl,{className:u,key:t,value:a,label:n.label,help:i,checked:a,onChange:function(e){l(e,t,o)}});break;case"checkbox":f=Object(c.createElement)(y.CheckboxControl,{className:u,key:t,value:a,label:n.label,help:i,checked:a,onChange:function(e){l(e,t,o)}});break;case"number":case"range":f=Object(c.createElement)(y.RangeControl,{className:u,key:t,value:a,label:n.label,help:i,min:n.min,max:n.max,onChange:function(e){l(e,t,o)}});break;case"color":case"colorpicker":f=Object(c.createElement)(N,{className:u,key:t,label:n.label,help:i,value:a,disableAlpha:n.disableAlpha,onChange:function(e){l(e,t,o)}});break;case"color-palette":f=Object(c.createElement)(P,{className:u,key:t,label:n.label,help:i,value:a,clearable:n.clearable||!1,onChange:function(e){l(e,t,o)}});break;case"radio":f=Object(c.createElement)(y.RadioControl,{key:t,value:a,label:n.label,options:n.options,selected:a,checked:a,help:i,onChange:function(e){l(e,t,o)}});break;default:f=!1}return f}(n[0],n[1]);if(a)return a})))),Object(c.createElement)(A,{attributes:r,blockArgs:t}))}},I=function(){var e=U[H];Object(T.addAction)(e.key,"yith-plugin-fw/jquery-events",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"jQuery"in window&&(e.delay?setTimeout((function(){jQuery(document).trigger(e.key,Object.values(n))}),e.delay):jQuery(document).trigger(e.key,Object.values(n)))}))},H=0,U=[{key:"yith_plugin_fw_gutenberg_before_do_shortcode",delay:0},{key:"yith_plugin_fw_gutenberg_success_do_shortcode",delay:200},{key:"yith_plugin_fw_gutenberg_after_do_shortcode",delay:200}];H<U.length;H++)I();for(var Q=function(){var e=o()(F[L],2),t=e[0],n=e[1];Object(u.registerBlockType)("yith/"+t,{title:n.title,description:n.description,category:n.category,attributes:n.attributes,icon:void 0!==n.icon?n.icon:h,keywords:n.keywords,edit:M(t,n),save:function(e){var t=e.attributes;return d(n,t)},deprecated:[{attributes:n.attributes,save:function(e){var t=e.attributes,r=d(n,t),o='<span class="yith_block_'+i()(r)+'">'+r+"</span>";return Object(c.createElement)(c.RawHTML,null,o)}}]})},L=0,F=Object.entries(yithGutenbergBlocks);L<F.length;L++)Q()}]);
|
plugin-fw/dist/gutenberg/style-index.css
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--empty-html,.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--shortcode{padding:1em 1em 1.2em;border:1px solid #1e1e1e;border-radius:4px}.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--shortcode .block-editor-yith-plugin-fw-shortcode-block__content{font-family:Menlo,Consolas,monaco,monospace;color:#1e1e1e;font-size:13px;padding:.8em 1em;border:1px solid #ddd;border-radius:4px}.block-editor-yith-plugin-fw-shortcode-block{position:relative;min-height:30px}.block-editor-yith-plugin-fw-shortcode-block .block-editor-yith-plugin-fw-shortcode-block__spinner-wrap{position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%)}.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--empty-html.block-editor-yith-plugin-fw-shortcode-block--no-message .block-editor-yith-plugin-fw-shortcode-block__title{margin-bottom:0}.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--empty-html .block-editor-yith-plugin-fw-shortcode-block__message{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-style:italic;font-size:13px}.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--empty-html .block-editor-yith-plugin-fw-shortcode-block__content{display:none}
|
2 |
+
.block-editor-yith-color-palette-control .block-editor-yith-color-palette-control__color-indicator{margin-bottom:12px}.block-editor-yith-color-palette-control .component-color-indicator{vertical-align:text-bottom}
|
plugin-fw/docker-compose.yml
DELETED
@@ -1,76 +0,0 @@
|
|
1 |
-
version: '3.7'
|
2 |
-
|
3 |
-
services:
|
4 |
-
|
5 |
-
mysql:
|
6 |
-
image: "mariadb:latest"
|
7 |
-
environment:
|
8 |
-
MYSQL_DATABASE: "yith_plugin_fw_tests"
|
9 |
-
MYSQL_ROOT_PASSWORD: "password"
|
10 |
-
ports:
|
11 |
-
- "3306"
|
12 |
-
networks:
|
13 |
-
- yithdevnet
|
14 |
-
volumes:
|
15 |
-
- ./tools/local-env/mysql-init.sql:/docker-entrypoint-initdb.d/mysql-init.sql
|
16 |
-
- mysql:/var/lib/mysql
|
17 |
-
|
18 |
-
##
|
19 |
-
# The WP CLI container.
|
20 |
-
##
|
21 |
-
cli:
|
22 |
-
image: wordpress:cli-php7.4
|
23 |
-
environment:
|
24 |
-
APACHE_RUN_USER: "www-data"
|
25 |
-
APACHE_RUN_GROUP: "www-data"
|
26 |
-
depends_on:
|
27 |
-
- mysql
|
28 |
-
|
29 |
-
networks:
|
30 |
-
- yithdevnet
|
31 |
-
|
32 |
-
volumes:
|
33 |
-
- html:/var/www/html
|
34 |
-
- ./tools/local-env/install-wp-tests.sh:/var/www/html/install-wp-tests.sh
|
35 |
-
|
36 |
-
# The init directive ensures the command runs with a PID > 1, so Ctrl+C works correctly.
|
37 |
-
init: true
|
38 |
-
|
39 |
-
##
|
40 |
-
# The PHPUnit container.
|
41 |
-
##
|
42 |
-
phpunit:
|
43 |
-
build:
|
44 |
-
context: ./tools/local-env/docker/phpunit
|
45 |
-
|
46 |
-
networks:
|
47 |
-
- yithdevnet
|
48 |
-
|
49 |
-
volumes:
|
50 |
-
- ./tools/local-env/phpunit-config.ini:/usr/local/etc/php/conf.d/phpunit-config.ini
|
51 |
-
- ./tools/local-env/install-wp-tests.sh:/var/www/html/install-wp-tests.sh
|
52 |
-
- ./tools/local-env/yith-plugin-fw-loader.php:/var/www/html/wp-content/plugins/yith-plugin-fw-loader/yith-plugin-fw-loader.php
|
53 |
-
- .:/var/www/html/wp-content/plugins/yith-plugin-fw-loader/plugin-fw
|
54 |
-
- ../../woocommerce:/var/www/html/wp-content/plugins/woocommerce
|
55 |
-
- html:/var/www/html
|
56 |
-
- phpunit-uploads:/var/www/html/wp-content/uploads
|
57 |
-
- testsuite:/tmp
|
58 |
-
|
59 |
-
# The init directive ensures the command runs with a PID > 1, so Ctrl+C works correctly.
|
60 |
-
init: true
|
61 |
-
|
62 |
-
depends_on:
|
63 |
-
- mysql
|
64 |
-
|
65 |
-
volumes:
|
66 |
-
# So that sites aren't wiped every time containers are restarted, MySQL uses a persistent volume.
|
67 |
-
mysql: {}
|
68 |
-
# Using a volume for the uploads directory improves PHPUnit performance.
|
69 |
-
phpunit-uploads: {}
|
70 |
-
html: {}
|
71 |
-
testsuite: {}
|
72 |
-
|
73 |
-
networks:
|
74 |
-
# Creating our own network allows us to connect between containers using their service name.
|
75 |
-
yithdevnet:
|
76 |
-
driver: bridge
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/includes/builders/elementor/class-yith-elementor-widget.php
ADDED
@@ -0,0 +1,464 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Elementor Widget Skeleton Class.
|
4 |
+
*
|
5 |
+
* @class YITH_Elementor_Widget
|
6 |
+
* @package YITH\PluginFramework\Classes
|
7 |
+
* @since 3.6.0
|
8 |
+
*/
|
9 |
+
|
10 |
+
use Elementor\Controls_Manager;
|
11 |
+
use Elementor\Plugin;
|
12 |
+
use Elementor\Widget_Base;
|
13 |
+
|
14 |
+
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
|
15 |
+
|
16 |
+
if ( ! class_exists( 'YITH_Elementor_Widget' ) ) {
|
17 |
+
/**
|
18 |
+
* YITH_Elementor_Widget class.
|
19 |
+
*
|
20 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
21 |
+
*/
|
22 |
+
class YITH_Elementor_Widget extends Widget_Base {
|
23 |
+
|
24 |
+
/**
|
25 |
+
* YITH Data.
|
26 |
+
*
|
27 |
+
* @var array
|
28 |
+
*/
|
29 |
+
protected $yith_data = array();
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Widget constructor.
|
33 |
+
*
|
34 |
+
* @param array $data Widget data. Default is an empty array.
|
35 |
+
* @param array|null $args Optional. Widget default arguments. Default is null.
|
36 |
+
*
|
37 |
+
* @throws Exception If arguments are missing when initializing a full widget instance.
|
38 |
+
*/
|
39 |
+
public function __construct( $data = array(), $args = null ) {
|
40 |
+
$this->yith_data = $args['yith_data'];
|
41 |
+
$this->init_yith_data();
|
42 |
+
|
43 |
+
parent::__construct( $data, $args );
|
44 |
+
}
|
45 |
+
|
46 |
+
/**
|
47 |
+
* Retrieve an YITH prop.
|
48 |
+
*
|
49 |
+
* @param string $prop The prop.
|
50 |
+
* @param bool|string|array $default Default value.
|
51 |
+
*
|
52 |
+
* @return mixed|string
|
53 |
+
*/
|
54 |
+
public function get_yith_prop( $prop, $default = null ) {
|
55 |
+
if ( is_null( $default ) ) {
|
56 |
+
$defaults = $this->get_yith_data_defaults();
|
57 |
+
$default = array_key_exists( $prop, $defaults ) ? $defaults[ $prop ] : false;
|
58 |
+
}
|
59 |
+
|
60 |
+
return array_key_exists( $prop, $this->yith_data ) ? $this->yith_data[ $prop ] : $default;
|
61 |
+
}
|
62 |
+
|
63 |
+
/**
|
64 |
+
* Get element name.
|
65 |
+
*
|
66 |
+
* @return string
|
67 |
+
*/
|
68 |
+
public function get_name() {
|
69 |
+
return $this->get_yith_prop( 'name', '' );
|
70 |
+
}
|
71 |
+
|
72 |
+
/**
|
73 |
+
* Get the element title.
|
74 |
+
*
|
75 |
+
* @return string
|
76 |
+
*/
|
77 |
+
public function get_title() {
|
78 |
+
return $this->get_yith_prop( 'title', '' );
|
79 |
+
}
|
80 |
+
|
81 |
+
/**
|
82 |
+
* Get the element icon.
|
83 |
+
*
|
84 |
+
* @return string
|
85 |
+
*/
|
86 |
+
public function get_icon() {
|
87 |
+
return $this->get_yith_prop( 'icon', 'yith-icon yith-icon-yith' );
|
88 |
+
}
|
89 |
+
|
90 |
+
/**
|
91 |
+
* Get widget categories.
|
92 |
+
*
|
93 |
+
* @return array Widget categories.
|
94 |
+
*/
|
95 |
+
public function get_categories() {
|
96 |
+
return array( 'yith' ) + (array) $this->get_yith_prop( 'categories', array() );
|
97 |
+
}
|
98 |
+
|
99 |
+
/**
|
100 |
+
* Register the widget controls.
|
101 |
+
*/
|
102 |
+
public function _register_controls() { // phpcs:ignore
|
103 |
+
$options = $this->get_yith_prop( 'options' );
|
104 |
+
$description = $this->get_yith_prop( 'description' );
|
105 |
+
|
106 |
+
if ( $options ) {
|
107 |
+
$this->start_controls_section(
|
108 |
+
'options',
|
109 |
+
array(
|
110 |
+
'label' => $this->get_yith_prop( 'section_title' ),
|
111 |
+
'tab' => Controls_Manager::TAB_CONTENT,
|
112 |
+
)
|
113 |
+
);
|
114 |
+
|
115 |
+
if ( $description ) {
|
116 |
+
$this->add_control(
|
117 |
+
'description',
|
118 |
+
array(
|
119 |
+
'type' => Controls_Manager::RAW_HTML,
|
120 |
+
'raw' => $description,
|
121 |
+
'content_classes' => 'yith-plugin-fw-elementor-widget-description',
|
122 |
+
)
|
123 |
+
);
|
124 |
+
}
|
125 |
+
|
126 |
+
foreach ( $options as $option ) {
|
127 |
+
if ( ! isset( $option['type'] ) ) {
|
128 |
+
continue;
|
129 |
+
}
|
130 |
+
|
131 |
+
$this->add_control( $option['yith_key'], $option );
|
132 |
+
}
|
133 |
+
|
134 |
+
$this->end_controls_section();
|
135 |
+
} elseif ( $description ) {
|
136 |
+
$this->start_controls_section(
|
137 |
+
'options',
|
138 |
+
array(
|
139 |
+
'label' => $this->get_title(),
|
140 |
+
'tab' => Controls_Manager::TAB_CONTENT,
|
141 |
+
)
|
142 |
+
);
|
143 |
+
$this->add_control(
|
144 |
+
'description',
|
145 |
+
array(
|
146 |
+
'type' => Controls_Manager::RAW_HTML,
|
147 |
+
'raw' => $description,
|
148 |
+
'content_classes' => 'yith-plugin-fw-elementor-widget-description',
|
149 |
+
)
|
150 |
+
);
|
151 |
+
|
152 |
+
$this->end_controls_section();
|
153 |
+
}
|
154 |
+
}
|
155 |
+
|
156 |
+
/**
|
157 |
+
* Render the content of the widget
|
158 |
+
*/
|
159 |
+
protected function render() {
|
160 |
+
$settings = $this->get_settings_for_display();
|
161 |
+
$option_values = $this->get_yith_option_values();
|
162 |
+
$options = $this->get_yith_prop( 'options' );
|
163 |
+
$shortcode_name = $this->get_yith_prop( 'shortcode_name' );
|
164 |
+
$do_shortcode = ! ! $this->get_yith_prop( 'do_shortcode' );
|
165 |
+
$render_cb = $this->get_yith_prop( 'render_cb' );
|
166 |
+
$editor_render_cb = $this->get_yith_prop( 'editor_render_cb' );
|
167 |
+
$empty_message = $this->get_yith_prop( 'empty_message', '' );
|
168 |
+
|
169 |
+
if ( Plugin::$instance->editor->is_edit_mode() && $editor_render_cb && is_callable( $editor_render_cb ) ) {
|
170 |
+
echo call_user_func( $editor_render_cb, $option_values ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
171 |
+
} elseif ( $render_cb && is_callable( $render_cb ) ) {
|
172 |
+
echo call_user_func( $render_cb, $option_values ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
173 |
+
} else {
|
174 |
+
$shortcode_attrs = array();
|
175 |
+
|
176 |
+
foreach ( $options as $option ) {
|
177 |
+
$display_key = $option['yith_display_key'];
|
178 |
+
$value = isset( $option_values[ $display_key ] ) ? $option_values[ $display_key ] : null;
|
179 |
+
$show = $this->is_control_visible( $option, $settings );
|
180 |
+
|
181 |
+
if ( $show && ! is_null( $value ) && '' !== $value ) {
|
182 |
+
$value = is_array( $value ) ? implode( ',', $value ) : $value;
|
183 |
+
$shortcode_value = ! empty( $option['remove_quotes'] ) ? $value : ( '"' . $value . '"' );
|
184 |
+
$shortcode_attrs[] = $display_key . '=' . $shortcode_value;
|
185 |
+
}
|
186 |
+
}
|
187 |
+
|
188 |
+
$shortcode_attrs = implode( ' ', $shortcode_attrs );
|
189 |
+
$shortcode = "[{$shortcode_name} {$shortcode_attrs}]";
|
190 |
+
|
191 |
+
if ( Plugin::$instance->editor->is_edit_mode() ) {
|
192 |
+
$html = esc_html( $shortcode );
|
193 |
+
if ( $do_shortcode ) {
|
194 |
+
do_action( 'yith_plugin_fw_elementor_editor_before_do_shortcode', $shortcode, $this );
|
195 |
+
$html = do_shortcode( apply_filters( 'yith_plugin_fw_elementor_editor_shortcode', $shortcode, $this ) );
|
196 |
+
do_action( 'yith_plugin_fw_elementor_editor_after_do_shortcode', $shortcode, $this );
|
197 |
+
}
|
198 |
+
$type = $do_shortcode ? 'html' : 'shortcode';
|
199 |
+
$html_to_show = $html;
|
200 |
+
$message = '';
|
201 |
+
|
202 |
+
if ( $do_shortcode && $empty_message && ! $html ) {
|
203 |
+
$type = 'empty-html';
|
204 |
+
$html_to_show = esc_html( $shortcode );
|
205 |
+
$message = $empty_message;
|
206 |
+
}
|
207 |
+
|
208 |
+
$show_title = in_array( $type, array( 'shortcode', 'empty-html' ), true );
|
209 |
+
$show_content = 'empty-html' !== $type;
|
210 |
+
?>
|
211 |
+
<div class="yith-plugin-fw-elementor-shortcode-widget yith-plugin-fw-elementor-shortcode-widget--<?php echo esc_attr( $type ); ?>">
|
212 |
+
<?php if ( $show_title ) : ?>
|
213 |
+
<div class="yith-plugin-fw-elementor-shortcode-widget__title">
|
214 |
+
<?php echo esc_html( $this->get_title() ); ?>
|
215 |
+
</div>
|
216 |
+
<?php endif; ?>
|
217 |
+
<?php if ( $message ) : ?>
|
218 |
+
<div class="yith-plugin-fw-elementor-shortcode-widget__message">
|
219 |
+
<?php echo wp_kses_post( $message ); ?>
|
220 |
+
</div>
|
221 |
+
<?php endif; ?>
|
222 |
+
<?php if ( $show_content ) : ?>
|
223 |
+
<div class="yith-plugin-fw-elementor-shortcode-widget__content">
|
224 |
+
<?php echo $html_to_show; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
225 |
+
</div>
|
226 |
+
<?php endif; ?>
|
227 |
+
</div>
|
228 |
+
<?php
|
229 |
+
} else {
|
230 |
+
do_action( 'yith_plugin_fw_elementor_before_do_shortcode', $shortcode, $this );
|
231 |
+
echo do_shortcode( apply_filters( 'yith_plugin_fw_elementor_shortcode', $shortcode, $this ) );
|
232 |
+
do_action( 'yith_plugin_fw_elementor_after_do_shortcode', $shortcode, $this );
|
233 |
+
}
|
234 |
+
}
|
235 |
+
}
|
236 |
+
|
237 |
+
/**
|
238 |
+
* Retrieve the YITH Data defaults.
|
239 |
+
*
|
240 |
+
* @return array
|
241 |
+
*/
|
242 |
+
public function get_yith_data_defaults() {
|
243 |
+
return array(
|
244 |
+
'map_from_gutenberg' => false,
|
245 |
+
'shortcode_name' => '',
|
246 |
+
'do_shortcode' => true,
|
247 |
+
'render_cb' => false,
|
248 |
+
'editor_render_cb' => false,
|
249 |
+
'options' => array(),
|
250 |
+
'section_title' => sprintf(
|
251 |
+
// translators: %s it the Elementor Widget title.
|
252 |
+
_x( '%s - Options', 'Elementor Widget - section title', 'yith-plugin-fw' ),
|
253 |
+
$this->get_title()
|
254 |
+
),
|
255 |
+
);
|
256 |
+
}
|
257 |
+
|
258 |
+
/**
|
259 |
+
* Retrieve YITH options with their values.
|
260 |
+
*/
|
261 |
+
protected function get_yith_option_values() {
|
262 |
+
$settings = $this->get_settings_for_display();
|
263 |
+
$map_from_gutenberg = $this->get_yith_prop( 'map_from_gutenberg' );
|
264 |
+
$options = $this->get_yith_prop( 'options' );
|
265 |
+
$option_values = array();
|
266 |
+
|
267 |
+
foreach ( $options as $option ) {
|
268 |
+
$value = isset( $option['default'] ) ? $option['default'] : null;
|
269 |
+
$key = $option['yith_key'];
|
270 |
+
$display_key = $option['yith_display_key'];
|
271 |
+
|
272 |
+
if ( isset( $settings[ $key ] ) ) {
|
273 |
+
$value = $settings[ $key ];
|
274 |
+
}
|
275 |
+
|
276 |
+
if ( isset( $option['type'] ) && Controls_Manager::SWITCHER === $option['type'] ) {
|
277 |
+
$yes_no_values = isset( $option['yes_no_values'] ) ? $option['yes_no_values'] : ! $map_from_gutenberg;
|
278 |
+
if ( false === $yes_no_values ) {
|
279 |
+
$yes_no_values = array( 'true', 'false' );
|
280 |
+
} elseif ( ! is_array( $yes_no_values ) || 2 !== count( $yes_no_values ) ) {
|
281 |
+
$yes_no_values = array( 'yes', 'no' );
|
282 |
+
}
|
283 |
+
|
284 |
+
$value = 'yes' === $value ? $yes_no_values[0] : $yes_no_values[1];
|
285 |
+
}
|
286 |
+
|
287 |
+
$option_values[ $display_key ] = $value;
|
288 |
+
}
|
289 |
+
|
290 |
+
return $option_values;
|
291 |
+
}
|
292 |
+
|
293 |
+
/**
|
294 |
+
* YITH Data Initialization.
|
295 |
+
*/
|
296 |
+
protected function init_yith_data() {
|
297 |
+
$data = wp_parse_args( $this->yith_data, $this->get_yith_data_defaults() );
|
298 |
+
|
299 |
+
if ( ! ! $data['map_from_gutenberg'] ) {
|
300 |
+
$data = $this->override_elementor_specific_data( $data );
|
301 |
+
|
302 |
+
if ( ! $data['options'] && ! empty( $data['attributes'] ) && is_array( $data['attributes'] ) ) {
|
303 |
+
$data['options'] = $data['attributes'];
|
304 |
+
unset( $data['attributes'] );
|
305 |
+
}
|
306 |
+
|
307 |
+
if ( $data['options'] ) {
|
308 |
+
$data['options'] = array_map( array( $this, 'map_option_from_gutenberg' ), $data['options'] );
|
309 |
+
}
|
310 |
+
}
|
311 |
+
|
312 |
+
$data['options'] = $this->validate_yith_options( $data['options'] );
|
313 |
+
|
314 |
+
$this->yith_data = $data;
|
315 |
+
}
|
316 |
+
|
317 |
+
/**
|
318 |
+
* Validate field types
|
319 |
+
*
|
320 |
+
* @param array $options The options.
|
321 |
+
*
|
322 |
+
* @return array|false The validate option array; false if the type is not set.
|
323 |
+
*/
|
324 |
+
protected function validate_yith_options( $options ) {
|
325 |
+
foreach ( $options as $key => &$option ) {
|
326 |
+
if ( ! isset( $option['type'] ) ) {
|
327 |
+
unset( $options[ $key ] );
|
328 |
+
continue;
|
329 |
+
}
|
330 |
+
|
331 |
+
// Let's fix the option type.
|
332 |
+
if ( in_array( $option['type'], array( 'toggle', 'onoff', 'checkbox' ), true ) ) {
|
333 |
+
$option['type'] = Controls_Manager::SWITCHER;
|
334 |
+
|
335 |
+
if ( isset( $option['default'] ) && is_bool( $option['default'] ) ) {
|
336 |
+
$option['default'] = yith_plugin_fw_is_true( $option['default'] ) ? 'yes' : 'no';
|
337 |
+
}
|
338 |
+
} elseif ( in_array( $option['type'], array( 'radio' ), true ) ) {
|
339 |
+
$option['type'] = Controls_Manager::SELECT;
|
340 |
+
} elseif ( in_array( $option['type'], array( 'color', 'colorpicker', 'color-palette' ), true ) ) {
|
341 |
+
$option['type'] = Controls_Manager::COLOR;
|
342 |
+
} elseif ( in_array( $option['type'], array( 'select' ), true ) && ! empty( $option['multiple'] ) ) {
|
343 |
+
$option['type'] = Controls_Manager::SELECT2;
|
344 |
+
}
|
345 |
+
|
346 |
+
// Set the key, used to store the option, and the display_key, used in the render method.
|
347 |
+
$option['yith_key'] = $this->maybe_prefix_yith_key( $key );
|
348 |
+
if ( ! isset( $option['yith_display_key'] ) ) {
|
349 |
+
$option['yith_display_key'] = $key;
|
350 |
+
}
|
351 |
+
|
352 |
+
// Auto-set the block_label to display label in a separate line.
|
353 |
+
if ( ! isset( $option['label_block'] ) ) {
|
354 |
+
$option['label_block'] = true;
|
355 |
+
}
|
356 |
+
}
|
357 |
+
|
358 |
+
return $options;
|
359 |
+
}
|
360 |
+
|
361 |
+
/**
|
362 |
+
* Override Elementor specific data if exists.
|
363 |
+
* This allows setting/overriding specific values for Elementor.
|
364 |
+
*
|
365 |
+
* @param array $data The data array.
|
366 |
+
*
|
367 |
+
* @return array
|
368 |
+
*/
|
369 |
+
protected function override_elementor_specific_data( $data ) {
|
370 |
+
$elementor_data = array_filter(
|
371 |
+
$data,
|
372 |
+
function ( $key ) {
|
373 |
+
return 'elementor_' === substr( $key, 0, 10 );
|
374 |
+
},
|
375 |
+
ARRAY_FILTER_USE_KEY
|
376 |
+
);
|
377 |
+
|
378 |
+
$elementor_data = array_combine(
|
379 |
+
array_map(
|
380 |
+
function ( $key ) {
|
381 |
+
return substr( $key, 10 );
|
382 |
+
},
|
383 |
+
array_keys( $elementor_data )
|
384 |
+
),
|
385 |
+
array_values( $elementor_data )
|
386 |
+
);
|
387 |
+
|
388 |
+
$data = array_merge( $data, $elementor_data );
|
389 |
+
|
390 |
+
return $data;
|
391 |
+
}
|
392 |
+
|
393 |
+
/**
|
394 |
+
* Map an option from Gutenberg
|
395 |
+
*
|
396 |
+
* @param array $option The option array.
|
397 |
+
*
|
398 |
+
* @return array
|
399 |
+
*/
|
400 |
+
protected function map_option_from_gutenberg( $option ) {
|
401 |
+
$option = $this->override_elementor_specific_data( $option );
|
402 |
+
$type = isset( $option['type'] ) ? $option['type'] : false;
|
403 |
+
|
404 |
+
if ( isset( $option['deps'], $option['deps']['id'], $option['deps']['value'] ) && ! isset( $option['condition'] ) ) {
|
405 |
+
|
406 |
+
$value = $option['deps']['value'];
|
407 |
+
if ( in_array( $type, array( 'toggle', 'onoff', 'checkbox' ), true ) ) {
|
408 |
+
$value = yith_plugin_fw_is_true( $value ) ? 'yes' : 'no';
|
409 |
+
}
|
410 |
+
$option['condition'] = array(
|
411 |
+
$option['deps']['id'] => $value,
|
412 |
+
);
|
413 |
+
unset( $option['deps'] );
|
414 |
+
}
|
415 |
+
|
416 |
+
switch ( $type ) {
|
417 |
+
case 'color':
|
418 |
+
case 'colorpicker':
|
419 |
+
if ( ! isset( $option['alpha'] ) ) {
|
420 |
+
$option['alpha'] = isset( $option['disableAlpha'] ) ? ! $option['disableAlpha'] : false;
|
421 |
+
}
|
422 |
+
|
423 |
+
break;
|
424 |
+
case 'color-palette':
|
425 |
+
$option['alpha'] = false;
|
426 |
+
break;
|
427 |
+
}
|
428 |
+
|
429 |
+
if ( isset( $option['help'] ) && ! isset( $option['description'] ) ) {
|
430 |
+
$option['description'] = $option['help'];
|
431 |
+
unset( $option['help'] );
|
432 |
+
}
|
433 |
+
|
434 |
+
return $option;
|
435 |
+
}
|
436 |
+
|
437 |
+
/**
|
438 |
+
* Return the YITH key prefix.
|
439 |
+
*
|
440 |
+
* @return string
|
441 |
+
*/
|
442 |
+
public function get_yith_key_prefix() {
|
443 |
+
return '_yith_';
|
444 |
+
}
|
445 |
+
|
446 |
+
/**
|
447 |
+
* Add YITH prefix to a specific key.
|
448 |
+
*
|
449 |
+
* @param string $key The key to be prefixed.
|
450 |
+
*
|
451 |
+
* @return string
|
452 |
+
*/
|
453 |
+
public function maybe_prefix_yith_key( $key ) {
|
454 |
+
$reserved_keys = array( 'id', 'elType', 'settings', 'elements', 'isInner' );
|
455 |
+
if ( in_array( $key, $reserved_keys, true ) ) {
|
456 |
+
$prefix = $this->get_yith_key_prefix();
|
457 |
+
|
458 |
+
$key = substr( $key, 0, strlen( $prefix ) ) === $prefix ? $key : ( $prefix . $key );
|
459 |
+
}
|
460 |
+
|
461 |
+
return $key;
|
462 |
+
}
|
463 |
+
}
|
464 |
+
}
|
plugin-fw/includes/builders/elementor/class-yith-elementor.php
ADDED
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Elementor Class.
|
4 |
+
*
|
5 |
+
* @class YITH_Elementor
|
6 |
+
* @package YITH\PluginFramework\Classes
|
7 |
+
* @since 3.6.0
|
8 |
+
*/
|
9 |
+
|
10 |
+
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
|
11 |
+
|
12 |
+
if ( ! class_exists( 'YITH_Elementor' ) ) {
|
13 |
+
/**
|
14 |
+
* YITH_Elementor class.
|
15 |
+
*
|
16 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
17 |
+
*/
|
18 |
+
class YITH_Elementor {
|
19 |
+
|
20 |
+
/**
|
21 |
+
* The single instance of the class.
|
22 |
+
*
|
23 |
+
* @var YITH_Elementor
|
24 |
+
*/
|
25 |
+
private static $instance;
|
26 |
+
|
27 |
+
/**
|
28 |
+
* The registered widgets.
|
29 |
+
*
|
30 |
+
* @var array
|
31 |
+
*/
|
32 |
+
private $widgets;
|
33 |
+
|
34 |
+
/**
|
35 |
+
* Singleton implementation.
|
36 |
+
*
|
37 |
+
* @return YITH_Elementor
|
38 |
+
*/
|
39 |
+
public static function instance() {
|
40 |
+
return ! is_null( self::$instance ) ? self::$instance : self::$instance = new self();
|
41 |
+
}
|
42 |
+
|
43 |
+
/**
|
44 |
+
* YITH_Elementor constructor.
|
45 |
+
*/
|
46 |
+
private function __construct() {
|
47 |
+
if ( defined( 'ELEMENTOR_VERSION' ) && version_compare( ELEMENTOR_VERSION, '3.0.0', '>=' ) ) {
|
48 |
+
add_action( 'init', array( $this, 'init' ), 20 );
|
49 |
+
}
|
50 |
+
}
|
51 |
+
|
52 |
+
/**
|
53 |
+
* Register Elementor widget
|
54 |
+
*
|
55 |
+
* @param string $widget_name The widget name.
|
56 |
+
* @param array $widget_options The widget options.
|
57 |
+
*/
|
58 |
+
public function register_widget( $widget_name, $widget_options ) {
|
59 |
+
if ( ! isset( $widget_options['name'] ) ) {
|
60 |
+
$widget_options['name'] = $widget_name;
|
61 |
+
}
|
62 |
+
$this->widgets[ $widget_name ] = $widget_options;
|
63 |
+
}
|
64 |
+
|
65 |
+
/**
|
66 |
+
* Let's start with Elementor
|
67 |
+
*/
|
68 |
+
public function init() {
|
69 |
+
if ( $this->widgets ) {
|
70 |
+
$this->load_files();
|
71 |
+
add_action( 'elementor/widgets/widgets_registered', array( $this, 'register_widgets' ) );
|
72 |
+
add_action( 'elementor/elements/categories_registered', array( $this, 'add_yith_category' ) );
|
73 |
+
|
74 |
+
add_action( 'elementor/editor/after_enqueue_styles', array( $this, 'enqueue_styles' ) );
|
75 |
+
add_action( 'elementor/frontend/after_enqueue_styles', array( $this, 'enqueue_styles' ) );
|
76 |
+
}
|
77 |
+
}
|
78 |
+
|
79 |
+
/**
|
80 |
+
* Load files
|
81 |
+
*/
|
82 |
+
private function load_files() {
|
83 |
+
require_once 'class-yith-elementor-widget.php';
|
84 |
+
}
|
85 |
+
|
86 |
+
/**
|
87 |
+
* Register Elementor Widgets
|
88 |
+
*/
|
89 |
+
public function register_widgets() {
|
90 |
+
foreach ( $this->widgets as $widget ) {
|
91 |
+
\Elementor\Plugin::instance()->widgets_manager->register_widget_type( new YITH_Elementor_Widget( array(), array( 'yith_data' => $widget ) ) );
|
92 |
+
}
|
93 |
+
}
|
94 |
+
|
95 |
+
/**
|
96 |
+
* Add "YITH" group for Elementor widgets
|
97 |
+
*
|
98 |
+
* @param Elementor\Elements_Manager $elements_manager Elements Manager.
|
99 |
+
*/
|
100 |
+
public function add_yith_category( $elements_manager ) {
|
101 |
+
$elements_manager->add_category(
|
102 |
+
'yith',
|
103 |
+
array(
|
104 |
+
'title' => 'YITH',
|
105 |
+
'icon' => 'fa fa-plug',
|
106 |
+
'active' => false,
|
107 |
+
)
|
108 |
+
);
|
109 |
+
}
|
110 |
+
|
111 |
+
/**
|
112 |
+
* Enqueue styles in elementor
|
113 |
+
*/
|
114 |
+
public function enqueue_styles() {
|
115 |
+
if ( \Elementor\Plugin::$instance->preview->is_preview_mode() || \Elementor\Plugin::$instance->editor->is_edit_mode() ) {
|
116 |
+
wp_enqueue_style( 'yith-plugin-fw-icon-font' );
|
117 |
+
wp_enqueue_style( 'yith-plugin-fw-elementor' );
|
118 |
+
}
|
119 |
+
}
|
120 |
+
}
|
121 |
+
}
|
122 |
+
|
123 |
+
YITH_Elementor::instance();
|
plugin-fw/includes/{class-yith-gutenberg.php → builders/gutenberg/class-yith-gutenberg.php}
RENAMED
@@ -64,30 +64,46 @@ if ( ! class_exists( 'YITH_Gutenberg' ) ) {
|
|
64 |
* YITH_Gutenberg constructor.
|
65 |
*/
|
66 |
private function __construct() {
|
|
|
67 |
add_action( 'init', array( $this, 'register_blocks' ), 30 );
|
68 |
add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_block_editor_assets' ) );
|
69 |
add_action( 'wp_ajax_yith_plugin_fw_gutenberg_do_shortcode', array( $this, 'do_shortcode' ) );
|
70 |
add_action( 'wc_ajax_yith_plugin_fw_gutenberg_do_shortcode', array( $this, 'do_shortcode' ) );
|
71 |
}
|
72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
/**
|
74 |
* Enqueue scripts for gutenberg
|
75 |
*/
|
76 |
public function enqueue_block_editor_assets() {
|
77 |
-
$ajax_url
|
78 |
-
$
|
79 |
-
$
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
|
|
|
|
|
|
86 |
);
|
87 |
-
|
88 |
-
|
89 |
-
wp_localize_script( 'yith-gutenberg', 'yith_gutenberg', $this->blocks_args );
|
90 |
-
|
|
|
|
|
|
|
|
|
|
|
91 |
}
|
92 |
|
93 |
/**
|
@@ -224,12 +240,10 @@ if ( ! class_exists( 'YITH_Gutenberg' ) ) {
|
|
224 |
$args[ $block ]['category'] = $this->get_default_blocks_category_slug();
|
225 |
}
|
226 |
|
|
|
|
|
227 |
if ( isset( $block_args['attributes'] ) ) {
|
228 |
foreach ( $block_args['attributes'] as $attr_name => $attributes ) {
|
229 |
-
// Set the do_shortcode args.
|
230 |
-
if ( ! empty( $attributes['do_shortcode'] ) ) {
|
231 |
-
$args[ $block ]['attributes'][ $attr_name ] = true;
|
232 |
-
}
|
233 |
|
234 |
if ( ! empty( $attributes['options'] ) && is_array( $attributes['options'] ) ) {
|
235 |
$options = array();
|
@@ -249,8 +263,8 @@ if ( ! class_exists( 'YITH_Gutenberg' ) ) {
|
|
249 |
|
250 |
// Special Requirements for Block Type.
|
251 |
if ( ! empty( $attributes['type'] ) ) {
|
252 |
-
$args[ $block ]['attributes'][ $attr_name ]['
|
253 |
-
$args[ $block ]['attributes'][ $attr_name ]['type']
|
254 |
|
255 |
switch ( $attributes['type'] ) {
|
256 |
case 'select':
|
@@ -293,20 +307,23 @@ if ( ! class_exists( 'YITH_Gutenberg' ) ) {
|
|
293 |
* Get a do_shortcode in ajax call to show block preview
|
294 |
**/
|
295 |
public function do_shortcode() {
|
296 |
-
// phpcs:disable WordPress.Security.NonceVerification
|
297 |
$current_action = current_action();
|
298 |
-
$shortcode = ! empty( $
|
299 |
|
300 |
if ( ! apply_filters( 'yith_plugin_fw_gutenberg_skip_shortcode_sanitize', false ) ) {
|
301 |
$shortcode = sanitize_text_field( stripslashes( $shortcode ) );
|
302 |
}
|
303 |
|
|
|
|
|
304 |
do_action( 'yith_plugin_fw_gutenberg_before_do_shortcode', $shortcode, $current_action );
|
305 |
echo do_shortcode( apply_filters( 'yith_plugin_fw_gutenberg_shortcode', $shortcode, $current_action ) );
|
306 |
do_action( 'yith_plugin_fw_gutenberg_after_do_shortcode', $shortcode, $current_action );
|
307 |
|
|
|
308 |
if ( is_ajax() ) {
|
309 |
-
|
310 |
}
|
311 |
|
312 |
// phpcs:enable
|
64 |
* YITH_Gutenberg constructor.
|
65 |
*/
|
66 |
private function __construct() {
|
67 |
+
add_action( 'init', array( $this, 'init' ) );
|
68 |
add_action( 'init', array( $this, 'register_blocks' ), 30 );
|
69 |
add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_block_editor_assets' ) );
|
70 |
add_action( 'wp_ajax_yith_plugin_fw_gutenberg_do_shortcode', array( $this, 'do_shortcode' ) );
|
71 |
add_action( 'wc_ajax_yith_plugin_fw_gutenberg_do_shortcode', array( $this, 'do_shortcode' ) );
|
72 |
}
|
73 |
|
74 |
+
/**
|
75 |
+
* Initialization
|
76 |
+
*/
|
77 |
+
public function init() {
|
78 |
+
|
79 |
+
}
|
80 |
+
|
81 |
/**
|
82 |
* Enqueue scripts for gutenberg
|
83 |
*/
|
84 |
public function enqueue_block_editor_assets() {
|
85 |
+
$ajax_url = function_exists( 'WC' ) ? add_query_arg( 'wc-ajax', 'yith_plugin_fw_gutenberg_do_shortcode', trailingslashit( site_url() ) ) : admin_url( 'admin-ajax.php' );
|
86 |
+
$gutenberg = array( 'ajaxurl' => $ajax_url );
|
87 |
+
$asset_file = include YIT_CORE_PLUGIN_PATH . '/dist/gutenberg/index.asset.php';
|
88 |
+
|
89 |
+
$gutenberg_assets_url = YIT_CORE_PLUGIN_URL . '/dist/gutenberg';
|
90 |
+
|
91 |
+
wp_register_script(
|
92 |
+
'yith-gutenberg',
|
93 |
+
$gutenberg_assets_url . '/index.js',
|
94 |
+
$asset_file['dependencies'],
|
95 |
+
$asset_file['version'],
|
96 |
+
true
|
97 |
);
|
98 |
+
|
99 |
+
wp_localize_script( 'yith-gutenberg', 'yith_gutenberg_ajax', $gutenberg ); // Deprecated! Kept for backward compatibility.
|
100 |
+
wp_localize_script( 'yith-gutenberg', 'yith_gutenberg', $this->blocks_args ); // Deprecated! Kept for backward compatibility.
|
101 |
+
|
102 |
+
wp_localize_script( 'yith-gutenberg', 'yithGutenberg', $gutenberg );
|
103 |
+
wp_localize_script( 'yith-gutenberg', 'yithGutenbergBlocks', $this->blocks_args );
|
104 |
+
|
105 |
+
wp_enqueue_script( 'yith-gutenberg' );
|
106 |
+
wp_enqueue_style( 'yith-gutenberg', $gutenberg_assets_url . '/style-index.css', array(), yith_plugin_fw_get_version() );
|
107 |
}
|
108 |
|
109 |
/**
|
240 |
$args[ $block ]['category'] = $this->get_default_blocks_category_slug();
|
241 |
}
|
242 |
|
243 |
+
$args[ $block ]['do_shortcode'] = isset( $block_args['do_shortcode'] ) ? ! ! $block_args['do_shortcode'] : true;
|
244 |
+
|
245 |
if ( isset( $block_args['attributes'] ) ) {
|
246 |
foreach ( $block_args['attributes'] as $attr_name => $attributes ) {
|
|
|
|
|
|
|
|
|
247 |
|
248 |
if ( ! empty( $attributes['options'] ) && is_array( $attributes['options'] ) ) {
|
249 |
$options = array();
|
263 |
|
264 |
// Special Requirements for Block Type.
|
265 |
if ( ! empty( $attributes['type'] ) ) {
|
266 |
+
$args[ $block ]['attributes'][ $attr_name ]['controlType'] = $attributes['type'];
|
267 |
+
$args[ $block ]['attributes'][ $attr_name ]['type'] = 'string';
|
268 |
|
269 |
switch ( $attributes['type'] ) {
|
270 |
case 'select':
|
307 |
* Get a do_shortcode in ajax call to show block preview
|
308 |
**/
|
309 |
public function do_shortcode() {
|
310 |
+
// phpcs:disable WordPress.Security.NonceVerification
|
311 |
$current_action = current_action();
|
312 |
+
$shortcode = ! empty( $_REQUEST['shortcode'] ) ? wp_unslash( $_REQUEST['shortcode'] ) : ''; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
|
313 |
|
314 |
if ( ! apply_filters( 'yith_plugin_fw_gutenberg_skip_shortcode_sanitize', false ) ) {
|
315 |
$shortcode = sanitize_text_field( stripslashes( $shortcode ) );
|
316 |
}
|
317 |
|
318 |
+
ob_start();
|
319 |
+
|
320 |
do_action( 'yith_plugin_fw_gutenberg_before_do_shortcode', $shortcode, $current_action );
|
321 |
echo do_shortcode( apply_filters( 'yith_plugin_fw_gutenberg_shortcode', $shortcode, $current_action ) );
|
322 |
do_action( 'yith_plugin_fw_gutenberg_after_do_shortcode', $shortcode, $current_action );
|
323 |
|
324 |
+
$html = ob_get_clean();
|
325 |
if ( is_ajax() ) {
|
326 |
+
wp_send_json( array( 'html' => $html ) );
|
327 |
}
|
328 |
|
329 |
// phpcs:enable
|
plugin-fw/includes/class-yit-assets.php
CHANGED
@@ -44,9 +44,21 @@ if ( ! class_exists( 'YIT_Assets' ) ) {
|
|
44 |
*/
|
45 |
private function __construct() {
|
46 |
$this->version = yith_plugin_fw_get_version();
|
|
|
|
|
|
|
|
|
47 |
add_action( 'admin_enqueue_scripts', array( $this, 'register_styles_and_scripts' ) );
|
48 |
}
|
49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
/**
|
51 |
* Register styles and scripts
|
52 |
*/
|
@@ -72,7 +84,7 @@ if ( ! class_exists( 'YIT_Assets' ) ) {
|
|
72 |
wp_register_style( 'colorbox', YIT_CORE_PLUGIN_URL . '/assets/css/colorbox.css', array(), $this->version );
|
73 |
wp_register_style( 'yit-upgrade-to-pro', YIT_CORE_PLUGIN_URL . '/assets/css/yit-upgrade-to-pro.css', array( 'colorbox' ), $this->version );
|
74 |
wp_register_style( 'yit-plugin-metaboxes', YIT_CORE_PLUGIN_URL . '/assets/css/metaboxes.css', array(), $this->version );
|
75 |
-
wp_register_style( 'yith-plugin-fw-fields', YIT_CORE_PLUGIN_URL . '/assets/css/yith-fields.css',
|
76 |
|
77 |
wp_register_style( 'raleway-font', '//fonts.googleapis.com/css?family=Raleway:100,200,300,400,500,600,700,800,900', array(), $this->version );
|
78 |
|
44 |
*/
|
45 |
private function __construct() {
|
46 |
$this->version = yith_plugin_fw_get_version();
|
47 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'register_common_scripts' ) );
|
48 |
+
add_action( 'wp_enqueue_scripts', array( $this, 'register_common_scripts' ) );
|
49 |
+
add_action( 'elementor/editor/before_enqueue_styles', array( $this, 'register_common_scripts' ) );
|
50 |
+
|
51 |
add_action( 'admin_enqueue_scripts', array( $this, 'register_styles_and_scripts' ) );
|
52 |
}
|
53 |
|
54 |
+
/**
|
55 |
+
* Register common scripts
|
56 |
+
*/
|
57 |
+
public function register_common_scripts() {
|
58 |
+
wp_register_style( 'yith-plugin-fw-icon-font', YIT_CORE_PLUGIN_URL . '/assets/css/yith-icon.css', array(), $this->version );
|
59 |
+
wp_register_style( 'yith-plugin-fw-elementor', YIT_CORE_PLUGIN_URL . '/assets/css/elementor.css', array(), $this->version );
|
60 |
+
}
|
61 |
+
|
62 |
/**
|
63 |
* Register styles and scripts
|
64 |
*/
|
84 |
wp_register_style( 'colorbox', YIT_CORE_PLUGIN_URL . '/assets/css/colorbox.css', array(), $this->version );
|
85 |
wp_register_style( 'yit-upgrade-to-pro', YIT_CORE_PLUGIN_URL . '/assets/css/yit-upgrade-to-pro.css', array( 'colorbox' ), $this->version );
|
86 |
wp_register_style( 'yit-plugin-metaboxes', YIT_CORE_PLUGIN_URL . '/assets/css/metaboxes.css', array(), $this->version );
|
87 |
+
wp_register_style( 'yith-plugin-fw-fields', YIT_CORE_PLUGIN_URL . '/assets/css/yith-fields.css', array( 'yith-plugin-fw-icon-font' ), $this->version );
|
88 |
|
89 |
wp_register_style( 'raleway-font', '//fonts.googleapis.com/css?family=Raleway:100,200,300,400,500,600,700,800,900', array(), $this->version );
|
90 |
|
plugin-fw/includes/class-yit-plugin-panel.php
CHANGED
@@ -1330,7 +1330,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
1330 |
?>
|
1331 |
<?php if ( $this->is_free() && isset( $this->settings['plugin_slug'] ) ) : ?>
|
1332 |
<?php
|
1333 |
-
$rate_link = apply_filters( 'yith_plugin_fw_rate_url', 'https://wordpress.org/support/plugin/' . $this->settings['plugin_slug'] . '/reviews
|
1334 |
?>
|
1335 |
<h1 class="notice-container"></h1>
|
1336 |
<div class="yith-plugin-fw-banner">
|
@@ -1343,7 +1343,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
1343 |
esc_html__( 'We need your support', 'yith-plugin-fw' ),
|
1344 |
esc_html__( 'to keep updating and improving the plugin. Please,', 'yith-plugin-fw' ),
|
1345 |
esc_url( $rate_link ),
|
1346 |
-
esc_html__( 'help us by leaving a
|
1347 |
esc_html__( ':) Thanks!', 'yith-plugin-fw' )
|
1348 |
);
|
1349 |
?>
|
1330 |
?>
|
1331 |
<?php if ( $this->is_free() && isset( $this->settings['plugin_slug'] ) ) : ?>
|
1332 |
<?php
|
1333 |
+
$rate_link = apply_filters( 'yith_plugin_fw_rate_url', 'https://wordpress.org/support/plugin/' . $this->settings['plugin_slug'] . '/reviews/#new-post' );
|
1334 |
?>
|
1335 |
<h1 class="notice-container"></h1>
|
1336 |
<div class="yith-plugin-fw-banner">
|
1343 |
esc_html__( 'We need your support', 'yith-plugin-fw' ),
|
1344 |
esc_html__( 'to keep updating and improving the plugin. Please,', 'yith-plugin-fw' ),
|
1345 |
esc_url( $rate_link ),
|
1346 |
+
esc_html__( 'help us by leaving a good review', 'yith-plugin-fw' ),
|
1347 |
esc_html__( ':) Thanks!', 'yith-plugin-fw' )
|
1348 |
);
|
1349 |
?>
|
plugin-fw/includes/class-yith-system-status.php
CHANGED
@@ -182,8 +182,8 @@ if ( ! class_exists( 'YITH_System_Status' ) ) {
|
|
182 |
$this->add_requirements(
|
183 |
esc_html__( 'YITH Plugins', 'yith-plugin-fw' ),
|
184 |
array(
|
185 |
-
'min_wp_version' => '5.
|
186 |
-
'min_wc_version' => '4.
|
187 |
'min_php_version' => '5.6.20',
|
188 |
)
|
189 |
);
|
182 |
$this->add_requirements(
|
183 |
esc_html__( 'YITH Plugins', 'yith-plugin-fw' ),
|
184 |
array(
|
185 |
+
'min_wp_version' => '5.4',
|
186 |
+
'min_wc_version' => '4.5',
|
187 |
'min_php_version' => '5.6.20',
|
188 |
)
|
189 |
);
|
plugin-fw/init.php
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
-
* Version: 3.
|
5 |
* Author: YITH
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
8 |
*
|
9 |
* @author YITH
|
10 |
-
* @version 3.
|
11 |
* @package YITH\PluginFramework
|
12 |
*/
|
13 |
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
+
* Version: 3.6.4
|
5 |
* Author: YITH
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
8 |
*
|
9 |
* @author YITH
|
10 |
+
* @version 3.6.4
|
11 |
* @package YITH\PluginFramework
|
12 |
*/
|
13 |
|
plugin-fw/languages/yith-plugin-fw-el.mo
CHANGED
Binary file
|
plugin-fw/languages/yith-plugin-fw-el.po
CHANGED
@@ -4,8 +4,8 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2021-
|
8 |
-
"PO-Revision-Date: 2021-02-11 18:
|
9 |
"Language: el_GR\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -13,27 +13,27 @@ msgstr ""
|
|
13 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
14 |
"X-Generator: GlotPress/3.0.0-alpha.2\n"
|
15 |
|
16 |
-
#: includes/class-yit-assets.php:
|
17 |
msgid "Clear"
|
18 |
msgstr "Καθαρισμός"
|
19 |
|
20 |
-
#: includes/class-yit-assets.php:
|
21 |
msgid "Clear color"
|
22 |
msgstr "Καθαρισμός χρώματος"
|
23 |
|
24 |
-
#: includes/class-yit-assets.php:
|
25 |
msgid "Default"
|
26 |
msgstr "Προεπιλεγμένο"
|
27 |
|
28 |
-
#: includes/class-yit-assets.php:
|
29 |
msgid "Select default color"
|
30 |
msgstr "Επιλογή προεπιλεγμένου χρώματος"
|
31 |
|
32 |
-
#: includes/class-yit-assets.php:
|
33 |
msgid "Select Color"
|
34 |
msgstr "Επιλογή Χρώματος"
|
35 |
|
36 |
-
#: includes/class-yit-assets.php:
|
37 |
msgid "Color value"
|
38 |
msgstr "Αξία χρώματος"
|
39 |
|
@@ -133,7 +133,8 @@ msgstr ""
|
|
133 |
"για να διατηρήσετε την ενημέρωση και τη βελτίωση του πρόσθετου. Παρακαλώ,"
|
134 |
|
135 |
#: includes/class-yit-plugin-panel.php:1346
|
136 |
-
|
|
|
137 |
msgstr "βοηθήστε μας αφήνοντας μια βαθμολογία πέντε αστέρων"
|
138 |
|
139 |
#: includes/class-yit-plugin-panel.php:1347
|
@@ -145,14 +146,10 @@ msgid "Plugins Activated"
|
|
145 |
msgstr "Ενεργοποιημένα Πρόσθετα"
|
146 |
|
147 |
#: includes/class-yit-pointers.php:81
|
148 |
-
#, fuzzy
|
149 |
msgid ""
|
150 |
"From now on, you can find all plugin options in YITH menu. Plugin "
|
151 |
"customization settings will be available as a new entry in YITH menu."
|
152 |
msgstr ""
|
153 |
-
"Πλέον θα μπορείτε να βρείτε όλες τις επιλογές πρόσθετων στο μενού YITH "
|
154 |
-
"Plugins. Οι ρυθμίσεις προσαρμογής πρόσθετων θα είναι διαθέσιμη ως νέα "
|
155 |
-
"είσοδος στο μενού YITH Plugins."
|
156 |
|
157 |
#. translators: 1. YITH site link; 2. WordPress site link.
|
158 |
#: includes/class-yit-pointers.php:84 includes/class-yit-pointers.php:100
|
@@ -164,7 +161,6 @@ msgid "Plugins Upgraded"
|
|
164 |
msgstr "Αναβαθμισμένα Πρόσθετα"
|
165 |
|
166 |
#: includes/class-yit-pointers.php:97
|
167 |
-
#, fuzzy
|
168 |
msgid ""
|
169 |
"From now on, you can find the option panel of YITH plugins in YITH menu. "
|
170 |
"Every time one of our plugins is added, a new entry will be added to this "
|
@@ -172,12 +168,6 @@ msgid ""
|
|
172 |
"WooCommerce Wishlist, YITH WooCommerce Ajax Search, etc.) will be moved from "
|
173 |
"previous location to YITH menu."
|
174 |
msgstr ""
|
175 |
-
"Πλέον θα μπορείτε να βρείτε το πάνελ επιλογών πρόσθετων YITH στο μενού YITH "
|
176 |
-
"Plugins. Κάθε φορά που ένα απο τα πρόσθετά μας προστίθεται, θα προστίθεται "
|
177 |
-
"και μια νέα είσοδος σε αυτό το μενού. Για παράδειγμα, μετά την ενημέρωση, οι "
|
178 |
-
"επιλογές πρόσθετου (όπως για το YITH WooCommerce Wishlist, YITH WooCommerce "
|
179 |
-
"Ajax Search, κλπ.) θα μεταφερθούν από την προηγούμενη τοποθεσία στην καρτέλα "
|
180 |
-
"YITH Plugins."
|
181 |
|
182 |
#: includes/class-yith-dashboard.php:35
|
183 |
msgid "YITH Latest Updates"
|
@@ -580,7 +570,7 @@ msgstr "Cache εξωτερικού αντικειμένου"
|
|
580 |
msgid "Plugins Requirements"
|
581 |
msgstr "Προϋποθέσεις Πρόσθετων"
|
582 |
|
583 |
-
#: yit-plugin.php:
|
584 |
msgid "License"
|
585 |
msgstr "Άδεια χρήσης προϊόντος"
|
586 |
|
@@ -588,6 +578,17 @@ msgstr "Άδεια χρήσης προϊόντος"
|
|
588 |
msgid "YITH"
|
589 |
msgstr "YITH"
|
590 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
591 |
#: includes/class-yith-dashboard.php:96
|
592 |
msgctxt "Plugin FW"
|
593 |
msgid "View Changelog"
|
@@ -603,11 +604,6 @@ msgctxt "Button label"
|
|
603 |
msgid "Close"
|
604 |
msgstr "Απενεργοποίηση"
|
605 |
|
606 |
-
#: includes/class-yith-gutenberg.php:131
|
607 |
-
msgctxt "[gutenberg]: Category Name"
|
608 |
-
msgid "YITH"
|
609 |
-
msgstr "YITH"
|
610 |
-
|
611 |
#: includes/privacy/class-yith-privacy.php:61
|
612 |
msgctxt "Privacy Policy Guide Title"
|
613 |
msgid "YITH Plugins"
|
@@ -652,6 +648,16 @@ msgctxt "Privacy Policy Content"
|
|
652 |
msgid "Payments"
|
653 |
msgstr "Πληρωμές"
|
654 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
655 |
#: templates/fields/dimensions.php:13
|
656 |
msgctxt "Position in the \"Dimensions\" field"
|
657 |
msgid "Top"
|
@@ -687,27 +693,27 @@ msgctxt "YES/NO button: use MAX 4 characters!"
|
|
687 |
msgid "NO"
|
688 |
msgstr "ΟΧΙ"
|
689 |
|
690 |
-
#: yit-plugin.php:
|
691 |
msgctxt "Plugin Row Meta"
|
692 |
msgid "Live Demo"
|
693 |
msgstr "Live Demo"
|
694 |
|
695 |
-
#: yit-plugin.php:
|
696 |
msgctxt "Plugin Row Meta"
|
697 |
msgid "Documentation"
|
698 |
msgstr "Εγχειρίδιο χρήσης"
|
699 |
|
700 |
-
#: yit-plugin.php:
|
701 |
msgctxt "Plugin Row Meta"
|
702 |
msgid "Support"
|
703 |
msgstr "Υποστήριξη"
|
704 |
|
705 |
-
#: yit-plugin.php:
|
706 |
msgctxt "Plugin Row Meta"
|
707 |
msgid "Premium version"
|
708 |
msgstr "Premium έκδοση"
|
709 |
|
710 |
-
#: yit-plugin.php:
|
711 |
msgctxt "Action links"
|
712 |
msgid "Settings"
|
713 |
msgstr "Ρυθμίσεις"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2021-03-09 13:34:06+00:00\n"
|
8 |
+
"PO-Revision-Date: 2021-02-11 18:07:46+0000\n"
|
9 |
"Language: el_GR\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
14 |
"X-Generator: GlotPress/3.0.0-alpha.2\n"
|
15 |
|
16 |
+
#: includes/class-yit-assets.php:129
|
17 |
msgid "Clear"
|
18 |
msgstr "Καθαρισμός"
|
19 |
|
20 |
+
#: includes/class-yit-assets.php:130
|
21 |
msgid "Clear color"
|
22 |
msgstr "Καθαρισμός χρώματος"
|
23 |
|
24 |
+
#: includes/class-yit-assets.php:131
|
25 |
msgid "Default"
|
26 |
msgstr "Προεπιλεγμένο"
|
27 |
|
28 |
+
#: includes/class-yit-assets.php:132
|
29 |
msgid "Select default color"
|
30 |
msgstr "Επιλογή προεπιλεγμένου χρώματος"
|
31 |
|
32 |
+
#: includes/class-yit-assets.php:133
|
33 |
msgid "Select Color"
|
34 |
msgstr "Επιλογή Χρώματος"
|
35 |
|
36 |
+
#: includes/class-yit-assets.php:134
|
37 |
msgid "Color value"
|
38 |
msgstr "Αξία χρώματος"
|
39 |
|
133 |
"για να διατηρήσετε την ενημέρωση και τη βελτίωση του πρόσθετου. Παρακαλώ,"
|
134 |
|
135 |
#: includes/class-yit-plugin-panel.php:1346
|
136 |
+
#, fuzzy
|
137 |
+
msgid "help us by leaving a good review"
|
138 |
msgstr "βοηθήστε μας αφήνοντας μια βαθμολογία πέντε αστέρων"
|
139 |
|
140 |
#: includes/class-yit-plugin-panel.php:1347
|
146 |
msgstr "Ενεργοποιημένα Πρόσθετα"
|
147 |
|
148 |
#: includes/class-yit-pointers.php:81
|
|
|
149 |
msgid ""
|
150 |
"From now on, you can find all plugin options in YITH menu. Plugin "
|
151 |
"customization settings will be available as a new entry in YITH menu."
|
152 |
msgstr ""
|
|
|
|
|
|
|
153 |
|
154 |
#. translators: 1. YITH site link; 2. WordPress site link.
|
155 |
#: includes/class-yit-pointers.php:84 includes/class-yit-pointers.php:100
|
161 |
msgstr "Αναβαθμισμένα Πρόσθετα"
|
162 |
|
163 |
#: includes/class-yit-pointers.php:97
|
|
|
164 |
msgid ""
|
165 |
"From now on, you can find the option panel of YITH plugins in YITH menu. "
|
166 |
"Every time one of our plugins is added, a new entry will be added to this "
|
168 |
"WooCommerce Wishlist, YITH WooCommerce Ajax Search, etc.) will be moved from "
|
169 |
"previous location to YITH menu."
|
170 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
171 |
|
172 |
#: includes/class-yith-dashboard.php:35
|
173 |
msgid "YITH Latest Updates"
|
570 |
msgid "Plugins Requirements"
|
571 |
msgstr "Προϋποθέσεις Πρόσθετων"
|
572 |
|
573 |
+
#: yit-plugin.php:190
|
574 |
msgid "License"
|
575 |
msgstr "Άδεια χρήσης προϊόντος"
|
576 |
|
578 |
msgid "YITH"
|
579 |
msgstr "YITH"
|
580 |
|
581 |
+
#. translators: %s it the Elementor Widget title.
|
582 |
+
#: includes/builders/elementor/class-yith-elementor-widget.php:252
|
583 |
+
msgctxt "Elementor Widget - section title"
|
584 |
+
msgid "%s - Options"
|
585 |
+
msgstr ""
|
586 |
+
|
587 |
+
#: includes/builders/gutenberg/class-yith-gutenberg.php:147
|
588 |
+
msgctxt "[gutenberg]: Category Name"
|
589 |
+
msgid "YITH"
|
590 |
+
msgstr "YITH"
|
591 |
+
|
592 |
#: includes/class-yith-dashboard.php:96
|
593 |
msgctxt "Plugin FW"
|
594 |
msgid "View Changelog"
|
604 |
msgid "Close"
|
605 |
msgstr "Απενεργοποίηση"
|
606 |
|
|
|
|
|
|
|
|
|
|
|
607 |
#: includes/privacy/class-yith-privacy.php:61
|
608 |
msgctxt "Privacy Policy Guide Title"
|
609 |
msgid "YITH Plugins"
|
648 |
msgid "Payments"
|
649 |
msgstr "Πληρωμές"
|
650 |
|
651 |
+
#: templates/fields/copy-to-clipboard.php:41
|
652 |
+
msgctxt "Copy-to-clipboard message"
|
653 |
+
msgid "Copied!"
|
654 |
+
msgstr ""
|
655 |
+
|
656 |
+
#: templates/fields/copy-to-clipboard.php:45
|
657 |
+
msgctxt "Copy-to-clipboard button text"
|
658 |
+
msgid "Copy"
|
659 |
+
msgstr ""
|
660 |
+
|
661 |
#: templates/fields/dimensions.php:13
|
662 |
msgctxt "Position in the \"Dimensions\" field"
|
663 |
msgid "Top"
|
693 |
msgid "NO"
|
694 |
msgstr "ΟΧΙ"
|
695 |
|
696 |
+
#: yit-plugin.php:78
|
697 |
msgctxt "Plugin Row Meta"
|
698 |
msgid "Live Demo"
|
699 |
msgstr "Live Demo"
|
700 |
|
701 |
+
#: yit-plugin.php:82
|
702 |
msgctxt "Plugin Row Meta"
|
703 |
msgid "Documentation"
|
704 |
msgstr "Εγχειρίδιο χρήσης"
|
705 |
|
706 |
+
#: yit-plugin.php:86
|
707 |
msgctxt "Plugin Row Meta"
|
708 |
msgid "Support"
|
709 |
msgstr "Υποστήριξη"
|
710 |
|
711 |
+
#: yit-plugin.php:90
|
712 |
msgctxt "Plugin Row Meta"
|
713 |
msgid "Premium version"
|
714 |
msgstr "Premium έκδοση"
|
715 |
|
716 |
+
#: yit-plugin.php:186
|
717 |
msgctxt "Action links"
|
718 |
msgid "Settings"
|
719 |
msgstr "Ρυθμίσεις"
|
plugin-fw/languages/yith-plugin-fw-es_ES.mo
CHANGED
Binary file
|
plugin-fw/languages/yith-plugin-fw-es_ES.po
CHANGED
@@ -4,8 +4,8 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2021-
|
8 |
-
"PO-Revision-Date: 2021-02-
|
9 |
"Language: es\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -13,27 +13,27 @@ msgstr ""
|
|
13 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
14 |
"X-Generator: GlotPress/3.0.0-alpha.2\n"
|
15 |
|
16 |
-
#: includes/class-yit-assets.php:
|
17 |
msgid "Clear"
|
18 |
msgstr "Borrar"
|
19 |
|
20 |
-
#: includes/class-yit-assets.php:
|
21 |
msgid "Clear color"
|
22 |
msgstr "Borrar color"
|
23 |
|
24 |
-
#: includes/class-yit-assets.php:
|
25 |
msgid "Default"
|
26 |
msgstr "Predeterminado"
|
27 |
|
28 |
-
#: includes/class-yit-assets.php:
|
29 |
msgid "Select default color"
|
30 |
msgstr "Seleccionar color predeterminado"
|
31 |
|
32 |
-
#: includes/class-yit-assets.php:
|
33 |
msgid "Select Color"
|
34 |
msgstr "Seleccionar color"
|
35 |
|
36 |
-
#: includes/class-yit-assets.php:
|
37 |
msgid "Color value"
|
38 |
msgstr "Valor del color"
|
39 |
|
@@ -133,7 +133,8 @@ msgid "to keep updating and improving the plugin. Please,"
|
|
133 |
msgstr "para que podamos seguir actualizando y mejorando el plugin. Por favor,"
|
134 |
|
135 |
#: includes/class-yit-plugin-panel.php:1346
|
136 |
-
|
|
|
137 |
msgstr "ayúdanos con una valoración de cinco estrellas"
|
138 |
|
139 |
#: includes/class-yit-plugin-panel.php:1347
|
@@ -145,7 +146,6 @@ msgid "Plugins Activated"
|
|
145 |
msgstr "Plugins activados"
|
146 |
|
147 |
#: includes/class-yit-pointers.php:81
|
148 |
-
#, fuzzy
|
149 |
msgid ""
|
150 |
"From now on, you can find all plugin options in YITH menu. Plugin "
|
151 |
"customization settings will be available as a new entry in YITH menu."
|
@@ -164,7 +164,6 @@ msgid "Plugins Upgraded"
|
|
164 |
msgstr "Plugins mejorados"
|
165 |
|
166 |
#: includes/class-yit-pointers.php:97
|
167 |
-
#, fuzzy
|
168 |
msgid ""
|
169 |
"From now on, you can find the option panel of YITH plugins in YITH menu. "
|
170 |
"Every time one of our plugins is added, a new entry will be added to this "
|
@@ -577,7 +576,7 @@ msgstr "Caché objeto externo"
|
|
577 |
msgid "Plugins Requirements"
|
578 |
msgstr "Requerimientos de los plugins"
|
579 |
|
580 |
-
#: yit-plugin.php:
|
581 |
msgid "License"
|
582 |
msgstr "Licencia"
|
583 |
|
@@ -585,6 +584,17 @@ msgstr "Licencia"
|
|
585 |
msgid "YITH"
|
586 |
msgstr "YITH"
|
587 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
588 |
#: includes/class-yith-dashboard.php:96
|
589 |
msgctxt "Plugin FW"
|
590 |
msgid "View Changelog"
|
@@ -600,11 +610,6 @@ msgctxt "Button label"
|
|
600 |
msgid "Close"
|
601 |
msgstr "Cerrar"
|
602 |
|
603 |
-
#: includes/class-yith-gutenberg.php:131
|
604 |
-
msgctxt "[gutenberg]: Category Name"
|
605 |
-
msgid "YITH"
|
606 |
-
msgstr "YITH"
|
607 |
-
|
608 |
#: includes/privacy/class-yith-privacy.php:61
|
609 |
msgctxt "Privacy Policy Guide Title"
|
610 |
msgid "YITH Plugins"
|
@@ -647,6 +652,16 @@ msgctxt "Privacy Policy Content"
|
|
647 |
msgid "Payments"
|
648 |
msgstr "Pagos"
|
649 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
650 |
#: templates/fields/dimensions.php:13
|
651 |
msgctxt "Position in the \"Dimensions\" field"
|
652 |
msgid "Top"
|
@@ -682,27 +697,27 @@ msgctxt "YES/NO button: use MAX 4 characters!"
|
|
682 |
msgid "NO"
|
683 |
msgstr "NO"
|
684 |
|
685 |
-
#: yit-plugin.php:
|
686 |
msgctxt "Plugin Row Meta"
|
687 |
msgid "Live Demo"
|
688 |
msgstr "Demostración en vivo"
|
689 |
|
690 |
-
#: yit-plugin.php:
|
691 |
msgctxt "Plugin Row Meta"
|
692 |
msgid "Documentation"
|
693 |
msgstr "Documentación"
|
694 |
|
695 |
-
#: yit-plugin.php:
|
696 |
msgctxt "Plugin Row Meta"
|
697 |
msgid "Support"
|
698 |
msgstr "Soporte"
|
699 |
|
700 |
-
#: yit-plugin.php:
|
701 |
msgctxt "Plugin Row Meta"
|
702 |
msgid "Premium version"
|
703 |
msgstr "Versión premium"
|
704 |
|
705 |
-
#: yit-plugin.php:
|
706 |
msgctxt "Action links"
|
707 |
msgid "Settings"
|
708 |
msgstr "Ajustes"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2021-03-09 13:34:06+00:00\n"
|
8 |
+
"PO-Revision-Date: 2021-02-15 20:26:24+0000\n"
|
9 |
"Language: es\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
14 |
"X-Generator: GlotPress/3.0.0-alpha.2\n"
|
15 |
|
16 |
+
#: includes/class-yit-assets.php:129
|
17 |
msgid "Clear"
|
18 |
msgstr "Borrar"
|
19 |
|
20 |
+
#: includes/class-yit-assets.php:130
|
21 |
msgid "Clear color"
|
22 |
msgstr "Borrar color"
|
23 |
|
24 |
+
#: includes/class-yit-assets.php:131
|
25 |
msgid "Default"
|
26 |
msgstr "Predeterminado"
|
27 |
|
28 |
+
#: includes/class-yit-assets.php:132
|
29 |
msgid "Select default color"
|
30 |
msgstr "Seleccionar color predeterminado"
|
31 |
|
32 |
+
#: includes/class-yit-assets.php:133
|
33 |
msgid "Select Color"
|
34 |
msgstr "Seleccionar color"
|
35 |
|
36 |
+
#: includes/class-yit-assets.php:134
|
37 |
msgid "Color value"
|
38 |
msgstr "Valor del color"
|
39 |
|
133 |
msgstr "para que podamos seguir actualizando y mejorando el plugin. Por favor,"
|
134 |
|
135 |
#: includes/class-yit-plugin-panel.php:1346
|
136 |
+
#, fuzzy
|
137 |
+
msgid "help us by leaving a good review"
|
138 |
msgstr "ayúdanos con una valoración de cinco estrellas"
|
139 |
|
140 |
#: includes/class-yit-plugin-panel.php:1347
|
146 |
msgstr "Plugins activados"
|
147 |
|
148 |
#: includes/class-yit-pointers.php:81
|
|
|
149 |
msgid ""
|
150 |
"From now on, you can find all plugin options in YITH menu. Plugin "
|
151 |
"customization settings will be available as a new entry in YITH menu."
|
164 |
msgstr "Plugins mejorados"
|
165 |
|
166 |
#: includes/class-yit-pointers.php:97
|
|
|
167 |
msgid ""
|
168 |
"From now on, you can find the option panel of YITH plugins in YITH menu. "
|
169 |
"Every time one of our plugins is added, a new entry will be added to this "
|
576 |
msgid "Plugins Requirements"
|
577 |
msgstr "Requerimientos de los plugins"
|
578 |
|
579 |
+
#: yit-plugin.php:190
|
580 |
msgid "License"
|
581 |
msgstr "Licencia"
|
582 |
|
584 |
msgid "YITH"
|
585 |
msgstr "YITH"
|
586 |
|
587 |
+
#. translators: %s it the Elementor Widget title.
|
588 |
+
#: includes/builders/elementor/class-yith-elementor-widget.php:252
|
589 |
+
msgctxt "Elementor Widget - section title"
|
590 |
+
msgid "%s - Options"
|
591 |
+
msgstr ""
|
592 |
+
|
593 |
+
#: includes/builders/gutenberg/class-yith-gutenberg.php:147
|
594 |
+
msgctxt "[gutenberg]: Category Name"
|
595 |
+
msgid "YITH"
|
596 |
+
msgstr "YITH"
|
597 |
+
|
598 |
#: includes/class-yith-dashboard.php:96
|
599 |
msgctxt "Plugin FW"
|
600 |
msgid "View Changelog"
|
610 |
msgid "Close"
|
611 |
msgstr "Cerrar"
|
612 |
|
|
|
|
|
|
|
|
|
|
|
613 |
#: includes/privacy/class-yith-privacy.php:61
|
614 |
msgctxt "Privacy Policy Guide Title"
|
615 |
msgid "YITH Plugins"
|
652 |
msgid "Payments"
|
653 |
msgstr "Pagos"
|
654 |
|
655 |
+
#: templates/fields/copy-to-clipboard.php:41
|
656 |
+
msgctxt "Copy-to-clipboard message"
|
657 |
+
msgid "Copied!"
|
658 |
+
msgstr ""
|
659 |
+
|
660 |
+
#: templates/fields/copy-to-clipboard.php:45
|
661 |
+
msgctxt "Copy-to-clipboard button text"
|
662 |
+
msgid "Copy"
|
663 |
+
msgstr ""
|
664 |
+
|
665 |
#: templates/fields/dimensions.php:13
|
666 |
msgctxt "Position in the \"Dimensions\" field"
|
667 |
msgid "Top"
|
697 |
msgid "NO"
|
698 |
msgstr "NO"
|
699 |
|
700 |
+
#: yit-plugin.php:78
|
701 |
msgctxt "Plugin Row Meta"
|
702 |
msgid "Live Demo"
|
703 |
msgstr "Demostración en vivo"
|
704 |
|
705 |
+
#: yit-plugin.php:82
|
706 |
msgctxt "Plugin Row Meta"
|
707 |
msgid "Documentation"
|
708 |
msgstr "Documentación"
|
709 |
|
710 |
+
#: yit-plugin.php:86
|
711 |
msgctxt "Plugin Row Meta"
|
712 |
msgid "Support"
|
713 |
msgstr "Soporte"
|
714 |
|
715 |
+
#: yit-plugin.php:90
|
716 |
msgctxt "Plugin Row Meta"
|
717 |
msgid "Premium version"
|
718 |
msgstr "Versión premium"
|
719 |
|
720 |
+
#: yit-plugin.php:186
|
721 |
msgctxt "Action links"
|
722 |
msgid "Settings"
|
723 |
msgstr "Ajustes"
|
plugin-fw/languages/yith-plugin-fw-it_IT.mo
CHANGED
Binary file
|
plugin-fw/languages/yith-plugin-fw-it_IT.po
CHANGED
@@ -4,8 +4,8 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2021-
|
8 |
-
"PO-Revision-Date: 2021-
|
9 |
"Language: it\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -13,27 +13,27 @@ msgstr ""
|
|
13 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
14 |
"X-Generator: GlotPress/3.0.0-alpha.2\n"
|
15 |
|
16 |
-
#: includes/class-yit-assets.php:
|
17 |
msgid "Clear"
|
18 |
msgstr "Rimuovi"
|
19 |
|
20 |
-
#: includes/class-yit-assets.php:
|
21 |
msgid "Clear color"
|
22 |
msgstr "Rimuovi colore"
|
23 |
|
24 |
-
#: includes/class-yit-assets.php:
|
25 |
msgid "Default"
|
26 |
msgstr "Predefinito"
|
27 |
|
28 |
-
#: includes/class-yit-assets.php:
|
29 |
msgid "Select default color"
|
30 |
msgstr "Seleziona il colore predefinito"
|
31 |
|
32 |
-
#: includes/class-yit-assets.php:
|
33 |
msgid "Select Color"
|
34 |
msgstr "Seleziona il colore"
|
35 |
|
36 |
-
#: includes/class-yit-assets.php:
|
37 |
msgid "Color value"
|
38 |
msgstr "Valore del colore"
|
39 |
|
@@ -131,7 +131,8 @@ msgid "to keep updating and improving the plugin. Please,"
|
|
131 |
msgstr "per poter continuare ad aggiornare e migliorare il plugin."
|
132 |
|
133 |
#: includes/class-yit-plugin-panel.php:1346
|
134 |
-
|
|
|
135 |
msgstr "Puoi darci una mano lasciando una recensione a 5 stelle"
|
136 |
|
137 |
#: includes/class-yit-plugin-panel.php:1347
|
@@ -147,6 +148,9 @@ msgid ""
|
|
147 |
"From now on, you can find all plugin options in YITH menu. Plugin "
|
148 |
"customization settings will be available as a new entry in YITH menu."
|
149 |
msgstr ""
|
|
|
|
|
|
|
150 |
|
151 |
#. translators: 1. YITH site link; 2. WordPress site link.
|
152 |
#: includes/class-yit-pointers.php:84 includes/class-yit-pointers.php:100
|
@@ -165,6 +169,11 @@ msgid ""
|
|
165 |
"WooCommerce Wishlist, YITH WooCommerce Ajax Search, etc.) will be moved from "
|
166 |
"previous location to YITH menu."
|
167 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
168 |
|
169 |
#: includes/class-yith-dashboard.php:35
|
170 |
msgid "YITH Latest Updates"
|
@@ -567,7 +576,7 @@ msgstr "External object cache"
|
|
567 |
msgid "Plugins Requirements"
|
568 |
msgstr "Requisiti plugin"
|
569 |
|
570 |
-
#: yit-plugin.php:
|
571 |
msgid "License"
|
572 |
msgstr "Chiave di licenza"
|
573 |
|
@@ -575,6 +584,17 @@ msgstr "Chiave di licenza"
|
|
575 |
msgid "YITH"
|
576 |
msgstr "YITH"
|
577 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
578 |
#: includes/class-yith-dashboard.php:96
|
579 |
msgctxt "Plugin FW"
|
580 |
msgid "View Changelog"
|
@@ -590,11 +610,6 @@ msgctxt "Button label"
|
|
590 |
msgid "Close"
|
591 |
msgstr "Chiudi"
|
592 |
|
593 |
-
#: includes/class-yith-gutenberg.php:131
|
594 |
-
msgctxt "[gutenberg]: Category Name"
|
595 |
-
msgid "YITH"
|
596 |
-
msgstr "YITH"
|
597 |
-
|
598 |
#: includes/privacy/class-yith-privacy.php:61
|
599 |
msgctxt "Privacy Policy Guide Title"
|
600 |
msgid "YITH Plugins"
|
@@ -638,6 +653,16 @@ msgctxt "Privacy Policy Content"
|
|
638 |
msgid "Payments"
|
639 |
msgstr "Pagamenti"
|
640 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
641 |
#: templates/fields/dimensions.php:13
|
642 |
msgctxt "Position in the \"Dimensions\" field"
|
643 |
msgid "Top"
|
@@ -673,27 +698,27 @@ msgctxt "YES/NO button: use MAX 4 characters!"
|
|
673 |
msgid "NO"
|
674 |
msgstr "NO"
|
675 |
|
676 |
-
#: yit-plugin.php:
|
677 |
msgctxt "Plugin Row Meta"
|
678 |
msgid "Live Demo"
|
679 |
msgstr "Live Demo"
|
680 |
|
681 |
-
#: yit-plugin.php:
|
682 |
msgctxt "Plugin Row Meta"
|
683 |
msgid "Documentation"
|
684 |
msgstr "Documentazione"
|
685 |
|
686 |
-
#: yit-plugin.php:
|
687 |
msgctxt "Plugin Row Meta"
|
688 |
msgid "Support"
|
689 |
msgstr "Assistenza"
|
690 |
|
691 |
-
#: yit-plugin.php:
|
692 |
msgctxt "Plugin Row Meta"
|
693 |
msgid "Premium version"
|
694 |
msgstr "Versione premium"
|
695 |
|
696 |
-
#: yit-plugin.php:
|
697 |
msgctxt "Action links"
|
698 |
msgid "Settings"
|
699 |
msgstr "Impostazioni"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2021-03-09 13:34:06+00:00\n"
|
8 |
+
"PO-Revision-Date: 2021-03-01 21:20:50+0000\n"
|
9 |
"Language: it\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
14 |
"X-Generator: GlotPress/3.0.0-alpha.2\n"
|
15 |
|
16 |
+
#: includes/class-yit-assets.php:129
|
17 |
msgid "Clear"
|
18 |
msgstr "Rimuovi"
|
19 |
|
20 |
+
#: includes/class-yit-assets.php:130
|
21 |
msgid "Clear color"
|
22 |
msgstr "Rimuovi colore"
|
23 |
|
24 |
+
#: includes/class-yit-assets.php:131
|
25 |
msgid "Default"
|
26 |
msgstr "Predefinito"
|
27 |
|
28 |
+
#: includes/class-yit-assets.php:132
|
29 |
msgid "Select default color"
|
30 |
msgstr "Seleziona il colore predefinito"
|
31 |
|
32 |
+
#: includes/class-yit-assets.php:133
|
33 |
msgid "Select Color"
|
34 |
msgstr "Seleziona il colore"
|
35 |
|
36 |
+
#: includes/class-yit-assets.php:134
|
37 |
msgid "Color value"
|
38 |
msgstr "Valore del colore"
|
39 |
|
131 |
msgstr "per poter continuare ad aggiornare e migliorare il plugin."
|
132 |
|
133 |
#: includes/class-yit-plugin-panel.php:1346
|
134 |
+
#, fuzzy
|
135 |
+
msgid "help us by leaving a good review"
|
136 |
msgstr "Puoi darci una mano lasciando una recensione a 5 stelle"
|
137 |
|
138 |
#: includes/class-yit-plugin-panel.php:1347
|
148 |
"From now on, you can find all plugin options in YITH menu. Plugin "
|
149 |
"customization settings will be available as a new entry in YITH menu."
|
150 |
msgstr ""
|
151 |
+
"D'ora in poi puoi trovare tutte le opzioni dei plugin nel menù YITH. Le "
|
152 |
+
"impostazioni di personalizzazione saranno disponibili come una nuova voce in "
|
153 |
+
"YITH."
|
154 |
|
155 |
#. translators: 1. YITH site link; 2. WordPress site link.
|
156 |
#: includes/class-yit-pointers.php:84 includes/class-yit-pointers.php:100
|
169 |
"WooCommerce Wishlist, YITH WooCommerce Ajax Search, etc.) will be moved from "
|
170 |
"previous location to YITH menu."
|
171 |
msgstr ""
|
172 |
+
"D'ora in poi puoi trovare il pannello opzioni dei plugin YITH nel menù YITH. "
|
173 |
+
"Ogni volta che viene aggiunto uno dei nostri plugin comparirà una nuova voce "
|
174 |
+
"in questo menù. Ad esempio, dopo l'aggiornamento, le opzioni del plugin "
|
175 |
+
"(come per YITH WooCommerce Wishlist, YITH WooCommerce Ajax Search, etc.) "
|
176 |
+
"saranno spostate dalla posizione precedente al menù YITH."
|
177 |
|
178 |
#: includes/class-yith-dashboard.php:35
|
179 |
msgid "YITH Latest Updates"
|
576 |
msgid "Plugins Requirements"
|
577 |
msgstr "Requisiti plugin"
|
578 |
|
579 |
+
#: yit-plugin.php:190
|
580 |
msgid "License"
|
581 |
msgstr "Chiave di licenza"
|
582 |
|
584 |
msgid "YITH"
|
585 |
msgstr "YITH"
|
586 |
|
587 |
+
#. translators: %s it the Elementor Widget title.
|
588 |
+
#: includes/builders/elementor/class-yith-elementor-widget.php:252
|
589 |
+
msgctxt "Elementor Widget - section title"
|
590 |
+
msgid "%s - Options"
|
591 |
+
msgstr "%s - Opzioni"
|
592 |
+
|
593 |
+
#: includes/builders/gutenberg/class-yith-gutenberg.php:147
|
594 |
+
msgctxt "[gutenberg]: Category Name"
|
595 |
+
msgid "YITH"
|
596 |
+
msgstr "YITH"
|
597 |
+
|
598 |
#: includes/class-yith-dashboard.php:96
|
599 |
msgctxt "Plugin FW"
|
600 |
msgid "View Changelog"
|
610 |
msgid "Close"
|
611 |
msgstr "Chiudi"
|
612 |
|
|
|
|
|
|
|
|
|
|
|
613 |
#: includes/privacy/class-yith-privacy.php:61
|
614 |
msgctxt "Privacy Policy Guide Title"
|
615 |
msgid "YITH Plugins"
|
653 |
msgid "Payments"
|
654 |
msgstr "Pagamenti"
|
655 |
|
656 |
+
#: templates/fields/copy-to-clipboard.php:41
|
657 |
+
msgctxt "Copy-to-clipboard message"
|
658 |
+
msgid "Copied!"
|
659 |
+
msgstr ""
|
660 |
+
|
661 |
+
#: templates/fields/copy-to-clipboard.php:45
|
662 |
+
msgctxt "Copy-to-clipboard button text"
|
663 |
+
msgid "Copy"
|
664 |
+
msgstr ""
|
665 |
+
|
666 |
#: templates/fields/dimensions.php:13
|
667 |
msgctxt "Position in the \"Dimensions\" field"
|
668 |
msgid "Top"
|
698 |
msgid "NO"
|
699 |
msgstr "NO"
|
700 |
|
701 |
+
#: yit-plugin.php:78
|
702 |
msgctxt "Plugin Row Meta"
|
703 |
msgid "Live Demo"
|
704 |
msgstr "Live Demo"
|
705 |
|
706 |
+
#: yit-plugin.php:82
|
707 |
msgctxt "Plugin Row Meta"
|
708 |
msgid "Documentation"
|
709 |
msgstr "Documentazione"
|
710 |
|
711 |
+
#: yit-plugin.php:86
|
712 |
msgctxt "Plugin Row Meta"
|
713 |
msgid "Support"
|
714 |
msgstr "Assistenza"
|
715 |
|
716 |
+
#: yit-plugin.php:90
|
717 |
msgctxt "Plugin Row Meta"
|
718 |
msgid "Premium version"
|
719 |
msgstr "Versione premium"
|
720 |
|
721 |
+
#: yit-plugin.php:186
|
722 |
msgctxt "Action links"
|
723 |
msgid "Settings"
|
724 |
msgstr "Impostazioni"
|
plugin-fw/languages/yith-plugin-fw-nl_NL.mo
CHANGED
Binary file
|
plugin-fw/languages/yith-plugin-fw-nl_NL.po
CHANGED
@@ -4,8 +4,8 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2021-
|
8 |
-
"PO-Revision-Date: 2021-02
|
9 |
"Language: nl\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -13,27 +13,27 @@ msgstr ""
|
|
13 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
14 |
"X-Generator: GlotPress/3.0.0-alpha.2\n"
|
15 |
|
16 |
-
#: includes/class-yit-assets.php:
|
17 |
msgid "Clear"
|
18 |
msgstr "Wissen"
|
19 |
|
20 |
-
#: includes/class-yit-assets.php:
|
21 |
msgid "Clear color"
|
22 |
msgstr "Kleur wissen"
|
23 |
|
24 |
-
#: includes/class-yit-assets.php:
|
25 |
msgid "Default"
|
26 |
msgstr "Standaard"
|
27 |
|
28 |
-
#: includes/class-yit-assets.php:
|
29 |
msgid "Select default color"
|
30 |
msgstr "Standaardkleur selecteren"
|
31 |
|
32 |
-
#: includes/class-yit-assets.php:
|
33 |
msgid "Select Color"
|
34 |
msgstr "Kleur selecteren"
|
35 |
|
36 |
-
#: includes/class-yit-assets.php:
|
37 |
msgid "Color value"
|
38 |
msgstr "Kleurwaarde"
|
39 |
|
@@ -130,7 +130,8 @@ msgid "to keep updating and improving the plugin. Please,"
|
|
130 |
msgstr "om de plugin te blijven bijwerken en verbeteren. A.u.b.,"
|
131 |
|
132 |
#: includes/class-yit-plugin-panel.php:1346
|
133 |
-
|
|
|
134 |
msgstr "help ons door een 5-sterren waardering achter te laten"
|
135 |
|
136 |
#: includes/class-yit-plugin-panel.php:1347
|
@@ -142,14 +143,13 @@ msgid "Plugins Activated"
|
|
142 |
msgstr "Plugins geactiveerd"
|
143 |
|
144 |
#: includes/class-yit-pointers.php:81
|
145 |
-
#, fuzzy
|
146 |
msgid ""
|
147 |
"From now on, you can find all plugin options in YITH menu. Plugin "
|
148 |
"customization settings will be available as a new entry in YITH menu."
|
149 |
msgstr ""
|
150 |
"Vanaf nu kun je alle plugin opties vinden in het YITH Plugins menu. Plugin "
|
151 |
"aanpassingen instellingen zullen beschikbaar zijn als nieuwe toegang in het "
|
152 |
-
"YITH
|
153 |
|
154 |
#. translators: 1. YITH site link; 2. WordPress site link.
|
155 |
#: includes/class-yit-pointers.php:84 includes/class-yit-pointers.php:100
|
@@ -161,7 +161,6 @@ msgid "Plugins Upgraded"
|
|
161 |
msgstr "Plugins Upgraded"
|
162 |
|
163 |
#: includes/class-yit-pointers.php:97
|
164 |
-
#, fuzzy
|
165 |
msgid ""
|
166 |
"From now on, you can find the option panel of YITH plugins in YITH menu. "
|
167 |
"Every time one of our plugins is added, a new entry will be added to this "
|
@@ -169,11 +168,11 @@ msgid ""
|
|
169 |
"WooCommerce Wishlist, YITH WooCommerce Ajax Search, etc.) will be moved from "
|
170 |
"previous location to YITH menu."
|
171 |
msgstr ""
|
172 |
-
"Vanaf nu kun je het optiepaneel van YITH plugins vinden in het YITH
|
173 |
-
"
|
174 |
-
"
|
175 |
-
"voor YITH WooCommerce Wishlist, YITH WooCommerce Ajax Search, enz.) "
|
176 |
-
"verplaatst van de vorige locatie naar het
|
177 |
|
178 |
#: includes/class-yith-dashboard.php:35
|
179 |
msgid "YITH Latest Updates"
|
@@ -574,7 +573,7 @@ msgstr "Externe object cache"
|
|
574 |
msgid "Plugins Requirements"
|
575 |
msgstr "Plugin benodigdheden"
|
576 |
|
577 |
-
#: yit-plugin.php:
|
578 |
msgid "License"
|
579 |
msgstr "Licentie"
|
580 |
|
@@ -582,6 +581,17 @@ msgstr "Licentie"
|
|
582 |
msgid "YITH"
|
583 |
msgstr "YITH"
|
584 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
585 |
#: includes/class-yith-dashboard.php:96
|
586 |
msgctxt "Plugin FW"
|
587 |
msgid "View Changelog"
|
@@ -597,11 +607,6 @@ msgctxt "Button label"
|
|
597 |
msgid "Close"
|
598 |
msgstr "Sluiten"
|
599 |
|
600 |
-
#: includes/class-yith-gutenberg.php:131
|
601 |
-
msgctxt "[gutenberg]: Category Name"
|
602 |
-
msgid "YITH"
|
603 |
-
msgstr "YITH"
|
604 |
-
|
605 |
#: includes/privacy/class-yith-privacy.php:61
|
606 |
msgctxt "Privacy Policy Guide Title"
|
607 |
msgid "YITH Plugins"
|
@@ -644,6 +649,16 @@ msgctxt "Privacy Policy Content"
|
|
644 |
msgid "Payments"
|
645 |
msgstr "Betalingen"
|
646 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
647 |
#: templates/fields/dimensions.php:13
|
648 |
msgctxt "Position in the \"Dimensions\" field"
|
649 |
msgid "Top"
|
@@ -679,27 +694,27 @@ msgctxt "YES/NO button: use MAX 4 characters!"
|
|
679 |
msgid "NO"
|
680 |
msgstr "NEE"
|
681 |
|
682 |
-
#: yit-plugin.php:
|
683 |
msgctxt "Plugin Row Meta"
|
684 |
msgid "Live Demo"
|
685 |
msgstr "Live Demo"
|
686 |
|
687 |
-
#: yit-plugin.php:
|
688 |
msgctxt "Plugin Row Meta"
|
689 |
msgid "Documentation"
|
690 |
msgstr "Documentatie"
|
691 |
|
692 |
-
#: yit-plugin.php:
|
693 |
msgctxt "Plugin Row Meta"
|
694 |
msgid "Support"
|
695 |
msgstr "Ondersteuning"
|
696 |
|
697 |
-
#: yit-plugin.php:
|
698 |
msgctxt "Plugin Row Meta"
|
699 |
msgid "Premium version"
|
700 |
msgstr "Premium versie"
|
701 |
|
702 |
-
#: yit-plugin.php:
|
703 |
msgctxt "Action links"
|
704 |
msgid "Settings"
|
705 |
msgstr "Instellingen"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2021-03-09 13:34:06+00:00\n"
|
8 |
+
"PO-Revision-Date: 2021-03-02 10:41:26+0000\n"
|
9 |
"Language: nl\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
14 |
"X-Generator: GlotPress/3.0.0-alpha.2\n"
|
15 |
|
16 |
+
#: includes/class-yit-assets.php:129
|
17 |
msgid "Clear"
|
18 |
msgstr "Wissen"
|
19 |
|
20 |
+
#: includes/class-yit-assets.php:130
|
21 |
msgid "Clear color"
|
22 |
msgstr "Kleur wissen"
|
23 |
|
24 |
+
#: includes/class-yit-assets.php:131
|
25 |
msgid "Default"
|
26 |
msgstr "Standaard"
|
27 |
|
28 |
+
#: includes/class-yit-assets.php:132
|
29 |
msgid "Select default color"
|
30 |
msgstr "Standaardkleur selecteren"
|
31 |
|
32 |
+
#: includes/class-yit-assets.php:133
|
33 |
msgid "Select Color"
|
34 |
msgstr "Kleur selecteren"
|
35 |
|
36 |
+
#: includes/class-yit-assets.php:134
|
37 |
msgid "Color value"
|
38 |
msgstr "Kleurwaarde"
|
39 |
|
130 |
msgstr "om de plugin te blijven bijwerken en verbeteren. A.u.b.,"
|
131 |
|
132 |
#: includes/class-yit-plugin-panel.php:1346
|
133 |
+
#, fuzzy
|
134 |
+
msgid "help us by leaving a good review"
|
135 |
msgstr "help ons door een 5-sterren waardering achter te laten"
|
136 |
|
137 |
#: includes/class-yit-plugin-panel.php:1347
|
143 |
msgstr "Plugins geactiveerd"
|
144 |
|
145 |
#: includes/class-yit-pointers.php:81
|
|
|
146 |
msgid ""
|
147 |
"From now on, you can find all plugin options in YITH menu. Plugin "
|
148 |
"customization settings will be available as a new entry in YITH menu."
|
149 |
msgstr ""
|
150 |
"Vanaf nu kun je alle plugin opties vinden in het YITH Plugins menu. Plugin "
|
151 |
"aanpassingen instellingen zullen beschikbaar zijn als nieuwe toegang in het "
|
152 |
+
"YITH menu."
|
153 |
|
154 |
#. translators: 1. YITH site link; 2. WordPress site link.
|
155 |
#: includes/class-yit-pointers.php:84 includes/class-yit-pointers.php:100
|
161 |
msgstr "Plugins Upgraded"
|
162 |
|
163 |
#: includes/class-yit-pointers.php:97
|
|
|
164 |
msgid ""
|
165 |
"From now on, you can find the option panel of YITH plugins in YITH menu. "
|
166 |
"Every time one of our plugins is added, a new entry will be added to this "
|
168 |
"WooCommerce Wishlist, YITH WooCommerce Ajax Search, etc.) will be moved from "
|
169 |
"previous location to YITH menu."
|
170 |
msgstr ""
|
171 |
+
"Vanaf nu kun je het optiepaneel van YITH plugins vinden in het YITH menu. "
|
172 |
+
"Elke keer dat een van onze plugins wordt toegevoegd, wordt er een nieuw item "
|
173 |
+
"aan dit menu toegevoegd. Bijvoorbeeld na de update worden plugin opties "
|
174 |
+
"(zoals voor YITH WooCommerce Wishlist, YITH WooCommerce Ajax Search, enz.) "
|
175 |
+
"verplaatst van de vorige locatie naar het YITH menu."
|
176 |
|
177 |
#: includes/class-yith-dashboard.php:35
|
178 |
msgid "YITH Latest Updates"
|
573 |
msgid "Plugins Requirements"
|
574 |
msgstr "Plugin benodigdheden"
|
575 |
|
576 |
+
#: yit-plugin.php:190
|
577 |
msgid "License"
|
578 |
msgstr "Licentie"
|
579 |
|
581 |
msgid "YITH"
|
582 |
msgstr "YITH"
|
583 |
|
584 |
+
#. translators: %s it the Elementor Widget title.
|
585 |
+
#: includes/builders/elementor/class-yith-elementor-widget.php:252
|
586 |
+
msgctxt "Elementor Widget - section title"
|
587 |
+
msgid "%s - Options"
|
588 |
+
msgstr "%s - Opties"
|
589 |
+
|
590 |
+
#: includes/builders/gutenberg/class-yith-gutenberg.php:147
|
591 |
+
msgctxt "[gutenberg]: Category Name"
|
592 |
+
msgid "YITH"
|
593 |
+
msgstr "YITH"
|
594 |
+
|
595 |
#: includes/class-yith-dashboard.php:96
|
596 |
msgctxt "Plugin FW"
|
597 |
msgid "View Changelog"
|
607 |
msgid "Close"
|
608 |
msgstr "Sluiten"
|
609 |
|
|
|
|
|
|
|
|
|
|
|
610 |
#: includes/privacy/class-yith-privacy.php:61
|
611 |
msgctxt "Privacy Policy Guide Title"
|
612 |
msgid "YITH Plugins"
|
649 |
msgid "Payments"
|
650 |
msgstr "Betalingen"
|
651 |
|
652 |
+
#: templates/fields/copy-to-clipboard.php:41
|
653 |
+
msgctxt "Copy-to-clipboard message"
|
654 |
+
msgid "Copied!"
|
655 |
+
msgstr ""
|
656 |
+
|
657 |
+
#: templates/fields/copy-to-clipboard.php:45
|
658 |
+
msgctxt "Copy-to-clipboard button text"
|
659 |
+
msgid "Copy"
|
660 |
+
msgstr ""
|
661 |
+
|
662 |
#: templates/fields/dimensions.php:13
|
663 |
msgctxt "Position in the \"Dimensions\" field"
|
664 |
msgid "Top"
|
694 |
msgid "NO"
|
695 |
msgstr "NEE"
|
696 |
|
697 |
+
#: yit-plugin.php:78
|
698 |
msgctxt "Plugin Row Meta"
|
699 |
msgid "Live Demo"
|
700 |
msgstr "Live Demo"
|
701 |
|
702 |
+
#: yit-plugin.php:82
|
703 |
msgctxt "Plugin Row Meta"
|
704 |
msgid "Documentation"
|
705 |
msgstr "Documentatie"
|
706 |
|
707 |
+
#: yit-plugin.php:86
|
708 |
msgctxt "Plugin Row Meta"
|
709 |
msgid "Support"
|
710 |
msgstr "Ondersteuning"
|
711 |
|
712 |
+
#: yit-plugin.php:90
|
713 |
msgctxt "Plugin Row Meta"
|
714 |
msgid "Premium version"
|
715 |
msgstr "Premium versie"
|
716 |
|
717 |
+
#: yit-plugin.php:186
|
718 |
msgctxt "Action links"
|
719 |
msgid "Settings"
|
720 |
msgstr "Instellingen"
|
plugin-fw/languages/yith-plugin-fw.pot
CHANGED
@@ -4,7 +4,7 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: \n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2021-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -24,27 +24,27 @@ msgstr ""
|
|
24 |
"X-Textdomain-Support: yes\n"
|
25 |
"X-Generator: grunt-wp-i18n 1.0.3\n"
|
26 |
|
27 |
-
#: includes/class-yit-assets.php:
|
28 |
msgid "Clear"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: includes/class-yit-assets.php:
|
32 |
msgid "Clear color"
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: includes/class-yit-assets.php:
|
36 |
msgid "Default"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: includes/class-yit-assets.php:
|
40 |
msgid "Select default color"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: includes/class-yit-assets.php:
|
44 |
msgid "Select Color"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: includes/class-yit-assets.php:
|
48 |
msgid "Color value"
|
49 |
msgstr ""
|
50 |
|
@@ -138,7 +138,7 @@ msgid "to keep updating and improving the plugin. Please,"
|
|
138 |
msgstr ""
|
139 |
|
140 |
#: includes/class-yit-plugin-panel.php:1346
|
141 |
-
msgid "help us by leaving a
|
142 |
msgstr ""
|
143 |
|
144 |
#: includes/class-yit-plugin-panel.php:1347
|
@@ -555,7 +555,7 @@ msgstr ""
|
|
555 |
msgid "Plugins Requirements"
|
556 |
msgstr ""
|
557 |
|
558 |
-
#: yit-plugin.php:
|
559 |
msgid "License"
|
560 |
msgstr ""
|
561 |
|
@@ -563,6 +563,17 @@ msgstr ""
|
|
563 |
msgid "YITH"
|
564 |
msgstr ""
|
565 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
566 |
#: includes/class-yith-dashboard.php:96
|
567 |
msgctxt "Plugin FW"
|
568 |
msgid "View Changelog"
|
@@ -578,11 +589,6 @@ msgctxt "Button label"
|
|
578 |
msgid "Close"
|
579 |
msgstr ""
|
580 |
|
581 |
-
#: includes/class-yith-gutenberg.php:131
|
582 |
-
msgctxt "[gutenberg]: Category Name"
|
583 |
-
msgid "YITH"
|
584 |
-
msgstr ""
|
585 |
-
|
586 |
#: includes/privacy/class-yith-privacy.php:61
|
587 |
msgctxt "Privacy Policy Guide Title"
|
588 |
msgid "YITH Plugins"
|
@@ -619,6 +625,16 @@ msgctxt "Privacy Policy Content"
|
|
619 |
msgid "Payments"
|
620 |
msgstr ""
|
621 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
622 |
#: templates/fields/dimensions.php:13
|
623 |
msgctxt "Position in the \"Dimensions\" field"
|
624 |
msgid "Top"
|
@@ -654,27 +670,27 @@ msgctxt "YES/NO button: use MAX 4 characters!"
|
|
654 |
msgid "NO"
|
655 |
msgstr ""
|
656 |
|
657 |
-
#: yit-plugin.php:
|
658 |
msgctxt "Plugin Row Meta"
|
659 |
msgid "Live Demo"
|
660 |
msgstr ""
|
661 |
|
662 |
-
#: yit-plugin.php:
|
663 |
msgctxt "Plugin Row Meta"
|
664 |
msgid "Documentation"
|
665 |
msgstr ""
|
666 |
|
667 |
-
#: yit-plugin.php:
|
668 |
msgctxt "Plugin Row Meta"
|
669 |
msgid "Support"
|
670 |
msgstr ""
|
671 |
|
672 |
-
#: yit-plugin.php:
|
673 |
msgctxt "Plugin Row Meta"
|
674 |
msgid "Premium version"
|
675 |
msgstr ""
|
676 |
|
677 |
-
#: yit-plugin.php:
|
678 |
msgctxt "Action links"
|
679 |
msgid "Settings"
|
680 |
msgstr ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: \n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2021-03-09 13:34:06+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
24 |
"X-Textdomain-Support: yes\n"
|
25 |
"X-Generator: grunt-wp-i18n 1.0.3\n"
|
26 |
|
27 |
+
#: includes/class-yit-assets.php:129
|
28 |
msgid "Clear"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: includes/class-yit-assets.php:130
|
32 |
msgid "Clear color"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: includes/class-yit-assets.php:131
|
36 |
msgid "Default"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: includes/class-yit-assets.php:132
|
40 |
msgid "Select default color"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: includes/class-yit-assets.php:133
|
44 |
msgid "Select Color"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: includes/class-yit-assets.php:134
|
48 |
msgid "Color value"
|
49 |
msgstr ""
|
50 |
|
138 |
msgstr ""
|
139 |
|
140 |
#: includes/class-yit-plugin-panel.php:1346
|
141 |
+
msgid "help us by leaving a good review"
|
142 |
msgstr ""
|
143 |
|
144 |
#: includes/class-yit-plugin-panel.php:1347
|
555 |
msgid "Plugins Requirements"
|
556 |
msgstr ""
|
557 |
|
558 |
+
#: yit-plugin.php:190
|
559 |
msgid "License"
|
560 |
msgstr ""
|
561 |
|
563 |
msgid "YITH"
|
564 |
msgstr ""
|
565 |
|
566 |
+
#: includes/builders/elementor/class-yith-elementor-widget.php:252
|
567 |
+
#. translators: %s it the Elementor Widget title.
|
568 |
+
msgctxt "Elementor Widget - section title"
|
569 |
+
msgid "%s - Options"
|
570 |
+
msgstr ""
|
571 |
+
|
572 |
+
#: includes/builders/gutenberg/class-yith-gutenberg.php:147
|
573 |
+
msgctxt "[gutenberg]: Category Name"
|
574 |
+
msgid "YITH"
|
575 |
+
msgstr ""
|
576 |
+
|
577 |
#: includes/class-yith-dashboard.php:96
|
578 |
msgctxt "Plugin FW"
|
579 |
msgid "View Changelog"
|
589 |
msgid "Close"
|
590 |
msgstr ""
|
591 |
|
|
|
|
|
|
|
|
|
|
|
592 |
#: includes/privacy/class-yith-privacy.php:61
|
593 |
msgctxt "Privacy Policy Guide Title"
|
594 |
msgid "YITH Plugins"
|
625 |
msgid "Payments"
|
626 |
msgstr ""
|
627 |
|
628 |
+
#: templates/fields/copy-to-clipboard.php:41
|
629 |
+
msgctxt "Copy-to-clipboard message"
|
630 |
+
msgid "Copied!"
|
631 |
+
msgstr ""
|
632 |
+
|
633 |
+
#: templates/fields/copy-to-clipboard.php:45
|
634 |
+
msgctxt "Copy-to-clipboard button text"
|
635 |
+
msgid "Copy"
|
636 |
+
msgstr ""
|
637 |
+
|
638 |
#: templates/fields/dimensions.php:13
|
639 |
msgctxt "Position in the \"Dimensions\" field"
|
640 |
msgid "Top"
|
670 |
msgid "NO"
|
671 |
msgstr ""
|
672 |
|
673 |
+
#: yit-plugin.php:78
|
674 |
msgctxt "Plugin Row Meta"
|
675 |
msgid "Live Demo"
|
676 |
msgstr ""
|
677 |
|
678 |
+
#: yit-plugin.php:82
|
679 |
msgctxt "Plugin Row Meta"
|
680 |
msgid "Documentation"
|
681 |
msgstr ""
|
682 |
|
683 |
+
#: yit-plugin.php:86
|
684 |
msgctxt "Plugin Row Meta"
|
685 |
msgid "Support"
|
686 |
msgstr ""
|
687 |
|
688 |
+
#: yit-plugin.php:90
|
689 |
msgctxt "Plugin Row Meta"
|
690 |
msgid "Premium version"
|
691 |
msgstr ""
|
692 |
|
693 |
+
#: yit-plugin.php:186
|
694 |
msgctxt "Action links"
|
695 |
msgid "Settings"
|
696 |
msgstr ""
|
plugin-fw/lib/yith-gutenberg.php
CHANGED
@@ -8,4 +8,4 @@
|
|
8 |
/**
|
9 |
* Require the correct file
|
10 |
*/
|
11 |
-
require_once __DIR__ . '/../includes/class-yith-gutenberg.php';
|
8 |
/**
|
9 |
* Require the correct file
|
10 |
*/
|
11 |
+
require_once __DIR__ . '/../includes/builders/gutenberg/class-yith-gutenberg.php';
|
plugin-fw/package.json
DELETED
@@ -1,39 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"name": "yith-plugin-framewowrk",
|
3 |
-
"version": "3.5.5",
|
4 |
-
"description": "YITH Plugin Framework",
|
5 |
-
"main": "Gruntfile.js",
|
6 |
-
"scripts": {
|
7 |
-
"build": "npm run js && npm run i18n",
|
8 |
-
"js": "grunt js",
|
9 |
-
"i18n": "npm run -s i18n:build && npm run -s i18n:translations",
|
10 |
-
"i18n:build": "grunt makepot",
|
11 |
-
"i18n:translations": "npm run -s i18n:download-translations && npm run -s i18n:update-po && npm run -s i18n:clean",
|
12 |
-
"i18n:download-translations": "node ./bin/download-translations.js",
|
13 |
-
"i18n:update-po": "grunt update_po",
|
14 |
-
"i18n:clean": "node ./bin/clean-language-files.js",
|
15 |
-
"phpcs": "grunt phpcs",
|
16 |
-
"env:start": "node ./tools/local-env/scripts/start.js",
|
17 |
-
"env:stop": "node ./tools/local-env/scripts/docker.js down",
|
18 |
-
"env:restart": "npm run env:stop && npm run env:start",
|
19 |
-
"env:clean": "node ./tools/local-env/scripts/docker.js down -v --remove-orphans",
|
20 |
-
"env:reset": "node ./tools/local-env/scripts/docker.js down --rmi all -v --remove-orphans",
|
21 |
-
"env:install": "node ./tools/local-env/scripts/install.js",
|
22 |
-
"env:cli": "node ./tools/local-env/scripts/docker.js run cli",
|
23 |
-
"test:php": "node ./tools/local-env/scripts/docker.js run --rm phpunit phpunit"
|
24 |
-
},
|
25 |
-
"author": "YITH",
|
26 |
-
"license": "GPL-3.0+",
|
27 |
-
"keywords": [],
|
28 |
-
"devDependencies": {
|
29 |
-
"axios": "^0.21.1",
|
30 |
-
"dotenv": "^8.2.0",
|
31 |
-
"grunt": "^1.0.3",
|
32 |
-
"grunt-cli": "^1.3.2",
|
33 |
-
"grunt-contrib-jshint": "^2.0.0",
|
34 |
-
"grunt-contrib-uglify-es": "github:gruntjs/grunt-contrib-uglify#harmony",
|
35 |
-
"grunt-phpcs": "^0.4.0",
|
36 |
-
"grunt-wp-i18n": "^1.0.2",
|
37 |
-
"wait-on": "^5.0.1"
|
38 |
-
}
|
39 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/phpcs.xml
CHANGED
@@ -8,6 +8,7 @@
|
|
8 |
<exclude-pattern>Gruntfile.js</exclude-pattern>
|
9 |
<exclude-pattern>/assets/*</exclude-pattern>
|
10 |
<exclude-pattern>/bin/*</exclude-pattern>
|
|
|
11 |
<exclude-pattern>/languages/*</exclude-pattern>
|
12 |
<exclude-pattern>*/node_modules/*</exclude-pattern>
|
13 |
<exclude-pattern>*/tests/*</exclude-pattern>
|
8 |
<exclude-pattern>Gruntfile.js</exclude-pattern>
|
9 |
<exclude-pattern>/assets/*</exclude-pattern>
|
10 |
<exclude-pattern>/bin/*</exclude-pattern>
|
11 |
+
<exclude-pattern>/dist/*</exclude-pattern>
|
12 |
<exclude-pattern>/languages/*</exclude-pattern>
|
13 |
<exclude-pattern>*/node_modules/*</exclude-pattern>
|
14 |
<exclude-pattern>*/tests/*</exclude-pattern>
|
plugin-fw/phpunit.xml.dist
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<phpunit
|
3 |
-
bootstrap="tests/bootstrap.php"
|
4 |
-
backupGlobals="false"
|
5 |
-
colors="true"
|
6 |
-
convertErrorsToExceptions="true"
|
7 |
-
convertNoticesToExceptions="true"
|
8 |
-
convertWarningsToExceptions="true"
|
9 |
-
>
|
10 |
-
<testsuites>
|
11 |
-
<testsuite>
|
12 |
-
<directory suffix=".php">./tests/unit-tests</directory>
|
13 |
-
</testsuite>
|
14 |
-
</testsuites>
|
15 |
-
</phpunit>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/fields/copy-to-clipboard.php
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* The Template for displaying the 'copy-to-clipboard'
|
4 |
+
*
|
5 |
+
* @var array $field The field.
|
6 |
+
*
|
7 |
+
* @package YITH\PluginFramework\Templates\Fields\Resources
|
8 |
+
* @since 3.6.2
|
9 |
+
*/
|
10 |
+
|
11 |
+
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
|
12 |
+
|
13 |
+
list ( $field_id, $class, $name, $value, $force_value, $readonly, $std, $custom_attributes, $data ) = yith_plugin_fw_extract( $field, 'id', 'class', 'name', 'value', 'force_value', 'readonly', 'std', 'custom_attributes', 'data' );
|
14 |
+
|
15 |
+
$readonly = isset( $readonly ) ? ! ! $readonly : true;
|
16 |
+
$wrapper_id = ! ! $field_id ? $field_id . '-wrapper' : '';
|
17 |
+
$wrapper_class = 'yith-plugin-fw-copy-to-clipboard';
|
18 |
+
if ( $readonly ) {
|
19 |
+
$wrapper_class .= ' yith-plugin-fw-copy-to-clipboard--readonly';
|
20 |
+
}
|
21 |
+
if ( isset( $force_value ) ) {
|
22 |
+
$value = $force_value;
|
23 |
+
}
|
24 |
+
?>
|
25 |
+
<div id="<?php echo esc_attr( $wrapper_id ); ?>" class="<?php echo esc_attr( $wrapper_class ); ?>">
|
26 |
+
|
27 |
+
<div class="yith-plugin-fw-copy-to-clipboard__field-wrap">
|
28 |
+
<input type="text"
|
29 |
+
id="<?php echo esc_attr( $field_id ); ?>"
|
30 |
+
name="<?php echo esc_attr( $name ); ?>"
|
31 |
+
class="yith-plugin-fw-copy-to-clipboard__field <?php echo esc_attr( $class ); ?>"
|
32 |
+
value="<?php echo esc_attr( $value ); ?>"
|
33 |
+
|
34 |
+
<?php if ( $readonly ) : ?>
|
35 |
+
readonly
|
36 |
+
<?php endif; ?>
|
37 |
+
|
38 |
+
<?php echo $custom_attributes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
39 |
+
<?php echo isset( $data ) ? yith_plugin_fw_html_data_to_string( $data ) : ''; ?>
|
40 |
+
>
|
41 |
+
<div class="yith-plugin-fw-copy-to-clipboard__tip"><?php echo esc_html_x( 'Copied!', 'Copy-to-clipboard message', 'yith-plugin-fw' ); ?></div>
|
42 |
+
</div>
|
43 |
+
<div class="yith-plugin-fw-copy-to-clipboard__copy">
|
44 |
+
<i class="yith-plugin-fw-copy-to-clipboard__copy__icon yith-icon yith-icon-copy"></i>
|
45 |
+
<span class="yith-plugin-fw-copy-to-clipboard__copy__text"><?php echo esc_html_x( 'Copy', 'Copy-to-clipboard button text', 'yith-plugin-fw' ); ?></span>
|
46 |
+
</div>
|
47 |
+
</div>
|
plugin-fw/templates/fields/inline-fields.php
CHANGED
@@ -12,7 +12,7 @@ list ( $field_id, $name, $class, $fields, $value ) = yith_plugin_fw_extract( $fi
|
|
12 |
|
13 |
$class = ! ! $class ? $class : '';
|
14 |
$value = maybe_unserialize( $value );
|
15 |
-
$allowed_types = array( 'select', 'select-buttons', 'number', 'text', 'slider', 'hidden', 'html' );
|
16 |
$default_args = array( 'type' => 'select' );
|
17 |
?>
|
18 |
<?php if ( ! empty( $fields ) && is_array( $fields ) ) : ?>
|
12 |
|
13 |
$class = ! ! $class ? $class : '';
|
14 |
$value = maybe_unserialize( $value );
|
15 |
+
$allowed_types = array( 'select', 'select-buttons', 'number', 'text', 'slider', 'hidden', 'html', 'datepicker' );
|
16 |
$default_args = array( 'type' => 'select' );
|
17 |
?>
|
18 |
<?php if ( ! empty( $fields ) && is_array( $fields ) ) : ?>
|
plugin-fw/tests/bootstrap.php
DELETED
@@ -1,167 +0,0 @@
|
|
1 |
-
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
|
2 |
-
/**
|
3 |
-
* PHPUnit bootstrap file.
|
4 |
-
*
|
5 |
-
* @package YITH Plugin Framework
|
6 |
-
*/
|
7 |
-
|
8 |
-
/**
|
9 |
-
* YITH_Plugin_FW_Unit_Tests_Bootstrap class
|
10 |
-
*/
|
11 |
-
class YITH_Plugin_FW_Unit_Tests_Bootstrap {
|
12 |
-
/**
|
13 |
-
* Instance of the class
|
14 |
-
*
|
15 |
-
* @var YITH_Plugin_FW_Unit_Tests_Bootstrap
|
16 |
-
*/
|
17 |
-
protected static $instance = null;
|
18 |
-
|
19 |
-
/**
|
20 |
-
* Directory where wordpress-tests-lib is installed.
|
21 |
-
*
|
22 |
-
* @var string
|
23 |
-
*/
|
24 |
-
public $wp_tests_dir;
|
25 |
-
|
26 |
-
/**
|
27 |
-
* Testing directory
|
28 |
-
*
|
29 |
-
* @var string
|
30 |
-
*/
|
31 |
-
public $tests_dir;
|
32 |
-
|
33 |
-
/**
|
34 |
-
* The plugin directory.
|
35 |
-
*
|
36 |
-
* @var string
|
37 |
-
*/
|
38 |
-
public $plugin_dir;
|
39 |
-
|
40 |
-
/**
|
41 |
-
* WooCommerce directory.
|
42 |
-
*
|
43 |
-
* @var string
|
44 |
-
*/
|
45 |
-
public $woocommerce_dir;
|
46 |
-
|
47 |
-
/**
|
48 |
-
* Singleton implementation
|
49 |
-
*
|
50 |
-
* @return YITH_Plugin_FW_Unit_Tests_Bootstrap
|
51 |
-
*/
|
52 |
-
public static function instance() {
|
53 |
-
return ! is_null( self::$instance ) ? self::$instance : self::$instance = new self();
|
54 |
-
}
|
55 |
-
|
56 |
-
/**
|
57 |
-
* Setup the unit testing environment.
|
58 |
-
*/
|
59 |
-
protected function __construct() {
|
60 |
-
|
61 |
-
ini_set( 'display_errors', 'on' );
|
62 |
-
error_reporting( E_ALL );
|
63 |
-
|
64 |
-
// Ensure server variable is set for WP email functions.
|
65 |
-
if ( ! isset( $_SERVER['SERVER_NAME'] ) ) {
|
66 |
-
$_SERVER['SERVER_NAME'] = 'localhost';
|
67 |
-
}
|
68 |
-
|
69 |
-
$this->tests_dir = dirname( __FILE__ );
|
70 |
-
$this->plugin_dir = dirname( $this->tests_dir, 2 );
|
71 |
-
$this->woocommerce_dir = dirname( $this->plugin_dir ) . '/woocommerce';
|
72 |
-
$this->wp_tests_dir = getenv( 'WP_TESTS_DIR' ) ? getenv( 'WP_TESTS_DIR' ) : ( rtrim( sys_get_temp_dir(), '/\\' ) . '/wordpress-tests-lib' );
|
73 |
-
|
74 |
-
define( 'YITH_PLUGIN_FRAMEWORK_TESTS_DIR', $this->tests_dir );
|
75 |
-
|
76 |
-
if ( ! file_exists( $this->wp_tests_dir . '/includes/functions.php' ) ) {
|
77 |
-
$this->message( "Could not find {$this->wp_tests_dir}/includes/functions.php, have you run [npm run env:install] ?" );
|
78 |
-
exit( 1 );
|
79 |
-
}
|
80 |
-
|
81 |
-
require_once $this->wp_tests_dir . '/includes/functions.php';
|
82 |
-
|
83 |
-
// load plugins.
|
84 |
-
tests_add_filter( 'muplugins_loaded', array( $this, 'load_plugins' ) );
|
85 |
-
tests_add_filter( 'setup_theme', array( $this, 'install_wc' ) );
|
86 |
-
tests_add_filter( 'setup_theme', array( $this, 'show_info' ), 20 );
|
87 |
-
|
88 |
-
// load the WP testing environment.
|
89 |
-
require_once $this->wp_tests_dir . '/includes/bootstrap.php';
|
90 |
-
|
91 |
-
// load testing framework.
|
92 |
-
$this->includes();
|
93 |
-
}
|
94 |
-
|
95 |
-
/**
|
96 |
-
* Load plugins
|
97 |
-
*
|
98 |
-
* @return void
|
99 |
-
*/
|
100 |
-
public function load_plugins() {
|
101 |
-
require_once $this->woocommerce_dir . '/woocommerce.php';
|
102 |
-
require_once $this->plugin_dir . '/yith-plugin-fw-loader.php';
|
103 |
-
}
|
104 |
-
|
105 |
-
/**
|
106 |
-
* Install WooCommerce
|
107 |
-
*
|
108 |
-
* @return void
|
109 |
-
*/
|
110 |
-
public function install_wc() {
|
111 |
-
// Clean existing install first.
|
112 |
-
define( 'WP_UNINSTALL_PLUGIN', true );
|
113 |
-
define( 'WC_REMOVE_ALL_DATA', true );
|
114 |
-
include $this->woocommerce_dir . '/uninstall.php';
|
115 |
-
|
116 |
-
WC_Install::install();
|
117 |
-
|
118 |
-
// Reload capabilities after install, see https://core.trac.wordpress.org/ticket/28374.
|
119 |
-
if ( version_compare( $GLOBALS['wp_version'], '4.7', '<' ) ) {
|
120 |
-
$GLOBALS['wp_roles']->reinit();
|
121 |
-
} else {
|
122 |
-
$GLOBALS['wp_roles'] = null;
|
123 |
-
wp_roles();
|
124 |
-
}
|
125 |
-
|
126 |
-
$this->message( 'Installing WooCommerce...' );
|
127 |
-
}
|
128 |
-
|
129 |
-
/**
|
130 |
-
* Include files
|
131 |
-
*
|
132 |
-
* @return void
|
133 |
-
*/
|
134 |
-
public function includes() {
|
135 |
-
$helpers_dir = YITH_PLUGIN_FRAMEWORK_TESTS_DIR . '/framework/helpers';
|
136 |
-
|
137 |
-
require_once $helpers_dir . '/class-yith-plugin-fw-panels-helper.php';
|
138 |
-
}
|
139 |
-
|
140 |
-
/**
|
141 |
-
* Print a message
|
142 |
-
*
|
143 |
-
* @param string $message The message to be shown.
|
144 |
-
* @return void
|
145 |
-
*/
|
146 |
-
public function message( $message ) {
|
147 |
-
echo $message . PHP_EOL; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
148 |
-
}
|
149 |
-
|
150 |
-
/**
|
151 |
-
* Show installation information
|
152 |
-
*
|
153 |
-
* @return void
|
154 |
-
*/
|
155 |
-
public function show_info() {
|
156 |
-
$this->message( '' );
|
157 |
-
$this->message( 'I N S T A L L A T I O N I N F O :' );
|
158 |
-
$this->message( '> WP Version: ' . get_bloginfo( 'version', 'display' ) );
|
159 |
-
$this->message( '> WC Version: ' . get_plugin_data( $this->woocommerce_dir . '/woocommerce.php' )['Version'] );
|
160 |
-
$this->message( '> Plugin Dir: ' . $this->plugin_dir );
|
161 |
-
$this->message( '> ABSPATH: ' . ( defined( 'ABSPATH' ) ? ABSPATH : 'not defined!' ) );
|
162 |
-
$this->message( '' );
|
163 |
-
}
|
164 |
-
|
165 |
-
}
|
166 |
-
|
167 |
-
YITH_Plugin_FW_Unit_Tests_Bootstrap::instance();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/tests/framework/fixtures/panel-all-options.php
DELETED
@@ -1,240 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Options for YITH Plugin Panel WooCommerce
|
4 |
-
*
|
5 |
-
* @package YITH Plugin Framework
|
6 |
-
*/
|
7 |
-
|
8 |
-
return array(
|
9 |
-
'ajax-customers' => array(
|
10 |
-
'type' => 'ajax-customers',
|
11 |
-
'value' => 1,
|
12 |
-
'php_unit_expected' => 1,
|
13 |
-
),
|
14 |
-
|
15 |
-
'ajax-customers-multiple' => array(
|
16 |
-
'type' => 'ajax-customers',
|
17 |
-
'multiple' => true,
|
18 |
-
'value' => array( 1, 2, 3 ),
|
19 |
-
'php_unit_expected' => array( 1, 2, 3 ),
|
20 |
-
),
|
21 |
-
|
22 |
-
'ajax-posts' => array(
|
23 |
-
'type' => 'ajax-posts',
|
24 |
-
'value' => 1,
|
25 |
-
'php_unit_expected' => 1,
|
26 |
-
),
|
27 |
-
|
28 |
-
'ajax-posts-multiple' => array(
|
29 |
-
'type' => 'ajax-posts',
|
30 |
-
'multiple' => true,
|
31 |
-
'value' => array( 1, 2, 3 ),
|
32 |
-
'php_unit_expected' => array( 1, 2, 3 ),
|
33 |
-
),
|
34 |
-
|
35 |
-
'ajax-products' => array(
|
36 |
-
'type' => 'ajax-products',
|
37 |
-
'value' => 1,
|
38 |
-
'php_unit_expected' => 1,
|
39 |
-
),
|
40 |
-
|
41 |
-
'ajax-products-multiple' => array(
|
42 |
-
'type' => 'ajax-products',
|
43 |
-
'multiple' => true,
|
44 |
-
'value' => array( 1, 2, 3 ),
|
45 |
-
'php_unit_expected' => array( 1, 2, 3 ),
|
46 |
-
),
|
47 |
-
|
48 |
-
'ajax-terms' => array(
|
49 |
-
'type' => 'ajax-terms',
|
50 |
-
'value' => 1,
|
51 |
-
'php_unit_expected' => 1,
|
52 |
-
),
|
53 |
-
|
54 |
-
'ajax-terms-multiple' => array(
|
55 |
-
'type' => 'ajax-terms',
|
56 |
-
'multiple' => true,
|
57 |
-
'value' => array( 1, 2, 3 ),
|
58 |
-
'php_unit_expected' => array( 1, 2, 3 ),
|
59 |
-
),
|
60 |
-
|
61 |
-
'checkbox' => array(
|
62 |
-
'type' => 'checkbox',
|
63 |
-
'value' => 1,
|
64 |
-
'php_unit_expected' => 'yes',
|
65 |
-
),
|
66 |
-
|
67 |
-
'checkbox-off' => array(
|
68 |
-
'type' => 'checkbox',
|
69 |
-
'value' => 0,
|
70 |
-
'php_unit_expected' => 'no',
|
71 |
-
),
|
72 |
-
|
73 |
-
'checkbox-array' => array(
|
74 |
-
'type' => 'checkbox-array',
|
75 |
-
'value' => array( 'one', 'two', 'three' ),
|
76 |
-
'php_unit_expected' => array( 'one', 'two', 'three' ),
|
77 |
-
),
|
78 |
-
|
79 |
-
'colorpicker' => array(
|
80 |
-
'type' => 'colorpicker',
|
81 |
-
'value' => '#123456',
|
82 |
-
'php_unit_expected' => '#123456',
|
83 |
-
),
|
84 |
-
|
85 |
-
'country-select' => array(
|
86 |
-
'type' => 'country-select',
|
87 |
-
'value' => 'US:NY',
|
88 |
-
'php_unit_expected' => 'US:NY',
|
89 |
-
),
|
90 |
-
|
91 |
-
'date-format' => array(
|
92 |
-
'type' => 'date-format',
|
93 |
-
'value' => 'Y-m-d',
|
94 |
-
'php_unit_expected' => 'Y-m-d',
|
95 |
-
),
|
96 |
-
|
97 |
-
'datepicker' => array(
|
98 |
-
'type' => 'datepicker',
|
99 |
-
'value' => '2020-12-25',
|
100 |
-
'php_unit_expected' => '2020-12-25',
|
101 |
-
),
|
102 |
-
|
103 |
-
'dimensions' => array(
|
104 |
-
'type' => 'dimensions',
|
105 |
-
'value' => array(
|
106 |
-
'unit' => 'px',
|
107 |
-
'dimensions' => array(
|
108 |
-
'top' => 10,
|
109 |
-
'right' => 20,
|
110 |
-
'bottom' => 10,
|
111 |
-
'left' => 20,
|
112 |
-
),
|
113 |
-
'linked' => 'yes',
|
114 |
-
),
|
115 |
-
'php_unit_expected' => array(
|
116 |
-
'unit' => 'px',
|
117 |
-
'dimensions' => array(
|
118 |
-
'top' => 10,
|
119 |
-
'right' => 20,
|
120 |
-
'bottom' => 10,
|
121 |
-
'left' => 20,
|
122 |
-
),
|
123 |
-
'linked' => 'yes',
|
124 |
-
),
|
125 |
-
),
|
126 |
-
|
127 |
-
'hidden' => array(
|
128 |
-
'type' => 'hidden',
|
129 |
-
'value' => 'This is a dummy test!',
|
130 |
-
'php_unit_expected' => 'This is a dummy test!',
|
131 |
-
),
|
132 |
-
|
133 |
-
'icons' => array(
|
134 |
-
'type' => 'icons',
|
135 |
-
'value' => 'FontAwesome:music',
|
136 |
-
'php_unit_expected' => 'FontAwesome:music',
|
137 |
-
),
|
138 |
-
|
139 |
-
'image-gallery' => array(
|
140 |
-
'type' => 'image-gallery',
|
141 |
-
'value' => '1,2,3',
|
142 |
-
'php_unit_expected' => '1,2,3',
|
143 |
-
),
|
144 |
-
|
145 |
-
'multi-colorpicker' => array(
|
146 |
-
'type' => 'multi-colorpicker',
|
147 |
-
'value' => array( '#ffffff', '#000000' ),
|
148 |
-
'php_unit_expected' => array( '#ffffff', '#000000' ),
|
149 |
-
),
|
150 |
-
|
151 |
-
'multi-select' => array(
|
152 |
-
'type' => 'multi-select',
|
153 |
-
'value' => array( 'one', 'two' ),
|
154 |
-
'php_unit_expected' => array( 'one', 'two' ),
|
155 |
-
),
|
156 |
-
|
157 |
-
'number' => array(
|
158 |
-
'type' => 'number',
|
159 |
-
'value' => 10,
|
160 |
-
'php_unit_expected' => 10,
|
161 |
-
),
|
162 |
-
|
163 |
-
'onoff' => array(
|
164 |
-
'type' => 'onoff',
|
165 |
-
'value' => 1,
|
166 |
-
'php_unit_expected' => 'yes',
|
167 |
-
),
|
168 |
-
|
169 |
-
'onoff-off' => array(
|
170 |
-
'type' => 'onoff',
|
171 |
-
'value' => 0,
|
172 |
-
'php_unit_expected' => 'no',
|
173 |
-
),
|
174 |
-
|
175 |
-
'password' => array(
|
176 |
-
'type' => 'password',
|
177 |
-
'value' => 'password',
|
178 |
-
'php_unit_expected' => 'password',
|
179 |
-
),
|
180 |
-
|
181 |
-
'radio' => array(
|
182 |
-
'type' => 'radio',
|
183 |
-
'value' => 'one',
|
184 |
-
'php_unit_expected' => 'one',
|
185 |
-
),
|
186 |
-
|
187 |
-
'select' => array(
|
188 |
-
'type' => 'select',
|
189 |
-
'value' => 'one',
|
190 |
-
'php_unit_expected' => 'one',
|
191 |
-
),
|
192 |
-
|
193 |
-
'select-images' => array(
|
194 |
-
'type' => 'select-images',
|
195 |
-
'value' => 'one',
|
196 |
-
'php_unit_expected' => 'one',
|
197 |
-
),
|
198 |
-
|
199 |
-
'slider' => array(
|
200 |
-
'type' => 'slider',
|
201 |
-
'value' => 50,
|
202 |
-
'php_unit_expected' => 50,
|
203 |
-
),
|
204 |
-
|
205 |
-
'text' => array(
|
206 |
-
'type' => 'text',
|
207 |
-
'value' => 'This is a dummy test!',
|
208 |
-
'php_unit_expected' => 'This is a dummy test!',
|
209 |
-
),
|
210 |
-
|
211 |
-
'text-array' => array(
|
212 |
-
'type' => 'text-array',
|
213 |
-
'value' => array('one', 'two', "Let's testing quotes and double quotes \""),
|
214 |
-
'php_unit_expected' => array('one', 'two', "Let's testing quotes and double quotes \""),
|
215 |
-
),
|
216 |
-
|
217 |
-
'textarea' => array(
|
218 |
-
'type' => 'textarea',
|
219 |
-
'value' => "Let's testing quotes, double quotes \" and <h1>HTML tags</h1>",
|
220 |
-
'php_unit_expected' => "Let's testing quotes, double quotes \" and <h1>HTML tags</h1>",
|
221 |
-
),
|
222 |
-
|
223 |
-
'textarea-codemirror' => array(
|
224 |
-
'type' => 'textarea-codemirror',
|
225 |
-
'value' => "Let's testing quotes, double quotes \" and <h1>HTML tags</h1>",
|
226 |
-
'php_unit_expected' => "Let's testing quotes, double quotes \" and <h1>HTML tags</h1>",
|
227 |
-
),
|
228 |
-
|
229 |
-
'textarea-editor' => array(
|
230 |
-
'type' => 'textarea-editor',
|
231 |
-
'value' => "Let's testing quotes, double quotes \" and <h1>HTML tags</h1>",
|
232 |
-
'php_unit_expected' => "Let's testing quotes, double quotes \" and <h1>HTML tags</h1>",
|
233 |
-
),
|
234 |
-
|
235 |
-
'upload' => array(
|
236 |
-
'type' => 'upload',
|
237 |
-
'value' => 'http://example.com/image.jpg',
|
238 |
-
'php_unit_expected' => 'http://example.com/image.jpg',
|
239 |
-
),
|
240 |
-
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/tests/framework/helpers/class-yith-plugin-fw-panels-helper.php
DELETED
@@ -1,83 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Plugin Panels Helper
|
4 |
-
*
|
5 |
-
* @package YITH Plugin Framework
|
6 |
-
*/
|
7 |
-
|
8 |
-
/**
|
9 |
-
* Plugin Panels Helper class.
|
10 |
-
*/
|
11 |
-
class YITH_Plugin_FW_Panels_Helper {
|
12 |
-
|
13 |
-
/**
|
14 |
-
* The WooCommerce Panel page.
|
15 |
-
*
|
16 |
-
* @var string
|
17 |
-
*/
|
18 |
-
public static $wc_panel_page = 'yith_plugin_fw_test_wc_panel';
|
19 |
-
|
20 |
-
/**
|
21 |
-
* Create WC Panel
|
22 |
-
*
|
23 |
-
* @return YIT_Plugin_Panel_WooCommerce
|
24 |
-
*/
|
25 |
-
public static function create_wc_panel() {
|
26 |
-
|
27 |
-
$admin_tabs = array(
|
28 |
-
'wc-panel' => 'WooCommerce Panel',
|
29 |
-
);
|
30 |
-
|
31 |
-
$args = array(
|
32 |
-
'create_menu_page' => true,
|
33 |
-
'parent_slug' => '',
|
34 |
-
'page_title' => 'WooCommerce Panel',
|
35 |
-
'menu_title' => 'WooCommerce Panel',
|
36 |
-
'capability' => 'manage_options',
|
37 |
-
'parent' => '',
|
38 |
-
'parent_page' => 'yit_plugin_panel',
|
39 |
-
'page' => self::$wc_panel_page,
|
40 |
-
'admin-tabs' => $admin_tabs,
|
41 |
-
'options-path' => YITH_PLUGIN_FRAMEWORK_TESTS_DIR . '/framework/plugin-options',
|
42 |
-
);
|
43 |
-
|
44 |
-
return new YIT_Plugin_Panel_WooCommerce( $args );
|
45 |
-
}
|
46 |
-
|
47 |
-
public static function init_vars_wc_panel_options_for_saving( $panel, $tab, $subtab = '' ) {
|
48 |
-
|
49 |
-
set_current_screen( 'yith-plugins_page_' . $panel->settings['page'] );
|
50 |
-
$_POST = array();
|
51 |
-
$_GET = array();
|
52 |
-
|
53 |
-
$_GET['page'] = $panel->settings['page'];
|
54 |
-
$_GET['tab'] = $tab;
|
55 |
-
$_GET['sub_tab'] = $subtab;
|
56 |
-
$_POST['yit_panel_wc_options_nonce'] = wp_create_nonce( 'yit_panel_wc_options_' . $panel->settings['page'] );
|
57 |
-
|
58 |
-
$prefix = $tab . '-';
|
59 |
-
|
60 |
-
$options = self::get_fixture( 'all-options' );
|
61 |
-
$new_options = array();
|
62 |
-
|
63 |
-
foreach ( $options as $key => $option ) {
|
64 |
-
$prefixed_key = $prefix . $key;
|
65 |
-
$value = $option['value'];
|
66 |
-
$_POST[ $prefixed_key ] = $value;
|
67 |
-
|
68 |
-
$new_options[ $prefixed_key ] = $option;
|
69 |
-
}
|
70 |
-
|
71 |
-
return $new_options;
|
72 |
-
}
|
73 |
-
|
74 |
-
/**
|
75 |
-
* Get a fixture
|
76 |
-
*
|
77 |
-
* @param string $fixture The fixture.
|
78 |
-
* @return array
|
79 |
-
*/
|
80 |
-
public static function get_fixture( $fixture ) {
|
81 |
-
return include YITH_PLUGIN_FRAMEWORK_TESTS_DIR . '/framework/fixtures/panel-' . $fixture . '.php';
|
82 |
-
}
|
83 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/tests/framework/plugin-options/wc-panel-options.php
DELETED
@@ -1,43 +0,0 @@
|
|
1 |
-
<?php // phpcs:disable WordPress.WP.GlobalVariablesOverride.Prohibited
|
2 |
-
/**
|
3 |
-
* Options for YITH Plugin Panel WooCommerce
|
4 |
-
*
|
5 |
-
* @package YITH Plugin Framework
|
6 |
-
*/
|
7 |
-
|
8 |
-
$prefix = str_replace( '-options.php', '', basename( __FILE__ ) ) . '-';
|
9 |
-
$options = YITH_Plugin_FW_Panels_Helper::get_fixture( 'all-options' );
|
10 |
-
$fields = array();
|
11 |
-
|
12 |
-
$fields[ $prefix . 'general-options' ] = array(
|
13 |
-
'title' => 'General',
|
14 |
-
'type' => 'title',
|
15 |
-
'id' => 'general-options',
|
16 |
-
);
|
17 |
-
|
18 |
-
foreach ( $options as $key => $values ) {
|
19 |
-
$type = $values['type'];
|
20 |
-
$prefixed_key = $prefix . $key;
|
21 |
-
|
22 |
-
$id_title = array(
|
23 |
-
'id' => $prefixed_key,
|
24 |
-
'title' => $prefixed_key,
|
25 |
-
);
|
26 |
-
|
27 |
-
$fields[ $prefixed_key ] = wp_parse_args( $values, $id_title );
|
28 |
-
$fields[ $prefixed_key ]['type'] = 'yith-field';
|
29 |
-
$fields[ $prefixed_key ]['yith-type'] = $type;
|
30 |
-
if ( isset( $fields[ $prefixed_key ]['value'] ) ) {
|
31 |
-
unset( $fields[ $prefixed_key ]['value'] );
|
32 |
-
}
|
33 |
-
}
|
34 |
-
|
35 |
-
|
36 |
-
$fields[ $prefix . 'general-options-end' ] = array(
|
37 |
-
'type' => 'sectionend',
|
38 |
-
'id' => 'general-options',
|
39 |
-
);
|
40 |
-
|
41 |
-
return array(
|
42 |
-
'wc-panel' => $fields,
|
43 |
-
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/tests/unit-tests/class-yith-plugin-fw-tests-plugin-panel-wc.php
DELETED
@@ -1,49 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Test class for Plugin Panel WooCommerce
|
4 |
-
*
|
5 |
-
* @package YITH Plugin Framework
|
6 |
-
*/
|
7 |
-
|
8 |
-
/**
|
9 |
-
* Class YITH_Plugin_FW_Tests_Plugin_Panel_WC
|
10 |
-
*/
|
11 |
-
class YITH_Plugin_FW_Tests_Plugin_Panel_WC extends WP_UnitTestCase {
|
12 |
-
|
13 |
-
/**
|
14 |
-
* The panel.
|
15 |
-
*
|
16 |
-
* @var YIT_Plugin_Panel_WooCommerce
|
17 |
-
*/
|
18 |
-
protected $panel;
|
19 |
-
|
20 |
-
/**
|
21 |
-
* Set Up
|
22 |
-
*
|
23 |
-
* @return void
|
24 |
-
*/
|
25 |
-
public function setUp() {
|
26 |
-
$this->panel = YITH_Plugin_FW_Panels_Helper::create_wc_panel();
|
27 |
-
|
28 |
-
// Include admin functions to use woocommerce_update_options().
|
29 |
-
include_once WC_ABSPATH . '/includes/admin/wc-admin-functions.php';
|
30 |
-
}
|
31 |
-
|
32 |
-
/**
|
33 |
-
* Test simple tab with options.
|
34 |
-
*/
|
35 |
-
public function test_simple_tab() {
|
36 |
-
$options = YITH_Plugin_FW_Panels_Helper::init_vars_wc_panel_options_for_saving( $this->panel, 'wc-panel' );
|
37 |
-
|
38 |
-
$this->panel->woocommerce_update_options();
|
39 |
-
|
40 |
-
foreach ( $options as $key => $option ) {
|
41 |
-
$value = get_option( $key );
|
42 |
-
$expected = $option['php_unit_expected'];
|
43 |
-
$message = sprintf( 'Test for %s [type: %s]', $key, $option['type'] );
|
44 |
-
|
45 |
-
$this->assertEquals( $expected, $value, $message );
|
46 |
-
}
|
47 |
-
|
48 |
-
}
|
49 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/tools/local-env/docker/phpunit/Dockerfile
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
FROM phpunit/phpunit:latest
|
2 |
-
|
3 |
-
RUN apk update && \
|
4 |
-
apk add --no-cache sqlite bash mariadb-client php7-mysqli subversion wget
|
5 |
-
|
6 |
-
RUN apk upgrade subversion
|
7 |
-
|
8 |
-
ENTRYPOINT []
|
9 |
-
|
10 |
-
WORKDIR /var/www/html/wp-content/plugins/yith-plugin-fw-loader/plugin-fw
|
11 |
-
|
12 |
-
CMD /bin/true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/tools/local-env/install-wp-tests.sh
DELETED
@@ -1,154 +0,0 @@
|
|
1 |
-
#!/usr/bin/env bash
|
2 |
-
|
3 |
-
if [ $# -lt 3 ]; then
|
4 |
-
echo "usage: $0 <db-name> <db-user> <db-pass> [db-host] [wp-version] [skip-database-creation]"
|
5 |
-
exit 1
|
6 |
-
fi
|
7 |
-
|
8 |
-
|
9 |
-
echo "INSTALLING...";
|
10 |
-
DB_NAME=$1
|
11 |
-
DB_USER=$2
|
12 |
-
DB_PASS=$3
|
13 |
-
DB_HOST=${4-localhost}
|
14 |
-
WP_VERSION=${5-latest}
|
15 |
-
SKIP_DB_CREATE=${6-false}
|
16 |
-
|
17 |
-
TMPDIR=${TMPDIR-/tmp}
|
18 |
-
TMPDIR=$(echo $TMPDIR | sed -e "s/\/$//")
|
19 |
-
WP_TESTS_DIR=${WP_TESTS_DIR-$TMPDIR/wordpress-tests-lib}
|
20 |
-
WP_CORE_DIR=${WP_CORE_DIR-$TMPDIR/wordpress/}
|
21 |
-
|
22 |
-
download() {
|
23 |
-
if [ `which curl` ]; then
|
24 |
-
curl -s "$1" > "$2";
|
25 |
-
elif [ `which wget` ]; then
|
26 |
-
wget -nv -O "$2" "$1"
|
27 |
-
fi
|
28 |
-
}
|
29 |
-
|
30 |
-
if [[ $WP_VERSION =~ ^[0-9]+\.[0-9]+$ ]]; then
|
31 |
-
WP_TESTS_TAG="branches/$WP_VERSION"
|
32 |
-
elif [[ $WP_VERSION =~ [0-9]+\.[0-9]+\.[0-9]+ ]]; then
|
33 |
-
if [[ $WP_VERSION =~ [0-9]+\.[0-9]+\.[0] ]]; then
|
34 |
-
# version x.x.0 means the first release of the major version, so strip off the .0 and download version x.x
|
35 |
-
WP_TESTS_TAG="tags/${WP_VERSION%??}"
|
36 |
-
else
|
37 |
-
WP_TESTS_TAG="tags/$WP_VERSION"
|
38 |
-
fi
|
39 |
-
elif [[ $WP_VERSION == 'nightly' || $WP_VERSION == 'trunk' ]]; then
|
40 |
-
WP_TESTS_TAG="trunk"
|
41 |
-
else
|
42 |
-
# http serves a single offer, whereas https serves multiple. we only want one
|
43 |
-
download http://api.wordpress.org/core/version-check/1.7/ /tmp/wp-latest.json
|
44 |
-
grep '[0-9]+\.[0-9]+(\.[0-9]+)?' /tmp/wp-latest.json
|
45 |
-
LATEST_VERSION=$(grep -o '"version":"[^"]*' /tmp/wp-latest.json | sed 's/"version":"//')
|
46 |
-
if [[ -z "$LATEST_VERSION" ]]; then
|
47 |
-
echo "Latest WordPress version could not be found"
|
48 |
-
exit 1
|
49 |
-
fi
|
50 |
-
WP_TESTS_TAG="tags/$LATEST_VERSION"
|
51 |
-
fi
|
52 |
-
|
53 |
-
set -ex
|
54 |
-
|
55 |
-
install_wp() {
|
56 |
-
|
57 |
-
if [ -d $WP_CORE_DIR ]; then
|
58 |
-
return;
|
59 |
-
fi
|
60 |
-
|
61 |
-
mkdir -p $WP_CORE_DIR
|
62 |
-
|
63 |
-
if [[ $WP_VERSION == 'nightly' || $WP_VERSION == 'trunk' ]]; then
|
64 |
-
mkdir -p $TMPDIR/wordpress-nightly
|
65 |
-
download https://wordpress.org/nightly-builds/wordpress-latest.zip $TMPDIR/wordpress-nightly/wordpress-nightly.zip
|
66 |
-
unzip -q $TMPDIR/wordpress-nightly/wordpress-nightly.zip -d $TMPDIR/wordpress-nightly/
|
67 |
-
mv $TMPDIR/wordpress-nightly/wordpress/* $WP_CORE_DIR
|
68 |
-
else
|
69 |
-
if [ $WP_VERSION == 'latest' ]; then
|
70 |
-
local ARCHIVE_NAME='latest'
|
71 |
-
elif [[ $WP_VERSION =~ [0-9]+\.[0-9]+ ]]; then
|
72 |
-
# https serves multiple offers, whereas http serves single.
|
73 |
-
download https://api.wordpress.org/core/version-check/1.7/ $TMPDIR/wp-latest.json
|
74 |
-
if [[ $WP_VERSION =~ [0-9]+\.[0-9]+\.[0] ]]; then
|
75 |
-
# version x.x.0 means the first release of the major version, so strip off the .0 and download version x.x
|
76 |
-
LATEST_VERSION=${WP_VERSION%??}
|
77 |
-
else
|
78 |
-
# otherwise, scan the releases and get the most up to date minor version of the major release
|
79 |
-
local VERSION_ESCAPED=`echo $WP_VERSION | sed 's/\./\\\\./g'`
|
80 |
-
LATEST_VERSION=$(grep -o '"version":"'$VERSION_ESCAPED'[^"]*' $TMPDIR/wp-latest.json | sed 's/"version":"//' | head -1)
|
81 |
-
fi
|
82 |
-
if [[ -z "$LATEST_VERSION" ]]; then
|
83 |
-
local ARCHIVE_NAME="wordpress-$WP_VERSION"
|
84 |
-
else
|
85 |
-
local ARCHIVE_NAME="wordpress-$LATEST_VERSION"
|
86 |
-
fi
|
87 |
-
else
|
88 |
-
local ARCHIVE_NAME="wordpress-$WP_VERSION"
|
89 |
-
fi
|
90 |
-
download https://wordpress.org/${ARCHIVE_NAME}.tar.gz $TMPDIR/wordpress.tar.gz
|
91 |
-
tar --strip-components=1 -zxmf $TMPDIR/wordpress.tar.gz -C $WP_CORE_DIR
|
92 |
-
fi
|
93 |
-
|
94 |
-
download https://raw.github.com/markoheijnen/wp-mysqli/master/db.php $WP_CORE_DIR/wp-content/db.php
|
95 |
-
}
|
96 |
-
|
97 |
-
install_test_suite() {
|
98 |
-
# portable in-place argument for both GNU sed and Mac OSX sed
|
99 |
-
if [[ $(uname -s) == 'Darwin' ]]; then
|
100 |
-
local ioption='-i .bak'
|
101 |
-
else
|
102 |
-
local ioption='-i'
|
103 |
-
fi
|
104 |
-
|
105 |
-
# set up testing suite if it doesn't yet exist
|
106 |
-
if [ ! -d $WP_TESTS_DIR ]; then
|
107 |
-
# set up testing suite
|
108 |
-
mkdir -p $WP_TESTS_DIR
|
109 |
-
svn co --quiet https://develop.svn.wordpress.org/${WP_TESTS_TAG}/tests/phpunit/includes/ $WP_TESTS_DIR/includes
|
110 |
-
svn co --quiet https://develop.svn.wordpress.org/${WP_TESTS_TAG}/tests/phpunit/data/ $WP_TESTS_DIR/data
|
111 |
-
fi
|
112 |
-
|
113 |
-
if [ ! -f wp-tests-config.php ]; then
|
114 |
-
download https://develop.svn.wordpress.org/${WP_TESTS_TAG}/wp-tests-config-sample.php "$WP_TESTS_DIR"/wp-tests-config.php
|
115 |
-
# remove all forward slashes in the end
|
116 |
-
WP_CORE_DIR=$(echo $WP_CORE_DIR | sed "s:/\+$::")
|
117 |
-
sed $ioption "s:dirname( __FILE__ ) . '/src/':'$WP_CORE_DIR/':" "$WP_TESTS_DIR"/wp-tests-config.php
|
118 |
-
sed $ioption "s/youremptytestdbnamehere/$DB_NAME/" "$WP_TESTS_DIR"/wp-tests-config.php
|
119 |
-
sed $ioption "s/yourusernamehere/$DB_USER/" "$WP_TESTS_DIR"/wp-tests-config.php
|
120 |
-
sed $ioption "s/yourpasswordhere/$DB_PASS/" "$WP_TESTS_DIR"/wp-tests-config.php
|
121 |
-
sed $ioption "s|localhost|${DB_HOST}|" "$WP_TESTS_DIR"/wp-tests-config.php
|
122 |
-
fi
|
123 |
-
|
124 |
-
}
|
125 |
-
|
126 |
-
install_db() {
|
127 |
-
|
128 |
-
if [ ${SKIP_DB_CREATE} = "true" ]; then
|
129 |
-
return 0
|
130 |
-
fi
|
131 |
-
|
132 |
-
# parse DB_HOST for port or socket references
|
133 |
-
local PARTS=(${DB_HOST//\:/ })
|
134 |
-
local DB_HOSTNAME=${PARTS[0]};
|
135 |
-
local DB_SOCK_OR_PORT=${PARTS[1]};
|
136 |
-
local EXTRA=""
|
137 |
-
|
138 |
-
if ! [ -z $DB_HOSTNAME ] ; then
|
139 |
-
if [ $(echo $DB_SOCK_OR_PORT | grep -e '^[0-9]\{1,\}$') ]; then
|
140 |
-
EXTRA=" --host=$DB_HOSTNAME --port=$DB_SOCK_OR_PORT --protocol=tcp"
|
141 |
-
elif ! [ -z $DB_SOCK_OR_PORT ] ; then
|
142 |
-
EXTRA=" --socket=$DB_SOCK_OR_PORT"
|
143 |
-
elif ! [ -z $DB_HOSTNAME ] ; then
|
144 |
-
EXTRA=" --host=$DB_HOSTNAME --protocol=tcp"
|
145 |
-
fi
|
146 |
-
fi
|
147 |
-
|
148 |
-
# create database
|
149 |
-
mysqladmin create $DB_NAME --user="$DB_USER" --password="$DB_PASS"$EXTRA;
|
150 |
-
}
|
151 |
-
|
152 |
-
install_wp
|
153 |
-
install_test_suite
|
154 |
-
install_db
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/tools/local-env/mysql-init.sql
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* MySQL server init.
|
3 |
-
*
|
4 |
-
* SQL queries in this file will be executed the first time the MySQL server is started.
|
5 |
-
*/
|
6 |
-
|
7 |
-
CREATE DATABASE IF NOT EXISTS yith_plugin_fw_tests;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/tools/local-env/phpunit-config.ini
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
upload_max_filesize = 1G
|
2 |
-
post_max_size = 1G
|
3 |
-
|
4 |
-
opcache.enable = 1
|
5 |
-
opcache.enable_cli = 1
|
6 |
-
opache.file_cache = /tmp/php-opcache
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/tools/local-env/scripts/docker.js
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
const dotenv = require( 'dotenv' );
|
2 |
-
const { execSync } = require( 'child_process' );
|
3 |
-
dotenv.config();
|
4 |
-
|
5 |
-
// Execute any docker-compose command passed to this script.
|
6 |
-
execSync( 'docker-compose ' + process.argv.slice( 2 ).join( ' ' ), { stdio: 'inherit' } );
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/tools/local-env/scripts/install.js
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
const dotenv = require( 'dotenv' );
|
2 |
-
const { execSync } = require( 'child_process' );
|
3 |
-
|
4 |
-
dotenv.config();
|
5 |
-
|
6 |
-
phpunitExec('/var/www/html/install-wp-tests.sh yith_plugin_fw_tests root password mysql latest true');
|
7 |
-
|
8 |
-
/**
|
9 |
-
* Runs commands in the Docker PHPUnit environment.
|
10 |
-
*
|
11 |
-
* @param {string} cmd The command to run.
|
12 |
-
*/
|
13 |
-
function phpunitExec( cmd ) {
|
14 |
-
execSync( `docker-compose run --rm phpunit ${cmd}`, { stdio: 'inherit' } );
|
15 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/tools/local-env/scripts/start.js
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
const dotenv = require( 'dotenv' );
|
2 |
-
const { execSync } = require( 'child_process' );
|
3 |
-
|
4 |
-
dotenv.config();
|
5 |
-
|
6 |
-
// Start the local-env containers.
|
7 |
-
execSync( 'docker-compose up -d', { stdio: 'inherit' } );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/tools/local-env/yith-plugin-fw-loader.php
DELETED
@@ -1,50 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Plugin Name: YITH Plugin Framework Loader
|
4 |
-
* Plugin URI:
|
5 |
-
* Description: YITH Plugin Framework Loader
|
6 |
-
* Version: 1.0.0
|
7 |
-
* Author: YITH
|
8 |
-
* Author URI: http://yithemes.com/
|
9 |
-
* Text Domain: yith-plugin-framework-loader
|
10 |
-
* Domain Path: /languages/
|
11 |
-
*
|
12 |
-
* @author YITH
|
13 |
-
* @package YITH Plugin Framework Loader
|
14 |
-
* @version 1.0.0
|
15 |
-
*/
|
16 |
-
|
17 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
18 |
-
exit;
|
19 |
-
} // Exit if accessed directly
|
20 |
-
|
21 |
-
if ( ! function_exists( 'yith_plugin_registration_hook' ) ) {
|
22 |
-
require_once 'plugin-fw/yit-plugin-registration-hook.php';
|
23 |
-
}
|
24 |
-
register_activation_hook( __FILE__, 'yith_plugin_registration_hook' );
|
25 |
-
|
26 |
-
|
27 |
-
add_action( 'plugins_loaded', 'yith_plugin_fw_loader_load_plugin_fw', 15 );
|
28 |
-
|
29 |
-
/**
|
30 |
-
* Plugin Framework Loader.
|
31 |
-
*
|
32 |
-
* @return void
|
33 |
-
*/
|
34 |
-
function yith_plugin_fw_loader_load_plugin_fw() {
|
35 |
-
|
36 |
-
if ( ! defined( 'YIT_CORE_PLUGIN' ) ) {
|
37 |
-
global $plugin_fw_data;
|
38 |
-
if ( ! empty( $plugin_fw_data ) ) {
|
39 |
-
$plugin_fw_file = array_shift( $plugin_fw_data );
|
40 |
-
require_once $plugin_fw_file;
|
41 |
-
}
|
42 |
-
}
|
43 |
-
|
44 |
-
}
|
45 |
-
|
46 |
-
/* Plugin Framework Version Check */
|
47 |
-
if ( ! function_exists( 'yit_maybe_plugin_fw_loader' ) && file_exists( plugin_dir_path( __FILE__ ) . 'plugin-fw/init.php' ) ) {
|
48 |
-
require_once plugin_dir_path( __FILE__ ) . 'plugin-fw/init.php';
|
49 |
-
}
|
50 |
-
yit_maybe_plugin_fw_loader( plugin_dir_path( __FILE__ ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/yit-functions.php
CHANGED
@@ -1600,3 +1600,62 @@ if ( ! function_exists( 'yith_plugin_fw_extract' ) ) {
|
|
1600 |
);
|
1601 |
}
|
1602 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1600 |
);
|
1601 |
}
|
1602 |
}
|
1603 |
+
|
1604 |
+
|
1605 |
+
if ( ! function_exists( 'yith_plugin_fw_register_elementor_widget' ) ) {
|
1606 |
+
/**
|
1607 |
+
* Register Elementor widget
|
1608 |
+
*
|
1609 |
+
* @param string $widget_name The widget name.
|
1610 |
+
* @param array $widget_options The widget options.
|
1611 |
+
*
|
1612 |
+
* @since 3.6.0
|
1613 |
+
*/
|
1614 |
+
function yith_plugin_fw_register_elementor_widget( $widget_name, $widget_options ) {
|
1615 |
+
YITH_Elementor::instance()->register_widget( $widget_name, $widget_options );
|
1616 |
+
}
|
1617 |
+
}
|
1618 |
+
|
1619 |
+
if ( ! function_exists( 'yith_plugin_fw_register_elementor_widgets' ) ) {
|
1620 |
+
/**
|
1621 |
+
* Register Elementor widgets
|
1622 |
+
*
|
1623 |
+
* @param array $widgets The widgets.
|
1624 |
+
* @param bool $map_from_gutenberg Set to true if you need to map options from Gutenberg blocks array.
|
1625 |
+
*
|
1626 |
+
* @since 3.6.0
|
1627 |
+
*/
|
1628 |
+
function yith_plugin_fw_register_elementor_widgets( $widgets, $map_from_gutenberg = false ) {
|
1629 |
+
foreach ( $widgets as $widget_name => $widget_options ) {
|
1630 |
+
if ( $map_from_gutenberg ) {
|
1631 |
+
$widget_options = array_merge( array( 'map_from_gutenberg' => true ), $widget_options );
|
1632 |
+
}
|
1633 |
+
yith_plugin_fw_register_elementor_widget( $widget_name, $widget_options );
|
1634 |
+
}
|
1635 |
+
}
|
1636 |
+
}
|
1637 |
+
|
1638 |
+
if ( ! function_exists( 'yith_plugin_fw_copy_to_clipboard' ) ) {
|
1639 |
+
/**
|
1640 |
+
* Print a field with a button to copy its content to clipboard
|
1641 |
+
*
|
1642 |
+
* @param string $value The text to be shown.
|
1643 |
+
* @param array $field The field attributes.
|
1644 |
+
*
|
1645 |
+
* @since 3.6.2
|
1646 |
+
*/
|
1647 |
+
function yith_plugin_fw_copy_to_clipboard( $value, $field = array() ) {
|
1648 |
+
$defaults = array(
|
1649 |
+
'id' => '',
|
1650 |
+
'value' => $value,
|
1651 |
+
);
|
1652 |
+
$field = wp_parse_args( $field, $defaults );
|
1653 |
+
$field['type'] = 'copy-to-clipboard';
|
1654 |
+
|
1655 |
+
// Enqueue style and script if not enqueued.
|
1656 |
+
wp_enqueue_style( 'yith-plugin-fw-fields' );
|
1657 |
+
wp_enqueue_script( 'yith-plugin-fw-fields' );
|
1658 |
+
|
1659 |
+
yith_plugin_fw_get_field( $field, true, false );
|
1660 |
+
}
|
1661 |
+
}
|
plugin-fw/yit-plugin.php
CHANGED
@@ -39,8 +39,11 @@ require_once 'includes/class-yith-system-status.php';
|
|
39 |
|
40 |
// Gutenberg Support.
|
41 |
if ( class_exists( 'WP_Block_Type_Registry' ) ) {
|
42 |
-
require_once 'includes/class-yith-gutenberg.php';
|
43 |
}
|
|
|
|
|
|
|
44 |
// load from theme folder...
|
45 |
load_textdomain( 'yith-plugin-fw', get_template_directory() . '/core/plugin-fw/yith-plugin-fw-' . apply_filters( 'plugin_locale', get_locale(), 'yith-plugin-fw' ) . '.mo' ) ||
|
46 |
// ...or from plugin folder.
|
39 |
|
40 |
// Gutenberg Support.
|
41 |
if ( class_exists( 'WP_Block_Type_Registry' ) ) {
|
42 |
+
require_once 'includes/builders/gutenberg/class-yith-gutenberg.php';
|
43 |
}
|
44 |
+
|
45 |
+
require_once 'includes/builders/elementor/class-yith-elementor.php';
|
46 |
+
|
47 |
// load from theme folder...
|
48 |
load_textdomain( 'yith-plugin-fw', get_template_directory() . '/core/plugin-fw/yith-plugin-fw-' . apply_filters( 'plugin_locale', get_locale(), 'yith-plugin-fw' ) . '.mo' ) ||
|
49 |
// ...or from plugin folder.
|