Version Description
- Add target option to button shortcode.
Download this release
Release Info
Developer | britner |
Plugin | Kadence Themes Toolkit |
Version | 1.8 |
Comparing to | |
See all releases |
Code changes from version 1.7 to 1.8
- post-types.php +1 -1
- readme.txt +4 -1
- shortcodes.php +2 -1
- shortcodes/btns/btns_popup.php +14 -3
- virtue_toolkit.php +1 -1
post-types.php
CHANGED
@@ -29,7 +29,7 @@ function portfolio_post_init() {
|
|
29 |
'capability_type' => 'post',
|
30 |
'hierarchical' => false,
|
31 |
'menu_position' => 8,
|
32 |
-
'menu_icon' =>
|
33 |
'supports' => array( 'title', 'editor', 'author', 'page-attributes', 'thumbnail', 'comments' )
|
34 |
);
|
35 |
// Initialize Taxonomy Labels
|
29 |
'capability_type' => 'post',
|
30 |
'hierarchical' => false,
|
31 |
'menu_position' => 8,
|
32 |
+
'menu_icon' => 'dashicons-format-gallery',
|
33 |
'supports' => array( 'title', 'editor', 'author', 'page-attributes', 'thumbnail', 'comments' )
|
34 |
);
|
35 |
// Initialize Taxonomy Labels
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: britner
|
|
3 |
Tags:
|
4 |
Requires at least: 3.2
|
5 |
Tested up to: 3.9
|
6 |
-
Stable tag: 1.
|
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 |
= 1.7 =
|
26 |
* Fix Missing files
|
27 |
|
3 |
Tags:
|
4 |
Requires at least: 3.2
|
5 |
Tested up to: 3.9
|
6 |
+
Stable tag: 1.8
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
22 |
|
23 |
== Changelog ==
|
24 |
|
25 |
+
= 1.8 =
|
26 |
+
* Add target option to button shortcode.
|
27 |
+
|
28 |
= 1.7 =
|
29 |
* Fix Missing files
|
30 |
|
shortcodes.php
CHANGED
@@ -187,9 +187,10 @@ function kad_button_shortcode_function( $atts) {
|
|
187 |
'bcolor' => '',
|
188 |
'link' => '',
|
189 |
'text' => '',
|
|
|
190 |
'tcolor' => '',
|
191 |
), $atts));
|
192 |
-
return '<a href="'.$link.'" class="kad-btn kad-btn-primary" style="background-color:'.$bcolor.'; color:'.$tcolor.'">'.$text.'</a>';
|
193 |
}
|
194 |
function kad_blockquote_shortcode_function( $atts, $content) {
|
195 |
extract(shortcode_atts(array(
|
187 |
'bcolor' => '',
|
188 |
'link' => '',
|
189 |
'text' => '',
|
190 |
+
'target' => '_self',
|
191 |
'tcolor' => '',
|
192 |
), $atts));
|
193 |
+
return '<a href="'.$link.'" class="kad-btn kad-btn-primary" target="'.$target.'" style="background-color:'.$bcolor.'; color:'.$tcolor.'">'.$text.'</a>';
|
194 |
}
|
195 |
function kad_blockquote_shortcode_function( $atts, $content) {
|
196 |
extract(shortcode_atts(array(
|
shortcodes/btns/btns_popup.php
CHANGED
@@ -32,7 +32,8 @@ var ButtonDialog = {
|
|
32 |
var texthex = jQuery('#icon-dialog input#text-color-hex').val();
|
33 |
var bcolor = jQuery('#icon-dialog select#btn-color').val();
|
34 |
var btnhex = jQuery('#icon-dialog input#btn-color-hex').val();
|
35 |
-
var btnlink = jQuery('#icon-dialog input#btn-link').val();
|
|
|
36 |
|
37 |
var output = '';
|
38 |
|
@@ -53,7 +54,8 @@ var ButtonDialog = {
|
|
53 |
output += '';
|
54 |
}
|
55 |
}
|
56 |
-
output += 'link="' + btnlink +'"';
|
|
|
57 |
output += ']';
|
58 |
|
59 |
tinyMCEPopup.execCommand('mceInsertContent', false, output);
|
@@ -66,7 +68,7 @@ tinyMCEPopup.onInit.add(ButtonDialog.init, ButtonDialog);
|
|
66 |
|
67 |
</script>
|
68 |
|
69 |
-
<style type="text/css" media="screen"> .kad-popup {padding: 0 8px; font-size: 0;} #icon-dialog {font-size: 12px;} #icon-dialog label {font-size:14px; display:block; padding:4px;} #icon-dialog label.hex {font-size:12px; line-height:24px; display:inline-block; padding:6px 4px 6px 12px;} #icon-dialog select {display:block; height:28px; width:300px; font-size:12px;} #icon-dialog input {display:block; width:300px; height:24px;} #icon-dialog input.btn-hex {display:inline-block; width:120px; height:24px;} #icon-dialog a#insert {margin-top:15px;} .linebreak {margin-bottom:6px; border-bottom: solid 1px #d7d7d7; padding-bottom:6px}
|
70 |
|
71 |
</style>
|
72 |
|
@@ -142,6 +144,15 @@ tinyMCEPopup.onInit.add(ButtonDialog.init, ButtonDialog);
|
|
142 |
<input type="text" name="btn-link" value="" id="btn-link" />
|
143 |
</div>
|
144 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
<div>
|
146 |
<a href="javascript:ButtonDialog.insert(ButtonDialog.local_ed)" id="insert" style="display: block; line-height: 24px; text-align:center"><?php _e("Insert", "virtue"); ?></a>
|
147 |
</div>
|
32 |
var texthex = jQuery('#icon-dialog input#text-color-hex').val();
|
33 |
var bcolor = jQuery('#icon-dialog select#btn-color').val();
|
34 |
var btnhex = jQuery('#icon-dialog input#btn-color-hex').val();
|
35 |
+
var btnlink = jQuery('#icon-dialog input#btn-link').val();
|
36 |
+
var btarget = jQuery('#icon-dialog select#btn-target').val();
|
37 |
|
38 |
var output = '';
|
39 |
|
54 |
output += '';
|
55 |
}
|
56 |
}
|
57 |
+
output += 'link="' + btnlink +'" ';
|
58 |
+
output += 'target="' + btarget +'"';
|
59 |
output += ']';
|
60 |
|
61 |
tinyMCEPopup.execCommand('mceInsertContent', false, output);
|
68 |
|
69 |
</script>
|
70 |
|
71 |
+
<style type="text/css" media="screen"> .kad-popup {padding: 0 8px 8px; font-size: 0;} #icon-dialog {font-size: 12px;} #icon-dialog label {font-size:14px; display:block; padding:4px;} #icon-dialog label.hex {font-size:12px; line-height:24px; display:inline-block; padding:6px 4px 6px 12px;} #icon-dialog select {display:block; height:28px; width:300px; font-size:12px;} #icon-dialog input {display:block; width:300px; height:24px;} #icon-dialog input.btn-hex {display:inline-block; width:120px; height:24px;} #icon-dialog a#insert {margin-top:15px;} .linebreak {margin-bottom:6px; border-bottom: solid 1px #d7d7d7; padding-bottom:6px}
|
72 |
|
73 |
</style>
|
74 |
|
144 |
<input type="text" name="btn-link" value="" id="btn-link" />
|
145 |
</div>
|
146 |
</div>
|
147 |
+
<div class="linebreak">
|
148 |
+
<div>
|
149 |
+
<label for="btn-target"><?php _e("Button Link Target", "virtue"); ?></label>
|
150 |
+
<select name="btn-target" id="btn-target">
|
151 |
+
<option value="_self"><?php _e("Same Window", "virtue"); ?></option>
|
152 |
+
<option value="_blank"><?php _e("New Window/Tab", "virtue"); ?></option>
|
153 |
+
</select>
|
154 |
+
</div>
|
155 |
+
</div>
|
156 |
<div>
|
157 |
<a href="javascript:ButtonDialog.insert(ButtonDialog.local_ed)" id="insert" style="display: block; line-height: 24px; text-align:center"><?php _e("Insert", "virtue"); ?></a>
|
158 |
</div>
|
virtue_toolkit.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/*
|
4 |
Plugin Name: Virtue ToolKit
|
5 |
Description: Custom Portfolio and Shortcode functionality for Virtue Theme
|
6 |
-
Version: 1.
|
7 |
Author: Kadence Themes
|
8 |
Author URI: http://kadencethemes.com/
|
9 |
License: GPLv2 or later
|
3 |
/*
|
4 |
Plugin Name: Virtue ToolKit
|
5 |
Description: Custom Portfolio and Shortcode functionality for Virtue Theme
|
6 |
+
Version: 1.8
|
7 |
Author: Kadence Themes
|
8 |
Author URI: http://kadencethemes.com/
|
9 |
License: GPLv2 or later
|