Clever Fox - Version 7.5

Version Description

  • Boostify Theme Functionality Added
Download this release

Release Info

Developer nayrathemes
Plugin Icon 128x128 Clever Fox
Version 7.5
Comparing to
See all releases

Code changes from version 7.4 to 7.5

Files changed (38) hide show
  1. clever-fox.php +5 -1
  2. inc/boostify/boostify.php +33 -0
  3. inc/boostify/default-pages/home-page.php +24 -0
  4. inc/boostify/default-pages/upload-media.php +34 -0
  5. inc/boostify/default-widgets/default-widget.php +43 -0
  6. inc/boostify/dynamic-style.php +67 -0
  7. inc/boostify/extras.php +294 -0
  8. inc/boostify/features/boostify-features.php +189 -0
  9. inc/boostify/features/boostify-footer.php +242 -0
  10. inc/boostify/features/boostify-header.php +380 -0
  11. inc/boostify/features/boostify-info.php +106 -0
  12. inc/boostify/features/boostify-service.php +185 -0
  13. inc/boostify/features/boostify-slider.php +129 -0
  14. inc/boostify/features/boostify-testimonial.php +243 -0
  15. inc/boostify/features/boostify-typography.php +265 -0
  16. inc/boostify/images/features/features01.jpg +0 -0
  17. inc/boostify/images/icon/icon01.png +0 -0
  18. inc/boostify/images/icon/icon02.png +0 -0
  19. inc/boostify/images/icon/icon03.png +0 -0
  20. inc/boostify/images/icon/icon04.png +0 -0
  21. inc/boostify/images/icon/icon05.png +0 -0
  22. inc/boostify/images/icon/icon06.png +0 -0
  23. inc/boostify/images/logo.png +0 -0
  24. inc/boostify/images/patternshape-bg.jpg +0 -0
  25. inc/boostify/images/slider/img01.jpg +0 -0
  26. inc/boostify/images/slider/img02.jpg +0 -0
  27. inc/boostify/images/slider/img03.jpg +0 -0
  28. inc/boostify/images/testimonial/testimonial01.jpg +0 -0
  29. inc/boostify/images/testimonial/testimonial02.jpg +0 -0
  30. inc/boostify/sections/above-footer.php +41 -0
  31. inc/boostify/sections/above-header.php +65 -0
  32. inc/boostify/sections/section-features.php +71 -0
  33. inc/boostify/sections/section-info.php +56 -0
  34. inc/boostify/sections/section-service.php +68 -0
  35. inc/boostify/sections/section-slider.php +108 -0
  36. inc/boostify/sections/section-testimonial.php +76 -0
  37. inc/cleverfox-activator.php +6 -0
  38. readme.txt +4 -1
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 50000+ trusted websites with Nayra Themes. It provides intuitive features to your website. 20+ Themes compatible with Clever Fox. See below free themes listed here. Avril is one of Popular themes in our collections.
6
- Version: 7.4
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
@@ -100,6 +100,10 @@ function cleverfox_activate() {
100
  require_once('inc/aravalli/aravalli.php');
101
  }
102
 
 
 
 
 
103
  }
104
  add_action( 'init', 'cleverfox_activate' );
105
 
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 50000+ trusted websites with Nayra Themes. It provides intuitive features to your website. 20+ Themes compatible with Clever Fox. See below free themes listed here. Avril is one of Popular themes in our collections.
6
+ Version: 7.5
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
100
  require_once('inc/aravalli/aravalli.php');
101
  }
102
 
103
+ if( 'Boostify' == $theme->name){
104
+ require_once('inc/boostify/boostify.php');
105
+ }
106
+
107
  }
108
  add_action( 'init', 'cleverfox_activate' );
109
 
inc/boostify/boostify.php ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Boostify
4
+ */
5
+
6
+ require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/extras.php';
7
+ require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/dynamic-style.php';
8
+ require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/sections/above-header.php';
9
+ require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/sections/above-footer.php';
10
+ require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/features/boostify-header.php';
11
+ require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/features/boostify-footer.php';
12
+ require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/features/boostify-slider.php';
13
+ require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/features/boostify-info.php';
14
+ require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/features/boostify-service.php';
15
+ require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/features/boostify-features.php';
16
+ require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/features/boostify-testimonial.php';
17
+ require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/features/boostify-typography.php';
18
+
19
+ if ( ! function_exists( 'cleverfox_boostify_frontpage_sections' ) ) :
20
+ function cleverfox_boostify_frontpage_sections() {
21
+ require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/sections/section-slider.php';
22
+ require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/sections/section-info.php';
23
+ require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/sections/section-features.php';
24
+ require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/sections/section-service.php';
25
+ require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/sections/section-testimonial.php';
26
+ }
27
+ add_action( 'boostify_sections', 'cleverfox_boostify_frontpage_sections' );
28
+ endif;
29
+
30
+ function cleverfox_boostify_enqueue_scripts() {
31
+ wp_enqueue_style('animate',CLEVERFOX_PLUGIN_URL .'/inc/assets/css/animate.css');
32
+ }
33
+ add_action( 'wp_enqueue_scripts', 'cleverfox_boostify_enqueue_scripts' );
inc/boostify/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/boostify/default-pages/upload-media.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $file = CLEVERFOX_PLUGIN_URL .'inc/boostify/images/logo.png';
3
+ $ImagePath = CLEVERFOX_PLUGIN_URL .'inc/boostify/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' => 'boostify 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( 'boostify_media_id', $ImageId );
33
+
34
+ ?>
inc/boostify/default-widgets/default-widget.php ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $activate = array(
3
+ 'boostify-sidebar-primary' => array(
4
+ 'search-1',
5
+ 'recent-posts-1',
6
+ 'archives-1',
7
+ ),
8
+ 'boostify-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="widget_about"><div class="footer-logo"><img src="'.CLEVERFOX_PLUGIN_URL.'inc/boostify/images/logo.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><ul class="widget-info">
20
+ <li><i class="fa fa-phone"></i>012-345-789</li>
21
+ <li><i class="fa fa-globe"></i>www.yourdomain.com</li>
22
+ <li><i class="fa fa-envelope"></i>yourmail@gmail.com</li>
23
+ </ul></div>
24
+ '),
25
+ 2 => array('title' => 'Recent Posts'),
26
+ 3 => array('title' => 'Categories'),
27
+ ));
28
+ update_option('widget_categories', array(
29
+ 1 => array('title' => 'Categories'),
30
+ 2 => array('title' => 'Categories')));
31
+
32
+ update_option('widget_archives', array(
33
+ 1 => array('title' => 'Archives'),
34
+ 2 => array('title' => 'Archives')));
35
+
36
+ update_option('widget_search', array(
37
+ 1 => array('title' => 'Search'),
38
+ 2 => array('title' => 'Search')));
39
+
40
+ update_option('sidebars_widgets', $activate);
41
+ $MediaId = get_option('boostify_media_id');
42
+ set_theme_mod( 'custom_logo', $MediaId[0] );
43
+ ?>
inc/boostify/dynamic-style.php ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if( ! function_exists( 'cleverfox_boostify_dynamic_style' ) ):
3
+ function cleverfox_boostify_dynamic_style() {
4
+
5
+ $output_css = '';
6
+
7
+ /**
8
+ * Logo Width
9
+ */
10
+ $logo_width = get_theme_mod('logo_width','140');
11
+ if($logo_width !== '') {
12
+ $output_css .=".logo img, .mobile-logo img {
13
+ max-width: " .esc_attr($logo_width). "px;
14
+ }\n";
15
+ }
16
+
17
+ /**
18
+ * Slider
19
+ */
20
+ $slider_overlay_enable = get_theme_mod('slider_overlay_enable');
21
+ $slide_overlay_color = get_theme_mod('slide_overlay_color','#fff');
22
+ $slider_opacity = get_theme_mod('slider_opacity');
23
+ if($slider_overlay_enable == '1') {
24
+ $output_css .=".theme-slider:after {
25
+ opacity: " .esc_attr($slider_opacity). ";
26
+ background: " .esc_attr($slide_overlay_color). ";
27
+ }\n";
28
+ }
29
+
30
+
31
+ /**
32
+ * Typography Body
33
+ */
34
+ $boostify_body_text_transform = get_theme_mod('boostify_body_text_transform','inherit');
35
+ $boostify_body_font_style = get_theme_mod('boostify_body_font_style','inherit');
36
+ $boostify_body_font_size = get_theme_mod('boostify_body_font_size','15');
37
+ $boostify_body_line_height = get_theme_mod('boostify_body_line_height','1.5');
38
+
39
+ $output_css .=" body,p{
40
+ font-size: " .esc_attr($boostify_body_font_size). "px;
41
+ line-height: " .esc_attr($boostify_body_line_height). ";
42
+ text-transform: " .esc_attr($boostify_body_text_transform). ";
43
+ font-style: " .esc_attr($boostify_body_font_style). ";
44
+ }\n";
45
+
46
+ /**
47
+ * Typography Heading
48
+ */
49
+ for ( $i = 1; $i <= 6; $i++ ) {
50
+ $boostify_heading_text_transform = get_theme_mod('boostify_h' . $i . '_text_transform','inherit');
51
+ $boostify_heading_font_style = get_theme_mod('boostify_h' . $i . '_font_style','inherit');
52
+ $boostify_heading_font_size = get_theme_mod('boostify_h' . $i . '_font_size');
53
+ $boostify_heading_line_height = get_theme_mod('boostify_h' . $i . '_line_height');
54
+
55
+ $output_css .=" h" . $i . "{
56
+ font-size: " .esc_attr($boostify_heading_font_size). "px;
57
+ line-height: " .esc_attr($boostify_heading_line_height). ";
58
+ text-transform: " .esc_attr($boostify_heading_text_transform). ";
59
+ font-style: " .esc_attr($boostify_heading_font_style). ";
60
+ }\n";
61
+ }
62
+
63
+
64
+ wp_add_inline_style( 'boostify-style', $output_css );
65
+ }
66
+ endif;
67
+ add_action( 'wp_enqueue_scripts', 'cleverfox_boostify_dynamic_style' );
inc/boostify/extras.php ADDED
@@ -0,0 +1,294 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ *
4
+ * Social Icon
5
+ */
6
+ function boostify_get_social_icon_default() {
7
+ return apply_filters(
8
+ 'boostify_get_social_icon_default', json_encode(
9
+ array(
10
+ array(
11
+ 'icon_value' => esc_html__( 'fa-facebook', 'clever-fox' ),
12
+ 'link' => esc_html__( '#', 'clever-fox' ),
13
+ 'id' => 'customizer_repeater_header_social_001',
14
+ ),
15
+ array(
16
+ 'icon_value' => esc_html__( 'fa-google-plus', 'clever-fox' ),
17
+ 'link' => esc_html__( '#', 'clever-fox' ),
18
+ 'id' => 'customizer_repeater_header_social_002',
19
+ ),
20
+ array(
21
+ 'icon_value' => esc_html__( 'fa-twitter', 'clever-fox' ),
22
+ 'link' => esc_html__( '#', 'clever-fox' ),
23
+ 'id' => 'customizer_repeater_header_social_003',
24
+ ),
25
+ array(
26
+ 'icon_value' => esc_html__( 'fa-linkedin', 'clever-fox' ),
27
+ 'link' => esc_html__( '#', 'clever-fox' ),
28
+ 'id' => 'customizer_repeater_header_social_004',
29
+ ),
30
+ array(
31
+ 'icon_value' => esc_html__( 'fa-behance', 'clever-fox' ),
32
+ 'link' => esc_html__( '#', 'clever-fox' ),
33
+ 'id' => 'customizer_repeater_header_social_005',
34
+ ),
35
+ )
36
+ )
37
+ );
38
+ }
39
+
40
+
41
+ /*
42
+ *
43
+ * Contact Info Default
44
+ */
45
+ function boostify_get_contact_info_default() {
46
+ return apply_filters(
47
+ 'boostify_get_contact_info_default', json_encode(
48
+ array(
49
+ array(
50
+ 'icon_value' => 'fa-map-marker',
51
+ 'title' => esc_html__( 'Company Location', 'clever-fox' ),
52
+ 'subtitle' => esc_html__( '121 King Street, USA', 'clever-fox' ),
53
+ 'link' => esc_html__( '#', 'clever-fox' ),
54
+ 'id' => 'customizer_repeater_contact_info_001',
55
+ ),
56
+ array(
57
+ 'icon_value' => 'fa-envelope',
58
+ 'title' => esc_html__( 'Mail Us On', 'clever-fox' ),
59
+ 'subtitle' => esc_html__( 'info@example.com', 'clever-fox' ),
60
+ 'link' => esc_html__( '#', 'clever-fox' ),
61
+ 'id' => 'customizer_repeater_contact_info_002',
62
+ ),
63
+ array(
64
+ 'icon_value' => 'fa-clock-o',
65
+ 'title' => esc_html__( 'Working Hours', 'clever-fox' ),
66
+ 'subtitle' => esc_html__( 'Mon-Sat 8:00 - 18:00', 'clever-fox' ),
67
+ 'link' => esc_html__( '#', 'clever-fox' ),
68
+ 'id' => 'customizer_repeater_contact_info_003',
69
+ ),
70
+ )
71
+ )
72
+ );
73
+ }
74
+ add_action('boostify_get_contact_info_default','boostify_get_contact_info');
75
+
76
+ /*
77
+ *
78
+ * Slider Default
79
+ */
80
+ function boostify_get_slider_default() {
81
+ return apply_filters(
82
+ 'boostify_get_slider_default', json_encode(
83
+ array(
84
+ array(
85
+ //'image_url' => CLEVERFOX_PLUGIN_URL .'inc/boostify/images/slider/img01.jpg',
86
+ 'image_url2' => CLEVERFOX_PLUGIN_URL .'inc/boostify/images/slider/img01.jpg',
87
+ 'title' => esc_html__( 'Business litigation expert', 'clever-fox' ),
88
+ 'subtitle' => esc_html__( 'we are for your invest', 'clever-fox' ),
89
+ 'text' => esc_html__( "Randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum", 'clever-fox' ),
90
+ 'text2' => esc_html__( 'Explore more ...', 'clever-fox' ),
91
+ 'link' => esc_html__( '#', 'clever-fox' ),
92
+ "slide_align" => "left",
93
+ 'id' => 'customizer_repeater_slider_001',
94
+ ),
95
+ array(
96
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/boostify/images/slider/img02.jpg',
97
+ 'image_url2' => CLEVERFOX_PLUGIN_URL .'inc/boostify/images/slider/img02.jpg',
98
+ 'title' => esc_html__( 'Business litigation expert', 'clever-fox' ),
99
+ 'subtitle' => esc_html__( 'we are for your invest', 'clever-fox' ),
100
+ 'text' => esc_html__( "Randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum", 'clever-fox' ),
101
+ 'text2' => esc_html__( 'Explore more ...', 'clever-fox' ),
102
+ 'link' => esc_html__( '#', 'clever-fox' ),
103
+ "slide_align" => "center",
104
+ 'id' => 'customizer_repeater_slider_002',
105
+ ),
106
+ array(
107
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/boostify/images/slider/img03.jpg',
108
+ 'image_url2' => CLEVERFOX_PLUGIN_URL .'inc/boostify/images/slider/img03.jpg',
109
+ 'title' => esc_html__( 'Business litigation expert', 'clever-fox' ),
110
+ 'subtitle' => esc_html__( 'we are for your invest', 'clever-fox' ),
111
+ 'text' => esc_html__( "Randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum", 'clever-fox' ),
112
+ 'text2' => esc_html__( 'Explore more ...', 'clever-fox' ),
113
+ 'link' => esc_html__( '#', 'clever-fox' ),
114
+ "slide_align" => "right",
115
+ 'id' => 'customizer_repeater_slider_003',
116
+
117
+ ),
118
+ )
119
+ )
120
+ );
121
+ }
122
+
123
+
124
+ /*
125
+ *
126
+ * Info Default
127
+ */
128
+ function boostify_get_info_default() {
129
+ return apply_filters(
130
+ 'boostify_get_info_default', json_encode(
131
+ array(
132
+ array(
133
+ 'title' => esc_html__( '24x7 Support', 'clever-fox' ),
134
+ 'subtitle' => esc_html__( '0 (123) 456 7891', 'clever-fox' ),
135
+ 'icon_value' => 'fa-phone',
136
+ 'id' => 'customizer_repeater_info_001',
137
+ ),
138
+ array(
139
+ 'title' => esc_html__( 'Quick Contact Us', 'clever-fox' ),
140
+ 'subtitle' => esc_html__( '+880-123-456890', 'clever-fox' ),
141
+ 'icon_value' => 'fa-map-o',
142
+ 'id' => 'customizer_repeater_info_002',
143
+ ),
144
+ array(
145
+ 'title' => esc_html__( 'Send Us an Email', 'clever-fox' ),
146
+ 'subtitle' => esc_html__( 'email@gmail.com', 'clever-fox' ),
147
+ 'icon_value' => 'fa-envelope-open-o',
148
+ 'id' => 'customizer_repeater_info_003',
149
+ ),
150
+ array(
151
+ 'title' => esc_html__( 'Our Working Hours', 'clever-fox' ),
152
+ 'subtitle' => esc_html__( 'Monday to Friday', 'clever-fox' ),
153
+ 'icon_value' => 'fa-clock-o',
154
+ 'id' => 'customizer_repeater_info_001',
155
+ ),
156
+ )
157
+ )
158
+ );
159
+ }
160
+
161
+
162
+ /*
163
+ *
164
+ * Service Default
165
+ */
166
+ function boostify_get_service_default() {
167
+ return apply_filters(
168
+ 'boostify_get_service_default', json_encode(
169
+ array(
170
+ array(
171
+ 'title' => esc_html__( 'Startup Business', 'clever-fox' ),
172
+ 'text' => esc_html__( 'There are many variations passages of Lorem Ipsum popularised a with trelease for urvived.', 'clever-fox' ),
173
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/boostify/images/icon/icon01.png',
174
+ 'text2' => esc_html__( 'Read More', 'clever-fox' ),
175
+ 'id' => 'customizer_repeater_service_001',
176
+
177
+ ),
178
+ array(
179
+ 'title' => esc_html__( 'Business Growth', 'clever-fox' ),
180
+ 'text' => esc_html__( 'There are many variations passages of Lorem Ipsum popularised a with trelease for urvived.', 'clever-fox' ),
181
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/boostify/images/icon/icon02.png',
182
+ 'text2' => esc_html__( 'Read More', 'clever-fox' ),
183
+ 'id' => 'customizer_repeater_service_002',
184
+ ),
185
+ array(
186
+ 'title' => esc_html__( 'Follow Policy', 'clever-fox' ),
187
+ 'text' => esc_html__( 'There are many variations passages of Lorem Ipsum popularised a with trelease for urvived.', 'clever-fox' ),
188
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/boostify/images/icon/icon03.png',
189
+ 'text2' => esc_html__( 'Read More', 'clever-fox' ),
190
+ 'id' => 'customizer_repeater_service_003',
191
+ ),
192
+ array(
193
+ 'title' => esc_html__( 'Marketing', 'clever-fox' ),
194
+ 'text' => esc_html__( 'There are many variations passages of Lorem Ipsum popularised a with trelease for urvived.', 'clever-fox' ),
195
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/boostify/images/icon/icon04.png',
196
+ 'text2' => esc_html__( 'Read More', 'clever-fox' ),
197
+ 'id' => 'customizer_repeater_service_004',
198
+ ),
199
+ array(
200
+ 'title' => esc_html__( 'Business Advise', 'clever-fox' ),
201
+ 'text' => esc_html__( 'There are many variations passages of Lorem Ipsum popularised a with trelease for urvived.', 'clever-fox' ),
202
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/boostify/images/icon/icon05.png',
203
+ 'text2' => esc_html__( 'Read More', 'clever-fox' ),
204
+ 'id' => 'customizer_repeater_service_005',
205
+ ),
206
+ array(
207
+ 'title' => esc_html__( 'Business Pakage', 'clever-fox' ),
208
+ 'text' => esc_html__( 'There are many variations passages of Lorem Ipsum popularised a with trelease for urvived.', 'clever-fox' ),
209
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/boostify/images/icon/icon06.png',
210
+ 'text2' => esc_html__( 'Read More', 'clever-fox' ),
211
+ 'id' => 'customizer_repeater_service_006',
212
+ ),
213
+ )
214
+ )
215
+ );
216
+ }
217
+
218
+
219
+ /*
220
+ *
221
+ * Features Default
222
+ */
223
+ function boostify_get_features_default() {
224
+ return apply_filters(
225
+ 'boostify_get_features_default', json_encode(
226
+ array(
227
+ array(
228
+ 'title' => esc_html__( 'Business planning', 'clever-fox' ),
229
+ 'text' => esc_html__( 'My point of using Lorem Ipsum is that distribution', 'clever-fox' ),
230
+ 'icon_value' => 'fa-connectdevelop',
231
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/boostify/images/features/features01.jpg',
232
+ 'id' => 'customizer_repeater_features_001',
233
+ ),
234
+ array(
235
+ 'title' => esc_html__( 'Business Growp', 'clever-fox' ),
236
+ 'text' => esc_html__( 'My point of using Lorem Ipsum is that distribution', 'clever-fox' ),
237
+ 'icon_value' => 'fa-bar-chart',
238
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/boostify/images/features/features01.jpg',
239
+ 'id' => 'customizer_repeater_features_002',
240
+ ),
241
+ array(
242
+ 'title' => esc_html__( 'Marketing', 'clever-fox' ),
243
+ 'text' => esc_html__( 'My point of using Lorem Ipsum is that distribution', 'clever-fox' ),
244
+ 'icon_value' => 'fa-line-chart',
245
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/boostify/images/features/features01.jpg',
246
+ 'id' => 'customizer_repeater_features_003',
247
+ ),
248
+ array(
249
+ 'title' => esc_html__( 'Stratup advise', 'clever-fox' ),
250
+ 'text' => esc_html__( 'My point of using Lorem Ipsum is that distribution', 'clever-fox' ),
251
+ 'icon_value' => 'fa-tachometer',
252
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/boostify/images/features/features01.jpg',
253
+ 'id' => 'customizer_repeater_features_004',
254
+ ),
255
+ array(
256
+ 'title' => esc_html__( 'Business planning', 'clever-fox' ),
257
+ 'text' => esc_html__( 'My point of using Lorem Ipsum is that distribution', 'clever-fox' ),
258
+ 'icon_value' => 'fa-file-zip-o',
259
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/boostify/images/features/features01.jpg',
260
+ 'id' => 'customizer_repeater_features_005',
261
+ ),
262
+ )
263
+ )
264
+ );
265
+ }
266
+
267
+
268
+ /*
269
+ *
270
+ * Testimonial Default
271
+ */
272
+
273
+ function boostify_get_testimonial_default() {
274
+ return apply_filters(
275
+ 'boostify_get_testimonial_default', json_encode(
276
+ array(
277
+ array(
278
+ 'title' => esc_html__( 'All Raihan', 'clever-fox' ),
279
+ 'subtitle' => esc_html__( 'Interection Design', 'clever-fox' ),
280
+ 'text' => esc_html__( 'Donec scelerisque dolor id nunc dictum, nterdum mauris rhoncus. Aliquam at ultrices nunc. In sem fermentum at lorem in, porta mauris.', 'clever-fox' ),
281
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/boostify/images/testimonial/testimonial01.jpg',
282
+ 'id' => 'customizer_repeater_testimonial_001',
283
+ ),
284
+ array(
285
+ 'title' => esc_html__( 'Ali Sayed', 'clever-fox' ),
286
+ 'subtitle' => esc_html__( 'UI/UX Design', 'clever-fox' ),
287
+ 'text' => esc_html__( 'Donec scelerisque dolor id nunc dictum, nterdum mauris rhoncus. Aliquam at ultrices nunc. In sem fermentum at lorem in, porta mauris.', 'clever-fox' ),
288
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/boostify/images/testimonial/testimonial02.jpg',
289
+ 'id' => 'customizer_repeater_testimonial_002',
290
+ ),
291
+ )
292
+ )
293
+ );
294
+ }
inc/boostify/features/boostify-features.php ADDED
@@ -0,0 +1,189 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function boostify_features_setting( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+ /*=========================================
5
+ Service Section
6
+ =========================================*/
7
+ $wp_customize->add_section(
8
+ 'feature_setting', array(
9
+ 'title' => esc_html__( 'Features Section', 'clever-fox' ),
10
+ 'priority' => 4,
11
+ 'panel' => 'boostify_frontpage_sections',
12
+ )
13
+ );
14
+
15
+ // Features Header Section //
16
+ $wp_customize->add_setting(
17
+ 'feature_headings'
18
+ ,array(
19
+ 'capability' => 'edit_theme_options',
20
+ 'sanitize_callback' => 'boostify_sanitize_text',
21
+ 'priority' => 3,
22
+ )
23
+ );
24
+
25
+ $wp_customize->add_control(
26
+ 'feature_headings',
27
+ array(
28
+ 'type' => 'hidden',
29
+ 'label' => __('Header','clever-fox'),
30
+ 'section' => 'feature_setting',
31
+ )
32
+ );
33
+
34
+ // Feature Title //
35
+ $wp_customize->add_setting(
36
+ 'feature_title',
37
+ array(
38
+ 'default' => __('Outstanding <span class="av-heading animate-7"><span class="av-text-wrapper"><b class="is-show">Features</b> <b>Features</b><b>Features</b></span></span>','clever-fox'),
39
+ 'capability' => 'edit_theme_options',
40
+ 'sanitize_callback' => 'boostify_sanitize_html',
41
+ 'transport' => $selective_refresh,
42
+ 'priority' => 4,
43
+ )
44
+ );
45
+
46
+ $wp_customize->add_control(
47
+ 'feature_title',
48
+ array(
49
+ 'label' => __('Title','clever-fox'),
50
+ 'section' => 'feature_setting',
51
+ 'type' => 'textarea',
52
+ )
53
+ );
54
+
55
+ // Feature Description //
56
+ $wp_customize->add_setting(
57
+ 'feature_description',
58
+ array(
59
+ 'default' => __('Lorem Ipsum is simply dummy of printing and typesetting and industry. Lorem Ipsum been.','clever-fox'),
60
+ 'capability' => 'edit_theme_options',
61
+ 'sanitize_callback' => 'boostify_sanitize_html',
62
+ 'transport' => $selective_refresh,
63
+ 'priority' => 6,
64
+ )
65
+ );
66
+
67
+ $wp_customize->add_control(
68
+ 'feature_description',
69
+ array(
70
+ 'label' => __('Description','clever-fox'),
71
+ 'section' => 'feature_setting',
72
+ 'type' => 'textarea',
73
+ )
74
+ );
75
+
76
+ // Fetaures content Section //
77
+
78
+ $wp_customize->add_setting(
79
+ 'feature_contents_head'
80
+ ,array(
81
+ 'capability' => 'edit_theme_options',
82
+ 'sanitize_callback' => 'boostify_sanitize_text',
83
+ 'priority' => 7,
84
+ )
85
+ );
86
+
87
+ $wp_customize->add_control(
88
+ 'feature_contents_head',
89
+ array(
90
+ 'type' => 'hidden',
91
+ 'label' => __('Content','clever-fox'),
92
+ 'section' => 'feature_setting',
93
+ )
94
+ );
95
+
96
+ /**
97
+ * Customizer Repeater for add Features
98
+ */
99
+
100
+ $wp_customize->add_setting( 'features_contents',
101
+ array(
102
+ 'sanitize_callback' => 'boostify_repeater_sanitize',
103
+ 'transport' => $selective_refresh,
104
+ 'priority' => 8,
105
+ 'default' => boostify_get_features_default()
106
+ )
107
+ );
108
+
109
+ $wp_customize->add_control(
110
+ new Boostify_Repeater( $wp_customize,
111
+ 'features_contents',
112
+ array(
113
+ 'label' => esc_html__('Features','clever-fox'),
114
+ 'section' => 'feature_setting',
115
+ 'add_field_label' => esc_html__( 'Add New Feature', 'clever-fox' ),
116
+ 'item_name' => esc_html__( 'Feature', 'clever-fox' ),
117
+ 'customizer_repeater_icon_control' => true,
118
+ 'customizer_repeater_image_control' => true,
119
+ 'customizer_repeater_title_control' => true,
120
+ 'customizer_repeater_text_control' => true,
121
+ 'customizer_repeater_link_control' => true,
122
+ )
123
+ )
124
+ );
125
+
126
+
127
+ //Pro feature
128
+ class Boostify_feature__section_upgrade extends WP_Customize_Control {
129
+ public function render_content() {
130
+ ?>
131
+ <a class="customizer_feature_upgrade_section up-to-pro" href="javascript:void(0)"
132
+ style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
133
+ <?php
134
+ }
135
+ }
136
+
137
+ $wp_customize->add_setting( 'boostify_feature_upgrade_to_pro', array(
138
+ 'capability' => 'edit_theme_options',
139
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
140
+ ));
141
+ $wp_customize->add_control(
142
+ new Boostify_feature__section_upgrade(
143
+ $wp_customize,
144
+ 'boostify_feature_upgrade_to_pro',
145
+ array(
146
+ 'section' => 'feature_setting',
147
+ )
148
+ )
149
+ );
150
+ }
151
+
152
+ add_action( 'customize_register', 'boostify_features_setting' );
153
+
154
+ // service selective refresh
155
+ function boostify_features_section_partials( $wp_customize ){
156
+ // feature_title
157
+ $wp_customize->selective_refresh->add_partial( 'feature_title', array(
158
+ 'selector' => '.home-feature .section-header h2',
159
+ 'settings' => 'feature_title',
160
+ 'render_callback' => 'boostify_feature_title_render_callback',
161
+
162
+ ) );
163
+
164
+ // feature_description
165
+ $wp_customize->selective_refresh->add_partial( 'feature_description', array(
166
+ 'selector' => '.home-feature .section-header p',
167
+ 'settings' => 'feature_description',
168
+ 'render_callback' => 'boostify_feature_description_render_callback',
169
+
170
+ ) );
171
+ // features_contents
172
+ $wp_customize->selective_refresh->add_partial( 'features_contents', array(
173
+ 'selector' => '.home-feature .feature-contents'
174
+
175
+ ) );
176
+
177
+ }
178
+
179
+ add_action( 'customize_register', 'boostify_features_section_partials' );
180
+
181
+ // feature_title
182
+ function boostify_feature_title_render_callback() {
183
+ return get_theme_mod( 'feature_title' );
184
+ }
185
+
186
+ // service description
187
+ function boostify_feature_description_render_callback() {
188
+ return get_theme_mod( 'feature_description' );
189
+ }
inc/boostify/features/boostify-footer.php ADDED
@@ -0,0 +1,242 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function boostify_abv_footer( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+ /*=========================================
5
+ Footer Above
6
+ =========================================*/
7
+ $wp_customize->add_section(
8
+ 'footer_above',
9
+ array(
10
+ 'title' => __('Footer Above','clever-fox'),
11
+ 'panel' => 'footer_section',
12
+ 'priority' => 2,
13
+ )
14
+ );
15
+
16
+ // Footer Above
17
+ $wp_customize->add_setting(
18
+ 'footer_above_setting_head'
19
+ ,array(
20
+ 'capability' => 'edit_theme_options',
21
+ 'sanitize_callback' => 'boostify_sanitize_text',
22
+ 'priority' => 1,
23
+ )
24
+ );
25
+
26
+ $wp_customize->add_control(
27
+ 'footer_above_setting_head',
28
+ array(
29
+ 'type' => 'hidden',
30
+ 'label' => __('Setting','clever-fox'),
31
+ 'section' => 'footer_above',
32
+ )
33
+ );
34
+
35
+ // hide/show
36
+ $wp_customize->add_setting(
37
+ 'hs_above_footer' ,
38
+ array(
39
+ 'default' => '1',
40
+ 'capability' => 'edit_theme_options',
41
+ 'sanitize_callback' => 'boostify_sanitize_checkbox',
42
+ 'priority' => 2,
43
+ )
44
+ );
45
+
46
+ $wp_customize->add_control(
47
+ 'hs_above_footer',
48
+ array(
49
+ 'label' => esc_html__( 'Hide/Show', 'clever-fox' ),
50
+ 'section' => 'footer_above',
51
+ 'type' => 'checkbox'
52
+ )
53
+ );
54
+
55
+
56
+
57
+ // Content Head
58
+ $wp_customize->add_setting(
59
+ 'footer_above_content_head'
60
+ ,array(
61
+ 'capability' => 'edit_theme_options',
62
+ 'sanitize_callback' => 'boostify_sanitize_text',
63
+ 'priority' => 3,
64
+ )
65
+ );
66
+
67
+ $wp_customize->add_control(
68
+ 'footer_above_content_head',
69
+ array(
70
+ 'type' => 'hidden',
71
+ 'label' => __('Contents','clever-fox'),
72
+ 'section' => 'footer_above',
73
+ )
74
+ );
75
+
76
+ // title //
77
+ $wp_customize->add_setting(
78
+ 'footer_above_ttl',
79
+ array(
80
+ 'default' => __('Do you like that you see?','clever-fox'),
81
+ 'sanitize_callback' => 'boostify_sanitize_html',
82
+ 'capability' => 'edit_theme_options',
83
+ 'transport' => $selective_refresh,
84
+ 'priority' => 4,
85
+ )
86
+ );
87
+
88
+ $wp_customize->add_control(
89
+ 'footer_above_ttl',
90
+ array(
91
+ 'label' => __('Title','clever-fox'),
92
+ 'section' => 'footer_above',
93
+ 'type' => 'text'
94
+ )
95
+ );
96
+
97
+
98
+ // Button Label First //
99
+ $wp_customize->add_setting(
100
+ 'footer_above_btn_lbl1',
101
+ array(
102
+ 'default' => __('Request a Quote','clever-fox'),
103
+ 'sanitize_callback' => 'boostify_sanitize_html',
104
+ 'capability' => 'edit_theme_options',
105
+ 'transport' => $selective_refresh,
106
+ 'priority' => 5,
107
+ )
108
+ );
109
+
110
+ $wp_customize->add_control(
111
+ 'footer_above_btn_lbl1',
112
+ array(
113
+ 'label' => __('Button Label First','clever-fox'),
114
+ 'section' => 'footer_above',
115
+ 'type' => 'text'
116
+ )
117
+ );
118
+
119
+ // Button Url First //
120
+ $wp_customize->add_setting(
121
+ 'footer_above_btn_url1',
122
+ array(
123
+ 'default' => '#',
124
+ 'sanitize_callback' => 'boostify_sanitize_url',
125
+ 'capability' => 'edit_theme_options',
126
+ 'priority' => 6,
127
+ )
128
+ );
129
+
130
+ $wp_customize->add_control(
131
+ 'footer_above_btn_url1',
132
+ array(
133
+ 'label' => __('Button Link First','clever-fox'),
134
+ 'section' => 'footer_above',
135
+ 'type' => 'text'
136
+ )
137
+ );
138
+
139
+
140
+ // Middle Content //
141
+ $wp_customize->add_setting(
142
+ 'footer_above_btn_mdl_text',
143
+ array(
144
+ 'default' => __('or','clever-fox'),
145
+ 'sanitize_callback' => 'boostify_sanitize_html',
146
+ 'capability' => 'edit_theme_options',
147
+ 'priority' => 8,
148
+ )
149
+ );
150
+
151
+ $wp_customize->add_control(
152
+ 'footer_above_btn_mdl_text',
153
+ array(
154
+ 'label' => __('Middle Text','clever-fox'),
155
+ 'section' => 'footer_above',
156
+ 'type' => 'text'
157
+ )
158
+ );
159
+
160
+ // Button Label Second //
161
+ $wp_customize->add_setting(
162
+ 'footer_above_btn_lbl2',
163
+ array(
164
+ 'default' => __('Contact Us','clever-fox'),
165
+ 'sanitize_callback' => 'boostify_sanitize_html',
166
+ 'capability' => 'edit_theme_options',
167
+ 'transport' => $selective_refresh,
168
+ 'priority' => 9,
169
+ )
170
+ );
171
+
172
+ $wp_customize->add_control(
173
+ 'footer_above_btn_lbl2',
174
+ array(
175
+ 'label' => __('Button Label Second','clever-fox'),
176
+ 'section' => 'footer_above',
177
+ 'type' => 'text'
178
+ )
179
+ );
180
+
181
+ // Button Url Second //
182
+ $wp_customize->add_setting(
183
+ 'footer_above_btn_url2',
184
+ array(
185
+ 'default' => '#',
186
+ 'sanitize_callback' => 'boostify_sanitize_url',
187
+ 'capability' => 'edit_theme_options',
188
+ 'priority' => 10,
189
+ )
190
+ );
191
+
192
+ $wp_customize->add_control(
193
+ 'footer_above_btn_url2',
194
+ array(
195
+ 'label' => __('Button Link Second','clever-fox'),
196
+ 'section' => 'footer_above',
197
+ 'type' => 'text'
198
+ )
199
+ );
200
+ }
201
+ add_action( 'customize_register', 'boostify_abv_footer' );
202
+ // Footer selective refresh
203
+ function boostify_abv_footer_partials( $wp_customize ){
204
+ // footer_above_ttl
205
+ $wp_customize->selective_refresh->add_partial( 'footer_above_ttl', array(
206
+ 'selector' => '.main-footer #action-bar .bar-text p',
207
+ 'settings' => 'footer_above_ttl',
208
+ 'render_callback' => 'boostify_footer_above_ttl_render_callback',
209
+ ) );
210
+
211
+ // footer_above_btn_lbl1
212
+ $wp_customize->selective_refresh->add_partial( 'footer_above_btn_lbl1', array(
213
+ 'selector' => '.main-footer #action-bar a.white-bg',
214
+ 'settings' => 'footer_above_btn_lbl1',
215
+ 'render_callback' => 'boostify_footer_above_btn_lbl1_render_callback',
216
+ ) );
217
+
218
+ // footer_above_btn_lbl2
219
+ $wp_customize->selective_refresh->add_partial( 'footer_above_btn_lbl2', array(
220
+ 'selector' => '.main-footer #action-bar a.contact-btn',
221
+ 'settings' => 'footer_above_btn_lbl2',
222
+ 'render_callback' => 'boostify_footer_above_btn_lbl2_render_callback',
223
+ ) );
224
+
225
+ }
226
+
227
+ add_action( 'customize_register', 'boostify_abv_footer_partials' );
228
+
229
+ // footer_above_ttl
230
+ function boostify_footer_above_ttl_render_callback() {
231
+ return get_theme_mod( 'footer_above_ttl' );
232
+ }
233
+
234
+ // footer_above_btn_lbl1
235
+ function boostify_footer_above_btn_lbl1_render_callback() {
236
+ return get_theme_mod( 'footer_above_btn_lbl1' );
237
+ }
238
+
239
+ // footer_above_btn_lbl2
240
+ function boostify_footer_above_btn_lbl2_render_callback() {
241
+ return get_theme_mod( 'footer_above_btn_lbl2' );
242
+ }
inc/boostify/features/boostify-header.php ADDED
@@ -0,0 +1,380 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function boostify_abv_header_settings( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+ /*=========================================
5
+ Header Settings Panel
6
+ =========================================*/
7
+ $wp_customize->add_panel(
8
+ 'header_section',
9
+ array(
10
+ 'priority' => 2,
11
+ 'capability' => 'edit_theme_options',
12
+ 'title' => __('Header', 'clever-fox'),
13
+ )
14
+ );
15
+
16
+ /*=========================================
17
+ Boostify Site Identity
18
+ =========================================*/
19
+ $wp_customize->add_section(
20
+ 'title_tagline',
21
+ array(
22
+ 'priority' => 1,
23
+ 'title' => __('Site Identity','clever-fox'),
24
+ 'panel' => 'header_section',
25
+ )
26
+ );
27
+
28
+ // Logo Width //
29
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
30
+ $wp_customize->add_setting(
31
+ 'logo_width',
32
+ array(
33
+ 'default' => '140',
34
+ 'capability' => 'edit_theme_options',
35
+ 'sanitize_callback' => 'boostify_sanitize_range_value',
36
+ 'transport' => 'postMessage',
37
+ )
38
+ );
39
+ $wp_customize->add_control(
40
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'logo_width',
41
+ array(
42
+ 'label' => __( 'Logo Width', 'clever-fox' ),
43
+ 'section' => 'title_tagline',
44
+ 'input_attrs' => array(
45
+ 'min' => 0,
46
+ 'max' => 500,
47
+ 'step' => 1,
48
+ //'suffix' => 'px', //optional suffix
49
+ ),
50
+ ) )
51
+ );
52
+ }
53
+
54
+
55
+ /*=========================================
56
+ Above Header Section
57
+ =========================================*/
58
+ $wp_customize->add_section(
59
+ 'above_header',
60
+ array(
61
+ 'priority' => 2,
62
+ 'title' => __('Above Header','clever-fox'),
63
+ 'panel' => 'header_section',
64
+ )
65
+ );
66
+
67
+ // Mobile
68
+ $wp_customize->add_setting(
69
+ 'hdr_top_mbl'
70
+ ,array(
71
+ 'capability' => 'edit_theme_options',
72
+ 'sanitize_callback' => 'boostify_sanitize_text',
73
+ 'priority' => 1,
74
+ )
75
+ );
76
+
77
+ $wp_customize->add_control(
78
+ 'hdr_top_mbl',
79
+ array(
80
+ 'type' => 'hidden',
81
+ 'label' => __('Phone','clever-fox'),
82
+ 'section' => 'above_header',
83
+
84
+ )
85
+ );
86
+ $wp_customize->add_setting(
87
+ 'hide_show_mbl_details' ,
88
+ array(
89
+ 'default' => '1',
90
+ 'capability' => 'edit_theme_options',
91
+ 'sanitize_callback' => 'boostify_sanitize_checkbox',
92
+ 'priority' => 2,
93
+ )
94
+ );
95
+
96
+ $wp_customize->add_control(
97
+ 'hide_show_mbl_details',
98
+ array(
99
+ 'label' => esc_html__( 'Hide/Show', 'clever-fox' ),
100
+ 'section' => 'above_header',
101
+ 'type' => 'checkbox'
102
+ )
103
+ );
104
+ // icon //
105
+ $wp_customize->add_setting(
106
+ 'tlh_mobile_icon',
107
+ array(
108
+ 'default' => 'fa-phone',
109
+ 'sanitize_callback' => 'sanitize_text_field',
110
+ 'capability' => 'edit_theme_options',
111
+ )
112
+ );
113
+
114
+ $wp_customize->add_control(new Boostify_Icon_Picker_Control($wp_customize,
115
+ 'tlh_mobile_icon',
116
+ array(
117
+ 'label' => __('Icon','clever-fox'),
118
+ 'section' => 'above_header',
119
+ 'iconset' => 'fa',
120
+
121
+ ))
122
+ );
123
+
124
+ // Mobile title //
125
+ $wp_customize->add_setting(
126
+ 'tlh_mobile_title',
127
+ array(
128
+ 'default' => __('Call: 0 (123) 456 7891','clever-fox'),
129
+ 'sanitize_callback' => 'boostify_sanitize_text',
130
+ 'transport' => $selective_refresh,
131
+ 'capability' => 'edit_theme_options',
132
+ 'priority' => 3,
133
+ )
134
+ );
135
+
136
+ $wp_customize->add_control(
137
+ 'tlh_mobile_title',
138
+ array(
139
+ 'label' => __('Title','clever-fox'),
140
+ 'section' => 'above_header',
141
+ 'type' => 'text'
142
+ )
143
+ );
144
+
145
+ // Link //
146
+ $wp_customize->add_setting(
147
+ 'tlh_mobile_link',
148
+ array(
149
+ 'sanitize_callback' => 'boostify_sanitize_url',
150
+ 'capability' => 'edit_theme_options',
151
+ 'priority' => 4,
152
+ )
153
+ );
154
+
155
+ $wp_customize->add_control(
156
+ 'tlh_mobile_link',
157
+ array(
158
+ 'label' => __('Link','clever-fox'),
159
+ 'section' => 'above_header',
160
+ 'type' => 'text'
161
+ )
162
+ );
163
+ // Mobile
164
+ $wp_customize->add_setting(
165
+ 'hdr_top_email'
166
+ ,array(
167
+ 'capability' => 'edit_theme_options',
168
+ 'sanitize_callback' => 'boostify_sanitize_text',
169
+ 'priority' => 5,
170
+ )
171
+ );
172
+
173
+ $wp_customize->add_control(
174
+ 'hdr_top_email',
175
+ array(
176
+ 'type' => 'hidden',
177
+ 'label' => __('Email','clever-fox'),
178
+ 'section' => 'above_header',
179
+ )
180
+ );
181
+ $wp_customize->add_setting(
182
+ 'hide_show_email_details' ,
183
+ array(
184
+ 'default' => '1',
185
+ 'capability' => 'edit_theme_options',
186
+ 'sanitize_callback' => 'boostify_sanitize_checkbox',
187
+ 'priority' => 6,
188
+ )
189
+ );
190
+
191
+ $wp_customize->add_control(
192
+ 'hide_show_email_details',
193
+ array(
194
+ 'label' => esc_html__( 'Hide/Show', 'clever-fox' ),
195
+ 'section' => 'above_header',
196
+ 'type' => 'checkbox'
197
+ )
198
+ );
199
+
200
+ // icon //
201
+ $wp_customize->add_setting(
202
+ 'tlh_email_icon',
203
+ array(
204
+ 'default' => 'fa-envelope',
205
+ 'sanitize_callback' => 'sanitize_text_field',
206
+ 'capability' => 'edit_theme_options',
207
+ )
208
+ );
209
+
210
+ $wp_customize->add_control(new Boostify_Icon_Picker_Control($wp_customize,
211
+ 'tlh_email_icon',
212
+ array(
213
+ 'label' => __('Icon','clever-fox'),
214
+ 'section' => 'above_header',
215
+ 'iconset' => 'fa',
216
+
217
+ ))
218
+ );
219
+ // Mobile title //
220
+ $wp_customize->add_setting(
221
+ 'tlh_email_title',
222
+ array(
223
+ 'default' => __('info@example.com','clever-fox'),
224
+ 'sanitize_callback' => 'boostify_sanitize_text',
225
+ 'capability' => 'edit_theme_options',
226
+ 'transport' => $selective_refresh,
227
+ 'priority' => 7,
228
+ )
229
+ );
230
+
231
+ $wp_customize->add_control(
232
+ 'tlh_email_title',
233
+ array(
234
+ 'label' => __('Title','clever-fox'),
235
+ 'section' => 'above_header',
236
+ 'type' => 'text'
237
+ )
238
+ );
239
+
240
+ // Link //
241
+ $wp_customize->add_setting(
242
+ 'tlh_email_link',
243
+ array(
244
+ 'sanitize_callback' => 'boostify_sanitize_url',
245
+ 'capability' => 'edit_theme_options',
246
+ 'priority' => 8,
247
+ )
248
+ );
249
+
250
+ $wp_customize->add_control(
251
+ 'tlh_email_link',
252
+ array(
253
+ 'label' => __('Link','clever-fox'),
254
+ 'section' => 'above_header',
255
+ 'type' => 'text'
256
+ )
257
+ );
258
+
259
+
260
+
261
+
262
+ // Social Head
263
+ $wp_customize->add_setting(
264
+ 'hdr_top_social'
265
+ ,array(
266
+ 'capability' => 'edit_theme_options',
267
+ 'sanitize_callback' => 'boostify_sanitize_text',
268
+ 'priority' => 11,
269
+ )
270
+ );
271
+
272
+ $wp_customize->add_control(
273
+ 'hdr_top_social',
274
+ array(
275
+ 'type' => 'hidden',
276
+ 'label' => __('Social Icon','clever-fox'),
277
+ 'section' => 'above_header',
278
+ )
279
+ );
280
+ $wp_customize->add_setting(
281
+ 'hs_hdr_social' ,
282
+ array(
283
+ 'default' => '1',
284
+ 'capability' => 'edit_theme_options',
285
+ 'sanitize_callback' => 'boostify_sanitize_checkbox',
286
+ 'priority' => 12,
287
+ )
288
+ );
289
+
290
+ $wp_customize->add_control(
291
+ 'hs_hdr_social',
292
+ array(
293
+ 'label' => esc_html__( 'Hide/Show', 'clever-fox' ),
294
+ 'section' => 'above_header',
295
+ 'type' => 'checkbox'
296
+ )
297
+ );
298
+
299
+ /**
300
+ * Customizer Repeater
301
+ */
302
+ $wp_customize->add_setting( 'social_icons',
303
+ array(
304
+ 'sanitize_callback' => 'boostify_repeater_sanitize',
305
+ 'priority' => 13,
306
+ 'default' => boostify_get_social_icon_default()
307
+ )
308
+ );
309
+
310
+ $wp_customize->add_control(
311
+ new BOOSTIFY_Repeater( $wp_customize,
312
+ 'social_icons',
313
+ array(
314
+ 'label' => esc_html__('Social Icons','clever-fox'),
315
+ 'section' => 'above_header',
316
+ 'add_field_label' => esc_html__( 'Add New Social', 'clever-fox' ),
317
+ 'item_name' => esc_html__( 'Social', 'clever-fox' ),
318
+ 'customizer_repeater_icon_control' => true,
319
+ 'customizer_repeater_link_control' => true,
320
+ )
321
+ )
322
+ );
323
+
324
+ //Pro feature
325
+ class Boostify_social__section_upgrade extends WP_Customize_Control {
326
+ public function render_content() {
327
+ ?>
328
+ <a class="customizer_social_upgrade_section up-to-pro" href="javascript:void(0)" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
329
+ <?php
330
+ }
331
+ }
332
+
333
+ $wp_customize->add_setting( 'boostify_social_upgrade_to_pro', array(
334
+ 'capability' => 'edit_theme_options',
335
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
336
+ ));
337
+ $wp_customize->add_control(
338
+ new Boostify_social__section_upgrade(
339
+ $wp_customize,
340
+ 'boostify_social_upgrade_to_pro',
341
+ array(
342
+ 'section' => 'above_header',
343
+ )
344
+ )
345
+ );
346
+ }
347
+ add_action( 'customize_register', 'boostify_abv_header_settings' );
348
+
349
+ // Header selective refresh
350
+ function boostify_abv_header_partials( $wp_customize ){
351
+
352
+ // tlh_mobile_title
353
+ $wp_customize->selective_refresh->add_partial( 'tlh_mobile_title', array(
354
+ 'selector' => '#header-top .phone a',
355
+ 'settings' => 'tlh_mobile_title',
356
+ 'render_callback' => 'boostify_tlh_mobile_title_render_callback',
357
+ ) );
358
+
359
+
360
+ // tlh_email_title
361
+ $wp_customize->selective_refresh->add_partial( 'tlh_email_title', array(
362
+ 'selector' => '#header-top .email a',
363
+ 'settings' => 'tlh_email_title',
364
+ 'render_callback' => 'boostify_tlh_email_title_render_callback',
365
+ ) );
366
+
367
+ }
368
+
369
+ add_action( 'customize_register', 'boostify_abv_header_partials' );
370
+
371
+ // tlh_mobile_title
372
+ function boostify_tlh_mobile_title_render_callback() {
373
+ return get_theme_mod( 'tlh_mobile_title' );
374
+ }
375
+
376
+
377
+ // tlh_email_title
378
+ function boostify_tlh_email_title_render_callback() {
379
+ return get_theme_mod( 'tlh_email_title' );
380
+ }
inc/boostify/features/boostify-info.php ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function boostify_info_setting( $wp_customize ) {
3
+
4
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
5
+ /*=========================================
6
+ Info
7
+ =========================================*/
8
+ $wp_customize->add_section(
9
+ 'info_setting', array(
10
+ 'title' => esc_html__( 'Info Section', 'clever-fox' ),
11
+ 'panel' => 'boostify_frontpage_sections',
12
+ 'priority' => 2,
13
+ )
14
+ );
15
+
16
+ /*=========================================
17
+ Info contents
18
+ =========================================*/
19
+
20
+ // Settings
21
+ $wp_customize->add_setting(
22
+ 'info_contents_head'
23
+ ,array(
24
+ 'capability' => 'edit_theme_options',
25
+ 'sanitize_callback' => 'boostify_sanitize_text',
26
+ 'priority' => 3,
27
+ )
28
+ );
29
+
30
+ $wp_customize->add_control(
31
+ 'info_contents_head',
32
+ array(
33
+ 'type' => 'hidden',
34
+ 'label' => __('Info Contents','clever-fox'),
35
+ 'section' => 'info_setting',
36
+ )
37
+ );
38
+
39
+ /**
40
+ * Customizer Repeater for add Info
41
+ */
42
+
43
+ $wp_customize->add_setting( 'info_contents',
44
+ array(
45
+ 'sanitize_callback' => 'boostify_repeater_sanitize',
46
+ 'priority' => 5,
47
+ 'default' => boostify_get_info_default()
48
+ )
49
+ );
50
+
51
+ $wp_customize->add_control(
52
+ new Boostify_Repeater( $wp_customize,
53
+ 'info_contents',
54
+ array(
55
+ 'label' => esc_html__('Info','clever-fox'),
56
+ 'section' => 'info_setting',
57
+ 'add_field_label' => esc_html__( 'Add New Info', 'clever-fox' ),
58
+ 'item_name' => esc_html__( 'Info', 'clever-fox' ),
59
+
60
+
61
+ 'customizer_repeater_icon_control' => true,
62
+ 'customizer_repeater_title_control' => true,
63
+ 'customizer_repeater_subtitle_control' => true,
64
+ 'customizer_repeater_link_control' => true,
65
+ )
66
+ )
67
+ );
68
+
69
+
70
+ //Pro feature
71
+ class Boostify_info__section_upgrade extends WP_Customize_Control {
72
+ public function render_content() {
73
+ ?>
74
+ <a class="customizer_info_upgrade_section up-to-pro" href="javascript:void(0)" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
75
+ <?php
76
+ }
77
+ }
78
+
79
+ $wp_customize->add_setting( 'boostify_info_upgrade_to_pro', array(
80
+ 'capability' => 'edit_theme_options',
81
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
82
+ ));
83
+ $wp_customize->add_control(
84
+ new Boostify_info__section_upgrade(
85
+ $wp_customize,
86
+ 'boostify_info_upgrade_to_pro',
87
+ array(
88
+ 'section' => 'info_setting',
89
+ )
90
+ )
91
+ );
92
+
93
+ }
94
+ add_action( 'customize_register', 'boostify_info_setting' );
95
+
96
+ /**
97
+ * Add selective refresh for Front page section section controls.
98
+ */
99
+ function boostify_home_info_section_partials( $wp_customize ){
100
+
101
+ //info_contents
102
+ $wp_customize->selective_refresh->add_partial( 'info_contents', array(
103
+ 'selector' => '.contact-info-section .row',
104
+ ) );
105
+ }
106
+ add_action( 'customize_register', 'boostify_home_info_section_partials' );
inc/boostify/features/boostify-service.php ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function boostify_service_setting( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+ /*=========================================
5
+ Service Section
6
+ =========================================*/
7
+ $wp_customize->add_section(
8
+ 'service_setting', array(
9
+ 'title' => esc_html__( 'Service Section', 'clever-fox' ),
10
+ 'priority' => 5,
11
+ 'panel' => 'boostify_frontpage_sections',
12
+ )
13
+ );
14
+
15
+ // Service Header Section //
16
+ $wp_customize->add_setting(
17
+ 'service_headings'
18
+ ,array(
19
+ 'capability' => 'edit_theme_options',
20
+ 'sanitize_callback' => 'boostify_sanitize_text',
21
+ 'priority' => 3,
22
+ )
23
+ );
24
+
25
+ $wp_customize->add_control(
26
+ 'service_headings',
27
+ array(
28
+ 'type' => 'hidden',
29
+ 'label' => __('Header','clever-fox'),
30
+ 'section' => 'service_setting',
31
+ )
32
+ );
33
+
34
+ // Service Title //
35
+ $wp_customize->add_setting(
36
+ 'service_title',
37
+ array(
38
+ 'default' => __('Outstanding <span class="av-heading animate-7"><span class="av-text-wrapper"><b class="is-show">Services</b> <b>Services</b><b>Services</b></span></span>','clever-fox'),
39
+ 'capability' => 'edit_theme_options',
40
+ 'sanitize_callback' => 'boostify_sanitize_html',
41
+ 'transport' => $selective_refresh,
42
+ 'priority' => 4,
43
+ )
44
+ );
45
+
46
+ $wp_customize->add_control(
47
+ 'service_title',
48
+ array(
49
+ 'label' => __('Title','clever-fox'),
50
+ 'section' => 'service_setting',
51
+ 'type' => 'textarea',
52
+ )
53
+ );
54
+
55
+ // Service Description //
56
+ $wp_customize->add_setting(
57
+ 'service_description',
58
+ array(
59
+ 'default' => __('Lorem Ipsum is simply dummy of printing and typesetting and industry. Lorem Ipsum been.','clever-fox'),
60
+ 'capability' => 'edit_theme_options',
61
+ 'sanitize_callback' => 'boostify_sanitize_text',
62
+ 'transport' => $selective_refresh,
63
+ 'priority' => 6,
64
+ )
65
+ );
66
+
67
+ $wp_customize->add_control(
68
+ 'service_description',
69
+ array(
70
+ 'label' => __('Description','clever-fox'),
71
+ 'section' => 'service_setting',
72
+ 'type' => 'textarea',
73
+ )
74
+ );
75
+
76
+ // Service content Section //
77
+
78
+ $wp_customize->add_setting(
79
+ 'service_content_head'
80
+ ,array(
81
+ 'capability' => 'edit_theme_options',
82
+ 'sanitize_callback' => 'boostify_sanitize_text',
83
+ 'priority' => 7,
84
+ )
85
+ );
86
+
87
+ $wp_customize->add_control(
88
+ 'service_content_head',
89
+ array(
90
+ 'type' => 'hidden',
91
+ 'label' => __('Content','clever-fox'),
92
+ 'section' => 'service_setting',
93
+ )
94
+ );
95
+
96
+ /**
97
+ * Customizer Repeater for add service
98
+ */
99
+
100
+ $wp_customize->add_setting( 'service_contents',
101
+ array(
102
+ 'sanitize_callback' => 'boostify_repeater_sanitize',
103
+ 'transport' => $selective_refresh,
104
+ 'priority' => 8,
105
+ 'default' => boostify_get_service_default()
106
+ )
107
+ );
108
+
109
+ $wp_customize->add_control(
110
+ new Boostify_Repeater( $wp_customize,
111
+ 'service_contents',
112
+ array(
113
+ 'label' => esc_html__('Service','clever-fox'),
114
+ 'section' => 'service_setting',
115
+ 'add_field_label' => esc_html__( 'Add New Service', 'clever-fox' ),
116
+ 'item_name' => esc_html__( 'Service', 'clever-fox' ),
117
+ 'customizer_repeater_icon_control' => true,
118
+ 'customizer_repeater_image_control' => true,
119
+ 'customizer_repeater_title_control' => true,
120
+ 'customizer_repeater_text_control' => true,
121
+ 'customizer_repeater_text2_control' => true,
122
+ 'customizer_repeater_link_control' => true,
123
+ )
124
+ )
125
+ );
126
+
127
+ //Pro feature
128
+ class Boostify_service__section_upgrade extends WP_Customize_Control {
129
+ public function render_content() {
130
+ ?>
131
+ <a class="customizer_service_upgrade_section up-to-pro" href="javascript:void(0)" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
132
+ <?php
133
+ }
134
+ }
135
+
136
+ $wp_customize->add_setting( 'boostify_service_upgrade_to_pro', array(
137
+ 'capability' => 'edit_theme_options',
138
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
139
+ ));
140
+ $wp_customize->add_control(
141
+ new Boostify_service__section_upgrade(
142
+ $wp_customize,
143
+ 'boostify_service_upgrade_to_pro',
144
+ array(
145
+ 'section' => 'service_setting',
146
+ )
147
+ )
148
+ );
149
+ }
150
+
151
+ add_action( 'customize_register', 'boostify_service_setting' );
152
+
153
+ // service selective refresh
154
+ function boostify_home_service_section_partials( $wp_customize ){
155
+ // service title
156
+ $wp_customize->selective_refresh->add_partial( 'service_title', array(
157
+ 'selector' => '.service-home .section-header h2',
158
+ 'settings' => 'service_title',
159
+ 'render_callback' => 'boostify_service_title_render_callback',
160
+ ) );
161
+
162
+ // service description
163
+ $wp_customize->selective_refresh->add_partial( 'service_description', array(
164
+ 'selector' => '.service-home .section-header p',
165
+ 'settings' => 'service_description',
166
+ 'render_callback' => 'boostify_service_desc_render_callback',
167
+ ) );
168
+ // service content
169
+ $wp_customize->selective_refresh->add_partial( 'service_contents', array(
170
+ 'selector' => '.service-home #services'
171
+ ) );
172
+
173
+ }
174
+
175
+ add_action( 'customize_register', 'boostify_home_service_section_partials' );
176
+
177
+ // service title
178
+ function boostify_service_title_render_callback() {
179
+ return get_theme_mod( 'service_title' );
180
+ }
181
+
182
+ // service description
183
+ function boostify_service_desc_render_callback() {
184
+ return get_theme_mod( 'service_description' );
185
+ }
inc/boostify/features/boostify-slider.php ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function boostify_slider_setting( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+ /*=========================================
5
+ Slider Section Panel
6
+ =========================================*/
7
+ $wp_customize->add_panel(
8
+ 'boostify_frontpage_sections', array(
9
+ 'priority' => 32,
10
+ 'title' => esc_html__( 'Homepage Sections', 'clever-fox' ),
11
+ )
12
+ );
13
+
14
+ $wp_customize->add_section(
15
+ 'slider_setting', array(
16
+ 'title' => esc_html__( 'Slider Section', 'clever-fox' ),
17
+ 'panel' => 'boostify_frontpage_sections',
18
+ 'priority' => 1,
19
+ )
20
+ );
21
+
22
+ // slider Contents
23
+ $wp_customize->add_setting(
24
+ 'slider_content_head'
25
+ ,array(
26
+ 'capability' => 'edit_theme_options',
27
+ 'sanitize_callback' => 'boostify_sanitize_text',
28
+ 'priority' => 4,
29
+ )
30
+ );
31
+
32
+ $wp_customize->add_control(
33
+ 'slider_content_head',
34
+ array(
35
+ 'type' => 'hidden',
36
+ 'label' => __('Contents','clever-fox'),
37
+ 'section' => 'slider_setting',
38
+ )
39
+ );
40
+
41
+ /**
42
+ * Customizer Repeater for add slides
43
+ */
44
+
45
+ $wp_customize->add_setting( 'slider',
46
+ array(
47
+ 'sanitize_callback' => 'boostify_repeater_sanitize',
48
+ 'priority' => 5,
49
+ 'default' => boostify_get_slider_default()
50
+ )
51
+ );
52
+
53
+ $wp_customize->add_control(
54
+ new Boostify_Repeater( $wp_customize,
55
+ 'slider',
56
+ array(
57
+ 'label' => esc_html__('Slide','clever-fox'),
58
+ 'section' => 'slider_setting',
59
+ 'add_field_label' => esc_html__( 'Add New Slider', 'clever-fox' ),
60
+ 'item_name' => esc_html__( 'Slider', 'clever-fox' ),
61
+
62
+
63
+ 'customizer_repeater_icon_control' => false,
64
+ 'customizer_repeater_title_control' => true,
65
+ 'customizer_repeater_subtitle_control' => true,
66
+ 'customizer_repeater_text_control' => true,
67
+ 'customizer_repeater_text2_control'=> true,
68
+ 'customizer_repeater_link_control' => true,
69
+ 'customizer_repeater_slide_align' => true,
70
+ 'customizer_repeater_checkbox_control' => true,
71
+ 'customizer_repeater_image_control' => true,
72
+ 'customizer_repeater_image2_control' => true,
73
+ )
74
+ )
75
+ );
76
+
77
+ //Pro feature
78
+ class Boostify_slider__section_upgrade extends WP_Customize_Control {
79
+ public function render_content() {
80
+ ?>
81
+ <a class="customizer_slider_upgrade_section up-to-pro" href="javascript:void(0)" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
82
+
83
+ <?php
84
+ }
85
+ }
86
+
87
+ $wp_customize->add_setting( 'boostify_slider_upgrade_to_pro', array(
88
+ 'capability' => 'edit_theme_options',
89
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
90
+ 'priority' => 5,
91
+ ));
92
+ $wp_customize->add_control(
93
+ new Boostify_slider__section_upgrade(
94
+ $wp_customize,
95
+ 'boostify_slider_upgrade_to_pro',
96
+ array(
97
+ 'section' => 'slider_setting',
98
+ )
99
+ )
100
+ );
101
+
102
+
103
+ // slider opacity
104
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
105
+ $wp_customize->add_setting(
106
+ 'slider_opacity',
107
+ array(
108
+ 'default' => '0.75',
109
+ 'capability' => 'edit_theme_options',
110
+ 'priority' => 7,
111
+ )
112
+ );
113
+ $wp_customize->add_control(
114
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'slider_opacity',
115
+ array(
116
+ 'label' => __( 'opacity', 'clever-fox' ),
117
+ 'section' => 'slider_setting',
118
+ 'input_attrs' => array(
119
+ 'min' => 0,
120
+ 'max' => 0.9,
121
+ 'step' => 0.1,
122
+ //'suffix' => 'px', //optional suffix
123
+ ),
124
+ ) )
125
+ );
126
+ }
127
+ }
128
+
129
+ add_action( 'customize_register', 'boostify_slider_setting' );
inc/boostify/features/boostify-testimonial.php ADDED
@@ -0,0 +1,243 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function boostify_testimonial_setting( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+ /*=========================================
5
+ Testimonial Section
6
+ =========================================*/
7
+ $wp_customize->add_section(
8
+ 'testimonial_setting', array(
9
+ 'title' => esc_html__( 'Testimonial Section', 'clever-fox' ),
10
+ 'priority' => 9,
11
+ 'panel' => 'boostify_frontpage_sections',
12
+ )
13
+ );
14
+
15
+ // Testimnial Header Section //
16
+ $wp_customize->add_setting(
17
+ 'testimonial_headings'
18
+ ,array(
19
+ 'capability' => 'edit_theme_options',
20
+ 'sanitize_callback' => 'boostify_sanitize_text',
21
+ 'priority' => 3,
22
+ )
23
+ );
24
+
25
+ $wp_customize->add_control(
26
+ 'testimonial_headings',
27
+ array(
28
+ 'type' => 'hidden',
29
+ 'label' => __('Header','clever-fox'),
30
+ 'section' => 'testimonial_setting',
31
+ )
32
+ );
33
+
34
+ // Testimonial Title //
35
+ $wp_customize->add_setting(
36
+ 'testimonial_title',
37
+ array(
38
+ 'default' => __('Outstanding <span class="av-heading animate-7"><span class="av-text-wrapper"><b class="is-show">Testimonial</b> <b>Testimonial</b><b>Testimonial</b></span></span>','clever-fox'),
39
+ 'capability' => 'edit_theme_options',
40
+ 'sanitize_callback' => 'boostify_sanitize_html',
41
+ 'transport' => $selective_refresh,
42
+ 'priority' => 4,
43
+ )
44
+ );
45
+
46
+ $wp_customize->add_control(
47
+ 'testimonial_title',
48
+ array(
49
+ 'label' => __('Title','clever-fox'),
50
+ 'section' => 'testimonial_setting',
51
+ 'type' => 'textarea',
52
+ )
53
+ );
54
+
55
+
56
+ // Testimonial Description //
57
+ $wp_customize->add_setting(
58
+ 'testimonial_description',
59
+ array(
60
+ 'default' => __('Lorem Ipsum is simply dummy of printing and typesetting and industry. Lorem Ipsum been.','clever-fox'),
61
+ 'capability' => 'edit_theme_options',
62
+ 'sanitize_callback' => 'boostify_sanitize_text',
63
+ 'transport' => $selective_refresh,
64
+ 'priority' => 6,
65
+ )
66
+ );
67
+
68
+ $wp_customize->add_control(
69
+ 'testimonial_description',
70
+ array(
71
+ 'label' => __('Description','clever-fox'),
72
+ 'section' => 'testimonial_setting',
73
+ 'type' => 'textarea',
74
+ )
75
+ );
76
+
77
+ // Testimonial content Section //
78
+
79
+ $wp_customize->add_setting(
80
+ 'test_content_head'
81
+ ,array(
82
+ 'capability' => 'edit_theme_options',
83
+ 'sanitize_callback' => 'boostify_sanitize_text',
84
+ 'priority' => 7,
85
+ )
86
+ );
87
+
88
+ $wp_customize->add_control(
89
+ 'test_content_head',
90
+ array(
91
+ 'type' => 'hidden',
92
+ 'label' => __('Content','clever-fox'),
93
+ 'section' => 'testimonial_setting',
94
+ )
95
+ );
96
+
97
+ /**
98
+ * Customizer Repeater for add Testimonial
99
+ */
100
+
101
+ $wp_customize->add_setting( 'testimonials_content',
102
+ array(
103
+ 'sanitize_callback' => 'boostify_repeater_sanitize',
104
+ 'priority' => 8,
105
+ 'default' => boostify_get_testimonial_default()
106
+ )
107
+ );
108
+
109
+ $wp_customize->add_control(
110
+ new Boostify_Repeater( $wp_customize,
111
+ 'testimonials_content',
112
+ array(
113
+ 'label' => esc_html__('Testimonial','clever-fox'),
114
+ 'section' => 'testimonial_setting',
115
+ 'add_field_label' => esc_html__( 'Add New Testimonial', 'clever-fox' ),
116
+ 'item_name' => esc_html__( 'Testimonial', 'clever-fox' ),
117
+ 'customizer_repeater_image_control' => true,
118
+ 'customizer_repeater_title_control' => true,
119
+ 'customizer_repeater_subtitle_control' => true,
120
+ 'customizer_repeater_text_control' => true,
121
+ )
122
+ )
123
+ );
124
+
125
+ //Pro feature
126
+ class Boostify_testimonial__section_upgrade extends WP_Customize_Control {
127
+ public function render_content() {
128
+ ?>
129
+ <a class="customizer_testimonial_upgrade_section up-to-pro" href="javascript:void(0)" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
130
+ <?php
131
+ }
132
+ }
133
+
134
+ $wp_customize->add_setting( 'boostify_testimonial_upgrade_to_pro', array(
135
+ 'capability' => 'edit_theme_options',
136
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
137
+ ));
138
+ $wp_customize->add_control(
139
+ new Boostify_testimonial__section_upgrade(
140
+ $wp_customize,
141
+ 'boostify_testimonial_upgrade_to_pro',
142
+ array(
143
+ 'section' => 'testimonial_setting',
144
+ )
145
+ )
146
+ );
147
+
148
+
149
+ // Testimonial Background //
150
+ $wp_customize->add_setting(
151
+ 'testimonial_bg_head'
152
+ ,array(
153
+ 'capability' => 'edit_theme_options',
154
+ 'sanitize_callback' => 'boostify_sanitize_text',
155
+ 'priority' => 10,
156
+ )
157
+ );
158
+
159
+ $wp_customize->add_control(
160
+ 'testimonial_bg_head',
161
+ array(
162
+ 'type' => 'hidden',
163
+ 'label' => __('Background','clever-fox'),
164
+ 'section' => 'testimonial_setting',
165
+ )
166
+ );
167
+
168
+ $wp_customize->add_setting(
169
+ 'testimonial_bg_setting' ,
170
+ array(
171
+ 'default' => esc_url(CLEVERFOX_PLUGIN_URL .'inc/boostify/images/patternshape-bg.jpg'),
172
+ 'capability' => 'edit_theme_options',
173
+ 'sanitize_callback' => 'boostify_sanitize_url',
174
+ 'priority' => 11,
175
+ )
176
+ );
177
+
178
+ $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize , 'testimonial_bg_setting' ,
179
+ array(
180
+ 'label' => __( 'Background Image', 'clever-fox' ),
181
+ 'section' => 'testimonial_setting',
182
+ )
183
+ ));
184
+
185
+ $wp_customize->add_setting(
186
+ 'testimonial_bg_position' ,
187
+ array(
188
+ 'default' => 'scroll',
189
+ 'capability' => 'edit_theme_options',
190
+ 'sanitize_callback' => 'boostify_sanitize_select',
191
+ 'priority' => 12,
192
+ )
193
+ );
194
+
195
+ $wp_customize->add_control(
196
+ 'testimonial_bg_position' ,
197
+ array(
198
+ 'label' => __( 'Image Position', 'clever-fox' ),
199
+ 'section' => 'testimonial_setting',
200
+ 'type' => 'radio',
201
+ 'choices' =>
202
+ array(
203
+ 'fixed'=> __( 'Fixed', 'clever-fox' ),
204
+ 'scroll' => __( 'Scroll', 'clever-fox' )
205
+ )
206
+ )
207
+ );
208
+ }
209
+
210
+ add_action( 'customize_register', 'boostify_testimonial_setting' );
211
+
212
+ // Testimonial selective refresh
213
+ function boostify_testimonial_section_partials( $wp_customize ){
214
+
215
+ // testimonial_title
216
+ $wp_customize->selective_refresh->add_partial( 'testimonial_title', array(
217
+ 'selector' => '#testimonial .section-header h2',
218
+ 'settings' => 'testimonial_title',
219
+ 'render_callback' => 'boostify_testimonial_title_render_callback',
220
+
221
+ ) );
222
+
223
+ // testimonial_description
224
+ $wp_customize->selective_refresh->add_partial( 'testimonial_description', array(
225
+ 'selector' => '#testimonial .section-header p',
226
+ 'settings' => 'testimonial_description',
227
+ 'render_callback' => 'boostify_testimonial_description_render_callback',
228
+
229
+ ) );
230
+
231
+ }
232
+
233
+ add_action( 'customize_register', 'boostify_testimonial_section_partials' );
234
+
235
+ // testimonial_title
236
+ function boostify_testimonial_title_render_callback() {
237
+ return get_theme_mod( 'testimonial_title' );
238
+ }
239
+
240
+ // testimonial_description
241
+ function boostify_testimonial_description_render_callback() {
242
+ return get_theme_mod( 'testimonial_description' );
243
+ }
inc/boostify/features/boostify-typography.php ADDED
@@ -0,0 +1,265 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function boostify_typography( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+
5
+ $wp_customize->add_panel(
6
+ 'boostify_typography', array(
7
+ 'priority' => 38,
8
+ 'title' => esc_html__( 'Typography', 'clever-fox' ),
9
+ )
10
+ );
11
+
12
+ /*=========================================
13
+ Boostify Typography
14
+ =========================================*/
15
+ $wp_customize->add_section(
16
+ 'boostify_typography',
17
+ array(
18
+ 'priority' => 1,
19
+ 'title' => __('Body Typography','clever-fox'),
20
+ 'panel' => 'boostify_typography',
21
+ )
22
+ );
23
+
24
+ // Body Font Size //
25
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
26
+ $wp_customize->add_setting(
27
+ 'boostify_body_font_size',
28
+ array(
29
+ 'default' => '15',
30
+ 'capability' => 'edit_theme_options',
31
+ 'sanitize_callback' => 'boostify_sanitize_range_value',
32
+ 'transport' => 'postMessage',
33
+ )
34
+ );
35
+ $wp_customize->add_control(
36
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'boostify_body_font_size',
37
+ array(
38
+ 'label' => __( 'Size', 'clever-fox' ),
39
+ 'section' => 'boostify_typography',
40
+ 'priority' => 2,
41
+ 'input_attrs' => array(
42
+ 'min' => 0,
43
+ 'max' => 50,
44
+ 'step' => 1,
45
+ //'suffix' => 'px', //optional suffix
46
+ ),
47
+ ) )
48
+ );
49
+ }
50
+
51
+ // Body Font Size //
52
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
53
+ $wp_customize->add_setting(
54
+ 'boostify_body_line_height',
55
+ array(
56
+ 'default' => '1.5',
57
+ 'capability' => 'edit_theme_options',
58
+ 'sanitize_callback' => 'boostify_sanitize_range_value',
59
+ 'transport' => 'postMessage',
60
+ )
61
+ );
62
+ $wp_customize->add_control(
63
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'boostify_body_line_height',
64
+ array(
65
+ 'label' => __( 'Line Height', 'clever-fox' ),
66
+ 'section' => 'boostify_typography',
67
+ 'priority' => 3,
68
+ 'input_attrs' => array(
69
+ 'min' => 0,
70
+ 'max' => 4,
71
+ 'step' => 0.1,
72
+ //'suffix' => 'px', //optional suffix
73
+ ),
74
+ ) )
75
+ );
76
+ }
77
+
78
+ // Body Font style //
79
+ $wp_customize->add_setting( 'boostify_body_font_style', array(
80
+ 'capability' => 'edit_theme_options',
81
+ 'default' => 'inherit',
82
+ 'transport' => 'postMessage',
83
+ 'sanitize_callback' => 'boostify_sanitize_select',
84
+ ) );
85
+
86
+ $wp_customize->add_control(
87
+ new WP_Customize_Control(
88
+ $wp_customize, 'boostify_body_font_style', array(
89
+ 'label' => __( 'Font Style', 'clever-fox' ),
90
+ 'section' => 'boostify_typography',
91
+ 'type' => 'select',
92
+ 'priority' => 6,
93
+ 'choices' => array(
94
+ 'inherit' => __( 'Inherit', 'clever-fox' ),
95
+ 'normal' => __( 'Normal', 'clever-fox' ),
96
+ 'italic' => __( 'Italic', 'clever-fox' ),
97
+ 'oblique' => __( 'oblique', 'clever-fox' ),
98
+ ),
99
+ )
100
+ )
101
+ );
102
+ // Body Text Transform //
103
+ $wp_customize->add_setting( 'boostify_body_text_transform', array(
104
+ 'capability' => 'edit_theme_options',
105
+ 'default' => 'inherit',
106
+ 'transport' => 'postMessage',
107
+ 'sanitize_callback' => 'boostify_sanitize_select',
108
+ ) );
109
+
110
+ $wp_customize->add_control(
111
+ new WP_Customize_Control(
112
+ $wp_customize, 'boostify_body_text_transform', array(
113
+ 'label' => __( 'Transform', 'clever-fox' ),
114
+ 'section' => 'boostify_typography',
115
+ 'type' => 'select',
116
+ 'priority' => 7,
117
+ 'choices' => array(
118
+ 'inherit' => __( 'Default', 'clever-fox' ),
119
+ 'uppercase' => __( 'Uppercase', 'clever-fox' ),
120
+ 'lowercase' => __( 'Lowercase', 'clever-fox' ),
121
+ 'capitalize' => __( 'Capitalize', 'clever-fox' ),
122
+ ),
123
+ )
124
+ )
125
+ );
126
+ /*=========================================
127
+ Boostify Typography Headings
128
+ =========================================*/
129
+ $wp_customize->add_section(
130
+ 'boostify_headings_typography',
131
+ array(
132
+ 'priority' => 2,
133
+ 'title' => __('Headings','clever-fox'),
134
+ 'panel' => 'boostify_typography',
135
+ )
136
+ );
137
+
138
+ /*=========================================
139
+ Boostify Typography H1
140
+ =========================================*/
141
+ for ( $i = 1; $i <= 6; $i++ ) {
142
+ if($i == '1'){$j=36;}elseif($i == '2'){$j=32;}elseif($i == '3'){$j=28;}elseif($i == '4'){$j=24;}elseif($i == '5'){$j=20;}else{$j=16;}
143
+ $wp_customize->add_setting(
144
+ 'h' . $i . '_typography'
145
+ ,array(
146
+ 'capability' => 'edit_theme_options',
147
+ 'sanitize_callback' => 'boostify_sanitize_text',
148
+ )
149
+ );
150
+
151
+ $wp_customize->add_control(
152
+ 'h' . $i . '_typography',
153
+ array(
154
+ 'type' => 'hidden',
155
+ 'label' => esc_html('H' . $i .'','clever-fox'),
156
+ 'section' => 'boostify_headings_typography',
157
+ )
158
+ );
159
+
160
+ // Heading Font Size //
161
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
162
+ $wp_customize->add_setting(
163
+ 'boostify_h' . $i . '_font_size',
164
+ array(
165
+ 'default' => $j,
166
+ 'capability' => 'edit_theme_options',
167
+ 'sanitize_callback' => 'boostify_sanitize_range_value',
168
+ 'transport' => 'postMessage'
169
+ )
170
+ );
171
+ $wp_customize->add_control(
172
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'boostify_h' . $i . '_font_size',
173
+ array(
174
+ 'label' => __( 'Font Size', 'clever-fox' ),
175
+ 'section' => 'boostify_headings_typography',
176
+ 'input_attr' => array(
177
+ 'min' => 1,
178
+ 'max' => 100,
179
+ 'step' => 1,
180
+ )
181
+ ) )
182
+ );
183
+ }
184
+
185
+ // Heading Font Size //
186
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
187
+ $wp_customize->add_setting(
188
+ 'boostify_h' . $i . '_line_height',
189
+ array(
190
+ 'default' => '1.2',
191
+ 'capability' => 'edit_theme_options',
192
+ 'sanitize_callback' => 'boostify_sanitize_range_value',
193
+ 'transport' => 'postMessage',
194
+ )
195
+ );
196
+ $wp_customize->add_control(
197
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'boostify_h' . $i . '_line_height',
198
+ array(
199
+ 'label' => __( 'Line Height', 'clever-fox' ),
200
+ 'section' => 'boostify_headings_typography',
201
+ 'input_attrs' => array(
202
+ 'min' => 0,
203
+ 'max' => 4,
204
+ 'step' => 0.1,
205
+ //'suffix' => 'px', //optional suffix
206
+ ),
207
+ 'input_attr' => array(
208
+ 'min' => 0,
209
+ 'max' => 3,
210
+ 'step' => 0.1,
211
+ )
212
+ ) )
213
+ );
214
+ }
215
+
216
+ // Heading Font style //
217
+ $wp_customize->add_setting( 'boostify_h' . $i . '_font_style', array(
218
+ 'capability' => 'edit_theme_options',
219
+ 'default' => 'inherit',
220
+ 'transport' => 'postMessage',
221
+ 'sanitize_callback' => 'boostify_sanitize_select',
222
+ ) );
223
+
224
+ $wp_customize->add_control(
225
+ new WP_Customize_Control(
226
+ $wp_customize, 'boostify_h' . $i . '_font_style', array(
227
+ 'label' => __( 'Font Style', 'clever-fox' ),
228
+ 'section' => 'boostify_headings_typography',
229
+ 'type' => 'select',
230
+ 'choices' => array(
231
+ 'inherit' => __( 'Inherit', 'clever-fox' ),
232
+ 'normal' => __( 'Normal', 'clever-fox' ),
233
+ 'italic' => __( 'Italic', 'clever-fox' ),
234
+ 'oblique' => __( 'oblique', 'clever-fox' ),
235
+ ),
236
+ )
237
+ )
238
+ );
239
+
240
+ // Heading Text Transform //
241
+ $wp_customize->add_setting( 'boostify_h' . $i . '_text_transform', array(
242
+ 'capability' => 'edit_theme_options',
243
+ 'default' => 'inherit',
244
+ 'transport' => 'postMessage',
245
+ 'sanitize_callback' => 'boostify_sanitize_select',
246
+ ) );
247
+
248
+ $wp_customize->add_control(
249
+ new WP_Customize_Control(
250
+ $wp_customize, 'boostify_h' . $i . '_text_transform', array(
251
+ 'label' => __( 'Text Transform', 'clever-fox' ),
252
+ 'section' => 'boostify_headings_typography',
253
+ 'type' => 'select',
254
+ 'choices' => array(
255
+ 'inherit' => __( 'Default', 'clever-fox' ),
256
+ 'uppercase' => __( 'Uppercase', 'clever-fox' ),
257
+ 'lowercase' => __( 'Lowercase', 'clever-fox' ),
258
+ 'capitalize' => __( 'Capitalize', 'clever-fox' ),
259
+ ),
260
+ )
261
+ )
262
+ );
263
+ }
264
+ }
265
+ add_action( 'customize_register', 'boostify_typography' );
inc/boostify/images/features/features01.jpg ADDED
Binary file
inc/boostify/images/icon/icon01.png ADDED
Binary file
inc/boostify/images/icon/icon02.png ADDED
Binary file
inc/boostify/images/icon/icon03.png ADDED
Binary file
inc/boostify/images/icon/icon04.png ADDED
Binary file
inc/boostify/images/icon/icon05.png ADDED
Binary file
inc/boostify/images/icon/icon06.png ADDED
Binary file
inc/boostify/images/logo.png ADDED
Binary file
inc/boostify/images/patternshape-bg.jpg ADDED
Binary file
inc/boostify/images/slider/img01.jpg ADDED
Binary file
inc/boostify/images/slider/img02.jpg ADDED
Binary file
inc/boostify/images/slider/img03.jpg ADDED
Binary file
inc/boostify/images/testimonial/testimonial01.jpg ADDED
Binary file
inc/boostify/images/testimonial/testimonial02.jpg ADDED
Binary file
inc/boostify/sections/above-footer.php ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'boostify_above_footer' ) ) :
3
+ function boostify_above_footer() {
4
+ $hs_above_footer = get_theme_mod('hs_above_footer','1');
5
+ $footer_above_ttl = get_theme_mod('footer_above_ttl','Do you like that you see?');
6
+ $footer_above_btn_lbl1 = get_theme_mod('footer_above_btn_lbl1','Request a Quote');
7
+ $footer_above_btn_url1 = get_theme_mod('footer_above_btn_url1','#');
8
+ $footer_above_btn_mdl_text = get_theme_mod('footer_above_btn_mdl_text','or');
9
+ $footer_above_btn_lbl2 = get_theme_mod('footer_above_btn_lbl2','Contact Us');
10
+ $footer_above_btn_url2 = get_theme_mod('footer_above_btn_url2','#');
11
+ if($hs_above_footer == '1'):
12
+ ?>
13
+ <div id="action-bar">
14
+ <div class="container">
15
+ <div class="action-bar">
16
+ <div class="row">
17
+ <div class="col-lg-5 offset-lg-1 offset-0 text-center text-lg-left mb-3 mb-lg-0">
18
+ <?php if(!empty($footer_above_ttl)): ?>
19
+ <div class="bar-text">
20
+ <p><?php echo wp_kses_post($footer_above_ttl); ?></p>
21
+ </div>
22
+ <?php endif; ?>
23
+ </div>
24
+ <div class="col-lg-5 text-lg-right text-center">
25
+ <?php if(!empty($footer_above_btn_lbl1)): ?>
26
+ <a href="<?php echo esc_url($footer_above_btn_url1); ?>" class="boxed-btn white-bg"><?php echo esc_html($footer_above_btn_lbl1); ?></a>
27
+ <?php endif; ?>
28
+ <?php echo esc_html($footer_above_btn_mdl_text); ?>
29
+
30
+ <?php if(!empty($footer_above_btn_lbl2)): ?>
31
+ <a href="<?php echo esc_url($footer_above_btn_url2); ?>" class="boxed-btn contact-btn"><?php echo esc_html($footer_above_btn_lbl2); ?></a>
32
+ <?php endif; ?>
33
+ </div>
34
+ </div>
35
+ </div>
36
+ </div>
37
+ </div>
38
+ <?php endif;
39
+ } endif;
40
+ add_action('boostify_above_footer', 'boostify_above_footer');
41
+
inc/boostify/sections/above-header.php ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'boostify_above_header' ) ) :
3
+ function boostify_above_header() {
4
+
5
+ $hide_show_mbl_details = get_theme_mod( 'hide_show_mbl_details','1');
6
+ $hide_show_email_details = get_theme_mod( 'hide_show_email_details','1');
7
+ $hs_hdr_social = get_theme_mod( 'hs_hdr_social','1');
8
+ if($hide_show_mbl_details == '1' || $hide_show_email_details == '1' || $hs_hdr_social == '1') { ?>
9
+ <div id="header-top" class="header-top">
10
+ <div class="container">
11
+ <div class="row">
12
+
13
+ <div class="col-lg-6 col-md-12 text-lg-left text-center boostify-top-left">
14
+ <?php
15
+ $tlh_mobile_icon = get_theme_mod( 'tlh_mobile_icon','fa-phone');
16
+ $tlh_mobile_title = get_theme_mod( 'tlh_mobile_title','Call: 0 (123) 456 7891');
17
+ $tlh_mobile_link = get_theme_mod( 'tlh_mobile_link');
18
+ ?>
19
+ <?php if($hide_show_mbl_details == '1') { ?>
20
+ <div class="widget widget_info">
21
+ <i class="fa <?php echo esc_attr($tlh_mobile_icon); ?>"></i>
22
+ <span class="phone"><a href="<?php echo esc_url($tlh_mobile_link); ?>"><?php echo esc_html($tlh_mobile_title); ?></a></span>
23
+ </div>
24
+ <?php } ?>
25
+
26
+ <?php
27
+ $tlh_email_icon = get_theme_mod( 'tlh_email_icon','fa-envelope');
28
+ $tlh_email_title = get_theme_mod( 'tlh_email_title','info@example.com');
29
+ $tlh_email_link = get_theme_mod( 'tlh_email_link');
30
+ ?>
31
+ <?php if($hide_show_email_details == '1') { ?>
32
+ <div class="widget widget_info">
33
+ <i class="fa <?php echo esc_attr($tlh_email_icon); ?>"></i>
34
+ <span class="email"><a href="<?php echo esc_url($tlh_email_link); ?>"><?php echo esc_html($tlh_email_title); ?></a></span>
35
+ </div>
36
+ <?php } ?>
37
+ </div>
38
+
39
+ <div class="col-lg-6 col-md-12 text-lg-right text-center boostify-top-right">
40
+ <?php $social_icons = get_theme_mod( 'social_icons',boostify_get_social_icon_default());
41
+ if($hs_hdr_social == '1') {
42
+ ?>
43
+ <aside class="widget widget_social_widget">
44
+ <ul class="header-social d-inline-block">
45
+ <?php
46
+ $social_icons = json_decode($social_icons);
47
+ if( $social_icons!='' )
48
+ {
49
+ foreach($social_icons as $social_item){
50
+ $social_icon = ! empty( $social_item->icon_value ) ? apply_filters( 'boostify_translate_single_string', $social_item->icon_value, 'Header section' ) : '';
51
+ $social_link = ! empty( $social_item->link ) ? apply_filters( 'boostify_translate_single_string', $social_item->link, 'Header section' ) : '';
52
+ ?>
53
+ <li><a href="<?php echo esc_url( $social_link ); ?>"><i class="fa <?php echo esc_attr( $social_icon ); ?>"></i></a></li>
54
+ <?php }} ?>
55
+ </ul>
56
+ </aside>
57
+ <?php } ?>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ </div>
62
+ <?php }
63
+ } endif;
64
+ add_action('boostify_above_header', 'boostify_above_header');
65
+
inc/boostify/sections/section-features.php ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'cleverfox_boostify_lite_features' ) ) :
3
+ function cleverfox_boostify_lite_features() {
4
+ $feature_title = get_theme_mod('feature_title','Outstanding <span class="av-heading animate-7"><span class="av-text-wrapper"><b class="is-show">Features</b> <b>Features</b><b>Features</b></span></span>');
5
+ $feature_description = get_theme_mod('feature_description','Lorem Ipsum is simply dummy of printing and typesetting and industry. Lorem Ipsum been.');
6
+ $features_contents = get_theme_mod('features_contents',boostify_get_features_default());
7
+ ?>
8
+ <section id="our-feature" class="our-feature home-feature section-padding-top">
9
+ <div class="container">
10
+ <?php if ( ! empty( $feature_title ) || ! empty( $porfolio_description )) : ?>
11
+ <div class="row">
12
+ <div class="col-lg-6 offset-lg-3">
13
+ <div class="section-header text-center">
14
+ <?php if ( ! empty( $feature_title ) ) : ?>
15
+ <h2><?php echo wp_kses_post($feature_title); ?></h2>
16
+ <?php endif; ?>
17
+
18
+ <?php if ( ! empty( $feature_description ) ) : ?>
19
+ <p><?php echo wp_kses_post($feature_description); ?></p>
20
+ <?php endif; ?>
21
+ </div>
22
+ </div>
23
+ </div>
24
+ <?php endif; ?>
25
+ <div class="row feature-contents">
26
+ <?php
27
+ if ( ! empty( $features_contents ) ) {
28
+ $features_contents = json_decode( $features_contents );
29
+ foreach ( $features_contents as $features_item ) {
30
+ $title = ! empty( $features_item->title ) ? apply_filters( 'boostify_translate_single_string', $features_item->title, 'Features section' ) : '';
31
+ $text = ! empty( $features_item->text ) ? apply_filters( 'boostify_translate_single_string', $features_item->text, 'Features section' ) : '';
32
+ $link = ! empty( $features_item->link ) ? apply_filters( 'boostify_translate_single_string', $features_item->link, 'Features section' ) : '';
33
+ $icon = ! empty( $features_item->icon_value) ? apply_filters( 'boostify_translate_single_string', $features_item->icon_value,'Features section' ) : '';
34
+ $image = ! empty( $features_item->image_url ) ? apply_filters( 'boostify_translate_single_string', $features_item->image_url, 'Features section' ) : '';
35
+ ?>
36
+ <div class="col-xl col-lg-3 col-md-4 col-sm-6 col-12 mb-xl-4 mb-4">
37
+ <div class="features-box">
38
+ <figure>
39
+ <?php if(!empty($image)):?>
40
+ <img src="<?php echo esc_url($image); ?>" alt="">
41
+ <?php endif; ?>
42
+
43
+ <figcaption>
44
+ <div class="inner-text">
45
+ <?php if(!empty($icon)):?>
46
+ <i class="fa <?php echo esc_attr($icon); ?>"></i>
47
+ <?php endif; ?>
48
+
49
+ <?php if(!empty($title)):?>
50
+ <h4><a href="<?php echo esc_url($link); ?>"><?php echo esc_html($title); ?></a></h4>
51
+ <?php endif; ?>
52
+
53
+ <?php if(!empty($text)):?>
54
+ <p><?php echo esc_html($text); ?></p>
55
+ <?php endif; ?>
56
+ </div>
57
+ </figcaption>
58
+ </figure>
59
+ </div>
60
+ </div>
61
+ <?php } } ?>
62
+ </div>
63
+ </div>
64
+ </section>
65
+ <?php
66
+ }
67
+ endif;
68
+ if ( function_exists( 'cleverfox_boostify_lite_features' ) ) {
69
+ $section_priority = apply_filters( 'boostify_section_priority', 13, 'cleverfox_boostify_lite_features' );
70
+ add_action( 'boostify_sections', 'cleverfox_boostify_lite_features', absint( $section_priority ) );
71
+ }
inc/boostify/sections/section-info.php ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'cleverfox_boostify_lite_info' ) ) :
3
+ function cleverfox_boostify_lite_info() {
4
+ $info_contents = get_theme_mod('info_contents',boostify_get_info_default());
5
+ ?>
6
+ <section id="contact-info-section" class="contact-info-section">
7
+ <div class="container">
8
+ <div class="row">
9
+ <?php
10
+ if ( ! empty( $info_contents ) ) {
11
+ $info_contents = json_decode( $info_contents );
12
+ foreach ( $info_contents as $slide_item ) {
13
+ $title = ! empty( $slide_item->title ) ? apply_filters( 'boostify_translate_single_string', $slide_item->title, 'Info section' ) : '';
14
+ $subtitle = ! empty( $slide_item->subtitle ) ? apply_filters( 'boostify_translate_single_string', $slide_item->subtitle, 'Info section' ) : '';
15
+ $link = ! empty( $slide_item->link ) ? apply_filters( 'boostify_translate_single_string', $slide_item->link, 'Info section' ) : '';
16
+ $icon = ! empty( $slide_item->icon_value) ? apply_filters( 'boostify_translate_single_string', $slide_item->icon_value,'Info section' ) : '';
17
+ ?>
18
+ <div class="col-lg-3 col-sm-6 col-12">
19
+ <div class="inner-content">
20
+ <div class="widget-contact">
21
+ <div class="contact-area">
22
+ <?php if(!empty($icon) || !empty($image)):?>
23
+ <div class="contact-icon">
24
+ <div class="contact-corn">
25
+ <?php if(!empty($icon)):?>
26
+ <i class="fa <?php echo esc_attr($icon); ?>"></i>
27
+ <?php endif; ?>
28
+ </div>
29
+ </div>
30
+ <?php endif; ?>
31
+ <?php if(!empty($title) || !empty($subtitle)):?>
32
+ <div class="contact-info">
33
+ <?php if(!empty($title)):?>
34
+ <h6><?php echo esc_html($title); ?></h6>
35
+ <?php endif; ?>
36
+
37
+ <?php if(!empty($subtitle)):?>
38
+ <p><a href="<?php echo esc_url($link); ?>"><?php echo esc_html($subtitle); ?></a></p>
39
+ <?php endif; ?>
40
+ </div>
41
+ <?php endif; ?>
42
+ </div>
43
+ </div>
44
+ </div>
45
+ </div>
46
+ <?php } } ?>
47
+ </div>
48
+ </div>
49
+ </section>
50
+ <?php
51
+ }
52
+ endif;
53
+ if ( function_exists( 'cleverfox_boostify_lite_info' ) ) {
54
+ $section_priority = apply_filters( 'boostify_section_priority', 12, 'cleverfox_boostify_lite_info' );
55
+ add_action( 'boostify_sections', 'cleverfox_boostify_lite_info', absint( $section_priority ) );
56
+ }
inc/boostify/sections/section-service.php ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'cleverfox_boostify_lite_service' ) ) :
3
+ function cleverfox_boostify_lite_service() {
4
+ $service_title = get_theme_mod('service_title','Outstanding <span class="av-heading animate-7"><span class="av-text-wrapper"><b class="is-show">Services</b> <b>Services</b><b>Services</b></span></span>');
5
+ $service_description = get_theme_mod('service_description','Lorem Ipsum is simply dummy of printing and typesetting and industry. Lorem Ipsum been.');
6
+ $service_contents = get_theme_mod('service_contents',boostify_get_service_default());
7
+ ?>
8
+ <section id="our-service" class="themes-bottom section-padding service-home">
9
+ <div class="container">
10
+ <?php if ( ! empty( $service_title ) || ! empty( $service_description )) : ?>
11
+ <div class="row">
12
+ <div class="col-lg-6 offset-lg-3">
13
+ <div class="section-header text-center">
14
+ <?php if ( ! empty( $service_title ) ) : ?>
15
+ <h2><?php echo wp_kses_post($service_title); ?></h2>
16
+ <?php endif; ?>
17
+
18
+ <?php if ( ! empty( $service_description ) ) : ?>
19
+ <p><?php echo wp_kses_post($service_description); ?></p>
20
+ <?php endif; ?>
21
+ </div>
22
+ </div>
23
+ </div>
24
+ <?php endif; ?>
25
+ <div class="row" id="services">
26
+ <?php
27
+ if ( ! empty( $service_contents ) ) {
28
+ $service_contents = json_decode( $service_contents );
29
+ foreach ( $service_contents as $service_item ) {
30
+ $title = ! empty( $service_item->title ) ? apply_filters( 'boostify_translate_single_string', $service_item->title, 'Service section' ) : '';
31
+ $text = ! empty( $service_item->text ) ? apply_filters( 'boostify_translate_single_string', $service_item->text, 'Service section' ) : '';
32
+ $button = ! empty( $service_item->text2 ) ? apply_filters( 'boostify_translate_single_string', $service_item->text2, 'Service section' ) : '';
33
+ $link = ! empty( $service_item->link ) ? apply_filters( 'boostify_translate_single_string', $service_item->link, 'Service section' ) : '';
34
+ $icon = ! empty( $service_item->icon_value) ? apply_filters( 'boostify_translate_single_string', $service_item->icon_value,'Service section' ) : '';
35
+ $image = ! empty( $service_item->image_url ) ? apply_filters( 'boostify_translate_single_string', $service_item->image_url, 'Service section' ) : '';
36
+ ?>
37
+ <div class="col-lg-4 col-md-6">
38
+ <div class="service-box">
39
+ <?php if(!empty($image)):?>
40
+ <img src="<?php echo esc_url($image); ?>" />
41
+ <?php else: ?>
42
+ <i class="fa <?php echo esc_attr($icon); ?>"></i>
43
+ <?php endif; ?>
44
+
45
+ <?php if(!empty($title)):?>
46
+ <h4><?php echo esc_html($title); ?></h4>
47
+ <?php endif; ?>
48
+
49
+ <?php if(!empty($text)):?>
50
+ <p><?php echo esc_html($text); ?></p>
51
+ <?php endif; ?>
52
+
53
+ <?php if(!empty($button)):?>
54
+ <a href="<?php echo esc_url($link); ?>"><?php echo esc_html($button); ?></a>
55
+ <?php endif; ?>
56
+ </div>
57
+ </div>
58
+ <?php } } ?>
59
+ </div>
60
+ </div>
61
+ </section>
62
+ <?php
63
+ }
64
+ endif;
65
+ if ( function_exists( 'cleverfox_boostify_lite_service' ) ) {
66
+ $section_priority = apply_filters( 'boostify_section_priority', 14, 'cleverfox_boostify_lite_service' );
67
+ add_action( 'boostify_sections', 'cleverfox_boostify_lite_service', absint( $section_priority ) );
68
+ }
inc/boostify/sections/section-slider.php ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--===// Start: Slider
2
+ =================================-->
3
+ <?php
4
+ if ( ! function_exists( 'cleverfox_boostify_lite_slider' ) ) :
5
+ function cleverfox_boostify_lite_slider() {
6
+ $slider = get_theme_mod('slider',boostify_get_slider_default());
7
+ $slider_opacity = get_theme_mod('slider_opacity','0.75');
8
+ ?>
9
+ <section id="main-sliders" class="main-sliders">
10
+ <div class="row">
11
+ <div class="col-md-12">
12
+ <div class="header-slider">
13
+ <?php
14
+ if ( ! empty( $slider ) ) {
15
+ $slider = json_decode( $slider );
16
+ foreach ( $slider as $slide_item ) {
17
+ $boostify_slide_title = ! empty( $slide_item->title ) ? apply_filters( 'boostify_translate_single_string', $slide_item->title, 'slider section' ) : '';
18
+ $subtitle = ! empty( $slide_item->subtitle ) ? apply_filters( 'boostify_translate_single_string', $slide_item->subtitle, 'slider section' ) : '';
19
+ $text = ! empty( $slide_item->text ) ? apply_filters( 'boostify_translate_single_string', $slide_item->text, 'slider section' ) : '';
20
+ $button = ! empty( $slide_item->text2) ? apply_filters( 'boostify_translate_single_string', $slide_item->text2,'slider section' ) : '';
21
+ $boostify_slide_link = ! empty( $slide_item->link ) ? apply_filters( 'boostify_translate_single_string', $slide_item->link, 'slider section' ) : '';
22
+ $image = ! empty( $slide_item->image_url ) ? apply_filters( 'boostify_translate_single_string', $slide_item->image_url, 'slider section' ) : '';
23
+ $image2 = ! empty( $slide_item->image_url2 ) ? apply_filters( 'boostify_translate_single_string', $slide_item->image_url2, 'slider section' ) : '';
24
+ $open_new_tab = ! empty( $slide_item->open_new_tab ) ? apply_filters( 'boostify_translate_single_string', $slide_item->open_new_tab, 'slider section' ) : '';
25
+ $align = ! empty( $slide_item->slide_align ) ? apply_filters( 'boostify_translate_single_string', $slide_item->slide_align, 'slider section' ) : '';
26
+ ?>
27
+ <div class="header-single-slider">
28
+ <figure>
29
+ <?php if ( ! empty( $image ) ) : ?>
30
+ <img src="<?php echo esc_url( $image ); ?>" alt="">
31
+ <?php endif; ?>
32
+ <div class="content" style="background:rgb(<?php echo "18 29 97 / $slider_opacity "?>)">
33
+ <div class="slide-table">
34
+ <div class="slide-table-cell">
35
+ <div class="container">
36
+ <div class="row slide-<?php echo esc_attr($align); ?>">
37
+ <div class="col-md-7 my-auto">
38
+ <div class="slide-content" style="<?php if ( empty( $image ) ) : ?>margin-top: 40px;<?php endif; ?>">
39
+ <?php if ( ! empty( $boostify_slide_title ) || ! empty( $subtitle )) : ?>
40
+ <h1 data-animation="fadeInUp" data-delay="200ms"><b><?php echo esc_html( $boostify_slide_title ); ?></b> <br> <?php echo esc_html( $subtitle ); ?></h1>
41
+ <?php endif; ?>
42
+
43
+ <?php if ( ! empty( $text ) ) : ?>
44
+ <p data-animation="fadeInUp" data-delay="500ms"><?php echo esc_html( $text ); ?></p>
45
+ <?php endif; ?>
46
+
47
+ <?php if ( ! empty( $button ) ) : ?>
48
+ <a data-animation="fadeInUp" data-delay="800ms" href="<?php echo esc_url( $boostify_slide_link ); ?>" <?php if($open_new_tab== 'yes' || $open_new_tab== '1') { echo "target='_blank'"; } ?> class="boxed-btn"><?php echo esc_html( $button ); ?></a>
49
+ <?php endif; ?>
50
+
51
+ </div>
52
+ </div>
53
+ <?php if ( ! empty( $image2 ) ) : ?>
54
+ <div class="col-md-5 my-auto mx-auto">
55
+ <div class="boostify-img" data-animation="flipInY" data-delay="1000ms">
56
+ <img src="<?php echo esc_url( $image2 ); ?>">
57
+ </div>
58
+ </div>
59
+ <?php endif; ?>
60
+ </div>
61
+ </div>
62
+ </div>
63
+ </div>
64
+ </div>
65
+ </figure>
66
+ </div>
67
+ <?php } } ?>
68
+ </div>
69
+ </div>
70
+ </div>
71
+ <div class="element-circle">
72
+ <img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element/bg-circle2.png" alt="image" class="img-out img-fluid">
73
+ <img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element/bg-circle1.png" alt="image" class="img-in2 img-fluid">
74
+ <img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element/bg-circle3.png" alt="image" class="img-in3 img-fluid">
75
+ <img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element/animation-boll2.png" alt="image" class="img-in4 img-fluid">
76
+ </div>
77
+ <div class="element-circle2">
78
+ <img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element/bg-circle2.png" alt="image" class="img-out img-fluid">
79
+ <img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element/bg-circle1.png" alt="image" class="img-in2 img-fluid">
80
+ <img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element/bg-circle3.png" alt="image" class="img-in3 img-fluid">
81
+ </div>
82
+ <div class="animation-roated">
83
+ <img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element/roted-animated.png">
84
+ </div>
85
+ <div class="animation-dotted">
86
+ <img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element/animation-dotted.png">
87
+ </div>
88
+ <div class="animation-boll">
89
+ <img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element/animation-boll.png">
90
+ </div>
91
+ <div class="animation-dot-div">
92
+ <img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element/dots-div.png" class="dots-div1">
93
+ </div>
94
+ <div class="animation-dotted-div">
95
+ <img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element/dots-div2.png" class="dots-div2">
96
+ </div>
97
+ <div class="animation-cricle">
98
+ <img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/images/element/cricle-boll.png">
99
+ </div>
100
+ </section>
101
+
102
+ <?php
103
+ }
104
+ endif;
105
+ if ( function_exists( 'cleverfox_boostify_lite_slider' ) ) {
106
+ $section_priority = apply_filters( 'boostify_section_priority', 11, 'cleverfox_boostify_lite_slider' );
107
+ add_action( 'boostify_sections', 'cleverfox_boostify_lite_slider', absint( $section_priority ) );
108
+ }
inc/boostify/sections/section-testimonial.php ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'cleverfox_boostify_lite_testimonial' ) ) :
3
+ function cleverfox_boostify_lite_testimonial() {
4
+ $testimonial_title = get_theme_mod('testimonial_title','Outstanding <span class="av-heading animate-7"><span class="av-text-wrapper"><b class="is-show">Testimonial</b><b>Testimonial</b><b>Testimonial</b></span></span>');
5
+ $testimonial_description = get_theme_mod('testimonial_description','Lorem Ipsum is simply dummy of printing and typesetting and industry. Lorem Ipsum been.');
6
+ $testimonials_content = get_theme_mod('testimonials_content',boostify_get_testimonial_default());
7
+ $testimonial_bg_setting = get_theme_mod('testimonial_bg_setting',esc_url(CLEVERFOX_PLUGIN_URL .'inc/boostify/images/patternshape-bg.jpg'));
8
+ $testimonial_bg_position = get_theme_mod('testimonial_bg_position','scroll');
9
+ ?>
10
+ <section id="testimonial" class="testimonial section-padding">
11
+ <div class="testimonial-overlay" style="background-image:url(<?php echo esc_url($testimonial_bg_setting); ?>);background-attachment: <?php echo esc_attr($testimonial_bg_position); ?>;"></div>
12
+ <div class="particles-js" id="prtcl3"></div>
13
+ <div class="container">
14
+ <?php if ( ! empty( $testimonial_title ) || ! empty( $testimonial_description )) : ?>
15
+ <div class="row">
16
+ <div class="col-lg-6 offset-lg-3">
17
+ <div class="section-header text-center">
18
+ <?php if ( ! empty( $testimonial_title ) ) : ?>
19
+ <h2><?php echo wp_kses_post($testimonial_title); ?></h2>
20
+ <?php endif; ?>
21
+
22
+ <?php if ( ! empty( $testimonial_description ) ) : ?>
23
+ <p><?php echo wp_kses_post($testimonial_description); ?></p>
24
+ <?php endif; ?>
25
+ </div>
26
+ </div>
27
+ </div>
28
+ <?php endif; ?>
29
+ <div class="row">
30
+ <div class="col-12">
31
+ <div class="testimonial-carousel">
32
+ <?php
33
+ $testimonials_content = json_decode($testimonials_content);
34
+ if( $testimonials_content!='' )
35
+ {
36
+ foreach($testimonials_content as $testimonial_item){
37
+ $image = ! empty( $testimonial_item->image_url ) ? apply_filters( 'boostify_translate_single_string', $testimonial_item->image_url, 'Testimonial section' ) : '';
38
+ $title = ! empty( $testimonial_item->title ) ? apply_filters( 'boostify_translate_single_string', $testimonial_item->title, 'Testimonial section' ) : '';
39
+ $subtitle = ! empty( $testimonial_item->subtitle ) ? apply_filters( 'boostify_translate_single_string', $testimonial_item->subtitle, 'Testimonial section' ) : '';
40
+ $text = ! empty( $testimonial_item->text ) ? apply_filters( 'boostify_translate_single_string', $testimonial_item->text, 'Testimonial section' ) : '';
41
+ ?>
42
+ <div class="single-testimonial">
43
+
44
+ <?php if ( ! empty( $image ) ): ?>
45
+ <div class="testi-img">
46
+ <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; ?> />
47
+ </div>
48
+ <?php endif; ?>
49
+
50
+ <div class="testi-info">
51
+ <?php if ( ! empty( $title ) ) : ?>
52
+ <h4 class="title"><?php echo esc_html( $title ); ?></h4>
53
+ <?php endif; ?>
54
+
55
+ <?php if ( ! empty( $subtitle ) ) : ?>
56
+ <span class="designation"><?php echo esc_html( $subtitle ); ?></span>
57
+ <?php endif; ?>
58
+
59
+ <?php if ( ! empty( $text ) ) : ?>
60
+ <p><?php echo esc_html( $text ); ?></p>
61
+ <?php endif; ?>
62
+ </div>
63
+ </div>
64
+ <?php }} ?>
65
+ </div>
66
+ </div>
67
+ </div>
68
+ </div>
69
+ </section>
70
+ <?php
71
+ }
72
+ endif;
73
+ if ( function_exists( 'cleverfox_boostify_lite_testimonial' ) ) {
74
+ $section_priority = apply_filters( 'boostify_section_priority', 15, 'cleverfox_boostify_lite_testimonial' );
75
+ add_action( 'boostify_sections', 'cleverfox_boostify_lite_testimonial', absint( $section_priority ) );
76
+ }
inc/cleverfox-activator.php CHANGED
@@ -113,6 +113,12 @@ class Cleverfox_Activator {
113
  require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/default-widgets/default-widget.php';
114
  }
115
 
 
 
 
 
 
 
116
  update_option( 'item_details_page', 'Done' );
117
  }
118
  }
113
  require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/default-widgets/default-widget.php';
114
  }
115
 
116
+ if ( 'Boostify' == $theme->name){
117
+ require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/default-pages/upload-media.php';
118
+ require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/default-pages/home-page.php';
119
+ require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/default-widgets/default-widget.php';
120
+ }
121
+
122
  update_option( 'item_details_page', 'Done' );
123
  }
124
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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: 7.4
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
@@ -106,6 +106,9 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
106
 
107
  == Changelog ==
108
 
 
 
 
109
  = 7.4 =
110
  * Startkit Theme Slider Images Compressed
111
 
4
  Requires at least: 4.0
5
  Tested up to: 5.8
6
  Requires PHP: 5.6
7
+ Stable tag: 7.5
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
106
 
107
  == Changelog ==
108
 
109
+ = 7.5 =
110
+ * Boostify Theme Functionality Added
111
+
112
  = 7.4 =
113
  * Startkit Theme Slider Images Compressed
114