WP Socializer - Version 2.3

Version Description

  • Facebook like box, Google + badge widget is included.
  • LinkedIn buttons are added.
  • Google Buzz is removed.
  • Templates are updated.
  • Option to change the rel="nofollow" attribute.
  • Minor admin UI changes and improvements.
Download this release

Release Info

Developer vaakash
Plugin Icon 128x128 WP Socializer
Version 2.3
Comparing to
See all releases

Code changes from version 2.2 to 2.3

Thumbs.db DELETED
Binary file
admin/colorpicker/Thumbs.db DELETED
Binary file
admin/images/Thumbs.db DELETED
Binary file
admin/images/admin-sprites.png CHANGED
Binary file
admin/images/buttons/Thumbs.db DELETED
Binary file
admin/images/buttons/linkedin-bts.png ADDED
Binary file
admin/templates/images/Thumbs.db DELETED
Binary file
admin/templates/images/template_compact.png CHANGED
Binary file
admin/templates/images/template_compact_inv.png CHANGED
Binary file
admin/templates/images/template_large.png CHANGED
Binary file
admin/templates/images/template_large_inv.png CHANGED
Binary file
admin/templates/templates.xml CHANGED
@@ -1,11 +1,12 @@
1
  <items>
2
- <item name="Simple template - Compact" image="/images/template_compact.png" desc="" author="Aakash Chakravarthy" version="1.0" url="http://www.aakashweb.com">
3
  <settings>wpsr_retweet_type==compact;;
4
  wpsr_retweet_service==twitter;;
5
- wpsr_digg_type==DiggCompact;;
6
- wpsr_facebook_btstyle==standard;;
7
  wpsr_facebook_showfaces==0;;
8
- wpsr_facebook_width==300;;
 
 
9
 
10
  wpsr_template1_inhome==0;;
11
  wpsr_template1_insingle==1;;
@@ -32,16 +33,17 @@
32
  wpsr_template2_infeed==1;;
33
  wpsr_template2_abvcontent==0;;
34
  wpsr_template2_blwcontent==1;;
 
 
35
  </settings>
36
  <template1>
37
  <![CDATA[
38
- <div class="buttons-wrap">
 
39
  <span class="margin15 floatleft">{retweet-bt}</span>
40
- <span class="margin15 floatleft">{digg-bt}</span>
 
41
  <span class="margin15 floatleft">{stumbleupon-1}</span>
42
- <span class="margin15 floatleft">{reddit-1}</span>
43
- <span class="margin15 floatleft">{plusone-small}</span>
44
- <div class="clear-all padding5">{facebook-like}</div>
45
  </div>
46
  ]]>
47
  </template1>
@@ -55,13 +57,12 @@
55
 
56
  </item>
57
 
58
- <item name="Simple template - Large" image="/images/template_large.png" desc="" author="Aakash Chakravarthy" version="1.0" url="http://www.aakashweb.com">
59
  <settings>wpsr_retweet_type==normal;;
60
  wpsr_retweet_service==twitter;;
61
- wpsr_digg_type==DiggMedium;;
62
- wpsr_facebook_btstyle==standard;;
63
  wpsr_facebook_showfaces==0;;
64
- wpsr_facebook_width==300;;
65
 
66
  wpsr_template1_inhome==0;;
67
  wpsr_template1_insingle==1;;
@@ -76,6 +77,8 @@
76
  wpsr_template1_abvcontent==1;;
77
  wpsr_template1_blwcontent==0;;
78
 
 
 
79
  wpsr_template2_inhome==1;;
80
  wpsr_template2_insingle==1;;
81
  wpsr_template2_inpage==1;;
@@ -89,16 +92,17 @@
89
  wpsr_template2_abvcontent==0;;
90
  wpsr_template2_blwcontent==1;;
91
 
 
92
  </settings>
93
  <template1>
94
  <![CDATA[
95
- <div class="buttons-wrap">
 
96
  <span class="margin10 floatleft">{retweet-bt}</span>
97
- <span class="margin10 floatleft">{digg-bt}</span>
98
  <span class="margin10 floatleft">{stumbleupon-5}</span>
99
  <span class="margin10 floatleft">{reddit-2}</span>
100
- <span class="margin10 floatleft">{plusone-tall}</span>
101
- <div class="clear-all padding5">{facebook-like}</div>
102
  </div>
103
  ]]>
104
  </template1>
@@ -112,13 +116,12 @@
112
 
113
  </item>
114
 
115
- <item name="Simple template - Compact - Inverted" image="/images/template_compact_inv.png" desc="" author="Aakash Chakravarthy" version="1.0" url="http://www.aakashweb.com">
116
  <settings>wpsr_retweet_type==compact;;
117
  wpsr_retweet_service==twitter;;
118
- wpsr_digg_type==DiggCompact;;
119
- wpsr_facebook_btstyle==standard;;
120
  wpsr_facebook_showfaces==0;;
121
- wpsr_facebook_width==300;;
122
 
123
  wpsr_template1_inhome==1;;
124
  wpsr_template1_insingle==1;;
@@ -133,6 +136,8 @@
133
  wpsr_template1_abvcontent==1;;
134
  wpsr_template1_blwcontent==0;;
135
 
 
 
136
  wpsr_template2_inhome==0;;
137
  wpsr_template2_insingle==1;;
138
  wpsr_template2_inpage==1;;
@@ -145,6 +150,8 @@
145
  wpsr_template2_infeed==0;;
146
  wpsr_template2_abvcontent==0;;
147
  wpsr_template2_blwcontent==1;;
 
 
148
  </settings>
149
  <template1>
150
  <![CDATA[
@@ -155,26 +162,24 @@
155
  <template2>
156
  <![CDATA[
157
  <h3>Share and Enjoy</h3>
158
- <div class="buttons-wrap">
 
159
  <span class="margin15 floatleft">{retweet-bt}</span>
160
- <span class="margin15 floatleft">{digg-bt}</span>
 
161
  <span class="margin15 floatleft">{stumbleupon-1}</span>
162
- <span class="margin15 floatleft">{reddit-1}</span>
163
- <span class="margin15 floatleft">{plusone-small}</span>
164
- <div class="clear-all padding5">{facebook-like}</div>
165
  </div>
166
  ]]>
167
  </template2>
168
 
169
  </item>
170
 
171
- <item name="Simple template - Large - Inverted" image="/images/template_large_inv.png" desc="" author="Aakash Chakravarthy" version="1.0" url="http://www.aakashweb.com">
172
  <settings>wpsr_retweet_type==normal;;
173
  wpsr_retweet_service==twitter;;
174
- wpsr_digg_type==DiggMedium;;
175
- wpsr_facebook_btstyle==standard;;
176
  wpsr_facebook_showfaces==0;;
177
- wpsr_facebook_width==300;;
178
 
179
  wpsr_template1_inhome==1;;
180
  wpsr_template1_insingle==1;;
@@ -189,6 +194,8 @@
189
  wpsr_template1_abvcontent==1;;
190
  wpsr_template1_blwcontent==0;;
191
 
 
 
192
  wpsr_template2_inhome==0;;
193
  wpsr_template2_insingle==1;;
194
  wpsr_template2_inpage==1;;
@@ -201,6 +208,8 @@
201
  wpsr_template2_infeed==0;;
202
  wpsr_template2_abvcontent==0;;
203
  wpsr_template2_blwcontent==1;;
 
 
204
  </settings>
205
 
206
  <template1>
@@ -212,20 +221,20 @@
212
  <template2>
213
  <![CDATA[
214
  <h3>Share and Enjoy</h3>
215
- <div class="buttons-wrap">
 
216
  <span class="margin10 floatleft">{retweet-bt}</span>
217
- <span class="margin10 floatleft">{digg-bt}</span>
218
  <span class="margin10 floatleft">{stumbleupon-5}</span>
219
  <span class="margin10 floatleft">{reddit-2}</span>
220
- <span class="margin10 floatleft">{plusone-tall}</span>
221
- <div class="clear-all padding5">{facebook-like}</div>
222
  </div>
223
  ]]>
224
  </template2>
225
 
226
  </item>
227
 
228
- <item name="Addthis template - Compact" image="/images/template_addthis_compact.png" desc="" author="Aakash Chakravarthy" version="1.0" url="http://www.aakashweb.com">
229
  <settings>wpsr_addthis_sharecount==grouped;;
230
 
231
  wpsr_template1_inhome==1;;
@@ -241,6 +250,9 @@
241
  wpsr_template1_abvcontent==1;;
242
  wpsr_template1_blwcontent==0;;
243
 
 
 
 
244
  wpsr_template2_inhome==1;;
245
  wpsr_template2_insingle==1;;
246
  wpsr_template2_inpage==1;;
@@ -270,7 +282,7 @@
270
 
271
  </item>
272
 
273
- <item name="Addthis template - Large" image="/images/template_addthis_large.png" desc="" author="Aakash Chakravarthy" version="1.0" url="http://www.aakashweb.com">
274
  <settings>wpsr_addthis_sharecount==grouped;;
275
 
276
  wpsr_template1_inhome==1;;
@@ -286,6 +298,9 @@
286
  wpsr_template1_abvcontent==1;;
287
  wpsr_template1_blwcontent==0;;
288
 
 
 
 
289
  wpsr_template2_inhome==1;;
290
  wpsr_template2_insingle==1;;
291
  wpsr_template2_inpage==1;;
@@ -315,7 +330,7 @@
315
 
316
  </item>
317
 
318
- <item name="Sharethis template - Compact" image="/images/template_sharethis_compact.png" desc="" author="Aakash Chakravarthy" version="1.0" url="http://www.aakashweb.com">
319
  <settings>
320
  wpsr_template1_inhome==0;;
321
  wpsr_template1_insingle==1;;
@@ -330,6 +345,9 @@
330
  wpsr_template1_abvcontent==1;;
331
  wpsr_template1_blwcontent==0;;
332
 
 
 
 
333
  wpsr_template2_inhome==1;;
334
  wpsr_template2_insingle==1;;
335
  wpsr_template2_inpage==1;;
@@ -359,10 +377,9 @@
359
 
360
  </item>
361
 
362
- <item name="Sharethis template - Large" image="/images/template_sharethis_large.png" desc="" author="Aakash Chakravarthy" version="1.0" url="http://www.aakashweb.com">
363
 
364
  <settings>
365
-
366
  wpsr_template1_inhome==0;;
367
  wpsr_template1_insingle==1;;
368
  wpsr_template1_inpage==1;;
@@ -376,6 +393,9 @@
376
  wpsr_template1_abvcontent==1;;
377
  wpsr_template1_blwcontent==0;;
378
 
 
 
 
379
  wpsr_template2_inhome==1;;
380
  wpsr_template2_insingle==1;;
381
  wpsr_template2_inpage==1;;
@@ -405,7 +425,7 @@
405
 
406
  </item>
407
 
408
- <item name="Right float - Inside 1" image="/images/template_float_right_1.png" desc="" author="Aakash Chakravarthy" version="1.0" url="http://www.aakashweb.com">
409
  <settings>wpsr_socialbt_effect==jump;;
410
  wpsr_retweet_type==normal;;
411
  wpsr_retweet_service==twitter;;
@@ -427,6 +447,9 @@
427
  wpsr_template1_abvcontent==1;;
428
  wpsr_template1_blwcontent==0;;
429
 
 
 
 
430
  wpsr_template2_inhome==1;;
431
  wpsr_template2_insingle==1;;
432
  wpsr_template2_inpage==1;;
@@ -466,7 +489,7 @@
466
 
467
  </item>
468
 
469
- <item name="Left float - Fixed - Outside 1" image="/images/template_float_left_1.png" desc="" author="Aakash Chakravarthy" version="1.0" url="http://www.aakashweb.com">
470
  <settings>wpsr_socialbt_effect==jump;;
471
  wpsr_retweet_type==normal;;
472
  wpsr_retweet_service==twitter;;
@@ -488,6 +511,9 @@
488
  wpsr_template1_abvcontent==1;;
489
  wpsr_template1_blwcontent==0;;
490
 
 
 
 
491
  wpsr_template2_inhome==1;;
492
  wpsr_template2_insingle==1;;
493
  wpsr_template2_inpage==1;;
@@ -504,7 +530,7 @@
504
 
505
  <template1>
506
  <![CDATA[
507
- <span class="padding10 fixed-pos shadow border5" style="left:20px;width:55px">
508
  {retweet-bt}
509
  <br/><br/>
510
  {facebook-like}
@@ -524,7 +550,7 @@
524
 
525
  </item>
526
 
527
- <item name="Social buttons 16px - 1" image="/images/template_socialbts_16px_1.png" desc="" author="Aakash Chakravarthy" version="1.0" url="http://www.aakashweb.com">
528
  <settings>wpsr_socialbt_target==1;;
529
  wpsr_socialbt_loadcss==1;;
530
  wpsr_socialbt_effect==none;;
@@ -544,6 +570,9 @@
544
  wpsr_template1_abvcontent==1;;
545
  wpsr_template1_blwcontent==0;;
546
 
 
 
 
547
  wpsr_template2_inhome==1;;
548
  wpsr_template2_insingle==1;;
549
  wpsr_template2_inpage==1;;
@@ -572,7 +601,7 @@
572
 
573
  </item>
574
 
575
- <item name="Social buttons 32px - 1" image="/images/template_socialbts_32px_1.png" desc="" author="Aakash Chakravarthy" version="1.0" url="http://www.aakashweb.com">
576
  <settings>wpsr_socialbt_target==1;;
577
  wpsr_socialbt_loadcss==1;;
578
  wpsr_socialbt_effect==none;;
@@ -592,6 +621,9 @@
592
  wpsr_template1_abvcontent==1;;
593
  wpsr_template1_blwcontent==0;;
594
 
 
 
 
595
  wpsr_template2_inhome==1;;
596
  wpsr_template2_insingle==1;;
597
  wpsr_template2_inpage==1;;
1
  <items>
2
+ <item name="Simple template - Compact" image="/images/template_compact.png" desc="" author="Aakash Chakravarthy" version="2.0" url="http://www.aakashweb.com">
3
  <settings>wpsr_retweet_type==compact;;
4
  wpsr_retweet_service==twitter;;
5
+ wpsr_facebook_btstyle==button_count;;
 
6
  wpsr_facebook_showfaces==0;;
7
+ wpsr_facebook_width==90;;
8
+
9
+ wpsr_template1_addp==0;;
10
 
11
  wpsr_template1_inhome==0;;
12
  wpsr_template1_insingle==1;;
33
  wpsr_template2_infeed==1;;
34
  wpsr_template2_abvcontent==0;;
35
  wpsr_template2_blwcontent==1;;
36
+
37
+ wpsr_socialbt_loadcss==1;;
38
  </settings>
39
  <template1>
40
  <![CDATA[
41
+ <div class="buttons-wrap clearfix">
42
+ <span class="margin15 floatleft">{facebook-like}</span>
43
  <span class="margin15 floatleft">{retweet-bt}</span>
44
+ <span class="margin15 floatleft">{plusone-medium}</span>
45
+ <span class="margin15 floatleft">{linkedin-right}</span>
46
  <span class="margin15 floatleft">{stumbleupon-1}</span>
 
 
 
47
  </div>
48
  ]]>
49
  </template1>
57
 
58
  </item>
59
 
60
+ <item name="Simple template - Large" image="/images/template_large.png" desc="" author="Aakash Chakravarthy" version="2.0" url="http://www.aakashweb.com">
61
  <settings>wpsr_retweet_type==normal;;
62
  wpsr_retweet_service==twitter;;
63
+ wpsr_facebook_btstyle==box_count;;
 
64
  wpsr_facebook_showfaces==0;;
65
+ wpsr_facebook_width==50;;
66
 
67
  wpsr_template1_inhome==0;;
68
  wpsr_template1_insingle==1;;
77
  wpsr_template1_abvcontent==1;;
78
  wpsr_template1_blwcontent==0;;
79
 
80
+ wpsr_template1_addp==0;;
81
+
82
  wpsr_template2_inhome==1;;
83
  wpsr_template2_insingle==1;;
84
  wpsr_template2_inpage==1;;
92
  wpsr_template2_abvcontent==0;;
93
  wpsr_template2_blwcontent==1;;
94
 
95
+ wpsr_socialbt_loadcss==1;;
96
  </settings>
97
  <template1>
98
  <![CDATA[
99
+ <div class="buttons-wrap clearfix">
100
+ <span class="margin10 floatleft">{facebook-like}</span>
101
  <span class="margin10 floatleft">{retweet-bt}</span>
102
+ <span class="margin10 floatleft">{plusone-tall}</span>
103
  <span class="margin10 floatleft">{stumbleupon-5}</span>
104
  <span class="margin10 floatleft">{reddit-2}</span>
105
+ <span class="margin10 floatleft">{linkedin-top}</span>
 
106
  </div>
107
  ]]>
108
  </template1>
116
 
117
  </item>
118
 
119
+ <item name="Simple template - Compact - Inverted" image="/images/template_compact_inv.png" desc="" author="Aakash Chakravarthy" version="2.0" url="http://www.aakashweb.com">
120
  <settings>wpsr_retweet_type==compact;;
121
  wpsr_retweet_service==twitter;;
122
+ wpsr_facebook_btstyle==button_count;;
 
123
  wpsr_facebook_showfaces==0;;
124
+ wpsr_facebook_width==90;;
125
 
126
  wpsr_template1_inhome==1;;
127
  wpsr_template1_insingle==1;;
136
  wpsr_template1_abvcontent==1;;
137
  wpsr_template1_blwcontent==0;;
138
 
139
+ wpsr_template1_addp==0;;
140
+
141
  wpsr_template2_inhome==0;;
142
  wpsr_template2_insingle==1;;
143
  wpsr_template2_inpage==1;;
150
  wpsr_template2_infeed==0;;
151
  wpsr_template2_abvcontent==0;;
152
  wpsr_template2_blwcontent==1;;
153
+
154
+ wpsr_socialbt_loadcss==1;;
155
  </settings>
156
  <template1>
157
  <![CDATA[
162
  <template2>
163
  <![CDATA[
164
  <h3>Share and Enjoy</h3>
165
+ <div class="buttons-wrap clearfix">
166
+ <span class="margin15 floatleft">{facebook-like}</span>
167
  <span class="margin15 floatleft">{retweet-bt}</span>
168
+ <span class="margin15 floatleft">{plusone-medium}</span>
169
+ <span class="margin15 floatleft">{linkedin-right}</span>
170
  <span class="margin15 floatleft">{stumbleupon-1}</span>
 
 
 
171
  </div>
172
  ]]>
173
  </template2>
174
 
175
  </item>
176
 
177
+ <item name="Simple template - Large - Inverted" image="/images/template_large_inv.png" desc="" author="Aakash Chakravarthy" version="2.0" url="http://www.aakashweb.com">
178
  <settings>wpsr_retweet_type==normal;;
179
  wpsr_retweet_service==twitter;;
180
+ wpsr_facebook_btstyle==box_count;;
 
181
  wpsr_facebook_showfaces==0;;
182
+ wpsr_facebook_width==50;;
183
 
184
  wpsr_template1_inhome==1;;
185
  wpsr_template1_insingle==1;;
194
  wpsr_template1_abvcontent==1;;
195
  wpsr_template1_blwcontent==0;;
196
 
197
+ wpsr_template1_addp==0;;
198
+
199
  wpsr_template2_inhome==0;;
200
  wpsr_template2_insingle==1;;
201
  wpsr_template2_inpage==1;;
208
  wpsr_template2_infeed==0;;
209
  wpsr_template2_abvcontent==0;;
210
  wpsr_template2_blwcontent==1;;
211
+
212
+ wpsr_socialbt_loadcss==1;;
213
  </settings>
214
 
215
  <template1>
221
  <template2>
222
  <![CDATA[
223
  <h3>Share and Enjoy</h3>
224
+ <div class="buttons-wrap clearfix">
225
+ <span class="margin10 floatleft">{facebook-like}</span>
226
  <span class="margin10 floatleft">{retweet-bt}</span>
227
+ <span class="margin10 floatleft">{plusone-tall}</span>
228
  <span class="margin10 floatleft">{stumbleupon-5}</span>
229
  <span class="margin10 floatleft">{reddit-2}</span>
230
+ <span class="margin10 floatleft">{linkedin-top}</span>
 
231
  </div>
232
  ]]>
233
  </template2>
234
 
235
  </item>
236
 
237
+ <item name="Addthis template - Compact" image="/images/template_addthis_compact.png" desc="" author="Aakash Chakravarthy" version="1.5" url="http://www.aakashweb.com">
238
  <settings>wpsr_addthis_sharecount==grouped;;
239
 
240
  wpsr_template1_inhome==1;;
250
  wpsr_template1_abvcontent==1;;
251
  wpsr_template1_blwcontent==0;;
252
 
253
+ wpsr_template1_addp==0;;
254
+ wpsr_socialbt_loadcss==1;;
255
+
256
  wpsr_template2_inhome==1;;
257
  wpsr_template2_insingle==1;;
258
  wpsr_template2_inpage==1;;
282
 
283
  </item>
284
 
285
+ <item name="Addthis template - Large" image="/images/template_addthis_large.png" desc="" author="Aakash Chakravarthy" version="1.5" url="http://www.aakashweb.com">
286
  <settings>wpsr_addthis_sharecount==grouped;;
287
 
288
  wpsr_template1_inhome==1;;
298
  wpsr_template1_abvcontent==1;;
299
  wpsr_template1_blwcontent==0;;
300
 
301
+ wpsr_template1_addp==0;;
302
+ wpsr_socialbt_loadcss==1;;
303
+
304
  wpsr_template2_inhome==1;;
305
  wpsr_template2_insingle==1;;
306
  wpsr_template2_inpage==1;;
330
 
331
  </item>
332
 
333
+ <item name="Sharethis template - Compact" image="/images/template_sharethis_compact.png" desc="" author="Aakash Chakravarthy" version="1.5" url="http://www.aakashweb.com">
334
  <settings>
335
  wpsr_template1_inhome==0;;
336
  wpsr_template1_insingle==1;;
345
  wpsr_template1_abvcontent==1;;
346
  wpsr_template1_blwcontent==0;;
347
 
348
+ wpsr_template1_addp==0;;
349
+ wpsr_socialbt_loadcss==1;;
350
+
351
  wpsr_template2_inhome==1;;
352
  wpsr_template2_insingle==1;;
353
  wpsr_template2_inpage==1;;
377
 
378
  </item>
379
 
380
+ <item name="Sharethis template - Large" image="/images/template_sharethis_large.png" desc="" author="Aakash Chakravarthy" version="1.5" url="http://www.aakashweb.com">
381
 
382
  <settings>
 
383
  wpsr_template1_inhome==0;;
384
  wpsr_template1_insingle==1;;
385
  wpsr_template1_inpage==1;;
393
  wpsr_template1_abvcontent==1;;
394
  wpsr_template1_blwcontent==0;;
395
 
396
+ wpsr_template1_addp==0;;
397
+ wpsr_socialbt_loadcss==1;;
398
+
399
  wpsr_template2_inhome==1;;
400
  wpsr_template2_insingle==1;;
401
  wpsr_template2_inpage==1;;
425
 
426
  </item>
427
 
428
+ <item name="Right float - Inside 1" image="/images/template_float_right_1.png" desc="" author="Aakash Chakravarthy" version="1.5" url="http://www.aakashweb.com">
429
  <settings>wpsr_socialbt_effect==jump;;
430
  wpsr_retweet_type==normal;;
431
  wpsr_retweet_service==twitter;;
447
  wpsr_template1_abvcontent==1;;
448
  wpsr_template1_blwcontent==0;;
449
 
450
+ wpsr_template1_addp==0;;
451
+ wpsr_socialbt_loadcss==1;;
452
+
453
  wpsr_template2_inhome==1;;
454
  wpsr_template2_insingle==1;;
455
  wpsr_template2_inpage==1;;
489
 
490
  </item>
491
 
492
+ <item name="Left float - Fixed - Outside 1" image="/images/template_float_left_1.png" desc="" author="Aakash Chakravarthy" version="1.5" url="http://www.aakashweb.com">
493
  <settings>wpsr_socialbt_effect==jump;;
494
  wpsr_retweet_type==normal;;
495
  wpsr_retweet_service==twitter;;
511
  wpsr_template1_abvcontent==1;;
512
  wpsr_template1_blwcontent==0;;
513
 
514
+ wpsr_template1_addp==0;;
515
+ wpsr_socialbt_loadcss==1;;
516
+
517
  wpsr_template2_inhome==1;;
518
  wpsr_template2_insingle==1;;
519
  wpsr_template2_inpage==1;;
530
 
531
  <template1>
532
  <![CDATA[
533
+ <span class="padding10 fixed-pos shadow border5" style="top:25%;left:20px;width:55px">
534
  {retweet-bt}
535
  <br/><br/>
536
  {facebook-like}
550
 
551
  </item>
552
 
553
+ <item name="Social buttons 16px - 1" image="/images/template_socialbts_16px_1.png" desc="" author="Aakash Chakravarthy" version="1.5" url="http://www.aakashweb.com">
554
  <settings>wpsr_socialbt_target==1;;
555
  wpsr_socialbt_loadcss==1;;
556
  wpsr_socialbt_effect==none;;
570
  wpsr_template1_abvcontent==1;;
571
  wpsr_template1_blwcontent==0;;
572
 
573
+ wpsr_template1_addp==0;;
574
+ wpsr_socialbt_loadcss==1;;
575
+
576
  wpsr_template2_inhome==1;;
577
  wpsr_template2_insingle==1;;
578
  wpsr_template2_inpage==1;;
601
 
602
  </item>
603
 
604
+ <item name="Social buttons 32px - 1" image="/images/template_socialbts_32px_1.png" desc="" author="Aakash Chakravarthy" version="1.5" url="http://www.aakashweb.com">
605
  <settings>wpsr_socialbt_target==1;;
606
  wpsr_socialbt_loadcss==1;;
607
  wpsr_socialbt_effect==none;;
621
  wpsr_template1_abvcontent==1;;
622
  wpsr_template1_blwcontent==0;;
623
 
624
+ wpsr_template1_addp==0;;
625
+ wpsr_socialbt_loadcss==1;;
626
+
627
  wpsr_template2_inhome==1;;
628
  wpsr_template2_insingle==1;;
629
  wpsr_template2_inpage==1;;
admin/tinymce/editor_plugin.js CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * WP Socializer shortcode inserting javascript in TinyMCE editor
3
  * http://www.aakashweb.com
4
- * v1.1
5
  * Added since WP Socializer v2.0
6
  */
7
  function wpsr_insert_shortcode(type, edparam) {
@@ -19,17 +19,17 @@ function wpsr_insert_shortcode(type, edparam) {
19
  case '4':
20
  btncode = "retweet"; break;
21
  case '5':
22
- btncode = "buzz"; break;
23
- case '6':
24
  btncode = "plusone"; break;
25
- case '7':
26
  btncode = "digg"; break;
27
- case '8':
28
  btncode = "facebook"; break;
29
- case '9':
30
  btncode = "stumbleupon"; break;
31
- case '10':
32
  btncode = "reddit"; break;
 
 
33
  default:
34
  return '';
35
  }
@@ -67,7 +67,7 @@ function wpsr_insert_shortcode(type, edparam) {
67
  author : 'Aakash Chakravarthy',
68
  authorurl : 'http://www.aakashweb.com/',
69
  infourl : 'http://www.aakashweb.com/',
70
- version : '1.1'
71
  };
72
  }
73
 
1
  /*
2
  * WP Socializer shortcode inserting javascript in TinyMCE editor
3
  * http://www.aakashweb.com
4
+ * v1.2
5
  * Added since WP Socializer v2.0
6
  */
7
  function wpsr_insert_shortcode(type, edparam) {
19
  case '4':
20
  btncode = "retweet"; break;
21
  case '5':
 
 
22
  btncode = "plusone"; break;
23
+ case '6':
24
  btncode = "digg"; break;
25
+ case '7':
26
  btncode = "facebook"; break;
27
+ case '8':
28
  btncode = "stumbleupon"; break;
29
+ case '9':
30
  btncode = "reddit"; break;
31
+ case '10':
32
+ btncode = "linkedin"; break;
33
  default:
34
  return '';
35
  }
67
  author : 'Aakash Chakravarthy',
68
  authorurl : 'http://www.aakashweb.com/',
69
  infourl : 'http://www.aakashweb.com/',
70
+ version : '1.2'
71
  };
72
  }
73
 
admin/wpsr-admin-css.css CHANGED
@@ -279,15 +279,18 @@
279
  background: url(images/footer-bg.png) repeat-x top;
280
  border-top: 1px solid #D4D4D4;
281
  }
 
 
 
282
  .credits{
283
- font-size: 10px;
284
- margin: 10px 0px 0px;
285
- background: url(images/aw.png) no-repeat;
286
- padding-left: 23px;
287
  }
288
  .credits a{
289
  color: #333333;
290
  text-decoration: none;
 
 
291
  }
292
  .templateInfo{
293
  margin: -11px 0px 10px;
@@ -320,7 +323,7 @@
320
  -moz-box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.5);
321
  box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.09);
322
  }
323
- .promoBox .donateBox{
324
  width: 180px;
325
  background: url(images/donateBg.png);
326
  border: 1px solid #FFEA97;
@@ -337,7 +340,7 @@
337
  }
338
  .promoBox .donateBox .txt2{
339
  color: #333333;
340
- }
341
  .promoBox .donatePopup{
342
  display: none;
343
  font-family: Arial, Helvetica, sans-serif;
@@ -454,21 +457,22 @@
454
  }
455
 
456
  .addthisIcon{ background-position: 0 0; }
457
- .buzzIcon{ background-position: 0 -66px; }
458
- .customIcon{ background-position: 0 -132px; }
459
- .documentationIcon{ background-position: 0 -198px; }
460
- .facebookIcon{ background-position: 0 -264px; }
461
  .helpIcon{ background-position: 0 -330px; }
462
- .minusIcon{ background-position: 0 -396px; }
463
- .oneclickIcon{ background-position: 0 -462px; }
464
- .placementIcon{ background-position: 0 -528px; }
465
- .redditIcon{ background-position: 0 -594px; }
466
- .retweetIcon{ background-position: 0 -660px; }
467
- .settingsIcon{ background-position: 0 -726px; }
468
- .sharethisIcon{ background-position: 0 -792px; }
469
- .socialButtons{ background-position: 0 -858px; }
470
- .stumbleuponIcon{ background-position: 0 -924px; }
471
- .supportIcon{ background-position: 0 -990px; }
 
472
 
473
  .note{
474
  background: #FFFBEC;
279
  background: url(images/footer-bg.png) repeat-x top;
280
  border-top: 1px solid #D4D4D4;
281
  }
282
+ .footer .donateLink{
283
+ margin-right: 25px;
284
+ }
285
  .credits{
286
+ font-size: 13px;
287
+ margin: 20px 0px 0px;
 
 
288
  }
289
  .credits a{
290
  color: #333333;
291
  text-decoration: none;
292
+ background: url(images/aw.png) no-repeat;
293
+ padding-left: 23px;
294
  }
295
  .templateInfo{
296
  margin: -11px 0px 10px;
323
  -moz-box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.5);
324
  box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.09);
325
  }
326
+ /*.promoBox .donateBox{
327
  width: 180px;
328
  background: url(images/donateBg.png);
329
  border: 1px solid #FFEA97;
340
  }
341
  .promoBox .donateBox .txt2{
342
  color: #333333;
343
+ }*/
344
  .promoBox .donatePopup{
345
  display: none;
346
  font-family: Arial, Helvetica, sans-serif;
457
  }
458
 
459
  .addthisIcon{ background-position: 0 0; }
460
+ .customIcon{ background-position: 0 -66px; }
461
+ .documentationIcon{ background-position: 0 -132px; }
462
+ .facebookIcon{ background-position: 0 -198px; }
463
+ .googleplusIcon{ background-position: 0 -264px; }
464
  .helpIcon{ background-position: 0 -330px; }
465
+ .linkedinIcon{ background-position: 0 -396px; }
466
+ .minusIcon{ background-position: 0 -462px; }
467
+ .oneclickIcon{ background-position: 0 -528px; }
468
+ .placementIcon{ background-position: 0 -594px; }
469
+ .redditIcon{ background-position: 0 -660px; }
470
+ .retweetIcon{ background-position: 0 -726px; }
471
+ .settingsIcon{ background-position: 0 -792px; }
472
+ .sharethisIcon{ background-position: 0 -858px; }
473
+ .socialButtons{ background-position: 0 -924px; }
474
+ .stumbleuponIcon{ background-position: 0 -990px; }
475
+ .supportIcon{ background-position: 0 -1056px; }
476
 
477
  .note{
478
  background: #FFFBEC;
admin/wpsr-admin-js.js CHANGED
@@ -13,13 +13,13 @@ $j(document).ready(function(){
13
  });
14
 
15
  // For admin menu working
16
- $j('a[href="admin.php?page=wp_socializer#tab-9"], a[href="#tab-9"]').live('click', function(e){
17
  e.preventDefault();
18
- tabs.tabs('select', 8);
19
  });
20
 
21
- $j('a[href="admin.php?page=wp_socializer#tab-10"]').click(function(){
22
- tabs.tabs('select', 9);
23
  });
24
 
25
  // Color picker Initializements
13
  });
14
 
15
  // For admin menu working
16
+ $j('a[href="admin.php?page=wp_socializer#tab-8"], a[href="#tab-8"]').live('click', function(e){
17
  e.preventDefault();
18
+ tabs.tabs('select', 7);
19
  });
20
 
21
+ $j('a[href="admin.php?page=wp_socializer#tab-9"]').click(function(){
22
+ tabs.tabs('select', 8);
23
  });
24
 
25
  // Color picker Initializements
admin/wpsr-admin-other.php CHANGED
@@ -15,20 +15,7 @@ function wpsr_check_hja(){
15
  }
16
 
17
  function wpsr_admin_page_other(){
18
-
19
- $wpsr_shortcodes_list = array(
20
- 'Social buttons' => '[wpsr_socialbts]',
21
- 'Addthis' => '[wpsr_addthis]',
22
- 'Sharethis' => '[wpsr_sharethis]',
23
- 'Retweet' => '[wpsr_retweet]',
24
- 'Google Buzz' => '[wpsr_buzz]',
25
- 'Google +1' => '[wpsr_plusone]',
26
- 'Digg' => '[wpsr_digg]',
27
- 'Facebook' => '[wpsr_facebook]',
28
- 'StumbleUpon' => '[wpsr_stumbleupon]',
29
- 'Reddit' => '[wpsr_reddit]'
30
- );
31
-
32
  ?>
33
 
34
  <div class="wrap">
@@ -89,12 +76,11 @@ function wpsr_admin_page_other(){
89
 
90
  <hr />
91
 
92
- <p class="smallText hjaNote"><strong><?php _e('Note:', 'wpsr'); ?></strong> <?php _e('HTML Javascript Adder is a wordpress plugin for inserting HTML, Javascripts in widgets with more than 50,000 downloads. This is from the same author of this plugin. The latest version of HJA can insert WP Socializer buttons in widgets.', 'wpsr'); ?></p>
93
  <a name="note" id="note"></a>
94
  </div>
95
 
96
  </div>
97
  <?php
98
  }
99
-
100
  ?>
15
  }
16
 
17
  function wpsr_admin_page_other(){
18
+ global $wpsr_shortcodes_list;
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  ?>
20
 
21
  <div class="wrap">
76
 
77
  <hr />
78
 
79
+ <p class="smallText hjaNote"><strong><?php _e('Note:', 'wpsr'); ?></strong> <?php _e('HTML Javascript Adder is a wordpress plugin for inserting HTML, Javascripts in widgets with more than 60,000 downloads. This is from the same author of this plugin. The latest version of HJA can insert WP Socializer buttons in widgets.', 'wpsr'); ?></p>
80
  <a name="note" id="note"></a>
81
  </div>
82
 
83
  </div>
84
  <?php
85
  }
 
86
  ?>
admin/wpsr-admin.php CHANGED
@@ -96,14 +96,12 @@ echo
96
  </li>
97
 
98
  <li class="parentLi btn">
99
- <span class="admSprites buzzIcon"></span>Google
100
  <ul bxid="' . $id . '">
101
  <li openTag="{plusone-small}">+1 - Small</li>
102
  <li openTag="{plusone-medium}">+1 - Medium</li>
103
  <li openTag="{plusone-standard}">+1 - Standard</li>
104
  <li openTag="{plusone-tall}">+1 - Tall</li>
105
- <li openTag="{buzz-post}">Google buzz Post button</li>
106
- <li openTag="{buzz-follow}">Google buzz Follow button</li>
107
  </ul>
108
  </li>
109
 
@@ -134,6 +132,15 @@ echo
134
  </ul>
135
  </li>
136
 
 
 
 
 
 
 
 
 
 
137
  <li class="parentLi btn">
138
  <span class="admSprites customIcon"></span>Other buttons
139
  <ul bxid="' . $id . '">
@@ -179,11 +186,11 @@ echo
179
  ## Default values
180
  function wpsr_reset_values(){
181
  $wpsr_temp1_def = '<div class="buttons-wrap clearfix">
182
- <span class="margin15 floatleft">{retweet-bt}</span>
183
  <span class="margin15 floatleft">{facebook-like}</span>
 
 
 
184
  <span class="margin15 floatleft">{stumbleupon-1}</span>
185
- <span class="margin15 floatleft">{reddit-1}</span>
186
- <span class="margin15 floatleft">{plusone-small}</span>
187
  </div>';
188
 
189
  $wpsr_temp2_def = '<h2>' . __('Share and Enjoy' ,'wpsr') . '</h2>
@@ -216,15 +223,6 @@ function wpsr_reset_values(){
216
 
217
  update_option("wpsr_sharethis_data", $wpsr_sharethis);
218
 
219
- ## Buzz Defaults
220
- $wpsr_buzz['style'] = 'count';
221
- $wpsr_buzz['size'] = 'normal';
222
- $wpsr_buzz['language'] = 'en';
223
- $wpsr_buzz['profile'] = 'http://profiles.google.com/me';
224
- $wpsr_buzz['followbttext'] = 'Follow Me';
225
-
226
- update_option("wpsr_buzz_data", $wpsr_buzz);
227
-
228
  ## Retweet Defaults
229
  $wpsr_retweet['username'] = '';
230
  $wpsr_retweet['type'] = 'compact';
@@ -254,9 +252,10 @@ function wpsr_reset_values(){
254
  update_option("wpsr_facebook_data", $wpsr_facebook);
255
 
256
  ## Social Button Defaults
257
- $wpsr_socialbt['selected16px'] = 'facebook,twitter,delicious,digg,googlebuzz,stumbleupon,addtofavorites,email,rss';
258
- $wpsr_socialbt['selected32px'] = 'facebook,twitter,delicious,digg,googlebuzz,stumbleupon,addtofavorites,email,rss';
259
  $wpsr_socialbt['target'] = 0;
 
260
  $wpsr_socialbt['loadcss'] = 1;
261
  $wpsr_socialbt['effect'] = 'opacity';
262
  $wpsr_socialbt['label'] = 0;
@@ -330,8 +329,8 @@ function wpsr_show_admin(){
330
 
331
  ## Fix version 1.0 settings
332
  function wpsr_version1_fix(){
333
- $wpsr_socialbt['selected16px'] = 'facebook,twitter,delicious,digg,googlebuzz,stumbleupon,addtofavorites,email,rss';
334
- $wpsr_socialbt['selected32px'] = 'facebook,twitter,delicious,digg,googlebuzz,stumbleupon,addtofavorites,email,rss';
335
  $wpsr_socialbt['imgpath16px'] = WPSR_SOCIALBT_IMGPATH . '16/';
336
  $wpsr_socialbt['imgpath32px'] = WPSR_SOCIALBT_IMGPATH . '32/';
337
  update_option('wpsr_socialbt_data', $wpsr_socialbt);
@@ -343,12 +342,11 @@ function wpsr_admin_page(){
343
  $wpsr_updated = false;
344
 
345
  ## Get the global variables
346
- global $wpsr_socialsites_list, $wpsr_addthis_lang_array, $wpsr_buzz_lang_array, $wpsr_button_code_list, $wpsr_donate_link;
347
 
348
  ## Assign the defaults for new users
349
  $wpsr_addthis = get_option('wpsr_addthis_data');
350
  $wpsr_sharethis = get_option('wpsr_sharethis_data');
351
- $wpsr_buzz = get_option('wpsr_buzz_data');
352
  $wpsr_retweet = get_option('wpsr_retweet_data');
353
  $wpsr_digg = get_option('wpsr_digg_data');
354
  $wpsr_facebook = get_option('wpsr_facebook_data');
@@ -358,7 +356,7 @@ function wpsr_admin_page(){
358
  $wpsr_template2 = get_option('wpsr_template2_data');
359
  $wpsr_settings = get_option('wpsr_settings_data');
360
 
361
- if(empty($wpsr_addthis) && empty($wpsr_sharethis) && empty($wpsr_digg) && empty($wpsr_retweet) && empty($wpsr_digg) && empty($wpsr_buzz) && empty($wpsr_facebook) && empty($wpsr_template1) && empty($wpsr_template2) && empty($wpsr_settings) && empty($wpsr_custom)){
362
  wpsr_reset_values();
363
  }
364
 
@@ -405,16 +403,6 @@ function wpsr_admin_page(){
405
 
406
  update_option("wpsr_sharethis_data", $wpsr_sharethis);
407
 
408
- ## Buzz Options
409
- $wpsr_buzz['style'] = $_POST['wpsr_buzz_style'];
410
- $wpsr_buzz['size'] = $_POST['wpsr_buzz_size'];
411
- $wpsr_buzz['language'] = $_POST['wpsr_buzz_lang'];
412
- $wpsr_buzz['page'] = $_POST['wpsr_buzz_page'];
413
- $wpsr_buzz['profile'] = $_POST['wpsr_buzz_profile'];
414
- $wpsr_buzz['followbttext'] = $_POST['wpsr_buzz_followbttext'];
415
-
416
- update_option("wpsr_buzz_data", $wpsr_buzz);
417
-
418
  ## Retweet Options
419
  $wpsr_retweet['username'] = $_POST['wpsr_retweet_username'];
420
  $wpsr_retweet['type'] = $_POST['wpsr_retweet_type'];
@@ -445,6 +433,7 @@ function wpsr_admin_page(){
445
 
446
  ## Social Button Options
447
  $wpsr_socialbt['target'] = $_POST['wpsr_socialbt_target'];
 
448
  $wpsr_socialbt['loadcss'] = $_POST['wpsr_socialbt_loadcss'];
449
  $wpsr_socialbt['effect'] = $_POST['wpsr_socialbt_effect'];
450
  $wpsr_socialbt['label'] = $_POST['wpsr_socialbt_label'];
@@ -559,17 +548,6 @@ function wpsr_admin_page(){
559
  $wpsr_sharethis_pubkey = $wpsr_sharethis['pubkey'];
560
  $wpsr_sharethis_addp = $wpsr_sharethis['addp'];
561
 
562
- ## Buzz Options
563
- $wpsr_buzz = get_option('wpsr_buzz_data');
564
-
565
- $wpsr_buzz_style = $wpsr_buzz['style'];
566
- $wpsr_buzz_size = $wpsr_buzz['size'];
567
- $wpsr_buzz_lang = $wpsr_buzz['language'];
568
- $wpsr_buzz_page = $wpsr_buzz['page'];
569
- $wpsr_buzz_custompage = $wpsr_buzz['custompage'];
570
- $wpsr_buzz_profile = $wpsr_buzz['profile'];
571
- $wpsr_buzz_followbttext = $wpsr_buzz['followbttext'];
572
-
573
  ## Retweet Options
574
  $wpsr_retweet = get_option('wpsr_retweet_data');
575
 
@@ -606,6 +584,7 @@ function wpsr_admin_page(){
606
  $wpsr_socialbt = get_option('wpsr_socialbt_data');
607
 
608
  $wpsr_socialbt_target = $wpsr_socialbt['target'];
 
609
  $wpsr_socialbt_loadcss = $wpsr_socialbt['loadcss'];
610
  $wpsr_socialbt_effect = $wpsr_socialbt['effect'];
611
  $wpsr_socialbt_label = $wpsr_socialbt['label'];
@@ -694,10 +673,7 @@ function wpsr_admin_page(){
694
  </div>
695
 
696
  <div class="promos donateBox">
697
- <div class="wrap">
698
- <div class="txt1"><a href="<?php echo $wpsr_donate_link; ?>" target="_blank"><?php _e('Donate', 'wpsr'); ?></a></div>
699
- <div class="txt2"><a href="<?php echo $wpsr_donate_link; ?>" target="_blank"><?php _e('and Support', 'wpsr'); ?></a></div>
700
- </div>
701
  </div>
702
 
703
  <div class="donatePopup">
@@ -732,14 +708,13 @@ function wpsr_admin_page(){
732
  <li><a href="#tab-2"><span class='admSprites socialButtons'></span>Social Buttons</a></li>
733
  <li><a href="#tab-3"><span class='admSprites addthisIcon'></span>Addthis</a></li>
734
  <li><a href="#tab-4"><span class='admSprites sharethisIcon'></span>Sharethis</a></li>
735
- <li><a href="#tab-5"><span class='admSprites buzzIcon'></span>Google Buzz</a></li>
736
- <li><a href="#tab-6"><span class='admSprites retweetIcon'></span>Retweet &amp; Digg</a></li>
737
- <li><a href="#tab-7"><span class='admSprites facebookIcon'></span>Facebook</a></li>
738
- <li><a href="#tab-8"><span class='admSprites customIcon'></span>Custom</a></li>
739
- <li class="placementTab"><a href="#tab-9"><span class='admSprites placementIcon'></span>Placement<br/>
740
  <small class="info">Place buttons in this tab</small></a>
741
  </li>
742
- <li><a href="#tab-10"><span class='admSprites settingsIcon'></span><?php _e('Settings', 'wpsr'); ?></a></li>
743
 
744
  <h5 class="tabGroup">Links</h5>
745
 
@@ -768,7 +743,7 @@ function wpsr_admin_page(){
768
  <h4>One click setup</h4>
769
  <div class="templatesList">
770
  <img src="<?php echo WPSR_ADMIN_URL; ?>images/one-click-header.jpg" class="imgHead"/>
771
- <p class="smallText"><?php _e('Select a template and click apply.', 'wpsr'); ?><br/>Selecting the below template will overwrite the current template you are using.</p>
772
  </div>
773
  <a href="http://www.aakashweb.com/docs/wp-socializer-docs/creating-a-custom-template/" target="_blank"><?php _e('Create a template', 'wpsr'); ?></a> | <a href="http://www.aakashweb.com/docs/wp-socializer-docs/creating-a-custom-template/" target="_blank"><?php _e('Submit a template', 'wpsr'); ?></a>
774
  </div>
@@ -853,6 +828,15 @@ function wpsr_admin_page(){
853
  <option <?php echo $wpsr_socialbt_target == '0' ? ' selected="selected"' : ''; ?> value="0"><?php _e('No', 'wpsr'); ?></option>
854
  </select></td>
855
  </tr>
 
 
 
 
 
 
 
 
 
856
  <tr>
857
  <td height="35"><?php _e('Image on Hover effect', 'wpsr'); ?> </td>
858
  <td><select id="wpsr_socialbt_effect" name="wpsr_socialbt_effect">
@@ -1060,54 +1044,8 @@ function wpsr_admin_page(){
1060
 
1061
  </div>
1062
 
1063
- <!-- GOOGLE BUZZ PAGE -->
1064
- <div id="tab-5" class="tabContent">
1065
- <p class="notice"><strong>Note:</strong> Google Buzz will shutdown in a Week. <a href="http://googleblog.blogspot.com/2011/10/fall-sweep.html" target="_blank">Source</a></p>
1066
-
1067
- <h4><?php _e('Post to Buzz button', 'wpsr'); ?><?php wpsr_addcodeico('{buzz-post}'); ?></h4>
1068
- <div class="section">
1069
- <table width="100%" height="181" border="0">
1070
- <tr>
1071
- <td width="29%" height="21"><?php _e('Style', 'wpsr'); ?></td>
1072
- <td width="71%" rowspan="2">
1073
- <label><input name="wpsr_buzz_style" id="wpsr_buzz_style" type="radio" value="count" <?php echo $wpsr_buzz_style == 'count' ? ' checked="checked"' : ''; ?> /> <?php _e('Show Button and counter', 'wpsr'); ?></label><br />
1074
- <label><input name="wpsr_buzz_style" id="wpsr_buzz_style" type="radio" value="button" <?php echo $wpsr_buzz_style == 'button' ? ' checked="checked"' : ''; ?> /> <?php _e('Show Button only', 'wpsr'); ?></label><br />
1075
- <label><input name="wpsr_buzz_style" id="wpsr_buzz_style" type="radio" value="link" <?php echo $wpsr_buzz_style == 'link' ? ' checked="checked"' : ''; ?> /> <?php _e('Show Link only', 'wpsr'); ?></label> </td>
1076
- </tr>
1077
- <tr>
1078
- <td height="53">&nbsp;</td>
1079
- </tr>
1080
- <tr>
1081
- <td height="63"><?php _e('Size', 'wpsr'); ?><br /><span class="smallText"><?php _e('Not for link', 'wpsr'); ?></span></td>
1082
- <td><label><input name="wpsr_buzz_size" id="wpsr_buzz_size" type="radio" value="normal" <?php echo $wpsr_buzz_size == 'normal' ? ' checked="checked"' : ''; ?> /> <?php _e('Normal', 'wpsr'); ?></label>
1083
- <br />
1084
- <label><input name="wpsr_buzz_size" id="wpsr_buzz_size" type="radio" value="small" <?php echo $wpsr_buzz_size == 'small' ? ' checked="checked"' : ''; ?> /> <?php _e('Small', 'wpsr'); ?></label></td>
1085
- </tr>
1086
- <tr>
1087
- <td height="34"><label for="wpsr_buzz_lang"><?php _e('Language', 'wpsr'); ?></label></td>
1088
- <td><select name="wpsr_buzz_lang" id="wpsr_buzz_lang"><?php foreach ($wpsr_buzz_lang_array as $lang=>$name){echo "<option value=\"$lang\"". ($lang == $wpsr_buzz_lang ? " selected":"") . ">$name</option>";}?></select></td>
1089
- </tr>
1090
- </table>
1091
- </div>
1092
-
1093
- <h4><?php _e('Follow on Buzz button', 'wpsr'); ?><?php wpsr_addcodeico('{buzz-follow}'); ?></h4>
1094
- <div class="section">
1095
- <table width="100%" border="0">
1096
- <tr>
1097
- <td width="30%"><label for="wpsr_buzz_profile"><?php _e('Profile URL', 'wpsr'); ?></label></td>
1098
- <td width="70%"><input name="wpsr_buzz_profile" id="wpsr_buzz_profile" type="text" value="<?php echo $wpsr_buzz_profile ?>" size="35"/><br /><span class="smallText"><?php _e('Don\'t know your profile URL?', 'wpsr'); ?> <a href="http://profiles.google.com/me" target="_blank"><?php _e('Click here', 'wpsr'); ?></a></span></td>
1099
- </tr>
1100
- <tr>
1101
- <td height="36"><label for="wpsr_buzz_followbttext"><?php _e('Button Text', 'wpsr'); ?></label></td>
1102
- <td><input name="wpsr_buzz_followbttext" id="wpsr_buzz_followbttext" type="text" value="<?php echo $wpsr_buzz_followbttext ?>" size="35"/></td>
1103
- </tr>
1104
- </table>
1105
- </div>
1106
-
1107
- </div><!-- Buzz box -->
1108
-
1109
  <!-- RETWEET AND DIGG PAGE -->
1110
- <div id="tab-6" class="tabContent">
1111
 
1112
  <h4><?php _e('General', 'wpsr'); ?><?php wpsr_addcodeico('{retweet-bt}'); ?></h4>
1113
  <div class="section">
@@ -1202,7 +1140,7 @@ function wpsr_admin_page(){
1202
  </div>
1203
 
1204
  <!-- FACEBOOK PAGE -->
1205
- <div id="tab-7" class="tabContent">
1206
  <h4><?php _e('Like Button', 'wpsr'); ?><?php wpsr_addcodeico('{facebook-like}'); ?></h4>
1207
  <div class="section">
1208
  <table width="100%" border="0">
@@ -1283,7 +1221,7 @@ function wpsr_admin_page(){
1283
  </div>
1284
 
1285
  <!-- CUSTOM BUTTONS PAGE -->
1286
- <div id="tab-8" class="tabContent">
1287
  <h4><?php _e('Custom 1', 'wpsr'); ?><?php wpsr_addcodeico('{custom-1}'); ?></h4>
1288
  <div class="section">
1289
  <textarea name="wpsr_custom1" id="wpsr_custom1" cols="60" rows="8" class="custom_box"><?php echo $wpsr_custom1; ?></textarea><br />
@@ -1299,7 +1237,7 @@ function wpsr_admin_page(){
1299
  </div>
1300
 
1301
  <!-- TEMPLATE PAGE -->
1302
- <div id="tab-9" class="tabContent">
1303
 
1304
  <p class="notice">If you want to edit or use an already made template, then select it from the "<strong>One click</strong>" tab</p>
1305
 
@@ -1326,7 +1264,7 @@ function wpsr_admin_page(){
1326
  <table width="100%" height="237" border="0">
1327
  <tr>
1328
  <td height="38" colspan="3"><label>
1329
- <input name="wpsr_template1_addp" type="checkbox" value="1" <?php echo $wpsr_template1_addp == "1" ? 'checked="checked"' : ""; ?> />
1330
  <?php _e('Automatically add paragraphs', 'wpsr'); ?>
1331
  </label></td>
1332
  <td>&nbsp;</td>
@@ -1442,7 +1380,7 @@ function wpsr_admin_page(){
1442
  </div>
1443
 
1444
  <!-- SETTINGS -->
1445
- <div id="tab-10" class="tabContent">
1446
  <h4>RSS <?php _e('Settings', 'wpsr'); ?></h4>
1447
  <div class="section">
1448
  <table width="100%" height="39" border="0">
@@ -1526,9 +1464,9 @@ function wpsr_admin_page(){
1526
 
1527
  </div><!-- Tabs -->
1528
 
1529
- <div class="credits">
1530
- <a href="http://www.aakashweb.com/" title="Aakash Web" target="_blank"><?php _e('a Aakash Web plugin', 'wpsr'); ?></a>
1531
- </div><!-- Credits -->
1532
 
1533
  </div><!-- Wrap -->
1534
  <?php endif; ?>
@@ -1604,7 +1542,6 @@ function wpsr_meta_box(){
1604
 
1605
  ?>
1606
  <a name="wp_socializer" id="wp_socializer"></a>
1607
- <img width="20" height="20" src="<?php echo WPSR_ADMIN_URL; ?>images/wp-socializer.png" style="float:right; margin-top:-28px; margin-left:28px"/><style>.postbox:hover img{display:none;}</style>
1608
 
1609
  <table width="100%" border="0">
1610
  <tr>
96
  </li>
97
 
98
  <li class="parentLi btn">
99
+ <span class="admSprites googleplusIcon"></span>Google
100
  <ul bxid="' . $id . '">
101
  <li openTag="{plusone-small}">+1 - Small</li>
102
  <li openTag="{plusone-medium}">+1 - Medium</li>
103
  <li openTag="{plusone-standard}">+1 - Standard</li>
104
  <li openTag="{plusone-tall}">+1 - Tall</li>
 
 
105
  </ul>
106
  </li>
107
 
132
  </ul>
133
  </li>
134
 
135
+ <li class="parentLi btn">
136
+ <span class="admSprites linkedinIcon"></span>LinkedIn
137
+ <ul bxid="' . $id . '">
138
+ <li class="showTooltip" openTag="{linkedin-standard}" title="' . wpsr_addmi('linkedin-bts') . '">Type 1</li>
139
+ <li class="showTooltip" openTag="{linkedin-right}" title="' . wpsr_addmi('linkedin-bts') . '">Type 2</li>
140
+ <li class="showTooltip" openTag="{linkedin-top}" title="' . wpsr_addmi('linkedin-bts') . '">Type 3</li>
141
+ </ul>
142
+ </li>
143
+
144
  <li class="parentLi btn">
145
  <span class="admSprites customIcon"></span>Other buttons
146
  <ul bxid="' . $id . '">
186
  ## Default values
187
  function wpsr_reset_values(){
188
  $wpsr_temp1_def = '<div class="buttons-wrap clearfix">
 
189
  <span class="margin15 floatleft">{facebook-like}</span>
190
+ <span class="margin15 floatleft">{retweet-bt}</span>
191
+ <span class="margin15 floatleft">{plusone-medium}</span>
192
+ <span class="margin15 floatleft">{linkedin-right}</span>
193
  <span class="margin15 floatleft">{stumbleupon-1}</span>
 
 
194
  </div>';
195
 
196
  $wpsr_temp2_def = '<h2>' . __('Share and Enjoy' ,'wpsr') . '</h2>
223
 
224
  update_option("wpsr_sharethis_data", $wpsr_sharethis);
225
 
 
 
 
 
 
 
 
 
 
226
  ## Retweet Defaults
227
  $wpsr_retweet['username'] = '';
228
  $wpsr_retweet['type'] = 'compact';
252
  update_option("wpsr_facebook_data", $wpsr_facebook);
253
 
254
  ## Social Button Defaults
255
+ $wpsr_socialbt['selected16px'] = 'facebook,twitter,delicious,digg,stumbleupon,addtofavorites,email,rss';
256
+ $wpsr_socialbt['selected32px'] = 'facebook,twitter,delicious,digg,stumbleupon,addtofavorites,email,rss';
257
  $wpsr_socialbt['target'] = 0;
258
+ $wpsr_socialbt['target'] = 1;
259
  $wpsr_socialbt['loadcss'] = 1;
260
  $wpsr_socialbt['effect'] = 'opacity';
261
  $wpsr_socialbt['label'] = 0;
329
 
330
  ## Fix version 1.0 settings
331
  function wpsr_version1_fix(){
332
+ $wpsr_socialbt['selected16px'] = 'facebook,twitter,delicious,digg,stumbleupon,addtofavorites,email,rss';
333
+ $wpsr_socialbt['selected32px'] = 'facebook,twitter,delicious,digg,stumbleupon,addtofavorites,email,rss';
334
  $wpsr_socialbt['imgpath16px'] = WPSR_SOCIALBT_IMGPATH . '16/';
335
  $wpsr_socialbt['imgpath32px'] = WPSR_SOCIALBT_IMGPATH . '32/';
336
  update_option('wpsr_socialbt_data', $wpsr_socialbt);
342
  $wpsr_updated = false;
343
 
344
  ## Get the global variables
345
+ global $wpsr_socialsites_list, $wpsr_addthis_lang_array, $wpsr_button_code_list, $wpsr_donate_link;
346
 
347
  ## Assign the defaults for new users
348
  $wpsr_addthis = get_option('wpsr_addthis_data');
349
  $wpsr_sharethis = get_option('wpsr_sharethis_data');
 
350
  $wpsr_retweet = get_option('wpsr_retweet_data');
351
  $wpsr_digg = get_option('wpsr_digg_data');
352
  $wpsr_facebook = get_option('wpsr_facebook_data');
356
  $wpsr_template2 = get_option('wpsr_template2_data');
357
  $wpsr_settings = get_option('wpsr_settings_data');
358
 
359
+ if(empty($wpsr_addthis) && empty($wpsr_sharethis) && empty($wpsr_digg) && empty($wpsr_retweet) && empty($wpsr_digg) && empty($wpsr_facebook) && empty($wpsr_template1) && empty($wpsr_template2) && empty($wpsr_settings) && empty($wpsr_custom)){
360
  wpsr_reset_values();
361
  }
362
 
403
 
404
  update_option("wpsr_sharethis_data", $wpsr_sharethis);
405
 
 
 
 
 
 
 
 
 
 
 
406
  ## Retweet Options
407
  $wpsr_retweet['username'] = $_POST['wpsr_retweet_username'];
408
  $wpsr_retweet['type'] = $_POST['wpsr_retweet_type'];
433
 
434
  ## Social Button Options
435
  $wpsr_socialbt['target'] = $_POST['wpsr_socialbt_target'];
436
+ $wpsr_socialbt['nofollow'] = $_POST['wpsr_socialbt_nofollow'];
437
  $wpsr_socialbt['loadcss'] = $_POST['wpsr_socialbt_loadcss'];
438
  $wpsr_socialbt['effect'] = $_POST['wpsr_socialbt_effect'];
439
  $wpsr_socialbt['label'] = $_POST['wpsr_socialbt_label'];
548
  $wpsr_sharethis_pubkey = $wpsr_sharethis['pubkey'];
549
  $wpsr_sharethis_addp = $wpsr_sharethis['addp'];
550
 
 
 
 
 
 
 
 
 
 
 
 
551
  ## Retweet Options
552
  $wpsr_retweet = get_option('wpsr_retweet_data');
553
 
584
  $wpsr_socialbt = get_option('wpsr_socialbt_data');
585
 
586
  $wpsr_socialbt_target = $wpsr_socialbt['target'];
587
+ $wpsr_socialbt_nofollow = $wpsr_socialbt['nofollow'];
588
  $wpsr_socialbt_loadcss = $wpsr_socialbt['loadcss'];
589
  $wpsr_socialbt_effect = $wpsr_socialbt['effect'];
590
  $wpsr_socialbt_label = $wpsr_socialbt['label'];
673
  </div>
674
 
675
  <div class="promos donateBox">
676
+ <a href="http://bit.ly/wpsrDonate" target="_blank" title="Like this plugin ? You donation you will keep me up developing this plugin"><img src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" height="50"/></a>
 
 
 
677
  </div>
678
 
679
  <div class="donatePopup">
708
  <li><a href="#tab-2"><span class='admSprites socialButtons'></span>Social Buttons</a></li>
709
  <li><a href="#tab-3"><span class='admSprites addthisIcon'></span>Addthis</a></li>
710
  <li><a href="#tab-4"><span class='admSprites sharethisIcon'></span>Sharethis</a></li>
711
+ <li><a href="#tab-5"><span class='admSprites retweetIcon'></span>Retweet &amp; Digg</a></li>
712
+ <li><a href="#tab-6"><span class='admSprites facebookIcon'></span>Facebook</a></li>
713
+ <li><a href="#tab-7"><span class='admSprites customIcon'></span>Custom</a></li>
714
+ <li class="placementTab"><a href="#tab-8"><span class='admSprites placementIcon'></span>Placement<br/>
 
715
  <small class="info">Place buttons in this tab</small></a>
716
  </li>
717
+ <li><a href="#tab-9"><span class='admSprites settingsIcon'></span><?php _e('Settings', 'wpsr'); ?></a></li>
718
 
719
  <h5 class="tabGroup">Links</h5>
720
 
743
  <h4>One click setup</h4>
744
  <div class="templatesList">
745
  <img src="<?php echo WPSR_ADMIN_URL; ?>images/one-click-header.jpg" class="imgHead"/>
746
+ <p class="smallText"><?php _e('Select a template and click apply.', 'wpsr'); ?><br/>Selecting the below template will overwrite the current template you are using. <br/><em>Please delete the browser cache to view the new set of templates</em></p>
747
  </div>
748
  <a href="http://www.aakashweb.com/docs/wp-socializer-docs/creating-a-custom-template/" target="_blank"><?php _e('Create a template', 'wpsr'); ?></a> | <a href="http://www.aakashweb.com/docs/wp-socializer-docs/creating-a-custom-template/" target="_blank"><?php _e('Submit a template', 'wpsr'); ?></a>
749
  </div>
828
  <option <?php echo $wpsr_socialbt_target == '0' ? ' selected="selected"' : ''; ?> value="0"><?php _e('No', 'wpsr'); ?></option>
829
  </select></td>
830
  </tr>
831
+
832
+ <tr>
833
+ <td height="35"><?php _e('Add <code>rel="nofollow"</code> attribute to links', 'wpsr'); ?></td>
834
+ <td><select id="wpsr_socialbt_nofollow" name="wpsr_socialbt_nofollow">
835
+ <option <?php echo $wpsr_socialbt_nofollow == '1' ? ' selected="selected"' : ''; ?> value="1"><?php _e('Yes', 'wpsr'); ?></option>
836
+ <option <?php echo $wpsr_socialbt_nofollow == '0' ? ' selected="selected"' : ''; ?> value="0"><?php _e('No', 'wpsr'); ?></option>
837
+ </select></td>
838
+ </tr>
839
+
840
  <tr>
841
  <td height="35"><?php _e('Image on Hover effect', 'wpsr'); ?> </td>
842
  <td><select id="wpsr_socialbt_effect" name="wpsr_socialbt_effect">
1044
 
1045
  </div>
1046
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1047
  <!-- RETWEET AND DIGG PAGE -->
1048
+ <div id="tab-5" class="tabContent">
1049
 
1050
  <h4><?php _e('General', 'wpsr'); ?><?php wpsr_addcodeico('{retweet-bt}'); ?></h4>
1051
  <div class="section">
1140
  </div>
1141
 
1142
  <!-- FACEBOOK PAGE -->
1143
+ <div id="tab-6" class="tabContent">
1144
  <h4><?php _e('Like Button', 'wpsr'); ?><?php wpsr_addcodeico('{facebook-like}'); ?></h4>
1145
  <div class="section">
1146
  <table width="100%" border="0">
1221
  </div>
1222
 
1223
  <!-- CUSTOM BUTTONS PAGE -->
1224
+ <div id="tab-7" class="tabContent">
1225
  <h4><?php _e('Custom 1', 'wpsr'); ?><?php wpsr_addcodeico('{custom-1}'); ?></h4>
1226
  <div class="section">
1227
  <textarea name="wpsr_custom1" id="wpsr_custom1" cols="60" rows="8" class="custom_box"><?php echo $wpsr_custom1; ?></textarea><br />
1237
  </div>
1238
 
1239
  <!-- TEMPLATE PAGE -->
1240
+ <div id="tab-8" class="tabContent">
1241
 
1242
  <p class="notice">If you want to edit or use an already made template, then select it from the "<strong>One click</strong>" tab</p>
1243
 
1264
  <table width="100%" height="237" border="0">
1265
  <tr>
1266
  <td height="38" colspan="3"><label>
1267
+ <input id="wpsr_template1_addp" name="wpsr_template1_addp" type="checkbox" value="1" <?php echo $wpsr_template1_addp == "1" ? 'checked="checked"' : ""; ?> />
1268
  <?php _e('Automatically add paragraphs', 'wpsr'); ?>
1269
  </label></td>
1270
  <td>&nbsp;</td>
1380
  </div>
1381
 
1382
  <!-- SETTINGS -->
1383
+ <div id="tab-9" class="tabContent">
1384
  <h4>RSS <?php _e('Settings', 'wpsr'); ?></h4>
1385
  <div class="section">
1386
  <table width="100%" height="39" border="0">
1464
 
1465
  </div><!-- Tabs -->
1466
 
1467
+ <p align="center" class="credits"><a href="http://www.aakashweb.com/" title="Aakash Web" target="_blank"><?php _e('a Aakash Web plugin', 'wpsr'); ?></a></p>
1468
+ <p align="center"><a href="http://bit.ly/wpsrDonate" target="_blank" title="Like this plugin ? You donation you will keep me up developing this plugin" class="donateLink"><img src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" /></a></p>
1469
+ <!-- Credits -->
1470
 
1471
  </div><!-- Wrap -->
1472
  <?php endif; ?>
1542
 
1543
  ?>
1544
  <a name="wp_socializer" id="wp_socializer"></a>
 
1545
 
1546
  <table width="100%" border="0">
1547
  <tr>
includes/wpsr-custom.php CHANGED
@@ -37,5 +37,4 @@ function wpsr_custom_bt($custom){
37
  }
38
 
39
  }
40
-
41
  ?>
37
  }
38
 
39
  }
 
40
  ?>
includes/wpsr-digg.php CHANGED
@@ -107,5 +107,4 @@ function wpsr_digg_rss_bt(){
107
 
108
  return $wpsr_digg_processed;
109
  }
110
-
111
  ?>
107
 
108
  return $wpsr_digg_processed;
109
  }
 
110
  ?>
includes/wpsr-facebook.php CHANGED
@@ -143,5 +143,4 @@ function wpsr_facebook_rss_bt(){
143
 
144
  return $wpsr_facebook_processed;
145
  }
146
-
147
  ?>
143
 
144
  return $wpsr_facebook_processed;
145
  }
 
146
  ?>
includes/wpsr-google.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
- * Google Buzz and plusone buttons Processor code for WP Socializer Plugin
4
- * Version : 2.0
5
  * Author : Aakash Chakravarthy
6
  */
7
 
@@ -85,167 +85,4 @@ function wpsr_plusone_rss_bt(){
85
 
86
  return $wpsr_plusone_processed;
87
  }
88
-
89
- /*
90
- * Google Buzz button
91
- */
92
-
93
- function wpsr_buzz_script(){
94
- // Return the script
95
- return "\n<!-- WP Socializer - Buzz Script -->\n".
96
- '<script type="text/javascript" src="http://www.google.com/buzz/api/button.js"></script>'.
97
- "\n<!-- WP Socializer - End Buzz Script -->\n";
98
- }
99
-
100
- function wpsr_buzz_bt_used(){
101
-
102
- ## Get template data
103
- $wpsr_template1 = get_option('wpsr_template1_data');
104
- $wpsr_template2 = get_option('wpsr_template2_data');
105
-
106
- $wpsr_template_content = $wpsr_template1['content'] . $wpsr_template2['content'];
107
- $is_buzzbt_used = strpos_arr($wpsr_template_content, array('{buzz-post}', '{buzz-follow}'));
108
-
109
- if ($is_buzzbt_used === false) {
110
- return 0;
111
- } else {
112
- return 1;
113
- }
114
-
115
- }
116
-
117
- function wpsr_buzz($args = ''){
118
- global $post;
119
-
120
- $details = wpsr_get_post_details();
121
- $def_url = $details['permalink'];
122
- $def_title = $details['title'];
123
-
124
- $defaults = array (
125
- 'output' => 'button',
126
- 'url' => $def_url,
127
- 'title' => $def_title,
128
- 'type' => 'post',
129
- 'style' => 'count',
130
- 'size' => 'normal',
131
- 'lang' => 'en',
132
- 'profile' => 'http://profiles.google.com/me',
133
- 'follow_text' => 'Follow Me',
134
- 'follow_url' => '',
135
- 'text' => __('Buzz this' ,'wpsr'),
136
- 'image' => WPSR_PUBLIC_URL . 'buttons/buzz-bt.png',
137
- 'params' => '',
138
- );
139
-
140
- $args = wp_parse_args($args, $defaults);
141
- extract($args, EXTR_SKIP);
142
-
143
- $buzz_processed = "\n<!-- Start WP Socializer Plugin - Google Buzz Button -->\n";
144
-
145
- switch($output){
146
- // Output the ordinary button
147
- case 'button':
148
- switch($type){
149
- // Display the Google Buzz post button
150
- case 'post':
151
- $page = ' data-url="' . $url . '"' ;
152
-
153
- if($style != 'link'){
154
- $style = ' data-button-style="' . $size . '-' . $style . '"';
155
- }else{
156
- $style = ' data-button-style="link"';
157
- }
158
-
159
- if($lang != 'en'){
160
- $lang = ' data-locale="' . $lang . '"' ;
161
- }else{
162
- $lang = '';
163
- }
164
-
165
- $buzz_processed .= '<a title="Post on Google Buzz" class="google-buzz-button" href="http://www.google.com/buzz/post"' . $style . $page . $lang . '></a>';
166
-
167
- break;
168
-
169
- // Display the Google Buzz follow button
170
- case 'follow':
171
- $buzz_processed .= '<a target="_blank" class="google-buzz-button" title="' . $follow_text . '" href="' . $profile . '" data-button-style="follow">' . $follow_text . '</a>';
172
-
173
- break;
174
- }
175
- break;
176
-
177
- // Output the Image format
178
- case 'image':
179
- switch($type){
180
- // Display the Google Buzz post button
181
- case 'post':
182
- $buzz_processed .= '<a href="http://www.google.com/buzz/post?url=' . $url . '" ' . $params . '><img src="' . $image . '" /></a>';
183
- break;
184
-
185
- // Display the Google Buzz follow button
186
- case 'follow':
187
- $buzz_processed .= '<a href="' . $follow_url . '" ' . $params . '><img src="' . WPSR_URL . 'public/images/follow-bt.png" /></a>';
188
- break;
189
- }
190
- break;
191
-
192
- // Output the Text format
193
- case 'text':
194
- switch($type){
195
- // Display the Google Buzz post button
196
- case 'post':
197
- $buzz_processed .= '<a href="http://www.google.com/buzz/post?url=' . $url . '" ' . $params . '>' . $text . '</a>';
198
- break;
199
-
200
- // Display the Google Buzz follow button
201
- case 'follow':
202
- $buzz_processed .= '<a href="' . $follow_url . '" ' . $params . '>' . $follow_text . '</a>';
203
- break;
204
- }
205
- break;
206
- }
207
-
208
- $buzz_processed .= "\n<!-- End WP Socializer Plugin - Google Buzz Button -->\n";
209
-
210
- return $buzz_processed;
211
- }
212
-
213
- function wpsr_buzz_bt($type){
214
-
215
- ## Get Buzz Post Options
216
- $wpsr_buzz = get_option('wpsr_buzz_data');
217
-
218
- ## Start Output
219
- $wpsr_buzz_processed = wpsr_buzz(array(
220
- 'output' => 'button',
221
- 'type' => $type,
222
- 'style' => $wpsr_buzz['style'],
223
- 'size' => $wpsr_buzz['size'],
224
- 'lang' => $wpsr_buzz['language'],
225
- 'profile' => $wpsr_buzz['profile'],
226
- 'follow_text' => $wpsr_buzz['followbttext'],
227
- ));
228
- ## End Output
229
-
230
- return $wpsr_buzz_processed;
231
- }
232
-
233
- function wpsr_buzz_rss_bt($type){
234
-
235
- ## Get Buzz Options
236
- $wpsr_buzz = get_option('wpsr_buzz_data');
237
-
238
- ## Start Output
239
- $wpsr_buzz_processed = wpsr_buzz(array(
240
- 'output' => 'text',
241
- 'type' => $type,
242
- 'follow_url' => $wpsr_buzz['profile'],
243
- 'follow_text' => $wpsr_buzz['followbttext'],
244
- 'params' => 'target="_blank"',
245
- ));
246
- ## End Output
247
-
248
- return $wpsr_buzz_processed;
249
- }
250
-
251
  ?>
1
  <?php
2
  /*
3
+ * Google +1 button Processor code for WP Socializer Plugin
4
+ * Version : 3.0
5
  * Author : Aakash Chakravarthy
6
  */
7
 
85
 
86
  return $wpsr_plusone_processed;
87
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  ?>
includes/wpsr-other.php CHANGED
@@ -1,13 +1,12 @@
1
  <?php
2
  /*
3
- * Reddit and stumbleUpon buttons Processor code for WP Socializer Plugin
4
- * Version : 1.0
5
  * Since v2.0
6
  * Author : Aakash Chakravarthy
7
  */
8
 
9
  // Reddit button
10
-
11
  function wpsr_reddit($args = ''){
12
 
13
  global $post;
@@ -147,4 +146,97 @@ function wpsr_stumbleupon_rss_bt(){
147
  return $wpsr_stumbleupon_processed;
148
  }
149
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
150
  ?>
1
  <?php
2
  /*
3
+ * Reddit, StumbleUpon and LinkedIn buttons Processor code for WP Socializer Plugin
4
+ * Version : 2.1
5
  * Since v2.0
6
  * Author : Aakash Chakravarthy
7
  */
8
 
9
  // Reddit button
 
10
  function wpsr_reddit($args = ''){
11
 
12
  global $post;
146
  return $wpsr_stumbleupon_processed;
147
  }
148
 
149
+ //LinkedIn button
150
+ function wpsr_linkedin_script(){
151
+ // Return the script
152
+ return "\n<!-- WP Socializer - LinkedIn Script -->\n".
153
+ '<script type="text/javascript" src="http://platform.linkedin.com/in.js"></script>'.
154
+ "\n<!-- WP Socializer - End LinkedIn Script -->\n";
155
+ }
156
+
157
+ function wpsr_linkedin_bt_used(){
158
+
159
+ ## Get template data
160
+ $wpsr_template1 = get_option('wpsr_template1_data');
161
+ $wpsr_template2 = get_option('wpsr_template2_data');
162
+
163
+ $wpsr_template_content = $wpsr_template1['content'] . $wpsr_template2['content'];
164
+ $is_linkedin_used = strpos_arr($wpsr_template_content, array('{linkedin-standard}', '{linkedin-right}', '{linkedin-top}'));
165
+
166
+ if ($is_linkedin_used === false) {
167
+ return 0;
168
+ } else {
169
+ return 1;
170
+ }
171
+
172
+ }
173
+
174
+ function wpsr_linkedin($args = ''){
175
+
176
+ global $post;
177
+
178
+ $details = wpsr_get_post_details();
179
+ $def_url = $details['permalink'];
180
+ $def_title = $details['title'];
181
+
182
+ $defaults = array (
183
+ 'output' => 'button',
184
+ 'url' => $def_url,
185
+ 'title' => $def_title,
186
+ 'type' => 'right',
187
+ 'text' => __('Submit this to ' ,'wpsr'),
188
+ 'image' => WPSR_PUBLIC_URL . 'buttons/linkedin-bt.png',
189
+ 'params' => '',
190
+ );
191
+
192
+ $args = wp_parse_args($args, $defaults);
193
+ extract($args, EXTR_SKIP);
194
+
195
+ $linkedin_processed = "\n<!-- Start WP Socializer Plugin - LinkedIn Button -->\n";
196
+
197
+ switch($output){
198
+ // Display the ordinary button
199
+ case 'button':
200
+ $linkedin_processed .= '<script type="IN/Share" data-url="' . $url . '" data-counter="' . $type . '"></script>';
201
+ break;
202
+
203
+ // Display the Image format
204
+ case 'image':
205
+ $linkedin_processed .= '<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=' . urlencode($url) . '&amp;title=' . urlencode($title) . '" ' . $params . '><img src="' . $image . '" alt="Submit to linkedin" /></a>';
206
+ break;
207
+
208
+ // Display the Text format
209
+ case 'text':
210
+ $linkedin_processed .= '<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=' . urlencode($url) . '&amp;title=' . urlencode($title) . '" ' . $params . '>' . $text . '</a>';
211
+ break;
212
+ }
213
+
214
+ $linkedin_processed .= "\n<!-- End WP Socializer Plugin - LinkedIn Button -->\n";
215
+
216
+ return $linkedin_processed;
217
+ }
218
+
219
+ function wpsr_linkedin_bt($type){
220
+
221
+ ## Start Output
222
+ $wpsr_linkedin_bt_processed = wpsr_linkedin(array(
223
+ 'output' => 'button',
224
+ 'type' => $type,
225
+ ));
226
+ ## End Output
227
+
228
+ return $wpsr_linkedin_bt_processed;
229
+ }
230
+
231
+ function wpsr_linkedin_rss_bt(){
232
+
233
+ ## Start Output
234
+ $wpsr_linkedin_processed = wpsr_linkedin(array(
235
+ 'output' => 'text',
236
+ 'params' => 'target="_blank"',
237
+ ));
238
+ ## End Output
239
+
240
+ return $wpsr_linkedin_processed;
241
+ }
242
  ?>
includes/wpsr-sharethis.php CHANGED
@@ -182,5 +182,4 @@ function wpsr_sharethis_rss_bt(){
182
 
183
  return $wpsr_sharethis_processed;
184
  }
185
-
186
  ?>
182
 
183
  return $wpsr_sharethis_processed;
184
  }
 
185
  ?>
includes/wpsr-shortcodes.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Shortcodes for WP Socializer plugin
4
- * Version : 1.0
5
  * Author : Aakash Chakravarthy
6
  * Since : 2.0
7
  */
@@ -38,9 +38,9 @@ function wpsr_retweet_shortcode($atts){
38
  }
39
  add_shortcode('wpsr_retweet', 'wpsr_retweet_shortcode');
40
 
41
- ## Google Buzz button Shortcode
42
  function wpsr_buzz_shortcode($atts){
43
- return wpsr_buzz($atts) . wpsr_buzz_script();
44
  }
45
  add_shortcode('wpsr_buzz', 'wpsr_buzz_shortcode');
46
 
@@ -74,4 +74,9 @@ function wpsr_reddit_shortcode($atts){
74
  }
75
  add_shortcode('wpsr_reddit', 'wpsr_reddit_shortcode');
76
 
 
 
 
 
 
77
  ?>
1
  <?php
2
  /*
3
  * Shortcodes for WP Socializer plugin
4
+ * Version : 2.0
5
  * Author : Aakash Chakravarthy
6
  * Since : 2.0
7
  */
38
  }
39
  add_shortcode('wpsr_retweet', 'wpsr_retweet_shortcode');
40
 
41
+ ## Google Buzz button Shortcode - Removed since v2.3
42
  function wpsr_buzz_shortcode($atts){
43
+ return '';
44
  }
45
  add_shortcode('wpsr_buzz', 'wpsr_buzz_shortcode');
46
 
74
  }
75
  add_shortcode('wpsr_reddit', 'wpsr_reddit_shortcode');
76
 
77
+ ## LinkedIn Shortcode - since v2.3
78
+ function wpsr_linkedin_shortcode($atts){
79
+ return wpsr_linkedin($atts) . wpsr_linkedin_script();
80
+ }
81
+ add_shortcode('wpsr_linkedin', 'wpsr_linkedin_shortcode');
82
  ?>
includes/wpsr-socialbuttons.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Social buttons Processor code for WP Socializer Plugin
4
- * Version : 4.3
5
  * Author : Aakash Chakravarthy
6
  */
7
 
@@ -139,6 +139,7 @@ function wpsr_socialbts_processlist($args = ''){
139
  'sprites' => 1,
140
  'label' => 1,
141
  'target' => 1,
 
142
  'imgpath' => '',
143
  'params' => '',
144
  );
@@ -195,6 +196,7 @@ function wpsr_socialbts_processlist($args = ''){
195
  $spritesYCoord = get_sprite_coord($sitename, $wpsr_socialsites_list, $pixel);
196
  $finalSprites = '0px -' . $spritesYCoord . 'px';
197
  $finalTarget = ($target == 1) ? ' target="_blank"' : '';
 
198
 
199
  $socialbts_list .= $before;
200
 
@@ -203,7 +205,7 @@ function wpsr_socialbts_processlist($args = ''){
203
 
204
  // Check whether label is enabled
205
  if($label == 1){
206
- $finalLabel = '<span class="wp-socializer-label"><a href="' . $finalUrl . '" title="' . $finalTitle . '"' . $finalTarget . '>' . $finalName . '</a></span>';
207
  }else{
208
  $finalLabel = '';
209
  }
@@ -211,19 +213,19 @@ function wpsr_socialbts_processlist($args = ''){
211
  // Check whether sprites is enabled
212
  if($sprites == 1){
213
  $socialbts_list .=
214
- '<a href="' . $finalUrl . '" title="' . $finalTitle . '"' . $finalTarget . $params . '>' .
215
  '<img src="' . $spriteMaskImage . '" alt="' . $finalName . '" style="width:' . $pixel . '; height:' . $pixel . '; background: transparent url(' . $spriteImage . ') no-repeat; background-position:' . $finalSprites . '; border:0;"/>' .
216
  "</a>" . $finalLabel ;
217
  }else{
218
  $socialbts_list .=
219
- '<a href="' . $finalUrl . '" title="' . $finalTitle . '"' . $finalTarget . $params . '>' .
220
  '<img src="' . $finalIcon . '" alt="' . $finalName . '" border="0"/>' .
221
  "</a>" . $finalLabel ;
222
  }
223
 
224
  }else{
225
  $socialbts_list .=
226
- $textBefore . '<a href="' . $finalUrl . '" title="' . $finalTitle . '"' . $finalTarget . $params . '>' .
227
  $finalName . "</a>" . $textAfter ;
228
  }
229
 
@@ -248,6 +250,7 @@ function wpsr_socialbts($args = ''){
248
  'excerpt' => $def_excerpt,
249
  'type' => '16px',
250
  'target' => 1,
 
251
  'effect' => 'opacity',
252
  'label' => 0,
253
  'columns' => 'no',
@@ -286,6 +289,7 @@ function wpsr_socialbts($args = ''){
286
  'sprites' => $sprites,
287
  'label' => $label,
288
  'target' => $target,
 
289
  'imgpath' => $imgpath16px,
290
  ));
291
  break;
@@ -301,6 +305,7 @@ function wpsr_socialbts($args = ''){
301
  'sprites' => $sprites,
302
  'label' => $label,
303
  'target' => $target,
 
304
  'imgpath' => $imgpath32px,
305
  ));
306
  break;
@@ -325,6 +330,7 @@ function wpsr_socialbts($args = ''){
325
  'sprites' => $sprites,
326
  'label' => $label,
327
  'target' => $target,
 
328
  'imgpath' => $imgpath16px,
329
  'after' => '',
330
  'before' => '',
@@ -343,6 +349,7 @@ function wpsr_socialbts($args = ''){
343
  'sprites' => $sprites,
344
  'label' => $label,
345
  'target' => $target,
 
346
  'imgpath' => $imgpath32px,
347
  'after' => '',
348
  'before' => '',
@@ -360,6 +367,7 @@ function wpsr_socialbts($args = ''){
360
  'sprites' => $sprites,
361
  'label' => $label,
362
  'target' => $target,
 
363
  'after' => $after,
364
  'before' => $before,
365
  'textBefore' => '',
@@ -426,6 +434,7 @@ function wpsr_socialbts_template($type){
426
  'output' => 'image',
427
  'type' => $type,
428
  'target' => $wpsr_socialbt['target'],
 
429
  'effect' => $wpsr_socialbt['effect'],
430
  'label' => $wpsr_socialbt['label'],
431
  'columns' => $wpsr_socialbt['columns'],
@@ -451,5 +460,4 @@ function wpsr_socialbts_rss($type){
451
 
452
  return $wpsr_socialbt_processed;
453
  }
454
-
455
  ?>
1
  <?php
2
  /*
3
  * Social buttons Processor code for WP Socializer Plugin
4
+ * Version : 4.4
5
  * Author : Aakash Chakravarthy
6
  */
7
 
139
  'sprites' => 1,
140
  'label' => 1,
141
  'target' => 1,
142
+ 'nofollow' => 1,
143
  'imgpath' => '',
144
  'params' => '',
145
  );
196
  $spritesYCoord = get_sprite_coord($sitename, $wpsr_socialsites_list, $pixel);
197
  $finalSprites = '0px -' . $spritesYCoord . 'px';
198
  $finalTarget = ($target == 1) ? ' target="_blank"' : '';
199
+ $finalNofollow = ($nofollow == 1) ? ' rel="nofollow"' : '';
200
 
201
  $socialbts_list .= $before;
202
 
205
 
206
  // Check whether label is enabled
207
  if($label == 1){
208
+ $finalLabel = '<span class="wp-socializer-label"><a href="' . $finalUrl . '" title="' . $finalTitle . '"' . $finalTarget . $finalNofollow . '>' . $finalName . '</a></span>';
209
  }else{
210
  $finalLabel = '';
211
  }
213
  // Check whether sprites is enabled
214
  if($sprites == 1){
215
  $socialbts_list .=
216
+ '<a href="' . $finalUrl . '" title="' . $finalTitle . '"' . $finalTarget . $finalNofollow . $params . '>' .
217
  '<img src="' . $spriteMaskImage . '" alt="' . $finalName . '" style="width:' . $pixel . '; height:' . $pixel . '; background: transparent url(' . $spriteImage . ') no-repeat; background-position:' . $finalSprites . '; border:0;"/>' .
218
  "</a>" . $finalLabel ;
219
  }else{
220
  $socialbts_list .=
221
+ '<a href="' . $finalUrl . '" title="' . $finalTitle . '"' . $finalTarget . $finalNofollow . $params . '>' .
222
  '<img src="' . $finalIcon . '" alt="' . $finalName . '" border="0"/>' .
223
  "</a>" . $finalLabel ;
224
  }
225
 
226
  }else{
227
  $socialbts_list .=
228
+ $textBefore . '<a href="' . $finalUrl . '" title="' . $finalTitle . '"' . $finalTarget . $finalNofollow . $params . '>' .
229
  $finalName . "</a>" . $textAfter ;
230
  }
231
 
250
  'excerpt' => $def_excerpt,
251
  'type' => '16px',
252
  'target' => 1,
253
+ 'nofollow' => 1, // Since 2.3
254
  'effect' => 'opacity',
255
  'label' => 0,
256
  'columns' => 'no',
289
  'sprites' => $sprites,
290
  'label' => $label,
291
  'target' => $target,
292
+ 'nofollow' => $nofollow,
293
  'imgpath' => $imgpath16px,
294
  ));
295
  break;
305
  'sprites' => $sprites,
306
  'label' => $label,
307
  'target' => $target,
308
+ 'nofollow' => $nofollow,
309
  'imgpath' => $imgpath32px,
310
  ));
311
  break;
330
  'sprites' => $sprites,
331
  'label' => $label,
332
  'target' => $target,
333
+ 'nofollow' => $nofollow,
334
  'imgpath' => $imgpath16px,
335
  'after' => '',
336
  'before' => '',
349
  'sprites' => $sprites,
350
  'label' => $label,
351
  'target' => $target,
352
+ 'nofollow' => $nofollow,
353
  'imgpath' => $imgpath32px,
354
  'after' => '',
355
  'before' => '',
367
  'sprites' => $sprites,
368
  'label' => $label,
369
  'target' => $target,
370
+ 'nofollow' => $nofollow,
371
  'after' => $after,
372
  'before' => $before,
373
  'textBefore' => '',
434
  'output' => 'image',
435
  'type' => $type,
436
  'target' => $wpsr_socialbt['target'],
437
+ 'nofollow' => $wpsr_socialbt['nofollow'],
438
  'effect' => $wpsr_socialbt['effect'],
439
  'label' => $wpsr_socialbt['label'],
440
  'columns' => $wpsr_socialbt['columns'],
460
 
461
  return $wpsr_socialbt_processed;
462
  }
 
463
  ?>
includes/wpsr-widgets.php ADDED
@@ -0,0 +1,222 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Widget for WP Socializer plugin
4
+ * Version : 1.0
5
+ * Author : Aakash Chakravarthy
6
+ * Since : 2.3
7
+ */
8
+
9
+ class WPSR_Widget extends WP_Widget {
10
+ /** constructor */
11
+ function WPSR_Widget() {
12
+ $widget_ops = array('classname' => 'widget_wp_socializer', 'description' => __("Add Facebook like box and Google+ page badge to the sidebar.", 'wpsr') );
13
+ $control_ops = array('width' => 360, 'height' => 500);
14
+ $this->WP_Widget('wp_socializer', 'WP Socializer', $widget_ops, $control_ops);
15
+ }
16
+
17
+ /** @see WP_Widget::widget */
18
+ function widget( $args, $instance ) {
19
+ extract($args);
20
+
21
+ $title = apply_filters('widget_title', $instance['title']);
22
+ $widget_type = $instance['widget_type'];
23
+
24
+ $fblike_url = $instance['fblike_url'];
25
+ $fblike_color = $instance['fblike_color'];
26
+ $fblike_border = $instance['fblike_border'];
27
+ $fblike_size = explode(',', $instance['fblike_size']);
28
+ $fblike_showfaces = $instance['fblike_showfaces'];
29
+ $fblike_showstream = $instance['fblike_showstream'];
30
+ $fblike_showheader = $instance['fblike_showheader'];
31
+
32
+ $gplus_pageid = $instance['gplus_pageid'];
33
+ $gplus_badgetype = $instance['gplus_badgetype'];
34
+
35
+ $output = "\n\n<!-- Begin WP Socializer Widget v" . WPSR_VERSION . "-->\n";
36
+
37
+ //Start the Output
38
+ echo $before_widget;
39
+ if ($title)
40
+ echo $before_title . $title . $after_title;
41
+
42
+ if($widget_type == 'facebook-like'){
43
+
44
+ $output .= '<iframe src="//www.facebook.com/plugins/likebox.php?href=' . urlencode($fblike_url) . '&amp;width=' . trim($fblike_size[0]) . '&amp;height=' . trim($fblike_size[1]) . '&amp;colorscheme=' . $fblike_color . '&amp;show_faces=' . $fblike_showfaces . '&amp;border_color=' . $fblike_border . '&amp;stream=' . $fblike_showstream . '&amp;header=' . $fblike_showheader . '" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:' . trim($fblike_size[0]) . 'px; height:' . trim($fblike_size[1]) . 'px;" allowTransparency="true"></iframe>';
45
+
46
+ }elseif($widget_type == 'googleplus-badge'){
47
+
48
+ $output .= '<script type="text/javascript">(function() {var po = document.createElement("script");po.type = "text/javascript"; po.async = true;po.src = "https://apis.google.com/js/plusone.js";var s = document.getElementsByTagName("script")[0];s.parentNode.insertBefore(po, s);})()</script>';
49
+ $output .= '<div class="g-plus" data-href="https://plus.google.com/' . $gplus_pageid .'" data-size="' . $gplus_badgetype . '"></div>';
50
+
51
+ }
52
+ $output .= "\n<!-- End WP Socializer Widget v" . WPSR_VERSION . "-->\n\n";
53
+
54
+ echo $output;
55
+ echo $after_widget;
56
+ }
57
+
58
+ /** @see WP_Widget::update */
59
+ function update( $new_instance, $old_instance ) {
60
+ $instance = $old_instance;
61
+ $instance['title'] = strip_tags($new_instance['title']);
62
+ $instance['widget_type'] = strip_tags($new_instance['widget_type']);
63
+
64
+ $instance['fblike_url'] = strip_tags($new_instance['fblike_url']);
65
+ $instance['fblike_color'] = strip_tags($new_instance['fblike_color']);
66
+ $instance['fblike_border'] = strip_tags($new_instance['fblike_border']);
67
+ $instance['fblike_size'] = strip_tags($new_instance['fblike_size']);
68
+ $instance['fblike_showfaces'] = strip_tags($new_instance['fblike_showfaces']);
69
+ $instance['fblike_showstream'] = strip_tags($new_instance['fblike_showstream']);
70
+ $instance['fblike_showheader'] = strip_tags($new_instance['fblike_showheader']);
71
+
72
+ $instance['gplus_pageid'] = strip_tags($new_instance['gplus_pageid']);
73
+ $instance['gplus_badgetype'] = strip_tags($new_instance['gplus_badgetype']);
74
+
75
+ return $instance;
76
+ }
77
+
78
+ /** @see WP_Widget::form */
79
+ function form($instance){
80
+ $instance = wp_parse_args( (array) $instance, array(
81
+ 'title' => '', 'widget_type' => 'facebook-like', 'fblike_url' => '',
82
+ 'fblike_color' => 'light', 'fblike_border' => '', 'fblike_size' => '300,290',
83
+ 'fblike_showfaces' => 1, 'fblike_showstream' => 1, 'fblike_showheader' => 1,
84
+ 'gplus_pageid' => '', 'gplus_badgetype' => 'badge'
85
+ ));
86
+
87
+ $title = $instance['title'];
88
+ $widget_type = $instance['widget_type'];
89
+
90
+ $fblike_url = $instance['fblike_url'];
91
+ $fblike_color = $instance['fblike_color'];
92
+ $fblike_border = $instance['fblike_border'];
93
+ $fblike_size = $instance['fblike_size'];
94
+ $fblike_showfaces = $instance['fblike_showfaces'];
95
+ $fblike_showstream = $instance['fblike_showstream'];
96
+ $fblike_showheader = $instance['fblike_showheader'];
97
+
98
+ $gplus_pageid = $instance['gplus_pageid'];
99
+ $gplus_badgetype = $instance['gplus_badgetype'];
100
+
101
+ ?>
102
+ <p>
103
+ <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:'); ?></label>
104
+ <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" />
105
+ </p>
106
+
107
+ <h4>Select the type of Widget</h4>
108
+ <select id="<?php echo $this->get_field_id('widget_type'); ?>" class="widefat" name="<?php echo $this->get_field_name('widget_type'); ?>" onChange="wpsr_widgettype(this);">
109
+ <option <?php echo $widget_type == 'facebook-like' ? ' selected="selected"' : ''; ?> value="facebook-like">Facebook Like Box</option>
110
+ <option <?php echo $widget_type == 'googleplus-badge' ? ' selected="selected"' : ''; ?> value="googleplus-badge">Google+ Badge</option>
111
+ </select>
112
+
113
+ <div class="wpsr_settings wpsr_widget_facebook-like" <?php echo ($widget_type != 'facebook-like') ? 'style="display:none"' : '' ; ?>>
114
+ <h4>Settings</h4>
115
+ <table width="100%" height="266" border="0">
116
+ <tr>
117
+ <td height="34">Facebook Page URL</td>
118
+ <td><input class="widefat" id="<?php echo $this->get_field_id('fblike_url'); ?>" name="<?php echo $this->get_field_name('fblike_url'); ?>" type="text" value="<?php echo $fblike_url; ?>" /></td>
119
+ </tr>
120
+ <tr>
121
+ <td height="37">Width, Height</td>
122
+ <td><input class="widefat" id="<?php echo $this->get_field_id('fblike_size'); ?>" name="<?php echo $this->get_field_name('fblike_size'); ?>" type="text" value="<?php echo $fblike_size; ?>" /></td>
123
+ </tr>
124
+ <tr>
125
+ <td height="37">Color Scheme</td>
126
+ <td><select id="<?php echo $this->get_field_id('fblike_color'); ?>" class="widefat" name="<?php echo $this->get_field_name('fblike_color'); ?>">
127
+ <option <?php echo $fblike_color == 'light' ? ' selected="selected"' : ''; ?> value="light">Light</option>
128
+ <option <?php echo $fblike_color == 'dark' ? ' selected="selected"' : ''; ?> value="dark">Dark</option>
129
+ </select></td>
130
+ </tr>
131
+ <tr>
132
+ <td height="34">Border Color</td>
133
+ <td><input class="widefat" id="<?php echo $this->get_field_id('fblike_border'); ?>" name="<?php echo $this->get_field_name('fblike_border'); ?>" type="text" value="<?php echo $fblike_border; ?>" /></td>
134
+ </tr>
135
+ <tr>
136
+ <td height="35">Show Faces</td>
137
+ <td><input id="<?php echo $this->get_field_id('fblike_showfaces'); ?>" type="checkbox" name="<?php echo $this->get_field_name('fblike_showfaces'); ?>" value="true" <?php echo $fblike_showfaces == "true" ? 'checked="checked"' : ""; ?>/></td>
138
+ </tr>
139
+ <tr>
140
+ <td height="37">Show Stream</td>
141
+ <td><input id="<?php echo $this->get_field_id('fblike_showstream'); ?>" type="checkbox" name="<?php echo $this->get_field_name('fblike_showstream'); ?>" value="true" <?php echo $fblike_showstream == "true" ? 'checked="checked"' : ""; ?>/></td>
142
+ </tr>
143
+ <tr>
144
+ <td>Show Header</td>
145
+ <td><input id="<?php echo $this->get_field_id('fblike_showheader'); ?>" type="checkbox" name="<?php echo $this->get_field_name('fblike_showheader'); ?>" value="true" <?php echo $fblike_showheader == "true" ? 'checked="checked"' : ""; ?>/></td>
146
+ </tr>
147
+ </table>
148
+ </div>
149
+
150
+ <div class="wpsr_settings wpsr_widget_googleplus-badge" <?php echo ($widget_type != 'googleplus-badge') ? 'style="display:none"' : '' ; ?>>
151
+ <h4>Settings</h4>
152
+ <table width="100%" height="81" border="0">
153
+ <tr>
154
+ <td height="35">Google+ Page ID</td>
155
+ <td><input class="widefat" id="<?php echo $this->get_field_id('gplus_pageid'); ?>" name="<?php echo $this->get_field_name('gplus_pageid'); ?>" type="text" value="<?php echo $gplus_pageid; ?>" /></td>
156
+ </tr>
157
+ <tr>
158
+ <td>Badge type</td>
159
+ <td><select id="<?php echo $this->get_field_id('gplus_badgetype'); ?>" class="widefat" name="<?php echo $this->get_field_name('gplus_badgetype'); ?>">
160
+ <option <?php echo $gplus_badgetype == 'badge' ? ' selected="selected"' : ''; ?> value="badge">Standard Badge</option>
161
+ <option <?php echo $gplus_badgetype == 'smallbadge' ? ' selected="selected"' : ''; ?> value="smallbadge">Small Badge</option>
162
+ </select></td>
163
+ </tr>
164
+ </table>
165
+ </div>
166
+
167
+ <div class="wpsr_support"><a href="http://bit.ly/hjadonate" target="_blank">Donate</a> | <a href="http://www.aakashweb.com/wordpress-plugins/wp-socializer/" target="_blank">Support</a> | <a href="http://facebook.com/aakashweb" target="_blank">Like</a><br />
168
+ <small style="opacity: 0.7">For using other buttons in the widget, use the <a href="http://www.aakashweb.com/wordpress-plugins/html-javascript-adder/" target="_blank">HTML Javascript Adder</a> plugin.</small> </div>
169
+
170
+
171
+ <?php
172
+ }
173
+
174
+ }
175
+
176
+ // register Foo_Widget widget
177
+ add_action( 'widgets_init', create_function( '', 'register_widget("WPSR_Widget");' ) );
178
+
179
+ function wpsr_widget_admin_scripts(){
180
+ ?>
181
+ <script type="text/javascript">
182
+ jQuery(document).ready(function(){
183
+
184
+ });
185
+ function wpsr_widgettype(obj){
186
+ jQuery('.wpsr_settings').hide();
187
+ jQuery('.wpsr_widget_' + jQuery(obj).val()).fadeIn();
188
+ }
189
+ </script>
190
+
191
+ <style type="text/css">
192
+ .wpsr_settings h4{
193
+ border-bottom: 1px solid #DFDFDF;
194
+ margin: 20px -11px 10px -11px;
195
+ padding: 5px 11px 5px 11px;
196
+ border-top: 1px solid #DFDFDF;
197
+ background-color: #fff;
198
+ background-image: -ms-linear-gradient(top,#fff,#f9f9f9);
199
+ background-image: -moz-linear-gradient(top,#fff,#f9f9f9);
200
+ background-image: -o-linear-gradient(top,#fff,#f9f9f9);
201
+ background-image: -webkit-gradient(linear,left top,left bottom,from(#fff),to(#f9f9f9));
202
+ background-image: -webkit-linear-gradient(top,#fff,#f9f9f9);
203
+ background-image: linear-gradient(top,#fff,#f9f9f9);
204
+ }
205
+ .wpsr_support{
206
+ border: 1px solid #DFDFDF;
207
+ padding: 5px 13px;
208
+ background: #F9F9F9;
209
+ text-decoration:none;
210
+ margin: 10px -13px;
211
+ }
212
+ .wpsr_support a{
213
+ text-decoration: none;
214
+ }
215
+ .wpsr_support a:hover{
216
+ text-decoration: underline;
217
+ }
218
+ </style>
219
+ <?php
220
+ }
221
+ add_action('sidebar_admin_page', 'wpsr_widget_admin_scripts');
222
+ ?>
public/buttons/Thumbs.db CHANGED
Binary file
public/buttons/linkedin-bt.png ADDED
Binary file
public/css/wp-socializer-buttons-css.css CHANGED
@@ -1,5 +1,5 @@
1
  /*
2
- * WP Socializer Social buttons - CSS File - v2.1
3
  * Author: Aakash Chakravarthy
4
  */
5
 
@@ -16,8 +16,8 @@
16
  .wp-socializer ul li {
17
  background: none;
18
  list-style-type: none !important;
19
- margin: 0px 5px 5px 0px;
20
- padding: 0px;
21
  float: left !important;
22
  }
23
  .wp-socializer ul li:before {
1
  /*
2
+ * WP Socializer Social buttons - CSS File - v2.2
3
  * Author: Aakash Chakravarthy
4
  */
5
 
16
  .wp-socializer ul li {
17
  background: none;
18
  list-style-type: none !important;
19
+ margin: 0px 5px 5px 0px !important;
20
+ padding: 0px !important;
21
  float: left !important;
22
  }
23
  .wp-socializer ul li:before {
public/social-icons/16/Thumbs.db DELETED
Binary file
public/social-icons/32/Thumbs.db DELETED
Binary file
public/social-icons/Thumbs.db DELETED
Binary file
readme.txt CHANGED
@@ -2,32 +2,40 @@
2
  Contributors: Aakash Chakravarthy
3
  Author URI: http://www.aakashweb.com/
4
  Plugin URI: http://www.aakashweb.com/wordpress-plugins/wp-socializer/
5
- Tags: social, social bookmarking, bookmarks, bookmarking, bookmarks menu, share, sharing, search, rss, post, posts, plugin, seo, page, pages, google, excerpt, content, bookmark, button, technorati, e-mail, email, gmail, Facebook, twitter, retweet, myspace, diigo, delicious, digg, buzz, google buzz, yahoo, reddit, dzone, Sphinn, addthis, template, socializer, sociable, wp, wordpress, sexy bookmarks
6
  Donate Link: http://bit.ly/wpsrDonate
7
- Requires at least: 2.6
8
- Tested up to: 3.3
9
- Stable tag: 2.2
10
 
11
- All in one plugin for inserting Social bookmarking buttons(105), Retweet, Google+1, Facebook, Digg, Addthis, Sharethis buttons in a WordPress site.
12
 
13
  == Description ==
14
 
15
- WP Socializer is a advanced and powerful plugin for adding social bookmarking buttons, Retweet buttons, Google +1 buttons, Digg buttons, Addthis buttons, Facebook buttons anywhere in a WordPress site from posts to Widgets.
16
-
17
- [youtube="http://www.youtube.com/v/6AXCt13MXcU"]
18
 
 
19
  A ultimate replacement to many plugins, being a all in one.
20
 
 
 
21
  = Features =
22
 
23
  WP Socializer allows to insert 8 different types of social and sharing buttons. Those features are explained below. These buttons can be used either seperately or together.
24
 
 
 
 
 
 
 
 
25
  = What buttons can be inserted ? =
26
 
27
  * 105 Social bookmarking buttons with both 16px and 32px button sizes.
28
  * Addthis and Sharethis buttons of all type.
29
- * Google +1, Facebook like buttons
30
- * All Retweet and Digg buttons.
31
  * StumbleUpon, Reddit and Google Buzz buttons.
32
 
33
  = Where the button can be placed ? =
@@ -52,6 +60,7 @@ WP Socializer allows to insert 8 different types of social and sharing buttons.
52
  * [Screenshots](http://www.aakashweb.com/wordpress-plugins/wp-socializer/#screenshots-tab)
53
  * [Support](http://www.aakashweb.com/forum/)
54
  * [Request a Feature](http://www.aakashweb.com/wordpress-plugins/wp-socializer/#respond)
 
55
  * [Donate](http://bit.ly/wpsrDonate)
56
 
57
  = Using WP Socializer =
@@ -77,11 +86,21 @@ Frequently Asked Questions can be seen [here](http://www.aakashweb.com/faqs/word
77
  1. Complete WP Socializer, social bookmarking icons overview.
78
  2. Overview of the posts, showing where and how the buttons can be placed.
79
  3. Admin Interface overview.
 
 
80
 
81
- [More Screenshots](http://www.aakashweb.com/wordpress-plugins/wp-socializer/#screenshots-tab)
82
 
83
  == Changelog ==
84
 
 
 
 
 
 
 
 
 
85
  = 2.2 =
86
  * Conflict with the tinyMCE editor fixed.
87
  * A "WP Socializer" button is added to the visual editing and code editing toolbar for inserting social buttons into posts easily.
2
  Contributors: Aakash Chakravarthy
3
  Author URI: http://www.aakashweb.com/
4
  Plugin URI: http://www.aakashweb.com/wordpress-plugins/wp-socializer/
5
+ Tags: social, social bookmarking, bookmarks, bookmarking, bookmarks menu, share, sharing, search, rss, post, posts, plugin, seo, page, pages, google, excerpt, content, bookmark, button, technorati, e-mail, email, gmail, Facebook, twitter, retweet, myspace, diigo, delicious, digg, buzz, linkedin, google buzz, yahoo, reddit, dzone, Sphinn, addthis, template, socializer, sociable, wp, wordpress, sexy bookmarks
6
  Donate Link: http://bit.ly/wpsrDonate
7
+ Requires at least: 2.8
8
+ Tested up to: 3.3.1
9
+ Stable tag: 2.3
10
 
11
+ All in one plugin for inserting Social bookmarking buttons(105), Retweet, Google+1, Facebook, LinkedIn, Addthis, Sharethis buttons in a WordPress site
12
 
13
  == Description ==
14
 
15
+ WP Socializer is a advanced and powerful plugin for adding social bookmarking buttons, Retweet buttons, Google +1 buttons, LinkedIn buttons, Digg buttons, Addthis buttons, Facebook buttons anywhere in a WordPress site from posts to Widgets.
 
 
16
 
17
+ Facebook like box, Google + badge can also be added to the sidebar with full custtomization.
18
  A ultimate replacement to many plugins, being a all in one.
19
 
20
+ [youtube="http://www.youtube.com/v/6AXCt13MXcU"]
21
+
22
  = Features =
23
 
24
  WP Socializer allows to insert 8 different types of social and sharing buttons. Those features are explained below. These buttons can be used either seperately or together.
25
 
26
+ = New features in v2.3 =
27
+
28
+ * Facebook like box widget added.
29
+ * Google + badge widget added.
30
+ * LinkedIn buttons are added.
31
+ * And [more](changelog) features.
32
+
33
  = What buttons can be inserted ? =
34
 
35
  * 105 Social bookmarking buttons with both 16px and 32px button sizes.
36
  * Addthis and Sharethis buttons of all type.
37
+ * Google +1, Facebook like buttons.
38
+ * All Retweet, Digg buttons and LinkedIn buttons.
39
  * StumbleUpon, Reddit and Google Buzz buttons.
40
 
41
  = Where the button can be placed ? =
60
  * [Screenshots](http://www.aakashweb.com/wordpress-plugins/wp-socializer/#screenshots-tab)
61
  * [Support](http://www.aakashweb.com/forum/)
62
  * [Request a Feature](http://www.aakashweb.com/wordpress-plugins/wp-socializer/#respond)
63
+ * [Add a testimonial](http://www.aakashweb.com/wordpress-plugins/wp-socializer/#respond)
64
  * [Donate](http://bit.ly/wpsrDonate)
65
 
66
  = Using WP Socializer =
86
  1. Complete WP Socializer, social bookmarking icons overview.
87
  2. Overview of the posts, showing where and how the buttons can be placed.
88
  3. Admin Interface overview.
89
+ 4. Facebook like box and Google + page badge included in a sidebar using inbuilt widgets.
90
+ 5. Widget for including Facebook like box and Google + page bage.
91
 
92
+ [More Screenshots](http://www.aakashweb.com/wordpress-plugins/wp-socializer/#screenshots)
93
 
94
  == Changelog ==
95
 
96
+ = 2.3 =
97
+ * Facebook like box, Google + badge widget is included.
98
+ * LinkedIn buttons are added.
99
+ * Google Buzz is removed.
100
+ * Templates are updated.
101
+ * Option to change the `rel="nofollow"` attribute.
102
+ * Minor admin UI changes and improvements.
103
+
104
  = 2.2 =
105
  * Conflict with the tinyMCE editor fixed.
106
  * A "WP Socializer" button is added to the visual editing and code editing toolbar for inserting social buttons into posts easily.
screenshot-4.png ADDED
Binary file
screenshot-5.png ADDED
Binary file
wp-socializer.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
  Plugin Name: WP Socializer
4
- Version: 2.2
5
  Plugin URI: http://www.aakashweb.com/
6
- Description: WP Socializer is an advanced and powerful plugin for adding bookmarking buttons like social buttons, addthis, digg, retweet, facebook like/share in posts and excerpts.
7
  Author: Aakash Chakravarthy
8
  Author URI: http://www.aakashweb.com/
9
  */
@@ -14,7 +14,7 @@ if(!defined('WP_CONTENT_URL')) {
14
  $wpsr_url = WP_CONTENT_URL . '/plugins/' . plugin_basename(dirname(__FILE__)) . '/';
15
  }
16
 
17
- define('WPSR_VERSION', '2.2');
18
  define('WPSR_AUTHOR', 'Aakash Chakravarthy');
19
  define('WPSR_URL', $wpsr_url);
20
  define('WPSR_PUBLIC_URL', WPSR_URL . 'public/');
@@ -27,7 +27,7 @@ $wpsr_socialsites_list = array(
27
  'name' => 'Add to favorites',
28
  'titleText' => '{de-title}',
29
  'icon' => 'addtofavorites.png',
30
- 'url' => '{de-url}" onclick="addBookmark(event);" rel="sidebar',
31
  'support32px' => 1,
32
  ),
33
 
@@ -871,21 +871,30 @@ $wpsr_button_code_list = array(
871
  "{addthis-tb-16px}", "{addthis-tb-32px}", "{addthis-sc}",
872
  "{sharethis-vcount}", "{sharethis-hcount}", "{sharethis-large}",
873
  "{sharethis-regular}", "{sharethis-regular2}", "{sharethis-bt}",
874
- "{sharethis-classic}", "{buzz-post}", "{buzz-follow}",
875
- "{plusone-small}", "{plusone-medium}", "{plusone-standard}",
876
- "{plusone-tall}", "{retweet-bt}", "{digg-bt}",
877
- "{facebook-like}", "{facebook-share}", "{reddit-1}",
878
- "{reddit-2}", "{reddit-3}", "{stumbleupon-1}",
879
- "{stumbleupon-2}", "{stumbleupon-3}", "{stumbleupon-5}",
880
- "{custom-1}", "{custom-2}"
881
  );
882
 
883
  $wpsr_addthis_lang_array = array(
884
  'en'=>'English', 'ar'=>'Arabic', 'zh'=>'Chinese', 'cs'=>'Czech', 'da'=>'Danish', 'nl'=>'Dutch','fa'=>'Farsi', 'fi'=>'Finnish', 'fr'=>'French', 'ga'=>'Gaelic', 'de'=>'German', 'el'=>'Greek', 'he'=>'Hebrew', 'hi'=>'Hindi', 'it'=>'Italian', 'ja'=>'Japanese', 'ko'=>'Korean', 'lv'=>'Latvian', 'lt'=>'Lithuanian', 'no'=>'Norwegian', 'pl'=>'Polish', 'pt'=>'Portugese', 'ro'=>'Romanian', 'ru'=>'Russian', 'sk'=>'Slovakian', 'sl'=>'Slovenian', 'es'=>'Spanish', 'sv'=>'Swedish', 'th'=>'Thai', 'ur'=>'Urdu', 'cy'=>'Welsh', 'vi'=>'Vietnamese'
885
  );
886
 
887
- $wpsr_buzz_lang_array = array(
888
- 'en'=>'English', 'ar'=>'Arabic', 'zh'=>'Chinese', 'cs'=>'Czech', 'da'=>'Danish', 'nl'=>'Dutch','fa'=>'Farsi', 'fi'=>'Finnish', 'fr'=>'French', 'ga'=>'Gaelic', 'de'=>'German', 'el'=>'Greek', 'he'=>'Hebrew', 'hi'=>'Hindi', 'it'=>'Italian', 'ja'=>'Japanese', 'ko'=>'Korean', 'lv'=>'Latvian', 'lt'=>'Lithuanian', 'no'=>'Norwegian', 'pl'=>'Polish', 'pt'=>'Portugese', 'ro'=>'Romanian', 'ru'=>'Russian', 'sk'=>'Slovakian', 'sl'=>'Slovenian', 'es'=>'Spanish', 'sv'=>'Swedish', 'th'=>'Thai', 'vi'=>'Vietnamese'
 
 
 
 
 
 
 
 
 
889
  );
890
 
891
  ## Initializations
@@ -908,6 +917,7 @@ require_once('includes/wpsr-socialbuttons.php');
908
  require_once('includes/wpsr-other.php');
909
  require_once('includes/wpsr-custom.php');
910
  require_once('includes/wpsr-shortcodes.php');
 
911
 
912
  ## General functions
913
  function strpos_arr($haystack, $needle) {
@@ -985,11 +995,7 @@ function wp_socializer($to_display, $params=""){
985
  case 'plusone' :
986
  return wpsr_plusone_bt($params);
987
  break;
988
-
989
- case 'buzz' :
990
- return wpsr_buzz($params);
991
- break;
992
-
993
  case 'retweet' :
994
  return wpsr_retweet($params);
995
  break;
@@ -1013,6 +1019,10 @@ function wp_socializer($to_display, $params=""){
1013
  case 'reddit' :
1014
  return wpsr_reddit($params);
1015
  break;
 
 
 
 
1016
 
1017
  case 'custom-1' :
1018
  return wpsr_custom_bt('custom1');
@@ -1103,8 +1113,6 @@ function wpsr_process_template($the_template){
1103
  $wpsr_sharethis_buttons = wpsr_sharethis_bt('buttons');
1104
  $wpsr_sharethis_classic = wpsr_sharethis_bt('classic');
1105
 
1106
- $wpsr_buzz_post = wpsr_buzz_bt('post');
1107
- $wpsr_buzz_follow = wpsr_buzz_bt('follow');
1108
  $wpsr_pone_small = wpsr_plusone_bt('small');
1109
  $wpsr_pone_medium = wpsr_plusone_bt('medium');
1110
  $wpsr_pone_standard = wpsr_plusone_bt('standard');
@@ -1118,6 +1126,10 @@ function wpsr_process_template($the_template){
1118
  $wpsr_reddit_bts = array('', wpsr_reddit_bt('1'), wpsr_reddit_bt('2'), wpsr_reddit_bt('3'));
1119
  $wpsr_stumbleupon_bts = array('', wpsr_stumbleupon_bt('1'), wpsr_stumbleupon_bt('2'), wpsr_stumbleupon_bt('3'), wpsr_stumbleupon_bt('5'));
1120
 
 
 
 
 
1121
  $wpsr_custom1 = wpsr_custom_bt('custom1');
1122
  $wpsr_custom2 = wpsr_custom_bt('custom2');
1123
 
@@ -1126,41 +1138,40 @@ function wpsr_process_template($the_template){
1126
  $wpsr_addthis_tb16px, $wpsr_addthis_tb32px, $wpsr_addthis_sc,
1127
  $wpsr_sharethis_vcount, $wpsr_sharethis_hcount, $wpsr_sharethis_large,
1128
  $wpsr_sharethis_regular, $wpsr_sharethis_regular2, $wpsr_sharethis_buttons,
1129
- $wpsr_sharethis_classic, $wpsr_buzz_post, $wpsr_buzz_follow,
1130
- $wpsr_pone_small, $wpsr_pone_medium, $wpsr_pone_standard,
1131
- $wpsr_pone_tall, $wpsr_retweet_bt, $wpsr_digg_bt,
1132
- $wpsr_facebook_like, $wpsr_facebook_share, $wpsr_reddit_bts[1],
1133
- $wpsr_reddit_bts[2], $wpsr_reddit_bts[3], $wpsr_stumbleupon_bts[1],
1134
- $wpsr_stumbleupon_bts[2], $wpsr_stumbleupon_bts[3], $wpsr_stumbleupon_bts[4],
1135
- $wpsr_custom1, $wpsr_custom2
1136
  );
1137
 
1138
- // RSS Buttons v2.0
1139
  $wpsr_social_bts_16px_rss = wpsr_socialbts_rss('16px');
1140
  $wpsr_social_bts_32px_rss = wpsr_socialbts_rss('32px');
1141
  $wpsr_addthis_rss = wpsr_addthis_rss_bt();
1142
  $wpsr_sharethis_rss = wpsr_sharethis_rss_bt();
1143
- $wpsr_buzz_post_rss = wpsr_buzz_rss_bt('post');
1144
- $wpsr_buzz_follow_rss = wpsr_buzz_rss_bt('follow');
1145
  $wpsr_pone_rss = wpsr_plusone_rss_bt();
1146
  $wpsr_retweet_rss = wpsr_retweet_rss_bt();
1147
  $wpsr_digg_rss = wpsr_digg_rss_bt();
1148
  $wpsr_facebook_rss = wpsr_facebook_rss_bt();
1149
  $wpsr_reddit_rss = wpsr_reddit_rss_bt();
1150
  $wpsr_stumbleupon_rss = wpsr_stumbleupon_rss_bt();
 
1151
 
1152
  $wpsr_button_processed_list_rss = array(
1153
  $wpsr_social_bts_16px_rss, $wpsr_social_bts_32px_rss, $wpsr_addthis_rss,
1154
  $wpsr_addthis_rss, $wpsr_addthis_rss, $wpsr_addthis_rss,
1155
  $wpsr_sharethis_rss, $wpsr_sharethis_rss, $wpsr_sharethis_rss,
1156
  $wpsr_sharethis_rss, $wpsr_sharethis_rss, $wpsr_sharethis_rss,
1157
- $wpsr_sharethis_rss, $wpsr_buzz_post_rss, $wpsr_buzz_follow_rss,
1158
- $wpsr_pone_rss, $wpsr_pone_rss, $wpsr_pone_rss,
1159
- $wpsr_pone_rss, $wpsr_retweet_rss, $wpsr_digg_rss,
1160
- $wpsr_facebook_rss, $wpsr_facebook_rss, $wpsr_reddit_rss,
1161
- $wpsr_reddit_rss, $wpsr_reddit_rss, $wpsr_stumbleupon_rss,
1162
  $wpsr_stumbleupon_rss, $wpsr_stumbleupon_rss, $wpsr_stumbleupon_rss,
1163
- $wpsr_custom1, $wpsr_custom2
 
1164
  );
1165
 
1166
  // Get the placement options | Template 1&2
@@ -1489,13 +1500,12 @@ function wpsr_scripts_adder(){
1489
  echo wpsr_sharethis_script();
1490
  }
1491
 
1492
- if(wpsr_buzz_bt_used() == 1){
1493
- echo wpsr_buzz_script();
1494
- }
1495
-
1496
  if(wpsr_plusone_bt_used() == 1){
1497
  echo wpsr_plusone_script();
1498
  }
 
 
 
1499
  }
1500
 
1501
  if(!$wpsr_settings['disablewpsr']){
@@ -1514,23 +1524,6 @@ function wpsr_footer(){
1514
  }
1515
  add_action('wp_footer', 'wpsr_footer');
1516
 
1517
- ## Admin Dashboard
1518
- if(!function_exists('aw_dashboard')){
1519
- function aw_dashboard() {
1520
- $rss = array('url' => 'http://feeds2.feedburner.com/aakashweb', 'items' => '5','show_date' => 0, 'show_summary'=> 0);
1521
- $subscribe = "window.open('http://feedburner.google.com/fb/a/mailverify?uri=aakashweb', 'win','menubar=1,resizable=1,width=600,height=500'); return false;" ;
1522
- echo '<div class="rss-widget">';
1523
- wp_widget_rss_output($rss);
1524
- echo '<p><a href="#" onclick="' . $subscribe . '">Subscribe to Updates</a> | <a href="http://twitter.com/vaakash" target="_blank">Follow on Twitter</a> | <a href="http://www.aakashweb.com/" target="_blank">Home Page</a></p>';
1525
- echo "</div>";
1526
- }
1527
-
1528
- function aw_dashboard_setup() {
1529
- wp_add_dashboard_widget('aw_dashboard', __( 'AW Latest Updates', 'wpsr'), 'aw_dashboard');
1530
- }
1531
- add_action('wp_dashboard_setup', 'aw_dashboard_setup');
1532
- }
1533
-
1534
  ## Add notification to the dashboard right now
1535
  function wpsr_dashboard_rightnow(){
1536
  $wpsr_settings = get_option('wpsr_settings_data');
@@ -1593,5 +1586,4 @@ function wpsr_add_wpsrbutton_tinymce($plugin_array) {
1593
 
1594
  // init process for button control
1595
  add_action('init', 'wpsr_add_wpsr_button');
1596
-
1597
  ?>
1
  <?php
2
  /*
3
  Plugin Name: WP Socializer
4
+ Version: 2.3
5
  Plugin URI: http://www.aakashweb.com/
6
+ Description: WP Socializer is an advanced and powerful plugin for adding bookmarking buttons like social buttons, Facebook like, Google +1, Addthis, Digg, Twitter retweet buttons in posts and excerpts. Facebook like box and Google+ page badge can also be added in the sidebars using Widgets.
7
  Author: Aakash Chakravarthy
8
  Author URI: http://www.aakashweb.com/
9
  */
14
  $wpsr_url = WP_CONTENT_URL . '/plugins/' . plugin_basename(dirname(__FILE__)) . '/';
15
  }
16
 
17
+ define('WPSR_VERSION', '2.3');
18
  define('WPSR_AUTHOR', 'Aakash Chakravarthy');
19
  define('WPSR_URL', $wpsr_url);
20
  define('WPSR_PUBLIC_URL', WPSR_URL . 'public/');
27
  'name' => 'Add to favorites',
28
  'titleText' => '{de-title}',
29
  'icon' => 'addtofavorites.png',
30
+ 'url' => '{de-url}" onclick="addBookmark(event);',
31
  'support32px' => 1,
32
  ),
33
 
871
  "{addthis-tb-16px}", "{addthis-tb-32px}", "{addthis-sc}",
872
  "{sharethis-vcount}", "{sharethis-hcount}", "{sharethis-large}",
873
  "{sharethis-regular}", "{sharethis-regular2}", "{sharethis-bt}",
874
+ "{sharethis-classic}", "{plusone-small}", "{plusone-medium}",
875
+ "{plusone-standard}", "{plusone-tall}", "{retweet-bt}",
876
+ "{digg-bt}", "{facebook-like}", "{facebook-share}",
877
+ "{reddit-1}", "{reddit-2}", "{reddit-3}",
878
+ "{stumbleupon-1}", "{stumbleupon-2}", "{stumbleupon-3}",
879
+ "{stumbleupon-5}", "{linkedin-standard}", "{linkedin-right}",
880
+ "{linkedin-top}", "{custom-1}", "{custom-2}"
881
  );
882
 
883
  $wpsr_addthis_lang_array = array(
884
  'en'=>'English', 'ar'=>'Arabic', 'zh'=>'Chinese', 'cs'=>'Czech', 'da'=>'Danish', 'nl'=>'Dutch','fa'=>'Farsi', 'fi'=>'Finnish', 'fr'=>'French', 'ga'=>'Gaelic', 'de'=>'German', 'el'=>'Greek', 'he'=>'Hebrew', 'hi'=>'Hindi', 'it'=>'Italian', 'ja'=>'Japanese', 'ko'=>'Korean', 'lv'=>'Latvian', 'lt'=>'Lithuanian', 'no'=>'Norwegian', 'pl'=>'Polish', 'pt'=>'Portugese', 'ro'=>'Romanian', 'ru'=>'Russian', 'sk'=>'Slovakian', 'sl'=>'Slovenian', 'es'=>'Spanish', 'sv'=>'Swedish', 'th'=>'Thai', 'ur'=>'Urdu', 'cy'=>'Welsh', 'vi'=>'Vietnamese'
885
  );
886
 
887
+ $wpsr_shortcodes_list = array(
888
+ 'Social buttons' => '[wpsr_socialbts]',
889
+ 'Addthis' => '[wpsr_addthis]',
890
+ 'Sharethis' => '[wpsr_sharethis]',
891
+ 'Retweet' => '[wpsr_retweet]',
892
+ 'Google +1' => '[wpsr_plusone]',
893
+ 'Digg' => '[wpsr_digg]',
894
+ 'Facebook' => '[wpsr_facebook]',
895
+ 'StumbleUpon' => '[wpsr_stumbleupon]',
896
+ 'Reddit' => '[wpsr_reddit]',
897
+ 'LinkedIn' => '[wpsr_linkedin]',
898
  );
899
 
900
  ## Initializations
917
  require_once('includes/wpsr-other.php');
918
  require_once('includes/wpsr-custom.php');
919
  require_once('includes/wpsr-shortcodes.php');
920
+ require_once('includes/wpsr-widgets.php'); // Since v2.3
921
 
922
  ## General functions
923
  function strpos_arr($haystack, $needle) {
995
  case 'plusone' :
996
  return wpsr_plusone_bt($params);
997
  break;
998
+
 
 
 
 
999
  case 'retweet' :
1000
  return wpsr_retweet($params);
1001
  break;
1019
  case 'reddit' :
1020
  return wpsr_reddit($params);
1021
  break;
1022
+
1023
+ case 'linkedin' :
1024
+ return wpsr_linkedin($params);
1025
+ break;
1026
 
1027
  case 'custom-1' :
1028
  return wpsr_custom_bt('custom1');
1113
  $wpsr_sharethis_buttons = wpsr_sharethis_bt('buttons');
1114
  $wpsr_sharethis_classic = wpsr_sharethis_bt('classic');
1115
 
 
 
1116
  $wpsr_pone_small = wpsr_plusone_bt('small');
1117
  $wpsr_pone_medium = wpsr_plusone_bt('medium');
1118
  $wpsr_pone_standard = wpsr_plusone_bt('standard');
1126
  $wpsr_reddit_bts = array('', wpsr_reddit_bt('1'), wpsr_reddit_bt('2'), wpsr_reddit_bt('3'));
1127
  $wpsr_stumbleupon_bts = array('', wpsr_stumbleupon_bt('1'), wpsr_stumbleupon_bt('2'), wpsr_stumbleupon_bt('3'), wpsr_stumbleupon_bt('5'));
1128
 
1129
+ $wpsr_linkedin_standard = wpsr_linkedin_bt('standard');
1130
+ $wpsr_linkedin_right = wpsr_linkedin_bt('right');
1131
+ $wpsr_linkedin_top = wpsr_linkedin_bt('top');
1132
+
1133
  $wpsr_custom1 = wpsr_custom_bt('custom1');
1134
  $wpsr_custom2 = wpsr_custom_bt('custom2');
1135
 
1138
  $wpsr_addthis_tb16px, $wpsr_addthis_tb32px, $wpsr_addthis_sc,
1139
  $wpsr_sharethis_vcount, $wpsr_sharethis_hcount, $wpsr_sharethis_large,
1140
  $wpsr_sharethis_regular, $wpsr_sharethis_regular2, $wpsr_sharethis_buttons,
1141
+ $wpsr_sharethis_classic, $wpsr_pone_small, $wpsr_pone_medium,
1142
+ $wpsr_pone_standard, $wpsr_pone_tall, $wpsr_retweet_bt,
1143
+ $wpsr_digg_bt, $wpsr_facebook_like, $wpsr_facebook_share,
1144
+ $wpsr_reddit_bts[1], $wpsr_reddit_bts[2], $wpsr_reddit_bts[3],
1145
+ $wpsr_stumbleupon_bts[1], $wpsr_stumbleupon_bts[2], $wpsr_stumbleupon_bts[3],
1146
+ $wpsr_stumbleupon_bts[4], $wpsr_linkedin_standard, $wpsr_linkedin_right,
1147
+ $wpsr_linkedin_top, $wpsr_custom1, $wpsr_custom2
1148
  );
1149
 
1150
+ // RSS Buttons v2.1
1151
  $wpsr_social_bts_16px_rss = wpsr_socialbts_rss('16px');
1152
  $wpsr_social_bts_32px_rss = wpsr_socialbts_rss('32px');
1153
  $wpsr_addthis_rss = wpsr_addthis_rss_bt();
1154
  $wpsr_sharethis_rss = wpsr_sharethis_rss_bt();
 
 
1155
  $wpsr_pone_rss = wpsr_plusone_rss_bt();
1156
  $wpsr_retweet_rss = wpsr_retweet_rss_bt();
1157
  $wpsr_digg_rss = wpsr_digg_rss_bt();
1158
  $wpsr_facebook_rss = wpsr_facebook_rss_bt();
1159
  $wpsr_reddit_rss = wpsr_reddit_rss_bt();
1160
  $wpsr_stumbleupon_rss = wpsr_stumbleupon_rss_bt();
1161
+ $wpsr_linkedin_rss = wpsr_linkedin_rss_bt();
1162
 
1163
  $wpsr_button_processed_list_rss = array(
1164
  $wpsr_social_bts_16px_rss, $wpsr_social_bts_32px_rss, $wpsr_addthis_rss,
1165
  $wpsr_addthis_rss, $wpsr_addthis_rss, $wpsr_addthis_rss,
1166
  $wpsr_sharethis_rss, $wpsr_sharethis_rss, $wpsr_sharethis_rss,
1167
  $wpsr_sharethis_rss, $wpsr_sharethis_rss, $wpsr_sharethis_rss,
1168
+ $wpsr_sharethis_rss, $wpsr_pone_rss, $wpsr_pone_rss,
1169
+ $wpsr_pone_rss, $wpsr_pone_rss, $wpsr_retweet_rss,
1170
+ $wpsr_digg_rss, $wpsr_facebook_rss, $wpsr_facebook_rss,
1171
+ $wpsr_reddit_rss, $wpsr_reddit_rss, $wpsr_reddit_rss,
 
1172
  $wpsr_stumbleupon_rss, $wpsr_stumbleupon_rss, $wpsr_stumbleupon_rss,
1173
+ $wpsr_stumbleupon_rss, $wpsr_linkedin_rss, $wpsr_linkedin_rss,
1174
+ $wpsr_linkedin_rss, $wpsr_custom1, $wpsr_custom2
1175
  );
1176
 
1177
  // Get the placement options | Template 1&2
1500
  echo wpsr_sharethis_script();
1501
  }
1502
 
 
 
 
 
1503
  if(wpsr_plusone_bt_used() == 1){
1504
  echo wpsr_plusone_script();
1505
  }
1506
+ if(wpsr_linkedin_bt_used() == 1){
1507
+ echo wpsr_linkedin_script();
1508
+ }
1509
  }
1510
 
1511
  if(!$wpsr_settings['disablewpsr']){
1524
  }
1525
  add_action('wp_footer', 'wpsr_footer');
1526
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1527
  ## Add notification to the dashboard right now
1528
  function wpsr_dashboard_rightnow(){
1529
  $wpsr_settings = get_option('wpsr_settings_data');
1586
 
1587
  // init process for button control
1588
  add_action('init', 'wpsr_add_wpsr_button');
 
1589
  ?>