Post Grid - Version 2.0.10

Version Description

  • 27/07/2016 add - Lazy Load.
    • 27/07/2016 add - Featured Image linked to post.
    • 27/07/2016 add - Grid Items Height.
    • 27/07/2016 add - Create New layout on Layout Editor.
    • 27/07/2016 add - Settigns - Export Content Layouts.
    • 27/07/2016 add - Settigns - Import Content Layouts.
    • 27/07/2016 add - Settigns - Remove Content Layouts.
Download this release

Release Info

Developer paratheme
Plugin Icon 128x128 Post Grid
Version 2.0.10
Comparing to
See all releases

Code changes from version 2.0.9 to 2.0.10

Files changed (41) hide show
  1. assets/admin/css/style-new.css +544 -0
  2. assets/admin/css/style.css +0 -325
  3. assets/admin/js/scripts-new.js +499 -0
  4. assets/admin/js/scripts.js +0 -180
  5. assets/frontend/css/icons/gplus.png +0 -0
  6. assets/frontend/css/owl.carousel-new.css +173 -0
  7. assets/frontend/css/owl.carousel.css +170 -68
  8. assets/frontend/css/owl.theme.css +0 -79
  9. assets/frontend/css/{style.css → style-new.css} +250 -5
  10. assets/frontend/js/imagesloaded.pkgd.js +487 -0
  11. assets/frontend/js/owl.carousel.js +0 -1512
  12. assets/frontend/js/owl.carousel.min.js +7 -0
  13. assets/frontend/js/scripts.js +9 -1
  14. assets/global/css/style.skins.css +1113 -18
  15. grid-items/custom-css.php +191 -3
  16. grid-items/layer-content.php +66 -477
  17. grid-items/layer-media.php +5 -1
  18. grid-items/lazy.php +21 -7
  19. grid-items/nav-bottom-new.php +370 -0
  20. grid-items/nav-top-new.php +259 -0
  21. grid-items/nav-top.php +1 -1
  22. grid-items/query.php +40 -37
  23. grid-items/scripts.php +16 -16
  24. grid-items/variables.php +71 -76
  25. includes/class-functions.php +40 -13
  26. includes/class-settings.php +3 -1
  27. includes/class-shortcodes.php +191 -7
  28. includes/dummy-grid-items.php +11 -0
  29. includes/functions.php +457 -26
  30. includes/menu/help.php +1 -1
  31. includes/menu/layout-editor.php +52 -5
  32. includes/menu/settings.php +36 -0
  33. includes/meta.php +512 -73
  34. includes/post-meta-settings.php +14 -1
  35. languages/en.mo +0 -0
  36. languages/en.po +289 -119
  37. languages/post_grid-bn_BD.mo +0 -0
  38. languages/post_grid-it_IT.mo +0 -0
  39. languages/{post_grid-bn_BD.po → post_grid-it_IT.po} +169 -278
  40. post-grid.php +21 -13
  41. readme.txt +18 -9
assets/admin/css/style-new.css ADDED
@@ -0,0 +1,544 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Admin css
3
+ */
4
+
5
+ #post_grid_metabox, #post_grid_post_settings {
6
+ background: #f1f1f1 none repeat scroll 0 0;
7
+ border: medium none;
8
+ box-shadow: none;
9
+ }
10
+
11
+ #post_grid_metabox .hndle, #post_grid_post_settings .hndle {
12
+ background: rgb(96, 173, 252) none repeat scroll 0 0;
13
+ color: rgb(255, 255, 255);
14
+ }
15
+
16
+ #post_grid_metabox .handlediv, #post_grid_post_settings .handlediv{
17
+ color: rgb(255, 255, 255);
18
+ }
19
+
20
+ #post_grid_metabox .clear-categories{}
21
+
22
+
23
+
24
+
25
+ #post_grid_metabox .skin-list{}
26
+
27
+ #post_grid_metabox .skin-list .skin-container {
28
+ display: inline-block;
29
+ margin: 10px;
30
+ width: 275px;
31
+ }
32
+
33
+ #post_grid_metabox .skin-list .skin-container .checked {
34
+ background: rgb(252, 110, 60) none repeat scroll 0 0;
35
+ padding: 3px 10px;
36
+ }
37
+
38
+ #post_grid_metabox .skin-list .skin-container .checked.selected {
39
+ background: rgb(58, 212, 127) none repeat scroll 0 0;
40
+ }
41
+
42
+ #post_grid_metabox .skin-list .skin-container label {
43
+ color: rgb(255, 255, 255);
44
+
45
+ }
46
+
47
+
48
+
49
+
50
+ #post_grid_metabox .skin-list .skin {
51
+ background: rgb(242, 242, 242) none repeat scroll 0 0;
52
+ display: inline-block;
53
+ overflow: hidden;
54
+ vertical-align: top;
55
+
56
+ }
57
+
58
+
59
+
60
+
61
+
62
+
63
+ #post_grid_metabox .skin-list .skin .thumb img {
64
+ height: auto;
65
+ width: 100%;
66
+ }
67
+
68
+ #post_grid_metabox .skin-list .skin .title {
69
+ font-size: 16px;
70
+ line-height: normal;
71
+ padding: 5px 0;
72
+ }
73
+
74
+ #post_grid_metabox .skin-list .skin .content {
75
+ font-size: 13px;
76
+ line-height: normal;
77
+ padding: 5px 0;
78
+ }
79
+
80
+
81
+ #post_grid_metabox .skin-list .layer-content > div {
82
+ padding: 5px 15px !important;
83
+ }
84
+
85
+
86
+
87
+
88
+
89
+
90
+ #post_grid_metabox .meta-query-list {
91
+
92
+ }
93
+
94
+ #post_grid_metabox .meta-query-list .remove {
95
+ background: rgb(255, 73, 10) none repeat scroll 0 0;
96
+ color: rgb(255, 255, 255);
97
+ cursor: pointer;
98
+ margin-right: 10px;
99
+ padding: 1px 6px;
100
+ }
101
+
102
+
103
+
104
+
105
+ #post_grid_metabox .layout-list{
106
+
107
+ }
108
+
109
+ #post_grid_metabox .layout-list .idle, #post_grid_metabox .layout-list .hover {
110
+ background: rgba(0, 0, 0, 0) url("../images/tile.png") repeat scroll 0 0;
111
+ display: inline-block;
112
+ height: auto;
113
+ margin: 0 10px;
114
+ vertical-align: top;
115
+ width: 300px;
116
+ }
117
+
118
+ #post_grid_metabox .layout-list .idle{}
119
+ #post_grid_metabox .layout-list .hover {
120
+ display: none;
121
+ }
122
+
123
+ #post_grid_metabox .layout-list .idle .name, #post_grid_metabox .layout-list .hover .name {
124
+ background: rgb(240, 240, 240) none repeat scroll 0 0;
125
+ border-bottom: 1px solid rgb(153, 153, 153);
126
+ font-size: 20px;
127
+ line-height: normal;
128
+ padding: 5px 0;
129
+ text-align: center;
130
+ }
131
+
132
+
133
+
134
+
135
+ #post_grid_metabox .bg_image_src {
136
+ border: 1px solid rgb(221, 221, 221);
137
+ cursor: pointer;
138
+ height: 50px;
139
+ margin: 5px;
140
+ vertical-align: top;
141
+ width: 50px;
142
+ }
143
+
144
+ #post_grid_metabox .lazy_load_image {
145
+ border: 1px solid rgb(221, 221, 221);
146
+ cursor: pointer;
147
+ margin: 5px;
148
+ padding: 10px;
149
+ vertical-align: top;
150
+ }
151
+
152
+
153
+ #post_grid_metabox .grid-preview {
154
+ margin: 25px 0;
155
+ text-align: center;
156
+ }
157
+
158
+ #post_grid_metabox .grid-preview .items {
159
+ padding: 25px 0;
160
+ }
161
+ #post_grid_metabox .grid-preview .items .item {
162
+ display: inline-block;
163
+ margin: 0 10px;
164
+ overflow: hidden;
165
+ width: 300px;
166
+ }
167
+ #post_grid_metabox .grid-preview .items .item .layer-media {
168
+ height: 180px;
169
+ overflow: hidden;
170
+ width: 100%;
171
+ }
172
+
173
+ #post_grid_metabox .grid-preview .items .item .layer-media img{
174
+ width: 100%;
175
+ }
176
+
177
+ #post_grid_metabox .grid-preview .items .item .layer-content{}
178
+
179
+
180
+ #post_grid_metabox .grid-preview .grid-type-grid {
181
+ background: rgb(243, 243, 243) none repeat scroll 0 0;
182
+ border: 1px dashed #ddd;
183
+ margin: 0 auto;
184
+ padding: 20px;
185
+ width: 75%;
186
+ }
187
+ #post_grid_metabox .grid-preview .grid-type-filterable {
188
+ background: rgb(243, 243, 243) none repeat scroll 0 0;
189
+ border: 1px dashed #ddd;
190
+ display: none;
191
+ margin: 0 auto;
192
+ padding: 20px;
193
+ width: 75%;
194
+ }
195
+
196
+ #post_grid_metabox .grid-preview .grid-type-filterable .filter-menu {
197
+ padding: 8px 0;
198
+ text-align: center;
199
+ }
200
+
201
+ #post_grid_metabox .grid-preview .grid-type-filterable .filter {
202
+ background: #fff none repeat scroll 0 0;
203
+ display: inline-block;
204
+ float: none;
205
+ margin: 0 5px;
206
+ padding: 3px 7px;
207
+ }
208
+
209
+
210
+ #post_grid_metabox .grid-preview .grid-type-slider {
211
+ background: rgb(243, 243, 243) none repeat scroll 0 0;
212
+ border: 1px dashed #ddd;
213
+ margin: 0 auto;
214
+ padding: 20px;
215
+ position: relative;
216
+ width: 75%;
217
+ display: none;
218
+ }
219
+
220
+ #post_grid_metabox .grid-preview .pagination {
221
+ margin: 5px 0;
222
+ }
223
+
224
+ #post_grid_metabox .grid-preview .pagination .page {
225
+ background: #fff none repeat scroll 0 0;
226
+ display: inline-block;
227
+ margin: 0 3px;
228
+ padding: 4px 10px;
229
+ }
230
+
231
+ #post_grid_metabox .grid-preview .dots {
232
+ margin: 5px 0;
233
+ }
234
+
235
+
236
+
237
+ #post_grid_metabox .grid-preview .dots.round .dot {
238
+ border-radius: 50%;
239
+ }
240
+ #post_grid_metabox .grid-preview .dots.round-border .dot {
241
+ border: 1px solid #999;
242
+ border-radius: 50%;
243
+ }
244
+ #post_grid_metabox .grid-preview .dots.semi-round .dot {
245
+ border-radius: 4px;
246
+ }
247
+ #post_grid_metabox .grid-preview .dots.square .dot {
248
+ border-radius: 0;
249
+ }
250
+ #post_grid_metabox .grid-preview .dots.square-border .dot {
251
+ border: 1px solid #999;
252
+ }
253
+ #post_grid_metabox .grid-preview .dots.square-shadow .dot {
254
+ border-radius: 0;
255
+ box-shadow: 0 5px 10px -2px #999;
256
+ }
257
+
258
+
259
+
260
+
261
+
262
+ #post_grid_metabox .grid-preview .dots .dot {
263
+ background: #fff none repeat scroll 0 0;
264
+ display: inline-block;
265
+ margin: 0 4px;
266
+ padding: 8px;
267
+ }
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+
282
+ #post_grid_metabox .grid-preview .navs {
283
+ position: absolute;
284
+
285
+ }
286
+
287
+ #post_grid_metabox .grid-preview .navs .nav {
288
+ background: #fff none repeat scroll 0 0;
289
+ display: inline-block;
290
+ left: 0;
291
+ margin: 0 5px;
292
+ padding: 7px;
293
+ }
294
+
295
+ /*Positions*/
296
+
297
+ #post_grid_metabox .grid-preview .navs .nav.next {
298
+ float: left;
299
+ }
300
+
301
+ #post_grid_metabox .grid-preview .navs .nav.prev {
302
+ float: right;
303
+ }
304
+
305
+
306
+ #post_grid_metabox .grid-preview .navs.top-left {
307
+ left: 5px;
308
+ top: 10px;
309
+ }
310
+ #post_grid_metabox .grid-preview .navs.top-right {
311
+ right: 5px;
312
+ top: 10px;
313
+ }
314
+ #post_grid_metabox .grid-preview .navs.middle {
315
+ left: 0;
316
+ top: 40%;
317
+ width: 100%;
318
+ }
319
+ #post_grid_metabox .grid-preview .navs.bottom-left {
320
+ bottom: 10px;
321
+ left: 5px;
322
+ }
323
+ #post_grid_metabox .grid-preview .navs.bottom-right {
324
+ bottom: 10px;
325
+ right: 5px;
326
+ }
327
+
328
+
329
+ /*Navs Style*/
330
+
331
+
332
+
333
+ #post_grid_metabox .grid-preview .navs.round {
334
+
335
+ }
336
+
337
+ #post_grid_metabox .grid-preview .navs.round .nav {
338
+ border-radius: 50%;
339
+ height: 20px;
340
+ overflow: hidden;
341
+ width: 20px;
342
+ }
343
+
344
+
345
+ #post_grid_metabox .grid-preview .navs.round-border .nav {
346
+ border: 2px solid #999;
347
+ border-radius: 50%;
348
+ height: 20px;
349
+ width: 20px;
350
+ }
351
+
352
+ #post_grid_metabox .grid-preview .navs.semi-round .nav {
353
+ border-radius: 5px;
354
+ box-shadow: 0 0 7px -1px #ddd;
355
+ height: 20px;
356
+ width: 20px;
357
+ }
358
+ #post_grid_metabox .grid-preview .navs.square .nav {
359
+ box-shadow: 0 0 4px 0 #ddd;
360
+ height: 20px;
361
+ width: 20px;
362
+ }
363
+ #post_grid_metabox .grid-preview .navs.square-border .nav {
364
+ border: 2px solid #999;
365
+ height: 20px;
366
+ width: 20px;
367
+ }
368
+ #post_grid_metabox .grid-preview .navs.square-shadow .nav {
369
+ box-shadow: 0 0 3px 2px #ddd;
370
+ height: 20px;
371
+ width: 20px;
372
+ }
373
+
374
+
375
+
376
+
377
+
378
+
379
+
380
+
381
+
382
+
383
+
384
+
385
+ #post_grid_metabox .grid-preview .title {
386
+ font-size: 17px;
387
+ padding: 13px 0;
388
+ }
389
+
390
+ #post_grid_metabox .grid-preview .content {
391
+ font-size: 13px;
392
+ }
393
+
394
+
395
+
396
+ #post_grid_metabox .grid-preview .pagination-type {
397
+ display: none;
398
+ }
399
+
400
+ #post_grid_metabox .grid-preview .filter-menu {
401
+ display: none;
402
+ }
403
+
404
+ #post_grid_metabox .grid-preview .filter-menu.yes {
405
+ display: block;
406
+ }
407
+ #post_grid_metabox .grid-preview .nav-top-search, #post_grid_metabox .grid-preview .per-page-count {
408
+ display: inline-block;
409
+ vertical-align: top;
410
+ }
411
+
412
+ #post_grid_metabox .grid-preview .per-page-count {
413
+ float: right;
414
+ }
415
+
416
+
417
+
418
+ /* layout-editor */
419
+
420
+ .layout-editor .layout-items {
421
+ margin: 25px 0;
422
+ }
423
+
424
+ .layout-editor .layout-items .item {
425
+ background: rgb(240, 240, 240) none repeat scroll 0 0;
426
+ border-bottom: 1px solid rgb(221, 221, 221);
427
+ cursor: pointer;
428
+ display: inline-block;
429
+ margin: 5px 3px;
430
+ padding: 3px 7px;
431
+ }
432
+
433
+ .layout-editor .layout-items .item .fa{
434
+ display:none;
435
+
436
+ }
437
+
438
+
439
+ .layout-editor .layout-items .item:hover .fa {
440
+ display: inline-block;
441
+ }
442
+
443
+
444
+
445
+
446
+ .layout-editor .layout-list{
447
+
448
+ }
449
+
450
+ .layout-editor .layout-list .idle, .layout-editor .layout-list .hover {
451
+ background: rgba(0, 0, 0, 0) url("../images/tile.png") repeat scroll 0 0;
452
+ display: inline-block;
453
+ height: auto;
454
+ margin: 0 10px;
455
+ min-height: 90px;
456
+ vertical-align: top;
457
+ width: 300px;
458
+ }
459
+
460
+ .layout-editor .layout-list .idle{}
461
+ .layout-editor .layout-list .hover{
462
+
463
+ }
464
+
465
+ .layout-editor .layout-list .idle .name, .layout-editor .layout-list .hover .name {
466
+ background: rgb(240, 240, 240) none repeat scroll 0 0;
467
+ border-bottom: 1px solid rgb(153, 153, 153);
468
+ font-size: 20px;
469
+ line-height: normal;
470
+ padding: 5px 0;
471
+ text-align: center;
472
+ }
473
+
474
+
475
+ .layout-editor .css-editor {
476
+
477
+ }
478
+
479
+
480
+ .layout-editor .css-editor .header{
481
+
482
+ }
483
+
484
+ .layout-editor .css-editor .header .remove {
485
+ background: rgb(255, 68, 63) none repeat scroll 0 0;
486
+ color: rgb(255, 255, 255);
487
+ cursor: pointer;
488
+ margin-right: 10px;
489
+ padding: 1px 6px;
490
+ }
491
+
492
+
493
+
494
+
495
+ /*Upgrade*/
496
+
497
+ #post-grid-upgrade {
498
+ background: rgb(221, 221, 221) none repeat scroll 0 0;
499
+ cursor: pointer;
500
+ padding: 1px 10px;
501
+ text-decoration: underline;
502
+ }
503
+
504
+
505
+
506
+ .post-grid-settings{}
507
+
508
+
509
+ .post-grid-settings .layout-list{}
510
+ .post-grid-settings .layout-list li {
511
+ background: #eeeeee none repeat scroll 0 0;
512
+ padding: 6px 10px;
513
+ }
514
+
515
+ .post-grid-settings .layout-list li .remove-layout {
516
+ background: #ff641f none repeat scroll 0 0;
517
+ color: #fff;
518
+ cursor: pointer;
519
+ margin-right: 10px;
520
+ padding: 2px 7px;
521
+ }
522
+
523
+ .post-grid-settings .remove-layout{}
524
+
525
+
526
+ .post-grid-settings .remove_export_content_layout {
527
+ background: #ff641f none repeat scroll 0 0;
528
+ color: #fff;
529
+ cursor: pointer;
530
+ padding: 0 6px;
531
+ }
532
+
533
+
534
+
535
+
536
+
537
+
538
+
539
+
540
+
541
+
542
+
543
+
544
+
assets/admin/css/style.css DELETED
@@ -1,325 +0,0 @@
1
- /*
2
- Admin css
3
- */
4
-
5
- #post_grid_metabox, #post_grid_post_settings {
6
- background: #f1f1f1 none repeat scroll 0 0;
7
- border: medium none;
8
- box-shadow: none;
9
- }
10
-
11
- #post_grid_metabox .hndle, #post_grid_post_settings .hndle {
12
- background: rgb(96, 173, 252) none repeat scroll 0 0;
13
- color: rgb(255, 255, 255);
14
- }
15
-
16
- #post_grid_metabox .handlediv, #post_grid_post_settings .handlediv{
17
- color: rgb(255, 255, 255);
18
- }
19
-
20
- #post_grid_metabox .clear-categories{}
21
-
22
-
23
-
24
-
25
- #post_grid_metabox .skin-list{}
26
-
27
- #post_grid_metabox .skin-list .skin-container {
28
- display: inline-block;
29
- margin: 10px;
30
- width: 275px;
31
- }
32
-
33
- #post_grid_metabox .skin-list .skin-container .checked {
34
- background: rgb(252, 110, 60) none repeat scroll 0 0;
35
- padding: 3px 10px;
36
- }
37
-
38
- #post_grid_metabox .skin-list .skin-container .checked.selected {
39
- background: rgb(58, 212, 127) none repeat scroll 0 0;
40
- }
41
-
42
- #post_grid_metabox .skin-list .skin-container label {
43
- color: rgb(255, 255, 255);
44
-
45
- }
46
-
47
-
48
-
49
-
50
- #post_grid_metabox .skin-list .skin {
51
- background: rgb(242, 242, 242) none repeat scroll 0 0;
52
- display: inline-block;
53
- overflow: hidden;
54
- vertical-align: top;
55
-
56
- }
57
-
58
-
59
-
60
-
61
-
62
-
63
- #post_grid_metabox .skin-list .skin .thumb img {
64
- height: auto;
65
- width: 100%;
66
- }
67
-
68
- #post_grid_metabox .skin-list .skin .title {
69
- font-size: 16px;
70
- line-height: normal;
71
- padding: 5px 0;
72
- }
73
-
74
- #post_grid_metabox .skin-list .skin .content {
75
- font-size: 13px;
76
- line-height: normal;
77
- padding: 5px 0;
78
- }
79
-
80
-
81
- #post_grid_metabox .skin-list .layer-content > div {
82
- padding: 5px 15px !important;
83
- }
84
-
85
-
86
-
87
-
88
- #post_grid_metabox .grid-layout {
89
- background: rgb(243, 243, 243) none repeat scroll 0 0;
90
- margin: 20px 0;
91
- padding: 25px;
92
- }
93
-
94
- #post_grid_metabox .grid-layout .grid-up {
95
- border: 1px dashed rgb(221, 221, 221);
96
- margin: 10px 0;
97
- padding: 10px;
98
- text-align: center;
99
- }
100
-
101
- #post_grid_metabox .grid-layout .grid-up label, #post_grid_metabox .grid-layout .grid-bottom label {
102
- background: rgb(230, 230, 230) none repeat scroll 0 0;
103
- border: 1px solid rgb(221, 221, 221);
104
- padding: 3px 15px;
105
- }
106
-
107
-
108
-
109
-
110
- #post_grid_metabox .grid-layout .grid-container {
111
- border: 1px dashed rgb(221, 221, 221);
112
- margin: 10px 0;
113
- overflow: hidden;
114
- padding: 10px;
115
- text-align: center;
116
- }
117
-
118
-
119
- #post_grid_metabox .grid-layout .grid-container img{
120
-
121
- }
122
-
123
- #post_grid_metabox .grid-layout .grid-bottom {
124
- border: 1px dashed rgb(221, 221, 221);
125
- padding: 10px;
126
- margin: 10px 0;
127
- text-align: center;
128
- }
129
-
130
-
131
-
132
-
133
- #post_grid_metabox .meta-query-list {
134
-
135
- }
136
-
137
- #post_grid_metabox .meta-query-list .remove {
138
- background: rgb(255, 73, 10) none repeat scroll 0 0;
139
- color: rgb(255, 255, 255);
140
- cursor: pointer;
141
- margin-right: 10px;
142
- padding: 1px 6px;
143
- }
144
-
145
-
146
-
147
-
148
- #post_grid_metabox .layout-list{
149
-
150
- }
151
-
152
- #post_grid_metabox .layout-list .idle, #post_grid_metabox .layout-list .hover {
153
- background: rgba(0, 0, 0, 0) url("../images/tile.png") repeat scroll 0 0;
154
- display: inline-block;
155
- height: auto;
156
- margin: 0 10px;
157
- vertical-align: top;
158
- width: 300px;
159
- }
160
-
161
- #post_grid_metabox .layout-list .idle{}
162
- #post_grid_metabox .layout-list .hover {
163
- display: none;
164
- }
165
-
166
- #post_grid_metabox .layout-list .idle .name, #post_grid_metabox .layout-list .hover .name {
167
- background: rgb(240, 240, 240) none repeat scroll 0 0;
168
- border-bottom: 1px solid rgb(153, 153, 153);
169
- font-size: 20px;
170
- line-height: normal;
171
- padding: 5px 0;
172
- text-align: center;
173
- }
174
-
175
-
176
-
177
-
178
- #post_grid_metabox .bg_image_src {
179
- border: 1px solid rgb(221, 221, 221);
180
- cursor: pointer;
181
- height: 50px;
182
- margin: 5px;
183
- vertical-align: top;
184
- width: 50px;
185
- }
186
-
187
- #post_grid_metabox .lazy_load_image {
188
- border: 1px solid rgb(221, 221, 221);
189
- cursor: pointer;
190
- margin: 5px;
191
- padding: 10px;
192
- vertical-align: top;
193
- }
194
-
195
-
196
-
197
-
198
-
199
- /* layout-editor */
200
-
201
- .layout-editor .layout-items {
202
- margin: 25px 0;
203
- }
204
-
205
- .layout-editor .layout-items .item {
206
- background: rgb(240, 240, 240) none repeat scroll 0 0;
207
- border-bottom: 1px solid rgb(221, 221, 221);
208
- cursor: pointer;
209
- display: inline-block;
210
- margin: 5px 3px;
211
- padding: 3px 7px;
212
- }
213
-
214
- .layout-editor .layout-items .item .fa{
215
- display:none;
216
-
217
- }
218
-
219
-
220
- .layout-editor .layout-items .item:hover .fa {
221
- display: inline-block;
222
- }
223
-
224
-
225
-
226
-
227
- .layout-editor .layout-list{
228
-
229
- }
230
-
231
- .layout-editor .layout-list .idle, .layout-editor .layout-list .hover {
232
- background: rgba(0, 0, 0, 0) url("../images/tile.png") repeat scroll 0 0;
233
- display: inline-block;
234
- height: auto;
235
- margin: 0 10px;
236
- min-height: 90px;
237
- vertical-align: top;
238
- width: 300px;
239
- }
240
-
241
- .layout-editor .layout-list .idle{}
242
- .layout-editor .layout-list .hover{
243
-
244
- }
245
-
246
- .layout-editor .layout-list .idle .name, .layout-editor .layout-list .hover .name {
247
- background: rgb(240, 240, 240) none repeat scroll 0 0;
248
- border-bottom: 1px solid rgb(153, 153, 153);
249
- font-size: 20px;
250
- line-height: normal;
251
- padding: 5px 0;
252
- text-align: center;
253
- }
254
-
255
-
256
- .layout-editor .css-editor {
257
-
258
- }
259
-
260
-
261
- .layout-editor .css-editor .header{
262
-
263
- }
264
-
265
- .layout-editor .css-editor .header .remove {
266
- background: rgb(255, 68, 63) none repeat scroll 0 0;
267
- color: rgb(255, 255, 255);
268
- cursor: pointer;
269
- margin-right: 10px;
270
- padding: 1px 6px;
271
- }
272
-
273
-
274
-
275
-
276
- /*Upgrade*/
277
-
278
- #post-grid-upgrade {
279
- background: rgb(221, 221, 221) none repeat scroll 0 0;
280
- cursor: pointer;
281
- padding: 1px 10px;
282
- text-decoration: underline;
283
- }
284
-
285
-
286
-
287
- .post-grid-settings{}
288
-
289
-
290
- .post-grid-settings .layout-list{}
291
- .post-grid-settings .layout-list li {
292
- background: #eeeeee none repeat scroll 0 0;
293
- padding: 6px 10px;
294
- }
295
-
296
- .post-grid-settings .layout-list li .remove-layout {
297
- background: #ff641f none repeat scroll 0 0;
298
- color: #fff;
299
- cursor: pointer;
300
- margin-right: 10px;
301
- padding: 2px 7px;
302
- }
303
-
304
- .post-grid-settings .remove-layout{}
305
-
306
-
307
- .post-grid-settings .remove_export_content_layout {
308
- background: #ff641f none repeat scroll 0 0;
309
- color: #fff;
310
- cursor: pointer;
311
- padding: 0 6px;
312
- }
313
-
314
-
315
-
316
-
317
-
318
-
319
-
320
-
321
-
322
-
323
-
324
-
325
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/admin/js/scripts-new.js ADDED
@@ -0,0 +1,499 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function($)
2
+ {
3
+
4
+
5
+
6
+
7
+
8
+ $(document).on('click', '#post_grid_metabox .slider_navs_style', function()
9
+ {
10
+ //alert('Hello');
11
+
12
+ var val = $(this).val();
13
+ nav = $('.slider-navs');
14
+
15
+ if(nav.hasClass(val)){
16
+ $('.slider-navs').removeClass(val);
17
+
18
+ }
19
+ else{
20
+
21
+ $('.slider-navs').removeClass('round');
22
+ $('.slider-navs').removeClass('round-border');
23
+ $('.slider-navs').removeClass('semi-round');
24
+ $('.slider-navs').removeClass('square');
25
+ $('.slider-navs').removeClass('square-border');
26
+ $('.slider-navs').removeClass('square-shadow');
27
+
28
+
29
+ $('.slider-navs').addClass(val);
30
+
31
+ }
32
+
33
+ })
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+ $(document).on('click', '#post_grid_metabox .slider_dots_style', function()
43
+ {
44
+
45
+ var val = $(this).val();
46
+ nav = $('.slider-dots');
47
+
48
+ if(nav.hasClass(val)){
49
+ $('.slider-dots').removeClass(val);
50
+
51
+ }
52
+ else{
53
+
54
+ $('.slider-dots').removeClass('round');
55
+ $('.slider-dots').removeClass('round-border');
56
+ $('.slider-dots').removeClass('semi-round');
57
+ $('.slider-dots').removeClass('square');
58
+ $('.slider-dots').removeClass('square-border');
59
+ $('.slider-dots').removeClass('square-shadow');
60
+
61
+
62
+
63
+ $('.slider-dots').addClass(val);
64
+
65
+ }
66
+
67
+ })
68
+
69
+
70
+
71
+ $(document).on('click', '#post_grid_metabox .slider_navs_positon', function()
72
+ {
73
+
74
+ var val = $(this).val();
75
+ nav = $('.slider-navs');
76
+
77
+ if(nav.hasClass(val)){
78
+ $('.slider-navs').removeClass(val);
79
+
80
+ }
81
+ else{
82
+
83
+ $('.slider-navs').removeClass('top-left');
84
+ $('.slider-navs').removeClass('top-right');
85
+ $('.slider-navs').removeClass('middle');
86
+ $('.slider-navs').removeClass('bottom-left');
87
+ $('.slider-navs').removeClass('bottom-right');
88
+
89
+ $('.slider-navs').addClass(val);
90
+
91
+ }
92
+
93
+ })
94
+
95
+
96
+
97
+
98
+
99
+
100
+ $(document).on('click', '#post_grid_metabox .nav_top_search', function()
101
+ {
102
+ //alert('Hello');
103
+
104
+ var grid_type = $(this).val();
105
+
106
+ if(grid_type=='yes'){
107
+
108
+ $('.nav-top-search').fadeIn();
109
+ }
110
+ else{
111
+ $('.nav-top-search').fadeOut();
112
+ }
113
+
114
+ //$('.slider-navs').css('display','none');
115
+
116
+ })
117
+
118
+
119
+
120
+ $(document).on('click', '#post_grid_metabox .per_page_count', function()
121
+ {
122
+ //alert('Hello');
123
+
124
+ var grid_type = $(this).val();
125
+
126
+ if(grid_type=='yes'){
127
+
128
+ $('.per-page-count').fadeIn();
129
+ }
130
+ else{
131
+ $('.per-page-count').fadeOut();
132
+ }
133
+
134
+ //$('.slider-navs').css('display','none');
135
+
136
+ })
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+ $(document).on('click', '#post_grid_metabox .slider_navs', function()
146
+ {
147
+ //alert('Hello');
148
+
149
+ var grid_type = $(this).val();
150
+
151
+ if(grid_type=='true'){
152
+
153
+ $('.slider-navs').fadeIn();
154
+ }
155
+ else{
156
+ $('.slider-navs').fadeOut();
157
+ }
158
+
159
+ //$('.slider-navs').css('display','none');
160
+
161
+ })
162
+
163
+
164
+
165
+
166
+ $(document).on('click', '#post_grid_metabox .slider_dots', function()
167
+ {
168
+ //alert('Hello');
169
+
170
+ var grid_type = $(this).val();
171
+
172
+ if(grid_type=='true'){
173
+
174
+ $('.slider-dots').fadeIn();
175
+ }
176
+ else{
177
+ $('.slider-dots').fadeOut();
178
+ }
179
+
180
+ //$('.slider-navs').css('display','none');
181
+
182
+
183
+
184
+ })
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+ $(document).on('click', '#post_grid_metabox .grid_type', function()
195
+ {
196
+
197
+ var grid_type = $(this).val();
198
+
199
+
200
+ $('.grid-type').css('display','none');
201
+ $('.grid-type-'+grid_type).fadeIn();
202
+
203
+
204
+ })
205
+
206
+
207
+
208
+ $(document).on('click', '#post_grid_metabox .pagination_type', function()
209
+ {
210
+
211
+ var pagination_type = $(this).val();
212
+
213
+
214
+ $('.pagination-type').css('display','none');
215
+ $('.pagination-'+pagination_type).fadeIn();
216
+
217
+
218
+ })
219
+
220
+
221
+
222
+ $(document).on('click', '#post_grid_metabox .nav_filter', function()
223
+ {
224
+
225
+ var nav_filter = $(this).val();
226
+
227
+
228
+ $('.filter-menu').css('display','none');
229
+ $('.filter-menu.'+nav_filter).fadeIn();
230
+
231
+
232
+ })
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+ $(document).on('click', '.post-grid-settings .remove_export_content_layout', function()
242
+ {
243
+
244
+ var file_url = $(this).attr('file-url');
245
+
246
+ if(confirm('Do you really want to remove ?')){
247
+
248
+
249
+
250
+ jQuery.ajax(
251
+ {
252
+ type: 'POST',
253
+ url: post_grid_ajax.post_grid_ajaxurl,
254
+ context:this,
255
+ data: {"action": "post_grid_ajax_remove_export_content_layout","file_url":file_url},
256
+ success: function(data)
257
+ {
258
+ //alert('Deleted');
259
+ $(this).html('Deleted');
260
+
261
+ }
262
+ });
263
+
264
+ }
265
+
266
+ })
267
+
268
+
269
+
270
+
271
+
272
+
273
+ $(document).on('click', '.post-grid-settings .remove-layout', function()
274
+ {
275
+ var layout_id = $(this).attr('layout-id');
276
+
277
+ if(confirm('Do you really want to remove "'+layout_id+'" ?')){
278
+
279
+
280
+
281
+ jQuery.ajax(
282
+ {
283
+ type: 'POST',
284
+ url: post_grid_ajax.post_grid_ajaxurl,
285
+ context:this,
286
+ data: {"action": "post_grid_remove_content_layout_ajax","layout_id":layout_id},
287
+ success: function(data)
288
+ {
289
+ $(this).parent().remove();
290
+
291
+ }
292
+ });
293
+
294
+ }
295
+
296
+
297
+
298
+ })
299
+
300
+
301
+
302
+
303
+
304
+
305
+ $(document).on('click', '#post-grid-upgrade', function()
306
+ {
307
+
308
+ jQuery.ajax(
309
+ {
310
+ type: 'POST',
311
+ context: this,
312
+ url: post_grid_ajax.post_grid_ajaxurl,
313
+ data: {"action": "post_grid_upgrade_action",},
314
+ success: function(data)
315
+ {
316
+ $(this).html('Upgrade Done!');
317
+ $(this).parent().fadeOut();
318
+
319
+
320
+ }
321
+ });
322
+
323
+
324
+ })
325
+
326
+
327
+
328
+ $(document).on('click', '.post-grid-settings .reset-content-layouts', function()
329
+ {
330
+
331
+ if(confirm("Do you really want to reset ?" )){
332
+
333
+ jQuery.ajax(
334
+ {
335
+ type: 'POST',
336
+ context: this,
337
+ url: post_grid_ajax.post_grid_ajaxurl,
338
+ data: {"action": "post_grid_reset_content_layouts",},
339
+ success: function(data)
340
+ {
341
+ $(this).html('Reset Done!');
342
+
343
+
344
+ }
345
+ });
346
+
347
+ }
348
+
349
+ })
350
+
351
+
352
+ $(document).on('click', '.post-grid-settings .import-content-layouts', function()
353
+ {
354
+
355
+ var layouts_data = $('.import-content-layouts-data').val();
356
+
357
+
358
+ jQuery.ajax(
359
+ {
360
+ type: 'POST',
361
+ context: this,
362
+ url: post_grid_ajax.post_grid_ajaxurl,
363
+ data: {"action": "post_grid_import_content_layouts","layouts_data":layouts_data},
364
+ success: function(data)
365
+ {
366
+ $(this).html('Import Done!');
367
+ $('.import-content-layouts-data').val('');
368
+
369
+ //window.open(data,'_blank');
370
+
371
+
372
+ }
373
+ });
374
+
375
+ })
376
+
377
+
378
+
379
+ $(document).on('click', '.post-grid-settings .export-content-layouts', function()
380
+ {
381
+
382
+ jQuery.ajax(
383
+ {
384
+ type: 'POST',
385
+ context: this,
386
+ url: post_grid_ajax.post_grid_ajaxurl,
387
+ data: {"action": "post_grid_export_content_layouts",},
388
+ success: function(data)
389
+ {
390
+ $(this).html('Export Done!');
391
+
392
+ window.open(data,'_blank');
393
+
394
+
395
+ }
396
+ });
397
+
398
+ })
399
+
400
+
401
+
402
+
403
+
404
+
405
+
406
+
407
+ $(document).on('change', '#post_grid_metabox .select-layout-content', function()
408
+ {
409
+ var layout = $(this).val();
410
+
411
+
412
+ jQuery.ajax(
413
+ {
414
+ type: 'POST',
415
+ url: post_grid_ajax.post_grid_ajaxurl,
416
+ data: {"action": "post_grid_layout_content_ajax","layout":layout},
417
+ success: function(data)
418
+ {
419
+ //jQuery(".layout-content").html(data);
420
+ jQuery("#post_grid_metabox .layer-content").html(data);
421
+ }
422
+ });
423
+
424
+ })
425
+
426
+
427
+
428
+ $(document).on('click', '#post_grid_metabox .meta-query-list .remove', function()
429
+ {
430
+
431
+ if(confirm("Do you really want remove ?")){
432
+ $(this).parent().parent().remove();
433
+ }
434
+
435
+
436
+ })
437
+
438
+
439
+
440
+
441
+
442
+
443
+ $(document).on('click', '#post_grid_metabox .post_types', function()
444
+ {
445
+
446
+ var post_types = $(this).val();
447
+ var post_id = $(this).attr('post_id');
448
+
449
+
450
+
451
+ jQuery.ajax(
452
+ {
453
+ type: 'POST',
454
+ url: post_grid_ajax.post_grid_ajaxurl,
455
+ data: {"action": "post_grid_get_categories","post_types":post_types,"post_id":post_id},
456
+ success: function(data)
457
+ {
458
+
459
+ jQuery("#post_grid_metabox .categories-container").html(data);
460
+
461
+ }
462
+ });
463
+
464
+ })
465
+
466
+
467
+
468
+
469
+
470
+
471
+
472
+ $(document).on('click', '#post_grid_metabox .clear-categories', function()
473
+ {
474
+ //alert('Hello');
475
+ $('.categories option').prop('selected', false);
476
+
477
+ })
478
+
479
+
480
+ $(document).on('click', '#post_grid_metabox .clear-post-types', function()
481
+ {
482
+ //alert('Hello');
483
+ $('.post_types option').prop('selected', false);
484
+
485
+ })
486
+
487
+
488
+
489
+
490
+
491
+
492
+ });
493
+
494
+
495
+
496
+
497
+
498
+
499
+
assets/admin/js/scripts.js DELETED
@@ -1,180 +0,0 @@
1
- jQuery(document).ready(function($)
2
- {
3
-
4
-
5
- $(document).on('click', '.post-grid-settings .remove_export_content_layout', function()
6
- {
7
-
8
- var file_url = $(this).attr('file-url');
9
-
10
- if(confirm('Do you really want to remove ?')){
11
-
12
-
13
-
14
- jQuery.ajax(
15
- {
16
- type: 'POST',
17
- url: post_grid_ajax.post_grid_ajaxurl,
18
- context:this,
19
- data: {"action": "post_grid_ajax_remove_export_content_layout","file_url":file_url},
20
- success: function(data)
21
- {
22
- //alert('Deleted');
23
- $(this).html('Deleted');
24
-
25
- }
26
- });
27
-
28
- }
29
-
30
- })
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
- $(document).on('click', '#post-grid-upgrade', function()
40
- {
41
-
42
- jQuery.ajax(
43
- {
44
- type: 'POST',
45
- context: this,
46
- url: post_grid_ajax.post_grid_ajaxurl,
47
- data: {"action": "post_grid_upgrade_action",},
48
- success: function(data)
49
- {
50
- $(this).html('Upgrade Done!');
51
- $(this).parent().fadeOut();
52
-
53
-
54
- }
55
- });
56
-
57
-
58
- })
59
-
60
-
61
-
62
- $(document).on('click', '.post-grid-settings .reset-content-layouts', function()
63
- {
64
-
65
- if(confirm("Do you really want to reset ?" )){
66
-
67
- jQuery.ajax(
68
- {
69
- type: 'POST',
70
- context: this,
71
- url: post_grid_ajax.post_grid_ajaxurl,
72
- data: {"action": "post_grid_reset_content_layouts",},
73
- success: function(data)
74
- {
75
- $(this).html('Reset Done!');
76
-
77
-
78
- }
79
- });
80
-
81
- }
82
-
83
- })
84
-
85
-
86
-
87
-
88
-
89
-
90
- $(document).on('click', '.post-grid-settings .export-content-layouts', function()
91
- {
92
-
93
- jQuery.ajax(
94
- {
95
- type: 'POST',
96
- context: this,
97
- url: post_grid_ajax.post_grid_ajaxurl,
98
- data: {"action": "post_grid_export_content_layouts",},
99
- success: function(data)
100
- {
101
- $(this).html('Export Done!');
102
-
103
- window.open(data,'_blank');
104
-
105
-
106
- }
107
- });
108
-
109
- })
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
- $(document).on('change', '#post_grid_metabox .select-layout-content', function()
119
- {
120
- var layout = $(this).val();
121
-
122
-
123
- jQuery.ajax(
124
- {
125
- type: 'POST',
126
- url: post_grid_ajax.post_grid_ajaxurl,
127
- data: {"action": "post_grid_layout_content_ajax","layout":layout},
128
- success: function(data)
129
- {
130
- //jQuery(".layout-content").html(data);
131
- jQuery("#post_grid_metabox .layer-content").html(data);
132
- }
133
- });
134
-
135
- })
136
-
137
-
138
-
139
- $(document).on('click', '#post_grid_metabox .meta-query-list .remove', function()
140
- {
141
-
142
- if(confirm("Do you really want remove ?")){
143
- $(this).parent().parent().remove();
144
- }
145
-
146
-
147
- })
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
- $(document).on('click', '#post_grid_metabox .clear-post-types', function()
162
- {
163
- //alert('Hello');
164
- $('.post_types option').prop('selected', false);
165
-
166
- })
167
-
168
-
169
-
170
-
171
-
172
-
173
- });
174
-
175
-
176
-
177
-
178
-
179
-
180
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/frontend/css/icons/gplus.png CHANGED
Binary file
assets/frontend/css/owl.carousel-new.css ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Owl Carousel v2.1.0
3
+ * Copyright 2013-2016 David Deutsch
4
+ * Licensed under MIT (https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE)
5
+ */
6
+ /*
7
+ * Owl Carousel - Core
8
+ */
9
+ .owl-carousel {
10
+ display: none;
11
+ width: 100%;
12
+ -webkit-tap-highlight-color: transparent;
13
+ /* position relative and z-index fix webkit rendering fonts issue */
14
+ position: relative;
15
+ z-index: 1; }
16
+ .owl-carousel .owl-stage {
17
+ position: relative;
18
+ -ms-touch-action: pan-Y; }
19
+ .owl-carousel .owl-stage:after {
20
+ content: ".";
21
+ display: block;
22
+ clear: both;
23
+ visibility: hidden;
24
+ line-height: 0;
25
+ height: 0; }
26
+ .owl-carousel .owl-stage-outer {
27
+ position: relative;
28
+ overflow: hidden;
29
+ /* fix for flashing background */
30
+ -webkit-transform: translate3d(0px, 0px, 0px); }
31
+ .owl-carousel .owl-item {
32
+ position: relative;
33
+ min-height: 1px;
34
+ float: left;
35
+ -webkit-backface-visibility: hidden;
36
+ -webkit-tap-highlight-color: transparent;
37
+ -webkit-touch-callout: none; }
38
+ .owl-carousel .owl-item img {
39
+ display: block;
40
+ width: 100%;
41
+ -webkit-transform-style: preserve-3d; }
42
+ .owl-carousel .owl-nav.disabled,
43
+ .owl-carousel .owl-dots.disabled {
44
+ display: none; }
45
+ .owl-carousel .owl-nav .owl-prev,
46
+ .owl-carousel .owl-nav .owl-next,
47
+ .owl-carousel .owl-dot {
48
+ cursor: pointer;
49
+ cursor: hand;
50
+ -webkit-user-select: none;
51
+ -khtml-user-select: none;
52
+ -moz-user-select: none;
53
+ -ms-user-select: none;
54
+ user-select: none; }
55
+ .owl-carousel.owl-loaded {
56
+ display: block; }
57
+ .owl-carousel.owl-loading {
58
+ opacity: 0;
59
+ display: block; }
60
+ .owl-carousel.owl-hidden {
61
+ opacity: 0; }
62
+ .owl-carousel.owl-refresh .owl-item {
63
+ display: none; }
64
+ .owl-carousel.owl-drag .owl-item {
65
+ -webkit-user-select: none;
66
+ -moz-user-select: none;
67
+ -ms-user-select: none;
68
+ user-select: none; }
69
+ .owl-carousel.owl-grab {
70
+ cursor: move;
71
+ cursor: grab; }
72
+ .owl-carousel.owl-rtl {
73
+ direction: rtl; }
74
+ .owl-carousel.owl-rtl .owl-item {
75
+ float: right; }
76
+
77
+ /* No Js */
78
+ .no-js .owl-carousel {
79
+ display: block; }
80
+
81
+ /*
82
+ * Owl Carousel - Animate Plugin
83
+ */
84
+ .owl-carousel .animated {
85
+ -webkit-animation-duration: 1000ms;
86
+ animation-duration: 1000ms;
87
+ -webkit-animation-fill-mode: both;
88
+ animation-fill-mode: both; }
89
+
90
+ .owl-carousel .owl-animated-in {
91
+ z-index: 0; }
92
+
93
+ .owl-carousel .owl-animated-out {
94
+ z-index: 1; }
95
+
96
+ .owl-carousel .fadeOut {
97
+ -webkit-animation-name: fadeOut;
98
+ animation-name: fadeOut; }
99
+
100
+ @-webkit-keyframes fadeOut {
101
+ 0% {
102
+ opacity: 1; }
103
+ 100% {
104
+ opacity: 0; } }
105
+
106
+ @keyframes fadeOut {
107
+ 0% {
108
+ opacity: 1; }
109
+ 100% {
110
+ opacity: 0; } }
111
+
112
+ /*
113
+ * Owl Carousel - Auto Height Plugin
114
+ */
115
+ .owl-height {
116
+ transition: height 500ms ease-in-out; }
117
+
118
+ /*
119
+ * Owl Carousel - Lazy Load Plugin
120
+ */
121
+ .owl-carousel .owl-item .owl-lazy {
122
+ opacity: 0;
123
+ transition: opacity 400ms ease; }
124
+
125
+ .owl-carousel .owl-item img.owl-lazy {
126
+ -webkit-transform-style: preserve-3d;
127
+ transform-style: preserve-3d; }
128
+
129
+ /*
130
+ * Owl Carousel - Video Plugin
131
+ */
132
+ .owl-carousel .owl-video-wrapper {
133
+ position: relative;
134
+ height: 100%;
135
+ background: #000; }
136
+
137
+ .owl-carousel .owl-video-play-icon {
138
+ position: absolute;
139
+ height: 80px;
140
+ width: 80px;
141
+ left: 50%;
142
+ top: 50%;
143
+ margin-left: -40px;
144
+ margin-top: -40px;
145
+ background: url("owl.video.play.png") no-repeat;
146
+ cursor: pointer;
147
+ z-index: 1;
148
+ -webkit-backface-visibility: hidden;
149
+ transition: -webkit-transform 100ms ease;
150
+ transition: transform 100ms ease; }
151
+
152
+ .owl-carousel .owl-video-play-icon:hover {
153
+ -webkit-transform: scale(1.3, 1.3);
154
+ -ms-transform: scale(1.3, 1.3);
155
+ transform: scale(1.3, 1.3); }
156
+
157
+ .owl-carousel .owl-video-playing .owl-video-tn,
158
+ .owl-carousel .owl-video-playing .owl-video-play-icon {
159
+ display: none; }
160
+
161
+ .owl-carousel .owl-video-tn {
162
+ opacity: 0;
163
+ height: 100%;
164
+ background-position: center center;
165
+ background-repeat: no-repeat;
166
+ background-size: contain;
167
+ transition: opacity 400ms ease; }
168
+
169
+ .owl-carousel .owl-video-frame {
170
+ position: relative;
171
+ z-index: 1;
172
+ height: 100%;
173
+ width: 100%; }
assets/frontend/css/owl.carousel.css CHANGED
@@ -1,71 +1,173 @@
1
- /*
2
- * Core Owl Carousel CSS File
3
- * v1.3.3
 
4
  */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
- /* clearfix */
7
- .owl-carousel .owl-wrapper:after {
8
- content: ".";
9
- display: block;
10
- clear: both;
11
- visibility: hidden;
12
- line-height: 0;
13
- height: 0;
14
- }
15
- /* display none until init */
16
- .owl-carousel{
17
- display: none;
18
- position: relative;
19
- width: 100%;
20
- -ms-touch-action: pan-y;
21
- }
22
- .owl-carousel .owl-wrapper{
23
- display: none;
24
- position: relative;
25
- -webkit-transform: translate3d(0px, 0px, 0px);
26
- }
27
- .owl-carousel .owl-wrapper-outer{
28
- overflow: hidden;
29
- position: relative;
30
- width: 100%;
31
- }
32
- .owl-carousel .owl-wrapper-outer.autoHeight{
33
- -webkit-transition: height 500ms ease-in-out;
34
- -moz-transition: height 500ms ease-in-out;
35
- -ms-transition: height 500ms ease-in-out;
36
- -o-transition: height 500ms ease-in-out;
37
- transition: height 500ms ease-in-out;
38
- }
39
-
40
- .owl-carousel .owl-item{
41
- float: left;
42
- }
43
- .owl-controls .owl-page,
44
- .owl-controls .owl-buttons div{
45
- cursor: pointer;
46
- }
47
- .owl-controls {
48
- -webkit-user-select: none;
49
- -khtml-user-select: none;
50
- -moz-user-select: none;
51
- -ms-user-select: none;
52
- user-select: none;
53
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
54
- }
55
-
56
- /* mouse grab icon */
57
- .grabbing {
58
- cursor:url(grabbing.png) 8 8, move;
59
- }
60
-
61
- /* fix */
62
- .owl-carousel .owl-wrapper,
63
- .owl-carousel .owl-item{
64
- -webkit-backface-visibility: hidden;
65
- -moz-backface-visibility: hidden;
66
- -ms-backface-visibility: hidden;
67
- -webkit-transform: translate3d(0,0,0);
68
- -moz-transform: translate3d(0,0,0);
69
- -ms-transform: translate3d(0,0,0);
70
- }
71
 
 
 
 
 
 
1
+ /**
2
+ * Owl Carousel v2.1.0
3
+ * Copyright 2013-2016 David Deutsch
4
+ * Licensed under MIT (https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE)
5
  */
6
+ /*
7
+ * Owl Carousel - Core
8
+ */
9
+ .owl-carousel {
10
+ display: none;
11
+ width: 100%;
12
+ -webkit-tap-highlight-color: transparent;
13
+ /* position relative and z-index fix webkit rendering fonts issue */
14
+ position: relative;
15
+ z-index: 1; }
16
+ .owl-carousel .owl-stage {
17
+ position: relative;
18
+ -ms-touch-action: pan-Y; }
19
+ .owl-carousel .owl-stage:after {
20
+ content: ".";
21
+ display: block;
22
+ clear: both;
23
+ visibility: hidden;
24
+ line-height: 0;
25
+ height: 0; }
26
+ .owl-carousel .owl-stage-outer {
27
+ position: relative;
28
+ overflow: hidden;
29
+ /* fix for flashing background */
30
+ -webkit-transform: translate3d(0px, 0px, 0px); }
31
+ .owl-carousel .owl-item {
32
+ position: relative;
33
+ min-height: 1px;
34
+ float: left;
35
+ -webkit-backface-visibility: hidden;
36
+ -webkit-tap-highlight-color: transparent;
37
+ -webkit-touch-callout: none; }
38
+ .owl-carousel .owl-item img {
39
+ display: block;
40
+ width: 100%;
41
+ -webkit-transform-style: preserve-3d; }
42
+ .owl-carousel .owl-nav.disabled,
43
+ .owl-carousel .owl-dots.disabled {
44
+ display: none; }
45
+ .owl-carousel .owl-nav .owl-prev,
46
+ .owl-carousel .owl-nav .owl-next,
47
+ .owl-carousel .owl-dot {
48
+ cursor: pointer;
49
+ cursor: hand;
50
+ -webkit-user-select: none;
51
+ -khtml-user-select: none;
52
+ -moz-user-select: none;
53
+ -ms-user-select: none;
54
+ user-select: none; }
55
+ .owl-carousel.owl-loaded {
56
+ display: block; }
57
+ .owl-carousel.owl-loading {
58
+ opacity: 0;
59
+ display: block; }
60
+ .owl-carousel.owl-hidden {
61
+ opacity: 0; }
62
+ .owl-carousel.owl-refresh .owl-item {
63
+ display: none; }
64
+ .owl-carousel.owl-drag .owl-item {
65
+ -webkit-user-select: none;
66
+ -moz-user-select: none;
67
+ -ms-user-select: none;
68
+ user-select: none; }
69
+ .owl-carousel.owl-grab {
70
+ cursor: move;
71
+ cursor: grab; }
72
+ .owl-carousel.owl-rtl {
73
+ direction: rtl; }
74
+ .owl-carousel.owl-rtl .owl-item {
75
+ float: right; }
76
+
77
+ /* No Js */
78
+ .no-js .owl-carousel {
79
+ display: block; }
80
+
81
+ /*
82
+ * Owl Carousel - Animate Plugin
83
+ */
84
+ .owl-carousel .animated {
85
+ -webkit-animation-duration: 1000ms;
86
+ animation-duration: 1000ms;
87
+ -webkit-animation-fill-mode: both;
88
+ animation-fill-mode: both; }
89
+
90
+ .owl-carousel .owl-animated-in {
91
+ z-index: 0; }
92
+
93
+ .owl-carousel .owl-animated-out {
94
+ z-index: 1; }
95
+
96
+ .owl-carousel .fadeOut {
97
+ -webkit-animation-name: fadeOut;
98
+ animation-name: fadeOut; }
99
+
100
+ @-webkit-keyframes fadeOut {
101
+ 0% {
102
+ opacity: 1; }
103
+ 100% {
104
+ opacity: 0; } }
105
+
106
+ @keyframes fadeOut {
107
+ 0% {
108
+ opacity: 1; }
109
+ 100% {
110
+ opacity: 0; } }
111
+
112
+ /*
113
+ * Owl Carousel - Auto Height Plugin
114
+ */
115
+ .owl-height {
116
+ transition: height 500ms ease-in-out; }
117
+
118
+ /*
119
+ * Owl Carousel - Lazy Load Plugin
120
+ */
121
+ .owl-carousel .owl-item .owl-lazy {
122
+ opacity: 0;
123
+ transition: opacity 400ms ease; }
124
+
125
+ .owl-carousel .owl-item img.owl-lazy {
126
+ -webkit-transform-style: preserve-3d;
127
+ transform-style: preserve-3d; }
128
+
129
+ /*
130
+ * Owl Carousel - Video Plugin
131
+ */
132
+ .owl-carousel .owl-video-wrapper {
133
+ position: relative;
134
+ height: 100%;
135
+ background: #000; }
136
+
137
+ .owl-carousel .owl-video-play-icon {
138
+ position: absolute;
139
+ height: 80px;
140
+ width: 80px;
141
+ left: 50%;
142
+ top: 50%;
143
+ margin-left: -40px;
144
+ margin-top: -40px;
145
+ background: url("owl.video.play.png") no-repeat;
146
+ cursor: pointer;
147
+ z-index: 1;
148
+ -webkit-backface-visibility: hidden;
149
+ transition: -webkit-transform 100ms ease;
150
+ transition: transform 100ms ease; }
151
+
152
+ .owl-carousel .owl-video-play-icon:hover {
153
+ -webkit-transform: scale(1.3, 1.3);
154
+ -ms-transform: scale(1.3, 1.3);
155
+ transform: scale(1.3, 1.3); }
156
+
157
+ .owl-carousel .owl-video-playing .owl-video-tn,
158
+ .owl-carousel .owl-video-playing .owl-video-play-icon {
159
+ display: none; }
160
 
161
+ .owl-carousel .owl-video-tn {
162
+ opacity: 0;
163
+ height: 100%;
164
+ background-position: center center;
165
+ background-repeat: no-repeat;
166
+ background-size: contain;
167
+ transition: opacity 400ms ease; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
168
 
169
+ .owl-carousel .owl-video-frame {
170
+ position: relative;
171
+ z-index: 1;
172
+ height: 100%;
173
+ width: 100%; }
assets/frontend/css/owl.theme.css DELETED
@@ -1,79 +0,0 @@
1
- /*
2
- * Owl Carousel Owl Demo Theme
3
- * v1.3.3
4
- */
5
-
6
- .owl-theme .owl-controls{
7
- margin-top: 10px;
8
- text-align: center;
9
- }
10
-
11
- /* Styling Next and Prev buttons */
12
-
13
- .owl-theme .owl-controls .owl-buttons div{
14
- color: #FFF;
15
- display: inline-block;
16
- zoom: 1;
17
- *display: inline;/*IE7 life-saver */
18
- margin: 5px;
19
- padding: 3px 10px;
20
- font-size: 12px;
21
- -webkit-border-radius: 30px;
22
- -moz-border-radius: 30px;
23
- border-radius: 30px;
24
- background: #869791;
25
- filter: Alpha(Opacity=50);/*IE7 fix*/
26
- opacity: 0.5;
27
- }
28
- /* Clickable class fix problem with hover on touch devices */
29
- /* Use it for non-touch hover action */
30
- .owl-theme .owl-controls.clickable .owl-buttons div:hover{
31
- filter: Alpha(Opacity=100);/*IE7 fix*/
32
- opacity: 1;
33
- text-decoration: none;
34
- }
35
-
36
- /* Styling Pagination*/
37
-
38
- .owl-theme .owl-controls .owl-page{
39
- display: inline-block;
40
- zoom: 1;
41
- *display: inline;/*IE7 life-saver */
42
- }
43
- .owl-theme .owl-controls .owl-page span{
44
- display: block;
45
- width: 12px;
46
- height: 12px;
47
- margin: 5px 7px;
48
- filter: Alpha(Opacity=50);/*IE7 fix*/
49
- opacity: 0.5;
50
- -webkit-border-radius: 20px;
51
- -moz-border-radius: 20px;
52
- border-radius: 20px;
53
- background: #869791;
54
- }
55
-
56
- .owl-theme .owl-controls .owl-page.active span,
57
- .owl-theme .owl-controls.clickable .owl-page:hover span{
58
- filter: Alpha(Opacity=100);/*IE7 fix*/
59
- opacity: 1;
60
- }
61
-
62
- /* If PaginationNumbers is true */
63
-
64
- .owl-theme .owl-controls .owl-page span.owl-numbers{
65
- height: auto;
66
- width: auto;
67
- color: #FFF;
68
- padding: 2px 10px;
69
- font-size: 12px;
70
- -webkit-border-radius: 30px;
71
- -moz-border-radius: 30px;
72
- border-radius: 30px;
73
- }
74
-
75
- /* preloading images */
76
- .owl-item.loading{
77
- min-height: 150px;
78
- background: url(AjaxLoader.gif) no-repeat center center
79
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/frontend/css/{style.css → style-new.css} RENAMED
@@ -2,7 +2,17 @@
2
  /* CSS Document */
3
 
4
  .post-grid{
5
- overflow:hidden;}
 
 
 
 
 
 
 
 
 
 
6
 
7
  .post-grid .grid-items {
8
  margin: 0 auto;
@@ -49,7 +59,7 @@
49
  /*navigation top*/
50
 
51
  .post-grid .grid-nav-top {
52
-
53
  }
54
 
55
  .post-grid .grid-nav-top .nav-filter {
@@ -73,13 +83,32 @@
73
 
74
  /*nav-search*/
75
  .post-grid .grid-nav-top .nav-search {
 
76
  padding: 10px 0;
77
  text-align: center;
78
  }
79
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  .post-grid .grid-nav-top .nav-search .search {
81
  background: rgb(255, 255, 255) url("search.png") no-repeat scroll 4px 6px;
 
 
 
 
82
  padding-left: 35px;
 
83
  }
84
 
85
  .post-grid .grid-nav-top .nav-search .loading {
@@ -88,6 +117,16 @@
88
  }
89
 
90
 
 
 
 
 
 
 
 
 
 
 
91
 
92
  /*pagination*/
93
 
@@ -99,8 +138,12 @@
99
  }
100
  .post-grid .pagination .current {
101
  border: medium none !important;
 
102
  }
103
 
 
 
 
104
 
105
  .post-grid .pagination .prev {}
106
  .post-grid .pagination .next {}
@@ -117,17 +160,28 @@
117
  }
118
 
119
  .post-grid .pagination.dark .page-numbers {
120
- background: rgba(198, 198, 198, 0.7) none repeat scroll 0 0;
121
  border: 1px solid rgb(153, 153, 153);
122
  color: rgb(255, 255, 255);
 
123
  font-size: 14px;
124
  line-height: normal;
125
  padding: 3px 10px;
126
  text-decoration: none;
 
 
 
 
 
 
 
127
  cursor: pointer;
 
 
128
  }
129
 
130
 
 
131
  /*load-more*/
132
  .post-grid .pagination .load-more {
133
  background: rgba(220, 220, 220, 0.3) none repeat scroll 0 0;
@@ -141,6 +195,9 @@
141
 
142
 
143
 
 
 
 
144
  .post-grid .pagination .load-more.loading {
145
  transform: scale(0.8);
146
  transition: all 1s ease 0s;
@@ -166,18 +223,206 @@
166
  cursor: pointer;
167
  }
168
 
 
169
  .post-grid .pagination.dark .pager {
170
- background: rgba(198, 198, 198, 0.7) none repeat scroll 0 0;
171
  border: 1px solid rgb(153, 153, 153);
172
  color: rgb(255, 255, 255);
 
173
  font-size: 14px;
174
  line-height: normal;
175
  padding: 3px 10px;
176
  text-decoration: none;
177
- cursor: pointer;
178
  }
179
 
180
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
  /*Grid Element CSS*/
182
 
183
  .post-grid .element.wc_add_to_cart {}
2
  /* CSS Document */
3
 
4
  .post-grid{
5
+ overflow:hidden;
6
+
7
+ }
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
 
17
  .post-grid .grid-items {
18
  margin: 0 auto;
59
  /*navigation top*/
60
 
61
  .post-grid .grid-nav-top {
62
+ text-align: center;
63
  }
64
 
65
  .post-grid .grid-nav-top .nav-filter {
83
 
84
  /*nav-search*/
85
  .post-grid .grid-nav-top .nav-search {
86
+ display: inline-block;
87
  padding: 10px 0;
88
  text-align: center;
89
  }
90
 
91
+
92
+
93
+ .post-grid .grid-nav-top .nav-search .submit-search {
94
+ background: #ddd none repeat scroll 0 0;
95
+ cursor: pointer;
96
+ display: inline-block;
97
+ font-size: 13px;
98
+ height: 24px;
99
+ margin: 0;
100
+ padding: 5px 10px;
101
+ }
102
+
103
+
104
  .post-grid .grid-nav-top .nav-search .search {
105
  background: rgb(255, 255, 255) url("search.png") no-repeat scroll 4px 6px;
106
+ border: 1px solid #ddd;
107
+ border-radius: 0;
108
+ display: inline-block;
109
+ height: 20px;
110
  padding-left: 35px;
111
+ vertical-align: top;
112
  }
113
 
114
  .post-grid .grid-nav-top .nav-search .loading {
117
  }
118
 
119
 
120
+ .post-grid .grid-nav-top .nav-per-page-count {
121
+ display: inline-block;
122
+ float: right;
123
+ }
124
+
125
+
126
+
127
+
128
+
129
+
130
 
131
  /*pagination*/
132
 
138
  }
139
  .post-grid .pagination .current {
140
  border: medium none !important;
141
+ opacity: 0.6;
142
  }
143
 
144
+ .post-grid .pagination .page-numbers:hover{
145
+ opacity: 0.6;
146
+ }
147
 
148
  .post-grid .pagination .prev {}
149
  .post-grid .pagination .next {}
160
  }
161
 
162
  .post-grid .pagination.dark .page-numbers {
163
+ background: #666 none repeat scroll 0 0;
164
  border: 1px solid rgb(153, 153, 153);
165
  color: rgb(255, 255, 255);
166
+ cursor: pointer;
167
  font-size: 14px;
168
  line-height: normal;
169
  padding: 3px 10px;
170
  text-decoration: none;
171
+ }
172
+
173
+
174
+ .post-grid .pagination .infinite-scroll {
175
+ background: rgba(220, 220, 220, 0.3) none repeat scroll 0 0;
176
+ border: 1px solid rgb(255, 255, 255);
177
+ color: rgb(255, 255, 255);
178
  cursor: pointer;
179
+ display: inline-block;
180
+ padding: 5px 15px;
181
  }
182
 
183
 
184
+
185
  /*load-more*/
186
  .post-grid .pagination .load-more {
187
  background: rgba(220, 220, 220, 0.3) none repeat scroll 0 0;
195
 
196
 
197
 
198
+
199
+
200
+
201
  .post-grid .pagination .load-more.loading {
202
  transform: scale(0.8);
203
  transition: all 1s ease 0s;
223
  cursor: pointer;
224
  }
225
 
226
+
227
  .post-grid .pagination.dark .pager {
228
+ background: #666 none repeat scroll 0 0;
229
  border: 1px solid rgb(153, 153, 153);
230
  color: rgb(255, 255, 255);
231
+ cursor: pointer;
232
  font-size: 14px;
233
  line-height: normal;
234
  padding: 3px 10px;
235
  text-decoration: none;
 
236
  }
237
 
238
 
239
+
240
+ .post-grid .pagination .pager.active {
241
+ border: medium none !important;
242
+ opacity: 0.6;
243
+ }
244
+
245
+ .post-grid .pagination .pager:hover{
246
+ opacity: 0.6;
247
+ }
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+ .post-grid .owl-dots {
259
+ margin: 30px 0 0;
260
+ text-align: center;
261
+ }
262
+
263
+ .post-grid .owl-dots .owl-dot {
264
+ background: #869791 none repeat scroll 0 0;
265
+ display: inline-block;
266
+ margin: 5px;
267
+ opacity: 0.5;
268
+ padding: 8px;
269
+ }
270
+
271
+ .post-grid .owl-dots .owl-dot:hover, .post-grid .owl-dots .owl-dot.active{
272
+ opacity: 1;
273
+ }
274
+
275
+ .post-grid .owl-dots.round .owl-dot {
276
+ border-radius: 50%;
277
+ }
278
+ .post-grid .owl-dots.round-border .owl-dot {
279
+ border: 1px solid #999;
280
+ border-radius: 50%;
281
+ }
282
+ .post-grid .owl-dots.semi-round .owl-dot {
283
+ border-radius: 4px;
284
+ }
285
+ .post-grid .owl-dots.square .owl-dot {
286
+ border-radius: 0;
287
+ }
288
+ .post-grid .owl-dots.square-border .owl-dot {
289
+ border: 1px solid #999;
290
+ }
291
+ .post-grid .owl-dots.square-shadow .owl-dot {
292
+ border-radius: 0;
293
+ box-shadow: 0 5px 10px -2px #999;
294
+ }
295
+
296
+
297
+ .post-grid .owl-nav {
298
+ position: absolute;
299
+ }
300
+ .post-grid .owl-nav .owl-next {
301
+ float: right;
302
+ }
303
+
304
+ .post-grid .owl-nav .owl-prev {
305
+ float: left;
306
+ }
307
+
308
+
309
+ .post-grid .owl-nav .owl-prev, .post-grid .owl-nav .owl-next {
310
+ background: #f00 none repeat scroll 0 0;
311
+ border: 1px solid #ddd;
312
+ display: inline-block;
313
+ left: 0;
314
+ margin: 0 5px;
315
+ }
316
+
317
+ .post-grid .owl-nav .owl-prev {
318
+ background:rgb(255, 255, 255) url("images/arrow-prev.png") no-repeat scroll 3px 7px;
319
+
320
+ }
321
+ .post-grid .owl-nav .owl-next {
322
+ background:rgb(255, 255, 255) url("images/arrow-next.png") no-repeat scroll 3px 7px;
323
+ }
324
+
325
+
326
+
327
+
328
+
329
+ .post-grid .owl-nav.top-left {
330
+ left: 5px;
331
+ top: 10px;
332
+ }
333
+ .post-grid .owl-nav.top-right {
334
+ right: 5px;
335
+ top: 10px;
336
+ }
337
+ .post-grid .owl-nav.middle {
338
+ left: 0;
339
+ top: 40%;
340
+ width: 100%;
341
+ }
342
+ .post-grid .owl-nav.bottom-left {
343
+ bottom: 10px;
344
+ left: 5px;
345
+ }
346
+ .post-grid .owl-nav.bottom-right {
347
+ bottom: 10px;
348
+ right: 5px;
349
+ }
350
+
351
+
352
+ /*navs style*/
353
+
354
+ .post-grid .owl-nav.round .owl-prev, .post-grid .owl-nav.round .owl-next {
355
+ border-radius: 50%;
356
+ height: 35px;
357
+ width: 35px;
358
+ }
359
+ .post-grid .owl-nav.round-border .owl-prev, .post-grid .owl-nav.round-border .owl-next {
360
+ border: 2px solid #999;
361
+ border-radius: 50%;
362
+ height: 35px;
363
+ width: 35px;
364
+ }
365
+
366
+ .post-grid .owl-nav.semi-round .owl-prev, .post-grid .owl-nav.semi-round .owl-next {
367
+ border-radius: 5px;
368
+ box-shadow: 0 0 7px -1px #ddd;
369
+ height: 35px;
370
+ width: 35px;
371
+ }
372
+ .post-grid .owl-nav.square .owl-prev, .post-grid .owl-nav.square .owl-next {
373
+ box-shadow: 0 0 4px 0 #ddd;
374
+ height: 35px;
375
+ width: 35px;
376
+ }
377
+ .post-grid .owl-nav.square-border .owl-prev, .post-grid .owl-nav.square-border .owl-next {
378
+ border: 2px solid #999;
379
+ height: 35px;
380
+ width: 35px;
381
+ }
382
+ .post-grid .owl-nav.square-shadow .owl-prev, .post-grid .owl-nav.square-shadow .owl-next {
383
+ box-shadow: 0 0 3px 2px #ddd;
384
+ height: 35px;
385
+ width: 35px;
386
+ }
387
+
388
+
389
+ .owl-carousel .owl-nav .owl-prev, .owl-carousel .owl-nav .owl-next, .owl-carousel .owl-dot {
390
+ opacity: 0.5;
391
+ }
392
+
393
+ .owl-carousel .owl-nav .owl-prev:hover, .owl-carousel .owl-nav .owl-next:hover {
394
+ opacity: 1;
395
+ }
396
+
397
+
398
+
399
+
400
+
401
+
402
+
403
+ .post-grid.slider{}
404
+
405
+ .post-grid.slider .grid-items {
406
+ padding-top: 40px;
407
+ }
408
+
409
+
410
+
411
+
412
+
413
+
414
+
415
+
416
+
417
+
418
+
419
+
420
+
421
+
422
+
423
+
424
+
425
+
426
  /*Grid Element CSS*/
427
 
428
  .post-grid .element.wc_add_to_cart {}
assets/frontend/js/imagesloaded.pkgd.js ADDED
@@ -0,0 +1,487 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * imagesLoaded PACKAGED v4.1.0
3
+ * JavaScript is all like "You images are done yet or what?"
4
+ * MIT License
5
+ */
6
+
7
+ /**
8
+ * EvEmitter v1.0.1
9
+ * Lil' event emitter
10
+ * MIT License
11
+ */
12
+
13
+ /* jshint unused: true, undef: true, strict: true */
14
+
15
+ ( function( global, factory ) {
16
+ // universal module definition
17
+ /* jshint strict: false */ /* globals define, module */
18
+ if ( typeof define == 'function' && define.amd ) {
19
+ // AMD - RequireJS
20
+ define( 'ev-emitter/ev-emitter',factory );
21
+ } else if ( typeof module == 'object' && module.exports ) {
22
+ // CommonJS - Browserify, Webpack
23
+ module.exports = factory();
24
+ } else {
25
+ // Browser globals
26
+ global.EvEmitter = factory();
27
+ }
28
+
29
+ }( this, function() {
30
+
31
+
32
+
33
+ function EvEmitter() {}
34
+
35
+ var proto = EvEmitter.prototype;
36
+
37
+ proto.on = function( eventName, listener ) {
38
+ if ( !eventName || !listener ) {
39
+ return;
40
+ }
41
+ // set events hash
42
+ var events = this._events = this._events || {};
43
+ // set listeners array
44
+ var listeners = events[ eventName ] = events[ eventName ] || [];
45
+ // only add once
46
+ if ( listeners.indexOf( listener ) == -1 ) {
47
+ listeners.push( listener );
48
+ }
49
+
50
+ return this;
51
+ };
52
+
53
+ proto.once = function( eventName, listener ) {
54
+ if ( !eventName || !listener ) {
55
+ return;
56
+ }
57
+ // add event
58
+ this.on( eventName, listener );
59
+ // set once flag
60
+ // set onceEvents hash
61
+ var onceEvents = this._onceEvents = this._onceEvents || {};
62
+ // set onceListeners array
63
+ var onceListeners = onceEvents[ eventName ] = onceEvents[ eventName ] || [];
64
+ // set flag
65
+ onceListeners[ listener ] = true;
66
+
67
+ return this;
68
+ };
69
+
70
+ proto.off = function( eventName, listener ) {
71
+ var listeners = this._events && this._events[ eventName ];
72
+ if ( !listeners || !listeners.length ) {
73
+ return;
74
+ }
75
+ var index = listeners.indexOf( listener );
76
+ if ( index != -1 ) {
77
+ listeners.splice( index, 1 );
78
+ }
79
+
80
+ return this;
81
+ };
82
+
83
+ proto.emitEvent = function( eventName, args ) {
84
+ var listeners = this._events && this._events[ eventName ];
85
+ if ( !listeners || !listeners.length ) {
86
+ return;
87
+ }
88
+ var i = 0;
89
+ var listener = listeners[i];
90
+ args = args || [];
91
+ // once stuff
92
+ var onceListeners = this._onceEvents && this._onceEvents[ eventName ];
93
+
94
+ while ( listener ) {
95
+ var isOnce = onceListeners && onceListeners[ listener ];
96
+ if ( isOnce ) {
97
+ // remove listener
98
+ // remove before trigger to prevent recursion
99
+ this.off( eventName, listener );
100
+ // unset once flag
101
+ delete onceListeners[ listener ];
102
+ }
103
+ // trigger listener
104
+ listener.apply( this, args );
105
+ // get next listener
106
+ i += isOnce ? 0 : 1;
107
+ listener = listeners[i];
108
+ }
109
+
110
+ return this;
111
+ };
112
+
113
+ return EvEmitter;
114
+
115
+ }));
116
+
117
+ /*!
118
+ * imagesLoaded v4.1.0
119
+ * JavaScript is all like "You images are done yet or what?"
120
+ * MIT License
121
+ */
122
+
123
+ ( function( window, factory ) { 'use strict';
124
+ // universal module definition
125
+
126
+ /*global define: false, module: false, require: false */
127
+
128
+ if ( typeof define == 'function' && define.amd ) {
129
+ // AMD
130
+ define( [
131
+ 'ev-emitter/ev-emitter'
132
+ ], function( EvEmitter ) {
133
+ return factory( window, EvEmitter );
134
+ });
135
+ } else if ( typeof module == 'object' && module.exports ) {
136
+ // CommonJS
137
+ module.exports = factory(
138
+ window,
139
+ require('ev-emitter')
140
+ );
141
+ } else {
142
+ // browser global
143
+ window.imagesLoaded = factory(
144
+ window,
145
+ window.EvEmitter
146
+ );
147
+ }
148
+
149
+ })( window,
150
+
151
+ // -------------------------- factory -------------------------- //
152
+
153
+ function factory( window, EvEmitter ) {
154
+
155
+
156
+
157
+ var $ = window.jQuery;
158
+ var console = window.console;
159
+
160
+ // -------------------------- helpers -------------------------- //
161
+
162
+ // extend objects
163
+ function extend( a, b ) {
164
+ for ( var prop in b ) {
165
+ a[ prop ] = b[ prop ];
166
+ }
167
+ return a;
168
+ }
169
+
170
+ // turn element or nodeList into an array
171
+ function makeArray( obj ) {
172
+ var ary = [];
173
+ if ( Array.isArray( obj ) ) {
174
+ // use object if already an array
175
+ ary = obj;
176
+ } else if ( typeof obj.length == 'number' ) {
177
+ // convert nodeList to array
178
+ for ( var i=0; i < obj.length; i++ ) {
179
+ ary.push( obj[i] );
180
+ }
181
+ } else {
182
+ // array of single index
183
+ ary.push( obj );
184
+ }
185
+ return ary;
186
+ }
187
+
188
+ // -------------------------- imagesLoaded -------------------------- //
189
+
190
+ /**
191
+ * @param {Array, Element, NodeList, String} elem
192
+ * @param {Object or Function} options - if function, use as callback
193
+ * @param {Function} onAlways - callback function
194
+ */
195
+ function ImagesLoaded( elem, options, onAlways ) {
196
+ // coerce ImagesLoaded() without new, to be new ImagesLoaded()
197
+ if ( !( this instanceof ImagesLoaded ) ) {
198
+ return new ImagesLoaded( elem, options, onAlways );
199
+ }
200
+ // use elem as selector string
201
+ if ( typeof elem == 'string' ) {
202
+ elem = document.querySelectorAll( elem );
203
+ }
204
+
205
+ this.elements = makeArray( elem );
206
+ this.options = extend( {}, this.options );
207
+
208
+ if ( typeof options == 'function' ) {
209
+ onAlways = options;
210
+ } else {
211
+ extend( this.options, options );
212
+ }
213
+
214
+ if ( onAlways ) {
215
+ this.on( 'always', onAlways );
216
+ }
217
+
218
+ this.getImages();
219
+
220
+ if ( $ ) {
221
+ // add jQuery Deferred object
222
+ this.jqDeferred = new $.Deferred();
223
+ }
224
+
225
+ // HACK check async to allow time to bind listeners
226
+ setTimeout( function() {
227
+ this.check();
228
+ }.bind( this ));
229
+ }
230
+
231
+ ImagesLoaded.prototype = Object.create( EvEmitter.prototype );
232
+
233
+ ImagesLoaded.prototype.options = {};
234
+
235
+ ImagesLoaded.prototype.getImages = function() {
236
+ this.images = [];
237
+
238
+ // filter & find items if we have an item selector
239
+ this.elements.forEach( this.addElementImages, this );
240
+ };
241
+
242
+ /**
243
+ * @param {Node} element
244
+ */
245
+ ImagesLoaded.prototype.addElementImages = function( elem ) {
246
+ // filter siblings
247
+ if ( elem.nodeName == 'IMG' ) {
248
+ this.addImage( elem );
249
+ }
250
+ // get background image on element
251
+ if ( this.options.background === true ) {
252
+ this.addElementBackgroundImages( elem );
253
+ }
254
+
255
+ // find children
256
+ // no non-element nodes, #143
257
+ var nodeType = elem.nodeType;
258
+ if ( !nodeType || !elementNodeTypes[ nodeType ] ) {
259
+ return;
260
+ }
261
+ var childImgs = elem.querySelectorAll('img');
262
+ // concat childElems to filterFound array
263
+ for ( var i=0; i < childImgs.length; i++ ) {
264
+ var img = childImgs[i];
265
+ this.addImage( img );
266
+ }
267
+
268
+ // get child background images
269
+ if ( typeof this.options.background == 'string' ) {
270
+ var children = elem.querySelectorAll( this.options.background );
271
+ for ( i=0; i < children.length; i++ ) {
272
+ var child = children[i];
273
+ this.addElementBackgroundImages( child );
274
+ }
275
+ }
276
+ };
277
+
278
+ var elementNodeTypes = {
279
+ 1: true,
280
+ 9: true,
281
+ 11: true
282
+ };
283
+
284
+ ImagesLoaded.prototype.addElementBackgroundImages = function( elem ) {
285
+ var style = getComputedStyle( elem );
286
+ if ( !style ) {
287
+ // Firefox returns null if in a hidden iframe https://bugzil.la/548397
288
+ return;
289
+ }
290
+ // get url inside url("...")
291
+ var reURL = /url\((['"])?(.*?)\1\)/gi;
292
+ var matches = reURL.exec( style.backgroundImage );
293
+ while ( matches !== null ) {
294
+ var url = matches && matches[2];
295
+ if ( url ) {
296
+ this.addBackground( url, elem );
297
+ }
298
+ matches = reURL.exec( style.backgroundImage );
299
+ }
300
+ };
301
+
302
+ /**
303
+ * @param {Image} img
304
+ */
305
+ ImagesLoaded.prototype.addImage = function( img ) {
306
+ var loadingImage = new LoadingImage( img );
307
+ this.images.push( loadingImage );
308
+ };
309
+
310
+ ImagesLoaded.prototype.addBackground = function( url, elem ) {
311
+ var background = new Background( url, elem );
312
+ this.images.push( background );
313
+ };
314
+
315
+ ImagesLoaded.prototype.check = function() {
316
+ var _this = this;
317
+ this.progressedCount = 0;
318
+ this.hasAnyBroken = false;
319
+ // complete if no images
320
+ if ( !this.images.length ) {
321
+ this.complete();
322
+ return;
323
+ }
324
+
325
+ function onProgress( image, elem, message ) {
326
+ // HACK - Chrome triggers event before object properties have changed. #83
327
+ setTimeout( function() {
328
+ _this.progress( image, elem, message );
329
+ });
330
+ }
331
+
332
+ this.images.forEach( function( loadingImage ) {
333
+ loadingImage.once( 'progress', onProgress );
334
+ loadingImage.check();
335
+ });
336
+ };
337
+
338
+ ImagesLoaded.prototype.progress = function( image, elem, message ) {
339
+ this.progressedCount++;
340
+ this.hasAnyBroken = this.hasAnyBroken || !image.isLoaded;
341
+ // progress event
342
+ this.emitEvent( 'progress', [ this, image, elem ] );
343
+ if ( this.jqDeferred && this.jqDeferred.notify ) {
344
+ this.jqDeferred.notify( this, image );
345
+ }
346
+ // check if completed
347
+ if ( this.progressedCount == this.images.length ) {
348
+ this.complete();
349
+ }
350
+
351
+ if ( this.options.debug && console ) {
352
+ console.log( 'progress: ' + message, image, elem );
353
+ }
354
+ };
355
+
356
+ ImagesLoaded.prototype.complete = function() {
357
+ var eventName = this.hasAnyBroken ? 'fail' : 'done';
358
+ this.isComplete = true;
359
+ this.emitEvent( eventName, [ this ] );
360
+ this.emitEvent( 'always', [ this ] );
361
+ if ( this.jqDeferred ) {
362
+ var jqMethod = this.hasAnyBroken ? 'reject' : 'resolve';
363
+ this.jqDeferred[ jqMethod ]( this );
364
+ }
365
+ };
366
+
367
+ // -------------------------- -------------------------- //
368
+
369
+ function LoadingImage( img ) {
370
+ this.img = img;
371
+ }
372
+
373
+ LoadingImage.prototype = Object.create( EvEmitter.prototype );
374
+
375
+ LoadingImage.prototype.check = function() {
376
+ // If complete is true and browser supports natural sizes,
377
+ // try to check for image status manually.
378
+ var isComplete = this.getIsImageComplete();
379
+ if ( isComplete ) {
380
+ // report based on naturalWidth
381
+ this.confirm( this.img.naturalWidth !== 0, 'naturalWidth' );
382
+ return;
383
+ }
384
+
385
+ // If none of the checks above matched, simulate loading on detached element.
386
+ this.proxyImage = new Image();
387
+ this.proxyImage.addEventListener( 'load', this );
388
+ this.proxyImage.addEventListener( 'error', this );
389
+ // bind to image as well for Firefox. #191
390
+ this.img.addEventListener( 'load', this );
391
+ this.img.addEventListener( 'error', this );
392
+ this.proxyImage.src = this.img.src;
393
+ };
394
+
395
+ LoadingImage.prototype.getIsImageComplete = function() {
396
+ return this.img.complete && this.img.naturalWidth !== undefined;
397
+ };
398
+
399
+ LoadingImage.prototype.confirm = function( isLoaded, message ) {
400
+ this.isLoaded = isLoaded;
401
+ this.emitEvent( 'progress', [ this, this.img, message ] );
402
+ };
403
+
404
+ // ----- events ----- //
405
+
406
+ // trigger specified handler for event type
407
+ LoadingImage.prototype.handleEvent = function( event ) {
408
+ var method = 'on' + event.type;
409
+ if ( this[ method ] ) {
410
+ this[ method ]( event );
411
+ }
412
+ };
413
+
414
+ LoadingImage.prototype.onload = function() {
415
+ this.confirm( true, 'onload' );
416
+ this.unbindEvents();
417
+ };
418
+
419
+ LoadingImage.prototype.onerror = function() {
420
+ this.confirm( false, 'onerror' );
421
+ this.unbindEvents();
422
+ };
423
+
424
+ LoadingImage.prototype.unbindEvents = function() {
425
+ this.proxyImage.removeEventListener( 'load', this );
426
+ this.proxyImage.removeEventListener( 'error', this );
427
+ this.img.removeEventListener( 'load', this );
428
+ this.img.removeEventListener( 'error', this );
429
+ };
430
+
431
+ // -------------------------- Background -------------------------- //
432
+
433
+ function Background( url, element ) {
434
+ this.url = url;
435
+ this.element = element;
436
+ this.img = new Image();
437
+ }
438
+
439
+ // inherit LoadingImage prototype
440
+ Background.prototype = Object.create( LoadingImage.prototype );
441
+
442
+ Background.prototype.check = function() {
443
+ this.img.addEventListener( 'load', this );
444
+ this.img.addEventListener( 'error', this );
445
+ this.img.src = this.url;
446
+ // check if image is already complete
447
+ var isComplete = this.getIsImageComplete();
448
+ if ( isComplete ) {
449
+ this.confirm( this.img.naturalWidth !== 0, 'naturalWidth' );
450
+ this.unbindEvents();
451
+ }
452
+ };
453
+
454
+ Background.prototype.unbindEvents = function() {
455
+ this.img.removeEventListener( 'load', this );
456
+ this.img.removeEventListener( 'error', this );
457
+ };
458
+
459
+ Background.prototype.confirm = function( isLoaded, message ) {
460
+ this.isLoaded = isLoaded;
461
+ this.emitEvent( 'progress', [ this, this.element, message ] );
462
+ };
463
+
464
+ // -------------------------- jQuery -------------------------- //
465
+
466
+ ImagesLoaded.makeJQueryPlugin = function( jQuery ) {
467
+ jQuery = jQuery || window.jQuery;
468
+ if ( !jQuery ) {
469
+ return;
470
+ }
471
+ // set local variable
472
+ $ = jQuery;
473
+ // $().imagesLoaded()
474
+ $.fn.imagesLoaded = function( options, callback ) {
475
+ var instance = new ImagesLoaded( this, options, callback );
476
+ return instance.jqDeferred.promise( $(this) );
477
+ };
478
+ };
479
+ // try making plugin
480
+ ImagesLoaded.makeJQueryPlugin();
481
+
482
+ // -------------------------- -------------------------- //
483
+
484
+ return ImagesLoaded;
485
+
486
+ });
487
+
assets/frontend/js/owl.carousel.js DELETED
@@ -1,1512 +0,0 @@
1
- /*
2
- * jQuery OwlCarousel v1.3.3
3
- *
4
- * Copyright (c) 2013 Bartosz Wojciechowski
5
- * http://www.owlgraphic.com/owlcarousel/
6
- *
7
- * Licensed under MIT
8
- *
9
- */
10
-
11
- /*JS Lint helpers: */
12
- /*global dragMove: false, dragEnd: false, $, jQuery, alert, window, document */
13
- /*jslint nomen: true, continue:true */
14
-
15
- if (typeof Object.create !== "function") {
16
- Object.create = function (obj) {
17
- function F() {}
18
- F.prototype = obj;
19
- return new F();
20
- };
21
- }
22
- (function ($, window, document) {
23
-
24
- var Carousel = {
25
- init : function (options, el) {
26
- var base = this;
27
-
28
- base.$elem = $(el);
29
- base.options = $.extend({}, $.fn.owlCarousel.options, base.$elem.data(), options);
30
-
31
- base.userOptions = options;
32
- base.loadContent();
33
- },
34
-
35
- loadContent : function () {
36
- var base = this, url;
37
-
38
- function getData(data) {
39
- var i, content = "";
40
- if (typeof base.options.jsonSuccess === "function") {
41
- base.options.jsonSuccess.apply(this, [data]);
42
- } else {
43
- for (i in data.owl) {
44
- if (data.owl.hasOwnProperty(i)) {
45
- content += data.owl[i].item;
46
- }
47
- }
48
- base.$elem.html(content);
49
- }
50
- base.logIn();
51
- }
52
-
53
- if (typeof base.options.beforeInit === "function") {
54
- base.options.beforeInit.apply(this, [base.$elem]);
55
- }
56
-
57
- if (typeof base.options.jsonPath === "string") {
58
- url = base.options.jsonPath;
59
- $.getJSON(url, getData);
60
- } else {
61
- base.logIn();
62
- }
63
- },
64
-
65
- logIn : function () {
66
- var base = this;
67
-
68
- base.$elem.data("owl-originalStyles", base.$elem.attr("style"));
69
- base.$elem.data("owl-originalClasses", base.$elem.attr("class"));
70
-
71
- base.$elem.css({opacity: 0});
72
- base.orignalItems = base.options.items;
73
- base.checkBrowser();
74
- base.wrapperWidth = 0;
75
- base.checkVisible = null;
76
- base.setVars();
77
- },
78
-
79
- setVars : function () {
80
- var base = this;
81
- if (base.$elem.children().length === 0) {return false; }
82
- base.baseClass();
83
- base.eventTypes();
84
- base.$userItems = base.$elem.children();
85
- base.itemsAmount = base.$userItems.length;
86
- base.wrapItems();
87
- base.$owlItems = base.$elem.find(".owl-item");
88
- base.$owlWrapper = base.$elem.find(".owl-wrapper");
89
- base.playDirection = "next";
90
- base.prevItem = 0;
91
- base.prevArr = [0];
92
- base.currentItem = 0;
93
- base.customEvents();
94
- base.onStartup();
95
- },
96
-
97
- onStartup : function () {
98
- var base = this;
99
- base.updateItems();
100
- base.calculateAll();
101
- base.buildControls();
102
- base.updateControls();
103
- base.response();
104
- base.moveEvents();
105
- base.stopOnHover();
106
- base.owlStatus();
107
-
108
- if (base.options.transitionStyle !== false) {
109
- base.transitionTypes(base.options.transitionStyle);
110
- }
111
- if (base.options.autoPlay === true) {
112
- base.options.autoPlay = 5000;
113
- }
114
- base.play();
115
-
116
- base.$elem.find(".owl-wrapper").css("display", "block");
117
-
118
- if (!base.$elem.is(":visible")) {
119
- base.watchVisibility();
120
- } else {
121
- base.$elem.css("opacity", 1);
122
- }
123
- base.onstartup = false;
124
- base.eachMoveUpdate();
125
- if (typeof base.options.afterInit === "function") {
126
- base.options.afterInit.apply(this, [base.$elem]);
127
- }
128
- },
129
-
130
- eachMoveUpdate : function () {
131
- var base = this;
132
-
133
- if (base.options.lazyLoad === true) {
134
- base.lazyLoad();
135
- }
136
- if (base.options.autoHeight === true) {
137
- base.autoHeight();
138
- }
139
- base.onVisibleItems();
140
-
141
- if (typeof base.options.afterAction === "function") {
142
- base.options.afterAction.apply(this, [base.$elem]);
143
- }
144
- },
145
-
146
- updateVars : function () {
147
- var base = this;
148
- if (typeof base.options.beforeUpdate === "function") {
149
- base.options.beforeUpdate.apply(this, [base.$elem]);
150
- }
151
- base.watchVisibility();
152
- base.updateItems();
153
- base.calculateAll();
154
- base.updatePosition();
155
- base.updateControls();
156
- base.eachMoveUpdate();
157
- if (typeof base.options.afterUpdate === "function") {
158
- base.options.afterUpdate.apply(this, [base.$elem]);
159
- }
160
- },
161
-
162
- reload : function () {
163
- var base = this;
164
- window.setTimeout(function () {
165
- base.updateVars();
166
- }, 0);
167
- },
168
-
169
- watchVisibility : function () {
170
- var base = this;
171
-
172
- if (base.$elem.is(":visible") === false) {
173
- base.$elem.css({opacity: 0});
174
- window.clearInterval(base.autoPlayInterval);
175
- window.clearInterval(base.checkVisible);
176
- } else {
177
- return false;
178
- }
179
- base.checkVisible = window.setInterval(function () {
180
- if (base.$elem.is(":visible")) {
181
- base.reload();
182
- base.$elem.animate({opacity: 1}, 200);
183
- window.clearInterval(base.checkVisible);
184
- }
185
- }, 500);
186
- },
187
-
188
- wrapItems : function () {
189
- var base = this;
190
- base.$userItems.wrapAll("<div class=\"owl-wrapper\">").wrap("<div class=\"owl-item\"></div>");
191
- base.$elem.find(".owl-wrapper").wrap("<div class=\"owl-wrapper-outer\">");
192
- base.wrapperOuter = base.$elem.find(".owl-wrapper-outer");
193
- base.$elem.css("display", "block");
194
- },
195
-
196
- baseClass : function () {
197
- var base = this,
198
- hasBaseClass = base.$elem.hasClass(base.options.baseClass),
199
- hasThemeClass = base.$elem.hasClass(base.options.theme);
200
-
201
- if (!hasBaseClass) {
202
- base.$elem.addClass(base.options.baseClass);
203
- }
204
-
205
- if (!hasThemeClass) {
206
- base.$elem.addClass(base.options.theme);
207
- }
208
- },
209
-
210
- updateItems : function () {
211
- var base = this, width, i;
212
-
213
- if (base.options.responsive === false) {
214
- return false;
215
- }
216
- if (base.options.singleItem === true) {
217
- base.options.items = base.orignalItems = 1;
218
- base.options.itemsCustom = false;
219
- base.options.itemsDesktop = false;
220
- base.options.itemsDesktopSmall = false;
221
- base.options.itemsTablet = false;
222
- base.options.itemsTabletSmall = false;
223
- base.options.itemsMobile = false;
224
- return false;
225
- }
226
-
227
- width = $(base.options.responsiveBaseWidth).width();
228
-
229
- if (width > (base.options.itemsDesktop[0] || base.orignalItems)) {
230
- base.options.items = base.orignalItems;
231
- }
232
- if (base.options.itemsCustom !== false) {
233
- //Reorder array by screen size
234
- base.options.itemsCustom.sort(function (a, b) {return a[0] - b[0]; });
235
-
236
- for (i = 0; i < base.options.itemsCustom.length; i += 1) {
237
- if (base.options.itemsCustom[i][0] <= width) {
238
- base.options.items = base.options.itemsCustom[i][1];
239
- }
240
- }
241
-
242
- } else {
243
-
244
- if (width <= base.options.itemsDesktop[0] && base.options.itemsDesktop !== false) {
245
- base.options.items = base.options.itemsDesktop[1];
246
- }
247
-
248
- if (width <= base.options.itemsDesktopSmall[0] && base.options.itemsDesktopSmall !== false) {
249
- base.options.items = base.options.itemsDesktopSmall[1];
250
- }
251
-
252
- if (width <= base.options.itemsTablet[0] && base.options.itemsTablet !== false) {
253
- base.options.items = base.options.itemsTablet[1];
254
- }
255
-
256
- if (width <= base.options.itemsTabletSmall[0] && base.options.itemsTabletSmall !== false) {
257
- base.options.items = base.options.itemsTabletSmall[1];
258
- }
259
-
260
- if (width <= base.options.itemsMobile[0] && base.options.itemsMobile !== false) {
261
- base.options.items = base.options.itemsMobile[1];
262
- }
263
- }
264
-
265
- //if number of items is less than declared
266
- if (base.options.items > base.itemsAmount && base.options.itemsScaleUp === true) {
267
- base.options.items = base.itemsAmount;
268
- }
269
- },
270
-
271
- response : function () {
272
- var base = this,
273
- smallDelay,
274
- lastWindowWidth;
275
-
276
- if (base.options.responsive !== true) {
277
- return false;
278
- }
279
- lastWindowWidth = $(window).width();
280
-
281
- base.resizer = function () {
282
- if ($(window).width() !== lastWindowWidth) {
283
- if (base.options.autoPlay !== false) {
284
- window.clearInterval(base.autoPlayInterval);
285
- }
286
- window.clearTimeout(smallDelay);
287
- smallDelay = window.setTimeout(function () {
288
- lastWindowWidth = $(window).width();
289
- base.updateVars();
290
- }, base.options.responsiveRefreshRate);
291
- }
292
- };
293
- $(window).resize(base.resizer);
294
- },
295
-
296
- updatePosition : function () {
297
- var base = this;
298
- base.jumpTo(base.currentItem);
299
- if (base.options.autoPlay !== false) {
300
- base.checkAp();
301
- }
302
- },
303
-
304
- appendItemsSizes : function () {
305
- var base = this,
306
- roundPages = 0,
307
- lastItem = base.itemsAmount - base.options.items;
308
-
309
- base.$owlItems.each(function (index) {
310
- var $this = $(this);
311
- $this
312
- .css({"width": base.itemWidth})
313
- .data("owl-item", Number(index));
314
-
315
- if (index % base.options.items === 0 || index === lastItem) {
316
- if (!(index > lastItem)) {
317
- roundPages += 1;
318
- }
319
- }
320
- $this.data("owl-roundPages", roundPages);
321
- });
322
- },
323
-
324
- appendWrapperSizes : function () {
325
- var base = this,
326
- width = base.$owlItems.length * base.itemWidth;
327
-
328
- base.$owlWrapper.css({
329
- "width": width * 2,
330
- "left": 0
331
- });
332
- base.appendItemsSizes();
333
- },
334
-
335
- calculateAll : function () {
336
- var base = this;
337
- base.calculateWidth();
338
- base.appendWrapperSizes();
339
- base.loops();
340
- base.max();
341
- },
342
-
343
- calculateWidth : function () {
344
- var base = this;
345
- base.itemWidth = Math.round(base.$elem.width() / base.options.items);
346
- },
347
-
348
- max : function () {
349
- var base = this,
350
- maximum = ((base.itemsAmount * base.itemWidth) - base.options.items * base.itemWidth) * -1;
351
- if (base.options.items > base.itemsAmount) {
352
- base.maximumItem = 0;
353
- maximum = 0;
354
- base.maximumPixels = 0;
355
- } else {
356
- base.maximumItem = base.itemsAmount - base.options.items;
357
- base.maximumPixels = maximum;
358
- }
359
- return maximum;
360
- },
361
-
362
- min : function () {
363
- return 0;
364
- },
365
-
366
- loops : function () {
367
- var base = this,
368
- prev = 0,
369
- elWidth = 0,
370
- i,
371
- item,
372
- roundPageNum;
373
-
374
- base.positionsInArray = [0];
375
- base.pagesInArray = [];
376
-
377
- for (i = 0; i < base.itemsAmount; i += 1) {
378
- elWidth += base.itemWidth;
379
- base.positionsInArray.push(-elWidth);
380
-
381
- if (base.options.scrollPerPage === true) {
382
- item = $(base.$owlItems[i]);
383
- roundPageNum = item.data("owl-roundPages");
384
- if (roundPageNum !== prev) {
385
- base.pagesInArray[prev] = base.positionsInArray[i];
386
- prev = roundPageNum;
387
- }
388
- }
389
- }
390
- },
391
-
392
- buildControls : function () {
393
- var base = this;
394
- if (base.options.navigation === true || base.options.pagination === true) {
395
- base.owlControls = $("<div class=\"owl-controls\"/>").toggleClass("clickable", !base.browser.isTouch).appendTo(base.$elem);
396
- }
397
- if (base.options.pagination === true) {
398
- base.buildPagination();
399
- }
400
- if (base.options.navigation === true) {
401
- base.buildButtons();
402
- }
403
- },
404
-
405
- buildButtons : function () {
406
- var base = this,
407
- buttonsWrapper = $("<div class=\"owl-buttons\"/>");
408
- base.owlControls.append(buttonsWrapper);
409
-
410
- base.buttonPrev = $("<div/>", {
411
- "class" : "owl-prev",
412
- "html" : base.options.navigationText[0] || ""
413
- });
414
-
415
- base.buttonNext = $("<div/>", {
416
- "class" : "owl-next",
417
- "html" : base.options.navigationText[1] || ""
418
- });
419
-
420
- buttonsWrapper
421
- .append(base.buttonPrev)
422
- .append(base.buttonNext);
423
-
424
- buttonsWrapper.on("touchstart.owlControls mousedown.owlControls", "div[class^=\"owl\"]", function (event) {
425
- event.preventDefault();
426
- });
427
-
428
- buttonsWrapper.on("touchend.owlControls mouseup.owlControls", "div[class^=\"owl\"]", function (event) {
429
- event.preventDefault();
430
- if ($(this).hasClass("owl-next")) {
431
- base.next();
432
- } else {
433
- base.prev();
434
- }
435
- });
436
- },
437
-
438
- buildPagination : function () {
439
- var base = this;
440
-
441
- base.paginationWrapper = $("<div class=\"owl-pagination\"/>");
442
- base.owlControls.append(base.paginationWrapper);
443
-
444
- base.paginationWrapper.on("touchend.owlControls mouseup.owlControls", ".owl-page", function (event) {
445
- event.preventDefault();
446
- if (Number($(this).data("owl-page")) !== base.currentItem) {
447
- base.goTo(Number($(this).data("owl-page")), true);
448
- }
449
- });
450
- },
451
-
452
- updatePagination : function () {
453
- var base = this,
454
- counter,
455
- lastPage,
456
- lastItem,
457
- i,
458
- paginationButton,
459
- paginationButtonInner;
460
-
461
- if (base.options.pagination === false) {
462
- return false;
463
- }
464
-
465
- base.paginationWrapper.html("");
466
-
467
- counter = 0;
468
- lastPage = base.itemsAmount - base.itemsAmount % base.options.items;
469
-
470
- for (i = 0; i < base.itemsAmount; i += 1) {
471
- if (i % base.options.items === 0) {
472
- counter += 1;
473
- if (lastPage === i) {
474
- lastItem = base.itemsAmount - base.options.items;
475
- }
476
- paginationButton = $("<div/>", {
477
- "class" : "owl-page"
478
- });
479
- paginationButtonInner = $("<span></span>", {
480
- "text": base.options.paginationNumbers === true ? counter : "",
481
- "class": base.options.paginationNumbers === true ? "owl-numbers" : ""
482
- });
483
- paginationButton.append(paginationButtonInner);
484
-
485
- paginationButton.data("owl-page", lastPage === i ? lastItem : i);
486
- paginationButton.data("owl-roundPages", counter);
487
-
488
- base.paginationWrapper.append(paginationButton);
489
- }
490
- }
491
- base.checkPagination();
492
- },
493
- checkPagination : function () {
494
- var base = this;
495
- if (base.options.pagination === false) {
496
- return false;
497
- }
498
- base.paginationWrapper.find(".owl-page").each(function () {
499
- if ($(this).data("owl-roundPages") === $(base.$owlItems[base.currentItem]).data("owl-roundPages")) {
500
- base.paginationWrapper
501
- .find(".owl-page")
502
- .removeClass("active");
503
- $(this).addClass("active");
504
- }
505
- });
506
- },
507
-
508
- checkNavigation : function () {
509
- var base = this;
510
-
511
- if (base.options.navigation === false) {
512
- return false;
513
- }
514
- if (base.options.rewindNav === false) {
515
- if (base.currentItem === 0 && base.maximumItem === 0) {
516
- base.buttonPrev.addClass("disabled");
517
- base.buttonNext.addClass("disabled");
518
- } else if (base.currentItem === 0 && base.maximumItem !== 0) {
519
- base.buttonPrev.addClass("disabled");
520
- base.buttonNext.removeClass("disabled");
521
- } else if (base.currentItem === base.maximumItem) {
522
- base.buttonPrev.removeClass("disabled");
523
- base.buttonNext.addClass("disabled");
524
- } else if (base.currentItem !== 0 && base.currentItem !== base.maximumItem) {
525
- base.buttonPrev.removeClass("disabled");
526
- base.buttonNext.removeClass("disabled");
527
- }
528
- }
529
- },
530
-
531
- updateControls : function () {
532
- var base = this;
533
- base.updatePagination();
534
- base.checkNavigation();
535
- if (base.owlControls) {
536
- if (base.options.items >= base.itemsAmount) {
537
- base.owlControls.hide();
538
- } else {
539
- base.owlControls.show();
540
- }
541
- }
542
- },
543
-
544
- destroyControls : function () {
545
- var base = this;
546
- if (base.owlControls) {
547
- base.owlControls.remove();
548
- }
549
- },
550
-
551
- next : function (speed) {
552
- var base = this;
553
-
554
- if (base.isTransition) {
555
- return false;
556
- }
557
-
558
- base.currentItem += base.options.scrollPerPage === true ? base.options.items : 1;
559
- if (base.currentItem > base.maximumItem + (base.options.scrollPerPage === true ? (base.options.items - 1) : 0)) {
560
- if (base.options.rewindNav === true) {
561
- base.currentItem = 0;
562
- speed = "rewind";
563
- } else {
564
- base.currentItem = base.maximumItem;
565
- return false;
566
- }
567
- }
568
- base.goTo(base.currentItem, speed);
569
- },
570
-
571
- prev : function (speed) {
572
- var base = this;
573
-
574
- if (base.isTransition) {
575
- return false;
576
- }
577
-
578
- if (base.options.scrollPerPage === true && base.currentItem > 0 && base.currentItem < base.options.items) {
579
- base.currentItem = 0;
580
- } else {
581
- base.currentItem -= base.options.scrollPerPage === true ? base.options.items : 1;
582
- }
583
- if (base.currentItem < 0) {
584
- if (base.options.rewindNav === true) {
585
- base.currentItem = base.maximumItem;
586
- speed = "rewind";
587
- } else {
588
- base.currentItem = 0;
589
- return false;
590
- }
591
- }
592
- base.goTo(base.currentItem, speed);
593
- },
594
-
595
- goTo : function (position, speed, drag) {
596
- var base = this,
597
- goToPixel;
598
-
599
- if (base.isTransition) {
600
- return false;
601
- }
602
- if (typeof base.options.beforeMove === "function") {
603
- base.options.beforeMove.apply(this, [base.$elem]);
604
- }
605
- if (position >= base.maximumItem) {
606
- position = base.maximumItem;
607
- } else if (position <= 0) {
608
- position = 0;
609
- }
610
-
611
- base.currentItem = base.owl.currentItem = position;
612
- if (base.options.transitionStyle !== false && drag !== "drag" && base.options.items === 1 && base.browser.support3d === true) {
613
- base.swapSpeed(0);
614
- if (base.browser.support3d === true) {
615
- base.transition3d(base.positionsInArray[position]);
616
- } else {
617
- base.css2slide(base.positionsInArray[position], 1);
618
- }
619
- base.afterGo();
620
- base.singleItemTransition();
621
- return false;
622
- }
623
- goToPixel = base.positionsInArray[position];
624
-
625
- if (base.browser.support3d === true) {
626
- base.isCss3Finish = false;
627
-
628
- if (speed === true) {
629
- base.swapSpeed("paginationSpeed");
630
- window.setTimeout(function () {
631
- base.isCss3Finish = true;
632
- }, base.options.paginationSpeed);
633
-
634
- } else if (speed === "rewind") {
635
- base.swapSpeed(base.options.rewindSpeed);
636
- window.setTimeout(function () {
637
- base.isCss3Finish = true;
638
- }, base.options.rewindSpeed);
639
-
640
- } else {
641
- base.swapSpeed("slideSpeed");
642
- window.setTimeout(function () {
643
- base.isCss3Finish = true;
644
- }, base.options.slideSpeed);
645
- }
646
- base.transition3d(goToPixel);
647
- } else {
648
- if (speed === true) {
649
- base.css2slide(goToPixel, base.options.paginationSpeed);
650
- } else if (speed === "rewind") {
651
- base.css2slide(goToPixel, base.options.rewindSpeed);
652
- } else {
653
- base.css2slide(goToPixel, base.options.slideSpeed);
654
- }
655
- }
656
- base.afterGo();
657
- },
658
-
659
- jumpTo : function (position) {
660
- var base = this;
661
- if (typeof base.options.beforeMove === "function") {
662
- base.options.beforeMove.apply(this, [base.$elem]);
663
- }
664
- if (position >= base.maximumItem || position === -1) {
665
- position = base.maximumItem;
666
- } else if (position <= 0) {
667
- position = 0;
668
- }
669
- base.swapSpeed(0);
670
- if (base.browser.support3d === true) {
671
- base.transition3d(base.positionsInArray[position]);
672
- } else {
673
- base.css2slide(base.positionsInArray[position], 1);
674
- }
675
- base.currentItem = base.owl.currentItem = position;
676
- base.afterGo();
677
- },
678
-
679
- afterGo : function () {
680
- var base = this;
681
-
682
- base.prevArr.push(base.currentItem);
683
- base.prevItem = base.owl.prevItem = base.prevArr[base.prevArr.length - 2];
684
- base.prevArr.shift(0);
685
-
686
- if (base.prevItem !== base.currentItem) {
687
- base.checkPagination();
688
- base.checkNavigation();
689
- base.eachMoveUpdate();
690
-
691
- if (base.options.autoPlay !== false) {
692
- base.checkAp();
693
- }
694
- }
695
- if (typeof base.options.afterMove === "function" && base.prevItem !== base.currentItem) {
696
- base.options.afterMove.apply(this, [base.$elem]);
697
- }
698
- },
699
-
700
- stop : function () {
701
- var base = this;
702
- base.apStatus = "stop";
703
- window.clearInterval(base.autoPlayInterval);
704
- },
705
-
706
- checkAp : function () {
707
- var base = this;
708
- if (base.apStatus !== "stop") {
709
- base.play();
710
- }
711
- },
712
-
713
- play : function () {
714
- var base = this;
715
- base.apStatus = "play";
716
- if (base.options.autoPlay === false) {
717
- return false;
718
- }
719
- window.clearInterval(base.autoPlayInterval);
720
- base.autoPlayInterval = window.setInterval(function () {
721
- base.next(true);
722
- }, base.options.autoPlay);
723
- },
724
-
725
- swapSpeed : function (action) {
726
- var base = this;
727
- if (action === "slideSpeed") {
728
- base.$owlWrapper.css(base.addCssSpeed(base.options.slideSpeed));
729
- } else if (action === "paginationSpeed") {
730
- base.$owlWrapper.css(base.addCssSpeed(base.options.paginationSpeed));
731
- } else if (typeof action !== "string") {
732
- base.$owlWrapper.css(base.addCssSpeed(action));
733
- }
734
- },
735
-
736
- addCssSpeed : function (speed) {
737
- return {
738
- "-webkit-transition": "all " + speed + "ms ease",
739
- "-moz-transition": "all " + speed + "ms ease",
740
- "-o-transition": "all " + speed + "ms ease",
741
- "transition": "all " + speed + "ms ease"
742
- };
743
- },
744
-
745
- removeTransition : function () {
746
- return {
747
- "-webkit-transition": "",
748
- "-moz-transition": "",
749
- "-o-transition": "",
750
- "transition": ""
751
- };
752
- },
753
-
754
- doTranslate : function (pixels) {
755
- return {
756
- "-webkit-transform": "translate3d(" + pixels + "px, 0px, 0px)",
757
- "-moz-transform": "translate3d(" + pixels + "px, 0px, 0px)",
758
- "-o-transform": "translate3d(" + pixels + "px, 0px, 0px)",
759
- "-ms-transform": "translate3d(" + pixels + "px, 0px, 0px)",
760
- "transform": "translate3d(" + pixels + "px, 0px,0px)"
761
- };
762
- },
763
-
764
- transition3d : function (value) {
765
- var base = this;
766
- base.$owlWrapper.css(base.doTranslate(value));
767
- },
768
-
769
- css2move : function (value) {
770
- var base = this;
771
- base.$owlWrapper.css({"left" : value});
772
- },
773
-
774
- css2slide : function (value, speed) {
775
- var base = this;
776
-
777
- base.isCssFinish = false;
778
- base.$owlWrapper.stop(true, true).animate({
779
- "left" : value
780
- }, {
781
- duration : speed || base.options.slideSpeed,
782
- complete : function () {
783
- base.isCssFinish = true;
784
- }
785
- });
786
- },
787
-
788
- checkBrowser : function () {
789
- var base = this,
790
- translate3D = "translate3d(0px, 0px, 0px)",
791
- tempElem = document.createElement("div"),
792
- regex,
793
- asSupport,
794
- support3d,
795
- isTouch;
796
-
797
- tempElem.style.cssText = " -moz-transform:" + translate3D +
798
- "; -ms-transform:" + translate3D +
799
- "; -o-transform:" + translate3D +
800
- "; -webkit-transform:" + translate3D +
801
- "; transform:" + translate3D;
802
- regex = /translate3d\(0px, 0px, 0px\)/g;
803
- asSupport = tempElem.style.cssText.match(regex);
804
- support3d = (asSupport !== null && asSupport.length === 1);
805
-
806
- isTouch = "ontouchstart" in window || window.navigator.msMaxTouchPoints;
807
-
808
- base.browser = {
809
- "support3d" : support3d,
810
- "isTouch" : isTouch
811
- };
812
- },
813
-
814
- moveEvents : function () {
815
- var base = this;
816
- if (base.options.mouseDrag !== false || base.options.touchDrag !== false) {
817
- base.gestures();
818
- base.disabledEvents();
819
- }
820
- },
821
-
822
- eventTypes : function () {
823
- var base = this,
824
- types = ["s", "e", "x"];
825
-
826
- base.ev_types = {};
827
-
828
- if (base.options.mouseDrag === true && base.options.touchDrag === true) {
829
- types = [
830
- "touchstart.owl mousedown.owl",
831
- "touchmove.owl mousemove.owl",
832
- "touchend.owl touchcancel.owl mouseup.owl"
833
- ];
834
- } else if (base.options.mouseDrag === false && base.options.touchDrag === true) {
835
- types = [
836
- "touchstart.owl",
837
- "touchmove.owl",
838
- "touchend.owl touchcancel.owl"
839
- ];
840
- } else if (base.options.mouseDrag === true && base.options.touchDrag === false) {
841
- types = [
842
- "mousedown.owl",
843
- "mousemove.owl",
844
- "mouseup.owl"
845
- ];
846
- }
847
-
848
- base.ev_types.start = types[0];
849
- base.ev_types.move = types[1];
850
- base.ev_types.end = types[2];
851
- },
852
-
853
- disabledEvents : function () {
854
- var base = this;
855
- base.$elem.on("dragstart.owl", function (event) { event.preventDefault(); });
856
- base.$elem.on("mousedown.disableTextSelect", function (e) {
857
- return $(e.target).is('input, textarea, select, option');
858
- });
859
- },
860
-
861
- gestures : function () {
862
- /*jslint unparam: true*/
863
- var base = this,
864
- locals = {
865
- offsetX : 0,
866
- offsetY : 0,
867
- baseElWidth : 0,
868
- relativePos : 0,
869
- position: null,
870
- minSwipe : null,
871
- maxSwipe: null,
872
- sliding : null,
873
- dargging: null,
874
- targetElement : null
875
- };
876
-
877
- base.isCssFinish = true;
878
-
879
- function getTouches(event) {
880
- if (event.touches !== undefined) {
881
- return {
882
- x : event.touches[0].pageX,
883
- y : event.touches[0].pageY
884
- };
885
- }
886
-
887
- if (event.touches === undefined) {
888
- if (event.pageX !== undefined) {
889
- return {
890
- x : event.pageX,
891
- y : event.pageY
892
- };
893
- }
894
- if (event.pageX === undefined) {
895
- return {
896
- x : event.clientX,
897
- y : event.clientY
898
- };
899
- }
900
- }
901
- }
902
-
903
- function swapEvents(type) {
904
- if (type === "on") {
905
- $(document).on(base.ev_types.move, dragMove);
906
- $(document).on(base.ev_types.end, dragEnd);
907
- } else if (type === "off") {
908
- $(document).off(base.ev_types.move);
909
- $(document).off(base.ev_types.end);
910
- }
911
- }
912
-
913
- function dragStart(event) {
914
- var ev = event.originalEvent || event || window.event,
915
- position;
916
-
917
- if (ev.which === 3) {
918
- return false;
919
- }
920
- if (base.itemsAmount <= base.options.items) {
921
- return;
922
- }
923
- if (base.isCssFinish === false && !base.options.dragBeforeAnimFinish) {
924
- return false;
925
- }
926
- if (base.isCss3Finish === false && !base.options.dragBeforeAnimFinish) {
927
- return false;
928
- }
929
-
930
- if (base.options.autoPlay !== false) {
931
- window.clearInterval(base.autoPlayInterval);
932
- }
933
-
934
- if (base.browser.isTouch !== true && !base.$owlWrapper.hasClass("grabbing")) {
935
- base.$owlWrapper.addClass("grabbing");
936
- }
937
-
938
- base.newPosX = 0;
939
- base.newRelativeX = 0;
940
-
941
- $(this).css(base.removeTransition());
942
-
943
- position = $(this).position();
944
- locals.relativePos = position.left;
945
-
946
- locals.offsetX = getTouches(ev).x - position.left;
947
- locals.offsetY = getTouches(ev).y - position.top;
948
-
949
- swapEvents("on");
950
-
951
- locals.sliding = false;
952
- locals.targetElement = ev.target || ev.srcElement;
953
- }
954
-
955
- function dragMove(event) {
956
- var ev = event.originalEvent || event || window.event,
957
- minSwipe,
958
- maxSwipe;
959
-
960
- base.newPosX = getTouches(ev).x - locals.offsetX;
961
- base.newPosY = getTouches(ev).y - locals.offsetY;
962
- base.newRelativeX = base.newPosX - locals.relativePos;
963
-
964
- if (typeof base.options.startDragging === "function" && locals.dragging !== true && base.newRelativeX !== 0) {
965
- locals.dragging = true;
966
- base.options.startDragging.apply(base, [base.$elem]);
967
- }
968
-
969
- if ((base.newRelativeX > 8 || base.newRelativeX < -8) && (base.browser.isTouch === true)) {
970
- if (ev.preventDefault !== undefined) {
971
- ev.preventDefault();
972
- } else {
973
- ev.returnValue = false;
974
- }
975
- locals.sliding = true;
976
- }
977
-
978
- if ((base.newPosY > 10 || base.newPosY < -10) && locals.sliding === false) {
979
- $(document).off("touchmove.owl");
980
- }
981
-
982
- minSwipe = function () {
983
- return base.newRelativeX / 5;
984
- };
985
-
986
- maxSwipe = function () {
987
- return base.maximumPixels + base.newRelativeX / 5;
988
- };
989
-
990
- base.newPosX = Math.max(Math.min(base.newPosX, minSwipe()), maxSwipe());
991
- if (base.browser.support3d === true) {
992
- base.transition3d(base.newPosX);
993
- } else {
994
- base.css2move(base.newPosX);
995
- }
996
- }
997
-
998
- function dragEnd(event) {
999
- var ev = event.originalEvent || event || window.event,
1000
- newPosition,
1001
- handlers,
1002
- owlStopEvent;
1003
-
1004
- ev.target = ev.target || ev.srcElement;
1005
-
1006
- locals.dragging = false;
1007
-
1008
- if (base.browser.isTouch !== true) {
1009
- base.$owlWrapper.removeClass("grabbing");
1010
- }
1011
-
1012
- if (base.newRelativeX < 0) {
1013
- base.dragDirection = base.owl.dragDirection = "left";
1014
- } else {
1015
- base.dragDirection = base.owl.dragDirection = "right";
1016
- }
1017
-
1018
- if (base.newRelativeX !== 0) {
1019
- newPosition = base.getNewPosition();
1020
- base.goTo(newPosition, false, "drag");
1021
- if (locals.targetElement === ev.target && base.browser.isTouch !== true) {
1022
- $(ev.target).on("click.disable", function (ev) {
1023
- ev.stopImmediatePropagation();
1024
- ev.stopPropagation();
1025
- ev.preventDefault();
1026
- $(ev.target).off("click.disable");
1027
- });
1028
- handlers = $._data(ev.target, "events").click;
1029
- owlStopEvent = handlers.pop();
1030
- handlers.splice(0, 0, owlStopEvent);
1031
- }
1032
- }
1033
- swapEvents("off");
1034
- }
1035
- base.$elem.on(base.ev_types.start, ".owl-wrapper", dragStart);
1036
- },
1037
-
1038
- getNewPosition : function () {
1039
- var base = this,
1040
- newPosition = base.closestItem();
1041
-
1042
- if (newPosition > base.maximumItem) {
1043
- base.currentItem = base.maximumItem;
1044
- newPosition = base.maximumItem;
1045
- } else if (base.newPosX >= 0) {
1046
- newPosition = 0;
1047
- base.currentItem = 0;
1048
- }
1049
- return newPosition;
1050
- },
1051
- closestItem : function () {
1052
- var base = this,
1053
- array = base.options.scrollPerPage === true ? base.pagesInArray : base.positionsInArray,
1054
- goal = base.newPosX,
1055
- closest = null;
1056
-
1057
- $.each(array, function (i, v) {
1058
- if (goal - (base.itemWidth / 20) > array[i + 1] && goal - (base.itemWidth / 20) < v && base.moveDirection() === "left") {
1059
- closest = v;
1060
- if (base.options.scrollPerPage === true) {
1061
- base.currentItem = $.inArray(closest, base.positionsInArray);
1062
- } else {
1063
- base.currentItem = i;
1064
- }
1065
- } else if (goal + (base.itemWidth / 20) < v && goal + (base.itemWidth / 20) > (array[i + 1] || array[i] - base.itemWidth) && base.moveDirection() === "right") {
1066
- if (base.options.scrollPerPage === true) {
1067
- closest = array[i + 1] || array[array.length - 1];
1068
- base.currentItem = $.inArray(closest, base.positionsInArray);
1069
- } else {
1070
- closest = array[i + 1];
1071
- base.currentItem = i + 1;
1072
- }
1073
- }
1074
- });
1075
- return base.currentItem;
1076
- },
1077
-
1078
- moveDirection : function () {
1079
- var base = this,
1080
- direction;
1081
- if (base.newRelativeX < 0) {
1082
- direction = "right";
1083
- base.playDirection = "next";
1084
- } else {
1085
- direction = "left";
1086
- base.playDirection = "prev";
1087
- }
1088
- return direction;
1089
- },
1090
-
1091
- customEvents : function () {
1092
- /*jslint unparam: true*/
1093
- var base = this;
1094
- base.$elem.on("owl.next", function () {
1095
- base.next();
1096
- });
1097
- base.$elem.on("owl.prev", function () {
1098
- base.prev();
1099
- });
1100
- base.$elem.on("owl.play", function (event, speed) {
1101
- base.options.autoPlay = speed;
1102
- base.play();
1103
- base.hoverStatus = "play";
1104
- });
1105
- base.$elem.on("owl.stop", function () {
1106
- base.stop();
1107
- base.hoverStatus = "stop";
1108
- });
1109
- base.$elem.on("owl.goTo", function (event, item) {
1110
- base.goTo(item);
1111
- });
1112
- base.$elem.on("owl.jumpTo", function (event, item) {
1113
- base.jumpTo(item);
1114
- });
1115
- },
1116
-
1117
- stopOnHover : function () {
1118
- var base = this;
1119
- if (base.options.stopOnHover === true && base.browser.isTouch !== true && base.options.autoPlay !== false) {
1120
- base.$elem.on("mouseover", function () {
1121
- base.stop();
1122
- });
1123
- base.$elem.on("mouseout", function () {
1124
- if (base.hoverStatus !== "stop") {
1125
- base.play();
1126
- }
1127
- });
1128
- }
1129
- },
1130
-
1131
- lazyLoad : function () {
1132
- var base = this,
1133
- i,
1134
- $item,
1135
- itemNumber,
1136
- $lazyImg,
1137
- follow;
1138
-
1139
- if (base.options.lazyLoad === false) {
1140
- return false;
1141
- }
1142
- for (i = 0; i < base.itemsAmount; i += 1) {
1143
- $item = $(base.$owlItems[i]);
1144
-
1145
- if ($item.data("owl-loaded") === "loaded") {
1146
- continue;
1147
- }
1148
-
1149
- itemNumber = $item.data("owl-item");
1150
- $lazyImg = $item.find(".lazyOwl");
1151
-
1152
- if (typeof $lazyImg.data("src") !== "string") {
1153
- $item.data("owl-loaded", "loaded");
1154
- continue;
1155
- }
1156
- if ($item.data("owl-loaded") === undefined) {
1157
- $lazyImg.hide();
1158
- $item.addClass("loading").data("owl-loaded", "checked");
1159
- }
1160
- if (base.options.lazyFollow === true) {
1161
- follow = itemNumber >= base.currentItem;
1162
- } else {
1163
- follow = true;
1164
- }
1165
- if (follow && itemNumber < base.currentItem + base.options.items && $lazyImg.length) {
1166
- base.lazyPreload($item, $lazyImg);
1167
- }
1168
- }
1169
- },
1170
-
1171
- lazyPreload : function ($item, $lazyImg) {
1172
- var base = this,
1173
- iterations = 0,
1174
- isBackgroundImg;
1175
-
1176
- if ($lazyImg.prop("tagName") === "DIV") {
1177
- $lazyImg.css("background-image", "url(" + $lazyImg.data("src") + ")");
1178
- isBackgroundImg = true;
1179
- } else {
1180
- $lazyImg[0].src = $lazyImg.data("src");
1181
- }
1182
-
1183
- function showImage() {
1184
- $item.data("owl-loaded", "loaded").removeClass("loading");
1185
- $lazyImg.removeAttr("data-src");
1186
- if (base.options.lazyEffect === "fade") {
1187
- $lazyImg.fadeIn(400);
1188
- } else {
1189
- $lazyImg.show();
1190
- }
1191
- if (typeof base.options.afterLazyLoad === "function") {
1192
- base.options.afterLazyLoad.apply(this, [base.$elem]);
1193
- }
1194
- }
1195
-
1196
- function checkLazyImage() {
1197
- iterations += 1;
1198
- if (base.completeImg($lazyImg.get(0)) || isBackgroundImg === true) {
1199
- showImage();
1200
- } else if (iterations <= 100) {//if image loads in less than 10 seconds
1201
- window.setTimeout(checkLazyImage, 100);
1202
- } else {
1203
- showImage();
1204
- }
1205
- }
1206
-
1207
- checkLazyImage();
1208
- },
1209
-
1210
- autoHeight : function () {
1211
- var base = this,
1212
- $currentimg = $(base.$owlItems[base.currentItem]).find("img"),
1213
- iterations;
1214
-
1215
- function addHeight() {
1216
- var $currentItem = $(base.$owlItems[base.currentItem]).height();
1217
- base.wrapperOuter.css("height", $currentItem + "px");
1218
- if (!base.wrapperOuter.hasClass("autoHeight")) {
1219
- window.setTimeout(function () {
1220
- base.wrapperOuter.addClass("autoHeight");
1221
- }, 0);
1222
- }
1223
- }
1224
-
1225
- function checkImage() {
1226
- iterations += 1;
1227
- if (base.completeImg($currentimg.get(0))) {
1228
- addHeight();
1229
- } else if (iterations <= 100) { //if image loads in less than 10 seconds
1230
- window.setTimeout(checkImage, 100);
1231
- } else {
1232
- base.wrapperOuter.css("height", ""); //Else remove height attribute
1233
- }
1234
- }
1235
-
1236
- if ($currentimg.get(0) !== undefined) {
1237
- iterations = 0;
1238
- checkImage();
1239
- } else {
1240
- addHeight();
1241
- }
1242
- },
1243
-
1244
- completeImg : function (img) {
1245
- var naturalWidthType;
1246
-
1247
- if (!img.complete) {
1248
- return false;
1249
- }
1250
- naturalWidthType = typeof img.naturalWidth;
1251
- if (naturalWidthType !== "undefined" && img.naturalWidth === 0) {
1252
- return false;
1253
- }
1254
- return true;
1255
- },
1256
-
1257
- onVisibleItems : function () {
1258
- var base = this,
1259
- i;
1260
-
1261
- if (base.options.addClassActive === true) {
1262
- base.$owlItems.removeClass("active");
1263
- }
1264
- base.visibleItems = [];
1265
- for (i = base.currentItem; i < base.currentItem + base.options.items; i += 1) {
1266
- base.visibleItems.push(i);
1267
-
1268
- if (base.options.addClassActive === true) {
1269
- $(base.$owlItems[i]).addClass("active");
1270
- }
1271
- }
1272
- base.owl.visibleItems = base.visibleItems;
1273
- },
1274
-
1275
- transitionTypes : function (className) {
1276
- var base = this;
1277
- //Currently available: "fade", "backSlide", "goDown", "fadeUp"
1278
- base.outClass = "owl-" + className + "-out";
1279
- base.inClass = "owl-" + className + "-in";
1280
- },
1281
-
1282
- singleItemTransition : function () {
1283
- var base = this,
1284
- outClass = base.outClass,
1285
- inClass = base.inClass,
1286
- $currentItem = base.$owlItems.eq(base.currentItem),
1287
- $prevItem = base.$owlItems.eq(base.prevItem),
1288
- prevPos = Math.abs(base.positionsInArray[base.currentItem]) + base.positionsInArray[base.prevItem],
1289
- origin = Math.abs(base.positionsInArray[base.currentItem]) + base.itemWidth / 2,
1290
- animEnd = 'webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend';
1291
-
1292
- base.isTransition = true;
1293
-
1294
- base.$owlWrapper
1295
- .addClass('owl-origin')
1296
- .css({
1297
- "-webkit-transform-origin" : origin + "px",
1298
- "-moz-perspective-origin" : origin + "px",
1299
- "perspective-origin" : origin + "px"
1300
- });
1301
- function transStyles(prevPos) {
1302
- return {
1303
- "position" : "relative",
1304
- "left" : prevPos + "px"
1305
- };
1306
- }
1307
-
1308
- $prevItem
1309
- .css(transStyles(prevPos, 10))
1310
- .addClass(outClass)
1311
- .on(animEnd, function () {
1312
- base.endPrev = true;
1313
- $prevItem.off(animEnd);
1314
- base.clearTransStyle($prevItem, outClass);
1315
- });
1316
-
1317
- $currentItem
1318
- .addClass(inClass)
1319
- .on(animEnd, function () {
1320
- base.endCurrent = true;
1321
- $currentItem.off(animEnd);
1322
- base.clearTransStyle($currentItem, inClass);
1323
- });
1324
- },
1325
-
1326
- clearTransStyle : function (item, classToRemove) {
1327
- var base = this;
1328
- item.css({
1329
- "position" : "",
1330
- "left" : ""
1331
- }).removeClass(classToRemove);
1332
-
1333
- if (base.endPrev && base.endCurrent) {
1334
- base.$owlWrapper.removeClass('owl-origin');
1335
- base.endPrev = false;
1336
- base.endCurrent = false;
1337
- base.isTransition = false;
1338
- }
1339
- },
1340
-
1341
- owlStatus : function () {
1342
- var base = this;
1343
- base.owl = {
1344
- "userOptions" : base.userOptions,
1345
- "baseElement" : base.$elem,
1346
- "userItems" : base.$userItems,
1347
- "owlItems" : base.$owlItems,
1348
- "currentItem" : base.currentItem,
1349
- "prevItem" : base.prevItem,
1350
- "visibleItems" : base.visibleItems,
1351
- "isTouch" : base.browser.isTouch,
1352
- "browser" : base.browser,
1353
- "dragDirection" : base.dragDirection
1354
- };
1355
- },
1356
-
1357
- clearEvents : function () {
1358
- var base = this;
1359
- base.$elem.off(".owl owl mousedown.disableTextSelect");
1360
- $(document).off(".owl owl");
1361
- $(window).off("resize", base.resizer);
1362
- },
1363
-
1364
- unWrap : function () {
1365
- var base = this;
1366
- if (base.$elem.children().length !== 0) {
1367
- base.$owlWrapper.unwrap();
1368
- base.$userItems.unwrap().unwrap();
1369
- if (base.owlControls) {
1370
- base.owlControls.remove();
1371
- }
1372
- }
1373
- base.clearEvents();
1374
- base.$elem
1375
- .attr("style", base.$elem.data("owl-originalStyles") || "")
1376
- .attr("class", base.$elem.data("owl-originalClasses"));
1377
- },
1378
-
1379
- destroy : function () {
1380
- var base = this;
1381
- base.stop();
1382
- window.clearInterval(base.checkVisible);
1383
- base.unWrap();
1384
- base.$elem.removeData();
1385
- },
1386
-
1387
- reinit : function (newOptions) {
1388
- var base = this,
1389
- options = $.extend({}, base.userOptions, newOptions);
1390
- base.unWrap();
1391
- base.init(options, base.$elem);
1392
- },
1393
-
1394
- addItem : function (htmlString, targetPosition) {
1395
- var base = this,
1396
- position;
1397
-
1398
- if (!htmlString) {return false; }
1399
-
1400
- if (base.$elem.children().length === 0) {
1401
- base.$elem.append(htmlString);
1402
- base.setVars();
1403
- return false;
1404
- }
1405
- base.unWrap();
1406
- if (targetPosition === undefined || targetPosition === -1) {
1407
- position = -1;
1408
- } else {
1409
- position = targetPosition;
1410
- }
1411
- if (position >= base.$userItems.length || position === -1) {
1412
- base.$userItems.eq(-1).after(htmlString);
1413
- } else {
1414
- base.$userItems.eq(position).before(htmlString);
1415
- }
1416
-
1417
- base.setVars();
1418
- },
1419
-
1420
- removeItem : function (targetPosition) {
1421
- var base = this,
1422
- position;
1423
-
1424
- if (base.$elem.children().length === 0) {
1425
- return false;
1426
- }
1427
- if (targetPosition === undefined || targetPosition === -1) {
1428
- position = -1;
1429
- } else {
1430
- position = targetPosition;
1431
- }
1432
-
1433
- base.unWrap();
1434
- base.$userItems.eq(position).remove();
1435
- base.setVars();
1436
- }
1437
-
1438
- };
1439
-
1440
- $.fn.owlCarousel = function (options) {
1441
- return this.each(function () {
1442
- if ($(this).data("owl-init") === true) {
1443
- return false;
1444
- }
1445
- $(this).data("owl-init", true);
1446
- var carousel = Object.create(Carousel);
1447
- carousel.init(options, this);
1448
- $.data(this, "owlCarousel", carousel);
1449
- });
1450
- };
1451
-
1452
- $.fn.owlCarousel.options = {
1453
-
1454
- items : 5,
1455
- itemsCustom : false,
1456
- itemsDesktop : [1199, 4],
1457
- itemsDesktopSmall : [979, 3],
1458
- itemsTablet : [768, 2],
1459
- itemsTabletSmall : false,
1460
- itemsMobile : [479, 1],
1461
- singleItem : false,
1462
- itemsScaleUp : false,
1463
-
1464
- slideSpeed : 200,
1465
- paginationSpeed : 800,
1466
- rewindSpeed : 1000,
1467
-
1468
- autoPlay : false,
1469
- stopOnHover : false,
1470
-
1471
- navigation : false,
1472
- navigationText : ["prev", "next"],
1473
- rewindNav : true,
1474
- scrollPerPage : false,
1475
-
1476
- pagination : true,
1477
- paginationNumbers : false,
1478
-
1479
- responsive : true,
1480
- responsiveRefreshRate : 200,
1481
- responsiveBaseWidth : window,
1482
-
1483
- baseClass : "owl-carousel",
1484
- theme : "owl-theme",
1485
-
1486
- lazyLoad : false,
1487
- lazyFollow : true,
1488
- lazyEffect : "fade",
1489
-
1490
- autoHeight : false,
1491
-
1492
- jsonPath : false,
1493
- jsonSuccess : false,
1494
-
1495
- dragBeforeAnimFinish : true,
1496
- mouseDrag : true,
1497
- touchDrag : true,
1498
-
1499
- addClassActive : false,
1500
- transitionStyle : false,
1501
-
1502
- beforeUpdate : false,
1503
- afterUpdate : false,
1504
- beforeInit : false,
1505
- afterInit : false,
1506
- beforeMove : false,
1507
- afterMove : false,
1508
- afterAction : false,
1509
- startDragging : false,
1510
- afterLazyLoad: false
1511
- };
1512
- }(jQuery, window, document));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/frontend/js/owl.carousel.min.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ /**
2
+ * Owl Carousel v2.1.6
3
+ * Copyright 2013-2016 David Deutsch
4
+ * Licensed under MIT (https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE)
5
+ */
6
+ !function(a,b,c,d){function e(b,c){this.settings=null,this.options=a.extend({},e.Defaults,c),this.$element=a(b),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},a.each(["onResize","onThrottledResize"],a.proxy(function(b,c){this._handlers[c]=a.proxy(this[c],this)},this)),a.each(e.Plugins,a.proxy(function(a,b){this._plugins[a.charAt(0).toLowerCase()+a.slice(1)]=new b(this)},this)),a.each(e.Workers,a.proxy(function(b,c){this._pipe.push({filter:c.filter,run:a.proxy(c.run,this)})},this)),this.setup(),this.initialize()}e.Defaults={items:3,loop:!1,center:!1,rewind:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:b,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},e.Width={Default:"default",Inner:"inner",Outer:"outer"},e.Type={Event:"event",State:"state"},e.Plugins={},e.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(a){a.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(a){var b=this.settings.margin||"",c=!this.settings.autoWidth,d=this.settings.rtl,e={width:"auto","margin-left":d?b:"","margin-right":d?"":b};!c&&this.$stage.children().css(e),a.css=e}},{filter:["width","items","settings"],run:function(a){var b=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,c=null,d=this._items.length,e=!this.settings.autoWidth,f=[];for(a.items={merge:!1,width:b};d--;)c=this._mergers[d],c=this.settings.mergeFit&&Math.min(c,this.settings.items)||c,a.items.merge=c>1||a.items.merge,f[d]=e?b*c:this._items[d].width();this._widths=f}},{filter:["items","settings"],run:function(){var b=[],c=this._items,d=this.settings,e=Math.max(2*d.items,4),f=2*Math.ceil(c.length/2),g=d.loop&&c.length?d.rewind?e:Math.max(e,f):0,h="",i="";for(g/=2;g--;)b.push(this.normalize(b.length/2,!0)),h+=c[b[b.length-1]][0].outerHTML,b.push(this.normalize(c.length-1-(b.length-1)/2,!0)),i=c[b[b.length-1]][0].outerHTML+i;this._clones=b,a(h).addClass("cloned").appendTo(this.$stage),a(i).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var a=this.settings.rtl?1:-1,b=this._clones.length+this._items.length,c=-1,d=0,e=0,f=[];++c<b;)d=f[c-1]||0,e=this._widths[this.relative(c)]+this.settings.margin,f.push(d+e*a);this._coordinates=f}},{filter:["width","items","settings"],run:function(){var a=this.settings.stagePadding,b=this._coordinates,c={width:Math.ceil(Math.abs(b[b.length-1]))+2*a,"padding-left":a||"","padding-right":a||""};this.$stage.css(c)}},{filter:["width","items","settings"],run:function(a){var b=this._coordinates.length,c=!this.settings.autoWidth,d=this.$stage.children();if(c&&a.items.merge)for(;b--;)a.css.width=this._widths[this.relative(b)],d.eq(b).css(a.css);else c&&(a.css.width=a.items.width,d.css(a.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(a){a.current=a.current?this.$stage.children().index(a.current):0,a.current=Math.max(this.minimum(),Math.min(this.maximum(),a.current)),this.reset(a.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var a,b,c,d,e=this.settings.rtl?1:-1,f=2*this.settings.stagePadding,g=this.coordinates(this.current())+f,h=g+this.width()*e,i=[];for(c=0,d=this._coordinates.length;d>c;c++)a=this._coordinates[c-1]||0,b=Math.abs(this._coordinates[c])+f*e,(this.op(a,"<=",g)&&this.op(a,">",h)||this.op(b,"<",g)&&this.op(b,">",h))&&i.push(c);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+i.join("), :eq(")+")").addClass("active"),this.settings.center&&(this.$stage.children(".center").removeClass("center"),this.$stage.children().eq(this.current()).addClass("center"))}}],e.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var b,c,e;b=this.$element.find("img"),c=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:d,e=this.$element.children(c).width(),b.length&&0>=e&&this.preloadAutoWidthImages(b)}this.$element.addClass(this.options.loadingClass),this.$stage=a("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('<div class="'+this.settings.stageOuterClass+'"/>'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this.$element.is(":visible")?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},e.prototype.setup=function(){var b=this.viewport(),c=this.options.responsive,d=-1,e=null;c?(a.each(c,function(a){b>=a&&a>d&&(d=Number(a))}),e=a.extend({},this.options,c[d]),"function"==typeof e.stagePadding&&(e.stagePadding=e.stagePadding()),delete e.responsive,e.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+d))):e=a.extend({},this.options),this.trigger("change",{property:{name:"settings",value:e}}),this._breakpoint=d,this.settings=e,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},e.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},e.prototype.prepare=function(b){var c=this.trigger("prepare",{content:b});return c.data||(c.data=a("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(b)),this.trigger("prepared",{content:c.data}),c.data},e.prototype.update=function(){for(var b=0,c=this._pipe.length,d=a.proxy(function(a){return this[a]},this._invalidated),e={};c>b;)(this._invalidated.all||a.grep(this._pipe[b].filter,d).length>0)&&this._pipe[b].run(e),b++;this._invalidated={},!this.is("valid")&&this.enter("valid")},e.prototype.width=function(a){switch(a=a||e.Width.Default){case e.Width.Inner:case e.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},e.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},e.prototype.onThrottledResize=function(){b.clearTimeout(this.resizeTimer),this.resizeTimer=b.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},e.prototype.onResize=function(){return this._items.length?this._width===this.$element.width()?!1:this.$element.is(":visible")?(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized"))):!1:!1},e.prototype.registerEventHandlers=function(){a.support.transition&&this.$stage.on(a.support.transition.end+".owl.core",a.proxy(this.onTransitionEnd,this)),this.settings.responsive!==!1&&this.on(b,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",a.proxy(this.onDragEnd,this)))},e.prototype.onDragStart=function(b){var d=null;3!==b.which&&(a.support.transform?(d=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),d={x:d[16===d.length?12:4],y:d[16===d.length?13:5]}):(d=this.$stage.position(),d={x:this.settings.rtl?d.left+this.$stage.width()-this.width()+this.settings.margin:d.left,y:d.top}),this.is("animating")&&(a.support.transform?this.animate(d.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===b.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=a(b.target),this._drag.stage.start=d,this._drag.stage.current=d,this._drag.pointer=this.pointer(b),a(c).on("mouseup.owl.core touchend.owl.core",a.proxy(this.onDragEnd,this)),a(c).one("mousemove.owl.core touchmove.owl.core",a.proxy(function(b){var d=this.difference(this._drag.pointer,this.pointer(b));a(c).on("mousemove.owl.core touchmove.owl.core",a.proxy(this.onDragMove,this)),Math.abs(d.x)<Math.abs(d.y)&&this.is("valid")||(b.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},e.prototype.onDragMove=function(a){var b=null,c=null,d=null,e=this.difference(this._drag.pointer,this.pointer(a)),f=this.difference(this._drag.stage.start,e);this.is("dragging")&&(a.preventDefault(),this.settings.loop?(b=this.coordinates(this.minimum()),c=this.coordinates(this.maximum()+1)-b,f.x=((f.x-b)%c+c)%c+b):(b=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),c=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),d=this.settings.pullDrag?-1*e.x/5:0,f.x=Math.max(Math.min(f.x,b+d),c+d)),this._drag.stage.current=f,this.animate(f.x))},e.prototype.onDragEnd=function(b){var d=this.difference(this._drag.pointer,this.pointer(b)),e=this._drag.stage.current,f=d.x>0^this.settings.rtl?"left":"right";a(c).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==d.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(e.x,0!==d.x?f:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=f,(Math.abs(d.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},e.prototype.closest=function(b,c){var d=-1,e=30,f=this.width(),g=this.coordinates();return this.settings.freeDrag||a.each(g,a.proxy(function(a,h){return"left"===c&&b>h-e&&h+e>b?d=a:"right"===c&&b>h-f-e&&h-f+e>b?d=a+1:this.op(b,"<",h)&&this.op(b,">",g[a+1]||h-f)&&(d="left"===c?a+1:a),-1===d},this)),this.settings.loop||(this.op(b,">",g[this.minimum()])?d=b=this.minimum():this.op(b,"<",g[this.maximum()])&&(d=b=this.maximum())),d},e.prototype.animate=function(b){var c=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),c&&(this.enter("animating"),this.trigger("translate")),a.support.transform3d&&a.support.transition?this.$stage.css({transform:"translate3d("+b+"px,0px,0px)",transition:this.speed()/1e3+"s"}):c?this.$stage.animate({left:b+"px"},this.speed(),this.settings.fallbackEasing,a.proxy(this.onTransitionEnd,this)):this.$stage.css({left:b+"px"})},e.prototype.is=function(a){return this._states.current[a]&&this._states.current[a]>0},e.prototype.current=function(a){if(a===d)return this._current;if(0===this._items.length)return d;if(a=this.normalize(a),this._current!==a){var b=this.trigger("change",{property:{name:"position",value:a}});b.data!==d&&(a=this.normalize(b.data)),this._current=a,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},e.prototype.invalidate=function(b){return"string"===a.type(b)&&(this._invalidated[b]=!0,this.is("valid")&&this.leave("valid")),a.map(this._invalidated,function(a,b){return b})},e.prototype.reset=function(a){a=this.normalize(a),a!==d&&(this._speed=0,this._current=a,this.suppress(["translate","translated"]),this.animate(this.coordinates(a)),this.release(["translate","translated"]))},e.prototype.normalize=function(a,b){var c=this._items.length,e=b?0:this._clones.length;return!this.isNumeric(a)||1>c?a=d:(0>a||a>=c+e)&&(a=((a-e/2)%c+c)%c+e/2),a},e.prototype.relative=function(a){return a-=this._clones.length/2,this.normalize(a,!0)},e.prototype.maximum=function(a){var b,c,d,e=this.settings,f=this._coordinates.length;if(e.loop)f=this._clones.length/2+this._items.length-1;else if(e.autoWidth||e.merge){for(b=this._items.length,c=this._items[--b].width(),d=this.$element.width();b--&&(c+=this._items[b].width()+this.settings.margin,!(c>d)););f=b+1}else f=e.center?this._items.length-1:this._items.length-e.items;return a&&(f-=this._clones.length/2),Math.max(f,0)},e.prototype.minimum=function(a){return a?0:this._clones.length/2},e.prototype.items=function(a){return a===d?this._items.slice():(a=this.normalize(a,!0),this._items[a])},e.prototype.mergers=function(a){return a===d?this._mergers.slice():(a=this.normalize(a,!0),this._mergers[a])},e.prototype.clones=function(b){var c=this._clones.length/2,e=c+this._items.length,f=function(a){return a%2===0?e+a/2:c-(a+1)/2};return b===d?a.map(this._clones,function(a,b){return f(b)}):a.map(this._clones,function(a,c){return a===b?f(c):null})},e.prototype.speed=function(a){return a!==d&&(this._speed=a),this._speed},e.prototype.coordinates=function(b){var c,e=1,f=b-1;return b===d?a.map(this._coordinates,a.proxy(function(a,b){return this.coordinates(b)},this)):(this.settings.center?(this.settings.rtl&&(e=-1,f=b+1),c=this._coordinates[b],c+=(this.width()-c+(this._coordinates[f]||0))/2*e):c=this._coordinates[f]||0,c=Math.ceil(c))},e.prototype.duration=function(a,b,c){return 0===c?0:Math.min(Math.max(Math.abs(b-a),1),6)*Math.abs(c||this.settings.smartSpeed)},e.prototype.to=function(a,b){var c=this.current(),d=null,e=a-this.relative(c),f=(e>0)-(0>e),g=this._items.length,h=this.minimum(),i=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(e)>g/2&&(e+=-1*f*g),a=c+e,d=((a-h)%g+g)%g+h,d!==a&&i>=d-e&&d-e>0&&(c=d-e,a=d,this.reset(c))):this.settings.rewind?(i+=1,a=(a%i+i)%i):a=Math.max(h,Math.min(i,a)),this.speed(this.duration(c,a,b)),this.current(a),this.$element.is(":visible")&&this.update()},e.prototype.next=function(a){a=a||!1,this.to(this.relative(this.current())+1,a)},e.prototype.prev=function(a){a=a||!1,this.to(this.relative(this.current())-1,a)},e.prototype.onTransitionEnd=function(a){return a!==d&&(a.stopPropagation(),(a.target||a.srcElement||a.originalTarget)!==this.$stage.get(0))?!1:(this.leave("animating"),void this.trigger("translated"))},e.prototype.viewport=function(){var d;if(this.options.responsiveBaseElement!==b)d=a(this.options.responsiveBaseElement).width();else if(b.innerWidth)d=b.innerWidth;else{if(!c.documentElement||!c.documentElement.clientWidth)throw"Can not detect viewport width.";d=c.documentElement.clientWidth}return d},e.prototype.replace=function(b){this.$stage.empty(),this._items=[],b&&(b=b instanceof jQuery?b:a(b)),this.settings.nestedItemSelector&&(b=b.find("."+this.settings.nestedItemSelector)),b.filter(function(){return 1===this.nodeType}).each(a.proxy(function(a,b){b=this.prepare(b),this.$stage.append(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},e.prototype.add=function(b,c){var e=this.relative(this._current);c=c===d?this._items.length:this.normalize(c,!0),b=b instanceof jQuery?b:a(b),this.trigger("add",{content:b,position:c}),b=this.prepare(b),0===this._items.length||c===this._items.length?(0===this._items.length&&this.$stage.append(b),0!==this._items.length&&this._items[c-1].after(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[c].before(b),this._items.splice(c,0,b),this._mergers.splice(c,0,1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[e]&&this.reset(this._items[e].index()),this.invalidate("items"),this.trigger("added",{content:b,position:c})},e.prototype.remove=function(a){a=this.normalize(a,!0),a!==d&&(this.trigger("remove",{content:this._items[a],position:a}),this._items[a].remove(),this._items.splice(a,1),this._mergers.splice(a,1),this.invalidate("items"),this.trigger("removed",{content:null,position:a}))},e.prototype.preloadAutoWidthImages=function(b){b.each(a.proxy(function(b,c){this.enter("pre-loading"),c=a(c),a(new Image).one("load",a.proxy(function(a){c.attr("src",a.target.src),c.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",c.attr("src")||c.attr("data-src")||c.attr("data-src-retina"))},this))},e.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),a(c).off(".owl.core"),this.settings.responsive!==!1&&(b.clearTimeout(this.resizeTimer),this.off(b,"resize",this._handlers.onThrottledResize));for(var d in this._plugins)this._plugins[d].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},e.prototype.op=function(a,b,c){var d=this.settings.rtl;switch(b){case"<":return d?a>c:c>a;case">":return d?c>a:a>c;case">=":return d?c>=a:a>=c;case"<=":return d?a>=c:c>=a}},e.prototype.on=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d):a.attachEvent&&a.attachEvent("on"+b,c)},e.prototype.off=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,d):a.detachEvent&&a.detachEvent("on"+b,c)},e.prototype.trigger=function(b,c,d,f,g){var h={item:{count:this._items.length,index:this.current()}},i=a.camelCase(a.grep(["on",b,d],function(a){return a}).join("-").toLowerCase()),j=a.Event([b,"owl",d||"carousel"].join(".").toLowerCase(),a.extend({relatedTarget:this},h,c));return this._supress[b]||(a.each(this._plugins,function(a,b){b.onTrigger&&b.onTrigger(j)}),this.register({type:e.Type.Event,name:b}),this.$element.trigger(j),this.settings&&"function"==typeof this.settings[i]&&this.settings[i].call(this,j)),j},e.prototype.enter=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]===d&&(this._states.current[b]=0),this._states.current[b]++},this))},e.prototype.leave=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]--},this))},e.prototype.register=function(b){if(b.type===e.Type.Event){if(a.event.special[b.name]||(a.event.special[b.name]={}),!a.event.special[b.name].owl){var c=a.event.special[b.name]._default;a.event.special[b.name]._default=function(a){return!c||!c.apply||a.namespace&&-1!==a.namespace.indexOf("owl")?a.namespace&&a.namespace.indexOf("owl")>-1:c.apply(this,arguments)},a.event.special[b.name].owl=!0}}else b.type===e.Type.State&&(this._states.tags[b.name]?this._states.tags[b.name]=this._states.tags[b.name].concat(b.tags):this._states.tags[b.name]=b.tags,this._states.tags[b.name]=a.grep(this._states.tags[b.name],a.proxy(function(c,d){return a.inArray(c,this._states.tags[b.name])===d},this)))},e.prototype.suppress=function(b){a.each(b,a.proxy(function(a,b){this._supress[b]=!0},this))},e.prototype.release=function(b){a.each(b,a.proxy(function(a,b){delete this._supress[b]},this))},e.prototype.pointer=function(a){var c={x:null,y:null};return a=a.originalEvent||a||b.event,a=a.touches&&a.touches.length?a.touches[0]:a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a,a.pageX?(c.x=a.pageX,c.y=a.pageY):(c.x=a.clientX,c.y=a.clientY),c},e.prototype.isNumeric=function(a){return!isNaN(parseFloat(a))},e.prototype.difference=function(a,b){return{x:a.x-b.x,y:a.y-b.y}},a.fn.owlCarousel=function(b){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),f=d.data("owl.carousel");f||(f=new e(this,"object"==typeof b&&b),d.data("owl.carousel",f),a.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(b,c){f.register({type:e.Type.Event,name:c}),f.$element.on(c+".owl.carousel.core",a.proxy(function(a){a.namespace&&a.relatedTarget!==this&&(this.suppress([c]),f[c].apply(this,[].slice.call(arguments,1)),this.release([c]))},f))})),"string"==typeof b&&"_"!==b.charAt(0)&&f[b].apply(f,c)})},a.fn.owlCarousel.Constructor=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoRefresh:!0,autoRefreshInterval:500},e.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(":visible"),this._interval=b.setInterval(a.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},e.prototype.refresh=function(){this._core.$element.is(":visible")!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},e.prototype.destroy=function(){var a,c;b.clearInterval(this._interval);for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoRefresh=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":a.proxy(function(b){if(b.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(b.property&&"position"==b.property.name||"initialized"==b.type))for(var c=this._core.settings,e=c.center&&Math.ceil(c.items/2)||c.items,f=c.center&&-1*e||0,g=(b.property&&b.property.value!==d?b.property.value:this._core.current())+f,h=this._core.clones().length,i=a.proxy(function(a,b){this.load(b)},this);f++<e;)this.load(h/2+this._core.relative(g)),h&&a.each(this._core.clones(this._core.relative(g)),i),g++},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={lazyLoad:!1},e.prototype.load=function(c){var d=this._core.$stage.children().eq(c),e=d&&d.find(".owl-lazy");!e||a.inArray(d.get(0),this._loaded)>-1||(e.each(a.proxy(function(c,d){var e,f=a(d),g=b.devicePixelRatio>1&&f.attr("data-src-retina")||f.attr("data-src");this._core.trigger("load",{element:f,url:g},"lazy"),f.is("img")?f.one("load.owl.lazy",a.proxy(function(){f.css("opacity",1),this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("src",g):(e=new Image,e.onload=a.proxy(function(){f.css({"background-image":"url("+g+")",opacity:"1"}),this._core.trigger("loaded",{element:f,url:g},"lazy")},this),e.src=g)},this)),this._loaded.push(d.get(0)))},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this._core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&"position"==a.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&a.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},e.prototype.update=function(){var b=this._core._current,c=b+this._core.settings.items,d=this._core.$stage.children().toArray().slice(b,c),e=[],f=0;a.each(d,function(b,c){e.push(a(c).height())}),f=Math.max.apply(null,e),this._core.$stage.parent().height(f).addClass(this._core.settings.autoHeightClass)},e.prototype.destroy=function(){var a,b;for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoHeight=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.video&&this.isInFullScreen()&&a.preventDefault()},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"===a.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find(".owl-video");c.length&&(c.css("display","none"),this.fetch(c,a(b.content)))}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",a.proxy(function(a){this.play(a)},this))};e.Defaults={video:!1,videoHeight:!1,videoWidth:!1},e.prototype.fetch=function(a,b){var c=function(){return a.attr("data-vimeo-id")?"vimeo":a.attr("data-vzaar-id")?"vzaar":"youtube"}(),d=a.attr("data-vimeo-id")||a.attr("data-youtube-id")||a.attr("data-vzaar-id"),e=a.attr("data-width")||this._core.settings.videoWidth,f=a.attr("data-height")||this._core.settings.videoHeight,g=a.attr("href");if(!g)throw new Error("Missing video URL.");if(d=g.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),d[3].indexOf("youtu")>-1)c="youtube";else if(d[3].indexOf("vimeo")>-1)c="vimeo";else{if(!(d[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");c="vzaar"}d=d[6],this._videos[g]={type:c,id:d,width:e,height:f},b.attr("data-video",g),this.thumbnail(a,this._videos[g])},e.prototype.thumbnail=function(b,c){var d,e,f,g=c.width&&c.height?'style="width:'+c.width+"px;height:"+c.height+'px;"':"",h=b.find("img"),i="src",j="",k=this._core.settings,l=function(a){e='<div class="owl-video-play-icon"></div>',d=k.lazyLoad?'<div class="owl-video-tn '+j+'" '+i+'="'+a+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+a+')"></div>',b.after(d),b.after(e)};return b.wrap('<div class="owl-video-wrapper"'+g+"></div>"),this._core.settings.lazyLoad&&(i="data-src",j="owl-lazy"),h.length?(l(h.attr(i)),h.remove(),!1):void("youtube"===c.type?(f="//img.youtube.com/vi/"+c.id+"/hqdefault.jpg",l(f)):"vimeo"===c.type?a.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a[0].thumbnail_large,l(f)}}):"vzaar"===c.type&&a.ajax({type:"GET",url:"//vzaar.com/api/videos/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a.framegrab_url,l(f)}}))},e.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},e.prototype.play=function(b){var c,d=a(b.target),e=d.closest("."+this._core.settings.itemClass),f=this._videos[e.attr("data-video")],g=f.width||"100%",h=f.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),e=this._core.items(this._core.relative(e.index())),this._core.reset(e.index()),"youtube"===f.type?c='<iframe width="'+g+'" height="'+h+'" src="//www.youtube.com/embed/'+f.id+"?autoplay=1&v="+f.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===f.type?c='<iframe src="//player.vimeo.com/video/'+f.id+'?autoplay=1" width="'+g+'" height="'+h+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>':"vzaar"===f.type&&(c='<iframe frameborder="0"height="'+h+'"width="'+g+'" allowfullscreen mozallowfullscreen webkitAllowFullScreen src="//view.vzaar.com/'+f.id+'/player?autoplay=true"></iframe>'),a('<div class="owl-video-frame">'+c+"</div>").insertAfter(e.find(".owl-video")),this._playing=e.addClass("owl-video-playing"))},e.prototype.isInFullScreen=function(){var b=c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement;return b&&a(b).parent().hasClass("owl-video-frame")},e.prototype.destroy=function(){var a,b;this._core.$element.off("click.owl.video");for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Video=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){a.namespace&&(this.swapping="translated"==a.type)},this),"translate.owl.carousel":a.proxy(function(a){a.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1,animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&a.support.animation&&a.support.transition){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animateIn,g=this.core.settings.animateOut;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.one(a.support.animation.end,c).css({left:b+"px"}).addClass("animated owl-animated-out").addClass(g)),f&&e.one(a.support.animation.end,c).addClass("animated owl-animated-in").addClass(f))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null);
7
+ },a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._timeout=null,this._paused=!1,this._handlers={"changed.owl.carousel":a.proxy(function(a){a.namespace&&"settings"===a.property.name?this._core.settings.autoplay?this.play():this.stop():a.namespace&&"position"===a.property.name&&this._core.settings.autoplay&&this._setAutoPlayInterval()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":a.proxy(function(a,b,c){a.namespace&&this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(a){a.namespace&&this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=a.extend({},e.Defaults,this._core.options)};e.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},e.prototype.play=function(a,b){this._paused=!1,this._core.is("rotating")||(this._core.enter("rotating"),this._setAutoPlayInterval())},e.prototype._getNextTimeout=function(d,e){return this._timeout&&b.clearTimeout(this._timeout),b.setTimeout(a.proxy(function(){this._paused||this._core.is("busy")||this._core.is("interacting")||c.hidden||this._core.next(e||this._core.settings.autoplaySpeed)},this),d||this._core.settings.autoplayTimeout)},e.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()},e.prototype.stop=function(){this._core.is("rotating")&&(b.clearTimeout(this._timeout),this._core.leave("rotating"))},e.prototype.pause=function(){this._core.is("rotating")&&(this._paused=!0)},e.prototype.destroy=function(){var a,b;this.stop();for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(b){this._core=b,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":a.proxy(function(b){b.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+a(b.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,0,this._templates.pop())},this),"remove.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&this.draw()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var b,c=this._core.settings;this._controls.$relative=(c.navContainer?a(c.navContainer):a("<div>").addClass(c.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=a("<"+c.navElement+">").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on("click",a.proxy(function(a){this.prev(c.navSpeed)},this)),this._controls.$next=a("<"+c.navElement+">").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on("click",a.proxy(function(a){this.next(c.navSpeed)},this)),c.dotsData||(this._templates=[a("<div>").addClass(c.dotClass).append(a("<span>")).prop("outerHTML")]),this._controls.$absolute=(c.dotsContainer?a(c.dotsContainer):a("<div>").addClass(c.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","div",a.proxy(function(b){var d=a(b.target).parent().is(this._controls.$absolute)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(d,c.dotsSpeed)},this));for(b in this._overrides)this._core[b]=a.proxy(this[b],this)},e.prototype.destroy=function(){var a,b,c,d;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},e.prototype.update=function(){var a,b,c,d=this._core.clones().length/2,e=d+this._core.items().length,f=this._core.maximum(!0),g=this._core.settings,h=g.center||g.autoWidth||g.dotsData?1:g.dotsEach||g.items;if("page"!==g.slideBy&&(g.slideBy=Math.min(g.slideBy,g.items)),g.dots||"page"==g.slideBy)for(this._pages=[],a=d,b=0,c=0;e>a;a++){if(b>=h||0===b){if(this._pages.push({start:Math.min(f,a-d),end:a-d+h-1}),Math.min(f,a-d)===f)break;b=0,++c}b+=this._core.mergers(this._core.relative(a))}},e.prototype.draw=function(){var b,c=this._core.settings,d=this._core.items().length<=c.items,e=this._core.relative(this._core.current()),f=c.loop||c.rewind;this._controls.$relative.toggleClass("disabled",!c.nav||d),c.nav&&(this._controls.$previous.toggleClass("disabled",!f&&e<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!f&&e>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!c.dots||d),c.dots&&(b=this._pages.length-this._controls.$absolute.children().length,c.dotsData&&0!==b?this._controls.$absolute.html(this._templates.join("")):b>0?this._controls.$absolute.append(new Array(b+1).join(this._templates[0])):0>b&&this._controls.$absolute.children().slice(b).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(a.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(b){var c=this._core.settings;b.page={index:a.inArray(this.current(),this._pages),count:this._pages.length,size:c&&(c.center||c.autoWidth||c.dotsData?1:c.dotsEach||c.items)}},e.prototype.current=function(){var b=this._core.relative(this._core.current());return a.grep(this._pages,a.proxy(function(a,c){return a.start<=b&&a.end>=b},this)).pop()},e.prototype.getPosition=function(b){var c,d,e=this._core.settings;return"page"==e.slideBy?(c=a.inArray(this.current(),this._pages),d=this._pages.length,b?++c:--c,c=this._pages[(c%d+d)%d].start):(c=this._core.relative(this._core.current()),d=this._core.items().length,b?c+=e.slideBy:c-=e.slideBy),c},e.prototype.next=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!0),b)},e.prototype.prev=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!1),b)},e.prototype.to=function(b,c,d){var e;!d&&this._pages.length?(e=this._pages.length,a.proxy(this._overrides.to,this._core)(this._pages[(b%e+e)%e].start,c)):a.proxy(this._overrides.to,this._core)(b,c)},a.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(c){this._core=c,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":a.proxy(function(c){c.namespace&&"URLHash"===this._core.settings.startPosition&&a(b).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!c)return;this._hashes[c]=b.content}},this),"changed.owl.carousel":a.proxy(function(c){if(c.namespace&&"position"===c.property.name){var d=this._core.items(this._core.relative(this._core.current())),e=a.map(this._hashes,function(a,b){return a===d?b:null}).join();if(!e||b.location.hash.slice(1)===e)return;b.location.hash=e}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),a(b).on("hashchange.owl.navigation",a.proxy(function(a){var c=b.location.hash.substring(1),e=this._core.$stage.children(),f=this._hashes[c]&&e.index(this._hashes[c]);f!==d&&f!==this._core.current()&&this._core.to(this._core.relative(f),!1,!0)},this))};e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var c,d;a(b).off("hashchange.owl.navigation");for(c in this._handlers)this._core.$element.off(c,this._handlers[c]);for(d in Object.getOwnPropertyNames(this))"function"!=typeof this[d]&&(this[d]=null)},a.fn.owlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){function e(b,c){var e=!1,f=b.charAt(0).toUpperCase()+b.slice(1);return a.each((b+" "+h.join(f+" ")+f).split(" "),function(a,b){return g[b]!==d?(e=c?b:!0,!1):void 0}),e}function f(a){return e(a,!0)}var g=a("<support>").get(0).style,h="Webkit Moz O ms".split(" "),i={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},j={csstransforms:function(){return!!e("transform")},csstransforms3d:function(){return!!e("perspective")},csstransitions:function(){return!!e("transition")},cssanimations:function(){return!!e("animation")}};j.csstransitions()&&(a.support.transition=new String(f("transition")),a.support.transition.end=i.transition.end[a.support.transition]),j.cssanimations()&&(a.support.animation=new String(f("animation")),a.support.animation.end=i.animation.end[a.support.animation]),j.csstransforms()&&(a.support.transform=new String(f("transform")),a.support.transform3d=j.csstransforms3d())}(window.Zepto||window.jQuery,window,document);
assets/frontend/js/scripts.js CHANGED
@@ -98,12 +98,20 @@ jQuery(document).ready(function($)
98
 
99
  var $grid = $('#post-grid-'+grid_id+' .grid-items').masonry({});
100
 
 
 
 
101
  // append items to grid
102
  $grid.append( data )
103
  // add and lay out newly appended items
104
- .masonry( 'appended', data );
 
 
105
  $grid.masonry( 'reloadItems' );
106
  $grid.masonry( 'layout' );
 
 
 
107
 
108
 
109
  $(this).attr('paged',(paged+1));
98
 
99
  var $grid = $('#post-grid-'+grid_id+' .grid-items').masonry({});
100
 
101
+
102
+
103
+
104
  // append items to grid
105
  $grid.append( data )
106
  // add and lay out newly appended items
107
+ .masonry( 'appended', data, true );
108
+
109
+
110
  $grid.masonry( 'reloadItems' );
111
  $grid.masonry( 'layout' );
112
+ $grid.masonry('destroy');
113
+
114
+ $('#post-grid-'+grid_id+' .grid-items').masonry({});
115
 
116
 
117
  $(this).attr('paged',(paged+1));
assets/global/css/style.skins.css CHANGED
@@ -79,6 +79,185 @@ Skins css
79
 
80
 
81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
 
83
  /*################### spinright ########################*/
84
 
@@ -119,54 +298,115 @@ opacity: 0;
119
 
120
 
121
 
122
- /*################### thumbgoleft ########################*/
123
 
124
- .skin.thumbgoleft {
 
 
 
125
  overflow: hidden;
126
  position: relative;
127
  vertical-align: top;
128
  }
129
 
130
- .skin.thumbgoleft:hover .layer-media {
131
- opacity: 0;
132
- transform: scale(0.5) translateX(-100%);
133
  }
134
 
135
- .skin.thumbgoleft .layer-media {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
136
  transition: all 1s ease 0s;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
137
  width: 100%;
138
  }
139
- .skin.thumbgoleft:hover .layer-content{
140
  opacity: 1;
141
  }
142
- .skin.thumbgoleft .layer-content {
143
  left: 0;
144
  opacity: 0;
145
  position: absolute;
146
  top: 0;
 
147
  transition: all 1s ease 0s;
148
  }
149
- .skin.thumbgoleft .layer-hover {
150
  display: none;
151
  }
152
 
153
 
154
- /*################### thumbrounded ########################*/
155
 
156
 
157
- .skin.thumbrounded{}
158
- .skin.thumbrounded .layer-media {
159
- background: rgb(255, 255, 255) none repeat scroll 0 0;
160
- border-radius: 50%;
161
  overflow: hidden;
 
 
162
  }
163
 
164
- .skin.thumbrounded .layer-media .thumb {
165
- height:240px;
 
166
  }
167
 
168
- .skin.thumbrounded .layer-content{}
169
- .skin.thumbrounded .layer-hover {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
170
  display: none;
171
  }
172
 
@@ -177,6 +417,861 @@ opacity: 0;
177
 
178
 
179
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
180
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
 
182
 
79
 
80
 
81
 
82
+ .skin.flip-y {
83
+ background: rgb(255, 255, 255) none repeat scroll 0 0;
84
+ overflow: hidden;
85
+ padding: 0;
86
+ perspective: 600px;
87
+ position: relative;
88
+ vertical-align: top;
89
+ width: 100%;
90
+ }
91
+
92
+ .skin.flip-y:hover .layer-media {
93
+ background: rgb(255, 255, 255) none repeat scroll 0 0;
94
+ transform: rotateY(180deg);
95
+ z-index: 900;
96
+ }
97
+
98
+
99
+ .skin.flip-y .layer-media {
100
+ backface-visibility: hidden;
101
+ background: rgb(255, 255, 255) none repeat scroll 0 0;
102
+ float: none;
103
+ height: inherit;
104
+ left: 0;
105
+ text-align: center;
106
+ top: 0;
107
+ transform: rotateX(0deg) rotateY(0deg);
108
+ transform-style: preserve-3d;
109
+ transition: all 0.4s ease-in-out 0s;
110
+ width: inherit;
111
+ z-index: 900;
112
+ }
113
+
114
+ .skin.flip-y:hover .layer-content {
115
+ background: rgb(255, 255, 255) none repeat scroll 0 0;
116
+ transform: rotateX(0deg) rotateY(0deg);
117
+ z-index: 1000;
118
+ }
119
+
120
+ .skin.flip-y .layer-content {
121
+ backface-visibility: hidden;
122
+ background: rgb(255, 255, 255) none repeat scroll 0 0;
123
+ float: none;
124
+ height: inherit;
125
+ left: 0;
126
+ position: absolute;
127
+ top: 0;
128
+ transform: rotateY(-179deg);
129
+ transform-style: preserve-3d;
130
+ transition: all 0.4s ease-in-out 0s;
131
+ width: inherit;
132
+ z-index: 800;
133
+ }
134
+
135
+ .skin.flip-y .layer-hover {
136
+ display: none;
137
+ }
138
+
139
+ /*################### zoomin ########################*/
140
+
141
+
142
+ .skin.zoomin {
143
+ overflow: hidden;
144
+ position: relative;
145
+ vertical-align: top;
146
+ }
147
+
148
+ .skin.zoomin:hover .layer-media {
149
+ transform: scale(1.5);
150
+ opacity: 0;
151
+ }
152
+
153
+ .skin.zoomin .layer-media {
154
+ transition: all 1s ease 0s;
155
+ left: 0;
156
+ top: 0;
157
+ width: 100%;
158
+ }
159
+ .skin.zoomin:hover .layer-content{
160
+ opacity: 1;
161
+ }
162
+ .skin.zoomin .layer-content {
163
+ opacity: 0;
164
+ position: absolute;
165
+ top: 0;
166
+ width: 100%;
167
+ transition: all 1s ease 0s;
168
+ }
169
+ .skin.zoomin .layer-hover {
170
+ display: none;
171
+ }
172
+
173
+ /*################### zoomout ########################*/
174
+ .skin.zoomout {
175
+ overflow: hidden;
176
+ position: relative;
177
+ vertical-align: top;
178
+ }
179
+ .skin.zoomout:hover .layer-media {
180
+ transform: scale(0);
181
+ opacity: 0;
182
+ }
183
+
184
+ .skin.zoomout .layer-media {
185
+ transition: all 1s ease 0s;
186
+ left: 0;
187
+ top: 0;
188
+ width: 100%;
189
+ }
190
+ .skin.zoomout:hover .layer-content{
191
+ opacity: 1;
192
+ }
193
+ .skin.zoomout .layer-content {
194
+ left: 0;
195
+ opacity: 0;
196
+ position: absolute;
197
+ top: 0;
198
+ width: 100%;
199
+ transition: all 1s ease 0s;
200
+ }
201
+ .skin.zoomout .layer-hover {
202
+ display: none;
203
+ }
204
+
205
+
206
+
207
+
208
+
209
+ /*################### ThumbZoomContentIn ########################*/
210
+
211
+
212
+ .skin.thumbzoomcontentin {
213
+ overflow: hidden;
214
+ position: relative;
215
+ vertical-align: top;
216
+ }
217
+
218
+ .skin.thumbzoomcontentin:hover .layer-media {
219
+ transform: scale(1.5);
220
+ opacity: 1;
221
+ }
222
+
223
+ .skin.thumbzoomcontentin .layer-media {
224
+ transition: all 0.3s ease 0s;
225
+ left: 0;
226
+ top: 0;
227
+ width: 100%;
228
+ }
229
+
230
+
231
+ .skin.thumbzoomcontentin:hover .layer-media {
232
+ filter: brightness(0.3);
233
+
234
+ }
235
+
236
+
237
+
238
+
239
+ .skin.thumbzoomcontentin:hover .layer-content{
240
+ opacity: 1;
241
+ }
242
+ .skin.thumbzoomcontentin .layer-content {
243
+ margin-top: 30%;
244
+ opacity: 0;
245
+ position: absolute;
246
+ top: 0;
247
+ transition: all 0.3s ease 0s;
248
+ width: 100%;
249
+ }
250
+ .skin.thumbzoomcontentin .layer-hover {
251
+ display: none;
252
+ }
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
 
262
  /*################### spinright ########################*/
263
 
298
 
299
 
300
 
 
301
 
302
+ /*################### spinrightzoom ########################*/
303
+
304
+
305
+ .skin.spinrightzoom {
306
  overflow: hidden;
307
  position: relative;
308
  vertical-align: top;
309
  }
310
 
311
+ .skin.spinrightzoom:hover .layer-media {
312
+ opacity: 0.6;
313
+ transform: rotate(20deg) scale(1.5);
314
  }
315
 
316
+ .skin.spinrightzoom .layer-media {
317
+ transition: all 1s ease 0s;
318
+ left: 0;
319
+ top: 0;
320
+ width: 100%;
321
+ }
322
+ .skin.spinrightzoom:hover .layer-content{
323
+ opacity: 1;
324
+ }
325
+ .skin.spinrightzoom .layer-content {
326
+ left: 0;
327
+ opacity: 0;
328
+ position: absolute;
329
+ top: 0;
330
+ width: 100%;
331
  transition: all 1s ease 0s;
332
+ }
333
+ .skin.spinrightzoom .layer-hover {
334
+ display: none;
335
+ }
336
+
337
+
338
+
339
+
340
+
341
+
342
+ /*################### spinleft ########################*/
343
+
344
+ .skin.spinleft {
345
+ overflow: hidden;
346
+ position: relative;
347
+ vertical-align: top;
348
+ }
349
+
350
+ .skin.spinleft:hover .layer-media {
351
+ transform: rotate(-30deg);
352
+ opacity: 0;
353
+ }
354
+
355
+ .skin.spinleft .layer-media {
356
+ transition: all 1s ease 0s;
357
+ left: 0;
358
+ top: 0;
359
  width: 100%;
360
  }
361
+ .skin.spinleft:hover .layer-content{
362
  opacity: 1;
363
  }
364
+ .skin.spinleft .layer-content {
365
  left: 0;
366
  opacity: 0;
367
  position: absolute;
368
  top: 0;
369
+ width: 100%;
370
  transition: all 1s ease 0s;
371
  }
372
+ .skin.spinleft .layer-hover {
373
  display: none;
374
  }
375
 
376
 
 
377
 
378
 
379
+ /*################### spinleftzoom ########################*/
380
+
381
+ .skin.spinleftzoom {
 
382
  overflow: hidden;
383
+ position: relative;
384
+ vertical-align: top;
385
  }
386
 
387
+ .skin.spinleftzoom:hover .layer-media {
388
+ opacity: 0.7;
389
+ transform: rotate(-30deg) scale(1.5);
390
  }
391
 
392
+ .skin.spinleftzoom .layer-media {
393
+ transition: all 1s ease 0s;
394
+ left: 0;
395
+ top: 0;
396
+ width: 100%;
397
+ }
398
+ .skin.spinleftzoom:hover .layer-content{
399
+ opacity: 1;
400
+ }
401
+ .skin.spinleftzoom .layer-content {
402
+ left: 0;
403
+ opacity: 0;
404
+ position: absolute;
405
+ top: 0;
406
+ width: 100%;
407
+ transition: all 1s ease 0s;
408
+ }
409
+ .skin.spinleftzoom .layer-hover {
410
  display: none;
411
  }
412
 
417
 
418
 
419
 
420
+ /*################### spinrightfast ########################*/
421
+
422
+
423
+ .skin.spinrightfast {
424
+ overflow: hidden;
425
+ position: relative;
426
+ vertical-align: top;
427
+ }
428
+
429
+ .skin.spinrightfast:hover .layer-media {
430
+ transform: rotate(180deg);
431
+ opacity: 0;
432
+ }
433
+
434
+ .skin.spinrightfast .layer-media {
435
+ transition: all 1s ease 0s;
436
+ left: 0;
437
+ top: 0;
438
+ width: 100%;
439
+ }
440
+ .skin.spinrightfast:hover .layer-content{
441
+ opacity: 1;
442
+ }
443
+ .skin.spinrightfast .layer-content {
444
+ left: 0;
445
+ opacity: 0;
446
+ position: absolute;
447
+ top: 0;
448
+ width: 100%;
449
+ transition: all 1s ease 0s;
450
+ }
451
+ .skin.spinrightfast .layer-hover {
452
+ display: none;
453
+ }
454
+
455
+ /*################### spinleftfast ########################*/
456
+
457
+ .skin.spinleftfast {
458
+ overflow: hidden;
459
+ position: relative;
460
+ vertical-align: top;
461
+ }
462
+
463
+ .skin.spinleftfast:hover .layer-media {
464
+ transform: rotate(-180deg);
465
+ opacity: 0;
466
+ }
467
 
468
+ .skin.spinleftfast .layer-media {
469
+ transition: all 1s ease 0s;
470
+ left: 0;
471
+ top: 0;
472
+ width: 100%;
473
+ }
474
+ .skin.spinleftfast:hover .layer-content{
475
+ opacity: 1;
476
+ }
477
+ .skin.spinleftfast .layer-content {
478
+ left: 0;
479
+ opacity: 0;
480
+ position: absolute;
481
+ top: 0;
482
+ width: 100%;
483
+ transition: all 1s ease 0s;
484
+ }
485
+ .skin.spinleftfast .layer-hover {
486
+ display: none;
487
+ }
488
+
489
+ /*################### thumbgoleft ########################*/
490
+
491
+ .skin.thumbgoleft {
492
+ overflow: hidden;
493
+ position: relative;
494
+ vertical-align: top;
495
+ }
496
+
497
+ .skin.thumbgoleft:hover .layer-media {
498
+ opacity: 0;
499
+ transform: scale(0.5) translateX(-100%);
500
+ }
501
+
502
+ .skin.thumbgoleft .layer-media {
503
+ transition: all 1s ease 0s;
504
+ width: 100%;
505
+ }
506
+ .skin.thumbgoleft:hover .layer-content{
507
+ opacity: 1;
508
+ }
509
+ .skin.thumbgoleft .layer-content {
510
+ left: 0;
511
+ opacity: 0;
512
+ position: absolute;
513
+ top: 0;
514
+ transition: all 1s ease 0s;
515
+ }
516
+ .skin.thumbgoleft .layer-hover {
517
+ display: none;
518
+ }
519
+
520
+
521
+ /*################### thumbgoright ########################*/
522
+
523
+ .skin.thumbgoright {
524
+ overflow: hidden;
525
+ position: relative;
526
+ vertical-align: top;
527
+ }
528
+
529
+ .skin.thumbgoright:hover .layer-media {
530
+ opacity: 0;
531
+ transform: scale(0.5) translateX(100%);
532
+ }
533
+
534
+ .skin.thumbgoright .layer-media {
535
+ transition: all 1s ease 0s;
536
+ width: 100%;
537
+ }
538
+ .skin.thumbgoright:hover .layer-content{
539
+ opacity: 1;
540
+ }
541
+ .skin.thumbgoright .layer-content {
542
+ left: 0;
543
+ opacity: 0;
544
+ position: absolute;
545
+ top: 0;
546
+ transition: all 1s ease 0s;
547
+ }
548
+ .skin.thumbgoright .layer-hover {
549
+ display: none;
550
+ }
551
+
552
+
553
+
554
+
555
+ /*################### thumbgotop ########################*/
556
+
557
+ .skin.thumbgotop {
558
+ overflow: hidden;
559
+ position: relative;
560
+ vertical-align: top;
561
+ }
562
+ .skin.thumbgotop:hover .layer-media {
563
+ opacity: 0;
564
+ top: -100%;
565
+ transform: translateY(-100%) scale(0.6);
566
+ }
567
+
568
+ .skin.thumbgotop .layer-media {
569
+ transition: all 1s ease 0s;
570
+ width: 100%;
571
+ }
572
+ .skin.thumbgotop:hover .layer-content{
573
+ opacity: 1;
574
+ }
575
+ .skin.thumbgotop .layer-content {
576
+ left: 0;
577
+ opacity: 0;
578
+ position: absolute;
579
+ top: 0;
580
+ transition: all 1s ease 0s;
581
+ }
582
+ .skin.thumbgotop .layer-hover {
583
+ display: none;
584
+ }
585
+
586
+
587
+
588
+
589
+ /*################### thumbgobottom ########################*/
590
+
591
+ .skin.thumbgobottom {
592
+ overflow: hidden;
593
+ position: relative;
594
+ vertical-align: top;
595
+ }
596
+ .skin.thumbgobottom:hover .layer-media {
597
+ bottom: -100%;
598
+ opacity: 0;
599
+ transform: scale(0.5) translateY(100%);
600
+ }
601
+ .skin.thumbgobottom .layer-media {
602
+ transition: all 1s ease 0s;
603
+ width: 100%;
604
+ }
605
+ .skin.thumbgobottom:hover .layer-content{
606
+ opacity: 1;
607
+ }
608
+ .skin.thumbgobottom .layer-content {
609
+ left: 0;
610
+ opacity: 0;
611
+ position: absolute;
612
+ top: 0;
613
+ width: 100%;
614
+ transition: all 1s ease 0s;
615
+ }
616
+ .skin.thumbgobottom .layer-hover {
617
+ display: none;
618
+ }
619
+
620
+
621
+
622
+
623
+
624
+
625
+
626
+
627
+
628
+ /*################### thumbmiddle ########################*/
629
+ .skin.thumbmiddle {
630
+ overflow: hidden;
631
+ position: relative;
632
+ vertical-align: top;
633
+ }
634
+
635
+ .skin.thumbmiddle:hover .layer-media {
636
+ transform: scale(0.9);
637
+ opacity: 0.3;
638
+ z-index:9;
639
+ }
640
+
641
+ .skin.thumbmiddle .layer-media {
642
+ transition: all 0.4s ease 0s;
643
+ left: 0;
644
+ top: 0;
645
+ width: 100%;
646
+ }
647
+ .skin.thumbmiddle:hover .layer-content{
648
+ opacity: 1;
649
+ z-index:10;
650
+ transform: scale(0.9);
651
+ padding:5px;
652
+ }
653
+ .skin.thumbmiddle .layer-content {
654
+ left: 0;
655
+ opacity: 0;
656
+ position: absolute;
657
+ top: 0;
658
+ transition: all 1s ease 0s;
659
+ width: 100%;
660
+ }
661
+ .skin.thumbmiddle .layer-hover {
662
+ display: none;
663
+ }
664
+
665
+
666
+
667
+
668
+
669
+ /*################### thumbskew ########################*/
670
+ .skin.thumbskew {
671
+ overflow: hidden;
672
+ position: relative;
673
+ vertical-align: top;
674
+ }
675
+
676
+ .skin.thumbskew:hover .layer-media {
677
+ transform: scale(0.9) skew(5deg);
678
+ opacity: 0.3;
679
+ z-index:9;
680
+ }
681
+
682
+ .skin.thumbskew .layer-media {
683
+ transition: all 0.4s ease 0s;
684
+ left: 0;
685
+ top: 0;
686
+ width: 100%;
687
+ }
688
+ .skin.thumbskew:hover .layer-content{
689
+ opacity: 1;
690
+ z-index:10;
691
+ transform: scale(0.9) ;
692
+ padding:5px;
693
+ }
694
+ .skin.thumbskew .layer-content {
695
+ left: 0;
696
+ opacity: 0;
697
+ position: absolute;
698
+ top: 0;
699
+ transition: all 1s ease 0s;
700
+ width: 100%;
701
+ }
702
+ .skin.thumbskew .layer-hover {
703
+ display: none;
704
+ }
705
+
706
+
707
+
708
+
709
+ /*################### contentbottom ########################*/
710
+ .skin.contentbottom {
711
+ overflow: hidden;
712
+ position: relative;
713
+ vertical-align: top;
714
+ }
715
+
716
+ .skin.contentbottom:hover .layer-media {
717
+
718
+ z-index:9;
719
+ }
720
+
721
+ .skin.contentbottom .layer-media {
722
+ transition: all 0.4s ease 0s;
723
+ left: 0;
724
+ top: 0;
725
+ width: 100%;
726
+ }
727
+ .skin.contentbottom:hover .layer-content{
728
+
729
+ }
730
+ .skin.contentbottom .layer-content {
731
+ background: rgba(0, 0, 0, 0.3) none repeat scroll 0 0;
732
+ bottom: 0;
733
+ color: rgb(255, 255, 255);
734
+ left: 0;
735
+ position: absolute;
736
+ transition: all 1s ease 0s;
737
+ width: 100%;
738
+ }
739
+ .skin.contentbottom .layer-hover {
740
+ display: none;
741
+ }
742
+
743
+
744
+
745
+
746
+
747
+ /*################### contentmiddle ########################*/
748
+ .skin.contentmiddle {
749
+ overflow: hidden;
750
+ position: relative;
751
+ vertical-align: top;
752
+ }
753
+
754
+ .skin.contentmiddle:hover .layer-media {
755
+
756
+ z-index:9;
757
+ }
758
+
759
+ .skin.contentmiddle .layer-media {
760
+ transition: all 0.4s ease 0s;
761
+ left: 0;
762
+ top: 0;
763
+ width: 100%;
764
+ }
765
+ .skin.contentmiddle:hover .layer-content{
766
+
767
+ }
768
+ .skin.contentmiddle .layer-content {
769
+ background: rgba(0, 0, 0, 0.3) none repeat scroll 0 0;
770
+ bottom: 50%;
771
+ color: rgb(255, 255, 255);
772
+ left: 0;
773
+ position: absolute;
774
+ transform: translate(0px, 50%);
775
+ width: 100%;
776
+ }
777
+ .skin.contentmiddle .layer-hover {
778
+ display: none;
779
+ }
780
+
781
+
782
+
783
+ /*################### contentinbottom ########################*/
784
+ .skin.contentinbottom {
785
+ overflow: hidden;
786
+ position: relative;
787
+ vertical-align: top;
788
+ }
789
+
790
+ .skin.contentinbottom:hover .layer-media {
791
+
792
+ z-index:9;
793
+ }
794
+
795
+ .skin.contentinbottom .layer-media {
796
+ transition: all 0.4s ease 0s;
797
+ left: 0;
798
+ top: 0;
799
+ width: 100%;
800
+ }
801
+ .skin.contentinbottom:hover .layer-content {
802
+ bottom: 0;
803
+ }
804
+ .skin.contentinbottom .layer-content {
805
+ background: rgba(0, 0, 0, 0.3) none repeat scroll 0 0;
806
+ bottom: -100%;
807
+ color: rgb(255, 255, 255);
808
+ left: 0;
809
+ position: absolute;
810
+ transition: all 0.5s ease 0s;
811
+ width: 100%;
812
+ }
813
+ .skin.contentinbottom .layer-hover {
814
+ display: none;
815
+ }
816
+
817
+
818
+
819
+
820
+ /*################### contentinleft ########################*/
821
+ .skin.contentinleft {
822
+ overflow: hidden;
823
+ position: relative;
824
+ vertical-align: top;
825
+ }
826
+
827
+ .skin.contentinleft:hover .layer-media {
828
+
829
+ z-index:9;
830
+ }
831
+
832
+ .skin.contentinleft .layer-media {
833
+ transition: all 0.4s ease 0s;
834
+ left: 0;
835
+ top: 0;
836
+ width: 100%;
837
+ }
838
+ .skin.contentinleft:hover .layer-content {
839
+ left: 0;
840
+ }
841
+ .skin.contentinleft .layer-content {
842
+ background: rgba(0, 0, 0, 0.3) none repeat scroll 0 0;
843
+ color: rgb(255, 255, 255);
844
+ height: 100%;
845
+ left: -100%;
846
+ position: absolute;
847
+ top: 0;
848
+ transition: all 0.5s ease 0s;
849
+ width: 100%;
850
+ }
851
+ .skin.contentinleft .layer-hover {
852
+ display: none;
853
+ }
854
+
855
+
856
+
857
+ /*################### contentinright ########################*/
858
+ .skin.contentinright {
859
+ overflow: hidden;
860
+ position: relative;
861
+ vertical-align: top;
862
+ }
863
+
864
+ .skin.contentinright:hover .layer-media {
865
+
866
+ z-index:9;
867
+ }
868
+
869
+ .skin.contentinright .layer-media {
870
+ transition: all 0.4s ease 0s;
871
+ left: 0;
872
+ top: 0;
873
+ width: 100%;
874
+ }
875
+ .skin.contentinright:hover .layer-content {
876
+ left: 0;
877
+ }
878
+ .skin.contentinright .layer-content {
879
+ background: rgba(0, 0, 0, 0.3) none repeat scroll 0 0;
880
+ color: rgb(255, 255, 255);
881
+ height: 100%;
882
+ left: 100%;
883
+ position: absolute;
884
+ top: 0;
885
+ transition: all 0.5s ease 0s;
886
+ width: 100%;
887
+ }
888
+ .skin.contentinright .layer-hover {
889
+ display: none;
890
+ }
891
+
892
+
893
+
894
+
895
+ /*################### thumbgoleftconetntinright ########################*/
896
+ .skin.thumbgoleftconetntinright {
897
+ overflow: hidden;
898
+ position: relative;
899
+ vertical-align: top;
900
+ }
901
+
902
+ .skin.thumbgoleftconetntinright:hover .layer-media {
903
+ transform: translateX(-100%);
904
+ }
905
+
906
+ .skin.thumbgoleftconetntinright .layer-media {
907
+ transition: all 0.4s ease 0s;
908
+ left: 0;
909
+ top: 0;
910
+ width: 100%;
911
+ }
912
+ .skin.thumbgoleftconetntinright:hover .layer-content {
913
+ left: 0;
914
+ }
915
+ .skin.thumbgoleftconetntinright .layer-content {
916
+ background: rgb(255, 255, 255) none repeat scroll 0 0;
917
+ height: 100%;
918
+ left: 100%;
919
+ position: absolute;
920
+ top: 0;
921
+ transition: all 0.5s ease 0s;
922
+ width: 100%;
923
+ }
924
+ .skin.thumbgoleftconetntinright .layer-hover {
925
+ display: none;
926
+ }
927
+
928
+
929
+
930
+
931
+ /*################### thumbgobottomconetntinright ########################*/
932
+ .skin.thumbgobottomconetntinright {
933
+ overflow: hidden;
934
+ position: relative;
935
+ vertical-align: top;
936
+ }
937
+
938
+ .skin.thumbgobottomconetntinright:hover .layer-media {
939
+ transform: translateY(100%);
940
+ }
941
+
942
+ .skin.thumbgobottomconetntinright .layer-media {
943
+ transition: all 0.4s ease 0s;
944
+ left: 0;
945
+ top: 0;
946
+ width: 100%;
947
+ }
948
+ .skin.thumbgobottomconetntinright:hover .layer-content {
949
+ left: 0;
950
+ }
951
+ .skin.thumbgobottomconetntinright .layer-content {
952
+ background: rgb(255, 255, 255) none repeat scroll 0 0;
953
+ height: 100%;
954
+ left: 100%;
955
+ position: absolute;
956
+ top: 0;
957
+ transition: all 0.5s ease 0s;
958
+ width: 100%;
959
+ }
960
+ .skin.thumbgobottomconetntinright .layer-hover {
961
+ display: none;
962
+ }
963
+
964
+
965
+
966
+ /*################### thumbgotopconetntinright ########################*/
967
+ .skin.thumbgotopconetntinright {
968
+ overflow: hidden;
969
+ position: relative;
970
+ vertical-align: top;
971
+ }
972
+
973
+ .skin.thumbgotopconetntinright:hover .layer-media {
974
+ transform: translateY(-100%);
975
+ }
976
+
977
+ .skin.thumbgotopconetntinright .layer-media {
978
+ transition: all 0.4s ease 0s;
979
+ left: 0;
980
+ top: 0;
981
+ width: 100%;
982
+ }
983
+ .skin.thumbgotopconetntinright:hover .layer-content {
984
+ left: 0;
985
+ }
986
+ .skin.thumbgotopconetntinright .layer-content {
987
+ background: rgb(255, 255, 255) none repeat scroll 0 0;
988
+ height: 100%;
989
+ left: 100%;
990
+ position: absolute;
991
+ top: 0;
992
+ transition: all 0.5s ease 0s;
993
+ width: 100%;
994
+ }
995
+ .skin.thumbgotopconetntinright .layer-hover {
996
+ display: none;
997
+ }
998
+
999
+
1000
+
1001
+ /*################### thumbgorightconetntinright ########################*/
1002
+ .skin.thumbgorightconetntinright {
1003
+ overflow: hidden;
1004
+ position: relative;
1005
+ vertical-align: top;
1006
+ }
1007
+
1008
+ .skin.thumbgorightconetntinright:hover .layer-media {
1009
+ transform: translateX(100%);
1010
+ }
1011
+
1012
+ .skin.thumbgorightconetntinright .layer-media {
1013
+ transition: all 0.4s ease 0s;
1014
+ left: 0;
1015
+ top: 0;
1016
+ width: 100%;
1017
+ }
1018
+ .skin.thumbgorightconetntinright:hover .layer-content {
1019
+ left: 0;
1020
+ }
1021
+ .skin.thumbgorightconetntinright .layer-content {
1022
+ background: rgba(255, 255, 255,0) none repeat scroll 0 0;
1023
+ height: 100%;
1024
+ left: 100%;
1025
+ position: absolute;
1026
+ top: 0;
1027
+ transition: all 0.5s ease 0s;
1028
+ width: 100%;
1029
+ }
1030
+ .skin.thumbgorightconetntinright .layer-hover {
1031
+ display: none;
1032
+ }
1033
+
1034
+
1035
+
1036
+ /*################### halfthumbleft ########################*/
1037
+
1038
+
1039
+ .skin.halfthumbleft {
1040
+ overflow: hidden;
1041
+ vertical-align: top;
1042
+ }
1043
+ .skin.halfthumbleft .layer-media {
1044
+ display: inline-block;
1045
+ float: left;
1046
+ vertical-align: top;
1047
+ width: 49%;
1048
+ }
1049
+ .skin.halfthumbleft .layer-content {
1050
+ display: inline-block;
1051
+ float: right;
1052
+ width: 49%;
1053
+ }
1054
+ .skin.halfthumbleft .layer-hover {
1055
+ display: none;
1056
+ }
1057
+
1058
+
1059
+ /*################### halfthumbright ########################*/
1060
+
1061
+ .skin.halfthumbright {
1062
+ overflow: hidden;
1063
+ vertical-align: top;
1064
+ }
1065
+ .skin.halfthumbright .layer-media {
1066
+ display: inline-block;
1067
+ float: right;
1068
+ vertical-align: top;
1069
+ width: 49%;
1070
+ }
1071
+ .skin.halfthumbright .layer-content {
1072
+ display: inline-block;
1073
+ width: 49%;
1074
+ }
1075
+ .skin.halfthumbright .layer-hover {
1076
+ display: none;
1077
+ }
1078
+
1079
+
1080
+ /*################### thumbright ########################*/
1081
+
1082
+
1083
+ .skin.thumbright{}
1084
+ .skin.thumbright .layer-media{}
1085
+ .skin.thumbright .layer-content{}
1086
+ .skin.thumbright .layer-hover{}
1087
+
1088
+ /*################### thumbrounded ########################*/
1089
+
1090
+
1091
+ .skin.thumbrounded{}
1092
+ .skin.thumbrounded .layer-media {
1093
+ background: rgb(255, 255, 255) none repeat scroll 0 0;
1094
+ border-radius: 50%;
1095
+ overflow: hidden;
1096
+ }
1097
+
1098
+ .skin.thumbrounded .layer-media .thumb {
1099
+ height:240px;
1100
+ }
1101
+
1102
+ .skin.thumbrounded .layer-content{}
1103
+ .skin.thumbrounded .layer-hover {
1104
+ display: none;
1105
+ }
1106
+
1107
+
1108
+
1109
+
1110
+
1111
+
1112
+
1113
+
1114
+
1115
+
1116
+ /*################### contentborder ########################*/
1117
+ .skin.contentborder {
1118
+ overflow: hidden;
1119
+ position: relative;
1120
+ vertical-align: top;
1121
+ }
1122
+
1123
+ .skin.contentborder:hover .layer-media {
1124
+
1125
+ z-index:9;
1126
+ }
1127
+
1128
+ .skin.contentborder .layer-media {
1129
+ transition: all 0.4s ease 0s;
1130
+ left: 0;
1131
+ top: 0;
1132
+ width: 100%;
1133
+ }
1134
+ .skin.contentborder:hover .layer-content{
1135
+
1136
+ }
1137
+ .skin.contentborder .layer-content {
1138
+ background: rgba(0, 0, 0, 0.3) none repeat scroll 0 0;
1139
+ bottom: 50%;
1140
+ color: rgb(255, 255, 255);
1141
+ left: 0;
1142
+ padding: 40px;
1143
+ position: absolute;
1144
+ transform: translate(0px, 50%);
1145
+ }
1146
+ .skin.contentborder .layer-hover {
1147
+ display: none;
1148
+ }
1149
+
1150
+
1151
+ .skin.contentborder .layer-content::before {
1152
+ border-bottom: 1px solid #fff;
1153
+ border-top: 1px solid #fff;
1154
+ bottom: 30px;
1155
+ left: 10px;
1156
+ right: 10px;
1157
+ top: 30px;
1158
+ transform: scale(0, 1);
1159
+ transform-origin: 0 0 0;
1160
+ }
1161
+
1162
+ .skin.contentborder .layer-content::after {
1163
+ border-left: 1px solid #fff;
1164
+ border-right: 1px solid #fff;
1165
+ bottom: 10px;
1166
+ left: 30px;
1167
+ right: 30px;
1168
+ top: 10px;
1169
+ transform: scale(1, 0);
1170
+ transform-origin: 100% 0 0;
1171
+ }
1172
+
1173
+ .skin.contentborder:hover .layer-content::before, .skin.contentborder:hover .layer-content::after {
1174
+ opacity: 1;
1175
+ transform: scale(1);
1176
+ }
1177
+
1178
+ .skin.contentborder .layer-content::before, .skin.contentborder .layer-content::after {
1179
+ content: "";
1180
+ opacity: 0;
1181
+ position: absolute;
1182
+ }
1183
+
1184
+ .skin.contentborder .layer-content::before, .skin.contentborder .layer-content::after {
1185
+ transition: opacity 0.35s ease 0s, transform 0.35s ease 0s;
1186
+ }
1187
+
1188
+
1189
+
1190
+
1191
+
1192
+ /*################### contentborderrounded ########################*/
1193
+ .skin.contentborderrounded {
1194
+ overflow: hidden;
1195
+ position: relative;
1196
+ vertical-align: top;
1197
+ }
1198
+
1199
+ .skin.contentborderrounded:hover .layer-media {
1200
+
1201
+ z-index:9;
1202
+ }
1203
+
1204
+ .skin.contentborderrounded .layer-media {
1205
+ transition: all 0.4s ease 0s;
1206
+ left: 0;
1207
+ top: 0;
1208
+ width: 100%;
1209
+ }
1210
+ .skin.contentborderrounded:hover .layer-content{
1211
+
1212
+ }
1213
+ .skin.contentborderrounded .layer-content {
1214
+ background: rgba(0, 0, 0, 0.3) none repeat scroll 0 0;
1215
+ bottom: 50%;
1216
+ color: rgb(255, 255, 255);
1217
+ left: 0;
1218
+ padding: 40px;
1219
+ position: absolute;
1220
+ transform: translate(0px, 50%);
1221
+ }
1222
+ .skin.contentborderrounded .layer-hover {
1223
+ display: none;
1224
+ }
1225
+
1226
+
1227
+ .skin.contentborderrounded .layer-content::before {
1228
+ border-bottom: 1px solid #fff;
1229
+ border-top: 1px solid #fff;
1230
+ border-radius: 15px;
1231
+ bottom: 30px;
1232
+ left: 30px;
1233
+ right: 30px;
1234
+ top: 30px;
1235
+ transform: scale(0, 1);
1236
+ transform-origin: 0 0 0;
1237
+ }
1238
+
1239
+ .skin.contentborderrounded .layer-content::after {
1240
+ border-left: 1px solid #fff;
1241
+ border-right: 1px solid #fff;
1242
+ border-radius: 15px;
1243
+ bottom: 30px;
1244
+ left: 30px;
1245
+ right: 30px;
1246
+ top: 30px;
1247
+ transform: scale(1, 0);
1248
+ transform-origin: 100% 0 0;
1249
+ }
1250
+
1251
+ .skin.contentborderrounded:hover .layer-content::before, .skin.contentborderrounded:hover .layer-content::after {
1252
+ opacity: 1;
1253
+ transform: scale(1);
1254
+ }
1255
+
1256
+ .skin.contentborderrounded .layer-content::before, .skin.contentborderrounded .layer-content::after {
1257
+ content: "";
1258
+ opacity: 0;
1259
+ position: absolute;
1260
+ }
1261
+
1262
+ .skin.contentborderrounded .layer-content::before, .skin.contentborderrounded .layer-content::after {
1263
+ transition: opacity 0.35s ease 0s, transform 0.35s ease 0s;
1264
+ }
1265
+
1266
+ .skin.contentborderrounded .layer-content{
1267
+ padding-bottom:65px;}
1268
+
1269
+ .skin.contentborderrounded .layer-content .read_more {
1270
+ left: 0;
1271
+ position: absolute;
1272
+ text-align: center;
1273
+ width: 100%;
1274
+ z-index: 11;
1275
+ }
1276
 
1277
 
grid-items/custom-css.php CHANGED
@@ -94,7 +94,14 @@ if ( ! defined('ABSPATH')) exit; // if direct access
94
  }
95
 
96
 
97
-
 
 
 
 
 
 
 
98
 
99
 
100
  $html .= '</style>';
@@ -111,12 +118,41 @@ if ( ! defined('ABSPATH')) exit; // if direct access
111
 
112
  $html .= '<style type="text/css">';
113
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  $html .= '#post-grid-'.$post_id.' {
115
  padding:'.$container_padding.';
116
  background: '.$container_bg_color.' url('.$container_bg_image.') repeat scroll 0 0;
117
  }';
118
 
 
 
 
 
 
 
 
 
 
 
119
 
 
 
 
120
  if($items_media_height_style == 'auto_height'){
121
  $items_media_height = 'auto';
122
  }
@@ -159,7 +195,20 @@ if ( ! defined('ABSPATH')) exit; // if direct access
159
 
160
 
161
 
162
-
 
 
 
 
 
 
 
 
 
 
 
 
 
163
 
164
 
165
 
@@ -167,16 +216,151 @@ if ( ! defined('ABSPATH')) exit; // if direct access
167
 
168
  $html .= '#post-grid-'.$post_id.' .item{
169
  margin:'.$items_margin.';';
 
 
 
 
 
 
 
 
 
 
 
 
170
 
171
  $html .= '}';
172
 
173
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
174
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
175
 
 
 
 
 
 
 
 
 
 
 
 
176
 
 
 
 
 
 
 
 
 
177
 
 
 
 
 
 
 
178
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
179
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
180
  $html .= '
181
  @media only screen and (min-width: 1024px ) {
182
  #post-grid-'.$post_id.' .item{width:'.$items_width_desktop.'}
@@ -189,8 +373,12 @@ if ( ! defined('ABSPATH')) exit; // if direct access
189
 
190
  @media only screen and ( min-width: 320px ) and ( max-width: 767px ) {
191
  #post-grid-'.$post_id.' .item{width:'.$items_width_mobile.'}
 
 
192
  }
 
 
193
 
194
 
195
 
196
- </style>';
94
  }
95
 
96
 
97
+
98
+ if($lazy_load_enable=='yes'){
99
+
100
+ //$html .= '#post-grid-'.$post_id.'{display: none;}';
101
+
102
+ }
103
+
104
+
105
 
106
 
107
  $html .= '</style>';
118
 
119
  $html .= '<style type="text/css">';
120
 
121
+
122
+ $html .= '#post-grid-'.$post_id.' .owl-dots .owl-dot {
123
+ background: '.$slider_dots_bg_color.' none repeat scroll 0 0;
124
+
125
+ }';
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
  $html .= '#post-grid-'.$post_id.' {
138
  padding:'.$container_padding.';
139
  background: '.$container_bg_color.' url('.$container_bg_image.') repeat scroll 0 0;
140
  }';
141
 
142
+
143
+ /*
144
+
145
+ if($skin=='flip-y' || $skin=='flip-x'){
146
+
147
+ $html .= '#post-grid-'.$post_id.' .item{
148
+ height:'.$items_fixed_height.' !important;
149
+ }';
150
+
151
+ }
152
 
153
+ */
154
+
155
+
156
  if($items_media_height_style == 'auto_height'){
157
  $items_media_height = 'auto';
158
  }
195
 
196
 
197
 
198
+ if($items_height_style == 'auto_height'){
199
+ $items_height = 'auto';
200
+ }
201
+ elseif($items_height_style == 'fixed_height'){
202
+ $items_height = $items_fixed_height;
203
+ }
204
+
205
+ elseif($items_height_style == 'max_height'){
206
+ $items_height = $items_fixed_height;
207
+ }
208
+
209
+ else{
210
+ $items_height = '220px';
211
+ }
212
 
213
 
214
 
216
 
217
  $html .= '#post-grid-'.$post_id.' .item{
218
  margin:'.$items_margin.';';
219
+
220
+ if($items_height_style == 'fixed_height' || $items_height_style == 'auto_height'){
221
+
222
+ $html .= 'height:'.$items_height.';';
223
+ }
224
+ elseif($items_height_style=='max_height'){
225
+ $html .= 'max-height:'.$items_height.';';
226
+ }
227
+ else{
228
+ $html .= 'height:'.$items_height.';';
229
+
230
+ }
231
 
232
  $html .= '}';
233
 
234
 
235
+
236
+
237
+
238
+
239
+ if($grid_type!='slider'){
240
+
241
+
242
+
243
+ if($grid_layout_name=='layout_grid'){
244
+
245
+
246
+
247
+ }
248
+
249
+ elseif($grid_layout_name=='layout_1_N'){
250
+
251
+ $width = intval($items_width_desktop*$grid_layout_col_multi)+intval($items_margin*2*($grid_layout_col_multi-1));
252
+
253
+ $html .= '
254
+
255
+ @media only screen and (min-width: 1024px ) {
256
+
257
+ #post-grid-'.$post_id.' .item:first-child{
258
+ width: '.($width).'px;
259
+ }
260
+ }
261
+
262
+ ';
263
+
264
+
265
+ }
266
+
267
+ elseif($grid_layout_name=='layout_N_1'){
268
+
269
+ $width = intval($items_width_desktop*$grid_layout_col_multi)+intval($items_margin*2*($grid_layout_col_multi-1));
270
+
271
+ $html .= '
272
+
273
+ @media only screen and (min-width: 1024px ) {
274
+
275
+ #post-grid-'.$post_id.' .item:last-child{
276
+ width: '.($width).'px;
277
+ }
278
+ }
279
+
280
+ ';
281
+
282
+ }
283
 
284
+
285
+
286
+ elseif($grid_layout_name=='layout_3'){
287
+
288
+ $width = intval($items_width_desktop)+intval($items_margin);
289
+
290
+ $html .= '
291
+
292
+ @media only screen and (min-width: 1024px ) {
293
+
294
+ #post-grid-'.$post_id.' .item:first-child{
295
+ float: left;
296
+ }
297
+
298
+ #post-grid-'.$post_id.' .item{
299
+ float: right;
300
+ }
301
 
302
+
303
+ }
304
+
305
+ ';
306
+
307
+ }
308
+
309
+
310
+
311
+
312
+
313
 
314
+ elseif($grid_layout_name=='layout_L_R'){
315
+
316
+ $html .= '
317
+
318
+ @media only screen and (min-width: 1024px ) {
319
+
320
+ #post-grid-'.$post_id.' .item.odd .layer-media{
321
+ float: right;
322
 
323
+ }
324
+ }
325
+
326
+ ';
327
+
328
+ }
329
 
330
+ elseif($grid_layout_name=='layout_1_N_1'){
331
+
332
+ $width = intval($items_width_desktop*$grid_layout_col_multi)+intval($items_margin*2*($grid_layout_col_multi-1));
333
+
334
+ $html .= '
335
+
336
+ @media only screen and (min-width: 1024px ) {
337
+
338
+ #post-grid-'.$post_id.' .item:nth-child(1),
339
+ #post-grid-'.$post_id.' .item:nth-child('.($grid_layout_col_multi+2).') {
340
+ width: '.($width).'px;
341
+ }
342
+ }
343
+
344
+ ';
345
+
346
+ }
347
 
348
+
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+
364
  $html .= '
365
  @media only screen and (min-width: 1024px ) {
366
  #post-grid-'.$post_id.' .item{width:'.$items_width_desktop.'}
373
 
374
  @media only screen and ( min-width: 320px ) and ( max-width: 767px ) {
375
  #post-grid-'.$post_id.' .item{width:'.$items_width_mobile.'}
376
+ }';
377
+
378
  }
379
+
380
+
381
 
382
 
383
 
384
+ $html .= '</style>';
grid-items/layer-content.php CHANGED
@@ -43,6 +43,15 @@ if ( ! defined('ABSPATH')) exit; // if direct access
43
  if(!empty($item_info['char_limit'])){
44
  $char_limit = $item_info['char_limit'];
45
  }
 
 
 
 
 
 
 
 
 
46
 
47
 
48
 
@@ -54,10 +63,40 @@ if ( ! defined('ABSPATH')) exit; // if direct access
54
 
55
  elseif($item_key=='title_link'){
56
 
57
- $html_content.= '<a class="element element_'.$item_id.' '.$item_key.'" href="'.get_permalink().'">'.apply_filters('post_grid_filter_grid_item_title',wp_trim_words(get_the_title(), $char_limit,'')).'</a>';
58
 
59
  }
60
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
 
62
  elseif($item_key=='thumb'){
63
 
@@ -88,50 +127,31 @@ if ( ! defined('ABSPATH')) exit; // if direct access
88
  }
89
 
90
 
91
- elseif($item_key=='content'){
92
- $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
93
- $the_content = apply_filters( 'the_content', get_the_content() );
94
- $html_content.= apply_filters('post_grid_filter_grid_item_content', $the_content);
95
-
96
- //$html_content.= apply_filters( 'the_content', get_the_content() );
97
- $html_content.='</div>';
98
- }
99
 
100
 
101
  elseif($item_key=='excerpt'){
102
  $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
103
- $html_content.= apply_filters('post_grid_filter_grid_item_excerpt',wp_trim_words(get_the_excerpt(), $char_limit,''));
 
 
 
 
 
 
104
 
105
  //$html_content.= wp_trim_words(get_the_excerpt(), $char_limit,'');
106
  $html_content.='</div>';
107
  }
108
 
109
- elseif($item_key=='read_more'){
110
-
111
- if(!empty($item_info['read_more_text'])){
112
- $read_more_text = $item_info['read_more_text'];
113
- }
114
- else{
115
-
116
-
117
-
118
-
119
- $read_more_text = apply_filters('post_grid_filter_grid_item_read_more', __('Read more.', post_grid_textdomain));
120
-
121
-
122
- }
123
-
124
-
125
- $html_content.= '<a class="element element_'.$item_id.' '.$item_key.'" href="'.get_permalink().'">'.$read_more_text.'</a>';
126
-
127
- }
128
 
129
  elseif($item_key=='excerpt_read_more'){
130
  $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
131
 
132
  $read_more_text = apply_filters('post_grid_filter_grid_item_read_more', __('Read more.', post_grid_textdomain));
133
 
134
- $html_content.= wp_trim_words(get_the_excerpt(), $char_limit,'').' <a class="read-more" href="'.get_permalink().'">'.$read_more_text.'</a>';
135
  $html_content.='</div>';
136
  }
137
 
@@ -151,6 +171,16 @@ if ( ! defined('ABSPATH')) exit; // if direct access
151
  $html_content.='</div>';
152
  }
153
 
 
 
 
 
 
 
 
 
 
 
154
  elseif($item_key=='categories'){
155
 
156
  $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
@@ -295,48 +325,6 @@ if ( ! defined('ABSPATH')) exit; // if direct access
295
  }
296
 
297
 
298
- elseif($item_key=='rating_widget'){
299
-
300
-
301
- $active_plugins = get_option('active_plugins');
302
- if(in_array( 'rating-widget/rating-widget.php', (array) $active_plugins )){
303
-
304
- $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
305
- $html_content.=do_shortcode('[ratingwidget post_id="'.get_the_ID().'"]');
306
- $html_content.='</div>';
307
-
308
- }
309
-
310
- }
311
-
312
-
313
-
314
- elseif($item_key=='wc_gallery'){
315
- $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
316
-
317
- $is_product = get_post_type( get_the_ID() );
318
- $active_plugins = get_option('active_plugins');
319
- if(in_array( 'woocommerce/woocommerce.php', (array) $active_plugins ) && $is_product=='product'){
320
- global $woocommerce, $product;
321
-
322
- $gallery_attachment_ids = array_filter($product->get_gallery_attachment_ids());
323
- $gallery_html = '';
324
- if(!empty($gallery_attachment_ids)){
325
-
326
- foreach($gallery_attachment_ids as $id){
327
-
328
- $gallery_html.= '<a href="'.wp_get_attachment_url($id).'"><img src="'.wp_get_attachment_thumb_url($id).'" /></a>';
329
- }
330
-
331
- }
332
-
333
-
334
-
335
- $html_content.= $gallery_html;
336
- }
337
- $html_content.='</div>';
338
- }
339
-
340
  elseif($item_key=='wc_full_price'){
341
  $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
342
 
@@ -350,55 +338,9 @@ if ( ! defined('ABSPATH')) exit; // if direct access
350
  $html_content.=$full_price;
351
  }
352
  $html_content.='</div>';
353
- }
354
-
355
-
356
-
357
- elseif($item_key=='wc_sale_price'){
358
- $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
359
-
360
- $is_product = get_post_type( get_the_ID() );
361
- $active_plugins = get_option('active_plugins');
362
- if(in_array( 'woocommerce/woocommerce.php', (array) $active_plugins ) && $is_product=='product'){
363
- global $woocommerce, $product;
364
-
365
- $currency_symbol = get_woocommerce_currency_symbol();
366
- $sale_price = $product->get_sale_price();
367
-
368
- if(!empty($sale_price)){
369
- $html_content.=$currency_symbol.$sale_price;
370
- }
371
- else{
372
- $html_content.= '';
373
- }
374
-
375
- }
376
- $html_content.='</div>';
377
- }
378
 
379
- elseif($item_key=='wc_regular_price'){
380
- $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
381
 
382
- $is_product = get_post_type( get_the_ID() );
383
- $active_plugins = get_option('active_plugins');
384
- if(in_array( 'woocommerce/woocommerce.php', (array) $active_plugins ) && $is_product=='product'){
385
- global $woocommerce, $product;
386
-
387
- $currency_symbol = get_woocommerce_currency_symbol();
388
-
389
- $regular_price = $product->get_regular_price();
390
-
391
- if(!empty($regular_price)){
392
- $html_content.=$currency_symbol.$regular_price;
393
- }
394
- else{
395
- $html_content.= '';
396
- }
397
- }
398
- $html_content.='</div>';
399
- }
400
-
401
-
402
  elseif($item_key=='wc_add_to_cart'){
403
  $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
404
 
@@ -413,113 +355,8 @@ if ( ! defined('ABSPATH')) exit; // if direct access
413
 
414
  }
415
  $html_content.='</div>';
416
- }
417
-
418
- elseif($item_key=='wc_rating_star'){
419
- $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
420
-
421
- $is_product = get_post_type( get_the_ID() );
422
- $active_plugins = get_option('active_plugins');
423
- if(in_array( 'woocommerce/woocommerce.php', (array) $active_plugins ) && $is_product=='product'){
424
- global $woocommerce, $product;
425
-
426
- $rating = $product->get_average_rating();
427
- $rating = (($rating/5)*100);
428
-
429
- if( $rating > 0 ){
430
-
431
- $rating_html = '<div class="woocommerce woocommerce-product-rating"><div class="star-rating" style="color:#444; padding-bottom:10px;" title="'.__('Rated',post_grid_textdomain).' '.$rating.'"><span style="width:'.$rating.'%;"></span></div></div>';
432
-
433
- }
434
- else{
435
- $rating_html = '';
436
-
437
- }
438
-
439
- $html_content.= $rating_html;
440
-
441
- }
442
- $html_content.='</div>';
443
- }
444
-
445
- elseif($item_key=='wc_rating_text'){
446
- $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
447
-
448
- $is_product = get_post_type( get_the_ID() );
449
- $active_plugins = get_option('active_plugins');
450
- if(in_array( 'woocommerce/woocommerce.php', (array) $active_plugins ) && $is_product=='product'){
451
- global $woocommerce, $product;
452
-
453
- $rating = $product->get_average_rating();
454
- //$rating = (($rating/5)*100);
455
-
456
- if( $rating > 0 ){
457
-
458
- $rating_html = $rating.' '.__('out of 5',post_grid_textdomain);
459
-
460
- }
461
- else{
462
- $rating_html = '';
463
-
464
- }
465
-
466
- $html_content.= $rating_html;
467
-
468
- }
469
- $html_content.='</div>';
470
- }
471
-
472
- elseif($item_key=='wc_categories'){
473
- $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
474
-
475
- $is_product = get_post_type( get_the_ID() );
476
- $active_plugins = get_option('active_plugins');
477
- if(in_array( 'woocommerce/woocommerce.php', (array) $active_plugins ) && $is_product=='product'){
478
- global $woocommerce, $product;
479
-
480
- $categories = $product->get_categories();
481
-
482
-
483
- $html_content.= $categories;
484
-
485
- }
486
- $html_content.='</div>';
487
- }
488
-
489
-
490
- elseif($item_key=='wc_tags'){
491
- $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
492
-
493
- $is_product = get_post_type( get_the_ID() );
494
- $active_plugins = get_option('active_plugins');
495
- if(in_array( 'woocommerce/woocommerce.php', (array) $active_plugins ) && $is_product=='product'){
496
- global $woocommerce, $product;
497
-
498
- $tags = $product->get_tags();
499
-
500
-
501
- $html_content.= $tags;
502
-
503
- }
504
- $html_content.='</div>';
505
- }
506
-
507
- elseif($item_key=='wc_sku'){
508
- $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
509
-
510
- $is_product = get_post_type( get_the_ID() );
511
- $active_plugins = get_option('active_plugins');
512
- if(in_array( 'woocommerce/woocommerce.php', (array) $active_plugins ) && $is_product=='product'){
513
- global $woocommerce, $product;
514
-
515
- $sku = $product->get_sku();
516
-
517
-
518
- $html_content.= $sku;
519
-
520
- }
521
- $html_content.='</div>';
522
- }
523
 
524
 
525
  elseif($item_key=='edd_price'){
@@ -537,61 +374,7 @@ if ( ! defined('ABSPATH')) exit; // if direct access
537
  }
538
  $html_content.='</div>';
539
  }
540
-
541
- elseif($item_key=='edd_variable_prices'){
542
- $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
543
-
544
- $is_download = get_post_type( get_the_ID() );
545
- $active_plugins = get_option('active_plugins');
546
- if(in_array( 'easy-digital-downloads/easy-digital-downloads.php', (array) $active_plugins ) && $is_download=='download'){
547
-
548
-
549
- $prices = edd_get_variable_prices( get_the_ID() );
550
- if( $prices ) {
551
- $html_price = '';
552
- $html_price.= '<ul>';
553
- foreach( $prices as $price_id => $price ) {
554
- $html_price.= '<li>'.$price['name'].': '.$price['amount'].'</li>';; //is the name of the price
555
-
556
- }
557
- $html_price.= '</ul>';
558
- }
559
-
560
- $html_content.= $html_price;
561
-
562
- }
563
- $html_content.='</div>';
564
- }
565
-
566
-
567
- elseif($item_key=='edd_sales_stats'){
568
- $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
569
 
570
- $is_download = get_post_type( get_the_ID() );
571
- $active_plugins = get_option('active_plugins');
572
- if(in_array( 'easy-digital-downloads/easy-digital-downloads.php', (array) $active_plugins ) && $is_download=='download'){
573
-
574
- $sales_stats = edd_get_download_sales_stats( get_the_ID() );
575
- $html_content.= $sales_stats;
576
-
577
- }
578
- $html_content.='</div>';
579
- }
580
-
581
-
582
- elseif($item_key=='edd_earnings_stats'){
583
- $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
584
-
585
- $is_download = get_post_type( get_the_ID() );
586
- $active_plugins = get_option('active_plugins');
587
- if(in_array( 'easy-digital-downloads/easy-digital-downloads.php', (array) $active_plugins ) && $is_download=='download'){
588
-
589
- $earnings_stats = edd_get_download_earnings_stats( get_the_ID() );
590
- $html_content.= $earnings_stats;
591
-
592
- }
593
- $html_content.='</div>';
594
- }
595
 
596
 
597
  elseif($item_key=='edd_add_to_cart'){
@@ -608,162 +391,8 @@ if ( ! defined('ABSPATH')) exit; // if direct access
608
  $html_content.='</div>';
609
  }
610
 
611
- elseif($item_key=='edd_categories'){
612
- $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
613
-
614
- $is_download = get_post_type( get_the_ID() );
615
- $active_plugins = get_option('active_plugins');
616
- if(in_array( 'easy-digital-downloads/easy-digital-downloads.php', (array) $active_plugins ) && $is_download=='download'){
617
-
618
- $term_list = wp_get_post_terms($post->ID, 'download_category', array("fields" => "all"));
619
-
620
- if( $term_list ) {
621
- $html_term = '';
622
-
623
- foreach( $term_list as $term ) {
624
- $html_term.= '<a href="#">'.$term->name.'</a>, '; //is the name of the price
625
- }
626
-
627
- }
628
-
629
- $html_content.= $html_term;
630
-
631
- }
632
- $html_content.='</div>';
633
- }
634
-
635
- elseif($item_key=='edd_tags'){
636
- $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
637
-
638
- $is_download = get_post_type( get_the_ID() );
639
- $active_plugins = get_option('active_plugins');
640
- if(in_array( 'easy-digital-downloads/easy-digital-downloads.php', (array) $active_plugins ) && $is_download=='download'){
641
-
642
- $term_list = wp_get_post_terms($post->ID, 'download_tag', array("fields" => "all"));
643
-
644
- if( $term_list ) {
645
- $html_term = '';
646
-
647
- foreach( $term_list as $term ) {
648
- $html_term.= '<a href="#">'.$term->name.'</a>, '; //is the name of the price
649
- }
650
-
651
- }
652
-
653
- $html_content.= $html_term;
654
-
655
- }
656
- $html_content.='</div>';
657
- }
658
-
659
-
660
 
661
 
662
-
663
- elseif($item_key=='WPeC_old_price'){
664
-
665
- $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
666
-
667
- $is_product = get_post_type( get_the_ID() );
668
- $active_plugins = get_option('active_plugins');
669
- if(in_array( 'wp-e-commerce/wp-shopping-cart.php', (array) $active_plugins ) && $is_product=='wpsc-product'){
670
-
671
- $html_content.= wpsc_product_normal_price();
672
-
673
- }
674
- $html_content.='</div>';
675
- }
676
-
677
- elseif($item_key=='WPeC_sale_price'){
678
-
679
- $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
680
-
681
- $is_product = get_post_type( get_the_ID() );
682
- $active_plugins = get_option('active_plugins');
683
- if(in_array( 'wp-e-commerce/wp-shopping-cart.php', (array) $active_plugins ) && $is_product=='wpsc-product'){
684
-
685
- $html_content.= wpsc_the_product_price();
686
-
687
- }
688
- $html_content.='</div>';
689
- }
690
-
691
-
692
-
693
- elseif($item_key=='WPeC_rating_star'){
694
-
695
- $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
696
-
697
- $is_product = get_post_type( get_the_ID() );
698
- $active_plugins = get_option('active_plugins');
699
- if(in_array( 'wp-e-commerce/wp-shopping-cart.php', (array) $active_plugins ) && $is_product=='wpsc-product'){
700
-
701
- $html_content.= wpsc_product_rater();
702
-
703
- }
704
- $html_content.='</div>';
705
- }
706
-
707
-
708
- elseif($item_key=='WPeC_categories'){
709
- $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
710
-
711
- $is_product = get_post_type( get_the_ID() );
712
- $active_plugins = get_option('active_plugins');
713
- if(in_array( 'wp-e-commerce/wp-shopping-cart.php', (array) $active_plugins ) && $is_product=='wpsc-product'){
714
-
715
- $term_list = wp_get_post_terms($post->ID, 'wpsc_product_category', array("fields" => "all"));
716
-
717
- if( $term_list ) {
718
- $html_term = '';
719
-
720
- foreach( $term_list as $term ) {
721
- $html_term.= '<a href="#">'.$term->name.'</a>, '; //is the name of the price
722
- }
723
-
724
- }
725
-
726
- $html_content.= $html_term;
727
-
728
- }
729
- $html_content.='</div>';
730
- }
731
-
732
- elseif($item_key=='WPeC_tags'){
733
- $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
734
-
735
- $is_product = get_post_type( get_the_ID() );
736
- $active_plugins = get_option('active_plugins');
737
- if(in_array( 'wp-e-commerce/wp-shopping-cart.php', (array) $active_plugins ) && $is_product=='wpsc-product'){
738
-
739
- $term_list = wp_get_post_terms($post->ID, 'product_tag', array("fields" => "all"));
740
-
741
- if( $term_list ) {
742
- $html_term = '';
743
-
744
- foreach( $term_list as $term ) {
745
- $html_term.= '<a href="#">'.$term->name.'</a>, '; //is the name of the price
746
- }
747
-
748
- }
749
-
750
- $html_content.= $html_term;
751
-
752
- }
753
- $html_content.='</div>';
754
- }
755
-
756
-
757
-
758
-
759
-
760
- elseif($item_key=='zoom'){
761
- $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
762
- $html_content.= '<i class="fa fa-search-plus"></i>';
763
- $html_content.='</div>';
764
-
765
- }
766
-
767
  elseif($item_key=='share_button'){
768
  $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
769
 
@@ -792,49 +421,9 @@ if ( ! defined('ABSPATH')) exit; // if direct access
792
 
793
  }
794
 
795
- elseif($item_key=='meta_key'){
796
-
797
- $meta_value = get_post_meta(get_the_ID(), $item_info['field_id'],true);
798
-
799
-
800
-
801
- $wrapper = $item_info['wrapper'];
802
- if(empty($wrapper)){
803
-
804
- $wrapper = '%s';
805
- }
806
-
807
- if(!empty($meta_value)){
808
-
809
- $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
810
- $html_content.= str_replace('%s',do_shortcode($meta_value),$wrapper);
811
- $html_content.='</div>';
812
-
813
- }
814
-
815
-
816
- }
817
-
818
-
819
- elseif($item_key=='html'){
820
-
821
-
822
- $custom_html = $item_info['html'];
823
- if(empty($custom_html)){
824
-
825
- $custom_html = '';
826
- }
827
-
828
- if(!empty($custom_html)){
829
-
830
- $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
831
- $html_content.= do_shortcode($custom_html);
832
- $html_content.='</div>';
833
-
834
- }
835
-
836
-
837
- }
838
 
839
 
840
 
43
  if(!empty($item_info['char_limit'])){
44
  $char_limit = $item_info['char_limit'];
45
  }
46
+
47
+
48
+ if(!empty($item_info['link_target'])){
49
+ $link_target = $item_info['link_target'];
50
+ }
51
+ else{
52
+ $link_target = '';
53
+ }
54
+
55
 
56
 
57
 
63
 
64
  elseif($item_key=='title_link'){
65
 
66
+ $html_content.= '<a target="'.$link_target.'" class="element element_'.$item_id.' '.$item_key.'" href="'.get_permalink().'">'.apply_filters('post_grid_filter_grid_item_title',wp_trim_words(get_the_title(), $char_limit,'')).'</a>';
67
 
68
  }
69
 
70
+ elseif($item_key=='content'){
71
+ $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
72
+ $the_content = get_the_content();
73
+ $html_content.= apply_filters('post_grid_filter_grid_item_content', $the_content);
74
+
75
+ //$html_content.= apply_filters( 'the_content', get_the_content() );
76
+ $html_content.='</div>';
77
+ }
78
+
79
+ elseif($item_key=='read_more'){
80
+
81
+ if(!empty($item_info['read_more_text'])){
82
+ $read_more_text = $item_info['read_more_text'];
83
+ }
84
+ else{
85
+
86
+
87
+
88
+
89
+ $read_more_text = apply_filters('post_grid_filter_grid_item_read_more', __('Read more.', post_grid_textdomain));
90
+
91
+
92
+ }
93
+
94
+
95
+ $html_content.= '<a target="'.$link_target.'" class="element element_'.$item_id.' '.$item_key.'" href="'.get_permalink().'">'.$read_more_text.'</a>';
96
+
97
+ }
98
+
99
+
100
 
101
  elseif($item_key=='thumb'){
102
 
127
  }
128
 
129
 
130
+
 
 
 
 
 
 
 
131
 
132
 
133
  elseif($item_key=='excerpt'){
134
  $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
135
+
136
+ //var_dump(get_the_excerpt());
137
+ $the_content = get_the_content();
138
+
139
+ $excerpt_removed_shortcode = preg_replace( '|\[(.+?)\](.+?\[/\\1\])?|s', '', strip_shortcodes($the_content));
140
+
141
+ $html_content.= apply_filters('post_grid_filter_grid_item_excerpt',wp_trim_words($excerpt_removed_shortcode, $char_limit,''));
142
 
143
  //$html_content.= wp_trim_words(get_the_excerpt(), $char_limit,'');
144
  $html_content.='</div>';
145
  }
146
 
147
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
148
 
149
  elseif($item_key=='excerpt_read_more'){
150
  $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
151
 
152
  $read_more_text = apply_filters('post_grid_filter_grid_item_read_more', __('Read more.', post_grid_textdomain));
153
 
154
+ $html_content.= wp_trim_words(strip_shortcodes(get_the_excerpt()), $char_limit,'').' <a target="'.$link_target.'" class="read-more" href="'.get_permalink().'">'.$read_more_text.'</a>';
155
  $html_content.='</div>';
156
  }
157
 
171
  $html_content.='</div>';
172
  }
173
 
174
+
175
+ elseif($item_key=='author_link'){
176
+ //$html_content.='<div >';
177
+ $html_content.= '<a class="element element_'.$item_id.' '.$item_key.'" href="'.get_author_posts_url(get_the_author_meta( 'ID' ), get_the_author_meta( 'user_nicename' )).'">'.get_the_author().'</a>';
178
+ //$html_content.='</div>';
179
+ }
180
+
181
+
182
+
183
+
184
  elseif($item_key=='categories'){
185
 
186
  $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
325
  }
326
 
327
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
328
  elseif($item_key=='wc_full_price'){
329
  $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
330
 
338
  $html_content.=$full_price;
339
  }
340
  $html_content.='</div>';
341
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
342
 
 
 
343
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
344
  elseif($item_key=='wc_add_to_cart'){
345
  $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
346
 
355
 
356
  }
357
  $html_content.='</div>';
358
+ }
359
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
360
 
361
 
362
  elseif($item_key=='edd_price'){
374
  }
375
  $html_content.='</div>';
376
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
377
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
378
 
379
 
380
  elseif($item_key=='edd_add_to_cart'){
391
  $html_content.='</div>';
392
  }
393
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
394
 
395
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
396
  elseif($item_key=='share_button'){
397
  $html_content.='<div class="element element_'.$item_id.' '.$item_key.'" >';
398
 
421
 
422
  }
423
 
424
+ else{
425
+ $html_content.= '';
426
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
427
 
428
 
429
 
grid-items/layer-media.php CHANGED
@@ -14,6 +14,9 @@ if ( ! defined('ABSPATH')) exit; // if direct access
14
  foreach($media_source as $source_info){
15
 
16
  $media = post_grid_get_media($source_info['id'], $featured_img_size, $thumb_linked);
 
 
 
17
  if ( $is_image ) continue;
18
 
19
  if(!empty($source_info['checked'])){
@@ -32,4 +35,5 @@ if ( ! defined('ABSPATH')) exit; // if direct access
32
 
33
  $html_media = apply_filters('post_grid_filter_html_media', $html_media);
34
 
35
- $html.='<div class="layer-media">'.$html_media.'</div>';
 
14
  foreach($media_source as $source_info){
15
 
16
  $media = post_grid_get_media($source_info['id'], $featured_img_size, $thumb_linked);
17
+
18
+ //var_dump($media);
19
+
20
  if ( $is_image ) continue;
21
 
22
  if(!empty($source_info['checked'])){
35
 
36
  $html_media = apply_filters('post_grid_filter_html_media', $html_media);
37
 
38
+ $html.='<div class="layer-media">'.$html_media.'</div>';
39
+ //$html.='<div class="layer-title">'.get_the_title().'</div>';
grid-items/lazy.php CHANGED
@@ -9,16 +9,30 @@ if ( ! defined('ABSPATH')) exit; // if direct access
9
 
10
  if($lazy_load_enable=='yes'){
11
 
12
- $html.= '<div id="post-grid-lazy-'.$post_id.'" class="post-grid-lazy"><img src="'.$lazy_load_image_src.'"/></div>';
13
- $html .= "<script>
14
 
15
- jQuery( window ).load(function() {
 
16
 
17
- jQuery('#post-grid-lazy-".$post_id."').fadeOut();
18
- jQuery('#post-grid-".$post_id."').fadeIn();
19
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
 
21
- </script>";
22
 
23
 
24
 
9
 
10
  if($lazy_load_enable=='yes'){
11
 
12
+ if( $grid_type=='filterable'){
 
13
 
14
+ }
15
+ else{
16
 
17
+ $html.= '<div id="post-grid-lazy-'.$post_id.'" class="post-grid-lazy"><img src="'.$lazy_load_image_src.'"/></div>';
18
+ $html .= "<script>
19
+
20
+ jQuery( window ).load(function() {
21
+
22
+ jQuery('#post-grid-lazy-".$post_id."').fadeOut();
23
+ jQuery('#post-grid-".$post_id."').fadeIn();
24
+ });
25
+
26
+ </script>";
27
+
28
+
29
+ $html .= '<style type="text/css">#post-grid-'.$post_id.'{display: none;}</style>';
30
+
31
+
32
+ }
33
+
34
+
35
 
 
36
 
37
 
38
 
grid-items/nav-bottom-new.php ADDED
@@ -0,0 +1,370 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * @Author pickplugins
4
+ * Copyright: 2015 pickplugins.com
5
+ */
6
+
7
+ if ( ! defined('ABSPATH')) exit; // if direct access
8
+
9
+
10
+ $class_post_grid_functions = new class_post_grid_functions();
11
+
12
+ $load_more_text = $class_post_grid_functions->load_more_text();
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+ $html.= '<div class="pagination '.$pagination_theme.'">';
23
+
24
+
25
+
26
+ if($max_num_pages==0){
27
+
28
+ $max_num_pages = $wp_query->max_num_pages;
29
+ }
30
+
31
+ //var_dump($pagination_type);
32
+
33
+
34
+ if($grid_type=='grid'){
35
+
36
+
37
+ if($pagination_type=='normal'){
38
+
39
+
40
+ $html.= '<div class="paginate">';
41
+
42
+ $big = 999999999; // need an unlikely integer
43
+
44
+ $html.= paginate_links( array(
45
+ 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
46
+ 'format' => '?paged=%#%',
47
+ 'current' => max( 1, $paged ),
48
+ 'total' => $max_num_pages,
49
+ 'prev_text' => $pagination_prev_text,
50
+ 'next_text' => $pagination_next_text,
51
+ ) );
52
+
53
+
54
+ $html.= '</div >';
55
+
56
+ }
57
+ elseif($pagination_type=='jquery'){
58
+
59
+
60
+ $html .= '<div class="pager-list pager-list-'.$post_id.'"></div >';
61
+
62
+
63
+
64
+ $html .= '<script>
65
+ jQuery(document).ready(function($) {
66
+
67
+ $(function(){
68
+
69
+ $("#post-grid-'.$post_id.'").mixItUp({
70
+ pagination: {
71
+ limit: '.$filterable_post_per_page.',
72
+ prevButtonHTML: "'.$pagination_prev_text.'",
73
+ nextButtonHTML: "'.$pagination_next_text.'",
74
+
75
+
76
+ },
77
+ selectors: {
78
+ filter: ".filter",
79
+ pagersWrapper: ".pager-list-'.$post_id.'",
80
+
81
+
82
+ },';
83
+
84
+ if(!empty($active_filter) && $active_filter!= 'all')
85
+ {
86
+
87
+
88
+ $html .= '
89
+ load: {
90
+ filter: ".'.$active_filter.'"
91
+ }, ';
92
+
93
+ }
94
+
95
+ $html .= 'controls: {
96
+ enable: true
97
+ }
98
+
99
+ });
100
+
101
+ });
102
+
103
+
104
+
105
+
106
+ });
107
+ </script>';
108
+
109
+
110
+
111
+ $html .= '<style type="text/css">
112
+
113
+ #post-grid-'.$post_id.' .grid-items .mix{
114
+ display: none;
115
+ }
116
+
117
+
118
+ </style>
119
+ ';
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+ }
128
+
129
+ elseif($pagination_type=='loadmore'){
130
+
131
+ if(!empty($paged))
132
+ {
133
+ $paged = $paged+1;
134
+ }
135
+
136
+ $html .= '<div grid_id="'.$post_id.'" class="load-more" paged="'.$paged.'" per_page="'.$posts_per_page.'" >'.$load_more_text.'</div >';
137
+
138
+ }
139
+
140
+ elseif($pagination_type=='infinite'){
141
+
142
+
143
+ $html .= '<div grid_id="'.$post_id.'" class="infinite-scroll" paged="'.$paged.'" per_page="'.$posts_per_page.'" ><i class="fa fa-arrow-down"></i></div >';
144
+
145
+ }
146
+
147
+
148
+ }
149
+
150
+ elseif($grid_type=='filterable'){
151
+
152
+ if($pagination_type=='jquery'){
153
+ $html .= '<div class="pager-list pager-list-'.$post_id.'"></div >';
154
+
155
+ $html .= '<script>
156
+ jQuery(document).ready(function($) {
157
+
158
+ $(function(){
159
+
160
+ $("#post-grid-'.$post_id.'").mixItUp({
161
+ pagination: {
162
+ limit: '.$filterable_post_per_page.',
163
+ prevButtonHTML: "'.$pagination_prev_text.'",
164
+ nextButtonHTML: "'.$pagination_next_text.'",
165
+
166
+
167
+ },
168
+ selectors: {
169
+ filter: ".filter",
170
+ pagersWrapper: ".pager-list-'.$post_id.'",
171
+
172
+
173
+ },';
174
+
175
+ if(!empty($active_filter) && $active_filter!= 'all')
176
+ {
177
+
178
+
179
+ $html .= '
180
+ load: {
181
+ filter: ".'.$active_filter.'"
182
+ }, ';
183
+
184
+ }
185
+
186
+ $html .= 'controls: {
187
+ enable: true
188
+ }
189
+
190
+ });
191
+
192
+ });
193
+
194
+
195
+
196
+
197
+ });
198
+ </script>';
199
+
200
+
201
+
202
+ $html .= '<style type="text/css">
203
+
204
+ #post-grid-'.$post_id.' .grid-items .mix{
205
+ display: none;
206
+ }
207
+
208
+
209
+ </style>
210
+ ';
211
+
212
+
213
+ }
214
+
215
+ }
216
+
217
+ /*
218
+
219
+
220
+
221
+ if($pagination_type=='pagination'){
222
+
223
+ if($nav_top_filter=='yes'){
224
+
225
+ $html .= '<div class="pager-list pager-list-'.$post_id.'"></div >';
226
+ }
227
+ else{
228
+ $html .= '<div class="paginate">';
229
+
230
+
231
+
232
+ $big = 999999999; // need an unlikely integer
233
+
234
+ $html .= paginate_links( array(
235
+ 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
236
+ 'format' => '?paged=%#%',
237
+ 'current' => max( 1, $paged ),
238
+ 'total' => $max_num_pages,
239
+ 'prev_text' => $pagination_prev_text,
240
+ 'next_text' => $pagination_next_text,
241
+ ) );
242
+
243
+
244
+
245
+
246
+ //$pagination_base = add_query_arg( $paging, '%#%' );
247
+
248
+ // $html .= paginate_links( array(
249
+ // 'type' => '',
250
+ // 'base' => $pagination_base,
251
+ // 'format' => '?'. $paging .'=%#%',
252
+ // 'current' => max( 1, $wp_query->get('paged') ),
253
+ // 'total' => $max_num_pages,
254
+ // 'prev_text' => $pagination_prev_text,
255
+ // 'next_text' => $pagination_next_text,
256
+
257
+
258
+ // ));
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+ $html .= '</div >';
271
+
272
+ }
273
+
274
+
275
+ }
276
+
277
+ elseif($pagination_type=='jquery-pagination'){
278
+
279
+ $html .= '<div class="pager-list pager-list-'.$post_id.'"></div >';
280
+
281
+
282
+
283
+ $html .= '<script>
284
+ jQuery(document).ready(function($) {
285
+
286
+ $(function(){
287
+
288
+ $("#post-grid-'.$post_id.'").mixItUp({
289
+ pagination: {
290
+ limit: '.$filterable_post_per_page.',
291
+ prevButtonHTML: "'.$pagination_prev_text.'",
292
+ nextButtonHTML: "'.$pagination_next_text.'",
293
+
294
+
295
+ },
296
+ selectors: {
297
+ filter: ".filter",
298
+ pagersWrapper: ".pager-list-'.$post_id.'",
299
+
300
+
301
+ },';
302
+
303
+ if(!empty($active_filter) && $active_filter!= 'all')
304
+ {
305
+
306
+
307
+ $html .= '
308
+ load: {
309
+ filter: ".'.$active_filter.'"
310
+ }, ';
311
+
312
+ }
313
+
314
+ $html .= 'controls: {
315
+ enable: true
316
+ }
317
+
318
+ });
319
+
320
+ });
321
+
322
+
323
+
324
+
325
+ });
326
+ </script>';
327
+
328
+
329
+
330
+ $html .= '<style type="text/css">
331
+
332
+ #post-grid-'.$post_id.' .grid-items .mix{
333
+ display: none;
334
+ }
335
+
336
+
337
+ </style>
338
+ ';
339
+
340
+
341
+
342
+ }
343
+
344
+ elseif($pagination_type=='load_more'){
345
+
346
+ if(!empty($paged))
347
+ {
348
+ $paged = $paged+1;
349
+ }
350
+
351
+ $html .= '<div grid_id="'.$post_id.'" class="load-more" paged="'.$paged.'" per_page="'.$posts_per_page.'" >'.__('Load more',post_grid_textdomain).'</div >';
352
+
353
+
354
+ }
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+
364
+
365
+ */
366
+
367
+
368
+
369
+
370
+ $html .= '</div >';
grid-items/nav-top-new.php ADDED
@@ -0,0 +1,259 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * @Author pickplugins
4
+ * Copyright: 2015 pickplugins.com
5
+ */
6
+
7
+ if ( ! defined('ABSPATH')) exit; // if direct access
8
+
9
+ //var_dump($grid_type);
10
+
11
+ if($grid_type=='grid'){
12
+
13
+ if($nav_top_search=='yes'){
14
+
15
+ if(isset($_GET['keyword'])){
16
+
17
+ $keyword = sanitize_text_field($_GET['keyword']);
18
+ }
19
+
20
+ $html.= '<div class="nav-search">';
21
+ $html.= '<input grid_id="'.$post_id.'" class="search" type="text" placeholder="'.__('Start typing...', post_grid_textdomain).'" value="'.$keyword.'">';
22
+ //$html.= '<span class="submit-search">'.__('Submit', post_grid_textdomain).'</span>';
23
+ $html.= '</div>';
24
+
25
+ }
26
+
27
+
28
+
29
+
30
+ }
31
+ elseif($grid_type=='filterable'){
32
+
33
+
34
+ $html.= '<div class="nav-filter">';
35
+
36
+
37
+ if(!empty($categories)){
38
+
39
+ foreach($categories as $category){
40
+
41
+ $tax_cat = explode(',',$category);
42
+
43
+ $categories_info[] = array($tax_cat[1],$tax_cat[0]);
44
+
45
+ }
46
+
47
+ $html.= '<div class="filter filter-'.$post_id.'" data-filter="all">'.__('All', post_grid_textdomain).'</div>';
48
+
49
+ foreach($categories_info as $term_info)
50
+ {
51
+
52
+ $term = get_term( $term_info[0], $term_info[1] );
53
+ $term_slug = $term->slug;
54
+ $term_name = $term->name;
55
+ $html .= '<div class="filter filter-'.$post_id.'" terms-id="'.$term_info[0].'" data-filter=".'.$term_slug.'" >'.$term_name.'</div>';
56
+ }
57
+
58
+ }
59
+
60
+ $html.= '</div>';
61
+
62
+
63
+
64
+ $html .= '<script>
65
+ jQuery(document).ready(function($) {
66
+
67
+ $(function(){
68
+
69
+ $("#post-grid-'.$post_id.'").mixItUp({
70
+ pagination: {
71
+ limit: '.$filterable_post_per_page.',
72
+ prevButtonHTML: "'.$pagination_prev_text.'",
73
+ nextButtonHTML: "'.$pagination_next_text.'",
74
+
75
+
76
+
77
+ },
78
+ selectors: {
79
+ pagersWrapper: ".pager-list-'.$post_id.'",
80
+ filter: ".filter-'.$post_id.'",
81
+
82
+ },';
83
+
84
+ if(!empty($active_filter) && $active_filter!= 'all')
85
+ {
86
+
87
+
88
+ $html .= '
89
+ load: {
90
+ filter: ".'.$active_filter.'"
91
+ }, ';
92
+
93
+ }
94
+
95
+ $html .= 'controls: {
96
+ enable: true
97
+ }
98
+
99
+ });
100
+
101
+ });
102
+
103
+
104
+
105
+
106
+ });
107
+ </script>';
108
+
109
+
110
+
111
+ $html .= '<style type="text/css">
112
+
113
+ #post-grid-'.$post_id.' .grid-items .mix{
114
+ display: none;
115
+ }
116
+ </style>
117
+ ';
118
+
119
+
120
+ }
121
+ elseif($grid_type=='slider'){
122
+
123
+
124
+ //var_dump('Hello');
125
+
126
+
127
+ $html.= '<script>
128
+ jQuery(document).ready(function($)
129
+ {
130
+ $("#post-grid-'.$post_id.' .grid-items").owlCarousel({
131
+
132
+ items : 3, //10 items above 1000px browser width
133
+
134
+
135
+ responsiveClass:true,
136
+ responsive:{
137
+
138
+ 320:{
139
+ items:'.$slider_column_mobile.',
140
+
141
+ },
142
+
143
+ 768:{
144
+ items:'.$slider_column_tablet.',
145
+
146
+ },
147
+
148
+ 1024:{
149
+ items:'.$slider_column_desktop.',
150
+
151
+
152
+ }
153
+ },
154
+
155
+
156
+
157
+
158
+ ';
159
+
160
+
161
+ $html.= 'loop: '.$slider_loop.',';
162
+ $html.= 'rewind: '.$slider_rewind.',';
163
+ $html.= 'center: '.$slider_center.',';
164
+
165
+ $html.= 'autoplay: '.$slider_auto_play.',';
166
+ $html.= 'autoplayTimeout: 3000,';
167
+ $html.= 'autoplayHoverPause: '.$slider_autoplayHoverPause.',';
168
+
169
+ $html.= 'nav: '.$slider_navs.',';
170
+ $html.= 'navText : ["",""],';
171
+
172
+ $html.= 'dots: '.$slider_dots.',';
173
+ $html.= 'navSpeed: '.$slider_navSpeed.',';
174
+ $html.= 'dotsSpeed: '.$slider_dotsSpeed.',';
175
+ $html.= 'touchDrag : '.$slider_touchDrag.',';
176
+ $html.= 'mouseDrag : '.$slider_mouseDrag.',';
177
+
178
+ $html.= 'autoHeight: true,';
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+ $html.= '});';
187
+
188
+ $html.= '$("#post-grid-'.$post_id.' .owl-nav").addClass("'.$slider_navs_positon.'");';
189
+ $html.= '$("#post-grid-'.$post_id.' .owl-nav").addClass("'.$slider_navs_style.'");';
190
+ $html.= '$("#post-grid-'.$post_id.' .owl-dots").addClass("'.$slider_dots_style.'");';
191
+
192
+
193
+
194
+ $html.= '});';
195
+
196
+
197
+ $html.= '</script>';
198
+
199
+
200
+
201
+
202
+
203
+ }
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+ if($nav_top_filter=='yes'){
216
+
217
+
218
+
219
+
220
+
221
+ /*
222
+
223
+ $html .= '<script>
224
+ jQuery(document).ready(function($) {
225
+
226
+ // init Isotope
227
+ var $grid = $(".grid-items").isotope({
228
+ layoutMode: "masonry",
229
+ masonry: {
230
+ isFitWidth: true
231
+ },
232
+ filter: ".'.$active_filter.'"
233
+
234
+ });
235
+
236
+
237
+ // filter items on button click
238
+ $(".nav-filter").on( "click", ".filter", function() {
239
+
240
+ var filterValue = $(this).attr("data-filter");
241
+ $grid.isotope({ filter: filterValue });
242
+ });
243
+
244
+ });
245
+ </script>';
246
+
247
+ */
248
+
249
+ //var_dump($active_filter);
250
+
251
+
252
+
253
+
254
+ }
255
+
256
+
257
+
258
+
259
+
grid-items/nav-top.php CHANGED
@@ -133,7 +133,7 @@ $(".nav-filter").on( "click", ".filter", function() {
133
 
134
  if(isset($_GET['keyword'])){
135
 
136
- $keyword = sanitize_text_field($_GET['keyword']);
137
 
138
  }
139
 
133
 
134
  if(isset($_GET['keyword'])){
135
 
136
+ $keyword = $_GET['keyword'];
137
 
138
  }
139
 
grid-items/query.php CHANGED
@@ -7,14 +7,6 @@
7
  if ( ! defined('ABSPATH')) exit; // if direct access
8
 
9
 
10
-
11
-
12
-
13
-
14
-
15
- //$offset = ( $paged - 1 ) * $posts_per_page;
16
-
17
-
18
  if(isset($_GET['keyword'])){
19
 
20
  $keyword = $_GET['keyword'];
@@ -23,42 +15,53 @@ if(isset($_GET['keyword'])){
23
 
24
 
25
 
26
-
27
-
28
- //echo '<pre>'.var_export(get_queried_object()).'</pre>';
29
-
30
-
31
-
32
- if (is_category() || is_tag() || is_tax() ) {
33
-
34
- $term = get_queried_object();
35
-
36
- $taxonomy = $term->taxonomy;
37
- $terms = $term->term_id;
38
 
39
- $tax_query[] = array(
40
- 'taxonomy' => $taxonomy,
41
- 'field' => 'id',
42
- 'terms' => $terms,
43
-
44
- );
45
- }
46
 
 
 
 
47
 
48
 
 
 
 
 
 
49
 
 
 
 
 
50
 
51
- //var_dump($paged);
52
- //echo '<br />';
53
- //var_dump($offset);
54
- //echo '<br />';
 
 
 
 
 
55
 
56
 
57
- // echo '<pre>'.var_export($query_parameter, true).'</pre>';
58
 
59
 
60
 
 
 
 
 
61
 
 
 
62
 
63
 
64
 
@@ -73,19 +76,19 @@ if (is_category() || is_tag() || is_tax() ) {
73
  'posts_per_page' => (int)$posts_per_page,
74
  'paged' => (int)$paged,
75
  'offset' => $offset,
76
- //'tax_query' => $tax_query,
77
- //'meta_query' => $meta_query,
78
 
79
  );
80
 
81
 
82
 
83
- //$query_merge = array_merge($default_query, $query_parameter);
84
 
85
-
86
- $wp_query = new WP_Query($default_query);
87
 
88
 
 
89
 
90
 
91
 
7
  if ( ! defined('ABSPATH')) exit; // if direct access
8
 
9
 
 
 
 
 
 
 
 
 
10
  if(isset($_GET['keyword'])){
11
 
12
  $keyword = $_GET['keyword'];
15
 
16
 
17
 
18
+ /*More Query parameter string to array*/
19
+ if(!empty($extra_query_parameter)){
20
+
21
+ $extra_query_parameter = explode('&', $extra_query_parameter);
22
+
 
 
 
 
 
 
 
23
 
24
+
25
+ foreach($extra_query_parameter as $parameter){
26
+
 
 
 
 
27
 
28
+
29
+ $parameter = explode('=', $parameter);
30
+
31
 
32
 
33
+ if (strpos($parameter[1], ',') !== false) {
34
+ //var_dump('Comma found');
35
+ $parameter_args = explode(',', $parameter[1]);
36
+ $query_parameter[$parameter[0]] = $parameter_args;
37
+
38
 
39
+ }
40
+ else{
41
+ $query_parameter[$parameter[0]] = $parameter[1];
42
+ }
43
 
44
+
45
+
46
+ }
47
+
48
+ }
49
+ else{
50
+
51
+ $query_parameter = array();
52
+ }
53
 
54
 
 
55
 
56
 
57
 
58
+ if(is_search()){
59
+
60
+ $keyword = get_search_query();
61
+
62
 
63
+
64
+ }
65
 
66
 
67
 
76
  'posts_per_page' => (int)$posts_per_page,
77
  'paged' => (int)$paged,
78
  'offset' => $offset,
79
+
 
80
 
81
  );
82
 
83
 
84
 
85
+ $query_merge = array_merge($default_query, $query_parameter);
86
 
87
+ $query_merge = apply_filters('post_grid_filter_query_args', $query_merge);
88
+
89
 
90
 
91
+ $wp_query = new WP_Query($query_merge);
92
 
93
 
94
 
grid-items/scripts.php CHANGED
@@ -12,24 +12,24 @@ if ( ! defined('ABSPATH')) exit; // if direct access
12
  {
13
  $("#post-grid-'.$post_id.' .layer-media .gallery").owlCarousel({
14
 
15
- items : 1, //10 items above 1000px browser width
16
- itemsDesktop : [1000,1], //5 items between 1000px and 901px
17
- itemsDesktopSmall : [900,1], // betweem 900px and 601px
18
- itemsTablet: [600,1], //2 items between 600 and 0
19
- itemsMobile : [479,1],
20
- navigationText : ["",""],
21
- autoPlay: true,
22
- stopOnHover: true,
23
- navigation: true,
24
- pagination: false,
25
- paginationNumbers: true,
26
- slideSpeed: 500,
27
- paginationSpeed: 1000,
28
- touchDrag : true,
29
- mouseDrag : true,
30
- autoHeight: true,
31
  ';
32
 
 
 
 
 
 
 
33
  $html .='});
34
 
35
  });';
12
  {
13
  $("#post-grid-'.$post_id.' .layer-media .gallery").owlCarousel({
14
 
15
+ items : 1,
16
+
17
+ navText : ["",""],
18
+ autoplay: true,
19
+ loop: true,
20
+ autoHeight : true,
21
+ nav : false,
22
+ dots : false,
23
+
24
+
 
 
 
 
 
 
25
  ';
26
 
27
+
28
+
29
+
30
+
31
+
32
+
33
  $html .='});
34
 
35
  });';
grid-items/variables.php CHANGED
@@ -17,6 +17,9 @@ if ( ! defined('ABSPATH')) exit; // if direct access
17
  }
18
 
19
 
 
 
 
20
  /*
21
 
22
  if(!empty($post_grid_meta_options['categories'])){
@@ -33,12 +36,6 @@ if ( ! defined('ABSPATH')) exit; // if direct access
33
  $categories_relation = 'OR';
34
  }
35
 
36
- */
37
-
38
-
39
-
40
-
41
- /*
42
 
43
  if(!empty($post_grid_meta_options['extra_query_parameter'])){
44
  $extra_query_parameter = $post_grid_meta_options['extra_query_parameter'];
@@ -50,8 +47,15 @@ if ( ! defined('ABSPATH')) exit; // if direct access
50
  */
51
 
52
 
53
- if(!empty($post_grid_meta_options['post_status']))
54
- $post_status = $post_grid_meta_options['post_status'];
 
 
 
 
 
 
 
55
 
56
 
57
  if(!empty($post_grid_meta_options['offset'])){
@@ -73,14 +77,29 @@ if ( ! defined('ABSPATH')) exit; // if direct access
73
  }
74
 
75
 
76
- if(!empty($post_grid_meta_options['exclude_post_id']))
77
- $exclude_post_id = $post_grid_meta_options['exclude_post_id'];
 
 
 
 
78
 
79
- if(!empty($post_grid_meta_options['query_order']))
80
- $query_order = $post_grid_meta_options['query_order'];
81
 
82
- if(!empty($post_grid_meta_options['query_orderby']))
83
- $query_orderby = $post_grid_meta_options['query_orderby'];
 
 
 
 
 
 
 
 
 
 
 
 
 
84
 
85
  //var_dump($query_orderby);
86
  $str_orderby = '';
@@ -100,21 +119,6 @@ if ( ! defined('ABSPATH')) exit; // if direct access
100
  }
101
 
102
 
103
- /*
104
-
105
- if(!empty($post_grid_meta_options['meta_query']))
106
- $meta_query = $post_grid_meta_options['meta_query'];
107
-
108
-
109
- if(!empty($post_grid_meta_options['meta_query_relation'])){
110
-
111
- $meta_query_relation = $post_grid_meta_options['meta_query_relation'];
112
- }
113
- else{
114
- $meta_query_relation = 'OR';
115
- }
116
-
117
- */
118
 
119
 
120
  if(!empty($post_grid_meta_options['keyword'])){
@@ -135,42 +139,31 @@ if ( ! defined('ABSPATH')) exit; // if direct access
135
  $grid_layout_name = 'layout_grid';
136
  }
137
 
138
-
139
- /*
140
 
141
- if(!empty($post_grid_meta_options['grid_layout']['col_multi'])){
142
-
143
- $grid_layout_col_multi = $post_grid_meta_options['grid_layout']['col_multi'];
144
  }
145
  else{
146
- $grid_layout_col_multi = 2;
147
  }
148
-
149
- */
150
-
151
 
152
 
 
 
 
 
 
 
153
 
154
 
155
-
156
-
157
- if(!empty($post_grid_meta_options['layout']['content']))
158
- $layout_content = $post_grid_meta_options['layout']['content'];
159
-
160
- if(!empty($post_grid_meta_options['layout']['hover']))
161
- $layout_hover = $post_grid_meta_options['layout']['hover'];
162
-
163
- /*
164
-
165
  if(!empty($post_grid_meta_options['enable_multi_skin'])){
166
  $enable_multi_skin = $post_grid_meta_options['enable_multi_skin'];
167
  }
168
  else{
169
  $enable_multi_skin = 'no';
170
 
171
- }
172
-
173
- */
174
 
175
 
176
  if(!empty($post_grid_meta_options['skin'])){
@@ -181,11 +174,21 @@ if ( ! defined('ABSPATH')) exit; // if direct access
181
 
182
  }
183
 
184
- if(!empty($post_grid_meta_options['custom_js']))
185
- $custom_js = $post_grid_meta_options['custom_js'];
 
 
 
 
 
 
 
 
 
 
 
 
186
 
187
- if(!empty($post_grid_meta_options['custom_css']))
188
- $custom_css = $post_grid_meta_options['custom_css'];
189
 
190
 
191
  if(!empty($post_grid_meta_options['masonry_enable'])){
@@ -198,8 +201,6 @@ if ( ! defined('ABSPATH')) exit; // if direct access
198
  }
199
 
200
 
201
- /*
202
-
203
  if(!empty($post_grid_meta_options['lazy_load_enable'])){
204
 
205
  $lazy_load_enable = $post_grid_meta_options['lazy_load_enable'];
@@ -209,7 +210,6 @@ if ( ! defined('ABSPATH')) exit; // if direct access
209
 
210
  }
211
 
212
-
213
  if(!empty($post_grid_meta_options['lazy_load_image_src'])){
214
 
215
  $lazy_load_image_src = $post_grid_meta_options['lazy_load_image_src'];
@@ -218,9 +218,6 @@ if ( ! defined('ABSPATH')) exit; // if direct access
218
  $lazy_load_image_src = post_grid_plugin_url.'assets/admin/gif/ajax-loader-1.gif';
219
 
220
  }
221
- */
222
-
223
-
224
 
225
 
226
 
@@ -298,15 +295,7 @@ if ( ! defined('ABSPATH')) exit; // if direct access
298
  $items_fixed_height = '220px';
299
 
300
  }
301
-
302
-
303
-
304
-
305
-
306
-
307
-
308
-
309
-
310
 
311
 
312
  if(!empty($post_grid_meta_options['media_height']['style'])){
@@ -396,16 +385,19 @@ if ( ! defined('ABSPATH')) exit; // if direct access
396
  }
397
 
398
 
399
- if(!empty($post_grid_meta_options['nav_top']['filter'])){
400
 
401
- $nav_top_filter = $post_grid_meta_options['nav_top']['filter'];
 
 
 
402
  }
403
  else{
404
- $nav_top_filter = 'none';
405
 
406
  }
407
 
408
 
 
409
  if(!empty($post_grid_meta_options['nav_top']['filterable_post_per_page'])){
410
 
411
  $filterable_post_per_page = $post_grid_meta_options['nav_top']['filterable_post_per_page'];
@@ -420,7 +412,7 @@ if ( ! defined('ABSPATH')) exit; // if direct access
420
  $active_filter = $post_grid_meta_options['nav_top']['active_filter'];
421
  }
422
  else{
423
- $active_filter = '*';
424
 
425
  }
426
 
@@ -430,17 +422,18 @@ if ( ! defined('ABSPATH')) exit; // if direct access
430
  $nav_top_search = $post_grid_meta_options['nav_top']['search'];
431
  }
432
  else{
433
- $nav_top_search = 'none';
434
 
435
  }
436
 
 
437
 
438
  if(!empty($post_grid_meta_options['nav_bottom']['pagination_type'])){
439
 
440
  $pagination_type = $post_grid_meta_options['nav_bottom']['pagination_type'];
441
  }
442
  else{
443
- $pagination_type = 'pagination';
444
 
445
  }
446
 
@@ -517,3 +510,5 @@ if ( ! defined('ABSPATH')) exit; // if direct access
517
  $paged = 1;
518
 
519
  }
 
 
17
  }
18
 
19
 
20
+
21
+
22
+
23
  /*
24
 
25
  if(!empty($post_grid_meta_options['categories'])){
36
  $categories_relation = 'OR';
37
  }
38
 
 
 
 
 
 
 
39
 
40
  if(!empty($post_grid_meta_options['extra_query_parameter'])){
41
  $extra_query_parameter = $post_grid_meta_options['extra_query_parameter'];
47
  */
48
 
49
 
50
+
51
+
52
+ if(!empty($post_grid_meta_options['post_status'])){
53
+ $post_status = $post_grid_meta_options['post_status'];
54
+ }
55
+ else{
56
+ $post_status = 'publish';
57
+ }
58
+
59
 
60
 
61
  if(!empty($post_grid_meta_options['offset'])){
77
  }
78
 
79
 
80
+ if(!empty($post_grid_meta_options['exclude_post_id'])){
81
+ $exclude_post_id = $post_grid_meta_options['exclude_post_id'];
82
+ }
83
+ else{
84
+ $exclude_post_id = '';
85
+ }
86
 
 
 
87
 
88
+ if(!empty($post_grid_meta_options['query_order'])){
89
+ $query_order = $post_grid_meta_options['query_order'];
90
+ }
91
+ else{
92
+ $query_order = 'DESC';
93
+ }
94
+
95
+
96
+ if(!empty($post_grid_meta_options['query_orderby'])){
97
+ $query_orderby = $post_grid_meta_options['query_orderby'];
98
+ }
99
+ else{
100
+ $query_orderby = 'date';
101
+ }
102
+
103
 
104
  //var_dump($query_orderby);
105
  $str_orderby = '';
119
  }
120
 
121
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
 
123
 
124
  if(!empty($post_grid_meta_options['keyword'])){
139
  $grid_layout_name = 'layout_grid';
140
  }
141
 
 
 
142
 
143
+
144
+ if(!empty($post_grid_meta_options['layout']['content'])){
145
+ $layout_content = $post_grid_meta_options['layout']['content'];
146
  }
147
  else{
148
+ $layout_content = 'flat';
149
  }
 
 
 
150
 
151
 
152
+ if(!empty($post_grid_meta_options['layout']['hover'])){
153
+ $layout_hover = $post_grid_meta_options['layout']['hover'];
154
+ }
155
+ else{
156
+ $layout_hover = 'flat';
157
+ }
158
 
159
 
 
 
 
 
 
 
 
 
 
 
160
  if(!empty($post_grid_meta_options['enable_multi_skin'])){
161
  $enable_multi_skin = $post_grid_meta_options['enable_multi_skin'];
162
  }
163
  else{
164
  $enable_multi_skin = 'no';
165
 
166
+ }
 
 
167
 
168
 
169
  if(!empty($post_grid_meta_options['skin'])){
174
 
175
  }
176
 
177
+ if(!empty($post_grid_meta_options['custom_js'])){
178
+ $custom_js = $post_grid_meta_options['custom_js'];
179
+ }
180
+ else{
181
+ $custom_js = '';
182
+ }
183
+
184
+
185
+ if(!empty($post_grid_meta_options['custom_css'])){
186
+ $custom_css = $post_grid_meta_options['custom_css'];
187
+ }
188
+ else{
189
+ $custom_css = '';
190
+ }
191
 
 
 
192
 
193
 
194
  if(!empty($post_grid_meta_options['masonry_enable'])){
201
  }
202
 
203
 
 
 
204
  if(!empty($post_grid_meta_options['lazy_load_enable'])){
205
 
206
  $lazy_load_enable = $post_grid_meta_options['lazy_load_enable'];
210
 
211
  }
212
 
 
213
  if(!empty($post_grid_meta_options['lazy_load_image_src'])){
214
 
215
  $lazy_load_image_src = $post_grid_meta_options['lazy_load_image_src'];
218
  $lazy_load_image_src = post_grid_plugin_url.'assets/admin/gif/ajax-loader-1.gif';
219
 
220
  }
 
 
 
221
 
222
 
223
 
295
  $items_fixed_height = '220px';
296
 
297
  }
298
+
 
 
 
 
 
 
 
 
299
 
300
 
301
  if(!empty($post_grid_meta_options['media_height']['style'])){
385
  }
386
 
387
 
 
388
 
389
+
390
+ if(!empty($post_grid_meta_options['grid_type'])){
391
+
392
+ $grid_type = $post_grid_meta_options['grid_type'];
393
  }
394
  else{
395
+ $grid_type = 'grid';
396
 
397
  }
398
 
399
 
400
+
401
  if(!empty($post_grid_meta_options['nav_top']['filterable_post_per_page'])){
402
 
403
  $filterable_post_per_page = $post_grid_meta_options['nav_top']['filterable_post_per_page'];
412
  $active_filter = $post_grid_meta_options['nav_top']['active_filter'];
413
  }
414
  else{
415
+ $active_filter = 'all';
416
 
417
  }
418
 
422
  $nav_top_search = $post_grid_meta_options['nav_top']['search'];
423
  }
424
  else{
425
+ $nav_top_search = 'no';
426
 
427
  }
428
 
429
+
430
 
431
  if(!empty($post_grid_meta_options['nav_bottom']['pagination_type'])){
432
 
433
  $pagination_type = $post_grid_meta_options['nav_bottom']['pagination_type'];
434
  }
435
  else{
436
+ $pagination_type = 'normal';
437
 
438
  }
439
 
510
  $paged = 1;
511
 
512
  }
513
+
514
+
includes/class-functions.php CHANGED
@@ -16,6 +16,23 @@ class class_post_grid_functions{
16
 
17
 
18
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  public function items_bg_color_values(){
20
 
21
  $color_values = array( '#ff398a',
@@ -49,7 +66,7 @@ class class_post_grid_functions{
49
 
50
  $media_source = array(
51
  'featured_image' =>array('id'=>'featured_image','title'=>'Featured Image','checked'=>'yes'),
52
- 'first_image'=>array('id'=>'first_image','title'=>'First images from content','checked'=>'yes'),
53
  'empty_thumb'=>array('id'=>'empty_thumb','title'=>'Empty thumbnail','checked'=>'yes'),
54
 
55
 
@@ -79,24 +96,29 @@ class class_post_grid_functions{
79
  'excerpt_read_more'=>'Excerpt with Read more',
80
  'post_date'=>'Post date',
81
  'author'=>'Author',
 
82
  'categories'=>'Categories',
83
  'tags'=>'Tags',
84
  'comments_count'=>'Comments Count',
85
  'comments'=>'Comments',
 
 
 
86
 
87
- /* WooCommerce Stuff*/
88
- 'wc_full_price'=>'WC Full Price',
89
- 'wc_add_to_cart'=>'WC Add to Cart',
90
-
91
- /* Easy Digital Downloads Stuff*/
92
- 'edd_price'=>'EDD Price',
 
 
93
  'edd_add_to_cart'=>'EDD Add to Cart',
94
 
95
- /* Extra */
96
  'share_button'=>'Share button',
97
  'hr'=>'Horizontal line',
98
 
99
-
100
  );
101
 
102
  $layout_items = apply_filters('post_grid_filter_layout_items', $layout_items);
@@ -113,7 +135,12 @@ class class_post_grid_functions{
113
  '0'=>array('key'=>'title', 'char_limit'=>'20', 'name'=>'Title', 'css'=>'display: block;font-size: 21px;line-height: normal;padding: 5px 10px;text-align: left;', 'css_hover'=>'', ),
114
  '1'=>array('key'=>'excerpt', 'char_limit'=>'20', 'name'=>'Excerpt', 'css'=>'display: block;font-size: 12px;padding: 5px 10px;text-align: left;', 'css_hover'=>''),
115
  '2'=>array('key'=>'read_more', 'name'=>'Read more', 'css'=>'display: block;font-size: 12px;font-weight: bold;padding: 0 10px;text-align: left;', 'css_hover'=>''),
116
-
 
 
 
 
 
117
  ),
118
 
119
  'flat-center'=>array(
@@ -144,7 +171,7 @@ class class_post_grid_functions{
144
 
145
  'wc-center-cart'=>array(
146
  '0'=>array('key'=>'title', 'char_limit'=>'20', 'name'=>'Title', 'css'=>'display: block;font-size: 21px;line-height: normal;padding: 5px 10px;text-align: center;', 'css_hover'=>''),
147
- '1'=>array('key'=>'wc_add_to_cart', 'name'=>'Add to Cart', 'css'=>'color:#555;display: inline-block;font-size: 13px;line-height:normal;padding: 0 17px;text-align: center;', 'css_hover'=>''),
148
 
149
  '2'=>array('key'=>'excerpt', 'char_limit'=>'20', 'name'=>'Excerpt', 'css'=>'display: block;font-size: 12px;padding: 5px 10px;text-align: center;', 'css_hover'=>''),
150
  ),
@@ -224,13 +251,13 @@ class class_post_grid_functions{
224
  'name'=>'SpinRight',
225
  'thumb_url'=>'',
226
  ),
227
-
228
  'thumbgoleft'=>array(
229
  'slug'=>'thumbgoleft',
230
  'name'=>'ThumbGoLeft',
231
  'thumb_url'=>'',
232
  ),
233
-
234
  'thumbrounded'=>array(
235
  'slug'=>'thumbrounded',
236
  'name'=>'ThumbRounded',
16
 
17
 
18
 
19
+
20
+
21
+
22
+ public function load_more_text(){
23
+
24
+ $load_more_text = apply_filters('post_grid_filter_load_more_text', __('Load more',post_grid_textdomain));
25
+
26
+ return $load_more_text;
27
+
28
+ }
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
  public function items_bg_color_values(){
37
 
38
  $color_values = array( '#ff398a',
66
 
67
  $media_source = array(
68
  'featured_image' =>array('id'=>'featured_image','title'=>'Featured Image','checked'=>'yes'),
69
+ 'first_image'=>array('id'=>'first_image','title'=>'First images from content','checked'=>'yes'),
70
  'empty_thumb'=>array('id'=>'empty_thumb','title'=>'Empty thumbnail','checked'=>'yes'),
71
 
72
 
96
  'excerpt_read_more'=>'Excerpt with Read more',
97
  'post_date'=>'Post date',
98
  'author'=>'Author',
99
+ 'author_link'=>'Author with Link',
100
  'categories'=>'Categories',
101
  'tags'=>'Tags',
102
  'comments_count'=>'Comments Count',
103
  'comments'=>'Comments',
104
+
105
+
106
+
107
 
108
+ /* WooCommerce Stuff*/
109
+
110
+ 'wc_full_price'=>'WC Full Price',
111
+ 'wc_add_to_cart'=>'WC Add to Cart',
112
+
113
+ /* Easy Digital Downloads Stuff*/
114
+
115
+ 'edd_price'=>'EDD Price',
116
  'edd_add_to_cart'=>'EDD Add to Cart',
117
 
118
+ //'zoom'=>'Zoom button',
119
  'share_button'=>'Share button',
120
  'hr'=>'Horizontal line',
121
 
 
122
  );
123
 
124
  $layout_items = apply_filters('post_grid_filter_layout_items', $layout_items);
135
  '0'=>array('key'=>'title', 'char_limit'=>'20', 'name'=>'Title', 'css'=>'display: block;font-size: 21px;line-height: normal;padding: 5px 10px;text-align: left;', 'css_hover'=>'', ),
136
  '1'=>array('key'=>'excerpt', 'char_limit'=>'20', 'name'=>'Excerpt', 'css'=>'display: block;font-size: 12px;padding: 5px 10px;text-align: left;', 'css_hover'=>''),
137
  '2'=>array('key'=>'read_more', 'name'=>'Read more', 'css'=>'display: block;font-size: 12px;font-weight: bold;padding: 0 10px;text-align: left;', 'css_hover'=>''),
138
+
139
+ //'3'=>array('key'=>'meta_key', 'field_id'=>'hello_meta', 'name'=>'Meta Key', 'css'=>'display: block;font-size: 12px;font-weight: bold;padding: 0 10px;text-align: left;', 'css_hover'=>'font-size: 22px;'),
140
+
141
+
142
+
143
+
144
  ),
145
 
146
  'flat-center'=>array(
171
 
172
  'wc-center-cart'=>array(
173
  '0'=>array('key'=>'title', 'char_limit'=>'20', 'name'=>'Title', 'css'=>'display: block;font-size: 21px;line-height: normal;padding: 5px 10px;text-align: center;', 'css_hover'=>''),
174
+ '1'=>array('key'=>'wc_gallery', 'name'=>'Add to Cart', 'css'=>'color:#555;display: inline-block;font-size: 13px;line-height:normal;padding: 0 17px;text-align: center;', 'css_hover'=>''),
175
 
176
  '2'=>array('key'=>'excerpt', 'char_limit'=>'20', 'name'=>'Excerpt', 'css'=>'display: block;font-size: 12px;padding: 5px 10px;text-align: center;', 'css_hover'=>''),
177
  ),
251
  'name'=>'SpinRight',
252
  'thumb_url'=>'',
253
  ),
254
+
255
  'thumbgoleft'=>array(
256
  'slug'=>'thumbgoleft',
257
  'name'=>'ThumbGoLeft',
258
  'thumb_url'=>'',
259
  ),
260
+
261
  'thumbrounded'=>array(
262
  'slug'=>'thumbrounded',
263
  'name'=>'ThumbRounded',
includes/class-settings.php CHANGED
@@ -39,7 +39,9 @@ class class_post_grid_settings{
39
  add_submenu_page('edit.php?post_type=post_grid', __('Settings',post_grid_textdomain), __('Settings',post_grid_textdomain), 'manage_options', 'post_grid_menu_settings', array( $this, 'post_grid_menu_settings' ));
40
 
41
  add_submenu_page('edit.php?post_type=post_grid', __('Help',post_grid_textdomain), __('Help',post_grid_textdomain), 'manage_options', 'post_grid_menu_help', array( $this, 'post_grid_menu_help' ));
42
-
 
 
43
 
44
  }
45
 
39
  add_submenu_page('edit.php?post_type=post_grid', __('Settings',post_grid_textdomain), __('Settings',post_grid_textdomain), 'manage_options', 'post_grid_menu_settings', array( $this, 'post_grid_menu_settings' ));
40
 
41
  add_submenu_page('edit.php?post_type=post_grid', __('Help',post_grid_textdomain), __('Help',post_grid_textdomain), 'manage_options', 'post_grid_menu_help', array( $this, 'post_grid_menu_help' ));
42
+
43
+
44
+
45
 
46
  }
47
 
includes/class-shortcodes.php CHANGED
@@ -12,13 +12,179 @@ class class_post_grid_shortcodes{
12
 
13
  public function __construct(){
14
 
15
- add_shortcode( 'post_grid', array( $this, 'post_grid_display' ) );
 
16
 
17
  }
18
 
19
 
20
 
21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  public function post_grid_display($atts, $content = null ) {
23
 
24
  /*
@@ -86,15 +252,17 @@ class class_post_grid_shortcodes{
86
 
87
  include post_grid_plugin_dir.'/grid-items/query.php';
88
  include post_grid_plugin_dir.'/grid-items/custom-css.php';
89
- //include post_grid_plugin_dir.'/grid-items/lazy.php';
90
 
91
-
 
 
92
 
93
 
94
 
95
 
96
 
97
- $html.='<div class="post-grid-debug"></div>'; // .debug
98
 
99
  $html.='<div id="post-grid-'.$post_id.'" class="post-grid">';
100
 
@@ -111,6 +279,24 @@ class class_post_grid_shortcodes{
111
 
112
  while ( $wp_query->have_posts() ) : $wp_query->the_post();
113
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
 
115
  if($odd_even%2==0){
116
  $odd_even_calss = 'even';
@@ -144,9 +330,7 @@ class class_post_grid_shortcodes{
144
 
145
  endif;
146
 
147
- //include post_grid_plugin_dir.'/grid-items/scripts.php';
148
-
149
-
150
  $html.='</div>'; // .post-grid
151
 
152
  if($masonry_enable=='yes'){
12
 
13
  public function __construct(){
14
 
15
+ add_shortcode( 'post_grid', array( $this, 'post_grid_new_display' ) );
16
+ //add_shortcode( 'post_grid_new', array( $this, 'post_grid_new_display' ) );
17
 
18
  }
19
 
20
 
21
 
22
 
23
+
24
+ public function post_grid_new_display($atts, $content = null ){
25
+
26
+
27
+ $atts = shortcode_atts(
28
+ array(
29
+ 'id' => "",
30
+ ///'paging'=> 'pg'. $w4dev_custom_loop,
31
+ ), $atts);
32
+
33
+ $html = '';
34
+ $post_id = $atts['id'];
35
+
36
+ include post_grid_plugin_dir.'/grid-items/variables.php';
37
+ include post_grid_plugin_dir.'/grid-items/query.php';
38
+ include post_grid_plugin_dir.'/grid-items/custom-css.php';
39
+ include post_grid_plugin_dir.'/grid-items/lazy.php';
40
+
41
+
42
+
43
+
44
+ if($enable_multi_skin=='yes'){
45
+ $skin_main = $skin;
46
+ }
47
+
48
+
49
+
50
+ $html.='<div id="post-grid-'.$post_id.'" class="post-grid '.$grid_type.'">';
51
+
52
+
53
+ if ( $wp_query->have_posts() ) :
54
+
55
+ $html.='<div class="grid-nav-top">';
56
+ include post_grid_plugin_dir.'/grid-items/nav-top-new.php';
57
+ $html.='</div>'; // .grid-nav-top
58
+
59
+
60
+ if($grid_type=='slider'){
61
+
62
+ $owl_carousel_class='owl-carousel';
63
+
64
+ }
65
+ else{
66
+ $owl_carousel_class='';
67
+ }
68
+
69
+ $html.='<div class="grid-items '.$owl_carousel_class.'" id="">';
70
+
71
+
72
+ $odd_even = 0;
73
+
74
+ while ( $wp_query->have_posts() ) : $wp_query->the_post();
75
+
76
+ $post_grid_post_settings = get_post_meta( get_the_ID(), 'post_grid_post_settings', true );
77
+
78
+
79
+ //var_dump($post_grid_post_settings);
80
+
81
+ if($enable_multi_skin=='yes'){
82
+
83
+ if(!empty($post_grid_post_settings['post_skin'])){
84
+
85
+ $skin = $post_grid_post_settings['post_skin'];
86
+
87
+ }
88
+ else{
89
+
90
+ $skin = $skin_main;
91
+ }
92
+
93
+ }
94
+
95
+ if($odd_even%2==0){
96
+ $odd_even_calss = 'even';
97
+ }
98
+ else{
99
+ $odd_even_calss = 'odd';
100
+ }
101
+ $odd_even++;
102
+
103
+ $html.='<div class="item mix skin '.$odd_even_calss.' '.$skin.' '.post_grid_term_slug_list(get_the_ID()).'">';
104
+
105
+ include post_grid_plugin_dir.'/grid-items/layer-media.php';
106
+ include post_grid_plugin_dir.'/grid-items/layer-content.php';
107
+ include post_grid_plugin_dir.'/grid-items/layer-hover.php';
108
+
109
+ $html.='</div>'; // .item
110
+
111
+
112
+
113
+
114
+ $post_grid_ads_loop_meta_options = get_post_meta($post_id, 'post_grid_ads_loop_meta_options', true);
115
+
116
+
117
+ // var_dump($post_grid_ads_loop_meta_options['ads_positions']);
118
+
119
+ if(!empty($post_grid_ads_loop_meta_options['ads_positions'])){
120
+
121
+ $ads_positions = $post_grid_ads_loop_meta_options['ads_positions'];
122
+ $ads_positions = explode(',',$ads_positions);
123
+
124
+ $ads_positions_html = $post_grid_ads_loop_meta_options['ads_positions_html'];
125
+
126
+ $post_grid_ads_positions = apply_filters('post_grid_filter_ads_positions', $ads_positions);
127
+
128
+ foreach($post_grid_ads_positions as $position){
129
+
130
+ if( $wp_query->current_post == $position ){
131
+
132
+ if(!empty($ads_positions_html[$position]))
133
+ $html .= apply_filters('post_grid_nth_item_html',$ads_positions_html[$position]);
134
+
135
+ }
136
+ }
137
+
138
+ }
139
+
140
+
141
+
142
+ //do_action('post_grid_nth_item_html');
143
+
144
+
145
+ endwhile;
146
+ wp_reset_query();
147
+ $html.='</div>'; // .grid-items
148
+
149
+ $html.='<div class="grid-nav-bottom">';
150
+ include post_grid_plugin_dir.'/grid-items/nav-bottom-new.php';
151
+ $html.='</div>'; // .grid-nav-bottom
152
+
153
+ //wp_reset_query();
154
+ else:
155
+ $html.='<div class="no-post-found">';
156
+ $html.=__('No Post found',post_grid_textdomain); // .item
157
+ $html.='</div>'; // .item
158
+
159
+ endif;
160
+
161
+ include post_grid_plugin_dir.'/grid-items/scripts.php';
162
+ $html.='</div>'; // .post-grid
163
+
164
+ if($masonry_enable=='yes'){
165
+ $html .= '<script>jQuery(window).load(function(){jQuery("#post-grid-'.$post_id.' .grid-items").masonry({isFitWidth: true}); });</script>';
166
+ }
167
+
168
+
169
+
170
+
171
+ return $html;
172
+
173
+
174
+
175
+
176
+
177
+ }
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
  public function post_grid_display($atts, $content = null ) {
189
 
190
  /*
252
 
253
  include post_grid_plugin_dir.'/grid-items/query.php';
254
  include post_grid_plugin_dir.'/grid-items/custom-css.php';
255
+ include post_grid_plugin_dir.'/grid-items/lazy.php';
256
 
257
+ if($enable_multi_skin=='yes'){
258
+ $skin_main = $skin;
259
+ }
260
 
261
 
262
 
263
 
264
 
265
+ //$html.='<div class="post-grid-debug"></div>'; // .debug
266
 
267
  $html.='<div id="post-grid-'.$post_id.'" class="post-grid">';
268
 
279
 
280
  while ( $wp_query->have_posts() ) : $wp_query->the_post();
281
 
282
+ $post_grid_post_settings = get_post_meta( get_the_ID(), 'post_grid_post_settings', true );
283
+
284
+
285
+ //var_dump($post_grid_post_settings);
286
+
287
+ if($enable_multi_skin=='yes'){
288
+
289
+ if(!empty($post_grid_post_settings['post_skin'])){
290
+
291
+ $skin = $post_grid_post_settings['post_skin'];
292
+
293
+ }
294
+ else{
295
+
296
+ $skin = $skin_main;
297
+ }
298
+
299
+ }
300
 
301
  if($odd_even%2==0){
302
  $odd_even_calss = 'even';
330
 
331
  endif;
332
 
333
+ include post_grid_plugin_dir.'/grid-items/scripts.php';
 
 
334
  $html.='</div>'; // .post-grid
335
 
336
  if($masonry_enable=='yes'){
includes/dummy-grid-items.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="item">
2
+
3
+ <div class="layer-media">
4
+ <div class="thumb "><img src="<?php echo post_grid_plugin_url; ?>assets/admin/images/thumb.png" /></div>
5
+ </div>
6
+ <div class="layer-content">
7
+ <div class="title ">Hello title</div>
8
+ <div class="content ">There are many variations of passages of Lorem Ipsum available, but the majority have</div>
9
+ </div>
10
+
11
+ </div>
includes/functions.php CHANGED
@@ -8,13 +8,24 @@
8
  if ( ! defined('ABSPATH')) exit; // if direct access
9
 
10
 
 
11
 
 
 
 
 
 
 
 
 
 
12
 
 
13
 
14
 
 
15
 
16
- function w4dev_custom_loop_shortcode( $atts )
17
- {
18
  static $w4dev_custom_loop;
19
  if( !isset($w4dev_custom_loop) )
20
  $w4dev_custom_loop = 1;
@@ -154,6 +165,15 @@ function post_grid_get_media($media_source, $featured_img_size, $thumb_linked){
154
 
155
  }
156
 
 
 
 
 
 
 
 
 
 
157
  if(!empty($post_grid_post_settings[0]['custom_mp3_url'])){
158
  $custom_mp3_url = $post_grid_post_settings[0]['custom_mp3_url'];
159
  }
@@ -188,7 +208,13 @@ function post_grid_get_media($media_source, $featured_img_size, $thumb_linked){
188
 
189
 
190
  if(!empty($thumb_url)){
191
- $html_thumb.= '<img alt="'.$alt_text.'" src="'.$thumb_url.'" />';
 
 
 
 
 
 
192
 
193
  }
194
  else{
@@ -201,17 +227,50 @@ function post_grid_get_media($media_source, $featured_img_size, $thumb_linked){
201
 
202
  elseif($media_source == 'empty_thumb'){
203
 
204
- $html_thumb.= '<img class="custom" src="'.post_grid_plugin_url.'assets/frontend/css/images/placeholder.png" />';
205
-
 
 
 
 
 
206
 
207
 
208
  }
209
 
210
 
 
211
 
 
 
 
 
 
 
 
 
 
 
 
 
 
212
 
213
 
 
 
 
 
 
 
 
 
 
 
214
 
 
 
 
 
215
 
216
 
217
 
@@ -219,7 +278,7 @@ function post_grid_get_media($media_source, $featured_img_size, $thumb_linked){
219
 
220
  //global $post, $posts;
221
  $post = get_post(get_the_ID());
222
- $post_content = apply_filters('the_content', $post->post_content);
223
 
224
  //var_dump('Hello');
225
 
@@ -237,35 +296,290 @@ function post_grid_get_media($media_source, $featured_img_size, $thumb_linked){
237
  }
238
  else{
239
 
240
- $html_thumb.= '<img src="'.$first_img.'" />';
 
 
 
 
 
241
 
242
 
243
  }
244
 
245
 
246
  }
247
- else{
248
- $thumb = wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), $featured_img_size );
249
-
250
- //var_dump();
251
 
252
- $alt_text = get_post_meta(get_post_thumbnail_id(get_the_ID()), '_wp_attachment_image_alt', true);
 
 
 
 
 
 
 
 
 
253
 
254
- $thumb_url = $thumb['0'];
 
255
 
 
 
256
 
257
- if(!empty($thumb_url)){
258
- $html_thumb.= '<img alt="'.$alt_text.'" src="'.$thumb_url.'" />';
 
 
 
 
 
259
 
 
260
 
261
  }
262
- else{
263
 
264
- $html_thumb.= '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
265
  }
266
 
 
 
 
 
 
 
 
 
 
267
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
268
 
 
269
 
270
  return $html_thumb;
271
 
@@ -278,7 +592,26 @@ function post_grid_get_media($media_source, $featured_img_size, $thumb_linked){
278
 
279
 
280
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
281
 
 
 
282
 
283
 
284
 
@@ -303,6 +636,38 @@ add_action('wp_ajax_nopriv_post_grid_reset_content_layouts', 'post_grid_reset_co
303
 
304
 
305
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
306
 
307
  function post_grid_export_content_layouts(){
308
 
@@ -389,6 +754,32 @@ function post_grid_term_slug_list($post_id){
389
 
390
 
391
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
392
 
393
 
394
 
@@ -424,14 +815,6 @@ function post_grid_posttypes($post_types){
424
 
425
 
426
 
427
- function post_grid_get_categories($post_id){}
428
-
429
-
430
- add_action('wp_ajax_post_grid_get_categories', 'post_grid_get_categories');
431
- add_action('wp_ajax_nopriv_post_grid_get_categories', 'post_grid_get_categories');
432
-
433
-
434
-
435
 
436
  function post_grid_layout_content_ajax(){
437
 
@@ -1024,6 +1407,24 @@ function post_grid_layout_add_elements(){
1024
  $html['options'].= 'Character limit: <br /><input type="text" value="20" name="post_grid_layout_content['.$layout.']['.$unique_id.'][char_limit]" /><br /><br />';
1025
  }
1026
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1027
 
1028
 
1029
  $html['options'].= '
@@ -1176,7 +1577,37 @@ add_action('wp_ajax_post_grid_ajax_search', 'post_grid_ajax_search');
1176
  add_action('wp_ajax_nopriv_post_grid_ajax_search', 'post_grid_ajax_search');
1177
 
1178
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1179
 
 
 
1180
 
1181
 
1182
 
@@ -1187,7 +1618,7 @@ add_action('wp_ajax_nopriv_post_grid_ajax_search', 'post_grid_ajax_search');
1187
  function post_grid_share_plugin(){
1188
 
1189
  ?>
1190
- <iframe src="//www.facebook.com/plugins/like.php?href=https://wordpress.org/plugins/post-grid/%2F&amp;width&amp;layout=standard&amp;action=like&amp;show_faces=true&amp;share=true&amp;height=80&amp;appId=652982311485932" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:80px;" allowTransparency="true"></iframe>
1191
 
1192
  <br />
1193
  <!-- Place this tag in your head or just before your close body tag. -->
8
  if ( ! defined('ABSPATH')) exit; // if direct access
9
 
10
 
11
+ /*
12
 
13
+ function post_grid_filter_media_source_extra($media_source){
14
+
15
+ $media_source_extra = array(
16
+ 'media_source_new' =>array('id'=>'media_source_new','title'=>'Media source new','checked'=>'yes'),
17
+
18
+ );
19
+ return array_merge($media_source, $media_source_extra);
20
+
21
+ }
22
 
23
+ add_filter('post_grid_filter_media_source','post_grid_filter_media_source_extra');
24
 
25
 
26
+ */
27
 
28
+ function w4dev_custom_loop_shortcode( $atts ){
 
29
  static $w4dev_custom_loop;
30
  if( !isset($w4dev_custom_loop) )
31
  $w4dev_custom_loop = 1;
165
 
166
  }
167
 
168
+
169
+ if(!empty($post_grid_post_settings[0]['custom_dailymotion_id'])){
170
+ $custom_dailymotion_id = $post_grid_post_settings[0]['custom_dailymotion_id'];
171
+ }
172
+ else{
173
+ $custom_dailymotion_id = '';
174
+
175
+ }
176
+
177
  if(!empty($post_grid_post_settings[0]['custom_mp3_url'])){
178
  $custom_mp3_url = $post_grid_post_settings[0]['custom_mp3_url'];
179
  }
208
 
209
 
210
  if(!empty($thumb_url)){
211
+ if($thumb_linked=='yes'){
212
+ $html_thumb.= '<a href="'.get_permalink().'"><img alt="'.$alt_text.'" src="'.$thumb_url.'" /></a>';
213
+ }
214
+ else{
215
+ $html_thumb.= '<img alt="'.$alt_text.'" src="'.$thumb_url.'" />';
216
+ }
217
+
218
 
219
  }
220
  else{
227
 
228
  elseif($media_source == 'empty_thumb'){
229
 
230
+
231
+ if($thumb_linked=='yes'){
232
+ $html_thumb.= '<a class="custom" href="'.get_permalink().'"><img src="'.post_grid_plugin_url.'assets/frontend/css/images/placeholder.png" /></a>';
233
+ }
234
+ else{
235
+ $html_thumb.= '<img class="custom" src="'.post_grid_plugin_url.'assets/frontend/css/images/placeholder.png" />';
236
+ }
237
 
238
 
239
  }
240
 
241
 
242
+ elseif($media_source == 'custom_thumb'){
243
 
244
+ if(!empty($custom_thumb_source)){
245
+
246
+ if($thumb_linked=='yes'){
247
+ $html_thumb.= '<a href="'.get_permalink().'"><img src="'.$custom_thumb_source.'" /></a>';
248
+ }
249
+ else{
250
+ $html_thumb.= '<img src="'.$custom_thumb_source.'" />';
251
+ }
252
+
253
+ }
254
+
255
+
256
+ }
257
 
258
 
259
+ elseif($media_source == 'font_awesome'){
260
+
261
+ if(!empty($custom_thumb_source)){
262
+
263
+ if($thumb_linked=='yes'){
264
+ $html_thumb.= '<a href="'.get_permalink().'"><i style="color:'.$font_awesome_icon_color.';font-size:'.$font_awesome_icon_size.'" class="fa '.$font_awesome_icon.'"></i></a>';
265
+ }
266
+ else{
267
+ $html_thumb.= '<i style="color:'.$font_awesome_icon_color.';font-size:'.$font_awesome_icon_size.'" class="fa '.$font_awesome_icon.'"></i>';
268
+ }
269
 
270
+ }
271
+
272
+
273
+ }
274
 
275
 
276
 
278
 
279
  //global $post, $posts;
280
  $post = get_post(get_the_ID());
281
+ $post_content = $post->post_content;
282
 
283
  //var_dump('Hello');
284
 
296
  }
297
  else{
298
 
299
+ if($thumb_linked=='yes'){
300
+ $html_thumb.= '<a href="'.get_permalink().'"><img src="'.$first_img.'" /></a>';
301
+ }
302
+ else{
303
+ $html_thumb.= '<img src="'.$first_img.'" />';
304
+ }
305
 
306
 
307
  }
308
 
309
 
310
  }
311
+
312
+ elseif($media_source == 'first_gallery'){
 
 
313
 
314
+ $gallery = get_post_gallery( get_the_ID(), false );
315
+
316
+
317
+
318
+ if(!empty($gallery)){
319
+ $html_thumb.= '<div class="gallery owl-carousel">';
320
+
321
+ if(!empty($gallery['ids'])){
322
+ $ids = $gallery['ids'];
323
+ $ids = explode(',',$ids);
324
 
325
+ }
326
+ else{
327
 
328
+ $ids = array();
329
+ }
330
 
331
+
332
+ //var_dump($ids);
333
+
334
+ foreach($ids as $id ){
335
+
336
+ $src = wp_get_attachment_url( $id);
337
+ $alt_text = get_post_meta($id, '_wp_attachment_image_alt', true);
338
 
339
+ $html_thumb .= '<img src="'.$src.'" class="gallery-item" alt="'.$alt_text.'" />';
340
 
341
  }
 
342
 
343
+ $html_thumb.= '</div>';
344
+ }
345
+
346
+ }
347
+
348
+ elseif($media_source == 'first_youtube'){
349
+
350
+ $post = get_post(get_the_ID());
351
+
352
+ $post_type = $post->post_type;
353
+ //var_dump($post_type);
354
+
355
+ if($post_type=='page'){
356
+ $content = '';
357
+ $html_thumb.= '';
358
+ }
359
+ else{
360
+
361
+ $content = do_shortcode( $post->post_content );
362
+ }
363
+
364
+ $embeds = get_media_embedded_in_content( $content );
365
+
366
+
367
+ foreach($embeds as $key=>$embed){
368
+
369
+ if(strchr($embed,'youtube')){
370
+
371
+ $embed_youtube = $embed;
372
  }
373
 
374
+ }
375
+
376
+ if(!empty($embed_youtube) ){
377
+ $html_thumb.= $embed_youtube;
378
+ }
379
+ else{
380
+ $html_thumb.= '';
381
+ }
382
+
383
  }
384
+
385
+ elseif($media_source == 'first_vimeo'){
386
+
387
+ $post = get_post(get_the_ID());
388
+ $post_type = $post->post_type;
389
+ //var_dump($post_type);
390
+
391
+ if($post_type=='page'){
392
+ $content = '';
393
+ $html_thumb.= '';
394
+ }
395
+ else{
396
+
397
+ $content = do_shortcode( $post->post_content );
398
+ }
399
+ $embeds = get_media_embedded_in_content( $content );
400
+
401
+ foreach($embeds as $key=>$embed){
402
+
403
+ if(strchr($embed,'vimeo')){
404
+
405
+ $embed_youtube = $embed;
406
+ }
407
+
408
+ }
409
+
410
+ if(!empty($embed_youtube) ){
411
+ $html_thumb.= $embed_youtube;
412
+ }
413
+ else{
414
+ $html_thumb.= '';
415
+ }
416
+
417
+ }
418
+
419
+
420
+
421
+ elseif($media_source == 'first_dailymotion'){
422
+
423
+ $post = get_post(get_the_ID());
424
+ $post_type = $post->post_type;
425
+ //var_dump($post_type);
426
+
427
+ if($post_type=='page'){
428
+ $content = '';
429
+ $html_thumb.= '';
430
+ }
431
+ else{
432
+
433
+ $content = do_shortcode( $post->post_content );
434
+ }
435
+ $embeds = get_media_embedded_in_content( $content );
436
+
437
+ foreach($embeds as $key=>$embed){
438
+
439
+ if(strchr($embed,'dailymotion')){
440
+
441
+ $embed_youtube = $embed;
442
+ }
443
+
444
+ }
445
+
446
+ if(!empty($embed_youtube) ){
447
+ $html_thumb.= $embed_youtube;
448
+ }
449
+ else{
450
+ $html_thumb.= '';
451
+ }
452
+
453
+ }
454
+
455
+
456
+
457
+
458
+ elseif($media_source == 'first_mp3'){
459
+
460
+ $post = get_post(get_the_ID());
461
+ $post_type = $post->post_type;
462
+ //var_dump($post_type);
463
+
464
+ if($post_type=='page'){
465
+ $content = '';
466
+ $html_thumb.= '';
467
+ }
468
+ else{
469
+
470
+ $content = do_shortcode( $post->post_content );
471
+ }
472
+ $embeds = get_media_embedded_in_content( $content );
473
+
474
+ foreach($embeds as $key=>$embed){
475
+
476
+ if(strchr($embed,'mp3')){
477
+
478
+ $embed_youtube = $embed;
479
+ }
480
+
481
+ }
482
+
483
+ if(!empty($embed_youtube) ){
484
+ $html_thumb.= $embed_youtube;
485
+ }
486
+ else{
487
+ $html_thumb.= '';
488
+ }
489
+
490
+ }
491
+
492
+ elseif($media_source == 'first_soundcloud'){
493
+
494
+ $post = get_post(get_the_ID());
495
+ $post_type = $post->post_type;
496
+ //var_dump($post_type);
497
+
498
+ if($post_type=='page'){
499
+ $content = '';
500
+ $html_thumb.= '';
501
+ }
502
+ else{
503
+
504
+ $content = do_shortcode( $post->post_content );
505
+ }
506
+ $embeds = get_media_embedded_in_content( $content );
507
+
508
+ foreach($embeds as $key=>$embed){
509
+
510
+ if(strchr($embed,'soundcloud')){
511
+
512
+ $embed_youtube = $embed;
513
+ }
514
+
515
+ }
516
+
517
+ if(!empty($embed_youtube) ){
518
+ $html_thumb.= $embed_youtube;
519
+ }
520
+ else{
521
+ $html_thumb.= '';
522
+ }
523
+
524
+ }
525
+
526
+
527
+ elseif($media_source == 'custom_youtube'){
528
+
529
+ if(!empty($custom_youtube_id)){
530
+ $html_thumb.= '<iframe frameborder="0" allowfullscreen="" src="http://www.youtube.com/embed/'.$custom_youtube_id.'?feature=oembed"></iframe>';
531
+
532
+ }
533
+
534
+
535
+ }
536
+
537
+
538
+
539
+ elseif($media_source == 'custom_vimeo'){
540
+
541
+ if(!empty($custom_vimeo_id)){
542
+ $html_thumb.= '<iframe frameborder="0" allowfullscreen="" mozallowfullscreen="" webkitallowfullscreen="" src="https://player.vimeo.com/video/'.$custom_vimeo_id.'"></iframe>';
543
+
544
+ }
545
+
546
+
547
+ }
548
+
549
+
550
+ elseif($media_source == 'custom_dailymotion'){
551
+
552
+ if(!empty($custom_dailymotion_id)){
553
+ $html_thumb.= '<iframe frameborder="0" allowfullscreen="" mozallowfullscreen="" webkitallowfullscreen="" src="//www.dailymotion.com/embed/video/'.$custom_dailymotion_id.'"></iframe>';
554
+
555
+ }
556
+
557
+
558
+ }
559
+
560
+
561
+
562
+ elseif($media_source == 'custom_mp3'){
563
+
564
+ if(!empty($custom_mp3_url)){
565
+ $html_thumb.= do_shortcode('[audio src="'.$custom_mp3_url.'"]');
566
+
567
+ }
568
+
569
+ }
570
+
571
+
572
+ elseif($media_source == 'custom_soundcloud'){
573
+
574
+ if(!empty($custom_soundcloud_id)){
575
+ $html_thumb.= '<iframe width="100%" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/'.$custom_soundcloud_id.'&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true"></iframe>';
576
+
577
+ }
578
+
579
+ }
580
+
581
 
582
+
583
 
584
  return $html_thumb;
585
 
592
 
593
 
594
 
595
+ function post_grid_remove_content_layout_ajax(){
596
+
597
+ $layout_id = $_POST['layout_id'];
598
+
599
+ $post_grid_layout_content = get_option('post_grid_layout_content');
600
+
601
+ //var_dump($post_grid_layout_content[$layout_id]);
602
+
603
+ unset($post_grid_layout_content[$layout_id]);
604
+
605
+ update_option('post_grid_layout_content',$post_grid_layout_content);
606
+
607
+
608
+ die();
609
+
610
+ }
611
+
612
 
613
+ add_action('wp_ajax_post_grid_remove_content_layout_ajax', 'post_grid_remove_content_layout_ajax');
614
+ add_action('wp_ajax_nopriv_post_grid_remove_content_layout_ajax', 'post_grid_remove_content_layout_ajax');
615
 
616
 
617
 
636
 
637
 
638
 
639
+ function post_grid_import_content_layouts(){
640
+
641
+ $layouts_data = stripslashes($_POST['layouts_data']);
642
+ $layouts_data = unserialize($layouts_data);
643
+
644
+ //update_option('post_grid_layout_content', $layouts_data);
645
+
646
+ if(!empty($layouts_data)){
647
+
648
+ $post_grid_layout_content = get_option('post_grid_layout_content');
649
+ $post_grid_layout_content = array_merge($post_grid_layout_content,$layouts_data);
650
+
651
+ update_option('post_grid_layout_content', $post_grid_layout_content);
652
+
653
+ }
654
+
655
+
656
+ die();
657
+ }
658
+
659
+
660
+ add_action('wp_ajax_post_grid_import_content_layouts', 'post_grid_import_content_layouts');
661
+ add_action('wp_ajax_nopriv_post_grid_import_content_layouts', 'post_grid_import_content_layouts');
662
+
663
+
664
+
665
+
666
+
667
+
668
+
669
+
670
+
671
 
672
  function post_grid_export_content_layouts(){
673
 
754
 
755
 
756
 
757
+ function post_grid_meta_query_args($meta_query){
758
+
759
+ foreach($meta_query as $key=>$meta_info){
760
+
761
+ ?>
762
+ <div class="items">
763
+ <div class="header"><span class="remove"><i class="fa fa-times"></i></span><?php echo $key; ?></div>
764
+ <div class="options">
765
+
766
+ Key<br />
767
+ <input type="text" name="post_grid_meta_options[meta_query][<?php echo $key; ?>][key]" value="<?php echo $meta_info['key']; ?>" /><br>
768
+ Value<br />
769
+ <input type="text" name="post_grid_meta_options[meta_query][<?php echo $key; ?>][value]" value="<?php echo $meta_info['value']; ?>" /><br>
770
+ Compare<br />
771
+ <input type="text" name="post_grid_meta_options[meta_query][<?php echo $key; ?>][compare]" value="<?php echo $meta_info['compare']; ?>" /><br>
772
+ Type<br />
773
+ <input type="text" name="post_grid_meta_options[meta_query][<?php echo $key; ?>][type]" value="<?php echo $meta_info['type']; ?>" /><br>
774
+
775
+ </div>
776
+ </div>
777
+ <?php
778
+
779
+ }
780
+
781
+
782
+ }
783
 
784
 
785
 
815
 
816
 
817
 
 
 
 
 
 
 
 
 
818
 
819
  function post_grid_layout_content_ajax(){
820
 
1407
  $html['options'].= 'Character limit: <br /><input type="text" value="20" name="post_grid_layout_content['.$layout.']['.$unique_id.'][char_limit]" /><br /><br />';
1408
  }
1409
 
1410
+ if($item_key=='title_link' || $item_key=='read_more' || $item_key=='excerpt_read_more' ){
1411
+
1412
+ $html['options'].= 'Link target: <br />
1413
+ <select name="post_grid_layout_content['.$layout.']['.$unique_id.'][link_target]" >
1414
+ <option value="_blank">_blank</option>
1415
+ <option value="_parent">_parent</option>
1416
+ <option value="_self">_self</option>
1417
+ <option value="_top">_top</option>
1418
+ <option value="new">new</option>
1419
+ </select><br /><br />';
1420
+ }
1421
+
1422
+
1423
+
1424
+
1425
+
1426
+
1427
+
1428
 
1429
 
1430
  $html['options'].= '
1577
  add_action('wp_ajax_nopriv_post_grid_ajax_search', 'post_grid_ajax_search');
1578
 
1579
 
1580
+ function post_grid_active_filter(){
1581
+
1582
+ $html = '';
1583
+ $categories = $_POST['categories'];
1584
+
1585
+ //var_dump($categories).'<br>';
1586
+
1587
+ $html .= '<select class="" name="post_grid_meta_options[nav_top][active_filter]">';
1588
+ $html .= '<option value="all">All</option>';
1589
+ foreach($categories as $tax_terms){
1590
+
1591
+ $tax_terms = explode(',',$tax_terms);
1592
+
1593
+
1594
+ $terms_info = get_term_by('id', $tax_terms[1], $tax_terms[0]);
1595
+ //var_dump($terms_info);
1596
+ $html .= '<option value="'.$terms_info->slug.'">'.$terms_info->name.'</option>';
1597
+
1598
+ }
1599
+
1600
+ $html .= '</select>';
1601
+
1602
+ echo $html;
1603
+
1604
+ die();
1605
+
1606
+ }
1607
+
1608
 
1609
+ add_action('wp_ajax_post_grid_active_filter', 'post_grid_active_filter');
1610
+ add_action('wp_ajax_nopriv_post_grid_active_filter', 'post_grid_active_filter');
1611
 
1612
 
1613
 
1618
  function post_grid_share_plugin(){
1619
 
1620
  ?>
1621
+ <iframe src="https://www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwordpress.org%2Fplugins%2Fpost-grid%2F&width=450&layout=standard&action=like&show_faces=true&share=true&height=80&appId" width="450" height="80" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe>
1622
 
1623
  <br />
1624
  <!-- Place this tag in your head or just before your close body tag. -->
includes/menu/help.php CHANGED
@@ -66,7 +66,7 @@ if ( ! defined('ABSPATH')) exit; // if direct access
66
 
67
  <div class="option-box">
68
  <p class="option-title"><?php _e('Video Tutorial',post_grid_textdomain ); ?></p>
69
- <p class="option-info"><?php _e('Please watch video tutorial.',post_grid_textdomain ); ?></p>
70
 
71
  <div class="tutorials expandable">
72
  <div class="items">
66
 
67
  <div class="option-box">
68
  <p class="option-title"><?php _e('Video Tutorial',post_grid_textdomain ); ?></p>
69
+ <p class="option-info"><?php _e('Please watch video tutorial, some features may not available in Free version.',post_grid_textdomain ); ?></p>
70
 
71
  <div class="tutorials expandable">
72
  <div class="items">
includes/menu/layout-editor.php CHANGED
@@ -217,13 +217,13 @@ else
217
 
218
  if(empty($layout)){$layout = array();
219
 
220
- echo 'you haven\'t selecetd any layout. please select here';
221
 
222
 
223
  ?>
224
  <select class="layout-content">
225
- <option selected value="">Please select</option>
226
-
227
  <?php
228
 
229
  $post_grid_layout_content = get_option('post_grid_layout_content');
@@ -257,11 +257,26 @@ jQuery(document).ready(function($)
257
  {
258
 
259
  var layout = $(this).val();
 
 
 
 
 
 
260
 
261
  if(layout!=null){
262
  window.location.href = "<?php echo admin_url().'edit.php?post_type=post_grid&page=post_grid_layout_editor&layout_content=';?>"+layout;
263
  }
264
-
 
 
 
 
 
 
 
 
 
265
  })
266
 
267
  })
@@ -326,13 +341,45 @@ jQuery(document).ready(function($)
326
  ?>
327
 
328
  <?php _e('Character limit:',post_grid_textdomain ); ?> <br />
329
- <input type="text" name="post_grid_layout_content[<?php echo $layout_content; ?>][<?php echo $i; ?>][<?php echo $item_key; ?>]" value="<?php echo $items['char_limit']; ?>" /><br />
330
 
331
  <?php
332
 
333
  }
334
 
335
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
336
  else{
337
  ?>
338
  <input type="hidden" name="post_grid_layout_content[<?php echo $layout_content; ?>][<?php echo $i; ?>][<?php echo $item_key; ?>]" value="<?php echo $item_info; ?>" />
217
 
218
  if(empty($layout)){$layout = array();
219
 
220
+ echo 'you haven\'t selected any layout. please select here';
221
 
222
 
223
  ?>
224
  <select class="layout-content">
225
+ <option selected value=""></option>
226
+ <option value="create-new">Create New</option>
227
  <?php
228
 
229
  $post_grid_layout_content = get_option('post_grid_layout_content');
257
  {
258
 
259
  var layout = $(this).val();
260
+
261
+ if(layout=='create-new'){
262
+
263
+ layout = prompt('(Must be unique) Layout name ?');
264
+
265
+ //layout = $.now();
266
 
267
  if(layout!=null){
268
  window.location.href = "<?php echo admin_url().'edit.php?post_type=post_grid&page=post_grid_layout_editor&layout_content=';?>"+layout;
269
  }
270
+
271
+
272
+ }
273
+ else{
274
+ window.location.href = "<?php echo admin_url().'edit.php?post_type=post_grid&page=post_grid_layout_editor&layout_content=';?>"+layout;
275
+ }
276
+
277
+
278
+
279
+
280
  })
281
 
282
  })
341
  ?>
342
 
343
  <?php _e('Character limit:',post_grid_textdomain ); ?> <br />
344
+ <input type="text" name="post_grid_layout_content[<?php echo $layout_content; ?>][<?php echo $i; ?>][<?php echo $item_key; ?>]" value="<?php echo $items['char_limit']; ?>" /><br /><br />
345
 
346
  <?php
347
 
348
  }
349
 
350
 
351
+ elseif($item_key=='link_target'){
352
+
353
+
354
+ //var_dump($items['link_target']);
355
+ ?>
356
+
357
+ <?php _e('Link target:',post_grid_textdomain ); ?> <br />
358
+
359
+ <select name="post_grid_layout_content[<?php echo $layout_content; ?>][<?php echo $i; ?>][<?php echo $item_key; ?>]" >
360
+
361
+ <option <?php if($items['link_target']=='_blank') echo 'selected'; ?> value="_blank">_blank</option>
362
+ <option <?php if($items['link_target']=='_parent') echo 'selected'; ?> value="_parent">_parent</option>
363
+ <option <?php if($items['link_target']=='_self') echo 'selected'; ?> value="_self">_self</option>
364
+ <option <?php if($items['link_target']=='_top') echo 'selected'; ?> value="_top">_top</option>
365
+ <option <?php if($items['link_target']=='new') echo 'selected'; ?> value="new">new</option>
366
+ </select>
367
+ <br />
368
+
369
+
370
+
371
+ <?php
372
+
373
+ }
374
+
375
+
376
+
377
+
378
+
379
+
380
+
381
+
382
+
383
  else{
384
  ?>
385
  <input type="hidden" name="post_grid_layout_content[<?php echo $layout_content; ?>][<?php echo $i; ?>][<?php echo $item_key; ?>]" value="<?php echo $item_info; ?>" />
includes/menu/settings.php CHANGED
@@ -118,6 +118,42 @@ else
118
 
119
 
120
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
 
122
  </li>
123
 
118
 
119
 
120
 
121
+ <div class="option-box">
122
+ <p class="option-title"><?php _e('Import Content Layouts',post_grid_textdomain); ?></p>
123
+ <p class="option-info"><?php _e('you can import content layouts here. please put serialized data.',post_grid_textdomain); ?></p>
124
+ <textarea class="import-content-layouts-data" ></textarea><br />
125
+ <div class="button import-content-layouts"><?php _e('Import Layouts',post_grid_textdomain); ?></div>
126
+
127
+
128
+
129
+ </div>
130
+
131
+
132
+
133
+
134
+
135
+ <div class="option-box">
136
+ <p class="option-title"><?php _e('Remove Content Layouts',post_grid_textdomain); ?></p>
137
+ <p class="option-info"><?php _e('you can remove content layouts here.',post_grid_textdomain); ?></p>
138
+ <ul class="layout-list">
139
+ <?php
140
+
141
+ $post_grid_layout_content = get_option('post_grid_layout_content');
142
+
143
+
144
+ foreach($post_grid_layout_content as $layout_key=>$layout_info){
145
+ ?>
146
+ <li><span class="remove-layout" layout-id="<?php echo $layout_key; ?>" ><i class="fa fa-times"></i></span><b><?php echo $layout_key; ?></b></li>
147
+ <?php
148
+
149
+ }
150
+
151
+
152
+ ?>
153
+ </ul>
154
+ </div>
155
+
156
+
157
 
158
  </li>
159
 
includes/meta.php CHANGED
@@ -25,8 +25,8 @@ function post_grid_posttype_register() {
25
 
26
  $args = array(
27
  'labels' => $labels,
28
- 'public' => true,
29
- 'publicly_queryable' => true,
30
  'show_ui' => true,
31
  'query_var' => true,
32
  'menu_icon' => null,
@@ -80,6 +80,9 @@ function meta_boxes_post_grid_input( $post ) {
80
  }
81
 
82
 
 
 
 
83
  /*
84
 
85
  if(!empty($post_grid_meta_options['categories'])){
@@ -96,10 +99,6 @@ function meta_boxes_post_grid_input( $post ) {
96
  $categories_relation = 'OR';
97
  }
98
 
99
- */
100
-
101
-
102
- /*
103
 
104
  if(!empty($post_grid_meta_options['extra_query_parameter'])){
105
  $extra_query_parameter = $post_grid_meta_options['extra_query_parameter'];
@@ -159,6 +158,8 @@ function meta_boxes_post_grid_input( $post ) {
159
  if(!empty($post_grid_meta_options['query_orderby_meta_key']))
160
  $query_orderby_meta_key = $post_grid_meta_options['query_orderby_meta_key'];
161
 
 
 
162
  /*
163
 
164
  if(!empty($post_grid_meta_options['meta_query'])){
@@ -166,7 +167,8 @@ function meta_boxes_post_grid_input( $post ) {
166
  }
167
  else{
168
  $meta_query = array();
169
- }
 
170
 
171
  if(!empty($post_grid_meta_options['meta_query_relation'])){
172
  $meta_query_relation = $post_grid_meta_options['meta_query_relation'];
@@ -267,8 +269,6 @@ function meta_boxes_post_grid_input( $post ) {
267
 
268
 
269
 
270
- /*
271
-
272
  if(!empty($post_grid_meta_options['lazy_load_enable'])){
273
 
274
  $lazy_load_enable = $post_grid_meta_options['lazy_load_enable'];
@@ -285,10 +285,7 @@ function meta_boxes_post_grid_input( $post ) {
285
  else{
286
  $lazy_load_image_src = '';
287
 
288
- }
289
-
290
-
291
- */
292
 
293
 
294
 
@@ -312,8 +309,6 @@ function meta_boxes_post_grid_input( $post ) {
312
  }
313
 
314
 
315
- /*
316
-
317
  if(!empty($post_grid_meta_options['item_height']['style'])){
318
 
319
  $items_height_style = $post_grid_meta_options['item_height']['style'];
@@ -331,9 +326,7 @@ function meta_boxes_post_grid_input( $post ) {
331
  else{
332
  $items_fixed_height = '220px';
333
 
334
- }
335
-
336
- */
337
 
338
 
339
 
@@ -407,8 +400,6 @@ function meta_boxes_post_grid_input( $post ) {
407
 
408
  }
409
 
410
- /*
411
-
412
  if(!empty($post_grid_meta_options['thumb_linked'])){
413
 
414
  $thumb_linked = $post_grid_meta_options['thumb_linked'];
@@ -416,9 +407,7 @@ function meta_boxes_post_grid_input( $post ) {
416
  else{
417
  $thumb_linked = 'yes';
418
 
419
- }
420
-
421
- */
422
 
423
 
424
 
@@ -461,6 +450,18 @@ function meta_boxes_post_grid_input( $post ) {
461
  }
462
 
463
 
 
 
 
 
 
 
 
 
 
 
 
 
464
  /*
465
 
466
  if(!empty($post_grid_meta_options['nav_top']['filter'])){
@@ -468,12 +469,18 @@ function meta_boxes_post_grid_input( $post ) {
468
  $nav_top_filter = $post_grid_meta_options['nav_top']['filter'];
469
  }
470
  else{
471
- $nav_top_filter = 'none';
472
 
473
  }
474
 
475
- */
 
 
 
 
 
476
 
 
477
  /*
478
 
479
  if(!empty($post_grid_meta_options['nav_top']['filterable_post_per_page'])){
@@ -490,27 +497,198 @@ function meta_boxes_post_grid_input( $post ) {
490
  $active_filter = $post_grid_meta_options['nav_top']['active_filter'];
491
  }
492
  else{
493
- $active_filter = '*';
494
 
495
  }
496
 
497
- */
498
 
499
-
500
 
 
 
 
 
501
 
502
- /*
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
503
 
 
 
 
 
 
504
  if(!empty($post_grid_meta_options['nav_top']['search'])){
505
 
506
  $nav_top_search = $post_grid_meta_options['nav_top']['search'];
507
  }
508
  else{
509
- $nav_top_search = 'none';
510
 
511
- }
512
-
513
- */
514
 
515
 
516
  if(!empty($post_grid_meta_options['nav_bottom']['pagination_type'])){
@@ -518,7 +696,7 @@ function meta_boxes_post_grid_input( $post ) {
518
  $pagination_type = $post_grid_meta_options['nav_bottom']['pagination_type'];
519
  }
520
  else{
521
- $pagination_type = 'pagination';
522
 
523
  }
524
 
@@ -617,8 +795,8 @@ function meta_boxes_post_grid_input( $post ) {
617
  ?>
618
 
619
  </div>
620
-
621
-
622
  <div class="option-box">
623
  <p class="option-title"><?php _e('Post Status',post_grid_textdomain); ?></p>
624
  <p class="option-info"><?php _e('Display post from following post status, <br />Hint: Ctrl + click to select mulitple',post_grid_textdomain); ?></p>
@@ -695,7 +873,8 @@ function meta_boxes_post_grid_input( $post ) {
695
  <input type="text" placeholder="meta_key" name="post_grid_meta_options[query_orderby_meta_key]" id="query_orderby_meta_key" value="<?php if(!empty($query_orderby_meta_key)) echo $query_orderby_meta_key; ?>" />
696
 
697
  </div>
698
-
 
699
 
700
  <div class="option-box">
701
  <p class="option-title"><?php _e('Search keyword',post_grid_textdomain); ?></p>
@@ -717,6 +896,8 @@ function meta_boxes_post_grid_input( $post ) {
717
  <input type="radio" <?php if($grid_layout_name=='layout_grid') echo 'checked' ?> name="post_grid_meta_options[grid_layout][name]" value="layout_grid"><img title="N - N" src="<?php echo post_grid_plugin_url; ?>assets/admin/images/layout_grid.png" />
718
  </label>
719
 
 
 
720
  </div>
721
 
722
 
@@ -989,7 +1170,56 @@ function meta_boxes_post_grid_input( $post ) {
989
  </div>
990
 
991
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
992
 
 
 
 
 
 
 
993
 
994
  <div class="option-box">
995
  <p class="option-title"><?php _e('Grid Items Width',post_grid_textdomain); ?></p>
@@ -1031,7 +1261,22 @@ function meta_boxes_post_grid_input( $post ) {
1031
 
1032
  </div>
1033
 
 
 
 
 
 
 
 
 
 
 
 
1034
 
 
 
 
 
1035
 
1036
 
1037
  <div class="option-box">
@@ -1110,7 +1355,15 @@ function meta_boxes_post_grid_input( $post ) {
1110
 
1111
  </select>
1112
 
1113
-
 
 
 
 
 
 
 
 
1114
  <p class="option-title"><?php _e('Media source',post_grid_textdomain); ?></p>
1115
  <p class="option-info"><?php _e('Grid item media source <br />N.B. First gallery from content, First youtube video from content, First vimeo video from content, First MP3 from content, First SoundCloud from content will not retrive for "page"',post_grid_textdomain); ?></p>
1116
  <?php
@@ -1232,32 +1485,229 @@ jQuery(document).ready(function($)
1232
  </li>
1233
  <li style="display: none;" class="box5 tab-box ">
1234
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1235
  <div class="option-box">
1236
  <p class="option-title"><?php _e('Navigation',post_grid_textdomain); ?></p>
1237
- <p class="option-info"><?php _e('Customize navigation layout.',post_grid_textdomain); ?></p>
 
1238
 
1239
 
1240
- <div class="grid-layout">
1241
- <div class="grid-up">
 
 
 
 
 
 
 
 
 
 
1242
 
1243
- </div>
1244
- <div class="grid-container">
1245
- <img src="<?php echo post_grid_plugin_url; ?>assets/admin/images/grid.png" />
1246
- </div>
1247
- <div class="grid-bottom">
1248
-
1249
- <label><input <?php if($pagination_type=='none') echo 'checked'; ?> type="radio" name="post_grid_meta_options[nav_bottom][pagination_type]" value="none" />None</label>
1250
- <label><input <?php if($pagination_type=='pagination') echo 'checked'; ?> type="radio" name="post_grid_meta_options[nav_bottom][pagination_type]" value="pagination" />Pagination</label>
1251
 
1252
 
1253
 
1254
 
1255
-
1256
-
1257
- </div>
1258
-
1259
-
1260
- </div>
1261
 
1262
 
1263
  </div>
@@ -1277,29 +1727,17 @@ jQuery(document).ready(function($)
1277
  <p class="option-info"><?php _e('Pagination Next text',post_grid_textdomain); ?></p>
1278
  <input type="text" name="post_grid_meta_options[pagination][next_text]" value="<?php echo $pagination_next_text; ?>" />
1279
 
1280
-
1281
-
1282
-
1283
- </div>
1284
-
1285
-
1286
-
1287
- <div class="option-box">
1288
- <p class="option-title"><?php _e('Pagination themes',post_grid_textdomain); ?></p>
1289
- <p class="option-info"><?php _e('Themes for pagination',post_grid_textdomain); ?></p>
1290
 
1291
  <label><input <?php if($pagination_theme=='lite') echo 'checked'; ?> type="radio" name="post_grid_meta_options[nav_bottom][pagination_theme]" value="lite" /><?php _e('Lite',post_grid_textdomain); ?></label>
1292
- <label><input <?php if($pagination_theme=='dark') echo 'checked'; ?> type="radio" name="post_grid_meta_options[nav_bottom][pagination_theme]" value="dark" /><?php _e('Dark',post_grid_textdomain); ?></label>
1293
-
1294
-
1295
- </div>
1296
-
1297
-
1298
-
1299
-
1300
 
 
1301
 
 
1302
 
 
1303
 
1304
 
1305
  </li>
@@ -1326,6 +1764,7 @@ jQuery(document).ready(function($)
1326
 
1327
  <script>
1328
 
 
1329
  var editor = CodeMirror.fromTextArea(document.getElementById("custom_js"), {
1330
  lineNumbers: true,
1331
  scrollbarStyle: "simple"
25
 
26
  $args = array(
27
  'labels' => $labels,
28
+ 'public' => false,
29
+ 'publicly_queryable' => false,
30
  'show_ui' => true,
31
  'query_var' => true,
32
  'menu_icon' => null,
80
  }
81
 
82
 
83
+
84
+
85
+
86
  /*
87
 
88
  if(!empty($post_grid_meta_options['categories'])){
99
  $categories_relation = 'OR';
100
  }
101
 
 
 
 
 
102
 
103
  if(!empty($post_grid_meta_options['extra_query_parameter'])){
104
  $extra_query_parameter = $post_grid_meta_options['extra_query_parameter'];
158
  if(!empty($post_grid_meta_options['query_orderby_meta_key']))
159
  $query_orderby_meta_key = $post_grid_meta_options['query_orderby_meta_key'];
160
 
161
+
162
+
163
  /*
164
 
165
  if(!empty($post_grid_meta_options['meta_query'])){
167
  }
168
  else{
169
  $meta_query = array();
170
+ }
171
+
172
 
173
  if(!empty($post_grid_meta_options['meta_query_relation'])){
174
  $meta_query_relation = $post_grid_meta_options['meta_query_relation'];
269
 
270
 
271
 
 
 
272
  if(!empty($post_grid_meta_options['lazy_load_enable'])){
273
 
274
  $lazy_load_enable = $post_grid_meta_options['lazy_load_enable'];
285
  else{
286
  $lazy_load_image_src = '';
287
 
288
+ }
 
 
 
289
 
290
 
291
 
309
  }
310
 
311
 
 
 
312
  if(!empty($post_grid_meta_options['item_height']['style'])){
313
 
314
  $items_height_style = $post_grid_meta_options['item_height']['style'];
326
  else{
327
  $items_fixed_height = '220px';
328
 
329
+ }
 
 
330
 
331
 
332
 
400
 
401
  }
402
 
 
 
403
  if(!empty($post_grid_meta_options['thumb_linked'])){
404
 
405
  $thumb_linked = $post_grid_meta_options['thumb_linked'];
407
  else{
408
  $thumb_linked = 'yes';
409
 
410
+ }
 
 
411
 
412
 
413
 
450
  }
451
 
452
 
453
+
454
+ if(!empty($post_grid_meta_options['grid_type'])){
455
+
456
+ $grid_type = $post_grid_meta_options['grid_type'];
457
+ }
458
+ else{
459
+ $grid_type = 'grid';
460
+
461
+ }
462
+
463
+
464
+
465
  /*
466
 
467
  if(!empty($post_grid_meta_options['nav_top']['filter'])){
469
  $nav_top_filter = $post_grid_meta_options['nav_top']['filter'];
470
  }
471
  else{
472
+ $nav_top_filter = 'no';
473
 
474
  }
475
 
476
+ */
477
+
478
+
479
+
480
+
481
+
482
 
483
+
484
  /*
485
 
486
  if(!empty($post_grid_meta_options['nav_top']['filterable_post_per_page'])){
497
  $active_filter = $post_grid_meta_options['nav_top']['active_filter'];
498
  }
499
  else{
500
+ $active_filter = 'all';
501
 
502
  }
503
 
504
+
505
 
506
+ if(!empty($post_grid_meta_options['slider_navs'])){
507
 
508
+ $slider_navs = $post_grid_meta_options['slider_navs'];
509
+ }
510
+ else{
511
+ $slider_navs = 'true';
512
 
513
+ }
514
+
515
+ if(!empty($post_grid_meta_options['slider_navs_positon'])){
516
+
517
+ $slider_navs_positon = $post_grid_meta_options['slider_navs_positon'];
518
+ }
519
+ else{
520
+ $slider_navs_positon = 'middle';
521
+
522
+ }
523
+
524
+ if(!empty($post_grid_meta_options['slider_navs_style'])){
525
+
526
+ $slider_navs_style = $post_grid_meta_options['slider_navs_style'];
527
+ }
528
+ else{
529
+ $slider_navs_style = 'round';
530
+
531
+ }
532
+
533
+
534
+
535
+ if(!empty($post_grid_meta_options['slider_dots'])){
536
+
537
+ $slider_dots = $post_grid_meta_options['slider_dots'];
538
+ }
539
+ else{
540
+ $slider_dots = 'true';
541
+
542
+ }
543
+
544
+ if(!empty($post_grid_meta_options['slider_dots_style'])){
545
+
546
+ $slider_dots_style = $post_grid_meta_options['slider_dots_style'];
547
+ }
548
+ else{
549
+ $slider_dots_style = 'round';
550
+
551
+ }
552
+
553
+ if(!empty($post_grid_meta_options['slider_dots_bg_color'])){
554
+
555
+ $slider_dots_bg_color = $post_grid_meta_options['slider_dots_bg_color'];
556
+ }
557
+ else{
558
+ $slider_dots_bg_color = '#e6e6e6';
559
+
560
+ }
561
+
562
+
563
+ if(!empty($post_grid_meta_options['slider_auto_play'])){
564
+
565
+ $slider_auto_play = $post_grid_meta_options['slider_auto_play'];
566
+ }
567
+ else{
568
+ $slider_auto_play = 'true';
569
+
570
+ }
571
+
572
+
573
+ if(!empty($post_grid_meta_options['slider_rewind'])){
574
+
575
+ $slider_rewind = $post_grid_meta_options['slider_rewind'];
576
+ }
577
+ else{
578
+ $slider_rewind = 'false';
579
+
580
+ }
581
+
582
+
583
+ if(!empty($post_grid_meta_options['slider_loop'])){
584
+
585
+ $slider_loop = $post_grid_meta_options['slider_loop'];
586
+ }
587
+ else{
588
+ $slider_loop = 'true';
589
+
590
+ }
591
+
592
+
593
+ if(!empty($post_grid_meta_options['slider_center'])){
594
+
595
+ $slider_center = $post_grid_meta_options['slider_center'];
596
+ }
597
+ else{
598
+ $slider_center = 'false';
599
+
600
+ }
601
+
602
+
603
+ if(!empty($post_grid_meta_options['slider_autoplayHoverPause'])){
604
+
605
+ $slider_autoplayHoverPause = $post_grid_meta_options['slider_autoplayHoverPause'];
606
+ }
607
+ else{
608
+ $slider_autoplayHoverPause = 'true';
609
+
610
+ }
611
+
612
+
613
+ if(!empty($post_grid_meta_options['slider_dotsSpeed'])){
614
+
615
+ $slider_dotsSpeed = $post_grid_meta_options['slider_dotsSpeed'];
616
+ }
617
+ else{
618
+ $slider_dotsSpeed = '1000';
619
+
620
+ }
621
+
622
+
623
+ if(!empty($post_grid_meta_options['slider_navSpeed'])){
624
+
625
+ $slider_navSpeed = $post_grid_meta_options['slider_navSpeed'];
626
+ }
627
+ else{
628
+ $slider_navSpeed = '1000';
629
+
630
+ }
631
+
632
+ if(!empty($post_grid_meta_options['slider_mouseDrag'])){
633
+
634
+ $slider_mouseDrag = $post_grid_meta_options['slider_mouseDrag'];
635
+ }
636
+ else{
637
+ $slider_mouseDrag = 'true';
638
+
639
+ }
640
+
641
+ if(!empty($post_grid_meta_options['slider_touchDrag'])){
642
+
643
+ $slider_touchDrag = $post_grid_meta_options['slider_touchDrag'];
644
+ }
645
+ else{
646
+ $slider_touchDrag = 'true';
647
+
648
+ }
649
+
650
+
651
+
652
+ if(!empty($post_grid_meta_options['slider_column_desktop'])){
653
+
654
+ $slider_column_desktop = $post_grid_meta_options['slider_column_desktop'];
655
+ }
656
+ else{
657
+ $slider_column_desktop = 4;
658
+
659
+ }
660
+
661
+ if(!empty($post_grid_meta_options['slider_column_tablet'])){
662
+
663
+ $slider_column_tablet = $post_grid_meta_options['slider_column_tablet'];
664
+ }
665
+ else{
666
+ $slider_column_tablet = 2;
667
+
668
+ }
669
+
670
+ if(!empty($post_grid_meta_options['slider_column_mobile'])){
671
+
672
+ $slider_column_mobile = $post_grid_meta_options['slider_column_mobile'];
673
+ }
674
+ else{
675
+ $slider_column_mobile = 1;
676
+
677
+ }
678
 
679
+ */
680
+
681
+
682
+
683
+
684
  if(!empty($post_grid_meta_options['nav_top']['search'])){
685
 
686
  $nav_top_search = $post_grid_meta_options['nav_top']['search'];
687
  }
688
  else{
689
+ $nav_top_search = 'no';
690
 
691
+ }
 
 
692
 
693
 
694
  if(!empty($post_grid_meta_options['nav_bottom']['pagination_type'])){
696
  $pagination_type = $post_grid_meta_options['nav_bottom']['pagination_type'];
697
  }
698
  else{
699
+ $pagination_type = 'normal';
700
 
701
  }
702
 
795
  ?>
796
 
797
  </div>
798
+
799
+
800
  <div class="option-box">
801
  <p class="option-title"><?php _e('Post Status',post_grid_textdomain); ?></p>
802
  <p class="option-info"><?php _e('Display post from following post status, <br />Hint: Ctrl + click to select mulitple',post_grid_textdomain); ?></p>
873
  <input type="text" placeholder="meta_key" name="post_grid_meta_options[query_orderby_meta_key]" id="query_orderby_meta_key" value="<?php if(!empty($query_orderby_meta_key)) echo $query_orderby_meta_key; ?>" />
874
 
875
  </div>
876
+
877
+
878
 
879
  <div class="option-box">
880
  <p class="option-title"><?php _e('Search keyword',post_grid_textdomain); ?></p>
896
  <input type="radio" <?php if($grid_layout_name=='layout_grid') echo 'checked' ?> name="post_grid_meta_options[grid_layout][name]" value="layout_grid"><img title="N - N" src="<?php echo post_grid_plugin_url; ?>assets/admin/images/layout_grid.png" />
897
  </label>
898
 
899
+
900
+
901
  </div>
902
 
903
 
1170
  </div>
1171
 
1172
 
1173
+ <div class="option-box">
1174
+ <p class="option-title"><?php _e('Lazy Load Enable',post_grid_textdomain); ?></p>
1175
+ <p class="option-info"><?php _e('Gif animation when loading grid',post_grid_textdomain); ?></p>
1176
+
1177
+ <label><input <?php if($lazy_load_enable=='yes') echo 'checked'; ?> type="radio" name="post_grid_meta_options[lazy_load_enable]" value="yes" /><?php _e('Yes',post_grid_textdomain); ?></label><br />
1178
+ <label><input <?php if($lazy_load_enable=='no') echo 'checked'; ?> type="radio" name="post_grid_meta_options[lazy_load_enable]" value="no" /><?php _e('No',post_grid_textdomain); ?></label><br />
1179
+
1180
+
1181
+
1182
+
1183
+ <p class="option-info"><?php _e('Gif image source:',post_grid_textdomain); ?></p>
1184
+ <img class="lazy_load_image" onClick="lazy_load_image_src(this)" src="<?php echo post_grid_plugin_url; ?>assets/admin/gif/ajax-loader-1.gif" />
1185
+ <img class="lazy_load_image" onClick="lazy_load_image_src(this)" src="<?php echo post_grid_plugin_url; ?>assets/admin/gif/ajax-loader-2.gif" />
1186
+ <img class="lazy_load_image" onClick="lazy_load_image_src(this)" src="<?php echo post_grid_plugin_url; ?>assets/admin/gif/ajax-loader-3.gif" />
1187
+
1188
+ <br>
1189
+
1190
+ <input type="text" id="lazy_load_image_src" class="lazy_load_image_src" name="post_grid_meta_options[lazy_load_image_src]" value="<?php echo $lazy_load_image_src; ?>" /> <div onClick="clear_lazy_load_src()" class="button clear-lazy-load-src"> Clear</div>
1191
+
1192
+ <script>
1193
+
1194
+ function lazy_load_image_src(img){
1195
+
1196
+
1197
+ src =img.src;
1198
+
1199
+ document.getElementById('lazy_load_image_src').value = src;
1200
+
1201
+ }
1202
+
1203
+ function clear_lazy_load_src(){
1204
+
1205
+ document.getElementById('lazy_load_image_src').value = '';
1206
+
1207
+ }
1208
+
1209
+
1210
+ </script>
1211
+
1212
+
1213
+
1214
+
1215
+
1216
 
1217
+
1218
+ </div>
1219
+
1220
+
1221
+
1222
+
1223
 
1224
  <div class="option-box">
1225
  <p class="option-title"><?php _e('Grid Items Width',post_grid_textdomain); ?></p>
1261
 
1262
  </div>
1263
 
1264
+ <div class="option-box">
1265
+ <p class="option-title"><?php _e('Grid Items Height',post_grid_textdomain); ?></p>
1266
+ <p class="option-info"><?php _e('Grid item height',post_grid_textdomain); ?></p>
1267
+ <label><input <?php if($items_height_style=='auto_height') echo 'checked'; ?> type="radio" name="post_grid_meta_options[item_height][style]" value="auto_height" /><?php _e('Auto height',post_grid_textdomain); ?></label><br />
1268
+ <label><input <?php if($items_height_style=='fixed_height') echo 'checked'; ?> type="radio" name="post_grid_meta_options[item_height][style]" value="fixed_height" /><?php _e('Fixed height',post_grid_textdomain); ?></label><br />
1269
+ <label><input <?php if($items_height_style=='max_height') echo 'checked'; ?> type="radio" name="post_grid_meta_options[item_height][style]" value="max_height" /><?php _e('Max height',post_grid_textdomain); ?></label><br />
1270
+
1271
+ <div class="">
1272
+
1273
+ <input type="text" name="post_grid_meta_options[item_height][fixed_height]" value="<?php echo $items_fixed_height; ?>" />
1274
+ </div>
1275
 
1276
+ </div>
1277
+
1278
+
1279
+
1280
 
1281
 
1282
  <div class="option-box">
1355
 
1356
  </select>
1357
 
1358
+ <p class="option-title"><?php _e('Featured Image linked to post',post_grid_textdomain); ?></p>
1359
+ <select name="post_grid_meta_options[thumb_linked]" >
1360
+ <option value="yes" <?php if($thumb_linked=="yes")echo "selected"; ?>><?php _e('Yes',post_grid_textdomain); ?></option>
1361
+ <option value="no" <?php if($thumb_linked=="no")echo "selected"; ?>><?php _e('No',post_grid_textdomain); ?></option>
1362
+
1363
+
1364
+ </select>
1365
+
1366
+
1367
  <p class="option-title"><?php _e('Media source',post_grid_textdomain); ?></p>
1368
  <p class="option-info"><?php _e('Grid item media source <br />N.B. First gallery from content, First youtube video from content, First vimeo video from content, First MP3 from content, First SoundCloud from content will not retrive for "page"',post_grid_textdomain); ?></p>
1369
  <?php
1485
  </li>
1486
  <li style="display: none;" class="box5 tab-box ">
1487
 
1488
+
1489
+
1490
+ <div class="option-box">
1491
+ <p class="option-title"><?php _e('Grid Type',post_grid_textdomain); ?></p>
1492
+ <p class="option-info"><?php _e('Select grid type.',post_grid_textdomain); ?></p>
1493
+
1494
+ <div class="grid-canvas">
1495
+
1496
+
1497
+
1498
+ <label><input class="grid_type" <?php if($grid_type=='grid') echo 'checked'; ?> type="radio" name="post_grid_meta_options[grid_type]" value="grid" />Grid</label>
1499
+
1500
+
1501
+ <div class="grid-preview">
1502
+
1503
+ <div class="grid-type-grid grid-type" style="display:<?php if($grid_type=='grid') echo 'block'; else echo 'none'; ?>" >
1504
+
1505
+ <div class="nav-top-search">
1506
+ <input type="text" placeholder="Search" value="" />
1507
+
1508
+ </div>
1509
+
1510
+ <!--
1511
+ <div class="per-page-count">
1512
+ <select >
1513
+ <option >10</option>
1514
+ <option >20</option>
1515
+ <option >30</option>
1516
+ </select>
1517
+
1518
+ </div>
1519
+
1520
+ -->
1521
+
1522
+
1523
+
1524
+ <div class="items">
1525
+ <div class="item">
1526
+ <?php
1527
+
1528
+ include post_grid_plugin_dir.'skins/index.php';
1529
+ ?>
1530
+ </div>
1531
+
1532
+ <div class="item">
1533
+ <?php
1534
+
1535
+ include post_grid_plugin_dir.'skins/index.php';
1536
+ ?>
1537
+ </div>
1538
+
1539
+ <div class="item">
1540
+ <?php
1541
+
1542
+ include post_grid_plugin_dir.'skins/index.php';
1543
+ ?>
1544
+ </div>
1545
+ </div>
1546
+
1547
+
1548
+ <div class="pagination">
1549
+
1550
+ <div class="pagination-none pagination-type">
1551
+
1552
+ </div>
1553
+
1554
+ <div class="pagination-normal pagination-type">
1555
+ <div class="page">Next </div><div class="page">1</div><div class="page">2</div><div class="page">3</div><div class="page">Prev </div>
1556
+ </div>
1557
+
1558
+ <div class="pagination-jquery pagination-type">
1559
+ <div class="page"><i class="fa fa-angle-double-left"></i></div><div class="page">1</div><div class="page">2</div><div class="page">3</div><div class="page"> <i class="fa fa-angle-double-right"></i></div>
1560
+ </div>
1561
+
1562
+ <div class="pagination-loadmore pagination-type">
1563
+ <div class="page">Load more</div>
1564
+ </div>
1565
+
1566
+ <div class="pagination-infinite pagination-type">
1567
+ <div class="page">Infinite Scroll <i class="fa fa-arrow-down"></i></div>
1568
+ </div>
1569
+
1570
+ </div>
1571
+
1572
+ </div>
1573
+
1574
+ <div class="grid-type-filterable grid-type" style="display:<?php if($grid_type=='filterable') echo 'block'; else echo 'none'; ?>">
1575
+
1576
+ <div class="filter-menu yes">
1577
+ <div class="filter">All</div><div class="filter">Menu 1</div><div class="filter">Menu 2</div><div class="filter">Menu 3</div>
1578
+ </div>
1579
+
1580
+
1581
+ <div class="items">
1582
+
1583
+ <div class="item">
1584
+ <?php
1585
+
1586
+ include post_grid_plugin_dir.'skins/index.php';
1587
+ ?>
1588
+ </div>
1589
+
1590
+ <div class="item">
1591
+ <?php
1592
+
1593
+ include post_grid_plugin_dir.'skins/index.php';
1594
+ ?>
1595
+ </div>
1596
+
1597
+ <div class="item">
1598
+ <?php
1599
+
1600
+ include post_grid_plugin_dir.'skins/index.php';
1601
+ ?>
1602
+ </div>
1603
+
1604
+
1605
+
1606
+
1607
+
1608
+ </div>
1609
+
1610
+ <div class="pagination">
1611
+
1612
+ <div class="pagination-none pagination-type">
1613
+
1614
+ </div>
1615
+
1616
+ <div class="pagination-jquery pagination-type">
1617
+ <div class="page"><i class="fa fa-angle-double-left"></i></div><div class="page">1</div><div class="page">2</div><div class="page">3</div><div class="page"> <i class="fa fa-angle-double-right"></i></div>
1618
+ </div>
1619
+
1620
+
1621
+ </div>
1622
+
1623
+
1624
+ </div>
1625
+
1626
+ <div class="grid-type-slider grid-type" style="display:<?php if($grid_type=='slider') echo 'block'; else echo 'none'; ?>">
1627
+
1628
+ <div class="navs slider-navs <?php echo $slider_navs_positon; ?>" style="display:<?php if($slider_navs=='true') echo 'block'; else echo 'none'; ?>">
1629
+ <div class="nav next"><i class="fa fa-angle-double-right"></i></div>
1630
+ <div class="nav prev"><i class="fa fa-angle-double-left"></i> </div>
1631
+
1632
+ </div>
1633
+
1634
+ <div class="items">
1635
+ <div class="item">
1636
+ <?php
1637
+
1638
+ include post_grid_plugin_dir.'skins/index.php';
1639
+ ?>
1640
+ </div>
1641
+
1642
+ <div class="item">
1643
+ <?php
1644
+
1645
+ include post_grid_plugin_dir.'skins/index.php';
1646
+ ?>
1647
+ </div>
1648
+
1649
+ <div class="item">
1650
+ <?php
1651
+
1652
+ include post_grid_plugin_dir.'skins/index.php';
1653
+ ?>
1654
+ </div>
1655
+ </div>
1656
+
1657
+ <div class="dots slider-dots <?php echo $slider_dots_style; ?>" style="display:<?php if($slider_dots=='true') echo 'block'; else echo 'none'; ?>" >
1658
+ <div class="dot"></div><div class="dot"></div><div class="dot"></div>
1659
+ </div>
1660
+
1661
+
1662
+ </div>
1663
+
1664
+ </div>
1665
+
1666
+
1667
+
1668
+
1669
+
1670
+
1671
+
1672
+
1673
+
1674
+
1675
+
1676
+ </div>
1677
+
1678
+
1679
+
1680
+ </div>
1681
+
1682
+
1683
+
1684
+
1685
+
1686
+
1687
+
1688
  <div class="option-box">
1689
  <p class="option-title"><?php _e('Navigation',post_grid_textdomain); ?></p>
1690
+
1691
+
1692
 
1693
 
1694
+ <p class="option-info"><?php _e('Pagination.',post_grid_textdomain); ?></p>
1695
+ <label><input class="pagination_type" <?php if($pagination_type=='none') echo 'checked'; ?> type="radio" name="post_grid_meta_options[nav_bottom][pagination_type]" value="none" />None</label>
1696
+ <label><input class="pagination_type" <?php if($pagination_type=='normal') echo 'checked'; ?> type="radio" name="post_grid_meta_options[nav_bottom][pagination_type]" value="normal" />Normal Pagination</label>
1697
+
1698
+
1699
+
1700
+
1701
+
1702
+ <p class="option-info"><?php _e('Search.',post_grid_textdomain); ?></p>
1703
+ <label><input class="nav_top_search" <?php if($nav_top_search=='yes') echo 'checked'; ?> type="radio" name="post_grid_meta_options[nav_top][search]" value="yes" />Yes</label>
1704
+ <label><input class="nav_top_search" <?php if($nav_top_search=='no') echo 'checked'; ?> type="radio" name="post_grid_meta_options[nav_top][search]" value="no" />No</label>
1705
+
1706
 
 
 
 
 
 
 
 
 
1707
 
1708
 
1709
 
1710
 
 
 
 
 
 
 
1711
 
1712
 
1713
  </div>
1727
  <p class="option-info"><?php _e('Pagination Next text',post_grid_textdomain); ?></p>
1728
  <input type="text" name="post_grid_meta_options[pagination][next_text]" value="<?php echo $pagination_next_text; ?>" />
1729
 
1730
+ <p class="option-info"><?php _e('Pagination themes',post_grid_textdomain); ?></p>
 
 
 
 
 
 
 
 
 
1731
 
1732
  <label><input <?php if($pagination_theme=='lite') echo 'checked'; ?> type="radio" name="post_grid_meta_options[nav_bottom][pagination_theme]" value="lite" /><?php _e('Lite',post_grid_textdomain); ?></label>
1733
+ <label><input <?php if($pagination_theme=='dark') echo 'checked'; ?> type="radio" name="post_grid_meta_options[nav_bottom][pagination_theme]" value="dark" /><?php _e('Dark',post_grid_textdomain); ?></label>
1734
+
 
 
 
 
 
 
1735
 
1736
+ </div>
1737
 
1738
+
1739
 
1740
+
1741
 
1742
 
1743
  </li>
1764
 
1765
  <script>
1766
 
1767
+
1768
  var editor = CodeMirror.fromTextArea(document.getElementById("custom_js"), {
1769
  lineNumbers: true,
1770
  scrollbarStyle: "simple"
includes/post-meta-settings.php CHANGED
@@ -94,7 +94,16 @@ function post_grid_post_settings_input( $post ) {
94
  else{
95
  $custom_vimeo_id = '';
96
  }
97
-
 
 
 
 
 
 
 
 
 
98
 
99
  if(!empty($post_grid_post_settings['custom_mp3_url'])){
100
  $custom_mp3_url = $post_grid_post_settings['custom_mp3_url'];
@@ -218,6 +227,10 @@ function post_grid_post_settings_input( $post ) {
218
  <p class="option-info"><?php _e('Custom vimeo id',post_grid_textdomain); ?></p>
219
  <input placeholder="152379391" type="text" name="post_grid_post_settings[custom_vimeo_id]" value="<?php echo $custom_vimeo_id; ?>" />
220
 
 
 
 
 
221
  <p class="option-info"><?php _e('Custom mp3 URL',post_grid_textdomain); ?></p>
222
  <input placeholder="http://hello.com/file/song.mp3" type="text" name="post_grid_post_settings[custom_mp3_url]" value="<?php echo $custom_mp3_url; ?>" />
223
 
94
  else{
95
  $custom_vimeo_id = '';
96
  }
97
+
98
+
99
+ if(!empty($post_grid_post_settings['custom_dailymotion_id'])){
100
+ $custom_dailymotion_id = $post_grid_post_settings['custom_dailymotion_id'];
101
+ }
102
+ else{
103
+ $custom_dailymotion_id = '';
104
+ }
105
+
106
+
107
 
108
  if(!empty($post_grid_post_settings['custom_mp3_url'])){
109
  $custom_mp3_url = $post_grid_post_settings['custom_mp3_url'];
227
  <p class="option-info"><?php _e('Custom vimeo id',post_grid_textdomain); ?></p>
228
  <input placeholder="152379391" type="text" name="post_grid_post_settings[custom_vimeo_id]" value="<?php echo $custom_vimeo_id; ?>" />
229
 
230
+ <p class="option-info"><?php _e('Custom dailymotion id',post_grid_textdomain); ?></p>
231
+ <input placeholder="x4693dw" type="text" name="post_grid_post_settings[custom_dailymotion_id]" value="<?php echo $custom_dailymotion_id; ?>" />
232
+
233
+
234
  <p class="option-info"><?php _e('Custom mp3 URL',post_grid_textdomain); ?></p>
235
  <input placeholder="http://hello.com/file/song.mp3" type="text" name="post_grid_post_settings[custom_mp3_url]" value="<?php echo $custom_mp3_url; ?>" />
236
 
languages/en.mo CHANGED
Binary file
languages/en.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Post Grid\n"
4
- "POT-Creation-Date: 2016-04-21 01:18+0600\n"
5
- "PO-Revision-Date: 2016-04-21 01:19+0600\n"
6
  "Last-Translator: \n"
7
  "Language-Team: pickplugins <support@pickplugins.com>\n"
8
  "Language: en\n"
@@ -73,27 +73,31 @@ msgstr ""
73
  msgid "Start typing..."
74
  msgstr ""
75
 
76
- #: includes/class-settings.php:37
77
  msgid "Layout Editor"
78
  msgstr ""
79
 
80
- #: includes/class-settings.php:39
81
  msgid "Settings"
82
  msgstr ""
83
 
84
- #: includes/class-settings.php:41
85
  msgid "Help"
86
  msgstr ""
87
 
88
- #: includes/class-shortcodes.php:142 includes/functions.php:1164
 
 
 
 
89
  msgid "No Post found"
90
  msgstr ""
91
 
92
- #: includes/functions.php:76 includes/meta.php:595
93
  msgid "Shortcode"
94
  msgstr ""
95
 
96
- #: includes/functions.php:1107
97
  msgid "No more post"
98
  msgstr ""
99
 
@@ -170,12 +174,13 @@ msgstr ""
170
  msgid "If you like this plugin please share with your social share network."
171
  msgstr ""
172
 
173
- #: includes/menu/help.php:172 includes/menu/layout-editor.php:449
174
- #: includes/menu/settings.php:138
175
  msgid "Save Changes"
176
  msgstr ""
177
 
178
- #: includes/menu/layout-editor.php:44 includes/menu/settings.php:34
 
179
  msgid "Changes Saved."
180
  msgstr ""
181
 
@@ -183,42 +188,80 @@ msgstr ""
183
  msgid " - Layout Editor"
184
  msgstr ""
185
 
186
- #: includes/menu/layout-editor.php:294
187
  msgid "CSS:"
188
  msgstr ""
189
 
190
- #: includes/menu/layout-editor.php:311
191
  msgid "CSS Hover:"
192
  msgstr ""
193
 
194
- #: includes/menu/layout-editor.php:328
195
  msgid "Character limit:"
196
  msgstr ""
197
 
198
- #: includes/menu/layout-editor.php:347
199
  msgid "Meta Key:"
200
  msgstr ""
201
 
202
- #: includes/menu/layout-editor.php:368
203
  msgid "Wrapper:"
204
  msgstr ""
205
 
206
- #: includes/menu/layout-editor.php:370
207
  #, php-format
208
  msgid ""
209
  "use %s where you want to repalce the meta value.<pre>&lt;div&gt;Before %s - "
210
  "%s After&lt;/div&gt;</pre>"
211
  msgstr ""
212
 
213
- #: includes/menu/layout-editor.php:393
214
  msgid "HTML:"
215
  msgstr ""
216
 
217
- #: includes/menu/layout-editor.php:409
218
  msgid "Read more text:"
219
  msgstr ""
220
 
221
- #: includes/menu/settings.php:63 includes/post-meta-settings.php:135
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
222
  msgid "Options"
223
  msgstr ""
224
 
@@ -246,6 +289,26 @@ msgstr ""
246
  msgid "Export Layouts"
247
  msgstr ""
248
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
249
  #: includes/meta.php:16 includes/meta.php:18
250
  msgid "New Post Grid"
251
  msgstr ""
@@ -274,326 +337,429 @@ msgstr ""
274
  msgid "Post Grid Options"
275
  msgstr ""
276
 
277
- #: includes/meta.php:581
278
  msgid "Shortcodes"
279
  msgstr ""
280
 
281
- #: includes/meta.php:582
282
  msgid "Query Post"
283
  msgstr ""
284
 
285
- #: includes/meta.php:583
286
  msgid "Layout"
287
  msgstr ""
288
 
289
- #: includes/meta.php:584
290
  msgid "Layout settings"
291
  msgstr ""
292
 
293
- #: includes/meta.php:585
294
  msgid "Navigations"
295
  msgstr ""
296
 
297
- #: includes/meta.php:586
298
  msgid "Custom Scripts"
299
  msgstr ""
300
 
301
- #: includes/meta.php:596
302
  msgid ""
303
  "Copy this shortcode and paste on page or post where you want to display post "
304
  "grid. <br />Use PHP code to your themes file to display post grid."
305
  msgstr ""
306
 
307
- #: includes/meta.php:600
308
  msgid "PHP Code:"
309
  msgstr ""
310
 
311
- #: includes/meta.php:609
312
  msgid "Post Types"
313
  msgstr ""
314
 
315
- #: includes/meta.php:610
316
  msgid ""
317
  "Select post types you want to query post , can be select multiple. <br /"
318
  ">Hint: Ctrl + click to select mulitple"
319
  msgstr ""
320
 
321
- #: includes/meta.php:623
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
322
  msgid "Post Status"
323
  msgstr ""
324
 
325
- #: includes/meta.php:624
326
  msgid ""
327
  "Display post from following post status, <br />Hint: Ctrl + click to select "
328
  "mulitple"
329
  msgstr ""
330
 
331
- #: includes/meta.php:641
332
  msgid "Posts per page"
333
  msgstr ""
334
 
335
- #: includes/meta.php:642
336
  msgid ""
337
  "Number of post each pagination. -1 to display all. default is 10 if you left "
338
  "empty."
339
  msgstr ""
340
 
341
- #: includes/meta.php:648
342
  msgid "Offset"
343
  msgstr ""
344
 
345
- #: includes/meta.php:649
346
  msgid ""
347
  "Display posts from the n'th, if you set <b>Posts per page</b> to -1 will not "
348
  "work offset."
349
  msgstr ""
350
 
351
- #: includes/meta.php:656
352
  msgid "Exclude by post ID"
353
  msgstr ""
354
 
355
- #: includes/meta.php:657
356
  msgid "you can exclude post by ID, comma(,) separated"
357
  msgstr ""
358
 
359
- #: includes/meta.php:664
360
  msgid "Post query order"
361
  msgstr ""
362
 
363
- #: includes/meta.php:665
364
  msgid "Query order ascending or descending"
365
  msgstr ""
366
 
367
- #: includes/meta.php:676
368
  msgid "Post query orderby"
369
  msgstr ""
370
 
371
- #: includes/meta.php:677
372
  msgid "Query orderby parameter, can select multiple"
373
  msgstr ""
374
 
375
- #: includes/meta.php:680
376
  msgid "ID"
377
  msgstr ""
378
 
379
- #: includes/meta.php:681
380
  msgid "Date"
381
  msgstr ""
382
 
383
- #: includes/meta.php:682
384
  msgid "Random"
385
  msgstr ""
386
 
387
- #: includes/meta.php:683
388
  msgid "Comment Count"
389
  msgstr ""
390
 
391
- #: includes/meta.php:684
392
  msgid "Author"
393
  msgstr ""
394
 
395
- #: includes/meta.php:685
396
  msgid "Title"
397
  msgstr ""
398
 
399
- #: includes/meta.php:686
400
  msgid "Name"
401
  msgstr ""
402
 
403
- #: includes/meta.php:687
404
  msgid "Type"
405
  msgstr ""
406
 
407
- #: includes/meta.php:688
408
  msgid "Menu order"
409
  msgstr ""
410
 
411
- #: includes/meta.php:689
412
  msgid "Meta Value"
413
  msgstr ""
414
 
415
- #: includes/meta.php:690
416
  msgid "Meta Value(number)"
417
  msgstr ""
418
 
419
- #: includes/meta.php:701
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
420
  msgid "Search keyword"
421
  msgstr ""
422
 
423
- #: includes/meta.php:702
424
  msgid ""
425
  "Query post by search keyword, please follow the reference https://codex."
426
  "wordpress.org/Class_Reference/WP_Query#Search_Parameter"
427
  msgstr ""
428
 
429
- #: includes/meta.php:712
430
  msgid "Grid Layout"
431
  msgstr ""
432
 
433
- #: includes/meta.php:713
434
  msgid "Fancy style layouts."
435
  msgstr ""
436
 
437
- #: includes/meta.php:725
 
 
 
 
438
  msgid "Content Layout"
439
  msgstr ""
440
 
441
- #: includes/meta.php:726
442
  msgid "Choose your Content layout"
443
  msgstr ""
444
 
445
- #: includes/meta.php:910
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
446
  msgid "Skins"
447
  msgstr ""
448
 
449
- #: includes/meta.php:911
450
  msgid "Select grid Skins"
451
  msgstr ""
452
 
453
- #: includes/meta.php:983
454
  msgid "Masonry enable"
455
  msgstr ""
456
 
457
- #: includes/meta.php:984
458
  msgid "Enable masonry style grid"
459
  msgstr ""
460
 
461
- #: includes/meta.php:986
462
- msgid "Yes"
463
  msgstr ""
464
 
465
- #: includes/meta.php:987
466
- msgid "No"
 
 
 
 
467
  msgstr ""
468
 
469
- #: includes/meta.php:995
470
  msgid "Grid Items Width"
471
  msgstr ""
472
 
473
- #: includes/meta.php:996
474
  msgid "Grid item width for different device"
475
  msgstr ""
476
 
477
- #: includes/meta.php:1022
478
  msgid "Grid Items Background color"
479
  msgstr ""
480
 
481
- #: includes/meta.php:1023
482
  msgid "Grid item Background color"
483
  msgstr ""
484
 
485
- #: includes/meta.php:1026
486
  msgid "Fixed"
487
  msgstr ""
488
 
489
- #: includes/meta.php:1029
490
  msgid "Fixed Background color:"
491
  msgstr ""
492
 
493
- #: includes/meta.php:1038
494
- msgid "Grid Items Margin"
495
  msgstr ""
496
 
497
- #: includes/meta.php:1039
498
- msgid "Grid item margin"
499
  msgstr ""
500
 
501
- #: includes/meta.php:1051
502
- msgid "Media Height"
503
  msgstr ""
504
 
505
- #: includes/meta.php:1052
506
- msgid "Grid item media height"
507
  msgstr ""
508
 
509
- #: includes/meta.php:1053
510
- msgid "Auto height"
511
  msgstr ""
512
 
513
- #: includes/meta.php:1054
514
- msgid "Fixed height"
515
  msgstr ""
516
 
517
- #: includes/meta.php:1055
518
- msgid "Max height"
 
 
 
 
 
 
 
 
519
  msgstr ""
520
 
521
- #: includes/meta.php:1078
522
  msgid "Featured Image size"
523
  msgstr ""
524
 
525
- #: includes/meta.php:1114
 
 
 
 
526
  msgid "Media source"
527
  msgstr ""
528
 
529
- #: includes/meta.php:1115
530
  msgid ""
531
  "Grid item media source <br />N.B. First gallery from content, First youtube "
532
  "video from content, First vimeo video from content, First MP3 from content, "
533
  "First SoundCloud from content will not retrive for \"page\""
534
  msgstr ""
535
 
536
- #: includes/meta.php:1180
537
  msgid "Grid Container options"
538
  msgstr ""
539
 
540
- #: includes/meta.php:1181
541
  msgid "Grid container "
542
  msgstr ""
543
 
544
- #: includes/meta.php:1236
545
  msgid "Navigation"
546
  msgstr ""
547
 
548
- #: includes/meta.php:1237
549
  msgid "Customize navigation layout."
550
  msgstr ""
551
 
552
- #: includes/meta.php:1267
553
  msgid "Pagination"
554
  msgstr ""
555
 
556
- #: includes/meta.php:1269
557
  msgid "Max number of pagination, keep 0 (zero) for auto."
558
  msgstr ""
559
 
560
- #: includes/meta.php:1273
561
  msgid "Pagination Previous text"
562
  msgstr ""
563
 
564
- #: includes/meta.php:1277
565
  msgid "Pagination Next text"
566
  msgstr ""
567
 
568
- #: includes/meta.php:1288
569
  msgid "Pagination themes"
570
  msgstr ""
571
 
572
- #: includes/meta.php:1289
573
  msgid "Themes for pagination"
574
  msgstr ""
575
 
576
- #: includes/meta.php:1291
577
  msgid "Lite"
578
  msgstr ""
579
 
580
- #: includes/meta.php:1292
581
  msgid "Dark"
582
  msgstr ""
583
 
584
- #: includes/meta.php:1310
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
585
  msgid "Custom Js"
586
  msgstr ""
587
 
588
- #: includes/meta.php:1311
589
  msgid "Add your custom js"
590
  msgstr ""
591
 
592
- #: includes/meta.php:1319
593
  msgid "Custom CSS"
594
  msgstr ""
595
 
596
- #: includes/meta.php:1320
597
  msgid "Add your custom CSS"
598
  msgstr ""
599
 
@@ -601,57 +767,61 @@ msgstr ""
601
  msgid "Post Grid - Post Options"
602
  msgstr ""
603
 
604
- #: includes/post-meta-settings.php:138
605
  msgid "Font Awesome"
606
  msgstr ""
607
 
608
- #: includes/post-meta-settings.php:139
609
  msgid "Custom Media"
610
  msgstr ""
611
 
612
- #: includes/post-meta-settings.php:148
613
  msgid "Post Skin"
614
  msgstr ""
615
 
616
- #: includes/post-meta-settings.php:149
617
  msgid "Default skin for this post only"
618
  msgstr ""
619
 
620
- #: includes/post-meta-settings.php:182
621
  msgid "Custom thumbnail source"
622
  msgstr ""
623
 
624
- #: includes/post-meta-settings.php:197
625
  msgid "Font awesome icon ID"
626
  msgstr ""
627
 
628
- #: includes/post-meta-settings.php:198
629
  msgid ""
630
  "Font awesome icon id, ex: <b>fa-share-alt</b> , please check font awesome "
631
  "incon here <a href=\"http://fortawesome.github.io/Font-Awesome/icons/"
632
  "\">http://fortawesome.github.io/Font-Awesome/icons/</a>"
633
  msgstr ""
634
 
635
- #: includes/post-meta-settings.php:201
636
  msgid "Icon Color"
637
  msgstr ""
638
 
639
- #: includes/post-meta-settings.php:203
640
  msgid "Icon size"
641
  msgstr ""
642
 
643
- #: includes/post-meta-settings.php:214
644
  msgid "Custom youtube id"
645
  msgstr ""
646
 
647
- #: includes/post-meta-settings.php:218
648
  msgid "Custom vimeo id"
649
  msgstr ""
650
 
651
- #: includes/post-meta-settings.php:221
 
 
 
 
652
  msgid "Custom mp3 URL"
653
  msgstr ""
654
 
655
- #: includes/post-meta-settings.php:224
656
  msgid "Custom soundcloud ID"
657
  msgstr ""
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Post Grid\n"
4
+ "POT-Creation-Date: 2016-04-28 20:01+0600\n"
5
+ "PO-Revision-Date: 2016-04-28 20:01+0600\n"
6
  "Last-Translator: \n"
7
  "Language-Team: pickplugins <support@pickplugins.com>\n"
8
  "Language: en\n"
73
  msgid "Start typing..."
74
  msgstr ""
75
 
76
+ #: includes/class-settings.php:39
77
  msgid "Layout Editor"
78
  msgstr ""
79
 
80
+ #: includes/class-settings.php:41
81
  msgid "Settings"
82
  msgstr ""
83
 
84
+ #: includes/class-settings.php:43
85
  msgid "Help"
86
  msgstr ""
87
 
88
+ #: includes/class-settings.php:45
89
+ msgid "License"
90
+ msgstr ""
91
+
92
+ #: includes/class-shortcodes.php:162 includes/functions.php:1670
93
  msgid "No Post found"
94
  msgstr ""
95
 
96
+ #: includes/functions.php:76 includes/meta.php:550
97
  msgid "Shortcode"
98
  msgstr ""
99
 
100
+ #: includes/functions.php:1613
101
  msgid "No more post"
102
  msgstr ""
103
 
174
  msgid "If you like this plugin please share with your social share network."
175
  msgstr ""
176
 
177
+ #: includes/menu/help.php:172 includes/menu/layout-editor.php:464
178
+ #: includes/menu/settings.php:174
179
  msgid "Save Changes"
180
  msgstr ""
181
 
182
+ #: includes/menu/layout-editor.php:44 includes/menu/license.php:26
183
+ #: includes/menu/settings.php:34
184
  msgid "Changes Saved."
185
  msgstr ""
186
 
188
  msgid " - Layout Editor"
189
  msgstr ""
190
 
191
+ #: includes/menu/layout-editor.php:309
192
  msgid "CSS:"
193
  msgstr ""
194
 
195
+ #: includes/menu/layout-editor.php:326
196
  msgid "CSS Hover:"
197
  msgstr ""
198
 
199
+ #: includes/menu/layout-editor.php:343
200
  msgid "Character limit:"
201
  msgstr ""
202
 
203
+ #: includes/menu/layout-editor.php:362
204
  msgid "Meta Key:"
205
  msgstr ""
206
 
207
+ #: includes/menu/layout-editor.php:383
208
  msgid "Wrapper:"
209
  msgstr ""
210
 
211
+ #: includes/menu/layout-editor.php:385
212
  #, php-format
213
  msgid ""
214
  "use %s where you want to repalce the meta value.<pre>&lt;div&gt;Before %s - "
215
  "%s After&lt;/div&gt;</pre>"
216
  msgstr ""
217
 
218
+ #: includes/menu/layout-editor.php:408
219
  msgid "HTML:"
220
  msgstr ""
221
 
222
+ #: includes/menu/layout-editor.php:424
223
  msgid "Read more text:"
224
  msgstr ""
225
 
226
+ #: includes/menu/license.php:42
227
+ msgid " License"
228
+ msgstr ""
229
+
230
+ #: includes/menu/license.php:53
231
+ msgid "Activation"
232
+ msgstr ""
233
+
234
+ #: includes/menu/license.php:60
235
+ msgid "Activate license"
236
+ msgstr ""
237
+
238
+ #: includes/menu/license.php:178
239
+ msgid "Status:"
240
+ msgstr ""
241
+
242
+ #: includes/menu/license.php:183
243
+ msgid ""
244
+ "Enter the license key for this product to activate it. You were given a "
245
+ "license key when you purchased this item. please visit"
246
+ msgstr ""
247
+
248
+ #: includes/menu/license.php:183
249
+ msgid "after logged-in you will see license key for your purchased product."
250
+ msgstr ""
251
+
252
+ #: includes/menu/license.php:190
253
+ msgid "License Key"
254
+ msgstr ""
255
+
256
+ #: includes/menu/license.php:219
257
+ msgid "Activate"
258
+ msgstr ""
259
+
260
+ #: includes/menu/license.php:220
261
+ msgid "Deactivate"
262
+ msgstr ""
263
+
264
+ #: includes/menu/settings.php:63 includes/post-meta-settings.php:144
265
  msgid "Options"
266
  msgstr ""
267
 
289
  msgid "Export Layouts"
290
  msgstr ""
291
 
292
+ #: includes/menu/settings.php:122
293
+ msgid "Import Content Layouts"
294
+ msgstr ""
295
+
296
+ #: includes/menu/settings.php:123
297
+ msgid "you can import content layouts here. please put serialized data."
298
+ msgstr ""
299
+
300
+ #: includes/menu/settings.php:125
301
+ msgid "Import Layouts"
302
+ msgstr ""
303
+
304
+ #: includes/menu/settings.php:136
305
+ msgid "Remove Content Layouts"
306
+ msgstr ""
307
+
308
+ #: includes/menu/settings.php:137
309
+ msgid "you can remove content layouts here."
310
+ msgstr ""
311
+
312
  #: includes/meta.php:16 includes/meta.php:18
313
  msgid "New Post Grid"
314
  msgstr ""
337
  msgid "Post Grid Options"
338
  msgstr ""
339
 
340
+ #: includes/meta.php:536
341
  msgid "Shortcodes"
342
  msgstr ""
343
 
344
+ #: includes/meta.php:537
345
  msgid "Query Post"
346
  msgstr ""
347
 
348
+ #: includes/meta.php:538
349
  msgid "Layout"
350
  msgstr ""
351
 
352
+ #: includes/meta.php:539
353
  msgid "Layout settings"
354
  msgstr ""
355
 
356
+ #: includes/meta.php:540
357
  msgid "Navigations"
358
  msgstr ""
359
 
360
+ #: includes/meta.php:541
361
  msgid "Custom Scripts"
362
  msgstr ""
363
 
364
+ #: includes/meta.php:551
365
  msgid ""
366
  "Copy this shortcode and paste on page or post where you want to display post "
367
  "grid. <br />Use PHP code to your themes file to display post grid."
368
  msgstr ""
369
 
370
+ #: includes/meta.php:555
371
  msgid "PHP Code:"
372
  msgstr ""
373
 
374
+ #: includes/meta.php:564
375
  msgid "Post Types"
376
  msgstr ""
377
 
378
+ #: includes/meta.php:565
379
  msgid ""
380
  "Select post types you want to query post , can be select multiple. <br /"
381
  ">Hint: Ctrl + click to select mulitple"
382
  msgstr ""
383
 
384
+ #: includes/meta.php:577
385
+ msgid "Taxonomy & Terms (Categories)"
386
+ msgstr ""
387
+
388
+ #: includes/meta.php:578
389
+ msgid "Select categories. <br />Hint: Ctrl + click to select mulitple"
390
+ msgstr ""
391
+
392
+ #: includes/meta.php:591
393
+ msgid "Terms relation"
394
+ msgstr ""
395
+
396
+ #: includes/meta.php:600
397
+ msgid "More Query Parameter"
398
+ msgstr ""
399
+
400
+ #: includes/meta.php:601
401
+ msgid ""
402
+ "More query parameter, ex: <b>year=2016&monthnum=02</b> <br /> you can "
403
+ "provide array like this, <b>post__in=96,97</b> keep the last comma to avoid "
404
+ "error. "
405
+ msgstr ""
406
+
407
+ #: includes/meta.php:606
408
  msgid "Post Status"
409
  msgstr ""
410
 
411
+ #: includes/meta.php:607
412
  msgid ""
413
  "Display post from following post status, <br />Hint: Ctrl + click to select "
414
  "mulitple"
415
  msgstr ""
416
 
417
+ #: includes/meta.php:624
418
  msgid "Posts per page"
419
  msgstr ""
420
 
421
+ #: includes/meta.php:625
422
  msgid ""
423
  "Number of post each pagination. -1 to display all. default is 10 if you left "
424
  "empty."
425
  msgstr ""
426
 
427
+ #: includes/meta.php:631
428
  msgid "Offset"
429
  msgstr ""
430
 
431
+ #: includes/meta.php:632
432
  msgid ""
433
  "Display posts from the n'th, if you set <b>Posts per page</b> to -1 will not "
434
  "work offset."
435
  msgstr ""
436
 
437
+ #: includes/meta.php:639
438
  msgid "Exclude by post ID"
439
  msgstr ""
440
 
441
+ #: includes/meta.php:640
442
  msgid "you can exclude post by ID, comma(,) separated"
443
  msgstr ""
444
 
445
+ #: includes/meta.php:647
446
  msgid "Post query order"
447
  msgstr ""
448
 
449
+ #: includes/meta.php:648
450
  msgid "Query order ascending or descending"
451
  msgstr ""
452
 
453
+ #: includes/meta.php:659
454
  msgid "Post query orderby"
455
  msgstr ""
456
 
457
+ #: includes/meta.php:660
458
  msgid "Query orderby parameter, can select multiple"
459
  msgstr ""
460
 
461
+ #: includes/meta.php:663
462
  msgid "ID"
463
  msgstr ""
464
 
465
+ #: includes/meta.php:664
466
  msgid "Date"
467
  msgstr ""
468
 
469
+ #: includes/meta.php:665 includes/meta.php:1132
470
  msgid "Random"
471
  msgstr ""
472
 
473
+ #: includes/meta.php:666
474
  msgid "Comment Count"
475
  msgstr ""
476
 
477
+ #: includes/meta.php:667
478
  msgid "Author"
479
  msgstr ""
480
 
481
+ #: includes/meta.php:668
482
  msgid "Title"
483
  msgstr ""
484
 
485
+ #: includes/meta.php:669
486
  msgid "Name"
487
  msgstr ""
488
 
489
+ #: includes/meta.php:670
490
  msgid "Type"
491
  msgstr ""
492
 
493
+ #: includes/meta.php:671
494
  msgid "Menu order"
495
  msgstr ""
496
 
497
+ #: includes/meta.php:672
498
  msgid "Meta Value"
499
  msgstr ""
500
 
501
+ #: includes/meta.php:673
502
  msgid "Meta Value(number)"
503
  msgstr ""
504
 
505
+ #: includes/meta.php:683
506
+ msgid "Meta query"
507
+ msgstr ""
508
+
509
+ #: includes/meta.php:684
510
+ msgid ""
511
+ "query post by meta key & value, Reference: https://codex.wordpress.org/"
512
+ "Class_Reference/WP_Query#Custom_Field_Parameters"
513
+ msgstr ""
514
+
515
+ #: includes/meta.php:692
516
+ msgid "Add more"
517
+ msgstr ""
518
+
519
+ #: includes/meta.php:694
520
+ msgid "Meta query relation"
521
+ msgstr ""
522
+
523
+ #: includes/meta.php:695
524
+ msgid "OR"
525
+ msgstr ""
526
+
527
+ #: includes/meta.php:696
528
+ msgid "AND"
529
+ msgstr ""
530
+
531
+ #: includes/meta.php:711
532
  msgid "Search keyword"
533
  msgstr ""
534
 
535
+ #: includes/meta.php:712
536
  msgid ""
537
  "Query post by search keyword, please follow the reference https://codex."
538
  "wordpress.org/Class_Reference/WP_Query#Search_Parameter"
539
  msgstr ""
540
 
541
+ #: includes/meta.php:722
542
  msgid "Grid Layout"
543
  msgstr ""
544
 
545
+ #: includes/meta.php:723
546
  msgid "Fancy style layouts."
547
  msgstr ""
548
 
549
+ #: includes/meta.php:767
550
+ msgid "Layout column multiple, for layout (1 - N, N - 1, 1 - N - 1 )"
551
+ msgstr ""
552
+
553
+ #: includes/meta.php:775
554
  msgid "Content Layout"
555
  msgstr ""
556
 
557
+ #: includes/meta.php:776
558
  msgid "Choose your Content layout"
559
  msgstr ""
560
 
561
+ #: includes/meta.php:959
562
+ msgid "Enable Multi Skins"
563
+ msgstr ""
564
+
565
+ #: includes/meta.php:960
566
+ msgid "To display multi skin on same grid."
567
+ msgstr ""
568
+
569
+ #: includes/meta.php:962 includes/meta.php:1042 includes/meta.php:1052
570
+ #: includes/meta.php:1235
571
+ msgid "Yes"
572
+ msgstr ""
573
+
574
+ #: includes/meta.php:963 includes/meta.php:1043 includes/meta.php:1053
575
+ #: includes/meta.php:1236
576
+ msgid "No"
577
+ msgstr ""
578
+
579
+ #: includes/meta.php:966
580
  msgid "Skins"
581
  msgstr ""
582
 
583
+ #: includes/meta.php:967
584
  msgid "Select grid Skins"
585
  msgstr ""
586
 
587
+ #: includes/meta.php:1039
588
  msgid "Masonry enable"
589
  msgstr ""
590
 
591
+ #: includes/meta.php:1040
592
  msgid "Enable masonry style grid"
593
  msgstr ""
594
 
595
+ #: includes/meta.php:1049
596
+ msgid "Lazy Load Enable"
597
  msgstr ""
598
 
599
+ #: includes/meta.php:1050
600
+ msgid "Gif animation when loading grid"
601
+ msgstr ""
602
+
603
+ #: includes/meta.php:1058
604
+ msgid "Gif image source:"
605
  msgstr ""
606
 
607
+ #: includes/meta.php:1100
608
  msgid "Grid Items Width"
609
  msgstr ""
610
 
611
+ #: includes/meta.php:1101
612
  msgid "Grid item width for different device"
613
  msgstr ""
614
 
615
+ #: includes/meta.php:1127
616
  msgid "Grid Items Background color"
617
  msgstr ""
618
 
619
+ #: includes/meta.php:1128
620
  msgid "Grid item Background color"
621
  msgstr ""
622
 
623
+ #: includes/meta.php:1131
624
  msgid "Fixed"
625
  msgstr ""
626
 
627
+ #: includes/meta.php:1134
628
  msgid "Fixed Background color:"
629
  msgstr ""
630
 
631
+ #: includes/meta.php:1140
632
+ msgid "Grid Items Height"
633
  msgstr ""
634
 
635
+ #: includes/meta.php:1141
636
+ msgid "Grid item height"
637
  msgstr ""
638
 
639
+ #: includes/meta.php:1142 includes/meta.php:1173
640
+ msgid "Auto height"
641
  msgstr ""
642
 
643
+ #: includes/meta.php:1143 includes/meta.php:1174
644
+ msgid "Fixed height"
645
  msgstr ""
646
 
647
+ #: includes/meta.php:1144 includes/meta.php:1175
648
+ msgid "Max height"
649
  msgstr ""
650
 
651
+ #: includes/meta.php:1158
652
+ msgid "Grid Items Margin"
653
  msgstr ""
654
 
655
+ #: includes/meta.php:1159
656
+ msgid "Grid item margin"
657
+ msgstr ""
658
+
659
+ #: includes/meta.php:1171
660
+ msgid "Media Height"
661
+ msgstr ""
662
+
663
+ #: includes/meta.php:1172
664
+ msgid "Grid item media height"
665
  msgstr ""
666
 
667
+ #: includes/meta.php:1198
668
  msgid "Featured Image size"
669
  msgstr ""
670
 
671
+ #: includes/meta.php:1233
672
+ msgid "Featured Image linked to post"
673
+ msgstr ""
674
+
675
+ #: includes/meta.php:1242
676
  msgid "Media source"
677
  msgstr ""
678
 
679
+ #: includes/meta.php:1243
680
  msgid ""
681
  "Grid item media source <br />N.B. First gallery from content, First youtube "
682
  "video from content, First vimeo video from content, First MP3 from content, "
683
  "First SoundCloud from content will not retrive for \"page\""
684
  msgstr ""
685
 
686
+ #: includes/meta.php:1308
687
  msgid "Grid Container options"
688
  msgstr ""
689
 
690
+ #: includes/meta.php:1309
691
  msgid "Grid container "
692
  msgstr ""
693
 
694
+ #: includes/meta.php:1364
695
  msgid "Navigation"
696
  msgstr ""
697
 
698
+ #: includes/meta.php:1365
699
  msgid "Customize navigation layout."
700
  msgstr ""
701
 
702
+ #: includes/meta.php:1404
703
  msgid "Pagination"
704
  msgstr ""
705
 
706
+ #: includes/meta.php:1406
707
  msgid "Max number of pagination, keep 0 (zero) for auto."
708
  msgstr ""
709
 
710
+ #: includes/meta.php:1410
711
  msgid "Pagination Previous text"
712
  msgstr ""
713
 
714
+ #: includes/meta.php:1414
715
  msgid "Pagination Next text"
716
  msgstr ""
717
 
718
+ #: includes/meta.php:1425
719
  msgid "Pagination themes"
720
  msgstr ""
721
 
722
+ #: includes/meta.php:1426
723
  msgid "Themes for pagination"
724
  msgstr ""
725
 
726
+ #: includes/meta.php:1428
727
  msgid "Lite"
728
  msgstr ""
729
 
730
+ #: includes/meta.php:1429
731
  msgid "Dark"
732
  msgstr ""
733
 
734
+ #: includes/meta.php:1435
735
+ msgid "Filterable post per page"
736
+ msgstr ""
737
+
738
+ #: includes/meta.php:1436
739
+ msgid "total number of items per page"
740
+ msgstr ""
741
+
742
+ #: includes/meta.php:1446
743
+ msgid "Default active filter"
744
+ msgstr ""
745
+
746
+ #: includes/meta.php:1447
747
+ msgid "Default active filter for filterable grid"
748
+ msgstr ""
749
+
750
+ #: includes/meta.php:1497
751
  msgid "Custom Js"
752
  msgstr ""
753
 
754
+ #: includes/meta.php:1498
755
  msgid "Add your custom js"
756
  msgstr ""
757
 
758
+ #: includes/meta.php:1506
759
  msgid "Custom CSS"
760
  msgstr ""
761
 
762
+ #: includes/meta.php:1507
763
  msgid "Add your custom CSS"
764
  msgstr ""
765
 
767
  msgid "Post Grid - Post Options"
768
  msgstr ""
769
 
770
+ #: includes/post-meta-settings.php:147
771
  msgid "Font Awesome"
772
  msgstr ""
773
 
774
+ #: includes/post-meta-settings.php:148
775
  msgid "Custom Media"
776
  msgstr ""
777
 
778
+ #: includes/post-meta-settings.php:157
779
  msgid "Post Skin"
780
  msgstr ""
781
 
782
+ #: includes/post-meta-settings.php:158
783
  msgid "Default skin for this post only"
784
  msgstr ""
785
 
786
+ #: includes/post-meta-settings.php:191
787
  msgid "Custom thumbnail source"
788
  msgstr ""
789
 
790
+ #: includes/post-meta-settings.php:206
791
  msgid "Font awesome icon ID"
792
  msgstr ""
793
 
794
+ #: includes/post-meta-settings.php:207
795
  msgid ""
796
  "Font awesome icon id, ex: <b>fa-share-alt</b> , please check font awesome "
797
  "incon here <a href=\"http://fortawesome.github.io/Font-Awesome/icons/"
798
  "\">http://fortawesome.github.io/Font-Awesome/icons/</a>"
799
  msgstr ""
800
 
801
+ #: includes/post-meta-settings.php:210
802
  msgid "Icon Color"
803
  msgstr ""
804
 
805
+ #: includes/post-meta-settings.php:212
806
  msgid "Icon size"
807
  msgstr ""
808
 
809
+ #: includes/post-meta-settings.php:223
810
  msgid "Custom youtube id"
811
  msgstr ""
812
 
813
+ #: includes/post-meta-settings.php:227
814
  msgid "Custom vimeo id"
815
  msgstr ""
816
 
817
+ #: includes/post-meta-settings.php:230
818
+ msgid "Custom dailymotion id"
819
+ msgstr ""
820
+
821
+ #: includes/post-meta-settings.php:234
822
  msgid "Custom mp3 URL"
823
  msgstr ""
824
 
825
+ #: includes/post-meta-settings.php:237
826
  msgid "Custom soundcloud ID"
827
  msgstr ""
languages/post_grid-bn_BD.mo DELETED
Binary file
languages/post_grid-it_IT.mo ADDED
Binary file
languages/{post_grid-bn_BD.po → post_grid-it_IT.po} RENAMED
@@ -1,102 +1,94 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: \n"
4
- "POT-Creation-Date: 2016-04-20 01:11+0600\n"
5
- "PO-Revision-Date: 2016-04-21 01:18+0600\n"
6
  "Last-Translator: \n"
7
- "Language-Team: \n"
8
- "Language: bn_BD\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.8.7\n"
13
- "X-Poedit-Basepath: .\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
 
 
 
15
 
16
- #: grid-items/layer-content.php:119 grid-items/layer-content.php:132
17
  msgid "Read more."
18
- msgstr "বিস্তারিত পড়ুন"
19
 
20
- #: grid-items/layer-content.php:162
21
  #, php-format
22
  msgid "View all posts in %s"
23
  msgstr ""
24
 
25
- #: grid-items/layer-content.php:188
26
  msgid "No Comments"
27
  msgstr ""
28
 
29
- #: grid-items/layer-content.php:190
30
  msgid " Comments"
31
  msgstr ""
32
 
33
- #: grid-items/layer-content.php:192
34
  msgid "1 Comment"
35
  msgstr ""
36
 
37
- #: grid-items/layer-content.php:202
38
  msgid "Comments"
39
  msgstr ""
40
 
41
- #: grid-items/layer-content.php:215
42
  msgid "No comments yet"
43
  msgstr ""
44
 
45
- #: grid-items/layer-content.php:238
46
  msgid "No More comments"
47
  msgstr ""
48
 
49
- #: grid-items/layer-content.php:431
50
- msgid "Rated"
51
- msgstr ""
52
-
53
- #: grid-items/layer-content.php:458
54
- msgid "out of 5"
55
- msgstr ""
56
-
57
- #: grid-items/layer-content.php:604
58
  msgid "Add to Cart"
59
  msgstr ""
60
 
61
- #: grid-items/nav-bottom.php:155
62
  msgid "Load more"
 
 
 
 
63
  msgstr ""
64
 
65
- #: grid-items/nav-top.php:25
66
  msgid "All"
67
- msgstr "সব"
68
-
69
- #: grid-items/nav-top.php:141
70
- msgid "Start typing..."
71
  msgstr ""
72
 
73
- #: includes/class-settings.php:39
74
  msgid "Layout Editor"
75
  msgstr ""
76
 
77
- #: includes/class-settings.php:41
78
  msgid "Settings"
79
  msgstr ""
80
 
81
- #: includes/class-settings.php:43
82
  msgid "Help"
83
  msgstr ""
84
 
85
- #: includes/class-settings.php:45
86
- msgid "License"
87
- msgstr "লাইসেন্স"
88
-
89
- #: includes/class-shortcodes.php:162 includes/functions.php:1609
90
  msgid "No Post found"
91
- msgstr ""
92
 
93
- #: includes/functions.php:76 includes/meta.php:550
94
  msgid "Shortcode"
95
  msgstr ""
96
 
97
- #: includes/functions.php:1552
98
  msgid "No more post"
99
- msgstr ""
100
 
101
  #: includes/menu/help.php:20 includes/menu/settings.php:52
102
  msgid " - Settings"
@@ -104,7 +96,7 @@ msgstr ""
104
 
105
  #: includes/menu/help.php:32
106
  msgid "Help & support"
107
- msgstr "সহায়তা"
108
 
109
  #: includes/menu/help.php:39
110
  msgid "Need Help ?"
@@ -121,7 +113,8 @@ msgid "Video Tutorial"
121
  msgstr ""
122
 
123
  #: includes/menu/help.php:69
124
- msgid "Please watch video tutorial."
 
125
  msgstr ""
126
 
127
  #: includes/menu/help.php:73
@@ -171,13 +164,12 @@ msgstr ""
171
  msgid "If you like this plugin please share with your social share network."
172
  msgstr ""
173
 
174
- #: includes/menu/help.php:172 includes/menu/layout-editor.php:464
175
  #: includes/menu/settings.php:174
176
  msgid "Save Changes"
177
  msgstr ""
178
 
179
- #: includes/menu/layout-editor.php:44 includes/menu/license.php:26
180
- #: includes/menu/settings.php:34
181
  msgid "Changes Saved."
182
  msgstr ""
183
 
@@ -197,70 +189,36 @@ msgstr ""
197
  msgid "Character limit:"
198
  msgstr ""
199
 
200
- #: includes/menu/layout-editor.php:362
 
 
 
 
201
  msgid "Meta Key:"
202
  msgstr ""
203
 
204
- #: includes/menu/layout-editor.php:383
205
  msgid "Wrapper:"
206
  msgstr ""
207
 
208
- #: includes/menu/layout-editor.php:385
209
  #, php-format
210
  msgid ""
211
  "use %s where you want to repalce the meta value.<pre>&lt;div&gt;Before %s - "
212
  "%s After&lt;/div&gt;</pre>"
213
  msgstr ""
214
 
215
- #: includes/menu/layout-editor.php:408
216
  msgid "HTML:"
217
  msgstr ""
218
 
219
- #: includes/menu/layout-editor.php:424
220
  msgid "Read more text:"
221
  msgstr ""
222
 
223
- #: includes/menu/license.php:42
224
- msgid " License"
225
- msgstr "লাইসেন্স"
226
-
227
- #: includes/menu/license.php:53
228
- msgid "Activation"
229
- msgstr "সক্রিয় করন"
230
-
231
- #: includes/menu/license.php:60
232
- msgid "Activate license"
233
- msgstr ""
234
-
235
- #: includes/menu/license.php:178
236
- msgid "Status:"
237
- msgstr ""
238
-
239
- #: includes/menu/license.php:183
240
- msgid ""
241
- "Enter the license key for this product to activate it. You were given a "
242
- "license key when you purchased this item. please visit"
243
- msgstr ""
244
-
245
- #: includes/menu/license.php:183
246
- msgid "after logged-in you will see license key for your purchased product."
247
- msgstr ""
248
-
249
- #: includes/menu/license.php:190
250
- msgid "License Key"
251
- msgstr ""
252
-
253
- #: includes/menu/license.php:219
254
- msgid "Activate"
255
- msgstr "সক্রিয় করুন"
256
-
257
- #: includes/menu/license.php:220
258
- msgid "Deactivate"
259
- msgstr "কর্মততপরতা বান্দ করা"
260
-
261
- #: includes/menu/settings.php:63 includes/post-meta-settings.php:135
262
  msgid "Options"
263
- msgstr "অপশন"
264
 
265
  #: includes/menu/settings.php:70
266
  msgid "Reset Content Layouts"
@@ -334,429 +292,358 @@ msgstr ""
334
  msgid "Post Grid Options"
335
  msgstr ""
336
 
337
- #: includes/meta.php:536
338
  msgid "Shortcodes"
339
  msgstr ""
340
 
341
- #: includes/meta.php:537
342
  msgid "Query Post"
343
  msgstr ""
344
 
345
- #: includes/meta.php:538
346
  msgid "Layout"
347
  msgstr ""
348
 
349
- #: includes/meta.php:539
350
  msgid "Layout settings"
351
  msgstr ""
352
 
353
- #: includes/meta.php:540
354
  msgid "Navigations"
355
  msgstr ""
356
 
357
- #: includes/meta.php:541
358
  msgid "Custom Scripts"
359
  msgstr ""
360
 
361
- #: includes/meta.php:551
362
  msgid ""
363
  "Copy this shortcode and paste on page or post where you want to display post "
364
  "grid. <br />Use PHP code to your themes file to display post grid."
365
  msgstr ""
366
 
367
- #: includes/meta.php:555
368
  msgid "PHP Code:"
369
  msgstr ""
370
 
371
- #: includes/meta.php:564
372
  msgid "Post Types"
373
  msgstr ""
374
 
375
- #: includes/meta.php:565
376
  msgid ""
377
  "Select post types you want to query post , can be select multiple. <br /"
378
  ">Hint: Ctrl + click to select mulitple"
379
  msgstr ""
380
 
381
- #: includes/meta.php:577
382
- msgid "Taxonomy & Terms (Categories)"
383
- msgstr ""
384
-
385
- #: includes/meta.php:578
386
- msgid "Select categories. <br />Hint: Ctrl + click to select mulitple"
387
- msgstr ""
388
-
389
- #: includes/meta.php:591
390
- msgid "Terms relation"
391
- msgstr ""
392
-
393
- #: includes/meta.php:600
394
- msgid "More Query Parameter"
395
- msgstr ""
396
-
397
- #: includes/meta.php:601
398
- msgid ""
399
- "More query parameter, ex: <b>year=2016&monthnum=02</b> <br /> you can "
400
- "provide array like this, <b>post__in=96,97</b> keep the last comma to avoid "
401
- "error. "
402
- msgstr ""
403
-
404
- #: includes/meta.php:606
405
  msgid "Post Status"
406
  msgstr ""
407
 
408
- #: includes/meta.php:607
409
  msgid ""
410
  "Display post from following post status, <br />Hint: Ctrl + click to select "
411
  "mulitple"
412
  msgstr ""
413
 
414
- #: includes/meta.php:624
415
  msgid "Posts per page"
416
  msgstr ""
417
 
418
- #: includes/meta.php:625
419
  msgid ""
420
  "Number of post each pagination. -1 to display all. default is 10 if you left "
421
  "empty."
422
  msgstr ""
423
 
424
- #: includes/meta.php:631
425
  msgid "Offset"
426
  msgstr ""
427
 
428
- #: includes/meta.php:632
429
  msgid ""
430
  "Display posts from the n'th, if you set <b>Posts per page</b> to -1 will not "
431
  "work offset."
432
  msgstr ""
433
 
434
- #: includes/meta.php:639
435
  msgid "Exclude by post ID"
436
  msgstr ""
437
 
438
- #: includes/meta.php:640
439
  msgid "you can exclude post by ID, comma(,) separated"
440
  msgstr ""
441
 
442
- #: includes/meta.php:647
443
  msgid "Post query order"
444
  msgstr ""
445
 
446
- #: includes/meta.php:648
447
  msgid "Query order ascending or descending"
448
  msgstr ""
449
 
450
- #: includes/meta.php:659
451
  msgid "Post query orderby"
452
  msgstr ""
453
 
454
- #: includes/meta.php:660
455
  msgid "Query orderby parameter, can select multiple"
456
  msgstr ""
457
 
458
- #: includes/meta.php:663
459
  msgid "ID"
460
  msgstr ""
461
 
462
- #: includes/meta.php:664
463
  msgid "Date"
464
  msgstr ""
465
 
466
- #: includes/meta.php:665 includes/meta.php:1132
467
  msgid "Random"
468
  msgstr ""
469
 
470
- #: includes/meta.php:666
471
  msgid "Comment Count"
472
  msgstr ""
473
 
474
- #: includes/meta.php:667
475
  msgid "Author"
476
  msgstr ""
477
 
478
- #: includes/meta.php:668
479
  msgid "Title"
480
  msgstr ""
481
 
482
- #: includes/meta.php:669
483
  msgid "Name"
484
  msgstr ""
485
 
486
- #: includes/meta.php:670
487
  msgid "Type"
488
  msgstr ""
489
 
490
- #: includes/meta.php:671
491
  msgid "Menu order"
492
  msgstr ""
493
 
494
- #: includes/meta.php:672
495
  msgid "Meta Value"
496
  msgstr ""
497
 
498
- #: includes/meta.php:673
499
  msgid "Meta Value(number)"
500
  msgstr ""
501
 
502
- #: includes/meta.php:683
503
- msgid "Meta query"
504
- msgstr ""
505
-
506
- #: includes/meta.php:684
507
- msgid ""
508
- "query post by meta key & value, Reference: https://codex.wordpress.org/"
509
- "Class_Reference/WP_Query#Custom_Field_Parameters"
510
- msgstr ""
511
-
512
- #: includes/meta.php:692
513
- msgid "Add more"
514
- msgstr ""
515
-
516
- #: includes/meta.php:694
517
- msgid "Meta query relation"
518
- msgstr ""
519
-
520
- #: includes/meta.php:695
521
- msgid "OR"
522
- msgstr ""
523
-
524
- #: includes/meta.php:696
525
- msgid "AND"
526
- msgstr ""
527
-
528
- #: includes/meta.php:711
529
  msgid "Search keyword"
530
  msgstr ""
531
 
532
- #: includes/meta.php:712
533
  msgid ""
534
  "Query post by search keyword, please follow the reference https://codex."
535
  "wordpress.org/Class_Reference/WP_Query#Search_Parameter"
536
  msgstr ""
537
 
538
- #: includes/meta.php:722
539
  msgid "Grid Layout"
540
  msgstr ""
541
 
542
- #: includes/meta.php:723
543
  msgid "Fancy style layouts."
544
  msgstr ""
545
 
546
- #: includes/meta.php:767
547
- msgid "Layout column multiple, for layout (1 - N, N - 1, 1 - N - 1 )"
548
- msgstr ""
549
-
550
- #: includes/meta.php:775
551
  msgid "Content Layout"
552
  msgstr ""
553
 
554
- #: includes/meta.php:776
555
  msgid "Choose your Content layout"
556
  msgstr ""
557
 
558
- #: includes/meta.php:959
559
- msgid "Enable Multi Skins"
560
- msgstr ""
561
-
562
- #: includes/meta.php:960
563
- msgid "To display multi skin on same grid."
564
- msgstr ""
565
-
566
- #: includes/meta.php:962 includes/meta.php:1042 includes/meta.php:1052
567
- #: includes/meta.php:1235
568
- msgid "Yes"
569
- msgstr ""
570
-
571
- #: includes/meta.php:963 includes/meta.php:1043 includes/meta.php:1053
572
- #: includes/meta.php:1236
573
- msgid "No"
574
- msgstr ""
575
-
576
- #: includes/meta.php:966
577
  msgid "Skins"
578
  msgstr ""
579
 
580
- #: includes/meta.php:967
581
  msgid "Select grid Skins"
582
  msgstr ""
583
 
584
- #: includes/meta.php:1039
585
  msgid "Masonry enable"
586
  msgstr ""
587
 
588
- #: includes/meta.php:1040
589
  msgid "Enable masonry style grid"
590
  msgstr ""
591
 
592
- #: includes/meta.php:1049
 
 
 
 
 
 
 
 
593
  msgid "Lazy Load Enable"
594
  msgstr ""
595
 
596
- #: includes/meta.php:1050
597
  msgid "Gif animation when loading grid"
598
  msgstr ""
599
 
600
- #: includes/meta.php:1058
601
  msgid "Gif image source:"
602
  msgstr ""
603
 
604
- #: includes/meta.php:1100
605
  msgid "Grid Items Width"
606
  msgstr ""
607
 
608
- #: includes/meta.php:1101
609
  msgid "Grid item width for different device"
610
  msgstr ""
611
 
612
- #: includes/meta.php:1127
613
  msgid "Grid Items Background color"
614
  msgstr ""
615
 
616
- #: includes/meta.php:1128
617
  msgid "Grid item Background color"
618
  msgstr ""
619
 
620
- #: includes/meta.php:1131
621
  msgid "Fixed"
622
  msgstr ""
623
 
624
- #: includes/meta.php:1134
625
  msgid "Fixed Background color:"
626
  msgstr ""
627
 
628
- #: includes/meta.php:1140
629
  msgid "Grid Items Height"
630
  msgstr ""
631
 
632
- #: includes/meta.php:1141
633
  msgid "Grid item height"
634
  msgstr ""
635
 
636
- #: includes/meta.php:1142 includes/meta.php:1173
637
  msgid "Auto height"
638
  msgstr ""
639
 
640
- #: includes/meta.php:1143 includes/meta.php:1174
641
  msgid "Fixed height"
642
  msgstr ""
643
 
644
- #: includes/meta.php:1144 includes/meta.php:1175
645
  msgid "Max height"
646
  msgstr ""
647
 
648
- #: includes/meta.php:1158
649
  msgid "Grid Items Margin"
650
  msgstr ""
651
 
652
- #: includes/meta.php:1159
653
  msgid "Grid item margin"
654
  msgstr ""
655
 
656
- #: includes/meta.php:1171
657
  msgid "Media Height"
658
  msgstr ""
659
 
660
- #: includes/meta.php:1172
661
  msgid "Grid item media height"
662
  msgstr ""
663
 
664
- #: includes/meta.php:1198
665
  msgid "Featured Image size"
666
  msgstr ""
667
 
668
- #: includes/meta.php:1233
669
  msgid "Featured Image linked to post"
670
  msgstr ""
671
 
672
- #: includes/meta.php:1242
673
  msgid "Media source"
674
  msgstr ""
675
 
676
- #: includes/meta.php:1243
677
  msgid ""
678
  "Grid item media source <br />N.B. First gallery from content, First youtube "
679
  "video from content, First vimeo video from content, First MP3 from content, "
680
  "First SoundCloud from content will not retrive for \"page\""
681
  msgstr ""
682
 
683
- #: includes/meta.php:1308
684
  msgid "Grid Container options"
685
  msgstr ""
686
 
687
- #: includes/meta.php:1309
688
  msgid "Grid container "
689
  msgstr ""
690
 
691
- #: includes/meta.php:1364
 
 
 
 
 
 
 
 
692
  msgid "Navigation"
693
  msgstr ""
694
 
695
- #: includes/meta.php:1365
696
- msgid "Customize navigation layout."
 
 
 
 
697
  msgstr ""
698
 
699
- #: includes/meta.php:1404
700
  msgid "Pagination"
701
  msgstr ""
702
 
703
- #: includes/meta.php:1406
704
  msgid "Max number of pagination, keep 0 (zero) for auto."
705
  msgstr ""
706
 
707
- #: includes/meta.php:1410
708
  msgid "Pagination Previous text"
709
  msgstr ""
710
 
711
- #: includes/meta.php:1414
712
  msgid "Pagination Next text"
713
  msgstr ""
714
 
715
- #: includes/meta.php:1425
716
  msgid "Pagination themes"
717
  msgstr ""
718
 
719
- #: includes/meta.php:1426
720
- msgid "Themes for pagination"
721
- msgstr ""
722
-
723
- #: includes/meta.php:1428
724
  msgid "Lite"
725
  msgstr ""
726
 
727
- #: includes/meta.php:1429
728
  msgid "Dark"
729
  msgstr ""
730
 
731
- #: includes/meta.php:1435
732
- msgid "Filterable post per page"
733
- msgstr ""
734
-
735
- #: includes/meta.php:1436
736
- msgid "total number of items per page"
737
- msgstr ""
738
-
739
- #: includes/meta.php:1446
740
- msgid "Default active filter"
741
- msgstr ""
742
-
743
- #: includes/meta.php:1447
744
- msgid "Default active filter for filterable grid"
745
- msgstr ""
746
-
747
- #: includes/meta.php:1497
748
  msgid "Custom Js"
749
  msgstr ""
750
 
751
- #: includes/meta.php:1498
752
  msgid "Add your custom js"
753
  msgstr ""
754
 
755
- #: includes/meta.php:1506
756
  msgid "Custom CSS"
757
  msgstr ""
758
 
759
- #: includes/meta.php:1507
760
  msgid "Add your custom CSS"
761
  msgstr ""
762
 
@@ -764,57 +651,61 @@ msgstr ""
764
  msgid "Post Grid - Post Options"
765
  msgstr ""
766
 
767
- #: includes/post-meta-settings.php:138
768
  msgid "Font Awesome"
769
  msgstr ""
770
 
771
- #: includes/post-meta-settings.php:139
772
  msgid "Custom Media"
773
  msgstr ""
774
 
775
- #: includes/post-meta-settings.php:148
776
  msgid "Post Skin"
777
  msgstr ""
778
 
779
- #: includes/post-meta-settings.php:149
780
  msgid "Default skin for this post only"
781
  msgstr ""
782
 
783
- #: includes/post-meta-settings.php:182
784
  msgid "Custom thumbnail source"
785
  msgstr ""
786
 
787
- #: includes/post-meta-settings.php:197
788
  msgid "Font awesome icon ID"
789
  msgstr ""
790
 
791
- #: includes/post-meta-settings.php:198
792
  msgid ""
793
  "Font awesome icon id, ex: <b>fa-share-alt</b> , please check font awesome "
794
  "incon here <a href=\"http://fortawesome.github.io/Font-Awesome/icons/"
795
  "\">http://fortawesome.github.io/Font-Awesome/icons/</a>"
796
  msgstr ""
797
 
798
- #: includes/post-meta-settings.php:201
799
  msgid "Icon Color"
800
  msgstr ""
801
 
802
- #: includes/post-meta-settings.php:203
803
  msgid "Icon size"
804
  msgstr ""
805
 
806
- #: includes/post-meta-settings.php:214
807
  msgid "Custom youtube id"
808
  msgstr ""
809
 
810
- #: includes/post-meta-settings.php:218
811
  msgid "Custom vimeo id"
812
  msgstr ""
813
 
814
- #: includes/post-meta-settings.php:221
 
 
 
 
815
  msgid "Custom mp3 URL"
816
  msgstr ""
817
 
818
- #: includes/post-meta-settings.php:224
819
  msgid "Custom soundcloud ID"
820
  msgstr ""
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Post Grid\n"
4
+ "POT-Creation-Date: 2016-07-27 12:42+0600\n"
5
+ "PO-Revision-Date: 2016-07-27 12:42+0600\n"
6
  "Last-Translator: \n"
7
+ "Language-Team: pickplugins <support@pickplugins.com>\n"
8
+ "Language: en\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.8.8\n"
13
+ "X-Poedit-Basepath: ..\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
+ "X-Poedit-KeywordsList: __;_e\n"
16
+ "X-Poedit-SearchPath-0: includes\n"
17
+ "X-Poedit-SearchPath-1: grid-items\n"
18
 
19
+ #: grid-items/layer-content.php:89 grid-items/layer-content.php:152
20
  msgid "Read more."
21
+ msgstr "Leggi di più"
22
 
23
+ #: grid-items/layer-content.php:192
24
  #, php-format
25
  msgid "View all posts in %s"
26
  msgstr ""
27
 
28
+ #: grid-items/layer-content.php:218
29
  msgid "No Comments"
30
  msgstr ""
31
 
32
+ #: grid-items/layer-content.php:220
33
  msgid " Comments"
34
  msgstr ""
35
 
36
+ #: grid-items/layer-content.php:222
37
  msgid "1 Comment"
38
  msgstr ""
39
 
40
+ #: grid-items/layer-content.php:232
41
  msgid "Comments"
42
  msgstr ""
43
 
44
+ #: grid-items/layer-content.php:245
45
  msgid "No comments yet"
46
  msgstr ""
47
 
48
+ #: grid-items/layer-content.php:268
49
  msgid "No More comments"
50
  msgstr ""
51
 
52
+ #: grid-items/layer-content.php:387
 
 
 
 
 
 
 
 
53
  msgid "Add to Cart"
54
  msgstr ""
55
 
56
+ #: grid-items/nav-bottom.php:155 includes/class-functions.php:24
57
  msgid "Load more"
58
+ msgstr "Caricare più"
59
+
60
+ #: grid-items/nav-top-new.php:21 grid-items/nav-top.php:141
61
+ msgid "Start typing..."
62
  msgstr ""
63
 
64
+ #: grid-items/nav-top-new.php:47 grid-items/nav-top.php:25
65
  msgid "All"
 
 
 
 
66
  msgstr ""
67
 
68
+ #: includes/class-settings.php:37
69
  msgid "Layout Editor"
70
  msgstr ""
71
 
72
+ #: includes/class-settings.php:39
73
  msgid "Settings"
74
  msgstr ""
75
 
76
+ #: includes/class-settings.php:41
77
  msgid "Help"
78
  msgstr ""
79
 
80
+ #: includes/class-shortcodes.php:156 includes/class-shortcodes.php:328
81
+ #: includes/functions.php:1565
 
 
 
82
  msgid "No Post found"
83
+ msgstr "Nessun post trovato"
84
 
85
+ #: includes/functions.php:87 includes/meta.php:773
86
  msgid "Shortcode"
87
  msgstr ""
88
 
89
+ #: includes/functions.php:1508
90
  msgid "No more post"
91
+ msgstr "Non più post"
92
 
93
  #: includes/menu/help.php:20 includes/menu/settings.php:52
94
  msgid " - Settings"
96
 
97
  #: includes/menu/help.php:32
98
  msgid "Help & support"
99
+ msgstr ""
100
 
101
  #: includes/menu/help.php:39
102
  msgid "Need Help ?"
113
  msgstr ""
114
 
115
  #: includes/menu/help.php:69
116
+ msgid ""
117
+ "Please watch video tutorial, some features may not available in Free version."
118
  msgstr ""
119
 
120
  #: includes/menu/help.php:73
164
  msgid "If you like this plugin please share with your social share network."
165
  msgstr ""
166
 
167
+ #: includes/menu/help.php:172 includes/menu/layout-editor.php:496
168
  #: includes/menu/settings.php:174
169
  msgid "Save Changes"
170
  msgstr ""
171
 
172
+ #: includes/menu/layout-editor.php:44 includes/menu/settings.php:34
 
173
  msgid "Changes Saved."
174
  msgstr ""
175
 
189
  msgid "Character limit:"
190
  msgstr ""
191
 
192
+ #: includes/menu/layout-editor.php:357
193
+ msgid "Link target:"
194
+ msgstr ""
195
+
196
+ #: includes/menu/layout-editor.php:394
197
  msgid "Meta Key:"
198
  msgstr ""
199
 
200
+ #: includes/menu/layout-editor.php:415
201
  msgid "Wrapper:"
202
  msgstr ""
203
 
204
+ #: includes/menu/layout-editor.php:417
205
  #, php-format
206
  msgid ""
207
  "use %s where you want to repalce the meta value.<pre>&lt;div&gt;Before %s - "
208
  "%s After&lt;/div&gt;</pre>"
209
  msgstr ""
210
 
211
+ #: includes/menu/layout-editor.php:440
212
  msgid "HTML:"
213
  msgstr ""
214
 
215
+ #: includes/menu/layout-editor.php:456
216
  msgid "Read more text:"
217
  msgstr ""
218
 
219
+ #: includes/menu/settings.php:63 includes/post-meta-settings.php:144
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
220
  msgid "Options"
221
+ msgstr ""
222
 
223
  #: includes/menu/settings.php:70
224
  msgid "Reset Content Layouts"
292
  msgid "Post Grid Options"
293
  msgstr ""
294
 
295
+ #: includes/meta.php:759
296
  msgid "Shortcodes"
297
  msgstr ""
298
 
299
+ #: includes/meta.php:760
300
  msgid "Query Post"
301
  msgstr ""
302
 
303
+ #: includes/meta.php:761
304
  msgid "Layout"
305
  msgstr ""
306
 
307
+ #: includes/meta.php:762
308
  msgid "Layout settings"
309
  msgstr ""
310
 
311
+ #: includes/meta.php:763
312
  msgid "Navigations"
313
  msgstr ""
314
 
315
+ #: includes/meta.php:764
316
  msgid "Custom Scripts"
317
  msgstr ""
318
 
319
+ #: includes/meta.php:774
320
  msgid ""
321
  "Copy this shortcode and paste on page or post where you want to display post "
322
  "grid. <br />Use PHP code to your themes file to display post grid."
323
  msgstr ""
324
 
325
+ #: includes/meta.php:778
326
  msgid "PHP Code:"
327
  msgstr ""
328
 
329
+ #: includes/meta.php:787
330
  msgid "Post Types"
331
  msgstr ""
332
 
333
+ #: includes/meta.php:788
334
  msgid ""
335
  "Select post types you want to query post , can be select multiple. <br /"
336
  ">Hint: Ctrl + click to select mulitple"
337
  msgstr ""
338
 
339
+ #: includes/meta.php:801
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
340
  msgid "Post Status"
341
  msgstr ""
342
 
343
+ #: includes/meta.php:802
344
  msgid ""
345
  "Display post from following post status, <br />Hint: Ctrl + click to select "
346
  "mulitple"
347
  msgstr ""
348
 
349
+ #: includes/meta.php:819
350
  msgid "Posts per page"
351
  msgstr ""
352
 
353
+ #: includes/meta.php:820
354
  msgid ""
355
  "Number of post each pagination. -1 to display all. default is 10 if you left "
356
  "empty."
357
  msgstr ""
358
 
359
+ #: includes/meta.php:826
360
  msgid "Offset"
361
  msgstr ""
362
 
363
+ #: includes/meta.php:827
364
  msgid ""
365
  "Display posts from the n'th, if you set <b>Posts per page</b> to -1 will not "
366
  "work offset."
367
  msgstr ""
368
 
369
+ #: includes/meta.php:834
370
  msgid "Exclude by post ID"
371
  msgstr ""
372
 
373
+ #: includes/meta.php:835
374
  msgid "you can exclude post by ID, comma(,) separated"
375
  msgstr ""
376
 
377
+ #: includes/meta.php:842
378
  msgid "Post query order"
379
  msgstr ""
380
 
381
+ #: includes/meta.php:843
382
  msgid "Query order ascending or descending"
383
  msgstr ""
384
 
385
+ #: includes/meta.php:854
386
  msgid "Post query orderby"
387
  msgstr ""
388
 
389
+ #: includes/meta.php:855
390
  msgid "Query orderby parameter, can select multiple"
391
  msgstr ""
392
 
393
+ #: includes/meta.php:858
394
  msgid "ID"
395
  msgstr ""
396
 
397
+ #: includes/meta.php:859
398
  msgid "Date"
399
  msgstr ""
400
 
401
+ #: includes/meta.php:860
402
  msgid "Random"
403
  msgstr ""
404
 
405
+ #: includes/meta.php:861
406
  msgid "Comment Count"
407
  msgstr ""
408
 
409
+ #: includes/meta.php:862
410
  msgid "Author"
411
  msgstr ""
412
 
413
+ #: includes/meta.php:863
414
  msgid "Title"
415
  msgstr ""
416
 
417
+ #: includes/meta.php:864
418
  msgid "Name"
419
  msgstr ""
420
 
421
+ #: includes/meta.php:865
422
  msgid "Type"
423
  msgstr ""
424
 
425
+ #: includes/meta.php:866
426
  msgid "Menu order"
427
  msgstr ""
428
 
429
+ #: includes/meta.php:867
430
  msgid "Meta Value"
431
  msgstr ""
432
 
433
+ #: includes/meta.php:868
434
  msgid "Meta Value(number)"
435
  msgstr ""
436
 
437
+ #: includes/meta.php:880
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
438
  msgid "Search keyword"
439
  msgstr ""
440
 
441
+ #: includes/meta.php:881
442
  msgid ""
443
  "Query post by search keyword, please follow the reference https://codex."
444
  "wordpress.org/Class_Reference/WP_Query#Search_Parameter"
445
  msgstr ""
446
 
447
+ #: includes/meta.php:891
448
  msgid "Grid Layout"
449
  msgstr ""
450
 
451
+ #: includes/meta.php:892
452
  msgid "Fancy style layouts."
453
  msgstr ""
454
 
455
+ #: includes/meta.php:906
 
 
 
 
456
  msgid "Content Layout"
457
  msgstr ""
458
 
459
+ #: includes/meta.php:907
460
  msgid "Choose your Content layout"
461
  msgstr ""
462
 
463
+ #: includes/meta.php:1091
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
464
  msgid "Skins"
465
  msgstr ""
466
 
467
+ #: includes/meta.php:1092
468
  msgid "Select grid Skins"
469
  msgstr ""
470
 
471
+ #: includes/meta.php:1164
472
  msgid "Masonry enable"
473
  msgstr ""
474
 
475
+ #: includes/meta.php:1165
476
  msgid "Enable masonry style grid"
477
  msgstr ""
478
 
479
+ #: includes/meta.php:1167 includes/meta.php:1177 includes/meta.php:1360
480
+ msgid "Yes"
481
+ msgstr ""
482
+
483
+ #: includes/meta.php:1168 includes/meta.php:1178 includes/meta.php:1361
484
+ msgid "No"
485
+ msgstr ""
486
+
487
+ #: includes/meta.php:1174
488
  msgid "Lazy Load Enable"
489
  msgstr ""
490
 
491
+ #: includes/meta.php:1175
492
  msgid "Gif animation when loading grid"
493
  msgstr ""
494
 
495
+ #: includes/meta.php:1183
496
  msgid "Gif image source:"
497
  msgstr ""
498
 
499
+ #: includes/meta.php:1225
500
  msgid "Grid Items Width"
501
  msgstr ""
502
 
503
+ #: includes/meta.php:1226
504
  msgid "Grid item width for different device"
505
  msgstr ""
506
 
507
+ #: includes/meta.php:1252
508
  msgid "Grid Items Background color"
509
  msgstr ""
510
 
511
+ #: includes/meta.php:1253
512
  msgid "Grid item Background color"
513
  msgstr ""
514
 
515
+ #: includes/meta.php:1256
516
  msgid "Fixed"
517
  msgstr ""
518
 
519
+ #: includes/meta.php:1259
520
  msgid "Fixed Background color:"
521
  msgstr ""
522
 
523
+ #: includes/meta.php:1265
524
  msgid "Grid Items Height"
525
  msgstr ""
526
 
527
+ #: includes/meta.php:1266
528
  msgid "Grid item height"
529
  msgstr ""
530
 
531
+ #: includes/meta.php:1267 includes/meta.php:1298
532
  msgid "Auto height"
533
  msgstr ""
534
 
535
+ #: includes/meta.php:1268 includes/meta.php:1299
536
  msgid "Fixed height"
537
  msgstr ""
538
 
539
+ #: includes/meta.php:1269 includes/meta.php:1300
540
  msgid "Max height"
541
  msgstr ""
542
 
543
+ #: includes/meta.php:1283
544
  msgid "Grid Items Margin"
545
  msgstr ""
546
 
547
+ #: includes/meta.php:1284
548
  msgid "Grid item margin"
549
  msgstr ""
550
 
551
+ #: includes/meta.php:1296
552
  msgid "Media Height"
553
  msgstr ""
554
 
555
+ #: includes/meta.php:1297
556
  msgid "Grid item media height"
557
  msgstr ""
558
 
559
+ #: includes/meta.php:1323
560
  msgid "Featured Image size"
561
  msgstr ""
562
 
563
+ #: includes/meta.php:1358
564
  msgid "Featured Image linked to post"
565
  msgstr ""
566
 
567
+ #: includes/meta.php:1367
568
  msgid "Media source"
569
  msgstr ""
570
 
571
+ #: includes/meta.php:1368
572
  msgid ""
573
  "Grid item media source <br />N.B. First gallery from content, First youtube "
574
  "video from content, First vimeo video from content, First MP3 from content, "
575
  "First SoundCloud from content will not retrive for \"page\""
576
  msgstr ""
577
 
578
+ #: includes/meta.php:1433
579
  msgid "Grid Container options"
580
  msgstr ""
581
 
582
+ #: includes/meta.php:1434
583
  msgid "Grid container "
584
  msgstr ""
585
 
586
+ #: includes/meta.php:1491
587
+ msgid "Grid Type"
588
+ msgstr ""
589
+
590
+ #: includes/meta.php:1492
591
+ msgid "Select grid type."
592
+ msgstr ""
593
+
594
+ #: includes/meta.php:1689
595
  msgid "Navigation"
596
  msgstr ""
597
 
598
+ #: includes/meta.php:1694
599
+ msgid "Pagination."
600
+ msgstr ""
601
+
602
+ #: includes/meta.php:1702
603
+ msgid "Search."
604
  msgstr ""
605
 
606
+ #: includes/meta.php:1717
607
  msgid "Pagination"
608
  msgstr ""
609
 
610
+ #: includes/meta.php:1719
611
  msgid "Max number of pagination, keep 0 (zero) for auto."
612
  msgstr ""
613
 
614
+ #: includes/meta.php:1723
615
  msgid "Pagination Previous text"
616
  msgstr ""
617
 
618
+ #: includes/meta.php:1727
619
  msgid "Pagination Next text"
620
  msgstr ""
621
 
622
+ #: includes/meta.php:1730
623
  msgid "Pagination themes"
624
  msgstr ""
625
 
626
+ #: includes/meta.php:1732
 
 
 
 
627
  msgid "Lite"
628
  msgstr ""
629
 
630
+ #: includes/meta.php:1733
631
  msgid "Dark"
632
  msgstr ""
633
 
634
+ #: includes/meta.php:1748
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
635
  msgid "Custom Js"
636
  msgstr ""
637
 
638
+ #: includes/meta.php:1749
639
  msgid "Add your custom js"
640
  msgstr ""
641
 
642
+ #: includes/meta.php:1757
643
  msgid "Custom CSS"
644
  msgstr ""
645
 
646
+ #: includes/meta.php:1758
647
  msgid "Add your custom CSS"
648
  msgstr ""
649
 
651
  msgid "Post Grid - Post Options"
652
  msgstr ""
653
 
654
+ #: includes/post-meta-settings.php:147
655
  msgid "Font Awesome"
656
  msgstr ""
657
 
658
+ #: includes/post-meta-settings.php:148
659
  msgid "Custom Media"
660
  msgstr ""
661
 
662
+ #: includes/post-meta-settings.php:157
663
  msgid "Post Skin"
664
  msgstr ""
665
 
666
+ #: includes/post-meta-settings.php:158
667
  msgid "Default skin for this post only"
668
  msgstr ""
669
 
670
+ #: includes/post-meta-settings.php:191
671
  msgid "Custom thumbnail source"
672
  msgstr ""
673
 
674
+ #: includes/post-meta-settings.php:206
675
  msgid "Font awesome icon ID"
676
  msgstr ""
677
 
678
+ #: includes/post-meta-settings.php:207
679
  msgid ""
680
  "Font awesome icon id, ex: <b>fa-share-alt</b> , please check font awesome "
681
  "incon here <a href=\"http://fortawesome.github.io/Font-Awesome/icons/"
682
  "\">http://fortawesome.github.io/Font-Awesome/icons/</a>"
683
  msgstr ""
684
 
685
+ #: includes/post-meta-settings.php:210
686
  msgid "Icon Color"
687
  msgstr ""
688
 
689
+ #: includes/post-meta-settings.php:212
690
  msgid "Icon size"
691
  msgstr ""
692
 
693
+ #: includes/post-meta-settings.php:223
694
  msgid "Custom youtube id"
695
  msgstr ""
696
 
697
+ #: includes/post-meta-settings.php:227
698
  msgid "Custom vimeo id"
699
  msgstr ""
700
 
701
+ #: includes/post-meta-settings.php:230
702
+ msgid "Custom dailymotion id"
703
+ msgstr ""
704
+
705
+ #: includes/post-meta-settings.php:234
706
  msgid "Custom mp3 URL"
707
  msgstr ""
708
 
709
+ #: includes/post-meta-settings.php:237
710
  msgid "Custom soundcloud ID"
711
  msgstr ""
post-grid.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Post Grid
4
  Plugin URI: http://pickplugins.com
5
  Description: Awesome post grid for query post from any post type and display on grid.
6
- Version: 2.0.9
7
  Author: pickplugins
8
  Author URI: http://pickplugins.com
9
  License: GPLv2 or later
@@ -27,17 +27,18 @@ class PostGrid{
27
  define('post_grid_conatct_url', 'http://pickplugins.com/contact/' );
28
  define('post_grid_qa_url', 'http://www.pickplugins.com/questions/' );
29
  define('post_grid_plugin_name', 'Post Grid' );
30
- define('post_grid_version', '2.0.9' );
31
  define('post_grid_customer_type', 'free' );
32
  define('post_grid_share_url', 'https://wordpress.org/plugins/post-grid/' );
33
- define('post_grid_tutorial_video_url', '//www.youtube.com/embed/WynnnEl0ncM' );
34
  define('post_grid_textdomain', 'post_grid' );
35
-
 
 
36
  include( 'includes/class-functions.php' );
37
  include( 'includes/class-shortcodes.php' );
38
  include( 'includes/class-settings.php' );
39
  include( 'includes/meta.php' );
40
- //include( 'includes/post-meta-settings.php' );
41
  include( 'includes/functions.php' );
42
 
43
  add_action( 'wp_enqueue_scripts', array( $this, 'post_grid_scripts_front' ) );
@@ -66,7 +67,10 @@ class PostGrid{
66
  $layout_content_list = $class_post_grid_functions->layout_content_list();
67
  update_option('post_grid_layout_content', $layout_content_list);
68
  }
69
-
 
 
 
70
 
71
  if(!file_exists(ABSPATH."wp-content/uploads/post-grid/")){
72
  mkdir(ABSPATH."wp-content/uploads/post-grid/");
@@ -93,17 +97,21 @@ class PostGrid{
93
  public function post_grid_scripts_front(){
94
  wp_enqueue_script('jquery');
95
 
96
- wp_enqueue_style('post_grid_style', post_grid_plugin_url.'/assets/frontend/css/style.css');
97
  wp_enqueue_script('post_grid_scripts', plugins_url( '/assets/frontend/js/scripts.js' , __FILE__ ) , array( 'jquery' ));
98
  wp_localize_script('post_grid_scripts', 'post_grid_ajax', array( 'post_grid_ajaxurl' => admin_url( 'admin-ajax.php')));
 
99
 
100
  wp_enqueue_script('masonry.pkgd.min', plugins_url( '/assets/frontend/js/masonry.pkgd.min.js' , __FILE__ ) , array( 'jquery' ));
101
 
102
- //wp_enqueue_script('owl.carousel', plugins_url( '/assets/frontend/js/owl.carousel.js' , __FILE__ ) , array( 'jquery' ));
103
- //wp_enqueue_style('owl.carousel', post_grid_plugin_url.'assets/frontend/css/owl.carousel.css');
104
- //wp_enqueue_style('owl.theme', post_grid_plugin_url.'assets/frontend/css/owl.theme.css');
105
  wp_enqueue_style('font-awesome', post_grid_plugin_url.'assets/frontend/css/font-awesome.css');
106
  wp_enqueue_style('style-woocommerce', post_grid_plugin_url.'assets/frontend/css/style-woocommerce.css');
 
 
 
107
 
108
  wp_enqueue_style('style.skins', post_grid_plugin_url.'assets/global/css/style.skins.css');
109
  wp_enqueue_style('style.layout', post_grid_plugin_url.'assets/global/css/style.layout.css');
@@ -116,12 +124,12 @@ class PostGrid{
116
  wp_enqueue_script('jquery');
117
  wp_enqueue_script('jquery-ui-core');
118
  wp_enqueue_script('jquery-ui-sortable');
119
-
120
 
121
- wp_enqueue_script('post_grid_admin_js', plugins_url( 'assets/admin/js/scripts.js' , __FILE__ ) , array( 'jquery' ));
122
  wp_localize_script( 'post_grid_admin_js', 'post_grid_ajax', array( 'post_grid_ajaxurl' => admin_url( 'admin-ajax.php')));
123
 
124
- wp_enqueue_style('post_grid_admin_style', post_grid_plugin_url.'assets/admin/css/style.css');
125
 
126
  //ParaAdmin
127
  wp_enqueue_style('ParaAdmin', post_grid_plugin_url.'assets/admin/ParaAdmin/css/ParaAdmin.css');
3
  Plugin Name: Post Grid
4
  Plugin URI: http://pickplugins.com
5
  Description: Awesome post grid for query post from any post type and display on grid.
6
+ Version: 2.0.10
7
  Author: pickplugins
8
  Author URI: http://pickplugins.com
9
  License: GPLv2 or later
27
  define('post_grid_conatct_url', 'http://pickplugins.com/contact/' );
28
  define('post_grid_qa_url', 'http://www.pickplugins.com/questions/' );
29
  define('post_grid_plugin_name', 'Post Grid' );
30
+ define('post_grid_version', '2.0.10' );
31
  define('post_grid_customer_type', 'free' );
32
  define('post_grid_share_url', 'https://wordpress.org/plugins/post-grid/' );
 
33
  define('post_grid_textdomain', 'post_grid' );
34
+
35
+
36
+ //include( ABSPATH.'wp-admin/includes/template.php' );
37
  include( 'includes/class-functions.php' );
38
  include( 'includes/class-shortcodes.php' );
39
  include( 'includes/class-settings.php' );
40
  include( 'includes/meta.php' );
41
+ include( 'includes/post-meta-settings.php' );
42
  include( 'includes/functions.php' );
43
 
44
  add_action( 'wp_enqueue_scripts', array( $this, 'post_grid_scripts_front' ) );
67
  $layout_content_list = $class_post_grid_functions->layout_content_list();
68
  update_option('post_grid_layout_content', $layout_content_list);
69
  }
70
+
71
+
72
+ //$layout_hover_list = $class_post_grid_functions->layout_hover_list();
73
+ //update_option('post_grid_layout_hover', $layout_hover_list);
74
 
75
  if(!file_exists(ABSPATH."wp-content/uploads/post-grid/")){
76
  mkdir(ABSPATH."wp-content/uploads/post-grid/");
97
  public function post_grid_scripts_front(){
98
  wp_enqueue_script('jquery');
99
 
100
+ wp_enqueue_style('post_grid_style', post_grid_plugin_url.'assets/frontend/css/style-new.css');
101
  wp_enqueue_script('post_grid_scripts', plugins_url( '/assets/frontend/js/scripts.js' , __FILE__ ) , array( 'jquery' ));
102
  wp_localize_script('post_grid_scripts', 'post_grid_ajax', array( 'post_grid_ajaxurl' => admin_url( 'admin-ajax.php')));
103
+
104
 
105
  wp_enqueue_script('masonry.pkgd.min', plugins_url( '/assets/frontend/js/masonry.pkgd.min.js' , __FILE__ ) , array( 'jquery' ));
106
 
107
+ wp_enqueue_script('owl.carousel.min', plugins_url( '/assets/frontend/js/owl.carousel.min.js' , __FILE__ ) , array( 'jquery' ));
108
+ wp_enqueue_style('owl.carousel', post_grid_plugin_url.'assets/frontend/css/owl.carousel.css');
109
+
110
  wp_enqueue_style('font-awesome', post_grid_plugin_url.'assets/frontend/css/font-awesome.css');
111
  wp_enqueue_style('style-woocommerce', post_grid_plugin_url.'assets/frontend/css/style-woocommerce.css');
112
+ //wp_enqueue_style('animate', post_grid_plugin_url.'assets/frontend/css/animate.css');
113
+
114
+ wp_enqueue_script('imagesloaded.pkgd.js', plugins_url( '/assets/frontend/js/imagesloaded.pkgd.js' , __FILE__ ) , array( 'jquery' ));
115
 
116
  wp_enqueue_style('style.skins', post_grid_plugin_url.'assets/global/css/style.skins.css');
117
  wp_enqueue_style('style.layout', post_grid_plugin_url.'assets/global/css/style.layout.css');
124
  wp_enqueue_script('jquery');
125
  wp_enqueue_script('jquery-ui-core');
126
  wp_enqueue_script('jquery-ui-sortable');
127
+ //wp_enqueue_script('jquery-ui-droppable');
128
 
129
+ wp_enqueue_script('post_grid_admin_js', plugins_url( 'assets/admin/js/scripts-new.js' , __FILE__ ) , array( 'jquery' ));
130
  wp_localize_script( 'post_grid_admin_js', 'post_grid_ajax', array( 'post_grid_ajaxurl' => admin_url( 'admin-ajax.php')));
131
 
132
+ wp_enqueue_style('post_grid_admin_style', post_grid_plugin_url.'assets/admin/css/style-new.css');
133
 
134
  //ParaAdmin
135
  wp_enqueue_style('ParaAdmin', post_grid_plugin_url.'assets/admin/ParaAdmin/css/ParaAdmin.css');
readme.txt CHANGED
@@ -3,15 +3,14 @@
3
  Donate link: http://pickplugins.com
4
  Tags: post grid, grid, custom post grid, post type grid, grid display, category filter, custom post, filter, filtering, grid, layout, list, masonry, post, post filter, post layout, taxonomy, taxonomy filter,
5
  Requires at least: 3.8
6
- Tested up to: 4.5.2
7
- Stable tag: 2.0.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Awesome post grid for query post from any post type and display on grid.
12
 
13
  == Description ==
14
-
15
  Query post from your custom post types and create awesome grid.
16
 
17
  Use any where by short-codes and easy customize via short-code generator page, you can display or hide grid meta items like post authors, post date, post categories, post tags and etc.
@@ -61,11 +60,11 @@ Use any where by short-codes and easy customize via short-code generator page, y
61
 
62
  * [How to install activate & license!&raquo;](https://youtu.be/gzH0uO6IReE)
63
  * [How to create Post Grid!&raquo;](https://youtu.be/6HwLUBqT7i4)
64
- * [Post Grid Query Post!&raquo;](https://youtu.be/FKIcey0ujgo)
65
- * [Post Grid Grid Layout!&raquo;](https://youtu.be/g2GSb4chGXQ)
66
- * [Post Grid Navigation!&raquo;](https://youtu.be/B12CglBCLJY)
67
- * [Post Grid Layout Editor!&raquo;](https://youtu.be/z_tygQ12aJk)
68
- * [Post Grid Settings!&raquo;](https://youtu.be/JsPKfENJL8I)
69
 
70
 
71
  == Installation ==
@@ -79,7 +78,7 @@ After activate plugin you will see "Post Grid" menu at left side on WordPress da
79
  <strong>How to use on page or post</strong><br />
80
  When Post Grid options setup done please publish Post Grid as like post or page<br />
81
 
82
- and then copy shortcode from top of <strong>Post Grid Options</strong> `[post_grid id="1234"]`<br />
83
 
84
  then paste this shortcode anywhere in your page to display grid<br />
85
 
@@ -96,6 +95,16 @@ then paste this shortcode anywhere in your page to display grid<br />
96
 
97
  == Changelog ==
98
 
 
 
 
 
 
 
 
 
 
 
99
  = 2.0.9 =
100
  * 24/06/2016 fix - minor php issue fixed.
101
 
3
  Donate link: http://pickplugins.com
4
  Tags: post grid, grid, custom post grid, post type grid, grid display, category filter, custom post, filter, filtering, grid, layout, list, masonry, post, post filter, post layout, taxonomy, taxonomy filter,
5
  Requires at least: 3.8
6
+ Tested up to: 4.6
7
+ Stable tag: 2.0.10
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Awesome post grid for query post from any post type and display on grid.
12
 
13
  == Description ==
 
14
  Query post from your custom post types and create awesome grid.
15
 
16
  Use any where by short-codes and easy customize via short-code generator page, you can display or hide grid meta items like post authors, post date, post categories, post tags and etc.
60
 
61
  * [How to install activate & license!&raquo;](https://youtu.be/gzH0uO6IReE)
62
  * [How to create Post Grid!&raquo;](https://youtu.be/6HwLUBqT7i4)
63
+ * [Post Grid – Query Post!&raquo;](https://youtu.be/FKIcey0ujgo)
64
+ * [Post Grid – Grid Layout!&raquo;](https://youtu.be/g2GSb4chGXQ)
65
+ * [Post Grid – Navigation!&raquo;](https://youtu.be/B12CglBCLJY)
66
+ * [Post Grid – Layout Editor!&raquo;](https://youtu.be/z_tygQ12aJk)
67
+ * [Post Grid – Settings!&raquo;](https://youtu.be/JsPKfENJL8I)
68
 
69
 
70
  == Installation ==
78
  <strong>How to use on page or post</strong><br />
79
  When Post Grid options setup done please publish Post Grid as like post or page<br />
80
 
81
+ and then copy shortcode from top of <strong>Post Grid Options</strong> `[post_grid id="1234" ]`<br />
82
 
83
  then paste this shortcode anywhere in your page to display grid<br />
84
 
95
 
96
  == Changelog ==
97
 
98
+ = 2.0.10 =
99
+ * 27/07/2016 add - Lazy Load.
100
+ * 27/07/2016 add - Featured Image linked to post.
101
+ * 27/07/2016 add - Grid Items Height.
102
+ * 27/07/2016 add - Create New layout on Layout Editor.
103
+ * 27/07/2016 add - Settigns - Export Content Layouts.
104
+ * 27/07/2016 add - Settigns - Import Content Layouts.
105
+ * 27/07/2016 add - Settigns - Remove Content Layouts.
106
+
107
+
108
  = 2.0.9 =
109
  * 24/06/2016 fix - minor php issue fixed.
110