Clever Fox - Version 1.7

Version Description

  • Avril Theme Functionality Added
Download this release

Release Info

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

Code changes from version 1.6 to 1.7

clever-fox.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Clever Fox
4
  Plugin URI:
5
  Description: The Clever Fox plugin adds sections functionality to the Startkit theme and Others Nayra's Themes. This plugin for only startkit themes. Clever Fox is a plugin build to enhance the functionality of WordPress Theme made by Nayra Themes.
6
- Version: 1.6
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
@@ -52,6 +52,11 @@ function cleverfox_activate() {
52
  if( 'Ameya' == $theme->name){
53
  require_once('inc/ameya/ameya.php');
54
  }
 
 
 
 
 
55
  }
56
  add_action( 'init', 'cleverfox_activate' );
57
 
3
  Plugin Name: Clever Fox
4
  Plugin URI:
5
  Description: The Clever Fox plugin adds sections functionality to the Startkit theme and Others Nayra's Themes. This plugin for only startkit themes. Clever Fox is a plugin build to enhance the functionality of WordPress Theme made by Nayra Themes.
6
+ Version: 1.7
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
52
  if( 'Ameya' == $theme->name){
53
  require_once('inc/ameya/ameya.php');
54
  }
55
+
56
+ if( 'Avril' == $theme->name){
57
+ require_once('inc/avril/avril.php');
58
+ }
59
+
60
  }
61
  add_action( 'init', 'cleverfox_activate' );
62
 
inc/assets/js/owl.carousel.min.js CHANGED
@@ -30,6 +30,83 @@ jQuery(function($) {
30
  }
31
  }
32
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  });
34
  });
35
 
30
  }
31
  }
32
  });
33
+
34
+ // Avril Carousel's
35
+ var avrilMainSlider = $('.main-slider');
36
+ avrilMainSlider.owlCarousel({
37
+ rtl: $("html").attr("dir") == 'rtl' ? true : false,
38
+ items: 1,
39
+ loop: true,
40
+ dots: false,
41
+ navText: ['<i class="fa fa-arrow-left"></i>', '<i class="fa fa-arrow-right"></i>'],
42
+ autoplay: true,
43
+ autoplayTimeout: 9000,
44
+ animateIn: 'pulse',
45
+ animateOut: 'fadeOut',
46
+ smartSpeed: 1000,
47
+ responsive: {
48
+ 0: {
49
+ nav: false
50
+ },
51
+ 768: {
52
+ nav: true
53
+ },
54
+ 992: {
55
+ nav: true
56
+ }
57
+ }
58
+ });
59
+ // Header Slide items with animate.css
60
+ avrilMainSlider.owlCarousel();
61
+ avrilMainSlider.on('translate.owl.carousel', function (event) {
62
+ var data_anim = $("[data-animation]");
63
+ data_anim.each(function() {
64
+ var anim_name = $(this).data('animation');
65
+ $(this).removeClass('animated ' + anim_name).css('opacity', '0');
66
+ });
67
+ });
68
+ $("[data-delay]").each(function() {
69
+ var anim_del = $(this).data('delay');
70
+ $(this).css('animation-delay', anim_del);
71
+ });
72
+ $("[data-duration]").each(function() {
73
+ var anim_dur = $(this).data('duration');
74
+ $(this).css('animation-duration', anim_dur);
75
+ });
76
+ avrilMainSlider.on('translated.owl.carousel', function() {
77
+ var data_anim = avrilMainSlider.find('.owl-item.active').find("[data-animation]");
78
+ data_anim.each(function() {
79
+ var anim_name = $(this).data('animation');
80
+ $(this).addClass('animated ' + anim_name).css('opacity', '1');
81
+ });
82
+ });
83
+ // Avril Services Carousel
84
+ var avrilOwlServices = $(".services-carousel");
85
+ avrilOwlServices.owlCarousel({
86
+ rtl: $("html").attr("dir") == 'rtl' ? true : false,
87
+ items : 3,
88
+ center: true,
89
+ loop: true,
90
+ dots: false,
91
+ nav: true,
92
+ margin: 30,
93
+ stagePadding: 20,
94
+ navText: ['<i class="fa fa-arrow-left"></i>', '<i class="fa fa-arrow-right"></i>'],
95
+ autoplay: true,
96
+ autoplayTimeout: 5000,
97
+ smartSpeed: 1000,
98
+ responsive: {
99
+ 0: {
100
+ items: 1
101
+ },
102
+ 768: {
103
+ items: 1
104
+ },
105
+ 992: {
106
+ items: 3,
107
+ }
108
+ }
109
+ });
110
  });
111
  });
112
 
inc/avril/avril.php ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Avril
4
+ */
5
+
6
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/extras.php';
7
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/dynamic-style.php';
8
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/above-header.php';
9
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-header.php';
10
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-cta.php';
11
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-features.php';
12
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-info.php';
13
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-service.php';
14
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-slider.php';
15
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-typography.php';
16
+
17
+ if ( ! function_exists( 'cleverfox_avril_frontpage_sections' ) ) :
18
+ function cleverfox_avril_frontpage_sections() {
19
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-slider.php';
20
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-info.php';
21
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-service.php';
22
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-features.php';
23
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-cta-2.php';
24
+ }
25
+ add_action( 'avril_sections', 'cleverfox_avril_frontpage_sections' );
26
+ endif;
27
+
28
+ function cleverfox_avril_enqueue_scripts() {
29
+ wp_enqueue_style('animate',CLEVERFOX_PLUGIN_URL .'/inc/assets/css/animate.css');
30
+ wp_enqueue_style('owl-carousel-min',CLEVERFOX_PLUGIN_URL .'/inc/assets/css/owl.carousel.min.css');
31
+ wp_enqueue_script( 'owl-carousel', CLEVERFOX_PLUGIN_URL . 'inc/assets/js/owl.carousel.min.js', array('jquery'), false, true);
32
+ }
33
+ add_action( 'wp_enqueue_scripts', 'cleverfox_avril_enqueue_scripts' );
inc/avril/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/avril/default-pages/upload-media.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $file = CLEVERFOX_PLUGIN_URL .'inc/avril/images/logo.png';
3
+ $ImagePath = CLEVERFOX_PLUGIN_URL .'inc/avril/images';
4
+
5
+ $images = array(
6
+ $ImagePath. '/logo.png',
7
+ );
8
+ $parent_post_id = null;
9
+ foreach($images as $name) {
10
+ $filename = basename($name);
11
+ $upload_file = wp_upload_bits($filename, null, file_get_contents($name));
12
+ if (!$upload_file['error']) {
13
+ $wp_filetype = wp_check_filetype($filename, null );
14
+ $attachment = array(
15
+ 'post_mime_type' => $wp_filetype['type'],
16
+ 'post_parent' => $parent_post_id,
17
+ 'post_title' => preg_replace('/\.[^.]+$/', '', $filename),
18
+ 'post_excerpt' => 'avril caption',
19
+ 'post_status' => 'inherit'
20
+ );
21
+ $ImageId[] = $attachment_id = wp_insert_attachment( $attachment, $upload_file['file'], $parent_post_id );
22
+
23
+ if (!is_wp_error($attachment_id)) {
24
+ require_once(ABSPATH . "wp-admin" . '/includes/image.php');
25
+ $attachment_data = wp_generate_attachment_metadata( $attachment_id, $upload_file['file'] );
26
+ wp_update_attachment_metadata( $attachment_id, $attachment_data );
27
+ }
28
+ }
29
+
30
+ }
31
+
32
+ update_option( 'avril_media_id', $ImageId );
33
+
34
+ ?>
inc/avril/default-widgets/default-widget.php ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $activate = array(
3
+ 'avril-sidebar-primary' => array(
4
+ 'search-1',
5
+ 'recent-posts-1',
6
+ 'archives-1',
7
+ ),
8
+ 'avril-footer-widget-area' => array(
9
+ 'text-1',
10
+ 'categories-1',
11
+ 'archives-1',
12
+ 'search-1',
13
+ )
14
+ );
15
+ /* the default titles will appear */
16
+ update_option('widget_text', array(
17
+ 1 => array('title' => '',
18
+ 'text'=>'<div class="footer-logo"><img src="'.CLEVERFOX_PLUGIN_URL.'inc/avril/images/logo-2.png" alt=""></div>
19
+ <p>There are many variations of dummy passages of Lorem Ipsum a available, but the majority have suffered that is alteration in some that form injected humour or randomised.</p>
20
+ '),
21
+ 2 => array('title' => 'Recent Posts'),
22
+ 3 => array('title' => 'Categories'),
23
+ ));
24
+ update_option('widget_categories', array(
25
+ 1 => array('title' => 'Categories'),
26
+ 2 => array('title' => 'Categories')));
27
+
28
+ update_option('widget_archives', array(
29
+ 1 => array('title' => 'Archives'),
30
+ 2 => array('title' => 'Archives')));
31
+
32
+ update_option('widget_search', array(
33
+ 1 => array('title' => 'Search'),
34
+ 2 => array('title' => 'Search')));
35
+
36
+ update_option('sidebars_widgets', $activate);
37
+ $MediaId = get_option('avril_media_id');
38
+ set_theme_mod( 'custom_logo', $MediaId[0] );
39
+ ?>
inc/avril/dynamic-style.php ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if( ! function_exists( 'cleverfox_avril_dynamic_styles' ) ):
3
+ function cleverfox_avril_dynamic_styles() {
4
+ $output_css = '';
5
+
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
+ * Typography Body
19
+ */
20
+ $avril_body_text_transform = get_theme_mod('avril_body_text_transform','inherit');
21
+ $avril_body_font_style = get_theme_mod('avril_body_font_style','inherit');
22
+ $avril_body_font_size = get_theme_mod('avril_body_font_size');
23
+ $avril_body_line_height = get_theme_mod('avril_body_line_height');
24
+
25
+ $output_css .=" body{
26
+ font-size: " .esc_attr($avril_body_font_size). "px;
27
+ line-height: " .esc_attr($avril_body_line_height). ";
28
+ text-transform: " .esc_attr($avril_body_text_transform). ";
29
+ font-style: " .esc_attr($avril_body_font_style). ";
30
+ }\n";
31
+
32
+ /**
33
+ * Typography Heading
34
+ */
35
+ for ( $i = 1; $i <= 6; $i++ ) {
36
+ $avril_heading_text_transform = get_theme_mod('avril_h' . $i . '_text_transform','inherit');
37
+ $avril_heading_font_style = get_theme_mod('avril_h' . $i . '_font_style','inherit');
38
+ $avril_heading_font_size = get_theme_mod('avril_h' . $i . '_font_size');
39
+ $avril_heading_line_height = get_theme_mod('avril_h' . $i . '_line_height');
40
+
41
+ $output_css .=" h" . $i . "{
42
+ font-size: " .esc_attr($avril_heading_font_size). "px;
43
+ line-height: " .esc_attr($avril_heading_line_height). ";
44
+ text-transform: " .esc_attr($avril_heading_text_transform). ";
45
+ font-style: " .esc_attr($avril_heading_font_style). ";
46
+ }\n";
47
+ }
48
+
49
+
50
+ /**
51
+ * Slider
52
+ */
53
+ $slider_opacity = get_theme_mod('slider_opacity','0.5');
54
+ if($slider_opacity !== '') {
55
+ $output_css .=".theme-slider:after {
56
+ opacity: " .esc_attr($slider_opacity). ";
57
+ background: #000000;
58
+ }\n";
59
+ }
60
+
61
+ wp_add_inline_style( 'avril-style', $output_css );
62
+ }
63
+ endif;
64
+ add_action( 'wp_enqueue_scripts', 'cleverfox_avril_dynamic_styles' );
65
+ ?>
inc/avril/extras.php ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ *
4
+ * Social Icon
5
+ */
6
+ function avril_get_social_icon_default() {
7
+ return apply_filters(
8
+ 'avril_get_social_icon_default', json_encode(
9
+ array(
10
+ array(
11
+ 'icon_value' => esc_html__( 'fa-facebook', 'avril' ),
12
+ 'link' => esc_html__( '#', 'avril' ),
13
+ 'id' => 'customizer_repeater_header_social_001',
14
+ ),
15
+ array(
16
+ 'icon_value' => esc_html__( 'fa-google-plus', 'avril' ),
17
+ 'link' => esc_html__( '#', 'avril' ),
18
+ 'id' => 'customizer_repeater_header_social_002',
19
+ ),
20
+ array(
21
+ 'icon_value' => esc_html__( 'fa-twitter', 'avril' ),
22
+ 'link' => esc_html__( '#', 'avril' ),
23
+ 'id' => 'customizer_repeater_header_social_003',
24
+ ),
25
+ array(
26
+ 'icon_value' => esc_html__( 'fa-linkedin', 'avril' ),
27
+ 'link' => esc_html__( '#', 'avril' ),
28
+ 'id' => 'customizer_repeater_header_social_004',
29
+ ),
30
+ array(
31
+ 'icon_value' => esc_html__( 'fa-behance', 'avril' ),
32
+ 'link' => esc_html__( '#', 'avril' ),
33
+ 'id' => 'customizer_repeater_header_social_005',
34
+ ),
35
+ )
36
+ )
37
+ );
38
+ }
39
+
40
+
41
+ /*
42
+ *
43
+ * Slider Default
44
+ */
45
+ function avril_get_slider_default() {
46
+ return apply_filters(
47
+ 'avril_get_slider_default', json_encode(
48
+ array(
49
+ array(
50
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/avril/images/slider/img01.jpg',
51
+ 'title' => esc_html__( 'Global Project Managment', 'avril' ),
52
+ 'subtitle' => esc_html__( 'Services & Solutions', 'avril' ),
53
+ 'text' => esc_html__( 'There are many variations of passages of Lorem Ipsum available but the majority have suffered injected humour dummy now.', 'avril' ),
54
+ 'text2' => esc_html__( 'Get Started', 'avril' ),
55
+ 'link' => esc_html__( '#', 'avril' ),
56
+ 'button_second' => esc_html__( 'Read More', 'avril' ),
57
+ 'link2' => esc_html__( '#', 'avril' ),
58
+ "slide_align" => "left",
59
+ 'id' => 'customizer_repeater_slider_001',
60
+ ),
61
+ array(
62
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/avril/images/slider/img02.jpg',
63
+ 'title' => esc_html__( 'Develop Stronger Minds', 'avril' ),
64
+ 'subtitle' => esc_html__( 'Better Coaching Gets', 'avril' ),
65
+ 'text' => esc_html__( 'There are many variations of passages of Lorem Ipsum available but the majority have suffered injected humour dummy now.', 'avril' ),
66
+ 'text2' => esc_html__( 'Get Started', 'avril' ),
67
+ 'link' => esc_html__( '#', 'avril' ),
68
+ 'button_second' => esc_html__( 'Read More', 'avril' ),
69
+ 'link2' => esc_html__( '#', 'avril' ),
70
+ "slide_align" => "center",
71
+ 'id' => 'customizer_repeater_slider_002',
72
+ ),
73
+ array(
74
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/avril/images/slider/img03.jpg',
75
+ 'title' => esc_html__( 'Industry Analysis', 'avril' ),
76
+ 'subtitle' => esc_html__( 'Marketing & Strategy', 'avril' ),
77
+ 'text' => esc_html__( 'There are many variations of passages of Lorem Ipsum available but the majority have suffered injected humour dummy now.', 'avril' ),
78
+ 'text2' => esc_html__( 'Get Started', 'avril' ),
79
+ 'link' => esc_html__( '#', 'avril' ),
80
+ 'button_second' => esc_html__( 'Read More', 'avril' ),
81
+ 'link2' => esc_html__( '#', 'avril' ),
82
+ "slide_align" => "right",
83
+ 'id' => 'customizer_repeater_slider_003',
84
+
85
+ ),
86
+ )
87
+ )
88
+ );
89
+ }
90
+
91
+
92
+ /*
93
+ *
94
+ * Service Default
95
+ */
96
+ function avril_get_service_default() {
97
+ return apply_filters(
98
+ 'avril_get_service_default', json_encode(
99
+ array(
100
+ array(
101
+ 'title' => esc_html__( 'Well Documented', 'avril' ),
102
+ 'text' => esc_html__( 'Lorem Ipsum is simply dummy of printing and typesetting and industry. Lorem Ipsum been.', 'avril' ),
103
+ 'icon_value' => 'fa-folder-open-o',
104
+ 'id' => 'customizer_repeater_service_001',
105
+
106
+ ),
107
+ array(
108
+ 'title' => esc_html__( 'Simple To Use', 'avril' ),
109
+ 'text' => esc_html__( 'Lorem Ipsum is simply dummy of printing and typesetting and industry. Lorem Ipsum been.', 'avril' ),
110
+ 'icon_value' => 'fa-list',
111
+ 'id' => 'customizer_repeater_service_002',
112
+ ),
113
+ array(
114
+ 'title' => esc_html__( 'High Performance', 'avril' ),
115
+ 'text' => esc_html__( 'Lorem Ipsum is simply dummy of printing and typesetting and industry. Lorem Ipsum been.', 'avril' ),
116
+ 'icon_value' => 'fa-rocket',
117
+ 'id' => 'customizer_repeater_service_003',
118
+ ),
119
+ )
120
+ )
121
+ );
122
+ }
123
+
124
+
125
+ /*
126
+ *
127
+ * Features Default
128
+ */
129
+ function avril_get_features_default() {
130
+ return apply_filters(
131
+ 'avril_get_features_default', json_encode(
132
+ array(
133
+ array(
134
+ 'title' => esc_html__( 'Business Growth', 'avril' ),
135
+ 'text' => esc_html__( 'Many variations of at Lorem Ipsum but the majority have suffered. Lorem Ipsum the majority suffered.', 'avril' ),
136
+ 'icon_value' => 'fa-bar-chart',
137
+ 'id' => 'customizer_repeater_features_001',
138
+
139
+ ),
140
+ array(
141
+ 'title' => esc_html__( 'Business Sustainability', 'avril' ),
142
+ 'text' => esc_html__( 'Many variations of at Lorem Ipsum but the majority have suffered. Lorem Ipsum the majority suffered.', 'avril' ),
143
+ 'icon_value' => 'fa-connectdevelop',
144
+ 'id' => 'customizer_repeater_features_002',
145
+ ),
146
+ array(
147
+ 'title' => esc_html__( 'Business Performance', 'avril' ),
148
+ 'text' => esc_html__( 'Many variations of at Lorem Ipsum but the majority have suffered. Lorem Ipsum the majority suffered.', 'avril' ),
149
+ 'icon_value' => 'fa-tachometer',
150
+ 'id' => 'customizer_repeater_features_003',
151
+ ),
152
+ array(
153
+ 'title' => esc_html__( 'Business Organization', 'avril' ),
154
+ 'text' => esc_html__( 'Many variations of at Lorem Ipsum but the majority have suffered. Lorem Ipsum the majority suffered.', 'avril' ),
155
+ 'icon_value' => 'fa-user-secret',
156
+ 'id' => 'customizer_repeater_features_004',
157
+ ),
158
+ array(
159
+ 'title' => esc_html__( 'Dedicated Teams', 'avril' ),
160
+ 'text' => esc_html__( 'Many variations of at Lorem Ipsum but the majority have suffered. Lorem Ipsum the majority suffered.', 'avril' ),
161
+ 'icon_value' => 'fa-folder-open-o',
162
+ 'id' => 'customizer_repeater_features_005',
163
+ ),
164
+ array(
165
+ 'title' => esc_html__( '24X7 support', 'avril' ),
166
+ 'text' => esc_html__( 'Many variations of at Lorem Ipsum but the majority have suffered. Lorem Ipsum the majority suffered.', 'avril' ),
167
+ 'icon_value' => 'fa-users',
168
+ 'id' => 'customizer_repeater_features_006',
169
+ ),
170
+ )
171
+ )
172
+ );
173
+ }
inc/avril/features/avril-cta.php ADDED
@@ -0,0 +1,215 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function avril_cta_setting( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+ /*=========================================
5
+ CTA Section
6
+ =========================================*/
7
+ $wp_customize->add_section(
8
+ 'cta_setting', array(
9
+ 'title' => esc_html__( 'Call to Action Section', 'avril' ),
10
+ 'priority' => 12,
11
+ 'panel' => 'avril_frontpage_sections',
12
+ )
13
+ );
14
+
15
+ // CTA Setting
16
+ $wp_customize->add_setting(
17
+ 'cta_setting_head'
18
+ ,array(
19
+ 'capability' => 'edit_theme_options',
20
+ 'sanitize_callback' => 'avril_sanitize_text',
21
+ 'priority' => 2,
22
+ )
23
+ );
24
+
25
+ $wp_customize->add_control(
26
+ 'cta_setting_head',
27
+ array(
28
+ 'type' => 'hidden',
29
+ 'label' => __('Setting','avril'),
30
+ 'section' => 'cta_setting',
31
+ )
32
+ );
33
+
34
+ $wp_customize->add_setting(
35
+ 'hs_cta' ,
36
+ array(
37
+ 'default' => '1',
38
+ 'sanitize_callback' => 'avril_sanitize_checkbox',
39
+ 'capability' => 'edit_theme_options',
40
+ 'priority' => 2,
41
+ )
42
+ );
43
+
44
+ $wp_customize->add_control(
45
+ 'hs_cta',
46
+ array(
47
+ 'label' => esc_html__( 'Hide / Show Section', 'avril' ),
48
+ 'section' => 'cta_setting',
49
+ 'type' => 'checkbox'
50
+ )
51
+ );
52
+
53
+ // CTA Content Section //
54
+ $wp_customize->add_setting(
55
+ 'cta_contents'
56
+ ,array(
57
+ 'capability' => 'edit_theme_options',
58
+ 'sanitize_callback' => 'avril_sanitize_text',
59
+ 'priority' => 3,
60
+ )
61
+ );
62
+
63
+ $wp_customize->add_control(
64
+ 'cta_contents',
65
+ array(
66
+ 'type' => 'hidden',
67
+ 'label' => __('Content','avril'),
68
+ 'section' => 'cta_setting',
69
+ )
70
+ );
71
+
72
+ // CTA Title //
73
+ $wp_customize->add_setting(
74
+ 'cta_title',
75
+ array(
76
+ 'default' => __('We work in partnership with all the major <span class="primary-color"><em>technology</em></span> solutions','avril'),
77
+ 'capability' => 'edit_theme_options',
78
+ 'sanitize_callback' => 'avril_sanitize_html',
79
+ 'priority' => 4,
80
+ )
81
+ );
82
+
83
+ $wp_customize->add_control(
84
+ 'cta_title',
85
+ array(
86
+ 'label' => __('Title','avril'),
87
+ 'section' => 'cta_setting',
88
+ 'type' => 'text',
89
+ )
90
+ );
91
+
92
+ // CTA Description //
93
+ $wp_customize->add_setting(
94
+ 'cta_description',
95
+ array(
96
+ 'default' => __('There are many variations of passages of lorem Ipsum available, but the majority','avril'),
97
+ 'capability' => 'edit_theme_options',
98
+ 'sanitize_callback' => 'avril_sanitize_text',
99
+ 'transport' => $selective_refresh,
100
+ 'priority' => 6,
101
+ )
102
+ );
103
+
104
+ $wp_customize->add_control(
105
+ 'cta_description',
106
+ array(
107
+ 'label' => __('Description','avril'),
108
+ 'section' => 'cta_setting',
109
+ 'type' => 'textarea',
110
+ )
111
+ );
112
+
113
+ // Button First //
114
+ $wp_customize->add_setting(
115
+ 'cta_btn_first'
116
+ ,array(
117
+ 'capability' => 'edit_theme_options',
118
+ 'sanitize_callback' => 'avril_sanitize_text',
119
+ 'priority' => 7,
120
+ )
121
+ );
122
+
123
+ $wp_customize->add_control(
124
+ 'cta_btn_first',
125
+ array(
126
+ 'type' => 'hidden',
127
+ 'label' => __('Button','avril'),
128
+ 'section' => 'cta_setting',
129
+ )
130
+ );
131
+
132
+ $wp_customize->add_setting(
133
+ 'cta_btn_lbl1',
134
+ array(
135
+ 'default' => __('Purchase Now','avril'),
136
+ 'capability' => 'edit_theme_options',
137
+ 'sanitize_callback' => 'avril_sanitize_html',
138
+ 'transport' => $selective_refresh,
139
+ 'priority' => 8,
140
+ )
141
+ );
142
+
143
+ $wp_customize->add_control(
144
+ 'cta_btn_lbl1',
145
+ array(
146
+ 'label' => __('Button Label','avril'),
147
+ 'section' => 'cta_setting',
148
+ 'type' => 'text',
149
+ )
150
+ );
151
+
152
+ $wp_customize->add_setting(
153
+ 'cta_btn_link1',
154
+ array(
155
+ 'capability' => 'edit_theme_options',
156
+ 'sanitize_callback' => 'avril_sanitize_url',
157
+ 'priority' => 9,
158
+ )
159
+ );
160
+
161
+ $wp_customize->add_control(
162
+ 'cta_btn_link1',
163
+ array(
164
+ 'label' => __('Link','avril'),
165
+ 'section' => 'cta_setting',
166
+ 'type' => 'text',
167
+ )
168
+ );
169
+ }
170
+
171
+ add_action( 'customize_register', 'avril_cta_setting' );
172
+
173
+ // CTA selective refresh
174
+ function avril_ata_section_partials( $wp_customize ){
175
+
176
+ // cta_title
177
+ $wp_customize->selective_refresh->add_partial( 'cta_title', array(
178
+ 'selector' => '.home-cta .cta-content h4',
179
+ 'settings' => 'cta_title',
180
+ 'render_callback' => 'avril_cta_title_render_callback',
181
+
182
+ ) );
183
+
184
+ // cta_description
185
+ $wp_customize->selective_refresh->add_partial( 'cta_description', array(
186
+ 'selector' => '.home-cta .cta-content p',
187
+ 'settings' => 'cta_description',
188
+ 'render_callback' => 'avril_cta_description_render_callback',
189
+ ) );
190
+
191
+ // cta_btn_lbl1
192
+ $wp_customize->selective_refresh->add_partial( 'cta_btn_lbl1', array(
193
+ 'selector' => '.home-cta a.av-btn-primary',
194
+ 'settings' => 'cta_btn_lbl1',
195
+ 'render_callback' => 'avril_cta_btn_lbl1_render_callback',
196
+ ) );
197
+ }
198
+
199
+ add_action( 'customize_register', 'avril_ata_section_partials' );
200
+
201
+ // cta_title
202
+ function avril_cta_title_render_callback() {
203
+ return get_theme_mod( 'cta_title' );
204
+ }
205
+
206
+
207
+ // cta_description
208
+ function avril_cta_description_render_callback() {
209
+ return get_theme_mod( 'cta_description' );
210
+ }
211
+
212
+ // cta_btn_lbl1
213
+ function avril_cta_btn_lbl1_render_callback() {
214
+ return get_theme_mod( 'cta_btn_lbl1' );
215
+ }
inc/avril/features/avril-features.php ADDED
@@ -0,0 +1,258 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function avril_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', 'avril' ),
10
+ 'priority' => 4,
11
+ 'panel' => 'avril_frontpage_sections',
12
+ )
13
+ );
14
+
15
+ // Features Setting
16
+ $wp_customize->add_setting(
17
+ 'feature_setting_head'
18
+ ,array(
19
+ 'capability' => 'edit_theme_options',
20
+ 'sanitize_callback' => 'avril_sanitize_text',
21
+ 'priority' => 2,
22
+ )
23
+ );
24
+
25
+ $wp_customize->add_control(
26
+ 'feature_setting_head',
27
+ array(
28
+ 'type' => 'hidden',
29
+ 'label' => __('Setting','avril'),
30
+ 'section' => 'feature_setting',
31
+ )
32
+ );
33
+
34
+ $wp_customize->add_setting(
35
+ 'hs_feature' ,
36
+ array(
37
+ 'default' => '1',
38
+ 'sanitize_callback' => 'avril_sanitize_checkbox',
39
+ 'capability' => 'edit_theme_options',
40
+ 'priority' => 2,
41
+ )
42
+ );
43
+
44
+ $wp_customize->add_control(
45
+ 'hs_feature',
46
+ array(
47
+ 'label' => esc_html__( 'Hide / Show Section', 'avril' ),
48
+ 'section' => 'feature_setting',
49
+ 'type' => 'checkbox'
50
+ )
51
+ );
52
+
53
+ // Features Header Section //
54
+ $wp_customize->add_setting(
55
+ 'feature_headings'
56
+ ,array(
57
+ 'capability' => 'edit_theme_options',
58
+ 'sanitize_callback' => 'avril_sanitize_text',
59
+ 'priority' => 3,
60
+ )
61
+ );
62
+
63
+ $wp_customize->add_control(
64
+ 'feature_headings',
65
+ array(
66
+ 'type' => 'hidden',
67
+ 'label' => __('Header','avril'),
68
+ 'section' => 'feature_setting',
69
+ )
70
+ );
71
+
72
+ // Feature Title //
73
+ $wp_customize->add_setting(
74
+ 'feature_title',
75
+ array(
76
+ 'default' => __('Technology from tomorrow','avril'),
77
+ 'capability' => 'edit_theme_options',
78
+ 'sanitize_callback' => 'avril_sanitize_html',
79
+ 'transport' => $selective_refresh,
80
+ 'priority' => 4,
81
+ )
82
+ );
83
+
84
+ $wp_customize->add_control(
85
+ 'feature_title',
86
+ array(
87
+ 'label' => __('Title','avril'),
88
+ 'section' => 'feature_setting',
89
+ 'type' => 'text',
90
+ )
91
+ );
92
+
93
+ // Service Subtitle //
94
+ $wp_customize->add_setting(
95
+ 'feature_subtitle',
96
+ array(
97
+ '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>','avril'),
98
+ 'capability' => 'edit_theme_options',
99
+ 'sanitize_callback' => 'avril_sanitize_html',
100
+ 'priority' => 5,
101
+ )
102
+ );
103
+
104
+ $wp_customize->add_control(
105
+ 'feature_subtitle',
106
+ array(
107
+ 'label' => __('Subtitle','avril'),
108
+ 'section' => 'feature_setting',
109
+ 'type' => 'textarea',
110
+ )
111
+ );
112
+
113
+ // Feature Description //
114
+ $wp_customize->add_setting(
115
+ 'feature_description',
116
+ array(
117
+ 'default' => __('Lorem Ipsum is simply dummy of printing and typesetting and industry. Lorem Ipsum been.','avril'),
118
+ 'capability' => 'edit_theme_options',
119
+ 'sanitize_callback' => 'avril_sanitize_text',
120
+ 'transport' => $selective_refresh,
121
+ 'priority' => 6,
122
+ )
123
+ );
124
+
125
+ $wp_customize->add_control(
126
+ 'feature_description',
127
+ array(
128
+ 'label' => __('Description','avril'),
129
+ 'section' => 'feature_setting',
130
+ 'type' => 'textarea',
131
+ )
132
+ );
133
+
134
+ // Fetaures content Section //
135
+
136
+ $wp_customize->add_setting(
137
+ 'feature_contents_head'
138
+ ,array(
139
+ 'capability' => 'edit_theme_options',
140
+ 'sanitize_callback' => 'avril_sanitize_text',
141
+ 'priority' => 7,
142
+ )
143
+ );
144
+
145
+ $wp_customize->add_control(
146
+ 'feature_contents_head',
147
+ array(
148
+ 'type' => 'hidden',
149
+ 'label' => __('Content','avril'),
150
+ 'section' => 'feature_setting',
151
+ )
152
+ );
153
+
154
+ /**
155
+ * Customizer Repeater for add Features
156
+ */
157
+
158
+ $wp_customize->add_setting( 'features_contents',
159
+ array(
160
+ 'sanitize_callback' => 'avril_repeater_sanitize',
161
+ 'transport' => $selective_refresh,
162
+ 'priority' => 8,
163
+ 'default' => avril_get_features_default()
164
+ )
165
+ );
166
+
167
+ $wp_customize->add_control(
168
+ new Avril_Repeater( $wp_customize,
169
+ 'features_contents',
170
+ array(
171
+ 'label' => esc_html__('Features','avril'),
172
+ 'section' => 'feature_setting',
173
+ 'add_field_label' => esc_html__( 'Add New Feature', 'avril' ),
174
+ 'item_name' => esc_html__( 'Feature', 'avril' ),
175
+ 'customizer_repeater_icon_control' => true,
176
+ 'customizer_repeater_title_control' => true,
177
+ 'customizer_repeater_text_control' => true,
178
+ )
179
+ )
180
+ );
181
+
182
+
183
+ //Pro feature
184
+ class Avril_feature__section_upgrade extends WP_Customize_Control {
185
+ public function render_content() {
186
+ ?>
187
+ <span class="customizer_feature_upgrade_section up-to-pro" style="display: none;"><?php _e('More Features are Available in Premium Version','conceptly'); ?></span>
188
+ <?php
189
+ }
190
+ }
191
+
192
+ $wp_customize->add_setting( 'avril_feature_upgrade_to_pro', array(
193
+ 'capability' => 'edit_theme_options',
194
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
195
+ ));
196
+ $wp_customize->add_control(
197
+ new Avril_feature__section_upgrade(
198
+ $wp_customize,
199
+ 'avril_feature_upgrade_to_pro',
200
+ array(
201
+ 'section' => 'feature_setting',
202
+ 'settings' => 'avril_feature_upgrade_to_pro',
203
+ )
204
+ )
205
+ );
206
+ }
207
+
208
+ add_action( 'customize_register', 'avril_features_setting' );
209
+
210
+ // service selective refresh
211
+ function avril_features_section_partials( $wp_customize ){
212
+ // feature_title
213
+ $wp_customize->selective_refresh->add_partial( 'feature_title', array(
214
+ 'selector' => '#features-section .heading-default .ttl',
215
+ 'settings' => 'feature_title',
216
+ 'render_callback' => 'avril_feature_title_render_callback',
217
+
218
+ ) );
219
+
220
+ // feature_subtitle
221
+ $wp_customize->selective_refresh->add_partial( 'feature_subtitle', array(
222
+ 'selector' => '#features-section .heading-default h3',
223
+ 'settings' => 'feature_subtitle',
224
+ 'render_callback' => 'avril_feature_subtitle_render_callback',
225
+
226
+ ) );
227
+
228
+ // feature_description
229
+ $wp_customize->selective_refresh->add_partial( 'feature_description', array(
230
+ 'selector' => '#features-section .heading-default p',
231
+ 'settings' => 'feature_description',
232
+ 'render_callback' => 'avril_feature_description_render_callback',
233
+
234
+ ) );
235
+ // features_contents
236
+ $wp_customize->selective_refresh->add_partial( 'features_contents', array(
237
+ 'selector' => '#features-section .features-area'
238
+
239
+ ) );
240
+
241
+ }
242
+
243
+ add_action( 'customize_register', 'avril_features_section_partials' );
244
+
245
+ // feature_title
246
+ function avril_feature_title_render_callback() {
247
+ return get_theme_mod( 'feature_title' );
248
+ }
249
+
250
+ // feature_subtitle
251
+ function avril_feature_subtitle_render_callback() {
252
+ return get_theme_mod( 'feature_subtitle' );
253
+ }
254
+
255
+ // service description
256
+ function avril_feature_description_render_callback() {
257
+ return get_theme_mod( 'feature_description' );
258
+ }
inc/avril/features/avril-header.php ADDED
@@ -0,0 +1,540 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function avril_lite_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', 'avril'),
13
+ )
14
+ );
15
+
16
+ /*=========================================
17
+ Avril Site Identity
18
+ =========================================*/
19
+
20
+ // Logo Width //
21
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
22
+ $wp_customize->add_setting(
23
+ 'logo_width',
24
+ array(
25
+ 'default' => '140',
26
+ 'capability' => 'edit_theme_options',
27
+ 'sanitize_callback' => 'avril_sanitize_range_value',
28
+ 'transport' => 'postMessage',
29
+ )
30
+ );
31
+ $wp_customize->add_control(
32
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'logo_width',
33
+ array(
34
+ 'label' => __( 'Logo Width', 'avril' ),
35
+ 'section' => 'title_tagline',
36
+ 'input_attrs' => array(
37
+ 'min' => 0,
38
+ 'max' => 500,
39
+ 'step' => 1,
40
+ //'suffix' => 'px', //optional suffix
41
+ ),
42
+ ) )
43
+ );
44
+ }
45
+
46
+ /*=========================================
47
+ Above Header Section
48
+ =========================================*/
49
+ $wp_customize->add_section(
50
+ 'above_header',
51
+ array(
52
+ 'priority' => 2,
53
+ 'title' => __('Above Header','avril'),
54
+ 'panel' => 'header_section',
55
+ )
56
+ );
57
+
58
+
59
+ $wp_customize->add_setting(
60
+ 'hide_show_social_icon' ,
61
+ array(
62
+ 'default' => '1',
63
+ 'capability' => 'edit_theme_options',
64
+ 'sanitize_callback' => 'avril_sanitize_checkbox',
65
+ 'transport' => $selective_refresh,
66
+ 'priority' => 1,
67
+ )
68
+ );
69
+
70
+ $wp_customize->add_control(
71
+ 'hide_show_social_icon',
72
+ array(
73
+ 'label' => esc_html__( 'Hide/Show', 'avril' ),
74
+ 'section' => 'above_header',
75
+ 'type' => 'checkbox'
76
+ )
77
+ );
78
+
79
+ /**
80
+ * Customizer Repeater
81
+ */
82
+ $wp_customize->add_setting( 'social_icons',
83
+ array(
84
+ 'sanitize_callback' => 'avril_repeater_sanitize',
85
+ 'priority' => 2,
86
+ 'default' => avril_get_social_icon_default()
87
+ )
88
+ );
89
+
90
+ $wp_customize->add_control(
91
+ new AVRIL_Repeater( $wp_customize,
92
+ 'social_icons',
93
+ array(
94
+ 'label' => esc_html__('Social Icons','avril'),
95
+ 'section' => 'above_header',
96
+ 'add_field_label' => esc_html__( 'Add New Social', 'avril' ),
97
+ 'item_name' => esc_html__( 'Social', 'avril' ),
98
+ 'customizer_repeater_icon_control' => true,
99
+ 'customizer_repeater_link_control' => true,
100
+ )
101
+ )
102
+ );
103
+
104
+ //Pro feature
105
+ class Avril_social__section_upgrade extends WP_Customize_Control {
106
+ public function render_content() {
107
+ ?>
108
+ <span class="customizer_social_upgrade_section up-to-pro" style="display: none;"><?php _e('More Icons are Available in Premium Version','conceptly'); ?></span>
109
+ <?php
110
+ }
111
+ }
112
+
113
+ $wp_customize->add_setting( 'avril_social_upgrade_to_pro', array(
114
+ 'capability' => 'edit_theme_options',
115
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
116
+ ));
117
+ $wp_customize->add_control(
118
+ new Avril_social__section_upgrade(
119
+ $wp_customize,
120
+ 'avril_social_upgrade_to_pro',
121
+ array(
122
+ 'section' => 'above_header',
123
+ 'settings' => 'avril_social_upgrade_to_pro',
124
+ )
125
+ )
126
+ );
127
+
128
+ // Mobile
129
+ $wp_customize->add_setting(
130
+ 'hdr_top_mbl'
131
+ ,array(
132
+ 'capability' => 'edit_theme_options',
133
+ 'sanitize_callback' => 'avril_sanitize_text',
134
+ 'priority' => 1,
135
+ )
136
+ );
137
+
138
+ $wp_customize->add_control(
139
+ 'hdr_top_mbl',
140
+ array(
141
+ 'type' => 'hidden',
142
+ 'label' => __('Phone','avril'),
143
+ 'section' => 'above_header',
144
+
145
+ )
146
+ );
147
+ $wp_customize->add_setting(
148
+ 'hide_show_mbl_details' ,
149
+ array(
150
+ 'default' => '1',
151
+ 'capability' => 'edit_theme_options',
152
+ 'sanitize_callback' => 'avril_sanitize_checkbox',
153
+ 'transport' => $selective_refresh,
154
+ 'priority' => 2,
155
+ )
156
+ );
157
+
158
+ $wp_customize->add_control(
159
+ 'hide_show_mbl_details',
160
+ array(
161
+ 'label' => esc_html__( 'Hide/Show', 'avril' ),
162
+ 'section' => 'above_header',
163
+ 'type' => 'checkbox'
164
+ )
165
+ );
166
+ // icon //
167
+ $wp_customize->add_setting(
168
+ 'tlh_mobile_icon',
169
+ array(
170
+ 'default' => 'fa-map-marker',
171
+ 'sanitize_callback' => 'sanitize_text_field',
172
+ 'capability' => 'edit_theme_options',
173
+ )
174
+ );
175
+
176
+ $wp_customize->add_control(new Avril_Icon_Picker_Control($wp_customize,
177
+ 'tlh_mobile_icon',
178
+ array(
179
+ 'label' => __('Icon','avril'),
180
+ 'section' => 'above_header',
181
+ 'iconset' => 'fa',
182
+
183
+ ))
184
+ );
185
+
186
+ // Mobile title //
187
+ $wp_customize->add_setting(
188
+ 'tlh_mobile_title',
189
+ array(
190
+ 'default' => __('Online 24x7','avril'),
191
+ 'sanitize_callback' => 'avril_sanitize_text',
192
+ 'transport' => $selective_refresh,
193
+ 'capability' => 'edit_theme_options',
194
+ 'priority' => 3,
195
+ )
196
+ );
197
+
198
+ $wp_customize->add_control(
199
+ 'tlh_mobile_title',
200
+ array(
201
+ 'label' => __('Title','avril'),
202
+ 'section' => 'above_header',
203
+ 'type' => 'text'
204
+ )
205
+ );
206
+
207
+ // Mobile subtitle //
208
+ $wp_customize->add_setting(
209
+ 'tlh_mobile_sbtitle',
210
+ array(
211
+ 'default' => __('+1-0120-400-00-00','avril'),
212
+ 'sanitize_callback' => 'avril_sanitize_text',
213
+ 'capability' => 'edit_theme_options',
214
+ 'transport' => $selective_refresh,
215
+ 'priority' => 4,
216
+ )
217
+ );
218
+
219
+ $wp_customize->add_control(
220
+ 'tlh_mobile_sbtitle',
221
+ array(
222
+ 'label' => __('Subtitle','avril'),
223
+ 'section' => 'above_header',
224
+ 'type' => 'text'
225
+ )
226
+ );
227
+ // Mobile
228
+ $wp_customize->add_setting(
229
+ 'hdr_top_email'
230
+ ,array(
231
+ 'capability' => 'edit_theme_options',
232
+ 'sanitize_callback' => 'avril_sanitize_text',
233
+ 'priority' => 5,
234
+ )
235
+ );
236
+
237
+ $wp_customize->add_control(
238
+ 'hdr_top_email',
239
+ array(
240
+ 'type' => 'hidden',
241
+ 'label' => __('Email','avril'),
242
+ 'section' => 'above_header',
243
+ )
244
+ );
245
+ $wp_customize->add_setting(
246
+ 'hide_show_email_details' ,
247
+ array(
248
+ 'default' => '1',
249
+ 'capability' => 'edit_theme_options',
250
+ 'sanitize_callback' => 'avril_sanitize_checkbox',
251
+ 'transport' => $selective_refresh,
252
+ 'priority' => 6,
253
+ )
254
+ );
255
+
256
+ $wp_customize->add_control(
257
+ 'hide_show_email_details',
258
+ array(
259
+ 'label' => esc_html__( 'Hide/Show', 'avril' ),
260
+ 'section' => 'above_header',
261
+ 'type' => 'checkbox'
262
+ )
263
+ );
264
+
265
+ // icon //
266
+ $wp_customize->add_setting(
267
+ 'tlh_email_icon',
268
+ array(
269
+ 'default' => 'fa-phone',
270
+ 'sanitize_callback' => 'sanitize_text_field',
271
+ 'capability' => 'edit_theme_options',
272
+ )
273
+ );
274
+
275
+ $wp_customize->add_control(new Avril_Icon_Picker_Control($wp_customize,
276
+ 'tlh_email_icon',
277
+ array(
278
+ 'label' => __('Icon','avril'),
279
+ 'section' => 'above_header',
280
+ 'iconset' => 'fa',
281
+
282
+ ))
283
+ );
284
+ // Mobile title //
285
+ $wp_customize->add_setting(
286
+ 'tlh_email_title',
287
+ array(
288
+ 'default' => __('Email Us','avril'),
289
+ 'sanitize_callback' => 'avril_sanitize_text',
290
+ 'capability' => 'edit_theme_options',
291
+ 'transport' => $selective_refresh,
292
+ 'priority' => 7,
293
+ )
294
+ );
295
+
296
+ $wp_customize->add_control(
297
+ 'tlh_email_title',
298
+ array(
299
+ 'label' => __('Title','avril'),
300
+ 'section' => 'above_header',
301
+ 'type' => 'text'
302
+ )
303
+ );
304
+
305
+ // Mobile subtitle //
306
+ $wp_customize->add_setting(
307
+ 'tlh_email_sbtitle',
308
+ array(
309
+ 'default' => __('email@email.com','avril'),
310
+ 'sanitize_callback' => 'avril_sanitize_text',
311
+ 'transport' => $selective_refresh,
312
+ 'capability' => 'edit_theme_options',
313
+ 'priority' => 8,
314
+ )
315
+ );
316
+
317
+ $wp_customize->add_control(
318
+ 'tlh_email_sbtitle',
319
+ array(
320
+ 'label' => __('Subtitle','avril'),
321
+ 'section' => 'above_header',
322
+ 'type' => 'text'
323
+ )
324
+ );
325
+
326
+ // Contact
327
+ $wp_customize->add_setting(
328
+ 'hdr_top_contact'
329
+ ,array(
330
+ 'capability' => 'edit_theme_options',
331
+ 'sanitize_callback' => 'avril_sanitize_text',
332
+ 'priority' => 9,
333
+ )
334
+ );
335
+
336
+ $wp_customize->add_control(
337
+ 'hdr_top_contact',
338
+ array(
339
+ 'type' => 'hidden',
340
+ 'label' => __('Contact','avril'),
341
+ 'section' => 'above_header',
342
+ )
343
+ );
344
+ $wp_customize->add_setting(
345
+ 'hide_show_cntct_details' ,
346
+ array(
347
+ 'default' => '1',
348
+ 'capability' => 'edit_theme_options',
349
+ 'sanitize_callback' => 'avril_sanitize_checkbox',
350
+ 'transport' => $selective_refresh,
351
+ 'priority' => 10,
352
+ )
353
+ );
354
+
355
+ $wp_customize->add_control(
356
+ 'hide_show_cntct_details',
357
+ array(
358
+ 'label' => esc_html__( 'Hide/Show', 'avril' ),
359
+ 'section' => 'above_header',
360
+ 'type' => 'checkbox'
361
+ )
362
+ );
363
+
364
+ // icon //
365
+ $wp_customize->add_setting(
366
+ 'tlh_contct_icon',
367
+ array(
368
+ 'default' => 'fa-clock-o',
369
+ 'sanitize_callback' => 'sanitize_text_field',
370
+ 'capability' => 'edit_theme_options',
371
+ )
372
+ );
373
+
374
+ $wp_customize->add_control(new Avril_Icon_Picker_Control($wp_customize,
375
+ 'tlh_contct_icon',
376
+ array(
377
+ 'label' => __('Icon','avril'),
378
+ 'section' => 'above_header',
379
+ 'iconset' => 'fa',
380
+
381
+ ))
382
+ );
383
+ // Mobile title //
384
+ $wp_customize->add_setting(
385
+ 'tlh_contact_title',
386
+ array(
387
+ 'default' => __('8:00AM - 6:00PM','avril'),
388
+ 'sanitize_callback' => 'avril_sanitize_text',
389
+ 'transport' => $selective_refresh,
390
+ 'capability' => 'edit_theme_options',
391
+ 'priority' => 11,
392
+ )
393
+ );
394
+
395
+ $wp_customize->add_control(
396
+ 'tlh_contact_title',
397
+ array(
398
+ 'label' => __('Title','avril'),
399
+ 'section' => 'above_header',
400
+ 'type' => 'text'
401
+ )
402
+ );
403
+
404
+ // Mobile subtitle //
405
+ $wp_customize->add_setting(
406
+ 'tlh_contact_sbtitle',
407
+ array(
408
+ 'default' => __('Monday to Saturday','avril'),
409
+ 'sanitize_callback' => 'avril_sanitize_text',
410
+ 'transport' => $selective_refresh,
411
+ 'capability' => 'edit_theme_options',
412
+ 'priority' => 12,
413
+ )
414
+ );
415
+
416
+ $wp_customize->add_control(
417
+ 'tlh_contact_sbtitle',
418
+ array(
419
+ 'label' => __('Subtitle','avril'),
420
+ 'section' => 'above_header',
421
+ 'type' => 'text'
422
+ )
423
+ );
424
+ }
425
+ add_action( 'customize_register', 'avril_lite_header_settings' );
426
+
427
+ // Header selective refresh
428
+ function avril_lite_header_partials( $wp_customize ){
429
+
430
+ // hide show Social
431
+ $wp_customize->selective_refresh->add_partial(
432
+ 'hide_show_social_icon', array(
433
+ 'selector' => '#above-header .widget_social_widget',
434
+ 'container_inclusive' => true,
435
+ 'render_callback' => 'header_top_right',
436
+ 'fallback_refresh' => true,
437
+ )
438
+ );
439
+ // hide_show_cntct_details
440
+ $wp_customize->selective_refresh->add_partial(
441
+ 'hide_show_cntct_details', array(
442
+ 'selector' => '#above-header .wgt-1',
443
+ 'container_inclusive' => true,
444
+ 'render_callback' => 'header_top_right',
445
+ 'fallback_refresh' => true,
446
+ )
447
+ );
448
+ // hide_show_email_details
449
+ $wp_customize->selective_refresh->add_partial(
450
+ 'hide_show_email_details', array(
451
+ 'selector' => '#above-header .wgt-2',
452
+ 'container_inclusive' => true,
453
+ 'render_callback' => 'header_top_right',
454
+ 'fallback_refresh' => true,
455
+ )
456
+ );
457
+ // hide_show_mbl_details
458
+ $wp_customize->selective_refresh->add_partial(
459
+ 'hide_show_mbl_details', array(
460
+ 'selector' => '#above-header .wgt-3',
461
+ 'container_inclusive' => true,
462
+ 'render_callback' => 'header_top_left',
463
+ 'fallback_refresh' => true,
464
+ )
465
+ );
466
+
467
+ // tlh_mobile_title
468
+ $wp_customize->selective_refresh->add_partial( 'tlh_mobile_title', array(
469
+ 'selector' => '#above-header .wgt-3 .text',
470
+ 'settings' => 'tlh_mobile_title',
471
+ 'render_callback' => 'avril_tlh_mobile_title_render_callback',
472
+ ) );
473
+
474
+ // tlh_mobile_sbtitle
475
+ $wp_customize->selective_refresh->add_partial( 'tlh_mobile_sbtitle', array(
476
+ 'selector' => '#above-header .wgt-3 .title',
477
+ 'settings' => 'tlh_mobile_sbtitle',
478
+ 'render_callback' => 'avril_tlh_mobile_sbtitle_render_callback',
479
+ ) );
480
+
481
+ // tlh_email_title
482
+ $wp_customize->selective_refresh->add_partial( 'tlh_email_title', array(
483
+ 'selector' => '#above-header .wgt-2 .text',
484
+ 'settings' => 'tlh_email_title',
485
+ 'render_callback' => 'avril_tlh_email_title_render_callback',
486
+ ) );
487
+
488
+ // tlh_email_sbtitle
489
+ $wp_customize->selective_refresh->add_partial( 'tlh_email_sbtitle', array(
490
+ 'selector' => '#above-header .wgt-2 .title',
491
+ 'settings' => 'tlh_email_sbtitle',
492
+ 'render_callback' => 'avril_tlh_email_sbtitle_render_callback',
493
+ ) );
494
+
495
+ // tlh_contact_title
496
+ $wp_customize->selective_refresh->add_partial( 'tlh_contact_title', array(
497
+ 'selector' => '#above-header .wgt-1 .text',
498
+ 'settings' => 'tlh_contact_title',
499
+ 'render_callback' => 'avril_tlh_contact_title_render_callback',
500
+ ) );
501
+
502
+ // tlh_contact_sbtitle
503
+ $wp_customize->selective_refresh->add_partial( 'tlh_contact_sbtitle', array(
504
+ 'selector' => '#above-header .wgt-1 .title',
505
+ 'settings' => 'tlh_contact_sbtitle',
506
+ 'render_callback' => 'avril_tlh_contact_sbtitle_render_callback',
507
+ ) );
508
+ }
509
+
510
+ add_action( 'customize_register', 'avril_lite_header_partials' );
511
+
512
+ // tlh_mobile_title
513
+ function avril_tlh_mobile_title_render_callback() {
514
+ return get_theme_mod( 'tlh_mobile_title' );
515
+ }
516
+
517
+ // tlh_mobile_sbtitle
518
+ function avril_tlh_mobile_sbtitle_render_callback() {
519
+ return get_theme_mod( 'tlh_mobile_sbtitle' );
520
+ }
521
+
522
+ // tlh_email_title
523
+ function avril_tlh_email_title_render_callback() {
524
+ return get_theme_mod( 'tlh_email_title' );
525
+ }
526
+
527
+ // tlh_email_sbtitle
528
+ function avril_tlh_email_sbtitle_render_callback() {
529
+ return get_theme_mod( 'tlh_email_sbtitle' );
530
+ }
531
+
532
+ // tlh_contact_title
533
+ function avril_tlh_contact_title_render_callback() {
534
+ return get_theme_mod( 'tlh_contact_title' );
535
+ }
536
+
537
+ // tlh_contact_sbtitle
538
+ function avril_tlh_contact_sbtitle_render_callback() {
539
+ return get_theme_mod( 'tlh_contact_sbtitle' );
540
+ }
inc/avril/features/avril-info.php ADDED
@@ -0,0 +1,452 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function avril_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', 'avril' ),
11
+ 'panel' => 'avril_frontpage_sections',
12
+ 'priority' => 2,
13
+ )
14
+ );
15
+
16
+ // Info Setting
17
+ $wp_customize->add_setting(
18
+ 'info_setting_head'
19
+ ,array(
20
+ 'capability' => 'edit_theme_options',
21
+ 'sanitize_callback' => 'avril_sanitize_text',
22
+ 'priority' => 2,
23
+ )
24
+ );
25
+
26
+ $wp_customize->add_control(
27
+ 'info_setting_head',
28
+ array(
29
+ 'type' => 'hidden',
30
+ 'label' => __('Setting','avril'),
31
+ 'section' => 'info_setting',
32
+ )
33
+ );
34
+
35
+ $wp_customize->add_setting(
36
+ 'hs_info' ,
37
+ array(
38
+ 'default' => '1',
39
+ 'sanitize_callback' => 'avril_sanitize_checkbox',
40
+ 'capability' => 'edit_theme_options',
41
+ 'priority' => 2,
42
+ )
43
+ );
44
+
45
+ $wp_customize->add_control(
46
+ 'hs_info',
47
+ array(
48
+ 'label' => esc_html__( 'Hide / Show Section', 'avril' ),
49
+ 'section' => 'info_setting',
50
+ 'type' => 'checkbox'
51
+ )
52
+ );
53
+
54
+ /*=========================================
55
+ Info contents Section first
56
+ =========================================*/
57
+
58
+ // Settings
59
+ $wp_customize->add_setting(
60
+ 'info_first_settings'
61
+ ,array(
62
+ 'capability' => 'edit_theme_options',
63
+ 'sanitize_callback' => 'avril_sanitize_text',
64
+ 'priority' => 3,
65
+ )
66
+ );
67
+
68
+ $wp_customize->add_control(
69
+ 'info_first_settings',
70
+ array(
71
+ 'type' => 'hidden',
72
+ 'label' => __('Info First','avril'),
73
+ 'section' => 'info_setting',
74
+ )
75
+ );
76
+
77
+ // info section icon //
78
+ $wp_customize->add_setting(
79
+ 'info_first_icon_setting',
80
+ array(
81
+ 'default' => 'fa-clock-o',
82
+ 'sanitize_callback' => 'sanitize_text_field',
83
+ 'capability' => 'edit_theme_options',
84
+ 'priority' => 5,
85
+ )
86
+ );
87
+
88
+ $wp_customize->add_control(new Avril_Icon_Picker_Control($wp_customize,
89
+ 'info_first_icon_setting',
90
+ array(
91
+ 'label' => __('Icon','avril'),
92
+ 'section' => 'info_setting',
93
+ 'iconset' => 'fa',
94
+ 'settings' => 'info_first_icon_setting',
95
+
96
+ ))
97
+ );
98
+
99
+ // info title //
100
+ $wp_customize->add_setting(
101
+ 'info_title',
102
+ array(
103
+ 'default' => __('Opening Hours','avril'),
104
+ 'capability' => 'edit_theme_options',
105
+ 'sanitize_callback' => 'sanitize_text_field',
106
+ 'transport' => $selective_refresh,
107
+ 'priority' => 6,
108
+ )
109
+ );
110
+
111
+ $wp_customize->add_control(
112
+ 'info_title',
113
+ array(
114
+ 'label' => __('Title','avril'),
115
+ 'section' => 'info_setting',
116
+ 'settings'=> 'info_title',
117
+ 'type' => 'text',
118
+ )
119
+ );
120
+
121
+ // info Description //
122
+ $wp_customize->add_setting(
123
+ 'info_description',
124
+ array(
125
+ 'default' => __('Monday-Friday: 09:00-22:00','avril'),
126
+ 'capability' => 'edit_theme_options',
127
+ 'sanitize_callback' => 'sanitize_text_field',
128
+ 'transport' => $selective_refresh,
129
+ 'priority' => 7,
130
+ )
131
+ );
132
+
133
+ $wp_customize->add_control(
134
+ 'info_description',
135
+ array(
136
+ 'label' => __('Description','avril'),
137
+ 'section' => 'info_setting',
138
+ 'settings'=> 'info_description',
139
+ 'type' => 'text',
140
+ )
141
+ );
142
+
143
+ // info link //
144
+ $wp_customize->add_setting(
145
+ 'info_link',
146
+ array(
147
+ 'default' => __('#','avril'),
148
+ 'capability' => 'edit_theme_options',
149
+ 'sanitize_callback' => 'avril_sanitize_url',
150
+ 'priority' => 9,
151
+ )
152
+ );
153
+
154
+ $wp_customize->add_control(
155
+ 'info_link',
156
+ array(
157
+ 'label' => __('Link','avril'),
158
+ 'section' => 'info_setting',
159
+ 'type' => 'text',
160
+ )
161
+ );
162
+ /*=========================================
163
+ Info contents Section second
164
+ =========================================*/
165
+ // Settings
166
+ $wp_customize->add_setting(
167
+ 'info2_settings'
168
+ ,array(
169
+ 'capability' => 'edit_theme_options',
170
+ 'sanitize_callback' => 'avril_sanitize_text',
171
+ 'priority' => 11,
172
+ )
173
+ );
174
+
175
+ $wp_customize->add_control(
176
+ 'info2_settings',
177
+ array(
178
+ 'type' => 'hidden',
179
+ 'label' => __('Info Second','avril'),
180
+ 'section' => 'info_setting',
181
+ )
182
+ );
183
+
184
+ // info section icon //
185
+ $wp_customize->add_setting(
186
+ 'info_second_icon_setting',
187
+ array(
188
+ 'default' => 'fa-home',
189
+ 'sanitize_callback' => 'sanitize_text_field',
190
+ 'capability' => 'edit_theme_options',
191
+ 'priority' => 13,
192
+ )
193
+ );
194
+
195
+ $wp_customize->add_control(new Avril_Icon_Picker_Control($wp_customize,
196
+ 'info_second_icon_setting',
197
+ array(
198
+ 'label' => __('Icon','avril'),
199
+ 'section' => 'info_setting',
200
+ 'iconset' => 'fa',
201
+ 'settings' => 'info_second_icon_setting',
202
+
203
+ ))
204
+ );
205
+
206
+ // info title //
207
+ $wp_customize->add_setting(
208
+ 'info_title2',
209
+ array(
210
+ 'default' => __('Our Location','avril'),
211
+ 'capability' => 'edit_theme_options',
212
+ 'sanitize_callback' => 'sanitize_text_field',
213
+ 'transport' => $selective_refresh,
214
+ 'priority' => 14,
215
+ )
216
+ );
217
+
218
+ $wp_customize->add_control(
219
+ 'info_title2',
220
+ array(
221
+ 'label' => __('Title','avril'),
222
+ 'section' => 'info_setting',
223
+ 'settings'=> 'info_title2',
224
+ 'type' => 'text',
225
+ )
226
+ );
227
+
228
+ // info Description //
229
+ $wp_customize->add_setting(
230
+ 'info_description2',
231
+ array(
232
+ 'default' => __('California Floor, USA 1208','avril'),
233
+ 'capability' => 'edit_theme_options',
234
+ 'sanitize_callback' => 'sanitize_text_field',
235
+ 'transport' => $selective_refresh,
236
+ 'priority' => 15,
237
+ )
238
+ );
239
+
240
+ $wp_customize->add_control(
241
+ 'info_description2',
242
+ array(
243
+ 'label' => __('Description','avril'),
244
+ 'section' => 'info_setting',
245
+ 'settings'=> 'info_description2',
246
+ 'type' => 'text',
247
+ )
248
+ );
249
+
250
+ // info link //
251
+ $wp_customize->add_setting(
252
+ 'info_link2',
253
+ array(
254
+ 'default' => __('#','avril'),
255
+ 'capability' => 'edit_theme_options',
256
+ 'sanitize_callback' => 'avril_sanitize_url',
257
+ 'priority' => 17,
258
+ )
259
+ );
260
+
261
+ $wp_customize->add_control(
262
+ 'info_link2',
263
+ array(
264
+ 'label' => __('Link','avril'),
265
+ 'section' => 'info_setting',
266
+ 'type' => 'text',
267
+ )
268
+ );
269
+ /*=========================================
270
+ Info contents Section third
271
+ =========================================*/
272
+ // Settings
273
+ $wp_customize->add_setting(
274
+ 'info3_settings'
275
+ ,array(
276
+ 'capability' => 'edit_theme_options',
277
+ 'sanitize_callback' => 'avril_sanitize_text',
278
+ 'priority' => 21,
279
+ )
280
+ );
281
+
282
+ $wp_customize->add_control(
283
+ 'info3_settings',
284
+ array(
285
+ 'type' => 'hidden',
286
+ 'label' => __('Info Third','avril'),
287
+ 'section' => 'info_setting',
288
+ )
289
+ );
290
+
291
+ // info section icon //
292
+ $wp_customize->add_setting(
293
+ 'info_third_icon_setting',
294
+ array(
295
+ 'default' => 'fa-calendar',
296
+ 'sanitize_callback' => 'sanitize_text_field',
297
+ 'capability' => 'edit_theme_options',
298
+ 'priority' => 23,
299
+ )
300
+ );
301
+
302
+ $wp_customize->add_control(new Avril_Icon_Picker_Control($wp_customize,
303
+ 'info_third_icon_setting',
304
+ array(
305
+ 'label' => __('Icon','avril'),
306
+ 'section' => 'info_setting',
307
+ 'iconset' => 'fa',
308
+ 'settings' => 'info_third_icon_setting',
309
+
310
+ ))
311
+ );
312
+
313
+ // info title //
314
+ $wp_customize->add_setting(
315
+ 'info_title3',
316
+ array(
317
+ 'default' => __('Booking Now','avril'),
318
+ 'capability' => 'edit_theme_options',
319
+ 'sanitize_callback' => 'sanitize_text_field',
320
+ 'transport' => $selective_refresh,
321
+ 'priority' => 24,
322
+ )
323
+ );
324
+
325
+ $wp_customize->add_control(
326
+ 'info_title3',
327
+ array(
328
+ 'label' => __('Title','avril'),
329
+ 'section' => 'info_setting',
330
+ 'settings'=> 'info_title3',
331
+ 'type' => 'text',
332
+ )
333
+ );
334
+
335
+ // info Description //
336
+ $wp_customize->add_setting(
337
+ 'info_description3',
338
+ array(
339
+ 'default' => __('+00-245-152-5500','avril'),
340
+ 'capability' => 'edit_theme_options',
341
+ 'sanitize_callback' => 'sanitize_text_field',
342
+ 'transport' => $selective_refresh,
343
+ 'priority' => 25,
344
+ )
345
+ );
346
+
347
+ $wp_customize->add_control(
348
+ 'info_description3',
349
+ array(
350
+ 'section' => 'info_setting',
351
+ 'settings'=> 'info_description3',
352
+ 'type' => 'text',
353
+ )
354
+ );
355
+
356
+ // info link //
357
+ $wp_customize->add_setting(
358
+ 'info_link3',
359
+ array(
360
+ 'default' => __('#','avril'),
361
+ 'capability' => 'edit_theme_options',
362
+ 'sanitize_callback' => 'avril_sanitize_url',
363
+ 'priority' => 27,
364
+ )
365
+ );
366
+
367
+ $wp_customize->add_control(
368
+ 'info_link3',
369
+ array(
370
+ 'label' => __('Link','avril'),
371
+ 'section' => 'info_setting',
372
+ 'type' => 'text',
373
+ )
374
+ );
375
+ }
376
+ add_action( 'customize_register', 'avril_info_setting' );
377
+
378
+ /**
379
+ * Add selective refresh for Front page section section controls.
380
+ */
381
+ function avril_home_info_section_partials( $wp_customize ){
382
+
383
+ //info section first
384
+ $wp_customize->selective_refresh->add_partial( 'info_title', array(
385
+ 'selector' => '#info-section .info-first .text',
386
+ 'settings' => 'info_title',
387
+ 'render_callback' => 'info_section_title_render_callback',
388
+
389
+ ) );
390
+
391
+ $wp_customize->selective_refresh->add_partial( 'info_description', array(
392
+ 'selector' => '#info-section .info-first .title',
393
+ 'settings' => 'info_description',
394
+ 'render_callback' => 'home_service_section_description_render_callback',
395
+
396
+ ) );
397
+ // info second
398
+ $wp_customize->selective_refresh->add_partial( 'info_title2', array(
399
+ 'selector' => '#info-section .info-second .text',
400
+ 'settings' => 'info_title2',
401
+ 'render_callback' => 'info_second_title_render_callback',
402
+
403
+ ) );
404
+
405
+ $wp_customize->selective_refresh->add_partial( 'info_description2', array(
406
+ 'selector' => '#info-section .info-second .title',
407
+ 'settings' => 'info_description2',
408
+ 'render_callback' => 'info_second_description_render_callback',
409
+
410
+ ) );
411
+ // info third
412
+ $wp_customize->selective_refresh->add_partial( 'info_title3', array(
413
+ 'selector' => '#info-section .info-third .text',
414
+ 'settings' => 'info_title3',
415
+ 'render_callback' => 'info_third_title_render_callback',
416
+
417
+ ) );
418
+
419
+ $wp_customize->selective_refresh->add_partial( 'info_description3', array(
420
+ 'selector' => '#info-section .info-third .title',
421
+ 'settings' => 'info_description3',
422
+ 'render_callback' => 'info_third_description_render_callback',
423
+
424
+ ) );
425
+
426
+ }
427
+
428
+ add_action( 'customize_register', 'avril_home_info_section_partials' );
429
+ // info first
430
+ function info_section_title_render_callback() {
431
+ return get_theme_mod( 'info_title' );
432
+ }
433
+
434
+ function home_service_section_description_render_callback() {
435
+ return get_theme_mod( 'info_description' );
436
+ }
437
+ // info second
438
+ function info_second_title_render_callback() {
439
+ return get_theme_mod( 'info_title2' );
440
+ }
441
+
442
+ function info_second_description_render_callback() {
443
+ return get_theme_mod( 'info_description2' );
444
+ }
445
+ // info third
446
+ function info_third_title_render_callback() {
447
+ return get_theme_mod( 'info_title3' );
448
+ }
449
+
450
+ function info_third_description_render_callback() {
451
+ return get_theme_mod( 'info_description3' );
452
+ }
inc/avril/features/avril-service.php ADDED
@@ -0,0 +1,258 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function avril_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', 'avril' ),
10
+ 'priority' => 3,
11
+ 'panel' => 'avril_frontpage_sections',
12
+ )
13
+ );
14
+
15
+ // Service Setting
16
+ $wp_customize->add_setting(
17
+ 'service_setting_head'
18
+ ,array(
19
+ 'capability' => 'edit_theme_options',
20
+ 'sanitize_callback' => 'avril_sanitize_text',
21
+ 'priority' => 2,
22
+ )
23
+ );
24
+
25
+ $wp_customize->add_control(
26
+ 'service_setting_head',
27
+ array(
28
+ 'type' => 'hidden',
29
+ 'label' => __('Setting','avril'),
30
+ 'section' => 'service_setting',
31
+ )
32
+ );
33
+
34
+ $wp_customize->add_setting(
35
+ 'hs_service' ,
36
+ array(
37
+ 'default' => '1',
38
+ 'sanitize_callback' => 'avril_sanitize_checkbox',
39
+ 'capability' => 'edit_theme_options',
40
+ 'priority' => 2,
41
+ )
42
+ );
43
+
44
+ $wp_customize->add_control(
45
+ 'hs_service',
46
+ array(
47
+ 'label' => esc_html__( 'Hide / Show Section', 'avril' ),
48
+ 'section' => 'service_setting',
49
+ 'type' => 'checkbox'
50
+ )
51
+ );
52
+
53
+ // Service Header Section //
54
+ $wp_customize->add_setting(
55
+ 'service_headings'
56
+ ,array(
57
+ 'capability' => 'edit_theme_options',
58
+ 'sanitize_callback' => 'avril_sanitize_text',
59
+ 'priority' => 3,
60
+ )
61
+ );
62
+
63
+ $wp_customize->add_control(
64
+ 'service_headings',
65
+ array(
66
+ 'type' => 'hidden',
67
+ 'label' => __('Header','avril'),
68
+ 'section' => 'service_setting',
69
+ )
70
+ );
71
+
72
+ // Service Title //
73
+ $wp_customize->add_setting(
74
+ 'service_title',
75
+ array(
76
+ 'default' => __('Technology from tomorrow','avril'),
77
+ 'capability' => 'edit_theme_options',
78
+ 'sanitize_callback' => 'avril_sanitize_html',
79
+ 'transport' => $selective_refresh,
80
+ 'priority' => 4,
81
+ )
82
+ );
83
+
84
+ $wp_customize->add_control(
85
+ 'service_title',
86
+ array(
87
+ 'label' => __('Title','avril'),
88
+ 'section' => 'service_setting',
89
+ 'type' => 'text',
90
+ )
91
+ );
92
+
93
+ // Service Subtitle //
94
+ $wp_customize->add_setting(
95
+ 'service_subtitle',
96
+ array(
97
+ '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>','avril'),
98
+ 'capability' => 'edit_theme_options',
99
+ 'sanitize_callback' => 'avril_sanitize_html',
100
+ 'priority' => 5,
101
+ )
102
+ );
103
+
104
+ $wp_customize->add_control(
105
+ 'service_subtitle',
106
+ array(
107
+ 'label' => __('Subtitle','avril'),
108
+ 'section' => 'service_setting',
109
+ 'type' => 'textarea',
110
+ )
111
+ );
112
+
113
+ // Service Description //
114
+ $wp_customize->add_setting(
115
+ 'service_description',
116
+ array(
117
+ 'default' => __('Lorem Ipsum is simply dummy of printing and typesetting and industry. Lorem Ipsum been.','avril'),
118
+ 'capability' => 'edit_theme_options',
119
+ 'sanitize_callback' => 'avril_sanitize_text',
120
+ 'transport' => $selective_refresh,
121
+ 'priority' => 6,
122
+ )
123
+ );
124
+
125
+ $wp_customize->add_control(
126
+ 'service_description',
127
+ array(
128
+ 'label' => __('Description','avril'),
129
+ 'section' => 'service_setting',
130
+ 'type' => 'textarea',
131
+ )
132
+ );
133
+
134
+ // Service content Section //
135
+
136
+ $wp_customize->add_setting(
137
+ 'service_content_head'
138
+ ,array(
139
+ 'capability' => 'edit_theme_options',
140
+ 'sanitize_callback' => 'avril_sanitize_text',
141
+ 'priority' => 7,
142
+ )
143
+ );
144
+
145
+ $wp_customize->add_control(
146
+ 'service_content_head',
147
+ array(
148
+ 'type' => 'hidden',
149
+ 'label' => __('Content','avril'),
150
+ 'section' => 'service_setting',
151
+ )
152
+ );
153
+
154
+ /**
155
+ * Customizer Repeater for add service
156
+ */
157
+
158
+ $wp_customize->add_setting( 'service_contents',
159
+ array(
160
+ 'sanitize_callback' => 'avril_repeater_sanitize',
161
+ 'transport' => $selective_refresh,
162
+ 'priority' => 8,
163
+ 'default' => avril_get_service_default()
164
+ )
165
+ );
166
+
167
+ $wp_customize->add_control(
168
+ new Avril_Repeater( $wp_customize,
169
+ 'service_contents',
170
+ array(
171
+ 'label' => esc_html__('Service','avril'),
172
+ 'section' => 'service_setting',
173
+ 'add_field_label' => esc_html__( 'Add New Service', 'avril' ),
174
+ 'item_name' => esc_html__( 'Service', 'avril' ),
175
+ 'customizer_repeater_icon_control' => true,
176
+ 'customizer_repeater_title_control' => true,
177
+ 'customizer_repeater_text_control' => true,
178
+ 'customizer_repeater_link_control' => true,
179
+ )
180
+ )
181
+ );
182
+
183
+ //Pro feature
184
+ class Avril_service__section_upgrade extends WP_Customize_Control {
185
+ public function render_content() {
186
+ ?>
187
+ <span class="customizer_service_upgrade_section up-to-pro" style="display: none;"><?php _e('More Services are Available in Premium Version','avril'); ?></a>
188
+ <?php
189
+ }
190
+ }
191
+
192
+ $wp_customize->add_setting( 'avril_service_upgrade_to_pro', array(
193
+ 'capability' => 'edit_theme_options',
194
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
195
+ ));
196
+ $wp_customize->add_control(
197
+ new Avril_service__section_upgrade(
198
+ $wp_customize,
199
+ 'avril_service_upgrade_to_pro',
200
+ array(
201
+ 'section' => 'service_setting',
202
+ 'settings' => 'avril_service_upgrade_to_pro',
203
+ )
204
+ )
205
+ );
206
+ }
207
+
208
+ add_action( 'customize_register', 'avril_service_setting' );
209
+
210
+ // service selective refresh
211
+ function avril_home_service_section_partials( $wp_customize ){
212
+ // service title
213
+ $wp_customize->selective_refresh->add_partial( 'service_title', array(
214
+ 'selector' => '.service-home .heading-default .ttl',
215
+ 'settings' => 'service_title',
216
+ 'render_callback' => 'avril_service_title_render_callback',
217
+
218
+ ) );
219
+
220
+ // service subtitle
221
+ $wp_customize->selective_refresh->add_partial( 'service_subtitle', array(
222
+ 'selector' => '.service-home .heading-default h3',
223
+ 'settings' => 'service_subtitle',
224
+ 'render_callback' => 'avril_service_subtitle_render_callback',
225
+
226
+ ) );
227
+
228
+ // service description
229
+ $wp_customize->selective_refresh->add_partial( 'service_description', array(
230
+ 'selector' => '.service-home .heading-default p',
231
+ 'settings' => 'service_description',
232
+ 'render_callback' => 'avril_service_desc_render_callback',
233
+
234
+ ) );
235
+ // service content
236
+ $wp_customize->selective_refresh->add_partial( 'service_contents', array(
237
+ 'selector' => '.service-home .services-carousel'
238
+
239
+ ) );
240
+
241
+ }
242
+
243
+ add_action( 'customize_register', 'avril_home_service_section_partials' );
244
+
245
+ // service title
246
+ function avril_service_title_render_callback() {
247
+ return get_theme_mod( 'service_title' );
248
+ }
249
+
250
+ // service subtitle
251
+ function avril_service_subtitle_render_callback() {
252
+ return get_theme_mod( 'service_subtitle' );
253
+ }
254
+
255
+ // service description
256
+ function avril_service_desc_render_callback() {
257
+ return get_theme_mod( 'service_description' );
258
+ }
inc/avril/features/avril-slider.php ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function avril_slider_setting( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+ $wp_customize->add_section(
5
+ 'slider_setting', array(
6
+ 'title' => esc_html__( 'Slider Section', 'avril' ),
7
+ 'panel' => 'avril_frontpage_sections',
8
+ 'priority' => 1,
9
+ )
10
+ );
11
+
12
+ // slider Contents
13
+ $wp_customize->add_setting(
14
+ 'slider_content_head'
15
+ ,array(
16
+ 'capability' => 'edit_theme_options',
17
+ 'sanitize_callback' => 'avril_sanitize_text',
18
+ 'priority' => 4,
19
+ )
20
+ );
21
+
22
+ $wp_customize->add_control(
23
+ 'slider_content_head',
24
+ array(
25
+ 'type' => 'hidden',
26
+ 'label' => __('Contents','avril'),
27
+ 'section' => 'slider_setting',
28
+ )
29
+ );
30
+
31
+ /**
32
+ * Customizer Repeater for add slides
33
+ */
34
+
35
+ $wp_customize->add_setting( 'slider',
36
+ array(
37
+ 'sanitize_callback' => 'avril_repeater_sanitize',
38
+ 'priority' => 5,
39
+ 'default' => avril_get_slider_default()
40
+ )
41
+ );
42
+
43
+ $wp_customize->add_control(
44
+ new Avril_Repeater( $wp_customize,
45
+ 'slider',
46
+ array(
47
+ 'label' => esc_html__('Slide','avril'),
48
+ 'section' => 'slider_setting',
49
+ 'add_field_label' => esc_html__( 'Add New Slider', 'avril' ),
50
+ 'item_name' => esc_html__( 'Slider', 'avril' ),
51
+
52
+
53
+ 'customizer_repeater_icon_control' => false,
54
+ 'customizer_repeater_title_control' => true,
55
+ 'customizer_repeater_subtitle_control' => true,
56
+ 'customizer_repeater_text_control' => true,
57
+ 'customizer_repeater_text2_control'=> true,
58
+ 'customizer_repeater_link_control' => true,
59
+ 'customizer_repeater_slide_align' => true,
60
+ 'customizer_repeater_checkbox_control' => true,
61
+ 'customizer_repeater_image_control' => true,
62
+ )
63
+ )
64
+ );
65
+
66
+ //Pro feature
67
+ class Avril_slider__section_upgrade extends WP_Customize_Control {
68
+ public function render_content() {
69
+ ?>
70
+ <span class="customizer_slider_upgrade_section up-to-pro" style="display: none;"><?php _e('More Slides are Available in Premium Version','avril'); ?></span>
71
+ <?php
72
+ }
73
+ }
74
+
75
+ $wp_customize->add_setting( 'avril_slider_upgrade_to_pro', array(
76
+ 'capability' => 'edit_theme_options',
77
+ 'sanitize_callback' => 'wp_filter_nohtml_kses',
78
+ 'priority' => 5,
79
+ ));
80
+ $wp_customize->add_control(
81
+ new Avril_slider__section_upgrade(
82
+ $wp_customize,
83
+ 'avril_slider_upgrade_to_pro',
84
+ array(
85
+ 'section' => 'slider_setting',
86
+ 'settings' => 'avril_slider_upgrade_to_pro',
87
+ )
88
+ )
89
+ );
90
+
91
+ // slider opacity
92
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
93
+ $wp_customize->add_setting(
94
+ 'slider_opacity',
95
+ array(
96
+ 'default' => '0.5',
97
+ 'capability' => 'edit_theme_options',
98
+ //'sanitize_callback' => 'avril_sanitize_range_value',
99
+ 'priority' => 7,
100
+ )
101
+ );
102
+ $wp_customize->add_control(
103
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'slider_opacity',
104
+ array(
105
+ 'label' => __( 'opacity', 'avril' ),
106
+ 'section' => 'slider_setting',
107
+ 'input_attrs' => array(
108
+ 'min' => 0,
109
+ 'max' => 0.9,
110
+ 'step' => 0.1,
111
+ //'suffix' => 'px', //optional suffix
112
+ ),
113
+ ) )
114
+ );
115
+ }
116
+
117
+ }
118
+
119
+ add_action( 'customize_register', 'avril_slider_setting' );
inc/avril/features/avril-typography.php ADDED
@@ -0,0 +1,259 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function avril_typography( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+
5
+ $wp_customize->add_panel(
6
+ 'avril_typography', array(
7
+ 'priority' => 38,
8
+ 'title' => esc_html__( 'Typography', 'avril' ),
9
+ )
10
+ );
11
+
12
+ /*=========================================
13
+ Avril Typography
14
+ =========================================*/
15
+ $wp_customize->add_section(
16
+ 'avril_typography',
17
+ array(
18
+ 'priority' => 1,
19
+ 'title' => __('Body Typography','avril'),
20
+ 'panel' => 'avril_typography',
21
+ )
22
+ );
23
+
24
+ // Body Font Size //
25
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
26
+ $wp_customize->add_setting(
27
+ 'avril_body_font_size',
28
+ array(
29
+ 'capability' => 'edit_theme_options',
30
+ 'sanitize_callback' => 'avril_sanitize_range_value',
31
+ 'transport' => 'postMessage',
32
+ )
33
+ );
34
+ $wp_customize->add_control(
35
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'avril_body_font_size',
36
+ array(
37
+ 'label' => __( 'Size', 'avril' ),
38
+ 'section' => 'avril_typography',
39
+ 'priority' => 2,
40
+ 'input_attr' => array(
41
+ 'min' => 0,
42
+ 'max' => 50,
43
+ 'step' => 1,
44
+ ),
45
+ ) )
46
+ );
47
+ }
48
+
49
+ // Body Font Size //
50
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
51
+ $wp_customize->add_setting(
52
+ 'avril_body_line_height',
53
+ array(
54
+ 'capability' => 'edit_theme_options',
55
+ 'sanitize_callback' => 'avril_sanitize_range_value',
56
+ 'transport' => 'postMessage',
57
+ )
58
+ );
59
+ $wp_customize->add_control(
60
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'avril_body_line_height',
61
+ array(
62
+ 'label' => __( 'Line Height', 'avril' ),
63
+ 'section' => 'avril_typography',
64
+ 'priority' => 3,
65
+ 'input_attr' => array(
66
+ 'min' => 0,
67
+ 'max' => 3,
68
+ 'step' => 0.1,
69
+ )
70
+ ) )
71
+ );
72
+ }
73
+
74
+ // Body Font style //
75
+ $wp_customize->add_setting( 'avril_body_font_style', array(
76
+ 'capability' => 'edit_theme_options',
77
+ 'default' => 'inherit',
78
+ 'transport' => 'postMessage',
79
+ 'sanitize_callback' => 'avril_sanitize_select',
80
+ ) );
81
+
82
+ $wp_customize->add_control(
83
+ new WP_Customize_Control(
84
+ $wp_customize, 'avril_body_font_style', array(
85
+ 'label' => __( 'Font Style', 'avril' ),
86
+ 'section' => 'avril_typography',
87
+ 'type' => 'select',
88
+ 'priority' => 6,
89
+ 'choices' => array(
90
+ 'inherit' => __( 'Inherit', 'avril' ),
91
+ 'normal' => __( 'Normal', 'avril' ),
92
+ 'italic' => __( 'Italic', 'avril' ),
93
+ 'oblique' => __( 'oblique', 'avril' ),
94
+ ),
95
+ )
96
+ )
97
+ );
98
+ // Body Text Transform //
99
+ $wp_customize->add_setting( 'avril_body_text_transform', array(
100
+ 'capability' => 'edit_theme_options',
101
+ 'default' => 'inherit',
102
+ 'transport' => 'postMessage',
103
+ 'sanitize_callback' => 'avril_sanitize_select',
104
+ ) );
105
+
106
+ $wp_customize->add_control(
107
+ new WP_Customize_Control(
108
+ $wp_customize, 'avril_body_text_transform', array(
109
+ 'label' => __( 'Transform', 'avril' ),
110
+ 'section' => 'avril_typography',
111
+ 'type' => 'select',
112
+ 'priority' => 7,
113
+ 'choices' => array(
114
+ 'inherit' => __( 'Default', 'avril' ),
115
+ 'uppercase' => __( 'Uppercase', 'avril' ),
116
+ 'lowercase' => __( 'Lowercase', 'avril' ),
117
+ 'capitalize' => __( 'Capitalize', 'avril' ),
118
+ ),
119
+ )
120
+ )
121
+ );
122
+ /*=========================================
123
+ Avril Typography Headings
124
+ =========================================*/
125
+ $wp_customize->add_section(
126
+ 'avril_headings_typography',
127
+ array(
128
+ 'priority' => 2,
129
+ 'title' => __('Headings','avril'),
130
+ 'panel' => 'avril_typography',
131
+ )
132
+ );
133
+
134
+ /*=========================================
135
+ Avril Typography H1
136
+ =========================================*/
137
+ for ( $i = 1; $i <= 6; $i++ ) {
138
+ 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;}
139
+ $wp_customize->add_setting(
140
+ 'h' . $i . '_typography'
141
+ ,array(
142
+ 'capability' => 'edit_theme_options',
143
+ 'sanitize_callback' => 'avril_sanitize_text',
144
+ )
145
+ );
146
+
147
+ $wp_customize->add_control(
148
+ 'h' . $i . '_typography',
149
+ array(
150
+ 'type' => 'hidden',
151
+ 'label' => esc_html('H' . $i .'','avril'),
152
+ 'section' => 'avril_headings_typography',
153
+ )
154
+ );
155
+
156
+ // Heading Font Size //
157
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
158
+ $wp_customize->add_setting(
159
+ 'avril_h' . $i . '_font_size',
160
+ array(
161
+ 'capability' => 'edit_theme_options',
162
+ 'sanitize_callback' => 'avril_sanitize_range_value',
163
+ 'transport' => 'postMessage'
164
+ )
165
+ );
166
+ $wp_customize->add_control(
167
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'avril_h' . $i . '_font_size',
168
+ array(
169
+ 'label' => __( 'Font Size', 'avril' ),
170
+ 'section' => 'avril_headings_typography',
171
+ 'input_attr' => array(
172
+ 'min' => 1,
173
+ 'max' => 100,
174
+ 'step' => 1,
175
+ )
176
+ ) )
177
+ );
178
+ }
179
+
180
+ // Heading Font Size //
181
+ if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
182
+ $wp_customize->add_setting(
183
+ 'avril_h' . $i . '_line_height',
184
+ array(
185
+ 'capability' => 'edit_theme_options',
186
+ 'sanitize_callback' => 'avril_sanitize_range_value',
187
+ 'transport' => 'postMessage',
188
+ )
189
+ );
190
+ $wp_customize->add_control(
191
+ new Cleverfox_Customizer_Range_Slider_Control( $wp_customize, 'avril_h' . $i . '_line_height',
192
+ array(
193
+ 'label' => __( 'Line Height', 'avril' ),
194
+ 'section' => 'avril_headings_typography',
195
+ 'input_attrs' => array(
196
+ 'min' => 0,
197
+ 'max' => 5,
198
+ 'step' => 0.1,
199
+ //'suffix' => 'px', //optional suffix
200
+ ),
201
+ 'input_attr' => array(
202
+ 'min' => 0,
203
+ 'max' => 3,
204
+ 'step' => 0.1,
205
+ )
206
+ ) )
207
+ );
208
+ }
209
+
210
+ // Heading Font style //
211
+ $wp_customize->add_setting( 'avril_h' . $i . '_font_style', array(
212
+ 'capability' => 'edit_theme_options',
213
+ 'default' => 'inherit',
214
+ 'transport' => 'postMessage',
215
+ 'sanitize_callback' => 'avril_sanitize_select',
216
+ ) );
217
+
218
+ $wp_customize->add_control(
219
+ new WP_Customize_Control(
220
+ $wp_customize, 'avril_h' . $i . '_font_style', array(
221
+ 'label' => __( 'Font Style', 'avril' ),
222
+ 'section' => 'avril_headings_typography',
223
+ 'type' => 'select',
224
+ 'choices' => array(
225
+ 'inherit' => __( 'Inherit', 'avril' ),
226
+ 'normal' => __( 'Normal', 'avril' ),
227
+ 'italic' => __( 'Italic', 'avril' ),
228
+ 'oblique' => __( 'oblique', 'avril' ),
229
+ ),
230
+ )
231
+ )
232
+ );
233
+
234
+ // Heading Text Transform //
235
+ $wp_customize->add_setting( 'avril_h' . $i . '_text_transform', array(
236
+ 'capability' => 'edit_theme_options',
237
+ 'default' => 'inherit',
238
+ 'transport' => 'postMessage',
239
+ 'sanitize_callback' => 'avril_sanitize_select',
240
+ ) );
241
+
242
+ $wp_customize->add_control(
243
+ new WP_Customize_Control(
244
+ $wp_customize, 'avril_h' . $i . '_text_transform', array(
245
+ 'label' => __( 'Text Transform', 'avril' ),
246
+ 'section' => 'avril_headings_typography',
247
+ 'type' => 'select',
248
+ 'choices' => array(
249
+ 'inherit' => __( 'Default', 'avril' ),
250
+ 'uppercase' => __( 'Uppercase', 'avril' ),
251
+ 'lowercase' => __( 'Lowercase', 'avril' ),
252
+ 'capitalize' => __( 'Capitalize', 'avril' ),
253
+ ),
254
+ )
255
+ )
256
+ );
257
+ }
258
+ }
259
+ add_action( 'customize_register', 'avril_typography' );
inc/avril/images/logo-2.png ADDED
Binary file
inc/avril/images/logo.png ADDED
Binary file
inc/avril/images/slider/img01.jpg ADDED
Binary file
inc/avril/images/slider/img02.jpg ADDED
Binary file
inc/avril/images/slider/img03.jpg ADDED
Binary file
inc/avril/sections/above-header.php ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'avril_above_header' ) ) :
3
+ function avril_above_header() {
4
+ ?>
5
+ <?php
6
+ $hide_show_social_icon = get_theme_mod( 'hide_show_social_icon','1');
7
+ $social_icons = get_theme_mod( 'social_icons',avril_get_social_icon_default());
8
+ ?>
9
+ <header id="header-section" class="header header-one">
10
+ <!--===// Start: Header Above
11
+ =================================-->
12
+ <div id="above-header" class="header-above-info d-av-block d-none wow fadeInDown">
13
+ <div class="header-widget">
14
+ <div class="av-container">
15
+ <div class="av-columns-area">
16
+ <div class="av-column-5">
17
+ <div class="widget-left text-av-left text-center">
18
+ <?php if($hide_show_social_icon == '1') { ?>
19
+ <aside class="widget widget_social_widget">
20
+ <ul>
21
+ <?php
22
+ $social_icons = json_decode($social_icons);
23
+ if( $social_icons!='' )
24
+ {
25
+ foreach($social_icons as $social_item){
26
+ $social_icon = ! empty( $social_item->icon_value ) ? apply_filters( 'avril_translate_single_string', $social_item->icon_value, 'Header section' ) : '';
27
+ $social_link = ! empty( $social_item->link ) ? apply_filters( 'avril_translate_single_string', $social_item->link, 'Header section' ) : '';
28
+ ?>
29
+ <li><a href="<?php echo esc_url( $social_link ); ?>"><i class="fa <?php echo esc_attr( $social_icon ); ?>"></i></a></li>
30
+ <?php }} ?>
31
+ </ul>
32
+ </aside>
33
+ <?php } ?>
34
+ </div>
35
+ </div>
36
+ <div class="av-column-7">
37
+ <div class="widget-right text-av-right text-center">
38
+ <?php
39
+ $hide_show_cntct_details = get_theme_mod( 'hide_show_cntct_details','1'); $tlh_contct_icon = get_theme_mod( 'tlh_contct_icon','fa-clock-o');
40
+ $tlh_contact_title = get_theme_mod( 'tlh_contact_title','8:00AM - 6:00PM');
41
+ $tlh_contact_sbtitle = get_theme_mod( 'tlh_contact_sbtitle','Monday to Saturday');
42
+ ?>
43
+ <?php if($hide_show_cntct_details == '1') { ?>
44
+ <aside class="widget widget-contact wgt-1">
45
+ <div class="contact-area">
46
+ <div class="contact-icon">
47
+ <i class="fa <?php echo esc_attr($tlh_contct_icon); ?>"></i>
48
+ </div>
49
+ <a href="javascript:void(0)" class="contact-info">
50
+ <span class="text"><?php echo esc_html($tlh_contact_title); ?></span>
51
+ <span class="title"><?php echo esc_html($tlh_contact_sbtitle); ?></span>
52
+ </a>
53
+ </div>
54
+ </aside>
55
+ <?php } ?>
56
+ <?php
57
+ $hide_show_email_details = get_theme_mod( 'hide_show_email_details','1');
58
+ $tlh_email_icon = get_theme_mod( 'tlh_email_icon','fa-phone');
59
+ $tlh_email_title = get_theme_mod( 'tlh_email_title','Email Us');
60
+ $tlh_email_sbtitle = get_theme_mod( 'tlh_email_sbtitle','email@email.com');
61
+ ?>
62
+ <?php if($hide_show_email_details == '1') { ?>
63
+ <aside class="widget widget-contact wgt-2">
64
+ <div class="contact-area">
65
+ <div class="contact-icon">
66
+ <i class="fa <?php echo esc_attr($tlh_email_icon); ?>"></i>
67
+ </div>
68
+ <a href="mailto:email@email.com" class="contact-info">
69
+ <span class="text"><?php echo esc_html($tlh_email_title); ?></span>
70
+ <span class="title"><?php echo esc_html($tlh_email_sbtitle); ?></span>
71
+ </a>
72
+ </div>
73
+ </aside>
74
+ <?php } ?>
75
+ <?php
76
+ $hide_show_mbl_details = get_theme_mod( 'hide_show_mbl_details','1');
77
+ $tlh_mobile_icon = get_theme_mod( 'tlh_mobile_icon','fa-map-marker');
78
+ $tlh_mobile_title = get_theme_mod( 'tlh_mobile_title','Online 24x7');
79
+ $tlh_mobile_sbtitle = get_theme_mod( 'tlh_mobile_sbtitle','+1-0120-400-00-00');
80
+ ?>
81
+ <?php if($hide_show_mbl_details == '1') { ?>
82
+ <aside class="widget widget-contact wgt-3">
83
+ <div class="contact-area">
84
+ <div class="contact-icon">
85
+ <i class="fa <?php echo esc_attr($tlh_mobile_icon); ?>"></i>
86
+ </div>
87
+ <a href="tel:+1-0120-400-00-00" class="contact-info">
88
+ <span class="text"><?php echo esc_html($tlh_mobile_title); ?></span>
89
+ <span class="title"><?php echo esc_html($tlh_mobile_sbtitle); ?></span>
90
+ </a>
91
+ </div>
92
+ </aside>
93
+ <?php } ?>
94
+ </div>
95
+ </div>
96
+ </div>
97
+ </div>
98
+ </div>
99
+ </div>
100
+ <!--===// End: Header Top
101
+ =================================-->
102
+ <?php
103
+ } endif;
104
+ add_action('avril_above_header', 'avril_above_header');
105
+ ?>
inc/avril/sections/section-cta-2.php ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'avril_lite_cta' ) ) :
3
+ function avril_lite_cta() {
4
+ $hs_cta = get_theme_mod('hs_cta','1');
5
+ $cta_title = get_theme_mod('cta_title','We work in partnership with all the major <span class="primary-color"><em>technology</em></span> solutions');
6
+ $cta_description = get_theme_mod('cta_description','There are many variations of passages of lorem Ipsum available, but the majority');
7
+ $cta_btn_lbl1 = get_theme_mod('cta_btn_lbl1','Purchase Now');
8
+ $cta_btn_link1 = get_theme_mod('cta_btn_link1');
9
+ if($hs_cta == '1') {
10
+ ?>
11
+ <section id="cta-section" class="cta-section cta-shadow-one av-mb-default home-cta">
12
+ <div class="av-container">
13
+ <div class="av-columns-area">
14
+ <div class="av-column-12">
15
+ <div class="cta-wrapper">
16
+ <div class="cta-content">
17
+ <?php if ( ! empty( $cta_title ) ) : ?>
18
+ <h4><?php echo wp_kses_post($cta_title); ?></H4>
19
+ <?php endif; ?>
20
+ <?php if ( ! empty($cta_description) ) : ?>
21
+ <p><?php echo wp_kses_post($cta_description); ?></p>
22
+ <?php endif; ?>
23
+ </div>
24
+ <div class="cta-btn-wrap text-av-right text-center">
25
+ <?php if ( ! empty( $cta_btn_lbl1 ) ) : ?>
26
+ <a href="<?php echo esc_url($cta_btn_link1); ?>" class="av-btn av-btn-primary" data-text="Contact With Us"><?php echo esc_html($cta_btn_lbl1); ?></a>
27
+ <?php endif;?>
28
+ </div>
29
+ </div>
30
+ </div>
31
+ </div>
32
+ </div>
33
+ </section>
34
+ <?php
35
+ }} endif;
36
+ if ( function_exists( 'avril_lite_cta' ) ) {
37
+ $section_priority = apply_filters( 'avril_section_priority', 18, 'avril_lite_cta' );
38
+ add_action( 'avril_sections', 'avril_lite_cta', absint( $section_priority ) );
39
+ }
inc/avril/sections/section-features.php ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'avril_lite_features' ) ) :
3
+ function avril_lite_features() {
4
+ $feature_title = get_theme_mod('feature_title','Technology from tomorrow');
5
+ $feature_subtitle = get_theme_mod('feature_subtitle','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>');
6
+ $feature_description = get_theme_mod('feature_description','Lorem Ipsum is simply dummy of printing and typesetting and industry. Lorem Ipsum been.');
7
+ $features_contents = get_theme_mod('features_contents',avril_get_features_default());
8
+ $hs_feature = get_theme_mod('hs_feature','1');
9
+ if($hs_feature == '1') {
10
+ ?>
11
+ <section id="features-section" class="features-section bg-primary av-py-default">
12
+ <div class="av-container">
13
+ <?php if(! empty( $feature_title ) || ! empty( $feature_subtitle ) || ! empty( $feature_description )) { ?>
14
+ <div class="av-columns-area">
15
+ <div class="av-column-12">
16
+ <div class="heading-default heading-white wow fadeInUp">
17
+ <?php if ( ! empty( $feature_title ) ) : ?>
18
+ <span class='ttl'><?php echo wp_kses_post($feature_title); ?></span>
19
+ <?php endif; ?>
20
+ <?php if ( ! empty( $feature_subtitle ) ) : ?>
21
+ <h3><?php echo wp_kses_post($feature_subtitle); ?></h3>
22
+ <?php endif; ?>
23
+ <?php if ( ! empty( $feature_description ) ) : ?>
24
+ <p><?php echo wp_kses_post($feature_description); ?></p>
25
+ <?php endif; ?>
26
+ </div>
27
+ </div>
28
+ </div>
29
+ <?php } ?>
30
+ <div class="av-columns-area features-area wow fadeInUp">
31
+ <?php
32
+ if ( ! empty( $features_contents ) ) {
33
+ $features_contents = json_decode( $features_contents );
34
+ foreach ( $features_contents as $feature_item ) {
35
+ $avril_features_title = ! empty( $feature_item->title ) ? apply_filters( 'avril_translate_single_string', $feature_item->title, 'feature section' ) : '';
36
+ $text = ! empty( $feature_item->text ) ? apply_filters( 'avril_translate_single_string', $feature_item->text, 'feature section' ) : '';
37
+ $icon = ! empty( $feature_item->icon_value) ? apply_filters( 'avril_translate_single_string', $feature_item->icon_value,'feature section' ) : '';
38
+ ?>
39
+ <div class="av-column-4 av-md-column-6 mb-6">
40
+ <div class="features-item">
41
+ <div class="features-icon">
42
+ <?php if ( ! empty( $icon ) ) {?>
43
+ <i class="fa <?php echo esc_html( $icon ); ?> txt-pink"></i>
44
+ <?php } ?>
45
+ </div>
46
+ <div class="features-content">
47
+ <?php if ( ! empty( $avril_features_title ) ) : ?>
48
+ <h5 class="features-title"><a href="javascript:void(0)"><?php echo esc_html( $avril_features_title ); ?></a></h5>
49
+ <?php endif; ?>
50
+ <?php if ( ! empty( $text ) ) : ?>
51
+ <p><?php echo esc_html( $text ); ?></p>
52
+ <?php endif; ?>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ <?php }}?>
57
+ </div>
58
+ </div>
59
+ </section>
60
+
61
+ <?php
62
+ }} endif;
63
+ if ( function_exists( 'avril_lite_features' ) ) {
64
+ $section_priority = apply_filters( 'avril_section_priority', 14, 'avril_lite_service' );
65
+ add_action( 'avril_sections', 'avril_lite_features', absint( $section_priority ) );
66
+ }
inc/avril/sections/section-info.php ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'avril_lite_info' ) ) :
3
+ function avril_lite_info() {
4
+ $hs_info = get_theme_mod('hs_info','1');
5
+ $info_first_icon_setting= get_theme_mod('info_first_icon_setting','fa-clock-o');
6
+ $info_title = get_theme_mod('info_title','Opening Hours');
7
+ $info_description = get_theme_mod('info_description','Monday-Friday: 09:00-22:00');
8
+ $info_link = get_theme_mod('info_link','#');
9
+
10
+ $info_second_icon_setting= get_theme_mod('info_second_icon_setting','fa-home');
11
+ $info_title2 = get_theme_mod('info_title2','Our Location');
12
+ $info_description2 = get_theme_mod('info_description2','California Floor, USA 1208');
13
+ $info_link2 = get_theme_mod('info_link2','#');
14
+
15
+ $info_third_icon_setting= get_theme_mod('info_third_icon_setting','fa-calendar');
16
+ $info_title3 = get_theme_mod('info_title3','Booking Now');
17
+ $info_description3 = get_theme_mod('info_description3','+00-245-152-5500');
18
+ $info_link3 = get_theme_mod('info_link3','#');
19
+ if($hs_info == '1') {
20
+ ?>
21
+ <div id="info-section" class="info-section">
22
+ <div class="av-container">
23
+ <div class="av-columns-area">
24
+ <div class="av-column-12">
25
+ <ul class="info-wrapper wow fadeInUp">
26
+ <li class="info-first">
27
+ <aside class="widget widget-contact">
28
+ <div class="contact-area">
29
+ <div class="contact-icon">
30
+ <i class="fa <?php echo esc_attr( $info_first_icon_setting ); ?>"></i>
31
+ </div>
32
+ <a href="<?php echo esc_url( $info_link ); ?>" class="contact-info">
33
+ <span class="text"><?php echo esc_html($info_title); ?></span>
34
+ <span class="title"><?php echo esc_html( $info_description ); ?></span>
35
+ </a>
36
+ </div>
37
+ </aside>
38
+ </li>
39
+ <li class="info-second">
40
+ <aside class="widget widget-contact">
41
+ <div class="contact-area">
42
+ <div class="contact-icon">
43
+ <i class="fa <?php echo esc_attr( $info_second_icon_setting ); ?>"></i>
44
+ </div>
45
+ <a href="<?php echo esc_url( $info_link2 ); ?>" class="contact-info">
46
+ <span class="text"><?php echo esc_html($info_title2); ?></span>
47
+ <span class="title"><?php echo esc_html($info_description2); ?></span>
48
+ </a>
49
+ </div>
50
+ </aside>
51
+ </li>
52
+ <li class="info-third">
53
+ <aside class="widget widget-contact">
54
+ <div class="contact-area">
55
+ <div class="contact-icon">
56
+ <i class="fa <?php echo esc_attr( $info_third_icon_setting ); ?>"></i>
57
+ </div>
58
+ <a href="<?php echo esc_url( $info_link3 ); ?>" class="contact-info">
59
+ <span class="text"><?php echo esc_html($info_title3); ?></span>
60
+ <span class="title"><?php echo esc_html($info_description3); ?></span>
61
+ </a>
62
+ </div>
63
+ </aside>
64
+ </li>
65
+ </ul>
66
+ </div>
67
+ </div>
68
+ </div>
69
+ </div>
70
+ <?php
71
+ }} endif;
72
+ if ( function_exists( 'avril_lite_info' ) ) {
73
+ $section_priority = apply_filters( 'avril_section_priority', 12, 'avril_lite_info' );
74
+ add_action( 'avril_sections', 'avril_lite_info', absint( $section_priority ) );
75
+ }
inc/avril/sections/section-service.php ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'avril_lite_service' ) ) :
3
+ function avril_lite_service() {
4
+ $hs_service = get_theme_mod('hs_service','1');
5
+ $service_title = get_theme_mod('service_title','Technology from tomorrow');
6
+ $service_subtitle = get_theme_mod('service_subtitle','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>');
7
+ $service_description = get_theme_mod('service_description','Lorem Ipsum is simply dummy of printing and typesetting and industry. Lorem Ipsum been.');
8
+ $service_contents = get_theme_mod('service_contents',avril_get_service_default());
9
+ if($hs_service == '1') {
10
+ ?>
11
+ <section id="service-section" class="service-section service-section-hover av-py-default service-home">
12
+ <div class="av-container">
13
+ <div class="av-columns-area">
14
+ <div class="av-column-12">
15
+ <div class="heading-default wow fadeInUp">
16
+ <?php if ( ! empty( $service_title ) ) : ?>
17
+ <span class='ttl'><?php echo wp_kses_post($service_title); ?></span>
18
+ <?php endif; ?>
19
+ <?php if ( ! empty( $service_subtitle ) ) : ?>
20
+ <h3><?php echo wp_kses_post($service_subtitle); ?></h3>
21
+ <?php endif; ?>
22
+ <?php if ( ! empty( $service_description ) ) : ?>
23
+ <p><?php echo wp_kses_post($service_description); ?></p>
24
+ <?php endif; ?>
25
+ </div>
26
+ </div>
27
+ </div>
28
+ <div class="av-columns-area wow fadeInUp service-row">
29
+ <?php
30
+ if ( ! empty( $service_contents ) ) {
31
+ $service_contents = json_decode( $service_contents );
32
+ foreach ( $service_contents as $service_item ) {
33
+ $avril_service_title = ! empty( $service_item->title ) ? apply_filters( 'avril_translate_single_string', $service_item->title, 'service section' ) : '';
34
+ $text = ! empty( $service_item->text ) ? apply_filters( 'avril_translate_single_string', $service_item->text, 'service section' ) : '';
35
+ $icon = ! empty( $service_item->icon_value) ? apply_filters( 'avril_translate_single_string', $service_item->icon_value,'service section' ) : '';
36
+ $avril_serv_link = ! empty( $service_item->link ) ? apply_filters( 'avril_translate_single_string', $service_item->link, 'service section' ) : '';
37
+ ?>
38
+ <div class="av-column-4 av-md-column-6 mb-1 p-0">
39
+ <div class="service-item">
40
+ <div class="service-icon">
41
+ <?php if ( ! empty( $icon ) ) {?>
42
+ <i class="fa <?php echo esc_html( $icon ); ?> txt-pink"></i>
43
+ <?php } ?>
44
+ </div>
45
+ <div class="service-content">
46
+ <?php if ( ! empty( $avril_service_title ) ) : ?>
47
+ <h5 class="service-title"><a href="<?php echo esc_url( $avril_serv_link ); ?>"><?php echo esc_html( $avril_service_title ); ?></a></h5>
48
+ <?php endif; ?>
49
+ <?php if ( ! empty( $text ) ) : ?>
50
+ <p><?php echo esc_html( $text ); ?></p>
51
+ <?php endif; ?>
52
+ <a href="javascript:void(0);"><i class="fa fa-long-arrow-right"></i></a>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ <?php }}?>
57
+ </div>
58
+ </div>
59
+ </section>
60
+ <?php
61
+ }} endif;
62
+ if ( function_exists( 'avril_lite_service' ) ) {
63
+ $section_priority = apply_filters( 'avril_section_priority', 13, 'avril_lite_service' );
64
+ add_action( 'avril_sections', 'avril_lite_service', absint( $section_priority ) );
65
+ }
inc/avril/sections/section-slider.php ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--===// Start: Slider
2
+ =================================-->
3
+ <?php
4
+ if ( ! function_exists( 'avril_lite_slider' ) ) :
5
+ function avril_lite_slider() {
6
+ $slider = get_theme_mod('slider',avril_get_slider_default());
7
+ ?>
8
+ <section id="slider-section" class="slider-wrapper">
9
+ <div class="main-slider owl-carousel owl-theme">
10
+ <?php
11
+ if ( ! empty( $slider ) ) {
12
+ $slider = json_decode( $slider );
13
+ foreach ( $slider as $slide_item ) {
14
+ $avril_slide_title = ! empty( $slide_item->title ) ? apply_filters( 'avril_translate_single_string', $slide_item->title, 'slider section' ) : '';
15
+ $subtitle = ! empty( $slide_item->subtitle ) ? apply_filters( 'avril_translate_single_string', $slide_item->subtitle, 'slider section' ) : '';
16
+ $text = ! empty( $slide_item->text ) ? apply_filters( 'avril_translate_single_string', $slide_item->text, 'slider section' ) : '';
17
+ $button = ! empty( $slide_item->text2) ? apply_filters( 'avril_translate_single_string', $slide_item->text2,'slider section' ) : '';
18
+ $link2 = ! empty( $slide_item->link2 ) ? apply_filters( 'avril_translate_single_string', $slide_item->link2, 'slider section' ) : '';
19
+ $image = ! empty( $slide_item->image_url ) ? apply_filters( 'avril_translate_single_string', $slide_item->image_url, 'slider section' ) : '';
20
+ $open_new_tab = ! empty( $slide_item->open_new_tab ) ? apply_filters( 'avril_translate_single_string', $slide_item->open_new_tab, 'slider section' ) : '';
21
+ //$align = $slide_item->slide_align;
22
+ $align = ! empty( $slide_item->slide_align ) ? apply_filters( 'avril_translate_single_string', $slide_item->slide_align, 'slider section' ) : '';
23
+ ?>
24
+ <div class="item">
25
+ <?php if ( ! empty( $image ) ) : ?>
26
+ <img src="<?php echo esc_url( $image ); ?>" data-img-url="<?php echo esc_url( $image ); ?>" <?php if ( ! empty( $avril_slide_title ) ) : ?> alt="<?php echo esc_attr( $avril_slide_title ); ?>" title="<?php echo esc_attr( $avril_slide_title ); ?>" <?php endif; ?> />
27
+ <?php endif; ?>
28
+ <div class="theme-slider">
29
+ <div class="theme-table">
30
+ <div class="theme-table-cell">
31
+ <div class="av-container">
32
+ <div class="theme-content text-<?php echo esc_attr($align); ?>">
33
+ <?php if ( ! empty( $avril_slide_title ) ) : ?>
34
+ <h3 data-animation="fadeInUp" data-delay="150ms"><?php echo esc_html( $avril_slide_title ); ?></h3>
35
+ <?php endif; ?>
36
+
37
+ <?php if ( ! empty( $subtitle ) ) : ?>
38
+ <h1 data-animation="fadeInLeft" data-delay="200ms"><span class="primary-color"><?php echo esc_html( $subtitle ); ?></span></h1>
39
+ <?php endif; ?>
40
+
41
+ <?php if ( ! empty( $text ) ) : ?>
42
+ <p data-animation="fadeInLeft" data-delay="500ms"><?php echo esc_html( $text ); ?></p>
43
+ <?php endif; ?>
44
+ <?php if ( ! empty( $button ) ) : ?>
45
+ <a data-animation="fadeInUp" data-delay="800ms" href="<?php echo esc_url( $link2 ); ?>" <?php if($open_new_tab== 'yes' || $open_new_tab== '1') { echo "target='_blank'"; } ?> class="av-btn av-btn-primary"><?php echo esc_html( $button ); ?></a>
46
+ <?php endif; ?>
47
+ </div>
48
+ </div>
49
+ </div>
50
+ </div>
51
+ </div>
52
+ </div>
53
+ <?php } } ?>
54
+ </div>
55
+ </section>
56
+ <?php
57
+ }
58
+ endif;
59
+ if ( function_exists( 'avril_lite_slider' ) ) {
60
+ $section_priority = apply_filters( 'avril_section_priority', 11, 'avril_lite_slider' );
61
+ add_action( 'avril_sections', 'avril_lite_slider', absint( $section_priority ) );
62
+ }
63
+ ?>
64
+ <!-- End: Slider
65
+ =================================-->
inc/cleverfox-activator.php CHANGED
@@ -56,6 +56,13 @@ class Cleverfox_Activator {
56
  require CLEVERFOX_PLUGIN_DIR . 'inc/ameya/default-pages/home-page.php';
57
  require CLEVERFOX_PLUGIN_DIR . 'inc/ameya/default-widgets/default-widget.php';
58
  }
 
 
 
 
 
 
 
59
  update_option( 'item_details_page', 'Done' );
60
  }
61
  }
56
  require CLEVERFOX_PLUGIN_DIR . 'inc/ameya/default-pages/home-page.php';
57
  require CLEVERFOX_PLUGIN_DIR . 'inc/ameya/default-widgets/default-widget.php';
58
  }
59
+
60
+ if ( 'Avril' == $theme->name){
61
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/default-pages/upload-media.php';
62
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/default-pages/home-page.php';
63
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/default-widgets/default-widget.php';
64
+ }
65
+
66
  update_option( 'item_details_page', 'Done' );
67
  }
68
  }
readme.txt CHANGED
@@ -41,6 +41,9 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
41
 
42
  == Changelog ==
43
 
 
 
 
44
  = 1.6 =
45
  * Fixed Some Bugs
46
 
41
 
42
  == Changelog ==
43
 
44
+ = 1.7 =
45
+ * Avril Theme Functionality Added
46
+
47
  = 1.6 =
48
  * Fixed Some Bugs
49