Version Description
Download this release
Release Info
Developer | themeisle |
Plugin | Llorix One Companion |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
- inc/settings.php +66 -27
- js/llorix-companion-customizer.js +33 -0
- languages/llorix-one-companion.pot +212 -0
- llorix-one-companion.php +3 -2
- sections/llorix_one_lite_happy_customers_section.php +231 -119
- sections/llorix_one_lite_our_services_section.php +152 -31
- sections/llorix_one_lite_our_team_section.php +120 -28
inc/settings.php
CHANGED
@@ -8,18 +8,31 @@ function llorix_one_companion_customize_register( $wp_customize ) {
|
|
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
|
@@ -27,12 +40,12 @@ function llorix_one_companion_customize_register( $wp_customize ) {
|
|
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
|
@@ -44,14 +57,14 @@ function llorix_one_companion_customize_register( $wp_customize ) {
|
|
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,
|
@@ -67,18 +80,31 @@ function llorix_one_companion_customize_register( $wp_customize ) {
|
|
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,
|
@@ -86,12 +112,12 @@ function llorix_one_companion_customize_register( $wp_customize ) {
|
|
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,
|
@@ -114,14 +140,14 @@ function llorix_one_companion_customize_register( $wp_customize ) {
|
|
114 |
'sanitize_callback' => 'llorix_one_lite_sanitize_repeater',
|
115 |
'default' => json_encode(
|
116 |
array(
|
117 |
-
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')),
|
118 |
-
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')),
|
119 |
-
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'))
|
120 |
)
|
121 |
)
|
122 |
));
|
123 |
$wp_customize->add_control( new Llorix_One_Lite_General_Repeater( $wp_customize, 'llorix_one_lite_team_content', array(
|
124 |
-
'label' => esc_html__('Add new team member','llorix-companion'),
|
125 |
'section' => 'llorix_one_lite_team_section',
|
126 |
'active_callback' => 'llorix_one_lite_show_on_front',
|
127 |
'priority' => 40,
|
@@ -135,18 +161,31 @@ function llorix_one_companion_customize_register( $wp_customize ) {
|
|
135 |
/********************************************************/
|
136 |
|
137 |
$wp_customize->add_section( 'llorix_one_lite_testimonials_section' , array(
|
138 |
-
'title' => esc_html__( '
|
139 |
'priority' => 55,
|
140 |
));
|
141 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
/* Testimonials title */
|
143 |
$wp_customize->add_setting( 'llorix_one_lite_happy_customers_title', array(
|
144 |
-
'default' => esc_html__('Happy Customers','llorix-companion'),
|
145 |
'sanitize_callback' => 'llorix_one_lite_sanitize_text',
|
146 |
'transport' => 'postMessage'
|
147 |
));
|
148 |
$wp_customize->add_control( 'llorix_one_lite_happy_customers_title', array(
|
149 |
-
'label' => esc_html__( 'Main title', 'llorix-companion' ),
|
150 |
'section' => 'llorix_one_lite_testimonials_section',
|
151 |
'active_callback' => 'llorix_one_lite_show_on_front',
|
152 |
'priority' => 10,
|
@@ -154,12 +193,12 @@ function llorix_one_companion_customize_register( $wp_customize ) {
|
|
154 |
|
155 |
/* Testimonials subtitle */
|
156 |
$wp_customize->add_setting( 'llorix_one_lite_happy_customers_subtitle', array(
|
157 |
-
'default' => esc_html__('Cloud computing subscription model out of the box proactive solution.','llorix-companion'),
|
158 |
'sanitize_callback' => 'llorix_one_lite_sanitize_text',
|
159 |
'transport' => 'postMessage'
|
160 |
));
|
161 |
$wp_customize->add_control( 'llorix_one_lite_happy_customers_subtitle', array(
|
162 |
-
'label' => esc_html__( 'Subtitle', 'llorix-companion' ),
|
163 |
'section' => 'llorix_one_lite_testimonials_section',
|
164 |
'active_callback' => 'llorix_one_lite_show_on_front',
|
165 |
'priority' => 20,
|
@@ -171,14 +210,14 @@ function llorix_one_companion_customize_register( $wp_customize ) {
|
|
171 |
'sanitize_callback' => 'llorix_one_lite_sanitize_repeater',
|
172 |
'default' => json_encode(
|
173 |
array(
|
174 |
-
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')),
|
175 |
-
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')),
|
176 |
-
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'))
|
177 |
)
|
178 |
)
|
179 |
));
|
180 |
$wp_customize->add_control( new Llorix_One_Lite_General_Repeater( $wp_customize, 'llorix_one_lite_testimonials_content', array(
|
181 |
-
'label' => esc_html__('Add new testimonial','llorix-companion'),
|
182 |
'section' => 'llorix_one_lite_testimonials_section',
|
183 |
'active_callback' => 'llorix_one_lite_show_on_front',
|
184 |
'priority' => 30,
|
8 |
|
9 |
/* SERVICES SECTION */
|
10 |
$wp_customize->add_section( 'llorix_one_lite_services_section' , array(
|
11 |
+
'title' => esc_html__( 'Services section', 'llorix-one-companion' ),
|
12 |
'priority' => 40,
|
13 |
));
|
14 |
|
15 |
+
/* Services show/hide */
|
16 |
+
$wp_customize->add_setting( 'llorix_one_lite_our_services_show', array(
|
17 |
+
'sanitize_callback' => 'llorix_one_lite_sanitize_text',
|
18 |
+
'transport' => 'postMessage'
|
19 |
+
));
|
20 |
+
|
21 |
+
$wp_customize->add_control( 'llorix_one_lite_our_services_show', array(
|
22 |
+
'type' => 'checkbox',
|
23 |
+
'label' => __('Disable the Services section?','llorix-one-companion'),
|
24 |
+
'section' => 'llorix_one_lite_services_section',
|
25 |
+
'priority' => 1,
|
26 |
+
));
|
27 |
+
|
28 |
/* Services title */
|
29 |
$wp_customize->add_setting( 'llorix_one_lite_our_services_title', array(
|
30 |
+
'default' => esc_html__('Our Services','llorix-one-companion'),
|
31 |
'sanitize_callback' => 'llorix_one_lite_sanitize_text',
|
32 |
'transport' => 'postMessage'
|
33 |
));
|
34 |
$wp_customize->add_control( 'llorix_one_lite_our_services_title', array(
|
35 |
+
'label' => esc_html__( 'Main title', 'llorix-one-companion' ),
|
36 |
'section' => 'llorix_one_lite_services_section',
|
37 |
'active_callback' => 'llorix_one_lite_show_on_front',
|
38 |
'priority' => 10
|
40 |
|
41 |
/* Services subtitle */
|
42 |
$wp_customize->add_setting( 'llorix_one_lite_our_services_subtitle', array(
|
43 |
+
'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit.','llorix-one-companion'),
|
44 |
'sanitize_callback' => 'llorix_one_lite_sanitize_text',
|
45 |
'transport' => 'postMessage'
|
46 |
));
|
47 |
$wp_customize->add_control( 'llorix_one_lite_our_services_subtitle', array(
|
48 |
+
'label' => esc_html__( 'Subtitle', 'llorix-one-companion' ),
|
49 |
'section' => 'llorix_one_lite_services_section',
|
50 |
'active_callback' => 'llorix_one_lite_show_on_front',
|
51 |
'priority' => 20
|
57 |
'sanitize_callback' => 'llorix_one_lite_sanitize_repeater',
|
58 |
'default' => json_encode(
|
59 |
array(
|
60 |
+
array('choice'=>'llorix_one_lite_icon','icon_value' => 'fa-cogs','title' => esc_html__('Lorem Ipsum','llorix-one-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-one-companion')),
|
61 |
+
array('choice'=>'llorix_one_lite_icon','icon_value' => 'fa-bar-chart-o','title' => esc_html__('Lorem Ipsum','llorix-one-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-one-companion')),
|
62 |
+
array('choice'=>'llorix_one_lite_icon','icon_value' => 'fa-globe','title' => esc_html__('Lorem Ipsum','llorix-one-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-one-companion'))
|
63 |
)
|
64 |
)
|
65 |
));
|
66 |
$wp_customize->add_control( new Llorix_One_Lite_General_Repeater( $wp_customize, 'llorix_one_lite_services_content', array(
|
67 |
+
'label' => esc_html__('Add new service box','llorix-one-companion'),
|
68 |
'section' => 'llorix_one_lite_services_section',
|
69 |
'active_callback' => 'llorix_one_lite_show_on_front',
|
70 |
'priority' => 30,
|
80 |
/********************************************************/
|
81 |
|
82 |
$wp_customize->add_section( 'llorix_one_lite_team_section' , array(
|
83 |
+
'title' => esc_html__( 'Team section', 'llorix-one-companion' ),
|
84 |
'priority' => 50,
|
85 |
));
|
86 |
|
87 |
+
/* Team show/hide */
|
88 |
+
$wp_customize->add_setting( 'llorix_one_lite_our_team_show', array(
|
89 |
+
'sanitize_callback' => 'llorix_one_lite_sanitize_text',
|
90 |
+
'transport' => 'postMessage'
|
91 |
+
));
|
92 |
+
|
93 |
+
$wp_customize->add_control( 'llorix_one_lite_our_team_show', array(
|
94 |
+
'type' => 'checkbox',
|
95 |
+
'label' => __('Disable the Team section?','llorix-one-companion'),
|
96 |
+
'section' => 'llorix_one_lite_team_section',
|
97 |
+
'priority' => 1,
|
98 |
+
));
|
99 |
+
|
100 |
/* Team title */
|
101 |
$wp_customize->add_setting( 'llorix_one_lite_our_team_title', array(
|
102 |
+
'default' => esc_html__('Our Team','llorix-one-companion'),
|
103 |
'sanitize_callback' => 'llorix_one_lite_sanitize_text',
|
104 |
'transport' => 'postMessage'
|
105 |
));
|
106 |
$wp_customize->add_control( 'llorix_one_lite_our_team_title', array(
|
107 |
+
'label' => esc_html__( 'Main title', 'llorix-one-companion' ),
|
108 |
'section' => 'llorix_one_lite_team_section',
|
109 |
'active_callback' => 'llorix_one_lite_show_on_front',
|
110 |
'priority' => 10,
|
112 |
|
113 |
/* Team subtitle */
|
114 |
$wp_customize->add_setting( 'llorix_one_lite_our_team_subtitle', array(
|
115 |
+
'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit.','llorix-one-companion'),
|
116 |
'sanitize_callback' => 'llorix_one_lite_sanitize_text',
|
117 |
'transport' => 'postMessage'
|
118 |
));
|
119 |
$wp_customize->add_control( 'llorix_one_lite_our_team_subtitle', array(
|
120 |
+
'label' => esc_html__( 'Subtitle', 'llorix-one-companion' ),
|
121 |
'section' => 'llorix_one_lite_team_section',
|
122 |
'active_callback' => 'llorix_one_lite_show_on_front',
|
123 |
'priority' => 20,
|
140 |
'sanitize_callback' => 'llorix_one_lite_sanitize_repeater',
|
141 |
'default' => json_encode(
|
142 |
array(
|
143 |
+
array('image_url' => llorix_one_lite_get_file('/images/team/1.jpg'),'title' => esc_html__('Albert Jacobs','llorix-one-companion'),'subtitle' => esc_html__('Founder & CEO','llorix-one-companion')),
|
144 |
+
array('image_url' => llorix_one_lite_get_file('/images/team/2.jpg'),'title' => esc_html__('Tonya Garcia','llorix-one-companion'),'subtitle' => esc_html__('Account Manager','llorix-one-companion')),
|
145 |
+
array('image_url' => llorix_one_lite_get_file('/images/team/3.jpg'),'title' => esc_html__('Linda Guthrie','llorix-one-companion'),'subtitle' => esc_html__('Business Development','llorix-one-companion'))
|
146 |
)
|
147 |
)
|
148 |
));
|
149 |
$wp_customize->add_control( new Llorix_One_Lite_General_Repeater( $wp_customize, 'llorix_one_lite_team_content', array(
|
150 |
+
'label' => esc_html__('Add new team member','llorix-one-companion'),
|
151 |
'section' => 'llorix_one_lite_team_section',
|
152 |
'active_callback' => 'llorix_one_lite_show_on_front',
|
153 |
'priority' => 40,
|
161 |
/********************************************************/
|
162 |
|
163 |
$wp_customize->add_section( 'llorix_one_lite_testimonials_section' , array(
|
164 |
+
'title' => esc_html__( 'Testimonials section', 'llorix-one-companion' ),
|
165 |
'priority' => 55,
|
166 |
));
|
167 |
|
168 |
+
/* Testimonials show/hide */
|
169 |
+
$wp_customize->add_setting( 'llorix_one_lite_happy_customers_show', array(
|
170 |
+
'sanitize_callback' => 'llorix_one_lite_sanitize_text',
|
171 |
+
'transport' => 'postMessage'
|
172 |
+
));
|
173 |
+
|
174 |
+
$wp_customize->add_control( 'llorix_one_lite_happy_customers_show', array(
|
175 |
+
'type' => 'checkbox',
|
176 |
+
'label' => __('Disable the Testimonials section?','llorix-one-companion'),
|
177 |
+
'section' => 'llorix_one_lite_testimonials_section',
|
178 |
+
'priority' => 1,
|
179 |
+
));
|
180 |
+
|
181 |
/* Testimonials title */
|
182 |
$wp_customize->add_setting( 'llorix_one_lite_happy_customers_title', array(
|
183 |
+
'default' => esc_html__('Happy Customers','llorix-one-companion'),
|
184 |
'sanitize_callback' => 'llorix_one_lite_sanitize_text',
|
185 |
'transport' => 'postMessage'
|
186 |
));
|
187 |
$wp_customize->add_control( 'llorix_one_lite_happy_customers_title', array(
|
188 |
+
'label' => esc_html__( 'Main title', 'llorix-one-companion' ),
|
189 |
'section' => 'llorix_one_lite_testimonials_section',
|
190 |
'active_callback' => 'llorix_one_lite_show_on_front',
|
191 |
'priority' => 10,
|
193 |
|
194 |
/* Testimonials subtitle */
|
195 |
$wp_customize->add_setting( 'llorix_one_lite_happy_customers_subtitle', array(
|
196 |
+
'default' => esc_html__('Cloud computing subscription model out of the box proactive solution.','llorix-one-companion'),
|
197 |
'sanitize_callback' => 'llorix_one_lite_sanitize_text',
|
198 |
'transport' => 'postMessage'
|
199 |
));
|
200 |
$wp_customize->add_control( 'llorix_one_lite_happy_customers_subtitle', array(
|
201 |
+
'label' => esc_html__( 'Subtitle', 'llorix-one-companion' ),
|
202 |
'section' => 'llorix_one_lite_testimonials_section',
|
203 |
'active_callback' => 'llorix_one_lite_show_on_front',
|
204 |
'priority' => 20,
|
210 |
'sanitize_callback' => 'llorix_one_lite_sanitize_repeater',
|
211 |
'default' => json_encode(
|
212 |
array(
|
213 |
+
array('image_url' => llorix_one_lite_get_file('/images/clients/1.jpg'),'title' => esc_html__('Happy Customer','llorix-one-companion'),'subtitle' => esc_html__('Lorem ipsum','llorix-one-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-one-companion')),
|
214 |
+
array('image_url' => llorix_one_lite_get_file('/images/clients/2.jpg'),'title' => esc_html__('Happy Customer','llorix-one-companion'),'subtitle' => esc_html__('Lorem ipsum','llorix-one-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-one-companion')),
|
215 |
+
array('image_url' => llorix_one_lite_get_file('/images/clients/3.jpg'),'title' => esc_html__('Happy Customer','llorix-one-companion'),'subtitle' => esc_html__('Lorem ipsum','llorix-one-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-one-companion'))
|
216 |
)
|
217 |
)
|
218 |
));
|
219 |
$wp_customize->add_control( new Llorix_One_Lite_General_Repeater( $wp_customize, 'llorix_one_lite_testimonials_content', array(
|
220 |
+
'label' => esc_html__('Add new testimonial','llorix-one-companion'),
|
221 |
'section' => 'llorix_one_lite_testimonials_section',
|
222 |
'active_callback' => 'llorix_one_lite_show_on_front',
|
223 |
'priority' => 30,
|
js/llorix-companion-customizer.js
CHANGED
@@ -10,6 +10,17 @@
|
|
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 ) {
|
@@ -38,6 +49,17 @@
|
|
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 ) {
|
@@ -66,6 +88,17 @@
|
|
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 ) {
|
10 |
*********** SERVICES SECTION **********
|
11 |
***************************************/
|
12 |
|
13 |
+
/* llorix_one_lite_our_services_show */
|
14 |
+
wp.customize( 'llorix_one_lite_our_services_show', function( value ) {
|
15 |
+
value.bind( function( to ) {
|
16 |
+
if ( '1' != to ) {
|
17 |
+
$( 'section.services' ).removeClass('llorix_one_lite_only_customizer');
|
18 |
+
} else {
|
19 |
+
$( 'section.services' ).addClass('llorix_one_lite_only_customizer');
|
20 |
+
}
|
21 |
+
} );
|
22 |
+
} );
|
23 |
+
|
24 |
/* llorix_one_lite_our_services_title */
|
25 |
wp.customize("llorix_one_lite_our_services_title", function(value) {
|
26 |
value.bind(function( to ) {
|
49 |
************* TEAM SECTION ************
|
50 |
***************************************/
|
51 |
|
52 |
+
/* llorix_one_lite_our_team_show */
|
53 |
+
wp.customize( 'llorix_one_lite_our_team_show', function( value ) {
|
54 |
+
value.bind( function( to ) {
|
55 |
+
if ( '1' != to ) {
|
56 |
+
$( 'section.team' ).removeClass('llorix_one_lite_only_customizer');
|
57 |
+
} else {
|
58 |
+
$( 'section.team' ).addClass('llorix_one_lite_only_customizer');
|
59 |
+
}
|
60 |
+
} );
|
61 |
+
} );
|
62 |
+
|
63 |
/* llorix_one_lite_our_team_title */
|
64 |
wp.customize("llorix_one_lite_our_team_title", function(value) {
|
65 |
value.bind(function( to ) {
|
88 |
********* TESTIMONIALS SECTION *********
|
89 |
***************************************/
|
90 |
|
91 |
+
/* llorix_one_lite_happy_customers_show */
|
92 |
+
wp.customize( 'llorix_one_lite_happy_customers_show', function( value ) {
|
93 |
+
value.bind( function( to ) {
|
94 |
+
if ( '1' != to ) {
|
95 |
+
$( 'section.testimonials' ).removeClass('llorix_one_lite_only_customizer');
|
96 |
+
} else {
|
97 |
+
$( 'section.testimonials' ).addClass('llorix_one_lite_only_customizer');
|
98 |
+
}
|
99 |
+
} );
|
100 |
+
} );
|
101 |
+
|
102 |
/* llorix_one_lite_happy_customers_title */
|
103 |
wp.customize("llorix_one_lite_happy_customers_title", function(value) {
|
104 |
value.bind(function( to ) {
|
languages/llorix-one-companion.pot
ADDED
@@ -0,0 +1,212 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Llorix One Companion\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2016-03-09 16:20+0200\n"
|
6 |
+
"PO-Revision-Date: 2016-03-09 16:20+0200\n"
|
7 |
+
"Last-Translator: \n"
|
8 |
+
"Language-Team: themeisle <friends@themeisle.com>\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e;esc_html__;esc_html_e\n"
|
13 |
+
"X-Poedit-Basepath: ../\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
+
"X-Poedit-SearchPath-1: sections\n"
|
16 |
+
"X-Poedit-SearchPath-2: inc\n"
|
17 |
+
|
18 |
+
#: llorix-one-companion.php:69
|
19 |
+
msgid "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."
|
20 |
+
msgstr ""
|
21 |
+
|
22 |
+
#: llorix-one-companion.php:89
|
23 |
+
msgid "<i>Llorix One Companion</i> has been deactivated."
|
24 |
+
msgstr ""
|
25 |
+
|
26 |
+
#: inc/settings.php:11
|
27 |
+
msgid "Services section"
|
28 |
+
msgstr ""
|
29 |
+
|
30 |
+
#: inc/settings.php:23
|
31 |
+
msgid "Disable the Services section?"
|
32 |
+
msgstr ""
|
33 |
+
|
34 |
+
#: inc/settings.php:30
|
35 |
+
#: sections/llorix_one_lite_our_services_section.php:9
|
36 |
+
msgid "Our Services"
|
37 |
+
msgstr ""
|
38 |
+
|
39 |
+
#: inc/settings.php:35
|
40 |
+
#: inc/settings.php:107
|
41 |
+
#: inc/settings.php:188
|
42 |
+
msgid "Main title"
|
43 |
+
msgstr ""
|
44 |
+
|
45 |
+
#: inc/settings.php:43
|
46 |
+
#: inc/settings.php:115
|
47 |
+
#: sections/llorix_one_lite_our_services_section.php:10
|
48 |
+
#: sections/llorix_one_lite_our_team_section.php:11
|
49 |
+
msgid "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
50 |
+
msgstr ""
|
51 |
+
|
52 |
+
#: inc/settings.php:48
|
53 |
+
#: inc/settings.php:120
|
54 |
+
#: inc/settings.php:201
|
55 |
+
msgid "Subtitle"
|
56 |
+
msgstr ""
|
57 |
+
|
58 |
+
#: inc/settings.php:60
|
59 |
+
#: inc/settings.php:61
|
60 |
+
#: inc/settings.php:62
|
61 |
+
#: sections/llorix_one_lite_our_services_section.php:14
|
62 |
+
#: sections/llorix_one_lite_our_services_section.php:15
|
63 |
+
#: sections/llorix_one_lite_our_services_section.php:16
|
64 |
+
msgid "Lorem Ipsum"
|
65 |
+
msgstr ""
|
66 |
+
|
67 |
+
#: inc/settings.php:60
|
68 |
+
#: inc/settings.php:61
|
69 |
+
#: inc/settings.php:62
|
70 |
+
#: sections/llorix_one_lite_our_services_section.php:14
|
71 |
+
#: sections/llorix_one_lite_our_services_section.php:15
|
72 |
+
#: sections/llorix_one_lite_our_services_section.php:16
|
73 |
+
msgid "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."
|
74 |
+
msgstr ""
|
75 |
+
|
76 |
+
#: inc/settings.php:67
|
77 |
+
msgid "Add new service box"
|
78 |
+
msgstr ""
|
79 |
+
|
80 |
+
#: inc/settings.php:83
|
81 |
+
msgid "Team section"
|
82 |
+
msgstr ""
|
83 |
+
|
84 |
+
#: inc/settings.php:95
|
85 |
+
msgid "Disable the Team section?"
|
86 |
+
msgstr ""
|
87 |
+
|
88 |
+
#: inc/settings.php:102
|
89 |
+
#: sections/llorix_one_lite_our_team_section.php:9
|
90 |
+
msgid "Our Team"
|
91 |
+
msgstr ""
|
92 |
+
|
93 |
+
#: inc/settings.php:132
|
94 |
+
msgid "Team Background"
|
95 |
+
msgstr ""
|
96 |
+
|
97 |
+
#: inc/settings.php:143
|
98 |
+
#: sections/llorix_one_lite_our_team_section.php:15
|
99 |
+
msgid "Albert Jacobs"
|
100 |
+
msgstr ""
|
101 |
+
|
102 |
+
#: inc/settings.php:143
|
103 |
+
#: sections/llorix_one_lite_our_team_section.php:15
|
104 |
+
msgid "Founder & CEO"
|
105 |
+
msgstr ""
|
106 |
+
|
107 |
+
#: inc/settings.php:144
|
108 |
+
#: sections/llorix_one_lite_our_team_section.php:16
|
109 |
+
msgid "Tonya Garcia"
|
110 |
+
msgstr ""
|
111 |
+
|
112 |
+
#: inc/settings.php:144
|
113 |
+
#: sections/llorix_one_lite_our_team_section.php:16
|
114 |
+
msgid "Account Manager"
|
115 |
+
msgstr ""
|
116 |
+
|
117 |
+
#: inc/settings.php:145
|
118 |
+
#: sections/llorix_one_lite_our_team_section.php:17
|
119 |
+
msgid "Linda Guthrie"
|
120 |
+
msgstr ""
|
121 |
+
|
122 |
+
#: inc/settings.php:145
|
123 |
+
#: sections/llorix_one_lite_our_team_section.php:17
|
124 |
+
msgid "Business Development"
|
125 |
+
msgstr ""
|
126 |
+
|
127 |
+
#: inc/settings.php:150
|
128 |
+
msgid "Add new team member"
|
129 |
+
msgstr ""
|
130 |
+
|
131 |
+
#: inc/settings.php:164
|
132 |
+
msgid "Testimonials section"
|
133 |
+
msgstr ""
|
134 |
+
|
135 |
+
#: inc/settings.php:176
|
136 |
+
msgid "Disable the Testimonials section?"
|
137 |
+
msgstr ""
|
138 |
+
|
139 |
+
#: inc/settings.php:183
|
140 |
+
#: sections/llorix_one_lite_happy_customers_section.php:9
|
141 |
+
msgid "Happy Customers"
|
142 |
+
msgstr ""
|
143 |
+
|
144 |
+
#: inc/settings.php:196
|
145 |
+
#: sections/llorix_one_lite_happy_customers_section.php:10
|
146 |
+
msgid "Cloud computing subscription model out of the box proactive solution."
|
147 |
+
msgstr ""
|
148 |
+
|
149 |
+
#: inc/settings.php:213
|
150 |
+
#: inc/settings.php:214
|
151 |
+
#: inc/settings.php:215
|
152 |
+
#: sections/llorix_one_lite_happy_customers_section.php:14
|
153 |
+
#: sections/llorix_one_lite_happy_customers_section.php:15
|
154 |
+
#: sections/llorix_one_lite_happy_customers_section.php:16
|
155 |
+
msgid "Happy Customer"
|
156 |
+
msgstr ""
|
157 |
+
|
158 |
+
#: inc/settings.php:213
|
159 |
+
#: inc/settings.php:214
|
160 |
+
#: inc/settings.php:215
|
161 |
+
#: sections/llorix_one_lite_happy_customers_section.php:14
|
162 |
+
#: sections/llorix_one_lite_happy_customers_section.php:15
|
163 |
+
#: sections/llorix_one_lite_happy_customers_section.php:16
|
164 |
+
msgid "Lorem ipsum"
|
165 |
+
msgstr ""
|
166 |
+
|
167 |
+
#: inc/settings.php:213
|
168 |
+
#: inc/settings.php:214
|
169 |
+
#: inc/settings.php:215
|
170 |
+
#: sections/llorix_one_lite_happy_customers_section.php:14
|
171 |
+
#: sections/llorix_one_lite_happy_customers_section.php:15
|
172 |
+
#: sections/llorix_one_lite_happy_customers_section.php:16
|
173 |
+
msgid "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."
|
174 |
+
msgstr ""
|
175 |
+
|
176 |
+
#: inc/settings.php:220
|
177 |
+
msgid "Add new testimonial"
|
178 |
+
msgstr ""
|
179 |
+
|
180 |
+
#: sections/llorix_one_lite_happy_customers_section.php:26
|
181 |
+
#: sections/llorix_one_lite_happy_customers_section.php:146
|
182 |
+
msgid "Testimonials"
|
183 |
+
msgstr ""
|
184 |
+
|
185 |
+
#: sections/llorix_one_lite_our_services_section.php:26
|
186 |
+
#: sections/llorix_one_lite_our_services_section.php:156
|
187 |
+
msgid "Services"
|
188 |
+
msgstr ""
|
189 |
+
|
190 |
+
#: sections/llorix_one_lite_our_services_section.php:98
|
191 |
+
#: sections/llorix_one_lite_our_services_section.php:102
|
192 |
+
#: sections/llorix_one_lite_our_services_section.php:110
|
193 |
+
#: sections/llorix_one_lite_our_services_section.php:228
|
194 |
+
#: sections/llorix_one_lite_our_services_section.php:232
|
195 |
+
#: sections/llorix_one_lite_our_services_section.php:240
|
196 |
+
msgid "Featured Image"
|
197 |
+
msgstr ""
|
198 |
+
|
199 |
+
#: sections/llorix_one_lite_our_team_section.php:28
|
200 |
+
#: sections/llorix_one_lite_our_team_section.php:31
|
201 |
+
#: sections/llorix_one_lite_our_team_section.php:130
|
202 |
+
#: sections/llorix_one_lite_our_team_section.php:133
|
203 |
+
msgid "Team"
|
204 |
+
msgstr ""
|
205 |
+
|
206 |
+
#: sections/llorix_one_lite_our_team_section.php:75
|
207 |
+
#: sections/llorix_one_lite_our_team_section.php:79
|
208 |
+
#: sections/llorix_one_lite_our_team_section.php:177
|
209 |
+
#: sections/llorix_one_lite_our_team_section.php:181
|
210 |
+
msgid "Avatar"
|
211 |
+
msgstr ""
|
212 |
+
|
llorix-one-companion.php
CHANGED
@@ -3,9 +3,10 @@
|
|
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.
|
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
|
@@ -47,7 +48,7 @@ function llorix_one_companion_sections() {
|
|
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 |
}
|
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.3
|
7 |
Author: Themeisle
|
8 |
Author URI: http://themeisle.com
|
9 |
+
Text Domain: llorix-one-companion
|
10 |
Domain Path: /languages
|
11 |
License: GPLv2
|
12 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
48 |
add_action( 'plugins_loaded', 'llorix_one_companion_load_textdomain' );
|
49 |
|
50 |
function llorix_one_companion_load_textdomain() {
|
51 |
+
load_plugin_textdomain( 'llorix-one-companion', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
|
52 |
|
53 |
add_filter('llorix_one_companion_sections_filter', 'llorix_one_companion_sections');
|
54 |
}
|
sections/llorix_one_lite_happy_customers_section.php
CHANGED
@@ -3,149 +3,261 @@
|
|
3 |
============================== -->
|
4 |
<?php
|
5 |
global $wp_customize;
|
6 |
-
|
7 |
-
$
|
|
|
|
|
|
|
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 |
-
|
19 |
-
?>
|
20 |
-
|
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 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
|
60 |
-
|
61 |
-
|
62 |
-
|
|
|
|
|
|
|
63 |
} else {
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
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 |
-
|
79 |
?>
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
|
|
|
|
|
|
|
|
91 |
|
92 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
?>
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
} else {
|
99 |
-
echo
|
100 |
}
|
101 |
-
|
102 |
-
|
|
|
|
|
|
|
|
|
|
|
103 |
<?php
|
104 |
-
|
105 |
-
|
106 |
-
if(!empty($llorix_one_lite_testimonial->text)){
|
107 |
?>
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
<?php
|
118 |
-
|
119 |
?>
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
</div>
|
125 |
-
</div><!-- .testimonials-box -->
|
126 |
-
<?php
|
127 |
}
|
|
|
128 |
}
|
129 |
-
|
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 |
-
</
|
149 |
-
|
150 |
-
|
151 |
-
}
|
|
3 |
============================== -->
|
4 |
<?php
|
5 |
global $wp_customize;
|
6 |
+
|
7 |
+
$llorix_one_lite_happy_customers_show = get_theme_mod('llorix_one_lite_happy_customers_show');
|
8 |
+
|
9 |
+
$llorix_one_lite_happy_customers_title = get_theme_mod('llorix_one_lite_happy_customers_title',esc_html__('Happy Customers','llorix-one-companion'));
|
10 |
+
$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-companion'));
|
11 |
$llorix_one_lite_testimonials_content = get_theme_mod('llorix_one_lite_testimonials_content',
|
12 |
json_encode(
|
13 |
array(
|
14 |
+
array('image_url' => llorix_one_lite_get_file('/images/clients/1.jpg'),'title' => esc_html__('Happy Customer','llorix-one-companion'),'subtitle' => esc_html__('Lorem ipsum','llorix-one-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-one-companion')),
|
15 |
+
array('image_url' => llorix_one_lite_get_file('/images/clients/2.jpg'),'title' => esc_html__('Happy Customer','llorix-one-companion'),'subtitle' => esc_html__('Lorem ipsum','llorix-one-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-one-companion')),
|
16 |
+
array('image_url' => llorix_one_lite_get_file('/images/clients/3.jpg'),'title' => esc_html__('Happy Customer','llorix-one-companion'),'subtitle' => esc_html__('Lorem ipsum','llorix-one-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-one-companion'))
|
17 |
)
|
18 |
)
|
19 |
);
|
20 |
+
|
21 |
+
/* If section is not disabled */
|
22 |
+
if( isset($llorix_one_lite_happy_customers_show) && $llorix_one_lite_happy_customers_show != 1 ) {
|
23 |
|
24 |
+
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) ){
|
25 |
+
?>
|
26 |
+
<section class="testimonials" id="customers" role="region" aria-label="<?php esc_html_e('Testimonials','llorix-one-companion') ?>">
|
27 |
+
<div class="section-overlay-layer">
|
28 |
+
<div class="container">
|
29 |
|
30 |
+
<!-- SECTION HEADER -->
|
31 |
+
<?php
|
32 |
+
if(!empty($llorix_one_lite_happy_customers_title) || !empty($llorix_one_lite_happy_customers_subtitle)){
|
33 |
+
?>
|
34 |
+
<div class="section-header">
|
35 |
+
<?php
|
36 |
+
if( !empty($llorix_one_lite_happy_customers_title) ){
|
37 |
+
echo '<h2 class="dark-text">'.esc_attr($llorix_one_lite_happy_customers_title).'</h2><div class="colored-line"></div>';
|
38 |
+
} elseif ( isset( $wp_customize ) ) {
|
39 |
+
echo '<h2 class="dark-text llorix_one_lite_only_customizer"></h2><div class="colored-line llorix_one_lite_only_customizer"></div>';
|
40 |
+
}
|
41 |
|
42 |
+
if( !empty($llorix_one_lite_happy_customers_subtitle) ){
|
43 |
+
echo '<div class="sub-heading">'.esc_attr($llorix_one_lite_happy_customers_subtitle).'</div>';
|
44 |
+
} elseif ( isset( $wp_customize ) ) {
|
45 |
+
echo '<div class="sub-heading llorix_one_lite_only_customizer"></div>';
|
46 |
+
}
|
47 |
+
?>
|
48 |
+
</div>
|
49 |
+
<?php
|
50 |
+
}
|
51 |
|
52 |
|
53 |
+
if(!empty($llorix_one_lite_testimonials_content)) {
|
54 |
+
echo '<div id="happy_customers_wrap" class="testimonials-wrap">';
|
55 |
+
$llorix_one_lite_testimonials_content_decoded = json_decode($llorix_one_lite_testimonials_content);
|
56 |
+
foreach($llorix_one_lite_testimonials_content_decoded as $llorix_one_lite_testimonial){
|
57 |
+
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) ){
|
58 |
+
?>
|
59 |
+
<!-- SINGLE FEEDBACK -->
|
60 |
+
<div class="testimonials-box">
|
61 |
+
<div class="feedback border-bottom-hover">
|
62 |
+
<div class="pic-container">
|
63 |
+
<div class="pic-container-inner">
|
64 |
+
<?php
|
65 |
|
66 |
+
if( !empty($llorix_one_lite_testimonial->image_url) ){
|
67 |
+
if(!empty($llorix_one_lite_testimonial->title)){
|
68 |
+
echo '<img src="'.esc_url($llorix_one_lite_testimonial->image_url).'" alt="'.$llorix_one_lite_testimonial->title.'">';
|
69 |
+
} else {
|
70 |
+
echo '<img src="'.esc_url($llorix_one_lite_testimonial->image_url).'" alt="'.esc_html('Avatar','llorix-one-companion').'">';
|
71 |
+
}
|
72 |
} else {
|
73 |
+
$default_image = llorix_one_lite_lite_get_file('/images/clients/client-no-image.jpg');
|
74 |
+
echo '<img src="'.esc_url($default_image).'" alt="'.esc_html('Avatar','llorix-one-companion').'">';
|
75 |
+
}
|
76 |
+
?>
|
77 |
+
</div>
|
|
|
|
|
78 |
</div>
|
|
|
|
|
|
|
|
|
|
|
79 |
<?php
|
80 |
+
if(!empty($llorix_one_lite_testimonial->title) || !empty($llorix_one_lite_testimonial->subtitle) || !empty($llorix_one_lite_testimonial->text)) {
|
81 |
?>
|
82 |
+
<div class="feedback-text-wrap">
|
83 |
+
<?php
|
84 |
+
if(!empty($llorix_one_lite_testimonial->title)){
|
85 |
+
?>
|
86 |
+
<h5 class="colored-text">
|
87 |
+
<?php
|
88 |
+
if(function_exists('icl_t')){
|
89 |
+
echo icl_t('Testimonials',$llorix_one_lite_testimonial->id.'_testimonials_title',esc_attr($llorix_one_lite_testimonial->title));
|
90 |
+
} else {
|
91 |
+
echo esc_attr($llorix_one_lite_testimonial->title);
|
92 |
+
}
|
93 |
+
?>
|
94 |
+
</h5>
|
95 |
+
<?php
|
96 |
+
}
|
97 |
|
98 |
+
if(!empty($llorix_one_lite_testimonial->subtitle)){
|
99 |
+
?>
|
100 |
+
<div class="small-text">
|
101 |
+
<?php
|
102 |
+
if(function_exists('icl_t')){
|
103 |
+
echo icl_t('Testimonials',$llorix_one_lite_testimonial->id.'_testimonials_subtitle',esc_attr($llorix_one_lite_testimonial->subtitle));
|
104 |
+
} else {
|
105 |
+
echo esc_attr($llorix_one_lite_testimonial->subtitle);
|
106 |
+
}
|
107 |
+
?>
|
108 |
+
</div>
|
109 |
+
<?php
|
110 |
+
}
|
111 |
+
|
112 |
+
if(!empty($llorix_one_lite_testimonial->text)){
|
113 |
+
?>
|
114 |
+
<p>
|
115 |
+
<?php
|
116 |
+
if(function_exists('icl_t')){
|
117 |
+
echo icl_t('Testimonials',$llorix_one_lite_testimonial->id.'_testimonials_text',html_entity_decode($llorix_one_lite_testimonial->text));
|
118 |
+
} else {
|
119 |
+
echo html_entity_decode($llorix_one_lite_testimonial->text);
|
120 |
+
}
|
121 |
+
?>
|
122 |
+
</p>
|
123 |
+
<?php
|
124 |
+
}
|
125 |
+
?>
|
126 |
+
</div>
|
127 |
+
<?php
|
128 |
+
}
|
129 |
?>
|
130 |
+
</div>
|
131 |
+
</div><!-- .testimonials-box -->
|
132 |
+
<?php
|
133 |
+
}
|
134 |
+
}
|
135 |
+
echo '</div>';
|
136 |
+
}
|
137 |
+
?>
|
138 |
+
</div>
|
139 |
+
</div>
|
140 |
+
</section><!-- customers -->
|
141 |
+
<?php
|
142 |
+
}
|
143 |
+
/* If section is disabled, but we are in Customize, display section with class llorix_one_lite_only_customizer */
|
144 |
+
} elseif( isset( $wp_customize ) ) {
|
145 |
+
?>
|
146 |
+
<section class="testimonials llorix_one_lite_only_customizer" id="customers" role="region" aria-label="<?php esc_html_e('Testimonials','llorix-one-companion') ?>">
|
147 |
+
<div class="section-overlay-layer">
|
148 |
+
<div class="container">
|
149 |
+
|
150 |
+
<!-- SECTION HEADER -->
|
151 |
+
<?php
|
152 |
+
if(!empty($llorix_one_lite_happy_customers_title) || !empty($llorix_one_lite_happy_customers_subtitle)){
|
153 |
+
?>
|
154 |
+
<div class="section-header">
|
155 |
+
<?php
|
156 |
+
if( !empty($llorix_one_lite_happy_customers_title) ){
|
157 |
+
echo '<h2 class="dark-text">'.esc_attr($llorix_one_lite_happy_customers_title).'</h2><div class="colored-line"></div>';
|
158 |
+
} elseif ( isset( $wp_customize ) ) {
|
159 |
+
echo '<h2 class="dark-text llorix_one_lite_only_customizer"></h2><div class="colored-line llorix_one_lite_only_customizer"></div>';
|
160 |
+
}
|
161 |
+
|
162 |
+
if( !empty($llorix_one_lite_happy_customers_subtitle) ){
|
163 |
+
echo '<div class="sub-heading">'.esc_attr($llorix_one_lite_happy_customers_subtitle).'</div>';
|
164 |
+
} elseif ( isset( $wp_customize ) ) {
|
165 |
+
echo '<div class="sub-heading llorix_one_lite_only_customizer"></div>';
|
166 |
+
}
|
167 |
+
?>
|
168 |
+
</div>
|
169 |
+
<?php
|
170 |
+
}
|
171 |
+
|
172 |
+
|
173 |
+
if(!empty($llorix_one_lite_testimonials_content)) {
|
174 |
+
echo '<div id="happy_customers_wrap" class="testimonials-wrap">';
|
175 |
+
$llorix_one_lite_testimonials_content_decoded = json_decode($llorix_one_lite_testimonials_content);
|
176 |
+
foreach($llorix_one_lite_testimonials_content_decoded as $llorix_one_lite_testimonial){
|
177 |
+
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) ){
|
178 |
+
?>
|
179 |
+
<!-- SINGLE FEEDBACK -->
|
180 |
+
<div class="testimonials-box">
|
181 |
+
<div class="feedback border-bottom-hover">
|
182 |
+
<div class="pic-container">
|
183 |
+
<div class="pic-container-inner">
|
184 |
+
<?php
|
185 |
+
|
186 |
+
if( !empty($llorix_one_lite_testimonial->image_url) ){
|
187 |
+
if(!empty($llorix_one_lite_testimonial->title)){
|
188 |
+
echo '<img src="'.esc_url($llorix_one_lite_testimonial->image_url).'" alt="'.$llorix_one_lite_testimonial->title.'">';
|
189 |
} else {
|
190 |
+
echo '<img src="'.esc_url($llorix_one_lite_testimonial->image_url).'" alt="'.esc_html('Avatar','llorix-one-companion').'">';
|
191 |
}
|
192 |
+
} else {
|
193 |
+
$default_image = llorix_one_lite_lite_get_file('/images/clients/client-no-image.jpg');
|
194 |
+
echo '<img src="'.esc_url($default_image).'" alt="'.esc_html('Avatar','llorix-one-companion').'">';
|
195 |
+
}
|
196 |
+
?>
|
197 |
+
</div>
|
198 |
+
</div>
|
199 |
<?php
|
200 |
+
if(!empty($llorix_one_lite_testimonial->title) || !empty($llorix_one_lite_testimonial->subtitle) || !empty($llorix_one_lite_testimonial->text)) {
|
|
|
|
|
201 |
?>
|
202 |
+
<div class="feedback-text-wrap">
|
203 |
+
<?php
|
204 |
+
if(!empty($llorix_one_lite_testimonial->title)){
|
205 |
+
?>
|
206 |
+
<h5 class="colored-text">
|
207 |
+
<?php
|
208 |
+
if(function_exists('icl_t')){
|
209 |
+
echo icl_t('Testimonials',$llorix_one_lite_testimonial->id.'_testimonials_title',esc_attr($llorix_one_lite_testimonial->title));
|
210 |
+
} else {
|
211 |
+
echo esc_attr($llorix_one_lite_testimonial->title);
|
212 |
+
}
|
213 |
+
?>
|
214 |
+
</h5>
|
215 |
+
<?php
|
216 |
+
}
|
217 |
+
|
218 |
+
if(!empty($llorix_one_lite_testimonial->subtitle)){
|
219 |
+
?>
|
220 |
+
<div class="small-text">
|
221 |
+
<?php
|
222 |
+
if(function_exists('icl_t')){
|
223 |
+
echo icl_t('Testimonials',$llorix_one_lite_testimonial->id.'_testimonials_subtitle',esc_attr($llorix_one_lite_testimonial->subtitle));
|
224 |
+
} else {
|
225 |
+
echo esc_attr($llorix_one_lite_testimonial->subtitle);
|
226 |
+
}
|
227 |
+
?>
|
228 |
+
</div>
|
229 |
+
<?php
|
230 |
+
}
|
231 |
+
|
232 |
+
if(!empty($llorix_one_lite_testimonial->text)){
|
233 |
+
?>
|
234 |
+
<p>
|
235 |
+
<?php
|
236 |
+
if(function_exists('icl_t')){
|
237 |
+
echo icl_t('Testimonials',$llorix_one_lite_testimonial->id.'_testimonials_text',html_entity_decode($llorix_one_lite_testimonial->text));
|
238 |
+
} else {
|
239 |
+
echo html_entity_decode($llorix_one_lite_testimonial->text);
|
240 |
+
}
|
241 |
+
?>
|
242 |
+
</p>
|
243 |
+
<?php
|
244 |
+
}
|
245 |
+
?>
|
246 |
+
</div>
|
247 |
<?php
|
248 |
+
}
|
249 |
?>
|
250 |
+
</div>
|
251 |
+
</div><!-- .testimonials-box -->
|
252 |
+
<?php
|
253 |
+
}
|
|
|
|
|
|
|
254 |
}
|
255 |
+
echo '</div>';
|
256 |
}
|
257 |
+
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
258 |
</div>
|
259 |
+
</div>
|
260 |
+
</section><!-- customers -->
|
261 |
+
<?php
|
262 |
+
}
|
263 |
+
?>
|
sections/llorix_one_lite_our_services_section.php
CHANGED
@@ -3,21 +3,157 @@
|
|
3 |
============================== -->
|
4 |
<?php
|
5 |
global $wp_customize;
|
6 |
-
|
7 |
-
$
|
|
|
|
|
|
|
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 |
-
|
19 |
-
?>
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
<div class="section-overlay-layer">
|
22 |
<div class="container">
|
23 |
|
@@ -26,7 +162,7 @@
|
|
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 |
?>
|
@@ -34,7 +170,7 @@
|
|
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 |
?>
|
@@ -89,11 +225,11 @@
|
|
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 |
}
|
@@ -101,7 +237,7 @@
|
|
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 |
}
|
@@ -141,21 +277,6 @@
|
|
141 |
</div>
|
142 |
</div>
|
143 |
</section>
|
144 |
-
<?php
|
145 |
-
}
|
146 |
-
|
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 |
-
?>
|
3 |
============================== -->
|
4 |
<?php
|
5 |
global $wp_customize;
|
6 |
+
|
7 |
+
$llorix_one_lite_our_services_show = get_theme_mod('llorix_one_lite_our_services_show');
|
8 |
+
|
9 |
+
$llorix_one_lite_our_services_title = get_theme_mod('llorix_one_lite_our_services_title',esc_html__('Our Services','llorix-one-companion'));
|
10 |
+
$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-companion'));
|
11 |
$llorix_one_lite_services = get_theme_mod('llorix_one_lite_services_content',
|
12 |
json_encode(
|
13 |
array(
|
14 |
+
array('choice'=>'llorix_one_lite_icon','icon_value' => 'fa-cogs','title' => esc_html__('Lorem Ipsum','llorix-one-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-one-companion')),
|
15 |
+
array('choice'=>'llorix_one_lite_icon','icon_value' => 'fa-bar-chart-o','title' => esc_html__('Lorem Ipsum','llorix-one-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-one-companion')),
|
16 |
+
array('choice'=>'llorix_one_lite_icon','icon_value' => 'fa-globe','title' => esc_html__('Lorem Ipsum','llorix-one-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-one-companion'))
|
17 |
)
|
18 |
)
|
19 |
);
|
20 |
+
|
21 |
+
/* If section is not disabled */
|
22 |
+
if( isset($llorix_one_lite_our_services_show) && $llorix_one_lite_our_services_show != 1 ) {
|
23 |
|
24 |
+
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)){
|
25 |
+
?>
|
26 |
+
<section class="services" id="services" role="region" aria-label="<?php esc_html_e('Services','llorix-one-companion') ?>">
|
27 |
+
<div class="section-overlay-layer">
|
28 |
+
<div class="container">
|
29 |
+
|
30 |
+
<!-- SECTION HEADER -->
|
31 |
+
<div class="section-header">
|
32 |
+
<?php
|
33 |
+
if( !empty($llorix_one_lite_our_services_title) ){
|
34 |
+
echo '<h2 class="dark-text">'.esc_attr($llorix_one_lite_our_services_title).'</h2><div class="colored-line"></div>';
|
35 |
+
} elseif ( isset( $wp_customize ) ) {
|
36 |
+
echo '<h2 class="dark-text llorix_one_lite_only_customizer"></h2><div class="colored-line llorix_one_lite_only_customizer"></div>';
|
37 |
+
}
|
38 |
+
?>
|
39 |
+
|
40 |
+
<?php
|
41 |
+
if( !empty($llorix_one_lite_our_services_subtitle) ){
|
42 |
+
echo '<div class="sub-heading">'.esc_attr($llorix_one_lite_our_services_subtitle).'</div>';
|
43 |
+
} elseif ( isset( $wp_customize ) ) {
|
44 |
+
echo '<div class="sub-heading llorix_one_lite_only_customizer"></div>';
|
45 |
+
}
|
46 |
+
?>
|
47 |
+
</div>
|
48 |
+
|
49 |
+
|
50 |
+
<?php
|
51 |
+
if( !empty($llorix_one_lite_services) ){
|
52 |
+
$llorix_one_lite_services_decoded = json_decode($llorix_one_lite_services);
|
53 |
+
echo '<div id="our_services_wrap" class="services-wrap">';
|
54 |
+
foreach($llorix_one_lite_services_decoded as $llorix_one_lite_service_box){
|
55 |
+
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) ){
|
56 |
+
echo '<div class="service-box"><div class="single-service border-bottom-hover">';
|
57 |
+
if( !empty($llorix_one_lite_service_box->choice) && $llorix_one_lite_service_box->choice !== 'llorix_one_lite_none' ){
|
58 |
+
if ( $llorix_one_lite_service_box->choice == 'llorix_one_lite_icon' ){
|
59 |
+
if( !empty($llorix_one_lite_service_box->icon_value) ) {
|
60 |
+
if( !empty($llorix_one_lite_service_box->link) ){
|
61 |
+
if (function_exists ( 'icl_t' ) && !empty($llorix_one_lite_service_box->id)){
|
62 |
+
|
63 |
+
$llorix_one_lite_link_services = icl_t('Featured Area',$llorix_one_lite_service_box->id.'_services_link',$llorix_one_lite_service_box->link);
|
64 |
+
|
65 |
+
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>';
|
66 |
+
} else {
|
67 |
+
|
68 |
+
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>';
|
69 |
+
}
|
70 |
+
} else {
|
71 |
+
echo '<div class="service-icon colored-text"><i class="fa '.esc_attr($llorix_one_lite_service_box->icon_value).'"></i></div>';
|
72 |
+
}
|
73 |
+
}
|
74 |
+
}
|
75 |
+
if( $llorix_one_lite_service_box->choice == 'llorix_one_lite_image' ){
|
76 |
+
if( !empty($llorix_one_lite_service_box->image_url)){
|
77 |
+
if( !empty($llorix_one_lite_service_box->link) ){
|
78 |
+
if(!empty($llorix_one_lite_service_box->title)){
|
79 |
+
|
80 |
+
if (function_exists ( 'icl_t' ) && !empty($llorix_one_lite_service_box->id)){
|
81 |
+
|
82 |
+
$llorix_one_lite_title_services = icl_t('Featured Area',$llorix_one_lite_service_box->id.'_services_title',$llorix_one_lite_service_box->title);
|
83 |
+
$llorix_one_lite_link_services = icl_t('Featured Area',$llorix_one_lite_service_box->id.'_services_link',$llorix_one_lite_service_box->link);
|
84 |
+
|
85 |
+
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>';
|
86 |
+
|
87 |
+
} else {
|
88 |
+
|
89 |
+
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>';
|
90 |
+
}
|
91 |
+
|
92 |
+
} else {
|
93 |
+
|
94 |
+
if (function_exists ( 'icl_t' ) && !empty($llorix_one_lite_service_box->id)){
|
95 |
+
|
96 |
+
$llorix_one_lite_link_services = icl_t('Featured Area',$llorix_one_lite_service_box->id.'_services_link',$llorix_one_lite_service_box->link);
|
97 |
+
|
98 |
+
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-companion').'"/></a>';
|
99 |
+
|
100 |
+
} else {
|
101 |
+
|
102 |
+
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-companion').'"/></a>';
|
103 |
+
}
|
104 |
+
|
105 |
+
}
|
106 |
+
} else {
|
107 |
+
if(!empty($llorix_one_lite_service_box->title)){
|
108 |
+
echo '<img src="'.esc_url($llorix_one_lite_service_box->image_url).'" alt="'.$llorix_one_lite_service_box->title.'"/>';
|
109 |
+
} else {
|
110 |
+
echo '<img src="'.esc_url($llorix_one_lite_service_box->image_url).'" alt="'.esc_html__('Featured Image','llorix-one-companion').'"/>';
|
111 |
+
}
|
112 |
+
}
|
113 |
+
}
|
114 |
+
}
|
115 |
+
}
|
116 |
+
if(!empty($llorix_one_lite_service_box->title)){
|
117 |
+
if( !empty($llorix_one_lite_service_box->link) ){
|
118 |
+
if (function_exists ( 'icl_t' ) && !empty($llorix_one_lite_service_box->id)){
|
119 |
+
$llorix_one_lite_title_services = icl_t('Featured Area',$llorix_one_lite_service_box->id.'_services_title',$llorix_one_lite_service_box->title);
|
120 |
+
$llorix_one_lite_link_services = icl_t('Featured Area',$llorix_one_lite_service_box->id.'_services_link',$llorix_one_lite_service_box->link);
|
121 |
+
echo '<h3 class="colored-text"><a href="'.esc_url($llorix_one_lite_link_services).'">'.esc_attr($llorix_one_lite_title_services).'</a></h3>';
|
122 |
+
} else {
|
123 |
+
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>';
|
124 |
+
}
|
125 |
+
} else {
|
126 |
+
if (function_exists ( 'icl_t' ) && !empty($llorix_one_lite_service_box->id)){
|
127 |
+
$llorix_one_lite_title_services = icl_t('Featured Area',$llorix_one_lite_service_box->id.'_services_title',$llorix_one_lite_service_box->title);
|
128 |
+
echo '<h3 class="colored-text">'.esc_attr($llorix_one_lite_title_services).'</h3>';
|
129 |
+
} else {
|
130 |
+
echo '<h3 class="colored-text">'.esc_attr($llorix_one_lite_service_box->title).'</h3>';
|
131 |
+
}
|
132 |
+
}
|
133 |
+
}
|
134 |
+
if(!empty($llorix_one_lite_service_box->text)){
|
135 |
+
if (function_exists ( 'icl_t' ) && !empty($llorix_one_lite_service_box->id)){
|
136 |
+
echo '<p>'.icl_t('Featured Area',$llorix_one_lite_service_box->id.'_services_text',html_entity_decode($llorix_one_lite_service_box->text)).'</p>';
|
137 |
+
} else {
|
138 |
+
echo '<p>'.html_entity_decode($llorix_one_lite_service_box->text).'</p>';
|
139 |
+
}
|
140 |
+
}
|
141 |
+
echo '</div></div>';
|
142 |
+
}
|
143 |
+
}
|
144 |
+
echo '</div>';
|
145 |
+
}
|
146 |
+
?>
|
147 |
+
</div>
|
148 |
+
</div>
|
149 |
+
</section>
|
150 |
+
<?php
|
151 |
+
}
|
152 |
+
|
153 |
+
/* If section is disabled, but we are in Customize, display section with class llorix_one_lite_only_customizer */
|
154 |
+
} elseif( isset( $wp_customize ) ) {
|
155 |
+
?>
|
156 |
+
<section class="services llorix_one_lite_only_customizer" id="services" role="region" aria-label="<?php esc_html_e('Services','llorix-one-companion') ?>">
|
157 |
<div class="section-overlay-layer">
|
158 |
<div class="container">
|
159 |
|
162 |
<?php
|
163 |
if( !empty($llorix_one_lite_our_services_title) ){
|
164 |
echo '<h2 class="dark-text">'.esc_attr($llorix_one_lite_our_services_title).'</h2><div class="colored-line"></div>';
|
165 |
+
} elseif ( isset( $wp_customize ) ) {
|
166 |
echo '<h2 class="dark-text llorix_one_lite_only_customizer"></h2><div class="colored-line llorix_one_lite_only_customizer"></div>';
|
167 |
}
|
168 |
?>
|
170 |
<?php
|
171 |
if( !empty($llorix_one_lite_our_services_subtitle) ){
|
172 |
echo '<div class="sub-heading">'.esc_attr($llorix_one_lite_our_services_subtitle).'</div>';
|
173 |
+
} elseif ( isset( $wp_customize ) ) {
|
174 |
echo '<div class="sub-heading llorix_one_lite_only_customizer"></div>';
|
175 |
}
|
176 |
?>
|
225 |
|
226 |
$llorix_one_lite_link_services = icl_t('Featured Area',$llorix_one_lite_service_box->id.'_services_link',$llorix_one_lite_service_box->link);
|
227 |
|
228 |
+
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-companion').'"/></a>';
|
229 |
|
230 |
} else {
|
231 |
|
232 |
+
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-companion').'"/></a>';
|
233 |
}
|
234 |
|
235 |
}
|
237 |
if(!empty($llorix_one_lite_service_box->title)){
|
238 |
echo '<img src="'.esc_url($llorix_one_lite_service_box->image_url).'" alt="'.$llorix_one_lite_service_box->title.'"/>';
|
239 |
} else {
|
240 |
+
echo '<img src="'.esc_url($llorix_one_lite_service_box->image_url).'" alt="'.esc_html__('Featured Image','llorix-one-companion').'"/>';
|
241 |
}
|
242 |
}
|
243 |
}
|
277 |
</div>
|
278 |
</div>
|
279 |
</section>
|
280 |
+
<?php
|
281 |
+
}
|
282 |
+
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sections/llorix_one_lite_our_team_section.php
CHANGED
@@ -3,26 +3,134 @@
|
|
3 |
============================== -->
|
4 |
<?php
|
5 |
global $wp_customize;
|
6 |
-
|
|
|
|
|
|
|
7 |
$llorix_one_lite_our_team_background = get_theme_mod('llorix_one_lite_our_team_background',llorix_one_lite_get_file('/images/background-images/parallax-img/team-img.jpg'));
|
8 |
-
$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'));
|
9 |
$llorix_one_lite_team_content = get_theme_mod('llorix_one_lite_team_content',
|
10 |
json_encode(
|
11 |
array(
|
12 |
-
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')),
|
13 |
-
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')),
|
14 |
-
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'))
|
15 |
)
|
16 |
)
|
17 |
);
|
18 |
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
if( !empty($llorix_one_lite_our_team_background) ) {
|
22 |
-
echo '<section class="team" id="team" role="region" aria-label="'.esc_html__('Team','llorix-one').'" style="background:url('.$llorix_one_lite_our_team_background.');">';
|
23 |
}
|
24 |
else {
|
25 |
-
echo '<section class="team" id="team" role="region" aria-label="'.esc_html__('Team','llorix-one').'">';
|
26 |
}
|
27 |
?>
|
28 |
<div class="section-overlay-layer">
|
@@ -66,11 +174,11 @@
|
|
66 |
if( !empty($llorix_one_lite_team_member->title) ){
|
67 |
echo '<img src="'.esc_url($llorix_one_lite_team_member->image_url).'" alt="'.esc_attr($llorix_one_lite_team_member->title).'">';
|
68 |
} else {
|
69 |
-
echo '<img src="'.esc_url($llorix_one_lite_team_member->image_url).'" alt="'.esc_html__('Avatar','llorix-one').'">';
|
70 |
}
|
71 |
} else {
|
72 |
$default_url = llorix_one_lite_get_file('/images/team/default.png');
|
73 |
-
echo '<img src="'.$default_url.'" alt="'.esc_html__('Avatar','llorix-one').'">';
|
74 |
}
|
75 |
?>
|
76 |
</div><!-- .member-pic -->
|
@@ -114,22 +222,6 @@
|
|
114 |
</div>
|
115 |
</div><!-- container -->
|
116 |
</section><!-- #section9 -->
|
117 |
-
|
118 |
-
|
119 |
-
} else {
|
120 |
-
if( isset( $wp_customize ) ) {
|
121 |
-
?>
|
122 |
-
<section class="team llorix_one_lite_only_customizer" id="team" role="region" aria-label="<?php esc_html_e('Team','llorix-one') ?>">
|
123 |
-
<div class="section-overlay-layer">
|
124 |
-
<div class="container">
|
125 |
-
<div class="section-header">
|
126 |
-
<h2 class="dark-text llorix_one_lite_only_customizer"></h2><div class="colored-line llorix_one_lite_only_customizer"></div>
|
127 |
-
<div class="sub-heading llorix_one_lite_only_customizer"></div>
|
128 |
-
</div>
|
129 |
-
</div>
|
130 |
-
</div>
|
131 |
-
</section>
|
132 |
-
<?php
|
133 |
-
}
|
134 |
-
}
|
135 |
?>
|
3 |
============================== -->
|
4 |
<?php
|
5 |
global $wp_customize;
|
6 |
+
|
7 |
+
$llorix_one_lite_our_team_show = get_theme_mod('llorix_one_lite_our_team_show');
|
8 |
+
|
9 |
+
$llorix_one_lite_our_team_title = get_theme_mod('llorix_one_lite_our_team_title',esc_html__('Our Team','llorix-one-companion'));
|
10 |
$llorix_one_lite_our_team_background = get_theme_mod('llorix_one_lite_our_team_background',llorix_one_lite_get_file('/images/background-images/parallax-img/team-img.jpg'));
|
11 |
+
$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-companion'));
|
12 |
$llorix_one_lite_team_content = get_theme_mod('llorix_one_lite_team_content',
|
13 |
json_encode(
|
14 |
array(
|
15 |
+
array('image_url' => llorix_one_lite_get_file('/images/team/1.jpg'),'title' => esc_html__('Albert Jacobs','llorix-one-companion'),'subtitle' => esc_html__('Founder & CEO','llorix-one-companion')),
|
16 |
+
array('image_url' => llorix_one_lite_get_file('/images/team/2.jpg'),'title' => esc_html__('Tonya Garcia','llorix-one-companion'),'subtitle' => esc_html__('Account Manager','llorix-one-companion')),
|
17 |
+
array('image_url' => llorix_one_lite_get_file('/images/team/3.jpg'),'title' => esc_html__('Linda Guthrie','llorix-one-companion'),'subtitle' => esc_html__('Business Development','llorix-one-companion'))
|
18 |
)
|
19 |
)
|
20 |
);
|
21 |
|
22 |
+
/* If section is not disabled */
|
23 |
+
if( isset($llorix_one_lite_our_team_show) && $llorix_one_lite_our_team_show != 1 ) {
|
24 |
+
|
25 |
+
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) ){
|
26 |
+
|
27 |
+
if( !empty($llorix_one_lite_our_team_background) ) {
|
28 |
+
echo '<section class="team" id="team" role="region" aria-label="'.esc_html__('Team','llorix-one-companion').'" style="background:url('.$llorix_one_lite_our_team_background.');">';
|
29 |
+
}
|
30 |
+
else {
|
31 |
+
echo '<section class="team" id="team" role="region" aria-label="'.esc_html__('Team','llorix-one-companion').'">';
|
32 |
+
}
|
33 |
+
?>
|
34 |
+
<div class="section-overlay-layer">
|
35 |
+
<div class="container">
|
36 |
+
|
37 |
+
<!-- SECTION HEADER -->
|
38 |
+
<?php
|
39 |
+
if( !empty($llorix_one_lite_our_team_title) || !empty($llorix_one_lite_our_team_subtitle)){ ?>
|
40 |
+
<div class="section-header">
|
41 |
+
<?php
|
42 |
+
if( !empty($llorix_one_lite_our_team_title) ){
|
43 |
+
echo '<h2 class="dark-text">'.esc_attr($llorix_one_lite_our_team_title).'</h2><div class="colored-line"></div>';
|
44 |
+
} elseif ( isset( $wp_customize ) ) {
|
45 |
+
echo '<h2 class="dark-text llorix_one_lite_only_customizer"></h2><div class="colored-line llorix_one_lite_only_customizer"></div>';
|
46 |
+
}
|
47 |
+
|
48 |
+
?>
|
49 |
+
|
50 |
+
<?php
|
51 |
+
if( !empty($llorix_one_lite_our_team_subtitle) ){
|
52 |
+
echo '<div class="sub-heading">'.esc_attr($llorix_one_lite_our_team_subtitle).'</div>';
|
53 |
+
} elseif ( isset( $wp_customize ) ) {
|
54 |
+
echo '<div class="sub-heading llorix_one_lite_only_customizer"></div>';
|
55 |
+
}
|
56 |
+
?>
|
57 |
+
</div>
|
58 |
+
<?php
|
59 |
+
}
|
60 |
+
|
61 |
+
|
62 |
+
if(!empty($llorix_one_lite_team_content)){
|
63 |
+
echo '<div class="row team-member-wrap">';
|
64 |
+
$llorix_one_lite_team_decoded = json_decode($llorix_one_lite_team_content);
|
65 |
+
foreach($llorix_one_lite_team_decoded as $llorix_one_lite_team_member){
|
66 |
+
if( !empty($llorix_one_lite_team_member->image_url) || !empty($llorix_one_lite_team_member->title) || !empty($llorix_one_lite_team_member->subtitle)){?>
|
67 |
+
<div class="col-md-3 team-member-box">
|
68 |
+
<div class="team-member border-bottom-hover">
|
69 |
+
<div class="member-pic">
|
70 |
+
<?php
|
71 |
+
if( !empty($llorix_one_lite_team_member->image_url)){
|
72 |
+
if( !empty($llorix_one_lite_team_member->title) ){
|
73 |
+
echo '<img src="'.esc_url($llorix_one_lite_team_member->image_url).'" alt="'.esc_attr($llorix_one_lite_team_member->title).'">';
|
74 |
+
} else {
|
75 |
+
echo '<img src="'.esc_url($llorix_one_lite_team_member->image_url).'" alt="'.esc_html__('Avatar','llorix-one-companion').'">';
|
76 |
+
}
|
77 |
+
} else {
|
78 |
+
$default_url = llorix_one_lite_get_file('/images/team/default.png');
|
79 |
+
echo '<img src="'.$default_url.'" alt="'.esc_html__('Avatar','llorix-one-companion').'">';
|
80 |
+
}
|
81 |
+
?>
|
82 |
+
</div><!-- .member-pic -->
|
83 |
+
|
84 |
+
<?php if(!empty($llorix_one_lite_team_member->title) || !empty($llorix_one_lite_team_member->subtitle)){?>
|
85 |
+
<div class="member-details">
|
86 |
+
<div class="member-details-inner">
|
87 |
+
<?php
|
88 |
+
if( !empty($llorix_one_lite_team_member->title) ){
|
89 |
+
if(function_exists('icl_t')){
|
90 |
+
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>';
|
91 |
+
} else {
|
92 |
+
echo '<h5 class="colored-text">'.esc_attr($llorix_one_lite_team_member->title).'</h5>';
|
93 |
+
}
|
94 |
+
}
|
95 |
+
if( !empty($llorix_one_lite_team_member->subtitle) ){ ?>
|
96 |
+
<div class="small-text">
|
97 |
+
<?php
|
98 |
+
if(function_exists('icl_t')){
|
99 |
+
echo icl_t('Team',$llorix_one_lite_team_member->id.'_team_subtitle',esc_attr($llorix_one_lite_team_member->subtitle));
|
100 |
+
} else {
|
101 |
+
echo esc_attr($llorix_one_lite_team_member->subtitle);
|
102 |
+
}
|
103 |
+
?>
|
104 |
+
</div>
|
105 |
+
|
106 |
+
<?php
|
107 |
+
}
|
108 |
+
?>
|
109 |
+
</div><!-- .member-details-inner -->
|
110 |
+
</div><!-- .member-details -->
|
111 |
+
<?php } ?>
|
112 |
+
</div><!-- .team-member -->
|
113 |
+
</div><!-- .team-member -->
|
114 |
+
<!-- MEMBER -->
|
115 |
+
<?php
|
116 |
+
}
|
117 |
+
}
|
118 |
+
echo '</div>';
|
119 |
+
}?>
|
120 |
+
</div>
|
121 |
+
</div><!-- container -->
|
122 |
+
</section><!-- #section9 -->
|
123 |
+
|
124 |
+
<?php
|
125 |
+
}
|
126 |
+
/* If section is disabled, but we are in Customize, display section with class llorix_one_lite_only_customizer */
|
127 |
+
} elseif( isset( $wp_customize ) ) {
|
128 |
|
129 |
if( !empty($llorix_one_lite_our_team_background) ) {
|
130 |
+
echo '<section class="team llorix_one_lite_only_customizer" id="team" role="region" aria-label="'.esc_html__('Team','llorix-one-companion').'" style="background:url('.$llorix_one_lite_our_team_background.');">';
|
131 |
}
|
132 |
else {
|
133 |
+
echo '<section class="team llorix_one_lite_only_customizer" id="team" role="region" aria-label="'.esc_html__('Team','llorix-one-companion').'">';
|
134 |
}
|
135 |
?>
|
136 |
<div class="section-overlay-layer">
|
174 |
if( !empty($llorix_one_lite_team_member->title) ){
|
175 |
echo '<img src="'.esc_url($llorix_one_lite_team_member->image_url).'" alt="'.esc_attr($llorix_one_lite_team_member->title).'">';
|
176 |
} else {
|
177 |
+
echo '<img src="'.esc_url($llorix_one_lite_team_member->image_url).'" alt="'.esc_html__('Avatar','llorix-one-companion').'">';
|
178 |
}
|
179 |
} else {
|
180 |
$default_url = llorix_one_lite_get_file('/images/team/default.png');
|
181 |
+
echo '<img src="'.$default_url.'" alt="'.esc_html__('Avatar','llorix-one-companion').'">';
|
182 |
}
|
183 |
?>
|
184 |
</div><!-- .member-pic -->
|
222 |
</div>
|
223 |
</div><!-- container -->
|
224 |
</section><!-- #section9 -->
|
225 |
+
<?php
|
226 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
227 |
?>
|