Version Description
Download this release
Release Info
Developer | britner |
Plugin | Kadence Themes Toolkit |
Version | 2.7 |
Comparing to | |
See all releases |
Code changes from version 2.6 to 2.7
- metaboxes.php +2 -2
- pagetemplater.php +2 -2
- readme.txt +1 -1
- virtue_toolkit.php +42 -42
metaboxes.php
CHANGED
@@ -31,7 +31,7 @@ function kadtool_gallery_field_sanitise( $field, $meta ) {
|
|
31 |
return $meta;
|
32 |
}
|
33 |
$the_theme = wp_get_theme();
|
34 |
-
if( ($the_theme->get( 'Name' ) == 'Pinnacle'
|
35 |
add_filter( 'cmb_meta_boxes', 'kadence_pinnacletoolkit_metaboxes', 100 );
|
36 |
}
|
37 |
|
@@ -681,7 +681,7 @@ $meta_boxes[] = array(
|
|
681 |
|
682 |
|
683 |
$the_theme = wp_get_theme();
|
684 |
-
if( ($the_theme->get( 'Name' ) == 'Virtue'
|
685 |
add_filter( 'cmb_meta_boxes', 'kadence_virtuetoolkit_metaboxes', 100 );
|
686 |
}
|
687 |
function kadence_virtuetoolkit_metaboxes( array $meta_boxes ) {
|
31 |
return $meta;
|
32 |
}
|
33 |
$the_theme = wp_get_theme();
|
34 |
+
if( ($the_theme->get( 'Name' ) == 'Pinnacle' && $the_theme->get( 'Version') >= '1.0.6' ) || ($the_theme->get( 'Template') == 'pinnacle') ) {
|
35 |
add_filter( 'cmb_meta_boxes', 'kadence_pinnacletoolkit_metaboxes', 100 );
|
36 |
}
|
37 |
|
681 |
|
682 |
|
683 |
$the_theme = wp_get_theme();
|
684 |
+
if( ($the_theme->get( 'Name' ) == 'Virtue' && $the_theme->get( 'Version') >= '2.3.5') || ($the_theme->get( 'Template') == 'virtue') ) {
|
685 |
add_filter( 'cmb_meta_boxes', 'kadence_virtuetoolkit_metaboxes', 100 );
|
686 |
}
|
687 |
function kadence_virtuetoolkit_metaboxes( array $meta_boxes ) {
|
pagetemplater.php
CHANGED
@@ -83,7 +83,7 @@ class Kadence_Page_Templater_Pinnacle {
|
|
83 |
|
84 |
}
|
85 |
$the_theme = wp_get_theme();
|
86 |
-
if( ($the_theme->get( 'Name' ) == 'Pinnacle'
|
87 |
add_action( 'plugins_loaded', array( 'Kadence_Page_Templater_Pinnacle', 'get_instance' ) );
|
88 |
}
|
89 |
class Kadence_Page_Templater_Virtue {
|
@@ -169,6 +169,6 @@ class Kadence_Page_Templater_Virtue {
|
|
169 |
|
170 |
}
|
171 |
$the_theme = wp_get_theme();
|
172 |
-
if( ($the_theme->get( 'Name' ) == 'Virtue'
|
173 |
add_action( 'plugins_loaded', array( 'Kadence_Page_Templater_Virtue', 'get_instance' ) );
|
174 |
}
|
83 |
|
84 |
}
|
85 |
$the_theme = wp_get_theme();
|
86 |
+
if( ($the_theme->get( 'Name' ) == 'Pinnacle' && $the_theme->get( 'Version') >= '1.0.6' ) || ($the_theme->get( 'Template') == 'pinnacle') ) {
|
87 |
add_action( 'plugins_loaded', array( 'Kadence_Page_Templater_Pinnacle', 'get_instance' ) );
|
88 |
}
|
89 |
class Kadence_Page_Templater_Virtue {
|
169 |
|
170 |
}
|
171 |
$the_theme = wp_get_theme();
|
172 |
+
if( ($the_theme->get( 'Name' ) == 'Virtue' && $the_theme->get( 'Version') >= '2.3.5') || ($the_theme->get( 'Template') == 'virtue') ) {
|
173 |
add_action( 'plugins_loaded', array( 'Kadence_Page_Templater_Virtue', 'get_instance' ) );
|
174 |
}
|
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 |
|
3 |
Tags:
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 4.1
|
6 |
+
Stable tag: 2.7
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
virtue_toolkit.php
CHANGED
@@ -1,43 +1,43 @@
|
|
1 |
-
<?php
|
2 |
-
|
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
|
10 |
-
*/
|
11 |
-
function virtue_toolkit_activation() {
|
12 |
-
}
|
13 |
-
register_activation_hook(__FILE__, 'virtue_toolkit_activation');
|
14 |
-
|
15 |
-
function virtue_toolkit_deactivation() {
|
16 |
-
}
|
17 |
-
register_deactivation_hook(__FILE__, 'virtue_toolkit_deactivation');
|
18 |
-
|
19 |
-
require_once('post-types.php');
|
20 |
-
require_once('gallery.php');
|
21 |
-
require_once('shortcodes.php');
|
22 |
-
require_once('shortcode_ajax.php');
|
23 |
-
require_once('pagetemplater.php');
|
24 |
-
require_once('metaboxes.php');
|
25 |
-
|
26 |
-
if(!defined('VIRTUE_TOOLKIT_PATH')){
|
27 |
-
define('VIRTUE_TOOLKIT_PATH', realpath(plugin_dir_path(__FILE__)) . DIRECTORY_SEPARATOR );
|
28 |
-
}
|
29 |
-
if(!defined('VIRTUE_TOOLKIT_URL')){
|
30 |
-
define('VIRTUE_TOOLKIT_URL', plugin_dir_url(__FILE__) );
|
31 |
-
}
|
32 |
-
add_action( 'plugins_loaded', 'kadencetoolkit_textdomain' );
|
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');
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
Plugin Name: Virtue / Pinnacle ToolKit
|
5 |
+
Description: Custom Portfolio and Shortcode functionality for Virtue and Pinnacle Wordpress Theme
|
6 |
+
Version: 2.7
|
7 |
+
Author: Kadence Themes
|
8 |
+
Author URI: http://kadencethemes.com/
|
9 |
+
License: GPLv2 or later
|
10 |
+
*/
|
11 |
+
function virtue_toolkit_activation() {
|
12 |
+
}
|
13 |
+
register_activation_hook(__FILE__, 'virtue_toolkit_activation');
|
14 |
+
|
15 |
+
function virtue_toolkit_deactivation() {
|
16 |
+
}
|
17 |
+
register_deactivation_hook(__FILE__, 'virtue_toolkit_deactivation');
|
18 |
+
|
19 |
+
require_once('post-types.php');
|
20 |
+
require_once('gallery.php');
|
21 |
+
require_once('shortcodes.php');
|
22 |
+
require_once('shortcode_ajax.php');
|
23 |
+
require_once('pagetemplater.php');
|
24 |
+
require_once('metaboxes.php');
|
25 |
+
|
26 |
+
if(!defined('VIRTUE_TOOLKIT_PATH')){
|
27 |
+
define('VIRTUE_TOOLKIT_PATH', realpath(plugin_dir_path(__FILE__)) . DIRECTORY_SEPARATOR );
|
28 |
+
}
|
29 |
+
if(!defined('VIRTUE_TOOLKIT_URL')){
|
30 |
+
define('VIRTUE_TOOLKIT_URL', plugin_dir_url(__FILE__) );
|
31 |
+
}
|
32 |
+
add_action( 'plugins_loaded', 'kadencetoolkit_textdomain' );
|
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');
|