Kadence Themes Toolkit - Version 2.1

Version Description

  • Small gallery update
Download this release

Release Info

Developer britner
Plugin Icon wp plugin Kadence Themes Toolkit
Version 2.1
Comparing to
See all releases

Code changes from version 2.0 to 2.1

Files changed (3) hide show
  1. gallery.php +5 -3
  2. readme.txt +4 -1
  3. virtue_toolkit.php +1 -1
gallery.php CHANGED
@@ -101,8 +101,10 @@ function kadence_shortcode_gallery($attr) {
101
  return $output;
102
  }
103
  $pinnacle = get_option( 'pinnacle' );
104
-
105
- if(isset($pinnacle['pinnacle_gallery']) && $pinnacle['pinnacle_gallery'] == '1' && (! function_exists( 'kadence_gallery' ) ) ) {
 
106
  remove_shortcode('gallery');
107
  add_shortcode('gallery', 'kadence_shortcode_gallery');
108
- }
 
101
  return $output;
102
  }
103
  $pinnacle = get_option( 'pinnacle' );
104
+ $virtue = get_option( 'virtue' );
105
+ if(! function_exists( 'kadence_gallery' ) ) {
106
+ if( (isset($pinnacle['pinnacle_gallery']) && $pinnacle['pinnacle_gallery'] == '1') || (isset($virtue['virtue_gallery']) && $virtue['virtue_gallery'] == '1') ) {
107
  remove_shortcode('gallery');
108
  add_shortcode('gallery', 'kadence_shortcode_gallery');
109
+ }
110
+ }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: britner
3
  Tags:
4
  Requires at least: 3.2
5
  Tested up to: 4.0
6
- Stable tag: 2.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -22,6 +22,9 @@ Install the plugin into the `/wp-content/plugins/` folder, and activate it.
22
 
23
  == Changelog ==
24
 
 
 
 
25
  = 2.0 =
26
  * Move gallery to plugin.
27
  * Add button hover color.
3
  Tags:
4
  Requires at least: 3.2
5
  Tested up to: 4.0
6
+ Stable tag: 2.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
22
 
23
  == Changelog ==
24
 
25
+ = 2.1 =
26
+ * Small gallery update
27
+
28
  = 2.0 =
29
  * Move gallery to plugin.
30
  * Add button hover color.
virtue_toolkit.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  Plugin Name: Virtue / Pinnacle ToolKit
5
  Description: Custom Portfolio and Shortcode functionality for Virtue and Pinnacle Wordpress Theme
6
- Version: 2.0
7
  Author: Kadence Themes
8
  Author URI: http://kadencethemes.com/
9
  License: GPLv2 or later
3
  /*
4
  Plugin Name: Virtue / Pinnacle ToolKit
5
  Description: Custom Portfolio and Shortcode functionality for Virtue and Pinnacle Wordpress Theme
6
+ Version: 2.1
7
  Author: Kadence Themes
8
  Author URI: http://kadencethemes.com/
9
  License: GPLv2 or later