Kadence Themes Toolkit - Version 3.8

Version Description

  • Update: Contact page template in 4.7
Download this release

Release Info

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

Code changes from version 3.7 to 3.8

Files changed (3) hide show
  1. pagetemplater.php +11 -0
  2. readme.txt +5 -2
  3. virtue_toolkit.php +2 -2
pagetemplater.php CHANGED
@@ -122,6 +122,8 @@ class Kadence_Page_Templater_Virtue {
122
 
123
  add_filter('template_include', array( $this, 'view_project_template') );
124
 
 
 
125
  $this->templates = array(
126
  'page-contact.php' => __('Contact', 'virtue-toolkit'),
127
  );
@@ -151,6 +153,15 @@ class Kadence_Page_Templater_Virtue {
151
 
152
  return $atts;
153
 
 
 
 
 
 
 
 
 
 
154
  }
155
 
156
  /**
122
 
123
  add_filter('template_include', array( $this, 'view_project_template') );
124
 
125
+ add_filter('theme_page_templates', array( $this, 'register_project_templates_update') );
126
+
127
  $this->templates = array(
128
  'page-contact.php' => __('Contact', 'virtue-toolkit'),
129
  );
153
 
154
  return $atts;
155
 
156
+ }
157
+ public function register_project_templates_update($templates ) {
158
+ if ( ! version_compare( $GLOBALS['wp_version'], '4.7', '<' ) ) {
159
+
160
+ $templates = array_merge( $templates, $this->templates );
161
+
162
+ }
163
+ return $templates;
164
+
165
  }
166
 
167
  /**
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
- === Kadence Themes ToolKit ===
2
  Contributors: britner
3
  Tags:
4
  Requires at least: 4.0
5
  Tested up to: 4.7
6
- Stable tag: 3.7
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
  = 3.7 =
47
  * Update: Contact page template in 4.7
48
 
1
+ === Kadence Themes Toolkit ===
2
  Contributors: britner
3
  Tags:
4
  Requires at least: 4.0
5
  Tested up to: 4.7
6
+ Stable tag: 3.8
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
43
 
44
  == Changelog ==
45
 
46
+ = 3.8 =
47
+ * Update: Contact page template in 4.7
48
+
49
  = 3.7 =
50
  * Update: Contact page template in 4.7
51
 
virtue_toolkit.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
 
3
  /*
4
- Plugin Name: Kadence ToolKit
5
  Description: Custom Portfolio and Shortcode functionality for free Kadence WordPress themes
6
- Version: 3.7
7
  Author: Kadence Themes
8
  Author URI: https://kadencethemes.com/
9
  License: GPLv2 or later
1
  <?php
2
 
3
  /*
4
+ Plugin Name: Kadence Toolkit
5
  Description: Custom Portfolio and Shortcode functionality for free Kadence WordPress themes
6
+ Version: 3.8
7
  Author: Kadence Themes
8
  Author URI: https://kadencethemes.com/
9
  License: GPLv2 or later