Clever Fox - Version 12.8

Version Description

  • Avitech Theme Files Added
Download this release

Release Info

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

Code changes from version 12.7 to 12.8

clever-fox.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Clever Fox
4
  Plugin URI:
5
  Description: Clever Fox plugin to enhance the functionality of free themes made by Nayra Themes. More than 50000+ trusted websites with Nayra Themes. It provides intuitive features to your website. 20+ Themes compatible with Clever Fox. See below free themes listed here. Avril is one of Popular themes in our collections.
6
- Version: 12.7
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
@@ -136,6 +136,10 @@ function cleverfox_activate() {
136
  require_once('inc/flavita/flavita.php');
137
  }
138
 
 
 
 
 
139
  }
140
  add_action( 'init', 'cleverfox_activate' );
141
 
3
  Plugin Name: Clever Fox
4
  Plugin URI:
5
  Description: Clever Fox plugin to enhance the functionality of free themes made by Nayra Themes. More than 50000+ trusted websites with Nayra Themes. It provides intuitive features to your website. 20+ Themes compatible with Clever Fox. See below free themes listed here. Avril is one of Popular themes in our collections.
6
+ Version: 12.8
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
136
  require_once('inc/flavita/flavita.php');
137
  }
138
 
139
+ if( 'Avitech' == $theme->name){
140
+ require_once('inc/avitech/avitech.php');
141
+ }
142
+
143
  }
144
  add_action( 'init', 'cleverfox_activate' );
145
 
inc/aera/features/aera-slider.php CHANGED
@@ -75,6 +75,10 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
75
  }elseif ( 'Avail' == $theme->name){
76
  ?>
77
  <a class="customizer_slider_upgrade_section up-to-pro" href="https://www.nayrathemes.com/avail-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','avail'); ?></a>
 
 
 
 
78
  <?php
79
  }
80
  }
@@ -97,11 +101,18 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
97
  );
98
 
99
  // slider opacity
 
 
 
 
 
 
 
100
  if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
101
  $wp_customize->add_setting(
102
  'slider_opacity',
103
  array(
104
- 'default' => '0.5',
105
  'capability' => 'edit_theme_options',
106
  //'sanitize_callback' => 'avril_sanitize_range_value',
107
  'priority' => 7,
75
  }elseif ( 'Avail' == $theme->name){
76
  ?>
77
  <a class="customizer_slider_upgrade_section up-to-pro" href="https://www.nayrathemes.com/avail-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','avail'); ?></a>
78
+ <?php
79
+ }elseif ( 'Avitech' == $theme->name){
80
+ ?>
81
+ <a class="customizer_slider_upgrade_section up-to-pro" href="https://www.nayrathemes.com/avril-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','avail'); ?></a>
82
  <?php
83
  }
84
  }
101
  );
102
 
103
  // slider opacity
104
+ $theme = wp_get_theme(); // gets the current theme
105
+ if ( 'Avitech' == $theme->name){
106
+ $default_opacity=0.8;
107
+ }else{
108
+ $default_opacity=0.5;
109
+ }
110
+
111
  if ( class_exists( 'Cleverfox_Customizer_Range_Slider_Control' ) ) {
112
  $wp_customize->add_setting(
113
  'slider_opacity',
114
  array(
115
+ 'default' => $default_opacity,
116
  'capability' => 'edit_theme_options',
117
  //'sanitize_callback' => 'avril_sanitize_range_value',
118
  'priority' => 7,
inc/avitech/avitech.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-features.php';
11
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-info.php';
12
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-service.php';
13
+ require CLEVERFOX_PLUGIN_DIR . 'inc/aera/features/aera-slider.php';
14
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avitech/features/avitech-slider.php';
15
+ require CLEVERFOX_PLUGIN_DIR . 'inc/axtria/features/avril-team.php';
16
+ require CLEVERFOX_PLUGIN_DIR . 'inc/axtria/features/avril-funfact.php';
17
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-typography.php';
18
+
19
+ if ( ! function_exists( 'cleverfox_avril_frontpage_sections' ) ) :
20
+ function cleverfox_avril_frontpage_sections() {
21
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avitech/sections/section-slider.php';
22
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-info.php';
23
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-service.php';
24
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-features.php';
25
+ require CLEVERFOX_PLUGIN_DIR . 'inc/axtria/sections/section-team.php';
26
+ require CLEVERFOX_PLUGIN_DIR . 'inc/axtria/sections/section-funfact.php';
27
+ }
28
+ add_action( 'avril_sections', 'cleverfox_avril_frontpage_sections' );
29
+ endif;
30
+
31
+ function cleverfox_avril_enqueue_scripts() {
32
+ wp_enqueue_script( 'counterup', CLEVERFOX_PLUGIN_URL .'/inc/assets/js/jquery.counterup.min.js', array('jquery'), false, true);
33
+ wp_enqueue_style('animate',CLEVERFOX_PLUGIN_URL .'/inc/assets/css/animate.css');
34
+ wp_enqueue_style('owl-carousel-min',CLEVERFOX_PLUGIN_URL .'/inc/assets/css/owl.carousel.min.css');
35
+ wp_enqueue_script( 'owl-carousel', CLEVERFOX_PLUGIN_URL . 'inc/assets/js/owl.carousel.min.js', array('jquery'), false, true);
36
+ }
37
+ add_action( 'wp_enqueue_scripts', 'cleverfox_avril_enqueue_scripts' );
inc/avitech/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/avitech/default-pages/upload-media.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $file = CLEVERFOX_PLUGIN_URL .'inc/avitech/images/logo.png';
3
+ $ImagePath = CLEVERFOX_PLUGIN_URL .'inc/avitech/images';
4
+
5
+ $images = array(
6
+ $ImagePath. '/logo.png',
7
+ );
8
+ $parent_post_id = null;
9
+ foreach($images as $name) {
10
+ $filename = basename($name);
11
+ $upload_file = wp_upload_bits($filename, null, file_get_contents($name));
12
+ if (!$upload_file['error']) {
13
+ $wp_filetype = wp_check_filetype($filename, null );
14
+ $attachment = array(
15
+ 'post_mime_type' => $wp_filetype['type'],
16
+ 'post_parent' => $parent_post_id,
17
+ 'post_title' => preg_replace('/\.[^.]+$/', '', $filename),
18
+ 'post_excerpt' => 'avril caption',
19
+ 'post_status' => 'inherit'
20
+ );
21
+ $ImageId[] = $attachment_id = wp_insert_attachment( $attachment, $upload_file['file'], $parent_post_id );
22
+
23
+ if (!is_wp_error($attachment_id)) {
24
+ require_once(ABSPATH . "wp-admin" . '/includes/image.php');
25
+ $attachment_data = wp_generate_attachment_metadata( $attachment_id, $upload_file['file'] );
26
+ wp_update_attachment_metadata( $attachment_id, $attachment_data );
27
+ }
28
+ }
29
+
30
+ }
31
+
32
+ update_option( 'avril_media_id', $ImageId );
inc/avitech/default-widgets/default-widget.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $activate = array(
3
+ 'avril-sidebar-primary' => array(
4
+ 'search-1',
5
+ 'recent-posts-1',
6
+ 'archives-1',
7
+ ),
8
+ 'avril-footer-widget-area' => array(
9
+ 'text-1',
10
+ 'categories-1',
11
+ 'archives-1',
12
+ 'search-1',
13
+ )
14
+ );
15
+ /* the default titles will appear */
16
+ update_option('widget_text', array(
17
+ 1 => array('title' => '',
18
+ 'text'=>'<div class="footer-logo"><img src="'.CLEVERFOX_PLUGIN_URL.'inc/avitech/images/logo.png" alt=""></div>
19
+ <p>There are many variations of dummy passages of Lorem Ipsum a available, but the majority have suffered that is alteration in some that form injected humour or randomised.</p>
20
+ '),
21
+ 2 => array('title' => 'Recent Posts'),
22
+ 3 => array('title' => 'Categories'),
23
+ ));
24
+ update_option('widget_categories', array(
25
+ 1 => array('title' => 'Categories'),
26
+ 2 => array('title' => 'Categories')));
27
+
28
+ update_option('widget_archives', array(
29
+ 1 => array('title' => 'Archives'),
30
+ 2 => array('title' => 'Archives')));
31
+
32
+ update_option('widget_search', array(
33
+ 1 => array('title' => 'Search'),
34
+ 2 => array('title' => 'Search')));
35
+
36
+ update_option('sidebars_widgets', $activate);
37
+ $MediaId = get_option('avril_media_id');
38
+ set_theme_mod( 'custom_logo', $MediaId[0] );
inc/avitech/features/avitech-slider.php ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function avitech_slider_setting( $wp_customize ) {
3
+ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
4
+
5
+ // Head
6
+ $wp_customize->add_setting(
7
+ 'hdr_info_clr_head'
8
+ ,array(
9
+ 'capability' => 'edit_theme_options',
10
+ 'sanitize_callback' => 'avril_sanitize_text',
11
+ 'priority' => 8,
12
+ )
13
+ );
14
+
15
+ $wp_customize->add_control(
16
+ 'hdr_info_clr_head',
17
+ array(
18
+ 'type' => 'hidden',
19
+ 'label' => __('Colors','clever-fox'),
20
+ 'section' => 'above_header',
21
+ )
22
+ );
23
+
24
+ // Info Color
25
+ $wp_customize->add_setting(
26
+ 'hdr_info_color',
27
+ array(
28
+ 'capability' => 'edit_theme_options',
29
+ 'sanitize_callback' => 'sanitize_text_field',
30
+ 'priority' => 8,
31
+ ));
32
+
33
+ $wp_customize->add_control(
34
+ new WP_Customize_Color_Control
35
+ ($wp_customize,
36
+ 'hdr_info_color',
37
+ array(
38
+ 'label' => __( 'Info Color', 'clever-fox' ),
39
+ 'section' => 'above_header'
40
+ )
41
+ )
42
+ );
43
+
44
+ // Head
45
+ $wp_customize->add_setting(
46
+ 'slider_clr_head'
47
+ ,array(
48
+ 'capability' => 'edit_theme_options',
49
+ 'sanitize_callback' => 'avril_sanitize_text',
50
+ 'priority' => 8,
51
+ )
52
+ );
53
+
54
+ $wp_customize->add_control(
55
+ 'slider_clr_head',
56
+ array(
57
+ 'type' => 'hidden',
58
+ 'label' => __('Colors','clever-fox'),
59
+ 'section' => 'slider_setting',
60
+ )
61
+ );
62
+
63
+ // Title Color
64
+ $wp_customize->add_setting(
65
+ 'slide_ttl_color',
66
+ array(
67
+ 'capability' => 'edit_theme_options',
68
+ 'sanitize_callback' => 'sanitize_text_field',
69
+ 'priority' => 8,
70
+ ));
71
+
72
+ $wp_customize->add_control(
73
+ new WP_Customize_Color_Control
74
+ ($wp_customize,
75
+ 'slide_ttl_color',
76
+ array(
77
+ 'label' => __( 'Title Color', 'clever-fox' ),
78
+ 'section' => 'slider_setting'
79
+ )
80
+ )
81
+ );
82
+
83
+ // Subtitle Color
84
+ $wp_customize->add_setting(
85
+ 'slide_subttl_color',
86
+ array(
87
+ 'capability' => 'edit_theme_options',
88
+ 'sanitize_callback' => 'sanitize_text_field',
89
+ 'priority' => 8,
90
+ ));
91
+
92
+ $wp_customize->add_control(
93
+ new WP_Customize_Color_Control
94
+ ($wp_customize,
95
+ 'slide_subttl_color',
96
+ array(
97
+ 'label' => __( 'Subtitle Color', 'clever-fox' ),
98
+ 'section' => 'slider_setting'
99
+ )
100
+ )
101
+ );
102
+
103
+ // Description Color
104
+ $wp_customize->add_setting(
105
+ 'slide_desc_color',
106
+ array(
107
+ 'capability' => 'edit_theme_options',
108
+ 'sanitize_callback' => 'sanitize_text_field',
109
+ 'priority' => 8,
110
+ ));
111
+
112
+ $wp_customize->add_control(
113
+ new WP_Customize_Color_Control
114
+ ($wp_customize,
115
+ 'slide_desc_color',
116
+ array(
117
+ 'label' => __( 'Description Color', 'clever-fox' ),
118
+ 'section' => 'slider_setting'
119
+ )
120
+ )
121
+ );
122
+ }
123
+ add_action( 'customize_register', 'avitech_slider_setting' );
inc/avitech/images/logo.png ADDED
Binary file
inc/avitech/sections/section-slider.php ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ $link = ! empty( $slide_item->link ) ? apply_filters( 'avril_translate_single_string', $slide_item->link, 'slider section' ) : '';
19
+ $image = ! empty( $slide_item->image_url ) ? apply_filters( 'avril_translate_single_string', $slide_item->image_url, 'slider section' ) : '';
20
+ $image2 = ! empty( $slide_item->image_url2 ) ? apply_filters( 'avril_translate_single_string', $slide_item->image_url2, 'slider section' ) : '';
21
+ $open_new_tab = ! empty( $slide_item->open_new_tab ) ? apply_filters( 'avril_translate_single_string', $slide_item->open_new_tab, 'slider section' ) : '';
22
+ //$align = $slide_item->slide_align;
23
+ $align = ! empty( $slide_item->slide_align ) ? apply_filters( 'avril_translate_single_string', $slide_item->slide_align, 'slider section' ) : '';
24
+ ?>
25
+ <?php if ( ! empty( $image ) ) : ?>
26
+ <div class="item" style="background-image:url('<?php echo esc_url( $image ); ?>')">
27
+ <?php else : ?>
28
+ <div class="item">
29
+ <?php endif; ?>
30
+ <div class="theme-slider">
31
+ <div class="theme-table">
32
+ <div class="theme-table-cell">
33
+ <div class="av-container">
34
+ <div class="av-columns-area theme-content text-<?php echo esc_attr($align); ?>">
35
+ <?php if ( ! empty( $image2 ) ) { ?>
36
+ <div class="av-column-7 my-auto">
37
+ <?php } else { ?>
38
+ <div class="av-column-12">
39
+ <?php } ?>
40
+ <?php if ( ! empty( $avril_slide_title ) ) : ?>
41
+ <h3 data-animation="fadeInUp" data-delay="150ms"><?php echo esc_html( $avril_slide_title ); ?></h3>
42
+ <?php endif; ?>
43
+
44
+ <?php if ( ! empty( $subtitle ) ) : ?>
45
+ <h1 data-animation="fadeInUp" data-delay="200ms"><span><?php echo esc_html( $subtitle ); ?></span></h1>
46
+ <?php endif; ?>
47
+
48
+ <?php if ( ! empty( $text ) ) : ?>
49
+ <p data-animation="fadeInUp" data-delay="500ms"><?php echo esc_html( $text ); ?></p>
50
+ <?php endif; ?>
51
+ <?php if ( ! empty( $button ) ) : ?>
52
+ <a data-animation="fadeInUp" data-delay="800ms" href="<?php echo esc_url( $link ); ?>" <?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>
53
+ <?php endif; ?>
54
+ </div>
55
+ <?php if ( ! empty( $image2 ) ) : ?>
56
+ <div class="av-column-5 mb-av-0 mx-auto my-auto">
57
+ <div class="aera-img">
58
+ <img src="<?php echo esc_url( $image2 ); ?>" data-img-url="<?php echo esc_url( $image2 ); ?>" <?php if ( ! empty( $avril_slide_title ) ) : ?> alt="<?php echo esc_attr( $avril_slide_title ); ?>" title="<?php echo esc_attr( $avril_slide_title ); ?>" <?php endif; ?> />
59
+ </div>
60
+ </div>
61
+ <?php endif; ?>
62
+ </div>
63
+ </div>
64
+ </div>
65
+ </div>
66
+ </div>
67
+ </div>
68
+ <?php } } ?>
69
+ </div>
70
+ </section>
71
+ <?php
72
+ }
73
+ endif;
74
+ if ( function_exists( 'avril_lite_slider' ) ) {
75
+ $section_priority = apply_filters( 'avril_section_priority', 11, 'avril_lite_slider' );
76
+ add_action( 'avril_sections', 'avril_lite_slider', absint( $section_priority ) );
77
+ }
78
+ ?>
79
+ <!-- End: Slider
80
+ =================================-->
inc/avril/dynamic-style.php CHANGED
@@ -77,6 +77,45 @@ if( ! function_exists( 'cleverfox_avril_dynamic_styles' ) ):
77
  }}\n";
78
  }
79
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
 
81
  wp_add_inline_style( 'avril-style', $output_css );
82
  }
77
  }}\n";
78
  }
79
  }
80
+
81
+ if ( 'Avitech' == $theme->name){
82
+ $hdr_info_color = get_theme_mod( 'hdr_info_color');
83
+ $slide_ttl_color = get_theme_mod( 'slide_ttl_color');
84
+ $slide_subttl_color = get_theme_mod( 'slide_subttl_color');
85
+ $slide_desc_color = get_theme_mod( 'slide_desc_color');
86
+
87
+ if(!empty($hdr_info_color)):
88
+ $output_css .=" .avitech-theme .header-widget .widget:not(.widget_social_widget) a {
89
+ color: " .esc_attr($hdr_info_color). " !important;
90
+ }\n";
91
+ endif;
92
+
93
+ if(!empty($slide_ttl_color)):
94
+ $output_css .=" .avitech-theme .main-slider .theme-content h3{
95
+ color: " .esc_attr($slide_ttl_color). ";
96
+ }\n";
97
+ endif;
98
+
99
+ if(!empty($slide_subttl_color)):
100
+ $output_css .=" .avitech-theme .theme-content h1 span{
101
+ color: " .esc_attr($slide_subttl_color). ";
102
+ }\n";
103
+ endif;
104
+
105
+ if(!empty($slide_desc_color)):
106
+ $output_css .=" .avitech-theme .main-slider .theme-content p{
107
+ color: " .esc_attr($slide_desc_color). ";
108
+ }\n";
109
+ endif;
110
+
111
+ $slider_opacity = get_theme_mod('slider_opacity','0.8');
112
+ if($slider_opacity !== '') {
113
+ $output_css .=".theme-slider:after {
114
+ opacity: " .esc_attr($slider_opacity). ";
115
+ background: #ffffff;
116
+ }\n";
117
+ }
118
+ }
119
 
120
  wp_add_inline_style( 'avril-style', $output_css );
121
  }
inc/avril/extras.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  /*
3
  *
4
  * Social Icon
@@ -42,53 +43,104 @@ function avril_get_social_icon_default() {
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', 'clever-fox' ),
52
- 'subtitle' => esc_html__( 'Services & Solutions', 'clever-fox' ),
53
- 'text' => esc_html__( 'There are many variations of passages of Lorem Ipsum available but the majority have suffered injected humour dummy now.', 'clever-fox' ),
54
- 'text2' => esc_html__( 'Get Started', 'clever-fox' ),
55
- 'link' => esc_html__( '#', 'clever-fox' ),
56
- 'button_second' => esc_html__( 'Read More', 'clever-fox' ),
57
- 'link2' => esc_html__( '#', 'clever-fox' ),
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', 'clever-fox' ),
64
- 'subtitle' => esc_html__( 'Better Coaching Gets', 'clever-fox' ),
65
- 'text' => esc_html__( 'There are many variations of passages of Lorem Ipsum available but the majority have suffered injected humour dummy now.', 'clever-fox' ),
66
- 'text2' => esc_html__( 'Get Started', 'clever-fox' ),
67
- 'link' => esc_html__( '#', 'clever-fox' ),
68
- 'button_second' => esc_html__( 'Read More', 'clever-fox' ),
69
- 'link2' => esc_html__( '#', 'clever-fox' ),
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', 'clever-fox' ),
76
- 'subtitle' => esc_html__( 'Marketing & Strategy', 'clever-fox' ),
77
- 'text' => esc_html__( 'There are many variations of passages of Lorem Ipsum available but the majority have suffered injected humour dummy now.', 'clever-fox' ),
78
- 'text2' => esc_html__( 'Get Started', 'clever-fox' ),
79
- 'link' => esc_html__( '#', 'clever-fox' ),
80
- 'button_second' => esc_html__( 'Read More', 'clever-fox' ),
81
- 'link2' => esc_html__( '#', 'clever-fox' ),
82
- "slide_align" => "right",
83
- 'id' => 'customizer_repeater_slider_003',
84
-
85
- ),
 
 
 
 
 
 
86
  )
87
- )
88
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  }
90
 
91
-
92
  /*
93
  *
94
  * Service Default
1
  <?php
2
+ $theme = wp_get_theme(); // gets the current theme
3
  /*
4
  *
5
  * Social Icon
43
  *
44
  * Slider Default
45
  */
46
+
47
+ if( 'Avitech' == $theme->name){
48
+ function avril_get_slider_default() {
49
+ return apply_filters(
50
+ 'avril_get_slider_default', json_encode(
51
+ array(
52
+ array(
53
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/avril/images/slider/img02.jpg',
54
+ "image_url2" => CLEVERFOX_PLUGIN_URL .'inc/azwa/images/sliders/slider01.png',
55
+ 'title' => esc_html__( 'Global Project Managment', 'clever-fox' ),
56
+ 'subtitle' => esc_html__( 'Services & Solutions', 'clever-fox' ),
57
+ 'text' => esc_html__( 'There are many variations of passages of Lorem Ipsum available but the majority have suffered injected humour dummy now.', 'clever-fox' ),
58
+ 'text2' => esc_html__( 'Get Started', 'clever-fox' ),
59
+ 'link' => esc_html__( '#', 'clever-fox' ),
60
+ 'button_second' => esc_html__( 'Read More', 'clever-fox' ),
61
+ 'link2' => esc_html__( '#', 'clever-fox' ),
62
+ "slide_align" => "left",
63
+ 'id' => 'customizer_repeater_slider_001',
64
+ ),
65
+ array(
66
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/avril/images/slider/img02.jpg',
67
+ "image_url2" => CLEVERFOX_PLUGIN_URL .'inc/azwa/images/sliders/slider03.png',
68
+ 'title' => esc_html__( 'Develop Stronger Minds', 'clever-fox' ),
69
+ 'subtitle' => esc_html__( 'Better Coaching Gets', 'clever-fox' ),
70
+ 'text' => esc_html__( 'There are many variations of passages of Lorem Ipsum available but the majority have suffered injected humour dummy now.', 'clever-fox' ),
71
+ 'text2' => esc_html__( 'Get Started', 'clever-fox' ),
72
+ 'link' => esc_html__( '#', 'clever-fox' ),
73
+ 'button_second' => esc_html__( 'Read More', 'clever-fox' ),
74
+ 'link2' => esc_html__( '#', 'clever-fox' ),
75
+ "slide_align" => "right",
76
+ 'id' => 'customizer_repeater_slider_002',
77
+ ),
78
+ array(
79
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/avril/images/slider/img02.jpg',
80
+ "image_url2" => CLEVERFOX_PLUGIN_URL .'inc/azwa/images/sliders/slider01.png',
81
+ 'title' => esc_html__( 'Industry Analysis', 'clever-fox' ),
82
+ 'subtitle' => esc_html__( 'Marketing & Strategy', 'clever-fox' ),
83
+ 'text' => esc_html__( 'There are many variations of passages of Lorem Ipsum available but the majority have suffered injected humour dummy now.', 'clever-fox' ),
84
+ 'text2' => esc_html__( 'Get Started', 'clever-fox' ),
85
+ 'link' => esc_html__( '#', 'clever-fox' ),
86
+ 'button_second' => esc_html__( 'Read More', 'clever-fox' ),
87
+ 'link2' => esc_html__( '#', 'clever-fox' ),
88
+ "slide_align" => "left",
89
+ 'id' => 'customizer_repeater_slider_003',
90
+
91
+ ),
92
+ )
93
  )
94
+ );
95
+ }
96
+ }else{
97
+ function avril_get_slider_default() {
98
+ return apply_filters(
99
+ 'avril_get_slider_default', json_encode(
100
+ array(
101
+ array(
102
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/avril/images/slider/img01.jpg',
103
+ 'title' => esc_html__( 'Global Project Managment', 'clever-fox' ),
104
+ 'subtitle' => esc_html__( 'Services & Solutions', 'clever-fox' ),
105
+ 'text' => esc_html__( 'There are many variations of passages of Lorem Ipsum available but the majority have suffered injected humour dummy now.', 'clever-fox' ),
106
+ 'text2' => esc_html__( 'Get Started', 'clever-fox' ),
107
+ 'link' => esc_html__( '#', 'clever-fox' ),
108
+ 'button_second' => esc_html__( 'Read More', 'clever-fox' ),
109
+ 'link2' => esc_html__( '#', 'clever-fox' ),
110
+ "slide_align" => "left",
111
+ 'id' => 'customizer_repeater_slider_001',
112
+ ),
113
+ array(
114
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/avril/images/slider/img02.jpg',
115
+ 'title' => esc_html__( 'Develop Stronger Minds', 'clever-fox' ),
116
+ 'subtitle' => esc_html__( 'Better Coaching Gets', 'clever-fox' ),
117
+ 'text' => esc_html__( 'There are many variations of passages of Lorem Ipsum available but the majority have suffered injected humour dummy now.', 'clever-fox' ),
118
+ 'text2' => esc_html__( 'Get Started', 'clever-fox' ),
119
+ 'link' => esc_html__( '#', 'clever-fox' ),
120
+ 'button_second' => esc_html__( 'Read More', 'clever-fox' ),
121
+ 'link2' => esc_html__( '#', 'clever-fox' ),
122
+ "slide_align" => "center",
123
+ 'id' => 'customizer_repeater_slider_002',
124
+ ),
125
+ array(
126
+ 'image_url' => CLEVERFOX_PLUGIN_URL .'inc/avril/images/slider/img03.jpg',
127
+ 'title' => esc_html__( 'Industry Analysis', 'clever-fox' ),
128
+ 'subtitle' => esc_html__( 'Marketing & Strategy', 'clever-fox' ),
129
+ 'text' => esc_html__( 'There are many variations of passages of Lorem Ipsum available but the majority have suffered injected humour dummy now.', 'clever-fox' ),
130
+ 'text2' => esc_html__( 'Get Started', 'clever-fox' ),
131
+ 'link' => esc_html__( '#', 'clever-fox' ),
132
+ 'button_second' => esc_html__( 'Read More', 'clever-fox' ),
133
+ 'link2' => esc_html__( '#', 'clever-fox' ),
134
+ "slide_align" => "right",
135
+ 'id' => 'customizer_repeater_slider_003',
136
+
137
+ ),
138
+ )
139
+ )
140
+ );
141
+ }
142
  }
143
 
 
144
  /*
145
  *
146
  * Service Default
inc/cleverfox-activator.php CHANGED
@@ -112,6 +112,12 @@ class Cleverfox_Activator {
112
  require CLEVERFOX_PLUGIN_DIR . 'inc/aviser/default-widgets/default-widget.php';
113
  }
114
 
 
 
 
 
 
 
115
  if ( 'Fiona Blog' == $theme->name || 'Fiona Food' == $theme->name || 'Fiona News' == $theme->name){
116
  require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-pages/upload-media.php';
117
  require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-pages/home-page.php';
112
  require CLEVERFOX_PLUGIN_DIR . 'inc/aviser/default-widgets/default-widget.php';
113
  }
114
 
115
+ if ( 'Avitech' == $theme->name){
116
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avitech/default-pages/upload-media.php';
117
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avitech/default-pages/home-page.php';
118
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avitech/default-widgets/default-widget.php';
119
+ }
120
+
121
  if ( 'Fiona Blog' == $theme->name || 'Fiona Food' == $theme->name || 'Fiona News' == $theme->name){
122
  require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-pages/upload-media.php';
123
  require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-pages/home-page.php';
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: homepage, companion, demo, sections, customizer, widget, settings
4
  Requires at least: 4.0
5
  Tested up to: 6.0
6
  Requires PHP: 5.6
7
- Stable tag: 12.7
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
@@ -131,6 +131,9 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
131
 
132
  == Changelog ==
133
 
 
 
 
134
  = 12.7 =
135
  * Fixed Escaping Issue in Techine Theme
136
 
4
  Requires at least: 4.0
5
  Tested up to: 6.0
6
  Requires PHP: 5.6
7
+ Stable tag: 12.8
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
131
 
132
  == Changelog ==
133
 
134
+ = 12.8 =
135
+ * Avitech Theme Files Added
136
+
137
  = 12.7 =
138
  * Fixed Escaping Issue in Techine Theme
139