Kadence Themes Toolkit - Version 4.5

Version Description

  • Fix: issue of stripping out code.
Download this release

Release Info

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

Code changes from version 4.4 to 4.5

Files changed (3) hide show
  1. readme.txt +4 -1
  2. shortcodes.php +15 -15
  3. virtue_toolkit.php +1 -1
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: britner
3
  Tags:
4
  Requires at least: 4.0
5
  Tested up to: 4.8
6
- Stable tag: 4.4
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
  = 4.4 =
47
  * Update: New Welcome Page with helpful info.
48
  * Update: Add local jquery.validator
3
  Tags:
4
  Requires at least: 4.0
5
  Tested up to: 4.8
6
+ Stable tag: 4.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
43
 
44
  == Changelog ==
45
 
46
+ = 4.5 =
47
+ * Fix: issue of stripping out code.
48
+
49
  = 4.4 =
50
  * Update: New Welcome Page with helpful info.
51
  * Update: Add local jquery.validator
shortcodes.php CHANGED
@@ -17,7 +17,7 @@ function virtue_toolkit_accordion_shortcode_function($atts, $content ) {
17
  } else {
18
  $eo = "odd";
19
  }
20
- $tabs[] = '<div class="panel panel-default panel-'.esc_attr($eo).'"><div class="panel-heading"><a class="accordion-toggle '.esc_attr($tab['open']).'" data-toggle="collapse" data-parent="#accordionname'.esc_attr($id).'" href="#collapse'.esc_attr($id.$tab['link']).'"><h5><i class="icon-minus kt-icon-minus primary-color"></i><i class="icon-plus kt-icon-plus"></i>'.wp_kses_post($tab['title']).'</h5></a></div><div id="collapse'.esc_attr($id.$tab['link']).'" class="panel-collapse collapse '.esc_attr($tab['in']).'"><div class="panel-body postclass">'.do_shortcode(wp_kses_post($tab['content'])).'</div></div></div>';
21
  $i++;
22
  }
23
  $return = "\n".'<div class="panel-group kt-accordion" id="accordionname'.esc_attr($id).'">'.implode( "\n", $tabs ).'</div>'."\n";
@@ -61,7 +61,7 @@ function virtue_toolkit_tab_shortcode_function($atts, $content ) {
61
  $tabnav[] = '<li class="'.esc_attr($nav['active']).'"><a href="#sctab'.esc_attr($id.$nav['link']).'">'.wp_kses_post($nav['title']).'</a></li>';
62
  }
63
  foreach( $kt_tabs as $tab ){
64
- $tabs[] = '<div class="tab-pane clearfix '.esc_attr($tab['active']).'" id="sctab'.esc_attr($id.$tab['link']).'">'.do_shortcode( wp_kses_post($tab['content'])).'</div>';
65
  }
66
 
67
  $return = "\n".'<ul class="nav nav-tabs sc_tabs kt-tabs kt-sc-tabs kt-tabs-style'.esc_attr($style).'">'.implode( "\n", $tabnav ).'</ul> <div class="tab-content kt-tab-content postclass">'.implode( "\n", $tabs ).'</div>'."\n";
@@ -88,43 +88,43 @@ function virtue_toolkit_tab_pane_function($atts, $content ) {
88
 
89
  //Shortcode for columns
90
  function virtue_toolkit_column_shortcode_function( $atts, $content ) {
91
- return '<div class="row">'.do_shortcode(wp_kses_post($content)).'</div>';
92
  }
93
  function virtue_toolkit_hcolumn_shortcode_function( $atts, $content ) {
94
- return '<div class="row">'.do_shortcode(wp_kses_post($content)).'</div>';
95
  }
96
  function virtue_toolkit_column11_function( $atts, $content ) {
97
- return '<div class="col-md-11">'.do_shortcode(wp_kses_post($content)).'</div>';
98
  }
99
  function virtue_toolkit_column10_function( $atts, $content ) {
100
- return '<div class="col-md-10">'.do_shortcode(wp_kses_post($content)).'</div>';
101
  }
102
  function virtue_toolkit_column9_function( $atts, $content ) {
103
- return '<div class="col-md-9">'.do_shortcode(wp_kses_post($content)).'</div>';
104
  }
105
  function virtue_toolkit_column8_function( $atts, $content ) {
106
- return '<div class="col-md-8">'.do_shortcode(wp_kses_post($content)).'</div>';
107
  }
108
  function virtue_toolkit_column7_function( $atts, $content ) {
109
- return '<div class="col-md-7">'.do_shortcode(wp_kses_post($content)).'</div>';
110
  }
111
  function virtue_toolkit_column6_function( $atts, $content ) {
112
- return '<div class="col-md-6">'.do_shortcode(wp_kses_post($content)).'</div>';
113
  }
114
  function virtue_toolkit_column5_function( $atts, $content ) {
115
- return '<div class="col-md-5">'.do_shortcode(wp_kses_post($content)).'</div>';
116
  }
117
  function virtue_toolkit_column4_function( $atts, $content ) {
118
- return '<div class="col-md-4">'.do_shortcode(wp_kses_post($content)).'</div>';
119
  }
120
  function virtue_toolkit_column3_function( $atts, $content ) {
121
- return '<div class="col-md-3">'.do_shortcode(wp_kses_post($content)).'</div>';
122
  }
123
  function virtue_toolkit_column2_function( $atts, $content ) {
124
- return '<div class="col-md-2">'.do_shortcode(wp_kses_post($content)).'</div>';
125
  }
126
  function virtue_toolkit_column1_function( $atts, $content ) {
127
- return '<div class="col-md-1">'.do_shortcode(wp_kses_post($content)).'</div>';
128
  }
129
  //Shortcode for Icons
130
  function virtue_toolkit_icon_shortcode_function( $atts) {
17
  } else {
18
  $eo = "odd";
19
  }
20
+ $tabs[] = '<div class="panel panel-default panel-'.esc_attr($eo).'"><div class="panel-heading"><a class="accordion-toggle '.esc_attr($tab['open']).'" data-toggle="collapse" data-parent="#accordionname'.esc_attr($id).'" href="#collapse'.esc_attr($id.$tab['link']).'"><h5><i class="icon-minus kt-icon-minus primary-color"></i><i class="icon-plus kt-icon-plus"></i>'.wp_kses_post($tab['title']).'</h5></a></div><div id="collapse'.esc_attr($id.$tab['link']).'" class="panel-collapse collapse '.esc_attr($tab['in']).'"><div class="panel-body postclass">'.do_shortcode($tab['content']).'</div></div></div>';
21
  $i++;
22
  }
23
  $return = "\n".'<div class="panel-group kt-accordion" id="accordionname'.esc_attr($id).'">'.implode( "\n", $tabs ).'</div>'."\n";
61
  $tabnav[] = '<li class="'.esc_attr($nav['active']).'"><a href="#sctab'.esc_attr($id.$nav['link']).'">'.wp_kses_post($nav['title']).'</a></li>';
62
  }
63
  foreach( $kt_tabs as $tab ){
64
+ $tabs[] = '<div class="tab-pane clearfix '.esc_attr($tab['active']).'" id="sctab'.esc_attr($id.$tab['link']).'">'.do_shortcode( $tab['content']).'</div>';
65
  }
66
 
67
  $return = "\n".'<ul class="nav nav-tabs sc_tabs kt-tabs kt-sc-tabs kt-tabs-style'.esc_attr($style).'">'.implode( "\n", $tabnav ).'</ul> <div class="tab-content kt-tab-content postclass">'.implode( "\n", $tabs ).'</div>'."\n";
88
 
89
  //Shortcode for columns
90
  function virtue_toolkit_column_shortcode_function( $atts, $content ) {
91
+ return '<div class="row">'.do_shortcode($content).'</div>';
92
  }
93
  function virtue_toolkit_hcolumn_shortcode_function( $atts, $content ) {
94
+ return '<div class="row">'.do_shortcode($content).'</div>';
95
  }
96
  function virtue_toolkit_column11_function( $atts, $content ) {
97
+ return '<div class="col-md-11">'.do_shortcode($content).'</div>';
98
  }
99
  function virtue_toolkit_column10_function( $atts, $content ) {
100
+ return '<div class="col-md-10">'.do_shortcode($content).'</div>';
101
  }
102
  function virtue_toolkit_column9_function( $atts, $content ) {
103
+ return '<div class="col-md-9">'.do_shortcode($content).'</div>';
104
  }
105
  function virtue_toolkit_column8_function( $atts, $content ) {
106
+ return '<div class="col-md-8">'.do_shortcode($content).'</div>';
107
  }
108
  function virtue_toolkit_column7_function( $atts, $content ) {
109
+ return '<div class="col-md-7">'.do_shortcode($content).'</div>';
110
  }
111
  function virtue_toolkit_column6_function( $atts, $content ) {
112
+ return '<div class="col-md-6">'.do_shortcode($content).'</div>';
113
  }
114
  function virtue_toolkit_column5_function( $atts, $content ) {
115
+ return '<div class="col-md-5">'.do_shortcode($content).'</div>';
116
  }
117
  function virtue_toolkit_column4_function( $atts, $content ) {
118
+ return '<div class="col-md-4">'.do_shortcode($content).'</div>';
119
  }
120
  function virtue_toolkit_column3_function( $atts, $content ) {
121
+ return '<div class="col-md-3">'.do_shortcode($content).'</div>';
122
  }
123
  function virtue_toolkit_column2_function( $atts, $content ) {
124
+ return '<div class="col-md-2">'.do_shortcode($content).'</div>';
125
  }
126
  function virtue_toolkit_column1_function( $atts, $content ) {
127
+ return '<div class="col-md-1">'.do_shortcode($content).'</div>';
128
  }
129
  //Shortcode for Icons
130
  function virtue_toolkit_icon_shortcode_function( $atts) {
virtue_toolkit.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  Plugin Name: Kadence Toolkit
5
  Description: Custom Portfolio and Shortcode functionality for free Kadence WordPress themes
6
- Version: 4.4
7
  Author: Kadence Themes
8
  Author URI: https://kadencethemes.com/
9
  License: GPLv2 or later
3
  /*
4
  Plugin Name: Kadence Toolkit
5
  Description: Custom Portfolio and Shortcode functionality for free Kadence WordPress themes
6
+ Version: 4.5
7
  Author: Kadence Themes
8
  Author URI: https://kadencethemes.com/
9
  License: GPLv2 or later