Version Description
- Thank you for using plugin. We are working hard to make plugin more better.
- New Element: Filterable Gallery -> Display images with separate categories, Grid Styles and customize the overall design to ensure the extraordinary look.
- Accordion: Now you can add custom fontawesome icon for Default & Active, plus set text color & background when accordion is active.
- Timeline: Added the extra option for Text and Image.
- Redesign settings of "Info List".
- Advanced Carousel: Now you can set Background Color of "arrows" and custom font size of "dots". For further please check the Demo.
- Modal Popup: Padding option for content when It is displayed in Popup view.
- Image Swap: Remove gray border outline and addition of Border styling.
- Fixed some bugs.
Download this release
Release Info
Developer | nasir179125 |
Plugin | Mega Addons For WPBakery Page Builder (formerly Visual Composer) |
Version | 4.1.1 |
Comparing to | |
See all releases |
Code changes from version 4.0 to 4.1.1
- css/accordion.css +4 -1
- css/advanced-buttons.css +3 -3
- css/filterablegallery.css +375 -0
- css/infolist.css +2 -2
- css/int_banner.css +2 -2
- css/jquery.fancybox.min.css +1 -0
- css/slick-carousal.css +7 -8
- css/style.css +5 -4
- css/timeline.css +0 -5
- icons/filtergallery.png +0 -0
- includes/settings.php +21 -8
- index.php +3 -3
- js/accordion.js +8 -7
- js/custommixitup.js +23 -0
- js/jquery.fancybox.min.js +13 -0
- js/mixitup.min.js +18 -0
- main.php +4 -1
- readme.txt +126 -57
- render/accordion_father.php +76 -1
- render/accordion_son.php +6 -15
- render/advanced_btn.php +1 -1
- render/filterablegallery_wrap.php +393 -0
- render/filtergallery.php +216 -0
- render/image_swap.php +4 -4
- render/info_list_father.php +65 -6
- render/info_list_son.php +26 -72
- render/infobox.php +1 -1
- render/interactivebanner.php +14 -5
- render/modalPopup.php +29 -8
- render/texttyper.php +2 -2
- render/timeline_son.php +102 -23
- render/tm_carousel_father.php +71 -60
- render/tm_carousel_son.php +11 -1
css/accordion.css
CHANGED
@@ -5,10 +5,13 @@
|
|
5 |
padding-left: 20px;
|
6 |
cursor: pointer;
|
7 |
font-weight: normal;
|
|
|
|
|
|
|
8 |
|
9 |
}
|
10 |
.mega-accordion h3:focus {
|
11 |
-
outline:
|
12 |
}
|
13 |
.mega-accordion h3 span {
|
14 |
padding-right: 15px;
|
5 |
padding-left: 20px;
|
6 |
cursor: pointer;
|
7 |
font-weight: normal;
|
8 |
+
-webkit-transition: all .4s;
|
9 |
+
-moz-transition: all .4s;
|
10 |
+
transition: all .4s;
|
11 |
|
12 |
}
|
13 |
.mega-accordion h3:focus {
|
14 |
+
outline: none !important;
|
15 |
}
|
16 |
.mega-accordion h3 span {
|
17 |
padding-right: 15px;
|
css/advanced-buttons.css
CHANGED
@@ -22,9 +22,9 @@
|
|
22 |
}
|
23 |
|
24 |
.mega-uae-btn.hvr-fade {
|
25 |
-
-webkit-transition: all .
|
26 |
-
-moz-transition: all .
|
27 |
-
transition: all .
|
28 |
}
|
29 |
|
30 |
.mega-uae-btn:focus {
|
22 |
}
|
23 |
|
24 |
.mega-uae-btn.hvr-fade {
|
25 |
+
-webkit-transition: all .3s;
|
26 |
+
-moz-transition: all .3s;
|
27 |
+
transition: all .3s
|
28 |
}
|
29 |
|
30 |
.mega-uae-btn:focus {
|
css/filterablegallery.css
ADDED
@@ -0,0 +1,375 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.maw_portfolioGallery_ul {
|
2 |
+
list-style-type: none;
|
3 |
+
text-align: center;
|
4 |
+
}
|
5 |
+
|
6 |
+
.maw_portfolioGallery_ul li {
|
7 |
+
float: none;
|
8 |
+
background-color: #EAF1F8;
|
9 |
+
margin: 0 5px;
|
10 |
+
color: #454597;
|
11 |
+
cursor: pointer;
|
12 |
+
padding: 9px 26px;
|
13 |
+
border-radius: 5px;
|
14 |
+
font-size: 14px;
|
15 |
+
text-transform: uppercase;
|
16 |
+
display: inline-block;
|
17 |
+
text-align: center;
|
18 |
+
margin-bottom: 6px !important;
|
19 |
+
}
|
20 |
+
|
21 |
+
.maw_portfolioGallery_ul .mixitup-control-active {
|
22 |
+
background-color: #1DA1F5;
|
23 |
+
color: #fff;
|
24 |
+
}
|
25 |
+
|
26 |
+
/* Grid Masonry Breakpoints
|
27 |
+
---------------------------------------------------------------------- */
|
28 |
+
|
29 |
+
.maw_portfolioGallery_container {
|
30 |
+
overflow: hidden;
|
31 |
+
}
|
32 |
+
|
33 |
+
/* 2 Columns */
|
34 |
+
|
35 |
+
.maw_portfolioGallery_wrapper {
|
36 |
+
-webkit-column-count: ;
|
37 |
+
-moz-column-count: ;
|
38 |
+
column-count: ;
|
39 |
+
}
|
40 |
+
|
41 |
+
@media screen and (max-width: 961px) {
|
42 |
+
.maw_portfolioGallery_wrapper {
|
43 |
+
-webkit-column-count: ;
|
44 |
+
-moz-column-count: ;
|
45 |
+
column-count: ;
|
46 |
+
}
|
47 |
+
}
|
48 |
+
|
49 |
+
@media screen and (max-width: 480px) {
|
50 |
+
.maw_portfolioGallery_wrapper {
|
51 |
+
-webkit-column-count: ;
|
52 |
+
-moz-column-count: ;
|
53 |
+
column-count: ;
|
54 |
+
}
|
55 |
+
}
|
56 |
+
|
57 |
+
/* Fade Effect
|
58 |
+
---------------------------------------------------------------------- */
|
59 |
+
|
60 |
+
.ih_item_fade_effect {
|
61 |
+
overflow: hidden;
|
62 |
+
}
|
63 |
+
|
64 |
+
.ih_item_fade_effect .info {
|
65 |
+
right: 0;
|
66 |
+
text-align: center;
|
67 |
+
bottom: 0;
|
68 |
+
top: 0;
|
69 |
+
left: 0
|
70 |
+
}
|
71 |
+
|
72 |
+
.ih_item_fade_effect {
|
73 |
+
position: relative;
|
74 |
+
/*width: 100%;*/
|
75 |
+
height: 100%;
|
76 |
+
display: inline-block;
|
77 |
+
}
|
78 |
+
|
79 |
+
.ih_item_fade_effect .info {
|
80 |
+
position: absolute;
|
81 |
+
-webkit-backface-visibility: hidden;
|
82 |
+
backface-visibility: hidden;
|
83 |
+
}
|
84 |
+
|
85 |
+
.ih_item_fade_effect:hover .info{
|
86 |
+
/*opacity: 1 !important;*/
|
87 |
+
}
|
88 |
+
.ih_item_fade_effect:hover .img{
|
89 |
+
transform: scale(1.0) !important;
|
90 |
+
}
|
91 |
+
|
92 |
+
.ih_item_fade_effect .info {
|
93 |
+
background: ;
|
94 |
+
visibility: hidden;
|
95 |
+
opacity: 0 !important;
|
96 |
+
transition: opacity 1s linear;
|
97 |
+
transition: all .35s ease-in-out;
|
98 |
+
background-color: rgba(0,0,0,0.7);
|
99 |
+
}
|
100 |
+
|
101 |
+
.ih_item_fade_effect .a-tag:hover .info {
|
102 |
+
visibility: visible;
|
103 |
+
opacity: 1 !important;
|
104 |
+
}
|
105 |
+
|
106 |
+
.maw_portfolioGallery_ihe .portfolio_icon {
|
107 |
+
display: inline-block;
|
108 |
+
/*background-color: #ff622a;*/
|
109 |
+
color: #fff;
|
110 |
+
border-radius: 50px;
|
111 |
+
font-size: 17px;
|
112 |
+
width: 50px;
|
113 |
+
height: 50px;
|
114 |
+
line-height: 50px;
|
115 |
+
text-align: center;
|
116 |
+
padding: 0 !important;
|
117 |
+
}
|
118 |
+
|
119 |
+
|
120 |
+
|
121 |
+
/* Slide Up
|
122 |
+
---------------------------------------------------------------------- */
|
123 |
+
|
124 |
+
.ih_item_slide_up {
|
125 |
+
overflow: hidden;
|
126 |
+
display: inline-block;
|
127 |
+
}
|
128 |
+
|
129 |
+
.ih_item_slide_up .info {
|
130 |
+
right: 0;
|
131 |
+
text-align: center;
|
132 |
+
bottom: 0;
|
133 |
+
top: 0;
|
134 |
+
left: 0
|
135 |
+
}
|
136 |
+
|
137 |
+
.ih_item_slide_up {
|
138 |
+
position: relative;
|
139 |
+
/*width: 100%;*/
|
140 |
+
height: 100%;
|
141 |
+
}
|
142 |
+
|
143 |
+
.ih_item_slide_up .info {
|
144 |
+
position: absolute;
|
145 |
+
-webkit-backface-visibility: hidden;
|
146 |
+
backface-visibility: hidden
|
147 |
+
}
|
148 |
+
|
149 |
+
.ih_item_slide_up .img {
|
150 |
+
-webkit-transition: all 0.35s ease-in-out;
|
151 |
+
-moz-transition: all 0.35s ease-in-out;
|
152 |
+
transition: all 0.35s ease-in-out;
|
153 |
+
-webkit-transform: scale(1);
|
154 |
+
-moz-transform: scale(1);
|
155 |
+
-ms-transform: scale(1);
|
156 |
+
-o-transform: scale(1);
|
157 |
+
transform: scale(1);
|
158 |
+
}
|
159 |
+
.ih_item_slide_up .info {
|
160 |
+
background: #333333;
|
161 |
+
background: rgba(0, 0, 0, 0.6);
|
162 |
+
visibility: hidden;
|
163 |
+
opacity: 0;
|
164 |
+
-webkit-transition: all 0.35s ease-in-out;
|
165 |
+
-moz-transition: all 0.35s ease-in-out;
|
166 |
+
transition: all 0.35s ease-in-out;
|
167 |
+
}
|
168 |
+
.ih_item_slide_up .info p,
|
169 |
+
.ih_item_slide_up .info i {
|
170 |
+
font-size: 12px;
|
171 |
+
position: relative;
|
172 |
+
color: #bbb;
|
173 |
+
padding: 20px 20px 20px;
|
174 |
+
text-align: center;
|
175 |
+
|
176 |
+
}
|
177 |
+
.ih_item_slide_up .a-tag:hover .img {
|
178 |
+
-webkit-transform: scale(1);
|
179 |
+
-moz-transform: scale(1);
|
180 |
+
-ms-transform: scale(1);
|
181 |
+
-o-transform: scale(1);
|
182 |
+
transform: scale(1);
|
183 |
+
}
|
184 |
+
.ih_item_slide_up .a-tag:hover .info {
|
185 |
+
visibility: visible;
|
186 |
+
opacity: 1;
|
187 |
+
}
|
188 |
+
|
189 |
+
.ih_item_slide_up .info h1, .ih_item_slide_up .info h2, .ih_item_slide_up .info h3, .ih_item_slide_up .info h4,
|
190 |
+
.ih_item_slide_up .info h5, .ih_item_slide_up .info p, .ih_item_slide_up .info i, .ih_item_slide_up .info span{
|
191 |
+
-webkit-transition: all 0.25s 0.1s linear;
|
192 |
+
-moz-transition: all 0.25s 0.1s linear;
|
193 |
+
transition: all 0.25s 0.1s linear;
|
194 |
+
-webkit-transform: translateY(100%);
|
195 |
+
-moz-transform: translateY(100%);
|
196 |
+
-ms-transform: translateY(100%);
|
197 |
+
-o-transform: translateY(100%);
|
198 |
+
transform: translateY(100%);
|
199 |
+
}
|
200 |
+
.ih_item_slide_up .a-tag:hover .info * {
|
201 |
+
-webkit-transform: translateY(0);
|
202 |
+
-moz-transform: translateY(0);
|
203 |
+
-ms-transform: translateY(0);
|
204 |
+
-o-transform: translateY(0);
|
205 |
+
transform: translateY(0);
|
206 |
+
}
|
207 |
+
|
208 |
+
|
209 |
+
/* Zoom In
|
210 |
+
---------------------------------------------------------------------- */
|
211 |
+
|
212 |
+
.ih_item_zoom_in {
|
213 |
+
overflow: hidden;
|
214 |
+
display: inline-block;
|
215 |
+
}
|
216 |
+
|
217 |
+
.ih_item_zoom_in .info {
|
218 |
+
right: 0;
|
219 |
+
text-align: center;
|
220 |
+
bottom: 0;
|
221 |
+
top: 0;
|
222 |
+
left: 0
|
223 |
+
}
|
224 |
+
|
225 |
+
.ih_item_zoom_in {
|
226 |
+
position: relative;
|
227 |
+
/*width: 100%;*/
|
228 |
+
height: 100%;
|
229 |
+
}
|
230 |
+
|
231 |
+
.ih_item_zoom_in .info {
|
232 |
+
position: absolute;
|
233 |
+
-webkit-backface-visibility: hidden;
|
234 |
+
backface-visibility: hidden
|
235 |
+
}
|
236 |
+
|
237 |
+
.ih_item_zoom_in .img {
|
238 |
+
opacity: 1;
|
239 |
+
-webkit-transition: all 0.35s ease-in-out;
|
240 |
+
-moz-transition: all 0.35s ease-in-out;
|
241 |
+
transition: all 0.35s ease-in-out;
|
242 |
+
}
|
243 |
+
.ih_item_zoom_in .info {
|
244 |
+
background-color: rgba(0,0,0,0.7);
|
245 |
+
visibility: hidden;
|
246 |
+
opacity: 0;
|
247 |
+
-webkit-transition: all 0.35s ease-in-out;
|
248 |
+
-moz-transition: all 0.35s ease-in-out;
|
249 |
+
transition: all 0.35s ease-in-out;
|
250 |
+
}
|
251 |
+
.ih_item_zoom_in .info h3 {
|
252 |
+
text-transform: uppercase;
|
253 |
+
color: #fff;
|
254 |
+
text-align: center;
|
255 |
+
font-size: 17px;
|
256 |
+
padding: 0px;
|
257 |
+
margin: 10px 0 0 0;
|
258 |
+
-webkit-transition: all 0.35s 0.1s ease-in-out;
|
259 |
+
-moz-transition: all 0.35s 0.1s ease-in-out;
|
260 |
+
transition: all 0.35s 0.1s ease-in-out;
|
261 |
+
}
|
262 |
+
.ih_item_zoom_in .info p {
|
263 |
+
font-style: italic;
|
264 |
+
font-size: 12px;
|
265 |
+
position: relative;
|
266 |
+
color: #bbb;
|
267 |
+
padding: 20px 20px 20px;
|
268 |
+
text-align: center;
|
269 |
+
-webkit-transition: all 0.35s 0.15s linear;
|
270 |
+
-moz-transition: all 0.35s 0.15s linear;
|
271 |
+
transition: all 0.35s 0.15s linear;
|
272 |
+
}
|
273 |
+
.ih_item_zoom_in .a-tag:hover .img {
|
274 |
+
opacity: 1;
|
275 |
+
}
|
276 |
+
.ih_item_zoom_in .a-tag:hover .info {
|
277 |
+
visibility: visible;
|
278 |
+
opacity: 1;
|
279 |
+
}
|
280 |
+
|
281 |
+
.ih_item_zoom_in .img {
|
282 |
+
-webkit-transform: scale(1);
|
283 |
+
-moz-transform: scale(1);
|
284 |
+
-ms-transform: scale(1);
|
285 |
+
-o-transform: scale(1);
|
286 |
+
transform: scale(1);
|
287 |
+
}
|
288 |
+
.ih_item_zoom_in .info {
|
289 |
+
-webkit-transform: scale(0);
|
290 |
+
-moz-transform: scale(0);
|
291 |
+
-ms-transform: scale(0);
|
292 |
+
-o-transform: scale(0);
|
293 |
+
transform: scale(0);
|
294 |
+
}
|
295 |
+
.ih_item_zoom_in .info h3,
|
296 |
+
.ih_item_zoom_in .info p {
|
297 |
+
-webkit-transform: scale(0);
|
298 |
+
-moz-transform: scale(0);
|
299 |
+
-ms-transform: scale(0);
|
300 |
+
-o-transform: scale(0);
|
301 |
+
transform: scale(0);
|
302 |
+
}
|
303 |
+
.ih_item_zoom_in .a-tag:hover .img {
|
304 |
+
-webkit-transform: scale(1);
|
305 |
+
-moz-transform: scale(1);
|
306 |
+
-ms-transform: scale(1);
|
307 |
+
-o-transform: scale(1);
|
308 |
+
transform: scale(1);
|
309 |
+
}
|
310 |
+
.ih_item_zoom_in .a-tag:hover .info {
|
311 |
+
-webkit-transform: scale(1);
|
312 |
+
-moz-transform: scale(1);
|
313 |
+
-ms-transform: scale(1);
|
314 |
+
-o-transform: scale(1);
|
315 |
+
transform: scale(1);
|
316 |
+
}
|
317 |
+
.ih_item_zoom_in .a-tag:hover .info h3,
|
318 |
+
.ih_item_zoom_in .a-tag:hover .info p {
|
319 |
+
-webkit-transform: scale(1);
|
320 |
+
-moz-transform: scale(1);
|
321 |
+
-ms-transform: scale(1);
|
322 |
+
-o-transform: scale(1);
|
323 |
+
transform: scale(1);
|
324 |
+
}
|
325 |
+
|
326 |
+
/* Card Effect
|
327 |
+
---------------------------------------------------------------------- */
|
328 |
+
|
329 |
+
.ih_item_card_effect {
|
330 |
+
overflow: hidden;
|
331 |
+
display: inline-block;
|
332 |
+
}
|
333 |
+
|
334 |
+
.ih_item_card_effect .info {
|
335 |
+
right: 0;
|
336 |
+
text-align: center;
|
337 |
+
bottom: 0;
|
338 |
+
top: 0;
|
339 |
+
left: 0
|
340 |
+
}
|
341 |
+
|
342 |
+
.ih_item_card_effect {
|
343 |
+
position: relative;
|
344 |
+
/*width: 100%;*/
|
345 |
+
height: 100%;
|
346 |
+
}
|
347 |
+
|
348 |
+
.ih_item_card_effect .info {
|
349 |
+
position: absolute;
|
350 |
+
-webkit-backface-visibility: hidden;
|
351 |
+
backface-visibility: hidden
|
352 |
+
}
|
353 |
+
|
354 |
+
.ih_item_card_effect:hover .info{
|
355 |
+
/*opacity: 1 !important;*/
|
356 |
+
}
|
357 |
+
.ih_item_card_effect:hover .img{
|
358 |
+
transform: scale(1.0) !important;
|
359 |
+
}
|
360 |
+
|
361 |
+
.ih_item_card_effect .info {
|
362 |
+
background: ;
|
363 |
+
visibility: hidden;
|
364 |
+
opacity: 0 !important;
|
365 |
+
transition: opacity 1s linear;
|
366 |
+
transition: all .35s ease-in-out;
|
367 |
+
background-color: rgba(0,0,0,0.7) !important;
|
368 |
+
}
|
369 |
+
|
370 |
+
.ih_item_card_effect .a-tag:hover .info {
|
371 |
+
visibility: visible;
|
372 |
+
opacity: 1 !important;
|
373 |
+
}
|
374 |
+
|
375 |
+
|
css/infolist.css
CHANGED
@@ -128,8 +128,8 @@
|
|
128 |
}
|
129 |
|
130 |
.mega-info-list h2{
|
131 |
-
margin-bottom:
|
132 |
-
padding-bottom: 0
|
133 |
margin-top: 0px;
|
134 |
}
|
135 |
|
128 |
}
|
129 |
|
130 |
.mega-info-list h2{
|
131 |
+
margin-bottom: 0px;
|
132 |
+
padding-bottom: 0;
|
133 |
margin-top: 0px;
|
134 |
}
|
135 |
|
css/int_banner.css
CHANGED
@@ -13,8 +13,8 @@
|
|
13 |
.grid {
|
14 |
position: relative;
|
15 |
margin: 0 auto;
|
16 |
-
padding: 1px
|
17 |
-
max-width: 1000px
|
18 |
list-style: none;
|
19 |
text-align: center;
|
20 |
}
|
13 |
.grid {
|
14 |
position: relative;
|
15 |
margin: 0 auto;
|
16 |
+
/*padding: 1px;*/
|
17 |
+
/*max-width: 1000px;*/
|
18 |
list-style: none;
|
19 |
text-align: center;
|
20 |
}
|
css/jquery.fancybox.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
body.compensate-for-scrollbar{overflow:hidden}.fancybox-active{height:auto}.fancybox-is-hidden{left:-9999px;margin:0;position:absolute!important;top:-9999px;visibility:hidden}.fancybox-container{-webkit-backface-visibility:hidden;height:100%;left:0;outline:none;position:fixed;-webkit-tap-highlight-color:transparent;top:0;-ms-touch-action:manipulation;touch-action:manipulation;transform:translateZ(0);width:100%;z-index:99992}.fancybox-container *{box-sizing:border-box}.fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-stage{bottom:0;left:0;position:absolute;right:0;top:0}.fancybox-outer{-webkit-overflow-scrolling:touch;overflow-y:auto}.fancybox-bg{background:#50485b;opacity:0;transition-duration:inherit;transition-property:opacity;transition-timing-function:cubic-bezier(.47,0,.74,.71)}.fancybox-is-open .fancybox-bg{opacity:.9;transition-timing-function:cubic-bezier(.22,.61,.36,1)}.fancybox-caption,.fancybox-infobar,.fancybox-navigation .fancybox-button,.fancybox-toolbar{direction:ltr;opacity:0;position:absolute;transition:opacity .25s ease,visibility 0s ease .25s;visibility:hidden;z-index:99997}.fancybox-show-caption .fancybox-caption,.fancybox-show-infobar .fancybox-infobar,.fancybox-show-nav .fancybox-navigation .fancybox-button,.fancybox-show-toolbar .fancybox-toolbar{opacity:1;transition:opacity .25s ease 0s,visibility 0s ease 0s;visibility:visible}.fancybox-infobar{color:#ccc;font-size:13px;-webkit-font-smoothing:subpixel-antialiased;height:44px;left:0;line-height:44px;min-width:44px;mix-blend-mode:difference;padding:0 10px;pointer-events:none;top:0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.fancybox-toolbar{right:0;top:0}.fancybox-stage{direction:ltr;overflow:visible;transform:translateZ(0);z-index:99994}.fancybox-is-open .fancybox-stage{overflow:hidden}.fancybox-slide{-webkit-backface-visibility:hidden;display:none;height:100%;left:0;outline:none;overflow:auto;-webkit-overflow-scrolling:touch;padding:44px;position:absolute;text-align:center;top:0;transition-property:transform,opacity;white-space:normal;width:100%;z-index:99994}.fancybox-slide:before{content:"";display:inline-block;font-size:0;height:100%;vertical-align:middle;width:0}.fancybox-is-sliding .fancybox-slide,.fancybox-slide--current,.fancybox-slide--next,.fancybox-slide--previous{display:block}.fancybox-slide--image{overflow:hidden;padding:44px 0}.fancybox-slide--image:before{display:none}.fancybox-slide--html{padding:6px}.fancybox-content{background:#fff;display:inline-block;margin:0;max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch;padding:44px;position:relative;text-align:left;vertical-align:middle}.fancybox-slide--image .fancybox-content{animation-timing-function:cubic-bezier(.5,0,.14,1);-webkit-backface-visibility:hidden;background:transparent;background-repeat:no-repeat;background-size:100% 100%;left:0;max-width:none;overflow:visible;padding:0;position:absolute;top:0;transform-origin:top left;transition-property:transform,opacity;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:99995}.fancybox-can-zoomOut .fancybox-content{cursor:zoom-out}.fancybox-can-zoomIn .fancybox-content{cursor:zoom-in}.fancybox-can-pan .fancybox-content,.fancybox-can-swipe .fancybox-content{cursor:grab}.fancybox-is-grabbing .fancybox-content{cursor:grabbing}.fancybox-container [data-selectable=true]{cursor:text}.fancybox-image,.fancybox-spaceball{background:transparent;border:0;height:100%;left:0;margin:0;max-height:none;max-width:none;padding:0;position:absolute;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.fancybox-spaceball{z-index:1}.fancybox-slide--iframe .fancybox-content,.fancybox-slide--map .fancybox-content,.fancybox-slide--pdf .fancybox-content,.fancybox-slide--video .fancybox-content{height:100%;overflow:visible;padding:0;width:100%}.fancybox-slide--video .fancybox-content{background:#000}.fancybox-slide--map .fancybox-content{background:#e5e3df}.fancybox-slide--iframe .fancybox-content{background:#fff}.fancybox-iframe,.fancybox-video{background:transparent;border:0;display:block;height:100%;margin:0;overflow:hidden;padding:0;width:100%}.fancybox-iframe{left:0;position:absolute;top:0}.fancybox-error{background:#fff;cursor:default;max-width:400px;padding:40px;width:100%}.fancybox-error p{color:#444;font-size:16px;line-height:20px;margin:0;padding:0}.fancybox-button{background:rgba(30,30,30,.6);border:0;border-radius:0;box-shadow:none;cursor:pointer;display:inline-block;height:44px;margin:0;padding:10px;position:relative;transition:color .2s;vertical-align:top;visibility:inherit;width:44px}.fancybox-button,.fancybox-button:link,.fancybox-button:visited{color:#ccc}.fancybox-button:hover{color:#fff}.fancybox-button:focus{outline:none}.fancybox-button.fancybox-focus{outline:1px dotted}.fancybox-button[disabled],.fancybox-button[disabled]:hover{color:#888;cursor:default;outline:none}.fancybox-button div{height:100%}.fancybox-button svg{display:block;height:100%;overflow:visible;position:relative;width:100%}.fancybox-button svg path{fill:currentColor;stroke-width:0}.fancybox-button--fsenter svg:nth-child(2),.fancybox-button--fsexit svg:first-child,.fancybox-button--pause svg:first-child,.fancybox-button--play svg:nth-child(2){display:none}.fancybox-progress{background:#ff5268;height:2px;left:0;position:absolute;right:0;top:0;transform:scaleX(0);transform-origin:0;transition-property:transform;transition-timing-function:linear;z-index:99998}.fancybox-close-small{background:transparent;border:0;border-radius:0;color:#ccc;cursor:pointer;opacity:.8;padding:8px;position:absolute;right:-12px;top:-44px;z-index:401}.fancybox-close-small:hover{color:#fff;opacity:1}.fancybox-slide--html .fancybox-close-small{color:currentColor;padding:10px;right:0;top:0}.fancybox-slide--image.fancybox-is-scaling .fancybox-content{overflow:hidden}.fancybox-is-scaling .fancybox-close-small,.fancybox-is-zoomable.fancybox-can-pan .fancybox-close-small{display:none}.fancybox-navigation .fancybox-button{background-clip:content-box;height:100px;opacity:0;position:absolute;top:calc(50% - 50px);width:70px}.fancybox-navigation .fancybox-button div{padding:7px}.fancybox-navigation .fancybox-button--arrow_left{left:0;left:env(safe-area-inset-left);padding:31px 26px 31px 6px}.fancybox-navigation .fancybox-button--arrow_right{padding:31px 6px 31px 26px;right:0;right:env(safe-area-inset-right)}.fancybox-caption{background:linear-gradient(0deg,rgba(0,0,0,.85) 0,rgba(0,0,0,.3) 50%,rgba(0,0,0,.15) 65%,rgba(0,0,0,.075) 75.5%,rgba(0,0,0,.037) 82.85%,rgba(0,0,0,.019) 88%,transparent);bottom:0;color:#eee;font-size:14px;font-weight:400;left:0;line-height:1.5;padding:75px 44px 25px;pointer-events:none;right:0;text-align:center;z-index:99996}@supports (padding:max(0px)){.fancybox-caption{padding:75px max(44px,env(safe-area-inset-right)) max(25px,env(safe-area-inset-bottom)) max(44px,env(safe-area-inset-left))}}.fancybox-caption--separate{margin-top:-50px}.fancybox-caption__body{max-height:50vh;overflow:auto;pointer-events:all}.fancybox-caption a,.fancybox-caption a:link,.fancybox-caption a:visited{color:#ccc;text-decoration:none}.fancybox-caption a:hover{color:#fff;text-decoration:underline}.fancybox-loading{animation:a 1s linear infinite;background:transparent;border:4px solid #888;border-bottom-color:#fff;border-radius:50%;height:50px;left:50%;margin:-25px 0 0 -25px;opacity:.7;padding:0;position:absolute;top:50%;width:50px;z-index:99999}@keyframes a{to{transform:rotate(1turn)}}.fancybox-animated{transition-timing-function:cubic-bezier(0,0,.25,1)}.fancybox-fx-slide.fancybox-slide--previous{opacity:0;transform:translate3d(-100%,0,0)}.fancybox-fx-slide.fancybox-slide--next{opacity:0;transform:translate3d(100%,0,0)}.fancybox-fx-slide.fancybox-slide--current{opacity:1;transform:translateZ(0)}.fancybox-fx-fade.fancybox-slide--next,.fancybox-fx-fade.fancybox-slide--previous{opacity:0;transition-timing-function:cubic-bezier(.19,1,.22,1)}.fancybox-fx-fade.fancybox-slide--current{opacity:1}.fancybox-fx-zoom-in-out.fancybox-slide--previous{opacity:0;transform:scale3d(1.5,1.5,1.5)}.fancybox-fx-zoom-in-out.fancybox-slide--next{opacity:0;transform:scale3d(.5,.5,.5)}.fancybox-fx-zoom-in-out.fancybox-slide--current{opacity:1;transform:scaleX(1)}.fancybox-fx-rotate.fancybox-slide--previous{opacity:0;transform:rotate(-1turn)}.fancybox-fx-rotate.fancybox-slide--next{opacity:0;transform:rotate(1turn)}.fancybox-fx-rotate.fancybox-slide--current{opacity:1;transform:rotate(0deg)}.fancybox-fx-circular.fancybox-slide--previous{opacity:0;transform:scale3d(0,0,0) translate3d(-100%,0,0)}.fancybox-fx-circular.fancybox-slide--next{opacity:0;transform:scale3d(0,0,0) translate3d(100%,0,0)}.fancybox-fx-circular.fancybox-slide--current{opacity:1;transform:scaleX(1) translateZ(0)}.fancybox-fx-tube.fancybox-slide--previous{transform:translate3d(-100%,0,0) scale(.1) skew(-10deg)}.fancybox-fx-tube.fancybox-slide--next{transform:translate3d(100%,0,0) scale(.1) skew(10deg)}.fancybox-fx-tube.fancybox-slide--current{transform:translateZ(0) scale(1)}@media (max-height:576px){.fancybox-slide{padding-left:6px;padding-right:6px}.fancybox-slide--image{padding:6px 0}.fancybox-close-small{right:-6px}.fancybox-slide--image .fancybox-close-small{background:#4e4e4e;color:#f2f4f6;height:36px;opacity:1;padding:6px;right:0;top:0;width:36px}.fancybox-caption{padding-left:12px;padding-right:12px}@supports (padding:max(0px)){.fancybox-caption{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}}}.fancybox-share{background:#f4f4f4;border-radius:3px;max-width:90%;padding:30px;text-align:center}.fancybox-share h1{color:#222;font-size:35px;font-weight:700;margin:0 0 20px}.fancybox-share p{margin:0;padding:0}.fancybox-share__button{border:0;border-radius:3px;display:inline-block;font-size:14px;font-weight:700;line-height:40px;margin:0 5px 10px;min-width:130px;padding:0 15px;text-decoration:none;transition:all .2s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.fancybox-share__button:link,.fancybox-share__button:visited{color:#fff}.fancybox-share__button:hover{text-decoration:none}.fancybox-share__button--fb{background:#3b5998}.fancybox-share__button--fb:hover{background:#344e86}.fancybox-share__button--pt{background:#bd081d}.fancybox-share__button--pt:hover{background:#aa0719}.fancybox-share__button--tw{background:#1da1f2}.fancybox-share__button--tw:hover{background:#0d95e8}.fancybox-share__button svg{height:25px;margin-right:7px;position:relative;top:-1px;vertical-align:middle;width:25px}.fancybox-share__button svg path{fill:#fff}.fancybox-share__input{background:transparent;border:0;border-bottom:1px solid #d7d7d7;border-radius:0;color:#5d5b5b;font-size:14px;margin:10px 0 0;outline:none;padding:10px 15px;width:100%}.fancybox-thumbs{background:#ddd;bottom:0;display:none;margin:0;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;padding:2px 2px 4px;position:absolute;right:0;-webkit-tap-highlight-color:rgba(0,0,0,0);top:0;width:212px;z-index:99995}.fancybox-thumbs-x{overflow-x:auto;overflow-y:hidden}.fancybox-show-thumbs .fancybox-thumbs{display:block}.fancybox-show-thumbs .fancybox-inner{right:212px}.fancybox-thumbs__list{font-size:0;height:100%;list-style:none;margin:0;overflow-x:hidden;overflow-y:auto;padding:0;position:absolute;position:relative;white-space:nowrap;width:100%}.fancybox-thumbs-x .fancybox-thumbs__list{overflow:hidden}.fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar{width:7px}.fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar-track{background:#fff;border-radius:10px;box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar-thumb{background:#2a2a2a;border-radius:10px}.fancybox-thumbs__list a{-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:rgba(0,0,0,.1);background-position:50%;background-repeat:no-repeat;background-size:cover;cursor:pointer;float:left;height:75px;margin:2px;max-height:calc(100% - 8px);max-width:calc(50% - 4px);outline:none;overflow:hidden;padding:0;position:relative;-webkit-tap-highlight-color:transparent;width:100px}.fancybox-thumbs__list a:before{border:6px solid #ff5268;bottom:0;content:"";left:0;opacity:0;position:absolute;right:0;top:0;transition:all .2s cubic-bezier(.25,.46,.45,.94);z-index:99991}.fancybox-thumbs__list a:focus:before{opacity:.5}.fancybox-thumbs__list a.fancybox-thumbs-active:before{opacity:1}@media (max-width:576px){.fancybox-thumbs{width:110px}.fancybox-show-thumbs .fancybox-inner{right:110px}.fancybox-thumbs__list a{max-width:calc(100% - 10px)}}
|
css/slick-carousal.css
CHANGED
@@ -29,9 +29,7 @@
|
|
29 |
margin-top: 20px;
|
30 |
}
|
31 |
|
32 |
-
.content-over-slider .slick-slide .content-section
|
33 |
-
.content-over-slider .slick-slide .content-section p,
|
34 |
-
.content-over-slider .slick-slide .content-section .ultimate_carousel_btn {
|
35 |
padding: 0 140px;
|
36 |
}
|
37 |
|
@@ -263,7 +261,7 @@
|
|
263 |
|
264 |
.slick-next
|
265 |
{
|
266 |
-
right:
|
267 |
z-index: 99;
|
268 |
}
|
269 |
[dir='rtl'] .slick-next
|
@@ -409,10 +407,8 @@
|
|
409 |
==========================================*/
|
410 |
|
411 |
@media only screen and (max-width: 768px) {
|
412 |
-
.content-over-slider .slick-slide .content-section
|
413 |
-
|
414 |
-
.content-over-slider .slick-slide .content-section .ultimate_carousel_btn {
|
415 |
-
padding: 0 60px;
|
416 |
}
|
417 |
.slick-slider img {
|
418 |
height: auto !important;
|
@@ -429,6 +425,9 @@
|
|
429 |
.tm-slider .carousel_btn_span a {
|
430 |
padding: 6px 20px !important;
|
431 |
}
|
|
|
|
|
|
|
432 |
.content-over-slider .slick-slide .content-section .carousel_btn_span a {
|
433 |
margin-top: 10px;
|
434 |
}
|
29 |
margin-top: 20px;
|
30 |
}
|
31 |
|
32 |
+
.content-over-slider .slick-slide .content-section *{
|
|
|
|
|
33 |
padding: 0 140px;
|
34 |
}
|
35 |
|
261 |
|
262 |
.slick-next
|
263 |
{
|
264 |
+
right: 53px !important;
|
265 |
z-index: 99;
|
266 |
}
|
267 |
[dir='rtl'] .slick-next
|
407 |
==========================================*/
|
408 |
|
409 |
@media only screen and (max-width: 768px) {
|
410 |
+
.content-over-slider .slick-slide .content-section {
|
411 |
+
padding: 0 60px !important;
|
|
|
|
|
412 |
}
|
413 |
.slick-slider img {
|
414 |
height: auto !important;
|
425 |
.tm-slider .carousel_btn_span a {
|
426 |
padding: 6px 20px !important;
|
427 |
}
|
428 |
+
.content-over-slider .slick-slide .content-section {
|
429 |
+
padding: 0 30px !important;
|
430 |
+
}
|
431 |
.content-over-slider .slick-slide .content-section .carousel_btn_span a {
|
432 |
margin-top: 10px;
|
433 |
}
|
css/style.css
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
|
12 |
.mega-model-popup {
|
13 |
border-style: solid;
|
14 |
-
border-width:
|
15 |
border-radius: 0px;
|
16 |
border-color: #333333;
|
17 |
-webkit-box-shadow: 0 0 7px #404040;
|
@@ -20,9 +20,9 @@
|
|
20 |
box-shadow: 0 0 7px #404040;
|
21 |
}
|
22 |
.modal-popup-box .model-popup-btn {
|
23 |
-
-webkit-transition: all 0.
|
24 |
-
-moz-transition: all 0.
|
25 |
-
transition: all 0.
|
26 |
cursor: pointer;
|
27 |
}
|
28 |
.mega-model-popup h2{
|
@@ -31,6 +31,7 @@
|
|
31 |
.mega-model-popup img {
|
32 |
max-width: 100%;
|
33 |
padding: 2px 0 0 2px;
|
|
|
34 |
}
|
35 |
.b-close {
|
36 |
box-shadow: none;
|
11 |
|
12 |
.mega-model-popup {
|
13 |
border-style: solid;
|
14 |
+
border-width: 1px;
|
15 |
border-radius: 0px;
|
16 |
border-color: #333333;
|
17 |
-webkit-box-shadow: 0 0 7px #404040;
|
20 |
box-shadow: 0 0 7px #404040;
|
21 |
}
|
22 |
.modal-popup-box .model-popup-btn {
|
23 |
+
-webkit-transition: all 0.4s;
|
24 |
+
-moz-transition: all 0.4s;
|
25 |
+
transition: all 0.4s;
|
26 |
cursor: pointer;
|
27 |
}
|
28 |
.mega-model-popup h2{
|
31 |
.mega-model-popup img {
|
32 |
max-width: 100%;
|
33 |
padding: 2px 0 0 2px;
|
34 |
+
margin-bottom: 0;
|
35 |
}
|
36 |
.b-close {
|
37 |
box-shadow: none;
|
css/timeline.css
CHANGED
@@ -8,11 +8,6 @@ html * {
|
|
8 |
-moz-osx-font-smoothing: grayscale;
|
9 |
}
|
10 |
|
11 |
-
*, *:after, *:before {
|
12 |
-
-webkit-box-sizing: border-box;
|
13 |
-
-moz-box-sizing: border-box;
|
14 |
-
box-sizing: border-box;
|
15 |
-
}
|
16 |
.cd-timeline-content .cd-read-more {
|
17 |
color: #acb7c0;
|
18 |
text-decoration: none;
|
8 |
-moz-osx-font-smoothing: grayscale;
|
9 |
}
|
10 |
|
|
|
|
|
|
|
|
|
|
|
11 |
.cd-timeline-content .cd-read-more {
|
12 |
color: #acb7c0;
|
13 |
text-decoration: none;
|
icons/filtergallery.png
ADDED
Binary file
|
includes/settings.php
CHANGED
@@ -96,8 +96,8 @@
|
|
96 |
<th>Info Circle</th>
|
97 |
<td>
|
98 |
<div class="onoffswitch">
|
99 |
-
<input type="checkbox" name="info_circle" class="onoffswitch-checkbox" id="
|
100 |
-
<label class="onoffswitch-label" for="
|
101 |
<span class="onoffswitch-inner"></span>
|
102 |
<span class="onoffswitch-switch"></span>
|
103 |
</label>
|
@@ -211,8 +211,8 @@
|
|
211 |
<th>Highlight Box</th>
|
212 |
<td>
|
213 |
<div class="onoffswitch">
|
214 |
-
<input type="checkbox" name="highlight_box" class="onoffswitch-checkbox" id="
|
215 |
-
<label class="onoffswitch-label" for="
|
216 |
<span class="onoffswitch-inner"></span>
|
217 |
<span class="onoffswitch-switch"></span>
|
218 |
</label>
|
@@ -293,8 +293,8 @@
|
|
293 |
<th>Image Swap</th>
|
294 |
<td>
|
295 |
<div class="onoffswitch">
|
296 |
-
<input type="checkbox" name="img_swap" class="onoffswitch-checkbox" id="
|
297 |
-
<label class="onoffswitch-label" for="
|
298 |
<span class="onoffswitch-inner"></span>
|
299 |
<span class="onoffswitch-switch"></span>
|
300 |
</label>
|
@@ -303,8 +303,21 @@
|
|
303 |
<th>Accordions</th>
|
304 |
<td>
|
305 |
<div class="onoffswitch">
|
306 |
-
<input type="checkbox" name="accordion" class="onoffswitch-checkbox" id="
|
307 |
-
<label class="onoffswitch-label" for="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
308 |
<span class="onoffswitch-inner"></span>
|
309 |
<span class="onoffswitch-switch"></span>
|
310 |
</label>
|
96 |
<th>Info Circle</th>
|
97 |
<td>
|
98 |
<div class="onoffswitch">
|
99 |
+
<input type="checkbox" name="info_circle" class="onoffswitch-checkbox" id="myonoffswitch8" <?php echo check_status('info_circle', 'on') ?>>
|
100 |
+
<label class="onoffswitch-label" for="myonoffswitch8">
|
101 |
<span class="onoffswitch-inner"></span>
|
102 |
<span class="onoffswitch-switch"></span>
|
103 |
</label>
|
211 |
<th>Highlight Box</th>
|
212 |
<td>
|
213 |
<div class="onoffswitch">
|
214 |
+
<input type="checkbox" name="highlight_box" class="onoffswitch-checkbox" id="myonoffswitch18" <?php echo check_status('highlight_box', 'on') ?>>
|
215 |
+
<label class="onoffswitch-label" for="myonoffswitch18">
|
216 |
<span class="onoffswitch-inner"></span>
|
217 |
<span class="onoffswitch-switch"></span>
|
218 |
</label>
|
293 |
<th>Image Swap</th>
|
294 |
<td>
|
295 |
<div class="onoffswitch">
|
296 |
+
<input type="checkbox" name="img_swap" class="onoffswitch-checkbox" id="myonoffswitch25" <?php echo check_status('img_swap', 'on') ?>>
|
297 |
+
<label class="onoffswitch-label" for="myonoffswitch25">
|
298 |
<span class="onoffswitch-inner"></span>
|
299 |
<span class="onoffswitch-switch"></span>
|
300 |
</label>
|
303 |
<th>Accordions</th>
|
304 |
<td>
|
305 |
<div class="onoffswitch">
|
306 |
+
<input type="checkbox" name="accordion" class="onoffswitch-checkbox" id="myonoffswitch26" <?php echo check_status('accordion', 'on') ?>>
|
307 |
+
<label class="onoffswitch-label" for="myonoffswitch26">
|
308 |
+
<span class="onoffswitch-inner"></span>
|
309 |
+
<span class="onoffswitch-switch"></span>
|
310 |
+
</label>
|
311 |
+
</div>
|
312 |
+
</td>
|
313 |
+
</tr>
|
314 |
+
|
315 |
+
<tr style="border-bottom: 1px solid #ddd;">
|
316 |
+
<th>Filterable Gallery</th>
|
317 |
+
<td>
|
318 |
+
<div class="onoffswitch">
|
319 |
+
<input type="checkbox" name="filter_gallery" class="onoffswitch-checkbox" id="myonoffswitch27" <?php echo check_status('filter_gallery', 'on') ?>>
|
320 |
+
<label class="onoffswitch-label" for="myonoffswitch27">
|
321 |
<span class="onoffswitch-inner"></span>
|
322 |
<span class="onoffswitch-switch"></span>
|
323 |
</label>
|
index.php
CHANGED
@@ -3,15 +3,15 @@
|
|
3 |
Plugin Name: Mega Addons For WPBakery Page Builder
|
4 |
Description: Mega Addons gives you multi plugins all in one. It's very powerful for any theme.
|
5 |
Plugin URI: https://addons.topdigitaltrends.net/
|
6 |
-
Author:
|
7 |
Author URI: https://www.topdigitaltrends.net/
|
8 |
-
Version: 4.
|
9 |
License: GPL2
|
10 |
*/
|
11 |
|
12 |
/*
|
13 |
|
14 |
-
Copyright (C) 2018
|
15 |
|
16 |
This program is free software; you can redistribute it and/or modify
|
17 |
it under the terms of the GNU General Public License, version 2, as
|
3 |
Plugin Name: Mega Addons For WPBakery Page Builder
|
4 |
Description: Mega Addons gives you multi plugins all in one. It's very powerful for any theme.
|
5 |
Plugin URI: https://addons.topdigitaltrends.net/
|
6 |
+
Author: Topdigitaltrends
|
7 |
Author URI: https://www.topdigitaltrends.net/
|
8 |
+
Version: 4.1.1
|
9 |
License: GPL2
|
10 |
*/
|
11 |
|
12 |
/*
|
13 |
|
14 |
+
Copyright (C) 2018 Topdigitaltrends nasir179125@gmail.com
|
15 |
|
16 |
This program is free software; you can redistribute it and/or modify
|
17 |
it under the terms of the GNU General Public License, version 2, as
|
js/accordion.js
CHANGED
@@ -1,13 +1,14 @@
|
|
1 |
jQuery(document).ready(function($) {
|
2 |
-
|
3 |
-
"header": "fa fa-plus",
|
4 |
-
"activeHeader": "fa fa-minus"
|
5 |
-
}
|
6 |
-
|
7 |
-
$( ".mega-accordion" ).each(function(index, el) {
|
8 |
var active = $(this).data('active');
|
9 |
var anim = $(this).data('anim');
|
10 |
-
var event
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
$(this).accordion({
|
12 |
animate: anim,
|
13 |
event: event,
|
1 |
jQuery(document).ready(function($) {
|
2 |
+
jQuery( ".mega-accordion" ).each(function(index, el) {
|
|
|
|
|
|
|
|
|
|
|
3 |
var active = $(this).data('active');
|
4 |
var anim = $(this).data('anim');
|
5 |
+
var event = $(this).data('event');
|
6 |
+
var icon = $(this).data('closeicons');
|
7 |
+
var activeicon = $(this).data('activeicons');
|
8 |
+
var icons = {
|
9 |
+
"header": icon,
|
10 |
+
"activeHeader": activeicon,
|
11 |
+
}
|
12 |
$(this).accordion({
|
13 |
animate: anim,
|
14 |
event: event,
|
js/custommixitup.js
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(document).ready(function(){
|
2 |
+
|
3 |
+
var sandwiches = document.querySelectorAll('.maw_portfolioGallery_container');
|
4 |
+
|
5 |
+
sandwiches.forEach(function (sandwich, index) {
|
6 |
+
|
7 |
+
var mixer = mixitup(sandwich, {
|
8 |
+
animation: {
|
9 |
+
effects: "fadeIn",
|
10 |
+
perspectiveDistance: "10px",
|
11 |
+
perspectiveOrigin: "50% 50%",
|
12 |
+
animateResizeContainer: false // required to prevent column algorithm bug
|
13 |
+
},
|
14 |
+
controls: {
|
15 |
+
scope: 'local'
|
16 |
+
}
|
17 |
+
});
|
18 |
+
|
19 |
+
// console.log(sandwich); // The element
|
20 |
+
// console.log(index); // The index in the NodeList
|
21 |
+
});
|
22 |
+
|
23 |
+
});
|
js/jquery.fancybox.min.js
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// ==================================================
|
2 |
+
// fancyBox v3.5.6
|
3 |
+
//
|
4 |
+
// Licensed GPLv3 for open source use
|
5 |
+
// or fancyBox Commercial License for commercial use
|
6 |
+
//
|
7 |
+
// http://fancyapps.com/fancybox/
|
8 |
+
// Copyright 2018 fancyApps
|
9 |
+
//
|
10 |
+
// ==================================================
|
11 |
+
!function(t,e,n,o){"use strict";function i(t,e){var o,i,a,s=[],r=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=e||{},t&&t.data&&(e=h(t.data.options,e)),o=e.$target||n(t.currentTarget).trigger("blur"),(a=n.fancybox.getInstance())&&a.$trigger&&a.$trigger.is(o)||(e.selector?s=n(e.selector):(i=o.attr("data-fancybox")||"",i?(s=t.data?t.data.items:[],s=s.length?s.filter('[data-fancybox="'+i+'"]'):n('[data-fancybox="'+i+'"]')):s=[o]),r=n(s).index(o),r<0&&(r=0),a=n.fancybox.open(s,e,r),a.$trigger=o))}if(t.console=t.console||{info:function(t){}},n){if(n.fn.fancybox)return void console.info("fancyBox already initialized");var a={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span> / <span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption"><div class="fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schließen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergrößern"}}},s=n(t),r=n(e),c=0,l=function(t){return t&&t.hasOwnProperty&&t instanceof n},d=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}(),u=function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)}}(),f=function(){var t,n=e.createElement("fakeelement"),o={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in o)if(void 0!==n.style[t])return o[t];return"transitionend"}(),p=function(t){return t&&t.length&&t[0].offsetHeight},h=function(t,e){var o=n.extend(!0,{},t,e);return n.each(e,function(t,e){n.isArray(e)&&(o[t]=e)}),o},g=function(t){var o,i;return!(!t||t.ownerDocument!==e)&&(n(".fancybox-container").css("pointer-events","none"),o={x:t.getBoundingClientRect().left+t.offsetWidth/2,y:t.getBoundingClientRect().top+t.offsetHeight/2},i=e.elementFromPoint(o.x,o.y)===t,n(".fancybox-container").css("pointer-events",""),i)},b=function(t,e,o){var i=this;i.opts=h({index:o},n.fancybox.defaults),n.isPlainObject(e)&&(i.opts=h(i.opts,e)),n.fancybox.isMobile&&(i.opts=h(i.opts,i.opts.mobile)),i.id=i.opts.id||++c,i.currIndex=parseInt(i.opts.index,10)||0,i.prevIndex=null,i.prevPos=null,i.currPos=0,i.firstRun=!0,i.group=[],i.slides={},i.addContent(t),i.group.length&&i.init()};n.extend(b.prototype,{init:function(){var o,i,a=this,s=a.group[a.currIndex],r=s.opts;r.closeExisting&&n.fancybox.close(!0),n("body").addClass("fancybox-active"),!n.fancybox.getInstance()&&!1!==r.hideScrollbar&&!n.fancybox.isMobile&&e.body.scrollHeight>t.innerHeight&&(n("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(t.innerWidth-e.documentElement.clientWidth)+"px;}</style>"),n("body").addClass("compensate-for-scrollbar")),i="",n.each(r.buttons,function(t,e){i+=r.btnTpl[e]||""}),o=n(a.translate(a,r.baseTpl.replace("{{buttons}}",i).replace("{{arrows}}",r.btnTpl.arrowLeft+r.btnTpl.arrowRight))).attr("id","fancybox-container-"+a.id).addClass(r.baseClass).data("FancyBox",a).appendTo(r.parentEl),a.$refs={container:o},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){a.$refs[t]=o.find(".fancybox-"+t)}),a.trigger("onInit"),a.activate(),a.jumpTo(a.currIndex)},translate:function(t,e){var n=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,function(t,e){return void 0===n[e]?t:n[e]})},addContent:function(t){var e,o=this,i=n.makeArray(t);n.each(i,function(t,e){var i,a,s,r,c,l={},d={};n.isPlainObject(e)?(l=e,d=e.opts||e):"object"===n.type(e)&&n(e).length?(i=n(e),d=i.data()||{},d=n.extend(!0,{},d,d.options),d.$orig=i,l.src=o.opts.src||d.src||i.attr("href"),l.type||l.src||(l.type="inline",l.src=e)):l={type:"html",src:e+""},l.opts=n.extend(!0,{},o.opts,d),n.isArray(d.buttons)&&(l.opts.buttons=d.buttons),n.fancybox.isMobile&&l.opts.mobile&&(l.opts=h(l.opts,l.opts.mobile)),a=l.type||l.opts.type,r=l.src||"",!a&&r&&((s=r.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(a="video",l.opts.video.format||(l.opts.video.format="video/"+("ogv"===s[1]?"ogg":s[1]))):r.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?a="image":r.match(/\.(pdf)((\?|#).*)?$/i)?(a="iframe",l=n.extend(!0,l,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===r.charAt(0)&&(a="inline")),a?l.type=a:o.trigger("objectNeedsType",l),l.contentType||(l.contentType=n.inArray(l.type,["html","inline","ajax"])>-1?"html":l.type),l.index=o.group.length,"auto"==l.opts.smallBtn&&(l.opts.smallBtn=n.inArray(l.type,["html","inline","ajax"])>-1),"auto"===l.opts.toolbar&&(l.opts.toolbar=!l.opts.smallBtn),l.$thumb=l.opts.$thumb||null,l.opts.$trigger&&l.index===o.opts.index&&(l.$thumb=l.opts.$trigger.find("img:first"),l.$thumb.length&&(l.opts.$orig=l.opts.$trigger)),l.$thumb&&l.$thumb.length||!l.opts.$orig||(l.$thumb=l.opts.$orig.find("img:first")),l.$thumb&&!l.$thumb.length&&(l.$thumb=null),l.thumb=l.opts.thumb||(l.$thumb?l.$thumb[0].src:null),"function"===n.type(l.opts.caption)&&(l.opts.caption=l.opts.caption.apply(e,[o,l])),"function"===n.type(o.opts.caption)&&(l.opts.caption=o.opts.caption.apply(e,[o,l])),l.opts.caption instanceof n||(l.opts.caption=void 0===l.opts.caption?"":l.opts.caption+""),"ajax"===l.type&&(c=r.split(/\s+/,2),c.length>1&&(l.src=c.shift(),l.opts.filter=c.shift())),l.opts.modal&&(l.opts=n.extend(!0,l.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),o.group.push(l)}),Object.keys(o.slides).length&&(o.updateControls(),(e=o.Thumbs)&&e.isActive&&(e.create(),e.focus()))},addEvents:function(){var e=this;e.removeEvents(),e.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),e.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),e.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),e.next()}).on("click.fb","[data-fancybox-zoom]",function(t){e[e.isScaledDown()?"scaleToActual":"scaleToFit"]()}),s.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?(e.requestId&&u(e.requestId),e.requestId=d(function(){e.update(t)})):(e.current&&"iframe"===e.current.type&&e.$refs.stage.hide(),setTimeout(function(){e.$refs.stage.show(),e.update(t)},n.fancybox.isMobile?600:250))}),r.on("keydown.fb",function(t){var o=n.fancybox?n.fancybox.getInstance():null,i=o.current,a=t.keyCode||t.which;if(9==a)return void(i.opts.trapFocus&&e.focus(t));if(!(!i.opts.keyboard||t.ctrlKey||t.altKey||t.shiftKey||n(t.target).is("input,textarea,video,audio")))return 8===a||27===a?(t.preventDefault(),void e.close(t)):37===a||38===a?(t.preventDefault(),void e.previous()):39===a||40===a?(t.preventDefault(),void e.next()):void e.trigger("afterKeydown",t,a)}),e.group[e.currIndex].opts.idleTime&&(e.idleSecondsCounter=0,r.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){e.idleSecondsCounter=0,e.isIdle&&e.showControls(),e.isIdle=!1}),e.idleInterval=t.setInterval(function(){++e.idleSecondsCounter>=e.group[e.currIndex].opts.idleTime&&!e.isDragging&&(e.isIdle=!0,e.idleSecondsCounter=0,e.hideControls())},1e3))},removeEvents:function(){var e=this;s.off("orientationchange.fb resize.fb"),r.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),e.idleInterval&&(t.clearInterval(e.idleInterval),e.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,e){var o,i,a,s,r,c,l,d,u,f=this,h=f.group.length;if(!(f.isDragging||f.isClosing||f.isAnimating&&f.firstRun)){if(t=parseInt(t,10),!(a=f.current?f.current.opts.loop:f.opts.loop)&&(t<0||t>=h))return!1;if(o=f.firstRun=!Object.keys(f.slides).length,r=f.current,f.prevIndex=f.currIndex,f.prevPos=f.currPos,s=f.createSlide(t),h>1&&((a||s.index<h-1)&&f.createSlide(t+1),(a||s.index>0)&&f.createSlide(t-1)),f.current=s,f.currIndex=s.index,f.currPos=s.pos,f.trigger("beforeShow",o),f.updateControls(),s.forcedDuration=void 0,n.isNumeric(e)?s.forcedDuration=e:e=s.opts[o?"animationDuration":"transitionDuration"],e=parseInt(e,10),i=f.isMoved(s),s.$slide.addClass("fancybox-slide--current"),o)return s.opts.animationEffect&&e&&f.$refs.container.css("transition-duration",e+"ms"),f.$refs.container.addClass("fancybox-is-open").trigger("focus"),f.loadSlide(s),void f.preload("image");c=n.fancybox.getTranslate(r.$slide),l=n.fancybox.getTranslate(f.$refs.stage),n.each(f.slides,function(t,e){n.fancybox.stop(e.$slide,!0)}),r.pos!==s.pos&&(r.isComplete=!1),r.$slide.removeClass("fancybox-slide--complete fancybox-slide--current"),i?(u=c.left-(r.pos*c.width+r.pos*r.opts.gutter),n.each(f.slides,function(t,o){o.$slide.removeClass("fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")});var i=o.pos*c.width+o.pos*o.opts.gutter;n.fancybox.setTranslate(o.$slide,{top:0,left:i-l.left+u}),o.pos!==s.pos&&o.$slide.addClass("fancybox-slide--"+(o.pos>s.pos?"next":"previous")),p(o.$slide),n.fancybox.animate(o.$slide,{top:0,left:(o.pos-s.pos)*c.width+(o.pos-s.pos)*o.opts.gutter},e,function(){o.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous"),o.pos===f.currPos&&f.complete()})})):e&&s.opts.transitionEffect&&(d="fancybox-animated fancybox-fx-"+s.opts.transitionEffect,r.$slide.addClass("fancybox-slide--"+(r.pos>s.pos?"next":"previous")),n.fancybox.animate(r.$slide,d,e,function(){r.$slide.removeClass(d).removeClass("fancybox-slide--next fancybox-slide--previous")},!1)),s.isLoaded?f.revealContent(s):f.loadSlide(s),f.preload("image")}},createSlide:function(t){var e,o,i=this;return o=t%i.group.length,o=o<0?i.group.length+o:o,!i.slides[t]&&i.group[o]&&(e=n('<div class="fancybox-slide"></div>').appendTo(i.$refs.stage),i.slides[t]=n.extend(!0,{},i.group[o],{pos:t,$slide:e,isLoaded:!1}),i.updateSlide(i.slides[t])),i.slides[t]},scaleToActual:function(t,e,o){var i,a,s,r,c,l=this,d=l.current,u=d.$content,f=n.fancybox.getTranslate(d.$slide).width,p=n.fancybox.getTranslate(d.$slide).height,h=d.width,g=d.height;l.isAnimating||l.isMoved()||!u||"image"!=d.type||!d.isLoaded||d.hasError||(l.isAnimating=!0,n.fancybox.stop(u),t=void 0===t?.5*f:t,e=void 0===e?.5*p:e,i=n.fancybox.getTranslate(u),i.top-=n.fancybox.getTranslate(d.$slide).top,i.left-=n.fancybox.getTranslate(d.$slide).left,r=h/i.width,c=g/i.height,a=.5*f-.5*h,s=.5*p-.5*g,h>f&&(a=i.left*r-(t*r-t),a>0&&(a=0),a<f-h&&(a=f-h)),g>p&&(s=i.top*c-(e*c-e),s>0&&(s=0),s<p-g&&(s=p-g)),l.updateCursor(h,g),n.fancybox.animate(u,{top:s,left:a,scaleX:r,scaleY:c},o||366,function(){l.isAnimating=!1}),l.SlideShow&&l.SlideShow.isActive&&l.SlideShow.stop())},scaleToFit:function(t){var e,o=this,i=o.current,a=i.$content;o.isAnimating||o.isMoved()||!a||"image"!=i.type||!i.isLoaded||i.hasError||(o.isAnimating=!0,n.fancybox.stop(a),e=o.getFitPos(i),o.updateCursor(e.width,e.height),n.fancybox.animate(a,{top:e.top,left:e.left,scaleX:e.width/a.width(),scaleY:e.height/a.height()},t||366,function(){o.isAnimating=!1}))},getFitPos:function(t){var e,o,i,a,s=this,r=t.$content,c=t.$slide,l=t.width||t.opts.width,d=t.height||t.opts.height,u={};return!!(t.isLoaded&&r&&r.length)&&(e=n.fancybox.getTranslate(s.$refs.stage).width,o=n.fancybox.getTranslate(s.$refs.stage).height,e-=parseFloat(c.css("paddingLeft"))+parseFloat(c.css("paddingRight"))+parseFloat(r.css("marginLeft"))+parseFloat(r.css("marginRight")),o-=parseFloat(c.css("paddingTop"))+parseFloat(c.css("paddingBottom"))+parseFloat(r.css("marginTop"))+parseFloat(r.css("marginBottom")),l&&d||(l=e,d=o),i=Math.min(1,e/l,o/d),l*=i,d*=i,l>e-.5&&(l=e),d>o-.5&&(d=o),"image"===t.type?(u.top=Math.floor(.5*(o-d))+parseFloat(c.css("paddingTop")),u.left=Math.floor(.5*(e-l))+parseFloat(c.css("paddingLeft"))):"video"===t.contentType&&(a=t.opts.width&&t.opts.height?l/d:t.opts.ratio||16/9,d>l/a?d=l/a:l>d*a&&(l=d*a)),u.width=l,u.height=d,u)},update:function(t){var e=this;n.each(e.slides,function(n,o){e.updateSlide(o,t)})},updateSlide:function(t,e){var o=this,i=t&&t.$content,a=t.width||t.opts.width,s=t.height||t.opts.height,r=t.$slide;o.adjustCaption(t),i&&(a||s||"video"===t.contentType)&&!t.hasError&&(n.fancybox.stop(i),n.fancybox.setTranslate(i,o.getFitPos(t)),t.pos===o.currPos&&(o.isAnimating=!1,o.updateCursor())),o.adjustLayout(t),r.length&&(r.trigger("refresh"),t.pos===o.currPos&&o.$refs.toolbar.add(o.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",r.get(0).scrollHeight>r.get(0).clientHeight)),o.trigger("onUpdate",t,e)},centerSlide:function(t){var e=this,o=e.current,i=o.$slide;!e.isClosing&&o&&(i.siblings().css({transform:"",opacity:""}),i.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"),n.fancybox.animate(i,{top:0,left:0,opacity:1},void 0===t?0:t,function(){i.css({transform:"",opacity:""}),o.isComplete||e.complete()},!1))},isMoved:function(t){var e,o,i=t||this.current;return!!i&&(o=n.fancybox.getTranslate(this.$refs.stage),e=n.fancybox.getTranslate(i.$slide),!i.$slide.hasClass("fancybox-animated")&&(Math.abs(e.top-o.top)>.5||Math.abs(e.left-o.left)>.5))},updateCursor:function(t,e){var o,i,a=this,s=a.current,r=a.$refs.container;s&&!a.isClosing&&a.Guestures&&(r.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"),o=a.canPan(t,e),i=!!o||a.isZoomable(),r.toggleClass("fancybox-is-zoomable",i),n("[data-fancybox-zoom]").prop("disabled",!i),o?r.addClass("fancybox-can-pan"):i&&("zoom"===s.opts.clickContent||n.isFunction(s.opts.clickContent)&&"zoom"==s.opts.clickContent(s))?r.addClass("fancybox-can-zoomIn"):s.opts.touch&&(s.opts.touch.vertical||a.group.length>1)&&"video"!==s.contentType&&r.addClass("fancybox-can-swipe"))},isZoomable:function(){var t,e=this,n=e.current;if(n&&!e.isClosing&&"image"===n.type&&!n.hasError){if(!n.isLoaded)return!0;if((t=e.getFitPos(n))&&(n.width>t.width||n.height>t.height))return!0}return!1},isScaledDown:function(t,e){var o=this,i=!1,a=o.current,s=a.$content;return void 0!==t&&void 0!==e?i=t<a.width&&e<a.height:s&&(i=n.fancybox.getTranslate(s),i=i.width<a.width&&i.height<a.height),i},canPan:function(t,e){var o=this,i=o.current,a=null,s=!1;return"image"===i.type&&(i.isComplete||t&&e)&&!i.hasError&&(s=o.getFitPos(i),void 0!==t&&void 0!==e?a={width:t,height:e}:i.isComplete&&(a=n.fancybox.getTranslate(i.$content)),a&&s&&(s=Math.abs(a.width-s.width)>1.5||Math.abs(a.height-s.height)>1.5)),s},loadSlide:function(t){var e,o,i,a=this;if(!t.isLoading&&!t.isLoaded){if(t.isLoading=!0,!1===a.trigger("beforeLoad",t))return t.isLoading=!1,!1;switch(e=t.type,o=t.$slide,o.off("refresh").trigger("onReset").addClass(t.opts.slideClass),e){case"image":a.setImage(t);break;case"iframe":a.setIframe(t);break;case"html":a.setContent(t,t.src||t.content);break;case"video":a.setContent(t,t.opts.video.tpl.replace(/\{\{src\}\}/gi,t.src).replace("{{format}}",t.opts.videoFormat||t.opts.video.format||"").replace("{{poster}}",t.thumb||""));break;case"inline":n(t.src).length?a.setContent(t,n(t.src)):a.setError(t);break;case"ajax":a.showLoading(t),i=n.ajax(n.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,n){"success"===n&&a.setContent(t,e)},error:function(e,n){e&&"abort"!==n&&a.setError(t)}})),o.one("onReset",function(){i.abort()});break;default:a.setError(t)}return!0}},setImage:function(t){var o,i=this;setTimeout(function(){var e=t.$image;i.isClosing||!t.isLoading||e&&e.length&&e[0].complete||t.hasError||i.showLoading(t)},50),i.checkSrcset(t),t.$content=n('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(t.$slide.addClass("fancybox-slide--image")),!1!==t.opts.preload&&t.opts.width&&t.opts.height&&t.thumb&&(t.width=t.opts.width,t.height=t.opts.height,o=e.createElement("img"),o.onerror=function(){n(this).remove(),t.$ghost=null},o.onload=function(){i.afterLoad(t)},t.$ghost=n(o).addClass("fancybox-image").appendTo(t.$content).attr("src",t.thumb)),i.setBigImage(t)},checkSrcset:function(e){var n,o,i,a,s=e.opts.srcset||e.opts.image.srcset;if(s){i=t.devicePixelRatio||1,a=t.innerWidth*i,o=s.split(",").map(function(t){var e={};return t.trim().split(/\s+/).forEach(function(t,n){var o=parseInt(t.substring(0,t.length-1),10);if(0===n)return e.url=t;o&&(e.value=o,e.postfix=t[t.length-1])}),e}),o.sort(function(t,e){return t.value-e.value});for(var r=0;r<o.length;r++){var c=o[r];if("w"===c.postfix&&c.value>=a||"x"===c.postfix&&c.value>=i){n=c;break}}!n&&o.length&&(n=o[o.length-1]),n&&(e.src=n.url,e.width&&e.height&&"w"==n.postfix&&(e.height=e.width/e.height*n.value,e.width=n.value),e.opts.srcset=s)}},setBigImage:function(t){var o=this,i=e.createElement("img"),a=n(i);t.$image=a.one("error",function(){o.setError(t)}).one("load",function(){var e;t.$ghost||(o.resolveImageSlideSize(t,this.naturalWidth,this.naturalHeight),o.afterLoad(t)),o.isClosing||(t.opts.srcset&&(e=t.opts.sizes,e&&"auto"!==e||(e=(t.width/t.height>1&&s.width()/s.height()>1?"100":Math.round(t.width/t.height*100))+"vw"),a.attr("sizes",e).attr("srcset",t.opts.srcset)),t.$ghost&&setTimeout(function(){t.$ghost&&!o.isClosing&&t.$ghost.hide()},Math.min(300,Math.max(1e3,t.height/1600))),o.hideLoading(t))}).addClass("fancybox-image").attr("src",t.src).appendTo(t.$content),(i.complete||"complete"==i.readyState)&&a.naturalWidth&&a.naturalHeight?a.trigger("load"):i.error&&a.trigger("error")},resolveImageSlideSize:function(t,e,n){var o=parseInt(t.opts.width,10),i=parseInt(t.opts.height,10);t.width=e,t.height=n,o>0&&(t.width=o,t.height=Math.floor(o*n/e)),i>0&&(t.width=Math.floor(i*e/n),t.height=i)},setIframe:function(t){var e,o=this,i=t.opts.iframe,a=t.$slide;t.$content=n('<div class="fancybox-content'+(i.preload?" fancybox-is-hidden":"")+'"></div>').css(i.css).appendTo(a),a.addClass("fancybox-slide--"+t.contentType),t.$iframe=e=n(i.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(i.attr).appendTo(t.$content),i.preload?(o.showLoading(t),e.on("load.fb error.fb",function(e){this.isReady=1,t.$slide.trigger("refresh"),o.afterLoad(t)}),a.on("refresh.fb",function(){var n,o,s=t.$content,r=i.css.width,c=i.css.height;if(1===e[0].isReady){try{n=e.contents(),o=n.find("body")}catch(t){}o&&o.length&&o.children().length&&(a.css("overflow","visible"),s.css({width:"100%","max-width":"100%",height:"9999px"}),void 0===r&&(r=Math.ceil(Math.max(o[0].clientWidth,o.outerWidth(!0)))),s.css("width",r||"").css("max-width",""),void 0===c&&(c=Math.ceil(Math.max(o[0].clientHeight,o.outerHeight(!0)))),s.css("height",c||""),a.css("overflow","auto")),s.removeClass("fancybox-is-hidden")}})):o.afterLoad(t),e.attr("src",t.src),a.one("onReset",function(){try{n(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}n(this).off("refresh.fb").empty(),t.isLoaded=!1,t.isRevealed=!1})},setContent:function(t,e){var o=this;o.isClosing||(o.hideLoading(t),t.$content&&n.fancybox.stop(t.$content),t.$slide.empty(),l(e)&&e.parent().length?((e.hasClass("fancybox-content")||e.parent().hasClass("fancybox-content"))&&e.parents(".fancybox-slide").trigger("onReset"),t.$placeholder=n("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===n.type(e)&&(e=n("<div>").append(n.trim(e)).contents()),t.opts.filter&&(e=n("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){n(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeClass("fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(n(this).empty(),t.isLoaded=!1,t.isRevealed=!1)}),n(e).appendTo(t.$slide),n(e).is("video,audio")&&(n(e).addClass("fancybox-video"),n(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||n(e).attr("width"),t.opts.height=t.opts.height||n(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapInner("<div></div>").children().first()),t.$content.addClass("fancybox-content"),t.$slide.addClass("fancybox-slide--"+t.contentType),o.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("fancybox-slide--"+t.contentType).addClass("fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){var e=this;(t=t||e.current)&&!t.$spinner&&(t.$spinner=n(e.translate(e,e.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast"))},hideLoading:function(t){var e=this;(t=t||e.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=n(e.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&n('<div class="fancybox-spaceball"></div>').appendTo(t.$content)),e.adjustCaption(t),e.adjustLayout(t),t.pos===e.currPos&&e.updateCursor(),e.revealContent(t))},adjustCaption:function(t){var e,n=this,o=t||n.current,i=o.opts.caption,a=o.opts.preventCaptionOverlap,s=n.$refs.caption,r=!1;s.toggleClass("fancybox-caption--separate",a),a&&i&&i.length&&(o.pos!==n.currPos?(e=s.clone().appendTo(s.parent()),e.children().eq(0).empty().html(i),r=e.outerHeight(!0),e.empty().remove()):n.$caption&&(r=n.$caption.outerHeight(!0)),o.$slide.css("padding-bottom",r||""))},adjustLayout:function(t){var e,n,o,i,a=this,s=t||a.current;s.isLoaded&&!0!==s.opts.disableLayoutFix&&(s.$content.css("margin-bottom",""),s.$content.outerHeight()>s.$slide.height()+.5&&(o=s.$slide[0].style["padding-bottom"],i=s.$slide.css("padding-bottom"),parseFloat(i)>0&&(e=s.$slide[0].scrollHeight,s.$slide.css("padding-bottom",0),Math.abs(e-s.$slide[0].scrollHeight)<1&&(n=i),s.$slide.css("padding-bottom",o))),s.$content.css("margin-bottom",n))},revealContent:function(t){var e,o,i,a,s=this,r=t.$slide,c=!1,l=!1,d=s.isMoved(t),u=t.isRevealed;return t.isRevealed=!0,e=t.opts[s.firstRun?"animationEffect":"transitionEffect"],i=t.opts[s.firstRun?"animationDuration":"transitionDuration"],i=parseInt(void 0===t.forcedDuration?i:t.forcedDuration,10),!d&&t.pos===s.currPos&&i||(e=!1),"zoom"===e&&(t.pos===s.currPos&&i&&"image"===t.type&&!t.hasError&&(l=s.getThumbPos(t))?c=s.getFitPos(t):e="fade"),"zoom"===e?(s.isAnimating=!0,c.scaleX=c.width/l.width,c.scaleY=c.height/l.height,a=t.opts.zoomOpacity,"auto"==a&&(a=Math.abs(t.width/t.height-l.width/l.height)>.1),a&&(l.opacity=.1,c.opacity=1),n.fancybox.setTranslate(t.$content.removeClass("fancybox-is-hidden"),l),p(t.$content),void n.fancybox.animate(t.$content,c,i,function(){s.isAnimating=!1,s.complete()})):(s.updateSlide(t),e?(n.fancybox.stop(r),o="fancybox-slide--"+(t.pos>=s.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+e,r.addClass(o).removeClass("fancybox-slide--current"),t.$content.removeClass("fancybox-is-hidden"),p(r),"image"!==t.type&&t.$content.hide().show(0),void n.fancybox.animate(r,"fancybox-slide--current",i,function(){r.removeClass(o).css({transform:"",opacity:""}),t.pos===s.currPos&&s.complete()},!0)):(t.$content.removeClass("fancybox-is-hidden"),u||!d||"image"!==t.type||t.hasError||t.$content.hide().fadeIn("fast"),void(t.pos===s.currPos&&s.complete())))},getThumbPos:function(t){var e,o,i,a,s,r=!1,c=t.$thumb;return!(!c||!g(c[0]))&&(e=n.fancybox.getTranslate(c),o=parseFloat(c.css("border-top-width")||0),i=parseFloat(c.css("border-right-width")||0),a=parseFloat(c.css("border-bottom-width")||0),s=parseFloat(c.css("border-left-width")||0),r={top:e.top+o,left:e.left+s,width:e.width-i-s,height:e.height-o-a,scaleX:1,scaleY:1},e.width>0&&e.height>0&&r)},complete:function(){var t,e=this,o=e.current,i={};!e.isMoved()&&o.isLoaded&&(o.isComplete||(o.isComplete=!0,o.$slide.siblings().trigger("onReset"),e.preload("inline"),p(o.$slide),o.$slide.addClass("fancybox-slide--complete"),n.each(e.slides,function(t,o){o.pos>=e.currPos-1&&o.pos<=e.currPos+1?i[o.pos]=o:o&&(n.fancybox.stop(o.$slide),o.$slide.off().remove())}),e.slides=i),e.isAnimating=!1,e.updateCursor(),e.trigger("afterShow"),o.opts.video.autoStart&&o.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){this.webkitExitFullscreen&&this.webkitExitFullscreen(),e.next()}),o.opts.autoFocus&&"html"===o.contentType&&(t=o.$content.find("input[autofocus]:enabled:visible:first"),t.length?t.trigger("focus"):e.focus(null,!0)),o.$slide.scrollTop(0).scrollLeft(0))},preload:function(t){var e,n,o=this;o.group.length<2||(n=o.slides[o.currPos+1],e=o.slides[o.currPos-1],e&&e.type===t&&o.loadSlide(e),n&&n.type===t&&o.loadSlide(n))},focus:function(t,o){var i,a,s=this,r=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");s.isClosing||(i=!t&&s.current&&s.current.isComplete?s.current.$slide.find("*:visible"+(o?":not(.fancybox-close-small)":"")):s.$refs.container.find("*:visible"),i=i.filter(r).filter(function(){return"hidden"!==n(this).css("visibility")&&!n(this).hasClass("disabled")}),i.length?(a=i.index(e.activeElement),t&&t.shiftKey?(a<0||0==a)&&(t.preventDefault(),i.eq(i.length-1).trigger("focus")):(a<0||a==i.length-1)&&(t&&t.preventDefault(),i.eq(0).trigger("focus"))):s.$refs.container.trigger("focus"))},activate:function(){var t=this;n(".fancybox-container").each(function(){var e=n(this).data("FancyBox");e&&e.id!==t.id&&!e.isClosing&&(e.trigger("onDeactivate"),e.removeEvents(),e.isVisible=!1)}),t.isVisible=!0,(t.current||t.isIdle)&&(t.update(),t.updateControls()),t.trigger("onActivate"),t.addEvents()},close:function(t,e){var o,i,a,s,r,c,l,u=this,f=u.current,h=function(){u.cleanUp(t)};return!u.isClosing&&(u.isClosing=!0,!1===u.trigger("beforeClose",t)?(u.isClosing=!1,d(function(){u.update()}),!1):(u.removeEvents(),a=f.$content,o=f.opts.animationEffect,i=n.isNumeric(e)?e:o?f.opts.animationDuration:0,f.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),!0!==t?n.fancybox.stop(f.$slide):o=!1,f.$slide.siblings().trigger("onReset").remove(),i&&u.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",i+"ms"),u.hideLoading(f),u.hideControls(!0),u.updateCursor(),"zoom"!==o||a&&i&&"image"===f.type&&!u.isMoved()&&!f.hasError&&(l=u.getThumbPos(f))||(o="fade"),"zoom"===o?(n.fancybox.stop(a),s=n.fancybox.getTranslate(a),c={top:s.top,left:s.left,scaleX:s.width/l.width,scaleY:s.height/l.height,width:l.width,height:l.height},r=f.opts.zoomOpacity,"auto"==r&&(r=Math.abs(f.width/f.height-l.width/l.height)>.1),r&&(l.opacity=0),
|
12 |
+
n.fancybox.setTranslate(a,c),p(a),n.fancybox.animate(a,l,i,h),!0):(o&&i?n.fancybox.animate(f.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+o,i,h):!0===t?setTimeout(h,i):h(),!0)))},cleanUp:function(e){var o,i,a,s=this,r=s.current.opts.$orig;s.current.$slide.trigger("onReset"),s.$refs.container.empty().remove(),s.trigger("afterClose",e),s.current.opts.backFocus&&(r&&r.length&&r.is(":visible")||(r=s.$trigger),r&&r.length&&(i=t.scrollX,a=t.scrollY,r.trigger("focus"),n("html, body").scrollTop(a).scrollLeft(i))),s.current=null,o=n.fancybox.getInstance(),o?o.activate():(n("body").removeClass("fancybox-active compensate-for-scrollbar"),n("#fancybox-style-noscroll").remove())},trigger:function(t,e){var o,i=Array.prototype.slice.call(arguments,1),a=this,s=e&&e.opts?e:a.current;if(s?i.unshift(s):s=a,i.unshift(a),n.isFunction(s.opts[t])&&(o=s.opts[t].apply(s,i)),!1===o)return o;"afterClose"!==t&&a.$refs?a.$refs.container.trigger(t+".fb",i):r.trigger(t+".fb",i)},updateControls:function(){var t=this,o=t.current,i=o.index,a=t.$refs.container,s=t.$refs.caption,r=o.opts.caption;o.$slide.trigger("refresh"),r&&r.length?(t.$caption=s,s.children().eq(0).html(r)):t.$caption=null,t.hasHiddenControls||t.isIdle||t.showControls(),a.find("[data-fancybox-count]").html(t.group.length),a.find("[data-fancybox-index]").html(i+1),a.find("[data-fancybox-prev]").prop("disabled",!o.opts.loop&&i<=0),a.find("[data-fancybox-next]").prop("disabled",!o.opts.loop&&i>=t.group.length-1),"image"===o.type?a.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",o.opts.image.src||o.src).show():o.opts.toolbar&&a.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),n(e.activeElement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hideControls:function(t){var e=this,n=["infobar","toolbar","nav"];!t&&e.current.opts.preventCaptionOverlap||n.push("caption"),this.$refs.container.removeClass(n.map(function(t){return"fancybox-show-"+t}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,n=t.$refs.container;t.hasHiddenControls=!1,t.idleSecondsCounter=0,n.toggleClass("fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("fancybox-show-infobar",!!(e.infobar&&t.group.length>1)).toggleClass("fancybox-show-caption",!!t.$caption).toggleClass("fancybox-show-nav",!!(e.arrows&&t.group.length>1)).toggleClass("fancybox-is-modal",!!e.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),n.fancybox={version:"3.5.6",defaults:a,getInstance:function(t){var e=n('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof b&&("string"===n.type(t)?e[t].apply(e,o):"function"===n.type(t)&&t.apply(e,o),e)},open:function(t,e,n){return new b(t,e,n)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),r.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:function(){var n=e.createElement("div");return t.getComputedStyle&&t.getComputedStyle(n)&&t.getComputedStyle(n).getPropertyValue("transform")&&!(e.documentMode&&e.documentMode<11)}(),getTranslate:function(t){var e;return!(!t||!t.length)&&(e=t[0].getBoundingClientRect(),{top:e.top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))})},setTranslate:function(t,e){var n="",o={};if(t&&e)return void 0===e.left&&void 0===e.top||(n=(void 0===e.left?t.position().left:e.left)+"px, "+(void 0===e.top?t.position().top:e.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),void 0!==e.scaleX&&void 0!==e.scaleY?n+=" scale("+e.scaleX+", "+e.scaleY+")":void 0!==e.scaleX&&(n+=" scaleX("+e.scaleX+")"),n.length&&(o.transform=n),void 0!==e.opacity&&(o.opacity=e.opacity),void 0!==e.width&&(o.width=e.width),void 0!==e.height&&(o.height=e.height),t.css(o)},animate:function(t,e,o,i,a){var s,r=this;n.isFunction(o)&&(i=o,o=null),r.stop(t),s=r.getTranslate(t),t.on(f,function(c){(!c||!c.originalEvent||t.is(c.originalEvent.target)&&"z-index"!=c.originalEvent.propertyName)&&(r.stop(t),n.isNumeric(o)&&t.css("transition-duration",""),n.isPlainObject(e)?void 0!==e.scaleX&&void 0!==e.scaleY&&r.setTranslate(t,{top:e.top,left:e.left,width:s.width*e.scaleX,height:s.height*e.scaleY,scaleX:1,scaleY:1}):!0!==a&&t.removeClass(e),n.isFunction(i)&&i(c))}),n.isNumeric(o)&&t.css("transition-duration",o+"ms"),n.isPlainObject(e)?(void 0!==e.scaleX&&void 0!==e.scaleY&&(delete e.width,delete e.height,t.parent().hasClass("fancybox-slide--image")&&t.parent().addClass("fancybox-is-scaling")),n.fancybox.setTranslate(t,e)):t.addClass(e),t.data("timer",setTimeout(function(){t.trigger(f)},o+33))},stop:function(t,e){t&&t.length&&(clearTimeout(t.data("timer")),e&&t.trigger(f),t.off(f).css("transition-duration",""),t.parent().removeClass("fancybox-is-scaling"))}},n.fn.fancybox=function(t){var e;return t=t||{},e=t.selector||!1,e?n("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},i):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},i),this},r.on("click.fb-start","[data-fancybox]",i),r.on("click.fb-start","[data-fancybox-trigger]",function(t){n('[data-fancybox="'+n(this).attr("data-fancybox-trigger")+'"]').eq(n(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:n(this)})}),function(){var t=null;r.on("mousedown mouseup focus blur",".fancybox-button",function(e){switch(e.type){case"mousedown":t=n(this);break;case"mouseup":t=null;break;case"focusin":n(".fancybox-button").removeClass("fancybox-focus"),n(this).is(t)||n(this).is("[disabled]")||n(this).addClass("fancybox-focus");break;case"focusout":n(".fancybox-button").removeClass("fancybox-focus")}})}()}}(window,document,jQuery),function(t){"use strict";var e={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&t[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}},n=function(e,n,o){if(e)return o=o||"","object"===t.type(o)&&(o=t.param(o,!0)),t.each(n,function(t,n){e=e.replace("$"+t,n||"")}),o.length&&(e+=(e.indexOf("?")>0?"&":"?")+o),e};t(document).on("objectNeedsType.fb",function(o,i,a){var s,r,c,l,d,u,f,p=a.src||"",h=!1;s=t.extend(!0,{},e,a.opts.media),t.each(s,function(e,o){if(c=p.match(o.matcher)){if(h=o.type,f=e,u={},o.paramPlace&&c[o.paramPlace]){d=c[o.paramPlace],"?"==d[0]&&(d=d.substring(1)),d=d.split("&");for(var i=0;i<d.length;++i){var s=d[i].split("=",2);2==s.length&&(u[s[0]]=decodeURIComponent(s[1].replace(/\+/g," ")))}}return l=t.extend(!0,{},o.params,a.opts[e],u),p="function"===t.type(o.url)?o.url.call(this,c,l,a):n(o.url,c,l),r="function"===t.type(o.thumb)?o.thumb.call(this,c,l,a):n(o.thumb,c),"youtube"===e?p=p.replace(/&t=((\d+)m)?(\d+)s/,function(t,e,n,o){return"&start="+((n?60*parseInt(n,10):0)+parseInt(o,10))}):"vimeo"===e&&(p=p.replace("&%23","#")),!1}}),h?(a.opts.thumb||a.opts.$thumb&&a.opts.$thumb.length||(a.opts.thumb=r),"iframe"===h&&(a.opts=t.extend(!0,a.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),t.extend(a,{type:h,src:p,origSrc:a.src,contentSource:f,contentType:"image"===h?"image":"gmap_place"==f||"gmap_search"==f?"map":"video"})):p&&(a.type=a.opts.defaultType)});var o={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(t){var e,n=this;if(this[t].loaded)return void setTimeout(function(){n.done(t)});this[t].loading||(this[t].loading=!0,e=document.createElement("script"),e.type="text/javascript",e.src=this[t].src,"youtube"===t?window.onYouTubeIframeAPIReady=function(){n[t].loaded=!0,n.done(t)}:e.onload=function(){n[t].loaded=!0,n.done(t)},document.body.appendChild(e))},done:function(e){var n,o,i;"youtube"===e&&delete window.onYouTubeIframeAPIReady,(n=t.fancybox.getInstance())&&(o=n.current.$content.find("iframe"),"youtube"===e&&void 0!==YT&&YT?i=new YT.Player(o.attr("id"),{events:{onStateChange:function(t){0==t.data&&n.next()}}}):"vimeo"===e&&void 0!==Vimeo&&Vimeo&&(i=new Vimeo.Player(o),i.on("ended",function(){n.next()})))}};t(document).on({"afterShow.fb":function(t,e,n){e.group.length>1&&("youtube"===n.contentSource||"vimeo"===n.contentSource)&&o.load(n.contentSource)}})}(jQuery),function(t,e,n){"use strict";var o=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}(),i=function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)}}(),a=function(e){var n=[];e=e.originalEvent||e||t.e,e=e.touches&&e.touches.length?e.touches:e.changedTouches&&e.changedTouches.length?e.changedTouches:[e];for(var o in e)e[o].pageX?n.push({x:e[o].pageX,y:e[o].pageY}):e[o].clientX&&n.push({x:e[o].clientX,y:e[o].clientY});return n},s=function(t,e,n){return e&&t?"x"===n?t.x-e.x:"y"===n?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0},r=function(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||n.isFunction(t.get(0).onclick)||t.data("selectable"))return!0;for(var e=0,o=t[0].attributes,i=o.length;e<i;e++)if("data-fancybox-"===o[e].nodeName.substr(0,14))return!0;return!1},c=function(e){var n=t.getComputedStyle(e)["overflow-y"],o=t.getComputedStyle(e)["overflow-x"],i=("scroll"===n||"auto"===n)&&e.scrollHeight>e.clientHeight,a=("scroll"===o||"auto"===o)&&e.scrollWidth>e.clientWidth;return i||a},l=function(t){for(var e=!1;;){if(e=c(t.get(0)))break;if(t=t.parent(),!t.length||t.hasClass("fancybox-stage")||t.is("body"))break}return e},d=function(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(e,"ontouchstart"))};d.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),n(e).off(".fb.touch"),t.requestId&&(i(t.requestId),t.requestId=null),t.tapped&&(clearTimeout(t.tapped),t.tapped=null)},d.prototype.ontouchstart=function(o){var i=this,c=n(o.target),d=i.instance,u=d.current,f=u.$slide,p=u.$content,h="touchstart"==o.type;if(h&&i.$container.off("mousedown.fb.touch"),(!o.originalEvent||2!=o.originalEvent.button)&&f.length&&c.length&&!r(c)&&!r(c.parent())&&(c.is("img")||!(o.originalEvent.clientX>c[0].clientWidth+c.offset().left))){if(!u||d.isAnimating||u.$slide.hasClass("fancybox-animated"))return o.stopPropagation(),void o.preventDefault();i.realPoints=i.startPoints=a(o),i.startPoints.length&&(u.touch&&o.stopPropagation(),i.startEvent=o,i.canTap=!0,i.$target=c,i.$content=p,i.opts=u.opts.touch,i.isPanning=!1,i.isSwiping=!1,i.isZooming=!1,i.isScrolling=!1,i.canPan=d.canPan(),i.startTime=(new Date).getTime(),i.distanceX=i.distanceY=i.distance=0,i.canvasWidth=Math.round(f[0].clientWidth),i.canvasHeight=Math.round(f[0].clientHeight),i.contentLastPos=null,i.contentStartPos=n.fancybox.getTranslate(i.$content)||{top:0,left:0},i.sliderStartPos=n.fancybox.getTranslate(f),i.stagePos=n.fancybox.getTranslate(d.$refs.stage),i.sliderStartPos.top-=i.stagePos.top,i.sliderStartPos.left-=i.stagePos.left,i.contentStartPos.top-=i.stagePos.top,i.contentStartPos.left-=i.stagePos.left,n(e).off(".fb.touch").on(h?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(i,"ontouchend")).on(h?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(i,"ontouchmove")),n.fancybox.isMobile&&e.addEventListener("scroll",i.onscroll,!0),((i.opts||i.canPan)&&(c.is(i.$stage)||i.$stage.find(c).length)||(c.is(".fancybox-image")&&o.preventDefault(),n.fancybox.isMobile&&c.parents(".fancybox-caption").length))&&(i.isScrollable=l(c)||l(c.parent()),n.fancybox.isMobile&&i.isScrollable||o.preventDefault(),(1===i.startPoints.length||u.hasError)&&(i.canPan?(n.fancybox.stop(i.$content),i.isPanning=!0):i.isSwiping=!0,i.$container.addClass("fancybox-is-grabbing")),2===i.startPoints.length&&"image"===u.type&&(u.isLoaded||u.$ghost)&&(i.canTap=!1,i.isSwiping=!1,i.isPanning=!1,i.isZooming=!0,n.fancybox.stop(i.$content),i.centerPointStartX=.5*(i.startPoints[0].x+i.startPoints[1].x)-n(t).scrollLeft(),i.centerPointStartY=.5*(i.startPoints[0].y+i.startPoints[1].y)-n(t).scrollTop(),i.percentageOfImageAtPinchPointX=(i.centerPointStartX-i.contentStartPos.left)/i.contentStartPos.width,i.percentageOfImageAtPinchPointY=(i.centerPointStartY-i.contentStartPos.top)/i.contentStartPos.height,i.startDistanceBetweenFingers=s(i.startPoints[0],i.startPoints[1]))))}},d.prototype.onscroll=function(t){var n=this;n.isScrolling=!0,e.removeEventListener("scroll",n.onscroll,!0)},d.prototype.ontouchmove=function(t){var e=this;return void 0!==t.originalEvent.buttons&&0===t.originalEvent.buttons?void e.ontouchend(t):e.isScrolling?void(e.canTap=!1):(e.newPoints=a(t),void((e.opts||e.canPan)&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&!0===e.isSwiping||t.preventDefault(),e.distanceX=s(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=s(e.newPoints[0],e.startPoints[0],"y"),e.distance=s(e.newPoints[0],e.startPoints[0]),e.distance>0&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))))},d.prototype.onSwipe=function(e){var a,s=this,r=s.instance,c=s.isSwiping,l=s.sliderStartPos.left||0;if(!0!==c)"x"==c&&(s.distanceX>0&&(s.instance.group.length<2||0===s.instance.current.index&&!s.instance.current.opts.loop)?l+=Math.pow(s.distanceX,.8):s.distanceX<0&&(s.instance.group.length<2||s.instance.current.index===s.instance.group.length-1&&!s.instance.current.opts.loop)?l-=Math.pow(-s.distanceX,.8):l+=s.distanceX),s.sliderLastPos={top:"x"==c?0:s.sliderStartPos.top+s.distanceY,left:l},s.requestId&&(i(s.requestId),s.requestId=null),s.requestId=o(function(){s.sliderLastPos&&(n.each(s.instance.slides,function(t,e){var o=e.pos-s.instance.currPos;n.fancybox.setTranslate(e.$slide,{top:s.sliderLastPos.top,left:s.sliderLastPos.left+o*s.canvasWidth+o*e.opts.gutter})}),s.$container.addClass("fancybox-is-sliding"))});else if(Math.abs(s.distance)>10){if(s.canTap=!1,r.group.length<2&&s.opts.vertical?s.isSwiping="y":r.isDragging||!1===s.opts.vertical||"auto"===s.opts.vertical&&n(t).width()>800?s.isSwiping="x":(a=Math.abs(180*Math.atan2(s.distanceY,s.distanceX)/Math.PI),s.isSwiping=a>45&&a<135?"y":"x"),"y"===s.isSwiping&&n.fancybox.isMobile&&s.isScrollable)return void(s.isScrolling=!0);r.isDragging=s.isSwiping,s.startPoints=s.newPoints,n.each(r.slides,function(t,e){var o,i;n.fancybox.stop(e.$slide),o=n.fancybox.getTranslate(e.$slide),i=n.fancybox.getTranslate(r.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}),e.pos===r.current.pos&&(s.sliderStartPos.top=o.top-i.top,s.sliderStartPos.left=o.left-i.left),n.fancybox.setTranslate(e.$slide,{top:o.top-i.top,left:o.left-i.left})}),r.SlideShow&&r.SlideShow.isActive&&r.SlideShow.stop()}},d.prototype.onPan=function(){var t=this;if(s(t.newPoints[0],t.realPoints[0])<(n.fancybox.isMobile?10:5))return void(t.startPoints=t.newPoints);t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&i(t.requestId),t.requestId=o(function(){n.fancybox.setTranslate(t.$content,t.contentLastPos)})},d.prototype.limitMovement=function(){var t,e,n,o,i,a,s=this,r=s.canvasWidth,c=s.canvasHeight,l=s.distanceX,d=s.distanceY,u=s.contentStartPos,f=u.left,p=u.top,h=u.width,g=u.height;return i=h>r?f+l:f,a=p+d,t=Math.max(0,.5*r-.5*h),e=Math.max(0,.5*c-.5*g),n=Math.min(r-h,.5*r-.5*h),o=Math.min(c-g,.5*c-.5*g),l>0&&i>t&&(i=t-1+Math.pow(-t+f+l,.8)||0),l<0&&i<n&&(i=n+1-Math.pow(n-f-l,.8)||0),d>0&&a>e&&(a=e-1+Math.pow(-e+p+d,.8)||0),d<0&&a<o&&(a=o+1-Math.pow(o-p-d,.8)||0),{top:a,left:i}},d.prototype.limitPosition=function(t,e,n,o){var i=this,a=i.canvasWidth,s=i.canvasHeight;return n>a?(t=t>0?0:t,t=t<a-n?a-n:t):t=Math.max(0,a/2-n/2),o>s?(e=e>0?0:e,e=e<s-o?s-o:e):e=Math.max(0,s/2-o/2),{top:e,left:t}},d.prototype.onZoom=function(){var e=this,a=e.contentStartPos,r=a.width,c=a.height,l=a.left,d=a.top,u=s(e.newPoints[0],e.newPoints[1]),f=u/e.startDistanceBetweenFingers,p=Math.floor(r*f),h=Math.floor(c*f),g=(r-p)*e.percentageOfImageAtPinchPointX,b=(c-h)*e.percentageOfImageAtPinchPointY,m=(e.newPoints[0].x+e.newPoints[1].x)/2-n(t).scrollLeft(),v=(e.newPoints[0].y+e.newPoints[1].y)/2-n(t).scrollTop(),y=m-e.centerPointStartX,x=v-e.centerPointStartY,w=l+(g+y),$=d+(b+x),S={top:$,left:w,scaleX:f,scaleY:f};e.canTap=!1,e.newWidth=p,e.newHeight=h,e.contentLastPos=S,e.requestId&&i(e.requestId),e.requestId=o(function(){n.fancybox.setTranslate(e.$content,e.contentLastPos)})},d.prototype.ontouchend=function(t){var o=this,s=o.isSwiping,r=o.isPanning,c=o.isZooming,l=o.isScrolling;if(o.endPoints=a(t),o.dMs=Math.max((new Date).getTime()-o.startTime,1),o.$container.removeClass("fancybox-is-grabbing"),n(e).off(".fb.touch"),e.removeEventListener("scroll",o.onscroll,!0),o.requestId&&(i(o.requestId),o.requestId=null),o.isSwiping=!1,o.isPanning=!1,o.isZooming=!1,o.isScrolling=!1,o.instance.isDragging=!1,o.canTap)return o.onTap(t);o.speed=100,o.velocityX=o.distanceX/o.dMs*.5,o.velocityY=o.distanceY/o.dMs*.5,r?o.endPanning():c?o.endZooming():o.endSwiping(s,l)},d.prototype.endSwiping=function(t,e){var o=this,i=!1,a=o.instance.group.length,s=Math.abs(o.distanceX),r="x"==t&&a>1&&(o.dMs>130&&s>10||s>50);o.sliderLastPos=null,"y"==t&&!e&&Math.abs(o.distanceY)>50?(n.fancybox.animate(o.instance.current.$slide,{top:o.sliderStartPos.top+o.distanceY+150*o.velocityY,opacity:0},200),i=o.instance.close(!0,250)):r&&o.distanceX>0?i=o.instance.previous(300):r&&o.distanceX<0&&(i=o.instance.next(300)),!1!==i||"x"!=t&&"y"!=t||o.instance.centerSlide(200),o.$container.removeClass("fancybox-is-sliding")},d.prototype.endPanning=function(){var t,e,o,i=this;i.contentLastPos&&(!1===i.opts.momentum||i.dMs>350?(t=i.contentLastPos.left,e=i.contentLastPos.top):(t=i.contentLastPos.left+500*i.velocityX,e=i.contentLastPos.top+500*i.velocityY),o=i.limitPosition(t,e,i.contentStartPos.width,i.contentStartPos.height),o.width=i.contentStartPos.width,o.height=i.contentStartPos.height,n.fancybox.animate(i.$content,o,366))},d.prototype.endZooming=function(){var t,e,o,i,a=this,s=a.instance.current,r=a.newWidth,c=a.newHeight;a.contentLastPos&&(t=a.contentLastPos.left,e=a.contentLastPos.top,i={top:e,left:t,width:r,height:c,scaleX:1,scaleY:1},n.fancybox.setTranslate(a.$content,i),r<a.canvasWidth&&c<a.canvasHeight?a.instance.scaleToFit(150):r>s.width||c>s.height?a.instance.scaleToActual(a.centerPointStartX,a.centerPointStartY,150):(o=a.limitPosition(t,e,r,c),n.fancybox.animate(a.$content,o,150)))},d.prototype.onTap=function(e){var o,i=this,s=n(e.target),r=i.instance,c=r.current,l=e&&a(e)||i.startPoints,d=l[0]?l[0].x-n(t).scrollLeft()-i.stagePos.left:0,u=l[0]?l[0].y-n(t).scrollTop()-i.stagePos.top:0,f=function(t){var o=c.opts[t];if(n.isFunction(o)&&(o=o.apply(r,[c,e])),o)switch(o){case"close":r.close(i.startEvent);break;case"toggleControls":r.toggleControls();break;case"next":r.next();break;case"nextOrClose":r.group.length>1?r.next():r.close(i.startEvent);break;case"zoom":"image"==c.type&&(c.isLoaded||c.$ghost)&&(r.canPan()?r.scaleToFit():r.isScaledDown()?r.scaleToActual(d,u):r.group.length<2&&r.close(i.startEvent))}};if((!e.originalEvent||2!=e.originalEvent.button)&&(s.is("img")||!(d>s[0].clientWidth+s.offset().left))){if(s.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))o="Outside";else if(s.is(".fancybox-slide"))o="Slide";else{if(!r.current.$content||!r.current.$content.find(s).addBack().filter(s).length)return;o="Content"}if(i.tapped){if(clearTimeout(i.tapped),i.tapped=null,Math.abs(d-i.tapX)>50||Math.abs(u-i.tapY)>50)return this;f("dblclick"+o)}else i.tapX=d,i.tapY=u,c.opts["dblclick"+o]&&c.opts["dblclick"+o]!==c.opts["click"+o]?i.tapped=setTimeout(function(){i.tapped=null,r.isAnimating||f("click"+o)},500):f("click"+o);return this}},n(e).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new d(e))}).on("beforeClose.fb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,jQuery),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});var n=function(t){this.instance=t,this.init()};e.extend(n.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this,n=t.instance,o=n.group[n.currIndex].opts.slideShow;t.$button=n.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),n.group.length<2||!o?t.$button.hide():o.progress&&(t.$progress=e('<div class="fancybox-progress"></div>').appendTo(n.$refs.inner))},set:function(t){var n=this,o=n.instance,i=o.current;i&&(!0===t||i.opts.loop||o.currIndex<o.group.length-1)?n.isActive&&"video"!==i.contentType&&(n.$progress&&e.fancybox.animate(n.$progress.show(),{scaleX:1},i.opts.slideShow.speed),n.timer=setTimeout(function(){o.current.opts.loop||o.current.index!=o.group.length-1?o.next():o.jumpTo(0)},i.opts.slideShow.speed)):(n.stop(),o.idleSecondsCounter=0,o.showControls())},clear:function(){var t=this;clearTimeout(t.timer),t.timer=null,t.$progress&&t.$progress.removeAttr("style").hide()},start:function(){var t=this,e=t.instance.current;e&&(t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),t.isActive=!0,e.isComplete&&t.set(!0),t.instance.trigger("onSlideShowChange",!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"),t.isActive=!1,t.instance.trigger("onSlideShowChange",!1),t.$progress&&t.$progress.removeAttr("style").hide()},toggle:function(){var t=this;t.isActive?t.stop():t.start()}}),e(t).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new n(e))},"beforeShow.fb":function(t,e,n,o){var i=e&&e.SlideShow;o?i&&n.opts.slideShow.autoStart&&i.start():i&&i.isActive&&i.clear()},"afterShow.fb":function(t,e,n){var o=e&&e.SlideShow;o&&o.isActive&&o.set()},"afterKeydown.fb":function(n,o,i,a,s){var r=o&&o.SlideShow;!r||!i.opts.slideShow||80!==s&&32!==s||e(t.activeElement).is("button,a,input")||(a.preventDefault(),r.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){var n=e&&e.SlideShow;n&&n.stop()}}),e(t).on("visibilitychange",function(){var n=e.fancybox.getInstance(),o=n&&n.SlideShow;o&&o.isActive&&(t.hidden?o.clear():o.set())})}(document,jQuery),function(t,e){"use strict";var n=function(){for(var e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n={},o=0;o<e.length;o++){var i=e[o];if(i&&i[1]in t){for(var a=0;a<i.length;a++)n[e[0][a]]=i[a];return n}}return!1}();if(n){var o={request:function(e){e=e||t.documentElement,e[n.requestFullscreen](e.ALLOW_KEYBOARD_INPUT)},exit:function(){t[n.exitFullscreen]()},toggle:function(e){e=e||t.documentElement,this.isFullscreen()?this.exit():this.request(e)},isFullscreen:function(){return Boolean(t[n.fullscreenElement])},enabled:function(){return Boolean(t[n.fullscreenEnabled])}};e.extend(!0,e.fancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),e(t).on(n.fullscreenchange,function(){var t=o.isFullscreen(),n=e.fancybox.getInstance();n&&(n.current&&"image"===n.current.type&&n.isAnimating&&(n.isAnimating=!1,n.update(!0,!0,0),n.isComplete||n.complete()),n.trigger("onFullscreenChange",t),n.$refs.container.toggleClass("fancybox-is-fullscreen",t),n.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!t).toggleClass("fancybox-button--fsexit",t))})}e(t).on({"onInit.fb":function(t,e){var i;if(!n)return void e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove();e&&e.group[e.currIndex].opts.fullScreen?(i=e.$refs.container,i.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),o.toggle()}),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&o.request(),e.FullScreen=o):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide()},"afterKeydown.fb":function(t,e,n,o,i){e&&e.FullScreen&&70===i&&(o.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("fancybox-is-fullscreen")&&o.exit()}})}(document,jQuery),function(t,e){"use strict";var n="fancybox-thumbs";e.fancybox.defaults=e.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},e.fancybox.defaults);var o=function(t){this.init(t)};e.extend(o.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e=this,n=t.group,o=0;e.instance=t,e.opts=n[t.currIndex].opts.thumbs,t.Thumbs=e,e.$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var i=0,a=n.length;i<a&&(n[i].thumb&&o++,!(o>1));i++);o>1&&e.opts?(e.$button.removeAttr("style").on("click",function(){e.toggle()}),e.isActive=!0):e.$button.hide()},create:function(){var t,o=this,i=o.instance,a=o.opts.parentEl,s=[];o.$grid||(o.$grid=e('<div class="'+n+" "+n+"-"+o.opts.axis+'"></div>').appendTo(i.$refs.container.find(a).addBack().filter(a)),o.$grid.on("click","a",function(){i.jumpTo(e(this).attr("data-index"))})),o.$list||(o.$list=e('<div class="'+n+'__list">').appendTo(o.$grid)),e.each(i.group,function(e,n){t=n.thumb,t||"image"!==n.type||(t=n.src),s.push('<a href="javascript:;" tabindex="0" data-index="'+e+'"'+(t&&t.length?' style="background-image:url('+t+')"':'class="fancybox-thumbs-missing"')+"></a>")}),o.$list[0].innerHTML=s.join(""),"x"===o.opts.axis&&o.$list.width(parseInt(o.$grid.css("padding-right"),10)+i.group.length*o.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,n,o=this,i=o.$list,a=o.$grid;o.instance.current&&(e=i.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+o.instance.current.index+'"]').addClass("fancybox-thumbs-active"),n=e.position(),"y"===o.opts.axis&&(n.top<0||n.top>i.height()-e.outerHeight())?i.stop().animate({scrollTop:i.scrollTop()+n.top},t):"x"===o.opts.axis&&(n.left<a.scrollLeft()||n.left>a.scrollLeft()+(a.width()-e.outerWidth()))&&i.parent().stop().animate({scrollLeft:n.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focus(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),e(t).on({"onInit.fb":function(t,e){var n;e&&!e.Thumbs&&(n=new o(e),n.isActive&&!0===n.opts.autoStart&&n.show())},"beforeShow.fb":function(t,e,n,o){var i=e&&e.Thumbs;i&&i.isVisible&&i.focus(o?0:250)},"afterKeydown.fb":function(t,e,n,o,i){var a=e&&e.Thumbs;a&&a.isActive&&71===i&&(o.preventDefault(),a.toggle())},"beforeClose.fb":function(t,e){var n=e&&e.Thumbs;n&&n.isVisible&&!1!==n.opts.hideOnClose&&n.$grid.hide()}})}(document,jQuery),function(t,e){"use strict";function n(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(t).replace(/[&<>"'`=\/]/g,function(t){return e[t]})}e.extend(!0,e.fancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location},
|
13 |
+
tpl:'<div class="fancybox-share"><h1>{{SHARE}}</h1><p><a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a><a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a><a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a></p><p><input class="fancybox-share__input" type="text" value="{{url_raw}}" onclick="select()" /></p></div>'}}),e(t).on("click","[data-fancybox-share]",function(){var t,o,i=e.fancybox.getInstance(),a=i.current||null;a&&("function"===e.type(a.opts.share.url)&&(t=a.opts.share.url.apply(a,[i,a])),o=a.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===a.type?encodeURIComponent(a.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(t)).replace(/\{\{url_raw\}\}/g,n(t)).replace(/\{\{descr\}\}/g,i.$caption?encodeURIComponent(i.$caption.text()):""),e.fancybox.open({src:i.translate(i,o),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(t,e){i.$refs.container.one("beforeClose.fb",function(){t.close(null,0)}),e.$content.find(".fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(t,e,n){"use strict";function o(){var e=t.location.hash.substr(1),n=e.split("-"),o=n.length>1&&/^\+?\d+$/.test(n[n.length-1])?parseInt(n.pop(-1),10)||1:1,i=n.join("-");return{hash:e,index:o<1?1:o,gallery:i}}function i(t){""!==t.gallery&&n("[data-fancybox='"+n.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function a(t){var e,n;return!!t&&(e=t.current?t.current.opts:t.opts,""!==(n=e.hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):""))&&n)}n.escapeSelector||(n.escapeSelector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t})}),n(function(){!1!==n.fancybox.defaults.hash&&(n(e).on({"onInit.fb":function(t,e){var n,i;!1!==e.group[e.currIndex].opts.hash&&(n=o(),(i=a(e))&&n.gallery&&i==n.gallery&&(e.currIndex=n.index-1))},"beforeShow.fb":function(n,o,i,s){var r;i&&!1!==i.opts.hash&&(r=a(o))&&(o.currentHash=r+(o.group.length>1?"-"+(i.index+1):""),t.location.hash!=="#"+o.currentHash&&(s&&!o.origHash&&(o.origHash=t.location.hash),o.hashTimer&&clearTimeout(o.hashTimer),o.hashTimer=setTimeout(function(){"replaceState"in t.history?(t.history[s?"pushState":"replaceState"]({},e.title,t.location.pathname+t.location.search+"#"+o.currentHash),s&&(o.hasCreatedHistory=!0)):t.location.hash=o.currentHash,o.hashTimer=null},300)))},"beforeClose.fb":function(n,o,i){i&&!1!==i.opts.hash&&(clearTimeout(o.hashTimer),o.currentHash&&o.hasCreatedHistory?t.history.back():o.currentHash&&("replaceState"in t.history?t.history.replaceState({},e.title,t.location.pathname+t.location.search+(o.origHash||"")):t.location.hash=o.origHash),o.currentHash=null)}}),n(t).on("hashchange.fb",function(){var t=o(),e=null;n.each(n(".fancybox-container").get().reverse(),function(t,o){var i=n(o).data("FancyBox");if(i&&i.currentHash)return e=i,!1}),e?e.currentHash===t.gallery+"-"+t.index||1===t.index&&e.currentHash==t.gallery||(e.currentHash=null,e.close()):""!==t.gallery&&i(t)}),setTimeout(function(){n.fancybox.getInstance()||i(o())},50))})}(window,document,jQuery),function(t,e){"use strict";var n=(new Date).getTime();e(t).on({"onInit.fb":function(t,e,o){e.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var o=e.current,i=(new Date).getTime();e.group.length<2||!1===o.opts.wheel||"auto"===o.opts.wheel&&"image"!==o.type||(t.preventDefault(),t.stopPropagation(),o.$slide.hasClass("fancybox-animated")||(t=t.originalEvent||t,i-n<250||(n=i,e[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,jQuery);
|
js/mixitup.min.js
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**!
|
2 |
+
* MixItUp v3.3.1
|
3 |
+
* A high-performance, dependency-free library for animated filtering, sorting and more
|
4 |
+
* Build 94e0fbf6-cd0b-4987-b3c0-14b59b67b8a0
|
5 |
+
*
|
6 |
+
* @copyright Copyright 2014-2018 KunkaLabs Limited.
|
7 |
+
* @author KunkaLabs Limited.
|
8 |
+
* @link https://www.kunkalabs.com/mixitup/
|
9 |
+
*
|
10 |
+
* @license Commercial use requires a commercial license.
|
11 |
+
* https://www.kunkalabs.com/mixitup/licenses/
|
12 |
+
*
|
13 |
+
* Non-commercial use permitted under same terms as CC BY-NC 3.0 license.
|
14 |
+
* http://creativecommons.org/licenses/by-nc/3.0/
|
15 |
+
*/
|
16 |
+
!function(t){"use strict";var e=null,n=null;!function(){var e=["webkit","moz","o","ms"],n=t.document.createElement("div"),a=-1;for(a=0;a<e.length&&!t.requestAnimationFrame;a++)t.requestAnimationFrame=t[e[a]+"RequestAnimationFrame"];"undefined"==typeof n.nextElementSibling&&Object.defineProperty(t.Element.prototype,"nextElementSibling",{get:function(){for(var t=this.nextSibling;t;){if(1===t.nodeType)return t;t=t.nextSibling}return null}}),function(t){t.matches=t.matches||t.machesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector||function(t){return Array.prototype.indexOf.call(this.parentElement.querySelectorAll(t),this)>-1}}(t.Element.prototype),Object.keys||(Object.keys=function(){var t=Object.prototype.hasOwnProperty,e=!1,n=[],a=-1;return e=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],a=n.length,function(i){var o=[],r="",s=-1;if("object"!=typeof i&&("function"!=typeof i||null===i))throw new TypeError("Object.keys called on non-object");for(r in i)t.call(i,r)&&o.push(r);if(e)for(s=0;s<a;s++)t.call(i,n[s])&&o.push(n[s]);return o}}()),Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),"function"!=typeof Object.create&&(Object.create=function(t){var e=function(){};return function(n,a){if(n!==Object(n)&&null!==n)throw TypeError("Argument must be an object, or null");e.prototype=n||{};var i=new e;return e.prototype=null,a!==t&&Object.defineProperties(i,a),null===n&&(i.__proto__=null),i}}()),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t){var e,n,a,i;if(null===this)throw new TypeError;if(a=Object(this),i=a.length>>>0,0===i)return-1;if(e=0,arguments.length>1&&(e=Number(arguments[1]),e!==e?e=0:0!==e&&e!==1/0&&e!==-(1/0)&&(e=(e>0||-1)*Math.floor(Math.abs(e)))),e>=i)return-1;for(n=e>=0?e:Math.max(i-Math.abs(e),0);n<i;n++)if(n in a&&a[n]===t)return n;return-1}),Function.prototype.bind||(Function.prototype.bind=function(t){var e,n,a,i;if("function"!=typeof this)throw new TypeError;return e=Array.prototype.slice.call(arguments,1),n=this,a=function(){},i=function(){return n.apply(this instanceof a?this:t,e.concat(Array.prototype.slice.call(arguments)))},this.prototype&&(a.prototype=this.prototype),i.prototype=new a,i}),t.Element.prototype.dispatchEvent||(t.Element.prototype.dispatchEvent=function(t){try{return this.fireEvent("on"+t.type,t)}catch(e){}})}(),e=function(a,i,o){var r=null,s=!1,l=null,c=null,u=null,f=null,h=[],d="",m=[],g=-1;if(u=o||t.document,(s=arguments[3])&&(s="boolean"==typeof s),"string"==typeof a)m=u.querySelectorAll(a);else if(a&&"object"==typeof a&&n.isElement(a,u))m=[a];else{if(!a||"object"!=typeof a||!a.length)throw new Error(e.messages.errorFactoryInvalidContainer());m=a}if(m.length<1)throw new Error(e.messages.errorFactoryContainerNotFound());for(g=0;(r=m[g])&&(!(g>0)||s);g++)r.id?d=r.id:(d="MixItUp"+n.randomHex(),r.id=d),e.instances[d]instanceof e.Mixer?(l=e.instances[d],(!i||i&&i.debug&&i.debug.showWarnings!==!1)&&console.warn(e.messages.warningFactoryPreexistingInstance())):(l=new e.Mixer,l.attach(r,u,d,i),e.instances[d]=l),c=new e.Facade(l),i&&i.debug&&i.debug.enable?h.push(l):h.push(c);return f=s?new e.Collection(h):h[0]},e.use=function(t){e.Base.prototype.callActions.call(e,"beforeUse",arguments),"function"==typeof t&&"mixitup-extension"===t.TYPE?"undefined"==typeof e.extensions[t.NAME]&&(t(e),e.extensions[t.NAME]=t):t.fn&&t.fn.jquery&&(e.libraries.$=t),e.Base.prototype.callActions.call(e,"afterUse",arguments)},e.instances={},e.extensions={},e.libraries={},n={hasClass:function(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},addClass:function(t,e){this.hasClass(t,e)||(t.className+=t.className?" "+e:e)},removeClass:function(t,e){if(this.hasClass(t,e)){var n=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(n," ").trim()}},extend:function(t,e,n,a){var i=[],o="",r=-1;n=n||!1,a=a||!1;try{if(Array.isArray(e))for(r=0;r<e.length;r++)i.push(r);else e&&(i=Object.keys(e));for(r=0;r<i.length;r++)o=i[r],!n||"object"!=typeof e[o]||this.isElement(e[o])?t[o]=e[o]:Array.isArray(e[o])?(t[o]||(t[o]=[]),this.extend(t[o],e[o],n,a)):(t[o]||(t[o]={}),this.extend(t[o],e[o],n,a))}catch(s){if(!a)throw s;this.handleExtendError(s,t)}return t},handleExtendError:function(t,n){var a=/property "?(\w*)"?[,:] object/i,i=null,o="",r="",s="",l="",c="",u=-1,f=-1;if(t instanceof TypeError&&(i=a.exec(t.message))){o=i[1];for(c in n){for(f=0;f<o.length&&o.charAt(f)===c.charAt(f);)f++;f>u&&(u=f,l=c)}throw u>1&&(s=e.messages.errorConfigInvalidPropertySuggestion({probableMatch:l})),r=e.messages.errorConfigInvalidProperty({erroneous:o,suggestion:s}),new TypeError(r)}throw t},template:function(t){for(var e=/\${([\w]*)}/g,n={},a=null;a=e.exec(t);)n[a[1]]=new RegExp("\\${"+a[1]+"}","g");return function(e){var a="",i=t;e=e||{};for(a in n)i=i.replace(n[a],"undefined"!=typeof e[a]?e[a]:"");return i}},on:function(e,n,a,i){e&&(e.addEventListener?e.addEventListener(n,a,i):e.attachEvent&&(e["e"+n+a]=a,e[n+a]=function(){e["e"+n+a](t.event)},e.attachEvent("on"+n,e[n+a])))},off:function(t,e,n){t&&(t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent&&(t.detachEvent("on"+e,t[e+n]),t[e+n]=null))},getCustomEvent:function(e,n,a){var i=null;return a=a||t.document,"function"==typeof t.CustomEvent?i=new t.CustomEvent(e,{detail:n,bubbles:!0,cancelable:!0}):"function"==typeof a.createEvent?(i=a.createEvent("CustomEvent"),i.initCustomEvent(e,!0,!0,n)):(i=a.createEventObject(),i.type=e,i.returnValue=!1,i.cancelBubble=!1,i.detail=n),i},getOriginalEvent:function(t){return t.touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t},index:function(t,e){for(var n=0;null!==(t=t.previousElementSibling);)e&&!t.matches(e)||++n;return n},camelCase:function(t){return t.toLowerCase().replace(/([_-][a-z])/g,function(t){return t.toUpperCase().replace(/[_-]/,"")})},pascalCase:function(t){return(t=this.camelCase(t)).charAt(0).toUpperCase()+t.slice(1)},dashCase:function(t){return t.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()},isElement:function(e,n){return n=n||t.document,!!(t.HTMLElement&&e instanceof t.HTMLElement)||(!!(n.defaultView&&n.defaultView.HTMLElement&&e instanceof n.defaultView.HTMLElement)||null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)},createElement:function(e,n){var a=null,i=null;for(n=n||t.document,a=n.createDocumentFragment(),i=n.createElement("div"),i.innerHTML=e.trim();i.firstChild;)a.appendChild(i.firstChild);return a},removeWhitespace:function(t){for(var e;t&&"#text"===t.nodeName;)e=t,t=t.previousSibling,e.parentElement&&e.parentElement.removeChild(e)},isEqualArray:function(t,e){var n=t.length;if(n!==e.length)return!1;for(;n--;)if(t[n]!==e[n])return!1;return!0},deepEquals:function(t,e){var n;if("object"==typeof t&&t&&"object"==typeof e&&e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(n in t)if(!e.hasOwnProperty(n)||!this.deepEquals(t[n],e[n]))return!1}else if(t!==e)return!1;return!0},arrayShuffle:function(t){for(var e=t.slice(),n=e.length,a=n,i=-1,o=[];a--;)i=~~(Math.random()*n),o=e[a],e[a]=e[i],e[i]=o;return e},arrayFromList:function(t){var e,n;try{return Array.prototype.slice.call(t)}catch(a){for(e=[],n=0;n<t.length;n++)e.push(t[n]);return e}},debounce:function(t,e,n){var a;return function(){var i=this,o=arguments,r=n&&!a,s=null;s=function(){a=null,n||t.apply(i,o)},clearTimeout(a),a=setTimeout(s,e),r&&t.apply(i,o)}},position:function(t){for(var e=0,n=0,a=t;t;)e-=t.scrollLeft,n-=t.scrollTop,t===a&&(e+=t.offsetLeft,n+=t.offsetTop,a=t.offsetParent),t=t.parentElement;return{x:e,y:n}},getHypotenuse:function(t,e){var n=t.x-e.x,a=t.y-e.y;return n=n<0?n*-1:n,a=a<0?a*-1:a,Math.sqrt(Math.pow(n,2)+Math.pow(a,2))},getIntersectionRatio:function(t,e){var n=t.width*t.height,a=-1,i=-1,o=-1,r=-1;return a=Math.max(0,Math.min(t.left+t.width,e.left+e.width)-Math.max(t.left,e.left)),i=Math.max(0,Math.min(t.top+t.height,e.top+e.height)-Math.max(t.top,e.top)),o=i*a,r=o/n},closestParent:function(e,n,a,i){var o=e.parentNode;if(i=i||t.document,a&&e.matches(n))return e;for(;o&&o!=i.body;){if(o.matches&&o.matches(n))return o;if(!o.parentNode)return null;o=o.parentNode}return null},children:function(e,n,a){var i=[],o="";return a=a||t.doc,e&&(e.id||(o="Temp"+this.randomHexKey(),e.id=o),i=a.querySelectorAll("#"+e.id+" > "+n),o&&e.removeAttribute("id")),i},clean:function(t){var e=[],n=-1;for(n=0;n<t.length;n++)""!==t[n]&&e.push(t[n]);return e},defer:function(n){var a=null,i=null,o=null;return i=new this.Deferred,e.features.has.promises?i.promise=new Promise(function(t,e){i.resolve=t,i.reject=e}):(o=t.jQuery||n.$)&&"function"==typeof o.Deferred?(a=o.Deferred(),i.promise=a.promise(),i.resolve=a.resolve,i.reject=a.reject):t.console&&console.warn(e.messages.warningNoPromiseImplementation()),i},all:function(n,a){var i=null;return e.features.has.promises?Promise.all(n):(i=t.jQuery||a.$)&&"function"==typeof i.when?i.when.apply(i,n).done(function(){return arguments}):(t.console&&console.warn(e.messages.warningNoPromiseImplementation()),[])},getPrefix:function(t,e,a){var i=-1,o="";if(n.dashCase(e)in t.style)return"";for(i=0;o=a[i];i++)if(o+e in t.style)return o.toLowerCase();return"unsupported"},randomHex:function(){return("00000"+(16777216*Math.random()<<0).toString(16)).substr(-6).toUpperCase()},getDocumentState:function(e){return e="object"==typeof e.body?e:t.document,{scrollTop:t.pageYOffset,scrollLeft:t.pageXOffset,docHeight:e.documentElement.scrollHeight,docWidth:e.documentElement.scrollWidth,viewportHeight:e.documentElement.clientHeight,viewportWidth:e.documentElement.clientWidth}},bind:function(t,e){return function(){return e.apply(t,arguments)}},isVisible:function(e){var n=null;return!!e.offsetParent||(n=t.getComputedStyle(e),"fixed"===n.position&&"hidden"!==n.visibility&&"0"!==n.opacity)},seal:function(t){"function"==typeof Object.seal&&Object.seal(t)},freeze:function(t){"function"==typeof Object.freeze&&Object.freeze(t)},compareVersions:function(t,e){var n=t.split("."),a=e.split("."),i=-1,o=-1,r=-1;for(r=0;r<n.length;r++){if(i=parseInt(n[r].replace(/[^\d.]/g,"")),o=parseInt(a[r].replace(/[^\d.]/g,"")||0),o<i)return!1;if(o>i)return!0}return!0},Deferred:function(){this.promise=null,this.resolve=null,this.reject=null,this.id=n.randomHex()},isEmptyObject:function(t){var e="";if("function"==typeof Object.keys)return 0===Object.keys(t).length;for(e in t)if(t.hasOwnProperty(e))return!1;return!0},getClassname:function(t,e,n){var a="";return a+=t.block,a.length&&(a+=t.delineatorElement),a+=t["element"+this.pascalCase(e)],n?(a.length&&(a+=t.delineatorModifier),a+=n):a},getProperty:function(t,e){var n=e.split("."),a=null,i="",o=0;if(!e)return t;for(a=function(t){return t?t[i]:null};o<n.length;)i=n[o],t=a(t),o++;return"undefined"!=typeof t?t:null}},e.h=n,e.Base=function(){},e.Base.prototype={constructor:e.Base,callActions:function(t,e){var a=this,i=a.constructor.actions[t],o="";if(i&&!n.isEmptyObject(i))for(o in i)i[o].apply(a,e)},callFilters:function(t,e,a){var i=this,o=i.constructor.filters[t],r=e,s="";if(!o||n.isEmptyObject(o))return r;a=a||[];for(s in o)a=n.arrayFromList(a),a.unshift(r),r=o[s].apply(i,a);return r}},e.BaseStatic=function(){this.actions={},this.filters={},this.extend=function(t){n.extend(this.prototype,t)},this.registerAction=function(t,e,n){(this.actions[t]=this.actions[t]||{})[e]=n},this.registerFilter=function(t,e,n){(this.filters[t]=this.filters[t]||{})[e]=n}},e.Features=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.boxSizingPrefix="",this.transformPrefix="",this.transitionPrefix="",this.boxSizingPrefix="",this.transformProp="",this.transformRule="",this.transitionProp="",this.perspectiveProp="",this.perspectiveOriginProp="",this.has=new e.Has,this.canary=null,this.BOX_SIZING_PROP="boxSizing",this.TRANSITION_PROP="transition",this.TRANSFORM_PROP="transform",this.PERSPECTIVE_PROP="perspective",this.PERSPECTIVE_ORIGIN_PROP="perspectiveOrigin",this.VENDORS=["Webkit","moz","O","ms"],this.TWEENABLE=["opacity","width","height","marginRight","marginBottom","x","y","scale","translateX","translateY","translateZ","rotateX","rotateY","rotateZ"],this.callActions("afterConstruct")},e.BaseStatic.call(e.Features),e.Features.prototype=Object.create(e.Base.prototype),n.extend(e.Features.prototype,{constructor:e.Features,init:function(){var t=this;t.callActions("beforeInit",arguments),t.canary=document.createElement("div"),t.setPrefixes(),t.runTests(),t.callActions("beforeInit",arguments)},runTests:function(){var e=this;e.callActions("beforeRunTests",arguments),e.has.promises="function"==typeof t.Promise,e.has.transitions="unsupported"!==e.transitionPrefix,e.callActions("afterRunTests",arguments),n.freeze(e.has)},setPrefixes:function(){var t=this;t.callActions("beforeSetPrefixes",arguments),t.transitionPrefix=n.getPrefix(t.canary,"Transition",t.VENDORS),t.transformPrefix=n.getPrefix(t.canary,"Transform",t.VENDORS),t.boxSizingPrefix=n.getPrefix(t.canary,"BoxSizing",t.VENDORS),t.boxSizingProp=t.boxSizingPrefix?t.boxSizingPrefix+n.pascalCase(t.BOX_SIZING_PROP):t.BOX_SIZING_PROP,t.transitionProp=t.transitionPrefix?t.transitionPrefix+n.pascalCase(t.TRANSITION_PROP):t.TRANSITION_PROP,t.transformProp=t.transformPrefix?t.transformPrefix+n.pascalCase(t.TRANSFORM_PROP):t.TRANSFORM_PROP,t.transformRule=t.transformPrefix?"-"+t.transformPrefix+"-"+t.TRANSFORM_PROP:t.TRANSFORM_PROP,t.perspectiveProp=t.transformPrefix?t.transformPrefix+n.pascalCase(t.PERSPECTIVE_PROP):t.PERSPECTIVE_PROP,t.perspectiveOriginProp=t.transformPrefix?t.transformPrefix+n.pascalCase(t.PERSPECTIVE_ORIGIN_PROP):t.PERSPECTIVE_ORIGIN_PROP,t.callActions("afterSetPrefixes",arguments)}}),e.Has=function(){this.transitions=!1,this.promises=!1,n.seal(this)},e.features=new e.Features,e.features.init(),e.ConfigAnimation=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.enable=!0,this.effects="fade scale",this.effectsIn="",this.effectsOut="",this.duration=600,this.easing="ease",this.applyPerspective=!0,this.perspectiveDistance="3000px",this.perspectiveOrigin="50% 50%",this.queue=!0,this.queueLimit=3,this.animateResizeContainer=!0,this.animateResizeTargets=!1,this.staggerSequence=null,this.reverseOut=!1,this.nudge=!0,this.clampHeight=!0,this.clampWidth=!0,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigAnimation),e.ConfigAnimation.prototype=Object.create(e.Base.prototype),e.ConfigAnimation.prototype.constructor=e.ConfigAnimation,e.ConfigBehavior=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.liveSort=!1,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigBehavior),e.ConfigBehavior.prototype=Object.create(e.Base.prototype),e.ConfigBehavior.prototype.constructor=e.ConfigBehavior,e.ConfigCallbacks=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.onMixStart=null,this.onMixBusy=null,this.onMixEnd=null,this.onMixFail=null,this.onMixClick=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigCallbacks),e.ConfigCallbacks.prototype=Object.create(e.Base.prototype),e.ConfigCallbacks.prototype.constructor=e.ConfigCallbacks,e.ConfigControls=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.enable=!0,this.live=!1,this.scope="global",this.toggleLogic="or",this.toggleDefault="all",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigControls),e.ConfigControls.prototype=Object.create(e.Base.prototype),e.ConfigControls.prototype.constructor=e.ConfigControls,e.ConfigClassNames=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.block="mixitup",this.elementContainer="container",this.elementFilter="control",this.elementSort="control",this.elementMultimix="control",this.elementToggle="control",this.modifierActive="active",this.modifierDisabled="disabled",this.modifierFailed="failed",this.delineatorElement="-",this.delineatorModifier="-",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigClassNames),e.ConfigClassNames.prototype=Object.create(e.Base.prototype),e.ConfigClassNames.prototype.constructor=e.ConfigClassNames,e.ConfigData=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.uidKey="",this.dirtyCheck=!1,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigData),e.ConfigData.prototype=Object.create(e.Base.prototype),e.ConfigData.prototype.constructor=e.ConfigData,e.ConfigDebug=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.enable=!1,this.showWarnings=!0,this.fauxAsync=!1,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigDebug),e.ConfigDebug.prototype=Object.create(e.Base.prototype),e.ConfigDebug.prototype.constructor=e.ConfigDebug,e.ConfigLayout=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.allowNestedTargets=!0,this.containerClassName="",this.siblingBefore=null,this.siblingAfter=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigLayout),e.ConfigLayout.prototype=Object.create(e.Base.prototype),e.ConfigLayout.prototype.constructor=e.ConfigLayout,e.ConfigLoad=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.filter="all",this.sort="default:asc",this.dataset=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigLoad),e.ConfigLoad.prototype=Object.create(e.Base.prototype),e.ConfigLoad.prototype.constructor=e.ConfigLoad,e.ConfigSelectors=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.target=".mix",this.control="",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigSelectors),e.ConfigSelectors.prototype=Object.create(e.Base.prototype),e.ConfigSelectors.prototype.constructor=e.ConfigSelectors,e.ConfigRender=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.target=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigRender),e.ConfigRender.prototype=Object.create(e.Base.prototype),e.ConfigRender.prototype.constructor=e.ConfigRender,e.ConfigTemplates=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.ConfigTemplates),e.ConfigTemplates.prototype=Object.create(e.Base.prototype),e.ConfigTemplates.prototype.constructor=e.ConfigTemplates,e.Config=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.animation=new e.ConfigAnimation,this.behavior=new e.ConfigBehavior,this.callbacks=new e.ConfigCallbacks,this.controls=new e.ConfigControls,this.classNames=new e.ConfigClassNames,this.data=new e.ConfigData,this.debug=new e.ConfigDebug,this.layout=new e.ConfigLayout,this.load=new e.ConfigLoad,this.selectors=new e.ConfigSelectors,this.render=new e.ConfigRender,this.templates=new e.ConfigTemplates,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.Config),e.Config.prototype=Object.create(e.Base.prototype),e.Config.prototype.constructor=e.Config,e.MixerDom=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.document=null,this.body=null,this.container=null,this.parent=null,this.targets=[],this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.MixerDom),e.MixerDom.prototype=Object.create(e.Base.prototype),e.MixerDom.prototype.constructor=e.MixerDom,e.UiClassNames=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.base="",this.active="",this.disabled="",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.UiClassNames),e.UiClassNames.prototype=Object.create(e.Base.prototype),e.UiClassNames.prototype.constructor=e.UiClassNames,e.CommandDataset=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.dataset=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandDataset),e.CommandDataset.prototype=Object.create(e.Base.prototype),e.CommandDataset.prototype.constructor=e.CommandDataset,e.CommandMultimix=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.filter=null,this.sort=null,this.insert=null,this.remove=null,this.changeLayout=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandMultimix),e.CommandMultimix.prototype=Object.create(e.Base.prototype),e.CommandMultimix.prototype.constructor=e.CommandMultimix,e.CommandFilter=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.selector="",this.collection=null,this.action="show",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandFilter),e.CommandFilter.prototype=Object.create(e.Base.prototype),e.CommandFilter.prototype.constructor=e.CommandFilter,e.CommandSort=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.sortString="",this.attribute="",this.order="asc",this.collection=null,this.next=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandSort),e.CommandSort.prototype=Object.create(e.Base.prototype),e.CommandSort.prototype.constructor=e.CommandSort,e.CommandInsert=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.index=0,this.collection=[],this.position="before",this.sibling=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandInsert),e.CommandInsert.prototype=Object.create(e.Base.prototype),e.CommandInsert.prototype.constructor=e.CommandInsert,e.CommandRemove=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.targets=[],this.collection=[],this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandRemove),e.CommandRemove.prototype=Object.create(e.Base.prototype),e.CommandRemove.prototype.constructor=e.CommandRemove,e.CommandChangeLayout=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.containerClassName="",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.CommandChangeLayout),e.CommandChangeLayout.prototype=Object.create(e.Base.prototype),e.CommandChangeLayout.prototype.constructor=e.CommandChangeLayout,e.ControlDefinition=function(t,a,i,o){e.Base.call(this),this.callActions("beforeConstruct"),this.type=t,this.selector=a,this.live=i||!1,this.parent=o||"",this.callActions("afterConstruct"),n.freeze(this),n.seal(this)},e.BaseStatic.call(e.ControlDefinition),e.ControlDefinition.prototype=Object.create(e.Base.prototype),e.ControlDefinition.prototype.constructor=e.ControlDefinition,e.controlDefinitions=[],e.controlDefinitions.push(new e.ControlDefinition("multimix","[data-filter][data-sort]")),e.controlDefinitions.push(new e.ControlDefinition("filter","[data-filter]")),e.controlDefinitions.push(new e.ControlDefinition("sort","[data-sort]")),e.controlDefinitions.push(new e.ControlDefinition("toggle","[data-toggle]")),e.Control=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.el=null,this.selector="",this.bound=[],this.pending=-1,this.type="",this.status="inactive",this.filter="",this.sort="",this.canDisable=!1,this.handler=null,this.classNames=new e.UiClassNames,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.Control),e.Control.prototype=Object.create(e.Base.prototype),n.extend(e.Control.prototype,{constructor:e.Control,init:function(t,n,a){var i=this;if(this.callActions("beforeInit",arguments),i.el=t,i.type=n,i.selector=a,i.selector)i.status="live";else switch(i.canDisable="boolean"==typeof i.el.disable,i.type){case"filter":i.filter=i.el.getAttribute("data-filter");break;case"toggle":i.filter=i.el.getAttribute("data-toggle");break;case"sort":i.sort=i.el.getAttribute("data-sort");break;case"multimix":i.filter=i.el.getAttribute("data-filter"),i.sort=i.el.getAttribute("data-sort")}i.bindClick(),e.controls.push(i),this.callActions("afterInit",arguments)},isBound:function(t){var e=this,n=!1;return this.callActions("beforeIsBound",arguments),n=e.bound.indexOf(t)>-1,e.callFilters("afterIsBound",n,arguments)},addBinding:function(t){var e=this;this.callActions("beforeAddBinding",arguments),e.isBound()||e.bound.push(t),this.callActions("afterAddBinding",arguments)},removeBinding:function(t){var n=this,a=-1;this.callActions("beforeRemoveBinding",arguments),(a=n.bound.indexOf(t))>-1&&n.bound.splice(a,1),n.bound.length<1&&(n.unbindClick(),a=e.controls.indexOf(n),e.controls.splice(a,1),"active"===n.status&&n.renderStatus(n.el,"inactive")),this.callActions("afterRemoveBinding",arguments)},bindClick:function(){var t=this;this.callActions("beforeBindClick",arguments),t.handler=function(e){t.handleClick(e)},n.on(t.el,"click",t.handler),this.callActions("afterBindClick",arguments)},unbindClick:function(){var t=this;this.callActions("beforeUnbindClick",arguments),n.off(t.el,"click",t.handler),t.handler=null,this.callActions("afterUnbindClick",arguments)},handleClick:function(t){var a=this,i=null,o=null,r=!1,s=void 0,l={},c=null,u=[],f=-1;if(this.callActions("beforeHandleClick",arguments),this.pending=0,o=a.bound[0],i=a.selector?n.closestParent(t.target,o.config.selectors.control+a.selector,!0,o.dom.document):a.el,!i)return void a.callActions("afterHandleClick",arguments);switch(a.type){case"filter":l.filter=a.filter||i.getAttribute("data-filter");break;case"sort":l.sort=a.sort||i.getAttribute("data-sort");break;case"multimix":l.filter=a.filter||i.getAttribute("data-filter"),l.sort=a.sort||i.getAttribute("data-sort");break;case"toggle":l.filter=a.filter||i.getAttribute("data-toggle"),r="live"===a.status?n.hasClass(i,a.classNames.active):"active"===a.status}for(f=0;f<a.bound.length;f++)c=new e.CommandMultimix,n.extend(c,l),u.push(c);for(u=a.callFilters("commandsHandleClick",u,arguments),a.pending=a.bound.length,f=0;o=a.bound[f];f++)l=u[f],l&&(o.lastClicked||(o.lastClicked=i),e.events.fire("mixClick",o.dom.container,{state:o.state,instance:o,originalEvent:t,control:o.lastClicked},o.dom.document),"function"==typeof o.config.callbacks.onMixClick&&(s=o.config.callbacks.onMixClick.call(o.lastClicked,o.state,t,o),s===!1)||("toggle"===a.type?r?o.toggleOff(l.filter):o.toggleOn(l.filter):o.multimix(l)));this.callActions("afterHandleClick",arguments)},update:function(t,n){var a=this,i=new e.CommandMultimix;a.callActions("beforeUpdate",arguments),a.pending--,a.pending=Math.max(0,a.pending),a.pending>0||("live"===a.status?a.updateLive(t,n):(i.sort=a.sort,i.filter=a.filter,a.callFilters("actionsUpdate",i,arguments),a.parseStatusChange(a.el,t,i,n)),a.callActions("afterUpdate",arguments))},updateLive:function(t,n){var a=this,i=null,o=null,r=null,s=-1;if(a.callActions("beforeUpdateLive",arguments),a.el){for(i=a.el.querySelectorAll(a.selector),s=0;r=i[s];s++){switch(o=new e.CommandMultimix,a.type){case"filter":o.filter=r.getAttribute("data-filter");break;case"sort":o.sort=r.getAttribute("data-sort");break;case"multimix":o.filter=r.getAttribute("data-filter"),o.sort=r.getAttribute("data-sort");break;case"toggle":o.filter=r.getAttribute("data-toggle")}o=a.callFilters("actionsUpdateLive",o,arguments),a.parseStatusChange(r,t,o,n)}a.callActions("afterUpdateLive",arguments)}},parseStatusChange:function(t,e,n,a){var i=this,o="",r="",s=-1;switch(i.callActions("beforeParseStatusChange",arguments),i.type){case"filter":e.filter===n.filter?i.renderStatus(t,"active"):i.renderStatus(t,"inactive");break;case"multimix":e.sort===n.sort&&e.filter===n.filter?i.renderStatus(t,"active"):i.renderStatus(t,"inactive");break;case"sort":e.sort.match(/:asc/g)&&(o=e.sort.replace(/:asc/g,"")),e.sort===n.sort||o===n.sort?i.renderStatus(t,"active"):i.renderStatus(t,"inactive");break;case"toggle":for(a.length<1&&i.renderStatus(t,"inactive"),e.filter===n.filter&&i.renderStatus(t,"active"),s=0;s<a.length;s++){if(r=a[s],r===n.filter){i.renderStatus(t,"active");break}i.renderStatus(t,"inactive")}}i.callActions("afterParseStatusChange",arguments)},renderStatus:function(t,e){var a=this;switch(a.callActions("beforeRenderStatus",arguments),e){case"active":n.addClass(t,a.classNames.active),n.removeClass(t,a.classNames.disabled),a.canDisable&&(a.el.disabled=!1);break;case"inactive":n.removeClass(t,a.classNames.active),n.removeClass(t,a.classNames.disabled),a.canDisable&&(a.el.disabled=!1);break;case"disabled":a.canDisable&&(a.el.disabled=!0),n.addClass(t,a.classNames.disabled),n.removeClass(t,a.classNames.active)}"live"!==a.status&&(a.status=e),a.callActions("afterRenderStatus",arguments)}}),e.controls=[],e.StyleData=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.x=0,this.y=0,this.top=0,this.right=0,this.bottom=0,this.left=0,this.width=0,this.height=0,this.marginRight=0,this.marginBottom=0,this.opacity=0,this.scale=new e.TransformData,this.translateX=new e.TransformData,this.translateY=new e.TransformData,this.translateZ=new e.TransformData,this.rotateX=new e.TransformData,this.rotateY=new e.TransformData,this.rotateZ=new e.TransformData,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.StyleData),e.StyleData.prototype=Object.create(e.Base.prototype),e.StyleData.prototype.constructor=e.StyleData,e.TransformData=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.value=0,this.unit="",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.TransformData),e.TransformData.prototype=Object.create(e.Base.prototype),e.TransformData.prototype.constructor=e.TransformData,e.TransformDefaults=function(){e.StyleData.apply(this),this.callActions("beforeConstruct"),this.scale.value=.01,this.scale.unit="",this.translateX.value=20,this.translateX.unit="px",this.translateY.value=20,this.translateY.unit="px",this.translateZ.value=20,this.translateZ.unit="px",this.rotateX.value=90,this.rotateX.unit="deg",this.rotateY.value=90,this.rotateY.unit="deg",this.rotateX.value=90,this.rotateX.unit="deg",this.rotateZ.value=180,this.rotateZ.unit="deg",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.TransformDefaults),e.TransformDefaults.prototype=Object.create(e.StyleData.prototype),e.TransformDefaults.prototype.constructor=e.TransformDefaults,e.transformDefaults=new e.TransformDefaults,e.EventDetail=function(){this.state=null,this.futureState=null,this.instance=null,this.originalEvent=null},e.Events=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.mixStart=null,this.mixBusy=null,this.mixEnd=null,this.mixFail=null,this.mixClick=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.Events),e.Events.prototype=Object.create(e.Base.prototype),e.Events.prototype.constructor=e.Events,e.Events.prototype.fire=function(t,a,i,o){var r=this,s=null,l=new e.EventDetail;if(r.callActions("beforeFire",arguments),"undefined"==typeof r[t])throw new Error('Event type "'+t+'" not found.');l.state=new e.State,n.extend(l.state,i.state),i.futureState&&(l.futureState=new e.State,n.extend(l.futureState,i.futureState)),l.instance=i.instance,i.originalEvent&&(l.originalEvent=i.originalEvent),s=n.getCustomEvent(t,l,o),r.callFilters("eventFire",s,arguments),a.dispatchEvent(s)},e.events=new e.Events,e.QueueItem=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.args=[],this.instruction=null,this.triggerElement=null,this.deferred=null,this.isToggling=!1,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.QueueItem),e.QueueItem.prototype=Object.create(e.Base.prototype),e.QueueItem.prototype.constructor=e.QueueItem,e.Mixer=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.config=new e.Config,this.id="",this.isBusy=!1,this.isToggling=!1,this.incPadding=!0,this.controls=[],this.targets=[],this.origOrder=[],this.cache={},this.toggleArray=[],this.targetsMoved=0,this.targetsImmovable=0,this.targetsBound=0,this.targetsDone=0,this.staggerDuration=0,this.effectsIn=null,this.effectsOut=null,this.transformIn=[],this.transformOut=[],this.queue=[],this.state=null,this.lastOperation=null,
|
17 |
+
this.lastClicked=null,this.userCallback=null,this.userDeferred=null,this.dom=new e.MixerDom,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.Mixer),e.Mixer.prototype=Object.create(e.Base.prototype),n.extend(e.Mixer.prototype,{constructor:e.Mixer,attach:function(a,i,o,r){var s=this,l=null,c=-1;for(s.callActions("beforeAttach",arguments),s.id=o,r&&n.extend(s.config,r,!0,!0),s.sanitizeConfig(),s.cacheDom(a,i),s.config.layout.containerClassName&&n.addClass(s.dom.container,s.config.layout.containerClassName),e.features.has.transitions||(s.config.animation.enable=!1),"undefined"==typeof t.console&&(s.config.debug.showWarnings=!1),s.config.data.uidKey&&(s.config.controls.enable=!1),s.indexTargets(),s.state=s.getInitialState(),c=0;l=s.lastOperation.toHide[c];c++)l.hide();s.config.controls.enable&&(s.initControls(),s.buildToggleArray(null,s.state),s.updateControls({filter:s.state.activeFilter,sort:s.state.activeSort})),s.parseEffects(),s.callActions("afterAttach",arguments)},sanitizeConfig:function(){var t=this;t.callActions("beforeSanitizeConfig",arguments),t.config.controls.scope=t.config.controls.scope.toLowerCase().trim(),t.config.controls.toggleLogic=t.config.controls.toggleLogic.toLowerCase().trim(),t.config.controls.toggleDefault=t.config.controls.toggleDefault.toLowerCase().trim(),t.config.animation.effects=t.config.animation.effects.trim(),t.callActions("afterSanitizeConfig",arguments)},getInitialState:function(){var t=this,n=new e.State,a=new e.Operation;if(t.callActions("beforeGetInitialState",arguments),n.activeContainerClassName=t.config.layout.containerClassName,t.config.load.dataset){if(!t.config.data.uidKey||"string"!=typeof t.config.data.uidKey)throw new TypeError(e.messages.errorConfigDataUidKeyNotSet());a.startDataset=a.newDataset=n.activeDataset=t.config.load.dataset.slice(),a.startContainerClassName=a.newContainerClassName=n.activeContainerClassName,a.show=t.targets.slice(),n=t.callFilters("stateGetInitialState",n,arguments)}else n.activeFilter=t.parseFilterArgs([t.config.load.filter]).command,n.activeSort=t.parseSortArgs([t.config.load.sort]).command,n.totalTargets=t.targets.length,n=t.callFilters("stateGetInitialState",n,arguments),n.activeSort.collection||n.activeSort.attribute||"random"===n.activeSort.order||"desc"===n.activeSort.order?(a.newSort=n.activeSort,t.sortOperation(a),t.printSort(!1,a),t.targets=a.newOrder):a.startOrder=a.newOrder=t.targets,a.startFilter=a.newFilter=n.activeFilter,a.startSort=a.newSort=n.activeSort,a.startContainerClassName=a.newContainerClassName=n.activeContainerClassName,"all"===a.newFilter.selector?a.newFilter.selector=t.config.selectors.target:"none"===a.newFilter.selector&&(a.newFilter.selector="");return a=t.callFilters("operationGetInitialState",a,[n]),t.lastOperation=a,a.newFilter&&t.filterOperation(a),n=t.buildState(a)},cacheDom:function(t,e){var n=this;n.callActions("beforeCacheDom",arguments),n.dom.document=e,n.dom.body=n.dom.document.querySelector("body"),n.dom.container=t,n.dom.parent=t,n.callActions("afterCacheDom",arguments)},indexTargets:function(){var t=this,a=null,i=null,o=null,r=-1;if(t.callActions("beforeIndexTargets",arguments),t.dom.targets=t.config.layout.allowNestedTargets?t.dom.container.querySelectorAll(t.config.selectors.target):n.children(t.dom.container,t.config.selectors.target,t.dom.document),t.dom.targets=n.arrayFromList(t.dom.targets),t.targets=[],(o=t.config.load.dataset)&&o.length!==t.dom.targets.length)throw new Error(e.messages.errorDatasetPrerenderedMismatch());if(t.dom.targets.length){for(r=0;i=t.dom.targets[r];r++)a=new e.Target,a.init(i,t,o?o[r]:void 0),a.isInDom=!0,t.targets.push(a);t.dom.parent=t.dom.targets[0].parentElement===t.dom.container?t.dom.container:t.dom.targets[0].parentElement}t.origOrder=t.targets,t.callActions("afterIndexTargets",arguments)},initControls:function(){var t=this,n="",a=null,i=null,o=null,r=null,s=null,l=-1,c=-1;switch(t.callActions("beforeInitControls",arguments),t.config.controls.scope){case"local":o=t.dom.container;break;case"global":o=t.dom.document;break;default:throw new Error(e.messages.errorConfigInvalidControlsScope())}for(l=0;n=e.controlDefinitions[l];l++)if(t.config.controls.live||n.live){if(n.parent){if(r=t.dom[n.parent],!r||r.length<0)continue;"number"!=typeof r.length&&(r=[r])}else r=[o];for(c=0;i=r[c];c++)s=t.getControl(i,n.type,n.selector),t.controls.push(s)}else for(a=o.querySelectorAll(t.config.selectors.control+n.selector),c=0;i=a[c];c++)s=t.getControl(i,n.type,""),s&&t.controls.push(s);t.callActions("afterInitControls",arguments)},getControl:function(t,a,i){var o=this,r=null,s=-1;if(o.callActions("beforeGetControl",arguments),!i)for(s=0;r=e.controls[s];s++){if(r.el===t&&r.isBound(o))return o.callFilters("controlGetControl",null,arguments);if(r.el===t&&r.type===a&&r.selector===i)return r.addBinding(o),o.callFilters("controlGetControl",r,arguments)}return r=new e.Control,r.init(t,a,i),r.classNames.base=n.getClassname(o.config.classNames,a),r.classNames.active=n.getClassname(o.config.classNames,a,o.config.classNames.modifierActive),r.classNames.disabled=n.getClassname(o.config.classNames,a,o.config.classNames.modifierDisabled),r.addBinding(o),o.callFilters("controlGetControl",r,arguments)},getToggleSelector:function(){var t=this,e="or"===t.config.controls.toggleLogic?", ":"",a="";return t.callActions("beforeGetToggleSelector",arguments),t.toggleArray=n.clean(t.toggleArray),a=t.toggleArray.join(e),""===a&&(a=t.config.controls.toggleDefault),t.callFilters("selectorGetToggleSelector",a,arguments)},buildToggleArray:function(t,e){var a=this,i="";if(a.callActions("beforeBuildToggleArray",arguments),t&&t.filter)i=t.filter.selector.replace(/\s/g,"");else{if(!e)return;i=e.activeFilter.selector.replace(/\s/g,"")}i!==a.config.selectors.target&&"all"!==i||(i=""),"or"===a.config.controls.toggleLogic?a.toggleArray=i.split(","):a.toggleArray=a.splitCompoundSelector(i),a.toggleArray=n.clean(a.toggleArray),a.callActions("afterBuildToggleArray",arguments)},splitCompoundSelector:function(t){var e=t.split(/([\.\[])/g),n=[],a="",i=-1;for(""===e[0]&&e.shift(),i=0;i<e.length;i++)i%2===0&&(a=""),a+=e[i],i%2!==0&&n.push(a);return n},updateControls:function(t){var a=this,i=null,o=new e.CommandMultimix,r=-1;for(a.callActions("beforeUpdateControls",arguments),t.filter?o.filter=t.filter.selector:o.filter=a.state.activeFilter.selector,t.sort?o.sort=a.buildSortString(t.sort):o.sort=a.buildSortString(a.state.activeSort),o.filter===a.config.selectors.target&&(o.filter="all"),""===o.filter&&(o.filter="none"),n.freeze(o),r=0;i=a.controls[r];r++)i.update(o,a.toggleArray);a.callActions("afterUpdateControls",arguments)},buildSortString:function(t){var e=this,n="";return n+=t.sortString,t.next&&(n+=" "+e.buildSortString(t.next)),n},insertTargets:function(t,a){var i=this,o=null,r=-1,s=null,l=null,c=null,u=-1;if(i.callActions("beforeInsertTargets",arguments),"undefined"==typeof t.index&&(t.index=0),o=i.getNextSibling(t.index,t.sibling,t.position),s=i.dom.document.createDocumentFragment(),r=o?n.index(o,i.config.selectors.target):i.targets.length,t.collection){for(u=0;c=t.collection[u];u++){if(i.dom.targets.indexOf(c)>-1)throw new Error(e.messages.errorInsertPreexistingElement());c.style.display="none",s.appendChild(c),s.appendChild(i.dom.document.createTextNode(" ")),n.isElement(c,i.dom.document)&&c.matches(i.config.selectors.target)&&(l=new e.Target,l.init(c,i),l.isInDom=!0,i.targets.splice(r,0,l),r++)}i.dom.parent.insertBefore(s,o)}a.startOrder=i.origOrder=i.targets,i.callActions("afterInsertTargets",arguments)},getNextSibling:function(t,e,n){var a=this,i=null;return t=Math.max(t,0),e&&"before"===n?i=e:e&&"after"===n?i=e.nextElementSibling||null:a.targets.length>0&&"undefined"!=typeof t?i=t<a.targets.length||!a.targets.length?a.targets[t].dom.el:a.targets[a.targets.length-1].dom.el.nextElementSibling:0===a.targets.length&&a.dom.parent.children.length>0&&(a.config.layout.siblingAfter?i=a.config.layout.siblingAfter:a.config.layout.siblingBefore?i=a.config.layout.siblingBefore.nextElementSibling:a.dom.parent.children[0]),a.callFilters("elementGetNextSibling",i,arguments)},filterOperation:function(t){var e=this,n=!1,a=-1,i="",o=null,r=-1;for(e.callActions("beforeFilterOperation",arguments),i=t.newFilter.action,r=0;o=t.newOrder[r];r++)n=t.newFilter.collection?t.newFilter.collection.indexOf(o.dom.el)>-1:""!==t.newFilter.selector&&o.dom.el.matches(t.newFilter.selector),e.evaluateHideShow(n,o,i,t);if(t.toRemove.length)for(r=0;o=t.show[r];r++)t.toRemove.indexOf(o)>-1&&(t.show.splice(r,1),(a=t.toShow.indexOf(o))>-1&&t.toShow.splice(a,1),t.toHide.push(o),t.hide.push(o),r--);t.matching=t.show.slice(),0===t.show.length&&""!==t.newFilter.selector&&0!==e.targets.length&&(t.hasFailed=!0),e.callActions("afterFilterOperation",arguments)},evaluateHideShow:function(t,e,n,a){var i=this,o=!1,r=Array.prototype.slice.call(arguments,1);o=i.callFilters("testResultEvaluateHideShow",t,r),i.callActions("beforeEvaluateHideShow",arguments),o===!0&&"show"===n||o===!1&&"hide"===n?(a.show.push(e),!e.isShown&&a.toShow.push(e)):(a.hide.push(e),e.isShown&&a.toHide.push(e)),i.callActions("afterEvaluateHideShow",arguments)},sortOperation:function(t){var a=this,i=[],o=null,r=null,s=-1;if(a.callActions("beforeSortOperation",arguments),t.startOrder=a.targets,t.newSort.collection){for(i=[],s=0;r=t.newSort.collection[s];s++){if(a.dom.targets.indexOf(r)<0)throw new Error(e.messages.errorSortNonExistentElement());o=new e.Target,o.init(r,a),o.isInDom=!0,i.push(o)}t.newOrder=i}else"random"===t.newSort.order?t.newOrder=n.arrayShuffle(t.startOrder):""===t.newSort.attribute?(t.newOrder=a.origOrder.slice(),"desc"===t.newSort.order&&t.newOrder.reverse()):(t.newOrder=t.startOrder.slice(),t.newOrder.sort(function(e,n){return a.compare(e,n,t.newSort)}));n.isEqualArray(t.newOrder,t.startOrder)&&(t.willSort=!1),a.callActions("afterSortOperation",arguments)},compare:function(t,e,n){var a=this,i=n.order,o=a.getAttributeValue(t,n.attribute),r=a.getAttributeValue(e,n.attribute);return isNaN(1*o)||isNaN(1*r)?(o=o.toLowerCase(),r=r.toLowerCase()):(o=1*o,r=1*r),o<r?"asc"===i?-1:1:o>r?"asc"===i?1:-1:o===r&&n.next?a.compare(t,e,n.next):0},getAttributeValue:function(t,n){var a=this,i="";return i=t.dom.el.getAttribute("data-"+n),null===i&&a.config.debug.showWarnings&&console.warn(e.messages.warningInconsistentSortingAttributes({attribute:"data-"+n})),a.callFilters("valueGetAttributeValue",i||0,arguments)},printSort:function(e,a){var i=this,o=e?a.newOrder:a.startOrder,r=e?a.startOrder:a.newOrder,s=o.length?o[o.length-1].dom.el.nextElementSibling:null,l=t.document.createDocumentFragment(),c=null,u=null,f=null,h=-1;for(i.callActions("beforePrintSort",arguments),h=0;u=o[h];h++)f=u.dom.el,"absolute"!==f.style.position&&(n.removeWhitespace(f.previousSibling),f.parentElement.removeChild(f));for(c=s?s.previousSibling:i.dom.parent.lastChild,c&&"#text"===c.nodeName&&n.removeWhitespace(c),h=0;u=r[h];h++)f=u.dom.el,n.isElement(l.lastChild)&&l.appendChild(t.document.createTextNode(" ")),l.appendChild(f);i.dom.parent.firstChild&&i.dom.parent.firstChild!==s&&l.insertBefore(t.document.createTextNode(" "),l.childNodes[0]),s?(l.appendChild(t.document.createTextNode(" ")),i.dom.parent.insertBefore(l,s)):i.dom.parent.appendChild(l),i.callActions("afterPrintSort",arguments)},parseSortString:function(t,a){var i=this,o=t.split(" "),r=a,s=[],l=-1;for(l=0;l<o.length;l++){switch(s=o[l].split(":"),r.sortString=o[l],r.attribute=n.dashCase(s[0]),r.order=s[1]||"asc",r.attribute){case"default":r.attribute="";break;case"random":r.attribute="",r.order="random"}if(!r.attribute||"random"===r.order)break;l<o.length-1&&(r.next=new e.CommandSort,n.freeze(r),r=r.next)}return i.callFilters("commandsParseSort",a,arguments)},parseEffects:function(){var t=this,n="",a=t.config.animation.effectsIn||t.config.animation.effects,i=t.config.animation.effectsOut||t.config.animation.effects;t.callActions("beforeParseEffects",arguments),t.effectsIn=new e.StyleData,t.effectsOut=new e.StyleData,t.transformIn=[],t.transformOut=[],t.effectsIn.opacity=t.effectsOut.opacity=1,t.parseEffect("fade",a,t.effectsIn,t.transformIn),t.parseEffect("fade",i,t.effectsOut,t.transformOut,!0);for(n in e.transformDefaults)e.transformDefaults[n]instanceof e.TransformData&&(t.parseEffect(n,a,t.effectsIn,t.transformIn),t.parseEffect(n,i,t.effectsOut,t.transformOut,!0));t.parseEffect("stagger",a,t.effectsIn,t.transformIn),t.parseEffect("stagger",i,t.effectsOut,t.transformOut,!0),t.callActions("afterParseEffects",arguments)},parseEffect:function(t,n,a,i,o){var r=this,s=/\(([^)]+)\)/,l=-1,c="",u=[],f="",h=["%","px","em","rem","vh","vw","deg"],d="",m=-1;if(r.callActions("beforeParseEffect",arguments),"string"!=typeof n)throw new TypeError(e.messages.errorConfigInvalidAnimationEffects());if(n.indexOf(t)<0)return void("stagger"===t&&(r.staggerDuration=0));switch(l=n.indexOf(t+"("),l>-1&&(c=n.substring(l),u=s.exec(c),f=u[1]),t){case"fade":a.opacity=f?parseFloat(f):0;break;case"stagger":r.staggerDuration=f?parseFloat(f):100;break;default:if(o&&r.config.animation.reverseOut&&"scale"!==t?a[t].value=(f?parseFloat(f):e.transformDefaults[t].value)*-1:a[t].value=f?parseFloat(f):e.transformDefaults[t].value,f){for(m=0;d=h[m];m++)if(f.indexOf(d)>-1){a[t].unit=d;break}}else a[t].unit=e.transformDefaults[t].unit;i.push(t+"("+a[t].value+a[t].unit+")")}r.callActions("afterParseEffect",arguments)},buildState:function(t){var n=this,a=new e.State,i=null,o=-1;for(n.callActions("beforeBuildState",arguments),o=0;i=n.targets[o];o++)(!t.toRemove.length||t.toRemove.indexOf(i)<0)&&a.targets.push(i.dom.el);for(o=0;i=t.matching[o];o++)a.matching.push(i.dom.el);for(o=0;i=t.show[o];o++)a.show.push(i.dom.el);for(o=0;i=t.hide[o];o++)(!t.toRemove.length||t.toRemove.indexOf(i)<0)&&a.hide.push(i.dom.el);return a.id=n.id,a.container=n.dom.container,a.activeFilter=t.newFilter,a.activeSort=t.newSort,a.activeDataset=t.newDataset,a.activeContainerClassName=t.newContainerClassName,a.hasFailed=t.hasFailed,a.totalTargets=n.targets.length,a.totalShow=t.show.length,a.totalHide=t.hide.length,a.totalMatching=t.matching.length,a.triggerElement=t.triggerElement,n.callFilters("stateBuildState",a,arguments)},goMix:function(a,i){var o=this,r=null;return o.callActions("beforeGoMix",arguments),o.config.animation.duration&&o.config.animation.effects&&n.isVisible(o.dom.container)||(a=!1),i.toShow.length||i.toHide.length||i.willSort||i.willChangeLayout||(a=!1),i.startState.show.length||i.show.length||(a=!1),e.events.fire("mixStart",o.dom.container,{state:i.startState,futureState:i.newState,instance:o},o.dom.document),"function"==typeof o.config.callbacks.onMixStart&&o.config.callbacks.onMixStart.call(o.dom.container,i.startState,i.newState,o),n.removeClass(o.dom.container,n.getClassname(o.config.classNames,"container",o.config.classNames.modifierFailed)),r=o.userDeferred?o.userDeferred:o.userDeferred=n.defer(e.libraries),o.isBusy=!0,a&&e.features.has.transitions?(t.pageYOffset!==i.docState.scrollTop&&t.scrollTo(i.docState.scrollLeft,i.docState.scrollTop),o.config.animation.applyPerspective&&(o.dom.parent.style[e.features.perspectiveProp]=o.config.animation.perspectiveDistance,o.dom.parent.style[e.features.perspectiveOriginProp]=o.config.animation.perspectiveOrigin),o.config.animation.animateResizeContainer&&i.startHeight!==i.newHeight&&i.viewportDeltaY!==i.startHeight-i.newHeight&&(o.dom.parent.style.height=i.startHeight+"px"),o.config.animation.animateResizeContainer&&i.startWidth!==i.newWidth&&i.viewportDeltaX!==i.startWidth-i.newWidth&&(o.dom.parent.style.width=i.startWidth+"px"),i.startHeight===i.newHeight&&(o.dom.parent.style.height=i.startHeight+"px"),i.startWidth===i.newWidth&&(o.dom.parent.style.width=i.startWidth+"px"),i.startHeight===i.newHeight&&i.startWidth===i.newWidth&&(o.dom.parent.style.overflow="hidden"),requestAnimationFrame(function(){o.moveTargets(i)}),o.callFilters("promiseGoMix",r.promise,arguments)):(o.config.debug.fauxAsync?setTimeout(function(){o.cleanUp(i)},o.config.animation.duration):o.cleanUp(i),o.callFilters("promiseGoMix",r.promise,arguments))},getStartMixData:function(n){var a=this,i=t.getComputedStyle(a.dom.parent),o=a.dom.parent.getBoundingClientRect(),r=null,s={},l=-1,c=i[e.features.boxSizingProp];for(a.incPadding="border-box"===c,a.callActions("beforeGetStartMixData",arguments),l=0;r=n.show[l];l++)s=r.getPosData(),n.showPosData[l]={startPosData:s};for(l=0;r=n.toHide[l];l++)s=r.getPosData(),n.toHidePosData[l]={startPosData:s};n.startX=o.left,n.startY=o.top,n.startHeight=a.incPadding?o.height:o.height-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom)-parseFloat(i.borderTop)-parseFloat(i.borderBottom),n.startWidth=a.incPadding?o.width:o.width-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight)-parseFloat(i.borderLeft)-parseFloat(i.borderRight),a.callActions("afterGetStartMixData",arguments)},setInter:function(t){var e=this,a=null,i=-1;for(e.callActions("beforeSetInter",arguments),e.config.animation.clampHeight&&(e.dom.parent.style.height=t.startHeight+"px",e.dom.parent.style.overflow="hidden"),e.config.animation.clampWidth&&(e.dom.parent.style.width=t.startWidth+"px",e.dom.parent.style.overflow="hidden"),i=0;a=t.toShow[i];i++)a.show();t.willChangeLayout&&(n.removeClass(e.dom.container,t.startContainerClassName),n.addClass(e.dom.container,t.newContainerClassName)),e.callActions("afterSetInter",arguments)},getInterMixData:function(t){var e=this,n=null,a=-1;for(e.callActions("beforeGetInterMixData",arguments),a=0;n=t.show[a];a++)t.showPosData[a].interPosData=n.getPosData();for(a=0;n=t.toHide[a];a++)t.toHidePosData[a].interPosData=n.getPosData();e.callActions("afterGetInterMixData",arguments)},setFinal:function(t){var e=this,n=null,a=-1;for(e.callActions("beforeSetFinal",arguments),t.willSort&&e.printSort(!1,t),a=0;n=t.toHide[a];a++)n.hide();e.callActions("afterSetFinal",arguments)},getFinalMixData:function(e){var a=this,i=null,o=null,r=null,s=-1;for(a.callActions("beforeGetFinalMixData",arguments),s=0;r=e.show[s];s++)e.showPosData[s].finalPosData=r.getPosData();for(s=0;r=e.toHide[s];s++)e.toHidePosData[s].finalPosData=r.getPosData();for((a.config.animation.clampHeight||a.config.animation.clampWidth)&&(a.dom.parent.style.height=a.dom.parent.style.width=a.dom.parent.style.overflow=""),a.incPadding||(i=t.getComputedStyle(a.dom.parent)),o=a.dom.parent.getBoundingClientRect(),e.newX=o.left,e.newY=o.top,e.newHeight=a.incPadding?o.height:o.height-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom)-parseFloat(i.borderTop)-parseFloat(i.borderBottom),e.newWidth=a.incPadding?o.width:o.width-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight)-parseFloat(i.borderLeft)-parseFloat(i.borderRight),e.viewportDeltaX=e.docState.viewportWidth-this.dom.document.documentElement.clientWidth,e.viewportDeltaY=e.docState.viewportHeight-this.dom.document.documentElement.clientHeight,e.willSort&&a.printSort(!0,e),s=0;r=e.toShow[s];s++)r.hide();for(s=0;r=e.toHide[s];s++)r.show();e.willChangeLayout&&(n.removeClass(a.dom.container,e.newContainerClassName),n.addClass(a.dom.container,a.config.layout.containerClassName)),a.callActions("afterGetFinalMixData",arguments)},getTweenData:function(t){var n=this,a=null,i=null,o=Object.getOwnPropertyNames(n.effectsIn),r="",s=null,l=-1,c=-1,u=-1,f=-1;for(n.callActions("beforeGetTweenData",arguments),u=0;a=t.show[u];u++)for(i=t.showPosData[u],i.posIn=new e.StyleData,i.posOut=new e.StyleData,i.tweenData=new e.StyleData,a.isShown?(i.posIn.x=i.startPosData.x-i.interPosData.x,i.posIn.y=i.startPosData.y-i.interPosData.y):i.posIn.x=i.posIn.y=0,i.posOut.x=i.finalPosData.x-i.interPosData.x,i.posOut.y=i.finalPosData.y-i.interPosData.y,i.posIn.opacity=a.isShown?1:n.effectsIn.opacity,i.posOut.opacity=1,i.tweenData.opacity=i.posOut.opacity-i.posIn.opacity,a.isShown||n.config.animation.nudge||(i.posIn.x=i.posOut.x,i.posIn.y=i.posOut.y),i.tweenData.x=i.posOut.x-i.posIn.x,i.tweenData.y=i.posOut.y-i.posIn.y,n.config.animation.animateResizeTargets&&(i.posIn.width=i.startPosData.width,i.posIn.height=i.startPosData.height,l=(i.startPosData.width||i.finalPosData.width)-i.interPosData.width,i.posIn.marginRight=i.startPosData.marginRight-l,c=(i.startPosData.height||i.finalPosData.height)-i.interPosData.height,i.posIn.marginBottom=i.startPosData.marginBottom-c,i.posOut.width=i.finalPosData.width,i.posOut.height=i.finalPosData.height,l=(i.finalPosData.width||i.startPosData.width)-i.interPosData.width,i.posOut.marginRight=i.finalPosData.marginRight-l,c=(i.finalPosData.height||i.startPosData.height)-i.interPosData.height,i.posOut.marginBottom=i.finalPosData.marginBottom-c,i.tweenData.width=i.posOut.width-i.posIn.width,i.tweenData.height=i.posOut.height-i.posIn.height,i.tweenData.marginRight=i.posOut.marginRight-i.posIn.marginRight,i.tweenData.marginBottom=i.posOut.marginBottom-i.posIn.marginBottom),f=0;r=o[f];f++)s=n.effectsIn[r],s instanceof e.TransformData&&s.value&&(i.posIn[r].value=s.value,i.posOut[r].value=0,i.tweenData[r].value=i.posOut[r].value-i.posIn[r].value,i.posIn[r].unit=i.posOut[r].unit=i.tweenData[r].unit=s.unit);for(u=0;a=t.toHide[u];u++)for(i=t.toHidePosData[u],i.posIn=new e.StyleData,i.posOut=new e.StyleData,i.tweenData=new e.StyleData,i.posIn.x=a.isShown?i.startPosData.x-i.interPosData.x:0,i.posIn.y=a.isShown?i.startPosData.y-i.interPosData.y:0,i.posOut.x=n.config.animation.nudge?0:i.posIn.x,i.posOut.y=n.config.animation.nudge?0:i.posIn.y,i.tweenData.x=i.posOut.x-i.posIn.x,i.tweenData.y=i.posOut.y-i.posIn.y,n.config.animation.animateResizeTargets&&(i.posIn.width=i.startPosData.width,i.posIn.height=i.startPosData.height,l=i.startPosData.width-i.interPosData.width,i.posIn.marginRight=i.startPosData.marginRight-l,c=i.startPosData.height-i.interPosData.height,i.posIn.marginBottom=i.startPosData.marginBottom-c),i.posIn.opacity=1,i.posOut.opacity=n.effectsOut.opacity,i.tweenData.opacity=i.posOut.opacity-i.posIn.opacity,f=0;r=o[f];f++)s=n.effectsOut[r],s instanceof e.TransformData&&s.value&&(i.posIn[r].value=0,i.posOut[r].value=s.value,i.tweenData[r].value=i.posOut[r].value-i.posIn[r].value,i.posIn[r].unit=i.posOut[r].unit=i.tweenData[r].unit=s.unit);n.callActions("afterGetTweenData",arguments)},moveTargets:function(t){var a=this,i=null,o=null,r=null,s="",l=!1,c=-1,u=-1,f=a.checkProgress.bind(a);for(a.callActions("beforeMoveTargets",arguments),u=0;i=t.show[u];u++)o=new e.IMoveData,r=t.showPosData[u],s=i.isShown?"none":"show",l=a.willTransition(s,t.hasEffect,r.posIn,r.posOut),l&&c++,i.show(),o.posIn=r.posIn,o.posOut=r.posOut,o.statusChange=s,o.staggerIndex=c,o.operation=t,o.callback=l?f:null,i.move(o);for(u=0;i=t.toHide[u];u++)r=t.toHidePosData[u],o=new e.IMoveData,s="hide",l=a.willTransition(s,r.posIn,r.posOut),o.posIn=r.posIn,o.posOut=r.posOut,o.statusChange=s,o.staggerIndex=u,o.operation=t,o.callback=l?f:null,i.move(o);a.config.animation.animateResizeContainer&&(a.dom.parent.style[e.features.transitionProp]="height "+a.config.animation.duration+"ms ease, width "+a.config.animation.duration+"ms ease ",requestAnimationFrame(function(){t.startHeight!==t.newHeight&&t.viewportDeltaY!==t.startHeight-t.newHeight&&(a.dom.parent.style.height=t.newHeight+"px"),t.startWidth!==t.newWidth&&t.viewportDeltaX!==t.startWidth-t.newWidth&&(a.dom.parent.style.width=t.newWidth+"px")})),t.willChangeLayout&&(n.removeClass(a.dom.container,a.config.layout.ContainerClassName),n.addClass(a.dom.container,t.newContainerClassName)),a.callActions("afterMoveTargets",arguments)},hasEffect:function(){var t=this,e=["scale","translateX","translateY","translateZ","rotateX","rotateY","rotateZ"],n="",a=null,i=!1,o=-1,r=-1;if(1!==t.effectsIn.opacity)return t.callFilters("resultHasEffect",!0,arguments);for(r=0;n=e[r];r++)if(a=t.effectsIn[n],o="undefined"!==a.value?a.value:a,0!==o){i=!0;break}return t.callFilters("resultHasEffect",i,arguments)},willTransition:function(t,e,a,i){var o=this,r=!1;return r=!!n.isVisible(o.dom.container)&&(!!("none"!==t&&e||a.x!==i.x||a.y!==i.y)||!!o.config.animation.animateResizeTargets&&(a.width!==i.width||a.height!==i.height||a.marginRight!==i.marginRight||a.marginTop!==i.marginTop)),o.callFilters("resultWillTransition",r,arguments)},checkProgress:function(t){var e=this;e.targetsDone++,e.targetsBound===e.targetsDone&&e.cleanUp(t)},cleanUp:function(t){var a=this,i=null,o=null,r=null,s=null,l=-1;for(a.callActions("beforeCleanUp",arguments),a.targetsMoved=a.targetsImmovable=a.targetsBound=a.targetsDone=0,l=0;i=t.show[l];l++)i.cleanUp(),i.show();for(l=0;i=t.toHide[l];l++)i.cleanUp(),i.hide();if(t.willSort&&a.printSort(!1,t),a.dom.parent.style[e.features.transitionProp]=a.dom.parent.style.height=a.dom.parent.style.width=a.dom.parent.style.overflow=a.dom.parent.style[e.features.perspectiveProp]=a.dom.parent.style[e.features.perspectiveOriginProp]="",t.willChangeLayout&&(n.removeClass(a.dom.container,t.startContainerClassName),n.addClass(a.dom.container,t.newContainerClassName)),t.toRemove.length){for(l=0;i=a.targets[l];l++)t.toRemove.indexOf(i)>-1&&((o=i.dom.el.previousSibling)&&"#text"===o.nodeName&&(r=i.dom.el.nextSibling)&&"#text"===r.nodeName&&n.removeWhitespace(o),t.willSort||a.dom.parent.removeChild(i.dom.el),a.targets.splice(l,1),i.isInDom=!1,l--);a.origOrder=a.targets}t.willSort&&(a.targets=t.newOrder),a.state=t.newState,a.lastOperation=t,a.dom.targets=a.state.targets,e.events.fire("mixEnd",a.dom.container,{state:a.state,instance:a},a.dom.document),"function"==typeof a.config.callbacks.onMixEnd&&a.config.callbacks.onMixEnd.call(a.dom.container,a.state,a),t.hasFailed&&(e.events.fire("mixFail",a.dom.container,{state:a.state,instance:a},a.dom.document),"function"==typeof a.config.callbacks.onMixFail&&a.config.callbacks.onMixFail.call(a.dom.container,a.state,a),n.addClass(a.dom.container,n.getClassname(a.config.classNames,"container",a.config.classNames.modifierFailed))),"function"==typeof a.userCallback&&a.userCallback.call(a.dom.container,a.state,a),"function"==typeof a.userDeferred.resolve&&a.userDeferred.resolve(a.state),a.userCallback=null,a.userDeferred=null,a.lastClicked=null,a.isToggling=!1,a.isBusy=!1,a.queue.length&&(a.callActions("beforeReadQueueCleanUp",arguments),s=a.queue.shift(),a.userDeferred=s.deferred,a.isToggling=s.isToggling,a.lastClicked=s.triggerElement,s.instruction.command instanceof e.CommandMultimix?a.multimix.apply(a,s.args):a.dataset.apply(a,s.args)),a.callActions("afterCleanUp",arguments)},parseMultimixArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandMultimix,r=0;r<t.length;r++)o=t[r],null!==o&&("object"==typeof o?n.extend(i.command,o):"boolean"==typeof o?i.animate=o:"function"==typeof o&&(i.callback=o));return!i.command.insert||i.command.insert instanceof e.CommandInsert||(i.command.insert=a.parseInsertArgs([i.command.insert]).command),!i.command.remove||i.command.remove instanceof e.CommandRemove||(i.command.remove=a.parseRemoveArgs([i.command.remove]).command),!i.command.filter||i.command.filter instanceof e.CommandFilter||(i.command.filter=a.parseFilterArgs([i.command.filter]).command),!i.command.sort||i.command.sort instanceof e.CommandSort||(i.command.sort=a.parseSortArgs([i.command.sort]).command),!i.command.changeLayout||i.command.changeLayout instanceof e.CommandChangeLayout||(i.command.changeLayout=a.parseChangeLayoutArgs([i.command.changeLayout]).command),i=a.callFilters("instructionParseMultimixArgs",i,arguments),n.freeze(i),i},parseFilterArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandFilter,r=0;r<t.length;r++)o=t[r],"string"==typeof o?i.command.selector=o:null===o?i.command.collection=[]:"object"==typeof o&&n.isElement(o,a.dom.document)?i.command.collection=[o]:"object"==typeof o&&"undefined"!=typeof o.length?i.command.collection=n.arrayFromList(o):"object"==typeof o?n.extend(i.command,o):"boolean"==typeof o?i.animate=o:"function"==typeof o&&(i.callback=o);if(i.command.selector&&i.command.collection)throw new Error(e.messages.errorFilterInvalidArguments());return i=a.callFilters("instructionParseFilterArgs",i,arguments),n.freeze(i),i},parseSortArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r="",s=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandSort,s=0;s<t.length;s++)if(o=t[s],null!==o)switch(typeof o){case"string":r=o;break;case"object":o.length&&(i.command.collection=n.arrayFromList(o));break;case"boolean":i.animate=o;break;case"function":i.callback=o}return r&&(i.command=a.parseSortString(r,i.command)),i=a.callFilters("instructionParseSortArgs",i,arguments),n.freeze(i),i},parseInsertArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandInsert,r=0;r<t.length;r++)o=t[r],null!==o&&("number"==typeof o?i.command.index=o:"string"==typeof o&&["before","after"].indexOf(o)>-1?i.command.position=o:"string"==typeof o?i.command.collection=n.arrayFromList(n.createElement(o).childNodes):"object"==typeof o&&n.isElement(o,a.dom.document)?i.command.collection.length?i.command.sibling=o:i.command.collection=[o]:"object"==typeof o&&o.length?i.command.collection.length?i.command.sibling=o[0]:i.command.collection=o:"object"==typeof o&&o.childNodes&&o.childNodes.length?i.command.collection.length?i.command.sibling=o.childNodes[0]:i.command.collection=n.arrayFromList(o.childNodes):"object"==typeof o?n.extend(i.command,o):"boolean"==typeof o?i.animate=o:"function"==typeof o&&(i.callback=o));if(i.command.index&&i.command.sibling)throw new Error(e.messages.errorInsertInvalidArguments());return!i.command.collection.length&&a.config.debug.showWarnings&&console.warn(e.messages.warningInsertNoElements()),i=a.callFilters("instructionParseInsertArgs",i,arguments),n.freeze(i),i},parseRemoveArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r=null,s=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandRemove,s=0;s<t.length;s++)if(r=t[s],null!==r)switch(typeof r){case"number":a.targets[r]&&(i.command.targets[0]=a.targets[r]);break;case"string":i.command.collection=n.arrayFromList(a.dom.parent.querySelectorAll(r));break;case"object":r&&r.length?i.command.collection=r:n.isElement(r,a.dom.document)?i.command.collection=[r]:n.extend(i.command,r);break;case"boolean":i.animate=r;break;case"function":i.callback=r}if(i.command.collection.length)for(s=0;o=a.targets[s];s++)i.command.collection.indexOf(o.dom.el)>-1&&i.command.targets.push(o);return!i.command.targets.length&&a.config.debug.showWarnings&&console.warn(e.messages.warningRemoveNoElements()),n.freeze(i),i},parseDatasetArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandDataset,r=0;r<t.length;r++)if(o=t[r],null!==o)switch(typeof o){case"object":Array.isArray(o)||"number"==typeof o.length?i.command.dataset=o:n.extend(i.command,o);break;case"boolean":i.animate=o;break;case"function":i.callback=o}return n.freeze(i),i},parseChangeLayoutArgs:function(t){var a=this,i=new e.UserInstruction,o=null,r=-1;for(i.animate=a.config.animation.enable,i.command=new e.CommandChangeLayout,r=0;r<t.length;r++)if(o=t[r],null!==o)switch(typeof o){case"string":i.command.containerClassName=o;break;case"object":n.extend(i.command,o);break;case"boolean":i.animate=o;break;case"function":i.callback=o}return n.freeze(i),i},queueMix:function(t){var a=this,i=null,o="";return a.callActions("beforeQueueMix",arguments),i=n.defer(e.libraries),a.config.animation.queue&&a.queue.length<a.config.animation.queueLimit?(t.deferred=i,a.queue.push(t),a.config.controls.enable&&(a.isToggling?(a.buildToggleArray(t.instruction.command),o=a.getToggleSelector(),a.updateControls({filter:{selector:o}})):a.updateControls(t.instruction.command))):(a.config.debug.showWarnings&&console.warn(e.messages.warningMultimixInstanceQueueFull()),i.resolve(a.state),e.events.fire("mixBusy",a.dom.container,{state:a.state,instance:a},a.dom.document),"function"==typeof a.config.callbacks.onMixBusy&&a.config.callbacks.onMixBusy.call(a.dom.container,a.state,a)),
|
18 |
+
a.callFilters("promiseQueueMix",i.promise,arguments)},getDataOperation:function(t){var a=this,i=new e.Operation,o=[];if(i=a.callFilters("operationUnmappedGetDataOperation",i,arguments),a.dom.targets.length&&!(o=a.state.activeDataset||[]).length)throw new Error(e.messages.errorDatasetNotSet());return i.id=n.randomHex(),i.startState=a.state,i.startDataset=o,i.newDataset=t.slice(),a.diffDatasets(i),i.startOrder=a.targets,i.newOrder=i.show,a.config.animation.enable&&(a.getStartMixData(i),a.setInter(i),i.docState=n.getDocumentState(a.dom.document),a.getInterMixData(i),a.setFinal(i),a.getFinalMixData(i),a.parseEffects(),i.hasEffect=a.hasEffect(),a.getTweenData(i)),a.targets=i.show.slice(),i.newState=a.buildState(i),Array.prototype.push.apply(a.targets,i.toRemove),i=a.callFilters("operationMappedGetDataOperation",i,arguments)},diffDatasets:function(t){var a=this,i=[],o=[],r=[],s=null,l=null,c=null,u=null,f=null,h={},d="",m=-1;for(a.callActions("beforeDiffDatasets",arguments),m=0;s=t.newDataset[m];m++){if("undefined"==typeof(d=s[a.config.data.uidKey])||d.toString().length<1)throw new TypeError(e.messages.errorDatasetInvalidUidKey({uidKey:a.config.data.uidKey}));if(h[d])throw new Error(e.messages.errorDatasetDuplicateUid({uid:d}));h[d]=!0,(l=a.cache[d])instanceof e.Target?(a.config.data.dirtyCheck&&!n.deepEquals(s,l.data)&&(c=l.render(s),l.data=s,c!==l.dom.el&&(l.isInDom&&(l.unbindEvents(),a.dom.parent.replaceChild(c,l.dom.el)),l.isShown||(c.style.display="none"),l.dom.el=c,l.isInDom&&l.bindEvents())),c=l.dom.el):(l=new e.Target,l.init(null,a,s),l.hide()),l.isInDom?(f=l.dom.el.nextElementSibling,o.push(d),u&&(u.lastElementChild&&u.appendChild(a.dom.document.createTextNode(" ")),a.insertDatasetFrag(u,l.dom.el,r),u=null)):(u||(u=a.dom.document.createDocumentFragment()),u.lastElementChild&&u.appendChild(a.dom.document.createTextNode(" ")),u.appendChild(l.dom.el),l.isInDom=!0,l.unbindEvents(),l.bindEvents(),l.hide(),t.toShow.push(l),r.push(l)),t.show.push(l)}for(u&&(f=f||a.config.layout.siblingAfter,f&&u.appendChild(a.dom.document.createTextNode(" ")),a.insertDatasetFrag(u,f,r)),m=0;s=t.startDataset[m];m++)d=s[a.config.data.uidKey],l=a.cache[d],t.show.indexOf(l)<0?(t.hide.push(l),t.toHide.push(l),t.toRemove.push(l)):i.push(d);n.isEqualArray(i,o)||(t.willSort=!0),a.callActions("afterDiffDatasets",arguments)},insertDatasetFrag:function(t,e,a){var i=this,o=e?n.arrayFromList(i.dom.parent.children).indexOf(e):i.targets.length;for(i.dom.parent.insertBefore(t,e);a.length;)i.targets.splice(o,0,a.shift()),o++},willSort:function(t,e){var n=this,a=!1;return a=!!(n.config.behavior.liveSort||"random"===t.order||t.attribute!==e.attribute||t.order!==e.order||t.collection!==e.collection||null===t.next&&e.next||t.next&&null===e.next)||!(!t.next||!e.next)&&n.willSort(t.next,e.next),n.callFilters("resultWillSort",a,arguments)},show:function(){var t=this;return t.filter("all")},hide:function(){var t=this;return t.filter("none")},isMixing:function(){var t=this;return t.isBusy},filter:function(){var t=this,e=t.parseFilterArgs(arguments);return t.multimix({filter:e.command},e.animate,e.callback)},toggleOn:function(){var t=this,e=t.parseFilterArgs(arguments),n=e.command.selector,a="";return t.isToggling=!0,t.toggleArray.indexOf(n)<0&&t.toggleArray.push(n),a=t.getToggleSelector(),t.multimix({filter:a},e.animate,e.callback)},toggleOff:function(){var t=this,e=t.parseFilterArgs(arguments),n=e.command.selector,a=t.toggleArray.indexOf(n),i="";return t.isToggling=!0,a>-1&&t.toggleArray.splice(a,1),i=t.getToggleSelector(),t.multimix({filter:i},e.animate,e.callback)},sort:function(){var t=this,e=t.parseSortArgs(arguments);return t.multimix({sort:e.command},e.animate,e.callback)},changeLayout:function(){var t=this,e=t.parseChangeLayoutArgs(arguments);return t.multimix({changeLayout:e.command},e.animate,e.callback)},dataset:function(){var t=this,n=t.parseDatasetArgs(arguments),a=null,i=null,o=!1;return t.callActions("beforeDataset",arguments),t.isBusy?(i=new e.QueueItem,i.args=arguments,i.instruction=n,t.queueMix(i)):(n.callback&&(t.userCallback=n.callback),o=n.animate^t.config.animation.enable?n.animate:t.config.animation.enable,a=t.getDataOperation(n.command.dataset),t.goMix(o,a))},multimix:function(){var t=this,n=null,a=!1,i=null,o=t.parseMultimixArgs(arguments);return t.callActions("beforeMultimix",arguments),t.isBusy?(i=new e.QueueItem,i.args=arguments,i.instruction=o,i.triggerElement=t.lastClicked,i.isToggling=t.isToggling,t.queueMix(i)):(n=t.getOperation(o.command),t.config.controls.enable&&(o.command.filter&&!t.isToggling&&(t.toggleArray.length=0,t.buildToggleArray(n.command)),t.queue.length<1&&t.updateControls(n.command)),o.callback&&(t.userCallback=o.callback),a=o.animate^t.config.animation.enable?o.animate:t.config.animation.enable,t.callFilters("operationMultimix",n,arguments),t.goMix(a,n))},getOperation:function(t){var a=this,i=t.sort,o=t.filter,r=t.changeLayout,s=t.remove,l=t.insert,c=new e.Operation;return c=a.callFilters("operationUnmappedGetOperation",c,arguments),c.id=n.randomHex(),c.command=t,c.startState=a.state,c.triggerElement=a.lastClicked,a.isBusy?(a.config.debug.showWarnings&&console.warn(e.messages.warningGetOperationInstanceBusy()),null):(l&&a.insertTargets(l,c),s&&(c.toRemove=s.targets),c.startSort=c.newSort=c.startState.activeSort,c.startOrder=c.newOrder=a.targets,i&&(c.startSort=c.startState.activeSort,c.newSort=i,c.willSort=a.willSort(i,c.startState.activeSort),c.willSort&&a.sortOperation(c)),c.startFilter=c.startState.activeFilter,o?c.newFilter=o:c.newFilter=n.extend(new e.CommandFilter,c.startFilter),"all"===c.newFilter.selector?c.newFilter.selector=a.config.selectors.target:"none"===c.newFilter.selector&&(c.newFilter.selector=""),a.filterOperation(c),c.startContainerClassName=c.startState.activeContainerClassName,r?(c.newContainerClassName=r.containerClassName,c.newContainerClassName!==c.startContainerClassName&&(c.willChangeLayout=!0)):c.newContainerClassName=c.startContainerClassName,a.config.animation.enable&&(a.getStartMixData(c),a.setInter(c),c.docState=n.getDocumentState(a.dom.document),a.getInterMixData(c),a.setFinal(c),a.getFinalMixData(c),a.parseEffects(),c.hasEffect=a.hasEffect(),a.getTweenData(c)),c.willSort&&(a.targets=c.newOrder),c.newState=a.buildState(c),a.callFilters("operationMappedGetOperation",c,arguments))},tween:function(t,e){var n=null,a=null,i=-1,o=-1;for(e=Math.min(e,1),e=Math.max(e,0),o=0;n=t.show[o];o++)a=t.showPosData[o],n.applyTween(a,e);for(o=0;n=t.hide[o];o++)n.isShown&&n.hide(),(i=t.toHide.indexOf(n))>-1&&(a=t.toHidePosData[i],n.isShown||n.show(),n.applyTween(a,e))},insert:function(){var t=this,e=t.parseInsertArgs(arguments);return t.multimix({insert:e.command},e.animate,e.callback)},insertBefore:function(){var t=this,e=t.parseInsertArgs(arguments);return t.insert(e.command.collection,"before",e.command.sibling,e.animate,e.callback)},insertAfter:function(){var t=this,e=t.parseInsertArgs(arguments);return t.insert(e.command.collection,"after",e.command.sibling,e.animate,e.callback)},prepend:function(){var t=this,e=t.parseInsertArgs(arguments);return t.insert(0,e.command.collection,e.animate,e.callback)},append:function(){var t=this,e=t.parseInsertArgs(arguments);return t.insert(t.state.totalTargets,e.command.collection,e.animate,e.callback)},remove:function(){var t=this,e=t.parseRemoveArgs(arguments);return t.multimix({remove:e.command},e.animate,e.callback)},getConfig:function(t){var e=this,a=null;return a=t?n.getProperty(e.config,t):e.config,e.callFilters("valueGetConfig",a,arguments)},configure:function(t){var e=this;e.callActions("beforeConfigure",arguments),n.extend(e.config,t,!0,!0),e.callActions("afterConfigure",arguments)},getState:function(){var t=this,a=null;return a=new e.State,n.extend(a,t.state),n.freeze(a),t.callFilters("stateGetState",a,arguments)},forceRefresh:function(){var t=this;t.indexTargets()},forceRender:function(){var t=this,e=null,n=null,a="";for(a in t.cache)e=t.cache[a],n=e.render(e.data),n!==e.dom.el&&(e.isInDom&&(e.unbindEvents(),t.dom.parent.replaceChild(n,e.dom.el)),e.isShown||(n.style.display="none"),e.dom.el=n,e.isInDom&&e.bindEvents());t.state=t.buildState(t.lastOperation)},destroy:function(t){var n=this,a=null,i=null,o=0;for(n.callActions("beforeDestroy",arguments),o=0;a=n.controls[o];o++)a.removeBinding(n);for(o=0;i=n.targets[o];o++)t&&i.show(),i.unbindEvents();n.dom.container.id.match(/^MixItUp/)&&n.dom.container.removeAttribute("id"),delete e.instances[n.id],n.callActions("afterDestroy",arguments)}}),e.IMoveData=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.posIn=null,this.posOut=null,this.operation=null,this.callback=null,this.statusChange="",this.duration=-1,this.staggerIndex=-1,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.IMoveData),e.IMoveData.prototype=Object.create(e.Base.prototype),e.IMoveData.prototype.constructor=e.IMoveData,e.TargetDom=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.el=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.TargetDom),e.TargetDom.prototype=Object.create(e.Base.prototype),e.TargetDom.prototype.constructor=e.TargetDom,e.Target=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.id="",this.sortString="",this.mixer=null,this.callback=null,this.isShown=!1,this.isBound=!1,this.isExcluded=!1,this.isInDom=!1,this.handler=null,this.operation=null,this.data=null,this.dom=new e.TargetDom,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.Target),e.Target.prototype=Object.create(e.Base.prototype),n.extend(e.Target.prototype,{constructor:e.Target,init:function(t,n,a){var i=this,o="";if(i.callActions("beforeInit",arguments),i.mixer=n,t||(t=i.render(a)),i.cacheDom(t),i.bindEvents(),"none"!==i.dom.el.style.display&&(i.isShown=!0),a&&n.config.data.uidKey){if("undefined"==typeof(o=a[n.config.data.uidKey])||o.toString().length<1)throw new TypeError(e.messages.errorDatasetInvalidUidKey({uidKey:n.config.data.uidKey}));i.id=o,i.data=a,n.cache[o]=i}i.callActions("afterInit",arguments)},render:function(t){var a=this,i=null,o=null,r=null,s="";if(a.callActions("beforeRender",arguments),i=a.callFilters("renderRender",a.mixer.config.render.target,arguments),"function"!=typeof i)throw new TypeError(e.messages.errorDatasetRendererNotSet());return s=i(t),s&&"object"==typeof s&&n.isElement(s)?o=s:"string"==typeof s&&(r=document.createElement("div"),r.innerHTML=s,o=r.firstElementChild),a.callFilters("elRender",o,arguments)},cacheDom:function(t){var e=this;e.callActions("beforeCacheDom",arguments),e.dom.el=t,e.callActions("afterCacheDom",arguments)},getSortString:function(t){var e=this,n=e.dom.el.getAttribute("data-"+t)||"";e.callActions("beforeGetSortString",arguments),n=isNaN(1*n)?n.toLowerCase():1*n,e.sortString=n,e.callActions("afterGetSortString",arguments)},show:function(){var t=this;t.callActions("beforeShow",arguments),t.isShown||(t.dom.el.style.display="",t.isShown=!0),t.callActions("afterShow",arguments)},hide:function(){var t=this;t.callActions("beforeHide",arguments),t.isShown&&(t.dom.el.style.display="none",t.isShown=!1),t.callActions("afterHide",arguments)},move:function(t){var e=this;e.callActions("beforeMove",arguments),e.isExcluded||e.mixer.targetsMoved++,e.applyStylesIn(t),requestAnimationFrame(function(){e.applyStylesOut(t)}),e.callActions("afterMove",arguments)},applyTween:function(t,n){var a=this,i="",o=null,r=t.posIn,s=[],l=new e.StyleData,c=-1;for(a.callActions("beforeApplyTween",arguments),l.x=r.x,l.y=r.y,0===n?a.hide():a.isShown||a.show(),c=0;i=e.features.TWEENABLE[c];c++)if(o=t.tweenData[i],"x"===i){if(!o)continue;l.x=r.x+o*n}else if("y"===i){if(!o)continue;l.y=r.y+o*n}else if(o instanceof e.TransformData){if(!o.value)continue;l[i].value=r[i].value+o.value*n,l[i].unit=o.unit,s.push(i+"("+l[i].value+o.unit+")")}else{if(!o)continue;l[i]=r[i]+o*n,a.dom.el.style[i]=l[i]}(l.x||l.y)&&s.unshift("translate("+l.x+"px, "+l.y+"px)"),s.length&&(a.dom.el.style[e.features.transformProp]=s.join(" ")),a.callActions("afterApplyTween",arguments)},applyStylesIn:function(t){var n=this,a=t.posIn,i=1!==n.mixer.effectsIn.opacity,o=[];n.callActions("beforeApplyStylesIn",arguments),o.push("translate("+a.x+"px, "+a.y+"px)"),n.mixer.config.animation.animateResizeTargets&&("show"!==t.statusChange&&(n.dom.el.style.width=a.width+"px",n.dom.el.style.height=a.height+"px"),n.dom.el.style.marginRight=a.marginRight+"px",n.dom.el.style.marginBottom=a.marginBottom+"px"),i&&(n.dom.el.style.opacity=a.opacity),"show"===t.statusChange&&(o=o.concat(n.mixer.transformIn)),n.dom.el.style[e.features.transformProp]=o.join(" "),n.callActions("afterApplyStylesIn",arguments)},applyStylesOut:function(t){var n=this,a=[],i=[],o=n.mixer.config.animation.animateResizeTargets,r="undefined"!=typeof n.mixer.effectsIn.opacity;if(n.callActions("beforeApplyStylesOut",arguments),a.push(n.writeTransitionRule(e.features.transformRule,t.staggerIndex)),"none"!==t.statusChange&&a.push(n.writeTransitionRule("opacity",t.staggerIndex,t.duration)),o&&(a.push(n.writeTransitionRule("width",t.staggerIndex,t.duration)),a.push(n.writeTransitionRule("height",t.staggerIndex,t.duration)),a.push(n.writeTransitionRule("margin",t.staggerIndex,t.duration))),!t.callback)return n.mixer.targetsImmovable++,void(n.mixer.targetsMoved===n.mixer.targetsImmovable&&n.mixer.cleanUp(t.operation));switch(n.operation=t.operation,n.callback=t.callback,!n.isExcluded&&n.mixer.targetsBound++,n.isBound=!0,n.applyTransition(a),o&&t.posOut.width>0&&t.posOut.height>0&&(n.dom.el.style.width=t.posOut.width+"px",n.dom.el.style.height=t.posOut.height+"px",n.dom.el.style.marginRight=t.posOut.marginRight+"px",n.dom.el.style.marginBottom=t.posOut.marginBottom+"px"),n.mixer.config.animation.nudge||"hide"!==t.statusChange||i.push("translate("+t.posOut.x+"px, "+t.posOut.y+"px)"),t.statusChange){case"hide":r&&(n.dom.el.style.opacity=n.mixer.effectsOut.opacity),i=i.concat(n.mixer.transformOut);break;case"show":r&&(n.dom.el.style.opacity=1)}(n.mixer.config.animation.nudge||!n.mixer.config.animation.nudge&&"hide"!==t.statusChange)&&i.push("translate("+t.posOut.x+"px, "+t.posOut.y+"px)"),n.dom.el.style[e.features.transformProp]=i.join(" "),n.callActions("afterApplyStylesOut",arguments)},writeTransitionRule:function(t,e,n){var a=this,i=a.getDelay(e),o="";return o=t+" "+(n>0?n:a.mixer.config.animation.duration)+"ms "+i+"ms "+("opacity"===t?"linear":a.mixer.config.animation.easing),a.callFilters("ruleWriteTransitionRule",o,arguments)},getDelay:function(t){var e=this,n=-1;return"function"==typeof e.mixer.config.animation.staggerSequence&&(t=e.mixer.config.animation.staggerSequence.call(e,t,e.state)),n=e.mixer.staggerDuration?t*e.mixer.staggerDuration:0,e.callFilters("delayGetDelay",n,arguments)},applyTransition:function(t){var n=this,a=t.join(", ");n.callActions("beforeApplyTransition",arguments),n.dom.el.style[e.features.transitionProp]=a,n.callActions("afterApplyTransition",arguments)},handleTransitionEnd:function(t){var e=this,n=t.propertyName,a=e.mixer.config.animation.animateResizeTargets;e.callActions("beforeHandleTransitionEnd",arguments),e.isBound&&t.target.matches(e.mixer.config.selectors.target)&&(n.indexOf("transform")>-1||n.indexOf("opacity")>-1||a&&n.indexOf("height")>-1||a&&n.indexOf("width")>-1||a&&n.indexOf("margin")>-1)&&(e.callback.call(e,e.operation),e.isBound=!1,e.callback=null,e.operation=null),e.callActions("afterHandleTransitionEnd",arguments)},eventBus:function(t){var e=this;switch(e.callActions("beforeEventBus",arguments),t.type){case"webkitTransitionEnd":case"transitionend":e.handleTransitionEnd(t)}e.callActions("afterEventBus",arguments)},unbindEvents:function(){var t=this;t.callActions("beforeUnbindEvents",arguments),n.off(t.dom.el,"webkitTransitionEnd",t.handler),n.off(t.dom.el,"transitionend",t.handler),t.callActions("afterUnbindEvents",arguments)},bindEvents:function(){var t=this,a="";t.callActions("beforeBindEvents",arguments),a="webkit"===e.features.transitionPrefix?"webkitTransitionEnd":"transitionend",t.handler=function(e){return t.eventBus(e)},n.on(t.dom.el,a,t.handler),t.callActions("afterBindEvents",arguments)},getPosData:function(n){var a=this,i={},o=null,r=new e.StyleData;return a.callActions("beforeGetPosData",arguments),r.x=a.dom.el.offsetLeft,r.y=a.dom.el.offsetTop,(a.mixer.config.animation.animateResizeTargets||n)&&(o=a.dom.el.getBoundingClientRect(),r.top=o.top,r.right=o.right,r.bottom=o.bottom,r.left=o.left,r.width=o.width,r.height=o.height),a.mixer.config.animation.animateResizeTargets&&(i=t.getComputedStyle(a.dom.el),r.marginBottom=parseFloat(i.marginBottom),r.marginRight=parseFloat(i.marginRight)),a.callFilters("posDataGetPosData",r,arguments)},cleanUp:function(){var t=this;t.callActions("beforeCleanUp",arguments),t.dom.el.style[e.features.transformProp]="",t.dom.el.style[e.features.transitionProp]="",t.dom.el.style.opacity="",t.mixer.config.animation.animateResizeTargets&&(t.dom.el.style.width="",t.dom.el.style.height="",t.dom.el.style.marginRight="",t.dom.el.style.marginBottom=""),t.callActions("afterCleanUp",arguments)}}),e.Collection=function(t){var e=null,a=-1;for(this.callActions("beforeConstruct"),a=0;e=t[a];a++)this[a]=e;this.length=t.length,this.callActions("afterConstruct"),n.freeze(this)},e.BaseStatic.call(e.Collection),e.Collection.prototype=Object.create(e.Base.prototype),n.extend(e.Collection.prototype,{constructor:e.Collection,mixitup:function(t){var a=this,i=null,o=Array.prototype.slice.call(arguments),r=[],s=-1;for(this.callActions("beforeMixitup"),o.shift(),s=0;i=a[s];s++)r.push(i[t].apply(i,o));return a.callFilters("promiseMixitup",n.all(r,e.libraries),arguments)}}),e.Operation=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.id="",this.args=[],this.command=null,this.showPosData=[],this.toHidePosData=[],this.startState=null,this.newState=null,this.docState=null,this.willSort=!1,this.willChangeLayout=!1,this.hasEffect=!1,this.hasFailed=!1,this.triggerElement=null,this.show=[],this.hide=[],this.matching=[],this.toShow=[],this.toHide=[],this.toMove=[],this.toRemove=[],this.startOrder=[],this.newOrder=[],this.startSort=null,this.newSort=null,this.startFilter=null,this.newFilter=null,this.startDataset=null,this.newDataset=null,this.viewportDeltaX=0,this.viewportDeltaY=0,this.startX=0,this.startY=0,this.startHeight=0,this.startWidth=0,this.newX=0,this.newY=0,this.newHeight=0,this.newWidth=0,this.startContainerClassName="",this.startDisplay="",this.newContainerClassName="",this.newDisplay="",this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.Operation),e.Operation.prototype=Object.create(e.Base.prototype),e.Operation.prototype.constructor=e.Operation,e.State=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.id="",this.activeFilter=null,this.activeSort=null,this.activeContainerClassName="",this.container=null,this.targets=[],this.hide=[],this.show=[],this.matching=[],this.totalTargets=-1,this.totalShow=-1,this.totalHide=-1,this.totalMatching=-1,this.hasFailed=!1,this.triggerElement=null,this.activeDataset=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.State),e.State.prototype=Object.create(e.Base.prototype),e.State.prototype.constructor=e.State,e.UserInstruction=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.command={},this.animate=!1,this.callback=null,this.callActions("afterConstruct"),n.seal(this)},e.BaseStatic.call(e.UserInstruction),e.UserInstruction.prototype=Object.create(e.Base.prototype),e.UserInstruction.prototype.constructor=e.UserInstruction,e.Messages=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.ERROR_FACTORY_INVALID_CONTAINER="[MixItUp] An invalid selector or element reference was passed to the mixitup factory function",this.ERROR_FACTORY_CONTAINER_NOT_FOUND="[MixItUp] The provided selector yielded no container element",this.ERROR_CONFIG_INVALID_ANIMATION_EFFECTS="[MixItUp] Invalid value for `animation.effects`",this.ERROR_CONFIG_INVALID_CONTROLS_SCOPE="[MixItUp] Invalid value for `controls.scope`",this.ERROR_CONFIG_INVALID_PROPERTY='[MixitUp] Invalid configuration object property "${erroneous}"${suggestion}',this.ERROR_CONFIG_INVALID_PROPERTY_SUGGESTION='. Did you mean "${probableMatch}"?',this.ERROR_CONFIG_DATA_UID_KEY_NOT_SET="[MixItUp] To use the dataset API, a UID key must be specified using `data.uidKey`",this.ERROR_DATASET_INVALID_UID_KEY='[MixItUp] The specified UID key "${uidKey}" is not present on one or more dataset items',this.ERROR_DATASET_DUPLICATE_UID='[MixItUp] The UID "${uid}" was found on two or more dataset items. UIDs must be unique.',this.ERROR_INSERT_INVALID_ARGUMENTS="[MixItUp] Please provider either an index or a sibling and position to insert, not both",this.ERROR_INSERT_PREEXISTING_ELEMENT="[MixItUp] An element to be inserted already exists in the container",this.ERROR_FILTER_INVALID_ARGUMENTS="[MixItUp] Please provide either a selector or collection `.filter()`, not both",this.ERROR_DATASET_NOT_SET="[MixItUp] To use the dataset API with pre-rendered targets, a starting dataset must be set using `load.dataset`",this.ERROR_DATASET_PRERENDERED_MISMATCH="[MixItUp] `load.dataset` does not match pre-rendered targets",this.ERROR_DATASET_RENDERER_NOT_SET="[MixItUp] To insert an element via the dataset API, a target renderer function must be provided to `render.target`",this.ERROR_SORT_NON_EXISTENT_ELEMENT="[MixItUp] An element to be sorted does not already exist in the container",this.WARNING_FACTORY_PREEXISTING_INSTANCE="[MixItUp] WARNING: This element already has an active MixItUp instance. The provided configuration object will be ignored. If you wish to perform additional methods on this instance, please create a reference.",this.WARNING_INSERT_NO_ELEMENTS="[MixItUp] WARNING: No valid elements were passed to `.insert()`",this.WARNING_REMOVE_NO_ELEMENTS="[MixItUp] WARNING: No valid elements were passed to `.remove()`",this.WARNING_MULTIMIX_INSTANCE_QUEUE_FULL="[MixItUp] WARNING: An operation was requested but the MixItUp instance was busy. The operation was rejected because the queue is full or queuing is disabled.",this.WARNING_GET_OPERATION_INSTANCE_BUSY="[MixItUp] WARNING: Operations can be be created while the MixItUp instance is busy.",this.WARNING_NO_PROMISE_IMPLEMENTATION="[MixItUp] WARNING: No Promise implementations could be found. If you wish to use promises with MixItUp please install an ES6 Promise polyfill.",this.WARNING_INCONSISTENT_SORTING_ATTRIBUTES='[MixItUp] WARNING: The requested sorting data attribute "${attribute}" was not present on one or more target elements which may product unexpected sort output',this.callActions("afterConstruct"),this.compileTemplates(),n.seal(this)},e.BaseStatic.call(e.Messages),e.Messages.prototype=Object.create(e.Base.prototype),e.Messages.prototype.constructor=e.Messages,e.Messages.prototype.compileTemplates=function(){var t="",e="";for(t in this)"string"==typeof(e=this[t])&&(this[n.camelCase(t)]=n.template(e))},e.messages=new e.Messages,e.Facade=function(t){e.Base.call(this),this.callActions("beforeConstruct",arguments),this.configure=t.configure.bind(t),this.show=t.show.bind(t),this.hide=t.hide.bind(t),this.filter=t.filter.bind(t),this.toggleOn=t.toggleOn.bind(t),this.toggleOff=t.toggleOff.bind(t),this.sort=t.sort.bind(t),this.changeLayout=t.changeLayout.bind(t),this.multimix=t.multimix.bind(t),this.dataset=t.dataset.bind(t),this.tween=t.tween.bind(t),this.insert=t.insert.bind(t),this.insertBefore=t.insertBefore.bind(t),this.insertAfter=t.insertAfter.bind(t),this.prepend=t.prepend.bind(t),this.append=t.append.bind(t),this.remove=t.remove.bind(t),this.destroy=t.destroy.bind(t),this.forceRefresh=t.forceRefresh.bind(t),this.forceRender=t.forceRender.bind(t),this.isMixing=t.isMixing.bind(t),this.getOperation=t.getOperation.bind(t),this.getConfig=t.getConfig.bind(t),this.getState=t.getState.bind(t),this.callActions("afterConstruct",arguments),n.freeze(this),n.seal(this)},e.BaseStatic.call(e.Facade),e.Facade.prototype=Object.create(e.Base.prototype),e.Facade.prototype.constructor=e.Facade,"object"==typeof exports&&"object"==typeof module?module.exports=e:"function"==typeof define&&define.amd?define(function(){return e}):"undefined"!=typeof t.mixitup&&"function"==typeof t.mixitup||(t.mixitup=e),e.BaseStatic.call(e.constructor),e.NAME="mixitup",e.CORE_VERSION="3.3.1"}(window);
|
main.php
CHANGED
@@ -80,6 +80,8 @@ class VC_MEGA
|
|
80 |
if (isset($saved_options['accordion'])) {include 'render/accordion_father.php';}
|
81 |
if (isset($saved_options['accordion'])) {include 'render/accordion_son.php';}
|
82 |
if (isset($saved_options['info_circle'])) {include 'render/info_circle.php';}
|
|
|
|
|
83 |
include 'includes/class-vc-number-param.php';
|
84 |
}
|
85 |
|
@@ -105,7 +107,7 @@ class VC_MEGA
|
|
105 |
<h3 style="font-weight: 100;">Enable/Disable Element</h3>
|
106 |
<div class="mega-addons-version">
|
107 |
<div class="dashicons-before dashicons-shield"></div>
|
108 |
-
<p>Version 4.
|
109 |
</div>
|
110 |
<?php include 'includes/settings.php'; ?>
|
111 |
</div>
|
@@ -157,6 +159,7 @@ class VC_MEGA
|
|
157 |
'img_swap' => 'on',
|
158 |
'accordion' => 'on',
|
159 |
'info_circle' => 'on',
|
|
|
160 |
);
|
161 |
|
162 |
update_option( 'vc_save_data', $vc_default_options);
|
80 |
if (isset($saved_options['accordion'])) {include 'render/accordion_father.php';}
|
81 |
if (isset($saved_options['accordion'])) {include 'render/accordion_son.php';}
|
82 |
if (isset($saved_options['info_circle'])) {include 'render/info_circle.php';}
|
83 |
+
if (isset($saved_options['filter_gallery'])) {include 'render/filterablegallery_wrap.php';}
|
84 |
+
if (isset($saved_options['filter_gallery'])) {include 'render/filtergallery.php';}
|
85 |
include 'includes/class-vc-number-param.php';
|
86 |
}
|
87 |
|
107 |
<h3 style="font-weight: 100;">Enable/Disable Element</h3>
|
108 |
<div class="mega-addons-version">
|
109 |
<div class="dashicons-before dashicons-shield"></div>
|
110 |
+
<p>Version 4.1.1</p>
|
111 |
</div>
|
112 |
<?php include 'includes/settings.php'; ?>
|
113 |
</div>
|
159 |
'img_swap' => 'on',
|
160 |
'accordion' => 'on',
|
161 |
'info_circle' => 'on',
|
162 |
+
'filter_gallery' => 'on',
|
163 |
);
|
164 |
|
165 |
update_option( 'vc_save_data', $vc_default_options);
|
readme.txt
CHANGED
@@ -1,83 +1,118 @@
|
|
1 |
=== Mega Addons For WPBakery Page Builder ===
|
2 |
Contributors: nasir179125, smokehunt
|
3 |
Donate link: https://www.paypal.com/donate/?token=IEJu3QF5rsSIXSKPvPFBAyFldUM4WbkVRzGfUQ4ZSTSZcI3_hiYjVvr5fcz8_MFFwzeW5W&country.x=GB&locale.x=GB
|
4 |
-
Tags: mega addons for wpbakery page builder, mega addons for visual composer, wpbakery page builder, visual composer, all in one plugin, visual composer extension, multi addons for visual composer, imag hover effects, visual composer addons, vc addons, visual composer extensions, vc extensions, page builder, portfolio, carousel, post, posts, shortcodes, tabs,
|
5 |
Requires at least: 3.5
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
|
16 |
-
<p>
|
17 |
-
<strong>Best Addons Plugin For WPBakery Page Builder - WordPress Plugin</strong>
|
18 |
-
</p>
|
19 |
-
</blockquote>
|
20 |
|
21 |
-
|
22 |
-
<a href="https://1.envato.market/A1QAx"><strong>WPBakery Page Builder (formerly Visual Composer)</strong></a> plugin must be installed and activated to use this plugin. After you activate the required plugins, the elements should be available for use in WPBakery Page Builder.
|
23 |
|
24 |
-
|
25 |
-
<p><a href="http://addons.topdigitaltrends.net/addons/" rel="nofollow">Live Demo </a> | <a href="http://www.topdigitaltrends.net/contact/" rel="nofollow">Contact</a> | <a href="https://wordpress.org/support/plugin/mega-addons-for-visual-composer" rel="nofollow">Support forum</a> | <a href="http://addons.topdigitaltrends.net/documentation/" rel="nofollow">How To Use</a> | <a href="http://www.topdigitaltrends.net/blog/" rel="nofollow">Blog</a></p>
|
26 |
-
</blockquote>
|
27 |
-
<p><strong>If you like this plugin, please give us <a href="https://wordpress.org/support/plugin/mega-addons-for-visual-composer/reviews/#new-post" rel="nofollow">5 star</a> to encourage for future improvement.</strong></p>
|
28 |
|
29 |
-
<h3>Features</h3>
|
30 |
-
<ul>
|
31 |
-
<li><a href="http://addons.topdigitaltrends.net/member-profile/">Member Profile</a> Show your awesome team</li>
|
32 |
-
<li><a href="http://addons.topdigitaltrends.net/info-banner/">Info Banner</a> Displays the banner information</li>
|
33 |
-
<li><a href="http://addons.topdigitaltrends.net/image-hover-effects/">Image Hove Effects</a> Image Hover Effects</li>
|
34 |
-
<li><a href="http://addons.topdigitaltrends.net/interactive-banner/">Interactive Banner</a> great hover effects</li>
|
35 |
-
<li><a href="http://addons.topdigitaltrends.net/interactive-banner-2/">Interactive Banner 2</a> Display Image With Information</li>
|
36 |
-
<li><a href="http://addons.topdigitaltrends.net/price-table/">Pricing Table</a> Create nice looking pricing tables</li>
|
37 |
-
<li><a href="http://addons.topdigitaltrends.net/advanced-pricing-list/">Price Table Listing</a> Compare Listing</li>
|
38 |
-
<li><a href="http://addons.topdigitaltrends.net/post-carousel/">Post Carousel/Grid</a> Show posts as carousel</li>
|
39 |
-
<li><a href="http://addons.topdigitaltrends.net/stats-counter/">Stats Counter</a> Your milestones, achievements etc</li>
|
40 |
-
<li><a href="http://addons.topdigitaltrends.net/info-box/">Info Box</a> Add icon box with custom font icon</li>
|
41 |
-
<li><a href="http://addons.topdigitaltrends.net/carousal-slider/">Caousal Slide</a> Show as carousel</li>
|
42 |
-
<li><a href="http://addons.topdigitaltrends.net/flip-box/">Flip Box</a> Add icon box with custom font icon</li>
|
43 |
-
<li><a href="http://addons.topdigitaltrends.net/image-hover-effects-popup-demo/">Modal Popup For Image Hover Effects</a> Image Hover Effects</li>
|
44 |
-
<li><a href="http://addons.topdigitaltrends.net/flip-book/">Flip Book</a> 3D Page Flip Book</li>
|
45 |
-
<li><a href="http://addons.topdigitaltrends.net/advanced-button/">Advanced Button</a> Animated style buttons</li>
|
46 |
-
<li><a href="http://addons.topdigitaltrends.net/dual-button/">Dual Button</a> Add a dual button and give some desing</li>
|
47 |
-
<li><a href="http://addons.topdigitaltrends.net/timeline/">Timeline</a> Add multiple images and text</li>
|
48 |
-
<li><a href="http://addons.topdigitaltrends.net/creative-link/">Creative Link</a> Creative links button</li>
|
49 |
-
<li><a href="http://addons.topdigitaltrends.net/countdown/">Countdown</a> Set Countdown timer</li>
|
50 |
-
<li><a href="http://addons.topdigitaltrends.net/advanced-social-icons/">Advanced Social Icons</a> social icons with animated effects</li>
|
51 |
-
<li><a href="http://addons.topdigitaltrends.net/texttype-effects/">TextTyper</a> Fancy line with animation effects</li>
|
52 |
-
<li><a href="http://addons.topdigitaltrends.net/modal-popup/">Modal Popup</a> Add modal box in your content</li>
|
53 |
-
<li><a href="http://addons.topdigitaltrends.net/info-list/">Info List</a> Text blocks connected together in one list</li>
|
54 |
-
<li><a href="http://addons.topdigitaltrends.net/google-trends/">Google Trends</a> show google trends</li>
|
55 |
-
<li><a href="http://addons.topdigitaltrends.net/tooltip-icons/">Tooltip Icons</a> show icons with tooltip</li>
|
56 |
-
<li><a href="http://addons.topdigitaltrends.net/testimonial/">Testimonial</a> show client comments as testimonial</li>
|
57 |
-
<li><a href="http://addons.topdigitaltrends.net/headings/">Headings</a> Display stylish headings</li>
|
58 |
-
<li><a href="http://addons.topdigitaltrends.net/highlight-box/">Highlight Box</a> Beautiful designed buttons for highlight</li>
|
59 |
-
<li><a href="http://addons.topdigitaltrends.net/image-swap/">Image Swap</a> Image over image hover effects</li>
|
60 |
-
<li><a href="http://addons.topdigitaltrends.net/accordion/">Accordion</a> vertically stacked list of items</li>
|
61 |
-
<li><a href="http://addons.topdigitaltrends.net/info-circle/">Info Circle</a> express info about your work</li>
|
62 |
-
<li><a href="http://addons.topdigitaltrends.net/before-after-image/">Before After Image</a> Compare the Images</li>
|
63 |
-
</ul>
|
64 |
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
<ul>
|
71 |
<li><a href="http://www.topdigitaltrends.net/collections/20-best-personal-blog-wordpress-themes-2020/">20 Best Personal Blog WordPress Themes 2020</a></li>
|
72 |
<li><a href="http://www.topdigitaltrends.net/collections/top-20-wordpress-review-themes-for-e-gadgets-services-apps-games-2020/">Top 10+ Best Review WordPress Themes 2020</a></li>
|
73 |
<li><a href="http://www.topdigitaltrends.net/collections/10-best-nightclub-wordpress-themes-2020/">10 Best Nightclub WordPress Themes 2020</a></li>
|
74 |
</ul>
|
75 |
|
|
|
|
|
|
|
76 |
== Installation ==
|
77 |
|
78 |
1. Go to plugins in your dashboard and select 'add new'
|
79 |
2. Search for 'Mega Addons For WPBakery Page Builder' and install it.
|
80 |
-
3. Go To pages and create design with help of
|
81 |
4. Fill some additional informations.
|
82 |
5. Now visit your site
|
83 |
|
@@ -85,7 +120,19 @@ Mega Addons For WPBakery Page Builder ~ The biggest Addon bundle for WPBakery Wi
|
|
85 |
|
86 |
= I activated the Mega Addons Plugin but I cannot see It In the dashboard pannel? =
|
87 |
|
88 |
-
It is the extension of <a href="https://1.envato.market/A1QAx">WPBakery Page Builder</a> so you must have WPBakery
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
|
90 |
= How To add background image in Info Banner? =
|
91 |
|
@@ -99,9 +146,31 @@ https://www.youtube.com/watch?time_continue=387&v=Qj4tfvMlcJs
|
|
99 |
|
100 |
== Screenshots ==
|
101 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
|
103 |
== Changelog ==
|
104 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
= 4.0 =
|
106 |
* This version have a lot of Improvements and bug fixed. Previous version 3.1 had major updates without new release. We have fully update the plugin now.
|
107 |
* Note: Please make sure to backup your previous version If you are updating plugin from 2.3 because desing can be change.
|
1 |
=== Mega Addons For WPBakery Page Builder ===
|
2 |
Contributors: nasir179125, smokehunt
|
3 |
Donate link: https://www.paypal.com/donate/?token=IEJu3QF5rsSIXSKPvPFBAyFldUM4WbkVRzGfUQ4ZSTSZcI3_hiYjVvr5fcz8_MFFwzeW5W&country.x=GB&locale.x=GB
|
4 |
+
Tags: mega addons for wpbakery page builder, mega addons for visual composer, wpbakery page builder, visual composer, all in one plugin, visual composer extension, multi addons for visual composer, imag hover effects, visual composer addons, vc addons, visual composer extensions, vc extensions, page builder, portfolio, carousel, post, posts, shortcodes, tabs, member profile, info banner, price table, stats counter, flip book, testimonial
|
5 |
Requires at least: 3.5
|
6 |
+
Tested up to: 5.5
|
7 |
+
Stable tag: 4.1.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
33+ Addons WPBakery extension, Beautifully designed unique elements, Includes Premium quality addons For WPBakery Page Builder.
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
Mega Addons For WPBakery Page Builder ~ The biggest Addon bundle for WPBakery With 32+ highly customizable elements and add-ons. This Addon Bundle provide you everything for your WPBakery Page Builder. Addons for WPBakery features professional looking, easy to use yet highly functional extensions that can be used in a WPBakery page builder.
|
|
|
|
|
|
|
|
|
16 |
|
17 |
+
[Check WPBakery Addons Demo Pages](http://addons.topdigitaltrends.net/)
|
|
|
18 |
|
19 |
+
[WPBakery Page Builder (formerly Visual Composer)](https://1.envato.market/A1QAx) plugin must be installed and activated to use this plugin. After you activate the required plugins, the elements should be available for use in WPBakery Page Builder.
|
|
|
|
|
|
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
+
|
23 |
+
### Completely Customizable
|
24 |
+
We’ve implemented freehand design experience in many elements and addons to make it easier to design amazing layouts using your mouse.
|
25 |
+
Each element comes with bunch of options to control every possible things. You can achieve nearly any design with your imagination.
|
26 |
+
|
27 |
+
### Light Weight & Instant Loading
|
28 |
+
No extra resources or messy codes to slow down your website. Optimized for super fast loading and instant Live editing.
|
29 |
+
|
30 |
+
### Elements Control option
|
31 |
+
Enable and disable individual elements to make your page loading faster and smoother. You can deactivate unnecessary widgets to keep the site lite.
|
32 |
+
|
33 |
+
### FULLY RESPONSIVE & CROSS BROWSER READY
|
34 |
+
Each Element and addon has been tested on different screen sizes, mobile devices, and tablets keeping in mind to add special responsive controls for the tricky widgets and addons we create.
|
35 |
+
|
36 |
+
|
37 |
+
|
38 |
+
### Expert Support
|
39 |
+
We have support team ready to help you. Ask your questions in the support forum, or contact us directly through contact form.
|
40 |
+
|
41 |
+
### [WPBakery](https://1.envato.market/A1QAx) page builder is required for this plugin.
|
42 |
+
|
43 |
+
|
44 |
+
### FREE WIDGETS AND COUNTING
|
45 |
+
|
46 |
+
We have designed 33+ of the most useful widgets to enhance your WPBakery Page Building experience and allow you to climb the top of your design capabilities.
|
47 |
+
|
48 |
+
|
49 |
+
1. [Advanced Carousel](http://addons.topdigitaltrends.net/carousal-slider/) - Turn any content Into carousel
|
50 |
+
2. [Team Members](http://addons.topdigitaltrends.net/member-profile/) - Feature your team members with few clicks
|
51 |
+
3. [Info Banner](http://addons.topdigitaltrends.net/info-banner/) - Displays the banner information
|
52 |
+
4. [Image Hove Effects](http://addons.topdigitaltrends.net/image-hover-effects/) - Image Hover Effects
|
53 |
+
5. [Interactive Banner](http://addons.topdigitaltrends.net/interactive-banner/) - great hover effects
|
54 |
+
6. [Pricing Table](http://addons.topdigitaltrends.net/price-table/) - Create nice looking pricing table
|
55 |
+
7. [Timeline](http://addons.topdigitaltrends.net/timeline/) - Add multiple images and text
|
56 |
+
8. [Stats Counter](http://addons.topdigitaltrends.net/stats-counter/) - Your milestones, achievements etc
|
57 |
+
9. [Info Box](http://addons.topdigitaltrends.net/info-box/) - Add icon box with custom font icon
|
58 |
+
10. [Flip Box](http://addons.topdigitaltrends.net/flip-box/) - Add icon box with custom font icon
|
59 |
+
11. [Advanced Button](http://addons.topdigitaltrends.net/advanced-button/) - Animated style buttons
|
60 |
+
12. [Price Table Listing](http://addons.topdigitaltrends.net/advanced-pricing-list/) - Compare Listing
|
61 |
+
13. [Filterable Gallery](http://addons.topdigitaltrends.net/filterable-gallery/) - Display images with separate categories
|
62 |
+
14. [Creative Links](http://addons.topdigitaltrends.net/creative-link/) - Creative links button
|
63 |
+
15. [Countdown](http://addons.topdigitaltrends.net/countdown/) - Set Countdown timer
|
64 |
+
16. [Advanced Social Icons](http://addons.topdigitaltrends.net/advanced-social-icons/) - social icons with animated effects
|
65 |
+
17. [TextTyper Typing](http://addons.topdigitaltrends.net/texttype-effects/) - Fancy line with animation effects
|
66 |
+
18. [Modal Popup](http://addons.topdigitaltrends.net/modal-popup/) - Add modal box in your content
|
67 |
+
19. [Info List](http://addons.topdigitaltrends.net/info-list/) - Text blocks connected together in one list
|
68 |
+
20. [Google Trends](http://addons.topdigitaltrends.net/google-trends/) - show google trends
|
69 |
+
21. [Tooltip Icons](http://addons.topdigitaltrends.net/tooltip-icons/) - show icons with tooltip
|
70 |
+
22. [Testimonial](http://addons.topdigitaltrends.net/testimonial/) - show client comments as testimonial
|
71 |
+
23. [Headings](http://addons.topdigitaltrends.net/headings/) - Display stylish headings
|
72 |
+
24. [Highlight Box](http://addons.topdigitaltrends.net/highlight-box/) - Beautiful designed buttons for highlight
|
73 |
+
25. [Accordion](http://addons.topdigitaltrends.net/accordion/) - vertically stacked list of items
|
74 |
+
26. [Image Swap](http://addons.topdigitaltrends.net/image-swap/) - Image over image hover effects
|
75 |
+
27. [Info Circle](http://addons.topdigitaltrends.net/info-circle/) - express info about your work
|
76 |
+
|
77 |
+
### More elements on [Premium Version](https://1.envato.market/02aNL)
|
78 |
+
|
79 |
+
1. [Post Carousel](http://addons.topdigitaltrends.net/post-carousel/) - Show posts as carousel slider
|
80 |
+
2. [Flip Book](http://addons.topdigitaltrends.net/flip-book/) - 3D Page Flip Book
|
81 |
+
3. [Post Grid](http://addons.topdigitaltrends.net/post-carousel/) - Show posts as Grid styles
|
82 |
+
4. [Modal Popup For Image Hover Effects](http://addons.topdigitaltrends.net/image-hover-effects-popup-demo/) - Modal popup & Lightbox for Image Hover Effects
|
83 |
+
5. [Filterable Gallery](http://addons.topdigitaltrends.net/filterable-gallery/) - (Pro options) 2 More Hover Effects + Video Popup option
|
84 |
+
6. [WP Floating Menu](http://addons.topdigitaltrends.net/wp-floating-menu/) - Create beautiful one page websites using this module
|
85 |
+
5. [Dual Button](http://addons.topdigitaltrends.net/dual-button/) - Add a dual button and give some design
|
86 |
+
7. [Before After Image Comparison](http://addons.topdigitaltrends.net/before-after-image/) - Let your viewers compare between two images
|
87 |
+
8. [Info Circle](http://addons.topdigitaltrends.net/info-circle/) - (Slide Option) express info about your work
|
88 |
+
10. [Interactive Banner 2](http://addons.topdigitaltrends.net/interactive-banner-2/) - Display Image With Information
|
89 |
+
11. [Team Members](http://addons.topdigitaltrends.net/member-profile/) - (3 More Designs) Feature your team members with few clicks
|
90 |
+
12. [Interactive Banner](http://addons.topdigitaltrends.net/interactive-banner/) (10 More Effects) - great hover effects
|
91 |
+
13. [Pricing Table](http://addons.topdigitaltrends.net/price-table/) - Create nice looking pricing tables
|
92 |
+
14. [Advanced Carousel](http://addons.topdigitaltrends.net/carousal-slider/) - (Pro options) Turn any content Into carousel
|
93 |
+
15. [Flip Box](http://addons.topdigitaltrends.net/flip-box/) - (3D Text Flip) Add icon box with custom font icon
|
94 |
+
16. [Modal Popup](http://addons.topdigitaltrends.net/modal-popup/) - (6+ Button Effects ) Add modal box in your content
|
95 |
+
17. [Accordion](http://addons.topdigitaltrends.net/accordion/) - (7+ Theme Design ) vertically stacked list of items
|
96 |
+
|
97 |
+
|
98 |
+
### Looking for a Best themes?
|
99 |
+
|
100 |
+
Businesses like restaurants, lawyers, agencies, interior designers, charity, plumber, dental clinic, construction, fitness trainer, gardening, makeup artist and a lot more. You can take a look at all of them built with different page builders.
|
101 |
+
|
102 |
<ul>
|
103 |
<li><a href="http://www.topdigitaltrends.net/collections/20-best-personal-blog-wordpress-themes-2020/">20 Best Personal Blog WordPress Themes 2020</a></li>
|
104 |
<li><a href="http://www.topdigitaltrends.net/collections/top-20-wordpress-review-themes-for-e-gadgets-services-apps-games-2020/">Top 10+ Best Review WordPress Themes 2020</a></li>
|
105 |
<li><a href="http://www.topdigitaltrends.net/collections/10-best-nightclub-wordpress-themes-2020/">10 Best Nightclub WordPress Themes 2020</a></li>
|
106 |
</ul>
|
107 |
|
108 |
+
= WHY PEOPLE LOVE THE MEGA ADDONS? =
|
109 |
+
Over 60000+ users are empowering their websites with Mega Addons! From beginners to experts, everyone is loving Addons for its performance and ease of use.
|
110 |
+
|
111 |
== Installation ==
|
112 |
|
113 |
1. Go to plugins in your dashboard and select 'add new'
|
114 |
2. Search for 'Mega Addons For WPBakery Page Builder' and install it.
|
115 |
+
3. Go To pages and create design with help of wpbakery page builder.
|
116 |
4. Fill some additional informations.
|
117 |
5. Now visit your site
|
118 |
|
120 |
|
121 |
= I activated the Mega Addons Plugin but I cannot see It In the dashboard pannel? =
|
122 |
|
123 |
+
It is the extension of <a href="https://1.envato.market/A1QAx">WPBakery Page Builder</a> so you must have WPBakery plugin to use my plugin. It works with WPBakery Page Builder. After you activate the required plugins, the elements should be available for use in WPBakery Page Builder.
|
124 |
+
|
125 |
+
= Does it work with any theme? =
|
126 |
+
Absolutely! It will work with any theme where WPBakery works.
|
127 |
+
|
128 |
+
|
129 |
+
= What if I update to Premium version? =
|
130 |
+
Your existing elements/content will work with premium version. So you won’t lose your developed contents. Just delete the free version first then activate the Pro version.
|
131 |
+
|
132 |
+
|
133 |
+
= Will this plugin slow down my website speed? =
|
134 |
+
Addons for WPBakery is light weight and we also gave you the control to enable only the elements you actually use on your website for faster performance.
|
135 |
+
|
136 |
|
137 |
= How To add background image in Info Banner? =
|
138 |
|
146 |
|
147 |
== Screenshots ==
|
148 |
|
149 |
+
1. Enable/Disable Elements
|
150 |
+
2. Mega Addons elements in WPBakery Page Builder
|
151 |
+
3. 3D Page Flip Book
|
152 |
+
4. Show your awesome Team
|
153 |
+
5. Image Hover Effects
|
154 |
+
6. Lightbox & Modal Popup
|
155 |
+
7. Pricing Table
|
156 |
+
8. vertically stacked list of items
|
157 |
+
9. Post Carousel
|
158 |
+
|
159 |
|
160 |
== Changelog ==
|
161 |
|
162 |
+
= 4.1.1 =
|
163 |
+
* Thank you for using plugin. We are working hard to make plugin more better.
|
164 |
+
* New Element: Filterable Gallery -> Display images with separate categories, Grid Styles and customize the overall design to ensure the extraordinary look.
|
165 |
+
* Accordion: Now you can add custom fontawesome icon for Default & Active, plus set text color & background when accordion is active.
|
166 |
+
* Timeline: Added the extra option for Text and Image.
|
167 |
+
* Redesign settings of "Info List".
|
168 |
+
* Advanced Carousel: Now you can set Background Color of "arrows" and custom font size of "dots". For further please check the Demo.
|
169 |
+
* Modal Popup: Padding option for content when It is displayed in Popup view.
|
170 |
+
* Image Swap: Remove gray border outline and addition of Border styling.
|
171 |
+
* Fixed some bugs.
|
172 |
+
|
173 |
+
|
174 |
= 4.0 =
|
175 |
* This version have a lot of Improvements and bug fixed. Previous version 3.1 had major updates without new release. We have fully update the plugin now.
|
176 |
* Note: Please make sure to backup your previous version If you are updating plugin from 2.3 because desing can be change.
|
render/accordion_father.php
CHANGED
@@ -11,15 +11,41 @@ class WPBakeryShortCode_accordion_father extends WPBakeryShortCodesContainer {
|
|
11 |
'active' => 'false',
|
12 |
'animation' => '350',
|
13 |
'event' => 'click',
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
), $atts ) );
|
|
|
|
|
15 |
$content = wpb_js_remove_wpautop($content);
|
16 |
wp_enqueue_style( 'accordion-css', plugins_url( '../css/accordion.css' , __FILE__ ));
|
17 |
wp_enqueue_script( 'accordion-js', plugins_url( '../js/accordion.js' , __FILE__ ), array('jquery', 'jquery-ui-accordion'));
|
18 |
ob_start(); ?>
|
19 |
-
<div class="mega-accordion" data-active="<?php echo $active; ?>" data-anim="<?php echo $animation; ?>" data-event="<?php echo $event; ?>">
|
20 |
<?php echo $content; ?>
|
21 |
</div>
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
<?php return ob_get_clean();
|
24 |
}
|
25 |
}
|
@@ -69,6 +95,30 @@ vc_map( array(
|
|
69 |
)
|
70 |
),
|
71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
array(
|
73 |
"type" => "vc_links",
|
74 |
"param_name" => "caption_url",
|
@@ -76,5 +126,30 @@ vc_map( array(
|
|
76 |
"description" => __( '<span style="Background: #ddd;padding: 10px; display: block; color: #0073aa;font-weight:600;"><a href="https://1.envato.market/02aNL" target="_blank" style="text-decoration: none;">Get the Pro version for more stunning elements and customization options.</a></span>', 'ihover' ),
|
77 |
"group" => 'General',
|
78 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
)
|
80 |
) );
|
11 |
'active' => 'false',
|
12 |
'animation' => '350',
|
13 |
'event' => 'click',
|
14 |
+
'titlemargin' => '0',
|
15 |
+
'activetabbg' => '',
|
16 |
+
'activetabclr' => '',
|
17 |
+
'iconsize' => '15',
|
18 |
+
'icon' => 'fa fa-plus',
|
19 |
+
'activeicon' => 'fa fa-minus',
|
20 |
), $atts ) );
|
21 |
+
$some_id = rand(5, 500);
|
22 |
+
$GLOBALS['maw_accordion_margin'] = $titlemargin;
|
23 |
$content = wpb_js_remove_wpautop($content);
|
24 |
wp_enqueue_style( 'accordion-css', plugins_url( '../css/accordion.css' , __FILE__ ));
|
25 |
wp_enqueue_script( 'accordion-js', plugins_url( '../js/accordion.js' , __FILE__ ), array('jquery', 'jquery-ui-accordion'));
|
26 |
ob_start(); ?>
|
27 |
+
<div class="mega-accordion maw_accordion_<?php echo $some_id; ?>" data-active="<?php echo $active; ?>" data-anim="<?php echo $animation; ?>" data-event="<?php echo $event; ?>" data-closeicons="<?php echo $icon; ?>" data-activeicons="<?php echo $activeicon; ?>">
|
28 |
<?php echo $content; ?>
|
29 |
</div>
|
30 |
|
31 |
+
<style>
|
32 |
+
.maw_accordion_<?php echo $some_id; ?> .ac-style .ui-accordion-header-icon {
|
33 |
+
font-size: <?php echo $iconsize; ?>px;
|
34 |
+
}
|
35 |
+
<?php if ($activetabbg != '' || $activetabclr != '') { ?>
|
36 |
+
.maw_accordion_<?php echo $some_id; ?> .ui-state-active,
|
37 |
+
.maw_accordion_<?php echo $some_id; ?> .ui-widget-content .ui-state-active,
|
38 |
+
.maw_accordion_<?php echo $some_id; ?> .ui-widget-header .ui-state-active {
|
39 |
+
background: <?php echo $activetabbg; ?> !important;
|
40 |
+
color: <?php echo $activetabclr; ?> !important;
|
41 |
+
}
|
42 |
+
.maw_accordion_<?php echo $some_id; ?> .ui-accordion-header:hover {
|
43 |
+
background: <?php echo $activetabbg; ?> !important;
|
44 |
+
color: <?php echo $activetabclr; ?> !important;
|
45 |
+
}
|
46 |
+
<?php } ?>
|
47 |
+
</style>
|
48 |
+
|
49 |
<?php return ob_get_clean();
|
50 |
}
|
51 |
}
|
95 |
)
|
96 |
),
|
97 |
|
98 |
+
array(
|
99 |
+
"type" => "vc_number",
|
100 |
+
"heading" => __( 'Margin', 'accordion' ),
|
101 |
+
"param_name" => "titlemargin",
|
102 |
+
"description" => __( 'margin between accordion titles.', 'accordion' ),
|
103 |
+
"value" => "0",
|
104 |
+
"suffix" => 'px',
|
105 |
+
"group" => 'General',
|
106 |
+
),
|
107 |
+
|
108 |
+
array(
|
109 |
+
"type" => "colorpicker",
|
110 |
+
"heading" => __( 'Active Tab Background', 'accordion' ),
|
111 |
+
"param_name" => "activetabbg",
|
112 |
+
"group" => 'General',
|
113 |
+
),
|
114 |
+
|
115 |
+
array(
|
116 |
+
"type" => "colorpicker",
|
117 |
+
"heading" => __( 'Active Tab Hover Color', 'accordion' ),
|
118 |
+
"param_name" => "activetabclr",
|
119 |
+
"group" => 'General',
|
120 |
+
),
|
121 |
+
|
122 |
array(
|
123 |
"type" => "vc_links",
|
124 |
"param_name" => "caption_url",
|
126 |
"description" => __( '<span style="Background: #ddd;padding: 10px; display: block; color: #0073aa;font-weight:600;"><a href="https://1.envato.market/02aNL" target="_blank" style="text-decoration: none;">Get the Pro version for more stunning elements and customization options.</a></span>', 'ihover' ),
|
127 |
"group" => 'General',
|
128 |
),
|
129 |
+
|
130 |
+
array(
|
131 |
+
"type" => "vc_number",
|
132 |
+
"heading" => __( 'Icon Font Size', 'accordion' ),
|
133 |
+
"param_name" => "iconsize",
|
134 |
+
"suffix" => 'px',
|
135 |
+
"value" => "15",
|
136 |
+
"group" => 'Icon',
|
137 |
+
),
|
138 |
+
|
139 |
+
array(
|
140 |
+
"type" => "iconpicker",
|
141 |
+
"heading" => __( 'Icon', 'accordion' ),
|
142 |
+
"param_name" => "icon",
|
143 |
+
"description" => __( 'it will show by default', 'accordion' ),
|
144 |
+
"group" => 'Icon',
|
145 |
+
),
|
146 |
+
|
147 |
+
array(
|
148 |
+
"type" => "iconpicker",
|
149 |
+
"heading" => __( 'Active Icon', 'accordion' ),
|
150 |
+
"param_name" => "activeicon",
|
151 |
+
"description" => __( 'it will show when accordion is active', 'accordion' ),
|
152 |
+
"group" => 'Icon',
|
153 |
+
),
|
154 |
)
|
155 |
) );
|
render/accordion_son.php
CHANGED
@@ -8,7 +8,6 @@ class WPBakeryShortCode_accordion_son extends WPBakeryShortCode {
|
|
8 |
protected function content( $atts, $content = null ) {
|
9 |
|
10 |
extract( shortcode_atts( array(
|
11 |
-
'titlemargin' => '0',
|
12 |
'title' => '',
|
13 |
'height' => '50',
|
14 |
'size' => '16',
|
@@ -22,11 +21,13 @@ class WPBakeryShortCode_accordion_son extends WPBakeryShortCode {
|
|
22 |
'bodybg' => '',
|
23 |
), $atts ) );
|
24 |
$content = wpb_js_remove_wpautop($content);
|
25 |
-
ob_start();
|
26 |
-
|
|
|
|
|
27 |
<?php echo $title; ?>
|
28 |
</h3>
|
29 |
-
<div class="mega-panel" style="margin-bottom: <?php echo $
|
30 |
<?php echo $content; ?>
|
31 |
</div>
|
32 |
|
@@ -47,16 +48,6 @@ vc_map( array(
|
|
47 |
|
48 |
// Title Section
|
49 |
|
50 |
-
array(
|
51 |
-
"type" => "vc_number",
|
52 |
-
"heading" => __( 'Margin', 'accordion' ),
|
53 |
-
"param_name" => "titlemargin",
|
54 |
-
"description" => __( 'margin from bottom for each tab, set in pixel', 'accordion' ),
|
55 |
-
"value" => "0",
|
56 |
-
"suffix" => 'px',
|
57 |
-
"group" => 'General',
|
58 |
-
),
|
59 |
-
|
60 |
array(
|
61 |
"type" => "textfield",
|
62 |
"heading" => __( 'Title', 'accordion' ),
|
@@ -76,7 +67,7 @@ vc_map( array(
|
|
76 |
"group" => "Title",
|
77 |
),
|
78 |
array(
|
79 |
-
"type" => "
|
80 |
"heading" => __( 'Font Size', 'accordion' ),
|
81 |
"param_name" => "size",
|
82 |
"description" => __( 'set in pixel eg, 16', 'accordion' ),
|
8 |
protected function content( $atts, $content = null ) {
|
9 |
|
10 |
extract( shortcode_atts( array(
|
|
|
11 |
'title' => '',
|
12 |
'height' => '50',
|
13 |
'size' => '16',
|
21 |
'bodybg' => '',
|
22 |
), $atts ) );
|
23 |
$content = wpb_js_remove_wpautop($content);
|
24 |
+
ob_start();
|
25 |
+
global $maw_accordion_margin;
|
26 |
+
?>
|
27 |
+
<h3 class="ac-style" style="margin-top: <?php echo $maw_accordion_margin; ?>px; border-width: <?php echo $borderwidth; ?>; border-style: solid; border-color: <?php echo $borderclr; ?>; color: <?php echo $clr; ?>; background: <?php echo $bgclr; ?> <?php echo $gradientbg; ?>; font-size: <?php echo $size; ?>px;height: <?php echo $height; ?>px; line-height: <?php echo $height; ?>px;">
|
28 |
<?php echo $title; ?>
|
29 |
</h3>
|
30 |
+
<div class="mega-panel" style="margin-bottom: <?php echo $maw_accordion_margin; ?>px;background: <?php echo $bodybg; ?>; border-width: <?php echo $borderwidth2; ?>; border-style: solid; border-color: <?php echo $borderclr2; ?>;">
|
31 |
<?php echo $content; ?>
|
32 |
</div>
|
33 |
|
48 |
|
49 |
// Title Section
|
50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
array(
|
52 |
"type" => "textfield",
|
53 |
"heading" => __( 'Title', 'accordion' ),
|
67 |
"group" => "Title",
|
68 |
),
|
69 |
array(
|
70 |
+
"type" => "vc_number",
|
71 |
"heading" => __( 'Font Size', 'accordion' ),
|
72 |
"param_name" => "size",
|
73 |
"description" => __( 'set in pixel eg, 16', 'accordion' ),
|
render/advanced_btn.php
CHANGED
@@ -23,7 +23,7 @@ class WPBakeryShortCode_mvc_advanced_button extends WPBakeryShortCode {
|
|
23 |
'btn_border' => '',
|
24 |
'border_width' => '0',
|
25 |
'btn_clr' => '#000',
|
26 |
-
'btn_bg' => '
|
27 |
'btn_hvrclr' => '#fff',
|
28 |
'btn_hvrbg' => '',
|
29 |
), $atts ) );
|
23 |
'btn_border' => '',
|
24 |
'border_width' => '0',
|
25 |
'btn_clr' => '#000',
|
26 |
+
'btn_bg' => '',
|
27 |
'btn_hvrclr' => '#fff',
|
28 |
'btn_hvrbg' => '',
|
29 |
), $atts ) );
|
render/filterablegallery_wrap.php
ADDED
@@ -0,0 +1,393 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
die( '-1' );
|
4 |
+
}
|
5 |
+
|
6 |
+
class WPBakeryShortCode_filter_gallery_wrap extends WPBakeryShortCodesContainer {
|
7 |
+
|
8 |
+
protected function content( $atts, $content = null ) {
|
9 |
+
|
10 |
+
extract( shortcode_atts( array(
|
11 |
+
'columns' => '4',
|
12 |
+
'columnstab' => '3',
|
13 |
+
'columnsmbl' => '2',
|
14 |
+
'img_height' => '',
|
15 |
+
'layout' => 'overlay',
|
16 |
+
'hover_effect' => 'ih_item_fade_effect',
|
17 |
+
'checked' => 'true',
|
18 |
+
'all_label' => 'All',
|
19 |
+
'filter_cat' => '',
|
20 |
+
'link_icon' => 'fas fa-link',
|
21 |
+
'popup_icon' => 'fas fa-search-plus',
|
22 |
+
'categ_rlpadding' => '25',
|
23 |
+
'categ_tbpadding' => '8',
|
24 |
+
'categ_rlmargin' => '5',
|
25 |
+
'categ_radius' => '',
|
26 |
+
'categ_textsize' => '17',
|
27 |
+
'categ_bmargin' => '',
|
28 |
+
'categ_borderwidth' => '0',
|
29 |
+
'categ_borderstyle' => 'solid',
|
30 |
+
'categ_borderclr' => '',
|
31 |
+
'categ_textclr' => '',
|
32 |
+
'categ_textbg' => '',
|
33 |
+
'categ_activeclr' => '',
|
34 |
+
'categ_activebg' => '',
|
35 |
+
), $atts ) );
|
36 |
+
$randomPort_id = rand(5, 500);
|
37 |
+
$GLOBALS['maw_filtergal_effect'] = $hover_effect; $GLOBALS['maw_filtergal_linkicon'] = $link_icon;
|
38 |
+
$GLOBALS['maw_filtergal_popupicon'] = $popup_icon; $GLOBALS['maw_filtergal_imgheight'] = $img_height;
|
39 |
+
$GLOBALS['maw_filtergal_Gid'] = $randomPort_id;
|
40 |
+
$content = wpb_js_remove_wpautop($content, true);
|
41 |
+
wp_enqueue_style( 'filterablegallery-css', plugins_url( '../css/filterablegallery.css' , __FILE__ ));
|
42 |
+
wp_enqueue_style( 'fancybox-css', plugins_url( '../css/jquery.fancybox.min.css' , __FILE__ ));
|
43 |
+
wp_enqueue_script( 'mixitup-min-js', plugins_url( '../js/mixitup.min.js' , __FILE__ ));
|
44 |
+
wp_enqueue_script( 'custom-mixitup-js', plugins_url( '../js/custommixitup.js' , __FILE__ ), array('jquery'));
|
45 |
+
wp_enqueue_script( 'fancybox-js', plugins_url( '../js/jquery.fancybox.min.js' , __FILE__ ), array('jquery'));
|
46 |
+
ob_start(); ?>
|
47 |
+
<div class="maw_portfolioGallery_container">
|
48 |
+
<div class="controls FilterGalleryUL_<?php echo $randomPort_id; ?>">
|
49 |
+
<ul class="maw_portfolioGallery_ul" style="margin-bottom: <?php echo $categ_bmargin ?>px;">
|
50 |
+
<?php if ($all_label != "") { ?>
|
51 |
+
<li class="control" data-filter="all"
|
52 |
+
style="padding: <?php echo $categ_tbpadding ?>px <?php echo $categ_rlpadding ?>px;
|
53 |
+
margin: 0 <?php echo $categ_rlmargin ?>px;
|
54 |
+
font-size: <?php echo $categ_textsize ?>px; color: <?php echo $categ_textclr ?>; background: <?php echo $categ_textbg ?>;
|
55 |
+
border: <?php echo $categ_borderwidth ?>px <?php echo $categ_borderstyle ?> <?php echo $categ_borderclr ?>;
|
56 |
+
border-radius: <?php echo $categ_radius ?>px;
|
57 |
+
">
|
58 |
+
<?php echo $all_label ?>
|
59 |
+
</li>
|
60 |
+
<?php } ?>
|
61 |
+
<?php
|
62 |
+
if ($filter_cat != "") {
|
63 |
+
$filterCategory = array_map('trim', explode(',', $filter_cat));
|
64 |
+
foreach ($filterCategory as $categ) {
|
65 |
+
$categremovespace = str_replace(' ', '', $categ); ?>
|
66 |
+
<li class="control" data-filter=".maw-fg-<?php echo $categremovespace ?>"
|
67 |
+
style="padding: <?php echo $categ_tbpadding ?>px <?php echo $categ_rlpadding ?>px;
|
68 |
+
margin: 0 <?php echo $categ_rlmargin ?>px;
|
69 |
+
font-size: <?php echo $categ_textsize ?>px; color: <?php echo $categ_textclr ?>; background: <?php echo $categ_textbg ?>;
|
70 |
+
border: <?php echo $categ_borderwidth ?>px <?php echo $categ_borderstyle ?> <?php echo $categ_borderclr ?>;
|
71 |
+
border-radius: <?php echo $categ_radius ?>px;
|
72 |
+
">
|
73 |
+
<?php echo $categ ?>
|
74 |
+
</li>
|
75 |
+
<?php }
|
76 |
+
} ?>
|
77 |
+
</ul>
|
78 |
+
</div>
|
79 |
+
|
80 |
+
<div class="maw_portfolioGallery_wrapper maw_portfolioGallery_wrap<?php echo $randomPort_id; ?>">
|
81 |
+
<?php echo $content; ?>
|
82 |
+
</div>
|
83 |
+
</div>
|
84 |
+
<style>
|
85 |
+
.FilterGalleryUL_<?php echo $randomPort_id; ?> .mixitup-control-active{
|
86 |
+
color: <?php echo $categ_activeclr; ?> !important;
|
87 |
+
background: <?php echo $categ_activebg; ?> !important;
|
88 |
+
}
|
89 |
+
.maw_portfolioGallery_wrapper .mix-<?php echo $randomPort_id ?>{
|
90 |
+
display: inline-block;
|
91 |
+
vertical-align: top;
|
92 |
+
}
|
93 |
+
.maw_portfolioGallery_wrapper .mix-<?php echo $randomPort_id ?> {
|
94 |
+
width: calc(100%/<?php echo $columns; ?> - (((<?php echo $columns; ?> - 1) * 1rem) / <?php echo $columns; ?>)) !important;
|
95 |
+
}
|
96 |
+
@media screen and (max-width: 961px) {
|
97 |
+
.maw_portfolioGallery_wrapper .mix-<?php echo $randomPort_id ?> {
|
98 |
+
width: calc(100%/<?php echo $columnstab; ?> - (((<?php echo $columnstab; ?> - 1) * 1rem) / <?php echo $columnstab; ?>)) !important;
|
99 |
+
}
|
100 |
+
}
|
101 |
+
@media screen and (max-width: 480px) {
|
102 |
+
.maw_portfolioGallery_wrapper .mix-<?php echo $randomPort_id ?> {
|
103 |
+
width: calc(100%/<?php echo $columnsmbl; ?> - (((<?php echo $columnsmbl; ?> - 1) * 1rem) / <?php echo $columnsmbl; ?>)) !important;
|
104 |
+
}
|
105 |
+
}
|
106 |
+
<?php if ($gridstyle == 'masonry') { ?>
|
107 |
+
|
108 |
+
<?php } ?>
|
109 |
+
|
110 |
+
</style>
|
111 |
+
|
112 |
+
|
113 |
+
<?php return ob_get_clean();
|
114 |
+
}
|
115 |
+
}
|
116 |
+
|
117 |
+
|
118 |
+
vc_map( array(
|
119 |
+
"base" => "filter_gallery_wrap",
|
120 |
+
"name" => __( 'Filterable Gallery', 'megaaddons' ),
|
121 |
+
"as_parent" => array('only' => 'filter_gallery_son'),
|
122 |
+
"content_element" => true,
|
123 |
+
"js_view" => 'VcColumnView',
|
124 |
+
"category" => __('Mega Addons'),
|
125 |
+
"description" => __('Display images with separate categories', 'megaaddons'),
|
126 |
+
"icon" => plugin_dir_url( __FILE__ ).'../icons/filtergallery.png',
|
127 |
+
'params' => array(
|
128 |
+
array(
|
129 |
+
"type" => "vc_links",
|
130 |
+
"param_name" => "caption_urls",
|
131 |
+
"class" => "ult_param_heading",
|
132 |
+
"description" => __( '<span style="Background: #ddd;padding: 10px; display: block; color: #302f2f;font-weight:600;">Number of Items Display In Row <a target="_blank" href="https://addons.topdigitaltrends.net/filterable-gallery">Demo</a></span>', 'megaaddons' ),
|
133 |
+
"group" => 'General',
|
134 |
+
),
|
135 |
+
array(
|
136 |
+
"type" => "vc_number",
|
137 |
+
"heading" => __( 'Columns [For PC]', 'megaaddons' ),
|
138 |
+
"param_name" => "columns",
|
139 |
+
"edit_field_class" => "vc_col-sm-4 wdo_items_to_show wdo_margin_bottom",
|
140 |
+
"value" => "4",
|
141 |
+
"group" => 'General',
|
142 |
+
),
|
143 |
+
|
144 |
+
array(
|
145 |
+
"type" => "vc_number",
|
146 |
+
"heading" => __( 'Columns [For Tab]', 'megaaddons' ),
|
147 |
+
"param_name" => "columnstab",
|
148 |
+
"edit_field_class" => "vc_col-sm-4 wdo_items_to_show wdo_margin_bottom",
|
149 |
+
"value" => "3",
|
150 |
+
"group" => 'General',
|
151 |
+
),
|
152 |
+
|
153 |
+
array(
|
154 |
+
"type" => "vc_number",
|
155 |
+
"heading" => __( 'Columns [Mobile]', 'megaaddons' ),
|
156 |
+
"param_name" => "columnsmbl",
|
157 |
+
"edit_field_class" => "vc_col-sm-4 wdo_items_to_show wdo_margin_bottom",
|
158 |
+
"value" => "2",
|
159 |
+
"group" => 'General',
|
160 |
+
),
|
161 |
+
|
162 |
+
// array(
|
163 |
+
// "type" => "dropdown",
|
164 |
+
// "heading" => __( 'Grid Style', 'megaaddons' ),
|
165 |
+
// "param_name" => "gridstyle",
|
166 |
+
// "group" => 'General',
|
167 |
+
// "value" => array(
|
168 |
+
// "Grid" => "grid",
|
169 |
+
// "Masonry" => "masonry",
|
170 |
+
// )
|
171 |
+
// ),
|
172 |
+
|
173 |
+
array(
|
174 |
+
"type" => "vc_number",
|
175 |
+
"heading" => __( 'Image Height', 'megaaddons' ),
|
176 |
+
"param_name" => "img_height",
|
177 |
+
"suffix" => "px",
|
178 |
+
"group" => 'General',
|
179 |
+
),
|
180 |
+
|
181 |
+
array(
|
182 |
+
"type" => "dropdown",
|
183 |
+
"heading" => __( 'Hover Effect', 'ihover' ),
|
184 |
+
"param_name" => "hover_effect",
|
185 |
+
"group" => 'General',
|
186 |
+
"value" => array(
|
187 |
+
'Fade In' => 'ih_item_fade_effect',
|
188 |
+
'Slide Up' => 'ih_item_slide_up',
|
189 |
+
'Zoom In [Pro Option]' => '',
|
190 |
+
'Card Style [Pro Option]' => '',
|
191 |
+
)
|
192 |
+
),
|
193 |
+
|
194 |
+
array(
|
195 |
+
"type" => "iconpicker",
|
196 |
+
"heading" => __( 'Link Icon', 'accordion' ),
|
197 |
+
"param_name" => "link_icon",
|
198 |
+
"value" => "fas fa-link",
|
199 |
+
"group" => 'General',
|
200 |
+
),
|
201 |
+
|
202 |
+
array(
|
203 |
+
"type" => "iconpicker",
|
204 |
+
"heading" => __( 'Lightbox Icon', 'accordion' ),
|
205 |
+
"param_name" => "popup_icon",
|
206 |
+
"value" => "fas fa-search-plus",
|
207 |
+
"group" => 'General',
|
208 |
+
),
|
209 |
+
|
210 |
+
array(
|
211 |
+
"type" => "vc_links",
|
212 |
+
"param_name" => "caption_url",
|
213 |
+
"class" => "ult_param_heading",
|
214 |
+
"description" => __( '<span style="Background: #ddd;padding: 10px; display: block; color: #0073aa;font-weight:600;"><a href="https://1.envato.market/02aNL" target="_blank" style="text-decoration: none;">Get the Pro version for more stunning elements and customization options.</a></span>', 'ihover' ),
|
215 |
+
"group" => 'General',
|
216 |
+
),
|
217 |
+
|
218 |
+
// --------------------- Filterable Controls ------------------------ >
|
219 |
+
|
220 |
+
array(
|
221 |
+
"type" => "checkbox",
|
222 |
+
"heading" => __( 'Enable Filter', 'megaaddons' ),
|
223 |
+
"param_name" => "checked",
|
224 |
+
"value" => "",
|
225 |
+
"group" => 'Filterable Controls',
|
226 |
+
),
|
227 |
+
|
228 |
+
array(
|
229 |
+
"type" => "textfield",
|
230 |
+
"heading" => __( 'Gallery All Label', 'megaaddons' ),
|
231 |
+
"param_name" => "all_label",
|
232 |
+
"dependency" => array('element' => "checked", 'value' => 'true'),
|
233 |
+
"value" => "ALL",
|
234 |
+
"group" => 'Filterable Controls',
|
235 |
+
),
|
236 |
+
|
237 |
+
array(
|
238 |
+
"type" => "textarea",
|
239 |
+
"heading" => __( 'Categories Name', 'megaaddons' ),
|
240 |
+
"param_name" => "filter_cat",
|
241 |
+
"dependency" => array('element' => "checked", 'value' => 'true'),
|
242 |
+
"value" => "tech, innovation, brand",
|
243 |
+
"description" => "write all categories name seprated with comma e.g tech, innovation, brand",
|
244 |
+
"group" => 'Filterable Controls',
|
245 |
+
),
|
246 |
+
|
247 |
+
// --------------------- Control Styles ------------------------ >
|
248 |
+
|
249 |
+
array(
|
250 |
+
"type" => "vc_links",
|
251 |
+
"param_name" => "caption_urls",
|
252 |
+
"class" => "ult_param_heading",
|
253 |
+
"description" => __( '<span style="Background: #ddd;padding: 10px; display: block; color: #302f2f;font-weight:600;">Category Control Styles</span>', 'megaaddons' ),
|
254 |
+
"group" => 'Filterable Controls',
|
255 |
+
),
|
256 |
+
|
257 |
+
array(
|
258 |
+
"type" => "vc_number",
|
259 |
+
"heading" => __( 'Padding [Top Bottom]', 'megaaddons' ),
|
260 |
+
"edit_field_class" => "vc_col-sm-4 wdo_items_to_show wdo_margin_bottom",
|
261 |
+
"param_name" => "categ_tbpadding",
|
262 |
+
"value" => "8",
|
263 |
+
"suffix" => "px",
|
264 |
+
"group" => 'Filterable Controls',
|
265 |
+
),
|
266 |
+
|
267 |
+
array(
|
268 |
+
"type" => "vc_number",
|
269 |
+
"heading" => __( 'Padding [Right Left]', 'megaaddons' ),
|
270 |
+
"edit_field_class" => "vc_col-sm-4 wdo_items_to_show wdo_margin_bottom",
|
271 |
+
"param_name" => "categ_rlpadding",
|
272 |
+
"value" => "25",
|
273 |
+
"suffix" => "px",
|
274 |
+
"group" => 'Filterable Controls',
|
275 |
+
),
|
276 |
+
|
277 |
+
array(
|
278 |
+
"type" => "vc_number",
|
279 |
+
"heading" => __( 'Margin [Right Left]', 'megaaddons' ),
|
280 |
+
"edit_field_class" => "vc_col-sm-4 wdo_items_to_show wdo_margin_bottom",
|
281 |
+
"param_name" => "categ_rlmargin",
|
282 |
+
"value" => "5",
|
283 |
+
"suffix" => "px",
|
284 |
+
"group" => 'Filterable Controls',
|
285 |
+
),
|
286 |
+
|
287 |
+
array(
|
288 |
+
"type" => "vc_number",
|
289 |
+
"heading" => __( 'Boder Radius', 'megaaddons' ),
|
290 |
+
"edit_field_class" => "vc_col-sm-4 wdo_items_to_show wdo_margin_bottom",
|
291 |
+
"param_name" => "categ_radius",
|
292 |
+
"suffix" => "px",
|
293 |
+
"group" => 'Filterable Controls',
|
294 |
+
),
|
295 |
+
|
296 |
+
array(
|
297 |
+
"type" => "vc_number",
|
298 |
+
"heading" => __( 'Category [Font Size]', 'megaaddons' ),
|
299 |
+
"edit_field_class" => "vc_col-sm-4 wdo_items_to_show wdo_margin_bottom",
|
300 |
+
"param_name" => "categ_textsize",
|
301 |
+
"value" => "17",
|
302 |
+
"suffix" => "px",
|
303 |
+
"group" => 'Filterable Controls',
|
304 |
+
),
|
305 |
+
|
306 |
+
array(
|
307 |
+
"type" => "vc_number",
|
308 |
+
"heading" => __( 'Margin [Bottom]', 'megaaddons' ),
|
309 |
+
"edit_field_class" => "vc_col-sm-4 wdo_items_to_show wdo_margin_bottom",
|
310 |
+
"param_name" => "categ_bmargin",
|
311 |
+
"suffix" => "px",
|
312 |
+
"group" => 'Filterable Controls',
|
313 |
+
),
|
314 |
+
|
315 |
+
array(
|
316 |
+
"type" => "vc_number",
|
317 |
+
"heading" => __( 'Border Width', 'ihover' ),
|
318 |
+
"param_name" => "categ_borderwidth",
|
319 |
+
"edit_field_class" => "vc_col-sm-4 wdo_items_to_show wdo_margin_bottom",
|
320 |
+
"value" => "0",
|
321 |
+
"suffix" => 'px',
|
322 |
+
"group" => 'Filterable Controls',
|
323 |
+
),
|
324 |
+
|
325 |
+
array(
|
326 |
+
"type" => "dropdown",
|
327 |
+
"heading" => __( 'Border Style', 'ich-vc' ),
|
328 |
+
"param_name" => "categ_borderstyle",
|
329 |
+
"edit_field_class" => "vc_col-sm-4 wdo_items_to_show wdo_margin_bottom",
|
330 |
+
"group" => 'Filterable Controls',
|
331 |
+
"value" => array(
|
332 |
+
"Solid" => "solid",
|
333 |
+
"Dotted" => "dotted",
|
334 |
+
"Ridge" => "ridge",
|
335 |
+
"Dashed" => "dashed",
|
336 |
+
"Double" => "double",
|
337 |
+
"Groove" => "groove",
|
338 |
+
"Inset" => "inset",
|
339 |
+
)
|
340 |
+
),
|
341 |
+
|
342 |
+
array(
|
343 |
+
"type" => "colorpicker",
|
344 |
+
"heading" => __( 'Border Color', 'ihover' ),
|
345 |
+
"param_name" => "categ_borderclr",
|
346 |
+
"edit_field_class" => "vc_col-sm-4 wdo_items_to_show wdo_margin_bottom",
|
347 |
+
"group" => 'Filterable Controls',
|
348 |
+
),
|
349 |
+
|
350 |
+
// --------------------- Color Styling ------------------------ >
|
351 |
+
|
352 |
+
array(
|
353 |
+
"type" => "vc_links",
|
354 |
+
"param_name" => "caption_urls",
|
355 |
+
"class" => "ult_param_heading",
|
356 |
+
"description" => __( '<span style="Background: #ddd;padding: 10px; display: block; color: #302f2f;font-weight:600;">Color Settings</span>', 'megaaddons' ),
|
357 |
+
"group" => 'Filterable Controls',
|
358 |
+
),
|
359 |
+
|
360 |
+
array(
|
361 |
+
"type" => "colorpicker",
|
362 |
+
"heading" => __( 'Text Color', 'ihover' ),
|
363 |
+
"param_name" => "categ_textclr",
|
364 |
+
"edit_field_class" => "vc_col-sm-6 wdo_items_to_show wdo_margin_bottom",
|
365 |
+
"group" => 'Filterable Controls',
|
366 |
+
),
|
367 |
+
|
368 |
+
array(
|
369 |
+
"type" => "colorpicker",
|
370 |
+
"heading" => __( 'Background Color', 'ihover' ),
|
371 |
+
"param_name" => "categ_textbg",
|
372 |
+
"edit_field_class" => "vc_col-sm-6 wdo_items_to_show wdo_margin_bottom",
|
373 |
+
"group" => 'Filterable Controls',
|
374 |
+
),
|
375 |
+
|
376 |
+
array(
|
377 |
+
"type" => "colorpicker",
|
378 |
+
"heading" => __( 'Active Text Color', 'ihover' ),
|
379 |
+
"param_name" => "categ_activeclr",
|
380 |
+
"edit_field_class" => "vc_col-sm-6 wdo_items_to_show wdo_margin_bottom",
|
381 |
+
"group" => 'Filterable Controls',
|
382 |
+
),
|
383 |
+
|
384 |
+
array(
|
385 |
+
"type" => "colorpicker",
|
386 |
+
"heading" => __( 'Active Background', 'ihover' ),
|
387 |
+
"param_name" => "categ_activebg",
|
388 |
+
"edit_field_class" => "vc_col-sm-6 wdo_items_to_show wdo_margin_bottom",
|
389 |
+
"group" => 'Filterable Controls',
|
390 |
+
),
|
391 |
+
)
|
392 |
+
)
|
393 |
+
);
|
render/filtergallery.php
ADDED
@@ -0,0 +1,216 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
die( '-1' );
|
4 |
+
}
|
5 |
+
|
6 |
+
class WPBakeryShortCode_filter_gallery_son extends WPBakeryShortCode {
|
7 |
+
|
8 |
+
protected function content( $atts, $content = null ) {
|
9 |
+
|
10 |
+
extract( shortcode_atts( array(
|
11 |
+
'controlname' => '',
|
12 |
+
'image_id' => '',
|
13 |
+
'caption_bg' => 'rgba(29,161,245,0.7)',
|
14 |
+
'caption_url' => '',
|
15 |
+
'popup' => 'disable',
|
16 |
+
'icon_width' => '',
|
17 |
+
'icon_border' => '30',
|
18 |
+
'icon_size' => '20',
|
19 |
+
'iconclr' => '#fff',
|
20 |
+
'iconbg' => 'transparent',
|
21 |
+
'icon_margin' => '7',
|
22 |
+
'css' => '',
|
23 |
+
), $atts ) );
|
24 |
+
$caption_url = vc_build_link($caption_url);
|
25 |
+
$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts );
|
26 |
+
if ($image_id != '') {
|
27 |
+
$image_url = wp_get_attachment_url( $image_id );
|
28 |
+
}
|
29 |
+
$content = wpb_js_remove_wpautop($content, true);
|
30 |
+
ob_start();
|
31 |
+
global $maw_filtergal_effect; global $maw_filtergal_linkicon; global $maw_filtergal_popupicon; global $maw_filtergal_imgheight; global $maw_filtergal_Gid;
|
32 |
+
?>
|
33 |
+
|
34 |
+
<?php $controlremovespace = str_replace(' ', '', $controlname); ?>
|
35 |
+
<div class="mix maw-fg-<?php echo $controlremovespace; ?> mix-<?php echo $maw_filtergal_Gid ?>">
|
36 |
+
<div class="maw_portfolioGallery_ihe">
|
37 |
+
<div class="<?php echo $maw_filtergal_effect ?> <?php echo $css_class; ?>" style="height: <?php echo $maw_filtergal_imgheight; ?>px;">
|
38 |
+
<div class="a-tag">
|
39 |
+
<div class="img" style="display: flex;">
|
40 |
+
<img src="<?php echo $image_url; ?>" alt="<?php echo $image_url; ?>" style="height: <?php echo $maw_filtergal_imgheight; ?>px; max-width: 100%;">
|
41 |
+
</div>
|
42 |
+
<div class="info" style="background-color: <?php echo $caption_bg ?>;">
|
43 |
+
<div style="display:table;width:100%;height:100%;">
|
44 |
+
<div style="display: table-cell !important;vertical-align: middle !important;">
|
45 |
+
<?php echo $content; ?>
|
46 |
+
<?php if ($popup == 'image') { ?>
|
47 |
+
<a href="<?php echo $image_url; ?>" class="ihe-fancybox" data-fancybox="images" style="margin-right: <?php echo $icon_margin ?>px;">
|
48 |
+
<i class="<?php echo $maw_filtergal_popupicon; ?> portfolio_icon" style="width: <?php echo $icon_width ?>px; height: <?php echo $icon_width ?>px; line-height: <?php echo $icon_width ?>px; border-radius: <?php echo $icon_border ?>px; color: <?php echo $iconclr ?>; background: <?php echo $iconbg ?>; font-size: <?php echo $icon_size; ?>px;"></i>
|
49 |
+
</a>
|
50 |
+
<?php } ?>
|
51 |
+
|
52 |
+
<?php if (isset($caption_url['url']) && $caption_url['url'] != '') { ?>
|
53 |
+
<a href="<?php echo esc_url($caption_url['url']); ?>" target="<?php echo $caption_url['target']; ?>" title="<?php echo esc_html($caption_url['title']); ?>">
|
54 |
+
<i class="<?php echo $maw_filtergal_linkicon; ?> portfolio_icon" style="width: <?php echo $icon_width ?>px; height: <?php echo $icon_width ?>px; line-height: <?php echo $icon_width ?>px; border-radius: <?php echo $icon_border ?>px; color: <?php echo $iconclr ?>; background: <?php echo $iconbg ?>; font-size: <?php echo $icon_size; ?>px;"></i>
|
55 |
+
</a>
|
56 |
+
<?php } ?>
|
57 |
+
</div>
|
58 |
+
</div>
|
59 |
+
</div>
|
60 |
+
</div>
|
61 |
+
</div>
|
62 |
+
</div>
|
63 |
+
</div>
|
64 |
+
|
65 |
+
|
66 |
+
<?php return ob_get_clean();
|
67 |
+
}
|
68 |
+
}
|
69 |
+
|
70 |
+
|
71 |
+
vc_map( array(
|
72 |
+
"base" => "filter_gallery_son",
|
73 |
+
"name" => __( 'Gallery List', 'megaaddons' ),
|
74 |
+
"as_child" => array('only' => 'filter_gallery_wrap'),
|
75 |
+
"content_element" => true,
|
76 |
+
"category" => __('Mega Addons'),
|
77 |
+
"description" => __('List Items', 'megaaddons'),
|
78 |
+
"icon" => plugin_dir_url( __FILE__ ).'../icons/filtergallery.png',
|
79 |
+
'params' => array(
|
80 |
+
array(
|
81 |
+
"type" => "textfield",
|
82 |
+
"heading" => __( 'Control Name', 'megaaddons' ),
|
83 |
+
"param_name" => "controlname",
|
84 |
+
'admin_label' => true,
|
85 |
+
"description" => __( 'Use the gallery control name from Filterable Settings. Separate multiple items with comma (e.g. tech, innovation, web design)', 'megaaddons' ),
|
86 |
+
"value" => "Gallery",
|
87 |
+
"group" => 'Gallery Items',
|
88 |
+
),
|
89 |
+
array(
|
90 |
+
"type" => "attach_image",
|
91 |
+
"heading" => __( 'Image', 'megaaddons' ),
|
92 |
+
"param_name" => "image_id",
|
93 |
+
"description" => __( 'Select the image', 'megaaddons' ),
|
94 |
+
"group" => 'Gallery Items',
|
95 |
+
),
|
96 |
+
|
97 |
+
array(
|
98 |
+
"type" => "colorpicker",
|
99 |
+
"heading" => __( 'Caption Background', 'megaaddons' ),
|
100 |
+
"param_name" => "caption_bg",
|
101 |
+
"value" => "rgba(29,161,245,0.7)",
|
102 |
+
"group" => 'Gallery Items',
|
103 |
+
),
|
104 |
+
|
105 |
+
array(
|
106 |
+
"type" => "textarea_html",
|
107 |
+
"heading" => __( 'Caption Text', 'megaaddons' ),
|
108 |
+
"param_name" => "content",
|
109 |
+
"description" => __( 'Provide Caption Here', 'megaaddons' ),
|
110 |
+
"group" => 'Gallery Items',
|
111 |
+
"value" => '<h2>Caption Text Here</h2>'
|
112 |
+
),
|
113 |
+
|
114 |
+
array(
|
115 |
+
"type" => "vc_links",
|
116 |
+
"param_name" => "caption_urls",
|
117 |
+
"class" => "ult_param_heading",
|
118 |
+
"description" => __( '<span style="Background: #ddd;padding: 10px; display: block; color: #302f2f;font-weight:600;">Link Settings</span>', 'megaaddons' ),
|
119 |
+
"group" => 'Gallery Items',
|
120 |
+
),
|
121 |
+
|
122 |
+
array(
|
123 |
+
"type" => "vc_link",
|
124 |
+
"heading" => __( 'Link To', 'megaaddons' ),
|
125 |
+
"param_name" => "caption_url",
|
126 |
+
"description" => __( 'Enter URL to link caption', 'megaaddons' ),
|
127 |
+
"group" => 'Gallery Items',
|
128 |
+
),
|
129 |
+
|
130 |
+
array(
|
131 |
+
"type" => "dropdown",
|
132 |
+
"heading" => __( 'Lightbox Button', 'megaaddons' ),
|
133 |
+
"param_name" => "popup",
|
134 |
+
"group" => 'Gallery Items',
|
135 |
+
"value" => array(
|
136 |
+
'Disable' => 'disable',
|
137 |
+
'LightBox' => 'image',
|
138 |
+
'Video Gallery [Pro Option]' => '',
|
139 |
+
)
|
140 |
+
),
|
141 |
+
|
142 |
+
array(
|
143 |
+
"type" => "vc_links",
|
144 |
+
"param_name" => "caption_urls",
|
145 |
+
"class" => "ult_param_heading",
|
146 |
+
"description" => __( '<span style="Background: #ddd;padding: 10px; display: block; color: #302f2f;font-weight:600;">Icon Settings</span>', 'megaaddons' ),
|
147 |
+
"group" => 'Gallery Items',
|
148 |
+
),
|
149 |
+
|
150 |
+
|
151 |
+
array(
|
152 |
+
"type" => "vc_number",
|
153 |
+
"heading" => __( 'Width/Height', 'megaaddons' ),
|
154 |
+
"edit_field_class" => "vc_col-sm-4 wdo_items_to_show wdo_margin_bottom",
|
155 |
+
"param_name" => "icon_width",
|
156 |
+
"value" => "50",
|
157 |
+
"suffix" => "px",
|
158 |
+
"group" => 'Gallery Items',
|
159 |
+
),
|
160 |
+
|
161 |
+
array(
|
162 |
+
"type" => "vc_number",
|
163 |
+
"heading" => __( 'Border Radius', 'megaaddons' ),
|
164 |
+
"edit_field_class" => "vc_col-sm-4 wdo_items_to_show wdo_margin_bottom",
|
165 |
+
"param_name" => "icon_border",
|
166 |
+
"value" => "30",
|
167 |
+
"suffix" => "px",
|
168 |
+
"group" => 'Gallery Items',
|
169 |
+
),
|
170 |
+
|
171 |
+
array(
|
172 |
+
"type" => "vc_number",
|
173 |
+
"heading" => __( 'Icon [Font Size]', 'megaaddons' ),
|
174 |
+
"edit_field_class" => "vc_col-sm-4 wdo_items_to_show wdo_margin_bottom",
|
175 |
+
"param_name" => "icon_size",
|
176 |
+
"value" => "20",
|
177 |
+
"suffix" => "px",
|
178 |
+
"group" => 'Gallery Items',
|
179 |
+
),
|
180 |
+
|
181 |
+
array(
|
182 |
+
"type" => "colorpicker",
|
183 |
+
"heading" => __( 'Icon Color', 'megaaddons' ),
|
184 |
+
"edit_field_class" => "vc_col-sm-4 wdo_items_to_show wdo_margin_bottom",
|
185 |
+
"param_name" => "iconclr",
|
186 |
+
"value" => "#fff",
|
187 |
+
"group" => 'Gallery Items',
|
188 |
+
),
|
189 |
+
|
190 |
+
array(
|
191 |
+
"type" => "colorpicker",
|
192 |
+
"heading" => __( 'Icon Background', 'megaaddons' ),
|
193 |
+
"param_name" => "iconbg",
|
194 |
+
"edit_field_class" => "vc_col-sm-4 wdo_items_to_show wdo_margin_bottom",
|
195 |
+
"value" => "#ff622a",
|
196 |
+
"group" => 'Gallery Items',
|
197 |
+
),
|
198 |
+
|
199 |
+
array(
|
200 |
+
"type" => "vc_number",
|
201 |
+
"heading" => __( 'Icon Margin', 'megaaddons' ),
|
202 |
+
"edit_field_class" => "vc_col-sm-4 wdo_items_to_show wdo_margin_bottom",
|
203 |
+
"param_name" => "icon_margin",
|
204 |
+
"value" => "7",
|
205 |
+
"suffix" => "px",
|
206 |
+
"group" => 'Gallery Items',
|
207 |
+
),
|
208 |
+
|
209 |
+
array(
|
210 |
+
"type" => "css_editor",
|
211 |
+
"heading" => __( 'Border Settings', 'infobox' ),
|
212 |
+
"param_name" => "css",
|
213 |
+
"group" => 'Border Settings',
|
214 |
+
),
|
215 |
+
),
|
216 |
+
) );
|
render/image_swap.php
CHANGED
@@ -9,9 +9,9 @@ class WPBakeryShortCode_image_swap extends WPBakeryShortCode {
|
|
9 |
|
10 |
extract( shortcode_atts( array(
|
11 |
'image_id' => '',
|
12 |
-
'alt'
|
13 |
-
'alt2' => '',
|
14 |
'image_id2' => '',
|
|
|
15 |
'caption_url' => '',
|
16 |
'caption_url_target' => '',
|
17 |
'border_width' => '10px',
|
@@ -28,8 +28,8 @@ class WPBakeryShortCode_image_swap extends WPBakeryShortCode {
|
|
28 |
}
|
29 |
$content = wpb_js_remove_wpautop($content, true);
|
30 |
ob_start(); ?>
|
31 |
-
<div class="ih-item <?php echo $hover_effect; ?>"
|
32 |
-
style="border: <?php echo $border_width; ?>px <?php echo $border_style; ?> <?php echo $border_color; ?>;">
|
33 |
<?php if (isset($caption_url['url']) && $caption_url['url'] != '') { ?>
|
34 |
<a href="<?php echo esc_url($caption_url['url']); ?>" target="<?php echo $caption_url['target']; ?>" title="<?php echo esc_html($caption_url['title']); ?>">
|
35 |
<?php } ?>
|
9 |
|
10 |
extract( shortcode_atts( array(
|
11 |
'image_id' => '',
|
12 |
+
'alt' => '',
|
|
|
13 |
'image_id2' => '',
|
14 |
+
'alt2' => '',
|
15 |
'caption_url' => '',
|
16 |
'caption_url_target' => '',
|
17 |
'border_width' => '10px',
|
28 |
}
|
29 |
$content = wpb_js_remove_wpautop($content, true);
|
30 |
ob_start(); ?>
|
31 |
+
<div class="maw_image_swap ih-item <?php echo $hover_effect; ?>"
|
32 |
+
style="border: <?php echo $border_width; ?>px <?php echo $border_style; ?> <?php echo $border_color; ?>; box-shadow: none;">
|
33 |
<?php if (isset($caption_url['url']) && $caption_url['url'] != '') { ?>
|
34 |
<a href="<?php echo esc_url($caption_url['url']); ?>" target="<?php echo $caption_url['target']; ?>" title="<?php echo esc_html($caption_url['title']); ?>">
|
35 |
<?php } ?>
|
render/info_list_father.php
CHANGED
@@ -8,8 +8,15 @@ class WPBakeryShortCode_info_list_father extends WPBakeryShortCodesContainer {
|
|
8 |
protected function content( $atts, $content = null ) {
|
9 |
|
10 |
extract( shortcode_atts( array(
|
|
|
|
|
|
|
|
|
|
|
11 |
'css' => '',
|
12 |
), $atts ) );
|
|
|
|
|
13 |
$content = wpb_js_remove_wpautop($content, true);
|
14 |
$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts );
|
15 |
wp_enqueue_style( 'info-list-css', plugins_url( '../css/infolist.css' , __FILE__ ));
|
@@ -34,10 +41,62 @@ vc_map( array(
|
|
34 |
"icon" => plugin_dir_url( __FILE__ ).'../icons/infolist.png',
|
35 |
'params' => array(
|
36 |
array(
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
) );
|
8 |
protected function content( $atts, $content = null ) {
|
9 |
|
10 |
extract( shortcode_atts( array(
|
11 |
+
'theme' => 'left',
|
12 |
+
'connector_h' => '30',
|
13 |
+
'listwidth' => '1',
|
14 |
+
'liststyle' => 'solid',
|
15 |
+
'listclr' => '#000',
|
16 |
'css' => '',
|
17 |
), $atts ) );
|
18 |
+
$GLOBALS['maw_infolist_theme'] = $theme; $GLOBALS['maw_infolist_connector_h'] = $connector_h; $GLOBALS['maw_infolist_listwidth'] = $listwidth;
|
19 |
+
$GLOBALS['maw_infolist_liststyle'] = $liststyle; $GLOBALS['maw_infolist_listclr'] = $listclr;
|
20 |
$content = wpb_js_remove_wpautop($content, true);
|
21 |
$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts );
|
22 |
wp_enqueue_style( 'info-list-css', plugins_url( '../css/infolist.css' , __FILE__ ));
|
41 |
"icon" => plugin_dir_url( __FILE__ ).'../icons/infolist.png',
|
42 |
'params' => array(
|
43 |
array(
|
44 |
+
"type" => "dropdown",
|
45 |
+
"heading" => __( 'Style', 'infolist' ),
|
46 |
+
"param_name" => "theme",
|
47 |
+
"description" => __( 'choose style <a href="http://addons.topdigitaltrends.net/info-list/">See demo</a>', 'infolist' ),
|
48 |
+
"group" => 'Settings',
|
49 |
+
"value" => array(
|
50 |
+
"Left Align" => "left",
|
51 |
+
"Right Align" => "right",
|
52 |
+
)
|
53 |
+
),
|
54 |
+
|
55 |
+
array(
|
56 |
+
"type" => "vc_number",
|
57 |
+
"heading" => __( 'Connector Line Height', 'infolist' ),
|
58 |
+
"param_name" => "connector_h",
|
59 |
+
"description" => __( 'line between to info list. set in pixel default 30', 'infolist' ),
|
60 |
+
"value" => "30",
|
61 |
+
"suffix" => 'px',
|
62 |
+
"group" => 'Settings',
|
63 |
+
),
|
64 |
+
array(
|
65 |
+
"type" => "vc_number",
|
66 |
+
"heading" => __( 'Connector Width', 'infolist' ),
|
67 |
+
"param_name" => "listwidth",
|
68 |
+
"description" => __( 'set connector line width for info list in pixel eg, 1', 'infolist' ),
|
69 |
+
"value" => "1",
|
70 |
+
"suffix" => 'px',
|
71 |
+
"group" => 'Settings',
|
72 |
+
),
|
73 |
+
array(
|
74 |
+
"type" => "dropdown",
|
75 |
+
"heading" => __( 'Line Style', 'infolist' ),
|
76 |
+
"param_name" => "liststyle",
|
77 |
+
"description" => __( 'set border style for info list', 'infolist' ),
|
78 |
+
"group" => 'Settings',
|
79 |
+
"value" => array(
|
80 |
+
"Solid" => "solid",
|
81 |
+
"Dotted" => "dotted",
|
82 |
+
"Dashed" => "dashed",
|
83 |
+
"Inset" => "inset",
|
84 |
+
)
|
85 |
+
),
|
86 |
+
array(
|
87 |
+
"type" => "colorpicker",
|
88 |
+
"heading" => __( 'Line color', 'infolist' ),
|
89 |
+
"param_name" => "listclr",
|
90 |
+
"description" => __('set connector line color for info list', 'infolist'),
|
91 |
+
"group" => 'Settings',
|
92 |
+
),
|
93 |
+
|
94 |
+
|
95 |
+
array(
|
96 |
+
"type" => "css_editor",
|
97 |
+
"heading" => __( 'Design Options', 'infolist' ),
|
98 |
+
"param_name" => "css",
|
99 |
+
"group" => 'Design Options',
|
100 |
+
),
|
101 |
+
)
|
102 |
) );
|
render/info_list_son.php
CHANGED
@@ -8,7 +8,6 @@ class WPBakeryShortCode_info_list_son extends WPBakeryShortCode {
|
|
8 |
protected function content( $atts, $content = null ) {
|
9 |
|
10 |
extract( shortcode_atts( array(
|
11 |
-
'theme' => 'left',
|
12 |
'style' => 'image',
|
13 |
'image_id' => '',
|
14 |
'alt' => '',
|
@@ -25,24 +24,24 @@ class WPBakeryShortCode_info_list_son extends WPBakeryShortCode {
|
|
25 |
'borderclr' => '',
|
26 |
'title' => '',
|
27 |
'titlesize' => '18',
|
|
|
28 |
'titleclr' => '#000',
|
29 |
'title_weight' => 'default',
|
30 |
'desc' => '',
|
31 |
'descsize' => '15',
|
32 |
-
'connector_h' => '30',
|
33 |
'descclr' => '#000',
|
34 |
-
'listwidth' => '1',
|
35 |
-
'liststyle' => 'solid',
|
36 |
-
'listclr' => '#000',
|
37 |
), $atts ) );
|
38 |
if ($image_id != '') {
|
39 |
$image_url = wp_get_attachment_url( $image_id );
|
40 |
}
|
41 |
$content = wpb_js_remove_wpautop($content, true);
|
42 |
-
ob_start();
|
|
|
|
|
|
|
43 |
<div class="vc_info_list_outer">
|
44 |
-
<?php if ($
|
45 |
-
<li class="vc_info_list" style="padding-bottom: <?php echo $
|
46 |
<div class="media">
|
47 |
<div class="media-left info-list-img" style="margin-left: -<?php echo $width/2+$borderwidth; ?>px; padding-right: 20px; float: left;">
|
48 |
<?php if ($style == 'image') { ?>
|
@@ -61,7 +60,7 @@ class WPBakeryShortCode_info_list_son extends WPBakeryShortCode {
|
|
61 |
<?php } ?>
|
62 |
</div>
|
63 |
<div class="media-body">
|
64 |
-
<h2 style="font-size: <?php echo $titlesize; ?>px; color: <?php echo $titleclr; ?>; font-style: <?php echo $title_weight; ?>;">
|
65 |
<?php echo $title; ?>
|
66 |
</h2>
|
67 |
<?php echo $content; ?>
|
@@ -70,11 +69,11 @@ class WPBakeryShortCode_info_list_son extends WPBakeryShortCode {
|
|
70 |
</li>
|
71 |
<?php } ?>
|
72 |
|
73 |
-
<?php if ($
|
74 |
-
<li class="vc_info_list" style="padding-bottom: <?php echo $
|
75 |
<div class="media" style="margin-right: -<?php echo $width/2+$borderwidth; ?>px;">
|
76 |
<div class="media-body text-right">
|
77 |
-
<h2 style="font-size: <?php echo $titlesize; ?>px; color: <?php echo $titleclr; ?>; font-style: <?php echo $title_weight; ?>;">
|
78 |
<?php echo $title; ?>
|
79 |
</h2>
|
80 |
<?php echo $content; ?>
|
@@ -114,17 +113,6 @@ vc_map( array(
|
|
114 |
"description" => __('Info list for information', ''),
|
115 |
"icon" => plugin_dir_url( __FILE__ ).'../icons/infolist.png',
|
116 |
'params' => array(
|
117 |
-
array(
|
118 |
-
"type" => "dropdown",
|
119 |
-
"heading" => __( 'Style', 'infolist' ),
|
120 |
-
"param_name" => "theme",
|
121 |
-
"description" => __( 'choose style <a href="http://addons.topdigitaltrends.net/info-list/">See demo</a>', 'infolist' ),
|
122 |
-
"group" => 'Icon/Image',
|
123 |
-
"value" => array(
|
124 |
-
"Left Align" => "left",
|
125 |
-
"Right Align" => "right",
|
126 |
-
)
|
127 |
-
),
|
128 |
array(
|
129 |
"type" => "dropdown",
|
130 |
"heading" => __( 'Image/Icon', 'infolist' ),
|
@@ -218,6 +206,15 @@ vc_map( array(
|
|
218 |
"group" => 'Icon/Image',
|
219 |
),
|
220 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
221 |
// Border
|
222 |
|
223 |
array(
|
@@ -266,14 +263,6 @@ vc_map( array(
|
|
266 |
"group" => 'Icon/Image',
|
267 |
),
|
268 |
|
269 |
-
array(
|
270 |
-
"type" => "vc_links",
|
271 |
-
"param_name" => "caption_url",
|
272 |
-
"class" => "ult_param_heading",
|
273 |
-
"description" => __( '<span style="Background: #ddd;padding: 10px; display: block; color: #0073aa;font-weight:600;"><a href="https://1.envato.market/02aNL" target="_blank" style="text-decoration: none;">Get the Pro version for more stunning elements and customization options.</a></span>', 'ihover' ),
|
274 |
-
"group" => 'Icon/Image',
|
275 |
-
),
|
276 |
-
|
277 |
// Text File
|
278 |
|
279 |
array(
|
@@ -292,6 +281,12 @@ vc_map( array(
|
|
292 |
"suffix" => 'px',
|
293 |
"group" => 'Content',
|
294 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
295 |
array(
|
296 |
"type" => "colorpicker",
|
297 |
"heading" => __( 'Title Color', 'infolist' ),
|
@@ -318,46 +313,5 @@ vc_map( array(
|
|
318 |
"param_name" => "content",
|
319 |
"group" => 'Content',
|
320 |
),
|
321 |
-
|
322 |
-
// Settings
|
323 |
-
|
324 |
-
array(
|
325 |
-
"type" => "vc_number",
|
326 |
-
"heading" => __( 'Connector Line Height', 'infolist' ),
|
327 |
-
"param_name" => "connector_h",
|
328 |
-
"description" => __( 'line between to info list. set in pixel default 30', 'infolist' ),
|
329 |
-
"value" => "30",
|
330 |
-
"suffix" => 'px',
|
331 |
-
"group" => 'Settings',
|
332 |
-
),
|
333 |
-
array(
|
334 |
-
"type" => "vc_number",
|
335 |
-
"heading" => __( 'Connector Width', 'infolist' ),
|
336 |
-
"param_name" => "listwidth",
|
337 |
-
"description" => __( 'set connector line width for info list in pixel eg, 1', 'infolist' ),
|
338 |
-
"value" => "1",
|
339 |
-
"suffix" => 'px',
|
340 |
-
"group" => 'Settings',
|
341 |
-
),
|
342 |
-
array(
|
343 |
-
"type" => "dropdown",
|
344 |
-
"heading" => __( 'Line Style', 'infolist' ),
|
345 |
-
"param_name" => "liststyle",
|
346 |
-
"description" => __( 'set border style for info list', 'infolist' ),
|
347 |
-
"group" => 'Settings',
|
348 |
-
"value" => array(
|
349 |
-
"Solid" => "solid",
|
350 |
-
"Dotted" => "dotted",
|
351 |
-
"Dashed" => "dashed",
|
352 |
-
"Inset" => "inset",
|
353 |
-
)
|
354 |
-
),
|
355 |
-
array(
|
356 |
-
"type" => "colorpicker",
|
357 |
-
"heading" => __( 'Line color', 'infolist' ),
|
358 |
-
"param_name" => "listclr",
|
359 |
-
"description" => __('set connector line color for info list', 'infolist'),
|
360 |
-
"group" => 'Settings',
|
361 |
-
),
|
362 |
),
|
363 |
) );
|
8 |
protected function content( $atts, $content = null ) {
|
9 |
|
10 |
extract( shortcode_atts( array(
|
|
|
11 |
'style' => 'image',
|
12 |
'image_id' => '',
|
13 |
'alt' => '',
|
24 |
'borderclr' => '',
|
25 |
'title' => '',
|
26 |
'titlesize' => '18',
|
27 |
+
'lineheight' => '',
|
28 |
'titleclr' => '#000',
|
29 |
'title_weight' => 'default',
|
30 |
'desc' => '',
|
31 |
'descsize' => '15',
|
|
|
32 |
'descclr' => '#000',
|
|
|
|
|
|
|
33 |
), $atts ) );
|
34 |
if ($image_id != '') {
|
35 |
$image_url = wp_get_attachment_url( $image_id );
|
36 |
}
|
37 |
$content = wpb_js_remove_wpautop($content, true);
|
38 |
+
ob_start();
|
39 |
+
|
40 |
+
global $maw_infolist_theme; global $maw_infolist_connector_h; global $maw_infolist_listwidth; global $maw_infolist_liststyle; global $maw_infolist_listclr;
|
41 |
+
?>
|
42 |
<div class="vc_info_list_outer">
|
43 |
+
<?php if ($maw_infolist_theme == 'left') { ?>
|
44 |
+
<li class="vc_info_list" style="padding-bottom: <?php echo $maw_infolist_connector_h; ?>px; border-left: <?php echo $maw_infolist_listwidth; ?>px <?php echo $maw_infolist_liststyle; ?> <?php echo $maw_infolist_listclr; ?>; display: table;margin-left: <?php echo $width/2+$borderwidth; ?>px; float: none; margin-bottom: 2px;">
|
45 |
<div class="media">
|
46 |
<div class="media-left info-list-img" style="margin-left: -<?php echo $width/2+$borderwidth; ?>px; padding-right: 20px; float: left;">
|
47 |
<?php if ($style == 'image') { ?>
|
60 |
<?php } ?>
|
61 |
</div>
|
62 |
<div class="media-body">
|
63 |
+
<h2 style="font-size: <?php echo $titlesize; ?>px; color: <?php echo $titleclr; ?>; font-style: <?php echo $title_weight; ?>; line-height: <?php echo $lineheight; ?>;">
|
64 |
<?php echo $title; ?>
|
65 |
</h2>
|
66 |
<?php echo $content; ?>
|
69 |
</li>
|
70 |
<?php } ?>
|
71 |
|
72 |
+
<?php if ($maw_infolist_theme == 'right') { ?>
|
73 |
+
<li class="vc_info_list" style="padding-bottom: <?php echo $maw_infolist_connector_h; ?>px; border-right: <?php echo $maw_infolist_listwidth; ?>px <?php echo $maw_infolist_liststyle; ?> <?php echo $maw_infolist_listclr; ?>; display: table;margin-right: <?php echo $width/2+$borderwidth; ?>px; float: none; margin-bottom: 2px;">
|
74 |
<div class="media" style="margin-right: -<?php echo $width/2+$borderwidth; ?>px;">
|
75 |
<div class="media-body text-right">
|
76 |
+
<h2 style="font-size: <?php echo $titlesize; ?>px; color: <?php echo $titleclr; ?>; font-style: <?php echo $title_weight; ?>; line-height: <?php echo $lineheight; ?>;">
|
77 |
<?php echo $title; ?>
|
78 |
</h2>
|
79 |
<?php echo $content; ?>
|
113 |
"description" => __('Info list for information', ''),
|
114 |
"icon" => plugin_dir_url( __FILE__ ).'../icons/infolist.png',
|
115 |
'params' => array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
array(
|
117 |
"type" => "dropdown",
|
118 |
"heading" => __( 'Image/Icon', 'infolist' ),
|
206 |
"group" => 'Icon/Image',
|
207 |
),
|
208 |
|
209 |
+
array(
|
210 |
+
"type" => "vc_links",
|
211 |
+
"param_name" => "caption_url",
|
212 |
+
"class" => "ult_param_heading",
|
213 |
+
"description" => __( '<span style="Background: #ddd;padding: 10px; display: block; color: #0073aa;font-weight:600;"><a href="https://1.envato.market/02aNL" target="_blank" style="text-decoration: none;">Get the Pro version for more stunning elements and customization options.</a></span>', 'ihover' ),
|
214 |
+
"group" => 'Icon/Image',
|
215 |
+
),
|
216 |
+
|
217 |
+
|
218 |
// Border
|
219 |
|
220 |
array(
|
263 |
"group" => 'Icon/Image',
|
264 |
),
|
265 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
266 |
// Text File
|
267 |
|
268 |
array(
|
281 |
"suffix" => 'px',
|
282 |
"group" => 'Content',
|
283 |
),
|
284 |
+
array(
|
285 |
+
"type" => "textfield",
|
286 |
+
"heading" => __( 'Line Height', 'infolist' ),
|
287 |
+
"param_name" => "lineheight",
|
288 |
+
"group" => 'Content',
|
289 |
+
),
|
290 |
array(
|
291 |
"type" => "colorpicker",
|
292 |
"heading" => __( 'Title Color', 'infolist' ),
|
313 |
"param_name" => "content",
|
314 |
"group" => 'Content',
|
315 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
316 |
),
|
317 |
) );
|
render/infobox.php
CHANGED
@@ -112,7 +112,7 @@ vc_map( array(
|
|
112 |
"group" => 'General',
|
113 |
"value" => array(
|
114 |
'Vertical' => 'mega_info_box',
|
115 |
-
'
|
116 |
)
|
117 |
),
|
118 |
array(
|
112 |
"group" => 'General',
|
113 |
"value" => array(
|
114 |
'Vertical' => 'mega_info_box',
|
115 |
+
'Horizontal' => 'mega_info_box_2',
|
116 |
)
|
117 |
),
|
118 |
array(
|
render/interactivebanner.php
CHANGED
@@ -10,7 +10,8 @@ class WPBakeryShortCode_interective_banner extends WPBakeryShortCode {
|
|
10 |
extract( shortcode_atts( array(
|
11 |
'effects' => 'effect-lily',
|
12 |
'image_id' => '',
|
13 |
-
'alt'
|
|
|
14 |
'height' => '',
|
15 |
'url' => '',
|
16 |
'title' => '',
|
@@ -28,8 +29,8 @@ class WPBakeryShortCode_interective_banner extends WPBakeryShortCode {
|
|
28 |
'icon_url3' => '',
|
29 |
'titlesizembl' => '',
|
30 |
'descsizmbl' => '',
|
31 |
-
'imgsizmbl'
|
32 |
-
'class'
|
33 |
), $atts ) );
|
34 |
$url = vc_build_link($url);
|
35 |
if ($image_id != '') {
|
@@ -41,8 +42,8 @@ class WPBakeryShortCode_interective_banner extends WPBakeryShortCode {
|
|
41 |
ob_start(); ?>
|
42 |
<!-- HTML DESIGN HERE -->
|
43 |
<div class="grid vc-interactive-banner <?php echo $class; ?>" id="vc-interactive-banner-<?php echo $some_id; ?>">
|
44 |
-
<figure class="<?php echo $effects; ?>" style="background: <?php echo $bgclr; ?>; width: 100%;">
|
45 |
-
<img src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" style="height: <?php echo $height; ?>px; width: 100%;" />
|
46 |
<figcaption>
|
47 |
<div>
|
48 |
<h2 style="font-size: <?php echo $titlesize; ?>px; color: <?php echo $clr; ?>; font-weight: 500;">
|
@@ -138,6 +139,14 @@ vc_map( array(
|
|
138 |
"description" => __( 'It will be used as alt attribute of img tag', 'info-banner-vc' ),
|
139 |
"group" => 'Image',
|
140 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
array(
|
142 |
"type" => "vc_number",
|
143 |
"heading" => __( 'Image Height', 'int_banner' ),
|
10 |
extract( shortcode_atts( array(
|
11 |
'effects' => 'effect-lily',
|
12 |
'image_id' => '',
|
13 |
+
'alt' => '',
|
14 |
+
'img_width' => '',
|
15 |
'height' => '',
|
16 |
'url' => '',
|
17 |
'title' => '',
|
29 |
'icon_url3' => '',
|
30 |
'titlesizembl' => '',
|
31 |
'descsizmbl' => '',
|
32 |
+
'imgsizmbl' => '',
|
33 |
+
'class' => '',
|
34 |
), $atts ) );
|
35 |
$url = vc_build_link($url);
|
36 |
if ($image_id != '') {
|
42 |
ob_start(); ?>
|
43 |
<!-- HTML DESIGN HERE -->
|
44 |
<div class="grid vc-interactive-banner <?php echo $class; ?>" id="vc-interactive-banner-<?php echo $some_id; ?>">
|
45 |
+
<figure class="<?php echo $effects; ?>" style="background: <?php echo $bgclr; ?>; width: 100%; max-width: <?php echo $img_width; ?>px; width: 100%;">
|
46 |
+
<img src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" style="height: <?php echo $height; ?>px; max-width: <?php echo $img_width; ?>px; width: 100%;" />
|
47 |
<figcaption>
|
48 |
<div>
|
49 |
<h2 style="font-size: <?php echo $titlesize; ?>px; color: <?php echo $clr; ?>; font-weight: 500;">
|
139 |
"description" => __( 'It will be used as alt attribute of img tag', 'info-banner-vc' ),
|
140 |
"group" => 'Image',
|
141 |
),
|
142 |
+
array(
|
143 |
+
"type" => "vc_number",
|
144 |
+
"heading" => __( 'Image Width', 'int_banner' ),
|
145 |
+
"param_name" => "img_width",
|
146 |
+
"description" => __( 'set custom width in pixel or leave blank', 'int_banner' ),
|
147 |
+
"suffix" => 'px',
|
148 |
+
"group" => "Image",
|
149 |
+
),
|
150 |
array(
|
151 |
"type" => "vc_number",
|
152 |
"heading" => __( 'Image Height', 'int_banner' ),
|
render/modalPopup.php
CHANGED
@@ -32,6 +32,8 @@ class WPBakeryShortCode_modal_popup_box extends WPBakeryShortCode {
|
|
32 |
'titleclr' => '',
|
33 |
'titlebg' => '',
|
34 |
'titleborder' => '',
|
|
|
|
|
35 |
), $atts ) );
|
36 |
$some_id = rand(5, 500);
|
37 |
wp_enqueue_style( 'animate-css', plugins_url( '../css/animate.css' , __FILE__ ));
|
@@ -51,7 +53,7 @@ class WPBakeryShortCode_modal_popup_box extends WPBakeryShortCode {
|
|
51 |
<h2 style="border-bottom: 1px solid <?php echo $titleborder; ?>; text-align: <?php echo $titlealign; ?>; font-size: <?php echo $titlesize; ?>px; line-height: <?php echo $titleline; ?>; color: <?php echo $titleclr; ?>; background: <?php echo $titlebg; ?>; margin: 0px; padding: 0px 20px;">
|
52 |
<?php echo $titletext; ?>
|
53 |
</h2>
|
54 |
-
<span style="padding:
|
55 |
<?php echo $content; ?>
|
56 |
</span>
|
57 |
</div>
|
@@ -231,16 +233,16 @@ vc_map( array(
|
|
231 |
),
|
232 |
array(
|
233 |
"type" => "colorpicker",
|
234 |
-
"heading" => __( '
|
235 |
-
"param_name" => "
|
236 |
-
"description" => __( 'Button
|
237 |
"group" => 'Button Setting',
|
238 |
),
|
239 |
array(
|
240 |
"type" => "colorpicker",
|
241 |
-
"heading" => __( '
|
242 |
-
"param_name" => "
|
243 |
-
"description" => __( 'Button
|
244 |
"group" => 'Button Setting',
|
245 |
),
|
246 |
array(
|
@@ -314,9 +316,28 @@ vc_map( array(
|
|
314 |
"description" => __( 'Content background color', 'modal_popup' ),
|
315 |
"group" => 'Popup Content',
|
316 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
317 |
array(
|
318 |
"type" => "textarea_html",
|
319 |
-
"heading" => __( 'You can also use shortcode', '
|
320 |
"param_name" => "content",
|
321 |
"group" => 'Popup Content',
|
322 |
),
|
32 |
'titleclr' => '',
|
33 |
'titlebg' => '',
|
34 |
'titleborder' => '',
|
35 |
+
'contentpad' => '15',
|
36 |
+
'contentpad2' => '15',
|
37 |
), $atts ) );
|
38 |
$some_id = rand(5, 500);
|
39 |
wp_enqueue_style( 'animate-css', plugins_url( '../css/animate.css' , __FILE__ ));
|
53 |
<h2 style="border-bottom: 1px solid <?php echo $titleborder; ?>; text-align: <?php echo $titlealign; ?>; font-size: <?php echo $titlesize; ?>px; line-height: <?php echo $titleline; ?>; color: <?php echo $titleclr; ?>; background: <?php echo $titlebg; ?>; margin: 0px; padding: 0px 20px;">
|
54 |
<?php echo $titletext; ?>
|
55 |
</h2>
|
56 |
+
<span style="padding: <?php echo $contentpad ?>px <?php echo $contentpad2; ?>px; display: block;">
|
57 |
<?php echo $content; ?>
|
58 |
</span>
|
59 |
</div>
|
233 |
),
|
234 |
array(
|
235 |
"type" => "colorpicker",
|
236 |
+
"heading" => __( 'Background Color', 'modal_popup' ),
|
237 |
+
"param_name" => "btnbg",
|
238 |
+
"description" => __( 'Button background color', 'modal_popup' ),
|
239 |
"group" => 'Button Setting',
|
240 |
),
|
241 |
array(
|
242 |
"type" => "colorpicker",
|
243 |
+
"heading" => __( 'Hover Color', 'modal_popup' ),
|
244 |
+
"param_name" => "hoverclr",
|
245 |
+
"description" => __( 'Button text color onhover', 'modal_popup' ),
|
246 |
"group" => 'Button Setting',
|
247 |
),
|
248 |
array(
|
316 |
"description" => __( 'Content background color', 'modal_popup' ),
|
317 |
"group" => 'Popup Content',
|
318 |
),
|
319 |
+
array(
|
320 |
+
"type" => "vc_number",
|
321 |
+
"heading" => __( 'Padding [Top Bottom]', 'megaaddons' ),
|
322 |
+
"edit_field_class" => "vc_col-sm-4 wdo_items_to_show wdo_margin_bottom",
|
323 |
+
"param_name" => "contentpad",
|
324 |
+
"value" => "15",
|
325 |
+
"suffix" => "px",
|
326 |
+
"group" => 'Popup Content',
|
327 |
+
),
|
328 |
+
|
329 |
+
array(
|
330 |
+
"type" => "vc_number",
|
331 |
+
"heading" => __( 'Padding [Right Left]', 'megaaddons' ),
|
332 |
+
"edit_field_class" => "vc_col-sm-4 wdo_items_to_show wdo_margin_bottom",
|
333 |
+
"param_name" => "contentpad2",
|
334 |
+
"value" => "15",
|
335 |
+
"suffix" => "px",
|
336 |
+
"group" => 'Popup Content',
|
337 |
+
),
|
338 |
array(
|
339 |
"type" => "textarea_html",
|
340 |
+
"heading" => __( 'You can also use shortcode', 'megaaddons' ),
|
341 |
"param_name" => "content",
|
342 |
"group" => 'Popup Content',
|
343 |
),
|
render/texttyper.php
CHANGED
@@ -38,7 +38,7 @@ class WPBakeryShortCode_text_type_vc extends WPBakeryShortCode {
|
|
38 |
data-backspeed="<?php echo $backspeed; ?>"
|
39 |
data-loop="<?php echo $loop; ?>"
|
40 |
style="height: 50px; text-align: <?php echo $align; ?>;">
|
41 |
-
<span class="mega-prefix" style="font-size: <?php echo $size; ?>px; color: <?php echo $clr; ?>;"
|
42 |
<div class="typed-strings">
|
43 |
<?php echo $content; ?>
|
44 |
</div>
|
@@ -46,7 +46,7 @@ class WPBakeryShortCode_text_type_vc extends WPBakeryShortCode {
|
|
46 |
<?php if (!empty($checked)) { ?>
|
47 |
<span class="blink_me" style="font-size: <?php echo $size; ?>px; color: <?php echo $verticalclr; ?>;">|</span>
|
48 |
<?php } ?>
|
49 |
-
<span class="mega-suffix" style="font-size: <?php echo $size; ?>px;color: <?php echo $clr; ?>;"
|
50 |
</div>
|
51 |
|
52 |
<style>
|
38 |
data-backspeed="<?php echo $backspeed; ?>"
|
39 |
data-loop="<?php echo $loop; ?>"
|
40 |
style="height: 50px; text-align: <?php echo $align; ?>;">
|
41 |
+
<span class="mega-prefix" style="font-size: <?php echo $size; ?>px; color: <?php echo $clr; ?>;"> <?php echo $before; ?></span>
|
42 |
<div class="typed-strings">
|
43 |
<?php echo $content; ?>
|
44 |
</div>
|
46 |
<?php if (!empty($checked)) { ?>
|
47 |
<span class="blink_me" style="font-size: <?php echo $size; ?>px; color: <?php echo $verticalclr; ?>;">|</span>
|
48 |
<?php } ?>
|
49 |
+
<span class="mega-suffix" style="font-size: <?php echo $size; ?>px;color: <?php echo $clr; ?>;"> <?php echo $after; ?></span>
|
50 |
</div>
|
51 |
|
52 |
<style>
|
render/timeline_son.php
CHANGED
@@ -13,11 +13,19 @@ class WPBakeryShortCode_mvc_timeline_son extends WPBakeryShortCode {
|
|
13 |
'size' => '',
|
14 |
'centerstyle' => 'fonticon',
|
15 |
'bgclr' => '',
|
16 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
'icon' => '',
|
18 |
'icon_size' => '',
|
19 |
'css' => '',
|
20 |
), $atts ) );
|
|
|
21 |
$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts );
|
22 |
$content = wpb_js_remove_wpautop($content, true);
|
23 |
ob_start(); ?>
|
@@ -35,11 +43,19 @@ class WPBakeryShortCode_mvc_timeline_son extends WPBakeryShortCode {
|
|
35 |
<?php } ?>
|
36 |
|
37 |
<div class="cd-timeline-content <?php echo $css_class; ?>">
|
38 |
-
<span class="timeline-arrow" style="border-right-color: <?php echo $
|
39 |
-
<span class="timeline-arrow" style="border-left-color: <?php echo $
|
40 |
-
<span class="timeline-arrow" style="border-right: 7px solid <?php echo $
|
41 |
-
|
42 |
-
<?php echo $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
<span class="cd-date" style="color: <?php echo $clr; ?>; font-size: <?php echo $size; ?>px;">
|
44 |
<?php echo $date ?>
|
45 |
</span>
|
@@ -93,23 +109,6 @@ vc_map( array(
|
|
93 |
"group" => 'General',
|
94 |
),
|
95 |
|
96 |
-
|
97 |
-
array(
|
98 |
-
"type" => "colorpicker",
|
99 |
-
"heading" => __( 'Arrow Color', 'timeline' ),
|
100 |
-
"param_name" => "arrowclr",
|
101 |
-
"description" => __( 'set timeline arrow color', 'timeline' ),
|
102 |
-
"group" => 'Content',
|
103 |
-
),
|
104 |
-
|
105 |
-
array(
|
106 |
-
"type" => "textarea_html",
|
107 |
-
"heading" => __( 'Content Details', 'timeline' ),
|
108 |
-
"param_name" => "content",
|
109 |
-
"description" => __( 'Add heading, details, pictures or video url', 'timeline' ),
|
110 |
-
"group" => 'Content',
|
111 |
-
),
|
112 |
-
|
113 |
array(
|
114 |
"type" => "dropdown",
|
115 |
"heading" => __( 'Select style', 'timeline' ),
|
@@ -148,6 +147,86 @@ vc_map( array(
|
|
148 |
"suffix" => 'px',
|
149 |
"group" => 'Timeline Center',
|
150 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
|
152 |
array(
|
153 |
"type" => "css_editor",
|
13 |
'size' => '',
|
14 |
'centerstyle' => 'fonticon',
|
15 |
'bgclr' => '',
|
16 |
+
'maintitle' => '',
|
17 |
+
'titlealign' => 'left',
|
18 |
+
'titlepadding' => '10',
|
19 |
+
'titlesize' => '',
|
20 |
+
'titleclr' => '',
|
21 |
+
'titlebg' => '',
|
22 |
+
'image_id' => '',
|
23 |
+
'img_width' => '',
|
24 |
'icon' => '',
|
25 |
'icon_size' => '',
|
26 |
'css' => '',
|
27 |
), $atts ) );
|
28 |
+
if ($image_id != '') { $image_url = wp_get_attachment_url( $image_id ); }
|
29 |
$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts );
|
30 |
$content = wpb_js_remove_wpautop($content, true);
|
31 |
ob_start(); ?>
|
43 |
<?php } ?>
|
44 |
|
45 |
<div class="cd-timeline-content <?php echo $css_class; ?>">
|
46 |
+
<span class="timeline-arrow" style="border-right-color: <?php echo $titlebg; ?>"></span>
|
47 |
+
<span class="timeline-arrow" style="border-left-color: <?php echo $titlebg; ?>"></span>
|
48 |
+
<span class="timeline-arrow" style="border-right: 7px solid <?php echo $titlebg; ?>;"></span>
|
49 |
+
|
50 |
+
<h2 style="background: <?php echo $titlebg; ?>; color: <?php echo $titleclr; ?>; font-size: <?php echo $titlesize; ?>px; text-align: <?php echo $titlealign; ?>; padding: <?php echo $titlepadding ?>px 15px;">
|
51 |
+
<?php echo $maintitle; ?>
|
52 |
+
</h2>
|
53 |
+
<?php if ($image_url != '') { ?>
|
54 |
+
<img src="<?php echo $image_url; ?>" style="max-width: 100%; width: <?php echo $img_width; ?>px">
|
55 |
+
<?php } ?>
|
56 |
+
<div class="cd-timeline-content-area" style="padding: 0 10px; display: block;">
|
57 |
+
<?php echo $content; ?>
|
58 |
+
</div>
|
59 |
<span class="cd-date" style="color: <?php echo $clr; ?>; font-size: <?php echo $size; ?>px;">
|
60 |
<?php echo $date ?>
|
61 |
</span>
|
109 |
"group" => 'General',
|
110 |
),
|
111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
array(
|
113 |
"type" => "dropdown",
|
114 |
"heading" => __( 'Select style', 'timeline' ),
|
147 |
"suffix" => 'px',
|
148 |
"group" => 'Timeline Center',
|
149 |
),
|
150 |
+
|
151 |
+
array(
|
152 |
+
"type" => "textfield",
|
153 |
+
"heading" => __( 'Title', 'timeline' ),
|
154 |
+
"param_name" => "maintitle",
|
155 |
+
"value" => "Timeline Title",
|
156 |
+
"group" => 'Content',
|
157 |
+
),
|
158 |
+
|
159 |
+
array(
|
160 |
+
"type" => "dropdown",
|
161 |
+
"heading" => __( 'Title Align', 'timeline' ),
|
162 |
+
"param_name" => "titlealign",
|
163 |
+
"edit_field_class" => "vc_col-sm-4 wdo_items_to_show wdo_margin_bottom",
|
164 |
+
"group" => 'Content',
|
165 |
+
"value" => array(
|
166 |
+
'Left' => 'left',
|
167 |
+
'Center' => 'center',
|
168 |
+
'Right' => 'right',
|
169 |
+
)
|
170 |
+
),
|
171 |
+
|
172 |
+
array(
|
173 |
+
"type" => "vc_number",
|
174 |
+
"heading" => __( 'Title size', 'timeline' ),
|
175 |
+
"edit_field_class" => "vc_col-sm-4 wdo_items_to_show wdo_margin_bottom",
|
176 |
+
"param_name" => "titlesize",
|
177 |
+
"suffix" => 'px',
|
178 |
+
"group" => 'Content',
|
179 |
+
),
|
180 |
+
|
181 |
+
array(
|
182 |
+
"type" => "vc_number",
|
183 |
+
"heading" => __( 'Padding [Top - Bottom]', 'timeline' ),
|
184 |
+
"edit_field_class" => "vc_col-sm-4 wdo_items_to_show wdo_margin_bottom",
|
185 |
+
"param_name" => "titlepadding",
|
186 |
+
"value" => '10',
|
187 |
+
"suffix" => 'px',
|
188 |
+
"group" => 'Content',
|
189 |
+
),
|
190 |
+
|
191 |
+
array(
|
192 |
+
"type" => "colorpicker",
|
193 |
+
"heading" => __( 'Title Color', 'timeline' ),
|
194 |
+
"edit_field_class" => "vc_col-sm-4 wdo_items_to_show wdo_margin_bottom",
|
195 |
+
"param_name" => "titleclr",
|
196 |
+
"group" => 'Content',
|
197 |
+
),
|
198 |
+
|
199 |
+
array(
|
200 |
+
"type" => "colorpicker",
|
201 |
+
"heading" => __( 'Title Background', 'timeline' ),
|
202 |
+
"edit_field_class" => "vc_col-sm-4 wdo_items_to_show wdo_margin_bottom",
|
203 |
+
"param_name" => "titlebg",
|
204 |
+
"group" => 'Content',
|
205 |
+
),
|
206 |
+
|
207 |
+
array(
|
208 |
+
"type" => "attach_image",
|
209 |
+
"heading" => __( 'Select Image', 'timeline' ),
|
210 |
+
"param_name" => "image_id",
|
211 |
+
"group" => 'Content',
|
212 |
+
),
|
213 |
+
|
214 |
+
array(
|
215 |
+
"type" => "vc_number",
|
216 |
+
"heading" => __( 'Image Width', 'timeline' ),
|
217 |
+
"param_name" => "img_width",
|
218 |
+
"suffix" => 'px',
|
219 |
+
"group" => 'Content',
|
220 |
+
),
|
221 |
+
|
222 |
+
array(
|
223 |
+
"type" => "textarea_html",
|
224 |
+
"heading" => __( 'Content Details', 'timeline' ),
|
225 |
+
"param_name" => "content",
|
226 |
+
"description" => __( 'Add heading, details, pictures or video url', 'timeline' ),
|
227 |
+
"group" => 'Content',
|
228 |
+
),
|
229 |
+
|
230 |
|
231 |
array(
|
232 |
"type" => "css_editor",
|
render/tm_carousel_father.php
CHANGED
@@ -8,25 +8,25 @@ class WPBakeryShortCode_tm_carousel_father extends WPBakeryShortCodesContainer {
|
|
8 |
protected function content( $atts, $content = null ) {
|
9 |
|
10 |
extract( shortcode_atts( array(
|
11 |
-
'
|
12 |
-
'
|
13 |
-
'
|
14 |
-
'
|
15 |
-
'
|
16 |
-
'
|
17 |
-
'
|
18 |
-
'
|
19 |
-
'
|
20 |
-
'slide_visible' => '1',
|
21 |
'slide_visible_mbl' => '1',
|
22 |
-
'tabs'
|
23 |
-
'slide_scroll'
|
24 |
-
'
|
25 |
-
'
|
26 |
-
'
|
27 |
-
'arrowsize'
|
28 |
-
'
|
29 |
-
'
|
|
|
30 |
), $atts ) );
|
31 |
$some_id = rand(5, 500);
|
32 |
$content = wpb_js_remove_wpautop($content);
|
@@ -39,37 +39,34 @@ class WPBakeryShortCode_tm_carousel_father extends WPBakeryShortCodesContainer {
|
|
39 |
</section>
|
40 |
|
41 |
<style>
|
42 |
-
#tdt-slider-<?php echo $some_id ?> .slick-dots li button:before{
|
43 |
-
color: <?php echo $dotclr ?>;
|
44 |
-
font-size: <?php echo $dotsize; ?>px !important;
|
45 |
-
border: 2px solid <?php echo $borderclr ?>;
|
46 |
-
}
|
47 |
-
#tdt-slider-<?php echo $some_id ?> .slick-next:before {
|
48 |
-
color: <?php echo $arrowclr ?> !important;
|
49 |
-
font-size: <?php echo $arrowsize; ?>px !important;
|
50 |
-
}
|
51 |
-
#tdt-slider-<?php echo $some_id ?> .slick-prev:before {
|
52 |
-
color: <?php echo $arrowclr ?> !important;
|
53 |
-
font-size: <?php echo $arrowsize; ?>px !important;
|
54 |
-
}
|
55 |
-
#tdt-slider-<?php echo $some_id ?> .slick-dots li.slick-active button:before {
|
56 |
-
opacity: 1 !important;
|
57 |
-
}
|
58 |
#tdt-slider-<?php echo $some_id ?> .slick-slide {
|
59 |
padding: 0 <?php echo $spaces ?>px !important;
|
60 |
}
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
top: 35px !important;
|
67 |
}
|
68 |
-
|
69 |
-
|
70 |
-
|
|
|
|
|
|
|
71 |
}
|
72 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
</style>
|
74 |
<?php return ob_get_clean();
|
75 |
}
|
@@ -115,8 +112,8 @@ vc_map( array(
|
|
115 |
"description" => __('Show/Hide on left & right', 'slider'),
|
116 |
"group" => 'Settings',
|
117 |
"value" => array(
|
118 |
-
"Hide" => "false",
|
119 |
"Show" => "true",
|
|
|
120 |
)
|
121 |
),
|
122 |
array(
|
@@ -233,6 +230,13 @@ vc_map( array(
|
|
233 |
"value" => "#000",
|
234 |
"group" => 'Navigation',
|
235 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
236 |
array(
|
237 |
"type" => "vc_number",
|
238 |
"heading" => __( 'Arrow Font Size', 'slider' ),
|
@@ -243,6 +247,15 @@ vc_map( array(
|
|
243 |
"value" => "30",
|
244 |
"group" => 'Navigation',
|
245 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
246 |
|
247 |
// Dot Section Setting
|
248 |
|
@@ -273,6 +286,13 @@ vc_map( array(
|
|
273 |
"value" => "#000",
|
274 |
"group" => 'Navigation',
|
275 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
276 |
array(
|
277 |
"type" => "colorpicker",
|
278 |
"heading" => __( 'Border Color', 'slider' ),
|
@@ -281,12 +301,13 @@ vc_map( array(
|
|
281 |
"value" => "",
|
282 |
"group" => 'Navigation',
|
283 |
),
|
|
|
284 |
array(
|
285 |
-
"type" => "
|
286 |
-
"heading" => __( '
|
287 |
-
"param_name" => "
|
288 |
-
"
|
289 |
-
"
|
290 |
"group" => 'Navigation',
|
291 |
),
|
292 |
|
@@ -300,15 +321,5 @@ vc_map( array(
|
|
300 |
"dependency" => array('element' => "theme", 'value' => 'content-over-slider'),
|
301 |
"group" => 'Mobile Option',
|
302 |
),
|
303 |
-
array(
|
304 |
-
"type" => "vc_number",
|
305 |
-
"heading" => __( 'Padding Top (For PC)', 'slider' ),
|
306 |
-
"param_name" => "padding",
|
307 |
-
"description" => __('set in % eg 5. padding will apply from top for the content', 'slider'),
|
308 |
-
"dependency" => array('element' => "theme", 'value' => 'content-over-slider'),
|
309 |
-
"suffix" => '%',
|
310 |
-
"value" => "15",
|
311 |
-
"group" => 'Mobile Option',
|
312 |
-
),
|
313 |
)
|
314 |
) );
|
8 |
protected function content( $atts, $content = null ) {
|
9 |
|
10 |
extract( shortcode_atts( array(
|
11 |
+
'theme' => 'default-tdt',
|
12 |
+
'mbl_height' => '',
|
13 |
+
'effect' => 'false',
|
14 |
+
'arrows' => 'true',
|
15 |
+
'dot' => 'true',
|
16 |
+
'autoplay' => 'true',
|
17 |
+
'speed' => '2500',
|
18 |
+
'spaces' => '0',
|
19 |
+
'slide_visible' => '1',
|
|
|
20 |
'slide_visible_mbl' => '1',
|
21 |
+
'tabs' => '1',
|
22 |
+
'slide_scroll' => '1',
|
23 |
+
'borderclr' => 'transparent',
|
24 |
+
'arrowclr' => '#000',
|
25 |
+
'arrowbg' => '',
|
26 |
+
'arrowsize' => '30',
|
27 |
+
'dotclr' => '#000',
|
28 |
+
'dotsize' => '30',
|
29 |
+
'class' => '',
|
30 |
), $atts ) );
|
31 |
$some_id = rand(5, 500);
|
32 |
$content = wpb_js_remove_wpautop($content);
|
39 |
</section>
|
40 |
|
41 |
<style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
#tdt-slider-<?php echo $some_id ?> .slick-slide {
|
43 |
padding: 0 <?php echo $spaces ?>px !important;
|
44 |
}
|
45 |
+
<?php if ($dot == 'true') { ?>
|
46 |
+
#tdt-slider-<?php echo $some_id ?> .slick-dots li button:before{
|
47 |
+
color: <?php echo $dotclr ?>;
|
48 |
+
font-size: <?php echo $dotsize; ?>px !important;
|
49 |
+
border: 2px solid <?php echo $borderclr ?>;
|
|
|
50 |
}
|
51 |
+
<?php } ?>
|
52 |
+
<?php if ($arrows == 'true') { ?>
|
53 |
+
#tdt-slider-<?php echo $some_id ?> .slick-next:before, #tdt-slider-<?php echo $some_id ?> .slick-prev:before {
|
54 |
+
color: <?php echo $arrowclr ?> !important;
|
55 |
+
background: <?php echo $arrowbg; ?> !important;
|
56 |
+
font-size: <?php echo $arrowsize; ?>px !important;
|
57 |
}
|
58 |
+
<?php } ?>
|
59 |
+
<?php if ($theme == 'content-over-slider') { ?>
|
60 |
+
@media only screen and (max-width: 480px) {
|
61 |
+
#tdt-slider-<?php echo $some_id ?>.content-over-slider .slick-slide .content-section {
|
62 |
+
top: 35px !important;
|
63 |
+
}
|
64 |
+
#tdt-slider-<?php echo $some_id ?>.content-over-slider .ultimate-slide-img {
|
65 |
+
height: <?php echo $mbl_height; ?>px !important;
|
66 |
+
object-fit: cover;
|
67 |
+
}
|
68 |
+
}
|
69 |
+
<?php } ?>
|
70 |
</style>
|
71 |
<?php return ob_get_clean();
|
72 |
}
|
112 |
"description" => __('Show/Hide on left & right', 'slider'),
|
113 |
"group" => 'Settings',
|
114 |
"value" => array(
|
|
|
115 |
"Show" => "true",
|
116 |
+
"Hide" => "false",
|
117 |
)
|
118 |
),
|
119 |
array(
|
230 |
"value" => "#000",
|
231 |
"group" => 'Navigation',
|
232 |
),
|
233 |
+
array(
|
234 |
+
"type" => "colorpicker",
|
235 |
+
"heading" => __( 'Arrow background', 'slider' ),
|
236 |
+
"param_name" => "arrowbg",
|
237 |
+
"dependency" => array('element' => "arrow", 'value' => 'true'),
|
238 |
+
"group" => 'Navigation',
|
239 |
+
),
|
240 |
array(
|
241 |
"type" => "vc_number",
|
242 |
"heading" => __( 'Arrow Font Size', 'slider' ),
|
247 |
"value" => "30",
|
248 |
"group" => 'Navigation',
|
249 |
),
|
250 |
+
array(
|
251 |
+
"type" => "textfield",
|
252 |
+
"heading" => __( 'Position [Pro Option]', 'slider' ),
|
253 |
+
"param_name" => "arrowposition",
|
254 |
+
"description" => "change the position of arrows on slider, with minus sign arrows move away from slider",
|
255 |
+
"value" => "",
|
256 |
+
"dependency" => array('element' => "arrow", 'value' => 'true'),
|
257 |
+
"group" => 'Navigation',
|
258 |
+
),
|
259 |
|
260 |
// Dot Section Setting
|
261 |
|
286 |
"value" => "#000",
|
287 |
"group" => 'Navigation',
|
288 |
),
|
289 |
+
array(
|
290 |
+
"type" => "vc_number",
|
291 |
+
"heading" => __( 'Dot Size [px]', 'slider' ),
|
292 |
+
"param_name" => "dotsize",
|
293 |
+
"value" => "30",
|
294 |
+
"group" => 'Navigation',
|
295 |
+
),
|
296 |
array(
|
297 |
"type" => "colorpicker",
|
298 |
"heading" => __( 'Border Color', 'slider' ),
|
301 |
"value" => "",
|
302 |
"group" => 'Navigation',
|
303 |
),
|
304 |
+
|
305 |
array(
|
306 |
+
"type" => "textfield",
|
307 |
+
"heading" => __( 'Position [Pro Option]', 'slider' ),
|
308 |
+
"param_name" => "dotposition",
|
309 |
+
"description" => "change the position of Dots on slider, with minus sign dots move away from slider",
|
310 |
+
"value" => "",
|
311 |
"group" => 'Navigation',
|
312 |
),
|
313 |
|
321 |
"dependency" => array('element' => "theme", 'value' => 'content-over-slider'),
|
322 |
"group" => 'Mobile Option',
|
323 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
324 |
)
|
325 |
) );
|
render/tm_carousel_son.php
CHANGED
@@ -8,6 +8,7 @@ class WPBakeryShortCode_tm_carousel_son extends WPBakeryShortCode {
|
|
8 |
protected function content( $atts, $content = null ) {
|
9 |
|
10 |
extract( shortcode_atts( array(
|
|
|
11 |
'contain_url' => '',
|
12 |
'image_id' => '',
|
13 |
'alt' => '',
|
@@ -54,7 +55,7 @@ class WPBakeryShortCode_tm_carousel_son extends WPBakeryShortCode {
|
|
54 |
<img src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" class="ultimate-slide-img" style="max-width: 100%; width: <?php echo $img_width; ?>; height: <?php echo $img_height; ?>; border-radius: <?php echo $img_radius; ?>; margin-bottom: 15px;">
|
55 |
<?php } ?>
|
56 |
</a>
|
57 |
-
<span class="content-section" style="text-align: <?php echo $align ?>;">
|
58 |
<h2 class="tdt-slider-heading" style="font-size: <?php echo $titlesize; ?>px; color: <?php echo $titleclr; ?>; font-weight: <?php echo $fontweight; ?>; line-height: <?php echo $line_height; ?>;">
|
59 |
<?php echo $title; ?>
|
60 |
</h2>
|
@@ -310,6 +311,15 @@ vc_map( array(
|
|
310 |
|
311 |
// Description Section
|
312 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
313 |
array(
|
314 |
"type" => "textarea_html",
|
315 |
"heading" => __( 'Carousel Detail', 'slider' ),
|
8 |
protected function content( $atts, $content = null ) {
|
9 |
|
10 |
extract( shortcode_atts( array(
|
11 |
+
'content_padding' => '0',
|
12 |
'contain_url' => '',
|
13 |
'image_id' => '',
|
14 |
'alt' => '',
|
55 |
<img src="<?php echo $image_url; ?>" alt="<?php echo $alt; ?>" class="ultimate-slide-img" style="max-width: 100%; width: <?php echo $img_width; ?>; height: <?php echo $img_height; ?>; border-radius: <?php echo $img_radius; ?>; margin-bottom: 15px;">
|
56 |
<?php } ?>
|
57 |
</a>
|
58 |
+
<span class="content-section" style="text-align: <?php echo $align ?>; display: block; top: <?php echo $content_padding ?>%;">
|
59 |
<h2 class="tdt-slider-heading" style="font-size: <?php echo $titlesize; ?>px; color: <?php echo $titleclr; ?>; font-weight: <?php echo $fontweight; ?>; line-height: <?php echo $line_height; ?>;">
|
60 |
<?php echo $title; ?>
|
61 |
</h2>
|
311 |
|
312 |
// Description Section
|
313 |
|
314 |
+
array(
|
315 |
+
"type" => "vc_number",
|
316 |
+
"heading" => __( 'Padding Top', 'slider' ),
|
317 |
+
"param_name" => "content_padding",
|
318 |
+
"description" => __('set in %. padding will apply from top for the content. It works only if you select theme "Content Over Image" from carousel settings.', 'slider'),
|
319 |
+
"suffix" => '%',
|
320 |
+
"value" => "0",
|
321 |
+
"group" => 'Description',
|
322 |
+
),
|
323 |
array(
|
324 |
"type" => "textarea_html",
|
325 |
"heading" => __( 'Carousel Detail', 'slider' ),
|