Version Description
- Tested With WordPress 5.8
- Axtria Theme Functionality Added
Download this release
Release Info
Developer | nayrathemes |
Plugin | Clever Fox |
Version | 6.4 |
Comparing to | |
See all releases |
Code changes from version 6.3 to 6.4
- clever-fox.php +5 -1
- inc/avril/extras.php +218 -0
- inc/axtria/axtria.php +38 -0
- inc/axtria/default-pages/home-page.php +24 -0
- inc/axtria/default-pages/upload-media.php +32 -0
- inc/axtria/default-widgets/default-widget.php +38 -0
- inc/axtria/features/avril-funfact.php +161 -0
- inc/axtria/features/avril-team.php +222 -0
- inc/axtria/images/fun-fact-bg.jpg +0 -0
- inc/axtria/images/logo-2.png +0 -0
- inc/axtria/images/logo.png +0 -0
- inc/axtria/images/team/img01.jpg +0 -0
- inc/axtria/images/team/img02.jpg +0 -0
- inc/axtria/images/team/img03.jpg +0 -0
- inc/axtria/images/team/img04.jpg +0 -0
- inc/axtria/sections/section-funfact.php +47 -0
- inc/axtria/sections/section-team.php +95 -0
- inc/cleverfox-activator.php +6 -0
- readme.txt +6 -2
clever-fox.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Clever Fox
|
4 |
Plugin URI:
|
5 |
Description: Clever Fox plugin to enhance the functionality of free themes made by Nayra Themes. More than 40000+ trusted websites with us. Clever Fox contains all features which are required to create a complete website. See below free themes.
|
6 |
-
Version: 6.
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
@@ -92,6 +92,10 @@ function cleverfox_activate() {
|
|
92 |
require_once('inc/fiona-news/fiona-news.php');
|
93 |
}
|
94 |
|
|
|
|
|
|
|
|
|
95 |
}
|
96 |
add_action( 'init', 'cleverfox_activate' );
|
97 |
|
3 |
Plugin Name: Clever Fox
|
4 |
Plugin URI:
|
5 |
Description: Clever Fox plugin to enhance the functionality of free themes made by Nayra Themes. More than 40000+ trusted websites with us. Clever Fox contains all features which are required to create a complete website. See below free themes.
|
6 |
+
Version: 6.4
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
92 |
require_once('inc/fiona-news/fiona-news.php');
|
93 |
}
|
94 |
|
95 |
+
if( 'Axtria' == $theme->name){
|
96 |
+
require_once('inc/axtria/axtria.php');
|
97 |
+
}
|
98 |
+
|
99 |
}
|
100 |
add_action( 'init', 'cleverfox_activate' );
|
101 |
|
inc/avril/extras.php
CHANGED
@@ -171,3 +171,221 @@ function avril_get_social_icon_default() {
|
|
171 |
)
|
172 |
);
|
173 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
171 |
)
|
172 |
);
|
173 |
}
|
174 |
+
|
175 |
+
|
176 |
+
/*
|
177 |
+
*
|
178 |
+
* Team Default
|
179 |
+
*/
|
180 |
+
function avril_get_team_default() {
|
181 |
+
return apply_filters(
|
182 |
+
'avril_get_team_default', json_encode(
|
183 |
+
array(
|
184 |
+
array(
|
185 |
+
'image_url' => CLEVERFOX_PLUGIN_URL .'inc/axtria/images/team/img01.jpg',
|
186 |
+
'title' => esc_html__( 'Jack Semper ', 'clever-fox' ),
|
187 |
+
'subtitle' => esc_html__( 'Support','clever-fox' ),
|
188 |
+
'text' => esc_html__( 'Many variations of passages of a Lorem Ipsum available alteration.', 'clever-fox' ),
|
189 |
+
'id' => 'customizer_repeater_team_0001',
|
190 |
+
'social_repeater' => json_encode(
|
191 |
+
array(
|
192 |
+
array(
|
193 |
+
'id' => 'customizer-repeater-social-repeater-team_001',
|
194 |
+
'link' => 'facebook.com',
|
195 |
+
'icon' => 'fa-facebook',
|
196 |
+
),
|
197 |
+
array(
|
198 |
+
'id' => 'customizer-repeater-social-repeater-team_003',
|
199 |
+
'link' => 'twitter.com',
|
200 |
+
'icon' => 'fa-twitter',
|
201 |
+
),
|
202 |
+
array(
|
203 |
+
'id' => 'customizer-repeater-social-repeater-team_004',
|
204 |
+
'link' => 'instagram.com',
|
205 |
+
'icon' => 'fa-instagram',
|
206 |
+
),
|
207 |
+
array(
|
208 |
+
'id' => 'customizer-repeater-social-repeater-team_005',
|
209 |
+
'link' => 'linkedin.com',
|
210 |
+
'icon' => 'fa-linkedin',
|
211 |
+
),
|
212 |
+
array(
|
213 |
+
'id' => 'customizer-repeater-social-repeater-team_006',
|
214 |
+
'link' => 'behance.com',
|
215 |
+
'icon' => 'fa-behance',
|
216 |
+
),
|
217 |
+
array(
|
218 |
+
'id' => 'customizer-repeater-social-repeater-team_007',
|
219 |
+
'link' => 'vimeo.com',
|
220 |
+
'icon' => 'fa-vimeo',
|
221 |
+
),
|
222 |
+
)
|
223 |
+
),
|
224 |
+
),
|
225 |
+
array(
|
226 |
+
'image_url' => CLEVERFOX_PLUGIN_URL .'inc/axtria/images/team/img02.jpg',
|
227 |
+
'title' => esc_html__( 'Avano Morgan', 'clever-fox' ),
|
228 |
+
'subtitle' => esc_html__( 'Management', 'clever-fox' ),
|
229 |
+
'text' => esc_html__( 'Many variations of passages of a Lorem Ipsum available alteration.', 'clever-fox' ),
|
230 |
+
'id' => 'customizer_repeater_team_0002',
|
231 |
+
'social_repeater' => json_encode(
|
232 |
+
array(
|
233 |
+
array(
|
234 |
+
'id' => 'customizer-repeater-social-repeater-team_0011',
|
235 |
+
'link' => 'facebook.com',
|
236 |
+
'icon' => 'fa-facebook',
|
237 |
+
),
|
238 |
+
array(
|
239 |
+
'id' => 'customizer-repeater-social-repeater-team_0012',
|
240 |
+
'link' => 'twitter.com',
|
241 |
+
'icon' => 'fa-twitter',
|
242 |
+
),
|
243 |
+
array(
|
244 |
+
'id' => 'customizer-repeater-social-repeater-team_0013',
|
245 |
+
'link' => 'pinterest.com',
|
246 |
+
'icon' => 'fa-instagram',
|
247 |
+
),
|
248 |
+
array(
|
249 |
+
'id' => 'customizer-repeater-social-repeater-team_0014',
|
250 |
+
'link' => 'linkedin.com',
|
251 |
+
'icon' => 'fa-linkedin',
|
252 |
+
),
|
253 |
+
array(
|
254 |
+
'id' => 'customizer-repeater-social-repeater-team_0015',
|
255 |
+
'link' => 'behance.com',
|
256 |
+
'icon' => 'fa-behance',
|
257 |
+
),
|
258 |
+
array(
|
259 |
+
'id' => 'customizer-repeater-social-repeater-team_0016',
|
260 |
+
'link' => 'vimeo.com',
|
261 |
+
'icon' => 'fa-vimeo',
|
262 |
+
),
|
263 |
+
)
|
264 |
+
),
|
265 |
+
),
|
266 |
+
array(
|
267 |
+
'image_url' => CLEVERFOX_PLUGIN_URL .'inc/axtria/images/team/img03.jpg',
|
268 |
+
'title' => esc_html__( 'Philip Wilson', 'clever-fox' ),
|
269 |
+
'subtitle' => esc_html__( 'Marketing', 'clever-fox' ),
|
270 |
+
'text' => esc_html__( 'Many variations of passages of a Lorem Ipsum available alteration.', 'clever-fox' ),
|
271 |
+
'id' => 'customizer_repeater_team_0003',
|
272 |
+
'social_repeater' => json_encode(
|
273 |
+
array(
|
274 |
+
array(
|
275 |
+
'id' => 'customizer-repeater-social-repeater-team_0021',
|
276 |
+
'link' => 'facebook.com',
|
277 |
+
'icon' => 'fa-facebook',
|
278 |
+
),
|
279 |
+
array(
|
280 |
+
'id' => 'customizer-repeater-social-repeater-team_0022',
|
281 |
+
'link' => 'twitter.com',
|
282 |
+
'icon' => 'fa-twitter',
|
283 |
+
),
|
284 |
+
array(
|
285 |
+
'id' => 'customizer-repeater-social-repeater-team_0023',
|
286 |
+
'link' => 'linkedin.com',
|
287 |
+
'icon' => 'fa-instagram',
|
288 |
+
),
|
289 |
+
array(
|
290 |
+
'id' => 'customizer-repeater-social-repeater-team_0024',
|
291 |
+
'link' => 'linkedin.com',
|
292 |
+
'icon' => 'fa-linkedin',
|
293 |
+
),
|
294 |
+
array(
|
295 |
+
'id' => 'customizer-repeater-social-repeater-team_0025',
|
296 |
+
'link' => 'behance.com',
|
297 |
+
'icon' => 'fa-behance',
|
298 |
+
),
|
299 |
+
array(
|
300 |
+
'id' => 'customizer-repeater-social-repeater-team_0026',
|
301 |
+
'link' => 'vimeo.com',
|
302 |
+
'icon' => 'fa-vimeo',
|
303 |
+
),
|
304 |
+
)
|
305 |
+
),
|
306 |
+
),
|
307 |
+
array(
|
308 |
+
'image_url' => CLEVERFOX_PLUGIN_URL .'inc/axtria/images/team/img04.jpg',
|
309 |
+
'title' => esc_html__( 'Amanda Richards', 'clever-fox' ),
|
310 |
+
'subtitle' => esc_html__( 'Founder', 'clever-fox' ),
|
311 |
+
'text' => esc_html__( 'Many variations of passages of a Lorem Ipsum available alteration.', 'clever-fox' ),
|
312 |
+
'id' => 'customizer_repeater_team_0004',
|
313 |
+
'social_repeater' => json_encode(
|
314 |
+
array(
|
315 |
+
array(
|
316 |
+
'id' => 'customizer-repeater-social-repeater-team_0031',
|
317 |
+
'link' => 'facebook.com',
|
318 |
+
'icon' => 'fa-facebook',
|
319 |
+
),
|
320 |
+
array(
|
321 |
+
'id' => 'customizer-repeater-social-repeater-team_0032',
|
322 |
+
'link' => 'twitter.com',
|
323 |
+
'icon' => 'fa-twitter',
|
324 |
+
),
|
325 |
+
array(
|
326 |
+
'id' => 'customizer-repeater-social-repeater-team_0033',
|
327 |
+
'link' => 'linkedin.com',
|
328 |
+
'icon' => 'fa-instagram',
|
329 |
+
),
|
330 |
+
array(
|
331 |
+
'id' => 'customizer-repeater-social-repeater-team_0034',
|
332 |
+
'link' => 'linkedin.com',
|
333 |
+
'icon' => 'fa-linkedin',
|
334 |
+
),
|
335 |
+
array(
|
336 |
+
'id' => 'customizer-repeater-social-repeater-team_0035',
|
337 |
+
'link' => 'behance.com',
|
338 |
+
'icon' => 'fa-behance',
|
339 |
+
),
|
340 |
+
array(
|
341 |
+
'id' => 'customizer-repeater-social-repeater-team_0036',
|
342 |
+
'link' => 'vimeo.com',
|
343 |
+
'icon' => 'fa-vimeo',
|
344 |
+
),
|
345 |
+
)
|
346 |
+
),
|
347 |
+
),
|
348 |
+
)
|
349 |
+
)
|
350 |
+
);
|
351 |
+
}
|
352 |
+
|
353 |
+
|
354 |
+
|
355 |
+
/*
|
356 |
+
*
|
357 |
+
* Funfact Default
|
358 |
+
*/
|
359 |
+
function avril_get_funfact_default() {
|
360 |
+
return apply_filters(
|
361 |
+
'avril_get_funfact_default', json_encode(
|
362 |
+
array(
|
363 |
+
array(
|
364 |
+
'title' => esc_html__( '254', 'clever-fox' ),
|
365 |
+
'text' => esc_html__( 'Expert Consultants', 'clever-fox' ),
|
366 |
+
'icon_value' => 'fa-check-circle-o',
|
367 |
+
'id' => 'customizer_repeater_funfact_001',
|
368 |
+
|
369 |
+
),
|
370 |
+
array(
|
371 |
+
'title' => esc_html__( '807', 'clever-fox' ),
|
372 |
+
'text' => esc_html__( 'Development Hours', 'clever-fox' ),
|
373 |
+
'icon_value' => 'fa-clock-o',
|
374 |
+
'id' => 'customizer_repeater_funfact_002',
|
375 |
+
),
|
376 |
+
array(
|
377 |
+
'title' => esc_html__( '926', 'clever-fox' ),
|
378 |
+
'text' => esc_html__( 'Trusted Clients', 'clever-fox' ),
|
379 |
+
'icon_value' => 'fa-group',
|
380 |
+
'id' => 'customizer_repeater_funfact_003',
|
381 |
+
),
|
382 |
+
array(
|
383 |
+
'title' => esc_html__( '543', 'clever-fox' ),
|
384 |
+
'text' => esc_html__( 'Projects Delivered', 'clever-fox' ),
|
385 |
+
'icon_value' => 'fa-file-movie-o ',
|
386 |
+
'id' => 'customizer_repeater_funfact_004',
|
387 |
+
)
|
388 |
+
)
|
389 |
+
)
|
390 |
+
);
|
391 |
+
}
|
inc/axtria/axtria.php
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @package Avril
|
4 |
+
*/
|
5 |
+
|
6 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/extras.php';
|
7 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/dynamic-style.php';
|
8 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/above-header.php';
|
9 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-header.php';
|
10 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-cta.php';
|
11 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-features.php';
|
12 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-info.php';
|
13 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-service.php';
|
14 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-slider.php';
|
15 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/axtria/features/avril-team.php';
|
16 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/axtria/features/avril-funfact.php';
|
17 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-typography.php';
|
18 |
+
|
19 |
+
if ( ! function_exists( 'cleverfox_avril_frontpage_sections' ) ) :
|
20 |
+
function cleverfox_avril_frontpage_sections() {
|
21 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-slider.php';
|
22 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-info.php';
|
23 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-service.php';
|
24 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-features.php';
|
25 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/axtria/sections/section-team.php';
|
26 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/axtria/sections/section-funfact.php';
|
27 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-cta-2.php';
|
28 |
+
}
|
29 |
+
add_action( 'avril_sections', 'cleverfox_avril_frontpage_sections' );
|
30 |
+
endif;
|
31 |
+
|
32 |
+
function cleverfox_avril_enqueue_scripts() {
|
33 |
+
wp_enqueue_script( 'counterup', CLEVERFOX_PLUGIN_URL .'/inc/assets/js/jquery.counterup.min.js', array('jquery'), false, true);
|
34 |
+
wp_enqueue_style('animate',CLEVERFOX_PLUGIN_URL .'/inc/assets/css/animate.css');
|
35 |
+
wp_enqueue_style('owl-carousel-min',CLEVERFOX_PLUGIN_URL .'/inc/assets/css/owl.carousel.min.css');
|
36 |
+
wp_enqueue_script( 'owl-carousel', CLEVERFOX_PLUGIN_URL . 'inc/assets/js/owl.carousel.min.js', array('jquery'), false, true);
|
37 |
+
}
|
38 |
+
add_action( 'wp_enqueue_scripts', 'cleverfox_avril_enqueue_scripts' );
|
inc/axtria/default-pages/home-page.php
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
//post status and options
|
3 |
+
$post = array(
|
4 |
+
'comment_status' => 'closed',
|
5 |
+
'ping_status' => 'closed' ,
|
6 |
+
'post_author' => 1,
|
7 |
+
'post_date' => date('Y-m-d H:i:s'),
|
8 |
+
'post_name' => 'Home',
|
9 |
+
'post_status' => 'publish' ,
|
10 |
+
'post_title' => 'Home',
|
11 |
+
'post_type' => 'page',
|
12 |
+
);
|
13 |
+
//insert page and save the id
|
14 |
+
$newvalue = wp_insert_post( $post, false );
|
15 |
+
if ( $newvalue && ! is_wp_error( $newvalue ) ){
|
16 |
+
update_post_meta( $newvalue, '_wp_page_template', 'templates/template-homepage.php' );
|
17 |
+
|
18 |
+
// Use a static front page
|
19 |
+
$page = get_page_by_title('Home');
|
20 |
+
update_option( 'show_on_front', 'page' );
|
21 |
+
update_option( 'page_on_front', $page->ID );
|
22 |
+
|
23 |
+
}
|
24 |
+
?>
|
inc/axtria/default-pages/upload-media.php
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$file = CLEVERFOX_PLUGIN_URL .'inc/axtria/images/logo.png';
|
3 |
+
$ImagePath = CLEVERFOX_PLUGIN_URL .'inc/axtria/images';
|
4 |
+
|
5 |
+
$images = array(
|
6 |
+
$ImagePath. '/logo.png',
|
7 |
+
);
|
8 |
+
$parent_post_id = null;
|
9 |
+
foreach($images as $name) {
|
10 |
+
$filename = basename($name);
|
11 |
+
$upload_file = wp_upload_bits($filename, null, file_get_contents($name));
|
12 |
+
if (!$upload_file['error']) {
|
13 |
+
$wp_filetype = wp_check_filetype($filename, null );
|
14 |
+
$attachment = array(
|
15 |
+
'post_mime_type' => $wp_filetype['type'],
|
16 |
+
'post_parent' => $parent_post_id,
|
17 |
+
'post_title' => preg_replace('/\.[^.]+$/', '', $filename),
|
18 |
+
'post_excerpt' => 'avril caption',
|
19 |
+
'post_status' => 'inherit'
|
20 |
+
);
|
21 |
+
$ImageId[] = $attachment_id = wp_insert_attachment( $attachment, $upload_file['file'], $parent_post_id );
|
22 |
+
|
23 |
+
if (!is_wp_error($attachment_id)) {
|
24 |
+
require_once(ABSPATH . "wp-admin" . '/includes/image.php');
|
25 |
+
$attachment_data = wp_generate_attachment_metadata( $attachment_id, $upload_file['file'] );
|
26 |
+
wp_update_attachment_metadata( $attachment_id, $attachment_data );
|
27 |
+
}
|
28 |
+
}
|
29 |
+
|
30 |
+
}
|
31 |
+
|
32 |
+
update_option( 'avril_media_id', $ImageId );
|
inc/axtria/default-widgets/default-widget.php
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$activate = array(
|
3 |
+
'avril-sidebar-primary' => array(
|
4 |
+
'search-1',
|
5 |
+
'recent-posts-1',
|
6 |
+
'archives-1',
|
7 |
+
),
|
8 |
+
'avril-footer-widget-area' => array(
|
9 |
+
'text-1',
|
10 |
+
'categories-1',
|
11 |
+
'archives-1',
|
12 |
+
'search-1',
|
13 |
+
)
|
14 |
+
);
|
15 |
+
/* the default titles will appear */
|
16 |
+
update_option('widget_text', array(
|
17 |
+
1 => array('title' => '',
|
18 |
+
'text'=>'<div class="footer-logo"><img src="'.CLEVERFOX_PLUGIN_URL.'inc/axtria/images/logo-2.png" alt=""></div>
|
19 |
+
<p>There are many variations of dummy passages of Lorem Ipsum a available, but the majority have suffered that is alteration in some that form injected humour or randomised.</p>
|
20 |
+
'),
|
21 |
+
2 => array('title' => 'Recent Posts'),
|
22 |
+
3 => array('title' => 'Categories'),
|
23 |
+
));
|
24 |
+
update_option('widget_categories', array(
|
25 |
+
1 => array('title' => 'Categories'),
|
26 |
+
2 => array('title' => 'Categories')));
|
27 |
+
|
28 |
+
update_option('widget_archives', array(
|
29 |
+
1 => array('title' => 'Archives'),
|
30 |
+
2 => array('title' => 'Archives')));
|
31 |
+
|
32 |
+
update_option('widget_search', array(
|
33 |
+
1 => array('title' => 'Search'),
|
34 |
+
2 => array('title' => 'Search')));
|
35 |
+
|
36 |
+
update_option('sidebars_widgets', $activate);
|
37 |
+
$MediaId = get_option('avril_media_id');
|
38 |
+
set_theme_mod( 'custom_logo', $MediaId[0] );
|
inc/axtria/features/avril-funfact.php
ADDED
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
function cleverfox_avril_funfact_setting( $wp_customize ) {
|
3 |
+
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
4 |
+
/*=========================================
|
5 |
+
Funfact Section
|
6 |
+
=========================================*/
|
7 |
+
$wp_customize->add_section(
|
8 |
+
'funfact_setting', array(
|
9 |
+
'title' => esc_html__( 'Funfact Section', 'clever-fox' ),
|
10 |
+
'priority' => 10,
|
11 |
+
'panel' => 'avril_frontpage_sections',
|
12 |
+
)
|
13 |
+
);
|
14 |
+
|
15 |
+
// Funfact content Section //
|
16 |
+
|
17 |
+
$wp_customize->add_setting(
|
18 |
+
'funfact_content_head'
|
19 |
+
,array(
|
20 |
+
'capability' => 'edit_theme_options',
|
21 |
+
'sanitize_callback' => 'avril_sanitize_text',
|
22 |
+
'priority' => 7,
|
23 |
+
)
|
24 |
+
);
|
25 |
+
|
26 |
+
$wp_customize->add_control(
|
27 |
+
'funfact_content_head',
|
28 |
+
array(
|
29 |
+
'type' => 'hidden',
|
30 |
+
'label' => __('Content','clever-fox'),
|
31 |
+
'section' => 'funfact_setting',
|
32 |
+
)
|
33 |
+
);
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Customizer Repeater for add Funfact
|
37 |
+
*/
|
38 |
+
|
39 |
+
$wp_customize->add_setting( 'funfact_contents',
|
40 |
+
array(
|
41 |
+
'sanitize_callback' => 'avril_repeater_sanitize',
|
42 |
+
'transport' => $selective_refresh,
|
43 |
+
'priority' => 8,
|
44 |
+
'default' => avril_get_funfact_default()
|
45 |
+
)
|
46 |
+
);
|
47 |
+
|
48 |
+
$wp_customize->add_control(
|
49 |
+
new Avril_Repeater( $wp_customize,
|
50 |
+
'funfact_contents',
|
51 |
+
array(
|
52 |
+
'label' => esc_html__('Funfact','clever-fox'),
|
53 |
+
'section' => 'funfact_setting',
|
54 |
+
'add_field_label' => esc_html__( 'Add New Funfact', 'clever-fox' ),
|
55 |
+
'item_name' => esc_html__( 'Funfact', 'clever-fox' ),
|
56 |
+
'customizer_repeater_icon_control' => true,
|
57 |
+
'customizer_repeater_image_control' => true,
|
58 |
+
'customizer_repeater_title_control' => true,
|
59 |
+
'customizer_repeater_text_control' => true,
|
60 |
+
)
|
61 |
+
)
|
62 |
+
);
|
63 |
+
|
64 |
+
|
65 |
+
//Pro feature
|
66 |
+
class Avril_funfact__section_upgrade extends WP_Customize_Control {
|
67 |
+
public function render_content() {
|
68 |
+
?>
|
69 |
+
<a class="customizer_funfact_upgrade_section up-to-pro" href="https://www.nayrathemes.com/avril-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
|
70 |
+
<?php
|
71 |
+
}
|
72 |
+
}
|
73 |
+
|
74 |
+
$wp_customize->add_setting( 'avril_funfact_upgrade_to_pro', array(
|
75 |
+
'capability' => 'edit_theme_options',
|
76 |
+
'sanitize_callback' => 'wp_filter_nohtml_kses',
|
77 |
+
'priority' => 9,
|
78 |
+
));
|
79 |
+
$wp_customize->add_control(
|
80 |
+
new Avril_funfact__section_upgrade(
|
81 |
+
$wp_customize,
|
82 |
+
'avril_funfact_upgrade_to_pro',
|
83 |
+
array(
|
84 |
+
'section' => 'funfact_setting',
|
85 |
+
)
|
86 |
+
)
|
87 |
+
);
|
88 |
+
|
89 |
+
// Funfact Background //
|
90 |
+
$wp_customize->add_setting(
|
91 |
+
'funfact_bg_head'
|
92 |
+
,array(
|
93 |
+
'capability' => 'edit_theme_options',
|
94 |
+
'sanitize_callback' => 'avril_sanitize_text',
|
95 |
+
'priority' => 10,
|
96 |
+
)
|
97 |
+
);
|
98 |
+
|
99 |
+
$wp_customize->add_control(
|
100 |
+
'funfact_bg_head',
|
101 |
+
array(
|
102 |
+
'type' => 'hidden',
|
103 |
+
'label' => __('Background','clever-fox'),
|
104 |
+
'section' => 'funfact_setting',
|
105 |
+
)
|
106 |
+
);
|
107 |
+
|
108 |
+
$wp_customize->add_setting(
|
109 |
+
'funfact_bg_setting' ,
|
110 |
+
array(
|
111 |
+
'default' => CLEVERFOX_PLUGIN_URL .'inc/axtria/images/fun-fact-bg.jpg',
|
112 |
+
'capability' => 'edit_theme_options',
|
113 |
+
'sanitize_callback' => 'avril_sanitize_url',
|
114 |
+
'priority' => 11,
|
115 |
+
)
|
116 |
+
);
|
117 |
+
|
118 |
+
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize , 'funfact_bg_setting' ,
|
119 |
+
array(
|
120 |
+
'label' => __( 'Background Image', 'clever-fox' ),
|
121 |
+
'section' => 'funfact_setting',
|
122 |
+
)
|
123 |
+
));
|
124 |
+
|
125 |
+
$wp_customize->add_setting(
|
126 |
+
'funfact_bg_position' ,
|
127 |
+
array(
|
128 |
+
'default' => 'fixed',
|
129 |
+
'capability' => 'edit_theme_options',
|
130 |
+
'sanitize_callback' => 'avril_sanitize_select',
|
131 |
+
'priority' => 12,
|
132 |
+
)
|
133 |
+
);
|
134 |
+
|
135 |
+
$wp_customize->add_control(
|
136 |
+
'funfact_bg_position' ,
|
137 |
+
array(
|
138 |
+
'label' => __( 'Image Position', 'clever-fox' ),
|
139 |
+
'section' => 'funfact_setting',
|
140 |
+
'type' => 'radio',
|
141 |
+
'choices' =>
|
142 |
+
array(
|
143 |
+
'fixed'=> __( 'Fixed', 'clever-fox' ),
|
144 |
+
'scroll' => __( 'Scroll', 'clever-fox' )
|
145 |
+
)
|
146 |
+
)
|
147 |
+
);
|
148 |
+
}
|
149 |
+
|
150 |
+
add_action( 'customize_register', 'cleverfox_avril_funfact_setting' );
|
151 |
+
|
152 |
+
// service selective refresh
|
153 |
+
function cleverfox_avril_funfact_section_partials( $wp_customize ){
|
154 |
+
|
155 |
+
// Funfact content
|
156 |
+
$wp_customize->selective_refresh->add_partial( 'funfact_contents', array(
|
157 |
+
'selector' => '#funfact-section'
|
158 |
+
) );
|
159 |
+
}
|
160 |
+
|
161 |
+
add_action( 'customize_register', 'cleverfox_avril_funfact_section_partials' );
|
inc/axtria/features/avril-team.php
ADDED
@@ -0,0 +1,222 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
function cleverfox_avril_team_setting( $wp_customize ) {
|
3 |
+
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
4 |
+
/*=========================================
|
5 |
+
Team Section
|
6 |
+
=========================================*/
|
7 |
+
$wp_customize->add_section(
|
8 |
+
'team_setting', array(
|
9 |
+
'title' => esc_html__( 'Team Section', 'clever-fox' ),
|
10 |
+
'priority' => 9,
|
11 |
+
'panel' => 'avril_frontpage_sections',
|
12 |
+
)
|
13 |
+
);
|
14 |
+
|
15 |
+
// Team Header Section //
|
16 |
+
$wp_customize->add_setting(
|
17 |
+
'team_headings'
|
18 |
+
,array(
|
19 |
+
'capability' => 'edit_theme_options',
|
20 |
+
'sanitize_callback' => 'avril_sanitize_text',
|
21 |
+
'priority' => 3,
|
22 |
+
)
|
23 |
+
);
|
24 |
+
|
25 |
+
$wp_customize->add_control(
|
26 |
+
'team_headings',
|
27 |
+
array(
|
28 |
+
'type' => 'hidden',
|
29 |
+
'label' => __('Header','clever-fox'),
|
30 |
+
'section' => 'team_setting',
|
31 |
+
)
|
32 |
+
);
|
33 |
+
|
34 |
+
// Team Title //
|
35 |
+
$wp_customize->add_setting(
|
36 |
+
'team_title',
|
37 |
+
array(
|
38 |
+
'default' => __('Technology from tomorrow','clever-fox'),
|
39 |
+
'capability' => 'edit_theme_options',
|
40 |
+
'sanitize_callback' => 'avril_sanitize_html',
|
41 |
+
'transport' => $selective_refresh,
|
42 |
+
'priority' => 4,
|
43 |
+
)
|
44 |
+
);
|
45 |
+
|
46 |
+
$wp_customize->add_control(
|
47 |
+
'team_title',
|
48 |
+
array(
|
49 |
+
'label' => __('Title','clever-fox'),
|
50 |
+
'section' => 'team_setting',
|
51 |
+
'type' => 'text',
|
52 |
+
)
|
53 |
+
);
|
54 |
+
|
55 |
+
// Team Subtitle //
|
56 |
+
$wp_customize->add_setting(
|
57 |
+
'team_subtitle',
|
58 |
+
array(
|
59 |
+
'default' => __('Outstanding <span class="av-heading animate-7"><span class="av-text-wrapper"><b class="is-show">Team</b> <b>Team</b><b>Team</b></span></span>','clever-fox'),
|
60 |
+
'capability' => 'edit_theme_options',
|
61 |
+
'sanitize_callback' => 'avril_sanitize_html',
|
62 |
+
'priority' => 5,
|
63 |
+
)
|
64 |
+
);
|
65 |
+
|
66 |
+
$wp_customize->add_control(
|
67 |
+
'team_subtitle',
|
68 |
+
array(
|
69 |
+
'label' => __('Subtitle','clever-fox'),
|
70 |
+
'section' => 'team_setting',
|
71 |
+
'type' => 'textarea',
|
72 |
+
)
|
73 |
+
);
|
74 |
+
|
75 |
+
// Team Description //
|
76 |
+
$wp_customize->add_setting(
|
77 |
+
'team_description',
|
78 |
+
array(
|
79 |
+
'default' => __('Lorem Ipsum is simply dummy of printing and typesetting and industry. Lorem Ipsum been.','clever-fox'),
|
80 |
+
'capability' => 'edit_theme_options',
|
81 |
+
'sanitize_callback' => 'avril_sanitize_text',
|
82 |
+
'transport' => $selective_refresh,
|
83 |
+
'priority' => 6,
|
84 |
+
)
|
85 |
+
);
|
86 |
+
|
87 |
+
$wp_customize->add_control(
|
88 |
+
'team_description',
|
89 |
+
array(
|
90 |
+
'label' => __('Description','clever-fox'),
|
91 |
+
'section' => 'team_setting',
|
92 |
+
'type' => 'textarea',
|
93 |
+
)
|
94 |
+
);
|
95 |
+
|
96 |
+
// Team content Section //
|
97 |
+
|
98 |
+
$wp_customize->add_setting(
|
99 |
+
'team_content_head'
|
100 |
+
,array(
|
101 |
+
'capability' => 'edit_theme_options',
|
102 |
+
'sanitize_callback' => 'avril_sanitize_text',
|
103 |
+
'priority' => 7,
|
104 |
+
)
|
105 |
+
);
|
106 |
+
|
107 |
+
$wp_customize->add_control(
|
108 |
+
'team_content_head',
|
109 |
+
array(
|
110 |
+
'type' => 'hidden',
|
111 |
+
'label' => __('Content','clever-fox'),
|
112 |
+
'section' => 'team_setting',
|
113 |
+
)
|
114 |
+
);
|
115 |
+
|
116 |
+
/**
|
117 |
+
* Customizer Repeater for add Team
|
118 |
+
*/
|
119 |
+
|
120 |
+
$wp_customize->add_setting( 'team_contents',
|
121 |
+
array(
|
122 |
+
'sanitize_callback' => 'avril_repeater_sanitize',
|
123 |
+
'transport' => $selective_refresh,
|
124 |
+
'priority' => 8,
|
125 |
+
'default' => avril_get_team_default()
|
126 |
+
)
|
127 |
+
);
|
128 |
+
|
129 |
+
$wp_customize->add_control(
|
130 |
+
new Avril_Repeater( $wp_customize,
|
131 |
+
'team_contents',
|
132 |
+
array(
|
133 |
+
'label' => esc_html__('Teams','clever-fox'),
|
134 |
+
'section' => 'team_setting',
|
135 |
+
'add_field_label' => esc_html__( 'Add New Team', 'clever-fox' ),
|
136 |
+
'item_name' => esc_html__( 'Teams', 'clever-fox' ),
|
137 |
+
'customizer_repeater_image_control' => true,
|
138 |
+
'customizer_repeater_title_control' => true,
|
139 |
+
'customizer_repeater_subtitle_control' => true,
|
140 |
+
'customizer_repeater_text_control' => true,
|
141 |
+
'customizer_repeater_repeater_control' => true,
|
142 |
+
)
|
143 |
+
)
|
144 |
+
);
|
145 |
+
|
146 |
+
//Pro feature
|
147 |
+
class Avril_team__section_upgrade extends WP_Customize_Control {
|
148 |
+
public function render_content() {
|
149 |
+
?>
|
150 |
+
<a class="customizer_team_upgrade_section up-to-pro" href="https://www.nayrathemes.com/avril-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
|
151 |
+
<?php
|
152 |
+
}
|
153 |
+
}
|
154 |
+
|
155 |
+
$wp_customize->add_setting( 'avril_team_upgrade_to_pro', array(
|
156 |
+
'capability' => 'edit_theme_options',
|
157 |
+
'sanitize_callback' => 'wp_filter_nohtml_kses',
|
158 |
+
'priority' => 9,
|
159 |
+
));
|
160 |
+
$wp_customize->add_control(
|
161 |
+
new Avril_team__section_upgrade(
|
162 |
+
$wp_customize,
|
163 |
+
'avril_team_upgrade_to_pro',
|
164 |
+
array(
|
165 |
+
'section' => 'team_setting',
|
166 |
+
)
|
167 |
+
)
|
168 |
+
);
|
169 |
+
|
170 |
+
}
|
171 |
+
add_action( 'customize_register', 'cleverfox_avril_team_setting' );
|
172 |
+
|
173 |
+
// team selective refresh
|
174 |
+
function cleverfox_avril_team_section_partials( $wp_customize ){
|
175 |
+
|
176 |
+
// team title
|
177 |
+
$wp_customize->selective_refresh->add_partial( 'team_title', array(
|
178 |
+
'selector' => '#team-section .heading-default .ttl',
|
179 |
+
'settings' => 'team_title',
|
180 |
+
'render_callback' => 'avril_team_title_render_callback',
|
181 |
+
|
182 |
+
) );
|
183 |
+
|
184 |
+
// team subtitle
|
185 |
+
$wp_customize->selective_refresh->add_partial( 'team_subtitle', array(
|
186 |
+
'selector' => '#team-section .heading-default h3',
|
187 |
+
'settings' => 'team_subtitle',
|
188 |
+
'render_callback' => 'avril_team_subtitle_render_callback',
|
189 |
+
|
190 |
+
) );
|
191 |
+
|
192 |
+
// team description
|
193 |
+
$wp_customize->selective_refresh->add_partial( 'team_description', array(
|
194 |
+
'selector' => '#team-section .heading-default p',
|
195 |
+
'settings' => 'team_description',
|
196 |
+
'render_callback' => 'avril_team_desc_render_callback',
|
197 |
+
|
198 |
+
) );
|
199 |
+
// team content
|
200 |
+
$wp_customize->selective_refresh->add_partial( 'team_contents', array(
|
201 |
+
'selector' => '#team-section .av-filter-wrapper-2'
|
202 |
+
|
203 |
+
) );
|
204 |
+
|
205 |
+
}
|
206 |
+
|
207 |
+
add_action( 'customize_register', 'cleverfox_avril_team_section_partials' );
|
208 |
+
|
209 |
+
// team title
|
210 |
+
function avril_team_title_render_callback() {
|
211 |
+
return get_theme_mod( 'team_title' );
|
212 |
+
}
|
213 |
+
|
214 |
+
// team subtitle
|
215 |
+
function avril_team_subtitle_render_callback() {
|
216 |
+
return get_theme_mod( 'team_subtitle' );
|
217 |
+
}
|
218 |
+
|
219 |
+
// team description
|
220 |
+
function avril_team_desc_render_callback() {
|
221 |
+
return get_theme_mod( 'team_description' );
|
222 |
+
}
|
inc/axtria/images/fun-fact-bg.jpg
ADDED
Binary file
|
inc/axtria/images/logo-2.png
ADDED
Binary file
|
inc/axtria/images/logo.png
ADDED
Binary file
|
inc/axtria/images/team/img01.jpg
ADDED
Binary file
|
inc/axtria/images/team/img02.jpg
ADDED
Binary file
|
inc/axtria/images/team/img03.jpg
ADDED
Binary file
|
inc/axtria/images/team/img04.jpg
ADDED
Binary file
|
inc/axtria/sections/section-funfact.php
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! function_exists( 'cleverfox_axtria_lite_funfact' ) ) :
|
3 |
+
function cleverfox_axtria_lite_funfact() {
|
4 |
+
$funfact_contents = get_theme_mod('funfact_contents',avril_get_funfact_default());
|
5 |
+
$funfact_sec_column = get_theme_mod('funfact_sec_column','3');
|
6 |
+
$funfact_bg_setting = get_theme_mod('funfact_bg_setting',CLEVERFOX_PLUGIN_URL .'inc/axtria/images/fun-fact-bg.jpg');
|
7 |
+
$funfact_bg_position = get_theme_mod('funfact_bg_position','fixed');
|
8 |
+
?>
|
9 |
+
<section id="funfact-section" class="funfact-section layout-overlay" style="background-image:url('<?php echo esc_url($funfact_bg_setting); ?>');background-attachment:<?php echo esc_attr($funfact_bg_position); ?>">
|
10 |
+
<div class="av-container">
|
11 |
+
<div class="av-columns-area">
|
12 |
+
<?php
|
13 |
+
if ( ! empty( $funfact_contents ) ) {
|
14 |
+
$funfact_contents = json_decode( $funfact_contents );
|
15 |
+
foreach ( $funfact_contents as $funfact_item ) {
|
16 |
+
$avril_fun_title = ! empty( $funfact_item->title ) ? apply_filters( 'avril_translate_single_string', $funfact_item->title, 'Funfact section' ) : '';
|
17 |
+
$text = ! empty( $funfact_item->text ) ? apply_filters( 'avril_translate_single_string', $funfact_item->text, 'Funfact section' ) : '';
|
18 |
+
$icon = ! empty( $funfact_item->icon_value) ? apply_filters( 'avril_translate_single_string', $funfact_item->icon_value,'Funfact section' ) : '';
|
19 |
+
$image = ! empty( $funfact_item->image_url ) ? apply_filters( 'avril_translate_single_string', $funfact_item->image_url, 'Funfact section' ) : '';
|
20 |
+
?>
|
21 |
+
<div class="av-column-<?php echo esc_attr( $funfact_sec_column ); ?> av-md-column-6 mb-4 mb-av-0">
|
22 |
+
<div class="funfact-item">
|
23 |
+
<?php if ( ! empty( $image ) && ! empty( $icon )){ ?>
|
24 |
+
<img class="services_cols_mn_icon" src="<?php echo esc_url( $image ); ?>" <?php if ( ! empty( $avril_fun_title ) ) : ?> alt="<?php echo esc_attr( $avril_fun_title ); ?>" title="<?php echo esc_attr( $avril_fun_title ); ?>" <?php endif; ?> />
|
25 |
+
<?php }elseif ( ! empty( $image ) ) { ?>
|
26 |
+
<img class="services_cols_mn_icon" src="<?php echo esc_url( $image ); ?>" <?php if ( ! empty( $title ) ) : ?> alt="<?php echo esc_attr( $title ); ?>" title="<?php echo esc_attr( $title ); ?>" <?php endif; ?> />
|
27 |
+
<?php }elseif ( ! empty( $icon ) ) {?>
|
28 |
+
<i class="fa <?php echo esc_html( $icon ); ?> txt-pink"></i>
|
29 |
+
<?php } ?>
|
30 |
+
<?php if ( ! empty( $avril_fun_title ) ) : ?>
|
31 |
+
<h1 class="counter"><?php echo esc_html( $avril_fun_title ); ?></h1>
|
32 |
+
<?php endif; ?>
|
33 |
+
<?php if ( ! empty( $text ) ) : ?>
|
34 |
+
<p><?php echo esc_html( $text ); ?></p>
|
35 |
+
<?php endif; ?>
|
36 |
+
</div>
|
37 |
+
</div>
|
38 |
+
<?php } } ?>
|
39 |
+
</div>
|
40 |
+
</div>
|
41 |
+
</section>
|
42 |
+
<?php
|
43 |
+
} endif;
|
44 |
+
if ( function_exists( 'cleverfox_axtria_lite_funfact' ) ) {
|
45 |
+
$section_priority = apply_filters( 'avril_section_priority', 14, 'avril_lite_funfact' );
|
46 |
+
add_action( 'avril_sections', 'cleverfox_axtria_lite_funfact', absint( $section_priority ) );
|
47 |
+
}
|
inc/axtria/sections/section-team.php
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! function_exists( 'cleverfox_axtria_lite_team' ) ) :
|
3 |
+
function cleverfox_axtria_lite_team() {
|
4 |
+
$team_title = get_theme_mod('team_title','Technology from tomorrow');
|
5 |
+
$team_subtitle = get_theme_mod('team_subtitle','Outstanding <span class="av-heading animate-7"><span class="av-text-wrapper"><b class="is-show">Team</b> <b>Team</b><b>Team</b></span></span>');
|
6 |
+
$team_description = get_theme_mod('team_description','Lorem Ipsum is simply dummy of printing and typesetting and industry. Lorem Ipsum been.');
|
7 |
+
$team_contents = get_theme_mod('team_contents',avril_get_team_default());
|
8 |
+
?>
|
9 |
+
<section id="team-section" class="team-section bg-primary-light av-py-default">
|
10 |
+
<div class="av-container">
|
11 |
+
<div class="av-columns-area">
|
12 |
+
<div class="av-column-12">
|
13 |
+
<div class="heading-default wow fadeInUp">
|
14 |
+
<?php if ( ! empty( $team_title ) ) : ?>
|
15 |
+
<span class='ttl'><?php echo wp_kses_post($team_title); ?></span>
|
16 |
+
<?php endif; ?>
|
17 |
+
<?php if ( ! empty( $team_subtitle ) ) : ?>
|
18 |
+
<h3><?php echo wp_kses_post($team_subtitle); ?></h3>
|
19 |
+
<?php endif; ?>
|
20 |
+
<?php if ( ! empty( $team_description ) ) : ?>
|
21 |
+
<p><?php echo wp_kses_post($team_description); ?></p>
|
22 |
+
<?php endif; ?>
|
23 |
+
</div>
|
24 |
+
</div>
|
25 |
+
</div>
|
26 |
+
<div class="av-columns-area wow fadeInUp">
|
27 |
+
<div class="av-column-12">
|
28 |
+
<!-- Filter list starts -->
|
29 |
+
<div class="av-filter-wrapper-2">
|
30 |
+
<div class="av-columns-area">
|
31 |
+
<?php
|
32 |
+
$team_contents = json_decode($team_contents);
|
33 |
+
if( $team_contents!='' )
|
34 |
+
{
|
35 |
+
foreach($team_contents as $team_item){
|
36 |
+
$image = ! empty( $team_item->image_url ) ? apply_filters( 'avril_translate_single_string', $team_item->image_url, 'Team section' ) : '';
|
37 |
+
$avril_team_title = ! empty( $team_item->title ) ? apply_filters( 'avril_translate_single_string', $team_item->title, 'Team section' ) : '';
|
38 |
+
$subtitle = ! empty( $team_item->subtitle ) ? apply_filters( 'avril_translate_single_string', $team_item->subtitle, 'Team section' ) : '';
|
39 |
+
$text = ! empty( $team_item->text ) ? apply_filters( 'avril_translate_single_string', $team_item->text, 'Team section' ) : '';
|
40 |
+
|
41 |
+
?>
|
42 |
+
<div class="av-column-3 av-sm-column-6 mb-4 mb-av-0 av-filter-item support">
|
43 |
+
<div class="team-member">
|
44 |
+
<?php if ( ! empty( $image ) ): ?>
|
45 |
+
<img class="services_cols_mn_icon" src="<?php echo esc_url( $image ); ?>" <?php if ( ! empty( $avril_team_title ) ) : ?> alt="<?php echo esc_attr( $avril_team_title ); ?>" title="<?php echo esc_attr( $avril_team_title ); ?>" <?php endif; ?> />
|
46 |
+
<?php endif; ?>
|
47 |
+
<div class="team-footer">
|
48 |
+
<div class="team-info">
|
49 |
+
<?php if ( ! empty( $avril_team_title ) ) : ?>
|
50 |
+
<h6><a href="javascript:void(0)"><?php echo esc_html( $avril_team_title ); ?></a></h6>
|
51 |
+
<?php endif; ?>
|
52 |
+
<?php if ( ! empty( $subtitle ) ) : ?>
|
53 |
+
<span><?php echo esc_html( $subtitle ); ?></span>
|
54 |
+
<?php endif; ?>
|
55 |
+
<?php if ( ! empty( $text ) ) : ?>
|
56 |
+
<p><?php echo esc_html( $text ); ?></p>
|
57 |
+
<?php endif; ?>
|
58 |
+
</div>
|
59 |
+
<aside class="widget widget_social_widget">
|
60 |
+
<ul>
|
61 |
+
<?php if ( ! empty( $team_item->social_repeater ) ) :
|
62 |
+
$icons = html_entity_decode( $team_item->social_repeater );
|
63 |
+
$icons_decoded = json_decode( $icons, true );
|
64 |
+
if ( ! empty( $icons_decoded ) ) : ?>
|
65 |
+
<?php
|
66 |
+
foreach ( $icons_decoded as $value ) {
|
67 |
+
$social_icon = ! empty( $value['icon'] ) ? apply_filters( 'avril_translate_single_string', $value['icon'], 'Team section' ) : '';
|
68 |
+
$social_link = ! empty( $value['link'] ) ? apply_filters( 'avril_translate_single_string', $value['link'], 'Team section' ) : '';
|
69 |
+
if ( ! empty( $social_icon ) ) {
|
70 |
+
?>
|
71 |
+
<li><a href="<?php echo esc_url( $social_link ); ?>"><i class="fa <?php echo esc_attr( $social_icon ); ?>"></i></a></li>
|
72 |
+
<?php
|
73 |
+
}
|
74 |
+
}
|
75 |
+
endif;
|
76 |
+
endif;
|
77 |
+
?>
|
78 |
+
</ul>
|
79 |
+
</aside>
|
80 |
+
</div>
|
81 |
+
</div>
|
82 |
+
</div>
|
83 |
+
<?php }} ?>
|
84 |
+
</div>
|
85 |
+
</div>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
+
</div>
|
89 |
+
</section>
|
90 |
+
<?php
|
91 |
+
} endif;
|
92 |
+
if ( function_exists( 'cleverfox_axtria_lite_team' ) ) {
|
93 |
+
$section_priority = apply_filters( 'avril_section_priority', 14, 'avril_lite_team' );
|
94 |
+
add_action( 'avril_sections', 'cleverfox_axtria_lite_team', absint( $section_priority ) );
|
95 |
+
}
|
inc/cleverfox-activator.php
CHANGED
@@ -88,6 +88,12 @@ class Cleverfox_Activator {
|
|
88 |
require CLEVERFOX_PLUGIN_DIR . 'inc/avail/default-widgets/default-widget.php';
|
89 |
}
|
90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
if ( 'Fiona Blog' == $theme->name || 'Fiona Food' == $theme->name || 'Fiona News' == $theme->name){
|
92 |
require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-pages/upload-media.php';
|
93 |
require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-pages/home-page.php';
|
88 |
require CLEVERFOX_PLUGIN_DIR . 'inc/avail/default-widgets/default-widget.php';
|
89 |
}
|
90 |
|
91 |
+
if ( 'Axtria' == $theme->name){
|
92 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/axtria/default-pages/upload-media.php';
|
93 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/axtria/default-pages/home-page.php';
|
94 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/axtria/default-widgets/default-widget.php';
|
95 |
+
}
|
96 |
+
|
97 |
if ( 'Fiona Blog' == $theme->name || 'Fiona Food' == $theme->name || 'Fiona News' == $theme->name){
|
98 |
require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-pages/upload-media.php';
|
99 |
require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-pages/home-page.php';
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: nayrathemes
|
3 |
Tags: demo, sections, customizer, widget, settings
|
4 |
Requires at least: 4.0
|
5 |
-
Tested up to: 5.
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 6.
|
8 |
License: GPLv3 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
|
10 |
|
@@ -97,6 +97,10 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
|
|
97 |
|
98 |
== Changelog ==
|
99 |
|
|
|
|
|
|
|
|
|
100 |
= 6.3 =
|
101 |
* Fiona News Theme Functionality Added
|
102 |
|
2 |
Contributors: nayrathemes
|
3 |
Tags: demo, sections, customizer, widget, settings
|
4 |
Requires at least: 4.0
|
5 |
+
Tested up to: 5.8
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 6.4
|
8 |
License: GPLv3 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
|
10 |
|
97 |
|
98 |
== Changelog ==
|
99 |
|
100 |
+
= 6.4 =
|
101 |
+
* Tested With WordPress 5.8
|
102 |
+
* Axtria Theme Functionality Added
|
103 |
+
|
104 |
= 6.3 =
|
105 |
* Fiona News Theme Functionality Added
|
106 |
|