Clever Fox - Version 13.8

Version Description

  • Ampark Theme Files Added
Download this release

Release Info

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

Code changes from version 13.7 to 13.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: 13.7
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
@@ -144,6 +144,10 @@ function cleverfox_activate() {
144
  require_once('inc/colorsy/colorsy.php');
145
  }
146
 
 
 
 
 
147
  }
148
  add_action( 'init', 'cleverfox_activate' );
149
 
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.8
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
144
  require_once('inc/colorsy/colorsy.php');
145
  }
146
 
147
+ if( 'Ampark' == $theme->name){
148
+ require_once('inc/ampark/ampark.php');
149
+ }
150
+
151
  }
152
  add_action( 'init', 'cleverfox_activate' );
153
 
inc/ampark/ampark.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @package Ampark
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/ampark/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' );
34
+
35
+ /**
36
+ * Remove Customize Panel from parent theme
37
+ */
38
+ function ampark_remove_parent_setting( $wp_customize ) {
39
+ $wp_customize->remove_control('hdr_top_contact');
40
+ $wp_customize->remove_control('hide_show_cntct_details');
41
+ $wp_customize->remove_control('tlh_contct_icon');
42
+ $wp_customize->remove_control('tlh_contact_title');
43
+ $wp_customize->remove_control('tlh_contact_sbtitle');
44
+ }
45
+ add_action( 'customize_register', 'ampark_remove_parent_setting',99 );
inc/ampark/sections/above-header.php ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-7">
16
+ <div class="widget-left text-av-left text-center">
17
+ <?php
18
+ $hide_show_email_details = get_theme_mod( 'hide_show_email_details','1');
19
+ $tlh_email_icon = get_theme_mod( 'tlh_email_icon','fa-phone');
20
+ $tlh_email_title = get_theme_mod( 'tlh_email_title','Email Us');
21
+ $tlh_email_sbtitle = get_theme_mod( 'tlh_email_sbtitle','email@email.com');
22
+ ?>
23
+ <?php if($hide_show_email_details == '1') { ?>
24
+ <aside class="widget widget-contact wgt-2">
25
+ <div class="contact-area">
26
+ <div class="contact-icon">
27
+ <i class="fa <?php echo esc_attr($tlh_email_icon); ?>"></i>
28
+ </div>
29
+ <a href="mailto:<?php echo esc_html($tlh_email_sbtitle); ?>" class="contact-info">
30
+ <span class="text"><?php echo esc_html($tlh_email_title); ?></span>
31
+ <span class="title"><?php echo esc_html($tlh_email_sbtitle); ?></span>
32
+ </a>
33
+ </div>
34
+ </aside>
35
+ <?php } ?>
36
+ <?php
37
+ $hide_show_mbl_details = get_theme_mod( 'hide_show_mbl_details','1');
38
+ $tlh_mobile_icon = get_theme_mod( 'tlh_mobile_icon','fa-map-marker');
39
+ $tlh_mobile_title = get_theme_mod( 'tlh_mobile_title','Online 24x7');
40
+ $tlh_mobile_sbtitle = get_theme_mod( 'tlh_mobile_sbtitle','+1-0120-400-00-00');
41
+ ?>
42
+ <?php if($hide_show_mbl_details == '1') { ?>
43
+ <aside class="widget widget-contact wgt-3">
44
+ <div class="contact-area">
45
+ <div class="contact-icon">
46
+ <i class="fa <?php echo esc_attr($tlh_mobile_icon); ?>"></i>
47
+ </div>
48
+ <a href="tel:<?php echo esc_html($tlh_mobile_sbtitle); ?>" class="contact-info">
49
+ <span class="text"><?php echo esc_html($tlh_mobile_title); ?></span>
50
+ <span class="title"><?php echo esc_html($tlh_mobile_sbtitle); ?></span>
51
+ </a>
52
+ </div>
53
+ </aside>
54
+ <?php } ?>
55
+ </div>
56
+ </div>
57
+ <div class="av-column-5">
58
+ <div class="widget-right text-av-right text-center">
59
+ <?php if($hide_show_social_icon == '1') { ?>
60
+ <aside class="widget widget_social_widget">
61
+ <ul>
62
+ <?php
63
+ $social_icons = json_decode($social_icons);
64
+ if( $social_icons!='' )
65
+ {
66
+ foreach($social_icons as $social_item){
67
+ $social_icon = ! empty( $social_item->icon_value ) ? apply_filters( 'avril_translate_single_string', $social_item->icon_value, 'Header section' ) : '';
68
+ $social_link = ! empty( $social_item->link ) ? apply_filters( 'avril_translate_single_string', $social_item->link, 'Header section' ) : '';
69
+ ?>
70
+ <li><a href="<?php echo esc_url( $social_link ); ?>"><i class="fa <?php echo esc_attr( $social_icon ); ?>"></i></a></li>
71
+ <?php }} ?>
72
+ </ul>
73
+ </aside>
74
+ <?php } ?>
75
+ </div>
76
+ </div>
77
+ </div>
78
+ </div>
79
+ </div>
80
+ </div>
81
+ <!--===// End: Header Top
82
+ =================================-->
83
+ <?php
84
+ } endif;
85
+ add_action('avril_above_header', 'avril_above_header');
86
+ ?>
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.7
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
@@ -134,6 +134,9 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
134
 
135
  == Changelog ==
136
 
 
 
 
137
  = 13.7 =
138
  * Readme Updated
139
 
4
  Requires at least: 4.0
5
  Tested up to: 6.0
6
  Requires PHP: 5.6
7
+ Stable tag: 13.8
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
134
 
135
  == Changelog ==
136
 
137
+ = 13.8 =
138
+ * Ampark Theme Files Added
139
+
140
  = 13.7 =
141
  * Readme Updated
142