Version Description
Download this release
Release Info
Developer | sayful |
Plugin | Carousel Slider |
Version | 1.8.2 |
Comparing to | |
See all releases |
Code changes from version 1.8.1 to 1.8.2
- readme.txt +1 -1
- trunk/LICENSE +0 -674
- trunk/assets/css/admin.css +0 -1
- trunk/assets/css/index.php +0 -2
- trunk/assets/css/style.css +0 -1
- trunk/assets/img/ajax-loader.gif +0 -0
- trunk/assets/img/index.php +0 -2
- trunk/assets/img/logo.svg +0 -121
- trunk/assets/img/play.svg +0 -1
- trunk/assets/img/svg-icons.svg +0 -18
- trunk/assets/index.php +0 -2
- trunk/assets/js/admin.js +0 -711
- trunk/assets/js/admin.min.js +0 -1
- trunk/assets/js/admin/accordion.js +0 -15
- trunk/assets/js/admin/hero-banner.js +0 -295
- trunk/assets/js/admin/index.php +0 -2
- trunk/assets/js/admin/media-gallery.js +0 -131
- trunk/assets/js/admin/media-url.js +0 -40
- trunk/assets/js/admin/modal.js +0 -16
- trunk/assets/js/admin/slide-type.js +0 -144
- trunk/assets/js/admin/vendors.js +0 -69
- trunk/assets/js/index.php +0 -2
- trunk/assets/js/public/index.php +0 -2
- trunk/assets/js/public/script.js +0 -69
- trunk/assets/js/vendors/index.php +0 -2
- trunk/assets/js/vendors/jquery.magnific-popup.min.js +0 -4
- trunk/assets/js/vendors/jquery.tipTip.min.js +0 -1
- trunk/assets/js/vendors/owl.carousel.min.js +0 -7
- trunk/assets/js/vendors/select2.min.js +0 -3
- trunk/assets/js/vendors/wp-color-picker-alpha.min.js +0 -11
- trunk/assets/scss/admin.scss +0 -11
- trunk/assets/scss/admin/_datepicker.scss +0 -46
- trunk/assets/scss/admin/_meta-box.scss +0 -239
- trunk/assets/scss/admin/_modal.scss +0 -108
- trunk/assets/scss/admin/_model.scss +0 -140
- trunk/assets/scss/admin/_select2.scss +0 -484
- trunk/assets/scss/admin/_tab.scss +0 -79
- trunk/assets/scss/admin/_toggle.scss +0 -51
- trunk/assets/scss/admin/_tooltip.scss +0 -133
- trunk/assets/scss/admin/_widget.scss +0 -10
- trunk/assets/scss/admin/index.php +0 -2
- trunk/assets/scss/index.php +0 -2
- trunk/assets/scss/public/_animate.scss +0 -27
- trunk/assets/scss/public/_autoheight.scss +0 -4
- trunk/assets/scss/public/_button.scss +0 -39
- trunk/assets/scss/public/_content-carousel.scss +0 -46
- trunk/assets/scss/public/_core.scss +0 -98
- trunk/assets/scss/public/_image-carousel.scss +0 -34
- trunk/assets/scss/public/_lazyload.scss +0 -17
- trunk/assets/scss/public/_magnific-popup.scss +0 -610
- trunk/assets/scss/public/_post-carousel.scss +0 -120
- trunk/assets/scss/public/_post-carousel2.scss +0 -63
- trunk/assets/scss/public/_product-carousel.scss +0 -180
- trunk/assets/scss/public/_product_modal.scss +0 -197
- trunk/assets/scss/public/_theme.scss +0 -136
- trunk/assets/scss/public/_variables.scss +0 -5
- trunk/assets/scss/public/_video.scss +0 -49
- trunk/assets/scss/public/index.php +0 -2
- trunk/assets/scss/style.scss +0 -15
- trunk/assets/scss/utilities/_mixins.scss +0 -74
- trunk/assets/scss/utilities/_variables.scss +0 -145
- trunk/carousel-slider.php +0 -154
- trunk/dummy-data/carousel-slider.xml +0 -739
- trunk/includes/class-carousel-slider-activator.php +0 -75
- trunk/includes/class-carousel-slider-admin.php +0 -438
- trunk/includes/class-carousel-slider-content-carousel.php +0 -199
- trunk/includes/class-carousel-slider-credit.php +0 -52
- trunk/includes/class-carousel-slider-documentation.php +0 -48
- trunk/includes/class-carousel-slider-form.php +0 -403
- trunk/includes/class-carousel-slider-i18n.php +0 -55
- trunk/includes/class-carousel-slider-meta-box.php +0 -395
- trunk/includes/class-carousel-slider-number-to-word.php +0 -253
- trunk/includes/class-carousel-slider-product.php +0 -517
- trunk/includes/class-carousel-slider-script.php +0 -269
- trunk/includes/class-carousel-slider-structured-data.php +0 -316
- trunk/includes/class-carousel-slider-vc-element.php +0 -91
- trunk/includes/functions-carousel-slider.php +0 -579
- trunk/includes/index.php +0 -2
- trunk/index.php +0 -2
- trunk/readme.txt +0 -253
- trunk/shortcodes/class-carousel-slider-deprecated-shortcode.php +0 -196
- trunk/shortcodes/class-carousel-slider-shortcode.php +0 -322
- trunk/shortcodes/index.php +0 -2
- trunk/templates/admin/autoplay.php +0 -37
- trunk/templates/admin/documentation.php +0 -124
- trunk/templates/admin/general.php +0 -52
- trunk/templates/admin/hero-banner-slider.php +0 -270
- trunk/templates/admin/images-media.php +0 -17
- trunk/templates/admin/images-settings.php +0 -44
- trunk/templates/admin/images-url.php +0 -104
- trunk/templates/admin/index.php +0 -2
- trunk/templates/admin/navigation.php +0 -36
- trunk/templates/admin/parts/hero-banner/tab-background.php +0 -64
- trunk/templates/admin/parts/hero-banner/tab-content.php +0 -28
- trunk/templates/admin/parts/hero-banner/tab-link-button-one.php +0 -118
- trunk/templates/admin/parts/hero-banner/tab-link-button-two.php +0 -119
- trunk/templates/admin/parts/hero-banner/tab-link.php +0 -51
- trunk/templates/admin/parts/hero-banner/tab-style.php +0 -117
- trunk/templates/admin/parts/index.php +0 -2
- trunk/templates/admin/post-carousel.php +0 -89
- trunk/templates/admin/product-carousel.php +0 -133
- trunk/templates/admin/responsive.php +0 -50
- trunk/templates/admin/types.php +0 -30
- trunk/templates/admin/video-carousel.php +0 -33
- trunk/templates/index.php +0 -2
- trunk/templates/public/hero-banner-slider.php +0 -193
- trunk/templates/public/images-carousel-url.php +0 -65
- trunk/templates/public/images-carousel.php +0 -89
- trunk/templates/public/index.php +0 -2
- trunk/templates/public/post-carousel.php +0 -107
- trunk/templates/public/product-carousel-2.php +0 -52
- trunk/templates/public/product-carousel.php +0 -121
- trunk/templates/public/video-carousel.php +0 -26
- trunk/widgets/index.php +0 -2
- trunk/widgets/widget-carousel_slider.php +0 -129
readme.txt
CHANGED
@@ -15,8 +15,8 @@ Create SEO friendly Image, Logo, Video, Post, WooCommerce Product Carousel and S
|
|
15 |
**Create SEO friendly Image, Logo, Video, Post, WooCommerce Product Carousel and Slider.**
|
16 |
Carousel Slider is a touch enabled WordPress plugin that lets you create highly customizable, stylish responsive carousel slider. With Carousel Slider, you can create image carousel using media gallery or custom url, post carousel, video carousel. We have integrated [Owl Carousel 2](http://www.owlcarousel.owlgraphic.com/) into our plugin for the ultimate device support.
|
17 |
|
18 |
-
> Looking for a free minimal WordPress theme. Try [Shapla](https://wordpress.org/themes/shapla/)
|
19 |
|
|
|
20 |
|
21 |
**If you like this plugin, please give us [5 star](https://wordpress.org/support/plugin/carousel-slider/reviews/?rate=5#new-post) to encourage for future improvement.**
|
22 |
|
15 |
**Create SEO friendly Image, Logo, Video, Post, WooCommerce Product Carousel and Slider.**
|
16 |
Carousel Slider is a touch enabled WordPress plugin that lets you create highly customizable, stylish responsive carousel slider. With Carousel Slider, you can create image carousel using media gallery or custom url, post carousel, video carousel. We have integrated [Owl Carousel 2](http://www.owlcarousel.owlgraphic.com/) into our plugin for the ultimate device support.
|
17 |
|
|
|
18 |
|
19 |
+
> Looking for a free minimal WordPress theme. Try [Shapla](https://wordpress.org/themes/shapla/)
|
20 |
|
21 |
**If you like this plugin, please give us [5 star](https://wordpress.org/support/plugin/carousel-slider/reviews/?rate=5#new-post) to encourage for future improvement.**
|
22 |
|
trunk/LICENSE
DELETED
@@ -1,674 +0,0 @@
|
|
1 |
-
GNU GENERAL PUBLIC LICENSE
|
2 |
-
Version 3, 29 June 2007
|
3 |
-
|
4 |
-
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
5 |
-
Everyone is permitted to copy and distribute verbatim copies
|
6 |
-
of this license document, but changing it is not allowed.
|
7 |
-
|
8 |
-
Preamble
|
9 |
-
|
10 |
-
The GNU General Public License is a free, copyleft license for
|
11 |
-
software and other kinds of works.
|
12 |
-
|
13 |
-
The licenses for most software and other practical works are designed
|
14 |
-
to take away your freedom to share and change the works. By contrast,
|
15 |
-
the GNU General Public License is intended to guarantee your freedom to
|
16 |
-
share and change all versions of a program--to make sure it remains free
|
17 |
-
software for all its users. We, the Free Software Foundation, use the
|
18 |
-
GNU General Public License for most of our software; it applies also to
|
19 |
-
any other work released this way by its authors. You can apply it to
|
20 |
-
your programs, too.
|
21 |
-
|
22 |
-
When we speak of free software, we are referring to freedom, not
|
23 |
-
price. Our General Public Licenses are designed to make sure that you
|
24 |
-
have the freedom to distribute copies of free software (and charge for
|
25 |
-
them if you wish), that you receive source code or can get it if you
|
26 |
-
want it, that you can change the software or use pieces of it in new
|
27 |
-
free programs, and that you know you can do these things.
|
28 |
-
|
29 |
-
To protect your rights, we need to prevent others from denying you
|
30 |
-
these rights or asking you to surrender the rights. Therefore, you have
|
31 |
-
certain responsibilities if you distribute copies of the software, or if
|
32 |
-
you modify it: responsibilities to respect the freedom of others.
|
33 |
-
|
34 |
-
For example, if you distribute copies of such a program, whether
|
35 |
-
gratis or for a fee, you must pass on to the recipients the same
|
36 |
-
freedoms that you received. You must make sure that they, too, receive
|
37 |
-
or can get the source code. And you must show them these terms so they
|
38 |
-
know their rights.
|
39 |
-
|
40 |
-
Developers that use the GNU GPL protect your rights with two steps:
|
41 |
-
(1) assert copyright on the software, and (2) offer you this License
|
42 |
-
giving you legal permission to copy, distribute and/or modify it.
|
43 |
-
|
44 |
-
For the developers' and authors' protection, the GPL clearly explains
|
45 |
-
that there is no warranty for this free software. For both users' and
|
46 |
-
authors' sake, the GPL requires that modified versions be marked as
|
47 |
-
changed, so that their problems will not be attributed erroneously to
|
48 |
-
authors of previous versions.
|
49 |
-
|
50 |
-
Some devices are designed to deny users access to install or run
|
51 |
-
modified versions of the software inside them, although the manufacturer
|
52 |
-
can do so. This is fundamentally incompatible with the aim of
|
53 |
-
protecting users' freedom to change the software. The systematic
|
54 |
-
pattern of such abuse occurs in the area of products for individuals to
|
55 |
-
use, which is precisely where it is most unacceptable. Therefore, we
|
56 |
-
have designed this version of the GPL to prohibit the practice for those
|
57 |
-
products. If such problems arise substantially in other domains, we
|
58 |
-
stand ready to extend this provision to those domains in future versions
|
59 |
-
of the GPL, as needed to protect the freedom of users.
|
60 |
-
|
61 |
-
Finally, every program is threatened constantly by software patents.
|
62 |
-
States should not allow patents to restrict development and use of
|
63 |
-
software on general-purpose computers, but in those that do, we wish to
|
64 |
-
avoid the special danger that patents applied to a free program could
|
65 |
-
make it effectively proprietary. To prevent this, the GPL assures that
|
66 |
-
patents cannot be used to render the program non-free.
|
67 |
-
|
68 |
-
The precise terms and conditions for copying, distribution and
|
69 |
-
modification follow.
|
70 |
-
|
71 |
-
TERMS AND CONDITIONS
|
72 |
-
|
73 |
-
0. Definitions.
|
74 |
-
|
75 |
-
"This License" refers to version 3 of the GNU General Public License.
|
76 |
-
|
77 |
-
"Copyright" also means copyright-like laws that apply to other kinds of
|
78 |
-
works, such as semiconductor masks.
|
79 |
-
|
80 |
-
"The Program" refers to any copyrightable work licensed under this
|
81 |
-
License. Each licensee is addressed as "you". "Licensees" and
|
82 |
-
"recipients" may be individuals or organizations.
|
83 |
-
|
84 |
-
To "modify" a work means to copy from or adapt all or part of the work
|
85 |
-
in a fashion requiring copyright permission, other than the making of an
|
86 |
-
exact copy. The resulting work is called a "modified version" of the
|
87 |
-
earlier work or a work "based on" the earlier work.
|
88 |
-
|
89 |
-
A "covered work" means either the unmodified Program or a work based
|
90 |
-
on the Program.
|
91 |
-
|
92 |
-
To "propagate" a work means to do anything with it that, without
|
93 |
-
permission, would make you directly or secondarily liable for
|
94 |
-
infringement under applicable copyright law, except executing it on a
|
95 |
-
computer or modifying a private copy. Propagation includes copying,
|
96 |
-
distribution (with or without modification), making available to the
|
97 |
-
public, and in some countries other activities as well.
|
98 |
-
|
99 |
-
To "convey" a work means any kind of propagation that enables other
|
100 |
-
parties to make or receive copies. Mere interaction with a user through
|
101 |
-
a computer network, with no transfer of a copy, is not conveying.
|
102 |
-
|
103 |
-
An interactive user interface displays "Appropriate Legal Notices"
|
104 |
-
to the extent that it includes a convenient and prominently visible
|
105 |
-
feature that (1) displays an appropriate copyright notice, and (2)
|
106 |
-
tells the user that there is no warranty for the work (except to the
|
107 |
-
extent that warranties are provided), that licensees may convey the
|
108 |
-
work under this License, and how to view a copy of this License. If
|
109 |
-
the interface presents a list of user commands or options, such as a
|
110 |
-
menu, a prominent item in the list meets this criterion.
|
111 |
-
|
112 |
-
1. Source Code.
|
113 |
-
|
114 |
-
The "source code" for a work means the preferred form of the work
|
115 |
-
for making modifications to it. "Object code" means any non-source
|
116 |
-
form of a work.
|
117 |
-
|
118 |
-
A "Standard Interface" means an interface that either is an official
|
119 |
-
standard defined by a recognized standards body, or, in the case of
|
120 |
-
interfaces specified for a particular programming language, one that
|
121 |
-
is widely used among developers working in that language.
|
122 |
-
|
123 |
-
The "System Libraries" of an executable work include anything, other
|
124 |
-
than the work as a whole, that (a) is included in the normal form of
|
125 |
-
packaging a Major Component, but which is not part of that Major
|
126 |
-
Component, and (b) serves only to enable use of the work with that
|
127 |
-
Major Component, or to implement a Standard Interface for which an
|
128 |
-
implementation is available to the public in source code form. A
|
129 |
-
"Major Component", in this context, means a major essential component
|
130 |
-
(kernel, window system, and so on) of the specific operating system
|
131 |
-
(if any) on which the executable work runs, or a compiler used to
|
132 |
-
produce the work, or an object code interpreter used to run it.
|
133 |
-
|
134 |
-
The "Corresponding Source" for a work in object code form means all
|
135 |
-
the source code needed to generate, install, and (for an executable
|
136 |
-
work) run the object code and to modify the work, including scripts to
|
137 |
-
control those activities. However, it does not include the work's
|
138 |
-
System Libraries, or general-purpose tools or generally available free
|
139 |
-
programs which are used unmodified in performing those activities but
|
140 |
-
which are not part of the work. For example, Corresponding Source
|
141 |
-
includes interface definition files associated with source files for
|
142 |
-
the work, and the source code for shared libraries and dynamically
|
143 |
-
linked subprograms that the work is specifically designed to require,
|
144 |
-
such as by intimate data communication or control flow between those
|
145 |
-
subprograms and other parts of the work.
|
146 |
-
|
147 |
-
The Corresponding Source need not include anything that users
|
148 |
-
can regenerate automatically from other parts of the Corresponding
|
149 |
-
Source.
|
150 |
-
|
151 |
-
The Corresponding Source for a work in source code form is that
|
152 |
-
same work.
|
153 |
-
|
154 |
-
2. Basic Permissions.
|
155 |
-
|
156 |
-
All rights granted under this License are granted for the term of
|
157 |
-
copyright on the Program, and are irrevocable provided the stated
|
158 |
-
conditions are met. This License explicitly affirms your unlimited
|
159 |
-
permission to run the unmodified Program. The output from running a
|
160 |
-
covered work is covered by this License only if the output, given its
|
161 |
-
content, constitutes a covered work. This License acknowledges your
|
162 |
-
rights of fair use or other equivalent, as provided by copyright law.
|
163 |
-
|
164 |
-
You may make, run and propagate covered works that you do not
|
165 |
-
convey, without conditions so long as your license otherwise remains
|
166 |
-
in force. You may convey covered works to others for the sole purpose
|
167 |
-
of having them make modifications exclusively for you, or provide you
|
168 |
-
with facilities for running those works, provided that you comply with
|
169 |
-
the terms of this License in conveying all material for which you do
|
170 |
-
not control copyright. Those thus making or running the covered works
|
171 |
-
for you must do so exclusively on your behalf, under your direction
|
172 |
-
and control, on terms that prohibit them from making any copies of
|
173 |
-
your copyrighted material outside their relationship with you.
|
174 |
-
|
175 |
-
Conveying under any other circumstances is permitted solely under
|
176 |
-
the conditions stated below. Sublicensing is not allowed; section 10
|
177 |
-
makes it unnecessary.
|
178 |
-
|
179 |
-
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
180 |
-
|
181 |
-
No covered work shall be deemed part of an effective technological
|
182 |
-
measure under any applicable law fulfilling obligations under article
|
183 |
-
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
184 |
-
similar laws prohibiting or restricting circumvention of such
|
185 |
-
measures.
|
186 |
-
|
187 |
-
When you convey a covered work, you waive any legal power to forbid
|
188 |
-
circumvention of technological measures to the extent such circumvention
|
189 |
-
is effected by exercising rights under this License with respect to
|
190 |
-
the covered work, and you disclaim any intention to limit operation or
|
191 |
-
modification of the work as a means of enforcing, against the work's
|
192 |
-
users, your or third parties' legal rights to forbid circumvention of
|
193 |
-
technological measures.
|
194 |
-
|
195 |
-
4. Conveying Verbatim Copies.
|
196 |
-
|
197 |
-
You may convey verbatim copies of the Program's source code as you
|
198 |
-
receive it, in any medium, provided that you conspicuously and
|
199 |
-
appropriately publish on each copy an appropriate copyright notice;
|
200 |
-
keep intact all notices stating that this License and any
|
201 |
-
non-permissive terms added in accord with section 7 apply to the code;
|
202 |
-
keep intact all notices of the absence of any warranty; and give all
|
203 |
-
recipients a copy of this License along with the Program.
|
204 |
-
|
205 |
-
You may charge any price or no price for each copy that you convey,
|
206 |
-
and you may offer support or warranty protection for a fee.
|
207 |
-
|
208 |
-
5. Conveying Modified Source Versions.
|
209 |
-
|
210 |
-
You may convey a work based on the Program, or the modifications to
|
211 |
-
produce it from the Program, in the form of source code under the
|
212 |
-
terms of section 4, provided that you also meet all of these conditions:
|
213 |
-
|
214 |
-
a) The work must carry prominent notices stating that you modified
|
215 |
-
it, and giving a relevant date.
|
216 |
-
|
217 |
-
b) The work must carry prominent notices stating that it is
|
218 |
-
released under this License and any conditions added under section
|
219 |
-
7. This requirement modifies the requirement in section 4 to
|
220 |
-
"keep intact all notices".
|
221 |
-
|
222 |
-
c) You must license the entire work, as a whole, under this
|
223 |
-
License to anyone who comes into possession of a copy. This
|
224 |
-
License will therefore apply, along with any applicable section 7
|
225 |
-
additional terms, to the whole of the work, and all its parts,
|
226 |
-
regardless of how they are packaged. This License gives no
|
227 |
-
permission to license the work in any other way, but it does not
|
228 |
-
invalidate such permission if you have separately received it.
|
229 |
-
|
230 |
-
d) If the work has interactive user interfaces, each must display
|
231 |
-
Appropriate Legal Notices; however, if the Program has interactive
|
232 |
-
interfaces that do not display Appropriate Legal Notices, your
|
233 |
-
work need not make them do so.
|
234 |
-
|
235 |
-
A compilation of a covered work with other separate and independent
|
236 |
-
works, which are not by their nature extensions of the covered work,
|
237 |
-
and which are not combined with it such as to form a larger program,
|
238 |
-
in or on a volume of a storage or distribution medium, is called an
|
239 |
-
"aggregate" if the compilation and its resulting copyright are not
|
240 |
-
used to limit the access or legal rights of the compilation's users
|
241 |
-
beyond what the individual works permit. Inclusion of a covered work
|
242 |
-
in an aggregate does not cause this License to apply to the other
|
243 |
-
parts of the aggregate.
|
244 |
-
|
245 |
-
6. Conveying Non-Source Forms.
|
246 |
-
|
247 |
-
You may convey a covered work in object code form under the terms
|
248 |
-
of sections 4 and 5, provided that you also convey the
|
249 |
-
machine-readable Corresponding Source under the terms of this License,
|
250 |
-
in one of these ways:
|
251 |
-
|
252 |
-
a) Convey the object code in, or embodied in, a physical product
|
253 |
-
(including a physical distribution medium), accompanied by the
|
254 |
-
Corresponding Source fixed on a durable physical medium
|
255 |
-
customarily used for software interchange.
|
256 |
-
|
257 |
-
b) Convey the object code in, or embodied in, a physical product
|
258 |
-
(including a physical distribution medium), accompanied by a
|
259 |
-
written offer, valid for at least three years and valid for as
|
260 |
-
long as you offer spare parts or customer support for that product
|
261 |
-
model, to give anyone who possesses the object code either (1) a
|
262 |
-
copy of the Corresponding Source for all the software in the
|
263 |
-
product that is covered by this License, on a durable physical
|
264 |
-
medium customarily used for software interchange, for a price no
|
265 |
-
more than your reasonable cost of physically performing this
|
266 |
-
conveying of source, or (2) access to copy the
|
267 |
-
Corresponding Source from a network server at no charge.
|
268 |
-
|
269 |
-
c) Convey individual copies of the object code with a copy of the
|
270 |
-
written offer to provide the Corresponding Source. This
|
271 |
-
alternative is allowed only occasionally and noncommercially, and
|
272 |
-
only if you received the object code with such an offer, in accord
|
273 |
-
with subsection 6b.
|
274 |
-
|
275 |
-
d) Convey the object code by offering access from a designated
|
276 |
-
place (gratis or for a charge), and offer equivalent access to the
|
277 |
-
Corresponding Source in the same way through the same place at no
|
278 |
-
further charge. You need not require recipients to copy the
|
279 |
-
Corresponding Source along with the object code. If the place to
|
280 |
-
copy the object code is a network server, the Corresponding Source
|
281 |
-
may be on a different server (operated by you or a third party)
|
282 |
-
that supports equivalent copying facilities, provided you maintain
|
283 |
-
clear directions next to the object code saying where to find the
|
284 |
-
Corresponding Source. Regardless of what server hosts the
|
285 |
-
Corresponding Source, you remain obligated to ensure that it is
|
286 |
-
available for as long as needed to satisfy these requirements.
|
287 |
-
|
288 |
-
e) Convey the object code using peer-to-peer transmission, provided
|
289 |
-
you inform other peers where the object code and Corresponding
|
290 |
-
Source of the work are being offered to the general public at no
|
291 |
-
charge under subsection 6d.
|
292 |
-
|
293 |
-
A separable portion of the object code, whose source code is excluded
|
294 |
-
from the Corresponding Source as a System Library, need not be
|
295 |
-
included in conveying the object code work.
|
296 |
-
|
297 |
-
A "User Product" is either (1) a "consumer product", which means any
|
298 |
-
tangible personal property which is normally used for personal, family,
|
299 |
-
or household purposes, or (2) anything designed or sold for incorporation
|
300 |
-
into a dwelling. In determining whether a product is a consumer product,
|
301 |
-
doubtful cases shall be resolved in favor of coverage. For a particular
|
302 |
-
product received by a particular user, "normally used" refers to a
|
303 |
-
typical or common use of that class of product, regardless of the status
|
304 |
-
of the particular user or of the way in which the particular user
|
305 |
-
actually uses, or expects or is expected to use, the product. A product
|
306 |
-
is a consumer product regardless of whether the product has substantial
|
307 |
-
commercial, industrial or non-consumer uses, unless such uses represent
|
308 |
-
the only significant mode of use of the product.
|
309 |
-
|
310 |
-
"Installation Information" for a User Product means any methods,
|
311 |
-
procedures, authorization keys, or other information required to install
|
312 |
-
and execute modified versions of a covered work in that User Product from
|
313 |
-
a modified version of its Corresponding Source. The information must
|
314 |
-
suffice to ensure that the continued functioning of the modified object
|
315 |
-
code is in no case prevented or interfered with solely because
|
316 |
-
modification has been made.
|
317 |
-
|
318 |
-
If you convey an object code work under this section in, or with, or
|
319 |
-
specifically for use in, a User Product, and the conveying occurs as
|
320 |
-
part of a transaction in which the right of possession and use of the
|
321 |
-
User Product is transferred to the recipient in perpetuity or for a
|
322 |
-
fixed term (regardless of how the transaction is characterized), the
|
323 |
-
Corresponding Source conveyed under this section must be accompanied
|
324 |
-
by the Installation Information. But this requirement does not apply
|
325 |
-
if neither you nor any third party retains the ability to install
|
326 |
-
modified object code on the User Product (for example, the work has
|
327 |
-
been installed in ROM).
|
328 |
-
|
329 |
-
The requirement to provide Installation Information does not include a
|
330 |
-
requirement to continue to provide support service, warranty, or updates
|
331 |
-
for a work that has been modified or installed by the recipient, or for
|
332 |
-
the User Product in which it has been modified or installed. Access to a
|
333 |
-
network may be denied when the modification itself materially and
|
334 |
-
adversely affects the operation of the network or violates the rules and
|
335 |
-
protocols for communication across the network.
|
336 |
-
|
337 |
-
Corresponding Source conveyed, and Installation Information provided,
|
338 |
-
in accord with this section must be in a format that is publicly
|
339 |
-
documented (and with an implementation available to the public in
|
340 |
-
source code form), and must require no special password or key for
|
341 |
-
unpacking, reading or copying.
|
342 |
-
|
343 |
-
7. Additional Terms.
|
344 |
-
|
345 |
-
"Additional permissions" are terms that supplement the terms of this
|
346 |
-
License by making exceptions from one or more of its conditions.
|
347 |
-
Additional permissions that are applicable to the entire Program shall
|
348 |
-
be treated as though they were included in this License, to the extent
|
349 |
-
that they are valid under applicable law. If additional permissions
|
350 |
-
apply only to part of the Program, that part may be used separately
|
351 |
-
under those permissions, but the entire Program remains governed by
|
352 |
-
this License without regard to the additional permissions.
|
353 |
-
|
354 |
-
When you convey a copy of a covered work, you may at your option
|
355 |
-
remove any additional permissions from that copy, or from any part of
|
356 |
-
it. (Additional permissions may be written to require their own
|
357 |
-
removal in certain cases when you modify the work.) You may place
|
358 |
-
additional permissions on material, added by you to a covered work,
|
359 |
-
for which you have or can give appropriate copyright permission.
|
360 |
-
|
361 |
-
Notwithstanding any other provision of this License, for material you
|
362 |
-
add to a covered work, you may (if authorized by the copyright holders of
|
363 |
-
that material) supplement the terms of this License with terms:
|
364 |
-
|
365 |
-
a) Disclaiming warranty or limiting liability differently from the
|
366 |
-
terms of sections 15 and 16 of this License; or
|
367 |
-
|
368 |
-
b) Requiring preservation of specified reasonable legal notices or
|
369 |
-
author attributions in that material or in the Appropriate Legal
|
370 |
-
Notices displayed by works containing it; or
|
371 |
-
|
372 |
-
c) Prohibiting misrepresentation of the origin of that material, or
|
373 |
-
requiring that modified versions of such material be marked in
|
374 |
-
reasonable ways as different from the original version; or
|
375 |
-
|
376 |
-
d) Limiting the use for publicity purposes of names of licensors or
|
377 |
-
authors of the material; or
|
378 |
-
|
379 |
-
e) Declining to grant rights under trademark law for use of some
|
380 |
-
trade names, trademarks, or service marks; or
|
381 |
-
|
382 |
-
f) Requiring indemnification of licensors and authors of that
|
383 |
-
material by anyone who conveys the material (or modified versions of
|
384 |
-
it) with contractual assumptions of liability to the recipient, for
|
385 |
-
any liability that these contractual assumptions directly impose on
|
386 |
-
those licensors and authors.
|
387 |
-
|
388 |
-
All other non-permissive additional terms are considered "further
|
389 |
-
restrictions" within the meaning of section 10. If the Program as you
|
390 |
-
received it, or any part of it, contains a notice stating that it is
|
391 |
-
governed by this License along with a term that is a further
|
392 |
-
restriction, you may remove that term. If a license document contains
|
393 |
-
a further restriction but permits relicensing or conveying under this
|
394 |
-
License, you may add to a covered work material governed by the terms
|
395 |
-
of that license document, provided that the further restriction does
|
396 |
-
not survive such relicensing or conveying.
|
397 |
-
|
398 |
-
If you add terms to a covered work in accord with this section, you
|
399 |
-
must place, in the relevant source files, a statement of the
|
400 |
-
additional terms that apply to those files, or a notice indicating
|
401 |
-
where to find the applicable terms.
|
402 |
-
|
403 |
-
Additional terms, permissive or non-permissive, may be stated in the
|
404 |
-
form of a separately written license, or stated as exceptions;
|
405 |
-
the above requirements apply either way.
|
406 |
-
|
407 |
-
8. Termination.
|
408 |
-
|
409 |
-
You may not propagate or modify a covered work except as expressly
|
410 |
-
provided under this License. Any attempt otherwise to propagate or
|
411 |
-
modify it is void, and will automatically terminate your rights under
|
412 |
-
this License (including any patent licenses granted under the third
|
413 |
-
paragraph of section 11).
|
414 |
-
|
415 |
-
However, if you cease all violation of this License, then your
|
416 |
-
license from a particular copyright holder is reinstated (a)
|
417 |
-
provisionally, unless and until the copyright holder explicitly and
|
418 |
-
finally terminates your license, and (b) permanently, if the copyright
|
419 |
-
holder fails to notify you of the violation by some reasonable means
|
420 |
-
prior to 60 days after the cessation.
|
421 |
-
|
422 |
-
Moreover, your license from a particular copyright holder is
|
423 |
-
reinstated permanently if the copyright holder notifies you of the
|
424 |
-
violation by some reasonable means, this is the first time you have
|
425 |
-
received notice of violation of this License (for any work) from that
|
426 |
-
copyright holder, and you cure the violation prior to 30 days after
|
427 |
-
your receipt of the notice.
|
428 |
-
|
429 |
-
Termination of your rights under this section does not terminate the
|
430 |
-
licenses of parties who have received copies or rights from you under
|
431 |
-
this License. If your rights have been terminated and not permanently
|
432 |
-
reinstated, you do not qualify to receive new licenses for the same
|
433 |
-
material under section 10.
|
434 |
-
|
435 |
-
9. Acceptance Not Required for Having Copies.
|
436 |
-
|
437 |
-
You are not required to accept this License in order to receive or
|
438 |
-
run a copy of the Program. Ancillary propagation of a covered work
|
439 |
-
occurring solely as a consequence of using peer-to-peer transmission
|
440 |
-
to receive a copy likewise does not require acceptance. However,
|
441 |
-
nothing other than this License grants you permission to propagate or
|
442 |
-
modify any covered work. These actions infringe copyright if you do
|
443 |
-
not accept this License. Therefore, by modifying or propagating a
|
444 |
-
covered work, you indicate your acceptance of this License to do so.
|
445 |
-
|
446 |
-
10. Automatic Licensing of Downstream Recipients.
|
447 |
-
|
448 |
-
Each time you convey a covered work, the recipient automatically
|
449 |
-
receives a license from the original licensors, to run, modify and
|
450 |
-
propagate that work, subject to this License. You are not responsible
|
451 |
-
for enforcing compliance by third parties with this License.
|
452 |
-
|
453 |
-
An "entity transaction" is a transaction transferring control of an
|
454 |
-
organization, or substantially all assets of one, or subdividing an
|
455 |
-
organization, or merging organizations. If propagation of a covered
|
456 |
-
work results from an entity transaction, each party to that
|
457 |
-
transaction who receives a copy of the work also receives whatever
|
458 |
-
licenses to the work the party's predecessor in interest had or could
|
459 |
-
give under the previous paragraph, plus a right to possession of the
|
460 |
-
Corresponding Source of the work from the predecessor in interest, if
|
461 |
-
the predecessor has it or can get it with reasonable efforts.
|
462 |
-
|
463 |
-
You may not impose any further restrictions on the exercise of the
|
464 |
-
rights granted or affirmed under this License. For example, you may
|
465 |
-
not impose a license fee, royalty, or other charge for exercise of
|
466 |
-
rights granted under this License, and you may not initiate litigation
|
467 |
-
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
468 |
-
any patent claim is infringed by making, using, selling, offering for
|
469 |
-
sale, or importing the Program or any portion of it.
|
470 |
-
|
471 |
-
11. Patents.
|
472 |
-
|
473 |
-
A "contributor" is a copyright holder who authorizes use under this
|
474 |
-
License of the Program or a work on which the Program is based. The
|
475 |
-
work thus licensed is called the contributor's "contributor version".
|
476 |
-
|
477 |
-
A contributor's "essential patent claims" are all patent claims
|
478 |
-
owned or controlled by the contributor, whether already acquired or
|
479 |
-
hereafter acquired, that would be infringed by some manner, permitted
|
480 |
-
by this License, of making, using, or selling its contributor version,
|
481 |
-
but do not include claims that would be infringed only as a
|
482 |
-
consequence of further modification of the contributor version. For
|
483 |
-
purposes of this definition, "control" includes the right to grant
|
484 |
-
patent sublicenses in a manner consistent with the requirements of
|
485 |
-
this License.
|
486 |
-
|
487 |
-
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
488 |
-
patent license under the contributor's essential patent claims, to
|
489 |
-
make, use, sell, offer for sale, import and otherwise run, modify and
|
490 |
-
propagate the contents of its contributor version.
|
491 |
-
|
492 |
-
In the following three paragraphs, a "patent license" is any express
|
493 |
-
agreement or commitment, however denominated, not to enforce a patent
|
494 |
-
(such as an express permission to practice a patent or covenant not to
|
495 |
-
sue for patent infringement). To "grant" such a patent license to a
|
496 |
-
party means to make such an agreement or commitment not to enforce a
|
497 |
-
patent against the party.
|
498 |
-
|
499 |
-
If you convey a covered work, knowingly relying on a patent license,
|
500 |
-
and the Corresponding Source of the work is not available for anyone
|
501 |
-
to copy, free of charge and under the terms of this License, through a
|
502 |
-
publicly available network server or other readily accessible means,
|
503 |
-
then you must either (1) cause the Corresponding Source to be so
|
504 |
-
available, or (2) arrange to deprive yourself of the benefit of the
|
505 |
-
patent license for this particular work, or (3) arrange, in a manner
|
506 |
-
consistent with the requirements of this License, to extend the patent
|
507 |
-
license to downstream recipients. "Knowingly relying" means you have
|
508 |
-
actual knowledge that, but for the patent license, your conveying the
|
509 |
-
covered work in a country, or your recipient's use of the covered work
|
510 |
-
in a country, would infringe one or more identifiable patents in that
|
511 |
-
country that you have reason to believe are valid.
|
512 |
-
|
513 |
-
If, pursuant to or in connection with a single transaction or
|
514 |
-
arrangement, you convey, or propagate by procuring conveyance of, a
|
515 |
-
covered work, and grant a patent license to some of the parties
|
516 |
-
receiving the covered work authorizing them to use, propagate, modify
|
517 |
-
or convey a specific copy of the covered work, then the patent license
|
518 |
-
you grant is automatically extended to all recipients of the covered
|
519 |
-
work and works based on it.
|
520 |
-
|
521 |
-
A patent license is "discriminatory" if it does not include within
|
522 |
-
the scope of its coverage, prohibits the exercise of, or is
|
523 |
-
conditioned on the non-exercise of one or more of the rights that are
|
524 |
-
specifically granted under this License. You may not convey a covered
|
525 |
-
work if you are a party to an arrangement with a third party that is
|
526 |
-
in the business of distributing software, under which you make payment
|
527 |
-
to the third party based on the extent of your activity of conveying
|
528 |
-
the work, and under which the third party grants, to any of the
|
529 |
-
parties who would receive the covered work from you, a discriminatory
|
530 |
-
patent license (a) in connection with copies of the covered work
|
531 |
-
conveyed by you (or copies made from those copies), or (b) primarily
|
532 |
-
for and in connection with specific products or compilations that
|
533 |
-
contain the covered work, unless you entered into that arrangement,
|
534 |
-
or that patent license was granted, prior to 28 March 2007.
|
535 |
-
|
536 |
-
Nothing in this License shall be construed as excluding or limiting
|
537 |
-
any implied license or other defenses to infringement that may
|
538 |
-
otherwise be available to you under applicable patent law.
|
539 |
-
|
540 |
-
12. No Surrender of Others' Freedom.
|
541 |
-
|
542 |
-
If conditions are imposed on you (whether by court order, agreement or
|
543 |
-
otherwise) that contradict the conditions of this License, they do not
|
544 |
-
excuse you from the conditions of this License. If you cannot convey a
|
545 |
-
covered work so as to satisfy simultaneously your obligations under this
|
546 |
-
License and any other pertinent obligations, then as a consequence you may
|
547 |
-
not convey it at all. For example, if you agree to terms that obligate you
|
548 |
-
to collect a royalty for further conveying from those to whom you convey
|
549 |
-
the Program, the only way you could satisfy both those terms and this
|
550 |
-
License would be to refrain entirely from conveying the Program.
|
551 |
-
|
552 |
-
13. Use with the GNU Affero General Public License.
|
553 |
-
|
554 |
-
Notwithstanding any other provision of this License, you have
|
555 |
-
permission to link or combine any covered work with a work licensed
|
556 |
-
under version 3 of the GNU Affero General Public License into a single
|
557 |
-
combined work, and to convey the resulting work. The terms of this
|
558 |
-
License will continue to apply to the part which is the covered work,
|
559 |
-
but the special requirements of the GNU Affero General Public License,
|
560 |
-
section 13, concerning interaction through a network will apply to the
|
561 |
-
combination as such.
|
562 |
-
|
563 |
-
14. Revised Versions of this License.
|
564 |
-
|
565 |
-
The Free Software Foundation may publish revised and/or new versions of
|
566 |
-
the GNU General Public License from time to time. Such new versions will
|
567 |
-
be similar in spirit to the present version, but may differ in detail to
|
568 |
-
address new problems or concerns.
|
569 |
-
|
570 |
-
Each version is given a distinguishing version number. If the
|
571 |
-
Program specifies that a certain numbered version of the GNU General
|
572 |
-
Public License "or any later version" applies to it, you have the
|
573 |
-
option of following the terms and conditions either of that numbered
|
574 |
-
version or of any later version published by the Free Software
|
575 |
-
Foundation. If the Program does not specify a version number of the
|
576 |
-
GNU General Public License, you may choose any version ever published
|
577 |
-
by the Free Software Foundation.
|
578 |
-
|
579 |
-
If the Program specifies that a proxy can decide which future
|
580 |
-
versions of the GNU General Public License can be used, that proxy's
|
581 |
-
public statement of acceptance of a version permanently authorizes you
|
582 |
-
to choose that version for the Program.
|
583 |
-
|
584 |
-
Later license versions may give you additional or different
|
585 |
-
permissions. However, no additional obligations are imposed on any
|
586 |
-
author or copyright holder as a result of your choosing to follow a
|
587 |
-
later version.
|
588 |
-
|
589 |
-
15. Disclaimer of Warranty.
|
590 |
-
|
591 |
-
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
592 |
-
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
593 |
-
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
594 |
-
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
595 |
-
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
596 |
-
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
597 |
-
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
598 |
-
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
599 |
-
|
600 |
-
16. Limitation of Liability.
|
601 |
-
|
602 |
-
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
603 |
-
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
604 |
-
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
605 |
-
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
606 |
-
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
607 |
-
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
608 |
-
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
609 |
-
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
610 |
-
SUCH DAMAGES.
|
611 |
-
|
612 |
-
17. Interpretation of Sections 15 and 16.
|
613 |
-
|
614 |
-
If the disclaimer of warranty and limitation of liability provided
|
615 |
-
above cannot be given local legal effect according to their terms,
|
616 |
-
reviewing courts shall apply local law that most closely approximates
|
617 |
-
an absolute waiver of all civil liability in connection with the
|
618 |
-
Program, unless a warranty or assumption of liability accompanies a
|
619 |
-
copy of the Program in return for a fee.
|
620 |
-
|
621 |
-
END OF TERMS AND CONDITIONS
|
622 |
-
|
623 |
-
How to Apply These Terms to Your New Programs
|
624 |
-
|
625 |
-
If you develop a new program, and you want it to be of the greatest
|
626 |
-
possible use to the public, the best way to achieve this is to make it
|
627 |
-
free software which everyone can redistribute and change under these terms.
|
628 |
-
|
629 |
-
To do so, attach the following notices to the program. It is safest
|
630 |
-
to attach them to the start of each source file to most effectively
|
631 |
-
state the exclusion of warranty; and each file should have at least
|
632 |
-
the "copyright" line and a pointer to where the full notice is found.
|
633 |
-
|
634 |
-
{one line to give the program's name and a brief idea of what it does.}
|
635 |
-
Copyright (C) {year} {name of author}
|
636 |
-
|
637 |
-
This program is free software: you can redistribute it and/or modify
|
638 |
-
it under the terms of the GNU General Public License as published by
|
639 |
-
the Free Software Foundation, either version 3 of the License, or
|
640 |
-
(at your option) any later version.
|
641 |
-
|
642 |
-
This program is distributed in the hope that it will be useful,
|
643 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
644 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
645 |
-
GNU General Public License for more details.
|
646 |
-
|
647 |
-
You should have received a copy of the GNU General Public License
|
648 |
-
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
649 |
-
|
650 |
-
Also add information on how to contact you by electronic and paper mail.
|
651 |
-
|
652 |
-
If the program does terminal interaction, make it output a short
|
653 |
-
notice like this when it starts in an interactive mode:
|
654 |
-
|
655 |
-
{project} Copyright (C) {year} {fullname}
|
656 |
-
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
657 |
-
This is free software, and you are welcome to redistribute it
|
658 |
-
under certain conditions; type `show c' for details.
|
659 |
-
|
660 |
-
The hypothetical commands `show w' and `show c' should show the appropriate
|
661 |
-
parts of the General Public License. Of course, your program's commands
|
662 |
-
might be different; for a GUI interface, you would use an "about box".
|
663 |
-
|
664 |
-
You should also get your employer (if you work as a programmer) or school,
|
665 |
-
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
666 |
-
For more information on this, and how to apply and follow the GNU GPL, see
|
667 |
-
<http://www.gnu.org/licenses/>.
|
668 |
-
|
669 |
-
The GNU General Public License does not permit incorporating your program
|
670 |
-
into proprietary programs. If your program is a subroutine library, you
|
671 |
-
may consider it more useful to permit linking proprietary applications with
|
672 |
-
the library. If this is what you want to do, use the GNU Lesser General
|
673 |
-
Public License instead of this License. But first, please read
|
674 |
-
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/css/admin.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
div[id*="_carousel_slider"] .widget-top{background:#ddffff !important;border:1px solid #2196f3 !important}div[id*="_carousel_slider"] .widget-top:hover{background:#ffdddd !important;border:1px solid #f44336 !important}.shapla-toggle{margin:1em 0 !important}.shapla-toggle-title{display:block;padding:15px 10px;outline:0;cursor:pointer;position:relative}.shapla-toggle-title:after{position:absolute;right:15px;font:400 20px/1 dashicons;margin-left:-1px;padding-right:3px;vertical-align:top;content:"\f132"}.shapla-toggle-title.ui-state-active:after{content:"\f460"}.shapla-toggle-content{padding:20px;background-color:#f1f1f1}.shapla-toggle--normal .shapla-toggle-title{background:#9e9e9e;color:white;font-weight:600}.shapla-toggle--stroke .shapla-toggle-title{border:1px solid #363f48;font-weight:600}.shapla-toggle--stroke .shapla-toggle-title:after{color:#363f48}.shapla-toggle--stroke .shapla-toggle-content{padding:20px;background-color:#ffffff;border:1px solid #363f48;border-top:none}.overflowHidden{overflow:hidden}.overflowVisible{overflow:visible}.sp-input-group{margin-bottom:10px}.sp-input-group:after{content:"";display:table;clear:both}.sp-input-label label{font-weight:600;margin-right:30px}.sp-input-label,.sp-input-field{float:left;width:100%}.sp-input-desc{color:#999;font-size:0.9em;line-height:1.3em;margin:10px 30px 10px 0}.sp-input-text{width:100%;padding:8px 8px 8px 16px;height:35px !important}.sp-input-text option{padding:8px 4px}.spacing-text{width:62px}@media only screen and (min-width: 600px){.sp-input-label{width:40%}.sp-input-field{width:60%}}@media only screen and (min-width: 783px){.sp-input-label{width:30%}.sp-input-field{width:70%}.sp-input-text{width:25em}}@media only screen and (min-width: 851px){.sp-input-label,.sp-input-field{width:100%}}@media only screen and (min-width: 1200px){.sp-input-label{width:40%}.sp-input-field{width:60%}}@media only screen and (min-width: 1600px){.sp-input-label{width:30%}.sp-input-field{width:70%}}.carousel_slider_images:before,.carousel_slider_images:after{display:table;content:""}.carousel_slider_images:after{clear:both}.carousel_slider_gallery_btn{border:1px solid #616161;color:#616161;background-color:#f1f1f1;padding:5px 15px;text-decoration:none}.carousel_slider_gallery_btn:hover{background-color:#ffffff;color:#616161}.carousel_slider_gallery_list{margin:15px 0 0 0;padding:0;list-style:none;-webkit-box-sizing:border-box;box-sizing:border-box}.carousel_slider_gallery_list:before,.carousel_slider_gallery_list:after{display:table;content:""}.carousel_slider_gallery_list:after{clear:both}.carousel_slider_gallery_list li{float:left;margin:0;padding:0}.carousel_slider_gallery_list li>img{margin-right:10px;margin-bottom:10px;display:block;-webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);box-shadow:0 2px 4px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12)}#field-_post_date_after,#field-_post_date_before,#field-_post_categories,#field-_post_tags,#field-_post_in{display:none}#field-_product_query,#field-_product_categories,#field-_product_tags,#field-_product_in{display:none}#carousel-slider-navigation-settings p,#carousel-slider-responsive-settings p,#carousel-slider-autoplay-settings p{overflow:hidden}#carousel-slider-navigation-settings input.small-text,#carousel-slider-navigation-settings select.small-text,#carousel-slider-responsive-settings input.small-text,#carousel-slider-responsive-settings select.small-text,#carousel-slider-autoplay-settings input.small-text,#carousel-slider-autoplay-settings select.small-text{float:right}.tab-background .slide_bg_wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;padding:1rem 0}.tab-background .slide_thumb{position:relative;float:left;margin-right:1rem;border:solid 1px #e0e0e0;padding:5px}.tab-background .slide_thumb>div{width:320px;height:180px;background-color:#f1f1f1;background-repeat:no-repeat;background-position:top left;background-size:100% auto}.tab-background .slide_thumb>span{display:inline-block;position:absolute;top:0;right:0;font-family:Arial, Helvetica, sans-serif;font-size:14px;line-height:14px;padding:3px 3px;background-color:rgba(0,0,0,0.5);color:#ffffff;cursor:pointer;-webkit-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.tab-background .slide_thumb>span.hidden{display:none !important}.tab-background .slide_image_settings_line{display:block;margin:0.5rem 0}.tab-background .slide_image_settings_line>span{width:150px;display:inline-block}.ui-datepicker{background-color:#ffffff;border:1px solid #cccccc;-webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);box-shadow:0 2px 4px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);padding:8px;display:none}.ui-datepicker-header{background-color:#f1f1f1}.ui-datepicker-prev,.ui-datepicker-next{color:#000;padding:6px;cursor:pointer}.ui-datepicker-prev:hover,.ui-datepicker-next:hover{color:#000}.ui-datepicker-prev{float:left}.ui-datepicker-next{float:right}.ui-datepicker-calendar td>a{border:1px solid #ddd;display:block;padding:6px;text-decoration:none;color:#000;background-color:#f1f1f1}.ui-datepicker-calendar td.ui-datepicker-today>a{color:#000;background-color:#ffeb3b}.ui-datepicker-calendar td.ui-datepicker-current-day>a{color:#fff;background-color:#f44336}.sp-wp-editor-container{max-width:560px}.select2-container{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:block;height:28px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:block;min-height:32px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{-webkit-box-sizing:border-box;box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:white;border:1px solid #aaa;border-radius:0;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;height:1px !important;margin:-1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:0}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:0;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{-webkit-box-sizing:border-box;box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:0;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline{float:right}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid black 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:transparent;border:none;outline:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:white}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:0;outline:0;background-image:-webkit-linear-gradient(top, white 50%, #eee 100%);background-image:-o-linear-gradient(top, white 50%, #eee 100%);background-image:-webkit-gradient(linear, left top, left bottom, color-stop(50%, white), to(#eee));background-image:linear-gradient(to bottom, white 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-webkit-gradient(linear, left top, left bottom, color-stop(50%, #eee), to(#ccc));background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, white 0%, #eee 50%);background-image:-o-linear-gradient(top, white 0%, #eee 50%);background-image:-webkit-gradient(linear, left top, left bottom, from(white), color-stop(50%, #eee));background-image:linear-gradient(to bottom, white 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, white 100%);background-image:-o-linear-gradient(top, #eee 50%, white 100%);background-image:-webkit-gradient(linear, left top, left bottom, color-stop(50%, #eee), to(white));background-image:linear-gradient(to bottom, #eee 50%, white 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:0;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:0;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{float:right}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;-webkit-box-shadow:none;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:white;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:white}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}.carousel_slider-modal{display:none;position:fixed;z-index:10000;left:0;top:0;width:100%;height:100%;overflow:hidden;background-color:#000;background-color:rgba(0,0,0,0.8)}.carousel_slider-modal-content{position:relative;background-color:#fefefe;margin:50px auto 18px;padding:0;border:1px solid #23282d;min-height:300px;width:412px;-webkit-box-shadow:0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);box-shadow:0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19)}.carousel_slider-modal-header{background-color:#23282d;color:white;font-weight:bold;padding:10px 16px}.carousel_slider-modal-body{overflow-x:hidden;overflow-y:scroll;padding:2px 16px}.carousel_slider-modal-footer{background-color:#23282d;color:white;font-weight:bold;padding:10px 16px}.carousel_slider-modal-footer img{display:none;height:14px;vertical-align:middle;width:14px}.carousel_slider-form{margin-left:-15px;margin-right:-15px}.carousel_slider-fields{background-color:#f1f1f1;margin:15px;padding:15px 25px 15px 15px;position:relative;display:inline-block;float:left}.carousel_slider-fields label.setting{display:block;margin-bottom:5px}.carousel_slider-fields label.setting .name{display:inline-block;vertical-align:top;width:75px}.carousel_slider-fields label.setting input,.carousel_slider-fields label.setting textarea{width:250px}.carousel_slider-fields .actions{position:absolute;right:0;top:0}.carousel_slider-fields .actions>span{background:#fff none repeat scroll 0 0;display:block;float:none;cursor:pointer}.carousel_slider-fields .actions>span .dashicons-plus-alt:hover{color:green}.carousel_slider-fields .actions>span .dashicons-trash:hover{color:red}.carousel_slider-close{color:#f1f1f1;float:right;font-size:28px;font-weight:bold}.carousel_slider-close:hover,.carousel_slider-close:focus{color:#fff;text-decoration:none;cursor:pointer}.carousel_slider_url_images_list{margin:15px 0 0;padding:0;list-style:none}.carousel_slider_url_images_list li{float:left;display:inline-block;margin:0 5px 5px 0}@media only screen and (min-width: 820px){.carousel_slider-modal-content{width:810px}}@media only screen and (min-width: 1230px){.carousel_slider-modal-content{width:1220px}}.modal{bottom:0;left:0;position:absolute;right:0;top:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:none;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;overflow:hidden;position:fixed;z-index:10000}.admin-bar .modal{top:32px}.modal .delete-icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0.2);border:none;border-radius:32px;cursor:pointer;display:inline-block;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;font-size:1rem;outline:none;position:relative;vertical-align:top;height:20px;width:20px}.modal .delete-icon:before,.modal .delete-icon:after{background-color:#fff;content:"";display:block;left:50%;position:absolute;top:50%;-webkit-transform:translateX(-50%) translateY(-50%) rotate(45deg);-ms-transform:translateX(-50%) translateY(-50%) rotate(45deg);transform:translateX(-50%) translateY(-50%) rotate(45deg);-webkit-transform-origin:center center;-ms-transform-origin:center center;transform-origin:center center}.modal .delete-icon:before{height:2px;width:50%}.modal .delete-icon:after{height:50%;width:2px}.modal .delete-icon:hover,.modal .delete-icon:focus{background-color:rgba(0,0,0,0.3)}.modal .delete-icon:active{background-color:rgba(0,0,0,0.4)}.modal .delete-icon.is-small{height:16px;width:16px}.modal .delete-icon.is-medium{height:24px;width:24px}.modal .delete-icon.is-large{height:32px;width:32px}.modal.is-active{display:-webkit-box;display:-ms-flexbox;display:flex}.modal-background{bottom:0;left:0;position:absolute;right:0;top:0;background-color:rgba(0,0,0,0.86)}.modal-content,.modal-card{margin:0 20px;max-height:calc(100vh - 160px);overflow:auto;position:relative;width:100%}@media screen and (min-width: 769px), print{.modal-content,.modal-card{margin:0 auto;max-height:calc(100vh - 40px);width:640px}}.modal-close{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0.2);border:none;border-radius:32px;cursor:pointer;display:inline-block;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;font-size:1rem;outline:none;position:relative;vertical-align:top;height:20px;width:20px;background:none;height:40px;position:fixed;right:20px;top:20px;width:40px}.modal-close:before,.modal-close:after{background-color:#fff;content:"";display:block;left:50%;position:absolute;top:50%;-webkit-transform:translateX(-50%) translateY(-50%) rotate(45deg);-ms-transform:translateX(-50%) translateY(-50%) rotate(45deg);transform:translateX(-50%) translateY(-50%) rotate(45deg);-webkit-transform-origin:center center;-ms-transform-origin:center center;transform-origin:center center}.modal-close:before{height:2px;width:50%}.modal-close:after{height:50%;width:2px}.modal-close:hover,.modal-close:focus{background-color:rgba(0,0,0,0.3)}.modal-close:active{background-color:rgba(0,0,0,0.4)}.modal-close.is-small{height:16px;width:16px}.modal-close.is-medium{height:24px;width:24px}.modal-close.is-large{height:32px;width:32px}.modal-card{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;max-height:calc(100vh - 40px);overflow:hidden}.modal-card-head,.modal-card-foot{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#f5f5f5;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;margin:0;padding:20px;position:relative}.modal-card-head{border-bottom:1px solid #f5f5f5;border-top-left-radius:5px;border-top-right-radius:5px}.modal-card-title{color:#212121;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;font-size:1.5rem;line-height:1;margin:0;padding:0}.modal-card-foot{border-bottom-left-radius:5px;border-bottom-right-radius:5px;border-top:1px solid #f5f5f5}.modal-card-foot .button:not(:last-child){margin-right:10px}.modal-card-body{-webkit-overflow-scrolling:touch;background-color:#fff;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;overflow:auto;margin:0;padding:20px}.cs-tooltip{display:inline-block;width:1.5em;height:1.5em;float:right}.cs-tooltip:after{font-family:Dashicons;speak:none;font-weight:400;text-transform:none;-webkit-font-smoothing:antialiased;width:100%;height:100%;text-align:center;content:"\f223";cursor:help}#tiptip_holder{display:none;position:absolute;top:0;left:0;z-index:99999}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_right{padding-left:5px}#tiptip_holder.tip_left{padding-right:5px}#tiptip_content{font-size:11px;color:#fff;text-shadow:0 0 2px #000;padding:4px 8px;border:1px solid rgba(255,255,255,0.25);background-color:#191919;background-color:rgba(25,25,25,0.92);background-image:-webkit-gradient(linear, 0% 0%, 0% 100%, from(transparent), to(#000));border-radius:3px;-webkit-border-radius:3px;-moz-border-radius:3px;box-shadow:0 0 3px #555;-webkit-box-shadow:0 0 3px #555;-moz-box-shadow:0 0 3px #555}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}#tiptip_holder.tip_top #tiptip_arrow{border-top-color:#fff;border-top-color:rgba(255,255,255,0.35)}#tiptip_holder.tip_bottom #tiptip_arrow{border-bottom-color:#fff;border-bottom-color:rgba(255,255,255,0.35)}#tiptip_holder.tip_right #tiptip_arrow{border-right-color:#fff;border-right-color:rgba(255,255,255,0.35)}#tiptip_holder.tip_left #tiptip_arrow{border-left-color:#fff;border-left-color:rgba(255,255,255,0.35)}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-left:-6px;border-top-color:#191919;border-top-color:rgba(25,25,25,0.92)}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-left:-6px;border-bottom-color:#191919;border-bottom-color:rgba(25,25,25,0.92)}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-left:-5px;border-right-color:#191919;border-right-color:rgba(25,25,25,0.92)}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-left:-7px;border-left-color:#191919;border-left-color:rgba(25,25,25,0.92)}@media screen and (-webkit-min-device-pixel-ratio: 0){#tiptip_content{padding:4px 8px 5px 8px;background-color:rgba(45,45,45,0.88)}#tiptip_holder.tip_bottom #tiptip_arrow_inner{border-bottom-color:rgba(45,45,45,0.88)}#tiptip_holder.tip_top #tiptip_arrow_inner{border-top-color:rgba(20,20,20,0.92)}}.shapla-nav{list-style:none !important;margin:0;padding:0}.shapla-nav:before,.shapla-nav:after{display:table;content:' '}.shapla-nav:after{clear:both}.shapla-nav li{float:left;position:relative;margin:0 1px -1px 0 !important;z-index:1;outline:0}.shapla-nav a{text-decoration:none;display:block;padding:15px 10px;line-height:1;outline:0}.shapla-tab{margin:0 0 2em 0;padding:21px 20px 20px 20px}.shapla-tab p:first-of-type{margin-top:0}.shapla-tab p:last-of-type{margin-bottom:0}.shapla-tabs--normal .shapla-nav a{background:#323232;color:#fff}.shapla-tabs--normal .shapla-nav .ui-tabs-active a{background:#f1f1f1;color:#323232;outline:0}.shapla-tabs--normal .shapla-tab{background:#f1f1f1}.shapla-tabs--stroke .shapla-nav li{margin:0 -1px 0 0 !important}.shapla-tabs--stroke .shapla-nav a{border:1px solid #323232;color:#323232}.shapla-tabs--stroke .shapla-nav .ui-tabs-active a{border-bottom-color:white}.shapla-tabs--stroke .shapla-tab{border:1px solid #323232;margin-top:-1px}
|
|
trunk/assets/css/index.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// Code is Poetry
|
|
|
|
trunk/assets/css/style.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
.carousel-slider{display:none;width:100%;-webkit-tap-highlight-color:transparent;position:relative;z-index:1}.carousel-slider .owl-stage{position:relative;-ms-touch-action:pan-Y}.carousel-slider .owl-stage:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.carousel-slider .owl-stage-outer{position:relative;overflow:hidden;-webkit-transform:translate3d(0px, 0px, 0px)}.carousel-slider .owl-item{position:relative;min-height:1px;float:left;-webkit-backface-visibility:hidden;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}.carousel-slider .owl-item img{display:block;width:100%;-webkit-transform-style:preserve-3d}.carousel-slider .owl-nav.disabled,.carousel-slider .owl-dots.disabled{display:none}.carousel-slider .owl-nav .owl-prev,.carousel-slider .owl-nav .owl-next,.carousel-slider .owl-dot{cursor:hand;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.carousel-slider.owl-loaded{display:block}.carousel-slider.owl-loading{opacity:0;display:block}.carousel-slider.owl-hidden{opacity:0}.carousel-slider.owl-refresh .owl-item{visibility:hidden}.carousel-slider.owl-drag .owl-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.carousel-slider.owl-grab{cursor:-webkit-grab;cursor:grab}.carousel-slider.owl-rtl{direction:rtl}.carousel-slider.owl-rtl .owl-item{float:right}.no-js .carousel-slider{display:block}.carousel-slider .animated{-webkit-animation-duration:1000ms;animation-duration:1000ms;-webkit-animation-fill-mode:both;animation-fill-mode:both}.carousel-slider .owl-animated-in{z-index:0}.carousel-slider .owl-animated-out{z-index:1}.carousel-slider .fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.owl-height{-webkit-transition:height 500ms ease-in-out;-o-transition:height 500ms ease-in-out;transition:height 500ms ease-in-out}.carousel-slider .owl-item img.owl-lazy{background:url("../img/ajax-loader.gif") no-repeat center;min-width:32px;min-height:32px}.carousel-slider .owl-video-wrapper{position:relative;height:100%;background:#000}.carousel-slider .owl-video-play-icon{position:absolute;height:80px;width:80px;left:50%;top:50%;margin-left:-40px;margin-top:-40px;background:url("../img/play.svg") no-repeat;cursor:pointer;z-index:1;-webkit-backface-visibility:hidden;-webkit-transition:-webkit-transform 100ms ease;transition:-webkit-transform 100ms ease;-o-transition:transform 100ms ease;transition:transform 100ms ease;transition:transform 100ms ease, -webkit-transform 100ms ease}.carousel-slider .owl-video-play-icon:hover{-webkit-transform:scale(1.3, 1.3);-ms-transform:scale(1.3, 1.3);transform:scale(1.3, 1.3)}.carousel-slider .owl-video-playing .owl-video-tn,.carousel-slider .owl-video-playing .owl-video-play-icon{display:none}.carousel-slider .owl-video-tn{opacity:0;height:100%;background-position:center center;background-repeat:no-repeat;background-size:contain;-webkit-transition:opacity 400ms ease;-o-transition:opacity 400ms ease;transition:opacity 400ms ease}.carousel-slider .owl-video-frame{position:relative;z-index:1;height:100%;width:100%}.carousel-slider .owl-nav .owl-prev,.carousel-slider .owl-nav .owl-next{height:48px;width:48px;display:inline-block;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);opacity:0;margin:0;padding:0;-webkit-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.carousel-slider .owl-nav .owl-prev{left:0}.carousel-slider .owl-nav .owl-next{right:0}.carousel-slider:hover .owl-nav .owl-prev,.carousel-slider:hover .owl-nav .owl-next{opacity:1}.carousel-slider.arrows-visible-always .owl-prev,.carousel-slider.arrows-visible-always .owl-next{opacity:1}.carousel-slider.arrows-outside .owl-nav .owl-prev{left:-48px}.carousel-slider.arrows-outside .owl-nav .owl-next{right:-48px}.carousel-slider .owl-dots{text-align:center;-webkit-tap-highlight-color:transparent;margin-top:10px}.carousel-slider .owl-dots .owl-dot{display:inline-block;zoom:1;*display:inline}.carousel-slider .owl-dots .owl-dot span{width:10px;height:10px;margin:4px 8px;background-color:#9e9e9e;display:block;-webkit-backface-visibility:visible;-webkit-transition:opacity 200ms ease;-o-transition:opacity 200ms ease;transition:opacity 200ms ease}.carousel-slider .owl-dots .owl-dot.active span,.carousel-slider .owl-dots .owl-dot:hover span{background-color:#4caf50}.carousel-slider.dots-center .owl-dots{text-align:center}.carousel-slider.dots-left .owl-dots{text-align:left}.carousel-slider.dots-left .owl-dots:first-child span{margin-left:0}.carousel-slider.dots-right .owl-dots{text-align:right}.carousel-slider.dots-right .owl-dots:last-child span{margin-right:0}.carousel-slider.dots-visible-hover .owl-dots{opacity:0}.carousel-slider.dots-visible-hover:hover .owl-dots{opacity:1}.carousel-slider.dots-circle .owl-dots .owl-dot span{border-radius:9999px}.carousel-slider__post{border:1px solid #f1f1f1;float:left;height:450px;width:100%;position:relative;display:block;overflow:hidden}.carousel-slider__post-content{bottom:0;position:absolute;top:0;-webkit-transition:all 0.2s ease 0s;-o-transition:all 0.2s ease 0s;transition:all 0.2s ease 0s;width:100%;display:block}.carousel-slider__post-image{border-bottom:1px solid #f1f1f1;display:block;height:207px;line-height:0;margin:0 auto;overflow:hidden;text-align:center;width:100%;background-color:#f1f1f1;background-size:cover;background-position:center center}.carousel-slider__post-title{display:block;margin:10px 15px 0;max-height:70px}.carousel-slider__post-title h1{color:#4a4a4a;font:bold 18px/1.4em Arial,sans-serif;margin-bottom:0;margin-top:0}.carousel-slider__post-excerpt{color:#7d7d7d;font-size:14px;line-height:1.5em;padding:10px 15px 5px;text-align:left;width:100%;position:absolute;top:285px}.carousel-slider__post-excerpt-overlay{background:transparent none repeat scroll 0 0;display:block;height:20px;width:100%}.carousel-slider__post-meta{bottom:10px;color:#8e8e8e;font-size:12px;left:0;padding:0 15px;position:absolute;width:100%;display:block}.carousel-slider__post-publication-meta{background-color:white;display:block;padding-top:15px;width:100%;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.carousel-slider__post-details-info{display:inline-block}.carousel-slider__post-author{display:block;font-style:normal;line-height:1em;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;margin-bottom:5px}.carousel-slider__post-author-link{color:#8e8e8e;display:inline-block;max-width:175px;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.carousel-slider__post-category{color:#4cc1be;text-transform:uppercase;position:absolute;right:15px;top:50px;z-index:1}.carousel-slider__product{position:relative;text-align:center;border:1px solid #f1f1f1}.carousel-slider__product .woocommerce-LoopProduct-link{display:block;overflow:hidden;margin:0 0 .5em}.carousel-slider__product .onsale{border:0 none;line-height:1;margin:0;padding:15px 5px;color:#f1f1f1;background-color:#96588a;position:absolute;left:8px;top:8px;border-radius:50%}.carousel-slider__product h3{padding:.5em 1em;text-align:left;margin:0;font-size:1em;color:#333}.carousel-slider__product a{text-decoration:none;-webkit-box-shadow:none;box-shadow:none}.carousel-slider__product a img{width:100%;height:auto;display:block;-webkit-box-shadow:none;box-shadow:none}.carousel-slider__product strong{display:block}.carousel-slider__product .price{color:#333;display:inline-block;font-weight:normal;margin:.5em 1em;font-size:.857em;float:left}.carousel-slider__product .price del{color:inherit;background-color:transparent;opacity:0.5;display:inline-block}.carousel-slider__product .price ins{color:inherit;background-color:transparent;font-weight:bold}.carousel-slider__product .star-rating{color:#96588a;display:inline-block;margin:.5em 1em;float:right;overflow:hidden;position:relative;height:1em;line-height:1;font-size:1em;width:5.4em;font-family:'star'}.carousel-slider__product .star-rating:before{content:"\73\73\73\73\73";float:left;top:0;left:0;position:absolute}.carousel-slider__product .star-rating span{overflow:hidden;float:left;top:0;left:0;position:absolute;padding-top:1.5em}.carousel-slider__product .star-rating span:before{content:"\53\53\53\53\53";top:0;position:absolute;left:0}.carousel-slider__product a.add_to_cart_button,.carousel-slider__product a.added_to_cart,.carousel-slider__product a.quick_view{color:#f1f1f1;background-color:#96588a;margin:1em;line-height:1;cursor:pointer;position:relative;text-decoration:none;overflow:visible;padding:.5em 1em;font-weight:normal;border-radius:3px;left:auto;border:0;white-space:nowrap;display:block;background-image:none;box-shadow:none;-webkit-box-shadow:none;text-shadow:none}.carousel-slider__product a.add_to_cart_button:hover,.carousel-slider__product a.added_to_cart:hover,.carousel-slider__product a.quick_view:hover{color:#f1f1f1;background-color:#96588a;text-decoration:none;background-image:none}.carousel-slider__product a.add_to_cart_button.loading{opacity:0.25;padding-right:2.618em}.carousel-slider__product a.add_to_cart_button.loading:after{font-family:"WooCommerce";content:"\e01c";vertical-align:top;-webkit-font-smoothing:antialiased;font-weight:normal;position:absolute;top:.618em;right:1em;-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite}.carousel-slider__product a.add_to_cart_button.added:after{font-family:'WooCommerce';content:"\e017";margin-left:.53em;vertical-align:bottom}.carousel-slider__content .slide-content-inner{padding:0}.carousel-slider__content .slide-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0 auto;padding:1rem;max-width:1140px;min-height:300px}.carousel-slider__content .heading-title-wrapper,.carousel-slider__content .description-title-wrapper{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;padding:0}.carousel-slider__content .heading-title,.carousel-slider__content .description-title{margin:0;padding:0}.carousel-slider__content .buttons-wrapper-one{margin-right:0.5rem}.carousel-slider__content .buttons-wrapper-two{margin-left:0.5rem}.carousel-slider__content img{max-width:100%;width:auto !important}.carousel-slider .carousel-slider__item{position:relative}.carousel-slider .carousel-slider__item img{display:block;margin-left:auto;margin-right:auto;max-width:100%;height:auto}.carousel-slider .carousel-slider__caption{position:relative}.carousel-slider .carousel-slider__caption .title{overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;color:#474747;font-size:16px;font-weight:500;margin:10px 0 0;text-align:center}.carousel-slider .carousel-slider__caption .caption{font-size:14px;font-weight:300;margin:10px 0 0;text-align:center}.cs-button{-webkit-appearance:none;-webkit-font-smoothing:inherit;display:inline-block;font-size:1rem;line-height:1;padding:0.75em 1em;border-radius:0;text-decoration:none;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:all 200ms ease-in-out;-o-transition:all 200ms ease-in-out;transition:all 200ms ease-in-out}.cs-button:hover{text-decoration:none}.cs-button--normal{opacity:0.9;filter:alpha(opacity=90)}.cs-button--stroke{background:transparent;border-width:1px;border-style:solid;border-color:transparent}.cs-button--medium{font-size:1.2rem;padding:0.9em 1.2em}.cs-button--large{font-size:1.5rem;padding:0.9em 1.6em}.mfp-bg{top:0;left:0;width:100%;height:100%;z-index:1042;overflow:hidden;position:fixed;background:#0b0b0b;opacity:.8}.mfp-wrap{top:0;left:0;width:100%;height:100%;z-index:1043;position:fixed;outline:none !important;-webkit-backface-visibility:hidden}.mfp-container{text-align:center;position:absolute;width:100%;height:100%;left:0;top:0;padding:0 8px;-webkit-box-sizing:border-box;box-sizing:border-box}.mfp-container:before{content:'';display:inline-block;height:100%;vertical-align:middle}.mfp-align-top .mfp-container:before{display:none}.mfp-content{position:relative;display:inline-block;vertical-align:middle;margin:0 auto;text-align:left;z-index:1045}.mfp-inline-holder .mfp-content,.mfp-ajax-holder .mfp-content{width:100%;cursor:auto}.mfp-ajax-cur{cursor:progress}.mfp-zoom-out-cur,.mfp-zoom-out-cur .mfp-image-holder .mfp-close{cursor:-webkit-zoom-out;cursor:zoom-out}.mfp-zoom{cursor:pointer;cursor:-webkit-zoom-in;cursor:zoom-in}.mfp-auto-cursor .mfp-content{cursor:auto}.mfp-close,.mfp-arrow,.mfp-preloader,.mfp-counter{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mfp-loading.mfp-figure{display:none}.mfp-hide{display:none !important}.mfp-preloader{color:#CCC;position:absolute;top:50%;width:auto;text-align:center;margin-top:-0.8em;left:8px;right:8px;z-index:1044}.mfp-preloader a{color:#CCC}.mfp-preloader a:hover{color:#fff}.mfp-s-ready .mfp-preloader{display:none}.mfp-s-error .mfp-content{display:none}button.mfp-close,button.mfp-arrow{overflow:visible;cursor:pointer;background:transparent;border:0;-webkit-appearance:none;display:block;outline:none;padding:0;z-index:1046;-webkit-box-shadow:none;box-shadow:none;-ms-touch-action:manipulation;touch-action:manipulation}button::-moz-focus-inner{padding:0;border:0}.mfp-close{width:44px;height:44px;line-height:44px;position:absolute;right:0;top:0;text-decoration:none;text-align:center;opacity:.65;padding:0 0 18px 10px;color:#fff;font-style:normal;font-size:28px;font-family:Arial, Baskerville, monospace}.mfp-close:hover,.mfp-close:focus{opacity:1}.mfp-close:active{top:1px}.mfp-close-btn-in .mfp-close{color:#333}.mfp-image-holder .mfp-close,.mfp-iframe-holder .mfp-close{color:#fff;right:-6px;text-align:right;padding-right:6px;width:100%}.mfp-counter{position:absolute;top:0;right:0;color:#CCC;font-size:12px;line-height:18px;white-space:nowrap}.mfp-arrow{position:absolute;opacity:.65;margin:0;top:50%;margin-top:-55px;padding:0;width:90px;height:110px;-webkit-tap-highlight-color:transparent}.mfp-arrow:active{margin-top:-54px}.mfp-arrow:hover,.mfp-arrow:focus{opacity:1}.mfp-arrow:before,.mfp-arrow:after{content:'';display:block;width:0;height:0;position:absolute;left:0;top:0;margin-top:35px;margin-left:35px;border:medium inset transparent}.mfp-arrow:after{border-top-width:13px;border-bottom-width:13px;top:8px}.mfp-arrow:before{border-top-width:21px;border-bottom-width:21px;opacity:0.7}.mfp-arrow-left{left:0}.mfp-arrow-left:after{border-right:17px solid #fff;margin-left:31px}.mfp-arrow-left:before{margin-left:25px;border-right:27px solid #3F3F3F}.mfp-arrow-right{right:0}.mfp-arrow-right:after{border-left:17px solid #fff;margin-left:39px}.mfp-arrow-right:before{border-left:27px solid #3F3F3F}.mfp-iframe-holder{padding-top:40px;padding-bottom:40px}.mfp-iframe-holder .mfp-content{line-height:0;width:100%;max-width:900px}.mfp-iframe-holder .mfp-close{top:-40px}.mfp-iframe-scaler{width:100%;height:0;overflow:hidden;padding-top:56.25%}.mfp-iframe-scaler iframe{position:absolute;display:block;top:0;left:0;width:100%;height:100%;-webkit-box-shadow:0 0 8px rgba(0,0,0,0.6);box-shadow:0 0 8px rgba(0,0,0,0.6);background:#000}img.mfp-img{width:auto;max-width:100%;height:auto;display:block;line-height:0;-webkit-box-sizing:border-box;box-sizing:border-box;padding:40px 0 40px;margin:0 auto}.mfp-figure{line-height:0}.mfp-figure:after{content:'';position:absolute;left:0;top:40px;bottom:40px;display:block;right:0;width:auto;height:auto;z-index:-1;-webkit-box-shadow:0 0 8px rgba(0,0,0,0.6);box-shadow:0 0 8px rgba(0,0,0,0.6);background:#444}.mfp-figure small{color:#BDBDBD;display:block;font-size:12px;line-height:14px}.mfp-figure figure{margin:0}.mfp-bottom-bar{margin-top:-36px;position:absolute;top:100%;left:0;width:100%;cursor:auto}.mfp-title{text-align:left;line-height:18px;color:#F3F3F3;word-wrap:break-word;padding-right:36px}.mfp-image-holder .mfp-content{max-width:100%}.mfp-gallery .mfp-image-holder .mfp-figure{cursor:pointer}@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px){.mfp-img-mobile .mfp-image-holder{padding-left:0;padding-right:0}.mfp-img-mobile img.mfp-img{padding:0}.mfp-img-mobile .mfp-figure:after{top:0;bottom:0}.mfp-img-mobile .mfp-figure small{display:inline;margin-left:5px}.mfp-img-mobile .mfp-bottom-bar{background:rgba(0,0,0,0.6);bottom:0;margin:0;top:auto;padding:3px 5px;position:fixed;-webkit-box-sizing:border-box;box-sizing:border-box}.mfp-img-mobile .mfp-bottom-bar:empty{padding:0}.mfp-img-mobile .mfp-counter{right:5px;top:3px}.mfp-img-mobile .mfp-close{top:0;right:0;width:35px;height:35px;line-height:35px;background:rgba(0,0,0,0.6);position:fixed;text-align:center;padding:0}}@media all and (max-width: 900px){.mfp-arrow{-webkit-transform:scale(0.75);-ms-transform:scale(0.75);transform:scale(0.75)}.mfp-arrow-left{-webkit-transform-origin:0;-ms-transform-origin:0;transform-origin:0}.mfp-arrow-right{-webkit-transform-origin:100%;-ms-transform-origin:100%;transform-origin:100%}.mfp-container{padding-left:6px;padding-right:6px}}.mfp-with-zoom .mfp-container,.mfp-with-zoom.mfp-bg{opacity:0;-webkit-backface-visibility:hidden;-webkit-transition:all 0.3s ease-out;-o-transition:all 0.3s ease-out;transition:all 0.3s ease-out}.mfp-with-zoom.mfp-ready .mfp-container{opacity:1}.mfp-with-zoom.mfp-ready.mfp-bg{opacity:0.8}.mfp-with-zoom.mfp-removing .mfp-container,.mfp-with-zoom.mfp-removing.mfp-bg{opacity:0}.mfp-content .product{background-color:#ffffff;display:table;margin:0 auto;padding:15px}.mfp-content .product .images{display:inline-block;float:left;max-width:600px}.mfp-content .product .images img{display:block}.mfp-content .product .onsale{left:24px;top:24px;position:absolute}.mfp-content .product .summary{display:inline-block;margin-left:15px;width:300px}.mfp-content .product .product_title,.mfp-content .product .description{margin:1em 0}.mfp-content .product .price{display:inline-block;font-weight:normal;margin:.5em 1em;font-size:.857em;float:left}.mfp-content .product .price del{color:inherit;background-color:transparent;opacity:0.5;display:inline-block}.mfp-content .product .price ins{color:inherit;background-color:transparent;font-weight:bold}.mfp-content .product .star-rating{display:inline-block;margin:.5em 1em;float:right;overflow:hidden;position:relative;height:1em;line-height:1;font-size:1em;width:5.4em;font-family:'star'}.mfp-content .product .star-rating:before{content:"\73\73\73\73\73";float:left;top:0;left:0;position:absolute}.mfp-content .product .star-rating span{overflow:hidden;float:left;top:0;left:0;position:absolute;padding-top:1.5em}.mfp-content .product .star-rating span:before{content:"\53\53\53\53\53";top:0;position:absolute;left:0}.mfp-content .product a.add_to_cart_button,.mfp-content .product a.added_to_cart{margin:0;line-height:1;cursor:pointer;position:relative;text-decoration:none;overflow:visible;padding:.5em 1em;font-weight:normal;border-radius:3px;left:auto;border:0;white-space:nowrap;display:inline-block;background-image:none;box-shadow:none;-webkit-box-shadow:none;text-shadow:none}.mfp-content .product a.add_to_cart_button:hover,.mfp-content .product a.added_to_cart:hover{text-decoration:none;background-image:none}.mfp-content .product a.add_to_cart_button.loading{opacity:0.25;padding-right:2.618em}.mfp-content .product a.add_to_cart_button.loading:after{font-family:"WooCommerce";content:"\e01c";vertical-align:top;-webkit-font-smoothing:antialiased;font-weight:normal;position:absolute;top:.618em;right:1em;-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite}.mfp-content .product a.add_to_cart_button.added:after{font-family:'WooCommerce';content:"\e017";margin-left:.53em;vertical-align:bottom}.mfp-inline-holder .mfp-content,.mfp-ajax-holder .mfp-content{max-width:945px;margin-top:40px;margin-bottom:40px}@media (max-width: 600px){.mfp-content .product .images{margin-bottom:30px}.mfp-content .product .summary{display:block;margin:0;width:100%}}@media (min-width: 601px){.mfp-content .product .images{display:inline-block;width:49%}.mfp-content .product .summary{display:inline-block;margin:0 0 0 1%;width:49%}}
|
|
trunk/assets/img/ajax-loader.gif
DELETED
Binary file
|
trunk/assets/img/index.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// Code is Poetry
|
|
|
|
trunk/assets/img/logo.svg
DELETED
@@ -1,121 +0,0 @@
|
|
1 |
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2 |
-
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#"
|
3 |
-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg"
|
4 |
-
xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
5 |
-
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="256" height="256" viewBox="0 0 500 500"
|
6 |
-
id="svg2" version="1.1" inkscape:version="0.91 r13725" sodipodi:docname="icon.svg">
|
7 |
-
<defs id="defs4"/>
|
8 |
-
<sodipodi:namedview id="base" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0"
|
9 |
-
inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="1.979899"
|
10 |
-
inkscape:cx="200.15847" inkscape:cy="117.31086" inkscape:document-units="px"
|
11 |
-
inkscape:current-layer="layer1" showgrid="false" units="px" inkscape:window-width="1366"
|
12 |
-
inkscape:window-height="697" inkscape:window-x="0" inkscape:window-y="24"
|
13 |
-
inkscape:window-maximized="1">
|
14 |
-
<inkscape:grid type="xygrid" id="grid4159"/>
|
15 |
-
</sodipodi:namedview>
|
16 |
-
<metadata id="metadata7">
|
17 |
-
<rdf:RDF>
|
18 |
-
<cc:Work rdf:about="">
|
19 |
-
<dc:format>image/svg+xml</dc:format>
|
20 |
-
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
|
21 |
-
<dc:title/>
|
22 |
-
</cc:Work>
|
23 |
-
</rdf:RDF>
|
24 |
-
</metadata>
|
25 |
-
<g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" transform="translate(0,-552.36216)">
|
26 |
-
<g id="g3367" transform="translate(9.4331868,-0.18496445)">
|
27 |
-
<rect y="642.36224" x="69.999985" height="200" width="100" id="rect3336"
|
28 |
-
style="fill:#f44336;fill-opacity:1"/>
|
29 |
-
<rect y="642.36218" x="190.02231" height="200" width="100" id="rect3336-3"
|
30 |
-
style="fill:#4caf50;fill-opacity:1"/>
|
31 |
-
<rect y="642.36224" x="310.02234" height="200" width="100" id="rect3336-6"
|
32 |
-
style="fill:#2196f3;fill-opacity:1"/>
|
33 |
-
<g transform="matrix(2.5,0,0,2.5,19.919128,722.36216)" id="g4280">
|
34 |
-
<rect style="fill:none" y="0" x="0" width="20" height="20" id="rect4268"/>
|
35 |
-
<g id="g4270">
|
36 |
-
<path inkscape:connector-curvature="0" d="m 14,5 -5,5 5,5 -1,2 -7,-7 7,-7 z" id="path4272"/>
|
37 |
-
</g>
|
38 |
-
</g>
|
39 |
-
<g inkscape:transform-center-y="2.0203051" inkscape:transform-center-x="12.121831"
|
40 |
-
transform="matrix(2.5,0,0,2.5,410.01132,722.36216)" id="g4351">
|
41 |
-
<rect style="fill:none" y="0" x="0" width="20" height="20" id="rect4339"/>
|
42 |
-
<g id="g4341">
|
43 |
-
<path inkscape:connector-curvature="0" d="M 6,15 11,10 6,5 7,3 14,10 7,17 Z" id="path4343"/>
|
44 |
-
</g>
|
45 |
-
</g>
|
46 |
-
</g>
|
47 |
-
<g transform="matrix(1.0251246,0,0,1.9522527,2.3334664,231.46917)"
|
48 |
-
style="font-style:normal;font-weight:normal;font-size:40px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#00d1b2;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
49 |
-
id="flowRoot4356">
|
50 |
-
<g id="g3499" style="fill:#00d1b2;fill-opacity:1">
|
51 |
-
<path id="path3455"
|
52 |
-
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:56.25px;font-family:Lobster;-inkscape-font-specification:Lobster;text-align:center;text-anchor:middle;fill:#00d1b2;fill-opacity:1"
|
53 |
-
d="m 102.04871,369.91455 q -1.1261,2.82898 -3.04871,4.83399 -1.922607,1.97753 -4.174805,3.24096 -2.224731,1.23596 -4.559326,1.81275 -2.307129,0.57678 -4.257202,0.57678 -3.131104,0 -5.438232,-0.74158 -2.307129,-0.74158 -3.845215,-2.38953 -1.51062,-1.64794 -2.279663,-4.28466 -0.741578,-2.63672 -0.741578,-6.42701 0,-1.9226 0.219727,-4.1748 0.247192,-2.27966 0.769043,-4.69666 0.521851,-2.41699 1.318359,-4.86145 0.823975,-2.44445 1.977539,-4.69665 1.153565,-2.27966 2.664185,-4.2572 1.51062,-1.97754 3.405762,-3.43323 1.895141,-1.45569 4.20227,-2.27966 2.307129,-0.85144 5.081177,-0.85144 1.950073,0 3.652954,0.43945 1.730347,0.41199 2.993775,1.31836 1.29089,0.90637 2.005,2.33459 0.74158,1.42823 0.74158,3.43323 0,1.1261 -0.21972,2.0874 -0.19227,0.93384 -0.68665,1.64795 -0.46692,0.68665 -1.23596,1.07117 -0.74158,0.38452 -1.812747,0.38452 -0.659179,0 -1.538086,-0.24719 -0.85144,-0.24719 -1.647949,-1.2085 0.494385,-0.24719 0.961304,-0.76904 0.466919,-0.54932 0.823975,-1.23596 0.357055,-0.71411 0.576782,-1.53809 0.219726,-0.82397 0.219726,-1.64795 0,-0.65918 -0.19226,-1.29089 -0.164795,-0.63171 -0.576783,-1.09863 -0.411987,-0.46692 -1.071167,-0.74158 -0.659179,-0.30213 -1.593017,-0.30213 -1.565552,0 -3.048706,1.15357 -1.455689,1.15356 -2.774048,3.1311 -1.290894,1.95008 -2.389526,4.55933 -1.071167,2.60925 -1.84021,5.52063 -0.769043,2.91138 -1.208496,5.98755 -0.439454,3.07617 -0.439454,5.93262 0,1.95007 0.274659,3.57055 0.302124,1.59302 1.043701,2.74658 0.769043,1.15357 2.059936,1.81275 1.31836,0.63171 3.378296,0.63171 3.323364,0 6.152344,-1.48315 2.828979,-1.48316 4.806516,-4.14734 l 1.2909,0.57678 z"
|
54 |
-
inkscape:connector-curvature="0"/>
|
55 |
-
<path id="path3457"
|
56 |
-
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:56.25px;font-family:Lobster;-inkscape-font-specification:Lobster;text-align:center;text-anchor:middle;fill:#00d1b2;fill-opacity:1"
|
57 |
-
d="m 132.5907,369.3927 q -0.79651,2.27966 -1.73035,3.95508 -0.93384,1.67541 -1.95007,2.82898 -0.98877,1.15356 -2.03247,1.86767 -1.0437,0.71411 -2.03247,1.09864 -0.98877,0.38452 -1.89514,0.52185 -0.90638,0.13733 -1.64795,0.13733 -2.38953,0 -3.81775,-1.2909 -1.40076,-1.31836 -1.70288,-3.87268 -0.68665,0.96131 -1.51062,1.89514 -0.82398,0.90638 -1.84021,1.64795 -1.01624,0.71411 -2.27967,1.18103 -1.23596,0.43946 -2.74658,0.43946 -1.45569,0 -2.80151,-0.46692 -1.34583,-0.46692 -2.38953,-1.53809 -1.0437,-1.07117 -1.67541,-2.80151 -0.631718,-1.73035 -0.631718,-4.22974 0,-1.92261 0.384518,-4.11987 0.38453,-2.19727 1.18103,-4.39453 0.79651,-2.19727 1.97754,-4.20227 1.2085,-2.03247 2.80152,-3.57056 1.62048,-1.56555 3.65295,-2.47192 2.03247,-0.93384 4.47693,-0.93384 2.38953,0 3.46069,0.82397 1.09864,0.82398 1.09864,2.03247 l 0,0.41199 0.60424,-2.99377 8.10242,0 -4.03747,19.11621 q -0.13733,0.46692 -0.19227,0.93384 -0.0549,0.43945 -0.0549,0.8789 0,2.41699 2.30713,2.41699 0.82398,0 1.51062,-0.41198 0.71411,-0.43946 1.2909,-1.15357 0.57678,-0.71411 1.01623,-1.67541 0.43945,-0.98877 0.74158,-2.05994 l 2.36206,0 z m -14.17237,-12.68921 q 0,-0.24719 -0.10986,-0.60425 -0.10986,-0.38452 -0.38452,-0.71411 -0.24719,-0.35705 -0.68665,-0.57678 -0.43945,-0.24719 -1.12609,-0.24719 -1.18103,0 -2.2522,0.76904 -1.0437,0.76904 -1.92261,2.05994 -0.8789,1.26342 -1.56555,2.88391 -0.68665,1.62048 -1.18103,3.35083 -0.46692,1.70288 -0.71411,3.37829 -0.24719,1.64795 -0.24719,2.96631 0,1.62049 0.30212,2.49939 0.30212,0.87891 0.71411,1.31836 0.43945,0.41199 0.93384,0.49439 0.49438,0.0824 0.87891,0.0824 0.63171,0 1.31835,-0.30212 0.71412,-0.32959 1.34583,-0.93384 0.65918,-0.63171 1.18103,-1.56555 0.54932,-0.93384 0.82397,-2.1698 l 2.69165,-12.68921 z"
|
58 |
-
inkscape:connector-curvature="0"/>
|
59 |
-
<path id="path3459"
|
60 |
-
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:56.25px;font-family:Lobster;-inkscape-font-specification:Lobster;text-align:center;text-anchor:middle;fill:#00d1b2;fill-opacity:1"
|
61 |
-
d="m 128.05884,379.47266 5.96008,-28.125 8.10242,0 -0.71411,3.48816 q 0.74157,-0.65918 1.51062,-1.2909 0.76904,-0.63171 1.59301,-1.09863 0.85144,-0.49439 1.75782,-0.79651 0.90637,-0.30212 1.9226,-0.30212 0.96131,0 1.67542,0.35705 0.74158,0.35706 1.23596,0.93384 0.49439,0.57678 0.74158,1.34582 0.24719,0.76905 0.24719,1.59302 0,0.74158 -0.24719,1.48316 -0.24719,0.71411 -0.76904,1.29089 -0.49439,0.57678 -1.26343,0.9613 -0.76905,0.35706 -1.78528,0.35706 -0.79651,0 -1.23596,-0.27466 -0.41199,-0.27466 -0.63172,-0.68664 -0.21972,-0.41199 -0.32959,-0.87891 -0.0824,-0.49438 -0.19226,-0.90637 -0.10986,-0.41199 -0.30212,-0.68665 -0.1648,-0.27466 -0.57678,-0.27466 -1.2909,0 -2.1698,0.60425 -0.87891,0.57678 -1.92261,1.53809 l -4.5044,21.36841 -8.10241,0 z"
|
62 |
-
inkscape:connector-curvature="0"/>
|
63 |
-
<path id="path3461"
|
64 |
-
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:56.25px;font-family:Lobster;-inkscape-font-specification:Lobster;text-align:center;text-anchor:middle;fill:#00d1b2;fill-opacity:1"
|
65 |
-
d="m 183.01794,358.10425 q -1.64794,1.73034 -4.2572,2.93884 -2.60925,1.2085 -5.71289,1.73035 -0.32959,3.90014 -1.51062,7.03125 -1.15356,3.1311 -2.93884,5.32837 -1.78528,2.19726 -4.09241,3.37829 -2.30713,1.18103 -4.88891,1.18103 -1.95008,0 -3.62549,-0.46692 -1.64795,-0.49438 -2.85645,-1.53808 -1.18103,-1.07117 -1.84021,-2.74658 -0.68664,-1.70288 -0.68664,-4.11988 0,-1.64795 0.35705,-3.73535 0.32959,-2.11487 1.07117,-4.3396 0.76904,-2.22473 1.95007,-4.3396 1.2085,-2.14233 2.91138,-3.81775 1.73035,-1.67541 3.98254,-2.69165 2.2522,-1.0437 5.13611,-1.0437 7.22351,0 7.22351,8.98132 l 0,0.0549 q 0.13733,0.0549 0.24719,0.0549 0.13733,0 0.35706,0 0.98877,0 2.11487,-0.27466 1.15356,-0.30212 2.30713,-0.76904 1.15356,-0.46692 2.25219,-1.07117 1.09864,-0.63171 2.00501,-1.26343 l 0.49438,1.53809 z m -14.63928,4.83398 q -0.8789,-0.21972 -1.20849,-0.85144 -0.30213,-0.65918 -0.30213,-1.51062 0,-1.18103 0.46692,-1.92261 0.49439,-0.76904 1.29089,-1.12609 -0.0549,-0.90638 -0.19226,-1.51062 -0.13733,-0.63172 -0.38452,-1.01624 -0.24719,-0.41199 -0.63171,-0.57678 -0.35706,-0.1648 -0.93384,-0.1648 -1.01623,0 -1.95007,0.79651 -0.93384,0.76904 -1.78528,2.05994 -0.82398,1.29089 -1.53809,2.96631 -0.68664,1.64795 -1.18103,3.40576 -0.49438,1.75781 -0.76904,3.48816 -0.27466,1.70288 -0.27466,3.10364 0,1.40075 0.13733,2.27966 0.1648,0.87891 0.49439,1.40076 0.35705,0.49438 0.90637,0.68664 0.54931,0.19226 1.34582,0.19226 1.01624,0 2.03247,-0.90637 1.0437,-0.90637 1.92261,-2.47192 0.87891,-1.56556 1.53809,-3.70789 0.68664,-2.14233 1.01623,-4.61426 z"
|
66 |
-
inkscape:connector-curvature="0"/>
|
67 |
-
<path id="path3463"
|
68 |
-
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:56.25px;font-family:Lobster;-inkscape-font-specification:Lobster;text-align:center;text-anchor:middle;fill:#00d1b2;fill-opacity:1"
|
69 |
-
d="m 206.88574,369.3927 q -0.79651,2.27966 -1.73034,3.95508 -0.93384,1.67541 -1.95008,2.82898 -0.98877,1.15356 -2.03247,1.86767 -1.0437,0.71411 -2.03247,1.09864 -0.98877,0.38452 -1.89514,0.52185 -0.90637,0.13733 -1.64795,0.13733 -2.41699,0 -3.84521,-1.31836 -1.42823,-1.34583 -1.73035,-4.01001 -1.07117,1.73034 -2.1698,2.77404 -1.09863,1.04371 -2.1698,1.62049 -1.07117,0.57678 -2.0874,0.74158 -1.01624,0.19226 -1.89515,0.19226 -1.26342,0 -2.36206,-0.38453 -1.09863,-0.38452 -1.9226,-1.20849 -0.79651,-0.82398 -1.26343,-2.0874 -0.46692,-1.26343 -0.46692,-3.04871 0,-0.76904 0.10986,-1.67541 0.10987,-0.93384 0.32959,-2.00501 l 3.81775,-18.04504 8.10242,0 -4.03748,19.11621 q -0.16479,0.8789 -0.16479,1.59301 0,0.96131 0.35705,1.64795 0.35706,0.65918 1.31836,0.65918 0.82398,0 1.51062,-0.35705 0.68665,-0.38452 1.23597,-1.0437 0.57678,-0.65918 0.98877,-1.56555 0.43945,-0.93384 0.76904,-2.00501 l 3.81775,-18.04504 8.10241,0 -4.03747,19.11621 q -0.13733,0.46692 -0.19226,0.93384 -0.0549,0.43945 -0.0549,0.8789 0,1.18103 0.54931,1.64795 0.57679,0.43945 1.75782,0.43945 0.82397,0 1.51062,-0.35705 0.71411,-0.38452 1.29089,-1.0437 0.57678,-0.65918 1.01623,-1.56555 0.43946,-0.93384 0.74158,-2.00501 l 2.36206,0 z"
|
70 |
-
inkscape:connector-curvature="0"/>
|
71 |
-
<path id="path3465"
|
72 |
-
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:56.25px;font-family:Lobster;-inkscape-font-specification:Lobster;text-align:center;text-anchor:middle;fill:#00d1b2;fill-opacity:1"
|
73 |
-
d="m 228.41895,369.3927 q -2.19727,2.55432 -4.422,4.22974 -2.19727,1.64795 -4.17481,2.80151 -0.8789,0.93384 -1.97754,1.59302 -1.07116,0.63171 -2.25219,1.0437 -1.15357,0.38452 -2.36206,0.54932 -1.18103,0.19226 -2.2522,0.19226 -2.11487,0 -3.68042,-0.63172 -1.53809,-0.65918 -2.55432,-1.67541 -1.01624,-1.0437 -1.48316,-2.30713 -0.49438,-1.2909 -0.49438,-2.58179 0,-0.98877 0.27466,-1.81274 0.24719,-0.85144 0.65918,-1.51062 0.41198,-0.65918 0.93383,-1.1261 0.54932,-0.49439 1.1261,-0.76904 2.36206,-4.22974 3.98255,-8.34961 1.62048,-4.14734 2.93884,-8.32215 l 8.32214,-1.09863 q 0.1648,3.65295 0.30213,6.3446 0.16479,2.66419 0.30212,4.64173 0.13733,1.95007 0.24719,3.32336 0.10987,1.37329 0.19226,2.44446 0.10987,1.0437 0.13733,1.92261 0.0549,0.85144 0.0549,1.78528 0,0.63171 -0.0549,1.15356 -0.0275,0.52185 -0.16479,0.98877 1.23596,-0.71411 2.22473,-1.40076 1.01624,-0.71411 1.81274,-1.42822 l 2.36207,0 z m -22.65931,2.03247 q 0,1.97754 0.76905,2.96631 0.79651,0.9613 2.66418,0.9613 0.93384,0 1.81275,-0.24719 0.8789,-0.27466 1.56555,-0.87891 0.68664,-0.63171 1.09863,-1.62048 0.41199,-0.98877 0.41199,-2.47192 0,-0.71411 -0.0549,-1.37329 -0.0275,-0.68665 -0.0824,-1.42823 -0.0549,-0.76904 -0.1648,-1.70288 -0.0824,-0.93384 -0.21972,-2.1698 -0.10987,-1.23596 -0.2472,-2.85644 -0.13732,-1.62049 -0.30212,-3.79029 -0.85144,2.74659 -2.005,5.32837 -1.15357,2.58179 -2.55433,5.30091 0.54932,0.30212 0.90638,0.76904 0.38452,0.46692 0.38452,1.18103 0,0.52185 -0.1648,1.01624 -0.16479,0.49438 -0.49438,0.90637 -0.32959,0.38452 -0.79651,0.63171 -0.43945,0.21973 -1.01624,0.21973 -0.46692,0 -0.8789,-0.13733 -0.41199,-0.13733 -0.63172,-0.60425 z"
|
74 |
-
inkscape:connector-curvature="0"/>
|
75 |
-
<path id="path3467"
|
76 |
-
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:56.25px;font-family:Lobster;-inkscape-font-specification:Lobster;text-align:center;text-anchor:middle;fill:#00d1b2;fill-opacity:1"
|
77 |
-
d="m 249.62256,369.3927 q -1.18103,1.97754 -2.71912,3.84522 -1.51062,1.86767 -3.43323,3.32336 -1.89514,1.45569 -4.22973,2.36206 -2.30713,0.87891 -5.08118,0.87891 -2.005,0 -3.62549,-0.49439 -1.62048,-0.52185 -2.77404,-1.59302 -1.15357,-1.07116 -1.75782,-2.74658 -0.63171,-1.70288 -0.63171,-4.09241 0,-1.62048 0.32959,-3.73535 0.32959,-2.11487 1.0437,-4.3396 0.71411,-2.22473 1.89514,-4.36706 1.18103,-2.14234 2.85645,-3.81775 1.67541,-1.70288 3.92761,-2.71912 2.2522,-1.0437 5.13611,-1.0437 1.89514,0 3.07617,0.46692 1.2085,0.43945 1.89514,1.18103 0.71411,0.74158 0.96131,1.73035 0.27465,0.9613 0.27465,2.005 0,2.44446 -1.07116,4.55933 -1.07117,2.0874 -2.88391,3.65295 -1.78528,1.56555 -4.11988,2.52686 -2.33459,0.9613 -4.86145,1.1261 -0.0549,0.63171 -0.10986,1.20849 -0.0275,0.54932 -0.0275,1.0437 0,1.42823 0.2472,2.36206 0.27465,0.90638 0.76904,1.42823 0.52185,0.52185 1.26343,0.74157 0.76904,0.19226 1.78527,0.19226 1.67542,0 3.02124,-0.43945 1.3733,-0.43945 2.55433,-1.20849 1.18103,-0.76905 2.22473,-1.81275 1.07116,-1.0437 2.14233,-2.22473 l 1.92261,0 z m -15.35339,-3.98254 q 1.59301,-0.10987 3.07617,-0.90638 1.48315,-0.7965 2.60925,-2.05993 1.1261,-1.2909 1.78528,-2.91138 0.68664,-1.64795 0.68664,-3.40576 0,-1.0437 -0.30212,-1.67542 -0.30212,-0.63171 -1.09863,-0.63171 -1.07117,0 -2.11487,1.0437 -1.01624,1.01624 -1.92261,2.66419 -0.90637,1.64795 -1.62048,3.73535 -0.68665,2.05993 -1.09863,4.14734 z"
|
78 |
-
inkscape:connector-curvature="0"/>
|
79 |
-
<path id="path3469"
|
80 |
-
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:56.25px;font-family:Lobster;-inkscape-font-specification:Lobster;text-align:center;text-anchor:middle;fill:#00d1b2;fill-opacity:1"
|
81 |
-
d="m 253.66003,341.10291 8.32215,-1.1261 -6.45447,30.37719 q -0.13733,0.46692 -0.19226,0.87891 -0.0549,0.38452 -0.0549,0.76904 0,0.96131 0.49438,1.62049 0.49439,0.63171 1.81275,0.63171 0.79651,0 1.15356,-0.10986 0.35706,-0.10987 0.65918,-0.2472 -0.10986,1.51062 -0.68664,2.63672 -0.54932,1.09864 -1.40076,1.84021 -0.85144,0.71411 -1.92261,1.07117 -1.07117,0.35706 -2.1698,0.35706 -1.26343,0 -2.36206,-0.38453 -1.09863,-0.41198 -1.92261,-1.23596 -0.79651,-0.85144 -1.26342,-2.14233 -0.46692,-1.29089 -0.46692,-3.10364 0,-0.74158 0.10986,-1.64795 0.10986,-0.93384 0.32959,-2.005 l 6.01501,-28.17993 z"
|
82 |
-
inkscape:connector-curvature="0"/>
|
83 |
-
<path id="path3471"
|
84 |
-
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:56.25px;font-family:Lobster;-inkscape-font-specification:Lobster;text-align:center;text-anchor:middle;fill:#00d1b2;fill-opacity:1"
|
85 |
-
d="m 302.68652,344.86572 q 0,1.18103 -0.32959,2.1698 -0.30212,0.96131 -0.85144,1.67542 -0.54931,0.68664 -1.34582,1.07116 -0.79651,0.38453 -1.73035,0.38453 -1.07117,0 -1.95007,-0.43946 -0.85144,-0.46692 -1.48316,-1.31836 1.0437,-0.76904 1.67542,-2.03247 0.63171,-1.29089 0.63171,-2.74658 0,-1.81274 -1.07116,-2.85644 -1.07117,-1.07117 -2.93885,-1.07117 -1.1261,0 -2.0874,0.43945 -0.93384,0.41199 -1.62048,1.18103 -0.65918,0.74158 -1.0437,1.78528 -0.35706,1.0437 -0.35706,2.27966 0,1.86768 0.90637,3.51563 0.90637,1.64795 2.27967,3.24097 1.37329,1.59301 2.9663,3.24096 1.59302,1.62049 2.96631,3.48816 1.37329,1.84021 2.27967,4.01001 0.90637,2.14233 0.90637,4.75159 0,2.77405 -1.15357,5.13611 -1.15356,2.33459 -3.2135,4.06494 -2.03247,1.70288 -4.80652,2.66418 -2.74658,0.98877 -5.96008,0.98877 -2.69165,0 -4.88892,-0.71411 -2.1698,-0.68665 -3.73535,-1.97754 -1.53808,-1.31836 -2.38952,-3.1311 -0.85144,-1.81275 -0.85144,-4.03748 0,-1.86767 0.60424,-3.48816 0.60425,-1.62048 1.64795,-2.80151 1.0437,-1.2085 2.47193,-1.89514 1.42822,-0.68665 3.0487,-0.68665 1.97754,0 3.32337,0.98877 1.34582,0.98877 1.67541,2.71912 -1.48315,0 -2.66418,0.41199 -1.18103,0.41198 -2.00501,1.15356 -0.82397,0.74158 -1.29089,1.81274 -0.43945,1.0437 -0.43945,2.36206 0,2.47193 1.42822,3.92762 1.45569,1.42822 3.90015,1.42822 1.48315,0 2.74658,-0.52185 1.26343,-0.54932 2.1698,-1.48316 0.90637,-0.93383 1.42822,-2.22473 0.52185,-1.29089 0.52185,-2.80151 0,-1.53809 -0.52185,-2.93884 -0.49438,-1.42823 -1.34582,-2.74659 -0.85145,-1.34582 -1.92261,-2.63671 -1.07117,-1.2909 -2.19727,-2.58179 -1.1261,-1.31836 -2.19726,-2.63672 -1.07117,-1.31836 -1.92261,-2.69165 -0.85144,-1.40076 -1.37329,-2.88391 -0.49439,-1.48316 -0.49439,-3.13111 0,-2.22473 0.93384,-4.0924 0.9613,-1.89514 2.63672,-3.26844 1.70288,-1.37329 4.01001,-2.14233 2.30713,-0.79651 5.02624,-0.79651 2.27967,0 4.11988,0.57678 1.84021,0.54932 3.1311,1.59302 1.31836,1.01624 2.03247,2.47193 0.71411,1.45568 0.71411,3.24096 z"
|
86 |
-
inkscape:connector-curvature="0"/>
|
87 |
-
<path id="path3473"
|
88 |
-
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:56.25px;font-family:Lobster;-inkscape-font-specification:Lobster;text-align:center;text-anchor:middle;fill:#00d1b2;fill-opacity:1"
|
89 |
-
d="m 321.06116,369.3927 q -0.79651,2.27966 -1.78528,3.95508 -0.9613,1.67541 -2.03247,2.82898 -1.0437,1.15356 -2.1698,1.86767 -1.09863,0.71411 -2.14234,1.09864 -1.0437,0.38452 -2.005,0.52185 -0.93384,0.13733 -1.67542,0.13733 -1.26342,0 -2.36206,-0.38453 -1.09863,-0.38452 -1.9226,-1.20849 -0.79651,-0.82398 -1.26343,-2.0874 -0.46692,-1.26343 -0.46692,-3.04871 0,-0.76904 0.10986,-1.67541 0.10987,-0.93384 0.32959,-2.00501 l 6.01502,-28.17993 8.32214,-1.1261 -6.45447,30.3772 q -0.13733,0.46692 -0.19226,0.93384 -0.0275,0.43945 -0.0275,0.8789 0,1.18103 0.54931,1.64795 0.54932,0.43945 1.73035,0.43945 0.82397,0 1.59302,-0.35705 0.79651,-0.38452 1.45569,-1.0437 0.65918,-0.65918 1.18103,-1.56555 0.52185,-0.93384 0.85144,-2.00501 l 2.36206,0 z"
|
90 |
-
inkscape:connector-curvature="0"/>
|
91 |
-
<path id="path3475"
|
92 |
-
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:56.25px;font-family:Lobster;-inkscape-font-specification:Lobster;text-align:center;text-anchor:middle;fill:#00d1b2;fill-opacity:1"
|
93 |
-
d="m 332.62427,343.87695 q 0,0.93384 -0.35706,1.75782 -0.35705,0.7965 -0.98877,1.40075 -0.60425,0.57678 -1.42822,0.93384 -0.79651,0.32959 -1.73035,0.32959 -0.93383,0 -1.75781,-0.32959 -0.79651,-0.35706 -1.40076,-0.93384 -0.60424,-0.60425 -0.9613,-1.40075 -0.32959,-0.82398 -0.32959,-1.75782 0,-0.93383 0.32959,-1.73034 0.35706,-0.82398 0.9613,-1.42823 0.60425,-0.63171 1.40076,-0.98877 0.82398,-0.35705 1.75781,-0.35705 0.93384,0 1.73035,0.35705 0.82397,0.35706 1.42822,0.98877 0.63172,0.60425 0.98877,1.42823 0.35706,0.79651 0.35706,1.73034 z m 3.48816,25.51575 q -0.79651,2.27966 -1.78528,3.95508 -0.96131,1.67541 -2.03247,2.82898 -1.0437,1.15356 -2.1698,1.86767 -1.09863,0.71411 -2.14234,1.09864 -1.0437,0.38452 -2.005,0.52185 -0.93384,0.13733 -1.67542,0.13733 -1.26342,0 -2.36206,-0.38453 -1.09863,-0.38452 -1.9226,-1.20849 -0.79651,-0.82398 -1.26343,-2.0874 -0.46692,-1.26343 -0.46692,-3.04871 0,-0.76904 0.10986,-1.67541 0.10987,-0.93384 0.32959,-2.00501 l 3.81775,-18.04504 8.10242,0 -4.03748,19.11621 q -0.13733,0.46692 -0.19226,0.93384 -0.0275,0.43945 -0.0275,0.8789 0,1.18103 0.54931,1.64795 0.54932,0.43945 1.73035,0.43945 0.82397,0 1.59302,-0.35705 0.79651,-0.38452 1.45569,-1.0437 0.65918,-0.65918 1.18103,-1.56555 0.52185,-0.93384 0.85144,-2.00501 l 2.36206,0 z"
|
94 |
-
inkscape:connector-curvature="0"/>
|
95 |
-
<path id="path3477"
|
96 |
-
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:56.25px;font-family:Lobster;-inkscape-font-specification:Lobster;text-align:center;text-anchor:middle;fill:#00d1b2;fill-opacity:1"
|
97 |
-
d="m 365.66565,369.3927 q -0.79651,2.27966 -1.73035,3.92761 -0.93384,1.64795 -1.95007,2.77405 -0.98877,1.09863 -2.03247,1.78528 -1.0437,0.65918 -2.03247,1.01623 -0.98877,0.35706 -1.89514,0.46692 -0.90638,0.10987 -1.64795,0.10987 -2.3346,0 -3.76282,-1.2085 -1.42822,-1.23596 -1.75781,-3.62549 -0.63172,0.96131 -1.45569,1.89514 -0.79651,0.90638 -1.84021,1.64795 -1.01624,0.71411 -2.27966,1.18103 -1.26343,0.43946 -2.74659,0.43946 -1.45568,0 -2.80151,-0.46692 -1.34583,-0.46692 -2.38953,-1.53809 -1.0437,-1.07117 -1.67541,-2.80151 -0.63172,-1.73035 -0.63172,-4.22974 0,-1.92261 0.38453,-4.11987 0.38452,-2.19727 1.18103,-4.39453 0.79651,-2.19727 1.97754,-4.20227 1.20849,-2.03247 2.80151,-3.57056 1.62048,-1.56555 3.65295,-2.47192 2.03247,-0.93384 4.47693,-0.93384 2.38953,0 3.4607,0.82397 1.09863,0.82398 1.09863,2.03247 l 0,0.21973 2.74658,-12.9364 8.32214,-1.1261 -6.45446,30.3772 q -0.13733,0.46692 -0.19226,0.93384 -0.0549,0.43945 -0.0549,0.8789 0,1.18103 0.54932,1.64795 0.57678,0.43945 1.75781,0.43945 0.82398,0 1.51062,-0.35705 0.71411,-0.38452 1.26343,-1.0437 0.57678,-0.65918 1.01624,-1.56555 0.43945,-0.93384 0.76904,-2.00501 l 2.36206,0 z m -16.86401,0 2.74658,-12.88147 q -0.0549,-0.24719 -0.19226,-0.57678 -0.10987,-0.32959 -0.35706,-0.63172 -0.24719,-0.32959 -0.68664,-0.52185 -0.41199,-0.21972 -1.07117,-0.21972 -1.18103,0 -2.2522,0.76904 -1.0437,0.76904 -1.92261,2.05994 -0.8789,1.26342 -1.56555,2.88391 -0.68664,1.62048 -1.18103,3.35083 -0.46692,1.70288 -0.71411,3.37829 -0.24719,1.64795 -0.24719,2.96631 0,1.62049 0.30212,2.49939 0.30213,0.87891 0.71411,1.31836 0.43946,0.41199 0.93384,0.49439 0.49439,0.0824 0.87891,0.0824 0.57678,0 1.26343,-0.27465 0.71411,-0.30213 1.34582,-0.87891 0.65918,-0.57678 1.18103,-1.45569 0.54932,-0.87891 0.82398,-2.05994 l 0,-0.30212 z"
|
98 |
-
inkscape:connector-curvature="0"/>
|
99 |
-
<path id="path3479"
|
100 |
-
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:56.25px;font-family:Lobster;-inkscape-font-specification:Lobster;text-align:center;text-anchor:middle;fill:#00d1b2;fill-opacity:1"
|
101 |
-
d="m 386.8418,369.3927 q -1.18103,1.97754 -2.71912,3.84522 -1.51062,1.86767 -3.43323,3.32336 -1.89514,1.45569 -4.22973,2.36206 -2.30713,0.87891 -5.08118,0.87891 -2.005,0 -3.62549,-0.49439 -1.62048,-0.52185 -2.77405,-1.59302 -1.15356,-1.07116 -1.75781,-2.74658 -0.63171,-1.70288 -0.63171,-4.09241 0,-1.62048 0.32959,-3.73535 0.32959,-2.11487 1.0437,-4.3396 0.71411,-2.22473 1.89514,-4.36706 1.18103,-2.14234 2.85645,-3.81775 1.67541,-1.70288 3.92761,-2.71912 2.2522,-1.0437 5.13611,-1.0437 1.89514,0 3.07617,0.46692 1.20849,0.43945 1.89514,1.18103 0.71411,0.74158 0.9613,1.73035 0.27466,0.9613 0.27466,2.005 0,2.44446 -1.07117,4.55933 -1.07116,2.0874 -2.88391,3.65295 -1.78527,1.56555 -4.11987,2.52686 -2.33459,0.9613 -4.86145,1.1261 -0.0549,0.63171 -0.10986,1.20849 -0.0275,0.54932 -0.0275,1.0437 0,1.42823 0.24719,2.36206 0.27466,0.90638 0.76905,1.42823 0.52185,0.52185 1.26342,0.74157 0.76905,0.19226 1.78528,0.19226 1.67542,0 3.02124,-0.43945 1.37329,-0.43945 2.55432,-1.20849 1.18103,-0.76905 2.22474,-1.81275 1.07116,-1.0437 2.14233,-2.22473 l 1.92261,0 z m -15.3534,-3.98254 q 1.59302,-0.10987 3.07618,-0.90638 1.48315,-0.7965 2.60925,-2.05993 1.1261,-1.2909 1.78528,-2.91138 0.68664,-1.64795 0.68664,-3.40576 0,-1.0437 -0.30212,-1.67542 -0.30213,-0.63171 -1.09863,-0.63171 -1.07117,0 -2.11487,1.0437 -1.01624,1.01624 -1.92261,2.66419 -0.90637,1.64795 -1.62048,3.73535 -0.68665,2.05993 -1.09864,4.14734 z"
|
102 |
-
inkscape:connector-curvature="0"/>
|
103 |
-
<path id="path3481"
|
104 |
-
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:56.25px;font-family:Lobster;-inkscape-font-specification:Lobster;text-align:center;text-anchor:middle;fill:#00d1b2;fill-opacity:1"
|
105 |
-
d="m 382.83179,379.47266 5.96008,-28.125 8.10242,0 -0.71411,3.48816 q 0.74157,-0.65918 1.51062,-1.2909 0.76904,-0.63171 1.59301,-1.09863 0.85144,-0.49439 1.75782,-0.79651 0.90637,-0.30212 1.9226,-0.30212 0.96131,0 1.67542,0.35705 0.74158,0.35706 1.23596,0.93384 0.49439,0.57678 0.74158,1.34582 0.24719,0.76905 0.24719,1.59302 0,0.74158 -0.24719,1.48316 -0.24719,0.71411 -0.76905,1.29089 -0.49438,0.57678 -1.26342,0.9613 -0.76905,0.35706 -1.78528,0.35706 -0.79651,0 -1.23596,-0.27466 -0.41199,-0.27466 -0.63172,-0.68664 -0.21972,-0.41199 -0.32959,-0.87891 -0.0824,-0.49438 -0.19226,-0.90637 -0.10986,-0.41199 -0.30212,-0.68665 -0.1648,-0.27466 -0.57678,-0.27466 -1.2909,0 -2.1698,0.60425 -0.87891,0.57678 -1.92261,1.53809 l -4.5044,21.36841 -8.10241,0 z"
|
106 |
-
inkscape:connector-curvature="0"/>
|
107 |
-
</g>
|
108 |
-
</g>
|
109 |
-
<g id="g4359" transform="translate(13.72272,4.8433532)">
|
110 |
-
<rect y="852.39502" x="199.99997" height="10" width="10" id="rect4315" style="fill:#000000;fill-opacity:1"/>
|
111 |
-
<rect y="852.36774" x="214.99846" height="10" width="10" id="rect4315-3"
|
112 |
-
style="fill:#000000;fill-opacity:1"/>
|
113 |
-
<rect y="852.37762" x="230.01768" height="10" width="10" id="rect4315-6"
|
114 |
-
style="fill:#000000;fill-opacity:1"/>
|
115 |
-
<rect y="852.3526" x="245.05391" height="10" width="10" id="rect4315-7"
|
116 |
-
style="fill:#000000;fill-opacity:1"/>
|
117 |
-
<rect y="852.32104" x="260.0347" height="10" width="10" id="rect4315-7-5"
|
118 |
-
style="fill:#000000;fill-opacity:1"/>
|
119 |
-
</g>
|
120 |
-
</g>
|
121 |
-
</svg>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/img/play.svg
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="80" height="80" fill="#f1f1f1"><path d="M12.1 6.7 35.1 20.2 12.1 33.7l0-26.9z"/><path d="m19.7 40c-11 0-20-9-20-20 0-11 9-20 20-20 11 0 20 9 20 20 0 11-9 20-20 20zm0-38c-9.9 0-18 8.1-18 18 0 9.9 8.1 18 18 18 9.9 0 18-8.1 18-18 0-9.9-8.1-18-18-18z"/></svg>
|
|
trunk/assets/img/svg-icons.svg
DELETED
@@ -1,18 +0,0 @@
|
|
1 |
-
<svg style="position: absolute; width: 0; height: 0; overflow: hidden;" version="1.1" xmlns="http://www.w3.org/2000/svg"
|
2 |
-
xmlns:xlink="http://www.w3.org/1999/xlink">
|
3 |
-
<symbol id="icon-trash" viewBox="0 0 20 20">
|
4 |
-
<path d="M12 4h3c0.55 0 1 0.45 1 1v1h-13v-1c0-0.55 0.45-1 1-1h3c0.23-1.14 1.29-2 2.5-2s2.27 0.86 2.5 2zM8 4h3c-0.21-0.58-0.85-1-1.5-1s-1.29 0.42-1.5 1zM4 7h11v10c0 0.55-0.45 1-1 1h-9c-0.55 0-1-0.45-1-1v-10zM7 16v-7h-1v7h1zM10 16v-7h-1v7h1zM13 16v-7h-1v7h1z"></path>
|
5 |
-
</symbol>
|
6 |
-
<symbol id="icon-angle-down" viewBox="0 0 20 20">
|
7 |
-
<path d="M5 6l5 5 5-5 2 1-7 7-7-7z"></path>
|
8 |
-
</symbol>
|
9 |
-
<symbol id="icon-angle-up" viewBox="0 0 20 20">
|
10 |
-
<path d="M15 14l-5-5-5 5-2-1 7-7 7 7z"></path>
|
11 |
-
</symbol>
|
12 |
-
<symbol id="icon-angle-down-alt" viewBox="0 0 20 20">
|
13 |
-
<path d="M9 2h2v12l4-4 2 1-7 7-7-7 2-1 4 4v-12z"></path>
|
14 |
-
</symbol>
|
15 |
-
<symbol id="icon-angle-up-alt" viewBox="0 0 20 20">
|
16 |
-
<path d="M11 18h-2v-12l-4 4-2-1 7-7 7 7-2 1-4-4v12z"></path>
|
17 |
-
</symbol>
|
18 |
-
</svg>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/index.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// Code is Poetry
|
|
|
|
trunk/assets/js/admin.js
DELETED
@@ -1,711 +0,0 @@
|
|
1 |
-
(function ($) {
|
2 |
-
'use strict';
|
3 |
-
$(document).on("click", ".accordion-header", function () {
|
4 |
-
$(this).toggleClass('active');
|
5 |
-
var panel = $(this).next();
|
6 |
-
|
7 |
-
if (parseInt(panel.css('max-height')) > 0) {
|
8 |
-
panel.css('max-height', '0');
|
9 |
-
panel.css('overflow', 'hidden');
|
10 |
-
} else {
|
11 |
-
panel.css('max-height', panel.prop('scrollHeight') + "px");
|
12 |
-
panel.css('overflow', 'visible');
|
13 |
-
}
|
14 |
-
});
|
15 |
-
})(jQuery);
|
16 |
-
(function ($) {
|
17 |
-
"use strict";
|
18 |
-
|
19 |
-
var body = $('body'),
|
20 |
-
contentButtonModal = $('#contentButtonModal'),
|
21 |
-
frame,
|
22 |
-
section,
|
23 |
-
imgIdInput,
|
24 |
-
slideCanvas,
|
25 |
-
delImgLink,
|
26 |
-
buttonConfig;
|
27 |
-
|
28 |
-
// Add new content slide
|
29 |
-
body.on('click', '.carousel-slider__add-slide', function (e) {
|
30 |
-
e.preventDefault();
|
31 |
-
|
32 |
-
$.ajax({
|
33 |
-
url: ajaxurl,
|
34 |
-
method: 'POST',
|
35 |
-
data: {
|
36 |
-
action: 'add_content_slide',
|
37 |
-
task: 'add-slide',
|
38 |
-
post_id: $(this).data('post-id')
|
39 |
-
},
|
40 |
-
success: function () {
|
41 |
-
window.location.reload(true);
|
42 |
-
}
|
43 |
-
});
|
44 |
-
});
|
45 |
-
|
46 |
-
// Delete a slide
|
47 |
-
body.on('click', '.carousel_slider__delete_slide', function (e) {
|
48 |
-
e.preventDefault();
|
49 |
-
|
50 |
-
$.ajax({
|
51 |
-
url: ajaxurl,
|
52 |
-
method: 'POST',
|
53 |
-
data: {
|
54 |
-
action: 'add_content_slide',
|
55 |
-
task: 'delete-slide',
|
56 |
-
post_id: $(this).data('post-id'),
|
57 |
-
slide_pos: $(this).data('slide-pos')
|
58 |
-
},
|
59 |
-
success: function () {
|
60 |
-
window.location.reload(true);
|
61 |
-
}
|
62 |
-
});
|
63 |
-
});
|
64 |
-
|
65 |
-
// Move slide to top
|
66 |
-
body.on('click', '.carousel_slider__move_top', function (e) {
|
67 |
-
e.preventDefault();
|
68 |
-
|
69 |
-
$.ajax({
|
70 |
-
url: ajaxurl,
|
71 |
-
method: 'POST',
|
72 |
-
data: {
|
73 |
-
action: 'add_content_slide',
|
74 |
-
task: 'move-slide-top',
|
75 |
-
post_id: $(this).data('post-id'),
|
76 |
-
slide_pos: $(this).data('slide-pos')
|
77 |
-
},
|
78 |
-
success: function () {
|
79 |
-
window.location.reload(true);
|
80 |
-
}
|
81 |
-
});
|
82 |
-
});
|
83 |
-
|
84 |
-
// Move slide up
|
85 |
-
body.on('click', '.carousel_slider__move_up', function (e) {
|
86 |
-
e.preventDefault();
|
87 |
-
|
88 |
-
$.ajax({
|
89 |
-
url: ajaxurl,
|
90 |
-
method: 'POST',
|
91 |
-
data: {
|
92 |
-
action: 'add_content_slide',
|
93 |
-
task: 'move-slide-up',
|
94 |
-
post_id: $(this).data('post-id'),
|
95 |
-
slide_pos: $(this).data('slide-pos')
|
96 |
-
},
|
97 |
-
success: function () {
|
98 |
-
window.location.reload(true);
|
99 |
-
}
|
100 |
-
});
|
101 |
-
});
|
102 |
-
|
103 |
-
// Move slide down
|
104 |
-
body.on('click', '.carousel_slider__move_down', function (e) {
|
105 |
-
e.preventDefault();
|
106 |
-
|
107 |
-
$.ajax({
|
108 |
-
url: ajaxurl,
|
109 |
-
method: 'POST',
|
110 |
-
data: {
|
111 |
-
action: 'add_content_slide',
|
112 |
-
task: 'move-slide-down',
|
113 |
-
post_id: $(this).data('post-id'),
|
114 |
-
slide_pos: $(this).data('slide-pos')
|
115 |
-
},
|
116 |
-
success: function () {
|
117 |
-
window.location.reload(true);
|
118 |
-
}
|
119 |
-
});
|
120 |
-
});
|
121 |
-
|
122 |
-
// Move slide to bottom
|
123 |
-
body.on('click', '.carousel_slider__move_bottom', function (e) {
|
124 |
-
e.preventDefault();
|
125 |
-
|
126 |
-
$.ajax({
|
127 |
-
url: ajaxurl,
|
128 |
-
method: 'POST',
|
129 |
-
data: {
|
130 |
-
action: 'add_content_slide',
|
131 |
-
task: 'move-slide-bottom',
|
132 |
-
post_id: $(this).data('post-id'),
|
133 |
-
slide_pos: $(this).data('slide-pos')
|
134 |
-
},
|
135 |
-
success: function () {
|
136 |
-
window.location.reload(true);
|
137 |
-
}
|
138 |
-
});
|
139 |
-
});
|
140 |
-
|
141 |
-
// Add slide image
|
142 |
-
body.on('click', '.slide_image_add', function (e) {
|
143 |
-
e.preventDefault();
|
144 |
-
|
145 |
-
var _this = $(this);
|
146 |
-
section = _this.closest('.slide_bg_wrapper');
|
147 |
-
slideCanvas = section.find('.content_slide_canvas');
|
148 |
-
imgIdInput = section.find('.background_image_id');
|
149 |
-
delImgLink = section.find('.delete-bg-img');
|
150 |
-
|
151 |
-
// If the media frame already exists, reopen it.
|
152 |
-
if (frame) {
|
153 |
-
frame.open();
|
154 |
-
return;
|
155 |
-
}
|
156 |
-
|
157 |
-
// Create a new media frame
|
158 |
-
frame = wp.media({
|
159 |
-
title: _this.data('title'),
|
160 |
-
button: {
|
161 |
-
text: _this.data('button-text')
|
162 |
-
},
|
163 |
-
multiple: false // Set to true to allow multiple files to be selected
|
164 |
-
});
|
165 |
-
|
166 |
-
// When an image is selected in the media frame...
|
167 |
-
frame.on('select', function () {
|
168 |
-
|
169 |
-
// Get media attachment details from the frame state
|
170 |
-
var attachment = frame.state().get('selection').first().toJSON();
|
171 |
-
|
172 |
-
// Send the attachment URL to our custom image input field.
|
173 |
-
slideCanvas.css('background-image', 'url(' + attachment.url + ')');
|
174 |
-
|
175 |
-
// Send the attachment id to our hidden input
|
176 |
-
imgIdInput.val(attachment.id);
|
177 |
-
|
178 |
-
// Show the remove image link
|
179 |
-
delImgLink.removeClass('hidden');
|
180 |
-
});
|
181 |
-
|
182 |
-
// Finally, open the modal on click
|
183 |
-
frame.open();
|
184 |
-
});
|
185 |
-
|
186 |
-
// Remove slide image
|
187 |
-
body.on('click', '.delete-bg-img', function (e) {
|
188 |
-
e.preventDefault();
|
189 |
-
|
190 |
-
section = $(this).closest('.slide_bg_wrapper');
|
191 |
-
slideCanvas = section.find('.content_slide_canvas');
|
192 |
-
imgIdInput = section.find('.background_image_id');
|
193 |
-
delImgLink = section.find('.delete-bg-img');
|
194 |
-
|
195 |
-
// Clear out the preview image
|
196 |
-
slideCanvas.css('background-image', '');
|
197 |
-
|
198 |
-
// Delete the image id from the hidden input
|
199 |
-
imgIdInput.val('0');
|
200 |
-
|
201 |
-
// Hide the delete image link
|
202 |
-
delImgLink.addClass('hidden');
|
203 |
-
});
|
204 |
-
|
205 |
-
// Background Position
|
206 |
-
body.on('change', '.background_image_position', function () {
|
207 |
-
var _val = $(this).val();
|
208 |
-
section = $(this).closest('.slide_bg_wrapper');
|
209 |
-
slideCanvas = section.find('.content_slide_canvas');
|
210 |
-
slideCanvas.css('background-position', _val);
|
211 |
-
});
|
212 |
-
|
213 |
-
// Background Size
|
214 |
-
body.on('change', '.background_image_size', function () {
|
215 |
-
var _val = $(this).val();
|
216 |
-
section = $(this).closest('.slide_bg_wrapper');
|
217 |
-
slideCanvas = section.find('.content_slide_canvas');
|
218 |
-
slideCanvas.css('background-size', _val);
|
219 |
-
});
|
220 |
-
|
221 |
-
// Add Button Style to Modal for Edit
|
222 |
-
$('.addContentButton').on('click', function (e) {
|
223 |
-
e.preventDefault();
|
224 |
-
|
225 |
-
buttonConfig = $(this).closest('.button_config');
|
226 |
-
var button_text = buttonConfig.find('.button_text').val();
|
227 |
-
var button_url = buttonConfig.find('.button_url').val();
|
228 |
-
var button_target = buttonConfig.find('.button_target').val();
|
229 |
-
var button_type = buttonConfig.find('.button_type').val();
|
230 |
-
var button_size = buttonConfig.find('.button_size').val();
|
231 |
-
var button_color = buttonConfig.find('.button_color').val();
|
232 |
-
|
233 |
-
contentButtonModal.find('#_button_text').val(button_text);
|
234 |
-
contentButtonModal.find('#_button_url').val(button_url);
|
235 |
-
contentButtonModal.find('#_button_target').val(button_target);
|
236 |
-
contentButtonModal.find('#_button_type').val(button_type);
|
237 |
-
contentButtonModal.find('#_button_size').val(button_size);
|
238 |
-
contentButtonModal.find('#_button_color').val(button_color);
|
239 |
-
|
240 |
-
contentButtonModal.addClass('is-active');
|
241 |
-
});
|
242 |
-
|
243 |
-
// Save Button style from modal form
|
244 |
-
$('#saveContentButton').on('click', function (e) {
|
245 |
-
e.preventDefault();
|
246 |
-
|
247 |
-
if (!buttonConfig) {
|
248 |
-
contentButtonModal.removeClass('is-active');
|
249 |
-
return false;
|
250 |
-
}
|
251 |
-
|
252 |
-
var button_text = contentButtonModal.find('#_button_text').val();
|
253 |
-
var button_url = contentButtonModal.find('#_button_url').val();
|
254 |
-
var button_target = contentButtonModal.find('#_button_target').val();
|
255 |
-
var button_type = contentButtonModal.find('#_button_type').val();
|
256 |
-
var button_size = contentButtonModal.find('#_button_size').val();
|
257 |
-
var button_color = contentButtonModal.find('#_button_color').val();
|
258 |
-
|
259 |
-
buttonConfig.find('.button_text').val(button_text);
|
260 |
-
buttonConfig.find('.button_url').val(button_url);
|
261 |
-
buttonConfig.find('.button_target').val(button_target);
|
262 |
-
buttonConfig.find('.button_type').val(button_type);
|
263 |
-
buttonConfig.find('.button_size').val(button_size);
|
264 |
-
buttonConfig.find('.button_color').val(button_color);
|
265 |
-
|
266 |
-
contentButtonModal.removeClass('is-active');
|
267 |
-
|
268 |
-
});
|
269 |
-
|
270 |
-
// Background Color
|
271 |
-
$('.slide-color-picker').each(function () {
|
272 |
-
section = $(this).closest('.slide_bg_wrapper');
|
273 |
-
slideCanvas = section.find('.content_slide_canvas');
|
274 |
-
$(this).wpColorPicker({
|
275 |
-
palettes: [
|
276 |
-
'#2196F3', // Blue
|
277 |
-
'#009688', // Teal
|
278 |
-
'#4CAF50', // Green
|
279 |
-
'#F44336', // Red
|
280 |
-
'#FFEB3B', // Yellow
|
281 |
-
'#00D1B2', // Firoza
|
282 |
-
'#000000', // Blank
|
283 |
-
'#ffffff' // White
|
284 |
-
],
|
285 |
-
change: function (event, ui) {
|
286 |
-
slideCanvas.css('background-color', ui.color.toString());
|
287 |
-
}
|
288 |
-
});
|
289 |
-
});
|
290 |
-
|
291 |
-
// Slide Link
|
292 |
-
$(document).on('change', '.link_type', function (e) {
|
293 |
-
var _this = $(this);
|
294 |
-
var _val = _this.val();
|
295 |
-
var _tab = _this.closest('.tab-content-link');
|
296 |
-
var _linkFull = _tab.find('.ContentCarouselLinkFull');
|
297 |
-
var _linkBtn = _tab.find('.ContentCarouselLinkButtons');
|
298 |
-
if (_val === 'full') {
|
299 |
-
_linkBtn.hide();
|
300 |
-
_linkFull.show();
|
301 |
-
} else if (_val === 'button') {
|
302 |
-
_linkFull.hide();
|
303 |
-
_linkBtn.show();
|
304 |
-
} else {
|
305 |
-
_linkFull.hide();
|
306 |
-
_linkBtn.hide();
|
307 |
-
}
|
308 |
-
})
|
309 |
-
|
310 |
-
})(jQuery);
|
311 |
-
(function ($) {
|
312 |
-
"use strict";
|
313 |
-
|
314 |
-
var frame,
|
315 |
-
_this = $('#carousel_slider_gallery_btn'),
|
316 |
-
images = _this.data('ids'),
|
317 |
-
selection = loadImages(images);
|
318 |
-
|
319 |
-
_this.on('click', function (e) {
|
320 |
-
e.preventDefault();
|
321 |
-
var options = {
|
322 |
-
title: _this.data('create'),
|
323 |
-
state: 'gallery-edit',
|
324 |
-
frame: 'post',
|
325 |
-
selection: selection
|
326 |
-
};
|
327 |
-
|
328 |
-
if (frame || selection) {
|
329 |
-
options['title'] = _this.data('edit');
|
330 |
-
}
|
331 |
-
|
332 |
-
frame = wp.media(options).open();
|
333 |
-
|
334 |
-
// Tweak Views
|
335 |
-
frame.menu.get('view').unset('cancel');
|
336 |
-
frame.menu.get('view').unset('separateCancel');
|
337 |
-
frame.menu.get('view').get('gallery-edit').el.innerHTML = _this.data('edit');
|
338 |
-
frame.content.get('view').sidebar.unset('gallery'); // Hide Gallery Settings in sidebar
|
339 |
-
|
340 |
-
// when editing a gallery
|
341 |
-
overrideGalleryInsert();
|
342 |
-
frame.on('toolbar:render:gallery-edit', function () {
|
343 |
-
overrideGalleryInsert();
|
344 |
-
});
|
345 |
-
|
346 |
-
frame.on('content:render:browse', function (browser) {
|
347 |
-
if (!browser) return;
|
348 |
-
// Hide Gallery Settings in sidebar
|
349 |
-
browser.sidebar.on('ready', function () {
|
350 |
-
browser.sidebar.unset('gallery');
|
351 |
-
});
|
352 |
-
// Hide filter/search as they don't work
|
353 |
-
browser.toolbar.on('ready', function () {
|
354 |
-
if (browser.toolbar.controller._state === 'gallery-library') {
|
355 |
-
browser.toolbar.$el.hide();
|
356 |
-
}
|
357 |
-
});
|
358 |
-
});
|
359 |
-
|
360 |
-
// All images removed
|
361 |
-
frame.state().get('library').on('remove', function () {
|
362 |
-
var models = frame.state().get('library');
|
363 |
-
if (models.length === 0) {
|
364 |
-
selection = false;
|
365 |
-
$.post(ajaxurl, {
|
366 |
-
ids: '',
|
367 |
-
action: 'carousel_slider_save_images',
|
368 |
-
post_id: _this.data('id')
|
369 |
-
});
|
370 |
-
}
|
371 |
-
});
|
372 |
-
|
373 |
-
function overrideGalleryInsert() {
|
374 |
-
frame.toolbar.get('view').set({
|
375 |
-
insert: {
|
376 |
-
style: 'primary',
|
377 |
-
text: _this.data('save'),
|
378 |
-
click: function () {
|
379 |
-
var models = frame.state().get('library'),
|
380 |
-
ids = '';
|
381 |
-
|
382 |
-
models.each(function (attachment) {
|
383 |
-
ids += attachment.id + ','
|
384 |
-
});
|
385 |
-
|
386 |
-
this.el.innerHTML = _this.data('progress');
|
387 |
-
|
388 |
-
$.ajax({
|
389 |
-
type: 'POST',
|
390 |
-
url: ajaxurl,
|
391 |
-
data: {
|
392 |
-
ids: ids,
|
393 |
-
action: 'carousel_slider_save_images',
|
394 |
-
post_id: _this.data('id')
|
395 |
-
},
|
396 |
-
success: function () {
|
397 |
-
selection = loadImages(ids);
|
398 |
-
$('#_carousel_slider_images_ids').val(ids);
|
399 |
-
frame.close();
|
400 |
-
},
|
401 |
-
dataType: 'html'
|
402 |
-
}).done(function (data) {
|
403 |
-
$('.carousel_slider_gallery_list').html(data);
|
404 |
-
});
|
405 |
-
}
|
406 |
-
}
|
407 |
-
});
|
408 |
-
}
|
409 |
-
|
410 |
-
});
|
411 |
-
|
412 |
-
function loadImages(images) {
|
413 |
-
if (images) {
|
414 |
-
var shortcode = new wp.shortcode({
|
415 |
-
tag: 'gallery',
|
416 |
-
attrs: {ids: images},
|
417 |
-
type: 'single'
|
418 |
-
});
|
419 |
-
|
420 |
-
var attachments = wp.media.gallery.attachments(shortcode);
|
421 |
-
|
422 |
-
var selection = new wp.media.model.Selection(attachments.models, {
|
423 |
-
props: attachments.props.toJSON(),
|
424 |
-
multiple: true
|
425 |
-
});
|
426 |
-
|
427 |
-
selection.gallery = attachments.gallery;
|
428 |
-
|
429 |
-
selection.more().done(function () {
|
430 |
-
// Break ties with the query.
|
431 |
-
selection.props.set({query: false});
|
432 |
-
selection.unmirror();
|
433 |
-
selection.props.unset('orderby');
|
434 |
-
});
|
435 |
-
|
436 |
-
return selection;
|
437 |
-
}
|
438 |
-
return false;
|
439 |
-
}
|
440 |
-
|
441 |
-
})(jQuery);
|
442 |
-
/**
|
443 |
-
* Carousel Slider Gallery from URL
|
444 |
-
*/
|
445 |
-
(function ($) {
|
446 |
-
'use strict';
|
447 |
-
|
448 |
-
var body = $('body'),
|
449 |
-
modal = $('#CarouselSliderModal'),
|
450 |
-
modalOpenBtn = $('#_images_urls_btn'),
|
451 |
-
template = $('#carouselSliderGalleryUrlTemplate').html();
|
452 |
-
|
453 |
-
// URL Images Model
|
454 |
-
modalOpenBtn.on('click', function (e) {
|
455 |
-
e.preventDefault();
|
456 |
-
modal.css("display", "block");
|
457 |
-
$("body").addClass("overflowHidden");
|
458 |
-
});
|
459 |
-
modal.on('click', '.carousel_slider-close', function (e) {
|
460 |
-
e.preventDefault();
|
461 |
-
modal.css("display", "none");
|
462 |
-
$("body").removeClass("overflowHidden");
|
463 |
-
});
|
464 |
-
|
465 |
-
var carouselSliderBodyHeight = $(window).height() - (38 + 48 + 32 + 30);
|
466 |
-
$('.carousel_slider-modal-body').css('height', carouselSliderBodyHeight + 'px');
|
467 |
-
|
468 |
-
// Append new row
|
469 |
-
body.on('click', '.add_row', function () {
|
470 |
-
$(this).closest('.carousel_slider-fields').after(template);
|
471 |
-
});
|
472 |
-
|
473 |
-
// Delete current row
|
474 |
-
body.on('click', '.delete_row', function () {
|
475 |
-
$(this).closest('.carousel_slider-fields').remove();
|
476 |
-
});
|
477 |
-
|
478 |
-
// Make fields sortable
|
479 |
-
$('#carousel_slider_form').sortable();
|
480 |
-
|
481 |
-
})(jQuery);
|
482 |
-
(function ($) {
|
483 |
-
'use strict';
|
484 |
-
|
485 |
-
// Open modal
|
486 |
-
$(document).on('click', '[data-toggle="modal"]', function (e) {
|
487 |
-
e.preventDefault();
|
488 |
-
$($(this).data('target')).addClass('is-active');
|
489 |
-
});
|
490 |
-
|
491 |
-
// Close modal
|
492 |
-
$(document).on('click', '[data-dismiss="modal"]', function (e) {
|
493 |
-
e.preventDefault();
|
494 |
-
$(this).closest('.modal').removeClass('is-active');
|
495 |
-
});
|
496 |
-
|
497 |
-
})(jQuery);
|
498 |
-
(function ($) {
|
499 |
-
"use strict";
|
500 |
-
|
501 |
-
var slide_type = $('#_carousel_slider_slide_type'),
|
502 |
-
section_images_settings = $('#section_images_settings'),
|
503 |
-
section_url_images_settings = $('#section_url_images_settings'),
|
504 |
-
section_images_general_settings = $('#section_images_general_settings'),
|
505 |
-
section_post_query = $('#section_post_query'),
|
506 |
-
section_video_settings = $('#section_video_settings'),
|
507 |
-
section_product_query = $('#section_product_query'),
|
508 |
-
section_content_carousel = $('#section_content_carousel'),
|
509 |
-
// Slide Type -- Post
|
510 |
-
_post_query_type = $('#_post_query_type'),
|
511 |
-
_post_date_after = $('#field-_post_date_after'),
|
512 |
-
_post_date_before = $('#field-_post_date_before'),
|
513 |
-
_post_categories = $('#field-_post_categories'),
|
514 |
-
_post_tags = $('#field-_post_tags'),
|
515 |
-
_post_in = $('#field-_post_in'),
|
516 |
-
_posts_per_page = $('#field-_posts_per_page'),
|
517 |
-
// Slide Type -- Product
|
518 |
-
_product_query_type = $('#_product_query_type'),
|
519 |
-
_product_query = $('#field-_product_query'),
|
520 |
-
_product_categories = $('#field-_product_categories'),
|
521 |
-
_product_tags = $('#field-_product_tags'),
|
522 |
-
_product_in = $('#field-_product_in'),
|
523 |
-
_products_per_page = $('#field-_products_per_page');
|
524 |
-
|
525 |
-
// Slide Type
|
526 |
-
slide_type.on('change', function () {
|
527 |
-
section_images_settings.hide('fast');
|
528 |
-
section_url_images_settings.hide('fast');
|
529 |
-
section_images_general_settings.hide('fast');
|
530 |
-
section_post_query.hide('fast');
|
531 |
-
section_video_settings.hide('fast');
|
532 |
-
section_product_query.hide('fast');
|
533 |
-
section_content_carousel.hide('fast');
|
534 |
-
|
535 |
-
if (this.value === 'image-carousel') {
|
536 |
-
section_images_settings.slideDown();
|
537 |
-
section_images_general_settings.slideDown();
|
538 |
-
}
|
539 |
-
if (this.value === 'image-carousel-url') {
|
540 |
-
section_url_images_settings.slideDown();
|
541 |
-
section_images_general_settings.slideDown();
|
542 |
-
}
|
543 |
-
if (this.value === 'post-carousel') {
|
544 |
-
section_post_query.slideDown();
|
545 |
-
}
|
546 |
-
if (this.value === 'video-carousel') {
|
547 |
-
section_video_settings.slideDown();
|
548 |
-
}
|
549 |
-
if (this.value === 'product-carousel') {
|
550 |
-
section_product_query.slideDown();
|
551 |
-
_product_query.show();
|
552 |
-
}
|
553 |
-
if (this.value === 'hero-banner-slider') {
|
554 |
-
section_content_carousel.slideDown();
|
555 |
-
}
|
556 |
-
});
|
557 |
-
|
558 |
-
// Slide Type -- Post Carousel
|
559 |
-
if (slide_type.val() === 'post-carousel') {
|
560 |
-
var _postQueryType = _post_query_type.val();
|
561 |
-
if (_postQueryType === 'date_range') {
|
562 |
-
_post_date_after.show();
|
563 |
-
_post_date_before.show();
|
564 |
-
}
|
565 |
-
if (_postQueryType === 'post_categories') {
|
566 |
-
_post_categories.show();
|
567 |
-
}
|
568 |
-
if (_postQueryType === 'post_tags') {
|
569 |
-
_post_tags.show();
|
570 |
-
}
|
571 |
-
if (_postQueryType === 'specific_posts') {
|
572 |
-
_post_in.show();
|
573 |
-
_posts_per_page.hide();
|
574 |
-
}
|
575 |
-
}
|
576 |
-
|
577 |
-
_post_query_type.on('change', function () {
|
578 |
-
|
579 |
-
_post_date_after.hide('fast');
|
580 |
-
_post_date_before.hide('fast');
|
581 |
-
_post_categories.hide('fast');
|
582 |
-
_post_tags.hide('fast');
|
583 |
-
_post_in.hide('fast');
|
584 |
-
_posts_per_page.show('fast');
|
585 |
-
|
586 |
-
if (this.value === 'date_range') {
|
587 |
-
_post_date_after.slideDown();
|
588 |
-
_post_date_before.slideDown();
|
589 |
-
}
|
590 |
-
if (this.value === 'post_categories') {
|
591 |
-
_post_categories.slideDown();
|
592 |
-
}
|
593 |
-
if (this.value === 'post_tags') {
|
594 |
-
_post_tags.slideDown();
|
595 |
-
}
|
596 |
-
if (this.value === 'specific_posts') {
|
597 |
-
_post_in.slideDown();
|
598 |
-
_posts_per_page.hide('fast');
|
599 |
-
}
|
600 |
-
});
|
601 |
-
|
602 |
-
// Slide Type -- Product Carousel
|
603 |
-
if (slide_type.val() === 'product-carousel') {
|
604 |
-
var _productQueryType = _product_query_type.val();
|
605 |
-
if (_productQueryType === 'query_porduct') {
|
606 |
-
_product_query.show();
|
607 |
-
}
|
608 |
-
if (_productQueryType === 'product_categories') {
|
609 |
-
_product_categories.show();
|
610 |
-
}
|
611 |
-
if (_productQueryType === 'product_tags') {
|
612 |
-
_product_tags.show();
|
613 |
-
}
|
614 |
-
if (_productQueryType === 'specific_products') {
|
615 |
-
_product_in.show();
|
616 |
-
}
|
617 |
-
}
|
618 |
-
|
619 |
-
_product_query_type.on('change', function () {
|
620 |
-
|
621 |
-
_product_query.hide('fast');
|
622 |
-
_product_categories.hide('fast');
|
623 |
-
_product_tags.hide('fast');
|
624 |
-
_product_in.hide('fast');
|
625 |
-
_products_per_page.show('fast');
|
626 |
-
|
627 |
-
if (this.value === 'query_porduct') {
|
628 |
-
_product_query.slideDown();
|
629 |
-
}
|
630 |
-
if (this.value === 'product_categories') {
|
631 |
-
_product_categories.slideDown();
|
632 |
-
}
|
633 |
-
if (this.value === 'product_tags') {
|
634 |
-
_product_tags.slideDown();
|
635 |
-
}
|
636 |
-
if (this.value === 'specific_products') {
|
637 |
-
_product_in.slideDown();
|
638 |
-
_products_per_page.hide('fast');
|
639 |
-
}
|
640 |
-
});
|
641 |
-
})(jQuery);
|
642 |
-
|
643 |
-
(function ($) {
|
644 |
-
"use strict";
|
645 |
-
|
646 |
-
// Initializing TipTip
|
647 |
-
$(".cs-tooltip").each(function () {
|
648 |
-
$(this).tipTip();
|
649 |
-
});
|
650 |
-
|
651 |
-
// Initializing Select2
|
652 |
-
$("select.select2").each(function () {
|
653 |
-
$(this).select2();
|
654 |
-
});
|
655 |
-
|
656 |
-
// Initializing jQuery UI Accordion
|
657 |
-
$(".shapla-toggle").each(function () {
|
658 |
-
if ($(this).attr('data-id') === 'closed') {
|
659 |
-
$(this).accordion({
|
660 |
-
collapsible: true,
|
661 |
-
heightStyle: "content",
|
662 |
-
active: false
|
663 |
-
});
|
664 |
-
} else {
|
665 |
-
$(this).accordion({
|
666 |
-
collapsible: true,
|
667 |
-
heightStyle: "content"
|
668 |
-
});
|
669 |
-
}
|
670 |
-
});
|
671 |
-
|
672 |
-
// Initializing jQuery UI Tab
|
673 |
-
$(".shapla-tabs").tabs({
|
674 |
-
hide: {
|
675 |
-
effect: "fadeOut",
|
676 |
-
duration: 200
|
677 |
-
},
|
678 |
-
show: {
|
679 |
-
effect: "fadeIn",
|
680 |
-
duration: 200
|
681 |
-
}
|
682 |
-
});
|
683 |
-
|
684 |
-
//Initializing jQuery UI Date picker
|
685 |
-
$('.datepicker').each(function () {
|
686 |
-
$(this).datepicker({
|
687 |
-
dateFormat: 'MM dd, yy',
|
688 |
-
changeMonth: true,
|
689 |
-
changeYear: true,
|
690 |
-
onClose: function (selectedDate) {
|
691 |
-
$(this).datepicker('option', 'minDate', selectedDate);
|
692 |
-
}
|
693 |
-
});
|
694 |
-
});
|
695 |
-
|
696 |
-
// Initializing WP Color Picker
|
697 |
-
$('.color-picker').each(function () {
|
698 |
-
$(this).wpColorPicker({
|
699 |
-
palettes: [
|
700 |
-
'#2196F3', // Blue
|
701 |
-
'#009688', // Teal
|
702 |
-
'#4CAF50', // Green
|
703 |
-
'#F44336', // Red
|
704 |
-
'#FFEB3B', // Yellow
|
705 |
-
'#00D1B2', // Firoza
|
706 |
-
'#000000', // Blank
|
707 |
-
'#ffffff' // White
|
708 |
-
]
|
709 |
-
});
|
710 |
-
});
|
711 |
-
})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/js/admin.min.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
!function(e){"use strict";e(document).on("click",".accordion-header",function(){e(this).toggleClass("active");var t=e(this).next();parseInt(t.css("max-height"))>0?(t.css("max-height","0"),t.css("overflow","hidden")):(t.css("max-height",t.prop("scrollHeight")+"px"),t.css("overflow","visible"))})}(jQuery),function(e){"use strict";var t,i,o,s,a,n,l=e("body"),d=e("#contentButtonModal");l.on("click",".carousel-slider__add-slide",function(t){t.preventDefault(),e.ajax({url:ajaxurl,method:"POST",data:{action:"add_content_slide",task:"add-slide",post_id:e(this).data("post-id")},success:function(){window.location.reload(!0)}})}),l.on("click",".carousel_slider__delete_slide",function(t){t.preventDefault(),e.ajax({url:ajaxurl,method:"POST",data:{action:"add_content_slide",task:"delete-slide",post_id:e(this).data("post-id"),slide_pos:e(this).data("slide-pos")},success:function(){window.location.reload(!0)}})}),l.on("click",".carousel_slider__move_top",function(t){t.preventDefault(),e.ajax({url:ajaxurl,method:"POST",data:{action:"add_content_slide",task:"move-slide-top",post_id:e(this).data("post-id"),slide_pos:e(this).data("slide-pos")},success:function(){window.location.reload(!0)}})}),l.on("click",".carousel_slider__move_up",function(t){t.preventDefault(),e.ajax({url:ajaxurl,method:"POST",data:{action:"add_content_slide",task:"move-slide-up",post_id:e(this).data("post-id"),slide_pos:e(this).data("slide-pos")},success:function(){window.location.reload(!0)}})}),l.on("click",".carousel_slider__move_down",function(t){t.preventDefault(),e.ajax({url:ajaxurl,method:"POST",data:{action:"add_content_slide",task:"move-slide-down",post_id:e(this).data("post-id"),slide_pos:e(this).data("slide-pos")},success:function(){window.location.reload(!0)}})}),l.on("click",".carousel_slider__move_bottom",function(t){t.preventDefault(),e.ajax({url:ajaxurl,method:"POST",data:{action:"add_content_slide",task:"move-slide-bottom",post_id:e(this).data("post-id"),slide_pos:e(this).data("slide-pos")},success:function(){window.location.reload(!0)}})}),l.on("click",".slide_image_add",function(n){n.preventDefault();var l=e(this);i=l.closest(".slide_bg_wrapper"),s=i.find(".content_slide_canvas"),o=i.find(".background_image_id"),a=i.find(".delete-bg-img"),t?t.open():((t=wp.media({title:l.data("title"),button:{text:l.data("button-text")},multiple:!1})).on("select",function(){var e=t.state().get("selection").first().toJSON();s.css("background-image","url("+e.url+")"),o.val(e.id),a.removeClass("hidden")}),t.open())}),l.on("click",".delete-bg-img",function(t){t.preventDefault(),i=e(this).closest(".slide_bg_wrapper"),s=i.find(".content_slide_canvas"),o=i.find(".background_image_id"),a=i.find(".delete-bg-img"),s.css("background-image",""),o.val("0"),a.addClass("hidden")}),l.on("change",".background_image_position",function(){var t=e(this).val();i=e(this).closest(".slide_bg_wrapper"),(s=i.find(".content_slide_canvas")).css("background-position",t)}),l.on("change",".background_image_size",function(){var t=e(this).val();i=e(this).closest(".slide_bg_wrapper"),(s=i.find(".content_slide_canvas")).css("background-size",t)}),e(".addContentButton").on("click",function(t){t.preventDefault();var i=(n=e(this).closest(".button_config")).find(".button_text").val(),o=n.find(".button_url").val(),s=n.find(".button_target").val(),a=n.find(".button_type").val(),l=n.find(".button_size").val(),c=n.find(".button_color").val();d.find("#_button_text").val(i),d.find("#_button_url").val(o),d.find("#_button_target").val(s),d.find("#_button_type").val(a),d.find("#_button_size").val(l),d.find("#_button_color").val(c),d.addClass("is-active")}),e("#saveContentButton").on("click",function(e){if(e.preventDefault(),!n)return d.removeClass("is-active"),!1;var t=d.find("#_button_text").val(),i=d.find("#_button_url").val(),o=d.find("#_button_target").val(),s=d.find("#_button_type").val(),a=d.find("#_button_size").val(),l=d.find("#_button_color").val();n.find(".button_text").val(t),n.find(".button_url").val(i),n.find(".button_target").val(o),n.find(".button_type").val(s),n.find(".button_size").val(a),n.find(".button_color").val(l),d.removeClass("is-active")}),e(".slide-color-picker").each(function(){i=e(this).closest(".slide_bg_wrapper"),s=i.find(".content_slide_canvas"),e(this).wpColorPicker({palettes:["#2196F3","#009688","#4CAF50","#F44336","#FFEB3B","#00D1B2","#000000","#ffffff"],change:function(e,t){s.css("background-color",t.color.toString())}})}),e(document).on("change",".link_type",function(t){var i=e(this),o=i.val(),s=i.closest(".tab-content-link"),a=s.find(".ContentCarouselLinkFull"),n=s.find(".ContentCarouselLinkButtons");"full"===o?(n.hide(),a.show()):"button"===o?(a.hide(),n.show()):(a.hide(),n.hide())})}(jQuery),function(e){"use strict";function t(e){if(e){var t=new wp.shortcode({tag:"gallery",attrs:{ids:e},type:"single"}),i=wp.media.gallery.attachments(t),o=new wp.media.model.Selection(i.models,{props:i.props.toJSON(),multiple:!0});return o.gallery=i.gallery,o.more().done(function(){o.props.set({query:!1}),o.unmirror(),o.props.unset("orderby")}),o}return!1}var i,o=e("#carousel_slider_gallery_btn"),s=t(o.data("ids"));o.on("click",function(a){function n(){i.toolbar.get("view").set({insert:{style:"primary",text:o.data("save"),click:function(){var a="";i.state().get("library").each(function(e){a+=e.id+","}),this.el.innerHTML=o.data("progress"),e.ajax({type:"POST",url:ajaxurl,data:{ids:a,action:"carousel_slider_save_images",post_id:o.data("id")},success:function(){s=t(a),e("#_carousel_slider_images_ids").val(a),i.close()},dataType:"html"}).done(function(t){e(".carousel_slider_gallery_list").html(t)})}}})}a.preventDefault();var l={title:o.data("create"),state:"gallery-edit",frame:"post",selection:s};(i||s)&&(l.title=o.data("edit")),(i=wp.media(l).open()).menu.get("view").unset("cancel"),i.menu.get("view").unset("separateCancel"),i.menu.get("view").get("gallery-edit").el.innerHTML=o.data("edit"),i.content.get("view").sidebar.unset("gallery"),n(),i.on("toolbar:render:gallery-edit",function(){n()}),i.on("content:render:browse",function(e){e&&(e.sidebar.on("ready",function(){e.sidebar.unset("gallery")}),e.toolbar.on("ready",function(){"gallery-library"===e.toolbar.controller._state&&e.toolbar.$el.hide()}))}),i.state().get("library").on("remove",function(){0===i.state().get("library").length&&(s=!1,e.post(ajaxurl,{ids:"",action:"carousel_slider_save_images",post_id:o.data("id")}))})})}(jQuery),function(e){"use strict";var t=e("body"),i=e("#CarouselSliderModal"),o=e("#_images_urls_btn"),s=e("#carouselSliderGalleryUrlTemplate").html();o.on("click",function(t){t.preventDefault(),i.css("display","block"),e("body").addClass("overflowHidden")}),i.on("click",".carousel_slider-close",function(t){t.preventDefault(),i.css("display","none"),e("body").removeClass("overflowHidden")});var a=e(window).height()-148;e(".carousel_slider-modal-body").css("height",a+"px"),t.on("click",".add_row",function(){e(this).closest(".carousel_slider-fields").after(s)}),t.on("click",".delete_row",function(){e(this).closest(".carousel_slider-fields").remove()}),e("#carousel_slider_form").sortable()}(jQuery),function(e){"use strict";e(document).on("click",'[data-toggle="modal"]',function(t){t.preventDefault(),e(e(this).data("target")).addClass("is-active")}),e(document).on("click",'[data-dismiss="modal"]',function(t){t.preventDefault(),e(this).closest(".modal").removeClass("is-active")})}(jQuery),function(e){"use strict";var t=e("#_carousel_slider_slide_type"),i=e("#section_images_settings"),o=e("#section_url_images_settings"),s=e("#section_images_general_settings"),a=e("#section_post_query"),n=e("#section_video_settings"),l=e("#section_product_query"),d=e("#section_content_carousel"),c=e("#_post_query_type"),r=e("#field-_post_date_after"),u=e("#field-_post_date_before"),_=e("#field-_post_categories"),f=e("#field-_post_tags"),p=e("#field-_post_in"),h=e("#field-_posts_per_page"),v=e("#_product_query_type"),g=e("#field-_product_query"),b=e("#field-_product_categories"),m=e("#field-_product_tags"),w=e("#field-_product_in"),y=e("#field-_products_per_page");if(t.on("change",function(){i.hide("fast"),o.hide("fast"),s.hide("fast"),a.hide("fast"),n.hide("fast"),l.hide("fast"),d.hide("fast"),"image-carousel"===this.value&&(i.slideDown(),s.slideDown()),"image-carousel-url"===this.value&&(o.slideDown(),s.slideDown()),"post-carousel"===this.value&&a.slideDown(),"video-carousel"===this.value&&n.slideDown(),"product-carousel"===this.value&&(l.slideDown(),g.show()),"hero-banner-slider"===this.value&&d.slideDown()}),"post-carousel"===t.val()){var k=c.val();"date_range"===k&&(r.show(),u.show()),"post_categories"===k&&_.show(),"post_tags"===k&&f.show(),"specific_posts"===k&&(p.show(),h.hide())}if(c.on("change",function(){r.hide("fast"),u.hide("fast"),_.hide("fast"),f.hide("fast"),p.hide("fast"),h.show("fast"),"date_range"===this.value&&(r.slideDown(),u.slideDown()),"post_categories"===this.value&&_.slideDown(),"post_tags"===this.value&&f.slideDown(),"specific_posts"===this.value&&(p.slideDown(),h.hide("fast"))}),"product-carousel"===t.val()){var D=v.val();"query_porduct"===D&&g.show(),"product_categories"===D&&b.show(),"product_tags"===D&&m.show(),"specific_products"===D&&w.show()}v.on("change",function(){g.hide("fast"),b.hide("fast"),m.hide("fast"),w.hide("fast"),y.show("fast"),"query_porduct"===this.value&&g.slideDown(),"product_categories"===this.value&&b.slideDown(),"product_tags"===this.value&&m.slideDown(),"specific_products"===this.value&&(w.slideDown(),y.hide("fast"))})}(jQuery),function(e){"use strict";e(".cs-tooltip").each(function(){e(this).tipTip()}),e("select.select2").each(function(){e(this).select2()}),e(".shapla-toggle").each(function(){"closed"===e(this).attr("data-id")?e(this).accordion({collapsible:!0,heightStyle:"content",active:!1}):e(this).accordion({collapsible:!0,heightStyle:"content"})}),e(".shapla-tabs").tabs({hide:{effect:"fadeOut",duration:200},show:{effect:"fadeIn",duration:200}}),e(".datepicker").each(function(){e(this).datepicker({dateFormat:"MM dd, yy",changeMonth:!0,changeYear:!0,onClose:function(t){e(this).datepicker("option","minDate",t)}})}),e(".color-picker").each(function(){e(this).wpColorPicker({palettes:["#2196F3","#009688","#4CAF50","#F44336","#FFEB3B","#00D1B2","#000000","#ffffff"]})})}(jQuery);
|
|
trunk/assets/js/admin/accordion.js
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
(function ($) {
|
2 |
-
'use strict';
|
3 |
-
$(document).on("click", ".accordion-header", function () {
|
4 |
-
$(this).toggleClass('active');
|
5 |
-
var panel = $(this).next();
|
6 |
-
|
7 |
-
if (parseInt(panel.css('max-height')) > 0) {
|
8 |
-
panel.css('max-height', '0');
|
9 |
-
panel.css('overflow', 'hidden');
|
10 |
-
} else {
|
11 |
-
panel.css('max-height', panel.prop('scrollHeight') + "px");
|
12 |
-
panel.css('overflow', 'visible');
|
13 |
-
}
|
14 |
-
});
|
15 |
-
})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/js/admin/hero-banner.js
DELETED
@@ -1,295 +0,0 @@
|
|
1 |
-
(function ($) {
|
2 |
-
"use strict";
|
3 |
-
|
4 |
-
var body = $('body'),
|
5 |
-
contentButtonModal = $('#contentButtonModal'),
|
6 |
-
frame,
|
7 |
-
section,
|
8 |
-
imgIdInput,
|
9 |
-
slideCanvas,
|
10 |
-
delImgLink,
|
11 |
-
buttonConfig;
|
12 |
-
|
13 |
-
// Add new content slide
|
14 |
-
body.on('click', '.carousel-slider__add-slide', function (e) {
|
15 |
-
e.preventDefault();
|
16 |
-
|
17 |
-
$.ajax({
|
18 |
-
url: ajaxurl,
|
19 |
-
method: 'POST',
|
20 |
-
data: {
|
21 |
-
action: 'add_content_slide',
|
22 |
-
task: 'add-slide',
|
23 |
-
post_id: $(this).data('post-id')
|
24 |
-
},
|
25 |
-
success: function () {
|
26 |
-
window.location.reload(true);
|
27 |
-
}
|
28 |
-
});
|
29 |
-
});
|
30 |
-
|
31 |
-
// Delete a slide
|
32 |
-
body.on('click', '.carousel_slider__delete_slide', function (e) {
|
33 |
-
e.preventDefault();
|
34 |
-
|
35 |
-
$.ajax({
|
36 |
-
url: ajaxurl,
|
37 |
-
method: 'POST',
|
38 |
-
data: {
|
39 |
-
action: 'add_content_slide',
|
40 |
-
task: 'delete-slide',
|
41 |
-
post_id: $(this).data('post-id'),
|
42 |
-
slide_pos: $(this).data('slide-pos')
|
43 |
-
},
|
44 |
-
success: function () {
|
45 |
-
window.location.reload(true);
|
46 |
-
}
|
47 |
-
});
|
48 |
-
});
|
49 |
-
|
50 |
-
// Move slide to top
|
51 |
-
body.on('click', '.carousel_slider__move_top', function (e) {
|
52 |
-
e.preventDefault();
|
53 |
-
|
54 |
-
$.ajax({
|
55 |
-
url: ajaxurl,
|
56 |
-
method: 'POST',
|
57 |
-
data: {
|
58 |
-
action: 'add_content_slide',
|
59 |
-
task: 'move-slide-top',
|
60 |
-
post_id: $(this).data('post-id'),
|
61 |
-
slide_pos: $(this).data('slide-pos')
|
62 |
-
},
|
63 |
-
success: function () {
|
64 |
-
window.location.reload(true);
|
65 |
-
}
|
66 |
-
});
|
67 |
-
});
|
68 |
-
|
69 |
-
// Move slide up
|
70 |
-
body.on('click', '.carousel_slider__move_up', function (e) {
|
71 |
-
e.preventDefault();
|
72 |
-
|
73 |
-
$.ajax({
|
74 |
-
url: ajaxurl,
|
75 |
-
method: 'POST',
|
76 |
-
data: {
|
77 |
-
action: 'add_content_slide',
|
78 |
-
task: 'move-slide-up',
|
79 |
-
post_id: $(this).data('post-id'),
|
80 |
-
slide_pos: $(this).data('slide-pos')
|
81 |
-
},
|
82 |
-
success: function () {
|
83 |
-
window.location.reload(true);
|
84 |
-
}
|
85 |
-
});
|
86 |
-
});
|
87 |
-
|
88 |
-
// Move slide down
|
89 |
-
body.on('click', '.carousel_slider__move_down', function (e) {
|
90 |
-
e.preventDefault();
|
91 |
-
|
92 |
-
$.ajax({
|
93 |
-
url: ajaxurl,
|
94 |
-
method: 'POST',
|
95 |
-
data: {
|
96 |
-
action: 'add_content_slide',
|
97 |
-
task: 'move-slide-down',
|
98 |
-
post_id: $(this).data('post-id'),
|
99 |
-
slide_pos: $(this).data('slide-pos')
|
100 |
-
},
|
101 |
-
success: function () {
|
102 |
-
window.location.reload(true);
|
103 |
-
}
|
104 |
-
});
|
105 |
-
});
|
106 |
-
|
107 |
-
// Move slide to bottom
|
108 |
-
body.on('click', '.carousel_slider__move_bottom', function (e) {
|
109 |
-
e.preventDefault();
|
110 |
-
|
111 |
-
$.ajax({
|
112 |
-
url: ajaxurl,
|
113 |
-
method: 'POST',
|
114 |
-
data: {
|
115 |
-
action: 'add_content_slide',
|
116 |
-
task: 'move-slide-bottom',
|
117 |
-
post_id: $(this).data('post-id'),
|
118 |
-
slide_pos: $(this).data('slide-pos')
|
119 |
-
},
|
120 |
-
success: function () {
|
121 |
-
window.location.reload(true);
|
122 |
-
}
|
123 |
-
});
|
124 |
-
});
|
125 |
-
|
126 |
-
// Add slide image
|
127 |
-
body.on('click', '.slide_image_add', function (e) {
|
128 |
-
e.preventDefault();
|
129 |
-
|
130 |
-
var _this = $(this);
|
131 |
-
section = _this.closest('.slide_bg_wrapper');
|
132 |
-
slideCanvas = section.find('.content_slide_canvas');
|
133 |
-
imgIdInput = section.find('.background_image_id');
|
134 |
-
delImgLink = section.find('.delete-bg-img');
|
135 |
-
|
136 |
-
// If the media frame already exists, reopen it.
|
137 |
-
if (frame) {
|
138 |
-
frame.open();
|
139 |
-
return;
|
140 |
-
}
|
141 |
-
|
142 |
-
// Create a new media frame
|
143 |
-
frame = wp.media({
|
144 |
-
title: _this.data('title'),
|
145 |
-
button: {
|
146 |
-
text: _this.data('button-text')
|
147 |
-
},
|
148 |
-
multiple: false // Set to true to allow multiple files to be selected
|
149 |
-
});
|
150 |
-
|
151 |
-
// When an image is selected in the media frame...
|
152 |
-
frame.on('select', function () {
|
153 |
-
|
154 |
-
// Get media attachment details from the frame state
|
155 |
-
var attachment = frame.state().get('selection').first().toJSON();
|
156 |
-
|
157 |
-
// Send the attachment URL to our custom image input field.
|
158 |
-
slideCanvas.css('background-image', 'url(' + attachment.url + ')');
|
159 |
-
|
160 |
-
// Send the attachment id to our hidden input
|
161 |
-
imgIdInput.val(attachment.id);
|
162 |
-
|
163 |
-
// Show the remove image link
|
164 |
-
delImgLink.removeClass('hidden');
|
165 |
-
});
|
166 |
-
|
167 |
-
// Finally, open the modal on click
|
168 |
-
frame.open();
|
169 |
-
});
|
170 |
-
|
171 |
-
// Remove slide image
|
172 |
-
body.on('click', '.delete-bg-img', function (e) {
|
173 |
-
e.preventDefault();
|
174 |
-
|
175 |
-
section = $(this).closest('.slide_bg_wrapper');
|
176 |
-
slideCanvas = section.find('.content_slide_canvas');
|
177 |
-
imgIdInput = section.find('.background_image_id');
|
178 |
-
delImgLink = section.find('.delete-bg-img');
|
179 |
-
|
180 |
-
// Clear out the preview image
|
181 |
-
slideCanvas.css('background-image', '');
|
182 |
-
|
183 |
-
// Delete the image id from the hidden input
|
184 |
-
imgIdInput.val('0');
|
185 |
-
|
186 |
-
// Hide the delete image link
|
187 |
-
delImgLink.addClass('hidden');
|
188 |
-
});
|
189 |
-
|
190 |
-
// Background Position
|
191 |
-
body.on('change', '.background_image_position', function () {
|
192 |
-
var _val = $(this).val();
|
193 |
-
section = $(this).closest('.slide_bg_wrapper');
|
194 |
-
slideCanvas = section.find('.content_slide_canvas');
|
195 |
-
slideCanvas.css('background-position', _val);
|
196 |
-
});
|
197 |
-
|
198 |
-
// Background Size
|
199 |
-
body.on('change', '.background_image_size', function () {
|
200 |
-
var _val = $(this).val();
|
201 |
-
section = $(this).closest('.slide_bg_wrapper');
|
202 |
-
slideCanvas = section.find('.content_slide_canvas');
|
203 |
-
slideCanvas.css('background-size', _val);
|
204 |
-
});
|
205 |
-
|
206 |
-
// Add Button Style to Modal for Edit
|
207 |
-
$('.addContentButton').on('click', function (e) {
|
208 |
-
e.preventDefault();
|
209 |
-
|
210 |
-
buttonConfig = $(this).closest('.button_config');
|
211 |
-
var button_text = buttonConfig.find('.button_text').val();
|
212 |
-
var button_url = buttonConfig.find('.button_url').val();
|
213 |
-
var button_target = buttonConfig.find('.button_target').val();
|
214 |
-
var button_type = buttonConfig.find('.button_type').val();
|
215 |
-
var button_size = buttonConfig.find('.button_size').val();
|
216 |
-
var button_color = buttonConfig.find('.button_color').val();
|
217 |
-
|
218 |
-
contentButtonModal.find('#_button_text').val(button_text);
|
219 |
-
contentButtonModal.find('#_button_url').val(button_url);
|
220 |
-
contentButtonModal.find('#_button_target').val(button_target);
|
221 |
-
contentButtonModal.find('#_button_type').val(button_type);
|
222 |
-
contentButtonModal.find('#_button_size').val(button_size);
|
223 |
-
contentButtonModal.find('#_button_color').val(button_color);
|
224 |
-
|
225 |
-
contentButtonModal.addClass('is-active');
|
226 |
-
});
|
227 |
-
|
228 |
-
// Save Button style from modal form
|
229 |
-
$('#saveContentButton').on('click', function (e) {
|
230 |
-
e.preventDefault();
|
231 |
-
|
232 |
-
if (!buttonConfig) {
|
233 |
-
contentButtonModal.removeClass('is-active');
|
234 |
-
return false;
|
235 |
-
}
|
236 |
-
|
237 |
-
var button_text = contentButtonModal.find('#_button_text').val();
|
238 |
-
var button_url = contentButtonModal.find('#_button_url').val();
|
239 |
-
var button_target = contentButtonModal.find('#_button_target').val();
|
240 |
-
var button_type = contentButtonModal.find('#_button_type').val();
|
241 |
-
var button_size = contentButtonModal.find('#_button_size').val();
|
242 |
-
var button_color = contentButtonModal.find('#_button_color').val();
|
243 |
-
|
244 |
-
buttonConfig.find('.button_text').val(button_text);
|
245 |
-
buttonConfig.find('.button_url').val(button_url);
|
246 |
-
buttonConfig.find('.button_target').val(button_target);
|
247 |
-
buttonConfig.find('.button_type').val(button_type);
|
248 |
-
buttonConfig.find('.button_size').val(button_size);
|
249 |
-
buttonConfig.find('.button_color').val(button_color);
|
250 |
-
|
251 |
-
contentButtonModal.removeClass('is-active');
|
252 |
-
|
253 |
-
});
|
254 |
-
|
255 |
-
// Background Color
|
256 |
-
$('.slide-color-picker').each(function () {
|
257 |
-
section = $(this).closest('.slide_bg_wrapper');
|
258 |
-
slideCanvas = section.find('.content_slide_canvas');
|
259 |
-
$(this).wpColorPicker({
|
260 |
-
palettes: [
|
261 |
-
'#2196F3', // Blue
|
262 |
-
'#009688', // Teal
|
263 |
-
'#4CAF50', // Green
|
264 |
-
'#F44336', // Red
|
265 |
-
'#FFEB3B', // Yellow
|
266 |
-
'#00D1B2', // Firoza
|
267 |
-
'#000000', // Blank
|
268 |
-
'#ffffff' // White
|
269 |
-
],
|
270 |
-
change: function (event, ui) {
|
271 |
-
slideCanvas.css('background-color', ui.color.toString());
|
272 |
-
}
|
273 |
-
});
|
274 |
-
});
|
275 |
-
|
276 |
-
// Slide Link
|
277 |
-
$(document).on('change', '.link_type', function (e) {
|
278 |
-
var _this = $(this);
|
279 |
-
var _val = _this.val();
|
280 |
-
var _tab = _this.closest('.tab-content-link');
|
281 |
-
var _linkFull = _tab.find('.ContentCarouselLinkFull');
|
282 |
-
var _linkBtn = _tab.find('.ContentCarouselLinkButtons');
|
283 |
-
if (_val === 'full') {
|
284 |
-
_linkBtn.hide();
|
285 |
-
_linkFull.show();
|
286 |
-
} else if (_val === 'button') {
|
287 |
-
_linkFull.hide();
|
288 |
-
_linkBtn.show();
|
289 |
-
} else {
|
290 |
-
_linkFull.hide();
|
291 |
-
_linkBtn.hide();
|
292 |
-
}
|
293 |
-
})
|
294 |
-
|
295 |
-
})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/js/admin/index.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// Code is Poetry
|
|
|
|
trunk/assets/js/admin/media-gallery.js
DELETED
@@ -1,131 +0,0 @@
|
|
1 |
-
(function ($) {
|
2 |
-
"use strict";
|
3 |
-
|
4 |
-
var frame,
|
5 |
-
_this = $('#carousel_slider_gallery_btn'),
|
6 |
-
images = _this.data('ids'),
|
7 |
-
selection = loadImages(images);
|
8 |
-
|
9 |
-
_this.on('click', function (e) {
|
10 |
-
e.preventDefault();
|
11 |
-
var options = {
|
12 |
-
title: _this.data('create'),
|
13 |
-
state: 'gallery-edit',
|
14 |
-
frame: 'post',
|
15 |
-
selection: selection
|
16 |
-
};
|
17 |
-
|
18 |
-
if (frame || selection) {
|
19 |
-
options['title'] = _this.data('edit');
|
20 |
-
}
|
21 |
-
|
22 |
-
frame = wp.media(options).open();
|
23 |
-
|
24 |
-
// Tweak Views
|
25 |
-
frame.menu.get('view').unset('cancel');
|
26 |
-
frame.menu.get('view').unset('separateCancel');
|
27 |
-
frame.menu.get('view').get('gallery-edit').el.innerHTML = _this.data('edit');
|
28 |
-
frame.content.get('view').sidebar.unset('gallery'); // Hide Gallery Settings in sidebar
|
29 |
-
|
30 |
-
// when editing a gallery
|
31 |
-
overrideGalleryInsert();
|
32 |
-
frame.on('toolbar:render:gallery-edit', function () {
|
33 |
-
overrideGalleryInsert();
|
34 |
-
});
|
35 |
-
|
36 |
-
frame.on('content:render:browse', function (browser) {
|
37 |
-
if (!browser) return;
|
38 |
-
// Hide Gallery Settings in sidebar
|
39 |
-
browser.sidebar.on('ready', function () {
|
40 |
-
browser.sidebar.unset('gallery');
|
41 |
-
});
|
42 |
-
// Hide filter/search as they don't work
|
43 |
-
browser.toolbar.on('ready', function () {
|
44 |
-
if (browser.toolbar.controller._state === 'gallery-library') {
|
45 |
-
browser.toolbar.$el.hide();
|
46 |
-
}
|
47 |
-
});
|
48 |
-
});
|
49 |
-
|
50 |
-
// All images removed
|
51 |
-
frame.state().get('library').on('remove', function () {
|
52 |
-
var models = frame.state().get('library');
|
53 |
-
if (models.length === 0) {
|
54 |
-
selection = false;
|
55 |
-
$.post(ajaxurl, {
|
56 |
-
ids: '',
|
57 |
-
action: 'carousel_slider_save_images',
|
58 |
-
post_id: _this.data('id')
|
59 |
-
});
|
60 |
-
}
|
61 |
-
});
|
62 |
-
|
63 |
-
function overrideGalleryInsert() {
|
64 |
-
frame.toolbar.get('view').set({
|
65 |
-
insert: {
|
66 |
-
style: 'primary',
|
67 |
-
text: _this.data('save'),
|
68 |
-
click: function () {
|
69 |
-
var models = frame.state().get('library'),
|
70 |
-
ids = '';
|
71 |
-
|
72 |
-
models.each(function (attachment) {
|
73 |
-
ids += attachment.id + ','
|
74 |
-
});
|
75 |
-
|
76 |
-
this.el.innerHTML = _this.data('progress');
|
77 |
-
|
78 |
-
$.ajax({
|
79 |
-
type: 'POST',
|
80 |
-
url: ajaxurl,
|
81 |
-
data: {
|
82 |
-
ids: ids,
|
83 |
-
action: 'carousel_slider_save_images',
|
84 |
-
post_id: _this.data('id')
|
85 |
-
},
|
86 |
-
success: function () {
|
87 |
-
selection = loadImages(ids);
|
88 |
-
$('#_carousel_slider_images_ids').val(ids);
|
89 |
-
frame.close();
|
90 |
-
},
|
91 |
-
dataType: 'html'
|
92 |
-
}).done(function (data) {
|
93 |
-
$('.carousel_slider_gallery_list').html(data);
|
94 |
-
});
|
95 |
-
}
|
96 |
-
}
|
97 |
-
});
|
98 |
-
}
|
99 |
-
|
100 |
-
});
|
101 |
-
|
102 |
-
function loadImages(images) {
|
103 |
-
if (images) {
|
104 |
-
var shortcode = new wp.shortcode({
|
105 |
-
tag: 'gallery',
|
106 |
-
attrs: {ids: images},
|
107 |
-
type: 'single'
|
108 |
-
});
|
109 |
-
|
110 |
-
var attachments = wp.media.gallery.attachments(shortcode);
|
111 |
-
|
112 |
-
var selection = new wp.media.model.Selection(attachments.models, {
|
113 |
-
props: attachments.props.toJSON(),
|
114 |
-
multiple: true
|
115 |
-
});
|
116 |
-
|
117 |
-
selection.gallery = attachments.gallery;
|
118 |
-
|
119 |
-
selection.more().done(function () {
|
120 |
-
// Break ties with the query.
|
121 |
-
selection.props.set({query: false});
|
122 |
-
selection.unmirror();
|
123 |
-
selection.props.unset('orderby');
|
124 |
-
});
|
125 |
-
|
126 |
-
return selection;
|
127 |
-
}
|
128 |
-
return false;
|
129 |
-
}
|
130 |
-
|
131 |
-
})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/js/admin/media-url.js
DELETED
@@ -1,40 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Carousel Slider Gallery from URL
|
3 |
-
*/
|
4 |
-
(function ($) {
|
5 |
-
'use strict';
|
6 |
-
|
7 |
-
var body = $('body'),
|
8 |
-
modal = $('#CarouselSliderModal'),
|
9 |
-
modalOpenBtn = $('#_images_urls_btn'),
|
10 |
-
template = $('#carouselSliderGalleryUrlTemplate').html();
|
11 |
-
|
12 |
-
// URL Images Model
|
13 |
-
modalOpenBtn.on('click', function (e) {
|
14 |
-
e.preventDefault();
|
15 |
-
modal.css("display", "block");
|
16 |
-
$("body").addClass("overflowHidden");
|
17 |
-
});
|
18 |
-
modal.on('click', '.carousel_slider-close', function (e) {
|
19 |
-
e.preventDefault();
|
20 |
-
modal.css("display", "none");
|
21 |
-
$("body").removeClass("overflowHidden");
|
22 |
-
});
|
23 |
-
|
24 |
-
var carouselSliderBodyHeight = $(window).height() - (38 + 48 + 32 + 30);
|
25 |
-
$('.carousel_slider-modal-body').css('height', carouselSliderBodyHeight + 'px');
|
26 |
-
|
27 |
-
// Append new row
|
28 |
-
body.on('click', '.add_row', function () {
|
29 |
-
$(this).closest('.carousel_slider-fields').after(template);
|
30 |
-
});
|
31 |
-
|
32 |
-
// Delete current row
|
33 |
-
body.on('click', '.delete_row', function () {
|
34 |
-
$(this).closest('.carousel_slider-fields').remove();
|
35 |
-
});
|
36 |
-
|
37 |
-
// Make fields sortable
|
38 |
-
$('#carousel_slider_form').sortable();
|
39 |
-
|
40 |
-
})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/js/admin/modal.js
DELETED
@@ -1,16 +0,0 @@
|
|
1 |
-
(function ($) {
|
2 |
-
'use strict';
|
3 |
-
|
4 |
-
// Open modal
|
5 |
-
$(document).on('click', '[data-toggle="modal"]', function (e) {
|
6 |
-
e.preventDefault();
|
7 |
-
$($(this).data('target')).addClass('is-active');
|
8 |
-
});
|
9 |
-
|
10 |
-
// Close modal
|
11 |
-
$(document).on('click', '[data-dismiss="modal"]', function (e) {
|
12 |
-
e.preventDefault();
|
13 |
-
$(this).closest('.modal').removeClass('is-active');
|
14 |
-
});
|
15 |
-
|
16 |
-
})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/js/admin/slide-type.js
DELETED
@@ -1,144 +0,0 @@
|
|
1 |
-
(function ($) {
|
2 |
-
"use strict";
|
3 |
-
|
4 |
-
var slide_type = $('#_carousel_slider_slide_type'),
|
5 |
-
section_images_settings = $('#section_images_settings'),
|
6 |
-
section_url_images_settings = $('#section_url_images_settings'),
|
7 |
-
section_images_general_settings = $('#section_images_general_settings'),
|
8 |
-
section_post_query = $('#section_post_query'),
|
9 |
-
section_video_settings = $('#section_video_settings'),
|
10 |
-
section_product_query = $('#section_product_query'),
|
11 |
-
section_content_carousel = $('#section_content_carousel'),
|
12 |
-
// Slide Type -- Post
|
13 |
-
_post_query_type = $('#_post_query_type'),
|
14 |
-
_post_date_after = $('#field-_post_date_after'),
|
15 |
-
_post_date_before = $('#field-_post_date_before'),
|
16 |
-
_post_categories = $('#field-_post_categories'),
|
17 |
-
_post_tags = $('#field-_post_tags'),
|
18 |
-
_post_in = $('#field-_post_in'),
|
19 |
-
_posts_per_page = $('#field-_posts_per_page'),
|
20 |
-
// Slide Type -- Product
|
21 |
-
_product_query_type = $('#_product_query_type'),
|
22 |
-
_product_query = $('#field-_product_query'),
|
23 |
-
_product_categories = $('#field-_product_categories'),
|
24 |
-
_product_tags = $('#field-_product_tags'),
|
25 |
-
_product_in = $('#field-_product_in'),
|
26 |
-
_products_per_page = $('#field-_products_per_page');
|
27 |
-
|
28 |
-
// Slide Type
|
29 |
-
slide_type.on('change', function () {
|
30 |
-
section_images_settings.hide('fast');
|
31 |
-
section_url_images_settings.hide('fast');
|
32 |
-
section_images_general_settings.hide('fast');
|
33 |
-
section_post_query.hide('fast');
|
34 |
-
section_video_settings.hide('fast');
|
35 |
-
section_product_query.hide('fast');
|
36 |
-
section_content_carousel.hide('fast');
|
37 |
-
|
38 |
-
if (this.value === 'image-carousel') {
|
39 |
-
section_images_settings.slideDown();
|
40 |
-
section_images_general_settings.slideDown();
|
41 |
-
}
|
42 |
-
if (this.value === 'image-carousel-url') {
|
43 |
-
section_url_images_settings.slideDown();
|
44 |
-
section_images_general_settings.slideDown();
|
45 |
-
}
|
46 |
-
if (this.value === 'post-carousel') {
|
47 |
-
section_post_query.slideDown();
|
48 |
-
}
|
49 |
-
if (this.value === 'video-carousel') {
|
50 |
-
section_video_settings.slideDown();
|
51 |
-
}
|
52 |
-
if (this.value === 'product-carousel') {
|
53 |
-
section_product_query.slideDown();
|
54 |
-
_product_query.show();
|
55 |
-
}
|
56 |
-
if (this.value === 'hero-banner-slider') {
|
57 |
-
section_content_carousel.slideDown();
|
58 |
-
}
|
59 |
-
});
|
60 |
-
|
61 |
-
// Slide Type -- Post Carousel
|
62 |
-
if (slide_type.val() === 'post-carousel') {
|
63 |
-
var _postQueryType = _post_query_type.val();
|
64 |
-
if (_postQueryType === 'date_range') {
|
65 |
-
_post_date_after.show();
|
66 |
-
_post_date_before.show();
|
67 |
-
}
|
68 |
-
if (_postQueryType === 'post_categories') {
|
69 |
-
_post_categories.show();
|
70 |
-
}
|
71 |
-
if (_postQueryType === 'post_tags') {
|
72 |
-
_post_tags.show();
|
73 |
-
}
|
74 |
-
if (_postQueryType === 'specific_posts') {
|
75 |
-
_post_in.show();
|
76 |
-
_posts_per_page.hide();
|
77 |
-
}
|
78 |
-
}
|
79 |
-
|
80 |
-
_post_query_type.on('change', function () {
|
81 |
-
|
82 |
-
_post_date_after.hide('fast');
|
83 |
-
_post_date_before.hide('fast');
|
84 |
-
_post_categories.hide('fast');
|
85 |
-
_post_tags.hide('fast');
|
86 |
-
_post_in.hide('fast');
|
87 |
-
_posts_per_page.show('fast');
|
88 |
-
|
89 |
-
if (this.value === 'date_range') {
|
90 |
-
_post_date_after.slideDown();
|
91 |
-
_post_date_before.slideDown();
|
92 |
-
}
|
93 |
-
if (this.value === 'post_categories') {
|
94 |
-
_post_categories.slideDown();
|
95 |
-
}
|
96 |
-
if (this.value === 'post_tags') {
|
97 |
-
_post_tags.slideDown();
|
98 |
-
}
|
99 |
-
if (this.value === 'specific_posts') {
|
100 |
-
_post_in.slideDown();
|
101 |
-
_posts_per_page.hide('fast');
|
102 |
-
}
|
103 |
-
});
|
104 |
-
|
105 |
-
// Slide Type -- Product Carousel
|
106 |
-
if (slide_type.val() === 'product-carousel') {
|
107 |
-
var _productQueryType = _product_query_type.val();
|
108 |
-
if (_productQueryType === 'query_porduct') {
|
109 |
-
_product_query.show();
|
110 |
-
}
|
111 |
-
if (_productQueryType === 'product_categories') {
|
112 |
-
_product_categories.show();
|
113 |
-
}
|
114 |
-
if (_productQueryType === 'product_tags') {
|
115 |
-
_product_tags.show();
|
116 |
-
}
|
117 |
-
if (_productQueryType === 'specific_products') {
|
118 |
-
_product_in.show();
|
119 |
-
}
|
120 |
-
}
|
121 |
-
|
122 |
-
_product_query_type.on('change', function () {
|
123 |
-
|
124 |
-
_product_query.hide('fast');
|
125 |
-
_product_categories.hide('fast');
|
126 |
-
_product_tags.hide('fast');
|
127 |
-
_product_in.hide('fast');
|
128 |
-
_products_per_page.show('fast');
|
129 |
-
|
130 |
-
if (this.value === 'query_porduct') {
|
131 |
-
_product_query.slideDown();
|
132 |
-
}
|
133 |
-
if (this.value === 'product_categories') {
|
134 |
-
_product_categories.slideDown();
|
135 |
-
}
|
136 |
-
if (this.value === 'product_tags') {
|
137 |
-
_product_tags.slideDown();
|
138 |
-
}
|
139 |
-
if (this.value === 'specific_products') {
|
140 |
-
_product_in.slideDown();
|
141 |
-
_products_per_page.hide('fast');
|
142 |
-
}
|
143 |
-
});
|
144 |
-
})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/js/admin/vendors.js
DELETED
@@ -1,69 +0,0 @@
|
|
1 |
-
(function ($) {
|
2 |
-
"use strict";
|
3 |
-
|
4 |
-
// Initializing TipTip
|
5 |
-
$(".cs-tooltip").each(function () {
|
6 |
-
$(this).tipTip();
|
7 |
-
});
|
8 |
-
|
9 |
-
// Initializing Select2
|
10 |
-
$("select.select2").each(function () {
|
11 |
-
$(this).select2();
|
12 |
-
});
|
13 |
-
|
14 |
-
// Initializing jQuery UI Accordion
|
15 |
-
$(".shapla-toggle").each(function () {
|
16 |
-
if ($(this).attr('data-id') === 'closed') {
|
17 |
-
$(this).accordion({
|
18 |
-
collapsible: true,
|
19 |
-
heightStyle: "content",
|
20 |
-
active: false
|
21 |
-
});
|
22 |
-
} else {
|
23 |
-
$(this).accordion({
|
24 |
-
collapsible: true,
|
25 |
-
heightStyle: "content"
|
26 |
-
});
|
27 |
-
}
|
28 |
-
});
|
29 |
-
|
30 |
-
// Initializing jQuery UI Tab
|
31 |
-
$(".shapla-tabs").tabs({
|
32 |
-
hide: {
|
33 |
-
effect: "fadeOut",
|
34 |
-
duration: 200
|
35 |
-
},
|
36 |
-
show: {
|
37 |
-
effect: "fadeIn",
|
38 |
-
duration: 200
|
39 |
-
}
|
40 |
-
});
|
41 |
-
|
42 |
-
//Initializing jQuery UI Date picker
|
43 |
-
$('.datepicker').each(function () {
|
44 |
-
$(this).datepicker({
|
45 |
-
dateFormat: 'MM dd, yy',
|
46 |
-
changeMonth: true,
|
47 |
-
changeYear: true,
|
48 |
-
onClose: function (selectedDate) {
|
49 |
-
$(this).datepicker('option', 'minDate', selectedDate);
|
50 |
-
}
|
51 |
-
});
|
52 |
-
});
|
53 |
-
|
54 |
-
// Initializing WP Color Picker
|
55 |
-
$('.color-picker').each(function () {
|
56 |
-
$(this).wpColorPicker({
|
57 |
-
palettes: [
|
58 |
-
'#2196F3', // Blue
|
59 |
-
'#009688', // Teal
|
60 |
-
'#4CAF50', // Green
|
61 |
-
'#F44336', // Red
|
62 |
-
'#FFEB3B', // Yellow
|
63 |
-
'#00D1B2', // Firoza
|
64 |
-
'#000000', // Blank
|
65 |
-
'#ffffff' // White
|
66 |
-
]
|
67 |
-
});
|
68 |
-
});
|
69 |
-
})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/js/index.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// Code is Poetry
|
|
|
|
trunk/assets/js/public/index.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// Code is Poetry
|
|
|
|
trunk/assets/js/public/script.js
DELETED
@@ -1,69 +0,0 @@
|
|
1 |
-
(function ($) {
|
2 |
-
'use strict';
|
3 |
-
|
4 |
-
var mobile = 767,
|
5 |
-
tablet = 768,
|
6 |
-
desktop = 1025,
|
7 |
-
minHeadingFont = 20,
|
8 |
-
minDescFont = 16,
|
9 |
-
heading,
|
10 |
-
headingFontSize = 60,
|
11 |
-
headingFontSizeNum = 60,
|
12 |
-
description,
|
13 |
-
descriptionFontSize = 24,
|
14 |
-
descriptionFontSizeNum = 24;
|
15 |
-
|
16 |
-
|
17 |
-
function scaleSliderText() {
|
18 |
-
var windowW = $(window).width();
|
19 |
-
|
20 |
-
$('.carousel-slider .slide-content').each(function () {
|
21 |
-
|
22 |
-
heading = $(this).find('.heading-title');
|
23 |
-
headingFontSize = heading.data('font-size');
|
24 |
-
headingFontSizeNum = parseInt(headingFontSize);
|
25 |
-
|
26 |
-
if (headingFontSizeNum) {
|
27 |
-
if (windowW <= mobile) {
|
28 |
-
headingFontSize = headingFontSizeNum / 3;
|
29 |
-
headingFontSize = headingFontSize < minHeadingFont ? minHeadingFont : headingFontSize;
|
30 |
-
heading.css('font-size', headingFontSize + 'px');
|
31 |
-
}
|
32 |
-
if (windowW >= tablet && windowW < desktop) {
|
33 |
-
headingFontSize = headingFontSizeNum / 2;
|
34 |
-
headingFontSize = headingFontSize < minHeadingFont ? minHeadingFont : headingFontSize;
|
35 |
-
heading.css('font-size', headingFontSize + 'px');
|
36 |
-
}
|
37 |
-
if (windowW >= desktop) {
|
38 |
-
heading.css('font-size', headingFontSize + 'px');
|
39 |
-
}
|
40 |
-
}
|
41 |
-
|
42 |
-
description = $(this).find('.description-title');
|
43 |
-
descriptionFontSize = description.data('font-size');
|
44 |
-
descriptionFontSizeNum = parseInt(descriptionFontSize);
|
45 |
-
|
46 |
-
if (descriptionFontSizeNum) {
|
47 |
-
if (windowW <= mobile) {
|
48 |
-
descriptionFontSize = descriptionFontSizeNum / 3;
|
49 |
-
descriptionFontSize = descriptionFontSize < minDescFont ? minDescFont : descriptionFontSize;
|
50 |
-
description.css('font-size', descriptionFontSize + 'px');
|
51 |
-
}
|
52 |
-
if (windowW >= tablet && windowW < desktop) {
|
53 |
-
descriptionFontSize = descriptionFontSizeNum / 2;
|
54 |
-
descriptionFontSize = descriptionFontSize < minDescFont ? minDescFont : descriptionFontSize;
|
55 |
-
description.css('font-size', descriptionFontSize + 'px');
|
56 |
-
}
|
57 |
-
if (windowW >= desktop) {
|
58 |
-
description.css('font-size', descriptionFontSize + 'px');
|
59 |
-
}
|
60 |
-
}
|
61 |
-
});
|
62 |
-
}
|
63 |
-
|
64 |
-
|
65 |
-
window.addEventListener("load", scaleSliderText);
|
66 |
-
window.addEventListener("resize", scaleSliderText);
|
67 |
-
window.addEventListener("orientationchange", scaleSliderText);
|
68 |
-
|
69 |
-
})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/js/vendors/index.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// Code is Poetry
|
|
|
|
trunk/assets/js/vendors/jquery.magnific-popup.min.js
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
/*! Magnific Popup - v1.1.0 - 2016-02-20
|
2 |
-
* http://dimsemenov.com/plugins/magnific-popup/
|
3 |
-
* Copyright (c) 2016 Dmitry Semenov; */
|
4 |
-
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isLowIE=b.isIE8=document.all&&!document.addEventListener,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x("bg").on("click"+p,function(){b.close()}),b.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x("container",b.wrap)),b.contentContainer=x("content"),b.st.preloader&&(b.preloader=x("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b["init"+j].call(b)}y("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(z())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:v.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup"+p,function(a){27===a.keyCode&&b.close()}),v.on("resize"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):n.overflow="hidden");var r=b.st.mainClass;return b.isIE7&&(r+=" mfp-ie7"),r&&b._addClassToMFP(r),b.updateItemHTML(),y("BuildControls"),a("html").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on("focusin"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+" "+q+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup"+p+" focusin"+p),b.ev.off(p),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b.st.autoFocusLast&&b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css("height",b.wH),y("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=b.st[d]?b.st[d].markup:!1;y("FirstMarkupParse",f),f?b.currTemplate[d]=a(f):b.currTemplate[d]=!0}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(".mfp-close").length||b.content.append(z()):b.content=a:b.content="",y(k),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,y("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||!(2===c.which||c.ctrlKey||c.metaKey||c.altKey||c.shiftKey)){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(v.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};y("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(c,d){if(void 0===d||d===!1)return!0;if(e=c.split("_"),e.length>1){var f=b.find(p+"-"+e[0]);if(f.length>0){var g=e[1];"replaceWith"===g?f[0]!==d[0]&&f.replaceWith(d):"img"===g?f.is("img")?f.attr("src",d):f.replaceWith(a("<img>").attr("src",d).attr("class",f.attr("class"))):f.attr(e[1],d)}}else b.find(p+"-"+c).html(d)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery";return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()});
|
|
|
|
|
|
|
|
trunk/assets/js/vendors/jquery.tipTip.min.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
!function(t){t.fn.tipTip=function(e){var o={activation:"hover",keepAlive:!1,maxWidth:"200px",edgeOffset:3,defaultPosition:"bottom",delay:400,fadeIn:200,fadeOut:200,attribute:"title",content:!1,enter:function(){},exit:function(){}},i=t.extend(o,e);if(t("#tiptip_holder").length<=0){var n=t('<div id="tiptip_holder" style="max-width:'+i.maxWidth+';"></div>'),r=t('<div id="tiptip_content"></div>'),a=t('<div id="tiptip_arrow"></div>');t("body").append(n.html(r).prepend(a.html('<div id="tiptip_arrow_inner"></div>')))}else var n=t("#tiptip_holder"),r=t("#tiptip_content"),a=t("#tiptip_arrow");return this.each(function(){function e(){i.enter.call(this),r.html(d),n.hide().removeAttr("class").css("margin","0"),a.removeAttr("style");var e=parseInt(f.offset().top),o=parseInt(f.offset().left),p=parseInt(f.outerWidth()),l=parseInt(f.outerHeight()),h=n.outerWidth(),c=n.outerHeight(),s=Math.round((p-h)/2),_=Math.round((l-c)/2),v=Math.round(o+s),m=Math.round(e+l+i.edgeOffset),g="",b="",M=Math.round(h-12)/2;"bottom"==i.defaultPosition?g="_bottom":"top"==i.defaultPosition?g="_top":"left"==i.defaultPosition?g="_left":"right"==i.defaultPosition&&(g="_right");var w=s+o<parseInt(t(window).scrollLeft()),O=h+o>parseInt(t(window).width());w&&s<0||"_right"==g&&!O||"_left"==g&&o<h+i.edgeOffset+5?(g="_right",b=Math.round(c-13)/2,M=-12,v=Math.round(o+p+i.edgeOffset),m=Math.round(e+_)):(O&&s<0||"_left"==g&&!w)&&(g="_left",b=Math.round(c-13)/2,M=Math.round(h),v=Math.round(o-(h+i.edgeOffset+5)),m=Math.round(e+_));var x=e+l+i.edgeOffset+c+8>parseInt(t(window).height()+t(window).scrollTop()),I=e+l-(i.edgeOffset+c+8)<0;x||"_bottom"==g&&x||"_top"==g&&!I?("_top"==g||"_bottom"==g?g="_top":g+="_top",b=c,m=Math.round(e-(c+5+i.edgeOffset))):(I|("_top"==g&&I)||"_bottom"==g&&!x)&&("_top"==g||"_bottom"==g?g="_bottom":g+="_bottom",b=-12,m=Math.round(e+l+i.edgeOffset)),"_right_top"==g||"_left_top"==g?m+=5:"_right_bottom"!=g&&"_left_bottom"!=g||(m-=5),"_left_top"!=g&&"_left_bottom"!=g||(v+=5),a.css({"margin-left":M+"px","margin-top":b+"px"}),n.css({"margin-left":v+"px","margin-top":m+"px"}).attr("class","tip"+g),u&&clearTimeout(u),u=setTimeout(function(){n.stop(!0,!0).fadeIn(i.fadeIn)},i.delay)}function o(){i.exit.call(this),u&&clearTimeout(u),n.fadeOut(i.fadeOut)}var f=t(this);if(i.content)d=i.content;else var d=f.attr(i.attribute);if(""!=d){i.content||f.removeAttr(i.attribute);var u=!1;"hover"==i.activation?(f.hover(function(){e()},function(){i.keepAlive||o()}),i.keepAlive&&n.hover(function(){},function(){o()})):"focus"==i.activation?f.focus(function(){e()}).blur(function(){o()}):"click"==i.activation&&(f.click(function(){return e(),!1}).hover(function(){},function(){i.keepAlive||o()}),i.keepAlive&&n.hover(function(){},function(){o()}))}})}}(jQuery);
|
|
trunk/assets/js/vendors/owl.carousel.min.js
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Owl Carousel v2.2.1
|
3 |
-
* Copyright 2013-2017 David Deutsch
|
4 |
-
* Licensed under ()
|
5 |
-
*/
|
6 |
-
!function(a,b,c,d){function e(b,c){this.settings=null,this.options=a.extend({},e.Defaults,c),this.$element=a(b),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},a.each(["onResize","onThrottledResize"],a.proxy(function(b,c){this._handlers[c]=a.proxy(this[c],this)},this)),a.each(e.Plugins,a.proxy(function(a,b){this._plugins[a.charAt(0).toLowerCase()+a.slice(1)]=new b(this)},this)),a.each(e.Workers,a.proxy(function(b,c){this._pipe.push({filter:c.filter,run:a.proxy(c.run,this)})},this)),this.setup(),this.initialize()}e.Defaults={items:3,loop:!1,center:!1,rewind:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:b,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},e.Width={Default:"default",Inner:"inner",Outer:"outer"},e.Type={Event:"event",State:"state"},e.Plugins={},e.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(a){a.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(a){var b=this.settings.margin||"",c=!this.settings.autoWidth,d=this.settings.rtl,e={width:"auto","margin-left":d?b:"","margin-right":d?"":b};!c&&this.$stage.children().css(e),a.css=e}},{filter:["width","items","settings"],run:function(a){var b=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,c=null,d=this._items.length,e=!this.settings.autoWidth,f=[];for(a.items={merge:!1,width:b};d--;)c=this._mergers[d],c=this.settings.mergeFit&&Math.min(c,this.settings.items)||c,a.items.merge=c>1||a.items.merge,f[d]=e?b*c:this._items[d].width();this._widths=f}},{filter:["items","settings"],run:function(){var b=[],c=this._items,d=this.settings,e=Math.max(2*d.items,4),f=2*Math.ceil(c.length/2),g=d.loop&&c.length?d.rewind?e:Math.max(e,f):0,h="",i="";for(g/=2;g--;)b.push(this.normalize(b.length/2,!0)),h+=c[b[b.length-1]][0].outerHTML,b.push(this.normalize(c.length-1-(b.length-1)/2,!0)),i=c[b[b.length-1]][0].outerHTML+i;this._clones=b,a(h).addClass("cloned").appendTo(this.$stage),a(i).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var a=this.settings.rtl?1:-1,b=this._clones.length+this._items.length,c=-1,d=0,e=0,f=[];++c<b;)d=f[c-1]||0,e=this._widths[this.relative(c)]+this.settings.margin,f.push(d+e*a);this._coordinates=f}},{filter:["width","items","settings"],run:function(){var a=this.settings.stagePadding,b=this._coordinates,c={width:Math.ceil(Math.abs(b[b.length-1]))+2*a,"padding-left":a||"","padding-right":a||""};this.$stage.css(c)}},{filter:["width","items","settings"],run:function(a){var b=this._coordinates.length,c=!this.settings.autoWidth,d=this.$stage.children();if(c&&a.items.merge)for(;b--;)a.css.width=this._widths[this.relative(b)],d.eq(b).css(a.css);else c&&(a.css.width=a.items.width,d.css(a.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(a){a.current=a.current?this.$stage.children().index(a.current):0,a.current=Math.max(this.minimum(),Math.min(this.maximum(),a.current)),this.reset(a.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var a,b,c,d,e=this.settings.rtl?1:-1,f=2*this.settings.stagePadding,g=this.coordinates(this.current())+f,h=g+this.width()*e,i=[];for(c=0,d=this._coordinates.length;c<d;c++)a=this._coordinates[c-1]||0,b=Math.abs(this._coordinates[c])+f*e,(this.op(a,"<=",g)&&this.op(a,">",h)||this.op(b,"<",g)&&this.op(b,">",h))&&i.push(c);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+i.join("), :eq(")+")").addClass("active"),this.settings.center&&(this.$stage.children(".center").removeClass("center"),this.$stage.children().eq(this.current()).addClass("center"))}}],e.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var b,c,e;b=this.$element.find("img"),c=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:d,e=this.$element.children(c).width(),b.length&&e<=0&&this.preloadAutoWidthImages(b)}this.$element.addClass(this.options.loadingClass),this.$stage=a("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('<div class="'+this.settings.stageOuterClass+'"/>'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this.$element.is(":visible")?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},e.prototype.setup=function(){var b=this.viewport(),c=this.options.responsive,d=-1,e=null;c?(a.each(c,function(a){a<=b&&a>d&&(d=Number(a))}),e=a.extend({},this.options,c[d]),"function"==typeof e.stagePadding&&(e.stagePadding=e.stagePadding()),delete e.responsive,e.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+d))):e=a.extend({},this.options),this.trigger("change",{property:{name:"settings",value:e}}),this._breakpoint=d,this.settings=e,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},e.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},e.prototype.prepare=function(b){var c=this.trigger("prepare",{content:b});return c.data||(c.data=a("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(b)),this.trigger("prepared",{content:c.data}),c.data},e.prototype.update=function(){for(var b=0,c=this._pipe.length,d=a.proxy(function(a){return this[a]},this._invalidated),e={};b<c;)(this._invalidated.all||a.grep(this._pipe[b].filter,d).length>0)&&this._pipe[b].run(e),b++;this._invalidated={},!this.is("valid")&&this.enter("valid")},e.prototype.width=function(a){switch(a=a||e.Width.Default){case e.Width.Inner:case e.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},e.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},e.prototype.onThrottledResize=function(){b.clearTimeout(this.resizeTimer),this.resizeTimer=b.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},e.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.$element.is(":visible")&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},e.prototype.registerEventHandlers=function(){a.support.transition&&this.$stage.on(a.support.transition.end+".owl.core",a.proxy(this.onTransitionEnd,this)),this.settings.responsive!==!1&&this.on(b,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",a.proxy(this.onDragEnd,this)))},e.prototype.onDragStart=function(b){var d=null;3!==b.which&&(a.support.transform?(d=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),d={x:d[16===d.length?12:4],y:d[16===d.length?13:5]}):(d=this.$stage.position(),d={x:this.settings.rtl?d.left+this.$stage.width()-this.width()+this.settings.margin:d.left,y:d.top}),this.is("animating")&&(a.support.transform?this.animate(d.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===b.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=a(b.target),this._drag.stage.start=d,this._drag.stage.current=d,this._drag.pointer=this.pointer(b),a(c).on("mouseup.owl.core touchend.owl.core",a.proxy(this.onDragEnd,this)),a(c).one("mousemove.owl.core touchmove.owl.core",a.proxy(function(b){var d=this.difference(this._drag.pointer,this.pointer(b));a(c).on("mousemove.owl.core touchmove.owl.core",a.proxy(this.onDragMove,this)),Math.abs(d.x)<Math.abs(d.y)&&this.is("valid")||(b.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},e.prototype.onDragMove=function(a){var b=null,c=null,d=null,e=this.difference(this._drag.pointer,this.pointer(a)),f=this.difference(this._drag.stage.start,e);this.is("dragging")&&(a.preventDefault(),this.settings.loop?(b=this.coordinates(this.minimum()),c=this.coordinates(this.maximum()+1)-b,f.x=((f.x-b)%c+c)%c+b):(b=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),c=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),d=this.settings.pullDrag?-1*e.x/5:0,f.x=Math.max(Math.min(f.x,b+d),c+d)),this._drag.stage.current=f,this.animate(f.x))},e.prototype.onDragEnd=function(b){var d=this.difference(this._drag.pointer,this.pointer(b)),e=this._drag.stage.current,f=d.x>0^this.settings.rtl?"left":"right";a(c).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==d.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(e.x,0!==d.x?f:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=f,(Math.abs(d.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},e.prototype.closest=function(b,c){var d=-1,e=30,f=this.width(),g=this.coordinates();return this.settings.freeDrag||a.each(g,a.proxy(function(a,h){return"left"===c&&b>h-e&&b<h+e?d=a:"right"===c&&b>h-f-e&&b<h-f+e?d=a+1:this.op(b,"<",h)&&this.op(b,">",g[a+1]||h-f)&&(d="left"===c?a+1:a),d===-1},this)),this.settings.loop||(this.op(b,">",g[this.minimum()])?d=b=this.minimum():this.op(b,"<",g[this.maximum()])&&(d=b=this.maximum())),d},e.prototype.animate=function(b){var c=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),c&&(this.enter("animating"),this.trigger("translate")),a.support.transform3d&&a.support.transition?this.$stage.css({transform:"translate3d("+b+"px,0px,0px)",transition:this.speed()/1e3+"s"}):c?this.$stage.animate({left:b+"px"},this.speed(),this.settings.fallbackEasing,a.proxy(this.onTransitionEnd,this)):this.$stage.css({left:b+"px"})},e.prototype.is=function(a){return this._states.current[a]&&this._states.current[a]>0},e.prototype.current=function(a){if(a===d)return this._current;if(0===this._items.length)return d;if(a=this.normalize(a),this._current!==a){var b=this.trigger("change",{property:{name:"position",value:a}});b.data!==d&&(a=this.normalize(b.data)),this._current=a,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},e.prototype.invalidate=function(b){return"string"===a.type(b)&&(this._invalidated[b]=!0,this.is("valid")&&this.leave("valid")),a.map(this._invalidated,function(a,b){return b})},e.prototype.reset=function(a){a=this.normalize(a),a!==d&&(this._speed=0,this._current=a,this.suppress(["translate","translated"]),this.animate(this.coordinates(a)),this.release(["translate","translated"]))},e.prototype.normalize=function(a,b){var c=this._items.length,e=b?0:this._clones.length;return!this.isNumeric(a)||c<1?a=d:(a<0||a>=c+e)&&(a=((a-e/2)%c+c)%c+e/2),a},e.prototype.relative=function(a){return a-=this._clones.length/2,this.normalize(a,!0)},e.prototype.maximum=function(a){var b,c,d,e=this.settings,f=this._coordinates.length;if(e.loop)f=this._clones.length/2+this._items.length-1;else if(e.autoWidth||e.merge){for(b=this._items.length,c=this._items[--b].width(),d=this.$element.width();b--&&(c+=this._items[b].width()+this.settings.margin,!(c>d)););f=b+1}else f=e.center?this._items.length-1:this._items.length-e.items;return a&&(f-=this._clones.length/2),Math.max(f,0)},e.prototype.minimum=function(a){return a?0:this._clones.length/2},e.prototype.items=function(a){return a===d?this._items.slice():(a=this.normalize(a,!0),this._items[a])},e.prototype.mergers=function(a){return a===d?this._mergers.slice():(a=this.normalize(a,!0),this._mergers[a])},e.prototype.clones=function(b){var c=this._clones.length/2,e=c+this._items.length,f=function(a){return a%2===0?e+a/2:c-(a+1)/2};return b===d?a.map(this._clones,function(a,b){return f(b)}):a.map(this._clones,function(a,c){return a===b?f(c):null})},e.prototype.speed=function(a){return a!==d&&(this._speed=a),this._speed},e.prototype.coordinates=function(b){var c,e=1,f=b-1;return b===d?a.map(this._coordinates,a.proxy(function(a,b){return this.coordinates(b)},this)):(this.settings.center?(this.settings.rtl&&(e=-1,f=b+1),c=this._coordinates[b],c+=(this.width()-c+(this._coordinates[f]||0))/2*e):c=this._coordinates[f]||0,c=Math.ceil(c))},e.prototype.duration=function(a,b,c){return 0===c?0:Math.min(Math.max(Math.abs(b-a),1),6)*Math.abs(c||this.settings.smartSpeed)},e.prototype.to=function(a,b){var c=this.current(),d=null,e=a-this.relative(c),f=(e>0)-(e<0),g=this._items.length,h=this.minimum(),i=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(e)>g/2&&(e+=f*-1*g),a=c+e,d=((a-h)%g+g)%g+h,d!==a&&d-e<=i&&d-e>0&&(c=d-e,a=d,this.reset(c))):this.settings.rewind?(i+=1,a=(a%i+i)%i):a=Math.max(h,Math.min(i,a)),this.speed(this.duration(c,a,b)),this.current(a),this.$element.is(":visible")&&this.update()},e.prototype.next=function(a){a=a||!1,this.to(this.relative(this.current())+1,a)},e.prototype.prev=function(a){a=a||!1,this.to(this.relative(this.current())-1,a)},e.prototype.onTransitionEnd=function(a){if(a!==d&&(a.stopPropagation(),(a.target||a.srcElement||a.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},e.prototype.viewport=function(){var d;return this.options.responsiveBaseElement!==b?d=a(this.options.responsiveBaseElement).width():b.innerWidth?d=b.innerWidth:c.documentElement&&c.documentElement.clientWidth?d=c.documentElement.clientWidth:console.warn("Can not detect viewport width."),d},e.prototype.replace=function(b){this.$stage.empty(),this._items=[],b&&(b=b instanceof jQuery?b:a(b)),this.settings.nestedItemSelector&&(b=b.find("."+this.settings.nestedItemSelector)),b.filter(function(){return 1===this.nodeType}).each(a.proxy(function(a,b){b=this.prepare(b),this.$stage.append(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},e.prototype.add=function(b,c){var e=this.relative(this._current);c=c===d?this._items.length:this.normalize(c,!0),b=b instanceof jQuery?b:a(b),this.trigger("add",{content:b,position:c}),b=this.prepare(b),0===this._items.length||c===this._items.length?(0===this._items.length&&this.$stage.append(b),0!==this._items.length&&this._items[c-1].after(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[c].before(b),this._items.splice(c,0,b),this._mergers.splice(c,0,1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[e]&&this.reset(this._items[e].index()),this.invalidate("items"),this.trigger("added",{content:b,position:c})},e.prototype.remove=function(a){a=this.normalize(a,!0),a!==d&&(this.trigger("remove",{content:this._items[a],position:a}),this._items[a].remove(),this._items.splice(a,1),this._mergers.splice(a,1),this.invalidate("items"),this.trigger("removed",{content:null,position:a}))},e.prototype.preloadAutoWidthImages=function(b){b.each(a.proxy(function(b,c){this.enter("pre-loading"),c=a(c),a(new Image).one("load",a.proxy(function(a){c.attr("src",a.target.src),c.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",c.attr("src")||c.attr("data-src")||c.attr("data-src-retina"))},this))},e.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),a(c).off(".owl.core"),this.settings.responsive!==!1&&(b.clearTimeout(this.resizeTimer),this.off(b,"resize",this._handlers.onThrottledResize));for(var d in this._plugins)this._plugins[d].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},e.prototype.op=function(a,b,c){var d=this.settings.rtl;switch(b){case"<":return d?a>c:a<c;case">":return d?a<c:a>c;case">=":return d?a<=c:a>=c;case"<=":return d?a>=c:a<=c}},e.prototype.on=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d):a.attachEvent&&a.attachEvent("on"+b,c)},e.prototype.off=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,d):a.detachEvent&&a.detachEvent("on"+b,c)},e.prototype.trigger=function(b,c,d,f,g){var h={item:{count:this._items.length,index:this.current()}},i=a.camelCase(a.grep(["on",b,d],function(a){return a}).join("-").toLowerCase()),j=a.Event([b,"owl",d||"carousel"].join(".").toLowerCase(),a.extend({relatedTarget:this},h,c));return this._supress[b]||(a.each(this._plugins,function(a,b){b.onTrigger&&b.onTrigger(j)}),this.register({type:e.Type.Event,name:b}),this.$element.trigger(j),this.settings&&"function"==typeof this.settings[i]&&this.settings[i].call(this,j)),j},e.prototype.enter=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]===d&&(this._states.current[b]=0),this._states.current[b]++},this))},e.prototype.leave=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]--},this))},e.prototype.register=function(b){if(b.type===e.Type.Event){if(a.event.special[b.name]||(a.event.special[b.name]={}),!a.event.special[b.name].owl){var c=a.event.special[b.name]._default;a.event.special[b.name]._default=function(a){return!c||!c.apply||a.namespace&&a.namespace.indexOf("owl")!==-1?a.namespace&&a.namespace.indexOf("owl")>-1:c.apply(this,arguments)},a.event.special[b.name].owl=!0}}else b.type===e.Type.State&&(this._states.tags[b.name]?this._states.tags[b.name]=this._states.tags[b.name].concat(b.tags):this._states.tags[b.name]=b.tags,this._states.tags[b.name]=a.grep(this._states.tags[b.name],a.proxy(function(c,d){return a.inArray(c,this._states.tags[b.name])===d},this)))},e.prototype.suppress=function(b){a.each(b,a.proxy(function(a,b){this._supress[b]=!0},this))},e.prototype.release=function(b){a.each(b,a.proxy(function(a,b){delete this._supress[b]},this))},e.prototype.pointer=function(a){var c={x:null,y:null};return a=a.originalEvent||a||b.event,a=a.touches&&a.touches.length?a.touches[0]:a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a,a.pageX?(c.x=a.pageX,c.y=a.pageY):(c.x=a.clientX,c.y=a.clientY),c},e.prototype.isNumeric=function(a){return!isNaN(parseFloat(a))},e.prototype.difference=function(a,b){return{x:a.x-b.x,y:a.y-b.y}},a.fn.owlCarousel=function(b){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),f=d.data("owl.carousel");f||(f=new e(this,"object"==typeof b&&b),d.data("owl.carousel",f),a.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(b,c){f.register({type:e.Type.Event,name:c}),f.$element.on(c+".owl.carousel.core",a.proxy(function(a){a.namespace&&a.relatedTarget!==this&&(this.suppress([c]),f[c].apply(this,[].slice.call(arguments,1)),this.release([c]))},f))})),"string"==typeof b&&"_"!==b.charAt(0)&&f[b].apply(f,c)})},a.fn.owlCarousel.Constructor=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoRefresh:!0,autoRefreshInterval:500},e.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(":visible"),this._interval=b.setInterval(a.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},e.prototype.refresh=function(){this._core.$element.is(":visible")!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},e.prototype.destroy=function(){var a,c;b.clearInterval(this._interval);for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoRefresh=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":a.proxy(function(b){if(b.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(b.property&&"position"==b.property.name||"initialized"==b.type))for(var c=this._core.settings,e=c.center&&Math.ceil(c.items/2)||c.items,f=c.center&&e*-1||0,g=(b.property&&b.property.value!==d?b.property.value:this._core.current())+f,h=this._core.clones().length,i=a.proxy(function(a,b){this.load(b)},this);f++<e;)this.load(h/2+this._core.relative(g)),h&&a.each(this._core.clones(this._core.relative(g)),i),g++},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={lazyLoad:!1},e.prototype.load=function(c){var d=this._core.$stage.children().eq(c),e=d&&d.find(".owl-lazy");!e||a.inArray(d.get(0),this._loaded)>-1||(e.each(a.proxy(function(c,d){var e,f=a(d),g=b.devicePixelRatio>1&&f.attr("data-src-retina")||f.attr("data-src");this._core.trigger("load",{element:f,url:g},"lazy"),f.is("img")?f.one("load.owl.lazy",a.proxy(function(){f.css("opacity",1),this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("src",g):(e=new Image,e.onload=a.proxy(function(){f.css({"background-image":'url("'+g+'")',opacity:"1"}),this._core.trigger("loaded",{element:f,url:g},"lazy")},this),e.src=g)},this)),this._loaded.push(d.get(0)))},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this._core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&"position"==a.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&a.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},e.prototype.update=function(){var b=this._core._current,c=b+this._core.settings.items,d=this._core.$stage.children().toArray().slice(b,c),e=[],f=0;a.each(d,function(b,c){e.push(a(c).height())}),f=Math.max.apply(null,e),this._core.$stage.parent().height(f).addClass(this._core.settings.autoHeightClass)},e.prototype.destroy=function(){var a,b;for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoHeight=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.video&&this.isInFullScreen()&&a.preventDefault()},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"===a.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find(".owl-video");c.length&&(c.css("display","none"),this.fetch(c,a(b.content)))}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",a.proxy(function(a){this.play(a)},this))};e.Defaults={video:!1,videoHeight:!1,videoWidth:!1},e.prototype.fetch=function(a,b){var c=function(){return a.attr("data-vimeo-id")?"vimeo":a.attr("data-vzaar-id")?"vzaar":"youtube"}(),d=a.attr("data-vimeo-id")||a.attr("data-youtube-id")||a.attr("data-vzaar-id"),e=a.attr("data-width")||this._core.settings.videoWidth,f=a.attr("data-height")||this._core.settings.videoHeight,g=a.attr("href");if(!g)throw new Error("Missing video URL.");if(d=g.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),d[3].indexOf("youtu")>-1)c="youtube";else if(d[3].indexOf("vimeo")>-1)c="vimeo";else{if(!(d[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");c="vzaar"}d=d[6],this._videos[g]={type:c,id:d,width:e,height:f},b.attr("data-video",g),this.thumbnail(a,this._videos[g])},e.prototype.thumbnail=function(b,c){var d,e,f,g=c.width&&c.height?'style="width:'+c.width+"px;height:"+c.height+'px;"':"",h=b.find("img"),i="src",j="",k=this._core.settings,l=function(a){e='<div class="owl-video-play-icon"></div>',d=k.lazyLoad?'<div class="owl-video-tn '+j+'" '+i+'="'+a+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+a+')"></div>',b.after(d),b.after(e)};if(b.wrap('<div class="owl-video-wrapper"'+g+"></div>"),this._core.settings.lazyLoad&&(i="data-src",j="owl-lazy"),h.length)return l(h.attr(i)),h.remove(),!1;"youtube"===c.type?(f="//img.youtube.com/vi/"+c.id+"/hqdefault.jpg",l(f)):"vimeo"===c.type?a.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a[0].thumbnail_large,l(f)}}):"vzaar"===c.type&&a.ajax({type:"GET",url:"//vzaar.com/api/videos/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a.framegrab_url,l(f)}})},e.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},e.prototype.play=function(b){var c,d=a(b.target),e=d.closest("."+this._core.settings.itemClass),f=this._videos[e.attr("data-video")],g=f.width||"100%",h=f.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),e=this._core.items(this._core.relative(e.index())),this._core.reset(e.index()),"youtube"===f.type?c='<iframe width="'+g+'" height="'+h+'" src="//www.youtube.com/embed/'+f.id+"?autoplay=1&rel=0&v="+f.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===f.type?c='<iframe src="//player.vimeo.com/video/'+f.id+'?autoplay=1" width="'+g+'" height="'+h+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>':"vzaar"===f.type&&(c='<iframe frameborder="0"height="'+h+'"width="'+g+'" allowfullscreen mozallowfullscreen webkitAllowFullScreen src="//view.vzaar.com/'+f.id+'/player?autoplay=true"></iframe>'),a('<div class="owl-video-frame">'+c+"</div>").insertAfter(e.find(".owl-video")),this._playing=e.addClass("owl-video-playing"))},e.prototype.isInFullScreen=function(){var b=c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement;return b&&a(b).parent().hasClass("owl-video-frame")},e.prototype.destroy=function(){var a,b;this._core.$element.off("click.owl.video");for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Video=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){a.namespace&&(this.swapping="translated"==a.type)},this),"translate.owl.carousel":a.proxy(function(a){a.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1,animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&a.support.animation&&a.support.transition){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animateIn,g=this.core.settings.animateOut;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.one(a.support.animation.end,c).css({left:b+"px"}).addClass("animated owl-animated-out").addClass(g)),f&&e.one(a.support.animation.end,c).addClass("animated owl-animated-in").addClass(f))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},
|
7 |
-
a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._timeout=null,this._paused=!1,this._handlers={"changed.owl.carousel":a.proxy(function(a){a.namespace&&"settings"===a.property.name?this._core.settings.autoplay?this.play():this.stop():a.namespace&&"position"===a.property.name&&this._core.settings.autoplay&&this._setAutoPlayInterval()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":a.proxy(function(a,b,c){a.namespace&&this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(a){a.namespace&&this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=a.extend({},e.Defaults,this._core.options)};e.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},e.prototype.play=function(a,b){this._paused=!1,this._core.is("rotating")||(this._core.enter("rotating"),this._setAutoPlayInterval())},e.prototype._getNextTimeout=function(d,e){return this._timeout&&b.clearTimeout(this._timeout),b.setTimeout(a.proxy(function(){this._paused||this._core.is("busy")||this._core.is("interacting")||c.hidden||this._core.next(e||this._core.settings.autoplaySpeed)},this),d||this._core.settings.autoplayTimeout)},e.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()},e.prototype.stop=function(){this._core.is("rotating")&&(b.clearTimeout(this._timeout),this._core.leave("rotating"))},e.prototype.pause=function(){this._core.is("rotating")&&(this._paused=!0)},e.prototype.destroy=function(){var a,b;this.stop();for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(b){this._core=b,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":a.proxy(function(b){b.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+a(b.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,0,this._templates.pop())},this),"remove.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&this.draw()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var b,c=this._core.settings;this._controls.$relative=(c.navContainer?a(c.navContainer):a("<div>").addClass(c.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=a("<"+c.navElement+">").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on("click",a.proxy(function(a){this.prev(c.navSpeed)},this)),this._controls.$next=a("<"+c.navElement+">").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on("click",a.proxy(function(a){this.next(c.navSpeed)},this)),c.dotsData||(this._templates=[a("<div>").addClass(c.dotClass).append(a("<span>")).prop("outerHTML")]),this._controls.$absolute=(c.dotsContainer?a(c.dotsContainer):a("<div>").addClass(c.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","div",a.proxy(function(b){var d=a(b.target).parent().is(this._controls.$absolute)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(d,c.dotsSpeed)},this));for(b in this._overrides)this._core[b]=a.proxy(this[b],this)},e.prototype.destroy=function(){var a,b,c,d;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},e.prototype.update=function(){var a,b,c,d=this._core.clones().length/2,e=d+this._core.items().length,f=this._core.maximum(!0),g=this._core.settings,h=g.center||g.autoWidth||g.dotsData?1:g.dotsEach||g.items;if("page"!==g.slideBy&&(g.slideBy=Math.min(g.slideBy,g.items)),g.dots||"page"==g.slideBy)for(this._pages=[],a=d,b=0,c=0;a<e;a++){if(b>=h||0===b){if(this._pages.push({start:Math.min(f,a-d),end:a-d+h-1}),Math.min(f,a-d)===f)break;b=0,++c}b+=this._core.mergers(this._core.relative(a))}},e.prototype.draw=function(){var b,c=this._core.settings,d=this._core.items().length<=c.items,e=this._core.relative(this._core.current()),f=c.loop||c.rewind;this._controls.$relative.toggleClass("disabled",!c.nav||d),c.nav&&(this._controls.$previous.toggleClass("disabled",!f&&e<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!f&&e>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!c.dots||d),c.dots&&(b=this._pages.length-this._controls.$absolute.children().length,c.dotsData&&0!==b?this._controls.$absolute.html(this._templates.join("")):b>0?this._controls.$absolute.append(new Array(b+1).join(this._templates[0])):b<0&&this._controls.$absolute.children().slice(b).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(a.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(b){var c=this._core.settings;b.page={index:a.inArray(this.current(),this._pages),count:this._pages.length,size:c&&(c.center||c.autoWidth||c.dotsData?1:c.dotsEach||c.items)}},e.prototype.current=function(){var b=this._core.relative(this._core.current());return a.grep(this._pages,a.proxy(function(a,c){return a.start<=b&&a.end>=b},this)).pop()},e.prototype.getPosition=function(b){var c,d,e=this._core.settings;return"page"==e.slideBy?(c=a.inArray(this.current(),this._pages),d=this._pages.length,b?++c:--c,c=this._pages[(c%d+d)%d].start):(c=this._core.relative(this._core.current()),d=this._core.items().length,b?c+=e.slideBy:c-=e.slideBy),c},e.prototype.next=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!0),b)},e.prototype.prev=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!1),b)},e.prototype.to=function(b,c,d){var e;!d&&this._pages.length?(e=this._pages.length,a.proxy(this._overrides.to,this._core)(this._pages[(b%e+e)%e].start,c)):a.proxy(this._overrides.to,this._core)(b,c)},a.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(c){this._core=c,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":a.proxy(function(c){c.namespace&&"URLHash"===this._core.settings.startPosition&&a(b).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!c)return;this._hashes[c]=b.content}},this),"changed.owl.carousel":a.proxy(function(c){if(c.namespace&&"position"===c.property.name){var d=this._core.items(this._core.relative(this._core.current())),e=a.map(this._hashes,function(a,b){return a===d?b:null}).join();if(!e||b.location.hash.slice(1)===e)return;b.location.hash=e}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),a(b).on("hashchange.owl.navigation",a.proxy(function(a){var c=b.location.hash.substring(1),e=this._core.$stage.children(),f=this._hashes[c]&&e.index(this._hashes[c]);f!==d&&f!==this._core.current()&&this._core.to(this._core.relative(f),!1,!0)},this))};e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var c,d;a(b).off("hashchange.owl.navigation");for(c in this._handlers)this._core.$element.off(c,this._handlers[c]);for(d in Object.getOwnPropertyNames(this))"function"!=typeof this[d]&&(this[d]=null)},a.fn.owlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){function e(b,c){var e=!1,f=b.charAt(0).toUpperCase()+b.slice(1);return a.each((b+" "+h.join(f+" ")+f).split(" "),function(a,b){if(g[b]!==d)return e=!c||b,!1}),e}function f(a){return e(a,!0)}var g=a("<support>").get(0).style,h="Webkit Moz O ms".split(" "),i={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},j={csstransforms:function(){return!!e("transform")},csstransforms3d:function(){return!!e("perspective")},csstransitions:function(){return!!e("transition")},cssanimations:function(){return!!e("animation")}};j.csstransitions()&&(a.support.transition=new String(f("transition")),a.support.transition.end=i.transition.end[a.support.transition]),j.cssanimations()&&(a.support.animation=new String(f("animation")),a.support.animation.end=i.animation.end[a.support.animation]),j.csstransforms()&&(a.support.transform=new String(f("transform")),a.support.transform3d=j.csstransforms3d())}(window.Zepto||window.jQuery,window,document);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/js/vendors/select2.min.js
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){var b=function(){if(a&&a.fn&&a.fn.select2&&a.fn.select2.amd)var b=a.fn.select2.amd;var b;return function(){if(!b||!b.requirejs){b?c=b:b={};var a,c,d;!function(b){function e(a,b){return u.call(a,b)}function f(a,b){var c,d,e,f,g,h,i,j,k,l,m,n=b&&b.split("/"),o=s.map,p=o&&o["*"]||{};if(a&&"."===a.charAt(0))if(b){for(a=a.split("/"),g=a.length-1,s.nodeIdCompat&&w.test(a[g])&&(a[g]=a[g].replace(w,"")),a=n.slice(0,n.length-1).concat(a),k=0;k<a.length;k+=1)if(m=a[k],"."===m)a.splice(k,1),k-=1;else if(".."===m){if(1===k&&(".."===a[2]||".."===a[0]))break;k>0&&(a.splice(k-1,2),k-=2)}a=a.join("/")}else 0===a.indexOf("./")&&(a=a.substring(2));if((n||p)&&o){for(c=a.split("/"),k=c.length;k>0;k-=1){if(d=c.slice(0,k).join("/"),n)for(l=n.length;l>0;l-=1)if(e=o[n.slice(0,l).join("/")],e&&(e=e[d])){f=e,h=k;break}if(f)break;!i&&p&&p[d]&&(i=p[d],j=k)}!f&&i&&(f=i,h=j),f&&(c.splice(0,h,f),a=c.join("/"))}return a}function g(a,c){return function(){var d=v.call(arguments,0);return"string"!=typeof d[0]&&1===d.length&&d.push(null),n.apply(b,d.concat([a,c]))}}function h(a){return function(b){return f(b,a)}}function i(a){return function(b){q[a]=b}}function j(a){if(e(r,a)){var c=r[a];delete r[a],t[a]=!0,m.apply(b,c)}if(!e(q,a)&&!e(t,a))throw new Error("No "+a);return q[a]}function k(a){var b,c=a?a.indexOf("!"):-1;return c>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}function l(a){return function(){return s&&s.config&&s.config[a]||{}}}var m,n,o,p,q={},r={},s={},t={},u=Object.prototype.hasOwnProperty,v=[].slice,w=/\.js$/;o=function(a,b){var c,d=k(a),e=d[0];return a=d[1],e&&(e=f(e,b),c=j(e)),e?a=c&&c.normalize?c.normalize(a,h(b)):f(a,b):(a=f(a,b),d=k(a),e=d[0],a=d[1],e&&(c=j(e))),{f:e?e+"!"+a:a,n:a,pr:e,p:c}},p={require:function(a){return g(a)},exports:function(a){var b=q[a];return"undefined"!=typeof b?b:q[a]={}},module:function(a){return{id:a,uri:"",exports:q[a],config:l(a)}}},m=function(a,c,d,f){var h,k,l,m,n,s,u=[],v=typeof d;if(f=f||a,"undefined"===v||"function"===v){for(c=!c.length&&d.length?["require","exports","module"]:c,n=0;n<c.length;n+=1)if(m=o(c[n],f),k=m.f,"require"===k)u[n]=p.require(a);else if("exports"===k)u[n]=p.exports(a),s=!0;else if("module"===k)h=u[n]=p.module(a);else if(e(q,k)||e(r,k)||e(t,k))u[n]=j(k);else{if(!m.p)throw new Error(a+" missing "+k);m.p.load(m.n,g(f,!0),i(k),{}),u[n]=q[k]}l=d?d.apply(q[a],u):void 0,a&&(h&&h.exports!==b&&h.exports!==q[a]?q[a]=h.exports:l===b&&s||(q[a]=l))}else a&&(q[a]=d)},a=c=n=function(a,c,d,e,f){if("string"==typeof a)return p[a]?p[a](c):j(o(a,c).f);if(!a.splice){if(s=a,s.deps&&n(s.deps,s.callback),!c)return;c.splice?(a=c,c=d,d=null):a=b}return c=c||function(){},"function"==typeof d&&(d=e,e=f),e?m(b,a,c,d):setTimeout(function(){m(b,a,c,d)},4),n},n.config=function(a){return n(a)},a._defined=q,d=function(a,b,c){if("string"!=typeof a)throw new Error("See almond README: incorrect module build, no module name");b.splice||(c=b,b=[]),e(q,a)||e(r,a)||(r[a]=[a,b,c])},d.amd={jQuery:!0}}(),b.requirejs=a,b.require=c,b.define=d}}(),b.define("almond",function(){}),b.define("jquery",[],function(){var b=a||$;return null==b&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),b}),b.define("select2/utils",["jquery"],function(a){function b(a){var b=a.prototype,c=[];for(var d in b){var e=b[d];"function"==typeof e&&"constructor"!==d&&c.push(d)}return c}var c={};c.Extend=function(a,b){function c(){this.constructor=a}var d={}.hasOwnProperty;for(var e in b)d.call(b,e)&&(a[e]=b[e]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},c.Decorate=function(a,c){function d(){var b=Array.prototype.unshift,d=c.prototype.constructor.length,e=a.prototype.constructor;d>0&&(b.call(arguments,a.prototype.constructor),e=c.prototype.constructor),e.apply(this,arguments)}function e(){this.constructor=d}var f=b(c),g=b(a);c.displayName=a.displayName,d.prototype=new e;for(var h=0;h<g.length;h++){var i=g[h];d.prototype[i]=a.prototype[i]}for(var j=(function(a){var b=function(){};a in d.prototype&&(b=d.prototype[a]);var e=c.prototype[a];return function(){var a=Array.prototype.unshift;return a.call(arguments,b),e.apply(this,arguments)}}),k=0;k<f.length;k++){var l=f[k];d.prototype[l]=j(l)}return d};var d=function(){this.listeners={}};return d.prototype.on=function(a,b){this.listeners=this.listeners||{},a in this.listeners?this.listeners[a].push(b):this.listeners[a]=[b]},d.prototype.trigger=function(a){var b=Array.prototype.slice,c=b.call(arguments,1);this.listeners=this.listeners||{},null==c&&(c=[]),0===c.length&&c.push({}),c[0]._type=a,a in this.listeners&&this.invoke(this.listeners[a],b.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},d.prototype.invoke=function(a,b){for(var c=0,d=a.length;d>c;c++)a[c].apply(this,b)},c.Observable=d,c.generateChars=function(a){for(var b="",c=0;a>c;c++){var d=Math.floor(36*Math.random());b+=d.toString(36)}return b},c.bind=function(a,b){return function(){a.apply(b,arguments)}},c._convertData=function(a){for(var b in a){var c=b.split("-"),d=a;if(1!==c.length){for(var e=0;e<c.length;e++){var f=c[e];f=f.substring(0,1).toLowerCase()+f.substring(1),f in d||(d[f]={}),e==c.length-1&&(d[f]=a[b]),d=d[f]}delete a[b]}}return a},c.hasScroll=function(b,c){var d=a(c),e=c.style.overflowX,f=c.style.overflowY;return e!==f||"hidden"!==f&&"visible"!==f?"scroll"===e||"scroll"===f?!0:d.innerHeight()<c.scrollHeight||d.innerWidth()<c.scrollWidth:!1},c.escapeMarkup=function(a){var b={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof a?a:String(a).replace(/[&<>"'\/\\]/g,function(a){return b[a]})},c.appendMany=function(b,c){if("1.7"===a.fn.jquery.substr(0,3)){var d=a();a.map(c,function(a){d=d.add(a)}),c=d}b.append(c)},c}),b.define("select2/results",["jquery","./utils"],function(a,b){function c(a,b,d){this.$element=a,this.data=d,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&b.attr("aria-multiselectable","true"),this.$results=b,b},c.prototype.clear=function(){this.$results.empty()},c.prototype.displayMessage=function(b){var c=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var d=a('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),e=this.options.get("translations").get(b.message);d.append(c(e(b.args))),d[0].className+=" select2-results__message",this.$results.append(d)},c.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},c.prototype.append=function(a){this.hideLoading();var b=[];if(null==a.results||0===a.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));a.results=this.sort(a.results);for(var c=0;c<a.results.length;c++){var d=a.results[c],e=this.option(d);b.push(e)}this.$results.append(b)},c.prototype.position=function(a,b){var c=b.find(".select2-results");c.append(a)},c.prototype.sort=function(a){var b=this.options.get("sorter");return b(a)},c.prototype.highlightFirstItem=function(){var a=this.$results.find(".select2-results__option[aria-selected]"),b=a.filter("[aria-selected=true]");b.length>0?b.first().trigger("mouseenter"):a.first().trigger("mouseenter"),this.ensureHighlightVisible()},c.prototype.setClasses=function(){var b=this;this.data.current(function(c){var d=a.map(c,function(a){return a.id.toString()}),e=b.$results.find(".select2-results__option[aria-selected]");e.each(function(){var b=a(this),c=a.data(this,"data"),e=""+c.id;null!=c.element&&c.element.selected||null==c.element&&a.inArray(e,d)>-1?b.attr("aria-selected","true"):b.attr("aria-selected","false")})})},c.prototype.showLoading=function(a){this.hideLoading();var b=this.options.get("translations").get("searching"),c={disabled:!0,loading:!0,text:b(a)},d=this.option(c);d.className+=" loading-results",this.$results.prepend(d)},c.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},c.prototype.option=function(b){var c=document.createElement("li");c.className="select2-results__option";var d={role:"treeitem","aria-selected":"false"};b.disabled&&(delete d["aria-selected"],d["aria-disabled"]="true"),null==b.id&&delete d["aria-selected"],null!=b._resultId&&(c.id=b._resultId),b.title&&(c.title=b.title),b.children&&(d.role="group",d["aria-label"]=b.text,delete d["aria-selected"]);for(var e in d){var f=d[e];c.setAttribute(e,f)}if(b.children){var g=a(c),h=document.createElement("strong");h.className="select2-results__group";a(h);this.template(b,h);for(var i=[],j=0;j<b.children.length;j++){var k=b.children[j],l=this.option(k);i.push(l)}var m=a("<ul></ul>",{"class":"select2-results__options select2-results__options--nested"});m.append(i),g.append(h),g.append(m)}else this.template(b,c);return a.data(c,"data",b),c},c.prototype.bind=function(b,c){var d=this,e=b.id+"-results";this.$results.attr("id",e),b.on("results:all",function(a){d.clear(),d.append(a.data),b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("results:append",function(a){d.append(a.data),b.isOpen()&&d.setClasses()}),b.on("query",function(a){d.hideMessages(),d.showLoading(a)}),b.on("select",function(){b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("unselect",function(){b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("open",function(){d.$results.attr("aria-expanded","true"),d.$results.attr("aria-hidden","false"),d.setClasses(),d.ensureHighlightVisible()}),b.on("close",function(){d.$results.attr("aria-expanded","false"),d.$results.attr("aria-hidden","true"),d.$results.removeAttr("aria-activedescendant")}),b.on("results:toggle",function(){var a=d.getHighlightedResults();0!==a.length&&a.trigger("mouseup")}),b.on("results:select",function(){var a=d.getHighlightedResults();if(0!==a.length){var b=a.data("data");"true"==a.attr("aria-selected")?d.trigger("close",{}):d.trigger("select",{data:b})}}),b.on("results:previous",function(){var a=d.getHighlightedResults(),b=d.$results.find("[aria-selected]"),c=b.index(a);if(0!==c){var e=c-1;0===a.length&&(e=0);var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top,h=f.offset().top,i=d.$results.scrollTop()+(h-g);0===e?d.$results.scrollTop(0):0>h-g&&d.$results.scrollTop(i)}}),b.on("results:next",function(){var a=d.getHighlightedResults(),b=d.$results.find("[aria-selected]"),c=b.index(a),e=c+1;if(!(e>=b.length)){var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top+d.$results.outerHeight(!1),h=f.offset().top+f.outerHeight(!1),i=d.$results.scrollTop()+h-g;0===e?d.$results.scrollTop(0):h>g&&d.$results.scrollTop(i)}}),b.on("results:focus",function(a){a.element.addClass("select2-results__option--highlighted")}),b.on("results:message",function(a){d.displayMessage(a)}),a.fn.mousewheel&&this.$results.on("mousewheel",function(a){var b=d.$results.scrollTop(),c=d.$results.get(0).scrollHeight-b+a.deltaY,e=a.deltaY>0&&b-a.deltaY<=0,f=a.deltaY<0&&c<=d.$results.height();e?(d.$results.scrollTop(0),a.preventDefault(),a.stopPropagation()):f&&(d.$results.scrollTop(d.$results.get(0).scrollHeight-d.$results.height()),a.preventDefault(),a.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(b){var c=a(this),e=c.data("data");return"true"===c.attr("aria-selected")?void(d.options.get("multiple")?d.trigger("unselect",{originalEvent:b,data:e}):d.trigger("close",{})):void d.trigger("select",{originalEvent:b,data:e})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(b){var c=a(this).data("data");d.getHighlightedResults().removeClass("select2-results__option--highlighted"),d.trigger("results:focus",{data:c,element:a(this)})})},c.prototype.getHighlightedResults=function(){var a=this.$results.find(".select2-results__option--highlighted");return a},c.prototype.destroy=function(){this.$results.remove()},c.prototype.ensureHighlightVisible=function(){var a=this.getHighlightedResults();if(0!==a.length){var b=this.$results.find("[aria-selected]"),c=b.index(a),d=this.$results.offset().top,e=a.offset().top,f=this.$results.scrollTop()+(e-d),g=e-d;f-=2*a.outerHeight(!1),2>=c?this.$results.scrollTop(0):(g>this.$results.outerHeight()||0>g)&&this.$results.scrollTop(f)}},c.prototype.template=function(b,c){var d=this.options.get("templateResult"),e=this.options.get("escapeMarkup"),f=d(b,c);null==f?c.style.display="none":"string"==typeof f?c.innerHTML=e(f):a(c).append(f)},c}),b.define("select2/keys",[],function(){var a={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return a}),b.define("select2/selection/base",["jquery","../utils","../keys"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,b.Observable),d.prototype.render=function(){var b=a('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),b.attr("title",this.$element.attr("title")),b.attr("tabindex",this._tabindex),this.$selection=b,b},d.prototype.bind=function(a,b){var d=this,e=(a.id+"-container",a.id+"-results");this.container=a,this.$selection.on("focus",function(a){d.trigger("focus",a)}),this.$selection.on("blur",function(a){d._handleBlur(a)}),this.$selection.on("keydown",function(a){d.trigger("keypress",a),a.which===c.SPACE&&a.preventDefault()}),a.on("results:focus",function(a){d.$selection.attr("aria-activedescendant",a.data._resultId)}),a.on("selection:update",function(a){d.update(a.data)}),a.on("open",function(){d.$selection.attr("aria-expanded","true"),d.$selection.attr("aria-owns",e),d._attachCloseHandler(a)}),a.on("close",function(){d.$selection.attr("aria-expanded","false"),d.$selection.removeAttr("aria-activedescendant"),d.$selection.removeAttr("aria-owns"),d.$selection.focus(),d._detachCloseHandler(a)}),a.on("enable",function(){d.$selection.attr("tabindex",d._tabindex)}),a.on("disable",function(){d.$selection.attr("tabindex","-1")})},d.prototype._handleBlur=function(b){var c=this;window.setTimeout(function(){document.activeElement==c.$selection[0]||a.contains(c.$selection[0],document.activeElement)||c.trigger("blur",b)},1)},d.prototype._attachCloseHandler=function(b){a(document.body).on("mousedown.select2."+b.id,function(b){var c=a(b.target),d=c.closest(".select2"),e=a(".select2.select2-container--open");e.each(function(){var b=a(this);if(this!=d[0]){var c=b.data("element");c.select2("close")}})})},d.prototype._detachCloseHandler=function(b){a(document.body).off("mousedown.select2."+b.id)},d.prototype.position=function(a,b){var c=b.find(".selection");c.append(a)},d.prototype.destroy=function(){this._detachCloseHandler(this.container)},d.prototype.update=function(a){throw new Error("The `update` method must be defined in child classes.")},d}),b.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(a,b,c,d){function e(){e.__super__.constructor.apply(this,arguments)}return c.Extend(e,b),e.prototype.render=function(){var a=e.__super__.render.call(this);return a.addClass("select2-selection--single"),a.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),a},e.prototype.bind=function(a,b){var c=this;e.__super__.bind.apply(this,arguments);var d=a.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",d),this.$selection.attr("aria-labelledby",d),this.$selection.on("mousedown",function(a){1===a.which&&c.trigger("toggle",{originalEvent:a})}),this.$selection.on("focus",function(a){}),this.$selection.on("blur",function(a){}),a.on("focus",function(b){a.isOpen()||c.$selection.focus()}),a.on("selection:update",function(a){c.update(a.data)})},e.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},e.prototype.display=function(a,b){var c=this.options.get("templateSelection"),d=this.options.get("escapeMarkup");return d(c(a,b))},e.prototype.selectionContainer=function(){return a("<span></span>")},e.prototype.update=function(a){if(0===a.length)return void this.clear();var b=a[0],c=this.$selection.find(".select2-selection__rendered"),d=this.display(b,c);c.empty().append(d),c.prop("title",b.title||b.text)},e}),b.define("select2/selection/multiple",["jquery","./base","../utils"],function(a,b,c){function d(a,b){d.__super__.constructor.apply(this,arguments)}return c.Extend(d,b),d.prototype.render=function(){var a=d.__super__.render.call(this);return a.addClass("select2-selection--multiple"),a.html('<ul class="select2-selection__rendered"></ul>'),a},d.prototype.bind=function(b,c){var e=this;d.__super__.bind.apply(this,arguments),this.$selection.on("click",function(a){e.trigger("toggle",{originalEvent:a})}),this.$selection.on("click",".select2-selection__choice__remove",function(b){if(!e.options.get("disabled")){var c=a(this),d=c.parent(),f=d.data("data");e.trigger("unselect",{originalEvent:b,data:f})}})},d.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},d.prototype.display=function(a,b){var c=this.options.get("templateSelection"),d=this.options.get("escapeMarkup");return d(c(a,b))},d.prototype.selectionContainer=function(){var b=a('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>');return b},d.prototype.update=function(a){if(this.clear(),0!==a.length){for(var b=[],d=0;d<a.length;d++){var e=a[d],f=this.selectionContainer(),g=this.display(e,f);f.append(g),f.prop("title",e.title||e.text),f.data("data",e),b.push(f)}var h=this.$selection.find(".select2-selection__rendered");c.appendMany(h,b)}},d}),b.define("select2/selection/placeholder",["../utils"],function(a){function b(a,b,c){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c)}return b.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},b.prototype.createPlaceholder=function(a,b){var c=this.selectionContainer();return c.html(this.display(b)),c.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),c},b.prototype.update=function(a,b){var c=1==b.length&&b[0].id!=this.placeholder.id,d=b.length>1;if(d||c)return a.call(this,b);this.clear();var e=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(e)},b}),b.define("select2/selection/allowClear",["jquery","../keys"],function(a,b){function c(){}return c.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(a){d._handleClear(a)}),b.on("keypress",function(a){d._handleKeyboardClear(a,b)})},c.prototype._handleClear=function(a,b){if(!this.options.get("disabled")){var c=this.$selection.find(".select2-selection__clear");if(0!==c.length){b.stopPropagation();for(var d=c.data("data"),e=0;e<d.length;e++){var f={data:d[e]};if(this.trigger("unselect",f),f.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},c.prototype._handleKeyboardClear=function(a,c,d){d.isOpen()||(c.which==b.DELETE||c.which==b.BACKSPACE)&&this._handleClear(c)},c.prototype.update=function(b,c){if(b.call(this,c),!(this.$selection.find(".select2-selection__placeholder").length>0||0===c.length)){var d=a('<span class="select2-selection__clear">×</span>');d.data("data",c),this.$selection.find(".select2-selection__rendered").prepend(d)}},c}),b.define("select2/selection/search",["jquery","../utils","../keys"],function(a,b,c){function d(a,b,c){a.call(this,b,c)}return d.prototype.render=function(b){var c=a('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=c,this.$search=c.find("input");var d=b.call(this);return this._transferTabIndex(),d},d.prototype.bind=function(a,b,d){var e=this;a.call(this,b,d),b.on("open",function(){e.$search.trigger("focus")}),b.on("close",function(){e.$search.val(""),e.$search.removeAttr("aria-activedescendant"),e.$search.trigger("focus")}),b.on("enable",function(){e.$search.prop("disabled",!1),e._transferTabIndex()}),b.on("disable",function(){e.$search.prop("disabled",!0)}),b.on("focus",function(a){e.$search.trigger("focus")}),b.on("results:focus",function(a){e.$search.attr("aria-activedescendant",a.id)}),this.$selection.on("focusin",".select2-search--inline",function(a){e.trigger("focus",a)}),this.$selection.on("focusout",".select2-search--inline",function(a){e._handleBlur(a)}),this.$selection.on("keydown",".select2-search--inline",function(a){a.stopPropagation(),e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented();var b=a.which;if(b===c.BACKSPACE&&""===e.$search.val()){var d=e.$searchContainer.prev(".select2-selection__choice");if(d.length>0){var f=d.data("data");e.searchRemoveChoice(f),a.preventDefault()}}});var f=document.documentMode,g=f&&11>=f;this.$selection.on("input.searchcheck",".select2-search--inline",function(a){return g?void e.$selection.off("input.search input.searchcheck"):void e.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(a){if(g&&"input"===a.type)return void e.$selection.off("input.search input.searchcheck");var b=a.which;b!=c.SHIFT&&b!=c.CTRL&&b!=c.ALT&&b!=c.TAB&&e.handleSearch(a)})},d.prototype._transferTabIndex=function(a){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},d.prototype.createPlaceholder=function(a,b){this.$search.attr("placeholder",b.text)},d.prototype.update=function(a,b){var c=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),a.call(this,b),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),c&&this.$search.focus()},d.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var a=this.$search.val();this.trigger("query",{term:a})}this._keyUpPrevented=!1},d.prototype.searchRemoveChoice=function(a,b){this.trigger("unselect",{data:b}),this.$search.val(b.text),this.handleSearch()},d.prototype.resizeSearch=function(){this.$search.css("width","25px");var a="";if(""!==this.$search.attr("placeholder"))a=this.$selection.find(".select2-selection__rendered").innerWidth();else{var b=this.$search.val().length+1;a=.75*b+"em"}this.$search.css("width",a)},d}),b.define("select2/selection/eventRelay",["jquery"],function(a){function b(){}return b.prototype.bind=function(b,c,d){var e=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting"],g=["opening","closing","selecting","unselecting"];b.call(this,c,d),c.on("*",function(b,c){if(-1!==a.inArray(b,f)){c=c||{};var d=a.Event("select2:"+b,{params:c});e.$element.trigger(d),-1!==a.inArray(b,g)&&(c.prevented=d.isDefaultPrevented())}})},b}),b.define("select2/translation",["jquery","require"],function(a,b){function c(a){this.dict=a||{}}return c.prototype.all=function(){return this.dict},c.prototype.get=function(a){return this.dict[a]},c.prototype.extend=function(b){this.dict=a.extend({},b.all(),this.dict)},c._cache={},c.loadPath=function(a){if(!(a in c._cache)){var d=b(a);c._cache[a]=d}return new c(c._cache[a])},c}),b.define("select2/diacritics",[],function(){var a={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};return a}),b.define("select2/data/base",["../utils"],function(a){function b(a,c){b.__super__.constructor.call(this)}return a.Extend(b,a.Observable),b.prototype.current=function(a){throw new Error("The `current` method must be defined in child classes.")},b.prototype.query=function(a,b){throw new Error("The `query` method must be defined in child classes.")},b.prototype.bind=function(a,b){},b.prototype.destroy=function(){},b.prototype.generateResultId=function(b,c){var d=b.id+"-result-";return d+=a.generateChars(4),d+=null!=c.id?"-"+c.id.toString():"-"+a.generateChars(4)},b}),b.define("select2/data/select",["./base","../utils","jquery"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,a),d.prototype.current=function(a){var b=[],d=this;this.$element.find(":selected").each(function(){var a=c(this),e=d.item(a);b.push(e)}),a(b)},d.prototype.select=function(a){var b=this;if(a.selected=!0,c(a.element).is("option"))return a.element.selected=!0,void this.$element.trigger("change");
|
2 |
-
if(this.$element.prop("multiple"))this.current(function(d){var e=[];a=[a],a.push.apply(a,d);for(var f=0;f<a.length;f++){var g=a[f].id;-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")});else{var d=a.id;this.$element.val(d),this.$element.trigger("change")}},d.prototype.unselect=function(a){var b=this;if(this.$element.prop("multiple"))return a.selected=!1,c(a.element).is("option")?(a.element.selected=!1,void this.$element.trigger("change")):void this.current(function(d){for(var e=[],f=0;f<d.length;f++){var g=d[f].id;g!==a.id&&-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")})},d.prototype.bind=function(a,b){var c=this;this.container=a,a.on("select",function(a){c.select(a.data)}),a.on("unselect",function(a){c.unselect(a.data)})},d.prototype.destroy=function(){this.$element.find("*").each(function(){c.removeData(this,"data")})},d.prototype.query=function(a,b){var d=[],e=this,f=this.$element.children();f.each(function(){var b=c(this);if(b.is("option")||b.is("optgroup")){var f=e.item(b),g=e.matches(a,f);null!==g&&d.push(g)}}),b({results:d})},d.prototype.addOptions=function(a){b.appendMany(this.$element,a)},d.prototype.option=function(a){var b;a.children?(b=document.createElement("optgroup"),b.label=a.text):(b=document.createElement("option"),void 0!==b.textContent?b.textContent=a.text:b.innerText=a.text),a.id&&(b.value=a.id),a.disabled&&(b.disabled=!0),a.selected&&(b.selected=!0),a.title&&(b.title=a.title);var d=c(b),e=this._normalizeItem(a);return e.element=b,c.data(b,"data",e),d},d.prototype.item=function(a){var b={};if(b=c.data(a[0],"data"),null!=b)return b;if(a.is("option"))b={id:a.val(),text:a.text(),disabled:a.prop("disabled"),selected:a.prop("selected"),title:a.prop("title")};else if(a.is("optgroup")){b={text:a.prop("label"),children:[],title:a.prop("title")};for(var d=a.children("option"),e=[],f=0;f<d.length;f++){var g=c(d[f]),h=this.item(g);e.push(h)}b.children=e}return b=this._normalizeItem(b),b.element=a[0],c.data(a[0],"data",b),b},d.prototype._normalizeItem=function(a){c.isPlainObject(a)||(a={id:a,text:a}),a=c.extend({},{text:""},a);var b={selected:!1,disabled:!1};return null!=a.id&&(a.id=a.id.toString()),null!=a.text&&(a.text=a.text.toString()),null==a._resultId&&a.id&&null!=this.container&&(a._resultId=this.generateResultId(this.container,a)),c.extend({},b,a)},d.prototype.matches=function(a,b){var c=this.options.get("matcher");return c(a,b)},d}),b.define("select2/data/array",["./select","../utils","jquery"],function(a,b,c){function d(a,b){var c=b.get("data")||[];d.__super__.constructor.call(this,a,b),this.addOptions(this.convertToOptions(c))}return b.Extend(d,a),d.prototype.select=function(a){var b=this.$element.find("option").filter(function(b,c){return c.value==a.id.toString()});0===b.length&&(b=this.option(a),this.addOptions(b)),d.__super__.select.call(this,a)},d.prototype.convertToOptions=function(a){function d(a){return function(){return c(this).val()==a.id}}for(var e=this,f=this.$element.find("option"),g=f.map(function(){return e.item(c(this)).id}).get(),h=[],i=0;i<a.length;i++){var j=this._normalizeItem(a[i]);if(c.inArray(j.id,g)>=0){var k=f.filter(d(j)),l=this.item(k),m=c.extend(!0,{},j,l),n=this.option(m);k.replaceWith(n)}else{var o=this.option(j);if(j.children){var p=this.convertToOptions(j.children);b.appendMany(o,p)}h.push(o)}}return h},d}),b.define("select2/data/ajax",["./array","../utils","jquery"],function(a,b,c){function d(a,b){this.ajaxOptions=this._applyDefaults(b.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),d.__super__.constructor.call(this,a,b)}return b.Extend(d,a),d.prototype._applyDefaults=function(a){var b={data:function(a){return c.extend({},a,{q:a.term})},transport:function(a,b,d){var e=c.ajax(a);return e.then(b),e.fail(d),e}};return c.extend({},b,a,!0)},d.prototype.processResults=function(a){return a},d.prototype.query=function(a,b){function d(){var d=f.transport(f,function(d){var f=e.processResults(d,a);e.options.get("debug")&&window.console&&console.error&&(f&&f.results&&c.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),b(f)},function(){d.status&&"0"===d.status||e.trigger("results:message",{message:"errorLoading"})});e._request=d}var e=this;null!=this._request&&(c.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var f=c.extend({type:"GET"},this.ajaxOptions);"function"==typeof f.url&&(f.url=f.url.call(this.$element,a)),"function"==typeof f.data&&(f.data=f.data.call(this.$element,a)),this.ajaxOptions.delay&&null!=a.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(d,this.ajaxOptions.delay)):d()},d}),b.define("select2/data/tags",["jquery"],function(a){function b(b,c,d){var e=d.get("tags"),f=d.get("createTag");void 0!==f&&(this.createTag=f);var g=d.get("insertTag");if(void 0!==g&&(this.insertTag=g),b.call(this,c,d),a.isArray(e))for(var h=0;h<e.length;h++){var i=e[h],j=this._normalizeItem(i),k=this.option(j);this.$element.append(k)}}return b.prototype.query=function(a,b,c){function d(a,f){for(var g=a.results,h=0;h<g.length;h++){var i=g[h],j=null!=i.children&&!d({results:i.children},!0),k=i.text===b.term;if(k||j)return f?!1:(a.data=g,void c(a))}if(f)return!0;var l=e.createTag(b);if(null!=l){var m=e.option(l);m.attr("data-select2-tag",!0),e.addOptions([m]),e.insertTag(g,l)}a.results=g,c(a)}var e=this;return this._removeOldTags(),null==b.term||null!=b.page?void a.call(this,b,c):void a.call(this,b,d)},b.prototype.createTag=function(b,c){var d=a.trim(c.term);return""===d?null:{id:d,text:d}},b.prototype.insertTag=function(a,b,c){b.unshift(c)},b.prototype._removeOldTags=function(b){var c=(this._lastTag,this.$element.find("option[data-select2-tag]"));c.each(function(){this.selected||a(this).remove()})},b}),b.define("select2/data/tokenizer",["jquery"],function(a){function b(a,b,c){var d=c.get("tokenizer");void 0!==d&&(this.tokenizer=d),a.call(this,b,c)}return b.prototype.bind=function(a,b,c){a.call(this,b,c),this.$search=b.dropdown.$search||b.selection.$search||c.find(".select2-search__field")},b.prototype.query=function(b,c,d){function e(b){var c=g._normalizeItem(b),d=g.$element.find("option").filter(function(){return a(this).val()===c.id});if(!d.length){var e=g.option(c);e.attr("data-select2-tag",!0),g._removeOldTags(),g.addOptions([e])}f(c)}function f(a){g.trigger("select",{data:a})}var g=this;c.term=c.term||"";var h=this.tokenizer(c,this.options,e);h.term!==c.term&&(this.$search.length&&(this.$search.val(h.term),this.$search.focus()),c.term=h.term),b.call(this,c,d)},b.prototype.tokenizer=function(b,c,d,e){for(var f=d.get("tokenSeparators")||[],g=c.term,h=0,i=this.createTag||function(a){return{id:a.term,text:a.term}};h<g.length;){var j=g[h];if(-1!==a.inArray(j,f)){var k=g.substr(0,h),l=a.extend({},c,{term:k}),m=i(l);null!=m?(e(m),g=g.substr(h+1)||"",h=0):h++}else h++}return{term:g}},b}),b.define("select2/data/minimumInputLength",[],function(){function a(a,b,c){this.minimumInputLength=c.get("minimumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){return b.term=b.term||"",b.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:b.term,params:b}}):void a.call(this,b,c)},a}),b.define("select2/data/maximumInputLength",[],function(){function a(a,b,c){this.maximumInputLength=c.get("maximumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){return b.term=b.term||"",this.maximumInputLength>0&&b.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:b.term,params:b}}):void a.call(this,b,c)},a}),b.define("select2/data/maximumSelectionLength",[],function(){function a(a,b,c){this.maximumSelectionLength=c.get("maximumSelectionLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){var d=this;this.current(function(e){var f=null!=e?e.length:0;return d.maximumSelectionLength>0&&f>=d.maximumSelectionLength?void d.trigger("results:message",{message:"maximumSelected",args:{maximum:d.maximumSelectionLength}}):void a.call(d,b,c)})},a}),b.define("select2/dropdown",["jquery","./utils"],function(a,b){function c(a,b){this.$element=a,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<span class="select2-dropdown"><span class="select2-results"></span></span>');return b.attr("dir",this.options.get("dir")),this.$dropdown=b,b},c.prototype.bind=function(){},c.prototype.position=function(a,b){},c.prototype.destroy=function(){this.$dropdown.remove()},c}),b.define("select2/dropdown/search",["jquery","../utils"],function(a,b){function c(){}return c.prototype.render=function(b){var c=b.call(this),d=a('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=d,this.$search=d.find("input"),c.prepend(d),c},c.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),this.$search.on("keydown",function(a){e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented()}),this.$search.on("input",function(b){a(this).off("keyup")}),this.$search.on("keyup input",function(a){e.handleSearch(a)}),c.on("open",function(){e.$search.attr("tabindex",0),e.$search.focus(),window.setTimeout(function(){e.$search.focus()},0)}),c.on("close",function(){e.$search.attr("tabindex",-1),e.$search.val("")}),c.on("focus",function(){c.isOpen()&&e.$search.focus()}),c.on("results:all",function(a){if(null==a.query.term||""===a.query.term){var b=e.showSearch(a);b?e.$searchContainer.removeClass("select2-search--hide"):e.$searchContainer.addClass("select2-search--hide")}})},c.prototype.handleSearch=function(a){if(!this._keyUpPrevented){var b=this.$search.val();this.trigger("query",{term:b})}this._keyUpPrevented=!1},c.prototype.showSearch=function(a,b){return!0},c}),b.define("select2/dropdown/hidePlaceholder",[],function(){function a(a,b,c,d){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c,d)}return a.prototype.append=function(a,b){b.results=this.removePlaceholder(b.results),a.call(this,b)},a.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},a.prototype.removePlaceholder=function(a,b){for(var c=b.slice(0),d=b.length-1;d>=0;d--){var e=b[d];this.placeholder.id===e.id&&c.splice(d,1)}return c},a}),b.define("select2/dropdown/infiniteScroll",["jquery"],function(a){function b(a,b,c,d){this.lastParams={},a.call(this,b,c,d),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return b.prototype.append=function(a,b){this.$loadingMore.remove(),this.loading=!1,a.call(this,b),this.showLoadingMore(b)&&this.$results.append(this.$loadingMore)},b.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),c.on("query",function(a){e.lastParams=a,e.loading=!0}),c.on("query:append",function(a){e.lastParams=a,e.loading=!0}),this.$results.on("scroll",function(){var b=a.contains(document.documentElement,e.$loadingMore[0]);if(!e.loading&&b){var c=e.$results.offset().top+e.$results.outerHeight(!1),d=e.$loadingMore.offset().top+e.$loadingMore.outerHeight(!1);c+50>=d&&e.loadMore()}})},b.prototype.loadMore=function(){this.loading=!0;var b=a.extend({},{page:1},this.lastParams);b.page++,this.trigger("query:append",b)},b.prototype.showLoadingMore=function(a,b){return b.pagination&&b.pagination.more},b.prototype.createLoadingMore=function(){var b=a('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),c=this.options.get("translations").get("loadingMore");return b.html(c(this.lastParams)),b},b}),b.define("select2/dropdown/attachBody",["jquery","../utils"],function(a,b){function c(b,c,d){this.$dropdownParent=d.get("dropdownParent")||a(document.body),b.call(this,c,d)}return c.prototype.bind=function(a,b,c){var d=this,e=!1;a.call(this,b,c),b.on("open",function(){d._showDropdown(),d._attachPositioningHandler(b),e||(e=!0,b.on("results:all",function(){d._positionDropdown(),d._resizeDropdown()}),b.on("results:append",function(){d._positionDropdown(),d._resizeDropdown()}))}),b.on("close",function(){d._hideDropdown(),d._detachPositioningHandler(b)}),this.$dropdownContainer.on("mousedown",function(a){a.stopPropagation()})},c.prototype.destroy=function(a){a.call(this),this.$dropdownContainer.remove()},c.prototype.position=function(a,b,c){b.attr("class",c.attr("class")),b.removeClass("select2"),b.addClass("select2-container--open"),b.css({position:"absolute",top:-999999}),this.$container=c},c.prototype.render=function(b){var c=a("<span></span>"),d=b.call(this);return c.append(d),this.$dropdownContainer=c,c},c.prototype._hideDropdown=function(a){this.$dropdownContainer.detach()},c.prototype._attachPositioningHandler=function(c,d){var e=this,f="scroll.select2."+d.id,g="resize.select2."+d.id,h="orientationchange.select2."+d.id,i=this.$container.parents().filter(b.hasScroll);i.each(function(){a(this).data("select2-scroll-position",{x:a(this).scrollLeft(),y:a(this).scrollTop()})}),i.on(f,function(b){var c=a(this).data("select2-scroll-position");a(this).scrollTop(c.y)}),a(window).on(f+" "+g+" "+h,function(a){e._positionDropdown(),e._resizeDropdown()})},c.prototype._detachPositioningHandler=function(c,d){var e="scroll.select2."+d.id,f="resize.select2."+d.id,g="orientationchange.select2."+d.id,h=this.$container.parents().filter(b.hasScroll);h.off(e),a(window).off(e+" "+f+" "+g)},c.prototype._positionDropdown=function(){var b=a(window),c=this.$dropdown.hasClass("select2-dropdown--above"),d=this.$dropdown.hasClass("select2-dropdown--below"),e=null,f=this.$container.offset();f.bottom=f.top+this.$container.outerHeight(!1);var g={height:this.$container.outerHeight(!1)};g.top=f.top,g.bottom=f.top+g.height;var h={height:this.$dropdown.outerHeight(!1)},i={top:b.scrollTop(),bottom:b.scrollTop()+b.height()},j=i.top<f.top-h.height,k=i.bottom>f.bottom+h.height,l={left:f.left,top:g.bottom},m=this.$dropdownParent;"static"===m.css("position")&&(m=m.offsetParent());var n=m.offset();l.top-=n.top,l.left-=n.left,c||d||(e="below"),k||!j||c?!j&&k&&c&&(e="below"):e="above",("above"==e||c&&"below"!==e)&&(l.top=g.top-n.top-h.height),null!=e&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+e),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+e)),this.$dropdownContainer.css(l)},c.prototype._resizeDropdown=function(){var a={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(a.minWidth=a.width,a.position="relative",a.width="auto"),this.$dropdown.css(a)},c.prototype._showDropdown=function(a){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},c}),b.define("select2/dropdown/minimumResultsForSearch",[],function(){function a(b){for(var c=0,d=0;d<b.length;d++){var e=b[d];e.children?c+=a(e.children):c++}return c}function b(a,b,c,d){this.minimumResultsForSearch=c.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),a.call(this,b,c,d)}return b.prototype.showSearch=function(b,c){return a(c.data.results)<this.minimumResultsForSearch?!1:b.call(this,c)},b}),b.define("select2/dropdown/selectOnClose",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("close",function(a){d._handleSelectOnClose(a)})},a.prototype._handleSelectOnClose=function(a,b){if(b&&null!=b.originalSelect2Event){var c=b.originalSelect2Event;if("select"===c._type||"unselect"===c._type)return}var d=this.getHighlightedResults();if(!(d.length<1)){var e=d.data("data");null!=e.element&&e.element.selected||null==e.element&&e.selected||this.trigger("select",{data:e})}},a}),b.define("select2/dropdown/closeOnSelect",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("select",function(a){d._selectTriggered(a)}),b.on("unselect",function(a){d._selectTriggered(a)})},a.prototype._selectTriggered=function(a,b){var c=b.originalEvent;c&&c.ctrlKey||this.trigger("close",{originalEvent:c,originalSelect2Event:b})},a}),b.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(a){var b=a.input.length-a.maximum,c="Please delete "+b+" character";return 1!=b&&(c+="s"),c},inputTooShort:function(a){var b=a.minimum-a.input.length,c="Please enter "+b+" or more characters";return c},loadingMore:function(){return"Loading more results…"},maximumSelected:function(a){var b="You can only select "+a.maximum+" item";return 1!=a.maximum&&(b+="s"),b},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),b.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C){function D(){this.reset()}D.prototype.apply=function(l){if(l=a.extend(!0,{},this.defaults,l),null==l.dataAdapter){if(null!=l.ajax?l.dataAdapter=o:null!=l.data?l.dataAdapter=n:l.dataAdapter=m,l.minimumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,r)),l.maximumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,s)),l.maximumSelectionLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,t)),l.tags&&(l.dataAdapter=j.Decorate(l.dataAdapter,p)),(null!=l.tokenSeparators||null!=l.tokenizer)&&(l.dataAdapter=j.Decorate(l.dataAdapter,q)),null!=l.query){var C=b(l.amdBase+"compat/query");l.dataAdapter=j.Decorate(l.dataAdapter,C)}if(null!=l.initSelection){var D=b(l.amdBase+"compat/initSelection");l.dataAdapter=j.Decorate(l.dataAdapter,D)}}if(null==l.resultsAdapter&&(l.resultsAdapter=c,null!=l.ajax&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,x)),null!=l.placeholder&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,w)),l.selectOnClose&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,A))),null==l.dropdownAdapter){if(l.multiple)l.dropdownAdapter=u;else{var E=j.Decorate(u,v);l.dropdownAdapter=E}if(0!==l.minimumResultsForSearch&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,z)),l.closeOnSelect&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,B)),null!=l.dropdownCssClass||null!=l.dropdownCss||null!=l.adaptDropdownCssClass){var F=b(l.amdBase+"compat/dropdownCss");l.dropdownAdapter=j.Decorate(l.dropdownAdapter,F)}l.dropdownAdapter=j.Decorate(l.dropdownAdapter,y)}if(null==l.selectionAdapter){if(l.multiple?l.selectionAdapter=e:l.selectionAdapter=d,null!=l.placeholder&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,f)),l.allowClear&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,g)),l.multiple&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,h)),null!=l.containerCssClass||null!=l.containerCss||null!=l.adaptContainerCssClass){var G=b(l.amdBase+"compat/containerCss");l.selectionAdapter=j.Decorate(l.selectionAdapter,G)}l.selectionAdapter=j.Decorate(l.selectionAdapter,i)}if("string"==typeof l.language)if(l.language.indexOf("-")>0){var H=l.language.split("-"),I=H[0];l.language=[l.language,I]}else l.language=[l.language];if(a.isArray(l.language)){var J=new k;l.language.push("en");for(var K=l.language,L=0;L<K.length;L++){var M=K[L],N={};try{N=k.loadPath(M)}catch(O){try{M=this.defaults.amdLanguageBase+M,N=k.loadPath(M)}catch(P){l.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+M+'" could not be automatically loaded. A fallback will be used instead.');continue}}J.extend(N)}l.translations=J}else{var Q=k.loadPath(this.defaults.amdLanguageBase+"en"),R=new k(l.language);R.extend(Q),l.translations=R}return l},D.prototype.reset=function(){function b(a){function b(a){return l[a]||a}return a.replace(/[^\u0000-\u007E]/g,b)}function c(d,e){if(""===a.trim(d.term))return e;if(e.children&&e.children.length>0){for(var f=a.extend(!0,{},e),g=e.children.length-1;g>=0;g--){var h=e.children[g],i=c(d,h);null==i&&f.children.splice(g,1)}return f.children.length>0?f:c(d,f)}var j=b(e.text).toUpperCase(),k=b(d.term).toUpperCase();return j.indexOf(k)>-1?e:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:j.escapeMarkup,language:C,matcher:c,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(a){return a},templateResult:function(a){return a.text},templateSelection:function(a){return a.text},theme:"default",width:"resolve"}},D.prototype.set=function(b,c){var d=a.camelCase(b),e={};e[d]=c;var f=j._convertData(e);a.extend(this.defaults,f)};var E=new D;return E}),b.define("select2/options",["require","jquery","./defaults","./utils"],function(a,b,c,d){function e(b,e){if(this.options=b,null!=e&&this.fromElement(e),this.options=c.apply(this.options),e&&e.is("input")){var f=a(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=d.Decorate(this.options.dataAdapter,f)}}return e.prototype.fromElement=function(a){var c=["select2"];null==this.options.multiple&&(this.options.multiple=a.prop("multiple")),null==this.options.disabled&&(this.options.disabled=a.prop("disabled")),null==this.options.language&&(a.prop("lang")?this.options.language=a.prop("lang").toLowerCase():a.closest("[lang]").prop("lang")&&(this.options.language=a.closest("[lang]").prop("lang"))),null==this.options.dir&&(a.prop("dir")?this.options.dir=a.prop("dir"):a.closest("[dir]").prop("dir")?this.options.dir=a.closest("[dir]").prop("dir"):this.options.dir="ltr"),a.prop("disabled",this.options.disabled),a.prop("multiple",this.options.multiple),a.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),a.data("data",a.data("select2Tags")),a.data("tags",!0)),a.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),a.attr("ajax--url",a.data("ajaxUrl")),a.data("ajax--url",a.data("ajaxUrl")));var e={};e=b.fn.jquery&&"1."==b.fn.jquery.substr(0,2)&&a[0].dataset?b.extend(!0,{},a[0].dataset,a.data()):a.data();var f=b.extend(!0,{},e);f=d._convertData(f);for(var g in f)b.inArray(g,c)>-1||(b.isPlainObject(this.options[g])?b.extend(this.options[g],f[g]):this.options[g]=f[g]);return this},e.prototype.get=function(a){return this.options[a]},e.prototype.set=function(a,b){this.options[a]=b},e}),b.define("select2/core",["jquery","./options","./utils","./keys"],function(a,b,c,d){var e=function(a,c){null!=a.data("select2")&&a.data("select2").destroy(),this.$element=a,this.id=this._generateId(a),c=c||{},this.options=new b(c,a),e.__super__.constructor.call(this);var d=a.attr("tabindex")||0;a.data("old-tabindex",d),a.attr("tabindex","-1");var f=this.options.get("dataAdapter");this.dataAdapter=new f(a,this.options);var g=this.render();this._placeContainer(g);var h=this.options.get("selectionAdapter");this.selection=new h(a,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,g);var i=this.options.get("dropdownAdapter");this.dropdown=new i(a,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,g);var j=this.options.get("resultsAdapter");this.results=new j(a,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var k=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(a){k.trigger("selection:update",{data:a})}),a.addClass("select2-hidden-accessible"),a.attr("aria-hidden","true"),this._syncAttributes(),a.data("select2",this)};return c.Extend(e,c.Observable),e.prototype._generateId=function(a){var b="";return b=null!=a.attr("id")?a.attr("id"):null!=a.attr("name")?a.attr("name")+"-"+c.generateChars(2):c.generateChars(4),b=b.replace(/(:|\.|\[|\]|,)/g,""),b="select2-"+b},e.prototype._placeContainer=function(a){a.insertAfter(this.$element);var b=this._resolveWidth(this.$element,this.options.get("width"));null!=b&&a.css("width",b)},e.prototype._resolveWidth=function(a,b){var c=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==b){var d=this._resolveWidth(a,"style");return null!=d?d:this._resolveWidth(a,"element")}if("element"==b){var e=a.outerWidth(!1);return 0>=e?"auto":e+"px"}if("style"==b){var f=a.attr("style");if("string"!=typeof f)return null;for(var g=f.split(";"),h=0,i=g.length;i>h;h+=1){var j=g[h].replace(/\s/g,""),k=j.match(c);if(null!==k&&k.length>=1)return k[1]}return null}return b},e.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},e.prototype._registerDomEvents=function(){var b=this;this.$element.on("change.select2",function(){b.dataAdapter.current(function(a){b.trigger("selection:update",{data:a})})}),this.$element.on("focus.select2",function(a){b.trigger("focus",a)}),this._syncA=c.bind(this._syncAttributes,this),this._syncS=c.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var d=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=d?(this._observer=new d(function(c){a.each(c,b._syncA),a.each(c,b._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",b._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",b._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",b._syncS,!1))},e.prototype._registerDataEvents=function(){var a=this;this.dataAdapter.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerSelectionEvents=function(){var b=this,c=["toggle","focus"];this.selection.on("toggle",function(){b.toggleDropdown()}),this.selection.on("focus",function(a){b.focus(a)}),this.selection.on("*",function(d,e){-1===a.inArray(d,c)&&b.trigger(d,e)})},e.prototype._registerDropdownEvents=function(){var a=this;this.dropdown.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerResultsEvents=function(){var a=this;this.results.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerEvents=function(){var a=this;this.on("open",function(){a.$container.addClass("select2-container--open")}),this.on("close",function(){a.$container.removeClass("select2-container--open")}),this.on("enable",function(){a.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){a.$container.addClass("select2-container--disabled")}),this.on("blur",function(){a.$container.removeClass("select2-container--focus")}),this.on("query",function(b){a.isOpen()||a.trigger("open",{}),this.dataAdapter.query(b,function(c){a.trigger("results:all",{data:c,query:b})})}),this.on("query:append",function(b){this.dataAdapter.query(b,function(c){a.trigger("results:append",{data:c,query:b})})}),this.on("keypress",function(b){var c=b.which;a.isOpen()?c===d.ESC||c===d.TAB||c===d.UP&&b.altKey?(a.close(),b.preventDefault()):c===d.ENTER?(a.trigger("results:select",{}),b.preventDefault()):c===d.SPACE&&b.ctrlKey?(a.trigger("results:toggle",{}),b.preventDefault()):c===d.UP?(a.trigger("results:previous",{}),b.preventDefault()):c===d.DOWN&&(a.trigger("results:next",{}),b.preventDefault()):(c===d.ENTER||c===d.SPACE||c===d.DOWN&&b.altKey)&&(a.open(),b.preventDefault())})},e.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},e.prototype._syncSubtree=function(a,b){var c=!1,d=this;if(!a||!a.target||"OPTION"===a.target.nodeName||"OPTGROUP"===a.target.nodeName){if(b)if(b.addedNodes&&b.addedNodes.length>0)for(var e=0;e<b.addedNodes.length;e++){var f=b.addedNodes[e];f.selected&&(c=!0)}else b.removedNodes&&b.removedNodes.length>0&&(c=!0);else c=!0;c&&this.dataAdapter.current(function(a){d.trigger("selection:update",{data:a})})}},e.prototype.trigger=function(a,b){var c=e.__super__.trigger,d={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===b&&(b={}),a in d){var f=d[a],g={prevented:!1,name:a,args:b};if(c.call(this,f,g),g.prevented)return void(b.prevented=!0)}c.call(this,a,b)},e.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},e.prototype.open=function(){this.isOpen()||this.trigger("query",{})},e.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},e.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},e.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},e.prototype.focus=function(a){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},e.prototype.enable=function(a){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),(null==a||0===a.length)&&(a=[!0]);var b=!a[0];this.$element.prop("disabled",b)},e.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var a=[];return this.dataAdapter.current(function(b){a=b}),a},e.prototype.val=function(b){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==b||0===b.length)return this.$element.val();var c=b[0];a.isArray(c)&&(c=a.map(c,function(a){return a.toString()})),this.$element.val(c).trigger("change")},e.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null;
|
3 |
-
},e.prototype.render=function(){var b=a('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return b.attr("dir",this.options.get("dir")),this.$container=b,this.$container.addClass("select2-container--"+this.options.get("theme")),b.data("element",this.$element),b},e}),b.define("jquery-mousewheel",["jquery"],function(a){return a}),b.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(a,b,c,d){if(null==a.fn.select2){var e=["open","close","destroy"];a.fn.select2=function(b){if(b=b||{},"object"==typeof b)return this.each(function(){var d=a.extend(!0,{},b);new c(a(this),d)}),this;if("string"==typeof b){var d,f=Array.prototype.slice.call(arguments,1);return this.each(function(){var c=a(this).data("select2");null==c&&window.console&&console.error&&console.error("The select2('"+b+"') method was called on an element that is not using Select2."),d=c[b].apply(c,f)}),a.inArray(b,e)>-1?this:d}throw new Error("Invalid arguments for Select2: "+b)}}return null==a.fn.select2.defaults&&(a.fn.select2.defaults=d),c}),{define:b.define,require:b.require}}(),c=b.require("jquery.select2");return a.fn.select2.amd=b,c});
|
|
|
|
|
|
trunk/assets/js/vendors/wp-color-picker-alpha.min.js
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
/**!
|
2 |
-
* wp-color-picker-alpha
|
3 |
-
*
|
4 |
-
* Overwrite Automattic Iris for enabled Alpha Channel in wpColorPicker
|
5 |
-
* Only run in input and is defined data alpha in true
|
6 |
-
*
|
7 |
-
* Version: 2.1.2
|
8 |
-
* https://github.com/kallookoo/wp-color-picker-alpha
|
9 |
-
* Licensed under the GPLv2 license.
|
10 |
-
*/
|
11 |
-
!function(t){var o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAAHnlligAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNpi+P///4EDBxiAGMgCCCAGFB5AADGCRBgYDh48CCRZIJS9vT2QBAggFBkmBiSAogxFBiCAoHogAKIKAlBUYTELAiAmEtABEECk20G6BOmuIl0CIMBQ/IEMkO0myiSSraaaBhZcbkUOs0HuBwDplz5uFJ3Z4gAAAABJRU5ErkJggg==",r='<div class="wp-picker-holder" />',e='<div class="wp-picker-container" />',i='<input type="button" class="button button-small" />',a=void 0!==wpColorPickerL10n.current;if(a)n='<a tabindex="0" class="wp-color-result" />';else var n='<button type="button" class="button wp-color-result" aria-expanded="false"><span class="wp-color-result-text"></span></button>',l="<label></label>",s='<span class="screen-reader-text"></span>';Color.fn.toString=function(){if(this._alpha<1)return this.toCSS("rgba",this._alpha).replace(/\s+/g,"");var t=parseInt(this._color,10).toString(16);return this.error?"":(t.length<6&&(t=("00000"+t).substr(-6)),"#"+t)},t.widget("wp.wpColorPicker",t.wp.wpColorPicker,{_create:function(){if(t.support.iris){var p=this,c=p.element;if(t.extend(p.options,c.data()),"hue"===p.options.type)return p._createHueOnly();p.close=t.proxy(p.close,p),p.initialValue=c.val(),c.addClass("wp-color-picker"),a?(c.hide().wrap(e),p.wrap=c.parent(),p.toggler=t(n).insertBefore(c).css({backgroundColor:p.initialValue}).attr("title",wpColorPickerL10n.pick).attr("data-current",wpColorPickerL10n.current),p.pickerContainer=t(r).insertAfter(c),p.button=t(i).addClass("hidden")):(c.parent("label").length||(c.wrap(l),p.wrappingLabelText=t(s).insertBefore(c).text(wpColorPickerL10n.defaultLabel)),p.wrappingLabel=c.parent(),p.wrappingLabel.wrap(e),p.wrap=p.wrappingLabel.parent(),p.toggler=t(n).insertBefore(p.wrappingLabel).css({backgroundColor:p.initialValue}),p.toggler.find(".wp-color-result-text").text(wpColorPickerL10n.pick),p.pickerContainer=t(r).insertAfter(p.wrappingLabel),p.button=t(i)),p.options.defaultColor?(p.button.addClass("wp-picker-default").val(wpColorPickerL10n.defaultString),a||p.button.attr("aria-label",wpColorPickerL10n.defaultAriaLabel)):(p.button.addClass("wp-picker-clear").val(wpColorPickerL10n.clear),a||p.button.attr("aria-label",wpColorPickerL10n.clearAriaLabel)),a?c.wrap('<span class="wp-picker-input-wrap" />').after(p.button):(p.wrappingLabel.wrap('<span class="wp-picker-input-wrap hidden" />').after(p.button),p.inputWrapper=c.closest(".wp-picker-input-wrap")),c.iris({target:p.pickerContainer,hide:p.options.hide,width:p.options.width,mode:p.options.mode,palettes:p.options.palettes,change:function(r,e){p.options.alpha?(p.toggler.css({"background-image":"url("+o+")"}),a?p.toggler.html('<span class="color-alpha" />'):(p.toggler.css({position:"relative"}),0==p.toggler.find("span.color-alpha").length&&p.toggler.append('<span class="color-alpha" />')),p.toggler.find("span.color-alpha").css({width:"30px",height:"24px",position:"absolute",top:0,left:0,"border-top-left-radius":"2px","border-bottom-left-radius":"2px",background:e.color.toString()})):p.toggler.css({backgroundColor:e.color.toString()}),t.isFunction(p.options.change)&&p.options.change.call(this,r,e)}}),c.val(p.initialValue),p._addListeners(),p.options.hide||p.toggler.click()}},_addListeners:function(){var o=this;o.wrap.on("click.wpcolorpicker",function(t){t.stopPropagation()}),o.toggler.click(function(){o.toggler.hasClass("wp-picker-open")?o.close():o.open()}),o.element.on("change",function(r){(""===t(this).val()||o.element.hasClass("iris-error"))&&(o.options.alpha?(a&&o.toggler.removeAttr("style"),o.toggler.find("span.color-alpha").css("backgroundColor","")):o.toggler.css("backgroundColor",""),t.isFunction(o.options.clear)&&o.options.clear.call(this,r))}),o.button.on("click",function(r){t(this).hasClass("wp-picker-clear")?(o.element.val(""),o.options.alpha?(a&&o.toggler.removeAttr("style"),o.toggler.find("span.color-alpha").css("backgroundColor","")):o.toggler.css("backgroundColor",""),t.isFunction(o.options.clear)&&o.options.clear.call(this,r)):t(this).hasClass("wp-picker-default")&&o.element.val(o.options.defaultColor).change()})}}),t.widget("a8c.iris",t.a8c.iris,{_create:function(){if(this._super(),this.options.alpha=this.element.data("alpha")||!1,this.element.is(":input")||(this.options.alpha=!1),void 0!==this.options.alpha&&this.options.alpha){var o=this,r=o.element,e=t('<div class="iris-strip iris-slider iris-alpha-slider"><div class="iris-slider-offset iris-slider-offset-alpha"></div></div>').appendTo(o.picker.find(".iris-picker-inner")),i={aContainer:e,aSlider:e.find(".iris-slider-offset-alpha")};void 0!==r.data("custom-width")?o.options.customWidth=parseInt(r.data("custom-width"))||0:o.options.customWidth=100,o.options.defaultWidth=r.width(),(o._color._alpha<1||-1!=o._color.toString().indexOf("rgb"))&&r.width(parseInt(o.options.defaultWidth+o.options.customWidth)),t.each(i,function(t,r){o.controls[t]=r}),o.controls.square.css({"margin-right":"0"});var a=o.picker.width()-o.controls.square.width()-20,n=a/6,l=a/2-n;t.each(["aContainer","strip"],function(t,r){o.controls[r].width(l).css({"margin-left":n+"px"})}),o._initControls(),o._change()}},_initControls:function(){if(this._super(),this.options.alpha){var t=this;t.controls.aSlider.slider({orientation:"vertical",min:0,max:100,step:1,value:parseInt(100*t._color._alpha),slide:function(o,r){t._color._alpha=parseFloat(r.value/100),t._change.apply(t,arguments)}})}},_change:function(){this._super();var t=this,r=t.element;if(this.options.alpha){var e=t.controls,i=parseInt(100*t._color._alpha),a=t._color.toRgb(),n=["rgb("+a.r+","+a.g+","+a.b+") 0%","rgba("+a.r+","+a.g+","+a.b+", 0) 100%"],l=t.options.defaultWidth,s=t.options.customWidth,p=t.picker.closest(".wp-picker-container").find(".wp-color-result");e.aContainer.css({background:"linear-gradient(to bottom, "+n.join(", ")+"), url("+o+")"}),p.hasClass("wp-picker-open")&&(e.aSlider.slider("value",i),t._color._alpha<1?(e.strip.attr("style",e.strip.attr("style").replace(/rgba\(([0-9]+,)(\s+)?([0-9]+,)(\s+)?([0-9]+)(,(\s+)?[0-9\.]+)\)/g,"rgb($1$3$5)")),r.width(parseInt(l+s))):r.width(l))}(r.data("reset-alpha")||!1)&&t.picker.find(".iris-palette-container").on("click.palette",".iris-palette",function(){t._color._alpha=1,t.active="external",t._change()})},_addInputListeners:function(t){var o=this,r=function(r){var e=new Color(t.val()),i=t.val();t.removeClass("iris-error"),e.error?""!==i&&t.addClass("iris-error"):e.toString()!==o._color.toString()&&("keyup"===r.type&&i.match(/^[0-9a-fA-F]{3}$/)||o._setOption("color",e.toString()))};t.on("change",r).on("keyup",o._debounce(r,100)),o.options.hide&&t.on("focus",function(){o.show()})}})}(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/admin.scss
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
@import "utilities/variables";
|
2 |
-
@import "utilities/mixins";
|
3 |
-
@import 'admin/widget';
|
4 |
-
@import 'admin/toggle';
|
5 |
-
@import 'admin/meta-box';
|
6 |
-
@import 'admin/datepicker';
|
7 |
-
@import 'admin/select2';
|
8 |
-
@import 'admin/model';
|
9 |
-
@import 'admin/modal';
|
10 |
-
@import 'admin/tooltip';
|
11 |
-
@import 'admin/tab';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/admin/_datepicker.scss
DELETED
@@ -1,46 +0,0 @@
|
|
1 |
-
/* jQuery UI Datepicker */
|
2 |
-
.ui-datepicker{
|
3 |
-
background-color: #ffffff;
|
4 |
-
border:1px solid #cccccc;
|
5 |
-
box-shadow:0 2px 4px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
|
6 |
-
padding: 8px;
|
7 |
-
display: none;
|
8 |
-
}
|
9 |
-
.ui-datepicker-header {
|
10 |
-
background-color: #f1f1f1;
|
11 |
-
}
|
12 |
-
.ui-datepicker-prev,
|
13 |
-
.ui-datepicker-next {
|
14 |
-
color:#000;
|
15 |
-
padding: 6px;
|
16 |
-
cursor: pointer;
|
17 |
-
}
|
18 |
-
.ui-datepicker-prev:hover,
|
19 |
-
.ui-datepicker-next:hover {
|
20 |
-
color:#000;
|
21 |
-
}
|
22 |
-
.ui-datepicker-prev {
|
23 |
-
float: left;
|
24 |
-
}
|
25 |
-
.ui-datepicker-next {
|
26 |
-
float: right;
|
27 |
-
}
|
28 |
-
.ui-datepicker-calendar td > a {
|
29 |
-
border: 1px solid #ddd;
|
30 |
-
display: block;
|
31 |
-
padding: 6px;
|
32 |
-
text-decoration: none;
|
33 |
-
color:#000;
|
34 |
-
background-color:#f1f1f1;
|
35 |
-
}
|
36 |
-
.ui-datepicker-calendar td.ui-datepicker-today > a {
|
37 |
-
color:#000;
|
38 |
-
background-color:#ffeb3b;
|
39 |
-
}
|
40 |
-
.ui-datepicker-calendar td.ui-datepicker-current-day > a {
|
41 |
-
color:#fff;
|
42 |
-
background-color:#f44336;
|
43 |
-
}
|
44 |
-
.sp-wp-editor-container {
|
45 |
-
max-width: 560px;
|
46 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/admin/_meta-box.scss
DELETED
@@ -1,239 +0,0 @@
|
|
1 |
-
// Global
|
2 |
-
.overflowHidden {
|
3 |
-
overflow: hidden;
|
4 |
-
}
|
5 |
-
|
6 |
-
.overflowVisible {
|
7 |
-
overflow: visible;
|
8 |
-
}
|
9 |
-
|
10 |
-
// Meta box fields
|
11 |
-
.sp {
|
12 |
-
&-input-group {
|
13 |
-
margin-bottom: 10px;
|
14 |
-
&:after {
|
15 |
-
content: "";
|
16 |
-
display: table;
|
17 |
-
clear: both
|
18 |
-
}
|
19 |
-
}
|
20 |
-
|
21 |
-
&-input-label {
|
22 |
-
label {
|
23 |
-
font-weight: 600;
|
24 |
-
margin-right: 30px;
|
25 |
-
}
|
26 |
-
}
|
27 |
-
&-input-field {
|
28 |
-
}
|
29 |
-
|
30 |
-
&-input-label,
|
31 |
-
&-input-field {
|
32 |
-
float: left;
|
33 |
-
width: 100%;
|
34 |
-
}
|
35 |
-
&-input-desc {
|
36 |
-
color: #999;
|
37 |
-
font-size: 0.9em;
|
38 |
-
line-height: 1.3em;
|
39 |
-
margin: 10px 30px 10px 0;
|
40 |
-
}
|
41 |
-
&-input-text {
|
42 |
-
width: 100%;
|
43 |
-
padding: 8px 8px 8px 16px;
|
44 |
-
height: 35px !important;
|
45 |
-
|
46 |
-
option {
|
47 |
-
padding: 8px 4px;
|
48 |
-
}
|
49 |
-
}
|
50 |
-
}
|
51 |
-
|
52 |
-
.spacing-text {
|
53 |
-
width: 62px;
|
54 |
-
}
|
55 |
-
|
56 |
-
@media only screen and (min-width: 600px) {
|
57 |
-
.sp {
|
58 |
-
&-input-label {
|
59 |
-
width: 40%;
|
60 |
-
}
|
61 |
-
&-input-field {
|
62 |
-
width: 60%;
|
63 |
-
}
|
64 |
-
}
|
65 |
-
}
|
66 |
-
|
67 |
-
@media only screen and (min-width: 783px) {
|
68 |
-
.sp-input-label {
|
69 |
-
width: 30%;
|
70 |
-
}
|
71 |
-
.sp-input-field {
|
72 |
-
width: 70%;
|
73 |
-
}
|
74 |
-
.sp-input-text {
|
75 |
-
width: 25em;
|
76 |
-
}
|
77 |
-
}
|
78 |
-
|
79 |
-
@media only screen and (min-width: 851px) {
|
80 |
-
.sp-input-label,
|
81 |
-
.sp-input-field {
|
82 |
-
width: 100%;
|
83 |
-
}
|
84 |
-
}
|
85 |
-
|
86 |
-
@media only screen and (min-width: 1200px) {
|
87 |
-
.sp-input-label {
|
88 |
-
width: 40%;
|
89 |
-
}
|
90 |
-
.sp-input-field {
|
91 |
-
width: 60%;
|
92 |
-
}
|
93 |
-
}
|
94 |
-
|
95 |
-
@media only screen and (min-width: 1600px) {
|
96 |
-
.sp-input-label {
|
97 |
-
width: 30%;
|
98 |
-
}
|
99 |
-
.sp-input-field {
|
100 |
-
width: 70%;
|
101 |
-
}
|
102 |
-
}
|
103 |
-
|
104 |
-
// Admin Media gallery
|
105 |
-
.carousel_slider {
|
106 |
-
&_images {
|
107 |
-
&:before,
|
108 |
-
&:after {
|
109 |
-
display: table;
|
110 |
-
content: "";
|
111 |
-
}
|
112 |
-
&:after {
|
113 |
-
clear: both;
|
114 |
-
}
|
115 |
-
}
|
116 |
-
&_gallery_btn {
|
117 |
-
border: 1px solid #616161;
|
118 |
-
color: #616161;
|
119 |
-
background-color: #f1f1f1;
|
120 |
-
padding: 5px 15px;
|
121 |
-
text-decoration: none;
|
122 |
-
|
123 |
-
&:hover {
|
124 |
-
background-color: #ffffff;
|
125 |
-
color: #616161;
|
126 |
-
}
|
127 |
-
}
|
128 |
-
&_gallery_list {
|
129 |
-
margin: 15px 0 0 0;
|
130 |
-
padding: 0;
|
131 |
-
list-style: none;
|
132 |
-
box-sizing: border-box;
|
133 |
-
&:before,
|
134 |
-
&:after {
|
135 |
-
display: table;
|
136 |
-
content: "";
|
137 |
-
}
|
138 |
-
&:after {
|
139 |
-
clear: both;
|
140 |
-
}
|
141 |
-
|
142 |
-
li {
|
143 |
-
float: left;
|
144 |
-
margin: 0;
|
145 |
-
padding: 0;
|
146 |
-
|
147 |
-
> img {
|
148 |
-
margin-right: 10px;
|
149 |
-
margin-bottom: 10px;
|
150 |
-
display: block;
|
151 |
-
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
|
152 |
-
}
|
153 |
-
}
|
154 |
-
}
|
155 |
-
}
|
156 |
-
|
157 |
-
// Hide Post carousel fields
|
158 |
-
// Related fields will be open by jQuery
|
159 |
-
#field-_post_date_after,
|
160 |
-
#field-_post_date_before,
|
161 |
-
#field-_post_categories,
|
162 |
-
#field-_post_tags,
|
163 |
-
#field-_post_in {
|
164 |
-
display: none;
|
165 |
-
}
|
166 |
-
|
167 |
-
// Hide Post carousel fields
|
168 |
-
// Related fields will be open by jQuery
|
169 |
-
#field-_product_query,
|
170 |
-
#field-_product_categories,
|
171 |
-
#field-_product_tags,
|
172 |
-
#field-_product_in {
|
173 |
-
display: none;
|
174 |
-
}
|
175 |
-
|
176 |
-
#carousel-slider-navigation-settings,
|
177 |
-
#carousel-slider-responsive-settings,
|
178 |
-
#carousel-slider-autoplay-settings {
|
179 |
-
p {
|
180 |
-
overflow: hidden;
|
181 |
-
}
|
182 |
-
input.small-text,
|
183 |
-
select.small-text {
|
184 |
-
float: right;
|
185 |
-
}
|
186 |
-
}
|
187 |
-
|
188 |
-
// Content Carousel Meta
|
189 |
-
.tab-background {
|
190 |
-
.slide_bg_wrapper {
|
191 |
-
display: flex;
|
192 |
-
padding: 1rem 0;
|
193 |
-
}
|
194 |
-
.slide_thumb {
|
195 |
-
position: relative;
|
196 |
-
float: left;
|
197 |
-
margin-right: 1rem;
|
198 |
-
border: solid 1px #e0e0e0;
|
199 |
-
padding: 5px;
|
200 |
-
|
201 |
-
> div {
|
202 |
-
width: 320px;
|
203 |
-
height: 180px;
|
204 |
-
background-color: #f1f1f1;
|
205 |
-
background-repeat: no-repeat;
|
206 |
-
background-position: top left;
|
207 |
-
background-size: 100% auto;
|
208 |
-
}
|
209 |
-
|
210 |
-
> span {
|
211 |
-
display: inline-block;
|
212 |
-
position: absolute;
|
213 |
-
top: 0;
|
214 |
-
right: 0;
|
215 |
-
font-family: Arial, Helvetica, sans-serif;
|
216 |
-
font-size: 14px;
|
217 |
-
line-height: 14px;
|
218 |
-
padding: 3px 3px;
|
219 |
-
background-color: rgba(0, 0, 0, 0.5);
|
220 |
-
color: #ffffff;
|
221 |
-
cursor: pointer;
|
222 |
-
transition: all .3s ease-in-out;
|
223 |
-
|
224 |
-
&.hidden {
|
225 |
-
display: none !important;
|
226 |
-
}
|
227 |
-
}
|
228 |
-
}
|
229 |
-
|
230 |
-
.slide_image_settings_line {
|
231 |
-
display: block;
|
232 |
-
margin: 0.5rem 0;
|
233 |
-
|
234 |
-
> span {
|
235 |
-
width: 150px;
|
236 |
-
display: inline-block;
|
237 |
-
}
|
238 |
-
}
|
239 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/admin/_modal.scss
DELETED
@@ -1,108 +0,0 @@
|
|
1 |
-
.modal {
|
2 |
-
@include overlay;
|
3 |
-
align-items: center;
|
4 |
-
display: none;
|
5 |
-
justify-content: center;
|
6 |
-
overflow: hidden;
|
7 |
-
position: fixed;
|
8 |
-
z-index: 10000;
|
9 |
-
|
10 |
-
.admin-bar & {
|
11 |
-
top: 32px;
|
12 |
-
}
|
13 |
-
|
14 |
-
.delete-icon {
|
15 |
-
@include delete;
|
16 |
-
}
|
17 |
-
|
18 |
-
// Modifiers
|
19 |
-
&.is-active {
|
20 |
-
display: flex;
|
21 |
-
}
|
22 |
-
|
23 |
-
&-background {
|
24 |
-
@include overlay;
|
25 |
-
background-color: rgba($black, 0.86);
|
26 |
-
}
|
27 |
-
|
28 |
-
&-content,
|
29 |
-
&-card {
|
30 |
-
margin: 0 20px;
|
31 |
-
max-height: calc(100vh - 160px);
|
32 |
-
overflow: auto;
|
33 |
-
position: relative;
|
34 |
-
width: 100%;
|
35 |
-
// Responsiveness
|
36 |
-
@media screen and (min-width: 769px), print {
|
37 |
-
margin: 0 auto;
|
38 |
-
max-height: calc(100vh - 40px);
|
39 |
-
width: 640px;
|
40 |
-
}
|
41 |
-
}
|
42 |
-
|
43 |
-
&-close {
|
44 |
-
@include delete;
|
45 |
-
background: none;
|
46 |
-
height: 40px;
|
47 |
-
position: fixed;
|
48 |
-
right: 20px;
|
49 |
-
top: 20px;
|
50 |
-
width: 40px;
|
51 |
-
}
|
52 |
-
|
53 |
-
&-card {
|
54 |
-
display: flex;
|
55 |
-
flex-direction: column;
|
56 |
-
max-height: calc(100vh - 40px);
|
57 |
-
overflow: hidden;
|
58 |
-
}
|
59 |
-
|
60 |
-
&-card-head,
|
61 |
-
&-card-foot {
|
62 |
-
align-items: center;
|
63 |
-
background-color: $background;
|
64 |
-
display: flex;
|
65 |
-
flex-shrink: 0;
|
66 |
-
justify-content: flex-start;
|
67 |
-
margin: 0;
|
68 |
-
padding: 20px;
|
69 |
-
position: relative;
|
70 |
-
}
|
71 |
-
|
72 |
-
&-card-head {
|
73 |
-
border-bottom: 1px solid $border;
|
74 |
-
border-top-left-radius: $radius-large;
|
75 |
-
border-top-right-radius: $radius-large;
|
76 |
-
}
|
77 |
-
|
78 |
-
&-card-title {
|
79 |
-
color: $text-strong;
|
80 |
-
flex-grow: 1;
|
81 |
-
flex-shrink: 0;
|
82 |
-
font-size: $size-4;
|
83 |
-
line-height: 1;
|
84 |
-
margin: 0;
|
85 |
-
padding: 0;
|
86 |
-
}
|
87 |
-
|
88 |
-
&-card-foot {
|
89 |
-
border-bottom-left-radius: $radius-large;
|
90 |
-
border-bottom-right-radius: $radius-large;
|
91 |
-
border-top: 1px solid $border;
|
92 |
-
.button {
|
93 |
-
&:not(:last-child) {
|
94 |
-
margin-right: 10px;
|
95 |
-
}
|
96 |
-
}
|
97 |
-
}
|
98 |
-
|
99 |
-
&-card-body {
|
100 |
-
-webkit-overflow-scrolling: touch;
|
101 |
-
background-color: $white;
|
102 |
-
flex-grow: 1;
|
103 |
-
flex-shrink: 1;
|
104 |
-
overflow: auto;
|
105 |
-
margin: 0;
|
106 |
-
padding: 20px;
|
107 |
-
}
|
108 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/admin/_model.scss
DELETED
@@ -1,140 +0,0 @@
|
|
1 |
-
.carousel_slider {
|
2 |
-
&-modal{
|
3 |
-
display: none;
|
4 |
-
position: fixed;
|
5 |
-
z-index: 10000;
|
6 |
-
left: 0;
|
7 |
-
top: 0;
|
8 |
-
width: 100%;
|
9 |
-
height: 100%;
|
10 |
-
overflow: hidden;
|
11 |
-
background-color: rgb(0,0,0);
|
12 |
-
background-color: rgba(0,0,0,0.8);
|
13 |
-
|
14 |
-
&-content{
|
15 |
-
position: relative;
|
16 |
-
background-color: #fefefe;
|
17 |
-
margin: 50px auto 18px;
|
18 |
-
padding: 0;
|
19 |
-
border: 1px solid #23282d;
|
20 |
-
min-height: 300px;
|
21 |
-
width: 412px;
|
22 |
-
// height: 90%;
|
23 |
-
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
|
24 |
-
}
|
25 |
-
|
26 |
-
&-header {
|
27 |
-
background-color: #23282d;
|
28 |
-
color: white;
|
29 |
-
font-weight: bold;
|
30 |
-
padding: 10px 16px;
|
31 |
-
}
|
32 |
-
&-body {
|
33 |
-
// max-height: 300px;
|
34 |
-
overflow-x: hidden;
|
35 |
-
overflow-y: scroll;
|
36 |
-
padding: 2px 16px;
|
37 |
-
}
|
38 |
-
|
39 |
-
&-footer {
|
40 |
-
background-color: #23282d;
|
41 |
-
color: white;
|
42 |
-
font-weight: bold;
|
43 |
-
padding: 10px 16px;
|
44 |
-
|
45 |
-
img {
|
46 |
-
display: none;
|
47 |
-
height: 14px;
|
48 |
-
vertical-align: middle;
|
49 |
-
width: 14px;
|
50 |
-
}
|
51 |
-
}
|
52 |
-
}
|
53 |
-
|
54 |
-
&-form {
|
55 |
-
margin-left: -15px;
|
56 |
-
margin-right: -15px;
|
57 |
-
}
|
58 |
-
|
59 |
-
// Carousel Slider Images URL
|
60 |
-
&-fields {
|
61 |
-
background-color: #f1f1f1;
|
62 |
-
margin: 15px;
|
63 |
-
padding: 15px 25px 15px 15px;
|
64 |
-
position: relative;
|
65 |
-
display: inline-block;
|
66 |
-
float: left;
|
67 |
-
|
68 |
-
label.setting {
|
69 |
-
display: block;
|
70 |
-
margin-bottom: 5px;
|
71 |
-
|
72 |
-
.name {
|
73 |
-
display: inline-block;
|
74 |
-
vertical-align: top;
|
75 |
-
width: 75px;
|
76 |
-
}
|
77 |
-
input, textarea {
|
78 |
-
width: 250px;
|
79 |
-
}
|
80 |
-
}
|
81 |
-
.actions {
|
82 |
-
position: absolute;
|
83 |
-
right: 0;
|
84 |
-
top: 0;
|
85 |
-
|
86 |
-
> span {
|
87 |
-
background: #fff none repeat scroll 0 0;
|
88 |
-
display: block;
|
89 |
-
float: none;
|
90 |
-
cursor: pointer;
|
91 |
-
|
92 |
-
.dashicons-plus-alt:hover {
|
93 |
-
color: green;
|
94 |
-
}
|
95 |
-
|
96 |
-
.dashicons-trash:hover {
|
97 |
-
color: red;
|
98 |
-
}
|
99 |
-
}
|
100 |
-
}
|
101 |
-
}
|
102 |
-
|
103 |
-
&-close {
|
104 |
-
color: #f1f1f1;
|
105 |
-
float: right;
|
106 |
-
font-size: 28px;
|
107 |
-
font-weight: bold;
|
108 |
-
|
109 |
-
&:hover,
|
110 |
-
&:focus {
|
111 |
-
color: #fff;
|
112 |
-
text-decoration: none;
|
113 |
-
cursor: pointer;
|
114 |
-
}
|
115 |
-
}
|
116 |
-
}
|
117 |
-
|
118 |
-
.carousel_slider_url_images_list {
|
119 |
-
margin: 15px 0 0;
|
120 |
-
padding: 0;
|
121 |
-
list-style: none;
|
122 |
-
|
123 |
-
li {
|
124 |
-
float: left;
|
125 |
-
display: inline-block;
|
126 |
-
margin: 0 5px 5px 0;
|
127 |
-
}
|
128 |
-
}
|
129 |
-
|
130 |
-
@media only screen and (min-width: 820px ){
|
131 |
-
.carousel_slider-modal-content {
|
132 |
-
width: 810px;
|
133 |
-
}
|
134 |
-
}
|
135 |
-
|
136 |
-
@media only screen and (min-width: 1230px ){
|
137 |
-
.carousel_slider-modal-content {
|
138 |
-
width: 1220px;
|
139 |
-
}
|
140 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/admin/_select2.scss
DELETED
@@ -1,484 +0,0 @@
|
|
1 |
-
.select2-container {
|
2 |
-
box-sizing: border-box;
|
3 |
-
display: inline-block;
|
4 |
-
margin: 0;
|
5 |
-
position: relative;
|
6 |
-
vertical-align: middle; }
|
7 |
-
.select2-container .select2-selection--single {
|
8 |
-
box-sizing: border-box;
|
9 |
-
cursor: pointer;
|
10 |
-
display: block;
|
11 |
-
height: 28px;
|
12 |
-
user-select: none;
|
13 |
-
-webkit-user-select: none; }
|
14 |
-
.select2-container .select2-selection--single .select2-selection__rendered {
|
15 |
-
display: block;
|
16 |
-
padding-left: 8px;
|
17 |
-
padding-right: 20px;
|
18 |
-
overflow: hidden;
|
19 |
-
text-overflow: ellipsis;
|
20 |
-
white-space: nowrap; }
|
21 |
-
.select2-container .select2-selection--single .select2-selection__clear {
|
22 |
-
position: relative; }
|
23 |
-
.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
|
24 |
-
padding-right: 8px;
|
25 |
-
padding-left: 20px; }
|
26 |
-
.select2-container .select2-selection--multiple {
|
27 |
-
box-sizing: border-box;
|
28 |
-
cursor: pointer;
|
29 |
-
display: block;
|
30 |
-
min-height: 32px;
|
31 |
-
user-select: none;
|
32 |
-
-webkit-user-select: none; }
|
33 |
-
.select2-container .select2-selection--multiple .select2-selection__rendered {
|
34 |
-
display: inline-block;
|
35 |
-
overflow: hidden;
|
36 |
-
padding-left: 8px;
|
37 |
-
text-overflow: ellipsis;
|
38 |
-
white-space: nowrap; }
|
39 |
-
.select2-container .select2-search--inline {
|
40 |
-
float: left; }
|
41 |
-
.select2-container .select2-search--inline .select2-search__field {
|
42 |
-
box-sizing: border-box;
|
43 |
-
border: none;
|
44 |
-
font-size: 100%;
|
45 |
-
margin-top: 5px;
|
46 |
-
padding: 0; }
|
47 |
-
.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
|
48 |
-
-webkit-appearance: none; }
|
49 |
-
|
50 |
-
.select2-dropdown {
|
51 |
-
background-color: white;
|
52 |
-
border: 1px solid #aaa;
|
53 |
-
border-radius: 0;
|
54 |
-
box-sizing: border-box;
|
55 |
-
display: block;
|
56 |
-
position: absolute;
|
57 |
-
left: -100000px;
|
58 |
-
width: 100%;
|
59 |
-
z-index: 1051; }
|
60 |
-
|
61 |
-
.select2-results {
|
62 |
-
display: block; }
|
63 |
-
|
64 |
-
.select2-results__options {
|
65 |
-
list-style: none;
|
66 |
-
margin: 0;
|
67 |
-
padding: 0; }
|
68 |
-
|
69 |
-
.select2-results__option {
|
70 |
-
padding: 6px;
|
71 |
-
user-select: none;
|
72 |
-
-webkit-user-select: none; }
|
73 |
-
.select2-results__option[aria-selected] {
|
74 |
-
cursor: pointer; }
|
75 |
-
|
76 |
-
.select2-container--open .select2-dropdown {
|
77 |
-
left: 0; }
|
78 |
-
|
79 |
-
.select2-container--open .select2-dropdown--above {
|
80 |
-
border-bottom: none;
|
81 |
-
border-bottom-left-radius: 0;
|
82 |
-
border-bottom-right-radius: 0; }
|
83 |
-
|
84 |
-
.select2-container--open .select2-dropdown--below {
|
85 |
-
border-top: none;
|
86 |
-
border-top-left-radius: 0;
|
87 |
-
border-top-right-radius: 0; }
|
88 |
-
|
89 |
-
.select2-search--dropdown {
|
90 |
-
display: block;
|
91 |
-
padding: 4px; }
|
92 |
-
.select2-search--dropdown .select2-search__field {
|
93 |
-
padding: 4px;
|
94 |
-
width: 100%;
|
95 |
-
box-sizing: border-box; }
|
96 |
-
.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
|
97 |
-
-webkit-appearance: none; }
|
98 |
-
.select2-search--dropdown.select2-search--hide {
|
99 |
-
display: none; }
|
100 |
-
|
101 |
-
.select2-close-mask {
|
102 |
-
border: 0;
|
103 |
-
margin: 0;
|
104 |
-
padding: 0;
|
105 |
-
display: block;
|
106 |
-
position: fixed;
|
107 |
-
left: 0;
|
108 |
-
top: 0;
|
109 |
-
min-height: 100%;
|
110 |
-
min-width: 100%;
|
111 |
-
height: auto;
|
112 |
-
width: auto;
|
113 |
-
opacity: 0;
|
114 |
-
z-index: 99;
|
115 |
-
background-color: #fff;
|
116 |
-
filter: alpha(opacity=0); }
|
117 |
-
|
118 |
-
.select2-hidden-accessible {
|
119 |
-
border: 0 !important;
|
120 |
-
clip: rect(0 0 0 0) !important;
|
121 |
-
height: 1px !important;
|
122 |
-
margin: -1px !important;
|
123 |
-
overflow: hidden !important;
|
124 |
-
padding: 0 !important;
|
125 |
-
position: absolute !important;
|
126 |
-
width: 1px !important; }
|
127 |
-
|
128 |
-
.select2-container--default .select2-selection--single {
|
129 |
-
background-color: #fff;
|
130 |
-
border: 1px solid #aaa;
|
131 |
-
border-radius: 0; }
|
132 |
-
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
133 |
-
color: #444;
|
134 |
-
line-height: 28px; }
|
135 |
-
.select2-container--default .select2-selection--single .select2-selection__clear {
|
136 |
-
cursor: pointer;
|
137 |
-
float: right;
|
138 |
-
font-weight: bold; }
|
139 |
-
.select2-container--default .select2-selection--single .select2-selection__placeholder {
|
140 |
-
color: #999; }
|
141 |
-
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
142 |
-
height: 26px;
|
143 |
-
position: absolute;
|
144 |
-
top: 1px;
|
145 |
-
right: 1px;
|
146 |
-
width: 20px; }
|
147 |
-
.select2-container--default .select2-selection--single .select2-selection__arrow b {
|
148 |
-
border-color: #888 transparent transparent transparent;
|
149 |
-
border-style: solid;
|
150 |
-
border-width: 5px 4px 0 4px;
|
151 |
-
height: 0;
|
152 |
-
left: 50%;
|
153 |
-
margin-left: -4px;
|
154 |
-
margin-top: -2px;
|
155 |
-
position: absolute;
|
156 |
-
top: 50%;
|
157 |
-
width: 0; }
|
158 |
-
|
159 |
-
.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
|
160 |
-
float: left; }
|
161 |
-
|
162 |
-
.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
|
163 |
-
left: 1px;
|
164 |
-
right: auto; }
|
165 |
-
|
166 |
-
.select2-container--default.select2-container--disabled .select2-selection--single {
|
167 |
-
background-color: #eee;
|
168 |
-
cursor: default; }
|
169 |
-
.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
|
170 |
-
display: none; }
|
171 |
-
|
172 |
-
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
|
173 |
-
border-color: transparent transparent #888 transparent;
|
174 |
-
border-width: 0 4px 5px 4px; }
|
175 |
-
|
176 |
-
.select2-container--default .select2-selection--multiple {
|
177 |
-
background-color: white;
|
178 |
-
border: 1px solid #aaa;
|
179 |
-
border-radius: 0;
|
180 |
-
cursor: text; }
|
181 |
-
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
|
182 |
-
box-sizing: border-box;
|
183 |
-
list-style: none;
|
184 |
-
margin: 0;
|
185 |
-
padding: 0 5px;
|
186 |
-
width: 100%; }
|
187 |
-
.select2-container--default .select2-selection--multiple .select2-selection__rendered li {
|
188 |
-
list-style: none; }
|
189 |
-
.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
|
190 |
-
color: #999;
|
191 |
-
margin-top: 5px;
|
192 |
-
float: left; }
|
193 |
-
.select2-container--default .select2-selection--multiple .select2-selection__clear {
|
194 |
-
cursor: pointer;
|
195 |
-
float: right;
|
196 |
-
font-weight: bold;
|
197 |
-
margin-top: 5px;
|
198 |
-
margin-right: 10px; }
|
199 |
-
.select2-container--default .select2-selection--multiple .select2-selection__choice {
|
200 |
-
background-color: #e4e4e4;
|
201 |
-
border: 1px solid #aaa;
|
202 |
-
border-radius: 0;
|
203 |
-
cursor: default;
|
204 |
-
float: left;
|
205 |
-
margin-right: 5px;
|
206 |
-
margin-top: 5px;
|
207 |
-
padding: 0 5px; }
|
208 |
-
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
|
209 |
-
color: #999;
|
210 |
-
cursor: pointer;
|
211 |
-
display: inline-block;
|
212 |
-
font-weight: bold;
|
213 |
-
margin-right: 2px; }
|
214 |
-
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
|
215 |
-
color: #333; }
|
216 |
-
|
217 |
-
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline {
|
218 |
-
float: right; }
|
219 |
-
|
220 |
-
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
|
221 |
-
margin-left: 5px;
|
222 |
-
margin-right: auto; }
|
223 |
-
|
224 |
-
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
|
225 |
-
margin-left: 2px;
|
226 |
-
margin-right: auto; }
|
227 |
-
|
228 |
-
.select2-container--default.select2-container--focus .select2-selection--multiple {
|
229 |
-
border: solid black 1px;
|
230 |
-
outline: 0; }
|
231 |
-
|
232 |
-
.select2-container--default.select2-container--disabled .select2-selection--multiple {
|
233 |
-
background-color: #eee;
|
234 |
-
cursor: default; }
|
235 |
-
|
236 |
-
.select2-container--default.select2-container--disabled .select2-selection__choice__remove {
|
237 |
-
display: none; }
|
238 |
-
|
239 |
-
.select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
|
240 |
-
border-top-left-radius: 0;
|
241 |
-
border-top-right-radius: 0; }
|
242 |
-
|
243 |
-
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
|
244 |
-
border-bottom-left-radius: 0;
|
245 |
-
border-bottom-right-radius: 0; }
|
246 |
-
|
247 |
-
.select2-container--default .select2-search--dropdown .select2-search__field {
|
248 |
-
border: 1px solid #aaa; }
|
249 |
-
|
250 |
-
.select2-container--default .select2-search--inline .select2-search__field {
|
251 |
-
background: transparent;
|
252 |
-
border: none;
|
253 |
-
outline: 0;
|
254 |
-
box-shadow: none;
|
255 |
-
-webkit-appearance: textfield; }
|
256 |
-
|
257 |
-
.select2-container--default .select2-results > .select2-results__options {
|
258 |
-
max-height: 200px;
|
259 |
-
overflow-y: auto; }
|
260 |
-
|
261 |
-
.select2-container--default .select2-results__option[role=group] {
|
262 |
-
padding: 0; }
|
263 |
-
|
264 |
-
.select2-container--default .select2-results__option[aria-disabled=true] {
|
265 |
-
color: #999; }
|
266 |
-
|
267 |
-
.select2-container--default .select2-results__option[aria-selected=true] {
|
268 |
-
background-color: #ddd; }
|
269 |
-
|
270 |
-
.select2-container--default .select2-results__option .select2-results__option {
|
271 |
-
padding-left: 1em; }
|
272 |
-
.select2-container--default .select2-results__option .select2-results__option .select2-results__group {
|
273 |
-
padding-left: 0; }
|
274 |
-
.select2-container--default .select2-results__option .select2-results__option .select2-results__option {
|
275 |
-
margin-left: -1em;
|
276 |
-
padding-left: 2em; }
|
277 |
-
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
278 |
-
margin-left: -2em;
|
279 |
-
padding-left: 3em; }
|
280 |
-
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
281 |
-
margin-left: -3em;
|
282 |
-
padding-left: 4em; }
|
283 |
-
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
284 |
-
margin-left: -4em;
|
285 |
-
padding-left: 5em; }
|
286 |
-
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
287 |
-
margin-left: -5em;
|
288 |
-
padding-left: 6em; }
|
289 |
-
|
290 |
-
.select2-container--default .select2-results__option--highlighted[aria-selected] {
|
291 |
-
background-color: #5897fb;
|
292 |
-
color: white; }
|
293 |
-
|
294 |
-
.select2-container--default .select2-results__group {
|
295 |
-
cursor: default;
|
296 |
-
display: block;
|
297 |
-
padding: 6px; }
|
298 |
-
|
299 |
-
.select2-container--classic .select2-selection--single {
|
300 |
-
background-color: #f7f7f7;
|
301 |
-
border: 1px solid #aaa;
|
302 |
-
border-radius: 0;
|
303 |
-
outline: 0;
|
304 |
-
background-image: -webkit-linear-gradient(top, white 50%, #eeeeee 100%);
|
305 |
-
background-image: -o-linear-gradient(top, white 50%, #eeeeee 100%);
|
306 |
-
background-image: linear-gradient(to bottom, white 50%, #eeeeee 100%);
|
307 |
-
background-repeat: repeat-x;
|
308 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
|
309 |
-
.select2-container--classic .select2-selection--single:focus {
|
310 |
-
border: 1px solid #5897fb; }
|
311 |
-
.select2-container--classic .select2-selection--single .select2-selection__rendered {
|
312 |
-
color: #444;
|
313 |
-
line-height: 28px; }
|
314 |
-
.select2-container--classic .select2-selection--single .select2-selection__clear {
|
315 |
-
cursor: pointer;
|
316 |
-
float: right;
|
317 |
-
font-weight: bold;
|
318 |
-
margin-right: 10px; }
|
319 |
-
.select2-container--classic .select2-selection--single .select2-selection__placeholder {
|
320 |
-
color: #999; }
|
321 |
-
.select2-container--classic .select2-selection--single .select2-selection__arrow {
|
322 |
-
background-color: #ddd;
|
323 |
-
border: none;
|
324 |
-
border-left: 1px solid #aaa;
|
325 |
-
border-top-right-radius: 4px;
|
326 |
-
border-bottom-right-radius: 4px;
|
327 |
-
height: 26px;
|
328 |
-
position: absolute;
|
329 |
-
top: 1px;
|
330 |
-
right: 1px;
|
331 |
-
width: 20px;
|
332 |
-
background-image: -webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
|
333 |
-
background-image: -o-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
|
334 |
-
background-image: linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);
|
335 |
-
background-repeat: repeat-x;
|
336 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0); }
|
337 |
-
.select2-container--classic .select2-selection--single .select2-selection__arrow b {
|
338 |
-
border-color: #888 transparent transparent transparent;
|
339 |
-
border-style: solid;
|
340 |
-
border-width: 5px 4px 0 4px;
|
341 |
-
height: 0;
|
342 |
-
left: 50%;
|
343 |
-
margin-left: -4px;
|
344 |
-
margin-top: -2px;
|
345 |
-
position: absolute;
|
346 |
-
top: 50%;
|
347 |
-
width: 0; }
|
348 |
-
|
349 |
-
.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear {
|
350 |
-
float: left; }
|
351 |
-
|
352 |
-
.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow {
|
353 |
-
border: none;
|
354 |
-
border-right: 1px solid #aaa;
|
355 |
-
border-radius: 0;
|
356 |
-
border-top-left-radius: 4px;
|
357 |
-
border-bottom-left-radius: 4px;
|
358 |
-
left: 1px;
|
359 |
-
right: auto; }
|
360 |
-
|
361 |
-
.select2-container--classic.select2-container--open .select2-selection--single {
|
362 |
-
border: 1px solid #5897fb; }
|
363 |
-
.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow {
|
364 |
-
background: transparent;
|
365 |
-
border: none; }
|
366 |
-
.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b {
|
367 |
-
border-color: transparent transparent #888 transparent;
|
368 |
-
border-width: 0 4px 5px 4px; }
|
369 |
-
|
370 |
-
.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single {
|
371 |
-
border-top: none;
|
372 |
-
border-top-left-radius: 0;
|
373 |
-
border-top-right-radius: 0;
|
374 |
-
background-image: -webkit-linear-gradient(top, white 0%, #eeeeee 50%);
|
375 |
-
background-image: -o-linear-gradient(top, white 0%, #eeeeee 50%);
|
376 |
-
background-image: linear-gradient(to bottom, white 0%, #eeeeee 50%);
|
377 |
-
background-repeat: repeat-x;
|
378 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
|
379 |
-
|
380 |
-
.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single {
|
381 |
-
border-bottom: none;
|
382 |
-
border-bottom-left-radius: 0;
|
383 |
-
border-bottom-right-radius: 0;
|
384 |
-
background-image: -webkit-linear-gradient(top, #eeeeee 50%, white 100%);
|
385 |
-
background-image: -o-linear-gradient(top, #eeeeee 50%, white 100%);
|
386 |
-
background-image: linear-gradient(to bottom, #eeeeee 50%, white 100%);
|
387 |
-
background-repeat: repeat-x;
|
388 |
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0); }
|
389 |
-
|
390 |
-
.select2-container--classic .select2-selection--multiple {
|
391 |
-
background-color: white;
|
392 |
-
border: 1px solid #aaa;
|
393 |
-
border-radius: 0;
|
394 |
-
cursor: text;
|
395 |
-
outline: 0; }
|
396 |
-
.select2-container--classic .select2-selection--multiple:focus {
|
397 |
-
border: 1px solid #5897fb; }
|
398 |
-
.select2-container--classic .select2-selection--multiple .select2-selection__rendered {
|
399 |
-
list-style: none;
|
400 |
-
margin: 0;
|
401 |
-
padding: 0 5px; }
|
402 |
-
.select2-container--classic .select2-selection--multiple .select2-selection__clear {
|
403 |
-
display: none; }
|
404 |
-
.select2-container--classic .select2-selection--multiple .select2-selection__choice {
|
405 |
-
background-color: #e4e4e4;
|
406 |
-
border: 1px solid #aaa;
|
407 |
-
border-radius: 0;
|
408 |
-
cursor: default;
|
409 |
-
float: left;
|
410 |
-
margin-right: 5px;
|
411 |
-
margin-top: 5px;
|
412 |
-
padding: 0 5px; }
|
413 |
-
.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove {
|
414 |
-
color: #888;
|
415 |
-
cursor: pointer;
|
416 |
-
display: inline-block;
|
417 |
-
font-weight: bold;
|
418 |
-
margin-right: 2px; }
|
419 |
-
.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover {
|
420 |
-
color: #555; }
|
421 |
-
|
422 |
-
.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
|
423 |
-
float: right; }
|
424 |
-
|
425 |
-
.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
|
426 |
-
margin-left: 5px;
|
427 |
-
margin-right: auto; }
|
428 |
-
|
429 |
-
.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
|
430 |
-
margin-left: 2px;
|
431 |
-
margin-right: auto; }
|
432 |
-
|
433 |
-
.select2-container--classic.select2-container--open .select2-selection--multiple {
|
434 |
-
border: 1px solid #5897fb; }
|
435 |
-
|
436 |
-
.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple {
|
437 |
-
border-top: none;
|
438 |
-
border-top-left-radius: 0;
|
439 |
-
border-top-right-radius: 0; }
|
440 |
-
|
441 |
-
.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple {
|
442 |
-
border-bottom: none;
|
443 |
-
border-bottom-left-radius: 0;
|
444 |
-
border-bottom-right-radius: 0; }
|
445 |
-
|
446 |
-
.select2-container--classic .select2-search--dropdown .select2-search__field {
|
447 |
-
border: 1px solid #aaa;
|
448 |
-
outline: 0; }
|
449 |
-
|
450 |
-
.select2-container--classic .select2-search--inline .select2-search__field {
|
451 |
-
outline: 0;
|
452 |
-
box-shadow: none; }
|
453 |
-
|
454 |
-
.select2-container--classic .select2-dropdown {
|
455 |
-
background-color: white;
|
456 |
-
border: 1px solid transparent; }
|
457 |
-
|
458 |
-
.select2-container--classic .select2-dropdown--above {
|
459 |
-
border-bottom: none; }
|
460 |
-
|
461 |
-
.select2-container--classic .select2-dropdown--below {
|
462 |
-
border-top: none; }
|
463 |
-
|
464 |
-
.select2-container--classic .select2-results > .select2-results__options {
|
465 |
-
max-height: 200px;
|
466 |
-
overflow-y: auto; }
|
467 |
-
|
468 |
-
.select2-container--classic .select2-results__option[role=group] {
|
469 |
-
padding: 0; }
|
470 |
-
|
471 |
-
.select2-container--classic .select2-results__option[aria-disabled=true] {
|
472 |
-
color: grey; }
|
473 |
-
|
474 |
-
.select2-container--classic .select2-results__option--highlighted[aria-selected] {
|
475 |
-
background-color: #3875d7;
|
476 |
-
color: white; }
|
477 |
-
|
478 |
-
.select2-container--classic .select2-results__group {
|
479 |
-
cursor: default;
|
480 |
-
display: block;
|
481 |
-
padding: 6px; }
|
482 |
-
|
483 |
-
.select2-container--classic.select2-container--open .select2-dropdown {
|
484 |
-
border-color: #5897fb; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/admin/_tab.scss
DELETED
@@ -1,79 +0,0 @@
|
|
1 |
-
/* Tabs */
|
2 |
-
$accent: #323232;
|
3 |
-
|
4 |
-
.shapla-nav {
|
5 |
-
list-style: none !important;
|
6 |
-
margin: 0;
|
7 |
-
padding: 0;
|
8 |
-
|
9 |
-
&:before,
|
10 |
-
&:after {
|
11 |
-
display: table;
|
12 |
-
content: ' ';
|
13 |
-
}
|
14 |
-
|
15 |
-
&:after {
|
16 |
-
clear: both;
|
17 |
-
}
|
18 |
-
|
19 |
-
li {
|
20 |
-
float: left;
|
21 |
-
position: relative;
|
22 |
-
margin: 0 1px -1px 0 !important;
|
23 |
-
z-index: 1;
|
24 |
-
outline: 0;
|
25 |
-
}
|
26 |
-
a {
|
27 |
-
text-decoration: none;
|
28 |
-
display: block;
|
29 |
-
padding: 15px 10px;
|
30 |
-
line-height: 1;
|
31 |
-
outline: 0;
|
32 |
-
}
|
33 |
-
}
|
34 |
-
|
35 |
-
.shapla-tab {
|
36 |
-
margin: 0 0 2em 0;
|
37 |
-
padding: 21px 20px 20px 20px;
|
38 |
-
|
39 |
-
p:first-of-type {
|
40 |
-
margin-top: 0;
|
41 |
-
}
|
42 |
-
p:last-of-type {
|
43 |
-
margin-bottom: 0;
|
44 |
-
}
|
45 |
-
}
|
46 |
-
|
47 |
-
.shapla-tabs--normal {
|
48 |
-
.shapla-nav {
|
49 |
-
a {
|
50 |
-
background: $accent;
|
51 |
-
color: #fff;
|
52 |
-
}
|
53 |
-
.ui-tabs-active a {
|
54 |
-
background: #f1f1f1;
|
55 |
-
color: $accent;
|
56 |
-
outline: 0;
|
57 |
-
}
|
58 |
-
}
|
59 |
-
.shapla-tab {
|
60 |
-
background: #f1f1f1;
|
61 |
-
}
|
62 |
-
}
|
63 |
-
|
64 |
-
.shapla-tabs--stroke {
|
65 |
-
.shapla-nav li {
|
66 |
-
margin: 0 -1px 0 0 !important;
|
67 |
-
}
|
68 |
-
.shapla-nav a {
|
69 |
-
border: 1px solid $accent;
|
70 |
-
color: $accent;
|
71 |
-
}
|
72 |
-
.shapla-nav .ui-tabs-active a {
|
73 |
-
border-bottom-color: white;
|
74 |
-
}
|
75 |
-
.shapla-tab {
|
76 |
-
border: 1px solid $accent;
|
77 |
-
margin-top: -1px;
|
78 |
-
}
|
79 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/admin/_toggle.scss
DELETED
@@ -1,51 +0,0 @@
|
|
1 |
-
.shapla-toggle {
|
2 |
-
margin: 1em 0 !important;
|
3 |
-
|
4 |
-
&-title {
|
5 |
-
display: block;
|
6 |
-
padding: 15px 10px;
|
7 |
-
outline: 0;
|
8 |
-
cursor: pointer;
|
9 |
-
position: relative;
|
10 |
-
|
11 |
-
&:after {
|
12 |
-
position: absolute;
|
13 |
-
right: 15px;
|
14 |
-
font: 400 20px/1 dashicons;
|
15 |
-
margin-left: -1px;
|
16 |
-
padding-right: 3px;
|
17 |
-
vertical-align: top;
|
18 |
-
content: "\f132";
|
19 |
-
}
|
20 |
-
|
21 |
-
&.ui-state-active:after {
|
22 |
-
content: "\f460";
|
23 |
-
}
|
24 |
-
}
|
25 |
-
|
26 |
-
&-content {
|
27 |
-
padding: 20px;
|
28 |
-
background-color: #f1f1f1;
|
29 |
-
}
|
30 |
-
|
31 |
-
&--normal .shapla-toggle-title {
|
32 |
-
background: #9e9e9e;
|
33 |
-
color: white;
|
34 |
-
font-weight: 600;
|
35 |
-
}
|
36 |
-
|
37 |
-
&--stroke .shapla-toggle-title {
|
38 |
-
border: 1px solid #363f48;
|
39 |
-
font-weight: 600;
|
40 |
-
|
41 |
-
&:after {
|
42 |
-
color: #363f48;
|
43 |
-
}
|
44 |
-
}
|
45 |
-
&--stroke .shapla-toggle-content {
|
46 |
-
padding: 20px;
|
47 |
-
background-color: #ffffff;
|
48 |
-
border: 1px solid #363f48;
|
49 |
-
border-top: none;
|
50 |
-
}
|
51 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/admin/_tooltip.scss
DELETED
@@ -1,133 +0,0 @@
|
|
1 |
-
.cs-tooltip {
|
2 |
-
display: inline-block;
|
3 |
-
width: 1.5em;
|
4 |
-
height: 1.5em;
|
5 |
-
float: right;
|
6 |
-
|
7 |
-
&:after {
|
8 |
-
font-family: Dashicons;
|
9 |
-
speak: none;
|
10 |
-
font-weight: 400;
|
11 |
-
text-transform: none;
|
12 |
-
-webkit-font-smoothing: antialiased;
|
13 |
-
width: 100%;
|
14 |
-
height: 100%;
|
15 |
-
text-align: center;
|
16 |
-
content: "\f223";
|
17 |
-
cursor: help;
|
18 |
-
}
|
19 |
-
}
|
20 |
-
|
21 |
-
/* TipTip CSS - Version 1.2 */
|
22 |
-
|
23 |
-
#tiptip_holder {
|
24 |
-
display: none;
|
25 |
-
position: absolute;
|
26 |
-
top: 0;
|
27 |
-
left: 0;
|
28 |
-
z-index: 99999;
|
29 |
-
}
|
30 |
-
|
31 |
-
#tiptip_holder.tip_top {
|
32 |
-
padding-bottom: 5px;
|
33 |
-
}
|
34 |
-
|
35 |
-
#tiptip_holder.tip_bottom {
|
36 |
-
padding-top: 5px;
|
37 |
-
}
|
38 |
-
|
39 |
-
#tiptip_holder.tip_right {
|
40 |
-
padding-left: 5px;
|
41 |
-
}
|
42 |
-
|
43 |
-
#tiptip_holder.tip_left {
|
44 |
-
padding-right: 5px;
|
45 |
-
}
|
46 |
-
|
47 |
-
#tiptip_content {
|
48 |
-
font-size: 11px;
|
49 |
-
color: #fff;
|
50 |
-
text-shadow: 0 0 2px #000;
|
51 |
-
padding: 4px 8px;
|
52 |
-
border: 1px solid rgba(255,255,255,0.25);
|
53 |
-
background-color: rgb(25,25,25);
|
54 |
-
background-color: rgba(25,25,25,0.92);
|
55 |
-
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(transparent), to(#000));
|
56 |
-
border-radius: 3px;
|
57 |
-
-webkit-border-radius: 3px;
|
58 |
-
-moz-border-radius: 3px;
|
59 |
-
box-shadow: 0 0 3px #555;
|
60 |
-
-webkit-box-shadow: 0 0 3px #555;
|
61 |
-
-moz-box-shadow: 0 0 3px #555;
|
62 |
-
}
|
63 |
-
|
64 |
-
#tiptip_arrow, #tiptip_arrow_inner {
|
65 |
-
position: absolute;
|
66 |
-
border-color: transparent;
|
67 |
-
border-style: solid;
|
68 |
-
border-width: 6px;
|
69 |
-
height: 0;
|
70 |
-
width: 0;
|
71 |
-
}
|
72 |
-
|
73 |
-
#tiptip_holder.tip_top #tiptip_arrow {
|
74 |
-
border-top-color: #fff;
|
75 |
-
border-top-color: rgba(255,255,255,0.35);
|
76 |
-
}
|
77 |
-
|
78 |
-
#tiptip_holder.tip_bottom #tiptip_arrow {
|
79 |
-
border-bottom-color: #fff;
|
80 |
-
border-bottom-color: rgba(255,255,255,0.35);
|
81 |
-
}
|
82 |
-
|
83 |
-
#tiptip_holder.tip_right #tiptip_arrow {
|
84 |
-
border-right-color: #fff;
|
85 |
-
border-right-color: rgba(255,255,255,0.35);
|
86 |
-
}
|
87 |
-
|
88 |
-
#tiptip_holder.tip_left #tiptip_arrow {
|
89 |
-
border-left-color: #fff;
|
90 |
-
border-left-color: rgba(255,255,255,0.35);
|
91 |
-
}
|
92 |
-
|
93 |
-
#tiptip_holder.tip_top #tiptip_arrow_inner {
|
94 |
-
margin-top: -7px;
|
95 |
-
margin-left: -6px;
|
96 |
-
border-top-color: rgb(25,25,25);
|
97 |
-
border-top-color: rgba(25,25,25,0.92);
|
98 |
-
}
|
99 |
-
|
100 |
-
#tiptip_holder.tip_bottom #tiptip_arrow_inner {
|
101 |
-
margin-top: -5px;
|
102 |
-
margin-left: -6px;
|
103 |
-
border-bottom-color: rgb(25,25,25);
|
104 |
-
border-bottom-color: rgba(25,25,25,0.92);
|
105 |
-
}
|
106 |
-
|
107 |
-
#tiptip_holder.tip_right #tiptip_arrow_inner {
|
108 |
-
margin-top: -6px;
|
109 |
-
margin-left: -5px;
|
110 |
-
border-right-color: rgb(25,25,25);
|
111 |
-
border-right-color: rgba(25,25,25,0.92);
|
112 |
-
}
|
113 |
-
|
114 |
-
#tiptip_holder.tip_left #tiptip_arrow_inner {
|
115 |
-
margin-top: -6px;
|
116 |
-
margin-left: -7px;
|
117 |
-
border-left-color: rgb(25,25,25);
|
118 |
-
border-left-color: rgba(25,25,25,0.92);
|
119 |
-
}
|
120 |
-
|
121 |
-
/* Webkit Hacks */
|
122 |
-
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
123 |
-
#tiptip_content {
|
124 |
-
padding: 4px 8px 5px 8px;
|
125 |
-
background-color: rgba(45,45,45,0.88);
|
126 |
-
}
|
127 |
-
#tiptip_holder.tip_bottom #tiptip_arrow_inner {
|
128 |
-
border-bottom-color: rgba(45,45,45,0.88);
|
129 |
-
}
|
130 |
-
#tiptip_holder.tip_top #tiptip_arrow_inner {
|
131 |
-
border-top-color: rgba(20,20,20,0.92);
|
132 |
-
}
|
133 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/admin/_widget.scss
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
// Widget Styles
|
2 |
-
div[id*="_carousel_slider"] .widget-top{
|
3 |
-
background: #ddffff !important;
|
4 |
-
border: 1px solid #2196f3 !important;
|
5 |
-
|
6 |
-
&:hover {
|
7 |
-
background: #ffdddd !important;
|
8 |
-
border: 1px solid #f44336 !important;
|
9 |
-
}
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/admin/index.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// Code is Poetry
|
|
|
|
trunk/assets/scss/index.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// Code is Poetry
|
|
|
|
trunk/assets/scss/public/_animate.scss
DELETED
@@ -1,27 +0,0 @@
|
|
1 |
-
// Owl Carousel - Animate Plugin
|
2 |
-
.carousel-slider {
|
3 |
-
|
4 |
-
.animated {
|
5 |
-
animation-duration: 1000ms;
|
6 |
-
animation-fill-mode: both;
|
7 |
-
}
|
8 |
-
.owl-animated-in {
|
9 |
-
z-index: 0;
|
10 |
-
}
|
11 |
-
.owl-animated-out {
|
12 |
-
z-index: 1;
|
13 |
-
}
|
14 |
-
.fadeOut {
|
15 |
-
animation-name: fadeOut;
|
16 |
-
}
|
17 |
-
}
|
18 |
-
|
19 |
-
@keyframes fadeOut {
|
20 |
-
0% {
|
21 |
-
opacity: 1;
|
22 |
-
}
|
23 |
-
|
24 |
-
100% {
|
25 |
-
opacity: 0;
|
26 |
-
}
|
27 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/public/_autoheight.scss
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
// Owl Carousel - Auto Height Plugin
|
2 |
-
.owl-height {
|
3 |
-
transition: height 500ms ease-in-out;
|
4 |
-
}
|
|
|
|
|
|
|
|
trunk/assets/scss/public/_button.scss
DELETED
@@ -1,39 +0,0 @@
|
|
1 |
-
.cs-button {
|
2 |
-
-webkit-appearance: none;
|
3 |
-
-webkit-font-smoothing: inherit;
|
4 |
-
display: inline-block;
|
5 |
-
font-size: 1rem;
|
6 |
-
line-height: 1;
|
7 |
-
padding: 0.75em 1em;
|
8 |
-
border-radius: 0;
|
9 |
-
text-decoration: none;
|
10 |
-
text-align: center;
|
11 |
-
box-sizing: border-box;
|
12 |
-
transition: all 200ms ease-in-out;
|
13 |
-
|
14 |
-
&:hover {
|
15 |
-
text-decoration: none;
|
16 |
-
}
|
17 |
-
|
18 |
-
&--normal {
|
19 |
-
opacity: 0.9;
|
20 |
-
filter: alpha(opacity=90);
|
21 |
-
}
|
22 |
-
|
23 |
-
&--stroke {
|
24 |
-
background: transparent;
|
25 |
-
border-width: 1px;
|
26 |
-
border-style: solid;
|
27 |
-
border-color: transparent;
|
28 |
-
}
|
29 |
-
|
30 |
-
&--medium {
|
31 |
-
font-size: 1.2rem;
|
32 |
-
padding: 0.9em 1.2em;
|
33 |
-
}
|
34 |
-
|
35 |
-
&--large {
|
36 |
-
font-size: 1.5rem;
|
37 |
-
padding: 0.9em 1.6em;
|
38 |
-
}
|
39 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/public/_content-carousel.scss
DELETED
@@ -1,46 +0,0 @@
|
|
1 |
-
.carousel-slider__content {
|
2 |
-
|
3 |
-
.slide-content-inner {
|
4 |
-
padding: 0;
|
5 |
-
}
|
6 |
-
|
7 |
-
.slide-content {
|
8 |
-
display: flex;
|
9 |
-
flex-direction: column;
|
10 |
-
justify-content: center;
|
11 |
-
margin: 0 auto;
|
12 |
-
padding: 1rem;
|
13 |
-
max-width: 1140px;
|
14 |
-
min-height: 300px;
|
15 |
-
}
|
16 |
-
|
17 |
-
.heading,
|
18 |
-
.description {
|
19 |
-
&-title-wrapper {
|
20 |
-
display: inline-flex;
|
21 |
-
padding: 0;
|
22 |
-
}
|
23 |
-
|
24 |
-
&-title {
|
25 |
-
margin: 0;
|
26 |
-
padding: 0;
|
27 |
-
}
|
28 |
-
}
|
29 |
-
|
30 |
-
.buttons-wrapper {
|
31 |
-
|
32 |
-
&-one {
|
33 |
-
margin-right: 0.5rem;
|
34 |
-
}
|
35 |
-
|
36 |
-
&-two {
|
37 |
-
margin-left: 0.5rem;
|
38 |
-
}
|
39 |
-
|
40 |
-
}
|
41 |
-
|
42 |
-
img {
|
43 |
-
max-width: 100%;
|
44 |
-
width: auto !important;
|
45 |
-
}
|
46 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/public/_core.scss
DELETED
@@ -1,98 +0,0 @@
|
|
1 |
-
// Owl Carousel - Core
|
2 |
-
.carousel-slider {
|
3 |
-
display: none;
|
4 |
-
width: 100%;
|
5 |
-
-webkit-tap-highlight-color: transparent;
|
6 |
-
position: relative;
|
7 |
-
z-index: 1;
|
8 |
-
|
9 |
-
.owl-stage {
|
10 |
-
position: relative;
|
11 |
-
-ms-touch-action: pan-Y;
|
12 |
-
}
|
13 |
-
|
14 |
-
.owl-stage:after {
|
15 |
-
content: ".";
|
16 |
-
display: block;
|
17 |
-
clear: both;
|
18 |
-
visibility: hidden;
|
19 |
-
line-height: 0;
|
20 |
-
height: 0;
|
21 |
-
}
|
22 |
-
|
23 |
-
.owl-stage-outer {
|
24 |
-
position: relative;
|
25 |
-
overflow: hidden;
|
26 |
-
-webkit-transform: translate3d(0px, 0px, 0px);
|
27 |
-
}
|
28 |
-
|
29 |
-
.owl-item {
|
30 |
-
position: relative;
|
31 |
-
min-height: 1px;
|
32 |
-
float: left;
|
33 |
-
-webkit-backface-visibility: hidden;
|
34 |
-
-webkit-tap-highlight-color: transparent;
|
35 |
-
-webkit-touch-callout: none;
|
36 |
-
}
|
37 |
-
.owl-item img {
|
38 |
-
display: block;
|
39 |
-
width: 100%;
|
40 |
-
-webkit-transform-style: preserve-3d;
|
41 |
-
}
|
42 |
-
|
43 |
-
.owl-nav.disabled,
|
44 |
-
.owl-dots.disabled {
|
45 |
-
display: none;
|
46 |
-
}
|
47 |
-
|
48 |
-
.owl-nav .owl-prev,
|
49 |
-
.owl-nav .owl-next,
|
50 |
-
.owl-dot {
|
51 |
-
cursor: hand;
|
52 |
-
-webkit-user-select: none;
|
53 |
-
-moz-user-select: none;
|
54 |
-
-ms-user-select: none;
|
55 |
-
user-select: none;
|
56 |
-
}
|
57 |
-
|
58 |
-
&.owl-loaded {
|
59 |
-
display: block;
|
60 |
-
}
|
61 |
-
|
62 |
-
&.owl-loading {
|
63 |
-
opacity: 0;
|
64 |
-
display: block;
|
65 |
-
}
|
66 |
-
|
67 |
-
&.owl-hidden {
|
68 |
-
opacity: 0;
|
69 |
-
}
|
70 |
-
|
71 |
-
&.owl-refresh .owl-item {
|
72 |
-
visibility: hidden;
|
73 |
-
}
|
74 |
-
|
75 |
-
&.owl-drag .owl-item {
|
76 |
-
-webkit-user-select: none;
|
77 |
-
-moz-user-select: none;
|
78 |
-
-ms-user-select: none;
|
79 |
-
user-select: none;
|
80 |
-
}
|
81 |
-
|
82 |
-
&.owl-grab {
|
83 |
-
cursor: grab;
|
84 |
-
}
|
85 |
-
|
86 |
-
&.owl-rtl {
|
87 |
-
direction: rtl;
|
88 |
-
}
|
89 |
-
|
90 |
-
&.owl-rtl .owl-item {
|
91 |
-
float: right;
|
92 |
-
}
|
93 |
-
}
|
94 |
-
|
95 |
-
// No Js
|
96 |
-
.no-js .carousel-slider {
|
97 |
-
display: block;
|
98 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/public/_image-carousel.scss
DELETED
@@ -1,34 +0,0 @@
|
|
1 |
-
.carousel-slider {
|
2 |
-
// Styling item
|
3 |
-
.carousel-slider__item {
|
4 |
-
position: relative;
|
5 |
-
|
6 |
-
img {
|
7 |
-
display: block;
|
8 |
-
margin-left: auto;
|
9 |
-
margin-right: auto;
|
10 |
-
max-width: 100%;
|
11 |
-
height: auto;
|
12 |
-
}
|
13 |
-
}
|
14 |
-
.carousel-slider__caption {
|
15 |
-
position: relative;
|
16 |
-
|
17 |
-
.title {
|
18 |
-
overflow: hidden;
|
19 |
-
text-overflow: ellipsis;
|
20 |
-
color: #474747;
|
21 |
-
font-size: 16px;
|
22 |
-
font-weight: 500;
|
23 |
-
margin: 10px 0 0;
|
24 |
-
text-align: center;
|
25 |
-
}
|
26 |
-
|
27 |
-
.caption {
|
28 |
-
font-size: 14px;
|
29 |
-
font-weight: 300;
|
30 |
-
margin: 10px 0 0;
|
31 |
-
text-align: center;
|
32 |
-
}
|
33 |
-
}
|
34 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/public/_lazyload.scss
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
// Owl Carousel - Lazy Load Plugin
|
2 |
-
.carousel-slider {
|
3 |
-
.owl-item {
|
4 |
-
.owl-lazy {
|
5 |
-
// opacity: 0;
|
6 |
-
// transition: opacity 400ms ease;
|
7 |
-
}
|
8 |
-
|
9 |
-
img.owl-lazy {
|
10 |
-
// transform-style: preserve-3d;
|
11 |
-
background: url($ajax-loader-url) no-repeat center;
|
12 |
-
min-width: 32px;
|
13 |
-
min-height: 32px;
|
14 |
-
}
|
15 |
-
}
|
16 |
-
}
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/public/_magnific-popup.scss
DELETED
@@ -1,610 +0,0 @@
|
|
1 |
-
/* Magnific Popup CSS */
|
2 |
-
|
3 |
-
////////////////////////
|
4 |
-
// Settings //
|
5 |
-
////////////////////////
|
6 |
-
|
7 |
-
// overlay
|
8 |
-
$mfp-overlay-color: #0b0b0b !default; // Color of overlay screen
|
9 |
-
$mfp-overlay-opacity: 0.8 !default; // Opacity of overlay screen
|
10 |
-
$mfp-shadow: 0 0 8px rgba(0, 0, 0, 0.6) !default; // Shadow on image or iframe
|
11 |
-
|
12 |
-
// spacing
|
13 |
-
$mfp-popup-padding-left: 8px !default; // Padding from left and from right side
|
14 |
-
$mfp-popup-padding-left-mobile: 6px !default; // Same as above, but is applied when width of window is less than 800px
|
15 |
-
|
16 |
-
$mfp-z-index-base: 1040 !default; // Base z-index of popup
|
17 |
-
|
18 |
-
// controls
|
19 |
-
$mfp-include-arrows: true !default; // Include styles for nav arrows
|
20 |
-
$mfp-controls-opacity: 0.65 !default; // Opacity of controls
|
21 |
-
$mfp-controls-color: #FFF !default; // Color of controls
|
22 |
-
$mfp-controls-border-color: #3F3F3F !default; // Border color of controls
|
23 |
-
$mfp-inner-close-icon-color: #333 !default; // Color of close button when inside
|
24 |
-
$mfp-controls-text-color: #CCC !default; // Color of preloader and "1 of X" indicator
|
25 |
-
$mfp-controls-text-color-hover: #FFF !default; // Hover color of preloader and "1 of X" indicator
|
26 |
-
|
27 |
-
// Iframe-type options
|
28 |
-
$mfp-include-iframe-type: true !default; // Enable Iframe-type popups
|
29 |
-
$mfp-iframe-padding-top: 40px !default; // Iframe padding top
|
30 |
-
$mfp-iframe-background: #000 !default; // Background color of iframes
|
31 |
-
$mfp-iframe-max-width: 900px !default; // Maximum width of iframes
|
32 |
-
$mfp-iframe-ratio: 9/16 !default; // Ratio of iframe (9/16 = widescreen, 3/4 = standard, etc.)
|
33 |
-
|
34 |
-
// Image-type options
|
35 |
-
$mfp-include-image-type: true !default; // Enable Image-type popups
|
36 |
-
$mfp-image-background: #444 !default;
|
37 |
-
$mfp-image-padding-top: 40px !default; // Image padding top
|
38 |
-
$mfp-image-padding-bottom: 40px !default; // Image padding bottom
|
39 |
-
$mfp-include-mobile-layout-for-image: true !default; // Removes paddings from top and bottom
|
40 |
-
|
41 |
-
// Image caption options
|
42 |
-
$mfp-caption-title-color: #F3F3F3 !default; // Caption title color
|
43 |
-
$mfp-caption-subtitle-color: #BDBDBD !default; // Caption subtitle color
|
44 |
-
|
45 |
-
// A11y
|
46 |
-
$mfp-use-visuallyhidden: false !default; // Hide content from browsers, but make it available for screen readers
|
47 |
-
|
48 |
-
|
49 |
-
////////////////////////
|
50 |
-
//
|
51 |
-
// Contents:
|
52 |
-
//
|
53 |
-
// 1. General styles
|
54 |
-
// - Transluscent overlay
|
55 |
-
// - Containers, wrappers
|
56 |
-
// - Cursors
|
57 |
-
// - Helper classes
|
58 |
-
// 2. Appearance
|
59 |
-
// - Preloader & text that displays error messages
|
60 |
-
// - CSS reset for buttons
|
61 |
-
// - Close icon
|
62 |
-
// - "1 of X" counter
|
63 |
-
// - Navigation (left/right) arrows
|
64 |
-
// - Iframe content type styles
|
65 |
-
// - Image content type styles
|
66 |
-
// - Media query where size of arrows is reduced
|
67 |
-
// - IE7 support
|
68 |
-
//
|
69 |
-
////////////////////////
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
////////////////////////
|
74 |
-
// 1. General styles
|
75 |
-
////////////////////////
|
76 |
-
|
77 |
-
// Transluscent overlay
|
78 |
-
.mfp-bg {
|
79 |
-
top: 0;
|
80 |
-
left: 0;
|
81 |
-
width: 100%;
|
82 |
-
height: 100%;
|
83 |
-
z-index: $mfp-z-index-base + 2;
|
84 |
-
overflow: hidden;
|
85 |
-
position: fixed;
|
86 |
-
|
87 |
-
background: $mfp-overlay-color;
|
88 |
-
opacity: $mfp-overlay-opacity;
|
89 |
-
}
|
90 |
-
|
91 |
-
// Wrapper for popup
|
92 |
-
.mfp-wrap {
|
93 |
-
top: 0;
|
94 |
-
left: 0;
|
95 |
-
width: 100%;
|
96 |
-
height: 100%;
|
97 |
-
z-index: $mfp-z-index-base + 3;
|
98 |
-
position: fixed;
|
99 |
-
outline: none !important;
|
100 |
-
-webkit-backface-visibility: hidden; // fixes webkit bug that can cause "false" scrollbar
|
101 |
-
}
|
102 |
-
|
103 |
-
// Root container
|
104 |
-
.mfp-container {
|
105 |
-
text-align: center;
|
106 |
-
position: absolute;
|
107 |
-
width: 100%;
|
108 |
-
height: 100%;
|
109 |
-
left: 0;
|
110 |
-
top: 0;
|
111 |
-
padding: 0 $mfp-popup-padding-left;
|
112 |
-
box-sizing: border-box;
|
113 |
-
}
|
114 |
-
|
115 |
-
// Vertical centerer helper
|
116 |
-
.mfp-container {
|
117 |
-
&:before {
|
118 |
-
content: '';
|
119 |
-
display: inline-block;
|
120 |
-
height: 100%;
|
121 |
-
vertical-align: middle;
|
122 |
-
}
|
123 |
-
}
|
124 |
-
|
125 |
-
// Remove vertical centering when popup has class `mfp-align-top`
|
126 |
-
.mfp-align-top {
|
127 |
-
.mfp-container {
|
128 |
-
&:before {
|
129 |
-
display: none;
|
130 |
-
}
|
131 |
-
}
|
132 |
-
}
|
133 |
-
|
134 |
-
// Popup content holder
|
135 |
-
.mfp-content {
|
136 |
-
position: relative;
|
137 |
-
display: inline-block;
|
138 |
-
vertical-align: middle;
|
139 |
-
margin: 0 auto;
|
140 |
-
text-align: left;
|
141 |
-
z-index: $mfp-z-index-base + 5;
|
142 |
-
}
|
143 |
-
.mfp-inline-holder,
|
144 |
-
.mfp-ajax-holder {
|
145 |
-
.mfp-content {
|
146 |
-
width: 100%;
|
147 |
-
cursor: auto;
|
148 |
-
}
|
149 |
-
}
|
150 |
-
|
151 |
-
// Cursors
|
152 |
-
.mfp-ajax-cur {
|
153 |
-
cursor: progress;
|
154 |
-
}
|
155 |
-
.mfp-zoom-out-cur {
|
156 |
-
&, .mfp-image-holder .mfp-close {
|
157 |
-
cursor: -moz-zoom-out;
|
158 |
-
cursor: -webkit-zoom-out;
|
159 |
-
cursor: zoom-out;
|
160 |
-
}
|
161 |
-
}
|
162 |
-
.mfp-zoom {
|
163 |
-
cursor: pointer;
|
164 |
-
cursor: -webkit-zoom-in;
|
165 |
-
cursor: -moz-zoom-in;
|
166 |
-
cursor: zoom-in;
|
167 |
-
}
|
168 |
-
.mfp-auto-cursor {
|
169 |
-
.mfp-content {
|
170 |
-
cursor: auto;
|
171 |
-
}
|
172 |
-
}
|
173 |
-
|
174 |
-
.mfp-close,
|
175 |
-
.mfp-arrow,
|
176 |
-
.mfp-preloader,
|
177 |
-
.mfp-counter {
|
178 |
-
-webkit-user-select:none;
|
179 |
-
-moz-user-select: none;
|
180 |
-
user-select: none;
|
181 |
-
}
|
182 |
-
|
183 |
-
// Hide the image during the loading
|
184 |
-
.mfp-loading {
|
185 |
-
&.mfp-figure {
|
186 |
-
display: none;
|
187 |
-
}
|
188 |
-
}
|
189 |
-
|
190 |
-
// Helper class that hides stuff
|
191 |
-
@if $mfp-use-visuallyhidden {
|
192 |
-
// From HTML5 Boilerplate https://github.com/h5bp/html5-boilerplate/blob/v4.2.0/doc/css.md#visuallyhidden
|
193 |
-
.mfp-hide {
|
194 |
-
border: 0 !important;
|
195 |
-
clip: rect(0 0 0 0) !important;
|
196 |
-
height: 1px !important;
|
197 |
-
margin: -1px !important;
|
198 |
-
overflow: hidden !important;
|
199 |
-
padding: 0 !important;
|
200 |
-
position: absolute !important;
|
201 |
-
width: 1px !important;
|
202 |
-
}
|
203 |
-
} @else {
|
204 |
-
.mfp-hide {
|
205 |
-
display: none !important;
|
206 |
-
}
|
207 |
-
}
|
208 |
-
|
209 |
-
|
210 |
-
////////////////////////
|
211 |
-
// 2. Appearance
|
212 |
-
////////////////////////
|
213 |
-
|
214 |
-
// Preloader and text that displays error messages
|
215 |
-
.mfp-preloader {
|
216 |
-
color: $mfp-controls-text-color;
|
217 |
-
position: absolute;
|
218 |
-
top: 50%;
|
219 |
-
width: auto;
|
220 |
-
text-align: center;
|
221 |
-
margin-top: -0.8em;
|
222 |
-
left: 8px;
|
223 |
-
right: 8px;
|
224 |
-
z-index: $mfp-z-index-base + 4;
|
225 |
-
a {
|
226 |
-
color: $mfp-controls-text-color;
|
227 |
-
&:hover {
|
228 |
-
color: $mfp-controls-text-color-hover;
|
229 |
-
}
|
230 |
-
}
|
231 |
-
}
|
232 |
-
|
233 |
-
// Hide preloader when content successfully loaded
|
234 |
-
.mfp-s-ready {
|
235 |
-
.mfp-preloader {
|
236 |
-
display: none;
|
237 |
-
}
|
238 |
-
}
|
239 |
-
|
240 |
-
// Hide content when it was not loaded
|
241 |
-
.mfp-s-error {
|
242 |
-
.mfp-content {
|
243 |
-
display: none;
|
244 |
-
}
|
245 |
-
}
|
246 |
-
|
247 |
-
// CSS-reset for buttons
|
248 |
-
button {
|
249 |
-
&.mfp-close,
|
250 |
-
&.mfp-arrow {
|
251 |
-
overflow: visible;
|
252 |
-
cursor: pointer;
|
253 |
-
background: transparent;
|
254 |
-
border: 0;
|
255 |
-
-webkit-appearance: none;
|
256 |
-
display: block;
|
257 |
-
outline: none;
|
258 |
-
padding: 0;
|
259 |
-
z-index: $mfp-z-index-base + 6;
|
260 |
-
box-shadow: none;
|
261 |
-
touch-action: manipulation;
|
262 |
-
}
|
263 |
-
&::-moz-focus-inner {
|
264 |
-
padding: 0;
|
265 |
-
border: 0
|
266 |
-
}
|
267 |
-
}
|
268 |
-
|
269 |
-
|
270 |
-
// Close icon
|
271 |
-
.mfp-close {
|
272 |
-
width: 44px;
|
273 |
-
height: 44px;
|
274 |
-
line-height: 44px;
|
275 |
-
|
276 |
-
position: absolute;
|
277 |
-
right: 0;
|
278 |
-
top: 0;
|
279 |
-
text-decoration: none;
|
280 |
-
text-align: center;
|
281 |
-
opacity: $mfp-controls-opacity;
|
282 |
-
padding: 0 0 18px 10px;
|
283 |
-
color: $mfp-controls-color;
|
284 |
-
|
285 |
-
font-style: normal;
|
286 |
-
font-size: 28px;
|
287 |
-
font-family: Arial, Baskerville, monospace;
|
288 |
-
|
289 |
-
&:hover,
|
290 |
-
&:focus {
|
291 |
-
opacity: 1;
|
292 |
-
}
|
293 |
-
|
294 |
-
&:active {
|
295 |
-
top: 1px;
|
296 |
-
}
|
297 |
-
}
|
298 |
-
.mfp-close-btn-in {
|
299 |
-
.mfp-close {
|
300 |
-
color: $mfp-inner-close-icon-color;
|
301 |
-
}
|
302 |
-
}
|
303 |
-
.mfp-image-holder,
|
304 |
-
.mfp-iframe-holder {
|
305 |
-
.mfp-close {
|
306 |
-
color: $mfp-controls-color;
|
307 |
-
right: -6px;
|
308 |
-
text-align: right;
|
309 |
-
padding-right: 6px;
|
310 |
-
width: 100%;
|
311 |
-
}
|
312 |
-
}
|
313 |
-
|
314 |
-
// "1 of X" counter
|
315 |
-
.mfp-counter {
|
316 |
-
position: absolute;
|
317 |
-
top: 0;
|
318 |
-
right: 0;
|
319 |
-
color: $mfp-controls-text-color;
|
320 |
-
font-size: 12px;
|
321 |
-
line-height: 18px;
|
322 |
-
white-space: nowrap;
|
323 |
-
}
|
324 |
-
|
325 |
-
// Navigation arrows
|
326 |
-
@if $mfp-include-arrows {
|
327 |
-
.mfp-arrow {
|
328 |
-
position: absolute;
|
329 |
-
opacity: $mfp-controls-opacity;
|
330 |
-
margin: 0;
|
331 |
-
top: 50%;
|
332 |
-
margin-top: -55px;
|
333 |
-
padding: 0;
|
334 |
-
width: 90px;
|
335 |
-
height: 110px;
|
336 |
-
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
337 |
-
&:active {
|
338 |
-
margin-top: -54px;
|
339 |
-
}
|
340 |
-
&:hover,
|
341 |
-
&:focus {
|
342 |
-
opacity: 1;
|
343 |
-
}
|
344 |
-
&:before,
|
345 |
-
&:after {
|
346 |
-
content: '';
|
347 |
-
display: block;
|
348 |
-
width: 0;
|
349 |
-
height: 0;
|
350 |
-
position: absolute;
|
351 |
-
left: 0;
|
352 |
-
top: 0;
|
353 |
-
margin-top: 35px;
|
354 |
-
margin-left: 35px;
|
355 |
-
border: medium inset transparent;
|
356 |
-
}
|
357 |
-
|
358 |
-
&:after {
|
359 |
-
|
360 |
-
border-top-width: 13px;
|
361 |
-
border-bottom-width: 13px;
|
362 |
-
top:8px;
|
363 |
-
}
|
364 |
-
|
365 |
-
&:before {
|
366 |
-
border-top-width: 21px;
|
367 |
-
border-bottom-width: 21px;
|
368 |
-
opacity: 0.7;
|
369 |
-
}
|
370 |
-
|
371 |
-
}
|
372 |
-
|
373 |
-
.mfp-arrow-left {
|
374 |
-
left: 0;
|
375 |
-
&:after {
|
376 |
-
border-right: 17px solid $mfp-controls-color;
|
377 |
-
margin-left: 31px;
|
378 |
-
}
|
379 |
-
&:before {
|
380 |
-
margin-left: 25px;
|
381 |
-
border-right: 27px solid $mfp-controls-border-color;
|
382 |
-
}
|
383 |
-
}
|
384 |
-
|
385 |
-
.mfp-arrow-right {
|
386 |
-
right: 0;
|
387 |
-
&:after {
|
388 |
-
border-left: 17px solid $mfp-controls-color;
|
389 |
-
margin-left: 39px
|
390 |
-
}
|
391 |
-
&:before {
|
392 |
-
border-left: 27px solid $mfp-controls-border-color;
|
393 |
-
}
|
394 |
-
}
|
395 |
-
}
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
// Iframe content type
|
400 |
-
@if $mfp-include-iframe-type {
|
401 |
-
.mfp-iframe-holder {
|
402 |
-
padding-top: $mfp-iframe-padding-top;
|
403 |
-
padding-bottom: $mfp-iframe-padding-top;
|
404 |
-
.mfp-content {
|
405 |
-
line-height: 0;
|
406 |
-
width: 100%;
|
407 |
-
max-width: $mfp-iframe-max-width;
|
408 |
-
}
|
409 |
-
.mfp-close {
|
410 |
-
top: -40px;
|
411 |
-
}
|
412 |
-
}
|
413 |
-
.mfp-iframe-scaler {
|
414 |
-
width: 100%;
|
415 |
-
height: 0;
|
416 |
-
overflow: hidden;
|
417 |
-
padding-top: $mfp-iframe-ratio * 100%;
|
418 |
-
iframe {
|
419 |
-
position: absolute;
|
420 |
-
display: block;
|
421 |
-
top: 0;
|
422 |
-
left: 0;
|
423 |
-
width: 100%;
|
424 |
-
height: 100%;
|
425 |
-
box-shadow: $mfp-shadow;
|
426 |
-
background: $mfp-iframe-background;
|
427 |
-
}
|
428 |
-
}
|
429 |
-
}
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
// Image content type
|
434 |
-
@if $mfp-include-image-type {
|
435 |
-
|
436 |
-
/* Main image in popup */
|
437 |
-
img {
|
438 |
-
&.mfp-img {
|
439 |
-
width: auto;
|
440 |
-
max-width: 100%;
|
441 |
-
height: auto;
|
442 |
-
display: block;
|
443 |
-
line-height: 0;
|
444 |
-
box-sizing: border-box;
|
445 |
-
padding: $mfp-image-padding-top 0 $mfp-image-padding-bottom;
|
446 |
-
margin: 0 auto;
|
447 |
-
}
|
448 |
-
}
|
449 |
-
|
450 |
-
/* The shadow behind the image */
|
451 |
-
.mfp-figure {
|
452 |
-
line-height: 0;
|
453 |
-
&:after {
|
454 |
-
content: '';
|
455 |
-
position: absolute;
|
456 |
-
left: 0;
|
457 |
-
top: $mfp-image-padding-top;
|
458 |
-
bottom: $mfp-image-padding-bottom;
|
459 |
-
display: block;
|
460 |
-
right: 0;
|
461 |
-
width: auto;
|
462 |
-
height: auto;
|
463 |
-
z-index: -1;
|
464 |
-
box-shadow: $mfp-shadow;
|
465 |
-
background: $mfp-image-background;
|
466 |
-
}
|
467 |
-
small {
|
468 |
-
color: $mfp-caption-subtitle-color;
|
469 |
-
display: block;
|
470 |
-
font-size: 12px;
|
471 |
-
line-height: 14px;
|
472 |
-
}
|
473 |
-
figure {
|
474 |
-
margin: 0;
|
475 |
-
}
|
476 |
-
}
|
477 |
-
.mfp-bottom-bar {
|
478 |
-
margin-top: -$mfp-image-padding-bottom + 4;
|
479 |
-
position: absolute;
|
480 |
-
top: 100%;
|
481 |
-
left: 0;
|
482 |
-
width: 100%;
|
483 |
-
cursor: auto;
|
484 |
-
}
|
485 |
-
.mfp-title {
|
486 |
-
text-align: left;
|
487 |
-
line-height: 18px;
|
488 |
-
color: $mfp-caption-title-color;
|
489 |
-
word-wrap: break-word;
|
490 |
-
padding-right: 36px; // leave some space for counter at right side
|
491 |
-
}
|
492 |
-
|
493 |
-
.mfp-image-holder {
|
494 |
-
.mfp-content {
|
495 |
-
max-width: 100%;
|
496 |
-
}
|
497 |
-
}
|
498 |
-
|
499 |
-
.mfp-gallery {
|
500 |
-
.mfp-image-holder {
|
501 |
-
.mfp-figure {
|
502 |
-
cursor: pointer;
|
503 |
-
}
|
504 |
-
}
|
505 |
-
}
|
506 |
-
|
507 |
-
|
508 |
-
@if $mfp-include-mobile-layout-for-image {
|
509 |
-
@media screen and (max-width: 800px) and (orientation:landscape), screen and (max-height: 300px) {
|
510 |
-
/**
|
511 |
-
* Remove all paddings around the image on small screen
|
512 |
-
*/
|
513 |
-
.mfp-img-mobile {
|
514 |
-
.mfp-image-holder {
|
515 |
-
padding-left: 0;
|
516 |
-
padding-right: 0;
|
517 |
-
}
|
518 |
-
img {
|
519 |
-
&.mfp-img {
|
520 |
-
padding: 0;
|
521 |
-
}
|
522 |
-
}
|
523 |
-
.mfp-figure {
|
524 |
-
// The shadow behind the image
|
525 |
-
&:after {
|
526 |
-
top: 0;
|
527 |
-
bottom: 0;
|
528 |
-
}
|
529 |
-
small {
|
530 |
-
display: inline;
|
531 |
-
margin-left: 5px;
|
532 |
-
}
|
533 |
-
}
|
534 |
-
.mfp-bottom-bar {
|
535 |
-
background: rgba(0,0,0,0.6);
|
536 |
-
bottom: 0;
|
537 |
-
margin: 0;
|
538 |
-
top: auto;
|
539 |
-
padding: 3px 5px;
|
540 |
-
position: fixed;
|
541 |
-
box-sizing: border-box;
|
542 |
-
&:empty {
|
543 |
-
padding: 0;
|
544 |
-
}
|
545 |
-
}
|
546 |
-
.mfp-counter {
|
547 |
-
right: 5px;
|
548 |
-
top: 3px;
|
549 |
-
}
|
550 |
-
.mfp-close {
|
551 |
-
top: 0;
|
552 |
-
right: 0;
|
553 |
-
width: 35px;
|
554 |
-
height: 35px;
|
555 |
-
line-height: 35px;
|
556 |
-
background: rgba(0, 0, 0, 0.6);
|
557 |
-
position: fixed;
|
558 |
-
text-align: center;
|
559 |
-
padding: 0;
|
560 |
-
}
|
561 |
-
}
|
562 |
-
}
|
563 |
-
}
|
564 |
-
}
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
// Scale navigation arrows and reduce padding from sides
|
569 |
-
@media all and (max-width: 900px) {
|
570 |
-
.mfp-arrow {
|
571 |
-
-webkit-transform: scale(0.75);
|
572 |
-
transform: scale(0.75);
|
573 |
-
}
|
574 |
-
.mfp-arrow-left {
|
575 |
-
-webkit-transform-origin: 0;
|
576 |
-
transform-origin: 0;
|
577 |
-
}
|
578 |
-
.mfp-arrow-right {
|
579 |
-
-webkit-transform-origin: 100%;
|
580 |
-
transform-origin: 100%;
|
581 |
-
}
|
582 |
-
.mfp-container {
|
583 |
-
padding-left: $mfp-popup-padding-left-mobile;
|
584 |
-
padding-right: $mfp-popup-padding-left-mobile;
|
585 |
-
}
|
586 |
-
}
|
587 |
-
|
588 |
-
|
589 |
-
.mfp-with-zoom .mfp-container,
|
590 |
-
.mfp-with-zoom.mfp-bg {
|
591 |
-
opacity: 0;
|
592 |
-
-webkit-backface-visibility: hidden;
|
593 |
-
/* ideally, transition speed should match zoom duration */
|
594 |
-
-webkit-transition: all 0.3s ease-out;
|
595 |
-
-moz-transition: all 0.3s ease-out;
|
596 |
-
-o-transition: all 0.3s ease-out;
|
597 |
-
transition: all 0.3s ease-out;
|
598 |
-
}
|
599 |
-
|
600 |
-
.mfp-with-zoom.mfp-ready .mfp-container {
|
601 |
-
opacity: 1;
|
602 |
-
}
|
603 |
-
.mfp-with-zoom.mfp-ready.mfp-bg {
|
604 |
-
opacity: 0.8;
|
605 |
-
}
|
606 |
-
|
607 |
-
.mfp-with-zoom.mfp-removing .mfp-container,
|
608 |
-
.mfp-with-zoom.mfp-removing.mfp-bg {
|
609 |
-
opacity: 0;
|
610 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/public/_post-carousel.scss
DELETED
@@ -1,120 +0,0 @@
|
|
1 |
-
.carousel-slider {
|
2 |
-
&__post {
|
3 |
-
border: 1px solid #f1f1f1;
|
4 |
-
float: left;
|
5 |
-
height: 450px;
|
6 |
-
width: 100%;
|
7 |
-
position: relative;
|
8 |
-
display: block;
|
9 |
-
overflow: hidden;
|
10 |
-
|
11 |
-
&-content {
|
12 |
-
bottom: 0;
|
13 |
-
position: absolute;
|
14 |
-
top: 0;
|
15 |
-
transition: all 0.2s ease 0s;
|
16 |
-
width: 100%;
|
17 |
-
display: block;
|
18 |
-
}
|
19 |
-
|
20 |
-
&-image {
|
21 |
-
border-bottom: 1px solid #f1f1f1;
|
22 |
-
display: block;
|
23 |
-
height: 207px;
|
24 |
-
line-height: 0;
|
25 |
-
margin: 0 auto;
|
26 |
-
overflow: hidden;
|
27 |
-
text-align: center;
|
28 |
-
width: 100%;
|
29 |
-
background-color: #f1f1f1;
|
30 |
-
background-size: cover;
|
31 |
-
background-position: center center;
|
32 |
-
}
|
33 |
-
|
34 |
-
&-title {
|
35 |
-
display: block;
|
36 |
-
margin: 10px 15px 0;
|
37 |
-
max-height: 70px;
|
38 |
-
|
39 |
-
h1 {
|
40 |
-
color: #4a4a4a;
|
41 |
-
font: bold 18px/1.4em Arial,sans-serif;
|
42 |
-
margin-bottom: 0;
|
43 |
-
margin-top: 0;
|
44 |
-
}
|
45 |
-
}
|
46 |
-
|
47 |
-
&-excerpt {
|
48 |
-
color: #7d7d7d;
|
49 |
-
font-size: 14px;
|
50 |
-
line-height: 1.5em;
|
51 |
-
padding: 10px 15px 5px;
|
52 |
-
text-align: left;
|
53 |
-
width: 100%;
|
54 |
-
position: absolute;
|
55 |
-
top: 285px;
|
56 |
-
|
57 |
-
&-overlay {
|
58 |
-
background: transparent none repeat scroll 0 0;
|
59 |
-
display: block;
|
60 |
-
height: 20px;
|
61 |
-
width: 100%;
|
62 |
-
}
|
63 |
-
}
|
64 |
-
|
65 |
-
&-meta {
|
66 |
-
bottom: 10px;
|
67 |
-
color: #8e8e8e;
|
68 |
-
font-size: 12px;
|
69 |
-
left: 0;
|
70 |
-
padding: 0 15px;
|
71 |
-
position: absolute;
|
72 |
-
width: 100%;
|
73 |
-
display: block;
|
74 |
-
}
|
75 |
-
|
76 |
-
&-publication-meta {
|
77 |
-
background-color: white;
|
78 |
-
display: block;
|
79 |
-
padding-top: 15px;
|
80 |
-
width: 100%;
|
81 |
-
overflow: hidden;
|
82 |
-
text-overflow: ellipsis;
|
83 |
-
white-space: nowrap;
|
84 |
-
}
|
85 |
-
|
86 |
-
&-details-info {
|
87 |
-
display: inline-block;
|
88 |
-
}
|
89 |
-
&-author {
|
90 |
-
display: block;
|
91 |
-
font-style: normal;
|
92 |
-
line-height: 1em;
|
93 |
-
overflow: hidden;
|
94 |
-
text-overflow: ellipsis;
|
95 |
-
white-space: nowrap;
|
96 |
-
margin-bottom: 5px;
|
97 |
-
|
98 |
-
&-link {
|
99 |
-
color: #8e8e8e;
|
100 |
-
display: inline-block;
|
101 |
-
max-width: 175px;
|
102 |
-
overflow: hidden;
|
103 |
-
text-overflow: ellipsis;
|
104 |
-
vertical-align: middle;
|
105 |
-
white-space: nowrap;
|
106 |
-
}
|
107 |
-
}
|
108 |
-
|
109 |
-
&-category {
|
110 |
-
color: #4cc1be;
|
111 |
-
text-transform: uppercase;
|
112 |
-
position: absolute;
|
113 |
-
right: 15px;
|
114 |
-
top: 50px;
|
115 |
-
z-index: 1;
|
116 |
-
|
117 |
-
&-link {}
|
118 |
-
}
|
119 |
-
}
|
120 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/public/_post-carousel2.scss
DELETED
@@ -1,63 +0,0 @@
|
|
1 |
-
.carousel-slider {
|
2 |
-
.blog-grid-inside {
|
3 |
-
display: flex;
|
4 |
-
flex-direction: column;
|
5 |
-
height: 100%;
|
6 |
-
border-radius: 3px;
|
7 |
-
border: 1px solid rgba(#000, 0.1);
|
8 |
-
|
9 |
-
.post-thumbnail {
|
10 |
-
margin: 0;
|
11 |
-
padding: 0;
|
12 |
-
|
13 |
-
img {
|
14 |
-
width: 100%;
|
15 |
-
height: auto;
|
16 |
-
}
|
17 |
-
}
|
18 |
-
.entry-header {
|
19 |
-
margin: 1rem;
|
20 |
-
padding: 0;
|
21 |
-
border: none;
|
22 |
-
}
|
23 |
-
.cat-links {
|
24 |
-
display: block;
|
25 |
-
margin-top: 0;
|
26 |
-
margin-bottom: .5rem;
|
27 |
-
line-height: 1.25;
|
28 |
-
}
|
29 |
-
.entry-title {
|
30 |
-
margin: 0;
|
31 |
-
padding: 0;
|
32 |
-
font-size: 1.25rem;
|
33 |
-
overflow-wrap: break-word;
|
34 |
-
}
|
35 |
-
.entry-summary {
|
36 |
-
margin: 0 1rem 1rem;
|
37 |
-
overflow-wrap: break-word;
|
38 |
-
}
|
39 |
-
.tags-links {
|
40 |
-
margin: 0 1rem 1rem;
|
41 |
-
}
|
42 |
-
.entry-footer {
|
43 |
-
margin: 0 1em 1.25rem;
|
44 |
-
overflow: hidden;
|
45 |
-
}
|
46 |
-
.byline,
|
47 |
-
.posted-on {
|
48 |
-
float: left;
|
49 |
-
font-size: .875rem;
|
50 |
-
line-height: 1.33;
|
51 |
-
}
|
52 |
-
.vcard img {
|
53 |
-
display: inline-block;
|
54 |
-
width: auto;
|
55 |
-
}
|
56 |
-
.posted-on {
|
57 |
-
float: right;
|
58 |
-
}
|
59 |
-
.published:not(.updated) {
|
60 |
-
display: none;
|
61 |
-
}
|
62 |
-
}
|
63 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/public/_product-carousel.scss
DELETED
@@ -1,180 +0,0 @@
|
|
1 |
-
$text-color: #333333;
|
2 |
-
$btn-color: #f1f1f1;
|
3 |
-
$btn-background: #96588a;
|
4 |
-
|
5 |
-
.carousel-slider {
|
6 |
-
|
7 |
-
&__product {
|
8 |
-
position: relative;
|
9 |
-
text-align: center;
|
10 |
-
border: 1px solid #f1f1f1;
|
11 |
-
|
12 |
-
.woocommerce-LoopProduct-link {
|
13 |
-
display: block;
|
14 |
-
overflow: hidden;
|
15 |
-
margin: 0 0 .5em;
|
16 |
-
}
|
17 |
-
|
18 |
-
.onsale {
|
19 |
-
border: 0 none;
|
20 |
-
line-height: 1;
|
21 |
-
margin: 0;
|
22 |
-
padding: 15px 5px;
|
23 |
-
color: $btn-color;
|
24 |
-
background-color: $btn-background;
|
25 |
-
position: absolute;
|
26 |
-
left: 8px;
|
27 |
-
top: 8px;
|
28 |
-
border-radius: 50%;
|
29 |
-
}
|
30 |
-
|
31 |
-
h3 {
|
32 |
-
padding: .5em 1em;
|
33 |
-
text-align: left;
|
34 |
-
margin: 0;
|
35 |
-
font-size: 1em;
|
36 |
-
color: $text-color;
|
37 |
-
}
|
38 |
-
|
39 |
-
a {
|
40 |
-
text-decoration: none;
|
41 |
-
box-shadow: none;
|
42 |
-
|
43 |
-
img {
|
44 |
-
width: 100%;
|
45 |
-
height: auto;
|
46 |
-
display: block;
|
47 |
-
box-shadow: none;
|
48 |
-
}
|
49 |
-
}
|
50 |
-
|
51 |
-
strong {
|
52 |
-
display: block;
|
53 |
-
}
|
54 |
-
|
55 |
-
// Price
|
56 |
-
.price {
|
57 |
-
color: $text-color;
|
58 |
-
display: inline-block;
|
59 |
-
font-weight: normal;
|
60 |
-
margin: .5em 1em;
|
61 |
-
font-size: .857em;
|
62 |
-
float: left;
|
63 |
-
|
64 |
-
del {
|
65 |
-
color: inherit;
|
66 |
-
background-color: transparent;
|
67 |
-
opacity: 0.5;
|
68 |
-
display: inline-block;
|
69 |
-
}
|
70 |
-
|
71 |
-
ins {
|
72 |
-
color: inherit;
|
73 |
-
background-color: transparent;
|
74 |
-
font-weight: bold;
|
75 |
-
}
|
76 |
-
}
|
77 |
-
|
78 |
-
// Star ratings
|
79 |
-
.star-rating {
|
80 |
-
color: $btn-background;
|
81 |
-
display: inline-block;
|
82 |
-
margin: .5em 1em;
|
83 |
-
float: right;
|
84 |
-
overflow: hidden;
|
85 |
-
position: relative;
|
86 |
-
height: 1em;
|
87 |
-
line-height: 1;
|
88 |
-
font-size: 1em;
|
89 |
-
width: 5.4em;
|
90 |
-
font-family: 'star';
|
91 |
-
|
92 |
-
&:before {
|
93 |
-
content: "\73\73\73\73\73";
|
94 |
-
float: left;
|
95 |
-
top: 0;
|
96 |
-
left: 0;
|
97 |
-
position: absolute;
|
98 |
-
}
|
99 |
-
|
100 |
-
span {
|
101 |
-
overflow: hidden;
|
102 |
-
float: left;
|
103 |
-
top: 0;
|
104 |
-
left: 0;
|
105 |
-
position: absolute;
|
106 |
-
padding-top: 1.5em;
|
107 |
-
}
|
108 |
-
|
109 |
-
span:before {
|
110 |
-
content: "\53\53\53\53\53";
|
111 |
-
top: 0;
|
112 |
-
position: absolute;
|
113 |
-
left: 0;
|
114 |
-
}
|
115 |
-
}
|
116 |
-
|
117 |
-
a.add_to_cart_button,
|
118 |
-
a.added_to_cart,
|
119 |
-
a.quick_view {
|
120 |
-
color: $btn-color;
|
121 |
-
background-color: $btn-background;
|
122 |
-
margin: 1em;
|
123 |
-
line-height: 1;
|
124 |
-
cursor: pointer;
|
125 |
-
position: relative;
|
126 |
-
text-decoration: none;
|
127 |
-
overflow: visible;
|
128 |
-
padding: .5em 1em;
|
129 |
-
font-weight: normal;
|
130 |
-
border-radius: 3px;
|
131 |
-
left: auto;
|
132 |
-
border: 0;
|
133 |
-
white-space: nowrap;
|
134 |
-
display: block;
|
135 |
-
background-image: none;
|
136 |
-
box-shadow: none;
|
137 |
-
-webkit-box-shadow: none;
|
138 |
-
text-shadow: none;
|
139 |
-
|
140 |
-
&:hover {
|
141 |
-
color: $btn-color;
|
142 |
-
background-color: $btn-background;
|
143 |
-
text-decoration: none;
|
144 |
-
background-image: none;
|
145 |
-
}
|
146 |
-
}
|
147 |
-
|
148 |
-
// Buttons
|
149 |
-
a.add_to_cart_button {
|
150 |
-
|
151 |
-
&.loading {
|
152 |
-
opacity: 0.25;
|
153 |
-
padding-right: 2.618em;
|
154 |
-
|
155 |
-
&:after {
|
156 |
-
font-family: "WooCommerce";
|
157 |
-
content: "\e01c";
|
158 |
-
vertical-align: top;
|
159 |
-
-webkit-font-smoothing: antialiased;
|
160 |
-
font-weight: normal;
|
161 |
-
position: absolute;
|
162 |
-
top: .618em;
|
163 |
-
right: 1em;
|
164 |
-
-webkit-animation: spin 2s linear infinite;
|
165 |
-
-moz-animation: spin 2s linear infinite;
|
166 |
-
animation: spin 2s linear infinite;
|
167 |
-
}
|
168 |
-
}
|
169 |
-
|
170 |
-
&.added {
|
171 |
-
&:after {
|
172 |
-
font-family: 'WooCommerce';
|
173 |
-
content: "\e017";
|
174 |
-
margin-left: .53em;
|
175 |
-
vertical-align: bottom;
|
176 |
-
}
|
177 |
-
}
|
178 |
-
}
|
179 |
-
}
|
180 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/public/_product_modal.scss
DELETED
@@ -1,197 +0,0 @@
|
|
1 |
-
.mfp-content {
|
2 |
-
|
3 |
-
.product {
|
4 |
-
background-color: #ffffff;
|
5 |
-
display: table;
|
6 |
-
margin: 0 auto;
|
7 |
-
padding: 15px;
|
8 |
-
|
9 |
-
.images {
|
10 |
-
display: inline-block;
|
11 |
-
float: left;
|
12 |
-
max-width: 600px;
|
13 |
-
|
14 |
-
img {
|
15 |
-
display: block;
|
16 |
-
}
|
17 |
-
}
|
18 |
-
|
19 |
-
.onsale {
|
20 |
-
left: 24px;
|
21 |
-
top: 24px;
|
22 |
-
position: absolute;
|
23 |
-
}
|
24 |
-
|
25 |
-
.summary {
|
26 |
-
display: inline-block;
|
27 |
-
margin-left: 15px;
|
28 |
-
width: 300px;
|
29 |
-
}
|
30 |
-
|
31 |
-
.product_title,
|
32 |
-
.description {
|
33 |
-
margin: 1em 0;
|
34 |
-
}
|
35 |
-
|
36 |
-
// Price
|
37 |
-
.price {
|
38 |
-
// color: $text-color;
|
39 |
-
display: inline-block;
|
40 |
-
font-weight: normal;
|
41 |
-
margin: .5em 1em;
|
42 |
-
font-size: .857em;
|
43 |
-
float: left;
|
44 |
-
|
45 |
-
del {
|
46 |
-
color: inherit;
|
47 |
-
background-color: transparent;
|
48 |
-
opacity: 0.5;
|
49 |
-
display: inline-block;
|
50 |
-
}
|
51 |
-
|
52 |
-
ins {
|
53 |
-
color: inherit;
|
54 |
-
background-color: transparent;
|
55 |
-
font-weight: bold;
|
56 |
-
}
|
57 |
-
}
|
58 |
-
|
59 |
-
// Star ratings
|
60 |
-
.star-rating {
|
61 |
-
// color: $btn-background;
|
62 |
-
display: inline-block;
|
63 |
-
margin: .5em 1em;
|
64 |
-
float: right;
|
65 |
-
overflow: hidden;
|
66 |
-
position: relative;
|
67 |
-
height: 1em;
|
68 |
-
line-height: 1;
|
69 |
-
font-size: 1em;
|
70 |
-
width: 5.4em;
|
71 |
-
font-family: 'star';
|
72 |
-
|
73 |
-
&:before {
|
74 |
-
content: "\73\73\73\73\73";
|
75 |
-
float: left;
|
76 |
-
top: 0;
|
77 |
-
left: 0;
|
78 |
-
position: absolute;
|
79 |
-
}
|
80 |
-
|
81 |
-
span {
|
82 |
-
overflow: hidden;
|
83 |
-
float: left;
|
84 |
-
top: 0;
|
85 |
-
left: 0;
|
86 |
-
position: absolute;
|
87 |
-
padding-top: 1.5em;
|
88 |
-
}
|
89 |
-
|
90 |
-
span:before {
|
91 |
-
content: "\53\53\53\53\53";
|
92 |
-
top: 0;
|
93 |
-
position: absolute;
|
94 |
-
left: 0;
|
95 |
-
}
|
96 |
-
}
|
97 |
-
|
98 |
-
// Buttons
|
99 |
-
|
100 |
-
a.add_to_cart_button,
|
101 |
-
a.added_to_cart {
|
102 |
-
// color: $btn-color;
|
103 |
-
// background-color: $btn-background;
|
104 |
-
margin: 0;
|
105 |
-
line-height: 1;
|
106 |
-
cursor: pointer;
|
107 |
-
position: relative;
|
108 |
-
text-decoration: none;
|
109 |
-
overflow: visible;
|
110 |
-
padding: .5em 1em;
|
111 |
-
font-weight: normal;
|
112 |
-
border-radius: 3px;
|
113 |
-
left: auto;
|
114 |
-
border: 0;
|
115 |
-
white-space: nowrap;
|
116 |
-
display: inline-block;
|
117 |
-
background-image: none;
|
118 |
-
box-shadow: none;
|
119 |
-
-webkit-box-shadow: none;
|
120 |
-
text-shadow: none;
|
121 |
-
|
122 |
-
&:hover {
|
123 |
-
// color: $btn-color;
|
124 |
-
// background-color: $btn-background;
|
125 |
-
text-decoration: none;
|
126 |
-
background-image: none;
|
127 |
-
}
|
128 |
-
}
|
129 |
-
a.add_to_cart_button {
|
130 |
-
|
131 |
-
&.loading {
|
132 |
-
opacity: 0.25;
|
133 |
-
padding-right: 2.618em;
|
134 |
-
|
135 |
-
&:after {
|
136 |
-
font-family: "WooCommerce";
|
137 |
-
content: "\e01c";
|
138 |
-
vertical-align: top;
|
139 |
-
-webkit-font-smoothing: antialiased;
|
140 |
-
font-weight: normal;
|
141 |
-
position: absolute;
|
142 |
-
top: .618em;
|
143 |
-
right: 1em;
|
144 |
-
-webkit-animation: spin 2s linear infinite;
|
145 |
-
-moz-animation: spin 2s linear infinite;
|
146 |
-
animation: spin 2s linear infinite;
|
147 |
-
}
|
148 |
-
}
|
149 |
-
|
150 |
-
&.added {
|
151 |
-
&:after {
|
152 |
-
font-family: 'WooCommerce';
|
153 |
-
content: "\e017";
|
154 |
-
margin-left: .53em;
|
155 |
-
vertical-align: bottom;
|
156 |
-
}
|
157 |
-
}
|
158 |
-
}
|
159 |
-
}
|
160 |
-
}
|
161 |
-
|
162 |
-
.mfp-inline-holder .mfp-content, .mfp-ajax-holder .mfp-content {
|
163 |
-
max-width: 945px;
|
164 |
-
margin-top: 40px;
|
165 |
-
margin-bottom: 40px;
|
166 |
-
}
|
167 |
-
|
168 |
-
@media ( max-width: 600px ) {
|
169 |
-
.mfp-content {
|
170 |
-
.product {
|
171 |
-
.images {
|
172 |
-
margin-bottom: 30px;
|
173 |
-
}
|
174 |
-
.summary {
|
175 |
-
display: block;
|
176 |
-
margin: 0;
|
177 |
-
width: 100%;
|
178 |
-
}
|
179 |
-
}
|
180 |
-
}
|
181 |
-
}
|
182 |
-
|
183 |
-
@media ( min-width: 601px ) {
|
184 |
-
.mfp-content {
|
185 |
-
.product {
|
186 |
-
.images {
|
187 |
-
display: inline-block;
|
188 |
-
width: 49%;
|
189 |
-
}
|
190 |
-
.summary {
|
191 |
-
display: inline-block;
|
192 |
-
margin: 0 0 0 1%;
|
193 |
-
width: 49%;
|
194 |
-
}
|
195 |
-
}
|
196 |
-
}
|
197 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/public/_theme.scss
DELETED
@@ -1,136 +0,0 @@
|
|
1 |
-
.carousel-slider {
|
2 |
-
|
3 |
-
// Styling Next and Prev buttons
|
4 |
-
.owl-nav {
|
5 |
-
.owl-prev,
|
6 |
-
.owl-next {
|
7 |
-
height: 48px;
|
8 |
-
width: 48px;
|
9 |
-
display: inline-block;
|
10 |
-
position: absolute;
|
11 |
-
top: 50%;
|
12 |
-
transform: translateY(-50%);
|
13 |
-
opacity: 0;
|
14 |
-
margin: 0;
|
15 |
-
padding: 0;
|
16 |
-
transition: all .3s ease-in-out;
|
17 |
-
}
|
18 |
-
|
19 |
-
.owl-prev {
|
20 |
-
left: 0;
|
21 |
-
}
|
22 |
-
|
23 |
-
.owl-next {
|
24 |
-
right: 0;
|
25 |
-
}
|
26 |
-
}
|
27 |
-
|
28 |
-
&:hover {
|
29 |
-
.owl-nav {
|
30 |
-
.owl-prev,
|
31 |
-
.owl-next {
|
32 |
-
opacity: 1;
|
33 |
-
}
|
34 |
-
}
|
35 |
-
}
|
36 |
-
|
37 |
-
&.arrows-visible-always {
|
38 |
-
.owl-prev,
|
39 |
-
.owl-next {
|
40 |
-
opacity: 1;
|
41 |
-
}
|
42 |
-
}
|
43 |
-
|
44 |
-
&.arrows-outside {
|
45 |
-
.owl-nav {
|
46 |
-
.owl-prev {
|
47 |
-
left: -48px;
|
48 |
-
}
|
49 |
-
|
50 |
-
.owl-next {
|
51 |
-
right: -48px;
|
52 |
-
}
|
53 |
-
}
|
54 |
-
}
|
55 |
-
|
56 |
-
// Styling dots
|
57 |
-
.owl-dots {
|
58 |
-
text-align: center;
|
59 |
-
-webkit-tap-highlight-color: transparent;
|
60 |
-
margin-top: 10px;
|
61 |
-
|
62 |
-
.owl-dot {
|
63 |
-
display: inline-block;
|
64 |
-
zoom: 1;
|
65 |
-
*display: inline;
|
66 |
-
|
67 |
-
span {
|
68 |
-
width: 10px;
|
69 |
-
height: 10px;
|
70 |
-
margin: 4px 8px;
|
71 |
-
background-color: $background-color;
|
72 |
-
display: block;
|
73 |
-
-webkit-backface-visibility: visible;
|
74 |
-
transition: opacity 200ms ease;
|
75 |
-
}
|
76 |
-
|
77 |
-
&.active,
|
78 |
-
&:hover {
|
79 |
-
span {
|
80 |
-
background-color: $background-hover-color;
|
81 |
-
}
|
82 |
-
}
|
83 |
-
}
|
84 |
-
}
|
85 |
-
|
86 |
-
// Dots positions
|
87 |
-
&.dots-center {
|
88 |
-
.owl-dots {
|
89 |
-
text-align: center;
|
90 |
-
}
|
91 |
-
}
|
92 |
-
&.dots-left {
|
93 |
-
.owl-dots {
|
94 |
-
text-align: left;
|
95 |
-
|
96 |
-
&:first-child {
|
97 |
-
span {
|
98 |
-
margin-left: 0;
|
99 |
-
}
|
100 |
-
}
|
101 |
-
}
|
102 |
-
}
|
103 |
-
&.dots-right {
|
104 |
-
.owl-dots {
|
105 |
-
text-align: right;
|
106 |
-
|
107 |
-
&:last-child {
|
108 |
-
span {
|
109 |
-
margin-right: 0;
|
110 |
-
}
|
111 |
-
}
|
112 |
-
}
|
113 |
-
}
|
114 |
-
|
115 |
-
// Dots visibility
|
116 |
-
&.dots-visible-hover {
|
117 |
-
.owl-dots {
|
118 |
-
opacity: 0;
|
119 |
-
}
|
120 |
-
|
121 |
-
&:hover .owl-dots {
|
122 |
-
opacity: 1;
|
123 |
-
}
|
124 |
-
}
|
125 |
-
|
126 |
-
// Dots shape
|
127 |
-
&.dots-circle {
|
128 |
-
.owl-dots {
|
129 |
-
.owl-dot {
|
130 |
-
span {
|
131 |
-
border-radius: 9999px;
|
132 |
-
}
|
133 |
-
}
|
134 |
-
}
|
135 |
-
}
|
136 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/public/_variables.scss
DELETED
@@ -1,5 +0,0 @@
|
|
1 |
-
// Variables
|
2 |
-
$background-color : #9e9e9e;
|
3 |
-
$background-hover-color : #4caf50;
|
4 |
-
$owl-video-play-icon : "../img/play.svg";
|
5 |
-
$ajax-loader-url : "../img/ajax-loader.gif";
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/public/_video.scss
DELETED
@@ -1,49 +0,0 @@
|
|
1 |
-
// Owl Carousel - Video Plugin
|
2 |
-
.carousel-slider {
|
3 |
-
|
4 |
-
.owl-video-wrapper {
|
5 |
-
position: relative;
|
6 |
-
height: 100%;
|
7 |
-
background: #000;
|
8 |
-
}
|
9 |
-
|
10 |
-
.owl-video-play-icon {
|
11 |
-
position: absolute;
|
12 |
-
height: 80px;
|
13 |
-
width: 80px;
|
14 |
-
left: 50%;
|
15 |
-
top: 50%;
|
16 |
-
margin-left: -40px;
|
17 |
-
margin-top: -40px;
|
18 |
-
background: url( $owl-video-play-icon ) no-repeat;
|
19 |
-
cursor: pointer;
|
20 |
-
z-index: 1;
|
21 |
-
-webkit-backface-visibility: hidden;
|
22 |
-
transition: transform 100ms ease;
|
23 |
-
}
|
24 |
-
|
25 |
-
.owl-video-play-icon:hover {
|
26 |
-
transform: scale(1.3, 1.3);
|
27 |
-
}
|
28 |
-
|
29 |
-
.owl-video-playing .owl-video-tn,
|
30 |
-
.owl-video-playing .owl-video-play-icon {
|
31 |
-
display: none;
|
32 |
-
}
|
33 |
-
|
34 |
-
.owl-video-tn {
|
35 |
-
opacity: 0;
|
36 |
-
height: 100%;
|
37 |
-
background-position: center center;
|
38 |
-
background-repeat: no-repeat;
|
39 |
-
background-size: contain;
|
40 |
-
transition: opacity 400ms ease;
|
41 |
-
}
|
42 |
-
|
43 |
-
.owl-video-frame {
|
44 |
-
position: relative;
|
45 |
-
z-index: 1;
|
46 |
-
height: 100%;
|
47 |
-
width: 100%;
|
48 |
-
}
|
49 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/public/index.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// Code is Poetry
|
|
|
|
trunk/assets/scss/style.scss
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
@import 'public/variables';
|
2 |
-
@import 'public/core';
|
3 |
-
@import 'public/animate';
|
4 |
-
@import 'public/autoheight';
|
5 |
-
@import 'public/lazyload';
|
6 |
-
@import 'public/video';
|
7 |
-
@import 'public/theme';
|
8 |
-
@import 'public/post-carousel';
|
9 |
-
@import 'public/product-carousel';
|
10 |
-
@import 'public/content-carousel';
|
11 |
-
@import 'public/image-carousel';
|
12 |
-
@import 'public/button';
|
13 |
-
|
14 |
-
@import 'public/magnific-popup';
|
15 |
-
@import 'public/product_modal';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/utilities/_mixins.scss
DELETED
@@ -1,74 +0,0 @@
|
|
1 |
-
|
2 |
-
@mixin overlay($offset: 0) {
|
3 |
-
bottom: $offset;
|
4 |
-
left: $offset;
|
5 |
-
position: absolute;
|
6 |
-
right: $offset;
|
7 |
-
top: $offset;
|
8 |
-
}
|
9 |
-
|
10 |
-
@mixin delete {
|
11 |
-
user-select: none;
|
12 |
-
-moz-appearance: none;
|
13 |
-
-webkit-appearance: none;
|
14 |
-
background-color: rgba($black, 0.2);
|
15 |
-
border: none;
|
16 |
-
border-radius: 32px;
|
17 |
-
cursor: pointer;
|
18 |
-
display: inline-block;
|
19 |
-
flex-grow: 0;
|
20 |
-
flex-shrink: 0;
|
21 |
-
font-size: $size-normal;
|
22 |
-
outline: none;
|
23 |
-
position: relative;
|
24 |
-
vertical-align: top;
|
25 |
-
height: 20px;
|
26 |
-
width: 20px;
|
27 |
-
|
28 |
-
&:before,
|
29 |
-
&:after {
|
30 |
-
background-color: $white;
|
31 |
-
content: "";
|
32 |
-
display: block;
|
33 |
-
left: 50%;
|
34 |
-
position: absolute;
|
35 |
-
top: 50%;
|
36 |
-
transform: translateX(-50%) translateY(-50%) rotate(45deg);
|
37 |
-
transform-origin: center center;
|
38 |
-
}
|
39 |
-
|
40 |
-
&:before {
|
41 |
-
height: 2px;
|
42 |
-
width: 50%;
|
43 |
-
}
|
44 |
-
|
45 |
-
&:after {
|
46 |
-
height: 50%;
|
47 |
-
width: 2px;
|
48 |
-
}
|
49 |
-
|
50 |
-
&:hover,
|
51 |
-
&:focus {
|
52 |
-
background-color: rgba($black, 0.3);
|
53 |
-
}
|
54 |
-
|
55 |
-
&:active {
|
56 |
-
background-color: rgba($black, 0.4);
|
57 |
-
}
|
58 |
-
|
59 |
-
// Sizes
|
60 |
-
&.is-small {
|
61 |
-
height: 16px;
|
62 |
-
width: 16px;
|
63 |
-
}
|
64 |
-
|
65 |
-
&.is-medium {
|
66 |
-
height: 24px;
|
67 |
-
width: 24px;
|
68 |
-
}
|
69 |
-
|
70 |
-
&.is-large {
|
71 |
-
height: 32px;
|
72 |
-
width: 32px;
|
73 |
-
}
|
74 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/assets/scss/utilities/_variables.scss
DELETED
@@ -1,145 +0,0 @@
|
|
1 |
-
// == Colors
|
2 |
-
// Start with assigning color names to specific hex values.
|
3 |
-
|
4 |
-
$black: #000000 !default;
|
5 |
-
$grey-darker: #212121 !default;
|
6 |
-
$grey-dark: #616161 !default;
|
7 |
-
$grey: #9e9e9e !default;
|
8 |
-
$grey-light: #e0e0e0 !default;
|
9 |
-
$grey-lighter: #f5f5f5 !default;
|
10 |
-
$white: #ffffff !default;
|
11 |
-
$teal: #009688 !default;
|
12 |
-
$blue: #2196f3 !default;
|
13 |
-
$green: #4caf50 !default;
|
14 |
-
$yellow: #ffeb3b !default;
|
15 |
-
$amber: #ffc107 !default;
|
16 |
-
$orange: #ff9800 !default;
|
17 |
-
$red: #f44336 !default;
|
18 |
-
$purple: #9c27b0 !default;
|
19 |
-
$turquoise: #00d1b2 !default;
|
20 |
-
$pink: #e91e63 !default;
|
21 |
-
|
22 |
-
// Reassign color vars to semantic color scheme
|
23 |
-
$primary: $teal !default;
|
24 |
-
$info: $blue !default;
|
25 |
-
$success: $green !default;
|
26 |
-
$warning: $amber !default;
|
27 |
-
$danger: $red !default;
|
28 |
-
$light: $grey-lighter !default;
|
29 |
-
$dark: $grey-darker !default;
|
30 |
-
|
31 |
-
$colors: (
|
32 |
-
'teal': $teal,
|
33 |
-
'blue': $blue,
|
34 |
-
'green': $green,
|
35 |
-
'yellow': $yellow,
|
36 |
-
'amber': $amber,
|
37 |
-
'orange': $orange,
|
38 |
-
'red': $red,
|
39 |
-
'purple': $purple,
|
40 |
-
'turquoise': $turquoise,
|
41 |
-
'pink': $pink,
|
42 |
-
'white': $white,
|
43 |
-
'light': $grey-lighter,
|
44 |
-
'grey-light': $grey-light,
|
45 |
-
'grey': $grey,
|
46 |
-
'grey-dark': $grey-dark,
|
47 |
-
'dark': $grey-darker,
|
48 |
-
'black': $black,
|
49 |
-
);
|
50 |
-
|
51 |
-
// General colors
|
52 |
-
$background: $grey-lighter !default;
|
53 |
-
|
54 |
-
$border: $grey-lighter !default;
|
55 |
-
$border-hover: $grey-light !default;
|
56 |
-
|
57 |
-
//== Link colors
|
58 |
-
$link: $primary !default;
|
59 |
-
$link-invert: findColorInvert($primary) !default;
|
60 |
-
$link-visited: $purple !default;
|
61 |
-
|
62 |
-
$link-hover: $grey-darker !default;
|
63 |
-
$link-hover-border: $grey-light !default;
|
64 |
-
|
65 |
-
$link-focus: $grey-darker !default;
|
66 |
-
$link-focus-border: $primary !default;
|
67 |
-
|
68 |
-
$link-active: $grey-darker !default;
|
69 |
-
$link-active-border: $grey-dark !default;
|
70 |
-
|
71 |
-
//== Button
|
72 |
-
$button: $grey-darker !default;
|
73 |
-
$button-background: $white !default;
|
74 |
-
$button-border: $grey-lighter !default;
|
75 |
-
|
76 |
-
$button-hover: $link-hover !default;
|
77 |
-
$button-hover-border: $link-hover-border !default;
|
78 |
-
|
79 |
-
$button-focus: $link-focus !default;
|
80 |
-
$button-focus-border: $link-focus-border !default;
|
81 |
-
|
82 |
-
$button-active: $link-active !default;
|
83 |
-
$button-active-border: $link-active-border !default;
|
84 |
-
|
85 |
-
$button-shadow-inset: inset 0 1px 2px rgba($black, 0.2) !default;
|
86 |
-
|
87 |
-
// Typography
|
88 |
-
$family-sans-serif: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif !default;
|
89 |
-
$family-monospace: monospace !default;
|
90 |
-
|
91 |
-
$family-primary: $family-sans-serif !default;
|
92 |
-
$family-code: $family-monospace !default;
|
93 |
-
|
94 |
-
$size-1: 3rem !default;
|
95 |
-
$size-2: 2.5rem !default;
|
96 |
-
$size-3: 2rem !default;
|
97 |
-
$size-4: 1.5rem !default;
|
98 |
-
$size-5: 1.25rem !default;
|
99 |
-
$size-6: 1rem !default;
|
100 |
-
$size-7: 0.75rem !default;
|
101 |
-
|
102 |
-
$size-small: $size-7 !default;
|
103 |
-
$size-normal: $size-6 !default;
|
104 |
-
$size-medium: $size-5 !default;
|
105 |
-
$size-large: $size-4 !default;
|
106 |
-
|
107 |
-
$weight-light: 300 !default;
|
108 |
-
$weight-normal: 400 !default;
|
109 |
-
$weight-semibold: 500 !default;
|
110 |
-
$weight-bold: 700 !default;
|
111 |
-
|
112 |
-
// Text colors
|
113 |
-
$text: $grey-dark !default;
|
114 |
-
$text-invert: findColorInvert($text) !default;
|
115 |
-
$text-light: $grey !default;
|
116 |
-
$text-strong: $grey-darker !default;
|
117 |
-
|
118 |
-
// Miscellaneous
|
119 |
-
$radius-small: 2px !default;
|
120 |
-
$radius: 3px !default;
|
121 |
-
$radius-large: 5px !default;
|
122 |
-
|
123 |
-
//== Grid breakpoints
|
124 |
-
$screen-sm: 576px !default;
|
125 |
-
$screen-md: 769px !default;
|
126 |
-
$screen-lg: 1000px !default;
|
127 |
-
$screen-xl: 1192px !default;
|
128 |
-
$screen-hd: 1384px !default;
|
129 |
-
|
130 |
-
//== Grid containers
|
131 |
-
$container-sm: 540px !default;
|
132 |
-
$container-md: 720px !default;
|
133 |
-
$container-lg: 960px !default;
|
134 |
-
$container-xl: 1140px !default;
|
135 |
-
$container-hd: 1340px !default;
|
136 |
-
|
137 |
-
// Responsiveness
|
138 |
-
// 960, 1152, and 1344 have been chosen because they are divisible by both 12 and 16
|
139 |
-
$tablet: 769px !default;
|
140 |
-
// 960px container + 40px
|
141 |
-
$desktop: 1000px !default;
|
142 |
-
// 1152px container + 40
|
143 |
-
$widescreen: 1192px !default;
|
144 |
-
// 1344px container + 40
|
145 |
-
$fullhd: 1384px !default;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/carousel-slider.php
DELETED
@@ -1,154 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Plugin Name: Carousel Slider
|
4 |
-
* Plugin URI: http://wordpress.org/plugins/carousel-slider
|
5 |
-
* Description: The Easiest Way to Create SEO friendly Image, Logo, Video, Post and WooCommerce Product Carousel.
|
6 |
-
* Version: 1.8.2
|
7 |
-
* Author: Sayful Islam
|
8 |
-
* Author URI: https://sayfulislam.com
|
9 |
-
* Requires at least: 4.4
|
10 |
-
* Tested up to: 4.9
|
11 |
-
*
|
12 |
-
* Text Domain: carousel-slider
|
13 |
-
*
|
14 |
-
* License: GPLv3
|
15 |
-
* License URI: https://www.gnu.org/licenses/gpl-3.0.txt
|
16 |
-
*
|
17 |
-
* @package Carousel_Slider
|
18 |
-
* @author Sayful Islam
|
19 |
-
*/
|
20 |
-
|
21 |
-
// If this file is called directly, abort.
|
22 |
-
if ( ! defined( 'WPINC' ) ) {
|
23 |
-
die;
|
24 |
-
}
|
25 |
-
|
26 |
-
if ( ! class_exists( 'Carousel_Slider' ) ) {
|
27 |
-
|
28 |
-
final class Carousel_Slider {
|
29 |
-
private $plugin_name = 'carousel-slider';
|
30 |
-
private $version = '1.8.2';
|
31 |
-
|
32 |
-
protected static $instance = null;
|
33 |
-
|
34 |
-
/**
|
35 |
-
* Main Carousel_Slider Instance
|
36 |
-
* Ensures only one instance of Carousel_Slider is loaded or can be loaded.
|
37 |
-
*
|
38 |
-
* @since 1.6.0
|
39 |
-
* @return Carousel_Slider - Main instance
|
40 |
-
*/
|
41 |
-
public static function instance() {
|
42 |
-
if ( is_null( self::$instance ) ) {
|
43 |
-
self::$instance = new self();
|
44 |
-
}
|
45 |
-
|
46 |
-
return self::$instance;
|
47 |
-
}
|
48 |
-
|
49 |
-
/**
|
50 |
-
* Carousel_Slider constructor.
|
51 |
-
*/
|
52 |
-
public function __construct() {
|
53 |
-
$this->define_constants();
|
54 |
-
$this->includes();
|
55 |
-
|
56 |
-
register_activation_hook( __FILE__, array( $this, 'activation' ) );
|
57 |
-
register_deactivation_hook( __FILE__, array( $this, 'deactivation' ) );
|
58 |
-
|
59 |
-
do_action( 'carousel_slider_init' );
|
60 |
-
}
|
61 |
-
|
62 |
-
public function define_constants() {
|
63 |
-
$this->define( 'CAROUSEL_SLIDER_VERSION', $this->version );
|
64 |
-
$this->define( 'CAROUSEL_SLIDER_FILE', __FILE__ );
|
65 |
-
$this->define( 'CAROUSEL_SLIDER_PATH', dirname( CAROUSEL_SLIDER_FILE ) );
|
66 |
-
$this->define( 'CAROUSEL_SLIDER_INCLUDES', CAROUSEL_SLIDER_PATH . '/includes' );
|
67 |
-
$this->define( 'CAROUSEL_SLIDER_TEMPLATES', CAROUSEL_SLIDER_PATH . '/templates' );
|
68 |
-
$this->define( 'CAROUSEL_SLIDER_WIDGETS', CAROUSEL_SLIDER_PATH . '/widgets' );
|
69 |
-
$this->define( 'CAROUSEL_SLIDER_URL', plugins_url( '', CAROUSEL_SLIDER_FILE ) );
|
70 |
-
$this->define( 'CAROUSEL_SLIDER_ASSETS', CAROUSEL_SLIDER_URL . '/assets' );
|
71 |
-
}
|
72 |
-
|
73 |
-
/**
|
74 |
-
* Define constant if not already set.
|
75 |
-
*
|
76 |
-
* @param string $name
|
77 |
-
* @param string|bool $value
|
78 |
-
*/
|
79 |
-
private function define( $name, $value ) {
|
80 |
-
if ( ! defined( $name ) ) {
|
81 |
-
define( $name, $value );
|
82 |
-
}
|
83 |
-
}
|
84 |
-
|
85 |
-
/**
|
86 |
-
* Include admin and front facing files
|
87 |
-
*/
|
88 |
-
public function includes() {
|
89 |
-
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-i18n.php';
|
90 |
-
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-number-to-word.php';
|
91 |
-
require_once CAROUSEL_SLIDER_INCLUDES . '/functions-carousel-slider.php';
|
92 |
-
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-activator.php';
|
93 |
-
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-product.php';
|
94 |
-
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-script.php';
|
95 |
-
require_once CAROUSEL_SLIDER_WIDGETS . '/widget-carousel_slider.php';
|
96 |
-
|
97 |
-
if ( is_admin() ) {
|
98 |
-
$this->admin_includes();
|
99 |
-
}
|
100 |
-
if ( ! is_admin() ) {
|
101 |
-
$this->frontend_includes();
|
102 |
-
}
|
103 |
-
}
|
104 |
-
|
105 |
-
/**
|
106 |
-
* Include admin files
|
107 |
-
*/
|
108 |
-
public function admin_includes() {
|
109 |
-
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-credit.php';
|
110 |
-
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-vc-element.php';
|
111 |
-
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-documentation.php';
|
112 |
-
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-form.php';
|
113 |
-
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-admin.php';
|
114 |
-
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-content-carousel.php';
|
115 |
-
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-meta-box.php';
|
116 |
-
}
|
117 |
-
|
118 |
-
/**
|
119 |
-
* Load front facing files
|
120 |
-
*/
|
121 |
-
public function frontend_includes() {
|
122 |
-
require_once CAROUSEL_SLIDER_PATH . '/shortcodes/class-carousel-slider-shortcode.php';
|
123 |
-
require_once CAROUSEL_SLIDER_PATH . '/shortcodes/class-carousel-slider-deprecated-shortcode.php';
|
124 |
-
require_once CAROUSEL_SLIDER_INCLUDES . '/class-carousel-slider-structured-data.php';
|
125 |
-
}
|
126 |
-
|
127 |
-
/**
|
128 |
-
* To be run when the plugin is activated
|
129 |
-
* @return void
|
130 |
-
*/
|
131 |
-
public function activation() {
|
132 |
-
do_action( 'carousel_slider_activation' );
|
133 |
-
flush_rewrite_rules();
|
134 |
-
}
|
135 |
-
|
136 |
-
/**
|
137 |
-
* To be run when the plugin is deactivated
|
138 |
-
* @return void
|
139 |
-
*/
|
140 |
-
public function deactivation() {
|
141 |
-
do_action( 'carousel_slider_deactivation' );
|
142 |
-
flush_rewrite_rules();
|
143 |
-
}
|
144 |
-
}
|
145 |
-
}
|
146 |
-
|
147 |
-
/**
|
148 |
-
* Begins execution of the plugin.
|
149 |
-
*
|
150 |
-
* Since everything within the plugin is registered via hooks,
|
151 |
-
* then kicking off the plugin from this point in the file does
|
152 |
-
* not affect the page life cycle.
|
153 |
-
*/
|
154 |
-
Carousel_Slider::instance();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/dummy-data/carousel-slider.xml
DELETED
@@ -1,739 +0,0 @@
|
|
1 |
-
<?xml version="1.0" encoding="UTF-8" ?>
|
2 |
-
|
3 |
-
<rss version="2.0"
|
4 |
-
xmlns:excerpt="http://wordpress.org/export/1.2/excerpt/"
|
5 |
-
xmlns:content="http://purl.org/rss/1.0/modules/content/"
|
6 |
-
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
|
7 |
-
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
8 |
-
xmlns:wp="http://wordpress.org/export/1.2/"
|
9 |
-
>
|
10 |
-
|
11 |
-
<channel>
|
12 |
-
<title>WordPress</title>
|
13 |
-
<link>http://wordpress.dev</link>
|
14 |
-
<description>Just another WordPress site</description>
|
15 |
-
<pubDate>Thu, 12 Jan 2017 15:03:49 +0000</pubDate>
|
16 |
-
<language>en-US</language>
|
17 |
-
<wp:wxr_version>1.2</wp:wxr_version>
|
18 |
-
<wp:base_site_url>http://wordpress.dev</wp:base_site_url>
|
19 |
-
<wp:base_blog_url>http://wordpress.dev</wp:base_blog_url>
|
20 |
-
|
21 |
-
<wp:author><wp:author_id>1</wp:author_id><wp:author_login><![CDATA[sayful]]></wp:author_login><wp:author_email><![CDATA[sayful@gmail.com]]></wp:author_email><wp:author_display_name><![CDATA[sayful]]></wp:author_display_name><wp:author_first_name><![CDATA[]]></wp:author_first_name><wp:author_last_name><![CDATA[]]></wp:author_last_name></wp:author>
|
22 |
-
|
23 |
-
|
24 |
-
<generator>https://wordpress.org/?v=4.7.2-alpha-39883</generator>
|
25 |
-
|
26 |
-
<item>
|
27 |
-
<title>Image carousel example from URL</title>
|
28 |
-
<link>http://wordpress.dev/?carousels=image-carousel-from-url-example</link>
|
29 |
-
<pubDate>Thu, 12 Jan 2017 14:51:13 +0000</pubDate>
|
30 |
-
<dc:creator><![CDATA[sayful]]></dc:creator>
|
31 |
-
<guid isPermaLink="false">http://wordpress.dev/?post_type=carousels&p=1717</guid>
|
32 |
-
<description></description>
|
33 |
-
<content:encoded><![CDATA[]]></content:encoded>
|
34 |
-
<excerpt:encoded><![CDATA[]]></excerpt:encoded>
|
35 |
-
<wp:post_id>1717</wp:post_id>
|
36 |
-
<wp:post_date><![CDATA[2017-01-12 14:51:13]]></wp:post_date>
|
37 |
-
<wp:post_date_gmt><![CDATA[2017-01-12 14:51:13]]></wp:post_date_gmt>
|
38 |
-
<wp:comment_status><![CDATA[closed]]></wp:comment_status>
|
39 |
-
<wp:ping_status><![CDATA[closed]]></wp:ping_status>
|
40 |
-
<wp:post_name><![CDATA[image-carousel-from-url-example]]></wp:post_name>
|
41 |
-
<wp:status><![CDATA[publish]]></wp:status>
|
42 |
-
<wp:post_parent>0</wp:post_parent>
|
43 |
-
<wp:menu_order>0</wp:menu_order>
|
44 |
-
<wp:post_type><![CDATA[carousels]]></wp:post_type>
|
45 |
-
<wp:post_password><![CDATA[]]></wp:post_password>
|
46 |
-
<wp:is_sticky>0</wp:is_sticky>
|
47 |
-
<wp:postmeta>
|
48 |
-
<wp:meta_key><![CDATA[_edit_last]]></wp:meta_key>
|
49 |
-
<wp:meta_value><![CDATA[1]]></wp:meta_value>
|
50 |
-
</wp:postmeta>
|
51 |
-
<wp:postmeta>
|
52 |
-
<wp:meta_key><![CDATA[_slide_type]]></wp:meta_key>
|
53 |
-
<wp:meta_value><![CDATA[image-carousel-url]]></wp:meta_value>
|
54 |
-
</wp:postmeta>
|
55 |
-
<wp:postmeta>
|
56 |
-
<wp:meta_key><![CDATA[_wpdh_image_ids]]></wp:meta_key>
|
57 |
-
<wp:meta_value><![CDATA[]]></wp:meta_value>
|
58 |
-
</wp:postmeta>
|
59 |
-
<wp:postmeta>
|
60 |
-
<wp:meta_key><![CDATA[_post_query_type]]></wp:meta_key>
|
61 |
-
<wp:meta_value><![CDATA[latest_posts]]></wp:meta_value>
|
62 |
-
</wp:postmeta>
|
63 |
-
<wp:postmeta>
|
64 |
-
<wp:meta_key><![CDATA[_post_date_after]]></wp:meta_key>
|
65 |
-
<wp:meta_value><![CDATA[]]></wp:meta_value>
|
66 |
-
</wp:postmeta>
|
67 |
-
<wp:postmeta>
|
68 |
-
<wp:meta_key><![CDATA[_post_date_before]]></wp:meta_key>
|
69 |
-
<wp:meta_value><![CDATA[]]></wp:meta_value>
|
70 |
-
</wp:postmeta>
|
71 |
-
<wp:postmeta>
|
72 |
-
<wp:meta_key><![CDATA[_posts_per_page]]></wp:meta_key>
|
73 |
-
<wp:meta_value><![CDATA[12]]></wp:meta_value>
|
74 |
-
</wp:postmeta>
|
75 |
-
<wp:postmeta>
|
76 |
-
<wp:meta_key><![CDATA[_post_order]]></wp:meta_key>
|
77 |
-
<wp:meta_value><![CDATA[DESC]]></wp:meta_value>
|
78 |
-
</wp:postmeta>
|
79 |
-
<wp:postmeta>
|
80 |
-
<wp:meta_key><![CDATA[_post_orderby]]></wp:meta_key>
|
81 |
-
<wp:meta_value><![CDATA[ID]]></wp:meta_value>
|
82 |
-
</wp:postmeta>
|
83 |
-
<wp:postmeta>
|
84 |
-
<wp:meta_key><![CDATA[_post_height]]></wp:meta_key>
|
85 |
-
<wp:meta_value><![CDATA[450]]></wp:meta_value>
|
86 |
-
</wp:postmeta>
|
87 |
-
<wp:postmeta>
|
88 |
-
<wp:meta_key><![CDATA[_video_url]]></wp:meta_key>
|
89 |
-
<wp:meta_value><![CDATA[]]></wp:meta_value>
|
90 |
-
</wp:postmeta>
|
91 |
-
<wp:postmeta>
|
92 |
-
<wp:meta_key><![CDATA[_video_width]]></wp:meta_key>
|
93 |
-
<wp:meta_value><![CDATA[560]]></wp:meta_value>
|
94 |
-
</wp:postmeta>
|
95 |
-
<wp:postmeta>
|
96 |
-
<wp:meta_key><![CDATA[_video_height]]></wp:meta_key>
|
97 |
-
<wp:meta_value><![CDATA[315]]></wp:meta_value>
|
98 |
-
</wp:postmeta>
|
99 |
-
<wp:postmeta>
|
100 |
-
<wp:meta_key><![CDATA[_slide_by]]></wp:meta_key>
|
101 |
-
<wp:meta_value><![CDATA[1]]></wp:meta_value>
|
102 |
-
</wp:postmeta>
|
103 |
-
<wp:postmeta>
|
104 |
-
<wp:meta_key><![CDATA[_margin_right]]></wp:meta_key>
|
105 |
-
<wp:meta_value><![CDATA[10]]></wp:meta_value>
|
106 |
-
</wp:postmeta>
|
107 |
-
<wp:postmeta>
|
108 |
-
<wp:meta_key><![CDATA[_inifnity_loop]]></wp:meta_key>
|
109 |
-
<wp:meta_value><![CDATA[on]]></wp:meta_value>
|
110 |
-
</wp:postmeta>
|
111 |
-
<wp:postmeta>
|
112 |
-
<wp:meta_key><![CDATA[_lazy_load_image]]></wp:meta_key>
|
113 |
-
<wp:meta_value><![CDATA[on]]></wp:meta_value>
|
114 |
-
</wp:postmeta>
|
115 |
-
<wp:postmeta>
|
116 |
-
<wp:meta_key><![CDATA[_show_attachment_title]]></wp:meta_key>
|
117 |
-
<wp:meta_value><![CDATA[off]]></wp:meta_value>
|
118 |
-
</wp:postmeta>
|
119 |
-
<wp:postmeta>
|
120 |
-
<wp:meta_key><![CDATA[_show_attachment_caption]]></wp:meta_key>
|
121 |
-
<wp:meta_value><![CDATA[off]]></wp:meta_value>
|
122 |
-
</wp:postmeta>
|
123 |
-
<wp:postmeta>
|
124 |
-
<wp:meta_key><![CDATA[_image_size]]></wp:meta_key>
|
125 |
-
<wp:meta_value><![CDATA[thumbnail]]></wp:meta_value>
|
126 |
-
</wp:postmeta>
|
127 |
-
<wp:postmeta>
|
128 |
-
<wp:meta_key><![CDATA[_image_target]]></wp:meta_key>
|
129 |
-
<wp:meta_value><![CDATA[_blank]]></wp:meta_value>
|
130 |
-
</wp:postmeta>
|
131 |
-
<wp:postmeta>
|
132 |
-
<wp:meta_key><![CDATA[_nav_button]]></wp:meta_key>
|
133 |
-
<wp:meta_value><![CDATA[on]]></wp:meta_value>
|
134 |
-
</wp:postmeta>
|
135 |
-
<wp:postmeta>
|
136 |
-
<wp:meta_key><![CDATA[_dot_nav]]></wp:meta_key>
|
137 |
-
<wp:meta_value><![CDATA[on]]></wp:meta_value>
|
138 |
-
</wp:postmeta>
|
139 |
-
<wp:postmeta>
|
140 |
-
<wp:meta_key><![CDATA[_nav_color]]></wp:meta_key>
|
141 |
-
<wp:meta_value><![CDATA[#9e9e9e]]></wp:meta_value>
|
142 |
-
</wp:postmeta>
|
143 |
-
<wp:postmeta>
|
144 |
-
<wp:meta_key><![CDATA[_nav_active_color]]></wp:meta_key>
|
145 |
-
<wp:meta_value><![CDATA[#4caf50]]></wp:meta_value>
|
146 |
-
</wp:postmeta>
|
147 |
-
<wp:postmeta>
|
148 |
-
<wp:meta_key><![CDATA[_autoplay]]></wp:meta_key>
|
149 |
-
<wp:meta_value><![CDATA[on]]></wp:meta_value>
|
150 |
-
</wp:postmeta>
|
151 |
-
<wp:postmeta>
|
152 |
-
<wp:meta_key><![CDATA[_autoplay_timeout]]></wp:meta_key>
|
153 |
-
<wp:meta_value><![CDATA[5000]]></wp:meta_value>
|
154 |
-
</wp:postmeta>
|
155 |
-
<wp:postmeta>
|
156 |
-
<wp:meta_key><![CDATA[_autoplay_speed]]></wp:meta_key>
|
157 |
-
<wp:meta_value><![CDATA[500]]></wp:meta_value>
|
158 |
-
</wp:postmeta>
|
159 |
-
<wp:postmeta>
|
160 |
-
<wp:meta_key><![CDATA[_autoplay_pause]]></wp:meta_key>
|
161 |
-
<wp:meta_value><![CDATA[on]]></wp:meta_value>
|
162 |
-
</wp:postmeta>
|
163 |
-
<wp:postmeta>
|
164 |
-
<wp:meta_key><![CDATA[_items]]></wp:meta_key>
|
165 |
-
<wp:meta_value><![CDATA[4]]></wp:meta_value>
|
166 |
-
</wp:postmeta>
|
167 |
-
<wp:postmeta>
|
168 |
-
<wp:meta_key><![CDATA[_items_desktop]]></wp:meta_key>
|
169 |
-
<wp:meta_value><![CDATA[4]]></wp:meta_value>
|
170 |
-
</wp:postmeta>
|
171 |
-
<wp:postmeta>
|
172 |
-
<wp:meta_key><![CDATA[_items_small_desktop]]></wp:meta_key>
|
173 |
-
<wp:meta_value><![CDATA[4]]></wp:meta_value>
|
174 |
-
</wp:postmeta>
|
175 |
-
<wp:postmeta>
|
176 |
-
<wp:meta_key><![CDATA[_items_portrait_tablet]]></wp:meta_key>
|
177 |
-
<wp:meta_value><![CDATA[3]]></wp:meta_value>
|
178 |
-
</wp:postmeta>
|
179 |
-
<wp:postmeta>
|
180 |
-
<wp:meta_key><![CDATA[_items_small_portrait_tablet]]></wp:meta_key>
|
181 |
-
<wp:meta_value><![CDATA[2]]></wp:meta_value>
|
182 |
-
</wp:postmeta>
|
183 |
-
<wp:postmeta>
|
184 |
-
<wp:meta_key><![CDATA[_items_portrait_mobile]]></wp:meta_key>
|
185 |
-
<wp:meta_value><![CDATA[1]]></wp:meta_value>
|
186 |
-
</wp:postmeta>
|
187 |
-
<wp:postmeta>
|
188 |
-
<wp:meta_key><![CDATA[_post_categories]]></wp:meta_key>
|
189 |
-
<wp:meta_value><![CDATA[]]></wp:meta_value>
|
190 |
-
</wp:postmeta>
|
191 |
-
<wp:postmeta>
|
192 |
-
<wp:meta_key><![CDATA[_post_tags]]></wp:meta_key>
|
193 |
-
<wp:meta_value><![CDATA[]]></wp:meta_value>
|
194 |
-
</wp:postmeta>
|
195 |
-
<wp:postmeta>
|
196 |
-
<wp:meta_key><![CDATA[_post_in]]></wp:meta_key>
|
197 |
-
<wp:meta_value><![CDATA[]]></wp:meta_value>
|
198 |
-
</wp:postmeta>
|
199 |
-
<wp:postmeta>
|
200 |
-
<wp:meta_key><![CDATA[_images_urls]]></wp:meta_key>
|
201 |
-
<wp:meta_value><![CDATA[a:9:{i:0;a:5:{s:3:"url";s:39:"http://lorempixel.com/400/400/sports/1/";s:5:"title";s:27:"Lorempixel Sports Image one";s:7:"caption";s:27:"Lorempixel Sports Image one";s:3:"alt";s:27:"Lorempixel Sports Image one";s:8:"link_url";s:39:"http://lorempixel.com/400/400/sports/1/";}i:1;a:5:{s:3:"url";s:36:"http://lorempixel.com/400/400/city/2";s:5:"title";s:27:"Lorempixel Sports Image two";s:7:"caption";s:0:"";s:3:"alt";s:0:"";s:8:"link_url";s:37:"http://lorempixel.com/400/400/city/1/";}i:2;a:5:{s:3:"url";s:38:"http://lorempixel.com/400/400/sports/3";s:5:"title";s:29:"Lorempixel Sports Image three";s:7:"caption";s:29:"Lorempixel Sports Image three";s:3:"alt";s:29:"Lorempixel Sports Image three";s:8:"link_url";s:0:"";}i:3;a:5:{s:3:"url";s:39:"http://lorempixel.com/400/400/sports/1/";s:5:"title";s:0:"";s:7:"caption";s:0:"";s:3:"alt";s:0:"";s:8:"link_url";s:0:"";}i:4;a:5:{s:3:"url";s:38:"http://lorempixel.com/400/400/sports/2";s:5:"title";s:0:"";s:7:"caption";s:0:"";s:3:"alt";s:0:"";s:8:"link_url";s:0:"";}i:5;a:5:{s:3:"url";s:38:"http://lorempixel.com/400/400/sports/3";s:5:"title";s:0:"";s:7:"caption";s:0:"";s:3:"alt";s:0:"";s:8:"link_url";s:0:"";}i:6;a:5:{s:3:"url";s:39:"http://lorempixel.com/400/400/sports/1/";s:5:"title";s:0:"";s:7:"caption";s:0:"";s:3:"alt";s:0:"";s:8:"link_url";s:0:"";}i:7;a:5:{s:3:"url";s:38:"http://lorempixel.com/400/400/sports/2";s:5:"title";s:0:"";s:7:"caption";s:0:"";s:3:"alt";s:0:"";s:8:"link_url";s:0:"";}i:8;a:5:{s:3:"url";s:38:"http://lorempixel.com/400/400/sports/3";s:5:"title";s:0:"";s:7:"caption";s:0:"";s:3:"alt";s:0:"";s:8:"link_url";s:0:"";}}]]></wp:meta_value>
|
202 |
-
</wp:postmeta>
|
203 |
-
</item>
|
204 |
-
<item>
|
205 |
-
<title>Post Carousel Example</title>
|
206 |
-
<link>http://wordpress.dev/?carousels=post-carousel-example</link>
|
207 |
-
<pubDate>Thu, 12 Jan 2017 15:00:08 +0000</pubDate>
|
208 |
-
<dc:creator><![CDATA[sayful]]></dc:creator>
|
209 |
-
<guid isPermaLink="false">http://wordpress.dev/?post_type=carousels&p=1720</guid>
|
210 |
-
<description></description>
|
211 |
-
<content:encoded><![CDATA[]]></content:encoded>
|
212 |
-
<excerpt:encoded><![CDATA[]]></excerpt:encoded>
|
213 |
-
<wp:post_id>1720</wp:post_id>
|
214 |
-
<wp:post_date><![CDATA[2017-01-12 15:00:08]]></wp:post_date>
|
215 |
-
<wp:post_date_gmt><![CDATA[2017-01-12 15:00:08]]></wp:post_date_gmt>
|
216 |
-
<wp:comment_status><![CDATA[closed]]></wp:comment_status>
|
217 |
-
<wp:ping_status><![CDATA[closed]]></wp:ping_status>
|
218 |
-
<wp:post_name><![CDATA[post-carousel-example]]></wp:post_name>
|
219 |
-
<wp:status><![CDATA[publish]]></wp:status>
|
220 |
-
<wp:post_parent>0</wp:post_parent>
|
221 |
-
<wp:menu_order>0</wp:menu_order>
|
222 |
-
<wp:post_type><![CDATA[carousels]]></wp:post_type>
|
223 |
-
<wp:post_password><![CDATA[]]></wp:post_password>
|
224 |
-
<wp:is_sticky>0</wp:is_sticky>
|
225 |
-
<wp:postmeta>
|
226 |
-
<wp:meta_key><![CDATA[_edit_last]]></wp:meta_key>
|
227 |
-
<wp:meta_value><![CDATA[1]]></wp:meta_value>
|
228 |
-
</wp:postmeta>
|
229 |
-
<wp:postmeta>
|
230 |
-
<wp:meta_key><![CDATA[_slide_type]]></wp:meta_key>
|
231 |
-
<wp:meta_value><![CDATA[post-carousel]]></wp:meta_value>
|
232 |
-
</wp:postmeta>
|
233 |
-
<wp:postmeta>
|
234 |
-
<wp:meta_key><![CDATA[_wpdh_image_ids]]></wp:meta_key>
|
235 |
-
<wp:meta_value><![CDATA[]]></wp:meta_value>
|
236 |
-
</wp:postmeta>
|
237 |
-
<wp:postmeta>
|
238 |
-
<wp:meta_key><![CDATA[_post_query_type]]></wp:meta_key>
|
239 |
-
<wp:meta_value><![CDATA[latest_posts]]></wp:meta_value>
|
240 |
-
</wp:postmeta>
|
241 |
-
<wp:postmeta>
|
242 |
-
<wp:meta_key><![CDATA[_post_date_after]]></wp:meta_key>
|
243 |
-
<wp:meta_value><![CDATA[]]></wp:meta_value>
|
244 |
-
</wp:postmeta>
|
245 |
-
<wp:postmeta>
|
246 |
-
<wp:meta_key><![CDATA[_post_date_before]]></wp:meta_key>
|
247 |
-
<wp:meta_value><![CDATA[]]></wp:meta_value>
|
248 |
-
</wp:postmeta>
|
249 |
-
<wp:postmeta>
|
250 |
-
<wp:meta_key><![CDATA[_posts_per_page]]></wp:meta_key>
|
251 |
-
<wp:meta_value><![CDATA[20]]></wp:meta_value>
|
252 |
-
</wp:postmeta>
|
253 |
-
<wp:postmeta>
|
254 |
-
<wp:meta_key><![CDATA[_post_order]]></wp:meta_key>
|
255 |
-
<wp:meta_value><![CDATA[DESC]]></wp:meta_value>
|
256 |
-
</wp:postmeta>
|
257 |
-
<wp:postmeta>
|
258 |
-
<wp:meta_key><![CDATA[_post_orderby]]></wp:meta_key>
|
259 |
-
<wp:meta_value><![CDATA[ID]]></wp:meta_value>
|
260 |
-
</wp:postmeta>
|
261 |
-
<wp:postmeta>
|
262 |
-
<wp:meta_key><![CDATA[_post_height]]></wp:meta_key>
|
263 |
-
<wp:meta_value><![CDATA[500]]></wp:meta_value>
|
264 |
-
</wp:postmeta>
|
265 |
-
<wp:postmeta>
|
266 |
-
<wp:meta_key><![CDATA[_video_url]]></wp:meta_key>
|
267 |
-
<wp:meta_value><![CDATA[]]></wp:meta_value>
|
268 |
-
</wp:postmeta>
|
269 |
-
<wp:postmeta>
|
270 |
-
<wp:meta_key><![CDATA[_video_width]]></wp:meta_key>
|
271 |
-
<wp:meta_value><![CDATA[560]]></wp:meta_value>
|
272 |
-
</wp:postmeta>
|
273 |
-
<wp:postmeta>
|
274 |
-
<wp:meta_key><![CDATA[_video_height]]></wp:meta_key>
|
275 |
-
<wp:meta_value><![CDATA[315]]></wp:meta_value>
|
276 |
-
</wp:postmeta>
|
277 |
-
<wp:postmeta>
|
278 |
-
<wp:meta_key><![CDATA[_slide_by]]></wp:meta_key>
|
279 |
-
<wp:meta_value><![CDATA[1]]></wp:meta_value>
|
280 |
-
</wp:postmeta>
|
281 |
-
<wp:postmeta>
|
282 |
-
<wp:meta_key><![CDATA[_margin_right]]></wp:meta_key>
|
283 |
-
<wp:meta_value><![CDATA[10]]></wp:meta_value>
|
284 |
-
</wp:postmeta>
|
285 |
-
<wp:postmeta>
|
286 |
-
<wp:meta_key><![CDATA[_inifnity_loop]]></wp:meta_key>
|
287 |
-
<wp:meta_value><![CDATA[on]]></wp:meta_value>
|
288 |
-
</wp:postmeta>
|
289 |
-
<wp:postmeta>
|
290 |
-
<wp:meta_key><![CDATA[_lazy_load_image]]></wp:meta_key>
|
291 |
-
<wp:meta_value><![CDATA[on]]></wp:meta_value>
|
292 |
-
</wp:postmeta>
|
293 |
-
<wp:postmeta>
|
294 |
-
<wp:meta_key><![CDATA[_show_attachment_title]]></wp:meta_key>
|
295 |
-
<wp:meta_value><![CDATA[off]]></wp:meta_value>
|
296 |
-
</wp:postmeta>
|
297 |
-
<wp:postmeta>
|
298 |
-
<wp:meta_key><![CDATA[_show_attachment_caption]]></wp:meta_key>
|
299 |
-
<wp:meta_value><![CDATA[off]]></wp:meta_value>
|
300 |
-
</wp:postmeta>
|
301 |
-
<wp:postmeta>
|
302 |
-
<wp:meta_key><![CDATA[_image_size]]></wp:meta_key>
|
303 |
-
<wp:meta_value><![CDATA[medium]]></wp:meta_value>
|
304 |
-
</wp:postmeta>
|
305 |
-
<wp:postmeta>
|
306 |
-
<wp:meta_key><![CDATA[_image_target]]></wp:meta_key>
|
307 |
-
<wp:meta_value><![CDATA[_self]]></wp:meta_value>
|
308 |
-
</wp:postmeta>
|
309 |
-
<wp:postmeta>
|
310 |
-
<wp:meta_key><![CDATA[_nav_button]]></wp:meta_key>
|
311 |
-
<wp:meta_value><![CDATA[on]]></wp:meta_value>
|
312 |
-
</wp:postmeta>
|
313 |
-
<wp:postmeta>
|
314 |
-
<wp:meta_key><![CDATA[_dot_nav]]></wp:meta_key>
|
315 |
-
<wp:meta_value><![CDATA[on]]></wp:meta_value>
|
316 |
-
</wp:postmeta>
|
317 |
-
<wp:postmeta>
|
318 |
-
<wp:meta_key><![CDATA[_nav_color]]></wp:meta_key>
|
319 |
-
<wp:meta_value><![CDATA[#b7b7b7]]></wp:meta_value>
|
320 |
-
</wp:postmeta>
|
321 |
-
<wp:postmeta>
|
322 |
-
<wp:meta_key><![CDATA[_nav_active_color]]></wp:meta_key>
|
323 |
-
<wp:meta_value><![CDATA[#4caf50]]></wp:meta_value>
|
324 |
-
</wp:postmeta>
|
325 |
-
<wp:postmeta>
|
326 |
-
<wp:meta_key><![CDATA[_autoplay]]></wp:meta_key>
|
327 |
-
<wp:meta_value><![CDATA[on]]></wp:meta_value>
|
328 |
-
</wp:postmeta>
|
329 |
-
<wp:postmeta>
|
330 |
-
<wp:meta_key><![CDATA[_autoplay_timeout]]></wp:meta_key>
|
331 |
-
<wp:meta_value><![CDATA[5000]]></wp:meta_value>
|
332 |
-
</wp:postmeta>
|
333 |
-
<wp:postmeta>
|
334 |
-
<wp:meta_key><![CDATA[_autoplay_speed]]></wp:meta_key>
|
335 |
-
<wp:meta_value><![CDATA[500]]></wp:meta_value>
|
336 |
-
</wp:postmeta>
|
337 |
-
<wp:postmeta>
|
338 |
-
<wp:meta_key><![CDATA[_autoplay_pause]]></wp:meta_key>
|
339 |
-
<wp:meta_value><![CDATA[on]]></wp:meta_value>
|
340 |
-
</wp:postmeta>
|
341 |
-
<wp:postmeta>
|
342 |
-
<wp:meta_key><![CDATA[_items]]></wp:meta_key>
|
343 |
-
<wp:meta_value><![CDATA[4]]></wp:meta_value>
|
344 |
-
</wp:postmeta>
|
345 |
-
<wp:postmeta>
|
346 |
-
<wp:meta_key><![CDATA[_items_desktop]]></wp:meta_key>
|
347 |
-
<wp:meta_value><![CDATA[4]]></wp:meta_value>
|
348 |
-
</wp:postmeta>
|
349 |
-
<wp:postmeta>
|
350 |
-
<wp:meta_key><![CDATA[_items_small_desktop]]></wp:meta_key>
|
351 |
-
<wp:meta_value><![CDATA[4]]></wp:meta_value>
|
352 |
-
</wp:postmeta>
|
353 |
-
<wp:postmeta>
|
354 |
-
<wp:meta_key><![CDATA[_items_portrait_tablet]]></wp:meta_key>
|
355 |
-
<wp:meta_value><![CDATA[3]]></wp:meta_value>
|
356 |
-
</wp:postmeta>
|
357 |
-
<wp:postmeta>
|
358 |
-
<wp:meta_key><![CDATA[_items_small_portrait_tablet]]></wp:meta_key>
|
359 |
-
<wp:meta_value><![CDATA[2]]></wp:meta_value>
|
360 |
-
</wp:postmeta>
|
361 |
-
<wp:postmeta>
|
362 |
-
<wp:meta_key><![CDATA[_items_portrait_mobile]]></wp:meta_key>
|
363 |
-
<wp:meta_value><![CDATA[1]]></wp:meta_value>
|
364 |
-
</wp:postmeta>
|
365 |
-
<wp:postmeta>
|
366 |
-
<wp:meta_key><![CDATA[_post_categories]]></wp:meta_key>
|
367 |
-
<wp:meta_value><![CDATA[]]></wp:meta_value>
|
368 |
-
</wp:postmeta>
|
369 |
-
<wp:postmeta>
|
370 |
-
<wp:meta_key><![CDATA[_post_tags]]></wp:meta_key>
|
371 |
-
<wp:meta_value><![CDATA[]]></wp:meta_value>
|
372 |
-
</wp:postmeta>
|
373 |
-
<wp:postmeta>
|
374 |
-
<wp:meta_key><![CDATA[_post_in]]></wp:meta_key>
|
375 |
-
<wp:meta_value><![CDATA[]]></wp:meta_value>
|
376 |
-
</wp:postmeta>
|
377 |
-
<wp:postmeta>
|
378 |
-
<wp:meta_key><![CDATA[_images_urls]]></wp:meta_key>
|
379 |
-
<wp:meta_value><![CDATA[a:1:{i:0;a:5:{s:3:"url";s:0:"";s:5:"title";s:0:"";s:7:"caption";s:0:"";s:3:"alt";s:0:"";s:8:"link_url";s:0:"";}}]]></wp:meta_value>
|
380 |
-
</wp:postmeta>
|
381 |
-
</item>
|
382 |
-
<item>
|
383 |
-
<title>Video Carousel Example</title>
|
384 |
-
<link>http://wordpress.dev/?carousels=video-carousel-example</link>
|
385 |
-
<pubDate>Thu, 12 Jan 2017 15:01:44 +0000</pubDate>
|
386 |
-
<dc:creator><![CDATA[sayful]]></dc:creator>
|
387 |
-
<guid isPermaLink="false">http://wordpress.dev/?post_type=carousels&p=1721</guid>
|
388 |
-
<description></description>
|
389 |
-
<content:encoded><![CDATA[]]></content:encoded>
|
390 |
-
<excerpt:encoded><![CDATA[]]></excerpt:encoded>
|
391 |
-
<wp:post_id>1721</wp:post_id>
|
392 |
-
<wp:post_date><![CDATA[2017-01-12 15:01:44]]></wp:post_date>
|
393 |
-
<wp:post_date_gmt><![CDATA[2017-01-12 15:01:44]]></wp:post_date_gmt>
|
394 |
-
<wp:comment_status><![CDATA[closed]]></wp:comment_status>
|
395 |
-
<wp:ping_status><![CDATA[closed]]></wp:ping_status>
|
396 |
-
<wp:post_name><![CDATA[video-carousel-example]]></wp:post_name>
|
397 |
-
<wp:status><![CDATA[publish]]></wp:status>
|
398 |
-
<wp:post_parent>0</wp:post_parent>
|
399 |
-
<wp:menu_order>0</wp:menu_order>
|
400 |
-
<wp:post_type><![CDATA[carousels]]></wp:post_type>
|
401 |
-
<wp:post_password><![CDATA[]]></wp:post_password>
|
402 |
-
<wp:is_sticky>0</wp:is_sticky>
|
403 |
-
<wp:postmeta>
|
404 |
-
<wp:meta_key><![CDATA[_edit_last]]></wp:meta_key>
|
405 |
-
<wp:meta_value><![CDATA[1]]></wp:meta_value>
|
406 |
-
</wp:postmeta>
|
407 |
-
<wp:postmeta>
|
408 |
-
<wp:meta_key><![CDATA[_slide_type]]></wp:meta_key>
|
409 |
-
<wp:meta_value><![CDATA[video-carousel]]></wp:meta_value>
|
410 |
-
</wp:postmeta>
|
411 |
-
<wp:postmeta>
|
412 |
-
<wp:meta_key><![CDATA[_wpdh_image_ids]]></wp:meta_key>
|
413 |
-
<wp:meta_value><![CDATA[]]></wp:meta_value>
|
414 |
-
</wp:postmeta>
|
415 |
-
<wp:postmeta>
|
416 |
-
<wp:meta_key><![CDATA[_post_query_type]]></wp:meta_key>
|
417 |
-
<wp:meta_value><![CDATA[latest_posts]]></wp:meta_value>
|
418 |
-
</wp:postmeta>
|
419 |
-
<wp:postmeta>
|
420 |
-
<wp:meta_key><![CDATA[_post_date_after]]></wp:meta_key>
|
421 |
-
<wp:meta_value><![CDATA[]]></wp:meta_value>
|
422 |
-
</wp:postmeta>
|
423 |
-
<wp:postmeta>
|
424 |
-
<wp:meta_key><![CDATA[_post_date_before]]></wp:meta_key>
|
425 |
-
<wp:meta_value><![CDATA[]]></wp:meta_value>
|
426 |
-
</wp:postmeta>
|
427 |
-
<wp:postmeta>
|
428 |
-
<wp:meta_key><![CDATA[_posts_per_page]]></wp:meta_key>
|
429 |
-
<wp:meta_value><![CDATA[12]]></wp:meta_value>
|
430 |
-
</wp:postmeta>
|
431 |
-
<wp:postmeta>
|
432 |
-
<wp:meta_key><![CDATA[_post_order]]></wp:meta_key>
|
433 |
-
<wp:meta_value><![CDATA[DESC]]></wp:meta_value>
|
434 |
-
</wp:postmeta>
|
435 |
-
<wp:postmeta>
|
436 |
-
<wp:meta_key><![CDATA[_post_orderby]]></wp:meta_key>
|
437 |
-
<wp:meta_value><![CDATA[ID]]></wp:meta_value>
|
438 |
-
</wp:postmeta>
|
439 |
-
<wp:postmeta>
|
440 |
-
<wp:meta_key><![CDATA[_post_height]]></wp:meta_key>
|
441 |
-
<wp:meta_value><![CDATA[450]]></wp:meta_value>
|
442 |
-
</wp:postmeta>
|
443 |
-
<wp:postmeta>
|
444 |
-
<wp:meta_key><![CDATA[_video_url]]></wp:meta_key>
|
445 |
-
<wp:meta_value><![CDATA[https://www.youtube.com/watch?v=O4-EM32h7b4,https://www.youtube.com/watch?v=72IO4gzB8mU,https://vimeo.com/193773669,https://vimeo.com/193517656,https://www.youtube.com/watch?v=O4-EM32h7b4,https://www.youtube.com/watch?v=72IO4gzB8mU,https://vimeo.com/193773669,https://vimeo.com/193517656]]></wp:meta_value>
|
446 |
-
</wp:postmeta>
|
447 |
-
<wp:postmeta>
|
448 |
-
<wp:meta_key><![CDATA[_video_width]]></wp:meta_key>
|
449 |
-
<wp:meta_value><![CDATA[560]]></wp:meta_value>
|
450 |
-
</wp:postmeta>
|
451 |
-
<wp:postmeta>
|
452 |
-
<wp:meta_key><![CDATA[_video_height]]></wp:meta_key>
|
453 |
-
<wp:meta_value><![CDATA[315]]></wp:meta_value>
|
454 |
-
</wp:postmeta>
|
455 |
-
<wp:postmeta>
|
456 |
-
<wp:meta_key><![CDATA[_slide_by]]></wp:meta_key>
|
457 |
-
<wp:meta_value><![CDATA[1]]></wp:meta_value>
|
458 |
-
</wp:postmeta>
|
459 |
-
<wp:postmeta>
|
460 |
-
<wp:meta_key><![CDATA[_margin_right]]></wp:meta_key>
|
461 |
-
<wp:meta_value><![CDATA[10]]></wp:meta_value>
|
462 |
-
</wp:postmeta>
|
463 |
-
<wp:postmeta>
|
464 |
-
<wp:meta_key><![CDATA[_inifnity_loop]]></wp:meta_key>
|
465 |
-
<wp:meta_value><![CDATA[on]]></wp:meta_value>
|
466 |
-
</wp:postmeta>
|
467 |
-
<wp:postmeta>
|
468 |
-
<wp:meta_key><![CDATA[_lazy_load_image]]></wp:meta_key>
|
469 |
-
<wp:meta_value><![CDATA[off]]></wp:meta_value>
|
470 |
-
</wp:postmeta>
|
471 |
-
<wp:postmeta>
|
472 |
-
<wp:meta_key><![CDATA[_show_attachment_title]]></wp:meta_key>
|
473 |
-
<wp:meta_value><![CDATA[off]]></wp:meta_value>
|
474 |
-
</wp:postmeta>
|
475 |
-
<wp:postmeta>
|
476 |
-
<wp:meta_key><![CDATA[_show_attachment_caption]]></wp:meta_key>
|
477 |
-
<wp:meta_value><![CDATA[off]]></wp:meta_value>
|
478 |
-
</wp:postmeta>
|
479 |
-
<wp:postmeta>
|
480 |
-
<wp:meta_key><![CDATA[_image_size]]></wp:meta_key>
|
481 |
-
<wp:meta_value><![CDATA[thumbnail]]></wp:meta_value>
|
482 |
-
</wp:postmeta>
|
483 |
-
<wp:postmeta>
|
484 |
-
<wp:meta_key><![CDATA[_image_target]]></wp:meta_key>
|
485 |
-
<wp:meta_value><![CDATA[_self]]></wp:meta_value>
|
486 |
-
</wp:postmeta>
|
487 |
-
<wp:postmeta>
|
488 |
-
<wp:meta_key><![CDATA[_nav_button]]></wp:meta_key>
|
489 |
-
<wp:meta_value><![CDATA[on]]></wp:meta_value>
|
490 |
-
</wp:postmeta>
|
491 |
-
<wp:postmeta>
|
492 |
-
<wp:meta_key><![CDATA[_dot_nav]]></wp:meta_key>
|
493 |
-
<wp:meta_value><![CDATA[on]]></wp:meta_value>
|
494 |
-
</wp:postmeta>
|
495 |
-
<wp:postmeta>
|
496 |
-
<wp:meta_key><![CDATA[_nav_color]]></wp:meta_key>
|
497 |
-
<wp:meta_value><![CDATA[#f1f1f1]]></wp:meta_value>
|
498 |
-
</wp:postmeta>
|
499 |
-
<wp:postmeta>
|
500 |
-
<wp:meta_key><![CDATA[_nav_active_color]]></wp:meta_key>
|
501 |
-
<wp:meta_value><![CDATA[#4caf50]]></wp:meta_value>
|
502 |
-
</wp:postmeta>
|
503 |
-
<wp:postmeta>
|
504 |
-
<wp:meta_key><![CDATA[_autoplay]]></wp:meta_key>
|
505 |
-
<wp:meta_value><![CDATA[on]]></wp:meta_value>
|
506 |
-
</wp:postmeta>
|
507 |
-
<wp:postmeta>
|
508 |
-
<wp:meta_key><![CDATA[_autoplay_timeout]]></wp:meta_key>
|
509 |
-
<wp:meta_value><![CDATA[5000]]></wp:meta_value>
|
510 |
-
</wp:postmeta>
|
511 |
-
<wp:postmeta>
|
512 |
-
<wp:meta_key><![CDATA[_autoplay_speed]]></wp:meta_key>
|
513 |
-
<wp:meta_value><![CDATA[500]]></wp:meta_value>
|
514 |
-
</wp:postmeta>
|
515 |
-
<wp:postmeta>
|
516 |
-
<wp:meta_key><![CDATA[_autoplay_pause]]></wp:meta_key>
|
517 |
-
<wp:meta_value><![CDATA[off]]></wp:meta_value>
|
518 |
-
</wp:postmeta>
|
519 |
-
<wp:postmeta>
|
520 |
-
<wp:meta_key><![CDATA[_items]]></wp:meta_key>
|
521 |
-
<wp:meta_value><![CDATA[4]]></wp:meta_value>
|
522 |
-
</wp:postmeta>
|
523 |
-
<wp:postmeta>
|
524 |
-
<wp:meta_key><![CDATA[_items_desktop]]></wp:meta_key>
|
525 |
-
<wp:meta_value><![CDATA[4]]></wp:meta_value>
|
526 |
-
</wp:postmeta>
|
527 |
-
<wp:postmeta>
|
528 |
-
<wp:meta_key><![CDATA[_items_small_desktop]]></wp:meta_key>
|
529 |
-
<wp:meta_value><![CDATA[4]]></wp:meta_value>
|
530 |
-
</wp:postmeta>
|
531 |
-
<wp:postmeta>
|
532 |
-
<wp:meta_key><![CDATA[_items_portrait_tablet]]></wp:meta_key>
|
533 |
-
<wp:meta_value><![CDATA[3]]></wp:meta_value>
|
534 |
-
</wp:postmeta>
|
535 |
-
<wp:postmeta>
|
536 |
-
<wp:meta_key><![CDATA[_items_small_portrait_tablet]]></wp:meta_key>
|
537 |
-
<wp:meta_value><![CDATA[2]]></wp:meta_value>
|
538 |
-
</wp:postmeta>
|
539 |
-
<wp:postmeta>
|
540 |
-
<wp:meta_key><![CDATA[_items_portrait_mobile]]></wp:meta_key>
|
541 |
-
<wp:meta_value><![CDATA[1]]></wp:meta_value>
|
542 |
-
</wp:postmeta>
|
543 |
-
<wp:postmeta>
|
544 |
-
<wp:meta_key><![CDATA[_post_categories]]></wp:meta_key>
|
545 |
-
<wp:meta_value><![CDATA[]]></wp:meta_value>
|
546 |
-
</wp:postmeta>
|
547 |
-
<wp:postmeta>
|
548 |
-
<wp:meta_key><![CDATA[_post_tags]]></wp:meta_key>
|
549 |
-
<wp:meta_value><![CDATA[]]></wp:meta_value>
|
550 |
-
</wp:postmeta>
|
551 |
-
<wp:postmeta>
|
552 |
-
<wp:meta_key><![CDATA[_post_in]]></wp:meta_key>
|
553 |
-
<wp:meta_value><![CDATA[]]></wp:meta_value>
|
554 |
-
</wp:postmeta>
|
555 |
-
<wp:postmeta>
|
556 |
-
<wp:meta_key><![CDATA[_images_urls]]></wp:meta_key>
|
557 |
-
<wp:meta_value><![CDATA[a:1:{i:0;a:5:{s:3:"url";s:0:"";s:5:"title";s:0:"";s:7:"caption";s:0:"";s:3:"alt";s:0:"";s:8:"link_url";s:0:"";}}]]></wp:meta_value>
|
558 |
-
</wp:postmeta>
|
559 |
-
</item>
|
560 |
-
<item>
|
561 |
-
<title>Image carousel from media gallery</title>
|
562 |
-
<link>http://wordpress.dev/?carousels=image-carousel-from-media-gallery</link>
|
563 |
-
<pubDate>Thu, 12 Jan 2017 15:03:10 +0000</pubDate>
|
564 |
-
<dc:creator><![CDATA[sayful]]></dc:creator>
|
565 |
-
<guid isPermaLink="false">http://wordpress.dev/?post_type=carousels&p=1722</guid>
|
566 |
-
<description></description>
|
567 |
-
<content:encoded><![CDATA[]]></content:encoded>
|
568 |
-
<excerpt:encoded><![CDATA[]]></excerpt:encoded>
|
569 |
-
<wp:post_id>1722</wp:post_id>
|
570 |
-
<wp:post_date><![CDATA[2017-01-12 15:03:10]]></wp:post_date>
|
571 |
-
<wp:post_date_gmt><![CDATA[2017-01-12 15:03:10]]></wp:post_date_gmt>
|
572 |
-
<wp:comment_status><![CDATA[closed]]></wp:comment_status>
|
573 |
-
<wp:ping_status><![CDATA[closed]]></wp:ping_status>
|
574 |
-
<wp:post_name><![CDATA[image-carousel-from-media-gallery]]></wp:post_name>
|
575 |
-
<wp:status><![CDATA[publish]]></wp:status>
|
576 |
-
<wp:post_parent>0</wp:post_parent>
|
577 |
-
<wp:menu_order>0</wp:menu_order>
|
578 |
-
<wp:post_type><![CDATA[carousels]]></wp:post_type>
|
579 |
-
<wp:post_password><![CDATA[]]></wp:post_password>
|
580 |
-
<wp:is_sticky>0</wp:is_sticky>
|
581 |
-
<wp:postmeta>
|
582 |
-
<wp:meta_key><![CDATA[_edit_last]]></wp:meta_key>
|
583 |
-
<wp:meta_value><![CDATA[1]]></wp:meta_value>
|
584 |
-
</wp:postmeta>
|
585 |
-
<wp:postmeta>
|
586 |
-
<wp:meta_key><![CDATA[_wpdh_image_ids]]></wp:meta_key>
|
587 |
-
<wp:meta_value><![CDATA[1710,1692,1691,1687,1686,1628,1027,1022,1045,]]></wp:meta_value>
|
588 |
-
</wp:postmeta>
|
589 |
-
<wp:postmeta>
|
590 |
-
<wp:meta_key><![CDATA[_slide_type]]></wp:meta_key>
|
591 |
-
<wp:meta_value><![CDATA[image-carousel]]></wp:meta_value>
|
592 |
-
</wp:postmeta>
|
593 |
-
<wp:postmeta>
|
594 |
-
<wp:meta_key><![CDATA[_post_query_type]]></wp:meta_key>
|
595 |
-
<wp:meta_value><![CDATA[latest_posts]]></wp:meta_value>
|
596 |
-
</wp:postmeta>
|
597 |
-
<wp:postmeta>
|
598 |
-
<wp:meta_key><![CDATA[_post_date_after]]></wp:meta_key>
|
599 |
-
<wp:meta_value><![CDATA[]]></wp:meta_value>
|
600 |
-
</wp:postmeta>
|
601 |
-
<wp:postmeta>
|
602 |
-
<wp:meta_key><![CDATA[_post_date_before]]></wp:meta_key>
|
603 |
-
<wp:meta_value><![CDATA[]]></wp:meta_value>
|
604 |
-
</wp:postmeta>
|
605 |
-
<wp:postmeta>
|
606 |
-
<wp:meta_key><![CDATA[_posts_per_page]]></wp:meta_key>
|
607 |
-
<wp:meta_value><![CDATA[12]]></wp:meta_value>
|
608 |
-
</wp:postmeta>
|
609 |
-
<wp:postmeta>
|
610 |
-
<wp:meta_key><![CDATA[_post_order]]></wp:meta_key>
|
611 |
-
<wp:meta_value><![CDATA[DESC]]></wp:meta_value>
|
612 |
-
</wp:postmeta>
|
613 |
-
<wp:postmeta>
|
614 |
-
<wp:meta_key><![CDATA[_post_orderby]]></wp:meta_key>
|
615 |
-
<wp:meta_value><![CDATA[ID]]></wp:meta_value>
|
616 |
-
</wp:postmeta>
|
617 |
-
<wp:postmeta>
|
618 |
-
<wp:meta_key><![CDATA[_post_height]]></wp:meta_key>
|
619 |
-
<wp:meta_value><![CDATA[450]]></wp:meta_value>
|
620 |
-
</wp:postmeta>
|
621 |
-
<wp:postmeta>
|
622 |
-
<wp:meta_key><![CDATA[_video_url]]></wp:meta_key>
|
623 |
-
<wp:meta_value><![CDATA[]]></wp:meta_value>
|
624 |
-
</wp:postmeta>
|
625 |
-
<wp:postmeta>
|
626 |
-
<wp:meta_key><![CDATA[_video_width]]></wp:meta_key>
|
627 |
-
<wp:meta_value><![CDATA[560]]></wp:meta_value>
|
628 |
-
</wp:postmeta>
|
629 |
-
<wp:postmeta>
|
630 |
-
<wp:meta_key><![CDATA[_video_height]]></wp:meta_key>
|
631 |
-
<wp:meta_value><![CDATA[315]]></wp:meta_value>
|
632 |
-
</wp:postmeta>
|
633 |
-
<wp:postmeta>
|
634 |
-
<wp:meta_key><![CDATA[_slide_by]]></wp:meta_key>
|
635 |
-
<wp:meta_value><![CDATA[1]]></wp:meta_value>
|
636 |
-
</wp:postmeta>
|
637 |
-
<wp:postmeta>
|
638 |
-
<wp:meta_key><![CDATA[_margin_right]]></wp:meta_key>
|
639 |
-
<wp:meta_value><![CDATA[10]]></wp:meta_value>
|
640 |
-
</wp:postmeta>
|
641 |
-
<wp:postmeta>
|
642 |
-
<wp:meta_key><![CDATA[_inifnity_loop]]></wp:meta_key>
|
643 |
-
<wp:meta_value><![CDATA[on]]></wp:meta_value>
|
644 |
-
</wp:postmeta>
|
645 |
-
<wp:postmeta>
|
646 |
-
<wp:meta_key><![CDATA[_lazy_load_image]]></wp:meta_key>
|
647 |
-
<wp:meta_value><![CDATA[on]]></wp:meta_value>
|
648 |
-
</wp:postmeta>
|
649 |
-
<wp:postmeta>
|
650 |
-
<wp:meta_key><![CDATA[_show_attachment_title]]></wp:meta_key>
|
651 |
-
<wp:meta_value><![CDATA[on]]></wp:meta_value>
|
652 |
-
</wp:postmeta>
|
653 |
-
<wp:postmeta>
|
654 |
-
<wp:meta_key><![CDATA[_show_attachment_caption]]></wp:meta_key>
|
655 |
-
<wp:meta_value><![CDATA[on]]></wp:meta_value>
|
656 |
-
</wp:postmeta>
|
657 |
-
<wp:postmeta>
|
658 |
-
<wp:meta_key><![CDATA[_image_size]]></wp:meta_key>
|
659 |
-
<wp:meta_value><![CDATA[medium]]></wp:meta_value>
|
660 |
-
</wp:postmeta>
|
661 |
-
<wp:postmeta>
|
662 |
-
<wp:meta_key><![CDATA[_image_target]]></wp:meta_key>
|
663 |
-
<wp:meta_value><![CDATA[_self]]></wp:meta_value>
|
664 |
-
</wp:postmeta>
|
665 |
-
<wp:postmeta>
|
666 |
-
<wp:meta_key><![CDATA[_nav_button]]></wp:meta_key>
|
667 |
-
<wp:meta_value><![CDATA[on]]></wp:meta_value>
|
668 |
-
</wp:postmeta>
|
669 |
-
<wp:postmeta>
|
670 |
-
<wp:meta_key><![CDATA[_dot_nav]]></wp:meta_key>
|
671 |
-
<wp:meta_value><![CDATA[on]]></wp:meta_value>
|
672 |
-
</wp:postmeta>
|
673 |
-
<wp:postmeta>
|
674 |
-
<wp:meta_key><![CDATA[_nav_color]]></wp:meta_key>
|
675 |
-
<wp:meta_value><![CDATA[#f1f1f1]]></wp:meta_value>
|
676 |
-
</wp:postmeta>
|
677 |
-
<wp:postmeta>
|
678 |
-
<wp:meta_key><![CDATA[_nav_active_color]]></wp:meta_key>
|
679 |
-
<wp:meta_value><![CDATA[#4caf50]]></wp:meta_value>
|
680 |
-
</wp:postmeta>
|
681 |
-
<wp:postmeta>
|
682 |
-
<wp:meta_key><![CDATA[_autoplay]]></wp:meta_key>
|
683 |
-
<wp:meta_value><![CDATA[on]]></wp:meta_value>
|
684 |
-
</wp:postmeta>
|
685 |
-
<wp:postmeta>
|
686 |
-
<wp:meta_key><![CDATA[_autoplay_timeout]]></wp:meta_key>
|
687 |
-
<wp:meta_value><![CDATA[5000]]></wp:meta_value>
|
688 |
-
</wp:postmeta>
|
689 |
-
<wp:postmeta>
|
690 |
-
<wp:meta_key><![CDATA[_autoplay_speed]]></wp:meta_key>
|
691 |
-
<wp:meta_value><![CDATA[500]]></wp:meta_value>
|
692 |
-
</wp:postmeta>
|
693 |
-
<wp:postmeta>
|
694 |
-
<wp:meta_key><![CDATA[_autoplay_pause]]></wp:meta_key>
|
695 |
-
<wp:meta_value><![CDATA[off]]></wp:meta_value>
|
696 |
-
</wp:postmeta>
|
697 |
-
<wp:postmeta>
|
698 |
-
<wp:meta_key><![CDATA[_items]]></wp:meta_key>
|
699 |
-
<wp:meta_value><![CDATA[4]]></wp:meta_value>
|
700 |
-
</wp:postmeta>
|
701 |
-
<wp:postmeta>
|
702 |
-
<wp:meta_key><![CDATA[_items_desktop]]></wp:meta_key>
|
703 |
-
<wp:meta_value><![CDATA[4]]></wp:meta_value>
|
704 |
-
</wp:postmeta>
|
705 |
-
<wp:postmeta>
|
706 |
-
<wp:meta_key><![CDATA[_items_small_desktop]]></wp:meta_key>
|
707 |
-
<wp:meta_value><![CDATA[4]]></wp:meta_value>
|
708 |
-
</wp:postmeta>
|
709 |
-
<wp:postmeta>
|
710 |
-
<wp:meta_key><![CDATA[_items_portrait_tablet]]></wp:meta_key>
|
711 |
-
<wp:meta_value><![CDATA[3]]></wp:meta_value>
|
712 |
-
</wp:postmeta>
|
713 |
-
<wp:postmeta>
|
714 |
-
<wp:meta_key><![CDATA[_items_small_portrait_tablet]]></wp:meta_key>
|
715 |
-
<wp:meta_value><![CDATA[2]]></wp:meta_value>
|
716 |
-
</wp:postmeta>
|
717 |
-
<wp:postmeta>
|
718 |
-
<wp:meta_key><![CDATA[_items_portrait_mobile]]></wp:meta_key>
|
719 |
-
<wp:meta_value><![CDATA[1]]></wp:meta_value>
|
720 |
-
</wp:postmeta>
|
721 |
-
<wp:postmeta>
|
722 |
-
<wp:meta_key><![CDATA[_post_categories]]></wp:meta_key>
|
723 |
-
<wp:meta_value><![CDATA[]]></wp:meta_value>
|
724 |
-
</wp:postmeta>
|
725 |
-
<wp:postmeta>
|
726 |
-
<wp:meta_key><![CDATA[_post_tags]]></wp:meta_key>
|
727 |
-
<wp:meta_value><![CDATA[]]></wp:meta_value>
|
728 |
-
</wp:postmeta>
|
729 |
-
<wp:postmeta>
|
730 |
-
<wp:meta_key><![CDATA[_post_in]]></wp:meta_key>
|
731 |
-
<wp:meta_value><![CDATA[]]></wp:meta_value>
|
732 |
-
</wp:postmeta>
|
733 |
-
<wp:postmeta>
|
734 |
-
<wp:meta_key><![CDATA[_images_urls]]></wp:meta_key>
|
735 |
-
<wp:meta_value><![CDATA[a:1:{i:0;a:5:{s:3:"url";s:0:"";s:5:"title";s:0:"";s:7:"caption";s:0:"";s:3:"alt";s:0:"";s:8:"link_url";s:0:"";}}]]></wp:meta_value>
|
736 |
-
</wp:postmeta>
|
737 |
-
</item>
|
738 |
-
</channel>
|
739 |
-
</rss>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/class-carousel-slider-activator.php
DELETED
@@ -1,75 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Fired during plugin activation.
|
4 |
-
* This class defines all code necessary to run during the plugin's activation.
|
5 |
-
*
|
6 |
-
* @since 1.6.0
|
7 |
-
* @author Sayful Islam <sayful.islam001@gmail.com>
|
8 |
-
*/
|
9 |
-
if ( ! class_exists( 'Carousel_Slider_Activator' ) ):
|
10 |
-
|
11 |
-
class Carousel_Slider_Activator {
|
12 |
-
|
13 |
-
protected static $instance = null;
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Ensures only one instance of this class is loaded or can be loaded.
|
17 |
-
*
|
18 |
-
* @return Carousel_Slider_Activator
|
19 |
-
*/
|
20 |
-
public static function init() {
|
21 |
-
if ( is_null( self::$instance ) ) {
|
22 |
-
self::$instance = new self();
|
23 |
-
}
|
24 |
-
|
25 |
-
return self::$instance;
|
26 |
-
}
|
27 |
-
|
28 |
-
public function __construct() {
|
29 |
-
add_action( 'carousel_slider_activation', array( $this, 'activate' ) );
|
30 |
-
}
|
31 |
-
|
32 |
-
/**
|
33 |
-
* Script that should load upon plugin activation
|
34 |
-
*/
|
35 |
-
public function activate() {
|
36 |
-
$version = get_option( 'carousel_slider_version' );
|
37 |
-
|
38 |
-
if ( $version == false ) {
|
39 |
-
$this->update_meta_160();
|
40 |
-
}
|
41 |
-
|
42 |
-
// Add plugin version to database
|
43 |
-
update_option( 'carousel_slider_version', CAROUSEL_SLIDER_VERSION );
|
44 |
-
}
|
45 |
-
|
46 |
-
/**
|
47 |
-
* Update meta for prior to version 1.6.0
|
48 |
-
*/
|
49 |
-
public function update_meta_160() {
|
50 |
-
$carousels = get_posts( array(
|
51 |
-
'post_type' => 'carousels',
|
52 |
-
'post_status' => 'any',
|
53 |
-
) );
|
54 |
-
|
55 |
-
if ( count( $carousels ) > 0 ) {
|
56 |
-
foreach ( $carousels as $carousel ) {
|
57 |
-
|
58 |
-
$id = $carousel->ID;
|
59 |
-
$_items_desktop = get_post_meta( $id, '_items', true );
|
60 |
-
$_lazy_load = get_post_meta( $id, '_lazy_load_image', true );
|
61 |
-
$_lazy_load = $_lazy_load == 'on' ? 'on' : 'off';
|
62 |
-
|
63 |
-
update_post_meta( $id, '_lazy_load_image', $_lazy_load );
|
64 |
-
update_post_meta( $id, '_items_desktop', $_items_desktop );
|
65 |
-
update_post_meta( $id, '_slide_type', 'image-carousel' );
|
66 |
-
update_post_meta( $id, '_video_width', '560' );
|
67 |
-
update_post_meta( $id, '_video_height', '315' );
|
68 |
-
}
|
69 |
-
}
|
70 |
-
}
|
71 |
-
}
|
72 |
-
|
73 |
-
endif;
|
74 |
-
|
75 |
-
Carousel_Slider_Activator::init();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/class-carousel-slider-admin.php
DELETED
@@ -1,438 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// If this file is called directly, abort.
|
3 |
-
if ( ! defined( 'WPINC' ) ) {
|
4 |
-
die;
|
5 |
-
}
|
6 |
-
|
7 |
-
if ( ! class_exists( 'Carousel_Slider_Admin' ) ):
|
8 |
-
|
9 |
-
class Carousel_Slider_Admin {
|
10 |
-
|
11 |
-
private $form;
|
12 |
-
protected static $instance = null;
|
13 |
-
|
14 |
-
/**
|
15 |
-
* Ensures only one instance of this class is loaded or can be loaded.
|
16 |
-
*
|
17 |
-
* @return Carousel_Slider_Admin
|
18 |
-
*/
|
19 |
-
public static function init() {
|
20 |
-
if ( is_null( self::$instance ) ) {
|
21 |
-
self::$instance = new self();
|
22 |
-
}
|
23 |
-
|
24 |
-
return self::$instance;
|
25 |
-
}
|
26 |
-
|
27 |
-
/**
|
28 |
-
* Carousel_Slider_Admin constructor.
|
29 |
-
*/
|
30 |
-
public function __construct() {
|
31 |
-
$this->form = new Carousel_Slider_Form();
|
32 |
-
|
33 |
-
add_action( 'init', array( $this, 'carousel_post_type' ) );
|
34 |
-
add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) );
|
35 |
-
add_filter( 'manage_edit-carousels_columns', array( $this, 'columns_head' ) );
|
36 |
-
add_filter( 'manage_carousels_posts_custom_column', array( $this, 'columns_content' ), 10, 2 );
|
37 |
-
add_action( 'save_post', array( $this, 'save_meta_box' ) );
|
38 |
-
add_action( 'wp_ajax_carousel_slider_save_images', array( $this, 'save_images' ) );
|
39 |
-
|
40 |
-
// Remove view and Quick Edit from Carousels
|
41 |
-
add_filter( 'post_row_actions', array( $this, 'post_row_actions' ), 10, 2 );
|
42 |
-
|
43 |
-
// Add custom link to media gallery
|
44 |
-
add_filter( "attachment_fields_to_edit", array( $this, "attachment_fields_to_edit" ), null, 2 );
|
45 |
-
add_filter( "attachment_fields_to_save", array( $this, "attachment_fields_to_save" ), null, 2 );
|
46 |
-
}
|
47 |
-
|
48 |
-
/**
|
49 |
-
* Carousel slider post type
|
50 |
-
*/
|
51 |
-
public function carousel_post_type() {
|
52 |
-
$labels = array(
|
53 |
-
'name' => _x( 'Slides', 'Post Type General Name', 'carousel-slider' ),
|
54 |
-
'singular_name' => _x( 'Slide', 'Post Type Singular Name', 'carousel-slider' ),
|
55 |
-
'menu_name' => __( 'Carousel Slider', 'carousel-slider' ),
|
56 |
-
'parent_item_colon' => __( 'Parent Slide:', 'carousel-slider' ),
|
57 |
-
'all_items' => __( 'All Slides', 'carousel-slider' ),
|
58 |
-
'view_item' => __( 'View Slide', 'carousel-slider' ),
|
59 |
-
'add_new_item' => __( 'Add New Slide', 'carousel-slider' ),
|
60 |
-
'add_new' => __( 'Add New', 'carousel-slider' ),
|
61 |
-
'edit_item' => __( 'Edit Slide', 'carousel-slider' ),
|
62 |
-
'update_item' => __( 'Update Slide', 'carousel-slider' ),
|
63 |
-
'search_items' => __( 'Search Slide', 'carousel-slider' ),
|
64 |
-
'not_found' => __( 'Not found', 'carousel-slider' ),
|
65 |
-
'not_found_in_trash' => __( 'Not found in Trash', 'carousel-slider' ),
|
66 |
-
);
|
67 |
-
$args = array(
|
68 |
-
'label' => __( 'Slide', 'carousel-slider' ),
|
69 |
-
'description' => __( 'The easiest way to create carousel slide', 'carousel-slider' ),
|
70 |
-
'labels' => $labels,
|
71 |
-
'supports' => array( 'title' ),
|
72 |
-
'hierarchical' => false,
|
73 |
-
'public' => false,
|
74 |
-
'show_ui' => true,
|
75 |
-
'show_in_menu' => true,
|
76 |
-
'show_in_nav_menus' => true,
|
77 |
-
'show_in_admin_bar' => true,
|
78 |
-
'menu_position' => 5.55525,
|
79 |
-
'menu_icon' => 'dashicons-slides',
|
80 |
-
'can_export' => true,
|
81 |
-
'has_archive' => false,
|
82 |
-
'exclude_from_search' => true,
|
83 |
-
'publicly_queryable' => true,
|
84 |
-
'rewrite' => false,
|
85 |
-
'capability_type' => 'post',
|
86 |
-
);
|
87 |
-
|
88 |
-
register_post_type( 'carousels', $args );
|
89 |
-
}
|
90 |
-
|
91 |
-
/**
|
92 |
-
* Hide view and quick edit from carousel slider admin
|
93 |
-
*
|
94 |
-
* @param array $actions
|
95 |
-
* @param WP_Post $post
|
96 |
-
*
|
97 |
-
* @return mixed
|
98 |
-
*/
|
99 |
-
public function post_row_actions( $actions, $post ) {
|
100 |
-
if ( $post->post_type != 'carousels' ) {
|
101 |
-
return $actions;
|
102 |
-
}
|
103 |
-
|
104 |
-
unset( $actions['view'] );
|
105 |
-
unset( $actions['inline hide-if-no-js'] );
|
106 |
-
|
107 |
-
return $actions;
|
108 |
-
}
|
109 |
-
|
110 |
-
/**
|
111 |
-
* Customize Carousel slider list table head
|
112 |
-
*
|
113 |
-
* @return array
|
114 |
-
*/
|
115 |
-
public function columns_head() {
|
116 |
-
|
117 |
-
$columns = array(
|
118 |
-
'cb' => '<input type="checkbox">',
|
119 |
-
'title' => __( 'Carousel Slide Title', 'carousel-slider' ),
|
120 |
-
'usage' => __( 'Shortcode', 'carousel-slider' ),
|
121 |
-
'slide_type' => __( 'Slide Type', 'carousel-slider' )
|
122 |
-
);
|
123 |
-
|
124 |
-
return $columns;
|
125 |
-
|
126 |
-
}
|
127 |
-
|
128 |
-
/**
|
129 |
-
* Generate carousel slider list table content
|
130 |
-
*
|
131 |
-
* @param $column
|
132 |
-
* @param $post_id
|
133 |
-
*/
|
134 |
-
public function columns_content( $column, $post_id ) {
|
135 |
-
switch ( $column ) {
|
136 |
-
|
137 |
-
case 'usage':
|
138 |
-
?>
|
139 |
-
<input
|
140 |
-
type="text"
|
141 |
-
onmousedown="this.clicked = 1;"
|
142 |
-
onfocus="if (!this.clicked) this.select(); else this.clicked = 2;"
|
143 |
-
onclick="if (this.clicked === 2) this.select(); this.clicked = 0;"
|
144 |
-
value="[carousel_slide id='<?php echo $post_id; ?>']"
|
145 |
-
style="background-color: #f1f1f1;min-width: 250px;padding: 5px 8px;"
|
146 |
-
>
|
147 |
-
<?php
|
148 |
-
|
149 |
-
break;
|
150 |
-
|
151 |
-
case 'slide_type':
|
152 |
-
$slide_type = get_post_meta( get_the_ID(), '_slide_type', true );
|
153 |
-
echo ucwords( str_replace( '-', ' ', $slide_type ) );
|
154 |
-
|
155 |
-
break;
|
156 |
-
default :
|
157 |
-
break;
|
158 |
-
}
|
159 |
-
}
|
160 |
-
|
161 |
-
/**
|
162 |
-
* Add carousel slider meta box
|
163 |
-
*/
|
164 |
-
public function add_meta_boxes() {
|
165 |
-
add_meta_box(
|
166 |
-
"carousel-slider-meta-boxes",
|
167 |
-
__( "Carousel Slider", 'carousel-slider' ),
|
168 |
-
array( $this, 'carousel_slider_meta_boxes' ),
|
169 |
-
"carousels",
|
170 |
-
"normal",
|
171 |
-
"high"
|
172 |
-
);
|
173 |
-
}
|
174 |
-
|
175 |
-
/**
|
176 |
-
* Load meta box content
|
177 |
-
*
|
178 |
-
* @param WP_Post $post
|
179 |
-
*/
|
180 |
-
public function carousel_slider_meta_boxes( $post ) {
|
181 |
-
wp_nonce_field( 'carousel_slider_nonce', '_carousel_slider_nonce' );
|
182 |
-
|
183 |
-
$slide_type = get_post_meta( $post->ID, '_slide_type', true );
|
184 |
-
$slide_type = in_array( $slide_type, carousel_slider_slide_type() ) ? $slide_type : 'image-carousel';
|
185 |
-
|
186 |
-
require_once CAROUSEL_SLIDER_TEMPLATES . '/admin/types.php';
|
187 |
-
require_once CAROUSEL_SLIDER_TEMPLATES . '/admin/images-media.php';
|
188 |
-
require_once CAROUSEL_SLIDER_TEMPLATES . '/admin/images-url.php';
|
189 |
-
require_once CAROUSEL_SLIDER_TEMPLATES . '/admin/post-carousel.php';
|
190 |
-
require_once CAROUSEL_SLIDER_TEMPLATES . '/admin/product-carousel.php';
|
191 |
-
require_once CAROUSEL_SLIDER_TEMPLATES . '/admin/video-carousel.php';
|
192 |
-
require_once CAROUSEL_SLIDER_TEMPLATES . '/admin/hero-banner-slider.php';
|
193 |
-
require_once CAROUSEL_SLIDER_TEMPLATES . '/admin/images-settings.php';
|
194 |
-
|
195 |
-
// require_once CAROUSEL_SLIDER_TEMPLATES . '/admin/navigation.php';
|
196 |
-
// require_once CAROUSEL_SLIDER_TEMPLATES . '/admin/autoplay.php';
|
197 |
-
// require_once CAROUSEL_SLIDER_TEMPLATES . '/admin/responsive.php';
|
198 |
-
}
|
199 |
-
|
200 |
-
/**
|
201 |
-
* Save custom meta box
|
202 |
-
*
|
203 |
-
* @method save_meta_box
|
204 |
-
* @param int $post_id The post ID
|
205 |
-
*/
|
206 |
-
public function save_meta_box( $post_id ) {
|
207 |
-
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
|
208 |
-
return;
|
209 |
-
}
|
210 |
-
// Check if nonce is set.
|
211 |
-
if ( ! isset( $_POST['_carousel_slider_nonce'], $_POST['carousel_slider'] ) ) {
|
212 |
-
return;
|
213 |
-
}
|
214 |
-
// Check if nonce is valid.
|
215 |
-
if ( ! wp_verify_nonce( $_POST['_carousel_slider_nonce'], 'carousel_slider_nonce' ) ) {
|
216 |
-
return;
|
217 |
-
}
|
218 |
-
// Check if user has permissions to save data.
|
219 |
-
if ( ! current_user_can( 'edit_post', $post_id ) ) {
|
220 |
-
return;
|
221 |
-
}
|
222 |
-
|
223 |
-
if ( isset( $_POST['carousel_slider_content'] ) ) {
|
224 |
-
$this->update_content_slider( $post_id );
|
225 |
-
}
|
226 |
-
|
227 |
-
if ( isset( $_POST['content_settings'] ) ) {
|
228 |
-
$this->update_content_settings( $post_id );
|
229 |
-
}
|
230 |
-
|
231 |
-
foreach ( $_POST['carousel_slider'] as $key => $val ) {
|
232 |
-
if ( is_array( $val ) ) {
|
233 |
-
$val = implode( ',', $val );
|
234 |
-
}
|
235 |
-
|
236 |
-
if ( $key == '_margin_right' && $val == 0 ) {
|
237 |
-
$val = 'zero';
|
238 |
-
}
|
239 |
-
update_post_meta( $post_id, $key, sanitize_text_field( $val ) );
|
240 |
-
}
|
241 |
-
|
242 |
-
if ( ! isset( $_POST['carousel_slider']['_post_categories'] ) ) {
|
243 |
-
update_post_meta( $post_id, '_post_categories', '' );
|
244 |
-
}
|
245 |
-
|
246 |
-
if ( ! isset( $_POST['carousel_slider']['_post_tags'] ) ) {
|
247 |
-
update_post_meta( $post_id, '_post_tags', '' );
|
248 |
-
}
|
249 |
-
|
250 |
-
if ( ! isset( $_POST['carousel_slider']['_post_in'] ) ) {
|
251 |
-
update_post_meta( $post_id, '_post_in', '' );
|
252 |
-
}
|
253 |
-
|
254 |
-
if ( isset( $_POST['_images_urls'] ) ) {
|
255 |
-
$this->save_images_urls( $post_id );
|
256 |
-
}
|
257 |
-
}
|
258 |
-
|
259 |
-
/**
|
260 |
-
* Save carousel slider gallery images
|
261 |
-
*
|
262 |
-
* @return string
|
263 |
-
*/
|
264 |
-
public function save_images() {
|
265 |
-
// Check if not an autosave.
|
266 |
-
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
|
267 |
-
return;
|
268 |
-
}
|
269 |
-
// Check if required fields are set
|
270 |
-
if ( ! isset( $_POST['ids'], $_POST['post_id'] ) ) {
|
271 |
-
return;
|
272 |
-
}
|
273 |
-
// Check if user has permissions to save data.
|
274 |
-
if ( ! current_user_can( 'edit_posts' ) ) {
|
275 |
-
return;
|
276 |
-
}
|
277 |
-
|
278 |
-
$ids = strip_tags( rtrim( $_POST['ids'], ',' ) );
|
279 |
-
update_post_meta( $_POST['post_id'], '_wpdh_image_ids', $ids );
|
280 |
-
|
281 |
-
$thumbs = explode( ',', $ids );
|
282 |
-
$thumbs_output = '';
|
283 |
-
foreach ( $thumbs as $thumb ) {
|
284 |
-
$thumbs_output .= '<li>' . wp_get_attachment_image( $thumb, array( 75, 75 ) ) . '</li>';
|
285 |
-
}
|
286 |
-
|
287 |
-
echo $thumbs_output;
|
288 |
-
|
289 |
-
die();
|
290 |
-
}
|
291 |
-
|
292 |
-
/**
|
293 |
-
* Save images urls
|
294 |
-
*
|
295 |
-
* @param integer $post_id
|
296 |
-
*
|
297 |
-
* @return void
|
298 |
-
*/
|
299 |
-
private function save_images_urls( $post_id ) {
|
300 |
-
if ( ! isset( $_POST['_images_urls'] ) ) {
|
301 |
-
return;
|
302 |
-
}
|
303 |
-
$url = $_POST['_images_urls']['url'];
|
304 |
-
$title = $_POST['_images_urls']['title'];
|
305 |
-
$caption = $_POST['_images_urls']['caption'];
|
306 |
-
$alt = $_POST['_images_urls']['alt'];
|
307 |
-
$link_url = $_POST['_images_urls']['link_url'];
|
308 |
-
|
309 |
-
$urls = array();
|
310 |
-
|
311 |
-
for ( $i = 0; $i < count( $url ); $i ++ ) {
|
312 |
-
$urls[] = array(
|
313 |
-
'url' => esc_url_raw( $url[ $i ] ),
|
314 |
-
'title' => sanitize_text_field( $title[ $i ] ),
|
315 |
-
'caption' => sanitize_text_field( $caption[ $i ] ),
|
316 |
-
'alt' => sanitize_text_field( $alt[ $i ] ),
|
317 |
-
'link_url' => esc_url_raw( $link_url[ $i ] ),
|
318 |
-
);
|
319 |
-
}
|
320 |
-
update_post_meta( $post_id, '_images_urls', $urls );
|
321 |
-
}
|
322 |
-
|
323 |
-
/**
|
324 |
-
* Adding our custom fields to the $form_fields array
|
325 |
-
*
|
326 |
-
* @param array $form_fields
|
327 |
-
* @param WP_Post $post
|
328 |
-
*
|
329 |
-
* @return array
|
330 |
-
*/
|
331 |
-
public function attachment_fields_to_edit( $form_fields, $post ) {
|
332 |
-
$form_fields["carousel_slider_link_url"]["label"] = __( "Link to URL", "carousel-slider" );
|
333 |
-
$form_fields["carousel_slider_link_url"]["input"] = "textarea";
|
334 |
-
$form_fields["carousel_slider_link_url"]["value"] = get_post_meta( $post->ID, "_carousel_slider_link_url", true );
|
335 |
-
$form_fields["carousel_slider_link_url"]["extra_rows"] = array(
|
336 |
-
'carouselSliderInfo' => __( '"Link to URL" only works on Carousel Slider for linking image to a custom url.', 'carousel-slider' ),
|
337 |
-
);
|
338 |
-
|
339 |
-
return $form_fields;
|
340 |
-
}
|
341 |
-
|
342 |
-
/**
|
343 |
-
* Save custom field value
|
344 |
-
*
|
345 |
-
* @param array $post
|
346 |
-
* @param array $attachment
|
347 |
-
*
|
348 |
-
* @return object|array
|
349 |
-
*/
|
350 |
-
public function attachment_fields_to_save( $post, $attachment ) {
|
351 |
-
$slider_link_url = isset( $attachment['carousel_slider_link_url'] ) ? $attachment['carousel_slider_link_url'] : null;
|
352 |
-
|
353 |
-
if ( filter_var( $slider_link_url, FILTER_VALIDATE_URL ) ) {
|
354 |
-
|
355 |
-
update_post_meta( $post['ID'], '_carousel_slider_link_url', esc_url_raw( $slider_link_url ) );
|
356 |
-
}
|
357 |
-
|
358 |
-
return $post;
|
359 |
-
}
|
360 |
-
|
361 |
-
/**
|
362 |
-
* Update content slider
|
363 |
-
*
|
364 |
-
* @param int $post_id
|
365 |
-
*/
|
366 |
-
private function update_content_slider( $post_id ) {
|
367 |
-
$_content_slides = $_POST['carousel_slider_content'];
|
368 |
-
$_slides = array_map( function ( $slide ) {
|
369 |
-
$_slide = array(
|
370 |
-
// Slide Content
|
371 |
-
'slide_heading' => wp_kses_post( $slide['slide_heading'] ),
|
372 |
-
'slide_description' => wp_kses_post( $slide['slide_description'] ),
|
373 |
-
// Slide Background
|
374 |
-
'img_id' => intval( $slide['img_id'] ),
|
375 |
-
'img_bg_position' => sanitize_text_field( $slide['img_bg_position'] ),
|
376 |
-
'img_bg_size' => sanitize_text_field( $slide['img_bg_size'] ),
|
377 |
-
'bg_color' => carousel_slider_sanitize_color( $slide['bg_color'] ),
|
378 |
-
// Slide Style
|
379 |
-
'content_alignment' => sanitize_text_field( $slide['content_alignment'] ),
|
380 |
-
'heading_font_size' => intval( $slide['heading_font_size'] ),
|
381 |
-
'heading_gutter' => sanitize_text_field( $slide['heading_gutter'] ),
|
382 |
-
'heading_color' => carousel_slider_sanitize_color( $slide['heading_color'] ),
|
383 |
-
'heading_background_color' => carousel_slider_sanitize_color( $slide['heading_background_color'] ),
|
384 |
-
'description_font_size' => intval( $slide['description_font_size'] ),
|
385 |
-
'description_gutter' => sanitize_text_field( $slide['description_gutter'] ),
|
386 |
-
'description_color' => carousel_slider_sanitize_color( $slide['description_color'] ),
|
387 |
-
'description_background_color' => carousel_slider_sanitize_color( $slide['description_background_color'] ),
|
388 |
-
// Slide Link
|
389 |
-
'link_type' => sanitize_text_field( $slide['link_type'] ),
|
390 |
-
'slide_link' => esc_url_raw( $slide['slide_link'] ),
|
391 |
-
'link_target' => sanitize_text_field( $slide['link_target'] ),
|
392 |
-
// Slide Button #1
|
393 |
-
'button_one_text' => sanitize_text_field( $slide['button_one_text'] ),
|
394 |
-
'button_one_url' => esc_url_raw( $slide['button_one_url'] ),
|
395 |
-
'button_one_target' => sanitize_text_field( $slide['button_one_target'] ),
|
396 |
-
'button_one_type' => sanitize_text_field( $slide['button_one_type'] ),
|
397 |
-
'button_one_size' => sanitize_text_field( $slide['button_one_size'] ),
|
398 |
-
'button_one_border_width' => sanitize_text_field( $slide['button_one_border_width'] ),
|
399 |
-
'button_one_border_radius' => sanitize_text_field( $slide['button_one_border_radius'] ),
|
400 |
-
'button_one_bg_color' => carousel_slider_sanitize_color( $slide['button_one_bg_color'] ),
|
401 |
-
'button_one_color' => carousel_slider_sanitize_color( $slide['button_one_color'] ),
|
402 |
-
// Slide Button #2
|
403 |
-
'button_two_text' => sanitize_text_field( $slide['button_two_text'] ),
|
404 |
-
'button_two_url' => esc_url_raw( $slide['button_two_url'] ),
|
405 |
-
'button_two_target' => sanitize_text_field( $slide['button_two_target'] ),
|
406 |
-
'button_two_type' => sanitize_text_field( $slide['button_two_type'] ),
|
407 |
-
'button_two_size' => sanitize_text_field( $slide['button_two_size'] ),
|
408 |
-
'button_two_border_width' => sanitize_text_field( $slide['button_two_border_width'] ),
|
409 |
-
'button_two_border_radius' => sanitize_text_field( $slide['button_two_border_radius'] ),
|
410 |
-
'button_two_bg_color' => carousel_slider_sanitize_color( $slide['button_two_bg_color'] ),
|
411 |
-
'button_two_color' => carousel_slider_sanitize_color( $slide['button_two_color'] ),
|
412 |
-
);
|
413 |
-
|
414 |
-
return $_slide;
|
415 |
-
}, $_content_slides );
|
416 |
-
|
417 |
-
update_post_meta( $post_id, '_content_slider', $_slides );
|
418 |
-
}
|
419 |
-
|
420 |
-
private function update_content_settings( $post_id ) {
|
421 |
-
$setting = $_POST['content_settings'];
|
422 |
-
$_settings = array(
|
423 |
-
'slide_height' => sanitize_text_field( $setting['slide_height'] ),
|
424 |
-
'content_width' => sanitize_text_field( $setting['content_width'] ),
|
425 |
-
'slide_padding' => array(
|
426 |
-
'top' => sanitize_text_field( $setting['slide_padding']['top'] ),
|
427 |
-
'right' => sanitize_text_field( $setting['slide_padding']['right'] ),
|
428 |
-
'bottom' => sanitize_text_field( $setting['slide_padding']['bottom'] ),
|
429 |
-
'left' => sanitize_text_field( $setting['slide_padding']['left'] ),
|
430 |
-
),
|
431 |
-
);
|
432 |
-
update_post_meta( $post_id, '_content_slider_settings', $_settings );
|
433 |
-
}
|
434 |
-
}
|
435 |
-
|
436 |
-
endif;
|
437 |
-
|
438 |
-
Carousel_Slider_Admin::init();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/class-carousel-slider-content-carousel.php
DELETED
@@ -1,199 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( ! class_exists( 'Carousel_Slider_Content_Carousel' ) ):
|
4 |
-
|
5 |
-
class Carousel_Slider_Content_Carousel {
|
6 |
-
|
7 |
-
protected static $instance = null;
|
8 |
-
|
9 |
-
/**
|
10 |
-
* Ensures only one instance of this class is loaded or can be loaded.
|
11 |
-
*
|
12 |
-
* @return Carousel_Slider_Content_Carousel
|
13 |
-
*/
|
14 |
-
public static function init() {
|
15 |
-
if ( is_null( self::$instance ) ) {
|
16 |
-
self::$instance = new self();
|
17 |
-
}
|
18 |
-
|
19 |
-
return self::$instance;
|
20 |
-
}
|
21 |
-
|
22 |
-
public function __construct() {
|
23 |
-
add_action( 'wp_ajax_add_content_slide', array( $this, 'add_slide_template' ) );
|
24 |
-
}
|
25 |
-
|
26 |
-
public function add_slide_template() {
|
27 |
-
$post_id = absint( $_POST['post_id'] );
|
28 |
-
$task = isset( $_POST['task'] ) ? esc_attr( $_POST['task'] ) : 'add-slide';
|
29 |
-
$slide_pos = isset( $_POST['slide_pos'] ) ? absint( $_POST['slide_pos'] ) : null;
|
30 |
-
|
31 |
-
$slider = get_post_meta( $post_id, '_content_slider', true );
|
32 |
-
|
33 |
-
if ( $task == 'add-slide' ) {
|
34 |
-
$slider = $this->add_slide( $post_id, $slider );
|
35 |
-
}
|
36 |
-
if ( $task == 'delete-slide' && ! is_null( $slide_pos ) ) {
|
37 |
-
$slider = $this->delete_slide( $slide_pos, $post_id, $slider );
|
38 |
-
}
|
39 |
-
if ( $task == 'move-slide-top' && ! is_null( $slide_pos ) ) {
|
40 |
-
$slider = $this->move_slide_top( $slide_pos, $slider, $post_id );
|
41 |
-
}
|
42 |
-
if ( $task == 'move-slide-up' && ! is_null( $slide_pos ) ) {
|
43 |
-
$slider = $this->move_slide_up( $slide_pos, $slider, $post_id );
|
44 |
-
}
|
45 |
-
if ( $task == 'move-slide-down' && ! is_null( $slide_pos ) ) {
|
46 |
-
$slider = $this->move_slide_down( $slider, $slide_pos, $post_id );
|
47 |
-
}
|
48 |
-
if ( $task == 'move-slide-bottom' && ! is_null( $slide_pos ) ) {
|
49 |
-
$slider = $this->move_slide_bottom( $slider, $slide_pos, $post_id );
|
50 |
-
}
|
51 |
-
|
52 |
-
echo isset( $slider ) ? json_encode( $slider ) : '';
|
53 |
-
wp_die();
|
54 |
-
}
|
55 |
-
|
56 |
-
private function content_slide_default() {
|
57 |
-
$data = array(
|
58 |
-
'content' => '',
|
59 |
-
'bg_color' => 'rgba(0,0,0,0.6)',
|
60 |
-
'img_id' => '',
|
61 |
-
'img_bg_position' => 'center center',
|
62 |
-
'img_bg_size' => 'contain',
|
63 |
-
'link_url' => '',
|
64 |
-
'link_target' => '',
|
65 |
-
'popup_type' => 'image', // Image, Video, HTML
|
66 |
-
'popup_img_id' => '',
|
67 |
-
'popup_img_title' => '',
|
68 |
-
'popup_video_id' => '',
|
69 |
-
'popup_video_type' => '',
|
70 |
-
'popup_html' => '',
|
71 |
-
'popup_bg_color' => 'rgba(0,0,0,0.6)',
|
72 |
-
'popup_width' => '',
|
73 |
-
);
|
74 |
-
|
75 |
-
return $data;
|
76 |
-
}
|
77 |
-
|
78 |
-
/**
|
79 |
-
* Add new slide
|
80 |
-
*
|
81 |
-
* @param $post_id
|
82 |
-
* @param $content_slider
|
83 |
-
*
|
84 |
-
* @return array
|
85 |
-
*/
|
86 |
-
private function add_slide( $post_id, $content_slider ) {
|
87 |
-
$default = $this->content_slide_default();
|
88 |
-
if ( is_array( $content_slider ) && count( $content_slider ) > 0 ) {
|
89 |
-
$content_slider[] = $default;
|
90 |
-
} else {
|
91 |
-
$content_slider = array( $default );
|
92 |
-
}
|
93 |
-
update_post_meta( $post_id, '_content_slider', $content_slider );
|
94 |
-
|
95 |
-
return $content_slider;
|
96 |
-
}
|
97 |
-
|
98 |
-
/**
|
99 |
-
* Delete a slide
|
100 |
-
*
|
101 |
-
* @param $slide_position
|
102 |
-
* @param $post_id
|
103 |
-
* @param $slider
|
104 |
-
*
|
105 |
-
* @return mixed
|
106 |
-
*/
|
107 |
-
private function delete_slide( $slide_position, $post_id, $slider ) {
|
108 |
-
array_splice( $slider, $slide_position, 1 );
|
109 |
-
update_post_meta( $post_id, '_content_slider', $slider );
|
110 |
-
|
111 |
-
return $slider;
|
112 |
-
}
|
113 |
-
|
114 |
-
/**
|
115 |
-
* Move array element position
|
116 |
-
*
|
117 |
-
* @param $array
|
118 |
-
* @param $current_index
|
119 |
-
* @param $new_index
|
120 |
-
*
|
121 |
-
* @return mixed
|
122 |
-
*/
|
123 |
-
private function move_array_element( $array, $current_index, $new_index ) {
|
124 |
-
$output = array_splice( $array, $current_index, 1 );
|
125 |
-
array_splice( $array, $new_index, 0, $output );
|
126 |
-
|
127 |
-
return $array;
|
128 |
-
}
|
129 |
-
|
130 |
-
/**
|
131 |
-
* @param $slide_pos
|
132 |
-
* @param $slider
|
133 |
-
* @param $post_id
|
134 |
-
*
|
135 |
-
* @return mixed
|
136 |
-
*/
|
137 |
-
private function move_slide_top( $slide_pos, $slider, $post_id ) {
|
138 |
-
if ( $slide_pos !== 0 ) {
|
139 |
-
$slider = $this->move_array_element( $slider, $slide_pos, 0 );
|
140 |
-
update_post_meta( $post_id, '_content_slider', $slider );
|
141 |
-
}
|
142 |
-
|
143 |
-
return $slider;
|
144 |
-
}
|
145 |
-
|
146 |
-
/**
|
147 |
-
* @param $slide_pos
|
148 |
-
* @param $slider
|
149 |
-
* @param $post_id
|
150 |
-
*
|
151 |
-
* @return mixed
|
152 |
-
*/
|
153 |
-
private function move_slide_up( $slide_pos, $slider, $post_id ) {
|
154 |
-
if ( $slide_pos !== 0 ) {
|
155 |
-
$slider = $this->move_array_element( $slider, $slide_pos, ( $slide_pos - 1 ) );
|
156 |
-
update_post_meta( $post_id, '_content_slider', $slider );
|
157 |
-
}
|
158 |
-
|
159 |
-
return $slider;
|
160 |
-
}
|
161 |
-
|
162 |
-
/**
|
163 |
-
* @param $slider
|
164 |
-
* @param $slide_pos
|
165 |
-
* @param $post_id
|
166 |
-
*
|
167 |
-
* @return array
|
168 |
-
*/
|
169 |
-
private function move_slide_down( $slider, $slide_pos, $post_id ) {
|
170 |
-
$last_index = count( $slider ) - 1;
|
171 |
-
if ( $slide_pos !== $last_index ) {
|
172 |
-
$slider = $this->move_array_element( $slider, $slide_pos, ( $slide_pos + 1 ) );
|
173 |
-
update_post_meta( $post_id, '_content_slider', $slider );
|
174 |
-
}
|
175 |
-
|
176 |
-
return $slider;
|
177 |
-
}
|
178 |
-
|
179 |
-
/**
|
180 |
-
* @param $slider
|
181 |
-
* @param $slide_pos
|
182 |
-
* @param $post_id
|
183 |
-
*
|
184 |
-
* @return array
|
185 |
-
*/
|
186 |
-
private function move_slide_bottom( $slider, $slide_pos, $post_id ) {
|
187 |
-
$last_index = count( $slider ) - 1;
|
188 |
-
if ( $slide_pos !== $last_index ) {
|
189 |
-
$slider = $this->move_array_element( $slider, $slide_pos, $last_index );
|
190 |
-
update_post_meta( $post_id, '_content_slider', $slider );
|
191 |
-
}
|
192 |
-
|
193 |
-
return $slider;
|
194 |
-
}
|
195 |
-
}
|
196 |
-
|
197 |
-
endif;
|
198 |
-
|
199 |
-
Carousel_Slider_Content_Carousel::init();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/class-carousel-slider-credit.php
DELETED
@@ -1,52 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! class_exists( 'Carousel_Slider_Credit' ) ):
|
3 |
-
|
4 |
-
class Carousel_Slider_Credit {
|
5 |
-
|
6 |
-
protected static $instance = null;
|
7 |
-
|
8 |
-
/**
|
9 |
-
* Ensures only one instance of this class is loaded or can be loaded.
|
10 |
-
*
|
11 |
-
* @return Carousel_Slider_Credit
|
12 |
-
*/
|
13 |
-
public static function init() {
|
14 |
-
if ( is_null( self::$instance ) ) {
|
15 |
-
self::$instance = new self();
|
16 |
-
}
|
17 |
-
|
18 |
-
return self::$instance;
|
19 |
-
}
|
20 |
-
|
21 |
-
public function __construct() {
|
22 |
-
add_filter( 'admin_footer_text', array( $this, 'admin_footer_text' ) );
|
23 |
-
}
|
24 |
-
|
25 |
-
/**
|
26 |
-
* Add custom footer text on plugins page.
|
27 |
-
*
|
28 |
-
* @param string $text
|
29 |
-
*
|
30 |
-
* @return string
|
31 |
-
*/
|
32 |
-
public function admin_footer_text( $text ) {
|
33 |
-
global $post_type, $hook_suffix;
|
34 |
-
|
35 |
-
$footer_text = sprintf(
|
36 |
-
__( 'If you like %1$s Carousel Slider %2$s please leave us a %3$s rating. A huge thanks in advance!', 'carousel-slider' ),
|
37 |
-
'<strong>',
|
38 |
-
'</strong>',
|
39 |
-
'<a href="https://wordpress.org/support/view/plugin-reviews/carousel-slider?filter=5#postform" target="_blank" data-rated="Thanks :)">★★★★★</a>'
|
40 |
-
);
|
41 |
-
|
42 |
-
if ( $post_type == 'carousels' || $hook_suffix == 'carousels_page_carousel-slider-documentation' ) {
|
43 |
-
return $footer_text;
|
44 |
-
}
|
45 |
-
|
46 |
-
return $text;
|
47 |
-
}
|
48 |
-
}
|
49 |
-
|
50 |
-
endif;
|
51 |
-
|
52 |
-
Carousel_Slider_Credit::init();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/class-carousel-slider-documentation.php
DELETED
@@ -1,48 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// If this file is called directly, abort.
|
3 |
-
if ( ! defined( 'WPINC' ) ) {
|
4 |
-
die;
|
5 |
-
}
|
6 |
-
|
7 |
-
if ( ! class_exists( 'Carousel_Slider_Documentation' ) ):
|
8 |
-
|
9 |
-
class Carousel_Slider_Documentation {
|
10 |
-
|
11 |
-
protected static $instance = null;
|
12 |
-
|
13 |
-
/**
|
14 |
-
* Ensures only one instance of this class is loaded or can be loaded.
|
15 |
-
*
|
16 |
-
* @return Carousel_Slider_Documentation
|
17 |
-
*/
|
18 |
-
public static function init() {
|
19 |
-
if ( is_null( self::$instance ) ) {
|
20 |
-
self::$instance = new self();
|
21 |
-
}
|
22 |
-
|
23 |
-
return self::$instance;
|
24 |
-
}
|
25 |
-
|
26 |
-
public function __construct() {
|
27 |
-
add_action( 'admin_menu', array( $this, 'admin_menu' ) );
|
28 |
-
}
|
29 |
-
|
30 |
-
public function admin_menu() {
|
31 |
-
add_submenu_page(
|
32 |
-
'edit.php?post_type=carousels',
|
33 |
-
'Documentation',
|
34 |
-
'Documentation',
|
35 |
-
'manage_options',
|
36 |
-
'carousel-slider-documentation',
|
37 |
-
array( $this, 'submenu_page_callback' )
|
38 |
-
);
|
39 |
-
}
|
40 |
-
|
41 |
-
public function submenu_page_callback() {
|
42 |
-
include_once CAROUSEL_SLIDER_TEMPLATES . '/admin/documentation.php';
|
43 |
-
}
|
44 |
-
}
|
45 |
-
|
46 |
-
endif;
|
47 |
-
|
48 |
-
Carousel_Slider_Documentation::init();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/class-carousel-slider-form.php
DELETED
@@ -1,403 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// If this file is called directly, abort.
|
3 |
-
if ( ! defined( 'WPINC' ) ) {
|
4 |
-
die;
|
5 |
-
}
|
6 |
-
|
7 |
-
if ( ! class_exists( 'Carousel_Slider_Form' ) ):
|
8 |
-
|
9 |
-
class Carousel_Slider_Form {
|
10 |
-
|
11 |
-
/**
|
12 |
-
* Generate text field
|
13 |
-
*
|
14 |
-
* @param array $args
|
15 |
-
*/
|
16 |
-
public function text( array $args ) {
|
17 |
-
if ( ! isset( $args['id'], $args['name'] ) ) {
|
18 |
-
return;
|
19 |
-
}
|
20 |
-
|
21 |
-
list( $name, $value ) = $this->field_common( $args );
|
22 |
-
|
23 |
-
echo $this->field_before( $args );
|
24 |
-
echo sprintf( '<input type="text" class="sp-input-text" value="%1$s" id="%2$s" name="%3$s">', $value, $args['id'], $name );
|
25 |
-
echo $this->field_after();
|
26 |
-
}
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Generate textarea field
|
30 |
-
*
|
31 |
-
* @param array $args
|
32 |
-
*/
|
33 |
-
public function textarea( array $args ) {
|
34 |
-
if ( ! isset( $args['id'], $args['name'] ) ) {
|
35 |
-
return;
|
36 |
-
}
|
37 |
-
|
38 |
-
list( $name, $value ) = $this->field_common( $args );
|
39 |
-
$cols = isset( $args['cols'] ) ? $args['cols'] : 35;
|
40 |
-
$rows = isset( $args['rows'] ) ? $args['rows'] : 6;
|
41 |
-
|
42 |
-
echo $this->field_before( $args );
|
43 |
-
echo sprintf( '<textarea class="sp-input-textarea" id="%2$s" name="%3$s" cols="%4$d" rows="%5$d">%1$s</textarea>', esc_textarea( $value ), $args['id'], $name, $cols, $rows );
|
44 |
-
echo $this->field_after();
|
45 |
-
}
|
46 |
-
|
47 |
-
/**
|
48 |
-
* Generate color picker field
|
49 |
-
*
|
50 |
-
* @param array $args
|
51 |
-
*/
|
52 |
-
public function color( array $args ) {
|
53 |
-
if ( ! isset( $args['id'], $args['name'] ) ) {
|
54 |
-
return;
|
55 |
-
}
|
56 |
-
|
57 |
-
list( $name, $value ) = $this->field_common( $args );
|
58 |
-
$std_value = isset( $args['std'] ) ? $args['std'] : '';
|
59 |
-
|
60 |
-
echo $this->field_before( $args );
|
61 |
-
echo sprintf( '<input type="text" class="color-picker" value="%1$s" id="%2$s" name="%3$s" data-alpha="true" data-default-color="%4$s">', $value, $args['id'], $name, $std_value );
|
62 |
-
echo $this->field_after();
|
63 |
-
}
|
64 |
-
|
65 |
-
/**
|
66 |
-
* Generate date picker field
|
67 |
-
*
|
68 |
-
* @param array $args
|
69 |
-
*/
|
70 |
-
public function date( array $args ) {
|
71 |
-
if ( ! isset( $args['id'], $args['name'] ) ) {
|
72 |
-
return;
|
73 |
-
}
|
74 |
-
|
75 |
-
list( $name, $value ) = $this->field_common( $args );
|
76 |
-
$std_value = isset( $args['std'] ) ? $args['std'] : '';
|
77 |
-
|
78 |
-
echo $this->field_before( $args );
|
79 |
-
echo sprintf( '<input type="text" class="sp-input-text datepicker" value="%1$s" id="%2$s" name="%3$s">', $value, $args['id'], $name, $std_value );
|
80 |
-
echo $this->field_after();
|
81 |
-
}
|
82 |
-
|
83 |
-
/**
|
84 |
-
* Generate number field
|
85 |
-
*
|
86 |
-
* @param array $args
|
87 |
-
*/
|
88 |
-
public function number( array $args ) {
|
89 |
-
if ( ! isset( $args['id'], $args['name'] ) ) {
|
90 |
-
return;
|
91 |
-
}
|
92 |
-
|
93 |
-
list( $name, $value ) = $this->field_common( $args );
|
94 |
-
$min = isset( $args['min'] ) ? $args['min'] : null;
|
95 |
-
$max = isset( $args['max'] ) ? $args['max'] : null;
|
96 |
-
|
97 |
-
echo $this->field_before( $args );
|
98 |
-
echo sprintf( '<input type="number" class="sp-input-text" value="%1$s" id="%2$s" name="%3$s">', $value, $args['id'], $name );
|
99 |
-
echo $this->field_after();
|
100 |
-
}
|
101 |
-
|
102 |
-
/**
|
103 |
-
* Generate checkbox field
|
104 |
-
*
|
105 |
-
* @param array $args
|
106 |
-
*/
|
107 |
-
public function checkbox( array $args ) {
|
108 |
-
if ( ! isset( $args['id'], $args['name'] ) ) {
|
109 |
-
return;
|
110 |
-
}
|
111 |
-
|
112 |
-
list( $name, $value ) = $this->field_common( $args );
|
113 |
-
$checked = ( $value == 'on' ) ? ' checked' : '';
|
114 |
-
$label = isset( $args['label'] ) ? $args['label'] : '';
|
115 |
-
|
116 |
-
echo $this->field_before( $args );
|
117 |
-
echo sprintf( '<input type="hidden" name="%1$s" value="off">', $name );
|
118 |
-
echo sprintf( '<label for="%2$s"><input type="checkbox" %4$s value="on" id="%2$s" name="%1$s">%3$s</label>', $name, $args['id'], $label, $checked );
|
119 |
-
echo $this->field_after();
|
120 |
-
}
|
121 |
-
|
122 |
-
/**
|
123 |
-
* Generate select field
|
124 |
-
*
|
125 |
-
* @param $args
|
126 |
-
*/
|
127 |
-
public function select( $args ) {
|
128 |
-
if ( ! isset( $args['id'], $args['name'] ) ) {
|
129 |
-
return;
|
130 |
-
}
|
131 |
-
|
132 |
-
list( $name, $value ) = $this->field_common( $args );
|
133 |
-
$checked = ( $value == 'on' ) ? ' checked' : '';
|
134 |
-
$multiple = isset( $args['multiple'] ) ? 'multiple' : '';
|
135 |
-
|
136 |
-
echo $this->field_before( $args );
|
137 |
-
echo sprintf( '<select name="%1$s" id="%2$s" class="select2 sp-input-text" %3$s>', $name, $args['id'], $multiple );
|
138 |
-
foreach ( $args['options'] as $key => $option ) {
|
139 |
-
$selected = ( $value == $key ) ? ' selected="selected"' : '';
|
140 |
-
echo sprintf( '<option value="%1$s" %3$s>%2$s</option>', $key, $option, $selected );
|
141 |
-
}
|
142 |
-
echo '</select>';
|
143 |
-
echo $this->field_after();
|
144 |
-
}
|
145 |
-
|
146 |
-
/**
|
147 |
-
* Generate posts list dropdown
|
148 |
-
* Also support for any custom post type
|
149 |
-
*
|
150 |
-
* @param $args
|
151 |
-
*/
|
152 |
-
public function posts_list( $args ) {
|
153 |
-
if ( ! isset( $args['id'], $args['name'] ) ) {
|
154 |
-
return;
|
155 |
-
}
|
156 |
-
|
157 |
-
list( $name, $value ) = $this->field_common( $args );
|
158 |
-
$value = explode( ',', $value );
|
159 |
-
$multiple = isset( $args['multiple'] ) ? 'multiple' : '';
|
160 |
-
$post_type = isset( $args['post_type'] ) ? $args['post_type'] : 'post';
|
161 |
-
|
162 |
-
echo $this->field_before( $args );
|
163 |
-
echo sprintf( '<select name="%1$s" id="%2$s" class="select2 sp-input-text" %3$s>', $name, $args['id'], $multiple );
|
164 |
-
$posts = get_posts( array(
|
165 |
-
'post_type' => $post_type,
|
166 |
-
'post_status' => 'publish',
|
167 |
-
'posts_per_page' => - 1
|
168 |
-
) );
|
169 |
-
|
170 |
-
foreach ( $posts as $post ) {
|
171 |
-
$selected = in_array( $post->ID, $value ) ? ' selected="selected"' : '';
|
172 |
-
echo sprintf( '<option value="%1$s" %3$s>%2$s</option>', $post->ID, $post->post_title, $selected );
|
173 |
-
}
|
174 |
-
echo '</select>';
|
175 |
-
echo $this->field_after();
|
176 |
-
}
|
177 |
-
|
178 |
-
/**
|
179 |
-
* Generate image gallery field
|
180 |
-
*
|
181 |
-
* @param $args
|
182 |
-
*/
|
183 |
-
public function images_gallery( $args ) {
|
184 |
-
if ( ! isset( $args['id'], $args['name'] ) ) {
|
185 |
-
return;
|
186 |
-
}
|
187 |
-
list( $name, $value ) = $this->field_common( $args );
|
188 |
-
|
189 |
-
$btn_text = $value ? 'Edit Gallery' : 'Add Gallery';
|
190 |
-
$value = strip_tags( rtrim( $value, ',' ) );
|
191 |
-
$output = '';
|
192 |
-
global $post;
|
193 |
-
|
194 |
-
if ( $value ) {
|
195 |
-
$thumbs = explode( ',', $value );
|
196 |
-
foreach ( $thumbs as $thumb ) {
|
197 |
-
$output .= '<li>' . wp_get_attachment_image( $thumb, array( 50, 50 ) ) . '</li>';
|
198 |
-
}
|
199 |
-
}
|
200 |
-
|
201 |
-
$html = $this->field_before( $args );
|
202 |
-
$html .= '<div class="carousel_slider_images">';
|
203 |
-
$html .= sprintf( '<input type="hidden" value="%1$s" id="_carousel_slider_images_ids" name="%2$s">', $value, $name );
|
204 |
-
$html .= sprintf(
|
205 |
-
'<a href="#" id="%1$s" class="button" data-id="%2$s" data-ids="%3$s" data-create="%5$s" data-edit="%6$s" data-save="%7$s" data-progress="%8$s" data-insert="%9$s">%4$s</a>',
|
206 |
-
'carousel_slider_gallery_btn',
|
207 |
-
$post->ID,
|
208 |
-
$value,
|
209 |
-
$btn_text,
|
210 |
-
esc_html__( 'Create Gallery', 'carousel-slider' ),
|
211 |
-
esc_html__( 'Edit Gallery', 'carousel-slider' ),
|
212 |
-
esc_html__( 'Save Gallery', 'carousel-slider' ),
|
213 |
-
esc_html__( 'Saving...', 'carousel-slider' ),
|
214 |
-
esc_html__( 'Insert', 'carousel-slider' )
|
215 |
-
);
|
216 |
-
$html .= sprintf( '<ul class="carousel_slider_gallery_list">%s</ul>', $output );
|
217 |
-
$html .= '</div>';
|
218 |
-
$html .= $this->field_after();
|
219 |
-
echo $html;
|
220 |
-
}
|
221 |
-
|
222 |
-
/**
|
223 |
-
* Generate image gallery list from images URL
|
224 |
-
*
|
225 |
-
* @param array $args
|
226 |
-
*/
|
227 |
-
public function images_url( array $args ) {
|
228 |
-
if ( ! isset( $args['id'], $args['name'] ) ) {
|
229 |
-
return;
|
230 |
-
}
|
231 |
-
list( $name, $value ) = $this->field_common( $args );
|
232 |
-
|
233 |
-
$btn_text = $value ? __( 'Edit URLs', 'carousel-slider' ) : __( 'Add URLs', 'carousel-slider' );
|
234 |
-
|
235 |
-
$html = $this->field_before( $args );
|
236 |
-
$html .= sprintf( '<a id="_images_urls_btn" class="button" href="#">%s</a>', $btn_text );
|
237 |
-
$html .= '<ul class="carousel_slider_url_images_list">';
|
238 |
-
if ( is_array( $value ) && count( $value ) > 0 ) {
|
239 |
-
foreach ( $value as $image ) {
|
240 |
-
$html .= sprintf( '<li><img src="%s" alt="%s" width="75" height="75"></li>', $image['url'], $image['alt'] );
|
241 |
-
}
|
242 |
-
}
|
243 |
-
$html .= '</ul>';
|
244 |
-
$html .= $this->field_after();
|
245 |
-
echo $html;
|
246 |
-
}
|
247 |
-
|
248 |
-
public function file( array $args ) {
|
249 |
-
if ( ! isset( $args['id'], $args['name'] ) ) {
|
250 |
-
return;
|
251 |
-
}
|
252 |
-
|
253 |
-
list( $name, $value ) = $this->field_common( $args );
|
254 |
-
|
255 |
-
echo $this->field_before( $args );
|
256 |
-
echo sprintf( '<input type="text" class="sp-input-text" value="%1$s" id="%2$s" name="%3$s">', $value, $args['id'], $name );
|
257 |
-
echo sprintf( '<input type="button" class="button" id="carousel_slider_video_btn" value="%s">', __( 'Browse', 'carousel-slider' ) );
|
258 |
-
echo $this->field_after();
|
259 |
-
}
|
260 |
-
|
261 |
-
/**
|
262 |
-
* Generate image sizes dropdown from available image sizes
|
263 |
-
*
|
264 |
-
* @param array $args
|
265 |
-
*/
|
266 |
-
public function image_sizes( array $args ) {
|
267 |
-
if ( ! isset( $args['id'], $args['name'] ) ) {
|
268 |
-
return;
|
269 |
-
}
|
270 |
-
|
271 |
-
list( $name, $value ) = $this->field_common( $args );
|
272 |
-
|
273 |
-
global $_wp_additional_image_sizes;
|
274 |
-
|
275 |
-
$sizes = array();
|
276 |
-
|
277 |
-
foreach ( get_intermediate_image_sizes() as $_size ) {
|
278 |
-
if ( in_array( $_size, array( 'thumbnail', 'medium', 'medium_large', 'large' ) ) ) {
|
279 |
-
|
280 |
-
$width = get_option( "{$_size}_size_w" );
|
281 |
-
$height = get_option( "{$_size}_size_h" );
|
282 |
-
$crop = (bool) get_option( "{$_size}_crop" ) ? 'hard' : 'soft';
|
283 |
-
|
284 |
-
$sizes[ $_size ] = "{$_size} - {$width}x{$height}";
|
285 |
-
|
286 |
-
} elseif ( isset( $_wp_additional_image_sizes[ $_size ] ) ) {
|
287 |
-
|
288 |
-
$width = $_wp_additional_image_sizes[ $_size ]['width'];
|
289 |
-
$height = $_wp_additional_image_sizes[ $_size ]['height'];
|
290 |
-
$crop = $_wp_additional_image_sizes[ $_size ]['crop'] ? 'hard' : 'soft';
|
291 |
-
|
292 |
-
$sizes[ $_size ] = "{$_size} - {$width}x{$height}";
|
293 |
-
}
|
294 |
-
}
|
295 |
-
|
296 |
-
$sizes = array_merge( $sizes, array( 'full' => 'original uploaded image' ) );
|
297 |
-
|
298 |
-
|
299 |
-
echo $this->field_before( $args );
|
300 |
-
echo sprintf( '<select name="%1$s" id="%2$s" class="select2 sp-input-text">', $name, $args['id'] );
|
301 |
-
foreach ( $sizes as $key => $option ) {
|
302 |
-
$selected = ( $value == $key ) ? ' selected="selected"' : '';
|
303 |
-
echo sprintf( '<option value="%1$s" %3$s>%2$s</option>', $key, $option, $selected );
|
304 |
-
}
|
305 |
-
echo '</select>';
|
306 |
-
echo $this->field_after();
|
307 |
-
}
|
308 |
-
|
309 |
-
/**
|
310 |
-
* Get post terms drowdown list
|
311 |
-
*
|
312 |
-
* @param array $args
|
313 |
-
*/
|
314 |
-
public function post_terms( array $args ) {
|
315 |
-
global $wp_version;
|
316 |
-
|
317 |
-
if ( ! isset( $args['id'], $args['name'] ) ) {
|
318 |
-
return;
|
319 |
-
}
|
320 |
-
list( $name, $value ) = $this->field_common( $args );
|
321 |
-
|
322 |
-
$value = explode( ',', strip_tags( rtrim( $value, ',' ) ) );
|
323 |
-
$multiple = isset( $args['multiple'] ) ? 'multiple' : '';
|
324 |
-
$taxonomy = isset( $args['taxonomy'] ) ? $args['taxonomy'] : 'category';
|
325 |
-
|
326 |
-
if ( version_compare( $wp_version, '4.5.0', '>=' ) ) {
|
327 |
-
$terms = get_terms( array( 'taxonomy' => $taxonomy ) );
|
328 |
-
} else {
|
329 |
-
$terms = get_terms( $taxonomy );
|
330 |
-
}
|
331 |
-
|
332 |
-
|
333 |
-
echo $this->field_before( $args );
|
334 |
-
|
335 |
-
echo sprintf( '<select name="%1$s" id="%2$s" class="select2 sp-input-text" %3$s>', $name, $args['id'], $multiple );
|
336 |
-
|
337 |
-
foreach ( $terms as $term ) {
|
338 |
-
$title = sprintf( '%s (%s)', $term->name, $term->count );
|
339 |
-
$selected = in_array( $term->term_id, $value ) ? ' selected="selected"' : '';
|
340 |
-
echo sprintf( '<option value="%1$s" %3$s>%2$s</option>', $term->term_id, $title, $selected );
|
341 |
-
}
|
342 |
-
echo '</select>';
|
343 |
-
|
344 |
-
echo $this->field_after();
|
345 |
-
}
|
346 |
-
|
347 |
-
/**
|
348 |
-
* Generate field name and field value
|
349 |
-
*
|
350 |
-
* @param $args
|
351 |
-
*
|
352 |
-
* @return array
|
353 |
-
*/
|
354 |
-
private function field_common( $args ) {
|
355 |
-
global $post;
|
356 |
-
// Meta Name
|
357 |
-
$group = isset( $args['group'] ) ? $args['group'] : 'carousel_slider';
|
358 |
-
$multiple = isset( $args['multiple'] ) ? '[]' : '';
|
359 |
-
$name = sprintf( '%s[%s]%s', $group, $args['id'], $multiple );
|
360 |
-
|
361 |
-
// Meta Value
|
362 |
-
$std_value = isset( $args['std'] ) ? $args['std'] : '';
|
363 |
-
$meta = get_post_meta( $post->ID, $args['id'], true );
|
364 |
-
$value = ! empty( $meta ) ? $meta : $std_value;
|
365 |
-
|
366 |
-
if ( $value == 'zero' ) {
|
367 |
-
$value = 0;
|
368 |
-
}
|
369 |
-
|
370 |
-
return array( $name, $value );
|
371 |
-
}
|
372 |
-
|
373 |
-
/**
|
374 |
-
* Generate field before template
|
375 |
-
*
|
376 |
-
* @param $args
|
377 |
-
*
|
378 |
-
* @return string
|
379 |
-
*/
|
380 |
-
private function field_before( $args ) {
|
381 |
-
$table = sprintf( '<div class="sp-input-group" id="field-%s">', $args['id'] );
|
382 |
-
$table .= sprintf( '<div class="sp-input-label">' );
|
383 |
-
$table .= sprintf( '<label for="%1$s">%2$s</label>', $args['id'], $args['name'] );
|
384 |
-
if ( ! empty( $args['desc'] ) ) {
|
385 |
-
$table .= sprintf( '<p class="sp-input-desc">%s</p>', $args['desc'] );
|
386 |
-
}
|
387 |
-
$table .= '</div>';
|
388 |
-
$table .= sprintf( '<div class="sp-input-field">' );
|
389 |
-
|
390 |
-
return $table;
|
391 |
-
}
|
392 |
-
|
393 |
-
/**
|
394 |
-
* Generate field after template
|
395 |
-
*
|
396 |
-
* @return string
|
397 |
-
*/
|
398 |
-
private function field_after() {
|
399 |
-
return '</div></div>';
|
400 |
-
}
|
401 |
-
}
|
402 |
-
|
403 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/class-carousel-slider-i18n.php
DELETED
@@ -1,55 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// If this file is called directly, abort.
|
3 |
-
if ( ! defined( 'WPINC' ) ) {
|
4 |
-
die;
|
5 |
-
}
|
6 |
-
/**
|
7 |
-
* Define the internationalization functionality.
|
8 |
-
*
|
9 |
-
* Loads and defines the internationalization files for this plugin
|
10 |
-
* so that it is ready for translation.
|
11 |
-
*
|
12 |
-
* @class Carousel_Slider_i8n
|
13 |
-
* @since 1.7.3
|
14 |
-
* @author Sayful Islam <sayful.islam001@gmail.com>
|
15 |
-
*/
|
16 |
-
if ( ! class_exists( 'Carousel_Slider_i8n' ) ):
|
17 |
-
|
18 |
-
class Carousel_Slider_i8n {
|
19 |
-
protected static $instance = null;
|
20 |
-
protected $plugin_name = 'carousel-slider';
|
21 |
-
|
22 |
-
/**
|
23 |
-
* Ensures only one instance of this class is loaded or can be loaded.
|
24 |
-
*
|
25 |
-
* @return Carousel_Slider_i8n
|
26 |
-
*/
|
27 |
-
public static function init() {
|
28 |
-
if ( is_null( self::$instance ) ) {
|
29 |
-
self::$instance = new self();
|
30 |
-
}
|
31 |
-
|
32 |
-
return self::$instance;
|
33 |
-
}
|
34 |
-
|
35 |
-
public function __construct() {
|
36 |
-
add_action( 'init', array( $this, 'load_textdomain' ) );
|
37 |
-
}
|
38 |
-
|
39 |
-
/**
|
40 |
-
* Load plugin textdomain
|
41 |
-
*/
|
42 |
-
public function load_textdomain() {
|
43 |
-
$locale_file = sprintf( '%1$s-%2$s.mo', 'carousel-slider', get_locale() );
|
44 |
-
$global_file = join( DIRECTORY_SEPARATOR, array( WP_LANG_DIR, 'carousel-slider', $locale_file ) );
|
45 |
-
|
46 |
-
// Look in global /wp-content/languages/carousel-slider folder
|
47 |
-
if ( file_exists( $global_file ) ) {
|
48 |
-
load_textdomain( $this->plugin_name, $global_file );
|
49 |
-
}
|
50 |
-
}
|
51 |
-
}
|
52 |
-
|
53 |
-
endif;
|
54 |
-
|
55 |
-
Carousel_Slider_i8n::init();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/class-carousel-slider-meta-box.php
DELETED
@@ -1,395 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( ! class_exists( 'Carousel_Slider_Meta_Box' ) ):
|
4 |
-
|
5 |
-
class Carousel_Slider_Meta_Box {
|
6 |
-
|
7 |
-
protected static $instance = null;
|
8 |
-
private $post_type = 'carousels';
|
9 |
-
private $form;
|
10 |
-
|
11 |
-
/**
|
12 |
-
* Ensures only one instance of this class is loaded or can be loaded.
|
13 |
-
*
|
14 |
-
* @return Carousel_Slider_Meta_Box
|
15 |
-
*/
|
16 |
-
public static function init() {
|
17 |
-
if ( is_null( self::$instance ) ) {
|
18 |
-
self::$instance = new self();
|
19 |
-
}
|
20 |
-
|
21 |
-
return self::$instance;
|
22 |
-
}
|
23 |
-
|
24 |
-
public function __construct() {
|
25 |
-
add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) );
|
26 |
-
}
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Add carousel slider meta box
|
30 |
-
*/
|
31 |
-
public function add_meta_boxes() {
|
32 |
-
add_meta_box(
|
33 |
-
"carousel-slider-usages-info",
|
34 |
-
__( "Usage (Shortcode)", 'carousel-slider' ),
|
35 |
-
array( $this, 'usages_callback' ),
|
36 |
-
"carousels",
|
37 |
-
"side",
|
38 |
-
"high"
|
39 |
-
);
|
40 |
-
add_meta_box(
|
41 |
-
"carousel-slider-navigation-settings",
|
42 |
-
__( "Navigation Settings", 'carousel-slider' ),
|
43 |
-
array( $this, 'navigation_settings_callback' ),
|
44 |
-
$this->post_type,
|
45 |
-
"side",
|
46 |
-
"low"
|
47 |
-
);
|
48 |
-
add_meta_box(
|
49 |
-
"carousel-slider-autoplay-settings",
|
50 |
-
__( "Autoplay Settings", 'carousel-slider' ),
|
51 |
-
array( $this, 'autoplay_settings_callback' ),
|
52 |
-
$this->post_type,
|
53 |
-
"side",
|
54 |
-
"low"
|
55 |
-
);
|
56 |
-
add_meta_box(
|
57 |
-
"carousel-slider-responsive-settings",
|
58 |
-
__( "Responsive Settings", 'carousel-slider' ),
|
59 |
-
array( $this, 'responsive_settings_callback' ),
|
60 |
-
$this->post_type,
|
61 |
-
"side",
|
62 |
-
"low"
|
63 |
-
);
|
64 |
-
add_meta_box(
|
65 |
-
"carousel-slider-general-settings",
|
66 |
-
__( "General Settings", 'carousel-slider' ),
|
67 |
-
array( $this, 'general_settings_callback' ),
|
68 |
-
$this->post_type,
|
69 |
-
"advanced",
|
70 |
-
"low"
|
71 |
-
);
|
72 |
-
}
|
73 |
-
|
74 |
-
/**
|
75 |
-
* @param WP_Post $post
|
76 |
-
*/
|
77 |
-
public function general_settings_callback( $post ) {
|
78 |
-
$this->form = new Carousel_Slider_Form();
|
79 |
-
require_once CAROUSEL_SLIDER_TEMPLATES . '/admin/general.php';
|
80 |
-
}
|
81 |
-
|
82 |
-
/**
|
83 |
-
* Render short code meta box content
|
84 |
-
*
|
85 |
-
* @param WP_Post $post
|
86 |
-
*/
|
87 |
-
public function usages_callback( $post ) {
|
88 |
-
ob_start(); ?>
|
89 |
-
<p><strong>
|
90 |
-
<?php esc_html_e( 'Copy the following shortcode and paste in post or page where you want to show.', 'carousel-slider' ); ?>
|
91 |
-
</strong>
|
92 |
-
</p>
|
93 |
-
<input
|
94 |
-
type="text"
|
95 |
-
onmousedown="this.clicked = 1;"
|
96 |
-
onfocus="if (!this.clicked) this.select(); else this.clicked = 2;"
|
97 |
-
onclick="if (this.clicked === 2) this.select(); this.clicked = 0;"
|
98 |
-
value="[carousel_slide id='<?php echo $post->ID; ?>']"
|
99 |
-
style="background-color: #f1f1f1; width: 100%; padding: 8px;"
|
100 |
-
>
|
101 |
-
<?php echo ob_get_clean();
|
102 |
-
}
|
103 |
-
|
104 |
-
public function navigation_settings_callback( $post ) {
|
105 |
-
$_nav_button = get_post_meta( $post->ID, '_nav_button', true );
|
106 |
-
$_nav_button = in_array( $_nav_button, array( 'on', 'off', 'always' ) ) ? $_nav_button : 'on';
|
107 |
-
|
108 |
-
$_dot_nav = get_post_meta( $post->ID, '_dot_nav', true );
|
109 |
-
$_dot_nav = in_array( $_dot_nav, array( 'on', 'off', 'hover' ) ) ? $_dot_nav : 'off';
|
110 |
-
|
111 |
-
$_slide_by = get_post_meta( $post->ID, '_slide_by', true );
|
112 |
-
$_slide_by = empty( $_slide_by ) ? 1 : $_slide_by;
|
113 |
-
|
114 |
-
$_nav_color = get_post_meta( $post->ID, '_nav_color', true );
|
115 |
-
$_nav_color = empty( $_nav_color ) ? '#f1f1f1' : $_nav_color;
|
116 |
-
|
117 |
-
$_nav_active_color = get_post_meta( $post->ID, '_nav_active_color', true );
|
118 |
-
$_nav_active_color = empty( $_nav_active_color ) ? '#00d1b2' : $_nav_active_color;
|
119 |
-
|
120 |
-
$_arrow_position = get_post_meta( $post->ID, '_arrow_position', true );
|
121 |
-
$_arrow_position = empty( $_arrow_position ) ? 'outside' : $_arrow_position;
|
122 |
-
|
123 |
-
$_arrow_size = get_post_meta( $post->ID, '_arrow_size', true );
|
124 |
-
$_arrow_size = empty( $_arrow_size ) ? 48 : absint( $_arrow_size );
|
125 |
-
|
126 |
-
$_bullet_size = get_post_meta( $post->ID, '_bullet_size', true );
|
127 |
-
$_bullet_size = empty( $_bullet_size ) ? 10 : absint( $_bullet_size );
|
128 |
-
|
129 |
-
$_bullet_position = get_post_meta( $post->ID, '_bullet_position', true );
|
130 |
-
$_bullet_position = empty( $_bullet_position ) ? 'center' : $_bullet_position;
|
131 |
-
|
132 |
-
$_bullet_shape = get_post_meta( $post->ID, '_bullet_shape', true );
|
133 |
-
$_bullet_shape = empty( $_bullet_shape ) ? 'square' : $_bullet_shape;
|
134 |
-
?>
|
135 |
-
<p>
|
136 |
-
<label for="_nav_button">
|
137 |
-
<strong><?php esc_html_e( 'Show Arrow Nav', 'carousel-slider' ); ?></strong>
|
138 |
-
</label>
|
139 |
-
<select name="carousel_slider[_nav_button]" id="_nav_button" class="small-text">
|
140 |
-
<option value="off" <?php selected( $_nav_button, 'off' ); ?>><?php esc_html_e( 'Never', 'carousel-slider' ); ?></option>
|
141 |
-
<option value="on" <?php selected( $_nav_button, 'on' ); ?>><?php esc_html_e( 'Mouse Over', 'carousel-slider' ); ?></option>
|
142 |
-
<option value="always" <?php selected( $_nav_button, 'always' ); ?>><?php esc_html_e( 'Always', 'carousel-slider' ); ?></option>
|
143 |
-
</select>
|
144 |
-
<span class="cs-tooltip"
|
145 |
-
title="<?php esc_html_e( 'Choose when to show arrow navigator.', 'carousel-slider' ); ?>"></span>
|
146 |
-
</p><!-- Show Arrow Nav -->
|
147 |
-
<p>
|
148 |
-
<label for="_slide_by">
|
149 |
-
<strong><?php esc_html_e( 'Arrow Steps', 'carousel-slider' ); ?></strong>
|
150 |
-
</label>
|
151 |
-
<input class="small-text" id="_slide_by" name="carousel_slider[_slide_by]" type="text"
|
152 |
-
value="<?php echo esc_attr( $_slide_by ); ?>">
|
153 |
-
<span class="cs-tooltip"
|
154 |
-
title="<?php esc_html_e( 'Steps to go for each navigation request. Write "page" with inverted comma to slide by page.', 'carousel-slider' ); ?>"></span>
|
155 |
-
</p><!-- Arrow Steps -->
|
156 |
-
<p>
|
157 |
-
<label for="_arrow_position">
|
158 |
-
<strong><?php esc_html_e( 'Arrow Position', 'carousel-slider' ); ?></strong>
|
159 |
-
</label>
|
160 |
-
<select name="carousel_slider[_arrow_position]" id="_arrow_position" class="small-text">
|
161 |
-
<option value="outside" <?php selected( $_arrow_position, 'outside' ); ?>><?php esc_html_e( 'Outside', 'carousel-slider' ); ?></option>
|
162 |
-
<option value="inside" <?php selected( $_arrow_position, 'inside' ); ?>><?php esc_html_e( 'Inside', 'carousel-slider' ); ?></option>
|
163 |
-
</select>
|
164 |
-
<span class="cs-tooltip"
|
165 |
-
title="<?php esc_html_e( 'Choose where to show arrow. Inside slider or outside slider.', 'carousel-slider' ); ?>"></span>
|
166 |
-
</p><!-- Arrow Position -->
|
167 |
-
<p>
|
168 |
-
<label for="_arrow_size">
|
169 |
-
<strong><?php esc_html_e( 'Arrow Size', 'carousel-slider' ); ?></strong>
|
170 |
-
</label>
|
171 |
-
<input class="small-text" id="_arrow_size" name="carousel_slider[_arrow_size]" type="number"
|
172 |
-
value="<?php echo $_arrow_size; ?>">
|
173 |
-
<span class="cs-tooltip"
|
174 |
-
title="<?php esc_html_e( 'Enter arrow size in pixels.', 'carousel-slider' ); ?>"></span>
|
175 |
-
</p><!-- Arrow Size -->
|
176 |
-
|
177 |
-
<hr>
|
178 |
-
<p>
|
179 |
-
<label for="_dot_nav">
|
180 |
-
<strong><?php esc_html_e( 'Show Bullet Nav', 'carousel-slider' ); ?></strong>
|
181 |
-
</label>
|
182 |
-
<select name="carousel_slider[_dot_nav]" id="_dot_nav" class="small-text">
|
183 |
-
<option value="off" <?php selected( $_dot_nav, 'off' ); ?>><?php esc_html_e( 'Never', 'carousel-slider' ); ?></option>
|
184 |
-
<option value="on" <?php selected( $_dot_nav, 'on' ); ?>><?php esc_html_e( 'Always', 'carousel-slider' ); ?></option>
|
185 |
-
<option value="hover" <?php selected( $_dot_nav, 'hover' ); ?>><?php esc_html_e( 'Mouse Over', 'carousel-slider' ); ?></option>
|
186 |
-
</select>
|
187 |
-
<span class="cs-tooltip"
|
188 |
-
title="<?php esc_html_e( 'Choose when to show bullet navigator.', 'carousel-slider' ); ?>"></span>
|
189 |
-
</p><!-- Show Bullet Nav -->
|
190 |
-
<p>
|
191 |
-
<label for="_bullet_position">
|
192 |
-
<strong><?php esc_html_e( 'Bullet Position', 'carousel-slider' ); ?></strong>
|
193 |
-
</label>
|
194 |
-
<select name="carousel_slider[_bullet_position]" id="_bullet_position" class="small-text">
|
195 |
-
<option value="left" <?php selected( $_bullet_position, 'left' ); ?>><?php esc_html_e( 'Left', 'carousel-slider' ); ?></option>
|
196 |
-
<option value="center" <?php selected( $_bullet_position, 'center' ); ?>><?php esc_html_e( 'Center', 'carousel-slider' ); ?></option>
|
197 |
-
<option value="right" <?php selected( $_bullet_position, 'right' ); ?>><?php esc_html_e( 'Right', 'carousel-slider' ); ?></option>
|
198 |
-
</select>
|
199 |
-
<span class="cs-tooltip"
|
200 |
-
title="<?php esc_html_e( 'Choose where to show bullets.', 'carousel-slider' ); ?>"></span>
|
201 |
-
</p><!-- Arrow Position -->
|
202 |
-
<p>
|
203 |
-
<label for="_bullet_size">
|
204 |
-
<strong><?php esc_html_e( 'Bullet Size', 'carousel-slider' ); ?></strong>
|
205 |
-
</label>
|
206 |
-
<input class="small-text" id="_bullet_size" name="carousel_slider[_bullet_size]" type="number"
|
207 |
-
value="<?php echo $_bullet_size; ?>">
|
208 |
-
<span class="cs-tooltip"
|
209 |
-
title="<?php esc_html_e( 'Enter bullet size in pixels.', 'carousel-slider' ); ?>"></span>
|
210 |
-
</p><!-- Arrow Size -->
|
211 |
-
<p>
|
212 |
-
<label for="_bullet_shape">
|
213 |
-
<strong><?php esc_html_e( 'Bullet Shape', 'carousel-slider' ); ?></strong>
|
214 |
-
</label>
|
215 |
-
<select name="carousel_slider[_bullet_shape]" id="_bullet_shape" class="small-text">
|
216 |
-
<option value="square" <?php selected( $_bullet_shape, 'square' ); ?>><?php esc_html_e( 'Square', 'carousel-slider' ); ?></option>
|
217 |
-
<option value="circle" <?php selected( $_bullet_shape, 'circle' ); ?>><?php esc_html_e( 'Circle', 'carousel-slider' ); ?></option>
|
218 |
-
</select>
|
219 |
-
<span class="cs-tooltip"
|
220 |
-
title="<?php esc_html_e( 'Choose bullet nav shape.', 'carousel-slider' ); ?>"></span>
|
221 |
-
</p><!-- Arrow Position -->
|
222 |
-
|
223 |
-
<hr>
|
224 |
-
<p>
|
225 |
-
<label for="_nav_color">
|
226 |
-
<strong><?php esc_html_e( 'Arrows & Dots Color', 'carousel-slider' ); ?></strong>
|
227 |
-
</label>
|
228 |
-
<span class="cs-tooltip"
|
229 |
-
title="<?php esc_html_e( 'Pick a color for navigation and dots.', 'carousel-slider' ); ?>"></span>
|
230 |
-
<br>
|
231 |
-
<input type="text" class="color-picker" value="<?php echo $_nav_color; ?>" id="_nav_color"
|
232 |
-
name="carousel_slider[_nav_color]" data-alpha="true"
|
233 |
-
data-default-color="<?php echo carousel_slider_default_settings()->nav_color; ?>">
|
234 |
-
</p><!-- Arrows & Dots Color -->
|
235 |
-
|
236 |
-
<p>
|
237 |
-
<label for="_nav_active_color">
|
238 |
-
<strong><?php esc_html_e( 'Arrows & Dots Hover Color', 'carousel-slider' ); ?></strong>
|
239 |
-
</label>
|
240 |
-
<span class="cs-tooltip"
|
241 |
-
title="<?php esc_html_e( 'Pick a color for navigation and dots for active and hover effect.', 'carousel-slider' ); ?>"></span>
|
242 |
-
<br>
|
243 |
-
<input type="text" class="color-picker" value="<?php echo $_nav_active_color; ?>" id="_nav_active_color"
|
244 |
-
name="carousel_slider[_nav_active_color]" data-alpha="true"
|
245 |
-
data-default-color="<?php echo carousel_slider_default_settings()->nav_active_color; ?>">
|
246 |
-
</p><!-- Arrows & Dots Hover Color -->
|
247 |
-
<?php
|
248 |
-
}
|
249 |
-
|
250 |
-
/**
|
251 |
-
* @param WP_Post $post
|
252 |
-
*/
|
253 |
-
public function autoplay_settings_callback( $post ) {
|
254 |
-
$_autoplay = get_post_meta( $post->ID, '_autoplay', true );
|
255 |
-
$_autoplay = in_array( $_autoplay, array( 'on', 'off' ) ) ? $_autoplay : 'on';
|
256 |
-
$_autoplay_pause = get_post_meta( $post->ID, '_autoplay_pause', true );
|
257 |
-
$_autoplay_pause = in_array( $_autoplay_pause, array( 'on', 'off' ) ) ? $_autoplay : 'off';
|
258 |
-
$_autoplay_timeout = get_post_meta( $post->ID, '_autoplay_timeout', true );
|
259 |
-
$_autoplay_timeout = $_autoplay_timeout ? absint( $_autoplay_timeout ) : 5000;
|
260 |
-
$_autoplay_speed = get_post_meta( $post->ID, '_autoplay_speed', true );
|
261 |
-
$_autoplay_speed = $_autoplay_speed ? absint( $_autoplay_speed ) : 500;
|
262 |
-
?>
|
263 |
-
<p>
|
264 |
-
<label for="_autoplay">
|
265 |
-
<strong><?php esc_html_e( 'AutoPlay', 'carousel-slider' ); ?></strong>
|
266 |
-
</label>
|
267 |
-
<select name="carousel_slider[_autoplay]" id="_autoplay" class="small-text">
|
268 |
-
<option value="on" <?php selected( $_autoplay, 'on' ); ?>><?php esc_html_e( 'Enable', 'carousel-slider' ); ?></option>
|
269 |
-
<option value="off" <?php selected( $_autoplay, 'off' ); ?>><?php esc_html_e( 'Disable', 'carousel-slider' ); ?></option>
|
270 |
-
</select>
|
271 |
-
<span class="cs-tooltip"
|
272 |
-
title="<?php esc_html_e( 'Choose whether slideshow should play automatically.', 'carousel-slider' ); ?>"></span>
|
273 |
-
</p>
|
274 |
-
<p>
|
275 |
-
<label for="_autoplay_pause">
|
276 |
-
<strong><?php esc_html_e( 'Pause On Hover', 'carousel-slider' ); ?></strong>
|
277 |
-
</label>
|
278 |
-
<select name="carousel_slider[_autoplay_pause]" id="_autoplay_pause" class="small-text">
|
279 |
-
<option value="on" <?php selected( $_autoplay_pause, 'on' ); ?>><?php esc_html_e( 'Enable', 'carousel-slider' ); ?></option>
|
280 |
-
<option value="off" <?php selected( $_autoplay_pause, 'off' ); ?>><?php esc_html_e( 'Disable', 'carousel-slider' ); ?></option>
|
281 |
-
</select>
|
282 |
-
<span class="cs-tooltip"
|
283 |
-
title="<?php esc_html_e( 'Pause automatic play on mouse hover.', 'carousel-slider' ); ?>"></span>
|
284 |
-
</p>
|
285 |
-
<p>
|
286 |
-
<label for="_autoplay_timeout">
|
287 |
-
<strong><?php esc_html_e( 'Autoplay Timeout', 'carousel-slider' ); ?></strong>
|
288 |
-
</label>
|
289 |
-
<input type="number" name="carousel_slider[_autoplay_timeout]" id="_autoplay_timeout" class="small-text"
|
290 |
-
value="<?php echo $_autoplay_timeout; ?>">
|
291 |
-
<span class="cs-tooltip"
|
292 |
-
title="<?php esc_html_e( 'Automatic play interval timeout in millisecond. Default: 5000', 'carousel-slider' ); ?>"></span>
|
293 |
-
</p><!-- Autoplay Timeout -->
|
294 |
-
<p>
|
295 |
-
<label for="_autoplay_speed">
|
296 |
-
<strong><?php esc_html_e( 'Autoplay Speed', 'carousel-slider' ); ?></strong>
|
297 |
-
</label>
|
298 |
-
<input type="number" name="carousel_slider[_autoplay_speed]" id="_autoplay_speed" class="small-text"
|
299 |
-
value="<?php echo $_autoplay_speed; ?>">
|
300 |
-
<span class="cs-tooltip"
|
301 |
-
title="<?php esc_html_e( 'Automatic play speed in millisecond. Default: 500', 'carousel-slider' ); ?>"></span>
|
302 |
-
</p><!-- Columns -->
|
303 |
-
<?php
|
304 |
-
}
|
305 |
-
|
306 |
-
/**
|
307 |
-
* Renders the meta box.
|
308 |
-
*
|
309 |
-
* @param WP_Post $post
|
310 |
-
*/
|
311 |
-
public function responsive_settings_callback( $post ) {
|
312 |
-
$_items = get_post_meta( $post->ID, '_items', true );
|
313 |
-
$_items = $_items ? absint( $_items ) : 4;
|
314 |
-
|
315 |
-
$_items_desktop = get_post_meta( $post->ID, '_items_desktop', true );
|
316 |
-
$_items_desktop = $_items_desktop ? absint( $_items_desktop ) : 4;
|
317 |
-
|
318 |
-
$_items_small_desktop = get_post_meta( $post->ID, '_items_small_desktop', true );
|
319 |
-
$_items_small_desktop = $_items_small_desktop ? absint( $_items_small_desktop ) : 4;
|
320 |
-
|
321 |
-
$_items_tablet = get_post_meta( $post->ID, '_items_portrait_tablet', true );
|
322 |
-
$_items_tablet = $_items_tablet ? absint( $_items_tablet ) : 3;
|
323 |
-
|
324 |
-
$_items_small_tablet = get_post_meta( $post->ID, '_items_small_portrait_tablet', true );
|
325 |
-
$_items_small_tablet = $_items_small_tablet ? absint( $_items_small_tablet ) : 2;
|
326 |
-
|
327 |
-
$_items_mobile = get_post_meta( $post->ID, '_items_portrait_mobile', true );
|
328 |
-
$_items_mobile = $_items_mobile ? absint( $_items_mobile ) : 1;
|
329 |
-
?>
|
330 |
-
<p>
|
331 |
-
<label for="_items">
|
332 |
-
<strong><?php esc_html_e( 'Columns', 'carousel-slider' ); ?></strong>
|
333 |
-
</label>
|
334 |
-
<input type="number" name="carousel_slider[_items]" id="_items" class="small-text"
|
335 |
-
value="<?php echo $_items; ?>">
|
336 |
-
<span class="cs-tooltip"
|
337 |
-
title="<?php esc_html_e( 'The number of items you want to see on the Extra Large Desktop Layout (Screens size greater than 1921 pixels DP)', 'carousel-slider' ); ?>"></span>
|
338 |
-
</p><!-- Columns -->
|
339 |
-
<p>
|
340 |
-
<label for="_items_desktop">
|
341 |
-
<strong><?php esc_html_e( 'Columns : Desktop', 'carousel-slider' ); ?></strong>
|
342 |
-
</label>
|
343 |
-
<input type="number" name="carousel_slider[_items_desktop]" id="_items_desktop" class="small-text"
|
344 |
-
value="<?php echo $_items_desktop; ?>">
|
345 |
-
<span class="cs-tooltip"
|
346 |
-
title="<?php esc_html_e( 'The number of items you want to see on the Desktop Layout (Screens size from 1200 pixels DP to 1920 pixels DP)', 'carousel-slider' ); ?>"></span>
|
347 |
-
</p><!-- Columns : Desktop -->
|
348 |
-
<p>
|
349 |
-
<label for="_items_small_desktop">
|
350 |
-
<strong><?php esc_html_e( 'Columns : Small Desktop', 'carousel-slider' ); ?></strong>
|
351 |
-
</label>
|
352 |
-
<input type="number" name="carousel_slider[_items_small_desktop]" id="_items_small_desktop"
|
353 |
-
class="small-text"
|
354 |
-
value="<?php echo $_items_small_desktop; ?>">
|
355 |
-
<span class="cs-tooltip"
|
356 |
-
title="<?php esc_html_e( 'The number of items you want to see on the Small Desktop Layout (Screens size from 993 pixels DP to 1199 pixels DP)', 'carousel-slider' ); ?>"></span>
|
357 |
-
</p><!-- Columns : Small Desktop -->
|
358 |
-
<p>
|
359 |
-
<label for="_items_portrait_tablet">
|
360 |
-
<strong><?php esc_html_e( 'Columns : Tablet', 'carousel-slider' ); ?></strong>
|
361 |
-
</label>
|
362 |
-
<input type="number" name="carousel_slider[_items_portrait_tablet]" id="_items_portrait_tablet"
|
363 |
-
class="small-text"
|
364 |
-
value="<?php echo $_items_tablet; ?>">
|
365 |
-
<span class="cs-tooltip"
|
366 |
-
title="<?php esc_html_e( 'The number of items you want to see on the Tablet Layout (Screens size from 768 pixels DP to 992 pixels DP)', 'carousel-slider' ); ?>"></span>
|
367 |
-
</p><!-- Columns : Tablet -->
|
368 |
-
<p>
|
369 |
-
<label for="_items_small_portrait_tablet">
|
370 |
-
<strong><?php esc_html_e( 'Columns : Small Tablet', 'carousel-slider' ); ?></strong>
|
371 |
-
</label>
|
372 |
-
<input type="number" name="carousel_slider[_items_small_portrait_tablet]"
|
373 |
-
id="_items_small_portrait_tablet"
|
374 |
-
class="small-text"
|
375 |
-
value="<?php echo $_items_small_tablet; ?>">
|
376 |
-
<span class="cs-tooltip"
|
377 |
-
title="<?php esc_html_e( 'The number of items you want to see on the Small Tablet Layout(Screens size from 600 pixels DP to 767 pixels DP)', 'carousel-slider' ); ?>"></span>
|
378 |
-
</p><!-- Columns : Small Tablet -->
|
379 |
-
<p>
|
380 |
-
<label for="_items_portrait_mobile">
|
381 |
-
<strong><?php esc_html_e( 'Columns : Mobile', 'carousel-slider' ); ?></strong>
|
382 |
-
</label>
|
383 |
-
<input type="number" name="carousel_slider[_items_portrait_mobile]"
|
384 |
-
id="_items_portrait_mobile"
|
385 |
-
class="small-text"
|
386 |
-
value="<?php echo $_items_mobile; ?>">
|
387 |
-
<span class="cs-tooltip"
|
388 |
-
title="<?php esc_html_e( 'The number of items you want to see on the Mobile Layout (Screens size from 320 pixels DP to 599 pixels DP)', 'carousel-slider' ); ?>"></span>
|
389 |
-
</p><!-- Columns : Mobile -->
|
390 |
-
<?php
|
391 |
-
}
|
392 |
-
}
|
393 |
-
endif;
|
394 |
-
|
395 |
-
Carousel_Slider_Meta_Box::init();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/class-carousel-slider-number-to-word.php
DELETED
@@ -1,253 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Convert a number into English text.
|
5 |
-
*/
|
6 |
-
class Carousel_Slider_Number_To_Word {
|
7 |
-
|
8 |
-
/**
|
9 |
-
* Carousel_Slider_Number_To_Word constructor.
|
10 |
-
*
|
11 |
-
* @param null $number
|
12 |
-
*/
|
13 |
-
public function __construct( $number = null ) {
|
14 |
-
if ( is_integer( $number ) ) {
|
15 |
-
return $this->convert( $number );
|
16 |
-
}
|
17 |
-
}
|
18 |
-
|
19 |
-
/**
|
20 |
-
* Convert number into english word
|
21 |
-
*
|
22 |
-
* @param $number
|
23 |
-
*
|
24 |
-
* @return string
|
25 |
-
*/
|
26 |
-
public function convert( $number ) {
|
27 |
-
$split_string = explode( ".", (string) $number );
|
28 |
-
$integer = isset( $split_string[0] ) ? $split_string[0] : null;
|
29 |
-
$fraction = isset( $split_string[1] ) ? $split_string[1] : null;
|
30 |
-
// list( $integer, $fraction ) = explode( ".", (string) $number );
|
31 |
-
|
32 |
-
$output = "";
|
33 |
-
|
34 |
-
if ( $integer{0} == "-" ) {
|
35 |
-
$output = "negative ";
|
36 |
-
$integer = ltrim( $integer, "-" );
|
37 |
-
} else if ( $integer{0} == "+" ) {
|
38 |
-
$output = "positive ";
|
39 |
-
$integer = ltrim( $integer, "+" );
|
40 |
-
}
|
41 |
-
|
42 |
-
if ( $integer{0} == "0" ) {
|
43 |
-
$output .= "zero";
|
44 |
-
} else {
|
45 |
-
$integer = str_pad( $integer, 36, "0", STR_PAD_LEFT );
|
46 |
-
$group = rtrim( chunk_split( $integer, 3, " " ), " " );
|
47 |
-
$groups = explode( " ", $group );
|
48 |
-
|
49 |
-
$groups2 = array();
|
50 |
-
foreach ( $groups as $g ) {
|
51 |
-
$groups2[] = $this->convert_three_digit( $g{0}, $g{1}, $g{2} );
|
52 |
-
}
|
53 |
-
|
54 |
-
for ( $z = 0; $z < count( $groups2 ); $z ++ ) {
|
55 |
-
if ( $groups2[ $z ] != "" ) {
|
56 |
-
$output .= $groups2[ $z ] . $this->convert_group( 11 - $z ) . (
|
57 |
-
$z < 11
|
58 |
-
&& ! array_search( '', array_slice( $groups2, $z + 1, - 1 ) )
|
59 |
-
&& $groups2[11] != ''
|
60 |
-
&& $groups[11]{0} == '0'
|
61 |
-
? " and "
|
62 |
-
: ", "
|
63 |
-
);
|
64 |
-
}
|
65 |
-
}
|
66 |
-
|
67 |
-
$output = rtrim( $output, ", " );
|
68 |
-
}
|
69 |
-
|
70 |
-
if ( $fraction > 0 ) {
|
71 |
-
$output .= " point";
|
72 |
-
for ( $i = 0; $i < strlen( $fraction ); $i ++ ) {
|
73 |
-
$output .= " " . $this->convert_digit( $fraction{$i} );
|
74 |
-
}
|
75 |
-
}
|
76 |
-
|
77 |
-
return $output;
|
78 |
-
}
|
79 |
-
|
80 |
-
/**
|
81 |
-
* Convert three digits into english word
|
82 |
-
*
|
83 |
-
* @param $digit1
|
84 |
-
* @param $digit2
|
85 |
-
* @param $digit3
|
86 |
-
*
|
87 |
-
* @return string
|
88 |
-
*/
|
89 |
-
private function convert_three_digit( $digit1, $digit2, $digit3 ) {
|
90 |
-
$buffer = "";
|
91 |
-
|
92 |
-
if ( $digit1 == "0" && $digit2 == "0" && $digit3 == "0" ) {
|
93 |
-
return "";
|
94 |
-
}
|
95 |
-
|
96 |
-
if ( $digit1 != "0" ) {
|
97 |
-
$buffer .= $this->convert_digit( $digit1 ) . " hundred";
|
98 |
-
if ( $digit2 != "0" || $digit3 != "0" ) {
|
99 |
-
$buffer .= " and ";
|
100 |
-
}
|
101 |
-
}
|
102 |
-
|
103 |
-
if ( $digit2 != "0" ) {
|
104 |
-
$buffer .= $this->convert_two_digit( $digit2, $digit3 );
|
105 |
-
} else if ( $digit3 != "0" ) {
|
106 |
-
$buffer .= $this->convert_digit( $digit3 );
|
107 |
-
}
|
108 |
-
|
109 |
-
return $buffer;
|
110 |
-
}
|
111 |
-
|
112 |
-
/**
|
113 |
-
* Convert single digit into english word
|
114 |
-
*
|
115 |
-
* @param $digit
|
116 |
-
*
|
117 |
-
* @return string
|
118 |
-
*/
|
119 |
-
private function convert_digit( $digit ) {
|
120 |
-
switch ( $digit ) {
|
121 |
-
case "0":
|
122 |
-
return "zero";
|
123 |
-
case "1":
|
124 |
-
return "one";
|
125 |
-
case "2":
|
126 |
-
return "two";
|
127 |
-
case "3":
|
128 |
-
return "three";
|
129 |
-
case "4":
|
130 |
-
return "four";
|
131 |
-
case "5":
|
132 |
-
return "five";
|
133 |
-
case "6":
|
134 |
-
return "six";
|
135 |
-
case "7":
|
136 |
-
return "seven";
|
137 |
-
case "8":
|
138 |
-
return "eight";
|
139 |
-
case "9":
|
140 |
-
return "nine";
|
141 |
-
}
|
142 |
-
}
|
143 |
-
|
144 |
-
/**
|
145 |
-
* Convert two digits into english word
|
146 |
-
*
|
147 |
-
* @param $digit1
|
148 |
-
* @param $digit2
|
149 |
-
*
|
150 |
-
* @return string
|
151 |
-
*/
|
152 |
-
private function convert_two_digit( $digit1, $digit2 ) {
|
153 |
-
if ( $digit2 == "0" ) {
|
154 |
-
switch ( $digit1 ) {
|
155 |
-
case "1":
|
156 |
-
return "ten";
|
157 |
-
case "2":
|
158 |
-
return "twenty";
|
159 |
-
case "3":
|
160 |
-
return "thirty";
|
161 |
-
case "4":
|
162 |
-
return "forty";
|
163 |
-
case "5":
|
164 |
-
return "fifty";
|
165 |
-
case "6":
|
166 |
-
return "sixty";
|
167 |
-
case "7":
|
168 |
-
return "seventy";
|
169 |
-
case "8":
|
170 |
-
return "eighty";
|
171 |
-
case "9":
|
172 |
-
return "ninety";
|
173 |
-
}
|
174 |
-
} else if ( $digit1 == "1" ) {
|
175 |
-
switch ( $digit2 ) {
|
176 |
-
case "1":
|
177 |
-
return "eleven";
|
178 |
-
case "2":
|
179 |
-
return "twelve";
|
180 |
-
case "3":
|
181 |
-
return "thirteen";
|
182 |
-
case "4":
|
183 |
-
return "fourteen";
|
184 |
-
case "5":
|
185 |
-
return "fifteen";
|
186 |
-
case "6":
|
187 |
-
return "sixteen";
|
188 |
-
case "7":
|
189 |
-
return "seventeen";
|
190 |
-
case "8":
|
191 |
-
return "eighteen";
|
192 |
-
case "9":
|
193 |
-
return "nineteen";
|
194 |
-
}
|
195 |
-
} else {
|
196 |
-
$temp = $this->convert_digit( $digit2 );
|
197 |
-
switch ( $digit1 ) {
|
198 |
-
case "2":
|
199 |
-
return "twenty-$temp";
|
200 |
-
case "3":
|
201 |
-
return "thirty-$temp";
|
202 |
-
case "4":
|
203 |
-
return "forty-$temp";
|
204 |
-
case "5":
|
205 |
-
return "fifty-$temp";
|
206 |
-
case "6":
|
207 |
-
return "sixty-$temp";
|
208 |
-
case "7":
|
209 |
-
return "seventy-$temp";
|
210 |
-
case "8":
|
211 |
-
return "eighty-$temp";
|
212 |
-
case "9":
|
213 |
-
return "ninety-$temp";
|
214 |
-
}
|
215 |
-
}
|
216 |
-
}
|
217 |
-
|
218 |
-
/**
|
219 |
-
* Convert group into english word
|
220 |
-
*
|
221 |
-
* @param $index
|
222 |
-
*
|
223 |
-
* @return string
|
224 |
-
*/
|
225 |
-
private function convert_group( $index ) {
|
226 |
-
switch ( $index ) {
|
227 |
-
case 11:
|
228 |
-
return " decillion";
|
229 |
-
case 10:
|
230 |
-
return " nonillion";
|
231 |
-
case 9:
|
232 |
-
return " octillion";
|
233 |
-
case 8:
|
234 |
-
return " septillion";
|
235 |
-
case 7:
|
236 |
-
return " sextillion";
|
237 |
-
case 6:
|
238 |
-
return " quintrillion";
|
239 |
-
case 5:
|
240 |
-
return " quadrillion";
|
241 |
-
case 4:
|
242 |
-
return " trillion";
|
243 |
-
case 3:
|
244 |
-
return " billion";
|
245 |
-
case 2:
|
246 |
-
return " million";
|
247 |
-
case 1:
|
248 |
-
return " thousand";
|
249 |
-
case 0:
|
250 |
-
return "";
|
251 |
-
}
|
252 |
-
}
|
253 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/class-carousel-slider-product.php
DELETED
@@ -1,517 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**!
|
3 |
-
* @package Carousel_Slider
|
4 |
-
* @subpackage Carousel_Slider_Product
|
5 |
-
*
|
6 |
-
* @method init()
|
7 |
-
* @method wish_list_button()
|
8 |
-
* @method quick_view_button()
|
9 |
-
* @method quick_view()
|
10 |
-
* @method products()
|
11 |
-
* @method recent_products()
|
12 |
-
* @method best_selling_products()
|
13 |
-
* @method featured_products()
|
14 |
-
* @method sale_products()
|
15 |
-
* @method top_rated_products()
|
16 |
-
* @method product_categories()
|
17 |
-
* @method products_by_categories()
|
18 |
-
* @method products_by_tags()
|
19 |
-
*/
|
20 |
-
|
21 |
-
if ( ! class_exists( 'Carousel_Slider_Product' ) ):
|
22 |
-
|
23 |
-
class Carousel_Slider_Product {
|
24 |
-
|
25 |
-
/**
|
26 |
-
* Product carousel quick view
|
27 |
-
*/
|
28 |
-
public static function init() {
|
29 |
-
add_action( 'carousel_slider_after_shop_loop_item', array( __CLASS__, 'wish_list_button' ), 12, 2 );
|
30 |
-
add_action( 'carousel_slider_after_shop_loop_item', array( __CLASS__, 'quick_view_button' ), 10, 2 );
|
31 |
-
|
32 |
-
add_action( 'wp_ajax_carousel_slider_quick_view', array( __CLASS__, 'quick_view' ) );
|
33 |
-
add_action( 'wp_ajax_nopriv_carousel_slider_quick_view', array( __CLASS__, 'quick_view' ) );
|
34 |
-
}
|
35 |
-
|
36 |
-
/**
|
37 |
-
* Show YITH Wishlist button on product slider
|
38 |
-
*
|
39 |
-
* @param WC_Product $product
|
40 |
-
* @param $slider_id
|
41 |
-
*/
|
42 |
-
public static function wish_list_button( $product, $slider_id ) {
|
43 |
-
$_product_wish_list = get_post_meta( $slider_id, '_product_wishlist', true );
|
44 |
-
|
45 |
-
if ( version_compare( WC_VERSION, '2.7.0', '>=' ) ) {
|
46 |
-
$product_id = $product->get_id();
|
47 |
-
} else {
|
48 |
-
$product_id = $product->id;
|
49 |
-
}
|
50 |
-
|
51 |
-
if ( class_exists( 'YITH_WCWL' ) && $_product_wish_list == 'on' ) {
|
52 |
-
echo do_shortcode( '[yith_wcwl_add_to_wishlist product_id="' . $product_id . '"]' );
|
53 |
-
}
|
54 |
-
}
|
55 |
-
|
56 |
-
/**
|
57 |
-
* Show quick view button on product slider
|
58 |
-
*
|
59 |
-
* @param WC_Product $product
|
60 |
-
* @param $slider_id
|
61 |
-
*/
|
62 |
-
public static function quick_view_button( $product, $slider_id ) {
|
63 |
-
$_show_btn = get_post_meta( $slider_id, '_product_quick_view', true );
|
64 |
-
|
65 |
-
if ( $_show_btn == 'on' ) {
|
66 |
-
|
67 |
-
if ( version_compare( WC_VERSION, '2.7.0', '>=' ) ) {
|
68 |
-
$product_id = $product->get_id();
|
69 |
-
} else {
|
70 |
-
$product_id = $product->id;
|
71 |
-
}
|
72 |
-
|
73 |
-
wp_enqueue_script( 'magnific-popup' );
|
74 |
-
|
75 |
-
$ajax_url = wp_nonce_url( add_query_arg( array(
|
76 |
-
'ajax' => 'true',
|
77 |
-
'action' => 'carousel_slider_quick_view',
|
78 |
-
'product_id' => $product_id,
|
79 |
-
'slide_id' => $slider_id
|
80 |
-
), admin_url( 'admin-ajax.php' ) ), 'carousel_slider_quick_view' );
|
81 |
-
|
82 |
-
$quick_view_html = '<div style="clear: both;"></div>';
|
83 |
-
$quick_view_html .= sprintf(
|
84 |
-
'<a class="magnific-popup button quick_view" href="%1$s" data-product-id="%2$s">%3$s</a>',
|
85 |
-
$ajax_url,
|
86 |
-
$product_id,
|
87 |
-
__( 'Quick View', 'carousel-slider' )
|
88 |
-
);
|
89 |
-
echo apply_filters( 'carousel_slider_product_quick_view', $quick_view_html, $product );
|
90 |
-
}
|
91 |
-
}
|
92 |
-
|
93 |
-
/**
|
94 |
-
* Display quick view popup content
|
95 |
-
*/
|
96 |
-
public static function quick_view() {
|
97 |
-
if ( ! isset( $_GET['_wpnonce'], $_GET['product_id'], $_GET['slide_id'] ) ) {
|
98 |
-
wp_die();
|
99 |
-
}
|
100 |
-
|
101 |
-
if ( ! wp_verify_nonce( $_GET['_wpnonce'], 'carousel_slider_quick_view' ) ) {
|
102 |
-
wp_die();
|
103 |
-
}
|
104 |
-
|
105 |
-
global $product;
|
106 |
-
$product = wc_get_product( intval( $_GET['product_id'] ) );
|
107 |
-
|
108 |
-
?>
|
109 |
-
<div id="pmid-<?php echo intval( $_GET['slide_id'] ); ?>" class="product carousel-slider__product-modal">
|
110 |
-
|
111 |
-
<div class="images">
|
112 |
-
<?php echo get_the_post_thumbnail( $product->get_id(), 'medium_large' ); ?>
|
113 |
-
<?php if ( $product->is_on_sale() ) : ?>
|
114 |
-
<?php echo apply_filters( 'woocommerce_sale_flash',
|
115 |
-
'<span class="onsale">' . __( 'Sale!', 'carousel-slider' ) . '</span>', $product ); ?>
|
116 |
-
<?php endif; ?>
|
117 |
-
</div>
|
118 |
-
|
119 |
-
<div class="summary entry-summary">
|
120 |
-
|
121 |
-
<h1 class="product_title entry-title">
|
122 |
-
<?php echo esc_attr( $product->get_title() ); ?>
|
123 |
-
</h1>
|
124 |
-
|
125 |
-
<div class="woocommerce-product-rating">
|
126 |
-
<?php
|
127 |
-
// Check if WooCommerce Version 3.0.0 or higher
|
128 |
-
if ( function_exists( 'wc_get_rating_html' ) ) {
|
129 |
-
echo wc_get_rating_html( $product->get_average_rating() );
|
130 |
-
} elseif ( method_exists( $product, 'get_rating_html' ) ) {
|
131 |
-
echo $product->get_rating_html();
|
132 |
-
}
|
133 |
-
?>
|
134 |
-
</div>
|
135 |
-
|
136 |
-
<div class="price">
|
137 |
-
<?php
|
138 |
-
if ( $product->get_price_html() ) {
|
139 |
-
echo $product->get_price_html();
|
140 |
-
}
|
141 |
-
?>
|
142 |
-
</div>
|
143 |
-
|
144 |
-
<div class="description">
|
145 |
-
<?php
|
146 |
-
echo '<div style="clear: both;"></div>';
|
147 |
-
echo apply_filters( 'woocommerce_short_description', $product->post->post_excerpt );
|
148 |
-
?>
|
149 |
-
</div>
|
150 |
-
|
151 |
-
<div>
|
152 |
-
<?php
|
153 |
-
// Show button
|
154 |
-
echo '<div style="clear: both;"></div>';
|
155 |
-
if ( function_exists( 'woocommerce_template_loop_add_to_cart' ) ) {
|
156 |
-
woocommerce_template_loop_add_to_cart();
|
157 |
-
}
|
158 |
-
?>
|
159 |
-
</div>
|
160 |
-
|
161 |
-
</div>
|
162 |
-
</div>
|
163 |
-
<?php
|
164 |
-
wp_die();
|
165 |
-
}
|
166 |
-
|
167 |
-
/**
|
168 |
-
* Get WooCommerce version
|
169 |
-
*
|
170 |
-
* @return string
|
171 |
-
*/
|
172 |
-
private function wc_version() {
|
173 |
-
if ( defined( 'WC_VERSION' ) ) {
|
174 |
-
return WC_VERSION;
|
175 |
-
}
|
176 |
-
|
177 |
-
return '0.0.0';
|
178 |
-
}
|
179 |
-
|
180 |
-
/**
|
181 |
-
* List multiple products by product ids
|
182 |
-
*
|
183 |
-
* Works with WooCommerce Version 2.5.*, 2.6.*, 3.0.*, 3.1.*
|
184 |
-
*
|
185 |
-
* @param array $args
|
186 |
-
*
|
187 |
-
* @return array
|
188 |
-
*/
|
189 |
-
public function products( $args = array() ) {
|
190 |
-
$defaults = array(
|
191 |
-
'orderby' => 'title',
|
192 |
-
'order' => 'asc',
|
193 |
-
'posts_per_page' => - 1,
|
194 |
-
'post__in' => array(),
|
195 |
-
);
|
196 |
-
$args = wp_parse_args( $args, $defaults );
|
197 |
-
|
198 |
-
$query_args = array(
|
199 |
-
'post_type' => 'product',
|
200 |
-
'post_status' => 'publish',
|
201 |
-
'ignore_sticky_posts' => 1,
|
202 |
-
'posts_per_page' => $args['posts_per_page'],
|
203 |
-
'orderby' => $args['orderby'],
|
204 |
-
'order' => $args['order'],
|
205 |
-
'post__in' => $args['post__in'],
|
206 |
-
'meta_query' => WC()->query->get_meta_query(),
|
207 |
-
);
|
208 |
-
|
209 |
-
if ( version_compare( $this->wc_version(), '2.7.0', '>=' ) ) {
|
210 |
-
$query_args['tax_query'] = WC()->query->get_tax_query();
|
211 |
-
}
|
212 |
-
|
213 |
-
return get_posts( $query_args );
|
214 |
-
}
|
215 |
-
|
216 |
-
/**
|
217 |
-
* Get Recent Products
|
218 |
-
*
|
219 |
-
* Works with WooCommerce Version 2.5.*, 2.6.*, 3.0.*, 3.1.*
|
220 |
-
*
|
221 |
-
* @param array $args
|
222 |
-
*
|
223 |
-
* @return array
|
224 |
-
*/
|
225 |
-
public function recent_products( $args = array() ) {
|
226 |
-
|
227 |
-
$defaults = array(
|
228 |
-
'posts_per_page' => 12,
|
229 |
-
'orderby' => 'date',
|
230 |
-
'order' => 'desc',
|
231 |
-
);
|
232 |
-
|
233 |
-
$args = wp_parse_args( $args, $defaults );
|
234 |
-
|
235 |
-
$query_args = array(
|
236 |
-
'post_type' => 'product',
|
237 |
-
'post_status' => 'publish',
|
238 |
-
'ignore_sticky_posts' => 1,
|
239 |
-
'posts_per_page' => $args['posts_per_page'],
|
240 |
-
'orderby' => $args['orderby'],
|
241 |
-
'order' => $args['order'],
|
242 |
-
'meta_query' => WC()->query->get_meta_query(),
|
243 |
-
);
|
244 |
-
|
245 |
-
if ( version_compare( $this->wc_version(), '2.7.0', '>=' ) ) {
|
246 |
-
$query_args['tax_query'] = WC()->query->get_tax_query();
|
247 |
-
}
|
248 |
-
|
249 |
-
return get_posts( $query_args );
|
250 |
-
}
|
251 |
-
|
252 |
-
/**
|
253 |
-
* List best selling products on sale.
|
254 |
-
*
|
255 |
-
* Works with WooCommerce Version 2.5.*, 2.6.*, 3.0.*, 3.1.*
|
256 |
-
*
|
257 |
-
* @param array $args
|
258 |
-
*
|
259 |
-
* @return array
|
260 |
-
*/
|
261 |
-
public function best_selling_products( $args = array() ) {
|
262 |
-
|
263 |
-
$defaults = array(
|
264 |
-
'posts_per_page' => 12,
|
265 |
-
);
|
266 |
-
|
267 |
-
$args = wp_parse_args( $args, $defaults );
|
268 |
-
|
269 |
-
$query_args = array(
|
270 |
-
'post_type' => 'product',
|
271 |
-
'post_status' => 'publish',
|
272 |
-
'ignore_sticky_posts' => 1,
|
273 |
-
'posts_per_page' => $args['posts_per_page'],
|
274 |
-
'meta_key' => 'total_sales',
|
275 |
-
'orderby' => 'meta_value_num',
|
276 |
-
'meta_query' => WC()->query->get_meta_query(),
|
277 |
-
);
|
278 |
-
|
279 |
-
if ( version_compare( $this->wc_version(), '2.7.0', '>=' ) ) {
|
280 |
-
$query_args['tax_query'] = WC()->query->get_tax_query();
|
281 |
-
}
|
282 |
-
|
283 |
-
return get_posts( $query_args );
|
284 |
-
}
|
285 |
-
|
286 |
-
/**
|
287 |
-
* Get WooCommerce featured products
|
288 |
-
*
|
289 |
-
* Works with WooCommerce Version 2.5.*, 2.6.*, 3.0.*, 3.1.*
|
290 |
-
*
|
291 |
-
* @param array $args
|
292 |
-
*
|
293 |
-
* @return array
|
294 |
-
*/
|
295 |
-
public function featured_products( $args = array() ) {
|
296 |
-
|
297 |
-
$defaults = array(
|
298 |
-
'posts_per_page' => 12,
|
299 |
-
'orderby' => 'date',
|
300 |
-
'order' => 'desc',
|
301 |
-
);
|
302 |
-
|
303 |
-
$args = wp_parse_args( $args, $defaults );
|
304 |
-
|
305 |
-
$meta_query = WC()->query->get_meta_query();
|
306 |
-
|
307 |
-
if ( version_compare( $this->wc_version(), '2.7.0', '<' ) ) {
|
308 |
-
$meta_query[] = array(
|
309 |
-
'key' => '_featured',
|
310 |
-
'value' => 'yes'
|
311 |
-
);
|
312 |
-
}
|
313 |
-
|
314 |
-
$query_args = array(
|
315 |
-
'post_type' => 'product',
|
316 |
-
'post_status' => 'publish',
|
317 |
-
'ignore_sticky_posts' => 1,
|
318 |
-
'posts_per_page' => $args['posts_per_page'],
|
319 |
-
'orderby' => $args['orderby'],
|
320 |
-
'order' => $args['order'],
|
321 |
-
'meta_query' => $meta_query,
|
322 |
-
);
|
323 |
-
|
324 |
-
if ( version_compare( $this->wc_version(), '2.7.0', '>=' ) ) {
|
325 |
-
$tax_query = WC()->query->get_tax_query();
|
326 |
-
$tax_query[] = array(
|
327 |
-
'taxonomy' => 'product_visibility',
|
328 |
-
'field' => 'name',
|
329 |
-
'terms' => 'featured',
|
330 |
-
'operator' => 'IN',
|
331 |
-
);
|
332 |
-
$query_args['tax_query'] = $tax_query;
|
333 |
-
}
|
334 |
-
|
335 |
-
|
336 |
-
return get_posts( $query_args );
|
337 |
-
}
|
338 |
-
|
339 |
-
/**
|
340 |
-
* List all products on sale.
|
341 |
-
*
|
342 |
-
* Works with WooCommerce Version 2.5.*, 2.6.*, 3.0.*, 3.1.*
|
343 |
-
*
|
344 |
-
* @param array $args
|
345 |
-
*
|
346 |
-
* @return array
|
347 |
-
*/
|
348 |
-
public function sale_products( $args = array() ) {
|
349 |
-
$defaults = array(
|
350 |
-
'posts_per_page' => 12,
|
351 |
-
'orderby' => 'title',
|
352 |
-
'order' => 'asc',
|
353 |
-
);
|
354 |
-
|
355 |
-
$args = wp_parse_args( $args, $defaults );
|
356 |
-
|
357 |
-
$query_args = array(
|
358 |
-
'posts_per_page' => $args['posts_per_page'],
|
359 |
-
'orderby' => $args['orderby'],
|
360 |
-
'order' => $args['order'],
|
361 |
-
'no_found_rows' => 1,
|
362 |
-
'post_status' => 'publish',
|
363 |
-
'post_type' => 'product',
|
364 |
-
'meta_query' => WC()->query->get_meta_query(),
|
365 |
-
'post__in' => array_merge( array( 0 ), wc_get_product_ids_on_sale() ),
|
366 |
-
);
|
367 |
-
|
368 |
-
if ( version_compare( $this->wc_version(), '2.7.0', '>=' ) ) {
|
369 |
-
$query_args['tax_query'] = WC()->query->get_tax_query();
|
370 |
-
}
|
371 |
-
|
372 |
-
return get_posts( $query_args );
|
373 |
-
}
|
374 |
-
|
375 |
-
/**
|
376 |
-
* Get top rated products
|
377 |
-
*
|
378 |
-
* Works with WooCommerce Version 2.5.*, 2.6.*, 3.0.*, 3.1.*
|
379 |
-
*
|
380 |
-
* @param array $args
|
381 |
-
*
|
382 |
-
* @return array
|
383 |
-
*/
|
384 |
-
public function top_rated_products( $args = array() ) {
|
385 |
-
$defaults = array(
|
386 |
-
'posts_per_page' => 12,
|
387 |
-
'orderby' => 'title',
|
388 |
-
'order' => 'asc',
|
389 |
-
);
|
390 |
-
|
391 |
-
$args = wp_parse_args( $args, $defaults );
|
392 |
-
|
393 |
-
if ( version_compare( $this->wc_version(), '2.7.0', '>=' ) ) {
|
394 |
-
$query_args = array(
|
395 |
-
'posts_per_page' => $args['posts_per_page'],
|
396 |
-
'no_found_rows' => 1,
|
397 |
-
'post_status' => 'publish',
|
398 |
-
'post_type' => 'product',
|
399 |
-
'meta_key' => '_wc_average_rating',
|
400 |
-
'orderby' => 'meta_value_num',
|
401 |
-
'order' => 'DESC',
|
402 |
-
'meta_query' => WC()->query->get_meta_query(),
|
403 |
-
'tax_query' => WC()->query->get_tax_query(),
|
404 |
-
);
|
405 |
-
$_posts = new WP_Query( $query_args );
|
406 |
-
|
407 |
-
return $_posts->posts;
|
408 |
-
}
|
409 |
-
|
410 |
-
// For WooCommerce version is less than 2.7.0
|
411 |
-
add_filter( 'posts_clauses', array( WC()->query, 'order_by_rating_post_clauses' ) );
|
412 |
-
|
413 |
-
$query_args = array(
|
414 |
-
'post_type' => 'product',
|
415 |
-
'post_status' => 'publish',
|
416 |
-
'ignore_sticky_posts' => 1,
|
417 |
-
'orderby' => $args['orderby'],
|
418 |
-
'order' => $args['order'],
|
419 |
-
'posts_per_page' => $args['posts_per_page'],
|
420 |
-
'meta_query' => WC()->query->get_meta_query(),
|
421 |
-
);
|
422 |
-
|
423 |
-
|
424 |
-
$_posts = new WP_Query( $query_args );
|
425 |
-
|
426 |
-
remove_filter( 'posts_clauses', array( WC()->query, 'order_by_rating_post_clauses' ) );
|
427 |
-
|
428 |
-
return $_posts->posts;
|
429 |
-
}
|
430 |
-
|
431 |
-
|
432 |
-
/**
|
433 |
-
* List all (or limited) product categories.
|
434 |
-
*
|
435 |
-
* Works with WooCommerce Version 2.5.*, 2.6.*, 3.0.*, 3.1.*
|
436 |
-
*
|
437 |
-
* @param array $args
|
438 |
-
*
|
439 |
-
* @return array|int|WP_Error
|
440 |
-
*/
|
441 |
-
public function product_categories( $args = array() ) {
|
442 |
-
|
443 |
-
$default = array(
|
444 |
-
'taxonomy' => 'product_cat',
|
445 |
-
'hide_empty' => 1,
|
446 |
-
'orderby' => 'name',
|
447 |
-
'order' => 'ASC',
|
448 |
-
);
|
449 |
-
|
450 |
-
$args = wp_parse_args( $args, $default );
|
451 |
-
|
452 |
-
return get_terms( $args );
|
453 |
-
}
|
454 |
-
|
455 |
-
/**
|
456 |
-
* Get products by categories ids
|
457 |
-
*
|
458 |
-
* Works with WooCommerce Version 2.5.*, 2.6.*, 3.0.*, 3.1.*
|
459 |
-
*
|
460 |
-
* @param array $cat_ids
|
461 |
-
* @param int $per_page
|
462 |
-
*
|
463 |
-
* @return array
|
464 |
-
*/
|
465 |
-
public function products_by_categories( $cat_ids = array(), $per_page = 12 ) {
|
466 |
-
$args = array(
|
467 |
-
'post_type' => 'product',
|
468 |
-
'post_status' => 'publish',
|
469 |
-
'ignore_sticky_post' => 1,
|
470 |
-
'posts_per_page' => $per_page,
|
471 |
-
'tax_query' => array(
|
472 |
-
array(
|
473 |
-
'taxonomy' => 'product_cat',
|
474 |
-
'field' => 'term_id',
|
475 |
-
'terms' => $cat_ids,
|
476 |
-
'operator' => 'IN',
|
477 |
-
),
|
478 |
-
),
|
479 |
-
);
|
480 |
-
|
481 |
-
return get_posts( $args );
|
482 |
-
}
|
483 |
-
|
484 |
-
/**
|
485 |
-
* Get products by tags ids
|
486 |
-
*
|
487 |
-
* Works with WooCommerce Version 2.5.*, 2.6.*, 3.0.*, 3.1.*
|
488 |
-
*
|
489 |
-
* @param array $cat_ids
|
490 |
-
* @param int $per_page
|
491 |
-
*
|
492 |
-
* @return array
|
493 |
-
*/
|
494 |
-
public function products_by_tags( $cat_ids = array(), $per_page = 12 ) {
|
495 |
-
$args = array(
|
496 |
-
'post_type' => 'product',
|
497 |
-
'post_status' => 'publish',
|
498 |
-
'ignore_sticky_post' => 1,
|
499 |
-
'posts_per_page' => $per_page,
|
500 |
-
'tax_query' => array(
|
501 |
-
array(
|
502 |
-
'taxonomy' => 'product_tag',
|
503 |
-
'field' => 'term_id',
|
504 |
-
'terms' => $cat_ids,
|
505 |
-
'operator' => 'IN',
|
506 |
-
),
|
507 |
-
),
|
508 |
-
);
|
509 |
-
|
510 |
-
return get_posts( $args );
|
511 |
-
}
|
512 |
-
}
|
513 |
-
|
514 |
-
|
515 |
-
endif;
|
516 |
-
|
517 |
-
Carousel_Slider_Product::init();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/class-carousel-slider-script.php
DELETED
@@ -1,269 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! class_exists( 'Carousel_Slider_Script' ) ):
|
3 |
-
|
4 |
-
class Carousel_Slider_Script {
|
5 |
-
|
6 |
-
protected static $instance = null;
|
7 |
-
|
8 |
-
/**
|
9 |
-
* Ensures only one instance of this class is loaded or can be loaded.
|
10 |
-
*
|
11 |
-
* @return Carousel_Slider_Script
|
12 |
-
*/
|
13 |
-
public static function init() {
|
14 |
-
if ( is_null( self::$instance ) ) {
|
15 |
-
self::$instance = new self();
|
16 |
-
}
|
17 |
-
|
18 |
-
return self::$instance;
|
19 |
-
}
|
20 |
-
|
21 |
-
public function __construct() {
|
22 |
-
add_action( 'wp_enqueue_scripts', array( $this, 'frontend_scripts' ), 15 );
|
23 |
-
add_action( 'wp_footer', array( $this, 'inline_script' ), 30 );
|
24 |
-
|
25 |
-
add_action( 'admin_enqueue_scripts', array( $this, 'admin_scripts' ), 10 );
|
26 |
-
add_action( 'admin_footer', array( $this, 'gallery_url_template' ), 5 );
|
27 |
-
}
|
28 |
-
|
29 |
-
/**
|
30 |
-
* Load frontend scripts
|
31 |
-
*/
|
32 |
-
public function frontend_scripts() {
|
33 |
-
wp_register_style(
|
34 |
-
'carousel-slider',
|
35 |
-
CAROUSEL_SLIDER_ASSETS . '/css/style.css',
|
36 |
-
array(),
|
37 |
-
CAROUSEL_SLIDER_VERSION,
|
38 |
-
'all'
|
39 |
-
);
|
40 |
-
wp_register_script(
|
41 |
-
'owl-carousel',
|
42 |
-
CAROUSEL_SLIDER_ASSETS . '/js/vendors/owl.carousel.min.js',
|
43 |
-
array( 'jquery' ),
|
44 |
-
'2.2.1',
|
45 |
-
true
|
46 |
-
);
|
47 |
-
wp_register_script(
|
48 |
-
'magnific-popup',
|
49 |
-
CAROUSEL_SLIDER_ASSETS . '/js/vendors/jquery.magnific-popup.min.js',
|
50 |
-
array(),
|
51 |
-
'1.1.0',
|
52 |
-
true
|
53 |
-
);
|
54 |
-
wp_register_script(
|
55 |
-
'carousel-slider-hero',
|
56 |
-
CAROUSEL_SLIDER_ASSETS . '/js/public/script.js',
|
57 |
-
array(),
|
58 |
-
CAROUSEL_SLIDER_VERSION,
|
59 |
-
true
|
60 |
-
);
|
61 |
-
|
62 |
-
if ( $this->should_load_scripts() ) {
|
63 |
-
wp_enqueue_style( 'carousel-slider' );
|
64 |
-
wp_enqueue_script( 'owl-carousel' );
|
65 |
-
}
|
66 |
-
}
|
67 |
-
|
68 |
-
/**
|
69 |
-
* Load admin scripts
|
70 |
-
*
|
71 |
-
* @param $hook
|
72 |
-
*/
|
73 |
-
public function admin_scripts( $hook ) {
|
74 |
-
global $post;
|
75 |
-
|
76 |
-
if ( $hook == 'post-new.php' || $hook == 'post.php' ) {
|
77 |
-
|
78 |
-
if ( is_a( $post, 'WP_Post' ) && 'carousels' == $post->post_type ) {
|
79 |
-
wp_enqueue_media();
|
80 |
-
wp_enqueue_style( 'wp-color-picker' );
|
81 |
-
wp_enqueue_style(
|
82 |
-
'carousel-slider-admin',
|
83 |
-
CAROUSEL_SLIDER_ASSETS . '/css/admin.css',
|
84 |
-
array(),
|
85 |
-
CAROUSEL_SLIDER_VERSION,
|
86 |
-
'all'
|
87 |
-
);
|
88 |
-
wp_enqueue_script(
|
89 |
-
'select2',
|
90 |
-
CAROUSEL_SLIDER_ASSETS . '/js/vendors/select2.min.js',
|
91 |
-
array( 'jquery' ),
|
92 |
-
'4.0.3',
|
93 |
-
true
|
94 |
-
);
|
95 |
-
wp_enqueue_script(
|
96 |
-
'tip-tip',
|
97 |
-
CAROUSEL_SLIDER_ASSETS . '/js/vendors/jquery.tipTip.min.js',
|
98 |
-
array( 'jquery' ),
|
99 |
-
CAROUSEL_SLIDER_VERSION,
|
100 |
-
true
|
101 |
-
);
|
102 |
-
wp_enqueue_script(
|
103 |
-
'wp-color-picker-alpha',
|
104 |
-
CAROUSEL_SLIDER_ASSETS . '/js/vendors/wp-color-picker-alpha.min.js',
|
105 |
-
array( 'wp-color-picker' ),
|
106 |
-
'1.2.2',
|
107 |
-
true
|
108 |
-
);
|
109 |
-
wp_enqueue_script(
|
110 |
-
'carousel-slider-admin',
|
111 |
-
CAROUSEL_SLIDER_ASSETS . '/js/admin.min.js',
|
112 |
-
array(
|
113 |
-
'jquery',
|
114 |
-
'wp-color-picker-alpha',
|
115 |
-
'jquery-ui-accordion',
|
116 |
-
'jquery-ui-datepicker',
|
117 |
-
'jquery-ui-sortable',
|
118 |
-
'jquery-ui-tabs',
|
119 |
-
'tip-tip',
|
120 |
-
'select2'
|
121 |
-
),
|
122 |
-
CAROUSEL_SLIDER_VERSION,
|
123 |
-
true
|
124 |
-
);
|
125 |
-
}
|
126 |
-
}
|
127 |
-
}
|
128 |
-
|
129 |
-
/**
|
130 |
-
* Load front end inline script
|
131 |
-
*/
|
132 |
-
public function inline_script() {
|
133 |
-
if ( $this->should_load_scripts() ):
|
134 |
-
?>
|
135 |
-
<svg width="1" height="1" style="display: none;">
|
136 |
-
<symbol id="icon-arrow-left" viewBox="0 0 20 20">
|
137 |
-
<path d="M14 5l-5 5 5 5-1 2-7-7 7-7z"></path>
|
138 |
-
</symbol>
|
139 |
-
<symbol id="icon-arrow-right" viewBox="0 0 20 20">
|
140 |
-
<path d="M6 15l5-5-5-5 1-2 7 7-7 7z"></path>
|
141 |
-
</symbol>
|
142 |
-
</svg>
|
143 |
-
<script type="text/javascript">
|
144 |
-
jQuery(document).ready(function ($) {
|
145 |
-
|
146 |
-
$('body').find('.carousel-slider').each(function () {
|
147 |
-
var _this = $(this);
|
148 |
-
var isVideo = _this.data('slide-type') === 'video-carousel';
|
149 |
-
var videoWidth = isVideo ? _this.data('video-width') : false;
|
150 |
-
var videoHeight = isVideo ? _this.data('video-height') : false;
|
151 |
-
var autoWidth = _this.data('auto-width');
|
152 |
-
var stagePadding = parseInt(_this.data('stage-padding'));
|
153 |
-
autoWidth = isVideo ? isVideo : autoWidth;
|
154 |
-
stagePadding = stagePadding > 0 ? stagePadding : 0;
|
155 |
-
|
156 |
-
if (jQuery().owlCarousel) {
|
157 |
-
_this.owlCarousel({
|
158 |
-
stagePadding: stagePadding,
|
159 |
-
nav: _this.data('nav'),
|
160 |
-
dots: _this.data('dots'),
|
161 |
-
margin: _this.data('margin'),
|
162 |
-
loop: _this.data('loop'),
|
163 |
-
autoplay: _this.data('autoplay'),
|
164 |
-
autoplayTimeout: _this.data('autoplay-timeout'),
|
165 |
-
autoplaySpeed: _this.data('autoplay-speed'),
|
166 |
-
autoplayHoverPause: _this.data('autoplay-hover-pause'),
|
167 |
-
slideBy: _this.data('slide-by'),
|
168 |
-
lazyLoad: _this.data('lazy-load'),
|
169 |
-
video: isVideo,
|
170 |
-
videoWidth: videoWidth,
|
171 |
-
videoHeight: videoHeight,
|
172 |
-
autoWidth: autoWidth,
|
173 |
-
navText: [
|
174 |
-
'<svg class="carousel-slider-nav-icon" width="48" height="48"><use xlink:href="#icon-arrow-left"></use></svg>',
|
175 |
-
'<svg class="carousel-slider-nav-icon" width="48" height="48"><use xlink:href="#icon-arrow-right"></use></svg>'
|
176 |
-
],
|
177 |
-
responsive: {
|
178 |
-
320: {items: _this.data('colums-mobile')},
|
179 |
-
600: {items: _this.data('colums-small-tablet')},
|
180 |
-
768: {items: _this.data('colums-tablet')},
|
181 |
-
993: {items: _this.data('colums-small-desktop')},
|
182 |
-
1200: {items: _this.data('colums-desktop')},
|
183 |
-
1921: {items: _this.data('colums')}
|
184 |
-
}
|
185 |
-
});
|
186 |
-
}
|
187 |
-
|
188 |
-
if (jQuery().magnificPopup) {
|
189 |
-
var popupType = _this.data('slide-type') === 'product-carousel' ? 'ajax' : 'image';
|
190 |
-
var popupGallery = _this.data('slide-type') !== 'product-carousel';
|
191 |
-
$(this).find('.magnific-popup').magnificPopup({
|
192 |
-
type: popupType,
|
193 |
-
gallery: {
|
194 |
-
enabled: popupGallery
|
195 |
-
},
|
196 |
-
zoom: {
|
197 |
-
enabled: popupGallery,
|
198 |
-
duration: 300,
|
199 |
-
easing: 'ease-in-out'
|
200 |
-
}
|
201 |
-
});
|
202 |
-
}
|
203 |
-
});
|
204 |
-
});
|
205 |
-
</script><?php
|
206 |
-
endif;
|
207 |
-
}
|
208 |
-
|
209 |
-
/**
|
210 |
-
* Carousel slider gallery url template
|
211 |
-
*
|
212 |
-
* @return void
|
213 |
-
*/
|
214 |
-
public function gallery_url_template() {
|
215 |
-
global $post_type;
|
216 |
-
if ( $post_type != 'carousels' ) {
|
217 |
-
return;
|
218 |
-
}
|
219 |
-
?>
|
220 |
-
<template id="carouselSliderGalleryUrlTemplate" style="display: none;">
|
221 |
-
<div class="carousel_slider-fields">
|
222 |
-
<label class="setting">
|
223 |
-
<span class="name"><?php esc_html_e( 'URL', 'carousel-slider' ); ?></span>
|
224 |
-
<input type="url" name="_images_urls[url][]" value="" autocomplete="off">
|
225 |
-
</label>
|
226 |
-
<label class="setting">
|
227 |
-
<span class="name"><?php esc_html_e( 'Title', 'carousel-slider' ); ?></span>
|
228 |
-
<input type="text" name="_images_urls[title][]" value="" autocomplete="off">
|
229 |
-
</label>
|
230 |
-
<label class="setting">
|
231 |
-
<span class="name"><?php esc_html_e( 'Caption', 'carousel-slider' ); ?></span>
|
232 |
-
<textarea name="_images_urls[caption][]"></textarea>
|
233 |
-
</label>
|
234 |
-
<label class="setting">
|
235 |
-
<span class="name"><?php esc_html_e( 'Alt Text', 'carousel-slider' ); ?></span>
|
236 |
-
<input type="text" name="_images_urls[alt][]" value="" autocomplete="off">
|
237 |
-
</label>
|
238 |
-
<label class="setting">
|
239 |
-
<span class="name"><?php esc_html_e( 'Link To URL', 'carousel-slider' ); ?></span>
|
240 |
-
<input type="text" name="_images_urls[link_url][]" value="" autocomplete="off">
|
241 |
-
</label>
|
242 |
-
<div class="actions">
|
243 |
-
<span><span class="dashicons dashicons-move"></span></span>
|
244 |
-
<span class="add_row"><span class="dashicons dashicons-plus-alt"></span></span>
|
245 |
-
<span class="delete_row"><span class="dashicons dashicons-trash"></span></span>
|
246 |
-
</div>
|
247 |
-
</div>
|
248 |
-
</template>
|
249 |
-
<?php
|
250 |
-
}
|
251 |
-
|
252 |
-
/**
|
253 |
-
* Check if it should load frontend scripts
|
254 |
-
*
|
255 |
-
* @return boolean
|
256 |
-
*/
|
257 |
-
private function should_load_scripts() {
|
258 |
-
global $post;
|
259 |
-
$load_scripts = is_active_widget( false, false, 'widget_carousel_slider', true ) ||
|
260 |
-
( is_a( $post, 'WP_Post' ) && has_shortcode( $post->post_content, 'carousel_slide' ) ) ||
|
261 |
-
( is_a( $post, 'WP_Post' ) && has_shortcode( $post->post_content, 'carousel' ) );
|
262 |
-
|
263 |
-
return apply_filters( 'carousel_slider_load_scripts', $load_scripts );
|
264 |
-
}
|
265 |
-
}
|
266 |
-
|
267 |
-
endif;
|
268 |
-
|
269 |
-
Carousel_Slider_Script::init();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/class-carousel-slider-structured-data.php
DELETED
@@ -1,316 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
-
exit; // Exit if accessed directly.
|
5 |
-
}
|
6 |
-
|
7 |
-
if ( ! class_exists( 'Carousel_Slider_Structured_Data' ) ):
|
8 |
-
|
9 |
-
/**
|
10 |
-
* Structured data's handler and generator using JSON-LD format.
|
11 |
-
*
|
12 |
-
* @class Carousel_Slider_Structured_Data
|
13 |
-
* @since 1.7.2
|
14 |
-
* @author Sayful Islam <sayful.islam001@gmail.com>
|
15 |
-
*/
|
16 |
-
class Carousel_Slider_Structured_Data {
|
17 |
-
|
18 |
-
protected static $instance = null;
|
19 |
-
private $_product_data = array();
|
20 |
-
private $_image_data = array();
|
21 |
-
private $_post_data = array();
|
22 |
-
|
23 |
-
/**
|
24 |
-
* Constructor.
|
25 |
-
*/
|
26 |
-
public function __construct() {
|
27 |
-
add_action( 'carousel_slider_image_gallery_loop', array( $this, 'generate_image_data' ) );
|
28 |
-
add_action( 'carousel_slider_post_loop', array( $this, 'generate_post_data' ) );
|
29 |
-
add_action( 'carousel_slider_product_loop', array( $this, 'generate_product_data' ) );
|
30 |
-
// Output structured data.
|
31 |
-
add_action( 'wp_footer', array( $this, 'output_structured_data' ), 90 );
|
32 |
-
}
|
33 |
-
|
34 |
-
/**
|
35 |
-
* Ensures only one instance of this class is loaded or can be loaded.
|
36 |
-
*
|
37 |
-
* @return Carousel_Slider_Structured_Data
|
38 |
-
*/
|
39 |
-
public static function init() {
|
40 |
-
if ( is_null( self::$instance ) ) {
|
41 |
-
self::$instance = new self();
|
42 |
-
}
|
43 |
-
|
44 |
-
return self::$instance;
|
45 |
-
}
|
46 |
-
|
47 |
-
/**
|
48 |
-
* Outputs structured data.
|
49 |
-
*
|
50 |
-
* Hooked into `wp_footer` action hook.
|
51 |
-
*/
|
52 |
-
public function output_structured_data() {
|
53 |
-
$data = $this->get_structured_product_data();
|
54 |
-
if ( $data ) {
|
55 |
-
echo '<script type="application/ld+json">' . wp_json_encode( $data ) . '</script>' . "\n";
|
56 |
-
}
|
57 |
-
$gallery_data = $this->get_structured_image_data();
|
58 |
-
if ( $gallery_data ) {
|
59 |
-
echo '<script type="application/ld+json">' . wp_json_encode( $gallery_data ) . '</script>' . "\n";
|
60 |
-
}
|
61 |
-
$post_data = $this->get_structured_post_data();
|
62 |
-
if ( $post_data ) {
|
63 |
-
echo '<script type="application/ld+json">' . wp_json_encode( $post_data ) . '</script>' . "\n";
|
64 |
-
}
|
65 |
-
}
|
66 |
-
|
67 |
-
/**
|
68 |
-
* Structures and returns product data.
|
69 |
-
* @return array
|
70 |
-
*/
|
71 |
-
private function get_structured_product_data() {
|
72 |
-
$data = array(
|
73 |
-
'@context' => 'http://schema.org/',
|
74 |
-
"@graph" => $this->get_product_data()
|
75 |
-
);
|
76 |
-
|
77 |
-
return $this->get_product_data() ? $data : array();
|
78 |
-
}
|
79 |
-
|
80 |
-
/**
|
81 |
-
* Gets product data.
|
82 |
-
*
|
83 |
-
* @return array
|
84 |
-
*/
|
85 |
-
private function get_product_data() {
|
86 |
-
return $this->_product_data;
|
87 |
-
}
|
88 |
-
|
89 |
-
/**
|
90 |
-
* Structures and returns image data.
|
91 |
-
* @return array
|
92 |
-
*/
|
93 |
-
private function get_structured_image_data() {
|
94 |
-
$data = array(
|
95 |
-
'@context' => 'http://schema.org/',
|
96 |
-
"@type" => "ImageGallery",
|
97 |
-
"associatedMedia" => $this->get_image_data()
|
98 |
-
);
|
99 |
-
|
100 |
-
return $this->get_image_data() ? $data : array();
|
101 |
-
}
|
102 |
-
|
103 |
-
/**
|
104 |
-
* Get image data
|
105 |
-
*
|
106 |
-
* @return array
|
107 |
-
*/
|
108 |
-
private function get_image_data() {
|
109 |
-
return $this->_image_data;
|
110 |
-
}
|
111 |
-
|
112 |
-
private function get_structured_post_data() {
|
113 |
-
$data = array(
|
114 |
-
'@context' => 'http://schema.org/',
|
115 |
-
"@graph" => $this->get_post_data()
|
116 |
-
);
|
117 |
-
|
118 |
-
return $this->get_post_data() ? $data : array();
|
119 |
-
}
|
120 |
-
|
121 |
-
private function get_post_data() {
|
122 |
-
return $this->_post_data;
|
123 |
-
}
|
124 |
-
|
125 |
-
/**
|
126 |
-
* Generates Image structured data.
|
127 |
-
*
|
128 |
-
* Hooked into `carousel_slider_image_gallery_loop` action hook.
|
129 |
-
*
|
130 |
-
* @param WP_Post $_post Post data (default: null).
|
131 |
-
*/
|
132 |
-
public function generate_image_data( $_post ) {
|
133 |
-
$image = wp_get_attachment_image_src( $_post->ID, 'full' );
|
134 |
-
$markup['@type'] = 'ImageObject';
|
135 |
-
$markup['contentUrl'] = $image[0];
|
136 |
-
$markup['name'] = $_post->post_title;
|
137 |
-
|
138 |
-
$this->set_data( apply_filters( 'carousel_slider_structured_data_image', $markup, $_post ) );
|
139 |
-
}
|
140 |
-
|
141 |
-
/**
|
142 |
-
* Sets data.
|
143 |
-
*
|
144 |
-
* @param array $data Structured data.
|
145 |
-
*
|
146 |
-
* @return bool
|
147 |
-
*/
|
148 |
-
private function set_data( $data ) {
|
149 |
-
if ( ! isset( $data['@type'] ) || ! preg_match( '|^[a-zA-Z]{1,20}$|', $data['@type'] ) ) {
|
150 |
-
return false;
|
151 |
-
}
|
152 |
-
|
153 |
-
if ( $data['@type'] == 'ImageObject' ) {
|
154 |
-
if ( ! $this->maybe_image_added( $data['contentUrl'] ) ) {
|
155 |
-
$this->_image_data[] = $data;
|
156 |
-
}
|
157 |
-
}
|
158 |
-
|
159 |
-
if ( $data['@type'] == 'Product' ) {
|
160 |
-
if ( ! $this->maybe_product_added( $data['@id'] ) ) {
|
161 |
-
$this->_product_data[] = $data;
|
162 |
-
}
|
163 |
-
}
|
164 |
-
|
165 |
-
if ( $data['@type'] == 'BlogPosting' ) {
|
166 |
-
if ( ! $this->maybe_post_added( $data['mainEntityOfPage']['@id'] ) ) {
|
167 |
-
$this->_post_data[] = $data;
|
168 |
-
}
|
169 |
-
}
|
170 |
-
|
171 |
-
return true;
|
172 |
-
}
|
173 |
-
|
174 |
-
/**
|
175 |
-
* Check if image is already added to list
|
176 |
-
*
|
177 |
-
* @param string $image_id
|
178 |
-
*
|
179 |
-
* @return boolean
|
180 |
-
*/
|
181 |
-
private function maybe_image_added( $image_id = null ) {
|
182 |
-
$image_data = $this->get_image_data();
|
183 |
-
if ( count( $image_data ) > 0 ) {
|
184 |
-
$image_data = array_map( function ( $data ) {
|
185 |
-
return $data['contentUrl'];
|
186 |
-
}, $image_data );
|
187 |
-
|
188 |
-
return in_array( $image_id, $image_data );
|
189 |
-
}
|
190 |
-
|
191 |
-
return false;
|
192 |
-
}
|
193 |
-
|
194 |
-
/**
|
195 |
-
* Check if product is already added to list
|
196 |
-
*
|
197 |
-
* @param string $product_id
|
198 |
-
*
|
199 |
-
* @return boolean
|
200 |
-
*/
|
201 |
-
private function maybe_product_added( $product_id = null ) {
|
202 |
-
$product_data = $this->get_product_data();
|
203 |
-
if ( count( $product_data ) > 0 ) {
|
204 |
-
$product_data = array_map( function ( $data ) {
|
205 |
-
return $data['@id'];
|
206 |
-
}, $product_data );
|
207 |
-
|
208 |
-
return in_array( $product_id, $product_data );
|
209 |
-
}
|
210 |
-
|
211 |
-
return false;
|
212 |
-
}
|
213 |
-
|
214 |
-
/**
|
215 |
-
* Check if post is already added to list
|
216 |
-
*
|
217 |
-
* @param string $post_id
|
218 |
-
*
|
219 |
-
* @return boolean
|
220 |
-
*/
|
221 |
-
private function maybe_post_added( $post_id ) {
|
222 |
-
$post_data = $this->get_post_data();
|
223 |
-
if ( count( $post_data ) > 0 ) {
|
224 |
-
$post_data = array_map( function ( $data ) {
|
225 |
-
return $data['mainEntityOfPage']['@id'];
|
226 |
-
}, $post_data );
|
227 |
-
|
228 |
-
return in_array( $post_id, $post_data );
|
229 |
-
}
|
230 |
-
|
231 |
-
return false;
|
232 |
-
}
|
233 |
-
|
234 |
-
/**
|
235 |
-
* Generates post structured data.
|
236 |
-
*
|
237 |
-
* Hooked into `carousel_slider_post_loop` action hook.
|
238 |
-
*
|
239 |
-
* @param WP_Post $_post
|
240 |
-
*/
|
241 |
-
public function generate_post_data( $_post ) {
|
242 |
-
if ( ! $_post instanceof WP_Post ) {
|
243 |
-
return;
|
244 |
-
}
|
245 |
-
|
246 |
-
$image = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'normal' );
|
247 |
-
|
248 |
-
$json['@type'] = 'BlogPosting';
|
249 |
-
|
250 |
-
$json['mainEntityOfPage'] = array(
|
251 |
-
'@type' => 'webpage',
|
252 |
-
'@id' => get_the_permalink(),
|
253 |
-
);
|
254 |
-
|
255 |
-
|
256 |
-
$json['publisher'] = array(
|
257 |
-
'@type' => 'organization',
|
258 |
-
'name' => get_bloginfo( 'name' ),
|
259 |
-
);
|
260 |
-
|
261 |
-
$json['author'] = array(
|
262 |
-
'@type' => 'person',
|
263 |
-
'name' => get_the_author(),
|
264 |
-
);
|
265 |
-
|
266 |
-
if ( $image ) {
|
267 |
-
$json['image'] = array(
|
268 |
-
'@type' => 'ImageObject',
|
269 |
-
'url' => $image[0],
|
270 |
-
'width' => $image[1],
|
271 |
-
'height' => $image[2],
|
272 |
-
);
|
273 |
-
}
|
274 |
-
|
275 |
-
$json['datePublished'] = get_post_time( 'c' );
|
276 |
-
$json['dateModified'] = get_the_modified_date( 'c' );
|
277 |
-
$json['name'] = get_the_title();
|
278 |
-
$json['headline'] = $json['name'];
|
279 |
-
$json['description'] = get_the_excerpt();
|
280 |
-
|
281 |
-
|
282 |
-
$this->set_data( apply_filters( 'carousel_slider_structured_data_post', $json, $_post ) );
|
283 |
-
}
|
284 |
-
|
285 |
-
/**
|
286 |
-
* Generates Product structured data.
|
287 |
-
*
|
288 |
-
* Hooked into `carousel_slider_product_loop` action hook.
|
289 |
-
*
|
290 |
-
* @param WC_Product $product Product data (default: null).
|
291 |
-
*/
|
292 |
-
public function generate_product_data( $product = null ) {
|
293 |
-
if ( ! is_object( $product ) ) {
|
294 |
-
global $product;
|
295 |
-
}
|
296 |
-
|
297 |
-
if ( version_compare( WC_VERSION, "3.0.0", ">=" ) ) {
|
298 |
-
$name = $product->get_name();
|
299 |
-
$permalink = get_permalink( $product->get_id() );
|
300 |
-
} else {
|
301 |
-
$name = get_the_title( $product->id );
|
302 |
-
$permalink = get_permalink( $product->id );
|
303 |
-
}
|
304 |
-
|
305 |
-
$markup['@type'] = 'Product';
|
306 |
-
$markup['@id'] = $permalink;
|
307 |
-
$markup['url'] = $markup['@id'];
|
308 |
-
$markup['name'] = $name;
|
309 |
-
|
310 |
-
$this->set_data( apply_filters( 'carousel_slider_structured_data_product', $markup, $product ) );
|
311 |
-
}
|
312 |
-
}
|
313 |
-
|
314 |
-
endif;
|
315 |
-
|
316 |
-
Carousel_Slider_Structured_Data::init();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/class-carousel-slider-vc-element.php
DELETED
@@ -1,91 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// If this file is called directly, abort.
|
3 |
-
if ( ! defined( 'WPINC' ) ) {
|
4 |
-
die;
|
5 |
-
}
|
6 |
-
|
7 |
-
if ( ! class_exists( 'Carousel_Slider_Visual_Composer_Element' ) ):
|
8 |
-
|
9 |
-
class Carousel_Slider_Visual_Composer_Element {
|
10 |
-
|
11 |
-
protected static $instance = null;
|
12 |
-
|
13 |
-
/**
|
14 |
-
* Ensures only one instance of this class is loaded or can be loaded.
|
15 |
-
*
|
16 |
-
* @return Carousel_Slider_Visual_Composer_Element
|
17 |
-
*/
|
18 |
-
public static function init() {
|
19 |
-
if ( is_null( self::$instance ) ) {
|
20 |
-
self::$instance = new self();
|
21 |
-
}
|
22 |
-
|
23 |
-
return self::$instance;
|
24 |
-
}
|
25 |
-
|
26 |
-
/**
|
27 |
-
* CarouselSliderVisualComposerElement constructor.
|
28 |
-
*/
|
29 |
-
public function __construct() {
|
30 |
-
// We safely integrate with VC with this hook
|
31 |
-
add_action( 'init', array( $this, 'integrate_with_vc' ) );
|
32 |
-
}
|
33 |
-
|
34 |
-
/**
|
35 |
-
* Integrate with visual composer
|
36 |
-
*/
|
37 |
-
public function integrate_with_vc() {
|
38 |
-
// Check if Visual Composer is installed
|
39 |
-
if ( ! function_exists( 'vc_map' ) ) {
|
40 |
-
return;
|
41 |
-
}
|
42 |
-
|
43 |
-
vc_map( array(
|
44 |
-
"name" => __( "Carousel Slider", 'carousel-slider' ),
|
45 |
-
"description" => __( "Place Carousel Slider.", 'carousel-slider' ),
|
46 |
-
"base" => "carousel_slide",
|
47 |
-
"controls" => "full",
|
48 |
-
"icon" => CAROUSEL_SLIDER_ASSETS . '/img/logo.svg',
|
49 |
-
"category" => __( 'Content', 'carousel-slider' ),
|
50 |
-
"params" => array(
|
51 |
-
array(
|
52 |
-
"type" => "dropdown",
|
53 |
-
"holder" => "div",
|
54 |
-
"class" => "carousel-slider-id",
|
55 |
-
"param_name" => "id",
|
56 |
-
"value" => $this->carousels_list(),
|
57 |
-
"heading" => __( "Choose Carousel Slide", 'carousel-slider' ),
|
58 |
-
),
|
59 |
-
),
|
60 |
-
) );
|
61 |
-
}
|
62 |
-
|
63 |
-
/**
|
64 |
-
* Generate array for carousel slider
|
65 |
-
*
|
66 |
-
* @return array
|
67 |
-
*/
|
68 |
-
private function carousels_list() {
|
69 |
-
$carousels = get_posts( array(
|
70 |
-
'post_type' => 'carousels',
|
71 |
-
'post_status' => 'publish',
|
72 |
-
'posts_per_page' => - 1,
|
73 |
-
) );
|
74 |
-
|
75 |
-
if ( count( $carousels ) < 1 ) {
|
76 |
-
return array();
|
77 |
-
}
|
78 |
-
|
79 |
-
$result = array();
|
80 |
-
|
81 |
-
foreach ( $carousels as $carousel ) {
|
82 |
-
$result[ esc_html( $carousel->post_title ) ] = $carousel->ID;
|
83 |
-
}
|
84 |
-
|
85 |
-
return $result;
|
86 |
-
}
|
87 |
-
}
|
88 |
-
|
89 |
-
endif;
|
90 |
-
|
91 |
-
Carousel_Slider_Visual_Composer_Element::init();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/functions-carousel-slider.php
DELETED
@@ -1,579 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( ! function_exists( 'carousel_slider_is_url' ) ) {
|
4 |
-
/**
|
5 |
-
* Check if url is valid as per RFC 2396 Generic Syntax
|
6 |
-
*
|
7 |
-
* @param string $url
|
8 |
-
*
|
9 |
-
* @return boolean
|
10 |
-
*/
|
11 |
-
function carousel_slider_is_url( $url ) {
|
12 |
-
if ( filter_var( $url, FILTER_VALIDATE_URL ) ) {
|
13 |
-
|
14 |
-
return true;
|
15 |
-
}
|
16 |
-
|
17 |
-
return false;
|
18 |
-
}
|
19 |
-
}
|
20 |
-
|
21 |
-
if ( ! function_exists( 'carousel_slider_sanitize_color' ) ) {
|
22 |
-
/**
|
23 |
-
* Sanitizes a Hex, RGB or RGBA color
|
24 |
-
*
|
25 |
-
* @param $color
|
26 |
-
*
|
27 |
-
* @return mixed|string
|
28 |
-
*/
|
29 |
-
function carousel_slider_sanitize_color( $color ) {
|
30 |
-
if ( '' === $color ) {
|
31 |
-
return '';
|
32 |
-
}
|
33 |
-
|
34 |
-
// Trim unneeded whitespace
|
35 |
-
$color = str_replace( ' ', '', $color );
|
36 |
-
|
37 |
-
// If this is hex color, validate and return it
|
38 |
-
if ( 1 === preg_match( '|^#([A-Fa-f0-9]{3}){1,2}$|', $color ) ) {
|
39 |
-
return $color;
|
40 |
-
}
|
41 |
-
|
42 |
-
// If this is rgb, validate and return it
|
43 |
-
if ( 'rgb(' === substr( $color, 0, 4 ) ) {
|
44 |
-
list( $red, $green, $blue ) = sscanf( $color, 'rgb(%d,%d,%d)' );
|
45 |
-
|
46 |
-
if ( ( $red >= 0 && $red <= 255 ) &&
|
47 |
-
( $green >= 0 && $green <= 255 ) &&
|
48 |
-
( $blue >= 0 && $blue <= 255 )
|
49 |
-
) {
|
50 |
-
return "rgb({$red},{$green},{$blue})";
|
51 |
-
}
|
52 |
-
}
|
53 |
-
|
54 |
-
// If this is rgba, validate and return it
|
55 |
-
if ( 'rgba(' === substr( $color, 0, 5 ) ) {
|
56 |
-
list( $red, $green, $blue, $alpha ) = sscanf( $color, 'rgba(%d,%d,%d,%f)' );
|
57 |
-
|
58 |
-
if ( ( $red >= 0 && $red <= 255 ) &&
|
59 |
-
( $green >= 0 && $green <= 255 ) &&
|
60 |
-
( $blue >= 0 && $blue <= 255 ) &&
|
61 |
-
$alpha >= 0 && $alpha <= 1
|
62 |
-
) {
|
63 |
-
return "rgba({$red},{$green},{$blue},{$alpha})";
|
64 |
-
}
|
65 |
-
}
|
66 |
-
|
67 |
-
return '';
|
68 |
-
}
|
69 |
-
}
|
70 |
-
|
71 |
-
if ( ! function_exists( 'carousel_slider_get_meta' ) ) {
|
72 |
-
/**
|
73 |
-
* Get post meta by id and key
|
74 |
-
*
|
75 |
-
* @param $id
|
76 |
-
* @param $key
|
77 |
-
* @param null $default
|
78 |
-
*
|
79 |
-
* @return string
|
80 |
-
*/
|
81 |
-
function carousel_slider_get_meta( $id, $key, $default = null ) {
|
82 |
-
$meta = get_post_meta( $id, $key, true );
|
83 |
-
|
84 |
-
if ( empty( $meta ) && $default ) {
|
85 |
-
$meta = $default;
|
86 |
-
}
|
87 |
-
|
88 |
-
if ( $meta == 'zero' ) {
|
89 |
-
$meta = '0';
|
90 |
-
}
|
91 |
-
if ( $meta == 'on' ) {
|
92 |
-
$meta = 'true';
|
93 |
-
}
|
94 |
-
if ( $meta == 'off' ) {
|
95 |
-
$meta = 'false';
|
96 |
-
}
|
97 |
-
if ( $key == '_margin_right' && $meta == 0 ) {
|
98 |
-
$meta = '0';
|
99 |
-
}
|
100 |
-
|
101 |
-
return esc_attr( $meta );
|
102 |
-
}
|
103 |
-
}
|
104 |
-
|
105 |
-
if ( ! function_exists( 'carousel_slider_array_to_attribute' ) ) {
|
106 |
-
/**
|
107 |
-
* Convert array to html data attribute
|
108 |
-
*
|
109 |
-
* @param $array
|
110 |
-
*
|
111 |
-
* @return array|string
|
112 |
-
*/
|
113 |
-
function carousel_slider_array_to_attribute( $array ) {
|
114 |
-
if ( ! is_array( $array ) ) {
|
115 |
-
return '';
|
116 |
-
}
|
117 |
-
|
118 |
-
$attribute = array_map( function ( $key, $value ) {
|
119 |
-
// If boolean value
|
120 |
-
if ( is_bool( $value ) ) {
|
121 |
-
if ( $value ) {
|
122 |
-
|
123 |
-
return sprintf( '%s="%s"', $key, 'true' );
|
124 |
-
} else {
|
125 |
-
|
126 |
-
return sprintf( '%s="%s"', $key, 'false' );
|
127 |
-
}
|
128 |
-
}
|
129 |
-
// If array value
|
130 |
-
if ( is_array( $value ) ) {
|
131 |
-
|
132 |
-
return sprintf( '%s="%s"', $key, implode( " ", $value ) );
|
133 |
-
}
|
134 |
-
|
135 |
-
// If string value
|
136 |
-
return sprintf( '%s="%s"', $key, esc_attr( $value ) );
|
137 |
-
|
138 |
-
}, array_keys( $array ), array_values( $array ) );
|
139 |
-
|
140 |
-
return $attribute;
|
141 |
-
}
|
142 |
-
}
|
143 |
-
|
144 |
-
if ( ! function_exists( 'carousel_slider_is_woocommerce_active' ) ) {
|
145 |
-
/**
|
146 |
-
* Check if WooCommerce is active
|
147 |
-
*
|
148 |
-
* @return bool
|
149 |
-
*/
|
150 |
-
function carousel_slider_is_woocommerce_active() {
|
151 |
-
|
152 |
-
if ( in_array( 'woocommerce/woocommerce.php', get_option( 'active_plugins' ) ) ) {
|
153 |
-
return true;
|
154 |
-
}
|
155 |
-
|
156 |
-
if ( defined( 'WC_VERSION' ) || defined( 'WOOCOMMERCE_VERSION' ) ) {
|
157 |
-
return true;
|
158 |
-
}
|
159 |
-
|
160 |
-
return false;
|
161 |
-
}
|
162 |
-
}
|
163 |
-
|
164 |
-
if ( ! function_exists( 'carousel_slider_posts' ) ) {
|
165 |
-
/**
|
166 |
-
* Get posts by carousel slider ID
|
167 |
-
*
|
168 |
-
* @param $carousel_id
|
169 |
-
*
|
170 |
-
* @return array
|
171 |
-
*/
|
172 |
-
function carousel_slider_posts( $carousel_id ) {
|
173 |
-
$id = $carousel_id;
|
174 |
-
// Get settings from carousel slider
|
175 |
-
$order = get_post_meta( $id, '_post_order', true );
|
176 |
-
$orderby = get_post_meta( $id, '_post_orderby', true );
|
177 |
-
$per_page = intval( get_post_meta( $id, '_posts_per_page', true ) );
|
178 |
-
$query_type = get_post_meta( $id, '_post_query_type', true );
|
179 |
-
$query_type = empty( $query_type ) ? 'latest_posts' : $query_type;
|
180 |
-
|
181 |
-
$args = array(
|
182 |
-
'post_type' => 'post',
|
183 |
-
'post_status' => 'publish',
|
184 |
-
'order' => $order,
|
185 |
-
'orderby' => $orderby,
|
186 |
-
'posts_per_page' => $per_page
|
187 |
-
);
|
188 |
-
|
189 |
-
// Get posts by post IDs
|
190 |
-
if ( $query_type == 'specific_posts' ) {
|
191 |
-
$post_in = explode( ',', get_post_meta( $id, '_post_in', true ) );
|
192 |
-
$post_in = array_map( 'intval', $post_in );
|
193 |
-
unset( $args['posts_per_page'] );
|
194 |
-
$args = array_merge( $args, array( 'post__in' => $post_in ) );
|
195 |
-
}
|
196 |
-
|
197 |
-
// Get posts by post catagories IDs
|
198 |
-
if ( $query_type == 'post_categories' ) {
|
199 |
-
$post_categories = get_post_meta( $id, '_post_categories', true );
|
200 |
-
$args = array_merge( $args, array( 'cat' => $post_categories ) );
|
201 |
-
}
|
202 |
-
|
203 |
-
// Get posts by post tags IDs
|
204 |
-
if ( $query_type == 'post_tags' ) {
|
205 |
-
$post_tags = get_post_meta( $id, '_post_tags', true );
|
206 |
-
$post_tags = array_map( 'intval', explode( ',', $post_tags ) );
|
207 |
-
$args = array_merge( $args, array( 'tag__in' => $post_tags ) );
|
208 |
-
}
|
209 |
-
|
210 |
-
// Get posts by date range
|
211 |
-
if ( $query_type == 'date_range' ) {
|
212 |
-
|
213 |
-
$post_date_after = get_post_meta( $id, '_post_date_after', true );
|
214 |
-
$post_date_before = get_post_meta( $id, '_post_date_before', true );
|
215 |
-
|
216 |
-
if ( $post_date_after && $post_date_before ) {
|
217 |
-
$args = array_merge( $args, array(
|
218 |
-
'date_query' => array(
|
219 |
-
array(
|
220 |
-
'after' => $post_date_after,
|
221 |
-
'before' => $post_date_before,
|
222 |
-
'inclusive' => true,
|
223 |
-
),
|
224 |
-
),
|
225 |
-
) );
|
226 |
-
} elseif ( $post_date_after ) {
|
227 |
-
$args = array_merge( $args, array(
|
228 |
-
'date_query' => array(
|
229 |
-
array(
|
230 |
-
'before' => $post_date_before,
|
231 |
-
'inclusive' => true,
|
232 |
-
),
|
233 |
-
),
|
234 |
-
) );
|
235 |
-
} elseif ( $post_date_before ) {
|
236 |
-
$args = array_merge( $args, array(
|
237 |
-
'date_query' => array(
|
238 |
-
array(
|
239 |
-
'before' => $post_date_before,
|
240 |
-
'inclusive' => true,
|
241 |
-
),
|
242 |
-
),
|
243 |
-
) );
|
244 |
-
}
|
245 |
-
}
|
246 |
-
|
247 |
-
$posts = get_posts( $args );
|
248 |
-
|
249 |
-
return $posts;
|
250 |
-
}
|
251 |
-
}
|
252 |
-
|
253 |
-
if ( ! function_exists( 'carousel_slider_products' ) ) {
|
254 |
-
/**
|
255 |
-
* Get products by carousel slider ID
|
256 |
-
*
|
257 |
-
* @param $carousel_id
|
258 |
-
*
|
259 |
-
* @return array
|
260 |
-
*/
|
261 |
-
function carousel_slider_products( $carousel_id ) {
|
262 |
-
$id = $carousel_id;
|
263 |
-
$per_page = intval( get_post_meta( $id, '_products_per_page', true ) );
|
264 |
-
$query_type = get_post_meta( $id, '_product_query_type', true );
|
265 |
-
$query_type = empty( $query_type ) ? 'query_porduct' : $query_type;
|
266 |
-
$product_query = get_post_meta( $id, '_product_query', true );
|
267 |
-
|
268 |
-
$product_carousel = new Carousel_Slider_Product();
|
269 |
-
|
270 |
-
$args = array( 'posts_per_page' => $per_page );
|
271 |
-
|
272 |
-
if ( $query_type == 'query_porduct' ) {
|
273 |
-
|
274 |
-
// Get features products
|
275 |
-
if ( $product_query == 'featured' ) {
|
276 |
-
return $product_carousel->featured_products( $args );
|
277 |
-
}
|
278 |
-
|
279 |
-
// Get best_selling products
|
280 |
-
if ( $product_query == 'best_selling' ) {
|
281 |
-
return $product_carousel->best_selling_products( $args );
|
282 |
-
}
|
283 |
-
|
284 |
-
// Get recent products
|
285 |
-
if ( $product_query == 'recent' ) {
|
286 |
-
return $product_carousel->recent_products( $args );
|
287 |
-
}
|
288 |
-
|
289 |
-
// Get sale products
|
290 |
-
if ( $product_query == 'sale' ) {
|
291 |
-
return $product_carousel->sale_products( $args );
|
292 |
-
}
|
293 |
-
|
294 |
-
// Get top_rated products
|
295 |
-
if ( $product_query == 'top_rated' ) {
|
296 |
-
return $product_carousel->top_rated_products( $args );
|
297 |
-
}
|
298 |
-
}
|
299 |
-
|
300 |
-
// Get products by product IDs
|
301 |
-
if ( $query_type == 'specific_products' ) {
|
302 |
-
$product_in = get_post_meta( $id, '_product_in', true );
|
303 |
-
$product_in = array_map( 'intval', explode( ',', $product_in ) );
|
304 |
-
|
305 |
-
return $product_carousel->products( array( 'post__in' => $product_in ) );
|
306 |
-
}
|
307 |
-
|
308 |
-
// Get posts by post categories IDs
|
309 |
-
if ( $query_type == 'product_categories' ) {
|
310 |
-
$product_cat_ids = get_post_meta( $id, '_product_categories', true );
|
311 |
-
$product_cat_ids = array_map( 'intval', explode( ",", $product_cat_ids ) );
|
312 |
-
|
313 |
-
return $product_carousel->products_by_categories( $product_cat_ids, $per_page );
|
314 |
-
}
|
315 |
-
|
316 |
-
// Get posts by post tags IDs
|
317 |
-
if ( $query_type == 'product_tags' ) {
|
318 |
-
$product_tags = get_post_meta( $id, '_product_tags', true );
|
319 |
-
$product_tags = array_map( 'intval', explode( ',', $product_tags ) );
|
320 |
-
|
321 |
-
return $product_carousel->products_by_tags( $product_tags, $per_page );
|
322 |
-
}
|
323 |
-
|
324 |
-
return array();
|
325 |
-
}
|
326 |
-
}
|
327 |
-
|
328 |
-
if ( ! function_exists( 'carousel_slider_inline_style' ) ) {
|
329 |
-
/**
|
330 |
-
* Get carousel slider inline style
|
331 |
-
*
|
332 |
-
* @param $carousel_id
|
333 |
-
*/
|
334 |
-
function carousel_slider_inline_style( $carousel_id ) {
|
335 |
-
$id = $carousel_id;
|
336 |
-
$_nav_color = get_post_meta( $id, '_nav_color', true );
|
337 |
-
$_nav_active_color = get_post_meta( $id, '_nav_active_color', true );
|
338 |
-
$_post_height = get_post_meta( $id, '_post_height', true );
|
339 |
-
$_product_title_color = get_post_meta( $id, '_product_title_color', true );
|
340 |
-
$_product_btn_bg_color = get_post_meta( $id, '_product_button_bg_color', true );
|
341 |
-
$_product_btn_text_color = get_post_meta( $id, '_product_button_text_color', true );
|
342 |
-
$content_sliders = get_post_meta( $id, '_content_slider', true );
|
343 |
-
|
344 |
-
$slide_type = get_post_meta( $id, '_slide_type', true );
|
345 |
-
$slide_type = in_array( $slide_type, carousel_slider_slide_type() ) ? $slide_type : 'image-carousel';
|
346 |
-
|
347 |
-
$_arrow_size = get_post_meta( $id, '_arrow_size', true );
|
348 |
-
$_arrow_size = empty( $_arrow_size ) ? 48 : absint( $_arrow_size );
|
349 |
-
|
350 |
-
$_bullet_size = get_post_meta( $id, '_bullet_size', true );
|
351 |
-
$_bullet_size = empty( $_bullet_size ) ? 10 : absint( $_bullet_size );
|
352 |
-
|
353 |
-
echo "<style type=\"text/css\">";
|
354 |
-
|
355 |
-
// Arrows Nav
|
356 |
-
echo "
|
357 |
-
#id-{$id} .carousel-slider-nav-icon {
|
358 |
-
fill: {$_nav_color}
|
359 |
-
}
|
360 |
-
#id-{$id} .carousel-slider-nav-icon:hover {
|
361 |
-
fill: {$_nav_active_color}
|
362 |
-
}
|
363 |
-
#id-{$id} .owl-prev,
|
364 |
-
#id-{$id} .owl-next,
|
365 |
-
#id-{$id} .carousel-slider-nav-icon {
|
366 |
-
height: {$_arrow_size}px;
|
367 |
-
width: {$_arrow_size}px
|
368 |
-
}
|
369 |
-
#id-{$id}.arrows-outside .owl-prev {
|
370 |
-
left: -{$_arrow_size}px
|
371 |
-
}
|
372 |
-
#id-{$id}.arrows-outside .owl-next {
|
373 |
-
right: -{$_arrow_size}px
|
374 |
-
}
|
375 |
-
";
|
376 |
-
|
377 |
-
// Dots Nav
|
378 |
-
echo "
|
379 |
-
#id-{$id} .owl-dots .owl-dot span {
|
380 |
-
background-color: {$_nav_color};
|
381 |
-
width: {$_bullet_size}px;
|
382 |
-
height: {$_bullet_size}px;
|
383 |
-
}
|
384 |
-
#id-{$id} .owl-dots .owl-dot.active span,
|
385 |
-
#id-{$id} .owl-dots .owl-dot:hover span {
|
386 |
-
background-color: {$_nav_active_color}
|
387 |
-
}
|
388 |
-
";
|
389 |
-
|
390 |
-
// Post Carousel Slider
|
391 |
-
if ( $slide_type == 'post-carousel' ) {
|
392 |
-
|
393 |
-
echo "
|
394 |
-
#id-{$id} .carousel-slider__post {
|
395 |
-
height: {$_post_height}px
|
396 |
-
}
|
397 |
-
";
|
398 |
-
}
|
399 |
-
|
400 |
-
// Product Carousel Slider
|
401 |
-
if ( $slide_type == 'product-carousel' ) {
|
402 |
-
echo "
|
403 |
-
#id-{$id} .carousel-slider__product h3,
|
404 |
-
#id-{$id} .carousel-slider__product .price {
|
405 |
-
color: {$_product_title_color};
|
406 |
-
}
|
407 |
-
|
408 |
-
#id-{$id} .carousel-slider__product a.add_to_cart_button,
|
409 |
-
#id-{$id} .carousel-slider__product a.added_to_cart,
|
410 |
-
#id-{$id} .carousel-slider__product a.quick_view,
|
411 |
-
#id-{$id} .carousel-slider__product .onsale {
|
412 |
-
background-color: {$_product_btn_bg_color};
|
413 |
-
color: {$_product_btn_text_color};
|
414 |
-
}
|
415 |
-
|
416 |
-
#id-{$id} .carousel-slider__product .star-rating {
|
417 |
-
color: {$_product_btn_bg_color};
|
418 |
-
}
|
419 |
-
";
|
420 |
-
}
|
421 |
-
|
422 |
-
// Content Carousel
|
423 |
-
if ( $slide_type == 'hero-banner-slider' && $content_sliders ) {
|
424 |
-
foreach ( $content_sliders as $slide_id => $slide ) {
|
425 |
-
if ( isset( $slide['link_type'] ) && ( $slide['link_type'] == 'button' ) ) {
|
426 |
-
|
427 |
-
$_btn_1_type = ! empty( $slide['button_one_type'] ) ? esc_attr( $slide['button_one_type'] ) : 'normal';
|
428 |
-
$_btn_1_bg_color = ! empty( $slide['button_one_bg_color'] ) ? carousel_slider_sanitize_color( $slide['button_one_bg_color'] ) : '#00d1b2';
|
429 |
-
$_btn_1_color = ! empty( $slide['button_one_color'] ) ? carousel_slider_sanitize_color( $slide['button_one_color'] ) : '#ffffff';
|
430 |
-
$_btn_1_border_width = ! empty( $slide['button_one_border_width'] ) ? esc_attr( $slide['button_one_border_width'] ) : '0px';
|
431 |
-
$_btn_1_border_radius = ! empty( $slide['button_one_border_radius'] ) ? esc_attr( $slide['button_one_border_radius'] ) : '3px';
|
432 |
-
|
433 |
-
if ( $_btn_1_type == 'stroke' ) {
|
434 |
-
echo "
|
435 |
-
#id-{$id} .cs-button-{$slide_id}-1 {
|
436 |
-
border: {$_btn_1_border_width} solid {$_btn_1_bg_color};
|
437 |
-
border-radius: {$_btn_1_border_radius};
|
438 |
-
background-color: transparent;
|
439 |
-
color: {$_btn_1_bg_color};
|
440 |
-
}
|
441 |
-
#id-{$id} .cs-button-{$slide_id}-1:hover {
|
442 |
-
border: {$_btn_1_border_width} solid {$_btn_1_bg_color};
|
443 |
-
background-color: {$_btn_1_bg_color};
|
444 |
-
color: {$_btn_1_color};
|
445 |
-
}
|
446 |
-
";
|
447 |
-
} else {
|
448 |
-
echo "
|
449 |
-
#id-{$id} .cs-button-{$slide_id}-1 {
|
450 |
-
background-color: {$_btn_1_bg_color};
|
451 |
-
border: {$_btn_1_border_width} solid {$_btn_1_bg_color};
|
452 |
-
border-radius: {$_btn_1_border_radius};
|
453 |
-
color: {$_btn_1_color};
|
454 |
-
}
|
455 |
-
";
|
456 |
-
}
|
457 |
-
|
458 |
-
$_btn_2_type = ! empty( $slide['button_two_type'] ) ? esc_attr( $slide['button_two_type'] ) : 'normal';
|
459 |
-
$_btn_2_bg_color = ! empty( $slide['button_two_bg_color'] ) ? carousel_slider_sanitize_color( $slide['button_two_bg_color'] ) : '#00d1b2';
|
460 |
-
$_btn_2_color = ! empty( $slide['button_two_color'] ) ? carousel_slider_sanitize_color( $slide['button_two_color'] ) : '#ffffff';
|
461 |
-
$_btn_2_border_width = ! empty( $slide['button_two_border_width'] ) ? esc_attr( $slide['button_two_border_width'] ) : '0px';
|
462 |
-
$_btn_2_border_radius = ! empty( $slide['button_two_border_radius'] ) ? esc_attr( $slide['button_two_border_radius'] ) : '3px';
|
463 |
-
if ( $_btn_2_type == 'stroke' ) {
|
464 |
-
echo "
|
465 |
-
#id-{$id} .cs-button-{$slide_id}-2 {
|
466 |
-
border: {$_btn_2_border_width} solid {$_btn_2_bg_color};
|
467 |
-
border-radius: {$_btn_2_border_radius};
|
468 |
-
background-color: transparent;
|
469 |
-
color: {$_btn_2_bg_color};
|
470 |
-
}
|
471 |
-
#id-{$id} .cs-button-{$slide_id}-2:hover {
|
472 |
-
border: {$_btn_2_border_width} solid {$_btn_2_bg_color};
|
473 |
-
background-color: {$_btn_2_bg_color};
|
474 |
-
color: {$_btn_2_color};
|
475 |
-
}
|
476 |
-
";
|
477 |
-
} else {
|
478 |
-
echo "
|
479 |
-
#id-{$id} .cs-button-{$slide_id}-2 {
|
480 |
-
background-color: {$_btn_2_bg_color};
|
481 |
-
border: {$_btn_2_border_width} solid {$_btn_2_bg_color};
|
482 |
-
border-radius: {$_btn_2_border_radius};
|
483 |
-
color: {$_btn_2_color};
|
484 |
-
}
|
485 |
-
";
|
486 |
-
}
|
487 |
-
}
|
488 |
-
}
|
489 |
-
}
|
490 |
-
|
491 |
-
echo "</style>";
|
492 |
-
}
|
493 |
-
}
|
494 |
-
|
495 |
-
if ( ! function_exists( 'carousel_slider_slide_type' ) ) {
|
496 |
-
/**
|
497 |
-
* Get carousel slider available slide type
|
498 |
-
*
|
499 |
-
* @return array
|
500 |
-
*/
|
501 |
-
function carousel_slider_slide_type() {
|
502 |
-
return array(
|
503 |
-
'image-carousel',
|
504 |
-
'image-carousel-url',
|
505 |
-
'post-carousel',
|
506 |
-
'product-carousel',
|
507 |
-
'video-carousel',
|
508 |
-
'hero-banner-slider'
|
509 |
-
);
|
510 |
-
}
|
511 |
-
}
|
512 |
-
|
513 |
-
if ( ! function_exists( 'carousel_slider_background_position' ) ) {
|
514 |
-
/**
|
515 |
-
* @param bool $key_only
|
516 |
-
*
|
517 |
-
* @return array
|
518 |
-
*/
|
519 |
-
function carousel_slider_background_position( $key_only = false ) {
|
520 |
-
$positions = array(
|
521 |
-
'left top' => 'left top',
|
522 |
-
'left center' => 'left center',
|
523 |
-
'left bottom' => 'left bottom',
|
524 |
-
'center top' => 'center top',
|
525 |
-
'center center' => 'center', // Default
|
526 |
-
'center bottom' => 'center bottom',
|
527 |
-
'right top' => 'right top',
|
528 |
-
'right center' => 'right center',
|
529 |
-
'right bottom' => 'right bottom',
|
530 |
-
);
|
531 |
-
if ( $key_only ) {
|
532 |
-
return array_keys( $positions );
|
533 |
-
}
|
534 |
-
|
535 |
-
return $positions;
|
536 |
-
}
|
537 |
-
}
|
538 |
-
|
539 |
-
if ( ! function_exists( 'carousel_slider_background_size' ) ) {
|
540 |
-
/**
|
541 |
-
* @param bool $key_only
|
542 |
-
*
|
543 |
-
* @return array
|
544 |
-
*/
|
545 |
-
function carousel_slider_background_size( $key_only = false ) {
|
546 |
-
$sizes = array(
|
547 |
-
'auto' => 'auto',
|
548 |
-
'contain' => 'contain',
|
549 |
-
'cover' => 'cover', // Default
|
550 |
-
'100% 100%' => '100%',
|
551 |
-
'100% auto' => '100% width',
|
552 |
-
'auto 100%' => '100% height',
|
553 |
-
);
|
554 |
-
if ( $key_only ) {
|
555 |
-
return array_keys( $sizes );
|
556 |
-
}
|
557 |
-
|
558 |
-
return $sizes;
|
559 |
-
}
|
560 |
-
}
|
561 |
-
|
562 |
-
if ( ! function_exists( 'carousel_slider_default_settings' ) ) {
|
563 |
-
function carousel_slider_default_settings() {
|
564 |
-
$options = array(
|
565 |
-
'product_title_color' => '#323232',
|
566 |
-
'product_button_bg_color' => '#00d1b2',
|
567 |
-
'product_button_text_color' => '#f1f1f1',
|
568 |
-
'nav_color' => '#f1f1f1',
|
569 |
-
'nav_active_color' => '#00d1b2',
|
570 |
-
'margin_right' => 10,
|
571 |
-
'lazy_load_image' => 'off',
|
572 |
-
);
|
573 |
-
|
574 |
-
$options = apply_filters( 'carousel_slider_default_settings', $options );
|
575 |
-
$options = json_decode( json_encode( $options ), false );
|
576 |
-
|
577 |
-
return $options;
|
578 |
-
}
|
579 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/includes/index.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// Code is Poetry
|
|
|
|
trunk/index.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// Code is Poetry
|
|
|
|
trunk/readme.txt
DELETED
@@ -1,253 +0,0 @@
|
|
1 |
-
=== Carousel Slider ===
|
2 |
-
Contributors: sayful
|
3 |
-
Tags: woocommerce, shortcode, images, carousel, carousel slider, image carousel, product carousel, slider, owl carousel
|
4 |
-
Requires at least: 4.5
|
5 |
-
Tested up to: 4.9
|
6 |
-
Requires PHP: 5.3
|
7 |
-
Stable tag: 1.8.2
|
8 |
-
License: GPLv3
|
9 |
-
License URI: https://www.gnu.org/licenses/gpl-3.0.txt
|
10 |
-
|
11 |
-
Create SEO friendly Image, Logo, Video, Post, WooCommerce Product Carousel and Slider.
|
12 |
-
|
13 |
-
== Description ==
|
14 |
-
|
15 |
-
**Create SEO friendly Image, Logo, Video, Post, WooCommerce Product Carousel and Slider.**
|
16 |
-
Carousel Slider is a touch enabled WordPress plugin that lets you create highly customizable, stylish responsive carousel slider. With Carousel Slider, you can create image carousel using media gallery or custom url, post carousel, video carousel. We have integrated [Owl Carousel 2](http://www.owlcarousel.owlgraphic.com/) into our plugin for the ultimate device support.
|
17 |
-
|
18 |
-
> Looking for a free minimal WordPress theme. Try [Shapla](https://wordpress.org/themes/shapla/)
|
19 |
-
|
20 |
-
|
21 |
-
**If you like this plugin, please give us [5 star](https://wordpress.org/support/plugin/carousel-slider/reviews/?rate=5#new-post) to encourage for future improvement.**
|
22 |
-
|
23 |
-
|
24 |
-
> What's new in version 1.8.0?
|
25 |
-
|
26 |
-
> **Hero Banner Slider(beta)** with background image, title, description, call to action buttons and more
|
27 |
-
> More control over Arrow Navigation
|
28 |
-
> More control over Bullet/Dot Navigation
|
29 |
-
> Alpha color picker for choosing color
|
30 |
-
> WooCommerce product categories list carousel.
|
31 |
-
> and more...
|
32 |
-
|
33 |
-
= Full Feature Set =
|
34 |
-
|
35 |
-
* **Multiple types carousel**, images from media gallery, images from URL, videos from youtube and vimeo, posts, and WooCommerce products carousel slider
|
36 |
-
* **Posts carousel**, support Specific posts, Post Categories, Post Tags, Posts per page, Date range query and ordering
|
37 |
-
* **Video carousel**, support custom height and width (Currently only support video from Youtube and Vimeo)
|
38 |
-
* **WooCommerce Product carousel**, support Product Categories, Product Tags, Specific Products, Featured Products, Recent Products, Sale Products, Best-Selling Products, Top Rated Products
|
39 |
-
* Options to hide/show product Title, Rating, Price, Cart Button, Sale Tag, Wishlist Button, Quick View button and options to change color for Title, Button Background, Button text
|
40 |
-
* **Fully responsive**, configure the number of items to display for desktop, small desktop, tablet and mobile devices
|
41 |
-
* **Lightweight**, only loads stuff when carousel is used
|
42 |
-
* **Navigation and pagination**, choose what type of navigation is displayed for your carousel with unlimited colors option
|
43 |
-
* **Works great in touch devices**, Touch and Grab enabled
|
44 |
-
* Supported in all major browsers
|
45 |
-
* CSS3 3D Acceleration
|
46 |
-
* Multiple carousel on same page
|
47 |
-
* Lazy load images
|
48 |
-
* Support image title, caption, link url
|
49 |
-
* and more options
|
50 |
-
|
51 |
-
= Images Carousel using gallery images =
|
52 |
-
https://www.youtube.com/watch?v=ZzI1JhElrxc
|
53 |
-
|
54 |
-
= Images Carousel using custom URLs =
|
55 |
-
https://www.youtube.com/watch?v=a7hqn1yNzwM
|
56 |
-
|
57 |
-
= Posts Carousel =
|
58 |
-
https://www.youtube.com/watch?v=ImJB946azy0
|
59 |
-
|
60 |
-
= WooCommerce Products Carousel =
|
61 |
-
https://www.youtube.com/watch?v=yiAkvXyfakg
|
62 |
-
|
63 |
-
= With Page Builder by SiteOrigin =
|
64 |
-
https://www.youtube.com/watch?v=-OaYQZfr1RM
|
65 |
-
|
66 |
-
= With WPBakery Visual Composer =
|
67 |
-
https://www.youtube.com/watch?v=4LhDXH81whk
|
68 |
-
|
69 |
-
= Using as a Widget =
|
70 |
-
https://www.youtube.com/watch?v=kYgp6wp27lM
|
71 |
-
|
72 |
-
== Installation ==
|
73 |
-
|
74 |
-
* From your WordPress dashboard go to **Plugins > Add New**.
|
75 |
-
* Search for **Carousel Slider** in **Search Plugins** box.
|
76 |
-
* Find the WordPress Plugin named **Carousel Slider** by **Sayful Islam**.
|
77 |
-
* Click **Install Now** to install the **Carousel Slider** Plugin.
|
78 |
-
* The plugin will begin to download and install.
|
79 |
-
* Now just click **Activate** to activate the plugin.
|
80 |
-
|
81 |
-
If you still need help. visit [WordPress codex](https://codex.wordpress.org/Managing_Plugins#Installing_Plugins)
|
82 |
-
|
83 |
-
== Frequently Asked Questions ==
|
84 |
-
|
85 |
-
= How to use shortcode/slider in theme template file? =
|
86 |
-
By default, Carousel slider only load scripts when you use shortcode in TinyMCE editor or use Carousel Slider Widget. This helps to reduce two unnecessary HTTP request for Style and Script when you are not using the slider.
|
87 |
-
If you want to use shortcode in your theme directly, you need to tell the plugin to load scripts for your perticular page or template in your (theme/child theme) functions.php file. To load scripts, you can use the following filter hook.
|
88 |
-
For example, if you want to use shortcode only for your front page, add the following filter hook in your theme functions.php file.
|
89 |
-
|
90 |
-
`add_filter('carousel_slider_load_scripts', 'carousel_slider_load_scripts');
|
91 |
-
function carousel_slider_load_scripts( $load_scripts ) {
|
92 |
-
// To use only for front page
|
93 |
-
if ( is_front_page() ) {
|
94 |
-
return true;
|
95 |
-
}
|
96 |
-
return $load_scripts;
|
97 |
-
}`
|
98 |
-
|
99 |
-
or write the following code to always load the slider scripts and style.
|
100 |
-
|
101 |
-
`add_filter('carousel_slider_load_scripts', 'carousel_slider_load_scripts');
|
102 |
-
function carousel_slider_load_scripts( $load_scripts ) {
|
103 |
-
return true;
|
104 |
-
}`
|
105 |
-
|
106 |
-
Now you can use the following function at your theme template file replacing `YOUR_SLIDER_ID` with actual carousel slider id.
|
107 |
-
|
108 |
-
`echo do_shortcode('[carousel_slide id='YOUR_SLIDER_ID']");`
|
109 |
-
|
110 |
-
== Screenshots ==
|
111 |
-
|
112 |
-
1. Carousel slider admin page
|
113 |
-
2. Front-end example of posts carousel slider.
|
114 |
-
3. Front-end example of videos carousel slider.
|
115 |
-
4. Front-end example of images carousel slider.
|
116 |
-
5. Front-end example of products carousel slider.
|
117 |
-
6. Front-end example of products Quick View.
|
118 |
-
7. Front-end example of image lightbox.
|
119 |
-
|
120 |
-
== Changelog ==
|
121 |
-
|
122 |
-
= version 1.8.2 - 2017-11-03 =
|
123 |
-
* Fixed - Fixed color overlapping issue on WordPress 3.9
|
124 |
-
|
125 |
-
= version 1.8.1 - 2017-11-03 =
|
126 |
-
* Added - Auto Width: set item width according to its content width.
|
127 |
-
* Added - Stage Padding: Stage padding option adds left and right padding style (in pixels) onto stage-wrapper.
|
128 |
-
* Fixed - Carousel Slider widget only show latest five slider.
|
129 |
-
* Fixed - arrows is showing on mobile device.
|
130 |
-
|
131 |
-
= version 1.8.0 - 2017-09-30 =
|
132 |
-
* Added - Hero banner slider(beta)
|
133 |
-
* Added - Hero banner slider: Add unlimited number of slide
|
134 |
-
* Added - Hero banner slider: Delete and sort(up, down, top, bottom) slide
|
135 |
-
* Added - Hero banner slider: Slide background with color, image and more
|
136 |
-
* Added - Hero banner slider: Slide title and description
|
137 |
-
* Added - Hero banner slider: Up to two call to action buttons with full style
|
138 |
-
* Added - Arrow Nav: Position (Inside or Outside)
|
139 |
-
* Added - Arrow Nav: Custom Size
|
140 |
-
* Tweak - Arrow Nav: Always visibility
|
141 |
-
* Added - Bullet Nav: Position (Left, Center or Right)
|
142 |
-
* Added - Bullet Nav: Custom Size
|
143 |
-
* Added - Bullet Nav: Square or Circle Shape
|
144 |
-
* Tweak - Arrow Nav: Option to enable visibility only on hover
|
145 |
-
* Tweak - Alpha color picker for choosing color
|
146 |
-
* Added - WooCommerce product categories list carousel.
|
147 |
-
* Fixed - Fix featured and top rated products on WooCommerce 3.x.x
|
148 |
-
* Fixed - Fix popup/modal not working always
|
149 |
-
* Tweak - Update owlCarousel version 2.2.1
|
150 |
-
|
151 |
-
= version 1.7.4 - 2017-08-26 =
|
152 |
-
* Fixed - Fixed syntax error for short array syntax on PHP 5.3
|
153 |
-
|
154 |
-
= version 1.7.3 - 2017-08-25 =
|
155 |
-
* Added - JSON-LD structured data for post carousel.
|
156 |
-
* Added - Added uninstall.php file to remove data on uninstall.
|
157 |
-
* Added - Added admin only notice for deprecated shortcode.
|
158 |
-
* Fixed - get_product() deprecated notice on WooCommerce version 3
|
159 |
-
* Fixed - Fixed error on WooCommerce version 2.6.* and 2.5.*
|
160 |
-
* Tweak - Remove dependency over jquery.livequery.js and update admin javascript.
|
161 |
-
* Tweak - Refactor code with WordPress coding style.
|
162 |
-
|
163 |
-
= version 1.7.2 - 2017-04-07 =
|
164 |
-
* New - Structured data generator using JSON-LD format for Product Carousel and Gallery Image Carousel.
|
165 |
-
|
166 |
-
= version 1.7.1 - 2017-04-05 =
|
167 |
-
* New - WooCommerce 3.0.0 compatibility
|
168 |
-
* Fixed - get_product() has been replaced with wc_get_product()
|
169 |
-
* Fixed - get_rating_html() has been replaced with wc_get_rating_html()
|
170 |
-
* Fixed - Fixed id was called incorrectly (Product properties should not be accessed directly) notice.
|
171 |
-
|
172 |
-
= version 1.7.0 - 2017-03-12 =
|
173 |
-
* Added - WooCommerce Product carousel.
|
174 |
-
* Added - WooCommerce Product Quick View button.
|
175 |
-
* Added - WooCommerce Product wishlist button (Required YITH WooCommerce Wishlist).
|
176 |
-
* Added - Unlimited colors for Product button and title.
|
177 |
-
* Added - Lightbox support for images carousel.
|
178 |
-
|
179 |
-
= version 1.6.3 - 2017-01-31 =
|
180 |
-
* Added - Added title option for carousel slider widget.
|
181 |
-
* Tweak - Tweak at post carousel admin interface.
|
182 |
-
* Tweak - Added new carousel_slider_load_scripts filter hook for modifying scripts load conditions.
|
183 |
-
* And some other tweak for coding improvement.
|
184 |
-
|
185 |
-
= version 1.6.2 - 2017-01-27 =
|
186 |
-
* Fixed - Removed PHP trait to add support to PHP 5.3 as some users still use PHP 5.3
|
187 |
-
* Fixed - Fixed issue to make all carousel slider type to **Image Carousel** on activation.
|
188 |
-
|
189 |
-
= version 1.6.1 - 2017-01-12 =
|
190 |
-
* Added - Show posts by Post Categories, Post Tags.
|
191 |
-
* Added - Option to choose query type - Latest Posts, Date Range, Post Categories, Post Tags or Specific Posts.
|
192 |
-
* Added - Added option to set link target for image carousel when click on image.
|
193 |
-
* Fixed - Fixed issue for not saving value from multiple select when no/empty value.
|
194 |
-
* Updated - Pre and Next Navigation buttons has been changed by inline SVG images.
|
195 |
-
|
196 |
-
= version 1.6.0 - 2016-12-22 =
|
197 |
-
* Added - "Link to URL" field at WordPress media uploader for linking carousel image.
|
198 |
-
* Added - Video carousel slider with custom height and width.
|
199 |
-
* Added - Posts carousel slider supporting Specific posts, Posts per page, Date range query and ordering posts.
|
200 |
-
* Added - Images carousel using custom URL with sorting, custom title, custom caption and link to URL features.
|
201 |
-
* Added - New breakpoint for Extra Large Desktop Layout
|
202 |
-
* Updated - Owl Carousel v2.2.0 javaScript library
|
203 |
-
* Shortcode **[carousel]** and **[item]** has been deprecated but backup up for previous versions.
|
204 |
-
* Documentation enhancement and improvements.
|
205 |
-
|
206 |
-
= version 1.5.3 - 2016-12-08 =
|
207 |
-
* Fixed - Issue for not saving zero value for margin.
|
208 |
-
|
209 |
-
= version 1.5.2 - 2016-12-03 =
|
210 |
-
* Added - Added options to show title and caption on carousel item.
|
211 |
-
* Added - Lazy Load of images.
|
212 |
-
* Added - Support multiple carousel slide at same page.
|
213 |
-
* Added - New Carousel Slider Widget to add carousel at widget. Especially helpful for page builder that use widget like "SiteOrigin Page Builder".
|
214 |
-
* Added - New Element added for WPBakery Visual Composer page builder. If you are using WPBakery Visual Composer page.
|
215 |
-
* Merged - All CSS styles in on file.
|
216 |
-
|
217 |
-
= version 1.5.1 - 2016-08-11 =
|
218 |
-
* Version compatibility check and some bug fix.
|
219 |
-
|
220 |
-
= version 1.5.0 - 2016-02-05 =
|
221 |
-
|
222 |
-
* Added graphical interface to add carousel
|
223 |
-
* Added shortcode attributes 'inifnity_loop', 'autoplay_timeout', 'autoplay_speed', 'slide_by', 'nav_color', 'nav_active_color', 'margin_right'
|
224 |
-
* Removed shortcode 'carousel_slider' and 'all-carousels'
|
225 |
-
* Removed shortcode attributes 'pagination_speed', 'rewind_speed', 'scroll_per_page', 'pagination_numbers', 'auto_height', 'single_item'
|
226 |
-
|
227 |
-
= version 1.4.0 =
|
228 |
-
|
229 |
-
* Added option to add custom image size
|
230 |
-
* Added option to link each slide to a URL
|
231 |
-
* Added option to open link in the same frame as it was clicked or in a new window or tab.
|
232 |
-
* Added feature to add multiple slider at page, post or theme by custom post category slug
|
233 |
-
* Re-write with Object-oriented programming (OOP)
|
234 |
-
|
235 |
-
= version 1.3.0 =
|
236 |
-
|
237 |
-
* Tested with WordPress version 4.1
|
238 |
-
|
239 |
-
= version 1.2.0 =
|
240 |
-
|
241 |
-
* Fixed bugs regarding shortcode.
|
242 |
-
* Added href="" to add link to post, page or media
|
243 |
-
* Translation ready
|
244 |
-
|
245 |
-
= version 1.1.0 - 2014-07-15 =
|
246 |
-
|
247 |
-
* Fixed some bugs.
|
248 |
-
|
249 |
-
= version 1.0.0 - 2014-06-30 =
|
250 |
-
* Initial release.
|
251 |
-
|
252 |
-
== Upgrade Notice ==
|
253 |
-
Update to get exciting new features and better security.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/shortcodes/class-carousel-slider-deprecated-shortcode.php
DELETED
@@ -1,196 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// If this file is called directly, abort.
|
3 |
-
if ( ! defined( 'WPINC' ) ) {
|
4 |
-
die;
|
5 |
-
}
|
6 |
-
|
7 |
-
if ( ! class_exists( 'Carousel_Slider_Deprecated_Shortcode' ) ):
|
8 |
-
|
9 |
-
class Carousel_Slider_Deprecated_Shortcode {
|
10 |
-
|
11 |
-
protected static $instance = null;
|
12 |
-
|
13 |
-
/**
|
14 |
-
* Ensures only one instance of this class is loaded or can be loaded.
|
15 |
-
*
|
16 |
-
* @return Carousel_Slider_Deprecated_Shortcode
|
17 |
-
*/
|
18 |
-
public static function init() {
|
19 |
-
if ( is_null( self::$instance ) ) {
|
20 |
-
self::$instance = new self();
|
21 |
-
}
|
22 |
-
|
23 |
-
return self::$instance;
|
24 |
-
}
|
25 |
-
|
26 |
-
/**
|
27 |
-
* class constructor.
|
28 |
-
*/
|
29 |
-
public function __construct() {
|
30 |
-
// Deprecated since version 1.6.0
|
31 |
-
add_shortcode( 'carousel', array( $this, 'carousel' ) );
|
32 |
-
add_shortcode( 'item', array( $this, 'item' ) );
|
33 |
-
}
|
34 |
-
|
35 |
-
/**
|
36 |
-
* A shortcode for rendering the carousel slide.
|
37 |
-
*
|
38 |
-
* @param array $atts Shortcode attributes.
|
39 |
-
* @param string $content The text content for shortcode. Not used.
|
40 |
-
*
|
41 |
-
* @return string The shortcode output
|
42 |
-
*/
|
43 |
-
public function carousel( $atts, $content = null ) {
|
44 |
-
extract( shortcode_atts( array(
|
45 |
-
'id' => rand( 1, 10 ),
|
46 |
-
'items_desktop_large' => '4',
|
47 |
-
'items' => '4',
|
48 |
-
'items_desktop' => '4',
|
49 |
-
'items_desktop_small' => '3',
|
50 |
-
'items_tablet' => '2',
|
51 |
-
'items_mobile' => '1',
|
52 |
-
'auto_play' => 'true',
|
53 |
-
'stop_on_hover' => 'true',
|
54 |
-
'navigation' => 'true',
|
55 |
-
'pagination' => 'false',
|
56 |
-
'nav_color' => '#f1f1f1',
|
57 |
-
'nav_active_color' => '#4caf50',
|
58 |
-
'margin_right' => '10',
|
59 |
-
'inifnity_loop' => 'true',
|
60 |
-
'autoplay_timeout' => '5000',
|
61 |
-
'autoplay_speed' => '500',
|
62 |
-
'slide_by' => '1',
|
63 |
-
), $atts ) );
|
64 |
-
|
65 |
-
ob_start();
|
66 |
-
|
67 |
-
$options_array = array(
|
68 |
-
'id' => 'id-' . $id,
|
69 |
-
'class' => 'owl-carousel carousel-slider',
|
70 |
-
// General
|
71 |
-
'data-slide-type' => 'image-carousel-url',
|
72 |
-
'data-margin' => $margin_right,
|
73 |
-
'data-slide-by' => $slide_by,
|
74 |
-
'data-loop' => $inifnity_loop,
|
75 |
-
'data-lazy-load' => 'false',
|
76 |
-
'data-stage-padding' => 0,
|
77 |
-
'data-auto-width' => 'false',
|
78 |
-
// Navigation
|
79 |
-
'data-nav' => $navigation,
|
80 |
-
'data-dots' => $pagination,
|
81 |
-
// Video
|
82 |
-
'data-video-width' => 'false',
|
83 |
-
'data-video-height' => 'false',
|
84 |
-
// Autoplay
|
85 |
-
'data-autoplay' => $auto_play,
|
86 |
-
'data-autoplay-timeout' => $autoplay_timeout,
|
87 |
-
'data-autoplay-speed' => $autoplay_speed,
|
88 |
-
'data-autoplay-hover-pause' => $stop_on_hover,
|
89 |
-
// Responsive
|
90 |
-
'data-colums' => $items_desktop_large,
|
91 |
-
'data-colums-desktop' => $items,
|
92 |
-
'data-colums-small-desktop' => $items_desktop,
|
93 |
-
'data-colums-tablet' => $items_desktop_small,
|
94 |
-
'data-colums-small-tablet' => $items_tablet,
|
95 |
-
'data-colums-mobile' => $items_mobile,
|
96 |
-
);
|
97 |
-
?>
|
98 |
-
<style>
|
99 |
-
#id-<?php echo $id; ?> .owl-dots .owl-dot span {
|
100 |
-
background-color: <?php echo $nav_color; ?>
|
101 |
-
}
|
102 |
-
|
103 |
-
#id-<?php echo $id; ?> .owl-dots .owl-dot.active span,
|
104 |
-
#id-<?php echo $id; ?> .owl-dots .owl-dot:hover span {
|
105 |
-
background-color: <?php echo $nav_active_color; ?>
|
106 |
-
}
|
107 |
-
|
108 |
-
#id-<?php echo $id; ?> .carousel-slider-nav-icon {
|
109 |
-
fill: <?php echo $nav_color; ?>;
|
110 |
-
}
|
111 |
-
|
112 |
-
#id-<?php echo $id; ?> .carousel-slider-nav-icon:hover {
|
113 |
-
fill: <?php echo $nav_active_color; ?>;
|
114 |
-
}
|
115 |
-
</style>
|
116 |
-
<?php
|
117 |
-
if ( current_user_can( 'manage_options' ) ) {
|
118 |
-
printf(
|
119 |
-
'<div style="background-color: #ffdddd;border-left: 0.375rem solid #f44336; margin-bottom: 1rem;
|
120 |
-
margin-top: 1rem;padding: 0.01rem 1rem;"><p><strong>%s</strong><br>%s<br>%s</p></div> ',
|
121 |
-
esc_html__( 'Admin Only Notice!', 'carousel-slider' ),
|
122 |
-
esc_html__( 'From carousel slider version 1.6.0, [carousel] and [item] shortcode has been deprecated.', 'carousel-slider' ),
|
123 |
-
esc_html__( 'Both [carousel] and [item] shortcode will be removed on carousel slider version 2.0.0', 'carousel-slider' )
|
124 |
-
);
|
125 |
-
}
|
126 |
-
?>
|
127 |
-
<div <?php echo $this->array_to_data( $options_array ); ?>>
|
128 |
-
<?php echo do_shortcode( $content ); ?>
|
129 |
-
</div><!-- .carousel-slider -->
|
130 |
-
<?php
|
131 |
-
$html = ob_get_contents();
|
132 |
-
ob_end_clean();
|
133 |
-
|
134 |
-
return $html;
|
135 |
-
|
136 |
-
}
|
137 |
-
|
138 |
-
/**
|
139 |
-
* A shortcode for rendering the carousel slide.
|
140 |
-
*
|
141 |
-
* @param array $attributes Shortcode attributes.
|
142 |
-
* @param string $content The text content for shortcode. Not used.
|
143 |
-
*
|
144 |
-
* @return string The shortcode output
|
145 |
-
*/
|
146 |
-
public function item( $attributes, $content = null ) {
|
147 |
-
extract( shortcode_atts( array(
|
148 |
-
'img_link' => '',
|
149 |
-
'href' => '',
|
150 |
-
'target' => '_self',
|
151 |
-
), $attributes ) );
|
152 |
-
|
153 |
-
if ( ! $this->is_valid_url( $img_link ) ) {
|
154 |
-
return;
|
155 |
-
}
|
156 |
-
|
157 |
-
if ( $this->is_valid_url( $href ) ) {
|
158 |
-
|
159 |
-
return sprintf( '<div><a target="%3$s" href="%2$s"><img src="%1$s"></a></div>', esc_url( $img_link ), esc_url( $href ), $target );
|
160 |
-
} else {
|
161 |
-
|
162 |
-
return sprintf( '<div><img src="%s"></div>', esc_url( $img_link ) );
|
163 |
-
}
|
164 |
-
}
|
165 |
-
|
166 |
-
/**
|
167 |
-
* Check if url is valid as per RFC 2396 Generic Syntax
|
168 |
-
*
|
169 |
-
* @param string $url
|
170 |
-
*
|
171 |
-
* @return boolean
|
172 |
-
*/
|
173 |
-
private function is_valid_url( $url ) {
|
174 |
-
return carousel_slider_is_url( $url );
|
175 |
-
}
|
176 |
-
|
177 |
-
/**
|
178 |
-
* Convert array to html attributes
|
179 |
-
*
|
180 |
-
* @param array $array
|
181 |
-
*
|
182 |
-
* @return string
|
183 |
-
*/
|
184 |
-
private function array_to_data( array $array ) {
|
185 |
-
$array_map = array_map( function ( $key, $value ) {
|
186 |
-
return sprintf( '%s="%s"', $key, esc_attr( $value ) );
|
187 |
-
|
188 |
-
}, array_keys( $array ), array_values( $array ) );
|
189 |
-
|
190 |
-
return join( " ", $array_map );
|
191 |
-
}
|
192 |
-
}
|
193 |
-
|
194 |
-
endif;
|
195 |
-
|
196 |
-
Carousel_Slider_Deprecated_Shortcode::init();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/shortcodes/class-carousel-slider-shortcode.php
DELETED
@@ -1,322 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// If this file is called directly, abort.
|
3 |
-
if ( ! defined( 'WPINC' ) ) {
|
4 |
-
die;
|
5 |
-
}
|
6 |
-
|
7 |
-
if ( ! class_exists( 'Carousel_Slider_Shortcode' ) ):
|
8 |
-
|
9 |
-
class Carousel_Slider_Shortcode {
|
10 |
-
protected static $instance = null;
|
11 |
-
|
12 |
-
/**
|
13 |
-
* Ensures only one instance of this class is loaded or can be loaded.
|
14 |
-
*
|
15 |
-
* @return Carousel_Slider_Shortcode
|
16 |
-
*/
|
17 |
-
public static function init() {
|
18 |
-
if ( is_null( self::$instance ) ) {
|
19 |
-
self::$instance = new self();
|
20 |
-
}
|
21 |
-
|
22 |
-
return self::$instance;
|
23 |
-
}
|
24 |
-
|
25 |
-
/**
|
26 |
-
* CarouselSliderShortcode constructor.
|
27 |
-
*/
|
28 |
-
public function __construct() {
|
29 |
-
add_shortcode( 'carousel_slide', array( $this, 'carousel_slide' ) );
|
30 |
-
}
|
31 |
-
|
32 |
-
/**
|
33 |
-
* A shortcode for rendering the carousel slide.
|
34 |
-
*
|
35 |
-
* @param array $attributes Shortcode attributes.
|
36 |
-
* @param string $content The text content for shortcode. Not used.
|
37 |
-
*
|
38 |
-
* @return string The shortcode output
|
39 |
-
*/
|
40 |
-
public function carousel_slide( $attributes, $content = null ) {
|
41 |
-
if ( empty( $attributes['id'] ) ) {
|
42 |
-
return '';
|
43 |
-
}
|
44 |
-
|
45 |
-
$id = intval( $attributes['id'] );
|
46 |
-
|
47 |
-
$slide_type = get_post_meta( $id, '_slide_type', true );
|
48 |
-
$slide_type = in_array( $slide_type, carousel_slider_slide_type() ) ? $slide_type : 'image-carousel';
|
49 |
-
|
50 |
-
if ( $slide_type == 'post-carousel' ) {
|
51 |
-
ob_start();
|
52 |
-
require CAROUSEL_SLIDER_TEMPLATES . '/public/post-carousel.php';
|
53 |
-
$html = ob_get_contents();
|
54 |
-
ob_end_clean();
|
55 |
-
|
56 |
-
return apply_filters( 'carousel_slider_posts_carousel', $html, $id );
|
57 |
-
}
|
58 |
-
|
59 |
-
if ( $slide_type == 'video-carousel' ) {
|
60 |
-
ob_start();
|
61 |
-
require CAROUSEL_SLIDER_TEMPLATES . '/public/video-carousel.php';
|
62 |
-
$html = ob_get_contents();
|
63 |
-
ob_end_clean();
|
64 |
-
|
65 |
-
return apply_filters( 'carousel_slider_videos_carousel', $html, $id );
|
66 |
-
}
|
67 |
-
|
68 |
-
if ( $slide_type == 'image-carousel-url' ) {
|
69 |
-
ob_start();
|
70 |
-
require CAROUSEL_SLIDER_TEMPLATES . '/public/images-carousel-url.php';
|
71 |
-
$html = ob_get_contents();
|
72 |
-
ob_end_clean();
|
73 |
-
|
74 |
-
return apply_filters( 'carousel_slider_link_images_carousel', $html, $id );
|
75 |
-
}
|
76 |
-
|
77 |
-
if ( $slide_type == 'image-carousel' ) {
|
78 |
-
ob_start();
|
79 |
-
require CAROUSEL_SLIDER_TEMPLATES . '/public/images-carousel.php';
|
80 |
-
$html = ob_get_contents();
|
81 |
-
ob_end_clean();
|
82 |
-
|
83 |
-
return apply_filters( 'carousel_slider_gallery_images_carousel', $html, $id );
|
84 |
-
}
|
85 |
-
|
86 |
-
if ( $slide_type == 'product-carousel' ) {
|
87 |
-
|
88 |
-
$query_type = get_post_meta( $id, '_product_query_type', true );
|
89 |
-
$query_type = empty( $query_type ) ? 'query_porduct' : $query_type;
|
90 |
-
$product_query = get_post_meta( $id, '_product_query', true );
|
91 |
-
|
92 |
-
if ( $query_type == 'query_porduct' && $product_query == 'product_categories_list' ) {
|
93 |
-
ob_start();
|
94 |
-
|
95 |
-
echo $this->product_categories( $id );
|
96 |
-
$html = ob_get_contents();
|
97 |
-
ob_end_clean();
|
98 |
-
|
99 |
-
return apply_filters( 'carousel_slider_product_carousel', $html, $id );
|
100 |
-
}
|
101 |
-
|
102 |
-
ob_start();
|
103 |
-
require CAROUSEL_SLIDER_TEMPLATES . '/public/product-carousel.php';
|
104 |
-
$html = ob_get_contents();
|
105 |
-
ob_end_clean();
|
106 |
-
|
107 |
-
return apply_filters( 'carousel_slider_product_carousel', $html, $id );
|
108 |
-
}
|
109 |
-
|
110 |
-
if ( $slide_type == 'hero-banner-slider' ) {
|
111 |
-
|
112 |
-
wp_enqueue_script( 'carousel-slider-hero' );
|
113 |
-
ob_start();
|
114 |
-
require CAROUSEL_SLIDER_TEMPLATES . '/public/hero-banner-slider.php';
|
115 |
-
$html = ob_get_contents();
|
116 |
-
ob_end_clean();
|
117 |
-
|
118 |
-
return apply_filters( 'carousel_slider_content_carousel', $html, $id );
|
119 |
-
}
|
120 |
-
|
121 |
-
return '';
|
122 |
-
}
|
123 |
-
|
124 |
-
/**
|
125 |
-
* Generate carousel options for slider
|
126 |
-
*
|
127 |
-
* @param $id
|
128 |
-
*
|
129 |
-
* @return array
|
130 |
-
*/
|
131 |
-
private function carousel_options( $id ) {
|
132 |
-
$_nav_color = get_post_meta( $id, '_nav_color', true );
|
133 |
-
$_nav_active_color = get_post_meta( $id, '_nav_active_color', true );
|
134 |
-
$_nav_button = get_post_meta( $id, '_nav_button', true );
|
135 |
-
$_arrow_position = get_post_meta( $id, '_arrow_position', true );
|
136 |
-
$_dot_nav = get_post_meta( $id, '_dot_nav', true );
|
137 |
-
$_bullet_position = get_post_meta( $id, '_bullet_position', true );
|
138 |
-
$_bullet_shape = get_post_meta( $id, '_bullet_shape', true );
|
139 |
-
|
140 |
-
$class = 'owl-carousel carousel-slider';
|
141 |
-
|
142 |
-
// Arrows position
|
143 |
-
if ( $_arrow_position == 'inside' ) {
|
144 |
-
$class .= ' arrows-inside';
|
145 |
-
} else {
|
146 |
-
$class .= ' arrows-outside';
|
147 |
-
}
|
148 |
-
|
149 |
-
// Arrows visibility
|
150 |
-
if ( $_nav_button == 'always' ) {
|
151 |
-
$class .= ' arrows-visible-always';
|
152 |
-
} elseif ( $_nav_button == 'off' ) {
|
153 |
-
$class .= ' arrows-hidden';
|
154 |
-
} else {
|
155 |
-
$class .= ' arrows-visible-hover';
|
156 |
-
}
|
157 |
-
|
158 |
-
// Dots visibility
|
159 |
-
if ( $_dot_nav == 'on' ) {
|
160 |
-
$class .= ' dots-visible-always';
|
161 |
-
} elseif ( $_dot_nav == 'off' ) {
|
162 |
-
$class .= ' dots-hidden';
|
163 |
-
} else {
|
164 |
-
$class .= ' dots-visible-hover';
|
165 |
-
}
|
166 |
-
|
167 |
-
// Dots position
|
168 |
-
if ( $_bullet_position == 'left' ) {
|
169 |
-
$class .= ' dots-left';
|
170 |
-
} elseif ( $_bullet_position == 'right' ) {
|
171 |
-
$class .= ' dots-right';
|
172 |
-
} else {
|
173 |
-
$class .= ' dots-center';
|
174 |
-
}
|
175 |
-
|
176 |
-
// Dots shape
|
177 |
-
if ( $_bullet_shape == 'circle' ) {
|
178 |
-
$class .= ' dots-circle';
|
179 |
-
} else {
|
180 |
-
$class .= ' dots-square';
|
181 |
-
}
|
182 |
-
|
183 |
-
$options_array = array(
|
184 |
-
'id' => 'id-' . $id,
|
185 |
-
'class' => $class,
|
186 |
-
// General
|
187 |
-
'data-slide-type' => $this->get_meta( $id, '_slide_type', 'image-carousel' ),
|
188 |
-
'data-margin' => $this->get_meta( $id, '_margin_right', '10' ),
|
189 |
-
'data-slide-by' => $this->get_meta( $id, '_slide_by', '1' ),
|
190 |
-
'data-loop' => $this->get_meta( $id, '_inifnity_loop', 'true' ),
|
191 |
-
'data-lazy-load' => $this->get_meta( $id, '_lazy_load_image', 'false' ),
|
192 |
-
'data-stage-padding' => $this->get_meta( $id, '_stage_padding', '0' ),
|
193 |
-
'data-auto-width' => $this->get_meta( $id, '_auto_width', 'false' ),
|
194 |
-
// Navigation
|
195 |
-
'data-dots' => $this->get_meta( $id, '_dot_nav', 'false' ),
|
196 |
-
'data-nav' => $this->get_meta( $id, '_nav_button', 'false' ),
|
197 |
-
// Video
|
198 |
-
'data-video-width' => $this->get_meta( $id, '_video_width', 'false' ),
|
199 |
-
'data-video-height' => $this->get_meta( $id, '_video_height', 'false' ),
|
200 |
-
// Autoplay
|
201 |
-
'data-autoplay' => $this->get_meta( $id, '_autoplay', 'true' ),
|
202 |
-
'data-autoplay-timeout' => $this->get_meta( $id, '_autoplay_timeout', '5000' ),
|
203 |
-
'data-autoplay-speed' => $this->get_meta( $id, '_autoplay_speed', '500' ),
|
204 |
-
'data-autoplay-hover-pause' => $this->get_meta( $id, '_autoplay_pause', 'false' ),
|
205 |
-
// Responsive
|
206 |
-
'data-colums' => $this->get_meta( $id, '_items', '4' ),
|
207 |
-
'data-colums-desktop' => $this->get_meta( $id, '_items_desktop', '4' ),
|
208 |
-
'data-colums-small-desktop' => $this->get_meta( $id, '_items_small_desktop', '4' ),
|
209 |
-
'data-colums-tablet' => $this->get_meta( $id, '_items_portrait_tablet', '3' ),
|
210 |
-
'data-colums-small-tablet' => $this->get_meta( $id, '_items_small_portrait_tablet', '2' ),
|
211 |
-
'data-colums-mobile' => $this->get_meta( $id, '_items_portrait_mobile', '1' ),
|
212 |
-
);
|
213 |
-
|
214 |
-
return $this->array_to_data( $options_array );
|
215 |
-
}
|
216 |
-
|
217 |
-
/**
|
218 |
-
* Get post meta by id and key
|
219 |
-
*
|
220 |
-
* @param $id
|
221 |
-
* @param $key
|
222 |
-
* @param null $default
|
223 |
-
*
|
224 |
-
* @return string
|
225 |
-
*/
|
226 |
-
public function get_meta( $id, $key, $default = null ) {
|
227 |
-
return carousel_slider_get_meta( $id, $key, $default );
|
228 |
-
}
|
229 |
-
|
230 |
-
/**
|
231 |
-
* Convert array to html data attribute
|
232 |
-
*
|
233 |
-
* @param $array
|
234 |
-
*
|
235 |
-
* @return array
|
236 |
-
*/
|
237 |
-
public function array_to_data( $array ) {
|
238 |
-
return carousel_slider_array_to_attribute( $array );
|
239 |
-
}
|
240 |
-
|
241 |
-
/**
|
242 |
-
* Check if url is valid as per RFC 2396 Generic Syntax
|
243 |
-
*
|
244 |
-
* @param string $url
|
245 |
-
*
|
246 |
-
* @return boolean
|
247 |
-
*/
|
248 |
-
public function is_valid_url( $url ) {
|
249 |
-
return carousel_slider_is_url( $url );
|
250 |
-
}
|
251 |
-
|
252 |
-
/**
|
253 |
-
* Convert url to youtube and vimeo video link
|
254 |
-
*
|
255 |
-
* @param $url
|
256 |
-
*
|
257 |
-
* @return string
|
258 |
-
*/
|
259 |
-
public function video_url( $url ) {
|
260 |
-
if ( ! $this->is_valid_url( $url ) ) {
|
261 |
-
return;
|
262 |
-
}
|
263 |
-
|
264 |
-
$url = esc_url( $url );
|
265 |
-
|
266 |
-
if ( strpos( $url, 'youtube.com' ) > 0 ) {
|
267 |
-
return '<div class="item-video"><a class="owl-video" href="' . $url . '"></a></div>';
|
268 |
-
}
|
269 |
-
|
270 |
-
if ( strpos( $url, 'vimeo.com' ) > 0 ) {
|
271 |
-
return '<div class="item-video"><a class="owl-video" href="' . $url . '"></a></div>';
|
272 |
-
}
|
273 |
-
|
274 |
-
return;
|
275 |
-
}
|
276 |
-
|
277 |
-
/**
|
278 |
-
* Get product categories list carousel
|
279 |
-
*
|
280 |
-
* @param int $id
|
281 |
-
*
|
282 |
-
* @return string
|
283 |
-
*/
|
284 |
-
private function product_categories( $id = 0 ) {
|
285 |
-
|
286 |
-
$product_carousel = new Carousel_Slider_Product();
|
287 |
-
$product_categories = $product_carousel->product_categories();
|
288 |
-
|
289 |
-
$options = $this->carousel_options( $id );
|
290 |
-
$options = join( " ", $options );
|
291 |
-
|
292 |
-
ob_start();
|
293 |
-
if ( $product_categories ) {
|
294 |
-
echo '<div class="carousel-slider-outer carousel-slider-outer-products carousel-slider-outer-' . $id . '">';
|
295 |
-
carousel_slider_inline_style( $id );
|
296 |
-
echo '<div ' . $options . '>';
|
297 |
-
|
298 |
-
|
299 |
-
foreach ( $product_categories as $category ) {
|
300 |
-
echo '<div class="product carousel-slider__product">';
|
301 |
-
do_action( 'woocommerce_before_subcategory', $category );
|
302 |
-
do_action( 'woocommerce_before_subcategory_title', $category );
|
303 |
-
do_action( 'woocommerce_shop_loop_subcategory_title', $category );
|
304 |
-
do_action( 'woocommerce_after_subcategory_title', $category );
|
305 |
-
do_action( 'woocommerce_after_subcategory', $category );
|
306 |
-
echo '</div>';
|
307 |
-
}
|
308 |
-
|
309 |
-
echo '</div>';
|
310 |
-
echo '</div>';
|
311 |
-
}
|
312 |
-
|
313 |
-
$html = ob_get_contents();
|
314 |
-
ob_end_clean();
|
315 |
-
|
316 |
-
return $html;
|
317 |
-
}
|
318 |
-
}
|
319 |
-
|
320 |
-
endif;
|
321 |
-
|
322 |
-
Carousel_Slider_Shortcode::init();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/shortcodes/index.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// Code is Poetry
|
|
|
|
trunk/templates/admin/autoplay.php
DELETED
@@ -1,37 +0,0 @@
|
|
1 |
-
<div data-id="open" class="shapla-toggle shapla-toggle--stroke">
|
2 |
-
<span class="shapla-toggle-title">
|
3 |
-
<?php esc_html_e( 'Autoplay Settings', 'carousel-slider' ); ?>
|
4 |
-
</span>
|
5 |
-
<div class="shapla-toggle-inner">
|
6 |
-
<div class="shapla-toggle-content">
|
7 |
-
<?php
|
8 |
-
$this->form->checkbox( array(
|
9 |
-
'id' => '_autoplay',
|
10 |
-
'name' => esc_html__( 'Autoplay', 'carousel-slider' ),
|
11 |
-
'label' => esc_html__( 'Autoplay.', 'carousel-slider' ),
|
12 |
-
'desc' => esc_html__( 'Check to enable autoplay', 'carousel-slider' ),
|
13 |
-
'std' => 'on'
|
14 |
-
) );
|
15 |
-
$this->form->number( array(
|
16 |
-
'id' => '_autoplay_timeout',
|
17 |
-
'name' => esc_html__( 'Autoplay Timeout', 'carousel-slider' ),
|
18 |
-
'desc' => esc_html__( 'Autoplay interval timeout in millisecond. Default: 5000', 'carousel-slider' ),
|
19 |
-
'std' => 5000
|
20 |
-
) );
|
21 |
-
|
22 |
-
$this->form->number( array(
|
23 |
-
'id' => '_autoplay_speed',
|
24 |
-
'name' => esc_html__( 'Autoplay Speed', 'carousel-slider' ),
|
25 |
-
'desc' => esc_html__( 'Autoplay speed in millisecond. Default: 500', 'carousel-slider' ),
|
26 |
-
'std' => 500
|
27 |
-
) );
|
28 |
-
$this->form->checkbox( array(
|
29 |
-
'id' => '_autoplay_pause',
|
30 |
-
'name' => esc_html__( 'Autoplay Hover Pause', 'carousel-slider' ),
|
31 |
-
'label' => esc_html__( 'Pause on mouse hover.', 'carousel-slider' ),
|
32 |
-
'desc' => esc_html__( 'Pause autoplay on mouse hover.', 'carousel-slider' ),
|
33 |
-
) );
|
34 |
-
?>
|
35 |
-
</div>
|
36 |
-
</div>
|
37 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/templates/admin/documentation.php
DELETED
@@ -1,124 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// If this file is called directly, abort.
|
3 |
-
if ( ! defined( 'WPINC' ) ) {
|
4 |
-
die;
|
5 |
-
}
|
6 |
-
?>
|
7 |
-
<style type="text/css">
|
8 |
-
.carousel_slider_iframe {
|
9 |
-
position: relative;
|
10 |
-
padding-bottom: 56.25%; /* height / width * 100 */
|
11 |
-
padding-top: 25px;
|
12 |
-
height: 0;
|
13 |
-
}
|
14 |
-
|
15 |
-
.carousel_slider_iframe > iframe {
|
16 |
-
position: absolute;
|
17 |
-
top: 0;
|
18 |
-
left: 0;
|
19 |
-
width: 100%;
|
20 |
-
height: 100%;
|
21 |
-
}
|
22 |
-
|
23 |
-
.carousel_slider_columns {
|
24 |
-
display: flex;
|
25 |
-
flex-wrap: wrap;
|
26 |
-
box-sizing: border-box;
|
27 |
-
}
|
28 |
-
|
29 |
-
.carousel_slider_column {
|
30 |
-
flex: 0 0 100%;
|
31 |
-
padding: 1rem;
|
32 |
-
box-sizing: border-box;
|
33 |
-
}
|
34 |
-
|
35 |
-
@media screen and (min-width: 601px) {
|
36 |
-
.carousel_slider_column {
|
37 |
-
flex: 0 0 50%;
|
38 |
-
}
|
39 |
-
}
|
40 |
-
|
41 |
-
@media screen and (min-width: 1025px) {
|
42 |
-
.carousel_slider_column {
|
43 |
-
flex: 0 0 33.333333%;
|
44 |
-
}
|
45 |
-
}
|
46 |
-
|
47 |
-
@media screen and (min-width: 1400px) {
|
48 |
-
.carousel_slider_column {
|
49 |
-
flex: 0 0 25%;
|
50 |
-
}
|
51 |
-
}
|
52 |
-
</style>
|
53 |
-
<div class="wrap">
|
54 |
-
<h1 class="wp-heading">
|
55 |
-
<?php esc_html_e( 'Carousel Slider Documentation', 'carousel-slider' ); ?>
|
56 |
-
</h1>
|
57 |
-
<hr class="clear">
|
58 |
-
<div class="postbox">
|
59 |
-
<div class="inside">
|
60 |
-
<div class="carousel_slider_columns">
|
61 |
-
<div class="carousel_slider_column">
|
62 |
-
<div class="carousel_slider_iframe">
|
63 |
-
<iframe width="1280" height="720"
|
64 |
-
src="https://www.youtube.com/embed/ZzI1JhElrxc"
|
65 |
-
frameborder="0"
|
66 |
-
allowfullscreen></iframe>
|
67 |
-
</div>
|
68 |
-
<label><?php esc_html_e( 'Images Carousel', 'carousel-slider' ); ?></label>
|
69 |
-
<p class="description"><?php esc_html_e( 'Image carousel using gallery images', 'carousel-slider' ); ?></p>
|
70 |
-
</div>
|
71 |
-
<div class="carousel_slider_column">
|
72 |
-
<div class="carousel_slider_iframe">
|
73 |
-
<iframe width="1280" height="720"
|
74 |
-
src="https://www.youtube.com/embed/a7hqn1yNzwM" frameborder="0"
|
75 |
-
allowfullscreen></iframe>
|
76 |
-
</div>
|
77 |
-
<label><?php esc_html_e( 'Images Carousel', 'carousel-slider' ); ?></label>
|
78 |
-
<p class="description"><?php esc_html_e( 'Image carousel using custom URLs', 'carousel-slider' ); ?></p>
|
79 |
-
</div>
|
80 |
-
<div class="carousel_slider_column">
|
81 |
-
<div class="carousel_slider_iframe">
|
82 |
-
<iframe width="1280" height="720"
|
83 |
-
src="https://www.youtube.com/embed/ImJB946azy0" frameborder="0"
|
84 |
-
allowfullscreen></iframe>
|
85 |
-
</div>
|
86 |
-
<label><?php esc_html_e( 'Posts Carousel', 'carousel-slider' ); ?></label>
|
87 |
-
</div>
|
88 |
-
<div class="carousel_slider_column">
|
89 |
-
<div class="carousel_slider_iframe">
|
90 |
-
<iframe width="1280" height="720"
|
91 |
-
src="https://www.youtube.com/embed/yiAkvXyfakg" frameborder="0"
|
92 |
-
allowfullscreen></iframe>
|
93 |
-
</div>
|
94 |
-
<label><?php esc_html_e( 'WooCommerce Products Carousel', 'carousel-slider' ); ?></label>
|
95 |
-
</div>
|
96 |
-
<div class="carousel_slider_column">
|
97 |
-
<div class="carousel_slider_iframe">
|
98 |
-
<iframe width="1280" height="720"
|
99 |
-
src="https://www.youtube.com/embed/kYgp6wp27lM" frameborder="0"
|
100 |
-
allowfullscreen></iframe>
|
101 |
-
</div>
|
102 |
-
<label><?php esc_html_e( 'In Widget Areas', 'carousel-slider' ); ?></label>
|
103 |
-
</div>
|
104 |
-
<div class="carousel_slider_column">
|
105 |
-
<div class="carousel_slider_iframe">
|
106 |
-
<iframe width="1280" height="720"
|
107 |
-
src="https://www.youtube.com/embed/-OaYQZfr1RM" frameborder="0"
|
108 |
-
allowfullscreen></iframe>
|
109 |
-
</div>
|
110 |
-
<label><?php esc_html_e( 'With Page Builder by SiteOrigin', 'carousel-slider' ); ?></label>
|
111 |
-
</div>
|
112 |
-
<div class="carousel_slider_column">
|
113 |
-
<div class="carousel_slider_iframe">
|
114 |
-
<iframe width="1280" height="720"
|
115 |
-
src="https://www.youtube.com/embed/4LhDXH81whk" frameborder="0"
|
116 |
-
allowfullscreen></iframe>
|
117 |
-
</div>
|
118 |
-
<label><?php esc_html_e( 'With WPBakery Visual Composer', 'carousel-slider' ); ?></label>
|
119 |
-
</div>
|
120 |
-
</div>
|
121 |
-
</div>
|
122 |
-
</div>
|
123 |
-
<br class="clear">
|
124 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/templates/admin/general.php
DELETED
@@ -1,52 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
$this->form->image_sizes( array(
|
4 |
-
'id' => esc_html__( '_image_size', 'carousel-slider' ),
|
5 |
-
'name' => esc_html__( 'Carousel Image size', 'carousel-slider' ),
|
6 |
-
'desc' => sprintf(
|
7 |
-
esc_html__( 'Select "original uploaded image" for full size image or your desired image size for carousel image. You can change the default size for thumbnail, medium and large from %1$s Settings >> Media %2$s.', 'carousel-slider' ),
|
8 |
-
'<a target="_blank" href="' . get_admin_url() . 'options-media.php">', '</a>'
|
9 |
-
),
|
10 |
-
) );
|
11 |
-
$this->form->select( array(
|
12 |
-
'id' => '_lazy_load_image',
|
13 |
-
'name' => esc_html__( 'Lazy Loading', 'carousel-slider' ),
|
14 |
-
'desc' => esc_html__( 'Enable image with lazy loading.', 'carousel-slider' ),
|
15 |
-
'std' => carousel_slider_default_settings()->lazy_load_image,
|
16 |
-
'options' => array(
|
17 |
-
'on' => esc_html__( 'Enable' ),
|
18 |
-
'off' => esc_html__( 'Disable' ),
|
19 |
-
),
|
20 |
-
) );
|
21 |
-
$this->form->number( array(
|
22 |
-
'id' => '_margin_right',
|
23 |
-
'name' => esc_html__( 'Item Spacing.', 'carousel-slider' ),
|
24 |
-
'desc' => esc_html__( 'Space between two slide. Enter 10 for 10px', 'carousel-slider' ),
|
25 |
-
'std' => carousel_slider_default_settings()->margin_right
|
26 |
-
) );
|
27 |
-
$this->form->select( array(
|
28 |
-
'id' => '_inifnity_loop',
|
29 |
-
'name' => esc_html__( 'Infinity loop', 'carousel-slider' ),
|
30 |
-
'desc' => esc_html__( 'Enable or disable loop(circular) of carousel.', 'carousel-slider' ),
|
31 |
-
'std' => 'on',
|
32 |
-
'options' => array(
|
33 |
-
'on' => esc_html__( 'Enable' ),
|
34 |
-
'off' => esc_html__( 'Disable' ),
|
35 |
-
),
|
36 |
-
) );
|
37 |
-
$this->form->number( array(
|
38 |
-
'id' => '_stage_padding',
|
39 |
-
'name' => esc_html__( 'Stage Padding', 'carousel-slider' ),
|
40 |
-
'desc' => esc_html__( 'Add left and right padding on carousel slider stage wrapper.', 'carousel-slider' ),
|
41 |
-
'std' => '0',
|
42 |
-
) );
|
43 |
-
$this->form->select( array(
|
44 |
-
'id' => '_auto_width',
|
45 |
-
'name' => esc_html__( 'Auto Width', 'carousel-slider' ),
|
46 |
-
'desc' => esc_html__( 'Set item width according to its content width. Use width style on item to get the result you want. ', 'carousel-slider' ),
|
47 |
-
'std' => 'off',
|
48 |
-
'options' => array(
|
49 |
-
'on' => esc_html__( 'Enable' ),
|
50 |
-
'off' => esc_html__( 'Disable' ),
|
51 |
-
),
|
52 |
-
) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/templates/admin/hero-banner-slider.php
DELETED
@@ -1,270 +0,0 @@
|
|
1 |
-
<div data-id="open" id="section_content_carousel" class="shapla-toggle shapla-toggle--stroke"
|
2 |
-
style="display: <?php echo $slide_type != 'hero-banner-slider' ? 'none' : 'block'; ?>">
|
3 |
-
<span class="shapla-toggle-title">
|
4 |
-
<?php esc_html_e( 'Hero Banner Slider', 'carousel-slider' ); ?>
|
5 |
-
</span>
|
6 |
-
<div class="shapla-toggle-inner">
|
7 |
-
<div class="shapla-toggle-content">
|
8 |
-
<button class="button carousel-slider__add-slide" data-post-id="<?php echo $post->ID; ?>">Add Slide</button>
|
9 |
-
<div id="carouselSliderContentInside">
|
10 |
-
<?php
|
11 |
-
$content_sliders = get_post_meta( $post->ID, '_content_slider', true );
|
12 |
-
$content_settings = get_post_meta( $post->ID, '_content_slider_settings', true );
|
13 |
-
$_slide_height = isset( $content_settings['slide_height'] ) ? $content_settings['slide_height'] : '400px';
|
14 |
-
$_content_width = isset( $content_settings['content_width'] ) ? $content_settings['content_width'] : '850px';
|
15 |
-
$_slide_animation = isset( $content_settings['slide_animation'] ) ? $content_settings['slide_animation'] : 'fadeOut';
|
16 |
-
$_slide_padding = isset( $content_settings['slide_padding'] ) ? $content_settings['slide_padding'] : array();
|
17 |
-
|
18 |
-
|
19 |
-
// Get WordPress media upload URL
|
20 |
-
$upload_link = esc_url( get_upload_iframe_src( 'image', $post->ID ) );
|
21 |
-
$num_to_word = new Carousel_Slider_Number_To_Word;
|
22 |
-
|
23 |
-
if ( is_array( $content_sliders ) && count( $content_sliders ) > 0 ) {
|
24 |
-
$total_sliders = count( $content_sliders );
|
25 |
-
foreach ( $content_sliders as $slide_num => $content_slider ) {
|
26 |
-
$_to_word = str_replace( array( ' ', ' - ' ), '_', $num_to_word->convert( $slide_num ) );
|
27 |
-
|
28 |
-
|
29 |
-
$_all_bg_position = carousel_slider_background_position();
|
30 |
-
$_all_bg_size = carousel_slider_background_size();
|
31 |
-
// Slide Content
|
32 |
-
$_slide_heading = isset( $content_slider['slide_heading'] ) ? $content_slider['slide_heading'] : '';
|
33 |
-
$_slide_description = isset( $content_slider['slide_description'] ) ? $content_slider['slide_description'] : '';
|
34 |
-
// Slide Background
|
35 |
-
$_img_bg_position = ! empty( $content_slider['img_bg_position'] ) ? esc_attr( $content_slider['img_bg_position'] ) : 'center center';
|
36 |
-
$_img_bg_size = ! empty( $content_slider['img_bg_size'] ) ? esc_attr( $content_slider['img_bg_size'] ) : 'cover';
|
37 |
-
$_bg_color = ! empty( $content_slider['bg_color'] ) ? esc_attr( $content_slider['bg_color'] ) : '';
|
38 |
-
$_img_id = ! empty( $content_slider['img_id'] ) ? absint( $content_slider['img_id'] ) : 0;
|
39 |
-
$_img_src = wp_get_attachment_image_src( $_img_id, 'full' );
|
40 |
-
$_have_img = is_array( $_img_src );
|
41 |
-
// Slide Link
|
42 |
-
$_link_type = ! empty( $content_slider['link_type'] ) ? esc_attr( $content_slider['link_type'] ) : 'full';
|
43 |
-
$_slide_link = ! empty( $content_slider['slide_link'] ) ? esc_url( $content_slider['slide_link'] ) : '';
|
44 |
-
$_link_target = ! empty( $content_slider['link_target'] ) ? esc_attr( $content_slider['link_target'] ) : '_blank';
|
45 |
-
// Slide Style
|
46 |
-
$_content_alignment = ! empty( $content_slider['content_alignment'] ) ? esc_attr( $content_slider['content_alignment'] ) : 'left';
|
47 |
-
$_heading_font_size = ! empty( $content_slider['heading_font_size'] ) ? absint( $content_slider['heading_font_size'] ) : '60';
|
48 |
-
$_heading_gutter = ! empty( $content_slider['heading_gutter'] ) ? esc_attr( $content_slider['heading_gutter'] ) : '1rem';
|
49 |
-
$_heading_color = ! empty( $content_slider['heading_color'] ) ? esc_attr( $content_slider['heading_color'] ) : '#ffffff';
|
50 |
-
$_heading_bg_color = ! empty( $content_slider['heading_background_color'] ) ? esc_attr( $content_slider['heading_background_color'] ) : '';
|
51 |
-
$_desc_font_size = ! empty( $content_slider['description_font_size'] ) ? absint( $content_slider['description_font_size'] ) : '24';
|
52 |
-
$_description_gutter = ! empty( $content_slider['description_gutter'] ) ? esc_attr( $content_slider['description_gutter'] ) : '1rem';
|
53 |
-
$_desc_color = ! empty( $content_slider['description_color'] ) ? esc_attr( $content_slider['description_color'] ) : '#ffffff';
|
54 |
-
$_desc_bg_color = ! empty( $content_slider['description_background_color'] ) ? esc_attr( $content_slider['description_background_color'] ) : '';
|
55 |
-
|
56 |
-
$_btn_1_text = ! empty( $content_slider['button_one_text'] ) ? esc_attr( $content_slider['button_one_text'] ) : '';
|
57 |
-
$_btn_1_url = ! empty( $content_slider['button_one_url'] ) ? esc_attr( $content_slider['button_one_url'] ) : '';
|
58 |
-
$_btn_1_target = ! empty( $content_slider['button_one_target'] ) ? esc_attr( $content_slider['button_one_target'] ) : '_self';
|
59 |
-
$_btn_1_type = ! empty( $content_slider['button_one_type'] ) ? esc_attr( $content_slider['button_one_type'] ) : 'normal';
|
60 |
-
$_btn_1_size = ! empty( $content_slider['button_one_size'] ) ? esc_attr( $content_slider['button_one_size'] ) : 'medium';
|
61 |
-
$_btn_1_bg_color = ! empty( $content_slider['button_one_bg_color'] ) ? esc_attr( $content_slider['button_one_bg_color'] ) : '#00d1b2';
|
62 |
-
$_btn_1_color = ! empty( $content_slider['button_one_color'] ) ? esc_attr( $content_slider['button_one_color'] ) : '#ffffff';
|
63 |
-
$_btn_1_border_width = ! empty( $content_slider['button_one_border_width'] ) ? esc_attr( $content_slider['button_one_border_width'] ) : '0px';
|
64 |
-
$_btn_1_border_radius = ! empty( $content_slider['button_one_border_radius'] ) ? esc_attr( $content_slider['button_one_border_radius'] ) : '3px';
|
65 |
-
|
66 |
-
$_btn_2_text = ! empty( $content_slider['button_two_text'] ) ? esc_attr( $content_slider['button_two_text'] ) : '';
|
67 |
-
$_btn_2_url = ! empty( $content_slider['button_two_url'] ) ? esc_attr( $content_slider['button_two_url'] ) : '';
|
68 |
-
$_btn_2_target = ! empty( $content_slider['button_two_target'] ) ? esc_attr( $content_slider['button_two_target'] ) : '_self';
|
69 |
-
$_btn_2_type = ! empty( $content_slider['button_two_type'] ) ? esc_attr( $content_slider['button_two_type'] ) : 'normal';
|
70 |
-
$_btn_2_size = ! empty( $content_slider['button_two_size'] ) ? esc_attr( $content_slider['button_two_size'] ) : 'medium';
|
71 |
-
$_btn_2_bg_color = ! empty( $content_slider['button_two_bg_color'] ) ? esc_attr( $content_slider['button_two_bg_color'] ) : '#00d1b2';
|
72 |
-
$_btn_2_color = ! empty( $content_slider['button_two_color'] ) ? esc_attr( $content_slider['button_two_color'] ) : '#ffffff';
|
73 |
-
$_btn_2_border_width = ! empty( $content_slider['button_two_border_width'] ) ? esc_attr( $content_slider['button_two_border_width'] ) : '0px';
|
74 |
-
$_btn_2_border_radius = ! empty( $content_slider['button_two_border_radius'] ) ? esc_attr( $content_slider['button_two_border_radius'] ) : '3px';
|
75 |
-
|
76 |
-
|
77 |
-
// Canvas style
|
78 |
-
$canvas_style = 'background-repeat: no-repeat;';
|
79 |
-
$canvas_style .= 'background-position: ' . $_img_bg_position . ';';
|
80 |
-
$canvas_style .= 'background-size: ' . $_img_bg_size . ';';
|
81 |
-
$canvas_style .= 'background-color: ' . $_bg_color . ';';
|
82 |
-
if ( $_have_img ) {
|
83 |
-
$canvas_style .= 'background-image: url(' . $_img_src[0] . ')';
|
84 |
-
}
|
85 |
-
?>
|
86 |
-
<div class="shapla-toggle shapla-toggle--normal" data-id="closed">
|
87 |
-
<div class="shapla-toggle-title">
|
88 |
-
<?php printf( '%s %s', esc_html__( 'Slide', 'carousel-slider' ), $slide_num + 1 ); ?>
|
89 |
-
</div>
|
90 |
-
<div class="shapla-toggle-inner">
|
91 |
-
<div class="shapla-toggle-content">
|
92 |
-
|
93 |
-
<div class="carousel_slider__slide_actions">
|
94 |
-
|
95 |
-
<button class="button carousel_slider__delete_slide"
|
96 |
-
data-post-id="<?php echo $post->ID; ?>"
|
97 |
-
data-slide-pos="<?php echo $slide_num; ?>"
|
98 |
-
title="<?php esc_html_e( 'Delete current slide',
|
99 |
-
'carousel-slider' ); ?>"
|
100 |
-
>
|
101 |
-
<svg class="icon icon-trash" width="20" height="26">
|
102 |
-
<use xlink:href="#icon-trash"></use>
|
103 |
-
</svg>
|
104 |
-
</button>
|
105 |
-
|
106 |
-
<?php if ( $slide_num !== 0 ): ?>
|
107 |
-
<?php if ( $total_sliders > 2 && $slide_num > 1 ): ?>
|
108 |
-
<button class="button carousel_slider__move_top"
|
109 |
-
data-post-id="<?php echo $post->ID; ?>"
|
110 |
-
data-slide-pos="<?php echo $slide_num; ?>"
|
111 |
-
title="<?php esc_html_e( 'Move Slide to Top',
|
112 |
-
'carousel-slider' ); ?>"
|
113 |
-
>
|
114 |
-
<svg class="icon icon-trash" width="20" height="26">
|
115 |
-
<use xlink:href="#icon-angle-up-alt"></use>
|
116 |
-
</svg>
|
117 |
-
</button>
|
118 |
-
<?php endif; ?>
|
119 |
-
<button class="button carousel_slider__move_up"
|
120 |
-
data-post-id="<?php echo $post->ID; ?>"
|
121 |
-
data-slide-pos="<?php echo $slide_num; ?>"
|
122 |
-
title="<?php esc_html_e( 'Move Slide Up', 'carousel-slider' ); ?>"
|
123 |
-
>
|
124 |
-
<svg class="icon icon-trash" width="20" height="26">
|
125 |
-
<use xlink:href="#icon-angle-up"></use>
|
126 |
-
</svg>
|
127 |
-
</button>
|
128 |
-
<?php endif; ?>
|
129 |
-
|
130 |
-
<?php if ( $slide_num !== ( $total_sliders - 1 ) ): ?>
|
131 |
-
<button class="button carousel_slider__move_down"
|
132 |
-
data-post-id="<?php echo $post->ID; ?>"
|
133 |
-
data-slide-pos="<?php echo $slide_num; ?>"
|
134 |
-
title="<?php esc_html_e( 'Move Slide Down', 'carousel-slider' ); ?>"
|
135 |
-
>
|
136 |
-
<svg class="icon icon-trash" width="20" height="26">
|
137 |
-
<use xlink:href="#icon-angle-down"></use>
|
138 |
-
</svg>
|
139 |
-
</button>
|
140 |
-
<?php if ( $total_sliders > 2 && $slide_num < ( $total_sliders - 2 ) ): ?>
|
141 |
-
<button class="button carousel_slider__move_bottom"
|
142 |
-
data-post-id="<?php echo $post->ID; ?>"
|
143 |
-
data-slide-pos="<?php echo $slide_num; ?>"
|
144 |
-
title="<?php esc_html_e( 'Move Slide to Bottom',
|
145 |
-
'carousel-slider' ); ?>"
|
146 |
-
>
|
147 |
-
<svg class="icon icon-trash" width="20" height="26">
|
148 |
-
<use xlink:href="#icon-angle-down-alt"></use>
|
149 |
-
</svg>
|
150 |
-
</button>
|
151 |
-
<?php endif; ?>
|
152 |
-
<?php endif; ?>
|
153 |
-
|
154 |
-
</div>
|
155 |
-
<div class="clear" style="width: 100%; margin-bottom: 1rem; height: 1px;"></div>
|
156 |
-
|
157 |
-
<div class="shapla-section shapla-tabs shapla-tabs--stroke">
|
158 |
-
<div class="shapla-tab-inner">
|
159 |
-
|
160 |
-
<ul class="shapla-nav shapla-clearfix">
|
161 |
-
<li>
|
162 |
-
<a href="#carousel-slider-tab-background"><?php esc_html_e( 'Slide Background',
|
163 |
-
'carousel-slider' ); ?></a>
|
164 |
-
</li>
|
165 |
-
<li>
|
166 |
-
<a href="#carousel-slider-tab-content"><?php esc_html_e( 'Slide Content',
|
167 |
-
'carousel-slider' ); ?></a>
|
168 |
-
</li>
|
169 |
-
<li>
|
170 |
-
<a href="#carousel-slider-tab-link"><?php esc_html_e( 'Slide Link',
|
171 |
-
'carousel-slider' ); ?></a>
|
172 |
-
</li>
|
173 |
-
<li>
|
174 |
-
<a href="#carousel-slider-tab-style"><?php esc_html_e( 'Slide Style',
|
175 |
-
'carousel-slider' ); ?></a>
|
176 |
-
</li>
|
177 |
-
</ul>
|
178 |
-
|
179 |
-
<?php
|
180 |
-
include CAROUSEL_SLIDER_TEMPLATES . '/admin/parts/hero-banner/tab-content.php';
|
181 |
-
include CAROUSEL_SLIDER_TEMPLATES . '/admin/parts/hero-banner/tab-link.php';
|
182 |
-
include CAROUSEL_SLIDER_TEMPLATES . '/admin/parts/hero-banner/tab-background.php';
|
183 |
-
include CAROUSEL_SLIDER_TEMPLATES . '/admin/parts/hero-banner/tab-style.php';
|
184 |
-
?>
|
185 |
-
|
186 |
-
</div>
|
187 |
-
</div>
|
188 |
-
|
189 |
-
<div class="clear"></div>
|
190 |
-
</div>
|
191 |
-
</div>
|
192 |
-
</div>
|
193 |
-
<?php
|
194 |
-
}
|
195 |
-
}
|
196 |
-
?>
|
197 |
-
</div>
|
198 |
-
|
199 |
-
<div class="content_settings">
|
200 |
-
<div class="sp-input-group" id="field-_content_slide_height">
|
201 |
-
<div class="sp-input-label">
|
202 |
-
<label for="_content_slide_height"><?php esc_html_e( 'Slide Height',
|
203 |
-
'carousel-slider' ); ?></label>
|
204 |
-
<p class="sp-input-desc"><?php esc_html_e( 'Enter a px, em, rem or vh value for slide height. ex: 100vh',
|
205 |
-
'carousel-slider' ); ?></p>
|
206 |
-
</div>
|
207 |
-
<div class="sp-input-field">
|
208 |
-
<input type="text" name="content_settings[slide_height]" id="_content_slide_height"
|
209 |
-
class="sp-input-text" value="<?php echo $_slide_height; ?>">
|
210 |
-
</div>
|
211 |
-
</div>
|
212 |
-
<div class="sp-input-group" id="field-_content_slide_height">
|
213 |
-
<div class="sp-input-label">
|
214 |
-
<label for="_content_slide_height"><?php esc_html_e( 'Slider Content Max Width',
|
215 |
-
'carousel-slider' ); ?></label>
|
216 |
-
<p class="sp-input-desc"><?php esc_html_e( 'Enter a px, em, rem or % value for slide height. ex: 960px',
|
217 |
-
'carousel-slider' ); ?></p>
|
218 |
-
</div>
|
219 |
-
<div class="sp-input-field">
|
220 |
-
<input type="text" name="content_settings[content_width]" id="_content_content_width"
|
221 |
-
class="sp-input-text" value="<?php echo $_content_width; ?>">
|
222 |
-
</div>
|
223 |
-
</div>
|
224 |
-
<div class="sp-input-group" id="field-_content_slide_padding">
|
225 |
-
<div class="sp-input-label">
|
226 |
-
<label for="_content_slide_padding"><?php esc_html_e( 'Slider Padding',
|
227 |
-
'carousel-slider' ); ?></label>
|
228 |
-
<p class="sp-input-desc"><?php esc_html_e( 'Enter padding around slide in px, em or rem.',
|
229 |
-
'carousel-slider' ); ?></p>
|
230 |
-
</div>
|
231 |
-
<div class="sp-input-field">
|
232 |
-
<span class="dashicons dashicons-arrow-up-alt"></span>
|
233 |
-
<input name="content_settings[slide_padding][top]" class="spacing-text" placeholder="Top"
|
234 |
-
value="<?php echo isset( $_slide_padding['top'] ) ? $_slide_padding['top'] : '1rem'; ?>">
|
235 |
-
|
236 |
-
<span class="dashicons dashicons-arrow-right-alt"></span>
|
237 |
-
<input name="content_settings[slide_padding][right]" class="spacing-text" placeholder="Right"
|
238 |
-
value="<?php echo isset( $_slide_padding['right'] ) ? $_slide_padding['right'] : '3rem'; ?>">
|
239 |
-
|
240 |
-
<span class="dashicons dashicons-arrow-down-alt"></span>
|
241 |
-
<input name="content_settings[slide_padding][bottom]" class="spacing-text" placeholder="Bottom"
|
242 |
-
value="<?php echo isset( $_slide_padding['bottom'] ) ? $_slide_padding['bottom'] : '1rem'; ?>">
|
243 |
-
|
244 |
-
<span class="dashicons dashicons-arrow-left-alt"></span>
|
245 |
-
<input name="content_settings[slide_padding][left]" class="spacing-text" placeholder="Left"
|
246 |
-
value="<?php echo isset( $_slide_padding['left'] ) ? $_slide_padding['left'] : '3rem'; ?>">
|
247 |
-
</div>
|
248 |
-
</div>
|
249 |
-
</div>
|
250 |
-
</div>
|
251 |
-
</div>
|
252 |
-
</div>
|
253 |
-
|
254 |
-
<svg width="1" height="1" style="display: none;">
|
255 |
-
<symbol id="icon-trash" viewBox="0 0 20 20">
|
256 |
-
<path d="M12 4h3c0.55 0 1 0.45 1 1v1h-13v-1c0-0.55 0.45-1 1-1h3c0.23-1.14 1.29-2 2.5-2s2.27 0.86 2.5 2zM8 4h3c-0.21-0.58-0.85-1-1.5-1s-1.29 0.42-1.5 1zM4 7h11v10c0 0.55-0.45 1-1 1h-9c-0.55 0-1-0.45-1-1v-10zM7 16v-7h-1v7h1zM10 16v-7h-1v7h1zM13 16v-7h-1v7h1z"></path>
|
257 |
-
</symbol>
|
258 |
-
<symbol id="icon-angle-down" viewBox="0 0 20 20">
|
259 |
-
<path d="M5 6l5 5 5-5 2 1-7 7-7-7z"></path>
|
260 |
-
</symbol>
|
261 |
-
<symbol id="icon-angle-up" viewBox="0 0 20 20">
|
262 |
-
<path d="M15 14l-5-5-5 5-2-1 7-7 7 7z"></path>
|
263 |
-
</symbol>
|
264 |
-
<symbol id="icon-angle-down-alt" viewBox="0 0 20 20">
|
265 |
-
<path d="M9 2h2v12l4-4 2 1-7 7-7-7 2-1 4 4v-12z"></path>
|
266 |
-
</symbol>
|
267 |
-
<symbol id="icon-angle-up-alt" viewBox="0 0 20 20">
|
268 |
-
<path d="M11 18h-2v-12l-4 4-2-1 7-7 7 7-2 1-4-4v12z"></path>
|
269 |
-
</symbol>
|
270 |
-
</svg>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/templates/admin/images-media.php
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
<div data-id="open" id="section_images_settings" class="shapla-toggle shapla-toggle--stroke"
|
2 |
-
style="display: <?php echo $slide_type != 'image-carousel' ? 'none' : 'block'; ?>">
|
3 |
-
<span class="shapla-toggle-title">
|
4 |
-
<?php esc_html_e( 'Media Images', 'carousel-slider' ); ?>
|
5 |
-
</span>
|
6 |
-
<div class="shapla-toggle-inner">
|
7 |
-
<div class="shapla-toggle-content">
|
8 |
-
<?php
|
9 |
-
$this->form->images_gallery( array(
|
10 |
-
'id' => '_wpdh_image_ids',
|
11 |
-
'name' => esc_html__( 'Carousel Images', 'carousel-slider' ),
|
12 |
-
'desc' => esc_html__( 'Choose carousel images from media library.', 'carousel-slider' ),
|
13 |
-
) );
|
14 |
-
?>
|
15 |
-
</div>
|
16 |
-
</div>
|
17 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/templates/admin/images-settings.php
DELETED
@@ -1,44 +0,0 @@
|
|
1 |
-
<?php $img_settings = ( $slide_type == 'image-carousel' ) || ( $slide_type == 'image-carousel-url' ) ? true : false; ?>
|
2 |
-
<div data-id="open" id="section_images_general_settings" class="shapla-toggle shapla-toggle--stroke"
|
3 |
-
style="display: <?php echo ! $img_settings ? 'none' : 'block'; ?>">
|
4 |
-
<span class="shapla-toggle-title">
|
5 |
-
<?php esc_html_e( 'Image Carousel Settings', 'carousel-slider' ); ?>
|
6 |
-
</span>
|
7 |
-
<div class="shapla-toggle-inner">
|
8 |
-
<div class="shapla-toggle-content">
|
9 |
-
<?php
|
10 |
-
$this->form->checkbox( array(
|
11 |
-
'id' => '_show_attachment_title',
|
12 |
-
'name' => esc_html__( 'Show Image Title', 'carousel-slider' ),
|
13 |
-
'label' => esc_html__( 'Show Image Title', 'carousel-slider' ),
|
14 |
-
'desc' => esc_html__( 'Check to show title below image. Only works with image carousel.', 'carousel-slider' ),
|
15 |
-
'std' => 'off'
|
16 |
-
) );
|
17 |
-
$this->form->checkbox( array(
|
18 |
-
'id' => '_show_attachment_caption',
|
19 |
-
'name' => esc_html__( 'Show Image Caption', 'carousel-slider' ),
|
20 |
-
'label' => esc_html__( 'Show Image Caption', 'carousel-slider' ),
|
21 |
-
'desc' => esc_html__( 'Check to show caption below image. Only works with image carousel.', 'carousel-slider' ),
|
22 |
-
'std' => 'off'
|
23 |
-
) );
|
24 |
-
$this->form->select( array(
|
25 |
-
'id' => '_image_target',
|
26 |
-
'name' => esc_html__( 'Image Target', 'carousel-slider' ),
|
27 |
-
'desc' => esc_html__( 'Choose where to open the linked image.', 'carousel-slider' ),
|
28 |
-
'std' => '_self',
|
29 |
-
'options' => array(
|
30 |
-
'_self' => esc_html__( 'Open in the same frame as it was clicked', 'carousel-slider' ),
|
31 |
-
'_blank' => esc_html__( 'Open in a new window or tab', 'carousel-slider' ),
|
32 |
-
),
|
33 |
-
) );
|
34 |
-
$this->form->checkbox( array(
|
35 |
-
'id' => '_image_lightbox',
|
36 |
-
'name' => esc_html__( 'Show Lightbox Gallery', 'carousel-slider' ),
|
37 |
-
'label' => esc_html__( 'Show Lightbox Gallery', 'carousel-slider' ),
|
38 |
-
'desc' => esc_html__( 'Check to show lightbox gallery.', 'carousel-slider' ),
|
39 |
-
'std' => 'off'
|
40 |
-
) );
|
41 |
-
?>
|
42 |
-
</div>
|
43 |
-
</div>
|
44 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/templates/admin/images-url.php
DELETED
@@ -1,104 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$_images_urls = get_post_meta( $post->ID, '_images_urls', true );
|
3 |
-
$btn_text = $_images_urls ? 'Edit URLs' : 'Add URLs';
|
4 |
-
?>
|
5 |
-
<div data-id="open" id="section_url_images_settings" class="shapla-toggle shapla-toggle--stroke"
|
6 |
-
style="display: <?php echo $slide_type != 'image-carousel-url' ? 'none' : 'block'; ?>">
|
7 |
-
<span class="shapla-toggle-title">
|
8 |
-
<?php esc_html_e( 'URL Images', 'carousel-slider' ); ?>
|
9 |
-
</span>
|
10 |
-
<div class="shapla-toggle-inner">
|
11 |
-
<div class="shapla-toggle-content">
|
12 |
-
<?php
|
13 |
-
$this->form->images_url( array(
|
14 |
-
'id' => '_images_urls',
|
15 |
-
'name' => esc_html__( 'Images URLs', 'carousel-slider' ),
|
16 |
-
'desc' => esc_html__( 'Enter external images URLs.', 'carousel-slider' ),
|
17 |
-
) );
|
18 |
-
?>
|
19 |
-
</div>
|
20 |
-
</div>
|
21 |
-
</div>
|
22 |
-
|
23 |
-
<!-- The Modal -->
|
24 |
-
<div id="CarouselSliderModal" class="carousel_slider-modal">
|
25 |
-
|
26 |
-
<!-- Modal content -->
|
27 |
-
<div class="carousel_slider-modal-content">
|
28 |
-
<div class="carousel_slider-modal-header">
|
29 |
-
<span class="carousel_slider-close">×</span>
|
30 |
-
<?php esc_html_e( 'Image Carousel - from URL', 'carousel-slider' ); ?>
|
31 |
-
</div>
|
32 |
-
<div class="carousel_slider-modal-body">
|
33 |
-
<div id="carousel_slider_form" class="carousel_slider-form">
|
34 |
-
<?php if ( is_array( $_images_urls ) ): foreach ( $_images_urls as $image ): ?>
|
35 |
-
<div class="carousel_slider-fields">
|
36 |
-
<label class="setting">
|
37 |
-
<span class="name"><?php esc_html_e( 'URL', 'carousel-slider' ); ?></span>
|
38 |
-
<input type="url" name="_images_urls[url][]" value="<?php echo $image['url']; ?>"
|
39 |
-
autocomplete="off">
|
40 |
-
</label>
|
41 |
-
<label class="setting">
|
42 |
-
<span class="name"><?php esc_html_e( 'Title', 'carousel-slider' ); ?></span>
|
43 |
-
<input type="text" name="_images_urls[title][]" value="<?php echo $image['title']; ?>"
|
44 |
-
autocomplete="off">
|
45 |
-
</label>
|
46 |
-
<label class="setting">
|
47 |
-
<span class="name"><?php esc_html_e( 'Caption', 'carousel-slider' ); ?></span>
|
48 |
-
<textarea name="_images_urls[caption][]"><?php echo $image['caption']; ?></textarea>
|
49 |
-
</label>
|
50 |
-
<label class="setting">
|
51 |
-
<span class="name"><?php esc_html_e( 'Alt Text', 'carousel-slider' ); ?></span>
|
52 |
-
<input type="text" name="_images_urls[alt][]" value="<?php echo $image['alt']; ?>"
|
53 |
-
autocomplete="off">
|
54 |
-
</label>
|
55 |
-
<label class="setting">
|
56 |
-
<span class="name"><?php esc_html_e( 'Link To URL', 'carousel-slider' ); ?></span>
|
57 |
-
<input type="text" name="_images_urls[link_url][]" value="<?php echo $image['link_url']; ?>"
|
58 |
-
autocomplete="off">
|
59 |
-
</label>
|
60 |
-
<div class="actions">
|
61 |
-
<span><span class="dashicons dashicons-move"></span></span>
|
62 |
-
<span class="add_row"><span class="dashicons dashicons-plus-alt"></span></span>
|
63 |
-
<span class="delete_row"><span class="dashicons dashicons-trash"></span></span>
|
64 |
-
</div>
|
65 |
-
</div>
|
66 |
-
<?php endforeach; else: ?>
|
67 |
-
<div class="carousel_slider-fields">
|
68 |
-
<label class="setting">
|
69 |
-
<span class="name"><?php esc_html_e( 'URL', 'carousel-slider' ); ?></span>
|
70 |
-
<input type="url" name="_images_urls[url][]" value="">
|
71 |
-
</label>
|
72 |
-
<label class="setting">
|
73 |
-
<span class="name"><?php esc_html_e( 'Title', 'carousel-slider' ); ?></span>
|
74 |
-
<input type="text" name="_images_urls[title][]" value="">
|
75 |
-
</label>
|
76 |
-
<label class="setting">
|
77 |
-
<span class="name"><?php esc_html_e( 'Caption', 'carousel-slider' ); ?></span>
|
78 |
-
<textarea name="_images_urls[caption][]"></textarea>
|
79 |
-
</label>
|
80 |
-
<label class="setting">
|
81 |
-
<span class="name"><?php esc_html_e( 'Alt Text', 'carousel-slider' ); ?></span>
|
82 |
-
<input type="text" name="_images_urls[alt][]" value="">
|
83 |
-
</label>
|
84 |
-
<label class="setting">
|
85 |
-
<span class="name"><?php esc_html_e( 'Link To URL', 'carousel-slider' ); ?></span>
|
86 |
-
<input type="text" name="_images_urls[link_url][]" value="">
|
87 |
-
</label>
|
88 |
-
<div class="actions">
|
89 |
-
<span><span class="dashicons dashicons-move"></span></span>
|
90 |
-
<span class="add_row"><span class="dashicons dashicons-plus-alt"></span></span>
|
91 |
-
<span class="delete_row"><span class="dashicons dashicons-trash"></span></span>
|
92 |
-
</div>
|
93 |
-
</div>
|
94 |
-
<?php endif; ?>
|
95 |
-
</div>
|
96 |
-
</div>
|
97 |
-
<div class="carousel_slider-modal-footer">
|
98 |
-
<button class="button button-primary" id="save_carousel_images_urls">
|
99 |
-
<?php esc_html_e( 'Save', 'carousel-slider' ); ?>
|
100 |
-
</button>
|
101 |
-
</div>
|
102 |
-
</div>
|
103 |
-
|
104 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/templates/admin/index.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// Code is Poetry
|
|
|
|
trunk/templates/admin/navigation.php
DELETED
@@ -1,36 +0,0 @@
|
|
1 |
-
<div data-id="open" class="shapla-toggle shapla-toggle--stroke">
|
2 |
-
<span class="shapla-toggle-title">
|
3 |
-
<?php esc_html_e( 'Navigation Settings', 'carousel-slider' ); ?>
|
4 |
-
</span>
|
5 |
-
<div class="shapla-toggle-inner">
|
6 |
-
<div class="shapla-toggle-content">
|
7 |
-
<?php
|
8 |
-
$this->form->checkbox( array(
|
9 |
-
'id' => '_nav_button',
|
10 |
-
'name' => esc_html__( 'Navigation', 'carousel-slider' ),
|
11 |
-
'label' => esc_html__( 'Navigation', 'carousel-slider' ),
|
12 |
-
'desc' => esc_html__( 'Check to show next/prev icons.', 'carousel-slider' ),
|
13 |
-
) );
|
14 |
-
$this->form->checkbox( array(
|
15 |
-
'id' => '_dot_nav',
|
16 |
-
'name' => esc_html__( 'Dots', 'carousel-slider' ),
|
17 |
-
'label' => esc_html__( 'Dots', 'carousel-slider' ),
|
18 |
-
'desc' => esc_html__( 'Check to show dots navigation.', 'carousel-slider' ),
|
19 |
-
) );
|
20 |
-
$this->form->color( array(
|
21 |
-
'id' => '_nav_color',
|
22 |
-
'type' => 'color',
|
23 |
-
'name' => esc_html__( 'Navigation & Dots Color ', 'carousel-slider' ),
|
24 |
-
'desc' => esc_html__( 'Pick a color for navigation and dots.', 'carousel-slider' ),
|
25 |
-
'std' => '#f1f1f1'
|
26 |
-
) );
|
27 |
-
$this->form->color( array(
|
28 |
-
'id' => '_nav_active_color',
|
29 |
-
'name' => esc_html__( 'Navigation & Dots Color: Hover & Active', 'carousel-slider' ),
|
30 |
-
'desc' => esc_html__( 'Pick a color for navigation and dots for active and hover effect.', 'carousel-slider' ),
|
31 |
-
'std' => '#4caf50'
|
32 |
-
) );
|
33 |
-
?>
|
34 |
-
</div>
|
35 |
-
</div>
|
36 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/templates/admin/parts/hero-banner/tab-background.php
DELETED
@@ -1,64 +0,0 @@
|
|
1 |
-
<div id="carousel-slider-tab-background" class="shapla-tab tab-background">
|
2 |
-
<div class="slide_bg_wrapper">
|
3 |
-
<div class="slide-media-left">
|
4 |
-
<div class="slide_thumb">
|
5 |
-
<div class="content_slide_canvas"
|
6 |
-
style="<?php echo $canvas_style; ?>"></div>
|
7 |
-
<span class="delete-bg-img<?php echo ! $_have_img ? ' hidden' : ''; ?>"
|
8 |
-
title="<?php esc_html_e( 'Delete the background image for this slide', 'carousel-slider' ); ?>">×</span>
|
9 |
-
</div>
|
10 |
-
</div>
|
11 |
-
<div class="slide-media-right">
|
12 |
-
|
13 |
-
<div class="slide_image_settings_line">
|
14 |
-
<a href="<?php echo esc_url( $upload_link ); ?>"
|
15 |
-
data-title="<?php esc_html_e( 'Select or Upload Slide Background Image', 'carousel-slider' ); ?>"
|
16 |
-
data-button-text="<?php esc_html_e( 'Set Background Image', 'carousel-slider' ); ?>"
|
17 |
-
class="button slide_image_add"><?php esc_html_e( 'Set Background Image', 'carousel-slider' ); ?></a>
|
18 |
-
<input type="hidden" class="background_image_id"
|
19 |
-
name="carousel_slider_content[<?php echo $slide_num; ?>][img_id]"
|
20 |
-
value="<?php echo $_img_id; ?>">
|
21 |
-
</div>
|
22 |
-
|
23 |
-
<div class="slide_image_settings_line">
|
24 |
-
<span><?php esc_html_e( 'Background Position:', 'carousel-slider' ); ?></span>
|
25 |
-
<select class="background_image_position"
|
26 |
-
name="carousel_slider_content[<?php echo $slide_num; ?>][img_bg_position]">
|
27 |
-
<?php
|
28 |
-
foreach ( $_all_bg_position as $key => $label ) {
|
29 |
-
$selected = $key == $_img_bg_position ? 'selected' : '';
|
30 |
-
printf(
|
31 |
-
'<option value="%s" %s>%s</option>',
|
32 |
-
$key,
|
33 |
-
$selected,
|
34 |
-
$label
|
35 |
-
);
|
36 |
-
}
|
37 |
-
?>
|
38 |
-
</select>
|
39 |
-
</div>
|
40 |
-
|
41 |
-
<div class="slide_image_settings_line">
|
42 |
-
<span><?php esc_html_e( 'Background Size:', 'carousel-slider' ); ?></span>
|
43 |
-
<select class="background_image_size"
|
44 |
-
name="carousel_slider_content[<?php echo $slide_num; ?>][img_bg_size]">
|
45 |
-
<?php
|
46 |
-
foreach ( $_all_bg_size as $key => $label ) {
|
47 |
-
$selected = $key == $_img_bg_size ? 'selected' : '';
|
48 |
-
printf( '<option value="%s" %s>%s</option>', $key, $selected, $label );
|
49 |
-
}
|
50 |
-
?>
|
51 |
-
</select>
|
52 |
-
</div>
|
53 |
-
|
54 |
-
<div class="slide_image_settings_line">
|
55 |
-
<span><?php esc_html_e( 'Background Color:', 'carousel-slider' ); ?></span>
|
56 |
-
<input type="text" name="carousel_slider_content[<?php echo $slide_num; ?>][bg_color]"
|
57 |
-
class="slide-color-picker" value="<?php echo $_bg_color; ?>"
|
58 |
-
data-alpha="true" data-default-color="rgba(255,255,255,0.5)">
|
59 |
-
</div>
|
60 |
-
</div>
|
61 |
-
|
62 |
-
</div>
|
63 |
-
</div>
|
64 |
-
<!-- .tab-background -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/templates/admin/parts/hero-banner/tab-content.php
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
<div id="carousel-slider-tab-content" class="shapla-tab tab-content">
|
2 |
-
|
3 |
-
<div class="sp-input-group" id="field-_slide_heading">
|
4 |
-
<div class="sp-input-label">
|
5 |
-
<label for="_slide_heading"><?php esc_html_e( 'Slide Heading', 'carousel-slider' ); ?></label>
|
6 |
-
<p class="sp-input-desc"><?php esc_html_e( 'Enter the heading for your slide. This field can take HTML markup.', 'carousel-slider' ); ?></p>
|
7 |
-
</div>
|
8 |
-
<div class="sp-input-field">
|
9 |
-
<textarea name="carousel_slider_content[<?php echo $slide_num; ?>][slide_heading]"
|
10 |
-
id="_slide_heading" cols="30" rows="3"
|
11 |
-
class="regular-text"><?php echo esc_textarea( $_slide_heading ); ?></textarea>
|
12 |
-
</div>
|
13 |
-
</div>
|
14 |
-
|
15 |
-
<div class="sp-input-group" id="field-_slide_description">
|
16 |
-
<div class="sp-input-label">
|
17 |
-
<label for="_slide_description"><?php esc_html_e( 'Slide Description', 'carousel-slider' ); ?></label>
|
18 |
-
<p class="sp-input-desc"><?php esc_html_e( 'Enter the description for your slide. This field can take HTML markup.', 'carousel-slider' ); ?></p>
|
19 |
-
</div>
|
20 |
-
<div class="sp-input-field">
|
21 |
-
<textarea name="carousel_slider_content[<?php echo $slide_num; ?>][slide_description]"
|
22 |
-
id="_slide_description" cols="30" rows="5"
|
23 |
-
class="regular-text"><?php echo esc_textarea( $_slide_description ); ?></textarea>
|
24 |
-
</div>
|
25 |
-
</div><!-- Slide Description -->
|
26 |
-
|
27 |
-
</div>
|
28 |
-
<!-- .tab-content -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/templates/admin/parts/hero-banner/tab-link-button-one.php
DELETED
@@ -1,118 +0,0 @@
|
|
1 |
-
<div data-id="closed" id="content_carousel_button_one" class="shapla-toggle shapla-toggle--stroke">
|
2 |
-
<span class="shapla-toggle-title">
|
3 |
-
<?php esc_html_e( 'Button #1', 'carousel-slider' ); ?>
|
4 |
-
</span>
|
5 |
-
<div class="shapla-toggle-inner">
|
6 |
-
<div class="shapla-toggle-content">
|
7 |
-
|
8 |
-
<div class="sp-input-group" id="field-button_one_text">
|
9 |
-
<div class="sp-input-label">
|
10 |
-
<label for="button_one_text"><?php esc_html_e( 'Button Text', 'carousel-slider' ); ?></label>
|
11 |
-
<p class="sp-input-desc"><?php esc_html_e( 'Add the button text', 'carousel-slider' ); ?></p>
|
12 |
-
</div>
|
13 |
-
<div class="sp-input-field">
|
14 |
-
<input name="carousel_slider_content[<?php echo $slide_num; ?>][button_one_text]"
|
15 |
-
id="button_one_text" class="sp-input-text" value="<?php echo $_btn_1_text; ?>">
|
16 |
-
</div>
|
17 |
-
</div><!-- Button Text -->
|
18 |
-
|
19 |
-
<div class="sp-input-group" id="field-button_one_url">
|
20 |
-
<div class="sp-input-label">
|
21 |
-
<label for="button_one_url"><?php esc_html_e( 'Button URL', 'carousel-slider' ); ?></label>
|
22 |
-
<p class="sp-input-desc"><?php esc_html_e( 'Add the button url e.g. http://example.com', 'carousel-slider' ); ?></p>
|
23 |
-
</div>
|
24 |
-
<div class="sp-input-field">
|
25 |
-
<input name="carousel_slider_content[<?php echo $slide_num; ?>][button_one_url]"
|
26 |
-
id="button_one_url" class="sp-input-text" value="<?php echo $_btn_1_url; ?>">
|
27 |
-
</div>
|
28 |
-
</div><!-- Button URL -->
|
29 |
-
|
30 |
-
<div class="sp-input-group" id="field-button_one_target">
|
31 |
-
<div class="sp-input-label">
|
32 |
-
<label for="button_one_target"><?php esc_html_e( 'Open Button Link In', 'carousel-slider' ); ?></label>
|
33 |
-
</div>
|
34 |
-
<div class="sp-input-field">
|
35 |
-
<select name="carousel_slider_content[<?php echo $slide_num; ?>][button_one_target]"
|
36 |
-
id="button_one_target" class="sp-input-text">
|
37 |
-
<option value="_blank" <?php selected( $_btn_1_target, '_blank' ); ?>><?php esc_html_e( 'New Window', 'carousel-slider' ); ?></option>
|
38 |
-
<option value="_self" <?php selected( $_btn_1_target, '_self' ); ?>><?php esc_html_e( 'Same window', 'carousel-slider' ); ?></option>
|
39 |
-
</select>
|
40 |
-
</div>
|
41 |
-
</div><!-- Open Button Link In -->
|
42 |
-
|
43 |
-
<div class="sp-input-group" id="field-button_one_target">
|
44 |
-
<div class="sp-input-label">
|
45 |
-
<label for="button_one_type"><?php esc_html_e( 'Button Type', 'carousel-slider' ); ?></label>
|
46 |
-
</div>
|
47 |
-
<div class="sp-input-field">
|
48 |
-
<select name="carousel_slider_content[<?php echo $slide_num; ?>][button_one_type]"
|
49 |
-
id="button_one_target" class="sp-input-text">
|
50 |
-
<option value="normal" <?php selected( $_btn_1_type, 'normal' ); ?>><?php esc_html_e( 'Normal', 'carousel-slider' ); ?></option>
|
51 |
-
<option value="stroke" <?php selected( $_btn_1_type, 'stroke' ); ?>><?php esc_html_e( 'Stroke', 'carousel-slider' ); ?></option>
|
52 |
-
</select>
|
53 |
-
</div>
|
54 |
-
</div><!-- Button Type -->
|
55 |
-
|
56 |
-
<div class="sp-input-group" id="field-button_one_size">
|
57 |
-
<div class="sp-input-label">
|
58 |
-
<label for="button_one_type"><?php esc_html_e( 'Button Size', 'carousel-slider' ); ?></label>
|
59 |
-
</div>
|
60 |
-
<div class="sp-input-field">
|
61 |
-
<select name="carousel_slider_content[<?php echo $slide_num; ?>][button_one_size]"
|
62 |
-
id="button_one_size" class="sp-input-text">
|
63 |
-
<option value="large" <?php selected( $_btn_1_size, 'large' ); ?>><?php esc_html_e( 'Large', 'carousel-slider' ); ?></option>
|
64 |
-
<option value="medium" <?php selected( $_btn_1_size, 'medium' ); ?>><?php esc_html_e( 'Medium', 'carousel-slider' ); ?></option>
|
65 |
-
<option value="small" <?php selected( $_btn_1_size, 'small' ); ?>><?php esc_html_e( 'Small', 'carousel-slider' ); ?></option>
|
66 |
-
</select>
|
67 |
-
</div>
|
68 |
-
</div><!-- Button Size -->
|
69 |
-
|
70 |
-
<div class="sp-input-group" id="field-button_one_border_width">
|
71 |
-
<div class="sp-input-label">
|
72 |
-
<label for="button_one_border_width"><?php esc_html_e( 'Border Width', 'carousel-slider' ); ?></label>
|
73 |
-
<p class="sp-input-desc"><?php esc_html_e( 'Enter border width in pixel. e.g. 2px', 'carousel-slider' ); ?></p>
|
74 |
-
</div>
|
75 |
-
<div class="sp-input-field">
|
76 |
-
<input name="carousel_slider_content[<?php echo $slide_num; ?>][button_one_border_width]"
|
77 |
-
id="button_one_border_width" class="sp-input-text"
|
78 |
-
value="<?php echo $_btn_1_border_width; ?>">
|
79 |
-
</div>
|
80 |
-
</div><!-- Border Width -->
|
81 |
-
|
82 |
-
<div class="sp-input-group" id="field-button_one_border_radius">
|
83 |
-
<div class="sp-input-label">
|
84 |
-
<label for="button_one_border_radius"><?php esc_html_e( 'Border Radius', 'carousel-slider' ); ?></label>
|
85 |
-
<p class="sp-input-desc"><?php esc_html_e( 'Enter border radius in pixel. e.g. 3px', 'carousel-slider' ); ?></p>
|
86 |
-
</div>
|
87 |
-
<div class="sp-input-field">
|
88 |
-
<input name="carousel_slider_content[<?php echo $slide_num; ?>][button_one_border_radius]"
|
89 |
-
id="button_one_border_radius" class="sp-input-text"
|
90 |
-
value="<?php echo $_btn_1_border_radius; ?>">
|
91 |
-
</div>
|
92 |
-
</div><!-- Border Radius -->
|
93 |
-
|
94 |
-
<div class="sp-input-group" id="field-button_one_bg_color">
|
95 |
-
<div class="sp-input-label">
|
96 |
-
<label for="button_one_bg_color"><?php esc_html_e( 'Button Color', 'carousel-slider' ); ?></label>
|
97 |
-
</div>
|
98 |
-
<div class="sp-input-field">
|
99 |
-
<input id="button_one_bg_color" class="color-picker" value="<?php echo $_btn_1_bg_color; ?>"
|
100 |
-
name="carousel_slider_content[<?php echo $slide_num; ?>][button_one_bg_color]"
|
101 |
-
data-alpha="true" data-default-color="#00d1b2">
|
102 |
-
</div>
|
103 |
-
</div><!-- Button Color -->
|
104 |
-
|
105 |
-
<div class="sp-input-group" id="field-button_one_color">
|
106 |
-
<div class="sp-input-label">
|
107 |
-
<label for="button_one_color"><?php esc_html_e( 'Button Text Color', 'carousel-slider' ); ?></label>
|
108 |
-
</div>
|
109 |
-
<div class="sp-input-field">
|
110 |
-
<input id="button_one_color" class="color-picker" value="<?php echo $_btn_1_color; ?>"
|
111 |
-
name="carousel_slider_content[<?php echo $slide_num; ?>][button_one_color]"
|
112 |
-
data-alpha="true" data-default-color="#ffffff">
|
113 |
-
</div>
|
114 |
-
</div><!-- Button Text Color -->
|
115 |
-
|
116 |
-
</div>
|
117 |
-
</div>
|
118 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/templates/admin/parts/hero-banner/tab-link-button-two.php
DELETED
@@ -1,119 +0,0 @@
|
|
1 |
-
<div data-id="closed" id="content_carousel_button_one" class="shapla-toggle shapla-toggle--stroke">
|
2 |
-
<span class="shapla-toggle-title">
|
3 |
-
<?php esc_html_e( 'Button #2', 'carousel-slider' ); ?>
|
4 |
-
</span>
|
5 |
-
<div class="shapla-toggle-inner">
|
6 |
-
<div class="shapla-toggle-content">
|
7 |
-
|
8 |
-
<div class="sp-input-group" id="field-button_two_text">
|
9 |
-
<div class="sp-input-label">
|
10 |
-
<label for="button_two_text"><?php esc_html_e( 'Button Text', 'carousel-slider' ); ?></label>
|
11 |
-
<p class="sp-input-desc"><?php esc_html_e( 'Add the button text', 'carousel-slider' ); ?></p>
|
12 |
-
</div>
|
13 |
-
<div class="sp-input-field">
|
14 |
-
<input name="carousel_slider_content[<?php echo $slide_num; ?>][button_two_text]"
|
15 |
-
id="button_two_text" class="sp-input-text" value="<?php echo $_btn_2_text; ?>">
|
16 |
-
</div>
|
17 |
-
</div><!-- Button Text -->
|
18 |
-
|
19 |
-
<div class="sp-input-group" id="field-button_two_url">
|
20 |
-
<div class="sp-input-label">
|
21 |
-
<label for="button_two_url"><?php esc_html_e( 'Button URL', 'carousel-slider' ); ?></label>
|
22 |
-
<p class="sp-input-desc"><?php esc_html_e( 'Add the button url e.g. http://example.com', 'carousel-slider' ); ?></p>
|
23 |
-
</div>
|
24 |
-
<div class="sp-input-field">
|
25 |
-
<input name="carousel_slider_content[<?php echo $slide_num; ?>][button_two_url]"
|
26 |
-
id="button_two_url" class="sp-input-text" value="<?php echo $_btn_2_url; ?>">
|
27 |
-
</div>
|
28 |
-
</div><!-- Button URL -->
|
29 |
-
|
30 |
-
<div class="sp-input-group" id="field-button_two_target">
|
31 |
-
<div class="sp-input-label">
|
32 |
-
<label for="button_two_target"><?php esc_html_e( 'Open Button Link In', 'carousel-slider' ); ?></label>
|
33 |
-
</div>
|
34 |
-
<div class="sp-input-field">
|
35 |
-
<select name="carousel_slider_content[<?php echo $slide_num; ?>][button_two_target]"
|
36 |
-
id="button_two_target" class="sp-input-text">
|
37 |
-
<option value="_blank" <?php selected( $_btn_2_target, '_blank' ); ?>><?php esc_html_e( 'New Window', 'carousel-slider' ); ?></option>
|
38 |
-
<option value="_self" <?php selected( $_btn_2_target, '_self' ); ?>><?php esc_html_e( 'Same window', 'carousel-slider' ); ?></option>
|
39 |
-
</select>
|
40 |
-
</div>
|
41 |
-
</div><!-- Open Button Link In -->
|
42 |
-
|
43 |
-
<div class="sp-input-group" id="field-button_two_target">
|
44 |
-
<div class="sp-input-label">
|
45 |
-
<label for="button_two_type"><?php esc_html_e( 'Button Type', 'carousel-slider' ); ?></label>
|
46 |
-
</div>
|
47 |
-
<div class="sp-input-field">
|
48 |
-
<select name="carousel_slider_content[<?php echo $slide_num; ?>][button_two_type]"
|
49 |
-
id="button_two_target" class="sp-input-text">
|
50 |
-
<option value="normal" <?php selected( $_btn_2_type, 'normal' ); ?>><?php esc_html_e( 'Normal', 'carousel-slider' ); ?></option>
|
51 |
-
<option value="stroke" <?php selected( $_btn_2_type, 'stroke' ); ?>><?php esc_html_e( 'Stroke', 'carousel-slider' ); ?></option>
|
52 |
-
</select>
|
53 |
-
</div>
|
54 |
-
</div><!-- Button Type -->
|
55 |
-
|
56 |
-
<div class="sp-input-group" id="field-button_two_size">
|
57 |
-
<div class="sp-input-label">
|
58 |
-
<label for="button_two_type"><?php esc_html_e( 'Button Size', 'carousel-slider' ); ?></label>
|
59 |
-
</div>
|
60 |
-
<div class="sp-input-field">
|
61 |
-
<select name="carousel_slider_content[<?php echo $slide_num; ?>][button_two_size]"
|
62 |
-
id="button_two_size" class="sp-input-text">
|
63 |
-
<option value="large" <?php selected( $_btn_2_size, 'large' ); ?>><?php esc_html_e( 'Large', 'carousel-slider' ); ?></option>
|
64 |
-
<option value="medium" <?php selected( $_btn_2_size, 'medium' ); ?>><?php esc_html_e( 'Medium', 'carousel-slider' ); ?></option>
|
65 |
-
<option value="small" <?php selected( $_btn_2_size, 'small' ); ?>><?php esc_html_e( 'Small', 'carousel-slider' ); ?></option>
|
66 |
-
</select>
|
67 |
-
</div>
|
68 |
-
</div><!-- Button Size -->
|
69 |
-
|
70 |
-
|
71 |
-
<div class="sp-input-group" id="field-button_two_border_width">
|
72 |
-
<div class="sp-input-label">
|
73 |
-
<label for="button_two_border_width"><?php esc_html_e( 'Border Width', 'carousel-slider' ); ?></label>
|
74 |
-
<p class="sp-input-desc"><?php esc_html_e( 'Enter border width in pixel. e.g. 2px', 'carousel-slider' ); ?></p>
|
75 |
-
</div>
|
76 |
-
<div class="sp-input-field">
|
77 |
-
<input name="carousel_slider_content[<?php echo $slide_num; ?>][button_two_border_width]"
|
78 |
-
id="button_two_border_width" class="sp-input-text"
|
79 |
-
value="<?php echo $_btn_2_border_width; ?>">
|
80 |
-
</div>
|
81 |
-
</div><!-- Border Width -->
|
82 |
-
|
83 |
-
<div class="sp-input-group" id="field-button_two_border_radius">
|
84 |
-
<div class="sp-input-label">
|
85 |
-
<label for="button_two_border_radius"><?php esc_html_e( 'Border Radius', 'carousel-slider' ); ?></label>
|
86 |
-
<p class="sp-input-desc"><?php esc_html_e( 'Enter border radius in pixel. e.g. 3px', 'carousel-slider' ); ?></p>
|
87 |
-
</div>
|
88 |
-
<div class="sp-input-field">
|
89 |
-
<input name="carousel_slider_content[<?php echo $slide_num; ?>][button_two_border_radius]"
|
90 |
-
id="button_two_border_radius" class="sp-input-text"
|
91 |
-
value="<?php echo $_btn_2_border_radius; ?>">
|
92 |
-
</div>
|
93 |
-
</div><!-- Border Radius -->
|
94 |
-
|
95 |
-
<div class="sp-input-group" id="field-button_two_bg_color">
|
96 |
-
<div class="sp-input-label">
|
97 |
-
<label for="button_two_bg_color"><?php esc_html_e( 'Button Color', 'carousel-slider' ); ?></label>
|
98 |
-
</div>
|
99 |
-
<div class="sp-input-field">
|
100 |
-
<input id="button_two_bg_color" class="color-picker" value="<?php echo $_btn_2_bg_color; ?>"
|
101 |
-
name="carousel_slider_content[<?php echo $slide_num; ?>][button_two_bg_color]"
|
102 |
-
data-alpha="true" data-default-color="#00d1b2">
|
103 |
-
</div>
|
104 |
-
</div><!-- Button Color -->
|
105 |
-
|
106 |
-
<div class="sp-input-group" id="field-button_two_color">
|
107 |
-
<div class="sp-input-label">
|
108 |
-
<label for="button_two_color"><?php esc_html_e( 'Button Text Color', 'carousel-slider' ); ?></label>
|
109 |
-
</div>
|
110 |
-
<div class="sp-input-field">
|
111 |
-
<input id="button_two_color" class="color-picker" value="<?php echo $_btn_2_color; ?>"
|
112 |
-
name="carousel_slider_content[<?php echo $slide_num; ?>][button_two_color]"
|
113 |
-
data-alpha="true" data-default-color="#ffffff">
|
114 |
-
</div>
|
115 |
-
</div><!-- Button Text Color -->
|
116 |
-
|
117 |
-
</div>
|
118 |
-
</div>
|
119 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/templates/admin/parts/hero-banner/tab-link.php
DELETED
@@ -1,51 +0,0 @@
|
|
1 |
-
<div id="carousel-slider-tab-link" class="shapla-tab tab-content-link">
|
2 |
-
|
3 |
-
<div class="sp-input-group" id="field-_link_type">
|
4 |
-
<div class="sp-input-label">
|
5 |
-
<label for="_link_type"><?php esc_html_e( 'Slide Link Type', 'carousel-slider' ); ?></label>
|
6 |
-
<p class="sp-input-desc"><?php esc_html_e( 'Select how the slide will link.', 'carousel-slider' ); ?></p>
|
7 |
-
</div>
|
8 |
-
<div class="sp-input-field">
|
9 |
-
<select name="carousel_slider_content[<?php echo $slide_num; ?>][link_type]"
|
10 |
-
id="_link_type" class="sp-input-text link_type">
|
11 |
-
<option value="none" <?php selected( $_link_type, 'none' ); ?>><?php esc_html_e( 'No Link', 'carousel-slider' ); ?></option>
|
12 |
-
<option value="full" <?php selected( $_link_type, 'full' ); ?>><?php esc_html_e( 'Full Slide', 'carousel-slider' ); ?></option>
|
13 |
-
<option value="button" <?php selected( $_link_type, 'button' ); ?>><?php esc_html_e( 'Button', 'carousel-slider' ); ?></option>
|
14 |
-
</select>
|
15 |
-
</div>
|
16 |
-
</div>
|
17 |
-
|
18 |
-
<div class="ContentCarouselLinkFull" style="display: <?php echo ( $_link_type == 'full' ) ? 'block' : 'none'; ?>">
|
19 |
-
<div class="sp-input-group" id="field-_slide_link">
|
20 |
-
<div class="sp-input-label">
|
21 |
-
<label for="_slide_link"><?php esc_html_e( 'Slide Link', 'carousel-slider' ); ?></label>
|
22 |
-
<p class="sp-input-desc"><?php esc_html_e( 'Please enter your URL that will be used to link the full slide.', 'carousel-slider' ); ?></p>
|
23 |
-
</div>
|
24 |
-
<div class="sp-input-field">
|
25 |
-
<input type="url" id="_slide_link"
|
26 |
-
class="sp-input-text" value="<?php echo $_slide_link; ?>"
|
27 |
-
name="carousel_slider_content[<?php echo $slide_num; ?>][slide_link]">
|
28 |
-
</div>
|
29 |
-
</div>
|
30 |
-
|
31 |
-
<div class="sp-input-group" id="field-_link_target">
|
32 |
-
<div class="sp-input-label">
|
33 |
-
<label for="_link_target"><?php esc_html_e( 'Open Slide Link In New Window', 'carousel-slider' ); ?></label>
|
34 |
-
</div>
|
35 |
-
<div class="sp-input-field">
|
36 |
-
<select name="carousel_slider_content[<?php echo $slide_num; ?>][link_target]"
|
37 |
-
id="_link_target" class="sp-input-text">
|
38 |
-
<option value="_blank" <?php selected( $_link_target, '_blank' ); ?>><?php esc_html_e( 'Yes', 'carousel-slider' ); ?></option>
|
39 |
-
<option value="_self" <?php selected( $_link_target, '_self' ); ?>><?php esc_html_e( 'No', 'carousel-slider' ); ?></option>
|
40 |
-
</select>
|
41 |
-
</div>
|
42 |
-
</div>
|
43 |
-
</div>
|
44 |
-
|
45 |
-
<div class="ContentCarouselLinkButtons"
|
46 |
-
style="display: <?php echo ( $_link_type == 'button' ) ? 'block' : 'none'; ?>">
|
47 |
-
<?php include CAROUSEL_SLIDER_TEMPLATES . '/admin/parts/hero-banner/tab-link-button-one.php';; ?>
|
48 |
-
<?php include CAROUSEL_SLIDER_TEMPLATES . '/admin/parts/hero-banner/tab-link-button-two.php';; ?>
|
49 |
-
</div>
|
50 |
-
|
51 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/templates/admin/parts/hero-banner/tab-style.php
DELETED
@@ -1,117 +0,0 @@
|
|
1 |
-
<div id="carousel-slider-tab-style" class="shapla-tab tab-style">
|
2 |
-
|
3 |
-
<div class="sp-input-group" id="field-_content_alignment">
|
4 |
-
<div class="sp-input-label">
|
5 |
-
<label for="_content_alignment"><?php esc_html_e( 'Content Alignment', 'carousel-slider' ); ?></label>
|
6 |
-
<p class="sp-input-desc"><?php esc_html_e( 'Select how the heading, description and buttons will be aligned', 'carousel-slider' ); ?></p>
|
7 |
-
</div>
|
8 |
-
<div class="sp-input-field">
|
9 |
-
<select name="carousel_slider_content[<?php echo $slide_num; ?>][content_alignment]"
|
10 |
-
id="_content_alignment" class="sp-input-text">
|
11 |
-
<option value="left" <?php selected( $_content_alignment, 'left' ); ?>>Left</option>
|
12 |
-
<option value="center" <?php selected( $_content_alignment, 'center' ); ?>>Center</option>
|
13 |
-
<option value="right" <?php selected( $_content_alignment, 'right' ); ?>>Right</option>
|
14 |
-
</select>
|
15 |
-
</div>
|
16 |
-
</div>
|
17 |
-
|
18 |
-
<div class="sp-input-group" id="field-_heading_font_size">
|
19 |
-
<div class="sp-input-label">
|
20 |
-
<label for="_heading_font_size"><?php esc_html_e( 'Heading Font Size', 'carousel-slider' ); ?></label>
|
21 |
-
<p class="sp-input-desc"><?php esc_html_e( 'Enter heading font size without px unit. In pixels, ex: 50 instead of 50px. Default: 60', 'carousel-slider' ); ?></p>
|
22 |
-
</div>
|
23 |
-
<div class="sp-input-field">
|
24 |
-
<input type="number" id="_heading_font_size"
|
25 |
-
class="regular-text" value="<?php echo $_heading_font_size; ?>"
|
26 |
-
name="carousel_slider_content[<?php echo $slide_num; ?>][heading_font_size]">
|
27 |
-
</div>
|
28 |
-
</div>
|
29 |
-
|
30 |
-
<div class="sp-input-group" id="field-_heading_gutter">
|
31 |
-
<div class="sp-input-label">
|
32 |
-
<label for="_heading_gutter"><?php esc_html_e( 'Spacing/Gutter', 'carousel-slider' ); ?></label>
|
33 |
-
<p class="sp-input-desc"><?php esc_html_e( 'Enter gutter (space between description and heading) in px, em or rem, ex: 3rem', 'carousel-slider' ); ?></p>
|
34 |
-
</div>
|
35 |
-
<div class="sp-input-field">
|
36 |
-
<input type="text" id="_heading_gutter" class="regular-text" value="<?php echo $_heading_gutter; ?>"
|
37 |
-
name="carousel_slider_content[<?php echo $slide_num; ?>][heading_gutter]">
|
38 |
-
</div>
|
39 |
-
</div>
|
40 |
-
|
41 |
-
<div class="sp-input-group" id="field-_heading_color">
|
42 |
-
<div class="sp-input-label">
|
43 |
-
<label for="_heading_color"><?php esc_html_e( 'Heading Color', 'carousel-slider' ); ?></label>
|
44 |
-
<p class="sp-input-desc"><?php esc_html_e( 'Select a color for the heading font. Default: #fff', 'carousel-slider' ); ?></p>
|
45 |
-
</div>
|
46 |
-
<div class="sp-input-field">
|
47 |
-
<input type="text" id="_heading_color"
|
48 |
-
class="color-picker"
|
49 |
-
data-default-color="#ffffff" data-alpha="true" value="<?php echo $_heading_color; ?>"
|
50 |
-
name="carousel_slider_content[<?php echo $slide_num; ?>][heading_color]">
|
51 |
-
</div>
|
52 |
-
</div>
|
53 |
-
|
54 |
-
<div class="sp-input-group" id="field-_heading_background_color">
|
55 |
-
<div class="sp-input-label">
|
56 |
-
<label for="_heading_background_color"><?php esc_html_e( 'Heading Background Color', 'carousel-slider' ); ?></label>
|
57 |
-
<p class="sp-input-desc"><?php esc_html_e( 'If you would like a semi-transparent background behind your heading, Choose from here. If you would not like, leave it blank. Default: rgba(0,0,0, 0.4)', 'carousel-slider' ); ?></p>
|
58 |
-
</div>
|
59 |
-
<div class="sp-input-field">
|
60 |
-
<input type="text" id="_heading_background_color"
|
61 |
-
class="color-picker" data-alpha="true"
|
62 |
-
data-default-color="rgba(0,0,0, 0.4)" value="<?php echo $_heading_bg_color; ?>"
|
63 |
-
name="carousel_slider_content[<?php echo $slide_num; ?>][heading_background_color]">
|
64 |
-
</div>
|
65 |
-
</div>
|
66 |
-
|
67 |
-
<div class="sp-input-group" id="field-_description_font_size">
|
68 |
-
<div class="sp-input-label">
|
69 |
-
<label for="_description_font_size"><?php esc_html_e( 'Description Font Size', 'carousel-slider' ); ?></label>
|
70 |
-
<p class="sp-input-desc"><?php esc_html_e( 'Enter description font size without px unit. In pixels, ex: 20 instead of 20px. Default: 24', 'carousel-slider' ); ?></p>
|
71 |
-
</div>
|
72 |
-
<div class="sp-input-field">
|
73 |
-
<input type="number" id="_description_font_size"
|
74 |
-
class="regular-text" value="<?php echo $_desc_font_size; ?>"
|
75 |
-
name="carousel_slider_content[<?php echo $slide_num; ?>][description_font_size]">
|
76 |
-
</div>
|
77 |
-
</div><!-- Description Font Size -->
|
78 |
-
|
79 |
-
<div class="sp-input-group" id="field-_description_gutter">
|
80 |
-
<div class="sp-input-label">
|
81 |
-
<label for="_description_gutter"><?php esc_html_e( 'Description Spacing/Gutter', 'carousel-slider' ); ?></label>
|
82 |
-
<p class="sp-input-desc"><?php esc_html_e( 'Enter gutter (space between description and buttons) in px, em or rem, ex: 3rem', 'carousel-slider' ); ?></p>
|
83 |
-
</div>
|
84 |
-
<div class="sp-input-field">
|
85 |
-
<input type="text" id="_description_gutter" class="regular-text" value="<?php echo $_description_gutter; ?>"
|
86 |
-
name="carousel_slider_content[<?php echo $slide_num; ?>][description_gutter]">
|
87 |
-
</div>
|
88 |
-
</div>
|
89 |
-
|
90 |
-
<div class="sp-input-group" id="field-_description_color">
|
91 |
-
<div class="sp-input-label">
|
92 |
-
<label for="_description_color"><?php esc_html_e( 'Description Color', 'carousel-slider' ); ?></label>
|
93 |
-
<p class="sp-input-desc"><?php esc_html_e( 'Select a color for the description font. Default: #fff', 'carousel-slider' ); ?></p>
|
94 |
-
</div>
|
95 |
-
<div class="sp-input-field">
|
96 |
-
<input type="text" id="_description_color"
|
97 |
-
class="color-picker" value="<?php echo $_desc_color; ?>"
|
98 |
-
data-default-color="#ffffff" data-alpha="true"
|
99 |
-
name="carousel_slider_content[<?php echo $slide_num; ?>][description_color]">
|
100 |
-
</div>
|
101 |
-
</div>
|
102 |
-
|
103 |
-
<div class="sp-input-group" id="field-_description_background_color">
|
104 |
-
<div class="sp-input-label">
|
105 |
-
<label for="_description_background_color"><?php esc_html_e( 'Description Background Color', 'carousel-slider' ); ?></label>
|
106 |
-
<p class="sp-input-desc"><?php esc_html_e( 'If you would like a semi-transparent background behind your description, Choose from here. If you would not like, leave it blank. Default: rgba(0,0,0, 0.4)', 'carousel-slider' ); ?></p>
|
107 |
-
</div>
|
108 |
-
<div class="sp-input-field">
|
109 |
-
<input type="text" id="_description_background_color"
|
110 |
-
class="color-picker" data-alpha="true"
|
111 |
-
data-default-color="rgba(0,0,0, 0.4)" value="<?php echo $_desc_bg_color; ?>"
|
112 |
-
name="carousel_slider_content[<?php echo $slide_num; ?>][description_background_color]">
|
113 |
-
</div>
|
114 |
-
</div>
|
115 |
-
|
116 |
-
</div>
|
117 |
-
<!-- .tab-style -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/templates/admin/parts/index.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// Code is Poetry
|
|
|
|
trunk/templates/admin/post-carousel.php
DELETED
@@ -1,89 +0,0 @@
|
|
1 |
-
<div data-id="open" id="section_post_query" class="shapla-toggle shapla-toggle--stroke"
|
2 |
-
style="display: <?php echo $slide_type != 'post-carousel' ? 'none' : 'block'; ?>">
|
3 |
-
<span class="shapla-toggle-title">
|
4 |
-
<?php esc_html_e( 'Post Query', 'carousel-slider' ); ?>
|
5 |
-
</span>
|
6 |
-
<div class="shapla-toggle-inner">
|
7 |
-
<div class="shapla-toggle-content">
|
8 |
-
<?php
|
9 |
-
$this->form->select( array(
|
10 |
-
'id' => '_post_query_type',
|
11 |
-
'name' => esc_html__( 'Query Type', 'carousel-slider' ),
|
12 |
-
'std' => 'latest_posts',
|
13 |
-
'options' => array(
|
14 |
-
'latest_posts' => esc_html__( 'Latest Posts', 'carousel-slider' ),
|
15 |
-
'date_range' => esc_html__( 'Date Range', 'carousel-slider' ),
|
16 |
-
'post_categories' => esc_html__( 'Post Categories', 'carousel-slider' ),
|
17 |
-
'post_tags' => esc_html__( 'Post Tags', 'carousel-slider' ),
|
18 |
-
'specific_posts' => esc_html__( 'Specific posts', 'carousel-slider' ),
|
19 |
-
),
|
20 |
-
) );
|
21 |
-
$this->form->date( array(
|
22 |
-
'id' => '_post_date_after',
|
23 |
-
'name' => esc_html__( 'Date from', 'carousel-slider' ),
|
24 |
-
'desc' => sprintf( esc_html__( 'Example: %s', 'carousel-slider' ), date( 'F d, Y', strtotime( '-3 months' ) ) ),
|
25 |
-
) );
|
26 |
-
$this->form->date( array(
|
27 |
-
'id' => '_post_date_before',
|
28 |
-
'name' => esc_html__( 'Date to', 'carousel-slider' ),
|
29 |
-
'desc' => sprintf( esc_html__( 'Example: %s', 'carousel-slider' ), date( 'F d, Y', strtotime( '-7 days' ) ) ),
|
30 |
-
) );
|
31 |
-
$this->form->post_terms( array(
|
32 |
-
'id' => '_post_categories',
|
33 |
-
'taxonomy' => 'category',
|
34 |
-
'multiple' => true,
|
35 |
-
'name' => esc_html__( 'Post Categories', 'carousel-slider' ),
|
36 |
-
'desc' => esc_html__( 'Show posts associated with selected categories.', 'carousel-slider' ),
|
37 |
-
) );
|
38 |
-
$this->form->post_terms( array(
|
39 |
-
'id' => '_post_tags',
|
40 |
-
'taxonomy' => 'post_tag',
|
41 |
-
'multiple' => true,
|
42 |
-
'name' => esc_html__( 'Post Tags', 'carousel-slider' ),
|
43 |
-
'desc' => esc_html__( 'Show posts associated with selected tags.', 'carousel-slider' ),
|
44 |
-
) );
|
45 |
-
$this->form->posts_list( array(
|
46 |
-
'id' => '_post_in',
|
47 |
-
'multiple' => true,
|
48 |
-
'name' => esc_html__( 'Specific posts', 'carousel-slider' ),
|
49 |
-
'desc' => esc_html__( 'Select posts that you want to show as slider. Select at least 5 posts', 'carousel-slider' ),
|
50 |
-
) );
|
51 |
-
$this->form->number( array(
|
52 |
-
'id' => '_posts_per_page',
|
53 |
-
'name' => esc_html__( 'Posts per page', 'carousel-slider' ),
|
54 |
-
'std' => 12,
|
55 |
-
'desc' => esc_html__( 'How many post you want to show on carousel slide.', 'carousel-slider' ),
|
56 |
-
) );
|
57 |
-
$this->form->select( array(
|
58 |
-
'id' => '_post_order',
|
59 |
-
'name' => esc_html__( 'Order', 'carousel-slider' ),
|
60 |
-
'std' => 'DESC',
|
61 |
-
'options' => array(
|
62 |
-
'ASC' => esc_html__( 'Ascending Order', 'carousel-slider' ),
|
63 |
-
'DESC' => esc_html__( 'Descending Order', 'carousel-slider' ),
|
64 |
-
),
|
65 |
-
) );
|
66 |
-
$this->form->select( array(
|
67 |
-
'id' => '_post_orderby',
|
68 |
-
'name' => esc_html__( 'Order by', 'carousel-slider' ),
|
69 |
-
'std' => 'ID',
|
70 |
-
'options' => array(
|
71 |
-
'none' => esc_html__( 'No order', 'carousel-slider' ),
|
72 |
-
'ID' => esc_html__( 'Post id', 'carousel-slider' ),
|
73 |
-
'author' => esc_html__( 'Post author', 'carousel-slider' ),
|
74 |
-
'title' => esc_html__( 'Post title', 'carousel-slider' ),
|
75 |
-
'modified' => esc_html__( 'Last modified date', 'carousel-slider' ),
|
76 |
-
'rand' => esc_html__( 'Random order', 'carousel-slider' ),
|
77 |
-
'comment_count' => esc_html__( 'Number of comments', 'carousel-slider' ),
|
78 |
-
),
|
79 |
-
) );
|
80 |
-
$this->form->number( array(
|
81 |
-
'id' => '_post_height',
|
82 |
-
'name' => esc_html__( 'Colums Height', 'carousel-slider' ),
|
83 |
-
'desc' => esc_html__( 'Enter colums height for posts carousel in numbers. 450 (px) is perfect when columns width is around 300px or higher. Otherwise you need to change it for perfection.', 'carousel-slider' ),
|
84 |
-
'std' => 450,
|
85 |
-
) );
|
86 |
-
?>
|
87 |
-
</div>
|
88 |
-
</div>
|
89 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/templates/admin/product-carousel.php
DELETED
@@ -1,133 +0,0 @@
|
|
1 |
-
<div data-id="open" id="section_product_query" class="shapla-toggle shapla-toggle--stroke"
|
2 |
-
style="display: <?php echo $slide_type != 'product-carousel' ? 'none' : 'block'; ?>">
|
3 |
-
<span class="shapla-toggle-title">
|
4 |
-
<?php esc_html_e( 'Product Query', 'carousel-slider' ); ?>
|
5 |
-
</span>
|
6 |
-
<div class="shapla-toggle-inner">
|
7 |
-
<div class="shapla-toggle-content">
|
8 |
-
<?php
|
9 |
-
$this->form->select( array(
|
10 |
-
'id' => '_product_query_type',
|
11 |
-
'name' => esc_html__( 'Query Type', 'carousel-slider' ),
|
12 |
-
'std' => 'query_porduct',
|
13 |
-
'options' => array(
|
14 |
-
'query_porduct' => esc_html__( 'Query Products', 'carousel-slider' ),
|
15 |
-
'product_categories' => esc_html__( 'Product Categories', 'carousel-slider' ),
|
16 |
-
'product_tags' => esc_html__( 'Product Tags', 'carousel-slider' ),
|
17 |
-
'specific_products' => esc_html__( 'Specific Products', 'carousel-slider' ),
|
18 |
-
),
|
19 |
-
) );
|
20 |
-
$this->form->select( array(
|
21 |
-
'id' => '_product_query',
|
22 |
-
'name' => esc_html__( 'Choose Query', 'carousel-slider' ),
|
23 |
-
'std' => 'featured',
|
24 |
-
'options' => array(
|
25 |
-
'featured' => esc_html__( 'Featured Products', 'carousel-slider' ),
|
26 |
-
'recent' => esc_html__( 'Recent Products', 'carousel-slider' ),
|
27 |
-
'sale' => esc_html__( 'Sale Products', 'carousel-slider' ),
|
28 |
-
'best_selling' => esc_html__( 'Best-Selling Products', 'carousel-slider' ),
|
29 |
-
'top_rated' => esc_html__( 'Top Rated Products', 'carousel-slider' ),
|
30 |
-
'product_categories_list' => esc_html__( 'Product Categories List', 'carousel-slider' ),
|
31 |
-
),
|
32 |
-
) );
|
33 |
-
$this->form->post_terms( array(
|
34 |
-
'id' => '_product_categories',
|
35 |
-
'taxonomy' => 'product_cat',
|
36 |
-
'multiple' => true,
|
37 |
-
'name' => esc_html__( 'Product Categories', 'carousel-slider' ),
|
38 |
-
'desc' => esc_html__( 'Show products associated with selected categories.', 'carousel-slider' ),
|
39 |
-
) );
|
40 |
-
$this->form->post_terms( array(
|
41 |
-
'id' => '_product_tags',
|
42 |
-
'taxonomy' => 'product_tag',
|
43 |
-
'multiple' => true,
|
44 |
-
'name' => esc_html__( 'Product Tags', 'carousel-slider' ),
|
45 |
-
'desc' => esc_html__( 'Show products associated with selected tags.', 'carousel-slider' ),
|
46 |
-
) );
|
47 |
-
$this->form->posts_list( array(
|
48 |
-
'id' => '_product_in',
|
49 |
-
'post_type' => 'product',
|
50 |
-
'multiple' => true,
|
51 |
-
'name' => esc_html__( 'Specific products', 'carousel-slider' ),
|
52 |
-
'desc' => esc_html__( 'Select products that you want to show as slider. Select at least 5 products', 'carousel-slider' ),
|
53 |
-
) );
|
54 |
-
$this->form->number( array(
|
55 |
-
'id' => '_products_per_page',
|
56 |
-
'name' => esc_html__( 'Product per page', 'carousel-slider' ),
|
57 |
-
'std' => 12,
|
58 |
-
'desc' => esc_html__( 'How many products you want to show on carousel slide.', 'carousel-slider' ),
|
59 |
-
) );
|
60 |
-
$this->form->checkbox( array(
|
61 |
-
'id' => '_product_title',
|
62 |
-
'name' => esc_html__( 'Show Title', 'carousel-slider' ),
|
63 |
-
'label' => esc_html__( 'Show Title.', 'carousel-slider' ),
|
64 |
-
'desc' => esc_html__( 'Check to show product title.', 'carousel-slider' ),
|
65 |
-
'std' => 'on'
|
66 |
-
) );
|
67 |
-
$this->form->checkbox( array(
|
68 |
-
'id' => '_product_rating',
|
69 |
-
'name' => esc_html__( 'Show Rating', 'carousel-slider' ),
|
70 |
-
'label' => esc_html__( 'Show Rating.', 'carousel-slider' ),
|
71 |
-
'desc' => esc_html__( 'Check to show product rating.', 'carousel-slider' ),
|
72 |
-
'std' => 'on'
|
73 |
-
) );
|
74 |
-
$this->form->checkbox( array(
|
75 |
-
'id' => '_product_price',
|
76 |
-
'name' => esc_html__( 'Show Price', 'carousel-slider' ),
|
77 |
-
'label' => esc_html__( 'Show Price.', 'carousel-slider' ),
|
78 |
-
'desc' => esc_html__( 'Check to show product price.', 'carousel-slider' ),
|
79 |
-
'std' => 'on'
|
80 |
-
) );
|
81 |
-
$this->form->checkbox( array(
|
82 |
-
'id' => '_product_cart_button',
|
83 |
-
'name' => esc_html__( 'Show Cart Button', 'carousel-slider' ),
|
84 |
-
'label' => esc_html__( 'Show Cart Button.', 'carousel-slider' ),
|
85 |
-
'desc' => esc_html__( 'Check to show product add to cart button.', 'carousel-slider' ),
|
86 |
-
'std' => 'on'
|
87 |
-
) );
|
88 |
-
$this->form->checkbox( array(
|
89 |
-
'id' => '_product_onsale',
|
90 |
-
'name' => esc_html__( 'Show Sale Tag', 'carousel-slider' ),
|
91 |
-
'label' => esc_html__( 'Show Sale Tag', 'carousel-slider' ),
|
92 |
-
'desc' => esc_html__( 'Check to show product sale tag for onsale products.', 'carousel-slider' ),
|
93 |
-
'std' => 'on'
|
94 |
-
) );
|
95 |
-
$this->form->checkbox( array(
|
96 |
-
'id' => '_product_wishlist',
|
97 |
-
'name' => esc_html__( 'Show Wishlist Button', 'carousel-slider' ),
|
98 |
-
'label' => esc_html__( 'Show Wishlist Button', 'carousel-slider' ),
|
99 |
-
'std' => 'off',
|
100 |
-
'desc' => sprintf( esc_html__( 'Check to show wishlist button. This feature needs %s plugin to be installed.', 'carousel-slider' ), sprintf( '<a href="https://wordpress.org/plugins/yith-woocommerce-wishlist/" target="_blank" >%s</a>', __( 'YITH WooCommerce Wishlist', 'carousel-slider' ) ) ),
|
101 |
-
) );
|
102 |
-
$this->form->checkbox( array(
|
103 |
-
'id' => '_product_quick_view',
|
104 |
-
'name' => esc_html__( 'Show Quick View', 'carousel-slider' ),
|
105 |
-
'label' => esc_html__( 'Show Quick View', 'carousel-slider' ),
|
106 |
-
'desc' => esc_html__( 'Check to show quick view button.', 'carousel-slider' ),
|
107 |
-
'std' => 'on'
|
108 |
-
) );
|
109 |
-
$this->form->color( array(
|
110 |
-
'id' => '_product_title_color',
|
111 |
-
'type' => 'color',
|
112 |
-
'name' => esc_html__( 'Title Color', 'carousel-slider' ),
|
113 |
-
'desc' => esc_html__( 'Pick a color for product title. This color will also apply to sale tag and price.', 'carousel-slider' ),
|
114 |
-
'std' => carousel_slider_default_settings()->product_title_color,
|
115 |
-
) );
|
116 |
-
$this->form->color( array(
|
117 |
-
'id' => '_product_button_bg_color',
|
118 |
-
'type' => 'color',
|
119 |
-
'name' => esc_html__( 'Button Background Color', 'carousel-slider' ),
|
120 |
-
'desc' => esc_html__( 'Pick a color for button background color. This color will also apply to product rating.', 'carousel-slider' ),
|
121 |
-
'std' => carousel_slider_default_settings()->product_button_bg_color
|
122 |
-
) );
|
123 |
-
$this->form->color( array(
|
124 |
-
'id' => '_product_button_text_color',
|
125 |
-
'type' => 'color',
|
126 |
-
'name' => esc_html__( 'Button Text Color', 'carousel-slider' ),
|
127 |
-
'desc' => esc_html__( 'Pick a color for button text color.', 'carousel-slider' ),
|
128 |
-
'std' => carousel_slider_default_settings()->product_button_text_color
|
129 |
-
) );
|
130 |
-
?>
|
131 |
-
</div>
|
132 |
-
</div>
|
133 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/templates/admin/responsive.php
DELETED
@@ -1,50 +0,0 @@
|
|
1 |
-
<div data-id="open" class="shapla-toggle shapla-toggle--stroke">
|
2 |
-
<span class="shapla-toggle-title">
|
3 |
-
<?php esc_html_e( 'Responsive Settings', 'carousel-slider' ); ?>
|
4 |
-
</span>
|
5 |
-
<div class="shapla-toggle-inner">
|
6 |
-
<div class="shapla-toggle-content">
|
7 |
-
<?php
|
8 |
-
$this->form->number( array(
|
9 |
-
'id' => '_items',
|
10 |
-
'type' => 'number',
|
11 |
-
'name' => esc_html__( 'Columns', 'carousel-slider' ),
|
12 |
-
'desc' => esc_html__( 'The number of items you want to see on the Extra Large Desktop Layout (Screens size greater than 1921 pixels DP)', 'carousel-slider' ),
|
13 |
-
'std' => 4
|
14 |
-
) );
|
15 |
-
$this->form->number( array(
|
16 |
-
'id' => '_items_desktop',
|
17 |
-
'type' => 'number',
|
18 |
-
'name' => esc_html__( 'Columns : Desktop', 'carousel-slider' ),
|
19 |
-
'desc' => esc_html__( 'The number of items you want to see on the Desktop Layout (Screens size from 1200 pixels DP to 1920 pixels DP)', 'carousel-slider' ),
|
20 |
-
'std' => 4
|
21 |
-
) );
|
22 |
-
$this->form->number( array(
|
23 |
-
'id' => '_items_small_desktop',
|
24 |
-
'type' => 'number',
|
25 |
-
'name' => esc_html__( 'Columns : Small Desktop', 'carousel-slider' ),
|
26 |
-
'desc' => esc_html__( 'The number of items you want to see on the Small Desktop Layout (Screens size from 993 pixels DP to 1199 pixels DP)', 'carousel-slider' ),
|
27 |
-
'std' => 4
|
28 |
-
) );
|
29 |
-
$this->form->number( array(
|
30 |
-
'id' => '_items_portrait_tablet',
|
31 |
-
'name' => esc_html__( 'Columns : Tablet', 'carousel-slider' ),
|
32 |
-
'desc' => esc_html__( 'The number of items you want to see on the Tablet Layout (Screens size from 768 pixels DP to 992 pixels DP)', 'carousel-slider' ),
|
33 |
-
'std' => 3
|
34 |
-
) );
|
35 |
-
$this->form->number( array(
|
36 |
-
'id' => '_items_small_portrait_tablet',
|
37 |
-
'name' => esc_html__( 'Columns : Small Tablet', 'carousel-slider' ),
|
38 |
-
'desc' => esc_html__( 'The number of items you want to see on the Small Tablet Layout(Screens size from 600 pixels DP to 767 pixels DP)', 'carousel-slider' ),
|
39 |
-
'std' => 2
|
40 |
-
) );
|
41 |
-
$this->form->number( array(
|
42 |
-
'id' => '_items_portrait_mobile',
|
43 |
-
'name' => esc_html__( 'Columns : Mobile', 'carousel-slider' ),
|
44 |
-
'desc' => esc_html__( 'The number of items you want to see on the Mobile Layout (Screens size from 320 pixels DP to 599 pixels DP)', 'carousel-slider' ),
|
45 |
-
'std' => 1
|
46 |
-
) );
|
47 |
-
?>
|
48 |
-
</div>
|
49 |
-
</div>
|
50 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/templates/admin/types.php
DELETED
@@ -1,30 +0,0 @@
|
|
1 |
-
<div class="sp-input-group" style="margin: 10px 0 30px;">
|
2 |
-
<div class="sp-input-label">
|
3 |
-
<label for="_carousel_slider_slide_type">
|
4 |
-
<?php esc_html_e( 'Slide Type', 'carousel-slider' ); ?>
|
5 |
-
</label>
|
6 |
-
</div>
|
7 |
-
<div class="sp-input-field">
|
8 |
-
<select name="carousel_slider[_slide_type]" id="_carousel_slider_slide_type" class="sp-input-text">
|
9 |
-
<option value="image-carousel" <?php echo $slide_type == 'image-carousel' ? 'selected' : ''; ?>>
|
10 |
-
<?php esc_html_e( 'Image Carousel - from Media Library', 'carousel-slider' ); ?>
|
11 |
-
</option>
|
12 |
-
<option value="image-carousel-url" <?php echo $slide_type == 'image-carousel-url' ? 'selected' : ''; ?>>
|
13 |
-
<?php esc_html_e( 'Image Carousel - from URL', 'carousel-slider' ); ?>
|
14 |
-
</option>
|
15 |
-
<option value="post-carousel" <?php echo $slide_type == 'post-carousel' ? 'selected' : ''; ?>>
|
16 |
-
<?php esc_html_e( 'Post Carousel', 'carousel-slider' ); ?>
|
17 |
-
</option>
|
18 |
-
<option value="video-carousel"<?php echo $slide_type == 'video-carousel' ? 'selected' : ''; ?>>
|
19 |
-
<?php esc_html_e( 'Video Carousel', 'carousel-slider' ); ?>
|
20 |
-
</option>
|
21 |
-
<?php $disabled = carousel_slider_is_woocommerce_active() ? '' : 'disabled'; ?>
|
22 |
-
<option value="product-carousel" <?php echo $slide_type == 'product-carousel' ? 'selected' : ''; ?> <?php echo $disabled; ?>>
|
23 |
-
<?php esc_html_e( 'WooCommerce Product Carousel', 'carousel-slider' ); ?>
|
24 |
-
</option>
|
25 |
-
<option value="hero-banner-slider"<?php echo $slide_type == 'hero-banner-slider' ? 'selected' : ''; ?>>
|
26 |
-
<?php esc_html_e( 'Hero Banner Slider (beta)', 'carousel-slider' ); ?>
|
27 |
-
</option>
|
28 |
-
</select>
|
29 |
-
</div>
|
30 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/templates/admin/video-carousel.php
DELETED
@@ -1,33 +0,0 @@
|
|
1 |
-
<div data-id="open" id="section_video_settings" class="shapla-toggle shapla-toggle--stroke"
|
2 |
-
style="display: <?php echo $slide_type != 'video-carousel' ? 'none' : 'block'; ?>">
|
3 |
-
<span class="shapla-toggle-title">
|
4 |
-
<?php esc_html_e( 'Video Settings', 'carousel-slider' ); ?>
|
5 |
-
</span>
|
6 |
-
<div class="shapla-toggle-inner">
|
7 |
-
<div class="shapla-toggle-content">
|
8 |
-
<?php
|
9 |
-
$this->form->textarea( array(
|
10 |
-
'id' => '_video_url',
|
11 |
-
'name' => esc_html__( 'Video URLs', 'carousel-slider' ),
|
12 |
-
'desc' => sprintf(
|
13 |
-
'%s<br><br>Example: %s',
|
14 |
-
esc_html__( 'Only support youtube and vimeo. Enter video URL from youtube or vimeo separating each by comma', 'carousel-slider' ),
|
15 |
-
'https://www.youtube.com/watch?v=O4-EM32h7b4,https://www.youtube.com/watch?v=72IO4gzB8mU,https://vimeo.com/193773669,https://vimeo.com/193517656'
|
16 |
-
),
|
17 |
-
) );
|
18 |
-
$this->form->number( array(
|
19 |
-
'id' => '_video_width',
|
20 |
-
'name' => esc_html__( 'Video Width', 'carousel-slider' ),
|
21 |
-
'std' => 560,
|
22 |
-
'desc' => esc_html__( 'Enter video width in numbers.', 'carousel-slider' ),
|
23 |
-
) );
|
24 |
-
$this->form->number( array(
|
25 |
-
'id' => '_video_height',
|
26 |
-
'name' => esc_html__( 'Video Height', 'carousel-slider' ),
|
27 |
-
'std' => 315,
|
28 |
-
'desc' => esc_html__( 'Enter video height in numbers.', 'carousel-slider' ),
|
29 |
-
) );
|
30 |
-
?>
|
31 |
-
</div>
|
32 |
-
</div>
|
33 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/templates/index.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// Code is Poetry
|
|
|
|
trunk/templates/public/hero-banner-slider.php
DELETED
@@ -1,193 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// If this file is called directly, abort.
|
3 |
-
if ( ! defined( 'WPINC' ) ) {
|
4 |
-
die;
|
5 |
-
}
|
6 |
-
|
7 |
-
$content_sliders = get_post_meta( $id, '_content_slider', true );
|
8 |
-
$settings = get_post_meta( $id, '_content_slider_settings', true );
|
9 |
-
$_lazy_load_image = get_post_meta( $id, '_lazy_load_image', true );
|
10 |
-
$_be_lazy = in_array( $_lazy_load_image, array( 'on', 'off' ) ) ? $_lazy_load_image : 'on';
|
11 |
-
?>
|
12 |
-
<div class="carousel-slider-outer carousel-slider-outer-contents carousel-slider-outer-<?php echo $id; ?>">
|
13 |
-
<?php carousel_slider_inline_style( $id ); ?>
|
14 |
-
<div <?php echo join( " ", $this->carousel_options( $id ) ); ?>>
|
15 |
-
<?php
|
16 |
-
foreach ( $content_sliders as $slide_id => $slide ):
|
17 |
-
|
18 |
-
// Slide Content
|
19 |
-
$_slide_heading = isset( $slide['slide_heading'] ) ? $slide['slide_heading'] : '';
|
20 |
-
$_slide_description = isset( $slide['slide_description'] ) ? $slide['slide_description'] : '';
|
21 |
-
// Slide Style
|
22 |
-
$_content_alignment = ! empty( $slide['content_alignment'] ) ? esc_attr( $slide['content_alignment'] ) : 'left';
|
23 |
-
$_heading_font_size = ! empty( $slide['heading_font_size'] ) ? esc_attr( $slide['heading_font_size'] ) : '60px';
|
24 |
-
$_heading_gutter = ! empty( $slide['heading_gutter'] ) ? esc_attr( $slide['heading_gutter'] ) : '1rem';
|
25 |
-
$_heading_color = ! empty( $slide['heading_color'] ) ? esc_attr( $slide['heading_color'] ) : '#ffffff';
|
26 |
-
$_heading_bg_color = ! empty( $slide['heading_background_color'] ) ? esc_attr( $slide['heading_background_color'] ) : '';
|
27 |
-
$_desc_font_size = ! empty( $slide['description_font_size'] ) ? esc_attr( $slide['description_font_size'] ) : '24px';
|
28 |
-
$_description_gutter = ! empty( $slide['description_gutter'] ) ? esc_attr( $slide['description_gutter'] ) : '1rem';
|
29 |
-
$_desc_color = ! empty( $slide['description_color'] ) ? esc_attr( $slide['description_color'] ) : '#ffffff';
|
30 |
-
$_desc_bg_color = ! empty( $slide['description_background_color'] ) ? esc_attr( $slide['description_background_color'] ) : '';
|
31 |
-
|
32 |
-
// Slide Background
|
33 |
-
$_img_bg_position = ! empty( $slide['img_bg_position'] ) ? esc_attr( $slide['img_bg_position'] ) : 'center center';
|
34 |
-
$_img_bg_size = ! empty( $slide['img_bg_size'] ) ? esc_attr( $slide['img_bg_size'] ) : 'contain';
|
35 |
-
$_bg_color = ! empty( $slide['bg_color'] ) ? esc_attr( $slide['bg_color'] ) : '';
|
36 |
-
$_img_id = ! empty( $slide['img_id'] ) ? absint( $slide['img_id'] ) : 0;
|
37 |
-
$_img_src = wp_get_attachment_image_src( $_img_id, 'full' );
|
38 |
-
$_have_img = is_array( $_img_src );
|
39 |
-
|
40 |
-
$_link_type = isset( $slide['link_type'] ) && in_array( $slide['link_type'],
|
41 |
-
array( 'full', 'button' ) ) ? $slide['link_type'] : 'full';
|
42 |
-
$_slide_link = ! empty( $slide['slide_link'] ) ? esc_url( $slide['slide_link'] ) : '';
|
43 |
-
$_link_target = ! empty( $slide['link_target'] ) && in_array( $slide['link_target'],
|
44 |
-
array( '_self', '_blank' ) ) ? esc_url( $slide['link_target'] ) : '_self';
|
45 |
-
|
46 |
-
// Slide Button One
|
47 |
-
$_btn_1_text = ! empty( $slide['button_one_text'] ) ? esc_attr( $slide['button_one_text'] ) : '';
|
48 |
-
$_btn_1_url = ! empty( $slide['button_one_url'] ) ? esc_url( $slide['button_one_url'] ) : '';
|
49 |
-
$_btn_1_target = ! empty( $slide['button_one_target'] ) ? esc_attr( $slide['button_one_target'] ) : '_self';
|
50 |
-
$_btn_1_type = ! empty( $slide['button_one_type'] ) ? esc_attr( $slide['button_one_type'] ) : 'normal';
|
51 |
-
$_btn_1_size = ! empty( $slide['button_one_size'] ) ? esc_attr( $slide['button_one_size'] ) : 'medium';
|
52 |
-
$_btn_1_bg_color = ! empty( $slide['button_one_bg_color'] ) ? carousel_slider_sanitize_color( $slide['button_one_bg_color'] ) : '#00d1b2';
|
53 |
-
$_btn_1_color = ! empty( $slide['button_one_color'] ) ? carousel_slider_sanitize_color( $slide['button_one_color'] ) : '#ffffff';
|
54 |
-
|
55 |
-
// Slide Button Two
|
56 |
-
$_btn_2_text = ! empty( $slide['button_two_text'] ) ? esc_attr( $slide['button_two_text'] ) : '';
|
57 |
-
$_btn_2_url = ! empty( $slide['button_two_url'] ) ? esc_url( $slide['button_two_url'] ) : '';
|
58 |
-
$_btn_2_target = ! empty( $slide['button_two_target'] ) ? esc_attr( $slide['button_two_target'] ) : '_self';
|
59 |
-
$_btn_2_size = ! empty( $slide['button_two_size'] ) ? esc_attr( $slide['button_two_size'] ) : 'medium';
|
60 |
-
$_btn_2_type = ! empty( $slide['button_two_type'] ) ? esc_attr( $slide['button_two_type'] ) : 'normal';
|
61 |
-
$_btn_2_bg_color = ! empty( $slide['button_two_bg_color'] ) ? carousel_slider_sanitize_color( $slide['button_two_bg_color'] ) : '#00d1b2';
|
62 |
-
$_btn_2_color = ! empty( $slide['button_two_color'] ) ? carousel_slider_sanitize_color( $slide['button_two_color'] ) : '#ffffff';
|
63 |
-
|
64 |
-
// Slide background style
|
65 |
-
$canvas_style = '';
|
66 |
-
$canvas_style .= 'background-repeat: no-repeat;';
|
67 |
-
$canvas_style .= 'background-position: ' . $_img_bg_position . ';';
|
68 |
-
$canvas_style .= 'background-size: ' . $_img_bg_size . ';';
|
69 |
-
if ( $_have_img && $_be_lazy == 'off' ) {
|
70 |
-
$canvas_style .= 'background-image: url(' . $_img_src[0] . ')';
|
71 |
-
}
|
72 |
-
|
73 |
-
$content_inner_style = $_bg_color ? 'background-color: ' . $_bg_color . ';' : '';
|
74 |
-
|
75 |
-
$content_style = '';
|
76 |
-
if ( $_content_alignment == 'left' ) {
|
77 |
-
$content_style .= '-webkit-align-items: flex-start; align-items: flex-start;';
|
78 |
-
} elseif ( $_content_alignment == 'right' ) {
|
79 |
-
$content_style .= '-webkit-align-items: flex-end; align-items: flex-end;';
|
80 |
-
} else {
|
81 |
-
$content_style .= '-webkit-align-items: center; align-items: center;';
|
82 |
-
}
|
83 |
-
|
84 |
-
$slide_padding = isset( $settings['slide_padding'] ) && is_array( $settings['slide_padding'] ) ? $settings['slide_padding'] : array();
|
85 |
-
$_padding_top = isset( $slide_padding['top'] ) ? esc_attr( $slide_padding['top'] ) : '1rem';
|
86 |
-
$_padding_right = isset( $slide_padding['right'] ) ? esc_attr( $slide_padding['right'] ) : '3rem';
|
87 |
-
$_padding_bottom = isset( $slide_padding['bottom'] ) ? esc_attr( $slide_padding['bottom'] ) : '1rem';
|
88 |
-
$_padding_left = isset( $slide_padding['left'] ) ? esc_attr( $slide_padding['left'] ) : '3rem';
|
89 |
-
|
90 |
-
$content_style .= isset( $settings['slide_height'] ) ? 'min-height: ' . $settings['slide_height'] . ';' : '';
|
91 |
-
$content_style .= isset( $settings['content_width'] ) ? 'max-width: ' . $settings['content_width'] . ';' : '850px';
|
92 |
-
$content_style .= 'padding: ' . $_padding_top . ' ' . $_padding_right . ' ' . $_padding_bottom . ' ' . $_padding_left . '';
|
93 |
-
|
94 |
-
$html = '';
|
95 |
-
|
96 |
-
if ( $_link_type == 'full' && carousel_slider_is_url( $_slide_link ) ) {
|
97 |
-
$html .= '<a href="' . $_slide_link . '" target="' . $_link_target . '">';
|
98 |
-
}
|
99 |
-
|
100 |
-
if ( $_be_lazy == 'on' ) {
|
101 |
-
$html .= '<div class="carousel-slider__content owl-lazy" data-src="' . $_img_src[0] . '" id="slide-item-' . $id . '-' . $slide_id . '" style="' . $canvas_style . '">';
|
102 |
-
} else {
|
103 |
-
$html .= '<div class="carousel-slider__content" id="slide-item-' . $id . '-' . $slide_id . '" style="' . $canvas_style . '">';
|
104 |
-
}
|
105 |
-
$html .= '<div class="slide-content-inner" style="' . $content_inner_style . '">';
|
106 |
-
$html .= '<div class="slide-content" style="' . $content_style . '">';
|
107 |
-
|
108 |
-
// Slide heading
|
109 |
-
if ( $_slide_heading ) {
|
110 |
-
$heading_style = '';
|
111 |
-
$heading_wrapper_style = '';
|
112 |
-
$heading_style .= 'font-size: ' . $_heading_font_size . ';';
|
113 |
-
$heading_style .= 'color: ' . $_heading_color . ';';
|
114 |
-
if ( ! empty( $_heading_bg_color ) ) {
|
115 |
-
$heading_wrapper_style .= 'background-color: ' . $_heading_bg_color . ';';
|
116 |
-
$heading_wrapper_style .= 'padding: 0 1rem;';
|
117 |
-
}
|
118 |
-
|
119 |
-
$heading_wrapper_style .= 'margin-bottom: ' . $_heading_gutter . ';';
|
120 |
-
|
121 |
-
$html .= '<div class="heading">';
|
122 |
-
$html .= '<div class="heading-title-wrapper" style="' . $heading_wrapper_style . '">';
|
123 |
-
$html .= '<h2 class="heading-title" data-font-size="' . absint( $_heading_font_size ) . '" style="' . $heading_style . '">' . wp_kses_post( $_slide_heading ) . "</h2>";
|
124 |
-
$html .= '</div>';
|
125 |
-
$html .= '</div>';
|
126 |
-
}
|
127 |
-
|
128 |
-
// Slide description
|
129 |
-
if ( $_slide_description ) {
|
130 |
-
$desc_style = '';
|
131 |
-
$desc_wrapper_style = '';
|
132 |
-
$desc_style .= 'font-size: ' . $_desc_font_size . ';';
|
133 |
-
$desc_style .= 'color: ' . $_desc_color . ';';
|
134 |
-
|
135 |
-
$desc_wrapper_style .= 'margin-bottom: ' . $_description_gutter . ';';
|
136 |
-
if ( ! empty( $_desc_bg_color ) ) {
|
137 |
-
$desc_wrapper_style .= 'background-color: ' . $_desc_bg_color . ';';
|
138 |
-
$desc_wrapper_style .= 'padding: 0 1rem;';
|
139 |
-
}
|
140 |
-
|
141 |
-
$html .= '<div class="description">';
|
142 |
-
$html .= '<div class="description-title-wrapper" style="' . $desc_wrapper_style . '">';
|
143 |
-
$html .= '<h3 class="description-title" data-font-size="' . absint( $_desc_font_size ) . '" style="' . $desc_style . '">' . wp_kses_post( $_slide_description ) . "</h3>";
|
144 |
-
$html .= '</div>';
|
145 |
-
$html .= '</div>';
|
146 |
-
}
|
147 |
-
|
148 |
-
// Buttons
|
149 |
-
if ( $_link_type == 'button' ) {
|
150 |
-
$html .= '<div class="buttons">';
|
151 |
-
$html .= '<div class="buttons-wrapper">';
|
152 |
-
// Slide Button #1
|
153 |
-
if ( carousel_slider_is_url( $_btn_1_url ) ) {
|
154 |
-
$_btn_1_class = 'button cs-button';
|
155 |
-
$_btn_1_class .= ' cs-button-' . $slide_id . '-1';
|
156 |
-
$_btn_1_class .= ' cs-button--' . $_btn_1_type;
|
157 |
-
$_btn_1_class .= ' cs-button--' . $_btn_1_size;
|
158 |
-
|
159 |
-
$html .= '<span class="buttons-wrapper-one">';
|
160 |
-
$html .= '<a class="' . $_btn_1_class . '" data-btn-type="' . $_btn_1_type . '" data-btn-bg-color="' .
|
161 |
-
$_btn_1_bg_color . '" data-btn-color="' . $_btn_1_color . '" href="' .
|
162 |
-
$_btn_1_url . '" target="' . $_btn_1_target . '">' . esc_attr( $_btn_1_text ) . "</a>";
|
163 |
-
$html .= '</span>';
|
164 |
-
}
|
165 |
-
// Slide Button #2
|
166 |
-
if ( carousel_slider_is_url( $_btn_2_url ) ) {
|
167 |
-
$_btn_2_class = 'button cs-button';
|
168 |
-
$_btn_2_class .= ' cs-button-' . $slide_id . '-2';
|
169 |
-
$_btn_2_class .= ' cs-button--' . $_btn_2_type;
|
170 |
-
$_btn_2_class .= ' cs-button--' . $_btn_2_size;
|
171 |
-
|
172 |
-
$html .= '<span class="buttons-wrapper-two">';
|
173 |
-
$html .= '<a class="' . $_btn_2_class . '" href="' . $_btn_2_url . '" target="' . $_btn_2_target . '">' . esc_attr( $_btn_2_text ) . "</a>";
|
174 |
-
$html .= '</span>';
|
175 |
-
}
|
176 |
-
$html .= '</div>';
|
177 |
-
$html .= '</div>';
|
178 |
-
}
|
179 |
-
|
180 |
-
$html .= '</div>'; // .slide-content
|
181 |
-
$html .= '</div>'; // .slide-content-inner
|
182 |
-
$html .= '</div>'; // .carousel-slider__content
|
183 |
-
|
184 |
-
if ( $_link_type == 'full' && carousel_slider_is_url( $_slide_link ) ) {
|
185 |
-
$html .= '</a>';
|
186 |
-
}
|
187 |
-
|
188 |
-
echo apply_filters( 'carousel_slider_content', $html, $slide_id, $slide );
|
189 |
-
endforeach;
|
190 |
-
?>
|
191 |
-
|
192 |
-
</div>
|
193 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/templates/public/images-carousel-url.php
DELETED
@@ -1,65 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// If this file is called directly, abort.
|
3 |
-
if ( ! defined( 'WPINC' ) ) {
|
4 |
-
die;
|
5 |
-
}
|
6 |
-
|
7 |
-
$_image_target = get_post_meta( $id, '_image_target', true );
|
8 |
-
$_image_target = empty( $_image_target ) ? '_self' : $_image_target;
|
9 |
-
$_nav_color = get_post_meta( $id, '_nav_color', true );
|
10 |
-
$_nav_active_color = get_post_meta( $id, '_nav_active_color', true );
|
11 |
-
$_lazy_load_image = get_post_meta( $id, '_lazy_load_image', true );
|
12 |
-
$_show_attachment_title = get_post_meta( $id, '_show_attachment_title', true );
|
13 |
-
$_show_attachment_caption = get_post_meta( $id, '_show_attachment_caption', true );
|
14 |
-
$_images_urls = get_post_meta( $id, '_images_urls', true );
|
15 |
-
?>
|
16 |
-
<div class="carousel-slider-outer carousel-slider-outer-images carousel-slider-outer-<?php echo $id; ?>">
|
17 |
-
<?php carousel_slider_inline_style( $id ); ?>
|
18 |
-
<div <?php echo join( " ", $this->carousel_options( $id ) ); ?>>
|
19 |
-
<?php
|
20 |
-
foreach ( $_images_urls as $imageInfo ):
|
21 |
-
|
22 |
-
echo '<div class="carousel-slider__item">';
|
23 |
-
|
24 |
-
$title = sprintf( '<h4 class="title">%1$s</h4>', $imageInfo['title'] );
|
25 |
-
$caption = sprintf( '<p class="caption">%1$s</p>', $imageInfo['caption'] );
|
26 |
-
|
27 |
-
if ( $_show_attachment_title == 'on' && $_show_attachment_caption == 'on' ) {
|
28 |
-
|
29 |
-
$full_caption = sprintf( '<div class="carousel-slider__caption">%1$s%2$s</div>', $title, $caption );
|
30 |
-
|
31 |
-
} elseif ( $_show_attachment_title == 'on' ) {
|
32 |
-
|
33 |
-
$full_caption = sprintf( '<div class="carousel-slider__caption">%s</div>', $title );
|
34 |
-
|
35 |
-
} elseif ( $_show_attachment_caption == 'on' ) {
|
36 |
-
|
37 |
-
$full_caption = sprintf( '<div class="carousel-slider__caption">%s</div>', $caption );
|
38 |
-
|
39 |
-
} else {
|
40 |
-
$full_caption = '';
|
41 |
-
}
|
42 |
-
|
43 |
-
if ( $_lazy_load_image == 'on' ) {
|
44 |
-
|
45 |
-
$image = sprintf( '<img class="owl-lazy" data-src="%1$s" alt="%2$s" />', $imageInfo['url'], $imageInfo['alt'] );
|
46 |
-
|
47 |
-
} else {
|
48 |
-
$image = sprintf( '<img src="%1$s" alt="%2$s" />', $imageInfo['url'], $imageInfo['alt'] );
|
49 |
-
}
|
50 |
-
|
51 |
-
if ( filter_var( $imageInfo['link_url'], FILTER_VALIDATE_URL ) ) {
|
52 |
-
|
53 |
-
echo sprintf( '<a href="%1$s" target="%4$s">%2$s %3$s</a>', $imageInfo['link_url'], $image, $full_caption, $_image_target );
|
54 |
-
|
55 |
-
} else {
|
56 |
-
|
57 |
-
echo $image . $full_caption;
|
58 |
-
}
|
59 |
-
|
60 |
-
echo '</div>';
|
61 |
-
endforeach;
|
62 |
-
?>
|
63 |
-
|
64 |
-
</div>
|
65 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/templates/public/images-carousel.php
DELETED
@@ -1,89 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// If this file is called directly, abort.
|
3 |
-
if ( ! defined( 'WPINC' ) ) {
|
4 |
-
die;
|
5 |
-
}
|
6 |
-
|
7 |
-
$images_ids = array_filter( explode( ',', get_post_meta( $id, '_wpdh_image_ids', true ) ) );
|
8 |
-
if ( count( $images_ids ) < 1 ) {
|
9 |
-
return;
|
10 |
-
}
|
11 |
-
$_image_target = get_post_meta( $id, '_image_target', true );
|
12 |
-
$_image_target = empty( $_image_target ) ? '_self' : $_image_target;
|
13 |
-
$_image_size = get_post_meta( $id, '_image_size', true );
|
14 |
-
$_lazy_load_image = get_post_meta( $id, '_lazy_load_image', true );
|
15 |
-
$_show_attachment_title = get_post_meta( $id, '_show_attachment_title', true );
|
16 |
-
$_show_attachment_caption = get_post_meta( $id, '_show_attachment_caption', true );
|
17 |
-
$_show_lightbox = get_post_meta( $id, '_image_lightbox', true );
|
18 |
-
|
19 |
-
?>
|
20 |
-
<div class="carousel-slider-outer carousel-slider-outer-images carousel-slider-outer-<?php echo $id; ?>">
|
21 |
-
<?php carousel_slider_inline_style( $id ); ?>
|
22 |
-
<div <?php echo join( " ", $this->carousel_options( $id ) ); ?>>
|
23 |
-
<?php
|
24 |
-
foreach ( $images_ids as $image_id ):
|
25 |
-
|
26 |
-
$_post = get_post( $image_id );
|
27 |
-
do_action( 'carousel_slider_image_gallery_loop', $_post );
|
28 |
-
|
29 |
-
$image_title = $_post->post_title;
|
30 |
-
$image_caption = $_post->post_excerpt;
|
31 |
-
$image_description = $_post->post_content;
|
32 |
-
$image_alt_text = trim( strip_tags( get_post_meta( $image_id, '_wp_attachment_image_alt', true ) ) );
|
33 |
-
$image_link_url = get_post_meta( $image_id, "_carousel_slider_link_url", true );
|
34 |
-
|
35 |
-
echo '<div class="carousel-slider__item">';
|
36 |
-
|
37 |
-
$title = sprintf( '<h4 class="title">%1$s</h4>', $image_title );
|
38 |
-
$caption = sprintf( '<p class="caption">%1$s</p>', $image_caption );
|
39 |
-
|
40 |
-
if ( $_show_attachment_title == 'on' && $_show_attachment_caption == 'on' ) {
|
41 |
-
|
42 |
-
$full_caption = sprintf( '<div class="carousel-slider__caption">%1$s%2$s</div>', $title, $caption );
|
43 |
-
|
44 |
-
} elseif ( $_show_attachment_title == 'on' ) {
|
45 |
-
|
46 |
-
$full_caption = sprintf( '<div class="carousel-slider__caption">%s</div>', $title );
|
47 |
-
|
48 |
-
} elseif ( $_show_attachment_caption == 'on' ) {
|
49 |
-
|
50 |
-
$full_caption = sprintf( '<div class="carousel-slider__caption">%s</div>', $caption );
|
51 |
-
|
52 |
-
} else {
|
53 |
-
$full_caption = '';
|
54 |
-
}
|
55 |
-
|
56 |
-
if ( $_lazy_load_image == 'on' ) {
|
57 |
-
|
58 |
-
$image_src = wp_get_attachment_image_src( $image_id, $_image_size );
|
59 |
-
$image = sprintf(
|
60 |
-
'<img class="owl-lazy" data-src="%1$s" width="%2$s" height="%3$s" alt="%4$s" />',
|
61 |
-
$image_src[0],
|
62 |
-
$image_src[1],
|
63 |
-
$image_src[2],
|
64 |
-
$image_alt_text
|
65 |
-
);
|
66 |
-
|
67 |
-
} else {
|
68 |
-
$image = wp_get_attachment_image( $image_id, $_image_size, false, array( 'alt' => $image_alt_text ) );
|
69 |
-
}
|
70 |
-
|
71 |
-
if ( $_show_lightbox == 'on' ) {
|
72 |
-
wp_enqueue_script( 'magnific-popup' );
|
73 |
-
$image_src = wp_get_attachment_image_src( $image_id, 'full' );
|
74 |
-
echo sprintf( '<a href="%1$s" class="magnific-popup">%2$s%3$s</a>', esc_url( $image_src[0] ), $image, $full_caption, $id );
|
75 |
-
} elseif ( filter_var( $image_link_url, FILTER_VALIDATE_URL ) ) {
|
76 |
-
|
77 |
-
echo sprintf( '<a href="%1$s" target="%4$s">%2$s%3$s</a>', esc_url( $image_link_url ), $image, $full_caption, $_image_target );
|
78 |
-
|
79 |
-
} else {
|
80 |
-
|
81 |
-
echo $image . $full_caption;
|
82 |
-
}
|
83 |
-
|
84 |
-
echo '</div>';
|
85 |
-
|
86 |
-
endforeach;
|
87 |
-
?>
|
88 |
-
</div><!-- #id-## -->
|
89 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/templates/public/index.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// Code is Poetry
|
|
|
|
trunk/templates/public/post-carousel.php
DELETED
@@ -1,107 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// If this file is called directly, abort.
|
3 |
-
if ( ! defined( 'WPINC' ) ) {
|
4 |
-
die;
|
5 |
-
}
|
6 |
-
|
7 |
-
$_image_size = get_post_meta( $id, '_image_size', true );
|
8 |
-
$_nav_color = get_post_meta( $id, '_nav_color', true );
|
9 |
-
$_nav_active_color = get_post_meta( $id, '_nav_active_color', true );
|
10 |
-
$_lazy_load_image = get_post_meta( $id, '_lazy_load_image', true );
|
11 |
-
?>
|
12 |
-
<div class="carousel-slider-outer carousel-slider-outer-posts carousel-slider-outer-<?php echo $id; ?>">
|
13 |
-
<?php carousel_slider_inline_style( $id ); ?>
|
14 |
-
<div <?php echo join( " ", $this->carousel_options( $id ) ); ?>>
|
15 |
-
<?php
|
16 |
-
$posts = carousel_slider_posts( $id );
|
17 |
-
foreach ( $posts as $_post ):
|
18 |
-
global $post;
|
19 |
-
$post = $_post;
|
20 |
-
setup_postdata( $post );
|
21 |
-
$category = get_the_category( $post->ID );
|
22 |
-
|
23 |
-
do_action( 'carousel_slider_post_loop', $post, $category );
|
24 |
-
|
25 |
-
$html = '<div class="carousel-slider__post">';
|
26 |
-
$html .= '<div class="carousel-slider__post-content">';
|
27 |
-
$html .= '<div class="carousel-slider__post-header">';
|
28 |
-
// Post Thumbnail
|
29 |
-
$_permalink = esc_url( get_permalink( $post->ID ) );
|
30 |
-
$_thumb_id = get_post_thumbnail_id( $post->ID );
|
31 |
-
$_excerpt = wp_trim_words( wp_strip_all_tags( $post->post_content ), '20', ' ...' );
|
32 |
-
|
33 |
-
if ( has_post_thumbnail( $post ) ) {
|
34 |
-
$image_src = wp_get_attachment_image_src( $_thumb_id, $_image_size );
|
35 |
-
|
36 |
-
if ( $_lazy_load_image == 'on' ) {
|
37 |
-
|
38 |
-
$html .= sprintf( '<a href="%s" class="carousel-slider__post-image owl-lazy" data-src="%s"></a>', $_permalink, $image_src[0] );
|
39 |
-
} else {
|
40 |
-
|
41 |
-
$html .= sprintf( '<a href="%s" class="carousel-slider__post-image" style="background-image: url(%s)"></a>', $_permalink, $image_src[0] );
|
42 |
-
}
|
43 |
-
|
44 |
-
} else {
|
45 |
-
|
46 |
-
$html .= sprintf( '<a href="%s" class="carousel-slider__post-image"></a>', $_permalink );
|
47 |
-
}
|
48 |
-
|
49 |
-
// Post Title
|
50 |
-
$html .= sprintf( '<a class="carousel-slider__post-title" href="%s"><h1>%s</h1></a>', $_permalink, $post->post_title );
|
51 |
-
$html .= '</div>'; // End Post Header
|
52 |
-
$html .= '<div class="carousel-slider__post-excerpt">' . $_excerpt . '</div>';
|
53 |
-
$html .= '<footer class="carousel-slider__post-meta">';
|
54 |
-
$html .= '<div class="carousel-slider__post-excerpt-overlay"></div>';
|
55 |
-
$html .= '<div class="carousel-slider__post-publication-meta">';
|
56 |
-
$html .= '<div class="carousel-slider__post-details-info">';
|
57 |
-
|
58 |
-
// Post author
|
59 |
-
$_author_url = esc_url( get_author_posts_url( intval( $post->post_author ) ) );
|
60 |
-
$_author_name = esc_html( get_the_author_meta( 'display_name', intval( $post->post_author ) ) );
|
61 |
-
|
62 |
-
$html .= sprintf( '<div class="carousel-slider__post-author"><a class="carousel-slider__post-author-link" href="%s">%s</a></div>',
|
63 |
-
$_author_url,
|
64 |
-
$_author_name
|
65 |
-
);
|
66 |
-
// Post date
|
67 |
-
$_created = strtotime( $post->post_date );
|
68 |
-
$_modified = strtotime( $post->post_modified );
|
69 |
-
|
70 |
-
if ( $_created !== $_modified ) {
|
71 |
-
|
72 |
-
$html .= sprintf( '<time class="carousel-slider__post-publication-date" datetime="%s">%s</time>',
|
73 |
-
date_i18n( 'c', $_modified ),
|
74 |
-
date_i18n( get_option( 'date_format' ), $_modified )
|
75 |
-
);
|
76 |
-
|
77 |
-
} else {
|
78 |
-
|
79 |
-
$html .= sprintf( '<time class="carousel-slider__post-publication-date" datetime="%s">%s</time>',
|
80 |
-
date_i18n( 'c', $_created ),
|
81 |
-
date_i18n( get_option( 'date_format' ), $_created )
|
82 |
-
);
|
83 |
-
}
|
84 |
-
$html .= '</div>';
|
85 |
-
$html .= '</div>';
|
86 |
-
|
87 |
-
// Post catagory
|
88 |
-
$cat_link = isset( $category[0]->term_id ) ? esc_url( get_category_link( $category[0]->term_id ) ) : '';
|
89 |
-
$cat_title = isset( $category[0]->name ) ? esc_html( $category[0]->name ) : '';
|
90 |
-
$html .= '<div class="carousel-slider__post-category">';
|
91 |
-
if ( isset( $cat_link ) ) {
|
92 |
-
$html .= sprintf( '<a class="carousel-slider__post-category-link" href="%s">%s</a>',
|
93 |
-
$cat_link,
|
94 |
-
$cat_title
|
95 |
-
);
|
96 |
-
}
|
97 |
-
$html .= '</div>';
|
98 |
-
$html .= '</footer>';
|
99 |
-
$html .= '</div>';
|
100 |
-
$html .= '</div>';
|
101 |
-
|
102 |
-
echo apply_filters( 'carousel_slider_post', $html, $post, $category );
|
103 |
-
endforeach;
|
104 |
-
wp_reset_postdata();
|
105 |
-
?>
|
106 |
-
</div>
|
107 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/templates/public/product-carousel-2.php
DELETED
@@ -1,52 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// If this file is called directly, abort.
|
3 |
-
if ( ! defined( 'WPINC' ) ) {
|
4 |
-
die;
|
5 |
-
}
|
6 |
-
|
7 |
-
if ( ! carousel_slider_is_woocommerce_active() ) {
|
8 |
-
if ( current_user_can( 'manage_options' ) ) {
|
9 |
-
printf(
|
10 |
-
esc_html__( 'Carousel Slider needs %s to work for products carousel.', 'carousel-slider' ),
|
11 |
-
sprintf( '<a href="https://wordpress.org/plugins/woocommerce/" target="_blank" >%s</a>',
|
12 |
-
__( 'WooCommerce', 'carousel-slider' )
|
13 |
-
)
|
14 |
-
);
|
15 |
-
}
|
16 |
-
|
17 |
-
return;
|
18 |
-
}
|
19 |
-
?>
|
20 |
-
<div class="products carousel-slider-outer carousel-slider-outer-products carousel-slider-outer-<?php echo $id; ?>">
|
21 |
-
<?php carousel_slider_inline_style( $id ); ?>
|
22 |
-
<div <?php echo join( " ", $this->carousel_options( $id ) ); ?>>
|
23 |
-
<?php
|
24 |
-
global $post;
|
25 |
-
global $product;
|
26 |
-
$posts = carousel_slider_products( $id );
|
27 |
-
|
28 |
-
foreach ( $posts as $post ):
|
29 |
-
setup_postdata( $post );
|
30 |
-
$product = wc_get_product( $post );
|
31 |
-
|
32 |
-
echo '<div class="product carousel-slider__product">';
|
33 |
-
|
34 |
-
do_action( 'carousel_slider_product_loop', $product );
|
35 |
-
do_action( 'carousel_slider_before_shop_loop_item', $product );
|
36 |
-
|
37 |
-
do_action( 'woocommerce_before_shop_loop_item' );
|
38 |
-
do_action( 'woocommerce_before_shop_loop_item_title' );
|
39 |
-
do_action( 'woocommerce_shop_loop_item_title' );
|
40 |
-
do_action( 'woocommerce_after_shop_loop_item_title' );
|
41 |
-
do_action( 'woocommerce_after_shop_loop_item' );
|
42 |
-
|
43 |
-
do_action( 'carousel_slider_after_shop_loop_item', $product, $id );
|
44 |
-
|
45 |
-
echo '</div>';
|
46 |
-
|
47 |
-
endforeach;
|
48 |
-
wp_reset_postdata();
|
49 |
-
|
50 |
-
?>
|
51 |
-
</div>
|
52 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/templates/public/product-carousel.php
DELETED
@@ -1,121 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// If this file is called directly, abort.
|
3 |
-
if ( ! defined( 'WPINC' ) ) {
|
4 |
-
die;
|
5 |
-
}
|
6 |
-
|
7 |
-
if ( ! carousel_slider_is_woocommerce_active() ) {
|
8 |
-
if ( current_user_can( 'manage_options' ) ) {
|
9 |
-
printf(
|
10 |
-
esc_html__( 'Carousel Slider needs %s to work for products carousel.', 'carousel-slider' ),
|
11 |
-
sprintf( '<a href="https://wordpress.org/plugins/woocommerce/" target="_blank" >%s</a>',
|
12 |
-
__( 'WooCommerce', 'carousel-slider' )
|
13 |
-
)
|
14 |
-
);
|
15 |
-
}
|
16 |
-
|
17 |
-
return;
|
18 |
-
}
|
19 |
-
|
20 |
-
$posts = carousel_slider_products( $id );
|
21 |
-
|
22 |
-
|
23 |
-
$_image_size = get_post_meta( $id, '_image_size', true );
|
24 |
-
$_nav_color = get_post_meta( $id, '_nav_color', true );
|
25 |
-
$_nav_active_color = get_post_meta( $id, '_nav_active_color', true );
|
26 |
-
$_lazy_load_image = get_post_meta( $id, '_lazy_load_image', true );
|
27 |
-
|
28 |
-
$_product_title = get_post_meta( $id, '_product_title', true );
|
29 |
-
$_product_rating = get_post_meta( $id, '_product_rating', true );
|
30 |
-
$_product_price = get_post_meta( $id, '_product_price', true );
|
31 |
-
$_product_cart_btn = get_post_meta( $id, '_product_cart_button', true );
|
32 |
-
$_product_onsale = get_post_meta( $id, '_product_onsale', true );
|
33 |
-
$_product_wishlist = get_post_meta( $id, '_product_wishlist', true );
|
34 |
-
$_product_quick_view = get_post_meta( $id, '_product_quick_view', true );
|
35 |
-
?>
|
36 |
-
<div class="carousel-slider-outer carousel-slider-outer-products carousel-slider-outer-<?php echo $id; ?>">
|
37 |
-
<?php carousel_slider_inline_style( $id ); ?>
|
38 |
-
<div <?php echo join( " ", $this->carousel_options( $id ) ); ?>>
|
39 |
-
<?php foreach ( $posts as $post ): setup_postdata( $post ); ?>
|
40 |
-
<?php
|
41 |
-
$product = wc_get_product( $post->ID );
|
42 |
-
do_action( 'carousel_slider_product_loop', $product );
|
43 |
-
?>
|
44 |
-
<div class="product carousel-slider__product">
|
45 |
-
<?php
|
46 |
-
echo sprintf( '<a class="woocommerce-LoopProduct-link" href="%s">', get_the_permalink( $post->ID ) );
|
47 |
-
// Post Thumbnail
|
48 |
-
if ( has_post_thumbnail( $post->ID ) ) {
|
49 |
-
if ( $_lazy_load_image == 'on' ) {
|
50 |
-
$image_src = get_the_post_thumbnail_url( $post->ID, $_image_size );
|
51 |
-
echo sprintf( '<img class="owl-lazy" data-src="%1$s" />', $image_src );
|
52 |
-
} else {
|
53 |
-
$image_src = get_the_post_thumbnail_url( $post->ID, $_image_size );
|
54 |
-
echo sprintf( '<img src="%1$s" />', $image_src );
|
55 |
-
}
|
56 |
-
}
|
57 |
-
echo "</a>";
|
58 |
-
|
59 |
-
// Show title
|
60 |
-
if ( $_product_title == 'on' ) {
|
61 |
-
echo sprintf( '<a href="%1$s"><h3>%2$s</h3></a>', get_the_permalink( $post->ID ), get_the_title( $post->ID ) );
|
62 |
-
}
|
63 |
-
|
64 |
-
// Show Rating
|
65 |
-
if ( $_product_rating == 'on' ) {
|
66 |
-
if ( version_compare( WC_VERSION, "3.0.0", ">=" ) ) {
|
67 |
-
echo wc_get_rating_html( $product->get_average_rating() );
|
68 |
-
} else {
|
69 |
-
echo $product->get_rating_html();
|
70 |
-
}
|
71 |
-
|
72 |
-
}
|
73 |
-
// Sale Product batch
|
74 |
-
if ( $product->is_on_sale() && $_product_onsale == 'on' ) {
|
75 |
-
echo apply_filters( 'woocommerce_sale_flash', '<span class="onsale">' . __( 'Sale!', 'carousel-slider' ) . '</span>', $product );
|
76 |
-
}
|
77 |
-
// Show Price
|
78 |
-
if ( $_product_price == 'on' ) {
|
79 |
-
$price_html = '<span class="price">' . $product->get_price_html() . '</span>';
|
80 |
-
echo apply_filters( 'carousel_slider_product_price', $price_html, $product );
|
81 |
-
}
|
82 |
-
// Show button
|
83 |
-
if ( $_product_cart_btn == 'on' ) {
|
84 |
-
$button_html = '<div style="clear: both;"></div>';
|
85 |
-
ob_start();
|
86 |
-
if ( function_exists( 'woocommerce_template_loop_add_to_cart' ) ) {
|
87 |
-
woocommerce_template_loop_add_to_cart();
|
88 |
-
}
|
89 |
-
$button_html .= ob_get_contents();
|
90 |
-
ob_end_clean();
|
91 |
-
echo apply_filters( 'carousel_slider_product_add_to_cart', $button_html, $product );
|
92 |
-
}
|
93 |
-
|
94 |
-
if ( $_product_quick_view == 'on' ) {
|
95 |
-
wp_enqueue_script( 'magnific-popup' );
|
96 |
-
$ajax_url = wp_nonce_url( add_query_arg( array(
|
97 |
-
'ajax' => 'true',
|
98 |
-
'action' => 'carousel_slider_quick_view',
|
99 |
-
'product_id' => $post->ID,
|
100 |
-
'slide_id' => $id
|
101 |
-
), admin_url( 'admin-ajax.php' ) ), 'carousel_slider_quick_view' );
|
102 |
-
$quick_view_html = '<div style="clear: both;"></div>';
|
103 |
-
$quick_view_html .= sprintf(
|
104 |
-
'<a class="magnific-popup button quick_view" href="%1$s" data-product-id="%2$s">%3$s</a>',
|
105 |
-
$ajax_url,
|
106 |
-
$post->ID,
|
107 |
-
__( 'Quick View', 'carousel-slider' )
|
108 |
-
);
|
109 |
-
echo apply_filters( 'carousel_slider_product_quick_view', $quick_view_html, $product );
|
110 |
-
}
|
111 |
-
|
112 |
-
// WooCommerce Wishlist
|
113 |
-
if ( class_exists( 'YITH_WCWL' ) && $_product_wishlist == 'on' ) {
|
114 |
-
echo do_shortcode( '[yith_wcwl_add_to_wishlist]' );
|
115 |
-
}
|
116 |
-
?>
|
117 |
-
</div>
|
118 |
-
<?php endforeach;
|
119 |
-
wp_reset_postdata(); ?>
|
120 |
-
</div>
|
121 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/templates/public/video-carousel.php
DELETED
@@ -1,26 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// If this file is called directly, abort.
|
3 |
-
if ( ! defined( 'WPINC' ) ) {
|
4 |
-
die;
|
5 |
-
}
|
6 |
-
|
7 |
-
$_nav_color = get_post_meta( $id, '_nav_color', true );
|
8 |
-
$_nav_active_color = get_post_meta( $id, '_nav_active_color', true );
|
9 |
-
$_video_width = $this->get_meta( $id, '_video_width' );
|
10 |
-
$_video_height = $this->get_meta( $id, '_video_height' );
|
11 |
-
$_video_urls = array_filter( explode( ',', $this->get_meta( $id, '_video_url' ) ) );
|
12 |
-
|
13 |
-
if ( count( $_video_urls ) < 1 ) {
|
14 |
-
return;
|
15 |
-
}
|
16 |
-
?>
|
17 |
-
<div class="carousel-slider-outer carousel-slider-outer-videos carousel-slider-outer-<?php echo $id; ?>">
|
18 |
-
<?php carousel_slider_inline_style( $id ); ?>
|
19 |
-
<div <?php echo join( " ", $this->carousel_options( $id ) ); ?>>
|
20 |
-
<?php
|
21 |
-
foreach ( $_video_urls as $url ) {
|
22 |
-
echo $this->video_url( $url );
|
23 |
-
}
|
24 |
-
?>
|
25 |
-
</div>
|
26 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/widgets/index.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// Code is Poetry
|
|
|
|
trunk/widgets/widget-carousel_slider.php
DELETED
@@ -1,129 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
// If this file is called directly, abort.
|
3 |
-
if ( ! defined( 'WPINC' ) ) {
|
4 |
-
die;
|
5 |
-
}
|
6 |
-
|
7 |
-
class Carousel_Slider_Widget extends WP_Widget {
|
8 |
-
|
9 |
-
/**
|
10 |
-
* Sets up the widgets name etc
|
11 |
-
*/
|
12 |
-
public function __construct() {
|
13 |
-
$widget_ops = array(
|
14 |
-
'classname' => 'widget_carousel_slider',
|
15 |
-
'description' => __( 'The easiest way to create image, video, post and WooCommerce product carousel.', 'carousel-slider' ),
|
16 |
-
);
|
17 |
-
parent::__construct( 'widget_carousel_slider', __( 'Carousel Slider', 'carousel-slider' ), $widget_ops );
|
18 |
-
}
|
19 |
-
|
20 |
-
/**
|
21 |
-
* Outputs the content of the widget
|
22 |
-
*
|
23 |
-
* @param array $args Display arguments including 'before_title', 'after_title',
|
24 |
-
* 'before_widget', and 'after_widget'.
|
25 |
-
* @param array $instance The settings for the particular instance of the widget.
|
26 |
-
*/
|
27 |
-
public function widget( $args, $instance ) {
|
28 |
-
|
29 |
-
$title = isset( $instance['title'] ) ? esc_attr( $instance['title'] ) : null;
|
30 |
-
$carousel_id = isset( $instance['carousel_id'] ) ? absint( $instance['carousel_id'] ) : 0;
|
31 |
-
|
32 |
-
if ( ! $carousel_id ) {
|
33 |
-
return;
|
34 |
-
}
|
35 |
-
|
36 |
-
echo $args['before_widget'];
|
37 |
-
|
38 |
-
if ( ! empty( $title ) ) {
|
39 |
-
echo $args['before_title'] . $title . $args['after_title'];
|
40 |
-
}
|
41 |
-
|
42 |
-
echo do_shortcode( '[carousel_slide id=' . $carousel_id . ']' );
|
43 |
-
echo $args['after_widget'];
|
44 |
-
}
|
45 |
-
|
46 |
-
/**
|
47 |
-
* Outputs the settings update form.
|
48 |
-
*
|
49 |
-
* @param array $instance Current settings.
|
50 |
-
*
|
51 |
-
* @return string
|
52 |
-
*/
|
53 |
-
public function form( $instance ) {
|
54 |
-
$carousels = $this->carousels_list();
|
55 |
-
$carousel_id = ! empty( $instance['carousel_id'] ) ? absint( $instance['carousel_id'] ) : null;
|
56 |
-
$title = ! empty( $instance['title'] ) ? esc_attr( $instance['title'] ) : '';
|
57 |
-
|
58 |
-
if ( count( $carousels ) > 0 ) {
|
59 |
-
|
60 |
-
printf( '<p><label for="%1$s">%2$s</label>', $this->get_field_id( 'title' ), __( 'Title (optional):', 'carousel-slider' ) );
|
61 |
-
printf( '<input type="text" class="widefat" id="%1$s" name="%2$s" value="%3$s" /></p>', $this->get_field_id( 'title' ), $this->get_field_name( 'title' ), $title );
|
62 |
-
|
63 |
-
printf( '<p><label>%s</label>', __( 'Choose Slide', 'carousel-slider' ) );
|
64 |
-
printf( '<select class="widefat" name="%s">', $this->get_field_name( 'carousel_id' ) );
|
65 |
-
foreach ( $carousels as $carousel ) {
|
66 |
-
$selected = $carousel->id == $carousel_id ? 'selected="selected"' : '';
|
67 |
-
printf(
|
68 |
-
'<option value="%1$d" %3$s>%2$s</option>',
|
69 |
-
$carousel->id,
|
70 |
-
$carousel->title,
|
71 |
-
$selected
|
72 |
-
);
|
73 |
-
}
|
74 |
-
echo "</select></p>";
|
75 |
-
|
76 |
-
} else {
|
77 |
-
printf( '<p>%1$s <a href="' . admin_url( 'post-new.php?post_type=carousels' ) . '">%3$s</a> %2$s</p>',
|
78 |
-
__( 'You did not add any carousel slider yet.', 'carousel-slider' ),
|
79 |
-
__( 'to create a new carousel slider now.', 'carousel-slider' ),
|
80 |
-
__( 'click here', 'carousel-slider' )
|
81 |
-
);
|
82 |
-
}
|
83 |
-
}
|
84 |
-
|
85 |
-
/**
|
86 |
-
* Get the list of carousel sliders
|
87 |
-
*
|
88 |
-
* @return array
|
89 |
-
*/
|
90 |
-
private function carousels_list() {
|
91 |
-
$carousels = get_posts( array(
|
92 |
-
'post_type' => 'carousels',
|
93 |
-
'post_status' => 'publish',
|
94 |
-
'posts_per_page' => - 1,
|
95 |
-
'orderby' => 'date',
|
96 |
-
'order' => 'DESC',
|
97 |
-
) );
|
98 |
-
|
99 |
-
if ( count( $carousels ) < 1 ) {
|
100 |
-
return array();
|
101 |
-
}
|
102 |
-
|
103 |
-
return array_map( function ( $carousel ) {
|
104 |
-
return (object) array(
|
105 |
-
'id' => absint( $carousel->ID ),
|
106 |
-
'title' => esc_html( $carousel->post_title ),
|
107 |
-
);
|
108 |
-
}, $carousels );
|
109 |
-
}
|
110 |
-
|
111 |
-
/**
|
112 |
-
* Processing widget options on save
|
113 |
-
*
|
114 |
-
* @param array $new_instance The new options
|
115 |
-
* @param array $old_instance The previous options
|
116 |
-
*
|
117 |
-
* @return array
|
118 |
-
*/
|
119 |
-
public function update( $new_instance, $old_instance ) {
|
120 |
-
$old_instance['title'] = sanitize_text_field( $new_instance['title'] );
|
121 |
-
$old_instance['carousel_id'] = absint( $new_instance['carousel_id'] );
|
122 |
-
|
123 |
-
return $old_instance;
|
124 |
-
}
|
125 |
-
}
|
126 |
-
|
127 |
-
add_action( 'widgets_init', function () {
|
128 |
-
register_widget( 'Carousel_Slider_Widget' );
|
129 |
-
} );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|