Version Description
Download this release
Release Info
Developer | themeisle |
Plugin | Llorix One Companion |
Version | 1.0.1 |
Comparing to | |
See all releases |
Version 1.0.1
- css/style.css +311 -0
- images/team-img.jpg +0 -0
- inc/settings.php +192 -0
- js/llorix-companion-customizer.js +93 -0
- llorix-one-companion.php +101 -0
- readme.txt +13 -0
- sections/llorix_one_lite_happy_customers_section.php +151 -0
- sections/llorix_one_lite_our_services_section.php +161 -0
- sections/llorix_one_lite_our_team_section.php +128 -0
css/style.css
ADDED
@@ -0,0 +1,311 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*---------------------------------------
|
2 |
+
SECTION: SERVICES
|
3 |
+
-----------------------------------------*/
|
4 |
+
.services-wrap {
|
5 |
+
text-align: center;
|
6 |
+
position: relative;
|
7 |
+
padding-bottom: 50px;
|
8 |
+
}
|
9 |
+
|
10 |
+
.services {
|
11 |
+
background-color: #FFF;
|
12 |
+
border-bottom: 1px solid #eaebec;
|
13 |
+
}
|
14 |
+
|
15 |
+
.services .section-overlay-layer {
|
16 |
+
}
|
17 |
+
|
18 |
+
.single-service {
|
19 |
+
padding: 40px 20px 40px 20px;
|
20 |
+
background: #ffffff;
|
21 |
+
-webkit-border-radius: 3px;
|
22 |
+
-moz-border-radius: 3px;
|
23 |
+
border-radius: 3px;
|
24 |
+
-webkit-transition: all ease 0.55s;
|
25 |
+
transition: all ease 0.55s;
|
26 |
+
}
|
27 |
+
|
28 |
+
.services-wrap .service-box {
|
29 |
+
display: inline-block;
|
30 |
+
width: 100%;
|
31 |
+
text-align: center;
|
32 |
+
}
|
33 |
+
|
34 |
+
.single-service > h3 > a:hover, .service-icon > a:hover{
|
35 |
+
text-decoration:none;
|
36 |
+
}
|
37 |
+
|
38 |
+
.services-wrap > .service-box {
|
39 |
+
width: 31.5%;
|
40 |
+
margin: 0 1.25% 0 1.25%;
|
41 |
+
margin-bottom: 30px;
|
42 |
+
vertical-align: top;
|
43 |
+
}
|
44 |
+
|
45 |
+
.services-wrap > .service-box:nth-child(3n+1){
|
46 |
+
margin-left: 0;
|
47 |
+
clear: left;
|
48 |
+
}
|
49 |
+
|
50 |
+
.services-wrap > .service-box:nth-child(3n){
|
51 |
+
margin-right: 0;
|
52 |
+
clear: right;
|
53 |
+
}
|
54 |
+
|
55 |
+
.single-service .service-icon {
|
56 |
+
font-size: 60px;
|
57 |
+
margin-bottom: 35px;
|
58 |
+
}
|
59 |
+
|
60 |
+
.single-service h3 {
|
61 |
+
color: #1395ba;
|
62 |
+
margin-bottom: 15px;
|
63 |
+
padding-top: 5px;
|
64 |
+
}
|
65 |
+
|
66 |
+
.galcolumn .single-service {
|
67 |
+
width: 100%;
|
68 |
+
}
|
69 |
+
|
70 |
+
.display-none {
|
71 |
+
display: none !important;
|
72 |
+
}
|
73 |
+
|
74 |
+
/*---------------------------------------
|
75 |
+
SECTION: TESTIMONIALS
|
76 |
+
-----------------------------------------*/
|
77 |
+
.testimonials {
|
78 |
+
text-align: center;
|
79 |
+
background-color: #FFF;
|
80 |
+
border-bottom: 1px solid #eaebec;
|
81 |
+
}
|
82 |
+
|
83 |
+
.testimonials .section-overlay-layer {
|
84 |
+
padding-bottom: 20px;
|
85 |
+
}
|
86 |
+
|
87 |
+
.feedback {
|
88 |
+
padding: 0 30px;
|
89 |
+
margin-bottom: 45px;
|
90 |
+
}
|
91 |
+
|
92 |
+
.feedback .pic-container {
|
93 |
+
top: -40px;
|
94 |
+
width: 100%;
|
95 |
+
position: absolute;
|
96 |
+
}
|
97 |
+
|
98 |
+
.feedback .pic-container-inner {
|
99 |
+
-webkit-border-radius: 50%;
|
100 |
+
-moz-border-radius: 50%;
|
101 |
+
border-radius: 50%;
|
102 |
+
display: inline-block;
|
103 |
+
overflow: hidden;
|
104 |
+
background-clip: padding-box;
|
105 |
+
width: 170px;
|
106 |
+
height: 170px;
|
107 |
+
box-shadow: 0px 0px 0px 5px #f5f5f5;
|
108 |
+
background-color: #f5f5f5;
|
109 |
+
border: 5px solid #e5e5e5;
|
110 |
+
}
|
111 |
+
|
112 |
+
.feedback .pic-container img {
|
113 |
+
width: 100%;
|
114 |
+
}
|
115 |
+
|
116 |
+
.feedback p {
|
117 |
+
font-style: italic;
|
118 |
+
margin-top: 20px;
|
119 |
+
margin-bottom: 0;
|
120 |
+
}
|
121 |
+
|
122 |
+
.feedback h5 {
|
123 |
+
margin-bottom: 0;
|
124 |
+
}
|
125 |
+
|
126 |
+
.feedback-text-wrap {
|
127 |
+
padding: 0 20px;
|
128 |
+
}
|
129 |
+
|
130 |
+
.testimonials-box {
|
131 |
+
text-align: center;
|
132 |
+
width: 100%;
|
133 |
+
}
|
134 |
+
|
135 |
+
.testimonials-wrap {
|
136 |
+
position: relative;
|
137 |
+
}
|
138 |
+
|
139 |
+
.testimonials-wrap .testimonials-box {
|
140 |
+
display: inline-block;
|
141 |
+
-webkit-transition: all .2s ease;
|
142 |
+
-moz-transition: all .2s ease;
|
143 |
+
-o-transition: all .2s ease;
|
144 |
+
transition: all .2s ease;
|
145 |
+
}
|
146 |
+
|
147 |
+
.testimonials-box .feedback {
|
148 |
+
padding: 145px 0 40px 0;
|
149 |
+
margin: 40px 0 30px 0;
|
150 |
+
background: #ffffff;
|
151 |
+
-webkit-border-radius: 3px;
|
152 |
+
-moz-border-radius: 3px;
|
153 |
+
border-radius: 3px;
|
154 |
+
-webkit-transition: all ease 0.55s;
|
155 |
+
transition: all ease 0.55s;
|
156 |
+
position: relative;
|
157 |
+
}
|
158 |
+
|
159 |
+
.testimonials-box .feedback:hover {
|
160 |
+
border-bottom-color: #f16c20;
|
161 |
+
}
|
162 |
+
|
163 |
+
.galcolumn .testimonials-box {
|
164 |
+
width: 100%;
|
165 |
+
}
|
166 |
+
|
167 |
+
.testimonials-wrap > .testimonials-box {
|
168 |
+
width: 31.5%;
|
169 |
+
margin: 0 1.15% 0 1.15%;
|
170 |
+
margin-bottom: 30px;
|
171 |
+
vertical-align: top;
|
172 |
+
}
|
173 |
+
|
174 |
+
.testimonials-wrap > .testimonials-box:nth-child(3n+1) {
|
175 |
+
margin-left: 0;
|
176 |
+
clear: left;
|
177 |
+
}
|
178 |
+
|
179 |
+
.testimonials-wrap > .testimonials-box:nth-child(3n) {
|
180 |
+
margin-right: 0;
|
181 |
+
clear: right;
|
182 |
+
}
|
183 |
+
|
184 |
+
/*---------------------------------------
|
185 |
+
SECTION: TEAM
|
186 |
+
-----------------------------------------*/
|
187 |
+
.team {
|
188 |
+
background-color: #FFF;
|
189 |
+
border-bottom: 1px solid #eaebec;
|
190 |
+
background: url(../images/team-img.jpg);
|
191 |
+
background-position: 50% 50%;
|
192 |
+
background-repeat: no-repeat;
|
193 |
+
background-attachment: fixed;
|
194 |
+
background-size: cover;
|
195 |
+
border-bottom: 1px solid #F3F3F3;
|
196 |
+
}
|
197 |
+
|
198 |
+
.team .section-overlay-layer {
|
199 |
+
padding-bottom: 50px;
|
200 |
+
background: rgba(13, 60, 85, 0.8);
|
201 |
+
}
|
202 |
+
|
203 |
+
.team .sub-heading {
|
204 |
+
color: #FFF;
|
205 |
+
}
|
206 |
+
|
207 |
+
.team .dark-text {
|
208 |
+
color: #FFF;
|
209 |
+
}
|
210 |
+
|
211 |
+
.team-member {
|
212 |
+
margin-bottom: 25px;
|
213 |
+
position: relative;
|
214 |
+
overflow: hidden;
|
215 |
+
min-height: 100px;
|
216 |
+
-webkit-border-radius: 50%;
|
217 |
+
-moz-border-radius: 50%;
|
218 |
+
border-radius: 50%;
|
219 |
+
}
|
220 |
+
|
221 |
+
.team-member .social-icons {
|
222 |
+
opacity: 1;
|
223 |
+
margin-top: 5px;
|
224 |
+
position: relative;
|
225 |
+
-webkit-transition: all ease 0.55s;
|
226 |
+
transition: all ease 0.55s;
|
227 |
+
margin-bottom: 0;
|
228 |
+
margin-top: 0;
|
229 |
+
}
|
230 |
+
|
231 |
+
.team-member .social-icons li {
|
232 |
+
display: inline-block;
|
233 |
+
padding-left: 5px;
|
234 |
+
padding-right: 5px;
|
235 |
+
padding-top: 3px;
|
236 |
+
}
|
237 |
+
|
238 |
+
.team-member .social-icons li a {
|
239 |
+
opacity: 0.9;
|
240 |
+
}
|
241 |
+
|
242 |
+
.team-member .social-icons li a:hover {
|
243 |
+
opacity: 1;
|
244 |
+
text-decoration: none;
|
245 |
+
}
|
246 |
+
|
247 |
+
.team-member:hover .social-icons {
|
248 |
+
opacity: 1;
|
249 |
+
}
|
250 |
+
|
251 |
+
.member-pic {
|
252 |
+
border: none;
|
253 |
+
-webkit-border-radius: 0px;
|
254 |
+
-moz-border-radius: 0px;
|
255 |
+
border-radius: 0px;
|
256 |
+
}
|
257 |
+
|
258 |
+
.member-pic img {
|
259 |
+
width: 100%;
|
260 |
+
}
|
261 |
+
|
262 |
+
.member-details {
|
263 |
+
left: 0;
|
264 |
+
position: absolute;
|
265 |
+
color: #FFF;
|
266 |
+
display: table;
|
267 |
+
overflow: hidden;
|
268 |
+
height: 266px;
|
269 |
+
width: 100%;
|
270 |
+
bottom: 100%;
|
271 |
+
-webkit-transition: all 0.3s;
|
272 |
+
-moz-transition: all 0.3s;
|
273 |
+
-o-transition: all 0.3s;
|
274 |
+
transition: all 0.3s;
|
275 |
+
background: rgba(0,0,0,0);
|
276 |
+
text-align: center;
|
277 |
+
}
|
278 |
+
|
279 |
+
.member-details h5 {
|
280 |
+
margin: 0;
|
281 |
+
margin-bottom: 5px;
|
282 |
+
color: #FFF;
|
283 |
+
}
|
284 |
+
|
285 |
+
.team-member-wrap {
|
286 |
+
text-align: center;
|
287 |
+
}
|
288 |
+
|
289 |
+
.team-member-wrap .team-member-box {
|
290 |
+
float: none;
|
291 |
+
display: inline-block;
|
292 |
+
margin-right: -4px;
|
293 |
+
vertical-align: top;
|
294 |
+
padding-right: 55px;
|
295 |
+
padding-left: 55px;
|
296 |
+
padding-bottom: 30px;
|
297 |
+
}
|
298 |
+
|
299 |
+
.member-details-inner {
|
300 |
+
display: table-cell;
|
301 |
+
vertical-align: middle;
|
302 |
+
}
|
303 |
+
|
304 |
+
.team-member:hover .member-details {
|
305 |
+
bottom: 0;
|
306 |
+
-webkit-transition: all 0.3s;
|
307 |
+
-moz-transition: all 0.3s;
|
308 |
+
-o-transition: all 0.3s;
|
309 |
+
transition: all 0.3s;
|
310 |
+
background: rgba(241,108,32,0.7);
|
311 |
+
}
|
images/team-img.jpg
ADDED
Binary file
|
inc/settings.php
ADDED
@@ -0,0 +1,192 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
function llorix_one_companion_customize_register( $wp_customize ) {
|
4 |
+
|
5 |
+
/********************************************************/
|
6 |
+
/****************** SERVICES OPTIONS *******************/
|
7 |
+
/********************************************************/
|
8 |
+
|
9 |
+
/* SERVICES SECTION */
|
10 |
+
$wp_customize->add_section( 'llorix_one_lite_services_section' , array(
|
11 |
+
'title' => esc_html__( 'Services section', 'llorix-companion' ),
|
12 |
+
'priority' => 40,
|
13 |
+
));
|
14 |
+
|
15 |
+
/* Services title */
|
16 |
+
$wp_customize->add_setting( 'llorix_one_lite_our_services_title', array(
|
17 |
+
'default' => esc_html__('Our Services','llorix-companion'),
|
18 |
+
'sanitize_callback' => 'llorix_one_lite_sanitize_text',
|
19 |
+
'transport' => 'postMessage'
|
20 |
+
));
|
21 |
+
$wp_customize->add_control( 'llorix_one_lite_our_services_title', array(
|
22 |
+
'label' => esc_html__( 'Main title', 'llorix-companion' ),
|
23 |
+
'section' => 'llorix_one_lite_services_section',
|
24 |
+
'active_callback' => 'llorix_one_lite_show_on_front',
|
25 |
+
'priority' => 10
|
26 |
+
));
|
27 |
+
|
28 |
+
/* Services subtitle */
|
29 |
+
$wp_customize->add_setting( 'llorix_one_lite_our_services_subtitle', array(
|
30 |
+
'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit.','llorix-companion'),
|
31 |
+
'sanitize_callback' => 'llorix_one_lite_sanitize_text',
|
32 |
+
'transport' => 'postMessage'
|
33 |
+
));
|
34 |
+
$wp_customize->add_control( 'llorix_one_lite_our_services_subtitle', array(
|
35 |
+
'label' => esc_html__( 'Subtitle', 'llorix-companion' ),
|
36 |
+
'section' => 'llorix_one_lite_services_section',
|
37 |
+
'active_callback' => 'llorix_one_lite_show_on_front',
|
38 |
+
'priority' => 20
|
39 |
+
));
|
40 |
+
|
41 |
+
|
42 |
+
/* Services content */
|
43 |
+
$wp_customize->add_setting( 'llorix_one_lite_services_content', array(
|
44 |
+
'sanitize_callback' => 'llorix_one_lite_sanitize_repeater',
|
45 |
+
'default' => json_encode(
|
46 |
+
array(
|
47 |
+
array('choice'=>'llorix_one_lite_icon','icon_value' => 'fa-cogs','title' => esc_html__('Lorem Ipsum','llorix-companion'),'text' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec purus feugiat, molestie ipsum et, consequat nibh. Etiam non elit dui. Nullam vel eros sit amet arcu vestibulum accumsan in in leo.','llorix-companion')),
|
48 |
+
array('choice'=>'llorix_one_lite_icon','icon_value' => 'fa-bar-chart-o','title' => esc_html__('Lorem Ipsum','llorix-companion'),'text' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec purus feugiat, molestie ipsum et, consequat nibh. Etiam non elit dui. Nullam vel eros sit amet arcu vestibulum accumsan in in leo.','llorix-companion')),
|
49 |
+
array('choice'=>'llorix_one_lite_icon','icon_value' => 'fa-globe','title' => esc_html__('Lorem Ipsum','llorix-companion'),'text' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec purus feugiat, molestie ipsum et, consequat nibh. Etiam non elit dui. Nullam vel eros sit amet arcu vestibulum accumsan in in leo.','llorix-companion'))
|
50 |
+
)
|
51 |
+
)
|
52 |
+
));
|
53 |
+
$wp_customize->add_control( new Llorix_One_Lite_General_Repeater( $wp_customize, 'llorix_one_lite_services_content', array(
|
54 |
+
'label' => esc_html__('Add new service box','llorix-companion'),
|
55 |
+
'section' => 'llorix_one_lite_services_section',
|
56 |
+
'active_callback' => 'llorix_one_lite_show_on_front',
|
57 |
+
'priority' => 30,
|
58 |
+
'llorix_one_lite_image_control' => true,
|
59 |
+
'llorix_one_lite_icon_control' => true,
|
60 |
+
'llorix_one_lite_title_control' => true,
|
61 |
+
'llorix_one_lite_text_control' => true,
|
62 |
+
'llorix_one_lite_link_control' => true
|
63 |
+
) ) );
|
64 |
+
|
65 |
+
/********************************************************/
|
66 |
+
/******************* TEAM OPTIONS *********************/
|
67 |
+
/********************************************************/
|
68 |
+
|
69 |
+
$wp_customize->add_section( 'llorix_one_lite_team_section' , array(
|
70 |
+
'title' => esc_html__( 'Team section', 'llorix-companion' ),
|
71 |
+
'priority' => 50,
|
72 |
+
));
|
73 |
+
|
74 |
+
/* Team title */
|
75 |
+
$wp_customize->add_setting( 'llorix_one_lite_our_team_title', array(
|
76 |
+
'default' => esc_html__('Our Team','llorix-companion'),
|
77 |
+
'sanitize_callback' => 'llorix_one_lite_sanitize_text',
|
78 |
+
'transport' => 'postMessage'
|
79 |
+
));
|
80 |
+
$wp_customize->add_control( 'llorix_one_lite_our_team_title', array(
|
81 |
+
'label' => esc_html__( 'Main title', 'llorix-companion' ),
|
82 |
+
'section' => 'llorix_one_lite_team_section',
|
83 |
+
'active_callback' => 'llorix_one_lite_show_on_front',
|
84 |
+
'priority' => 10,
|
85 |
+
));
|
86 |
+
|
87 |
+
/* Team subtitle */
|
88 |
+
$wp_customize->add_setting( 'llorix_one_lite_our_team_subtitle', array(
|
89 |
+
'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit.','llorix-companion'),
|
90 |
+
'sanitize_callback' => 'llorix_one_lite_sanitize_text',
|
91 |
+
'transport' => 'postMessage'
|
92 |
+
));
|
93 |
+
$wp_customize->add_control( 'llorix_one_lite_our_team_subtitle', array(
|
94 |
+
'label' => esc_html__( 'Subtitle', 'llorix-companion' ),
|
95 |
+
'section' => 'llorix_one_lite_team_section',
|
96 |
+
'active_callback' => 'llorix_one_lite_show_on_front',
|
97 |
+
'priority' => 20,
|
98 |
+
));
|
99 |
+
|
100 |
+
|
101 |
+
/* Team content */
|
102 |
+
$wp_customize->add_setting( 'llorix_one_lite_team_content', array(
|
103 |
+
'sanitize_callback' => 'llorix_one_lite_sanitize_repeater',
|
104 |
+
'default' => json_encode(
|
105 |
+
array(
|
106 |
+
array('image_url' => llorix_one_lite_get_file('/images/team/1.jpg'),'title' => esc_html__('Albert Jacobs','llorix-companion'),'subtitle' => esc_html__('Founder & CEO','llorix-companion')),
|
107 |
+
array('image_url' => llorix_one_lite_get_file('/images/team/2.jpg'),'title' => esc_html__('Tonya Garcia','llorix-companion'),'subtitle' => esc_html__('Account Manager','llorix-companion')),
|
108 |
+
array('image_url' => llorix_one_lite_get_file('/images/team/3.jpg'),'title' => esc_html__('Linda Guthrie','llorix-companion'),'subtitle' => esc_html__('Business Development','llorix-companion'))
|
109 |
+
)
|
110 |
+
)
|
111 |
+
));
|
112 |
+
$wp_customize->add_control( new Llorix_One_Lite_General_Repeater( $wp_customize, 'llorix_one_lite_team_content', array(
|
113 |
+
'label' => esc_html__('Add new team member','llorix-companion'),
|
114 |
+
'section' => 'llorix_one_lite_team_section',
|
115 |
+
'active_callback' => 'llorix_one_lite_show_on_front',
|
116 |
+
'priority' => 30,
|
117 |
+
'llorix_one_lite_image_control' => true,
|
118 |
+
'llorix_one_lite_title_control' => true,
|
119 |
+
'llorix_one_lite_subtitle_control' => true
|
120 |
+
) ) );
|
121 |
+
|
122 |
+
/********************************************************/
|
123 |
+
/********** TESTIMONIALS OPTIONS ***********************/
|
124 |
+
/********************************************************/
|
125 |
+
|
126 |
+
$wp_customize->add_section( 'llorix_one_lite_testimonials_section' , array(
|
127 |
+
'title' => esc_html__( 'Testimonial section', 'llorix-companion' ),
|
128 |
+
'priority' => 55,
|
129 |
+
));
|
130 |
+
|
131 |
+
/* Testimonials title */
|
132 |
+
$wp_customize->add_setting( 'llorix_one_lite_happy_customers_title', array(
|
133 |
+
'default' => esc_html__('Happy Customers','llorix-companion'),
|
134 |
+
'sanitize_callback' => 'llorix_one_lite_sanitize_text',
|
135 |
+
'transport' => 'postMessage'
|
136 |
+
));
|
137 |
+
$wp_customize->add_control( 'llorix_one_lite_happy_customers_title', array(
|
138 |
+
'label' => esc_html__( 'Main title', 'llorix-companion' ),
|
139 |
+
'section' => 'llorix_one_lite_testimonials_section',
|
140 |
+
'active_callback' => 'llorix_one_lite_show_on_front',
|
141 |
+
'priority' => 10,
|
142 |
+
));
|
143 |
+
|
144 |
+
/* Testimonials subtitle */
|
145 |
+
$wp_customize->add_setting( 'llorix_one_lite_happy_customers_subtitle', array(
|
146 |
+
'default' => esc_html__('Cloud computing subscription model out of the box proactive solution.','llorix-companion'),
|
147 |
+
'sanitize_callback' => 'llorix_one_lite_sanitize_text',
|
148 |
+
'transport' => 'postMessage'
|
149 |
+
));
|
150 |
+
$wp_customize->add_control( 'llorix_one_lite_happy_customers_subtitle', array(
|
151 |
+
'label' => esc_html__( 'Subtitle', 'llorix-companion' ),
|
152 |
+
'section' => 'llorix_one_lite_testimonials_section',
|
153 |
+
'active_callback' => 'llorix_one_lite_show_on_front',
|
154 |
+
'priority' => 20,
|
155 |
+
));
|
156 |
+
|
157 |
+
|
158 |
+
/* Testimonials content */
|
159 |
+
$wp_customize->add_setting( 'llorix_one_lite_testimonials_content', array(
|
160 |
+
'sanitize_callback' => 'llorix_one_lite_sanitize_repeater',
|
161 |
+
'default' => json_encode(
|
162 |
+
array(
|
163 |
+
array('image_url' => llorix_one_lite_get_file('/images/clients/1.jpg'),'title' => esc_html__('Happy Customer','llorix-companion'),'subtitle' => esc_html__('Lorem ipsum','llorix-companion'),'text' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec purus feugiat, molestie ipsum et, consequat nibh. Etiam non elit dui. Nullam vel eros sit amet arcu vestibulum accumsan in in leo. Fusce malesuada vulputate faucibus. Integer in hendrerit nisi. Praesent a hendrerit urna. In non imperdiet elit, sed molestie odio. Fusce ac metus non purus sollicitudin laoreet.','llorix-companion')),
|
164 |
+
array('image_url' => llorix_one_lite_get_file('/images/clients/2.jpg'),'title' => esc_html__('Happy Customer','llorix-companion'),'subtitle' => esc_html__('Lorem ipsum','llorix-companion'),'text' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec purus feugiat, molestie ipsum et, consequat nibh. Etiam non elit dui. Nullam vel eros sit amet arcu vestibulum accumsan in in leo. Fusce malesuada vulputate faucibus. Integer in hendrerit nisi. Praesent a hendrerit urna. In non imperdiet elit, sed molestie odio. Fusce ac metus non purus sollicitudin laoreet.','llorix-companion')),
|
165 |
+
array('image_url' => llorix_one_lite_get_file('/images/clients/3.jpg'),'title' => esc_html__('Happy Customer','llorix-companion'),'subtitle' => esc_html__('Lorem ipsum','llorix-companion'),'text' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec purus feugiat, molestie ipsum et, consequat nibh. Etiam non elit dui. Nullam vel eros sit amet arcu vestibulum accumsan in in leo. Fusce malesuada vulputate faucibus. Integer in hendrerit nisi. Praesent a hendrerit urna. In non imperdiet elit, sed molestie odio. Fusce ac metus non purus sollicitudin laoreet.','llorix-companion'))
|
166 |
+
)
|
167 |
+
)
|
168 |
+
));
|
169 |
+
$wp_customize->add_control( new Llorix_One_Lite_General_Repeater( $wp_customize, 'llorix_one_lite_testimonials_content', array(
|
170 |
+
'label' => esc_html__('Add new testimonial','llorix-companion'),
|
171 |
+
'section' => 'llorix_one_lite_testimonials_section',
|
172 |
+
'active_callback' => 'llorix_one_lite_show_on_front',
|
173 |
+
'priority' => 30,
|
174 |
+
'llorix_one_lite_image_control' => true,
|
175 |
+
'llorix_one_lite_title_control' => true,
|
176 |
+
'llorix_one_lite_subtitle_control' => true,
|
177 |
+
'llorix_one_lite_text_control' => true
|
178 |
+
) ) );
|
179 |
+
|
180 |
+
|
181 |
+
}
|
182 |
+
add_action( 'customize_register', 'llorix_one_companion_customize_register', 999 );
|
183 |
+
|
184 |
+
/**
|
185 |
+
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
|
186 |
+
*/
|
187 |
+
function llorix_companion_customize_preview_js() {
|
188 |
+
wp_enqueue_script( 'llorix_companion_customizer', LLORIX_ONE_COMPANION_URL . '/js/llorix-companion-customizer.js', array( 'customize-preview' ), '1.0.2', true );
|
189 |
+
}
|
190 |
+
add_action( 'customize_preview_init', 'llorix_companion_customize_preview_js', 10);
|
191 |
+
|
192 |
+
?>
|
js/llorix-companion-customizer.js
ADDED
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Theme Customizer enhancements for a better user experience.
|
3 |
+
*
|
4 |
+
* Contains handlers to make Theme Customizer preview reload changes asynchronously.
|
5 |
+
*/
|
6 |
+
|
7 |
+
( function( $ ) {
|
8 |
+
|
9 |
+
/**************************************
|
10 |
+
*********** SERVICES SECTION **********
|
11 |
+
***************************************/
|
12 |
+
|
13 |
+
/* llorix_one_lite_our_services_title */
|
14 |
+
wp.customize("llorix_one_lite_our_services_title", function(value) {
|
15 |
+
value.bind(function( to ) {
|
16 |
+
if( to != '' ) {
|
17 |
+
$( 'section#services h2' ).removeClass( 'llorix_one_lite_only_customizer' );
|
18 |
+
} else {
|
19 |
+
$( 'section#services h2' ).addClass( 'llorix_one_lite_only_customizer' );
|
20 |
+
}
|
21 |
+
$( 'section#services h2' ).text( to );
|
22 |
+
} );
|
23 |
+
});
|
24 |
+
|
25 |
+
/* llorix_one_lite_our_services_subtitle */
|
26 |
+
wp.customize("llorix_one_lite_our_services_subtitle", function(value) {
|
27 |
+
value.bind(function( to ) {
|
28 |
+
if( to != '' ) {
|
29 |
+
$( 'section#services div.sub-heading' ).removeClass( 'llorix_one_lite_only_customizer' );
|
30 |
+
} else {
|
31 |
+
$( 'section#services div.sub-heading' ).addClass( 'llorix_one_lite_only_customizer' );
|
32 |
+
}
|
33 |
+
$( 'section#services div.sub-heading' ).text( to );
|
34 |
+
} );
|
35 |
+
});
|
36 |
+
|
37 |
+
/**************************************
|
38 |
+
************* TEAM SECTION ************
|
39 |
+
***************************************/
|
40 |
+
|
41 |
+
/* llorix_one_lite_our_team_title */
|
42 |
+
wp.customize("llorix_one_lite_our_team_title", function(value) {
|
43 |
+
value.bind(function( to ) {
|
44 |
+
if( to != '' ) {
|
45 |
+
$( 'section#team h2' ).removeClass( 'llorix_one_lite_only_customizer' );
|
46 |
+
} else {
|
47 |
+
$( 'section#team h2' ).addClass( 'llorix_one_lite_only_customizer' );
|
48 |
+
}
|
49 |
+
$( 'section#team h2' ).text( to );
|
50 |
+
} );
|
51 |
+
});
|
52 |
+
|
53 |
+
/* llorix_one_lite_our_team_subtitle */
|
54 |
+
wp.customize("llorix_one_lite_our_team_subtitle", function(value) {
|
55 |
+
value.bind(function( to ) {
|
56 |
+
if( to != '' ) {
|
57 |
+
$( 'section#team div.sub-heading' ).removeClass( 'llorix_one_lite_only_customizer' );
|
58 |
+
} else {
|
59 |
+
$( 'section#team div.sub-heading' ).addClass( 'llorix_one_lite_only_customizer' );
|
60 |
+
}
|
61 |
+
$( 'section#team div.sub-heading' ).text( to );
|
62 |
+
} );
|
63 |
+
});
|
64 |
+
|
65 |
+
/**************************************
|
66 |
+
********* TESTIMONIALS SECTION *********
|
67 |
+
***************************************/
|
68 |
+
|
69 |
+
/* llorix_one_lite_happy_customers_title */
|
70 |
+
wp.customize("llorix_one_lite_happy_customers_title", function(value) {
|
71 |
+
value.bind(function( to ) {
|
72 |
+
if( to != '' ) {
|
73 |
+
$( 'section#customers h2' ).removeClass( 'llorix_one_lite_only_customizer' );
|
74 |
+
} else {
|
75 |
+
$( 'section#customers h2' ).addClass( 'llorix_one_lite_only_customizer' );
|
76 |
+
}
|
77 |
+
$( 'section#customers h2' ).text( to );
|
78 |
+
} );
|
79 |
+
});
|
80 |
+
|
81 |
+
/* llorix_one_lite_happy_customers_subtitle */
|
82 |
+
wp.customize("llorix_one_lite_happy_customers_subtitle", function(value) {
|
83 |
+
value.bind(function( to ) {
|
84 |
+
if( to != '' ) {
|
85 |
+
$( 'section#customers div.sub-heading' ).removeClass( 'llorix_one_lite_only_customizer' );
|
86 |
+
} else {
|
87 |
+
$( 'section#customers div.sub-heading' ).addClass( 'llorix_one_lite_only_customizer' );
|
88 |
+
}
|
89 |
+
$( 'section#customers div.sub-heading' ).text( to );
|
90 |
+
} );
|
91 |
+
});
|
92 |
+
|
93 |
+
} )( jQuery );
|
llorix-one-companion.php
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Llorix One Companion
|
4 |
+
Plugin URI: https://github.com/Codeinwp/llorix-one-companion
|
5 |
+
Description: Add Our team, Our Services and Testimonials sections to Llorix One Lite theme.
|
6 |
+
Version: 1.0.1
|
7 |
+
Author: Themeisle
|
8 |
+
Author URI: http://themeisle.com
|
9 |
+
Domain Path: /languages
|
10 |
+
License: GPLv2
|
11 |
+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
12 |
+
*/
|
13 |
+
|
14 |
+
if ( ! function_exists( 'add_action' ) ) {
|
15 |
+
die( 'Nothing to do...' );
|
16 |
+
}
|
17 |
+
|
18 |
+
/* Important constants */
|
19 |
+
define( 'LLORIX_ONE_COMPANION_VERSION', '1.0.0' );
|
20 |
+
define( 'LLORIX_ONE_COMPANION_URL', plugin_dir_url( __FILE__ ) );
|
21 |
+
define( 'LLORIX_ONE_COMPANION_PATH', plugin_dir_path( __FILE__ ) );
|
22 |
+
|
23 |
+
/* Required helper functions */
|
24 |
+
include_once( dirname( __FILE__ ) . '/inc/settings.php' );
|
25 |
+
|
26 |
+
/* Add new sections in Llorix One */
|
27 |
+
function llorix_one_companion_sections() {
|
28 |
+
return array(
|
29 |
+
'sections/llorix_one_lite_logos_section',
|
30 |
+
'llorix_one_lite_our_services_section',
|
31 |
+
'sections/llorix_one_lite_our_story_section',
|
32 |
+
'llorix_one_lite_our_team_section',
|
33 |
+
'llorix_one_lite_happy_customers_section',
|
34 |
+
'sections/llorix_one_lite_ribbon_section',
|
35 |
+
'sections/llorix_one_lite_latest_news_section',
|
36 |
+
'sections/llorix_one_lite_contact_info_section',
|
37 |
+
'sections/llorix_one_lite_map_section'
|
38 |
+
);
|
39 |
+
}
|
40 |
+
|
41 |
+
/**
|
42 |
+
* Load plugin textdomain.
|
43 |
+
*
|
44 |
+
* @since 1.0.0
|
45 |
+
*/
|
46 |
+
|
47 |
+
add_action( 'plugins_loaded', 'llorix_one_companion_load_textdomain' );
|
48 |
+
|
49 |
+
function llorix_one_companion_load_textdomain() {
|
50 |
+
load_plugin_textdomain( 'llorix-one', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
|
51 |
+
|
52 |
+
add_filter('llorix_one_companion_sections_filter', 'llorix_one_companion_sections');
|
53 |
+
}
|
54 |
+
|
55 |
+
/* Check if Llorix One theme is activated */
|
56 |
+
|
57 |
+
if ( ! empty ( $GLOBALS['pagenow'] ) && 'plugins.php' === $GLOBALS['pagenow'] ) {
|
58 |
+
add_action( 'admin_notices', 'llorix_one_companion_admin_notices', 0 );
|
59 |
+
}
|
60 |
+
|
61 |
+
function llorix_one_companion_requirements() {
|
62 |
+
|
63 |
+
$llorix_one_companion_errors = array();
|
64 |
+
$theme = wp_get_theme();
|
65 |
+
|
66 |
+
if ( ('Llorix One Lite' != $theme->name) && ('Llorix One Lite' != $theme->parent_theme) ) {
|
67 |
+
|
68 |
+
$llorix_one_companion_errors[] = __( 'You need to have <a href="https://wordpress.org/themes/llorix-one-lite/" target="_blank">Llorix One Lite</a> theme in order to use Llorix One Companion plugin.','llorix-one-companion' );
|
69 |
+
}
|
70 |
+
|
71 |
+
return $llorix_one_companion_errors;
|
72 |
+
|
73 |
+
}
|
74 |
+
|
75 |
+
function llorix_one_companion_admin_notices()
|
76 |
+
{
|
77 |
+
|
78 |
+
$llorix_one_companion_errors = llorix_one_companion_requirements();
|
79 |
+
|
80 |
+
if ( empty ( $llorix_one_companion_errors ) )
|
81 |
+
return;
|
82 |
+
|
83 |
+
/* Suppress "Plugin activated" notice. */
|
84 |
+
unset( $_GET['activate'] );
|
85 |
+
|
86 |
+
echo '<div class="notice error my-acf-notice is-dismissible">';
|
87 |
+
echo '<p>'.join($llorix_one_companion_errors).'</p>';
|
88 |
+
echo '<p>'.__( '<i>Llorix One Companion</i> has been deactivated.', 'llorix-one-companion' ).'</p>';
|
89 |
+
echo '</div>';
|
90 |
+
|
91 |
+
deactivate_plugins( plugin_basename( __FILE__ ) );
|
92 |
+
}
|
93 |
+
|
94 |
+
/* Register style sheet. */
|
95 |
+
add_action( 'wp_enqueue_scripts', 'llorix_one_companion_register_plugin_styles' );
|
96 |
+
|
97 |
+
function llorix_one_companion_register_plugin_styles() {
|
98 |
+
|
99 |
+
wp_enqueue_style( 'llorix-one-companion-style', LLORIX_ONE_COMPANION_URL.'/css/style.css' );
|
100 |
+
|
101 |
+
}
|
readme.txt
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== Llorix One Companion ===
|
2 |
+
Contributors: themeisle, codeinwp
|
3 |
+
Tags:
|
4 |
+
Requires at least: 3.0
|
5 |
+
Tested up to: 4.4
|
6 |
+
License: GPLv2 or later
|
7 |
+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
8 |
+
|
9 |
+
Add Our team, Our Services and Testimonials sections to Llorix One Lite theme.
|
10 |
+
|
11 |
+
== Description ==
|
12 |
+
|
13 |
+
Add Our team, Our Services and Testimonials sections to Llorix One Lite theme.
|
sections/llorix_one_lite_happy_customers_section.php
ADDED
@@ -0,0 +1,151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!-- =========================
|
2 |
+
SECTION: CUSTOMERS
|
3 |
+
============================== -->
|
4 |
+
<?php
|
5 |
+
global $wp_customize;
|
6 |
+
$llorix_one_lite_happy_customers_title = get_theme_mod('llorix_one_lite_happy_customers_title',esc_html__('Happy Customers','llorix-one'));
|
7 |
+
$llorix_one_lite_happy_customers_subtitle = get_theme_mod('llorix_one_lite_happy_customers_subtitle',esc_html__('Cloud computing subscription model out of the box proactive solution.','llorix-one'));
|
8 |
+
$llorix_one_lite_testimonials_content = get_theme_mod('llorix_one_lite_testimonials_content',
|
9 |
+
json_encode(
|
10 |
+
array(
|
11 |
+
array('image_url' => llorix_one_lite_get_file('/images/clients/1.jpg'),'title' => esc_html__('Happy Customer','llorix-one'),'subtitle' => esc_html__('Lorem ipsum','llorix-one'),'text' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec purus feugiat, molestie ipsum et, consequat nibh. Etiam non elit dui. Nullam vel eros sit amet arcu vestibulum accumsan in in leo. Fusce malesuada vulputate faucibus. Integer in hendrerit nisi. Praesent a hendrerit urna. In non imperdiet elit, sed molestie odio. Fusce ac metus non purus sollicitudin laoreet.','llorix-one')),
|
12 |
+
array('image_url' => llorix_one_lite_get_file('/images/clients/2.jpg'),'title' => esc_html__('Happy Customer','llorix-one'),'subtitle' => esc_html__('Lorem ipsum','llorix-one'),'text' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec purus feugiat, molestie ipsum et, consequat nibh. Etiam non elit dui. Nullam vel eros sit amet arcu vestibulum accumsan in in leo. Fusce malesuada vulputate faucibus. Integer in hendrerit nisi. Praesent a hendrerit urna. In non imperdiet elit, sed molestie odio. Fusce ac metus non purus sollicitudin laoreet.','llorix-one')),
|
13 |
+
array('image_url' => llorix_one_lite_get_file('/images/clients/3.jpg'),'title' => esc_html__('Happy Customer','llorix-one'),'subtitle' => esc_html__('Lorem ipsum','llorix-one'),'text' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec purus feugiat, molestie ipsum et, consequat nibh. Etiam non elit dui. Nullam vel eros sit amet arcu vestibulum accumsan in in leo. Fusce malesuada vulputate faucibus. Integer in hendrerit nisi. Praesent a hendrerit urna. In non imperdiet elit, sed molestie odio. Fusce ac metus non purus sollicitudin laoreet.','llorix-one'))
|
14 |
+
)
|
15 |
+
)
|
16 |
+
);
|
17 |
+
|
18 |
+
if( !empty($llorix_one_lite_happy_customers_title) || !empty($llorix_one_lite_happy_customers_subtitle) || !llorix_one_lite_general_repeater_is_empty($llorix_one_lite_testimonials_content) ){
|
19 |
+
?>
|
20 |
+
<section class="testimonials" id="customers" role="region" aria-label="<?php esc_html_e('Testimonials','llorix-one') ?>">
|
21 |
+
<div class="section-overlay-layer">
|
22 |
+
<div class="container">
|
23 |
+
|
24 |
+
<!-- SECTION HEADER -->
|
25 |
+
<?php
|
26 |
+
if(!empty($llorix_one_lite_happy_customers_title) || !empty($llorix_one_lite_happy_customers_subtitle)){
|
27 |
+
?>
|
28 |
+
<div class="section-header">
|
29 |
+
<?php
|
30 |
+
if( !empty($llorix_one_lite_happy_customers_title) ){
|
31 |
+
echo '<h2 class="dark-text">'.esc_attr($llorix_one_lite_happy_customers_title).'</h2><div class="colored-line"></div>';
|
32 |
+
} elseif ( isset( $wp_customize ) ) {
|
33 |
+
echo '<h2 class="dark-text llorix_one_lite_only_customizer"></h2><div class="colored-line llorix_one_lite_only_customizer"></div>';
|
34 |
+
}
|
35 |
+
|
36 |
+
if( !empty($llorix_one_lite_happy_customers_subtitle) ){
|
37 |
+
echo '<div class="sub-heading">'.esc_attr($llorix_one_lite_happy_customers_subtitle).'</div>';
|
38 |
+
} elseif ( isset( $wp_customize ) ) {
|
39 |
+
echo '<div class="sub-heading llorix_one_lite_only_customizer"></div>';
|
40 |
+
}
|
41 |
+
?>
|
42 |
+
</div>
|
43 |
+
<?php
|
44 |
+
}
|
45 |
+
|
46 |
+
|
47 |
+
if(!empty($llorix_one_lite_testimonials_content)) {
|
48 |
+
echo '<div id="happy_customers_wrap" class="testimonials-wrap">';
|
49 |
+
$llorix_one_lite_testimonials_content_decoded = json_decode($llorix_one_lite_testimonials_content);
|
50 |
+
foreach($llorix_one_lite_testimonials_content_decoded as $llorix_one_lite_testimonial){
|
51 |
+
if( !empty($llorix_one_lite_testimonial->image_url) || !empty($llorix_one_lite_testimonial->title) || !empty($llorix_one_lite_testimonial->subtitle) || !empty($llorix_one_lite_testimonial->text) ){
|
52 |
+
?>
|
53 |
+
<!-- SINGLE FEEDBACK -->
|
54 |
+
<div class="testimonials-box">
|
55 |
+
<div class="feedback border-bottom-hover">
|
56 |
+
<div class="pic-container">
|
57 |
+
<div class="pic-container-inner">
|
58 |
+
<?php
|
59 |
+
|
60 |
+
if( !empty($llorix_one_lite_testimonial->image_url) ){
|
61 |
+
if(!empty($llorix_one_lite_testimonial->title)){
|
62 |
+
echo '<img src="'.esc_url($llorix_one_lite_testimonial->image_url).'" alt="'.$llorix_one_lite_testimonial->title.'">';
|
63 |
+
} else {
|
64 |
+
echo '<img src="'.esc_url($llorix_one_lite_testimonial->image_url).'" alt="'.esc_html('Avatar','llorix-one').'">';
|
65 |
+
}
|
66 |
+
} else {
|
67 |
+
$default_image = llorix_one_lite_lite_get_file('/images/clients/client-no-image.jpg');
|
68 |
+
echo '<img src="'.esc_url($default_image).'" alt="'.esc_html('Avatar','llorix-one').'">';
|
69 |
+
}
|
70 |
+
?>
|
71 |
+
</div>
|
72 |
+
</div>
|
73 |
+
<?php
|
74 |
+
if(!empty($llorix_one_lite_testimonial->title) || !empty($llorix_one_lite_testimonial->subtitle) || !empty($llorix_one_lite_testimonial->text)) {
|
75 |
+
?>
|
76 |
+
<div class="feedback-text-wrap">
|
77 |
+
<?php
|
78 |
+
if(!empty($llorix_one_lite_testimonial->title)){
|
79 |
+
?>
|
80 |
+
<h5 class="colored-text">
|
81 |
+
<?php
|
82 |
+
if(function_exists('icl_t')){
|
83 |
+
echo icl_t('Testimonials',$llorix_one_lite_testimonial->id.'_testimonials_title',esc_attr($llorix_one_lite_testimonial->title));
|
84 |
+
} else {
|
85 |
+
echo esc_attr($llorix_one_lite_testimonial->title);
|
86 |
+
}
|
87 |
+
?>
|
88 |
+
</h5>
|
89 |
+
<?php
|
90 |
+
}
|
91 |
+
|
92 |
+
if(!empty($llorix_one_lite_testimonial->subtitle)){
|
93 |
+
?>
|
94 |
+
<div class="small-text">
|
95 |
+
<?php
|
96 |
+
if(function_exists('icl_t')){
|
97 |
+
echo icl_t('Testimonials',$llorix_one_lite_testimonial->id.'_testimonials_subtitle',esc_attr($llorix_one_lite_testimonial->subtitle));
|
98 |
+
} else {
|
99 |
+
echo esc_attr($llorix_one_lite_testimonial->subtitle);
|
100 |
+
}
|
101 |
+
?>
|
102 |
+
</div>
|
103 |
+
<?php
|
104 |
+
}
|
105 |
+
|
106 |
+
if(!empty($llorix_one_lite_testimonial->text)){
|
107 |
+
?>
|
108 |
+
<p>
|
109 |
+
<?php
|
110 |
+
if(function_exists('icl_t')){
|
111 |
+
echo icl_t('Testimonials',$llorix_one_lite_testimonial->id.'_testimonials_text',html_entity_decode($llorix_one_lite_testimonial->text));
|
112 |
+
} else {
|
113 |
+
echo html_entity_decode($llorix_one_lite_testimonial->text);
|
114 |
+
}
|
115 |
+
?>
|
116 |
+
</p>
|
117 |
+
<?php
|
118 |
+
}
|
119 |
+
?>
|
120 |
+
</div>
|
121 |
+
<?php
|
122 |
+
}
|
123 |
+
?>
|
124 |
+
</div>
|
125 |
+
</div><!-- .testimonials-box -->
|
126 |
+
<?php
|
127 |
+
}
|
128 |
+
}
|
129 |
+
echo '</div>';
|
130 |
+
}
|
131 |
+
?>
|
132 |
+
</div>
|
133 |
+
</div>
|
134 |
+
</section><!-- customers -->
|
135 |
+
<?php
|
136 |
+
} else {
|
137 |
+
if( isset( $wp_customize ) ) {
|
138 |
+
?>
|
139 |
+
<section class="testimonials llorix_one_lite_only_customizer" id="customers" role="region" aria-label="<?php esc_html_e('Testimonials','llorix-one') ?>">
|
140 |
+
<div class="section-overlay-layer">
|
141 |
+
<div class="container">
|
142 |
+
<div class="section-header">
|
143 |
+
<h2 class="dark-text llorix_one_lite_only_customizer"></h2><div class="colored-line llorix_one_lite_only_customizer"></div>
|
144 |
+
<div class="sub-heading llorix_one_lite_only_customizer"></div>
|
145 |
+
</div>
|
146 |
+
</div>
|
147 |
+
</div>
|
148 |
+
</section><!-- customers -->
|
149 |
+
<?php
|
150 |
+
}
|
151 |
+
}
|
sections/llorix_one_lite_our_services_section.php
ADDED
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!-- =========================
|
2 |
+
SECTION: SERVICES
|
3 |
+
============================== -->
|
4 |
+
<?php
|
5 |
+
global $wp_customize;
|
6 |
+
$llorix_one_lite_our_services_title = get_theme_mod('llorix_one_lite_our_services_title',esc_html__('Our Services','llorix-one'));
|
7 |
+
$llorix_one_lite_our_services_subtitle = get_theme_mod('llorix_one_lite_our_services_subtitle',esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit.','llorix-one'));
|
8 |
+
$llorix_one_lite_services = get_theme_mod('llorix_one_lite_services_content',
|
9 |
+
json_encode(
|
10 |
+
array(
|
11 |
+
array('choice'=>'llorix_one_lite_icon','icon_value' => 'fa-cogs','title' => esc_html__('Lorem Ipsum','llorix-one'),'text' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec purus feugiat, molestie ipsum et, consequat nibh. Etiam non elit dui. Nullam vel eros sit amet arcu vestibulum accumsan in in leo.','llorix-one')),
|
12 |
+
array('choice'=>'llorix_one_lite_icon','icon_value' => 'fa-bar-chart-o','title' => esc_html__('Lorem Ipsum','llorix-one'),'text' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec purus feugiat, molestie ipsum et, consequat nibh. Etiam non elit dui. Nullam vel eros sit amet arcu vestibulum accumsan in in leo.','llorix-one')),
|
13 |
+
array('choice'=>'llorix_one_lite_icon','icon_value' => 'fa-globe','title' => esc_html__('Lorem Ipsum','llorix-one'),'text' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec purus feugiat, molestie ipsum et, consequat nibh. Etiam non elit dui. Nullam vel eros sit amet arcu vestibulum accumsan in in leo.','llorix-one'))
|
14 |
+
)
|
15 |
+
)
|
16 |
+
);
|
17 |
+
|
18 |
+
if(!empty($llorix_one_lite_our_services_title) || !empty($llorix_one_lite_our_services_subtitle) || !llorix_one_lite_general_repeater_is_empty($llorix_one_lite_services)){
|
19 |
+
?>
|
20 |
+
<section class="services" id="services" role="region" aria-label="<?php esc_html_e('Services','llorix-one') ?>">
|
21 |
+
<div class="section-overlay-layer">
|
22 |
+
<div class="container">
|
23 |
+
|
24 |
+
<!-- SECTION HEADER -->
|
25 |
+
<div class="section-header">
|
26 |
+
<?php
|
27 |
+
if( !empty($llorix_one_lite_our_services_title) ){
|
28 |
+
echo '<h2 class="dark-text">'.esc_attr($llorix_one_lite_our_services_title).'</h2><div class="colored-line"></div>';
|
29 |
+
} elseif ( isset( $wp_customize ) ) {
|
30 |
+
echo '<h2 class="dark-text llorix_one_lite_only_customizer"></h2><div class="colored-line llorix_one_lite_only_customizer"></div>';
|
31 |
+
}
|
32 |
+
?>
|
33 |
+
|
34 |
+
<?php
|
35 |
+
if( !empty($llorix_one_lite_our_services_subtitle) ){
|
36 |
+
echo '<div class="sub-heading">'.esc_attr($llorix_one_lite_our_services_subtitle).'</div>';
|
37 |
+
} elseif ( isset( $wp_customize ) ) {
|
38 |
+
echo '<div class="sub-heading llorix_one_lite_only_customizer"></div>';
|
39 |
+
}
|
40 |
+
?>
|
41 |
+
</div>
|
42 |
+
|
43 |
+
|
44 |
+
<?php
|
45 |
+
if( !empty($llorix_one_lite_services) ){
|
46 |
+
$llorix_one_lite_services_decoded = json_decode($llorix_one_lite_services);
|
47 |
+
echo '<div id="our_services_wrap" class="services-wrap">';
|
48 |
+
foreach($llorix_one_lite_services_decoded as $llorix_one_lite_service_box){
|
49 |
+
if( (!empty($llorix_one_lite_service_box->icon_value) && $llorix_one_lite_service_box->icon_value!='No Icon' && $llorix_one_lite_service_box->choice == 'llorix_one_lite_icon') || (!empty($llorix_one_lite_service_box->image_url) && $llorix_one_lite_service_box->choice == 'llorix_one_lite_image') || !empty($llorix_one_lite_service_box->title) || !empty($llorix_one_lite_service_box->text) ){
|
50 |
+
echo '<div class="service-box"><div class="single-service border-bottom-hover">';
|
51 |
+
if( !empty($llorix_one_lite_service_box->choice) && $llorix_one_lite_service_box->choice !== 'llorix_one_lite_none' ){
|
52 |
+
if ( $llorix_one_lite_service_box->choice == 'llorix_one_lite_icon' ){
|
53 |
+
if( !empty($llorix_one_lite_service_box->icon_value) ) {
|
54 |
+
if( !empty($llorix_one_lite_service_box->link) ){
|
55 |
+
if (function_exists ( 'icl_t' ) && !empty($llorix_one_lite_service_box->id)){
|
56 |
+
|
57 |
+
$llorix_one_lite_link_services = icl_t('Featured Area',$llorix_one_lite_service_box->id.'_services_link',$llorix_one_lite_service_box->link);
|
58 |
+
|
59 |
+
echo '<div class="service-icon colored-text"><a href="'.esc_url($llorix_one_lite_link_services).'"><i class="fa '.esc_attr($llorix_one_lite_service_box->icon_value).'"></i></a></div>';
|
60 |
+
} else {
|
61 |
+
|
62 |
+
echo '<div class="service-icon colored-text"><a href="'.esc_url($llorix_one_lite_service_box->link).'"><i class="fa '.esc_attr($llorix_one_lite_service_box->icon_value).'"></i></a></div>';
|
63 |
+
}
|
64 |
+
} else {
|
65 |
+
echo '<div class="service-icon colored-text"><i class="fa '.esc_attr($llorix_one_lite_service_box->icon_value).'"></i></div>';
|
66 |
+
}
|
67 |
+
}
|
68 |
+
}
|
69 |
+
if( $llorix_one_lite_service_box->choice == 'llorix_one_lite_image' ){
|
70 |
+
if( !empty($llorix_one_lite_service_box->image_url)){
|
71 |
+
if( !empty($llorix_one_lite_service_box->link) ){
|
72 |
+
if(!empty($llorix_one_lite_service_box->title)){
|
73 |
+
|
74 |
+
if (function_exists ( 'icl_t' ) && !empty($llorix_one_lite_service_box->id)){
|
75 |
+
|
76 |
+
$llorix_one_lite_title_services = icl_t('Featured Area',$llorix_one_lite_service_box->id.'_services_title',$llorix_one_lite_service_box->title);
|
77 |
+
$llorix_one_lite_link_services = icl_t('Featured Area',$llorix_one_lite_service_box->id.'_services_link',$llorix_one_lite_service_box->link);
|
78 |
+
|
79 |
+
echo '<a href="'.esc_url($llorix_one_lite_link_services).'"><img src="'.esc_url($llorix_one_lite_service_box->image_url).'" alt="'.$llorix_one_lite_title_services.'"/></a>';
|
80 |
+
|
81 |
+
} else {
|
82 |
+
|
83 |
+
echo '<a href="'.esc_url($llorix_one_lite_service_box->link).'"><img src="'.esc_url($llorix_one_lite_service_box->image_url).'" alt="'.$llorix_one_lite_service_box->title.'"/></a>';
|
84 |
+
}
|
85 |
+
|
86 |
+
} else {
|
87 |
+
|
88 |
+
if (function_exists ( 'icl_t' ) && !empty($llorix_one_lite_service_box->id)){
|
89 |
+
|
90 |
+
$llorix_one_lite_link_services = icl_t('Featured Area',$llorix_one_lite_service_box->id.'_services_link',$llorix_one_lite_service_box->link);
|
91 |
+
|
92 |
+
echo '<a href="'.esc_url($llorix_one_lite_link_services).'"><img src="'.esc_url($llorix_one_lite_service_box->image_url).'" alt="'.esc_html__('Featured Image','llorix-one').'"/></a>';
|
93 |
+
|
94 |
+
} else {
|
95 |
+
|
96 |
+
echo '<a href="'.esc_url($llorix_one_lite_service_box->link).'"><img src="'.esc_url($llorix_one_lite_service_box->image_url).'" alt="'.esc_html__('Featured Image','llorix-one').'"/></a>';
|
97 |
+
}
|
98 |
+
|
99 |
+
}
|
100 |
+
} else {
|
101 |
+
if(!empty($llorix_one_lite_service_box->title)){
|
102 |
+
echo '<img src="'.esc_url($llorix_one_lite_service_box->image_url).'" alt="'.$llorix_one_lite_service_box->title.'"/>';
|
103 |
+
} else {
|
104 |
+
echo '<img src="'.esc_url($llorix_one_lite_service_box->image_url).'" alt="'.esc_html__('Featured Image','llorix-one').'"/>';
|
105 |
+
}
|
106 |
+
}
|
107 |
+
}
|
108 |
+
}
|
109 |
+
}
|
110 |
+
if(!empty($llorix_one_lite_service_box->title)){
|
111 |
+
if( !empty($llorix_one_lite_service_box->link) ){
|
112 |
+
if (function_exists ( 'icl_t' ) && !empty($llorix_one_lite_service_box->id)){
|
113 |
+
$llorix_one_lite_title_services = icl_t('Featured Area',$llorix_one_lite_service_box->id.'_services_title',$llorix_one_lite_service_box->title);
|
114 |
+
$llorix_one_lite_link_services = icl_t('Featured Area',$llorix_one_lite_service_box->id.'_services_link',$llorix_one_lite_service_box->link);
|
115 |
+
echo '<h3 class="colored-text"><a href="'.esc_url($llorix_one_lite_link_services).'">'.esc_attr($llorix_one_lite_title_services).'</a></h3>';
|
116 |
+
} else {
|
117 |
+
echo '<h3 class="colored-text"><a href="'.esc_url($llorix_one_lite_service_box->link).'">'.esc_attr($llorix_one_lite_service_box->title).'</a></h3>';
|
118 |
+
}
|
119 |
+
} else {
|
120 |
+
if (function_exists ( 'icl_t' ) && !empty($llorix_one_lite_service_box->id)){
|
121 |
+
$llorix_one_lite_title_services = icl_t('Featured Area',$llorix_one_lite_service_box->id.'_services_title',$llorix_one_lite_service_box->title);
|
122 |
+
echo '<h3 class="colored-text">'.esc_attr($llorix_one_lite_title_services).'</h3>';
|
123 |
+
} else {
|
124 |
+
echo '<h3 class="colored-text">'.esc_attr($llorix_one_lite_service_box->title).'</h3>';
|
125 |
+
}
|
126 |
+
}
|
127 |
+
}
|
128 |
+
if(!empty($llorix_one_lite_service_box->text)){
|
129 |
+
if (function_exists ( 'icl_t' ) && !empty($llorix_one_lite_service_box->id)){
|
130 |
+
echo '<p>'.icl_t('Featured Area',$llorix_one_lite_service_box->id.'_services_text',html_entity_decode($llorix_one_lite_service_box->text)).'</p>';
|
131 |
+
} else {
|
132 |
+
echo '<p>'.html_entity_decode($llorix_one_lite_service_box->text).'</p>';
|
133 |
+
}
|
134 |
+
}
|
135 |
+
echo '</div></div>';
|
136 |
+
}
|
137 |
+
}
|
138 |
+
echo '</div>';
|
139 |
+
}
|
140 |
+
?>
|
141 |
+
</div>
|
142 |
+
</div>
|
143 |
+
</section>
|
144 |
+
<?php
|
145 |
+
} else {
|
146 |
+
if( isset( $wp_customize ) ) {
|
147 |
+
?>
|
148 |
+
<section class="services llorix_one_lite_only_customizer" id="services" role="region" aria-label="<?php esc_html_e('Services','llorix-one') ?>">
|
149 |
+
<div class="section-overlay-layer">
|
150 |
+
<div class="container">
|
151 |
+
<div class="section-header">
|
152 |
+
<h2 class="dark-text llorix_one_lite_only_customizer"></h2><div class="colored-line llorix_one_lite_only_customizer"></div>
|
153 |
+
<div class="sub-heading llorix_one_lite_only_customizer"></div>
|
154 |
+
</div>
|
155 |
+
</div>
|
156 |
+
</div>
|
157 |
+
</section>
|
158 |
+
<?php
|
159 |
+
}
|
160 |
+
}
|
161 |
+
?>
|
sections/llorix_one_lite_our_team_section.php
ADDED
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!-- =========================
|
2 |
+
SECTION: TEAM
|
3 |
+
============================== -->
|
4 |
+
<?php
|
5 |
+
global $wp_customize;
|
6 |
+
$llorix_one_lite_our_team_title = get_theme_mod('llorix_one_lite_our_team_title',esc_html__('Our Team','llorix-one'));
|
7 |
+
$llorix_one_lite_our_team_subtitle = get_theme_mod('llorix_one_lite_our_team_subtitle',esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit.','llorix-one'));
|
8 |
+
$llorix_one_lite_team_content = get_theme_mod('llorix_one_lite_team_content',
|
9 |
+
json_encode(
|
10 |
+
array(
|
11 |
+
array('image_url' => llorix_one_lite_get_file('/images/team/1.jpg'),'title' => esc_html__('Albert Jacobs','llorix-one'),'subtitle' => esc_html__('Founder & CEO','llorix-one')),
|
12 |
+
array('image_url' => llorix_one_lite_get_file('/images/team/2.jpg'),'title' => esc_html__('Tonya Garcia','llorix-one'),'subtitle' => esc_html__('Account Manager','llorix-one')),
|
13 |
+
array('image_url' => llorix_one_lite_get_file('/images/team/3.jpg'),'title' => esc_html__('Linda Guthrie','llorix-one'),'subtitle' => esc_html__('Business Development','llorix-one'))
|
14 |
+
)
|
15 |
+
)
|
16 |
+
);
|
17 |
+
|
18 |
+
if(!empty($llorix_one_lite_our_team_title) || !empty($llorix_one_lite_our_team_subtitle) || !llorix_one_lite_general_repeater_is_empty($llorix_one_lite_team_content) ){
|
19 |
+
?>
|
20 |
+
<section class="team" id="team" role="region" aria-label="<?php esc_html_e('Team','llorix-one') ?>">
|
21 |
+
<div class="section-overlay-layer">
|
22 |
+
<div class="container">
|
23 |
+
|
24 |
+
<!-- SECTION HEADER -->
|
25 |
+
<?php
|
26 |
+
if( !empty($llorix_one_lite_our_team_title) || !empty($llorix_one_lite_our_team_subtitle)){ ?>
|
27 |
+
<div class="section-header">
|
28 |
+
<?php
|
29 |
+
if( !empty($llorix_one_lite_our_team_title) ){
|
30 |
+
echo '<h2 class="dark-text">'.esc_attr($llorix_one_lite_our_team_title).'</h2><div class="colored-line"></div>';
|
31 |
+
} elseif ( isset( $wp_customize ) ) {
|
32 |
+
echo '<h2 class="dark-text llorix_one_lite_only_customizer"></h2><div class="colored-line llorix_one_lite_only_customizer"></div>';
|
33 |
+
}
|
34 |
+
|
35 |
+
?>
|
36 |
+
|
37 |
+
<?php
|
38 |
+
if( !empty($llorix_one_lite_our_team_subtitle) ){
|
39 |
+
echo '<div class="sub-heading">'.esc_attr($llorix_one_lite_our_team_subtitle).'</div>';
|
40 |
+
} elseif ( isset( $wp_customize ) ) {
|
41 |
+
echo '<div class="sub-heading llorix_one_lite_only_customizer"></div>';
|
42 |
+
}
|
43 |
+
?>
|
44 |
+
</div>
|
45 |
+
<?php
|
46 |
+
}
|
47 |
+
|
48 |
+
|
49 |
+
if(!empty($llorix_one_lite_team_content)){
|
50 |
+
echo '<div class="row team-member-wrap">';
|
51 |
+
$llorix_one_lite_team_decoded = json_decode($llorix_one_lite_team_content);
|
52 |
+
foreach($llorix_one_lite_team_decoded as $llorix_one_lite_team_member){
|
53 |
+
if( !empty($llorix_one_lite_team_member->image_url) || !empty($llorix_one_lite_team_member->title) || !empty($llorix_one_lite_team_member->subtitle)){?>
|
54 |
+
<div class="col-md-3 team-member-box">
|
55 |
+
<div class="team-member border-bottom-hover">
|
56 |
+
<div class="member-pic">
|
57 |
+
<?php
|
58 |
+
if( !empty($llorix_one_lite_team_member->image_url)){
|
59 |
+
if( !empty($llorix_one_lite_team_member->title) ){
|
60 |
+
echo '<img src="'.esc_url($llorix_one_lite_team_member->image_url).'" alt="'.esc_attr($llorix_one_lite_team_member->title).'">';
|
61 |
+
} else {
|
62 |
+
echo '<img src="'.esc_url($llorix_one_lite_team_member->image_url).'" alt="'.esc_html__('Avatar','llorix-one').'">';
|
63 |
+
}
|
64 |
+
} else {
|
65 |
+
$default_url = llorix_one_lite_get_file('/images/team/default.png');
|
66 |
+
echo '<img src="'.$default_url.'" alt="'.esc_html__('Avatar','llorix-one').'">';
|
67 |
+
}
|
68 |
+
?>
|
69 |
+
</div><!-- .member-pic -->
|
70 |
+
|
71 |
+
<?php if(!empty($llorix_one_lite_team_member->title) || !empty($llorix_one_lite_team_member->subtitle)){?>
|
72 |
+
<div class="member-details">
|
73 |
+
<div class="member-details-inner">
|
74 |
+
<?php
|
75 |
+
if( !empty($llorix_one_lite_team_member->title) ){
|
76 |
+
if(function_exists('icl_t')){
|
77 |
+
echo '<h5 class="colored-text">'.icl_t('Team',$llorix_one_lite_team_member->id.'_team_title',esc_attr($llorix_one_lite_team_member->title)).'</h5>';
|
78 |
+
} else {
|
79 |
+
echo '<h5 class="colored-text">'.esc_attr($llorix_one_lite_team_member->title).'</h5>';
|
80 |
+
}
|
81 |
+
}
|
82 |
+
if( !empty($llorix_one_lite_team_member->subtitle) ){ ?>
|
83 |
+
<div class="small-text">
|
84 |
+
<?php
|
85 |
+
if(function_exists('icl_t')){
|
86 |
+
echo icl_t('Team',$llorix_one_lite_team_member->id.'_team_subtitle',esc_attr($llorix_one_lite_team_member->subtitle));
|
87 |
+
} else {
|
88 |
+
echo esc_attr($llorix_one_lite_team_member->subtitle);
|
89 |
+
}
|
90 |
+
?>
|
91 |
+
</div>
|
92 |
+
|
93 |
+
<?php
|
94 |
+
}
|
95 |
+
?>
|
96 |
+
</div><!-- .member-details-inner -->
|
97 |
+
</div><!-- .member-details -->
|
98 |
+
<?php } ?>
|
99 |
+
</div><!-- .team-member -->
|
100 |
+
</div><!-- .team-member -->
|
101 |
+
<!-- MEMBER -->
|
102 |
+
<?php
|
103 |
+
}
|
104 |
+
}
|
105 |
+
echo '</div>';
|
106 |
+
}?>
|
107 |
+
</div>
|
108 |
+
</div><!-- container -->
|
109 |
+
</section><!-- #section9 -->
|
110 |
+
|
111 |
+
<?php
|
112 |
+
} else {
|
113 |
+
if( isset( $wp_customize ) ) {
|
114 |
+
?>
|
115 |
+
<section class="team llorix_one_lite_only_customizer" id="team" role="region" aria-label="<?php esc_html_e('Team','llorix-one') ?>">
|
116 |
+
<div class="section-overlay-layer">
|
117 |
+
<div class="container">
|
118 |
+
<div class="section-header">
|
119 |
+
<h2 class="dark-text llorix_one_lite_only_customizer"></h2><div class="colored-line llorix_one_lite_only_customizer"></div>
|
120 |
+
<div class="sub-heading llorix_one_lite_only_customizer"></div>
|
121 |
+
</div>
|
122 |
+
</div>
|
123 |
+
</div>
|
124 |
+
</section>
|
125 |
+
<?php
|
126 |
+
}
|
127 |
+
}
|
128 |
+
?>
|