Shortcodes by Angie Makes - Version 1.88

Version Description

Download this release

Release Info

Developer cbaldelomar
Plugin Icon wp plugin Shortcodes by Angie Makes
Version 1.88
Comparing to
See all releases

Code changes from version 1.87 to 1.88

README.md CHANGED
@@ -66,6 +66,10 @@ Use the shortcode manager in the TinyMCE text editor
66
 
67
  ## Changelog ##
68
 
 
 
 
 
69
  ### Version 1.87
70
 
71
  * Added class name to paginate navigation
66
 
67
  ## Changelog ##
68
 
69
+ ### Version 1.88
70
+
71
+ * updated share button shortcode
72
+
73
  ### Version 1.87
74
 
75
  * Added class name to paginate navigation
includes/functions.php CHANGED
@@ -381,7 +381,7 @@ function wc_shortcodes_display_share_buttons( $content ) {
381
  return $content;
382
  }
383
 
384
- $share = wc_shortcodes_get_share_buttons();
385
 
386
  if ( empty( $share ) ) {
387
  return $content;
@@ -420,23 +420,3 @@ function wc_shortcodes_share_buttons_filters() {
420
  }
421
  add_action( 'wp', 'wc_shortcodes_share_buttons_filters', 11 );
422
 
423
- function wc_shortcodes_get_share_buttons() {
424
- $html = null;
425
- $share_buttons = null;
426
-
427
- $share_buttons = do_shortcode( '[wc_share]' );
428
-
429
- if ( empty( $share_buttons ) ) {
430
- return '';
431
- }
432
-
433
- $html .= '<div class="wc-share-buttons-container">';
434
- $html .= apply_filters( 'wc_shortcodes_before_share_buttons', '' );
435
- $html .= '<div class="share-buttons">';
436
- $html .= '<div class="share-text">' . __( 'Share', 'wpcanvas2' ) . '</div>';
437
- $html .= $share_buttons;
438
- $html .= '</div>';
439
- $html .= '</div>';
440
-
441
- return $html;
442
- }
381
  return $content;
382
  }
383
 
384
+ $share = do_shortcode( '[wc_share_buttons]' );
385
 
386
  if ( empty( $share ) ) {
387
  return $content;
420
  }
421
  add_action( 'wp', 'wc_shortcodes_share_buttons_filters', 11 );
422
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/mce/js/shortcodes-tinymce-4.js CHANGED
@@ -121,7 +121,7 @@
121
  {
122
  text: "Share Buttons",
123
  onclick: function(){
124
- editor.insertContent('[wc_share class=""]');
125
  }
126
  },
127
  {
121
  {
122
  text: "Share Buttons",
123
  onclick: function(){
124
+ editor.insertContent('[wc_share_buttons]');
125
  }
126
  },
127
  {
includes/shortcode-functions.php CHANGED
@@ -1657,3 +1657,26 @@ if ( ! function_exists('wc_shortcodes_share_buttons') ) {
1657
  }
1658
  add_shortcode( 'wc_share', 'wc_shortcodes_share_buttons' );
1659
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1657
  }
1658
  add_shortcode( 'wc_share', 'wc_shortcodes_share_buttons' );
1659
  }
1660
+ if ( ! function_exists('wc_shortcodes_get_share_buttons') ) {
1661
+ function wc_shortcodes_get_share_buttons() {
1662
+ $html = null;
1663
+ $share_buttons = null;
1664
+
1665
+ $share_buttons = wc_shortcodes_share_buttons( null );
1666
+
1667
+ if ( empty( $share_buttons ) ) {
1668
+ return '';
1669
+ }
1670
+
1671
+ $html .= '<div class="wc-share-buttons-container">';
1672
+ $html .= apply_filters( 'wc_shortcodes_before_share_buttons', '' );
1673
+ $html .= '<div class="share-buttons">';
1674
+ $html .= '<div class="share-text">' . __( 'Share', 'wpcanvas2' ) . '</div>';
1675
+ $html .= $share_buttons;
1676
+ $html .= '</div>';
1677
+ $html .= '</div>';
1678
+
1679
+ return $html;
1680
+ }
1681
+ add_shortcode( 'wc_share_buttons', 'wc_shortcodes_get_share_buttons' );
1682
+ }
readme.txt CHANGED
@@ -88,6 +88,10 @@ Use the shortcode manager in the TinyMCE text editor
88
 
89
  == Changelog ==
90
 
 
 
 
 
91
  = Version 1.87 =
92
 
93
  * Added class name to paginate navigation
88
 
89
  == Changelog ==
90
 
91
+ = Version 1.88 =
92
+
93
+ * updated share button shortcode
94
+
95
  = Version 1.87 =
96
 
97
  * Added class name to paginate navigation
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.87
9
  License: GPLv2 or later
10
  */
11
 
12
- define( 'WC_SHORTCODES_VERSION', '1.87' );
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.88
9
  License: GPLv2 or later
10
  */
11
 
12
+ define( 'WC_SHORTCODES_VERSION', '1.88' );
13
  define( 'WC_SHORTCODES_PREFIX', 'wc_shortcodes_' );
14
  define( '_WC_SHORTCODES_PREFIX', '_wc_shortcodes_' );
15
  define( 'WC_SHORTCODES_PLUGIN_URL', plugin_dir_url( __FILE__ ) );