Version Description
- Fix issue with pagebuilder.
Download this release
Release Info
Developer | britner |
Plugin | Kadence Themes Toolkit |
Version | 4.7 |
Comparing to | |
See all releases |
Code changes from version 4.6 to 4.7
- readme.txt +4 -1
- shortcodes.php +20 -17
- virtue_toolkit.php +1 -1
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: britner
|
|
3 |
Tags:
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.9
|
6 |
-
Stable tag: 4.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -43,6 +43,9 @@ Install the plugin into the `/wp-content/plugins/` folder, and activate it.
|
|
43 |
|
44 |
== Changelog ==
|
45 |
|
|
|
|
|
|
|
46 |
= 4.6 =
|
47 |
* Update: CMB.
|
48 |
* Fix: issue with wrong fields showing.
|
3 |
Tags:
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.9
|
6 |
+
Stable tag: 4.7
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
43 |
|
44 |
== Changelog ==
|
45 |
|
46 |
+
= 4.7 =
|
47 |
+
* Fix issue with pagebuilder.
|
48 |
+
|
49 |
= 4.6 =
|
50 |
* Update: CMB.
|
51 |
* Fix: issue with wrong fields showing.
|
shortcodes.php
CHANGED
@@ -353,15 +353,19 @@ add_action( 'init', 'virtue_toolkit_register_shortcodes');
|
|
353 |
|
354 |
|
355 |
function virtue_toolkit_register_button( $buttons ) {
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
|
|
|
|
|
|
|
|
365 |
}
|
366 |
function virtue_toolkit_add_plugin( $plugin_array ) {
|
367 |
$plugin_array['kadcolumns'] = VIRTUE_TOOLKIT_URL . '/shortcodes/columns/columns_shortgen.js';
|
@@ -376,14 +380,13 @@ function virtue_toolkit_add_plugin( $plugin_array ) {
|
|
376 |
}
|
377 |
function virtue_toolkit_tinymce_shortcode_button() {
|
378 |
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
}
|
387 |
|
388 |
}
|
389 |
add_action('init', 'virtue_toolkit_tinymce_shortcode_button');
|
353 |
|
354 |
|
355 |
function virtue_toolkit_register_button( $buttons ) {
|
356 |
+
if ( empty( $buttons ) ) {
|
357 |
+
$buttons = array();
|
358 |
+
}
|
359 |
+
array_push( $buttons, "|", "kadcolumns" );
|
360 |
+
array_push( $buttons, "|", "kaddivider" );
|
361 |
+
array_push( $buttons, "|", "kadaccordion" );
|
362 |
+
array_push( $buttons, "|", "kadquote" );
|
363 |
+
array_push( $buttons, "|", "kadbtn" );
|
364 |
+
array_push( $buttons, "|", "kadicon" );
|
365 |
+
array_push( $buttons, "|", "kadyoutube" );
|
366 |
+
array_push( $buttons, "|", "kadvimeo" );
|
367 |
+
|
368 |
+
return $buttons;
|
369 |
}
|
370 |
function virtue_toolkit_add_plugin( $plugin_array ) {
|
371 |
$plugin_array['kadcolumns'] = VIRTUE_TOOLKIT_URL . '/shortcodes/columns/columns_shortgen.js';
|
380 |
}
|
381 |
function virtue_toolkit_tinymce_shortcode_button() {
|
382 |
|
383 |
+
if ( ! current_user_can('edit_posts') && ! current_user_can('edit_pages') ) {
|
384 |
+
return;
|
385 |
+
}
|
386 |
+
if ( get_user_option('rich_editing') == 'true' ) {
|
387 |
+
add_filter( 'mce_external_plugins', 'virtue_toolkit_add_plugin' );
|
388 |
+
add_filter( 'mce_buttons_3', 'virtue_toolkit_register_button', 50 );
|
389 |
+
}
|
|
|
390 |
|
391 |
}
|
392 |
add_action('init', 'virtue_toolkit_tinymce_shortcode_button');
|
virtue_toolkit.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/*
|
4 |
Plugin Name: Kadence Toolkit
|
5 |
Description: Custom Portfolio and Shortcode functionality for free Kadence WordPress themes
|
6 |
-
Version: 4.
|
7 |
Author: Kadence Themes
|
8 |
Author URI: https://kadencethemes.com/
|
9 |
License: GPLv2 or later
|
3 |
/*
|
4 |
Plugin Name: Kadence Toolkit
|
5 |
Description: Custom Portfolio and Shortcode functionality for free Kadence WordPress themes
|
6 |
+
Version: 4.7
|
7 |
Author: Kadence Themes
|
8 |
Author URI: https://kadencethemes.com/
|
9 |
License: GPLv2 or later
|