Version Description
- Tweak: Video Box layout changed to enhance page loading speed.
- Tweak: Added
Show/Hide Overlay Image
option in Video Box widget. - Tweak: Added
Total Number of Posts
option whenPagination
enabled in Blog widget.
Download this release
Release Info
Developer | leap13 |
Plugin | ![]() |
Version | 3.1.2 |
Comparing to | |
See all releases |
Code changes from version 3.1.1 to 3.1.2
- admin/assets/pa-elements-font/css/pa-elements.css +28 -25
- admin/assets/pa-elements-font/fonts/pa-elements.eot +0 -0
- admin/assets/pa-elements-font/fonts/pa-elements.svg +24 -21
- admin/assets/pa-elements-font/fonts/pa-elements.ttf +0 -0
- admin/assets/pa-elements-font/fonts/pa-elements.woff +0 -0
- admin/settings/elements.php +35 -23
- admin/settings/version-control.php +1 -1
- assets/css/premium-addons.css +150 -13
- assets/js/premium-addons.js +87 -23
- premium-addons-for-elementor.php +3 -3
- readme.txt +7 -1
- widgets/premium-blog.php +15 -1
- widgets/premium-videobox.php +499 -437
admin/assets/pa-elements-font/css/pa-elements.css
CHANGED
@@ -41,68 +41,71 @@
|
|
41 |
padding: 2px 3px;
|
42 |
}
|
43 |
.pa-pa-admin-icon:before {
|
44 |
-
content: "\e915";
|
45 |
-
}
|
46 |
-
.pa-video-box:before {
|
47 |
-
content: "\e900";
|
48 |
-
}
|
49 |
-
.pa-vscroll:before {
|
50 |
content: "\e901";
|
51 |
}
|
52 |
-
.pa-
|
53 |
content: "\e902";
|
54 |
}
|
55 |
-
.pa-
|
56 |
content: "\e903";
|
57 |
}
|
58 |
-
.pa-
|
59 |
content: "\e904";
|
60 |
}
|
61 |
-
.pa-
|
62 |
content: "\e905";
|
63 |
}
|
64 |
-
.pa-
|
65 |
content: "\e906";
|
66 |
}
|
67 |
-
.pa-
|
68 |
content: "\e907";
|
69 |
}
|
70 |
-
.pa-
|
71 |
content: "\e908";
|
72 |
}
|
73 |
-
.pa-
|
74 |
content: "\e909";
|
75 |
}
|
76 |
-
.pa-
|
77 |
content: "\e90a";
|
78 |
}
|
79 |
-
.pa-
|
80 |
content: "\e90b";
|
81 |
}
|
82 |
-
.pa-
|
83 |
content: "\e90c";
|
84 |
}
|
85 |
-
.pa-
|
|
|
|
|
|
|
86 |
content: "\e90d";
|
87 |
}
|
88 |
-
.pa-
|
89 |
content: "\e90e";
|
90 |
}
|
91 |
-
.pa-
|
92 |
content: "\e90f";
|
93 |
}
|
94 |
-
.pa-
|
95 |
content: "\e910";
|
96 |
}
|
97 |
-
.pa-
|
98 |
content: "\e911";
|
99 |
}
|
100 |
-
.pa-
|
101 |
content: "\e912";
|
102 |
}
|
103 |
-
.pa-
|
104 |
content: "\e913";
|
105 |
}
|
106 |
-
.pa-
|
107 |
content: "\e914";
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
}
|
41 |
padding: 2px 3px;
|
42 |
}
|
43 |
.pa-pa-admin-icon:before {
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
content: "\e901";
|
45 |
}
|
46 |
+
.pa-banner:before {
|
47 |
content: "\e902";
|
48 |
}
|
49 |
+
.pa-blog:before {
|
50 |
content: "\e903";
|
51 |
}
|
52 |
+
.pa-button:before {
|
53 |
content: "\e904";
|
54 |
}
|
55 |
+
.pa-carousel:before {
|
56 |
content: "\e905";
|
57 |
}
|
58 |
+
.pa-contact-form:before {
|
59 |
content: "\e906";
|
60 |
}
|
61 |
+
.pa-countdown:before {
|
62 |
content: "\e907";
|
63 |
}
|
64 |
+
.pa-counter:before {
|
65 |
content: "\e908";
|
66 |
}
|
67 |
+
.pa-dual-header:before {
|
68 |
content: "\e909";
|
69 |
}
|
70 |
+
.pa-fancy-text:before {
|
71 |
content: "\e90a";
|
72 |
}
|
73 |
+
.pa-grid-icon:before {
|
74 |
content: "\e90b";
|
75 |
}
|
76 |
+
.pa-image-button:before {
|
77 |
content: "\e90c";
|
78 |
}
|
79 |
+
.pa-image-scroll:before {
|
80 |
+
content: "\e900";
|
81 |
+
}
|
82 |
+
.pa-image-separator:before {
|
83 |
content: "\e90d";
|
84 |
}
|
85 |
+
.pa-maps:before {
|
86 |
content: "\e90e";
|
87 |
}
|
88 |
+
.pa-modal-box:before {
|
89 |
content: "\e90f";
|
90 |
}
|
91 |
+
.pa-person:before {
|
92 |
content: "\e910";
|
93 |
}
|
94 |
+
.pa-pricing-table:before {
|
95 |
content: "\e911";
|
96 |
}
|
97 |
+
.pa-progress-bar:before {
|
98 |
content: "\e912";
|
99 |
}
|
100 |
+
.pa-testimonials:before {
|
101 |
content: "\e913";
|
102 |
}
|
103 |
+
.pa-title:before {
|
104 |
content: "\e914";
|
105 |
+
}
|
106 |
+
.pa-vscroll:before {
|
107 |
+
content: "\e915";
|
108 |
+
}
|
109 |
+
.pa-video-box:before {
|
110 |
+
content: "\e916";
|
111 |
}
|
admin/assets/pa-elements-font/fonts/pa-elements.eot
CHANGED
Binary file
|
admin/assets/pa-elements-font/fonts/pa-elements.svg
CHANGED
@@ -7,26 +7,29 @@
|
|
7 |
<font-face units-per-em="1024" ascent="960" descent="-64" />
|
8 |
<missing-glyph horiz-adv-x="1024" />
|
9 |
<glyph unicode=" " horiz-adv-x="512" d="" />
|
10 |
-
<glyph unicode="" glyph-name="pa-
|
11 |
-
<glyph unicode="" glyph-name="pa-
|
12 |
-
<glyph unicode="" glyph-name="pa-
|
13 |
-
<glyph unicode="" glyph-name="pa-
|
14 |
-
<glyph unicode="" glyph-name="pa-
|
15 |
-
<glyph unicode="" glyph-name="pa-
|
16 |
-
<glyph unicode="" glyph-name="pa-
|
17 |
-
<glyph unicode="" glyph-name="pa-
|
18 |
-
<glyph unicode="" glyph-name="pa-
|
19 |
-
<glyph unicode="" glyph-name="pa-
|
20 |
-
<glyph unicode="" glyph-name="pa-
|
21 |
<glyph unicode="" glyph-name="pa-google-maps" d="M666.531 863.185v0l-20.48 7.447-20.48-7.447-249.484-80.058-292.305 93.091v-759.622l269.964-83.782 22.342-7.447 22.342 7.447 249.484 80.058 292.305-93.091v757.76l-273.687 85.644zM353.745 75.636l-227.142 74.473v670.255l227.142-74.473v-670.255zM396.567 745.891l227.142 72.611v-668.393l-227.142-74.473v670.255zM895.535 75.636l-227.142 72.611v670.255l227.142-72.611v-670.255zM666.531 863.185v0 0 0zM623.709 863.185v0 0 0z" />
|
22 |
-
<glyph unicode="" glyph-name="pa-
|
23 |
-
<glyph unicode="" glyph-name="pa-
|
24 |
-
<glyph unicode="" glyph-name="pa-
|
25 |
-
<glyph unicode="" glyph-name="pa-
|
26 |
-
<glyph unicode="" glyph-name="pa-
|
27 |
-
<glyph unicode="" glyph-name="pa-
|
28 |
-
<glyph unicode="" glyph-name="pa-
|
29 |
-
<glyph unicode="" glyph-name="pa-
|
30 |
-
<glyph unicode="" glyph-name="pa-
|
31 |
-
<glyph unicode="" glyph-name="pa-
|
|
|
|
|
|
|
32 |
</font></defs></svg>
|
7 |
<font-face units-per-em="1024" ascent="960" descent="-64" />
|
8 |
<missing-glyph horiz-adv-x="1024" />
|
9 |
<glyph unicode=" " horiz-adv-x="512" d="" />
|
10 |
+
<glyph unicode="" glyph-name="pa-image-scroll" d="M651.636 650.938c-33.513 0-61.44-27.927-61.44-61.44s27.927-61.44 61.44-61.44 61.44 27.927 61.44 61.44c0 33.513-27.927 61.44-61.44 61.44zM651.636 552.262c-20.48 0-35.375 16.756-35.375 35.375 0 20.48 16.756 35.375 35.375 35.375s35.375-14.895 35.375-35.375-16.756-35.375-35.375-35.375zM772.655 721.687h-519.447c-7.447 0-13.033-5.585-13.033-13.033v-521.309c0-7.447 5.585-13.033 13.033-13.033h519.447c7.447 0 13.033 5.585 13.033 13.033v521.309c-1.862 7.447-5.585 13.033-13.033 13.033zM268.102 202.24v109.847l139.636 139.636 249.484-249.484h-389.12zM690.735 202.24c0 0 0 0-1.862 1.862l-126.604 126.604 67.025 67.025 128.465-128.465 1.862-67.025h-68.887zM759.622 304.64l-119.156 119.156c-3.724 3.724-13.033 3.724-18.618 0l-76.335-76.335-130.327 130.327c-5.585 5.585-13.033 5.585-18.618 0l-130.327-130.327v346.298h493.382v-389.12zM891.811 343.738c1.862-1.862 5.585-3.724 9.309-3.724s7.447 1.862 9.309 3.724l94.953 94.953c1.862 1.862 3.724 5.585 3.724 9.309s-1.862 7.447-3.724 9.309l-94.953 94.953c-5.585 5.585-13.033 5.585-18.618 0s-5.585-13.033 0-18.618l85.644-85.644-85.644-85.644c-5.585-5.585-5.585-13.033 0-18.618zM132.189 552.262c-1.862 1.862-5.585 3.724-9.309 3.724s-7.447-1.862-9.309-3.724l-94.953-94.953c-1.862-1.862-3.724-5.585-3.724-9.309s1.862-7.447 3.724-9.309l94.953-94.953c5.585-5.585 13.033-5.585 18.618 0s5.585 13.033 0 18.618l-85.644 85.644 85.644 85.644c5.585 5.585 5.585 13.033 0 18.618zM407.738 68.189c-1.862-1.862-3.724-5.585-3.724-9.309s1.862-7.447 3.724-9.309l94.953-94.953c1.862-1.862 5.585-3.724 9.309-3.724s7.447 1.862 9.309 3.724l94.953 94.953c5.585 5.585 5.585 13.033 0 18.618s-13.033 5.585-18.618 0l-85.644-85.644-85.644 85.644c-5.585 5.585-13.033 5.585-18.618 0zM616.262 827.811c1.862 1.862 3.724 5.585 3.724 9.309s-1.862 7.447-3.724 9.309l-94.953 94.953c-1.862 1.862-5.585 3.724-9.309 3.724s-7.447-1.862-9.309-3.724l-94.953-94.953c-5.585-5.585-5.585-13.033 0-18.618s13.033-5.585 18.618 0l85.644 85.644 85.644-85.644c5.585-5.585 13.033-5.585 18.618 0z" />
|
11 |
+
<glyph unicode="" glyph-name="pa-admin-icon" d="M918.187 628.907c0-13.653-13.653-27.307-27.307-27.307h-249.173c-13.653 0-30.72 10.24-34.133 23.893l-81.92 256c-3.413 13.653 3.413 23.893 6.827 23.893s17.067-6.827 30.72-17.067l314.027-180.907c13.653-6.827 37.547-27.307 40.96-37.547-3.413-6.827 0-27.307 0-40.96zM501.76 881.493l-81.92-256c-3.413-13.653-20.48-23.893-34.133-23.893h-252.587c-13.653 0-27.307 13.653-27.307 27.307s6.827 47.787 10.24 54.613c6.827 6.827 20.48 20.48 34.133 27.307l314.027 180.907c13.653 6.827 30.72 17.067 37.547 17.067 3.413 0 3.413-13.653 0-27.307zM723.627 103.253l-163.84-98.987c-13.653-6.827-44.373-20.48-51.2-17.067-10.24 3.413-27.307 10.24-40.96 17.067l-167.253 95.573c-13.653 6.827-13.653 20.48 0 30.72l191.147 139.947c13.653 6.827 30.72 6.827 44.373 0l191.147-139.947c10.24-6.827 10.24-20.48-3.413-27.307zM918.187 553.813v-286.72c0-13.653-6.827-47.787-10.24-54.613-6.827-6.827-20.48-17.067-34.133-27.307l-81.92-44.373c-13.653-6.827-27.307-3.413-30.72 10.24l-75.093 228.693c-3.413 13.653 0 34.133 13.653 40.96l197.973 143.36c10.24 10.24 20.48 6.827 20.48-10.24zM337.92 383.147l-75.093-228.693c-3.413-13.653-20.48-20.48-30.72-10.24l-78.507 47.787c-13.653 6.827-37.547 27.307-40.96 37.547s-6.827 27.307-6.827 44.373v286.72c0 13.653 10.24 20.48 20.48 10.24l197.973-143.36c13.653-13.653 17.067-30.72 13.653-44.373z" />
|
12 |
+
<glyph unicode="" glyph-name="pa-banner" d="M942.080 900.422h-858.298c-11.171 0-22.342-9.309-22.342-20.48v-860.16c0-11.171 9.309-22.342 22.342-22.342h858.298c11.171 0 22.342 9.309 22.342 22.342v860.16c0 11.171-9.309 20.48-22.342 20.48zM104.262 857.6h817.338v-644.189l-197.353 197.353c-7.447 7.447-22.342 7.447-29.789 0l-128.465-126.604-215.971 214.109c-9.309 9.309-22.342 9.309-29.789 0l-215.971-214.109v573.44zM104.262 42.124v182.458l230.865 230.865 413.324-413.324c0-1.862-644.189-1.862-644.189 0zM921.6 42.124h-111.709c0 0 0 1.862-1.862 1.862l-212.247 208.524 111.709 111.709 212.247-212.247 1.862-109.847zM744.727 582.051c-55.855 0-100.538 44.684-100.538 100.538s44.684 100.538 100.538 100.538 100.538-44.684 100.538-100.538-44.684-100.538-100.538-100.538zM744.727 740.305c-31.651 0-57.716-26.065-57.716-57.716s26.065-57.716 57.716-57.716 57.716 26.065 57.716 57.716-26.065 57.716-57.716 57.716z" />
|
13 |
+
<glyph unicode="" glyph-name="pa-blog" d="M837.818 19.782h-733.556c-11.171 0-22.342 9.309-22.342 22.342v729.833c0 11.171 9.309 22.342 22.342 22.342h344.436v-42.822h-323.956v-688.873h688.873v322.095h42.822v-346.298c0-9.309-9.309-18.618-18.618-18.618zM558.545 312.087h-161.978c-11.171 0-22.342 9.309-22.342 22.342v160.116c0 5.585 1.862 11.171 5.585 14.895l364.916 361.193c7.447 7.447 22.342 7.447 29.789 0l161.978-161.978c7.447-9.309 7.447-22.342 0-29.789l-363.055-361.193c-3.724-3.724-9.309-5.585-14.895-5.585zM417.047 354.909h130.327l340.713 340.713-130.327 132.189-340.713-342.575v-130.327z" />
|
14 |
+
<glyph unicode="" glyph-name="pa-button" d="M919.738 820.364h-813.615c-52.131 0-96.815-42.822-96.815-96.815v-284.858c0-52.131 42.822-96.815 96.815-96.815h405.876v27.927h-405.876c-37.236 0-68.887 29.789-68.887 68.887v284.858c0 37.236 29.789 68.887 68.887 68.887h811.753c37.236 0 68.887-29.789 68.887-68.887v-284.858c0-37.236-29.789-68.887-68.887-68.887h-52.131l31.651-27.927h20.48c52.131 0 96.815 42.822 96.815 96.815v284.858c0 53.993-42.822 96.815-94.953 96.815zM884.364 274.851c9.309 0 13.033 11.171 5.585 16.756l-55.855 50.269-31.651 27.927-243.898 227.142c-5.585 5.585-16.756 1.862-16.756-7.447v-452.422c0-9.309 9.309-13.033 16.756-7.447l83.782 80.058c5.585 3.724 13.033 3.724 14.895-3.724l55.855-126.604c3.724-5.585 9.309-7.447 13.033-5.585l83.782 37.236c5.585 3.724 7.447 9.309 5.585 13.033l-55.855 126.604c-3.724 5.585 1.862 13.033 9.309 14.895l115.433 9.309zM768.931 127.767l-26.065-9.309c-5.585-3.724-11.171 0-13.033 5.585l-59.578 137.775c-3.724 5.585-11.171 9.309-14.895 3.724l-63.302-61.44c-5.585-5.585-16.756-1.862-16.756 7.447v305.338c0 9.309 9.309 13.033 16.756 7.447l169.425-154.531 31.651-27.927 26.065-24.204c7.447-5.585 3.724-16.756-5.585-16.756l-89.367-5.585c-7.447 0-11.171-7.447-9.309-14.895l61.44-139.636c1.862-3.724-1.862-9.309-7.447-13.033z" />
|
15 |
+
<glyph unicode="" glyph-name="pa-carousel" d="M687.011 189.207c-26.065 0-46.545-20.48-46.545-46.545s20.48-46.545 46.545-46.545 46.545 20.48 46.545 46.545-20.48 46.545-46.545 46.545zM687.011 114.735c-14.895 0-27.927 13.033-27.927 27.927s13.033 27.927 27.927 27.927c14.895 0 27.927-13.033 27.927-27.927s-13.033-27.927-27.927-27.927zM336.989 189.207c-26.065 0-46.545-20.48-46.545-46.545s20.48-46.545 46.545-46.545c26.065 0 46.545 20.48 46.545 46.545s-20.48 46.545-46.545 46.545zM336.989 114.735c-14.895 0-27.927 13.033-27.927 27.927s13.033 27.927 27.927 27.927c14.895 0 27.927-13.033 27.927-27.927 1.862-14.895-11.171-27.927-27.927-27.927zM512 189.207c-26.065 0-46.545-20.48-46.545-46.545s20.48-46.545 46.545-46.545c27.927 0 46.545 20.48 46.545 46.545s-20.48 46.545-46.545 46.545zM512 114.735c-14.895 0-27.927 13.033-27.927 27.927s13.033 27.927 27.927 27.927c16.756 0 27.927-13.033 27.927-27.927s-13.033-27.927-27.927-27.927zM761.484 278.575h-497.105c-7.447 0-13.033 5.585-13.033 13.033v497.105c0 7.447 5.585 13.033 13.033 13.033h497.105c7.447 0 13.033-5.585 13.033-13.033v-497.105c0-7.447-7.447-13.033-13.033-13.033zM277.411 304.64h471.040v471.040h-471.040v-471.040zM152.669 801.745h-135.913v-26.065h122.88v-471.040h-122.88v-26.065h135.913c7.447 0 13.033 5.585 13.033 13.033v497.105c0 7.447-5.585 13.033-13.033 13.033zM858.298 788.713v-497.105c0-7.447 5.585-13.033 13.033-13.033h135.913v26.065h-122.88v471.040h122.88v26.065h-135.913c-7.447 0-13.033-5.585-13.033-13.033z" />
|
16 |
+
<glyph unicode="" glyph-name="pa-contact-form" d="M1012.829 526.196c0 1.862-1.862 3.724-1.862 5.585s-1.862 3.724-3.724 3.724c-1.862 1.862-3.724 3.724-5.585 3.724v0l-161.978 83.782v85.644c0 1.862 0 3.724 0 3.724 0 3.724-3.724 9.309-5.585 11.171l-202.938 202.938c0 0 0 1.862-1.862 1.862-1.862 1.862-1.862 1.862-3.724 1.862-3.724 1.862-5.585 1.862-9.309 1.862h-411.462c-11.171 0-22.342-9.309-22.342-22.342v-288.582l-161.978-85.644-1.862-1.862c0 0 0 0-1.862-1.862s-1.862-3.724-3.724-3.724c0-1.862-1.862-3.724-1.862-3.724v0-1.862c0-1.862 0-3.724 0-3.724v-536.204c0-11.171 9.309-20.48 20.48-20.48h960.698c11.171 0 20.48 9.309 20.48 20.48v538.065c0 1.862 0 3.724 0 5.585zM839.68 574.604l104.262-53.993-104.262-44.684v98.676zM634.88 863.185l134.051-134.051h-134.051v134.051zM227.142 892.975h368.64v-184.32c0-11.171 9.309-22.342 22.342-22.342h182.458v-229.004l-286.72-122.88-284.858 124.742v433.804zM184.32 576.465v-100.538l-104.262 46.545 104.262 53.993zM971.869 6.749h-919.738v482.211l450.56-197.353c5.585-1.862 11.171-1.862 16.756 0l454.284 197.353v-482.211z" />
|
17 |
+
<glyph unicode="" glyph-name="pa-countdown" d="M917.876 861.324h-223.418v35.375c0 11.171-9.309 20.48-22.342 20.48s-20.48-9.309-20.48-20.48v-35.375h-282.996v35.375c0 11.171-9.309 20.48-22.342 20.48-11.171 0-22.342-9.309-22.342-20.48v-35.375h-223.418c-9.309 0-18.618-9.309-18.618-20.48v-837.818c0-11.171 9.309-22.342 22.342-22.342h815.476c11.171 0 22.342 9.309 22.342 22.342v837.818c-1.862 11.171-11.171 20.48-24.204 20.48zM124.742 818.502h201.076v-44.684c0-11.171 9.309-22.342 22.342-22.342 11.171 0 22.342 9.309 22.342 22.342v44.684h284.858v-44.684c0-11.171 9.309-22.342 22.342-22.342s22.342 9.309 22.342 22.342v44.684h201.076v-148.945h-776.378v148.945zM897.396 25.367h-772.655v601.367h772.655v-601.367zM385.396 140.8h-40.96v262.516c0 22.342 0 42.822 1.862 61.44-3.724-3.724-7.447-7.447-11.171-11.171-5.585-3.724-24.204-20.48-61.44-48.407l-22.342 27.927 96.815 74.473h37.236v-366.778zM571.578 140.8l152.669 329.542h-201.076v39.098h245.76v-33.513l-150.807-335.127h-46.545z" />
|
18 |
+
<glyph unicode="" glyph-name="pa-counter" d="M420.771 265.542h-40.96v258.793c0 22.342 0 42.822 1.862 61.44-3.724-3.724-7.447-7.447-11.171-11.171s-24.204-20.48-59.578-48.407l-22.342 27.927 94.953 72.611h35.375c1.862 1.862 1.862-361.193 1.862-361.193zM660.945 265.542h-40.96v258.793c0 22.342 0 42.822 1.862 61.44-3.724-3.724-7.447-7.447-11.171-11.171s-24.204-20.48-59.578-48.407l-22.342 27.927 94.953 72.611h35.375v-361.193zM512 939.52c-279.273 0-504.553-221.556-504.553-491.52s225.28-489.658 504.553-489.658 504.553 219.695 504.553 489.658-225.28 491.52-504.553 491.52zM512 8.611c-251.345 0-456.145 197.353-456.145 439.389s204.8 439.389 456.145 439.389 456.145-197.353 456.145-439.389-204.8-439.389-456.145-439.389z" />
|
19 |
+
<glyph unicode="" glyph-name="pa-dual-heading" d="M990.487 222.72h-93.091c-11.171 0-18.618 7.447-18.618 16.756s7.447 16.756 18.618 16.756h27.927v173.149h-255.069v-173.149h27.927c11.171 0 18.618-7.447 18.618-16.756s-9.309-16.756-18.618-16.756h-93.091c-11.171 0-18.618 7.447-18.618 16.756s7.447 16.756 18.618 16.756h27.927v383.535h-27.927c-11.171 0-18.618 7.447-18.618 16.756s9.309 16.756 18.618 16.756h93.091c11.171 0 18.618-7.447 18.618-16.756s-7.447-16.756-18.618-16.756h-27.927v-175.011h253.207v175.011h-27.927c-11.171 0-18.618 7.447-18.618 16.756s9.309 16.756 18.618 16.756h93.091c11.171 0 18.618-7.447 18.618-16.756s-9.309-16.756-18.618-16.756h-27.927v-381.673h26.065c11.171 0 18.618-7.447 18.618-16.756 3.724-11.171-3.724-18.618-14.895-18.618zM897.396 245.062c-3.724 0-7.447-1.862-7.447-5.585s3.724-5.585 7.447-5.585h93.091c3.724 0 7.447 1.862 7.447 5.585s-3.724 5.585-7.447 5.585h-39.098v405.876h39.098c3.724 0 7.447 1.862 7.447 5.585s-3.724 5.585-7.447 5.585h-93.091c-3.724 0-7.447-1.862-7.447-5.585s3.724-5.585 7.447-5.585h39.098v-197.353h-277.411v197.353h39.098c3.724 0 7.447 1.862 7.447 5.585s-3.724 5.585-7.447 5.585h-93.091c-3.724 0-7.447-1.862-7.447-5.585s3.724-5.585 7.447-5.585h39.098v-405.876h-39.098c-3.724 0-7.447-1.862-7.447-5.585s3.724-5.585 7.447-5.585h93.091c3.724 0 7.447 1.862 7.447 5.585s-3.724 5.585-7.447 5.585h-39.098v195.491h275.549v-197.353l-37.236 1.862zM437.527 233.891c0-7.447-5.585-11.171-13.033-11.171h-96.815c-7.447 0-13.033 5.585-13.033 11.171 0 7.447 5.585 11.171 13.033 11.171h33.513v189.905h-271.825v-189.905h33.513c7.447 0 13.033-5.585 13.033-11.171 0-7.447-7.447-11.171-13.033-11.171h-94.953c-7.447 0-13.033 5.585-13.033 11.171 0 7.447 5.585 11.171 13.033 11.171h33.513v404.015h-33.513c-7.447 0-13.033 5.585-13.033 11.171s5.585 11.171 13.033 11.171h96.815c7.447 0 13.033-5.585 13.033-11.171s-5.585-11.171-13.033-11.171h-35.375v-189.905h271.825v189.905h-33.513c-7.447 0-13.033 5.585-13.033 11.171s5.585 11.171 13.033 11.171h96.815c7.447 0 13.033-5.585 13.033-11.171s-5.585-11.171-13.033-11.171h-33.513v-404.015h33.513c5.585 0 13.033-3.724 13.033-11.171z" />
|
20 |
+
<glyph unicode="" glyph-name="pa-fancy-text" d="M860.16 161.28c-26.065 0-50.269 11.171-65.164 31.651l-9.309 11.171-9.309-11.171c-16.756-20.48-40.96-31.651-65.164-31.651-7.447 0-13.033 5.585-13.033 13.033s5.585 13.033 13.033 13.033c33.513 0 61.44 31.651 61.44 70.749v176.873h-37.236c-7.447 0-13.033 5.585-13.033 13.033s5.585 13.033 13.033 13.033h37.236v176.873c0 39.098-27.927 70.749-61.44 70.749-7.447 0-13.033 5.585-13.033 13.033s5.585 13.033 13.033 13.033c26.065 0 50.269-11.171 65.164-31.651l9.309-11.171 9.309 11.171c16.756 20.48 40.96 31.651 65.164 31.651 7.447 0 13.033-5.585 13.033-13.033s-5.585-13.033-13.033-13.033c-33.513 0-61.44-31.651-61.44-70.749v-176.873h37.236c7.447 0 13.033-5.585 13.033-13.033s-5.585-13.033-13.033-13.033h-37.236v-176.873c0-39.098 27.927-70.749 61.44-70.749 7.447 0 13.033-5.585 13.033-13.033s-7.447-13.033-13.033-13.033zM342.575 647.215c0-7.447-5.585-13.033-13.033-13.033h-137.775c-7.447 0-13.033 5.585-13.033 13.033s7.447 13.033 13.033 13.033h135.913c9.309 0 14.895-5.585 14.895-13.033zM342.575 254.371c0-7.447-5.585-13.033-13.033-13.033h-137.775c-7.447 0-13.033 5.585-13.033 13.033s7.447 13.033 13.033 13.033h135.913c9.309 1.862 14.895-3.724 14.895-13.033zM616.262 254.371c0-7.447-5.585-13.033-13.033-13.033h-137.775c-7.447 0-13.033 5.585-13.033 13.033s7.447 13.033 13.033 13.033h135.913c7.447 1.862 14.895-3.724 14.895-13.033zM1012.829 367.942v-78.196c1.862-26.065-20.48-48.407-46.545-48.407-7.447 0-14.895 5.585-14.895 13.033 0 3.724 1.862 7.447 3.724 11.171 1.862 1.862 5.585 3.724 11.171 3.724 11.171 0 20.48 7.447 20.48 20.48v78.196c0 7.447 7.447 13.033 13.033 13.033 7.447 0 13.033-5.585 13.033-13.033zM1001.658 522.473c-7.447 0-13.033 5.585-13.033 13.033v78.196c0 11.171-9.309 18.618-20.48 20.48-3.724 0-7.447 1.862-11.171 3.724s-3.724 3.724-3.724 7.447c0 7.447 7.447 13.033 13.033 13.033 26.065 0 48.407-20.48 48.407-46.545v-78.196c1.862-5.585-5.585-11.171-13.033-11.171zM616.262 647.215c0-7.447-5.585-13.033-13.033-13.033h-137.775c-7.447 0-13.033 5.585-13.033 13.033s7.447 13.033 13.033 13.033h135.913c7.447 0 14.895-5.585 14.895-13.033zM72.611 647.215c0-3.724-1.862-7.447-3.724-11.171s-7.447-3.724-11.171-3.724c-11.171 0-20.48-7.447-20.48-18.618v-78.196c0-7.447-7.447-13.033-14.895-13.033s-13.033 5.585-13.033 13.033v78.196c0 26.065 22.342 46.545 48.407 46.545 7.447 1.862 14.895-3.724 14.895-13.033zM70.749 254.371c0-5.585-5.585-13.033-13.033-13.033-26.065 0-48.407 22.342-48.407 46.545v78.196c0 7.447 7.447 13.033 13.033 13.033 7.447 0 13.033-5.585 13.033-13.033v-78.196c0-11.171 9.309-18.618 20.48-20.48 3.724 0 7.447-1.862 11.171-3.724 1.862-1.862 3.724-5.585 3.724-9.309z" />
|
21 |
<glyph unicode="" glyph-name="pa-google-maps" d="M666.531 863.185v0l-20.48 7.447-20.48-7.447-249.484-80.058-292.305 93.091v-759.622l269.964-83.782 22.342-7.447 22.342 7.447 249.484 80.058 292.305-93.091v757.76l-273.687 85.644zM353.745 75.636l-227.142 74.473v670.255l227.142-74.473v-670.255zM396.567 745.891l227.142 72.611v-668.393l-227.142-74.473v670.255zM895.535 75.636l-227.142 72.611v670.255l227.142-72.611v-670.255zM666.531 863.185v0 0 0zM623.709 863.185v0 0 0z" />
|
22 |
+
<glyph unicode="" glyph-name="pa-grid" d="M474.764 485.236h-431.942v433.804h431.942v-433.804zM85.644 529.92h346.298v344.436h-346.298v-344.436zM981.178 485.236h-431.942v433.804h431.942v-433.804zM592.058 529.92h346.298v344.436h-346.298v-344.436zM474.764-23.040h-431.942v433.804h431.942v-433.804zM85.644 19.782h346.298v346.298h-346.298v-346.298zM981.178-23.040h-431.942v433.804h431.942v-433.804zM592.058 19.782h346.298v346.298h-346.298v-346.298z" />
|
23 |
+
<glyph unicode="" glyph-name="pa-image-button" d="M1010.967 207.825l-303.476 180.596c-3.724 1.862-7.447 1.862-13.033 0-3.724-3.724-5.585-7.447-5.585-11.171l74.473-348.16c0-5.585 5.585-7.447 7.447-7.447 5.585-1.862 9.309 1.862 11.171 5.585l52.131 74.473c0 1.862 1.862 1.862 3.724 1.862s1.862 0 3.724-1.862l63.302-89.367c1.862-3.724 7.447-5.585 9.309-5.585s5.585 0 7.447 1.862l57.716 40.96c3.724 1.862 3.724 5.585 5.585 7.447 0 3.724 0 7.447-1.862 7.447l-63.302 89.367c0 0 0 1.862 0 3.724s1.862 1.862 1.862 1.862l89.367 24.204c5.585 1.862 7.447 5.585 7.447 9.309s-3.724 13.033-7.447 14.895zM867.607 178.036c-1.862-3.724 0-7.447 1.862-11.171l70.749-96.815c1.862-1.862 1.862-3.724 0-5.585l-18.618-13.033h-1.862c-1.862 0-1.862 0-3.724 1.862l-70.749 96.815c-1.862 3.724-7.447 5.585-9.309 5.585v0c-3.724 0-7.447-1.862-9.309-5.585l-39.098-57.716c-1.862-1.862-3.724-1.862-3.724-1.862s-3.724 0-3.724 3.724l-48.407 232.727c0 1.862 1.862 3.724 1.862 3.724s1.862 1.862 3.724 0l204.8-122.88c1.862-1.862 1.862-3.724 1.862-3.724s0-1.862-3.724-3.724l-67.025-18.618c0 0-3.724-1.862-5.585-3.724zM275.549 755.2c-52.131 0-94.953-42.822-94.953-94.953s40.96-94.953 94.953-94.953c52.131 0 94.953 42.822 94.953 94.953 1.862 53.993-42.822 94.953-94.953 94.953zM275.549 602.531c-31.651 0-57.716 24.204-57.716 57.716 0 31.651 24.204 57.716 57.716 57.716s57.716-24.204 57.716-57.716c0-29.789-26.065-57.716-57.716-57.716zM891.811 440.553c-7.447-7.447-18.618-7.447-26.065-1.862l-186.182 171.287-150.807-165.702 27.927-27.927c3.724-3.724 5.585-7.447 5.585-13.033s-1.862-9.309-5.585-13.033c-7.447-7.447-20.48-7.447-26.065 0l-121.018 119.156-271.825-236.451c-3.724-3.724-7.447-5.585-13.033-5.585s-9.309 1.862-13.033 7.447-7.447 20.48 1.862 26.065l284.858 251.345c7.447 7.447 18.618 7.447 24.204 0l76.335-78.196 161.978 176.873c3.724 3.724 7.447 7.447 13.033 7.447s9.309-1.862 13.033-5.585l201.076-184.32c9.309-9.309 9.309-20.48 3.724-27.927zM979.316 870.633v-534.342c0-9.309-7.447-18.618-18.618-18.618s-18.618 7.447-18.618 18.618v515.724h-897.396v-698.182h599.505c9.309 0 18.618-7.447 18.618-18.618s-7.447-18.618-18.618-18.618h-618.124c-9.309 0-18.618 7.447-18.618 18.618v735.418c0 9.309 7.447 18.618 18.618 18.618h936.495c9.309 0 16.756-7.447 16.756-18.618z" />
|
24 |
+
<glyph unicode="" glyph-name="pa-image-separator" d="M651.636 528.058c-33.513 0-61.44 27.927-61.44 61.44s27.927 61.44 61.44 61.44 61.44-27.927 61.44-61.44-27.927-61.44-61.44-61.44zM651.636 623.011c-18.618 0-35.375-14.895-35.375-35.375 0-18.618 14.895-35.375 35.375-35.375 18.618 0 35.375 14.895 35.375 35.375s-16.756 35.375-35.375 35.375zM997.935 459.171h-214.109v249.484c0 7.447-5.585 13.033-13.033 13.033h-519.447c-7.447 0-13.033-5.585-13.033-13.033v-249.484h-212.247c-5.585 0-11.171-5.585-11.171-11.171s5.585-11.171 11.171-11.171h212.247v-249.484c0-7.447 5.585-13.033 13.033-13.033h519.447c7.447 0 13.033 5.585 13.033 13.033v249.484h212.247c5.585 0 11.171 5.585 11.171 11.171s-3.724 11.171-9.309 11.171zM266.24 202.24v109.847l139.636 139.636 249.484-249.484h-389.12zM757.76 202.24h-68.887c0 0 0 0-1.862 1.862l-126.604 126.604 67.025 67.025 128.465-128.465v-67.025zM757.76 304.64l-119.156 119.156c-3.724 3.724-13.033 3.724-18.618 0l-76.335-76.335-130.327 130.327c-5.585 5.585-13.033 5.585-18.618 0l-130.327-130.327v346.298h493.382v-389.12z" />
|
25 |
+
<glyph unicode="" glyph-name="pa-modal-box" d="M925.324 881.804h-822.924c-11.171 0-22.342-9.309-22.342-20.48v-822.924c0-11.171 9.309-22.342 22.342-22.342h822.924c11.171 0 20.48 9.309 20.48 22.342v822.924c0 11.171-11.171 20.48-20.48 20.48zM124.742 838.982h778.24v-141.498h-778.24v141.498zM902.982 60.742h-778.24v593.92h778.24v-593.92zM856.436 747.753h-98.676c-11.171 0-22.342 9.309-22.342 22.342s9.309 22.342 22.342 22.342h98.676c11.171 0 22.342-9.309 22.342-22.342s-9.309-22.342-22.342-22.342z" />
|
26 |
+
<glyph unicode="" glyph-name="pa-persons" d="M601.367 431.244c81.92 35.375 139.636 117.295 139.636 214.109 0 128.465-102.4 232.727-229.004 232.727s-229.004-104.262-229.004-232.727c0-94.953 57.716-178.735 139.636-214.109-186.182-40.96-327.68-210.385-327.68-413.324h42.822c0 210.385 167.564 379.811 374.225 379.811s374.225-171.287 374.225-379.811h42.822c0 202.938-139.636 372.364-327.68 413.324zM325.818 645.353c0 104.262 83.782 189.905 186.182 189.905s186.182-85.644 186.182-189.905-83.782-189.905-186.182-189.905-186.182 85.644-186.182 189.905z" />
|
27 |
+
<glyph unicode="" glyph-name="pa-pricing-table" d="M640.465 371.665c0-50.269-40.96-93.091-93.091-93.091h-11.171c-1.862 0-3.724-1.862-3.724-3.724v-48.407c0-11.171-9.309-18.618-18.618-18.618-11.171 0-18.618 9.309-18.618 18.618v46.545c0 1.862-1.862 3.724-3.724 3.724h-67.025c-11.171 0-18.618 9.309-18.618 18.618s9.309 18.618 18.618 18.618h122.88c31.651 0 55.855 24.204 55.855 55.855s-24.204 55.855-55.855 55.855h-68.887c-52.131 0-93.091 40.96-93.091 93.091s40.96 93.091 93.091 93.091h11.171c1.862 0 3.724 1.862 3.724 3.724v48.407c0 9.309 9.309 18.618 18.618 18.618s18.618-9.309 18.618-18.618v-48.407c0-1.862 1.862-3.724 3.724-3.724h63.302c9.309 0 18.618-9.309 18.618-18.618 0-11.171-9.309-18.618-18.618-18.618h-121.018c-31.651 0-55.855-26.065-55.855-55.855 0-31.651 26.065-55.855 55.855-55.855h68.887c52.131 1.862 94.953-39.098 94.953-91.229zM841.542 930.211h-657.222c-22.342 0-39.098-18.618-39.098-39.098v-888.087c0-22.342 18.618-39.098 39.098-39.098h657.222c22.342 0 39.098 18.618 39.098 39.098v888.087c-1.862 20.48-18.618 39.098-39.098 39.098zM834.095 6.749h-644.189v878.778h646.051c0 0 0-878.778-1.862-878.778z" />
|
28 |
+
<glyph unicode="" glyph-name="pa-progress-bar" d="M942.080 155.695v-42.822h-409.6v-68.887h-42.822v68.887h-407.738v42.822h407.738v68.887h42.822v-68.887zM942.080 784.989v-42.822h-586.473v-68.887h-42.822v68.887h-230.865v42.822h230.865v68.887h42.822v-68.887zM822.924 470.342v-42.822h-117.295v-68.887h-42.822v68.887h-580.887v42.822h580.887v68.887h42.822v-68.887z" />
|
29 |
+
<glyph unicode="" glyph-name="pa-testimonials" d="M318.371 615.564h383.535v-42.822h-383.535v42.822zM318.371 474.065h383.535v-42.822h-383.535v42.822zM182.458 86.807l53.993 173.149c-96.815 53.993-154.531 152.669-154.531 262.516 0 167.564 137.775 301.615 305.338 301.615h247.622c167.564 1.862 305.338-134.051 305.338-301.615s-137.775-301.615-305.338-301.615h-160.116l-275.549-148.945c-9.309-5.585-20.48 3.724-16.756 14.895zM389.12 783.127c-145.222 0-262.516-117.295-262.516-260.655 0-100.538 55.855-188.044 147.084-232.727l16.756-7.447-42.822-137.775 219.695 119.156h169.425c145.222 0 262.516 117.295 262.516 258.793s-117.295 260.655-262.516 260.655h-247.622z" />
|
30 |
+
<glyph unicode="" glyph-name="pa-title" d="M822.924 898.56h-619.985c-13.033 0-22.342-9.309-22.342-22.342v-102.4c0-13.033 9.309-22.342 22.342-22.342s22.342 7.447 22.342 20.48v80.058h264.378v-809.891h-55.855c-13.033 0-22.342-9.309-22.342-22.342s9.309-22.342 22.342-22.342h156.393c13.033 0 22.342 9.309 22.342 22.342s-9.309 22.342-22.342 22.342h-55.855v809.891h264.378v-80.058c0-13.033 9.309-22.342 22.342-22.342s22.342 9.309 22.342 22.342v104.262c1.862 11.171-9.309 22.342-20.48 22.342v0z" />
|
31 |
+
<glyph unicode="" glyph-name="pa-vertical-scroll" d="M512 898.56c-65.164 0-121.018-53.993-121.018-121.018s53.993-121.018 121.018-121.018c67.025 0 121.018 53.993 121.018 121.018 1.862 67.025-52.131 121.018-121.018 121.018zM512 690.036c-48.407 0-87.505 39.098-87.505 87.505s39.098 87.505 87.505 87.505 87.505-39.098 87.505-87.505c0-48.407-39.098-87.505-87.505-87.505zM512 243.2c-65.164 0-121.018-55.855-121.018-121.018 0-67.025 53.993-121.018 121.018-121.018s121.018 53.993 121.018 121.018c1.862 65.164-52.131 121.018-121.018 121.018zM512 34.676c-48.407 0-87.505 39.098-87.505 87.505s39.098 87.505 87.505 87.505 87.505-39.098 87.505-87.505-39.098-87.505-87.505-87.505zM512 570.88c-67.025 0-121.018-53.993-121.018-121.018s55.855-122.88 121.018-122.88c67.025 0 121.018 53.993 121.018 121.018 1.862 68.887-52.131 122.88-121.018 122.88zM512 362.356c-48.407 0-87.505 39.098-87.505 87.505s39.098 87.505 87.505 87.505 87.505-39.098 87.505-87.505-39.098-87.505-87.505-87.505z" />
|
32 |
+
<glyph unicode="" glyph-name="pa-video-box" d="M703.767 457.309l-284.858 210.385c-5.585 3.724-14.895 0-14.895-7.447v-422.633c0-7.447 9.309-11.171 14.895-7.447l286.72 210.385c3.724 5.585 3.724 13.033-1.862 16.756zM446.836 306.502v282.996l191.767-141.498-191.767-141.498zM512 930.211c-273.687 0-495.244-217.833-495.244-482.211s223.418-482.211 495.244-482.211c273.687 0 495.244 215.971 495.244 482.211s-221.556 482.211-495.244 482.211zM512 19.782c-247.622 0-446.836 193.629-446.836 430.080s199.215 430.080 446.836 430.080 446.836-193.629 446.836-430.080-201.076-430.080-446.836-430.080z" />
|
33 |
+
<glyph unicode="" glyph-name="horizontal-mouse-scroll" d="M693.248 523.776c0 98.304-79.872 177.152-177.152 177.152h-8.192c-98.304 0-177.152-79.872-177.152-177.152v-150.528c0-98.304 79.872-177.152 177.152-177.152h8.192c98.304 0 177.152 79.872 177.152 177.152v150.528zM663.552 372.224c0-40.96-16.384-77.824-43.008-104.448s-63.488-43.008-104.448-43.008h-8.192c-40.96 0-77.824 16.384-104.448 43.008s-43.008 63.488-43.008 104.448v151.552c0 40.96 16.384 77.824 43.008 104.448s63.488 43.008 104.448 43.008h8.192c40.96 0 77.824-16.384 104.448-43.008s43.008-63.488 43.008-104.448v-151.552zM512 551.424c-8.192 0-15.36-7.168-15.36-15.36v-44.032c0-8.192 7.168-15.36 15.36-15.36s15.36 7.168 15.36 15.36v44.032c-1.024 8.192-7.168 15.36-15.36 15.36zM54.272 457.216c-4.096-5.12-4.096-13.312 0-18.432l59.392-74.752c5.12-6.144 14.336-7.168 20.48-2.048s7.168 14.336 2.048 20.48v0l-51.2 65.536 52.224 65.536c5.12 6.144 4.096 15.36-2.048 20.48s-15.36 4.096-20.48-2.048l-60.416-74.752zM886.784 382.464c-5.12-6.144-4.096-15.36 2.048-20.48s15.36-4.096 20.48 2.048l59.392 74.752c4.096 5.12 4.096 13.312 0 18.432l-59.392 74.752c-5.12 6.144-14.336 7.168-20.48 2.048s-7.168-14.336-2.048-20.48v0l52.224-65.536-52.224-65.536z" />
|
34 |
+
<glyph unicode="" glyph-name="vertical-mouse-scroll" d="M693.248 523.776c0 98.304-79.872 177.152-177.152 177.152h-8.192c-98.304 0-177.152-79.872-177.152-177.152v-150.528c0-98.304 79.872-177.152 177.152-177.152h8.192c98.304 0 177.152 79.872 177.152 177.152v150.528zM663.552 372.224c0-40.96-16.384-77.824-43.008-104.448s-63.488-43.008-104.448-43.008h-8.192c-40.96 0-77.824 16.384-104.448 43.008s-43.008 63.488-43.008 104.448v151.552c0 40.96 16.384 77.824 43.008 104.448s63.488 43.008 104.448 43.008h8.192c40.96 0 77.824-16.384 104.448-43.008s43.008-63.488 43.008-104.448v-151.552zM512 551.424c-8.192 0-15.36-7.168-15.36-15.36v-44.032c0-8.192 7.168-15.36 15.36-15.36s15.36 7.168 15.36 15.36v44.032c-1.024 8.192-7.168 15.36-15.36 15.36zM502.784-9.728c5.12-4.096 13.312-4.096 18.432 0l74.752 59.392c6.144 5.12 7.168 14.336 2.048 20.48s-14.336 7.168-20.48 2.048v0l-65.536-51.2-65.536 52.224c-6.144 5.12-15.36 4.096-20.48-2.048s-4.096-15.36 2.048-20.48l74.752-60.416zM577.536 822.784c6.144-5.12 15.36-4.096 20.48 2.048s4.096 15.36-2.048 20.48l-74.752 59.392c-5.12 4.096-13.312 4.096-18.432 0l-74.752-59.392c-6.144-5.12-7.168-14.336-2.048-20.48s14.336-7.168 20.48-2.048v0l65.536 52.224 65.536-52.224z" />
|
35 |
</font></defs></svg>
|
admin/assets/pa-elements-font/fonts/pa-elements.ttf
CHANGED
Binary file
|
admin/assets/pa-elements-font/fonts/pa-elements.woff
CHANGED
Binary file
|
admin/settings/elements.php
CHANGED
@@ -8,7 +8,7 @@ class PA_admin_settings {
|
|
8 |
|
9 |
protected $page_slug = 'premium-addons';
|
10 |
|
11 |
-
public static $pa_elements_keys = ['premium-banner', 'premium-blog','premium-carousel', 'premium-countdown','premium-counter','premium-dual-header','premium-fancytext','premium-image-separator','premium-maps','premium-modalbox','premium-person','premium-progressbar','premium-testimonials','premium-title','premium-videobox','premium-pricing-table','premium-button','premium-contactform', 'premium-image-button', 'premium-grid','premium-vscroll'];
|
12 |
|
13 |
private $pa_default_settings;
|
14 |
|
@@ -186,17 +186,26 @@ class PA_admin_settings {
|
|
186 |
<span class="slider round"></span>
|
187 |
</label>
|
188 |
</td>
|
189 |
-
<th><?php echo
|
190 |
<td>
|
191 |
<label class="switch">
|
192 |
-
<input type="checkbox" id="premium-image-
|
193 |
<span class="slider round"></span>
|
194 |
</label>
|
195 |
</td>
|
|
|
196 |
</tr>
|
197 |
|
198 |
<tr>
|
199 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
<th><?php echo sprintf("%s Maps",$prefix); ?></th>
|
201 |
<td>
|
202 |
<label class="switch">
|
@@ -204,6 +213,10 @@ class PA_admin_settings {
|
|
204 |
<span class="slider round"></span>
|
205 |
</label>
|
206 |
</td>
|
|
|
|
|
|
|
|
|
207 |
<th><?php echo sprintf("%s Modal Box",$prefix); ?></th>
|
208 |
<td>
|
209 |
<label class="switch">
|
@@ -211,9 +224,6 @@ class PA_admin_settings {
|
|
211 |
<span class="slider round"></span>
|
212 |
</label>
|
213 |
</td>
|
214 |
-
</tr>
|
215 |
-
|
216 |
-
<tr>
|
217 |
<th><?php echo sprintf("%s Person",$prefix); ?></th>
|
218 |
<td>
|
219 |
<label class="switch">
|
@@ -221,6 +231,11 @@ class PA_admin_settings {
|
|
221 |
<span class="slider round"></span>
|
222 |
</label>
|
223 |
</td>
|
|
|
|
|
|
|
|
|
|
|
224 |
<th><?php echo sprintf("%s Progress Bar",$prefix); ?></th>
|
225 |
<td>
|
226 |
<label class="switch">
|
@@ -228,10 +243,6 @@ class PA_admin_settings {
|
|
228 |
<span class="slider round"></span>
|
229 |
</label>
|
230 |
</td>
|
231 |
-
</tr>
|
232 |
-
</tr>
|
233 |
-
|
234 |
-
<tr>
|
235 |
<th><?php echo sprintf("%s Testimonials",$prefix); ?></th>
|
236 |
<td>
|
237 |
<label class="switch">
|
@@ -239,6 +250,9 @@ class PA_admin_settings {
|
|
239 |
<span class="slider round"></span>
|
240 |
</label>
|
241 |
</td>
|
|
|
|
|
|
|
242 |
<th><?php echo sprintf("%s Title",$prefix); ?></th>
|
243 |
<td>
|
244 |
<label class="switch">
|
@@ -246,9 +260,6 @@ class PA_admin_settings {
|
|
246 |
<span class="slider round"></span>
|
247 |
</label>
|
248 |
</td>
|
249 |
-
</tr>
|
250 |
-
|
251 |
-
<tr>
|
252 |
<th><?php echo sprintf("%s Video Box",$prefix); ?></th>
|
253 |
<td>
|
254 |
<label class="switch">
|
@@ -256,6 +267,9 @@ class PA_admin_settings {
|
|
256 |
<span class="slider round"></span>
|
257 |
</label>
|
258 |
</td>
|
|
|
|
|
|
|
259 |
<th><?php echo sprintf("%s Pricing Table",$prefix); ?></th>
|
260 |
<td>
|
261 |
<label class="switch">
|
@@ -263,9 +277,6 @@ class PA_admin_settings {
|
|
263 |
<span class="slider round"></span>
|
264 |
</label>
|
265 |
</td>
|
266 |
-
</tr>
|
267 |
-
|
268 |
-
<tr>
|
269 |
<th><?php echo sprintf("%s Button",$prefix); ?></th>
|
270 |
<td>
|
271 |
<label class="switch">
|
@@ -273,16 +284,16 @@ class PA_admin_settings {
|
|
273 |
<span class="slider round"></span>
|
274 |
</label>
|
275 |
</td>
|
|
|
|
|
|
|
276 |
<th><?php echo sprintf("%s Contact Form7",$prefix); ?></th>
|
277 |
<td>
|
278 |
<label class="switch">
|
279 |
<input type="checkbox" id="premium-contactform" name="premium-contactform" <?php checked(1, $this->pa_get_settings['premium-contactform'], true) ?>>
|
280 |
<span class="slider round"></span>
|
281 |
-
|
282 |
</td>
|
283 |
-
</tr>
|
284 |
-
|
285 |
-
<tr>
|
286 |
<th><?php echo sprintf("%s Image Button",$prefix); ?></th>
|
287 |
<td>
|
288 |
<label class="switch">
|
@@ -291,6 +302,9 @@ class PA_admin_settings {
|
|
291 |
</label>
|
292 |
</td>
|
293 |
|
|
|
|
|
|
|
294 |
<th><?php echo sprintf("%s Grid",$prefix); ?></th>
|
295 |
<td>
|
296 |
<label class="switch">
|
@@ -298,9 +312,6 @@ class PA_admin_settings {
|
|
298 |
<span class="slider round"></span>
|
299 |
</label>
|
300 |
</td>
|
301 |
-
</tr>
|
302 |
-
|
303 |
-
<tr>
|
304 |
<th><?php echo sprintf("%s Vertical Navigation",$prefix); ?></th>
|
305 |
<td>
|
306 |
<label class="switch">
|
@@ -628,6 +639,7 @@ class PA_admin_settings {
|
|
628 |
'premium-image-button' => intval( $settings['premium-image-button'] ? 1 : 0),
|
629 |
'premium-grid' => intval( $settings['premium-grid'] ? 1 : 0),
|
630 |
'premium-vscroll' => intval( $settings['premium-vscroll'] ? 1 : 0),
|
|
|
631 |
);
|
632 |
|
633 |
update_option( 'pa_save_settings', $this->pa_settings );
|
8 |
|
9 |
protected $page_slug = 'premium-addons';
|
10 |
|
11 |
+
public static $pa_elements_keys = ['premium-banner', 'premium-blog','premium-carousel', 'premium-countdown','premium-counter','premium-dual-header','premium-fancytext','premium-image-separator','premium-maps','premium-modalbox','premium-person','premium-progressbar','premium-testimonials','premium-title','premium-videobox','premium-pricing-table','premium-button','premium-contactform', 'premium-image-button', 'premium-grid','premium-vscroll', 'premium-image-scroll'];
|
12 |
|
13 |
private $pa_default_settings;
|
14 |
|
186 |
<span class="slider round"></span>
|
187 |
</label>
|
188 |
</td>
|
189 |
+
<th><?php echo sprintf("%s Image Scroll",$prefix); ?></th>
|
190 |
<td>
|
191 |
<label class="switch">
|
192 |
+
<input type="checkbox" id="premium-image-scroll" name="premium-image-scroll" <?php checked(1, $this->pa_get_settings['premium-image-scroll'], true) ?>>
|
193 |
<span class="slider round"></span>
|
194 |
</label>
|
195 |
</td>
|
196 |
+
|
197 |
</tr>
|
198 |
|
199 |
<tr>
|
200 |
|
201 |
+
<th><?php echo esc_html__('Premium Image Separator', 'premium-addons-for-elementor'); ?></th>
|
202 |
+
<td>
|
203 |
+
<label class="switch">
|
204 |
+
<input type="checkbox" id="premium-image-separator" name="premium-image-separator" <?php checked(1, $this->pa_get_settings['premium-image-separator'], true) ?>>
|
205 |
+
<span class="slider round"></span>
|
206 |
+
</label>
|
207 |
+
</td>
|
208 |
+
|
209 |
<th><?php echo sprintf("%s Maps",$prefix); ?></th>
|
210 |
<td>
|
211 |
<label class="switch">
|
213 |
<span class="slider round"></span>
|
214 |
</label>
|
215 |
</td>
|
216 |
+
|
217 |
+
</tr>
|
218 |
+
|
219 |
+
<tr>
|
220 |
<th><?php echo sprintf("%s Modal Box",$prefix); ?></th>
|
221 |
<td>
|
222 |
<label class="switch">
|
224 |
<span class="slider round"></span>
|
225 |
</label>
|
226 |
</td>
|
|
|
|
|
|
|
227 |
<th><?php echo sprintf("%s Person",$prefix); ?></th>
|
228 |
<td>
|
229 |
<label class="switch">
|
231 |
<span class="slider round"></span>
|
232 |
</label>
|
233 |
</td>
|
234 |
+
</tr>
|
235 |
+
</tr>
|
236 |
+
|
237 |
+
<tr>
|
238 |
+
|
239 |
<th><?php echo sprintf("%s Progress Bar",$prefix); ?></th>
|
240 |
<td>
|
241 |
<label class="switch">
|
243 |
<span class="slider round"></span>
|
244 |
</label>
|
245 |
</td>
|
|
|
|
|
|
|
|
|
246 |
<th><?php echo sprintf("%s Testimonials",$prefix); ?></th>
|
247 |
<td>
|
248 |
<label class="switch">
|
250 |
<span class="slider round"></span>
|
251 |
</label>
|
252 |
</td>
|
253 |
+
</tr>
|
254 |
+
|
255 |
+
<tr>
|
256 |
<th><?php echo sprintf("%s Title",$prefix); ?></th>
|
257 |
<td>
|
258 |
<label class="switch">
|
260 |
<span class="slider round"></span>
|
261 |
</label>
|
262 |
</td>
|
|
|
|
|
|
|
263 |
<th><?php echo sprintf("%s Video Box",$prefix); ?></th>
|
264 |
<td>
|
265 |
<label class="switch">
|
267 |
<span class="slider round"></span>
|
268 |
</label>
|
269 |
</td>
|
270 |
+
</tr>
|
271 |
+
|
272 |
+
<tr>
|
273 |
<th><?php echo sprintf("%s Pricing Table",$prefix); ?></th>
|
274 |
<td>
|
275 |
<label class="switch">
|
277 |
<span class="slider round"></span>
|
278 |
</label>
|
279 |
</td>
|
|
|
|
|
|
|
280 |
<th><?php echo sprintf("%s Button",$prefix); ?></th>
|
281 |
<td>
|
282 |
<label class="switch">
|
284 |
<span class="slider round"></span>
|
285 |
</label>
|
286 |
</td>
|
287 |
+
</tr>
|
288 |
+
|
289 |
+
<tr>
|
290 |
<th><?php echo sprintf("%s Contact Form7",$prefix); ?></th>
|
291 |
<td>
|
292 |
<label class="switch">
|
293 |
<input type="checkbox" id="premium-contactform" name="premium-contactform" <?php checked(1, $this->pa_get_settings['premium-contactform'], true) ?>>
|
294 |
<span class="slider round"></span>
|
295 |
+
</label>
|
296 |
</td>
|
|
|
|
|
|
|
297 |
<th><?php echo sprintf("%s Image Button",$prefix); ?></th>
|
298 |
<td>
|
299 |
<label class="switch">
|
302 |
</label>
|
303 |
</td>
|
304 |
|
305 |
+
</tr>
|
306 |
+
|
307 |
+
<tr>
|
308 |
<th><?php echo sprintf("%s Grid",$prefix); ?></th>
|
309 |
<td>
|
310 |
<label class="switch">
|
312 |
<span class="slider round"></span>
|
313 |
</label>
|
314 |
</td>
|
|
|
|
|
|
|
315 |
<th><?php echo sprintf("%s Vertical Navigation",$prefix); ?></th>
|
316 |
<td>
|
317 |
<label class="switch">
|
639 |
'premium-image-button' => intval( $settings['premium-image-button'] ? 1 : 0),
|
640 |
'premium-grid' => intval( $settings['premium-grid'] ? 1 : 0),
|
641 |
'premium-vscroll' => intval( $settings['premium-vscroll'] ? 1 : 0),
|
642 |
+
'premium-image-scroll' => intval( $settings['premium-image-scroll'] ? 1 : 0),
|
643 |
);
|
644 |
|
645 |
update_option( 'pa_save_settings', $this->pa_settings );
|
admin/settings/version-control.php
CHANGED
@@ -79,7 +79,7 @@ class PA_Version_Control {
|
|
79 |
<tr class="pa-roll-row">
|
80 |
<th>Rollback Version</th>
|
81 |
<td>
|
82 |
-
<div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 3.1.
|
83 |
<p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p>
|
84 |
</td>
|
85 |
</tr>
|
79 |
<tr class="pa-roll-row">
|
80 |
<th>Rollback Version</th>
|
81 |
<td>
|
82 |
+
<div><?php echo sprintf( '<a target="_blank" href="%s" class="button pa-btn pa-rollback-button elementor-button-spinner">Reinstall Version 3.1.1</a>', wp_nonce_url( admin_url( 'admin-post.php?action=premium_addons_rollback' ), 'premium_addons_rollback' ) ); ?> </div>
|
83 |
<p class="pa-roll-desc"><span>Warning: Please backup your database before making the rollback.</span></p>
|
84 |
</td>
|
85 |
</tr>
|
assets/css/premium-addons.css
CHANGED
@@ -1,3 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
/**************** Premium Banner ****************/
|
2 |
/************************************************/
|
3 |
.premium_addons-banner-ib,
|
@@ -1539,7 +1549,6 @@ button.premium-modal-box-modal-close {
|
|
1539 |
height: 0;
|
1540 |
padding-bottom: 56.25%;
|
1541 |
}
|
1542 |
-
/*Image Container Div Style*/
|
1543 |
.premium-video-box-image-container {
|
1544 |
position: absolute;
|
1545 |
top: 0;
|
@@ -1551,11 +1560,6 @@ button.premium-modal-box-modal-close {
|
|
1551 |
background-position: 50%;
|
1552 |
cursor: pointer;
|
1553 |
}
|
1554 |
-
/*Image Style*/
|
1555 |
-
/*.premium-video-box-image-container img {
|
1556 |
-
width: 100%;
|
1557 |
-
}*/
|
1558 |
-
/*Play Icon Container Div Style*/
|
1559 |
.premium-video-box-play-icon-container {
|
1560 |
position: absolute;
|
1561 |
z-index: 1;
|
@@ -1579,7 +1583,6 @@ button.premium-modal-box-modal-close {
|
|
1579 |
-ms-transition: all 0.3s ease-in-out;
|
1580 |
transition: all 0.3s ease-in-out;
|
1581 |
}
|
1582 |
-
/*Play Icon Style*/
|
1583 |
.premium-video-box-play-icon{
|
1584 |
padding: 15px;
|
1585 |
transform: translateX(4%);
|
@@ -1589,24 +1592,25 @@ button.premium-modal-box-modal-close {
|
|
1589 |
-ms-transition: all 0.3s ease-in-out;
|
1590 |
transition: all 0.3s ease-in-out;
|
1591 |
}
|
1592 |
-
|
1593 |
-
.premium-video-box-video-container{
|
1594 |
position: absolute;
|
1595 |
top: 0;
|
1596 |
left: 0;
|
1597 |
z-index: 2;
|
1598 |
width: 100%;
|
1599 |
height: 100%;
|
1600 |
-
opacity:0;
|
1601 |
-
visibility: hidden;
|
1602 |
-webkit-transition: opacity 0.8s ease-in-out;
|
1603 |
-moz-transition: opacity 0.8s ease-in-out;
|
1604 |
-o-transition: opacity 0.8s ease-in-out;
|
1605 |
-ms-transition: opacity 0.8s ease-in-out;
|
1606 |
transition: opacity 0.8s ease-in-out;
|
1607 |
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
|
1608 |
}
|
1609 |
-
/*Video Iframe Style*/
|
1610 |
.premium-video-box-video-container iframe,
|
1611 |
.premium-video-box-video-container video {
|
1612 |
max-width: 100%;
|
@@ -3551,4 +3555,137 @@ button.premium-modal-box-modal-close {
|
|
3551 |
.premium-vscroll-nav-menu .premium-vscroll-nav-item .premium-vscroll-nav-link:focus,
|
3552 |
.multiscroll-nav li a:focus{
|
3553 |
outline:none
|
3554 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@font-face {
|
2 |
+
font-family: 'pa-elements';
|
3 |
+
src: url('../../admin/assets/pa-elements-font/fonts/pa-elements.eot?6nhz6k');
|
4 |
+
src: url('../../admin/assets/pa-elements-font/fonts/pa-elements.eot?6nhz6k#iefix') format('embedded-opentype'),
|
5 |
+
url('../../admin/assets/pa-elements-font/fonts/pa-elements.ttf?6nhz6k') format('truetype'),
|
6 |
+
url('../../admin/assets/pa-elements-font/fonts/pa-elements.woff?6nhz6k') format('woff'),
|
7 |
+
url('../../admin/assets/pa-elements-font/fonts/pa-elements.svg?6nhz6k#pa-elements') format('svg');
|
8 |
+
font-weight: normal;
|
9 |
+
font-style: normal;
|
10 |
+
}
|
11 |
/**************** Premium Banner ****************/
|
12 |
/************************************************/
|
13 |
.premium_addons-banner-ib,
|
1549 |
height: 0;
|
1550 |
padding-bottom: 56.25%;
|
1551 |
}
|
|
|
1552 |
.premium-video-box-image-container {
|
1553 |
position: absolute;
|
1554 |
top: 0;
|
1560 |
background-position: 50%;
|
1561 |
cursor: pointer;
|
1562 |
}
|
|
|
|
|
|
|
|
|
|
|
1563 |
.premium-video-box-play-icon-container {
|
1564 |
position: absolute;
|
1565 |
z-index: 1;
|
1583 |
-ms-transition: all 0.3s ease-in-out;
|
1584 |
transition: all 0.3s ease-in-out;
|
1585 |
}
|
|
|
1586 |
.premium-video-box-play-icon{
|
1587 |
padding: 15px;
|
1588 |
transform: translateX(4%);
|
1592 |
-ms-transition: all 0.3s ease-in-out;
|
1593 |
transition: all 0.3s ease-in-out;
|
1594 |
}
|
1595 |
+
.premium-video-box-video-container {
|
|
|
1596 |
position: absolute;
|
1597 |
top: 0;
|
1598 |
left: 0;
|
1599 |
z-index: 2;
|
1600 |
width: 100%;
|
1601 |
height: 100%;
|
|
|
|
|
1602 |
-webkit-transition: opacity 0.8s ease-in-out;
|
1603 |
-moz-transition: opacity 0.8s ease-in-out;
|
1604 |
-o-transition: opacity 0.8s ease-in-out;
|
1605 |
-ms-transition: opacity 0.8s ease-in-out;
|
1606 |
transition: opacity 0.8s ease-in-out;
|
1607 |
overflow: hidden;
|
1608 |
+
cursor: pointer;
|
1609 |
+
}
|
1610 |
+
.premium-video-box-container[data-overlay="true"][data-type="self"] .premium-video-box-video-container {
|
1611 |
+
opacity: 0;
|
1612 |
+
visibility: hidden;
|
1613 |
}
|
|
|
1614 |
.premium-video-box-video-container iframe,
|
1615 |
.premium-video-box-video-container video {
|
1616 |
max-width: 100%;
|
3555 |
.premium-vscroll-nav-menu .premium-vscroll-nav-item .premium-vscroll-nav-link:focus,
|
3556 |
.multiscroll-nav li a:focus{
|
3557 |
outline:none
|
3558 |
+
}
|
3559 |
+
/************ Premium Image Scroll ***************/
|
3560 |
+
/*************************************************/
|
3561 |
+
.premium-image-scroll-section,
|
3562 |
+
.premium-image-scroll-container {
|
3563 |
+
transition: all 0.3s ease-in-out;
|
3564 |
+
-webkit-transition: all 0.3s ease-in-out;
|
3565 |
+
-moz-transition: all 0.3s ease-in-out;
|
3566 |
+
-ms-transition: all 0.3s ease-in-out;
|
3567 |
+
-o-transition: all 0.3s ease-in-out;
|
3568 |
+
}
|
3569 |
+
.premium-image-scroll-section {
|
3570 |
+
overflow: hidden;
|
3571 |
+
width: 100%;
|
3572 |
+
position: relative;
|
3573 |
+
}
|
3574 |
+
.premium-image-scroll-container {
|
3575 |
+
width: 100%;
|
3576 |
+
}
|
3577 |
+
.premium-container-scroll {
|
3578 |
+
overflow: auto;
|
3579 |
+
}
|
3580 |
+
.premium-image-scroll-container .premium-image-scroll-horizontal {
|
3581 |
+
position: relative;
|
3582 |
+
width: 100%;
|
3583 |
+
height: 100%;
|
3584 |
+
}
|
3585 |
+
.premium-image-scroll-container .premium-image-scroll-horizontal .premium-image-scroll-image {
|
3586 |
+
max-width: none;
|
3587 |
+
height: 100%;
|
3588 |
+
}
|
3589 |
+
.premium-image-scroll-container .premium-image-scroll-vertical .premium-image-scroll-image {
|
3590 |
+
width: 100%;
|
3591 |
+
max-width: 100%;
|
3592 |
+
height: auto;
|
3593 |
+
}
|
3594 |
+
.premium-image-scroll-ver {
|
3595 |
+
position: relative;
|
3596 |
+
}
|
3597 |
+
.premium-image-scroll-container .premium-image-scroll-overlay {
|
3598 |
+
background: rgba(2,2,2,0.3);
|
3599 |
+
}
|
3600 |
+
.premium-image-scroll-container .premium-image-scroll-link,
|
3601 |
+
.premium-image-scroll-container .premium-image-scroll-overlay {
|
3602 |
+
position: absolute;
|
3603 |
+
top: 0;
|
3604 |
+
bottom: 0;
|
3605 |
+
left: 0;
|
3606 |
+
right: 0;
|
3607 |
+
z-index: 4;
|
3608 |
+
}
|
3609 |
+
.premium-image-scroll-content {
|
3610 |
+
display: inline-block;
|
3611 |
+
position: absolute;
|
3612 |
+
height: auto;
|
3613 |
+
top: 50%;
|
3614 |
+
left: 50%;
|
3615 |
+
text-align: center;
|
3616 |
+
z-index: 5;
|
3617 |
+
-webkit-transform: translate(-50%, -50%);
|
3618 |
+
-ms-transform: translate(-50%, -50%);
|
3619 |
+
transform: translate(-50%, -50%);
|
3620 |
+
}
|
3621 |
+
.premium-container-scroll-instant .premium-image-scroll-image {
|
3622 |
+
-webkit-transition: all 0s ease-in-out !important;
|
3623 |
+
transition: all 0s ease-in-out !important;
|
3624 |
+
}
|
3625 |
+
.premium-image-scroll-container .premium-image-scroll-overlay,
|
3626 |
+
.premium-image-scroll-container .premium-image-scroll-content {
|
3627 |
+
-webkit-transition: all 0.3s ease-in-out;
|
3628 |
+
-ms-transition: all 0.3s ease-in-out;
|
3629 |
+
transition: all 0.3s ease-in-out;
|
3630 |
+
opacity: 1;
|
3631 |
+
}
|
3632 |
+
.premium-image-scroll-container:hover .premium-image-scroll-overlay,
|
3633 |
+
.premium-image-scroll-container:hover .premium-image-scroll-content {
|
3634 |
+
opacity: 0;
|
3635 |
+
/* visibility: hidden;*/
|
3636 |
+
}
|
3637 |
+
.premium-image-scroll-container:hover .premium-image-scroll-content {
|
3638 |
+
visibility: hidden;
|
3639 |
+
}
|
3640 |
+
.premium-image-scroll-content .premium-image-scroll-icon {
|
3641 |
+
display: inline-block;
|
3642 |
+
font-family: 'pa-elements' !important;
|
3643 |
+
speak: none;
|
3644 |
+
font-style: normal;
|
3645 |
+
font-weight: normal;
|
3646 |
+
font-variant: normal;
|
3647 |
+
text-transform: none;
|
3648 |
+
line-height: 1;
|
3649 |
+
-webkit-font-smoothing: antialiased;
|
3650 |
+
-moz-osx-font-smoothing: grayscale;
|
3651 |
+
animation-duration: 0.5s ;
|
3652 |
+
animation-iteration-count: infinite;
|
3653 |
+
animation-direction: alternate;
|
3654 |
+
animation-timing-function: ease-in-out;
|
3655 |
+
}
|
3656 |
+
.pa-horizontal-mouse-scroll:before {
|
3657 |
+
content: "\e917";
|
3658 |
+
}
|
3659 |
+
.pa-vertical-mouse-scroll:before {
|
3660 |
+
content: "\e918";
|
3661 |
+
}
|
3662 |
+
.pa-horizontal-mouse-scroll {
|
3663 |
+
animation-name: pa-scroll-horizontal;
|
3664 |
+
}
|
3665 |
+
.pa-vertical-mouse-scroll {
|
3666 |
+
animation-name: pa-scroll-vertical;
|
3667 |
+
}
|
3668 |
+
@keyframes pa-scroll-vertical {
|
3669 |
+
0% {
|
3670 |
+
-webkit-transform:translateY(0px);
|
3671 |
+
-ms-transform:translateY(0px);
|
3672 |
+
transform:translateY(0px);
|
3673 |
+
}
|
3674 |
+
100% {
|
3675 |
+
-webkit-transform:translateY(5px);
|
3676 |
+
-ms-transform:translateY(5px);
|
3677 |
+
transform:translateY(5px);
|
3678 |
+
}
|
3679 |
+
}
|
3680 |
+
@keyframes pa-scroll-horizontal {
|
3681 |
+
0% {
|
3682 |
+
-webkit-transform:translateX(0px);
|
3683 |
+
-ms-transform:translateX(0px);
|
3684 |
+
transform:translateX(0px);
|
3685 |
+
}
|
3686 |
+
100% {
|
3687 |
+
-webkit-transform:translateX(5px);
|
3688 |
+
-ms-transform:translateX(5px);
|
3689 |
+
transform:translateX(5px);
|
3690 |
+
}
|
3691 |
+
}
|
assets/js/premium-addons.js
CHANGED
@@ -29,34 +29,37 @@
|
|
29 |
/****** Premium Video Box Handler ******/
|
30 |
var PremiumVideoBoxWidgetHandler = function($scope, $) {
|
31 |
var videoBoxElement = $scope.find(".premium-video-box-container"),
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
|
|
36 |
videoBoxElement.on("click", function() {
|
37 |
-
|
38 |
-
.children(".premium-video-box-video-container")
|
39 |
-
.css({
|
40 |
-
opacity: "1",
|
41 |
-
visibility: "visible"
|
42 |
-
});
|
43 |
-
setTimeout(function() {
|
44 |
-
video = videoBoxElement.find("iframe, video");
|
45 |
-
vidSrc = video.attr("src");
|
46 |
if ("self" === type) {
|
47 |
-
|
|
|
|
|
48 |
.get(0)
|
49 |
.play();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
}
|
51 |
-
|
52 |
-
|
53 |
-
videoBoxElement
|
54 |
-
.find("iframe")
|
55 |
-
.attr(
|
56 |
-
"src",
|
57 |
-
videoBoxElement.find("iframe").attr("src") + "&autoplay=1"
|
58 |
-
);
|
59 |
-
}, 600);
|
60 |
});
|
61 |
};
|
62 |
|
@@ -468,6 +471,63 @@
|
|
468 |
}
|
469 |
|
470 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
471 |
|
472 |
//Elementor JS Hooks
|
473 |
$(window).on("elementor/frontend/init", function() {
|
@@ -507,6 +567,10 @@
|
|
507 |
"frontend/element_ready/premium-addon-blog.default",
|
508 |
PremiumBlogHandler
|
509 |
);
|
|
|
|
|
|
|
|
|
510 |
if (elementorFrontend.isEditMode()) {
|
511 |
elementorFrontend.hooks.addAction(
|
512 |
"frontend/element_ready/premium-addon-progressbar.default",
|
29 |
/****** Premium Video Box Handler ******/
|
30 |
var PremiumVideoBoxWidgetHandler = function($scope, $) {
|
31 |
var videoBoxElement = $scope.find(".premium-video-box-container"),
|
32 |
+
videoContainer = videoBoxElement.find(".premium-video-box-video-container"),
|
33 |
+
type = videoBoxElement.data("type"),
|
34 |
+
video,
|
35 |
+
vidSrc,
|
36 |
+
checkRel;
|
37 |
videoBoxElement.on("click", function() {
|
38 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
if ("self" === type) {
|
40 |
+
video = videoContainer.find("video");
|
41 |
+
vidSrc = video.attr("src");
|
42 |
+
$(video)
|
43 |
.get(0)
|
44 |
.play();
|
45 |
+
videoContainer.css({
|
46 |
+
opacity: "1",
|
47 |
+
visibility: "visible"
|
48 |
+
});
|
49 |
+
} else {
|
50 |
+
vidSrc = videoContainer.data("src");
|
51 |
+
vidSrc = vidSrc + "&autoplay=1";
|
52 |
+
var iframe = $( "<iframe/>" );
|
53 |
+
checkRel = vidSrc.indexOf("rel=0");
|
54 |
+
iframe.attr( 'src', vidSrc );
|
55 |
+
iframe.attr( 'frameborder', '0' );
|
56 |
+
iframe.attr( 'allowfullscreen', '1' );
|
57 |
+
iframe.attr( 'allow', 'autoplay;encrypted-media;' );
|
58 |
+
videoContainer.css("background", "#000");
|
59 |
+
videoContainer.html( iframe );
|
60 |
}
|
61 |
+
videoBoxElement.find(".premium-video-box-image-container").remove();
|
62 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
});
|
64 |
};
|
65 |
|
471 |
}
|
472 |
|
473 |
};
|
474 |
+
|
475 |
+
/****** Premium Image Scroll ******/
|
476 |
+
var PremiumImageScrollHandler = function($scope, $) {
|
477 |
+
var scrollElement = $scope.find(".premium-image-scroll-container"),
|
478 |
+
scrollOverlay = scrollElement.find(".premium-image-scroll-overlay"),
|
479 |
+
scrollVertical = scrollElement.find(".premium-image-scroll-vertical"),
|
480 |
+
dataElement = scrollElement.data("settings"),
|
481 |
+
imageScroll = scrollElement.find('.premium-image-scroll-image'),
|
482 |
+
direction = dataElement['direction'],
|
483 |
+
reverse = dataElement['reverse'],
|
484 |
+
transformOffset = null;
|
485 |
+
|
486 |
+
function startTransform() {
|
487 |
+
imageScroll.css("transform", (direction == "vertical" ? "translateY" : "translateX") + "( -" + transformOffset + "px)");
|
488 |
+
}
|
489 |
+
|
490 |
+
function endTransform() {
|
491 |
+
imageScroll.css("transform", (direction == 'vertical' ? "translateY" : "translateX") + "(0px)");
|
492 |
+
}
|
493 |
+
|
494 |
+
function setTransform() {
|
495 |
+
if( direction == "vertical" ) {
|
496 |
+
transformOffset = imageScroll.height() - scrollElement.height();
|
497 |
+
} else {
|
498 |
+
transformOffset = imageScroll.width() - scrollElement.width();
|
499 |
+
}
|
500 |
+
}
|
501 |
+
|
502 |
+
if( dataElement["trigger"] == "scroll" ) {
|
503 |
+
scrollElement.addClass("premium-container-scroll");
|
504 |
+
if ( direction == "vertical" ) {
|
505 |
+
scrollVertical.addClass("premium-image-scroll-ver");
|
506 |
+
} else {
|
507 |
+
scrollOverlay.css( { "width": imageScroll.width(), "height": imageScroll.height() } );
|
508 |
+
}
|
509 |
+
} else {
|
510 |
+
if ( reverse === 'yes' ) {
|
511 |
+
setTimeout( function() {
|
512 |
+
scrollElement.addClass("premium-container-scroll-instant");
|
513 |
+
setTransform();
|
514 |
+
startTransform();
|
515 |
+
}, 100 );
|
516 |
+
}
|
517 |
+
if ( direction == "vertical" ) {
|
518 |
+
scrollVertical.removeClass("premium-image-scroll-ver");
|
519 |
+
}
|
520 |
+
scrollElement.mouseenter(function() {
|
521 |
+
scrollElement.removeClass("premium-container-scroll-instant");
|
522 |
+
setTransform();
|
523 |
+
reverse === 'yes' ? endTransform() : startTransform();
|
524 |
+
});
|
525 |
+
|
526 |
+
scrollElement.mouseleave(function() {
|
527 |
+
reverse === 'yes' ? startTransform() : endTransform();
|
528 |
+
});
|
529 |
+
}
|
530 |
+
};
|
531 |
|
532 |
//Elementor JS Hooks
|
533 |
$(window).on("elementor/frontend/init", function() {
|
567 |
"frontend/element_ready/premium-addon-blog.default",
|
568 |
PremiumBlogHandler
|
569 |
);
|
570 |
+
elementorFrontend.hooks.addAction(
|
571 |
+
"frontend/element_ready/premium-image-scroll.default",
|
572 |
+
PremiumImageScrollHandler
|
573 |
+
);
|
574 |
if (elementorFrontend.isEditMode()) {
|
575 |
elementorFrontend.hooks.addAction(
|
576 |
"frontend/element_ready/premium-addon-progressbar.default",
|
premium-addons-for-elementor.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Premium Addons for Elementor
|
4 |
Description: Premium Addons Plugin Includes 21+ premium widgets for Elementor Page Builder.
|
5 |
Plugin URI: https://premiumaddons.com
|
6 |
-
Version: 3.1.
|
7 |
Author: Leap13
|
8 |
Author URI: http://leap13.com/
|
9 |
Text Domain: premium-addons-for-elementor
|
@@ -23,12 +23,12 @@ if ( ! defined('ABSPATH') ) exit; // No access of directly access
|
|
23 |
|
24 |
|
25 |
// Define Constants
|
26 |
-
define('PREMIUM_ADDONS_VERSION', '3.1.
|
27 |
define('PREMIUM_ADDONS_URL', plugins_url('/', __FILE__));
|
28 |
define('PREMIUM_ADDONS_PATH', plugin_dir_path(__FILE__));
|
29 |
define('PREMIUM_ADDONS_FILE', __FILE__);
|
30 |
define('PREMIUM_ADDONS_BASENAME', plugin_basename(__FILE__));
|
31 |
-
define('PREMIUM_ADDONS_STABLE_VERSION', '3.1.
|
32 |
|
33 |
if( ! class_exists('Premium_Addons_Elementor') ) {
|
34 |
/*
|
3 |
Plugin Name: Premium Addons for Elementor
|
4 |
Description: Premium Addons Plugin Includes 21+ premium widgets for Elementor Page Builder.
|
5 |
Plugin URI: https://premiumaddons.com
|
6 |
+
Version: 3.1.2
|
7 |
Author: Leap13
|
8 |
Author URI: http://leap13.com/
|
9 |
Text Domain: premium-addons-for-elementor
|
23 |
|
24 |
|
25 |
// Define Constants
|
26 |
+
define('PREMIUM_ADDONS_VERSION', '3.1.2');
|
27 |
define('PREMIUM_ADDONS_URL', plugins_url('/', __FILE__));
|
28 |
define('PREMIUM_ADDONS_PATH', plugin_dir_path(__FILE__));
|
29 |
define('PREMIUM_ADDONS_FILE', __FILE__);
|
30 |
define('PREMIUM_ADDONS_BASENAME', plugin_basename(__FILE__));
|
31 |
+
define('PREMIUM_ADDONS_STABLE_VERSION', '3.1.1');
|
32 |
|
33 |
if( ! class_exists('Premium_Addons_Elementor') ) {
|
34 |
/*
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: http://premiumaddons.com
|
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.0.3
|
7 |
Requires PHP: 5.4
|
8 |
-
Stable tag: 3.1.
|
9 |
License: GPL v3.0
|
10 |
License URI: https://opensource.org/licenses/GPL-3.0
|
11 |
|
@@ -138,6 +138,12 @@ Premium Addons for Elementor is 100% Ads Free, Ads can only be detected from You
|
|
138 |
|
139 |
== Changelog ==
|
140 |
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
= 3.1.1 =
|
142 |
|
143 |
- Tweak: Added `Metro Layout` for Grid widget.
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.0.3
|
7 |
Requires PHP: 5.4
|
8 |
+
Stable tag: 3.1.2
|
9 |
License: GPL v3.0
|
10 |
License URI: https://opensource.org/licenses/GPL-3.0
|
11 |
|
138 |
|
139 |
== Changelog ==
|
140 |
|
141 |
+
= 3.1.2 =
|
142 |
+
|
143 |
+
- Tweak: Video Box layout changed to enhance page loading speed.
|
144 |
+
- Tweak: Added `Show/Hide Overlay Image` option in Video Box widget.
|
145 |
+
- Tweak: Added `Total Number of Posts` option when `Pagination` enabled in Blog widget.
|
146 |
+
|
147 |
= 3.1.1 =
|
148 |
|
149 |
- Tweak: Added `Metro Layout` for Grid widget.
|
widgets/premium-blog.php
CHANGED
@@ -468,6 +468,18 @@ class Premium_Blog extends Widget_Base {
|
|
468 |
'default' => 3,
|
469 |
]
|
470 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
471 |
|
472 |
$this->add_control('premium_blog_offset',
|
473 |
[
|
@@ -1297,7 +1309,9 @@ class Premium_Blog extends Widget_Base {
|
|
1297 |
$count_posts = wp_count_posts();
|
1298 |
$published_posts = $count_posts->publish;
|
1299 |
|
1300 |
-
$
|
|
|
|
|
1301 |
if ( $page_tot > 1 ) {
|
1302 |
$big = 999999999;
|
1303 |
echo paginate_links(
|
468 |
'default' => 3,
|
469 |
]
|
470 |
);
|
471 |
+
|
472 |
+
$this->add_control('premium_blog_total_posts_number',
|
473 |
+
[
|
474 |
+
'label' => __('Total Number of Posts', 'premium-addons-for-elementor'),
|
475 |
+
'type' => Controls_Manager::NUMBER,
|
476 |
+
'default' => wp_count_posts()->publish,
|
477 |
+
'min' => 1,
|
478 |
+
'condition' => [
|
479 |
+
'premium_blog_paging' => 'yes',
|
480 |
+
]
|
481 |
+
]
|
482 |
+
);
|
483 |
|
484 |
$this->add_control('premium_blog_offset',
|
485 |
[
|
1309 |
$count_posts = wp_count_posts();
|
1310 |
$published_posts = $count_posts->publish;
|
1311 |
|
1312 |
+
$total_posts = ! empty ( $settings['premium_blog_total_posts_number'] ) ? $settings['premium_blog_total_posts_number'] : $published_posts;
|
1313 |
+
|
1314 |
+
$page_tot = ceil( ( $total_posts - $offset ) / $settings['premium_blog_number_of_posts'] );
|
1315 |
if ( $page_tot > 1 ) {
|
1316 |
$big = 999999999;
|
1317 |
echo paginate_links(
|
widgets/premium-videobox.php
CHANGED
@@ -23,93 +23,86 @@ class Premium_Videobox extends Widget_Base {
|
|
23 |
}
|
24 |
|
25 |
public function get_script_depends() {
|
26 |
-
return [
|
|
|
|
|
27 |
}
|
28 |
|
29 |
-
// Adding the controls fields for
|
30 |
// This will controls the animation, colors and background, dimensions etc
|
31 |
protected function _register_controls() {
|
32 |
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
);
|
39 |
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
'
|
47 |
-
'
|
48 |
-
|
49 |
-
],
|
50 |
-
'label_block' => true,
|
51 |
]
|
52 |
-
|
|
|
53 |
|
54 |
-
/*Video Type*/
|
55 |
-
$this->add_control('premium_video_box_video_type',
|
56 |
-
[
|
57 |
-
'label' => esc_html__('Video Type', 'premium-addons-for-elementor'),
|
58 |
-
'type' => Controls_Manager::SELECT,
|
59 |
-
'default' => 'youtube',
|
60 |
-
'options' => [
|
61 |
-
'youtube' => esc_html__('Youtube', 'premium-addons-for-elementor'),
|
62 |
-
'vimeo' => esc_html__('Vimeo', 'premium-addons-for-elementor'),
|
63 |
-
'self' => esc_html__('Self Hosted', 'premium-addons-for-elementor'),
|
64 |
-
]
|
65 |
-
]
|
66 |
-
);
|
67 |
-
|
68 |
-
/*Video Id or Link*/
|
69 |
$this->add_control('premium_video_box_video_id_embed_selection',
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
/*Video Id*/
|
85 |
$this->add_control('premium_video_box_video_id',
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
/*Video Link*/
|
99 |
$this->add_control('premium_video_box_video_embed',
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
$this->add_control('premium_video_box_self_hosted',
|
114 |
[
|
115 |
'label' => esc_html__('URL', 'premium-addons-for-elementor'),
|
@@ -128,7 +121,6 @@ class Premium_Videobox extends Widget_Base {
|
|
128 |
]
|
129 |
);
|
130 |
|
131 |
-
/*Related Videos*/
|
132 |
$this->add_control('premium_video_box_related_video',
|
133 |
[
|
134 |
'label' => esc_html__('Show Related Videos', 'premium-addons-for-elementor'),
|
@@ -141,7 +133,6 @@ class Premium_Videobox extends Widget_Base {
|
|
141 |
]
|
142 |
);
|
143 |
|
144 |
-
/*Mute Videos*/
|
145 |
$this->add_control('premium_video_box_mute',
|
146 |
[
|
147 |
'label' => esc_html__('Mute', 'premium-addons-for-elementor'),
|
@@ -150,7 +141,6 @@ class Premium_Videobox extends Widget_Base {
|
|
150 |
]
|
151 |
);
|
152 |
|
153 |
-
/*Loop Videos*/
|
154 |
$this->add_control('premium_video_box_loop',
|
155 |
[
|
156 |
'label' => esc_html__('Loop', 'premium-addons-for-elementor'),
|
@@ -158,389 +148,390 @@ class Premium_Videobox extends Widget_Base {
|
|
158 |
]
|
159 |
);
|
160 |
|
161 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
$this->end_controls_section();
|
163 |
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
|
|
168 |
]
|
169 |
-
|
|
|
170 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
171 |
|
172 |
-
/*Play Icon Switcher*/
|
173 |
$this->add_control('premium_video_box_play_icon_switcher',
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
|
181 |
$this->add_control('premium_video_box_icon_hor_position',
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
|
198 |
$this->add_control('premium_video_box_icon_ver_position',
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
|
215 |
-
/*End Play Icon Settings*/
|
216 |
$this->end_controls_section();
|
217 |
|
218 |
-
/*Start Description Text Section*/
|
219 |
$this->start_controls_section('premium_video_box_description_text_section',
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
|
225 |
$this->add_control('premium_video_box_video_text_switcher',
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
|
232 |
-
/*Description Text*/
|
233 |
$this->add_control('premium_video_box_description_text',
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
|
247 |
-
/*Description Top Position*/
|
248 |
$this->add_control('premium_video_box_description_ver_position',
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
|
265 |
$this->add_control('premium_video_box_description_hor_position',
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
],
|
273 |
-
'condition' => [
|
274 |
-
'premium_video_box_video_text_switcher' => 'yes'
|
275 |
],
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
|
|
|
|
|
|
281 |
|
282 |
-
/*End Description Text Section*/
|
283 |
$this->end_controls_section();
|
284 |
|
285 |
-
/*Start Text Below Icon Style Section*/
|
286 |
$this->start_controls_section('premium_video_box_text_style_section',
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
|
293 |
-
/*Image Border*/
|
294 |
$this->add_group_control(
|
295 |
Group_Control_Border::get_type(),
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
|
302 |
-
|
303 |
$this->add_responsive_control('premium_video_box_image_border_radius',
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
/*Box Text Shadow*/
|
315 |
$this->add_group_control(
|
316 |
Group_Control_Box_Shadow::get_type(),
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
|
324 |
-
/*End Text Below Icon Style Section*/
|
325 |
$this->end_controls_section();
|
326 |
|
327 |
-
/*Start Play Icon Style Section*/
|
328 |
$this->start_controls_section('premium_video_box_icon_style',
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
|
338 |
-
/*Play Icon Color*/
|
339 |
$this->add_control('premium_video_box_play_icon_color',
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
|
353 |
-
/*Play Icon Color*/
|
354 |
$this->add_control('premium_video_box_play_icon_color_hover',
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
|
368 |
-
/*Play Icon Size*/
|
369 |
$this->add_control('premium_video_box_play_icon_size',
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
/*Play Icon Background Color*/
|
385 |
$this->add_group_control(
|
386 |
Group_Control_Background::get_type(),
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
|
394 |
-
/*Play Icon Border*/
|
395 |
$this->add_group_control(
|
396 |
Group_Control_Border::get_type(),
|
397 |
-
|
398 |
-
|
399 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
400 |
]
|
401 |
-
|
|
|
402 |
|
403 |
-
/*Play Icon Border Radius*/
|
404 |
-
$this->add_control('premium_video_box_icon_border_radius',
|
405 |
-
[
|
406 |
-
'label' => esc_html__('Border Radius', 'premium-addons-for-elementor'),
|
407 |
-
'type' => Controls_Manager::SLIDER,
|
408 |
-
'default' => [
|
409 |
-
'unit' => 'px',
|
410 |
-
'size' => 100,
|
411 |
-
],
|
412 |
-
'size_units' => ['px', '%', 'em'],
|
413 |
-
'selectors' => [
|
414 |
-
'{{WRAPPER}} .premium-video-box-play-icon-container' => 'border-radius: {{SIZE}}{{UNIT}};',
|
415 |
-
]
|
416 |
-
]
|
417 |
-
);
|
418 |
-
|
419 |
-
/*Icon Padding*/
|
420 |
$this->add_responsive_control('premium_video_box_icon_padding',
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
]
|
435 |
-
]
|
436 |
-
);
|
437 |
-
|
438 |
-
/*Enable Icon Hover Size Change*/
|
439 |
-
$this->add_control('premium_video_box_icon_hover_animation',
|
440 |
-
[
|
441 |
-
'label' => esc_html__('Hover Animation', 'premium-addons-for-elementor'),
|
442 |
-
'type' => Controls_Manager::SWITCHER,
|
443 |
-
'description' => esc_html__('Hover animation works only when you set a background color or image for play icon', 'premium-addons-for-elementor'),
|
444 |
-
'default' => 'yes',
|
445 |
]
|
446 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
447 |
|
448 |
-
/*Icon Padding*/
|
449 |
$this->add_responsive_control('premium_video_box_icon_padding_hover',
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
/*End Play Icon style Section*/
|
465 |
$this->end_controls_section();
|
466 |
|
467 |
-
|
468 |
-
/*Start Video Text Style*/
|
469 |
$this->start_controls_section('premium_video_box_text_style',
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
]
|
476 |
]
|
477 |
-
|
|
|
478 |
|
479 |
-
/*Text Color*/
|
480 |
$this->add_control('premium_video_box_text_color',
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
|
494 |
-
/*Text Hover Color*/
|
495 |
$this->add_control('premium_video_box_text_color_hover',
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
/*Text Typography*/
|
510 |
$this->add_group_control(
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
/*Text Hover Color*/
|
520 |
$this->add_control('premium_video_box_text_background_color',
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
|
534 |
$this->add_responsive_control('premium_video_box_text_padding',
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
|
545 |
$this->add_group_control(
|
546 |
Group_Control_Text_Shadow::get_type(),
|
@@ -549,25 +540,26 @@ class Premium_Videobox extends Widget_Base {
|
|
549 |
'name' => 'premium_text_shadow',
|
550 |
'selector' => '.premium-video-box-text'
|
551 |
]
|
552 |
-
|
553 |
|
554 |
-
/*End Video Text Style*/
|
555 |
$this->end_controls_section();
|
556 |
}
|
557 |
|
558 |
protected function render() {
|
559 |
-
|
560 |
$settings = $this->get_settings_for_display();
|
561 |
|
562 |
-
$this->
|
563 |
|
564 |
-
$
|
|
|
|
|
565 |
|
566 |
-
$
|
567 |
|
568 |
-
$
|
569 |
|
570 |
-
$
|
571 |
|
572 |
$hosted_url = !empty( $settings['premium_video_box_self_hosted']['url'] ) ? $settings['premium_video_box_self_hosted']['url'] : '' ;
|
573 |
|
@@ -585,8 +577,7 @@ class Premium_Videobox extends Widget_Base {
|
|
585 |
$options .= 'yes' == $loop ? '1' : '0';
|
586 |
|
587 |
if ( $loop ) {
|
588 |
-
$options .= '&playlist=';
|
589 |
-
$options .= 'id' === $video_url_type ? $video_id : str_replace('https://www.youtube.com/embed/', '',$video_embed);
|
590 |
}
|
591 |
|
592 |
$video_params = 'controls ';
|
@@ -597,44 +588,115 @@ class Premium_Videobox extends Widget_Base {
|
|
597 |
$video_params .= 'loop ';
|
598 |
}
|
599 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
600 |
?>
|
601 |
|
602 |
-
<div
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
|
|
|
|
|
|
611 |
<?php endif; ?>
|
612 |
-
<?php
|
613 |
-
|
614 |
-
|
615 |
-
</
|
616 |
-
<?php elseif ( $video_url_type === 'embed' && !empty( $video_embed ) ) : ?>
|
617 |
-
<iframe src="<?php echo $video_embed . $options; ?>" frameborder="0" top="0" webkitallowfullscreen mozallowfullscreen allowfullscreen>
|
618 |
-
</iframe>
|
619 |
<?php endif; ?>
|
620 |
-
<?php } elseif ( $video_type === 'self'){ ?>
|
621 |
-
<video src="<?php echo esc_url( $hosted_url ); ?>" <?php echo $video_params; ?>></video>
|
622 |
-
<?php } ?>
|
623 |
-
</div>
|
624 |
-
<div class="premium-video-box-image-container" style="background-image: url('<?php echo esc_url($settings['premium_video_box_image']['url']); ?>')">
|
625 |
-
</div>
|
626 |
-
<?php if($settings['premium_video_box_play_icon_switcher'] == 'yes') : ?>
|
627 |
-
<div class="premium-video-box-play-icon-container">
|
628 |
-
<i class="premium-video-box-play-icon fa fa-play fa-lg"></i>
|
629 |
-
</div>
|
630 |
-
<?php endif; ?>
|
631 |
-
<?php if( $settings['premium_video_box_video_text_switcher'] == 'yes' && !empty( $settings['premium_video_box_description_text'] ) ) : ?>
|
632 |
-
<div class="premium-video-box-description-container">
|
633 |
-
<p class="premium-video-box-text"><span <?php echo $this->get_render_attribute_string('premium_video_box_description_text'); ?>><?php echo $settings['premium_video_box_description_text']; ?></span></p>
|
634 |
</div>
|
635 |
-
<?php endif; ?>
|
636 |
-
</div>
|
637 |
|
638 |
<?php
|
639 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
640 |
}
|
23 |
}
|
24 |
|
25 |
public function get_script_depends() {
|
26 |
+
return [
|
27 |
+
'premium-addons-js'
|
28 |
+
];
|
29 |
}
|
30 |
|
31 |
+
// Adding the controls fields for Premium Video Box
|
32 |
// This will controls the animation, colors and background, dimensions etc
|
33 |
protected function _register_controls() {
|
34 |
|
35 |
+
$this->start_controls_section('premium_video_box_general_settings',
|
36 |
+
[
|
37 |
+
'label' => esc_html__('Video Box', 'premium-addons-for-elementor'),
|
38 |
+
]
|
39 |
+
);
|
|
|
40 |
|
41 |
+
$this->add_control('premium_video_box_video_type',
|
42 |
+
[
|
43 |
+
'label' => esc_html__('Video Type', 'premium-addons-for-elementor'),
|
44 |
+
'type' => Controls_Manager::SELECT,
|
45 |
+
'default' => 'youtube',
|
46 |
+
'options' => [
|
47 |
+
'youtube' => esc_html__('Youtube', 'premium-addons-for-elementor'),
|
48 |
+
'vimeo' => esc_html__('Vimeo', 'premium-addons-for-elementor'),
|
49 |
+
'self' => esc_html__('Self Hosted', 'premium-addons-for-elementor'),
|
|
|
|
|
50 |
]
|
51 |
+
]
|
52 |
+
);
|
53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
$this->add_control('premium_video_box_video_id_embed_selection',
|
55 |
+
[
|
56 |
+
'label' => esc_html__('Link', 'premium-addons-for-elementor'),
|
57 |
+
'type' => Controls_Manager::HIDDEN,
|
58 |
+
'default' => 'id',
|
59 |
+
'options' => [
|
60 |
+
'id' => esc_html__('ID', 'premium-addons-for-elementor'),
|
61 |
+
'embed' => esc_html__('Embed URL', 'premium-addons-for-elementor'),
|
62 |
+
],
|
63 |
+
'condition' => [
|
64 |
+
'premium_video_box_video_type!' => 'self',
|
65 |
+
]
|
66 |
+
]
|
67 |
+
);
|
68 |
+
|
|
|
69 |
$this->add_control('premium_video_box_video_id',
|
70 |
+
[
|
71 |
+
'label' => esc_html__('Video ID', 'premium-addons-for-elementor'),
|
72 |
+
'description' => esc_html__('Enter the numbers and letters after the equal sign which located in your YouTube video link or after the slash sign in your Vimeo video link. For example, z1hQgVpfTKU', 'premium-addons-for-elementor'),
|
73 |
+
'type' => Controls_Manager::HIDDEN,
|
74 |
+
'dynamic' => [ 'active' => true ],
|
75 |
+
'condition' => [
|
76 |
+
'premium_video_box_video_type!' => 'self',
|
77 |
+
'premium_video_box_video_id_embed_selection' => 'id',
|
78 |
+
]
|
79 |
+
]
|
80 |
+
);
|
81 |
+
|
|
|
82 |
$this->add_control('premium_video_box_video_embed',
|
83 |
+
[
|
84 |
+
'label' => esc_html__('Embed URL', 'premium-addons-for-elementor'),
|
85 |
+
'description' => esc_html__('Enter your YouTube/Vimeo video link. For example, https://www.youtube.com/embed/z1hQgVpfTKU', 'premium-addons-for-elementor'),
|
86 |
+
'type' => Controls_Manager::HIDDEN,
|
87 |
+
'dynamic' => [ 'active' => true ],
|
88 |
+
'condition' => [
|
89 |
+
'premium_video_box_video_type!' => 'self',
|
90 |
+
'premium_video_box_video_id_embed_selection' => 'embed',
|
91 |
+
]
|
92 |
+
]
|
93 |
+
);
|
94 |
+
|
95 |
+
$this->add_control('premium_video_box_link',
|
96 |
+
[
|
97 |
+
'label' => esc_html__('Link', 'premium-addons-for-elementor'),
|
98 |
+
'type' => Controls_Manager::TEXT,
|
99 |
+
'dynamic' => [ 'active' => true ],
|
100 |
+
'condition' => [
|
101 |
+
'premium_video_box_video_type!' => 'self',
|
102 |
+
]
|
103 |
+
]
|
104 |
+
);
|
105 |
+
|
106 |
$this->add_control('premium_video_box_self_hosted',
|
107 |
[
|
108 |
'label' => esc_html__('URL', 'premium-addons-for-elementor'),
|
121 |
]
|
122 |
);
|
123 |
|
|
|
124 |
$this->add_control('premium_video_box_related_video',
|
125 |
[
|
126 |
'label' => esc_html__('Show Related Videos', 'premium-addons-for-elementor'),
|
133 |
]
|
134 |
);
|
135 |
|
|
|
136 |
$this->add_control('premium_video_box_mute',
|
137 |
[
|
138 |
'label' => esc_html__('Mute', 'premium-addons-for-elementor'),
|
141 |
]
|
142 |
);
|
143 |
|
|
|
144 |
$this->add_control('premium_video_box_loop',
|
145 |
[
|
146 |
'label' => esc_html__('Loop', 'premium-addons-for-elementor'),
|
148 |
]
|
149 |
);
|
150 |
|
151 |
+
$this->add_control('premium_video_box_image_switcher',
|
152 |
+
[
|
153 |
+
'label' => esc_html__('Overlay', 'premium-addons-for-elementor'),
|
154 |
+
'type' => Controls_Manager::SWITCHER,
|
155 |
+
'default' => 'yes'
|
156 |
+
]
|
157 |
+
);
|
158 |
+
|
159 |
$this->end_controls_section();
|
160 |
|
161 |
+
$this->start_controls_section('premium_video_box_image_settings',
|
162 |
+
[
|
163 |
+
'label' => esc_html__('Overlay', 'premium-addons-for-elementor'),
|
164 |
+
'condition' => [
|
165 |
+
'premium_video_box_image_switcher' => 'yes'
|
166 |
]
|
167 |
+
]
|
168 |
+
);
|
169 |
|
170 |
+
$this->add_control('premium_video_box_image',
|
171 |
+
[
|
172 |
+
'label' => esc_html__('Image', 'premium-addons-for-elementor'),
|
173 |
+
'description' => esc_html__('Choose an image for the video box', 'premium-addons-for-elementor' ),
|
174 |
+
'type' => Controls_Manager::MEDIA,
|
175 |
+
'dynamic' => [ 'active' => true ],
|
176 |
+
'default' => [
|
177 |
+
'url' => Utils::get_placeholder_image_src()
|
178 |
+
],
|
179 |
+
'label_block' => true,
|
180 |
+
]
|
181 |
+
);
|
182 |
+
|
183 |
+
$this->end_controls_section();
|
184 |
+
|
185 |
+
$this->start_controls_section('premium_video_box_play_icon_settings',
|
186 |
+
[
|
187 |
+
'label' => esc_html__('Play Icon', 'premium-addons-for-elementor')
|
188 |
+
]
|
189 |
+
);
|
190 |
|
|
|
191 |
$this->add_control('premium_video_box_play_icon_switcher',
|
192 |
+
[
|
193 |
+
'label' => esc_html__('Play Icon', 'premium-addons-for-elementor'),
|
194 |
+
'type' => Controls_Manager::SWITCHER,
|
195 |
+
'default' => 'yes'
|
196 |
+
]
|
197 |
+
);
|
198 |
|
199 |
$this->add_control('premium_video_box_icon_hor_position',
|
200 |
+
[
|
201 |
+
'label' => esc_html__('Horizontal Position (%)', 'premium-addons-for-elementor'),
|
202 |
+
'type' => Controls_Manager::SLIDER,
|
203 |
+
'label_block' => true,
|
204 |
+
'default' => [
|
205 |
+
'size' => 50,
|
206 |
+
],
|
207 |
+
'condition' => [
|
208 |
+
'premium_video_box_play_icon_switcher' => 'yes',
|
209 |
+
],
|
210 |
+
'selectors' => [
|
211 |
+
'{{WRAPPER}} .premium-video-box-play-icon-container' => 'left: {{SIZE}}%;',
|
212 |
+
]
|
213 |
+
]
|
214 |
+
);
|
215 |
|
216 |
$this->add_control('premium_video_box_icon_ver_position',
|
217 |
+
[
|
218 |
+
'label' => esc_html__('Vertical Position (%)', 'premium-addons-for-elementor'),
|
219 |
+
'type' => Controls_Manager::SLIDER,
|
220 |
+
'label_block' => true,
|
221 |
+
'default' => [
|
222 |
+
'size' => 50,
|
223 |
+
],
|
224 |
+
'condition' => [
|
225 |
+
'premium_video_box_play_icon_switcher' => 'yes',
|
226 |
+
],
|
227 |
+
'selectors' => [
|
228 |
+
'{{WRAPPER}} .premium-video-box-play-icon-container' => 'top: {{SIZE}}%;',
|
229 |
+
]
|
230 |
+
]
|
231 |
+
);
|
232 |
|
|
|
233 |
$this->end_controls_section();
|
234 |
|
|
|
235 |
$this->start_controls_section('premium_video_box_description_text_section',
|
236 |
+
[
|
237 |
+
'label' => esc_html__('Description', 'premium-addons-for-elementor'),
|
238 |
+
]
|
239 |
+
);
|
240 |
|
241 |
$this->add_control('premium_video_box_video_text_switcher',
|
242 |
+
[
|
243 |
+
'label' => esc_html__('Video Text', 'premium-addons-for-elementor'),
|
244 |
+
'type' => Controls_Manager::SWITCHER,
|
245 |
+
|