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

Version Description

  • Option to hide "Share" image
  • Option to use translated "Share" image (20 languages)
Download this release

Release Info

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

Code changes from version 3.3 to 3.4

Files changed (3) hide show
  1. js/create_button.js +64 -9
  2. readme.txt +11 -1
  3. share-buttons-hupso.php +95 -23
js/create_button.js CHANGED
@@ -24,6 +24,10 @@ function hupso_create_code() {
24
  var hupso_float_right_f = false;
25
  var toolbar_size = 'big';
26
  var toolbar_share = 'share';
 
 
 
 
27
 
28
  dir = "";
29
  cdn = "static";
@@ -44,6 +48,7 @@ function hupso_create_code() {
44
  $( "#show_color" ).show();
45
  $( "#counters_config" ).hide();
46
  $( "#services" ).show();
 
47
  break;
48
  case 'share_toolbar':
49
  $( "#button_position" ).hide();
@@ -56,6 +61,7 @@ function hupso_create_code() {
56
  $( "#show_color" ).hide();
57
  $( "#counters_config" ).hide();
58
  $( "#services" ).show();
 
59
  break;
60
  case 'floating_toolbar':
61
  $( "#button_position" ).show();
@@ -68,6 +74,7 @@ function hupso_create_code() {
68
  $( "#show_color" ).show();
69
  $( "#counters_config" ).hide();
70
  $( "#services" ).show();
 
71
  break;
72
  case 'counters':
73
  $( "#button_position" ).hide();
@@ -79,16 +86,44 @@ function hupso_create_code() {
79
  $( "#show_title" ).show();
80
  $( "#show_color" ).hide();
81
  $( "#counters_config" ).show();
82
- $( "#services" ).hide();
 
83
  break;
84
  }
85
 
86
- counters_preview = '<img src="http://static.hupso.com/share/buttons/share-small.png"/>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
 
88
  button_position = $("input:radio[name=button_position]:checked").val();
89
  toolbar_size = $("input:radio[name=select_toolbar_size]:checked").val();
90
  icon_type = $("input:radio[name=menu_type]:checked").val();
91
-
92
  bsize = $("input:radio[name=size]:checked").val();
93
  var values = bsize.split('x');
94
  bheight = values[1];
@@ -313,17 +348,37 @@ function hupso_create_code() {
313
  var code = '<!-- Hupso Share Buttons - http://www.hupso.com/share/ -->';
314
  code += '<a class="'+hupso_class+'" href="http://www.hupso.com/share/">'; // float: class="hupso_float"
315
 
316
- switch ( button_type ) {
317
  case 'share_button':
318
- code += '<img src="http://static.hupso.com/share/buttons/'+bsize+'.png" width="'+bwidth+'" height="'+bheight+'" border="0" alt="Share Button"/>';
319
  break;
320
  case 'share_toolbar':
321
- code += '<img src="http://static.hupso.com/share/buttons/'+toolbar_share+'.png" border="0" style="padding-top:5px; float:left;" alt="Social Share Toolbar"/>';
 
 
 
 
 
 
 
 
 
322
  break;
323
  case 'counters':
324
- code += '<img src="http://static.hupso.com/share/buttons/share-small.png" border="0" style="padding-top:2px; float:left;" alt="Social Share Counters"/>';
325
- break;
326
- }
 
 
 
 
 
 
 
 
 
 
 
327
 
328
 
329
  code += '</a>';
24
  var hupso_float_right_f = false;
25
  var toolbar_size = 'big';
26
  var toolbar_share = 'share';
27
+ var counters_preview = '';
28
+ var share_image = 'show';
29
+ var share_image_custom_url = '';
30
+ var share_image_lang = '';
31
 
32
  dir = "";
33
  cdn = "static";
48
  $( "#show_color" ).show();
49
  $( "#counters_config" ).hide();
50
  $( "#services" ).show();
51
+ $( "#share_image" ).hide();
52
  break;
53
  case 'share_toolbar':
54
  $( "#button_position" ).hide();
61
  $( "#show_color" ).hide();
62
  $( "#counters_config" ).hide();
63
  $( "#services" ).show();
64
+ $( "#share_image" ).show();
65
  break;
66
  case 'floating_toolbar':
67
  $( "#button_position" ).show();
74
  $( "#show_color" ).show();
75
  $( "#counters_config" ).hide();
76
  $( "#services" ).show();
77
+ $( "#share_image" ).hide();
78
  break;
79
  case 'counters':
80
  $( "#button_position" ).hide();
86
  $( "#show_title" ).show();
87
  $( "#show_color" ).hide();
88
  $( "#counters_config" ).show();
89
+ $( "#services" ).hide();
90
+ $( "#share_image" ).show();
91
  break;
92
  }
93
 
94
+ share_image = $("input:radio[name=hupso_share_image]:checked").val();
95
+ share_image_custom_url = $.trim($("input:text[name=hupso_share_image_custom_url]").val());
96
+
97
+ var lang_code = $("#share_image_lang option:selected").val();
98
+ if ( lang_code != 'en' ) {
99
+ share_image_lang = 'lang/' + lang_code + '/';
100
+ }
101
+ else {
102
+ share_image_lang = '';
103
+ }
104
+
105
+
106
+ switch ( share_image ) {
107
+ case 'show':
108
+ if ( (lang_code == 'en') || (lang_code == '')) {
109
+ counters_preview = '<img src="http://static.hupso.com/share/buttons/share-small.png"/>';
110
+ }
111
+ else {
112
+ counters_preview = '<img style="margin-right:10px;" src="http://static.hupso.com/share/buttons/lang/'+lang_code+'/share-small.png"/>';
113
+ }
114
+ break;
115
+ case 'hide':
116
+ counters_preview = '<img src="http://static.hupso.com/share/buttons/dot.png"/>';
117
+ break;
118
+ case 'custom':
119
+ counters_preview = '<img src="' + share_image_custom_url + '"/>';
120
+ break;
121
+ }
122
 
123
  button_position = $("input:radio[name=button_position]:checked").val();
124
  toolbar_size = $("input:radio[name=select_toolbar_size]:checked").val();
125
  icon_type = $("input:radio[name=menu_type]:checked").val();
126
+
127
  bsize = $("input:radio[name=size]:checked").val();
128
  var values = bsize.split('x');
129
  bheight = values[1];
348
  var code = '<!-- Hupso Share Buttons - http://www.hupso.com/share/ -->';
349
  code += '<a class="'+hupso_class+'" href="http://www.hupso.com/share/">'; // float: class="hupso_float"
350
 
351
+ switch ( button_type ) {
352
  case 'share_button':
353
+ code += '<img src="http://static.hupso.com/share/buttons/'+bsize+'.png" width="'+bwidth+'" height="'+bheight+'" border="0" alt="Share"/>';
354
  break;
355
  case 'share_toolbar':
356
+ if ( share_image == 'hide' ) {
357
+ toolbar_share = 'dot';
358
+ share_image_lang = '';
359
+ }
360
+ if ( share_image == 'custom') {
361
+ code += '<img src="' + share_image_custom_url + '" border="0" style="padding-top:5px; float:left;" alt="Share"/>';
362
+ }
363
+ else {
364
+ code += '<img src="http://static.hupso.com/share/buttons/'+share_image_lang+toolbar_share+'.png" border="0" style="padding-top:5px; float:left;" alt="Share"/>';
365
+ }
366
  break;
367
  case 'counters':
368
+ var share_url = 'share-small';
369
+ if ( share_image == 'none' ) {
370
+ share_url = 'dot';
371
+ share_image_lang = '';
372
+ }
373
+ if ( share_image == 'custom') {
374
+ code += '<img src="' + share_image_custom_url + '" border="0" style="padding-top:5px; float:left;" alt="Share"/>';
375
+ }
376
+ else {
377
+ code += '<img src="http://static.hupso.com/share/buttons/'+share_image_lang + share_url + '.png" border="0" style="padding-top:2px; float:left;" alt="Share"/>';
378
+ }
379
+
380
+ break;
381
+ }
382
 
383
 
384
  code += '</a>';
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.hupso.com/
4
  Tags: twitter, facebook, google+, social, sharing, stumbleupon, addthis, sharethis, sexybookmarks, addtoany, lockerz, shareaholic
5
  Requires at least: 2.8
6
  Tested up to: 3.5
7
- Stable tag: 3.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -29,12 +29,14 @@ These services are used by millions of people every day, so sharing your content
29
  * Hide or show buttons for specific posts / pages (see Shortcodes below)
30
  * Hide or show buttons for posts / pages / front page / categories
31
  * Hide share buttons for specific categories
 
32
 
33
 
34
  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.
35
  Buttons will appear below your articles or on top of them as you choose.
36
 
37
  **Shortcodes**
 
38
  Use [hupso_hide] anywhere in post's text to hide buttons for specific post.
39
  Use [hupso] anywhere in post's text to show buttons at custom position inside the post. Buttons will be shown exactly where this shortcode appears.
40
 
@@ -68,6 +70,10 @@ All major social networks are supported: Twitter, Facebook, Google+, Linkedin, S
68
  Please upgrade the plugin to the latest version. If that does not help then try to reinstall the plugin (uninstall it and install it again).
69
  If you still have problems then send bug report [using this feedback form](http://www.hupso.com/share/feedback/).
70
 
 
 
 
 
71
  = What settings are available? =
72
 
73
  From Settings screen you are able to choose: button type (share button, share toolbar, counters), button size, social sharing services, menu type, button position (above or below your posts), display options.
@@ -107,6 +113,10 @@ Please send bug reports and suggestion using [this feedback form](http://www.hup
107
 
108
  == Changelog ==
109
 
 
 
 
 
110
  = 3.3 =
111
  * Option to show/hide share buttons for (all) posts/pages
112
  * Option to hide share buttons for specific categories
4
  Tags: twitter, facebook, google+, social, sharing, stumbleupon, addthis, sharethis, sexybookmarks, addtoany, lockerz, shareaholic
5
  Requires at least: 2.8
6
  Tested up to: 3.5
7
+ Stable tag: 3.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
29
  * Hide or show buttons for specific posts / pages (see Shortcodes below)
30
  * Hide or show buttons for posts / pages / front page / categories
31
  * Hide share buttons for specific categories
32
+ * Hide "Share" image or use translated image (20+ languages available)
33
 
34
 
35
  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.
36
  Buttons will appear below your articles or on top of them as you choose.
37
 
38
  **Shortcodes**
39
+
40
  Use [hupso_hide] anywhere in post's text to hide buttons for specific post.
41
  Use [hupso] anywhere in post's text to show buttons at custom position inside the post. Buttons will be shown exactly where this shortcode appears.
42
 
70
  Please upgrade the plugin to the latest version. If that does not help then try to reinstall the plugin (uninstall it and install it again).
71
  If you still have problems then send bug report [using this feedback form](http://www.hupso.com/share/feedback/).
72
 
73
+ = Buttons are not working with one post. Only "Share" image in shown, but no social icons. They work correctly on other posts. What can I do? =
74
+
75
+ HTML of your post in not valid. You need to fix the text inside the post. Perhaps you forgot to close a <p> or <div> tag at the end. Perhaps you have some other HTML error in it. Use HTML validator if you cannot find an error.
76
+
77
  = What settings are available? =
78
 
79
  From Settings screen you are able to choose: button type (share button, share toolbar, counters), button size, social sharing services, menu type, button position (above or below your posts), display options.
113
 
114
  == Changelog ==
115
 
116
+ = 3.4 =
117
+ * Option to hide "Share" image
118
+ * Option to use translated "Share" image (20 languages)
119
+
120
  = 3.3 =
121
  * Option to show/hide share buttons for (all) posts/pages
122
  * Option to hide share buttons for specific categories
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.3
7
  Author: kasal
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -47,6 +47,8 @@ function hupso_plugin_uninstall() {
47
  delete_option( 'hupso_button_type' );
48
  delete_option( 'hupso_button_size' );
49
  delete_option( 'hupso_toolbar_size' );
 
 
50
  delete_option( 'hupso_menu_type' );
51
  delete_option( 'hupso_button_position' );
52
  delete_option( 'hupso_show_posts' );
@@ -192,12 +194,12 @@ function hupso_admin_settings_show() {
192
  default: $hupso_share_toolbar_checked = $checked;
193
  }
194
  ?>
195
- <td><input type="radio" name="button_type" onclick="hupso_create_code()" value="share_button" <?php echo $hupso_share_button_checked; ?> /> Share Button<br/><img src="<?php echo $hupso_plugin_url.'/buttons/button100x23.png';?>" /><br/><br/>
196
- <input type="radio" name="button_type" onclick="hupso_create_code()" value="share_toolbar" <?php echo $hupso_share_toolbar_checked; ?> /> Share Toolbar <br/><img src="<?php echo $hupso_plugin_url.'/img/share_toolbar_big.png';?>" /><br/><br/>
197
- <input type="radio" name="button_type" onclick="hupso_create_code()" value="counters" <?php echo $hupso_share_counters_checked; ?> /> Counters <br/><img src="<?php echo $hupso_plugin_url.'/img/counters.png';?>" /><br/><br/>
198
  </td>
199
  </tr>
200
- <tr><td></td><td><hr style="height:1px; width:100%;"/></td></tr>
201
  </table>
202
  </div>
203
 
@@ -207,12 +209,13 @@ function hupso_admin_settings_show() {
207
  <td style="width:100px;"><?php _e('Button size', 'share_buttons_hupso'); ?></td>
208
  <td>
209
  <table border="0">
210
- <tr><td><input type="radio" name="size" value="button60x14" onclick="hupso_create_code()" <?php echo $button60_checked; ?> /></td><td style="padding-right:10px;"><?php echo $button_60_img ?></td></tr>
211
- <tr><td><input type="radio" name="size" value="button80x19" onclick="hupso_create_code()" <?php echo $button80_checked; ?>/></td><td style="padding-right:10px;"><?php echo $button_80_img ?></td></tr>
212
- <tr><td><input type="radio" name="size" value="button100x23" onclick="hupso_create_code()" <?php echo $button100_checked; ?>/></td><td style="padding-right:10px;"><?php echo $button_100_img ?></td></tr>
213
- <tr><td><input type="radio" name="size" value="button120x28" onclick="hupso_create_code()" <?php echo $button120_checked; ?>/></td><td style="padding-right:10px;"><?php echo $button_120_img ?></td></tr>
214
- <tr><td><input type="radio" name="size" value="button160x37" onclick="hupso_create_code()" <?php echo $button160_checked; ?>/></td><td style="padding-right:20px;"><?php echo $button_160_img ?></td></tr>
215
  </table>
 
216
  </td>
217
  </tr>
218
  </table>
@@ -233,18 +236,73 @@ function hupso_admin_settings_show() {
233
  default: $hupso_toolbar_size_medium_checked = $checked;
234
  }
235
  ?>
236
- <input type="radio" name="select_toolbar_size" value="big" onclick="hupso_create_code()" <?php echo $hupso_toolbar_size_big_checked; ?> /> <?php _e( 'Big', 'share_buttons_hupso');?> <br/>
237
- <input type="radio" name="select_toolbar_size" value="medium" onclick="hupso_create_code()" <?php echo $hupso_toolbar_size_medium_checked; ?> /> <?php _e( 'Medium', 'share_buttons_hupso');?> <br/>
238
- <input type="radio" name="select_toolbar_size" value="small" onclick="hupso_create_code()" <?php echo $hupso_toolbar_size_small_checked; ?> /> <?php _e( 'Small', 'share_buttons_hupso');?> <br/>
 
 
239
  </tr>
240
  </table>
241
  </div>
242
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
243
  <div id="services">
244
  <table border="0">
245
  <tr>
246
  <td style="width:100px;"><?php _e('Social networks', 'share_buttons_hupso'); ?></td>
247
- <td><hr style="height:1px; width:200px;"/><?php hupso_settings_print_services(); ?></td>
248
  </tr>
249
  </table>
250
  </div>
@@ -318,7 +376,7 @@ function hupso_admin_settings_show() {
318
  }
319
 
320
  ?>
321
- <td><hr style="height:1px; width:200px;"/><input type="radio" name="menu_type" value="labels" onclick="hupso_create_code()" <?php echo $hupso_labels_checked; ?> /> <?php _e('Show icons and service names', 'share_buttons_hupso'); ?><br/>
322
  <input type="radio" name="menu_type" value="icons" onclick="hupso_create_code()" <?php echo $hupso_icons_checked; ?> /> <?php _e('Show icons only', 'share_buttons_hupso'); ?><br/></td>
323
  </tr>
324
  </table>
@@ -336,13 +394,13 @@ function hupso_admin_settings_show() {
336
  default: $hupso_below_checked = $checked;
337
  }
338
  ?>
339
- <td><hr style="height:1px; width:200px;" align="left"/>
340
  <input type="radio" name="hupso_button_position" value="above" <?php echo $hupso_above_checked; ?> /> <?php _e('Above the post', 'share_buttons_hupso'); ?><br/>
341
  <input type="radio" name="hupso_button_position" value="below" <?php echo $hupso_below_checked; ?> /> <?php _e('Below the post', 'share_buttons_hupso'); ?><br/></td>
342
  </tr>
343
  <tr>
344
  <td style="width:100px;"><?php _e('Show buttons on', 'share_buttons_hupso'); ?></td>
345
- <td><hr style="height:1px; width:200px;" align="left"/>
346
  <?php
347
  $checked = ' checked="checked" ';
348
 
@@ -382,7 +440,7 @@ function hupso_admin_settings_show() {
382
  </tr>
383
  <tr>
384
  <td style="width:100px;"><?php _e('Hide buttons for specific categories', 'share_buttons_hupso'); ?></td>
385
- <td><hr style="height:1px; width:200px;" align="left"/>
386
  <?php
387
  /* hidden categories */
388
  $hupso_hide_categories = get_option( 'hupso_hide_categories', array() );
@@ -411,8 +469,8 @@ function hupso_admin_settings_show() {
411
  </td>
412
  </tr>
413
  <tr>
414
- <td style="width:100px;"><?php _e('Get title for sharing from', 'share_buttons_hupso'); ?></td>
415
- <td><hr style="height:1px; width:200px;" align="left"/>
416
  <?php
417
  $checked = ' checked="checked" ';
418
 
@@ -421,8 +479,7 @@ function hupso_admin_settings_show() {
421
  if ( $hupso_title_text == 'page' )
422
  $hupso_title_text_page_checked = $checked;
423
  else
424
- $hupso_title_text_post_checked = $checked;;
425
-
426
  ?>
427
  <input type="radio" name="hupso_title_text" value="post" <?php echo $hupso_title_text_post_checked; ?> /> <?php _e('Title of post/page in Wordpress', 'share_buttons_hupso'); ?><br/>
428
  <input type="radio" name="hupso_title_text" value="page" <?php echo $hupso_title_text_page_checked; ?> /> <?php _e('Title of current web page', 'share_buttons_hupso'); ?>
@@ -476,6 +533,22 @@ function hupso_admin_settings_save() {
476
  $hupso_button_size = get_option ( 'hupso_toolbar_size', 'medium');
477
  }
478
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
479
  /* save services */
480
  $hupso_vars = 'var hupso_services=new Array(';
481
  foreach ( $hupso_all_services as $service_text ) {
@@ -779,5 +852,4 @@ function hupso_plugin_action_links( $links, $file ) {
779
 
780
 
781
 
782
-
783
  ?>
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.4
7
  Author: kasal
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
47
  delete_option( 'hupso_button_type' );
48
  delete_option( 'hupso_button_size' );
49
  delete_option( 'hupso_toolbar_size' );
50
+ delete_option( 'hupso_share_image' );
51
+ delete_option( 'hupso_share_image_lang' );
52
  delete_option( 'hupso_menu_type' );
53
  delete_option( 'hupso_button_position' );
54
  delete_option( 'hupso_show_posts' );
194
  default: $hupso_share_toolbar_checked = $checked;
195
  }
196
  ?>
197
+ <td><input type="radio" name="button_type" onclick="hupso_create_code()" onchange="hupso_create_code()" value="share_button" <?php echo $hupso_share_button_checked; ?> /> Share Button<br/><img src="<?php echo $hupso_plugin_url.'/buttons/button100x23.png';?>" /><br/><br/>
198
+ <input type="radio" name="button_type" onclick="hupso_create_code()" onchange="hupso_create_code()" value="share_toolbar" <?php echo $hupso_share_toolbar_checked; ?> /> Share Toolbar <br/><img src="<?php echo $hupso_plugin_url.'/img/share_toolbar_big.png';?>" /><br/><br/>
199
+ <input type="radio" name="button_type" onclick="hupso_create_code()" onchange="hupso_create_code()" value="counters" <?php echo $hupso_share_counters_checked; ?> /> Counters <br/><img src="<?php echo $hupso_plugin_url.'/img/counters.png';?>" /><br/><br/>
200
  </td>
201
  </tr>
202
+ <tr><td style="width:100px;"></td><td><hr style="height:1px; width:300px; float:left;"/></td></tr>
203
  </table>
204
  </div>
205
 
209
  <td style="width:100px;"><?php _e('Button size', 'share_buttons_hupso'); ?></td>
210
  <td>
211
  <table border="0">
212
+ <tr><td><input type="radio" name="size" value="button60x14" onclick="hupso_create_code()" onchange="hupso_create_code()" <?php echo $button60_checked; ?> /></td><td style="padding-right:10px;"><?php echo $button_60_img ?></td></tr>
213
+ <tr><td><input type="radio" name="size" value="button80x19" onclick="hupso_create_code()" onchange="hupso_create_code()" <?php echo $button80_checked; ?>/></td><td style="padding-right:10px;"><?php echo $button_80_img ?></td></tr>
214
+ <tr><td><input type="radio" name="size" value="button100x23" onclick="hupso_create_code()" onchange="hupso_create_code()" <?php echo $button100_checked; ?>/></td><td style="padding-right:10px;"><?php echo $button_100_img ?></td></tr>
215
+ <tr><td><input type="radio" name="size" value="button120x28" onclick="hupso_create_code()" onchange="hupso_create_code()" <?php echo $button120_checked; ?>/></td><td style="padding-right:10px;"><?php echo $button_120_img ?></td></tr>
216
+ <tr><td><input type="radio" name="size" value="button160x37" onclick="hupso_create_code()" onchange="hupso_create_code()" <?php echo $button160_checked; ?>/></td><td style="padding-right:20px;"><?php echo $button_160_img ?></td></tr>
217
  </table>
218
+ <hr style="height:1px; width:300px;"/>
219
  </td>
220
  </tr>
221
  </table>
236
  default: $hupso_toolbar_size_medium_checked = $checked;
237
  }
238
  ?>
239
+ <input type="radio" name="select_toolbar_size" value="big" onclick="hupso_create_code()" onchange="hupso_create_code()" <?php echo $hupso_toolbar_size_big_checked; ?> /> <?php _e( 'Big', 'share_buttons_hupso');?> <br/>
240
+ <input type="radio" name="select_toolbar_size" value="medium" onclick="hupso_create_code()" onchange="hupso_create_code()" <?php echo $hupso_toolbar_size_medium_checked; ?> /> <?php _e( 'Medium', 'share_buttons_hupso');?> <br/>
241
+ <input type="radio" name="select_toolbar_size" value="small" onclick="hupso_create_code()" onchange="hupso_create_code()" <?php echo $hupso_toolbar_size_small_checked; ?> /> <?php _e( 'Small', 'share_buttons_hupso');?> <br/>
242
+ <hr style="height:1px; width:300px;"/>
243
+ </td>
244
  </tr>
245
  </table>
246
  </div>
247
 
248
+
249
+ <div id="share_image" style="padding-top:10px;">
250
+ <table border="0">
251
+ <tr>
252
+ <td style="width:100px;"><?php _e('Share image', 'share_buttons_hupso'); ?></td>
253
+ <td style="width:300px">
254
+ <?php
255
+
256
+ /* hupso_share_image */
257
+ $checked = ' checked="checked" ';
258
+ $hupso_share_image = get_option( 'hupso_share_image', 'normal' );
259
+ switch ( $hupso_share_image ) {
260
+ case '':
261
+ case 'show': $hupso_share_image_show_checked = $checked; break;
262
+ case 'hide': $hupso_share_image_hide_checked = $checked; break;
263
+ case 'lang': $hupso_share_image_lang_checked = $checked; break;
264
+ }
265
+
266
+ $hupso_share_image_lang = get_option ( 'hupso_share_image_lang', '');
267
+
268
+ ?>
269
+ <input type="radio" name="hupso_share_image" onclick="hupso_create_code()" onchange="hupso_create_code()" value="show" <?php echo $hupso_share_image_show_checked; ?>/> <?php _e('Show in language', 'share_buttons_hupso');?>:
270
+ <select id="share_image_lang" name="share_image_lang" onclick="hupso_create_code()" onchange="hupso_create_code()">
271
+ <option value="en" <?php if ( ($hupso_share_image_lang == 'en') || ($hupso_share_image_lang == '') ) echo ' selected ';?>>English</option>
272
+ <option value="fr" <?php if ($hupso_share_image_lang == 'fr') echo ' selected ';?>><?php _e('French', 'share_buttons_hupso');?></option>
273
+ <option value="de" <?php if ($hupso_share_image_lang == 'de') echo ' selected ';?>><?php _e('German', 'share_buttons_hupso');?></option>
274
+ <option value="it" <?php if ($hupso_share_image_lang == 'it') echo ' selected ';?>><?php _e('Italian', 'share_buttons_hupso');?></option>
275
+ <option value="pt" <?php if ($hupso_share_image_lang == 'pt') echo ' selected ';?>><?php _e('Portuguese', 'share_buttons_hupso');?></option>
276
+ <option value="es" <?php if ($hupso_share_image_lang == 'es') echo ' selected ';?>><?php _e('Spanish', 'share_buttons_hupso');?></option>
277
+ <option value="id" <?php if ($hupso_share_image_lang == 'id') echo ' selected ';?>><?php _e('Indonesian', 'share_buttons_hupso');?></option>
278
+ <option value="da" <?php if ($hupso_share_image_lang == 'da') echo ' selected ';?>><?php _e('Danish', 'share_buttons_hupso');?></option>
279
+ <option value="nl" <?php if ($hupso_share_image_lang == 'nl') echo ' selected ';?>><?php _e('Dutch', 'share_buttons_hupso');?></option>
280
+ <option value="sv" <?php if ($hupso_share_image_lang == 'sv') echo ' selected ';?>><?php _e('Swedish', 'share_buttons_hupso');?></option>
281
+ <option value="no" <?php if ($hupso_share_image_lang == 'no') echo ' selected ';?>><?php _e('Norwegian', 'share_buttons_hupso');?></option>
282
+ <option value="sr" <?php if ($hupso_share_image_lang == 'sr') echo ' selected ';?>><?php _e('Serbian', 'share_buttons_hupso');?></option>
283
+ <option value="hr" <?php if ($hupso_share_image_lang == 'hr') echo ' selected ';?>><?php _e('Croatian', 'share_buttons_hupso');?></option>
284
+ <option value="et" <?php if ($hupso_share_image_lang == 'et') echo ' selected ';?>><?php _e('Estonian', 'share_buttons_hupso');?></option>
285
+ <option value="ro" <?php if ($hupso_share_image_lang == 'ro') echo ' selected ';?>><?php _e('Romanian', 'share_buttons_hupso');?></option>
286
+ <option value="ga" <?php if ($hupso_share_image_lang == 'ga') echo ' selected ';?>><?php _e('Irish', 'share_buttons_hupso');?></option>
287
+ <option value="af" <?php if ($hupso_share_image_lang == 'af') echo ' selected ';?>><?php _e('Afrikaans', 'share_buttons_hupso');?></option>
288
+ <option value="sl" <?php if ($hupso_share_image_lang == 'sl') echo ' selected ';?>><?php _e('Slovenian', 'share_buttons_hupso');?></option>
289
+ <option value="pl" <?php if ($hupso_share_image_lang == 'pl') echo ' selected ';?>><?php _e('Polish', 'share_buttons_hupso');?></option>
290
+ <option value="bs" <?php if ($hupso_share_image_lang == 'bs') echo ' selected ';?>><?php _e('Bosnian', 'share_buttons_hupso');?></option>
291
+ <option value="ms" <?php if ($hupso_share_image_lang == 'ms') echo ' selected ';?>><?php _e('Malay', 'share_buttons_hupso');?></option>
292
+ </select><br/>
293
+ <input type="radio" name="hupso_share_image" onclick="hupso_create_code()" onchange="hupso_create_code()" value="hide" <?php echo $hupso_share_image_hide_checked; ?>/> <?php _e('Hide', 'share_buttons_hupso'); ?><br/>
294
+ <hr style="height:1px; width:300px;"/>
295
+ </td>
296
+ </tr>
297
+ </table>
298
+ </div>
299
+
300
+
301
  <div id="services">
302
  <table border="0">
303
  <tr>
304
  <td style="width:100px;"><?php _e('Social networks', 'share_buttons_hupso'); ?></td>
305
+ <td><?php hupso_settings_print_services(); ?></td>
306
  </tr>
307
  </table>
308
  </div>
376
  }
377
 
378
  ?>
379
+ <td><hr style="height:1px; width:300px;"/><input type="radio" name="menu_type" value="labels" onclick="hupso_create_code()" <?php echo $hupso_labels_checked; ?> /> <?php _e('Show icons and service names', 'share_buttons_hupso'); ?><br/>
380
  <input type="radio" name="menu_type" value="icons" onclick="hupso_create_code()" <?php echo $hupso_icons_checked; ?> /> <?php _e('Show icons only', 'share_buttons_hupso'); ?><br/></td>
381
  </tr>
382
  </table>
394
  default: $hupso_below_checked = $checked;
395
  }
396
  ?>
397
+ <td><hr style="height:1px; width:300px;" align="left"/>
398
  <input type="radio" name="hupso_button_position" value="above" <?php echo $hupso_above_checked; ?> /> <?php _e('Above the post', 'share_buttons_hupso'); ?><br/>
399
  <input type="radio" name="hupso_button_position" value="below" <?php echo $hupso_below_checked; ?> /> <?php _e('Below the post', 'share_buttons_hupso'); ?><br/></td>
400
  </tr>
401
  <tr>
402
  <td style="width:100px;"><?php _e('Show buttons on', 'share_buttons_hupso'); ?></td>
403
+ <td><hr style="height:1px; width:300px;" align="left"/>
404
  <?php
405
  $checked = ' checked="checked" ';
406
 
440
  </tr>
441
  <tr>
442
  <td style="width:100px;"><?php _e('Hide buttons for specific categories', 'share_buttons_hupso'); ?></td>
443
+ <td><hr style="height:1px; width:300px;" align="left"/>
444
  <?php
445
  /* hidden categories */
446
  $hupso_hide_categories = get_option( 'hupso_hide_categories', array() );
469
  </td>
470
  </tr>
471
  <tr>
472
+ <td style="width:100px;"><?php _e('Get share text from', 'share_buttons_hupso'); ?></td>
473
+ <td><hr style="height:1px; width:300px;" align="left"/>
474
  <?php
475
  $checked = ' checked="checked" ';
476
 
479
  if ( $hupso_title_text == 'page' )
480
  $hupso_title_text_page_checked = $checked;
481
  else
482
+ $hupso_title_text_post_checked = $checked;
 
483
  ?>
484
  <input type="radio" name="hupso_title_text" value="post" <?php echo $hupso_title_text_post_checked; ?> /> <?php _e('Title of post/page in Wordpress', 'share_buttons_hupso'); ?><br/>
485
  <input type="radio" name="hupso_title_text" value="page" <?php echo $hupso_title_text_page_checked; ?> /> <?php _e('Title of current web page', 'share_buttons_hupso'); ?>
533
  $hupso_button_size = get_option ( 'hupso_toolbar_size', 'medium');
534
  }
535
 
536
+ /* save share_image */
537
+ if ( $post ) {
538
+ $hupso_share_image = $_POST[ 'hupso_share_image' ];
539
+ update_option( 'hupso_share_image', $hupso_share_image );
540
+ } else {
541
+ $hupso_share_image = get_option ( 'hupso_share_image', 'normal');
542
+ }
543
+
544
+ /* save share_image_lang */
545
+ if ( $post ) {
546
+ $hupso_share_image_lang = $_POST[ 'share_image_lang' ];
547
+ update_option( 'hupso_share_image_lang', $hupso_share_image_lang );
548
+ } else {
549
+ $hupso_share_image_lang = get_option ( 'hupso_share_image_lang', '');
550
+ }
551
+
552
  /* save services */
553
  $hupso_vars = 'var hupso_services=new Array(';
554
  foreach ( $hupso_all_services as $service_text ) {
852
 
853
 
854
 
 
855
  ?>