Clever Fox - Version 9.1

Version Description

  • Avtari Theme Functionality Added
Download this release

Release Info

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

Code changes from version 9.0 to 9.1

clever-fox.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Clever Fox
4
  Plugin URI:
5
  Description: Clever Fox plugin to enhance the functionality of free themes made by Nayra Themes. More than 50000+ trusted websites with Nayra Themes. It provides intuitive features to your website. 20+ Themes compatible with Clever Fox. See below free themes listed here. Avril is one of Popular themes in our collections.
6
- Version: 9.0
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
@@ -72,6 +72,10 @@ function cleverfox_activate() {
72
  require_once('inc/avail/avail.php');
73
  }
74
 
 
 
 
 
75
  if( 'Fiona Blog' == $theme->name){
76
  require_once('inc/fiona-blog/fiona-blog.php');
77
  }
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: 9.1
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
72
  require_once('inc/avail/avail.php');
73
  }
74
 
75
+ if( 'Avtari' == $theme->name){
76
+ require_once('inc/avtari/avtari.php');
77
+ }
78
+
79
  if( 'Fiona Blog' == $theme->name){
80
  require_once('inc/fiona-blog/fiona-blog.php');
81
  }
inc/avril/features/avril-features.php CHANGED
@@ -200,6 +200,11 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
200
  <a class="customizer_feature_upgrade_section up-to-pro" href="https://www.nayrathemes.com/axtia-pro/" target="_blank"
201
  style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
202
 
 
 
 
 
 
203
  <?php
204
  }else{
205
  ?>
200
  <a class="customizer_feature_upgrade_section up-to-pro" href="https://www.nayrathemes.com/axtia-pro/" target="_blank"
201
  style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
202
 
203
+ <?php }elseif ( 'Avtari' == $theme->name){ ?>
204
+
205
+ <a class="customizer_feature_upgrade_section up-to-pro" href="https://www.nayrathemes.com/avril-pro/" target="_blank"
206
+ style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
207
+
208
  <?php
209
  }else{
210
  ?>
inc/avril/features/avril-header.php CHANGED
@@ -137,6 +137,10 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
137
 
138
  <a class="customizer_social_upgrade_section up-to-pro" href="https://www.nayrathemes.com/axtia-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
139
 
 
 
 
 
140
  <?php
141
  }else{
142
  ?>
137
 
138
  <a class="customizer_social_upgrade_section up-to-pro" href="https://www.nayrathemes.com/axtia-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
139
 
140
+ <?php }elseif ( 'Avtari' == $theme->name){ ?>
141
+
142
+ <a class="customizer_social_upgrade_section up-to-pro" href="https://www.nayrathemes.com/avril-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
143
+
144
  <?php
145
  }else{
146
  ?>
inc/avril/features/avril-service.php CHANGED
@@ -195,7 +195,11 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
195
 
196
  <?php }elseif ( 'Axtia' == $theme->name){ ?>
197
 
198
- <a class="customizer_service_upgrade_section up-to-pro" href="https://www.nayrathemes.com/axtia-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
 
 
 
 
199
 
200
  <?php
201
  }else{
195
 
196
  <?php }elseif ( 'Axtia' == $theme->name){ ?>
197
 
198
+ <a class="customizer_service_upgrade_section up-to-pro" href="https://www.nayrathemes.com/axtia-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
199
+
200
+ <?php }elseif ( 'Avtari' == $theme->name){ ?>
201
+
202
+ <a class="customizer_service_upgrade_section up-to-pro" href="https://www.nayrathemes.com/avril-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
203
 
204
  <?php
205
  }else{
inc/avril/features/avril-slider.php CHANGED
@@ -71,9 +71,11 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
71
  ?>
72
  <a class="customizer_slider_upgrade_section up-to-pro" href="https://www.nayrathemes.com/axtia-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
73
 
74
- <?php
75
- }else{
76
- ?>
 
 
77
 
78
  <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','clever-fox'); ?></a>
79
 
71
  ?>
72
  <a class="customizer_slider_upgrade_section up-to-pro" href="https://www.nayrathemes.com/axtia-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
73
 
74
+ <?php }elseif( 'Avtari' == $theme->name){ ?>
75
+
76
+ <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','clever-fox'); ?></a>
77
+
78
+ <?php }else{ ?>
79
 
80
  <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','clever-fox'); ?></a>
81
 
inc/avtari/avtari.php ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Avtari
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/avtari/sections/above-header.php';
9
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-header.php';
10
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avail/features/avril-cta.php';
11
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-features.php';
12
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-service.php';
13
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-slider.php';
14
+ require CLEVERFOX_PLUGIN_DIR . 'inc/axtria/features/avril-team.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-service.php';
21
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-features.php';
22
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avail/sections/section-cta-2.php';
23
+ require CLEVERFOX_PLUGIN_DIR . 'inc/axtria/sections/section-team.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/avtari/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/avtari/default-pages/upload-media.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $file = CLEVERFOX_PLUGIN_URL .'inc/avtari/images/logo.png';
3
+ $ImagePath = CLEVERFOX_PLUGIN_URL .'inc/avtari/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/avtari/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/avtari/images/logo-footer.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/avtari/images/logo-footer.png ADDED
Binary file
inc/avtari/images/logo.png ADDED
Binary file
inc/avtari/sections/above-header.php ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ <!--===// Start: Header Above
10
+ =================================-->
11
+ <div id="above-header" class="header-above-info d-av-block d-none wow fadeInDown">
12
+ <div class="header-widget">
13
+ <div class="av-container">
14
+ <div class="av-columns-area">
15
+ <div class="av-column-8">
16
+ <div class="widget-left text-av-left text-center">
17
+ <?php
18
+ $hide_show_cntct_details = get_theme_mod( 'hide_show_cntct_details','1'); $tlh_contct_icon = get_theme_mod( 'tlh_contct_icon','fa-clock-o');
19
+ $tlh_contact_title = get_theme_mod( 'tlh_contact_title','8:00AM - 6:00PM');
20
+ $tlh_contact_sbtitle = get_theme_mod( 'tlh_contact_sbtitle','Monday to Saturday');
21
+ ?>
22
+ <?php if($hide_show_cntct_details == '1') { ?>
23
+ <aside class="widget widget-contact wgt-1">
24
+ <div class="contact-area">
25
+ <div class="contact-icon">
26
+ <i class="fa <?php echo esc_attr($tlh_contct_icon); ?>"></i>
27
+ </div>
28
+ <a href="javascript:void(0)" class="contact-info">
29
+ <span class="text"><?php echo esc_html($tlh_contact_title); ?></span>
30
+ <span class="title"><?php echo esc_html($tlh_contact_sbtitle); ?></span>
31
+ </a>
32
+ </div>
33
+ </aside>
34
+ <?php } ?>
35
+ <?php
36
+ $hide_show_email_details = get_theme_mod( 'hide_show_email_details','1');
37
+ $tlh_email_icon = get_theme_mod( 'tlh_email_icon','fa-phone');
38
+ $tlh_email_title = get_theme_mod( 'tlh_email_title','Email Us');
39
+ $tlh_email_sbtitle = get_theme_mod( 'tlh_email_sbtitle','email@email.com');
40
+ ?>
41
+ <?php if($hide_show_email_details == '1') { ?>
42
+ <aside class="widget widget-contact wgt-2">
43
+ <div class="contact-area">
44
+ <div class="contact-icon">
45
+ <i class="fa <?php echo esc_attr($tlh_email_icon); ?>"></i>
46
+ </div>
47
+ <a href="mailto:<?php echo esc_html($tlh_email_sbtitle); ?>" class="contact-info">
48
+ <span class="text"><?php echo esc_html($tlh_email_title); ?></span>
49
+ <span class="title"><?php echo esc_html($tlh_email_sbtitle); ?></span>
50
+ </a>
51
+ </div>
52
+ </aside>
53
+ <?php } ?>
54
+ <?php
55
+ $hide_show_mbl_details = get_theme_mod( 'hide_show_mbl_details','1');
56
+ $tlh_mobile_icon = get_theme_mod( 'tlh_mobile_icon','fa-map-marker');
57
+ $tlh_mobile_title = get_theme_mod( 'tlh_mobile_title','Online 24x7');
58
+ $tlh_mobile_sbtitle = get_theme_mod( 'tlh_mobile_sbtitle','+1-0120-400-00-00');
59
+ ?>
60
+ <?php if($hide_show_mbl_details == '1') { ?>
61
+ <aside class="widget widget-contact wgt-3">
62
+ <div class="contact-area">
63
+ <div class="contact-icon">
64
+ <i class="fa <?php echo esc_attr($tlh_mobile_icon); ?>"></i>
65
+ </div>
66
+ <a href="tel:<?php echo esc_html($tlh_mobile_sbtitle); ?>" class="contact-info">
67
+ <span class="text"><?php echo esc_html($tlh_mobile_title); ?></span>
68
+ <span class="title"><?php echo esc_html($tlh_mobile_sbtitle); ?></span>
69
+ </a>
70
+ </div>
71
+ </aside>
72
+ <?php } ?>
73
+ </div>
74
+ </div>
75
+ <div class="av-column-4">
76
+ <div class="widget-right text-av-right text-center">
77
+ <?php if($hide_show_social_icon == '1') { ?>
78
+ <aside class="widget widget_social_widget">
79
+ <ul>
80
+ <?php
81
+ $social_icons = json_decode($social_icons);
82
+ if( $social_icons!='' )
83
+ {
84
+ foreach($social_icons as $social_item){
85
+ $social_icon = ! empty( $social_item->icon_value ) ? apply_filters( 'avril_translate_single_string', $social_item->icon_value, 'Header section' ) : '';
86
+ $social_link = ! empty( $social_item->link ) ? apply_filters( 'avril_translate_single_string', $social_item->link, 'Header section' ) : '';
87
+ ?>
88
+ <li><a href="<?php echo esc_url( $social_link ); ?>"><i class="fa <?php echo esc_attr( $social_icon ); ?>"></i></a></li>
89
+ <?php }} ?>
90
+ </ul>
91
+ </aside>
92
+ <?php } ?>
93
+ </div>
94
+ </div>
95
+ </div>
96
+ </div>
97
+ </div>
98
+ </div>
99
+ <!--===// End: Header Top
100
+ =================================-->
101
+ <?php
102
+ } endif;
103
+ add_action('avril_above_header', 'avril_above_header');
104
+ ?>
inc/axtria/features/avril-funfact.php CHANGED
@@ -12,6 +12,44 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
12
  )
13
  );
14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  // Funfact content Section //
16
 
17
  $wp_customize->add_setting(
12
  )
13
  );
14
 
15
+ // Funfact Setting
16
+ $wp_customize->add_setting(
17
+ 'funfact_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
+ 'funfact_setting_head',
27
+ array(
28
+ 'type' => 'hidden',
29
+ 'label' => __('Setting','clever-fox'),
30
+ 'section' => 'funfact_setting',
31
+ )
32
+ );
33
+
34
+ $wp_customize->add_setting(
35
+ 'hs_funfact' ,
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_funfact',
46
+ array(
47
+ 'label' => esc_html__( 'Hide / Show Section', 'clever-fox' ),
48
+ 'section' => 'funfact_setting',
49
+ 'type' => 'checkbox'
50
+ )
51
+ );
52
+
53
  // Funfact content Section //
54
 
55
  $wp_customize->add_setting(
inc/axtria/features/avril-team.php CHANGED
@@ -12,6 +12,44 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
12
  )
13
  );
14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  // Team Header Section //
16
  $wp_customize->add_setting(
17
  'team_headings'
@@ -146,9 +184,17 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
146
  //Pro feature
147
  class Avril_team__section_upgrade extends WP_Customize_Control {
148
  public function render_content() {
 
 
149
  ?>
 
 
 
 
150
  <a class="customizer_team_upgrade_section up-to-pro" href="https://www.nayrathemes.com/axtia-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
 
151
  <?php
 
152
  }
153
  }
154
 
12
  )
13
  );
14
 
15
+ // Team Setting
16
+ $wp_customize->add_setting(
17
+ 'team_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
+ 'team_setting_head',
27
+ array(
28
+ 'type' => 'hidden',
29
+ 'label' => __('Setting','clever-fox'),
30
+ 'section' => 'team_setting',
31
+ )
32
+ );
33
+
34
+ $wp_customize->add_setting(
35
+ 'hs_team' ,
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_team',
46
+ array(
47
+ 'label' => esc_html__( 'Hide / Show Section', 'clever-fox' ),
48
+ 'section' => 'team_setting',
49
+ 'type' => 'checkbox'
50
+ )
51
+ );
52
+
53
  // Team Header Section //
54
  $wp_customize->add_setting(
55
  'team_headings'
184
  //Pro feature
185
  class Avril_team__section_upgrade extends WP_Customize_Control {
186
  public function render_content() {
187
+ $theme = wp_get_theme(); // gets the current theme
188
+ if ( 'Avtari' == $theme->name){
189
  ?>
190
+ <a class="customizer_team_upgrade_section up-to-pro" href="https://www.nayrathemes.com/avril-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
191
+
192
+ <?php }else{ ?>
193
+
194
  <a class="customizer_team_upgrade_section up-to-pro" href="https://www.nayrathemes.com/axtia-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
195
+
196
  <?php
197
+ }
198
  }
199
  }
200
 
inc/axtria/sections/section-funfact.php CHANGED
@@ -1,10 +1,12 @@
1
  <?php
2
  if ( ! function_exists( 'cleverfox_axtria_lite_funfact' ) ) :
3
  function cleverfox_axtria_lite_funfact() {
 
4
  $funfact_contents = get_theme_mod('funfact_contents',avril_get_funfact_default());
5
  $funfact_sec_column = get_theme_mod('funfact_sec_column','3');
6
  $funfact_bg_setting = get_theme_mod('funfact_bg_setting',CLEVERFOX_PLUGIN_URL .'inc/axtria/images/fun-fact-bg.jpg');
7
  $funfact_bg_position = get_theme_mod('funfact_bg_position','fixed');
 
8
  ?>
9
  <section id="funfact-section" class="funfact-section layout-overlay" style="background-image:url('<?php echo esc_url($funfact_bg_setting); ?>');background-attachment:<?php echo esc_attr($funfact_bg_position); ?>">
10
  <div class="av-container">
@@ -40,7 +42,7 @@ if ( ! function_exists( 'cleverfox_axtria_lite_funfact' ) ) :
40
  </div>
41
  </section>
42
  <?php
43
- } endif;
44
  if ( function_exists( 'cleverfox_axtria_lite_funfact' ) ) {
45
  $section_priority = apply_filters( 'avril_section_priority', 14, 'avril_lite_funfact' );
46
  add_action( 'avril_sections', 'cleverfox_axtria_lite_funfact', absint( $section_priority ) );
1
  <?php
2
  if ( ! function_exists( 'cleverfox_axtria_lite_funfact' ) ) :
3
  function cleverfox_axtria_lite_funfact() {
4
+ $hs_funfact = get_theme_mod('hs_funfact','1');
5
  $funfact_contents = get_theme_mod('funfact_contents',avril_get_funfact_default());
6
  $funfact_sec_column = get_theme_mod('funfact_sec_column','3');
7
  $funfact_bg_setting = get_theme_mod('funfact_bg_setting',CLEVERFOX_PLUGIN_URL .'inc/axtria/images/fun-fact-bg.jpg');
8
  $funfact_bg_position = get_theme_mod('funfact_bg_position','fixed');
9
+ if($hs_funfact=='1'){
10
  ?>
11
  <section id="funfact-section" class="funfact-section layout-overlay" style="background-image:url('<?php echo esc_url($funfact_bg_setting); ?>');background-attachment:<?php echo esc_attr($funfact_bg_position); ?>">
12
  <div class="av-container">
42
  </div>
43
  </section>
44
  <?php
45
+ }} endif;
46
  if ( function_exists( 'cleverfox_axtria_lite_funfact' ) ) {
47
  $section_priority = apply_filters( 'avril_section_priority', 14, 'avril_lite_funfact' );
48
  add_action( 'avril_sections', 'cleverfox_axtria_lite_funfact', absint( $section_priority ) );
inc/axtria/sections/section-team.php CHANGED
@@ -1,10 +1,12 @@
1
  <?php
2
  if ( ! function_exists( 'cleverfox_axtria_lite_team' ) ) :
3
  function cleverfox_axtria_lite_team() {
 
4
  $team_title = get_theme_mod('team_title','Technology from tomorrow');
5
  $team_subtitle = get_theme_mod('team_subtitle','Outstanding <span class="av-heading animate-7"><span class="av-text-wrapper"><b class="is-show">Team</b> <b>Team</b><b>Team</b></span></span>');
6
  $team_description = get_theme_mod('team_description','Lorem Ipsum is simply dummy of printing and typesetting and industry. Lorem Ipsum been.');
7
  $team_contents = get_theme_mod('team_contents',avril_get_team_default());
 
8
  ?>
9
  <section id="team-section" class="team-section bg-primary-light av-py-default">
10
  <div class="av-container">
@@ -88,7 +90,7 @@ if ( ! function_exists( 'cleverfox_axtria_lite_team' ) ) :
88
  </div>
89
  </section>
90
  <?php
91
- } endif;
92
  if ( function_exists( 'cleverfox_axtria_lite_team' ) ) {
93
  $section_priority = apply_filters( 'avril_section_priority', 14, 'avril_lite_team' );
94
  add_action( 'avril_sections', 'cleverfox_axtria_lite_team', absint( $section_priority ) );
1
  <?php
2
  if ( ! function_exists( 'cleverfox_axtria_lite_team' ) ) :
3
  function cleverfox_axtria_lite_team() {
4
+ $hs_team = get_theme_mod('hs_team','1');
5
  $team_title = get_theme_mod('team_title','Technology from tomorrow');
6
  $team_subtitle = get_theme_mod('team_subtitle','Outstanding <span class="av-heading animate-7"><span class="av-text-wrapper"><b class="is-show">Team</b> <b>Team</b><b>Team</b></span></span>');
7
  $team_description = get_theme_mod('team_description','Lorem Ipsum is simply dummy of printing and typesetting and industry. Lorem Ipsum been.');
8
  $team_contents = get_theme_mod('team_contents',avril_get_team_default());
9
+ if($hs_team=='1'){
10
  ?>
11
  <section id="team-section" class="team-section bg-primary-light av-py-default">
12
  <div class="av-container">
90
  </div>
91
  </section>
92
  <?php
93
+ }} endif;
94
  if ( function_exists( 'cleverfox_axtria_lite_team' ) ) {
95
  $section_priority = apply_filters( 'avril_section_priority', 14, 'avril_lite_team' );
96
  add_action( 'avril_sections', 'cleverfox_axtria_lite_team', absint( $section_priority ) );
inc/cleverfox-activator.php CHANGED
@@ -94,6 +94,12 @@ class Cleverfox_Activator {
94
  require CLEVERFOX_PLUGIN_DIR . 'inc/axtria/default-widgets/default-widget.php';
95
  }
96
 
 
 
 
 
 
 
97
  if ( 'Fiona Blog' == $theme->name || 'Fiona Food' == $theme->name || 'Fiona News' == $theme->name){
98
  require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-pages/upload-media.php';
99
  require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-pages/home-page.php';
94
  require CLEVERFOX_PLUGIN_DIR . 'inc/axtria/default-widgets/default-widget.php';
95
  }
96
 
97
+ if ( 'Avtari' == $theme->name){
98
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avtari/default-pages/upload-media.php';
99
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avtari/default-pages/home-page.php';
100
+ require CLEVERFOX_PLUGIN_DIR . 'inc/avtari/default-widgets/default-widget.php';
101
+ }
102
+
103
  if ( 'Fiona Blog' == $theme->name || 'Fiona Food' == $theme->name || 'Fiona News' == $theme->name){
104
  require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-pages/upload-media.php';
105
  require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-pages/home-page.php';
inc/gradiant/dynamic-style.php CHANGED
@@ -27,8 +27,8 @@ if( ! function_exists( 'cleverfox_gradiant_dynamic_styles' ) ):
27
  /**
28
  * CTA
29
  */
30
- $cta_bg_setting = get_theme_mod('cta_bg_setting',esc_url(get_template_directory_uri() . '/assets/images/cta_bg.jpg'));
31
- $cta_bg_position = get_theme_mod('cta_bg_position','fixed');
32
  $output_css .=".cta-section {
33
  background-image: url(".esc_url($cta_bg_setting).");
34
  background-attachment: " .esc_attr($cta_bg_position). ";
27
  /**
28
  * CTA
29
  */
30
+ $cta_bg_setting = get_theme_mod('cta_bg_setting',esc_url(CLEVERFOX_PLUGIN_URL . 'inc/gradiant/images/slider/img01.jpg'));
31
+ $cta_bg_position = get_theme_mod('cta_bg_position','scroll');
32
  $output_css .=".cta-section {
33
  background-image: url(".esc_url($cta_bg_setting).");
34
  background-attachment: " .esc_attr($cta_bg_position). ";
inc/gradiant/features/gradiant-cta.php CHANGED
@@ -282,7 +282,7 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
282
  $wp_customize->add_setting(
283
  'cta_bg_setting' ,
284
  array(
285
- 'default' => esc_url(get_template_directory_uri() . '/assets/images/cta_bg.jpg'),
286
  'capability' => 'edit_theme_options',
287
  'sanitize_callback' => 'gradiant_sanitize_url',
288
  'priority' => 14,
@@ -299,7 +299,7 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
299
  $wp_customize->add_setting(
300
  'cta_bg_position' ,
301
  array(
302
- 'default' => 'fixed',
303
  'capability' => 'edit_theme_options',
304
  'sanitize_callback' => 'gradiant_sanitize_select',
305
  'priority' => 15,
282
  $wp_customize->add_setting(
283
  'cta_bg_setting' ,
284
  array(
285
+ 'default' => esc_url(CLEVERFOX_PLUGIN_URL . 'inc/gradiant/images/slider/img01.jpg'),
286
  'capability' => 'edit_theme_options',
287
  'sanitize_callback' => 'gradiant_sanitize_url',
288
  'priority' => 14,
299
  $wp_customize->add_setting(
300
  'cta_bg_position' ,
301
  array(
302
+ 'default' => 'scroll',
303
  'capability' => 'edit_theme_options',
304
  'sanitize_callback' => 'gradiant_sanitize_select',
305
  'priority' => 15,
inc/gradiant/gradiant.php CHANGED
@@ -23,4 +23,10 @@ if ( ! function_exists( 'cleverfox_gradiant_frontpage_sections' ) ) :
23
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/sections/section-cta.php';
24
  }
25
  add_action( 'gradiant_sections', 'cleverfox_gradiant_frontpage_sections' );
26
- endif;
 
 
 
 
 
 
23
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/sections/section-cta.php';
24
  }
25
  add_action( 'gradiant_sections', 'cleverfox_gradiant_frontpage_sections' );
26
+ endif;
27
+
28
+
29
+ function cleverfox_gradiant_enqueue_scripts() {
30
+ wp_enqueue_style('animate',CLEVERFOX_PLUGIN_URL .'/inc/assets/css/animate.css');
31
+ }
32
+ add_action( 'wp_enqueue_scripts', 'cleverfox_gradiant_enqueue_scripts' );
inc/gradiant/images/service/service01.jpg CHANGED
Binary file
inc/gradiant/images/service/service02.jpg CHANGED
Binary file
inc/gradiant/images/service/service03.jpg CHANGED
Binary file
inc/gradiant/images/slider/img01.jpg CHANGED
Binary file
inc/gradiant/images/slider/img02.jpg CHANGED
Binary file
inc/gradiant/images/slider/img03.jpg CHANGED
Binary file
inc/gradiant/readme.txt ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Slider Images
2
+ =================================================================================================
3
+ URL: https://pxhere.com/en/photo/1448693
4
+ https://pxhere.com/en/photo/1448371
5
+ https://pxhere.com/en/photo/1450321
6
+ Source: https://pxhere.com
7
+ License: Creative Commons Zero(https://pxhere.com/en/license)
8
+
9
+
10
+ Service Images
11
+ =================================================================================================
12
+ URL: https://stocksnap.io/photo/business-people-FRU4Y0OBEY
13
+ https://stocksnap.io/photo/hands-beverage-RYM2WIKREP
14
+ https://stocksnap.io/photo/laptop-work-FP2WQB568R
15
+ Source: https://stocksnap.io
16
+ License: CC0 Public Domain
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: 5.8
6
  Requires PHP: 5.6
7
- Stable tag: 9.0
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
@@ -110,6 +110,9 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
110
 
111
  == Changelog ==
112
 
 
 
 
113
  = 9.0 =
114
  * Gradiant Theme Functionality Added
115
 
4
  Requires at least: 4.0
5
  Tested up to: 5.8
6
  Requires PHP: 5.6
7
+ Stable tag: 9.1
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
110
 
111
  == Changelog ==
112
 
113
+ = 9.1 =
114
+ * Avtari Theme Functionality Added
115
+
116
  = 9.0 =
117
  * Gradiant Theme Functionality Added
118