Version Description
Download this release
Release Info
| Developer | cbaldelomar |
| Plugin | |
| Version | 1.65 |
| Comparing to | |
| See all releases | |
Code changes from version 1.64 to 1.65
- README.md +5 -0
- includes/css/style.css +3 -0
- includes/mce/js/shortcodes-tinymce-4.js +1 -1
- includes/shortcode-functions.php +11 -4
- readme.txt +5 -0
- wc-shortcodes.php +2 -2
README.md
CHANGED
|
@@ -66,6 +66,11 @@ Use the shortcode manager in the TinyMCE text editor
|
|
| 66 |
|
| 67 |
## Changelog ##
|
| 68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
### Version 1.64
|
| 70 |
|
| 71 |
* Update to latest version of font awesome 4.3.0
|
| 66 |
|
| 67 |
## Changelog ##
|
| 68 |
|
| 69 |
+
### Version 1.65
|
| 70 |
+
|
| 71 |
+
* improved heading shortcode
|
| 72 |
+
* css improvement for social icons
|
| 73 |
+
|
| 74 |
### Version 1.64
|
| 75 |
|
| 76 |
* Update to latest version of font awesome 4.3.0
|
includes/css/style.css
CHANGED
|
@@ -845,6 +845,9 @@
|
|
| 845 |
.wc-shortcodes-social-icons.wc-shortcodes-maxheight-68 i { font-size: 34px; line-height: 68px; height: 68px; width: 68px; }
|
| 846 |
.wc-shortcodes-social-icons.wc-shortcodes-maxheight-70 i { font-size: 36px; line-height: 70px; height: 70px; width: 70px; }
|
| 847 |
|
|
|
|
|
|
|
|
|
|
| 848 |
.wc-shortcodes-social-icons li:last-child {
|
| 849 |
margin-right: 0;
|
| 850 |
}
|
| 845 |
.wc-shortcodes-social-icons.wc-shortcodes-maxheight-68 i { font-size: 34px; line-height: 68px; height: 68px; width: 68px; }
|
| 846 |
.wc-shortcodes-social-icons.wc-shortcodes-maxheight-70 i { font-size: 36px; line-height: 70px; height: 70px; width: 70px; }
|
| 847 |
|
| 848 |
+
.wc-shortcodes-social-icons li:first-child {
|
| 849 |
+
margin-left: 0;
|
| 850 |
+
}
|
| 851 |
.wc-shortcodes-social-icons li:last-child {
|
| 852 |
margin-right: 0;
|
| 853 |
}
|
includes/mce/js/shortcodes-tinymce-4.js
CHANGED
|
@@ -97,7 +97,7 @@
|
|
| 97 |
{
|
| 98 |
text: "Heading",
|
| 99 |
onclick: function(){
|
| 100 |
-
editor.insertContent('[wc_heading type="h1" title="' + wcDummyContent + '" text_align="left"]');
|
| 101 |
}
|
| 102 |
},
|
| 103 |
{
|
| 97 |
{
|
| 98 |
text: "Heading",
|
| 99 |
onclick: function(){
|
| 100 |
+
editor.insertContent('[wc_heading type="h1" title="' + wcDummyContent + '" margin_top="" margin_bottom="" text_align="left" font_size="" color="" class="" icon_left="" icon_right="" icon_spacing=""]');
|
| 101 |
}
|
| 102 |
},
|
| 103 |
{
|
includes/shortcode-functions.php
CHANGED
|
@@ -845,7 +845,8 @@ if( !function_exists('wc_shortcodes_heading') ) {
|
|
| 845 |
'color' => '',
|
| 846 |
'class' => '',
|
| 847 |
'icon_left' => '',
|
| 848 |
-
'icon_right' => ''
|
|
|
|
| 849 |
), $atts ) );
|
| 850 |
|
| 851 |
$style_attr = '';
|
|
@@ -873,9 +874,15 @@ if( !function_exists('wc_shortcodes_heading') ) {
|
|
| 873 |
$class = trim( 'entry-title ' . $class );
|
| 874 |
|
| 875 |
$output = '<'.$type.' class="wc-shortcodes-heading '. $text_align .' '. $class .'" style="'.$style_attr.'"><span>';
|
| 876 |
-
|
| 877 |
-
|
| 878 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 879 |
$output .= '</span></'.$type.'>';
|
| 880 |
|
| 881 |
if ( 'h1' == $type )
|
| 845 |
'color' => '',
|
| 846 |
'class' => '',
|
| 847 |
'icon_left' => '',
|
| 848 |
+
'icon_right' => '',
|
| 849 |
+
'icon_spacing' => '',
|
| 850 |
), $atts ) );
|
| 851 |
|
| 852 |
$style_attr = '';
|
| 874 |
$class = trim( 'entry-title ' . $class );
|
| 875 |
|
| 876 |
$output = '<'.$type.' class="wc-shortcodes-heading '. $text_align .' '. $class .'" style="'.$style_attr.'"><span>';
|
| 877 |
+
|
| 878 |
+
if ( $icon_left )
|
| 879 |
+
$output .= '<i class="wc-shortcodes-button-icon-left fa fa-'. $icon_left .'" style="margin-right:'.$icon_spacing.'"></i>';
|
| 880 |
+
|
| 881 |
+
$output .= $title;
|
| 882 |
+
|
| 883 |
+
if ( $icon_right )
|
| 884 |
+
$output .= '<i class="wc-shortcodes-button-icon-right fa fa-'. $icon_right .'" style="margin-left:'.$icon_spacing.'"></i>';
|
| 885 |
+
|
| 886 |
$output .= '</span></'.$type.'>';
|
| 887 |
|
| 888 |
if ( 'h1' == $type )
|
readme.txt
CHANGED
|
@@ -88,6 +88,11 @@ Use the shortcode manager in the TinyMCE text editor
|
|
| 88 |
|
| 89 |
== Changelog ==
|
| 90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
= Version 1.64 =
|
| 92 |
|
| 93 |
* Update to latest version of font awesome 4.3.0
|
| 88 |
|
| 89 |
== Changelog ==
|
| 90 |
|
| 91 |
+
= Version 1.65 =
|
| 92 |
+
|
| 93 |
+
* improved heading shortcode
|
| 94 |
+
* css improvement for social icons
|
| 95 |
+
|
| 96 |
= Version 1.64 =
|
| 97 |
|
| 98 |
* Update to latest version of font awesome 4.3.0
|
wc-shortcodes.php
CHANGED
|
@@ -5,11 +5,11 @@ Plugin URI: http://webplantmedia.com/starter-themes/wordpresscanvas/features/sho
|
|
| 5 |
Description: A family of shortcodes to enhance site functionality.
|
| 6 |
Author: Chris Baldelomar
|
| 7 |
Author URI: http://webplantmedia.com/
|
| 8 |
-
Version: 1.
|
| 9 |
License: GPLv2 or later
|
| 10 |
*/
|
| 11 |
|
| 12 |
-
define( 'WC_SHORTCODES_VERSION', '1.
|
| 13 |
define( 'WC_SHORTCODES_PREFIX', 'wc_shortcodes_' );
|
| 14 |
define( '_WC_SHORTCODES_PREFIX', '_wc_shortcodes_' );
|
| 15 |
define( 'WC_SHORTCODES_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
| 5 |
Description: A family of shortcodes to enhance site functionality.
|
| 6 |
Author: Chris Baldelomar
|
| 7 |
Author URI: http://webplantmedia.com/
|
| 8 |
+
Version: 1.65
|
| 9 |
License: GPLv2 or later
|
| 10 |
*/
|
| 11 |
|
| 12 |
+
define( 'WC_SHORTCODES_VERSION', '1.65' );
|
| 13 |
define( 'WC_SHORTCODES_PREFIX', 'wc_shortcodes_' );
|
| 14 |
define( '_WC_SHORTCODES_PREFIX', '_wc_shortcodes_' );
|
| 15 |
define( 'WC_SHORTCODES_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
