Version Description
- Avril Theme Functionality Improved
- Tested With WordPress 5.5.3
Download this release
Release Info
Developer | nayrathemes |
Plugin | Clever Fox |
Version | 1.9 |
Comparing to | |
See all releases |
Code changes from version 1.8 to 1.9
- clever-fox.php +1 -1
- inc/avril/dynamic-style.php +2 -2
- inc/avril/features/avril-typography.php +17 -11
- inc/avril/sections/section-slider.php +2 -2
- readme.txt +5 -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: 1.
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
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.9
|
7 |
Author: nayrathemes
|
8 |
Author URI: https://nayrathemes.com
|
9 |
Text Domain: clever-fox
|
inc/avril/dynamic-style.php
CHANGED
@@ -19,8 +19,8 @@ if( ! function_exists( 'cleverfox_avril_dynamic_styles' ) ):
|
|
19 |
*/
|
20 |
$avril_body_text_transform = get_theme_mod('avril_body_text_transform','inherit');
|
21 |
$avril_body_font_style = get_theme_mod('avril_body_font_style','inherit');
|
22 |
-
$avril_body_font_size = get_theme_mod('avril_body_font_size');
|
23 |
-
$avril_body_line_height = get_theme_mod('avril_body_line_height');
|
24 |
|
25 |
$output_css .=" body{
|
26 |
font-size: " .esc_attr($avril_body_font_size). "px;
|
19 |
*/
|
20 |
$avril_body_text_transform = get_theme_mod('avril_body_text_transform','inherit');
|
21 |
$avril_body_font_style = get_theme_mod('avril_body_font_style','inherit');
|
22 |
+
$avril_body_font_size = get_theme_mod('avril_body_font_size','15');
|
23 |
+
$avril_body_line_height = get_theme_mod('avril_body_line_height','1.5');
|
24 |
|
25 |
$output_css .=" body{
|
26 |
font-size: " .esc_attr($avril_body_font_size). "px;
|
inc/avril/features/avril-typography.php
CHANGED
@@ -26,6 +26,7 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
26 |
$wp_customize->add_setting(
|
27 |
'avril_body_font_size',
|
28 |
array(
|
|
|
29 |
'capability' => 'edit_theme_options',
|
30 |
'sanitize_callback' => 'avril_sanitize_range_value',
|
31 |
'transport' => 'postMessage',
|
@@ -37,11 +38,12 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
37 |
'label' => __( 'Size', 'avril' ),
|
38 |
'section' => 'avril_typography',
|
39 |
'priority' => 2,
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
|
|
45 |
) )
|
46 |
);
|
47 |
}
|
@@ -51,6 +53,7 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
51 |
$wp_customize->add_setting(
|
52 |
'avril_body_line_height',
|
53 |
array(
|
|
|
54 |
'capability' => 'edit_theme_options',
|
55 |
'sanitize_callback' => 'avril_sanitize_range_value',
|
56 |
'transport' => 'postMessage',
|
@@ -62,11 +65,12 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
62 |
'label' => __( 'Line Height', 'avril' ),
|
63 |
'section' => 'avril_typography',
|
64 |
'priority' => 3,
|
65 |
-
'
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
|
|
70 |
) )
|
71 |
);
|
72 |
}
|
@@ -158,6 +162,7 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
158 |
$wp_customize->add_setting(
|
159 |
'avril_h' . $i . '_font_size',
|
160 |
array(
|
|
|
161 |
'capability' => 'edit_theme_options',
|
162 |
'sanitize_callback' => 'avril_sanitize_range_value',
|
163 |
'transport' => 'postMessage'
|
@@ -182,6 +187,7 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
182 |
$wp_customize->add_setting(
|
183 |
'avril_h' . $i . '_line_height',
|
184 |
array(
|
|
|
185 |
'capability' => 'edit_theme_options',
|
186 |
'sanitize_callback' => 'avril_sanitize_range_value',
|
187 |
'transport' => 'postMessage',
|
@@ -194,7 +200,7 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
194 |
'section' => 'avril_headings_typography',
|
195 |
'input_attrs' => array(
|
196 |
'min' => 0,
|
197 |
-
'max' =>
|
198 |
'step' => 0.1,
|
199 |
//'suffix' => 'px', //optional suffix
|
200 |
),
|
26 |
$wp_customize->add_setting(
|
27 |
'avril_body_font_size',
|
28 |
array(
|
29 |
+
'default' => '15',
|
30 |
'capability' => 'edit_theme_options',
|
31 |
'sanitize_callback' => 'avril_sanitize_range_value',
|
32 |
'transport' => 'postMessage',
|
38 |
'label' => __( 'Size', 'avril' ),
|
39 |
'section' => 'avril_typography',
|
40 |
'priority' => 2,
|
41 |
+
'input_attrs' => array(
|
42 |
+
'min' => 0,
|
43 |
+
'max' => 50,
|
44 |
+
'step' => 1,
|
45 |
+
//'suffix' => 'px', //optional suffix
|
46 |
+
),
|
47 |
) )
|
48 |
);
|
49 |
}
|
53 |
$wp_customize->add_setting(
|
54 |
'avril_body_line_height',
|
55 |
array(
|
56 |
+
'default' => '1.5',
|
57 |
'capability' => 'edit_theme_options',
|
58 |
'sanitize_callback' => 'avril_sanitize_range_value',
|
59 |
'transport' => 'postMessage',
|
65 |
'label' => __( 'Line Height', 'avril' ),
|
66 |
'section' => 'avril_typography',
|
67 |
'priority' => 3,
|
68 |
+
'input_attrs' => array(
|
69 |
+
'min' => 0,
|
70 |
+
'max' => 4,
|
71 |
+
'step' => 0.1,
|
72 |
+
//'suffix' => 'px', //optional suffix
|
73 |
+
),
|
74 |
) )
|
75 |
);
|
76 |
}
|
162 |
$wp_customize->add_setting(
|
163 |
'avril_h' . $i . '_font_size',
|
164 |
array(
|
165 |
+
'default' => $j,
|
166 |
'capability' => 'edit_theme_options',
|
167 |
'sanitize_callback' => 'avril_sanitize_range_value',
|
168 |
'transport' => 'postMessage'
|
187 |
$wp_customize->add_setting(
|
188 |
'avril_h' . $i . '_line_height',
|
189 |
array(
|
190 |
+
'default' => '1.2',
|
191 |
'capability' => 'edit_theme_options',
|
192 |
'sanitize_callback' => 'avril_sanitize_range_value',
|
193 |
'transport' => 'postMessage',
|
200 |
'section' => 'avril_headings_typography',
|
201 |
'input_attrs' => array(
|
202 |
'min' => 0,
|
203 |
+
'max' => 4,
|
204 |
'step' => 0.1,
|
205 |
//'suffix' => 'px', //optional suffix
|
206 |
),
|
inc/avril/sections/section-slider.php
CHANGED
@@ -15,7 +15,7 @@ if ( ! function_exists( 'avril_lite_slider' ) ) :
|
|
15 |
$subtitle = ! empty( $slide_item->subtitle ) ? apply_filters( 'avril_translate_single_string', $slide_item->subtitle, 'slider section' ) : '';
|
16 |
$text = ! empty( $slide_item->text ) ? apply_filters( 'avril_translate_single_string', $slide_item->text, 'slider section' ) : '';
|
17 |
$button = ! empty( $slide_item->text2) ? apply_filters( 'avril_translate_single_string', $slide_item->text2,'slider section' ) : '';
|
18 |
-
$
|
19 |
$image = ! empty( $slide_item->image_url ) ? apply_filters( 'avril_translate_single_string', $slide_item->image_url, 'slider section' ) : '';
|
20 |
$open_new_tab = ! empty( $slide_item->open_new_tab ) ? apply_filters( 'avril_translate_single_string', $slide_item->open_new_tab, 'slider section' ) : '';
|
21 |
//$align = $slide_item->slide_align;
|
@@ -42,7 +42,7 @@ if ( ! function_exists( 'avril_lite_slider' ) ) :
|
|
42 |
<p data-animation="fadeInLeft" data-delay="500ms"><?php echo esc_html( $text ); ?></p>
|
43 |
<?php endif; ?>
|
44 |
<?php if ( ! empty( $button ) ) : ?>
|
45 |
-
<a data-animation="fadeInUp" data-delay="800ms" href="<?php echo esc_url( $
|
46 |
<?php endif; ?>
|
47 |
</div>
|
48 |
</div>
|
15 |
$subtitle = ! empty( $slide_item->subtitle ) ? apply_filters( 'avril_translate_single_string', $slide_item->subtitle, 'slider section' ) : '';
|
16 |
$text = ! empty( $slide_item->text ) ? apply_filters( 'avril_translate_single_string', $slide_item->text, 'slider section' ) : '';
|
17 |
$button = ! empty( $slide_item->text2) ? apply_filters( 'avril_translate_single_string', $slide_item->text2,'slider section' ) : '';
|
18 |
+
$link = ! empty( $slide_item->link ) ? apply_filters( 'avril_translate_single_string', $slide_item->link, 'slider section' ) : '';
|
19 |
$image = ! empty( $slide_item->image_url ) ? apply_filters( 'avril_translate_single_string', $slide_item->image_url, 'slider section' ) : '';
|
20 |
$open_new_tab = ! empty( $slide_item->open_new_tab ) ? apply_filters( 'avril_translate_single_string', $slide_item->open_new_tab, 'slider section' ) : '';
|
21 |
//$align = $slide_item->slide_align;
|
42 |
<p data-animation="fadeInLeft" data-delay="500ms"><?php echo esc_html( $text ); ?></p>
|
43 |
<?php endif; ?>
|
44 |
<?php if ( ! empty( $button ) ) : ?>
|
45 |
+
<a data-animation="fadeInUp" data-delay="800ms" href="<?php echo esc_url( $link ); ?>" <?php if($open_new_tab== 'yes' || $open_new_tab== '1') { echo "target='_blank'"; } ?> class="av-btn av-btn-primary"><?php echo esc_html( $button ); ?></a>
|
46 |
<?php endif; ?>
|
47 |
</div>
|
48 |
</div>
|
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.5.
|
6 |
License: GPLv3 or later
|
7 |
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
|
8 |
|
@@ -42,6 +42,10 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
|
|
42 |
|
43 |
== Changelog ==
|
44 |
|
|
|
|
|
|
|
|
|
45 |
= 1.8 =
|
46 |
* Azwa Theme Functionality Added
|
47 |
* Avril Upsale Links Added
|
2 |
Contributors: nayrathemes
|
3 |
Tags: startkit, startbiz, arowana, envira, hantus, conceptly
|
4 |
Requires at least: 4.0
|
5 |
+
Tested up to: 5.5.3
|
6 |
License: GPLv3 or later
|
7 |
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
|
8 |
|
42 |
|
43 |
== Changelog ==
|
44 |
|
45 |
+
= 1.9 =
|
46 |
+
* Avril Theme Functionality Improved
|
47 |
+
* Tested With WordPress 5.5.3
|
48 |
+
|
49 |
= 1.8 =
|
50 |
* Azwa Theme Functionality Added
|
51 |
* Avril Upsale Links Added
|