Clever Fox - Version 13.4

Version Description

  • Colorsy Theme Files Added
Download this release

Release Info

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

Code changes from version 13.3 to 13.4

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: 13.3
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
@@ -140,6 +140,10 @@ function cleverfox_activate() {
140
  require_once('inc/avitech/avitech.php');
141
  }
142
 
 
 
 
 
143
  }
144
  add_action( 'init', 'cleverfox_activate' );
145
 
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: 13.4
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
140
  require_once('inc/avitech/avitech.php');
141
  }
142
 
143
+ if( 'Colorsy' == $theme->name){
144
+ require_once('inc/colorsy/colorsy.php');
145
+ }
146
+
147
  }
148
  add_action( 'init', 'cleverfox_activate' );
149
 
inc/cleverfox-activator.php CHANGED
@@ -143,7 +143,7 @@ class Cleverfox_Activator {
143
  require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/default-widgets/default-widget.php';
144
  }
145
 
146
- if ( 'Gradiant' == $theme->name || 'Comoxa' == $theme->name || 'ColorPress' == $theme->name || 'Flavita' == $theme->name){
147
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/default-pages/upload-media.php';
148
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/default-pages/home-page.php';
149
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/default-widgets/default-widget.php';
143
  require CLEVERFOX_PLUGIN_DIR . 'inc/boostify/default-widgets/default-widget.php';
144
  }
145
 
146
+ if ( 'Gradiant' == $theme->name || 'Comoxa' == $theme->name || 'ColorPress' == $theme->name || 'Flavita' == $theme->name || 'Colorsy' == $theme->name){
147
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/default-pages/upload-media.php';
148
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/default-pages/home-page.php';
149
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/default-widgets/default-widget.php';
inc/colorpress/colorpress.php CHANGED
@@ -10,7 +10,7 @@ require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/sections/above-footer.php';
10
  require CLEVERFOX_PLUGIN_DIR . 'inc/colorpress/features/gradiant-header.php';
11
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-footer.php';
12
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-slider.php';
13
- require CLEVERFOX_PLUGIN_DIR . 'inc/comoxa/features/comoxa-slider.php';
14
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-info.php';
15
  require CLEVERFOX_PLUGIN_DIR . 'inc/comoxa/features/comoxa-service.php';
16
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-cta.php';
10
  require CLEVERFOX_PLUGIN_DIR . 'inc/colorpress/features/gradiant-header.php';
11
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-footer.php';
12
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-slider.php';
13
+ //require CLEVERFOX_PLUGIN_DIR . 'inc/comoxa/features/comoxa-slider.php';
14
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-info.php';
15
  require CLEVERFOX_PLUGIN_DIR . 'inc/comoxa/features/comoxa-service.php';
16
  require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-cta.php';
inc/colorsy/colorsy.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Gradiant
4
+ */
5
+
6
+ require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/extras.php';
7
+ require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/dynamic-style.php';
8
+ require CLEVERFOX_PLUGIN_DIR . 'inc/colorpress/sections/above-header.php';
9
+ require CLEVERFOX_PLUGIN_DIR . 'inc/flavita/sections/header-contact.php';
10
+ require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/sections/above-footer.php';
11
+ require CLEVERFOX_PLUGIN_DIR . 'inc/colorpress/features/gradiant-header.php';
12
+ require CLEVERFOX_PLUGIN_DIR . 'inc/flavita/features/flavita-header.php';
13
+ require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-footer.php';
14
+ require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-slider.php';
15
+ require CLEVERFOX_PLUGIN_DIR . 'inc/comoxa/features/comoxa-service.php';
16
+ require CLEVERFOX_PLUGIN_DIR . 'inc/flavita/features/gradiant-client.php';
17
+ require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-cta.php';
18
+ require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/features/gradiant-typography.php';
19
+
20
+ if ( ! function_exists( 'cleverfox_gradiant_frontpage_sections' ) ) :
21
+ function cleverfox_gradiant_frontpage_sections() {
22
+ require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/sections/section-slider.php';
23
+ require CLEVERFOX_PLUGIN_DIR . 'inc/gradiant/sections/section-cta.php';
24
+ require CLEVERFOX_PLUGIN_DIR . 'inc/comoxa/sections/section-service.php';
25
+ require CLEVERFOX_PLUGIN_DIR . 'inc/flavita/sections/section-client.php';
26
+ }
27
+ add_action( 'gradiant_sections', 'cleverfox_gradiant_frontpage_sections' );
28
+ endif;
29
+
30
+
31
+ function cleverfox_gradiant_enqueue_scripts() {
32
+ wp_enqueue_style('animate',CLEVERFOX_PLUGIN_URL .'/inc/assets/css/animate.css');
33
+ }
34
+ add_action( 'wp_enqueue_scripts', 'cleverfox_gradiant_enqueue_scripts' );
inc/colorsy/images/logo.png ADDED
Binary file
inc/comoxa/features/comoxa-service.php CHANGED
@@ -178,6 +178,11 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
178
  <?php }elseif('Flavita' == $theme->name){ ?>
179
 
180
  <a class="customizer_service_upgrade_section up-to-pro" href="https://www.nayrathemes.com/flavita-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
 
 
 
 
 
181
  <?php
182
  }}
183
  }
178
  <?php }elseif('Flavita' == $theme->name){ ?>
179
 
180
  <a class="customizer_service_upgrade_section up-to-pro" href="https://www.nayrathemes.com/flavita-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
181
+
182
+ <?php }elseif('Colorsy' == $theme->name){ ?>
183
+
184
+ <a class="customizer_service_upgrade_section up-to-pro" href="https://www.nayrathemes.com/gradiant-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
185
+
186
  <?php
187
  }}
188
  }
inc/flavita/features/flavita-header.php CHANGED
@@ -62,27 +62,29 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
62
  )
63
  );
64
 
65
-
66
- //hdr_nav_contact_content3
67
- $wp_customize->add_setting(
68
- 'hdr_nav_contact_content3'
69
- ,array(
70
- 'default' => '<div class="contact-icon"><i class="fa fa-envelope"></i></div><div class="contact-info"><span class="title">Email Us</span></div><div class="contact-info"><a href="#"><span class="text">example.com</span></a></div>',
71
- 'capability' => 'edit_theme_options',
72
- 'sanitize_callback' => 'gradiant_sanitize_html',
73
- 'transport' => $selective_refresh,
74
- 'priority' => 9,
75
- )
76
- );
 
77
 
78
- $wp_customize->add_control(
79
- 'hdr_nav_contact_content3',
80
- array(
81
- 'type' => 'textarea',
82
- 'label' => __('Contact Info 3','gradiant-pro'),
83
- 'section' => 'header_navigation',
84
- )
85
- );
 
86
  }
87
  add_action( 'customize_register', 'flavita_lite_header_settings' );
88
 
62
  )
63
  );
64
 
65
+ $theme = wp_get_theme(); // gets the current theme
66
+ if( 'Colorsy' !== $theme->name){
67
+ //hdr_nav_contact_content3
68
+ $wp_customize->add_setting(
69
+ 'hdr_nav_contact_content3'
70
+ ,array(
71
+ 'default' => '<div class="contact-icon"><i class="fa fa-envelope"></i></div><div class="contact-info"><span class="title">Email Us</span></div><div class="contact-info"><a href="#"><span class="text">example.com</span></a></div>',
72
+ 'capability' => 'edit_theme_options',
73
+ 'sanitize_callback' => 'gradiant_sanitize_html',
74
+ 'transport' => $selective_refresh,
75
+ 'priority' => 9,
76
+ )
77
+ );
78
 
79
+ $wp_customize->add_control(
80
+ 'hdr_nav_contact_content3',
81
+ array(
82
+ 'type' => 'textarea',
83
+ 'label' => __('Contact Info 3','gradiant-pro'),
84
+ 'section' => 'header_navigation',
85
+ )
86
+ );
87
+ }
88
  }
89
  add_action( 'customize_register', 'flavita_lite_header_settings' );
90
 
inc/flavita/sections/header-contact.php CHANGED
@@ -22,13 +22,15 @@
22
  </div>
23
  </aside>
24
  <?php endif;
 
 
25
  if(!empty($hdr_nav_contact_content3)): ?>
26
  <aside class="widget widget-contact">
27
  <div class="contact-area ct-area3">
28
  <?php echo wp_kses_post($hdr_nav_contact_content3); ?>
29
  </div>
30
  </aside>
31
- <?php endif; ?>
32
  </div>
33
  </li>
34
  <?php endif;
22
  </div>
23
  </aside>
24
  <?php endif;
25
+ $theme = wp_get_theme(); // gets the current theme
26
+ if( 'Colorsy' !== $theme->name){
27
  if(!empty($hdr_nav_contact_content3)): ?>
28
  <aside class="widget widget-contact">
29
  <div class="contact-area ct-area3">
30
  <?php echo wp_kses_post($hdr_nav_contact_content3); ?>
31
  </div>
32
  </aside>
33
+ <?php endif; } ?>
34
  </div>
35
  </li>
36
  <?php endif;
inc/gradiant/default-pages/upload-media.php CHANGED
@@ -8,7 +8,10 @@ if( 'Comoxa' == $theme->name){
8
  $ImagePath = CLEVERFOX_PLUGIN_URL .'inc/colorpress/images';
9
  }elseif('Flavita' == $theme->name){
10
  $file = CLEVERFOX_PLUGIN_URL .'inc/flavita/images/logo.png';
11
- $ImagePath = CLEVERFOX_PLUGIN_URL .'inc/flavita/images';
 
 
 
12
  }else{
13
  $file = CLEVERFOX_PLUGIN_URL .'inc/gradiant/images/logo.png';
14
  $ImagePath = CLEVERFOX_PLUGIN_URL .'inc/gradiant/images';
8
  $ImagePath = CLEVERFOX_PLUGIN_URL .'inc/colorpress/images';
9
  }elseif('Flavita' == $theme->name){
10
  $file = CLEVERFOX_PLUGIN_URL .'inc/flavita/images/logo.png';
11
+ $ImagePath = CLEVERFOX_PLUGIN_URL .'inc/flavita/images';
12
+ }elseif('Colorsy' == $theme->name){
13
+ $file = CLEVERFOX_PLUGIN_URL .'inc/colorsy/images/logo.png';
14
+ $ImagePath = CLEVERFOX_PLUGIN_URL .'inc/colorsy/images';
15
  }else{
16
  $file = CLEVERFOX_PLUGIN_URL .'inc/gradiant/images/logo.png';
17
  $ImagePath = CLEVERFOX_PLUGIN_URL .'inc/gradiant/images';
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: 13.3
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
@@ -133,6 +133,9 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
133
 
134
  == Changelog ==
135
 
 
 
 
136
  = 13.3 =
137
  * Fixed Escaping Issue in Azwa Theme
138
 
4
  Requires at least: 4.0
5
  Tested up to: 6.0
6
  Requires PHP: 5.6
7
+ Stable tag: 13.4
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
133
 
134
  == Changelog ==
135
 
136
+ = 13.4 =
137
+ * Colorsy Theme Files Added
138
+
139
  = 13.3 =
140
  * Fixed Escaping Issue in Azwa Theme
141