Version Description
- Tested With WordPress 5.6
Download this release
Release Info
Developer | nayrathemes |
Plugin | Clever Fox |
Version | 2.6 |
Comparing to | |
See all releases |
Code changes from version 2.5 to 2.6
- clever-fox.php +5 -1
- inc/avail/avail.php +31 -0
- inc/avail/sections/section-cta-2.php +47 -0
- inc/custom-controls/Tabs/js/customizer-addon-script.js +1 -1
- readme.txt +4 -1
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: 2.
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
@@ -65,6 +65,10 @@ function cleverfox_activate() {
|
|
65 |
require_once('inc/aera/aera.php');
|
66 |
}
|
67 |
|
|
|
|
|
|
|
|
|
68 |
}
|
69 |
add_action( 'init', 'cleverfox_activate' );
|
70 |
|
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: 2.6
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
65 |
require_once('inc/aera/aera.php');
|
66 |
}
|
67 |
|
68 |
+
if( 'Avail' == $theme->name){
|
69 |
+
require_once('inc/avail/avail.php');
|
70 |
+
}
|
71 |
+
|
72 |
}
|
73 |
add_action( 'init', 'cleverfox_activate' );
|
74 |
|
inc/avail/avail.php
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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-service.php';
|
13 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-slider.php';
|
14 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-typography.php';
|
15 |
+
|
16 |
+
if ( ! function_exists( 'cleverfox_avril_frontpage_sections' ) ) :
|
17 |
+
function cleverfox_avril_frontpage_sections() {
|
18 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-slider.php';
|
19 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-service.php';
|
20 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-features.php';
|
21 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avail/sections/section-cta-2.php';
|
22 |
+
}
|
23 |
+
add_action( 'avril_sections', 'cleverfox_avril_frontpage_sections' );
|
24 |
+
endif;
|
25 |
+
|
26 |
+
function cleverfox_avril_enqueue_scripts() {
|
27 |
+
wp_enqueue_style('animate',CLEVERFOX_PLUGIN_URL .'/inc/assets/css/animate.css');
|
28 |
+
wp_enqueue_style('owl-carousel-min',CLEVERFOX_PLUGIN_URL .'/inc/assets/css/owl.carousel.min.css');
|
29 |
+
wp_enqueue_script( 'owl-carousel', CLEVERFOX_PLUGIN_URL . 'inc/assets/js/owl.carousel.min.js', array('jquery'), false, true);
|
30 |
+
}
|
31 |
+
add_action( 'wp_enqueue_scripts', 'cleverfox_avril_enqueue_scripts' );
|
inc/avail/sections/section-cta-2.php
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 <i>technology</i> 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 |
+
$cta_btn_lbl2 = get_theme_mod('cta_btn_lbl2','+22 24588-55069');
|
10 |
+
$cta_btn_link2 = get_theme_mod('cta_btn_link2');
|
11 |
+
if($hs_cta == '1') {
|
12 |
+
?>
|
13 |
+
<section id="cta-section" class="cta-section cta-3 cta-bg-image home-cta">
|
14 |
+
<div class="av-container">
|
15 |
+
<div class="av-columns-area">
|
16 |
+
<div class="av-column-12">
|
17 |
+
<div class="cta-wrapper">
|
18 |
+
<div class="cta-content">
|
19 |
+
<div class="cta-img"><img src="https://www.diffchecker.com/static/images/text.png"></div>
|
20 |
+
<div class="cta-text">
|
21 |
+
<?php if ( ! empty( $cta_title ) ) : ?>
|
22 |
+
<h4><?php echo wp_kses_post($cta_title); ?></h4>
|
23 |
+
<?php endif; ?>
|
24 |
+
<?php if ( ! empty($cta_description) ) : ?>
|
25 |
+
<p><?php echo wp_kses_post($cta_description); ?></p>
|
26 |
+
<?php endif; ?>
|
27 |
+
</div>
|
28 |
+
</div>
|
29 |
+
<div class="cta-btn-wrap text-av-right text-center">
|
30 |
+
<?php if ( ! empty( $cta_btn_lbl2 ) ) : ?>
|
31 |
+
<a class="cta-more" href="<?php echo esc_url($cta_btn_link2); ?>"><div class="cta-icon"><i class="fa fa-phone"></i></div><div class="cta-label"><span class="cta-label-title">Get Quick Support</span><span class="cta-label-dis"><?php echo esc_html($cta_btn_lbl2); ?></span></div></a>
|
32 |
+
<?php endif;?>
|
33 |
+
<?php if ( ! empty( $cta_btn_lbl1 ) ) : ?>
|
34 |
+
<a href="<?php echo esc_url($cta_btn_link1); ?>" class="av-btn av-btn-white" data-text="Contact With Us"><?php echo esc_html($cta_btn_lbl1); ?></a>
|
35 |
+
<?php endif;?>
|
36 |
+
</div>
|
37 |
+
</div>
|
38 |
+
</div>
|
39 |
+
</div>
|
40 |
+
</div>
|
41 |
+
</section>
|
42 |
+
<?php
|
43 |
+
}} endif;
|
44 |
+
if ( function_exists( 'avril_lite_cta' ) ) {
|
45 |
+
$section_priority = apply_filters( 'avril_section_priority', 12, 'avril_lite_cta' );
|
46 |
+
add_action( 'avril_sections', 'avril_lite_cta', absint( $section_priority ) );
|
47 |
+
}
|
inc/custom-controls/Tabs/js/customizer-addon-script.js
CHANGED
@@ -10,7 +10,7 @@ var hantus_customize_tabs_focus = function ($) {
|
|
10 |
$( function () {
|
11 |
var customize = wp.customize;
|
12 |
$( document ).on( 'DOMNodeInserted', '.customize-partial-edit-shortcut', function () {
|
13 |
-
$( this ).
|
14 |
var controlId = $( this ).attr( 'class' );
|
15 |
var tabToActivate = '';
|
16 |
|
10 |
$( function () {
|
11 |
var customize = wp.customize;
|
12 |
$( document ).on( 'DOMNodeInserted', '.customize-partial-edit-shortcut', function () {
|
13 |
+
$( this ).one( 'click', function() {
|
14 |
var controlId = $( this ).attr( 'class' );
|
15 |
var tabToActivate = '';
|
16 |
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Contributors: nayrathemes
|
3 |
Tags: startkit, startbiz, arowana, envira, hantus, conceptly
|
4 |
Requires at least: 4.0
|
5 |
-
Tested up to: 5.
|
6 |
License: GPLv3 or later
|
7 |
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
|
8 |
|
@@ -43,6 +43,9 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
|
|
43 |
|
44 |
== Changelog ==
|
45 |
|
|
|
|
|
|
|
46 |
= 2.5 =
|
47 |
* Aera Theme Functionality Improved
|
48 |
|
2 |
Contributors: nayrathemes
|
3 |
Tags: startkit, startbiz, arowana, envira, hantus, conceptly
|
4 |
Requires at least: 4.0
|
5 |
+
Tested up to: 5.6
|
6 |
License: GPLv3 or later
|
7 |
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
|
8 |
|
43 |
|
44 |
== Changelog ==
|
45 |
|
46 |
+
= 2.6 =
|
47 |
+
* Tested With WordPress 5.6
|
48 |
+
|
49 |
= 2.5 =
|
50 |
* Aera Theme Functionality Improved
|
51 |
|