Version Description
Download this release
Release Info
Developer | cbaldelomar |
Plugin | Shortcodes by Angie Makes |
Version | 1.93 |
Comparing to | |
See all releases |
Code changes from version 1.92 to 1.93
- README.md +4 -0
- includes/css/style.css +3 -0
- includes/functions.php +6 -0
- includes/options.php +4 -0
- includes/vendors/wpc-settings-framework/class-wpc-settings-framework.php +6 -0
- readme.txt +4 -0
- wc-shortcodes.php +3 -2
README.md
CHANGED
@@ -66,6 +66,10 @@ Use the shortcode manager in the TinyMCE text editor
|
|
66 |
|
67 |
## Changelog ##
|
68 |
|
|
|
|
|
|
|
|
|
69 |
### Version 1.92
|
70 |
|
71 |
* removed the_excerpt filter for share buttons
|
66 |
|
67 |
## Changelog ##
|
68 |
|
69 |
+
### Version 1.93
|
70 |
+
|
71 |
+
* added ability for themes to disable share buttons filter
|
72 |
+
|
73 |
### Version 1.92
|
74 |
|
75 |
* removed the_excerpt filter for share buttons
|
includes/css/style.css
CHANGED
@@ -896,6 +896,9 @@
|
|
896 |
background-color: #999999;
|
897 |
color: #ffffff;
|
898 |
}
|
|
|
|
|
|
|
899 |
.wc-shortcodes-share-buttons-format-icon-text li span {
|
900 |
margin-left: 0.3125em;
|
901 |
}
|
896 |
background-color: #999999;
|
897 |
color: #ffffff;
|
898 |
}
|
899 |
+
.wc-shortcodes-share-buttons.wc-shortcodes-share-buttons-format-icon-text li i {
|
900 |
+
text-align: center;
|
901 |
+
}
|
902 |
.wc-shortcodes-share-buttons-format-icon-text li span {
|
903 |
margin-left: 0.3125em;
|
904 |
}
|
includes/functions.php
CHANGED
@@ -406,6 +406,12 @@ function wc_shortcodes_display_share_buttons( $content ) {
|
|
406 |
return $content;
|
407 |
}
|
408 |
function wc_shortcodes_share_buttons_filters() {
|
|
|
|
|
|
|
|
|
|
|
|
|
409 |
$share_buttons_on_post_page = get_option( WC_SHORTCODES_PREFIX . 'share_buttons_on_post_page' );
|
410 |
$share_buttons_on_blog_page = get_option( WC_SHORTCODES_PREFIX . 'share_buttons_on_blog_page' );
|
411 |
$share_buttons_on_archive_page = get_option( WC_SHORTCODES_PREFIX . 'share_buttons_on_archive_page' );
|
406 |
return $content;
|
407 |
}
|
408 |
function wc_shortcodes_share_buttons_filters() {
|
409 |
+
global $wc_shortcodes_theme_support;
|
410 |
+
|
411 |
+
if ( $wc_shortcodes_theme_support[ 'share_buttons_filter_disable' ] ) {
|
412 |
+
return;
|
413 |
+
}
|
414 |
+
|
415 |
$share_buttons_on_post_page = get_option( WC_SHORTCODES_PREFIX . 'share_buttons_on_post_page' );
|
416 |
$share_buttons_on_blog_page = get_option( WC_SHORTCODES_PREFIX . 'share_buttons_on_blog_page' );
|
417 |
$share_buttons_on_archive_page = get_option( WC_SHORTCODES_PREFIX . 'share_buttons_on_archive_page' );
|
includes/options.php
CHANGED
@@ -95,6 +95,7 @@ function wc_shortcodes_options( $options ) {
|
|
95 |
'description' => '',
|
96 |
'label' => 'Add share buttons to the bottom of your post pages',
|
97 |
'type' => 'checkbox',
|
|
|
98 |
),
|
99 |
array(
|
100 |
'option_name' => 'share_buttons_on_blog_page',
|
@@ -103,6 +104,7 @@ function wc_shortcodes_options( $options ) {
|
|
103 |
'description' => '',
|
104 |
'label' => 'Add share buttons to the bottom of your posts in your blog',
|
105 |
'type' => 'checkbox',
|
|
|
106 |
),
|
107 |
array(
|
108 |
'option_name' => 'share_buttons_on_archive_page',
|
@@ -111,6 +113,7 @@ function wc_shortcodes_options( $options ) {
|
|
111 |
'description' => '',
|
112 |
'label' => 'Add share buttons to the bottom of your posts in your category, tag, date, and author archive pages.',
|
113 |
'type' => 'checkbox',
|
|
|
114 |
),
|
115 |
array(
|
116 |
'option_name' => 'share_buttons_on_product_page',
|
@@ -119,6 +122,7 @@ function wc_shortcodes_options( $options ) {
|
|
119 |
'description' => '',
|
120 |
'label' => 'Add share buttons to the bottom of your WooCommerce product page.',
|
121 |
'type' => 'checkbox',
|
|
|
122 |
),
|
123 |
),
|
124 |
),
|
95 |
'description' => '',
|
96 |
'label' => 'Add share buttons to the bottom of your post pages',
|
97 |
'type' => 'checkbox',
|
98 |
+
'hide' => $wc_shortcodes_theme_support['share_buttons_filter_disable'],
|
99 |
),
|
100 |
array(
|
101 |
'option_name' => 'share_buttons_on_blog_page',
|
104 |
'description' => '',
|
105 |
'label' => 'Add share buttons to the bottom of your posts in your blog',
|
106 |
'type' => 'checkbox',
|
107 |
+
'hide' => $wc_shortcodes_theme_support['share_buttons_filter_disable'],
|
108 |
),
|
109 |
array(
|
110 |
'option_name' => 'share_buttons_on_archive_page',
|
113 |
'description' => '',
|
114 |
'label' => 'Add share buttons to the bottom of your posts in your category, tag, date, and author archive pages.',
|
115 |
'type' => 'checkbox',
|
116 |
+
'hide' => $wc_shortcodes_theme_support['share_buttons_filter_disable'],
|
117 |
),
|
118 |
array(
|
119 |
'option_name' => 'share_buttons_on_product_page',
|
122 |
'description' => '',
|
123 |
'label' => 'Add share buttons to the bottom of your WooCommerce product page.',
|
124 |
'type' => 'checkbox',
|
125 |
+
'hide' => $wc_shortcodes_theme_support['share_buttons_filter_disable'],
|
126 |
),
|
127 |
),
|
128 |
),
|
includes/vendors/wpc-settings-framework/class-wpc-settings-framework.php
CHANGED
@@ -233,6 +233,9 @@ class WC_Shortcodes_Settings_Framework {
|
|
233 |
if ( isset( $oo['group'] ) && is_array( $oo['group'] ) ) {
|
234 |
foreach ( $oo['group'] as $key => $ooo ) {
|
235 |
if ( isset( $ooo['option_name'] ) ) {
|
|
|
|
|
|
|
236 |
$ooo['option_name'] = $this->plugin_prefix . $ooo['option_name'];
|
237 |
$oo['group'][ $key ]['option_name'] = $ooo['option_name'];
|
238 |
|
@@ -251,6 +254,9 @@ class WC_Shortcodes_Settings_Framework {
|
|
251 |
}
|
252 |
else {
|
253 |
if ( isset( $oo['option_name'] ) ) {
|
|
|
|
|
|
|
254 |
$oo['option_name'] = $this->plugin_prefix . $oo['option_name'];
|
255 |
|
256 |
$callback = $this->get_callback( $oo );
|
233 |
if ( isset( $oo['group'] ) && is_array( $oo['group'] ) ) {
|
234 |
foreach ( $oo['group'] as $key => $ooo ) {
|
235 |
if ( isset( $ooo['option_name'] ) ) {
|
236 |
+
if ( isset( $ooo['hide'] ) && $ooo['hide'] )
|
237 |
+
continue;
|
238 |
+
|
239 |
$ooo['option_name'] = $this->plugin_prefix . $ooo['option_name'];
|
240 |
$oo['group'][ $key ]['option_name'] = $ooo['option_name'];
|
241 |
|
254 |
}
|
255 |
else {
|
256 |
if ( isset( $oo['option_name'] ) ) {
|
257 |
+
if ( isset( $oo['hide'] ) && $oo['hide'] )
|
258 |
+
continue;
|
259 |
+
|
260 |
$oo['option_name'] = $this->plugin_prefix . $oo['option_name'];
|
261 |
|
262 |
$callback = $this->get_callback( $oo );
|
readme.txt
CHANGED
@@ -88,6 +88,10 @@ Use the shortcode manager in the TinyMCE text editor
|
|
88 |
|
89 |
== Changelog ==
|
90 |
|
|
|
|
|
|
|
|
|
91 |
= Version 1.92 =
|
92 |
|
93 |
* removed the_excerpt filter for share buttons
|
88 |
|
89 |
== Changelog ==
|
90 |
|
91 |
+
= Version 1.93 =
|
92 |
+
|
93 |
+
* added ability for themes to disable share buttons filter
|
94 |
+
|
95 |
= Version 1.92 =
|
96 |
|
97 |
* removed the_excerpt filter for share buttons
|
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__ ) );
|
@@ -51,6 +51,7 @@ $wc_shortcodes_share_buttons = array(
|
|
51 |
$wc_shortcodes_theme_support = array(
|
52 |
'fullwidth_container' => '#main',
|
53 |
'social_icons_format' => 'image',
|
|
|
54 |
'share_buttons_on_post_page' => false,
|
55 |
'share_buttons_on_blog_page' => false,
|
56 |
'share_buttons_on_archive_page' => false,
|
5 |
Description: A family of shortcodes to enhance site functionality.
|
6 |
Author: Chris Baldelomar
|
7 |
Author URI: http://webplantmedia.com/
|
8 |
+
Version: 1.93
|
9 |
License: GPLv2 or later
|
10 |
*/
|
11 |
|
12 |
+
define( 'WC_SHORTCODES_VERSION', '1.93' );
|
13 |
define( 'WC_SHORTCODES_PREFIX', 'wc_shortcodes_' );
|
14 |
define( '_WC_SHORTCODES_PREFIX', '_wc_shortcodes_' );
|
15 |
define( 'WC_SHORTCODES_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
51 |
$wc_shortcodes_theme_support = array(
|
52 |
'fullwidth_container' => '#main',
|
53 |
'social_icons_format' => 'image',
|
54 |
+
'share_buttons_filter_disable' => false,
|
55 |
'share_buttons_on_post_page' => false,
|
56 |
'share_buttons_on_blog_page' => false,
|
57 |
'share_buttons_on_archive_page' => false,
|