Woocommerce Social Media Share Buttons - Version 1.1.1

Version Description

Download this release

Release Info

Developer toastiestudio
Plugin Icon 128x128 Woocommerce Social Media Share Buttons
Version 1.1.1
Comparing to
See all releases

Code changes from version 1.0.2 to 1.1.1

README.txt CHANGED
@@ -23,29 +23,31 @@ By default the plugin adds social media share buttons to your woocommerce store
23
 
24
  You can also customize the plugin with the following features:
25
 
26
- * Pick from 3 layout options, button, button with counter or box with counter.
27
 
28
- * Select which social media share buttons to display. Pick from:
29
 
30
- - Facebook
31
 
32
- - Twitter
33
 
34
- - Google+
35
 
36
- - Pinterest
37
 
38
- - Tumblr
39
 
40
- - Linkedin
41
 
42
- - StumbleUpon
43
 
44
- - Email
45
 
46
- * Use shortcode to add social media share buttons to posts, pages, products, events etc. [woocommerce_social_media_share_buttons]
47
 
48
- * Add shortcode to your WordPress theme, or php widget. <?php echo do_shortcode( '[woocommerce_social_media_share_buttons]' ); ?>
 
 
49
 
50
 
51
 
@@ -84,12 +86,20 @@ Please take the time to let us and others know about your experiences by leaving
84
 
85
  Send us an email to toastiestudio@gmail.com and we will try to answer them.
86
 
 
 
 
 
 
87
 
88
 
89
 
90
  == Changelog ==
 
91
  = 1.0.0 = First version, no changes
92
 
 
 
93
 
94
 
95
 
23
 
24
  You can also customize the plugin with the following features:
25
 
26
+ * Pick from 3 layout options, button, button with counter or box with counter.
27
 
28
+ * Select which social media share buttons to display. Pick from:
29
 
30
+ - Facebook
31
 
32
+ - Twitter
33
 
34
+ - Google+
35
 
36
+ - Pinterest
37
 
38
+ - Tumblr
39
 
40
+ - Linkedin
41
 
42
+ - StumbleUpon
43
 
44
+ - Email
45
 
46
+ - VKontakte
47
 
48
+ * Use shortcode to add social media share buttons to posts, pages, products, events etc. [woocommerce_social_media_share_buttons]
49
+
50
+ * Add shortcode to your WordPress theme, or php widget. <?php echo do_shortcode( '[woocommerce_social_media_share_buttons]' ); ?>
51
 
52
 
53
 
86
 
87
  Send us an email to toastiestudio@gmail.com and we will try to answer them.
88
 
89
+ = Will you be adding Instragram to the plugin?
90
+ = I will not be adding a Instragram share button to the plugin. Instagram does not actually support image sharing the same as facebook, pinterest etc. do.
91
+ The only way to post a picture to Instagram is by uploading it yourself as Instagram specifically don't want users posting/sharing other peoples photos on its platform.
92
+ https://help.instagram.com/158826297591430
93
+
94
 
95
 
96
 
97
  == Changelog ==
98
+
99
  = 1.0.0 = First version, no changes
100
 
101
+ = 1.0.1 = Small CSS update
102
+ = 1.1.0 = CSS update, New share platform (VKontakte) and .mo/.po files added.
103
 
104
 
105
 
img/email-share-button-big.png ADDED
Binary file
img/email-share-button.png CHANGED
Binary file
img/email-share-button_old.png ADDED
Binary file
index.php CHANGED
@@ -3,14 +3,13 @@
3
  * Plugin Name: WooCommerce Social Media Share Buttons
4
  * Plugin URI: http://www.toastiestudio.com
5
  * Description: The Woocommerce Social Media Share Buttons plugin allows visitors to your woocommerce shop to easily share your products on popular social media platforms.
6
- * Version: 1.0.1
7
  * Author: Toastie Studio
8
  * Author URI: http://www.toastiestudio.com
9
  * Requires at least: 3.5
10
  * Tested up to: 4.2
11
- *
12
  * Text Domain: woocommerce-social-media-share-buttons
13
- * Domain Path: /languages/
14
  *
15
  * @author ToastieStudio
16
  *
@@ -44,6 +43,7 @@ function toastie_wc_smsb_li_reg_like_settings() {
44
  register_setting('toastie_wc_share_like', 'toastie_smsb_tu');
45
  register_setting('toastie_wc_share_like', 'toastie_smsb_li');
46
  register_setting('toastie_wc_share_like', 'toastie_smsb_st');
 
47
  register_setting('toastie_wc_share_like', 'toastie_smsb_em');
48
  register_setting('toastie_wc_share_like', 'toastie_smsb_format');
49
  }
@@ -58,6 +58,7 @@ add_option('toastie_smsb_pi', 'true');
58
  add_option('toastie_smsb_tu', 'true');
59
  add_option('toastie_smsb_li', 'true');
60
  add_option('toastie_smsb_st', 'true');
 
61
  add_option('toastie_smsb_em', 'true');
62
  add_option('toastie_smsb_format', 'button');
63
 
@@ -66,90 +67,99 @@ function toastie_wc_smsb_form_code() {
66
  $social_val = '<div class="woo-social-buttons">';
67
  if (get_option('toastie_smsb_format') == 'button') {
68
  if (get_option('toastie_smsb_fb') == 'true') {
69
- $social_val.='<span class="smsb_facebook fb-share-button" data-href="' . get_permalink($post->ID) . '" data-layout="button"></span>&nbsp;&nbsp;';
70
  }
71
  if (get_option('toastie_smsb_tw') == 'true') {
72
- $social_val.='<span class="smsb_twitter"><a href="https://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a></span>&nbsp;&nbsp;';
73
  }
74
  if (get_option('toastie_smsb_gp') == 'true') {
75
- $social_val.='<span class="smsb_googleplus g-plus" data-action="share" data-annotation="none" data-href="' . get_permalink($post->ID) . '"></span>&nbsp;&nbsp;';
76
  }
77
  if (get_option('toastie_smsb_pi') == 'true') {
78
- $social_val.='<span class="smsb_pinterest"><a href="//gb.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark" data-pin-color="red" >
79
- <img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_red_20.png" /></a><script type="text/javascript" async defer src="//assets.pinterest.com/js/pinit.js"></script></span>&nbsp;&nbsp;';
80
  }
81
  if (get_option('toastie_smsb_tu') == 'true') {
82
- $social_val.='<span class="smsb_tumblr"><a class="tumblr-share-button" data-color="blue" data-notes="none" href="https://embed.tumblr.com/share"></a></span>&nbsp;&nbsp;';
83
  }
84
  if (get_option('toastie_smsb_li') == 'true') {
85
- $social_val.='<span class="smsb_linkedin"><script src="//platform.linkedin.com/in.js" type="text/javascript"> lang: en_US</script><script type="IN/Share"></script></span>&nbsp;&nbsp;';
86
  }
87
  if (get_option('toastie_smsb_st') == 'true') {
88
- $social_val.='<span class="smsb_stumbleupon" style="position: relative; top: -7px;"><a href="http://www.stumbleupon.com/submit?url=' . get_permalink($post->ID) . '&amp;title='.get_the_title($post->ID).'" target="_blank"><img src="'. plugins_url( 'img/stumbleupon-button.png', __FILE__ ) . '" alt="StumbleUpon" /></a></span>&nbsp;&nbsp;';
89
  }
 
 
 
90
  if (get_option('toastie_smsb_em') == 'true') {
91
- $social_val.='<span class="smsb_email" style="position: relative; top: -7px;"><a href="mailto:?subject='.get_the_title($post->ID).'&amp;body=I%20saw%20this%20and%20thought%20of%20you!%20 ' . get_permalink($post->ID) . '"><img src="'. plugins_url( 'img/email-share-button.png', __FILE__ ) . '" alt="Email" /></a></span>';
92
  }
93
  }
94
 
95
 
96
  if (get_option('toastie_smsb_format') == 'button_count') {
97
  if (get_option('toastie_smsb_fb') == 'true') {
98
- $social_val.='<span class="smsb_facebook hcount fb-share-button" data-href="' . get_permalink($post->ID) . '" data-layout="button_count"></span>&nbsp;&nbsp;';
99
  }
100
  if (get_option('toastie_smsb_tw') == 'true') {
101
- $social_val.='<span class="smsb_twitter hcount"><a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a></span>&nbsp;&nbsp;';
102
  }
103
  if (get_option('toastie_smsb_gp') == 'true') {
104
- $social_val.='<span class="smsb_googleplus hcount g-plus" data-action="share" data-annotation="bubble" data-href="' . get_permalink($post->ID) . '"></span>&nbsp;&nbsp;';
105
  }
106
  if (get_option('toastie_smsb_pi') == 'true') {
107
  $social_val.='<span class="smsb_pinterest hcount"><a href="//gb.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark" data-pin-config="beside" data-pin-color="red" >
108
- <img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_red_20.png" /></a><script type="text/javascript" async defer src="//assets.pinterest.com/js/pinit.js"></script></span>&nbsp;&nbsp;';
109
  }
110
  if (get_option('toastie_smsb_tu') == 'true') {
111
- $social_val.='<span class="smsb_tumblr hcount"><a class="tumblr-share-button" data-color="blue" data-notes="right" href="https://embed.tumblr.com/share"></a></span>&nbsp;&nbsp;';
112
  }
113
  if (get_option('toastie_smsb_li') == 'true') {
114
- $social_val.='<span class="smsb_linkedin hcount"><script src="//platform.linkedin.com/in.js" type="text/javascript"> lang: en_US</script><script type="IN/Share" data-counter="right"></script></span>&nbsp;&nbsp;';
115
  }
116
  if (get_option('toastie_smsb_st') == 'true') {
117
- $social_val.='<span class="smsb_stumbleupon hcount" style="position: relative; top: -7px;"><a href="http://www.stumbleupon.com/submit?url=' . get_permalink($post->ID) . '&amp;title='.get_the_title($post->ID).'" target="_blank"><img src="'. plugins_url( 'img/stumbleupon-button.png', __FILE__ ) . '" alt="StumbleUpon" /></a></span>&nbsp;&nbsp;';
118
  }
 
 
 
119
  if (get_option('toastie_smsb_em') == 'true') {
120
- $social_val.='<span class="smsb_email hcount" style="position: relative; top: -7px;"><a href="mailto:?subject='.get_the_title($post->ID).'&amp;body=I%20saw%20this%20and%20thought%20of%20you!%20 ' . get_permalink($post->ID) . '"><img src="'. plugins_url( 'img/email-share-button.png', __FILE__ ) . '" alt="Email" /></a></span>';
121
  }
122
  }
123
 
124
 
125
  if (get_option('toastie_smsb_format') == 'box_count') {
126
  if (get_option('toastie_smsb_fb') == 'true') {
127
- $social_val.='<span class="smsb_facebook vcount fb-share-button" data-href="' . get_permalink($post->ID) . '" data-layout="box_count"></span>&nbsp;&nbsp;';
128
  }
129
  if (get_option('toastie_smsb_tw') == 'true') {
130
- $social_val.='<span class="smsb_twitter vcount"><a href="https://twitter.com/share" class="twitter-share-button" data-count="vertical">Tweet</a></span>&nbsp;&nbsp;';
131
  }
132
  if (get_option('toastie_smsb_gp') == 'true') {
133
- $social_val.='<span class="smsb_googleplus vcount g-plus" data-action="share" data-annotation="vertical-bubble" data-href="' . get_permalink($post->ID) . '"></span>&nbsp;&nbsp;';
134
  }
135
  if (get_option('toastie_smsb_pi') == 'true') {
136
  $social_val.='<span class="smsb_pinterest vcount"><a href="//gb.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark" data-pin-config="above" data-pin-color="red" >
137
- <img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_red_20.png" /></a><script type="text/javascript" async defer src="//assets.pinterest.com/js/pinit.js"></script></span>&nbsp;&nbsp;';
138
  }
139
  if (get_option('toastie_smsb_tu') == 'true') {
140
- $social_val.='<span class="smsb_tumblr vcount"><a class="tumblr-share-button" data-color="blue" data-notes="top" href="https://embed.tumblr.com/share"></a></span>&nbsp;&nbsp;';
141
  }
142
  if (get_option('toastie_smsb_li') == 'true') {
143
- $social_val.='<span class="smsb_linkedin vcount"><script src="//platform.linkedin.com/in.js" type="text/javascript"> lang: en_US</script><script type="IN/Share" data-counter="top"></script></span>&nbsp;&nbsp;';
144
  }
145
  if (get_option('toastie_smsb_st') == 'true') {
146
- $social_val.='<span class="smsb_stumbleupon vcount"><su:badge layout="5"></su:badge></span>&nbsp;&nbsp;';
147
  }
 
 
 
148
  if (get_option('toastie_smsb_em') == 'true') {
149
- $social_val.='<span class="smsb_email vcount" style="position: relative; top: -7px;"><a href="mailto:?subject='.get_the_title($post->ID).'&amp;body=I%20saw%20this%20and%20thought%20of%20you!%20 ' . get_permalink($post->ID) . '"><img src="'. plugins_url( 'img/email-share-button.png', __FILE__ ) . '" alt="Email" /></a></span>';
150
  }
151
  }
152
- $social_val.='</div>';
153
  echo $social_val;
154
  }
155
 
@@ -158,90 +168,99 @@ function toastie_wc_smsb_form_short_code() {
158
  $social_val = '<div class="woo-social-buttons">';
159
  if (get_option('toastie_smsb_format') == 'button') {
160
  if (get_option('toastie_smsb_fb') == 'true') {
161
- $social_val.='<span class="smsb_facebook fb-share-button" data-href="' . get_permalink($post->ID) . '" data-layout="button"></span>&nbsp;&nbsp;';
162
  }
163
  if (get_option('toastie_smsb_tw') == 'true') {
164
- $social_val.='<span class="smsb_twitter"><a href="https://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a></span>&nbsp;&nbsp;';
165
  }
166
  if (get_option('toastie_smsb_gp') == 'true') {
167
- $social_val.='<span class="smsb_googleplus g-plus" data-action="share" data-annotation="none" data-href="' . get_permalink($post->ID) . '"></span>&nbsp;&nbsp;';
168
  }
169
  if (get_option('toastie_smsb_pi') == 'true') {
170
- $social_val.='<span class="smsb_pinterest"><a href="//gb.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark" data-pin-color="red" >
171
- <img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_red_20.png" /></a><script type="text/javascript" async defer src="//assets.pinterest.com/js/pinit.js"></script></span>&nbsp;&nbsp;';
172
  }
173
  if (get_option('toastie_smsb_tu') == 'true') {
174
- $social_val.='<span class="smsb_tumblr"><a class="tumblr-share-button" data-color="blue" data-notes="none" href="https://embed.tumblr.com/share"></a></span>&nbsp;&nbsp;';
175
  }
176
  if (get_option('toastie_smsb_li') == 'true') {
177
- $social_val.='<span class="smsb_linkedin"><script src="//platform.linkedin.com/in.js" type="text/javascript"> lang: en_US</script><script type="IN/Share"></script></span>&nbsp;&nbsp;';
178
  }
179
  if (get_option('toastie_smsb_st') == 'true') {
180
- $social_val.='<span class="smsb_stumbleupon" style="position: relative; top: -7px;"><a href="http://www.stumbleupon.com/submit?url=' . get_permalink($post->ID) . '&amp;title='.get_the_title($post->ID).'" target="_blank"><img src="'. plugins_url( 'img/stumbleupon-button.png', __FILE__ ) . '" alt="StumbleUpon" /></a></span>&nbsp;&nbsp;';
181
  }
 
 
 
182
  if (get_option('toastie_smsb_em') == 'true') {
183
- $social_val.='<span class="smsb_email" style="position: relative; top: -7px;"><a href="mailto:?subject='.get_the_title($post->ID).'&amp;body=I%20saw%20this%20and%20thought%20of%20you!%20 ' . get_permalink($post->ID) . '"><img src="'. plugins_url( 'img/email-share-button.png', __FILE__ ) . '" alt="Email" /></a></span>';
184
  }
185
  }
186
 
187
 
188
  if (get_option('toastie_smsb_format') == 'button_count') {
189
  if (get_option('toastie_smsb_fb') == 'true') {
190
- $social_val.='<span class="smsb_facebook hcount fb-share-button" data-href="' . get_permalink($post->ID) . '" data-layout="button_count"></span>&nbsp;&nbsp;';
191
  }
192
  if (get_option('toastie_smsb_tw') == 'true') {
193
- $social_val.='<span class="smsb_twitter hcount"><a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a></span>&nbsp;&nbsp;';
194
  }
195
  if (get_option('toastie_smsb_gp') == 'true') {
196
- $social_val.='<span class="smsb_googleplus hcount g-plus" data-action="share" data-annotation="bubble" data-href="' . get_permalink($post->ID) . '"></span>&nbsp;&nbsp;';
197
  }
198
  if (get_option('toastie_smsb_pi') == 'true') {
199
  $social_val.='<span class="smsb_pinterest hcount"><a href="//gb.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark" data-pin-config="beside" data-pin-color="red" >
200
- <img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_red_20.png" /></a><script type="text/javascript" async defer src="//assets.pinterest.com/js/pinit.js"></script></span>&nbsp;&nbsp;';
201
  }
202
  if (get_option('toastie_smsb_tu') == 'true') {
203
- $social_val.='<span class="smsb_tumblr hcount"><a class="tumblr-share-button" data-color="blue" data-notes="right" href="https://embed.tumblr.com/share"></a></span>&nbsp;&nbsp;';
204
  }
205
  if (get_option('toastie_smsb_li') == 'true') {
206
- $social_val.='<span class="smsb_linkedin hcount"><script src="//platform.linkedin.com/in.js" type="text/javascript"> lang: en_US</script><script type="IN/Share" data-counter="right"></script></span>&nbsp;&nbsp;';
207
  }
208
  if (get_option('toastie_smsb_st') == 'true') {
209
- $social_val.='<span class="smsb_stumbleupon hcount" style="position: relative; top: -7px;"><a href="http://www.stumbleupon.com/submit?url=' . get_permalink($post->ID) . '&amp;title='.get_the_title($post->ID).'" target="_blank"><img src="'. plugins_url( 'img/stumbleupon-button.png', __FILE__ ) . '" alt="StumbleUpon" /></a></span>&nbsp;&nbsp;';
210
  }
 
 
 
211
  if (get_option('toastie_smsb_em') == 'true') {
212
- $social_val.='<span class="smsb_email hcount" style="position: relative; top: -7px;"><a href="mailto:?subject='.get_the_title($post->ID).'&amp;body=I%20saw%20this%20and%20thought%20of%20you!%20 ' . get_permalink($post->ID) . '"><img src="'. plugins_url( 'img/email-share-button.png', __FILE__ ) . '" alt="Email" /></a></span>';
213
  }
214
  }
215
 
216
 
217
  if (get_option('toastie_smsb_format') == 'box_count') {
218
  if (get_option('toastie_smsb_fb') == 'true') {
219
- $social_val.='<span class="smsb_facebook vcount fb-share-button" data-href="' . get_permalink($post->ID) . '" data-layout="box_count"></span>&nbsp;&nbsp;';
220
  }
221
  if (get_option('toastie_smsb_tw') == 'true') {
222
- $social_val.='<span class="smsb_twitter vcount"><a href="https://twitter.com/share" class="twitter-share-button" data-count="vertical">Tweet</a></span>&nbsp;&nbsp;';
223
  }
224
  if (get_option('toastie_smsb_gp') == 'true') {
225
- $social_val.='<span class="smsb_googleplus vcount g-plus" data-action="share" data-annotation="vertical-bubble" data-href="' . get_permalink($post->ID) . '"></span>&nbsp;&nbsp;';
226
  }
227
  if (get_option('toastie_smsb_pi') == 'true') {
228
  $social_val.='<span class="smsb_pinterest vcount"><a href="//gb.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark" data-pin-config="above" data-pin-color="red" >
229
- <img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_red_20.png" /></a><script type="text/javascript" async defer src="//assets.pinterest.com/js/pinit.js"></script></span>&nbsp;&nbsp;';
230
  }
231
  if (get_option('toastie_smsb_tu') == 'true') {
232
- $social_val.='<span class="smsb_tumblr vcount"><a class="tumblr-share-button" data-color="blue" data-notes="top" href="https://embed.tumblr.com/share"></a></span>&nbsp;&nbsp;';
233
  }
234
  if (get_option('toastie_smsb_li') == 'true') {
235
- $social_val.='<span class="smsb_linkedin vcount"><script src="//platform.linkedin.com/in.js" type="text/javascript"> lang: en_US</script><script type="IN/Share" data-counter="top"></script></span>&nbsp;&nbsp;';
236
  }
237
  if (get_option('toastie_smsb_st') == 'true') {
238
- $social_val.='<span class="smsb_stumbleupon vcount"><su:badge layout="5"></su:badge></span>&nbsp;&nbsp;';
239
  }
 
 
 
240
  if (get_option('toastie_smsb_em') == 'true') {
241
- $social_val.='<span class="smsb_email vcount" style="position: relative; top: -7px;"><a href="mailto:?subject='.get_the_title($post->ID).'&amp;body=I%20saw%20this%20and%20thought%20of%20you!%20 ' . get_permalink($post->ID) . '"><img src="'. plugins_url( 'img/email-share-button.png', __FILE__ ) . '" alt="Email" /></a></span>';
242
  }
243
  }
244
- $social_val.='</div>';
245
  echo $social_val;
246
  }
247
 
@@ -250,6 +269,7 @@ add_shortcode('woocommerce_social_media_share_buttons', 'toastie_wc_smsb_form_sh
250
  add_action('woocommerce_single_product_summary', 'toastie_wc_smsb_form_code', 31);
251
  add_action('admin_menu', 'toastie_wc_smsb_social_menu');
252
  add_action('wp_footer', 'toastie_wc_smsb_social_footer');
 
253
 
254
  function toastie_wc_smsb_social_menu() {
255
  add_menu_page('Woocommerce Social Media Share Button Page', 'Share Buttons', 'manage_options', 'Woocommerce-social-media-share-button-plugin', 'toastie_wc_smsb_social_init', plugins_url('/img/woo_16.png', __FILE__));
@@ -258,12 +278,18 @@ function toastie_wc_smsb_social_menu() {
258
  function toastie_wc_smsb_social_footer() {
259
  echo "<style type='text/css'>
260
  .fb_iframe_widget > span {display: table !important;}
261
- .woo-social-buttons {margin:10px 0; line-height:20px;}
 
 
 
 
 
262
  .woo-social-buttons .smsb_tumblr iframe {height:20px !important; width:50px !important;}
263
  .woo-social-buttons .smsb_tumblr.hcount iframe {height:20px !important; width:72px !important;}
264
  .woo-social-buttons .smsb_tumblr.vcount iframe {height:40px !important; width:55px !important;}
265
  .woo-social-buttons .smsb_stumbleupon.vcount iframe {height:60px !important; width:50px !important;}
266
- .woo-social-buttons iframe {margin-bottom:0px; vertical-align:baseline;}
 
267
  </style>";
268
  }
269
 
@@ -278,6 +304,7 @@ function toastie_wc_smsb_social_init() {
278
  $smsb_tu = sanitize_text_field($_REQUEST['smsb_tu']);
279
  $smsb_li = sanitize_text_field($_REQUEST['smsb_li']);
280
  $smsb_st = sanitize_text_field($_REQUEST['smsb_st']);
 
281
  $smsb_em = sanitize_text_field($_REQUEST['smsb_em']);
282
  $smsb_format = sanitize_text_field($_REQUEST['smsb_format']);
283
  update_option('toastie_smsb_fb', $smsb_fb);
@@ -287,6 +314,7 @@ function toastie_wc_smsb_social_init() {
287
  update_option('toastie_smsb_tu', $smsb_tu);
288
  update_option('toastie_smsb_li', $smsb_li);
289
  update_option('toastie_smsb_st', $smsb_st);
 
290
  update_option('toastie_smsb_em', $smsb_em);
291
  update_option('toastie_smsb_format', $smsb_format);
292
  $submited = 1;
@@ -327,6 +355,8 @@ function toastie_wc_smsb_social_init() {
327
  <br/>
328
  <label> <input type="checkbox" name="smsb_st" value="true" <?php echo (get_option('toastie_smsb_st') == 'true' ? 'checked' : ''); ?> ><span style="padding-left: 5px;font-weight: bold;"><?php _e('StumbleUpon', 'woocommerce-social-media-share-buttons'); ?></span></label>
329
  <br/>
 
 
330
  <label> <input type="checkbox" name="smsb_em" value="true" <?php echo (get_option('toastie_smsb_em') == 'true' ? 'checked' : ''); ?> ><span style="padding-left: 5px;font-weight: bold;"><?php _e('Email', 'woocommerce-social-media-share-buttons'); ?></span></label>
331
  </fieldset></td>
332
  </tr>
@@ -339,7 +369,10 @@ function toastie_wc_smsb_social_init() {
339
  <label><input type="radio" name="smsb_format" value="button_count" <?php echo (get_option('toastie_smsb_format') == 'button_count' ? 'checked' : ''); ?> /><span style="padding-left: 5px;font-weight: bold;"> <?php _e('Button with counter', 'woocommerce-social-media-share-buttons'); ?></span></label>
340
  <br/>
341
  <label><input type="radio" name="smsb_format" value="box_count" <?php echo (get_option('toastie_smsb_format') == 'box_count' ? 'checked' : ''); ?> /><span style="padding-left: 5px;font-weight: bold;"> <?php _e('Box with counter', 'woocommerce-social-media-share-buttons'); ?></span></label>
342
- </fieldset></td>
 
 
 
343
  </tr>
344
  </table>
345
  <p>&nbsp;</p>
3
  * Plugin Name: WooCommerce Social Media Share Buttons
4
  * Plugin URI: http://www.toastiestudio.com
5
  * Description: The Woocommerce Social Media Share Buttons plugin allows visitors to your woocommerce shop to easily share your products on popular social media platforms.
6
+ * Version: 1.1.1
7
  * Author: Toastie Studio
8
  * Author URI: http://www.toastiestudio.com
9
  * Requires at least: 3.5
10
  * Tested up to: 4.2
 
11
  * Text Domain: woocommerce-social-media-share-buttons
12
+ * Domain Path: /lang
13
  *
14
  * @author ToastieStudio
15
  *
43
  register_setting('toastie_wc_share_like', 'toastie_smsb_tu');
44
  register_setting('toastie_wc_share_like', 'toastie_smsb_li');
45
  register_setting('toastie_wc_share_like', 'toastie_smsb_st');
46
+ register_setting('toastie_wc_share_like', 'toastie_smsb_vk');
47
  register_setting('toastie_wc_share_like', 'toastie_smsb_em');
48
  register_setting('toastie_wc_share_like', 'toastie_smsb_format');
49
  }
58
  add_option('toastie_smsb_tu', 'true');
59
  add_option('toastie_smsb_li', 'true');
60
  add_option('toastie_smsb_st', 'true');
61
+ add_option('toastie_smsb_vk', 'true');
62
  add_option('toastie_smsb_em', 'true');
63
  add_option('toastie_smsb_format', 'button');
64
 
67
  $social_val = '<div class="woo-social-buttons">';
68
  if (get_option('toastie_smsb_format') == 'button') {
69
  if (get_option('toastie_smsb_fb') == 'true') {
70
+ $social_val.='<span class="smsb_facebook nocount fb-share-button" data-href="' . get_permalink($post->ID) . '" data-layout="button"></span>';
71
  }
72
  if (get_option('toastie_smsb_tw') == 'true') {
73
+ $social_val.='<span class="smsb_twitter nocount"><a href="https://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a></span>';
74
  }
75
  if (get_option('toastie_smsb_gp') == 'true') {
76
+ $social_val.='<span class="smsb_googleplus nocount"><span class="g-plus" data-action="share" data-annotation="none" data-href="' . get_permalink($post->ID) . '"></span></span>';
77
  }
78
  if (get_option('toastie_smsb_pi') == 'true') {
79
+ $social_val.='<span class="smsb_pinterest nocount"><a href="//gb.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark" data-pin-color="red" >
80
+ <img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_red_20.png" /></a><script type="text/javascript" async defer src="//assets.pinterest.com/js/pinit.js"></script></span>';
81
  }
82
  if (get_option('toastie_smsb_tu') == 'true') {
83
+ $social_val.='<span class="smsb_tumblr nocount"><a class="tumblr-share-button" data-color="blue" data-notes="none" href="https://embed.tumblr.com/share"></a></span>';
84
  }
85
  if (get_option('toastie_smsb_li') == 'true') {
86
+ $social_val.='<span class="smsb_linkedin nocount"><script src="//platform.linkedin.com/in.js" type="text/javascript"> lang: en_US</script><script type="IN/Share"></script></span>';
87
  }
88
  if (get_option('toastie_smsb_st') == 'true') {
89
+ $social_val.='<span class="smsb_stumbleupon nocount"><a href="http://www.stumbleupon.com/submit?url=' . get_permalink($post->ID) . '&amp;title='.get_the_title($post->ID).'" target="_blank"><img src="'. plugins_url( 'img/stumbleupon-button.png', __FILE__ ) . '" alt="StumbleUpon" /></a></span>';
90
  }
91
+ if (get_option('toastie_smsb_vk') == 'true') {
92
+ $social_val.='<span class="smsb_vkontakte nocount"><script type="text/javascript" src="http://vk.com/js/api/share.js?9"; charset="windows-1251"></script><script type="text/javascript">document.write(VK.Share.button(false, {type: "round_nocount"})); </script></span>';
93
+ }
94
  if (get_option('toastie_smsb_em') == 'true') {
95
+ $social_val.='<span class="smsb_email nocount"><a href="mailto:?subject='.get_the_title($post->ID).'&amp;body=I%20saw%20this%20and%20thought%20of%20you!%20 ' . get_permalink($post->ID) . '"><img src="'. plugins_url( 'img/email-share-button.png', __FILE__ ) . '" alt="Email" /></a></span>';
96
  }
97
  }
98
 
99
 
100
  if (get_option('toastie_smsb_format') == 'button_count') {
101
  if (get_option('toastie_smsb_fb') == 'true') {
102
+ $social_val.='<span class="smsb_facebook hcount fb-share-button" data-href="' . get_permalink($post->ID) . '" data-layout="button_count"></span>';
103
  }
104
  if (get_option('toastie_smsb_tw') == 'true') {
105
+ $social_val.='<span class="smsb_twitter hcount"><a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a></span>';
106
  }
107
  if (get_option('toastie_smsb_gp') == 'true') {
108
+ $social_val.='<span class="smsb_googleplus hcount"><span class="g-plus" data-action="share" data-annotation="bubble" data-href="' . get_permalink($post->ID) . '"></span></span>';
109
  }
110
  if (get_option('toastie_smsb_pi') == 'true') {
111
  $social_val.='<span class="smsb_pinterest hcount"><a href="//gb.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark" data-pin-config="beside" data-pin-color="red" >
112
+ <img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_red_20.png" /></a><script type="text/javascript" async defer src="//assets.pinterest.com/js/pinit.js"></script></span>';
113
  }
114
  if (get_option('toastie_smsb_tu') == 'true') {
115
+ $social_val.='<span class="smsb_tumblr hcount"><a class="tumblr-share-button" data-color="blue" data-notes="right" href="https://embed.tumblr.com/share"></a></span>';
116
  }
117
  if (get_option('toastie_smsb_li') == 'true') {
118
+ $social_val.='<span class="smsb_linkedin hcount"><script src="//platform.linkedin.com/in.js" type="text/javascript"> lang: en_US</script><script type="IN/Share" data-counter="right"></script></span>';
119
  }
120
  if (get_option('toastie_smsb_st') == 'true') {
121
+ $social_val.='<span class="smsb_stumbleupon hcount"><a href="http://www.stumbleupon.com/submit?url=' . get_permalink($post->ID) . '&amp;title='.get_the_title($post->ID).'" target="_blank"><img src="'. plugins_url( 'img/stumbleupon-button.png', __FILE__ ) . '" alt="StumbleUpon" /></a></span>';
122
  }
123
+ if (get_option('toastie_smsb_vk') == 'true') {
124
+ $social_val.='<span class="smsb_vkontakte hcount"><script type="text/javascript" src="http://vk.com/js/api/share.js?9"; charset="windows-1251"></script><script type="text/javascript">document.write(VK.Share.button(false, {type: "round"})); </script></span>';
125
+ }
126
  if (get_option('toastie_smsb_em') == 'true') {
127
+ $social_val.='<span class="smsb_email hcount"><a href="mailto:?subject='.get_the_title($post->ID).'&amp;body=I%20saw%20this%20and%20thought%20of%20you!%20 ' . get_permalink($post->ID) . '"><img src="'. plugins_url( 'img/email-share-button.png', __FILE__ ) . '" alt="Email" /></a></span>';
128
  }
129
  }
130
 
131
 
132
  if (get_option('toastie_smsb_format') == 'box_count') {
133
  if (get_option('toastie_smsb_fb') == 'true') {
134
+ $social_val.='<span class="smsb_facebook vcount fb-share-button" data-href="' . get_permalink($post->ID) . '" data-layout="box_count"></span>';
135
  }
136
  if (get_option('toastie_smsb_tw') == 'true') {
137
+ $social_val.='<span class="smsb_twitter vcount"><a href="https://twitter.com/share" class="twitter-share-button" data-count="vertical">Tweet</a></span>';
138
  }
139
  if (get_option('toastie_smsb_gp') == 'true') {
140
+ $social_val.='<span class="smsb_googleplus vcount"><span class="g-plus" data-action="share" data-annotation="vertical-bubble" data-href="' . get_permalink($post->ID) . '"></span></span>';
141
  }
142
  if (get_option('toastie_smsb_pi') == 'true') {
143
  $social_val.='<span class="smsb_pinterest vcount"><a href="//gb.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark" data-pin-config="above" data-pin-color="red" >
144
+ <img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_red_20.png" /></a><script type="text/javascript" async defer src="//assets.pinterest.com/js/pinit.js"></script></span>';
145
  }
146
  if (get_option('toastie_smsb_tu') == 'true') {
147
+ $social_val.='<span class="smsb_tumblr vcount"><a class="tumblr-share-button" data-color="blue" data-notes="top" href="https://embed.tumblr.com/share"></a></span>';
148
  }
149
  if (get_option('toastie_smsb_li') == 'true') {
150
+ $social_val.='<span class="smsb_linkedin vcount"><script src="//platform.linkedin.com/in.js" type="text/javascript"> lang: en_US</script><script type="IN/Share" data-counter="top"></script></span>';
151
  }
152
  if (get_option('toastie_smsb_st') == 'true') {
153
+ $social_val.='<span class="smsb_stumbleupon vcount"><su:badge layout="5"></su:badge></span>';
154
  }
155
+ if (get_option('toastie_smsb_vk') == 'true') {
156
+ $social_val.='<span class="smsb_vkontakte vcount"><script type="text/javascript" src="http://vk.com/js/api/share.js?9"; charset="windows-1251"></script><script type="text/javascript">document.write(VK.Share.button(false, {type: "custom", text: "<img src=\''. plugins_url( 'img/vk-share-button-big.png', __FILE__ ) . '\'; />"})); </script></span>';
157
+ }
158
  if (get_option('toastie_smsb_em') == 'true') {
159
+ $social_val.='<span class="smsb_email vcount"><a href="mailto:?subject='.get_the_title($post->ID).'&amp;body=I%20saw%20this%20and%20thought%20of%20you!%20 ' . get_permalink($post->ID) . '"><img src="'. plugins_url( 'img/email-share-button-big.png', __FILE__ ) . '" alt="Email" /></a></span>';
160
  }
161
  }
162
+ $social_val.='<div style="clear:both"></div></div>';
163
  echo $social_val;
164
  }
165
 
168
  $social_val = '<div class="woo-social-buttons">';
169
  if (get_option('toastie_smsb_format') == 'button') {
170
  if (get_option('toastie_smsb_fb') == 'true') {
171
+ $social_val.='<span class="smsb_facebook nocount fb-share-button" data-href="' . get_permalink($post->ID) . '" data-layout="button"></span>';
172
  }
173
  if (get_option('toastie_smsb_tw') == 'true') {
174
+ $social_val.='<span class="smsb_twitter nocount"><a href="https://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a></span>';
175
  }
176
  if (get_option('toastie_smsb_gp') == 'true') {
177
+ $social_val.='<span class="smsb_googleplus nocount"><span class="g-plus" data-action="share" data-annotation="none" data-href="' . get_permalink($post->ID) . '"></span></span>';
178
  }
179
  if (get_option('toastie_smsb_pi') == 'true') {
180
+ $social_val.='<span class="smsb_pinterest nocount"><a href="//gb.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark" data-pin-color="red" >
181
+ <img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_red_20.png" /></a><script type="text/javascript" async defer src="//assets.pinterest.com/js/pinit.js"></script></span>';
182
  }
183
  if (get_option('toastie_smsb_tu') == 'true') {
184
+ $social_val.='<span class="smsb_tumblr nocount"><a class="tumblr-share-button" data-color="blue" data-notes="none" href="https://embed.tumblr.com/share"></a></span>';
185
  }
186
  if (get_option('toastie_smsb_li') == 'true') {
187
+ $social_val.='<span class="smsb_linkedin nocount"><script src="//platform.linkedin.com/in.js" type="text/javascript"> lang: en_US</script><script type="IN/Share"></script></span>';
188
  }
189
  if (get_option('toastie_smsb_st') == 'true') {
190
+ $social_val.='<span class="smsb_stumbleupon nocount"><a href="http://www.stumbleupon.com/submit?url=' . get_permalink($post->ID) . '&amp;title='.get_the_title($post->ID).'" target="_blank"><img src="'. plugins_url( 'img/stumbleupon-button.png', __FILE__ ) . '" alt="StumbleUpon" /></a></span>';
191
  }
192
+ if (get_option('toastie_smsb_vk') == 'true') {
193
+ $social_val.='<span class="smsb_vkontakte nocount"><script type="text/javascript" src="http://vk.com/js/api/share.js?9"; charset="windows-1251"></script><script type="text/javascript">document.write(VK.Share.button(false, {type: "round_nocount"})); </script></span>';
194
+ }
195
  if (get_option('toastie_smsb_em') == 'true') {
196
+ $social_val.='<span class="smsb_email nocount"><a href="mailto:?subject='.get_the_title($post->ID).'&amp;body=I%20saw%20this%20and%20thought%20of%20you!%20 ' . get_permalink($post->ID) . '"><img src="'. plugins_url( 'img/email-share-button.png', __FILE__ ) . '" alt="Email" /></a></span>';
197
  }
198
  }
199
 
200
 
201
  if (get_option('toastie_smsb_format') == 'button_count') {
202
  if (get_option('toastie_smsb_fb') == 'true') {
203
+ $social_val.='<span class="smsb_facebook hcount fb-share-button" data-href="' . get_permalink($post->ID) . '" data-layout="button_count"></span>';
204
  }
205
  if (get_option('toastie_smsb_tw') == 'true') {
206
+ $social_val.='<span class="smsb_twitter hcount"><a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a></span>';
207
  }
208
  if (get_option('toastie_smsb_gp') == 'true') {
209
+ $social_val.='<span class="smsb_googleplus hcount"><span class="g-plus" data-action="share" data-annotation="bubble" data-href="' . get_permalink($post->ID) . '"></span></span>';
210
  }
211
  if (get_option('toastie_smsb_pi') == 'true') {
212
  $social_val.='<span class="smsb_pinterest hcount"><a href="//gb.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark" data-pin-config="beside" data-pin-color="red" >
213
+ <img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_red_20.png" /></a><script type="text/javascript" async defer src="//assets.pinterest.com/js/pinit.js"></script></span>';
214
  }
215
  if (get_option('toastie_smsb_tu') == 'true') {
216
+ $social_val.='<span class="smsb_tumblr hcount"><a class="tumblr-share-button" data-color="blue" data-notes="right" href="https://embed.tumblr.com/share"></a></span>';
217
  }
218
  if (get_option('toastie_smsb_li') == 'true') {
219
+ $social_val.='<span class="smsb_linkedin hcount"><script src="//platform.linkedin.com/in.js" type="text/javascript"> lang: en_US</script><script type="IN/Share" data-counter="right"></script></span>';
220
  }
221
  if (get_option('toastie_smsb_st') == 'true') {
222
+ $social_val.='<span class="smsb_stumbleupon hcount"><a href="http://www.stumbleupon.com/submit?url=' . get_permalink($post->ID) . '&amp;title='.get_the_title($post->ID).'" target="_blank"><img src="'. plugins_url( 'img/stumbleupon-button.png', __FILE__ ) . '" alt="StumbleUpon" /></a></span>';
223
  }
224
+ if (get_option('toastie_smsb_vk') == 'true') {
225
+ $social_val.='<span class="smsb_vkontakte hcount"><script type="text/javascript" src="http://vk.com/js/api/share.js?9"; charset="windows-1251"></script><script type="text/javascript">document.write(VK.Share.button(false, {type: "round"})); </script></span>';
226
+ }
227
  if (get_option('toastie_smsb_em') == 'true') {
228
+ $social_val.='<span class="smsb_email hcount"><a href="mailto:?subject='.get_the_title($post->ID).'&amp;body=I%20saw%20this%20and%20thought%20of%20you!%20 ' . get_permalink($post->ID) . '"><img src="'. plugins_url( 'img/email-share-button.png', __FILE__ ) . '" alt="Email" /></a></span>';
229
  }
230
  }
231
 
232
 
233
  if (get_option('toastie_smsb_format') == 'box_count') {
234
  if (get_option('toastie_smsb_fb') == 'true') {
235
+ $social_val.='<span class="smsb_facebook vcount fb-share-button" data-href="' . get_permalink($post->ID) . '" data-layout="box_count"></span>';
236
  }
237
  if (get_option('toastie_smsb_tw') == 'true') {
238
+ $social_val.='<span class="smsb_twitter vcount"><a href="https://twitter.com/share" class="twitter-share-button" data-count="vertical">Tweet</a></span>';
239
  }
240
  if (get_option('toastie_smsb_gp') == 'true') {
241
+ $social_val.='<span class="smsb_googleplus vcount"><span class="g-plus" data-action="share" data-annotation="vertical-bubble" data-href="' . get_permalink($post->ID) . '"></span></span>';
242
  }
243
  if (get_option('toastie_smsb_pi') == 'true') {
244
  $social_val.='<span class="smsb_pinterest vcount"><a href="//gb.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark" data-pin-config="above" data-pin-color="red" >
245
+ <img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_red_20.png" /></a><script type="text/javascript" async defer src="//assets.pinterest.com/js/pinit.js"></script></span>';
246
  }
247
  if (get_option('toastie_smsb_tu') == 'true') {
248
+ $social_val.='<span class="smsb_tumblr vcount"><a class="tumblr-share-button" data-color="blue" data-notes="top" href="https://embed.tumblr.com/share"></a></span>';
249
  }
250
  if (get_option('toastie_smsb_li') == 'true') {
251
+ $social_val.='<span class="smsb_linkedin vcount"><script src="//platform.linkedin.com/in.js" type="text/javascript"> lang: en_US</script><script type="IN/Share" data-counter="top"></script></span>';
252
  }
253
  if (get_option('toastie_smsb_st') == 'true') {
254
+ $social_val.='<span class="smsb_stumbleupon vcount"><su:badge layout="5"></su:badge></span>';
255
  }
256
+ if (get_option('toastie_smsb_vk') == 'true') {
257
+ $social_val.='<span class="smsb_vkontakte vcount"><script type="text/javascript" src="http://vk.com/js/api/share.js?9"; charset="windows-1251"></script><script type="text/javascript">document.write(VK.Share.button(false, {type: "custom", text: "<img src="'. plugins_url( 'img/vk-share-button-big.png', __FILE__ ) . '"; />"})); </script></span>';
258
+ }
259
  if (get_option('toastie_smsb_em') == 'true') {
260
+ $social_val.='<span class="smsb_email vcount"><a href="mailto:?subject='.get_the_title($post->ID).'&amp;body=I%20saw%20this%20and%20thought%20of%20you!%20 ' . get_permalink($post->ID) . '"><img src="'. plugins_url( 'img/email-share-button-big.png', __FILE__ ) . '" alt="Email" /></a></span>';
261
  }
262
  }
263
+ $social_val.='<div style="clear:both"></div></div>';
264
  echo $social_val;
265
  }
266
 
269
  add_action('woocommerce_single_product_summary', 'toastie_wc_smsb_form_code', 31);
270
  add_action('admin_menu', 'toastie_wc_smsb_social_menu');
271
  add_action('wp_footer', 'toastie_wc_smsb_social_footer');
272
+ load_plugin_textdomain( 'woocommerce-social-media-share-buttons', false, dirname( plugin_basename( __FILE__ ) ) . '/lang' );
273
 
274
  function toastie_wc_smsb_social_menu() {
275
  add_menu_page('Woocommerce Social Media Share Button Page', 'Share Buttons', 'manage_options', 'Woocommerce-social-media-share-button-plugin', 'toastie_wc_smsb_social_init', plugins_url('/img/woo_16.png', __FILE__));
278
  function toastie_wc_smsb_social_footer() {
279
  echo "<style type='text/css'>
280
  .fb_iframe_widget > span {display: table !important;}
281
+ .woo-social-buttons {margin:10px 0;}
282
+ .woo-social-buttons img {vertical-align: top;}
283
+ .woo-social-buttons span.nocount, .woo-social-buttons span.hcount {float:left; margin:0 5px 5px 0; height:21px;}
284
+ .woo-social-buttons span.vcount {float:left; margin:0 5px 5px 0; height:65px;}
285
+ .woo-social-buttons iframe {margin-bottom:0px; vertical-align:baseline;}
286
+ .woo-social-buttons .smsb_pinterest.vcount {position:relative; top:30px}
287
  .woo-social-buttons .smsb_tumblr iframe {height:20px !important; width:50px !important;}
288
  .woo-social-buttons .smsb_tumblr.hcount iframe {height:20px !important; width:72px !important;}
289
  .woo-social-buttons .smsb_tumblr.vcount iframe {height:40px !important; width:55px !important;}
290
  .woo-social-buttons .smsb_stumbleupon.vcount iframe {height:60px !important; width:50px !important;}
291
+ .woo-social-buttons .smsb_vkontakte table tr > td {padding:0px; line-height:auto;}
292
+ .woo-social-buttons .smsb_vkontakte a {height:auto !important;}
293
  </style>";
294
  }
295
 
304
  $smsb_tu = sanitize_text_field($_REQUEST['smsb_tu']);
305
  $smsb_li = sanitize_text_field($_REQUEST['smsb_li']);
306
  $smsb_st = sanitize_text_field($_REQUEST['smsb_st']);
307
+ $smsb_vk = sanitize_text_field($_REQUEST['smsb_vk']);
308
  $smsb_em = sanitize_text_field($_REQUEST['smsb_em']);
309
  $smsb_format = sanitize_text_field($_REQUEST['smsb_format']);
310
  update_option('toastie_smsb_fb', $smsb_fb);
314
  update_option('toastie_smsb_tu', $smsb_tu);
315
  update_option('toastie_smsb_li', $smsb_li);
316
  update_option('toastie_smsb_st', $smsb_st);
317
+ update_option('toastie_smsb_vk', $smsb_vk);
318
  update_option('toastie_smsb_em', $smsb_em);
319
  update_option('toastie_smsb_format', $smsb_format);
320
  $submited = 1;
355
  <br/>
356
  <label> <input type="checkbox" name="smsb_st" value="true" <?php echo (get_option('toastie_smsb_st') == 'true' ? 'checked' : ''); ?> ><span style="padding-left: 5px;font-weight: bold;"><?php _e('StumbleUpon', 'woocommerce-social-media-share-buttons'); ?></span></label>
357
  <br/>
358
+ <label> <input type="checkbox" name="smsb_vk" value="true" <?php echo (get_option('toastie_smsb_vk') == 'true' ? 'checked' : ''); ?> ><span style="padding-left: 5px;font-weight: bold;"><?php _e('VKontakte', 'woocommerce-social-media-share-buttons'); ?></span></label>
359
+ <br/>
360
  <label> <input type="checkbox" name="smsb_em" value="true" <?php echo (get_option('toastie_smsb_em') == 'true' ? 'checked' : ''); ?> ><span style="padding-left: 5px;font-weight: bold;"><?php _e('Email', 'woocommerce-social-media-share-buttons'); ?></span></label>
361
  </fieldset></td>
362
  </tr>
369
  <label><input type="radio" name="smsb_format" value="button_count" <?php echo (get_option('toastie_smsb_format') == 'button_count' ? 'checked' : ''); ?> /><span style="padding-left: 5px;font-weight: bold;"> <?php _e('Button with counter', 'woocommerce-social-media-share-buttons'); ?></span></label>
370
  <br/>
371
  <label><input type="radio" name="smsb_format" value="box_count" <?php echo (get_option('toastie_smsb_format') == 'box_count' ? 'checked' : ''); ?> /><span style="padding-left: 5px;font-weight: bold;"> <?php _e('Box with counter', 'woocommerce-social-media-share-buttons'); ?></span></label>
372
+ </fieldset>
373
+ <br/><br/>
374
+ <?php _e('Note: Some buttons do not show the share count until the url has been shared atleast once. Email does not show the share count at all.', 'woocommerce-social-media-share-buttons'); ?>
375
+ </td>
376
  </tr>
377
  </table>
378
  <p>&nbsp;</p>
lang/woocommerce-social-media-share-buttons-en_GB.mo ADDED
Binary file
lang/woocommerce-social-media-share-buttons-en_GB.po ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WooCommerce Social Media Share Buttons v1.0.2\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2015-07-18 11:37+0100\n"
6
+ "PO-Revision-Date: 2015-07-18 09:43:59+0000\n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Generator: Poedit 1.8.1\n"
14
+ "X-Poedit-Language: \n"
15
+ "X-Poedit-Country: \n"
16
+ "X-Poedit-SourceCharset: utf-8\n"
17
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
18
+ "X-Poedit-Basepath: ../\n"
19
+ "X-Poedit-Bookmarks: \n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+ "X-Textdomain-Support: yes"
22
+
23
+ #: index.php:330
24
+ #@ woocommerce-social-media-share-buttons
25
+ msgid "WooCoomerce Social Media Share Buttons - Settings"
26
+ msgstr "WooCoomerce Social Media Share Buttons - Settings"
27
+
28
+ #: index.php:333
29
+ #@ woocommerce-social-media-share-buttons
30
+ msgid "Your settings have been saved."
31
+ msgstr "Your settings have been saved."
32
+
33
+ #: index.php:335
34
+ #@ woocommerce-social-media-share-buttons
35
+ msgid ""
36
+ "<p>By default the plugin adds social media share buttons to your woocommerce store products page (just below the 'add to cart' button). With the addition of a shortcode you can use it to add social media share buttons in posts, pages, products, events, widget etc.</p>\n"
37
+ " <p>Use shortcode to add social media share buttons to posts, pages, products, events etc. [woocommerce_social_media_share_buttons]</p>\n"
38
+ " <p>Add shortcode to your WordPress theme, or php widget. &lt;?php echo do_shortcode( '[woocommerce_social_media_share_buttons]' ); ?></p>"
39
+ msgstr ""
40
+ "<p>By default the plugin adds social media share buttons to your woocommerce store products page (just below the 'add to cart' button). With the addition of a shortcode you can use it to add social media share buttons in posts, pages, products, events, widget etc.</p>\n"
41
+ " <p>Use shortcode to add social media share buttons to posts, pages, products, events etc. [woocommerce_social_media_share_buttons]</p>\n"
42
+ " <p>Add shortcode to your WordPress theme, or php widget. &lt;?php echo do_shortcode( '[woocommerce_social_media_share_buttons]' ); ?></p>"
43
+
44
+ #: index.php:340
45
+ #@ woocommerce-social-media-share-buttons
46
+ msgid "Which share buttons would you like to show?"
47
+ msgstr "Which share buttons would you like to show?"
48
+
49
+ #: index.php:343
50
+ #@ woocommerce-social-media-share-buttons
51
+ msgid "Facbook"
52
+ msgstr "Facbook"
53
+
54
+ #: index.php:345
55
+ #@ woocommerce-social-media-share-buttons
56
+ msgid "Twitter"
57
+ msgstr "Twitter"
58
+
59
+ #: index.php:347
60
+ #@ woocommerce-social-media-share-buttons
61
+ msgid "Google Plus"
62
+ msgstr "Google Plus"
63
+
64
+ #: index.php:349
65
+ #@ woocommerce-social-media-share-buttons
66
+ msgid "Pinterest"
67
+ msgstr "Pinterest"
68
+
69
+ #: index.php:351
70
+ #@ woocommerce-social-media-share-buttons
71
+ msgid "Tumblr"
72
+ msgstr "Tumblr"
73
+
74
+ #: index.php:353
75
+ #@ woocommerce-social-media-share-buttons
76
+ msgid "Linkedin"
77
+ msgstr "Linkedin"
78
+
79
+ #: index.php:355
80
+ #@ woocommerce-social-media-share-buttons
81
+ msgid "StumbleUpon"
82
+ msgstr "StumbleUpon"
83
+
84
+ #: index.php:357
85
+ #@ woocommerce-social-media-share-buttons
86
+ msgid "VKontakte"
87
+ msgstr "VKontakte"
88
+
89
+ #: index.php:359
90
+ #@ woocommerce-social-media-share-buttons
91
+ msgid "Email"
92
+ msgstr "Email"
93
+
94
+ #: index.php:362
95
+ #@ woocommerce-social-media-share-buttons
96
+ msgid "What format do you want the share buttons?"
97
+ msgstr "What format do you want the share buttons?"
98
+
99
+ #: index.php:366
100
+ #@ woocommerce-social-media-share-buttons
101
+ msgid "Button"
102
+ msgstr "Button"
103
+
104
+ #: index.php:368
105
+ #@ woocommerce-social-media-share-buttons
106
+ msgid "Button with counter"
107
+ msgstr "Button with counter"
108
+
109
+ #: index.php:370
110
+ #@ woocommerce-social-media-share-buttons
111
+ msgid "Box with counter"
112
+ msgstr "Box with counter"
113
+
114
+ #: index.php:374
115
+ #@ woocommerce-social-media-share-buttons
116
+ msgid "Note: Some buttons do not show the share count until the url has been shared atleast once. Email does not show the share count at all."
117
+ msgstr "Note: Some buttons do not show the share count until the url has been shared atleast once. Email does not show the share count at all."
118
+
119
+ #: index.php:378
120
+ #@ woocommerce-social-media-share-buttons
121
+ msgid "Save Settings"
122
+ msgstr "Save Settings"
123
+
124
+ #. translators: plugin header field 'Name'
125
+ #: index.php:0
126
+ #@ woocommerce-social-media-share-buttons
127
+ msgid "WooCommerce Social Media Share Buttons"
128
+ msgstr "WooCommerce Social Media Share Buttons"
129
+
130
+ #. translators: plugin header field 'PluginURI'
131
+ #. translators: plugin header field 'AuthorURI'
132
+ #: index.php:0
133
+ #@ woocommerce-social-media-share-buttons
134
+ msgid "http://www.toastiestudio.com"
135
+ msgstr "http://www.toastiestudio.com"
136
+
137
+ #. translators: plugin header field 'Description'
138
+ #: index.php:0
139
+ #@ woocommerce-social-media-share-buttons
140
+ msgid "The Woocommerce Social Media Share Buttons plugin allows visitors to your woocommerce shop to easily share your products on popular social media platforms."
141
+ msgstr "The Woocommerce Social Media Share Buttons plugin allows visitors to your woocommerce shop to easily share your products on popular social media platforms."
142
+
143
+ #. translators: plugin header field 'Author'
144
+ #: index.php:0
145
+ #@ woocommerce-social-media-share-buttons
146
+ msgid "Toastie Studio"
147
+ msgstr "Toastie Studio"
148
+
149
+ #. translators: plugin header field 'Version'
150
+ #: index.php:0
151
+ #@ woocommerce-social-media-share-buttons
152
+ msgid "1.0.2"
153
+ msgstr "1.0.2"
154
+
lang/woocommerce-social-media-share-buttons-nl_NL.mo ADDED
Binary file
lang/woocommerce-social-media-share-buttons-nl_NL.po ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WooCommerce Social Media Share Buttons v1.0.2\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2015-07-18 10:49:36+0000\n"
7
+ "Last-Translator: admin <sunny.stephanie@hotmail.com>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Generator: CSL v1.x\n"
14
+ "X-Poedit-Language: Dutch\n"
15
+ "X-Poedit-Country: NETHERLANDS\n"
16
+ "X-Poedit-SourceCharset: utf-8\n"
17
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
18
+ "X-Poedit-Basepath: ../\n"
19
+ "X-Poedit-Bookmarks: \n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+ "X-Textdomain-Support: yes"
22
+
23
+ #. translators: plugin header field 'Name'
24
+ #: index.php:0
25
+ #@ woocommerce-social-media-share-buttons
26
+ msgid "WooCommerce Social Media Share Buttons"
27
+ msgstr "WooCommerce Social Media Share Buttons"
28
+
29
+ #. translators: plugin header field 'PluginURI'
30
+ #. translators: plugin header field 'AuthorURI'
31
+ #: index.php:0
32
+ #@ woocommerce-social-media-share-buttons
33
+ msgid "http://www.toastiestudio.com"
34
+ msgstr "http://www.toastiestudio.com"
35
+
36
+ #. translators: plugin header field 'Description'
37
+ #: index.php:0
38
+ #@ woocommerce-social-media-share-buttons
39
+ msgid "The Woocommerce Social Media Share Buttons plugin allows visitors to your woocommerce shop to easily share your products on popular social media platforms."
40
+ msgstr "De Woocommerce Social Media Share Buttons plugin maakt het mogelijk voor bezoekers van uw Woocommerce winkel om op eenvoudige wijze uw producten te delen op populaire social media platforms."
41
+
42
+ #. translators: plugin header field 'Author'
43
+ #: index.php:0
44
+ #@ woocommerce-social-media-share-buttons
45
+ msgid "Toastie Studio"
46
+ msgstr "Toastie Studio"
47
+
48
+ #. translators: plugin header field 'Version'
49
+ #: index.php:0
50
+ #@ woocommerce-social-media-share-buttons
51
+ msgid "1.0.2"
52
+ msgstr "1.0.2"
53
+
54
+ #: index.php:330
55
+ #@ woocommerce-social-media-share-buttons
56
+ msgid "WooCoomerce Social Media Share Buttons - Settings"
57
+ msgstr "WooCoomerce Social Media Share Buttons - Instellingen"
58
+
59
+ #: index.php:333
60
+ #@ woocommerce-social-media-share-buttons
61
+ msgid "Your settings have been saved."
62
+ msgstr "Uw instellingen zijn opgeslagen."
63
+
64
+ #: index.php:335
65
+ #@ woocommerce-social-media-share-buttons
66
+ msgid ""
67
+ "<p>By default the plugin adds social media share buttons to your woocommerce store products page (just below the 'add to cart' button). With the addition of a shortcode you can use it to add social media share buttons in posts, pages, products, events, widget etc.</p>\n"
68
+ " <p>Use shortcode to add social media share buttons to posts, pages, products, events etc. [woocommerce_social_media_share_buttons]</p>\n"
69
+ " <p>Add shortcode to your WordPress theme, or php widget. &lt;?php echo do_shortcode( '[woocommerce_social_media_share_buttons]' ); ?></p>"
70
+ msgstr ""
71
+ "<p>De plugin voegt standaard social media knoppen toe aan uw Wooncommerce winkel productpagina (iets onder de 'voeg toe aan winkelwagen' knop). Door een shortcode in te voegen kunt u de plugin gebruiken om social media knoppen toe te voegen in berichten/posts, pagina's, producten, evenementen, widgets etc.</p>\n"
72
+ " <p>Gebruik shortcode om social media knoppen toe te voegen aan berichten/posts, pagina's, producten, evenementen etc. [woocommerce_social_media_share_buttons]</p>\n"
73
+ " <p>Voeg shortcode toe aan je WordPress thema of php widget. &lt;?php echo do_shortcode( '[woocommerce_social_media_share_buttons]' ); ?></p>"
74
+
75
+ #: index.php:340
76
+ #@ woocommerce-social-media-share-buttons
77
+ msgid "Which share buttons would you like to show?"
78
+ msgstr "Welke knop wil je laten zien?"
79
+
80
+ #: index.php:343
81
+ #@ woocommerce-social-media-share-buttons
82
+ msgid "Facbook"
83
+ msgstr "Facbook"
84
+
85
+ #: index.php:345
86
+ #@ woocommerce-social-media-share-buttons
87
+ msgid "Twitter"
88
+ msgstr "Twitter"
89
+
90
+ #: index.php:347
91
+ #@ woocommerce-social-media-share-buttons
92
+ msgid "Google Plus"
93
+ msgstr "Google Plus"
94
+
95
+ #: index.php:349
96
+ #@ woocommerce-social-media-share-buttons
97
+ msgid "Pinterest"
98
+ msgstr "Pinterest"
99
+
100
+ #: index.php:351
101
+ #@ woocommerce-social-media-share-buttons
102
+ msgid "Tumblr"
103
+ msgstr "Tumblr"
104
+
105
+ #: index.php:353
106
+ #@ woocommerce-social-media-share-buttons
107
+ msgid "Linkedin"
108
+ msgstr "Linkedin"
109
+
110
+ #: index.php:355
111
+ #@ woocommerce-social-media-share-buttons
112
+ msgid "StumbleUpon"
113
+ msgstr "StumbleUpon"
114
+
115
+ #: index.php:357
116
+ #@ woocommerce-social-media-share-buttons
117
+ msgid "VKontakte"
118
+ msgstr "VKontakte"
119
+
120
+ #: index.php:359
121
+ #@ woocommerce-social-media-share-buttons
122
+ msgid "Email"
123
+ msgstr "E-mail"
124
+
125
+ #: index.php:362
126
+ #@ woocommerce-social-media-share-buttons
127
+ msgid "What format do you want the share buttons?"
128
+ msgstr "In welk format wilt u de knoppen?"
129
+
130
+ #: index.php:366
131
+ #@ woocommerce-social-media-share-buttons
132
+ msgid "Button"
133
+ msgstr "Knop"
134
+
135
+ #: index.php:368
136
+ #@ woocommerce-social-media-share-buttons
137
+ msgid "Button with counter"
138
+ msgstr "Knop met teller"
139
+
140
+ #: index.php:370
141
+ #@ woocommerce-social-media-share-buttons
142
+ msgid "Box with counter"
143
+ msgstr "Box met teller"
144
+
145
+ #: index.php:374
146
+ #@ woocommerce-social-media-share-buttons
147
+ msgid "Note: Some buttons do not show the share count until the url has been shared atleast once. Email does not show the share count at all."
148
+ msgstr "N.B.: sommige knoppen laten de teller niet zien totdat de URL ten minste één keer is gedeeld. E-mail wordt helemaal niet meegenomen in de telling."
149
+
150
+ #: index.php:378
151
+ #@ woocommerce-social-media-share-buttons
152
+ msgid "Save Settings"
153
+ msgstr "Opslaan"
154
+
lang/woocommerce-social-media-share-buttons.pot ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "POT-Creation-Date: 2015-07-18 11:37+0100\n"
5
+ "PO-Revision-Date: 2015-07-18 11:39+0100\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: \n"
8
+ "Language: en_GB\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.8.1\n"
13
+ "X-Poedit-Basepath: ..\\\n"
14
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
+ "X-Poedit-KeywordsList: _e\n"
16
+ "X-Poedit-SearchPath-0: .\n"
17
+
18
+ #: index.php:330
19
+ msgid "WooCoomerce Social Media Share Buttons - Settings"
20
+ msgstr ""
21
+
22
+ #: index.php:333
23
+ msgid "Your settings have been saved."
24
+ msgstr ""
25
+
26
+ #: index.php:335
27
+ msgid ""
28
+ "<p>By default the plugin adds social media share buttons to your woocommerce "
29
+ "store products page (just below the 'add to cart' button). With the addition "
30
+ "of a shortcode you can use it to add social media share buttons in posts, "
31
+ "pages, products, events, widget etc.</p>\n"
32
+ " <p>Use shortcode to add social media share buttons to posts, pages, "
33
+ "products, events etc. [woocommerce_social_media_share_buttons]</p>\n"
34
+ " <p>Add shortcode to your WordPress theme, or php widget. &lt;?php "
35
+ "echo do_shortcode( '[woocommerce_social_media_share_buttons]' ); ?></p>"
36
+ msgstr ""
37
+
38
+ #: index.php:340
39
+ msgid "Which share buttons would you like to show?"
40
+ msgstr ""
41
+
42
+ #: index.php:343
43
+ msgid "Facbook"
44
+ msgstr ""
45
+
46
+ #: index.php:345
47
+ msgid "Twitter"
48
+ msgstr ""
49
+
50
+ #: index.php:347
51
+ msgid "Google Plus"
52
+ msgstr ""
53
+
54
+ #: index.php:349
55
+ msgid "Pinterest"
56
+ msgstr ""
57
+
58
+ #: index.php:351
59
+ msgid "Tumblr"
60
+ msgstr ""
61
+
62
+ #: index.php:353
63
+ msgid "Linkedin"
64
+ msgstr ""
65
+
66
+ #: index.php:355
67
+ msgid "StumbleUpon"
68
+ msgstr ""
69
+
70
+ #: index.php:357
71
+ msgid "VKontakte"
72
+ msgstr ""
73
+
74
+ #: index.php:359
75
+ msgid "Email"
76
+ msgstr ""
77
+
78
+ #: index.php:362
79
+ msgid "What format do you want the share buttons?"
80
+ msgstr ""
81
+
82
+ #: index.php:366
83
+ msgid "Button"
84
+ msgstr ""
85
+
86
+ #: index.php:368
87
+ msgid "Button with counter"
88
+ msgstr ""
89
+
90
+ #: index.php:370
91
+ msgid "Box with counter"
92
+ msgstr ""
93
+
94
+ #: index.php:374
95
+ msgid ""
96
+ "Note: Some buttons do not show the share count until the url has been shared "
97
+ "atleast once. Email does not show the share count at all."
98
+ msgstr ""
99
+
100
+ #: index.php:378
101
+ msgid "Save Settings"
102
+ msgstr ""