Version Description
- jQuery Issue Resolved
Download this release
Release Info
Developer | nayrathemes |
Plugin | Clever Fox |
Version | 1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1.40 to 1.2
- clever-fox.php +5 -1
- inc/asana/asana.php +37 -0
- inc/asana/sections/above-header.php +72 -0
- inc/custom-controls/Tabs/js/customizer-addon-script.js +2 -2
- readme.txt +3 -0
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: 1.
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
@@ -48,6 +48,10 @@ function cleverfox_activate() {
|
|
48 |
if( 'Conceptly' == $theme->name){
|
49 |
require_once('inc/conceptly/conceptly.php');
|
50 |
}
|
|
|
|
|
|
|
|
|
51 |
}
|
52 |
add_action( 'init', 'cleverfox_activate' );
|
53 |
|
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: 1.2
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
48 |
if( 'Conceptly' == $theme->name){
|
49 |
require_once('inc/conceptly/conceptly.php');
|
50 |
}
|
51 |
+
|
52 |
+
if( 'Asana' == $theme->name){
|
53 |
+
require_once('inc/asana/asana.php');
|
54 |
+
}
|
55 |
}
|
56 |
add_action( 'init', 'cleverfox_activate' );
|
57 |
|
inc/asana/asana.php
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @package Conceptly
|
4 |
+
*/
|
5 |
+
|
6 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/extras.php';
|
7 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/dynamic-style.php';
|
8 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/sections/above-header.php';
|
9 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-header.php';
|
10 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-call-to-action.php';
|
11 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-features.php';
|
12 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-info.php';
|
13 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-service.php';
|
14 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-slider.php';
|
15 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-sponsers.php';
|
16 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-typography.php';
|
17 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/features/conceptly-navigation.php';
|
18 |
+
|
19 |
+
if ( ! function_exists( 'cleverfox_conceptly_frontpage_sections' ) ) :
|
20 |
+
function cleverfox_conceptly_frontpage_sections() {
|
21 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/sections/section-slider.php';
|
22 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/sections/section-flash.php';
|
23 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/sections/section-service.php';
|
24 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/sections/section-features.php';
|
25 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/sections/section-cta.php';
|
26 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/conceptly/sections/section-sponser.php';
|
27 |
+
}
|
28 |
+
add_action( 'conceptly_sections', 'cleverfox_conceptly_frontpage_sections' );
|
29 |
+
endif;
|
30 |
+
|
31 |
+
function cleverfox_conceptly_enqueue_scripts() {
|
32 |
+
wp_enqueue_style('animate',CLEVERFOX_PLUGIN_URL .'/inc/assets/css/animate.css');
|
33 |
+
wp_enqueue_style('owl-carousel-min',CLEVERFOX_PLUGIN_URL .'/inc/assets/css/owl.carousel.min.css');
|
34 |
+
wp_enqueue_script( 'owl-carousel', CLEVERFOX_PLUGIN_URL . 'inc/assets/js/owl.carousel.min.js', array('jquery'), false, true);
|
35 |
+
wp_enqueue_script('owlCarousel2Thumbs', CLEVERFOX_PLUGIN_URL . 'inc/assets/js/owlCarousel2Thumbs.min.js', array('jquery'), false, true);
|
36 |
+
}
|
37 |
+
add_action( 'wp_enqueue_scripts', 'cleverfox_conceptly_enqueue_scripts' );
|
inc/asana/sections/above-header.php
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! function_exists( 'conceptly_above_header' ) ) :
|
3 |
+
function conceptly_above_header() {
|
4 |
+
$hide_show_preloader = get_theme_mod('hide_show_preloader','0');
|
5 |
+
$hide_show_social_icon = get_theme_mod('hide_show_social_icon','1');
|
6 |
+
$social_icons = get_theme_mod('social_icons',conceptly_get_social_icon_default());
|
7 |
+
$hide_show_contact_infot = get_theme_mod('hide_show_contact_infot','1');
|
8 |
+
$header_email_icon = get_theme_mod('header_email_icon','fa-envelope-o');
|
9 |
+
$header_email = get_theme_mod('header_email','email@companyname.com');
|
10 |
+
$header_phone_icon = get_theme_mod('header_phone_icon','fa-phone');
|
11 |
+
$header_phone_number = get_theme_mod('header_phone_number','+1 514-286-4242');
|
12 |
+
$header_faq_icon = get_theme_mod('header_faq_icon','fa-question');
|
13 |
+
$header_faq = get_theme_mod('header_faq','Ask Your Question');
|
14 |
+
$sticky_header_setting = get_theme_mod('sticky_header_setting','1');
|
15 |
+
$hide_show_email_infot = get_theme_mod('hide_show_email_infot','1');
|
16 |
+
$hide_show_faq = get_theme_mod('hide_show_faq','1');
|
17 |
+
|
18 |
+
?>
|
19 |
+
|
20 |
+
<!-- Start: Header Top
|
21 |
+
============================= -->
|
22 |
+
<div id="header-top" class="header-above">
|
23 |
+
<div class="container">
|
24 |
+
<div class="row">
|
25 |
+
<div class="col-lg-9 col-md-12 text-lg-left text-center my-auto">
|
26 |
+
<ul class="header-info d-inline-block">
|
27 |
+
<?php if($hide_show_contact_infot =='1'){ ?>
|
28 |
+
<?php if($header_phone_number) {?>
|
29 |
+
<li class="tlh-phone"><a href="#"><i class="fa <?php echo esc_attr($header_phone_icon); ?>"></i><?php echo esc_html($header_phone_number); ?></a></li>
|
30 |
+
<?php
|
31 |
+
}
|
32 |
+
}
|
33 |
+
?>
|
34 |
+
<?php if($hide_show_email_infot =='1'){ ?>
|
35 |
+
<?php if($header_email) {?>
|
36 |
+
<li class="tlh-email"><a href="#"><i class="fa <?php echo esc_attr( $header_email_icon ); ?>"></i><?php echo $header_email; ?></a></li>
|
37 |
+
<?php } ?>
|
38 |
+
<?php } ?>
|
39 |
+
<?php if($hide_show_faq =='1'){ ?>
|
40 |
+
<?php if($header_faq) {?>
|
41 |
+
<li class="tlh-faq"><a href="#"><i class="fa <?php echo esc_attr($header_faq_icon); ?>"></i><?php echo $header_faq; ?></a></li>
|
42 |
+
<?php } ?>
|
43 |
+
<?php } ?>
|
44 |
+
</ul>
|
45 |
+
</div>
|
46 |
+
|
47 |
+
<div class="col-lg-3 col-md-12 text-lg-right text-center my-auto">
|
48 |
+
<?php if($hide_show_social_icon =='1') { ?>
|
49 |
+
<ul class="trh-social d-inline-block">
|
50 |
+
<?php
|
51 |
+
$social_icons = json_decode($social_icons);
|
52 |
+
if( $social_icons!='' )
|
53 |
+
{
|
54 |
+
foreach($social_icons as $social_item){
|
55 |
+
$social_icon = ! empty( $social_item->icon_value ) ? apply_filters( 'conceptly_translate_single_string', $social_item->icon_value, 'Header section' ) : '';
|
56 |
+
$social_link = ! empty( $social_item->link ) ? apply_filters( 'conceptly_translate_single_string', $social_item->link, 'Header section' ) : '';
|
57 |
+
?>
|
58 |
+
<li><a href="<?php echo esc_url( $social_link ); ?>" ><i class="fa <?php echo esc_attr( $social_icon ); ?> "></i></a></li>
|
59 |
+
<?php
|
60 |
+
}
|
61 |
+
}
|
62 |
+
?>
|
63 |
+
</ul>
|
64 |
+
<?php } ?>
|
65 |
+
</div>
|
66 |
+
</div>
|
67 |
+
</div>
|
68 |
+
</div>
|
69 |
+
<?php
|
70 |
+
} endif;
|
71 |
+
add_action('conceptly_above_header', 'conceptly_above_header');
|
72 |
+
?>
|
inc/custom-controls/Tabs/js/customizer-addon-script.js
CHANGED
@@ -5,11 +5,11 @@
|
|
5 |
*
|
6 |
* @author Nayra Theme
|
7 |
*/
|
8 |
-
var hantus_customize_tabs_focus = function (
|
9 |
'use strict';
|
10 |
$( function () {
|
11 |
var customize = wp.customize;
|
12 |
-
$( '.customize-partial-edit-shortcut'
|
13 |
$( this ).on( 'click', function() {
|
14 |
var controlId = $( this ).attr( 'class' );
|
15 |
var tabToActivate = '';
|
5 |
*
|
6 |
* @author Nayra Theme
|
7 |
*/
|
8 |
+
var hantus_customize_tabs_focus = function ($) {
|
9 |
'use strict';
|
10 |
$( function () {
|
11 |
var customize = wp.customize;
|
12 |
+
$( document ).on( 'DOMNodeInserted', '.customize-partial-edit-shortcut', function () {
|
13 |
$( this ).on( 'click', function() {
|
14 |
var controlId = $( this ).attr( 'class' );
|
15 |
var tabToActivate = '';
|
readme.txt
CHANGED
@@ -39,6 +39,9 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
|
|
39 |
|
40 |
== Changelog ==
|
41 |
|
|
|
|
|
|
|
42 |
= 1.1.40 =
|
43 |
* Conceptly Theme Features Improved
|
44 |
|
39 |
|
40 |
== Changelog ==
|
41 |
|
42 |
+
= 1.2 =
|
43 |
+
* jQuery Issue Resolved
|
44 |
+
|
45 |
= 1.1.40 =
|
46 |
* Conceptly Theme Features Improved
|
47 |
|