Version Description
- Fix for olderversions of pinnacle
Download this release
Release Info
Developer | britner |
Plugin | Kadence Themes Toolkit |
Version | 2.4 |
Comparing to | |
See all releases |
Code changes from version 2.3 to 2.4
- metaboxes.php +3 -5
- readme.txt +4 -1
- virtue_toolkit.php +1 -1
metaboxes.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
// Build Metaboxs for gallery
|
3 |
-
function
|
4 |
echo '<div class="kad-gallery kad_widget_image_gallery">';
|
5 |
echo '<div class="gallery_images">';
|
6 |
$attachments = array_filter( explode( ',', $meta ) );
|
@@ -20,9 +20,9 @@ function kad_gallery_field( $field, $meta ) {
|
|
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 ) ) {
|
27 |
$meta = '';
|
28 |
} else {
|
@@ -32,7 +32,6 @@ 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_render_kad_gallery', 'kad_gallery_field', 10, 2 );
|
36 |
add_filter( 'cmb_meta_boxes', 'kadence_pinnacletoolkit_metaboxes', 100 );
|
37 |
}
|
38 |
|
@@ -683,7 +682,6 @@ $meta_boxes[] = array(
|
|
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 ) {
|
1 |
<?php
|
2 |
// Build Metaboxs for gallery
|
3 |
+
function kadtool_gallery_field( $field, $meta ) {
|
4 |
echo '<div class="kad-gallery kad_widget_image_gallery">';
|
5 |
echo '<div class="gallery_images">';
|
6 |
$attachments = array_filter( explode( ',', $meta ) );
|
20 |
|
21 |
if ( ! empty( $field['desc'] ) ) echo '<p class="cmb_metabox_description">' . $field['desc'] . '</p>';
|
22 |
}
|
23 |
+
add_filter( 'cmb_render_kad_gallery', 'kadtool_gallery_field', 10, 2 );
|
24 |
|
25 |
+
function kadtool_gallery_field_sanitise( $field, $meta ) {
|
|
|
26 |
if ( empty( $meta ) ) {
|
27 |
$meta = '';
|
28 |
} else {
|
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 |
|
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 ) {
|
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.
|
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.3 =
|
26 |
* Admin Gallery update.
|
27 |
* New option for lightbox size in gallery
|
3 |
Tags:
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 4.1
|
6 |
+
Stable tag: 2.4
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
22 |
|
23 |
== Changelog ==
|
24 |
|
25 |
+
= 2.4 =
|
26 |
+
* Fix for olderversions of pinnacle
|
27 |
+
|
28 |
= 2.3 =
|
29 |
* Admin Gallery update.
|
30 |
* New option for lightbox size in gallery
|
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.
|
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.4
|
7 |
Author: Kadence Themes
|
8 |
Author URI: http://kadencethemes.com/
|
9 |
License: GPLv2 or later
|