Version Description
Download this release
Release Info
| Developer | cbaldelomar |
| Plugin | |
| Version | 3.17 |
| Comparing to | |
| See all releases | |
Code changes from version 3.16 to 3.17
- README.md +4 -0
- public/class-register.php +5 -3
- public/class-vars.php +1 -1
- readme.txt +4 -0
- wc-shortcodes.php +1 -1
README.md
CHANGED
|
@@ -106,6 +106,10 @@ See our help article on [how to manually upload a plugin](http://knowledgebase.a
|
|
| 106 |
|
| 107 |
## Changelog ##
|
| 108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
### Version 3.16 ###
|
| 110 |
|
| 111 |
* Fixed bug with social icons shortcode
|
| 106 |
|
| 107 |
## Changelog ##
|
| 108 |
|
| 109 |
+
### Version 3.17 ###
|
| 110 |
+
|
| 111 |
+
* Fixed bug with class not being applied to button shortcode.
|
| 112 |
+
|
| 113 |
### Version 3.16 ###
|
| 114 |
|
| 115 |
* Fixed bug with social icons shortcode
|
public/class-register.php
CHANGED
|
@@ -395,17 +395,19 @@ class WPC_Shortcodes_Register extends WPC_Shortcodes_Vars {
|
|
| 395 |
|
| 396 |
$url_rel = ! empty( $atts['rel'] ) ? ' rel="'.esc_attr( $atts['rel'] ).'"' : '';
|
| 397 |
$url_target = ! empty( $atts['target'] ) ? ' target="_'.esc_attr( $atts['target'] ).'"' : '';
|
|
|
|
| 398 |
$atts['type'] = 'wc-shortcodes-button-' . $atts['type'];
|
| 399 |
|
| 400 |
$class = array();
|
| 401 |
$class[] = 'wc-shortcodes-button';
|
| 402 |
$class[] = $atts['type'];
|
| 403 |
$class[] = 'wc-shortcodes-button-position-' . $atts['position'];
|
| 404 |
-
if ( ! empty( $
|
| 405 |
-
$class[] = $
|
|
|
|
| 406 |
|
| 407 |
$button = null;
|
| 408 |
-
$button .= '<a href="' . esc_url( $atts['url'] ) . '" class="'.esc_attr( implode( ' ', $class ) ).'"'.$url_rel.$url_target.'
|
| 409 |
$button .= '<span class="wc-shortcodes-button-inner">';
|
| 410 |
if ( $atts['icon_left'] ) {
|
| 411 |
$button .= '<span class="wc-shortcodes-button-icon-left fa fa-'. esc_attr( $atts['icon_left'] ) .'"></span>';
|
| 395 |
|
| 396 |
$url_rel = ! empty( $atts['rel'] ) ? ' rel="'.esc_attr( $atts['rel'] ).'"' : '';
|
| 397 |
$url_target = ! empty( $atts['target'] ) ? ' target="_'.esc_attr( $atts['target'] ).'"' : '';
|
| 398 |
+
|
| 399 |
$atts['type'] = 'wc-shortcodes-button-' . $atts['type'];
|
| 400 |
|
| 401 |
$class = array();
|
| 402 |
$class[] = 'wc-shortcodes-button';
|
| 403 |
$class[] = $atts['type'];
|
| 404 |
$class[] = 'wc-shortcodes-button-position-' . $atts['position'];
|
| 405 |
+
if ( ! empty( $atts['class'] ) ) {
|
| 406 |
+
$class[] = $atts['class'];
|
| 407 |
+
}
|
| 408 |
|
| 409 |
$button = null;
|
| 410 |
+
$button .= '<a href="' . esc_url( $atts['url'] ) . '" class="'.esc_attr( implode( ' ', $class ) ).'"'.$url_rel.$url_target.' title="'. esc_attr( $atts['title'] ) .'">';
|
| 411 |
$button .= '<span class="wc-shortcodes-button-inner">';
|
| 412 |
if ( $atts['icon_left'] ) {
|
| 413 |
$button .= '<span class="wc-shortcodes-button-icon-left fa fa-'. esc_attr( $atts['icon_left'] ) .'"></span>';
|
public/class-vars.php
CHANGED
|
@@ -8,7 +8,7 @@ class WPC_Shortcodes_Vars {
|
|
| 8 |
*
|
| 9 |
* @var string
|
| 10 |
*/
|
| 11 |
-
const VERSION = '3.
|
| 12 |
const DB_VERSION = '1.0';
|
| 13 |
|
| 14 |
/**
|
| 8 |
*
|
| 9 |
* @var string
|
| 10 |
*/
|
| 11 |
+
const VERSION = '3.17';
|
| 12 |
const DB_VERSION = '1.0';
|
| 13 |
|
| 14 |
/**
|
readme.txt
CHANGED
|
@@ -113,6 +113,10 @@ See our help article on [how to manually upload a plugin](http://knowledgebase.a
|
|
| 113 |
|
| 114 |
== Changelog ==
|
| 115 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 116 |
= Version 3.16 =
|
| 117 |
|
| 118 |
* Fixed bug with social icons shortcode
|
| 113 |
|
| 114 |
== Changelog ==
|
| 115 |
|
| 116 |
+
= Version 3.17 =
|
| 117 |
+
|
| 118 |
+
* Fixed bug with class not being applied to button shortcode.
|
| 119 |
+
|
| 120 |
= Version 3.16 =
|
| 121 |
|
| 122 |
* Fixed bug with social icons shortcode
|
wc-shortcodes.php
CHANGED
|
@@ -5,7 +5,7 @@ Plugin URI: http://angiemakes.com/feminine-wordpress-blog-themes-women/
|
|
| 5 |
Description: A plugin that adds a useful family of shortcodes to your WordPress theme.
|
| 6 |
Author: Chris Baldelomar
|
| 7 |
Author URI: http://angiemakes.com/
|
| 8 |
-
Version: 3.
|
| 9 |
License: GPLv2 or later
|
| 10 |
*/
|
| 11 |
|
| 5 |
Description: A plugin that adds a useful family of shortcodes to your WordPress theme.
|
| 6 |
Author: Chris Baldelomar
|
| 7 |
Author URI: http://angiemakes.com/
|
| 8 |
+
Version: 3.17
|
| 9 |
License: GPLv2 or later
|
| 10 |
*/
|
| 11 |
|
