Version Description
- Arbuda Theme Functionality Added
Download this release
Release Info
Developer | nayrathemes |
Plugin | Clever Fox |
Version | 7.7 |
Comparing to | |
See all releases |
Code changes from version 7.6 to 7.7
- clever-fox.php +5 -1
- inc/aravalli/default-pages/upload-media.php +8 -2
- inc/aravalli/default-widgets/default-widget.php +7 -1
- inc/aravalli/extras.php +34 -1
- inc/arbuda/arbuda.php +26 -0
- inc/arbuda/features/aravalli-footer.php +93 -0
- inc/arbuda/images/logo.png +0 -0
- inc/arbuda/sections/footer-above.php +43 -0
- inc/cleverfox-activator.php +1 -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: 7.
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
@@ -100,6 +100,10 @@ function cleverfox_activate() {
|
|
100 |
require_once('inc/aravalli/aravalli.php');
|
101 |
}
|
102 |
|
|
|
|
|
|
|
|
|
103 |
if( 'Boostify' == $theme->name){
|
104 |
require_once('inc/boostify/boostify.php');
|
105 |
}
|
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: 7.7
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
100 |
require_once('inc/aravalli/aravalli.php');
|
101 |
}
|
102 |
|
103 |
+
if( 'Arbuda' == $theme->name){
|
104 |
+
require_once('inc/arbuda/arbuda.php');
|
105 |
+
}
|
106 |
+
|
107 |
if( 'Boostify' == $theme->name){
|
108 |
require_once('inc/boostify/boostify.php');
|
109 |
}
|
inc/aravalli/default-pages/upload-media.php
CHANGED
@@ -1,6 +1,12 @@
|
|
1 |
<?php
|
2 |
-
$
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
$images = array(
|
6 |
$ImagePath. '/logo.png',
|
1 |
<?php
|
2 |
+
$theme = wp_get_theme(); // gets the current theme
|
3 |
+
if('Arbuda' == $theme->name){
|
4 |
+
$file = CLEVERFOX_PLUGIN_URL .'inc/arbuda/images/logo.png';
|
5 |
+
$ImagePath = CLEVERFOX_PLUGIN_URL .'inc/arbuda/images';
|
6 |
+
}else{
|
7 |
+
$file = CLEVERFOX_PLUGIN_URL .'inc/aravalli/images/logo.png';
|
8 |
+
$ImagePath = CLEVERFOX_PLUGIN_URL .'inc/aravalli/images';
|
9 |
+
}
|
10 |
|
11 |
$images = array(
|
12 |
$ImagePath. '/logo.png',
|
inc/aravalli/default-widgets/default-widget.php
CHANGED
@@ -1,4 +1,10 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
$activate = array(
|
3 |
'aravalli-sidebar-primary' => array(
|
4 |
'search-1',
|
@@ -15,7 +21,7 @@ $activate = array(
|
|
15 |
/* the default titles will appear */
|
16 |
update_option('widget_text', array(
|
17 |
1 => array('title' => 'About Aravalli',
|
18 |
-
'text'=>'<div class="footer-logo"><img src="'.
|
19 |
<p>There are many variations of dummy passages of Lorem Ipsum a available, but the majority have suffered that is alteration in some that form injected humour or randomised.</p>
|
20 |
'),
|
21 |
2 => array('title' => 'Recent Posts'),
|
1 |
<?php
|
2 |
+
$theme = wp_get_theme(); // gets the current theme
|
3 |
+
if ( 'Arbuda' == $theme->name){
|
4 |
+
$img_path = CLEVERFOX_PLUGIN_URL .'inc/arbuda/images/logo.png';
|
5 |
+
}else{
|
6 |
+
$img_path = CLEVERFOX_PLUGIN_URL .'inc/aravalli/images/footer-logo.png';
|
7 |
+
}
|
8 |
$activate = array(
|
9 |
'aravalli-sidebar-primary' => array(
|
10 |
'search-1',
|
21 |
/* the default titles will appear */
|
22 |
update_option('widget_text', array(
|
23 |
1 => array('title' => 'About Aravalli',
|
24 |
+
'text'=>'<div class="footer-logo"><img src="'.$img_path.'" alt=""></div>
|
25 |
<p>There are many variations of dummy passages of Lorem Ipsum a available, but the majority have suffered that is alteration in some that form injected humour or randomised.</p>
|
26 |
'),
|
27 |
2 => array('title' => 'Recent Posts'),
|
inc/aravalli/extras.php
CHANGED
@@ -271,4 +271,37 @@ function cleverfox_aravalli_lite_checkin() {
|
|
271 |
<?php
|
272 |
}
|
273 |
add_action('cleverfox_aravalli_lite_checkin','cleverfox_aravalli_lite_checkin');
|
274 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
271 |
<?php
|
272 |
}
|
273 |
add_action('cleverfox_aravalli_lite_checkin','cleverfox_aravalli_lite_checkin');
|
274 |
+
endif;
|
275 |
+
|
276 |
+
|
277 |
+
|
278 |
+
/*
|
279 |
+
*
|
280 |
+
* Footer Above Default
|
281 |
+
*/
|
282 |
+
function aravalli_get_footer_above_default() {
|
283 |
+
return apply_filters(
|
284 |
+
'aravalli_get_footer_above_default', json_encode(
|
285 |
+
array(
|
286 |
+
array(
|
287 |
+
'icon_value' => 'fa-map-marker',
|
288 |
+
'title' => esc_html__( 'Find Us:', 'clever-fox' ),
|
289 |
+
'subtitle' => esc_html__( 'A26, Silver Street, New York.', 'clever-fox' ),
|
290 |
+
'id' => 'customizer_repeater_footer_above_001',
|
291 |
+
),
|
292 |
+
array(
|
293 |
+
'icon_value' => 'fa-phone',
|
294 |
+
'title' => esc_html__( 'Call Us Now:', 'clever-fox' ),
|
295 |
+
'subtitle' => esc_html__( '(+233) 123 457789', 'clever-fox' ),
|
296 |
+
'id' => 'customizer_repeater_footer_above_002',
|
297 |
+
),
|
298 |
+
array(
|
299 |
+
'icon_value' => 'fa-envelope-o',
|
300 |
+
'title' => esc_html__( 'Email Address:', 'clever-fox' ),
|
301 |
+
'subtitle' => esc_html__( 'email@companyname.com', 'clever-fox' ),
|
302 |
+
'id' => 'customizer_repeater_footer_above_003',
|
303 |
+
),
|
304 |
+
)
|
305 |
+
)
|
306 |
+
);
|
307 |
+
}
|
inc/arbuda/arbuda.php
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @package Arbuda
|
4 |
+
*/
|
5 |
+
|
6 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/extras.php';
|
7 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/dynamic-style.php';
|
8 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/sections/above-header.php';
|
9 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/arbuda/sections/footer-above.php';
|
10 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/features/aravalli-header.php';
|
11 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/features/aravalli-slider.php';
|
12 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/features/aravalli-room.php';
|
13 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/features/aravalli-amenities.php';
|
14 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/features/aravalli-features.php';
|
15 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/arbuda/features/aravalli-footer.php';
|
16 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/features/aravalli-typography.php';
|
17 |
+
|
18 |
+
if ( ! function_exists( 'cleverfox_aravalli_frontpage_sections' ) ) :
|
19 |
+
function cleverfox_aravalli_frontpage_sections() {
|
20 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/sections/section-slider.php';
|
21 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/sections/section-room.php';
|
22 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/sections/section-amenities.php';
|
23 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/sections/section-features.php';
|
24 |
+
}
|
25 |
+
add_action( 'aravalli_sections', 'cleverfox_aravalli_frontpage_sections' );
|
26 |
+
endif;
|
inc/arbuda/features/aravalli-footer.php
ADDED
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
function aravalli_lite_footer( $wp_customize ) {
|
3 |
+
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
4 |
+
/*=========================================
|
5 |
+
Footer Above
|
6 |
+
=========================================*/
|
7 |
+
$wp_customize->add_section(
|
8 |
+
'footer_above',
|
9 |
+
array(
|
10 |
+
'title' => __('Footer Above','clever-fox'),
|
11 |
+
'panel' => 'footer_section',
|
12 |
+
'priority' => 2,
|
13 |
+
)
|
14 |
+
);
|
15 |
+
// hide/show
|
16 |
+
$wp_customize->add_setting(
|
17 |
+
'hs_above_footer' ,
|
18 |
+
array(
|
19 |
+
'default' => '1',
|
20 |
+
'capability' => 'edit_theme_options',
|
21 |
+
'sanitize_callback' => 'aravalli_sanitize_checkbox',
|
22 |
+
'priority' => 1,
|
23 |
+
)
|
24 |
+
);
|
25 |
+
|
26 |
+
$wp_customize->add_control(
|
27 |
+
'hs_above_footer',
|
28 |
+
array(
|
29 |
+
'label' => esc_html__( 'Hide/Show', 'clever-fox' ),
|
30 |
+
'section' => 'footer_above',
|
31 |
+
'type' => 'checkbox'
|
32 |
+
)
|
33 |
+
);
|
34 |
+
//content
|
35 |
+
$wp_customize->add_setting( 'footer_above_content',
|
36 |
+
array(
|
37 |
+
'sanitize_callback' => 'aravalli_repeater_sanitize',
|
38 |
+
'default' => aravalli_get_footer_above_default(),
|
39 |
+
'transport' => $selective_refresh,
|
40 |
+
'priority' => 2,
|
41 |
+
)
|
42 |
+
);
|
43 |
+
|
44 |
+
$wp_customize->add_control(
|
45 |
+
new ARAVALLI_Repeater( $wp_customize,
|
46 |
+
'footer_above_content',
|
47 |
+
array(
|
48 |
+
'label' => esc_html__('Content','clever-fox'),
|
49 |
+
'section' => 'footer_above',
|
50 |
+
'add_field_label' => esc_html__( 'Add New Content', 'clever-fox' ),
|
51 |
+
'item_name' => esc_html__( 'Content', 'clever-fox' ),
|
52 |
+
'customizer_repeater_icon_control' => true,
|
53 |
+
'customizer_repeater_title_control' => true,
|
54 |
+
'customizer_repeater_subtitle_control' => true,
|
55 |
+
'customizer_repeater_link_control' => true,
|
56 |
+
)
|
57 |
+
)
|
58 |
+
);
|
59 |
+
|
60 |
+
//Pro feature
|
61 |
+
class Aravalli_footer_above__section_upgrade extends WP_Customize_Control {
|
62 |
+
public function render_content() {
|
63 |
+
?>
|
64 |
+
<a class="customizer_footer_above_upgrade_section up-to-pro" href="https://www.nayrathemes.com/aravalli-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','clever-fox'); ?></a>
|
65 |
+
|
66 |
+
<?php
|
67 |
+
}
|
68 |
+
}
|
69 |
+
|
70 |
+
$wp_customize->add_setting( 'aravalli_footer_above_upgrade_to_pro', array(
|
71 |
+
'capability' => 'edit_theme_options',
|
72 |
+
'sanitize_callback' => 'wp_filter_nohtml_kses',
|
73 |
+
'priority' => 9,
|
74 |
+
));
|
75 |
+
$wp_customize->add_control(
|
76 |
+
new Aravalli_footer_above__section_upgrade(
|
77 |
+
$wp_customize,
|
78 |
+
'aravalli_footer_above_upgrade_to_pro',
|
79 |
+
array(
|
80 |
+
'section' => 'footer_above',
|
81 |
+
)
|
82 |
+
)
|
83 |
+
);
|
84 |
+
}
|
85 |
+
add_action( 'customize_register', 'aravalli_lite_footer' );
|
86 |
+
// Footer selective refresh
|
87 |
+
function aravalli_lite_footer_partials( $wp_customize ){
|
88 |
+
// footer_above_content
|
89 |
+
$wp_customize->selective_refresh->add_partial( 'footer_above_content', array(
|
90 |
+
'selector' => '.footer-wrapper .social-box',
|
91 |
+
) );
|
92 |
+
}
|
93 |
+
add_action( 'customize_register', 'aravalli_lite_footer_partials' );
|
inc/arbuda/images/logo.png
ADDED
Binary file
|
inc/arbuda/sections/footer-above.php
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! function_exists( 'aravalli_above_footer' ) ) :
|
3 |
+
function aravalli_above_footer() {
|
4 |
+
$hs_above_footer = get_theme_mod('hs_above_footer','1');
|
5 |
+
$footer_above_content = get_theme_mod('footer_above_content',aravalli_get_footer_above_default());
|
6 |
+
if ($hs_above_footer == '1') {
|
7 |
+
?>
|
8 |
+
<div class="row">
|
9 |
+
<div class="col-12">
|
10 |
+
<div class="social-box wow fadeInUp">
|
11 |
+
<?php
|
12 |
+
if ( ! empty( $footer_above_content ) ) {
|
13 |
+
$footer_above_content = json_decode( $footer_above_content );
|
14 |
+
foreach ( $footer_above_content as $footer_item ) {
|
15 |
+
$title = ! empty( $footer_item->title ) ? apply_filters( 'aravalli_translate_single_string', $footer_item->title, 'footer section' ) : '';
|
16 |
+
$subtitle = ! empty( $footer_item->subtitle ) ? apply_filters( 'aravalli_translate_single_string', $footer_item->subtitle, 'footer section' ) : '';
|
17 |
+
$icon = ! empty( $footer_item->icon_value ) ? apply_filters( 'aravalli_translate_single_string', $footer_item->icon_value, 'footer section' ) : '';
|
18 |
+
$link = ! empty( $footer_item->link ) ? apply_filters( 'aravalli_translate_single_string', $footer_item->link, 'footer section' ) : '';
|
19 |
+
?>
|
20 |
+
<div class="info-item">
|
21 |
+
<div class="info-icon">
|
22 |
+
<a href="<?php echo esc_url( $link ); ?>">
|
23 |
+
<?php if ( ! empty( $icon )){ ?>
|
24 |
+
<i class="fa <?php echo esc_attr( $icon ); ?>"></i>
|
25 |
+
<?php } ?>
|
26 |
+
</a>
|
27 |
+
</div>
|
28 |
+
<div class="info-content">
|
29 |
+
<?php if ( ! empty( $title )){ ?>
|
30 |
+
<h6 class="info-title"><?php echo esc_html( $title ); ?></h6>
|
31 |
+
<?php } ?>
|
32 |
+
<?php if ( ! empty( $subtitle )){ ?>
|
33 |
+
<div class="info-sub-title"><?php echo esc_html( $subtitle ); ?></div>
|
34 |
+
<?php } ?>
|
35 |
+
</div>
|
36 |
+
</div>
|
37 |
+
<?php }}?>
|
38 |
+
</div>
|
39 |
+
</div>
|
40 |
+
</div>
|
41 |
+
<?php }
|
42 |
+
} endif;
|
43 |
+
add_action('aravalli_above_footer', 'aravalli_above_footer');
|
inc/cleverfox-activator.php
CHANGED
@@ -107,7 +107,7 @@ class Cleverfox_Activator {
|
|
107 |
require CLEVERFOX_PLUGIN_DIR . 'inc/metasoft/default-widgets/default-widget.php';
|
108 |
}
|
109 |
|
110 |
-
if ( 'Aravalli' == $theme->name){
|
111 |
require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/default-pages/upload-media.php';
|
112 |
require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/default-pages/home-page.php';
|
113 |
require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/default-widgets/default-widget.php';
|
107 |
require CLEVERFOX_PLUGIN_DIR . 'inc/metasoft/default-widgets/default-widget.php';
|
108 |
}
|
109 |
|
110 |
+
if ( 'Aravalli' == $theme->name || 'Arbuda' == $theme->name){
|
111 |
require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/default-pages/upload-media.php';
|
112 |
require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/default-pages/home-page.php';
|
113 |
require CLEVERFOX_PLUGIN_DIR . 'inc/aravalli/default-widgets/default-widget.php';
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: 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: 7.
|
8 |
License: GPLv3 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
|
10 |
|
@@ -106,6 +106,9 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
|
|
106 |
|
107 |
== Changelog ==
|
108 |
|
|
|
|
|
|
|
109 |
= 7.6 =
|
110 |
* Boostify Theme Upsale Links Added
|
111 |
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 5.8
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 7.7
|
8 |
License: GPLv3 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
|
10 |
|
106 |
|
107 |
== Changelog ==
|
108 |
|
109 |
+
= 7.7 =
|
110 |
+
* Arbuda Theme Functionality Added
|
111 |
+
|
112 |
= 7.6 =
|
113 |
* Boostify Theme Upsale Links Added
|
114 |
|