Kadence Themes Toolkit - Version 2.3

Version Description

  • Admin Gallery update.
  • New option for lightbox size in gallery
Download this release

Release Info

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

Code changes from version 2.2 to 2.3

assets/icon-256x256.jpg ADDED
Binary file
assets/toolkit_admin.css ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ .kad_image_gallery .attachment.details .check div {background-position: -60px 0;}
2
+ .kad_image_gallery .attachment.details .check:hover div {background-position: -60px 0;}
3
+ .kad_image_gallery .gallery_images .details.attachment {box-shadow: none;}
4
+ .kad_image_gallery .eig-metabox-sortable-placeholder {background: #DFDFDF;}
5
+ .kad_image_gallery .gallery_images .attachment.details > div {width: 150px; height: 150px; box-shadow: none;}
6
+ .kad_image_gallery .gallery_images .attachment-preview .thumbnail {cursor: move;}
7
+ .kad_image_gallery .attachment.details div:hover .check {display:block;}
8
+ .kad_image_gallery .gallery_images:after, .kad_image_gallery #gallery_images_container:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
9
+ .kad_image_gallery .gallery_images > li {float: left; cursor: move; margin: 0 20px 20px 0; width: auto;}
10
+ .kad_image_gallery .gallery_images li.image img {width: 150px; height: auto;}
metaboxes.php CHANGED
@@ -20,7 +20,7 @@ function kad_gallery_field( $field, $meta ) {
20
 
21
  if ( ! empty( $field['desc'] ) ) echo '<p class="cmb_metabox_description">' . $field['desc'] . '</p>';
22
  }
23
- add_filter( 'cmb_render_kad_gallery', 'kad_gallery_field', 10, 2 );
24
 
25
  function kad_gallery_field_sanitise( $field, $meta ) {
26
  if ( empty( $meta ) ) {
@@ -32,6 +32,7 @@ function kad_gallery_field_sanitise( $field, $meta ) {
32
  }
33
  $the_theme = wp_get_theme();
34
  if( ($the_theme->get( 'Name' ) == 'Pinnacle' || $the_theme->get( 'Template') == 'pinnacle') && ( $the_theme->get( 'Version') >= '1.0.6' ) ) {
 
35
  add_filter( 'cmb_meta_boxes', 'kadence_pinnacletoolkit_metaboxes', 100 );
36
  }
37
 
@@ -682,6 +683,7 @@ $meta_boxes[] = array(
682
 
683
  $the_theme = wp_get_theme();
684
  if( ($the_theme->get( 'Name' ) == 'Virtue' || $the_theme->get( 'Template') == 'virtue') && ( $the_theme->get( 'Version') >= '2.3.5' ) ) {
 
685
  add_filter( 'cmb_meta_boxes', 'kadence_virtuetoolkit_metaboxes', 100 );
686
  }
687
  function kadence_virtuetoolkit_metaboxes( array $meta_boxes ) {
20
 
21
  if ( ! empty( $field['desc'] ) ) echo '<p class="cmb_metabox_description">' . $field['desc'] . '</p>';
22
  }
23
+
24
 
25
  function kad_gallery_field_sanitise( $field, $meta ) {
26
  if ( empty( $meta ) ) {
32
  }
33
  $the_theme = wp_get_theme();
34
  if( ($the_theme->get( 'Name' ) == 'Pinnacle' || $the_theme->get( 'Template') == 'pinnacle') && ( $the_theme->get( 'Version') >= '1.0.6' ) ) {
35
+ add_filter( 'cmb_render_kad_gallery', 'kad_gallery_field', 10, 2 );
36
  add_filter( 'cmb_meta_boxes', 'kadence_pinnacletoolkit_metaboxes', 100 );
37
  }
38
 
683
 
684
  $the_theme = wp_get_theme();
685
  if( ($the_theme->get( 'Name' ) == 'Virtue' || $the_theme->get( 'Template') == 'virtue') && ( $the_theme->get( 'Version') >= '2.3.5' ) ) {
686
+ add_filter( 'cmb_render_kad_gallery', 'kad_gallery_field', 10, 2 );
687
  add_filter( 'cmb_meta_boxes', 'kadence_virtuetoolkit_metaboxes', 100 );
688
  }
689
  function kadence_virtuetoolkit_metaboxes( array $meta_boxes ) {
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: britner
3
  Tags:
4
  Requires at least: 3.5
5
  Tested up to: 4.1
6
- Stable tag: 2.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -22,6 +22,10 @@ Install the plugin into the `/wp-content/plugins/` folder, and activate it.
22
 
23
  == Changelog ==
24
 
 
 
 
 
25
  = 2.2 =
26
  * Big update, move theme metaboxes to plugin.
27
  * Add Contact form template to plugin.
3
  Tags:
4
  Requires at least: 3.5
5
  Tested up to: 4.1
6
+ Stable tag: 2.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
22
 
23
  == Changelog ==
24
 
25
+ = 2.3 =
26
+ * Admin Gallery update.
27
+ * New option for lightbox size in gallery
28
+
29
  = 2.2 =
30
  * Big update, move theme metaboxes to plugin.
31
  * Add Contact form template to plugin.
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.2
7
  Author: Kadence Themes
8
  Author URI: http://kadencethemes.com/
9
  License: GPLv2 or later
@@ -33,4 +33,11 @@ add_action( 'plugins_loaded', 'kadencetoolkit_textdomain' );
33
 
34
  function kadencetoolkit_textdomain() {
35
  load_plugin_textdomain( 'kadencetoolkit', false, VIRTUE_TOOLKIT_URL . '/languages' );
36
- }
 
 
 
 
 
 
 
3
  /*
4
  Plugin Name: Virtue / Pinnacle ToolKit
5
  Description: Custom Portfolio and Shortcode functionality for Virtue and Pinnacle Wordpress Theme
6
+ Version: 2.3
7
  Author: Kadence Themes
8
  Author URI: http://kadencethemes.com/
9
  License: GPLv2 or later
33
 
34
  function kadencetoolkit_textdomain() {
35
  load_plugin_textdomain( 'kadencetoolkit', false, VIRTUE_TOOLKIT_URL . '/languages' );
36
+ }
37
+ function kadencetoolkit_admin_scripts() {
38
+ wp_register_style('kadencetoolkit_adminstyles', VIRTUE_TOOLKIT_URL . '/assets/toolkit_admin.css', false, 23);
39
+ wp_enqueue_style('kadencetoolkit_adminstyles');
40
+
41
+ }
42
+
43
+ add_action('admin_enqueue_scripts', 'kadencetoolkit_admin_scripts');