Hupso Share Buttons for Twitter, Facebook & Google+ - Version 3.9.8

Version Description

  • Email button
  • Print button
Download this release

Release Info

Developer kasal
Plugin Icon 128x128 Hupso Share Buttons for Twitter, Facebook & Google+
Version 3.9.8
Comparing to
See all releases

Code changes from version 3.9.7 to 3.9.8

img/services/24/email.png ADDED
Binary file
img/services/24/print.png ADDED
Binary file
img/services/32/email.png ADDED
Binary file
img/services/32/print.png ADDED
Binary file
img/services/email-button.png ADDED
Binary file
img/services/email.png ADDED
Binary file
img/services/print-button.png ADDED
Binary file
img/services/print.png ADDED
Binary file
js/create_button.js CHANGED
@@ -1,6 +1,5 @@
1
  // detect hupso settings and show share button preview on first load
2
- var hupso_settings_active = document.hupso_settings_form.button_type;
3
- if (typeof hupso_settings_active == "object" ) {
4
  hupso_create_code();
5
 
6
  window.onload = function() {
@@ -37,7 +36,9 @@ function hupso_create_code() {
37
  var hupso_counters_lang = 'en_US';
38
  var hupso_image_folder_url = '';
39
  var hupso_image_folder_local = '';
40
- var hupso_custom_icons = 'no';
 
 
41
 
42
  dir = "";
43
  cdn = "static";
@@ -125,7 +126,6 @@ function hupso_create_code() {
125
  counters_preview = '<img src="http://static.hupso.com/share/buttons/share-small.png"/>';
126
  }
127
  else {
128
-
129
  counters_preview = '<img style="margin-right:10px;" src="http://static.hupso.com/share/buttons/lang/'+lang_code+'/share-small.png"/>';
130
  }
131
  break;
@@ -210,14 +210,28 @@ function hupso_create_code() {
210
  hupso_services += '"pinterest"';
211
  counters_preview += '<span style="padding-left:20px;"><img src="http://static.hupso.com/share/buttons/PinExt.png" /></span>';
212
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
213
 
214
  // linkedin
215
  var linkedin_share = $("input:checkbox[name=linkedin_share]:checked").val();
216
  if (linkedin_share == 1) {
217
  hupso_services += '"linkedin"';
218
  counters_preview += '<span style="padding-left:20px;"><img src="http://static.hupso.com/share/img/counters/linkedin_share.png" /></span>';
219
- }
220
-
221
  hupso_services = hupso_services.replace(/""/gi, '","');
222
  hupso_services += ');';
223
 
@@ -245,7 +259,10 @@ function hupso_create_code() {
245
  hupso_services += '"Bebo",';
246
  if ( $( "input:checkbox[name=delicious]:checked" ).val() == 1 )
247
  hupso_services += '"Delicious",';
248
-
 
 
 
249
 
250
  var none = hupso_services.substring(hupso_services.length - 1, hupso_services.length);
251
  hupso_services = hupso_services.substring(0, hupso_services.length - 1);
1
  // detect hupso settings and show share button preview on first load
2
+ if (document.hupso_settings_form && document.hupso_settings_form.button_type) {
 
3
  hupso_create_code();
4
 
5
  window.onload = function() {
36
  var hupso_counters_lang = 'en_US';
37
  var hupso_image_folder_url = '';
38
  var hupso_image_folder_local = '';
39
+ var hupso_custom_icons = 'no';
40
+ var hupso_email_button = '0';
41
+ var hupso_print_button = '0';
42
 
43
  dir = "";
44
  cdn = "static";
126
  counters_preview = '<img src="http://static.hupso.com/share/buttons/share-small.png"/>';
127
  }
128
  else {
 
129
  counters_preview = '<img style="margin-right:10px;" src="http://static.hupso.com/share/buttons/lang/'+lang_code+'/share-small.png"/>';
130
  }
131
  break;
210
  hupso_services += '"pinterest"';
211
  counters_preview += '<span style="padding-left:20px;"><img src="http://static.hupso.com/share/buttons/PinExt.png" /></span>';
212
  }
213
+
214
+ // email button
215
+ var hupso_email_button = $("input:checkbox[name=email_button]:checked").val();
216
+ if (hupso_email_button == 1) {
217
+ hupso_services += '"email"';
218
+ counters_preview += '<span style="padding-left:20px;"><img src="http://static.hupso.com/share/img/services/email-button.png" /></span>';
219
+ }
220
+
221
+ // print button
222
+ var hupso_print_button = $("input:checkbox[name=print_button]:checked").val();
223
+ if (hupso_print_button == 1) {
224
+ hupso_services += '"print"';
225
+ counters_preview += '<span style="padding-left:20px;"><img src="http://static.hupso.com/share/img/services/print-button.png" /></span>';
226
+ }
227
 
228
  // linkedin
229
  var linkedin_share = $("input:checkbox[name=linkedin_share]:checked").val();
230
  if (linkedin_share == 1) {
231
  hupso_services += '"linkedin"';
232
  counters_preview += '<span style="padding-left:20px;"><img src="http://static.hupso.com/share/img/counters/linkedin_share.png" /></span>';
233
+ }
234
+
235
  hupso_services = hupso_services.replace(/""/gi, '","');
236
  hupso_services += ');';
237
 
259
  hupso_services += '"Bebo",';
260
  if ( $( "input:checkbox[name=delicious]:checked" ).val() == 1 )
261
  hupso_services += '"Delicious",';
262
+ if ( $( "input:checkbox[name=email]:checked" ).val() == 1 )
263
+ hupso_services += '"Email",';
264
+ if ( $( "input:checkbox[name=print]:checked" ).val() == 1 )
265
+ hupso_services += '"Print",';
266
 
267
  var none = hupso_services.substring(hupso_services.length - 1, hupso_services.length);
268
  hupso_services = hupso_services.substring(0, hupso_services.length - 1);
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.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -12,7 +12,7 @@ Help visitors share your posts on popular social networks: Twitter, Facebook, Go
12
 
13
  == Description ==
14
 
15
- Add simple social share 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, Pinterest, StumbleUpon, Digg, Reddit, Bebo and Delicous.
16
 
17
  These services are used by millions of people every day, so sharing your content there will increase traffic to your website.
18
 
@@ -40,6 +40,8 @@ These services are used by millions of people every day, so sharing your content
40
  * Load social icons from your own content delivery network (CDN)
41
  * Set background and border color for share button (menu)
42
  * Support for SSL (https)
 
 
43
 
44
  Share Buttons are *very easy to configure*. Just select button type, size, position and which social networking services do you want to offer to your visitors.
45
  Buttons will appear below your articles or on top of them (or both) as you choose.
@@ -60,7 +62,7 @@ You can configure share buttons in plugin settings.
60
 
61
  1. Download plugin file (.zip)
62
  2. Extract zip file and upload folder /hupso-share-buttons-for-twitter-facebook-google/ to /wp-content/plugins/
63
- 3. Go to "Plugins" and activate the plugin
64
 
65
 
66
  == Frequently Asked Questions ==
@@ -145,7 +147,17 @@ Add proper CSS to your style.css file. Example:
145
  }
146
  .hupso_pinterest {
147
  margin-right: 10px !important;
148
- }`
 
 
 
 
 
 
 
 
 
 
149
 
150
  = How can I move share icons so they would show up in the same line as title of the post? =
151
 
@@ -244,6 +256,10 @@ Please send bug reports and suggestion using [this feedback form](http://www.hup
244
 
245
  == Changelog ==
246
 
 
 
 
 
247
  = 3.9.7 =
248
  * Bugfix: shortcodes can now be used without showing buttons under posts
249
 
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
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
12
 
13
  == Description ==
14
 
15
+ Add simple social share 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, Pinterest, StumbleUpon, Digg, Reddit, Bebo, Delicous and Email.
16
 
17
  These services are used by millions of people every day, so sharing your content there will increase traffic to your website.
18
 
40
  * Load social icons from your own content delivery network (CDN)
41
  * Set background and border color for share button (menu)
42
  * Support for SSL (https)
43
+ * Email button
44
+ * Print button
45
 
46
  Share Buttons are *very easy to configure*. Just select button type, size, position and which social networking services do you want to offer to your visitors.
47
  Buttons will appear below your articles or on top of them (or both) as you choose.
62
 
63
  1. Download plugin file (.zip)
64
  2. Extract zip file and upload folder /hupso-share-buttons-for-twitter-facebook-google/ to /wp-content/plugins/
65
+ 3. Go to "Plugins" and activate the plugin "Hupso Share Buttons for Twitter, Facebook & Google+"
66
 
67
 
68
  == Frequently Asked Questions ==
147
  }
148
  .hupso_pinterest {
149
  margin-right: 10px !important;
150
+ }
151
+ .hupso_email_button {
152
+ margin-left: 3px !important;
153
+ }
154
+ .hupso_print_button {
155
+ margin-left: 3px !important;
156
+ }
157
+ .IN-widget { /* Linkedin */
158
+ margin-top: 1px !important;
159
+ }
160
+ `
161
 
162
  = How can I move share icons so they would show up in the same line as title of the post? =
163
 
256
 
257
  == Changelog ==
258
 
259
+ = 3.9.8 =
260
+ * Email button
261
+ * Print button
262
+
263
  = 3.9.7 =
264
  * Bugfix: shortcodes can now be used without showing buttons under posts
265
 
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
7
  Author: kasal
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -45,7 +45,6 @@ if ( ! function_exists( 'is_ssl' ) ) {
45
  }
46
  }
47
 
48
-
49
  add_filter( 'the_content', 'hupso_the_content_normal', 10 );
50
  add_filter( 'get_the_excerpt', 'hupso_get_the_excerpt', 1);
51
  add_filter( 'the_excerpt', 'hupso_the_content_normal', 100 );
@@ -60,7 +59,7 @@ if ( is_admin() ) {
60
  add_action( 'wp_head', 'hupso_set_facebook_thumbnail', 1 );
61
 
62
  $hupso_all_services = array(
63
- 'Twitter', 'Facebook', 'Google Plus', 'Pinterest', 'Linkedin', 'StumbleUpon', 'Digg', 'Reddit', 'Bebo', 'Delicious'
64
  );
65
  $hupso_default_services = array(
66
  'Twitter', 'Facebook', 'Google Plus', 'Pinterest', 'Linkedin', 'StumbleUpon', 'Digg', 'Reddit', 'Bebo', 'Delicious'
@@ -84,7 +83,6 @@ function hupso_add_my_stylesheet() {
84
  wp_enqueue_style( 'hupso_css' );
85
  }
86
 
87
-
88
  function hupso_widget_init() {
89
  include_once(plugin_dir_path( __FILE__ ) . '/share-buttons-hupso-widget.php');
90
  register_widget('Hupso_Widget');
@@ -141,6 +139,10 @@ function hupso_plugin_uninstall() {
141
  delete_option( 'hupso_reddit' );
142
  delete_option( 'hupso_bebo' );
143
  delete_option( 'hupso_delicious' );
 
 
 
 
144
  delete_option( 'hupso_title_text' );
145
  delete_option( 'hupso_twitter_via' );
146
  delete_option( 'hupso_facebook_image' );
@@ -492,6 +494,8 @@ function hupso_admin_settings_show() {
492
  $facebook_send_checked = '';
493
  $google_plus_one_checked = '';
494
  $pinterest_pin_checked = '';
 
 
495
  $linkedin_share_checked = '';
496
 
497
  $twitter_tweet = get_option( 'hupso_twitter_tweet', '1' );
@@ -509,7 +513,13 @@ function hupso_admin_settings_show() {
509
  $pinterest_pin = get_option( 'hupso_pinterest_pin', '1' );
510
  if ( $pinterest_pin == 1 ) $pinterest_pin_checked = $checked;
511
 
512
- $linkedin_share = get_option( 'hupso_linkedin_share', '1' );
 
 
 
 
 
 
513
  if ( $linkedin_share == 1 ) $linkedin_share_checked = $checked;
514
  ?>
515
  <div id="counters_config" style="display:none;">
@@ -543,7 +553,17 @@ function hupso_admin_settings_show() {
543
  <td><input type="checkbox" name="pinterest_pin" onclick="hupso_create_code()" value="1" <?php echo $pinterest_pin_checked;?> /></td>
544
  <td><img src="<?php echo $hupso_plugin_url; ?>/buttons/PinExt.png" /></td>
545
  <td></td>
546
- </tr>
 
 
 
 
 
 
 
 
 
 
547
  <tr>
548
  <td><input type="checkbox" name="linkedin_share" onclick="hupso_create_code()" value="1" <?php echo $linkedin_share_checked;?> /></td>
549
  <td><img src="<?php echo $hupso_plugin_url; ?>/img/counters/linkedin_share.png" /></td>
@@ -1046,7 +1066,13 @@ function hupso_admin_settings_save() {
1046
  update_option( 'hupso_google_plus_one', $google_plus_one );
1047
 
1048
  $pinterest_pin = @$_POST[ 'pinterest_pin' ];
1049
- update_option( 'hupso_pinterest_pin', $pinterest_pin );
 
 
 
 
 
 
1050
 
1051
  $linkedin_share = @$_POST[ 'linkedin_share' ];
1052
  update_option( 'hupso_linkedin_share', $linkedin_share );
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.8
7
  Author: kasal
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
45
  }
46
  }
47
 
 
48
  add_filter( 'the_content', 'hupso_the_content_normal', 10 );
49
  add_filter( 'get_the_excerpt', 'hupso_get_the_excerpt', 1);
50
  add_filter( 'the_excerpt', 'hupso_the_content_normal', 100 );
59
  add_action( 'wp_head', 'hupso_set_facebook_thumbnail', 1 );
60
 
61
  $hupso_all_services = array(
62
+ 'Twitter', 'Facebook', 'Google Plus', 'Pinterest', 'Linkedin', 'StumbleUpon', 'Digg', 'Reddit', 'Bebo', 'Delicious', 'Email', 'Print'
63
  );
64
  $hupso_default_services = array(
65
  'Twitter', 'Facebook', 'Google Plus', 'Pinterest', 'Linkedin', 'StumbleUpon', 'Digg', 'Reddit', 'Bebo', 'Delicious'
83
  wp_enqueue_style( 'hupso_css' );
84
  }
85
 
 
86
  function hupso_widget_init() {
87
  include_once(plugin_dir_path( __FILE__ ) . '/share-buttons-hupso-widget.php');
88
  register_widget('Hupso_Widget');
139
  delete_option( 'hupso_reddit' );
140
  delete_option( 'hupso_bebo' );
141
  delete_option( 'hupso_delicious' );
142
+ delete_option( 'hupso_email' );
143
+ delete_option( 'hupso_print' );
144
+ delete_option( 'hupso_email_button' );
145
+ delete_option( 'hupso_print_button' );
146
  delete_option( 'hupso_title_text' );
147
  delete_option( 'hupso_twitter_via' );
148
  delete_option( 'hupso_facebook_image' );
494
  $facebook_send_checked = '';
495
  $google_plus_one_checked = '';
496
  $pinterest_pin_checked = '';
497
+ $email_button_checked = '';
498
+ $print_button_checked = '';
499
  $linkedin_share_checked = '';
500
 
501
  $twitter_tweet = get_option( 'hupso_twitter_tweet', '1' );
513
  $pinterest_pin = get_option( 'hupso_pinterest_pin', '1' );
514
  if ( $pinterest_pin == 1 ) $pinterest_pin_checked = $checked;
515
 
516
+ $email_button = get_option( 'hupso_email_button', '0' );
517
+ if ( $email_button == 1 ) $email_button_checked = $checked;
518
+
519
+ $print_button = get_option( 'hupso_print_button', '0' );
520
+ if ( $print_button == 1 ) $print_button_checked = $checked;
521
+
522
+ $linkedin_share = get_option( 'hupso_linkedin_share', '0' );
523
  if ( $linkedin_share == 1 ) $linkedin_share_checked = $checked;
524
  ?>
525
  <div id="counters_config" style="display:none;">
553
  <td><input type="checkbox" name="pinterest_pin" onclick="hupso_create_code()" value="1" <?php echo $pinterest_pin_checked;?> /></td>
554
  <td><img src="<?php echo $hupso_plugin_url; ?>/buttons/PinExt.png" /></td>
555
  <td></td>
556
+ </tr>
557
+ <tr>
558
+ <td><input type="checkbox" name="email_button" onclick="hupso_create_code()" value="1" <?php echo $email_button_checked;?> /></td>
559
+ <td><img src="<?php echo $hupso_plugin_url; ?>/img/services/email-button.png" /></td>
560
+ <td></td>
561
+ </tr>
562
+ <tr>
563
+ <td><input type="checkbox" name="print_button" onclick="hupso_create_code()" value="1" <?php echo $print_button_checked;?> /></td>
564
+ <td><img src="<?php echo $hupso_plugin_url; ?>/img/services/print-button.png" /></td>
565
+ <td></td>
566
+ </tr>
567
  <tr>
568
  <td><input type="checkbox" name="linkedin_share" onclick="hupso_create_code()" value="1" <?php echo $linkedin_share_checked;?> /></td>
569
  <td><img src="<?php echo $hupso_plugin_url; ?>/img/counters/linkedin_share.png" /></td>
1066
  update_option( 'hupso_google_plus_one', $google_plus_one );
1067
 
1068
  $pinterest_pin = @$_POST[ 'pinterest_pin' ];
1069
+ update_option( 'hupso_pinterest_pin', $pinterest_pin );
1070
+
1071
+ $email_button = @$_POST[ 'email_button' ];
1072
+ update_option( 'hupso_email_button', $email_button );
1073
+
1074
+ $print_button = @$_POST[ 'print_button' ];
1075
+ update_option( 'hupso_print_button', $print_button );
1076
 
1077
  $linkedin_share = @$_POST[ 'linkedin_share' ];
1078
  update_option( 'hupso_linkedin_share', $linkedin_share );