Llorix One Companion - Version 1.0.5

Version Description

Download this release

Release Info

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

Code changes from version 1.0.4 to 1.0.5

Files changed (2) hide show
  1. inc/settings.php +217 -215
  2. llorix-one-companion.php +1 -1
inc/settings.php CHANGED
@@ -2,225 +2,227 @@
2
 
3
  function llorix_one_companion_customize_register( $wp_customize ) {
4
 
5
- /********************************************************/
6
- /****************** SERVICES OPTIONS *******************/
7
- /********************************************************/
8
-
9
- /* SERVICES SECTION */
10
- $wp_customize->add_section( 'llorix_one_lite_services_section' , array(
11
- 'title' => esc_html__( 'Services section', 'llorix-one-companion' ),
12
- 'priority' => 40,
13
- 'panel' => 'llorix_one_lite_front_page_sections'
14
- ));
15
-
16
- /* Services show/hide */
17
- $wp_customize->add_setting( 'llorix_one_lite_our_services_show', array(
18
- 'sanitize_callback' => 'llorix_one_lite_sanitize_text',
19
- 'transport' => 'postMessage'
20
- ));
21
-
22
- $wp_customize->add_control( 'llorix_one_lite_our_services_show', array(
23
- 'type' => 'checkbox',
24
- 'label' => __('Disable the Services section?','llorix-one-companion'),
25
- 'section' => 'llorix_one_lite_services_section',
26
- 'priority' => 1,
27
- ));
28
-
29
- /* Services title */
30
- $wp_customize->add_setting( 'llorix_one_lite_our_services_title', array(
31
- 'default' => esc_html__('Our Services','llorix-one-companion'),
32
- 'sanitize_callback' => 'llorix_one_lite_sanitize_text',
33
- 'transport' => 'postMessage'
34
- ));
35
- $wp_customize->add_control( 'llorix_one_lite_our_services_title', array(
36
- 'label' => esc_html__( 'Main title', 'llorix-one-companion' ),
37
- 'section' => 'llorix_one_lite_services_section',
38
- 'priority' => 10
39
- ));
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
- 'priority' => 20
51
- ));
52
-
53
-
54
- /* Services content */
55
- $wp_customize->add_setting( 'llorix_one_lite_services_content', array(
56
- 'sanitize_callback' => 'llorix_one_lite_sanitize_repeater',
57
- 'default' => json_encode(
58
- array(
59
- 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')),
60
- 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')),
61
- 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'))
 
 
 
62
  )
63
- )
64
- ));
65
- $wp_customize->add_control( new Llorix_One_Lite_General_Repeater( $wp_customize, 'llorix_one_lite_services_content', array(
66
- 'label' => esc_html__('Add new service box','llorix-one-companion'),
67
- 'section' => 'llorix_one_lite_services_section',
68
- 'priority' => 30,
69
- 'llorix_one_lite_image_control' => true,
70
- 'llorix_one_lite_icon_control' => true,
71
- 'llorix_one_lite_title_control' => true,
72
- 'llorix_one_lite_text_control' => true,
73
- 'llorix_one_lite_link_control' => true
74
- ) ) );
75
-
76
- /********************************************************/
77
- /******************* TEAM OPTIONS *********************/
78
- /********************************************************/
79
 
80
- $wp_customize->add_section( 'llorix_one_lite_team_section' , array(
81
- 'title' => esc_html__( 'Team section', 'llorix-one-companion' ),
82
- 'priority' => 60,
83
- 'panel' => 'llorix_one_lite_front_page_sections'
84
- ));
85
-
86
- /* Team show/hide */
87
- $wp_customize->add_setting( 'llorix_one_lite_our_team_show', array(
88
- 'sanitize_callback' => 'llorix_one_lite_sanitize_text',
89
- 'transport' => 'postMessage'
90
- ));
91
-
92
- $wp_customize->add_control( 'llorix_one_lite_our_team_show', array(
93
- 'type' => 'checkbox',
94
- 'label' => __('Disable the Team section?','llorix-one-companion'),
95
- 'section' => 'llorix_one_lite_team_section',
96
- 'priority' => 1,
97
- ));
98
-
99
- /* Team title */
100
- $wp_customize->add_setting( 'llorix_one_lite_our_team_title', array(
101
- 'default' => esc_html__('Our Team','llorix-one-companion'),
102
- 'sanitize_callback' => 'llorix_one_lite_sanitize_text',
103
- 'transport' => 'postMessage'
104
- ));
105
- $wp_customize->add_control( 'llorix_one_lite_our_team_title', array(
106
- 'label' => esc_html__( 'Main title', 'llorix-one-companion' ),
107
- 'section' => 'llorix_one_lite_team_section',
108
- 'priority' => 10,
109
- ));
110
-
111
- /* Team subtitle */
112
- $wp_customize->add_setting( 'llorix_one_lite_our_team_subtitle', array(
113
- 'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit.','llorix-one-companion'),
114
- 'sanitize_callback' => 'llorix_one_lite_sanitize_text',
115
- 'transport' => 'postMessage'
116
- ));
117
- $wp_customize->add_control( 'llorix_one_lite_our_team_subtitle', array(
118
- 'label' => esc_html__( 'Subtitle', 'llorix-one-companion' ),
119
- 'section' => 'llorix_one_lite_team_section',
120
- 'priority' => 20,
121
- ));
122
-
123
- /* Team Background */
124
- $wp_customize->add_setting( 'llorix_one_lite_our_team_background', array(
125
- 'default' => llorix_one_lite_get_file('/images/background-images/parallax-img/team-img.jpg'),
126
- 'sanitize_callback' => 'esc_url',
127
- ));
128
- $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'llorix_one_lite_our_team_background', array(
129
- 'label' => esc_html__( 'Team Background', 'llorix-one-lite' ),
130
- 'section' => 'llorix_one_lite_team_section',
131
- 'priority' => 30
132
- )));
133
-
134
- /* Team content */
135
- $wp_customize->add_setting( 'llorix_one_lite_team_content', array(
136
- 'sanitize_callback' => 'llorix_one_lite_sanitize_repeater',
137
- 'default' => json_encode(
138
- array(
139
- 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')),
140
- 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')),
141
- 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'))
 
142
  )
143
- )
144
- ));
145
- $wp_customize->add_control( new Llorix_One_Lite_General_Repeater( $wp_customize, 'llorix_one_lite_team_content', array(
146
- 'label' => esc_html__('Add new team member','llorix-one-companion'),
147
- 'section' => 'llorix_one_lite_team_section',
148
- 'priority' => 40,
149
- 'llorix_one_lite_image_control' => true,
150
- 'llorix_one_lite_title_control' => true,
151
- 'llorix_one_lite_subtitle_control' => true
152
- ) ) );
153
-
154
- /********************************************************/
155
- /********** TESTIMONIALS OPTIONS ***********************/
156
- /********************************************************/
157
-
158
- $wp_customize->add_section( 'llorix_one_lite_testimonials_section' , array(
159
- 'title' => esc_html__( 'Testimonials section', 'llorix-one-companion' ),
160
- 'priority' => 70,
161
- 'panel' => 'llorix_one_lite_front_page_sections'
162
- ));
163
-
164
- /* Testimonials show/hide */
165
- $wp_customize->add_setting( 'llorix_one_lite_happy_customers_show', array(
166
- 'sanitize_callback' => 'llorix_one_lite_sanitize_text',
167
- 'transport' => 'postMessage'
168
- ));
169
-
170
- $wp_customize->add_control( 'llorix_one_lite_happy_customers_show', array(
171
- 'type' => 'checkbox',
172
- 'label' => __('Disable the Testimonials section?','llorix-one-companion'),
173
- 'section' => 'llorix_one_lite_testimonials_section',
174
- 'priority' => 1,
175
- ));
176
-
177
- /* Testimonials title */
178
- $wp_customize->add_setting( 'llorix_one_lite_happy_customers_title', array(
179
- 'default' => esc_html__('Happy Customers','llorix-one-companion'),
180
- 'sanitize_callback' => 'llorix_one_lite_sanitize_text',
181
- 'transport' => 'postMessage'
182
- ));
183
- $wp_customize->add_control( 'llorix_one_lite_happy_customers_title', array(
184
- 'label' => esc_html__( 'Main title', 'llorix-one-companion' ),
185
- 'section' => 'llorix_one_lite_testimonials_section',
186
- 'priority' => 10,
187
- ));
188
-
189
- /* Testimonials subtitle */
190
- $wp_customize->add_setting( 'llorix_one_lite_happy_customers_subtitle', array(
191
- 'default' => esc_html__('Cloud computing subscription model out of the box proactive solution.','llorix-one-companion'),
192
- 'sanitize_callback' => 'llorix_one_lite_sanitize_text',
193
- 'transport' => 'postMessage'
194
- ));
195
- $wp_customize->add_control( 'llorix_one_lite_happy_customers_subtitle', array(
196
- 'label' => esc_html__( 'Subtitle', 'llorix-one-companion' ),
197
- 'section' => 'llorix_one_lite_testimonials_section',
198
- 'priority' => 20,
199
- ));
200
-
201
-
202
- /* Testimonials content */
203
- $wp_customize->add_setting( 'llorix_one_lite_testimonials_content', array(
204
- 'sanitize_callback' => 'llorix_one_lite_sanitize_repeater',
205
- 'default' => json_encode(
206
- array(
207
- 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')),
208
- 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')),
209
- 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'))
210
  )
211
- )
212
- ));
213
- $wp_customize->add_control( new Llorix_One_Lite_General_Repeater( $wp_customize, 'llorix_one_lite_testimonials_content', array(
214
- 'label' => esc_html__('Add new testimonial','llorix-one-companion'),
215
- 'section' => 'llorix_one_lite_testimonials_section',
216
- 'priority' => 30,
217
- 'llorix_one_lite_image_control' => true,
218
- 'llorix_one_lite_title_control' => true,
219
- 'llorix_one_lite_subtitle_control' => true,
220
- 'llorix_one_lite_text_control' => true
221
- ) ) );
222
-
223
-
224
  }
225
  add_action( 'customize_register', 'llorix_one_companion_customize_register', 999 );
226
 
2
 
3
  function llorix_one_companion_customize_register( $wp_customize ) {
4
 
5
+ if( class_exists('Llorix_One_Lite_General_Repeater') ) {
6
+
7
+ /********************************************************/
8
+ /****************** SERVICES OPTIONS *******************/
9
+ /********************************************************/
10
+
11
+ /* SERVICES SECTION */
12
+ $wp_customize->add_section( 'llorix_one_lite_services_section' , array(
13
+ 'title' => esc_html__( 'Services section', 'llorix-one-companion' ),
14
+ 'priority' => 40,
15
+ 'panel' => 'llorix_one_lite_front_page_sections'
16
+ ));
17
+
18
+ /* Services show/hide */
19
+ $wp_customize->add_setting( 'llorix_one_lite_our_services_show', array(
20
+ 'sanitize_callback' => 'llorix_one_lite_sanitize_text',
21
+ 'transport' => 'postMessage'
22
+ ));
23
+
24
+ $wp_customize->add_control( 'llorix_one_lite_our_services_show', array(
25
+ 'type' => 'checkbox',
26
+ 'label' => __('Disable the Services section?','llorix-one-companion'),
27
+ 'section' => 'llorix_one_lite_services_section',
28
+ 'priority' => 1,
29
+ ));
30
+
31
+ /* Services title */
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
+ 'transport' => 'postMessage'
36
+ ));
37
+ $wp_customize->add_control( 'llorix_one_lite_our_services_title', array(
38
+ 'label' => esc_html__( 'Main title', 'llorix-one-companion' ),
39
+ 'section' => 'llorix_one_lite_services_section',
40
+ 'priority' => 10
41
+ ));
42
+
43
+ /* Services subtitle */
44
+ $wp_customize->add_setting( 'llorix_one_lite_our_services_subtitle', array(
45
+ 'default' => esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit.','llorix-one-companion'),
46
+ 'sanitize_callback' => 'llorix_one_lite_sanitize_text',
47
+ 'transport' => 'postMessage'
48
+ ));
49
+ $wp_customize->add_control( 'llorix_one_lite_our_services_subtitle', array(
50
+ 'label' => esc_html__( 'Subtitle', 'llorix-one-companion' ),
51
+ 'section' => 'llorix_one_lite_services_section',
52
+ 'priority' => 20
53
+ ));
54
+
55
+
56
+ /* Services content */
57
+ $wp_customize->add_setting( 'llorix_one_lite_services_content', array(
58
+ 'sanitize_callback' => 'llorix_one_lite_sanitize_repeater',
59
+ 'default' => json_encode(
60
+ array(
61
+ 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')),
62
+ 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')),
63
+ 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'))
64
+ )
65
  )
66
+ ));
67
+ $wp_customize->add_control( new Llorix_One_Lite_General_Repeater( $wp_customize, 'llorix_one_lite_services_content', array(
68
+ 'label' => esc_html__('Add new service box','llorix-one-companion'),
69
+ 'section' => 'llorix_one_lite_services_section',
70
+ 'priority' => 30,
71
+ 'llorix_one_lite_image_control' => true,
72
+ 'llorix_one_lite_icon_control' => true,
73
+ 'llorix_one_lite_title_control' => true,
74
+ 'llorix_one_lite_text_control' => true,
75
+ 'llorix_one_lite_link_control' => true
76
+ ) ) );
77
+
78
+ /********************************************************/
79
+ /******************* TEAM OPTIONS *********************/
80
+ /********************************************************/
 
81
 
82
+ $wp_customize->add_section( 'llorix_one_lite_team_section' , array(
83
+ 'title' => esc_html__( 'Team section', 'llorix-one-companion' ),
84
+ 'priority' => 60,
85
+ 'panel' => 'llorix_one_lite_front_page_sections'
86
+ ));
87
+
88
+ /* Team show/hide */
89
+ $wp_customize->add_setting( 'llorix_one_lite_our_team_show', array(
90
+ 'sanitize_callback' => 'llorix_one_lite_sanitize_text',
91
+ 'transport' => 'postMessage'
92
+ ));
93
+
94
+ $wp_customize->add_control( 'llorix_one_lite_our_team_show', array(
95
+ 'type' => 'checkbox',
96
+ 'label' => __('Disable the Team section?','llorix-one-companion'),
97
+ 'section' => 'llorix_one_lite_team_section',
98
+ 'priority' => 1,
99
+ ));
100
+
101
+ /* Team title */
102
+ $wp_customize->add_setting( 'llorix_one_lite_our_team_title', array(
103
+ 'default' => esc_html__('Our Team','llorix-one-companion'),
104
+ 'sanitize_callback' => 'llorix_one_lite_sanitize_text',
105
+ 'transport' => 'postMessage'
106
+ ));
107
+ $wp_customize->add_control( 'llorix_one_lite_our_team_title', array(
108
+ 'label' => esc_html__( 'Main title', 'llorix-one-companion' ),
109
+ 'section' => 'llorix_one_lite_team_section',
110
+ 'priority' => 10,
111
+ ));
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
+ 'priority' => 20,
123
+ ));
124
+
125
+ /* Team Background */
126
+ $wp_customize->add_setting( 'llorix_one_lite_our_team_background', array(
127
+ 'default' => llorix_one_lite_get_file('/images/background-images/parallax-img/team-img.jpg'),
128
+ 'sanitize_callback' => 'esc_url',
129
+ ));
130
+ $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'llorix_one_lite_our_team_background', array(
131
+ 'label' => esc_html__( 'Team Background', 'llorix-one-lite' ),
132
+ 'section' => 'llorix_one_lite_team_section',
133
+ 'priority' => 30
134
+ )));
135
+
136
+ /* Team content */
137
+ $wp_customize->add_setting( 'llorix_one_lite_team_content', array(
138
+ 'sanitize_callback' => 'llorix_one_lite_sanitize_repeater',
139
+ 'default' => json_encode(
140
+ array(
141
+ 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')),
142
+ 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')),
143
+ 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'))
144
+ )
145
  )
146
+ ));
147
+ $wp_customize->add_control( new Llorix_One_Lite_General_Repeater( $wp_customize, 'llorix_one_lite_team_content', array(
148
+ 'label' => esc_html__('Add new team member','llorix-one-companion'),
149
+ 'section' => 'llorix_one_lite_team_section',
150
+ 'priority' => 40,
151
+ 'llorix_one_lite_image_control' => true,
152
+ 'llorix_one_lite_title_control' => true,
153
+ 'llorix_one_lite_subtitle_control' => true
154
+ ) ) );
155
+
156
+ /********************************************************/
157
+ /********** TESTIMONIALS OPTIONS ***********************/
158
+ /********************************************************/
159
+
160
+ $wp_customize->add_section( 'llorix_one_lite_testimonials_section' , array(
161
+ 'title' => esc_html__( 'Testimonials section', 'llorix-one-companion' ),
162
+ 'priority' => 70,
163
+ 'panel' => 'llorix_one_lite_front_page_sections'
164
+ ));
165
+
166
+ /* Testimonials show/hide */
167
+ $wp_customize->add_setting( 'llorix_one_lite_happy_customers_show', array(
168
+ 'sanitize_callback' => 'llorix_one_lite_sanitize_text',
169
+ 'transport' => 'postMessage'
170
+ ));
171
+
172
+ $wp_customize->add_control( 'llorix_one_lite_happy_customers_show', array(
173
+ 'type' => 'checkbox',
174
+ 'label' => __('Disable the Testimonials section?','llorix-one-companion'),
175
+ 'section' => 'llorix_one_lite_testimonials_section',
176
+ 'priority' => 1,
177
+ ));
178
+
179
+ /* Testimonials title */
180
+ $wp_customize->add_setting( 'llorix_one_lite_happy_customers_title', array(
181
+ 'default' => esc_html__('Happy Customers','llorix-one-companion'),
182
+ 'sanitize_callback' => 'llorix_one_lite_sanitize_text',
183
+ 'transport' => 'postMessage'
184
+ ));
185
+ $wp_customize->add_control( 'llorix_one_lite_happy_customers_title', array(
186
+ 'label' => esc_html__( 'Main title', 'llorix-one-companion' ),
187
+ 'section' => 'llorix_one_lite_testimonials_section',
188
+ 'priority' => 10,
189
+ ));
190
+
191
+ /* Testimonials subtitle */
192
+ $wp_customize->add_setting( 'llorix_one_lite_happy_customers_subtitle', array(
193
+ 'default' => esc_html__('Cloud computing subscription model out of the box proactive solution.','llorix-one-companion'),
194
+ 'sanitize_callback' => 'llorix_one_lite_sanitize_text',
195
+ 'transport' => 'postMessage'
196
+ ));
197
+ $wp_customize->add_control( 'llorix_one_lite_happy_customers_subtitle', array(
198
+ 'label' => esc_html__( 'Subtitle', 'llorix-one-companion' ),
199
+ 'section' => 'llorix_one_lite_testimonials_section',
200
+ 'priority' => 20,
201
+ ));
202
+
203
+
204
+ /* Testimonials content */
205
+ $wp_customize->add_setting( 'llorix_one_lite_testimonials_content', array(
206
+ 'sanitize_callback' => 'llorix_one_lite_sanitize_repeater',
207
+ 'default' => json_encode(
208
+ array(
209
+ 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')),
210
+ 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')),
211
+ 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'))
212
+ )
213
  )
214
+ ));
215
+ $wp_customize->add_control( new Llorix_One_Lite_General_Repeater( $wp_customize, 'llorix_one_lite_testimonials_content', array(
216
+ 'label' => esc_html__('Add new testimonial','llorix-one-companion'),
217
+ 'section' => 'llorix_one_lite_testimonials_section',
218
+ 'priority' => 30,
219
+ 'llorix_one_lite_image_control' => true,
220
+ 'llorix_one_lite_title_control' => true,
221
+ 'llorix_one_lite_subtitle_control' => true,
222
+ 'llorix_one_lite_text_control' => true
223
+ ) ) );
224
+
225
+ }
 
226
  }
227
  add_action( 'customize_register', 'llorix_one_companion_customize_register', 999 );
228
 
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.0.4
7
  Author: Themeisle
8
  Author URI: http://themeisle.com
9
  Text Domain: llorix-one-companion
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.5
7
  Author: Themeisle
8
  Author URI: http://themeisle.com
9
  Text Domain: llorix-one-companion