WP Socializer - Version 2.0

Version Description

  • Core code completely re-written for future supports and advancements.
  • Additional social bookmarking buttons are added.
  • Addthis buttons are updated and new type of buttons are available.
  • Sharethis buttons are introduced.
  • Twitters Official button is added.
  • Facebook like button code is updated.
  • Google +1 button, StumbleUpon, Reddit buttons are added.
  • Adminitration page completely redesiged.
  • Inbuilt menus are added for inserting buttons into template.
  • One-click templates are introduced.
  • Shortcodes feature is introduced.
  • and more..
Download this release

Release Info

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

Code changes from version 1.0 to 2.0

Files changed (264) hide show
  1. adm-sidebar.php +0 -95
  2. admin/colorpicker/Thumbs.db +0 -0
  3. {js → admin}/colorpicker/arrow.gif +0 -0
  4. {js → admin}/colorpicker/arrow.png +0 -0
  5. {js → admin}/colorpicker/jquery.colorPicker.js +0 -0
  6. admin/images/New Wave Sound.wav +0 -0
  7. admin/images/Thumbs.db +0 -0
  8. admin/images/admin-sprites.png +0 -0
  9. admin/images/aw.png +0 -0
  10. admin/images/buttons/Thumbs.db +0 -0
  11. admin/images/buttons/addthis-buttons.png +0 -0
  12. admin/images/buttons/addthis-tb-16px.png +0 -0
  13. admin/images/buttons/addthis-tb-32px.png +0 -0
  14. {images → admin/images/buttons}/admin-sprites.png +0 -0
  15. admin/images/buttons/adthis-sharecount.png +0 -0
  16. admin/images/buttons/reddit-bts.png +0 -0
  17. admin/images/buttons/sharethis-buttons.png +0 -0
  18. admin/images/buttons/sharethis-classic.png +0 -0
  19. admin/images/buttons/sharethis-hcount.png +0 -0
  20. admin/images/buttons/sharethis-large.png +0 -0
  21. admin/images/buttons/sharethis-regular-notext.png +0 -0
  22. admin/images/buttons/sharethis-regular.png +0 -0
  23. admin/images/buttons/sharethis-vcount.png +0 -0
  24. admin/images/buttons/stumbleupon-bts.png +0 -0
  25. admin/images/codeIcon.png +0 -0
  26. admin/images/donateBg.png +0 -0
  27. admin/images/footer-bg.png +0 -0
  28. admin/images/grey-bg.png +0 -0
  29. admin/images/header-bg.png +0 -0
  30. admin/images/likeBg.png +0 -0
  31. admin/images/load.gif +0 -0
  32. admin/images/menu-bg-green.png +0 -0
  33. admin/images/menu-bg.png +0 -0
  34. admin/images/menu-hover.png +0 -0
  35. admin/images/one-click-header.jpg +0 -0
  36. admin/images/wp-socializer-20.png +0 -0
  37. {images → admin/images}/wp-socializer.png +0 -0
  38. admin/templates/images/Thumbs.db +0 -0
  39. admin/templates/images/template_addthis_compact.png +0 -0
  40. admin/templates/images/template_addthis_large.png +0 -0
  41. admin/templates/images/template_compact.png +0 -0
  42. admin/templates/images/template_compact_inv.png +0 -0
  43. admin/templates/images/template_float_left_1.png +0 -0
  44. admin/templates/images/template_float_right_1.png +0 -0
  45. admin/templates/images/template_large.png +0 -0
  46. admin/templates/images/template_large_inv.png +0 -0
  47. admin/templates/images/template_sharethis_compact.png +0 -0
  48. admin/templates/images/template_sharethis_large.png +0 -0
  49. admin/templates/images/template_socialbts_16px_1.png +0 -0
  50. admin/templates/images/template_socialbts_32px_1.png +0 -0
  51. admin/templates/templates.xml +622 -0
  52. admin/tinymce/editor_plugin.js +95 -0
  53. admin/tinymce/icon.png +0 -0
  54. admin/wpsr-admin-css.css +690 -0
  55. admin/wpsr-admin-js.js +399 -0
  56. admin/wpsr-admin-mini-css.css +47 -0
  57. admin/wpsr-admin-other.php +99 -0
  58. admin/wpsr-admin.php +1650 -0
  59. admin/wpsr-services-selector.php +211 -0
  60. images/Thumbs.db +0 -0
  61. images/help.png +0 -0
  62. images/paypalDonateButton.png +0 -0
  63. images/settings.png +0 -0
  64. includes/wpsr-addthis.php +268 -0
  65. socializer-custom.php → includes/wpsr-custom.php +1 -1
  66. includes/wpsr-digg.php +111 -0
  67. includes/wpsr-facebook.php +147 -0
  68. includes/wpsr-google.php +251 -0
  69. includes/wpsr-other.php +150 -0
  70. includes/wpsr-retweet.php +195 -0
  71. includes/wpsr-sharethis.php +186 -0
  72. includes/wpsr-shortcodes.php +77 -0
  73. includes/wpsr-socialbuttons.php +455 -0
  74. languages/wpsr-es_ES.mo +0 -0
  75. languages/wpsr-es_ES.po +705 -257
  76. languages/wpsr-zh_CN.mo +0 -0
  77. languages/wpsr-zh_CN.po +723 -255
  78. public/buttons/Thumbs.db +0 -0
  79. public/buttons/buzz-bt.png +0 -0
  80. public/buttons/digg-bt.png +0 -0
  81. public/buttons/facebook-bt.png +0 -0
  82. public/buttons/reddit-bt.gif +0 -0
  83. public/buttons/retweet-bt.png +0 -0
  84. public/buttons/sharethis-bt.png +0 -0
  85. public/buttons/stumbleupon-bt.gif +0 -0
  86. public/css/wp-socializer-buttons-css.css +129 -0
  87. public/js/wp-socializer-bookmark-js.js +16 -0
  88. {social-icons → public/social-icons}/16/Thumbs.db +0 -0
  89. {social-icons → public/social-icons}/16/addtofavorites.png +0 -0
  90. {social-icons → public/social-icons}/16/barrapunto.png +0 -0
  91. {social-icons → public/social-icons}/16/bitacoras.png +0 -0
  92. {social-icons → public/social-icons}/16/blinklist.png +0 -0
  93. public/social-icons/16/blip.png +0 -0
  94. {social-icons → public/social-icons}/16/blogger.png +0 -0
  95. {social-icons → public/social-icons}/16/blogmarks.png +0 -0
  96. {social-icons → public/social-icons}/16/blogospherenews.png +0 -0
  97. {social-icons → public/social-icons}/16/blogter.png +0 -0
  98. {social-icons → public/social-icons}/16/bluedot.png +0 -0
  99. {social-icons → public/social-icons}/16/box.png +0 -0
  100. {social-icons → public/social-icons}/16/connotea.png +0 -0
  101. {social-icons → public/social-icons}/16/current.png +0 -0
  102. {social-icons → public/social-icons}/16/delicious.png +0 -0
  103. {social-icons → public/social-icons}/16/designbump.png +0 -0
  104. {social-icons → public/social-icons}/16/designfloat.png +0 -0
  105. {social-icons → public/social-icons}/16/digg.png +0 -0
  106. {social-icons → public/social-icons}/16/diggita.png +0 -0
  107. {social-icons → public/social-icons}/16/diigo.png +0 -0
  108. {social-icons → public/social-icons}/16/dotnetkicks.png +0 -0
  109. {social-icons → public/social-icons}/16/dzone.png +0 -0
  110. {social-icons → public/social-icons}/16/ekudos.png +0 -0
  111. social-icons/16/email_link.png → public/social-icons/16/email.png +0 -0
  112. {social-icons → public/social-icons}/16/facebook.png +0 -0
  113. {social-icons → public/social-icons}/16/fark.png +0 -0
  114. {social-icons → public/social-icons}/16/fleck.png +0 -0
  115. {social-icons → public/social-icons}/16/friendfeed.png +0 -0
  116. {social-icons → public/social-icons}/16/friendster.png +0 -0
  117. {social-icons → public/social-icons}/16/fsdaily.png +0 -0
  118. public/social-icons/16/gadugadu.png +0 -0
  119. {social-icons → public/social-icons}/16/globalgrind.png +0 -0
  120. {social-icons → public/social-icons}/16/google.png +0 -0
  121. {social-icons → public/social-icons}/16/googlebuzz.png +0 -0
  122. {social-icons → public/social-icons}/16/googlereader.png +0 -0
  123. public/social-icons/16/grono.png +0 -0
  124. {social-icons → public/social-icons}/16/gwar.png +0 -0
  125. {social-icons → public/social-icons}/16/hackernews.png +0 -0
  126. {social-icons → public/social-icons}/16/haohao.png +0 -0
  127. {social-icons → public/social-icons}/16/healthranker.png +0 -0
  128. {social-icons → public/social-icons}/16/hellotxt.png +0 -0
  129. {social-icons → public/social-icons}/16/hemidemi.png +0 -0
  130. {social-icons → public/social-icons}/16/hyves.png +0 -0
  131. {social-icons → public/social-icons}/16/identica.png +0 -0
  132. {social-icons → public/social-icons}/16/im.png +0 -0
  133. {social-icons → public/social-icons}/16/indianpad.png +0 -0
  134. public/social-icons/16/instapaper.png +0 -0
  135. public/social-icons/16/kciuk.png +0 -0
  136. {social-icons → public/social-icons}/16/kirtsy.png +0 -0
  137. {social-icons → public/social-icons}/16/laaikit.png +0 -0
  138. {social-icons → public/social-icons}/16/latafanera.png +0 -0
  139. {social-icons → public/social-icons}/16/linkagogo.png +0 -0
  140. {social-icons → public/social-icons}/16/linkarena.png +0 -0
  141. {social-icons → public/social-icons}/16/linkedin.png +0 -0
  142. {social-icons → public/social-icons}/16/linkter.png +0 -0
  143. {social-icons → public/social-icons}/16/live.png +0 -0
  144. {social-icons → public/social-icons}/16/meneame.png +0 -0
  145. {social-icons → public/social-icons}/16/misterwong.png +0 -0
  146. {social-icons → public/social-icons}/16/mixx.png +0 -0
  147. {social-icons → public/social-icons}/16/mob.png +0 -0
  148. {social-icons → public/social-icons}/16/msnreporter.png +0 -0
  149. {social-icons → public/social-icons}/16/muti.png +0 -0
  150. {social-icons → public/social-icons}/16/myshare.png +0 -0
  151. {social-icons → public/social-icons}/16/myspace.png +0 -0
  152. {social-icons → public/social-icons}/16/n4g.png +0 -0
  153. {social-icons → public/social-icons}/16/netvibes.png +0 -0
  154. {social-icons → public/social-icons}/16/netvouz.png +0 -0
  155. {social-icons → public/social-icons}/16/newsvine.png +0 -0
  156. public/social-icons/16/nk.png +0 -0
  157. {social-icons → public/social-icons}/16/nujij.png +0 -0
  158. {social-icons → public/social-icons}/16/orkut.png +0 -0
  159. public/social-icons/16/osnews.png +0 -0
  160. {social-icons → public/social-icons}/16/pdf.png +0 -0
  161. {social-icons → public/social-icons}/16/ping.png +0 -0
  162. {social-icons → public/social-icons}/16/posterous.png +0 -0
  163. {social-icons → public/social-icons}/16/printfriendly.png +0 -0
  164. {social-icons → public/social-icons}/16/propeller.png +0 -0
  165. {social-icons → public/social-icons}/16/ratimarks.png +0 -0
  166. {social-icons → public/social-icons}/16/readme.html +0 -0
  167. {social-icons → public/social-icons}/16/rec6.png +0 -0
  168. {social-icons → public/social-icons}/16/reddit.png +0 -0
  169. {social-icons → public/social-icons}/16/rss.png +0 -0
  170. {social-icons → public/social-icons}/16/scoopeo.png +0 -0
  171. {social-icons → public/social-icons}/16/segnalo.png +0 -0
  172. {social-icons → public/social-icons}/16/shetoldme.png +0 -0
  173. {social-icons → public/social-icons}/16/simpy.png +0 -0
  174. {social-icons → public/social-icons}/16/slashdot.png +0 -0
  175. {social-icons → public/social-icons}/16/socialogs.png +0 -0
  176. {social-icons → public/social-icons}/16/sphere.png +0 -0
  177. {social-icons → public/social-icons}/16/sphinn.png +0 -0
  178. {social-icons → public/social-icons}/16/stumbleupon.png +0 -0
  179. {social-icons → public/social-icons}/16/techmeme.png +0 -0
  180. {social-icons → public/social-icons}/16/technorati.png +0 -0
  181. {social-icons → public/social-icons}/16/tipd.png +0 -0
  182. {social-icons → public/social-icons}/16/tumblr.png +0 -0
  183. {social-icons → public/social-icons}/16/twitter.png +0 -0
  184. {social-icons → public/social-icons}/16/upnews.png +0 -0
  185. {social-icons → public/social-icons}/16/viadeo.png +0 -0
  186. {social-icons → public/social-icons}/16/webnews.png +0 -0
  187. {social-icons → public/social-icons}/16/webride.png +0 -0
  188. {social-icons → public/social-icons}/16/wikio.png +0 -0
  189. {social-icons → public/social-icons}/16/wists.png +0 -0
  190. {social-icons → public/social-icons}/16/wykop.png +0 -0
  191. {social-icons → public/social-icons}/16/xerpi.png +0 -0
  192. {social-icons → public/social-icons}/16/yahoobuzz.png +0 -0
  193. {social-icons → public/social-icons}/16/yahoomyweb.png +0 -0
  194. {social-icons → public/social-icons}/16/yiggit.png +0 -0
  195. {social-icons → public/social-icons}/32/Thumbs.db +0 -0
  196. {social-icons → public/social-icons}/32/addtofavorites.png +0 -0
  197. {social-icons → public/social-icons}/32/blinklist.png +0 -0
  198. public/social-icons/32/blip.png +0 -0
  199. {social-icons → public/social-icons}/32/blogger.png +0 -0
  200. {social-icons → public/social-icons}/32/delicious.png +0 -0
  201. {social-icons → public/social-icons}/32/designbump.png +0 -0
  202. {social-icons → public/social-icons}/32/designfloat.png +0 -0
  203. {social-icons → public/social-icons}/32/digg.png +0 -0
  204. {social-icons → public/social-icons}/32/dzone.png +0 -0
  205. {social-icons → public/social-icons}/32/email.png +0 -0
  206. {social-icons → public/social-icons}/32/facebook.png +0 -0
  207. {social-icons → public/social-icons}/32/friendfeed.png +0 -0
  208. {social-icons → public/social-icons}/32/friendster.png +0 -0
  209. public/social-icons/32/gadugadu.png +0 -0
  210. {social-icons → public/social-icons}/32/google.png +0 -0
  211. {social-icons → public/social-icons}/32/googlebuzz.png +0 -0
  212. {social-icons → public/social-icons}/32/googlereader.png +0 -0
  213. public/social-icons/32/grono.png +0 -0
  214. {social-icons → public/social-icons}/32/hyves.png +0 -0
  215. public/social-icons/32/instapaper.png +0 -0
  216. public/social-icons/32/kciuk.png +0 -0
  217. {social-icons → public/social-icons}/32/linkedin.png +0 -0
  218. {social-icons → public/social-icons}/32/live.png +0 -0
  219. {social-icons → public/social-icons}/32/misterwong.png +0 -0
  220. {social-icons → public/social-icons}/32/mixx.png +0 -0
  221. {social-icons → public/social-icons}/32/myspace.png +0 -0
  222. {social-icons → public/social-icons}/32/netvibes.png +0 -0
  223. {social-icons → public/social-icons}/32/newsvine.png +0 -0
  224. public/social-icons/32/nk.png +0 -0
  225. {social-icons → public/social-icons}/32/orkut.png +0 -0
  226. public/social-icons/32/osnews.png +0 -0
  227. {social-icons → public/social-icons}/32/ping.png +0 -0
  228. {social-icons → public/social-icons}/32/posterous.png +0 -0
  229. {social-icons → public/social-icons}/32/printfriendly.png +0 -0
  230. {social-icons → public/social-icons}/32/readme.html +0 -0
  231. {social-icons → public/social-icons}/32/reddit.png +0 -0
  232. {social-icons → public/social-icons}/32/rss.png +0 -0
  233. {social-icons → public/social-icons}/32/sphinn.png +0 -0
  234. {social-icons → public/social-icons}/32/stumbleupon.png +0 -0
  235. {social-icons → public/social-icons}/32/technorati.png +0 -0
  236. {social-icons → public/social-icons}/32/tumblr.png +0 -0
  237. {social-icons → public/social-icons}/32/twitter.png +0 -0
  238. public/social-icons/32/wykop.png +0 -0
  239. {social-icons → public/social-icons}/32/yahoo.png +0 -0
  240. {social-icons → public/social-icons}/32/yahoobuzz.png +0 -0
  241. {social-icons → public/social-icons}/Thumbs.db +0 -0
  242. public/social-icons/wp-socializer-sprite-16px.png +0 -0
  243. public/social-icons/wp-socializer-sprite-32px.png +0 -0
  244. {social-icons → public/social-icons}/wp-socializer-sprite-mask-16px.gif +0 -0
  245. {social-icons → public/social-icons}/wp-socializer-sprite-mask-32px.gif +0 -0
  246. readme.txt +54 -65
  247. screenshot-1.png +0 -0
  248. screenshot-2.png +0 -0
  249. screenshot-3.png +0 -0
  250. screenshot-4.png +0 -0
  251. social-icons/wp-socializer-sprite-16px.png +0 -0
  252. social-icons/wp-socializer-sprite-32px.png +0 -0
  253. socializer-addthis.php +0 -116
  254. socializer-admin-css.css +0 -354
  255. socializer-admin-js.js +0 -169
  256. socializer-admin.php +0 -933
  257. socializer-buzz.php +0 -74
  258. socializer-digg.php +0 -62
  259. socializer-facebook.php +0 -99
  260. socializer-retweet.php +0 -124
  261. socializer-socialbuttons.php +0 -279
  262. wp-socializer-buttons-css.css +0 -70
  263. wp-socializer-buttons-js.js +0 -12
  264. wp-socializer.php +787 -276
adm-sidebar.php DELETED
@@ -1,95 +0,0 @@
1
- <?php
2
- /** Sidebar for admin page **/
3
- function wpsr_admin_sidebar(){
4
- global $wpsr_pluginpath, $wpsr_donate_link;
5
- $txtDomain = 'wpsr';
6
- $plugin_name = 'wp-socializer';
7
-
8
- echo "
9
- <div id='sidebar'>
10
- <div class='donateBt'><a href='$wpsr_donate_link' target='_blank'><img src='{$wpsr_pluginpath}images/paypalDonateButton.png' alt='Donate' title='" . __('Donate and support this plugin\'s future', $txtDomain) . "'/></a></div>
11
- <ul class='admSprites'>
12
-
13
- <li><a class='admSpr-support' href='http://www.aakashweb.com/wordpress-plugins/{$plugin_name}/' target='_blank'>
14
- " . __('Plugin Support', $txtDomain) . "
15
- </a></li>
16
-
17
- <li><a class='admSpr-documentation' href='http://www.aakashweb.com/faqs/wordpress-plugins/{$plugin_name}/' target='_blank'>
18
- " . __('Plugin Documentation', $txtDomain) . "
19
- </a></li>
20
-
21
- <li><a class='admSpr-bug' href='http://www.aakashweb.com/forum/' target='_blank'>
22
- " . __('Bugs Report', $txtDomain) . "
23
- </a></li>
24
-
25
- <li><a class='admSpr-faq' href='http://www.aakashweb.com/faqs/wordpress-plugins/{$plugin_name}/' target='_blank'>
26
- " . __('FAQ\'s', $txtDomain) . "
27
- </a></li>
28
-
29
- <li><a class='admSpr-feature' href='http://www.aakashweb.com/forum/' target='_blank'>
30
- " . __('Request a feature', $txtDomain) . "
31
- </a></li>
32
-
33
- <li><a class='admSpr-author' href='http://www.aakashweb.com/' target='_blank'>
34
- " . __('Author Website', $txtDomain) . "
35
- </a></li>
36
-
37
- <li><a class='admSpr-donate' href='$wpsr_donate_link' target='_blank'>
38
- " . __('Support this plugin', $txtDomain) . "
39
- </a></li>
40
-
41
- <li><a class='admSpr-twitter' href='http://twitter.com/vaakash' target='_blank'>
42
- " . __('Follow the author', $txtDomain) . "
43
- </a></li>
44
-
45
- <li><a class='admSpr-rss' href='#' onclick='openSubForm();'>
46
- " . __('Subscribe to Updates', $txtDomain) . "
47
- </a></li>
48
-
49
- <li><a class='admSpr-addthis' href='#' onclick='openAddthis();'>
50
- " . __('Promote this plugin', $txtDomain) . "
51
- </a></li>
52
-
53
- </ul>
54
-
55
- <h4>" . __('More plugins', $txtDomain) . "</h4>
56
-
57
- <ul class='admSprites' style='margin-top:-6px'>
58
-
59
- <li><a class='admSpr-star' href='http://www.aakashweb.com/wordpress-plugins/wp-socializer/' target='_blank'>
60
- WP Socializer
61
- </a></li>
62
-
63
- <li><a class='admSpr-star' href='http://www.aakashweb.com/wordpress-plugins/wp-selected-text-sharer/' target='_blank'>
64
- WP Selected Text Sharer
65
- </a></li>
66
-
67
- <li><a class='admSpr-star' href='http://www.aakashweb.com/wordpress-plugins/html-javascript-adder/' target='_blank'>
68
- HTML Javascript Adder
69
- </a></li>
70
-
71
- <li><a class='admSpr-star' href='http://www.aakashweb.com/wordpress-plugins/shortcoder/' target='_blank'>
72
- Shortcoder
73
- </a></li>
74
-
75
- <li><a class='admSpr-star' href='http://www.aakashweb.com/wordpress-plugins/announcer/' target='_blank'>
76
- Announcer
77
- </a></li>
78
-
79
- <li><a class='admSpr-star' href='http://www.aakashweb.com/wordpress-plugins/super-rss-reader/' target='_blank'>
80
- Super RSS Reader
81
- </a></li>
82
-
83
- </ul>
84
-
85
- <h4>" . __('Reference', $txtDomain) . "</h4>
86
- <ul style='margin-top:-6px'>
87
- <li><a class='admSpr-documentation' href='http://www.aakashweb.com/faqs/wordpress-plugins/{$plugin_name}/theme-functions/' target='_blank'>
88
- " . __('Theme Functions', $txtDomain) . "
89
- </a></li>
90
- </ul>
91
-
92
- </div>
93
- ";
94
- }
95
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/colorpicker/Thumbs.db ADDED
Binary file
{js → admin}/colorpicker/arrow.gif RENAMED
File without changes
{js → admin}/colorpicker/arrow.png RENAMED
File without changes
{js → admin}/colorpicker/jquery.colorPicker.js RENAMED
File without changes
admin/images/New Wave Sound.wav ADDED
Binary file
admin/images/Thumbs.db ADDED
Binary file
admin/images/admin-sprites.png ADDED
Binary file
admin/images/aw.png ADDED
Binary file
admin/images/buttons/Thumbs.db ADDED
Binary file
admin/images/buttons/addthis-buttons.png ADDED
Binary file
admin/images/buttons/addthis-tb-16px.png ADDED
Binary file
admin/images/buttons/addthis-tb-32px.png ADDED
Binary file
{images → admin/images/buttons}/admin-sprites.png RENAMED
File without changes
admin/images/buttons/adthis-sharecount.png ADDED
Binary file
admin/images/buttons/reddit-bts.png ADDED
Binary file
admin/images/buttons/sharethis-buttons.png ADDED
Binary file
admin/images/buttons/sharethis-classic.png ADDED
Binary file
admin/images/buttons/sharethis-hcount.png ADDED
Binary file
admin/images/buttons/sharethis-large.png ADDED
Binary file
admin/images/buttons/sharethis-regular-notext.png ADDED
Binary file
admin/images/buttons/sharethis-regular.png ADDED
Binary file
admin/images/buttons/sharethis-vcount.png ADDED
Binary file
admin/images/buttons/stumbleupon-bts.png ADDED
Binary file
admin/images/codeIcon.png ADDED
Binary file
admin/images/donateBg.png ADDED
Binary file
admin/images/footer-bg.png ADDED
Binary file
admin/images/grey-bg.png ADDED
Binary file
admin/images/header-bg.png ADDED
Binary file
admin/images/likeBg.png ADDED
Binary file
admin/images/load.gif ADDED
Binary file
admin/images/menu-bg-green.png ADDED
Binary file
admin/images/menu-bg.png ADDED
Binary file
admin/images/menu-hover.png ADDED
Binary file
admin/images/one-click-header.jpg ADDED
Binary file
admin/images/wp-socializer-20.png ADDED
Binary file
{images → admin/images}/wp-socializer.png RENAMED
File without changes
admin/templates/images/Thumbs.db ADDED
Binary file
admin/templates/images/template_addthis_compact.png ADDED
Binary file
admin/templates/images/template_addthis_large.png ADDED
Binary file
admin/templates/images/template_compact.png ADDED
Binary file
admin/templates/images/template_compact_inv.png ADDED
Binary file
admin/templates/images/template_float_left_1.png ADDED
Binary file
admin/templates/images/template_float_right_1.png ADDED
Binary file
admin/templates/images/template_large.png ADDED
Binary file
admin/templates/images/template_large_inv.png ADDED
Binary file
admin/templates/images/template_sharethis_compact.png ADDED
Binary file
admin/templates/images/template_sharethis_large.png ADDED
Binary file
admin/templates/images/template_socialbts_16px_1.png ADDED
Binary file
admin/templates/images/template_socialbts_32px_1.png ADDED
Binary file
admin/templates/templates.xml ADDED
@@ -0,0 +1,622 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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;;
12
+ wpsr_template1_inpage==1;;
13
+ wpsr_template1_incategory==0;;
14
+ wpsr_template1_intag==0;;
15
+ wpsr_template1_indate==0;;
16
+ wpsr_template1_inauthor==0;;
17
+ wpsr_template1_insearch==0;;
18
+ wpsr_template1_inexcerpt==0;;
19
+ wpsr_template1_infeed==0;;
20
+ wpsr_template1_abvcontent==1;;
21
+ wpsr_template1_blwcontent==0;;
22
+
23
+ wpsr_template2_inhome==1;;
24
+ wpsr_template2_insingle==1;;
25
+ wpsr_template2_inpage==1;;
26
+ wpsr_template2_incategory==1;;
27
+ wpsr_template2_intag==1;;
28
+ wpsr_template2_indate==1;;
29
+ wpsr_template2_inauthor==1;;
30
+ wpsr_template2_insearch==1;;
31
+ wpsr_template2_inexcerpt==1;;
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>
48
+
49
+ <template2>
50
+ <![CDATA[
51
+ <h3>Share and Enjoy</h3>
52
+ {social-bts-16px}
53
+ ]]>
54
+ </template2>
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;;
68
+ wpsr_template1_inpage==1;;
69
+ wpsr_template1_incategory==0;;
70
+ wpsr_template1_intag==0;;
71
+ wpsr_template1_indate==0;;
72
+ wpsr_template1_inauthor==0;;
73
+ wpsr_template1_insearch==0;;
74
+ wpsr_template1_inexcerpt==0;;
75
+ wpsr_template1_infeed==0;;
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;;
82
+ wpsr_template2_incategory==1;;
83
+ wpsr_template2_intag==1;;
84
+ wpsr_template2_indate==1;;
85
+ wpsr_template2_inauthor==1;;
86
+ wpsr_template2_insearch==1;;
87
+ wpsr_template2_inexcerpt==1;;
88
+ wpsr_template2_infeed==1;;
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>
105
+
106
+ <template2>
107
+ <![CDATA[
108
+ <h3>Share and Enjoy</h3>
109
+ {social-bts-32px}
110
+ ]]>
111
+ </template2>
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;;
125
+ wpsr_template1_inpage==1;;
126
+ wpsr_template1_incategory==1;;
127
+ wpsr_template1_intag==1;;
128
+ wpsr_template1_indate==1;;
129
+ wpsr_template1_inauthor==1;;
130
+ wpsr_template1_insearch==1;;
131
+ wpsr_template1_inexcerpt==0;;
132
+ wpsr_template1_infeed==1;;
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;;
139
+ wpsr_template2_incategory==0;;
140
+ wpsr_template2_intag==0;;
141
+ wpsr_template2_indate==0;;
142
+ wpsr_template2_inauthor==0;;
143
+ wpsr_template2_insearch==0;;
144
+ wpsr_template2_inexcerpt==0;;
145
+ wpsr_template2_infeed==0;;
146
+ wpsr_template2_abvcontent==0;;
147
+ wpsr_template2_blwcontent==1;;
148
+ </settings>
149
+ <template1>
150
+ <![CDATA[
151
+ {social-bts-16px}
152
+ ]]>
153
+ </template1>
154
+
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;;
181
+ wpsr_template1_inpage==1;;
182
+ wpsr_template1_incategory==1;;
183
+ wpsr_template1_intag==1;;
184
+ wpsr_template1_indate==1;;
185
+ wpsr_template1_inauthor==1;;
186
+ wpsr_template1_insearch==1;;
187
+ wpsr_template1_inexcerpt==1;;
188
+ wpsr_template1_infeed==1;;
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;;
195
+ wpsr_template2_incategory==0;;
196
+ wpsr_template2_intag==0;;
197
+ wpsr_template2_indate==0;;
198
+ wpsr_template2_inauthor==0;;
199
+ wpsr_template2_insearch==0;;
200
+ wpsr_template2_inexcerpt==0;;
201
+ wpsr_template2_infeed==0;;
202
+ wpsr_template2_abvcontent==0;;
203
+ wpsr_template2_blwcontent==1;;
204
+ </settings>
205
+
206
+ <template1>
207
+ <![CDATA[
208
+ {social-bts-32px}
209
+ ]]>
210
+ </template1>
211
+
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;;
232
+ wpsr_template1_insingle==1;;
233
+ wpsr_template1_inpage==1;;
234
+ wpsr_template1_incategory==1;;
235
+ wpsr_template1_intag==1;;
236
+ wpsr_template1_indate==1;;
237
+ wpsr_template1_inauthor==1;;
238
+ wpsr_template1_insearch==1;;
239
+ wpsr_template1_inexcerpt==1;;
240
+ wpsr_template1_infeed==0;;
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;;
247
+ wpsr_template2_incategory==1;;
248
+ wpsr_template2_intag==1;;
249
+ wpsr_template2_indate==1;;
250
+ wpsr_template2_inauthor==1;;
251
+ wpsr_template2_insearch==1;;
252
+ wpsr_template2_inexcerpt==1;;
253
+ wpsr_template2_infeed==1;;
254
+ wpsr_template2_abvcontent==0;;
255
+ wpsr_template2_blwcontent==1;;
256
+ </settings>
257
+
258
+ <template1>
259
+ <![CDATA[
260
+ <div class="buttons-wrap">{addthis-tb-16px}</div>
261
+ ]]>
262
+ </template1>
263
+
264
+ <template2>
265
+ <![CDATA[
266
+ <h3>Share and Enjoy</h3>
267
+ <div class="buttons-wrap">{addthis-sc}</div>
268
+ ]]>
269
+ </template2>
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;;
277
+ wpsr_template1_insingle==1;;
278
+ wpsr_template1_inpage==1;;
279
+ wpsr_template1_incategory==1;;
280
+ wpsr_template1_intag==1;;
281
+ wpsr_template1_indate==1;;
282
+ wpsr_template1_inauthor==1;;
283
+ wpsr_template1_insearch==1;;
284
+ wpsr_template1_inexcerpt==1;;
285
+ wpsr_template1_infeed==0;;
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;;
292
+ wpsr_template2_incategory==1;;
293
+ wpsr_template2_intag==1;;
294
+ wpsr_template2_indate==1;;
295
+ wpsr_template2_inauthor==1;;
296
+ wpsr_template2_insearch==1;;
297
+ wpsr_template2_inexcerpt==1;;
298
+ wpsr_template2_infeed==1;;
299
+ wpsr_template2_abvcontent==0;;
300
+ wpsr_template2_blwcontent==1;;
301
+ </settings>
302
+
303
+ <template1>
304
+ <![CDATA[
305
+ <div class="buttons-wrap">{addthis-tb-32px}</div>
306
+ ]]>
307
+ </template1>
308
+
309
+ <template2>
310
+ <![CDATA[
311
+ <h3>Share and Enjoy</h3>
312
+ <div class="buttons-wrap">{addthis-sc}</div>
313
+ ]]>
314
+ </template2>
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;;
322
+ wpsr_template1_inpage==1;;
323
+ wpsr_template1_incategory==0;;
324
+ wpsr_template1_intag==0;;
325
+ wpsr_template1_indate==0;;
326
+ wpsr_template1_inauthor==0;;
327
+ wpsr_template1_insearch==0;;
328
+ wpsr_template1_inexcerpt==0;;
329
+ wpsr_template1_infeed==0;;
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;;
336
+ wpsr_template2_incategory==1;;
337
+ wpsr_template2_intag==1;;
338
+ wpsr_template2_indate==1;;
339
+ wpsr_template2_inauthor==1;;
340
+ wpsr_template2_insearch==1;;
341
+ wpsr_template2_inexcerpt==1;;
342
+ wpsr_template2_infeed==0;;
343
+ wpsr_template2_abvcontent==0;;
344
+ wpsr_template2_blwcontent==1;;
345
+ </settings>
346
+
347
+ <template1>
348
+ <![CDATA[
349
+ <p>{sharethis-regular}</p>
350
+ ]]>
351
+ </template1>
352
+
353
+ <template2>
354
+ <![CDATA[
355
+ <h3>Share and Enjoy</h3>
356
+ <p>{sharethis-hcount}</p>
357
+ ]]>
358
+ </template2>
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;;
369
+ wpsr_template1_incategory==0;;
370
+ wpsr_template1_intag==0;;
371
+ wpsr_template1_indate==0;;
372
+ wpsr_template1_inauthor==0;;
373
+ wpsr_template1_insearch==0;;
374
+ wpsr_template1_inexcerpt==0;;
375
+ wpsr_template1_infeed==0;;
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;;
382
+ wpsr_template2_incategory==1;;
383
+ wpsr_template2_intag==1;;
384
+ wpsr_template2_indate==1;;
385
+ wpsr_template2_inauthor==1;;
386
+ wpsr_template2_insearch==1;;
387
+ wpsr_template2_inexcerpt==1;;
388
+ wpsr_template2_infeed==0;;
389
+ wpsr_template2_abvcontent==0;;
390
+ wpsr_template2_blwcontent==1;;
391
+ </settings>
392
+
393
+ <template1>
394
+ <![CDATA[
395
+ <p>{sharethis-bt}</p>
396
+ ]]>
397
+ </template1>
398
+
399
+ <template2>
400
+ <![CDATA[
401
+ <h3>Share and Enjoy</h3>
402
+ <p>{sharethis-vcount}</p>
403
+ ]]>
404
+ </template2>
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;;
412
+ wpsr_digg_type==DiggMedium;;
413
+ wpsr_facebook_btstyle==box_count;;
414
+ wpsr_facebook_showfaces==0;;
415
+ wpsr_facebook_width==80;;
416
+
417
+ wpsr_template1_inhome==0;;
418
+ wpsr_template1_insingle==1;;
419
+ wpsr_template1_inpage==1;;
420
+ wpsr_template1_incategory==0;;
421
+ wpsr_template1_intag==0;;
422
+ wpsr_template1_indate==0;;
423
+ wpsr_template1_inauthor==0;;
424
+ wpsr_template1_insearch==0;;
425
+ wpsr_template1_inexcerpt==0;;
426
+ wpsr_template1_infeed==0;;
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;;
433
+ wpsr_template2_incategory==1;;
434
+ wpsr_template2_intag==1;;
435
+ wpsr_template2_indate==1;;
436
+ wpsr_template2_inauthor==1;;
437
+ wpsr_template2_insearch==1;;
438
+ wpsr_template2_inexcerpt==1;;
439
+ wpsr_template2_infeed==0;;
440
+ wpsr_template2_abvcontent==0;;
441
+ wpsr_template2_blwcontent==1;;
442
+ </settings>
443
+
444
+ <template1>
445
+ <![CDATA[
446
+ <div class="padding10 floatright">
447
+ {retweet-bt}
448
+ <br/><br/>
449
+ {facebook-like}
450
+ <br/><br/>
451
+ {digg-bt}
452
+ <br/><br/>
453
+ {stumbleupon-5}
454
+ <br/><br/>
455
+ {plusone-tall}
456
+ </div>
457
+ ]]>
458
+ </template1>
459
+
460
+ <template2>
461
+ <![CDATA[
462
+ <h2>Share and Enjoy</h2>
463
+ {social-bts-32px}
464
+ ]]>
465
+ </template2>
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;;
473
+ wpsr_digg_type==DiggMedium;;
474
+ wpsr_facebook_btstyle==box_count;;
475
+ wpsr_facebook_showfaces==0;;
476
+ wpsr_facebook_width==80;;
477
+
478
+ wpsr_template1_inhome==0;;
479
+ wpsr_template1_insingle==1;;
480
+ wpsr_template1_inpage==1;;
481
+ wpsr_template1_incategory==0;;
482
+ wpsr_template1_intag==0;;
483
+ wpsr_template1_indate==0;;
484
+ wpsr_template1_inauthor==0;;
485
+ wpsr_template1_insearch==0;;
486
+ wpsr_template1_inexcerpt==0;;
487
+ wpsr_template1_infeed==0;;
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;;
494
+ wpsr_template2_incategory==1;;
495
+ wpsr_template2_intag==1;;
496
+ wpsr_template2_indate==1;;
497
+ wpsr_template2_inauthor==1;;
498
+ wpsr_template2_insearch==1;;
499
+ wpsr_template2_inexcerpt==1;;
500
+ wpsr_template2_infeed==0;;
501
+ wpsr_template2_abvcontent==0;;
502
+ wpsr_template2_blwcontent==1;;
503
+ </settings>
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}
511
+ <br/><br/>
512
+ {plusone-tall}
513
+ <br/><br/>
514
+ {stumbleupon-5}
515
+ </span>
516
+ ]]>
517
+ </template1>
518
+
519
+ <template2>
520
+ <![CDATA[
521
+ {social-bts-32px}
522
+ ]]>
523
+ </template2>
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;;
531
+ wpsr_socialbt_label==1;;
532
+ wpsr_socialbt_columns==4;;
533
+
534
+ wpsr_template1_inhome==0;;
535
+ wpsr_template1_insingle==1;;
536
+ wpsr_template1_inpage==1;;
537
+ wpsr_template1_incategory==0;;
538
+ wpsr_template1_intag==0;;
539
+ wpsr_template1_indate==0;;
540
+ wpsr_template1_inauthor==0;;
541
+ wpsr_template1_insearch==0;;
542
+ wpsr_template1_inexcerpt==0;;
543
+ wpsr_template1_infeed==0;;
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;;
550
+ wpsr_template2_incategory==1;;
551
+ wpsr_template2_intag==1;;
552
+ wpsr_template2_indate==1;;
553
+ wpsr_template2_inauthor==1;;
554
+ wpsr_template2_insearch==1;;
555
+ wpsr_template2_inexcerpt==1;;
556
+ wpsr_template2_infeed==0;;
557
+ wpsr_template2_abvcontent==0;;
558
+ wpsr_template2_blwcontent==1;;
559
+ </settings>
560
+
561
+ <template1>
562
+ <![CDATA[
563
+ ]]>
564
+ </template1>
565
+
566
+ <template2>
567
+ <![CDATA[
568
+ <h2>Share this article</h2>
569
+ {social-bts-16px}
570
+ ]]>
571
+ </template2>
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;;
579
+ wpsr_socialbt_label==1;;
580
+ wpsr_socialbt_columns==4;;
581
+
582
+ wpsr_template1_inhome==0;;
583
+ wpsr_template1_insingle==1;;
584
+ wpsr_template1_inpage==1;;
585
+ wpsr_template1_incategory==0;;
586
+ wpsr_template1_intag==0;;
587
+ wpsr_template1_indate==0;;
588
+ wpsr_template1_inauthor==0;;
589
+ wpsr_template1_insearch==0;;
590
+ wpsr_template1_inexcerpt==0;;
591
+ wpsr_template1_infeed==0;;
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;;
598
+ wpsr_template2_incategory==1;;
599
+ wpsr_template2_intag==1;;
600
+ wpsr_template2_indate==1;;
601
+ wpsr_template2_inauthor==1;;
602
+ wpsr_template2_insearch==1;;
603
+ wpsr_template2_inexcerpt==1;;
604
+ wpsr_template2_infeed==0;;
605
+ wpsr_template2_abvcontent==0;;
606
+ wpsr_template2_blwcontent==1;;
607
+ </settings>
608
+
609
+ <template1>
610
+ <![CDATA[
611
+ ]]>
612
+ </template1>
613
+
614
+ <template2>
615
+ <![CDATA[
616
+ <h2>Share this article</h2>
617
+ {social-bts-32px}
618
+ ]]>
619
+ </template2>
620
+
621
+ </item>
622
+ </items>
admin/tinymce/editor_plugin.js ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * WP Socializer shortcode inserting javascript in TinyMCE editor
3
+ * http://www.aakashweb.com
4
+ * v1.0
5
+ * Added since WP Socializer v2.0
6
+ */
7
+ String.prototype.trim = function() {
8
+ return this.replace(/^\s+|\s+$/g,"");
9
+ }
10
+
11
+ function wpsr_insert_shortcode(type, edparam){
12
+
13
+ var choice = prompt('Choose your button: \n\n1.Social buttons \n2.Addthis \n3.Sharethis \n4.Retweet \n5.Google Buzz \n6.Google +1 \n7.Digg \n8.Facebook \n9.StumbleUpon \n10.Reddit \n\neg: 4', '');
14
+ var btncode;
15
+
16
+ switch(choice.trim()){
17
+ case '1':
18
+ btncode = "socialbts";
19
+ case '2':
20
+ btncode = "addthis"; break;
21
+ case '3':
22
+ btncode = "sharethis"; break;
23
+ case '4':
24
+ btncode = "retweet"; break;
25
+ case '5':
26
+ btncode = "buzz"; break;
27
+ case '6':
28
+ btncode = "plusone"; break;
29
+ case '7':
30
+ btncode = "digg"; break;
31
+ case '8':
32
+ btncode = "facebook"; break;
33
+ case '9':
34
+ btncode = "stumbleupon"; break;
35
+ case '10':
36
+ btncode = "reddit"; break;
37
+ default:
38
+ return '';
39
+ }
40
+
41
+ var shortcode = "[wpsr_" + btncode + "]";
42
+
43
+ if(type == 'visual'){
44
+ edparam.execCommand('mceInsertContent', false, shortcode);
45
+ }else{
46
+ edInsertContent(edCanvas, shortcode);
47
+ }
48
+ }
49
+
50
+ // For adding button in the visual editing toolbox
51
+ (function() {
52
+ tinymce.create('tinymce.plugins.WPSRButton', {
53
+
54
+ init : function(ed, url) {
55
+ ed.addButton('wpsrbutton', {
56
+ title : wpsr_sc_button.title,
57
+ image : url + '/icon.png',
58
+ onclick : function() {
59
+ wpsr_insert_shortcode('visual', ed);
60
+ }
61
+ });
62
+ },
63
+
64
+ getInfo : function() {
65
+ return {
66
+ longname : 'WP Socializer',
67
+ author : 'Aakash Chakravarthy',
68
+ authorurl : 'http://www.aakashweb.com/',
69
+ infourl : 'http://www.aakashweb.com/',
70
+ version : '1.0'
71
+ };
72
+ }
73
+
74
+ });
75
+
76
+ tinymce.PluginManager.add('wpsrbutton', tinymce.plugins.WPSRButton);
77
+ })();
78
+
79
+ // For adding button in the code editing toolbox
80
+
81
+ if(document.getElementById("ed_toolbar")){
82
+ qt_toolbar = document.getElementById("ed_toolbar");
83
+ edButtons[edButtons.length] = new edButton("ed_wpsrbutton", wpsr_sc_button.value, "", "","");
84
+ var qt_button = qt_toolbar.lastChild;
85
+ while (qt_button.nodeType != 1){
86
+ qt_button = qt_button.previousSibling;
87
+ }
88
+ qt_button = qt_button.cloneNode(true);
89
+ qt_button.value = wpsr_sc_button.value;
90
+ qt_button.title = wpsr_sc_button.title;
91
+ qt_button.onclick = function(){ wpsr_insert_shortcode('code', ''); };
92
+ qt_button.id = "ed_wpsrbutton";
93
+ qt_toolbar.appendChild(qt_button);
94
+ }
95
+
admin/tinymce/icon.png ADDED
Binary file
admin/wpsr-admin-css.css ADDED
@@ -0,0 +1,690 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Admin Page CSS for WP Socializer plugin
3
+ * Author : Aakash Chakravarthy
4
+ * Version : 1.0
5
+ */
6
+
7
+ .wrap{
8
+ margin: 15px 0px;
9
+ padding: 0px;
10
+ }
11
+ .wrap h3 {
12
+ font: italic 21px "Times New Roman", Times, serif;
13
+ color: #333333;
14
+ margin: 10px 0px 0px;
15
+ padding: 0px;
16
+ }
17
+ .wrap h4 {
18
+ font-weight: bold;
19
+ display: block;
20
+ padding: 10px 0px 5px;
21
+ margin: 0px 0px 5px;
22
+ border-bottom: 1px solid #e7e7e7;
23
+ clear: both;
24
+ }
25
+ .wrap h5{
26
+ margin: 7px 0px;
27
+ font-size: 13px;
28
+ }
29
+ .wrap h4 .max_min{
30
+ float: right;
31
+ font-weight: bold;
32
+ margin: 0px;
33
+ padding: 0px 7px;
34
+ cursor: pointer;
35
+ }
36
+ .wrap h4 .max_min:hover{
37
+ color: #FFFFFF;
38
+ background: #FF9900;
39
+ -moz-border-radius: 5px;
40
+ border-radius: 5px;
41
+ }
42
+ .wrap hr{
43
+ border-bottom: 1px solid #e7e7e7;
44
+ border-top: 1px solid #fff;
45
+ }
46
+ /* Tabs */
47
+
48
+ #tabs{
49
+ margin: 0px 15px 0px 0;
50
+ border: 1px solid #D4D4D4;
51
+ -moz-border-radius: 5px;
52
+ border-radius: 5px;
53
+ padding: 0px;
54
+ -webkit-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
55
+ -moz-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
56
+ box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
57
+ background: #FFFFFF;
58
+ }
59
+ #tabs #tabsList{
60
+ margin: 0px;
61
+ padding: 0px;
62
+ float: left;
63
+ width: 20%;
64
+ font: 13px Arial, Helvetica, sans-serif;
65
+ border-right: 1px solid #D4D4D4;
66
+ }
67
+ #tabs #tabsList li {
68
+ list-style: none;
69
+ margin: -1px 0px 0px;
70
+ border-top: 1px solid #d4d4d4;
71
+ border-bottom: 1px solid #D4D4D4;
72
+ background: url(images/menu-bg.png);
73
+ }
74
+ #tabs #tabsList li:hover {
75
+ background: url(images/menu-hover.png);
76
+ }
77
+ #tabs #tabsList .ui-state-active{
78
+ background: #ffffff;
79
+ border-left: 3px solid #FF9900;
80
+ margin: -1px -1px 0px -3px;
81
+ }
82
+ #tabs #tabsList li a {
83
+ text-decoration: none;
84
+ color: #000;
85
+ margin: 0px;
86
+ display: block;
87
+ padding: 10px;
88
+ }
89
+ #tabs .tabContent {
90
+ padding: 5px 10px 10px;
91
+ margin: 0px 0px 0px -1px;
92
+ width: 77%;
93
+ float: left;
94
+ border-left: 1px solid #D4D4D4;
95
+ background: #FFFFFF;
96
+ }
97
+ #tabs .tabContent .section{
98
+ padding: 10px;
99
+ }
100
+ #tabs .tabContent .section img{
101
+ vertical-align:middle;
102
+ }
103
+ #tabs .tabSep{
104
+ margin: 30px 15px;
105
+ }
106
+ #tabs .tabsInfoBox{
107
+ background: #F7F7F7;
108
+ margin: 10px;
109
+ padding: 5px;
110
+ border: 1px solid #CCCCCC;
111
+ }
112
+ #tabs .placementTab{
113
+ background: #E1FD8F url(images/menu-bg-green.png) no-repeat center !important;
114
+ }
115
+
116
+ /* Sub tabs */
117
+
118
+ .subTabList{
119
+ margin: 10px 0px 0px;
120
+ }
121
+ .subTabList li{
122
+ border: 1px solid #e7e7e7;
123
+ margin: 0px 0px -1px 10px;
124
+ padding: 6px;
125
+ float: left;
126
+ }
127
+ .subTabList li a{
128
+ color: #000000;
129
+ text-decoration: none;
130
+ display: block;
131
+ }
132
+ .subTabContent{
133
+ border-top: 1px solid #e7e7e7;
134
+ clear: both;
135
+ }
136
+
137
+ /* Tables */
138
+
139
+ .tableClr {
140
+ border: 1px solid #e7e7e7;
141
+ text-align: left;
142
+ margin: 0 0px 0px 0;
143
+ width: 100%;
144
+ }
145
+ .tableClr tr th,
146
+ .tableClr thead th {
147
+ color: #888;
148
+ font-size: 12px;
149
+ font-weight: bold;
150
+ padding: 5px;
151
+ }
152
+ .tableClr tr td {
153
+ border-top: 1px solid #e7e7e7;
154
+ padding: 5px;
155
+ }
156
+ .tableClr tr.odd td {
157
+ background: #F2F7FC;
158
+ }
159
+
160
+ /* Toolbar */
161
+ .toolbarWrap{
162
+ -moz-border-radius: 5px;
163
+ border-radius: 5px;
164
+ background: #F7F7F7;
165
+ padding: 5px;
166
+ border: 1px solid #e7e7e7;
167
+ }
168
+ .toolbarWrap textarea, .custom_box{
169
+ width: 99.8%;
170
+ font: 12px/2em "Courier New", Courier, monospace;
171
+ clear: both;
172
+ margin: 0px;
173
+ }
174
+ .tbButtons .btn{
175
+ font-size: 11px !important;
176
+ background: #FFFFFF url(images/header-bg.png) repeat-x 0px -30px;
177
+ border: 1px solid #E1E1E1;
178
+ padding: 5px 10px;
179
+ float: left;
180
+ cursor: pointer;
181
+ margin-right: 5px;
182
+ }
183
+ .tbButtons .parentLi ul{
184
+ position: absolute;
185
+ background: #FFFFFF;
186
+ border: 1px solid #e1e1e1;
187
+ margin: 5px 0px 0px -11px;
188
+ font-size: 11px;
189
+ display: none;
190
+ -webkit-box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.09);
191
+ -moz-box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.09);
192
+ box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.09);
193
+ padding: 0px;
194
+ }
195
+ .tbButtons .parentLi ul li{
196
+ padding: 10px;
197
+ border-bottom: 1px solid #e1e1e1;
198
+ margin: 0px;
199
+ }
200
+ .tbButtons .parentLi ul li:hover{
201
+ background: #FFFFCC;
202
+ }
203
+
204
+ /* Tooltip */
205
+ .tooltip, .codePopup, .donatePopup{
206
+ position:absolute;
207
+ z-index:9999;
208
+ color:#fff;
209
+ font-size:11px;
210
+ background: #333;
211
+ background: rgba(0,0,0,0.7);
212
+ padding: 5px;
213
+ -moz-box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.5);
214
+ box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.6);
215
+ -moz-border-radius: 3px;
216
+ border-radius: 3px;
217
+ }
218
+
219
+ /* Code popup */
220
+ .codePopup{
221
+ font-weight: normal;
222
+ width: 235px;
223
+ }
224
+ .codePopupIco{
225
+ margin: 0px 0px 0px 5px;
226
+ cursor: pointer;
227
+ opacity: 0.5;
228
+ }
229
+ .codePopup textarea{
230
+ font-size: 10px;
231
+ width: 210px;
232
+ resize:none;
233
+ }
234
+ .codePopup a{
235
+ font-weight: bold;
236
+ color: #FFFFFF;
237
+ text-decoration: underline;
238
+ }
239
+ .popClose{
240
+ float:right;
241
+ padding: 5px;
242
+ margin: -5px 0px 0px;
243
+ cursor: pointer;
244
+ font-weight: bold;
245
+ }
246
+ .popClose:hover, .codePopupIco:hover{
247
+ color: #333333;
248
+ background: #FFFFFF;
249
+ opacity: 1;
250
+ }
251
+
252
+ /* Main blocks */
253
+
254
+ .header{
255
+ border-bottom: 1px solid #D4D4D4;
256
+ padding: 0px 10px 10px;
257
+ background: url(images/header-bg.png) repeat-x top;
258
+ margin: 5px 0px 0px;
259
+ min-height: 55px;
260
+ position: relative;
261
+ }
262
+ .header .headerTitle{
263
+ position: absolute;
264
+ top: 12.5px;
265
+ }
266
+ .header .headerTitle h2{
267
+ padding: 0px;
268
+ }
269
+ .footer{
270
+ margin: 0px 0px 10px;
271
+ padding: 15px 10px 5px;
272
+ clear: both;
273
+ background: url(images/footer-bg.png) repeat-x top;
274
+ border-top: 1px solid #D4D4D4;
275
+ }
276
+ .credits{
277
+ font-size: 10px;
278
+ margin: 10px 0px 0px;
279
+ background: url(images/aw.png) no-repeat;
280
+ padding-left: 23px;
281
+ }
282
+ .credits a{
283
+ color: #333333;
284
+ text-decoration: none;
285
+ }
286
+ .templateInfo{
287
+ margin: -11px 0px 10px;
288
+ padding: 5px;
289
+ border: 1px solid #E7E7E7;
290
+ color: #ccc;
291
+ font-size: 10px;
292
+ }
293
+ .templateInfo:hover{
294
+ color: #666666;
295
+ background: #FFFFEC;
296
+ }
297
+ .placement_options label{
298
+ font-size: 11px;
299
+ }
300
+
301
+ /** Promo box */
302
+ .promoBox{
303
+ position: absolute;
304
+ top: 5px;
305
+ right: 0px;
306
+ }
307
+ .promoBox .promos{
308
+ height: 50px;
309
+ float: left;
310
+ margin-right: 10px;
311
+ -moz-border-radius: 5px;
312
+ border-radius: 5px;
313
+ -webkit-box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.5);
314
+ -moz-box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.5);
315
+ box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.09);
316
+ }
317
+ .promoBox .donateBox{
318
+ width: 180px;
319
+ background: url(images/donateBg.png);
320
+ border: 1px solid #FFEA97;
321
+ font-family: Arial, Helvetica, sans-serif;
322
+ cursor: pointer;
323
+ }
324
+ .promoBox .donateBox .wrap{
325
+ margin-left: 55px;
326
+ }
327
+ .promoBox .donateBox .txt1{
328
+ font-size: 18px;
329
+ padding: 0px;
330
+ margin: -10px 0px 3px;
331
+ }
332
+ .promoBox .donateBox .txt2{
333
+ color: #333333;
334
+ }
335
+ .promoBox .donatePopup{
336
+ display: none;
337
+ font-family: Arial, Helvetica, sans-serif;
338
+ top: 50px;
339
+ right: 10px;
340
+ width: 250px;
341
+ }
342
+ .promoBox .plusoneBox{
343
+ padding: 0px 0px 0px 15px;
344
+ border: 1px solid #FFEA97;
345
+ background: url(images/donateBg.png) repeat-x -50px;
346
+ }
347
+ .promoBox .plusoneBox .text{
348
+ font: 11px Arial, Helvetica, sans-serif;
349
+ color: #666666;
350
+ padding: 5px 0px;
351
+ }
352
+ .promoBox .likeBox{
353
+ width: 100px;
354
+ background: #F2F3F9 url(images/likeBg.png) no-repeat left top;
355
+ border: 1px solid #B9C5D7;
356
+ padding: 0px 0px 0px 58px;
357
+ }
358
+ .promoBox .iframeWrap{
359
+ display: inline;
360
+ margin-top: 23px;
361
+ }
362
+ .promoBox .iframeWrap .text{
363
+ font: 11px Arial, Helvetica, sans-serif;
364
+ color: #3B5998;
365
+ padding: 5px 0px;
366
+ }
367
+
368
+ /* Oneclick */
369
+ .templatesList{
370
+ margin: -5px 0px 120px;
371
+ font-family: Arial, Helvetica, sans-serif;
372
+ }
373
+ .templatesList .imgHead{
374
+ margin: -1px 0px 10px;
375
+ width: 100%;
376
+ height: auto;
377
+ border: 1px solid #CCCCCC;
378
+ }
379
+ .templateItem{
380
+ border: 2px solid #e7e7e7;
381
+ padding: 10px;
382
+ margin: 0px 0px 20px;
383
+ -moz-border-radius: 5px;
384
+ border-radius: 5px;
385
+ }
386
+ .templateItem:hover{
387
+ border-color: #9FC54E;
388
+ }
389
+ .templateHead{
390
+ font: 19px Arial, Helvetica, sans-serif;
391
+ margin: 0px;
392
+ color: #333333;
393
+ padding: 0px 0px 5px;
394
+ }
395
+ .templateDetails{
396
+ color:#888888;
397
+ }
398
+ .templateImg{
399
+ border: 1px solid #F2F2F2;
400
+ margin: 10px 0px 0px;
401
+ width: 100%;
402
+ height: auto;
403
+ background: #FFFFFF;
404
+ }
405
+ .templateCont{
406
+ display: none;
407
+ }
408
+ .applyBt{
409
+ font-size: 13px;
410
+ float: right;
411
+ border: 2px solid;
412
+ padding: 5px 15px;
413
+ -moz-border-radius: 15px;
414
+ border-radius: 20px;
415
+ font-weight: bold;
416
+ color: #333333;
417
+ cursor: pointer;
418
+ margin: 0px 0px 0px 10px;
419
+ border-color: #9FC54E;
420
+ background: #F4F9EC;
421
+ }
422
+ .applyBtYellow{
423
+ border-color: #FFCC00;
424
+ background: #FFFFCC;
425
+ }
426
+ .applyBt:hover{
427
+ opacity: 0.5;
428
+ }
429
+ .applyBt:active{
430
+ border-color: #999999;
431
+ background: #FDFDFD;
432
+ }
433
+ .statsIco{
434
+ display: none;
435
+ }
436
+
437
+ /* Sprites */
438
+ .admSprites {
439
+ background: url(images/admin-sprites.png) no-repeat top left;
440
+ margin: 0px 5px 0px 0px;
441
+ padding: 0px 16px 0px 0px;
442
+ width: 16px;
443
+ }
444
+
445
+ .addthisIcon{ background-position: 0 0; }
446
+ .buzzIcon{ background-position: 0 -66px; }
447
+ .customIcon{ background-position: 0 -132px; }
448
+ .documentationIcon{ background-position: 0 -198px; }
449
+ .facebookIcon{ background-position: 0 -264px; }
450
+ .helpIcon{ background-position: 0 -330px; }
451
+ .minusIcon{ background-position: 0 -396px; }
452
+ .oneclickIcon{ background-position: 0 -462px; }
453
+ .placementIcon{ background-position: 0 -528px; }
454
+ .redditIcon{ background-position: 0 -594px; }
455
+ .retweetIcon{ background-position: 0 -660px; }
456
+ .settingsIcon{ background-position: 0 -726px; }
457
+ .sharethisIcon{ background-position: 0 -792px; }
458
+ .socialButtons{ background-position: 0 -858px; }
459
+ .stumbleuponIcon{ background-position: 0 -924px; }
460
+ .supportIcon{ background-position: 0 -990px; }
461
+
462
+ .note{
463
+ background: #FFFBEC;
464
+ border: 1px solid #FFCC33;
465
+ padding: 5px;
466
+ color: #FFCC33;
467
+ }
468
+ .message{
469
+ margin: 5px 0px!important;
470
+ }
471
+ .message .close{
472
+ float: right;
473
+ margin: -30px 0px 0px;
474
+ padding: 5px;
475
+ cursor: pointer;
476
+ }
477
+ .fixedMsg{
478
+ position: fixed;
479
+ left: 50px;
480
+ top: -6px;
481
+ right: 50px;
482
+ z-index:9999;
483
+ }
484
+ .redText{
485
+ color: #FF0000;
486
+ }
487
+ .smallText{
488
+ font-size: 10px;
489
+ color: #666666;
490
+ }
491
+ .alignright{
492
+ float: right;
493
+ }
494
+ .donateBt{
495
+ border-bottom: 2px solid #FF9900;
496
+ width: 100%;
497
+ margin: 0px auto;
498
+ text-align: center;
499
+ }
500
+ .codeBox{
501
+ background: #FCFCFC;
502
+ padding: 3px;
503
+ margin-right: 5px;
504
+ margin-left: 5px;
505
+ border: 1px solid #e2e2e2;
506
+ font-size: 11px;
507
+ }
508
+ .codeBox span{
509
+ font-family: "Courier New", Courier, monospace;
510
+ padding: 4px;
511
+ cursor: pointer;
512
+ }
513
+ .codeBox span:hover{
514
+ background: #FF9900;
515
+ color: #FFFFFF;
516
+ }
517
+
518
+ #wpsr_settings_disablebtlist{
519
+ height: 125px !important;
520
+ }
521
+ #wpsr_socialbt_list li{
522
+ padding: 4px;
523
+ color: #333333;
524
+ text-decoration: none;
525
+ -moz-border-radius: 5px;
526
+ -webkit-border-radius: 5px;
527
+ position: relative;
528
+ float: left;
529
+ width: 43%;
530
+ margin: 5px;
531
+ text-transform: capitalize;
532
+ background: #FFFFFF;
533
+ border: 1px solid #e9e9e9;
534
+ }
535
+ #wpsr_socialbt_list li:hover{
536
+ border-color: #999999;
537
+ color: #000000;
538
+ }
539
+
540
+ #wpsr_socialbt_list li img{
541
+ height: 16px;
542
+ width: 16px;
543
+ vertical-align: middle;
544
+ background: url(../public/social-icons/wp-socializer-sprite-16px.png) no-repeat;
545
+ padding: 0px;
546
+ border-right: 1px solid #e9e9e9;
547
+ margin: 0px 5px 0px 0px;
548
+ }
549
+
550
+ .sb_add16px{
551
+ color: #000000;
552
+ background: #F8F8F8;
553
+ float: right;
554
+ padding: 5px 8px 5px 5px;
555
+ border-left: 1px solid #e9e9e9;
556
+ cursor: pointer;
557
+ margin: -4px -4px -4px 0px;
558
+ -moz-border-radius-bottomright: 5px;
559
+ -moz-border-radius-topright: 5px;
560
+ -webkit-border-top-right-radius: 5px;
561
+ -webkit-border-bottom-right-radius: 5px;
562
+
563
+ }
564
+ .sb_add32px{
565
+ color: #000000;
566
+ background: #F8F8F8;
567
+ float: right;
568
+ padding: 5px 8px 5px 5px;
569
+ border-left: 1px solid #e9e9e9;
570
+ cursor: pointer;
571
+ margin: -4px -3px -4px 0px;
572
+ border-right: 1px solid #e9e9e9;
573
+ }
574
+ .sb_add16px:hover, .sb_add32px:hover{
575
+ color: #FFFFFF;
576
+ background: #999999;
577
+ }
578
+ .added_msg{
579
+ background: #F4FFF4;
580
+ display: block;
581
+ margin: 5px -3px -3px;
582
+ padding: 3px;
583
+ border-top: 1px solid #e9e9e9;
584
+ border-right: 0px solid #FFFF33;
585
+ border-bottom: 0px solid #FFFF33;
586
+ border-left: 0px solid #FFFF33;
587
+ }
588
+
589
+ .wpsr_socialbt_selected_list li{
590
+ padding: 5px;
591
+ color: #fff;
592
+ text-decoration: none;
593
+ -moz-border-radius: 5px;
594
+ -webkit-border-radius: 5px;
595
+ -moz-box-shadow: 0 1px 2px #999;
596
+ -webkit-box-shadow: 0 1px 2px #999;
597
+ border-bottom: 1px solid #006C91;
598
+ position: relative;
599
+ float: left;
600
+ width: 98%;
601
+ margin: 5px;
602
+ text-transform: capitalize;
603
+ background: #0099CC;
604
+ cursor: move;
605
+ }
606
+ .wpsr_socialbt_selected_list li:hover{
607
+ background: #00CC00;
608
+ border-bottom: 1px solid #009900;
609
+ }
610
+ .wpsr_socialbt_selected_list li .sb_close{
611
+ float: right;
612
+ padding: 2px 4px;
613
+ margin: -2px -3px -2px 0px;
614
+ -moz-border-radius: 2px;
615
+ -khtml-border-radius: 2px;
616
+ -webkit-border-radius: 2px;
617
+ text-transform: lowercase;
618
+ font-weight: bold;
619
+ }
620
+ .wpsr_socialbt_selected_list li .sb_close:hover{
621
+ cursor: pointer;
622
+ color: #FF0000;
623
+ }
624
+
625
+ #wpsr_search_buttons{
626
+ font-size: 10px;
627
+ color: #333333;
628
+ float: right;
629
+ margin-right: 8%;
630
+ height: 20px;
631
+ }
632
+ .wpsr_reset_confirm{
633
+ background: #FFFFFF;
634
+ margin: -5px 0px 0px 0px;
635
+ float: right;
636
+ width: 150px;
637
+ padding: 0px 10px 10px;
638
+ display: none;
639
+ }
640
+
641
+ /* Admin mini */
642
+ .wrap .miniWrap{
643
+ margin: 0px auto;
644
+ border: 1px solid #D4D4D4;
645
+ -moz-border-radius: 5px;
646
+ border-radius: 5px;
647
+ padding: 0px 15px 15px;
648
+ -webkit-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
649
+ -moz-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
650
+ box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
651
+ background: #FFFFFF;
652
+ width: 750px;
653
+ }
654
+
655
+ /* Admin intro */
656
+ .wrap .introWrap{
657
+ margin: 0px auto;
658
+ border: 1px solid #D4D4D4;
659
+ -moz-border-radius: 5px;
660
+ border-radius: 5px;
661
+ padding: 0px 15px 15px;
662
+ -webkit-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
663
+ -moz-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
664
+ box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
665
+ background: #FFFFFF;
666
+ width: 550px;
667
+ }
668
+ .wrap .introWrap .iBox{
669
+ width:60%;
670
+ float:left;
671
+ border-right: 1px solid #e7e7e7;
672
+ padding-right: 15px;
673
+ }
674
+ .wrap .introWrap .iSide{
675
+ float:left;
676
+ width: 30%;
677
+ padding: 0px 0px 15px 15px;
678
+ }
679
+ .wrap .introWrap form{
680
+ background: #FFFFE0;
681
+ text-align: center;
682
+ padding: 15px;
683
+ border-top: 1px solid #e7e7e7;
684
+ border-radius: 5px;
685
+ margin: 10px -15px -15px;
686
+ clear: both;
687
+ }
688
+
689
+ /* Color Picker */
690
+ div.color_picker{ height:16px; width:16px; padding:0 !important; border:1px solid #ccc; cursor:pointer; line-height:16px}div#color_selector{ width:110px; position:absolute; border:1px solid #000; background-color:#EFEFEF; padding:2px} div#color_custom{width:100%;float:left} div#color_custom label{font-size:95%;color:#2F2F2F;margin:5px 2px;width:25%} div#color_custom input{margin:5px 2px;padding:0;font-size:95%;border:1px solid #000;width:65%}div.color_swatch{ height:12px; width:12px; border:1px solid #000; margin:2px; float:left; cursor:pointer; line-height:12px}
admin/wpsr-admin-js.js ADDED
@@ -0,0 +1,399 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ $j = jQuery.noConflict();
2
+ $j(document).ready(function(){
3
+
4
+ // Tab Initializements
5
+ var tabs = $j("#tabs").tabs({fx: {opacity: 'toggle', duration: 'fast'} });
6
+ var subTabs = $j(".subTabs").tabs({fx: {opacity: 'toggle', duration: 'fast'} });
7
+
8
+ $j("#tabs").tabs().find(".ui-tabs-nav").sortable({axis:'y'});
9
+
10
+ $j(".outLink").attr('target', '_blank');
11
+ $j(".outLink").each(function(){
12
+ $j(this).attr('href', $j(this).attr('rel'));
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
26
+ $j('#wpsr_addthis_btheadclr').colorPicker();
27
+ $j('#wpsr_addthis_btheadbgclr').colorPicker();
28
+
29
+ // Sorter Initializements
30
+ $j('#wpsr_socialbt_selected_list_16px, #wpsr_socialbt_selected_list_32px').sortable({
31
+ stop : wpsr_socialbt_selectedgenerator,
32
+ opacity : 0.5,
33
+ scroll : true,
34
+ revert : true
35
+ });
36
+
37
+ $j('.parentLi').hover(function(){
38
+ $j(this).children('ul').fadeIn('fast');
39
+ }, function(){
40
+ $j(this).children('ul').fadeOut('fast');
41
+ });
42
+
43
+ // Oneclick functions
44
+ //$j('.templatesList').html("<img src='images/load.gif' alt='loading...' />");
45
+ $j.ajax({
46
+ type: "GET",
47
+ url: $j('.tmplUrl').text(),
48
+ dataType: "xml",
49
+ success: function(xml){
50
+ $j(xml).find('item').each(function(){
51
+ name = $j(this).attr('name');
52
+ author = $j(this).attr('author');
53
+ version = $j(this).attr('version');
54
+ image = $j('.tmplImg').text() + $j(this).attr('image');
55
+ url = $j(this).attr('url')
56
+ vars = $j(this).find('settings').text();
57
+ temp1 = 'wpsr_template1_content==' + $j(this).find('template1').text() + ';;';
58
+ temp2 = 'wpsr_template2_content==' + $j(this).find('template2').text() + ';;';
59
+ cnt1 = 'wpsr_content1==' + $j(this).find('custom1').text() + ';;';
60
+ cnt2 = 'wpsr_content2==' + $j(this).find('custom2').text() + ';;';
61
+
62
+ nameHtml = '<div class="templateHead">' + name + '</div>';
63
+ versionHtml = '<div class="templateDetails">by <a href=' + url + ' target="_blank">' + author + '</a> version ' + version + '</div>';
64
+ applyBt = '<span class="templateBt applyBt">Apply</span>';
65
+ hiddenHtml = '<textarea class="templateCont">' + vars + temp1 + temp2 + cnt1 + cnt2 + '</textarea>';
66
+
67
+ itemContent = applyBt + hiddenHtml + nameHtml + versionHtml;
68
+ $j('.templatesList').append('<div class="templateItem" rel="' + image + '">' + itemContent + '</div>');
69
+ });
70
+ }
71
+ });
72
+
73
+ $j('.templateItem').live('mouseover', function(e){
74
+ $j(this).append('<div class="tooltip">Preview: <br/><img src="' + $j(this).attr('rel') + '"/></div>');
75
+ $j('.tooltip').css({
76
+ 'margin-top': 25,
77
+ 'margin-left': -10
78
+ });
79
+ }).live('mouseout', function(){
80
+ $j(this).children('.tooltip').remove();
81
+ });
82
+
83
+ $j('.applyBt').live('click', function(){
84
+ cnt = $j(this).next('.templateCont').text();
85
+ cntSplit = cnt.split(';;');
86
+
87
+ $j(this).fadeOut(500).fadeIn(500).addClass('applyBtYellow');
88
+
89
+ for(i=0; i<cntSplit.length; i++){
90
+ element = cntSplit[i].split('==');
91
+ eleId = '#' + $j.trim(element[0]);
92
+ eleValue = $j.trim(element[1]);
93
+
94
+ if($j(eleId).attr('type') == 'checkbox'){
95
+ if(eleValue == 0){
96
+ $j(eleId).removeAttr('checked');
97
+ }else{
98
+ $j(eleId).attr('checked', 'checked');
99
+ }
100
+ }else if($j(eleId).attr('type') == 'radio'){
101
+ $j(eleId + '[value=' + eleValue + ']').attr('checked', 'checked');
102
+ }else{
103
+ $j(eleId).val(eleValue);
104
+ }
105
+ }
106
+
107
+ });
108
+
109
+ function wpsr_socialbt_selectedgenerator(){
110
+ // 16 px
111
+ var socialBtSelected16px = [];
112
+ $j("#wpsr_socialbt_selected_list_16px li .sb_name").each(function(){
113
+ socialBtSelected16px.push($j(this).text());
114
+ });
115
+ var groupedSocialBtSelected16px = socialBtSelected16px.join(',');
116
+ $j("#wpsr_socialbt_selected16px").val(groupedSocialBtSelected16px);
117
+
118
+ // 32 px
119
+ var socialBtSelected32px = [];
120
+ $j("#wpsr_socialbt_selected_list_32px li .sb_name").each(function(){
121
+ socialBtSelected32px.push($j(this).text());
122
+ });
123
+ var groupedSocialBtSelected32px = socialBtSelected32px.join(',');
124
+ $j("#wpsr_socialbt_selected32px").val(groupedSocialBtSelected32px);
125
+ }
126
+
127
+ // Append list 16px
128
+ $j('#wpsr_socialbt_list li .sb_add16px').click(function(){
129
+ var text16px = $j.trim($j(this).parent().text().replace('16', '').replace('32', ''));
130
+ var appendList16px = '<li><span class="sb_name">' + text16px + '</span><span class="sb_close">x</span></li>';
131
+ $j('#wpsr_socialbt_selected_list_16px').append(appendList16px);
132
+ wpsr_socialbt_selectedgenerator();
133
+
134
+ var temp = $j(this).parent().children('.sb_name').text();
135
+
136
+ $j(this).parent().children('.sb_name').fadeOut(function(){
137
+ $j(this).text('Added !');
138
+ });
139
+
140
+ $j(this).parent().children('.sb_name').fadeIn();
141
+
142
+ $j(this).parent().children('.sb_name').fadeOut(function(){
143
+ $j(this).parent().children('.sb_name').text(temp);
144
+ });
145
+
146
+ $j(this).parent().children('.sb_name').fadeIn();
147
+
148
+ });
149
+
150
+ // Append list 32px
151
+ $j('#wpsr_socialbt_list li .sb_add32px').click(function(){
152
+ var text32px = $j.trim($j(this).parent().text().replace('16', '').replace('32', ''));
153
+ var appendList32px = '<li><span class="sb_name">' + text32px + '</span><span class="sb_close">x</span></li>';
154
+ $j('#wpsr_socialbt_selected_list_32px').append(appendList32px);
155
+ wpsr_socialbt_selectedgenerator();
156
+
157
+ var temp = $j(this).parent().children('.sb_name').text();
158
+
159
+ $j(this).parent().children('.sb_name').fadeOut(function(){
160
+ $j(this).text('Added !');
161
+ });
162
+
163
+ $j(this).parent().children('.sb_name').fadeIn();
164
+
165
+ $j(this).parent().children('.sb_name').fadeOut(function(){
166
+ $j(this).parent().children('.sb_name').text(temp);
167
+ });
168
+
169
+ $j(this).parent().children('.sb_name').fadeIn();
170
+
171
+ });
172
+
173
+ //Delete List 16px
174
+ $j('#wpsr_socialbt_selected_list_16px li .sb_close').live("click", function() {
175
+ $j(this).parent().fadeOut('slow', function(){
176
+ $j(this).remove();
177
+ wpsr_socialbt_selectedgenerator();
178
+ });
179
+ });
180
+
181
+ //Delete List 32px
182
+ $j('#wpsr_socialbt_selected_list_32px li .sb_close').live("click", function() {
183
+ $j(this).parent().fadeOut('slow', function(){
184
+ $j(this).remove();
185
+ wpsr_socialbt_selectedgenerator();
186
+ });
187
+ });
188
+
189
+ // Basic Admin Functions
190
+
191
+ $j('h4').append('<span class="max_min" title="Collapse">-</span>');
192
+
193
+ $j('h4 .max_min').toggle(
194
+ function(){
195
+ $j(this).parent().next().slideUp();
196
+ $j(this).text('+');
197
+ },
198
+ function(){
199
+ $j(this).parent().next().slideDown();
200
+ $j(this).text('-');
201
+ }
202
+ );
203
+
204
+
205
+ $j('.message').append('<span class="close">x</span>');
206
+
207
+ setTimeout(function(){
208
+ $j('.autoHide').fadeOut(function(){ $j(this).remove(); });
209
+ }, 8000);
210
+
211
+ $j('.message .close').click(function(){
212
+ $j(this).parent().slideUp();
213
+ });
214
+
215
+ $j('.codePopupIco').click(function(e){
216
+ e.preventDefault();
217
+
218
+ $j('.codePopup').hide();
219
+
220
+ var code = $j(this).attr('alt');
221
+ var info = $j('.codePopupInfo').html();
222
+ $j(this).after('<div class="codePopup"><span class="popClose">x</span><textarea readonly="readonly" class="codePopupCode">' + code + '</textarea>' + info + '</div>');
223
+
224
+ $j('.codePopup').css({
225
+ 'left' : e.pageX - 200,
226
+ 'top' : e.pageY - 16
227
+ });
228
+ });
229
+
230
+ $j('.popClose').live('click', function(e){
231
+ $j(this).parent().fadeOut();
232
+ });
233
+
234
+ $j('.donateBox').mouseover(function(e){
235
+ $j('.donatePopup').fadeIn();
236
+ });
237
+
238
+ $j('.mBox').prepend('<span class="popClose">x</span>');
239
+
240
+ // Intro box
241
+ if($j('.introWrap').length != 0){
242
+ $j.ajax({
243
+ type: "GET",
244
+ url: 'http://query.yahooapis.com/v1/public/yql?q=%20SELECT%20*%20FROM%20xml%20WHERE%20url%3D%22http%3A%2F%2Fvaakash.kodingen.com%2Fwpsr.xml%22&env=http%3A%2F%2Fdatatables.org%2Falltables.env',
245
+ dataType: "xml",
246
+ success: function(xml){
247
+ try{
248
+ ver = '[version="' + $j('.wpsrVer').text() + '"]';
249
+ $j(xml).find('content' + ver).each(function(){
250
+ $j('.iContent').hide();
251
+ $j('.iContent').html($j(this).text());
252
+ $j('.iContent').fadeIn();
253
+ });
254
+ }
255
+ catch(err){
256
+ $j('.iContent').html('<p>For more details: </p>');
257
+ }
258
+ },
259
+ error: function(err){
260
+ $j('.iContent').html('<b>New in this version: </b> <a href="http://www.aakashweb.com/wordpress-plugins/wp-socializer/" target="_blank">Click here</a> to view the new features and changes');
261
+ }
262
+ });
263
+ iUrl = 'http://stats.wordpress.com/g.gif?host=vaakash.kodingen.com&blog=24923956&v=ext&post=0&rand=' + Math.random() + '&ref=' + encodeURI($j('.blogUrl').text());
264
+ $j('.introWrap').after('<img src="' + iUrl + '" class="statsIco"/>');
265
+ }
266
+
267
+ // Tooltip
268
+ $j('.showTooltip').live('mouseover', function(e) {
269
+ var tip = $j(this).attr('title');
270
+ $j(this).attr('title','');
271
+ $j(this).append('<div class="tooltip">' + tip + '</div>');
272
+ $j('.tooltip').css({
273
+ 'margin-top': -$j(this).children('.tooltip').outerHeight(),
274
+ 'margin-left': -($j(this).children('.tooltip').outerWidth() + 20)
275
+ });
276
+ }).mouseout(function(){
277
+ $j(this).attr('title',$j('.tooltip').html());
278
+ $j(this).children('div.tooltip').remove();
279
+ });
280
+
281
+ // Retweet Page
282
+ $j('#wpsr_retweet_topsysettings').hide();
283
+ $j('#wpsr_retweet_service').change(function(){
284
+ if($j('#wpsr_retweet_service').val() == 'topsy'){
285
+ $j('#wpsr_retweet_topsysettings').slideDown();
286
+ }
287
+ if($j('#wpsr_retweet_service').val() != 'topsy'){
288
+ $j('#wpsr_retweet_topsysettings').slideUp();
289
+ }
290
+ });
291
+ if($j('#wpsr_retweet_service').val() == 'topsy'){
292
+ $j('#wpsr_retweet_topsysettings').slideDown();
293
+ }
294
+
295
+ $j('#wpsr_retweet_twittersettings').hide();
296
+ $j('#wpsr_retweet_service').change(function(){
297
+ if($j('#wpsr_retweet_service').val() == 'twitter'){
298
+ $j('#wpsr_retweet_twittersettings').slideDown();
299
+ }
300
+ if($j('#wpsr_retweet_service').val() != 'twitter'){
301
+ $j('#wpsr_retweet_twittersettings').slideUp();
302
+ }
303
+ });
304
+ if($j('#wpsr_retweet_service').val() == 'twitter'){
305
+ $j('#wpsr_retweet_twittersettings').slideDown();
306
+ }
307
+
308
+ // Facebook Page
309
+
310
+ $j('#wpsr_facebook_counterplacement').hide();
311
+ $j('#wpsr_facebook_counter').change(function(){
312
+ if($j('#wpsr_facebook_counter').val() == '1'){
313
+ $j('#wpsr_facebook_counterplacement').slideDown();
314
+ }
315
+ if($j('#wpsr_facebook_counter').val() != '1'){
316
+ $j('#wpsr_facebook_counterplacement').slideUp();
317
+ }
318
+ });
319
+ if($j('#wpsr_facebook_counter').val() == '1'){
320
+ $j('#wpsr_facebook_counterplacement').slideDown();
321
+ }
322
+
323
+ $j('.parentLi li, .btn').click(function(){
324
+ var id = $j(this).parent().attr('bxid');
325
+
326
+ var openTag = ($j(this).attr('openTag') == null) ? '' : $j(this).attr('openTag');
327
+ var closeTag = ($j(this).attr('closeTag') == null) ? '' : $j(this).attr('closeTag');
328
+
329
+ awQuickTags(id, openTag, closeTag,'');
330
+
331
+ if($j(this).attr('class') != 'btn'){
332
+ $j(this).parent().fadeOut();
333
+ }
334
+ });
335
+
336
+ // Live search
337
+ $j('#wpsr_search_buttons').keyup(function(event){
338
+ var search_text = $j(this).val();
339
+ var rg = new RegExp(search_text,'i');
340
+ $j('#wpsr_socialbt_list li').each(function(){
341
+ if($j.trim($j(this).text()).search(rg) == -1){
342
+ $j(this).hide();
343
+ }else{
344
+ $j(this).show();
345
+ }
346
+ });
347
+ });
348
+
349
+ $j('#wpsr_search_buttons').focus(function(){
350
+ if($j(this).val() == $j(this).attr('alt')){
351
+ $j(this).val('');
352
+ }
353
+ }).blur(function(){
354
+ if($j(this).val() == ''){
355
+ $j(this).val($j(this).attr('alt'));
356
+ }
357
+ });
358
+
359
+ $j('.wpsr_reset_trigger').click(function(){
360
+ $j('.wpsr_reset_confirm').slideDown();
361
+ });
362
+
363
+ $j('.wpsr_reset_cancel').click(function(){
364
+ $j('.wpsr_reset_confirm').slideUp();
365
+ });
366
+
367
+ $j('#wpsr_settings_disablebtlist').click(function(){
368
+ $j('#wpsr_settings_disablebuttons').val($j(this).val());
369
+ });
370
+ });
371
+
372
+
373
+ function openSubForm(){
374
+ subWindow = window.open('','preview','height=500,width=600');
375
+ var tmp = subWindow.document;
376
+ tmp.write('<html><head><title>Subscribe to Aakash Web</title>');
377
+ tmp.write('</head><body><p><b>Select an option</b></p><ul><li><a href="http://feedburner.google.com/fb/a/mailverify?uri=aakashweb">Subscribe Now</a></li><li><a href="http://feeds2.feedburner.com/aakashweb" target="_blank">Read the feeds</a></li></ul>');
378
+ tmp.write('</body></html>');
379
+ subWindow.moveTo(200,200);
380
+ tmp.close();
381
+ }
382
+
383
+ function openAddthis(){
384
+ window.open ("http://www.addthis.com/bookmark.php?v=250&username=vaakash&title=WP Socializer - Wordpress plugin&url=http://www.aakashweb.com/wordpress-plugins/wp-socializer/", "open_window","location=0,status=0,scrollbars=1,width=500,height=600");
385
+ }
386
+
387
+ function openServiceSelctor(windowUrl, id){
388
+ var atw = window.open(windowUrl + document.getElementById(id).value, 'wpsr_services_popup','width=500,height=623,scrollbars=1');
389
+ atw.focus();
390
+ return false;
391
+ }
392
+
393
+ function addthisSetTargetField(gotValue, targetField){
394
+ document.getElementById(targetField).value = gotValue;
395
+ window.focus();
396
+ }
397
+
398
+ /* AW Quick tab editor */
399
+ function awQuickTags(tbField,openTg,closeTg,btType){contentBox=document.getElementById(tbField);var src;var href;var style;var divStyle;var divId;if(document.selection){contentBox.focus();sel=document.selection.createRange();if(btType==''){sel.text=insertTagsAll('',openTg,sel.text,closeTg,'');}if(btType=='a'){sel.text=insertTagLink('',openTg,sel.text,closeTg,'');}if(btType=='img'){sel.text=insertTagImage('',openTg,sel.text,closeTg,'');}if(btType=='replace'){sel.text=insertTagReplacable('',openTg,sel.text,closeTg,'');}}else if(contentBox.selectionStart||contentBox.selectionStart=='0'){var startPos=contentBox.selectionStart;var endPos=contentBox.selectionEnd;var front=(contentBox.value).substring(0,startPos);var back=(contentBox.value).substring(endPos,contentBox.value.length);var selectedText=contentBox.value.substring(startPos,endPos);if(btType==''){contentBox.value=insertTagsAll(front,openTg,selectedText,closeTg,back);contentBox.selectionStart=startPos+contentBox.value.length;contentBox.selectionEnd=startPos+openTg.length+selectedText.length;}if(btType=='a'){contentBox.value=insertTagLink(front,openTg,selectedText,closeTg,back);contentBox.selectionStart=startPos+contentBox.value.length;contentBox.selectionEnd=startPos+openTg.length+selectedText.length+8+href.length;}if(btType=='img'){contentBox.value=insertTagImage(front,openTg,selectedText,closeTg,back);contentBox.selectionStart=startPos+contentBox.value.length;contentBox.selectionEnd=startPos+openTg.length+selectedText.length+7+src.length+closeTg.length;}if(btType=='replace'){contentBox.value=insertTagReplacable(front,openTg,selectedText,closeTg,back);contentBox.selectionStart=startPos+contentBox.value.length;contentBox.selectionEnd=startPos+openTg.length;}}else{contentBox.value+=myValue;contentBox.focus();}function insertTagsAll(frontText,openTag,selectedText,closeTag,backText){return frontText+openTg+selectedText+closeTg+backText;}function insertTagLink(frontText,openTag,selectedText,closeTag,backText){href=prompt('Enter the URL of the Link','http://');if(href!='http://'&&href!=null){return frontText+openTg+'href="'+href+'">'+selectedText+closeTg+backText;}else{return frontText+selectedText+backText;}}function insertTagImage(frontText,openTag,selectedText,closeTag,backText){src=prompt('Enter the URL of the Image','http://');if(src!='http://'&&src!=null){return frontText+openTg+'src="'+src+'" '+closeTg+selectedText+backText;}else{return frontText+selectedText+backText;}}function insertTagImage(frontText,openTag,selectedText,closeTag,backText){src=prompt('Enter the URL of the Image','http://');if(src!='http://'&&src!=null){return frontText+openTg+'src="'+src+'" '+closeTg+selectedText+backText;}else{return frontText+selectedText+backText;}}function insertTagReplacable(frontText,openTag,selectedText,closeTag,backText){return frontText+openTg+backText;}}function awQuickTagsHeading(tbField,headingBox){contentBox=document.getElementById(tbField);hBox=document.getElementById(headingBox);contentBox.focus();if(document.selection){contentBox.focus();sel=document.selection.createRange();sel.text='<h'+hBox.value+'>'+sel.text+'</h'+hBox.value+'>';}else if(contentBox.selectionStart||contentBox.selectionStart=='0'){var startPos=contentBox.selectionStart;var endPos=contentBox.selectionEnd;var front=(contentBox.value).substring(0,startPos);var back=(contentBox.value).substring(endPos,contentBox.value.length);var selectedText=contentBox.value.substring(startPos,endPos);contentBox.value=front+'<h'+hBox.value+'>'+selectedText+'</h'+hBox.value+'>'+back;contentBox.selectionStart=startPos+contentBox.value.length;contentBox.selectionEnd=startPos+4+selectedText.length;}}
admin/wpsr-admin-mini-css.css ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Author : Aakash Chakravarthy
3
+ * Version : 1.0
4
+ */
5
+
6
+ *{
7
+ margin: 0px;
8
+ padding: 0px;
9
+ }
10
+ body{
11
+ font: 13px Arial, Helvetica, sans-serif;
12
+ background: #F9F9F9;
13
+ }
14
+ h2{
15
+ margin: 10px 0px;
16
+ }
17
+ small {
18
+ color: #999999;
19
+ margin: 0px !important;
20
+ padding: 0px !important;
21
+ }
22
+ input{
23
+ padding: 3px;
24
+ }
25
+ #wrapper {
26
+ border: 1px solid #D4D4D4;
27
+ background: #FFFFFF;
28
+ padding: 10px;
29
+ margin: 10px;
30
+ -moz-border-radius: 6px;
31
+ border-radius: 6px;
32
+ -webkit-box-shadow: rgba(0, 0, 0, 0.0976563) 0px 2px 3px;
33
+ }
34
+
35
+ #wrapper form {
36
+ border-top: 1px solid #d4d4d4;
37
+ margin: 10px 0px;
38
+ padding: 10px 5px 5px;
39
+ }
40
+ #google_translate_element{
41
+ margin: -11px 0px 0px;
42
+ float: right;
43
+ border: 1px solid #d4d4d4;
44
+ padding: 5px;
45
+ -webkit-box-shadow: rgba(0, 0, 0, 0.0976563) 0px 2px 3px;
46
+ background: #FDFDFD;
47
+ }
admin/wpsr-admin-other.php ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Admin Page for WP Socializer Plugin - In widgets and posts
4
+ * Author : Aakash Chakravarthy
5
+ */
6
+
7
+ function wpsr_check_hja(){
8
+ if (class_exists('html_javascript_adder_widget') && HJA_VERSION >= '3.2'){
9
+ return 'installed';
10
+ }elseif(HJA_VERSION < '3.2'){
11
+ return 'upgradable';
12
+ }else{
13
+ return 'not-installed';
14
+ }
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">
35
+ <div class="miniWrap">
36
+ <h2><img width="32" height="32" src="<?php echo WPSR_ADMIN_URL; ?>images/wp-socializer.png" align="absmiddle"/> WP Socializer - <?php _e('In widgets and posts', 'wpsr'); ?></h2>
37
+ <div class="message updated"><p><strong><?php _e('Note:', 'wpsr'); ?></strong> <?php _e('Inorder to use the buttons in <em>Widgets</em> and <em>Posts</em>, you need to use the below shortcodes.', 'wpsr'); ?></p>
38
+ </div>
39
+ <br />
40
+
41
+ <table class="widefat scTable">
42
+ <thead>
43
+ <tr>
44
+ <th>Button</th>
45
+ <th>Shortcode</th>
46
+ </tr>
47
+ </thead>
48
+ <tfoot>
49
+ <tr>
50
+ <th>Button</th>
51
+ <th>Shortcode</th>
52
+ </tr>
53
+ </tfoot>
54
+ <tbody>
55
+ <?php
56
+ foreach($wpsr_shortcodes_list as $name => $shortcode){
57
+ echo "<tr><td>$name</td><td>$shortcode</td></tr>";
58
+ }
59
+ ?>
60
+ </tbody>
61
+ </table>
62
+
63
+ <small class="smallText"><?php _e('These shortcodes have several parameters. You can use them to customize the buttons. View the parameters in this page.', 'wpsr'); ?></small>
64
+
65
+ <h2>In widgets</h2>
66
+ <p><?php _e('You must use the above shortcodes in', 'wpsr'); ?> <a href="http://www.aakashweb.com/wordpress-plugins/html-javascript-adder/" target="_blank">HTML Javascript adder</a> <a href="#note" onclick="javascript:$j('.hjaNote').addClass('updated');">(?)</a> <?php _e('plugin to insert the buttons in the widgets.', 'wpsr'); ?></p>
67
+
68
+ <p><center>
69
+ <?php
70
+ $nonce = wp_create_nonce('wpsr-nonce');
71
+ if (wpsr_check_hja() == 'installed'){
72
+ echo '<em>' . __('HTML Javascript Adder is installed, Go to Widgets page and use the shortcodes in this widget' ,'wpsr') . '</em>';
73
+ }elseif(wpsr_check_hja() == 'upgradable'){
74
+ $updateUrl = 'update.php?action=upgrade-plugin&plugin=html-javascript-adder%2Fhtml-javascript-adder.php&_wpnonce=' . $nonce;
75
+ echo "<a class='button-primary' href='$updateUrl'>" . __('Upgrade HTML Javascript Adder plugin' ,'wpsr') . "</a><br>";
76
+ echo "<br><span class='smallText error'>" . __('The current version (' ,'wpsr') . HJA_VERSION . __(') is not compatible with WP Socializer. It is recommended to upgrade' ,'wpsr') . "</span>";
77
+ }elseif(wpsr_check_hja() == 'not-installed'){
78
+ $installUrl = 'update.php?action=install-plugin&plugin=html-javascript-adder&_wpnonce=' . $nonce;
79
+ echo "<a class='button-primary' href='$installUrl'>" . __('Install HTML Javascript Adder plugin' ,'wpsr') . "</a>";
80
+ }
81
+ ?>
82
+ </center></p>
83
+
84
+ <hr />
85
+
86
+ <h2><?php _e('Inside Posts', 'wpsr'); ?></h2>
87
+ <p><?php _e('Inorder to use the buttons inside posts, you must use the above shortcodes in the post editor.', 'wpsr'); ?></p>
88
+
89
+ <hr />
90
+
91
+ <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>
92
+ <a name="note" id="note"></a>
93
+ </div>
94
+
95
+ </div>
96
+ <?php
97
+ }
98
+
99
+ ?>
admin/wpsr-admin.php ADDED
@@ -0,0 +1,1650 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Main Admin Page for WP Socializer Plugin
4
+ * Author : Aakash Chakravarthy
5
+ */
6
+
7
+ $wpsr_donate_link='http://bit.ly/wpsrDonate';
8
+
9
+ function wpsr_admin_menu() {
10
+
11
+ $icon = WPSR_ADMIN_URL .'images/wp-socializer-20.png';
12
+
13
+ add_menu_page('WP Socializer - Admin page', 'WP Socializer', 'manage_options', 'wp_socializer', 'wpsr_admin_page', $icon);
14
+ add_submenu_page('wp_socializer', 'WP Socializer - Admin page', 'WP Socializer', 'manage_options', 'wp_socializer', 'wpsr_admin_page');
15
+ add_submenu_page('wp_socializer', 'WP Socializer - Placement', 'Placement', 'manage_options', 'wp_socializer#tab-9', 'wpsr_admin_page');
16
+ add_submenu_page('wp_socializer', 'WP Socializer - Settings', 'Settings', 'manage_options', 'wp_socializer#tab-10', 'wpsr_admin_page');
17
+ add_submenu_page('wp_socializer', 'WP Socializer - In widgets and posts', 'In widgets & posts', 'manage_options', 'wp_socializer_other', 'wpsr_admin_page_other');
18
+ }
19
+ add_action('admin_menu', 'wpsr_admin_menu');
20
+
21
+ ## Load the Javascripts
22
+ function wpsr_admin_js() {
23
+
24
+ $admin_js_url = WPSR_ADMIN_URL . 'wpsr-admin-js.js';
25
+ $colorpicker_js_url = WPSR_ADMIN_URL . 'colorpicker/jquery.colorPicker.js';
26
+
27
+ if (isset($_GET['page']) && ($_GET['page'] == 'wp_socializer' || $_GET['page'] == 'wp_socializer_other')){
28
+ wp_enqueue_script('jquery');
29
+ wp_enqueue_script('jquery-ui-core', false, array('jquery'));
30
+ wp_enqueue_script('jquery-ui-sortable', false, array('jquery','jquery-ui-core'));
31
+ wp_enqueue_script('jquery-ui-tabs', false, array('jquery','jquery-ui-core','jquery-ui-sortable'));
32
+ wp_enqueue_script('wp-socializer-admin-js', $admin_js_url, array('jquery','jquery-ui-core','jquery-ui-sortable', 'jquery-ui-tabs'));
33
+ wp_enqueue_script('wp-socializer-colorpicker-js', $colorpicker_js_url, array('jquery','jquery-ui-core','jquery-ui-tabs', 'jquery-ui-sortable', 'wp-socializer-admin-js'));
34
+ }
35
+ }
36
+ add_action('admin_print_scripts', 'wpsr_admin_js');
37
+
38
+
39
+ ## Load the CSS
40
+ function wpsr_admin_css() {
41
+
42
+ if (isset($_GET['page']) && ($_GET['page'] == 'wp_socializer' || $_GET['page'] == 'wp_socializer_other')) {
43
+ wp_enqueue_style('wp-socializer-admin-css', WPSR_ADMIN_URL . 'wpsr-admin-css.css');
44
+ }
45
+ }
46
+ add_action('admin_print_styles', 'wpsr_admin_css');
47
+
48
+ ## Misc functions
49
+ function wpsr_addmi($name){
50
+ return "<img src='" . WPSR_ADMIN_URL . "images/buttons/{$name}.png' />";
51
+ }
52
+ function wpsr_addcodeico($code){
53
+ echo "<img src='" . WPSR_ADMIN_URL . "images/codeIcon.png' width='16' height='16' align='absmiddle' class='codePopupIco' alt='{$code}' />";
54
+ }
55
+ function wpsr_addtoolbar($id){
56
+ echo
57
+ '<div class="toolbar">
58
+ <ul class="tbButtons">
59
+ <li class="parentLi btn">
60
+ <span class="admSprites socialButtons"></span>Social buttons
61
+ <ul bxid="' . $id . '">
62
+ <li openTag="{social-bts-16px}">Social buttons 16px</li>
63
+ <li openTag="{social-bts-32px}">Social buttons 32px</li>
64
+ </ul>
65
+ </li>
66
+
67
+ <li class="parentLi btn">
68
+ <span class="admSprites addthisIcon"></span>Addthis
69
+ <ul bxid="' . $id . '">
70
+ <li class="showTooltip" openTag="{addthis-tb-16px}" title="' . wpsr_addmi('addthis-tb-16px') . '">Toolbox 16px</li>
71
+ <li class="showTooltip" openTag="{addthis-tb-32px}" title="' . wpsr_addmi('addthis-tb-32px') . '">Toolbox 32px</li>
72
+ <li class="showTooltip" openTag="{addthis-sc}" title="' . wpsr_addmi('adthis-sharecount') . '">Sharecount</li>
73
+ <li class="showTooltip" openTag="{addthis-bt}" title="' . wpsr_addmi('addthis-buttons') . '">Buttons</li>
74
+ </ul>
75
+ </li>
76
+
77
+ <li class="parentLi btn">
78
+ <span class="admSprites sharethisIcon"></span>Sharethis
79
+ <ul bxid="' . $id . '">
80
+ <li class="showTooltip" openTag="{sharethis-vcount}" title="' . wpsr_addmi('sharethis-vcount') . '">Vertical Count</li>
81
+ <li class="showTooltip" openTag="{sharethis-hcount}" title="' . wpsr_addmi('sharethis-hcount') . '">Horizontal Count</li>
82
+ <li class="showTooltip" openTag="{sharethis-large}" title="' . wpsr_addmi('sharethis-large') . '">Large Buttons</li>
83
+ <li class="showTooltip" openTag="{sharethis-regular}" title="' . wpsr_addmi('sharethis-regular') . '">Regular Buttons</li>
84
+ <li class="showTooltip" openTag="{sharethis-regular2}" title="' . wpsr_addmi('sharethis-regular-notext') . '">Regular Buttons (no-text)</li>
85
+ <li class="showTooltip" openTag="{sharethis-bt}" title="' . wpsr_addmi('sharethis-buttons') . '">Buttons</li>
86
+ <li class="showTooltip" openTag="{sharethis-classic}" title="' . wpsr_addmi('sharethis-classic') . '">Classic</li>
87
+ </ul>
88
+ </li>
89
+
90
+ <li class="parentLi btn">
91
+ <span class="admSprites facebookIcon"></span>Facebook
92
+ <ul bxid="' . $id . '">
93
+ <li openTag="{facebook-like}">Like button</li>
94
+ <li openTag="{facebook-share}">Share button</li>
95
+ </ul>
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
+
110
+ <li class="parentLi btn">
111
+ <span class="admSprites retweetIcon"></span>Retweet & Digg
112
+ <ul bxid="' . $id . '">
113
+ <li openTag="{retweet-bt}">Retweet button</li>
114
+ <li openTag="{digg-bt}">Digg button</li>
115
+ </ul>
116
+ </li>
117
+
118
+ <li class="parentLi btn">
119
+ <span class="admSprites stumbleuponIcon"></span>StumbleUpon
120
+ <ul bxid="' . $id . '">
121
+ <li class="showTooltip" openTag="{stumbleupon-1}" title="' . wpsr_addmi('stumbleupon-bts') . '">Type 1</li>
122
+ <li class="showTooltip" openTag="{stumbleupon-2}" title="' . wpsr_addmi('stumbleupon-bts') . '">Type 2</li>
123
+ <li class="showTooltip" openTag="{stumbleupon-3}" title="' . wpsr_addmi('stumbleupon-bts') . '">Type 3</li>
124
+ <li class="showTooltip" openTag="{stumbleupon-5}" title="' . wpsr_addmi('stumbleupon-bts') . '">Type 5</li>
125
+ </ul>
126
+ </li>
127
+
128
+ <li class="parentLi btn">
129
+ <span class="admSprites redditIcon"></span>Reddit
130
+ <ul bxid="' . $id . '">
131
+ <li class="showTooltip" openTag="{reddit-1}" title="' . wpsr_addmi('reddit-bts') . '">Type 1</li>
132
+ <li class="showTooltip" openTag="{reddit-2}" title="' . wpsr_addmi('reddit-bts') . '">Type 2</li>
133
+ <li class="showTooltip" openTag="{reddit-3}" title="' . wpsr_addmi('reddit-bts') . '">Type 3</li>
134
+ </ul>
135
+ </li>
136
+
137
+ <li class="parentLi btn">
138
+ <span class="admSprites customIcon"></span>Other buttons
139
+ <ul bxid="' . $id . '">
140
+ <li openTag="{custom-1}">Custom 1</li>
141
+ <li openTag="{custom-2}">Custom 2</li>
142
+ </ul>
143
+ </li>
144
+
145
+ <li class="parentLi btn">Headings
146
+ <ul bxid="' . $id . '">
147
+ <li openTag="<h1>" closeTag="</h1>">Heading 1</li>
148
+ <li openTag="<h2>" closeTag="</h2>">Heading 2</li>
149
+ <li openTag="<h3>" closeTag="</h3>">Heading 3</li>
150
+ <li openTag="<h4>" closeTag="</h4>">Heading 4</li>
151
+ <li openTag="<h5>" closeTag="</h5>">Heading 5</li>
152
+ <li openTag="<h6>" closeTag="</h6>">Heading 6</li>
153
+ </ul>
154
+ </li>
155
+
156
+ <li class="parentLi btn">Float
157
+ <ul bxid="' . $id . '">
158
+ <li openTag=\' style="float:left"\'>Float Left</li>
159
+ <li openTag=\' style="float:right"\'>Float Right</li>
160
+ </ul>
161
+ </li>
162
+
163
+ </ul>
164
+
165
+ <ul class="tbButtons" bxid="' . $id . '">
166
+ <li class="btn" openTag="<p>" closeTag="</p>">p</li>
167
+ <li class="btn" openTag="</br>">br</li>
168
+ <li class="btn" openTag="<span>" closeTag="</span>">span</li>
169
+ <li class="btn" openTag="<div>" closeTag="</div>">div</li>
170
+ <li class="btn" openTag="</hr>">hr</li>
171
+ <li class="btn" openTag="<ul>" closeTag="</ul>">ul</li>
172
+ <li class="btn" openTag="<li>" closeTag="</li>">li</li>
173
+ <li class="btn" openTag=\'<div style="clear: both"></div>\'>clearer</li>
174
+ <li class="btn"><a href="http://www.aakashweb.com/wordpress-plugins/wp-socializer/" title="Help" target="_blank">?</a></li>
175
+ </ul>
176
+ </div>';
177
+ }
178
+
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>
190
+ {social-bts-32px}';
191
+
192
+ ## Addthis defaults
193
+ $wpsr_addthis['username'] = '';
194
+ $wpsr_addthis['language'] = 'en';
195
+ $wpsr_addthis['button'] = 'lg-share-';
196
+
197
+ $wpsr_addthis['tb_16pxservices'] = $wpsr_addthis['tb_32pxservices'] = 'facebook,twitter,digg,delicious,email,compact';
198
+ $wpsr_addthis['sharecount'] = 'normal';
199
+
200
+ $wpsr_addthis['btbrand'] = '';
201
+ $wpsr_addthis['clickback'] = 1;
202
+ $wpsr_addthis['btheadclr'] = '#000000';
203
+ $wpsr_addthis['btheadbgclr'] = '#f2f2f2';
204
+
205
+ update_option("wpsr_addthis_data", $wpsr_addthis);
206
+
207
+ ## Sharethis defaults
208
+ $wpsr_sharethis['vcount_order'] = 'facebook,twitter,email,sharethis';
209
+ $wpsr_sharethis['hcount_order'] = 'facebook,twitter,email,sharethis';
210
+ $wpsr_sharethis['buttons_order'] = 'facebook,twitter,email,sharethis';
211
+ $wpsr_sharethis['large_order'] = 'facebook,twitter,email,sharethis';
212
+ $wpsr_sharethis['regular_order'] = 'facebook,twitter,email,sharethis';
213
+ $wpsr_sharethis['regular2_order'] = 'facebook,twitter,email,sharethis';
214
+ $wpsr_sharethis['pubkey'] = '';
215
+ $wpsr_sharethis['addp'] = 1;
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';
231
+ $wpsr_retweet['service'] = 'twitter';
232
+ $wpsr_retweet['topsytheme'] = 'blue';
233
+ $wpsr_retweet['twitter_recacc'] = '';
234
+ $wpsr_retweet['twitter_lang'] = 'en';
235
+
236
+ update_option("wpsr_retweet_data", $wpsr_retweet);
237
+
238
+ ## Digg Defaults
239
+ $wpsr_digg['type'] = 'DiggCompact';
240
+
241
+ update_option("wpsr_digg_data", $wpsr_digg);
242
+
243
+ ## Facebook Defaults
244
+ $wpsr_facebook['btstyle'] = 'button_count';
245
+ $wpsr_facebook['showfaces'] = 0;
246
+ $wpsr_facebook['width'] = 80;
247
+ $wpsr_facebook['verb'] = 'like';
248
+ $wpsr_facebook['font'] = 'arial';
249
+ $wpsr_facebook['color'] = 'light';
250
+ $wpsr_facebook['shstyle'] = 'button';
251
+ $wpsr_facebook['counter'] = 1;
252
+ $wpsr_facebook['counterplacement'] = 'above';
253
+
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;
263
+ $wpsr_socialbt['columns'] = 'no';
264
+ $wpsr_socialbt['imgpath16px'] = WPSR_SOCIALBT_IMGPATH . '16/';
265
+ $wpsr_socialbt['imgpath32px'] = WPSR_SOCIALBT_IMGPATH . '32/';
266
+ $wpsr_socialbt['usesprites'] = 1;
267
+
268
+ update_option('wpsr_socialbt_data', $wpsr_socialbt);
269
+
270
+ ## Custom Defaults
271
+ $wpsr_custom['custom1'] = '';
272
+ $wpsr_custom['custom2'] = '';
273
+
274
+ update_option("wpsr_custom_data", $wpsr_custom);
275
+
276
+ ## Placement Defaults | Template 1
277
+ $wpsr_template1['content'] = $wpsr_temp1_def;
278
+ $wpsr_template1['inhome'] = 0;
279
+ $wpsr_template1['insingle'] = 1;
280
+ $wpsr_template1['inpage'] = 1;
281
+ $wpsr_template1['incategory'] = 0;
282
+ $wpsr_template1['intag'] = 0;
283
+ $wpsr_template1['indate'] = 0;
284
+ $wpsr_template1['inauthor'] = 0;
285
+ $wpsr_template1['insearch'] = 0;
286
+ $wpsr_template1['inexcerpt'] = 0;
287
+ $wpsr_template1['infeed'] = 0;
288
+ $wpsr_template1['abvcontent'] = 1;
289
+ $wpsr_template1['blwcontent'] = 0;
290
+ $wpsr_template1['addp'] = 0;
291
+
292
+ update_option("wpsr_template1_data", $wpsr_template1);
293
+
294
+ ## Placement Defaults | Template 2
295
+ $wpsr_template2['content'] = $wpsr_temp2_def;
296
+ $wpsr_template2['inhome'] = 1;
297
+ $wpsr_template2['insingle'] = 1;
298
+ $wpsr_template2['inpage'] = 1;
299
+ $wpsr_template2['incategory'] = 1;
300
+ $wpsr_template2['intag'] = 1;
301
+ $wpsr_template2['indate'] = 1;
302
+ $wpsr_template2['inauthor'] = 1;
303
+ $wpsr_template2['insearch'] = 1;
304
+ $wpsr_template2['inexcerpt'] = 1;
305
+ $wpsr_template2['infeed'] = 1;
306
+ $wpsr_template2['abvcontent'] = 0;
307
+ $wpsr_template2['blwcontent'] = 1;
308
+ $wpsr_template2['addp'] = 0;
309
+
310
+ update_option("wpsr_template2_data", $wpsr_template2);
311
+
312
+ ## Settings Defaults
313
+ $wpsr_settings['rssoutput'] = '';
314
+ $wpsr_settings['bitlyusername'] = '';
315
+ $wpsr_settings['bitlyapi'] = '';
316
+ $wpsr_settings['disablewpsr'] = 0;
317
+ $wpsr_settings['scriptsplace'] = 'header';
318
+
319
+ update_option("wpsr_settings_data", $wpsr_settings);
320
+ }
321
+
322
+ ## Check what to show in the admin
323
+ function wpsr_show_admin(){
324
+ if(get_option('wpsr_version') == WPSR_VERSION){
325
+ return 1;
326
+ }else{
327
+ return 0;
328
+ }
329
+ }
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);
338
+ }
339
+
340
+ ## Admin Menu
341
+ function wpsr_admin_page(){
342
+
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');
355
+ $wpsr_socialbt = get_option('wpsr_socialbt_data');
356
+ $wpsr_custom = get_option('wpsr_custom_data');
357
+ $wpsr_template1 = get_option('wpsr_template1_data');
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
+
365
+ if($wpsr_socialbt['imgpath16px'] == WPSR_URL . 'social-icons/16/'){
366
+ wpsr_version1_fix();
367
+ $wpsr_v1fix = true;
368
+ }
369
+
370
+ if ($_POST['wpsr_reset']){
371
+ wpsr_reset_values();
372
+ $wpsr_reseted = true;
373
+ }
374
+
375
+ if ($_POST['wpsr_intro_submit']){
376
+ update_option("wpsr_version", WPSR_VERSION);
377
+ }
378
+
379
+ if ($_POST["wpsr_submit"]) {
380
+ ## Addthis options
381
+ $wpsr_addthis['username'] = $_POST['wpsr_addthis_username'];
382
+ $wpsr_addthis['language'] = $_POST['wpsr_addthis_lang'];
383
+ $wpsr_addthis['button'] = $_POST['wpsr_addthis_button'];
384
+
385
+ $wpsr_addthis['tb_16pxservices'] = $_POST['wpsr_addthis_tb_16pxservices'];
386
+ $wpsr_addthis['tb_32pxservices'] = $_POST['wpsr_addthis_tb_32pxservices'];
387
+ $wpsr_addthis['sharecount'] = $_POST['wpsr_addthis_sharecount'];
388
+
389
+ $wpsr_addthis['btbrand'] = $_POST['wpsr_addthis_btbrand'];
390
+ $wpsr_addthis['clickback'] = $_POST['wpsr_addthis_clickback'];
391
+ $wpsr_addthis['btheadclr'] = $_POST['wpsr_addthis_btheadclr'];
392
+ $wpsr_addthis['btheadbgclr'] = $_POST['wpsr_addthis_btheadbgclr'];
393
+
394
+ update_option("wpsr_addthis_data", $wpsr_addthis);
395
+
396
+ ## Sharethis Options
397
+ $wpsr_sharethis['vcount_order'] = $_POST['wpsr_sharethis_vcount_order'];
398
+ $wpsr_sharethis['hcount_order'] = $_POST['wpsr_sharethis_hcount_order'];
399
+ $wpsr_sharethis['buttons_order'] = $_POST['wpsr_sharethis_buttons_order'];
400
+ $wpsr_sharethis['large_order'] = $_POST['wpsr_sharethis_large_order'];
401
+ $wpsr_sharethis['regular_order'] = $_POST['wpsr_sharethis_regular_order'];
402
+ $wpsr_sharethis['regular2_order'] = $_POST['wpsr_sharethis_regular2_order'];
403
+ $wpsr_sharethis['pubkey'] = $_POST['wpsr_sharethis_pubkey'];
404
+ $wpsr_sharethis['addp'] = $_POST['wpsr_sharethis_addp'];
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'];
421
+ $wpsr_retweet['service'] = $_POST['wpsr_retweet_service'];
422
+ $wpsr_retweet['topsytheme'] = $_POST['wpsr_retweet_topsytheme'];
423
+ $wpsr_retweet['twitter_recacc'] = $_POST['wpsr_retweet_twitter_recacc'];
424
+ $wpsr_retweet['twitter_lang'] = $_POST['wpsr_retweet_twitter_lang'];
425
+
426
+ update_option("wpsr_retweet_data", $wpsr_retweet);
427
+
428
+ ## Digg Options
429
+ $wpsr_digg['type'] = $_POST['wpsr_digg_type'];
430
+
431
+ update_option("wpsr_digg_data", $wpsr_digg);
432
+
433
+ ## Facebook Options
434
+ $wpsr_facebook['btstyle'] = $_POST['wpsr_facebook_btstyle'];
435
+ $wpsr_facebook['showfaces'] = $_POST['wpsr_facebook_showfaces'];
436
+ $wpsr_facebook['width'] = $_POST['wpsr_facebook_width'];
437
+ $wpsr_facebook['verb'] = $_POST['wpsr_facebook_verb'];
438
+ $wpsr_facebook['font'] = $_POST['wpsr_facebook_font'];
439
+ $wpsr_facebook['color'] = $_POST['wpsr_facebook_color'];
440
+ $wpsr_facebook['shstyle'] = $_POST['wpsr_facebook_shstyle'];
441
+ $wpsr_facebook['counter'] = $_POST['wpsr_facebook_counter'];
442
+ $wpsr_facebook['counterplacement'] = $_POST['wpsr_facebook_counterplacement'];
443
+
444
+ update_option("wpsr_facebook_data", $wpsr_facebook);
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'];
451
+ $wpsr_socialbt['columns'] = $_POST['wpsr_socialbt_columns'];
452
+ $wpsr_socialbt['selected16px'] = $_POST['wpsr_socialbt_selected16px'];
453
+ $wpsr_socialbt['selected32px'] = $_POST['wpsr_socialbt_selected32px'];
454
+ $wpsr_socialbt['imgpath16px'] = $_POST['wpsr_socialbt_imgpath16px'];
455
+ $wpsr_socialbt['imgpath32px'] = $_POST['wpsr_socialbt_imgpath32px'];
456
+ $wpsr_socialbt['usesprites'] = $_POST['wpsr_socialbt_usesprites'];
457
+
458
+ update_option('wpsr_socialbt_data', $wpsr_socialbt);
459
+
460
+ ## Custom Options
461
+ $wpsr_custom['custom1'] = stripslashes($_POST['wpsr_custom1']);
462
+ $wpsr_custom['custom2'] = stripslashes($_POST['wpsr_custom2']);
463
+
464
+ update_option("wpsr_custom_data", $wpsr_custom);
465
+
466
+ ## Placement Options | Template 1
467
+ $wpsr_template1['content'] = stripslashes($_POST['wpsr_template1_content']);
468
+ $wpsr_template1['inhome'] = $_POST['wpsr_template1_inhome'];
469
+ $wpsr_template1['insingle'] = $_POST['wpsr_template1_insingle'];
470
+ $wpsr_template1['inpage'] = $_POST['wpsr_template1_inpage'];
471
+ $wpsr_template1['incategory'] = $_POST['wpsr_template1_incategory'];
472
+ $wpsr_template1['intag'] = $_POST['wpsr_template1_intag'];
473
+ $wpsr_template1['indate'] = $_POST['wpsr_template1_indate'];
474
+ $wpsr_template1['inauthor'] = $_POST['wpsr_template1_inauthor'];
475
+ $wpsr_template1['insearch'] = $_POST['wpsr_template1_insearch'];
476
+ $wpsr_template1['inexcerpt'] = $_POST['wpsr_template1_inexcerpt'];
477
+ $wpsr_template1['infeed'] = $_POST['wpsr_template1_infeed'];
478
+ $wpsr_template1['abvcontent'] = $_POST['wpsr_template1_abvcontent'];
479
+ $wpsr_template1['blwcontent'] = $_POST['wpsr_template1_blwcontent'];
480
+ $wpsr_template1['addp'] = $_POST['wpsr_template1_addp'];
481
+
482
+ update_option("wpsr_template1_data", $wpsr_template1);
483
+
484
+ ## Placement Options | Template 2
485
+ $wpsr_template2['content'] = stripslashes($_POST['wpsr_template2_content']);
486
+ $wpsr_template2['inhome'] = $_POST['wpsr_template2_inhome'];
487
+ $wpsr_template2['insingle'] = $_POST['wpsr_template2_insingle'];
488
+ $wpsr_template2['inpage'] = $_POST['wpsr_template2_inpage'];
489
+ $wpsr_template2['incategory'] = $_POST['wpsr_template2_incategory'];
490
+ $wpsr_template2['intag'] = $_POST['wpsr_template2_intag'];
491
+ $wpsr_template2['indate'] = $_POST['wpsr_template2_indate'];
492
+ $wpsr_template2['inauthor'] = $_POST['wpsr_template2_inauthor'];
493
+ $wpsr_template2['insearch'] = $_POST['wpsr_template2_insearch'];
494
+ $wpsr_template2['inexcerpt'] = $_POST['wpsr_template2_inexcerpt'];
495
+ $wpsr_template2['infeed'] = $_POST['wpsr_template2_infeed'];
496
+ $wpsr_template2['abvcontent'] = $_POST['wpsr_template2_abvcontent'];
497
+ $wpsr_template2['blwcontent'] = $_POST['wpsr_template2_blwcontent'];
498
+ $wpsr_template2['addp'] = $_POST['wpsr_template2_addp'];
499
+
500
+ update_option("wpsr_template2_data", $wpsr_template2);
501
+
502
+ ## Settings options
503
+ $wpsr_settings['rssurl'] = $_POST['wpsr_settings_rssurl'];
504
+ $wpsr_settings['bitlyusername'] = $_POST['wpsr_settings_bitlyusername'];
505
+ $wpsr_settings['bitlyapi'] = $_POST['wpsr_settings_bitlyapi'];
506
+ $wpsr_settings['disablewpsr'] = $_POST['wpsr_settings_disablewpsr'];
507
+ $wpsr_settings['scriptsplace'] = $_POST['wpsr_settings_scriptsplace'];
508
+
509
+ update_option("wpsr_settings_data", $wpsr_settings);
510
+
511
+ $wpsr_updated = true;
512
+
513
+ if(get_option("wpsr_active") == 0){
514
+ update_option("wpsr_active", 1);
515
+ }
516
+ }
517
+
518
+ if($wpsr_updated == true){
519
+ echo "<div class='message updated fixedMsg autoHide'><p>" . __('Updated successfully', 'wpsr') . "</p></div>";
520
+ }
521
+
522
+ if($wpsr_reseted == true){
523
+ echo "<div class='message updated fixedMsg autoHide'><p>" . __('Values are set to defaults successfully', 'wpsr') . "</p></div>";
524
+ }
525
+
526
+ if($wpsr_v1fix == true){
527
+ echo "<div class='message updated fixedMsg autoHide'><p>" . __('You have upgraded from version 1.0, So some settings are fixed to suit new version.', 'wpsr') . "</p></div>";
528
+ }
529
+
530
+ ## Addthis Options
531
+ $wpsr_addthis = get_option('wpsr_addthis_data');
532
+
533
+ $wpsr_addthis_username = $wpsr_addthis['username'];
534
+ $wpsr_addthis_lang = $wpsr_addthis['language'];
535
+
536
+ $wpsr_addthis_button = $wpsr_addthis['button'];
537
+
538
+ $wpsr_addthis_tb_16pxservices = $wpsr_addthis['tb_16pxservices'];
539
+ $wpsr_addthis_tb_32pxservices = $wpsr_addthis['tb_32pxservices'];
540
+ $wpsr_addthis_sharecount = $wpsr_addthis['sharecount'];
541
+
542
+ $wpsr_addthis_btbrand = $wpsr_addthis['btbrand'];
543
+ $wpsr_addthis_clickback = $wpsr_addthis['clickback'];
544
+ $wpsr_addthis_btheadclr = $wpsr_addthis['btheadclr'];
545
+ $wpsr_addthis_btheadbgclr = $wpsr_addthis['btheadbgclr'];
546
+
547
+ $wpsr_addthis_btheadclr = $wpsr_addthis_btheadclr;
548
+ $wpsr_addthis_btheadbgclr = $wpsr_addthis_btheadbgclr;
549
+
550
+ ## Sharethis options
551
+ $wpsr_sharethis = get_option('wpsr_sharethis_data');
552
+
553
+ $wpsr_sharethis_vcount_order = $wpsr_sharethis['vcount_order'];
554
+ $wpsr_sharethis_hcount_order = $wpsr_sharethis['hcount_order'];
555
+ $wpsr_sharethis_buttons_order = $wpsr_sharethis['buttons_order'];
556
+ $wpsr_sharethis_large_order = $wpsr_sharethis['large_order'];
557
+ $wpsr_sharethis_regular_order = $wpsr_sharethis['regular_order'];
558
+ $wpsr_sharethis_regular2_order = $wpsr_sharethis['regular2_order'];
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
+
576
+ $wpsr_retweet_username = $wpsr_retweet['username'];
577
+ $wpsr_retweet_type = $wpsr_retweet['type'];
578
+ $wpsr_retweet_service = $wpsr_retweet['service'];
579
+ $wpsr_retweet_topsytheme = $wpsr_retweet['topsytheme'];
580
+ $wpsr_retweet_twitter_recacc = $wpsr_retweet['twitter_recacc'];
581
+ $wpsr_retweet_twitter_lang = $wpsr_retweet['twitter_lang'];
582
+
583
+ ## Digg Options
584
+ $wpsr_digg = get_option('wpsr_digg_data');
585
+
586
+ $wpsr_digg_type = $wpsr_digg['type'];
587
+
588
+ ## Facebook Options
589
+ $wpsr_facebook = get_option('wpsr_facebook_data');
590
+
591
+ $wpsr_facebook_btstyle = $wpsr_facebook['btstyle'];
592
+ $wpsr_facebook_showfaces = $wpsr_facebook['showfaces'];
593
+ $wpsr_facebook_width = $wpsr_facebook['width'];
594
+ $wpsr_facebook_verb = $wpsr_facebook['verb'];
595
+ $wpsr_facebook_font = $wpsr_facebook['font'];
596
+ $wpsr_facebook_color = $wpsr_facebook['color'];
597
+ $wpsr_facebook_bturl = $wpsr_facebook['bturl'];
598
+ $wpsr_facebook_bturlcustom = $wpsr_facebook['bturlcustom'];
599
+ $wpsr_facebook_shstyle = $wpsr_facebook['shstyle'];
600
+ $wpsr_facebook_counter = $wpsr_facebook['counter'];
601
+ $wpsr_facebook_counterplacement = $wpsr_facebook['counterplacement'];
602
+ $wpsr_facebook_shurl = $wpsr_facebook['shurl'];
603
+ $wpsr_facebook_shurlcustom = $wpsr_facebook['shurlcustom'];
604
+
605
+ ## Social Button options
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'];
612
+ $wpsr_socialbt_columns = $wpsr_socialbt['columns'];
613
+ $wpsr_socialbt_selected16px = $wpsr_socialbt['selected16px'];
614
+ $wpsr_socialbt_selected32px = $wpsr_socialbt['selected32px'];
615
+ $wpsr_socialbt_usesprites = $wpsr_socialbt['usesprites'];
616
+ $wpsr_socialbt_imgpath16px = (empty($wpsr_socialbt['imgpath16px'])) ? WPSR_SOCIALBT_IMGPATH . '16/' : $wpsr_socialbt['imgpath16px'];
617
+ $wpsr_socialbt_imgpath32px = (empty($wpsr_socialbt['imgpath32px'])) ? WPSR_SOCIALBT_IMGPATH . '32/' : $wpsr_socialbt['imgpath32px'];
618
+
619
+ ## Custom Options
620
+ $wpsr_custom = get_option('wpsr_custom_data');
621
+
622
+ $wpsr_custom1 = $wpsr_custom['custom1'];
623
+ $wpsr_custom2 = $wpsr_custom['custom2'];
624
+
625
+ ## Placement Options | Template 1
626
+ $wpsr_template1 = get_option('wpsr_template1_data');
627
+
628
+ $wpsr_template1_content = $wpsr_template1['content'];
629
+ $wpsr_template1_inhome = $wpsr_template1['inhome'];
630
+ $wpsr_template1_insingle = $wpsr_template1['insingle'];
631
+ $wpsr_template1_inpage = $wpsr_template1['inpage'];
632
+ $wpsr_template1_incategory = $wpsr_template1['incategory'];
633
+ $wpsr_template1_intag = $wpsr_template1['intag'];
634
+ $wpsr_template1_indate = $wpsr_template1['indate'];
635
+ $wpsr_template1_inauthor = $wpsr_template1['inauthor'];
636
+ $wpsr_template1_insearch = $wpsr_template1['insearch'];
637
+ $wpsr_template1_inexcerpt = $wpsr_template1['inexcerpt'];
638
+ $wpsr_template1_infeed = $wpsr_template1['infeed'];
639
+ $wpsr_template1_abvcontent = $wpsr_template1['abvcontent'];
640
+ $wpsr_template1_blwcontent = $wpsr_template1['blwcontent'];
641
+ $wpsr_template1_addp = $wpsr_template1['addp'];
642
+
643
+ ## Placement Options | Template 2
644
+ $wpsr_template2 = get_option('wpsr_template2_data');
645
+
646
+ $wpsr_template2_content = $wpsr_template2['content'];
647
+ $wpsr_template2_inhome = $wpsr_template2['inhome'];
648
+ $wpsr_template2_insingle = $wpsr_template2['insingle'];
649
+ $wpsr_template2_inpage = $wpsr_template2['inpage'];
650
+ $wpsr_template2_incategory = $wpsr_template2['incategory'];
651
+ $wpsr_template2_intag = $wpsr_template2['intag'];
652
+ $wpsr_template2_indate = $wpsr_template2['indate'];
653
+ $wpsr_template2_inauthor = $wpsr_template2['inauthor'];
654
+ $wpsr_template2_insearch = $wpsr_template2['insearch'];
655
+ $wpsr_template2_inexcerpt = $wpsr_template2['inexcerpt'];
656
+ $wpsr_template2_infeed = $wpsr_template2['infeed'];
657
+ $wpsr_template2_abvcontent = $wpsr_template2['abvcontent'];
658
+ $wpsr_template2_blwcontent = $wpsr_template2['blwcontent'];
659
+ $wpsr_template2_addp = $wpsr_template2['addp'];
660
+
661
+ ## Settings options
662
+ $wpsr_settings = get_option('wpsr_settings_data');
663
+
664
+ $wpsr_settings_rssurl = $wpsr_settings['rssurl'];
665
+ $wpsr_settings_bitlyusername = $wpsr_settings['bitlyusername'];
666
+ $wpsr_settings_bitlyapi = $wpsr_settings['bitlyapi'];
667
+ $wpsr_settings_disablewpsr = $wpsr_settings['disablewpsr'];
668
+ $wpsr_settings_scriptsplace = $wpsr_settings['scriptsplace'];
669
+
670
+ if($wpsr_settings_disablewpsr) $wpsr_is_disabled = '<span class="redText"> | ' . __('Disabled', 'wpsr') . '</span>';
671
+
672
+ ?>
673
+
674
+ <!----------------------------------------------------------------------------------->
675
+ <?php if(wpsr_show_admin() == 1): ?>
676
+ <!-- Main ADMIN page -->
677
+ <div class="wrap">
678
+
679
+ <div id="tabs">
680
+
681
+ <div class="header">
682
+ <div class="headerTitle"><h2><img width="32" height="32" src="<?php echo WPSR_ADMIN_URL; ?>images/wp-socializer.png" align="absmiddle"/>&nbsp;WP Socializer<span class="smallText"> v<?php echo WPSR_VERSION; ?><?php echo $wpsr_is_disabled; ?></span></h2></div>
683
+
684
+ <div class="promoBox">
685
+ <div class="promos plusoneBox">
686
+ <div class="text"><?php _e('+1 this plugin', 'wpsr'); ?></div>
687
+ <?php echo wpsr_admin_buttons('+1'); ?>
688
+ </div>
689
+
690
+ <div class="promos likeBox">
691
+ <div class="iframeWrap">
692
+ <div class="text"><?php _e('Like this plugin', 'wpsr'); ?></div>
693
+ <?php echo wpsr_admin_buttons('fb'); ?>
694
+ </div>
695
+ </div>
696
+
697
+ <div class="promos donateBox">
698
+ <div class="wrap">
699
+ <div class="txt1"><a href="<?php echo $wpsr_donate_link; ?>" target="_blank"><?php _e('Donate', 'wpsr'); ?></a></div>
700
+ <div class="txt2"><a href="<?php echo $wpsr_donate_link; ?>" target="_blank"><?php _e('and Support', 'wpsr'); ?></a></div>
701
+ </div>
702
+ </div>
703
+
704
+ <div class="donatePopup">
705
+ <span class="popClose">x</span>
706
+ <strong><?php _e('Make your donation with Paypal', 'wpsr'); ?></strong>
707
+ <form action="https://www.paypal.com/cgi-bin/webscr" target="_blank" method="post">
708
+ <input type="hidden" name="cmd" value="_xclick">
709
+ <input type="hidden" name="business" value="donations@aakashweb.com">
710
+ <input type="hidden" name="item_name" value="Donation">
711
+ <input type="hidden" name="item_number" value="Donation for WP Socializer plugin">
712
+ <?php _e('Select your Donation amount:', 'wpsr'); ?><br />$
713
+ <select name="amount" class="dd"><?php
714
+ for($d=10; $d<80; $d = $d+5){ echo "<option value='$d'>$d</option>"; }
715
+ for($d=100; $d<305; $d = $d+50){ echo "<option value='$d'>$d</option>"; }
716
+ ?><option value=""><?php _e('Custom', 'wpsr'); ?></option>
717
+ </select>
718
+ <input type="hidden" name="currency_code" value="USD">
719
+ <input type="hidden" name="return" value="http://www.aakashweb.com/?src=donation">
720
+ <input type="submit" class="button" value="<?php _e('Donate with PayPal!', 'wpsr'); ?>">
721
+ </form>
722
+ </div>
723
+
724
+ </div>
725
+ </div>
726
+
727
+ <ul id="tabsList">
728
+ <li><a href="#tab-1"><span class='admSprites oneclickIcon'></span>One click</a></li>
729
+ <li><a href="#tab-2"><span class='admSprites socialButtons'></span>Social Buttons</a></li>
730
+ <li><a href="#tab-3"><span class='admSprites addthisIcon'></span>Addthis</a></li>
731
+ <li><a href="#tab-4"><span class='admSprites sharethisIcon'></span>Sharethis</a></li>
732
+ <li><a href="#tab-5"><span class='admSprites buzzIcon'></span>Google Buzz</a></li>
733
+ <li><a href="#tab-6"><span class='admSprites retweetIcon'></span>Retweet &amp; Digg</a></li>
734
+ <li><a href="#tab-7"><span class='admSprites facebookIcon'></span>Facebook</a></li>
735
+ <li><a href="#tab-8"><span class='admSprites customIcon'></span>Custom</a></li>
736
+ <li class="placementTab"><a href="#tab-9"><span class='admSprites placementIcon'></span>Placement</a></li>
737
+ <li><a href="#tab-10"><span class='admSprites settingsIcon'></span><?php _e('Settings', 'wpsr'); ?></a></li>
738
+
739
+ <div class="tabSep"></div>
740
+
741
+ <li><a class="outLink" rel="http://www.aakashweb.com/docs/wp-socializer-docs/"><span class='admSprites documentationIcon'></span><?php _e('Documentation', 'wpsr'); ?></a></li>
742
+ <li><a class="outLink" rel="http://www.aakashweb.com/forum/"><span class='admSprites supportIcon'></span><?php _e('Support', 'wpsr'); ?></a></li>
743
+ <li><a class="outLink" rel="http://www.aakashweb.com/wordpress-plugins/wp-socializer/"><span class='admSprites minusIcon'></span><?php _e('Manual Placement', 'wpsr'); ?></a></li>
744
+ <li><a class="outLink" rel="admin.php?page=wp_socializer_other"><span class='admSprites minusIcon'></span>In Widgets</a></li>
745
+ <li><a class="outLink" rel="admin.php?page=wp_socializer_other"><span class='admSprites minusIcon'></span>In Posts</a></li>
746
+
747
+ </ul>
748
+
749
+ <!-- Hidden elements -->
750
+ <div class="codePopupInfo" style="display:none">
751
+ <br />
752
+ <small><?php _e('Use the above code <a href="#tab-9">here</a>, to insert the button', 'wpsr'); ?></small>
753
+ </div>
754
+
755
+ <span class="wpsrVer" style="display:none"><?php echo WPSR_VERSION; ?></span>
756
+ <span class="tmplUrl" style="display:none"><?php echo WPSR_ADMIN_URL . 'templates/templates.xml'; ?></span>
757
+ <span class="tmplImg" style="display:none"><?php echo WPSR_ADMIN_URL . 'templates/'; ?></span>
758
+ <!-- End hidden elements -->
759
+
760
+ <form method="post">
761
+
762
+ <div id="tab-1" class="tabContent">
763
+ <h4>One click setup</h4>
764
+ <div class="templatesList">
765
+ <img src="<?php echo WPSR_ADMIN_URL; ?>images/one-click-header.jpg" class="imgHead"/>
766
+ <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>
767
+ </div>
768
+ <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>
769
+ </div>
770
+ <!--ONE CLICK -->
771
+
772
+ <!-- SOCIAL BTS -->
773
+ <div id="tab-2" class="tabContent">
774
+ <input type="hidden" id="wpsr_socialbt_selected16px" name="wpsr_socialbt_selected16px" value="<?php echo $wpsr_socialbt_selected16px; ?>" />
775
+ <input type="hidden" id="wpsr_socialbt_selected32px" name="wpsr_socialbt_selected32px" value="<?php echo $wpsr_socialbt_selected32px; ?>" />
776
+ <h4><?php _e('Social Buttons', 'wpsr'); ?> <?php wpsr_addcodeico('16px Buttons : {social-bts-16px}' . "\n" . '32px Buttons : {social-bts-32px}'); ?></h4>
777
+ <div class="section">
778
+ <span class="smallText">
779
+ <?php _e('Click the icon size to select and "x" button to remove selected. Click and drag to reorder selected sites', 'wpsr'); ?>
780
+ </span>
781
+ <br />
782
+ <div style="float:left; width:70%;">
783
+ <h5><?php _e('Available buttons', 'wpsr'); ?> <input type="text" id="wpsr_search_buttons" title="<?php _e('Filter buttons', 'wpsr'); ?>" value="<?php _e('Filter', 'wpsr'); ?> ..." alt="<?php _e('Filter', 'wpsr'); ?> ..."/></h5>
784
+
785
+ <?php
786
+ $spriteImage16px = WPSR_SOCIALBT_IMGPATH . 'wp-socializer-sprite-16px.png';
787
+ $spriteMaskImage16px = WPSR_SOCIALBT_IMGPATH . 'wp-socializer-sprite-mask-16px.gif';
788
+
789
+ echo '<ul id="wpsr_socialbt_list">';
790
+ foreach ($wpsr_socialsites_list as $sitename => $property) {
791
+
792
+ $spritesYCoord = get_sprite_coord($sitename, $wpsr_socialsites_list, '16px');
793
+ $finalSprites = '0px -' . $spritesYCoord . 'px'; 'wp-socializer-sprite-mask-16px.gif';
794
+
795
+ echo
796
+ "\n<li>" .
797
+ '<img src="' . $spriteMaskImage16px . '" alt="' . $sitename . '" style="background-position:' . $finalSprites . '">' .
798
+ '<span class="sb_name">' . $sitename . '</span>' .
799
+ '<span class="sb_add16px">16</span>';
800
+
801
+ if($property['support32px'] == 1){
802
+ echo '<span class="sb_add32px">32</span>';
803
+ }
804
+
805
+ }
806
+ echo '</ul>';
807
+ ?>
808
+ </div>
809
+
810
+ <div style="float:right; width:30%">
811
+ <h4><?php _e('Selected buttons', 'wpsr'); ?> | 16px </h4>
812
+
813
+ <ul class="wpsr_socialbt_selected_list" id="wpsr_socialbt_selected_list_16px">
814
+ <?php
815
+ $wpsr_socialbt_splited16px = explode(',', $wpsr_socialbt_selected16px);
816
+
817
+ for($i=0; $i < count($wpsr_socialbt_splited16px); $i++){
818
+ echo "\n<li><span class=\"sb_name\">" . $wpsr_socialbt_splited16px[$i] . '</span><span class="sb_close">x</span></li>';
819
+ }
820
+
821
+ ?>
822
+ </ul>
823
+
824
+ <div style="clear:both;"></div>
825
+
826
+ <h4><?php _e('Selected buttons', 'wpsr'); ?> | 32px</h4>
827
+ <ul class="wpsr_socialbt_selected_list" id="wpsr_socialbt_selected_list_32px">
828
+ <?php
829
+ $wpsr_socialbt_splited32px = explode(',', $wpsr_socialbt_selected32px);
830
+
831
+ for($i=0; $i < count($wpsr_socialbt_splited32px); $i++){
832
+ echo "\n<li><span class=\"sb_name\">" . $wpsr_socialbt_splited32px[$i] . '</span><span class="sb_close">x</span></li>';
833
+ }
834
+
835
+ ?>
836
+ </ul>
837
+
838
+ </div>
839
+
840
+ <span style="clear:both; display:block"></span>
841
+
842
+ </div>
843
+
844
+ <h4><?php _e('Settings', 'wpsr'); ?></h4>
845
+ <div class="section">
846
+ <table width="100%" border="0">
847
+ <tr>
848
+ <td height="35"><?php _e('Open links in new tab/window', 'wpsr'); ?></td>
849
+ <td><select id="wpsr_socialbt_target" name="wpsr_socialbt_target">
850
+ <option <?php echo $wpsr_socialbt_target == '1' ? ' selected="selected"' : ''; ?> value="1"><?php _e('Yes', 'wpsr'); ?></option>
851
+ <option <?php echo $wpsr_socialbt_target == '0' ? ' selected="selected"' : ''; ?> value="0"><?php _e('No', 'wpsr'); ?></option>
852
+ </select></td>
853
+ </tr>
854
+ <tr>
855
+ <td height="35"><?php _e('Image on Hover effect', 'wpsr'); ?> </td>
856
+ <td><select id="wpsr_socialbt_effect" name="wpsr_socialbt_effect">
857
+ <option <?php echo $wpsr_socialbt_effect == 'jump' ? ' selected="selected"' : ''; ?> value="jump">Jump Effect</option>
858
+ <option <?php echo $wpsr_socialbt_effect == 'opacity' ? ' selected="selected"' : ''; ?> value="opacity">Transparency Effect</option>
859
+ <option <?php echo $wpsr_socialbt_effect == 'none' ? ' selected="selected"' : ''; ?> value="none"><?php _e('No Effect', 'wpsr'); ?></option>
860
+ </select></td>
861
+ </tr>
862
+ <tr>
863
+ <td height="40"><?php _e('Show Label for buttons', 'wpsr'); ?> </td>
864
+ <td><select id="wpsr_socialbt_label" name="wpsr_socialbt_label">
865
+ <option <?php echo $wpsr_socialbt_label == '1' ? ' selected="selected"' : ''; ?> value="1"><?php _e('Yes', 'wpsr'); ?></option>
866
+ <option <?php echo $wpsr_socialbt_label == '0' ? ' selected="selected"' : ''; ?> value="0"><?php _e('No', 'wpsr'); ?></option>
867
+ </select></td>
868
+ </tr>
869
+ <tr>
870
+ <td height="53"><?php _e('Show Icons in', 'wpsr'); ?> <br />
871
+ <span class="smallText"><?php _e('Very very effective when labels are enabled (try it)', 'wpsr'); ?></span> </td>
872
+ <td><select id="wpsr_socialbt_columns" name="wpsr_socialbt_columns">
873
+ <option <?php echo $wpsr_socialbt_columns == 'no' ? ' selected="selected"' : ''; ?> value="no">No Column</option>
874
+ <option <?php echo $wpsr_socialbt_columns == '5' ? ' selected="selected"' : ''; ?> value="5">5 Columns</option>
875
+ <option <?php echo $wpsr_socialbt_columns == '4' ? ' selected="selected"' : ''; ?> value="4">4 Columns</option>
876
+ <option <?php echo $wpsr_socialbt_columns == '3' ? ' selected="selected"' : ''; ?> value="3">3 Columns</option>
877
+ <option <?php echo $wpsr_socialbt_columns == '2' ? ' selected="selected"' : ''; ?> value="2">2 Columns</option>
878
+ </select></td>
879
+ </tr>
880
+ <tr>
881
+ <td height="53"><?php _e('Image folder', 'wpsr'); ?><br />
882
+ <span class="smallText"><?php _e('Leave blank to use default', 'wpsr'); ?></span> </td>
883
+ <td>
884
+ <input name="wpsr_socialbt_imgpath16px" type="text" id="wpsr_socialbt_imgpath16px" value="<?php echo $wpsr_socialbt_imgpath16px; ?>" size="40" />
885
+ (16px)<br />
886
+
887
+ <input name="wpsr_socialbt_imgpath32px" type="text" id="wpsr_socialbt_imgpath32px" value="<?php echo $wpsr_socialbt_imgpath32px; ?>" size="40" />
888
+ (32px)</td>
889
+ </tr>
890
+ <tr>
891
+ <td height="35"><?php _e('Use Sprites', 'wpsr'); ?></td>
892
+ <td><select id="wpsr_socialbt_usesprites" name="wpsr_socialbt_usesprites">
893
+ <option <?php echo $wpsr_socialbt_usesprites == '1' ? ' selected="selected"' : ''; ?> value="1"><?php _e('Yes', 'wpsr'); ?></option>
894
+ <option <?php echo $wpsr_socialbt_usesprites == '0' ? ' selected="selected"' : ''; ?> value="0"><?php _e('No', 'wpsr'); ?></option>
895
+ </select></td>
896
+ </tr>
897
+ </table>
898
+ </div>
899
+
900
+ </div>
901
+
902
+ <!-- ADDTHIS PAGE -->
903
+ <div id="tab-3" class="tabContent">
904
+
905
+ <h4>Toolbox</h4>
906
+ <div class="section">
907
+ <table width="100%" height="139" border="0" class="tableClr">
908
+
909
+ <tr>
910
+ <th height="30">Toolbox type </th>
911
+ <th><?php _e('Services', 'wpsr'); ?></th>
912
+ </tr>
913
+ <tr>
914
+ <td width="35%" height="53"><label for="wpsr_addthis_tb_16pxservices"><img src="<?php echo WPSR_ADMIN_URL; ?>images/buttons/addthis-tb-16px.png" title="16px Icons"/></label></td>
915
+ <td width="65%"><input name="wpsr_addthis_tb_16pxservices" type="text" id="wpsr_addthis_tb_16pxservices" value="<?php echo $wpsr_addthis_tb_16pxservices; ?>" size="35" /> <input class="submit button" type="button" value="Select services" onclick="openServiceSelctor('<?php echo WPSR_ADMIN_URL; ?>wpsr-services-selector.php?id=wpsr_addthis_tb_16pxservices&bt=addthis&val=', 'wpsr_addthis_tb_16pxservices');" />
916
+ <?php wpsr_addcodeico('{addthis-tb-16px}'); ?>
917
+ <br /><span class="smallText"><?php _e('Leave blank to use default', 'wpsr'); ?></span>
918
+
919
+ </td>
920
+ </tr>
921
+ <tr>
922
+ <td height="48"><label for="wpsr_addthis_tb_32pxservices"><img src="<?php echo WPSR_ADMIN_URL; ?>images/buttons/addthis-tb-32px.png" title="32px Icons"/></label></td>
923
+ <td><input name="wpsr_addthis_tb_32pxservices" type="text" id="wpsr_addthis_tb_32pxservices" value="<?php echo $wpsr_addthis_tb_32pxservices; ?>" size="35" /> <input class="button" type="button" value="Select services" onclick="openServiceSelctor('<?php echo WPSR_ADMIN_URL; ?>wpsr-services-selector.php?id=wpsr_addthis_tb_32pxservices&bt=addthis&val=', 'wpsr_addthis_tb_32pxservices');"/>
924
+ <?php wpsr_addcodeico('{addthis-tb-32px}'); ?>
925
+ <br /><span class="smallText"><?php _e('Leave blank to use default', 'wpsr'); ?></span>
926
+
927
+ </td>
928
+ </tr>
929
+ </table>
930
+ </div>
931
+
932
+ <h4>Sharecount <?php wpsr_addcodeico('{addthis-sc}'); ?></h4>
933
+ <div class="section">
934
+ <table width="100%" height="100" border="0">
935
+ <tr>
936
+ <td height="54"><label><input name="wpsr_addthis_sharecount" id="wpsr_addthis_sharecount" type="radio" value="normal" <?php echo $wpsr_addthis_sharecount == 'normal' ? ' checked="checked"' : ''; ?> /> <img src="http://cache.addthiscdn.com/www/q0197/images/sharecount-vertical.png" title="Sharecount - Large"/></label></td>
937
+ <td><label><input name="wpsr_addthis_sharecount" id="wpsr_addthis_sharecount" type="radio" value="pill" <?php echo $v == 'pill' ? ' checked="checked"' : ''; ?> /> <img src="http://cache.addthiscdn.com/www/q0197/images/sharecount-horizontal.png" title="Sharecount - Pill style"/></label></td>
938
+ </tr>
939
+ <tr>
940
+ <td height="40" colspan="2"><label><input name="wpsr_addthis_sharecount" id="wpsr_addthis_sharecount" type="radio" value="grouped" <?php echo $wpsr_addthis_sharecount == 'grouped' ? ' checked="checked"' : ''; ?> /> <img src="http://cache.addthiscdn.com/www/q0197/images/gtc-like-tweet-share.png" title="Sharecount - grouped"/></label></td>
941
+ </tr>
942
+ </table>
943
+ </div>
944
+
945
+ <h4><?php _e('Buttons', 'wpsr'); ?> <?php wpsr_addcodeico('{addthis-bt}'); ?></h4>
946
+
947
+ <div class="section">
948
+ <table width="100%" height="42" border="0">
949
+ <tr>
950
+ <td height="38"><label><input name="wpsr_addthis_button" id="wpsr_addthis_button" type="radio" value="lg-share-" <?php echo $wpsr_addthis_button == 'lg-share-' ? ' checked="checked"' : ''; ?> /> <img src="http://s7.addthis.com/static/btn/v2/lg-share-<?php echo $wpsr_addthis_lang; ?>.gif" alt="Share button - Large"/></label></td>
951
+
952
+ <td><label>
953
+ <input name="wpsr_addthis_button" id="wpsr_addthis_button" type="radio" value="sm-share-" <?php echo $wpsr_addthis_button == 'sm-share-' ? ' checked="checked"' : ''; ?> />
954
+ <img src="http://s7.addthis.com/static/btn/v2/sm-share-en.gif" alt="Share button - Small"/></label></td>
955
+ </tr>
956
+ </table>
957
+ </div>
958
+
959
+ <h4><?php _e('Optional button Settings', 'wpsr'); ?></h4>
960
+
961
+ <div class="section">
962
+ <table width="100%" border="0">
963
+ <tr>
964
+ <td height="52"><label for="wpsr_addthis_username"><?php _e('Add This Username', 'wpsr'); ?></label></td>
965
+ <td><input type="text" id="wpsr_addthis_username" name="wpsr_addthis_username" value="<?php echo $wpsr_addthis_username; ?>" />
966
+ <br />
967
+ <span class="smallText">
968
+ <?php _e('If available', 'wpsr'); ?>
969
+ </span></td>
970
+ <td><label for="wpsr_addthis_lang"><?php _e('Language', 'wpsr'); ?></label></td>
971
+ <td><select name="wpsr_addthis_lang" id="wpsr_addthis_lang">
972
+ <?php foreach ($wpsr_addthis_lang_array as $lang=>$name){echo "<option value=\"$lang\"". ($lang == $wpsr_addthis_lang ? " selected":"") . ">$name</option>";}?>
973
+ </select> </td>
974
+ </tr>
975
+ <tr>
976
+ <td width="13%" height="52"><label for="wpsr_addthis_btbrand"><?php _e('Brand Name', 'wpsr'); ?></label></td>
977
+ <td width="30%"><input name="wpsr_addthis_btbrand" id="wpsr_addthis_btbrand" type="text" value="<?php echo $wpsr_addthis_btbrand; ?>"/><br /><span class="smallText"><?php _e('Leave blank to use default', 'wpsr'); ?></span></td>
978
+
979
+ <td width="14%"><label for="wpsr_addthis_clickback"><?php _e('Track Clickback', 'wpsr'); ?></label></td>
980
+ <td width="43%"><select id="wpsr_addthis_clickback" name="wpsr_addthis_clickback">
981
+ <option <?php echo $wpsr_addthis_clickback == '1' ? ' selected="selected"' : ''; ?> value="1"><?php _e('Yes', 'wpsr'); ?></option>
982
+ <option <?php echo $wpsr_addthis_clickback == '0' ? ' selected="selected"' : ''; ?> value="0"><?php _e('No', 'wpsr'); ?></option>
983
+ </select></td>
984
+ </tr>
985
+ <tr>
986
+ <td><?php _e('Header Color', 'wpsr'); ?></td>
987
+ <td><input name="wpsr_addthis_btheadclr" id="wpsr_addthis_btheadclr" type="text" value="<?php echo $wpsr_addthis_btheadclr; ?>"/></td>
988
+ <td><?php _e('Header Background', 'wpsr'); ?></td>
989
+ <td><input name="wpsr_addthis_btheadbgclr" id="wpsr_addthis_btheadbgclr" type="text" value="<?php echo $wpsr_addthis_btheadbgclr; ?>"/></td>
990
+ </tr>
991
+ </table>
992
+ </div>
993
+
994
+ </div><!-- Addthis box -->
995
+
996
+ <!-- SHARETHIS PAGE -->
997
+ <div id="tab-4" class="tabContent">
998
+ <h4>Sharethis</h4>
999
+ <div class="section">
1000
+ <table width="100%" height="517" border="0" class="tableClr">
1001
+ <tr>
1002
+ <th width="50%" height="21"><?php _e('Buttons', 'wpsr'); ?><br />
1003
+ <span class="smallText"><?php _e('Button type', 'wpsr'); ?></span></th>
1004
+ <th width="50%"><?php _e('Button Order', 'wpsr'); ?><br />
1005
+ <span class="smallText"><?php _e('Reorder, remove or add social buttons', 'wpsr'); ?></span></th>
1006
+ </tr>
1007
+ <tr>
1008
+ <td width="50%" height="69"><img src="<?php echo WPSR_ADMIN_URL; ?>images/buttons/sharethis-vcount.png" /></td>
1009
+ <td width="50%"><input name="wpsr_sharethis_vcount_order" id="wpsr_sharethis_vcount_order" type="text" value="<?php echo $wpsr_sharethis_vcount_order; ?>"/>
1010
+ <input class="submit button" type="button" value="Select services" onclick="openServiceSelctor('<?php echo WPSR_ADMIN_URL; ?>wpsr-services-selector.php?id=wpsr_sharethis_vcount_order&bt=sharethis&val=', 'wpsr_sharethis_vcount_order');" /><?php wpsr_addcodeico('{sharethis-vcount}'); ?></td>
1011
+ </tr>
1012
+ <tr>
1013
+ <td height="64"><img src="<?php echo WPSR_ADMIN_URL; ?>images/buttons/sharethis-hcount.png" /></td>
1014
+ <td><input name="wpsr_sharethis_hcount_order" id="wpsr_sharethis_hcount_order" type="text" value="<?php echo $wpsr_sharethis_hcount_order; ?>"/>
1015
+ <input class="submit button" type="button" value="Select services" onclick="openServiceSelctor('<?php echo WPSR_ADMIN_URL; ?>wpsr-services-selector.php?id=wpsr_sharethis_hcount_order&bt=sharethis&val=', 'wpsr_sharethis_hcount_order');" /><?php wpsr_addcodeico('{sharethis-hcount}'); ?></td>
1016
+ </tr>
1017
+ <tr>
1018
+ <td height="65"><img src="<?php echo WPSR_ADMIN_URL; ?>images/buttons/sharethis-buttons.png" /></td>
1019
+ <td><input name="wpsr_sharethis_buttons_order" id="wpsr_sharethis_buttons_order" type="text" value="<?php echo $wpsr_sharethis_buttons_order; ?>"/>
1020
+ <input class="submit button" type="button" value="Select services" onclick="openServiceSelctor('<?php echo WPSR_ADMIN_URL; ?>wpsr-services-selector.php?id=wpsr_sharethis_buttons_order&bt=sharethis&val=', 'wpsr_sharethis_buttons_order');" /><?php wpsr_addcodeico('{sharethis-bt}'); ?></td>
1021
+ </tr>
1022
+ <tr>
1023
+ <td height="67"><img src="<?php echo WPSR_ADMIN_URL; ?>images/buttons/sharethis-large.png" /></td>
1024
+ <td><input name="wpsr_sharethis_large_order" id="wpsr_sharethis_large_order" type="text" value="<?php echo $wpsr_sharethis_large_order; ?>"/>
1025
+ <input class="submit button" type="button" value="Select services" onclick="openServiceSelctor('<?php echo WPSR_ADMIN_URL; ?>wpsr-services-selector.php?id=wpsr_sharethis_large_order&bt=sharethis&val=', 'wpsr_sharethis_large_order');" /><?php wpsr_addcodeico('{sharethis-large}'); ?></td>
1026
+ </tr>
1027
+ <tr>
1028
+ <td height="70"><img src="<?php echo WPSR_ADMIN_URL; ?>images/buttons/sharethis-regular.png" /></td>
1029
+ <td><input name="wpsr_sharethis_regular_order" id="wpsr_sharethis_regular_order" type="text" value="<?php echo $wpsr_sharethis_regular_order; ?>"/>
1030
+ <input class="submit button" type="button" value="Select services" onclick="openServiceSelctor('<?php echo WPSR_ADMIN_URL; ?>wpsr-services-selector.php?id=wpsr_sharethis_regular_order&bt=sharethis&val=', 'wpsr_sharethis_regular_order');" /><?php wpsr_addcodeico('{sharethis-regular}'); ?></td>
1031
+ </tr>
1032
+ <tr>
1033
+ <td height="75"><img src="<?php echo WPSR_ADMIN_URL; ?>images/buttons/sharethis-regular-notext.png" /></td>
1034
+ <td><input name="wpsr_sharethis_regular2_order" id="wpsr_sharethis_regular2_order" type="text" value="<?php echo $wpsr_sharethis_regular2_order; ?>"/>
1035
+ <input class="submit button" type="button" value="Select services" onclick="openServiceSelctor('<?php echo WPSR_ADMIN_URL; ?>wpsr-services-selector.php?id=wpsr_sharethis_regular2_order&bt=sharethis&val=', 'wpsr_sharethis_regular2_order');" /><?php wpsr_addcodeico('{sharethis-regular2}'); ?></td>
1036
+ </tr>
1037
+ <tr>
1038
+ <td><img src="<?php echo WPSR_ADMIN_URL; ?>images/buttons/sharethis-classic.png" /></td>
1039
+ <td><?php wpsr_addcodeico('{sharethis-classic}'); ?></td>
1040
+ </tr>
1041
+ </table>
1042
+ </div>
1043
+
1044
+ <h4><?php _e('Settings', 'wpsr'); ?></h4>
1045
+ <div class="section">
1046
+ <table width="100%" height="100" border="0">
1047
+ <tr>
1048
+ <td width="31%" height="49"><label for="wpsr_sharethis_pubkey">Sharethis Publisher Key</label></td>
1049
+ <td width="69%"><input name="wpsr_sharethis_pubkey" type="text" id="wpsr_sharethis_pubkey" value="<?php echo $wpsr_sharethis_pubkey; ?>" size="50" /><br /><span class="smallText"><?php _e('You can see you publisher key in this page. ', 'wpsr'); ?> <a href="http://sharethis.com/account/" target="_blank"><?php _e('Click here', 'wpsr'); ?></a></span></td>
1050
+ </tr>
1051
+ <tr>
1052
+ <td><label for="wpsr_sharethis_addp">Automatically wrap with paragraph</label></td>
1053
+ <td><select id="wpsr_sharethis_addp" name="wpsr_sharethis_addp">
1054
+ <option <?php echo $wpsr_sharethis_addp == '1' ? ' selected="selected"' : ''; ?> value="1"><?php _e('Yes', 'wpsr'); ?></option>
1055
+ <option <?php echo $wpsr_sharethis_addp == '0' ? ' selected="selected"' : ''; ?> value="0"><?php _e('No', 'wpsr'); ?></option>
1056
+ </select></td>
1057
+ </tr>
1058
+ </table>
1059
+ </div>
1060
+
1061
+ </div>
1062
+
1063
+ <!-- GOOGLE BUZZ PAGE -->
1064
+ <div id="tab-5" class="tabContent">
1065
+
1066
+ <h4><?php _e('Post to Buzz button', 'wpsr'); ?><?php wpsr_addcodeico('{buzz-post}'); ?></h4>
1067
+
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
+
1095
+ <div class="section">
1096
+ <table width="100%" border="0">
1097
+ <tr>
1098
+ <td width="30%"><label for="wpsr_buzz_profile"><?php _e('Profile URL', 'wpsr'); ?></label></td>
1099
+ <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>
1100
+ </tr>
1101
+ <tr>
1102
+ <td height="36"><label for="wpsr_buzz_followbttext"><?php _e('Button Text', 'wpsr'); ?></label></td>
1103
+ <td><input name="wpsr_buzz_followbttext" id="wpsr_buzz_followbttext" type="text" value="<?php echo $wpsr_buzz_followbttext ?>" size="35"/></td>
1104
+ </tr>
1105
+ </table>
1106
+ </div>
1107
+
1108
+ </div><!-- Buzz box -->
1109
+
1110
+ <!-- RETWEET AND DIGG PAGE -->
1111
+ <div id="tab-6" class="tabContent">
1112
+
1113
+ <h4><?php _e('General', 'wpsr'); ?><?php wpsr_addcodeico('{retweet-bt}'); ?></h4>
1114
+
1115
+ <div class="section">
1116
+ <table width="100%" height="76" border="0">
1117
+ <tr>
1118
+ <td width="30%" height="37"><label for="wpsr_retweet_username"><?php _e('Twitter Username', 'wpsr'); ?></label></td>
1119
+ <td width="70%">@<input name="wpsr_retweet_username" id="wpsr_retweet_username" type="text" value="<?php echo $wpsr_retweet_username; ?>"/></td>
1120
+ </tr>
1121
+ <tr>
1122
+ <td><label for="wpsr_retweet_type"><?php _e('Retweet Button Type', 'wpsr'); ?></label></td>
1123
+ <td><select id="wpsr_retweet_type" name="wpsr_retweet_type">
1124
+ <option <?php echo $wpsr_retweet_type == 'normal' ? ' selected="selected"' : ''; ?> value="normal"><?php _e('Normal (Big)', 'wpsr'); ?></option>
1125
+ <option <?php echo $wpsr_retweet_type == 'compact' ? ' selected="selected"' : ''; ?> value="compact"><?php _e('Compact', 'wpsr'); ?></option>
1126
+ <option <?php echo $wpsr_retweet_type == 'nocount' ? ' selected="selected"' : ''; ?> value="nocount"><?php _e('No Count (only for Twitter\'s Official Button)', 'wpsr'); ?></option>
1127
+ </select></td>
1128
+ </tr>
1129
+ </table>
1130
+ </div>
1131
+
1132
+ <h4><?php _e('Choose a service', 'wpsr'); ?></h4>
1133
+
1134
+ <div class="section">
1135
+ <table width="100%" border="0">
1136
+ <tr>
1137
+ <td width="30%"><label for="wpsr_retweet_service"><?php _e('Retweet Service', 'wpsr'); ?></label></td>
1138
+ <td width="70%"><select id="wpsr_retweet_service" name="wpsr_retweet_service">
1139
+ <option <?php echo $wpsr_retweet_service == 'twitter' ? ' selected="selected"' : ''; ?> value="twitter"><?php _e('Twitter\'s Official Button', 'wpsr'); ?></option>
1140
+ <option <?php echo $wpsr_retweet_service == 'tweetmeme' ? ' selected="selected"' : ''; ?> value="tweetmeme">TweetMeme</option>
1141
+ <option <?php echo $wpsr_retweet_service == 'topsy' ? ' selected="selected"' : ''; ?> value="topsy">Topsy</option>
1142
+ <option <?php echo $wpsr_retweet_service == 'retweet' ? ' selected="selected"' : ''; ?> value="retweet">Retweet</option>
1143
+ </select>
1144
+
1145
+ <div id="wpsr_retweet_topsysettings">
1146
+ <table width="100%" border="0">
1147
+ <tr>
1148
+ <td width="32%"><?php _e('Select a theme for topsy', 'wpsr'); ?></td>
1149
+ <td width="68%">
1150
+ <select id="wpsr_retweet_topsytheme" name="wpsr_retweet_topsytheme">
1151
+ <option value="blue" <?php echo $wpsr_retweet_topsytheme == 'blue' ? ' selected="selected"' : ''; ?> >blue</option>
1152
+ <option value="brown" <?php echo $wpsr_retweet_topsytheme == 'brown' ? ' selected="selected"' : ''; ?>>brown</option>
1153
+ <option value="jade" <?php echo $wpsr_retweet_topsytheme == 'jade' ? ' selected="selected"' : ''; ?>>jade</option>
1154
+ <option value="brick-red" <?php echo $wpsr_retweet_topsytheme == 'brick-red' ? ' selected="selected"' : ''; ?>>brick-red</option>
1155
+ <option value="sea-foam" <?php echo $wpsr_retweet_topsytheme == 'sea-foam' ? ' selected="selected"' : ''; ?>>sea-foam</option>
1156
+ <option value="mustard" <?php echo $wpsr_retweet_topsytheme == 'mustard' ? ' selected="selected"' : ''; ?>>mustard</option>
1157
+ <option value="hot-pink" <?php echo $wpsr_retweet_topsytheme == 'hot-pink' ? ' selected="selected"' : ''; ?>>hot-pink</option>
1158
+ </select>
1159
+ </td>
1160
+ </tr>
1161
+ </table>
1162
+ </div>
1163
+
1164
+ <div id="wpsr_retweet_twittersettings">
1165
+ <table width="100%" height="75" border="0">
1166
+ <tr>
1167
+ <td width="32%" height="34"><?php _e('Recommend people', 'wpsr'); ?> </td>
1168
+ <td width="68%"><input name="wpsr_retweet_twitter_recacc" type="text" id="wpsr_retweet_twitter_recacc" value="<?php echo $wpsr_retweet_twitter_recacc; ?>" size="40"/><br />
1169
+ <span class="smallText"><?php _e('Twitter Username: Description (Optional)', 'wpsr'); ?></span>
1170
+ </td>
1171
+ </tr>
1172
+ <tr>
1173
+ <td><?php _e('Language', 'wpsr'); ?></td>
1174
+ <td><select id="wpsr_retweet_twitter_lang" name="wpsr_retweet_twitter_lang">
1175
+ <option value="en" <?php echo $wpsr_retweet_twitter_lang == 'en' ? ' selected="selected"' : ''; ?>>English</option>
1176
+ <option value="fr" <?php echo $wpsr_retweet_twitter_lang == 'fr' ? ' selected="selected"' : ''; ?>>French</option>
1177
+ <option value="de" <?php echo $wpsr_retweet_twitter_lang == 'de' ? ' selected="selected"' : ''; ?>>German</option>
1178
+ <option value="es" <?php echo $wpsr_retweet_twitter_lang == 'es' ? ' selected="selected"' : ''; ?>>Spanish</option>
1179
+ <option value="ja" <?php echo $wpsr_retweet_twitter_lang == 'ja' ? ' selected="selected"' : ''; ?>>Japanese</option>
1180
+ </select></td>
1181
+ </tr>
1182
+ </table>
1183
+ </div>
1184
+
1185
+ </td>
1186
+ </tr>
1187
+ </table>
1188
+ </div>
1189
+
1190
+ <h4><?php _e('Digg Button', 'wpsr'); ?><?php wpsr_addcodeico('{digg-bt}'); ?></h4>
1191
+ <div class="section">
1192
+ <table width="100%" border="0">
1193
+ <tr>
1194
+ <td width="31%"><label for="wpsr_digg_type"><?php _e('Digg Button type', 'wpsr'); ?></label></td>
1195
+ <td width="69%"><select id="wpsr_digg_type" name="wpsr_digg_type">
1196
+ <option <?php echo $wpsr_digg_type == 'DiggMedium' ? ' selected="selected"' : ''; ?> value="DiggMedium"><?php _e('Medium', 'wpsr'); ?></option>
1197
+ <option <?php echo $wpsr_digg_type == 'DiggWide' ? ' selected="selected"' : ''; ?> value="DiggLarge"><?php _e('Wide', 'wpsr'); ?></option>
1198
+ <option <?php echo $wpsr_digg_type == 'DiggCompact' ? ' selected="selected"' : ''; ?> value="DiggCompact"><?php _e('Compact', 'wpsr'); ?></option>
1199
+ <option <?php echo $wpsr_digg_type == 'DiggIcon' ? ' selected="selected"' : ''; ?> value="DiggIcon"><?php _e('Icon', 'wpsr'); ?></option>
1200
+ </select></td>
1201
+ </tr>
1202
+ </table>
1203
+ </div>
1204
+
1205
+ </div>
1206
+
1207
+ <!-- FACEBOOK PAGE -->
1208
+ <div id="tab-7" class="tabContent">
1209
+ <h4><?php _e('Like Button', 'wpsr'); ?><?php wpsr_addcodeico('{facebook-like}'); ?></h4>
1210
+ <div class="section">
1211
+ <table width="100%" border="0">
1212
+ <tr>
1213
+ <td width="30%" height="31"><label for="wpsr_facebook_btstyle"><?php _e('Button Style', 'wpsr'); ?></label></td>
1214
+ <td width="70%"><select id="wpsr_facebook_btstyle" name="wpsr_facebook_btstyle">
1215
+ <option <?php echo $wpsr_facebook_btstyle == 'standard' ? ' selected="selected"' : ''; ?> value="standard"><?php _e('Standard', 'wpsr'); ?></option>
1216
+ <option <?php echo $wpsr_facebook_btstyle == 'button_count' ? ' selected="selected"' : ''; ?> value="button_count"><?php _e('Button count', 'wpsr'); ?></option>
1217
+ <option <?php echo $wpsr_facebook_btstyle == 'box_count' ? ' selected="selected"' : ''; ?> value="box_count"><?php _e('Box count', 'wpsr'); ?></option>
1218
+ </select></td>
1219
+ </tr>
1220
+ <tr>
1221
+ <td height="35"><label for="wpsr_facebook_showfaces"><?php _e('Show Faces', 'wpsr'); ?></label></td>
1222
+ <td><select id="wpsr_facebook_showfaces" name="wpsr_facebook_showfaces">
1223
+ <option <?php echo $wpsr_facebook_showfaces == '1' ? ' selected="selected"' : ''; ?> value="1"><?php _e('Yes', 'wpsr'); ?></option>
1224
+ <option <?php echo $wpsr_facebook_showfaces == '0' ? ' selected="selected"' : ''; ?> value="0"><?php _e('No', 'wpsr'); ?></option>
1225
+ </select></td>
1226
+ </tr>
1227
+ <tr>
1228
+ <td height="49"><label for="wpsr_facebook_width"><?php _e('Width', 'wpsr'); ?></label></td>
1229
+ <td><input name="wpsr_facebook_width" id="wpsr_facebook_width" type="text" value="<?php echo $wpsr_facebook_width; ?>"/><br /><span class="smallText"><?php _e('In pixels', 'wpsr'); ?></span></td>
1230
+ </tr>
1231
+ <tr>
1232
+ <td height="35"><label for="wpsr_facebook_verb"><?php _e('Verb to Display', 'wpsr'); ?></label></td>
1233
+ <td><select id="wpsr_facebook_verb" name="wpsr_facebook_verb">
1234
+ <option <?php echo $wpsr_facebook_verb == 'like' ? ' selected="selected"' : ''; ?> value="like"><?php _e('Like', 'wpsr'); ?></option>
1235
+ <option <?php echo $wpsr_facebook_verb == 'recommend' ? ' selected="selected"' : ''; ?> value="recommend"><?php _e('Recommend', 'wpsr'); ?></option>
1236
+ </select></td>
1237
+ </tr>
1238
+ <tr>
1239
+ <td height="37"><label for="wpsr_facebook_font"><?php _e('Font', 'wpsr'); ?></label></td>
1240
+ <td><select id="wpsr_facebook_font" name="wpsr_facebook_font">
1241
+ <option <?php echo $wpsr_facebook_font == 'arial' ? ' selected="selected"' : ''; ?> value="arial">Arial</option>
1242
+ <option <?php echo $wpsr_facebook_font == 'lucida grande' ? ' selected="selected"' : ''; ?> value="lucida grande">Lucida Grande</option>
1243
+ <option <?php echo $wpsr_facebook_font == 'segoe ui' ? ' selected="selected"' : ''; ?> value="segoe ui">Segoe UI</option>
1244
+ <option <?php echo $wpsr_facebook_font == 'tahoma' ? ' selected="selected"' : ''; ?> value="tahoma">Tahoma</option>
1245
+ <option <?php echo $wpsr_facebook_font == 'trebuchet ms' ? ' selected="selected"' : ''; ?> value="trebuchet ms">Trebuchet MS</option>
1246
+ <option <?php echo $wpsr_facebook_font == 'verdana' ? ' selected="selected"' : ''; ?> value="verdana">Verdana</option>
1247
+ </select></td>
1248
+ </tr>
1249
+ <tr>
1250
+ <td height="38"><label for="wpsr_facebook_color"><?php _e('Color scheme', 'wpsr'); ?></label></td>
1251
+ <td><select id="wpsr_facebook_color" name="wpsr_facebook_color">
1252
+ <option <?php echo $wpsr_facebook_color == 'light' ? ' selected="selected"' : ''; ?> value="light"><?php _e('Light', 'wpsr'); ?></option>
1253
+ <option <?php echo $wpsr_facebook_color == 'dark' ? ' selected="selected"' : ''; ?> value="dark"><?php _e('Dark', 'wpsr'); ?></option>
1254
+ </select></td>
1255
+ </tr>
1256
+ </table>
1257
+ </div>
1258
+
1259
+ <h4><?php _e('Share Button', 'wpsr'); ?><?php wpsr_addcodeico('{facebook-share}'); ?></h4>
1260
+ <div class="section">
1261
+ <table width="100%" height="121" border="0">
1262
+ <tr>
1263
+ <td width="30%" height="47"><?php _e('Style', 'wpsr'); ?></td>
1264
+ <td width="70%">
1265
+ <label><input name="wpsr_facebook_shstyle" id="wpsr_facebook_shstyle" type="radio" value="button" <?php echo $wpsr_facebook_shstyle == 'button' ? ' checked="checked"' : ''; ?> /><?php _e('Button', 'wpsr'); ?></label>
1266
+ <br />
1267
+ <label><input name="wpsr_facebook_shstyle" id="wpsr_facebook_shstyle" type="radio" value="link" <?php echo $wpsr_facebook_shstyle == 'link' ? ' checked="checked"' : ''; ?> /><?php _e('Link', 'wpsr'); ?></label></td>
1268
+ </tr>
1269
+ <tr>
1270
+ <td height="68"><?php _e('Show Counter', 'wpsr'); ?><br /><span class="smallText"><?php _e('Not for link', 'wpsr'); ?></span></td>
1271
+ <td><select id="wpsr_facebook_counter" name="wpsr_facebook_counter">
1272
+ <option <?php echo $wpsr_facebook_counter == '1' ? ' selected="selected"' : ''; ?> value="1"><?php _e('Yes', 'wpsr'); ?></option>
1273
+ <option <?php echo $wpsr_facebook_counter == '0' ? ' selected="selected"' : ''; ?> value="0"><?php _e('No', 'wpsr'); ?></option>
1274
+ </select><br />
1275
+ <span id="wpsr_facebook_counterplacement">
1276
+ <label><input name="wpsr_facebook_counterplacement" id="wpsr_facebook_counterplacement" type="radio" value="above" <?php echo $wpsr_facebook_counterplacement == 'above' ? ' checked="checked"' : ''; ?> /><?php _e('Above the button', 'wpsr'); ?></label>
1277
+ <br />
1278
+ <label><input name="wpsr_facebook_counterplacement" id="wpsr_facebook_counterplacement" type="radio" value="inline" <?php echo $wpsr_facebook_counterplacement == 'inline' ? ' checked="checked"' : ''; ?> /><?php _e('Inline with the Button', 'wpsr'); ?></label>
1279
+ </span> </td>
1280
+ </tr>
1281
+ </table>
1282
+ </div>
1283
+
1284
+ </div>
1285
+
1286
+ <!-- CUSTOM BUTTONS PAGE -->
1287
+ <div id="tab-8" class="tabContent">
1288
+ <h4><?php _e('Custom 1', 'wpsr'); ?><?php wpsr_addcodeico('{custom-1}'); ?></h4>
1289
+ <div class="section">
1290
+ <textarea name="wpsr_custom1" id="wpsr_custom1" cols="60" rows="8" class="custom_box"><?php echo $wpsr_custom1; ?></textarea><br />
1291
+ <span class="smallText"><?php printf(__('Enter any share button code. Use %s for the page url and %s for page title', 'wpsr'), '{url}', '{title}'); ?></span>
1292
+ </div>
1293
+
1294
+ <h4><?php _e('Custom 2', 'wpsr'); ?><?php wpsr_addcodeico('{custom-2}'); ?></h4>
1295
+ <div class="section">
1296
+ <textarea name="wpsr_custom2" id="wpsr_custom2" cols="60" rows="8" class="custom_box"><?php echo $wpsr_custom2; ?></textarea><br />
1297
+ <span class="smallText"><?php printf(__('Enter any share button code. Use %s for the page url and %s for page title', 'wpsr'), '{url}', '{title}'); ?></span>
1298
+ </div>
1299
+
1300
+ </div>
1301
+
1302
+ <!-- TEMPLATE PAGE -->
1303
+ <div id="tab-9" class="tabContent">
1304
+
1305
+ <div class="subTabs">
1306
+ <ul class="subTabList">
1307
+ <li><a href="#sub-tab-1"><?php _e('Template 1', 'wpsr'); ?></a></li>
1308
+ <li><a href="#sub-tab-2"><?php _e('Template 2', 'wpsr'); ?></a></li>
1309
+ </ul>
1310
+
1311
+ <div id="sub-tab-1" class="subTabContent">
1312
+ <div class="section">
1313
+
1314
+ <div class="templateInfo"><?php _e('Use the menu below to insert the buttons into the template', 'wpsr'); ?><br />
1315
+ <?php _e('All HTML/CSS tags can be used. The button codes can be wrapped with HTML tags for proper aligning.', 'wpsr'); ?>
1316
+ </div>
1317
+
1318
+ <div class="toolbarWrap">
1319
+ <?php wpsr_addtoolbar('wpsr_template1_content'); ?>
1320
+ <textarea name="wpsr_template1_content" id="wpsr_template1_content" rows="10"><?php echo $wpsr_template1_content; ?></textarea>
1321
+ </div>
1322
+
1323
+ <div class="placement_options">
1324
+
1325
+ <table width="100%" height="237" border="0">
1326
+ <tr>
1327
+ <td height="38" colspan="3"><label>
1328
+ <input name="wpsr_template1_addp" type="checkbox" value="1" <?php echo $wpsr_template1_addp == "1" ? 'checked="checked"' : ""; ?> />
1329
+ <?php _e('Automatically add paragraphs', 'wpsr'); ?>
1330
+ </label></td>
1331
+ <td>&nbsp;</td>
1332
+ </tr>
1333
+ <tr>
1334
+ <td height="36" colspan="4"><h4><?php _e('Where to show these buttons ?', 'wpsr'); ?></h4></td>
1335
+ </tr>
1336
+ <tr>
1337
+ <td height="107" colspan="3">
1338
+
1339
+ <label><input name="wpsr_template1_inhome" id="wpsr_template1_inhome" type="checkbox" value="1" <?php echo $wpsr_template1_inhome == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in front page', 'wpsr'); ?></label> <br />
1340
+
1341
+ <label><input name="wpsr_template1_insingle" id="wpsr_template1_insingle" type="checkbox" value="1" <?php echo $wpsr_template1_insingle == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in individual posts', 'wpsr'); ?></label> <br />
1342
+
1343
+ <label><input name="wpsr_template1_inpage" id="wpsr_template1_inpage" type="checkbox" value="1" <?php echo $wpsr_template1_inpage == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in pages', 'wpsr'); ?></label> <br />
1344
+
1345
+ <label><input name="wpsr_template1_incategory" id="wpsr_template1_incategory" type="checkbox" value="1" <?php echo $wpsr_template1_incategory == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in archive pages', 'wpsr'); ?></label> <br />
1346
+
1347
+ <label><input name="wpsr_template1_intag" id="wpsr_template1_intag" type="checkbox" value="1" <?php echo $wpsr_template1_intag == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in Tag pages', 'wpsr'); ?></label> <br /> </td>
1348
+ <td width="41%">
1349
+ <label><input name="wpsr_template1_indate" id="wpsr_template1_indate" type="checkbox" value="1" <?php echo $wpsr_template1_indate == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in date archives', 'wpsr'); ?></label> <br />
1350
+
1351
+ <label><input name="wpsr_template1_inauthor" id="wpsr_template1_inauthor" type="checkbox" value="1" <?php echo $wpsr_template1_inauthor == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in author pages', 'wpsr'); ?></label> <br />
1352
+
1353
+ <label><input name="wpsr_template1_insearch" id="wpsr_template1_insearch" type="checkbox" value="1" <?php echo $wpsr_template1_insearch == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in search pages', 'wpsr'); ?></label> <br />
1354
+
1355
+ <label><input name="wpsr_template1_inexcerpt" id="wpsr_template1_inexcerpt" type="checkbox" value="1" <?php echo $wpsr_template1_inexcerpt == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in Excerpt', 'wpsr'); ?></label> <br />
1356
+
1357
+ <label><input name="wpsr_template1_infeed" id="wpsr_template1_infeed" type="checkbox" value="1" <?php echo $wpsr_template1_infeed == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in RSS feeds', 'wpsr'); ?></label> </td>
1358
+ </tr>
1359
+ <tr>
1360
+ <td width="12%"><strong>
1361
+ <?php _e('Position', 'wpsr'); ?>
1362
+ </strong></td>
1363
+ <td width="22%"><label><input name="wpsr_template1_abvcontent" id="wpsr_template1_abvcontent" type="checkbox" value="1" <?php echo $wpsr_template1_abvcontent == "1" ? 'checked="checked"' : ""; ?> />
1364
+ <?php _e('Above content', 'wpsr'); ?></label></td>
1365
+ <td width="25%"><label><input name="wpsr_template1_blwcontent" id="wpsr_template1_blwcontent" type="checkbox" value="1" <?php echo $wpsr_template1_blwcontent == "1" ? 'checked="checked"' : ""; ?> />
1366
+ <?php _e('Below content', 'wpsr'); ?></label></td>
1367
+ <td>&nbsp;</td>
1368
+ </tr>
1369
+ </table>
1370
+ </div>
1371
+
1372
+ </div>
1373
+ </div>
1374
+
1375
+ <div id="sub-tab-2" class="subTabContent">
1376
+
1377
+ <div class="section">
1378
+
1379
+ <div class="templateInfo"><?php _e('Use the menu below to insert the buttons into the template', 'wpsr'); ?><br />
1380
+ <?php _e('All HTML/CSS tags can be used. The button codes can be wrapped with HTML tags for proper aligning.', 'wpsr'); ?>
1381
+ </div>
1382
+
1383
+ <div class="toolbarWrap">
1384
+ <?php wpsr_addtoolbar('wpsr_template2_content'); ?>
1385
+ <textarea name="wpsr_template2_content" id="wpsr_template2_content" rows="10"><?php echo $wpsr_template2_content; ?></textarea>
1386
+ </div>
1387
+
1388
+ <div class="placement_options">
1389
+
1390
+ <table width="100%" height="237" border="0">
1391
+ <tr>
1392
+ <td height="38" colspan="3"><label>
1393
+ <input name="wpsr_template2_addp" id="wpsr_template2_addp" type="checkbox" value="1" <?php echo $wpsr_template2_addp == "1" ? 'checked="checked"' : ""; ?> />
1394
+ <?php _e('Automatically add paragraphs', 'wpsr'); ?>
1395
+ </label></td>
1396
+ <td>&nbsp;</td>
1397
+ </tr>
1398
+ <tr>
1399
+ <td height="36" colspan="4"><h4><?php _e('Where to show these buttons ?', 'wpsr'); ?></h4></td>
1400
+ </tr>
1401
+ <tr>
1402
+ <td height="107" colspan="3">
1403
+
1404
+ <label><input name="wpsr_template2_inhome" id="wpsr_template2_inhome" type="checkbox" value="1" <?php echo $wpsr_template2_inhome == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in front page', 'wpsr'); ?></label> <br />
1405
+
1406
+ <label><input name="wpsr_template2_insingle" id="wpsr_template2_insingle" type="checkbox" value="1" <?php echo $wpsr_template2_insingle == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in individual posts', 'wpsr'); ?></label> <br />
1407
+
1408
+ <label><input name="wpsr_template2_inpage" id="wpsr_template2_inpage" type="checkbox" value="1" <?php echo $wpsr_template2_inpage == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in pages', 'wpsr'); ?></label> <br />
1409
+
1410
+ <label><input name="wpsr_template2_incategory" id="wpsr_template2_incategory" type="checkbox" value="1" <?php echo $wpsr_template2_incategory == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in archive pages', 'wpsr'); ?></label> <br />
1411
+
1412
+ <label><input name="wpsr_template2_intag" id="wpsr_template2_intag" type="checkbox" value="1" <?php echo $wpsr_template2_intag == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in Tag pages', 'wpsr'); ?></label> <br /> </td>
1413
+ <td width="41%">
1414
+ <label><input name="wpsr_template2_indate" id="wpsr_template2_indate" type="checkbox" value="1" <?php echo $wpsr_template2_indate == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in date archives', 'wpsr'); ?></label> <br />
1415
+
1416
+ <label><input name="wpsr_template2_inauthor" id="wpsr_template2_inauthor" type="checkbox" value="1" <?php echo $wpsr_template2_inauthor == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in author pages', 'wpsr'); ?></label> <br />
1417
+
1418
+ <label><input name="wpsr_template2_insearch" id="wpsr_template2_insearch" type="checkbox" value="1" <?php echo $wpsr_template2_insearch == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in search pages', 'wpsr'); ?></label> <br />
1419
+
1420
+ <label><input name="wpsr_template2_inexcerpt" id="wpsr_template2_inexcerpt" type="checkbox" value="1" <?php echo $wpsr_template2_inexcerpt == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in Excerpt', 'wpsr'); ?></label> <br />
1421
+
1422
+ <label><input name="wpsr_template2_infeed" id="wpsr_template2_infeed" type="checkbox" value="1" <?php echo $wpsr_template2_infeed == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in RSS feeds', 'wpsr'); ?></label> </td>
1423
+ </tr>
1424
+ <tr>
1425
+ <td width="12%"><strong><?php _e('Position', 'wpsr'); ?></strong></td>
1426
+ <td width="22%"><label><input name="wpsr_template2_abvcontent" id="wpsr_template2_abvcontent" type="checkbox" value="1" <?php echo $wpsr_template2_abvcontent == "1" ? 'checked="checked"' : ""; ?> />
1427
+ <?php _e('Above content', 'wpsr'); ?></label></td>
1428
+ <td width="25%"><label><input name="wpsr_template2_blwcontent" id="wpsr_template2_blwcontent" type="checkbox" value="1" <?php echo $wpsr_template2_blwcontent == "1" ? 'checked="checked"' : ""; ?> />
1429
+ <?php _e('Below content', 'wpsr'); ?></label></td>
1430
+ <td>&nbsp;</td>
1431
+ </tr>
1432
+ </table>
1433
+ </div>
1434
+
1435
+ </div><!-- Section -->
1436
+
1437
+ </div>
1438
+ </div>
1439
+
1440
+ <div class="smallText"><strong><?php _e('FAQ', 'wpsr'); ?>:</strong> <a href="http://www.aakashweb.com/faqs/wordpress-plugins/wp-socializer/" target="_blank"><?php _e('Why sometimes the buttons are not aligned properly in the page ?', 'wpsr'); ?></a></div>
1441
+
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">
1449
+
1450
+
1451
+ <tr>
1452
+ <td width="49%" height="35">RSS <?php _e('URL', 'wpsr'); ?><br />
1453
+ <span class="smallText"><?php _e('Leave blank to use default Wordpress RSS feed.', 'wpsr'); ?> <br/><?php _e('You can use Feedburner feed URL also', 'wpsr'); ?></span></td>
1454
+ <td width="51%"><input name="wpsr_settings_rssurl" type="text" id="wpsr_settings_rssurl" value="<?php echo $wpsr_settings_rssurl; ?>" size="60"/>
1455
+ </td>
1456
+ </tr>
1457
+ </table>
1458
+ </div>
1459
+
1460
+ <h4>Bit.ly <?php _e('Integration', 'wpsr'); ?></h4>
1461
+ <div class="section">
1462
+ <table width="100%" height="39" border="0">
1463
+ <tr>
1464
+ <td width="49%" height="35"><label for="wpsr_settings_bitlyusername">Bit.ly <?php _e('Username', 'wpsr'); ?></label></td>
1465
+ <td width="51%"><input name="wpsr_settings_bitlyusername" id="wpsr_settings_bitlyusername" type="text" value="<?php echo $wpsr_settings_bitlyusername; ?>"/></td>
1466
+ </tr>
1467
+
1468
+ <tr>
1469
+ <td width="49%" height="35"><label for="wpsr_settings_bitlyapi">Bit.ly API Key</label></td>
1470
+ <td width="51%"><input name="wpsr_settings_bitlyapi" id="wpsr_settings_bitlyapi" type="text" value="<?php echo $wpsr_settings_bitlyapi; ?>"/></td>
1471
+ </tr>
1472
+
1473
+ </table>
1474
+ </div>
1475
+
1476
+ <h4><?php _e('WP Socializer Settings', 'wpsr'); ?></h4>
1477
+ <div class="section">
1478
+ <table width="100%" height="84" border="0">
1479
+ <tr>
1480
+ <td width="49%" height="40"><label for="wpsr_settings_scriptsplace"><?php _e('Load button scripts in ', 'wpsr'); ?></label></td>
1481
+ <td width="51%"><select id="wpsr_settings_scriptsplace" name="wpsr_settings_scriptsplace">
1482
+ <option <?php echo $wpsr_settings_scriptsplace == 'header' ? ' selected="selected"' : ''; ?> value="header"><?php _e('Header (recommended)', 'wpsr'); ?></option>
1483
+ <option <?php echo $wpsr_settings_scriptsplace == 'footer' ? ' selected="selected"' : ''; ?> value="footer"><?php _e('Footer', 'wpsr'); ?></option>
1484
+ </select></td>
1485
+ </tr>
1486
+ <tr>
1487
+ <td height="34"><?php _e('Load WP Socializer CSS', 'wpsr'); ?>
1488
+ <br />
1489
+ <span class="smallText">
1490
+ <?php _e('Note: templates, hover effects &amp; column will not work', 'wpsr'); ?>
1491
+ </span></td>
1492
+ <td><select id="wpsr_socialbt_loadcss" name="wpsr_socialbt_loadcss">
1493
+ <option <?php echo $wpsr_socialbt_loadcss == '1' ? ' selected="selected"' : ''; ?> value="1">
1494
+ <?php _e('Yes', 'wpsr'); ?>
1495
+ </option>
1496
+ <option <?php echo $wpsr_socialbt_loadcss == '0' ? ' selected="selected"' : ''; ?> value="0">
1497
+ <?php _e('No', 'wpsr'); ?>
1498
+ </option>
1499
+ </select></td>
1500
+ </tr>
1501
+ </table>
1502
+ </div>
1503
+
1504
+ <h4><?php _e('Disable WP Socializer', 'wpsr'); ?></h4>
1505
+ <table width="100%" height="52" border="0">
1506
+ <tr>
1507
+ <td width="49%" height="48"><?php _e('Temporarily disable all WP-Socializer buttons ', 'wpsr'); ?><br />
1508
+ <span class="smallText"><?php _e('Disabling will stop displaying all buttons, templates', 'wpsr'); ?></span> </td>
1509
+ <td width="51%"><select id="wpsr_settings_disablewpsr" name="wpsr_settings_disablewpsr">
1510
+ <option <?php echo $wpsr_settings_disablewpsr == '0' ? ' selected="selected"' : ''; ?> value="0"><?php _e('No', 'wpsr'); ?></option>
1511
+ <option <?php echo $wpsr_settings_disablewpsr == '1' ? ' selected="selected"' : ''; ?> value="1"><?php _e('Yes', 'wpsr'); ?></option>
1512
+ </select></td>
1513
+ </tr>
1514
+ </table>
1515
+ </div>
1516
+
1517
+ <div class="footer">
1518
+ <input class="button-primary" type="submit" name="wpsr_submit" id="wpsr_submit" value=" <?php _e('Update', 'wpsr'); ?> " />
1519
+ <span class="button wpsr_reset_trigger" style="float:right">&nbsp;&nbsp;<?php _e('Reset all', 'wpsr'); ?>&nbsp;&nbsp;</span>
1520
+ </div>
1521
+
1522
+ <span class="wpsr_reset_confirm">
1523
+ <input class="button" type="submit" name="wpsr_reset" id="wpsr_reset" value=" <?php _e('Sure', 'wpsr'); ?> " /> | <a class="button wpsr_reset_cancel"> <?php _e('Cancel', 'wpsr'); ?> </a></span>
1524
+
1525
+ </form>
1526
+ </div><!-- Tabs -->
1527
+
1528
+ <div class="credits">
1529
+ <a href="http://www.aakashweb.com/" title="Aakash Web" target="_blank"><?php _e('a Aakash Web plugin', 'wpsr'); ?></a>
1530
+ </div>
1531
+
1532
+ </div><!-- Wrap -->
1533
+ <?php endif; ?>
1534
+
1535
+ <!----------------------------------------------------------------------->
1536
+
1537
+ <?php if(wpsr_show_admin() == 0): ?>
1538
+ <!-- Version Intro -->
1539
+ <div class="wrap">
1540
+ <span class="wpsrVer" style="display:none"><?php echo WPSR_VERSION; ?></span>
1541
+ <span class="blogUrl" style="display:none"><?php echo get_option('siteurl'); ?></span>
1542
+
1543
+ <div class="introWrap">
1544
+ <h2><img width="32" height="32" src="<?php echo WPSR_ADMIN_URL; ?>images/wp-socializer.png" align="absmiddle"/> WP Socializer <sup><span class="smallText">v<?php echo WPSR_VERSION; ?></span></sup></h2>
1545
+ <hr />
1546
+ <div class="iBox">
1547
+ <p class="iContent"><img src="<?php echo WPSR_ADMIN_URL . 'images/load.gif'; ?>" /></p>
1548
+
1549
+ <p><a href="admin.php?page=wp_socializer_other">In Widgets</a> | <a href="admin.php?page=wp_socializer_other" target="_blank">In Posts</a> | <a href="http://www.aakashweb.com/docs/wp-socializer-docs/manual-placement/" target="_blank"><?php _e('Manual Placement', 'wpsr'); ?></a></p>
1550
+ <p><a href="http://www.aakashweb.com/wordpress-plugins/wp-socializer/" target="_blank"><?php _e('Full Features', 'wpsr'); ?></a> | <a href="http://www.aakashweb.com/docs/wp-socializer-docs/" target="_blank"><?php _e('Documentation', 'wpsr'); ?></a> | <a href="http://www.aakashweb.com/forum/" target="_blank"><?php _e('Support', 'wpsr'); ?></a></p>
1551
+ <p><a href="http://www.aakashweb.com/forum/" target="_blank"><?php _e('Bug Report', 'wpsr'); ?></a> | <a href="http://www.aakashweb.com/wordpress-plugins/wp-socializer/#videos-tab" target="_blank"><?php _e('Video Demo & Tutorials', 'wpsr'); ?></a></p>
1552
+ </div>
1553
+ <div class="iSide">
1554
+ <h5><?php _e('Share this plugin', 'wpsr'); ?></h5>
1555
+ <p><ul>
1556
+ <li><?php echo wpsr_admin_buttons('fb'); ?></li>
1557
+ <li><?php echo wpsr_admin_buttons('twitter'); ?></li>
1558
+ <li><?php echo wpsr_admin_buttons('+1'); ?></li>
1559
+ <li><?php echo wpsr_admin_buttons('at'); ?></li>
1560
+ </ul></p>
1561
+ <h5><?php _e('Support this plugin', 'wpsr'); ?></h5>
1562
+ <p><ul>
1563
+ <li><a href="http://bit.ly/wpsrDonate" target="_blank"><?php _e('Donate with PayPal!', 'wpsr'); ?></a></li>
1564
+ <li><a href="http://feeds2.feedburner.com/AakashWeb" target="_blank"><?php _e('Subscribe to Updates', 'wpsr'); ?></a></li>
1565
+ </ul></p>
1566
+ </div>
1567
+ <form method="post">
1568
+ <input class="button-primary" type="submit" name="wpsr_intro_submit" id="wpsr_intro_submit" value=" <?php _e('Start using WP Socializer', 'wpsr'); echo ' v' . WPSR_VERSION; ?> " />
1569
+ </form>
1570
+ </div>
1571
+ </div>
1572
+ <?php endif; ?>
1573
+
1574
+ <?php
1575
+ }
1576
+
1577
+ function wpsr_admin_buttons($type){
1578
+ switch($type){
1579
+ case 'fb':
1580
+ return '<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FAakash-Web%2F102453489826234&amp;layout=button_count&amp;show_faces=true&amp;width=48&amp;action=like&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:75px; height:21px;" allowTransparency="true"></iframe>';
1581
+ break;
1582
+
1583
+ case '+1':
1584
+ return '<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script><g:plusone size="medium" href="http://www.aakashweb.com/wordpress-plugins/wp-socializer/"></g:plusone>';
1585
+
1586
+ case 'twitter':
1587
+ return '<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.aakashweb.com/wordpress-plugins/wp-socializer/" data-text="Check this out !: WP Socializer - Wordpress plugin - Aakash Web" data-count="horizontal" data-via="vaakash">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>';
1588
+
1589
+ case 'at':
1590
+ return '<div class="addthis_toolbox addthis_default_style" addthis:url="http://www.aakashweb.com/wordpress-plugins/wp-socializer/" addthis:title="WP Socializer - Wordpress plugin - Aakash Web"><a class="addthis_button_compact"></a><a class="addthis_counter addthis_bubble_style"></a></div>
1591
+ <script type="text/javascript">var addthis_share = { templates: {twitter: "Check out http://www.aakashweb.com/wordpress-plugins/wp-socializer/ (from @vaakash)"}}</script><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=vaakash"></script>';
1592
+ }
1593
+ }
1594
+
1595
+
1596
+ function wpsr_meta_box(){
1597
+ global $post;
1598
+
1599
+ $wpsr_post_disabletemplate1 = 0;
1600
+ $wpsr_post_disabletemplate2 = 0;
1601
+
1602
+ if (get_post_meta($post->ID,'_wpsr-disable-template1', true)) {
1603
+ $wpsr_post_disabletemplate1 = 1;
1604
+ }
1605
+
1606
+ if (get_post_meta($post->ID,'_wpsr-disable-template2', true)) {
1607
+ $wpsr_post_disabletemplate2 = 1;
1608
+ }
1609
+
1610
+ ?>
1611
+ <a name="wp_socializer" id="wp_socializer"></a>
1612
+ <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>
1613
+
1614
+ <table width="100%" border="0">
1615
+ <tr>
1616
+ <td><label><input name="wpsr_post_disabletemplate1" id="wpsr_post_disabletemplate1" type="checkbox" value="1" <?php echo $wpsr_post_disabletemplate1 == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Disable template 1', 'wpsr'); ?></label></td>
1617
+ </tr>
1618
+ <tr>
1619
+ <td><label><input name="wpsr_post_disabletemplate2" id="wpsr_post_disabletemplate2" type="checkbox" value="1" <?php echo $wpsr_post_disabletemplate2 == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Disable template 2', 'wpsr'); ?></label></td>
1620
+ </tr>
1621
+ <tr>
1622
+ <td height="28"><small><a href="http://www.aakashweb.com/wordpress-plugins/wp-socializer/" target="_blank"><?php _e('Help', 'wpsr'); ?></a> | <a href="admin.php?page=wp_socializer" target="_blank"><?php _e('Settings', 'wpsr'); ?></a></small></td>
1623
+ </tr>
1624
+ </table>
1625
+
1626
+ <?php
1627
+ }
1628
+
1629
+ ## Add the meta box to post editing page
1630
+ function wpsr_add_meta_box() {
1631
+ add_meta_box('wp-socializer','WP Socializer','wpsr_meta_box','post','side');
1632
+ add_meta_box('wp-socializer','WP Socializer','wpsr_meta_box','page','side');
1633
+ }
1634
+ add_action('admin_menu', 'wpsr_add_meta_box');
1635
+
1636
+ function wpsr_insert_post($post_id) {
1637
+ if ($_POST['wpsr_post_disabletemplate1'] == 1) {
1638
+ add_post_meta($post_id, '_wpsr-disable-template1', 1, true);
1639
+ }else{
1640
+ delete_post_meta($post_id, '_wpsr-disable-template1');
1641
+ }
1642
+
1643
+ if ($_POST['wpsr_post_disabletemplate2'] == 1) {
1644
+ add_post_meta($post_id, '_wpsr-disable-template2', 1, true);
1645
+ }else{
1646
+ delete_post_meta($post_id, '_wpsr-disable-template2');
1647
+ }
1648
+ }
1649
+ add_action('wp_insert_post', 'wpsr_insert_post');
1650
+ ?>
admin/wpsr-services-selector.php ADDED
@@ -0,0 +1,211 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $id = $_GET['id'];
3
+ $val = $_GET['val'];
4
+ $bt = $_GET['bt'];
5
+
6
+ $addthis_services = array("100zakladok", "2tag", "2linkme", "a1webmarks", "addio", "menu", "adfty", "adifni", "aerosocial", "allmyfaves", "amazonwishlist", "amenme", "aim", "aolmail", "arto", "aviary", "baang", "baidu", "bebo", "bentio", "biggerpockets", "bitly", "bizsugar", "bleetbox", "blinklist", "blip", "blogger", "bloggy", "blogmarks", "blogtrottr", "blurpalicious", "boardlite", "bobrdobr", "bonzobox", "bookmarkedbyus", "socialbookmarkingnet", "bookmarkycz", "bookmerkende", "bordom", "box", "brainify", "bryderi", "buddymarks", "buzzzy", "camyoo", "care2", "chiq", "cirip", "citeulike", "classicalplace", "clickazoo", "clply", "cndig", "colivia", "technerd", "connotea", "cosmiq", "delicious", "designbump", "designmoo", "digthiswebhost", "digaculturanet", "digg", "diggita", "diglog", "digo", "digzign", "diigo", "dipdive", "domelhor", "dosti", "dotnetkicks", "dotnetshoutout", "woscc", "douban", "drimio", "dropjack", "dwellicious", "dzone", "edelight", "efactor", "ekudos", "elefantapl", "email", "mailto", "embarkons", "eucliquei", "evernote", "extraplay", "ezyspot", "fabulously40", "facebook", "informazione", "fark", "farkinda", "fashiolista", "fashionburner", "favable", "faves", "favlogde", "favoritende", "favorites", "favoritus", "flaker", "flosspro", "folkd", "followtags", "forceindya", "thefreedictionary", "fresqui", "friendfeed", "friendster", "funp", "fwisp", "gabbr", "gacetilla", "gamekicker", "givealink", "globalgrind", "gmail", "goodnoows", "google", "googlebuzz", "googlereader", "googletranslate", "gravee", "greaterdebater", "grono", "grumper", "habergentr", "hackernews", "hadashhot", "hatena", "hazarkor", "gluvsnap", "hedgehogs", "hellotxt", "hipstr", "hitmarks", "hotbookmark", "hotklix", "hotmail", "w3validator", "hyves", "idearef", "identica", "igoogle", "ihavegot", "instapaper", "investorlinks", "iorbix", "isociety", "iwiw", "jamespot", "jisko", "joliprint", "jumptags", "zooloo", "kaboodle", "kaevur", "kipup", "kirtsy", "kledy", "kommenting", "latafaneracat", "laaikit", "ladenzeile", "librerio", "linkninja", "linkagogo", "linkedin", "linksgutter", "linkshares", "linkuj", "livefavoris", "livejournal", "lockerblogger", "logger24", "lynki", "mymailru", "markme", "mashbord", "mawindo", "meccho", "meinvz", "mekusharim", "memori", "meneame", "live", "mindbodygreen", "misterwong", "misterwong_de", "mixx", "moemesto", "mototagz", "mrcnetworkit", "multiply", "myaol", "mylinkvault", "myspace", "n4g", "netlog", "netvibes", "netvouz", "newsmeback");
7
+
8
+ $sharethis_services = array("facebook", "fark", "faves", "fresqui", "friendfeed", "funp", "gbuzz", "google_bmarks", "kirsty", "linkedin", "meaneame", "messenger", "mister_wong", "mixx", "myspace", "n4g", "newsvine", "oknotizie", "propeller", "reddit", "simpy", "slashdot", "sonico", "sphinn", "stumbleupon", "technorati", "twackle", "twine", "twitter", "windows_live", "xanga", "yahoo_bmarks", "ybuzz", "yigg");
9
+
10
+ ?>
11
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
12
+ <html xmlns="http://www.w3.org/1999/xhtml">
13
+ <head>
14
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
+ <title>Select the services</title>
16
+ <link rel="stylesheet" href="wpsr-admin-mini-css.css" type="text/css" media="all" />
17
+
18
+ <script language="JavaScript" type="text/javascript">
19
+ <!--
20
+
21
+ var NS4 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) < 5);
22
+
23
+ function updateAndClose(val, id){
24
+ opener.document.getElementById(id).value = val;
25
+ window.close();
26
+ }
27
+
28
+ function addOption(theSel, theText, theValue){
29
+ var newOpt = new Option(theText, theValue);
30
+ var selLength = theSel.length;
31
+ theSel.options[selLength] = newOpt;
32
+ loopSelected();
33
+ }
34
+
35
+ function deleteOption(theSel, theIndex){
36
+ var selLength = theSel.length;
37
+ if(selLength>0){
38
+ theSel.options[theIndex] = null;
39
+ }
40
+ loopSelected();
41
+ }
42
+
43
+ function moveOptions(theSelFrom, theSelTo){
44
+
45
+ var selLength = theSelFrom.length;
46
+ var selectedText = new Array();
47
+ var selectedValues = new Array();
48
+ var selectedCount = 0;
49
+
50
+ var i;
51
+
52
+ // Find the selected Options in reverse order
53
+ // and delete them from the 'from' Select.
54
+ for(i=selLength-1; i>=0; i--){
55
+ if(theSelFrom.options[i].selected){
56
+ selectedText[selectedCount] = theSelFrom.options[i].text;
57
+ selectedValues[selectedCount] = theSelFrom.options[i].value;
58
+ deleteOption(theSelFrom, i);
59
+ selectedCount++;
60
+ }
61
+ }
62
+
63
+ // Add the selected text/values in reverse order.
64
+ // This will add the Options to the 'to' Select
65
+ // in the same order as they were in the 'from' Select.
66
+ for(i=selectedCount-1; i>=0; i--){
67
+ addOption(theSelTo, selectedText[i], selectedValues[i]);
68
+ }
69
+
70
+ loopSelected();
71
+ }
72
+
73
+ function moveUp(lst){
74
+ if(lst.selectedIndex == -1){
75
+ alert('Please select an Item to move up.');
76
+ }else{
77
+ if(lst.selectedIndex == 0){
78
+ alert('First element cannot be moved up');
79
+ return false
80
+ }else{
81
+ var tempValue = lst.options[lst.selectedIndex].value;
82
+ var tempIndex = lst.selectedIndex-1;
83
+ lst.options[lst.selectedIndex].value = lst.options[lst.selectedIndex-1].value;
84
+ lst.options[lst.selectedIndex-1].value = tempValue;
85
+ var tempText = lst.options[lst.selectedIndex].text;
86
+ lst.options[lst.selectedIndex].text = lst.options[lst.selectedIndex-1].text;
87
+ lst.options[lst.selectedIndex-1].text = tempText;
88
+ lst.selectedIndex = tempIndex;
89
+ }
90
+ }
91
+ return false;
92
+ }
93
+
94
+ function moveDown(lst){
95
+ if(lst.selectedIndex == -1){
96
+ alert('Please select an Item to move down');
97
+ }else{
98
+ if(lst.selectedIndex == lst.options.length-1){
99
+ alert('Last element cannot be moved down');
100
+ }else{
101
+ var tempValue = lst.options[lst.selectedIndex].value;
102
+ var tempIndex = lst.selectedIndex+1;
103
+ lst.options[lst.selectedIndex].value = lst.options[lst.selectedIndex+1].value;
104
+ lst.options[lst.selectedIndex+1].value = tempValue;
105
+ var tempText = lst.options[lst.selectedIndex].text;
106
+ lst.options[lst.selectedIndex].text = lst.options[lst.selectedIndex+1].text;
107
+ lst.options[lst.selectedIndex+1].text = tempText;
108
+ lst.selectedIndex = tempIndex;
109
+ }
110
+ }
111
+ return false;
112
+ }
113
+
114
+ function loopSelected(){
115
+ var txtSelectedValuesObj = document.getElementById('services');
116
+ var selectedArray = new Array();
117
+ var selObj = document.getElementById('sel2');
118
+ var i;
119
+ var count = 0;
120
+ for (i=0; i<selObj.options.length; i++) {
121
+ if (selObj.options[i].value) {
122
+ selectedArray[count] = selObj.options[i].value;
123
+ count++;
124
+ }
125
+ }
126
+ txtSelectedValuesObj.value = selectedArray;
127
+ }
128
+
129
+ //http://www.mredkj.com/tutorials/tutorial004.html-->
130
+ </script>
131
+
132
+ <script>
133
+ function googleTranslateElementInit() {
134
+ new google.translate.TranslateElement({
135
+ pageLanguage: 'en',
136
+ layout: google.translate.TranslateElement.InlineLayout.SIMPLE
137
+ }, 'google_translate_element');
138
+ }
139
+ </script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
140
+
141
+ </head>
142
+
143
+ <body>
144
+ <div id="wrapper">
145
+ <div id="google_translate_element"></div>
146
+ <h2>Select the services</h2>
147
+ <small>Use Control key to select multiple services.</small>
148
+ <form>
149
+ <table width="100%" border="0">
150
+ <tr>
151
+ <td width="44%">
152
+ <select name="sel1" id="sel1" size="20" multiple="multiple" style="width:100%">
153
+ <?php
154
+ switch($bt){
155
+ case 'addthis':
156
+ foreach($addthis_services as $srvc){
157
+ echo "<option value='$srvc'>$srvc</option>";
158
+ }
159
+ break;
160
+
161
+ case 'sharethis':
162
+ foreach($sharethis_services as $srvc){
163
+ echo "<option value='$srvc'>$srvc</option>";
164
+ }
165
+ break;
166
+ }
167
+ ?>
168
+ </select> </td>
169
+ <td width="11%" align="center" valign="middle">
170
+ <p>
171
+ <input type="button" value="--&gt;" onclick="moveOptions(this.form.sel1, this.form.sel2);" title="Add" />
172
+ <br />
173
+ <input type="button" value="&lt;--" onclick="moveOptions(this.form.sel2, this.form.sel1);" title="Remove" />
174
+ </p>
175
+ <br />
176
+ <p>
177
+ <input type="button" value=" Up " onclick="moveUp(this.form.sel2);" title="Up" />
178
+ <br />
179
+ <input type="button" value="Down" onclick="moveDown(this.form.sel2);" title="Down" />
180
+ </p>
181
+ </td>
182
+ <td width="45%">
183
+ <select name="sel2" id="sel2" size="20" multiple="multiple" style="width:100%">
184
+ <?php
185
+ $selVal = $_GET['val'];
186
+ if($selVal != ''){
187
+ $expSel = explode(',', $selVal);
188
+ foreach ($expSel as $eSel){
189
+ echo "<option value='$eSel'>$eSel</option>";
190
+ }
191
+ }
192
+
193
+ ?>
194
+ </select>
195
+ </td>
196
+ </tr>
197
+ </table>
198
+ <br />
199
+ <p>Selected services:<br/> <input name="services" type="text" id="services" value="<?php echo $_GET['val']; ?>" size="40"/>
200
+ <input type="hidden" id="targetId" name="targetId" value="<?php echo $_GET['id']; ?>"/>
201
+
202
+ </form>
203
+ </p>
204
+ <p>
205
+ <input type="button" onclick="updateAndClose(document.getElementById('services').value, document.getElementById('targetId').value);" value="Update" />
206
+ </p>
207
+ <p align="center"><a href="http://www.aakashweb.com/" target="_blank">Aakash Web</a> | <a href="http://www.aakashweb.com/">Help</a> </p>
208
+ </div>
209
+
210
+ </body>
211
+ </html>
images/Thumbs.db DELETED
Binary file
images/help.png DELETED
Binary file
images/paypalDonateButton.png DELETED
Binary file
images/settings.png DELETED
Binary file
includes/wpsr-addthis.php ADDED
@@ -0,0 +1,268 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Addthis button Processor code for WP Socializer Plugin
4
+ * Version : 2.0
5
+ * Author : Aakash Chakravarthy
6
+ */
7
+
8
+ function wpsr_addthis_is_used(){
9
+ ## Get template data
10
+ $wpsr_template1 = get_option('wpsr_template1_data');
11
+ $wpsr_template2 = get_option('wpsr_template2_data');
12
+
13
+ $wpsr_template1_content = $wpsr_template1['content'] . $wpsr_template2['content'];
14
+ $is_addthis_used = strpos_arr($wpsr_template1_content, array("{addthis-bt}", "{addthis-tb-16px}", "{addthis-tb-32px}", "{addthis-sc}"));
15
+
16
+ if ($is_addthis_used === false){
17
+ return 0;
18
+ } else {
19
+ return 1;
20
+ }
21
+
22
+ }
23
+
24
+ function wpsr_addthis_uniqueid(){
25
+ $rand_no = dechex(mt_rand(0,min(0xffffffff,mt_getrandmax())));
26
+ $current_time = dechex(time());
27
+ $unique_id = 'wp-' . $current_time . str_pad($rand_no, 8, '0', STR_PAD_LEFT);
28
+
29
+ $wpsr_addthis = get_option('wpsr_addthis_data');
30
+
31
+ $wpsr_addthis['username'] = $unique_id;
32
+ update_option("wpsr_addthis_data", $wpsr_addthis);
33
+
34
+ return $unique_id;
35
+ }
36
+
37
+ function wpsr_addthis_script(){
38
+ ## Get Addthis Options
39
+ $wpsr_addthis = get_option('wpsr_addthis_data');
40
+
41
+ $wpsr_addthis_lang = $wpsr_addthis['language'];
42
+ $wpsr_addthis_button = $wpsr_addthis['button'];
43
+ $wpsr_addthis_btbrand = $wpsr_addthis['btbrand'];
44
+ $wpsr_addthis_clickback = $wpsr_addthis['clickback'];
45
+ $wpsr_addthis_btheadclr = $wpsr_addthis['btheadclr'];
46
+ $wpsr_addthis_btheadbgclr = $wpsr_addthis['btheadbgclr'];
47
+
48
+ # Config settings
49
+ if($wpsr_addthis['username'] == ''){
50
+ $wpsr_addthis_username = '&amp;username=' . wpsr_addthis_uniqueid();
51
+ }else{
52
+ $wpsr_addthis_username = '&amp;username=' . $wpsr_addthis['username'];
53
+ }
54
+
55
+ if($wpsr_addthis['language'] != 'lg-share-'){
56
+ $wpsr_addthis_lang = 'en';
57
+ }
58
+
59
+ if($wpsr_addthis_btbrand != ''){
60
+ $wpsr_addthis_btbrand = 'ui_cobrand: "' . $wpsr_addthis_btbrand .'"' . ",\n";
61
+ }else{
62
+ $wpsr_addthis_btbrand = '';
63
+ }
64
+
65
+ if($wpsr_addthis_btheadclr != ''){
66
+ $wpsr_addthis_btheadclr = 'ui_header_color: "' . $wpsr_addthis_btheadclr . '"' . ",\n";
67
+ }else{
68
+ $wpsr_addthis_btheadclr = '';
69
+ }
70
+
71
+ if($wpsr_addthis_btheadbgclr != ''){
72
+ $wpsr_addthis_btheadbgclr = 'ui_header_background: "' . $wpsr_addthis_btheadbgclr . '"' . ",\n";
73
+ }else{
74
+ $wpsr_addthis_btheadbgclr = '';
75
+ }
76
+
77
+ if($wpsr_addthis_clickback == 1){
78
+ $wpsr_addthis_clickback = 'data_track_clickback: true' . "\n";
79
+ }else{
80
+ $wpsr_addthis_clickback = 'data_track_clickback: false' . "\n";
81
+ }
82
+
83
+ $wpsr_addthis_config = $wpsr_addthis_btbrand . $wpsr_addthis_btheadclr . $wpsr_addthis_btheadbgclr . $wpsr_addthis_clickback;
84
+
85
+ $wpsr_addthis_settings =
86
+ "\n<script type=\"text/javascript\">\n" .
87
+ "<!--\n" .
88
+ "var addthis_config = { \n" .
89
+ $wpsr_addthis_config .
90
+ "}\n//-->" .
91
+ "</script>\n" .
92
+ '<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#' .
93
+ $wpsr_addthis_username .
94
+ '"></script>';
95
+
96
+ // Return the script
97
+ return "\n<!-- WP Socializer - AddThis Script -->" .
98
+ $wpsr_addthis_settings .
99
+ "\n<!-- WP Socializer - End AddThis Script -->\n";
100
+ }
101
+
102
+ function wpsr_addthis($args = ''){
103
+ global $post;
104
+
105
+ $details = wpsr_get_post_details();
106
+ $def_url = $details['permalink'];
107
+ $def_title = $details['title'];
108
+
109
+ ## Get Addthis Options
110
+ $wpsr_addthis = get_option('wpsr_addthis_data');
111
+
112
+ $defaults = array (
113
+ 'output' => 'button',
114
+ 'url' => $def_url,
115
+ 'title' => $def_title,
116
+ 'type' => 'button',
117
+ 'btstyle' => 'lg-share-',
118
+ 'tbstyle' => '16px',
119
+ 'tbservices' => 'facebook,twitter,digg,delicious,email,compact',
120
+ 'scstyle' => 'normal',
121
+ 'username' => $wpsr_addthis['username'],
122
+ 'lang' => 'en',
123
+ 'text' => __('Share with Addthis' ,'wpsr'),
124
+ 'params' => '',
125
+ );
126
+
127
+ $args = wp_parse_args($args, $defaults);
128
+ extract($args, EXTR_SKIP);
129
+
130
+ ## Adjustments
131
+ $url = ' addthis:url="' . $url .'"' ;
132
+ $title = ' addthis:title="' . $title .'"' ;
133
+ $btwidth = (strpos($btstyle, 'lg') === false) ? '83' : '125';
134
+
135
+ $addthis_processed = "\n<!-- Start WP Socializer Plugin - Addthis Button -->\n";
136
+
137
+ switch($output){
138
+ // Output the ordinary button
139
+ case 'button':
140
+ switch($type){
141
+ // Display the toolbar
142
+ case 'toolbar':
143
+
144
+ $style = ($tbstyle == '16px') ? 'addthis_default_style' : 'addthis_default_style addthis_32x32_style';
145
+ $outer_start = '<div class="addthis_toolbox ' . $style . '"' . $url . $title . '>' . "\n";
146
+ $outer_end = '</div>';
147
+
148
+ $default_code = '<a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a>';
149
+
150
+ switch($tbstyle){
151
+ case '16px':
152
+ if($tbservices == ''){
153
+ $inner = $default_code;
154
+ }else{
155
+ $tb_16px = explode(',', $tbservices);
156
+ foreach($tb_16px as $tb_16px_srvc){
157
+ $tb_16px_srvc = trim($tb_16px_srvc);
158
+ $inner .= "<a class=\"addthis_button_{$tb_16px_srvc}\"></a>\n";
159
+ }
160
+ }
161
+ break;
162
+
163
+ case '32px':
164
+ if($tbservices == ''){
165
+ $inner = $default_code;
166
+ }else{
167
+ $tb_32px = explode(',', $tbservices);
168
+ foreach($tb_32px as $tb_32px_srvc){
169
+ $tb_32px_srvc = trim($tb_32px_srvc);
170
+ $inner .= "<a class=\"addthis_button_{$tb_32px_srvc}\"></a>\n";
171
+ }
172
+ }
173
+ break;
174
+ }
175
+
176
+ $addthis_processed .= $outer_start . $inner . $outer_end;
177
+
178
+ break;
179
+
180
+ // Display the sharecount
181
+ case 'sharecount':
182
+
183
+ $outer_start = "\n" . '<div class="addthis_toolbox addthis_default_style"' . $url . $title . '>' . "\n";
184
+ $outer_end = '</div>' . "\n";
185
+
186
+ switch($scstyle){
187
+ case 'normal':
188
+ $inner = '<a class="addthis_counter"></a>';
189
+ break;
190
+
191
+ case 'pill':
192
+ $inner = '<a class="addthis_counter addthis_pill_style"></a>';
193
+ break;
194
+
195
+ case 'grouped':
196
+ $inner = '<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a>';
197
+ break;
198
+ }
199
+
200
+ $addthis_processed .= $outer_start . $inner . $outer_end;
201
+
202
+ break;
203
+
204
+ // Display the ordinary button
205
+ case 'button':
206
+
207
+ $addthis_processed .=
208
+ '<a class="addthis_button" ' . $params . ' href="http://addthis.com/bookmark.php?v=250&amp;pubid=' . $username .
209
+ '"' . $url . $title . '><img src="http://s7.addthis.com/static/btn/v2/' . $btstyle . $lang .
210
+ '.gif" width="' . $btwidth . '" height="16" alt="Bookmark and Share" style="border:0"/></a>';
211
+
212
+ break;
213
+ }
214
+ break;
215
+
216
+ case 'text':
217
+
218
+ $addthis_processed .=
219
+ '<a class="addthis_button" ' . $params . ' href="http://addthis.com/bookmark.php?v=250&amp;pubid=' . $username .
220
+ '"' . $url . $title . '>' . $text . '</a>';
221
+
222
+ break;
223
+ }
224
+
225
+ $addthis_processed .= "\n<!-- End WP Socializer Plugin - Addthis Button -->\n";
226
+
227
+ return $addthis_processed;
228
+ }
229
+
230
+ ## Addthis function
231
+ function wpsr_addthis_bt($type, $tbstyle = '16px'){
232
+
233
+ ## Addthis Options
234
+ $wpsr_addthis = get_option('wpsr_addthis_data');
235
+
236
+ ## Start Output
237
+ $wpsr_addthis_bt_processed = wpsr_addthis(array(
238
+ 'output' => 'button',
239
+ 'type' => $type,
240
+ 'tbstyle' => $tbstyle,
241
+ 'scstyle' => $wpsr_addthis['sharecount'],
242
+ 'btstyle' => $wpsr_addthis['button'],
243
+ 'tbservices' => ($tbstyle == '16px') ? $wpsr_addthis['tb_16pxservices'] : $wpsr_addthis['tb_32pxservices'],
244
+ 'lang' => $wpsr_addthis['language'],
245
+ ));
246
+ ## End Output
247
+
248
+ return $wpsr_addthis_bt_processed;
249
+ }
250
+
251
+ function wpsr_addthis_rss_bt(){
252
+
253
+ ## Get the Options
254
+ $wpsr_addthis = get_option('wpsr_addthis_data');
255
+
256
+ ## Start Output
257
+ $wpsr_addthis_processed = wpsr_addthis(array(
258
+ 'output' => 'text',
259
+ 'type' => 'button',
260
+ 'btstyle' => $wpsr_addthis['button'],
261
+ 'lang' => $wpsr_addthis['language'],
262
+ 'params' => 'target="_blank"',
263
+ ));
264
+ ## End Output
265
+
266
+ return $wpsr_addthis_processed;
267
+ }
268
+ ?>
socializer-custom.php → includes/wpsr-custom.php RENAMED
@@ -10,7 +10,7 @@ function wpsr_custom_bt($custom){
10
  global $post;
11
 
12
  $permalink = urlencode(get_permalink($post->ID));
13
- $title = str_replace('+','%20',urlencode(get_the_title($post->ID)));
14
 
15
  $to_be_replaced = array(
16
  "{url}", "{title}"
10
  global $post;
11
 
12
  $permalink = urlencode(get_permalink($post->ID));
13
+ $title = str_replace('+','%20',urlencode(get_the_title($post->ID)));
14
 
15
  $to_be_replaced = array(
16
  "{url}", "{title}"
includes/wpsr-digg.php ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Digg buttons Processor code for WP Socializer Plugin
4
+ * Version : 1.0
5
+ * Author : Aakash Chakravarthy
6
+ */
7
+
8
+ function wpsr_digg_script(){
9
+ // Return the script
10
+ return "\n<!-- WP Socializer - Digg Script -->\n" .
11
+ "<script type=\"text/javascript\">
12
+ (function() {
13
+ var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];
14
+ s.type = 'text/javascript';
15
+ s.async = true;
16
+ s.src = 'http://widgets.digg.com/buttons.js';
17
+ s1.parentNode.insertBefore(s, s1);
18
+ })();
19
+ </script>" .
20
+ "\n<!-- WP Socializer - End Digg Script -->\n";
21
+ }
22
+
23
+ function wpsr_digg_bt_used(){
24
+
25
+ ## Get template data
26
+ $wpsr_template1 = get_option('wpsr_template1_data');
27
+ $wpsr_template2 = get_option('wpsr_template2_data');
28
+
29
+ $wpsr_template1_content = $wpsr_template1['content'] . $wpsr_template2['content'];
30
+ $is_diggbt_used = strpos($wpsr_template1_content, '{digg-bt}');
31
+
32
+ if ($is_diggbt_used === false) {
33
+ return 0;
34
+ } else {
35
+ return 1;
36
+ }
37
+
38
+ }
39
+
40
+ function wpsr_digg($args = ''){
41
+
42
+ global $post;
43
+
44
+ $details = wpsr_get_post_details();
45
+ $def_url = $details['permalink'];
46
+ $def_title = $details['title'];
47
+
48
+ $defaults = array (
49
+ 'output' => 'button',
50
+ 'url' => $def_url,
51
+ 'title' => $def_title,
52
+ 'type' => 'DiggMedium',
53
+ 'text' => __('Digg this' ,'wpsr'),
54
+ 'image' => WPSR_PUBLIC_URL . 'buttons/digg-bt.png',
55
+ 'params' => '',
56
+ );
57
+
58
+ $args = wp_parse_args($args, $defaults);
59
+ extract($args, EXTR_SKIP);
60
+
61
+ $digg_processed = "\n<!-- Start WP Socializer Plugin - Digg Button -->\n";
62
+
63
+ switch($output){
64
+ // Display the ordinary button
65
+ case 'button':
66
+ $digg_processed .= '<a class="DiggThisButton ' . $type . '" href="http://digg.com/submit?url=' . urlencode($url) . '&amp;title=' . urlencode($title) . '" ' . $params . '></a>';
67
+ break;
68
+
69
+ // Display the Image format
70
+ case 'image':
71
+ $digg_processed .= '<a href="http://digg.com/submit?url=' . urlencode($url) . '&amp;title=' . urlencode($title) . '" ' . $params . '><img src="' . $image . '" alt="Digg!" /></a>';
72
+ break;
73
+
74
+ // Display the Text format
75
+ case 'text':
76
+ $digg_processed .= '<a href="http://digg.com/submit?url=' . urlencode($url) . '&amp;title=' . urlencode($title) . '" ' . $params . '>' . $text . '</a>';
77
+ break;
78
+ }
79
+
80
+ $digg_processed .= "\n<!-- End WP Socializer Plugin - Digg Button -->\n";
81
+
82
+ return $digg_processed;
83
+ }
84
+
85
+ function wpsr_digg_bt(){
86
+ ## Digg Options
87
+ $wpsr_digg = get_option('wpsr_digg_data');
88
+
89
+ ## Start Output
90
+ $wpsr_digg_bt_processed = wpsr_digg(array(
91
+ 'output' => 'button',
92
+ 'type' => $wpsr_digg['type'],
93
+ ));
94
+ ## End Output
95
+
96
+ return $wpsr_digg_bt_processed;
97
+ }
98
+
99
+ function wpsr_digg_rss_bt(){
100
+
101
+ ## Start Output
102
+ $wpsr_digg_processed = wpsr_digg(array(
103
+ 'output' => 'text',
104
+ 'params' => 'target="_blank"',
105
+ ));
106
+ ## End Output
107
+
108
+ return $wpsr_digg_processed;
109
+ }
110
+
111
+ ?>
includes/wpsr-facebook.php ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Facebook buttons Processor code for WP Socializer Plugin
4
+ * Version : 1.5
5
+ * Author : Aakash Chakravarthy
6
+ */
7
+
8
+ function wpsr_facebook($args = ''){
9
+
10
+ global $post;
11
+
12
+ $details = wpsr_get_post_details();
13
+ $def_url = $details['permalink'];
14
+ $def_title = $details['title'];
15
+
16
+ $defaults = array (
17
+ 'output' => 'button',
18
+ 'url' => $def_url,
19
+ 'title' => $def_title,
20
+ 'type' => 'like',
21
+ 'style' => 'button_count',
22
+ 'showfaces' => 1,
23
+ 'width'=> 80,
24
+ 'verb' => 'like',
25
+ 'font' => 'arial',
26
+ 'color' => 'light',
27
+ 'shstyle' => 'button',
28
+ 'counter' => 1,
29
+ 'counterplacement' => 'above',
30
+ 'text' => __('Share on Facebook', 'wpsr'),
31
+ 'image' => WPSR_PUBLIC_URL . 'buttons/facebook-bt.png',
32
+ 'params' => '',
33
+ );
34
+
35
+ $args = wp_parse_args($args, $defaults);
36
+ extract($args, EXTR_SKIP);
37
+
38
+ $facebook_processed = "\n<!-- Start WP Socializer Plugin - Facebook Button -->\n";
39
+
40
+ switch($output){
41
+ // Output ordinary button
42
+ case 'button':
43
+ switch($type){
44
+ // Display like button
45
+ case 'like':
46
+ if($style == 'standard' && $showfaces == 1){
47
+ $height = 80;
48
+ }
49
+ if ($style == 'standard' && $showfaces == 0){
50
+ $height = 35;
51
+ }
52
+ if ($style == 'button_count'){
53
+ $height = 21;
54
+ }
55
+ if ($style == 'box_count'){
56
+ $height = 62;
57
+ }
58
+
59
+ $facebook_processed .=
60
+ '<iframe src="http://www.facebook.com/plugins/like.php?' .
61
+ '&amp;href=' . $url .
62
+ '&amp;layout=' . $style .
63
+ '&amp;show_faces=' . $showfaces .
64
+ '&amp;width=' . $width .
65
+ '&amp;action=' . $verb .
66
+ '&amp;font=' . $font .
67
+ '&amp;colorscheme=' . $color .
68
+ '&amp;height=' . $height .
69
+ '" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:' . $width . 'px; height:' . $height . 'px;" allowTransparency="true"></iframe>';
70
+
71
+ break;
72
+
73
+ // Display share button
74
+ case 'share':
75
+
76
+ if($shstyle == 'button' && $counter == 1){
77
+ if($counterplacement == 'above'){
78
+ $shstyle = 'box_count';
79
+ }else{
80
+ $shstyle = 'button_count';
81
+ }
82
+ }elseif($shstyle == 'button' && $counter == 0){
83
+ $shstyle = 'button';
84
+ }elseif($shstyle == 'link'){
85
+ $shstyle = 'icon_link';
86
+ }
87
+
88
+ $facebook_processed .=
89
+ '<a name="fb_share" type="' . $shstyle . '" href="http://www.facebook.com/sharer.php?u=' . $url . '&amp;t=' . $title . '">Share</a>' . '<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>' ;
90
+
91
+ break;
92
+ }
93
+ break;
94
+
95
+ // Output Image format
96
+ case 'image':
97
+ $facebook_processed .= '<a href="https://www.facebook.com/sharer.php?u=' . urlencode($url) . '" ' . $params . '><img src="' . $image . '" /></a>';
98
+ break;
99
+
100
+ // Output Text format
101
+ case 'text':
102
+ $facebook_processed .= '<a href="https://www.facebook.com/sharer.php?u=' . urlencode($url) . '" ' . $params . '>' . $text . '</a>';
103
+ break;
104
+ }
105
+
106
+ $facebook_processed .= "\n<!-- End WP Socializer Plugin - Facebook Button -->\n";
107
+
108
+ return $facebook_processed;
109
+ }
110
+
111
+ function wpsr_facebook_bt($type){
112
+
113
+ ## Get Facebook Options
114
+ $wpsr_facebook = get_option('wpsr_facebook_data');
115
+
116
+ ## Start Output
117
+ $wpsr_facebook_bt_processed = wpsr_facebook(array(
118
+ 'output' => 'button',
119
+ 'type' => $type,
120
+ 'style' => $wpsr_facebook['btstyle'],
121
+ 'showfaces' => $wpsr_facebook['showfaces'],
122
+ 'width' => $wpsr_facebook['width'],
123
+ 'font' => $wpsr_facebook['font'],
124
+ 'verb' => $wpsr_facebook['verb'],
125
+ 'color' => $wpsr_facebook['color'],
126
+ 'shstyle' => $wpsr_facebook['shstyle'],
127
+ 'counter' => $wpsr_facebook['counter'],
128
+ 'counterplacement' => $wpsr_facebook['counterplacement'],
129
+ ));
130
+ ## End Output
131
+
132
+ return $wpsr_facebook_bt_processed;
133
+ }
134
+
135
+ function wpsr_facebook_rss_bt(){
136
+
137
+ ## Start Output
138
+ $wpsr_facebook_processed = wpsr_facebook(array(
139
+ 'output' => 'text',
140
+ 'params' => 'target="_blank"',
141
+ ));
142
+ ## End Output
143
+
144
+ return $wpsr_facebook_processed;
145
+ }
146
+
147
+ ?>
includes/wpsr-google.php ADDED
@@ -0,0 +1,251 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+
8
+ function wpsr_plusone_script(){
9
+ // Return the script
10
+ return "\n<!-- WP Socializer - +1 Script -->\n".
11
+ '<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>'.
12
+ "\n<!-- WP Socializer - End +1 Script -->\n";
13
+ }
14
+
15
+ function wpsr_plusone_bt_used(){
16
+
17
+ ## Get template data
18
+ $wpsr_template1 = get_option('wpsr_template1_data');
19
+ $wpsr_template2 = get_option('wpsr_template2_data');
20
+
21
+ $wpsr_template_content = $wpsr_template1['content'] . $wpsr_template2['content'];
22
+ $is_plusonebt_used = strpos_arr($wpsr_template_content, array('{plusone-small}', '{plusone-medium}', '{plusone-standard}', '{plusone-tall}'));
23
+
24
+ if ($is_plusonebt_used === false) {
25
+ return 0;
26
+ } else {
27
+ return 1;
28
+ }
29
+
30
+ }
31
+
32
+ function wpsr_plusone($args = ''){
33
+
34
+ global $post;
35
+
36
+ $details = wpsr_get_post_details();
37
+ $def_url = $details['permalink'];
38
+ $def_title = $details['title'];
39
+
40
+ $defaults = array (
41
+ 'output' => 'button',
42
+ 'url' => $def_url,
43
+ 'title' => $def_title,
44
+ 'type' => 'standard',
45
+ //'text' => __('+1 this' ,'wpsr'),
46
+ //'image' => WPSR_PUBLIC_URL . 'buttons/plusone-bt.png',
47
+ //'params' => '',
48
+ );
49
+
50
+ $args = wp_parse_args($args, $defaults);
51
+ extract($args, EXTR_SKIP);
52
+
53
+ $plusone_processed = "\n<!-- Start WP Socializer Plugin - +1 Button -->\n";
54
+
55
+ switch($output){
56
+ // Display the ordinary button
57
+ case 'button':
58
+ $plusone_processed .= '<g:plusone size="' . $type . '" href="' . $url . '" ' . $params . '></g:plusone>';
59
+ break;
60
+
61
+ }
62
+
63
+ $plusone_processed .= "\n<!-- End WP Socializer Plugin - +1 Button -->\n";
64
+
65
+ return $plusone_processed;
66
+ }
67
+
68
+ function wpsr_plusone_bt($type = 'standard'){
69
+
70
+ ## Start Output
71
+ $wpsr_plusone_bt_processed = wpsr_plusone(array(
72
+ 'output' => 'button',
73
+ 'type' => $type,
74
+ ));
75
+ ## End Output
76
+
77
+ return $wpsr_plusone_bt_processed;
78
+ }
79
+
80
+ function wpsr_plusone_rss_bt(){
81
+
82
+ ## Start Output
83
+ $wpsr_plusone_processed = '';
84
+ ## End Output
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
+ ?>
includes/wpsr-other.php ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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;
14
+
15
+ $details = wpsr_get_post_details();
16
+ $def_url = $details['permalink'];
17
+ $def_title = $details['title'];
18
+
19
+ $defaults = array (
20
+ 'output' => 'button',
21
+ 'url' => $def_url,
22
+ 'title' => $def_title,
23
+ 'type' => '2',
24
+ 'text' => __('Reddit this', 'wpsr'),
25
+ 'image' => WPSR_PUBLIC_URL . 'buttons/reddit-bt.gif',
26
+ 'params' => '',
27
+ );
28
+
29
+ $args = wp_parse_args($args, $defaults);
30
+ extract($args, EXTR_SKIP);
31
+
32
+ $reddit_processed = "\n<!-- Start WP Socializer Plugin - Reddit Button -->\n";
33
+
34
+ switch($output){
35
+ // Display the ordinary button
36
+ case 'button':
37
+ $reddit_processed .= '<script type="text/javascript">reddit_url = "' . $url . '";reddit_title = "' . $title . '";reddit_newwindow="1";</script><script type="text/javascript" src="http://www.reddit.com/static/button/button' . $type . '.js"></script>';
38
+ break;
39
+
40
+ // Display the Image format
41
+ case 'image':
42
+ $reddit_processed .= '<a href="http://www.reddit.com/submit?url=' . urlencode($url) . '&amp;title=' . urlencode($title) . '" ' . $params . '><img src="' . $image . '" alt="Submit to Reddit" /></a>';
43
+ break;
44
+
45
+ // Display the Text format
46
+ case 'text':
47
+ $reddit_processed .= '<a href="http://www.reddit.com/submit?url=' . urlencode($url) . '&amp;title=' . urlencode($title) . '" ' . $params . '>' . $text . '</a>';
48
+ break;
49
+ }
50
+
51
+ $reddit_processed .= "\n<!-- End WP Socializer Plugin - Reddit Button -->\n";
52
+
53
+ return $reddit_processed;
54
+ }
55
+
56
+ function wpsr_reddit_bt($type){
57
+
58
+ ## Start Output
59
+ $wpsr_reddit_bt_processed = wpsr_reddit(array(
60
+ 'output' => 'button',
61
+ 'type' => $type,
62
+ ));
63
+ ## End Output
64
+
65
+ return $wpsr_reddit_bt_processed;
66
+ }
67
+
68
+ function wpsr_reddit_rss_bt(){
69
+
70
+ ## Start Output
71
+ $wpsr_reddit_processed = wpsr_reddit(array(
72
+ 'output' => 'text',
73
+ 'params' => 'target="_blank"',
74
+ ));
75
+ ## End Output
76
+
77
+ return $wpsr_reddit_processed;
78
+ }
79
+
80
+ // StumbleUpon button
81
+ function wpsr_stumbleupon($args = ''){
82
+
83
+ global $post;
84
+
85
+ $details = wpsr_get_post_details();
86
+ $def_url = $details['permalink'];
87
+ $def_title = $details['title'];
88
+
89
+ $defaults = array (
90
+ 'output' => 'button',
91
+ 'url' => $def_url,
92
+ 'title' => $def_title,
93
+ 'type' => '1',
94
+ 'text' => __('Stumble this' ,'wpsr'),
95
+ 'image' => WPSR_PUBLIC_URL . 'buttons/stumbleupon-bt.gif',
96
+ 'params' => '',
97
+ );
98
+
99
+ $args = wp_parse_args($args, $defaults);
100
+ extract($args, EXTR_SKIP);
101
+
102
+ $reddit_processed = "\n<!-- Start WP Socializer Plugin - StumbleUpon Button -->\n";
103
+
104
+ switch($output){
105
+ // Display the ordinary button
106
+ case 'button':
107
+ $stumbleupon_processed .= '<script type="text/javascript" src="http://www.stumbleupon.com/hostedbadge.php?s=' . $type .'&r=' . $url . '"></script>';
108
+ break;
109
+
110
+ // Display the Image format
111
+ case 'image':
112
+ $stumbleupon_processed .= '<a href="http://www.stumbleupon.com/submit?url=' . urlencode($url) . '&title=' . urlencode($title) . '" ' . $params . '><img src="' . $image . '" alt="Submit to Stumbleupon" /></a>';
113
+ break;
114
+
115
+ // Display the Text format
116
+ case 'text':
117
+ $stumbleupon_processed .= '<a href="http://www.stumbleupon.com/submit?url=' . urlencode($url) . '&title=' . urlencode($title) . '" ' . $params . '>' . $text . '</a>';
118
+ break;
119
+ }
120
+
121
+ $stumbleupon_processed .= "\n<!-- End WP Socializer Plugin - StumbleUpon Button -->\n";
122
+
123
+ return $stumbleupon_processed;
124
+ }
125
+
126
+ function wpsr_stumbleupon_bt($type){
127
+
128
+ ## Start Output
129
+ $wpsr_stumbleupon_bt_processed = wpsr_stumbleupon(array(
130
+ 'output' => 'button',
131
+ 'type' => $type,
132
+ ));
133
+ ## End Output
134
+
135
+ return $wpsr_stumbleupon_bt_processed;
136
+ }
137
+
138
+ function wpsr_stumbleupon_rss_bt(){
139
+
140
+ ## Start Output
141
+ $wpsr_stumbleupon_processed = wpsr_stumbleupon(array(
142
+ 'output' => 'text',
143
+ 'params' => 'target="_blank"',
144
+ ));
145
+ ## End Output
146
+
147
+ return $wpsr_stumbleupon_processed;
148
+ }
149
+
150
+ ?>
includes/wpsr-retweet.php ADDED
@@ -0,0 +1,195 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Retweet buttons Processor code for WP Socializer Plugin
4
+ * Version : 2.0
5
+ * Author : Aakash Chakravarthy
6
+ */
7
+
8
+ function wpsr_retweet_topsy_script(){
9
+ // Return the script
10
+ return "\n<!-- WP Socializer - Topsy Script -->\n" .
11
+ '<script type="text/javascript" src="http://cdn.topsy.com/topsy.js?init=topsyWidgetCreator"></script>' .
12
+ "\n<!-- WP Socializer - End Topsy Script -->\n";
13
+ }
14
+
15
+ function wpsr_retweet_twitter_script(){
16
+ // Return the script
17
+ return "\n<!-- WP Socializer - Twitter Script -->\n" .
18
+ '<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>' .
19
+ "\n<!-- WP Socializer - End Twitter Script -->\n";
20
+ }
21
+
22
+ function wpsr_retweet_bt_used(){
23
+
24
+ ## Get template data
25
+ $wpsr_template1 = get_option('wpsr_template1_data');
26
+ $wpsr_template2 = get_option('wpsr_template2_data');
27
+
28
+ $wpsr_template1_content = $wpsr_template1['content'];
29
+ $wpsr_template2_content = $wpsr_template2['content'];
30
+ $is_retweetbt_used = strpos($wpsr_template1_content . $wpsr_template2_content, '{retweet-bt}');
31
+
32
+ if ($is_retweetbt_used === false) {
33
+ return 0;
34
+ } else {
35
+ return 1;
36
+ }
37
+ }
38
+
39
+ function wpsr_retweet($args = ''){
40
+ global $post;
41
+
42
+ $details = wpsr_get_post_details();
43
+ $def_url = $details['permalink'];
44
+ $def_title = $details['title'];
45
+
46
+ $defaults = array (
47
+ 'output' => 'button',
48
+ 'url' => $def_url,
49
+ 'title' => $def_title,
50
+ 'username' => '',
51
+ 'service' => 'twitter',
52
+ 'type' => 'compact',
53
+ 'topsytheme' => 'blue',
54
+ 'twitter_recacc' => '',
55
+ 'twitter_lang' => 'en',
56
+ 'text' => __('Retweet this' ,'wpsr'),
57
+ 'image' => WPSR_PUBLIC_URL . 'buttons/retweet-bt.png',
58
+ 'params' => '',
59
+ );
60
+
61
+ $args = wp_parse_args($args, $defaults);
62
+ extract($args, EXTR_SKIP);
63
+
64
+ $pid = $post->ID;
65
+ $purl = home_url() . '/?p=' . $pid;
66
+
67
+ ## Start Output
68
+ $retweet_processed = "\n<!-- Start WP Socializer Plugin - Retweet Button -->\n";
69
+
70
+ switch($output){
71
+ // Display the buttons
72
+ case 'button':
73
+ switch($service){
74
+ // Twitter button processing code
75
+ case 'twitter':
76
+
77
+ switch($type){
78
+ case 'normal': $type = 'vertical'; break;
79
+ case 'compact': $type = 'horizontal'; break;
80
+ case 'nocount': $type = 'none'; break;
81
+ }
82
+
83
+ $user = ($username == '') ? '' : "data-via='$username'";
84
+ $recacc = ($twitter_recacc == '') ? '' : "data-related='$twitter_recacc'";
85
+
86
+ $retweet_processed .=
87
+ '<a href="http://twitter.com/share" class="twitter-share-button" data-count="' . $type . '" ' . $user . ' data-lang="' . $twitter_lang . '" ' . $recacc . ' data-url="' . $url . '"></a>';
88
+
89
+ break;
90
+
91
+ // Tweetmeme processing code
92
+ case "tweetmeme" :
93
+
94
+ $retweet_processed .=
95
+ '<script type="text/javascript">' . "\n" . "<!--\n" .
96
+ 'tweetmeme_url = "' . $url . '"; ' .
97
+ 'tweetmeme_style = "' . $type . '"; ' .
98
+ 'tweetmeme_source = "' . $username . '"; ' . "\n" . "\n-->" .
99
+ '</script>' . "\n" .
100
+ '<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>';
101
+
102
+ break;
103
+
104
+ // Topsy processing code
105
+ case "topsy" :
106
+
107
+ if($type == 'normal'){
108
+ $type = "big";
109
+ }else{
110
+ $type = '';
111
+ }
112
+
113
+ $retweet_processed .=
114
+ '<div class="topsy_widget_data"><!--{' .
115
+ '"url": "' . $url . '", ' .
116
+ '"title": "'. $title . '", ' .
117
+ '"style": "'. $type . '", ' .
118
+ '"nick": "'. $username . '", ' .
119
+ '"theme": "'. $topsytheme . '", ' .
120
+ '}--></div>';
121
+
122
+ break;
123
+
124
+ // Retweet processing code
125
+ case "retweet" :
126
+
127
+ if($type == 'normal'){
128
+ $type = "";
129
+ }else{
130
+ $type = "size = 'small'; ";
131
+ }
132
+
133
+ $retweet_processed .=
134
+ '<script type="text/javascript">' . "\n" . "//<!--\n" .
135
+ "url = '" . $url . "';" .
136
+ "username = '" . $username . "';" .
137
+ $type . "\n//-->" .
138
+ '</script>' .
139
+ '<script type="text/javascript" src="http://www.retweet.com/static/retweets.js"></script>';
140
+
141
+ break;
142
+ }
143
+
144
+ break;
145
+
146
+ // Display the image format
147
+ case 'image':
148
+ $retweet_processed .= '<a href="http://twitter.com/?status=RT @' . $username . ' ' . $title .' ' . $purl .'" ' . $params . '><img src="' . $image . '" /></a>';
149
+ break;
150
+
151
+ // Display the text format
152
+ case 'text':
153
+ $retweet_processed .= '<a href="http://twitter.com/?status=RT @' . $username . ' ' . $title .' ' . $purl .'" ' . $params . '>' . $text . '</a>';
154
+ break;
155
+ }
156
+
157
+ $retweet_processed .= "\n<!-- End WP Socializer Plugin - Retweet Button -->\n";
158
+
159
+ return $retweet_processed;
160
+ }
161
+
162
+ function wpsr_retweet_bt(){
163
+
164
+ global $post;
165
+
166
+ # Get Retweet Button Options
167
+ $wpsr_retweet = get_option('wpsr_retweet_data');
168
+
169
+ ## Start Output
170
+ $wpsr_retweet_processed = wpsr_retweet(array(
171
+ 'output' => 'button',
172
+ 'type' => $wpsr_retweet['type'],
173
+ 'service' => $wpsr_retweet['service'],
174
+ 'username' => $wpsr_retweet['username'],
175
+ 'topsytheme' => $wpsr_retweet['topsytheme'],
176
+ 'twitter_recacc' => $wpsr_retweet['twitter_recacc'],
177
+ 'twitter_lang' => $wpsr_retweet['twitter_lang'],
178
+ ));
179
+ ## End Output
180
+
181
+ return $wpsr_retweet_processed;
182
+ }
183
+
184
+ function wpsr_retweet_rss_bt(){
185
+
186
+ ## Start Output
187
+ $wpsr_retweet_processed = wpsr_retweet(array(
188
+ 'output' => 'text',
189
+ 'params' => 'target="_blank"',
190
+ ));
191
+ ## End Output
192
+
193
+ return $wpsr_retweet_processed;
194
+ }
195
+ ?>
includes/wpsr-sharethis.php ADDED
@@ -0,0 +1,186 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Sharethis buttons Processor code for WP Socializer Plugin
4
+ * Version : 2.0
5
+ * Author : Aakash Chakravarthy
6
+ */
7
+
8
+ ## Generators
9
+ function wpsr_sharethis_pubkey(){
10
+ $key = "wp.".sprintf( '%04x%04x-%04x-%04x-%04x-%04x%04x%04x',mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ),mt_rand( 0, 0x0fff ) | 0x4000,mt_rand( 0, 0x3fff ) | 0x8000,mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ) );
11
+
12
+ ## Sharethis options
13
+ $wpsr_sharethis = get_option('wpsr_sharethis_data');
14
+
15
+ $wpsr_sharethis['pubkey'] = $key;
16
+ update_option("wpsr_sharethis_data", $wpsr_sharethis);
17
+
18
+ return $key;
19
+ }
20
+
21
+ function wpsr_sharethis_script(){
22
+ ## Sharethis options
23
+ $wpsr_sharethis = get_option('wpsr_sharethis_data');
24
+
25
+ $wpsr_sharethis_pubkey = $wpsr_sharethis['pubkey'];
26
+ $wpsr_sharethis_pubkey = ($wpsr_sharethis_pubkey == '') ? wpsr_sharethis_pubkey() : $wpsr_sharethis_pubkey;
27
+
28
+ // Return the script
29
+ return "\n<!-- WP Socializer - ShareThis Script -->\n" .
30
+ '<script charset="utf-8" type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script><script type="text/javascript">stLight.options({publisher:\'' . $wpsr_sharethis_pubkey . '\'});var st_type=\'wordpress\';</script>' .
31
+ "\n<!-- WP Socializer - End ShareThis Script -->\n";
32
+ }
33
+
34
+ function wpsr_sharethis_is_used(){
35
+ ## Get template data
36
+ $wpsr_template1 = get_option('wpsr_template1_data');
37
+ $wpsr_template2 = get_option('wpsr_template2_data');
38
+
39
+ $wpsr_template1_content = $wpsr_template1['content'] . $wpsr_template2['content'];
40
+ $is_sharethis_used = strpos_arr($wpsr_template1_content, array("{sharethis-large}", "{sharethis-hcount}", "{sharethis-vcount}", "{sharethis-regular}", "{sharethis-regular2}", "{sharethis-bt}", "{sharethis-classic}"));
41
+
42
+ if ($is_sharethis_used === false) {
43
+ return 0;
44
+ } else {
45
+ return 1;
46
+ }
47
+
48
+ }
49
+
50
+ function wpsr_sharethis($args = ''){
51
+ global $post;
52
+
53
+ $details = wpsr_get_post_details();
54
+ $def_url = $details['permalink'];
55
+ $def_title = $details['title'];
56
+
57
+ ## Sharethis option
58
+ $wpsr_sharethis = get_option('wpsr_sharethis_data');
59
+
60
+ $defaults = array (
61
+ 'output' => 'vcount',
62
+ 'url' => $def_url,
63
+ 'title' => $def_title,
64
+ 'services' => 'facebook,twitter,email,sharethis',
65
+ 'pubkey' => $wpsr_sharethis['pubkey'],
66
+ 'addp' => 1,
67
+ 'text' => 'ShareThis',
68
+ 'image' => WPSR_PUBLIC_URL . 'buttons/sharethis-bt.png',
69
+ 'params' => '',
70
+ );
71
+
72
+ $args = wp_parse_args($args, $defaults);
73
+ extract($args, EXTR_SKIP);
74
+
75
+ // Preliminary Adjustments
76
+ if($services == ''){
77
+ $output = 'classic';
78
+ }else{
79
+ $services_split = explode(',', $services);
80
+ }
81
+
82
+ $title = urlencode($title);
83
+ $url = urlencode($url);
84
+
85
+ if($addp == 1){
86
+ $before_st = '<p>';
87
+ $after_st = '</p>';
88
+ }else{
89
+ $before_st = $after_st = '';
90
+ }
91
+
92
+ $sharethis_processed = "\n<!-- Start WP Socializer Plugin - Sharethis Button -->\n" . $before_st;
93
+ switch($output){
94
+ case 'vcount':
95
+ foreach($services_split as $srvc){
96
+ $srvc = trim($srvc);
97
+ $sharethis_processed .= "<span class='st_{$srvc}_vcount' st_title='{$title}' st_url='{$url}' displayText='share'></span>";
98
+ }
99
+ break;
100
+
101
+ case 'hcount':
102
+ foreach($services_split as $srvc){
103
+ $srvc = trim($srvc);
104
+ $sharethis_processed .= "<span class='st_{$srvc}_hcount' st_title='{$title}' st_url='{$url}' displayText='share'></span>";
105
+ }
106
+ break;
107
+
108
+ case 'buttons':
109
+ foreach($services_split as $srvc){
110
+ $srvc = trim($srvc);
111
+ $sharethis_processed .= "<span class='st_{$srvc}_buttons' st_title='{$title}' st_url='{$url}' displayText='share'></span>";
112
+ }
113
+ break;
114
+
115
+ case 'large':
116
+ foreach($services_split as $srvc){
117
+ $srvc = trim($srvc);
118
+ $sharethis_processed .= "<span class='st_{$srvc}_large' st_title='{$title}' st_url='{$url}' displayText='share'></span>";
119
+ }
120
+ break;
121
+
122
+ case 'regular':
123
+ foreach($services_split as $srvc){
124
+ $srvc = trim($srvc);
125
+ $sharethis_processed .= "<span class='st_{$srvc}' st_title='{$title}' st_url='{$url}' displayText='share'></span>";
126
+ }
127
+ break;
128
+
129
+ case 'regular2':
130
+ foreach($services_split as $srvc){
131
+ $srvc = trim($srvc);
132
+ $sharethis_processed .= "<span class='st_{$srvc}' st_title='{$title}' st_url='{$url}'></span>";
133
+ }
134
+ break;
135
+
136
+ case 'classic':
137
+ $sharethis_processed .= "<span class='st_sharethis' st_title='{$title}' st_url='{$url}' displayText='ShareThis'></span>";
138
+ break;
139
+
140
+ case 'image':
141
+ $sharethis_processed .= '<a href="http://sharethis.com/item?publisher='
142
+ . $pubkey . '&amp;title='
143
+ . $title . '&amp;url='
144
+ . $url . '" ' . $params . '><img src="' . $image . '" /></a>';
145
+ break;
146
+
147
+ case 'text':
148
+ $sharethis_processed .= '<a href="http://sharethis.com/item?publisher='
149
+ . $pubkey . '&amp;title='
150
+ . $title . '&amp;url='
151
+ . $url . '" ' . $params . '>' . $text . '</a>';
152
+ break;
153
+ }
154
+ $sharethis_processed .= $after_st . "\n<!-- End WP Socializer Plugin - Sharethis Button -->\n";
155
+
156
+ return $sharethis_processed;
157
+ }
158
+
159
+ function wpsr_sharethis_bt($type){
160
+
161
+ ## Sharethis options
162
+ $wpsr_sharethis = get_option('wpsr_sharethis_data');
163
+
164
+ ## Start Output
165
+ $wpsr_sharethis_processed = wpsr_sharethis(array(
166
+ 'output' => $type,
167
+ 'services' => $wpsr_sharethis[$type . '_order'],
168
+ 'addp' => $wpsr_sharethis_addp,
169
+ ));
170
+ ## End Output
171
+
172
+ return $wpsr_sharethis_processed;
173
+ }
174
+
175
+ function wpsr_sharethis_rss_bt(){
176
+
177
+ ## Start Output
178
+ $wpsr_sharethis_processed = wpsr_sharethis(array(
179
+ 'output' => 'text',
180
+ ));
181
+ ## End Output
182
+
183
+ return $wpsr_sharethis_processed;
184
+ }
185
+
186
+ ?>
includes/wpsr-shortcodes.php ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Shortcodes for WP Socializer plugin
4
+ * Version : 1.0
5
+ * Author : Aakash Chakravarthy
6
+ * Since : 2.0
7
+ */
8
+
9
+ ## Social buttons Shortcode
10
+ function wpsr_socialbts_shortcode($atts){
11
+ return wpsr_socialbts($atts);
12
+ }
13
+ add_shortcode('wpsr_socialbts', 'wpsr_socialbts_shortcode');
14
+
15
+ ## Addthis button Shortcode
16
+ function wpsr_addthis_shortcode($atts){
17
+ return wpsr_addthis($atts) . wpsr_addthis_script();
18
+ }
19
+ add_shortcode('wpsr_addthis', 'wpsr_addthis_shortcode');
20
+
21
+ ## Sharethis button Shortcode
22
+ function wpsr_sharethis_shortcode($atts){
23
+ return wpsr_sharethis($atts) . wpsr_sharethis_script();
24
+ }
25
+ add_shortcode('wpsr_sharethis', 'wpsr_sharethis_shortcode');
26
+
27
+ ## Retweet button Shortcode
28
+ function wpsr_retweet_shortcode($atts){
29
+ if($atts['service'] == 'twitter' || $atts['service'] == ''){
30
+ $script = wpsr_retweet_twitter_script();
31
+ }elseif($atts['service'] == 'topsy'){
32
+ $script = wpsr_retweet_topsy_script();
33
+ }elseif($atts['service'] == 'tweetmeme' || $atts['service'] == 'retweet'){
34
+ $script = '';
35
+ }
36
+
37
+ return wpsr_retweet($atts) . $script;
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
+
47
+ ## Google Plusone button Shortcode
48
+ function wpsr_plusone_shortcode($atts){
49
+ return wpsr_plusone($atts) . wpsr_plusone_script();
50
+ }
51
+ add_shortcode('wpsr_plusone', 'wpsr_plusone_shortcode');
52
+
53
+ ## Digg button Shortcode
54
+ function wpsr_digg_shortcode($atts){
55
+ return wpsr_digg($atts) . wpsr_digg_script();
56
+ }
57
+ add_shortcode('wpsr_digg', 'wpsr_digg_shortcode');
58
+
59
+ ## Facebook Shortcode
60
+ function wpsr_facebook_shortcode($atts){
61
+ return wpsr_facebook($atts);
62
+ }
63
+ add_shortcode('wpsr_facebook', 'wpsr_facebook_shortcode');
64
+
65
+ ## StumbleUpon Shortcode
66
+ function wpsr_stumbleupon_shortcode($atts){
67
+ return wpsr_stumbleupon($atts);
68
+ }
69
+ add_shortcode('wpsr_stumbleupon', 'wpsr_stumbleupon_shortcode');
70
+
71
+ ## Reddit Shortcode
72
+ function wpsr_reddit_shortcode($atts){
73
+ return wpsr_reddit($atts);
74
+ }
75
+ add_shortcode('wpsr_reddit', 'wpsr_reddit_shortcode');
76
+
77
+ ?>
includes/wpsr-socialbuttons.php ADDED
@@ -0,0 +1,455 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Social buttons Processor code for WP Socializer Plugin
4
+ * Version : 4.3
5
+ * Author : Aakash Chakravarthy
6
+ */
7
+
8
+ function wpsr_socialbts_script(){
9
+ echo "\n<!-- Start WP Socializer | Social Buttons CSS File -->\n";
10
+ echo '<link rel="stylesheet" type="text/css" media="all" href="' . WPSR_PUBLIC_URL . 'css/wp-socializer-buttons-css.css" />';
11
+ echo "\n<!-- End WP Socializer | Social Buttons CSS File -->\n";
12
+ }
13
+
14
+ function wpsr_addtofavorites_script(){
15
+ echo "\n<!-- Start WP Socializer | Bookmark File -->\n";
16
+ echo '<script type="text/javascript" src="' . WPSR_PUBLIC_URL . 'js/wp-socializer-bookmark-js.js"></script>';
17
+ echo "\n<!-- End WP Socializer | Bookmark CSS File -->\n";
18
+ }
19
+
20
+ function wpsr_socialbts_used($type){
21
+ ## Get template data
22
+ $wpsr_template1 = get_option('wpsr_template1_data');
23
+ $wpsr_template2 = get_option('wpsr_template2_data');
24
+
25
+ $wpsr_template_content = $wpsr_template1['content'] . $wpsr_template2['content'];
26
+
27
+ $is_socialbts_used_16px = strpos($wpsr_template_content, '{social-bts-16px}');
28
+ $is_socialbts_used_32px = strpos($wpsr_template_content, '{social-bts-32px}');
29
+
30
+ switch($type){
31
+ case '16px' :
32
+ if ($is_socialbts_used_16px === false) {
33
+ return 0;
34
+ } else {
35
+ return 1;
36
+ }
37
+ break;
38
+
39
+ case '32px' :
40
+ if ($is_socialbts_used_32px === false) {
41
+ return 0;
42
+ } else {
43
+ return 1;
44
+ }
45
+ break;
46
+ }
47
+ }
48
+
49
+ function wpsr_addtofavorites_bt_used(){
50
+ ## Get Social Button options
51
+ $wpsr_socialbt = get_option('wpsr_socialbt_data');
52
+
53
+ $in_selected_16px = in_array("addtofavorites", explode(',', $wpsr_socialbt['selected16px']));
54
+ $in_selected_32px = in_array("addtofavorites", explode(',', $wpsr_socialbt['selected32px']));
55
+
56
+ if (wpsr_socialbts_used('16px') && $in_selected_16px) {
57
+ return 1;
58
+ } elseif (wpsr_socialbts_used('32px') && $in_selected_32px){
59
+ return 1;
60
+ }
61
+
62
+ }
63
+
64
+ function get_sprite_coord($to_find_Key = '', $in_Array = '', $px = '16px'){
65
+ $pixel = ($px == '16px') ? 16 : 32;
66
+
67
+ $index = 0;
68
+ $pixel = $pixel + 1;
69
+
70
+ switch ($pixel){
71
+ case '17' :
72
+ // Start the counter
73
+ foreach ($in_Array as $key => $value) {
74
+ if($key == $to_find_Key){
75
+ return $index * $pixel ;
76
+ }
77
+ $index++;
78
+ }
79
+
80
+ break;
81
+
82
+ case '33':
83
+ // Start the counter
84
+ foreach ($in_Array as $key => $value) {
85
+ if(isset($value['support32px'])){
86
+ if($key == $to_find_Key){
87
+ return $index * $pixel ;
88
+ }
89
+ $index++;
90
+ }
91
+ }
92
+ break;
93
+ } // End switch
94
+
95
+ }
96
+
97
+ function wpsr_get_shorturl($url){
98
+ global $post;
99
+ ## Get the settings
100
+ $wpsr_settings = get_option('wpsr_settings_data');
101
+
102
+ $username = $wpsr_settings['bitlyusername'];
103
+ $apikey = $wpsr_settings['bitlyapi'];
104
+
105
+ if(empty($username) || empty($apikey)){
106
+ if(in_the_loop()){
107
+ return urlencode(get_bloginfo('url') . '?p=' . $post->ID);
108
+ }else{
109
+ return urlencode($url);
110
+ }
111
+ }else{
112
+ $url = 'http://api.bit.ly/v3/shorten?login=' . $username . '&apiKey=' . $apikey . '&uri=' . urlencode($url) . '&format=' . $format;
113
+ $ch = curl_init();
114
+ $timeout = 5;
115
+ curl_setopt($ch,CURLOPT_URL,$url);
116
+ curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
117
+ curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
118
+ $data = curl_exec($ch);
119
+ curl_close($ch);
120
+ return $data;
121
+ }
122
+ }
123
+
124
+ function wpsr_socialbts_processlist($args = ''){
125
+
126
+ global $post, $wpsr_socialsites_list;
127
+
128
+ $defaults = array(
129
+ 'pUrl' => '',
130
+ 'pTitle' => '',
131
+ 'pExcerpt' => '',
132
+ 'services' => '',
133
+ 'btType' => '',
134
+ 'pixel' => '16px',
135
+ 'before' => "\n <li>",
136
+ 'after' => "</li> \n",
137
+ 'textBefore' => '&bull; ',
138
+ 'textAfter' => '',
139
+ 'sprites' => 1,
140
+ 'label' => 1,
141
+ 'target' => 1,
142
+ 'imgpath' => '',
143
+ 'params' => '',
144
+ );
145
+
146
+ $args = wp_parse_args($args, $defaults);
147
+ extract($args, EXTR_SKIP);
148
+
149
+ ## Get retweet options and settings for Twitter Username and RSS URL
150
+ $wpsr_retweet = get_option('wpsr_retweet_data');
151
+ $wpsr_settings = get_option('wpsr_settings_data');
152
+
153
+ ## Get Page details
154
+ $details = wpsr_get_post_details();
155
+ $url = urlencode($pUrl);
156
+ $deUrl = $pUrl;
157
+
158
+ $title = urlencode(trim($pTitle));
159
+ $deTitle = trim($pTitle);
160
+
161
+ $excerpt = trim(urlencode($pExcerpt));
162
+ $deExcerpt = $pExcerpt;
163
+
164
+ $rss = (empty($wpsr_settings['rssurl'])) ? get_bloginfo('rss_url') : $wpsr_settings['rssurl'];
165
+ $blogname = urlencode(get_bloginfo('name') . ' - ' . get_bloginfo('description'));
166
+ $email = get_bloginfo('admin_email');
167
+ $trUsername = (empty($wpsr_retweet['username'])) ? '' : '@' . $wpsr_retweet['username'];
168
+ $sUrl = wpsr_get_shorturl($deUrl);
169
+
170
+ $replace_with = array(
171
+ $url, $title, $rss,
172
+ $blogname, $excerpt, $deUrl,
173
+ $deTitle, $deExcerpt, $email,
174
+ $trUsername, $sUrl,
175
+ );
176
+
177
+ $to_be_replaced = array(
178
+ '{url}', '{title}', '{rss-url}',
179
+ '{blogname}', '{excerpt}', '{de-url}',
180
+ '{de-title}', '{de-excerpt}', '{email}',
181
+ '{twitter-username}', '{s-url}',
182
+ );
183
+
184
+ $srvcsSplit = explode(',', $services);
185
+ $spriteImage = WPSR_SOCIALBT_IMGPATH . "wp-socializer-sprite-$pixel.png";
186
+ $spriteMaskImage = WPSR_SOCIALBT_IMGPATH . "wp-socializer-sprite-mask-$pixel.gif";
187
+
188
+ for($i = 0; $i < count($srvcsSplit); $i++){
189
+ $sitename = $srvcsSplit[$i];
190
+ $finalTitle = $sitename;
191
+ $finalName = $wpsr_socialsites_list[$sitename]['name'];
192
+ $finalTitle = trim(str_replace($to_be_replaced, $replace_with, $wpsr_socialsites_list[$sitename]['titleText']));
193
+ $finalUrl = str_replace($to_be_replaced, $replace_with, $wpsr_socialsites_list[$sitename]['url']);
194
+ $finalIcon = $imgpath . $wpsr_socialsites_list[$sitename]['icon'];
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
+
201
+ // Checking the output type
202
+ if($btType != 'text'){
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
+ }
210
+
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
+
230
+ $socialbts_list .= $after;
231
+ }
232
+
233
+ return $socialbts_list;
234
+ }
235
+
236
+ function wpsr_socialbts($args = ''){
237
+ global $post;
238
+
239
+ $details = wpsr_get_post_details();
240
+ $def_url = $details['permalink'];
241
+ $def_title = $details['title'];
242
+ $def_excerpt = $details['excerpt'];
243
+
244
+ $defaults = array(
245
+ 'output' => 'image',
246
+ 'url' => $def_url,
247
+ 'title' => $def_title,
248
+ 'excerpt' => $def_excerpt,
249
+ 'type' => '16px',
250
+ 'target' => 1,
251
+ 'effect' => 'opacity',
252
+ 'label' => 0,
253
+ 'columns' => 'no',
254
+ 'services' => 'facebook,twitter,delicious,digg,googlebuzz,stumbleupon,addtofavorites,email',
255
+ 'sprites' => 1,
256
+ 'imgpath16px' => WPSR_SOCIALBT_IMGPATH . '16/',
257
+ 'imgpath32px' => WPSR_SOCIALBT_IMGPATH . '32/',
258
+ 'before' => '',
259
+ 'after' => '',
260
+ 'params' => '',
261
+ );
262
+
263
+ $args = wp_parse_args($args, $defaults);
264
+ extract($args, EXTR_SKIP);
265
+
266
+ if($output != 'singles'){
267
+ $socialbt_processed = "\n<!-- Start WP Socializer - Social Buttons - Output -->\n";
268
+ }
269
+
270
+ switch($output){
271
+ // Output the ordinary buttons
272
+ case 'image':
273
+
274
+ $socialbt_processed .= '<div class="wp-socializer ' . $type . '">' . "\n" ;
275
+ $socialbt_processed .= '<ul class="wp-socializer-' . $effect . ' columns-' . $columns . '">';
276
+
277
+ switch($type){
278
+ case '16px':
279
+ $socialbt_processed .= wpsr_socialbts_processlist(array(
280
+ 'pUrl' => $url,
281
+ 'pTitle' => $title,
282
+ 'pExcerpt' => $excerpt,
283
+ 'btType' => 'image',
284
+ 'pixel' => '16px',
285
+ 'services' => $services,
286
+ 'sprites' => $sprites,
287
+ 'label' => $label,
288
+ 'target' => $target,
289
+ 'imgpath' => $imgpath16px,
290
+ ));
291
+ break;
292
+
293
+ case '32px':
294
+ $socialbt_processed .= wpsr_socialbts_processlist(array(
295
+ 'pUrl' => $url,
296
+ 'pTitle' => $title,
297
+ 'pExcerpt' => $excerpt,
298
+ 'btType' => 'image',
299
+ 'pixel' => '32px',
300
+ 'services' => $services,
301
+ 'sprites' => $sprites,
302
+ 'label' => $label,
303
+ 'target' => $target,
304
+ 'imgpath' => $imgpath32px,
305
+ ));
306
+ break;
307
+ }
308
+
309
+ $socialbt_processed .= "</ul> \n";
310
+ $socialbt_processed .= '<div class="wp-socializer-clearer"></div>';
311
+ $socialbt_processed .= '</div>';
312
+
313
+ break;
314
+
315
+ case 'singles':
316
+ switch($type){
317
+ case '16px':
318
+ $socialbt_processed .= wpsr_socialbts_processlist(array(
319
+ 'pUrl' => $url,
320
+ 'pTitle' => $title,
321
+ 'pExcerpt' => $excerpt,
322
+ 'btType' => 'image',
323
+ 'pixel' => '16px',
324
+ 'services' => $services,
325
+ 'sprites' => $sprites,
326
+ 'label' => $label,
327
+ 'target' => $target,
328
+ 'imgpath' => $imgpath16px,
329
+ 'after' => '',
330
+ 'before' => '',
331
+ 'params' => 'class="wp-socializer-single"',
332
+ ));
333
+ break;
334
+
335
+ case '32px':
336
+ $socialbt_processed .= wpsr_socialbts_processlist(array(
337
+ 'pUrl' => $url,
338
+ 'pTitle' => $title,
339
+ 'pExcerpt' => $excerpt,
340
+ 'btType' => 'image',
341
+ 'pixel' => '32px',
342
+ 'services' => $services,
343
+ 'sprites' => $sprites,
344
+ 'label' => $label,
345
+ 'target' => $target,
346
+ 'imgpath' => $imgpath32px,
347
+ 'after' => '',
348
+ 'before' => '',
349
+ 'params' => 'class="wp-socializer-single"',
350
+ ));
351
+ break;
352
+
353
+ case 'text':
354
+ $socialbt_processed .= wpsr_socialbts_processlist(array(
355
+ 'pUrl' => $url,
356
+ 'pTitle' => $title,
357
+ 'pExcerpt' => $excerpt,
358
+ 'btType' => 'text',
359
+ 'services' => $services,
360
+ 'sprites' => $sprites,
361
+ 'label' => $label,
362
+ 'target' => $target,
363
+ 'after' => $after,
364
+ 'before' => $before,
365
+ 'textBefore' => '',
366
+ 'textAfter' => ' ',
367
+ 'params' => 'class="wp-socializer-single-text"',
368
+ ));
369
+ break;
370
+ }
371
+ break;
372
+
373
+ // Output the text links
374
+ case 'text':
375
+
376
+ $socialbt_processed .= '<div class="wp-socializer text">' . "\n" ;
377
+ $socialbt_processed .= '<ul class="wp-socializer-' . $effect . ' columns-' . $columns . '">';
378
+
379
+ $socialbt_processed .= wpsr_socialbts_processlist(array(
380
+ 'pUrl' => $url,
381
+ 'pTitle' => $title,
382
+ 'pExcerpt' => $excerpt,
383
+ 'btType' => 'text',
384
+ 'services' => $services,
385
+ 'textBefore' => '&bull; ',
386
+ 'textAfter' => ' ',
387
+ ));
388
+
389
+ $socialbt_processed .= "</ul> \n";
390
+ $socialbt_processed .= '<div class="wp-socializer-clearer"></div>';
391
+ $socialbt_processed .= '</div>';
392
+
393
+ break;
394
+
395
+ case 'rss':
396
+ $socialbt_processed .= wpsr_socialbts_processlist(array(
397
+ 'pUrl' => $url,
398
+ 'pTitle' => $title,
399
+ 'pExcerpt' => $excerpt,
400
+ 'btType' => 'text',
401
+ 'services' => $services,
402
+ 'textBefore' => ' &bull; ',
403
+ 'textAfter' => '',
404
+ 'before' => $before,
405
+ 'after' => $after,
406
+ ));
407
+ break;
408
+ }
409
+
410
+ if($output != 'singles'){
411
+ $socialbt_processed .= "\n<!-- End WP Socializer - Social Buttons - Output -->\n";
412
+ }
413
+
414
+ return $socialbt_processed;
415
+ }
416
+
417
+ function wpsr_socialbts_template($type){
418
+
419
+ ## Get Social Button options
420
+ $wpsr_socialbt = get_option('wpsr_socialbt_data');
421
+
422
+ $wpsr_socialbt_imgpath16px = ($wpsr_socialbt['imgpath16px'] != '') ? $wpsr_socialbt['imgpath16px'] : WPSR_SOCIALBT_IMGPATH . '16/';
423
+ $wpsr_socialbt_imgpath32px = ($wpsr_socialbt['imgpath32px'] != '') ? $wpsr_socialbt['imgpath32px'] : WPSR_SOCIALBT_IMGPATH . '32/';
424
+
425
+ $wpsr_socialbt_processed = wpsr_socialbts(array(
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'],
432
+ 'services' => $wpsr_socialbt['selected' . $type],
433
+ 'sprites' => $wpsr_socialbt['usesprites'],
434
+ 'imgpath16px' => $wpsr_socialbt_imgpath16px,
435
+ 'imgpath32px' => $wpsr_socialbt_imgpath32px,
436
+ ));
437
+
438
+ return $wpsr_socialbt_processed;
439
+ }
440
+
441
+ function wpsr_socialbts_rss($type){
442
+
443
+ ## Get Social Button options
444
+ $wpsr_socialbt = get_option('wpsr_socialbt_data');
445
+
446
+ $wpsr_socialbt_processed = wpsr_socialbts(array(
447
+ 'output' => 'rss',
448
+ 'target' => $wpsr_socialbt['target'],
449
+ 'services' => $wpsr_socialbt['selected' . $type],
450
+ ));
451
+
452
+ return $wpsr_socialbt_processed;
453
+ }
454
+
455
+ ?>
languages/wpsr-es_ES.mo CHANGED
Binary file
languages/wpsr-es_ES.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP Socializer\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2010-07-31 12:44+0530\n"
6
- "PO-Revision-Date: 2010-07-31 12:45+0530\n"
7
  "Last-Translator: Aakash Chakravarthy <aakash.19493@gmail.com>\n"
8
  "Language-Team: Aakash Chakravarthy\n"
9
  "MIME-Version: 1.0\n"
@@ -13,566 +13,1014 @@ msgstr ""
13
  "X-Poedit-Basepath: .\n"
14
  "X-Poedit-SearchPath-0: ..\n"
15
 
16
- #: ../adm-sidebar.php:10
17
- msgid "Donate and support this plugin's future"
18
- msgstr "Dona y apoyar este plugin futuro"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
- #: ../adm-sidebar.php:14
21
- msgid "Plugin Support"
 
 
 
22
  msgstr "Plugin de Apoyo"
23
 
24
- #: ../adm-sidebar.php:18
25
- msgid "Plugin Documentation"
26
- msgstr "Plugin de Documentación"
27
 
28
- #: ../adm-sidebar.php:22
29
- msgid "Bugs Report"
30
- msgstr "Avisa de un error"
31
 
32
- #: ../adm-sidebar.php:26
33
- msgid "FAQ's"
34
- msgstr "Preguntas frecuentes"
 
35
 
36
- #: ../adm-sidebar.php:30
37
- msgid "Request a feature"
38
- msgstr "Solicitar una característica"
39
 
40
- #: ../adm-sidebar.php:34
41
- msgid "Author Website"
42
- msgstr "Autor Web"
43
 
44
- #: ../adm-sidebar.php:38
45
- msgid "Support this plugin"
46
- msgstr "Apoya a este plugin"
47
 
48
- #: ../adm-sidebar.php:42
49
- msgid "Follow the author"
50
- msgstr "Siga el autor"
51
 
52
- #: ../adm-sidebar.php:46
53
- msgid "Subscribe to Updates"
54
- msgstr "Suscribirse a las actualizaciones"
 
55
 
56
- #: ../adm-sidebar.php:50
57
- msgid "Promote this plugin"
58
- msgstr "Promover este plugin"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
 
60
- #: ../adm-sidebar.php:55
61
- msgid "More plugins"
62
- msgstr "Más plugins"
63
 
64
- #: ../adm-sidebar.php:85
65
- msgid "Reference"
66
- msgstr "Referencia"
67
 
68
- #: ../adm-sidebar.php:88
69
- msgid "Template Functions"
70
- msgstr "Funciones de Template"
71
 
72
- #: ../socializer-admin.php:170
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  msgid "Updated successfully"
74
  msgstr "Actualizado el éxito"
75
 
76
- #: ../socializer-admin.php:288
 
 
 
 
 
 
 
 
77
  msgid "Disabled"
78
  msgstr "Discapacitado"
79
 
80
- #: ../socializer-admin.php:319
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  msgid "Social Buttons"
82
  msgstr "Social botones"
83
 
84
- #: ../socializer-admin.php:322
85
  msgid "Click the icon size to select and \"x\" button to remove selected. Click and drag to reorder selected sites"
86
  msgstr "Haga clic en el tamaño de los iconos para seleccionar y \"x \" para eliminar seleccionado. Haga clic y arrastre para reordenar los sitios seleccionados"
87
 
88
- #: ../socializer-admin.php:325
89
  msgid "Available buttons"
90
  msgstr "Botones disponibles"
91
 
92
- #: ../socializer-admin.php:353
93
- #: ../socializer-admin.php:368
 
 
 
 
 
 
 
 
94
  msgid "Selected buttons"
95
  msgstr "botones seleccionados"
96
 
97
- #: ../socializer-admin.php:386
98
- msgid "Settings"
99
- msgstr "Configuración"
100
-
101
- #: ../socializer-admin.php:390
102
  msgid "Open links in new tab/window"
103
  msgstr "Abrir enlaces en una nueva pestaña o ventana"
104
 
105
- #: ../socializer-admin.php:392
106
- #: ../socializer-admin.php:400
107
- #: ../socializer-admin.php:415
108
- #: ../socializer-admin.php:443
109
- #: ../socializer-admin.php:646
110
- #: ../socializer-admin.php:698
111
- #: ../socializer-admin.php:844
 
 
112
  msgid "Yes"
113
  msgstr "Sí"
114
 
115
- #: ../socializer-admin.php:393
116
- #: ../socializer-admin.php:401
117
- #: ../socializer-admin.php:416
118
- #: ../socializer-admin.php:444
119
- #: ../socializer-admin.php:647
120
- #: ../socializer-admin.php:699
121
- #: ../socializer-admin.php:843
 
 
122
  msgid "No"
123
  msgstr "En"
124
 
125
- #: ../socializer-admin.php:397
126
- msgid "Load WP Socializer CSS"
127
- msgstr "Carga WP Socializer CSS"
128
-
129
- #: ../socializer-admin.php:398
130
- msgid "Note: hover effects &amp; column will not be available"
131
- msgstr "Nota: los efectos Hover y la columna no estará disponible"
132
-
133
- #: ../socializer-admin.php:405
134
  msgid "Image on Hover effect"
135
  msgstr "La imagen en efecto Hover"
136
 
137
- #: ../socializer-admin.php:409
138
  msgid "No Effect"
139
  msgstr "Sin efecto"
140
 
141
- #: ../socializer-admin.php:413
142
  msgid "Show Label for buttons"
143
  msgstr "Mostrar la etiqueta de los botones"
144
 
145
- #: ../socializer-admin.php:420
146
  msgid "Show Icons in"
147
  msgstr "Show Icons in"
148
 
149
- #: ../socializer-admin.php:421
150
  msgid "Very very effective when labels are enabled (try it)"
151
  msgstr "Muy muy eficaz cuando las etiquetas están permitidas (probarlo)"
152
 
153
- #: ../socializer-admin.php:431
154
  msgid "Image folder"
155
  msgstr "Imagen carpeta"
156
 
157
- #: ../socializer-admin.php:432
158
- #: ../socializer-admin.php:497
159
- #: ../socializer-admin.php:500
 
160
  msgid "Leave blank to use default"
161
  msgstr "Deja en blanco para usar por defecto"
162
 
163
- #: ../socializer-admin.php:441
164
  msgid "Use Sprites"
165
  msgstr "Utilice Sprites"
166
 
167
- #: ../socializer-admin.php:450
168
- #, php-format
169
- msgid "For using the 16px buttons, use the code %s in the placement template"
170
- msgstr "Para emplear el 16px botones, utilice el código %s en la colocación de plantilla"
171
 
172
- #: ../socializer-admin.php:451
173
- #, php-format
174
- msgid "For using the 32px buttons, use the code %s in the placement template"
175
- msgstr "Para emplear el 32px botones, utilice el código %s en la colocación de plantilla"
 
176
 
177
- #: ../socializer-admin.php:456
178
- #: ../socializer-admin.php:568
179
- msgid "General"
180
- msgstr "General"
181
 
182
- #: ../socializer-admin.php:460
183
  msgid "Add This Username"
184
  msgstr "Añadir este usuario"
185
 
186
- #: ../socializer-admin.php:461
187
  msgid "If available"
188
  msgstr "Si está disponible"
189
 
190
- #: ../socializer-admin.php:462
191
- #: ../socializer-admin.php:539
 
192
  msgid "Language"
193
  msgstr "Idioma"
194
 
195
- #: ../socializer-admin.php:468
196
- msgid "Choose the Bookmarking or sharing button"
197
- msgstr "Seleccione el botón de marcadores o compartir"
198
-
199
- #: ../socializer-admin.php:491
200
- msgid "Optional button Settings"
201
- msgstr "Opcional en el botón Configuración"
202
-
203
- #: ../socializer-admin.php:496
204
  msgid "Brand Name"
205
  msgstr "Marca Nombre"
206
 
207
- #: ../socializer-admin.php:499
208
- msgid "Custom services"
209
- msgstr "Estos servicios especiales"
210
-
211
- #: ../socializer-admin.php:500
212
- msgid "comma-seperated"
213
- msgstr "coma seperated"
214
 
215
- #: ../socializer-admin.php:504
216
  msgid "Header Color"
217
  msgstr "Encabezado Color"
218
 
219
- #: ../socializer-admin.php:506
220
  msgid "Header Background"
221
  msgstr "Encabezado Antecedentes"
222
 
223
- #: ../socializer-admin.php:512
224
- #: ../socializer-admin.php:545
225
- #: ../socializer-admin.php:562
226
- #: ../socializer-admin.php:612
227
- #: ../socializer-admin.php:628
228
- #: ../socializer-admin.php:682
229
- #: ../socializer-admin.php:710
230
- #, php-format
231
- msgid "For using this button, use the code %s in the placement template"
232
- msgstr "Para usar este botón, utilice el código %s en la colocación de plantilla"
 
 
 
 
 
 
 
 
 
 
 
 
233
 
234
- #: ../socializer-admin.php:518
235
  msgid "Post to Buzz button"
236
  msgstr "Poste en el botón Buzz"
237
 
238
- #: ../socializer-admin.php:523
239
- #: ../socializer-admin.php:689
240
  msgid "Style"
241
  msgstr "Estilo"
242
 
243
- #: ../socializer-admin.php:525
244
  msgid "Show Button and counter"
245
  msgstr "Mostrar botón y la lucha contra"
246
 
247
- #: ../socializer-admin.php:526
248
  msgid "Show Button only"
249
  msgstr "Mostrar sólo botón"
250
 
251
- #: ../socializer-admin.php:527
252
  msgid "Show Link only"
253
  msgstr "Mostrar Vincular sólo"
254
 
255
- #: ../socializer-admin.php:533
256
  msgid "Size"
257
  msgstr "Tamaño"
258
 
259
- #: ../socializer-admin.php:533
260
- #: ../socializer-admin.php:696
261
  msgid "Not for link"
262
  msgstr "No para el enlace"
263
 
264
- #: ../socializer-admin.php:534
265
  msgid "Normal"
266
  msgstr "Normal"
267
 
268
- #: ../socializer-admin.php:536
269
  msgid "Small"
270
  msgstr "Pequeño"
271
 
272
- #: ../socializer-admin.php:547
273
  msgid "Follow on Buzz button"
274
  msgstr "Siga las Buz Buton"
275
 
276
- #: ../socializer-admin.php:552
277
  msgid "Profile URL"
278
  msgstr "Perfil URL"
279
 
280
- #: ../socializer-admin.php:553
281
  msgid "Don't know your profile URL?"
282
  msgstr "No sabe la URL del perfil?"
283
 
284
- #: ../socializer-admin.php:553
285
- msgid "Click here"
286
- msgstr "Haga clic aquí"
287
-
288
- #: ../socializer-admin.php:556
289
  msgid "Button Text"
290
  msgstr "Botón de Texto"
291
 
292
- #: ../socializer-admin.php:573
 
 
 
 
293
  msgid "Twitter Username"
294
  msgstr "Twitter Nombre de usuario"
295
 
296
- #: ../socializer-admin.php:577
297
  msgid "Retweet Button Type"
298
  msgstr "Retweet botón Tipo"
299
 
300
- #: ../socializer-admin.php:579
301
  msgid "Normal (Big)"
302
  msgstr "Normal (grande)"
303
 
304
- #: ../socializer-admin.php:580
305
- #: ../socializer-admin.php:622
306
  msgid "Compact"
307
  msgstr "Compacto"
308
 
309
- #: ../socializer-admin.php:586
 
 
 
 
310
  msgid "Choose a service"
311
  msgstr "Elija un servicio"
312
 
313
- #: ../socializer-admin.php:591
314
  msgid "Retweet Service"
315
  msgstr "Retweet Servicio"
316
 
317
- #: ../socializer-admin.php:598
 
 
 
 
318
  msgid "Select a theme for topsy"
319
  msgstr "Seleccione un tema de patas"
320
 
321
- #: ../socializer-admin.php:614
 
 
 
 
 
 
 
 
322
  msgid "Digg Button"
323
  msgstr "Digg Button"
324
 
325
- #: ../socializer-admin.php:618
326
  msgid "Digg Button type"
327
  msgstr "Digg Button tipo"
328
 
329
- #: ../socializer-admin.php:620
330
  msgid "Medium"
331
  msgstr "Medio"
332
 
333
- #: ../socializer-admin.php:621
334
- msgid "Large"
335
- msgstr "Grande"
336
 
337
- #: ../socializer-admin.php:623
338
  msgid "Icon"
339
  msgstr "Icono"
340
 
341
- #: ../socializer-admin.php:633
342
  msgid "Like Button"
343
  msgstr "Al igual que Button"
344
 
345
- #: ../socializer-admin.php:637
346
  msgid "Button Style"
347
  msgstr "Botón Estilo"
348
 
349
- #: ../socializer-admin.php:639
350
  msgid "Standard"
351
  msgstr "Estándar"
352
 
353
- #: ../socializer-admin.php:640
354
- msgid "Button and count"
355
- msgstr "Button y contar"
356
 
357
- #: ../socializer-admin.php:644
 
 
 
 
358
  msgid "Show Faces"
359
  msgstr "Mostrar Caras"
360
 
361
- #: ../socializer-admin.php:651
362
  msgid "Width"
363
  msgstr "Ancho"
364
 
365
- #: ../socializer-admin.php:652
366
  msgid "In pixels"
367
  msgstr "En píxeles"
368
 
369
- #: ../socializer-admin.php:655
370
  msgid "Verb to Display"
371
  msgstr "Verbo mostrar"
372
 
373
- #: ../socializer-admin.php:657
374
  msgid "Like"
375
  msgstr "Como"
376
 
377
- #: ../socializer-admin.php:658
378
  msgid "Recommend"
379
  msgstr "Recomendar"
380
 
381
- #: ../socializer-admin.php:662
382
  msgid "Font"
383
  msgstr "Fuente"
384
 
385
- #: ../socializer-admin.php:673
386
  msgid "Color scheme"
387
  msgstr "Combinación de colores"
388
 
389
- #: ../socializer-admin.php:675
390
  msgid "Light"
391
  msgstr "Luz"
392
 
393
- #: ../socializer-admin.php:676
394
  msgid "Dark"
395
  msgstr "Oscuro"
396
 
397
- #: ../socializer-admin.php:685
398
  msgid "Share Button"
399
  msgstr "Compartir Button"
400
 
401
- #: ../socializer-admin.php:691
402
  msgid "Button"
403
  msgstr "Botón"
404
 
405
- #: ../socializer-admin.php:693
406
  msgid "Link"
407
  msgstr "Enlace"
408
 
409
- #: ../socializer-admin.php:696
410
  msgid "Show Counter"
411
  msgstr "Mostrar contra"
412
 
413
- #: ../socializer-admin.php:702
414
  msgid "Above the button"
415
  msgstr "Por encima de la tecla"
416
 
417
- #: ../socializer-admin.php:704
418
  msgid "Inline with the Button"
419
  msgstr "En línea con el botón"
420
 
421
- #: ../socializer-admin.php:715
422
  msgid "Custom 1"
423
  msgstr "Personalizado 1"
424
 
425
- #: ../socializer-admin.php:718
426
- #: ../socializer-admin.php:725
427
  #, php-format
428
  msgid "Enter any share button code. Use %s for the page url and %s for page title"
429
  msgstr "Ingrese cualquier código del botón acción. Use %s para el URL de la página y %s para el título de la página"
430
 
431
- #: ../socializer-admin.php:720
432
- #: ../socializer-admin.php:728
433
- #, php-format
434
- msgid "For using this, use the code %s in the placement template"
435
- msgstr "Para utilizar esto, utilice el código %s en la colocación de plantilla"
436
-
437
- #: ../socializer-admin.php:722
438
  msgid "Custom 2"
439
  msgstr "Personalizado 2"
440
 
441
- #: ../socializer-admin.php:734
442
- msgid "Available button codes"
443
- msgstr "Disponible códigos botón"
444
-
445
- #: ../socializer-admin.php:736
446
  msgid "Template 1"
447
  msgstr "Plantilla 1"
448
 
449
- #: ../socializer-admin.php:745
450
- #: ../socializer-admin.php:788
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
451
  msgid "Show in front page"
452
  msgstr "Mostrar en la página principal"
453
 
454
- #: ../socializer-admin.php:747
455
- #: ../socializer-admin.php:790
456
  msgid "Show in individual posts"
457
  msgstr "Mostrar en puestos individuales"
458
 
459
- #: ../socializer-admin.php:749
460
- #: ../socializer-admin.php:792
461
  msgid "Show in pages"
462
  msgstr "Mostrar en las páginas"
463
 
464
- #: ../socializer-admin.php:751
465
- #: ../socializer-admin.php:794
466
  msgid "Show in archive pages"
467
  msgstr "Mostrar en el archivo de páginas"
468
 
469
- #: ../socializer-admin.php:753
470
- #: ../socializer-admin.php:796
471
  msgid "Show in Tag pages"
472
  msgstr "Mostrar etiqueta en las páginas"
473
 
474
- #: ../socializer-admin.php:755
475
- #: ../socializer-admin.php:798
476
  msgid "Show in date archives"
477
  msgstr "Mostrar la fecha de los archivos"
478
 
479
- #: ../socializer-admin.php:757
480
- #: ../socializer-admin.php:800
481
  msgid "Show in author pages"
482
  msgstr "Mostrar en las páginas de autor"
483
 
484
- #: ../socializer-admin.php:759
485
- #: ../socializer-admin.php:802
486
  msgid "Show in search pages"
487
  msgstr "Mostrar las páginas en busca"
488
 
489
- #: ../socializer-admin.php:761
490
- #: ../socializer-admin.php:804
491
  msgid "Show in Excerpt"
492
  msgstr "Mostrar en el Excerpt"
493
 
494
- #: ../socializer-admin.php:763
495
- #: ../socializer-admin.php:806
496
  msgid "Show in RSS feeds"
497
  msgstr "Mostrar en RSS"
498
 
499
- #: ../socializer-admin.php:771
500
- #: ../socializer-admin.php:814
501
  msgid "Position"
502
  msgstr "Posición"
503
 
504
- #: ../socializer-admin.php:772
505
- #: ../socializer-admin.php:815
506
  msgid "Above content"
507
  msgstr "Sobre el contenido"
508
 
509
- #: ../socializer-admin.php:773
510
- #: ../socializer-admin.php:816
511
  msgid "Below content"
512
  msgstr "A continuación el contenido"
513
 
514
- #: ../socializer-admin.php:779
515
- msgid "Template 2"
516
- msgstr "Plantilla 2"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
517
 
518
- #: ../socializer-admin.php:825
 
 
 
 
519
  msgid "WP Socializer Settings"
520
  msgstr "WP Socializer Configuración "
521
 
522
- #: ../socializer-admin.php:829
523
  msgid "Load button scripts in "
524
  msgstr "secuencias de comandos en el botón Cargar"
525
 
526
- #: ../socializer-admin.php:831
527
  msgid "Header (recommended)"
528
  msgstr "Cabecera (recomendado)"
529
 
530
- #: ../socializer-admin.php:832
531
  msgid "Footer"
532
  msgstr "Pie de página"
533
 
534
- #: ../socializer-admin.php:837
 
 
 
 
 
 
 
 
 
535
  msgid "Disable WP Socializer"
536
  msgstr "Inhabilitar WP Socializer"
537
 
538
- #: ../socializer-admin.php:840
539
  msgid "Temporarily disable all WP-Socializer buttons "
540
  msgstr "Desactive temporalmente todos los WP-Socializer botones"
541
 
542
- #: ../socializer-admin.php:841
543
  msgid "Disabling will stop displaying all buttons, templates"
544
  msgstr "Deshabilitar dejará de mostrarse todos los botones, las plantillas"
545
 
546
- #: ../socializer-admin.php:852
547
  msgid "Update"
548
  msgstr "Actualización"
549
 
550
- #: ../socializer-admin.php:856
551
- msgid "Donate"
552
- msgstr "Donar"
553
 
554
- #: ../socializer-admin.php:856
555
- #: ../socializer-admin.php:906
556
- msgid "Help"
557
- msgstr "Ayuda"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
558
 
559
- #: ../socializer-admin.php:856
560
- msgid "Twitter"
561
- msgstr "Twitter"
562
 
563
- #: ../socializer-admin.php:857
564
- msgid "a aakashweb.com plugin"
565
- msgstr "un plugin aakashweb.com"
566
 
567
- #: ../socializer-admin.php:902
 
 
 
 
 
 
 
 
 
 
 
 
568
  msgid "Disable template 1"
569
  msgstr "Deshabilitar plantilla 1"
570
 
571
- #: ../socializer-admin.php:904
572
  msgid "Disable template 2"
573
  msgstr "Deshabilitar plantilla 2"
574
 
575
- #: ../wp-socializer.php:1080
576
- msgid "AW Latest Updates"
577
- msgstr "AW Actualidad"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
578
 
 
 
2
  msgstr ""
3
  "Project-Id-Version: WP Socializer\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-07-15 20:15+0530\n"
6
+ "PO-Revision-Date: 2011-07-15 20:43+0530\n"
7
  "Last-Translator: Aakash Chakravarthy <aakash.19493@gmail.com>\n"
8
  "Language-Team: Aakash Chakravarthy\n"
9
  "MIME-Version: 1.0\n"
13
  "X-Poedit-Basepath: .\n"
14
  "X-Poedit-SearchPath-0: ..\n"
15
 
16
+ #: ../wp-socializer.php:38
17
+ #: ../wp-socializer.php:45
18
+ #: ../wp-socializer.php:52
19
+ #: ../wp-socializer.php:60
20
+ #: ../wp-socializer.php:76
21
+ #: ../wp-socializer.php:90
22
+ #: ../wp-socializer.php:97
23
+ #: ../wp-socializer.php:113
24
+ #: ../wp-socializer.php:120
25
+ #: ../wp-socializer.php:137
26
+ #: ../wp-socializer.php:175
27
+ #: ../wp-socializer.php:192
28
+ #: ../wp-socializer.php:209
29
+ #: ../wp-socializer.php:217
30
+ #: ../wp-socializer.php:224
31
+ #: ../wp-socializer.php:231
32
+ #: ../wp-socializer.php:239
33
+ #: ../wp-socializer.php:247
34
+ #: ../wp-socializer.php:256
35
+ #: ../wp-socializer.php:287
36
+ #: ../wp-socializer.php:295
37
+ #: ../wp-socializer.php:303
38
+ #: ../wp-socializer.php:312
39
+ #: ../wp-socializer.php:333
40
+ #: ../wp-socializer.php:347
41
+ #: ../wp-socializer.php:357
42
+ #: ../wp-socializer.php:364
43
+ #: ../wp-socializer.php:380
44
+ #: ../wp-socializer.php:397
45
+ #: ../wp-socializer.php:411
46
+ #: ../wp-socializer.php:425
47
+ #: ../wp-socializer.php:433
48
+ #: ../wp-socializer.php:479
49
+ #: ../wp-socializer.php:486
50
+ #: ../wp-socializer.php:493
51
+ #: ../wp-socializer.php:500
52
+ #: ../wp-socializer.php:517
53
+ #: ../wp-socializer.php:524
54
+ #: ../wp-socializer.php:532
55
+ #: ../wp-socializer.php:547
56
+ #: ../wp-socializer.php:555
57
+ #: ../wp-socializer.php:564
58
+ #: ../wp-socializer.php:572
59
+ #: ../wp-socializer.php:589
60
+ #: ../wp-socializer.php:597
61
+ #: ../wp-socializer.php:629
62
+ #: ../wp-socializer.php:654
63
+ #: ../wp-socializer.php:668
64
+ #: ../wp-socializer.php:682
65
+ #: ../wp-socializer.php:689
66
+ #: ../wp-socializer.php:696
67
+ #: ../wp-socializer.php:721
68
+ #: ../wp-socializer.php:743
69
+ #: ../wp-socializer.php:770
70
+ #: ../wp-socializer.php:779
71
+ #: ../wp-socializer.php:786
72
+ #: ../wp-socializer.php:793
73
+ #: ../wp-socializer.php:812
74
+ #: ../wp-socializer.php:819
75
+ #: ../wp-socializer.php:854
76
+ msgid "Share this on "
77
+ msgstr "Comparte este artículo en"
78
+
79
+ #: ../wp-socializer.php:68
80
+ #: ../wp-socializer.php:129
81
+ #: ../wp-socializer.php:168
82
+ #: ../wp-socializer.php:279
83
+ #: ../wp-socializer.php:507
84
+ #: ../wp-socializer.php:661
85
+ #: ../wp-socializer.php:703
86
+ msgid "Post this on "
87
+ msgstr "Publicar en este"
88
+
89
+ #: ../wp-socializer.php:83
90
+ #: ../wp-socializer.php:145
91
+ #: ../wp-socializer.php:153
92
+ #: ../wp-socializer.php:161
93
+ #: ../wp-socializer.php:264
94
+ #: ../wp-socializer.php:319
95
+ #: ../wp-socializer.php:326
96
+ #: ../wp-socializer.php:371
97
+ #: ../wp-socializer.php:388
98
+ #: ../wp-socializer.php:404
99
+ #: ../wp-socializer.php:450
100
+ #: ../wp-socializer.php:471
101
+ #: ../wp-socializer.php:613
102
+ #: ../wp-socializer.php:636
103
+ #: ../wp-socializer.php:711
104
+ #: ../wp-socializer.php:736
105
+ #: ../wp-socializer.php:761
106
+ #: ../wp-socializer.php:846
107
+ msgid "Submit this to "
108
+ msgstr "Enviar esto"
109
+
110
+ #: ../wp-socializer.php:104
111
+ msgid "Add this on "
112
+ msgstr "Add this on "
113
+
114
+ #: ../wp-socializer.php:182
115
+ #: ../wp-socializer.php:418
116
+ #: ../wp-socializer.php:440
117
+ #: ../wp-socializer.php:457
118
+ #: ../wp-socializer.php:539
119
+ #: ../wp-socializer.php:622
120
+ #: ../wp-socializer.php:675
121
+ #: ../wp-socializer.php:728
122
+ #: ../wp-socializer.php:829
123
+ #: ../wp-socializer.php:838
124
+ msgid "Add this to "
125
+ msgstr "Agregue esto a"
126
+
127
+ #: ../wp-socializer.php:199
128
+ msgid "Email this "
129
+ msgstr "enviar"
130
+
131
+ #: ../wp-socializer.php:271
132
+ #: ../wp-socializer.php:340
133
+ msgid "Bookmark this on "
134
+ msgstr "Marca esta en"
135
+
136
+ #: ../wp-socializer.php:582
137
+ msgid "Convert to "
138
+ msgstr "convertir a"
139
+
140
+ #: ../wp-socializer.php:605
141
+ msgid "Print this article "
142
+ msgstr "Imprimir este artículo"
143
+
144
+ #: ../wp-socializer.php:644
145
+ msgid "Subscribe to "
146
+ msgstr "Suscríbete a"
147
+
148
+ #: ../wp-socializer.php:751
149
+ msgid "Tweet this !"
150
+ msgstr "Tweet this !"
151
+
152
+ #: ../wp-socializer.php:937
153
+ msgid "<b>WP Socializer</b> plugin is intalled. Please adjust your settings"
154
+ msgstr "Plugin de </b>WP Socializer</b> está instalado. Por favor ajuste la configuración"
155
+
156
+ #: ../wp-socializer.php:937
157
+ msgid "in this page"
158
+ msgstr "en esta página"
159
+
160
+ #: ../wp-socializer.php:947
161
+ #: ../admin/wpsr-admin.php:752
162
+ #: ../admin/wpsr-admin.php:859
163
+ #: ../admin/wpsr-admin.php:1059
164
+ #: ../admin/wpsr-admin.php:1461
165
+ #: ../admin/wpsr-admin.php:1637
166
+ msgid "Settings"
167
+ msgstr "Configuración"
168
 
169
+ #: ../wp-socializer.php:947
170
+ #: ../admin/wpsr-admin.php:757
171
+ #: ../admin/wpsr-admin.php:1565
172
+ #, fuzzy
173
+ msgid "Support"
174
  msgstr "Plugin de Apoyo"
175
 
176
+ #: ../wp-socializer.php:1527
177
+ msgid "AW Latest Updates"
178
+ msgstr "AW Actualidad"
179
 
180
+ #: ../wp-socializer.php:1538
181
+ msgid "WP Socializer is <span style=\"color:red;\"><b>disabled</b></span>"
182
+ msgstr "WP Socializer está <span style=\"color:red;\"><b>desactivado</b></span>"
183
 
184
+ #: ../wp-socializer.php:1552
185
+ #, fuzzy
186
+ msgid "Edit the templates"
187
+ msgstr "Deshabilitar plantilla 1"
188
 
189
+ #: ../wp-socializer.php:1557
190
+ msgid "Disable WP Socializer in this page"
191
+ msgstr "Desactivar WP Socializer en esta página"
192
 
193
+ #: ../wp-socializer.php:1597
194
+ msgid "WP Socializer"
195
+ msgstr "WP Socializer"
196
 
197
+ #: ../wp-socializer.php:1598
198
+ msgid "Insert WP Socializer buttons"
199
+ msgstr "Insertar botones WP Socializer"
200
 
201
+ #: ../admin/wpsr-admin-other.php:36
202
+ msgid "In widgets and posts"
203
+ msgstr "In widgets and posts"
204
 
205
+ #: ../admin/wpsr-admin-other.php:37
206
+ #: ../admin/wpsr-admin-other.php:91
207
+ msgid "Note:"
208
+ msgstr "Nota:"
209
 
210
+ #: ../admin/wpsr-admin-other.php:37
211
+ msgid "Inorder to use the buttons in <em>Widgets</em> and <em>Posts</em>, you need to use the below shortcodes."
212
+ msgstr "Con el fin de utilizar los botones de \"Widgets\" & \"Posts\", es necesario utilizar los códigos cortos a continuación."
213
+
214
+ #: ../admin/wpsr-admin-other.php:63
215
+ msgid "These shortcodes have several parameters. You can use them to customize the buttons. View the parameters in this page."
216
+ msgstr "Estos códigos cortos tienen varios parámetros. Se pueden utilizar para personalizar los botones. Ver los parámetros en esta página"
217
+
218
+ #: ../admin/wpsr-admin-other.php:66
219
+ msgid "You must use the above shortcodes in"
220
+ msgstr "Debe utilizar el códigos cortos por encima de"
221
+
222
+ #: ../admin/wpsr-admin-other.php:66
223
+ msgid "plugin to insert the buttons in the widgets."
224
+ msgstr "plug-in para insertar los botones en los widgets."
225
+
226
+ #: ../admin/wpsr-admin-other.php:72
227
+ msgid "HTML Javascript Adder is installed, Go to Widgets page and use the shortcodes in this widget"
228
+ msgstr "HTML Javascript Adder está instalado, vaya a la página de Widgets y el uso de los códigos cortos en este widget"
229
+
230
+ #: ../admin/wpsr-admin-other.php:75
231
+ msgid "Upgrade HTML Javascript Adder plugin"
232
+ msgstr "Actualiza HTML Javascript plugin de Adder"
233
+
234
+ #: ../admin/wpsr-admin-other.php:76
235
+ msgid "The current version ("
236
+ msgstr "La versión actual ("
237
+
238
+ #: ../admin/wpsr-admin-other.php:76
239
+ msgid ") is not compatible with WP Socializer. It is recommended to upgrade"
240
+ msgstr ") No es compatible con WP Socializer. Se recomienda actualizar"
241
 
242
+ #: ../admin/wpsr-admin-other.php:79
243
+ msgid "Install HTML Javascript Adder plugin"
244
+ msgstr "Instalar plugin de HTML Javascript Adder"
245
 
246
+ #: ../admin/wpsr-admin-other.php:86
247
+ msgid "Inside Posts"
248
+ msgstr "dentro de Posts"
249
 
250
+ #: ../admin/wpsr-admin-other.php:87
251
+ msgid "Inorder to use the buttons inside posts, you must use the above shortcodes in the post editor."
252
+ msgstr "Con el fin de utilizar los botones dentro de los mensajes, debe utilizar el códigos cortos arriba en el editor de entradas."
253
 
254
+ #: ../admin/wpsr-admin-other.php:91
255
+ msgid "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."
256
+ msgstr "HTML Javascript Adder es un plugin de wordpress para insertar Javascript HTML, en los widgets con más de 50.000 descargas. Esto es del mismo autor de este plugin. La última versión de HJA puede insertar botones WP Socializer en widgets."
257
+
258
+ #: ../admin/wpsr-admin.php:185
259
+ msgid "Share and Enjoy"
260
+ msgstr "Compartir y Disfrutar"
261
+
262
+ #: ../admin/wpsr-admin.php:188
263
+ msgid "Use Sharethis to share this post"
264
+ msgstr "Use ShareThis para compartir este mensaje"
265
+
266
+ #: ../admin/wpsr-admin.php:191
267
+ msgid "Use Addhis to share this post"
268
+ msgstr "Use Addhis compartir este posts"
269
+
270
+ #: ../admin/wpsr-admin.php:508
271
  msgid "Updated successfully"
272
  msgstr "Actualizado el éxito"
273
 
274
+ #: ../admin/wpsr-admin.php:512
275
+ msgid "Values are set to defaults successfully"
276
+ msgstr "Los valores se definen a los valores de éxito"
277
+
278
+ #: ../admin/wpsr-admin.php:516
279
+ msgid "Welcome to WP Socializer Admin page. <a href=\"http://\">Click here</a> to get started with WP Socializer"
280
+ msgstr "Bienvenido a la página de administración de WP Socializer. <a href=\"http://www.aakashweb.com/?src=wpsr\">Haga clic aquí</a> para empezar con WP Socializer"
281
+
282
+ #: ../admin/wpsr-admin.php:659
283
  msgid "Disabled"
284
  msgstr "Discapacitado"
285
 
286
+ #: ../admin/wpsr-admin.php:673
287
+ msgid "+1 this plugin"
288
+ msgstr "Recomienda este plugin"
289
+
290
+ #: ../admin/wpsr-admin.php:679
291
+ #, fuzzy
292
+ msgid "Like this plugin"
293
+ msgstr "Promover este plugin"
294
+
295
+ #: ../admin/wpsr-admin.php:686
296
+ msgid "Donate"
297
+ msgstr "Donar"
298
+
299
+ #: ../admin/wpsr-admin.php:687
300
+ msgid "and Support"
301
+ msgstr "y soporte"
302
+
303
+ #: ../admin/wpsr-admin.php:693
304
+ msgid "Make your donation with Paypal"
305
+ msgstr "Haga su donación con Paypal"
306
+
307
+ #: ../admin/wpsr-admin.php:699
308
+ msgid "Select your Donation amount:"
309
+ msgstr "Seleccione el monto de su donación:"
310
+
311
+ #: ../admin/wpsr-admin.php:721
312
+ #, fuzzy
313
+ msgid "Custom"
314
+ msgstr "Personalizado 1"
315
+
316
+ #: ../admin/wpsr-admin.php:731
317
+ #: ../admin/wpsr-admin.php:1578
318
+ msgid "Donate with PayPal!"
319
+ msgstr "Donar con PayPal!"
320
+
321
+ #: ../admin/wpsr-admin.php:756
322
+ #: ../admin/wpsr-admin.php:1565
323
+ #, fuzzy
324
+ msgid "Documentation"
325
+ msgstr "Plugin de Documentación"
326
+
327
+ #: ../admin/wpsr-admin.php:758
328
+ #: ../admin/wpsr-admin.php:1564
329
+ msgid "Manual Placement"
330
+ msgstr "Colocación manual de"
331
+
332
+ #: ../admin/wpsr-admin.php:767
333
+ msgid "Use the above code <a href=\"#tab-9\">here</a>, to insert the button"
334
+ msgstr "Utilice el código anterior <a href=\"#tab-9\">aquí</a>, para insertar el botón"
335
+
336
+ #: ../admin/wpsr-admin.php:781
337
+ msgid "Select a template and click apply."
338
+ msgstr "Seleccione un estilo y haga clic en Aplicar."
339
+
340
+ #: ../admin/wpsr-admin.php:783
341
+ msgid "Create a template"
342
+ msgstr "Crear una plantilla"
343
+
344
+ #: ../admin/wpsr-admin.php:783
345
+ #, fuzzy
346
+ msgid "Submit a template"
347
+ msgstr "Deshabilitar plantilla 1"
348
+
349
+ #: ../admin/wpsr-admin.php:791
350
  msgid "Social Buttons"
351
  msgstr "Social botones"
352
 
353
+ #: ../admin/wpsr-admin.php:794
354
  msgid "Click the icon size to select and \"x\" button to remove selected. Click and drag to reorder selected sites"
355
  msgstr "Haga clic en el tamaño de los iconos para seleccionar y \"x \" para eliminar seleccionado. Haga clic y arrastre para reordenar los sitios seleccionados"
356
 
357
+ #: ../admin/wpsr-admin.php:798
358
  msgid "Available buttons"
359
  msgstr "Botones disponibles"
360
 
361
+ #: ../admin/wpsr-admin.php:798
362
+ msgid "Filter buttons"
363
+ msgstr "botones de filtro"
364
+
365
+ #: ../admin/wpsr-admin.php:798
366
+ msgid "Filter"
367
+ msgstr "filtro"
368
+
369
+ #: ../admin/wpsr-admin.php:826
370
+ #: ../admin/wpsr-admin.php:841
371
  msgid "Selected buttons"
372
  msgstr "botones seleccionados"
373
 
374
+ #: ../admin/wpsr-admin.php:863
 
 
 
 
375
  msgid "Open links in new tab/window"
376
  msgstr "Abrir enlaces en una nueva pestaña o ventana"
377
 
378
+ #: ../admin/wpsr-admin.php:865
379
+ #: ../admin/wpsr-admin.php:880
380
+ #: ../admin/wpsr-admin.php:908
381
+ #: ../admin/wpsr-admin.php:996
382
+ #: ../admin/wpsr-admin.php:1069
383
+ #: ../admin/wpsr-admin.php:1238
384
+ #: ../admin/wpsr-admin.php:1287
385
+ #: ../admin/wpsr-admin.php:1509
386
+ #: ../admin/wpsr-admin.php:1526
387
  msgid "Yes"
388
  msgstr "Sí"
389
 
390
+ #: ../admin/wpsr-admin.php:866
391
+ #: ../admin/wpsr-admin.php:881
392
+ #: ../admin/wpsr-admin.php:909
393
+ #: ../admin/wpsr-admin.php:997
394
+ #: ../admin/wpsr-admin.php:1070
395
+ #: ../admin/wpsr-admin.php:1239
396
+ #: ../admin/wpsr-admin.php:1288
397
+ #: ../admin/wpsr-admin.php:1512
398
+ #: ../admin/wpsr-admin.php:1525
399
  msgid "No"
400
  msgstr "En"
401
 
402
+ #: ../admin/wpsr-admin.php:870
 
 
 
 
 
 
 
 
403
  msgid "Image on Hover effect"
404
  msgstr "La imagen en efecto Hover"
405
 
406
+ #: ../admin/wpsr-admin.php:874
407
  msgid "No Effect"
408
  msgstr "Sin efecto"
409
 
410
+ #: ../admin/wpsr-admin.php:878
411
  msgid "Show Label for buttons"
412
  msgstr "Mostrar la etiqueta de los botones"
413
 
414
+ #: ../admin/wpsr-admin.php:885
415
  msgid "Show Icons in"
416
  msgstr "Show Icons in"
417
 
418
+ #: ../admin/wpsr-admin.php:886
419
  msgid "Very very effective when labels are enabled (try it)"
420
  msgstr "Muy muy eficaz cuando las etiquetas están permitidas (probarlo)"
421
 
422
+ #: ../admin/wpsr-admin.php:896
423
  msgid "Image folder"
424
  msgstr "Imagen carpeta"
425
 
426
+ #: ../admin/wpsr-admin.php:897
427
+ #: ../admin/wpsr-admin.php:932
428
+ #: ../admin/wpsr-admin.php:940
429
+ #: ../admin/wpsr-admin.php:992
430
  msgid "Leave blank to use default"
431
  msgstr "Deja en blanco para usar por defecto"
432
 
433
+ #: ../admin/wpsr-admin.php:906
434
  msgid "Use Sprites"
435
  msgstr "Utilice Sprites"
436
 
437
+ #: ../admin/wpsr-admin.php:926
438
+ msgid "Services"
439
+ msgstr "servicios"
 
440
 
441
+ #: ../admin/wpsr-admin.php:960
442
+ #: ../admin/wpsr-admin.php:1017
443
+ #, fuzzy
444
+ msgid "Buttons"
445
+ msgstr "Botón"
446
 
447
+ #: ../admin/wpsr-admin.php:974
448
+ msgid "Optional button Settings"
449
+ msgstr "Opcional en el botón Configuración"
 
450
 
451
+ #: ../admin/wpsr-admin.php:979
452
  msgid "Add This Username"
453
  msgstr "Añadir este usuario"
454
 
455
+ #: ../admin/wpsr-admin.php:983
456
  msgid "If available"
457
  msgstr "Si está disponible"
458
 
459
+ #: ../admin/wpsr-admin.php:985
460
+ #: ../admin/wpsr-admin.php:1102
461
+ #: ../admin/wpsr-admin.php:1188
462
  msgid "Language"
463
  msgstr "Idioma"
464
 
465
+ #: ../admin/wpsr-admin.php:991
 
 
 
 
 
 
 
 
466
  msgid "Brand Name"
467
  msgstr "Marca Nombre"
468
 
469
+ #: ../admin/wpsr-admin.php:994
470
+ msgid "Track Clickback"
471
+ msgstr "pista Clickback"
 
 
 
 
472
 
473
+ #: ../admin/wpsr-admin.php:1001
474
  msgid "Header Color"
475
  msgstr "Encabezado Color"
476
 
477
+ #: ../admin/wpsr-admin.php:1003
478
  msgid "Header Background"
479
  msgstr "Encabezado Antecedentes"
480
 
481
+ #: ../admin/wpsr-admin.php:1018
482
+ #, fuzzy
483
+ msgid "Button type"
484
+ msgstr "Botón Estilo"
485
+
486
+ #: ../admin/wpsr-admin.php:1019
487
+ #, fuzzy
488
+ msgid "Button Order"
489
+ msgstr "Botón de Texto"
490
+
491
+ #: ../admin/wpsr-admin.php:1020
492
+ msgid "Reorder, remove or add social buttons"
493
+ msgstr "Reordenar, eliminar o agregar botones sociales"
494
+
495
+ #: ../admin/wpsr-admin.php:1064
496
+ msgid "You can see you publisher key in this page. "
497
+ msgstr "Puede que usted ve la clave del editor de esta página."
498
+
499
+ #: ../admin/wpsr-admin.php:1064
500
+ #: ../admin/wpsr-admin.php:1114
501
+ msgid "Click here"
502
+ msgstr "Haga clic aquí"
503
 
504
+ #: ../admin/wpsr-admin.php:1081
505
  msgid "Post to Buzz button"
506
  msgstr "Poste en el botón Buzz"
507
 
508
+ #: ../admin/wpsr-admin.php:1086
509
+ #: ../admin/wpsr-admin.php:1278
510
  msgid "Style"
511
  msgstr "Estilo"
512
 
513
+ #: ../admin/wpsr-admin.php:1088
514
  msgid "Show Button and counter"
515
  msgstr "Mostrar botón y la lucha contra"
516
 
517
+ #: ../admin/wpsr-admin.php:1089
518
  msgid "Show Button only"
519
  msgstr "Mostrar sólo botón"
520
 
521
+ #: ../admin/wpsr-admin.php:1090
522
  msgid "Show Link only"
523
  msgstr "Mostrar Vincular sólo"
524
 
525
+ #: ../admin/wpsr-admin.php:1096
526
  msgid "Size"
527
  msgstr "Tamaño"
528
 
529
+ #: ../admin/wpsr-admin.php:1096
530
+ #: ../admin/wpsr-admin.php:1285
531
  msgid "Not for link"
532
  msgstr "No para el enlace"
533
 
534
+ #: ../admin/wpsr-admin.php:1097
535
  msgid "Normal"
536
  msgstr "Normal"
537
 
538
+ #: ../admin/wpsr-admin.php:1099
539
  msgid "Small"
540
  msgstr "Pequeño"
541
 
542
+ #: ../admin/wpsr-admin.php:1108
543
  msgid "Follow on Buzz button"
544
  msgstr "Siga las Buz Buton"
545
 
546
+ #: ../admin/wpsr-admin.php:1113
547
  msgid "Profile URL"
548
  msgstr "Perfil URL"
549
 
550
+ #: ../admin/wpsr-admin.php:1114
551
  msgid "Don't know your profile URL?"
552
  msgstr "No sabe la URL del perfil?"
553
 
554
+ #: ../admin/wpsr-admin.php:1117
 
 
 
 
555
  msgid "Button Text"
556
  msgstr "Botón de Texto"
557
 
558
+ #: ../admin/wpsr-admin.php:1128
559
+ msgid "General"
560
+ msgstr "General"
561
+
562
+ #: ../admin/wpsr-admin.php:1133
563
  msgid "Twitter Username"
564
  msgstr "Twitter Nombre de usuario"
565
 
566
+ #: ../admin/wpsr-admin.php:1137
567
  msgid "Retweet Button Type"
568
  msgstr "Retweet botón Tipo"
569
 
570
+ #: ../admin/wpsr-admin.php:1139
571
  msgid "Normal (Big)"
572
  msgstr "Normal (grande)"
573
 
574
+ #: ../admin/wpsr-admin.php:1140
575
+ #: ../admin/wpsr-admin.php:1213
576
  msgid "Compact"
577
  msgstr "Compacto"
578
 
579
+ #: ../admin/wpsr-admin.php:1141
580
+ msgid "No Count (only for Twitter's Official Button)"
581
+ msgstr "No Count (sólo para Button Oficial de Twitter)"
582
+
583
+ #: ../admin/wpsr-admin.php:1147
584
  msgid "Choose a service"
585
  msgstr "Elija un servicio"
586
 
587
+ #: ../admin/wpsr-admin.php:1152
588
  msgid "Retweet Service"
589
  msgstr "Retweet Servicio"
590
 
591
+ #: ../admin/wpsr-admin.php:1154
592
+ msgid "Twitter's Official Button"
593
+ msgstr "Botón Oficial de Twitter"
594
+
595
+ #: ../admin/wpsr-admin.php:1163
596
  msgid "Select a theme for topsy"
597
  msgstr "Seleccione un tema de patas"
598
 
599
+ #: ../admin/wpsr-admin.php:1182
600
+ msgid "Recommend people"
601
+ msgstr "recomiendo a la gente"
602
+
603
+ #: ../admin/wpsr-admin.php:1184
604
+ msgid "Twitter Username: Description (Optional)"
605
+ msgstr "Nombre de usuario de Twitter: Descripción (Opcional)"
606
+
607
+ #: ../admin/wpsr-admin.php:1205
608
  msgid "Digg Button"
609
  msgstr "Digg Button"
610
 
611
+ #: ../admin/wpsr-admin.php:1209
612
  msgid "Digg Button type"
613
  msgstr "Digg Button tipo"
614
 
615
+ #: ../admin/wpsr-admin.php:1211
616
  msgid "Medium"
617
  msgstr "Medio"
618
 
619
+ #: ../admin/wpsr-admin.php:1212
620
+ msgid "Wide"
621
+ msgstr "Wide"
622
 
623
+ #: ../admin/wpsr-admin.php:1214
624
  msgid "Icon"
625
  msgstr "Icono"
626
 
627
+ #: ../admin/wpsr-admin.php:1224
628
  msgid "Like Button"
629
  msgstr "Al igual que Button"
630
 
631
+ #: ../admin/wpsr-admin.php:1228
632
  msgid "Button Style"
633
  msgstr "Botón Estilo"
634
 
635
+ #: ../admin/wpsr-admin.php:1230
636
  msgid "Standard"
637
  msgstr "Estándar"
638
 
639
+ #: ../admin/wpsr-admin.php:1231
640
+ msgid "Button count"
641
+ msgstr "botón de contar"
642
 
643
+ #: ../admin/wpsr-admin.php:1232
644
+ msgid "Box count"
645
+ msgstr "caja de contar"
646
+
647
+ #: ../admin/wpsr-admin.php:1236
648
  msgid "Show Faces"
649
  msgstr "Mostrar Caras"
650
 
651
+ #: ../admin/wpsr-admin.php:1243
652
  msgid "Width"
653
  msgstr "Ancho"
654
 
655
+ #: ../admin/wpsr-admin.php:1244
656
  msgid "In pixels"
657
  msgstr "En píxeles"
658
 
659
+ #: ../admin/wpsr-admin.php:1247
660
  msgid "Verb to Display"
661
  msgstr "Verbo mostrar"
662
 
663
+ #: ../admin/wpsr-admin.php:1249
664
  msgid "Like"
665
  msgstr "Como"
666
 
667
+ #: ../admin/wpsr-admin.php:1250
668
  msgid "Recommend"
669
  msgstr "Recomendar"
670
 
671
+ #: ../admin/wpsr-admin.php:1254
672
  msgid "Font"
673
  msgstr "Fuente"
674
 
675
+ #: ../admin/wpsr-admin.php:1265
676
  msgid "Color scheme"
677
  msgstr "Combinación de colores"
678
 
679
+ #: ../admin/wpsr-admin.php:1267
680
  msgid "Light"
681
  msgstr "Luz"
682
 
683
+ #: ../admin/wpsr-admin.php:1268
684
  msgid "Dark"
685
  msgstr "Oscuro"
686
 
687
+ #: ../admin/wpsr-admin.php:1274
688
  msgid "Share Button"
689
  msgstr "Compartir Button"
690
 
691
+ #: ../admin/wpsr-admin.php:1280
692
  msgid "Button"
693
  msgstr "Botón"
694
 
695
+ #: ../admin/wpsr-admin.php:1282
696
  msgid "Link"
697
  msgstr "Enlace"
698
 
699
+ #: ../admin/wpsr-admin.php:1285
700
  msgid "Show Counter"
701
  msgstr "Mostrar contra"
702
 
703
+ #: ../admin/wpsr-admin.php:1291
704
  msgid "Above the button"
705
  msgstr "Por encima de la tecla"
706
 
707
+ #: ../admin/wpsr-admin.php:1293
708
  msgid "Inline with the Button"
709
  msgstr "En línea con el botón"
710
 
711
+ #: ../admin/wpsr-admin.php:1303
712
  msgid "Custom 1"
713
  msgstr "Personalizado 1"
714
 
715
+ #: ../admin/wpsr-admin.php:1306
716
+ #: ../admin/wpsr-admin.php:1312
717
  #, php-format
718
  msgid "Enter any share button code. Use %s for the page url and %s for page title"
719
  msgstr "Ingrese cualquier código del botón acción. Use %s para el URL de la página y %s para el título de la página"
720
 
721
+ #: ../admin/wpsr-admin.php:1309
 
 
 
 
 
 
722
  msgid "Custom 2"
723
  msgstr "Personalizado 2"
724
 
725
+ #: ../admin/wpsr-admin.php:1322
 
 
 
 
726
  msgid "Template 1"
727
  msgstr "Plantilla 1"
728
 
729
+ #: ../admin/wpsr-admin.php:1323
730
+ msgid "Template 2"
731
+ msgstr "Plantilla 2"
732
+
733
+ #: ../admin/wpsr-admin.php:1329
734
+ #: ../admin/wpsr-admin.php:1394
735
+ msgid "Use the menu below to insert the buttons into the template"
736
+ msgstr "Utilice el siguiente menú para insertar los botones en la plantilla"
737
+
738
+ #: ../admin/wpsr-admin.php:1330
739
+ #: ../admin/wpsr-admin.php:1395
740
+ msgid "All HTML/CSS tags can be used. The button codes can be wrapped with HTML tags for proper aligning."
741
+ msgstr "Todas las etiquetas de HTML / CSS se puede utilizar. Los códigos de los botones se puede envolver con las etiquetas HTML para alinear adecuada."
742
+
743
+ #: ../admin/wpsr-admin.php:1344
744
+ #: ../admin/wpsr-admin.php:1409
745
+ msgid "Automatically add paragraphs"
746
+ msgstr "Añadir automáticamente los párrafos"
747
+
748
+ #: ../admin/wpsr-admin.php:1349
749
+ #: ../admin/wpsr-admin.php:1414
750
+ msgid "Where to show these buttons ?"
751
+ msgstr "Lugares de aparición de estos botones?"
752
+
753
+ #: ../admin/wpsr-admin.php:1354
754
+ #: ../admin/wpsr-admin.php:1419
755
  msgid "Show in front page"
756
  msgstr "Mostrar en la página principal"
757
 
758
+ #: ../admin/wpsr-admin.php:1356
759
+ #: ../admin/wpsr-admin.php:1421
760
  msgid "Show in individual posts"
761
  msgstr "Mostrar en puestos individuales"
762
 
763
+ #: ../admin/wpsr-admin.php:1358
764
+ #: ../admin/wpsr-admin.php:1423
765
  msgid "Show in pages"
766
  msgstr "Mostrar en las páginas"
767
 
768
+ #: ../admin/wpsr-admin.php:1360
769
+ #: ../admin/wpsr-admin.php:1425
770
  msgid "Show in archive pages"
771
  msgstr "Mostrar en el archivo de páginas"
772
 
773
+ #: ../admin/wpsr-admin.php:1362
774
+ #: ../admin/wpsr-admin.php:1427
775
  msgid "Show in Tag pages"
776
  msgstr "Mostrar etiqueta en las páginas"
777
 
778
+ #: ../admin/wpsr-admin.php:1364
779
+ #: ../admin/wpsr-admin.php:1429
780
  msgid "Show in date archives"
781
  msgstr "Mostrar la fecha de los archivos"
782
 
783
+ #: ../admin/wpsr-admin.php:1366
784
+ #: ../admin/wpsr-admin.php:1431
785
  msgid "Show in author pages"
786
  msgstr "Mostrar en las páginas de autor"
787
 
788
+ #: ../admin/wpsr-admin.php:1368
789
+ #: ../admin/wpsr-admin.php:1433
790
  msgid "Show in search pages"
791
  msgstr "Mostrar las páginas en busca"
792
 
793
+ #: ../admin/wpsr-admin.php:1370
794
+ #: ../admin/wpsr-admin.php:1435
795
  msgid "Show in Excerpt"
796
  msgstr "Mostrar en el Excerpt"
797
 
798
+ #: ../admin/wpsr-admin.php:1372
799
+ #: ../admin/wpsr-admin.php:1437
800
  msgid "Show in RSS feeds"
801
  msgstr "Mostrar en RSS"
802
 
803
+ #: ../admin/wpsr-admin.php:1376
804
+ #: ../admin/wpsr-admin.php:1440
805
  msgid "Position"
806
  msgstr "Posición"
807
 
808
+ #: ../admin/wpsr-admin.php:1379
809
+ #: ../admin/wpsr-admin.php:1442
810
  msgid "Above content"
811
  msgstr "Sobre el contenido"
812
 
813
+ #: ../admin/wpsr-admin.php:1381
814
+ #: ../admin/wpsr-admin.php:1444
815
  msgid "Below content"
816
  msgstr "A continuación el contenido"
817
 
818
+ #: ../admin/wpsr-admin.php:1455
819
+ #, fuzzy
820
+ msgid "FAQ"
821
+ msgstr "Preguntas frecuentes"
822
+
823
+ #: ../admin/wpsr-admin.php:1455
824
+ msgid "Why sometimes the buttons are not aligned properly in the page ?"
825
+ msgstr "Por qué a veces los botones no se alinean correctamente en la página?"
826
+
827
+ #: ../admin/wpsr-admin.php:1467
828
+ msgid "URL"
829
+ msgstr "URL"
830
+
831
+ #: ../admin/wpsr-admin.php:1468
832
+ msgid "Leave blank to use default Wordpress RSS feed."
833
+ msgstr "Dejar en blanco para el uso por defecto de Wordpress feed RSS."
834
+
835
+ #: ../admin/wpsr-admin.php:1468
836
+ msgid "You can use Feedburner feed URL also"
837
+ msgstr "Puede utilizar Feedburner URL del feed también"
838
+
839
+ #: ../admin/wpsr-admin.php:1475
840
+ msgid "Integration"
841
+ msgstr "integración"
842
 
843
+ #: ../admin/wpsr-admin.php:1479
844
+ msgid "Username"
845
+ msgstr "Username"
846
+
847
+ #: ../admin/wpsr-admin.php:1491
848
  msgid "WP Socializer Settings"
849
  msgstr "WP Socializer Configuración "
850
 
851
+ #: ../admin/wpsr-admin.php:1495
852
  msgid "Load button scripts in "
853
  msgstr "secuencias de comandos en el botón Cargar"
854
 
855
+ #: ../admin/wpsr-admin.php:1497
856
  msgid "Header (recommended)"
857
  msgstr "Cabecera (recomendado)"
858
 
859
+ #: ../admin/wpsr-admin.php:1498
860
  msgid "Footer"
861
  msgstr "Pie de página"
862
 
863
+ #: ../admin/wpsr-admin.php:1502
864
+ msgid "Load WP Socializer CSS"
865
+ msgstr "Carga WP Socializer CSS"
866
+
867
+ #: ../admin/wpsr-admin.php:1505
868
+ #, fuzzy
869
+ msgid "Note: templates, hover effects &amp; column will not work"
870
+ msgstr "Nota: los efectos Hover y la columna no estará disponible"
871
+
872
+ #: ../admin/wpsr-admin.php:1519
873
  msgid "Disable WP Socializer"
874
  msgstr "Inhabilitar WP Socializer"
875
 
876
+ #: ../admin/wpsr-admin.php:1522
877
  msgid "Temporarily disable all WP-Socializer buttons "
878
  msgstr "Desactive temporalmente todos los WP-Socializer botones"
879
 
880
+ #: ../admin/wpsr-admin.php:1523
881
  msgid "Disabling will stop displaying all buttons, templates"
882
  msgstr "Deshabilitar dejará de mostrarse todos los botones, las plantillas"
883
 
884
+ #: ../admin/wpsr-admin.php:1533
885
  msgid "Update"
886
  msgstr "Actualización"
887
 
888
+ #: ../admin/wpsr-admin.php:1534
889
+ msgid "Reset all"
890
+ msgstr "restablecer todos los"
891
 
892
+ #: ../admin/wpsr-admin.php:1538
893
+ msgid "Sure"
894
+ msgstr "seguro"
895
+
896
+ #: ../admin/wpsr-admin.php:1538
897
+ msgid "Cancel"
898
+ msgstr "cancelar"
899
+
900
+ #: ../admin/wpsr-admin.php:1544
901
+ msgid "a Aakash Web plugin"
902
+ msgstr "un plugin Aakash Web"
903
+
904
+ #: ../admin/wpsr-admin.php:1565
905
+ msgid "Full Features"
906
+ msgstr "Características completa"
907
+
908
+ #: ../admin/wpsr-admin.php:1566
909
+ msgid "Bug Report"
910
+ msgstr "Reportar un error"
911
 
912
+ #: ../admin/wpsr-admin.php:1566
913
+ msgid "Video Demo & Tutorials"
914
+ msgstr "Vídeo de demostración y tutoriales"
915
 
916
+ #: ../admin/wpsr-admin.php:1569
917
+ msgid "Share this plugin"
918
+ msgstr "Compartir este plugin"
919
 
920
+ #: ../admin/wpsr-admin.php:1576
921
+ msgid "Support this plugin"
922
+ msgstr "Apoya a este plugin"
923
+
924
+ #: ../admin/wpsr-admin.php:1579
925
+ msgid "Subscribe to Updates"
926
+ msgstr "Suscribirse a las actualizaciones"
927
+
928
+ #: ../admin/wpsr-admin.php:1583
929
+ msgid "Start using WP Socializer"
930
+ msgstr "Comience a utilizar Socializer WP"
931
+
932
+ #: ../admin/wpsr-admin.php:1631
933
  msgid "Disable template 1"
934
  msgstr "Deshabilitar plantilla 1"
935
 
936
+ #: ../admin/wpsr-admin.php:1634
937
  msgid "Disable template 2"
938
  msgstr "Deshabilitar plantilla 2"
939
 
940
+ #: ../admin/wpsr-admin.php:1637
941
+ msgid "Help"
942
+ msgstr "Ayuda"
943
+
944
+ #: ../includes/wpsr-addthis.php:123
945
+ msgid "Share with Addthis"
946
+ msgstr "Compartir con Addthis"
947
+
948
+ #: ../includes/wpsr-digg.php:53
949
+ msgid "Digg this"
950
+ msgstr "Digg this"
951
+
952
+ #: ../includes/wpsr-facebook.php:30
953
+ msgid "Share on Facebook"
954
+ msgstr "Compartir en Facebook"
955
+
956
+ #: ../includes/wpsr-google.php:135
957
+ msgid "Buzz this"
958
+ msgstr "Buzz this"
959
+
960
+ #: ../includes/wpsr-other.php:24
961
+ msgid "Reddit this"
962
+ msgstr "Reddit this"
963
+
964
+ #: ../includes/wpsr-other.php:94
965
+ msgid "Stumble this"
966
+ msgstr "Stumble this"
967
+
968
+ #: ../includes/wpsr-retweet.php:56
969
+ msgid "Retweet this"
970
+ msgstr "Retweet this"
971
+
972
+ #~ msgid "Donate and support this plugin's future"
973
+ #~ msgstr "Dona y apoyar este plugin futuro"
974
+
975
+ #~ msgid "Request a feature"
976
+ #~ msgstr "Solicitar una característica"
977
+
978
+ #~ msgid "Author Website"
979
+ #~ msgstr "Autor Web"
980
+
981
+ #~ msgid "Follow the author"
982
+ #~ msgstr "Siga el autor"
983
+
984
+ #~ msgid "More plugins"
985
+ #~ msgstr "Más plugins"
986
+
987
+ #~ msgid "Reference"
988
+ #~ msgstr "Referencia"
989
+
990
+ #~ msgid "Template Functions"
991
+ #~ msgstr "Funciones de Template"
992
+
993
+ #~ msgid ""
994
+ #~ "For using the 16px buttons, use the code %s in the placement template"
995
+ #~ msgstr ""
996
+ #~ "Para emplear el 16px botones, utilice el código %s en la colocación de "
997
+ #~ "plantilla"
998
+
999
+ #~ msgid ""
1000
+ #~ "For using the 32px buttons, use the code %s in the placement template"
1001
+ #~ msgstr ""
1002
+ #~ "Para emplear el 32px botones, utilice el código %s en la colocación de "
1003
+ #~ "plantilla"
1004
+
1005
+ #~ msgid "Choose the Bookmarking or sharing button"
1006
+ #~ msgstr "Seleccione el botón de marcadores o compartir"
1007
+
1008
+ #~ msgid "comma-seperated"
1009
+ #~ msgstr "coma seperated"
1010
+
1011
+ #~ msgid "For using this button, use the code %s in the placement template"
1012
+ #~ msgstr ""
1013
+ #~ "Para usar este botón, utilice el código %s en la colocación de plantilla"
1014
+
1015
+ #~ msgid "Large"
1016
+ #~ msgstr "Grande"
1017
+
1018
+ #~ msgid "For using this, use the code %s in the placement template"
1019
+ #~ msgstr ""
1020
+ #~ "Para utilizar esto, utilice el código %s en la colocación de plantilla"
1021
+
1022
+ #~ msgid "Available button codes"
1023
+ #~ msgstr "Disponible códigos botón"
1024
 
1025
+ #~ msgid "Twitter"
1026
+ #~ msgstr "Twitter"
languages/wpsr-zh_CN.mo CHANGED
Binary file
languages/wpsr-zh_CN.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP Socializer\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2010-07-31 13:42+0530\n"
6
- "PO-Revision-Date: 2010-07-31 14:25+0530\n"
7
  "Last-Translator: Aakash Chakravarthy <aakash.19493@gmail.com>\n"
8
  "Language-Team: Aakash Chakravarthy <aakash.19493@gmail.com>\n"
9
  "MIME-Version: 1.0\n"
@@ -14,566 +14,1034 @@ msgstr ""
14
  "X-Poedit-Language: Chinese\n"
15
  "X-Poedit-SearchPath-0: ..\n"
16
 
17
- #: ../adm-sidebar.php:10
18
- msgid "Donate and support this plugin's future"
19
- msgstr "捐赠和支持这个插件的未来"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
 
21
- #: ../adm-sidebar.php:14
22
- msgid "Plugin Support"
 
 
 
23
  msgstr "插件支持"
24
 
25
- #: ../adm-sidebar.php:18
26
- msgid "Plugin Documentation"
27
- msgstr "插件文件"
28
 
29
- #: ../adm-sidebar.php:22
30
- msgid "Bugs Report"
31
- msgstr "错误报告"
32
 
33
- #: ../adm-sidebar.php:26
34
- msgid "FAQ's"
35
- msgstr "常见问题"
 
36
 
37
- #: ../adm-sidebar.php:30
38
- msgid "Request a feature"
39
- msgstr "要求一个功能"
 
40
 
41
- #: ../adm-sidebar.php:34
42
- msgid "Author Website"
43
- msgstr "作者网站"
 
44
 
45
- #: ../adm-sidebar.php:38
46
- msgid "Support this plugin"
47
- msgstr "支持此插件"
 
48
 
49
- #: ../adm-sidebar.php:42
50
- msgid "Follow the author"
51
- msgstr "按照作者"
52
 
53
- #: ../adm-sidebar.php:46
54
- msgid "Subscribe to Updates"
55
- msgstr "订阅更新"
 
56
 
57
- #: ../adm-sidebar.php:50
58
- msgid "Promote this plugin"
59
- msgstr "推动这个插件"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
 
61
- #: ../adm-sidebar.php:55
62
- msgid "More plugins"
63
- msgstr "更多的插件"
64
 
65
- #: ../adm-sidebar.php:85
66
- msgid "Reference"
67
- msgstr "参考"
68
 
69
- #: ../adm-sidebar.php:88
70
- msgid "Template Functions"
71
- msgstr "模板功能"
72
 
73
- #: ../socializer-admin.php:170
 
 
 
 
 
 
 
 
 
 
 
 
74
  msgid "Updated successfully"
75
  msgstr "更新成功"
76
 
77
- #: ../socializer-admin.php:288
 
 
 
 
 
 
 
 
78
  msgid "Disabled"
79
  msgstr "残疾人士"
80
 
81
- #: ../socializer-admin.php:319
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  msgid "Social Buttons"
83
  msgstr "社会按钮"
84
 
85
- #: ../socializer-admin.php:322
86
  msgid "Click the icon size to select and \"x\" button to remove selected. Click and drag to reorder selected sites"
87
  msgstr "点击图标大小选择和 \"x\" 按钮可以删除选中。单击并拖动以重新排列选定地点"
88
 
89
- #: ../socializer-admin.php:325
90
  msgid "Available buttons"
91
  msgstr "可用按钮"
92
 
93
- #: ../socializer-admin.php:353
94
- #: ../socializer-admin.php:368
95
- msgid "Selected buttons"
96
  msgstr "选择按钮"
97
 
98
- #: ../socializer-admin.php:386
99
- msgid "Settings"
100
- msgstr "设置"
 
 
 
 
 
 
101
 
102
- #: ../socializer-admin.php:390
103
  msgid "Open links in new tab/window"
104
  msgstr "在新标签中打开链接/窗口"
105
 
106
- #: ../socializer-admin.php:392
107
- #: ../socializer-admin.php:400
108
- #: ../socializer-admin.php:415
109
- #: ../socializer-admin.php:443
110
- #: ../socializer-admin.php:646
111
- #: ../socializer-admin.php:698
112
- #: ../socializer-admin.php:844
 
 
113
  msgid "Yes"
114
  msgstr "对"
115
 
116
- #: ../socializer-admin.php:393
117
- #: ../socializer-admin.php:401
118
- #: ../socializer-admin.php:416
119
- #: ../socializer-admin.php:444
120
- #: ../socializer-admin.php:647
121
- #: ../socializer-admin.php:699
122
- #: ../socializer-admin.php:843
 
 
123
  msgid "No"
124
  msgstr "没有"
125
 
126
- #: ../socializer-admin.php:397
127
- msgid "Load WP Socializer CSS"
128
- msgstr "负载 WP Socializer CSS"
129
-
130
- #: ../socializer-admin.php:398
131
- msgid "Note: hover effects &amp; column will not be available"
132
- msgstr "注:悬停效果和列将无法使用"
133
-
134
- #: ../socializer-admin.php:405
135
  msgid "Image on Hover effect"
136
  msgstr "在悬停图像效果"
137
 
138
- #: ../socializer-admin.php:409
139
  msgid "No Effect"
140
  msgstr "没有影响"
141
 
142
- #: ../socializer-admin.php:413
143
  msgid "Show Label for buttons"
144
  msgstr "显示标签的按钮"
145
 
146
- #: ../socializer-admin.php:420
147
  msgid "Show Icons in"
148
  msgstr "在显示图标"
149
 
150
- #: ../socializer-admin.php:421
151
  msgid "Very very effective when labels are enabled (try it)"
152
  msgstr "非常非常有效的标签,当启用(尝试)"
153
 
154
- #: ../socializer-admin.php:431
155
  msgid "Image folder"
156
  msgstr "图像文件夹"
157
 
158
- #: ../socializer-admin.php:432
159
- #: ../socializer-admin.php:497
160
- #: ../socializer-admin.php:500
 
161
  msgid "Leave blank to use default"
162
  msgstr "给空白以使用预设"
163
 
164
- #: ../socializer-admin.php:441
165
  msgid "Use Sprites"
166
  msgstr "使用精灵"
167
 
168
- #: ../socializer-admin.php:450
169
- #, php-format
170
- msgid "For using the 16px buttons, use the code %s in the placement template"
171
- msgstr "对于使用16px按钮,使用该模板放置的代码%s"
172
 
173
- #: ../socializer-admin.php:451
174
- #, php-format
175
- msgid "For using the 32px buttons, use the code %s in the placement template"
176
- msgstr "对于使用32px按钮,使用该模板放置的代码%s"
 
177
 
178
- #: ../socializer-admin.php:456
179
- #: ../socializer-admin.php:568
180
- msgid "General"
181
- msgstr "一般"
182
 
183
- #: ../socializer-admin.php:460
184
  msgid "Add This Username"
185
  msgstr "Addthis 用户名"
186
 
187
- #: ../socializer-admin.php:461
188
  msgid "If available"
189
  msgstr "如果可用"
190
 
191
- #: ../socializer-admin.php:462
192
- #: ../socializer-admin.php:539
 
193
  msgid "Language"
194
  msgstr "语"
195
 
196
- #: ../socializer-admin.php:468
197
- msgid "Choose the Bookmarking or sharing button"
198
- msgstr "选择书签或共享按钮"
199
-
200
- #: ../socializer-admin.php:491
201
- msgid "Optional button Settings"
202
- msgstr "可选按钮设置"
203
-
204
- #: ../socializer-admin.php:496
205
  msgid "Brand Name"
206
  msgstr "品牌名称"
207
 
208
- #: ../socializer-admin.php:499
209
- msgid "Custom services"
210
- msgstr "定制服务"
211
-
212
- #: ../socializer-admin.php:500
213
- msgid "comma-seperated"
214
- msgstr "逗号分隔的"
215
 
216
- #: ../socializer-admin.php:504
217
  msgid "Header Color"
218
  msgstr "标题颜色"
219
 
220
- #: ../socializer-admin.php:506
221
  msgid "Header Background"
222
  msgstr "标题背景"
223
 
224
- #: ../socializer-admin.php:512
225
- #: ../socializer-admin.php:545
226
- #: ../socializer-admin.php:562
227
- #: ../socializer-admin.php:612
228
- #: ../socializer-admin.php:628
229
- #: ../socializer-admin.php:682
230
- #: ../socializer-admin.php:710
231
- #, php-format
232
- msgid "For using this button, use the code %s in the placement template"
233
- msgstr "使用此按钮,请在模板放置代码%s"
234
 
235
- #: ../socializer-admin.php:518
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
236
  msgid "Post to Buzz button"
237
  msgstr "邮政巴兹按钮"
238
 
239
- #: ../socializer-admin.php:523
240
- #: ../socializer-admin.php:689
241
  msgid "Style"
242
  msgstr "风格"
243
 
244
- #: ../socializer-admin.php:525
245
  msgid "Show Button and counter"
246
  msgstr "显示按钮和反"
247
 
248
- #: ../socializer-admin.php:526
249
  msgid "Show Button only"
250
  msgstr "只显示按钮"
251
 
252
- #: ../socializer-admin.php:527
253
  msgid "Show Link only"
254
  msgstr "只显示链接"
255
 
256
- #: ../socializer-admin.php:533
257
  msgid "Size"
258
  msgstr "大小"
259
 
260
- #: ../socializer-admin.php:533
261
- #: ../socializer-admin.php:696
262
  msgid "Not for link"
263
  msgstr "不为连结"
264
 
265
- #: ../socializer-admin.php:534
266
  msgid "Normal"
267
  msgstr "正常"
268
 
269
- #: ../socializer-admin.php:536
270
  msgid "Small"
271
  msgstr "小"
272
 
273
- #: ../socializer-admin.php:547
274
  msgid "Follow on Buzz button"
275
  msgstr "关于口碑后续按钮"
276
 
277
- #: ../socializer-admin.php:552
278
  msgid "Profile URL"
279
  msgstr "个人资料的网址"
280
 
281
- #: ../socializer-admin.php:553
282
  msgid "Don't know your profile URL?"
283
  msgstr "不知道你的个人资料的网址?"
284
 
285
- #: ../socializer-admin.php:553
286
- msgid "Click here"
287
- msgstr "点击这里"
288
-
289
- #: ../socializer-admin.php:556
290
  msgid "Button Text"
291
  msgstr "按钮文本"
292
 
293
- #: ../socializer-admin.php:573
 
 
 
 
294
  msgid "Twitter Username"
295
  msgstr "Twitter的用户名"
296
 
297
- #: ../socializer-admin.php:577
298
  msgid "Retweet Button Type"
299
  msgstr "Retweet按钮类型"
300
 
301
- #: ../socializer-admin.php:579
302
  msgid "Normal (Big)"
303
  msgstr "正常(大)"
304
 
305
- #: ../socializer-admin.php:580
306
- #: ../socializer-admin.php:622
307
  msgid "Compact"
308
  msgstr "紧凑"
309
 
310
- #: ../socializer-admin.php:586
 
 
 
 
311
  msgid "Choose a service"
312
  msgstr "选择服务"
313
 
314
- #: ../socializer-admin.php:591
315
  msgid "Retweet Service"
316
  msgstr "Retweet服务"
317
 
318
- #: ../socializer-admin.php:598
 
 
 
 
319
  msgid "Select a theme for topsy"
320
  msgstr "选择一个主题Topsy"
321
 
322
- #: ../socializer-admin.php:614
 
 
 
 
 
 
 
 
 
323
  msgid "Digg Button"
324
  msgstr "Digg的按钮"
325
 
326
- #: ../socializer-admin.php:618
327
  msgid "Digg Button type"
328
  msgstr "Digg的按钮类型"
329
 
330
- #: ../socializer-admin.php:620
331
  msgid "Medium"
332
  msgstr "中"
333
 
334
- #: ../socializer-admin.php:621
335
- msgid "Large"
336
- msgstr ""
 
337
 
338
- #: ../socializer-admin.php:623
339
  msgid "Icon"
340
  msgstr "图标"
341
 
342
- #: ../socializer-admin.php:633
343
  msgid "Like Button"
344
  msgstr "像巴顿"
345
 
346
- #: ../socializer-admin.php:637
347
  msgid "Button Style"
348
  msgstr "按钮样式"
349
 
350
- #: ../socializer-admin.php:639
351
  msgid "Standard"
352
  msgstr "标准"
353
 
354
- #: ../socializer-admin.php:640
355
- msgid "Button and count"
 
356
  msgstr "巴顿和计数"
357
 
358
- #: ../socializer-admin.php:644
 
 
 
 
 
359
  msgid "Show Faces"
360
  msgstr "显示面"
361
 
362
- #: ../socializer-admin.php:651
363
  msgid "Width"
364
  msgstr "宽度"
365
 
366
- #: ../socializer-admin.php:652
367
  msgid "In pixels"
368
  msgstr "在像素"
369
 
370
- #: ../socializer-admin.php:655
371
  msgid "Verb to Display"
372
  msgstr "动词,以显示"
373
 
374
- #: ../socializer-admin.php:657
375
  msgid "Like"
376
  msgstr "喜欢"
377
 
378
- #: ../socializer-admin.php:658
379
  msgid "Recommend"
380
  msgstr "建议"
381
 
382
- #: ../socializer-admin.php:662
383
  msgid "Font"
384
  msgstr "字体"
385
 
386
- #: ../socializer-admin.php:673
387
  msgid "Color scheme"
388
  msgstr "配色方案"
389
 
390
- #: ../socializer-admin.php:675
391
  msgid "Light"
392
  msgstr "光"
393
 
394
- #: ../socializer-admin.php:676
395
  msgid "Dark"
396
  msgstr "黑暗"
397
 
398
- #: ../socializer-admin.php:685
399
  msgid "Share Button"
400
  msgstr "分享按钮"
401
 
402
- #: ../socializer-admin.php:691
403
  msgid "Button"
404
  msgstr "按键"
405
 
406
- #: ../socializer-admin.php:693
407
  msgid "Link"
408
  msgstr "链接"
409
 
410
- #: ../socializer-admin.php:696
411
  msgid "Show Counter"
412
  msgstr "显示计数器"
413
 
414
- #: ../socializer-admin.php:702
415
  msgid "Above the button"
416
  msgstr "上面的按钮"
417
 
418
- #: ../socializer-admin.php:704
419
  msgid "Inline with the Button"
420
  msgstr "内联的按钮"
421
 
422
- #: ../socializer-admin.php:715
423
  msgid "Custom 1"
424
  msgstr "自定义1"
425
 
426
- #: ../socializer-admin.php:718
427
- #: ../socializer-admin.php:725
428
  #, php-format
429
  msgid "Enter any share button code. Use %s for the page url and %s for page title"
430
  msgstr "输入任何代码共享按钮。%s使用的页面的URL和页面标题%s"
431
 
432
- #: ../socializer-admin.php:720
433
- #: ../socializer-admin.php:728
434
- #, php-format
435
- msgid "For using this, use the code %s in the placement template"
436
- msgstr "对于使用,使用中的配售代码模板%s"
437
-
438
- #: ../socializer-admin.php:722
439
  msgid "Custom 2"
440
  msgstr "自定义2"
441
 
442
- #: ../socializer-admin.php:734
443
- msgid "Available button codes"
444
- msgstr "可用按钮的代码"
445
-
446
- #: ../socializer-admin.php:736
447
  msgid "Template 1"
448
  msgstr "模板1"
449
 
450
- #: ../socializer-admin.php:745
451
- #: ../socializer-admin.php:788
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
452
  msgid "Show in front page"
453
  msgstr "显示在头版"
454
 
455
- #: ../socializer-admin.php:747
456
- #: ../socializer-admin.php:790
457
  msgid "Show in individual posts"
458
  msgstr "显示在个别职位"
459
 
460
- #: ../socializer-admin.php:749
461
- #: ../socializer-admin.php:792
462
  msgid "Show in pages"
463
  msgstr "显示在网页"
464
 
465
- #: ../socializer-admin.php:751
466
- #: ../socializer-admin.php:794
467
  msgid "Show in archive pages"
468
  msgstr "在档案显示页"
469
 
470
- #: ../socializer-admin.php:753
471
- #: ../socializer-admin.php:796
472
  msgid "Show in Tag pages"
473
  msgstr "显示在标签页"
474
 
475
- #: ../socializer-admin.php:755
476
- #: ../socializer-admin.php:798
477
  msgid "Show in date archives"
478
  msgstr "日期显示档案"
479
 
480
- #: ../socializer-admin.php:757
481
- #: ../socializer-admin.php:800
482
  msgid "Show in author pages"
483
  msgstr "展的作者页"
484
 
485
- #: ../socializer-admin.php:759
486
- #: ../socializer-admin.php:802
487
  msgid "Show in search pages"
488
  msgstr "在搜索显示页面"
489
 
490
- #: ../socializer-admin.php:761
491
- #: ../socializer-admin.php:804
492
  msgid "Show in Excerpt"
493
  msgstr "展摘录"
494
 
495
- #: ../socializer-admin.php:763
496
- #: ../socializer-admin.php:806
497
  msgid "Show in RSS feeds"
498
  msgstr "在RSS显示供稿"
499
 
500
- #: ../socializer-admin.php:771
501
- #: ../socializer-admin.php:814
502
  msgid "Position"
503
  msgstr "位置"
504
 
505
- #: ../socializer-admin.php:772
506
- #: ../socializer-admin.php:815
507
  msgid "Above content"
508
  msgstr "以上内容"
509
 
510
- #: ../socializer-admin.php:773
511
- #: ../socializer-admin.php:816
512
  msgid "Below content"
513
  msgstr "以下内容"
514
 
515
- #: ../socializer-admin.php:779
516
- msgid "Template 2"
517
- msgstr "模板2"
 
 
 
 
 
 
 
 
 
518
 
519
- #: ../socializer-admin.php:825
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
520
  msgid "WP Socializer Settings"
521
  msgstr "WP Socializer 设置"
522
 
523
- #: ../socializer-admin.php:829
524
  msgid "Load button scripts in "
525
  msgstr "Load按钮剧本"
526
 
527
- #: ../socializer-admin.php:831
528
  msgid "Header (recommended)"
529
  msgstr "头(推荐)"
530
 
531
- #: ../socializer-admin.php:832
532
  msgid "Footer"
533
  msgstr "页脚"
534
 
535
- #: ../socializer-admin.php:837
 
 
 
 
 
 
 
 
 
536
  msgid "Disable WP Socializer"
537
  msgstr "禁用 WP Socializer"
538
 
539
- #: ../socializer-admin.php:840
540
  msgid "Temporarily disable all WP-Socializer buttons "
541
  msgstr "按钮暂时关闭所有WP-Socializer"
542
 
543
- #: ../socializer-admin.php:841
544
  msgid "Disabling will stop displaying all buttons, templates"
545
  msgstr "禁用所有按钮将停止显示,模板"
546
 
547
- #: ../socializer-admin.php:852
548
  msgid "Update"
549
  msgstr "更新"
550
 
551
- #: ../socializer-admin.php:856
552
- msgid "Donate"
553
- msgstr "捐赠"
554
 
555
- #: ../socializer-admin.php:856
556
- #: ../socializer-admin.php:906
557
- msgid "Help"
558
- msgstr "帮助"
559
 
560
- #: ../socializer-admin.php:856
561
- msgid "Twitter"
562
- msgstr "Twitter"
563
 
564
- #: ../socializer-admin.php:857
565
- msgid "a aakashweb.com plugin"
 
566
  msgstr "这是一个aakashweb.com插件"
567
 
568
- #: ../socializer-admin.php:902
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
569
  msgid "Disable template 1"
570
  msgstr "禁用模板1"
571
 
572
- #: ../socializer-admin.php:904
573
  msgid "Disable template 2"
574
  msgstr "禁用模板2"
575
 
576
- #: ../wp-socializer.php:1080
577
- msgid "AW Latest Updates"
578
- msgstr "AW最新更新"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
579
 
 
 
2
  msgstr ""
3
  "Project-Id-Version: WP Socializer\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-07-15 20:43+0530\n"
6
+ "PO-Revision-Date: 2011-07-15 20:52+0530\n"
7
  "Last-Translator: Aakash Chakravarthy <aakash.19493@gmail.com>\n"
8
  "Language-Team: Aakash Chakravarthy <aakash.19493@gmail.com>\n"
9
  "MIME-Version: 1.0\n"
14
  "X-Poedit-Language: Chinese\n"
15
  "X-Poedit-SearchPath-0: ..\n"
16
 
17
+ #: ../wp-socializer.php:38
18
+ #: ../wp-socializer.php:45
19
+ #: ../wp-socializer.php:52
20
+ #: ../wp-socializer.php:60
21
+ #: ../wp-socializer.php:76
22
+ #: ../wp-socializer.php:90
23
+ #: ../wp-socializer.php:97
24
+ #: ../wp-socializer.php:113
25
+ #: ../wp-socializer.php:120
26
+ #: ../wp-socializer.php:137
27
+ #: ../wp-socializer.php:175
28
+ #: ../wp-socializer.php:192
29
+ #: ../wp-socializer.php:209
30
+ #: ../wp-socializer.php:217
31
+ #: ../wp-socializer.php:224
32
+ #: ../wp-socializer.php:231
33
+ #: ../wp-socializer.php:239
34
+ #: ../wp-socializer.php:247
35
+ #: ../wp-socializer.php:256
36
+ #: ../wp-socializer.php:287
37
+ #: ../wp-socializer.php:295
38
+ #: ../wp-socializer.php:303
39
+ #: ../wp-socializer.php:312
40
+ #: ../wp-socializer.php:333
41
+ #: ../wp-socializer.php:347
42
+ #: ../wp-socializer.php:357
43
+ #: ../wp-socializer.php:364
44
+ #: ../wp-socializer.php:380
45
+ #: ../wp-socializer.php:397
46
+ #: ../wp-socializer.php:411
47
+ #: ../wp-socializer.php:425
48
+ #: ../wp-socializer.php:433
49
+ #: ../wp-socializer.php:479
50
+ #: ../wp-socializer.php:486
51
+ #: ../wp-socializer.php:493
52
+ #: ../wp-socializer.php:500
53
+ #: ../wp-socializer.php:517
54
+ #: ../wp-socializer.php:524
55
+ #: ../wp-socializer.php:532
56
+ #: ../wp-socializer.php:547
57
+ #: ../wp-socializer.php:555
58
+ #: ../wp-socializer.php:564
59
+ #: ../wp-socializer.php:572
60
+ #: ../wp-socializer.php:589
61
+ #: ../wp-socializer.php:597
62
+ #: ../wp-socializer.php:629
63
+ #: ../wp-socializer.php:654
64
+ #: ../wp-socializer.php:668
65
+ #: ../wp-socializer.php:682
66
+ #: ../wp-socializer.php:689
67
+ #: ../wp-socializer.php:696
68
+ #: ../wp-socializer.php:721
69
+ #: ../wp-socializer.php:743
70
+ #: ../wp-socializer.php:770
71
+ #: ../wp-socializer.php:779
72
+ #: ../wp-socializer.php:786
73
+ #: ../wp-socializer.php:793
74
+ #: ../wp-socializer.php:812
75
+ #: ../wp-socializer.php:819
76
+ #: ../wp-socializer.php:854
77
+ #, fuzzy
78
+ msgid "Share this on "
79
+ msgstr "分享按钮"
80
+
81
+ #: ../wp-socializer.php:68
82
+ #: ../wp-socializer.php:129
83
+ #: ../wp-socializer.php:168
84
+ #: ../wp-socializer.php:279
85
+ #: ../wp-socializer.php:507
86
+ #: ../wp-socializer.php:661
87
+ #: ../wp-socializer.php:703
88
+ #, fuzzy
89
+ msgid "Post this on "
90
+ msgstr "位置"
91
+
92
+ #: ../wp-socializer.php:83
93
+ #: ../wp-socializer.php:145
94
+ #: ../wp-socializer.php:153
95
+ #: ../wp-socializer.php:161
96
+ #: ../wp-socializer.php:264
97
+ #: ../wp-socializer.php:319
98
+ #: ../wp-socializer.php:326
99
+ #: ../wp-socializer.php:371
100
+ #: ../wp-socializer.php:388
101
+ #: ../wp-socializer.php:404
102
+ #: ../wp-socializer.php:450
103
+ #: ../wp-socializer.php:471
104
+ #: ../wp-socializer.php:613
105
+ #: ../wp-socializer.php:636
106
+ #: ../wp-socializer.php:711
107
+ #: ../wp-socializer.php:736
108
+ #: ../wp-socializer.php:761
109
+ #: ../wp-socializer.php:846
110
+ msgid "Submit this to "
111
+ msgstr "提交此为"
112
+
113
+ #: ../wp-socializer.php:104
114
+ #, fuzzy
115
+ msgid "Add this on "
116
+ msgstr "Addthis 用户名"
117
+
118
+ #: ../wp-socializer.php:182
119
+ #: ../wp-socializer.php:418
120
+ #: ../wp-socializer.php:440
121
+ #: ../wp-socializer.php:457
122
+ #: ../wp-socializer.php:539
123
+ #: ../wp-socializer.php:622
124
+ #: ../wp-socializer.php:675
125
+ #: ../wp-socializer.php:728
126
+ #: ../wp-socializer.php:829
127
+ #: ../wp-socializer.php:838
128
+ msgid "Add this to "
129
+ msgstr "加入此为"
130
+
131
+ #: ../wp-socializer.php:199
132
+ msgid "Email this "
133
+ msgstr "使用电子邮件发送此"
134
+
135
+ #: ../wp-socializer.php:271
136
+ #: ../wp-socializer.php:340
137
+ msgid "Bookmark this on "
138
+ msgstr "书签上"
139
+
140
+ #: ../wp-socializer.php:582
141
+ msgid "Convert to "
142
+ msgstr "转换为"
143
+
144
+ #: ../wp-socializer.php:605
145
+ msgid "Print this article "
146
+ msgstr "打印这篇文章"
147
+
148
+ #: ../wp-socializer.php:644
149
+ #, fuzzy
150
+ msgid "Subscribe to "
151
+ msgstr "订阅更新"
152
+
153
+ #: ../wp-socializer.php:751
154
+ msgid "Tweet this !"
155
+ msgstr "鸣叫这!"
156
+
157
+ #: ../wp-socializer.php:937
158
+ msgid "<b>WP Socializer</b> plugin is intalled. Please adjust your settings"
159
+ msgstr "<b>可湿性粉剂Socializer</b>插件安装。请调整您的设置"
160
+
161
+ #: ../wp-socializer.php:937
162
+ #, fuzzy
163
+ msgid "in this page"
164
+ msgstr "展的作者页"
165
+
166
+ #: ../wp-socializer.php:947
167
+ #: ../admin/wpsr-admin.php:752
168
+ #: ../admin/wpsr-admin.php:859
169
+ #: ../admin/wpsr-admin.php:1059
170
+ #: ../admin/wpsr-admin.php:1461
171
+ #: ../admin/wpsr-admin.php:1637
172
+ msgid "Settings"
173
+ msgstr "设置"
174
 
175
+ #: ../wp-socializer.php:947
176
+ #: ../admin/wpsr-admin.php:757
177
+ #: ../admin/wpsr-admin.php:1565
178
+ #, fuzzy
179
+ msgid "Support"
180
  msgstr "插件支持"
181
 
182
+ #: ../wp-socializer.php:1527
183
+ msgid "AW Latest Updates"
184
+ msgstr "AW最新更新"
185
 
186
+ #: ../wp-socializer.php:1538
187
+ msgid "WP Socializer is <span style=\"color:red;\"><b>disabled</b></span>"
188
+ msgstr "WP Socializer是禁用"
189
 
190
+ #: ../wp-socializer.php:1552
191
+ #, fuzzy
192
+ msgid "Edit the templates"
193
+ msgstr "禁用模板1"
194
 
195
+ #: ../wp-socializer.php:1557
196
+ #, fuzzy
197
+ msgid "Disable WP Socializer in this page"
198
+ msgstr "禁用 WP Socializer"
199
 
200
+ #: ../wp-socializer.php:1597
201
+ #, fuzzy
202
+ msgid "WP Socializer"
203
+ msgstr "禁用 WP Socializer"
204
 
205
+ #: ../wp-socializer.php:1598
206
+ #, fuzzy
207
+ msgid "Insert WP Socializer buttons"
208
+ msgstr "WP Socializer 设置"
209
 
210
+ #: ../admin/wpsr-admin-other.php:36
211
+ msgid "In widgets and posts"
212
+ msgstr "In widgets and posts"
213
 
214
+ #: ../admin/wpsr-admin-other.php:37
215
+ #: ../admin/wpsr-admin-other.php:91
216
+ msgid "Note:"
217
+ msgstr "注意:"
218
 
219
+ #: ../admin/wpsr-admin-other.php:37
220
+ msgid "Inorder to use the buttons in <em>Widgets</em> and <em>Posts</em>, you need to use the below shortcodes."
221
+ msgstr "为了使用“部件”和“上岗”的按钮,你需要使用下面的简码。"
222
+
223
+ #: ../admin/wpsr-admin-other.php:63
224
+ msgid "These shortcodes have several parameters. You can use them to customize the buttons. View the parameters in this page."
225
+ msgstr "这些简码有几个参数。您可以使用这些自定义的按钮。在此页面上的参数。"
226
+
227
+ #: ../admin/wpsr-admin-other.php:66
228
+ msgid "You must use the above shortcodes in"
229
+ msgstr "您必须使用上述简码"
230
+
231
+ #: ../admin/wpsr-admin-other.php:66
232
+ msgid "plugin to insert the buttons in the widgets."
233
+ msgstr "插件插入部件的按钮。"
234
+
235
+ #: ../admin/wpsr-admin-other.php:72
236
+ msgid "HTML Javascript Adder is installed, Go to Widgets page and use the shortcodes in this widget"
237
+ msgstr "安装了HTML中的JavaScript加法器,转到小部件页,在这个小部件中使用的简码"
238
+
239
+ #: ../admin/wpsr-admin-other.php:75
240
+ msgid "Upgrade HTML Javascript Adder plugin"
241
+ msgstr "升级HTML中的JavaScript加法器插件"
242
+
243
+ #: ../admin/wpsr-admin-other.php:76
244
+ msgid "The current version ("
245
+ msgstr "当前版本("
246
+
247
+ #: ../admin/wpsr-admin-other.php:76
248
+ msgid ") is not compatible with WP Socializer. It is recommended to upgrade"
249
+ msgstr ")不兼容可湿性粉剂Socializer。建议升级"
250
+
251
+ #: ../admin/wpsr-admin-other.php:79
252
+ msgid "Install HTML Javascript Adder plugin"
253
+ msgstr "安装HTML中的JavaScript加法器插件"
254
 
255
+ #: ../admin/wpsr-admin-other.php:86
256
+ msgid "Inside Posts"
257
+ msgstr "内文章"
258
 
259
+ #: ../admin/wpsr-admin-other.php:87
260
+ msgid "Inorder to use the buttons inside posts, you must use the above shortcodes in the post editor."
261
+ msgstr "以使用内部职位的按钮,您必须使用在帖子编辑器上面的简码。"
262
 
263
+ #: ../admin/wpsr-admin-other.php:91
264
+ msgid "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."
265
+ msgstr "HTML中的JavaScript加法器是一个WordPress插件下载超过50,000次插入HTML,在部件的JavaScripts。这是这个插件的作者。 HJA的最新版本可以在部件插入WP Socializer按钮。"
266
 
267
+ #: ../admin/wpsr-admin.php:185
268
+ msgid "Share and Enjoy"
269
+ msgstr "分享和欣赏"
270
+
271
+ #: ../admin/wpsr-admin.php:188
272
+ msgid "Use Sharethis to share this post"
273
+ msgstr "使用Sharethis分享这篇文章"
274
+
275
+ #: ../admin/wpsr-admin.php:191
276
+ msgid "Use Addhis to share this post"
277
+ msgstr "使用Addhis分享这篇文章"
278
+
279
+ #: ../admin/wpsr-admin.php:508
280
  msgid "Updated successfully"
281
  msgstr "更新成功"
282
 
283
+ #: ../admin/wpsr-admin.php:512
284
+ msgid "Values are set to defaults successfully"
285
+ msgstr "价值观是成功设置为默认值"
286
+
287
+ #: ../admin/wpsr-admin.php:516
288
+ msgid "Welcome to WP Socializer Admin page. <a href=\"http://\">Click here</a> to get started with WP Socializer"
289
+ msgstr "欢迎WP Socializer管理页面。"
290
+
291
+ #: ../admin/wpsr-admin.php:659
292
  msgid "Disabled"
293
  msgstr "残疾人士"
294
 
295
+ #: ../admin/wpsr-admin.php:673
296
+ #, fuzzy
297
+ msgid "+1 this plugin"
298
+ msgstr "支持此插件"
299
+
300
+ #: ../admin/wpsr-admin.php:679
301
+ #, fuzzy
302
+ msgid "Like this plugin"
303
+ msgstr "推动这个插件"
304
+
305
+ #: ../admin/wpsr-admin.php:686
306
+ msgid "Donate"
307
+ msgstr "捐赠"
308
+
309
+ #: ../admin/wpsr-admin.php:687
310
+ #, fuzzy
311
+ msgid "and Support"
312
+ msgstr "插件支持"
313
+
314
+ #: ../admin/wpsr-admin.php:693
315
+ msgid "Make your donation with Paypal"
316
+ msgstr "您的捐赠与贝宝"
317
+
318
+ #: ../admin/wpsr-admin.php:699
319
+ msgid "Select your Donation amount:"
320
+ msgstr "选择你的捐款金额:"
321
+
322
+ #: ../admin/wpsr-admin.php:721
323
+ #, fuzzy
324
+ msgid "Custom"
325
+ msgstr "自定义1"
326
+
327
+ #: ../admin/wpsr-admin.php:731
328
+ #: ../admin/wpsr-admin.php:1578
329
+ msgid "Donate with PayPal!"
330
+ msgstr "使用PayPal捐款!"
331
+
332
+ #: ../admin/wpsr-admin.php:756
333
+ #: ../admin/wpsr-admin.php:1565
334
+ #, fuzzy
335
+ msgid "Documentation"
336
+ msgstr "插件文件"
337
+
338
+ #: ../admin/wpsr-admin.php:758
339
+ #: ../admin/wpsr-admin.php:1564
340
+ msgid "Manual Placement"
341
+ msgstr "手动放置"
342
+
343
+ #: ../admin/wpsr-admin.php:767
344
+ msgid "Use the above code <a href=\"#tab-9\">here</a>, to insert the button"
345
+ msgstr "使用上面的代码<a href=\"#tab-9\">这里</a>,插入按钮"
346
+
347
+ #: ../admin/wpsr-admin.php:781
348
+ msgid "Select a template and click apply."
349
+ msgstr "选择一个模板,并单击应用。"
350
+
351
+ #: ../admin/wpsr-admin.php:783
352
+ #, fuzzy
353
+ msgid "Create a template"
354
+ msgstr "禁用模板1"
355
+
356
+ #: ../admin/wpsr-admin.php:783
357
+ #, fuzzy
358
+ msgid "Submit a template"
359
+ msgstr "禁用模板1"
360
+
361
+ #: ../admin/wpsr-admin.php:791
362
  msgid "Social Buttons"
363
  msgstr "社会按钮"
364
 
365
+ #: ../admin/wpsr-admin.php:794
366
  msgid "Click the icon size to select and \"x\" button to remove selected. Click and drag to reorder selected sites"
367
  msgstr "点击图标大小选择和 \"x\" 按钮可以删除选中。单击并拖动以重新排列选定地点"
368
 
369
+ #: ../admin/wpsr-admin.php:798
370
  msgid "Available buttons"
371
  msgstr "可用按钮"
372
 
373
+ #: ../admin/wpsr-admin.php:798
374
+ #, fuzzy
375
+ msgid "Filter buttons"
376
  msgstr "选择按钮"
377
 
378
+ #: ../admin/wpsr-admin.php:798
379
+ #, fuzzy
380
+ msgid "Filter"
381
+ msgstr "页脚"
382
+
383
+ #: ../admin/wpsr-admin.php:826
384
+ #: ../admin/wpsr-admin.php:841
385
+ msgid "Selected buttons"
386
+ msgstr "选择按钮"
387
 
388
+ #: ../admin/wpsr-admin.php:863
389
  msgid "Open links in new tab/window"
390
  msgstr "在新标签中打开链接/窗口"
391
 
392
+ #: ../admin/wpsr-admin.php:865
393
+ #: ../admin/wpsr-admin.php:880
394
+ #: ../admin/wpsr-admin.php:908
395
+ #: ../admin/wpsr-admin.php:996
396
+ #: ../admin/wpsr-admin.php:1069
397
+ #: ../admin/wpsr-admin.php:1238
398
+ #: ../admin/wpsr-admin.php:1287
399
+ #: ../admin/wpsr-admin.php:1509
400
+ #: ../admin/wpsr-admin.php:1526
401
  msgid "Yes"
402
  msgstr "对"
403
 
404
+ #: ../admin/wpsr-admin.php:866
405
+ #: ../admin/wpsr-admin.php:881
406
+ #: ../admin/wpsr-admin.php:909
407
+ #: ../admin/wpsr-admin.php:997
408
+ #: ../admin/wpsr-admin.php:1070
409
+ #: ../admin/wpsr-admin.php:1239
410
+ #: ../admin/wpsr-admin.php:1288
411
+ #: ../admin/wpsr-admin.php:1512
412
+ #: ../admin/wpsr-admin.php:1525
413
  msgid "No"
414
  msgstr "没有"
415
 
416
+ #: ../admin/wpsr-admin.php:870
 
 
 
 
 
 
 
 
417
  msgid "Image on Hover effect"
418
  msgstr "在悬停图像效果"
419
 
420
+ #: ../admin/wpsr-admin.php:874
421
  msgid "No Effect"
422
  msgstr "没有影响"
423
 
424
+ #: ../admin/wpsr-admin.php:878
425
  msgid "Show Label for buttons"
426
  msgstr "显示标签的按钮"
427
 
428
+ #: ../admin/wpsr-admin.php:885
429
  msgid "Show Icons in"
430
  msgstr "在显示图标"
431
 
432
+ #: ../admin/wpsr-admin.php:886
433
  msgid "Very very effective when labels are enabled (try it)"
434
  msgstr "非常非常有效的标签,当启用(尝试)"
435
 
436
+ #: ../admin/wpsr-admin.php:896
437
  msgid "Image folder"
438
  msgstr "图像文件夹"
439
 
440
+ #: ../admin/wpsr-admin.php:897
441
+ #: ../admin/wpsr-admin.php:932
442
+ #: ../admin/wpsr-admin.php:940
443
+ #: ../admin/wpsr-admin.php:992
444
  msgid "Leave blank to use default"
445
  msgstr "给空白以使用预设"
446
 
447
+ #: ../admin/wpsr-admin.php:906
448
  msgid "Use Sprites"
449
  msgstr "使用精灵"
450
 
451
+ #: ../admin/wpsr-admin.php:926
452
+ #, fuzzy
453
+ msgid "Services"
454
+ msgstr "定制服务"
455
 
456
+ #: ../admin/wpsr-admin.php:960
457
+ #: ../admin/wpsr-admin.php:1017
458
+ #, fuzzy
459
+ msgid "Buttons"
460
+ msgstr "按键"
461
 
462
+ #: ../admin/wpsr-admin.php:974
463
+ msgid "Optional button Settings"
464
+ msgstr "可选按钮设置"
 
465
 
466
+ #: ../admin/wpsr-admin.php:979
467
  msgid "Add This Username"
468
  msgstr "Addthis 用户名"
469
 
470
+ #: ../admin/wpsr-admin.php:983
471
  msgid "If available"
472
  msgstr "如果可用"
473
 
474
+ #: ../admin/wpsr-admin.php:985
475
+ #: ../admin/wpsr-admin.php:1102
476
+ #: ../admin/wpsr-admin.php:1188
477
  msgid "Language"
478
  msgstr "语"
479
 
480
+ #: ../admin/wpsr-admin.php:991
 
 
 
 
 
 
 
 
481
  msgid "Brand Name"
482
  msgstr "品牌名称"
483
 
484
+ #: ../admin/wpsr-admin.php:994
485
+ msgid "Track Clickback"
486
+ msgstr "轨道点击返回"
 
 
 
 
487
 
488
+ #: ../admin/wpsr-admin.php:1001
489
  msgid "Header Color"
490
  msgstr "标题颜色"
491
 
492
+ #: ../admin/wpsr-admin.php:1003
493
  msgid "Header Background"
494
  msgstr "标题背景"
495
 
496
+ #: ../admin/wpsr-admin.php:1018
497
+ #, fuzzy
498
+ msgid "Button type"
499
+ msgstr "按钮样式"
 
 
 
 
 
 
500
 
501
+ #: ../admin/wpsr-admin.php:1019
502
+ #, fuzzy
503
+ msgid "Button Order"
504
+ msgstr "按钮文本"
505
+
506
+ #: ../admin/wpsr-admin.php:1020
507
+ msgid "Reorder, remove or add social buttons"
508
+ msgstr "重新排序,删除或添加社会的按钮"
509
+
510
+ #: ../admin/wpsr-admin.php:1064
511
+ msgid "You can see you publisher key in this page. "
512
+ msgstr "你可以看到你的出版商在此页的关键。"
513
+
514
+ #: ../admin/wpsr-admin.php:1064
515
+ #: ../admin/wpsr-admin.php:1114
516
+ msgid "Click here"
517
+ msgstr "点击这里"
518
+
519
+ #: ../admin/wpsr-admin.php:1081
520
  msgid "Post to Buzz button"
521
  msgstr "邮政巴兹按钮"
522
 
523
+ #: ../admin/wpsr-admin.php:1086
524
+ #: ../admin/wpsr-admin.php:1278
525
  msgid "Style"
526
  msgstr "风格"
527
 
528
+ #: ../admin/wpsr-admin.php:1088
529
  msgid "Show Button and counter"
530
  msgstr "显示按钮和反"
531
 
532
+ #: ../admin/wpsr-admin.php:1089
533
  msgid "Show Button only"
534
  msgstr "只显示按钮"
535
 
536
+ #: ../admin/wpsr-admin.php:1090
537
  msgid "Show Link only"
538
  msgstr "只显示链接"
539
 
540
+ #: ../admin/wpsr-admin.php:1096
541
  msgid "Size"
542
  msgstr "大小"
543
 
544
+ #: ../admin/wpsr-admin.php:1096
545
+ #: ../admin/wpsr-admin.php:1285
546
  msgid "Not for link"
547
  msgstr "不为连结"
548
 
549
+ #: ../admin/wpsr-admin.php:1097
550
  msgid "Normal"
551
  msgstr "正常"
552
 
553
+ #: ../admin/wpsr-admin.php:1099
554
  msgid "Small"
555
  msgstr "小"
556
 
557
+ #: ../admin/wpsr-admin.php:1108
558
  msgid "Follow on Buzz button"
559
  msgstr "关于口碑后续按钮"
560
 
561
+ #: ../admin/wpsr-admin.php:1113
562
  msgid "Profile URL"
563
  msgstr "个人资料的网址"
564
 
565
+ #: ../admin/wpsr-admin.php:1114
566
  msgid "Don't know your profile URL?"
567
  msgstr "不知道你的个人资料的网址?"
568
 
569
+ #: ../admin/wpsr-admin.php:1117
 
 
 
 
570
  msgid "Button Text"
571
  msgstr "按钮文本"
572
 
573
+ #: ../admin/wpsr-admin.php:1128
574
+ msgid "General"
575
+ msgstr "一般"
576
+
577
+ #: ../admin/wpsr-admin.php:1133
578
  msgid "Twitter Username"
579
  msgstr "Twitter的用户名"
580
 
581
+ #: ../admin/wpsr-admin.php:1137
582
  msgid "Retweet Button Type"
583
  msgstr "Retweet按钮类型"
584
 
585
+ #: ../admin/wpsr-admin.php:1139
586
  msgid "Normal (Big)"
587
  msgstr "正常(大)"
588
 
589
+ #: ../admin/wpsr-admin.php:1140
590
+ #: ../admin/wpsr-admin.php:1213
591
  msgid "Compact"
592
  msgstr "紧凑"
593
 
594
+ #: ../admin/wpsr-admin.php:1141
595
+ msgid "No Count (only for Twitter's Official Button)"
596
+ msgstr "没有计数(仅适用于Twitter的官方按钮)"
597
+
598
+ #: ../admin/wpsr-admin.php:1147
599
  msgid "Choose a service"
600
  msgstr "选择服务"
601
 
602
+ #: ../admin/wpsr-admin.php:1152
603
  msgid "Retweet Service"
604
  msgstr "Retweet服务"
605
 
606
+ #: ../admin/wpsr-admin.php:1154
607
+ msgid "Twitter's Official Button"
608
+ msgstr "Twitter的官方按钮"
609
+
610
+ #: ../admin/wpsr-admin.php:1163
611
  msgid "Select a theme for topsy"
612
  msgstr "选择一个主题Topsy"
613
 
614
+ #: ../admin/wpsr-admin.php:1182
615
+ #, fuzzy
616
+ msgid "Recommend people"
617
+ msgstr "建议"
618
+
619
+ #: ../admin/wpsr-admin.php:1184
620
+ msgid "Twitter Username: Description (Optional)"
621
+ msgstr "Twitter用户名:描述(可选)"
622
+
623
+ #: ../admin/wpsr-admin.php:1205
624
  msgid "Digg Button"
625
  msgstr "Digg的按钮"
626
 
627
+ #: ../admin/wpsr-admin.php:1209
628
  msgid "Digg Button type"
629
  msgstr "Digg的按钮类型"
630
 
631
+ #: ../admin/wpsr-admin.php:1211
632
  msgid "Medium"
633
  msgstr "中"
634
 
635
+ #: ../admin/wpsr-admin.php:1212
636
+ #, fuzzy
637
+ msgid "Wide"
638
+ msgstr "宽度"
639
 
640
+ #: ../admin/wpsr-admin.php:1214
641
  msgid "Icon"
642
  msgstr "图标"
643
 
644
+ #: ../admin/wpsr-admin.php:1224
645
  msgid "Like Button"
646
  msgstr "像巴顿"
647
 
648
+ #: ../admin/wpsr-admin.php:1228
649
  msgid "Button Style"
650
  msgstr "按钮样式"
651
 
652
+ #: ../admin/wpsr-admin.php:1230
653
  msgid "Standard"
654
  msgstr "标准"
655
 
656
+ #: ../admin/wpsr-admin.php:1231
657
+ #, fuzzy
658
+ msgid "Button count"
659
  msgstr "巴顿和计数"
660
 
661
+ #: ../admin/wpsr-admin.php:1232
662
+ #, fuzzy
663
+ msgid "Box count"
664
+ msgstr "巴顿和计数"
665
+
666
+ #: ../admin/wpsr-admin.php:1236
667
  msgid "Show Faces"
668
  msgstr "显示面"
669
 
670
+ #: ../admin/wpsr-admin.php:1243
671
  msgid "Width"
672
  msgstr "宽度"
673
 
674
+ #: ../admin/wpsr-admin.php:1244
675
  msgid "In pixels"
676
  msgstr "在像素"
677
 
678
+ #: ../admin/wpsr-admin.php:1247
679
  msgid "Verb to Display"
680
  msgstr "动词,以显示"
681
 
682
+ #: ../admin/wpsr-admin.php:1249
683
  msgid "Like"
684
  msgstr "喜欢"
685
 
686
+ #: ../admin/wpsr-admin.php:1250
687
  msgid "Recommend"
688
  msgstr "建议"
689
 
690
+ #: ../admin/wpsr-admin.php:1254
691
  msgid "Font"
692
  msgstr "字体"
693
 
694
+ #: ../admin/wpsr-admin.php:1265
695
  msgid "Color scheme"
696
  msgstr "配色方案"
697
 
698
+ #: ../admin/wpsr-admin.php:1267
699
  msgid "Light"
700
  msgstr "光"
701
 
702
+ #: ../admin/wpsr-admin.php:1268
703
  msgid "Dark"
704
  msgstr "黑暗"
705
 
706
+ #: ../admin/wpsr-admin.php:1274
707
  msgid "Share Button"
708
  msgstr "分享按钮"
709
 
710
+ #: ../admin/wpsr-admin.php:1280
711
  msgid "Button"
712
  msgstr "按键"
713
 
714
+ #: ../admin/wpsr-admin.php:1282
715
  msgid "Link"
716
  msgstr "链接"
717
 
718
+ #: ../admin/wpsr-admin.php:1285
719
  msgid "Show Counter"
720
  msgstr "显示计数器"
721
 
722
+ #: ../admin/wpsr-admin.php:1291
723
  msgid "Above the button"
724
  msgstr "上面的按钮"
725
 
726
+ #: ../admin/wpsr-admin.php:1293
727
  msgid "Inline with the Button"
728
  msgstr "内联的按钮"
729
 
730
+ #: ../admin/wpsr-admin.php:1303
731
  msgid "Custom 1"
732
  msgstr "自定义1"
733
 
734
+ #: ../admin/wpsr-admin.php:1306
735
+ #: ../admin/wpsr-admin.php:1312
736
  #, php-format
737
  msgid "Enter any share button code. Use %s for the page url and %s for page title"
738
  msgstr "输入任何代码共享按钮。%s使用的页面的URL和页面标题%s"
739
 
740
+ #: ../admin/wpsr-admin.php:1309
 
 
 
 
 
 
741
  msgid "Custom 2"
742
  msgstr "自定义2"
743
 
744
+ #: ../admin/wpsr-admin.php:1322
 
 
 
 
745
  msgid "Template 1"
746
  msgstr "模板1"
747
 
748
+ #: ../admin/wpsr-admin.php:1323
749
+ msgid "Template 2"
750
+ msgstr "模板2"
751
+
752
+ #: ../admin/wpsr-admin.php:1329
753
+ #: ../admin/wpsr-admin.php:1394
754
+ msgid "Use the menu below to insert the buttons into the template"
755
+ msgstr "使用下面的菜单插入到模板中的按钮"
756
+
757
+ #: ../admin/wpsr-admin.php:1330
758
+ #: ../admin/wpsr-admin.php:1395
759
+ msgid "All HTML/CSS tags can be used. The button codes can be wrapped with HTML tags for proper aligning."
760
+ msgstr "可用于所有的HTML/ CSS标签。按键代码可以适当调整的HTML标签包裹。"
761
+
762
+ #: ../admin/wpsr-admin.php:1344
763
+ #: ../admin/wpsr-admin.php:1409
764
+ msgid "Automatically add paragraphs"
765
+ msgstr "自动添加段落"
766
+
767
+ #: ../admin/wpsr-admin.php:1349
768
+ #: ../admin/wpsr-admin.php:1414
769
+ msgid "Where to show these buttons ?"
770
+ msgstr "这些按钮在哪里显示?"
771
+
772
+ #: ../admin/wpsr-admin.php:1354
773
+ #: ../admin/wpsr-admin.php:1419
774
  msgid "Show in front page"
775
  msgstr "显示在头版"
776
 
777
+ #: ../admin/wpsr-admin.php:1356
778
+ #: ../admin/wpsr-admin.php:1421
779
  msgid "Show in individual posts"
780
  msgstr "显示在个别职位"
781
 
782
+ #: ../admin/wpsr-admin.php:1358
783
+ #: ../admin/wpsr-admin.php:1423
784
  msgid "Show in pages"
785
  msgstr "显示在网页"
786
 
787
+ #: ../admin/wpsr-admin.php:1360
788
+ #: ../admin/wpsr-admin.php:1425
789
  msgid "Show in archive pages"
790
  msgstr "在档案显示页"
791
 
792
+ #: ../admin/wpsr-admin.php:1362
793
+ #: ../admin/wpsr-admin.php:1427
794
  msgid "Show in Tag pages"
795
  msgstr "显示在标签页"
796
 
797
+ #: ../admin/wpsr-admin.php:1364
798
+ #: ../admin/wpsr-admin.php:1429
799
  msgid "Show in date archives"
800
  msgstr "日期显示档案"
801
 
802
+ #: ../admin/wpsr-admin.php:1366
803
+ #: ../admin/wpsr-admin.php:1431
804
  msgid "Show in author pages"
805
  msgstr "展的作者页"
806
 
807
+ #: ../admin/wpsr-admin.php:1368
808
+ #: ../admin/wpsr-admin.php:1433
809
  msgid "Show in search pages"
810
  msgstr "在搜索显示页面"
811
 
812
+ #: ../admin/wpsr-admin.php:1370
813
+ #: ../admin/wpsr-admin.php:1435
814
  msgid "Show in Excerpt"
815
  msgstr "展摘录"
816
 
817
+ #: ../admin/wpsr-admin.php:1372
818
+ #: ../admin/wpsr-admin.php:1437
819
  msgid "Show in RSS feeds"
820
  msgstr "在RSS显示供稿"
821
 
822
+ #: ../admin/wpsr-admin.php:1376
823
+ #: ../admin/wpsr-admin.php:1440
824
  msgid "Position"
825
  msgstr "位置"
826
 
827
+ #: ../admin/wpsr-admin.php:1379
828
+ #: ../admin/wpsr-admin.php:1442
829
  msgid "Above content"
830
  msgstr "以上内容"
831
 
832
+ #: ../admin/wpsr-admin.php:1381
833
+ #: ../admin/wpsr-admin.php:1444
834
  msgid "Below content"
835
  msgstr "以下内容"
836
 
837
+ #: ../admin/wpsr-admin.php:1455
838
+ #, fuzzy
839
+ msgid "FAQ"
840
+ msgstr "常见问题"
841
+
842
+ #: ../admin/wpsr-admin.php:1455
843
+ msgid "Why sometimes the buttons are not aligned properly in the page ?"
844
+ msgstr "为什么有时没有正确对齐按钮在页面?"
845
+
846
+ #: ../admin/wpsr-admin.php:1467
847
+ msgid "URL"
848
+ msgstr "URL"
849
 
850
+ #: ../admin/wpsr-admin.php:1468
851
+ #, fuzzy
852
+ msgid "Leave blank to use default Wordpress RSS feed."
853
+ msgstr "给空白以使用预设"
854
+
855
+ #: ../admin/wpsr-admin.php:1468
856
+ msgid "You can use Feedburner feed URL also"
857
+ msgstr "您也可以使用Feedburner的供稿网址"
858
+
859
+ #: ../admin/wpsr-admin.php:1475
860
+ msgid "Integration"
861
+ msgstr "集成"
862
+
863
+ #: ../admin/wpsr-admin.php:1479
864
+ #, fuzzy
865
+ msgid "Username"
866
+ msgstr "Twitter的用户名"
867
+
868
+ #: ../admin/wpsr-admin.php:1491
869
  msgid "WP Socializer Settings"
870
  msgstr "WP Socializer 设置"
871
 
872
+ #: ../admin/wpsr-admin.php:1495
873
  msgid "Load button scripts in "
874
  msgstr "Load按钮剧本"
875
 
876
+ #: ../admin/wpsr-admin.php:1497
877
  msgid "Header (recommended)"
878
  msgstr "头(推荐)"
879
 
880
+ #: ../admin/wpsr-admin.php:1498
881
  msgid "Footer"
882
  msgstr "页脚"
883
 
884
+ #: ../admin/wpsr-admin.php:1502
885
+ msgid "Load WP Socializer CSS"
886
+ msgstr "负载 WP Socializer CSS"
887
+
888
+ #: ../admin/wpsr-admin.php:1505
889
+ #, fuzzy
890
+ msgid "Note: templates, hover effects &amp; column will not work"
891
+ msgstr "注:悬停效果和列将无法使用"
892
+
893
+ #: ../admin/wpsr-admin.php:1519
894
  msgid "Disable WP Socializer"
895
  msgstr "禁用 WP Socializer"
896
 
897
+ #: ../admin/wpsr-admin.php:1522
898
  msgid "Temporarily disable all WP-Socializer buttons "
899
  msgstr "按钮暂时关闭所有WP-Socializer"
900
 
901
+ #: ../admin/wpsr-admin.php:1523
902
  msgid "Disabling will stop displaying all buttons, templates"
903
  msgstr "禁用所有按钮将停止显示,模板"
904
 
905
+ #: ../admin/wpsr-admin.php:1533
906
  msgid "Update"
907
  msgstr "更新"
908
 
909
+ #: ../admin/wpsr-admin.php:1534
910
+ msgid "Reset all"
911
+ msgstr "全部重设"
912
 
913
+ #: ../admin/wpsr-admin.php:1538
914
+ msgid "Sure"
915
+ msgstr "确保"
 
916
 
917
+ #: ../admin/wpsr-admin.php:1538
918
+ msgid "Cancel"
919
+ msgstr "取消"
920
 
921
+ #: ../admin/wpsr-admin.php:1544
922
+ #, fuzzy
923
+ msgid "a Aakash Web plugin"
924
  msgstr "这是一个aakashweb.com插件"
925
 
926
+ #: ../admin/wpsr-admin.php:1565
927
+ msgid "Full Features"
928
+ msgstr "全功能"
929
+
930
+ #: ../admin/wpsr-admin.php:1566
931
+ #, fuzzy
932
+ msgid "Bug Report"
933
+ msgstr "错误报告"
934
+
935
+ #: ../admin/wpsr-admin.php:1566
936
+ msgid "Video Demo & Tutorials"
937
+ msgstr "视频演示及教程"
938
+
939
+ #: ../admin/wpsr-admin.php:1569
940
+ #, fuzzy
941
+ msgid "Share this plugin"
942
+ msgstr "支持此插件"
943
+
944
+ #: ../admin/wpsr-admin.php:1576
945
+ msgid "Support this plugin"
946
+ msgstr "支持此插件"
947
+
948
+ #: ../admin/wpsr-admin.php:1579
949
+ msgid "Subscribe to Updates"
950
+ msgstr "订阅更新"
951
+
952
+ #: ../admin/wpsr-admin.php:1583
953
+ #, fuzzy
954
+ msgid "Start using WP Socializer"
955
+ msgstr "禁用 WP Socializer"
956
+
957
+ #: ../admin/wpsr-admin.php:1631
958
  msgid "Disable template 1"
959
  msgstr "禁用模板1"
960
 
961
+ #: ../admin/wpsr-admin.php:1634
962
  msgid "Disable template 2"
963
  msgstr "禁用模板2"
964
 
965
+ #: ../admin/wpsr-admin.php:1637
966
+ msgid "Help"
967
+ msgstr "帮助"
968
+
969
+ #: ../includes/wpsr-addthis.php:123
970
+ msgid "Share with Addthis"
971
+ msgstr "占与Addthis个"
972
+
973
+ #: ../includes/wpsr-digg.php:53
974
+ #, fuzzy
975
+ msgid "Digg this"
976
+ msgstr "Digg的按钮"
977
+
978
+ #: ../includes/wpsr-facebook.php:30
979
+ msgid "Share on Facebook"
980
+ msgstr "分享到Facebook"
981
+
982
+ #: ../includes/wpsr-google.php:135
983
+ msgid "Buzz this"
984
+ msgstr "Buzz this"
985
+
986
+ #: ../includes/wpsr-other.php:24
987
+ msgid "Reddit this"
988
+ msgstr "Reddit this"
989
+
990
+ #: ../includes/wpsr-other.php:94
991
+ msgid "Stumble this"
992
+ msgstr "Stumble this"
993
+
994
+ #: ../includes/wpsr-retweet.php:56
995
+ #, fuzzy
996
+ msgid "Retweet this"
997
+ msgstr "Retweet服务"
998
+
999
+ #~ msgid "Donate and support this plugin's future"
1000
+ #~ msgstr "捐赠和支持这个插件的未来"
1001
+
1002
+ #~ msgid "Request a feature"
1003
+ #~ msgstr "要求一个功能"
1004
+
1005
+ #~ msgid "Author Website"
1006
+ #~ msgstr "作者网站"
1007
+
1008
+ #~ msgid "Follow the author"
1009
+ #~ msgstr "按照作者"
1010
+
1011
+ #~ msgid "More plugins"
1012
+ #~ msgstr "更多的插件"
1013
+
1014
+ #~ msgid "Reference"
1015
+ #~ msgstr "参考"
1016
+
1017
+ #~ msgid "Template Functions"
1018
+ #~ msgstr "模板功能"
1019
+
1020
+ #~ msgid ""
1021
+ #~ "For using the 16px buttons, use the code %s in the placement template"
1022
+ #~ msgstr "对于使用16px按钮,使用该模板放置的代码%s"
1023
+
1024
+ #~ msgid ""
1025
+ #~ "For using the 32px buttons, use the code %s in the placement template"
1026
+ #~ msgstr "对于使用32px按钮,使用该模板放置的代码%s"
1027
+
1028
+ #~ msgid "Choose the Bookmarking or sharing button"
1029
+ #~ msgstr "选择书签或共享按钮"
1030
+
1031
+ #~ msgid "comma-seperated"
1032
+ #~ msgstr "逗号分隔的"
1033
+
1034
+ #~ msgid "For using this button, use the code %s in the placement template"
1035
+ #~ msgstr "使用此按钮,请在模板放置代码%s"
1036
+
1037
+ #~ msgid "Large"
1038
+ #~ msgstr "大"
1039
+
1040
+ #~ msgid "For using this, use the code %s in the placement template"
1041
+ #~ msgstr "对于使用,使用中的配售代码模板%s"
1042
+
1043
+ #~ msgid "Available button codes"
1044
+ #~ msgstr "可用按钮的代码"
1045
 
1046
+ #~ msgid "Twitter"
1047
+ #~ msgstr "Twitter"
public/buttons/Thumbs.db ADDED
Binary file
public/buttons/buzz-bt.png ADDED
Binary file
public/buttons/digg-bt.png ADDED
Binary file
public/buttons/facebook-bt.png ADDED
Binary file
public/buttons/reddit-bt.gif ADDED
Binary file
public/buttons/retweet-bt.png ADDED
Binary file
public/buttons/sharethis-bt.png ADDED
Binary file
public/buttons/stumbleupon-bt.gif ADDED
Binary file
public/css/wp-socializer-buttons-css.css ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * WP Socializer Social buttons - CSS File - v2.0
3
+ * Author: Aakash Chakravarthy
4
+ */
5
+
6
+ .wp-socializer{
7
+ display: block;
8
+ margin: 0px 0px 10px;
9
+ padding: 0px;
10
+ }
11
+ .wp-socializer ul {
12
+ display: inline;
13
+ margin: 0 !important;
14
+ padding: 0 !important;
15
+ }
16
+ .wp-socializer ul li {
17
+ background: none;
18
+ /*display: inline !important;*/
19
+ list-style-type: none !important;
20
+ margin: 0px 5px 5px 0px;
21
+ padding: 0px;
22
+ float: left !important;
23
+ }
24
+ .wp-socializer ul li:before {
25
+ content: "";
26
+ }
27
+ .wp-socializer img, .wp-socializer-single img{
28
+ float: none;
29
+ vertical-align:middle;
30
+ margin: 0px 5px 0px 0px !important;
31
+ padding: 0px !important;
32
+ }
33
+ .wp-socializer-single{
34
+ margin-right: 10px;
35
+ }
36
+ .addthis_button img{
37
+ border: 0;
38
+ margin: 0;
39
+ padding: 0;
40
+ }
41
+ .wp-socializer-clearer{
42
+ clear: left;
43
+ }
44
+
45
+ /** Effects **/
46
+
47
+ .wp-socializer-opacity li {
48
+ -webkit-opacity: 0.5;
49
+ -moz-opacity: 0.5;
50
+ filter:alpha(opacity=50);
51
+ opacity: 0.5;
52
+ }
53
+ .wp-socializer-opacity li:hover {
54
+ -webkit-opacity: 1;
55
+ -moz-opacity: 1;
56
+ filter:alpha(opacity=100);
57
+ opacity: 1;
58
+ }
59
+ .wp-socializer-jump li {
60
+ margin: 0px;
61
+ }
62
+ .wp-socializer-jump li:hover {
63
+ margin-top: -5px;
64
+ }
65
+
66
+ /** Columns **/
67
+ .columns-5 li{
68
+ width: 19%;
69
+ }
70
+ .columns-4 li{
71
+ width: 24%;
72
+ }
73
+ .columns-3 li{
74
+ width: 32% !important;
75
+ }
76
+ .columns-2 li{
77
+ width: 48%;
78
+ }
79
+
80
+ /** Templates **/
81
+ .floatleft{
82
+ float:left !important;
83
+ }
84
+ .floatright{
85
+ float:right !important;
86
+ }
87
+ .padding5{
88
+ padding: 5px 0px !important;
89
+ }
90
+ .padding10{
91
+ padding: 10px !important;
92
+ }
93
+ .margin15{
94
+ margin: 0px 15px 0px 0px !important;
95
+ }
96
+ .margin10{
97
+ margin: 0px 10px 0px 0px !important;
98
+ }
99
+ .clear-all{
100
+ clear:both;
101
+ }
102
+ .fixed-pos{
103
+ position:fixed !important;
104
+ z-index:99999 !important;
105
+ background: #FFFFFF;
106
+ border: 1px solid #CCCCCC;
107
+ }
108
+ .border5{
109
+ -moz-border-radius: 5px;
110
+ border-radius: 5px;
111
+ }
112
+ .shadow{
113
+ -moz-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
114
+ box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
115
+ }
116
+ .buttons-wrap{
117
+ padding: 10px 0px !important;
118
+ }
119
+ /* Clearfix */
120
+ .clearfix:after {
121
+ visibility: hidden;
122
+ display: block;
123
+ font-size: 0;
124
+ content: " ";
125
+ clear: both;
126
+ height: 0;
127
+ }
128
+ * html .clearfix { zoom: 1; } /* IE6 */
129
+ *:first-child+html .clearfix { zoom: 1; } /* IE7 */
public/js/wp-socializer-bookmark-js.js ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Copyright 2011 Aakash Chakravarthy - www.aakashweb.com
3
+ * Created for WP Socializer - Wordpress Plugin
4
+ */
5
+
6
+ function addBookmark(e) {
7
+ var ua = navigator.userAgent.toLowerCase();
8
+ var isMac = (ua.indexOf('mac') != -1), str = '';
9
+ e.preventDefault();
10
+ if(ua.indexOf('konqueror') != -1){
11
+ str = 'CTRL + B'; // Konqueror
12
+ }else{
13
+ str = (isMac ? 'Command/Cmd' : 'CTRL') + ' + D';
14
+ }
15
+ alert('Press ' + str + ' to bookmark this page');
16
+ }
{social-icons → public/social-icons}/16/Thumbs.db RENAMED
Binary file
{social-icons → public/social-icons}/16/addtofavorites.png RENAMED
File without changes
{social-icons → public/social-icons}/16/barrapunto.png RENAMED
File without changes
{social-icons → public/social-icons}/16/bitacoras.png RENAMED
File without changes
{social-icons → public/social-icons}/16/blinklist.png RENAMED
File without changes
public/social-icons/16/blip.png ADDED
Binary file
{social-icons → public/social-icons}/16/blogger.png RENAMED
File without changes
{social-icons → public/social-icons}/16/blogmarks.png RENAMED
File without changes
{social-icons → public/social-icons}/16/blogospherenews.png RENAMED
File without changes
{social-icons → public/social-icons}/16/blogter.png RENAMED
File without changes
{social-icons → public/social-icons}/16/bluedot.png RENAMED
File without changes
{social-icons → public/social-icons}/16/box.png RENAMED
File without changes
{social-icons → public/social-icons}/16/connotea.png RENAMED
File without changes
{social-icons → public/social-icons}/16/current.png RENAMED
File without changes
{social-icons → public/social-icons}/16/delicious.png RENAMED
File without changes
{social-icons → public/social-icons}/16/designbump.png RENAMED
File without changes
{social-icons → public/social-icons}/16/designfloat.png RENAMED
File without changes
{social-icons → public/social-icons}/16/digg.png RENAMED
File without changes
{social-icons → public/social-icons}/16/diggita.png RENAMED
File without changes
{social-icons → public/social-icons}/16/diigo.png RENAMED
File without changes
{social-icons → public/social-icons}/16/dotnetkicks.png RENAMED
File without changes
{social-icons → public/social-icons}/16/dzone.png RENAMED
File without changes
{social-icons → public/social-icons}/16/ekudos.png RENAMED
File without changes
social-icons/16/email_link.png → public/social-icons/16/email.png RENAMED
File without changes
{social-icons → public/social-icons}/16/facebook.png RENAMED
File without changes
{social-icons → public/social-icons}/16/fark.png RENAMED
File without changes
{social-icons → public/social-icons}/16/fleck.png RENAMED
File without changes
{social-icons → public/social-icons}/16/friendfeed.png RENAMED
File without changes
{social-icons → public/social-icons}/16/friendster.png RENAMED
File without changes
{social-icons → public/social-icons}/16/fsdaily.png RENAMED
File without changes
public/social-icons/16/gadugadu.png ADDED
Binary file
{social-icons → public/social-icons}/16/globalgrind.png RENAMED
File without changes
{social-icons → public/social-icons}/16/google.png RENAMED
File without changes
{social-icons → public/social-icons}/16/googlebuzz.png RENAMED
File without changes
{social-icons → public/social-icons}/16/googlereader.png RENAMED
File without changes
public/social-icons/16/grono.png ADDED
Binary file
{social-icons → public/social-icons}/16/gwar.png RENAMED
File without changes
{social-icons → public/social-icons}/16/hackernews.png RENAMED
File without changes
{social-icons → public/social-icons}/16/haohao.png RENAMED
File without changes
{social-icons → public/social-icons}/16/healthranker.png RENAMED
File without changes
{social-icons → public/social-icons}/16/hellotxt.png RENAMED
File without changes
{social-icons → public/social-icons}/16/hemidemi.png RENAMED
File without changes
{social-icons → public/social-icons}/16/hyves.png RENAMED
File without changes
{social-icons → public/social-icons}/16/identica.png RENAMED
File without changes
{social-icons → public/social-icons}/16/im.png RENAMED
File without changes
{social-icons → public/social-icons}/16/indianpad.png RENAMED
File without changes
public/social-icons/16/instapaper.png ADDED
Binary file
public/social-icons/16/kciuk.png ADDED
Binary file
{social-icons → public/social-icons}/16/kirtsy.png RENAMED
File without changes
{social-icons → public/social-icons}/16/laaikit.png RENAMED
File without changes
{social-icons → public/social-icons}/16/latafanera.png RENAMED
File without changes
{social-icons → public/social-icons}/16/linkagogo.png RENAMED
File without changes
{social-icons → public/social-icons}/16/linkarena.png RENAMED
File without changes
{social-icons → public/social-icons}/16/linkedin.png RENAMED
File without changes
{social-icons → public/social-icons}/16/linkter.png RENAMED
File without changes
{social-icons → public/social-icons}/16/live.png RENAMED
File without changes
{social-icons → public/social-icons}/16/meneame.png RENAMED
File without changes
{social-icons → public/social-icons}/16/misterwong.png RENAMED
File without changes
{social-icons → public/social-icons}/16/mixx.png RENAMED
File without changes
{social-icons → public/social-icons}/16/mob.png RENAMED
File without changes
{social-icons → public/social-icons}/16/msnreporter.png RENAMED
File without changes
{social-icons → public/social-icons}/16/muti.png RENAMED
File without changes
{social-icons → public/social-icons}/16/myshare.png RENAMED
File without changes
{social-icons → public/social-icons}/16/myspace.png RENAMED
File without changes
{social-icons → public/social-icons}/16/n4g.png RENAMED
File without changes
{social-icons → public/social-icons}/16/netvibes.png RENAMED
File without changes
{social-icons → public/social-icons}/16/netvouz.png RENAMED
File without changes
{social-icons → public/social-icons}/16/newsvine.png RENAMED
File without changes
public/social-icons/16/nk.png ADDED
Binary file
{social-icons → public/social-icons}/16/nujij.png RENAMED
File without changes
{social-icons → public/social-icons}/16/orkut.png RENAMED
File without changes
public/social-icons/16/osnews.png ADDED
Binary file
{social-icons → public/social-icons}/16/pdf.png RENAMED
File without changes
{social-icons → public/social-icons}/16/ping.png RENAMED
File without changes
{social-icons → public/social-icons}/16/posterous.png RENAMED
File without changes
{social-icons → public/social-icons}/16/printfriendly.png RENAMED
File without changes
{social-icons → public/social-icons}/16/propeller.png RENAMED
File without changes
{social-icons → public/social-icons}/16/ratimarks.png RENAMED
File without changes
{social-icons → public/social-icons}/16/readme.html RENAMED
File without changes
{social-icons → public/social-icons}/16/rec6.png RENAMED
File without changes
{social-icons → public/social-icons}/16/reddit.png RENAMED
File without changes
{social-icons → public/social-icons}/16/rss.png RENAMED
File without changes
{social-icons → public/social-icons}/16/scoopeo.png RENAMED
File without changes
{social-icons → public/social-icons}/16/segnalo.png RENAMED
File without changes
{social-icons → public/social-icons}/16/shetoldme.png RENAMED
File without changes
{social-icons → public/social-icons}/16/simpy.png RENAMED
File without changes
{social-icons → public/social-icons}/16/slashdot.png RENAMED
File without changes
{social-icons → public/social-icons}/16/socialogs.png RENAMED
File without changes
{social-icons → public/social-icons}/16/sphere.png RENAMED
File without changes
{social-icons → public/social-icons}/16/sphinn.png RENAMED
File without changes
{social-icons → public/social-icons}/16/stumbleupon.png RENAMED
File without changes
{social-icons → public/social-icons}/16/techmeme.png RENAMED
File without changes
{social-icons → public/social-icons}/16/technorati.png RENAMED
File without changes
{social-icons → public/social-icons}/16/tipd.png RENAMED
File without changes
{social-icons → public/social-icons}/16/tumblr.png RENAMED
File without changes
{social-icons → public/social-icons}/16/twitter.png RENAMED
File without changes
{social-icons → public/social-icons}/16/upnews.png RENAMED
File without changes
{social-icons → public/social-icons}/16/viadeo.png RENAMED
File without changes
{social-icons → public/social-icons}/16/webnews.png RENAMED
File without changes
{social-icons → public/social-icons}/16/webride.png RENAMED
File without changes
{social-icons → public/social-icons}/16/wikio.png RENAMED
File without changes
{social-icons → public/social-icons}/16/wists.png RENAMED
File without changes
{social-icons → public/social-icons}/16/wykop.png RENAMED
File without changes
{social-icons → public/social-icons}/16/xerpi.png RENAMED
File without changes
{social-icons → public/social-icons}/16/yahoobuzz.png RENAMED
File without changes
{social-icons → public/social-icons}/16/yahoomyweb.png RENAMED
File without changes
{social-icons → public/social-icons}/16/yiggit.png RENAMED
File without changes
{social-icons → public/social-icons}/32/Thumbs.db RENAMED
Binary file
{social-icons → public/social-icons}/32/addtofavorites.png RENAMED
File without changes
{social-icons → public/social-icons}/32/blinklist.png RENAMED
File without changes
public/social-icons/32/blip.png ADDED
Binary file
{social-icons → public/social-icons}/32/blogger.png RENAMED
File without changes
{social-icons → public/social-icons}/32/delicious.png RENAMED
File without changes
{social-icons → public/social-icons}/32/designbump.png RENAMED
File without changes
{social-icons → public/social-icons}/32/designfloat.png RENAMED
File without changes
{social-icons → public/social-icons}/32/digg.png RENAMED
File without changes
{social-icons → public/social-icons}/32/dzone.png RENAMED
File without changes
{social-icons → public/social-icons}/32/email.png RENAMED
File without changes
{social-icons → public/social-icons}/32/facebook.png RENAMED
File without changes
{social-icons → public/social-icons}/32/friendfeed.png RENAMED
File without changes
{social-icons → public/social-icons}/32/friendster.png RENAMED
File without changes
public/social-icons/32/gadugadu.png ADDED
Binary file
{social-icons → public/social-icons}/32/google.png RENAMED
File without changes
{social-icons → public/social-icons}/32/googlebuzz.png RENAMED
File without changes
{social-icons → public/social-icons}/32/googlereader.png RENAMED
File without changes
public/social-icons/32/grono.png ADDED
Binary file
{social-icons → public/social-icons}/32/hyves.png RENAMED
File without changes
public/social-icons/32/instapaper.png ADDED
Binary file
public/social-icons/32/kciuk.png ADDED
Binary file
{social-icons → public/social-icons}/32/linkedin.png RENAMED
File without changes
{social-icons → public/social-icons}/32/live.png RENAMED
File without changes
{social-icons → public/social-icons}/32/misterwong.png RENAMED
File without changes
{social-icons → public/social-icons}/32/mixx.png RENAMED
File without changes
{social-icons → public/social-icons}/32/myspace.png RENAMED
File without changes
{social-icons → public/social-icons}/32/netvibes.png RENAMED
File without changes
{social-icons → public/social-icons}/32/newsvine.png RENAMED
File without changes
public/social-icons/32/nk.png ADDED
Binary file
{social-icons → public/social-icons}/32/orkut.png RENAMED
File without changes
public/social-icons/32/osnews.png ADDED
Binary file
{social-icons → public/social-icons}/32/ping.png RENAMED
File without changes
{social-icons → public/social-icons}/32/posterous.png RENAMED
File without changes
{social-icons → public/social-icons}/32/printfriendly.png RENAMED
File without changes
{social-icons → public/social-icons}/32/readme.html RENAMED
File without changes
{social-icons → public/social-icons}/32/reddit.png RENAMED
File without changes
{social-icons → public/social-icons}/32/rss.png RENAMED
File without changes
{social-icons → public/social-icons}/32/sphinn.png RENAMED
File without changes
{social-icons → public/social-icons}/32/stumbleupon.png RENAMED
File without changes
{social-icons → public/social-icons}/32/technorati.png RENAMED
File without changes
{social-icons → public/social-icons}/32/tumblr.png RENAMED
File without changes
{social-icons → public/social-icons}/32/twitter.png RENAMED
File without changes
public/social-icons/32/wykop.png ADDED
Binary file
{social-icons → public/social-icons}/32/yahoo.png RENAMED
File without changes
{social-icons → public/social-icons}/32/yahoobuzz.png RENAMED
File without changes
{social-icons → public/social-icons}/Thumbs.db RENAMED
Binary file
public/social-icons/wp-socializer-sprite-16px.png ADDED
Binary file
public/social-icons/wp-socializer-sprite-32px.png ADDED
Binary file
{social-icons → public/social-icons}/wp-socializer-sprite-mask-16px.gif RENAMED
File without changes
{social-icons → public/social-icons}/wp-socializer-sprite-mask-32px.gif RENAMED
File without changes
readme.txt CHANGED
@@ -1,86 +1,58 @@
1
  === WP Socializer ===
2
  Contributors: Aakash Chakravarthy
3
- Donate link: http://example.com/
4
  Author URI: http://www.aakashweb.com/
5
  Plugin URI: http://www.aakashweb.com/wordpress-plugins/wp-socializer/
6
  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
7
- Donate Link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=donations@aakashweb.com&item_name=Donation%20for%20WP%20Socializer%20Plugin&amount=&currency_code=USD
8
- Requires at least: 2.6
9
- Tested up to: 3.0.1
10
- Stable tag: 1.0
11
 
12
- All in one plugin for Social bookmarking buttons(98), Retweet, Buzz, Digg, Addthis, Facebook buttons with inbuilt setups. Advanced template placement.
13
 
14
  == Description ==
15
 
16
- WP Socializer is a advanced and powerful plugin for adding social bookmarking links, retweet buttons, Google buzz buttons, Digg buttons, Addthis buttons, Facebook buttons.
17
-
18
- This plugin uses template system for placing the social buttons in the posts and excerpts. Theme functions are also available, which allows to place the buttons anywhere in the site.
19
-
20
- Seperate sections for configuring the Social bookmarking buttons(98), Retweet, Buzz, Digg, Addthis, Facebook buttons with advanced settings. Available in 2 languages (Spanish and Chinese)
21
 
22
  A ultimate replacement to many plugins, being a all in one.
23
 
24
- = Features =
25
-
26
- WP Socializer allows to insert 5 different types of social and sharing buttons. Those features are explained below.
27
- These buttons can be used either seperately or together.
28
-
29
- = Social Bookmarking Buttons =
30
- * Contains a total of 98 Social bookmarking buttons / sites with 16px and 32px icons.
31
- * 98, 16px buttons and 36, 32px buttons are available.
32
- * Sprites support.
33
- * Drag and rearrange buttons order.
34
- * 2 button on-hover effects (Transparency, Jump, No effect).
35
- * Can show/hide labels for the buttons.
36
- * Can change the default icon set.
37
- * Can show the buttons in columns for effectivity.
38
-
39
- = Addthis share/bookmark button =
40
- * Configure addthis widget within wordpress and use along with other buttons.
41
- * Add or remove sites from addthis widget.
42
- * Change widget color, title etc.
43
- * Can change language for buttons
44
 
45
- = Google Buzz buttons =
46
- * 2 types of Buzz buttons available (Post to Buzz and Follow on Buzz buttons).
47
- * Configure the button's size, text, counter etc within.
48
-
49
- = Retweet Buttons =
50
- * 3 retweet services available (Tweetmeme, Topsy and Retweet)
51
- * Change the button sizes within.
52
- * Colors for Topsy buttons.
53
-
54
- = Facebook Buttons =
55
- * 2 Types of facebook buttons available (Like Button, Share button)
56
- * Configure full settings within.
57
 
58
- = Custom buttons =
59
 
60
- WP Socializer allows to add custom buttons to the site also. Eg: dzone, delicious or any other widgets can also be added. Has 2 templates for adding the custom buttons
61
 
62
- = Template based placement =
 
 
 
 
63
 
64
- WP Socializer is based on a template system. Each share button/widget has a specific code to be used in the template. So the buttons can be arranged within.
65
 
66
- * Has 2 templates
67
- * 10 options for each template to display the buttons in the post, date, archive, excerpt etc.
68
- * Can show the buttons above or below the post or both.
 
69
 
70
- = Other features =
71
- * Very simple admin interface.
72
- * Fast loading and less memory using script.
73
- * SEO Optimized.
74
- * [Theme functions](http://www.aakashweb.com/faqs/wordpress-plugins/wp-socializer/theme-functions/) for seperate buttons are also available.
 
 
 
75
 
76
  = Resources =
77
  * [Full Documentation](http://www.aakashweb.com/wordpress-plugins/wp-socializer/)
78
  * [FAQs](http://www.aakashweb.com/faqs/wordpress-plugins/wp-socializer/)
79
- * [Screenshots](http://www.aakashweb.com/wordpress-plugins/wp-socializer/#screenshots)
80
- * [Theme template functions](http://www.aakashweb.com/faqs/wordpress-plugins/wp-socializer/theme-functions/)
81
  * [Support](http://www.aakashweb.com/forum/)
82
  * [Request a Feature](http://www.aakashweb.com/wordpress-plugins/wp-socializer/#respond)
83
- * [Donate]()
84
 
85
  == Installation ==
86
 
@@ -91,28 +63,45 @@ WP Socializer is based on a template system. Each share button/widget has a spec
91
  1. Use the corresponding button code in the placement template.
92
  1. That's all. Enjoy !
93
 
94
- [Theme Template functions](http://www.aakashweb.com/faqs/wordpress-plugins/wp-socializer/theme-functions/) for seperate buttons are also available.
 
 
 
95
 
96
  == Frequently Asked Questions ==
97
 
98
- Frequently Asked Questions can be seen [here](http://www.aakashweb.com/faqs/wordpress-plugins/wp-socializer/)
99
 
100
  == Screenshots ==
101
 
102
  1. Complete WP Socializer, social bookmarking icons overview.
103
- 2. All the Buttons/Widgets WP Socializer can add (A Complete All-In-One)
104
- 3. Custom Buttons can be added (left). Advanced template options (right). Options to place the buttons above/below post (bottom)
105
- 4. Admin Interface overview.
106
- [More Screenshots](http://www.aakashweb.com/wordpress-plugins/wp-socializer/#screenshots)
107
 
108
  == Changelog ==
109
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  = 1.0 =
111
  * Initial Version
112
 
113
  == Upgrade Notice ==
114
 
115
- Initial Version. Just install and use.
116
 
117
  == Credits ==
118
 
1
  === WP Socializer ===
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: 3.0
8
+ Tested up to: 3.2.x
9
+ Stable tag: 2.0
10
 
11
+ All in one plugin for inserting Social bookmarking buttons(105), Retweet, Google+1, Facebook, Digg, Addthis, Sharethis buttons in a Worpdress 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
  A ultimate replacement to many plugins, being a all in one.
18
 
19
+ [youtube="http://www.youtube.com/v/6AXCt13MXcU"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ? =
34
 
35
+ * Above and below posts or both using the admin page.
36
+ * In widgets using shortcodes and [HTML Javascript Adder](http://wordpress.org/extend/plugins/html-javascript-adder/) plugin.
37
+ * Inside posts using shortcodes.
38
+ * In theme files using template functions.
39
 
40
+ = Other features =
41
+
42
+ * Template based system for adding all buttons at once.
43
+ * Inbuilt beautiful templates available for easy usage.
44
+ * Easy and responsive administration page.
45
+ * Automatic adjustments of buttons in RSS feeds.
46
+ * Custom buttons and icons can be used.
47
+ * Avaialble in 2 languages (Spanish and Chinese).
48
 
49
  = Resources =
50
  * [Full Documentation](http://www.aakashweb.com/wordpress-plugins/wp-socializer/)
51
  * [FAQs](http://www.aakashweb.com/faqs/wordpress-plugins/wp-socializer/)
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
  == Installation ==
58
 
63
  1. Use the corresponding button code in the placement template.
64
  1. That's all. Enjoy !
65
 
66
+ = Using WP Socializer =
67
+ [youtube="http://www.youtube.com/v/0G-joyseg7U"]
68
+
69
+ * [Documentation](http://www.aakashweb.com/docs/wp-socializer-docs/)
70
 
71
  == Frequently Asked Questions ==
72
 
73
+ Frequently Asked Questions can be seen [here](http://www.aakashweb.com/faqs/wordpress-plugins/wp-socializer/).
74
 
75
  == Screenshots ==
76
 
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.0 =
86
+ * Core code completely re-written for future supports and advancements.
87
+ * Additional social bookmarking buttons are added.
88
+ * Addthis buttons are updated and new type of buttons are available.
89
+ * Sharethis buttons are introduced.
90
+ * Twitter�s Official button is added.
91
+ * Facebook like button code is updated.
92
+ * Google +1 button, StumbleUpon, Reddit buttons are added.
93
+ * Adminitration page completely redesiged.
94
+ * Inbuilt menus are added for inserting buttons into template.
95
+ * One-click templates are introduced.
96
+ * Shortcodes feature is introduced.
97
+ * and more..
98
+
99
  = 1.0 =
100
  * Initial Version
101
 
102
  == Upgrade Notice ==
103
 
104
+ Automatic optimaztion will be made for Upgrading from version 1 to 2.
105
 
106
  == Credits ==
107
 
screenshot-1.png CHANGED
Binary file
screenshot-2.png CHANGED
Binary file
screenshot-3.png CHANGED
Binary file
screenshot-4.png DELETED
Binary file
social-icons/wp-socializer-sprite-16px.png DELETED
Binary file
social-icons/wp-socializer-sprite-32px.png DELETED
Binary file
socializer-addthis.php DELETED
@@ -1,116 +0,0 @@
1
- <?php
2
- /*
3
- * Addthis button Processor code for WP Socializer Plugin
4
- * Version : 1.0
5
- * Author : Aakash Chakravarthy
6
- */
7
-
8
- function wpsr_addthis_uniqueid(){
9
- $rand_no = dechex(mt_rand(0,min(0xffffffff,mt_getrandmax())));
10
- $current_time = dechex(time());
11
- $unique_id = $current_time . str_pad($rand_no, 8, '0', STR_PAD_LEFT);
12
- return $unique_id;
13
- }
14
-
15
-
16
- function wpsr_addthis_bt(){
17
-
18
- global $post;
19
-
20
- $details = wpsr_get_post_details();
21
-
22
- $permalink = $details['permalink'];
23
- $title = $details['title'];
24
-
25
- ## Get Addthis Options
26
- $wpsr_addthis = get_option('wpsr_addthis_data');
27
-
28
- $wpsr_addthis_lang = $wpsr_addthis['language'];
29
- $wpsr_addthis_button = $wpsr_addthis['button'];
30
- $wpsr_addthis_btbrand = $wpsr_addthis['btbrand'];
31
- $wpsr_addthis_btservices = $wpsr_addthis['btservices'];
32
- $wpsr_addthis_btheadclr = $wpsr_addthis['btheadclr'];
33
- $wpsr_addthis_btheadbgclr = $wpsr_addthis['btheadbgclr'];
34
-
35
- # Config settings
36
- if($wpsr_addthis['username'] != ''){
37
- $wpsr_addthis_username = '&amp;username=' . $wpsr_addthis['username'];
38
- }else{
39
- $wpsr_addthis_username = '&amp;username=wp-' . wpsr_addthis_uniqueid();
40
- }
41
-
42
- if($wpsr_addthis['language'] != 'lg-share-'){
43
- $wpsr_addthis_lang = 'en';
44
- }
45
-
46
- if($wpsr_addthis_btbrand != ''){
47
- $wpsr_addthis_btbrand = 'ui_cobrand: "' . $wpsr_addthis_btbrand .'"' . ",\n";
48
- }else{
49
- $wpsr_addthis_btbrand = '';
50
- }
51
-
52
- if($wpsr_addthis_btheadclr != ''){
53
- $wpsr_addthis_btheadclr = 'ui_header_color: "' . $wpsr_addthis_btheadclr . '"' . ",\n";
54
- }else{
55
- $wpsr_addthis_btheadclr = '';
56
- }
57
-
58
- if($wpsr_addthis_btheadbgclr != ''){
59
- $wpsr_addthis_btheadbgclr = 'ui_header_background: "' . $wpsr_addthis_btheadbgclr . '"' . ",\n";
60
- }else{
61
- $wpsr_addthis_btheadbgclr = '';
62
- }
63
-
64
- if($wpsr_addthis_btservices != ''){
65
- $wpsr_addthis_btservices = 'services_compact: "' . $wpsr_addthis_btservices .'"' . ",\n";
66
- }else{
67
- $wpsr_addthis_btservices = '';
68
- }
69
-
70
- $wpsr_addthis_btwidthcheck = strpos($wpsr_addthis_button, 'lg');
71
-
72
- if ($wpsr_addthis_btwidthcheck === false) {
73
- $wpsr_addthis_btwidth = '83';
74
- } else {
75
- $wpsr_addthis_btwidth = '125';
76
- }
77
-
78
- $wpsr_addthis_bt_config = $wpsr_addthis_btbrand . $wpsr_addthis_btheadclr . $wpsr_addthis_btheadbgclr . $wpsr_addthis_btservices;
79
-
80
- # Config 2 Settings
81
- $wpsr_addthis_url = ' addthis:url="' . $permalink .'"' ;
82
- $wpsr_addthis_title = ' addthis:title="' . $title .'"' ;
83
-
84
- $wpsr_addthis_bt_config2 = $wpsr_addthis_url . $wpsr_addthis_title;
85
-
86
- $wpsr_addthis_bt_settings =
87
- "\n<script type=\"text/javascript\">\n" .
88
- "<!--\n" .
89
- "var addthis_config = { \n" .
90
- $wpsr_addthis_bt_config .
91
- "}\n//-->" .
92
- "</script>\n";
93
-
94
- $wpsr_addthis_bt_processed .= "\n<!-- Start WP Socializer Plugin - Addthis Button -->\n";
95
-
96
- ## Start Output
97
- $wpsr_addthis_bt_processed .=
98
- '<a class="addthis_button" href="http://addthis.com/bookmark.php?v=250' .
99
- $wpsr_addthis_username .
100
- '"' . $wpsr_addthis_bt_config2 . '><img src="http://s7.addthis.com/static/btn/v2/'.
101
- $wpsr_addthis_button . $wpsr_addthis_lang .
102
- '.gif" width="' . $wpsr_addthis_btwidth . '" height="16" alt="Bookmark and Share" style="border:0"/>' .
103
- '</a>' .
104
- $wpsr_addthis_bt_settings .
105
- '<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#' .
106
- $wpsr_addthis_username .
107
- '"></script>' ;
108
-
109
- $wpsr_addthis_bt_processed .= "\n<!-- End WP Socializer Plugin - Addthis Button -->\n";
110
- ## End Output
111
-
112
- return $wpsr_addthis_bt_processed;
113
-
114
- }
115
-
116
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
socializer-admin-css.css DELETED
@@ -1,354 +0,0 @@
1
- /*
2
- * Admin Page CSS for WP Socializer plugin
3
- * Author : Aakash Chakravarthy
4
- * Version : 1.0
5
- */
6
-
7
- /* Tabs */
8
-
9
- #tabs {
10
- margin: 0px 0;
11
- border: 0px solid #0066CC;
12
- }
13
- #tabs #tabsList {
14
- margin: 0px;
15
- padding: 0px;
16
- }
17
- #tabs #tabsList li {
18
- list-style: none;
19
- margin: 0px 0px 0px 3px;
20
- display: inline;
21
- font: 13px Arial, Helvetica, sans-serif;
22
- padding: 0px;
23
- }
24
- #tabs #tabsList li, #tabs #tabsList li a {
25
- float: left;
26
- }
27
- #tabs #tabsList li a {
28
- text-decoration: none;
29
- padding: 5px;
30
- color: #000;
31
- margin: 0px;
32
- border-top: 1px solid #E2E2E2;
33
- border-right: 1px solid #e2e2e2;
34
- border-left: 1px solid #e2e2e2;
35
- }
36
- #tabs #tabsList li a:hover {
37
- background: #FFFFFF;
38
- }
39
- .ui-state-active {
40
- border-top: 2px solid #FF9900;
41
- background: #FFFFFF;
42
- }
43
- #tabs .tabContent {
44
- clear: both;
45
- padding: 5px 10px 10px;
46
- margin: 0px;
47
- background: #FFFFFF;
48
- border-top: 1px solid #e9e9e9;
49
- border-right: 1px solid #e9e9e9;
50
- border-bottom: 2px solid #FF9900;
51
- border-left: 1px solid #e9e9e9;
52
- }
53
-
54
- /* Other */
55
-
56
- .wrap h3 {
57
- font: italic 21px "Times New Roman", Times, serif;
58
- color: #333333;
59
- margin: 10px 0px 0px;
60
- padding: 0px;
61
- }
62
- .wrap h4 {
63
- font-weight: bold;
64
- display: block;
65
- padding: 10px 0px 5px;
66
- margin: 0px 0px 5px;
67
- border-bottom: 1px solid #e7e7e7;
68
- clear: both;
69
- }
70
- .wrap h5{
71
- margin: 7px 0px;
72
- font-size: 13px;
73
- }
74
- .wrap h4 .max_min{
75
- float: right;
76
- font-weight: bold;
77
- margin: 0px;
78
- padding: 0px 7px;
79
- cursor: pointer;
80
- }
81
-
82
- .wrap h4 .max_min:hover{
83
- color: #FFFFFF;
84
- background: #FF9900;
85
- }
86
-
87
- .wrap .section{
88
- padding: 10px;
89
- }
90
- .wrap .section img{
91
- vertical-align:middle;
92
- }
93
-
94
- .message .close{
95
- float: right;
96
- margin: -30px 0px 0px;
97
- padding: 5px;
98
- cursor: pointer;
99
- }
100
-
101
- #leftContent{
102
- width: 79%;
103
- float: left;
104
- margin: 0px;
105
- padding: 0px;
106
- }
107
-
108
- #sidebar{
109
- width: 20%;
110
- float: right;
111
- padding: 0px;
112
- margin: 0px;
113
- }
114
- #sidebar ul{
115
- width: 95%;
116
- border: 1px solid #E9E9E9;
117
- -moz-border-radius-bottomleft: 10px;
118
- -moz-border-radius-bottomright: 10px;
119
- -khtml-border-radius-bottomright: 10px;
120
- -khtml-border-radius-bottomleft: 10px;
121
- -webkit-border-bottom-left-radius: 10px;
122
- -webkit-border-bottom-right-radius: 10px;
123
- background: #FFFFFF;
124
- padding: 5px;
125
- margin: 0px 15px 5px 0px;
126
- }
127
- #sidebar li{
128
- display: block;
129
- padding: 3px;
130
- border-bottom: 1px solid #E2E2E2;
131
- }
132
- #sidebar li a{
133
- text-decoration: none;
134
- }
135
- .bottomWrap{
136
- margin: 0px 0px 10px;
137
- padding: 15px 10px;
138
- border: 1px solid #e9e9e9;
139
- background: #FFF7EA;
140
- -moz-border-radius-bottomright: 5px;
141
- -moz-border-radius-bottomleft: 5px;
142
- -webkit-border-bottom-right-radius: 5px;
143
- -webkit-border-bottom-left-radius: 5px;
144
- }
145
- .bottomWrapLeft{
146
- float: left;
147
- width: 25%;
148
- }
149
- .bottomWrapRight{
150
- float: right;
151
- width: 60%;
152
- text-align: right;
153
- font-size: 10px;
154
- color: #666666;
155
- margin-top: -10px;
156
- }
157
- .bottomWrapRight a{
158
- text-decoration: none;
159
- color: #666666;
160
- }
161
- .bottomWrapRight a:hover{
162
- text-decoration: underline;
163
- }
164
- .bottomColumn{
165
- background: #FFFFFF;
166
- padding: 5px;
167
- border: 1px solid #e9e9e9;
168
- }
169
- .bottomColumn .column{
170
- width:47%;
171
- float:left;
172
- padding: 5px 5px 5px 10px;
173
- }
174
- .donateBt{
175
- border-bottom: 2px solid #FF9900;
176
- width: 100%;
177
- margin: 0px auto;
178
- text-align: center;
179
- }
180
- .redText{
181
- color: #FF0000;
182
- }
183
- .linkBtm{
184
- color: #999999;
185
- float: right;
186
- padding: 0px 3px;
187
- margin: -35px 0px 0px;
188
- position: absolute;
189
- right: 0px;
190
- }
191
- .smallText{
192
- font-size: 10px;
193
- color: #666666;
194
- }
195
- .codeBox{
196
- background: #FCFCFC;
197
- padding: 3px;
198
- margin-right: 5px;
199
- margin-left: 5px;
200
- border: 1px solid #e2e2e2;
201
- font-size: 11px;
202
- }
203
- .codeBox span{
204
- font-family: "Courier New", Courier, monospace;
205
- padding: 4px;
206
- }
207
- .codeBox span:hover, code:hover{
208
- background: #FF9900;
209
- color: #FFFFFF;
210
- }
211
- .template_box{
212
- width: 98%;
213
- font: 13px/1.5em "Courier New", Courier, monospace;
214
- }
215
- .placement_left{
216
- float: left;
217
- width: 75%;
218
- }
219
- .placement_right{
220
- float: right;
221
- width: 25%;
222
- }
223
- .placement_right label{
224
- font-size: 11px;
225
- color: #333333;
226
- }
227
- #wpsr_socialbt_list li{
228
- padding: 4px;
229
- color: #333333;
230
- text-decoration: none;
231
- -moz-border-radius: 5px;
232
- -webkit-border-radius: 5px;
233
- position: relative;
234
- float: left;
235
- width: 43%;
236
- margin: 5px;
237
- text-transform: capitalize;
238
- background: #FFFFFF;
239
- border: 1px solid #e9e9e9;
240
- }
241
- #wpsr_socialbt_list li:hover{
242
- border-color: #999999;
243
- color: #000000;
244
- }
245
-
246
- #wpsr_socialbt_list li img{
247
- height: 16px;
248
- width: 16px;
249
- vertical-align: middle;
250
- background: url(social-icons/wp-socializer-sprite-16px.png) no-repeat;
251
- padding: 0px;
252
- border-right: 1px solid #e9e9e9;
253
- margin: 0px 5px 0px 0px;
254
- }
255
-
256
- .sb_add16px{
257
- color: #000000;
258
- background: #F8F8F8;
259
- float: right;
260
- padding: 5px 8px 5px 5px;
261
- border-left: 1px solid #e9e9e9;
262
- cursor: pointer;
263
- margin: -4px -4px -4px 0px;
264
- -moz-border-radius-bottomright: 5px;
265
- -moz-border-radius-topright: 5px;
266
- -webkit-border-top-right-radius: 5px;
267
- -webkit-border-bottom-right-radius: 5px;
268
-
269
- }
270
- .sb_add32px{
271
- color: #000000;
272
- background: #F8F8F8;
273
- float: right;
274
- padding: 5px 8px 5px 5px;
275
- border-left: 1px solid #e9e9e9;
276
- cursor: pointer;
277
- margin: -4px -3px -4px 0px;
278
- border-right: 1px solid #e9e9e9;
279
- }
280
- .sb_add16px:hover, .sb_add32px:hover{
281
- color: #FFFFFF;
282
- background: #999999;
283
- }
284
- .added_msg{
285
- background: #F4FFF4;
286
- display: block;
287
- margin: 5px -3px -3px;
288
- padding: 3px;
289
- border-top: 1px solid #e9e9e9;
290
- border-right: 0px solid #FFFF33;
291
- border-bottom: 0px solid #FFFF33;
292
- border-left: 0px solid #FFFF33;
293
- }
294
-
295
- .wpsr_socialbt_selected_list li{
296
- padding: 5px;
297
- color: #fff;
298
- text-decoration: none;
299
- -moz-border-radius: 5px;
300
- -webkit-border-radius: 5px;
301
- -moz-box-shadow: 0 1px 2px #999;
302
- -webkit-box-shadow: 0 1px 2px #999;
303
- border-bottom: 1px solid #006C91;
304
- position: relative;
305
- float: left;
306
- width: 98%;
307
- margin: 5px;
308
- text-transform: capitalize;
309
- background: #0099CC;
310
- cursor: move;
311
- }
312
- .wpsr_socialbt_selected_list li:hover{
313
- background: #00CC00;
314
- border-bottom: 1px solid #009900;
315
- }
316
- .wpsr_socialbt_selected_list li .sb_close{
317
- float: right;
318
- padding: 2px 4px;
319
- margin: -2px -3px -2px 0px;
320
- -moz-border-radius: 2px;
321
- -khtml-border-radius: 2px;
322
- -webkit-border-radius: 2px;
323
- text-transform: lowercase;
324
- font-weight: bold;
325
- }
326
- .wpsr_socialbt_selected_list li .sb_close:hover{
327
- cursor: pointer;
328
- color: #FF0000;
329
- }
330
-
331
- /* Sprites */
332
-
333
- .admSprites a{
334
- background: url(images/admin-sprites.png) no-repeat;
335
- padding: 0px 0px 3px 20px;
336
- }
337
- .admSpr-addthis { background-position: 0 0 !important;}
338
- .admSpr-author { background-position: 0 -17px !important;}
339
- .admSpr-bug { background-position: 0 -34px !important;}
340
- .admSpr-documentation { background-position: 0 -51px !important;}
341
- .admSpr-donate { background-position: 0 -68px !important;}
342
- .admSpr-error { background-position: 0 -85px !important;}
343
- .admSpr-faq { background-position: 0 -102px !important;}
344
- .admSpr-feature { background-position: 0 -119px !important;}
345
- .admSpr-plugins { background-position: 0 -136px !important;}
346
- .admSpr-rss { background-position: 0 -153px !important;}
347
- .admSpr-star { background-position: 0 -170px !important;}
348
- .admSpr-support { background-position: 0 -187px !important;}
349
- .admSpr-twitter { background-position: 0 -204px !important;}
350
- .admSpr-warning { background-position: 0 -221px !important;}
351
-
352
-
353
- /* Color Picker */
354
- div.color_picker{ height:16px; width:16px; padding:0 !important; border:1px solid #ccc; cursor:pointer; line-height:16px}div#color_selector{ width:110px; position:absolute; border:1px solid #000; background-color:#EFEFEF; padding:2px} div#color_custom{width:100%;float:left} div#color_custom label{font-size:95%;color:#2F2F2F;margin:5px 2px;width:25%} div#color_custom input{margin:5px 2px;padding:0;font-size:95%;border:1px solid #000;width:65%}div.color_swatch{ height:12px; width:12px; border:1px solid #000; margin:2px; float:left; cursor:pointer; line-height:12px}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
socializer-admin-js.js DELETED
@@ -1,169 +0,0 @@
1
- $j = jQuery.noConflict();
2
-
3
- $j(document).ready(function(){
4
-
5
- // Tab Initializements
6
- $j("#tabs").tabs({fx: {opacity: 'toggle'} });
7
- $j("#tabs").tabs().find(".ui-tabs-nav").sortable({axis:'x'});
8
-
9
- $j(".helpLink").attr('href', 'http://www.aakashweb.com/');
10
-
11
- // Color picker Initializements
12
- $j('#wpsr_addthis_btheadclr').colorPicker();
13
- $j('#wpsr_addthis_btheadbgclr').colorPicker();
14
-
15
- // Sorter Initializements
16
- $j('#wpsr_socialbt_selected_list_16px, #wpsr_socialbt_selected_list_32px').sortable({
17
- stop : wpsr_socialbt_selectedgenerator,
18
- opacity : 0.5,
19
- scroll : true,
20
- revert : true
21
- });
22
-
23
- function wpsr_socialbt_selectedgenerator(){
24
- // 16 px
25
- var socialBtSelected16px = [];
26
- $j("#wpsr_socialbt_selected_list_16px li .sb_name").each(function(){
27
- socialBtSelected16px.push($j(this).text());
28
- });
29
- var groupedSocialBtSelected16px = socialBtSelected16px.join(',');
30
- $j("#wpsr_socialbt_selected16px").val(groupedSocialBtSelected16px);
31
-
32
- // 32 px
33
- var socialBtSelected32px = [];
34
- $j("#wpsr_socialbt_selected_list_32px li .sb_name").each(function(){
35
- socialBtSelected32px.push($j(this).text());
36
- });
37
- var groupedSocialBtSelected32px = socialBtSelected32px.join(',');
38
- $j("#wpsr_socialbt_selected32px").val(groupedSocialBtSelected32px);
39
- }
40
-
41
- // Append list 16px
42
- $j('#wpsr_socialbt_list li .sb_add16px').click(function(){
43
- var text16px = $j.trim($j(this).parent().text().replace('16', '').replace('32', ''));
44
- var appendList16px = '<li><span class="sb_name">' + text16px + '</span><span class="sb_close">x</span></li>';
45
- $j('#wpsr_socialbt_selected_list_16px').append(appendList16px);
46
- wpsr_socialbt_selectedgenerator();
47
-
48
- var temp = $j(this).parent().children('.sb_name').text();
49
-
50
- $j(this).parent().children('.sb_name').fadeOut(function(){
51
- $j(this).text('Added !');
52
- });
53
-
54
- $j(this).parent().children('.sb_name').fadeIn();
55
-
56
- $j(this).parent().children('.sb_name').fadeOut(function(){
57
- $j(this).parent().children('.sb_name').text(temp);
58
- });
59
-
60
- $j(this).parent().children('.sb_name').fadeIn();
61
-
62
- });
63
-
64
- // Append list 32px
65
- $j('#wpsr_socialbt_list li .sb_add32px').click(function(){
66
- var text32px = $j.trim($j(this).parent().text().replace('16', '').replace('32', ''));
67
- var appendList32px = '<li><span class="sb_name">' + text32px + '</span><span class="sb_close">x</span></li>';
68
- $j('#wpsr_socialbt_selected_list_32px').append(appendList32px);
69
- wpsr_socialbt_selectedgenerator();
70
-
71
- var temp = $j(this).parent().children('.sb_name').text();
72
-
73
- $j(this).parent().children('.sb_name').fadeOut(function(){
74
- $j(this).text('Added !');
75
- });
76
-
77
- $j(this).parent().children('.sb_name').fadeIn();
78
-
79
- $j(this).parent().children('.sb_name').fadeOut(function(){
80
- $j(this).parent().children('.sb_name').text(temp);
81
- });
82
-
83
- $j(this).parent().children('.sb_name').fadeIn();
84
-
85
- });
86
-
87
- //Delete List 16px
88
- $j('#wpsr_socialbt_selected_list_16px li .sb_close').live("click", function() {
89
- $j(this).parent().fadeOut('slow', function(){
90
- $j(this).remove();
91
- wpsr_socialbt_selectedgenerator();
92
- });
93
- });
94
-
95
- //Delete List 32px
96
- $j('#wpsr_socialbt_selected_list_32px li .sb_close').live("click", function() {
97
- $j(this).parent().fadeOut('slow', function(){
98
- $j(this).remove();
99
- wpsr_socialbt_selectedgenerator();
100
- });
101
- });
102
-
103
- // Basic Admin Functions
104
-
105
- $j('h4').append('<span class="max_min" title="Collapse">-</span>');
106
-
107
- $j('h4 .max_min').toggle(
108
- function(){
109
- $j(this).parent().next().slideUp();
110
- $j(this).text('+');
111
- },
112
- function(){
113
- $j(this).parent().next().slideDown();
114
- $j(this).text('-');
115
- }
116
- );
117
-
118
-
119
- $j('.message').append('<span class="close">x</span>');
120
-
121
- $j('.message .close').click(function(){
122
- $j(this).parent().slideUp();
123
- });
124
-
125
-
126
- // Retweet Page
127
- $j('#wpsr_retweet_topsysettings').hide();
128
- $j('#wpsr_retweet_service').change(function(){
129
- if($j('#wpsr_retweet_service').val() == 'topsy'){
130
- $j('#wpsr_retweet_topsysettings').slideDown();
131
- }
132
- if($j('#wpsr_retweet_service').val() != 'topsy'){
133
- $j('#wpsr_retweet_topsysettings').slideUp();
134
- }
135
- });
136
- if($j('#wpsr_retweet_service').val() == 'topsy'){
137
- $j('#wpsr_retweet_topsysettings').slideDown();
138
- }
139
-
140
- // Facebook Page
141
-
142
- $j('#wpsr_facebook_counterplacement').hide();
143
- $j('#wpsr_facebook_counter').change(function(){
144
- if($j('#wpsr_facebook_counter').val() == '1'){
145
- $j('#wpsr_facebook_counterplacement').slideDown();
146
- }
147
- if($j('#wpsr_facebook_counter').val() != '1'){
148
- $j('#wpsr_facebook_counterplacement').slideUp();
149
- }
150
- });
151
- if($j('#wpsr_facebook_counter').val() == '1'){
152
- $j('#wpsr_facebook_counterplacement').slideDown();
153
- }
154
-
155
- });
156
-
157
- function openSubForm(){
158
- subWindow = window.open('','preview','height=500,width=600');
159
- var tmp = subWindow.document;
160
- tmp.write('<html><head><title>Subscribe to Aakash Web</title>');
161
- tmp.write('</head><body><p><b>Select an option</b></p><ul><li><a href="http://feedburner.google.com/fb/a/mailverify?uri=aakashweb">Subscribe Now</a></li><li><a href="http://feeds2.feedburner.com/aakashweb" target="_blank">Read the feeds</a></li></ul>');
162
- tmp.write('</body></html>');
163
- subWindow.moveTo(200,200);
164
- tmp.close();
165
- }
166
-
167
- function openAddthis(){
168
- window.open ("http://www.addthis.com/bookmark.php?v=250&username=vaakash&title=WP Socializer - Wordpress plugin&url=http://www.aakashweb.com/wordpress-plugins/wp-socializer/", "open_window","location=0,status=0,scrollbars=1,width=500,height=600");
169
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
socializer-admin.php DELETED
@@ -1,933 +0,0 @@
1
- <?php
2
- /*
3
- * Admin Page for WP Socializer Plugin
4
- * Author : Aakash Chakravarthy
5
- */
6
-
7
- load_plugin_textdomain('wpsr', false, basename(dirname(__FILE__)) . '/languages/');
8
-
9
- ## Load the sidebar
10
- require('adm-sidebar.php');
11
- $wpsr_donate_link='https://www.paypal.com/cgi-bin/webscr?cmd=_donations&amp;business=donations@aakashweb.com&amp;item_name=Donation for WP Socializer Plugin&amp;amount=&amp;currency_code=USD';
12
-
13
- ## Load the Javascripts
14
- function wpsr_admin_js() {
15
- global $wpsr_pluginpath;
16
- $admin_js_url = $wpsr_pluginpath . 'socializer-admin-js.js';
17
- $colorpicker_js_url = $wpsr_pluginpath . 'js/colorpicker/jquery.colorPicker.js';
18
-
19
- if (isset($_GET['page']) && $_GET['page'] == 'wp-socializer/socializer-admin.php'){
20
- wp_enqueue_script('jquery');
21
- wp_enqueue_script('jquery-ui-core', false, array('jquery'));
22
- wp_enqueue_script('jquery-ui-sortable', false, array('jquery','jquery-ui-core'));
23
- wp_enqueue_script('jquery-ui-tabs', false, array('jquery','jquery-ui-core','jquery-ui-sortable'));
24
- wp_enqueue_script('wp-socializer-admin-js', $admin_js_url, array('jquery','jquery-ui-core','jquery-ui-sortable', 'jquery-ui-tabs'));
25
- wp_enqueue_script('wp-socializer-colorpicker-js', $colorpicker_js_url, array('jquery','jquery-ui-core','jquery-ui-tabs', 'jquery-ui-sortable', 'wp-socializer-admin-js'));
26
- }
27
- }
28
- add_action('admin_print_scripts', 'wpsr_admin_js');
29
-
30
-
31
- ## Load the CSS
32
- function wpsr_admin_css() {
33
- global $wpsr_pluginpath;
34
-
35
- if (isset($_GET['page']) && $_GET['page'] == 'wp-socializer/socializer-admin.php') {
36
- wp_enqueue_style('wp-socializer-admin-css', $wpsr_pluginpath . 'socializer-admin-css.css');
37
- }
38
- }
39
- add_action('admin_print_styles', 'wpsr_admin_css');
40
-
41
-
42
- ## Admin Menu
43
- function wpsr_admin_page(){
44
-
45
- $wpsr_updated = false;
46
-
47
- ## Get the global variables
48
- global $wpsr_socialsites_list, $wpsr_socialbt_defaultimagepath, $wpsr_addthis_lang_array, $wpsr_buzz_lang_array, $wpsr_button_code_list, $wpsr_pluginpath, $wpsr_donate_link;
49
-
50
- if ($_POST["wpsr_submit"]) {
51
- ## Addthis options
52
- $wpsr_addthis['username'] = $_POST['wpsr_addthis_username'];
53
- $wpsr_addthis['language'] = $_POST['wpsr_addthis_lang'];
54
- $wpsr_addthis['button'] = $_POST['wpsr_addthis_button'];
55
- $wpsr_addthis['btbrand'] = $_POST['wpsr_addthis_btbrand'];
56
- $wpsr_addthis['btservices'] = $_POST['wpsr_addthis_btservices'];
57
- $wpsr_addthis['btheadclr'] = $_POST['wpsr_addthis_btheadclr'];
58
- $wpsr_addthis['btheadbgclr'] = $_POST['wpsr_addthis_btheadbgclr'];
59
-
60
- update_option("wpsr_addthis_data", $wpsr_addthis);
61
-
62
- ## Buzz Options
63
- $wpsr_buzz['style'] = $_POST['wpsr_buzz_style'];
64
- $wpsr_buzz['size'] = $_POST['wpsr_buzz_size'];
65
- $wpsr_buzz['language'] = $_POST['wpsr_buzz_lang'];
66
- $wpsr_buzz['page'] = $_POST['wpsr_buzz_page'];
67
- $wpsr_buzz['profile'] = $_POST['wpsr_buzz_profile'];
68
- $wpsr_buzz['followbttext'] = $_POST['wpsr_buzz_followbttext'];
69
-
70
- update_option("wpsr_buzz_data", $wpsr_buzz);
71
-
72
- ## Retweet Options
73
- $wpsr_retweet['username'] = $_POST['wpsr_retweet_username'];
74
- $wpsr_retweet['type'] = $_POST['wpsr_retweet_type'];
75
- $wpsr_retweet['service'] = $_POST['wpsr_retweet_service'];
76
- $wpsr_retweet['topsytheme'] = $_POST['wpsr_retweet_topsytheme'];
77
-
78
- update_option("wpsr_retweet_data", $wpsr_retweet);
79
-
80
- ## Digg Options
81
- $wpsr_digg['type'] = $_POST['wpsr_digg_type'];
82
-
83
- update_option("wpsr_digg_data", $wpsr_digg);
84
-
85
- ## Facebook Options
86
- $wpsr_facebook['btstyle'] = $_POST['wpsr_facebook_btstyle'];
87
- $wpsr_facebook['showfaces'] = $_POST['wpsr_facebook_showfaces'];
88
- $wpsr_facebook['width'] = $_POST['wpsr_facebook_width'];
89
- $wpsr_facebook['verb'] = $_POST['wpsr_facebook_verb'];
90
- $wpsr_facebook['font'] = $_POST['wpsr_facebook_font'];
91
- $wpsr_facebook['color'] = $_POST['wpsr_facebook_color'];
92
- $wpsr_facebook['bturl'] = $_POST['wpsr_facebook_bturl'];
93
- $wpsr_facebook['shstyle'] = $_POST['wpsr_facebook_shstyle'];
94
- $wpsr_facebook['counter'] = $_POST['wpsr_facebook_counter'];
95
- $wpsr_facebook['counterplacement'] = $_POST['wpsr_facebook_counterplacement'];
96
- $wpsr_facebook['shurl'] = $_POST['wpsr_facebook_shurl'];
97
-
98
- update_option("wpsr_facebook_data", $wpsr_facebook);
99
-
100
- ## Social Button Options
101
- $wpsr_socialbt['target'] = $_POST['wpsr_socialbt_target'];
102
- $wpsr_socialbt['loadcss'] = $_POST['wpsr_socialbt_loadcss'];
103
- $wpsr_socialbt['effect'] = $_POST['wpsr_socialbt_effect'];
104
- $wpsr_socialbt['label'] = $_POST['wpsr_socialbt_label'];
105
- $wpsr_socialbt['columns'] = $_POST['wpsr_socialbt_columns'];
106
- $wpsr_socialbt['selected16px'] = $_POST['wpsr_socialbt_selected16px'];
107
- $wpsr_socialbt['selected32px'] = $_POST['wpsr_socialbt_selected32px'];
108
- $wpsr_socialbt['imgpath16px'] = $_POST['wpsr_socialbt_imgpath16px'];
109
- $wpsr_socialbt['imgpath32px'] = $_POST['wpsr_socialbt_imgpath32px'];
110
- $wpsr_socialbt['usesprites'] = $_POST['wpsr_socialbt_usesprites'];
111
-
112
- update_option('wpsr_socialbt_data', $wpsr_socialbt);
113
-
114
- ## Custom Options
115
- $wpsr_custom['custom1'] = stripslashes($_POST['wpsr_custom1']);
116
- $wpsr_custom['custom2'] = stripslashes($_POST['wpsr_custom2']);
117
-
118
- update_option("wpsr_custom_data", $wpsr_custom);
119
-
120
- ## Placement Options | Template 1
121
- $wpsr_template1['content'] = stripslashes($_POST['wpsr_template1_content']);
122
- $wpsr_template1['inhome'] = $_POST['wpsr_template1_inhome'];
123
- $wpsr_template1['insingle'] = $_POST['wpsr_template1_insingle'];
124
- $wpsr_template1['inhome'] = $_POST['wpsr_template1_inhome'];
125
- $wpsr_template1['inpage'] = $_POST['wpsr_template1_inpage'];
126
- $wpsr_template1['incategory'] = $_POST['wpsr_template1_incategory'];
127
- $wpsr_template1['intag'] = $_POST['wpsr_template1_intag'];
128
- $wpsr_template1['indate'] = $_POST['wpsr_template1_indate'];
129
- $wpsr_template1['inauthor'] = $_POST['wpsr_template1_inauthor'];
130
- $wpsr_template1['insearch'] = $_POST['wpsr_template1_insearch'];
131
- $wpsr_template1['inexcerpt'] = $_POST['wpsr_template1_inexcerpt'];
132
- $wpsr_template1['infeed'] = $_POST['wpsr_template1_infeed'];
133
- $wpsr_template1['abvcontent'] = $_POST['wpsr_template1_abvcontent'];
134
- $wpsr_template1['blwcontent'] = $_POST['wpsr_template1_blwcontent'];
135
-
136
- update_option("wpsr_template1_data", $wpsr_template1);
137
-
138
- ## Placement Options | Template 2
139
- $wpsr_template2['content'] = stripslashes($_POST['wpsr_template2_content']);
140
- $wpsr_template2['inhome'] = $_POST['wpsr_template2_inhome'];
141
- $wpsr_template2['insingle'] = $_POST['wpsr_template2_insingle'];
142
- $wpsr_template2['inhome'] = $_POST['wpsr_template2_inhome'];
143
- $wpsr_template2['inpage'] = $_POST['wpsr_template2_inpage'];
144
- $wpsr_template2['incategory'] = $_POST['wpsr_template2_incategory'];
145
- $wpsr_template2['intag'] = $_POST['wpsr_template2_intag'];
146
- $wpsr_template2['indate'] = $_POST['wpsr_template2_indate'];
147
- $wpsr_template2['inauthor'] = $_POST['wpsr_template2_inauthor'];
148
- $wpsr_template2['insearch'] = $_POST['wpsr_template2_insearch'];
149
- $wpsr_template2['inexcerpt'] = $_POST['wpsr_template2_inexcerpt'];
150
- $wpsr_template2['infeed'] = $_POST['wpsr_template2_infeed'];
151
- $wpsr_template2['abvcontent'] = $_POST['wpsr_template2_abvcontent'];
152
- $wpsr_template2['blwcontent'] = $_POST['wpsr_template2_blwcontent'];
153
-
154
- update_option("wpsr_template2_data", $wpsr_template2);
155
-
156
- ## Settings options
157
- $wpsr_settings['disablewpsr'] = $_POST['wpsr_settings_disablewpsr'];
158
- $wpsr_settings['scriptsplace'] = $_POST['wpsr_settings_scriptsplace'];
159
-
160
- update_option("wpsr_settings_data", $wpsr_settings);
161
-
162
- $wpsr_updated = true;
163
-
164
- if(get_option("wpsr_active") == 0){
165
- update_option("wpsr_active", 1);
166
- }
167
- }
168
-
169
- if($wpsr_updated == true){
170
- echo "<div class='message updated'><p>" . __('Updated successfully', 'wpsr') . "</p></div>";
171
- }
172
-
173
- ## Addthis Options
174
- $wpsr_addthis = get_option('wpsr_addthis_data');
175
-
176
- $wpsr_addthis_username = $wpsr_addthis['username'];
177
- $wpsr_addthis_lang = $wpsr_addthis['language'];
178
- $wpsr_addthis_button = $wpsr_addthis['button'];
179
- $wpsr_addthis_btbrand = $wpsr_addthis['btbrand'];
180
- $wpsr_addthis_btservices = $wpsr_addthis['btservices'];
181
- $wpsr_addthis_btheadclr = $wpsr_addthis['btheadclr'];
182
- $wpsr_addthis_btheadbgclr = $wpsr_addthis['btheadbgclr'];
183
-
184
- $wpsr_addthis_btheadclr = ($wpsr_addthis_btheadclr == '') ? '#000' : $wpsr_addthis_btheadclr;
185
- $wpsr_addthis_btheadbgclr = ($wpsr_addthis_btheadbgclr == '') ? '#f2f2f2' : $wpsr_addthis_btheadbgclr;
186
-
187
- ## Buzz Options
188
- $wpsr_buzz = get_option('wpsr_buzz_data');
189
-
190
- $wpsr_buzz_style = $wpsr_buzz['style'];
191
- $wpsr_buzz_size = $wpsr_buzz['size'];
192
- $wpsr_buzz_lang = $wpsr_buzz['language'];
193
- $wpsr_buzz_page = $wpsr_buzz['page'];
194
- $wpsr_buzz_custompage = $wpsr_buzz['custompage'];
195
- $wpsr_buzz_profile = $wpsr_buzz['profile'];
196
- $wpsr_buzz_followbttext = $wpsr_buzz['followbttext'];
197
-
198
- ## Retweet Options
199
- $wpsr_retweet = get_option('wpsr_retweet_data');
200
-
201
- $wpsr_retweet_username = $wpsr_retweet['username'];
202
- $wpsr_retweet_type = $wpsr_retweet['type'];
203
- $wpsr_retweet_service = $wpsr_retweet['service'];
204
- $wpsr_retweet_topsytheme = $wpsr_retweet['topsytheme'];
205
-
206
- ## Digg Options
207
- $wpsr_digg = get_option('wpsr_digg_data');
208
-
209
- $wpsr_digg_type = $wpsr_digg['type'];
210
-
211
- ## Facebook Options
212
- $wpsr_facebook = get_option('wpsr_facebook_data');
213
-
214
- $wpsr_facebook_btstyle = $wpsr_facebook['btstyle'];
215
- $wpsr_facebook_showfaces = $wpsr_facebook['showfaces'];
216
- $wpsr_facebook_width = $wpsr_facebook['width'];
217
- $wpsr_facebook_verb = $wpsr_facebook['verb'];
218
- $wpsr_facebook_font = $wpsr_facebook['font'];
219
- $wpsr_facebook_color = $wpsr_facebook['color'];
220
- $wpsr_facebook_bturl = $wpsr_facebook['bturl'];
221
- $wpsr_facebook_bturlcustom = $wpsr_facebook['bturlcustom'];
222
- $wpsr_facebook_shstyle = $wpsr_facebook['shstyle'];
223
- $wpsr_facebook_counter = $wpsr_facebook['counter'];
224
- $wpsr_facebook_counterplacement = $wpsr_facebook['counterplacement'];
225
- $wpsr_facebook_shurl = $wpsr_facebook['shurl'];
226
- $wpsr_facebook_shurlcustom = $wpsr_facebook['shurlcustom'];
227
-
228
- ## Social Button options
229
- $wpsr_socialbt = get_option('wpsr_socialbt_data');
230
-
231
- $wpsr_socialbt_target = $wpsr_socialbt['target'];
232
- $wpsr_socialbt_loadcss = $wpsr_socialbt['loadcss'];
233
- $wpsr_socialbt_effect = $wpsr_socialbt['effect'];
234
- $wpsr_socialbt_label = $wpsr_socialbt['label'];
235
- $wpsr_socialbt_columns = $wpsr_socialbt['columns'];
236
- $wpsr_socialbt_selected16px = $wpsr_socialbt['selected16px'];
237
- $wpsr_socialbt_selected32px = $wpsr_socialbt['selected32px'];
238
- $wpsr_socialbt_usesprites = $wpsr_socialbt['usesprites'];
239
- $wpsr_socialbt_imgpath16px = ($wpsr_socialbt['imgpath16px'] != '') ? $wpsr_socialbt['imgpath16px'] : $wpsr_socialbt_defaultimagepath . '16/';
240
- $wpsr_socialbt_imgpath32px = ($wpsr_socialbt['imgpath32px'] != '') ? $wpsr_socialbt['imgpath32px'] : $wpsr_socialbt_defaultimagepath . '32/';
241
-
242
- ## Custom Options
243
- $wpsr_custom = get_option('wpsr_custom_data');
244
-
245
- $wpsr_custom1 = $wpsr_custom['custom1'];
246
- $wpsr_custom2 = $wpsr_custom['custom2'];
247
-
248
- ## Placement Options | Template 1
249
- $wpsr_template1 = get_option('wpsr_template1_data');
250
-
251
- $wpsr_template1_content = $wpsr_template1['content'];
252
- $wpsr_template1_inhome = $wpsr_template1['inhome'];
253
- $wpsr_template1_insingle = $wpsr_template1['insingle'];
254
- $wpsr_template1_inpage = $wpsr_template1['inpage'];
255
- $wpsr_template1_incategory = $wpsr_template1['incategory'];
256
- $wpsr_template1_intag = $wpsr_template1['intag'];
257
- $wpsr_template1_indate = $wpsr_template1['indate'];
258
- $wpsr_template1_inauthor = $wpsr_template1['inauthor'];
259
- $wpsr_template1_insearch = $wpsr_template1['insearch'];
260
- $wpsr_template1_inexcerpt = $wpsr_template1['inexcerpt'];
261
- $wpsr_template1_infeed = $wpsr_template1['infeed'];
262
- $wpsr_template1_abvcontent = $wpsr_template1['abvcontent'];
263
- $wpsr_template1_blwcontent = $wpsr_template1['blwcontent'];
264
-
265
- ## Placement Options | Template 2
266
- $wpsr_template2 = get_option('wpsr_template2_data');
267
-
268
- $wpsr_template2_content = $wpsr_template2['content'];
269
- $wpsr_template2_inhome = $wpsr_template2['inhome'];
270
- $wpsr_template2_insingle = $wpsr_template2['insingle'];
271
- $wpsr_template2_inpage = $wpsr_template2['inpage'];
272
- $wpsr_template2_incategory = $wpsr_template2['incategory'];
273
- $wpsr_template2_intag = $wpsr_template2['intag'];
274
- $wpsr_template2_indate = $wpsr_template2['indate'];
275
- $wpsr_template2_inauthor = $wpsr_template2['inauthor'];
276
- $wpsr_template2_insearch = $wpsr_template2['insearch'];
277
- $wpsr_template2_inexcerpt = $wpsr_template2['inexcerpt'];
278
- $wpsr_template2_infeed = $wpsr_template2['infeed'];
279
- $wpsr_template2_abvcontent = $wpsr_template2['abvcontent'];
280
- $wpsr_template2_blwcontent = $wpsr_template2['blwcontent'];
281
-
282
- ## Settings options
283
- $wpsr_settings = get_option('wpsr_settings_data');
284
-
285
- $wpsr_settings_disablewpsr = $wpsr_settings['disablewpsr'];
286
- $wpsr_settings_scriptsplace = $wpsr_settings['scriptsplace'];
287
-
288
- if($wpsr_settings_disablewpsr) $wpsr_is_disabled = '<span class="redText"> | ' . __('Disabled', 'wpsr') . '</span>';
289
-
290
- ?>
291
-
292
- <div class="wrap">
293
-
294
- <h2><img width="32" height="32" src="<?php echo $wpsr_pluginpath; ?>images/wp-socializer.png" align="absmiddle"/>&nbsp;WP Socializer<span class="smallText"> v<?php echo WPSR_VERSION; ?><?php echo $wpsr_is_disabled; ?></span></h2>
295
-
296
- <div id="leftContent">
297
- <div id="tabs">
298
-
299
- <ul id="tabsList">
300
- <li><a href="#tab-1">Social Buttons</a></li>
301
- <li><a href="#tab-2">Add This</a></li>
302
- <li><a href="#tab-3">Google Buzz</a></li>
303
- <li><a href="#tab-4">Retweet &amp; Digg</a></li>
304
- <li><a href="#tab-5">Facebook</a></li>
305
- <li><a href="#tab-6">Custom</a></li>
306
- <li><a href="#tab-7">Placement</a></li>
307
- <li><a href="#tab-8" title="Settings"><img src="<?php echo $wpsr_pluginpath; ?>images/settings.png" alt="settings" /></a></li>
308
- <li><a class="helpLink" target="_blank"><img src="<?php echo $wpsr_pluginpath; ?>images/help.png" alt="settings" /></a></li>
309
- </ul>
310
-
311
-
312
- <form method="post">
313
-
314
- <div id="tab-1" class="tabContent">
315
-
316
- <input type="hidden" id="wpsr_socialbt_selected16px" name="wpsr_socialbt_selected16px" value="<?php echo $wpsr_socialbt_selected16px; ?>" />
317
- <input type="hidden" id="wpsr_socialbt_selected32px" name="wpsr_socialbt_selected32px" value="<?php echo $wpsr_socialbt_selected32px; ?>" />
318
-
319
- <h4><?php _e('Social Buttons', 'wpsr'); ?></h4>
320
- <div class="section">
321
- <span class="smallText">
322
- <?php _e('Click the icon size to select and "x" button to remove selected. Click and drag to reorder selected sites', 'wpsr'); ?>
323
- </span>
324
- <span style="float:left; width:70%;">
325
- <h5><?php _e('Available buttons', 'wpsr'); ?></h5>
326
-
327
- <?php
328
- $spriteImage16px = $wpsr_socialbt_defaultimagepath . 'wp-socializer-sprite-16px.png';
329
- $spriteMaskImage16px = $wpsr_socialbt_defaultimagepath . 'wp-socializer-sprite-mask-16px.gif';
330
-
331
- echo '<ul id="wpsr_socialbt_list">';
332
- foreach ($wpsr_socialsites_list as $sitename => $property) {
333
-
334
- $spritesYCoord = get_sprite_coord($sitename, $wpsr_socialsites_list, '16');
335
- $finalSprites = '0px -' . $spritesYCoord . 'px';'wp-socializer-sprite-mask-16px.gif';
336
-
337
- echo
338
- "\n<li>" .
339
- '<img src="' . $spriteMaskImage16px . '" alt="' . $sitename . '" style="background-position:' . $finalSprites . '">' .
340
- '<span class="sb_name">' . $sitename . '</span>' .
341
- '<span class="sb_add16px">16</span>';
342
-
343
- if($property['support32px'] == 1){
344
- echo '<span class="sb_add32px">32</span>';
345
- }
346
-
347
- }
348
- echo '</ul>';
349
- ?>
350
- </span>
351
-
352
- <span style="float:right; width:30%">
353
- <h4><?php _e('Selected buttons', 'wpsr'); ?> | 16px </h4>
354
-
355
- <ul class="wpsr_socialbt_selected_list" id="wpsr_socialbt_selected_list_16px">
356
- <?php
357
- $wpsr_socialbt_splited16px = explode(',', $wpsr_socialbt_selected16px);
358
-
359
- for($i=0; $i < count($wpsr_socialbt_splited16px); $i++){
360
- echo "\n<li><span class=\"sb_name\">" . $wpsr_socialbt_splited16px[$i] . '</span><span class="sb_close">x</span></li>';
361
- }
362
-
363
- ?>
364
- </ul>
365
-
366
- <span style="clear:both; display:block"></span>
367
-
368
- <h4><?php _e('Selected buttons', 'wpsr'); ?> | 32px</h4>
369
- <ul class="wpsr_socialbt_selected_list" id="wpsr_socialbt_selected_list_32px">
370
- <?php
371
- $wpsr_socialbt_splited32px = explode(',', $wpsr_socialbt_selected32px);
372
-
373
- for($i=0; $i < count($wpsr_socialbt_splited32px); $i++){
374
- echo "\n<li><span class=\"sb_name\">" . $wpsr_socialbt_splited32px[$i] . '</span><span class="sb_close">x</span></li>';
375
- }
376
-
377
- ?>
378
- </ul>
379
-
380
- </span>
381
-
382
- <span style="clear:both; display:block"></span>
383
-
384
- </div>
385
-
386
- <h4><?php _e('Settings', 'wpsr'); ?></h4>
387
- <div class="section">
388
- <table width="100%" border="0">
389
- <tr>
390
- <td height="35"><?php _e('Open links in new tab/window', 'wpsr'); ?></td>
391
- <td><select id="wpsr_socialbt_target" name="wpsr_socialbt_target">
392
- <option <?php echo $wpsr_socialbt_target == '1' ? ' selected="selected"' : ''; ?> value="1"><?php _e('Yes', 'wpsr'); ?></option>
393
- <option <?php echo $wpsr_socialbt_target == '0' ? ' selected="selected"' : ''; ?> value="0"><?php _e('No', 'wpsr'); ?></option>
394
- </select></td>
395
- </tr>
396
- <tr>
397
- <td height="35"><?php _e('Load WP Socializer CSS', 'wpsr'); ?><br />
398
- <span class="smallText"><?php _e('Note: hover effects &amp; column will not be available', 'wpsr'); ?></span></td>
399
- <td><select id="wpsr_socialbt_loadcss" name="wpsr_socialbt_loadcss">
400
- <option <?php echo $wpsr_socialbt_loadcss == '1' ? ' selected="selected"' : ''; ?> value="1"><?php _e('Yes', 'wpsr'); ?></option>
401
- <option <?php echo $wpsr_socialbt_loadcss == '0' ? ' selected="selected"' : ''; ?> value="0"><?php _e('No', 'wpsr'); ?></option>
402
- </select></td>
403
- </tr>
404
- <tr>
405
- <td height="35"><?php _e('Image on Hover effect', 'wpsr'); ?> </td>
406
- <td><select id="wpsr_socialbt_effect" name="wpsr_socialbt_effect">
407
- <option <?php echo $wpsr_socialbt_effect == 'jump' ? ' selected="selected"' : ''; ?> value="jump">Jump Effect</option>
408
- <option <?php echo $wpsr_socialbt_effect == 'opacity' ? ' selected="selected"' : ''; ?> value="opacity">Transparency Effect</option>
409
- <option <?php echo $wpsr_socialbt_effect == 'none' ? ' selected="selected"' : ''; ?> value="none"><?php _e('No Effect', 'wpsr'); ?></option>
410
- </select></td>
411
- </tr>
412
- <tr>
413
- <td height="40"><?php _e('Show Label for buttons', 'wpsr'); ?> </td>
414
- <td><select id="wpsr_socialbt_label" name="wpsr_socialbt_label">
415
- <option <?php echo $wpsr_socialbt_label == '1' ? ' selected="selected"' : ''; ?> value="1"><?php _e('Yes', 'wpsr'); ?></option>
416
- <option <?php echo $wpsr_socialbt_label == '0' ? ' selected="selected"' : ''; ?> value="0"><?php _e('No', 'wpsr'); ?></option>
417
- </select></td>
418
- </tr>
419
- <tr>
420
- <td height="53"><?php _e('Show Icons in', 'wpsr'); ?> <br />
421
- <span class="smallText"><?php _e('Very very effective when labels are enabled (try it)', 'wpsr'); ?></span> </td>
422
- <td><select id="wpsr_socialbt_columns" name="wpsr_socialbt_columns">
423
- <option <?php echo $wpsr_socialbt_columns == 'no' ? ' selected="selected"' : ''; ?> value="no">No Column</option>
424
- <option <?php echo $wpsr_socialbt_columns == '5' ? ' selected="selected"' : ''; ?> value="5">5 Columns</option>
425
- <option <?php echo $wpsr_socialbt_columns == '4' ? ' selected="selected"' : ''; ?> value="4">4 Columns</option>
426
- <option <?php echo $wpsr_socialbt_columns == '3' ? ' selected="selected"' : ''; ?> value="3">3 Columns</option>
427
- <option <?php echo $wpsr_socialbt_columns == '2' ? ' selected="selected"' : ''; ?> value="2">2 Columns</option>
428
- </select></td>
429
- </tr>
430
- <tr>
431
- <td height="53"><?php _e('Image folder', 'wpsr'); ?><br />
432
- <span class="smallText"><?php _e('Leave blank to use default', 'wpsr'); ?></span> </td>
433
- <td>
434
- <input name="wpsr_socialbt_imgpath16px" type="text" id="wpsr_socialbt_imgpath16px" value="<?php echo $wpsr_socialbt_imgpath16px; ?>" size="40" />
435
- (16px)<br />
436
-
437
- <input name="wpsr_socialbt_imgpath32px" type="text" id="wpsr_socialbt_imgpath32px" value="<?php echo $wpsr_socialbt_imgpath32px; ?>" size="40" />
438
- (32px)</td>
439
- </tr>
440
- <tr>
441
- <td height="35"><?php _e('Use Sprites', 'wpsr'); ?></td>
442
- <td><select id="wpsr_socialbt_usesprites" name="wpsr_socialbt_usesprites">
443
- <option <?php echo $wpsr_socialbt_usesprites == '1' ? ' selected="selected"' : ''; ?> value="1"><?php _e('Yes', 'wpsr'); ?></option>
444
- <option <?php echo $wpsr_socialbt_usesprites == '0' ? ' selected="selected"' : ''; ?> value="0"><?php _e('No', 'wpsr'); ?></option>
445
- </select></td>
446
- </tr>
447
- </table>
448
- </div>
449
-
450
- <p class="codeBox"><?php echo sprintf(__('For using the 16px buttons, use the code %s in the placement template', 'wpsr'), '<span>{social-bts-16px}</span>'); ?></p>
451
- <p class="codeBox"><?php echo sprintf(__('For using the 32px buttons, use the code %s in the placement template', 'wpsr'), '<span>{social-bts-32px}</span>'); ?></p>
452
-
453
- </div>
454
-
455
- <div id="tab-2" class="tabContent">
456
- <h4><?php _e('General', 'wpsr'); ?></h4>
457
- <div class="section">
458
- <table width="100%" height="38" border="0">
459
- <tr>
460
- <td width="19%"><label for="wpsr_addthis_username"><?php _e('Add This Username', 'wpsr'); ?></label></td>
461
- <td width="31%"><input type="text" id="wpsr_addthis_username" name="wpsr_addthis_username" value="<?php echo $wpsr_addthis_username; ?>" /><br /><span class="smallText"><?php _e('If available', 'wpsr'); ?></span></td>
462
- <td width="12%"><label for="wpsr_addthis_lang"><?php _e('Language', 'wpsr'); ?></label></td>
463
- <td width="38%"><select name="wpsr_addthis_lang"><?php foreach ($wpsr_addthis_lang_array as $lang=>$name){echo "<option value=\"$lang\"". ($lang == $wpsr_addthis_lang ? " selected":"") . ">$name</option>";}?></select></td>
464
- </tr>
465
- </table>
466
- </div>
467
-
468
- <h4><?php _e('Choose the Bookmarking or sharing button', 'wpsr'); ?></h4>
469
-
470
- <div class="section">
471
- <table width="100%" height="118" border="0">
472
- <tr>
473
- <td height="38"><label><input name="wpsr_addthis_button" id="wpsr_addthis_button" type="radio" value="lg-share-" <?php echo $wpsr_addthis_button == 'lg-share-' ? ' checked="checked"' : ''; ?> /> <img src="http://s7.addthis.com/static/btn/v2/lg-share-<?php echo $wpsr_addthis_lang; ?>.gif" alt="Share button - Large"/></label></td>
474
-
475
- <td><label><input name="wpsr_addthis_button" id="wpsr_addthis_button" type="radio" value="lg-bookmark-" <?php echo $wpsr_addthis_button == 'lg-bookmark-' ? ' checked="checked"' : ''; ?> /> <img src="http://s7.addthis.com/static/btn/v2/lg-bookmark-en.gif" alt="Bookmark button - Large"/></label></td>
476
- </tr>
477
-
478
- <tr>
479
- <td height="36"><label><input name="wpsr_addthis_button" id="wpsr_addthis_button" type="radio" value="lg-addthis-" <?php echo $wpsr_addthis_button == 'lg-addthis-' ? ' checked="checked"' : ''; ?> /> <img src="http://s7.addthis.com/static/btn/v2/lg-addthis-en.gif" alt="Addthis button - Large"/></label></td>
480
-
481
- <td><label><input name="wpsr_addthis_button" id="wpsr_addthis_button" type="radio" value="sm-share-" <?php echo $wpsr_addthis_button == 'sm-share-' ? ' checked="checked"' : ''; ?> /> <img src="http://s7.addthis.com/static/btn/v2/sm-share-en.gif" alt="Share button - Small"/></label></td>
482
-
483
- </tr>
484
- <tr>
485
- <td><label><input name="wpsr_addthis_button" id="wpsr_addthis_button" type="radio" value="sm-bookmark-" <?php echo $wpsr_addthis_button == 'sm-bookmark-' ? ' checked="checked"' : ''; ?> /> <img src="http://s7.addthis.com/static/btn/v2/sm-bookmark-en.gif" alt="Bookmark button - Small"/></label></td>
486
- <td>&nbsp;</td>
487
- </tr>
488
- </table>
489
- </div>
490
-
491
- <h4><?php _e('Optional button Settings', 'wpsr'); ?></h4>
492
-
493
- <div class="section">
494
- <table width="100%" border="0">
495
- <tr>
496
- <td width="13%" height="52"><label for="wpsr_addthis_btbrand"><?php _e('Brand Name', 'wpsr'); ?></label></td>
497
- <td width="30%"><input name="wpsr_addthis_btbrand" type="text" value="<?php echo $wpsr_addthis_btbrand; ?>"/><br /><span class="smallText"><?php _e('Leave blank to use default', 'wpsr'); ?></span></td>
498
-
499
- <td width="14%"><label for="wpsr_addthis_btservices"><?php _e('Custom services', 'wpsr'); ?></label></td>
500
- <td width="43%"><input name="wpsr_addthis_btservices" type="text" value="<?php echo $wpsr_addthis_btservices; ?>"/><br /><span class="smallText"><?php _e('comma-seperated', 'wpsr'); ?> | <?php _e('Leave blank to use default', 'wpsr'); ?></span></td>
501
-
502
- </tr>
503
- <tr>
504
- <td><?php _e('Header Color', 'wpsr'); ?></td>
505
- <td><input name="wpsr_addthis_btheadclr" id="wpsr_addthis_btheadclr" type="text" value="<?php echo $wpsr_addthis_btheadclr; ?>"/></td>
506
- <td><?php _e('Header Background', 'wpsr'); ?></td>
507
- <td><input name="wpsr_addthis_btheadbgclr" id="wpsr_addthis_btheadbgclr" type="text" value="<?php echo $wpsr_addthis_btheadbgclr; ?>"/></td>
508
- </tr>
509
- </table>
510
- </div>
511
-
512
- <p class="codeBox"><?php echo sprintf(__('For using this button, use the code %s in the placement template', 'wpsr'), '<span>{addthis-bt}</span>'); ?></p>
513
-
514
- </div><!-- Addthis box -->
515
-
516
- <div id="tab-3" class="tabContent">
517
-
518
- <h4><?php _e('Post to Buzz button', 'wpsr'); ?></h4>
519
-
520
- <div class="section">
521
- <table width="100%" height="181" border="0">
522
- <tr>
523
- <td width="29%" height="21"><?php _e('Style', 'wpsr'); ?></td>
524
- <td width="71%" rowspan="2">
525
- <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 />
526
- <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 />
527
- <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>
528
- </tr>
529
- <tr>
530
- <td height="53">&nbsp;</td>
531
- </tr>
532
- <tr>
533
- <td height="63"><?php _e('Size', 'wpsr'); ?><br /><span class="smallText"><?php _e('Not for link', 'wpsr'); ?></span></td>
534
- <td><label><input name="wpsr_buzz_size" id="radio" type="radio" value="normal" <?php echo $wpsr_buzz_size == 'normal' ? ' checked="checked"' : ''; ?> /> <?php _e('Normal', 'wpsr'); ?></label>
535
- <br />
536
- <label><input name="wpsr_buzz_size" id="radio" type="radio" value="small" <?php echo $wpsr_buzz_size == 'small' ? ' checked="checked"' : ''; ?> /> <?php _e('Small', 'wpsr'); ?></label></td>
537
- </tr>
538
- <tr>
539
- <td height="34"><?php _e('Language', 'wpsr'); ?></td>
540
- <td><select name="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>
541
- </tr>
542
- </table>
543
- </div>
544
-
545
- <p class="codeBox"><?php echo sprintf(__('For using this button, use the code %s in the placement template', 'wpsr'), '<span>{buzz-post}</span>'); ?></p>
546
-
547
- <h4><?php _e('Follow on Buzz button', 'wpsr'); ?></h4>
548
-
549
- <div class="section">
550
- <table width="100%" border="0">
551
- <tr>
552
- <td width="30%"><?php _e('Profile URL', 'wpsr'); ?> </td>
553
- <td width="70%"><input name="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>
554
- </tr>
555
- <tr>
556
- <td height="36"><?php _e('Button Text', 'wpsr'); ?></td>
557
- <td><input name="wpsr_buzz_followbttext" type="text" value="<?php echo $wpsr_buzz_followbttext ?>" size="35"/></td>
558
- </tr>
559
- </table>
560
- </div>
561
-
562
- <p class="codeBox"><?php echo sprintf(__('For using this button, use the code %s in the placement template', 'wpsr'), '<span>{buzz-follow}</span>'); ?></p>
563
-
564
- </div><!-- Buzz box -->
565
-
566
- <div id="tab-4" class="tabContent">
567
-
568
- <h4><?php _e('General', 'wpsr'); ?></h4>
569
-
570
- <div class="section">
571
- <table width="100%" height="76" border="0">
572
- <tr>
573
- <td width="30%" height="37"><?php _e('Twitter Username', 'wpsr'); ?></td>
574
- <td width="70%">@<input name="wpsr_retweet_username" type="text" value="<?php echo $wpsr_retweet_username; ?>"/></td>
575
- </tr>
576
- <tr>
577
- <td><?php _e('Retweet Button Type', 'wpsr'); ?></td>
578
- <td><select id="wpsr_retweet_type" name="wpsr_retweet_type">
579
- <option <?php echo $wpsr_retweet_type == 'normal' ? ' selected="selected"' : ''; ?> value="normal"><?php _e('Normal (Big)', 'wpsr'); ?></option>
580
- <option <?php echo $wpsr_retweet_type == 'compact' ? ' selected="selected"' : ''; ?> value="compact"><?php _e('Compact', 'wpsr'); ?></option>
581
- </select></td>
582
- </tr>
583
- </table>
584
- </div>
585
-
586
- <h4><?php _e('Choose a service', 'wpsr'); ?></h4>
587
-
588
- <div class="section">
589
- <table width="100%" border="0">
590
- <tr>
591
- <td width="30%"><?php _e('Retweet Service', 'wpsr'); ?></td>
592
- <td width="70%"><select id="wpsr_retweet_service" name="wpsr_retweet_service">
593
- <option <?php echo $wpsr_retweet_service == 'tweetmeme' ? ' selected="selected"' : ''; ?> value="tweetmeme">TweetMeme</option>
594
- <option <?php echo $wpsr_retweet_service == 'topsy' ? ' selected="selected"' : ''; ?> value="topsy">Topsy</option>
595
- <option <?php echo $wpsr_retweet_service == 'retweet' ? ' selected="selected"' : ''; ?> value="retweet">Retweet</option>
596
- </select><br />
597
- <span id="wpsr_retweet_topsysettings">
598
- <?php _e('Select a theme for topsy', 'wpsr'); ?>
599
- <select id="wpsr_retweet_topsytheme" name="wpsr_retweet_topsytheme">
600
- <option value="blue" <?php echo $wpsr_retweet_topsytheme == 'blue' ? ' selected="selected"' : ''; ?> >blue</option>
601
- <option value="brown" <?php echo $wpsr_retweet_topsytheme == 'brown' ? ' selected="selected"' : ''; ?>>brown</option>
602
- <option value="jade" <?php echo $wpsr_retweet_topsytheme == 'jade' ? ' selected="selected"' : ''; ?>>jade</option>
603
- <option value="brick-red" <?php echo $wpsr_retweet_topsytheme == 'brick-red' ? ' selected="selected"' : ''; ?>>brick-red</option>
604
- <option value="sea-foam" <?php echo $wpsr_retweet_topsytheme == 'sea-foam' ? ' selected="selected"' : ''; ?>>sea-foam</option>
605
- <option value="mustard" <?php echo $wpsr_retweet_topsytheme == 'mustard' ? ' selected="selected"' : ''; ?>>mustard</option>
606
- <option value="hot-pink" <?php echo $wpsr_retweet_topsytheme == 'hot-pink' ? ' selected="selected"' : ''; ?>>hot-pink</option>
607
- </select>
608
- </span></td>
609
- </tr>
610
- </table>
611
- </div>
612
- <p class="codeBox"><?php echo sprintf(__('For using this button, use the code %s in the placement template', 'wpsr'), '<span>{retweet-bt}</span>'); ?></p>
613
-
614
- <h4><?php _e('Digg Button', 'wpsr'); ?></h4>
615
- <div class="section">
616
- <table width="100%" border="0">
617
- <tr>
618
- <td width="31%"><?php _e('Digg Button type', 'wpsr'); ?></td>
619
- <td width="69%"><select id="wpsr_digg_type" name="wpsr_digg_type">
620
- <option <?php echo $wpsr_digg_type == 'DiggMedium' ? ' selected="selected"' : ''; ?> value="DiggMedium"><?php _e('Medium', 'wpsr'); ?></option>
621
- <option <?php echo $wpsr_digg_type == 'DiggLarge' ? ' selected="selected"' : ''; ?> value="DiggLarge"><?php _e('Large', 'wpsr'); ?></option>
622
- <option <?php echo $wpsr_digg_type == 'DiggCompact' ? ' selected="selected"' : ''; ?> value="DiggCompact"><?php _e('Compact', 'wpsr'); ?></option>
623
- <option <?php echo $wpsr_digg_type == 'DiggIcon' ? ' selected="selected"' : ''; ?> value="DiggIcon"><?php _e('Icon', 'wpsr'); ?></option>
624
- </select></td>
625
- </tr>
626
- </table>
627
- </div>
628
- <p class="codeBox"><?php echo sprintf(__('For using this button, use the code %s in the placement template', 'wpsr'), '<span>{digg-bt}</span>'); ?></p>
629
-
630
- </div>
631
-
632
- <div id="tab-5" class="tabContent">
633
- <h4><?php _e('Like Button', 'wpsr'); ?></h4>
634
- <div class="section">
635
- <table width="100%" border="0">
636
- <tr>
637
- <td width="30%" height="31"><?php _e('Button Style', 'wpsr'); ?></td>
638
- <td width="70%"><select id="wpsr_facebook_btstyle" name="wpsr_facebook_btstyle">
639
- <option <?php echo $wpsr_facebook_btstyle == 'standard' ? ' selected="selected"' : ''; ?> value="standard"><?php _e('Standard', 'wpsr'); ?></option>
640
- <option <?php echo $wpsr_facebook_btstyle == 'button_count' ? ' selected="selected"' : ''; ?> value="button_count"><?php _e('Button and count', 'wpsr'); ?></option>
641
- </select></td>
642
- </tr>
643
- <tr>
644
- <td height="35"><?php _e('Show Faces', 'wpsr'); ?></td>
645
- <td><select id="wpsr_facebook_showfaces" name="wpsr_facebook_showfaces">
646
- <option <?php echo $wpsr_facebook_showfaces == '1' ? ' selected="selected"' : ''; ?> value="1"><?php _e('Yes', 'wpsr'); ?></option>
647
- <option <?php echo $wpsr_facebook_showfaces == '0' ? ' selected="selected"' : ''; ?> value="0"><?php _e('No', 'wpsr'); ?></option>
648
- </select></td>
649
- </tr>
650
- <tr>
651
- <td height="49"><?php _e('Width', 'wpsr'); ?></td>
652
- <td><input name="wpsr_facebook_width" type="text" value="<?php echo $wpsr_facebook_width; ?>"/><br /><span class="smallText"><?php _e('In pixels', 'wpsr'); ?></span></td>
653
- </tr>
654
- <tr>
655
- <td height="35"><?php _e('Verb to Display', 'wpsr'); ?></td>
656
- <td><select id="wpsr_facebook_verb" name="wpsr_facebook_verb">
657
- <option <?php echo $wpsr_facebook_verb == 'like' ? ' selected="selected"' : ''; ?> value="like"><?php _e('Like', 'wpsr'); ?></option>
658
- <option <?php echo $wpsr_facebook_verb == 'recommend' ? ' selected="selected"' : ''; ?> value="recommend"><?php _e('Recommend', 'wpsr'); ?></option>
659
- </select></td>
660
- </tr>
661
- <tr>
662
- <td height="37"><?php _e('Font', 'wpsr'); ?></td>
663
- <td><select id="wpsr_facebook_font" name="wpsr_facebook_font">
664
- <option <?php echo $wpsr_facebook_font == 'arial' ? ' selected="selected"' : ''; ?> value="arial">Arial</option>
665
- <option <?php echo $wpsr_facebook_font == 'lucida grande' ? ' selected="selected"' : ''; ?> value="lucida grande">Lucida Grande</option>
666
- <option <?php echo $wpsr_facebook_font == 'segoe ui' ? ' selected="selected"' : ''; ?> value="segoe ui">Segoe UI</option>
667
- <option <?php echo $wpsr_facebook_font == 'tahoma' ? ' selected="selected"' : ''; ?> value="tahoma">Tahoma</option>
668
- <option <?php echo $wpsr_facebook_font == 'trebuchet ms' ? ' selected="selected"' : ''; ?> value="trebuchet ms">Trebuchet MS</option>
669
- <option <?php echo $wpsr_facebook_font == 'verdana' ? ' selected="selected"' : ''; ?> value="verdana">Verdana</option>
670
- </select></td>
671
- </tr>
672
- <tr>
673
- <td height="38"><?php _e('Color scheme', 'wpsr'); ?></td>
674
- <td><select id="wpsr_facebook_color" name="wpsr_facebook_color">
675
- <option <?php echo $wpsr_facebook_color == 'light' ? ' selected="selected"' : ''; ?> value="light"><?php _e('Light', 'wpsr'); ?></option>
676
- <option <?php echo $wpsr_facebook_color == 'dark' ? ' selected="selected"' : ''; ?> value="dark"><?php _e('Dark', 'wpsr'); ?></option>
677
- </select></td>
678
- </tr>
679
- </table>
680
- </div>
681
-
682
- <p class="codeBox"><?php echo sprintf(__('For using this button, use the code %s in the placement template', 'wpsr'), '<span>{facebook-like}</span>'); ?></p>
683
-
684
-
685
- <h4><?php _e('Share Button', 'wpsr'); ?></h4>
686
- <div class="section">
687
- <table width="100%" height="121" border="0">
688
- <tr>
689
- <td width="30%" height="47"><?php _e('Style', 'wpsr'); ?></td>
690
- <td width="70%">
691
- <label><input name="wpsr_facebook_shstyle" id="wpsr_facebook_shstyle" type="radio" value="button" <?php echo $wpsr_facebook_shstyle == 'button' ? ' checked="checked"' : ''; ?> /><?php _e('Button', 'wpsr'); ?></label>
692
- <br />
693
- <label><input name="wpsr_facebook_shstyle" id="wpsr_facebook_shstyle" type="radio" value="link" <?php echo $wpsr_facebook_shstyle == 'link' ? ' checked="checked"' : ''; ?> /><?php _e('Link', 'wpsr'); ?></label></td>
694
- </tr>
695
- <tr>
696
- <td height="68"><?php _e('Show Counter', 'wpsr'); ?><br /><span class="smallText"><?php _e('Not for link', 'wpsr'); ?></span></td>
697
- <td><select id="wpsr_facebook_counter" name="wpsr_facebook_counter">
698
- <option <?php echo $wpsr_facebook_counter == '1' ? ' selected="selected"' : ''; ?> value="1"><?php _e('Yes', 'wpsr'); ?></option>
699
- <option <?php echo $wpsr_facebook_counter == '0' ? ' selected="selected"' : ''; ?> value="0"><?php _e('No', 'wpsr'); ?></option>
700
- </select><br />
701
- <span id="wpsr_facebook_counterplacement">
702
- <label><input name="wpsr_facebook_counterplacement" id="wpsr_facebook_counterplacement" type="radio" value="above" <?php echo $wpsr_facebook_counterplacement == 'above' ? ' checked="checked"' : ''; ?> /><?php _e('Above the button', 'wpsr'); ?></label>
703
- <br />
704
- <label><input name="wpsr_facebook_counterplacement" id="wpsr_facebook_counterplacement" type="radio" value="inline" <?php echo $wpsr_facebook_counterplacement == 'inline' ? ' checked="checked"' : ''; ?> /><?php _e('Inline with the Button', 'wpsr'); ?></label>
705
- </span> </td>
706
- </tr>
707
- </table>
708
- </div>
709
-
710
- <p class="codeBox"><?php echo sprintf(__('For using this button, use the code %s in the placement template', 'wpsr'), '<span>{facebook-share}</span>'); ?></p>
711
-
712
- </div>
713
-
714
- <div id="tab-6" class="tabContent">
715
- <h4><?php _e('Custom 1', 'wpsr'); ?></h4>
716
- <div class="section">
717
- <textarea name="wpsr_custom1" cols="60" rows="8" class="template_box"><?php echo $wpsr_custom1; ?></textarea><br />
718
- <span class="smallText"><?php printf(__('Enter any share button code. Use %s for the page url and %s for page title', 'wpsr'), '{url}', '{title}'); ?></span>
719
- </div>
720
- <p class="codeBox"><?php echo sprintf(__('For using this, use the code %s in the placement template', 'wpsr'), '<span>{custom-1}</span>'); ?></p>
721
-
722
- <h4><?php _e('Custom 2', 'wpsr'); ?></h4>
723
- <div class="section">
724
- <textarea name="wpsr_custom2" cols="60" rows="8" class="template_box"><?php echo $wpsr_custom2; ?></textarea><br />
725
- <span class="smallText"><?php printf(__('Enter any share button code. Use %s for the page url and %s for page title', 'wpsr'), '{url}', '{title}'); ?></span>
726
- </div>
727
-
728
- <p class="codeBox"><?php echo sprintf(__('For using this, use the code %s in the placement template', 'wpsr'), '<span>{custom-2}</span>'); ?></p>
729
-
730
- </div>
731
-
732
- <div id="tab-7" class="tabContent">
733
-
734
- <p class="codeBox"><?php _e('Available button codes', 'wpsr'); ?> <?php foreach($wpsr_button_code_list as $code){ echo '<span>' . $code . '</span>'; }?></p>
735
-
736
- <h4><?php _e('Template 1', 'wpsr'); ?></h4>
737
- <div class="section">
738
-
739
- <div class="placement_left">
740
- <textarea name="wpsr_template1_content" id="wpsr_template1_content" cols="60" rows="10" class="template_box"><?php echo $wpsr_template1_content; ?></textarea>
741
- </div>
742
-
743
- <div class="placement_right">
744
-
745
- <label><input name="wpsr_template1_inhome" type="checkbox" value="1" <?php echo $wpsr_template1_inhome == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in front page', 'wpsr'); ?></label> <br />
746
-
747
- <label><input name="wpsr_template1_insingle" type="checkbox" value="1" <?php echo $wpsr_template1_insingle == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in individual posts', 'wpsr'); ?></label> <br />
748
-
749
- <label><input name="wpsr_template1_inpage" type="checkbox" value="1" <?php echo $wpsr_template1_inpage == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in pages', 'wpsr'); ?></label> <br />
750
-
751
- <label><input name="wpsr_template1_incategory" type="checkbox" value="1" <?php echo $wpsr_template1_incategory == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in archive pages', 'wpsr'); ?></label> <br />
752
-
753
- <label><input name="wpsr_template1_intag" type="checkbox" value="1" <?php echo $wpsr_template1_intag == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in Tag pages', 'wpsr'); ?></label> <br />
754
-
755
- <label><input name="wpsr_template1_indate" type="checkbox" value="1" <?php echo $wpsr_template1_indate == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in date archives', 'wpsr'); ?></label> <br />
756
-
757
- <label><input name="wpsr_template1_inauthor" type="checkbox" value="1" <?php echo $wpsr_template1_inauthor == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in author pages', 'wpsr'); ?></label> <br />
758
-
759
- <label><input name="wpsr_template1_insearch" type="checkbox" value="1" <?php echo $wpsr_template1_insearch == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in search pages', 'wpsr'); ?></label> <br />
760
-
761
- <label><input name="wpsr_template1_inexcerpt" type="checkbox" value="1" <?php echo $wpsr_template1_inexcerpt == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in Excerpt', 'wpsr'); ?></label> <br />
762
-
763
- <label><input name="wpsr_template1_infeed" type="checkbox" value="1" <?php echo $wpsr_template1_infeed == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in RSS feeds', 'wpsr'); ?></label>
764
-
765
- </div>
766
-
767
- <div style="clear:both"></div>
768
-
769
- <table width="100%" height="40" border="0">
770
- <tr>
771
- <td width="19%"><strong><?php _e('Position', 'wpsr'); ?></strong></td>
772
- <td width="21%"><label><input name="wpsr_template1_abvcontent" type="checkbox" value="1" <?php echo $wpsr_template1_abvcontent == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Above content', 'wpsr'); ?></label></td>
773
- <td width="60%"><label><input name="wpsr_template1_blwcontent" type="checkbox" value="1" <?php echo $wpsr_template1_blwcontent == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Below content', 'wpsr'); ?></label></td>
774
- </tr>
775
- </table>
776
-
777
- </div>
778
-
779
- <h4><?php _e('Template 2', 'wpsr'); ?></h4>
780
- <div class="section">
781
-
782
- <div class="placement_left">
783
- <textarea name="wpsr_template2_content" id="wpsr_template2_content" cols="60" rows="10" class="template_box"><?php echo $wpsr_template2_content; ?></textarea>
784
- </div>
785
-
786
- <div class="placement_right">
787
-
788
- <label><input name="wpsr_template2_inhome" type="checkbox" value="1" <?php echo $wpsr_template2_inhome == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in front page', 'wpsr'); ?></label> <br />
789
-
790
- <label><input name="wpsr_template2_insingle" type="checkbox" value="1" <?php echo $wpsr_template2_insingle == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in individual posts', 'wpsr'); ?></label> <br />
791
-
792
- <label><input name="wpsr_template2_inpage" type="checkbox" value="1" <?php echo $wpsr_template2_inpage == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in pages', 'wpsr'); ?></label> <br />
793
-
794
- <label><input name="wpsr_template2_incategory" type="checkbox" value="1" <?php echo $wpsr_template2_incategory == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in archive pages', 'wpsr'); ?></label> <br />
795
-
796
- <label><input name="wpsr_template2_intag" type="checkbox" value="1" <?php echo $wpsr_template2_intag == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in Tag pages', 'wpsr'); ?></label> <br />
797
-
798
- <label><input name="wpsr_template2_indate" type="checkbox" value="1" <?php echo $wpsr_template2_indate == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in date archives', 'wpsr'); ?></label> <br />
799
-
800
- <label><input name="wpsr_template2_inauthor" type="checkbox" value="1" <?php echo $wpsr_template2_inauthor == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in author pages', 'wpsr'); ?></label> <br />
801
-
802
- <label><input name="wpsr_template2_insearch" type="checkbox" value="1" <?php echo $wpsr_template2_insearch == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in search pages', 'wpsr'); ?></label> <br />
803
-
804
- <label><input name="wpsr_template2_inexcerpt" type="checkbox" value="1" <?php echo $wpsr_template2_inexcerpt == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in Excerpt', 'wpsr'); ?></label> <br />
805
-
806
- <label><input name="wpsr_template2_infeed" type="checkbox" value="1" <?php echo $wpsr_template2_infeed == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Show in RSS feeds', 'wpsr'); ?></label>
807
-
808
- </div>
809
-
810
- <div style="clear:both"></div>
811
-
812
- <table width="100%" height="40" border="0">
813
- <tr>
814
- <td width="19%"><strong><?php _e('Position', 'wpsr'); ?></strong></td>
815
- <td width="21%"><label><input name="wpsr_template2_abvcontent" type="checkbox" value="1" <?php echo $wpsr_template2_abvcontent == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Above content', 'wpsr'); ?></label></td>
816
- <td width="60%"><label><input name="wpsr_template2_blwcontent" type="checkbox" value="1" <?php echo $wpsr_template2_blwcontent == "1" ? 'checked="checked"' : ""; ?> /> <?php _e('Below content', 'wpsr'); ?></label></td>
817
- </tr>
818
- </table>
819
-
820
- </div>
821
-
822
- </div>
823
-
824
- <div id="tab-8" class="tabContent">
825
- <h4><?php _e('WP Socializer Settings', 'wpsr'); ?></h4>
826
- <div class="section">
827
- <table width="100%" height="39" border="0">
828
- <tr>
829
- <td width="46%" height="35"><?php _e('Load button scripts in ', 'wpsr'); ?></td>
830
- <td width="54%"><select id="wpsr_settings_scriptsplace" name="wpsr_settings_scriptsplace">
831
- <option <?php echo $wpsr_settings_scriptsplace == 'header' ? ' selected="selected"' : ''; ?> value="header"><?php _e('Header (recommended)', 'wpsr'); ?></option>
832
- <option <?php echo $wpsr_settings_scriptsplace == 'footer' ? ' selected="selected"' : ''; ?> value="footer"><?php _e('Footer', 'wpsr'); ?></option>
833
- </select></td>
834
- </tr>
835
- </table>
836
- </div>
837
- <h4><?php _e('Disable WP Socializer', 'wpsr'); ?></h4>
838
- <table width="100%" height="52" border="0">
839
- <tr>
840
- <td width="46%" height="48"><?php _e('Temporarily disable all WP-Socializer buttons ', 'wpsr'); ?><br />
841
- <span class="smallText"><?php _e('Disabling will stop displaying all buttons, templates', 'wpsr'); ?></span> </td>
842
- <td width="54%"><select id="wpsr_settings_disablewpsr" name="wpsr_settings_disablewpsr">
843
- <option <?php echo $wpsr_settings_disablewpsr == '0' ? ' selected="selected"' : ''; ?> value="0"><?php _e('No', 'wpsr'); ?></option>
844
- <option <?php echo $wpsr_settings_disablewpsr == '1' ? ' selected="selected"' : ''; ?> value="1"><?php _e('Yes', 'wpsr'); ?></option>
845
- </select></td>
846
- </tr>
847
- </table>
848
- </div>
849
-
850
- <div class="bottomWrap">
851
- <div class="bottomWrapLeft">
852
- <input class="button-primary" type="submit" name="wpsr_submit" id="wpsr_submit" value=" <?php _e('Update', 'wpsr'); ?> " />
853
- </div>
854
-
855
- <div class="bottomWrapRight">
856
- <a href="<?php echo $wpsr_donate_link; ?>" target="_blank"><?php _e('Donate', 'wpsr'); ?></a> | <a href="http://www.aakashweb.com/wordpress-plugins/wp-socializer/" target="_blank"><?php _e('Help', 'wpsr'); ?></a> | <a href="http://twitter.com/vaakash" target="_blank"><?php _e('Twitter', 'wpsr'); ?></a><br />
857
- <a href="http://www.aakashweb.com/" target="_blank"><?php _e('a aakashweb.com plugin', 'wpsr'); ?></a> </div>
858
-
859
- <div style="clear:both"></div>
860
-
861
- </div>
862
-
863
- </form>
864
- </div><!-- Tabs -->
865
-
866
- </div><!-- Left Content -->
867
-
868
- <?php wpsr_admin_sidebar(); ?><!-- Sidebar -->
869
-
870
- </div><!-- Wrap -->
871
-
872
- <?php
873
- }
874
- add_action('admin_menu', 'wpsr_addpage');
875
-
876
- function wpsr_addpage() {
877
- add_submenu_page('options-general.php', 'WP Socializer', 'WP Socializer', 10, __FILE__, 'wpsr_admin_page');
878
- }
879
-
880
- /**
881
- * Adds a meta box in posr editing pages, which enables
882
- * to turn on/off templates for that post
883
- */
884
-
885
- function wpsr_meta_box(){
886
-
887
- // Get global variables
888
- global $post;
889
-
890
- $wpsr_post_disabletemplate1 = 0;
891
- $wpsr_post_disabletemplate2 = 0;
892
-
893
- if (get_post_meta($post->ID,'_wpsr-disable-template1', true)) {
894
- $wpsr_post_disabletemplate1 = 1;
895
- }
896
-
897
- if (get_post_meta($post->ID,'_wpsr-disable-template2', true)) {
898
- $wpsr_post_disabletemplate2 = 1;
899
- }
900
-
901
- ?>
902
- <input name="wpsr_post_disabletemplate1" id="wpsr_post_disabletemplate1" type="checkbox" value="1" <?php echo $wpsr_post_disabletemplate1 == "1" ? 'checked="checked"' : ""; ?> /><label for="wpsr_post_disabletemplate1"> <?php _e('Disable template 1', 'wpsr'); ?></label><br />
903
-
904
- <input name="wpsr_post_disabletemplate2" id="wpsr_post_disabletemplate2" type="checkbox" value="1" <?php echo $wpsr_post_disabletemplate2 == "1" ? 'checked="checked"' : ""; ?> /><label for="wpsr_post_disabletemplate2"> <?php _e('Disable template 2', 'wpsr'); ?></label><br />
905
-
906
- <p><a href="http://www.aakashweb.com/faqs/wordpress-plugins/wp-socializer/" target="_blank"><?php _e('Help', 'wpsr'); ?></a></p>
907
-
908
- <?php
909
- }
910
-
911
- ## Add the meta box to post editing page
912
- function wpsr_add_meta_box() {
913
- add_meta_box('wp-socializer','WP Socializer','wpsr_meta_box','post','side');
914
- add_meta_box('wp-socializer','WP Socializer','wpsr_meta_box','page','side');
915
- }
916
- add_action('admin_menu', 'wpsr_add_meta_box');
917
-
918
- function wpsr_insert_post($post_id) {
919
- if ($_POST['wpsr_post_disabletemplate1'] == 1) {
920
- add_post_meta($post_id, '_wpsr-disable-template1', 1, true);
921
- }else{
922
- delete_post_meta($post_id, '_wpsr-disable-template1');
923
- }
924
-
925
- if ($_POST['wpsr_post_disabletemplate2'] == 1) {
926
- add_post_meta($post_id, '_wpsr-disable-template2', 1, true);
927
- }else{
928
- delete_post_meta($post_id, '_wpsr-disable-template2');
929
- }
930
- }
931
- add_action('wp_insert_post', 'wpsr_insert_post');
932
-
933
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
socializer-buzz.php DELETED
@@ -1,74 +0,0 @@
1
- <?php
2
- /*
3
- * Google Buzz buttons Processor code for WP Socializer Plugin
4
- * Version : 1.0
5
- * Author : Aakash Chakravarthy
6
- */
7
-
8
- function wpsr_buzz_post(){
9
-
10
- global $post;
11
-
12
- $details = wpsr_get_post_details();
13
-
14
- $permalink = $details['permalink'];
15
- $title = $details['title'];
16
-
17
- # Get Buzz Post Options
18
- $wpsr_buzz = get_option('wpsr_buzz_data');
19
-
20
- $wpsr_buzz_style = $wpsr_buzz['style'];
21
- $wpsr_buzz_size = $wpsr_buzz['size'];
22
- $wpsr_buzz_lang = $wpsr_buzz['language'];
23
- $wpsr_buzz_page = $wpsr_buzz['page'];
24
- $wpsr_buzz_custompage = $wpsr_buzz['custompage'];
25
- $wpsr_buzz_profile = $wpsr_buzz['profile'];
26
-
27
- $wpsr_buzz_page = ' data-url="' . $permalink . '"' ;
28
-
29
- if($wpsr_buzz_style != 'link'){
30
- $wpsr_buzz_style = ' data-button-style="' . $wpsr_buzz_size . '-' . $wpsr_buzz_style . '"';
31
- }
32
-
33
- if($wpsr_buzz_lang != 'en'){
34
- $wpsr_buzz_lang = ' data-locale="' . $wpsr_buzz_lang . '"' ;
35
- }else{
36
- $wpsr_buzz_lang = '';
37
- }
38
-
39
- ## Start Output
40
- $wpsr_buzz_post_processed .= "\n<!-- Start WP Socializer Plugin - Google Buzz Post Button -->\n";
41
-
42
- $wpsr_buzz_post_processed .=
43
- '<a title="Post on Google Buzz" class="google-buzz-button" href="http://www.google.com/buzz/post"' . $wpsr_buzz_style . $wpsr_buzz_page . $wpsr_buzz_lang . '></a>' . "\n" .
44
- '<script type="text/javascript" src="http://www.google.com/buzz/api/button.js"></script>';
45
-
46
- $wpsr_buzz_post_processed .= "\n<!-- End WP Socializer Plugin - Google Buzz Post Button -->\n";
47
- ## End Output
48
-
49
- return $wpsr_buzz_post_processed;
50
- }
51
-
52
- function wpsr_buzz_follow(){
53
-
54
- # Get Buzz Follow Options
55
- $wpsr_buzz = get_option('wpsr_buzz_data');
56
-
57
- $wpsr_buzz_profile = $wpsr_buzz['profile'];
58
- $wpsr_buzz_followbttext = $wpsr_buzz['followbttext'];
59
-
60
- ## Start Output
61
- $wpsr_buzz_follow_processed .= "\n<!-- Start WP Socializer Plugin - Google Buzz Follow Button -->\n";
62
-
63
- $wpsr_buzz_follow_processed .=
64
- '<a target="_blank" class="google-buzz-button" ' .
65
- 'title="' . $wpsr_buzz_followbttext . '" href="' . $wpsr_buzz_profile . '" data-button-style="follow">' . $wpsr_buzz_followbttext . '</a>' . "\n" .
66
- '<script type="text/javascript" src="http://www.google.com/buzz/api/button.js"></script>';
67
-
68
- $wpsr_buzz_follow_processed .= "\n<!-- End WP Socializer Plugin - Google Buzz Follow Button -->\n";
69
- ## End Output
70
-
71
- return $wpsr_buzz_follow_processed;
72
- }
73
-
74
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
socializer-digg.php DELETED
@@ -1,62 +0,0 @@
1
- <?php
2
- /*
3
- * Retweet buttons Processor code for WP Socializer Plugin
4
- * Version : 1.0
5
- * Author : Aakash Chakravarthy
6
- */
7
-
8
- function wpsr_digg_script(){
9
- echo "
10
- <script type=\"text/javascript\">
11
- (function() {
12
- var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];
13
- s.type = 'text/javascript';
14
- s.async = true;
15
- s.src = 'http://widgets.digg.com/buttons.js';
16
- s1.parentNode.insertBefore(s, s1);
17
- })();
18
- </script>";
19
- }
20
-
21
- function wpsr_digg_bt_used(){
22
-
23
- ## Get template data
24
- $wpsr_template1 = get_option('wpsr_template1_data');
25
-
26
- $wpsr_template1_content = $wpsr_template1['content'];
27
- $is_diggbt_used = strpos($wpsr_template1_content, '{digg-bt}');
28
-
29
- if ($is_diggbt_used === false) {
30
- return 0;
31
- } else {
32
- return 1;
33
- }
34
-
35
- }
36
-
37
- function wpsr_digg_bt(){
38
-
39
- global $post;
40
-
41
- $details = wpsr_get_post_details();
42
-
43
- $permalink = urlencode($details['permalink']);
44
- $title = urlencode($details['title']);
45
-
46
- ## Digg Options
47
- $wpsr_digg = get_option('wpsr_digg_data');
48
-
49
- $wpsr_digg_type = $wpsr_digg['type'];
50
-
51
- ## Start Output
52
- $wpsr_digg_bt_processed .= "\n<!-- Start WP Socializer Plugin - Digg Button -->\n";
53
-
54
- $wpsr_digg_bt_processed .= '<span style="margin-top:-10px"><a class="DiggThisButton ' . $wpsr_digg_type . '" href="http://digg.com/submit?url=' . $permalink . '&amp;title=' . $title . '"></a></span>';
55
-
56
- $wpsr_digg_bt_processed .= "\n<!-- End WP Socializer Plugin - Digg Button -->\n";
57
- ## End Output
58
-
59
- return $wpsr_digg_bt_processed;
60
- }
61
-
62
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
socializer-facebook.php DELETED
@@ -1,99 +0,0 @@
1
- <?php
2
- /*
3
- * Facebook buttons Processor code for WP Socializer Plugin
4
- * Version : 1.0
5
- * Author : Aakash Chakravarthy
6
- */
7
-
8
- function wpsr_facebook_like(){
9
-
10
- global $post;
11
-
12
- $details = wpsr_get_post_details();
13
-
14
- $permalink = urlencode($details['permalink']);
15
- $title = urlencode($details['title']);
16
-
17
- ## Get Facebook Options
18
- $wpsr_facebook = get_option('wpsr_facebook_data');
19
-
20
- $wpsr_facebook_btstyle = $wpsr_facebook['btstyle'];
21
- $wpsr_facebook_showfaces = $wpsr_facebook['showfaces'];
22
- $wpsr_facebook_width = $wpsr_facebook['width'];
23
- $wpsr_facebook_verb = $wpsr_facebook['verb'];
24
- $wpsr_facebook_font = $wpsr_facebook['font'];
25
- $wpsr_facebook_color = $wpsr_facebook['color'];
26
- $wpsr_facebook_bturl = $wpsr_facebook['bturl'];
27
- $wpsr_facebook_bturlcustom = $wpsr_facebook['bturlcustom'];
28
-
29
- if($wpsr_facebook_btstyle == 'standard' && $wpsr_facebook_showfaces == 1){
30
- $wpsr_facebook_height = 80;
31
- }
32
- if ($wpsr_facebook_btstyle == 'standard' && $wpsr_facebook_showfaces == 0){
33
- $wpsr_facebook_height = 35;
34
- }
35
- if ($wpsr_facebook_btstyle == 'button_count'){
36
- $wpsr_facebook_height = 21;
37
- }
38
-
39
- $wpsr_facebook_like_processed .= "\n<!-- Start WP Socializer Plugin - Facebook Like Button -->\n";
40
-
41
- $wpsr_facebook_like_processed .=
42
- '<iframe src="http://www.facebook.com/plugins/like.php?' .
43
- '&amp;href=' . $permalink .
44
- '&amp;layout=' . $wpsr_facebook_btstyle .
45
- '&amp;show_faces=' . $wpsr_facebook_showfaces .
46
- '&amp;width=' . $wpsr_facebook_width .
47
- '&amp;action=' . $wpsr_facebook_verb .
48
- '&amp;font=' . $wpsr_facebook_font .
49
- '&amp;colorscheme=' . $wpsr_facebook_color .
50
- '&amp;height=' . $wpsr_facebook_height .
51
- '" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:' . $wpsr_facebook_width . 'px; height:' . $wpsr_facebook_height . 'px;" allowTransparency="true"></iframe>';
52
-
53
- $wpsr_facebook_like_processed .= "\n<!-- End WP Socializer Plugin - Facebook Like Button -->\n";
54
-
55
- return $wpsr_facebook_like_processed;
56
- }
57
-
58
- function wpsr_facebook_share(){
59
-
60
- global $post;
61
-
62
- $details = wpsr_get_post_details();
63
-
64
- $permalink = urlencode($details['permalink']);
65
- $title = urlencode($details['title']);
66
-
67
- ## Get Facebook Options
68
- $wpsr_facebook = get_option('wpsr_facebook_data');
69
-
70
- $wpsr_facebook_shstyle = $wpsr_facebook['shstyle'];
71
- $wpsr_facebook_counter = $wpsr_facebook['counter'];
72
- $wpsr_facebook_counterplacement = $wpsr_facebook['counterplacement'];
73
- $wpsr_facebook_shurl = $wpsr_facebook['shurl'];
74
- $wpsr_facebook_shurlcustom = $wpsr_facebook['shurlcustom'];
75
-
76
- if($wpsr_facebook_shstyle == 'button' && $wpsr_facebook_counter == 1){
77
- if($wpsr_facebook_counterplacement == 'above'){
78
- $wpsr_facebook_shstyle = 'box_count';
79
- }else{
80
- $wpsr_facebook_shstyle = 'button_count';
81
- }
82
- }elseif($wpsr_facebook_shstyle == 'button' && $wpsr_facebook_counter == 0){
83
- $wpsr_facebook_shstyle = 'button';
84
- }elseif($wpsr_facebook_shstyle == 'link'){
85
- $wpsr_facebook_shstyle = 'icon_link';
86
- }
87
-
88
- $wpsr_facebook_share_processed .= "\n<!-- Start WP Socializer Plugin - Facebook Share Button -->\n";
89
-
90
- $wpsr_facebook_share_processed .=
91
- '<a name="fb_share" type="' . $wpsr_facebook_shstyle . '" href="http://www.facebook.com/sharer.php?u=' . $permalink . '&amp;t=' . $title . '">Share</a>' .
92
- '<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>' ;
93
-
94
- $wpsr_facebook_share_processed .= "\n<!-- End WP Socializer Plugin - Facebook Share Button -->\n";
95
-
96
- return $wpsr_facebook_share_processed;
97
- }
98
-
99
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
socializer-retweet.php DELETED
@@ -1,124 +0,0 @@
1
- <?php
2
- /*
3
- * Retweet buttons Processor code for WP Socializer Plugin
4
- * Version : 1.0
5
- * Author : Aakash Chakravarthy
6
- */
7
-
8
- function wpsr_retweet_topsy_script(){
9
- echo '<script type="text/javascript" src="http://cdn.topsy.com/topsy.js?init=topsyWidgetCreator"></script>';
10
- }
11
-
12
- function wpsr_retweet_bt_used(){
13
-
14
- ## Get template data
15
- $wpsr_template1 = get_option('wpsr_template1_data');
16
-
17
- $wpsr_template1_content = $wpsr_template1['content'];
18
- $is_retweetbt_used = strpos($wpsr_template1_content, '{retweet-bt}');
19
-
20
- if ($is_retweetbt_used === false) {
21
- return 0;
22
- } else {
23
- return 1;
24
- }
25
-
26
- }
27
-
28
- function wpsr_retweet_bt(){
29
-
30
- global $post;
31
-
32
- $details = wpsr_get_post_details(1);
33
-
34
- $permalink = $details['permalink'];
35
- $title = $details['title'];
36
-
37
- # Get Retweet Button Options
38
- $wpsr_retweet = get_option('wpsr_retweet_data');
39
-
40
- $wpsr_retweet_username = $wpsr_retweet['username'];
41
- $wpsr_retweet_type = $wpsr_retweet['type'];
42
- $wpsr_retweet_service = $wpsr_retweet['service'];
43
- $wpsr_retweet_topsytheme = $wpsr_retweet['topsytheme'];
44
-
45
- switch($wpsr_retweet_service){
46
-
47
- // Tweetmeme Button
48
- case "tweetmeme" :
49
-
50
- ## Start Output
51
- $wpsr_retweet_tweetmeme_processed = "\n<!-- Start WP Socializer Plugin - Retweet Button -->\n";
52
-
53
- $wpsr_retweet_tweetmeme_processed .=
54
- '<script type="text/javascript">' . "\n" . "<!--\n" .
55
- 'tweetmeme_url = "' . $permalink . '"; ' .
56
- 'tweetmeme_style = "' . $wpsr_retweet_type . '"; ' .
57
- 'tweetmeme_source = "' . $wpsr_retweet_username . '"; ' . "\n" . "\n-->" .
58
- '</script>' . "\n" .
59
- '<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>';
60
-
61
- $wpsr_retweet_tweetmeme_processed .= "\n<!-- End WP Socializer Plugin - Retweet Button -->\n";
62
- ## End Output
63
-
64
- return $wpsr_retweet_tweetmeme_processed;
65
- break;
66
-
67
-
68
- // Topsy Button
69
- case "topsy" :
70
-
71
- if($wpsr_retweet_type == 'normal'){
72
- $wpsr_retweet_type = "big";
73
- }else{
74
- $wpsr_retweet_type = '';
75
- }
76
-
77
- ## Start Output
78
- $wpsr_retweet_topsy_processed .= "\n<!-- Start WP Socializer Plugin - Retweet Button -->\n";
79
-
80
- $wpsr_retweet_topsy_processed .=
81
- '<div class="topsy_widget_data"><!--{' .
82
- '"url": "' . $permalink . '", ' .
83
- '"title": "'. $title . '", ' .
84
- '"style": "'. $wpsr_retweet_type . '", ' .
85
- '"nick": "'. $wpsr_retweet_username . '", ' .
86
- '"theme": "'. $wpsr_retweet_topsytheme . '", ' .
87
- '}--></div>';
88
-
89
- $wpsr_retweet_topsy_processed .= "\n<!-- End WP Socializer Plugin - Retweet Button -->\n";
90
- ## End Output
91
-
92
- return $wpsr_retweet_topsy_processed;
93
- break;
94
-
95
-
96
- // Retweet Button
97
- case "retweet" :
98
-
99
- if($wpsr_retweet_type == 'normal'){
100
- $wpsr_retweet_type = "";
101
- }else{
102
- $wpsr_retweet_type = "size = 'small'; ";
103
- }
104
-
105
- ## Start Output
106
- $wpsr_retweet_retweet_processed .= "\n<!-- Start WP Socializer Plugin - Retweet Button -->\n";
107
-
108
- $wpsr_retweet_retweet_processed .=
109
- '<script type="text/javascript">' . "\n" . "//<!--\n" .
110
- "url = '" . $permalink . "';" .
111
- "username = '" . $wpsr_retweet_username . "';" .
112
- $wpsr_retweet_type . "\n//-->" .
113
- '</script>' .
114
- '<script type="text/javascript" src="http://www.retweet.com/static/retweets.js"></script>';
115
-
116
- $wpsr_retweet_retweet_processed .= "\n<!-- End WP Socializer Plugin - Retweet Button -->\n";
117
- ## End Output
118
-
119
- return $wpsr_retweet_retweet_processed;
120
- break;
121
- }
122
- }
123
-
124
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
socializer-socialbuttons.php DELETED
@@ -1,279 +0,0 @@
1
- <?php
2
- /*
3
- * Social buttons Processor code for WP Socializer Plugin
4
- * Version : 3.2
5
- * Author : Aakash Chakravarthy
6
- */
7
-
8
- function wpsr_socialbts_script(){
9
-
10
- global $wpsr_pluginpath;
11
-
12
- echo "\n<!-- Start WP Socializer | Social Buttons CSS File -->\n";
13
- echo '<link rel="stylesheet" type="text/css" media="all" href="' . $wpsr_pluginpath . 'wp-socializer-buttons-css.css" /> ';
14
- echo "\n<!-- End WP Socializer | Social Buttons CSS File -->\n";
15
- }
16
-
17
- function wpsr_addtofavorites_script(){
18
- echo "
19
- <script type=\"text/javascript\">function addToFavotites(url)
20
- { a
21
- var title = document.title;
22
- if (window.sidebar) // Firefox
23
- window.sidebar.addPanel(title, url, '');
24
- else if(window.opera && window.print) // Opera
25
- {
26
- var elem = document.createElement('a');
27
- elem.setAttribute('href',url);
28
- elem.setAttribute('title',title);
29
- elem.setAttribute('rel','sidebar'); // Opera 7+
30
- elem.click();
31
- }
32
- else if(document.all) // IE
33
- window.external.AddFavorite(url, title);
34
- }</script>";
35
- }
36
-
37
- function wpsr_social_bts_used($pixel){
38
- ## Get template data
39
- $wpsr_template1 = get_option('wpsr_template1_data');
40
-
41
- $wpsr_template1_content = $wpsr_template1['content'];
42
-
43
- $is_socialbts_used_16px = strpos($wpsr_template1_content, '{social-bts-16px}');
44
- $is_socialbts_used_32px = strpos($wpsr_template1_content, '{social-bts-32px}');
45
-
46
- switch($pixel){
47
- case '16px' :
48
- if ($is_socialbts_used_16px === false) {
49
- return 0;
50
- } else {
51
- return 1;
52
- }
53
- break;
54
-
55
- case '32px' :
56
- if ($is_socialbts_used_32px === false) {
57
- return 0;
58
- } else {
59
- return 1;
60
- }
61
- break;
62
- }
63
- }
64
-
65
- function wpsr_addtofavorites_bt_used(){
66
- ## Get Social Button options
67
- $wpsr_socialbt = get_option('wpsr_socialbt_data');
68
-
69
- $wpsr_socialbt_selected16px = $wpsr_socialbt['selected16px'];
70
- $wpsr_socialbt_selected32px = $wpsr_socialbt['selected32px'];
71
-
72
- $in_selected_16px = in_array("Add to favorites", explode(',', $wpsr_socialbt_selected16px));
73
- $in_selected_32px = in_array("Add to favorites", explode(',', $wpsr_socialbt_selected32px));
74
-
75
-
76
- if (wpsr_social_bts_used('16px') && $in_selected_16px) {
77
- return 1;
78
- } elseif (wpsr_social_bts_used('32px') && $in_selected_32px){
79
- return 1;
80
- }
81
-
82
-
83
- }
84
-
85
- function get_sprite_coord($to_find_Key = '', $in_Array = '', $pixel){
86
- $index = 0;
87
- $pixel = $pixel + 1;
88
-
89
- switch ($pixel){
90
- case '17' :
91
- // Start the counter
92
- foreach ($in_Array as $key => $value) {
93
- if($key == $to_find_Key){
94
- return $index * $pixel ;
95
- }
96
- $index++;
97
- }
98
-
99
- break;
100
-
101
- case '33':
102
- // Start the counter
103
- foreach ($in_Array as $key => $value) {
104
- if(isset($value['support32px'])){
105
- if($key == $to_find_Key){
106
- return $index * $pixel ;
107
- }
108
- $index++;
109
- }
110
- }
111
- break;
112
- } // End switch
113
-
114
- } // End function
115
-
116
- function wpsr_social_bts($pixel){
117
-
118
- global $post, $wpsr_socialsites_list, $wpsr_socialbt_defaultimagepath;
119
-
120
- $details = wpsr_get_post_details();
121
-
122
- $permalink = urlencode($details['permalink']);
123
- $title = urlencode($details['title']);
124
- $excerpt = urlencode($details['excerpt']);
125
- $rss = get_bloginfo('rss_url');
126
- $blogname = urlencode(get_bloginfo('name') . ' ' . get_bloginfo('description'));
127
-
128
- $replace_with = array(
129
- $permalink, $title, $rss,
130
- $blogname, $excerpt
131
- );
132
-
133
- $to_be_replaced = array(
134
- '{permalink}', '{title}', '{rss-url}',
135
- '{blogname}', '{excerpt}'
136
- );
137
-
138
- ## Get Social Button options
139
- $wpsr_socialbt = get_option('wpsr_socialbt_data');
140
-
141
- $wpsr_socialbt_target = $wpsr_socialbt['target'];
142
- $wpsr_socialbt_loadcss = $wpsr_socialbt['loadcss'];
143
- $wpsr_socialbt_effect = $wpsr_socialbt['effect'];
144
- $wpsr_socialbt_label = $wpsr_socialbt['label'];
145
- $wpsr_socialbt_columns = $wpsr_socialbt['columns'];
146
- $wpsr_socialbt_selected16px = $wpsr_socialbt['selected16px'];
147
- $wpsr_socialbt_selected32px = $wpsr_socialbt['selected32px'];
148
- $wpsr_socialbt_usesprites = $wpsr_socialbt['usesprites'];
149
-
150
- $wpsr_socialbt_imgpath16px = ($wpsr_socialbt['imgpath16px'] != '') ? $wpsr_socialbt['imgpath16px'] : $wpsr_socialbt_defaultimagepath . '16/';
151
- $wpsr_socialbt_imgpath32px = ($wpsr_socialbt['imgpath32px'] != '') ? $wpsr_socialbt['imgpath32px'] : $wpsr_socialbt_defaultimagepath . '32/';
152
-
153
- if($wpsr_socialbt_target = 1){
154
- $finalTarget = ' target="_blank" ';
155
- }
156
-
157
- ## Start processing
158
- $wpsr_socialbt_processed .= "\n<!-- Start WP Socializer - Social Buttons - Output -->\n";
159
-
160
- switch($pixel){
161
-
162
- // Check Icons Size
163
- case '16px' :
164
-
165
- // Sprites URL
166
- $spriteImage16px = $wpsr_socialbt_defaultimagepath . 'wp-socializer-sprite-16px.png';
167
- $spriteMaskImage16px = $wpsr_socialbt_defaultimagepath . 'wp-socializer-sprite-mask-16px.gif';
168
-
169
- // Split the selected 16px sites
170
- $wpsr_socialbt_splitted = explode(',', $wpsr_socialbt_selected16px);
171
-
172
- $wpsr_socialbt_processed .= '<div class="wp-socializer 16px">' . "\n" ;
173
- $wpsr_socialbt_processed .= '<ul class="wp-socializer-' . $wpsr_socialbt_effect . ' columns-' . $wpsr_socialbt_columns . '">';
174
-
175
- // Print the selected sites
176
- for($i = 0; $i < count($wpsr_socialbt_splitted); $i++){
177
- $sitename = $wpsr_socialbt_splitted[$i];
178
- $finalTitle = $sitename;
179
- $finalPermalink = str_replace($to_be_replaced, $replace_with, $wpsr_socialsites_list[$sitename]['url']);
180
- $finalIcon = $wpsr_socialbt_imgpath16px . $wpsr_socialsites_list[$sitename]['icon'];
181
- $spritesYCoord = get_sprite_coord($sitename, $wpsr_socialsites_list, '16');
182
- $finalSprites = '0px -' . $spritesYCoord . 'px';
183
-
184
- // Check whether label is enabled
185
- if($wpsr_socialbt_label == 1){
186
- $finalLabel = '<span class="wp-socializer-label"><a href="' . $finalPermalink . '" title="' . $finalTitle . '"' . $finalTarget . '>' . $finalTitle . '</a></span>';
187
- }else{
188
- $finalLabel = '';
189
- }
190
-
191
- $wpsr_socialbt_processed .= "\n <li>";
192
-
193
- // Check whether sprites is enabled
194
- if($wpsr_socialbt_usesprites == '1'){
195
-
196
- $wpsr_socialbt_processed .=
197
- '<a href="' . $finalPermalink . '" title="' . $finalTitle . '"' . $finalTarget . '>' .
198
- '<img src="' . $spriteMaskImage16px . '" alt="' . $finalTitle . '" style="width:16px; height:16px; background: transparent url(' . $spriteImage16px . ') no-repeat; background-position:' . $finalSprites . '; border:0;">' .
199
- "</a>" . $finalLabel ;
200
-
201
- }else{
202
-
203
- $wpsr_socialbt_processed .=
204
- '<a href="' . $finalPermalink . '" title="' . $finalTitle . '"' . $finalTarget . '>' .
205
- '<img src="' . $finalIcon . '" alt="' . $finalTitle . '" border="0">' .
206
- "</a>" . $finalLabel ;
207
-
208
- }
209
- $wpsr_socialbt_processed .= "</li> \n ";
210
- }
211
-
212
- $wpsr_socialbt_processed .= "</ul> \n";
213
- $wpsr_socialbt_processed .= '<div class="wp-socializer-clearer"></div>';
214
- $wpsr_socialbt_processed .= '</div>';
215
-
216
- break;
217
-
218
- // Check icon size
219
- case '32px' :
220
-
221
- // Sprites URL
222
- $spriteImage32px = $wpsr_socialbt_defaultimagepath . 'wp-socializer-sprite-32px.png';
223
- $spriteMaskImage32px = $wpsr_socialbt_defaultimagepath . 'wp-socializer-sprite-mask-32px.gif';
224
-
225
- // Split the selected 32px sites
226
- $wpsr_socialbt_splitted = explode(',', $wpsr_socialbt_selected32px);
227
-
228
- $wpsr_socialbt_processed .= '<div class="wp-socializer 32px">' . "\n" ;
229
- $wpsr_socialbt_processed .= '<ul class="wp-socializer-' . $wpsr_socialbt_effect . ' columns-' . $wpsr_socialbt_columns . '">';
230
-
231
- // Print the selected sites
232
- for($i = 0; $i < count($wpsr_socialbt_splitted); $i++){
233
- $sitename = $wpsr_socialbt_splitted[$i];
234
- $finalTitle = $sitename;
235
- $finalPermalink = str_replace($to_be_replaced, $replace_with, $wpsr_socialsites_list[$sitename]['url']);
236
- $finalIcon = $wpsr_socialbt_imgpath32px . $wpsr_socialsites_list[$sitename]['icon'];
237
- $spritesYCoord = get_sprite_coord($sitename, $wpsr_socialsites_list, '32');
238
- $finalSprites = '0px -' . $spritesYCoord . 'px';
239
-
240
- // Check whether label is enabled
241
- if($wpsr_socialbt_label == 1){
242
- $finalLabel = '<span class="wp-socializer-label"><a href="' . $finalPermalink . '" title="' . $finalTitle . '"' . $finalTarget . '>' . $finalTitle . '</a></span>';
243
- }else{
244
- $finalLabel = '';
245
- }
246
-
247
- $wpsr_socialbt_processed .= "\n <li>";
248
-
249
- // Check whether sprites is enabled
250
- if($wpsr_socialbt_usesprites == '1'){
251
-
252
- $wpsr_socialbt_processed .=
253
- '<a href="' . $finalPermalink . '" title="' . $finalTitle . '"' . $finalTarget . '>' .
254
- '<img src="' . $spriteMaskImage32px . '" alt="' . $finalTitle . '" style="width:32px; height:32px; background: transparent url(' . $spriteImage32px . ') no-repeat; background-position:' . $finalSprites . '; border:0;">' .
255
- "</a>" . $finalLabel ;
256
-
257
- }else{
258
-
259
- $wpsr_socialbt_processed .=
260
- '<a href="' . $finalPermalink . '" title="' . $finalTitle . '"' . $finalTarget . '>' .
261
- '<img src="' . $finalIcon . '" alt="' . $finalTitle . '" border="0">' .
262
- "</a>" . $finalLabel ;
263
-
264
- }
265
-
266
- $wpsr_socialbt_processed .= "</li> \n ";
267
- }
268
-
269
- $wpsr_socialbt_processed .= "</ul> \n";
270
- $wpsr_socialbt_processed .= '<div class="wp-socializer-clearer"></div>';
271
- $wpsr_socialbt_processed .= '</div>';
272
- }
273
-
274
- $wpsr_socialbt_processed .= "\n<!-- End WP Socializer - Social Buttons Output -->\n";
275
-
276
- return $wpsr_socialbt_processed;
277
- }
278
-
279
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wp-socializer-buttons-css.css DELETED
@@ -1,70 +0,0 @@
1
- .wp-socializer{
2
- display: block;
3
- margin: 0px 0px 10px;
4
- padding: 0px;
5
- }
6
- .wp-socializer ul {
7
- display: inline;
8
- margin: 0 !important;
9
- padding: 0 !important;
10
- }
11
- .wp-socializer ul li {
12
- background: none;
13
- /*display: inline !important;*/
14
- list-style-type: none;
15
- margin: 0px 5px 5px 0px;
16
- padding: 0px;
17
- float: left !important;
18
- }
19
- .wp-socializer ul li:before {
20
- content: "";
21
- }
22
- .wp-socializer img{
23
- float: none;
24
- vertical-align:middle;
25
- margin: 0px 5px 0px 0px !important;
26
- padding: 0px;
27
- }
28
- .addthis_button img{
29
- border: 0;
30
- margin: 0;
31
- padding: 0;
32
- }
33
- .wp-socializer-clearer{
34
- clear: left;
35
- }
36
-
37
- /** Effects **/
38
-
39
- .wp-socializer-opacity li {
40
- -webkit-opacity: 0.4;
41
- -moz-opacity: 0.4;
42
- filter:alpha(opacity=40);
43
- opacity: 0.4;
44
- }
45
- .wp-socializer-opacity li:hover {
46
- -webkit-opacity: 1;
47
- -moz-opacity: 1;
48
- filter:alpha(opacity=100);
49
- opacity: 1;
50
- }
51
- .wp-socializer-jump li {
52
- margin: 0px;
53
- }
54
- .wp-socializer-jump li:hover {
55
- margin-top: -5px;
56
- }
57
-
58
- /** Columns **/
59
- .columns-5 li{
60
- width: 19%;
61
- }
62
- .columns-4 li{
63
- width: 24%;
64
- }
65
- .columns-3 li{
66
- width: 32%;
67
- }
68
- .columns-2 li{
69
- width: 48%;
70
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wp-socializer-buttons-js.js DELETED
@@ -1,12 +0,0 @@
1
- /*jQuery(document).ready(function(){
2
- jQuery(".wp-socializer .wp-socializer-jump li").hover(function(){
3
- jQuery(this).animate({'margin-top': '-10px'}, 200); }, function(){
4
- jQuery(this).animate({'margin-top': '0px'}, 400);
5
- });
6
- jQuery(".wp-socializer .wp-socializer-opacity li").css({'opacity' : 0.3});
7
- jQuery(".wp-socializer .wp-socializer-opacity li").hover(function(){
8
- jQuery(this).animate({opacity: 1}, 200); }, function(){
9
- jQuery(this).animate({opacity: 0.3}, 400);
10
- });
11
-
12
- });*/
 
 
 
 
 
 
 
 
 
 
 
 
wp-socializer.php CHANGED
@@ -1,454 +1,655 @@
1
  <?php
2
  /*
3
  Plugin Name: WP Socializer
 
4
  Plugin URI: http://www.aakashweb.com/
5
- Description: WP Socializer is an advanced and powerful plugin for adding bookmarking buttons like addthis, buzz, digg, retweet, facebook like/share for posts.
6
- Version: 1.0
7
  Author: Aakash Chakravarthy
8
  Author URI: http://www.aakashweb.com/
9
- License: GPL2
10
  */
11
 
12
- ## WP Socializer Global variables
13
-
14
- define('WPSR_VERSION', '1.0');
15
- define('WPSR_AUTHOR', 'Aakash Chakravarthy');
16
-
17
- if (!defined('WP_CONTENT_URL')) {
18
- $wpsr_pluginpath = get_option('siteurl').'/wp-content/plugins/'.plugin_basename(dirname(__FILE__)).'/';
19
- } else {
20
- $wpsr_pluginpath = WP_CONTENT_URL . '/plugins/' . plugin_basename(dirname(__FILE__)) . '/';
21
  }
22
 
23
- $wpsr_socialbt_defaultimagepath = $wpsr_pluginpath . 'social-icons/';
 
 
 
 
 
24
 
25
- $wpsr_socialsites_list = array(
26
 
27
- 'Add to favorites' => array(
 
 
28
  'icon' => 'addtofavorites.png',
29
- 'url' => 'javascript:addToFavotites(\'{permalink}\');',
30
  'support32px' => 1,
31
  ),
32
 
33
  // B
34
 
35
- 'BarraPunto' => array(
 
 
36
  'icon' => 'barrapunto.png',
37
- 'url' => 'http://barrapunto.com/submit.pl?subj={title}&amp;story={permalink}',
38
  ),
39
 
40
- 'Bitacoras.com' => array(
 
 
41
  'icon' => 'bitacoras.png',
42
- 'url' => 'http://bitacoras.com/anotaciones/{permalink}',
43
  ),
44
 
45
- 'BlinkList' => array(
 
 
46
  'icon' => 'blinklist.png',
47
- 'url' => 'http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url={permalink}&amp;Title={title}',
48
  'support32px' => 1,
49
  ),
50
 
51
- 'Blogger' => array(
 
 
 
 
 
 
 
 
 
 
52
  'icon' => 'blogger.png',
53
- 'url' => 'http://www.blogger.com/blog_this.pyra?t&u={permalink}&n={title}&pli=1',
54
  'support32px' => 1,
55
  ),
56
 
57
  'blogmarks' => array(
 
 
58
  'icon' => 'blogmarks.png',
59
- 'url' => 'http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url={permalink}&amp;title={title}',
60
  ),
61
 
62
- 'Blogosphere News' => array(
 
 
63
  'icon' => 'blogospherenews.png',
64
- 'url' => 'http://www.blogospherenews.com/submit.php?url={permalink}&amp;title={title}',
65
  ),
66
 
67
  'blogtercimlap' => array(
 
 
68
  'icon' => 'blogter.png',
69
- 'url' => 'http://cimlap.blogter.hu/index.php?action=suggest_link&amp;title={title}&amp;url={permalink}',
70
  ),
71
 
72
- 'Faves' => array(
 
 
73
  'icon' => 'bluedot.png',
74
- 'url' => 'http://faves.com/Authoring.aspx?u={permalink}&amp;title={title}',
75
  ),
76
 
77
- 'Box.net' => array(
 
 
78
  'icon' => 'box.png',
79
- 'url' => 'https://www.box.net/api/1.0/import?url={permalink}&name={title}&description={excerpt}&import_as=link',
80
  ),
81
 
82
  // C
83
 
84
  'connotea' => array(
 
 
85
  'icon' => 'connotea.png',
86
- 'url' => 'http://www.connotea.org/addpopup?continue=confirm&amp;uri={permalink}&amp;title={title}&amp;description={excerpt}',
87
  ),
88
 
89
- 'Current' => array(
 
 
90
  'icon' => 'current.png',
91
- 'url' => 'http://current.com/clipper.htm?url={permalink}&amp;title={title}',
92
  ),
93
 
94
  // D
95
 
96
- 'del.icio.us' => array(
 
 
97
  'icon' => 'delicious.png',
98
- 'url' => 'http://delicious.com/post?url={permalink}&amp;title={title}&amp;notes={excerpt}',
99
  'support32px' => 1,
100
  ),
101
 
102
- 'Designbump' => array(
 
 
103
  'icon' => 'designbump.png',
104
- 'url' => 'http://designbump.com/user/login?destination=submit?url={permalink}&title={title}&body={excerpt}',
105
  'support32px' => 1,
106
  ),
107
 
108
- 'Design Float' => array(
 
 
109
  'icon' => 'designfloat.png',
110
- 'url' => 'http://www.designfloat.com/submit.php?url={permalink}&amp;title={title}',
111
  'support32px' => 1,
112
  ),
113
 
114
- 'Digg' => array(
 
 
115
  'icon' => 'digg.png',
116
- 'url' => 'http://digg.com/submit?phase=2&amp;url={permalink}&amp;title={title}&amp;bodytext={excerpt}',
117
  'support32px' => 1,
118
  ),
119
 
120
- 'Diggita' => array(
 
 
121
  'icon' => 'diggita.png',
122
- 'url' => 'http://www.diggita.it/submit.php?url={permalink}&title={title}',
123
  ),
124
 
125
- 'Diigo' => array(
 
 
126
  'icon' => 'diigo.png',
127
- 'url' => 'http://www.diigo.com/post?url={permalink}&amp;title={title}',
128
  ),
129
 
130
- 'DotNetKicks' => array(
 
 
131
  'icon' => 'dotnetkicks.png',
132
- 'url' => 'http://www.dotnetkicks.com/kick/?url={permalink}&amp;title={title}',
133
  ),
134
 
135
- 'DZone' => array(
 
 
136
  'icon' => 'dzone.png',
137
- 'url' => 'http://www.dzone.com/links/add.html?url={permalink}&amp;title={title}',
138
  'support32px' => 1,
139
  ),
140
 
141
  // E
142
 
143
- 'eKudos' => array(
 
 
144
  'icon' => 'ekudos.png',
145
- 'url' => 'http://www.ekudos.nl/artikel/nieuw?url={permalink}&amp;title={title}&amp;desc={excerpt}',
146
  ),
147
 
148
  'email' => array(
149
- 'icon' => 'email_link.png',
150
- 'url' => 'mailto:?subject={title}&amp;body={permalink}',
 
 
151
  'support32px' => 1,
152
  ),
153
 
154
  // F
155
 
156
- 'Facebook' => array(
 
 
157
  'icon' => 'facebook.png',
158
- 'url' => 'http://www.facebook.com/share.php?u={permalink}&amp;t={title}',
159
  'support32px' => 1,
160
  ),
161
 
162
- 'Fark' => array(
 
 
163
  'icon' => 'fark.png',
164
- 'url' => 'http://cgi.fark.com/cgi/fark/farkit.pl?h={title}&amp;u={permalink}',
165
  ),
166
 
167
- 'Fleck' => array(
 
 
168
  'icon' => 'fleck.png',
169
- 'url' => 'http://beta3.fleck.com/bookmarklet.php?url={permalink}&amp;title={title}',
170
  ),
171
 
172
- 'FriendFeed' => array(
 
 
173
  'icon' => 'friendfeed.png',
174
- 'url' => 'http://www.friendfeed.com/share?title={title}&amp;link={permalink}',
175
  'support32px' => 1,
176
  ),
177
 
178
- 'Friendster' => array(
 
 
179
  'icon' => 'friendster.png',
180
- 'url' => 'http://www.friendster.com/sharer.php?u={permalink}&t={title}',
181
  'support32px' => 1,
182
  ),
183
 
184
- 'FSDaily' => array(
 
 
185
  'icon' => 'fsdaily.png',
186
- 'url' => 'http://www.fsdaily.com/submit?url={permalink}&amp;title={title}',
187
  ),
188
 
189
  // G
190
 
191
- 'Global Grind' => array (
 
 
 
 
 
 
 
 
 
 
192
  'icon' => 'globalgrind.png',
193
- 'url' => 'http://globalgrind.com/submission/submit.aspx?url={permalink}&amp;type=Article&amp;title={title}',
194
  ),
195
 
196
- 'Google' => array (
 
 
197
  'icon' => 'google.png',
198
- 'url' => 'http://www.google.com/bookmarks/mark?op=edit&amp;bkmk={permalink}&amp;title={title}&amp;annotation={excerpt}',
199
  'support32px' => 1,
200
  ),
201
 
202
- 'Google Buzz' => array(
 
 
203
  'icon' => 'googlebuzz.png',
204
- 'url' => 'http://www.google.com/buzz/post?url={permalink}',
205
  'support32px' => 1,
206
  ),
207
 
208
- 'Google Reader' => array(
 
 
209
  'icon' => 'googlereader.png',
210
- 'url' => 'http://www.google.com/reader/link?url={permalink}&title={title}',
211
  'support32px' => 1,
212
  ),
213
 
214
- 'Gwar' => array(
 
 
 
 
 
 
 
 
 
 
215
  'icon' => 'gwar.png',
216
- 'url' => 'http://www.gwar.pl/DodajGwar.html?u={permalink}',
217
  ),
218
 
219
  // H
220
 
221
- 'HackerNews' => array(
 
 
222
  'icon' => 'hackernews.png',
223
- 'url' => 'http://news.ycombinator.com/submitlink?u={permalink}&amp;t={title}',
224
  ),
225
 
226
- 'Haohao' => array(
 
 
227
  'icon' => 'haohao.png',
228
- 'url' => 'http://www.haohaoreport.com/submit.php?url={permalink}&amp;title={title}',
229
  ),
230
 
231
- 'HealthRanker' => array(
 
 
232
  'icon' => 'healthranker.png',
233
- 'url' => 'http://healthranker.com/submit.php?url={permalink}&amp;title={title}',
234
  ),
235
 
236
- 'HelloTxt' => array(
 
 
237
  'icon' => 'hellotxt.png',
238
- 'url' => 'http://hellotxt.com/?status={title}+{permalink}',
239
  ),
240
 
241
- 'Hemidemi' => array(
 
 
242
  'icon' => 'hemidemi.png',
243
- 'url' => 'http://www.hemidemi.com/user_bookmark/new?title={title}&amp;url={permalink}',
244
  ),
245
 
246
- 'Hyves' => array(
 
 
247
  'icon' => 'hyves.png',
248
- 'url' => 'http://www.hyves.nl/profilemanage/add/tips/?name={title}&amp;text={excerpt}+{permalink}&amp;rating=5',
249
  'support32px' => 1,
250
  ),
251
 
252
  // I
253
 
254
- 'Identi.ca' => array(
 
 
255
  'icon' => 'identica.png',
256
- 'url' => 'http://identi.ca/notice/new?status_textarea={permalink}',
257
  ),
258
 
259
- 'Internetmedia' => array(
 
 
260
  'icon' => 'im.png',
261
- 'url' => 'http://internetmedia.hu/submit.php?url={permalink}',
262
  ),
263
 
264
- 'IndianPad' => array(
 
 
265
  'icon' => 'indianpad.png',
266
- 'url' => 'http://www.indianpad.com/submit.php?url={permalink}',
 
 
 
 
 
 
 
 
267
  ),
268
 
269
  // K
270
 
271
- 'Kirtsy' => array(
 
 
 
 
 
 
 
 
 
 
272
  'icon' => 'kirtsy.png',
273
- 'url' => 'http://www.kirtsy.com/submit.php?url={permalink}&amp;title={title}',
274
  ),
275
 
276
  // L
277
 
278
- 'laaik.it' => array(
 
 
279
  'icon' => 'laaikit.png',
280
- 'url' => 'http://laaik.it/NewStoryCompact.aspx?uri={permalink}&amp;headline={title}&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12',
281
  ),
282
 
283
- 'LaTafanera' => array(
 
 
284
  'icon' => 'latafanera.png',
285
- 'url' => 'http://latafanera.cat/submit.php?url={permalink}',
286
  ),
287
 
288
- 'LinkaGoGo' => array(
 
 
289
  'icon' => 'linkagogo.png',
290
- 'url' => 'http://www.linkagogo.com/go/AddNoPopup?url={permalink}&amp;title={title}',
291
  ),
292
 
293
- 'LinkArena' => array(
 
 
294
  'icon' => 'linkarena.png',
295
- 'url' => 'http://linkarena.com/bookmarks/addlink/?url={permalink}&amp;title={title}',
296
  ),
297
 
298
- 'LinkedIn' => array(
 
 
299
  'icon' => 'linkedin.png',
300
- 'url' => 'http://www.linkedin.com/shareArticle?mini=true&amp;url={permalink}&amp;title={title}&amp;source={blogname}&amp;summary={excerpt}',
301
  'support32px' => 1,
302
  ),
303
 
304
- 'Linkter' => array(
 
 
305
  'icon' => 'linkter.png',
306
- 'url' => 'http://www.linkter.hu/index.php?action=suggest_link&amp;url={permalink}&amp;title={title}',
307
  ),
308
 
309
- 'Live' => array(
 
 
310
  'icon' => 'live.png',
311
- 'url' => 'https://favorites.live.com/quickadd.aspx?marklet=1&amp;url={permalink}&amp;title={title}',
312
  'support32px' => 1,
313
  ),
314
 
315
  // M
316
 
317
- 'Meneame' => array(
 
 
318
  'icon' => 'meneame.png',
319
- 'url' => 'http://meneame.net/submit.php?url={permalink}',
320
  ),
321
 
322
- 'MisterWong' => array(
 
 
323
  'icon' => 'misterwong.png',
324
- 'url' => 'http://www.mister-wong.com/addurl/?bm_url={permalink}&amp;bm_description={title}&amp;plugin=wp-socializer',
325
  'support32px' => 1,
326
  ),
327
 
328
  /*'MisterWong.DE' => array(
329
  'icon' => 'misterwong.png',
330
- 'url' => 'http://www.mister-wong.de/addurl/?bm_url={permalink}&amp;bm_description={title}&amp;plugin=soc',
331
  'sameImageAs' => 'MisterWong',
332
  ),*/
333
 
334
- 'Mixx' => array(
 
 
335
  'icon' => 'mixx.png',
336
- 'url' => 'http://www.mixx.com/submit?page_url={permalink}&amp;title={title}',
337
  'support32px' => 1,
338
  ),
339
 
340
- 'MOB' => array(
 
 
341
  'icon' => 'mob.png',
342
- 'url' => 'http://www.mob.com/share.php?u={permalink}&t={title}',
343
  ),
344
 
345
- 'MSNReporter' => array(
 
 
346
  'icon' => 'msnreporter.png',
347
- 'url' => 'http://reporter.nl.msn.com/?fn=contribute&amp;Title={title}&amp;URL={permalink}&amp;cat_id=6&amp;tag_id=31&amp;Remark={excerpt}',
348
  ),
349
 
350
  'muti' => array(
 
 
351
  'icon' => 'muti.png',
352
- 'url' => 'http://www.muti.co.za/submit?url={permalink}&amp;title={title}',
353
  ),
354
 
355
- 'MyShare' => array(
 
 
356
  'icon' => 'myshare.png',
357
- 'url' => 'http://myshare.url.com.tw/index.php?func=newurl&amp;url={permalink}&amp;desc={title}',
358
  ),
359
 
360
- 'MySpace' => array(
 
 
361
  'icon' => 'myspace.png',
362
- 'url' => 'http://www.myspace.com/Modules/PostTo/Pages/?u={permalink}&amp;t={title}',
363
  'support32px' => 1,
364
  ),
365
 
366
  // N
367
 
368
- 'N4G' => array(
 
 
369
  'icon' => 'n4g.png',
370
- 'url' => 'http://www.n4g.com/tips.aspx?url={permalink}&amp;title={title}',
371
  ),
372
 
373
- 'Netvibes' => array(
 
 
374
  'icon' => 'netvibes.png',
375
- 'url' => 'http://www.netvibes.com/share?title={title}&amp;url={permalink}',
376
  'support32px' => 1,
377
  ),
378
 
379
- 'Netvouz' => array(
 
 
380
  'icon' => 'netvouz.png',
381
- 'url' => 'http://www.netvouz.com/action/submitBookmark?url={permalink}&amp;title={title}&amp;popup=no',
382
  ),
383
 
384
- 'NewsVine' => array(
 
 
385
  'icon' => 'newsvine.png',
386
- 'url' => 'http://www.newsvine.com/_tools/seed&amp;save?u={permalink}&amp;h={title}',
387
  'support32px' => 1,
388
  ),
 
 
 
 
 
 
 
 
389
 
390
- 'NuJIJ' => array(
 
 
391
  'icon' => 'nujij.png',
392
- 'url' => 'http://nujij.nl/jij.lynkx?t={title}&amp;u={permalink}&amp;b={excerpt}',
393
  ),
394
 
395
  // O
396
 
397
- 'Orkut' => array(
 
 
398
  'icon' => 'orkut.png',
399
- 'url' => 'http://promote.orkut.com/preview?nt=orkut.com&amp;tt={title}&amp;du={permalink}&amp;cn={excerpt}',
400
  'support32px' => 1,
401
  ),
402
 
 
 
 
 
 
 
 
 
403
  // P
404
 
405
- 'PDF' => array(
 
 
406
  'icon' => 'pdf.png',
407
- 'url' => 'http://www.printfriendly.com/print?url={permalink}',
408
  ),
409
 
410
- 'Ping.fm' => array(
 
 
411
  'icon' => 'ping.png',
412
- 'url' => 'http://ping.fm/ref/?link={permalink}&amp;title={title}&amp;body={excerpt}',
413
  'support32px' => 1,
414
  ),
415
 
416
- 'Posterous' => array(
 
 
417
  'icon' => 'posterous.png',
418
- 'url' => 'http://posterous.com/share?linkto={permalink}&amp;title={title}&amp;selection={excerpt}',
419
  'support32px' => 1,
420
  ),
421
 
422
- 'Print' => array(
 
 
423
  'icon' => 'printfriendly.png',
424
- 'url' => 'http://www.printfriendly.com/print?url={permalink}',
425
  'support32px' => 1,
426
  ),
427
 
428
- 'Propeller' => array(
 
 
429
  'icon' => 'propeller.png',
430
- 'url' => 'http://www.propeller.com/submit/?url={permalink}',
431
  ),
432
 
433
  // R
434
 
435
- 'Ratimarks' => array(
 
 
436
  'icon' => 'ratimarks.png',
437
- 'url' => 'http://ratimarks.org/bookmarks.php/?action=add&address={permalink}&amp;title={title}',
438
  ),
439
 
440
- 'Rec6' => array(
 
 
441
  'icon' => 'rec6.png',
442
- 'url' => 'http://rec6.via6.com/link.php?url={permalink}&amp;={title}',
443
  ),
444
 
445
- 'Reddit' => array(
 
 
446
  'icon' => 'reddit.png',
447
- 'url' => 'http://reddit.com/submit?url={permalink}&amp;title={title}',
448
  'support32px' => 1,
449
  ),
450
 
451
- 'RSS' => array(
 
 
452
  'icon' => 'rss.png',
453
  'url' => '{rss-url}',
454
  'support32px' => 1,
@@ -456,168 +657,226 @@ $wpsr_socialsites_list = array(
456
 
457
  // S
458
 
459
- 'Scoopeo' => array(
 
 
460
  'icon' => 'scoopeo.png',
461
- 'url' => 'http://www.scoopeo.com/scoop/new?newurl={permalink}&amp;title={title}',
462
  ),
463
 
464
- 'Segnalo' => array(
 
 
465
  'icon' => 'segnalo.png',
466
- 'url' => 'http://segnalo.alice.it/post.html.php?url={permalink}&amp;title={title}',
467
  ),
468
 
469
- 'SheToldMe' => array(
 
 
470
  'icon' => 'shetoldme.png',
471
- 'url' => 'http://shetoldme.com/publish?url={permalink}&title={title}',
472
  ),
473
 
474
- 'Simpy' => array(
 
 
475
  'icon' => 'simpy.png',
476
- 'url' => 'http://www.simpy.com/simpy/LinkAdd.do?href={permalink}&amp;title={title}',
477
  ),
478
 
479
- 'Slashdot' => array(
 
 
480
  'icon' => 'slashdot.png',
481
- 'url' => 'http://slashdot.org/bookmark.pl?title={title}&amp;url={permalink}',
482
  ),
483
 
484
- 'Socialogs' => array(
 
 
485
  'icon' => 'socialogs.png',
486
- 'url' => 'http://socialogs.com/add_story.php?story_url={permalink}&amp;story_title={title}',
487
  ),
488
 
489
- 'SphereIt' => array(
 
 
490
  'icon' => 'sphere.png',
491
- 'url' => 'http://www.sphere.com/search?q=sphereit:{permalink}&amp;title={title}',
492
  ),
493
 
494
- 'Sphinn' => array(
 
 
495
  'icon' => 'sphinn.png',
496
- 'url' => 'http://sphinn.com/index.php?c=post&amp;m=submit&amp;link={permalink}',
497
  'support32px' => 1,
498
  ),
499
 
500
- 'StumbleUpon' => array(
 
 
501
  'icon' => 'stumbleupon.png',
502
- 'url' => 'http://www.stumbleupon.com/submit?url={permalink}&amp;title={title}',
503
  'support32px' => 1,
504
  ),
505
 
506
  // T
507
 
508
- 'Techmeme' => array(
 
 
509
  'icon' => 'techmeme.png',
510
- 'url' => 'http://twitter.com/home/?status=tip%20@Techmeme%20{permalink}%20{title}',
511
  ),
512
 
513
- 'Technorati' => array(
 
 
514
  'icon' => 'technorati.png',
515
- 'url' => 'http://technorati.com/faves?add={permalink}',
516
  'support32px' => 1,
517
  ),
518
 
519
- 'Tipd' => array(
 
 
520
  'icon' => 'tipd.png',
521
- 'url' => 'http://tipd.com/submit.php?url={permalink}',
522
  ),
523
 
524
- 'Tumblr' => array(
 
 
525
  'icon' => 'tumblr.png',
526
- 'url' => 'http://www.tumblr.com/share?v=3&amp;u={permalink}&amp;t={title}&amp;s={excerpt}',
527
  'support32px' => 1,
528
  ),
529
 
530
- 'Twitter' => array(
 
 
531
  'icon' => 'twitter.png',
532
- 'url' => 'http://twitter.com/home?status={title}%20-%20{permalink}',
533
  'support32px' => 1,
534
  ),
535
 
536
  // U
537
 
538
- 'Upnews' => array(
 
 
539
  'icon' => 'upnews.png',
540
- 'url' => 'http://www.upnews.it/submit?url={permalink}&amp;title={title}',
541
  ),
542
 
543
  // V
544
 
545
- 'viadeo FR' => array(
 
 
546
  'icon' => 'viadeo.png',
547
- 'url' => 'http://www.viadeo.com/shareit/share/?url={permalink}&title={title}&urllanguage=fr',
548
  ),
549
 
550
  // W
551
 
552
- 'Webnews.de' => array(
 
 
553
  'icon' => 'webnews.png',
554
- 'url' => 'http://www.webnews.de/einstellen?url={permalink}&amp;title={title}',
555
  ),
556
 
557
- 'Webride' => array(
 
 
558
  'icon' => 'webride.png',
559
- 'url' => 'http://webride.org/discuss/split.php?uri={permalink}&amp;title={title}',
560
  ),
561
 
562
- 'Wikio' => array(
 
 
563
  'icon' => 'wikio.png',
564
- 'url' => 'http://www.wikio.com/vote?url={permalink}',
565
  ),
566
 
567
  /*'Wikio FR' => array(
568
  'icon' => 'wikio.png',
569
- 'url' => 'http://www.wikio.fr/vote?url={permalink}',
570
  'sameImageAs' => 'Wikio',
571
  ),
572
 
573
  'Wikio IT' => array(
574
  'icon' => 'wikio.png',
575
- 'url' => 'http://www.wikio.it/vote?url={permalink}',
576
  'sameImageAs' => 'Wikio',
577
  ),*/
578
 
579
- 'Wists' => array(
 
 
580
  'icon' => 'wists.png',
581
- 'url' => 'http://wists.com/s.php?c=&amp;r={permalink}&amp;title={title}',
582
  ),
583
 
584
- 'Wykop' => array(
 
 
585
  'icon' => 'wykop.png',
586
- 'url' => 'http://www.wykop.pl/dodaj?url={permalink}',
 
587
  ),
588
 
589
  // X
590
 
591
- 'Xerpi' => array(
 
 
592
  'icon' => 'xerpi.png',
593
- 'url' => 'http://www.xerpi.com/block/add_link_from_extension?url={permalink}&amp;title={title}',
594
  ),
595
 
596
  // Y
597
 
598
- 'Yahoo! Bookmarks' => array(
 
 
599
  'icon' => 'yahoo.png',
600
- 'url' => 'http://bookmarks.yahoo.com/toolbar/savebm?u={permalink}&amp;t={title}&opener=bm&amp;ei=UTF-8&amp;d={excerpt}',
601
  'support32px' => 1,
602
  ),
603
 
604
- 'YahooBuzz' => array(
 
 
605
  'icon' => 'yahoobuzz.png',
606
- 'url' => 'http://buzz.yahoo.com/submit/?submitUrl={permalink}&amp;submitHeadline={title}&amp;submitSummary={excerpt}&amp;submitAssetType=text',
607
  'support32px' => 1,
608
  ),
609
 
610
- 'Yigg' => array(
 
 
611
  'icon' => 'yiggit.png',
612
- 'url' => 'http://yigg.de/neu?exturl={permalink}&amp;exttitle={title}',
613
  ),
614
 
615
  );
616
 
617
  $wpsr_button_code_list = array(
618
  "{social-bts-16px}", "{social-bts-32px}", "{addthis-bt}",
619
- "{buzz-post}", "{buzz-follow}", "{retweet-bt}",
620
- "{digg-bt}", "{facebook-like}", "{facebook-share}",
 
 
 
 
 
 
 
621
  "{custom-1}", "{custom-2}"
622
  );
623
 
@@ -625,21 +884,39 @@ $wpsr_addthis_lang_array = array(
625
  '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'
626
  );
627
 
628
-
629
  $wpsr_buzz_lang_array = array(
630
  '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'
631
  );
632
 
 
 
 
 
 
 
633
 
634
  ## Include WP Socializer Processer files
635
- require_once('socializer-admin.php');
636
- require_once('socializer-addthis.php');
637
- require_once('socializer-buzz.php');
638
- require_once('socializer-retweet.php');
639
- require_once('socializer-digg.php');
640
- require_once('socializer-facebook.php');
641
- require_once('socializer-socialbuttons.php');
642
- require_once('socializer-custom.php');
 
 
 
 
 
 
 
 
 
 
 
 
 
643
 
644
  ## wpsr Is active check
645
  function wpsr_is_active(){
@@ -664,8 +941,8 @@ register_deactivation_hook(__FILE__, 'wpsr_plugin_deactivate');
664
 
665
  ## Admin Notices
666
  function wpsr_admin_notices(){
667
- if(!wpsr_is_active() && $_GET['page'] != 'wp-socializer/socializer-admin.php'){
668
- echo '<div class="updated fade"><p><b>WP Socializer</b> plugin is intalled. You should immediately adjust <a href="options-general.php?page=wp-socializer/socializer-admin.php">the settings</a></p></div>';
669
  }
670
  }
671
  add_action('admin_notices', 'wpsr_admin_notices');
@@ -675,7 +952,7 @@ function wpsr_plugin_actions($links, $file){
675
  static $this_plugin;
676
  if(!$this_plugin) $this_plugin = plugin_basename(__FILE__);
677
  if( $file == $this_plugin ){
678
- $settings_link = '<a href="options-general.php?page=wp-socializer/socializer-admin.php">Settings</a> ' . '|' . ' <a href="http://www.aakashweb.com/">Support</a>';
679
  $links = array_merge( array($settings_link), $links);
680
  }
681
  return $links;
@@ -691,44 +968,52 @@ add_filter('plugin_action_links', 'wpsr_plugin_actions', 10, 2);
691
  * Available template name are 'template1' and 'template2'
692
  */
693
 
694
- function wp_socializer($to_display){
695
  switch($to_display){
696
- case 'social-bts-16px' :
697
- return wpsr_social_bts('16px');
698
  break;
699
 
700
- case 'social-bts-32px' :
701
- return wpsr_social_bts('32px');
702
  break;
703
 
704
- case 'addthis-bt' :
705
- return wpsr_addthis_bt();
706
- break;
707
 
708
- case 'buzz-post' :
709
- return wpsr_buzz_post();
710
  break;
711
 
712
- case 'buzz-follow' :
713
- return wpsr_buzz_follow();
714
  break;
715
 
716
- case 'retweet-bt' :
717
- return wpsr_retweet_bt();
718
  break;
719
 
720
- case 'digg-bt' :
721
- return wpsr_digg_bt();
722
  break;
723
 
724
- case 'facebook-like' :
725
- return wpsr_facebook_like();
726
  break;
727
 
728
- case 'facebook-share' :
729
- return wpsr_facebook_share();
730
  break;
731
 
 
 
 
 
 
 
 
 
732
  case 'custom-1' :
733
  return wpsr_custom_bt('custom1');
734
  break;
@@ -751,7 +1036,7 @@ function wp_socializer($to_display){
751
  * One function for getting the url and title of the page
752
  * outside the loop and inside the loop
753
  *
754
- * Uses super variables to get the page url outside loop and wp_title() to
755
  * to get the page title.
756
  */
757
 
@@ -780,14 +1065,14 @@ function wpsr_get_post_details(){
780
  if(in_the_loop()){
781
  $details = array(
782
  'permalink' => $permalink_inside_loop,
783
- 'title' => $title_inside_loop,
784
  'excerpt' => $excerpt_inside_loop
785
  );
786
 
787
  }else{
788
  $details = array(
789
  'permalink' => $permalink_outside_loop,
790
- 'title' => $title_outside_loop,
791
  'excerpt' => $excerpt_outside_loop
792
  );
793
  }
@@ -796,47 +1081,94 @@ function wpsr_get_post_details(){
796
 
797
  }
798
 
799
-
800
- ## Check whether the output is given by the_excerpt() or the_content() function
801
- function wpsr_is_excerpt($excerpt = ''){
802
- if(!defined('IS_EXCERPT')){
803
- define('IS_EXCERPT', true);
804
- }
805
- return $excerpt;
806
- }
807
- add_filter('get_the_excerpt', 'wpsr_is_excerpt');
808
-
809
  function wpsr_process_template($the_template){
810
 
811
  // Get the global variables
812
  global $wpsr_button_code_list;
813
 
814
  // Get the processed button codes
815
- $wpsr_social_bts_16px = wpsr_social_bts('16px');
816
- $wpsr_social_bts_32px = wpsr_social_bts('32px');
817
- $wpsr_addthis_bt = wpsr_addthis_bt();
818
- $wpsr_buzz_post = wpsr_buzz_post();
819
- $wpsr_buzz_follow = wpsr_buzz_follow();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
820
  $wpsr_retweet_bt = wpsr_retweet_bt();
821
  $wpsr_digg_bt = wpsr_digg_bt();
822
- $wpsr_facebook_like = wpsr_facebook_like();
823
- $wpsr_facebook_share = wpsr_facebook_share();
 
 
 
 
824
  $wpsr_custom1 = wpsr_custom_bt('custom1');
825
  $wpsr_custom2 = wpsr_custom_bt('custom2');
826
 
827
  $wpsr_button_processed_list = array(
828
  $wpsr_social_bts_16px, $wpsr_social_bts_32px, $wpsr_addthis_bt,
829
- $wpsr_buzz_post, $wpsr_buzz_follow, $wpsr_retweet_bt,
830
- $wpsr_digg_bt, $wpsr_facebook_like, $wpsr_facebook_share,
 
 
 
 
 
 
 
831
  $wpsr_custom1, $wpsr_custom2
832
  );
833
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
834
  // Get the placement options | Template 1&2
835
  $wpsr_template1 = get_option('wpsr_template1_data');
836
  $wpsr_template2 = get_option('wpsr_template2_data');
837
-
838
- $wpsr_template1_content = $wpsr_template1['content'];
839
- $wpsr_template2_content = $wpsr_template2['content'];
840
 
841
  switch($the_template){
842
  case 'template1' :
@@ -846,6 +1178,16 @@ function wpsr_process_template($the_template){
846
  case 'template2' :
847
  $wpsr_template2_processed = str_replace($wpsr_button_code_list, $wpsr_button_processed_list, $wpsr_template2_content);
848
  return $wpsr_template2_processed;
 
 
 
 
 
 
 
 
 
 
849
  }
850
  }
851
 
@@ -896,7 +1238,7 @@ function wpsr_output_template1($content = ''){
896
  $wpsr_template1_processed = wpsr_process_template('template1');
897
 
898
  }elseif(is_feed() == 1 && $wpsr_template1_infeed == 1){
899
- $wpsr_template1_processed = wpsr_process_template('template1');
900
 
901
  }else{
902
  $wpsr_template1_processed = '' ;
@@ -909,11 +1251,13 @@ function wpsr_output_template1($content = ''){
909
  * Used to remove the widget/button text printed along with the content
910
  */
911
 
 
912
  if(defined('IS_EXCERPT') && IS_EXCERPT ){
913
  if(empty($post->post_excerpt)){
914
  $content = substr(strip_tags(strip_shortcodes($post->post_content), '<p>'),0,250);
915
  }
916
  }
 
917
 
918
  // Check whether displaying template1 in the post is enabled
919
  if (get_post_meta($post->ID,'_wpsr-disable-template1', true) != 1){
@@ -938,6 +1282,38 @@ function wpsr_output_template1($content = ''){
938
 
939
  }
940
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
941
  ## Print the output of template2
942
  function wpsr_output_template2($content = ''){
943
 
@@ -985,13 +1361,13 @@ function wpsr_output_template2($content = ''){
985
  $wpsr_template2_processed = wpsr_process_template('template2');
986
 
987
  }elseif(is_feed() == 1 && $wpsr_template2_infeed == 1){
988
- $wpsr_template2_processed = wpsr_process_template('template2');
989
 
990
  }else{
991
  $wpsr_template2_processed = '' ;
992
  }
993
 
994
- // Check whether displaying template1 in the post is enabled
995
  if (get_post_meta($post->ID,'_wpsr-disable-template2', true) != 1){
996
 
997
  // Check position conditionals
@@ -1014,6 +1390,38 @@ function wpsr_output_template2($content = ''){
1014
 
1015
  }
1016
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1017
  ## Add required filters and check whether WP Socializer is disabled
1018
  $wpsr_settings = get_option('wpsr_settings_data');
1019
 
@@ -1022,10 +1430,10 @@ if(!$wpsr_settings['disablewpsr']){
1022
  add_filter('the_content', 'wpsr_output_template1');
1023
  add_filter('the_content', 'wpsr_output_template2');
1024
 
1025
- // Check whether to print in excerpts
1026
  $wpsr_template1 = get_option('wpsr_template1_data');
1027
  $wpsr_template2 = get_option('wpsr_template2_data');
1028
 
 
1029
  if($wpsr_template1['inexcerpt']){
1030
  add_filter('the_excerpt', 'wpsr_output_template1');
1031
  }
@@ -1033,13 +1441,22 @@ if(!$wpsr_settings['disablewpsr']){
1033
  if($wpsr_template2['inexcerpt']){
1034
  add_filter('the_excerpt', 'wpsr_output_template2');
1035
  }
 
 
 
 
 
 
 
 
 
 
 
1036
  }
1037
 
1038
  ## Add the button scripts to the header
1039
  function wpsr_scripts_adder(){
1040
 
1041
- global $wpsr_pluginpath;
1042
-
1043
  ## Social Button options
1044
  $wpsr_socialbt = get_option('wpsr_socialbt_data');
1045
  $wpsr_socialbt_loadcss = $wpsr_socialbt['loadcss'];
@@ -1053,13 +1470,32 @@ function wpsr_scripts_adder(){
1053
  $wpsr_retweet_service = $wpsr_retweet['service'];
1054
 
1055
  if(wpsr_retweet_bt_used() == 1 && $wpsr_retweet_service == 'topsy'){
1056
- wpsr_retweet_topsy_script();
 
 
 
 
1057
  }
1058
 
1059
  if(wpsr_digg_bt_used() == 1){
1060
- wpsr_digg_script();
1061
  }
1062
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1063
  }
1064
 
1065
  if(!$wpsr_settings['disablewpsr']){
@@ -1092,9 +1528,84 @@ if(!function_exists('aw_dashboard')){
1092
  }
1093
 
1094
  function aw_dashboard_setup() {
1095
- wp_add_dashboard_widget('aw_dashboard', __( 'AW Latest Updates' ), 'aw_dashboard');
1096
  }
1097
  add_action('wp_dashboard_setup', 'aw_dashboard_setup');
1098
  }
1099
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1100
  ?>
1
  <?php
2
  /*
3
  Plugin Name: WP Socializer
4
+ Version: 2.0
5
  Plugin URI: http://www.aakashweb.com/
6
+ Description: WP Socializer is an advanced and powerful plugin for adding bookmarking buttons like Addthis, Google +1, Digg, Retweet, Facebook like/share for posts.
 
7
  Author: Aakash Chakravarthy
8
  Author URI: http://www.aakashweb.com/
 
9
  */
10
 
11
+ if(!defined('WP_CONTENT_URL')) {
12
+ $wpsr_url = get_option('siteurl') . '/wp-content/plugins/' . plugin_basename(dirname(__FILE__)).'/';
13
+ }else{
14
+ $wpsr_url = WP_CONTENT_URL . '/plugins/' . plugin_basename(dirname(__FILE__)) . '/';
 
 
 
 
 
15
  }
16
 
17
+ define('WPSR_VERSION', '2.0');
18
+ define('WPSR_AUTHOR', 'Aakash Chakravarthy');
19
+ define('WPSR_URL', $wpsr_url);
20
+ define('WPSR_PUBLIC_URL', WPSR_URL . 'public/');
21
+ define('WPSR_ADMIN_URL', WPSR_URL . 'admin/');
22
+ define('WPSR_SOCIALBT_IMGPATH', WPSR_PUBLIC_URL . 'social-icons/');
23
 
24
+ $wpsr_socialsites_list = array(
25
 
26
+ 'addtofavorites' => 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
 
34
  // B
35
 
36
+ 'barrapunto' => array(
37
+ 'name' => 'BarraPunto',
38
+ 'titleText' => __('Share this on ', 'wpsr') . 'BarraPunto',
39
  'icon' => 'barrapunto.png',
40
+ 'url' => 'http://barrapunto.com/submit.pl?subj={title}&amp;story={url}',
41
  ),
42
 
43
+ 'bitacoras' => array(
44
+ 'name' => 'Bitacoras.com',
45
+ 'titleText' => __('Share this on ', 'wpsr') . 'Bitacoras',
46
  'icon' => 'bitacoras.png',
47
+ 'url' => 'http://bitacoras.com/anotaciones/{url}',
48
  ),
49
 
50
+ 'blinklist' => array(
51
+ 'name' => 'BlinkList',
52
+ 'titleText' => __('Share this on ', 'wpsr') . 'BlinkList',
53
  'icon' => 'blinklist.png',
54
+ 'url' => 'http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url={url}&amp;Title={title}',
55
  'support32px' => 1,
56
  ),
57
 
58
+ 'blip' => array(
59
+ 'name' => 'Blip',
60
+ 'titleText' => __('Share this on ', 'wpsr') . 'Blip',
61
+ 'icon' => 'blip.png',
62
+ 'url' => 'http://blip.pl/dashboard?body={title}+{url}',
63
+ 'support32px' => 1,
64
+ ), // Added version 2.0 - 16-1-2011
65
+
66
+ 'blogger' => array(
67
+ 'name' => 'Blogger',
68
+ 'titleText' => __('Post this on ', 'wpsr') . 'Blogger',
69
  'icon' => 'blogger.png',
70
+ 'url' => 'http://www.blogger.com/blog_this.pyra?t&u={url}&n={title}&pli=1',
71
  'support32px' => 1,
72
  ),
73
 
74
  'blogmarks' => array(
75
+ 'name' => 'Blogmarks',
76
+ 'titleText' => __('Share this on ', 'wpsr') . 'BlogMarks',
77
  'icon' => 'blogmarks.png',
78
+ 'url' => 'http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url={url}&amp;title={title}',
79
  ),
80
 
81
+ 'blogospherenews' => array(
82
+ 'name' => 'Blogosphere News',
83
+ 'titleText' => __('Submit this to ', 'wpsr') . 'Blogosphere News',
84
  'icon' => 'blogospherenews.png',
85
+ 'url' => 'http://www.blogospherenews.com/submit.php?url={url}&amp;title={title}',
86
  ),
87
 
88
  'blogtercimlap' => array(
89
+ 'name' => 'Blogter Cimlap',
90
+ 'titleText' => __('Share this on ', 'wpsr') . 'blogtercimlap',
91
  'icon' => 'blogter.png',
92
+ 'url' => 'http://cimlap.blogter.hu/index.php?action=suggest_link&amp;title={title}&amp;url={url}',
93
  ),
94
 
95
+ 'faves' => array(
96
+ 'name' => 'Faves',
97
+ 'titleText' => __('Share this on ', 'wpsr') . 'Faves',
98
  'icon' => 'bluedot.png',
99
+ 'url' => 'http://faves.com/Authoring.aspx?u={url}&amp;title={title}',
100
  ),
101
 
102
+ 'boxnet' => array(
103
+ 'name' => 'Box.net',
104
+ 'titleText' => __('Add this on ', 'wpsr') . 'Box.net',
105
  'icon' => 'box.png',
106
+ 'url' => 'https://www.box.net/api/1.0/import?url={url}&name={title}&description={excerpt}&import_as=link',
107
  ),
108
 
109
  // C
110
 
111
  'connotea' => array(
112
+ 'name' => 'Connotea',
113
+ 'titleText' => __('Share this on ', 'wpsr') . 'Connotea',
114
  'icon' => 'connotea.png',
115
+ 'url' => 'http://www.connotea.org/addpopup?continue=confirm&amp;uri={url}&amp;title={title}&amp;description={excerpt}',
116
  ),
117
 
118
+ 'current' => array(
119
+ 'name' => 'Current',
120
+ 'titleText' => __('Share this on ', 'wpsr') . 'Current',
121
  'icon' => 'current.png',
122
+ 'url' => 'http://current.com/clipper.htm?url={url}&amp;title={title}',
123
  ),
124
 
125
  // D
126
 
127
+ 'delicious' => array(
128
+ 'name' => 'Delicious',
129
+ 'titleText' => __('Post this on ', 'wpsr') . 'Delicious',
130
  'icon' => 'delicious.png',
131
+ 'url' => 'http://delicious.com/post?url={url}&amp;title={title}&amp;notes={excerpt}',
132
  'support32px' => 1,
133
  ),
134
 
135
+ 'designbump' => array(
136
+ 'name' => 'Designbump',
137
+ 'titleText' => __('Share this on ', 'wpsr') . 'Designbump',
138
  'icon' => 'designbump.png',
139
+ 'url' => 'http://designbump.com/user/login?destination=submit?url={url}&title={title}&body={excerpt}',
140
  'support32px' => 1,
141
  ),
142
 
143
+ 'designfloat' => array(
144
+ 'name' => 'Design Float',
145
+ 'titleText' => __('Submit this to ', 'wpsr') . 'Design Float',
146
  'icon' => 'designfloat.png',
147
+ 'url' => 'http://www.designfloat.com/submit.php?url={url}&amp;title={title}',
148
  'support32px' => 1,
149
  ),
150
 
151
+ 'digg' => array(
152
+ 'name' => 'Digg',
153
+ 'titleText' => __('Submit this to ', 'wpsr') . 'Digg',
154
  'icon' => 'digg.png',
155
+ 'url' => 'http://digg.com/submit?phase=2&amp;url={url}&amp;title={title}&amp;bodytext={excerpt}',
156
  'support32px' => 1,
157
  ),
158
 
159
+ 'diggita' => array(
160
+ 'name' => 'Diggita',
161
+ 'titleText' => __('Submit this to ', 'wpsr') . 'Diggita',
162
  'icon' => 'diggita.png',
163
+ 'url' => 'http://www.diggita.it/submit.php?url={url}&title={title}',
164
  ),
165
 
166
+ 'diigo' => array(
167
+ 'name' => 'Diigo',
168
+ 'titleText' => __('Post this on ', 'wpsr') . 'Diigo',
169
  'icon' => 'diigo.png',
170
+ 'url' => 'http://www.diigo.com/post?url={url}&amp;title={title}',
171
  ),
172
 
173
+ 'dotnetkicks' => array(
174
+ 'name' => 'DotNetKicks',
175
+ 'titleText' => __('Share this on ', 'wpsr') . 'DotNetKicks',
176
  'icon' => 'dotnetkicks.png',
177
+ 'url' => 'http://www.dotnetkicks.com/kick/?url={url}&amp;title={title}',
178
  ),
179
 
180
+ 'dzone' => array(
181
+ 'name' => 'DZone',
182
+ 'titleText' => __('Add this to ', 'wpsr') . 'DZone',
183
  'icon' => 'dzone.png',
184
+ 'url' => 'http://www.dzone.com/links/add.html?url={url}&amp;title={title}',
185
  'support32px' => 1,
186
  ),
187
 
188
  // E
189
 
190
+ 'ekudos' => array(
191
+ 'name' => 'eKudos',
192
+ 'titleText' => __('Share this on ', 'wpsr') . 'eKudos',
193
  'icon' => 'ekudos.png',
194
+ 'url' => 'http://www.ekudos.nl/artikel/nieuw?url={url}&amp;title={title}&amp;desc={excerpt}',
195
  ),
196
 
197
  'email' => array(
198
+ 'name' => 'Email',
199
+ 'titleText' => __('Email this ', 'wpsr') . '',
200
+ 'icon' => 'email.png',
201
+ 'url' => 'mailto:{email}?subject={de-title}&amp;body={de-excerpt} - {de-url}',
202
  'support32px' => 1,
203
  ),
204
 
205
  // F
206
 
207
+ 'facebook' => array(
208
+ 'name' => 'Facebook',
209
+ 'titleText' => __('Share this on ', 'wpsr') . 'Facebook',
210
  'icon' => 'facebook.png',
211
+ 'url' => 'http://www.facebook.com/share.php?u={url}&amp;t={title}',
212
  'support32px' => 1,
213
  ),
214
 
215
+ 'fark' => array(
216
+ 'name' => 'Fark',
217
+ 'titleText' => __('Share this on ', 'wpsr') . 'Fark',
218
  'icon' => 'fark.png',
219
+ 'url' => 'http://cgi.fark.com/cgi/fark/farkit.pl?h={title}&amp;u={url}',
220
  ),
221
 
222
+ 'fleck' => array(
223
+ 'name' => 'Fleck',
224
+ 'titleText' => __('Share this on ', 'wpsr') . 'Fleck',
225
  'icon' => 'fleck.png',
226
+ 'url' => 'http://beta3.fleck.com/bookmarklet.php?url={url}&amp;title={title}',
227
  ),
228
 
229
+ 'friendfeed' => array(
230
+ 'name' => 'FriendFeed',
231
+ 'titleText' => __('Share this on ', 'wpsr') . 'FriendFeed',
232
  'icon' => 'friendfeed.png',
233
+ 'url' => 'http://www.friendfeed.com/share?title={title}&amp;link={url}',
234
  'support32px' => 1,
235
  ),
236
 
237
+ 'friendster' => array(
238
+ 'name' => 'Friendster',
239
+ 'titleText' => __('Share this on ', 'wpsr') . 'Friendster',
240
  'icon' => 'friendster.png',
241
+ 'url' => 'http://www.friendster.com/sharer.php?u={url}&t={title}',
242
  'support32px' => 1,
243
  ),
244
 
245
+ 'fsdaily' => array(
246
+ 'name' => 'FSDaily',
247
+ 'titleText' => __('Share this on ', 'wpsr') . 'FSDaily',
248
  'icon' => 'fsdaily.png',
249
+ 'url' => 'http://www.fsdaily.com/submit?url={url}&amp;title={title}',
250
  ),
251
 
252
  // G
253
 
254
+ 'gadugadu' => array(
255
+ 'name' => 'Gadu-Gadu',
256
+ 'titleText' => __('Share this on ', 'wpsr') . 'Gadu-Gadu',
257
+ 'icon' => 'gadugadu.png',
258
+ 'url' => 'http://www.gadu-gadu.pl/polec?title={title}&url={url}',
259
+ 'support32px' => 1,
260
+ ), // Added version 2.0 - 16-1-2011
261
+
262
+ 'globalgrind' => array(
263
+ 'name' => 'Global Grind',
264
+ 'titleText' => __('Submit this to ', 'wpsr') . 'Global Grind',
265
  'icon' => 'globalgrind.png',
266
+ 'url' => 'http://globalgrind.com/submission/submit.aspx?url={url}&amp;type=Article&amp;title={title}',
267
  ),
268
 
269
+ 'google' => array(
270
+ 'name' => 'Google',
271
+ 'titleText' => __('Bookmark this on ', 'wpsr') . 'Google',
272
  'icon' => 'google.png',
273
+ 'url' => 'http://www.google.com/bookmarks/mark?op=edit&amp;bkmk={url}&amp;title={title}&amp;annotation={excerpt}',
274
  'support32px' => 1,
275
  ),
276
 
277
+ 'googlebuzz' => array(
278
+ 'name' => 'Google Buzz',
279
+ 'titleText' => __('Post this on ', 'wpsr') . 'Google Buzz',
280
  'icon' => 'googlebuzz.png',
281
+ 'url' => 'http://www.google.com/buzz/post?url={url}',
282
  'support32px' => 1,
283
  ),
284
 
285
+ 'googlereader' => array(
286
+ 'name' => 'Google Reader',
287
+ 'titleText' => __('Share this on ', 'wpsr') . 'Google Reader',
288
  'icon' => 'googlereader.png',
289
+ 'url' => 'http://www.google.com/reader/link?url={url}&title={title}',
290
  'support32px' => 1,
291
  ),
292
 
293
+ 'grono' => array(
294
+ 'name' => 'Grono',
295
+ 'titleText' => __('Share this on ', 'wpsr') . 'Grono',
296
+ 'icon' => 'grono.png',
297
+ 'url' => 'http://grono.net/pub/popup/link/urlfetch/?url={url}&title={title}',
298
+ 'support32px' => 1,
299
+ ), // Added version 2.0 - 16-1-2011
300
+
301
+ 'gwar' => array(
302
+ 'name' => 'Gwar',
303
+ 'titleText' => __('Share this on ', 'wpsr') . 'Gwar',
304
  'icon' => 'gwar.png',
305
+ 'url' => 'http://www.gwar.pl/DodajGwar.html?u={url}',
306
  ),
307
 
308
  // H
309
 
310
+ 'hackernews' => array(
311
+ 'name' => 'HackerNews',
312
+ 'titleText' => __('Share this on ', 'wpsr') . 'HackerNews',
313
  'icon' => 'hackernews.png',
314
+ 'url' => 'http://news.ycombinator.com/submitlink?u={url}&amp;t={title}',
315
  ),
316
 
317
+ 'haohao' => array(
318
+ 'name' => 'Haohao',
319
+ 'titleText' => __('Submit this to ', 'wpsr') . 'Haohao',
320
  'icon' => 'haohao.png',
321
+ 'url' => 'http://www.haohaoreport.com/submit.php?url={url}&amp;title={title}',
322
  ),
323
 
324
+ 'healthranker' => array(
325
+ 'name' => 'HealthRanker',
326
+ 'titleText' => __('Submit this to ', 'wpsr') . 'HealthRanker',
327
  'icon' => 'healthranker.png',
328
+ 'url' => 'http://healthranker.com/submit.php?url={url}&amp;title={title}',
329
  ),
330
 
331
+ 'hellotxt' => array(
332
+ 'name' => 'HelloTxt',
333
+ 'titleText' => __('Share this on ', 'wpsr') . 'HelloTxt',
334
  'icon' => 'hellotxt.png',
335
+ 'url' => 'http://hellotxt.com/?status={title}+{url}',
336
  ),
337
 
338
+ 'hemidemi' => array(
339
+ 'name' => 'Hemidemi',
340
+ 'titleText' => __('Bookmark this on ', 'wpsr') . 'Hemidemi',
341
  'icon' => 'hemidemi.png',
342
+ 'url' => 'http://www.hemidemi.com/user_bookmark/new?title={title}&amp;url={url}',
343
  ),
344
 
345
+ 'hyves' => array(
346
+ 'name' => 'Hyves',
347
+ 'titleText' => __('Share this on ', 'wpsr') . 'Hyves',
348
  'icon' => 'hyves.png',
349
+ 'url' => 'http://www.hyves.nl/profilemanage/add/tips/?name={title}&amp;text={excerpt}+{url}&amp;rating=5',
350
  'support32px' => 1,
351
  ),
352
 
353
  // I
354
 
355
+ 'identica' => array(
356
+ 'name' => 'Identi.ca',
357
+ 'titleText' => __('Share this on ', 'wpsr') . 'Identi.ca',
358
  'icon' => 'identica.png',
359
+ 'url' => 'http://identi.ca/notice/new?status_textarea={url}',
360
  ),
361
 
362
+ 'internetmedia' => array(
363
+ 'name' => 'Internetmedia',
364
+ 'titleText' => __('Share this on ', 'wpsr') . 'Internetmedia',
365
  'icon' => 'im.png',
366
+ 'url' => 'http://internetmedia.hu/submit.php?url={url}',
367
  ),
368
 
369
+ 'indianpad' => array(
370
+ 'name' => 'IndianPad',
371
+ 'titleText' => __('Submit this to ', 'wpsr') . 'IndianPad',
372
  'icon' => 'indianpad.png',
373
+ 'url' => 'http://www.indianpad.com/submit.php?url={url}',
374
+ ),
375
+
376
+ 'instapaper' => array(
377
+ 'name' => 'Instapaper',
378
+ 'titleText' => __('Add this to ', 'wpsr') . 'Instapaper',
379
+ 'icon' => 'instapaper.png',
380
+ 'url' => 'http://www.instapaper.com/hello2?url={url}&title={title}',
381
+ 'support32px' => 1,
382
  ),
383
 
384
  // K
385
 
386
+ 'kciuk' => array(
387
+ 'name' => 'Kciuk',
388
+ 'titleText' => __('Share this on ', 'wpsr') . 'Kciuk',
389
+ 'icon' => 'kciuk.png',
390
+ 'url' => 'http://www.kciuk.pl/Dodaj-link/?{url}?{title}/?auto',
391
+ 'support32px' => 1,
392
+ ), // Added version 2.0 - 16-1-2011
393
+
394
+ 'kirtsy' => array(
395
+ 'name' => 'Kirtsy',
396
+ 'titleText' => __('Submit this to ', 'wpsr') . 'Kirtsy',
397
  'icon' => 'kirtsy.png',
398
+ 'url' => 'http://www.kirtsy.com/submit.php?url={url}&amp;title={title}',
399
  ),
400
 
401
  // L
402
 
403
+ 'laaikit' => array(
404
+ 'name' => 'laaik.it',
405
+ 'titleText' => __('Share this on ', 'wpsr') . 'laaik.it',
406
  'icon' => 'laaikit.png',
407
+ 'url' => 'http://laaik.it/NewStoryCompact.aspx?uri={url}&amp;headline={title}&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12',
408
  ),
409
 
410
+ 'latafanera' => array(
411
+ 'name' => 'LaTafanera',
412
+ 'titleText' => __('Submit this to ', 'wpsr') . 'LaTafanera',
413
  'icon' => 'latafanera.png',
414
+ 'url' => 'http://latafanera.cat/submit.php?url={url}',
415
  ),
416
 
417
+ 'linkagogo' => array(
418
+ 'name' => 'LinkaGoGo',
419
+ 'titleText' => __('Share this on ', 'wpsr') . 'LinkaGoGo',
420
  'icon' => 'linkagogo.png',
421
+ 'url' => 'http://www.linkagogo.com/go/AddNoPopup?url={url}&amp;title={title}',
422
  ),
423
 
424
+ 'linkarena' => array(
425
+ 'name' => 'LinkArena',
426
+ 'titleText' => __('Add this to ', 'wpsr') . 'LinkArena',
427
  'icon' => 'linkarena.png',
428
+ 'url' => 'http://linkarena.com/bookmarks/addlink/?url={url}&amp;title={title}',
429
  ),
430
 
431
+ 'linkedin' => array(
432
+ 'name' => 'LinkedIn',
433
+ 'titleText' => __('Share this on ', 'wpsr') . 'LinkedIn',
434
  'icon' => 'linkedin.png',
435
+ 'url' => 'http://www.linkedin.com/shareArticle?mini=true&amp;url={url}&amp;title={title}&amp;source={blogname}&amp;summary={excerpt}',
436
  'support32px' => 1,
437
  ),
438
 
439
+ 'linkter' => array(
440
+ 'name' => 'Linkter',
441
+ 'titleText' => __('Share this on ', 'wpsr') . 'Linkter',
442
  'icon' => 'linkter.png',
443
+ 'url' => 'http://www.linkter.hu/index.php?action=suggest_link&amp;url={url}&amp;title={title}',
444
  ),
445
 
446
+ 'live' => array(
447
+ 'name' => 'Live',
448
+ 'titleText' => __('Add this to ', 'wpsr') . 'Live',
449
  'icon' => 'live.png',
450
+ 'url' => 'https://favorites.live.com/quickadd.aspx?marklet=1&amp;url={url}&amp;title={title}',
451
  'support32px' => 1,
452
  ),
453
 
454
  // M
455
 
456
+ 'meneame' => array(
457
+ 'name' => 'Meneame',
458
+ 'titleText' => __('Submit this to ', 'wpsr') . 'Meneame',
459
  'icon' => 'meneame.png',
460
+ 'url' => 'http://meneame.net/submit.php?url={url}',
461
  ),
462
 
463
+ 'misterwong' => array(
464
+ 'name' => 'Mister Wong',
465
+ 'titleText' => __('Add this to ', 'wpsr') . 'Mister Wong',
466
  'icon' => 'misterwong.png',
467
+ 'url' => 'http://www.mister-wong.com/addurl/?bm_url={url}&amp;bm_description={title}&amp;plugin=wp-socializer',
468
  'support32px' => 1,
469
  ),
470
 
471
  /*'MisterWong.DE' => array(
472
  'icon' => 'misterwong.png',
473
+ 'url' => 'http://www.mister-wong.de/addurl/?bm_url={url}&amp;bm_description={title}&amp;plugin=soc',
474
  'sameImageAs' => 'MisterWong',
475
  ),*/
476
 
477
+ 'mixx' => array(
478
+ 'name' => 'Mixx',
479
+ 'titleText' => __('Submit this to ', 'wpsr') . 'Mixx',
480
  'icon' => 'mixx.png',
481
+ 'url' => 'http://www.mixx.com/submit?page_url={url}&amp;title={title}',
482
  'support32px' => 1,
483
  ),
484
 
485
+ 'mob' => array(
486
+ 'name' => 'MOB',
487
+ 'titleText' => __('Share this on ', 'wpsr') . 'MOB',
488
  'icon' => 'mob.png',
489
+ 'url' => 'http://www.mob.com/share.php?u={url}&t={title}',
490
  ),
491
 
492
+ 'msnreporter' => array(
493
+ 'name' => 'MSNReporter',
494
+ 'titleText' => __('Share this on ', 'wpsr') . 'MSNReporter',
495
  'icon' => 'msnreporter.png',
496
+ 'url' => 'http://reporter.nl.msn.com/?fn=contribute&amp;Title={title}&amp;URL={url}&amp;cat_id=6&amp;tag_id=31&amp;Remark={excerpt}',
497
  ),
498
 
499
  'muti' => array(
500
+ 'name' => 'Muti',
501
+ 'titleText' => __('Share this on ', 'wpsr') . 'Muti',
502
  'icon' => 'muti.png',
503
+ 'url' => 'http://www.muti.co.za/submit?url={url}&amp;title={title}',
504
  ),
505
 
506
+ 'myshare' => array(
507
+ 'name' => 'MyShare',
508
+ 'titleText' => __('Share this on ', 'wpsr') . 'MyShare',
509
  'icon' => 'myshare.png',
510
+ 'url' => 'http://myshare.url.com.tw/index.php?func=newurl&amp;url={url}&amp;desc={title}',
511
  ),
512
 
513
+ 'myspace' => array(
514
+ 'name' => 'MySpace',
515
+ 'titleText' => __('Post this on ', 'wpsr') . 'MySpace',
516
  'icon' => 'myspace.png',
517
+ 'url' => 'http://www.myspace.com/Modules/PostTo/Pages/?u={url}&amp;t={title}',
518
  'support32px' => 1,
519
  ),
520
 
521
  // N
522
 
523
+ 'n4g' => array(
524
+ 'name' => 'N4G',
525
+ 'titleText' => __('Share this on ', 'wpsr') . '',
526
  'icon' => 'n4g.png',
527
+ 'url' => 'http://www.n4g.com/tips.aspx?url={url}&amp;title={title}',
528
  ),
529
 
530
+ 'netvibes' => array(
531
+ 'name' => 'Netvibes',
532
+ 'titleText' => __('Share this on ', 'wpsr') . 'Netvibes',
533
  'icon' => 'netvibes.png',
534
+ 'url' => 'http://www.netvibes.com/share?title={title}&amp;url={url}',
535
  'support32px' => 1,
536
  ),
537
 
538
+ 'netvouz' => array(
539
+ 'name' => 'Netvouz',
540
+ 'titleText' => __('Share this on ', 'wpsr') . 'Netvouz',
541
  'icon' => 'netvouz.png',
542
+ 'url' => 'http://www.netvouz.com/action/submitBookmark?url={url}&amp;title={title}&amp;popup=no',
543
  ),
544
 
545
+ 'newsvine' => array(
546
+ 'name' => 'NewsVine',
547
+ 'titleText' => __('Add this to ', 'wpsr') . 'NewsVine',
548
  'icon' => 'newsvine.png',
549
+ 'url' => 'http://www.newsvine.com/_tools/seed&amp;save?u={url}&amp;h={title}',
550
  'support32px' => 1,
551
  ),
552
+
553
+ 'nk' => array(
554
+ 'name' => 'NK',
555
+ 'titleText' => __('Share this on ', 'wpsr') . 'NK',
556
+ 'icon' => 'nk.png',
557
+ 'url' => 'http://nasza-klasa.pl/sledzik?shout={title} {url}',
558
+ 'support32px' => 1,
559
+ ), // Added version 2.0 - 16-1-2011
560
 
561
+ 'nujij' => array(
562
+ 'name' => 'NuJIJ',
563
+ 'titleText' => __('Share this on ', 'wpsr') . 'NuJIJ',
564
  'icon' => 'nujij.png',
565
+ 'url' => 'http://nujij.nl/jij.lynkx?t={title}&amp;u={url}&amp;b={excerpt}',
566
  ),
567
 
568
  // O
569
 
570
+ 'orkut' => array(
571
+ 'name' => 'Orkut',
572
+ 'titleText' => __('Share this on ', 'wpsr') . 'Orkut',
573
  'icon' => 'orkut.png',
574
+ 'url' => 'http://promote.orkut.com/preview?nt=orkut.com&amp;tt={title}&amp;du={url}&amp;cn={excerpt}',
575
  'support32px' => 1,
576
  ),
577
 
578
+ 'osnews' => array(
579
+ 'name' => 'OSnews',
580
+ 'titleText' => __('Share this on ', 'wpsr') . 'OSnews',
581
+ 'icon' => 'osnews.png',
582
+ 'url' => 'http://osnews.pl/dodaj-niusa/?external=true&title={title}&url={url}',
583
+ 'support32px' => 1,
584
+ ), // Added version 2.0 - 16-1-2011
585
+
586
  // P
587
 
588
+ 'pdf' => array(
589
+ 'name' => 'PDF',
590
+ 'titleText' => __('Convert to ', 'wpsr') . 'PDF',
591
  'icon' => 'pdf.png',
592
+ 'url' => 'http://www.printfriendly.com/print?url={url}',
593
  ),
594
 
595
+ 'pingfm' => array(
596
+ 'name' => 'Ping.fm',
597
+ 'titleText' => __('Share this on ', 'wpsr') . 'Ping.fm',
598
  'icon' => 'ping.png',
599
+ 'url' => 'http://ping.fm/ref/?link={url}&amp;title={title}&amp;body={excerpt}',
600
  'support32px' => 1,
601
  ),
602
 
603
+ 'posterous' => array(
604
+ 'name' => 'Posterous',
605
+ 'titleText' => __('Share this on ', 'wpsr') . 'Posterous',
606
  'icon' => 'posterous.png',
607
+ 'url' => 'http://posterous.com/share?linkto={url}&amp;title={title}&amp;selection={excerpt}',
608
  'support32px' => 1,
609
  ),
610
 
611
+ 'print' => array(
612
+ 'name' => 'Print',
613
+ 'titleText' => __('Print this article ', 'wpsr') . '',
614
  'icon' => 'printfriendly.png',
615
+ 'url' => 'http://www.printfriendly.com/print?url={url}',
616
  'support32px' => 1,
617
  ),
618
 
619
+ 'propeller' => array(
620
+ 'name' => 'Propeller',
621
+ 'titleText' => __('Submit this to ', 'wpsr') . 'Propeller',
622
  'icon' => 'propeller.png',
623
+ 'url' => 'http://www.propeller.com/submit/?url={url}',
624
  ),
625
 
626
  // R
627
 
628
+ 'ratimarks' => array(
629
+ 'name' => 'Ratimarks',
630
+ 'titleText' => __('Add this to ', 'wpsr') . 'Ratimarks',
631
  'icon' => 'ratimarks.png',
632
+ 'url' => 'http://ratimarks.org/bookmarks.php/?action=add&address={url}&amp;title={title}',
633
  ),
634
 
635
+ 'rec6' => array(
636
+ 'name' => 'Rec6',
637
+ 'titleText' => __('Share this on ', 'wpsr') . 'Rec6',
638
  'icon' => 'rec6.png',
639
+ 'url' => 'http://rec6.via6.com/link.php?url={url}&amp;={title}',
640
  ),
641
 
642
+ 'reddit' => array(
643
+ 'name' => 'Reddit',
644
+ 'titleText' => __('Submit this to ', 'wpsr') . 'Reddit',
645
  'icon' => 'reddit.png',
646
+ 'url' => 'http://reddit.com/submit?url={url}&amp;title={title}',
647
  'support32px' => 1,
648
  ),
649
 
650
+ 'rss' => array(
651
+ 'name' => 'RSS',
652
+ 'titleText' => __('Subscribe to ', 'wpsr') . 'RSS',
653
  'icon' => 'rss.png',
654
  'url' => '{rss-url}',
655
  'support32px' => 1,
657
 
658
  // S
659
 
660
+ 'scoopeo' => array(
661
+ 'name' => 'Scoopeo',
662
+ 'titleText' => __('Share this on ', 'wpsr') . 'Scoopeo',
663
  'icon' => 'scoopeo.png',
664
+ 'url' => 'http://www.scoopeo.com/scoop/new?newurl={url}&amp;title={title}',
665
  ),
666
 
667
+ 'segnalo' => array(
668
+ 'name' => 'Segnalo',
669
+ 'titleText' => __('Post this on ', 'wpsr') . 'Segnalo',
670
  'icon' => 'segnalo.png',
671
+ 'url' => 'http://segnalo.alice.it/post.html.php?url={url}&amp;title={title}',
672
  ),
673
 
674
+ 'shetoldme' => array(
675
+ 'name' => 'SheToldMe',
676
+ 'titleText' => __('Share this on ', 'wpsr') . 'SheToldMe',
677
  'icon' => 'shetoldme.png',
678
+ 'url' => 'http://shetoldme.com/publish?url={url}&title={title}',
679
  ),
680
 
681
+ 'simpy' => array(
682
+ 'name' => 'Simpy',
683
+ 'titleText' => __('Add this to ', 'wpsr') . 'Simpy',
684
  'icon' => 'simpy.png',
685
+ 'url' => 'http://www.simpy.com/simpy/LinkAdd.do?href={url}&amp;title={title}',
686
  ),
687
 
688
+ 'slashdot' => array(
689
+ 'name' => 'Slashdot',
690
+ 'titleText' => __('Share this on ', 'wpsr') . 'Slashdot',
691
  'icon' => 'slashdot.png',
692
+ 'url' => 'http://slashdot.org/bookmark.pl?title={title}&amp;url={url}',
693
  ),
694
 
695
+ 'socialogs' => array(
696
+ 'name' => 'Socialogs',
697
+ 'titleText' => __('Share this on ', 'wpsr') . 'Socialogs',
698
  'icon' => 'socialogs.png',
699
+ 'url' => 'http://socialogs.com/add_story.php?story_url={url}&amp;story_title={title}',
700
  ),
701
 
702
+ 'sphereit' => array(
703
+ 'name' => 'SphereIt',
704
+ 'titleText' => __('Share this on ', 'wpsr') . 'SphereIt',
705
  'icon' => 'sphere.png',
706
+ 'url' => 'http://www.sphere.com/search?q=sphereit:{url}&amp;title={title}',
707
  ),
708
 
709
+ 'sphinn' => array(
710
+ 'name' => 'Sphinn',
711
+ 'titleText' => __('Post this on ', 'wpsr') . 'Sphinn',
712
  'icon' => 'sphinn.png',
713
+ 'url' => 'http://sphinn.com/index.php?c=post&amp;m=submit&amp;link={url}',
714
  'support32px' => 1,
715
  ),
716
 
717
+ 'stumbleupon' => array(
718
+ 'name' => 'StumbleUpon',
719
+ 'titleText' => __('Submit this to ', 'wpsr') . 'StumbleUpon',
720
  'icon' => 'stumbleupon.png',
721
+ 'url' => 'http://www.stumbleupon.com/submit?url={url}&amp;title={title}',
722
  'support32px' => 1,
723
  ),
724
 
725
  // T
726
 
727
+ 'techmeme' => array(
728
+ 'name' => 'Techmeme',
729
+ 'titleText' => __('Share this on ', 'wpsr') . 'Techmeme',
730
  'icon' => 'techmeme.png',
731
+ 'url' => 'http://twitter.com/home/?status=tip%20@Techmeme%20{url}%20{title}',
732
  ),
733
 
734
+ 'technorati' => array(
735
+ 'name' => 'Technorati',
736
+ 'titleText' => __('Add this to ', 'wpsr') . 'Technorati',
737
  'icon' => 'technorati.png',
738
+ 'url' => 'http://technorati.com/faves?add={url}',
739
  'support32px' => 1,
740
  ),
741
 
742
+ 'tipd' => array(
743
+ 'name' => 'Tipd',
744
+ 'titleText' => __('Submit this to ', 'wpsr') . 'Tipd',
745
  'icon' => 'tipd.png',
746
+ 'url' => 'http://tipd.com/submit.php?url={url}',
747
  ),
748
 
749
+ 'tumblr' => array(
750
+ 'name' => 'Tumblr',
751
+ 'titleText' => __('Share this on ', 'wpsr') . 'Tumblr',
752
  'icon' => 'tumblr.png',
753
+ 'url' => 'http://www.tumblr.com/share?v=3&amp;u={url}&amp;t={title}&amp;s={excerpt}',
754
  'support32px' => 1,
755
  ),
756
 
757
+ 'twitter' => array(
758
+ 'name' => 'Twitter',
759
+ 'titleText' => __('Tweet this !', 'wpsr') . '',
760
  'icon' => 'twitter.png',
761
+ 'url' => 'http://twitter.com/home?status={title}%20-%20{s-url}%20{twitter-username}',
762
  'support32px' => 1,
763
  ),
764
 
765
  // U
766
 
767
+ 'upnews' => array(
768
+ 'name' => 'Upnews',
769
+ 'titleText' => __('Submit this to ', 'wpsr') . 'Upnews',
770
  'icon' => 'upnews.png',
771
+ 'url' => 'http://www.upnews.it/submit?url={url}&amp;title={title}',
772
  ),
773
 
774
  // V
775
 
776
+ 'viadeofr' => array(
777
+ 'name' => 'Viadeo FR',
778
+ 'titleText' => __('Share this on ', 'wpsr') . 'Viadeo FR',
779
  'icon' => 'viadeo.png',
780
+ 'url' => 'http://www.viadeo.com/shareit/share/?url={url}&title={title}&urllanguage=fr',
781
  ),
782
 
783
  // W
784
 
785
+ 'webnewsde' => array(
786
+ 'name' => 'Webnews.de',
787
+ 'titleText' => __('Share this on ', 'wpsr') . 'Webnews.de',
788
  'icon' => 'webnews.png',
789
+ 'url' => 'http://www.webnews.de/einstellen?url={url}&amp;title={title}',
790
  ),
791
 
792
+ 'webride' => array(
793
+ 'name' => 'Webride',
794
+ 'titleText' => __('Share this on ', 'wpsr') . 'Webride',
795
  'icon' => 'webride.png',
796
+ 'url' => 'http://webride.org/discuss/split.php?uri={url}&amp;title={title}',
797
  ),
798
 
799
+ 'wikio' => array(
800
+ 'name' => 'Wikio',
801
+ 'titleText' => __('Share this on ', 'wpsr') . 'Wikio',
802
  'icon' => 'wikio.png',
803
+ 'url' => 'http://www.wikio.com/vote?url={url}',
804
  ),
805
 
806
  /*'Wikio FR' => array(
807
  'icon' => 'wikio.png',
808
+ 'url' => 'http://www.wikio.fr/vote?url={url}',
809
  'sameImageAs' => 'Wikio',
810
  ),
811
 
812
  'Wikio IT' => array(
813
  'icon' => 'wikio.png',
814
+ 'url' => 'http://www.wikio.it/vote?url={url}',
815
  'sameImageAs' => 'Wikio',
816
  ),*/
817
 
818
+ 'wists' => array(
819
+ 'name' => 'Wists',
820
+ 'titleText' => __('Share this on ', 'wpsr') . 'Wists',
821
  'icon' => 'wists.png',
822
+ 'url' => 'http://wists.com/s.php?c=&amp;r={url}&amp;title={title}',
823
  ),
824
 
825
+ 'wykop' => array(
826
+ 'name' => 'Wykop',
827
+ 'titleText' => __('Share this on ', 'wpsr') . 'Wykop',
828
  'icon' => 'wykop.png',
829
+ 'url' => 'http://www.wykop.pl/dodaj?url={url}',
830
+ 'support32px' => 1, // Added version 2.0 - 16-1-2011
831
  ),
832
 
833
  // X
834
 
835
+ 'xerpi' => array(
836
+ 'name' => 'Xerpi',
837
+ 'titleText' => __('Add this to ', 'wpsr') . 'Xerpi',
838
  'icon' => 'xerpi.png',
839
+ 'url' => 'http://www.xerpi.com/block/add_link_from_extension?url={url}&amp;title={title}',
840
  ),
841
 
842
  // Y
843
 
844
+ 'yahoobookmarks' => array(
845
+ 'name' => 'Yahoo! Bookmarks',
846
+ 'titleText' => __('Add this to ', 'wpsr') . 'Yahoo! Bookmarks',
847
  'icon' => 'yahoo.png',
848
+ 'url' => 'http://bookmarks.yahoo.com/toolbar/savebm?u={url}&amp;t={title}&opener=bm&amp;ei=UTF-8&amp;d={excerpt}',
849
  'support32px' => 1,
850
  ),
851
 
852
+ 'yahoobuzz' => array(
853
+ 'name' => 'YahooBuzz',
854
+ 'titleText' => __('Submit this to ', 'wpsr') . 'YahooBuzz',
855
  'icon' => 'yahoobuzz.png',
856
+ 'url' => 'http://buzz.yahoo.com/submit/?submitUrl={url}&amp;submitHeadline={title}&amp;submitSummary={excerpt}&amp;submitAssetType=text',
857
  'support32px' => 1,
858
  ),
859
 
860
+ 'yigg' => array(
861
+ 'name' => 'Yigg',
862
+ 'titleText' => __('Share this on ', 'wpsr') . 'Yigg',
863
  'icon' => 'yiggit.png',
864
+ 'url' => 'http://yigg.de/neu?exturl={url}&amp;exttitle={title}',
865
  ),
866
 
867
  );
868
 
869
  $wpsr_button_code_list = array(
870
  "{social-bts-16px}", "{social-bts-32px}", "{addthis-bt}",
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
 
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
892
+ function wpsr_init(){
893
+ // Include the plugin translations
894
+ load_plugin_textdomain('wpsr', false, dirname(plugin_basename( __FILE__ )) . '/languages');
895
+ }
896
+ add_action('init','wpsr_init');
897
 
898
  ## Include WP Socializer Processer files
899
+ require_once('admin/wpsr-admin.php');
900
+ require_once('admin/wpsr-admin-other.php');
901
+ require_once('includes/wpsr-addthis.php');
902
+ require_once('includes/wpsr-sharethis.php');
903
+ require_once('includes/wpsr-google.php'); // Since v2
904
+ require_once('includes/wpsr-retweet.php');
905
+ require_once('includes/wpsr-digg.php');
906
+ require_once('includes/wpsr-facebook.php');
907
+ 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) {
914
+ if(!is_array($needle)) $needle = array($needle);
915
+ foreach($needle as $what) {
916
+ if(($pos = strpos($haystack, $what))!==false) return $pos;
917
+ }
918
+ return false;
919
+ }
920
 
921
  ## wpsr Is active check
922
  function wpsr_is_active(){
941
 
942
  ## Admin Notices
943
  function wpsr_admin_notices(){
944
+ if(!wpsr_is_active() && $_GET['page'] != 'wp_socializer'){
945
+ echo '<div class="updated fade"><p>' . __('<b>WP Socializer</b> plugin is intalled. Please adjust your settings', 'wpsr') . ' <a href="' . get_bloginfo('wpurl') . '/wp-admin/admin.php?page=wp_socializer">' . __('in this page', 'wpsr') . '.</a></p></div>';
946
  }
947
  }
948
  add_action('admin_notices', 'wpsr_admin_notices');
952
  static $this_plugin;
953
  if(!$this_plugin) $this_plugin = plugin_basename(__FILE__);
954
  if( $file == $this_plugin ){
955
+ $settings_link = '<a href="admin.php?page=wp_socializer">' . __('Settings' ,'wpsr') . '</a> ' . '|' . ' <a href="http://www.aakashweb.com/" target="_blank">' . __('Support' ,'wpsr') . '</a>';
956
  $links = array_merge( array($settings_link), $links);
957
  }
958
  return $links;
968
  * Available template name are 'template1' and 'template2'
969
  */
970
 
971
+ function wp_socializer($to_display, $params=""){
972
  switch($to_display){
973
+ case 'socialbts' :
974
+ return wpsr_socialbts($params);
975
  break;
976
 
977
+ case 'addthis' :
978
+ return wpsr_addthis($params);
979
  break;
980
 
981
+ case 'sharethis' :
982
+ return wpsr_sharethis($params);
983
+ break;
984
 
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;
996
 
997
+ case 'digg' :
998
+ return wpsr_digg($params);
999
  break;
1000
 
1001
+ case 'facebook' :
1002
+ return wpsr_facebook($params);
1003
  break;
1004
 
1005
+ case 'plusone' :
1006
+ return wpsr_plusone($params);
1007
  break;
1008
 
1009
+ case 'stumbleupon' :
1010
+ return wpsr_stumbleupon($params);
1011
+ break;
1012
+
1013
+ case 'reddit' :
1014
+ return wpsr_reddit($params);
1015
+ break;
1016
+
1017
  case 'custom-1' :
1018
  return wpsr_custom_bt('custom1');
1019
  break;
1036
  * One function for getting the url and title of the page
1037
  * outside the loop and inside the loop
1038
  *
1039
+ * Uses super variables to get the page url outside loop and wp_title()
1040
  * to get the page title.
1041
  */
1042
 
1065
  if(in_the_loop()){
1066
  $details = array(
1067
  'permalink' => $permalink_inside_loop,
1068
+ 'title' => trim($title_inside_loop),
1069
  'excerpt' => $excerpt_inside_loop
1070
  );
1071
 
1072
  }else{
1073
  $details = array(
1074
  'permalink' => $permalink_outside_loop,
1075
+ 'title' => trim($title_outside_loop),
1076
  'excerpt' => $excerpt_outside_loop
1077
  );
1078
  }
1081
 
1082
  }
1083
 
 
 
 
 
 
 
 
 
 
 
1084
  function wpsr_process_template($the_template){
1085
 
1086
  // Get the global variables
1087
  global $wpsr_button_code_list;
1088
 
1089
  // Get the processed button codes
1090
+ $wpsr_social_bts_16px = wpsr_socialbts_template('16px');
1091
+ $wpsr_social_bts_32px = wpsr_socialbts_template('32px');
1092
+
1093
+ $wpsr_addthis_bt = wpsr_addthis_bt('button');
1094
+ $wpsr_addthis_tb16px = wpsr_addthis_bt('toolbar', '16px');
1095
+ $wpsr_addthis_tb32px = wpsr_addthis_bt('toolbar', '32px');
1096
+ $wpsr_addthis_sc = wpsr_addthis_bt('sharecount');
1097
+
1098
+ $wpsr_sharethis_vcount = wpsr_sharethis_bt('vcount');
1099
+ $wpsr_sharethis_hcount = wpsr_sharethis_bt('hcount');
1100
+ $wpsr_sharethis_large = wpsr_sharethis_bt('large');
1101
+ $wpsr_sharethis_regular = wpsr_sharethis_bt('regular');
1102
+ $wpsr_sharethis_regular2 = wpsr_sharethis_bt('regular2');
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');
1111
+ $wpsr_pone_tall = wpsr_plusone_bt('tall');
1112
+
1113
  $wpsr_retweet_bt = wpsr_retweet_bt();
1114
  $wpsr_digg_bt = wpsr_digg_bt();
1115
+ $wpsr_facebook_like = wpsr_facebook_bt('like');
1116
+ $wpsr_facebook_share = wpsr_facebook_bt('share');
1117
+
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
 
1124
  $wpsr_button_processed_list = array(
1125
  $wpsr_social_bts_16px, $wpsr_social_bts_32px, $wpsr_addthis_bt,
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
1167
  $wpsr_template1 = get_option('wpsr_template1_data');
1168
  $wpsr_template2 = get_option('wpsr_template2_data');
1169
+
1170
+ $wpsr_template1_content = ($wpsr_template1['addp'] == 1) ? wpautop($wpsr_template1['content']) : $wpsr_template1['content'];
1171
+ $wpsr_template2_content = ($wpsr_template2['addp'] == 1) ? wpautop($wpsr_template2['content']) : $wpsr_template2['content'];
1172
 
1173
  switch($the_template){
1174
  case 'template1' :
1178
  case 'template2' :
1179
  $wpsr_template2_processed = str_replace($wpsr_button_code_list, $wpsr_button_processed_list, $wpsr_template2_content);
1180
  return $wpsr_template2_processed;
1181
+
1182
+ case 'rss1' :
1183
+ $wpsr_template1_content = strip_tags($wpsr_template1_content, '<h1><h2><h3><h4><h5><h6>');
1184
+ $wpsr_rss1_processed = str_replace($wpsr_button_code_list, $wpsr_button_processed_list_rss, $wpsr_template1_content);
1185
+ return $wpsr_rss1_processed;
1186
+
1187
+ case 'rss2' :
1188
+ $wpsr_template2_content = strip_tags($wpsr_template2_content, '<h1><h2><h3><h4><h5><h6>');
1189
+ $wpsr_rss2_processed = str_replace($wpsr_button_code_list, $wpsr_button_processed_list_rss, $wpsr_template2_content);
1190
+ return $wpsr_rss2_processed;
1191
  }
1192
  }
1193
 
1238
  $wpsr_template1_processed = wpsr_process_template('template1');
1239
 
1240
  }elseif(is_feed() == 1 && $wpsr_template1_infeed == 1){
1241
+ $wpsr_template1_processed = $wpsr_template1_processed;
1242
 
1243
  }else{
1244
  $wpsr_template1_processed = '' ;
1251
  * Used to remove the widget/button text printed along with the content
1252
  */
1253
 
1254
+ /* BUG in v1.0
1255
  if(defined('IS_EXCERPT') && IS_EXCERPT ){
1256
  if(empty($post->post_excerpt)){
1257
  $content = substr(strip_tags(strip_shortcodes($post->post_content), '<p>'),0,250);
1258
  }
1259
  }
1260
+ */
1261
 
1262
  // Check whether displaying template1 in the post is enabled
1263
  if (get_post_meta($post->ID,'_wpsr-disable-template1', true) != 1){
1282
 
1283
  }
1284
 
1285
+ function wpsr_output_rss1($content = ''){
1286
+ // Get the global variables
1287
+ global $post;
1288
+
1289
+ $wpsr_template1 = get_option('wpsr_template1_data');
1290
+
1291
+ $wpsr_template1_infeed = $wpsr_template1['infeed'];
1292
+ $wpsr_template1_abvcontent = $wpsr_template1['abvcontent'];
1293
+ $wpsr_template1_blwcontent = $wpsr_template1['blwcontent'];
1294
+
1295
+ $wpsr_rss1_processed = wpsr_process_template('rss1');
1296
+
1297
+ if (get_post_meta($post->ID,'_wpsr-disable-template1', true) != 1){
1298
+ // Check position conditionals
1299
+ if($wpsr_template1_abvcontent == 1 && $wpsr_template1_blwcontent == 1){
1300
+ return $wpsr_rss1_processed . $content . $wpsr_template1_processed;
1301
+
1302
+ }elseif($wpsr_template1_abvcontent == 1){
1303
+ return $wpsr_rss1_processed . $content;
1304
+
1305
+ }elseif($wpsr_template1_blwcontent == 1){
1306
+ return $content . $wpsr_rss1_processed;
1307
+
1308
+ }else{
1309
+ return $content;
1310
+ }
1311
+
1312
+ }else{
1313
+ return $content;
1314
+ }
1315
+ }
1316
+
1317
  ## Print the output of template2
1318
  function wpsr_output_template2($content = ''){
1319
 
1361
  $wpsr_template2_processed = wpsr_process_template('template2');
1362
 
1363
  }elseif(is_feed() == 1 && $wpsr_template2_infeed == 1){
1364
+ $wpsr_template2_processed = $wpsr_template2_processed;
1365
 
1366
  }else{
1367
  $wpsr_template2_processed = '' ;
1368
  }
1369
 
1370
+ // Check whether displaying template2 in the post is enabled
1371
  if (get_post_meta($post->ID,'_wpsr-disable-template2', true) != 1){
1372
 
1373
  // Check position conditionals
1390
 
1391
  }
1392
 
1393
+ function wpsr_output_rss2($content = ''){
1394
+ // Get the global variables
1395
+ global $post;
1396
+
1397
+ $wpsr_template2 = get_option('wpsr_template2_data');
1398
+
1399
+ $wpsr_template2_infeed = $wpsr_template2['infeed'];
1400
+ $wpsr_template2_abvcontent = $wpsr_template2['abvcontent'];
1401
+ $wpsr_template2_blwcontent = $wpsr_template2['blwcontent'];
1402
+
1403
+ $wpsr_rss2_processed = wpsr_process_template('rss2');
1404
+
1405
+ if (get_post_meta($post->ID,'_wpsr-disable-template2', true) != 1){
1406
+ // Check position conditionals
1407
+ if($wpsr_template2_abvcontent == 1 && $wpsr_template2_blwcontent == 1){
1408
+ return $wpsr_rss2_processed . $content . $wpsr_template2_processed;
1409
+
1410
+ }elseif($wpsr_template2_abvcontent == 1){
1411
+ return $wpsr_rss2_processed . $content;
1412
+
1413
+ }elseif($wpsr_template2_blwcontent == 1){
1414
+ return $content . $wpsr_rss2_processed;
1415
+
1416
+ }else{
1417
+ return $content;
1418
+ }
1419
+
1420
+ }else{
1421
+ return $content;
1422
+ }
1423
+ }
1424
+
1425
  ## Add required filters and check whether WP Socializer is disabled
1426
  $wpsr_settings = get_option('wpsr_settings_data');
1427
 
1430
  add_filter('the_content', 'wpsr_output_template1');
1431
  add_filter('the_content', 'wpsr_output_template2');
1432
 
 
1433
  $wpsr_template1 = get_option('wpsr_template1_data');
1434
  $wpsr_template2 = get_option('wpsr_template2_data');
1435
 
1436
+ // Check whether to print in excerpts
1437
  if($wpsr_template1['inexcerpt']){
1438
  add_filter('the_excerpt', 'wpsr_output_template1');
1439
  }
1441
  if($wpsr_template2['inexcerpt']){
1442
  add_filter('the_excerpt', 'wpsr_output_template2');
1443
  }
1444
+
1445
+ // For RSS
1446
+ if($wpsr_template1['infeed']){
1447
+ add_filter('the_content_feed', 'wpsr_output_rss1');
1448
+ add_filter('the_excerpt_rss', 'wpsr_output_rss1');
1449
+ }
1450
+
1451
+ if($wpsr_template2['infeed']){
1452
+ add_filter('the_content_feed', 'wpsr_output_rss2');
1453
+ add_filter('the_excerpt_rss', 'wpsr_output_rss2');
1454
+ }
1455
  }
1456
 
1457
  ## Add the button scripts to the header
1458
  function wpsr_scripts_adder(){
1459
 
 
 
1460
  ## Social Button options
1461
  $wpsr_socialbt = get_option('wpsr_socialbt_data');
1462
  $wpsr_socialbt_loadcss = $wpsr_socialbt['loadcss'];
1470
  $wpsr_retweet_service = $wpsr_retweet['service'];
1471
 
1472
  if(wpsr_retweet_bt_used() == 1 && $wpsr_retweet_service == 'topsy'){
1473
+ echo wpsr_retweet_topsy_script();
1474
+ }
1475
+
1476
+ if(wpsr_retweet_bt_used() == 1 && $wpsr_retweet_service == 'twitter'){
1477
+ echo wpsr_retweet_twitter_script();
1478
  }
1479
 
1480
  if(wpsr_digg_bt_used() == 1){
1481
+ echo wpsr_digg_script();
1482
  }
1483
 
1484
+ if(wpsr_addthis_is_used() == 1){
1485
+ echo wpsr_addthis_script();
1486
+ }
1487
+
1488
+ if(wpsr_sharethis_is_used() == 1){
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']){
1528
  }
1529
 
1530
  function aw_dashboard_setup() {
1531
+ wp_add_dashboard_widget('aw_dashboard', __( 'AW Latest Updates', 'wpsr'), 'aw_dashboard');
1532
  }
1533
  add_action('wp_dashboard_setup', 'aw_dashboard_setup');
1534
  }
1535
 
1536
+ ## Add notification to the dashboard right now
1537
+ function wpsr_dashboard_rightnow(){
1538
+ $wpsr_settings = get_option('wpsr_settings_data');
1539
+ $wpsr_settings_disablewpsr = $wpsr_settings['disablewpsr'];
1540
+
1541
+ if($wpsr_settings_disablewpsr == 1){
1542
+ echo '<p class="message">' . __('WP Socializer is <span style="color:red;"><b>disabled</b></span>', 'wpsr') . '</p>';
1543
+ }
1544
+ }
1545
+ add_action('rightnow_end','wpsr_dashboard_rightnow');
1546
+
1547
+ function wpsr_adminbar() {
1548
+ global $wp_admin_bar, $wpdb, $post;
1549
+ if ( !is_super_admin() || !is_admin_bar_showing()){
1550
+ return;
1551
+ }
1552
+
1553
+ $adminPage = get_option('home') . '/admin.php?page=wp_socializer';
1554
+
1555
+ $wp_admin_bar->add_menu( array( 'id' => 'wpsr_adminbar_menu', 'title' => 'WP Socializer', 'href' => $adminPage));
1556
+ $wp_admin_bar->add_menu( array( 'parent' => 'wpsr_adminbar_menu', 'title' => __('Edit the templates', 'wpsr'), 'href' => $adminPage . '#tab-9'));
1557
+
1558
+ if(is_single() || is_page()){
1559
+ $current_object = get_queried_object();
1560
+ $postEdit = get_option('home') . '/wp-admin/post.php?action=edit&post=' . $post->ID;
1561
+ $wp_admin_bar->add_menu( array( 'parent' => 'wpsr_adminbar_menu', 'title' => __('Disable WP Socializer in this page', 'wpsr'), 'href' => get_edit_post_link($current_object->ID) . '#wp_socializer' ));
1562
+ }
1563
+ }
1564
+ add_action('admin_bar_menu', 'wpsr_adminbar', 1000);
1565
+
1566
+ /*
1567
+ * TinyMCE button for post editor
1568
+ * Used for adding shortcodes in posts
1569
+ * since v2.0
1570
+ */
1571
+
1572
+ function wpsr_add_wpsr_button() {
1573
+
1574
+ if (!current_user_can('edit_posts') && ! current_user_can('edit_pages'))
1575
+ return;
1576
+
1577
+ if ( get_user_option('rich_editing') == 'true') {
1578
+ add_filter("mce_external_plugins", "wpsr_add_wpsrbutton_tinymce");
1579
+ add_filter('mce_buttons', 'wpsr_register_wpsrbutton_tinymce');
1580
+ }
1581
+ }
1582
+
1583
+ function wpsr_register_wpsrbutton_tinymce($buttons) {
1584
+ array_push($buttons, "|", "wpsrbutton");
1585
+ return $buttons;
1586
+ }
1587
+
1588
+ function wpsr_add_wpsrbutton_tinymce($plugin_array) {
1589
+ $plugin_array['wpsrbutton'] = WPSR_ADMIN_URL . 'tinymce/editor_plugin.js';
1590
+ return $plugin_array;
1591
+ }
1592
+
1593
+ // init process for button control
1594
+ //add_action('init', 'wpsr_add_wpsr_button');
1595
+
1596
+ // TinyMCE button translation
1597
+ function wpsr_wpsrbt_info(){
1598
+ echo
1599
+ '<script type="text/javascript">
1600
+ /* <![CDATA[ */
1601
+ var wpsr_sc_button = {
1602
+ value : "' . __('WP Socializer', 'wpsr') . '",
1603
+ title : "' . __('Insert WP Socializer buttons', 'wpsr') . '"
1604
+ };
1605
+ /* ]]> */
1606
+ </script>' . "\n";
1607
+ }
1608
+
1609
+ //add_action('edit_form_advanced', 'wpsr_wpsrbt_info');
1610
+
1611
  ?>