Kadence Themes Toolkit - Version 3.0

Version Description

  • Fix: Translation Issue
  • Add: Customizer only off function.
Download this release

Release Info

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

Code changes from version 2.9 to 3.0

Files changed (4) hide show
  1. page-contact.php +3 -3
  2. readme.txt +5 -1
  3. template-contact.php +1 -1
  4. virtue_toolkit.php +14 -4
page-contact.php CHANGED
@@ -133,7 +133,7 @@ Template Name: Contact
133
  $emailTo = get_option('admin_email');
134
  }
135
  $sitename = get_bloginfo('name');
136
- $subject = '['.esc_html($sitename) . ' ' . __("Contact", "virtue").'] '. __("From", "virtue") . ' ' . esc_html($name);
137
  $body = __('Name', 'kadencetoolkit').": $name \n\n";
138
  $body .= __('Email', 'kadencetoolkit').": $email \n\n";
139
  $body .= __('Comments', 'kadencetoolkit').":\n $comments";
@@ -193,7 +193,7 @@ Template Name: Contact
193
  </p>
194
 
195
  <p>
196
- <label for="email"><b><?php _e('Email: ', 'kadencetoolkit'); ?></b></label>
197
  <?php if(isset($emailError)) { ?>
198
  <span class="error"><?php echo esc_html($emailError);?></span>
199
  <?php } ?>
@@ -201,7 +201,7 @@ Template Name: Contact
201
  </p>
202
 
203
  <p>
204
- <label for="commentsText"><b><?php _e('Message: ', 'kadencetoolkit'); ?></b></label>
205
  <?php if(isset($commentError)) { ?>
206
  <span class="error"><?php echo esc_html($commentError);?></span>
207
  <?php } ?>
133
  $emailTo = get_option('admin_email');
134
  }
135
  $sitename = get_bloginfo('name');
136
+ $subject = '['.esc_html($sitename) . ' ' . __("Contact", "kadencetoolkit").'] '. __("From", "kadencetoolkit") . ' ' . esc_html($name);
137
  $body = __('Name', 'kadencetoolkit').": $name \n\n";
138
  $body .= __('Email', 'kadencetoolkit').": $email \n\n";
139
  $body .= __('Comments', 'kadencetoolkit').":\n $comments";
193
  </p>
194
 
195
  <p>
196
+ <label for="email"><b><?php _e('Email:', 'kadencetoolkit'); ?></b></label>
197
  <?php if(isset($emailError)) { ?>
198
  <span class="error"><?php echo esc_html($emailError);?></span>
199
  <?php } ?>
201
  </p>
202
 
203
  <p>
204
+ <label for="commentsText"><b><?php _e('Message:', 'kadencetoolkit'); ?></b></label>
205
  <?php if(isset($commentError)) { ?>
206
  <span class="error"><?php echo esc_html($commentError);?></span>
207
  <?php } ?>
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: britner
3
  Tags:
4
  Requires at least: 3.5
5
  Tested up to: 4.2
6
- Stable tag: 2.9
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -43,6 +43,10 @@ Install the plugin into the `/wp-content/plugins/` folder, and activate it.
43
 
44
  == Changelog ==
45
 
 
 
 
 
46
  = 2.9 =
47
  * Add: permalink flush, update for feeds link.
48
  * Add: Filter for permalink struture.
3
  Tags:
4
  Requires at least: 3.5
5
  Tested up to: 4.2
6
+ Stable tag: 3.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
43
 
44
  == Changelog ==
45
 
46
+ = 3.0 =
47
+ * Fix: Translation Issue
48
+ * Add: Customizer only off function.
49
+
50
  = 2.9 =
51
  * Add: permalink flush, update for feeds link.
52
  * Add: Filter for permalink struture.
template-contact.php CHANGED
@@ -134,7 +134,7 @@ global $post;
134
  $emailTo = get_option('admin_email');
135
  }
136
  $sitename = get_bloginfo('name');
137
- $subject = '['.$sitename . ' ' . __("Contact", "pinnacle").'] '. __("From", "pinnacle") . ' ' . $name;
138
  $body = __('Name', 'kadencetoolkit').": $name \n\n";
139
  $body .= __('Email', 'kadencetoolkit').": $email \n\n";
140
  $body .= __('Comments', 'kadencetoolkit').":\n $comments";
134
  $emailTo = get_option('admin_email');
135
  }
136
  $sitename = get_bloginfo('name');
137
+ $subject = '['.$sitename . ' ' . __("Contact", "kadencetoolkit").'] '. __("From", "kadencetoolkit") . ' ' . $name;
138
  $body = __('Name', 'kadencetoolkit').": $name \n\n";
139
  $body .= __('Email', 'kadencetoolkit').": $email \n\n";
140
  $body .= __('Comments', 'kadencetoolkit').":\n $comments";
virtue_toolkit.php CHANGED
@@ -3,11 +3,12 @@
3
  /*
4
  Plugin Name: Virtue / Pinnacle ToolKit
5
  Description: Custom Portfolio and Shortcode functionality for Virtue and Pinnacle Wordpress Theme
6
- Version: 2.9
7
  Author: Kadence Themes
8
  Author URI: http://kadencethemes.com/
9
  License: GPLv2 or later
10
  */
 
11
  function virtue_toolkit_activation() {
12
  kad_portfolio_post_init();
13
  flush_rewrite_rules();
@@ -19,6 +20,11 @@ function virtue_toolkit_deactivation() {
19
  }
20
  register_deactivation_hook(__FILE__, 'virtue_toolkit_deactivation');
21
 
 
 
 
 
 
22
  require_once('post-types.php');
23
  require_once('gallery.php');
24
  require_once('shortcodes.php');
@@ -32,11 +38,13 @@ if(!defined('VIRTUE_TOOLKIT_PATH')){
32
  if(!defined('VIRTUE_TOOLKIT_URL')){
33
  define('VIRTUE_TOOLKIT_URL', plugin_dir_url(__FILE__) );
34
  }
35
- add_action( 'plugins_loaded', 'kadencetoolkit_textdomain' );
36
 
37
  function kadencetoolkit_textdomain() {
38
- load_plugin_textdomain( 'kadencetoolkit', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
39
  }
 
 
 
40
  function kadencetoolkit_admin_scripts() {
41
  wp_register_style('kadencetoolkit_adminstyles', VIRTUE_TOOLKIT_URL . '/assets/toolkit_admin.css', false, 23);
42
  wp_enqueue_style('kadencetoolkit_adminstyles');
@@ -52,4 +60,6 @@ function kadence_toolkit_flushpermalinks() {
52
  update_option('kadence_toolkit_flushpermalinks', '1');
53
  }
54
  }
55
- add_action('init', 'kadence_toolkit_flushpermalinks');
 
 
3
  /*
4
  Plugin Name: Virtue / Pinnacle ToolKit
5
  Description: Custom Portfolio and Shortcode functionality for Virtue and Pinnacle Wordpress Theme
6
+ Version: 3.0
7
  Author: Kadence Themes
8
  Author URI: http://kadencethemes.com/
9
  License: GPLv2 or later
10
  */
11
+
12
  function virtue_toolkit_activation() {
13
  kad_portfolio_post_init();
14
  flush_rewrite_rules();
20
  }
21
  register_deactivation_hook(__FILE__, 'virtue_toolkit_deactivation');
22
 
23
+ add_filter( 'kadence_theme_options_args', 'kadencetoolkit_redux_args_new');
24
+ function kadencetoolkit_redux_args_new( $args ) {
25
+ $args['customizer_only'] = false;
26
+ return $args;
27
+ }
28
  require_once('post-types.php');
29
  require_once('gallery.php');
30
  require_once('shortcodes.php');
38
  if(!defined('VIRTUE_TOOLKIT_URL')){
39
  define('VIRTUE_TOOLKIT_URL', plugin_dir_url(__FILE__) );
40
  }
 
41
 
42
  function kadencetoolkit_textdomain() {
43
+ load_plugin_textdomain( 'kadencetoolkit', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
44
  }
45
+ add_action( 'plugins_loaded', 'kadencetoolkit_textdomain' );
46
+
47
+
48
  function kadencetoolkit_admin_scripts() {
49
  wp_register_style('kadencetoolkit_adminstyles', VIRTUE_TOOLKIT_URL . '/assets/toolkit_admin.css', false, 23);
50
  wp_enqueue_style('kadencetoolkit_adminstyles');
60
  update_option('kadence_toolkit_flushpermalinks', '1');
61
  }
62
  }
63
+ add_action('init', 'kadence_toolkit_flushpermalinks');
64
+
65
+