Clever Fox - Version 1.1.26

Version Description

  • Code Improvement
Download this release

Release Info

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

Code changes from version 1.1.25 to 1.1.26

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.1.25
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.1.26
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
inc/arowana/sections/section-service.php CHANGED
@@ -48,18 +48,16 @@
48
 
49
  ?>
50
  <?php
51
- $default_content = startkit_get_service_default();
52
- $hide_show_service = get_theme_mod('hide_show_service','1');
53
- $service_title = get_theme_mod('service_title','Services');
54
- $service_description= get_theme_mod('service_description','Publishing packages and web page editors now use Lorem Ipsum as their default model text');
55
- $service_contents = get_theme_mod('service_contents',$default_content);
56
  ?>
 
57
  <section id="services" class="section-padding">
58
- <?php if($hide_show_service == '1') {?>
59
  <div class="container">
60
  <?php
61
-
62
-
63
  if( ($service_title) || ($service_description)!='' ) { ?>
64
  <!-- Section Title -->
65
 
@@ -123,13 +121,10 @@
123
  </div>
124
  </section>
125
  <?php
126
- }
127
- }
128
-
129
  endif;
130
  if ( function_exists( 'startkit_service_plu' ) ) {
131
  $section_priority = apply_filters( 'startkit_section_priority', 13, 'startkit_service_plu' );
132
  add_action( 'startkit_sections', 'startkit_service_plu', absint( $section_priority ) );
133
-
134
  }
135
  ?>
48
 
49
  ?>
50
  <?php
51
+ $default_content = startkit_get_service_default();
52
+ $hide_show_service = get_theme_mod('hide_show_service','1');
53
+ $service_title = get_theme_mod('service_title','Services');
54
+ $service_description= get_theme_mod('service_description','Publishing packages and web page editors now use Lorem Ipsum as their default model text');
55
+ $service_contents = get_theme_mod('service_contents',$default_content);
56
  ?>
57
+ <?php if($hide_show_service == '1') {?>
58
  <section id="services" class="section-padding">
 
59
  <div class="container">
60
  <?php
 
 
61
  if( ($service_title) || ($service_description)!='' ) { ?>
62
  <!-- Section Title -->
63
 
121
  </div>
122
  </section>
123
  <?php
124
+ }}
 
 
125
  endif;
126
  if ( function_exists( 'startkit_service_plu' ) ) {
127
  $section_priority = apply_filters( 'startkit_section_priority', 13, 'startkit_service_plu' );
128
  add_action( 'startkit_sections', 'startkit_service_plu', absint( $section_priority ) );
 
129
  }
130
  ?>
inc/envira/sections/section-funfact.php CHANGED
@@ -53,8 +53,7 @@
53
  $hide_show_funfact = get_theme_mod('hide_show_funfact','1');
54
  $funfact_contents = get_theme_mod('funfact_contents',$default_content);
55
  $funfact_background_setting = get_theme_mod('funfact_background_setting',CLEVERFOX_PLUGIN_URL . 'inc/envira/images/factbg.jpg');
56
- $funfact_background_position= get_theme_mod('funfact_background_position','fixed');
57
-
58
  if($hide_show_funfact == '1') {
59
  ?>
60
  <?php if ( ! empty( $funfact_background_setting ) ) { ?>
@@ -100,13 +99,10 @@
100
  </section>
101
  </section>
102
  <?php
103
- }
104
- }
105
-
106
  endif;
107
  if ( function_exists( 'startkit_funfact_plu' ) ) {
108
  $section_priority = apply_filters( 'startkit_section_priority', 13, 'startkit_funfact_plu' );
109
  add_action( 'startkit_sections', 'startkit_funfact_plu', absint( $section_priority ) );
110
-
111
  }
112
  ?>
53
  $hide_show_funfact = get_theme_mod('hide_show_funfact','1');
54
  $funfact_contents = get_theme_mod('funfact_contents',$default_content);
55
  $funfact_background_setting = get_theme_mod('funfact_background_setting',CLEVERFOX_PLUGIN_URL . 'inc/envira/images/factbg.jpg');
56
+ $funfact_background_position= get_theme_mod('funfact_background_position','fixed');
 
57
  if($hide_show_funfact == '1') {
58
  ?>
59
  <?php if ( ! empty( $funfact_background_setting ) ) { ?>
99
  </section>
100
  </section>
101
  <?php
102
+ }}
 
 
103
  endif;
104
  if ( function_exists( 'startkit_funfact_plu' ) ) {
105
  $section_priority = apply_filters( 'startkit_section_priority', 13, 'startkit_funfact_plu' );
106
  add_action( 'startkit_sections', 'startkit_funfact_plu', absint( $section_priority ) );
 
107
  }
108
  ?>
inc/startbiz/sections/section-service.php CHANGED
@@ -48,14 +48,14 @@
48
 
49
  ?>
50
  <?php
51
- $default_content = startkit_get_service_default();
52
- $hide_show_service = get_theme_mod('hide_show_service','1');
53
- $service_title = get_theme_mod('service_title','Services');
54
- $service_description= get_theme_mod('service_description','Publishing packages and web page editors now use Lorem Ipsum as their default model text');
55
- $service_contents = get_theme_mod('service_contents',$default_content);
56
  ?>
 
57
  <section id="services" class="section-padding">
58
- <?php if($hide_show_service == '1') {?>
59
  <div class="container">
60
  <?php
61
 
@@ -123,9 +123,7 @@
123
  </div>
124
  </section>
125
  <?php
126
- }
127
- }
128
-
129
  endif;
130
  if ( function_exists( 'startkit_service_plu' ) ) {
131
  $section_priority = apply_filters( 'startkit_section_priority', 13, 'startkit_service_plu' );
48
 
49
  ?>
50
  <?php
51
+ $default_content = startkit_get_service_default();
52
+ $hide_show_service = get_theme_mod('hide_show_service','1');
53
+ $service_title = get_theme_mod('service_title','Services');
54
+ $service_description= get_theme_mod('service_description','Publishing packages and web page editors now use Lorem Ipsum as their default model text');
55
+ $service_contents = get_theme_mod('service_contents',$default_content);
56
  ?>
57
+ <?php if($hide_show_service == '1') {?>
58
  <section id="services" class="section-padding">
 
59
  <div class="container">
60
  <?php
61
 
123
  </div>
124
  </section>
125
  <?php
126
+ }}
 
 
127
  endif;
128
  if ( function_exists( 'startkit_service_plu' ) ) {
129
  $section_priority = apply_filters( 'startkit_section_priority', 13, 'startkit_service_plu' );
inc/startbiz/sections/section-slider.php CHANGED
@@ -20,65 +20,65 @@ if ( ! function_exists( 'start_startkit_slider' ) ) :
20
  )
21
  );
22
  }
23
- $default_content = startkit_get_slider_default();
24
- $slider = get_theme_mod('slider',$default_content);
25
- $slider_opacity = get_theme_mod('slider_opacity','0.3');
26
- $hide_show_slider = get_theme_mod('hide_show_slider','1');
27
-
28
- if($hide_show_slider == '1') {
29
- ?>
30
- <div class="row" id="lite-slite">
31
- <div class="col-md-12">
32
- <div class="header-slider">
33
- <?php
34
- if ( ! empty( $slider ) ) {
35
- $allowed_html = array(
36
- 'br' => array(),
37
- 'em' => array(),
38
- 'strong' => array(),
39
- 'b' => array(),
40
- 'i' => array(),
41
- );
42
- $slider = json_decode( $slider );
43
- foreach ( $slider as $slide_item ) {
44
- $title = ! empty( $slide_item->title ) ? apply_filters( 'startkit_translate_single_string', $slide_item->title, 'slider section' ) : '';
45
- $text = ! empty( $slide_item->text ) ? apply_filters( 'startkit_translate_single_string', $slide_item->text, 'slider section' ) : '';
46
- $button = ! empty( $slide_item->text2) ? apply_filters( 'startkit_translate_single_string', $slide_item->text2,'Learn More' ) : 'Read More';
47
- $link = ! empty( $slide_item->link ) ? apply_filters( 'startkit_translate_single_string', $slide_item->link, 'slider section' ) : '';
48
- $image = ! empty( $slide_item->image_url ) ? apply_filters( 'startkit_translate_single_string', $slide_item->image_url, 'slider section' ) : '';
49
- ?>
50
- <div class="header-single-slider">
51
- <figure>
52
- <?php if ( ! empty( $image ) ) : ?>
53
- <img src="<?php echo esc_url( $image ); ?>" <?php if ( ! empty( $title ) ) : ?> alt="<?php echo esc_attr( $title ); ?>" title="<?php echo esc_attr( $title ); ?>" <?php endif; ?> />
54
- <?php endif; ?>
55
- <div class="content" style="background: rgba(35, 48, 73,<?php echo $slider_opacity; ?>);">
56
- <div class="slide-table">
57
- <div class="slide-table-cell">
58
- <div class="container">
59
- <div class="slide-content slide-center slide-bg-line delay-0 fadeIn animated" >
60
- <?php if ( ! empty( $title ) ) : ?>
61
- <h1 class="fadeInDown delay-1 animated"><?php echo esc_html( $title ); ?></h1>
62
- <?php endif; ?>
63
- <?php if ( ! empty( $text ) ) : ?>
64
- <p class="fadeInDown delay-2 animated"><?php echo esc_html( $text ); ?></p>
65
- <?php endif; ?>
66
- <a href="<?php echo esc_url( $link ); ?>" class="boxed-btn fadeInDown delay-2 animated"><?php echo esc_html( $button ); ?><i class="icofont icofont-long-arrow-right"></i></a>
67
- </div>
68
- </div>
69
  </div>
70
  </div>
71
  </div>
72
- </figure>
73
- </div>
74
- <?php }} ?>
75
- </div>
76
- </div>
77
- </div>
78
- <?php } ?>
79
- </header>
80
- <?php
81
- }
 
 
82
  endif;
83
  if ( function_exists( 'start_startkit_slider' ) ) {
84
  $section_priority = apply_filters( 'startkit_section_priority', 11, 'start_startkit_slider' );
20
  )
21
  );
22
  }
23
+ $default_content = startkit_get_slider_default();
24
+ $slider = get_theme_mod('slider',$default_content);
25
+ $slider_opacity = get_theme_mod('slider_opacity','0.3');
26
+ $hide_show_slider = get_theme_mod('hide_show_slider','1');
27
+
28
+ if($hide_show_slider == '1') {
29
+ ?>
30
+ <div class="row" id="lite-slite">
31
+ <div class="col-md-12">
32
+ <div class="header-slider">
33
+ <?php
34
+ if ( ! empty( $slider ) ) {
35
+ $allowed_html = array(
36
+ 'br' => array(),
37
+ 'em' => array(),
38
+ 'strong' => array(),
39
+ 'b' => array(),
40
+ 'i' => array(),
41
+ );
42
+ $slider = json_decode( $slider );
43
+ foreach ( $slider as $slide_item ) {
44
+ $title = ! empty( $slide_item->title ) ? apply_filters( 'startkit_translate_single_string', $slide_item->title, 'slider section' ) : '';
45
+ $text = ! empty( $slide_item->text ) ? apply_filters( 'startkit_translate_single_string', $slide_item->text, 'slider section' ) : '';
46
+ $button = ! empty( $slide_item->text2) ? apply_filters( 'startkit_translate_single_string', $slide_item->text2,'Learn More' ) : 'Read More';
47
+ $link = ! empty( $slide_item->link ) ? apply_filters( 'startkit_translate_single_string', $slide_item->link, 'slider section' ) : '';
48
+ $image = ! empty( $slide_item->image_url ) ? apply_filters( 'startkit_translate_single_string', $slide_item->image_url, 'slider section' ) : '';
49
+ ?>
50
+ <div class="header-single-slider">
51
+ <figure>
52
+ <?php if ( ! empty( $image ) ) : ?>
53
+ <img src="<?php echo esc_url( $image ); ?>" <?php if ( ! empty( $title ) ) : ?> alt="<?php echo esc_attr( $title ); ?>" title="<?php echo esc_attr( $title ); ?>" <?php endif; ?> />
54
+ <?php endif; ?>
55
+ <div class="content" style="background: rgba(35, 48, 73,<?php echo $slider_opacity; ?>);">
56
+ <div class="slide-table">
57
+ <div class="slide-table-cell">
58
+ <div class="container">
59
+ <div class="slide-content slide-center slide-bg-line delay-0 fadeIn animated" >
60
+ <?php if ( ! empty( $title ) ) : ?>
61
+ <h1 class="fadeInDown delay-1 animated"><?php echo esc_html( $title ); ?></h1>
62
+ <?php endif; ?>
63
+ <?php if ( ! empty( $text ) ) : ?>
64
+ <p class="fadeInDown delay-2 animated"><?php echo esc_html( $text ); ?></p>
65
+ <?php endif; ?>
66
+ <a href="<?php echo esc_url( $link ); ?>" class="boxed-btn fadeInDown delay-2 animated"><?php echo esc_html( $button ); ?><i class="icofont icofont-long-arrow-right"></i></a>
 
 
67
  </div>
68
  </div>
69
  </div>
70
+ </div>
71
+ </div>
72
+ </figure>
73
+ </div>
74
+ <?php }} ?>
75
+ </div>
76
+ </div>
77
+ </div>
78
+ <?php } ?>
79
+ </header>
80
+ <?php
81
+ }
82
  endif;
83
  if ( function_exists( 'start_startkit_slider' ) ) {
84
  $section_priority = apply_filters( 'startkit_section_priority', 11, 'start_startkit_slider' );
inc/startkit/sections/section-flash.php CHANGED
@@ -15,7 +15,7 @@ if ( ! function_exists( 'startkit_info_plu' ) ) :
15
  ?>
16
  <!-- Start: Features List
17
  ============================= -->
18
- <?php if($hide_show_info == '1') { ?>
19
  <section id="features-list">
20
  <div class="container">
21
  <div class="row text-lg-left text-md-center">
15
  ?>
16
  <!-- Start: Features List
17
  ============================= -->
18
+ <?php if($hide_show_info == '1') { ?>
19
  <section id="features-list">
20
  <div class="container">
21
  <div class="row text-lg-left text-md-center">
inc/startkit/sections/section-service.php CHANGED
@@ -54,12 +54,10 @@
54
  $service_description= get_theme_mod('service_description','Publishing packages and web page editors now use Lorem Ipsum as their default model text');
55
  $service_contents = get_theme_mod('service_contents',$default_content);
56
  ?>
 
57
  <section id="services" class="section-padding">
58
- <?php if($hide_show_service == '1') {?>
59
  <div class="container">
60
  <?php
61
-
62
-
63
  if( ($service_title) || ($service_description)!='' ) { ?>
64
  <!-- Section Title -->
65
 
54
  $service_description= get_theme_mod('service_description','Publishing packages and web page editors now use Lorem Ipsum as their default model text');
55
  $service_contents = get_theme_mod('service_contents',$default_content);
56
  ?>
57
+ <?php if($hide_show_service == '1') {?>
58
  <section id="services" class="section-padding">
 
59
  <div class="container">
60
  <?php
 
 
61
  if( ($service_title) || ($service_description)!='' ) { ?>
62
  <!-- Section Title -->
63
 
inc/startkit/sections/section-testimonial.php CHANGED
@@ -48,8 +48,8 @@ function startkit_get_testimonial_default() {
48
  $testimonial_description= get_theme_mod('testimonial_description','Publishing packages and web page editors now use Lorem Ipsum as their default model text');
49
  $testimonial_contents = get_theme_mod('testimonial_contents',$default_content);
50
  ?>
 
51
  <section id="testimonial" class="section-padding">
52
- <?php if($hide_show_testimonial) {?>
53
  <div class="container">
54
  <?php if( ($testimonial_title) || ($testimonial_description)!='' ) { ?>
55
  <div class="row">
@@ -110,11 +110,9 @@ function startkit_get_testimonial_default() {
110
  </div>
111
  </div>
112
  </div>
113
- <?php } ?>
114
  </section>
115
  <?php
116
- }
117
-
118
  endif;
119
  if ( function_exists( 'startkit_testimonial_plu' ) ) {
120
  $section_priority = apply_filters( 'startkit_section_priority', 13, 'startkit_testimonial_plu' );
48
  $testimonial_description= get_theme_mod('testimonial_description','Publishing packages and web page editors now use Lorem Ipsum as their default model text');
49
  $testimonial_contents = get_theme_mod('testimonial_contents',$default_content);
50
  ?>
51
+ <?php if($hide_show_testimonial) {?>
52
  <section id="testimonial" class="section-padding">
 
53
  <div class="container">
54
  <?php if( ($testimonial_title) || ($testimonial_description)!='' ) { ?>
55
  <div class="row">
110
  </div>
111
  </div>
112
  </div>
 
113
  </section>
114
  <?php
115
+ }}
 
116
  endif;
117
  if ( function_exists( 'startkit_testimonial_plu' ) ) {
118
  $section_priority = apply_filters( 'startkit_section_priority', 13, 'startkit_testimonial_plu' );
readme.txt CHANGED
@@ -31,6 +31,9 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
31
 
32
 
33
  == Changelog ==
 
 
 
34
  = 1.1.25 =
35
  * Added Link Support in Info Section
36
 
31
 
32
 
33
  == Changelog ==
34
+ = 1.1.26 =
35
+ * Code Improvement
36
+
37
  = 1.1.25 =
38
  * Added Link Support in Info Section
39