Simple Social Media Share Buttons – Social Sharing for Everyone - Version 1.7.0

Version Description

  • Fixed margin-right for buttons
  • Pinterest button code update
Download this release

Release Info

Developer xradar
Plugin Icon 128x128 Simple Social Media Share Buttons – Social Sharing for Everyone
Version 1.7.0
Comparing to
See all releases

Code changes from version 1.6.6 to 1.7.0

Files changed (2) hide show
  1. readme.txt +184 -180
  2. simple-social-buttons.php +10 -6
readme.txt CHANGED
@@ -1,180 +1,184 @@
1
- === Plugin Name ===
2
- Contributors: xradar
3
- Donate link: http://www.rabinek.pl/
4
- Tags: facebook, google, twitter, pinterest, plus one, like it, like, share, pin, pin it
5
- Requires at least: 2.8
6
- Tested up to: 3.8
7
- Stable tag: 1.6.6
8
-
9
- Insert and customize social buttons: Facebook Like it, Google plus +1, Twitter share, Pinterest Pin it. Share your content with friends.
10
-
11
- == Description ==
12
-
13
- Simple Social Buttons adds to your posts social network buttons, such as: **Facebook "Like it!"**, **Google plus on "+1"**, **Twitter share** and **Pinterest Pin it**. Plugin is fully customizable. You can decide where to put those buttons:
14
-
15
- - Buttons above the post content
16
- - Buttons under the post content
17
- - Buttons above and under the post
18
-
19
- That's not all. Simple Social Buttons can also add social media buttons to:
20
-
21
- - Static Pages
22
- - Front Page
23
- - Posts Categories
24
- - Date Archives
25
- - Tags Archives
26
-
27
- Want's more? Now you can change the **order of buttons** on your post!
28
-
29
- Let your visitors share your content with friends and let them **promote your blog**. Facebook, Google Plus, Pinterest and Twitter are the most popular social networks nowadays. Don't miss the opportunity, and help publish your content and links to those social media networks.
30
-
31
- Simple Social Buttons is currently in the following languages:
32
-
33
- - Danish
34
- - Dutch
35
- - English
36
- - French
37
- - German
38
- - Lithuanian
39
- - Polish
40
- - Serbo-Croatian
41
- - Slovak
42
- - Spanish
43
- - Thai
44
-
45
- Feel free if you want to create a translation of this plugin. Contact me via e-mail or Twitter [@rabinek](https://twitter.com/rabinek "Paweł Rabinek on Twitter"), and I'll add your's translation to Simple Social Buttons.
46
-
47
- For more information about Wordpress and SEO, visit my blog [Rabinek.pl](http://www.rabinek.pl/ "Paweł Rabinek - Blog SEO") (in polish) and my company [RedSEO](http://www.redseo.pl/ "RedSEO") (in polish).
48
- Also check my free SEO audit tool [Seoptimer.com - Website Review](http://www.seoptimer.com/ "Free SEO Audit tool").
49
-
50
- == Installation ==
51
-
52
- 1. Download the latest version of Simple Social Buttons
53
- 2. Upload folder named simple-social-buttons to the /wp-content/plugins/ directory
54
- 3. Activate the plugin through the 'Plugins' menu in WordPress
55
- 4. (Optional) Customize the buttons in the Settings > Simple Social Buttons menu
56
-
57
- That's it. Buttons will show on your blog posts.
58
-
59
- You can also use this plugin directly in your template by function `<?php get_ssb([$order]); ?>`, where `$order` is a string with args ( example: `$order = "googleplus=1&fblike=2&twitter=3"` ) or an array ( example: `$order = array('googleplus' => 1, 'fblike' => 2, 'twitter' => 3)` ). If you would like to hide a specified button, you should set order to "0".
60
-
61
-
62
- == Frequently Asked Questions ==
63
-
64
- = Is the plugin free? =
65
-
66
- Yes, it's free. I hope you like it :) If so you can buy me a coffee by doing paypal donate.
67
-
68
- = Is the plug will be developed? =
69
-
70
- Yes. I've some plans about developing Simple Social Buttons. There will be more buttons, more customization, and more powerfull! Follow me on Twitter [@rabinek](http://twitter.com/rabinek "Paweł Rabinek na Twitter") and stay tuned.
71
-
72
- = Why use this plugin? =
73
-
74
- This plugin automatically adds the Facebook Like button, Google plus one +1, Twitter share button and Pinterest Pin for each post on your blog. This is the simples and effective way to promote your blog in social media networks.
75
-
76
- = How about support? =
77
-
78
- Follow me at Twitter [@rabinek](http://twitter.com/rabinek "Paweł Rabinek na Twitter") or send me a mention. I'll reply as soon as I get it. You can also visit my blog [Rabinek.pl](http://www.rabinek.pl/ "Paweł Rabinek - Blog SEO") (in polish).
79
-
80
- = Is there a template tag for custom install? =
81
-
82
- Yes, you can use `<?php get_ssb(); ?>` in your template file (see installation section). Default instalation don't require that.
83
-
84
- = Facebook button doesn't appear? =
85
-
86
- Make sure you have set WPLANG in wp-config.php file. Correct values are "en_US" for english, "el_GR" for greek, "pl_PL" for polish etc.
87
-
88
- = Who helped to improve Simple Social Buttons? =
89
-
90
- **Big thanks to:**
91
-
92
- - Karol from [LigaBBVA.pl](http://www.ligabbva.pl/ "Liga hiszpańska BBVA") for PHP developement
93
- - [@RhooManu](http://twitter.com/RhooManu "RhooManu on Twitter") for french translation
94
- - [Usability Idealist](http://usability-idealist.de/ "Fabian Wolf - Usability Idealist") for converting code to object-oriented, adding buttons order and many fixes
95
- - [@Dennis Schreiber](http://twitter.com/flammbar "Dennis Schreiber on Twitter") for german translation
96
- - [@Marcos González](http://twitter.com/qmarcos "Marcos on Twitter") for spanish translation
97
- - [Vincent G](http://www.host1free.com/ "Web Hosting") for lithuanian translation
98
- - [Mads Phikamphon](http://www.genvejen.dk/ "Mads blog") for danish translation
99
- - [Na's mad](http://nasmad.dk/ "Na's mad blog") for thai translation
100
- - [WebHostingGeeks.com](http://webhostinggeeks.com/blog/ "Webhosting Geeks") for slovak translation
101
- - [WPdiscounts](http://wpdiscounts.com/ "WPdiscounts") for dutch translation
102
- - [Web Hosting Hub](http://www.webhostinghub.com/ "Webhostinghub") for serbo-croatian translation
103
-
104
- == Screenshots ==
105
-
106
- 1. Simple Social Buttons - plugin options
107
- 2. Plugin example
108
- 3. Plugin on archive
109
- 4. Widget in post edition
110
-
111
-
112
- == Changelog ==
113
-
114
- = 1.0 =
115
- * First stable release.
116
-
117
- = 1.1 =
118
- * Added french translation
119
- * Added language support in Facebook and Google+ JavaScript
120
-
121
- = 1.2.1 =
122
- * Optimized settings storage
123
-
124
- = 1.3 =
125
- * Converted plugin to class (requires PHP 5, because it is using the constructor auto-method)
126
- * Added sorting options
127
- * Added uninstall hook
128
- * Fixed plugin settings slot not being highlighted in the admin navigation / general settings
129
- * Added "disable regular CSS" option to let advanced users use their own CSS code
130
- * Lots of fine-tuning
131
-
132
- = 1.4 =
133
- * Added custom meta to disable SSB plugin on sigle page/post (managed in admin menu)
134
- * Function get_ssb() to directly use in template to show Simple Social Buttons in specified order
135
- * Widget manage page in wp-admin available only for Administrator
136
- * Added German and Spanish translation
137
- * Fine-tuning
138
-
139
- = 1.5 =
140
- * New asynchronous JS code
141
- * Minor bug fixed
142
-
143
-
144
- = 1.5.1 =
145
- * Added lithuanian translation
146
-
147
- = 1.5.2 =
148
- * Bug fix from 1.5.1
149
-
150
- = 1.5.4 =
151
- * Facebook "Like it" fix (added id="fb-root" instead of class="fb-like")
152
-
153
- = 1.5.5 =
154
- * Added danish translation
155
-
156
- = 1.5.6 =
157
- * Added thai translation
158
- * fixed Facebook language detection
159
-
160
- = 1.6.0 =
161
- * Added Twitter via @username option
162
- * Added Pinterest button
163
- * Some bug fixes
164
-
165
- = 1.6.2 =
166
- * Added slovak translation
167
-
168
- = 1.6.3 =
169
- * Fixed CSS class names ("buttom" to "button")
170
- * Fixed facebook Like box cut off
171
-
172
- = 1.6.4 =
173
- * Used "Roles and Capabilities" in admin access
174
-
175
- = 1.6.5 =
176
- * Added dutch translation
177
- * Added serbo-croatian translation
178
-
179
- = 1.6.6 =
180
- * Update for Wordpress 3.8
 
 
 
 
1
+ === Plugin Name ===
2
+ Contributors: xradar
3
+ Donate link: http://www.rabinek.pl/
4
+ Tags: facebook, google, twitter, pinterest, plus one, like it, like, share, pin, pin it
5
+ Requires at least: 2.8
6
+ Tested up to: 3.8
7
+ Stable tag: 1.7.0
8
+
9
+ Insert and customize social buttons: Facebook Like it, Google plus +1, Twitter share, Pinterest Pin it. Share your content with friends.
10
+
11
+ == Description ==
12
+
13
+ Simple Social Buttons adds to your posts social network buttons, such as: **Facebook "Like it!"**, **Google plus on "+1"**, **Twitter share** and **Pinterest Pin it**. Plugin is fully customizable. You can decide where to put those buttons:
14
+
15
+ - Buttons above the post content
16
+ - Buttons under the post content
17
+ - Buttons above and under the post
18
+
19
+ That's not all. Simple Social Buttons can also add social media buttons to:
20
+
21
+ - Static Pages
22
+ - Front Page
23
+ - Posts Categories
24
+ - Date Archives
25
+ - Tags Archives
26
+
27
+ Want's more? Now you can change the **order of buttons** on your post!
28
+
29
+ Let your visitors share your content with friends and let them **promote your blog**. Facebook, Google Plus, Pinterest and Twitter are the most popular social networks nowadays. Don't miss the opportunity, and help publish your content and links to those social media networks.
30
+
31
+ Simple Social Buttons is currently in the following languages:
32
+
33
+ - Danish
34
+ - Dutch
35
+ - English
36
+ - French
37
+ - German
38
+ - Lithuanian
39
+ - Polish
40
+ - Serbo-Croatian
41
+ - Slovak
42
+ - Spanish
43
+ - Thai
44
+
45
+ Feel free if you want to create a translation of this plugin. Contact me via e-mail or Twitter [@rabinek](https://twitter.com/rabinek "Paweł Rabinek on Twitter"), and I'll add your's translation to Simple Social Buttons.
46
+
47
+ For more information about Wordpress and SEO, visit my blog [Rabinek.pl](http://www.rabinek.pl/ "Paweł Rabinek - Blog SEO") (in polish) and my company [RedSEO](http://www.redseo.pl/ "RedSEO") (in polish).
48
+ Also check my free SEO audit tool [Seoptimer.com - Website Review](http://www.seoptimer.com/ "Free SEO Audit tool").
49
+
50
+ == Installation ==
51
+
52
+ 1. Download the latest version of Simple Social Buttons
53
+ 2. Upload folder named simple-social-buttons to the /wp-content/plugins/ directory
54
+ 3. Activate the plugin through the 'Plugins' menu in WordPress
55
+ 4. (Optional) Customize the buttons in the Settings > Simple Social Buttons menu
56
+
57
+ That's it. Buttons will show on your blog posts.
58
+
59
+ You can also use this plugin directly in your template by function `<?php get_ssb([$order]); ?>`, where `$order` is a string with args ( example: `$order = "googleplus=1&fblike=2&twitter=3"` ) or an array ( example: `$order = array('googleplus' => 1, 'fblike' => 2, 'twitter' => 3)` ). If you would like to hide a specified button, you should set order to "0".
60
+
61
+
62
+ == Frequently Asked Questions ==
63
+
64
+ = Is the plugin free? =
65
+
66
+ Yes, it's free. I hope you like it :) If so you can buy me a coffee by doing paypal donate.
67
+
68
+ = Is the plug will be developed? =
69
+
70
+ Yes. I've some plans about developing Simple Social Buttons. There will be more buttons, more customization, and more powerfull! Follow me on Twitter [@rabinek](http://twitter.com/rabinek "Paweł Rabinek na Twitter") and stay tuned.
71
+
72
+ = Why use this plugin? =
73
+
74
+ This plugin automatically adds the Facebook Like button, Google plus one +1, Twitter share button and Pinterest Pin for each post on your blog. This is the simples and effective way to promote your blog in social media networks.
75
+
76
+ = How about support? =
77
+
78
+ Follow me at Twitter [@rabinek](http://twitter.com/rabinek "Paweł Rabinek na Twitter") or send me a mention. I'll reply as soon as I get it. You can also visit my blog [Rabinek.pl](http://www.rabinek.pl/ "Paweł Rabinek - Blog SEO") (in polish).
79
+
80
+ = Is there a template tag for custom install? =
81
+
82
+ Yes, you can use `<?php get_ssb(); ?>` in your template file (see installation section). Default instalation don't require that.
83
+
84
+ = Facebook button doesn't appear? =
85
+
86
+ Make sure you have set WPLANG in wp-config.php file. Correct values are "en_US" for english, "el_GR" for greek, "pl_PL" for polish etc.
87
+
88
+ = Who helped to improve Simple Social Buttons? =
89
+
90
+ **Big thanks to:**
91
+
92
+ - Karol from [LigaBBVA.pl](http://www.ligabbva.pl/ "Liga hiszpańska BBVA") for PHP developement
93
+ - [@RhooManu](http://twitter.com/RhooManu "RhooManu on Twitter") for french translation
94
+ - [Usability Idealist](http://usability-idealist.de/ "Fabian Wolf - Usability Idealist") for converting code to object-oriented, adding buttons order and many fixes
95
+ - [@Dennis Schreiber](http://twitter.com/flammbar "Dennis Schreiber on Twitter") for german translation
96
+ - [@Marcos González](http://twitter.com/qmarcos "Marcos on Twitter") for spanish translation
97
+ - [Vincent G](http://www.host1free.com/ "Web Hosting") for lithuanian translation
98
+ - [Mads Phikamphon](http://www.genvejen.dk/ "Mads blog") for danish translation
99
+ - [Na's mad](http://nasmad.dk/ "Na's mad blog") for thai translation
100
+ - [WebHostingGeeks.com](http://webhostinggeeks.com/blog/ "Webhosting Geeks") for slovak translation
101
+ - [WPdiscounts](http://wpdiscounts.com/ "WPdiscounts") for dutch translation
102
+ - [Web Hosting Hub](http://www.webhostinghub.com/ "Webhostinghub") for serbo-croatian translation
103
+
104
+ == Screenshots ==
105
+
106
+ 1. Simple Social Buttons - plugin options
107
+ 2. Plugin example
108
+ 3. Plugin on archive
109
+ 4. Widget in post edition
110
+
111
+
112
+ == Changelog ==
113
+
114
+ = 1.0 =
115
+ * First stable release.
116
+
117
+ = 1.1 =
118
+ * Added french translation
119
+ * Added language support in Facebook and Google+ JavaScript
120
+
121
+ = 1.2.1 =
122
+ * Optimized settings storage
123
+
124
+ = 1.3 =
125
+ * Converted plugin to class (requires PHP 5, because it is using the constructor auto-method)
126
+ * Added sorting options
127
+ * Added uninstall hook
128
+ * Fixed plugin settings slot not being highlighted in the admin navigation / general settings
129
+ * Added "disable regular CSS" option to let advanced users use their own CSS code
130
+ * Lots of fine-tuning
131
+
132
+ = 1.4 =
133
+ * Added custom meta to disable SSB plugin on sigle page/post (managed in admin menu)
134
+ * Function get_ssb() to directly use in template to show Simple Social Buttons in specified order
135
+ * Widget manage page in wp-admin available only for Administrator
136
+ * Added German and Spanish translation
137
+ * Fine-tuning
138
+
139
+ = 1.5 =
140
+ * New asynchronous JS code
141
+ * Minor bug fixed
142
+
143
+
144
+ = 1.5.1 =
145
+ * Added lithuanian translation
146
+
147
+ = 1.5.2 =
148
+ * Bug fix from 1.5.1
149
+
150
+ = 1.5.4 =
151
+ * Facebook "Like it" fix (added id="fb-root" instead of class="fb-like")
152
+
153
+ = 1.5.5 =
154
+ * Added danish translation
155
+
156
+ = 1.5.6 =
157
+ * Added thai translation
158
+ * fixed Facebook language detection
159
+
160
+ = 1.6.0 =
161
+ * Added Twitter via @username option
162
+ * Added Pinterest button
163
+ * Some bug fixes
164
+
165
+ = 1.6.2 =
166
+ * Added slovak translation
167
+
168
+ = 1.6.3 =
169
+ * Fixed CSS class names ("buttom" to "button")
170
+ * Fixed facebook Like box cut off
171
+
172
+ = 1.6.4 =
173
+ * Used "Roles and Capabilities" in admin access
174
+
175
+ = 1.6.5 =
176
+ * Added dutch translation
177
+ * Added serbo-croatian translation
178
+
179
+ = 1.6.6 =
180
+ * Update for Wordpress 3.8
181
+
182
+ = 1.7.0 =
183
+ * Fixed margin-right for buttons
184
+ * Pinterest button code update
simple-social-buttons.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin URI: http://www.rabinek.pl/simple-social-buttons-wordpress/
5
  Description: Insert social buttons into posts and archives: Facebook "Like it", Google Plus One "+1", Twitter share and Pinterest.
6
  Author: Paweł Rabinek
7
- Version: 1.6.6
8
  Author URI: http://www.rabinek.pl/
9
  */
10
 
@@ -35,7 +35,7 @@
35
 
36
  class SimpleSocialButtonsPR {
37
  var $pluginName = 'Simple Social Buttons';
38
- var $pluginVersion = '1.6.6';
39
  var $pluginPrefix = 'ssb_pr_';
40
  var $hideCustomMetaKey = '_ssb_hide';
41
 
@@ -175,8 +175,12 @@ window.___gcfg = {lang: '<?php echo $lang_g; ?>'};
175
 
176
  <!-- Simple Social Buttons style sheet -->
177
  <style type="text/css">
178
- div.simplesocialbuttons { height: 20px; margin: 10px auto 10px 0; text-align: center; clear: left; }
179
- div.simplesocialbutton { float: left; text-align: center;}
 
 
 
 
180
  .fb-like iframe { max-width: none !important; }
181
  </style>
182
  <!-- End of Simple Social Buttons -->
@@ -404,7 +408,7 @@ window.___gcfg = {lang: '<?php echo $lang_g; ?>'};
404
  case 'pinterest':
405
  $thumb_id = get_post_thumbnail_id($post->ID);
406
 
407
- // Don't show 'Pin It' button, if post dont have thumbnail
408
  if (empty($thumb_id)) break;
409
 
410
  // Getting thumbnail url
@@ -415,7 +419,7 @@ window.___gcfg = {lang: '<?php echo $lang_g; ?>'};
415
  // if there isn't thumbnail alt, take a post title as a description
416
  $description = (!empty($thumb_alt)) ? $thumb_alt : $title ;
417
 
418
- $arrButtonsCode[] = '<div class="simplesocialbutton ssb-button-pinterest"><!-- Pinterest--><a href="http://pinterest.com/pin/create/button/?url='.urlencode($permalink).'&media='.urlencode($thumb_src).'&description='.urlencode($description).'" class="pin-it-button" count-layout="horizontal" rel="nofollow"><img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" /></a></div>';
419
  break;
420
  }
421
  }
4
  Plugin URI: http://www.rabinek.pl/simple-social-buttons-wordpress/
5
  Description: Insert social buttons into posts and archives: Facebook "Like it", Google Plus One "+1", Twitter share and Pinterest.
6
  Author: Paweł Rabinek
7
+ Version: 1.7.0
8
  Author URI: http://www.rabinek.pl/
9
  */
10
 
35
 
36
  class SimpleSocialButtonsPR {
37
  var $pluginName = 'Simple Social Buttons';
38
+ var $pluginVersion = '1.7.0';
39
  var $pluginPrefix = 'ssb_pr_';
40
  var $hideCustomMetaKey = '_ssb_hide';
41
 
175
 
176
  <!-- Simple Social Buttons style sheet -->
177
  <style type="text/css">
178
+ div.simplesocialbuttons { height: 20px; margin: 10px auto 10px 0; text-align: left; clear: left; }
179
+ div.simplesocialbutton { float: left; }
180
+ div.ssb-button-googleplus { width: 100px; }
181
+ div.ssb-button-fblike { width: 140px; }
182
+ div.ssb-button-twitter { width: 130px; }
183
+ div.ssb-button-pinterest { width: 100px; }
184
  .fb-like iframe { max-width: none !important; }
185
  </style>
186
  <!-- End of Simple Social Buttons -->
408
  case 'pinterest':
409
  $thumb_id = get_post_thumbnail_id($post->ID);
410
 
411
+ // Don't show 'Pin It' button, if post doesn't have thumbnail
412
  if (empty($thumb_id)) break;
413
 
414
  // Getting thumbnail url
419
  // if there isn't thumbnail alt, take a post title as a description
420
  $description = (!empty($thumb_alt)) ? $thumb_alt : $title ;
421
 
422
+ $arrButtonsCode[] = '<div class="simplesocialbutton ssb-button-pinterest"><!-- Pinterest--><a href="http://pinterest.com/pin/create/button/?url='.urlencode($permalink).'&media='.urlencode($thumb_src).'&description='.urlencode($description).'" data-pin-do="buttonPin" data-pin-config="beside" rel="nofollow"><img border="0" src="<a href="//www.pinterest.com/pin/create/button/?url=http%3A%2F%2Fwww.flickr.com%2Fphotos%2Fkentbrew%2F6851755809%2F&media=http%3A%2F%2Ffarm8.staticflickr.com%2F7027%2F6851755809_df5b2051c9_z.jpg&description=Next%20stop%3A%20Pinterest" data-pin-do="buttonPin" data-pin-config="beside"><img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png" title="Pin It" /></a></div>';
423
  break;
424
  }
425
  }