Clever Fox - Version 5.2

Version Description

  • Fiona Theme Functionality Improved
  • Fiona Sections Hide Show Settings Added
Download this release

Release Info

Developer nayrathemes
Plugin Icon 128x128 Clever Fox
Version 5.2
Comparing to
See all releases

Code changes from version 5.1 to 5.2

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 40000+ trusted websites with us. Clever Fox contains all features which are required to create a complete website. See below free themes.
6
- Version: 5.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: Clever Fox plugin to enhance the functionality of free themes made by Nayra Themes. More than 40000+ trusted websites with us. Clever Fox contains all features which are required to create a complete website. See below free themes.
6
+ Version: 5.2
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
inc/fiona-blog/features/fiona-blog-slider.php CHANGED
@@ -13,6 +13,45 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
13
  )
14
  );
15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  // slider Contents
17
  $wp_customize->add_setting(
18
  'slider_content_head'
@@ -38,7 +77,7 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
38
  array(
39
  'capability' => 'edit_theme_options',
40
  'priority' => 5,
41
- 'sanitize_callback' => 'absint',
42
  )
43
  );
44
  $wp_customize->add_control( new Fiona_Blog_Category_Dropdown_Control( $wp_customize,
13
  )
14
  );
15
 
16
+ // Head
17
+ $wp_customize->add_setting(
18
+ 'slider_setting_head'
19
+ ,array(
20
+ 'capability' => 'edit_theme_options',
21
+ 'sanitize_callback' => 'fiona_blog_sanitize_text',
22
+ 'priority' => 1,
23
+ )
24
+ );
25
+
26
+ $wp_customize->add_control(
27
+ 'slider_setting_head',
28
+ array(
29
+ 'type' => 'hidden',
30
+ 'label' => __('Setting','fiona-blog'),
31
+ 'section' => 'slider_setting',
32
+ )
33
+ );
34
+
35
+ // Hide / Show
36
+ $wp_customize->add_setting(
37
+ 'slider_hs'
38
+ ,array(
39
+ 'default' => '1',
40
+ 'capability' => 'edit_theme_options',
41
+ 'sanitize_callback' => 'fiona_blog_sanitize_checkbox',
42
+ 'priority' => 2,
43
+ )
44
+ );
45
+
46
+ $wp_customize->add_control(
47
+ 'slider_hs',
48
+ array(
49
+ 'type' => 'checkbox',
50
+ 'label' => __('Hide / Show','fiona-blog'),
51
+ 'section' => 'slider_setting',
52
+ )
53
+ );
54
+
55
  // slider Contents
56
  $wp_customize->add_setting(
57
  'slider_content_head'
77
  array(
78
  'capability' => 'edit_theme_options',
79
  'priority' => 5,
80
+ 'sanitize_callback' => 'fiona_blog_sanitize_text',
81
  )
82
  );
83
  $wp_customize->add_control( new Fiona_Blog_Category_Dropdown_Control( $wp_customize,
inc/fiona-blog/features/fiona-blog-weekend-top.php CHANGED
@@ -12,6 +12,45 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
12
  )
13
  );
14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  // Contents
16
  $wp_customize->add_setting(
17
  'section7_content_head'
@@ -57,7 +96,7 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
57
  array(
58
  'capability' => 'edit_theme_options',
59
  'priority' => 5,
60
- //'sanitize_callback' => 'fiona_blog_sanitize_text',
61
  )
62
  );
63
  $wp_customize->add_control( new Fiona_Blog_Category_Dropdown_Control( $wp_customize,
12
  )
13
  );
14
 
15
+ // Head
16
+ $wp_customize->add_setting(
17
+ 'section7_setting_head'
18
+ ,array(
19
+ 'capability' => 'edit_theme_options',
20
+ 'sanitize_callback' => 'fiona_blog_sanitize_text',
21
+ 'priority' => 1,
22
+ )
23
+ );
24
+
25
+ $wp_customize->add_control(
26
+ 'section7_setting_head',
27
+ array(
28
+ 'type' => 'hidden',
29
+ 'label' => __('Setting','fiona-blog'),
30
+ 'section' => 'section7_setting',
31
+ )
32
+ );
33
+
34
+ // Hide / Show
35
+ $wp_customize->add_setting(
36
+ 'section7_hs'
37
+ ,array(
38
+ 'default' => '1',
39
+ 'capability' => 'edit_theme_options',
40
+ 'sanitize_callback' => 'fiona_blog_sanitize_checkbox',
41
+ 'priority' => 2,
42
+ )
43
+ );
44
+
45
+ $wp_customize->add_control(
46
+ 'section7_hs',
47
+ array(
48
+ 'type' => 'checkbox',
49
+ 'label' => __('Hide / Show','fiona-blog'),
50
+ 'section' => 'section7_setting',
51
+ )
52
+ );
53
+
54
  // Contents
55
  $wp_customize->add_setting(
56
  'section7_content_head'
96
  array(
97
  'capability' => 'edit_theme_options',
98
  'priority' => 5,
99
+ 'sanitize_callback' => 'fiona_blog_sanitize_text',
100
  )
101
  );
102
  $wp_customize->add_control( new Fiona_Blog_Category_Dropdown_Control( $wp_customize,
inc/fiona-blog/sections/section-slider.php CHANGED
@@ -1,12 +1,14 @@
1
  <?php
2
  if ( ! function_exists( 'fiona_blog_slider' ) ) :
3
  function fiona_blog_slider() {
4
- $slider_category_id = absint(get_theme_mod('slider_category_id'));
 
 
5
  ?>
6
  <section id="slider-section" class="slider-wrapper section-9">
7
  <div class="main02 main-slider">
8
  <?php
9
- $args = array( 'post_type' => 'post', 'category__in' => $slider_category_id,'posts_per_page' => 3,'post__not_in'=>get_option("sticky_posts")) ;
10
  query_posts( $args );
11
  if(query_posts( $args ))
12
  {
@@ -57,7 +59,7 @@
57
  <div class="customize-tools">
58
  <ul class="main-slider-thumbnails" id="customize-thumbnails">
59
  <?php
60
- $args = array( 'post_type' => 'post', 'category__in' => $slider_category_id,'post__not_in'=>get_option("sticky_posts")) ;
61
  query_posts( $args );
62
  if(query_posts( $args ))
63
  {
@@ -75,5 +77,5 @@
75
  </div>
76
  </section>
77
  <?php
78
- } endif;
79
  add_action('fiona_blog_slider', 'fiona_blog_slider');
1
  <?php
2
  if ( ! function_exists( 'fiona_blog_slider' ) ) :
3
  function fiona_blog_slider() {
4
+ $slider_hs = get_theme_mod('slider_hs','1');
5
+ $slider_category_id = get_theme_mod('slider_category_id');
6
+ if($slider_hs == '1'){
7
  ?>
8
  <section id="slider-section" class="slider-wrapper section-9">
9
  <div class="main02 main-slider">
10
  <?php
11
+ $args = array( 'post_type' => 'post', 'category_name' => $slider_category_id,'posts_per_page' => 3,'post__not_in'=>get_option("sticky_posts")) ;
12
  query_posts( $args );
13
  if(query_posts( $args ))
14
  {
59
  <div class="customize-tools">
60
  <ul class="main-slider-thumbnails" id="customize-thumbnails">
61
  <?php
62
+ $args = array( 'post_type' => 'post', 'category_name' => $slider_category_id,'post__not_in'=>get_option("sticky_posts")) ;
63
  query_posts( $args );
64
  if(query_posts( $args ))
65
  {
77
  </div>
78
  </section>
79
  <?php
80
+ }} endif;
81
  add_action('fiona_blog_slider', 'fiona_blog_slider');
inc/fiona-blog/sections/section-weekend-top.php CHANGED
@@ -1,9 +1,11 @@
1
  <?php
2
  if ( ! function_exists( 'fiona_blog_lite_weekend_top' ) ) :
3
  function fiona_blog_lite_weekend_top() {
 
4
  $section7_category_id = get_theme_mod('section7_category_id');
5
  $section7_title = get_theme_mod('section7_title','Weekend Top');
6
  $section7_display_num = get_theme_mod('section7_display_num','4');
 
7
  ?>
8
 
9
  <!--===// Start: Section 2
@@ -20,11 +22,14 @@
20
  <?php endif; ?>
21
  <div class="av-columns-area wow fadeInUp">
22
  <?php
23
- $args = array( 'post_type' => 'post', 'category__in' => $section7_category_id,'posts_per_page' => $section7_display_num,'post__not_in'=>get_option("sticky_posts"));
24
- query_posts( $args );
25
- if(query_posts( $args )) {
26
- while(have_posts()):the_post();
 
 
27
  $post_id = get_the_ID();
 
28
  $format = get_post_format() ? : 'standard';
29
  ?>
30
  <div class="av-column-6 mb-6">
@@ -37,7 +42,7 @@
37
  <span class="post-format">
38
  <div class="post-shape">
39
  <div class="post-icon">
40
- <?php echo $post_id ?>
41
  </div>
42
  </div>
43
  </span>
@@ -58,7 +63,7 @@
58
  <span class="post-format">
59
  <div class="post-shape">
60
  <div class="post-icon">
61
- 1
62
  </div>
63
  </div>
64
  </span>
@@ -85,7 +90,7 @@
85
  </div>
86
  </div>
87
  <?php
88
- }
89
  endif;
90
  if ( function_exists( 'fiona_blog_lite_weekend_top' ) ) {
91
  $section_priority = apply_filters( 'fiona_blog_section_priority', 11, 'fiona_blog_lite_weekend_top' );
1
  <?php
2
  if ( ! function_exists( 'fiona_blog_lite_weekend_top' ) ) :
3
  function fiona_blog_lite_weekend_top() {
4
+ $section7_hs = get_theme_mod('section7_hs','1');
5
  $section7_category_id = get_theme_mod('section7_category_id');
6
  $section7_title = get_theme_mod('section7_title','Weekend Top');
7
  $section7_display_num = get_theme_mod('section7_display_num','4');
8
+ if($section7_hs == '1'){
9
  ?>
10
 
11
  <!--===// Start: Section 2
22
  <?php endif; ?>
23
  <div class="av-columns-area wow fadeInUp">
24
  <?php
25
+ $fiona_blog_blog_args = array( 'post_type' => 'post', 'category_name' => $section7_category_id,'posts_per_page' => $section7_display_num,'post__not_in'=>get_option("sticky_posts"));
26
+ query_posts( $fiona_blog_blog_args );
27
+ $fiona_blog_wp_query = new WP_Query($fiona_blog_blog_args);
28
+ if($fiona_blog_wp_query)
29
+ {
30
+ while($fiona_blog_wp_query->have_posts()):$fiona_blog_wp_query->the_post();
31
  $post_id = get_the_ID();
32
+ $post_number= $fiona_blog_wp_query->current_post + 1;
33
  $format = get_post_format() ? : 'standard';
34
  ?>
35
  <div class="av-column-6 mb-6">
42
  <span class="post-format">
43
  <div class="post-shape">
44
  <div class="post-icon">
45
+ <?php echo $post_number ?>
46
  </div>
47
  </div>
48
  </span>
63
  <span class="post-format">
64
  <div class="post-shape">
65
  <div class="post-icon">
66
+ <?php echo $post_number ?>
67
  </div>
68
  </div>
69
  </span>
90
  </div>
91
  </div>
92
  <?php
93
+ }}
94
  endif;
95
  if ( function_exists( 'fiona_blog_lite_weekend_top' ) ) {
96
  $section_priority = apply_filters( 'fiona_blog_section_priority', 11, 'fiona_blog_lite_weekend_top' );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: demo, sections, customizer, widget, settings
4
  Requires at least: 4.0
5
  Tested up to: 5.7.1
6
  Requires PHP: 5.6
7
- Stable tag: 5.1
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
@@ -91,6 +91,10 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
91
 
92
  == Changelog ==
93
 
 
 
 
 
94
  = 5.1 =
95
  * Fiona Upsale Links Added
96
  * Readme Updated
4
  Requires at least: 4.0
5
  Tested up to: 5.7.1
6
  Requires PHP: 5.6
7
+ Stable tag: 5.2
8
  License: GPLv3 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
10
 
91
 
92
  == Changelog ==
93
 
94
+ = 5.2 =
95
+ * Fiona Theme Functionality Improved
96
+ * Fiona Sections Hide Show Settings Added
97
+
98
  = 5.1 =
99
  * Fiona Upsale Links Added
100
  * Readme Updated