Version Description
- Bugfix for excerpts
Download this release
Release Info
Developer | kasal |
Plugin | Hupso Share Buttons for Twitter, Facebook & Google+ |
Version | 3.9.13 |
Comparing to | |
See all releases |
Code changes from version 3.9.12 to 3.9.13
- readme.txt +5 -1
- share-buttons-hupso.php +9 -4
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.hupso.com/
|
|
4 |
Tags: twitter, facebook, google, social sharing, share buttons, social share buttons, share icons, stumbleupon, addthis, sharethis, sexybookmarks, addtoany
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.5.1
|
7 |
-
Stable tag: 3.9.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -182,6 +182,7 @@ Add this CSS to your style.css file:
|
|
182 |
= How can I use counters under posts and share toolbar in sidebar? =
|
183 |
You can use Hupso WP plugin for counters on top/bottom of every post and use raw HTML code for sidebar widget. Go to [Hupso Share Buttons homepage](http://www.hupso.com/share/) and generate HTML code for share buttons. In WP admin, go to Appearance->Widgets and create new text widget (drag and drop it to sidebar) and paste HTML code inside it.
|
184 |
|
|
|
185 |
= How can I show share buttons inside template files? =
|
186 |
|
187 |
Add this PHP code inside template files at position where you want to show share buttons: `echo do_shortcode('[hupso]');`
|
@@ -265,6 +266,9 @@ Please send bug reports and suggestion using [this feedback form](http://www.hup
|
|
265 |
|
266 |
== Changelog ==
|
267 |
|
|
|
|
|
|
|
268 |
= 3.9.12 =
|
269 |
* Option to hide share buttons in excerpts
|
270 |
|
4 |
Tags: twitter, facebook, google, social sharing, share buttons, social share buttons, share icons, stumbleupon, addthis, sharethis, sexybookmarks, addtoany
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.5.1
|
7 |
+
Stable tag: 3.9.13
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
182 |
= How can I use counters under posts and share toolbar in sidebar? =
|
183 |
You can use Hupso WP plugin for counters on top/bottom of every post and use raw HTML code for sidebar widget. Go to [Hupso Share Buttons homepage](http://www.hupso.com/share/) and generate HTML code for share buttons. In WP admin, go to Appearance->Widgets and create new text widget (drag and drop it to sidebar) and paste HTML code inside it.
|
184 |
|
185 |
+
|
186 |
= How can I show share buttons inside template files? =
|
187 |
|
188 |
Add this PHP code inside template files at position where you want to show share buttons: `echo do_shortcode('[hupso]');`
|
266 |
|
267 |
== Changelog ==
|
268 |
|
269 |
+
= 3.9.13 =
|
270 |
+
* Bugfix for excerpts
|
271 |
+
|
272 |
= 3.9.12 =
|
273 |
* Option to hide share buttons in excerpts
|
274 |
|
share-buttons-hupso.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Hupso Share Buttons for Twitter, Facebook & Google+
|
4 |
Plugin URI: http://www.hupso.com/share/
|
5 |
Description: Add simple social sharing buttons to your articles. Your visitors will be able to easily share your content on the most popular social networks: Twitter, Facebook, Google Plus, Linkedin, StumbleUpon, Digg, Reddit, Bebo and Delicous. These services are used by millions of people every day, so sharing your content there will increase traffic to your website.
|
6 |
-
Version: 3.9.
|
7 |
Author: kasal
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -12,7 +12,7 @@ Domain Path: /languages
|
|
12 |
*/
|
13 |
|
14 |
global $HUPSO_VERSION;
|
15 |
-
$HUPSO_VERSION = '3.9.
|
16 |
|
17 |
$hupso_dev = '';
|
18 |
$hupso_state = 'normal';
|
@@ -49,7 +49,7 @@ if ( ! function_exists( 'is_ssl' ) ) {
|
|
49 |
|
50 |
add_filter( 'the_content', 'hupso_the_content_normal', 10 );
|
51 |
add_filter( 'get_the_excerpt', 'hupso_get_the_excerpt', 1);
|
52 |
-
add_filter( 'the_excerpt', '
|
53 |
|
54 |
load_plugin_textdomain( 'share_buttons_hupso', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
55 |
|
@@ -249,7 +249,6 @@ function hupso_admin_settings_show() {
|
|
249 |
plugins_url('/js/create_button.js', __FILE__ )
|
250 |
);
|
251 |
|
252 |
-
|
253 |
|
254 |
$hupso_lang_code = __('en_US', 'share_buttons_hupso');
|
255 |
$hupso_language = __('English', 'share_buttons_hupso');
|
@@ -1177,6 +1176,12 @@ function hupso_the_widget( $content ) {
|
|
1177 |
function hupso_the_content_normal( $content ) {
|
1178 |
global $hupso_state;
|
1179 |
$hupso_state = 'normal';
|
|
|
|
|
|
|
|
|
|
|
|
|
1180 |
|
1181 |
$hupso_show_excerpts = get_option( 'hupso_show_excerpts' , '1' );
|
1182 |
if ( $hupso_show_excerpts == 1 ) {
|
3 |
Plugin Name: Hupso Share Buttons for Twitter, Facebook & Google+
|
4 |
Plugin URI: http://www.hupso.com/share/
|
5 |
Description: Add simple social sharing buttons to your articles. Your visitors will be able to easily share your content on the most popular social networks: Twitter, Facebook, Google Plus, Linkedin, StumbleUpon, Digg, Reddit, Bebo and Delicous. These services are used by millions of people every day, so sharing your content there will increase traffic to your website.
|
6 |
+
Version: 3.9.13
|
7 |
Author: kasal
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
|
14 |
global $HUPSO_VERSION;
|
15 |
+
$HUPSO_VERSION = '3.9.13';
|
16 |
|
17 |
$hupso_dev = '';
|
18 |
$hupso_state = 'normal';
|
49 |
|
50 |
add_filter( 'the_content', 'hupso_the_content_normal', 10 );
|
51 |
add_filter( 'get_the_excerpt', 'hupso_get_the_excerpt', 1);
|
52 |
+
add_filter( 'the_excerpt', 'hupso_the_excerpt', 100 );
|
53 |
|
54 |
load_plugin_textdomain( 'share_buttons_hupso', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
55 |
|
249 |
plugins_url('/js/create_button.js', __FILE__ )
|
250 |
);
|
251 |
|
|
|
252 |
|
253 |
$hupso_lang_code = __('en_US', 'share_buttons_hupso');
|
254 |
$hupso_language = __('English', 'share_buttons_hupso');
|
1176 |
function hupso_the_content_normal( $content ) {
|
1177 |
global $hupso_state;
|
1178 |
$hupso_state = 'normal';
|
1179 |
+
return hupso_the_content ( $content );
|
1180 |
+
}
|
1181 |
+
|
1182 |
+
function hupso_the_excerpt( $content ) {
|
1183 |
+
global $hupso_state;
|
1184 |
+
$hupso_state = 'normal';
|
1185 |
|
1186 |
$hupso_show_excerpts = get_option( 'hupso_show_excerpts' , '1' );
|
1187 |
if ( $hupso_show_excerpts == 1 ) {
|