Version Description
- Added - Two new styles for Testimonials widget including one with list style Testimonials
- Refactored HTML generated for Testimonials and Testimonials Slider widget
- Refactored SCSS/CSS for Testimonials and Testimonials Slider widget
Download this release
Release Info
Developer | livemesh |
Plugin | Addons for Elementor |
Version | 6.9.5 |
Comparing to | |
See all releases |
Code changes from version 6.9.4 to 6.9.5
- addons-for-elementor.php +2 -2
- assets/css/widgets/testimonials-slider.css +4 -4
- assets/css/widgets/testimonials-slider.scss +1 -1
- assets/css/widgets/testimonials.css +107 -26
- assets/css/widgets/testimonials.css.map +1 -1
- assets/css/widgets/testimonials.scss +155 -21
- includes/widgets/testimonials-slider.php +27 -24
- includes/widgets/testimonials.php +42 -28
- plugin.php +2 -2
- readme.txt +6 -1
- templates/addons/testimonials-slider/content.php +1 -1
- templates/addons/testimonials/loop.php +36 -28
- templates/addons/testimonials/style1.php +4 -4
- templates/addons/testimonials/style2.php +8 -8
- templates/addons/testimonials/style3.php +61 -0
- templates/addons/testimonials/style4.php +69 -0
addons-for-elementor.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
* Author URI: https://livemeshelementor.com
|
9 |
* License: GPL3
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-3.0.txt
|
11 |
-
* Version: 6.9.
|
12 |
* Text Domain: livemesh-el-addons
|
13 |
* Domain Path: languages
|
14 |
* Elementor tested up to: 3.2.0
|
@@ -37,7 +37,7 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
37 |
|
38 |
if ( !function_exists( 'lae_fs' ) ) {
|
39 |
// Plugin version
|
40 |
-
define( 'LAE_VERSION', '6.9.
|
41 |
// Plugin Root File
|
42 |
define( 'LAE_PLUGIN_FILE', __FILE__ );
|
43 |
// Plugin Folder Path
|
8 |
* Author URI: https://livemeshelementor.com
|
9 |
* License: GPL3
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-3.0.txt
|
11 |
+
* Version: 6.9.5
|
12 |
* Text Domain: livemesh-el-addons
|
13 |
* Domain Path: languages
|
14 |
* Elementor tested up to: 3.2.0
|
37 |
|
38 |
if ( !function_exists( 'lae_fs' ) ) {
|
39 |
// Plugin version
|
40 |
+
define( 'LAE_VERSION', '6.9.5' );
|
41 |
// Plugin Root File
|
42 |
define( 'LAE_PLUGIN_FILE', __FILE__ );
|
43 |
// Plugin Folder Path
|
assets/css/widgets/testimonials-slider.css
CHANGED
@@ -53,13 +53,13 @@
|
|
53 |
margin-right: 15px; }
|
54 |
.rtl .lae-testimonials-slider .lae-testimonial .lae-testimonial-user .lae-image-wrapper img {
|
55 |
margin: 0 0 0 15px; }
|
56 |
-
.lae-testimonials-slider .lae-testimonial .lae-testimonial-user .lae-text {
|
57 |
display: table-cell;
|
58 |
vertical-align: middle;
|
59 |
color: #888; }
|
60 |
-
.lae-dark-bg .lae-testimonials-slider .lae-testimonial .lae-testimonial-user .lae-text {
|
61 |
color: #909090; }
|
62 |
-
.lae-testimonials-slider .lae-testimonial .lae-testimonial-user .lae-text .lae-author-name {
|
63 |
font-size: 18px;
|
64 |
line-height: 26px;
|
65 |
letter-spacing: 1px;
|
@@ -72,7 +72,7 @@
|
|
72 |
font-size: 15px;
|
73 |
line-height: 24px;
|
74 |
margin-bottom: 5px; }
|
75 |
-
.lae-dark-bg .lae-testimonials-slider .lae-testimonial .lae-testimonial-user .lae-text .lae-author-name {
|
76 |
color: #e5e5e5; }
|
77 |
|
78 |
/*# sourceMappingURL=testimonials-slider.css.map */
|
53 |
margin-right: 15px; }
|
54 |
.rtl .lae-testimonials-slider .lae-testimonial .lae-testimonial-user .lae-image-wrapper img {
|
55 |
margin: 0 0 0 15px; }
|
56 |
+
.lae-testimonials-slider .lae-testimonial .lae-testimonial-user .lae-user-text {
|
57 |
display: table-cell;
|
58 |
vertical-align: middle;
|
59 |
color: #888; }
|
60 |
+
.lae-dark-bg .lae-testimonials-slider .lae-testimonial .lae-testimonial-user .lae-user-text {
|
61 |
color: #909090; }
|
62 |
+
.lae-testimonials-slider .lae-testimonial .lae-testimonial-user .lae-user-text .lae-author-name {
|
63 |
font-size: 18px;
|
64 |
line-height: 26px;
|
65 |
letter-spacing: 1px;
|
72 |
font-size: 15px;
|
73 |
line-height: 24px;
|
74 |
margin-bottom: 5px; }
|
75 |
+
.lae-dark-bg .lae-testimonials-slider .lae-testimonial .lae-testimonial-user .lae-user-text .lae-author-name {
|
76 |
color: #e5e5e5; }
|
77 |
|
78 |
/*# sourceMappingURL=testimonials-slider.css.map */
|
assets/css/widgets/testimonials-slider.scss
CHANGED
@@ -113,7 +113,7 @@
|
|
113 |
}
|
114 |
}
|
115 |
|
116 |
-
.lae-text {
|
117 |
display: table-cell;
|
118 |
vertical-align: middle;
|
119 |
color: #888;
|
113 |
}
|
114 |
}
|
115 |
|
116 |
+
.lae-user-text {
|
117 |
display: table-cell;
|
118 |
vertical-align: middle;
|
119 |
color: #888;
|
assets/css/widgets/testimonials.css
CHANGED
@@ -20,6 +20,26 @@
|
|
20 |
fill: #f2b01e; }
|
21 |
.lae-testimonials .lae-testimonial.lae-rating-four .lae-testimonial-star-rating .lae-testimonial-star-rating-item:nth-child(1) svg, .lae-testimonials .lae-testimonial.lae-rating-four .lae-testimonial-star-rating .lae-testimonial-star-rating-item:nth-child(2) svg, .lae-testimonials .lae-testimonial.lae-rating-four .lae-testimonial-star-rating .lae-testimonial-star-rating-item:nth-child(3) svg, .lae-testimonials .lae-testimonial.lae-rating-four .lae-testimonial-star-rating .lae-testimonial-star-rating-item:nth-child(4) svg {
|
22 |
fill: #f2b01e; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
.lae-testimonials-style1 .lae-testimonial-user, .lae-testimonials-style2 .lae-testimonial-user {
|
25 |
display: table; }
|
@@ -31,28 +51,11 @@
|
|
31 |
margin-right: 20px; }
|
32 |
.rtl .lae-testimonials-style1 .lae-testimonial-user .lae-image-wrapper img, .rtl .lae-testimonials-style2 .lae-testimonial-user .lae-image-wrapper img {
|
33 |
margin: 0 0 0 20px; }
|
34 |
-
.lae-testimonials-style1 .lae-testimonial-user .lae-text, .lae-testimonials-style2 .lae-testimonial-user .lae-text {
|
35 |
display: table-cell;
|
36 |
-
vertical-align: middle;
|
37 |
-
|
38 |
-
|
39 |
-
color: #909090; }
|
40 |
-
.lae-testimonials-style1 .lae-testimonial-user .lae-text .lae-author-name, .lae-testimonials-style2 .lae-testimonial-user .lae-text .lae-author-name {
|
41 |
-
font-size: 18px;
|
42 |
-
line-height: 26px;
|
43 |
-
letter-spacing: 1px;
|
44 |
-
font-weight: bold;
|
45 |
-
color: #333;
|
46 |
-
text-transform: uppercase;
|
47 |
-
clear: none;
|
48 |
-
margin-top: 0;
|
49 |
-
margin-bottom: 10px;
|
50 |
-
font-size: 15px;
|
51 |
-
line-height: 24px;
|
52 |
-
margin-bottom: 5px;
|
53 |
-
color: #333; }
|
54 |
-
.lae-dark-bg .lae-testimonials-style1 .lae-testimonial-user .lae-text .lae-author-name, .lae-dark-bg .lae-testimonials-style2 .lae-testimonial-user .lae-text .lae-author-name {
|
55 |
-
color: #e5e5e5; }
|
56 |
|
57 |
/*-------- Style 1 ----------------*/
|
58 |
.lae-testimonials-style1 .lae-testimonial .lae-testimonial-star-rating {
|
@@ -66,9 +69,6 @@
|
|
66 |
padding: 20px;
|
67 |
margin-bottom: 40px;
|
68 |
font-style: italic;
|
69 |
-
font-size: 15px;
|
70 |
-
line-height: 24px;
|
71 |
-
color: #888;
|
72 |
text-align: center;
|
73 |
max-width: 450px; }
|
74 |
.lae-dark-bg .lae-testimonials-style1 .lae-testimonial .lae-testimonial-text {
|
@@ -98,10 +98,91 @@
|
|
98 |
|
99 |
/*-------- Style 2 ----------------*/
|
100 |
.lae-testimonials-style2 .lae-testimonial .lae-testimonial-star-rating {
|
101 |
-
margin:
|
102 |
.lae-testimonials-style2 .lae-testimonial .lae-testimonial-text {
|
103 |
margin-top: 20px; }
|
104 |
.lae-testimonials-style2 .lae-testimonial:not(.lae-rating-none) .lae-testimonial-text {
|
105 |
-
margin-top:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
|
107 |
/*# sourceMappingURL=testimonials.css.map */
|
20 |
fill: #f2b01e; }
|
21 |
.lae-testimonials .lae-testimonial.lae-rating-four .lae-testimonial-star-rating .lae-testimonial-star-rating-item:nth-child(1) svg, .lae-testimonials .lae-testimonial.lae-rating-four .lae-testimonial-star-rating .lae-testimonial-star-rating-item:nth-child(2) svg, .lae-testimonials .lae-testimonial.lae-rating-four .lae-testimonial-star-rating .lae-testimonial-star-rating-item:nth-child(3) svg, .lae-testimonials .lae-testimonial.lae-rating-four .lae-testimonial-star-rating .lae-testimonial-star-rating-item:nth-child(4) svg {
|
22 |
fill: #f2b01e; }
|
23 |
+
.lae-testimonials .lae-testimonial .lae-testimonial-text {
|
24 |
+
font-size: 15px;
|
25 |
+
line-height: 24px; }
|
26 |
+
.lae-dark-bg .lae-testimonials .lae-testimonial .lae-testimonial-text {
|
27 |
+
color: #b5b5b5; }
|
28 |
+
.lae-testimonials .lae-testimonial .lae-testimonial-user .lae-user-text {
|
29 |
+
color: #888;
|
30 |
+
font-size: 15px;
|
31 |
+
line-height: 24px; }
|
32 |
+
.lae-dark-bg .lae-testimonials .lae-testimonial .lae-testimonial-user .lae-user-text {
|
33 |
+
color: #909090; }
|
34 |
+
.lae-testimonials .lae-testimonial .lae-testimonial-user .lae-user-text .lae-author-name {
|
35 |
+
font-size: 15px;
|
36 |
+
line-height: 24px;
|
37 |
+
letter-spacing: 1px;
|
38 |
+
font-weight: bold;
|
39 |
+
text-transform: uppercase;
|
40 |
+
color: #333; }
|
41 |
+
.lae-dark-bg .lae-testimonials .lae-testimonial .lae-testimonial-user .lae-user-text .lae-author-name {
|
42 |
+
color: #e5e5e5; }
|
43 |
|
44 |
.lae-testimonials-style1 .lae-testimonial-user, .lae-testimonials-style2 .lae-testimonial-user {
|
45 |
display: table; }
|
51 |
margin-right: 20px; }
|
52 |
.rtl .lae-testimonials-style1 .lae-testimonial-user .lae-image-wrapper img, .rtl .lae-testimonials-style2 .lae-testimonial-user .lae-image-wrapper img {
|
53 |
margin: 0 0 0 20px; }
|
54 |
+
.lae-testimonials-style1 .lae-testimonial-user .lae-user-text, .lae-testimonials-style2 .lae-testimonial-user .lae-user-text {
|
55 |
display: table-cell;
|
56 |
+
vertical-align: middle; }
|
57 |
+
.lae-testimonials-style1 .lae-testimonial-user .lae-user-text .lae-author-name, .lae-testimonials-style2 .lae-testimonial-user .lae-user-text .lae-author-name {
|
58 |
+
margin: 0 0 5px 0; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
|
60 |
/*-------- Style 1 ----------------*/
|
61 |
.lae-testimonials-style1 .lae-testimonial .lae-testimonial-star-rating {
|
69 |
padding: 20px;
|
70 |
margin-bottom: 40px;
|
71 |
font-style: italic;
|
|
|
|
|
|
|
72 |
text-align: center;
|
73 |
max-width: 450px; }
|
74 |
.lae-dark-bg .lae-testimonials-style1 .lae-testimonial .lae-testimonial-text {
|
98 |
|
99 |
/*-------- Style 2 ----------------*/
|
100 |
.lae-testimonials-style2 .lae-testimonial .lae-testimonial-star-rating {
|
101 |
+
margin: 0 0 10px 0; }
|
102 |
.lae-testimonials-style2 .lae-testimonial .lae-testimonial-text {
|
103 |
margin-top: 20px; }
|
104 |
.lae-testimonials-style2 .lae-testimonial:not(.lae-rating-none) .lae-testimonial-text {
|
105 |
+
margin-top: 15px; }
|
106 |
+
|
107 |
+
/* ------------- Style 3 --------------- */
|
108 |
+
.lae-testimonials-style3 .lae-testimonial .lae-testimonial-star-rating {
|
109 |
+
margin: 0 0 15px 0; }
|
110 |
+
.lae-testimonials-style3 .lae-testimonial .lae-testimonial-text {
|
111 |
+
background: #e2e2e2;
|
112 |
+
border: 1px solid #e2e2e2;
|
113 |
+
border-radius: 10px;
|
114 |
+
text-align: center;
|
115 |
+
position: relative;
|
116 |
+
padding: 30px 15px;
|
117 |
+
margin-bottom: 40px;
|
118 |
+
color: #444;
|
119 |
+
max-width: 450px;
|
120 |
+
text-align: center;
|
121 |
+
max-width: 450px; }
|
122 |
+
.lae-dark-bg .lae-testimonials-style3 .lae-testimonial .lae-testimonial-text {
|
123 |
+
color: #666;
|
124 |
+
background: #eeeeee; }
|
125 |
+
.lae-testimonials-style3 .lae-testimonial .lae-testimonial-text:after {
|
126 |
+
content: "";
|
127 |
+
position: absolute;
|
128 |
+
top: 100%;
|
129 |
+
left: 50%;
|
130 |
+
margin: auto;
|
131 |
+
margin-left: -15px;
|
132 |
+
border-top: 20px solid #e2e2e2;
|
133 |
+
border-top-color: inherit;
|
134 |
+
border-left: 15px solid transparent;
|
135 |
+
border-right: 15px solid transparent; }
|
136 |
+
.lae-dark-bg .lae-testimonials-style3 .lae-testimonial .lae-testimonial-text:after {
|
137 |
+
border-top-color: #eeeeee; }
|
138 |
+
.lae-testimonials-style3 .lae-testimonial .lae-testimonial-user {
|
139 |
+
display: -webkit-box;
|
140 |
+
display: -ms-flexbox;
|
141 |
+
display: flex;
|
142 |
+
-webkit-box-orient: vertical;
|
143 |
+
-webkit-box-direction: normal;
|
144 |
+
-ms-flex-direction: column;
|
145 |
+
flex-direction: column;
|
146 |
+
-webkit-box-align: center;
|
147 |
+
-ms-flex-align: center;
|
148 |
+
align-items: center; }
|
149 |
+
.lae-testimonials-style3 .lae-testimonial .lae-testimonial-user .lae-image-wrapper img {
|
150 |
+
max-width: 64px;
|
151 |
+
border-radius: 50%; }
|
152 |
+
.lae-testimonials-style3 .lae-testimonial .lae-testimonial-user .lae-user-text {
|
153 |
+
text-align: center; }
|
154 |
+
.lae-testimonials-style3 .lae-testimonial .lae-testimonial-user .lae-user-text .lae-author-name {
|
155 |
+
margin: 15px 0 5px 0; }
|
156 |
+
|
157 |
+
/* ------------- Style 4 --------------- */
|
158 |
+
.lae-testimonials-style4 .lae-testimonial {
|
159 |
+
display: -webkit-box;
|
160 |
+
display: -ms-flexbox;
|
161 |
+
display: flex;
|
162 |
+
-webkit-box-orient: horizontal;
|
163 |
+
-webkit-box-direction: normal;
|
164 |
+
-ms-flex-direction: row;
|
165 |
+
flex-direction: row;
|
166 |
+
max-width: 720px;
|
167 |
+
margin: 24px 0; }
|
168 |
+
.lae-testimonials-style4 .lae-testimonial .lae-testimonial-user-picture .lae-image-wrapper {
|
169 |
+
position: relative;
|
170 |
+
overflow: hidden;
|
171 |
+
border-radius: 50%;
|
172 |
+
margin-right: 32px; }
|
173 |
+
@media only screen and (max-width: 640px) {
|
174 |
+
.lae-testimonials-style4 .lae-testimonial .lae-testimonial-user-picture .lae-image-wrapper {
|
175 |
+
margin-right: 25px; } }
|
176 |
+
.lae-testimonials-style4 .lae-testimonial .lae-testimonial-user-picture .lae-image-wrapper img {
|
177 |
+
max-width: 120px; }
|
178 |
+
@media only screen and (max-width: 640px) {
|
179 |
+
.lae-testimonials-style4 .lae-testimonial .lae-testimonial-user-picture .lae-image-wrapper img {
|
180 |
+
max-width: 72px; } }
|
181 |
+
.lae-testimonials-style4 .lae-testimonial .lae-testimonial-info {
|
182 |
+
text-align: left; }
|
183 |
+
.lae-testimonials-style4 .lae-testimonial .lae-testimonial-info .lae-testimonial-star-rating {
|
184 |
+
margin-bottom: 5px; }
|
185 |
+
.lae-testimonials-style4 .lae-testimonial .lae-testimonial-info .lae-user-text .lae-author-name {
|
186 |
+
margin: 15px 0 5px 0; }
|
187 |
|
188 |
/*# sourceMappingURL=testimonials.css.map */
|
assets/css/widgets/testimonials.css.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"sources":["testimonials.scss","../_lae-lib.scss"],"names":[],"mappings":"AAEA,mGAAmG;AAGnG;EACE,YAAW,EAAA;EAEX;IACE,oBAAmB,EAAA;IAEnB;MACE,WAAU;MACV,UAAS,EAAA;
|
1 |
+
{"version":3,"sources":["testimonials.scss","../_lae-lib.scss"],"names":[],"mappings":"AAEA,mGAAmG;AAGnG;EACE,YAAW,EAAA;EAEX;IACE,oBAAmB,EAAA;IAEnB;MACE,WAAU;MACV,UAAS,EAAA;MAET;QACE,sBAAqB,EAAA;QAErB;UACE,cAAa,EAAA;IAMjB;MACE,cAAa,EAAA;IAMb;MACE,cAAa,EAAA;IAOf;MACE,cAAa,EAAA;IAOf;MACE,cAAa,EAAA;IAOf;MACE,cAAa,EAAA;IAKnB;MACE,gBAAe;MACf,kBAAiB,EAAA;MAEjB;QACE,eAAc,EAAA;IAKhB;MACE,YAAW;MACX,gBAAe;MACf,kBAAiB,EAAA;MAEjB;QACE,eAAc,EAAA;MAGhB;QACE,gBAAe;QACf,kBAAiB;QACjB,oBAAmB;QACnB,kBAAiB;QACjB,0BAAyB;QACzB,YAAW,EAAA;QAEX;UACE,eAAc,EAAA;;AASxB;EACE,eAAc,EAAA;EAEd;IACE,oBAAmB,EAAA;IAEnB;MACE,gBAAe;MACf,mBAAkB;MAClB,mBAAkB,EAAA;MAElB;QACE,mBAAkB,EAAA;EAKxB;IACE,oBAAmB;IACnB,uBAAsB,EAAA;IAEtB;MACE,kBAAiB,EAAA;;AAMzB,qCAAqC;AAIjC;EACE,mBAAkB,EAAA;AAGpB;EACE,oBAAmB;EACnB,0BAAyB;EACzB,oBAAmB;EACnB,mBAAkB;EAClB,mBAAkB;EAClB,cAAa;EACb,oBAAmB;EACnB,mBAAkB;EAqClB,mBAAkB;EAClB,iBAAgB,EAAA;EApChB;IACE,YAAW;IACX,iBAAgB,EAAA;EAGlB;IACE,YAAW;IACX,eAAc;IACd,iBAAgB;IAChB,+BAA8B;IAC9B,iCAAgC;IAChC,oBAAmB;IACnB,yBAAwB;IAGxB,iCAAgC;IAEhC,8BAA6B;IAC7B,YAAW;IACX,aAAY;IACZ,mBAAkB;IAClB,cAAa;IACb,WAAU;IACV,aAAY,EAAA;IAEZ;MACE,WAAU;MACV,YAAW,EAAA;IAGb;MACE,iBAAgB,EAAA;;AAU1B,qCAAqC;AAIjC;EACE,mBAAkB,EAAA;AAGpB;EACE,iBAAgB,EAAA;AAGlB;EACE,iBAAgB,EAAA;;AAMtB,2CAA2C;AAIvC;EACE,mBAAkB,EAAA;AAGpB;EACE,oBAAmB;EACnB,0BAAyB;EACzB,oBAAmB;EACnB,mBAAkB;EAClB,mBAAkB;EAClB,mBAAkB;EAClB,oBAAmB;EACnB,YAAW;EACX,iBAAgB;EAwBhB,mBAAkB;EAClB,iBAAgB,EAAA;EAvBhB;IACE,YAAW;IACX,oBAAmB,EAAA;EAGrB;IACE,YAAW;IACX,mBAAkB;IAClB,UAAS;IACT,UAAS;IACT,aAAY;IACZ,mBAAkB;IAClB,+BAA8B;IAC9B,0BAAyB;IACzB,oCAAmC;IACnC,qCAAoC,EAAA;IAEpC;MACE,0BAAyB,EAAA;AAQ/B;EACE,qBAAa;EAAb,qBAAa;EAAb,cAAa;EACb,6BAAsB;EAAtB,8BAAsB;MAAtB,2BAAsB;UAAtB,uBAAsB;EACtB,0BAAmB;MAAnB,uBAAmB;UAAnB,oBAAmB,EAAA;EAEnB;IACE,gBAAe;IACf,mBAAkB,EAAA;EAGpB;IACE,mBAAkB,EAAA;IAElB;MACE,qBAAoB,EAAA;;AAO9B,2CAA2C;AAGzC;EACE,qBAAa;EAAb,qBAAa;EAAb,cAAa;EACb,+BAAmB;EAAnB,8BAAmB;MAAnB,wBAAmB;UAAnB,oBAAmB;EACnB,iBAAgB;EAChB,eAAc,EAAA;EAGZ;IACE,mBAAkB;IAClB,iBAAgB;IAChB,mBAAkB;IAClB,mBAAkB,EAAA;ICrMxB;MDiMI;QAMI,mBAAkB,EAAA,EAAA;IAGpB;MACE,iBAAgB,EAAA;MC3MxB;QD0MM;UAGI,gBAAe,EAAA,EAAA;EAMvB;IACE,iBAAgB,EAAA;IAEhB;MACE,mBAAkB,EAAA;IAIlB;MACE,qBAAoB,EAAA","file":"testimonials.css"}
|
assets/css/widgets/testimonials.scss
CHANGED
@@ -12,8 +12,10 @@
|
|
12 |
.lae-testimonial-star-rating {
|
13 |
padding: 0;
|
14 |
margin: 0;
|
|
|
15 |
.lae-testimonial-star-rating-item {
|
16 |
display: inline-block;
|
|
|
17 |
svg {
|
18 |
fill: #d8d8d8;
|
19 |
}
|
@@ -57,6 +59,40 @@
|
|
57 |
}
|
58 |
}
|
59 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
}
|
61 |
}
|
62 |
|
@@ -78,25 +114,12 @@
|
|
78 |
}
|
79 |
}
|
80 |
|
81 |
-
.lae-text {
|
82 |
display: table-cell;
|
83 |
vertical-align: middle;
|
84 |
-
color: #888;
|
85 |
-
|
86 |
-
.lae-dark-bg & {
|
87 |
-
color: #909090;
|
88 |
-
}
|
89 |
|
90 |
.lae-author-name {
|
91 |
-
|
92 |
-
font-size: 15px;
|
93 |
-
line-height: 24px;
|
94 |
-
margin-bottom: 5px;
|
95 |
-
color: #333;
|
96 |
-
|
97 |
-
.lae-dark-bg & {
|
98 |
-
color: #e5e5e5;
|
99 |
-
}
|
100 |
}
|
101 |
}
|
102 |
}
|
@@ -109,6 +132,7 @@
|
|
109 |
.lae-testimonial-star-rating {
|
110 |
margin: 0 0 15px 0;
|
111 |
}
|
|
|
112 |
.lae-testimonial-text {
|
113 |
background: #ffffff;
|
114 |
border: 1px solid #dbdbdb;
|
@@ -118,9 +142,6 @@
|
|
118 |
padding: 20px;
|
119 |
margin-bottom: 40px;
|
120 |
font-style: italic;
|
121 |
-
font-size: 15px;
|
122 |
-
line-height: 24px;
|
123 |
-
color: #888;
|
124 |
|
125 |
.lae-dark-bg & {
|
126 |
color: #666;
|
@@ -168,13 +189,126 @@
|
|
168 |
.lae-testimonials-style2 {
|
169 |
.lae-testimonial {
|
170 |
.lae-testimonial-star-rating {
|
171 |
-
margin:
|
172 |
}
|
|
|
173 |
.lae-testimonial-text {
|
174 |
margin-top: 20px;
|
175 |
}
|
|
|
176 |
&:not(.lae-rating-none) .lae-testimonial-text {
|
177 |
-
margin-top:
|
178 |
}
|
179 |
}
|
180 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
.lae-testimonial-star-rating {
|
13 |
padding: 0;
|
14 |
margin: 0;
|
15 |
+
|
16 |
.lae-testimonial-star-rating-item {
|
17 |
display: inline-block;
|
18 |
+
|
19 |
svg {
|
20 |
fill: #d8d8d8;
|
21 |
}
|
59 |
}
|
60 |
}
|
61 |
}
|
62 |
+
|
63 |
+
.lae-testimonial-text {
|
64 |
+
font-size: 15px;
|
65 |
+
line-height: 24px;
|
66 |
+
|
67 |
+
.lae-dark-bg & {
|
68 |
+
color: #b5b5b5;
|
69 |
+
}
|
70 |
+
}
|
71 |
+
|
72 |
+
.lae-testimonial-user {
|
73 |
+
.lae-user-text {
|
74 |
+
color: #888;
|
75 |
+
font-size: 15px;
|
76 |
+
line-height: 24px;
|
77 |
+
|
78 |
+
.lae-dark-bg & {
|
79 |
+
color: #909090;
|
80 |
+
}
|
81 |
+
|
82 |
+
.lae-author-name {
|
83 |
+
font-size: 15px;
|
84 |
+
line-height: 24px;
|
85 |
+
letter-spacing: 1px;
|
86 |
+
font-weight: bold;
|
87 |
+
text-transform: uppercase;
|
88 |
+
color: #333;
|
89 |
+
|
90 |
+
.lae-dark-bg & {
|
91 |
+
color: #e5e5e5;
|
92 |
+
}
|
93 |
+
}
|
94 |
+
}
|
95 |
+
}
|
96 |
}
|
97 |
}
|
98 |
|
114 |
}
|
115 |
}
|
116 |
|
117 |
+
.lae-user-text {
|
118 |
display: table-cell;
|
119 |
vertical-align: middle;
|
|
|
|
|
|
|
|
|
|
|
120 |
|
121 |
.lae-author-name {
|
122 |
+
margin: 0 0 5px 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
}
|
124 |
}
|
125 |
}
|
132 |
.lae-testimonial-star-rating {
|
133 |
margin: 0 0 15px 0;
|
134 |
}
|
135 |
+
|
136 |
.lae-testimonial-text {
|
137 |
background: #ffffff;
|
138 |
border: 1px solid #dbdbdb;
|
142 |
padding: 20px;
|
143 |
margin-bottom: 40px;
|
144 |
font-style: italic;
|
|
|
|
|
|
|
145 |
|
146 |
.lae-dark-bg & {
|
147 |
color: #666;
|
189 |
.lae-testimonials-style2 {
|
190 |
.lae-testimonial {
|
191 |
.lae-testimonial-star-rating {
|
192 |
+
margin: 0 0 10px 0;
|
193 |
}
|
194 |
+
|
195 |
.lae-testimonial-text {
|
196 |
margin-top: 20px;
|
197 |
}
|
198 |
+
|
199 |
&:not(.lae-rating-none) .lae-testimonial-text {
|
200 |
+
margin-top: 15px;
|
201 |
}
|
202 |
}
|
203 |
+
}
|
204 |
+
|
205 |
+
|
206 |
+
/* ------------- Style 3 --------------- */
|
207 |
+
|
208 |
+
.lae-testimonials-style3 {
|
209 |
+
.lae-testimonial {
|
210 |
+
.lae-testimonial-star-rating {
|
211 |
+
margin: 0 0 15px 0;
|
212 |
+
}
|
213 |
+
|
214 |
+
.lae-testimonial-text {
|
215 |
+
background: #e2e2e2;
|
216 |
+
border: 1px solid #e2e2e2;
|
217 |
+
border-radius: 10px;
|
218 |
+
text-align: center;
|
219 |
+
position: relative;
|
220 |
+
padding: 30px 15px;
|
221 |
+
margin-bottom: 40px;
|
222 |
+
color: #444;
|
223 |
+
max-width: 450px;
|
224 |
+
|
225 |
+
.lae-dark-bg & {
|
226 |
+
color: #666;
|
227 |
+
background: #eeeeee;
|
228 |
+
}
|
229 |
+
|
230 |
+
&:after {
|
231 |
+
content: "";
|
232 |
+
position: absolute;
|
233 |
+
top: 100%;
|
234 |
+
left: 50%;
|
235 |
+
margin: auto;
|
236 |
+
margin-left: -15px;
|
237 |
+
border-top: 20px solid #e2e2e2;
|
238 |
+
border-top-color: inherit;
|
239 |
+
border-left: 15px solid transparent;
|
240 |
+
border-right: 15px solid transparent;
|
241 |
+
|
242 |
+
.lae-dark-bg & {
|
243 |
+
border-top-color: #eeeeee;
|
244 |
+
}
|
245 |
+
}
|
246 |
+
|
247 |
+
text-align: center;
|
248 |
+
max-width: 450px;
|
249 |
+
}
|
250 |
+
|
251 |
+
.lae-testimonial-user {
|
252 |
+
display: flex;
|
253 |
+
flex-direction: column;
|
254 |
+
align-items: center;
|
255 |
+
|
256 |
+
.lae-image-wrapper img {
|
257 |
+
max-width: 64px;
|
258 |
+
border-radius: 50%;
|
259 |
+
}
|
260 |
+
|
261 |
+
.lae-user-text {
|
262 |
+
text-align: center;
|
263 |
+
|
264 |
+
.lae-author-name {
|
265 |
+
margin: 15px 0 5px 0;
|
266 |
+
}
|
267 |
+
}
|
268 |
+
}
|
269 |
+
}
|
270 |
+
}
|
271 |
+
|
272 |
+
/* ------------- Style 4 --------------- */
|
273 |
+
|
274 |
+
.lae-testimonials-style4 {
|
275 |
+
.lae-testimonial {
|
276 |
+
display: flex;
|
277 |
+
flex-direction: row;
|
278 |
+
max-width: 720px;
|
279 |
+
margin: 24px 0;
|
280 |
+
|
281 |
+
.lae-testimonial-user-picture {
|
282 |
+
.lae-image-wrapper {
|
283 |
+
position: relative;
|
284 |
+
overflow: hidden;
|
285 |
+
border-radius: 50%;
|
286 |
+
margin-right: 32px;
|
287 |
+
@include respond-to-max(640) {
|
288 |
+
margin-right: 25px;
|
289 |
+
}
|
290 |
+
|
291 |
+
img {
|
292 |
+
max-width: 120px;
|
293 |
+
@include respond-to-max(640) {
|
294 |
+
max-width: 72px;
|
295 |
+
}
|
296 |
+
}
|
297 |
+
}
|
298 |
+
}
|
299 |
+
|
300 |
+
.lae-testimonial-info {
|
301 |
+
text-align: left;
|
302 |
+
|
303 |
+
.lae-testimonial-star-rating {
|
304 |
+
margin-bottom: 5px;
|
305 |
+
}
|
306 |
+
|
307 |
+
.lae-user-text {
|
308 |
+
.lae-author-name {
|
309 |
+
margin: 15px 0 5px 0;
|
310 |
+
}
|
311 |
+
}
|
312 |
+
}
|
313 |
+
}
|
314 |
+
}
|
includes/widgets/testimonials-slider.php
CHANGED
@@ -84,17 +84,6 @@ class LAE_Testimonials_Slider_Widget extends LAE_Widget_Base
|
|
84 |
'active' => true,
|
85 |
],
|
86 |
] );
|
87 |
-
$repeater->add_control( 'client_image', [
|
88 |
-
'label' => __( 'Customer/Client Image', 'livemesh-el-addons' ),
|
89 |
-
'type' => Controls_Manager::MEDIA,
|
90 |
-
'default' => [
|
91 |
-
'url' => Utils::get_placeholder_image_src(),
|
92 |
-
],
|
93 |
-
'label_block' => true,
|
94 |
-
'dynamic' => [
|
95 |
-
'active' => true,
|
96 |
-
],
|
97 |
-
] );
|
98 |
$repeater->add_control( 'testimonial_rating', [
|
99 |
'label' => __( 'Rating', 'livemesh-el-addons' ),
|
100 |
'type' => Controls_Manager::SELECT,
|
@@ -108,6 +97,17 @@ class LAE_Testimonials_Slider_Widget extends LAE_Widget_Base
|
|
108 |
'rating-five' => __( '5', 'livemesh-el-addons' ),
|
109 |
],
|
110 |
] );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
$repeater->add_control( 'testimonial_text', [
|
112 |
'label' => __( 'Testimonials Text', 'livemesh-el-addons' ),
|
113 |
'type' => Controls_Manager::WYSIWYG,
|
@@ -121,17 +121,20 @@ class LAE_Testimonials_Slider_Widget extends LAE_Widget_Base
|
|
121 |
'label' => __( 'Testimonials', 'livemesh-el-addons' ),
|
122 |
'type' => Controls_Manager::REPEATER,
|
123 |
'default' => [ [
|
124 |
-
'client_name'
|
125 |
-
'credentials'
|
126 |
-
'
|
|
|
127 |
], [
|
128 |
-
'client_name'
|
129 |
-
'credentials'
|
130 |
-
'
|
|
|
131 |
], [
|
132 |
-
'client_name'
|
133 |
-
'credentials'
|
134 |
-
'
|
|
|
135 |
] ],
|
136 |
'fields' => $repeater->get_controls(),
|
137 |
'title_field' => '{{{ client_name }}}',
|
@@ -292,12 +295,12 @@ class LAE_Testimonials_Slider_Widget extends LAE_Widget_Base
|
|
292 |
'label' => __( 'Color', 'livemesh-el-addons' ),
|
293 |
'type' => Controls_Manager::COLOR,
|
294 |
'selectors' => [
|
295 |
-
'{{WRAPPER}} .lae-testimonials-slider .lae-testimonial .lae-testimonial-user .lae-text .lae-author-name' => 'color: {{VALUE}};',
|
296 |
],
|
297 |
] );
|
298 |
$this->add_group_control( Group_Control_Typography::get_type(), [
|
299 |
'name' => 'title_typography',
|
300 |
-
'selector' => '{{WRAPPER}} .lae-testimonials-slider .lae-testimonial .lae-testimonial-user .lae-text .lae-author-name',
|
301 |
] );
|
302 |
$this->end_controls_section();
|
303 |
$this->start_controls_section( 'section_testimonials_author_credentials', [
|
@@ -308,12 +311,12 @@ class LAE_Testimonials_Slider_Widget extends LAE_Widget_Base
|
|
308 |
'label' => __( 'Color', 'livemesh-el-addons' ),
|
309 |
'type' => Controls_Manager::COLOR,
|
310 |
'selectors' => [
|
311 |
-
'{{WRAPPER}} .lae-testimonials-slider .lae-testimonial .lae-testimonial-user .lae-text' => 'color: {{VALUE}};',
|
312 |
],
|
313 |
] );
|
314 |
$this->add_group_control( Group_Control_Typography::get_type(), [
|
315 |
'name' => 'credential_typography',
|
316 |
-
'selector' => '{{WRAPPER}} .lae-testimonials-slider .lae-testimonial .lae-testimonial-user .lae-text',
|
317 |
] );
|
318 |
$this->end_controls_section();
|
319 |
$this->start_controls_section( 'section_testimonials_rating', [
|
84 |
'active' => true,
|
85 |
],
|
86 |
] );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
$repeater->add_control( 'testimonial_rating', [
|
88 |
'label' => __( 'Rating', 'livemesh-el-addons' ),
|
89 |
'type' => Controls_Manager::SELECT,
|
97 |
'rating-five' => __( '5', 'livemesh-el-addons' ),
|
98 |
],
|
99 |
] );
|
100 |
+
$repeater->add_control( 'client_image', [
|
101 |
+
'label' => __( 'Customer/Client Image', 'livemesh-el-addons' ),
|
102 |
+
'type' => Controls_Manager::MEDIA,
|
103 |
+
'default' => [
|
104 |
+
'url' => Utils::get_placeholder_image_src(),
|
105 |
+
],
|
106 |
+
'label_block' => true,
|
107 |
+
'dynamic' => [
|
108 |
+
'active' => true,
|
109 |
+
],
|
110 |
+
] );
|
111 |
$repeater->add_control( 'testimonial_text', [
|
112 |
'label' => __( 'Testimonials Text', 'livemesh-el-addons' ),
|
113 |
'type' => Controls_Manager::WYSIWYG,
|
121 |
'label' => __( 'Testimonials', 'livemesh-el-addons' ),
|
122 |
'type' => Controls_Manager::REPEATER,
|
123 |
'default' => [ [
|
124 |
+
'client_name' => __( 'Customer #1', 'livemesh-el-addons' ),
|
125 |
+
'credentials' => __( 'CEO, Invision Inc.', 'livemesh-el-addons' ),
|
126 |
+
'testimonial_rating' => 'rating-four',
|
127 |
+
'testimonial_text' => __( 'I am testimonial text. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'livemesh-el-addons' ),
|
128 |
], [
|
129 |
+
'client_name' => __( 'Customer #2', 'livemesh-el-addons' ),
|
130 |
+
'credentials' => __( 'Lead Developer, Automattic Inc', 'livemesh-el-addons' ),
|
131 |
+
'testimonial_rating' => 'rating-five',
|
132 |
+
'testimonial_text' => __( 'I am testimonial text. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'livemesh-el-addons' ),
|
133 |
], [
|
134 |
+
'client_name' => __( 'Customer #3', 'livemesh-el-addons' ),
|
135 |
+
'credentials' => __( 'Store Manager, Walmart Inc', 'livemesh-el-addons' ),
|
136 |
+
'testimonial_rating' => 'rating-four',
|
137 |
+
'testimonial_text' => __( 'I am testimonial text. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'livemesh-el-addons' ),
|
138 |
] ],
|
139 |
'fields' => $repeater->get_controls(),
|
140 |
'title_field' => '{{{ client_name }}}',
|
295 |
'label' => __( 'Color', 'livemesh-el-addons' ),
|
296 |
'type' => Controls_Manager::COLOR,
|
297 |
'selectors' => [
|
298 |
+
'{{WRAPPER}} .lae-testimonials-slider .lae-testimonial .lae-testimonial-user .lae-user-text .lae-author-name' => 'color: {{VALUE}};',
|
299 |
],
|
300 |
] );
|
301 |
$this->add_group_control( Group_Control_Typography::get_type(), [
|
302 |
'name' => 'title_typography',
|
303 |
+
'selector' => '{{WRAPPER}} .lae-testimonials-slider .lae-testimonial .lae-testimonial-user .lae-user-text .lae-author-name',
|
304 |
] );
|
305 |
$this->end_controls_section();
|
306 |
$this->start_controls_section( 'section_testimonials_author_credentials', [
|
311 |
'label' => __( 'Color', 'livemesh-el-addons' ),
|
312 |
'type' => Controls_Manager::COLOR,
|
313 |
'selectors' => [
|
314 |
+
'{{WRAPPER}} .lae-testimonials-slider .lae-testimonial .lae-testimonial-user .lae-user-text' => 'color: {{VALUE}};',
|
315 |
],
|
316 |
] );
|
317 |
$this->add_group_control( Group_Control_Typography::get_type(), [
|
318 |
'name' => 'credential_typography',
|
319 |
+
'selector' => '{{WRAPPER}} .lae-testimonials-slider .lae-testimonial .lae-testimonial-user .lae-user-text',
|
320 |
] );
|
321 |
$this->end_controls_section();
|
322 |
$this->start_controls_section( 'section_testimonials_rating', [
|
includes/widgets/testimonials.php
CHANGED
@@ -92,17 +92,6 @@ class LAE_Testimonials_Widget extends LAE_Widget_Base
|
|
92 |
'active' => true,
|
93 |
],
|
94 |
] );
|
95 |
-
$repeater->add_control( 'client_image', [
|
96 |
-
'label' => __( 'Customer/Client Image', 'livemesh-el-addons' ),
|
97 |
-
'type' => Controls_Manager::MEDIA,
|
98 |
-
'default' => [
|
99 |
-
'url' => Utils::get_placeholder_image_src(),
|
100 |
-
],
|
101 |
-
'label_block' => true,
|
102 |
-
'dynamic' => [
|
103 |
-
'active' => true,
|
104 |
-
],
|
105 |
-
] );
|
106 |
$repeater->add_control( 'testimonial_rating', [
|
107 |
'label' => __( 'Rating', 'livemesh-el-addons' ),
|
108 |
'type' => Controls_Manager::SELECT,
|
@@ -116,6 +105,17 @@ class LAE_Testimonials_Widget extends LAE_Widget_Base
|
|
116 |
'rating-five' => __( '5', 'livemesh-el-addons' ),
|
117 |
],
|
118 |
] );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
$repeater->add_control( 'testimonial_text', [
|
120 |
'label' => __( 'Testimonials Text', 'livemesh-el-addons' ),
|
121 |
'type' => Controls_Manager::WYSIWYG,
|
@@ -139,17 +139,20 @@ class LAE_Testimonials_Widget extends LAE_Widget_Base
|
|
139 |
'type' => Controls_Manager::REPEATER,
|
140 |
'separator' => 'before',
|
141 |
'default' => [ [
|
142 |
-
'client_name'
|
143 |
-
'credentials'
|
144 |
-
'
|
|
|
145 |
], [
|
146 |
-
'client_name'
|
147 |
-
'credentials'
|
148 |
-
'
|
|
|
149 |
], [
|
150 |
-
'client_name'
|
151 |
-
'credentials'
|
152 |
-
'
|
|
|
153 |
] ],
|
154 |
'fields' => $repeater->get_controls(),
|
155 |
'title_field' => '{{{ client_name }}}',
|
@@ -171,15 +174,20 @@ class LAE_Testimonials_Widget extends LAE_Widget_Base
|
|
171 |
'options' => [
|
172 |
'style1' => __( 'Style 1', 'livemesh-el-addons' ),
|
173 |
'style2' => __( 'Style 2', 'livemesh-el-addons' ),
|
|
|
|
|
174 |
],
|
175 |
] );
|
176 |
$this->add_control( 'layout', [
|
177 |
-
'type'
|
178 |
-
'label'
|
179 |
-
'default'
|
180 |
-
'options'
|
181 |
'grid' => __( 'Grid', 'livemesh-el-addons' ),
|
182 |
'carousel' => __( 'Carousel', 'livemesh-el-addons' ),
|
|
|
|
|
|
|
183 |
],
|
184 |
] );
|
185 |
$this->end_controls_section();
|
@@ -187,6 +195,7 @@ class LAE_Testimonials_Widget extends LAE_Widget_Base
|
|
187 |
'label' => __( 'Carousel Settings', 'livemesh-el-addons' ),
|
188 |
'tab' => Controls_Manager::TAB_SETTINGS,
|
189 |
'condition' => [
|
|
|
190 |
'layout' => [ 'carousel' ],
|
191 |
],
|
192 |
] );
|
@@ -283,6 +292,7 @@ class LAE_Testimonials_Widget extends LAE_Widget_Base
|
|
283 |
'label' => __( 'Responsive Options', 'livemesh-el-addons' ),
|
284 |
'tab' => Controls_Manager::TAB_SETTINGS,
|
285 |
'condition' => [
|
|
|
286 |
'layout' => [ 'carousel' ],
|
287 |
],
|
288 |
] );
|
@@ -366,6 +376,7 @@ class LAE_Testimonials_Widget extends LAE_Widget_Base
|
|
366 |
'label' => __( 'Grid Settings', 'livemesh-el-addons' ),
|
367 |
'tab' => Controls_Manager::TAB_SETTINGS,
|
368 |
'condition' => [
|
|
|
369 |
'layout' => [ 'grid' ],
|
370 |
],
|
371 |
] );
|
@@ -497,6 +508,9 @@ class LAE_Testimonials_Widget extends LAE_Widget_Base
|
|
497 |
'{{WRAPPER}} .lae-testimonials .lae-testimonial-text' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
498 |
],
|
499 |
'isLinked' => false,
|
|
|
|
|
|
|
500 |
] );
|
501 |
$this->add_control( 'text_color', [
|
502 |
'label' => __( 'Color', 'livemesh-el-addons' ),
|
@@ -558,12 +572,12 @@ class LAE_Testimonials_Widget extends LAE_Widget_Base
|
|
558 |
'label' => __( 'Color', 'livemesh-el-addons' ),
|
559 |
'type' => Controls_Manager::COLOR,
|
560 |
'selectors' => [
|
561 |
-
'{{WRAPPER}} .lae-testimonials .lae-testimonial-user .lae-text .lae-author-name' => 'color: {{VALUE}};',
|
562 |
],
|
563 |
] );
|
564 |
$this->add_group_control( Group_Control_Typography::get_type(), [
|
565 |
'name' => 'title_typography',
|
566 |
-
'selector' => '{{WRAPPER}} .lae-testimonials .lae-testimonial-user .lae-text .lae-author-name',
|
567 |
] );
|
568 |
$this->end_controls_section();
|
569 |
$this->start_controls_section( 'section_testimonials_author_credentials', [
|
@@ -574,12 +588,12 @@ class LAE_Testimonials_Widget extends LAE_Widget_Base
|
|
574 |
'label' => __( 'Color', 'livemesh-el-addons' ),
|
575 |
'type' => Controls_Manager::COLOR,
|
576 |
'selectors' => [
|
577 |
-
'{{WRAPPER}} .lae-testimonials .lae-testimonial-user .lae-text' => 'color: {{VALUE}};',
|
578 |
],
|
579 |
] );
|
580 |
$this->add_group_control( Group_Control_Typography::get_type(), [
|
581 |
'name' => 'credential_typography',
|
582 |
-
'selector' => '{{WRAPPER}} .lae-testimonials .lae-testimonial-user .lae-text',
|
583 |
] );
|
584 |
$this->end_controls_section();
|
585 |
$this->start_controls_section( 'section_testimonials_rating', [
|
92 |
'active' => true,
|
93 |
],
|
94 |
] );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
$repeater->add_control( 'testimonial_rating', [
|
96 |
'label' => __( 'Rating', 'livemesh-el-addons' ),
|
97 |
'type' => Controls_Manager::SELECT,
|
105 |
'rating-five' => __( '5', 'livemesh-el-addons' ),
|
106 |
],
|
107 |
] );
|
108 |
+
$repeater->add_control( 'client_image', [
|
109 |
+
'label' => __( 'Customer/Client Image', 'livemesh-el-addons' ),
|
110 |
+
'type' => Controls_Manager::MEDIA,
|
111 |
+
'default' => [
|
112 |
+
'url' => Utils::get_placeholder_image_src(),
|
113 |
+
],
|
114 |
+
'label_block' => true,
|
115 |
+
'dynamic' => [
|
116 |
+
'active' => true,
|
117 |
+
],
|
118 |
+
] );
|
119 |
$repeater->add_control( 'testimonial_text', [
|
120 |
'label' => __( 'Testimonials Text', 'livemesh-el-addons' ),
|
121 |
'type' => Controls_Manager::WYSIWYG,
|
139 |
'type' => Controls_Manager::REPEATER,
|
140 |
'separator' => 'before',
|
141 |
'default' => [ [
|
142 |
+
'client_name' => __( 'Customer #1', 'livemesh-el-addons' ),
|
143 |
+
'credentials' => __( 'CEO, Invision Inc.', 'livemesh-el-addons' ),
|
144 |
+
'testimonial_rating' => 'rating-four',
|
145 |
+
'testimonial_text' => __( 'I am testimonial text. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'livemesh-el-addons' ),
|
146 |
], [
|
147 |
+
'client_name' => __( 'Customer #2', 'livemesh-el-addons' ),
|
148 |
+
'credentials' => __( 'Lead Developer, Automattic Inc', 'livemesh-el-addons' ),
|
149 |
+
'testimonial_rating' => 'rating-five',
|
150 |
+
'testimonial_text' => __( 'I am testimonial text. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'livemesh-el-addons' ),
|
151 |
], [
|
152 |
+
'client_name' => __( 'Customer #3', 'livemesh-el-addons' ),
|
153 |
+
'credentials' => __( 'Store Manager, Walmart Inc', 'livemesh-el-addons' ),
|
154 |
+
'testimonial_rating' => 'rating-four',
|
155 |
+
'testimonial_text' => __( 'I am testimonial text. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'livemesh-el-addons' ),
|
156 |
] ],
|
157 |
'fields' => $repeater->get_controls(),
|
158 |
'title_field' => '{{{ client_name }}}',
|
174 |
'options' => [
|
175 |
'style1' => __( 'Style 1', 'livemesh-el-addons' ),
|
176 |
'style2' => __( 'Style 2', 'livemesh-el-addons' ),
|
177 |
+
'style3' => __( 'Style 3', 'livemesh-el-addons' ),
|
178 |
+
'style4' => __( 'Style 4 (List)', 'livemesh-el-addons' ),
|
179 |
],
|
180 |
] );
|
181 |
$this->add_control( 'layout', [
|
182 |
+
'type' => Controls_Manager::SELECT,
|
183 |
+
'label' => __( 'Choose Layout', 'livemesh-el-addons' ),
|
184 |
+
'default' => 'grid',
|
185 |
+
'options' => [
|
186 |
'grid' => __( 'Grid', 'livemesh-el-addons' ),
|
187 |
'carousel' => __( 'Carousel', 'livemesh-el-addons' ),
|
188 |
+
],
|
189 |
+
'condition' => [
|
190 |
+
'style' => [ 'style1', 'style2', 'style3' ],
|
191 |
],
|
192 |
] );
|
193 |
$this->end_controls_section();
|
195 |
'label' => __( 'Carousel Settings', 'livemesh-el-addons' ),
|
196 |
'tab' => Controls_Manager::TAB_SETTINGS,
|
197 |
'condition' => [
|
198 |
+
'style' => [ 'style1', 'style2', 'style3' ],
|
199 |
'layout' => [ 'carousel' ],
|
200 |
],
|
201 |
] );
|
292 |
'label' => __( 'Responsive Options', 'livemesh-el-addons' ),
|
293 |
'tab' => Controls_Manager::TAB_SETTINGS,
|
294 |
'condition' => [
|
295 |
+
'style' => [ 'style1', 'style2', 'style3' ],
|
296 |
'layout' => [ 'carousel' ],
|
297 |
],
|
298 |
] );
|
376 |
'label' => __( 'Grid Settings', 'livemesh-el-addons' ),
|
377 |
'tab' => Controls_Manager::TAB_SETTINGS,
|
378 |
'condition' => [
|
379 |
+
'style' => [ 'style1', 'style2', 'style3' ],
|
380 |
'layout' => [ 'grid' ],
|
381 |
],
|
382 |
] );
|
508 |
'{{WRAPPER}} .lae-testimonials .lae-testimonial-text' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
509 |
],
|
510 |
'isLinked' => false,
|
511 |
+
'condition' => [
|
512 |
+
'style' => [ 'style1', 'style3' ],
|
513 |
+
],
|
514 |
] );
|
515 |
$this->add_control( 'text_color', [
|
516 |
'label' => __( 'Color', 'livemesh-el-addons' ),
|
572 |
'label' => __( 'Color', 'livemesh-el-addons' ),
|
573 |
'type' => Controls_Manager::COLOR,
|
574 |
'selectors' => [
|
575 |
+
'{{WRAPPER}} .lae-testimonials .lae-testimonial-user .lae-user-text .lae-author-name' => 'color: {{VALUE}};',
|
576 |
],
|
577 |
] );
|
578 |
$this->add_group_control( Group_Control_Typography::get_type(), [
|
579 |
'name' => 'title_typography',
|
580 |
+
'selector' => '{{WRAPPER}} .lae-testimonials .lae-testimonial-user .lae-user-text .lae-author-name',
|
581 |
] );
|
582 |
$this->end_controls_section();
|
583 |
$this->start_controls_section( 'section_testimonials_author_credentials', [
|
588 |
'label' => __( 'Color', 'livemesh-el-addons' ),
|
589 |
'type' => Controls_Manager::COLOR,
|
590 |
'selectors' => [
|
591 |
+
'{{WRAPPER}} .lae-testimonials .lae-testimonial-user .lae-user-text' => 'color: {{VALUE}};',
|
592 |
],
|
593 |
] );
|
594 |
$this->add_group_control( Group_Control_Typography::get_type(), [
|
595 |
'name' => 'credential_typography',
|
596 |
+
'selector' => '{{WRAPPER}} .lae-testimonials .lae-testimonial-user .lae-user-text',
|
597 |
] );
|
598 |
$this->end_controls_section();
|
599 |
$this->start_controls_section( 'section_testimonials_rating', [
|
plugin.php
CHANGED
@@ -45,7 +45,7 @@ if ( !class_exists( 'Livemesh_Elementor_Addons' ) ) {
|
|
45 |
public function __clone()
|
46 |
{
|
47 |
// Cloning instances of the class is forbidden
|
48 |
-
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'livemesh-el-addons' ), '6.9.
|
49 |
}
|
50 |
|
51 |
/**
|
@@ -55,7 +55,7 @@ if ( !class_exists( 'Livemesh_Elementor_Addons' ) ) {
|
|
55 |
public function __wakeup()
|
56 |
{
|
57 |
// Unserializing instances of the class is forbidden
|
58 |
-
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'livemesh-el-addons' ), '6.9.
|
59 |
}
|
60 |
|
61 |
private function setup_debug_constants()
|
45 |
public function __clone()
|
46 |
{
|
47 |
// Cloning instances of the class is forbidden
|
48 |
+
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'livemesh-el-addons' ), '6.9.5' );
|
49 |
}
|
50 |
|
51 |
/**
|
55 |
public function __wakeup()
|
56 |
{
|
57 |
// Unserializing instances of the class is forbidden
|
58 |
+
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'livemesh-el-addons' ), '6.9.5' );
|
59 |
}
|
60 |
|
61 |
private function setup_debug_constants()
|
readme.txt
CHANGED
@@ -7,7 +7,7 @@ Tags: elementor, elementor addons, elementor extensions, elementor widgets, page
|
|
7 |
Requires at least: 4.5
|
8 |
Tested up to: 5.7
|
9 |
Requires PHP: 5.6
|
10 |
-
Stable Tag: 6.9.
|
11 |
License: GPLv3
|
12 |
License URI: https://opensource.org/licenses/GPL-3.0
|
13 |
|
@@ -259,6 +259,11 @@ Email us at support[at]livemeshthemes.com and we will be happy to assist you.
|
|
259 |
|
260 |
|
261 |
|
|
|
|
|
|
|
|
|
|
|
262 |
= 6.9.4 =
|
263 |
* Added - Added star rating option for Testimonials Slider
|
264 |
* Added - Add customization option for star ratings in Testimonials and Testimonials Slider widgets
|
7 |
Requires at least: 4.5
|
8 |
Tested up to: 5.7
|
9 |
Requires PHP: 5.6
|
10 |
+
Stable Tag: 6.9.5
|
11 |
License: GPLv3
|
12 |
License URI: https://opensource.org/licenses/GPL-3.0
|
13 |
|
259 |
|
260 |
|
261 |
|
262 |
+
= 6.9.5 =
|
263 |
+
* Added - Two new styles for Testimonials widget including one with list style Testimonials
|
264 |
+
* Refactored HTML generated for Testimonials and Testimonials Slider widget
|
265 |
+
* Refactored SCSS/CSS for Testimonials and Testimonials Slider widget
|
266 |
+
|
267 |
= 6.9.4 =
|
268 |
* Added - Added star rating option for Testimonials Slider
|
269 |
* Added - Add customization option for star ratings in Testimonials and Testimonials Slider widgets
|
templates/addons/testimonials-slider/content.php
CHANGED
@@ -46,7 +46,7 @@ if (!defined('ABSPATH')) {
|
|
46 |
|
47 |
</div><!-- .lae-image-wrapper -->
|
48 |
|
49 |
-
<div class="lae-text">
|
50 |
|
51 |
<<?php echo lae_validate_html_tag($settings['title_tag']); ?> class="lae-author-name"><?php echo esc_html($testimonial['client_name']); ?></<?php echo lae_validate_html_tag($settings['title_tag']); ?>>
|
52 |
|
46 |
|
47 |
</div><!-- .lae-image-wrapper -->
|
48 |
|
49 |
+
<div class="lae-user-text">
|
50 |
|
51 |
<<?php echo lae_validate_html_tag($settings['title_tag']); ?> class="lae-author-name"><?php echo esc_html($testimonial['client_name']); ?></<?php echo lae_validate_html_tag($settings['title_tag']); ?>>
|
52 |
|
templates/addons/testimonials/loop.php
CHANGED
@@ -17,37 +17,45 @@ if (!defined('ABSPATH')) {
|
|
17 |
$class_attr = $data_attr = '';
|
18 |
$dir = is_rtl() ? ' dir="rtl"' : '';
|
19 |
|
20 |
-
if ($settings['
|
21 |
-
|
22 |
-
$
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
|
48 |
else:
|
49 |
|
50 |
-
$class_attr = 'lae-
|
51 |
|
52 |
endif;
|
53 |
|
17 |
$class_attr = $data_attr = '';
|
18 |
$dir = is_rtl() ? ' dir="rtl"' : '';
|
19 |
|
20 |
+
if ($settings['style'] !== 'style4'):
|
21 |
+
|
22 |
+
if ($settings['layout'] == 'carousel') :
|
23 |
+
|
24 |
+
$carousel_settings = [
|
25 |
+
'arrows' => ('yes' === $settings['arrows']),
|
26 |
+
'dots' => ('yes' === $settings['dots']),
|
27 |
+
'autoplay' => ('yes' === $settings['autoplay']),
|
28 |
+
'autoplay_speed' => absint($settings['autoplay_speed']),
|
29 |
+
'animation_speed' => absint($settings['animation_speed']),
|
30 |
+
'pause_on_hover' => ('yes' === $settings['pause_on_hover']),
|
31 |
+
'adaptive_height' => ('yes' === $settings['adaptive_height']),
|
32 |
+
];
|
33 |
+
|
34 |
+
$responsive_settings = [
|
35 |
+
'display_columns' => $settings['display_columns'],
|
36 |
+
'scroll_columns' => $settings['scroll_columns'],
|
37 |
+
'tablet_width' => $settings['tablet_width'],
|
38 |
+
'tablet_display_columns' => $settings['tablet_display_columns'],
|
39 |
+
'tablet_scroll_columns' => $settings['tablet_scroll_columns'],
|
40 |
+
'mobile_width' => $settings['mobile_width'],
|
41 |
+
'mobile_display_columns' => $settings['mobile_display_columns'],
|
42 |
+
'mobile_scroll_columns' => $settings['mobile_scroll_columns'],
|
43 |
+
];
|
44 |
+
|
45 |
+
$carousel_settings = array_merge($carousel_settings, $responsive_settings);
|
46 |
+
|
47 |
+
$class_attr = 'lae-testimonials-carousel lae-container';
|
48 |
+
$data_attr = ' data-settings=\'' . wp_json_encode($carousel_settings) . '\'';
|
49 |
+
|
50 |
+
else:
|
51 |
+
|
52 |
+
$class_attr = 'lae-uber-grid-container ' . lae_get_grid_classes($settings);
|
53 |
+
|
54 |
+
endif;
|
55 |
|
56 |
else:
|
57 |
|
58 |
+
$class_attr = 'lae-container';
|
59 |
|
60 |
endif;
|
61 |
|
templates/addons/testimonials/style1.php
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
-
* This template can be overridden by copying it to mytheme/addons-for-elementor/addons/testimonials/
|
6 |
*
|
7 |
*/
|
8 |
|
@@ -46,7 +46,7 @@ if ($settings['layout'] == 'grid')
|
|
46 |
|
47 |
</div><!-- .lae-image-wrapper -->
|
48 |
|
49 |
-
<div class="lae-text">
|
50 |
|
51 |
<<?php echo lae_validate_html_tag($settings['title_tag']); ?>
|
52 |
class="lae-author-name"><?php echo esc_html($testimonial['client_name']); ?></<?php echo lae_validate_html_tag($settings['title_tag']); ?>
|
@@ -54,7 +54,7 @@ if ($settings['layout'] == 'grid')
|
|
54 |
|
55 |
<div class="lae-author-credentials"><?php echo wp_kses_post($testimonial['credentials']); ?></div>
|
56 |
|
57 |
-
</div><!-- .lae-text -->
|
58 |
|
59 |
</div><!-- .lae-testimonial-user -->
|
60 |
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Testimonials Template 1
|
4 |
*
|
5 |
+
* This template can be overridden by copying it to mytheme/addons-for-elementor/addons/testimonials/style1.php
|
6 |
*
|
7 |
*/
|
8 |
|
46 |
|
47 |
</div><!-- .lae-image-wrapper -->
|
48 |
|
49 |
+
<div class="lae-user-text">
|
50 |
|
51 |
<<?php echo lae_validate_html_tag($settings['title_tag']); ?>
|
52 |
class="lae-author-name"><?php echo esc_html($testimonial['client_name']); ?></<?php echo lae_validate_html_tag($settings['title_tag']); ?>
|
54 |
|
55 |
<div class="lae-author-credentials"><?php echo wp_kses_post($testimonial['credentials']); ?></div>
|
56 |
|
57 |
+
</div><!-- .lae-user-text -->
|
58 |
|
59 |
</div><!-- .lae-testimonial-user -->
|
60 |
|
templates/addons/testimonials/style2.php
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
-
* This template can be overridden by copying it to mytheme/addons-for-elementor/addons/testimonials/
|
6 |
*
|
7 |
*/
|
8 |
|
@@ -34,7 +34,7 @@ if ($settings['layout'] == 'grid')
|
|
34 |
|
35 |
</div>
|
36 |
|
37 |
-
<div class="lae-text">
|
38 |
|
39 |
<<?php echo lae_validate_html_tag($settings['title_tag']); ?>
|
40 |
class="lae-author-name"><?php echo esc_html($testimonial['client_name']); ?></<?php echo lae_validate_html_tag($settings['title_tag']); ?>
|
@@ -42,17 +42,17 @@ if ($settings['layout'] == 'grid')
|
|
42 |
|
43 |
<div class="lae-author-credentials"><?php echo wp_kses_post($testimonial['credentials']); ?></div>
|
44 |
|
45 |
-
</div><!-- .lae-text -->
|
46 |
|
47 |
</div><!-- .lae-testimonial-user -->
|
48 |
|
49 |
-
|
50 |
|
51 |
-
<?php
|
52 |
|
53 |
-
|
54 |
|
55 |
-
|
56 |
|
57 |
<?php echo $widget_instance->parse_text_editor($testimonial['testimonial_text']); ?>
|
58 |
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Testimonials Template 2
|
4 |
*
|
5 |
+
* This template can be overridden by copying it to mytheme/addons-for-elementor/addons/testimonials/style2.php
|
6 |
*
|
7 |
*/
|
8 |
|
34 |
|
35 |
</div>
|
36 |
|
37 |
+
<div class="lae-user-text">
|
38 |
|
39 |
<<?php echo lae_validate_html_tag($settings['title_tag']); ?>
|
40 |
class="lae-author-name"><?php echo esc_html($testimonial['client_name']); ?></<?php echo lae_validate_html_tag($settings['title_tag']); ?>
|
42 |
|
43 |
<div class="lae-author-credentials"><?php echo wp_kses_post($testimonial['credentials']); ?></div>
|
44 |
|
45 |
+
</div><!-- .lae-user-text -->
|
46 |
|
47 |
</div><!-- .lae-testimonial-user -->
|
48 |
|
49 |
+
<div class="lae-testimonial-text">
|
50 |
|
51 |
+
<?php if ($testimonial['testimonial_rating'] !== 'rating-none') : ?>
|
52 |
|
53 |
+
<?php lae_get_template_part("addons/testimonials/star-rating", $args); ?>
|
54 |
|
55 |
+
<?php endif; ?>
|
56 |
|
57 |
<?php echo $widget_instance->parse_text_editor($testimonial['testimonial_text']); ?>
|
58 |
|
templates/addons/testimonials/style3.php
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Testimonials Template 3
|
4 |
+
*
|
5 |
+
* This template can be overridden by copying it to mytheme/addons-for-elementor/addons/testimonials/style3.php
|
6 |
+
*
|
7 |
+
*/
|
8 |
+
|
9 |
+
use Elementor\Utils;
|
10 |
+
|
11 |
+
if (!defined('ABSPATH')) {
|
12 |
+
exit; // Exit if accessed directly
|
13 |
+
}
|
14 |
+
|
15 |
+
$class_attr = $data_attr = '';
|
16 |
+
|
17 |
+
if ($settings['layout'] == 'grid')
|
18 |
+
list($class_attr, $data_attr) = lae_get_animation_atts($testimonial['widget_animation']);
|
19 |
+
?>
|
20 |
+
|
21 |
+
<div class="lae-testimonial lae-<?php echo $testimonial['testimonial_rating']; ?> <?php echo $class_attr; ?>" <?php echo $data_attr; ?>>
|
22 |
+
|
23 |
+
<div class="lae-testimonial-text">
|
24 |
+
|
25 |
+
<?php if ($testimonial['testimonial_rating'] !== 'rating-none') : ?>
|
26 |
+
|
27 |
+
<?php lae_get_template_part("addons/testimonials/star-rating", $args); ?>
|
28 |
+
|
29 |
+
<?php endif; ?>
|
30 |
+
|
31 |
+
<?php echo $widget_instance->parse_text_editor($testimonial['testimonial_text']); ?>
|
32 |
+
|
33 |
+
</div>
|
34 |
+
|
35 |
+
<div class="lae-testimonial-user">
|
36 |
+
|
37 |
+
<div class="lae-image-wrapper">
|
38 |
+
|
39 |
+
<?php $client_image = $testimonial['client_image']; ?>
|
40 |
+
|
41 |
+
<?php if (!empty($client_image)): ?>
|
42 |
+
|
43 |
+
<?php echo wp_get_attachment_image($client_image['id'], 'thumbnail', false, array('class' => 'lae-image full')); ?>
|
44 |
+
|
45 |
+
<?php endif; ?>
|
46 |
+
|
47 |
+
</div><!-- .lae-image-wrapper -->
|
48 |
+
|
49 |
+
<div class="lae-user-text">
|
50 |
+
|
51 |
+
<<?php echo lae_validate_html_tag($settings['title_tag']); ?>
|
52 |
+
class="lae-author-name"><?php echo esc_html($testimonial['client_name']); ?></<?php echo lae_validate_html_tag($settings['title_tag']); ?>
|
53 |
+
>
|
54 |
+
|
55 |
+
<div class="lae-author-credentials"><?php echo wp_kses_post($testimonial['credentials']); ?></div>
|
56 |
+
|
57 |
+
</div><!-- .lae-user-text -->
|
58 |
+
|
59 |
+
</div><!-- .lae-testimonial-user -->
|
60 |
+
|
61 |
+
</div><!-- .lae-testimonial -->
|
templates/addons/testimonials/style4.php
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Testimonials Template 4
|
4 |
+
*
|
5 |
+
* This template can be overridden by copying it to mytheme/addons-for-elementor/addons/testimonials/style4.php
|
6 |
+
*
|
7 |
+
*/
|
8 |
+
|
9 |
+
use Elementor\Utils;
|
10 |
+
|
11 |
+
if (!defined('ABSPATH')) {
|
12 |
+
exit; // Exit if accessed directly
|
13 |
+
}
|
14 |
+
|
15 |
+
$class_attr = $data_attr = '';
|
16 |
+
|
17 |
+
if ($settings['layout'] == 'grid')
|
18 |
+
list($class_attr, $data_attr) = lae_get_animation_atts($testimonial['widget_animation']);
|
19 |
+
?>
|
20 |
+
|
21 |
+
<div class="lae-testimonial lae-<?php echo $testimonial['testimonial_rating']; ?> <?php echo $class_attr; ?>" <?php echo $data_attr; ?>>
|
22 |
+
|
23 |
+
<div class="lae-testimonial-user-picture">
|
24 |
+
|
25 |
+
<div class="lae-image-wrapper">
|
26 |
+
|
27 |
+
<?php $client_image = $testimonial['client_image']; ?>
|
28 |
+
|
29 |
+
<?php if (!empty($client_image)): ?>
|
30 |
+
|
31 |
+
<?php echo wp_get_attachment_image($client_image['id'], 'thumbnail', false, array('class' => 'lae-image full')); ?>
|
32 |
+
|
33 |
+
<?php endif; ?>
|
34 |
+
|
35 |
+
</div>
|
36 |
+
|
37 |
+
</div>
|
38 |
+
|
39 |
+
<div class="lae-testimonial-info">
|
40 |
+
|
41 |
+
<div class="lae-testimonial-text">
|
42 |
+
|
43 |
+
<?php if ($testimonial['testimonial_rating'] !== 'rating-none') : ?>
|
44 |
+
|
45 |
+
<?php lae_get_template_part("addons/testimonials/star-rating", $args); ?>
|
46 |
+
|
47 |
+
<?php endif; ?>
|
48 |
+
|
49 |
+
<?php echo $widget_instance->parse_text_editor($testimonial['testimonial_text']); ?>
|
50 |
+
|
51 |
+
</div>
|
52 |
+
|
53 |
+
<div class="lae-testimonial-user">
|
54 |
+
|
55 |
+
<div class="lae-user-text">
|
56 |
+
|
57 |
+
<<?php echo lae_validate_html_tag($settings['title_tag']); ?>
|
58 |
+
class="lae-author-name"><?php echo esc_html($testimonial['client_name']); ?></<?php echo lae_validate_html_tag($settings['title_tag']); ?>
|
59 |
+
>
|
60 |
+
|
61 |
+
<div class="lae-author-credentials"><?php echo wp_kses_post($testimonial['credentials']); ?></div>
|
62 |
+
|
63 |
+
</div><!-- .lae-user-text -->
|
64 |
+
|
65 |
+
</div><!-- .lae-testimonial-user -->
|
66 |
+
|
67 |
+
</div>
|
68 |
+
|
69 |
+
</div><!-- .lae-testimonial -->
|