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

Version Description

  • Added Twitter via @username option
  • Added Pinterest button
  • Some bug fixes
Download this release

Release Info

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

Code changes from version 1.5.6 to 1.6.0

lang/simplesocialbuttons-pl_PL.mo CHANGED
Binary file
lang/simplesocialbuttons-pl_PL.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: simplesocialbuttons\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2012-02-01 11:16+0100\n"
6
- "PO-Revision-Date: 2012-02-01 11:16+0100\n"
7
  "Last-Translator: \n"
8
  "Language-Team: Paweł Rabinek <pawel@rabinek.pl>\n"
9
  "MIME-Version: 1.0\n"
@@ -15,186 +15,203 @@ msgstr ""
15
  "X-Poedit-SourceCharset: utf-8\n"
16
  "X-Poedit-SearchPath-0: ..\n"
17
 
18
- #: ../simple-social-buttons.php:424
19
  #: ../ssb-admin.php:11
20
  msgid "Settings"
21
  msgstr "Ustawienia"
22
 
23
- #: ../simple-social-buttons.php:452
24
  msgid "SSB Settings"
25
  msgstr "Ustawienia SSB"
26
 
27
- #: ../simple-social-buttons.php:463
28
  msgid "Hide Simple Social Buttons"
29
  msgstr "Ukryj przyciski wtyczki Simple Social Buttons"
30
 
31
  #: ../ssb-admin.php:13
32
- msgid "<strong>Simple Social Buttons</strong> by <strong>Paweł Rabinek</strong>. This plugin adds a social media buttons, such as: <strong>Google +1</strong>, <strong>Facebook Like it</strong> and <strong>Twitter share</strong>. The most flexible social buttons plugin ever."
33
- msgstr "<strong>Simple Social Buttons</strong>, autor <strong>Paweł Rabinek</strong>. Wtyczka dodaje do wpisów przyciski: <strong>Google +1</strong>, <strong>Facebook Lubię to</strong> oraz <strong>Twitter</strong>. Najlepsza wtyczka z przyciskami social media dla Wordpress."
34
 
35
- #: ../ssb-admin.php:68
36
  msgid "Select buttons"
37
  msgstr "Wybór przycisków"
38
 
39
- #: ../ssb-admin.php:70
40
  msgid "Select social media buttons:"
41
  msgstr "Wybierz przyciski do wyświetlenia:"
42
 
43
- #: ../ssb-admin.php:76
44
- #: ../ssb-admin.php:90
45
- #: ../ssb-admin.php:105
 
46
  msgid "inactive"
47
  msgstr "nieaktywny"
48
 
49
- #: ../ssb-admin.php:84
50
  msgid "Google plus one (+1)"
51
  msgstr "Google plus jeden (+1)"
52
 
53
- #: ../ssb-admin.php:98
54
  msgid "Facebook Like it"
55
  msgstr "Facebook Lubię to"
56
 
57
- #: ../ssb-admin.php:113
58
  msgid "Twitter share"
59
  msgstr "Wyślij na Twitter"
60
 
61
- #: ../ssb-admin.php:116
 
 
 
 
 
 
 
 
62
  msgid "Disable plugin CSS (only advanced users)"
63
  msgstr "Wyłącz style CSS wtyczki (tylko dla zaawansowanych użytkowników)"
64
 
65
- #: ../ssb-admin.php:121
66
  msgid "Single posts - display settings"
67
  msgstr "Pojedyńcze wpisy - ustawienia"
68
 
69
- #: ../ssb-admin.php:123
70
  msgid "Place buttons on single post:"
71
  msgstr "Miejsce przycisków na podstronie wpisu:"
72
 
73
- #: ../ssb-admin.php:124
74
- #: ../ssb-admin.php:148
75
  msgid "Before the content"
76
  msgstr "Nad treścią wpisu"
77
 
78
- #: ../ssb-admin.php:125
79
- #: ../ssb-admin.php:149
80
  msgid "After the content"
81
  msgstr "Pod treścią wpisu"
82
 
83
- #: ../ssb-admin.php:130
84
  msgid "Single pages - display settings"
85
  msgstr "Pojedyńcze strony - ustawienia"
86
 
87
- #: ../ssb-admin.php:132
88
  msgid "Place buttons on single pages:"
89
  msgstr "Miejsce przycisków na stronach:"
90
 
91
- #: ../ssb-admin.php:133
92
  msgid "Before the page content"
93
  msgstr "Nad treścią strony"
94
 
95
- #: ../ssb-admin.php:134
96
  msgid "After the page content"
97
  msgstr "Pod treścią strony"
98
 
99
- #: ../ssb-admin.php:139
100
  msgid "Archives - display settings"
101
  msgstr "Archiwa - ustawienia"
102
 
103
- #: ../ssb-admin.php:141
104
  msgid "Select additional places to display buttons:"
105
  msgstr "Dodatkowe miejsca do wyświetlenia przycisków:"
106
 
107
- #: ../ssb-admin.php:142
108
  msgid "Show at frontpage"
109
  msgstr "Pokazuj na stronie głównej"
110
 
111
- #: ../ssb-admin.php:143
112
  msgid "Show at category pages"
113
  msgstr "Pokazuj na stroniach kategorii"
114
 
115
- #: ../ssb-admin.php:144
116
  msgid "Show at archive pages"
117
  msgstr "Pokazuje w archiwum dat"
118
 
119
- #: ../ssb-admin.php:145
120
  msgid "Show at tag pages"
121
  msgstr "Pokazuj na stronach tagów"
122
 
123
- #: ../ssb-admin.php:147
124
  msgid "Place buttons on archives:"
125
  msgstr "Miejsce przycisków na stronach archiwum:"
126
 
127
- #: ../ssb-admin.php:155
 
 
 
 
 
 
 
 
128
  msgid "Save Changes"
129
  msgstr "Zapisz ustawienia"
130
 
131
- #: ../ssb-admin.php:165
132
  msgid "About this plugin:"
133
  msgstr "Informacje o wtyczce:"
134
 
135
- #: ../ssb-admin.php:167
136
  msgid "Talk to <a href=\"http://twitter.com/rabinek\" target=\"_blank\">@rabinek</a> on twitter for bugs or feature requests."
137
  msgstr "Napisz do mnie <a href=\"http://twitter.com/rabinek\" target=\"_blank\">@rabinek</a> na Twitterze, jeżeli znalazłeś błąd lub masz pomysł na ulepszenie wtyczki."
138
 
139
- #: ../ssb-admin.php:168
140
  msgid "Enjoy the plugin?"
141
  msgstr "Podoba Ci się wtyczka?"
142
 
143
- #: ../ssb-admin.php:169
144
- msgid "<a href=\"http://twitter.com/?status=I'm using @rabinek's WordPress Simple Social Buttons plugin - check it out! http://blog.rabinek.pl/\" target=\"_blank\">Tweet about it</a> and consider donating."
145
- msgstr "<a href=\"http://twitter.com/?status=Używam wtyczki do Wordpressa od @rabinek - WordPress Simple Social Buttons! http://blog.rabinek.pl/\" target=\"_blank\">Powiedz o niej na Twitterze</a> i rozważ wsparcie dla tej wtyczki (poniżej)."
146
 
147
- #: ../ssb-admin.php:170
148
  msgid "<strong>Donate:</strong> A lot of hard work goes into building plugins - support your open source developers. Thank you!"
149
  msgstr "<strong>Wsparcie:</strong> Wiele pracy trzeba włożyć w napisanie takiej wtyczki. Jeżeli korzystasz z niej i podoba Ci się, postaw mi piwo klikając Donate."
150
 
151
- #: ../ssb-admin.php:182
152
  msgid "About the author:"
153
  msgstr "Informacje o autorze:"
154
 
155
- #: ../ssb-admin.php:184
156
  msgid "Hi! My name is Paweł Rabinek (aka xradar). I'm interesed in SEO and social media, PHP and Wordpress developement."
157
  msgstr "Hej! Nazywam się Paweł Rabinek (nick xradar). Zawodowo zajmuje się SEO i mediami społecznościowymi. Programuję w PHP, często z wykorzystaniem Wordpressa."
158
 
159
- #: ../ssb-admin.php:186
 
 
 
 
160
  msgid "My blog about SEO"
161
  msgstr "Mój blog o SEO"
162
 
163
- #: ../ssb-admin.php:186
164
  msgid "[Polish]"
165
  msgstr " "
166
 
167
- #: ../ssb-admin.php:187
168
  msgid "Follow me on Twitter"
169
  msgstr "Napisz do mnie na Twitter"
170
 
171
- #: ../ssb-admin.php:188
172
  msgid "Paweł Rabinek on Facebook"
173
  msgstr "Paweł Rabinek na Facebook"
174
 
175
- #: ../ssb-admin.php:189
176
  msgid "Paweł Rabinek on Google Plus"
177
  msgstr "Paweł Rabinek na Google Plus"
178
 
179
- #: ../ssb-admin.php:190
180
  msgid "LinkedIn profile"
181
  msgstr "Profil na LinkedIn"
182
 
183
- #: ../ssb-admin.php:196
184
- msgid "Usefull links:"
185
- msgstr "Przydatne linki:"
186
 
187
- #: ../ssb-admin.php:199
188
- msgid "Unlimited web hosting"
189
- msgstr "Nielimitowany hosting stron"
190
 
191
- #: ../ssb-admin.php:200
192
- msgid "Best SEO software"
193
- msgstr "Najlepsze oprogramowanie SEO"
194
 
195
- #: ../ssb-admin.php:201
196
- msgid "Wordpress templates"
197
- msgstr "Szablony do Wordpress"
198
 
199
  #~ msgid "Hi! My name is Paweł Rabinek (aka xradar)."
200
  #~ msgstr "Hej! Nazywam się Paweł Rabinek (nick xradar)."
2
  msgstr ""
3
  "Project-Id-Version: simplesocialbuttons\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-07-16 14:09+0100\n"
6
+ "PO-Revision-Date: 2012-07-16 14:11+0100\n"
7
  "Last-Translator: \n"
8
  "Language-Team: Paweł Rabinek <pawel@rabinek.pl>\n"
9
  "MIME-Version: 1.0\n"
15
  "X-Poedit-SourceCharset: utf-8\n"
16
  "X-Poedit-SearchPath-0: ..\n"
17
 
18
+ #: ../simple-social-buttons.php:471
19
  #: ../ssb-admin.php:11
20
  msgid "Settings"
21
  msgstr "Ustawienia"
22
 
23
+ #: ../simple-social-buttons.php:498
24
  msgid "SSB Settings"
25
  msgstr "Ustawienia SSB"
26
 
27
+ #: ../simple-social-buttons.php:509
28
  msgid "Hide Simple Social Buttons"
29
  msgstr "Ukryj przyciski wtyczki Simple Social Buttons"
30
 
31
  #: ../ssb-admin.php:13
32
+ msgid "<strong>Simple Social Buttons</strong> by <strong>Paweł Rabinek</strong>. This plugin adds a social media buttons, such as: <strong>Google +1</strong>, <strong>Facebook Like it</strong>, <strong>Twitter share</strong> and <strong>Pinterest</strong>. The most flexible social buttons plugin ever."
33
+ msgstr "<strong>Simple Social Buttons</strong>, autor <strong>Paweł Rabinek</strong>. Wtyczka dodaje do wpisów przyciski: <strong>Google +1</strong>, <strong>Facebook Lubię to</strong>, <strong>Twitter</strong> oraz <strong>Pinterest</strong>. Najlepsza wtyczka z przyciskami social media dla Wordpress."
34
 
35
+ #: ../ssb-admin.php:71
36
  msgid "Select buttons"
37
  msgstr "Wybór przycisków"
38
 
39
+ #: ../ssb-admin.php:73
40
  msgid "Select social media buttons:"
41
  msgstr "Wybierz przyciski do wyświetlenia:"
42
 
43
+ #: ../ssb-admin.php:79
44
+ #: ../ssb-admin.php:93
45
+ #: ../ssb-admin.php:108
46
+ #: ../ssb-admin.php:123
47
  msgid "inactive"
48
  msgstr "nieaktywny"
49
 
50
+ #: ../ssb-admin.php:87
51
  msgid "Google plus one (+1)"
52
  msgstr "Google plus jeden (+1)"
53
 
54
+ #: ../ssb-admin.php:101
55
  msgid "Facebook Like it"
56
  msgstr "Facebook Lubię to"
57
 
58
+ #: ../ssb-admin.php:116
59
  msgid "Twitter share"
60
  msgstr "Wyślij na Twitter"
61
 
62
+ #: ../ssb-admin.php:131
63
+ msgid "Pinterest - Pin It"
64
+ msgstr "Pinterest - Pin It"
65
+
66
+ #: ../ssb-admin.php:131
67
+ msgid "(Will be visible only on post with thumbnail)"
68
+ msgstr "(Widoczny tylko dla wpisów z ustawioną ikoną)"
69
+
70
+ #: ../ssb-admin.php:134
71
  msgid "Disable plugin CSS (only advanced users)"
72
  msgstr "Wyłącz style CSS wtyczki (tylko dla zaawansowanych użytkowników)"
73
 
74
+ #: ../ssb-admin.php:139
75
  msgid "Single posts - display settings"
76
  msgstr "Pojedyńcze wpisy - ustawienia"
77
 
78
+ #: ../ssb-admin.php:141
79
  msgid "Place buttons on single post:"
80
  msgstr "Miejsce przycisków na podstronie wpisu:"
81
 
82
+ #: ../ssb-admin.php:142
83
+ #: ../ssb-admin.php:166
84
  msgid "Before the content"
85
  msgstr "Nad treścią wpisu"
86
 
87
+ #: ../ssb-admin.php:143
88
+ #: ../ssb-admin.php:167
89
  msgid "After the content"
90
  msgstr "Pod treścią wpisu"
91
 
92
+ #: ../ssb-admin.php:148
93
  msgid "Single pages - display settings"
94
  msgstr "Pojedyńcze strony - ustawienia"
95
 
96
+ #: ../ssb-admin.php:150
97
  msgid "Place buttons on single pages:"
98
  msgstr "Miejsce przycisków na stronach:"
99
 
100
+ #: ../ssb-admin.php:151
101
  msgid "Before the page content"
102
  msgstr "Nad treścią strony"
103
 
104
+ #: ../ssb-admin.php:152
105
  msgid "After the page content"
106
  msgstr "Pod treścią strony"
107
 
108
+ #: ../ssb-admin.php:157
109
  msgid "Archives - display settings"
110
  msgstr "Archiwa - ustawienia"
111
 
112
+ #: ../ssb-admin.php:159
113
  msgid "Select additional places to display buttons:"
114
  msgstr "Dodatkowe miejsca do wyświetlenia przycisków:"
115
 
116
+ #: ../ssb-admin.php:160
117
  msgid "Show at frontpage"
118
  msgstr "Pokazuj na stronie głównej"
119
 
120
+ #: ../ssb-admin.php:161
121
  msgid "Show at category pages"
122
  msgstr "Pokazuj na stroniach kategorii"
123
 
124
+ #: ../ssb-admin.php:162
125
  msgid "Show at archive pages"
126
  msgstr "Pokazuje w archiwum dat"
127
 
128
+ #: ../ssb-admin.php:163
129
  msgid "Show at tag pages"
130
  msgstr "Pokazuj na stronach tagów"
131
 
132
+ #: ../ssb-admin.php:165
133
  msgid "Place buttons on archives:"
134
  msgstr "Miejsce przycisków na stronach archiwum:"
135
 
136
+ #: ../ssb-admin.php:172
137
+ msgid "Additional features"
138
+ msgstr "Dodatkowe funkcje"
139
+
140
+ #: ../ssb-admin.php:174
141
+ msgid "Twitter @username"
142
+ msgstr "Twitter @użytkownik"
143
+
144
+ #: ../ssb-admin.php:180
145
  msgid "Save Changes"
146
  msgstr "Zapisz ustawienia"
147
 
148
+ #: ../ssb-admin.php:190
149
  msgid "About this plugin:"
150
  msgstr "Informacje o wtyczce:"
151
 
152
+ #: ../ssb-admin.php:192
153
  msgid "Talk to <a href=\"http://twitter.com/rabinek\" target=\"_blank\">@rabinek</a> on twitter for bugs or feature requests."
154
  msgstr "Napisz do mnie <a href=\"http://twitter.com/rabinek\" target=\"_blank\">@rabinek</a> na Twitterze, jeżeli znalazłeś błąd lub masz pomysł na ulepszenie wtyczki."
155
 
156
+ #: ../ssb-admin.php:193
157
  msgid "Enjoy the plugin?"
158
  msgstr "Podoba Ci się wtyczka?"
159
 
160
+ #: ../ssb-admin.php:194
161
+ msgid "<a href=\"http://twitter.com/?status=I'm using @rabinek WordPress Simple Social Buttons plugin - check it out! http://www.rabinek.pl/\" target=\"_blank\">Tweet about it</a> and consider donating."
162
+ msgstr "<a href=\"http://twitter.com/?status=Używam wtyczki do Wordpressa od @rabinek - WordPress Simple Social Buttons! http://www.rabinek.pl/\" target=\"_blank\">Powiedz o niej na Twitterze</a> i rozważ wsparcie dla tej wtyczki (poniżej)."
163
 
164
+ #: ../ssb-admin.php:195
165
  msgid "<strong>Donate:</strong> A lot of hard work goes into building plugins - support your open source developers. Thank you!"
166
  msgstr "<strong>Wsparcie:</strong> Wiele pracy trzeba włożyć w napisanie takiej wtyczki. Jeżeli korzystasz z niej i podoba Ci się, postaw mi piwo klikając Donate."
167
 
168
+ #: ../ssb-admin.php:207
169
  msgid "About the author:"
170
  msgstr "Informacje o autorze:"
171
 
172
+ #: ../ssb-admin.php:209
173
  msgid "Hi! My name is Paweł Rabinek (aka xradar). I'm interesed in SEO and social media, PHP and Wordpress developement."
174
  msgstr "Hej! Nazywam się Paweł Rabinek (nick xradar). Zawodowo zajmuje się SEO i mediami społecznościowymi. Programuję w PHP, często z wykorzystaniem Wordpressa."
175
 
176
+ #: ../ssb-admin.php:211
177
+ msgid "Free SEO Audit"
178
+ msgstr "Darmowy audyt SEO"
179
+
180
+ #: ../ssb-admin.php:212
181
  msgid "My blog about SEO"
182
  msgstr "Mój blog o SEO"
183
 
184
+ #: ../ssb-admin.php:212
185
  msgid "[Polish]"
186
  msgstr " "
187
 
188
+ #: ../ssb-admin.php:213
189
  msgid "Follow me on Twitter"
190
  msgstr "Napisz do mnie na Twitter"
191
 
192
+ #: ../ssb-admin.php:214
193
  msgid "Paweł Rabinek on Facebook"
194
  msgstr "Paweł Rabinek na Facebook"
195
 
196
+ #: ../ssb-admin.php:215
197
  msgid "Paweł Rabinek on Google Plus"
198
  msgstr "Paweł Rabinek na Google Plus"
199
 
200
+ #: ../ssb-admin.php:216
201
  msgid "LinkedIn profile"
202
  msgstr "Profil na LinkedIn"
203
 
204
+ #~ msgid "Usefull links:"
205
+ #~ msgstr "Przydatne linki:"
 
206
 
207
+ #~ msgid "Unlimited web hosting"
208
+ #~ msgstr "Nielimitowany hosting stron"
 
209
 
210
+ #~ msgid "Best SEO software"
211
+ #~ msgstr "Najlepsze oprogramowanie SEO"
 
212
 
213
+ #~ msgid "Wordpress templates"
214
+ #~ msgstr "Szablony do Wordpress"
 
215
 
216
  #~ msgid "Hi! My name is Paweł Rabinek (aka xradar)."
217
  #~ msgstr "Hej! Nazywam się Paweł Rabinek (nick xradar)."
lang/simplesocialbuttons-th_TH.mo ADDED
Binary file
lang/simplesocialbuttons-th_TH.po ADDED
@@ -0,0 +1,203 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: simplesocialbuttons\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-02-01 11:19+0100\n"
6
+ "PO-Revision-Date: 2012-05-08 13:37+0100\n"
7
+ "Last-Translator: Mads Phikamphon <mads@genvejen.dk>\n"
8
+ "Language-Team: Paweł Rabinek (DE: Dennis Schreiber) <pawel@rabinek.pl>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: __;_e\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-Language: German\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-Country: GERMANY\n"
17
+ "X-Poedit-SearchPath-0: ..\n"
18
+
19
+ # Traduit par @RhooManu - www.infographizm.com
20
+ #: ../simple-social-buttons.php:424
21
+ #: ../ssb-admin.php:11
22
+ msgid "Settings"
23
+ msgstr "การตั้งค่า"
24
+
25
+ # Traduit par @RhooManu - www.infographizm.com
26
+ #: ../simple-social-buttons.php:452
27
+ msgid "SSB Settings"
28
+ msgstr "SSB การตั้งค่า"
29
+
30
+ #: ../simple-social-buttons.php:463
31
+ msgid "Hide Simple Social Buttons"
32
+ msgstr "ซ่อนปุ่มสังคมแบบง่าย ๆ"
33
+
34
+ #: ../ssb-admin.php:13
35
+ msgid "<strong>Simple Social Buttons</strong> by <strong>Paweł Rabinek</strong>. This plugin adds a social media buttons, such as: <strong>Google +1</strong>, <strong>Facebook Like it</strong> and <strong>Twitter share</strong>. The most flexible social buttons plugin ever."
36
+ msgstr "<strong>Simple Social Buttons</strong>, จาก <strong>Paweł Rabinek</strong>. ปลั๊กอินนี้จะเพิ่มปุ่มสื่อสังคมเช่น <strong>Google +1</strong>, <strong>Facebook ชอบมัน</strong> et <strong>Twitter</strong>. ความยืดหยุ่นมากที่สุดปุ่มสังคมปลั๊กอินที่เคย"
37
+
38
+ #: ../ssb-admin.php:68
39
+ msgid "Select buttons"
40
+ msgstr "เลื่อกปุ่ม"
41
+
42
+ #: ../ssb-admin.php:70
43
+ msgid "Select social media buttons:"
44
+ msgstr "เลื่อกปุ่มสังคมในการสื่อ"
45
+
46
+ #: ../ssb-admin.php:76
47
+ #: ../ssb-admin.php:90
48
+ #: ../ssb-admin.php:105
49
+ msgid "inactive"
50
+ msgstr "เฉื่อยชา"
51
+
52
+ #: ../ssb-admin.php:84
53
+ msgid "Google plus one (+1)"
54
+ msgstr "Google บวก หนึ่ง (+1)"
55
+
56
+ #: ../ssb-admin.php:98
57
+ msgid "Facebook Like it"
58
+ msgstr "Facebook ชอบมัน"
59
+
60
+ #: ../ssb-admin.php:113
61
+ msgid "Twitter share"
62
+ msgstr "Twitter แบ่งปั่น"
63
+
64
+ #: ../ssb-admin.php:116
65
+ msgid "Disable plugin CSS (only advanced users)"
66
+ msgstr "ปิดการใช้งานปลั๊กอิน (เฉพาะผู้ใช้ขั้นสูง)"
67
+
68
+ #: ../ssb-admin.php:121
69
+ msgid "Single posts - display settings"
70
+ msgstr "โพสต์เดี่ยว - ตั้งค่าการแสดง"
71
+
72
+ #: ../ssb-admin.php:123
73
+ msgid "Place buttons on single post:"
74
+ msgstr "วางปุ่มบนโพสต์เดียว:"
75
+
76
+ #: ../ssb-admin.php:124
77
+ #: ../ssb-admin.php:148
78
+ msgid "Before the content"
79
+ msgstr "ก่อนหน้าเนื่อหา"
80
+
81
+ #: ../ssb-admin.php:125
82
+ #: ../ssb-admin.php:149
83
+ msgid "After the content"
84
+ msgstr "หลังจากเนื้อหา"
85
+
86
+ #: ../ssb-admin.php:130
87
+ msgid "Single pages - display settings"
88
+ msgstr "หน้าเดี่ยว - ตั้งค่าการแสดง"
89
+
90
+ #: ../ssb-admin.php:132
91
+ msgid "Place buttons on single pages:"
92
+ msgstr "วางปุ่มบนหน้าเดี่ยว"
93
+
94
+ #: ../ssb-admin.php:133
95
+ msgid "Before the page content"
96
+ msgstr "ก่อนหน้าเนื้อหาบนหน้าเว็บ"
97
+
98
+ #: ../ssb-admin.php:134
99
+ msgid "After the page content"
100
+ msgstr "หลังจากเนื้อหาบนหน้าเว็บ"
101
+
102
+ #: ../ssb-admin.php:139
103
+ msgid "Archives - display settings"
104
+ msgstr "คลังเก็บ - ตั้งค่าการแสดง"
105
+
106
+ #: ../ssb-admin.php:141
107
+ msgid "Select additional places to display buttons:"
108
+ msgstr "เลือกสถานที่เพิ่มเติมเพื่อแสดงปุ่ม:"
109
+
110
+ #: ../ssb-admin.php:142
111
+ msgid "Show at frontpage"
112
+ msgstr "แสดงที่หน้าแรก"
113
+
114
+ #: ../ssb-admin.php:143
115
+ msgid "Show at category pages"
116
+ msgstr "แสดงที่หน้าหมวดหมู่"
117
+
118
+ #: ../ssb-admin.php:144
119
+ msgid "Show at archive pages"
120
+ msgstr "แสดงที่หน้าเว็บที่เก็บ"
121
+
122
+ #: ../ssb-admin.php:145
123
+ msgid "Show at tag pages"
124
+ msgstr "แสดงที่หน้าแท็ก"
125
+
126
+ #: ../ssb-admin.php:147
127
+ msgid "Place buttons on archives:"
128
+ msgstr "วางปุ่มบนที่เก็บ"
129
+
130
+ #: ../ssb-admin.php:155
131
+ msgid "Save Changes"
132
+ msgstr "บันทึกการเปลี่ยนแปลง"
133
+
134
+ #: ../ssb-admin.php:165
135
+ msgid "About this plugin:"
136
+ msgstr "เกี่ยวกับปลั๊กอินนี้:"
137
+
138
+ #: ../ssb-admin.php:167
139
+ msgid "Talk to <a href=\"http://twitter.com/rabinek\" target=\"_blank\">@rabinek</a> on twitter for bugs or feature requests."
140
+ msgstr "พูดกับ<a href=\"http://twitter.com/rabinek\" target=\"_blank\">@rabinek</a> ได้ที่ Twitter สำหรับข้อบกพร่องหรือแสดงคุณสมบัติ"
141
+
142
+ #: ../ssb-admin.php:168
143
+ msgid "Enjoy the plugin?"
144
+ msgstr "เพลิดเพลินไปกับปลั๊กอิน?"
145
+
146
+ #: ../ssb-admin.php:169
147
+ msgid "<a href=\"http://twitter.com/?status=I'm using @rabinek's WordPress Simple Social Buttons plugin - check it out! http://blog.rabinek.pl/\" target=\"_blank\">Tweet about it</a> and consider donating."
148
+ msgstr "<a href=\"http://twitter.com/?status=Ich verwende @rabinek's - WordPress Simple Social Buttons ตรวจสอบ! http://blog.rabinek.pl/\" target=\"_blank\">บอกเกี่ยวกับ tweet</a>และพิจารณาการบริจาค"
149
+
150
+ #: ../ssb-admin.php:170
151
+ msgid "<strong>Donate:</strong> A lot of hard work goes into building plugins - support your open source developers. Thank you!"
152
+ msgstr "<strong>Spenden :</strong> ทำงานหนักมากที่จะเข้าสู่ปลั๊กอิน - สนับสนุนนักพัฒนาโอเพนซอร์สของคุณ ขอขอบคุณ!"
153
+
154
+ #: ../ssb-admin.php:182
155
+ msgid "About the author:"
156
+ msgstr "เกี่ยวกับผู้เขียน :"
157
+
158
+ #: ../ssb-admin.php:184
159
+ msgid "Hi! My name is Paweł Rabinek (aka xradar). I'm interesed in SEO and social media, PHP and Wordpress developement."
160
+ msgstr "สวัสดี! ชื่อของฉันคือ Paweł Rabinek (aka xradar) ฉัน สนใจ ใน SEO และสื่อสังคม, PHP และ Wordpress developement."
161
+
162
+ #: ../ssb-admin.php:186
163
+ msgid "My blog about SEO"
164
+ msgstr "บล็อกของฉันเกี่ยวกับ SEO"
165
+
166
+ #: ../ssb-admin.php:186
167
+ msgid "[Polish]"
168
+ msgstr "ขัด"
169
+
170
+ #: ../ssb-admin.php:187
171
+ msgid "Follow me on Twitter"
172
+ msgstr "ตามผมมาใน twitter"
173
+
174
+ #: ../ssb-admin.php:188
175
+ msgid "Paweł Rabinek on Facebook"
176
+ msgstr "Pawel Rabinek ใน Facebook"
177
+
178
+ #: ../ssb-admin.php:189
179
+ msgid "Paweł Rabinek on Google Plus"
180
+ msgstr "Paweł Rabinek ใน google บวกหนึ่ง"
181
+
182
+ #: ../ssb-admin.php:190
183
+ msgid "LinkedIn profile"
184
+ msgstr "ประวัตของลิ้ง"
185
+
186
+ #: ../ssb-admin.php:196
187
+ msgid "Usefull links:"
188
+ msgstr "ลิ้งที่มีประโชย์"
189
+
190
+ #: ../ssb-admin.php:199
191
+ msgid "Unlimited web hosting"
192
+ msgstr "โฮสติ้ง จำกัด เว็บ"
193
+
194
+ #: ../ssb-admin.php:200
195
+ msgid "Best SEO software"
196
+ msgstr "ซอฟต์แวร์ SEO ที่ดีที่สุด"
197
+
198
+ #: ../ssb-admin.php:201
199
+ msgid "Wordpress templates"
200
+ msgstr "แม่แบบ Wordpress"
201
+
202
+ #~ msgid "Hi! My name is Paweł Rabinek (aka xradar)."
203
+ #~ msgstr "Hej! Nazywam się Paweł Rabinek (nick xradar)."
readme.txt CHANGED
@@ -1,16 +1,16 @@
1
  === Plugin Name ===
2
  Contributors: xradar
3
- Donate link: http://blog.rabinek.pl/
4
- Tags: facebook, google, twitter, plus one, like it, like, share
5
  Requires at least: 2.8
6
- Tested up to: 3.3.2
7
- Stable tag: 1.5.6
8
 
9
- Insert and customize social buttons: Facebook Like it, Google plus +1 and Twitter share. 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"** and **Twitter share**. 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
@@ -26,7 +26,7 @@ That's not all. Simple Social Buttons can also add social media buttons to:
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 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
 
@@ -41,7 +41,7 @@ Simple Social Buttons is currently in the following languages:
41
 
42
  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.
43
 
44
- For more information about Wordpress and SEO, visit my [SEO Blog](http://blog.rabinek.pl "Paweł Rabinek - Blog SEO") (in polish).
45
  Also check my new SEO tool [SEO Audit](http://www.seoptimer.com "Free SEO Audit tool").
46
 
47
  Big thanks for support in development of this plugin for:
@@ -74,7 +74,7 @@ Yes. I've some plans about developing Simple Social Buttons. There will be more
74
 
75
  = Why use this plugin? =
76
 
77
- This plugin automatically adds the Facebook Like button, Google plus one +1 and Twitter share button for each post on your blog. This is the simples and effective way to promote your blog in social media networks.
78
 
79
  = How about support? =
80
 
@@ -155,3 +155,9 @@ Make sure you have set WPLANG in wp-config.php file. Correct values are "en_US"
155
  = 1.5.6 =
156
  * Added thai translation
157
  * fixed Facebook language detection
 
 
 
 
 
 
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.4.1
7
+ Stable tag: 1.6.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
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
 
41
 
42
  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.
43
 
44
+ For more information about Wordpress and SEO, visit my [SEO Blog](http://www.rabinek.pl "Paweł Rabinek - Blog SEO") (in polish).
45
  Also check my new SEO tool [SEO Audit](http://www.seoptimer.com "Free SEO Audit tool").
46
 
47
  Big thanks for support in development of this plugin for:
74
 
75
  = Why use this plugin? =
76
 
77
+ 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.
78
 
79
  = How about support? =
80
 
155
  = 1.5.6 =
156
  * Added thai translation
157
  * fixed Facebook language detection
158
+
159
+ = 1.6.0 =
160
+ * Added Twitter via @username option
161
+ * Added Pinterest button
162
+ * Some bug fixes
163
+
simple-social-buttons.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /*
3
  Plugin Name: Simple Social Buttons
4
- Plugin URI: http://blog.rabinek.pl/simple-social-buttons-wordpress/
5
  Description: Insert social buttons into posts and archives: Facebook "Like it", Google Plus One "+1" and Twitter share.
6
  Author: Paweł Rabinek
7
- Version: 1.5.6
8
- Author URI: http://blog.rabinek.pl/
9
  */
10
 
11
  /* Copyright 2011, Paweł Rabinek (xradar) (email : pawel@rabinek.pl)
@@ -35,7 +35,7 @@
35
 
36
  class SimpleSocialButtonsPR {
37
  var $pluginName = 'Simple Social Buttons';
38
- var $pluginVersion = '1.5.6';
39
  var $pluginPrefix = 'ssb_pr_';
40
  var $hideCustomMetaKey = '_ssb_hide';
41
 
@@ -44,6 +44,7 @@ class SimpleSocialButtonsPR {
44
  'googleplus' => '1',
45
  'fblike' => '2',
46
  'twitter' => '3',
 
47
  'beforepost' => '1',
48
  'afterpost' => '0',
49
  'beforepage' => '1',
@@ -53,7 +54,10 @@ class SimpleSocialButtonsPR {
53
  );
54
 
55
  // defined buttons
56
- var $arrKnownButtons = array('fblike', 'googleplus', 'twitter');
 
 
 
57
 
58
 
59
  /**
@@ -74,11 +78,11 @@ class SimpleSocialButtonsPR {
74
  add_action( 'init', array(&$this, 'plugin_init') );
75
 
76
  // get settings
77
- $currentSettings = $this->get_settings();
78
 
79
  // social JS + CSS data
80
  add_action( 'wp_footer', array(&$this, 'include_social_js') );
81
- if(!isset($currentSettings['override_css'])) {
82
  add_action( 'wp_head', array(&$this, 'include_css') );
83
  }
84
 
@@ -131,6 +135,7 @@ class SimpleSocialButtonsPR {
131
  <!-- Simple Social Buttons plugin -->
132
  <script type="text/javascript">
133
  //<![CDATA[
 
134
  // google plus
135
  window.___gcfg = {lang: '<?php echo $lang_g; ?>'};
136
  (function() {
@@ -138,6 +143,8 @@ window.___gcfg = {lang: '<?php echo $lang_g; ?>'};
138
  po.src = 'https://apis.google.com/js/plusone.js';
139
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
140
  })();
 
 
141
  // facebook
142
  (function(d, s, id) {
143
  var js, fjs = d.getElementsByTagName(s)[0];
@@ -146,10 +153,16 @@ window.___gcfg = {lang: '<?php echo $lang_g; ?>'};
146
  js.src = "//connect.facebook.net/<?php echo $lang_fb; ?>/all.js#xfbml=1";
147
  fjs.parentNode.insertBefore(js, fjs);
148
  }(document, 'script', 'facebook-jssdk'));
 
 
149
  // twitter
150
  !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
 
151
  // ]]>
152
  </script>
 
 
 
153
  <!-- /End of Simple Social Buttons -->
154
 
155
  <?php
@@ -258,40 +271,35 @@ window.___gcfg = {lang: '<?php echo $lang_g; ?>'};
258
  */
259
  function where_to_insert() {
260
  $return = false;
261
-
262
- // get settings from database
263
- $settings = $this->get_settings();
264
-
265
- extract( $settings, EXTR_PREFIX_ALL, 'ssb' );
266
 
267
  // display on single post?
268
- if(is_single() && ($ssb_beforepost || $ssb_afterpost) && array_shift(get_post_meta(get_the_ID(), $this->hideCustomMetaKey)) != 'true') {
269
  $return = true;
270
  }
271
 
272
  // display on single page?
273
- if(is_page() && ($ssb_beforepage || $ssb_afterpage) && array_shift(get_post_meta(get_the_ID(), $this->hideCustomMetaKey)) != 'true') {
274
  $return = true;
275
  }
276
 
277
  // display on frontpage?
278
- if((is_front_page() || is_home()) && $ssb_showfront) {
279
  $return = true;
280
  }
281
 
282
  // display on category archive?
283
- if(is_category() && $ssb_showcategory) {
284
  $return = true;
285
  }
286
 
287
  // display on date archive?
288
- if(is_date() && $ssb_showarchive)
289
  {
290
  $return = true;
291
  }
292
 
293
  // display on tag archive?
294
- if(is_tag() && $ssb_showtag) {
295
  $return = true;
296
  }
297
  return $return;
@@ -300,43 +308,38 @@ window.___gcfg = {lang: '<?php echo $lang_g; ?>'};
300
  /**
301
  * Insert the buttons to the content
302
  */
303
- function insert_buttons($content) {
304
  // Insert or not?
305
  if(!$this->where_to_insert() ) {
306
  return $content;
307
  }
308
 
309
- // get settings from database
310
- $settings = $this->get_settings();
311
-
312
- extract( $settings, EXTR_PREFIX_ALL, 'ssb' );
313
-
314
  // creating order
315
  $order = array();
316
  foreach ($this->arrKnownButtons as $button_name) {
317
- $order[$button_name] = $settings[$button_name];
318
  }
319
  $ssb_buttonscode = $this->generate_buttons_code($order);
320
 
321
  if(is_single()) {
322
- if($ssb_beforepost) {
323
  $content = $ssb_buttonscode.$content;
324
  }
325
- if($ssb_afterpost) {
326
  $content = $content.$ssb_buttonscode;
327
  }
328
  } else if(is_page()) {
329
- if($ssb_beforepage) {
330
  $content = $ssb_buttonscode.$content;
331
  }
332
- if($ssb_afterpage) {
333
  $content = $content.$ssb_buttonscode;
334
  }
335
  } else {
336
- if($ssb_beforearchive) {
337
  $content = $ssb_buttonscode.$content;
338
  }
339
- if($ssb_afterarchive) {
340
  $content = $content.$ssb_buttonscode;
341
  }
342
  }
@@ -376,7 +379,8 @@ window.___gcfg = {lang: '<?php echo $lang_g; ?>'};
376
  $permalink = get_permalink();
377
  $title = get_the_title();
378
 
379
- //Sorting the buttons
 
380
  foreach($this->arrKnownButtons as $button_name) {
381
  if(!empty($order[$button_name]) && (int)$order[$button_name] != 0) {
382
  $arrButtons[$button_name] = $order[$button_name];
@@ -385,7 +389,7 @@ window.___gcfg = {lang: '<?php echo $lang_g; ?>'};
385
  @asort($arrButtons);
386
 
387
  $arrButtonsCode = array();
388
- foreach($arrButtons as $button_name => $button_sort) {
389
  switch($button_name) {
390
  case 'googleplus':
391
  $arrButtonsCode[] = '<div class="simplesocialbutton ssb-button-googleplus"><!-- Google Plus One--><div class="g-plusone" data-size="medium" data-href="'.$permalink.'"></div></div>';
@@ -394,7 +398,23 @@ window.___gcfg = {lang: '<?php echo $lang_g; ?>'};
394
  $arrButtonsCode[] = '<div class="simplesocialbutton ssb-button-fblike"><!-- Facebook like--><div id="fb-root"></div><div class="fb-like" data-href="'.$permalink.'" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false"></div></div>';
395
  break;
396
  case 'twitter':
397
- $arrButtonsCode[] = '<div class="simplesocialbutton ssb-buttom-twitter"><!-- Twitter--><a href="https://twitter.com/share" class="twitter-share-button" data-text="'.$title.'" data-url="'.$permalink.'" rel="nofollow"></a></div>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
398
  break;
399
  }
400
  }
@@ -466,7 +486,6 @@ class SimpleSocialButtonsPR_Admin extends SimpleSocialButtonsPR {
466
  if ($postType != 'page' && $postType != 'post') return false;
467
 
468
  $currentSsbHide = get_post_custom_values($this->hideCustomMetaKey, $postId);
469
- $currentSettings = $this->get_settings();
470
 
471
  if ($currentSsbHide[0] == 'true') {
472
  $checked = true;
1
  <?php
2
  /*
3
  Plugin Name: Simple Social Buttons
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" and Twitter share.
6
  Author: Paweł Rabinek
7
+ Version: 1.6.0
8
+ Author URI: http://www.rabinek.pl/
9
  */
10
 
11
  /* Copyright 2011, Paweł Rabinek (xradar) (email : pawel@rabinek.pl)
35
 
36
  class SimpleSocialButtonsPR {
37
  var $pluginName = 'Simple Social Buttons';
38
+ var $pluginVersion = '1.6.0';
39
  var $pluginPrefix = 'ssb_pr_';
40
  var $hideCustomMetaKey = '_ssb_hide';
41
 
44
  'googleplus' => '1',
45
  'fblike' => '2',
46
  'twitter' => '3',
47
+ 'pinterest' => '0',
48
  'beforepost' => '1',
49
  'afterpost' => '0',
50
  'beforepage' => '1',
54
  );
55
 
56
  // defined buttons
57
+ var $arrKnownButtons = array('fblike', 'googleplus', 'twitter', 'pinterest');
58
+
59
+ // an array to store current settings, to avoid passing them between functions
60
+ var $settings = array();
61
 
62
 
63
  /**
78
  add_action( 'init', array(&$this, 'plugin_init') );
79
 
80
  // get settings
81
+ $this->settings = $this->get_settings();
82
 
83
  // social JS + CSS data
84
  add_action( 'wp_footer', array(&$this, 'include_social_js') );
85
+ if(!isset($this->settings['override_css'])) {
86
  add_action( 'wp_head', array(&$this, 'include_css') );
87
  }
88
 
135
  <!-- Simple Social Buttons plugin -->
136
  <script type="text/javascript">
137
  //<![CDATA[
138
+ <?php if ((int)$this->settings['googleplus'] != 0):?>
139
  // google plus
140
  window.___gcfg = {lang: '<?php echo $lang_g; ?>'};
141
  (function() {
143
  po.src = 'https://apis.google.com/js/plusone.js';
144
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
145
  })();
146
+ <?php endif;?>
147
+ <?php if ((int)$this->settings['fblike'] != 0):?>
148
  // facebook
149
  (function(d, s, id) {
150
  var js, fjs = d.getElementsByTagName(s)[0];
153
  js.src = "//connect.facebook.net/<?php echo $lang_fb; ?>/all.js#xfbml=1";
154
  fjs.parentNode.insertBefore(js, fjs);
155
  }(document, 'script', 'facebook-jssdk'));
156
+ <?php endif;?>
157
+ <?php if ((int)$this->settings['twitter'] != 0):?>
158
  // twitter
159
  !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
160
+ <?php endif;?>
161
  // ]]>
162
  </script>
163
+ <?php if ((int)$this->settings['pinterest'] != 0):?>
164
+ <script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>
165
+ <?php endif;?>
166
  <!-- /End of Simple Social Buttons -->
167
 
168
  <?php
271
  */
272
  function where_to_insert() {
273
  $return = false;
 
 
 
 
 
274
 
275
  // display on single post?
276
+ if(is_single() && ($this->settings['beforepost'] || $this->settings['afterpost']) && array_shift(get_post_meta(get_the_ID(), $this->hideCustomMetaKey)) != 'true') {
277
  $return = true;
278
  }
279
 
280
  // display on single page?
281
+ if(is_page() && ($this->settings['beforepage'] || $this->settings['afterpage']) && array_shift(get_post_meta(get_the_ID(), $this->hideCustomMetaKey)) != 'true') {
282
  $return = true;
283
  }
284
 
285
  // display on frontpage?
286
+ if((is_front_page() || is_home()) && $this->settings['showfront']) {
287
  $return = true;
288
  }
289
 
290
  // display on category archive?
291
+ if(is_category() && $this->settings['showcategory']) {
292
  $return = true;
293
  }
294
 
295
  // display on date archive?
296
+ if(is_date() && $this->settings['showarchive'])
297
  {
298
  $return = true;
299
  }
300
 
301
  // display on tag archive?
302
+ if(is_tag() && $this->settings['showtag']) {
303
  $return = true;
304
  }
305
  return $return;
308
  /**
309
  * Insert the buttons to the content
310
  */
311
+ function insert_buttons($content) {
312
  // Insert or not?
313
  if(!$this->where_to_insert() ) {
314
  return $content;
315
  }
316
 
 
 
 
 
 
317
  // creating order
318
  $order = array();
319
  foreach ($this->arrKnownButtons as $button_name) {
320
+ $order[$button_name] = $this->settings[$button_name];
321
  }
322
  $ssb_buttonscode = $this->generate_buttons_code($order);
323
 
324
  if(is_single()) {
325
+ if($this->settings['beforepost']) {
326
  $content = $ssb_buttonscode.$content;
327
  }
328
+ if($this->settings['afterpost']) {
329
  $content = $content.$ssb_buttonscode;
330
  }
331
  } else if(is_page()) {
332
+ if($this->settings['beforepage']) {
333
  $content = $ssb_buttonscode.$content;
334
  }
335
+ if($this->settings['afterpage']) {
336
  $content = $content.$ssb_buttonscode;
337
  }
338
  } else {
339
+ if($this->settings['beforearchive']) {
340
  $content = $ssb_buttonscode.$content;
341
  }
342
+ if($this->settings['afterarchive']) {
343
  $content = $content.$ssb_buttonscode;
344
  }
345
  }
379
  $permalink = get_permalink();
380
  $title = get_the_title();
381
 
382
+ //Sorting the buttons
383
+ $arrButtons = array();
384
  foreach($this->arrKnownButtons as $button_name) {
385
  if(!empty($order[$button_name]) && (int)$order[$button_name] != 0) {
386
  $arrButtons[$button_name] = $order[$button_name];
389
  @asort($arrButtons);
390
 
391
  $arrButtonsCode = array();
392
+ foreach($arrButtons as $button_name => $button_sort) {
393
  switch($button_name) {
394
  case 'googleplus':
395
  $arrButtonsCode[] = '<div class="simplesocialbutton ssb-button-googleplus"><!-- Google Plus One--><div class="g-plusone" data-size="medium" data-href="'.$permalink.'"></div></div>';
398
  $arrButtonsCode[] = '<div class="simplesocialbutton ssb-button-fblike"><!-- Facebook like--><div id="fb-root"></div><div class="fb-like" data-href="'.$permalink.'" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false"></div></div>';
399
  break;
400
  case 'twitter':
401
+ $arrButtonsCode[] = '<div class="simplesocialbutton ssb-buttom-twitter"><!-- Twitter--><a href="https://twitter.com/share" class="twitter-share-button" data-text="'.$title.'" data-url="'.$permalink.'" ' . ((!empty($this->settings['twitterusername'])) ? 'data-via="'.$this->settings['twitterusername'].'" ' : '') . 'rel="nofollow"></a></div>';
402
+ break;
403
+ case 'pinterest':
404
+ $thumb_id = get_post_thumbnail_id($post->ID);
405
+
406
+ // Don't show 'Pin It' button, if post dont have thumbnail
407
+ if (empty($thumb_id)) break;
408
+
409
+ // Getting thumbnail url
410
+ $thumb = wp_get_attachment_image_src($thumb_id, 'thumbnail_size' );
411
+ $thumb_src = (isset($thumb[0])) ? $thumb[0] : null;
412
+ $thumb_alt = get_post_meta($thumb_id , '_wp_attachment_image_alt', true);
413
+
414
+ // if there isn't thumbnail alt, take a post title as a description
415
+ $description = (!empty($thumb_alt)) ? $thumb_alt : $title ;
416
+
417
+ $arrButtonsCode[] = '<div class="simplesocialbutton ssb-buttom-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>';
418
  break;
419
  }
420
  }
486
  if ($postType != 'page' && $postType != 'post') return false;
487
 
488
  $currentSsbHide = get_post_custom_values($this->hideCustomMetaKey, $postId);
 
489
 
490
  if ($currentSsbHide[0] == 'true') {
491
  $checked = true;
ssb-admin.php CHANGED
@@ -10,7 +10,7 @@
10
 
11
  <h2>Simple Social Buttons - <?php _e('Settings'); ?>:</h2>
12
 
13
- <p><?php _e('<strong>Simple Social Buttons</strong> by <strong>Paweł Rabinek</strong>. This plugin adds a social media buttons, such as: <strong>Google +1</strong>, <strong>Facebook Like it</strong> and <strong>Twitter share</strong>. The most flexible social buttons plugin ever.', 'simplesocialbuttons'); ?></p>
14
 
15
  <?php
16
 
@@ -25,6 +25,7 @@ if(strtolower($_POST['hiddenconfirm']) == 'y') {
25
  'googleplus' => $_POST['ssb_googleplus'],
26
  'fblike' => $_POST['ssb_fblike'],
27
  'twitter' => $_POST['ssb_twitter'],
 
28
 
29
  'beforepost' => $_POST['ssb_beforepost'],
30
  'afterpost' => $_POST['ssb_afterpost'],
@@ -39,6 +40,8 @@ if(strtolower($_POST['hiddenconfirm']) == 'y') {
39
  'showtag' => $_POST['ssb_showtag'],
40
 
41
  'override_css' => $_POST['ssb_override_css'],
 
 
42
  );
43
 
44
  $this->update_settings( $updateSettings );
@@ -89,7 +92,7 @@ extract( $settings, EXTR_PREFIX_ALL, 'ssb' );
89
  ?>selected="selected"<?php
90
  } ?>><?php _e('inactive', 'simplesocialbuttons'); ?></option>
91
 
92
- <?php for($pos = 1; $pos < 4; $pos++) { ?>
93
  <option value="<?php echo $pos; ?>"<?php if($ssb_fblike == $pos) {
94
  ?>selected="selected"<?php
95
  } ?>> # <?php echo $pos; ?> </option>
@@ -104,7 +107,7 @@ extract( $settings, EXTR_PREFIX_ALL, 'ssb' );
104
  ?>selected="selected"<?php
105
  } ?>><?php _e('inactive', 'simplesocialbuttons'); ?></option>
106
 
107
- <?php for($pos = 1; $pos < 4; $pos++) { ?>
108
  <option value="<?php echo $pos; ?>"<?php if($ssb_twitter == $pos) {
109
  ?>selected="selected"<?php
110
  } ?>> # <?php echo $pos; ?> </option>
@@ -112,6 +115,21 @@ extract( $settings, EXTR_PREFIX_ALL, 'ssb' );
112
  </select> &nbsp;
113
  <label for="ssb_twitter"><?php _e('Twitter share', 'simplesocialbuttons'); ?></label></p>
114
  <!-- /twitter -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
 
116
  <p><label for="ssb_override_css"><input type="checkbox" name="ssb_override_css" id="ssb_override_css" value="1" <?php if($ssb_override_css) { echo 'checked="checked"'; } ?>/> <?php _e('Disable plugin CSS (only advanced users)'); ?></label></p>
117
  </div>
@@ -149,6 +167,13 @@ extract( $settings, EXTR_PREFIX_ALL, 'ssb' );
149
  <p><input type="checkbox" name="ssb_afterarchive" id="ssb_afterarchive" value="1" <?php if(!empty($ssb_afterarchive)) { ?>checked="checked"<?php } ?> /> <label for="ssb_afterarchive"><?php _e('After the content', 'simplesocialbuttons'); ?></label></p>
150
  </div>
151
  </div>
 
 
 
 
 
 
 
152
 
153
  <div class="submit">
154
  <input type="hidden" name="hiddenconfirm" value="Y" />
@@ -166,7 +191,7 @@ extract( $settings, EXTR_PREFIX_ALL, 'ssb' );
166
  <div class="inside">
167
  <p><?php _e('Talk to <a href="http://twitter.com/rabinek" target="_blank">@rabinek</a> on twitter for bugs or feature requests.', 'simplesocialbuttons'); ?></p>
168
  <p><strong><?php _e('Enjoy the plugin?', 'simplesocialbuttons'); ?></strong><br />
169
- <?php _e('<a href="http://twitter.com/?status=I\'m using @rabinek\'s WordPress Simple Social Buttons plugin - check it out! http://blog.rabinek.pl/" target="_blank">Tweet about it</a> and consider donating.', 'simplesocialbuttons'); ?></p>
170
  <p><?php _e('<strong>Donate:</strong> A lot of hard work goes into building plugins - support your open source developers. Thank you!', 'simplesocialbuttons'); ?><br />
171
  <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
172
  <input type="hidden" name="cmd" value="_s-xclick">
@@ -183,7 +208,8 @@ extract( $settings, EXTR_PREFIX_ALL, 'ssb' );
183
  <div class="inside">
184
  <p><?php _e('Hi! My name is Paweł Rabinek (aka xradar). I\'m interesed in SEO and social media, PHP and Wordpress developement.', 'simplesocialbuttons'); ?></p>
185
  <ul>
186
- <li><a href="http://blog.rabinek.pl/" target="_blank"><?php _e('My blog about SEO', 'simplesocialbuttons'); ?></a> <?php _e('[Polish]', 'simplesocialbuttons'); ?></li>
 
187
  <li><?php _e('Follow me on Twitter', 'simplesocialbuttons'); ?> <a href="http://www.twitter.com/rabinek" target="_blank">@rabinek</a></li>
188
  <li><a href="http://www.facebook.com/rabinek" target="_blank"><?php _e('Paweł Rabinek on Facebook', 'simplesocialbuttons'); ?></a></li>
189
  <li><a href="http://plus.google.com/114311287272342088386/" target="_blank"><?php _e('Paweł Rabinek on Google Plus', 'simplesocialbuttons'); ?></a></li>
@@ -192,17 +218,6 @@ extract( $settings, EXTR_PREFIX_ALL, 'ssb' );
192
  </div>
193
  </div>
194
 
195
- <div class="postbox">
196
- <h3><?php _e('Usefull links:', 'simplesocialbuttons'); ?></h3>
197
- <div class="inside">
198
- <ul>
199
- <li><a href="http://www.site5.com/in.php?id=53542" target="_blank"><?php _e('Unlimited web hosting', 'simplesocialbuttons'); ?></a></li>
200
- <li><a href="http://www.webceo.com/cgi-bin/go/clickthru.cgi?id=xradar" target="_blank"><?php _e('Best SEO software', 'simplesocialbuttons'); ?></a></li>
201
- <li><a href="http://themeforest.net?ref=xradar" target="_blank"><?php _e('Wordpress templates', 'simplesocialbuttons'); ?></a></li>
202
- </ul>
203
- </div>
204
- </div>
205
-
206
  </div>
207
  </div>
208
  </div>
10
 
11
  <h2>Simple Social Buttons - <?php _e('Settings'); ?>:</h2>
12
 
13
+ <p><?php _e('<strong>Simple Social Buttons</strong> by <strong>Paweł Rabinek</strong>. This plugin adds a social media buttons, such as: <strong>Google +1</strong>, <strong>Facebook Like it</strong>, <strong>Twitter share</strong> and <strong>Pinterest</strong>. The most flexible social buttons plugin ever.', 'simplesocialbuttons'); ?></p>
14
 
15
  <?php
16
 
25
  'googleplus' => $_POST['ssb_googleplus'],
26
  'fblike' => $_POST['ssb_fblike'],
27
  'twitter' => $_POST['ssb_twitter'],
28
+ 'pinterest' => $_POST['ssb_pinterest'],
29
 
30
  'beforepost' => $_POST['ssb_beforepost'],
31
  'afterpost' => $_POST['ssb_afterpost'],
40
  'showtag' => $_POST['ssb_showtag'],
41
 
42
  'override_css' => $_POST['ssb_override_css'],
43
+
44
+ 'twitterusername' => str_replace(array("@", " "), "", $_POST['ssb_twitterusername']),
45
  );
46
 
47
  $this->update_settings( $updateSettings );
92
  ?>selected="selected"<?php
93
  } ?>><?php _e('inactive', 'simplesocialbuttons'); ?></option>
94
 
95
+ <?php for($pos = 1; $pos < 5; $pos++) { ?>
96
  <option value="<?php echo $pos; ?>"<?php if($ssb_fblike == $pos) {
97
  ?>selected="selected"<?php
98
  } ?>> # <?php echo $pos; ?> </option>
107
  ?>selected="selected"<?php
108
  } ?>><?php _e('inactive', 'simplesocialbuttons'); ?></option>
109
 
110
+ <?php for($pos = 1; $pos < 5; $pos++) { ?>
111
  <option value="<?php echo $pos; ?>"<?php if($ssb_twitter == $pos) {
112
  ?>selected="selected"<?php
113
  } ?>> # <?php echo $pos; ?> </option>
115
  </select> &nbsp;
116
  <label for="ssb_twitter"><?php _e('Twitter share', 'simplesocialbuttons'); ?></label></p>
117
  <!-- /twitter -->
118
+
119
+ <!-- pinterest -->
120
+ <p><select name="ssb_pinterest" id="ssb_pinterest">
121
+ <option value=""<?php if(empty($ssb_pinterest) != false) {
122
+ ?>selected="selected"<?php
123
+ } ?>><?php _e('inactive', 'simplesocialbuttons'); ?></option>
124
+
125
+ <?php for($pos = 1; $pos < 5; $pos++) { ?>
126
+ <option value="<?php echo $pos; ?>"<?php if($ssb_pinterest == $pos) {
127
+ ?>selected="selected"<?php
128
+ } ?>> # <?php echo $pos; ?> </option>
129
+ <?php } ?>
130
+ </select> &nbsp;
131
+ <label for="ssb_pinterest"><?php _e('Pinterest - Pin It', 'simplesocialbuttons'); ?></label> <?php echo _e('(Will be visible only on post with thumbnail)');?></p>
132
+ <!-- /pinterest -->
133
 
134
  <p><label for="ssb_override_css"><input type="checkbox" name="ssb_override_css" id="ssb_override_css" value="1" <?php if($ssb_override_css) { echo 'checked="checked"'; } ?>/> <?php _e('Disable plugin CSS (only advanced users)'); ?></label></p>
135
  </div>
167
  <p><input type="checkbox" name="ssb_afterarchive" id="ssb_afterarchive" value="1" <?php if(!empty($ssb_afterarchive)) { ?>checked="checked"<?php } ?> /> <label for="ssb_afterarchive"><?php _e('After the content', 'simplesocialbuttons'); ?></label></p>
168
  </div>
169
  </div>
170
+
171
+ <div class="postbox">
172
+ <h3><?php _e('Additional features'); ?></h3>
173
+ <div class="inside">
174
+ <p><label for="ssb_twitterusername"><?php _e('Twitter @username', 'simplesocialbuttons'); ?>: <input type="text" name="ssb_twitterusername" id="ssb_twitterusername" value="<?php echo (isset($ssb_twitterusername)) ? $ssb_twitterusername : "";?>" /></label></p>
175
+ </div>
176
+ </div>
177
 
178
  <div class="submit">
179
  <input type="hidden" name="hiddenconfirm" value="Y" />
191
  <div class="inside">
192
  <p><?php _e('Talk to <a href="http://twitter.com/rabinek" target="_blank">@rabinek</a> on twitter for bugs or feature requests.', 'simplesocialbuttons'); ?></p>
193
  <p><strong><?php _e('Enjoy the plugin?', 'simplesocialbuttons'); ?></strong><br />
194
+ <?php _e('<a href="http://twitter.com/?status=I\'m using @rabinek WordPress Simple Social Buttons plugin - check it out! http://www.rabinek.pl/" target="_blank">Tweet about it</a> and consider donating.', 'simplesocialbuttons'); ?></p>
195
  <p><?php _e('<strong>Donate:</strong> A lot of hard work goes into building plugins - support your open source developers. Thank you!', 'simplesocialbuttons'); ?><br />
196
  <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
197
  <input type="hidden" name="cmd" value="_s-xclick">
208
  <div class="inside">
209
  <p><?php _e('Hi! My name is Paweł Rabinek (aka xradar). I\'m interesed in SEO and social media, PHP and Wordpress developement.', 'simplesocialbuttons'); ?></p>
210
  <ul>
211
+ <li><a href="http://www.seoptimer.com/" target="_blank"><?php _e('Free SEO Audit', 'simplesocialbuttons'); ?></a></li>
212
+ <li><a href="http://www.rabinek.pl/" target="_blank"><?php _e('My blog about SEO', 'simplesocialbuttons'); ?></a> <?php _e('[Polish]', 'simplesocialbuttons'); ?></li>
213
  <li><?php _e('Follow me on Twitter', 'simplesocialbuttons'); ?> <a href="http://www.twitter.com/rabinek" target="_blank">@rabinek</a></li>
214
  <li><a href="http://www.facebook.com/rabinek" target="_blank"><?php _e('Paweł Rabinek on Facebook', 'simplesocialbuttons'); ?></a></li>
215
  <li><a href="http://plus.google.com/114311287272342088386/" target="_blank"><?php _e('Paweł Rabinek on Google Plus', 'simplesocialbuttons'); ?></a></li>
218
  </div>
219
  </div>
220
 
 
 
 
 
 
 
 
 
 
 
 
221
  </div>
222
  </div>
223
  </div>