Llorix One Companion - Version 1.1.2

Version Description

Download this release

Release Info

Developer themeisle
Plugin Icon 128x128 Llorix One Companion
Version 1.1.2
Comparing to
See all releases

Code changes from version 1.1.1 to 1.1.2

css/style.css CHANGED
@@ -37,7 +37,7 @@
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
  }
37
 
38
  .services-wrap > .service-box {
39
  width: 31.5%;
40
+ margin: 0 1%;
41
  margin-bottom: 30px;
42
  vertical-align: top;
43
  }
inc/settings.php CHANGED
@@ -19,7 +19,6 @@ function llorix_one_companion_customize_register( $wp_customize ) {
19
  /* Services show/hide */
20
  $wp_customize->add_setting( 'llorix_one_lite_our_services_show', array(
21
  'sanitize_callback' => 'llorix_one_lite_sanitize_text',
22
- 'transport' => 'postMessage'
23
  ));
24
 
25
  $wp_customize->add_control( 'llorix_one_lite_our_services_show', array(
@@ -33,7 +32,6 @@ function llorix_one_companion_customize_register( $wp_customize ) {
33
  $wp_customize->add_setting( 'llorix_one_lite_our_services_title', array(
34
  'default' => esc_html__('Our Services','llorix-one-companion'),
35
  'sanitize_callback' => 'llorix_one_lite_sanitize_text',
36
- 'transport' => 'postMessage'
37
  ));
38
  $wp_customize->add_control( 'llorix_one_lite_our_services_title', array(
39
  'label' => esc_html__( 'Main title', 'llorix-one-companion' ),
@@ -45,7 +43,6 @@ function llorix_one_companion_customize_register( $wp_customize ) {
45
  $wp_customize->add_setting( 'llorix_one_lite_our_services_subtitle', array(
46
  'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit.','llorix-one-companion'),
47
  'sanitize_callback' => 'llorix_one_lite_sanitize_text',
48
- 'transport' => 'postMessage'
49
  ));
50
  $wp_customize->add_control( 'llorix_one_lite_our_services_subtitle', array(
51
  'label' => esc_html__( 'Subtitle', 'llorix-one-companion' ),
@@ -55,15 +52,10 @@ function llorix_one_companion_customize_register( $wp_customize ) {
55
 
56
 
57
  /* Services content */
 
58
  $wp_customize->add_setting( 'llorix_one_lite_services_content', array(
59
  'sanitize_callback' => 'llorix_one_lite_sanitize_repeater',
60
- 'default' => json_encode(
61
- array(
62
- 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')),
63
- 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')),
64
- 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'))
65
- )
66
- )
67
  ));
68
  $wp_customize->add_control( new Llorix_One_Lite_General_Repeater( $wp_customize, 'llorix_one_lite_services_content', array(
69
  'label' => esc_html__('Add new service box','llorix-one-companion'),
@@ -90,7 +82,6 @@ function llorix_one_companion_customize_register( $wp_customize ) {
90
  /* Team show/hide */
91
  $wp_customize->add_setting( 'llorix_one_lite_our_team_show', array(
92
  'sanitize_callback' => 'llorix_one_lite_sanitize_text',
93
- 'transport' => 'postMessage'
94
  ));
95
 
96
  $wp_customize->add_control( 'llorix_one_lite_our_team_show', array(
@@ -104,7 +95,6 @@ function llorix_one_companion_customize_register( $wp_customize ) {
104
  $wp_customize->add_setting( 'llorix_one_lite_our_team_title', array(
105
  'default' => esc_html__('Our Team','llorix-one-companion'),
106
  'sanitize_callback' => 'llorix_one_lite_sanitize_text',
107
- 'transport' => 'postMessage'
108
  ));
109
  $wp_customize->add_control( 'llorix_one_lite_our_team_title', array(
110
  'label' => esc_html__( 'Main title', 'llorix-one-companion' ),
@@ -116,7 +106,6 @@ function llorix_one_companion_customize_register( $wp_customize ) {
116
  $wp_customize->add_setting( 'llorix_one_lite_our_team_subtitle', array(
117
  'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit.','llorix-one-companion'),
118
  'sanitize_callback' => 'llorix_one_lite_sanitize_text',
119
- 'transport' => 'postMessage'
120
  ));
121
  $wp_customize->add_control( 'llorix_one_lite_our_team_subtitle', array(
122
  'label' => esc_html__( 'Subtitle', 'llorix-one-companion' ),
@@ -136,16 +125,11 @@ function llorix_one_companion_customize_register( $wp_customize ) {
136
  )));
137
 
138
  /* Team content */
 
139
  $wp_customize->add_setting( 'llorix_one_lite_team_content', array(
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',
@@ -169,7 +153,6 @@ function llorix_one_companion_customize_register( $wp_customize ) {
169
  /* Testimonials show/hide */
170
  $wp_customize->add_setting( 'llorix_one_lite_happy_customers_show', array(
171
  'sanitize_callback' => 'llorix_one_lite_sanitize_text',
172
- 'transport' => 'postMessage'
173
  ));
174
 
175
  $wp_customize->add_control( 'llorix_one_lite_happy_customers_show', array(
@@ -183,7 +166,6 @@ function llorix_one_companion_customize_register( $wp_customize ) {
183
  $wp_customize->add_setting( 'llorix_one_lite_happy_customers_title', array(
184
  'default' => esc_html__('Happy Customers','llorix-one-companion'),
185
  'sanitize_callback' => 'llorix_one_lite_sanitize_text',
186
- 'transport' => 'postMessage'
187
  ));
188
  $wp_customize->add_control( 'llorix_one_lite_happy_customers_title', array(
189
  'label' => esc_html__( 'Main title', 'llorix-one-companion' ),
@@ -195,7 +177,6 @@ function llorix_one_companion_customize_register( $wp_customize ) {
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' ),
@@ -205,15 +186,10 @@ function llorix_one_companion_customize_register( $wp_customize ) {
205
 
206
 
207
  /* Testimonials content */
 
208
  $wp_customize->add_setting( 'llorix_one_lite_testimonials_content', array(
209
  'sanitize_callback' => 'llorix_one_lite_sanitize_repeater',
210
- 'default' => json_encode(
211
- array(
212
- 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')),
213
- 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')),
214
- 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'))
215
- )
216
- )
217
  ));
218
  $wp_customize->add_control( new Llorix_One_Lite_General_Repeater( $wp_customize, 'llorix_one_lite_testimonials_content', array(
219
  'label' => esc_html__('Add new testimonial','llorix-one-companion'),
@@ -228,13 +204,4 @@ function llorix_one_companion_customize_register( $wp_customize ) {
228
  }
229
  }
230
  add_action( 'customize_register', 'llorix_one_companion_customize_register', 999 );
231
-
232
- /**
233
- * Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
234
- */
235
- function llorix_companion_customize_preview_js() {
236
- wp_enqueue_script( 'llorix_companion_customizer', LLORIX_ONE_COMPANION_URL . '/js/llorix-companion-customizer.js', array( 'customize-preview' ), '1.0.2', true );
237
- }
238
- add_action( 'customize_preview_init', 'llorix_companion_customize_preview_js', 10);
239
-
240
  ?>
19
  /* Services show/hide */
20
  $wp_customize->add_setting( 'llorix_one_lite_our_services_show', array(
21
  'sanitize_callback' => 'llorix_one_lite_sanitize_text',
 
22
  ));
23
 
24
  $wp_customize->add_control( 'llorix_one_lite_our_services_show', array(
32
  $wp_customize->add_setting( 'llorix_one_lite_our_services_title', array(
33
  'default' => esc_html__('Our Services','llorix-one-companion'),
34
  'sanitize_callback' => 'llorix_one_lite_sanitize_text',
 
35
  ));
36
  $wp_customize->add_control( 'llorix_one_lite_our_services_title', array(
37
  'label' => esc_html__( 'Main title', 'llorix-one-companion' ),
43
  $wp_customize->add_setting( 'llorix_one_lite_our_services_subtitle', array(
44
  'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit.','llorix-one-companion'),
45
  'sanitize_callback' => 'llorix_one_lite_sanitize_text',
 
46
  ));
47
  $wp_customize->add_control( 'llorix_one_lite_our_services_subtitle', array(
48
  'label' => esc_html__( 'Subtitle', 'llorix-one-companion' ),
52
 
53
 
54
  /* Services content */
55
+ $default = llorix_one_companion_sevices_get_default_content();
56
  $wp_customize->add_setting( 'llorix_one_lite_services_content', array(
57
  'sanitize_callback' => 'llorix_one_lite_sanitize_repeater',
58
+ 'default' => $default,
 
 
 
 
 
 
59
  ));
60
  $wp_customize->add_control( new Llorix_One_Lite_General_Repeater( $wp_customize, 'llorix_one_lite_services_content', array(
61
  'label' => esc_html__('Add new service box','llorix-one-companion'),
82
  /* Team show/hide */
83
  $wp_customize->add_setting( 'llorix_one_lite_our_team_show', array(
84
  'sanitize_callback' => 'llorix_one_lite_sanitize_text',
 
85
  ));
86
 
87
  $wp_customize->add_control( 'llorix_one_lite_our_team_show', array(
95
  $wp_customize->add_setting( 'llorix_one_lite_our_team_title', array(
96
  'default' => esc_html__('Our Team','llorix-one-companion'),
97
  'sanitize_callback' => 'llorix_one_lite_sanitize_text',
 
98
  ));
99
  $wp_customize->add_control( 'llorix_one_lite_our_team_title', array(
100
  'label' => esc_html__( 'Main title', 'llorix-one-companion' ),
106
  $wp_customize->add_setting( 'llorix_one_lite_our_team_subtitle', array(
107
  'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit.','llorix-one-companion'),
108
  'sanitize_callback' => 'llorix_one_lite_sanitize_text',
 
109
  ));
110
  $wp_customize->add_control( 'llorix_one_lite_our_team_subtitle', array(
111
  'label' => esc_html__( 'Subtitle', 'llorix-one-companion' ),
125
  )));
126
 
127
  /* Team content */
128
+ $default = llorix_one_companion_team_get_default_content();
129
  $wp_customize->add_setting( 'llorix_one_lite_team_content', array(
130
  'sanitize_callback' => 'llorix_one_lite_sanitize_repeater',
131
+ 'default' => $default,
132
+ ) );
 
 
 
 
 
 
133
  $wp_customize->add_control( new Llorix_One_Lite_General_Repeater( $wp_customize, 'llorix_one_lite_team_content', array(
134
  'label' => esc_html__('Add new team member','llorix-one-companion'),
135
  'section' => 'llorix_one_lite_team_section',
153
  /* Testimonials show/hide */
154
  $wp_customize->add_setting( 'llorix_one_lite_happy_customers_show', array(
155
  'sanitize_callback' => 'llorix_one_lite_sanitize_text',
 
156
  ));
157
 
158
  $wp_customize->add_control( 'llorix_one_lite_happy_customers_show', array(
166
  $wp_customize->add_setting( 'llorix_one_lite_happy_customers_title', array(
167
  'default' => esc_html__('Happy Customers','llorix-one-companion'),
168
  'sanitize_callback' => 'llorix_one_lite_sanitize_text',
 
169
  ));
170
  $wp_customize->add_control( 'llorix_one_lite_happy_customers_title', array(
171
  'label' => esc_html__( 'Main title', 'llorix-one-companion' ),
177
  $wp_customize->add_setting( 'llorix_one_lite_happy_customers_subtitle', array(
178
  'default' => esc_html__('Cloud computing subscription model out of the box proactive solution.','llorix-one-companion'),
179
  'sanitize_callback' => 'llorix_one_lite_sanitize_text',
 
180
  ));
181
  $wp_customize->add_control( 'llorix_one_lite_happy_customers_subtitle', array(
182
  'label' => esc_html__( 'Subtitle', 'llorix-one-companion' ),
186
 
187
 
188
  /* Testimonials content */
189
+ $default = llorix_one_companion_testimonials_get_default_content();
190
  $wp_customize->add_setting( 'llorix_one_lite_testimonials_content', array(
191
  'sanitize_callback' => 'llorix_one_lite_sanitize_repeater',
192
+ 'default' => $default,
 
 
 
 
 
 
193
  ));
194
  $wp_customize->add_control( new Llorix_One_Lite_General_Repeater( $wp_customize, 'llorix_one_lite_testimonials_content', array(
195
  'label' => esc_html__('Add new testimonial','llorix-one-companion'),
204
  }
205
  }
206
  add_action( 'customize_register', 'llorix_one_companion_customize_register', 999 );
 
 
 
 
 
 
 
 
 
207
  ?>
inc/translations/general.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * General functions for translation.
4
+ *
5
+ * @package llorix-one-lite
6
+ */
7
+
8
+ /**
9
+ * Define Allowed Files to be included.
10
+ */
11
+ function llorix_one_companion_filter_translations( $array ) {
12
+ return array_merge( $array, array(
13
+ 'translations/translations-services-section',
14
+ 'translations/translations-team-section',
15
+ 'translations/translations-testimonials-section',
16
+ ) );
17
+ }
18
+
19
+ add_filter( 'llorix_one_lite_filter_translations', 'llorix_one_companion_filter_translations' );
inc/translations/translations-services-section.php ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Translation functions for services section
4
+ *
5
+ * @package llorix-one-companion
6
+ */
7
+
8
+
9
+ /**
10
+ * Get services section default content.
11
+ */
12
+ function llorix_one_companion_sevices_get_default_content() {
13
+ return json_encode(
14
+ array(
15
+ array(
16
+ 'choice' => 'llorix_one_lite_icon',
17
+ 'icon_value' => 'fa-cogs',
18
+ 'title' => esc_html__( 'Lorem Ipsum', 'llorix-one-companion' ),
19
+ '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' )
20
+ ),
21
+ array(
22
+ 'choice' => 'llorix_one_lite_icon',
23
+ 'icon_value' => 'fa-bar-chart-o',
24
+ 'title' => esc_html__( 'Lorem Ipsum', 'llorix-one-companion' ),
25
+ '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' )
26
+ ),
27
+ array(
28
+ 'choice' => 'llorix_one_lite_icon',
29
+ 'icon_value' => 'fa-globe',
30
+ 'title' => esc_html__( 'Lorem Ipsum', 'llorix-one-companion' ),
31
+ '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' )
32
+ )
33
+ )
34
+ );
35
+ }
36
+
37
+
38
+ /**
39
+ * Register strings for polylang.
40
+ */
41
+ function llorix_one_companion_sevices_register_strings() {
42
+ if ( ! defined( 'POLYLANG_VERSION' ) || ! function_exists( 'llorix_one_lite_pll_string_register_helper' ) ) {
43
+ return;
44
+ }
45
+
46
+ $default = llorix_one_companion_sevices_get_default_content();
47
+ llorix_one_lite_pll_string_register_helper( 'llorix_one_lite_services_content', $default, 'Services section' );
48
+ }
49
+
50
+ add_action( 'after_setup_theme', 'llorix_one_companion_sevices_register_strings', 11 );
inc/translations/translations-team-section.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Translation functions for team section
4
+ *
5
+ * @package llorix-one-companion
6
+ */
7
+
8
+
9
+ /**
10
+ * Get team section default content.
11
+ */
12
+ function llorix_one_companion_team_get_default_content() {
13
+ return json_encode( array(
14
+ array(
15
+ 'image_url' => llorix_one_lite_get_file( '/images/team/1.jpg' ),
16
+ 'title' => esc_html__( 'Albert Jacobs', 'llorix-one-companion' ),
17
+ 'subtitle' => esc_html__( 'Founder & CEO', 'llorix-one-companion' )
18
+ ),
19
+ array(
20
+ 'image_url' => llorix_one_lite_get_file( '/images/team/2.jpg' ),
21
+ 'title' => esc_html__( 'Tonya Garcia', 'llorix-one-companion' ),
22
+ 'subtitle' => esc_html__( 'Account Manager', 'llorix-one-companion' )
23
+ ),
24
+ array(
25
+ 'image_url' => llorix_one_lite_get_file( '/images/team/3.jpg' ),
26
+ 'title' => esc_html__( 'Linda Guthrie', 'llorix-one-companion' ),
27
+ 'subtitle' => esc_html__( 'Business Development', 'llorix-one-companion' )
28
+ )
29
+ )
30
+ );
31
+ }
32
+
33
+ /**
34
+ * Register strings for polylang.
35
+ */
36
+ function llorix_one_companion_team_register_strings() {
37
+ if ( ! defined( 'POLYLANG_VERSION' ) || ! function_exists( 'llorix_one_lite_pll_string_register_helper' ) ) {
38
+ return;
39
+ }
40
+
41
+ $default = llorix_one_companion_team_get_default_content();
42
+ llorix_one_lite_pll_string_register_helper( 'llorix_one_lite_team_content', $default, 'Team section' );
43
+ }
44
+
45
+ add_action( 'after_setup_theme', 'llorix_one_companion_team_register_strings', 11 );
inc/translations/translations-testimonials-section.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Translation functions for testimonials section
4
+ *
5
+ * @package llorix-one-companion
6
+ */
7
+
8
+
9
+ /**
10
+ * Get testimonials section default content.
11
+ */
12
+ function llorix_one_companion_testimonials_get_default_content() {
13
+ return json_encode( array(
14
+ array(
15
+ 'image_url' => llorix_one_lite_get_file( '/images/clients/1.jpg' ),
16
+ 'title' => esc_html__( 'Happy Customer', 'llorix-one-companion' ),
17
+ 'subtitle' => esc_html__( 'Lorem ipsum', 'llorix-one-companion' ),
18
+ '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' )
19
+ ),
20
+ array(
21
+ 'image_url' => llorix_one_lite_get_file( '/images/clients/2.jpg' ),
22
+ 'title' => esc_html__( 'Happy Customer', 'llorix-one-companion' ),
23
+ 'subtitle' => esc_html__( 'Lorem ipsum', 'llorix-one-companion' ),
24
+ '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' )
25
+ ),
26
+ array(
27
+ 'image_url' => llorix_one_lite_get_file( '/images/clients/3.jpg' ),
28
+ 'title' => esc_html__( 'Happy Customer', 'llorix-one-companion' ),
29
+ 'subtitle' => esc_html__( 'Lorem ipsum', 'llorix-one-companion' ),
30
+ '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' )
31
+ )
32
+ )
33
+ );
34
+ }
35
+
36
+ /**
37
+ * Register strings for polylang.
38
+ */
39
+ function llorix_one_companion_testimonials_register_strings() {
40
+ if ( ! defined( 'POLYLANG_VERSION' ) || ! function_exists( 'llorix_one_lite_pll_string_register_helper' ) ) {
41
+ return;
42
+ }
43
+
44
+ $default = llorix_one_companion_testimonials_get_default_content();
45
+ llorix_one_lite_pll_string_register_helper( 'llorix_one_lite_testimonials_content', $default, 'Testimonials section' );
46
+ }
47
+
48
+ add_action( 'after_setup_theme', 'llorix_one_companion_testimonials_register_strings', 11 );
llorix-one-companion.php CHANGED
@@ -3,7 +3,7 @@
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.1.1
7
  Author: Themeisle
8
  Author URI: http://themeisle.com
9
  Text Domain: llorix-one-companion
@@ -17,13 +17,19 @@ if ( ! function_exists( 'add_action' ) ) {
17
  }
18
 
19
  /* Important constants */
20
- define( 'LLORIX_ONE_COMPANION_VERSION', '1.1.1' );
21
  define( 'LLORIX_ONE_COMPANION_URL', plugin_dir_url( __FILE__ ) );
22
  define( 'LLORIX_ONE_COMPANION_PATH', plugin_dir_path( __FILE__ ) );
23
 
 
 
 
 
 
24
  /* Required helper functions */
25
  include_once( dirname( __FILE__ ) . '/inc/settings.php' );
26
 
 
27
  /* Add new sections in Llorix One */
28
  function llorix_one_companion_sections() {
29
  return array(
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.1.2
7
  Author: Themeisle
8
  Author URI: http://themeisle.com
9
  Text Domain: llorix-one-companion
17
  }
18
 
19
  /* Important constants */
20
+ define( 'LLORIX_ONE_COMPANION_VERSION', '1.1.2' );
21
  define( 'LLORIX_ONE_COMPANION_URL', plugin_dir_url( __FILE__ ) );
22
  define( 'LLORIX_ONE_COMPANION_PATH', plugin_dir_path( __FILE__ ) );
23
 
24
+ /**
25
+ * Require section translations
26
+ */
27
+ require LLORIX_ONE_COMPANION_PATH . 'inc/translations/general.php';
28
+
29
  /* Required helper functions */
30
  include_once( dirname( __FILE__ ) . '/inc/settings.php' );
31
 
32
+
33
  /* Add new sections in Llorix One */
34
  function llorix_one_companion_sections() {
35
  return array(
sections/happy-customers-section.php CHANGED
@@ -2,262 +2,120 @@
2
  SECTION: CUSTOMERS
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_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_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
- ?>
2
  SECTION: CUSTOMERS
3
  ============================== -->
4
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
+ $llorix_one_lite_happy_customers_show = get_theme_mod( 'llorix_one_lite_happy_customers_show' );
7
+ $llorix_one_lite_happy_customers_title = get_theme_mod( 'llorix_one_lite_happy_customers_title', esc_html__( 'Happy Customers', 'llorix-one-companion' ) );
8
+ $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' ) );
9
+ $default = llorix_one_companion_testimonials_get_default_content();
10
+ $llorix_one_lite_testimonials_content = get_theme_mod( 'llorix_one_lite_testimonials_content', $default );
11
+ if ( function_exists( 'llorix_one_lite_general_repeater_is_empty' ) ){
12
+ $content_is_empty = llorix_one_lite_general_repeater_is_empty( $llorix_one_lite_testimonials_content );
13
+ } else {
14
+ $content_is_empty = empty( $llorix_one_lite_testimonials_content );
15
+ }
16
+ $section_is_empty = ! isset( $llorix_one_lite_happy_customers_show ) || $llorix_one_lite_happy_customers_show == 1 || ( empty( $llorix_one_lite_happy_customers_title ) && empty( $llorix_one_lite_happy_customers_subtitle ) && $content_is_empty );
17
+ if( !$section_is_empty) { ?>
18
+ <section class="testimonials <?php if ($section_is_empty) {
19
+ echo 'llorix_one_lite_only_customizer';
20
+ } ?>" id="customers" role="region" aria-label="<?php esc_attr_e('Testimonials', 'llorix-one-companion') ?>">
21
+ <div class="section-overlay-layer">
22
+ <div class="container">
23
+ <!-- SECTION HEADER -->
24
+ <?php
25
+ if (!empty($llorix_one_lite_happy_customers_title) || !empty($llorix_one_lite_happy_customers_subtitle)) { ?>
26
+ <div class="section-header">
27
+ <?php
28
+ if (!empty($llorix_one_lite_happy_customers_title)) { ?>
29
+ <h2 class="dark-text"><?php echo wp_kses_post($llorix_one_lite_happy_customers_title); ?></h2>
30
+ <div class="colored-line"></div>
31
+ <?php
32
+ } elseif (is_customize_preview()) { ?>
33
+ <h2 class="dark-text llorix_one_lite_only_customizer"></h2>
34
+ <div class="colored-line llorix_one_lite_only_customizer"></div>
35
+ <?php
36
+ }
37
 
38
+ if (!empty($llorix_one_lite_happy_customers_subtitle)) { ?>
39
+ <div class="sub-heading"><?php echo wp_kses_post($llorix_one_lite_happy_customers_subtitle); ?></div>
40
+ <?php
41
+ } elseif (is_customize_preview()) { ?>
42
+ <div class="sub-heading llorix_one_lite_only_customizer"></div>
43
+ <?php
44
+ } ?>
45
+ </div>
46
+ <?php
47
+ }
 
48
 
49
+ if (!$content_is_empty) { ?>
50
+ <div id="happy_customers_wrap" class="testimonials-wrap">
51
+ <?php
52
+ $llorix_one_lite_testimonials_content_decoded = json_decode($llorix_one_lite_testimonials_content);
53
+ foreach ($llorix_one_lite_testimonials_content_decoded as $llorix_one_lite_testimonial) {
54
+ $image = !empty($llorix_one_lite_testimonial->image_url) ? apply_filters('llorix_one_lite_translate_single_string', $llorix_one_lite_testimonial->image_url, 'Testimonials section') : '';
55
+ $title = !empty($llorix_one_lite_testimonial->title) ? apply_filters('llorix_one_lite_translate_single_string', $llorix_one_lite_testimonial->title, 'Testimonials section') : '';
56
+ $subtitle = !empty($llorix_one_lite_testimonial->subtitle) ? apply_filters('llorix_one_lite_translate_single_string', $llorix_one_lite_testimonial->subtitle, 'Testimonials section') : '';
57
+ $text = !empty($llorix_one_lite_testimonial->text) ? apply_filters('llorix_one_lite_translate_single_string', $llorix_one_lite_testimonial->text, 'Testimonials section') : '';
58
+ $section_is_empty = empty($image) && empty($title) && empty($subtitle) && empty($text);
59
 
60
+ if (!$section_is_empty) { ?>
61
+ <!-- SINGLE FEEDBACK -->
62
+ <div class="testimonials-box">
63
+ <div class="feedback border-bottom-hover">
64
+ <div class="pic-container">
65
+ <div class="pic-container-inner">
66
+ <?php
67
+ if (!empty($image)) { ?>
68
+ <img src="<?php echo esc_url($image); ?>"
69
+ alt="<?php echo(!empty($title) ? esc_attr($title) : esc_attr('Avatar', 'llorix-one-companion')); ?>">
70
+ <?php
71
+ } else {
72
+ $default_image = llorix_one_lite_get_file('/images/clients/client-no-image.jpg'); ?>
73
+ <img src="<?php echo esc_url($default_image); ?>"
74
+ alt="<?php esc_attr_e('Avatar', 'llorix-one-companion'); ?>">
75
+ <?php
76
+ } ?>
77
+ </div>
78
+ </div>
79
+ <?php
80
+ if (!empty($title) || !empty($subtitle) || !empty($text)) { ?>
81
+ <div class="feedback-text-wrap">
82
+ <?php
83
+ if (!empty($title)) { ?>
84
+ <h5 class="colored-text">
85
+ <?php
86
+ echo wp_kses_post($title); ?>
87
+ </h5>
88
+ <?php
89
+ }
90
 
91
+ if (!empty($subtitle)) { ?>
92
+ <div class="small-text">
93
+ <?php
94
+ echo wp_kses_post($subtitle); ?>
95
+ </div>
96
+ <?php
97
+ }
 
 
 
 
 
98
 
99
+ if (!empty($text)) { ?>
100
+ <p>
101
+ <?php
102
+ echo wp_kses_post($text); ?>
103
+ </p>
104
+ <?php
105
+ } ?>
106
+ </div>
107
+ <?php
108
+ } ?>
109
+ </div>
110
+ </div><!-- .testimonials-box -->
111
+ <?php
112
+ }
113
+ } ?>
114
+ </div>
115
+ <?php
116
+ } ?>
117
+ </div>
118
+ </div>
119
+ </section><!-- customers -->
120
+ <?php
121
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
sections/our-services-section.php CHANGED
@@ -2,281 +2,129 @@
2
  SECTION: SERVICES
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
 
160
- <!-- SECTION HEADER -->
161
- <div class="section-header">
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
- ?>
169
 
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
- ?>
177
- </div>
178
 
 
 
 
 
 
179
 
180
- <?php
181
- if( !empty($llorix_one_lite_services) ){
182
- $llorix_one_lite_services_decoded = json_decode($llorix_one_lite_services);
183
- echo '<div id="our_services_wrap" class="services-wrap">';
184
- foreach($llorix_one_lite_services_decoded as $llorix_one_lite_service_box){
185
- 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) ){
186
- echo '<div class="service-box"><div class="single-service border-bottom-hover">';
187
- if( !empty($llorix_one_lite_service_box->choice) && $llorix_one_lite_service_box->choice !== 'llorix_one_lite_none' ){
188
- if ( $llorix_one_lite_service_box->choice == 'llorix_one_lite_icon' ){
189
- if( !empty($llorix_one_lite_service_box->icon_value) ) {
190
- if( !empty($llorix_one_lite_service_box->link) ){
191
- if (function_exists ( 'icl_t' ) && !empty($llorix_one_lite_service_box->id)){
192
-
193
- $llorix_one_lite_link_services = icl_t('Featured Area',$llorix_one_lite_service_box->id.'_services_link',$llorix_one_lite_service_box->link);
194
-
195
- 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>';
196
- } else {
197
-
198
- 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>';
199
- }
200
- } else {
201
- echo '<div class="service-icon colored-text"><i class="fa '.esc_attr($llorix_one_lite_service_box->icon_value).'"></i></div>';
202
- }
203
- }
204
- }
205
- if( $llorix_one_lite_service_box->choice == 'llorix_one_lite_image' ){
206
- if( !empty($llorix_one_lite_service_box->image_url)){
207
- if( !empty($llorix_one_lite_service_box->link) ){
208
- if(!empty($llorix_one_lite_service_box->title)){
209
-
210
- if (function_exists ( 'icl_t' ) && !empty($llorix_one_lite_service_box->id)){
211
-
212
- $llorix_one_lite_title_services = icl_t('Featured Area',$llorix_one_lite_service_box->id.'_services_title',$llorix_one_lite_service_box->title);
213
- $llorix_one_lite_link_services = icl_t('Featured Area',$llorix_one_lite_service_box->id.'_services_link',$llorix_one_lite_service_box->link);
214
-
215
- 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>';
216
-
217
- } else {
218
-
219
- 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>';
220
- }
221
-
222
- } else {
223
-
224
- if (function_exists ( 'icl_t' ) && !empty($llorix_one_lite_service_box->id)){
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
- }
236
- } else {
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
- }
244
- }
245
- }
246
- if(!empty($llorix_one_lite_service_box->title)){
247
- if( !empty($llorix_one_lite_service_box->link) ){
248
- if (function_exists ( 'icl_t' ) && !empty($llorix_one_lite_service_box->id)){
249
- $llorix_one_lite_title_services = icl_t('Featured Area',$llorix_one_lite_service_box->id.'_services_title',$llorix_one_lite_service_box->title);
250
- $llorix_one_lite_link_services = icl_t('Featured Area',$llorix_one_lite_service_box->id.'_services_link',$llorix_one_lite_service_box->link);
251
- echo '<h3 class="colored-text"><a href="'.esc_url($llorix_one_lite_link_services).'">'.esc_attr($llorix_one_lite_title_services).'</a></h3>';
252
- } else {
253
- 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>';
254
- }
255
- } else {
256
- if (function_exists ( 'icl_t' ) && !empty($llorix_one_lite_service_box->id)){
257
- $llorix_one_lite_title_services = icl_t('Featured Area',$llorix_one_lite_service_box->id.'_services_title',$llorix_one_lite_service_box->title);
258
- echo '<h3 class="colored-text">'.esc_attr($llorix_one_lite_title_services).'</h3>';
259
- } else {
260
- echo '<h3 class="colored-text">'.esc_attr($llorix_one_lite_service_box->title).'</h3>';
261
- }
262
- }
263
- }
264
- if(!empty($llorix_one_lite_service_box->text)){
265
- if (function_exists ( 'icl_t' ) && !empty($llorix_one_lite_service_box->id)){
266
- echo '<p>'.icl_t('Featured Area',$llorix_one_lite_service_box->id.'_services_text',html_entity_decode($llorix_one_lite_service_box->text)).'</p>';
267
- } else {
268
- echo '<p>'.html_entity_decode($llorix_one_lite_service_box->text).'</p>';
269
- }
270
- }
271
- echo '</div></div>';
272
- }
273
- }
274
- echo '</div>';
275
- }
276
- ?>
277
- </div>
278
- </div>
279
- </section>
280
- <?php
281
- }
282
- ?>
2
  SECTION: SERVICES
3
  ============================== -->
4
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
+ $llorix_one_lite_our_services_show = get_theme_mod( 'llorix_one_lite_our_services_show' );
7
+ $llorix_one_lite_our_services_title = get_theme_mod( 'llorix_one_lite_our_services_title', esc_html__( 'Our Services', 'llorix-one-companion' ) );
8
+ $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' ) );
9
+ $default = llorix_one_companion_sevices_get_default_content();
10
+ $llorix_one_lite_services = get_theme_mod( 'llorix_one_lite_services_content', $default );
11
+ if ( function_exists( 'llorix_one_lite_general_repeater_is_empty' ) ){
12
+ $content_is_empty = llorix_one_lite_general_repeater_is_empty( $llorix_one_lite_services );
13
+ } else {
14
+ $content_is_empty = empty( $llorix_one_lite_services );
15
+ }
16
+ $section_is_empty = ! isset( $llorix_one_lite_our_services_show ) || $llorix_one_lite_our_services_show == 1 || ( empty( $llorix_one_lite_our_services_title ) && empty( $llorix_one_lite_our_services_subtitle ) && $content_is_empty );
17
+ if(!$section_is_empty) { ?>
18
 
19
+ <section class="services <?php if ($section_is_empty) {
20
+ echo 'llorix_one_lite_only_customizer';
21
+ } ?>" id="services" role="region" aria-label="<?php esc_html_e('Services', 'llorix-one-companion') ?>">
22
+ <div class="section-overlay-layer">
23
+ <div class="container">
 
 
 
 
24
 
25
+ <!-- SECTION HEADER -->
26
+ <div class="section-header">
27
+ <?php
28
+ if (!empty($llorix_one_lite_our_services_title)) { ?>
29
+ <h2 class="dark-text"><?php echo wp_kses_post($llorix_one_lite_our_services_title); ?></h2>
30
+ <div class="colored-line"></div>
31
+ <?php
32
+ } elseif (is_customize_preview()) { ?>
33
+ <h2 class="dark-text llorix_one_lite_only_customizer"></h2>
34
+ <div class="colored-line llorix_one_lite_only_customizer"></div>
35
+ <?php
36
+ }
37
 
38
+ if (!empty($llorix_one_lite_our_services_subtitle)) { ?>
39
+ <div class="sub-heading"><?php echo wp_kses_post($llorix_one_lite_our_services_subtitle); ?></div>
40
+ <?php
41
+ } elseif (is_customize_preview()) { ?>
42
+ <div class="sub-heading llorix_one_lite_only_customizer"></div>
43
+ <?php
44
+ } ?>
45
+ </div>
46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
 
48
+ <?php
49
+ if (!$content_is_empty) {
50
+ $llorix_one_lite_services_decoded = json_decode($llorix_one_lite_services); ?>
51
+ <div id="our_services_wrap" class="services-wrap">
52
+ <?php
53
+ foreach ($llorix_one_lite_services_decoded as $llorix_one_lite_service_box) {
 
 
 
54
 
55
+ $choice = !empty($llorix_one_lite_service_box->choice) ? $llorix_one_lite_service_box->choice : '';
56
+ $icon = !empty($llorix_one_lite_service_box->icon_value) ? apply_filters('llorix_one_lite_translate_single_string', $llorix_one_lite_service_box->icon_value, 'Services section') : '';
57
+ $image = !empty($llorix_one_lite_service_box->image_url) ? apply_filters('llorix_one_lite_translate_single_string', $llorix_one_lite_service_box->image_url, 'Services section') : '';
58
+ $title = !empty($llorix_one_lite_service_box->title) ? apply_filters('llorix_one_lite_translate_single_string', $llorix_one_lite_service_box->title, 'Services section') : '';
59
+ $text = !empty($llorix_one_lite_service_box->text) ? apply_filters('llorix_one_lite_translate_single_string', $llorix_one_lite_service_box->text, 'Services section') : '';
60
+ $link = !empty($llorix_one_lite_service_box->link) ? apply_filters('llorix_one_lite_translate_single_string', $llorix_one_lite_service_box->link, 'Services section') : '';
61
+ $section_is_empty = (empty($icon) || $icon === 'No Icon' && $choice === 'llorix_one_lite_icon') && (empty($image) && $choice === 'llorix_one_lite_image') && empty($title) && empty($text);
 
62
 
63
+ if (!$section_is_empty) { ?>
64
+ <div class="service-box">
65
+ <div class="single-service border-bottom-hover">
66
+ <?php
67
+ if (!empty($choice) && $choice !== 'llorix_one_lite_none') {
68
 
69
+ if ($choice === 'llorix_one_lite_icon') {
70
+ if (!empty($icon)) {
71
+ if (!empty($link)) { ?>
72
+ <div class="service-icon colored-text">
73
+ <a href="<?php echo esc_url($link); ?>">
74
+ <i class="fa <?php echo esc_attr($icon); ?>"></i>
75
+ </a>
76
+ </div>
77
+ <?php
78
+ } else { ?>
79
+ <div class="service-icon colored-text">
80
+ <i class="fa <?php echo esc_attr($icon); ?>"></i>
81
+ </div>
82
+ <?php
83
+ }
84
+ }
85
+ }
86
+
87
+ if ($choice === 'llorix_one_lite_image') {
88
+ if (!empty($image)) {
89
+ if (!empty($link)) { ?>
90
+ <a href="<?php echo esc_url($link); ?>">
91
+ <img src="<?php echo esc_url($image); ?>" <?php echo(!empty($title) ? 'alt="' . esc_attr($title) . '"' : ''); ?> />
92
+ </a>
93
+ <?php
94
+ } else { ?>
95
+ <img src="<?php echo esc_url($image); ?>" <?php echo(!empty($title) ? 'alt="' . esc_attr($title) . '"' : ''); ?> />
96
+ <?php
97
+ }
98
+ }
99
+ }
100
+ }
101
+
102
+ if (!empty($title)) {
103
+ if (!empty($link)) { ?>
104
+ <h3 class="colored-text">
105
+ <a href="<?php echo esc_url($link); ?>"><?php echo wp_kses_post($title); ?></a>
106
+ </h3>
107
+ <?php
108
+ } else { ?>
109
+ <h3 class="colored-text"><?php echo wp_kses_post($title); ?></h3>
110
+ <?php
111
+ }
112
+ }
113
+
114
+ if (!empty($text)) { ?>
115
+ <p><?php echo wp_kses_post($text); ?></p>
116
+ <?php
117
+ } ?>
118
+ </div>
119
+ </div>
120
+ <?php
121
+ }
122
+ } ?>
123
+ </div>
124
+ <?php
125
+ } ?>
126
+ </div>
127
+ </div>
128
+ </section>
129
+ <?php
130
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
sections/our-team-section.php CHANGED
@@ -2,226 +2,109 @@
2
  SECTION: TEAM
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">
137
- <div class="container">
138
 
139
- <!-- SECTION HEADER -->
140
- <?php
141
- if( !empty($llorix_one_lite_our_team_title) || !empty($llorix_one_lite_our_team_subtitle)){ ?>
142
- <div class="section-header">
143
- <?php
144
- if( !empty($llorix_one_lite_our_team_title) ){
145
- echo '<h2 class="dark-text">'.esc_attr($llorix_one_lite_our_team_title).'</h2><div class="colored-line"></div>';
146
- } elseif ( isset( $wp_customize ) ) {
147
- echo '<h2 class="dark-text llorix_one_lite_only_customizer"></h2><div class="colored-line llorix_one_lite_only_customizer"></div>';
148
- }
149
-
150
- ?>
151
-
152
- <?php
153
- if( !empty($llorix_one_lite_our_team_subtitle) ){
154
- echo '<div class="sub-heading">'.esc_attr($llorix_one_lite_our_team_subtitle).'</div>';
155
- } elseif ( isset( $wp_customize ) ) {
156
- echo '<div class="sub-heading llorix_one_lite_only_customizer"></div>';
157
- }
158
- ?>
159
- </div>
160
- <?php
161
- }
162
-
163
-
164
- if(!empty($llorix_one_lite_team_content)){
165
- echo '<div class="row team-member-wrap">';
166
- $llorix_one_lite_team_decoded = json_decode($llorix_one_lite_team_content);
167
- foreach($llorix_one_lite_team_decoded as $llorix_one_lite_team_member){
168
- if( !empty($llorix_one_lite_team_member->image_url) || !empty($llorix_one_lite_team_member->title) || !empty($llorix_one_lite_team_member->subtitle)){?>
169
- <div class="col-md-3 team-member-box">
170
- <div class="team-member border-bottom-hover">
171
- <div class="member-pic">
172
- <?php
173
- if( !empty($llorix_one_lite_team_member->image_url)){
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 -->
185
-
186
- <?php if(!empty($llorix_one_lite_team_member->title) || !empty($llorix_one_lite_team_member->subtitle)){?>
187
- <div class="member-details">
188
- <div class="member-details-inner">
189
- <?php
190
- if( !empty($llorix_one_lite_team_member->title) ){
191
- if(function_exists('icl_t')){
192
- 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>';
193
- } else {
194
- echo '<h5 class="colored-text">'.esc_attr($llorix_one_lite_team_member->title).'</h5>';
195
- }
196
- }
197
- if( !empty($llorix_one_lite_team_member->subtitle) ){ ?>
198
- <div class="small-text">
199
- <?php
200
- if(function_exists('icl_t')){
201
- echo icl_t('Team',$llorix_one_lite_team_member->id.'_team_subtitle',esc_attr($llorix_one_lite_team_member->subtitle));
202
- } else {
203
- echo esc_attr($llorix_one_lite_team_member->subtitle);
204
- }
205
- ?>
206
- </div>
207
-
208
- <?php
209
- }
210
- ?>
211
- </div><!-- .member-details-inner -->
212
- </div><!-- .member-details -->
213
- <?php } ?>
214
- </div><!-- .team-member -->
215
- </div><!-- .team-member -->
216
- <!-- MEMBER -->
217
- <?php
218
- }
219
- }
220
- echo '</div>';
221
- }?>
222
- </div>
223
- </div><!-- container -->
224
- </section><!-- #section9 -->
225
- <?php
226
- }
227
- ?>
2
  SECTION: TEAM
3
  ============================== -->
4
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
+ $llorix_one_lite_our_team_show = get_theme_mod( 'llorix_one_lite_our_team_show' );
7
+ $llorix_one_lite_our_team_title = get_theme_mod( 'llorix_one_lite_our_team_title', esc_html__( 'Our Team', 'llorix-one-companion' ) );
8
+ $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' ) );
9
+ $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' ) );
10
+ $default = llorix_one_companion_team_get_default_content();
11
+ $llorix_one_lite_team_content = get_theme_mod( 'llorix_one_lite_team_content', $default );
12
+ if ( function_exists( 'llorix_one_lite_general_repeater_is_empty' ) ){
13
+ $content_is_empty = llorix_one_lite_general_repeater_is_empty( $llorix_one_lite_team_content );
14
+ } else {
15
+ $content_is_empty = empty( $llorix_one_lite_team_content );
16
+ }
17
+ $section_is_empty = ! isset( $llorix_one_lite_our_team_show ) || $llorix_one_lite_our_team_show == 1 || ( empty( $llorix_one_lite_our_team_title ) && empty( $llorix_one_lite_our_team_subtitle ) && $content_is_empty );
18
+ if(!$section_is_empty) { ?>
 
19
 
 
 
 
 
 
 
 
 
 
 
20
 
21
+ <section class="team <?php if ($section_is_empty) {
22
+ echo 'llorix_one_lite_only_customizer';
23
+ } ?>" id="team" role="region"
24
+ aria-label="<?php esc_attr_e('Team', 'llorix-one-companion'); ?>" <?php echo !empty($llorix_one_lite_our_team_background) ? 'style="background:url(' . esc_url($llorix_one_lite_our_team_background) . ');"' : ''; ?>>
25
+ <div class="section-overlay-layer">
26
+ <div class="container">
27
+ <!-- SECTION HEADER -->
28
+ <?php
29
+ if (!empty($llorix_one_lite_our_team_title) || !empty($llorix_one_lite_our_team_subtitle)) { ?>
30
+ <div class="section-header">
31
+ <?php
32
+ if (!empty($llorix_one_lite_our_team_title)) { ?>
33
+ <h2 class="dark-text"><?php echo wp_kses_post($llorix_one_lite_our_team_title); ?></h2>
34
+ <div class="colored-line"></div>
35
+ <?php
36
+ } elseif (is_customize_preview()) { ?>
37
+ <h2 class="dark-text llorix_one_lite_only_customizer"></h2>
38
+ <div class="colored-line llorix_one_lite_only_customizer"></div>
39
+ <?php
40
+ }
41
 
42
+ if (!empty($llorix_one_lite_our_team_subtitle)) { ?>
43
+ <div class="sub-heading"><?php echo wp_kses_post($llorix_one_lite_our_team_subtitle); ?></div>
44
+ <?php
45
+ } elseif (is_customize_preview()) { ?>
46
+ <div class="sub-heading llorix_one_lite_only_customizer"></div>
47
+ <?php
48
+ } ?>
49
+ </div>
50
+ <?php
51
+ }
 
52
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
 
54
+ if (!$content_is_empty) { ?>
55
+ <div class="row team-member-wrap">
56
+ <?php
57
+ $llorix_one_lite_team_decoded = json_decode($llorix_one_lite_team_content);
58
+ foreach ($llorix_one_lite_team_decoded as $llorix_one_lite_team_member) {
59
+ $title = !empty($llorix_one_lite_team_member->title) ? apply_filters('llorix_one_lite_translate_single_string', $llorix_one_lite_team_member->title, 'Team section') : '';
60
+ $subtitle = !empty($llorix_one_lite_team_member->subtitle) ? apply_filters('llorix_one_lite_translate_single_string', $llorix_one_lite_team_member->subtitle, 'Team section') : '';
61
+ $image = !empty($llorix_one_lite_team_member->image_url) ? apply_filters('llorix_one_lite_translate_single_string', $llorix_one_lite_team_member->image_url, 'Team section') : '';
62
+ $section_is_empty = empty($image) && empty($title) && empty($subtitle);
63
+ if (!$section_is_empty) { ?>
64
+ <div class="col-md-3 team-member-box">
65
+ <div class="team-member border-bottom-hover">
66
+ <div class="member-pic">
67
+ <?php
68
+ if (!empty($image)) { ?>
69
+ <img src="<?php echo esc_url($image); ?>" <?php echo(!empty($title) ? 'alt="' . esc_attr($title) . '"' : esc_attr__('Avatar', 'llorix-one-companion')); ?>>
70
+ <?php
71
+ } else {
72
+ $default_url = llorix_one_lite_get_file('/images/team/default.png'); ?>
73
+ <img src="<?php echo esc_url($default_url); ?>"
74
+ alt="<?php esc_attr_e('Avatar', 'llorix-one-companion'); ?>">
75
+ <?php
76
+ } ?>
77
+ </div><!-- .member-pic -->
78
 
79
+ <?php
80
+ if (!empty($title) || !empty($subtitle)) { ?>
81
+ <div class="member-details">
82
+ <div class="member-details-inner">
83
+ <?php
84
+ if (!empty($title)) { ?>
85
+ <h5 class="colored-text"> <?php echo wp_kses_post($title); ?></h5>
86
+ <?php
87
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
 
89
+ if (!empty($subtitle)) { ?>
90
+ <div class="small-text"><?php echo wp_kses_post($subtitle); ?></div>
91
+ <?php
92
+ } ?>
93
+ </div><!-- .member-details-inner -->
94
+ </div><!-- .member-details -->
95
+ <?php
96
+ } ?>
97
+ </div><!-- .team-member -->
98
+ </div><!-- .team-member -->
99
+ <!-- MEMBER -->
100
+ <?php
101
+ }
102
+ } ?>
103
+ </div>
104
+ <?php
105
+ } ?>
106
+ </div>
107
+ </div><!-- container -->
108
+ </section><!-- #section9 -->
109
+ <?php
110
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wpml-config.xml ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <wpml-config>
2
+ <admin-texts>
3
+ <key name="theme_mods_llorix-one-lite">
4
+ <key name="llorix_one_lite_our_services_title" />
5
+ <key name="llorix_one_lite_our_services_subtitle" />
6
+ <key name="llorix_one_lite_our_team_title" />
7
+ <key name="llorix_one_lite_our_team_subtitle" />
8
+ <key name="llorix_one_lite_our_team_background" />
9
+ <key name="llorix_one_lite_happy_customers_title" />
10
+ <key name="llorix_one_lite_happy_customers_subtitle" />
11
+ </key>
12
+ </admin-texts>
13
+ </wpml-config>