Version Description
- Varuda Theme Files Added
Download this release
Release Info
Developer | nayrathemes |
Plugin | Clever Fox |
Version | 15.2 |
Comparing to | |
See all releases |
Code changes from version 15.1 to 15.2
- clever-fox.php +1 -1
- inc/aera/features/aera-slider.php +6 -2
- inc/avitech/features/avitech-slider.php +38 -35
- inc/avril/dynamic-style.php +4 -4
- inc/avril/extras.php +1 -1
- inc/cleverfox-activator.php +6 -0
- inc/varuda/default-pages/home-page.php +24 -0
- inc/varuda/default-pages/upload-media.php +32 -0
- inc/varuda/default-widgets/default-widget.php +38 -0
- inc/varuda/images/logo-2.png +0 -0
- inc/varuda/images/logo.png +0 -0
- inc/varuda/varuda.php +3 -2
- 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: 15.
|
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: 15.2
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
inc/aera/features/aera-slider.php
CHANGED
@@ -78,7 +78,11 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
78 |
<?php
|
79 |
}elseif ( 'Avitech' == $theme->name){
|
80 |
?>
|
81 |
-
<a class="customizer_slider_upgrade_section up-to-pro" href="https://www.nayrathemes.com/avitech-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','avail'); ?></a>
|
|
|
|
|
|
|
|
|
82 |
<?php
|
83 |
}
|
84 |
}
|
@@ -102,7 +106,7 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
102 |
|
103 |
// slider opacity
|
104 |
$theme = wp_get_theme(); // gets the current theme
|
105 |
-
if ( 'Avitech' == $theme->name){
|
106 |
$default_opacity=0.8;
|
107 |
}else{
|
108 |
$default_opacity=0.5;
|
78 |
<?php
|
79 |
}elseif ( 'Avitech' == $theme->name){
|
80 |
?>
|
81 |
+
<a class="customizer_slider_upgrade_section up-to-pro" href="https://www.nayrathemes.com/avitech-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','avail'); ?></a>
|
82 |
+
<?php
|
83 |
+
}elseif ( 'Varuda' == $theme->name){
|
84 |
+
?>
|
85 |
+
<a class="customizer_slider_upgrade_section up-to-pro" href="https://www.nayrathemes.com/avril-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','avail'); ?></a>
|
86 |
<?php
|
87 |
}
|
88 |
}
|
106 |
|
107 |
// slider opacity
|
108 |
$theme = wp_get_theme(); // gets the current theme
|
109 |
+
if ( 'Avitech' == $theme->name || 'Varuda' == $theme->name){
|
110 |
$default_opacity=0.8;
|
111 |
}else{
|
112 |
$default_opacity=0.5;
|
inc/avitech/features/avitech-slider.php
CHANGED
@@ -2,44 +2,47 @@
|
|
2 |
function avitech_slider_setting( $wp_customize ) {
|
3 |
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
4 |
|
5 |
-
//
|
6 |
-
$
|
7 |
-
|
8 |
-
|
9 |
-
'
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
|
|
|
|
14 |
|
15 |
-
|
16 |
-
|
17 |
-
array(
|
18 |
-
'type' => 'hidden',
|
19 |
-
'label' => __('Colors','clever-fox'),
|
20 |
-
'section' => 'above_header',
|
21 |
-
)
|
22 |
-
);
|
23 |
-
|
24 |
-
// Info Color
|
25 |
-
$wp_customize->add_setting(
|
26 |
-
'hdr_info_color',
|
27 |
-
array(
|
28 |
-
'capability' => 'edit_theme_options',
|
29 |
-
'sanitize_callback' => 'sanitize_text_field',
|
30 |
-
'priority' => 8,
|
31 |
-
));
|
32 |
-
|
33 |
-
$wp_customize->add_control(
|
34 |
-
new WP_Customize_Color_Control
|
35 |
-
($wp_customize,
|
36 |
-
'hdr_info_color',
|
37 |
array(
|
38 |
-
'
|
39 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
)
|
41 |
-
)
|
42 |
-
|
43 |
|
44 |
// Head
|
45 |
$wp_customize->add_setting(
|
2 |
function avitech_slider_setting( $wp_customize ) {
|
3 |
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
4 |
|
5 |
+
$theme = wp_get_theme(); // gets the current theme
|
6 |
+
if ( 'Avitech' == $theme->name){
|
7 |
+
// Head
|
8 |
+
$wp_customize->add_setting(
|
9 |
+
'hdr_info_clr_head'
|
10 |
+
,array(
|
11 |
+
'capability' => 'edit_theme_options',
|
12 |
+
'sanitize_callback' => 'avril_sanitize_text',
|
13 |
+
'priority' => 8,
|
14 |
+
)
|
15 |
+
);
|
16 |
|
17 |
+
$wp_customize->add_control(
|
18 |
+
'hdr_info_clr_head',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
array(
|
20 |
+
'type' => 'hidden',
|
21 |
+
'label' => __('Colors','clever-fox'),
|
22 |
+
'section' => 'above_header',
|
23 |
+
)
|
24 |
+
);
|
25 |
+
|
26 |
+
// Info Color
|
27 |
+
$wp_customize->add_setting(
|
28 |
+
'hdr_info_color',
|
29 |
+
array(
|
30 |
+
'capability' => 'edit_theme_options',
|
31 |
+
'sanitize_callback' => 'sanitize_text_field',
|
32 |
+
'priority' => 8,
|
33 |
+
));
|
34 |
+
|
35 |
+
$wp_customize->add_control(
|
36 |
+
new WP_Customize_Color_Control
|
37 |
+
($wp_customize,
|
38 |
+
'hdr_info_color',
|
39 |
+
array(
|
40 |
+
'label' => __( 'Info Color', 'clever-fox' ),
|
41 |
+
'section' => 'above_header'
|
42 |
+
)
|
43 |
)
|
44 |
+
);
|
45 |
+
}
|
46 |
|
47 |
// Head
|
48 |
$wp_customize->add_setting(
|
inc/avril/dynamic-style.php
CHANGED
@@ -78,7 +78,7 @@ if( ! function_exists( 'cleverfox_avril_dynamic_styles' ) ):
|
|
78 |
}
|
79 |
}
|
80 |
|
81 |
-
if ( 'Avitech' == $theme->name){
|
82 |
$hdr_info_color = get_theme_mod( 'hdr_info_color');
|
83 |
$slide_ttl_color = get_theme_mod( 'slide_ttl_color');
|
84 |
$slide_subttl_color = get_theme_mod( 'slide_subttl_color');
|
@@ -91,19 +91,19 @@ if( ! function_exists( 'cleverfox_avril_dynamic_styles' ) ):
|
|
91 |
endif;
|
92 |
|
93 |
if(!empty($slide_ttl_color)):
|
94 |
-
$output_css .=" .avitech-theme .main-slider .theme-content h3{
|
95 |
color: " .esc_attr($slide_ttl_color). ";
|
96 |
}\n";
|
97 |
endif;
|
98 |
|
99 |
if(!empty($slide_subttl_color)):
|
100 |
-
$output_css .=" .avitech-theme .theme-content h1 span{
|
101 |
color: " .esc_attr($slide_subttl_color). ";
|
102 |
}\n";
|
103 |
endif;
|
104 |
|
105 |
if(!empty($slide_desc_color)):
|
106 |
-
$output_css .=" .avitech-theme .main-slider .theme-content p{
|
107 |
color: " .esc_attr($slide_desc_color). ";
|
108 |
}\n";
|
109 |
endif;
|
78 |
}
|
79 |
}
|
80 |
|
81 |
+
if ( 'Avitech' == $theme->name || 'Varuda' == $theme->name){
|
82 |
$hdr_info_color = get_theme_mod( 'hdr_info_color');
|
83 |
$slide_ttl_color = get_theme_mod( 'slide_ttl_color');
|
84 |
$slide_subttl_color = get_theme_mod( 'slide_subttl_color');
|
91 |
endif;
|
92 |
|
93 |
if(!empty($slide_ttl_color)):
|
94 |
+
$output_css .=" .avitech-theme .main-slider .theme-content h3, .varuda-theme .main-slider .theme-content h3{
|
95 |
color: " .esc_attr($slide_ttl_color). ";
|
96 |
}\n";
|
97 |
endif;
|
98 |
|
99 |
if(!empty($slide_subttl_color)):
|
100 |
+
$output_css .=" .avitech-theme .theme-content h1 span, .varuda-theme .theme-content h1 span{
|
101 |
color: " .esc_attr($slide_subttl_color). ";
|
102 |
}\n";
|
103 |
endif;
|
104 |
|
105 |
if(!empty($slide_desc_color)):
|
106 |
+
$output_css .=" .avitech-theme .main-slider .theme-content p, .varuda-theme .main-slider .theme-content p{
|
107 |
color: " .esc_attr($slide_desc_color). ";
|
108 |
}\n";
|
109 |
endif;
|
inc/avril/extras.php
CHANGED
@@ -44,7 +44,7 @@ function avril_get_social_icon_default() {
|
|
44 |
* Slider Default
|
45 |
*/
|
46 |
|
47 |
-
if( 'Avitech' == $theme->name){
|
48 |
function avril_get_slider_default() {
|
49 |
return apply_filters(
|
50 |
'avril_get_slider_default', json_encode(
|
44 |
* Slider Default
|
45 |
*/
|
46 |
|
47 |
+
if( 'Avitech' == $theme->name || 'Varuda' == $theme->name){
|
48 |
function avril_get_slider_default() {
|
49 |
return apply_filters(
|
50 |
'avril_get_slider_default', json_encode(
|
inc/cleverfox-activator.php
CHANGED
@@ -124,6 +124,12 @@ class Cleverfox_Activator {
|
|
124 |
require CLEVERFOX_PLUGIN_DIR . 'inc/ampark/default-widgets/default-widget.php';
|
125 |
}
|
126 |
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
if ( 'Fiona Blog' == $theme->name || 'Fiona Food' == $theme->name || 'Fiona News' == $theme->name){
|
128 |
require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-pages/upload-media.php';
|
129 |
require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-pages/home-page.php';
|
124 |
require CLEVERFOX_PLUGIN_DIR . 'inc/ampark/default-widgets/default-widget.php';
|
125 |
}
|
126 |
|
127 |
+
if ( 'Varuda' == $theme->name){
|
128 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/varuda/default-pages/upload-media.php';
|
129 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/varuda/default-pages/home-page.php';
|
130 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/varuda/default-widgets/default-widget.php';
|
131 |
+
}
|
132 |
+
|
133 |
if ( 'Fiona Blog' == $theme->name || 'Fiona Food' == $theme->name || 'Fiona News' == $theme->name){
|
134 |
require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-pages/upload-media.php';
|
135 |
require CLEVERFOX_PLUGIN_DIR . 'inc/fiona-blog/default-pages/home-page.php';
|
inc/varuda/default-pages/home-page.php
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
//post status and options
|
3 |
+
$post = array(
|
4 |
+
'comment_status' => 'closed',
|
5 |
+
'ping_status' => 'closed' ,
|
6 |
+
'post_author' => 1,
|
7 |
+
'post_date' => date('Y-m-d H:i:s'),
|
8 |
+
'post_name' => 'Home',
|
9 |
+
'post_status' => 'publish' ,
|
10 |
+
'post_title' => 'Home',
|
11 |
+
'post_type' => 'page',
|
12 |
+
);
|
13 |
+
//insert page and save the id
|
14 |
+
$newvalue = wp_insert_post( $post, false );
|
15 |
+
if ( $newvalue && ! is_wp_error( $newvalue ) ){
|
16 |
+
update_post_meta( $newvalue, '_wp_page_template', 'templates/template-homepage.php' );
|
17 |
+
|
18 |
+
// Use a static front page
|
19 |
+
$page = get_page_by_title('Home');
|
20 |
+
update_option( 'show_on_front', 'page' );
|
21 |
+
update_option( 'page_on_front', $page->ID );
|
22 |
+
|
23 |
+
}
|
24 |
+
?>
|
inc/varuda/default-pages/upload-media.php
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$file = CLEVERFOX_PLUGIN_URL .'inc/varuda/images/logo.png';
|
3 |
+
$ImagePath = CLEVERFOX_PLUGIN_URL .'inc/varuda/images';
|
4 |
+
|
5 |
+
$images = array(
|
6 |
+
$ImagePath. '/logo.png',
|
7 |
+
);
|
8 |
+
$parent_post_id = null;
|
9 |
+
foreach($images as $name) {
|
10 |
+
$filename = basename($name);
|
11 |
+
$upload_file = wp_upload_bits($filename, null, file_get_contents($name));
|
12 |
+
if (!$upload_file['error']) {
|
13 |
+
$wp_filetype = wp_check_filetype($filename, null );
|
14 |
+
$attachment = array(
|
15 |
+
'post_mime_type' => $wp_filetype['type'],
|
16 |
+
'post_parent' => $parent_post_id,
|
17 |
+
'post_title' => preg_replace('/\.[^.]+$/', '', $filename),
|
18 |
+
'post_excerpt' => 'avril caption',
|
19 |
+
'post_status' => 'inherit'
|
20 |
+
);
|
21 |
+
$ImageId[] = $attachment_id = wp_insert_attachment( $attachment, $upload_file['file'], $parent_post_id );
|
22 |
+
|
23 |
+
if (!is_wp_error($attachment_id)) {
|
24 |
+
require_once(ABSPATH . "wp-admin" . '/includes/image.php');
|
25 |
+
$attachment_data = wp_generate_attachment_metadata( $attachment_id, $upload_file['file'] );
|
26 |
+
wp_update_attachment_metadata( $attachment_id, $attachment_data );
|
27 |
+
}
|
28 |
+
}
|
29 |
+
|
30 |
+
}
|
31 |
+
|
32 |
+
update_option( 'avril_media_id', $ImageId );
|
inc/varuda/default-widgets/default-widget.php
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$activate = array(
|
3 |
+
'avril-sidebar-primary' => array(
|
4 |
+
'search-1',
|
5 |
+
'recent-posts-1',
|
6 |
+
'archives-1',
|
7 |
+
),
|
8 |
+
'avril-footer-widget-area' => array(
|
9 |
+
'text-1',
|
10 |
+
'categories-1',
|
11 |
+
'archives-1',
|
12 |
+
'search-1',
|
13 |
+
)
|
14 |
+
);
|
15 |
+
/* the default titles will appear */
|
16 |
+
update_option('widget_text', array(
|
17 |
+
1 => array('title' => '',
|
18 |
+
'text'=>'<div class="footer-logo"><img src="'.CLEVERFOX_PLUGIN_URL.'inc/varuda/images/logo-2.png" alt=""></div>
|
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'),
|
22 |
+
3 => array('title' => 'Categories'),
|
23 |
+
));
|
24 |
+
update_option('widget_categories', array(
|
25 |
+
1 => array('title' => 'Categories'),
|
26 |
+
2 => array('title' => 'Categories')));
|
27 |
+
|
28 |
+
update_option('widget_archives', array(
|
29 |
+
1 => array('title' => 'Archives'),
|
30 |
+
2 => array('title' => 'Archives')));
|
31 |
+
|
32 |
+
update_option('widget_search', array(
|
33 |
+
1 => array('title' => 'Search'),
|
34 |
+
2 => array('title' => 'Search')));
|
35 |
+
|
36 |
+
update_option('sidebars_widgets', $activate);
|
37 |
+
$MediaId = get_option('avril_media_id');
|
38 |
+
set_theme_mod( 'custom_logo', $MediaId[0] );
|
inc/varuda/images/logo-2.png
ADDED
Binary file
|
inc/varuda/images/logo.png
ADDED
Binary file
|
inc/varuda/varuda.php
CHANGED
@@ -10,14 +10,15 @@ require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-header.php';
|
|
10 |
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-features.php';
|
11 |
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-info.php';
|
12 |
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-service.php';
|
13 |
-
require CLEVERFOX_PLUGIN_DIR . 'inc/
|
|
|
14 |
require CLEVERFOX_PLUGIN_DIR . 'inc/axtria/features/avril-team.php';
|
15 |
require CLEVERFOX_PLUGIN_DIR . 'inc/axtria/features/avril-funfact.php';
|
16 |
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-typography.php';
|
17 |
|
18 |
if ( ! function_exists( 'cleverfox_avril_frontpage_sections' ) ) :
|
19 |
function cleverfox_avril_frontpage_sections() {
|
20 |
-
require CLEVERFOX_PLUGIN_DIR . 'inc/
|
21 |
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-info.php';
|
22 |
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-service.php';
|
23 |
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-features.php';
|
10 |
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-features.php';
|
11 |
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-info.php';
|
12 |
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-service.php';
|
13 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/aera/features/aera-slider.php';
|
14 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avitech/features/avitech-slider.php';
|
15 |
require CLEVERFOX_PLUGIN_DIR . 'inc/axtria/features/avril-team.php';
|
16 |
require CLEVERFOX_PLUGIN_DIR . 'inc/axtria/features/avril-funfact.php';
|
17 |
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/features/avril-typography.php';
|
18 |
|
19 |
if ( ! function_exists( 'cleverfox_avril_frontpage_sections' ) ) :
|
20 |
function cleverfox_avril_frontpage_sections() {
|
21 |
+
require CLEVERFOX_PLUGIN_DIR . 'inc/avitech/sections/section-slider.php';
|
22 |
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-info.php';
|
23 |
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-service.php';
|
24 |
require CLEVERFOX_PLUGIN_DIR . 'inc/avril/sections/section-features.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: 6.0
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 15.
|
8 |
License: GPLv3 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
|
10 |
|
@@ -136,6 +136,9 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
|
|
136 |
|
137 |
== Changelog ==
|
138 |
|
|
|
|
|
|
|
139 |
= 15.1 =
|
140 |
* Varuda Theme Files Added
|
141 |
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 6.0
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 15.2
|
8 |
License: GPLv3 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
|
10 |
|
136 |
|
137 |
== Changelog ==
|
138 |
|
139 |
+
= 15.2 =
|
140 |
+
* Varuda Theme Files Added
|
141 |
+
|
142 |
= 15.1 =
|
143 |
* Varuda Theme Files Added
|
144 |
|