Clever Fox - Version 1.1.24

Version Description

  • Change Upgrade to Pro Links According to Themes
Download this release

Release Info

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

Code changes from version 1.1.23 to 1.1.24

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.23
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.24
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
inc/startkit/features/section-service.php CHANGED
@@ -141,8 +141,18 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
141
  }
142
  //Pro feature
143
  class Startkit_services__section_upgrade extends WP_Customize_Control {
144
- public function render_content() { ?>
145
- <a class="customizer_service_upgrade_section up-to-pro" href="https://www.nayrathemes.com/startkit-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','startkit'); ?></a>
 
 
 
 
 
 
 
 
 
 
146
  <?php
147
  }
148
  }
141
  }
142
  //Pro feature
143
  class Startkit_services__section_upgrade extends WP_Customize_Control {
144
+ public function render_content() {
145
+ $theme = wp_get_theme(); // gets the current theme
146
+ if ( 'StartKit' == $theme->name){
147
+ ?>
148
+ <a class="customizer_service_upgrade_section up-to-pro" href="https://www.nayrathemes.com/startkit-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','startkit'); ?></a>
149
+ <?php }elseif( 'StartBiz' == $theme->name){ ?>
150
+ <a class="customizer_service_upgrade_section up-to-pro" href="https://www.nayrathemes.com/startbiz-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','startkit'); ?></a>
151
+ <?php }elseif( 'Arowana' == $theme->name){ ?>
152
+ <a class="customizer_service_upgrade_section up-to-pro" href="https://www.nayrathemes.com/arowana-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','startkit'); ?></a>
153
+ <?php }else{ ?>
154
+ <a class="customizer_service_upgrade_section up-to-pro" href="https://www.nayrathemes.com/startkit-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','startkit'); ?></a>
155
+ <?php } ?>
156
  <?php
157
  }
158
  }
inc/startkit/features/section-slider.php CHANGED
@@ -75,8 +75,18 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
75
 
76
  //Pro feature
77
  class Startkit_slider__section_upgrade extends WP_Customize_Control {
78
- public function render_content() { ?>
79
- <a class="customizer_slider_upgrade_section up-to-pro" href="https://www.nayrathemes.com/startkit-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','startkit'); ?></a>
 
 
 
 
 
 
 
 
 
 
80
  <?php
81
  }
82
  }
75
 
76
  //Pro feature
77
  class Startkit_slider__section_upgrade extends WP_Customize_Control {
78
+ public function render_content() {
79
+ $theme = wp_get_theme(); // gets the current theme
80
+ if ( 'StartKit' == $theme->name){
81
+ ?>
82
+ <a class="customizer_slider_upgrade_section up-to-pro" href="https://www.nayrathemes.com/startkit-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','startkit'); ?></a>
83
+ <?php }elseif( 'StartBiz' == $theme->name){ ?>
84
+ <a class="customizer_slider_upgrade_section up-to-pro" href="https://www.nayrathemes.com/startbiz-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','startkit'); ?></a>
85
+ <?php }elseif( 'Arowana' == $theme->name){ ?>
86
+ <a class="customizer_slider_upgrade_section up-to-pro" href="https://www.nayrathemes.com/arowana-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','startkit'); ?></a>
87
+ <?php }else{ ?>
88
+ <a class="customizer_slider_upgrade_section up-to-pro" href="https://www.nayrathemes.com/startkit-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','startkit'); ?></a>
89
+ <?php } ?>
90
  <?php
91
  }
92
  }
inc/startkit/features/section-testimonial.php CHANGED
@@ -134,8 +134,18 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
134
  }
135
  //Pro feature
136
  class Startkit_testimonial__section_upgrade extends WP_Customize_Control {
137
- public function render_content() { ?>
138
- <a class="customizer_testimonial_upgrade_section up-to-pro" href="https://www.nayrathemes.com/startkit-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','startkit'); ?></a>
 
 
 
 
 
 
 
 
 
 
139
  <?php
140
  }
141
  }
134
  }
135
  //Pro feature
136
  class Startkit_testimonial__section_upgrade extends WP_Customize_Control {
137
+ public function render_content() {
138
+ $theme = wp_get_theme(); // gets the current theme
139
+ if ( 'StartKit' == $theme->name){
140
+ ?>
141
+ <a class="customizer_testimonial_upgrade_section up-to-pro" href="https://www.nayrathemes.com/startkit-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','startkit'); ?></a>
142
+ <?php }elseif( 'StartBiz' == $theme->name){ ?>
143
+ <a class="customizer_testimonial_upgrade_section up-to-pro" href="https://www.nayrathemes.com/startbiz-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','startkit'); ?></a>
144
+ <?php }elseif( 'Arowana' == $theme->name){ ?>
145
+ <a class="customizer_testimonial_upgrade_section up-to-pro" href="https://www.nayrathemes.com/arowana-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','startkit'); ?></a>
146
+ <?php }else{ ?>
147
+ <a class="customizer_testimonial_upgrade_section up-to-pro" href="https://www.nayrathemes.com/startkit-pro/" target="_blank" style="display: none;"><?php _e('Upgrade to Pro','startkit'); ?></a>
148
+ <?php } ?>
149
  <?php
150
  }
151
  }
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.23 =
35
  * Added Animation on Sections
36
  * Startkit Theme Info Icon Changed
31
 
32
 
33
  == Changelog ==
34
+ = 1.1.24 =
35
+ * Change Upgrade to Pro Links According to Themes
36
+
37
  = 1.1.23 =
38
  * Added Animation on Sections
39
  * Startkit Theme Info Icon Changed