Version Description
- Gradiant Theme Sections Hide Show Settings Added
Download this release
Release Info
Developer | nayrathemes |
Plugin | Clever Fox |
Version | 9.3 |
Comparing to | |
See all releases |
Code changes from version 9.2 to 9.3
- clever-fox.php +1 -1
- inc/gradiant/features/gradiant-cta.php +39 -0
- inc/gradiant/features/gradiant-service.php +39 -0
- inc/gradiant/features/gradiant-slider.php +40 -0
- inc/gradiant/sections/section-cta.php +4 -1
- inc/gradiant/sections/section-service.php +4 -1
- inc/gradiant/sections/section-slider.php +4 -1
- readme.txt +4 -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.
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
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.3
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
inc/gradiant/features/gradiant-cta.php
CHANGED
@@ -12,6 +12,45 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
12 |
)
|
13 |
);
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
// CTA Call Section //
|
16 |
$wp_customize->add_setting(
|
17 |
'cta_call_contents'
|
12 |
)
|
13 |
);
|
14 |
|
15 |
+
// Setting Head
|
16 |
+
$wp_customize->add_setting(
|
17 |
+
'cta_setting_head'
|
18 |
+
,array(
|
19 |
+
'capability' => 'edit_theme_options',
|
20 |
+
'sanitize_callback' => 'gradiant_sanitize_text',
|
21 |
+
'priority' => 1,
|
22 |
+
)
|
23 |
+
);
|
24 |
+
|
25 |
+
$wp_customize->add_control(
|
26 |
+
'cta_setting_head',
|
27 |
+
array(
|
28 |
+
'type' => 'hidden',
|
29 |
+
'label' => __('Setting','clever-fox'),
|
30 |
+
'section' => 'cta_setting',
|
31 |
+
)
|
32 |
+
);
|
33 |
+
|
34 |
+
// Hide / Show
|
35 |
+
$wp_customize->add_setting(
|
36 |
+
'cta_hs'
|
37 |
+
,array(
|
38 |
+
'default' => '1',
|
39 |
+
'capability' => 'edit_theme_options',
|
40 |
+
'sanitize_callback' => 'gradiant_sanitize_checkbox',
|
41 |
+
'priority' => 1,
|
42 |
+
)
|
43 |
+
);
|
44 |
+
|
45 |
+
$wp_customize->add_control(
|
46 |
+
'cta_hs',
|
47 |
+
array(
|
48 |
+
'type' => 'checkbox',
|
49 |
+
'label' => __('Hide / Show','clever-fox'),
|
50 |
+
'section' => 'cta_setting',
|
51 |
+
)
|
52 |
+
);
|
53 |
+
|
54 |
// CTA Call Section //
|
55 |
$wp_customize->add_setting(
|
56 |
'cta_call_contents'
|
inc/gradiant/features/gradiant-service.php
CHANGED
@@ -12,6 +12,45 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
12 |
)
|
13 |
);
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
// Service Header Section //
|
16 |
$wp_customize->add_setting(
|
17 |
'service_headings'
|
12 |
)
|
13 |
);
|
14 |
|
15 |
+
// Setting Head
|
16 |
+
$wp_customize->add_setting(
|
17 |
+
'service_setting_head'
|
18 |
+
,array(
|
19 |
+
'capability' => 'edit_theme_options',
|
20 |
+
'sanitize_callback' => 'gradiant_sanitize_text',
|
21 |
+
'priority' => 1,
|
22 |
+
)
|
23 |
+
);
|
24 |
+
|
25 |
+
$wp_customize->add_control(
|
26 |
+
'service_setting_head',
|
27 |
+
array(
|
28 |
+
'type' => 'hidden',
|
29 |
+
'label' => __('Setting','clever-fox'),
|
30 |
+
'section' => 'service_setting',
|
31 |
+
)
|
32 |
+
);
|
33 |
+
|
34 |
+
// Hide / Show
|
35 |
+
$wp_customize->add_setting(
|
36 |
+
'service_hs'
|
37 |
+
,array(
|
38 |
+
'default' => '1',
|
39 |
+
'capability' => 'edit_theme_options',
|
40 |
+
'sanitize_callback' => 'gradiant_sanitize_checkbox',
|
41 |
+
'priority' => 1,
|
42 |
+
)
|
43 |
+
);
|
44 |
+
|
45 |
+
$wp_customize->add_control(
|
46 |
+
'service_hs',
|
47 |
+
array(
|
48 |
+
'type' => 'checkbox',
|
49 |
+
'label' => __('Hide / Show','clever-fox'),
|
50 |
+
'section' => 'service_setting',
|
51 |
+
)
|
52 |
+
);
|
53 |
+
|
54 |
// Service Header Section //
|
55 |
$wp_customize->add_setting(
|
56 |
'service_headings'
|
inc/gradiant/features/gradiant-slider.php
CHANGED
@@ -19,6 +19,46 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
19 |
)
|
20 |
);
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
// slider Contents
|
23 |
$wp_customize->add_setting(
|
24 |
'slider_content_head'
|
19 |
)
|
20 |
);
|
21 |
|
22 |
+
|
23 |
+
// Setting Head
|
24 |
+
$wp_customize->add_setting(
|
25 |
+
'slider_setting_head'
|
26 |
+
,array(
|
27 |
+
'capability' => 'edit_theme_options',
|
28 |
+
'sanitize_callback' => 'gradiant_sanitize_text',
|
29 |
+
'priority' => 1,
|
30 |
+
)
|
31 |
+
);
|
32 |
+
|
33 |
+
$wp_customize->add_control(
|
34 |
+
'slider_setting_head',
|
35 |
+
array(
|
36 |
+
'type' => 'hidden',
|
37 |
+
'label' => __('Setting','clever-fox'),
|
38 |
+
'section' => 'slider_setting',
|
39 |
+
)
|
40 |
+
);
|
41 |
+
|
42 |
+
// Hide / Show
|
43 |
+
$wp_customize->add_setting(
|
44 |
+
'slider_hs'
|
45 |
+
,array(
|
46 |
+
'default' => '1',
|
47 |
+
'capability' => 'edit_theme_options',
|
48 |
+
'sanitize_callback' => 'gradiant_sanitize_checkbox',
|
49 |
+
'priority' => 1,
|
50 |
+
)
|
51 |
+
);
|
52 |
+
|
53 |
+
$wp_customize->add_control(
|
54 |
+
'slider_hs',
|
55 |
+
array(
|
56 |
+
'type' => 'checkbox',
|
57 |
+
'label' => __('Hide / Show','clever-fox'),
|
58 |
+
'section' => 'slider_setting',
|
59 |
+
)
|
60 |
+
);
|
61 |
+
|
62 |
// slider Contents
|
63 |
$wp_customize->add_setting(
|
64 |
'slider_content_head'
|
inc/gradiant/sections/section-cta.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
$cta_call_icon = get_theme_mod('cta_call_icon','fa-user');
|
3 |
$cta_call_title = get_theme_mod('cta_call_title','Call Us:');
|
4 |
$cta_call_text = get_theme_mod('cta_call_text','<a href="#">+(01) 246 2365</a>');
|
@@ -9,6 +10,7 @@
|
|
9 |
$cta_btn_lbl = get_theme_mod('cta_btn_lbl','Apply Now');
|
10 |
$cta_btn_link = get_theme_mod('cta_btn_link');
|
11 |
$cta_effect_enable = get_theme_mod('cta_effect_enable','1');
|
|
|
12 |
?>
|
13 |
<section id="cta-section" class="cta-section home-cta <?php if($cta_effect_enable=='1'): echo esc_attr_e('cta-effect-active','clever-fox'); endif; ?>">
|
14 |
<div class="cta-overlay">
|
@@ -51,4 +53,5 @@
|
|
51 |
</div>
|
52 |
</div>
|
53 |
</div>
|
54 |
-
</section>
|
|
1 |
<?php
|
2 |
+
$cta_hs = get_theme_mod('cta_hs','1');
|
3 |
$cta_call_icon = get_theme_mod('cta_call_icon','fa-user');
|
4 |
$cta_call_title = get_theme_mod('cta_call_title','Call Us:');
|
5 |
$cta_call_text = get_theme_mod('cta_call_text','<a href="#">+(01) 246 2365</a>');
|
10 |
$cta_btn_lbl = get_theme_mod('cta_btn_lbl','Apply Now');
|
11 |
$cta_btn_link = get_theme_mod('cta_btn_link');
|
12 |
$cta_effect_enable = get_theme_mod('cta_effect_enable','1');
|
13 |
+
if($cta_hs=='1'){
|
14 |
?>
|
15 |
<section id="cta-section" class="cta-section home-cta <?php if($cta_effect_enable=='1'): echo esc_attr_e('cta-effect-active','clever-fox'); endif; ?>">
|
16 |
<div class="cta-overlay">
|
53 |
</div>
|
54 |
</div>
|
55 |
</div>
|
56 |
+
</section>
|
57 |
+
<?php } ?>
|
inc/gradiant/sections/section-service.php
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
<?php
|
|
|
2 |
$service_title = get_theme_mod('service_title','Our <span class="primary-color">Expertise</span>');
|
3 |
$service_description = get_theme_mod('service_description','Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.');
|
4 |
$service_contents = get_theme_mod('service_contents',gradiant_get_service_default());
|
|
|
5 |
?>
|
6 |
<section id="service-section" class="service-section av-py-default service-home shapes-section">
|
7 |
<div class="av-container">
|
@@ -98,4 +100,5 @@
|
|
98 |
<div class="shape2 bg-elements"><img src="<?php echo esc_url(CLEVERFOX_PLUGIN_URL); ?>inc/gradiant/images/service/clipArt/shape2.png" alt="image"></div>
|
99 |
<div class="shape3 bg-elements"><img src="<?php echo esc_url(CLEVERFOX_PLUGIN_URL); ?>inc/gradiant/images/service/clipArt/shape3.png" alt="image"></div>
|
100 |
<div class="shape4 bg-elements"><img src="<?php echo esc_url(CLEVERFOX_PLUGIN_URL); ?>inc/gradiant/images/service/clipArt/shape4.png" alt="image"></div>
|
101 |
-
</section>
|
|
1 |
<?php
|
2 |
+
$service_hs = get_theme_mod('service_hs','1');
|
3 |
$service_title = get_theme_mod('service_title','Our <span class="primary-color">Expertise</span>');
|
4 |
$service_description = get_theme_mod('service_description','Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.');
|
5 |
$service_contents = get_theme_mod('service_contents',gradiant_get_service_default());
|
6 |
+
if($service_hs=='1'){
|
7 |
?>
|
8 |
<section id="service-section" class="service-section av-py-default service-home shapes-section">
|
9 |
<div class="av-container">
|
100 |
<div class="shape2 bg-elements"><img src="<?php echo esc_url(CLEVERFOX_PLUGIN_URL); ?>inc/gradiant/images/service/clipArt/shape2.png" alt="image"></div>
|
101 |
<div class="shape3 bg-elements"><img src="<?php echo esc_url(CLEVERFOX_PLUGIN_URL); ?>inc/gradiant/images/service/clipArt/shape3.png" alt="image"></div>
|
102 |
<div class="shape4 bg-elements"><img src="<?php echo esc_url(CLEVERFOX_PLUGIN_URL); ?>inc/gradiant/images/service/clipArt/shape4.png" alt="image"></div>
|
103 |
+
</section>
|
104 |
+
<?php } ?>
|
inc/gradiant/sections/section-slider.php
CHANGED
@@ -1,8 +1,10 @@
|
|
1 |
<!--===// Start: Slider
|
2 |
=================================-->
|
3 |
<?php
|
|
|
4 |
$slider = get_theme_mod('slider',gradiant_get_slider_default());
|
5 |
$slider_autoplay = get_theme_mod('slider_autoplay','false');
|
|
|
6 |
?>
|
7 |
<section id="slider-section" class="slider-wrapper">
|
8 |
<div class="main-slider owl-carousel owl-theme">
|
@@ -55,4 +57,5 @@
|
|
55 |
</div>
|
56 |
<?php } } ?>
|
57 |
</div>
|
58 |
-
</section>
|
|
1 |
<!--===// Start: Slider
|
2 |
=================================-->
|
3 |
<?php
|
4 |
+
$slider_hs = get_theme_mod('slider_hs','1');
|
5 |
$slider = get_theme_mod('slider',gradiant_get_slider_default());
|
6 |
$slider_autoplay = get_theme_mod('slider_autoplay','false');
|
7 |
+
if($slider_hs=='1'){
|
8 |
?>
|
9 |
<section id="slider-section" class="slider-wrapper">
|
10 |
<div class="main-slider owl-carousel owl-theme">
|
57 |
</div>
|
58 |
<?php } } ?>
|
59 |
</div>
|
60 |
+
</section>
|
61 |
+
<?php } ?>
|
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.
|
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.2 =
|
114 |
* Avtari Theme Upsale Links Added
|
115 |
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 5.8
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 9.3
|
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.3 =
|
114 |
+
* Gradiant Theme Sections Hide Show Settings Added
|
115 |
+
|
116 |
= 9.2 =
|
117 |
* Avtari Theme Upsale Links Added
|
118 |
|