WP Socializer - Version 1.0

Version Description

  • Initial Version

=

Download this release

Release Info

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

Version 1.0

Files changed (176) hide show
  1. adm-sidebar.php +95 -0
  2. images/Thumbs.db +0 -0
  3. images/admin-sprites.png +0 -0
  4. images/help.png +0 -0
  5. images/paypalDonateButton.png +0 -0
  6. images/settings.png +0 -0
  7. images/wp-socializer.png +0 -0
  8. js/colorpicker/arrow.gif +0 -0
  9. js/colorpicker/arrow.png +0 -0
  10. js/colorpicker/jquery.colorPicker.js +113 -0
  11. languages/readme.html +42 -0
  12. languages/wpsr-es_ES.mo +0 -0
  13. languages/wpsr-es_ES.po +578 -0
  14. languages/wpsr-zh_CN.mo +0 -0
  15. languages/wpsr-zh_CN.po +579 -0
  16. readme.txt +121 -0
  17. screenshot-1.png +0 -0
  18. screenshot-2.png +0 -0
  19. screenshot-3.png +0 -0
  20. screenshot-4.png +0 -0
  21. social-icons/16/Thumbs.db +0 -0
  22. social-icons/16/addtofavorites.png +0 -0
  23. social-icons/16/barrapunto.png +0 -0
  24. social-icons/16/bitacoras.png +0 -0
  25. social-icons/16/blinklist.png +0 -0
  26. social-icons/16/blogger.png +0 -0
  27. social-icons/16/blogmarks.png +0 -0
  28. social-icons/16/blogospherenews.png +0 -0
  29. social-icons/16/blogter.png +0 -0
  30. social-icons/16/bluedot.png +0 -0
  31. social-icons/16/box.png +0 -0
  32. social-icons/16/connotea.png +0 -0
  33. social-icons/16/current.png +0 -0
  34. social-icons/16/delicious.png +0 -0
  35. social-icons/16/designbump.png +0 -0
  36. social-icons/16/designfloat.png +0 -0
  37. social-icons/16/digg.png +0 -0
  38. social-icons/16/diggita.png +0 -0
  39. social-icons/16/diigo.png +0 -0
  40. social-icons/16/dotnetkicks.png +0 -0
  41. social-icons/16/dzone.png +0 -0
  42. social-icons/16/ekudos.png +0 -0
  43. social-icons/16/email_link.png +0 -0
  44. social-icons/16/facebook.png +0 -0
  45. social-icons/16/fark.png +0 -0
  46. social-icons/16/fleck.png +0 -0
  47. social-icons/16/friendfeed.png +0 -0
  48. social-icons/16/friendster.png +0 -0
  49. social-icons/16/fsdaily.png +0 -0
  50. social-icons/16/globalgrind.png +0 -0
  51. social-icons/16/google.png +0 -0
  52. social-icons/16/googlebuzz.png +0 -0
  53. social-icons/16/googlereader.png +0 -0
  54. social-icons/16/gwar.png +0 -0
  55. social-icons/16/hackernews.png +0 -0
  56. social-icons/16/haohao.png +0 -0
  57. social-icons/16/healthranker.png +0 -0
  58. social-icons/16/hellotxt.png +0 -0
  59. social-icons/16/hemidemi.png +0 -0
  60. social-icons/16/hyves.png +0 -0
  61. social-icons/16/identica.png +0 -0
  62. social-icons/16/im.png +0 -0
  63. social-icons/16/indianpad.png +0 -0
  64. social-icons/16/kirtsy.png +0 -0
  65. social-icons/16/laaikit.png +0 -0
  66. social-icons/16/latafanera.png +0 -0
  67. social-icons/16/linkagogo.png +0 -0
  68. social-icons/16/linkarena.png +0 -0
  69. social-icons/16/linkedin.png +0 -0
  70. social-icons/16/linkter.png +0 -0
  71. social-icons/16/live.png +0 -0
  72. social-icons/16/meneame.png +0 -0
  73. social-icons/16/misterwong.png +0 -0
  74. social-icons/16/mixx.png +0 -0
  75. social-icons/16/mob.png +0 -0
  76. social-icons/16/msnreporter.png +0 -0
  77. social-icons/16/muti.png +0 -0
  78. social-icons/16/myshare.png +0 -0
  79. social-icons/16/myspace.png +0 -0
  80. social-icons/16/n4g.png +0 -0
  81. social-icons/16/netvibes.png +0 -0
  82. social-icons/16/netvouz.png +0 -0
  83. social-icons/16/newsvine.png +0 -0
  84. social-icons/16/nujij.png +0 -0
  85. social-icons/16/orkut.png +0 -0
  86. social-icons/16/pdf.png +0 -0
  87. social-icons/16/ping.png +0 -0
  88. social-icons/16/posterous.png +0 -0
  89. social-icons/16/printfriendly.png +0 -0
  90. social-icons/16/propeller.png +0 -0
  91. social-icons/16/ratimarks.png +0 -0
  92. social-icons/16/readme.html +44 -0
  93. social-icons/16/rec6.png +0 -0
  94. social-icons/16/reddit.png +0 -0
  95. social-icons/16/rss.png +0 -0
  96. social-icons/16/scoopeo.png +0 -0
  97. social-icons/16/segnalo.png +0 -0
  98. social-icons/16/shetoldme.png +0 -0
  99. social-icons/16/simpy.png +0 -0
  100. social-icons/16/slashdot.png +0 -0
  101. social-icons/16/socialogs.png +0 -0
  102. social-icons/16/sphere.png +0 -0
  103. social-icons/16/sphinn.png +0 -0
  104. social-icons/16/stumbleupon.png +0 -0
  105. social-icons/16/techmeme.png +0 -0
  106. social-icons/16/technorati.png +0 -0
  107. social-icons/16/tipd.png +0 -0
  108. social-icons/16/tumblr.png +0 -0
  109. social-icons/16/twitter.png +0 -0
  110. social-icons/16/upnews.png +0 -0
  111. social-icons/16/viadeo.png +0 -0
  112. social-icons/16/webnews.png +0 -0
  113. social-icons/16/webride.png +0 -0
  114. social-icons/16/wikio.png +0 -0
  115. social-icons/16/wists.png +0 -0
  116. social-icons/16/wykop.png +0 -0
  117. social-icons/16/xerpi.png +0 -0
  118. social-icons/16/yahoobuzz.png +0 -0
  119. social-icons/16/yahoomyweb.png +0 -0
  120. social-icons/16/yiggit.png +0 -0
  121. social-icons/32/Thumbs.db +0 -0
  122. social-icons/32/addtofavorites.png +0 -0
  123. social-icons/32/blinklist.png +0 -0
  124. social-icons/32/blogger.png +0 -0
  125. social-icons/32/delicious.png +0 -0
  126. social-icons/32/designbump.png +0 -0
  127. social-icons/32/designfloat.png +0 -0
  128. social-icons/32/digg.png +0 -0
  129. social-icons/32/dzone.png +0 -0
  130. social-icons/32/email.png +0 -0
  131. social-icons/32/facebook.png +0 -0
  132. social-icons/32/friendfeed.png +0 -0
  133. social-icons/32/friendster.png +0 -0
  134. social-icons/32/google.png +0 -0
  135. social-icons/32/googlebuzz.png +0 -0
  136. social-icons/32/googlereader.png +0 -0
  137. social-icons/32/hyves.png +0 -0
  138. social-icons/32/linkedin.png +0 -0
  139. social-icons/32/live.png +0 -0
  140. social-icons/32/misterwong.png +0 -0
  141. social-icons/32/mixx.png +0 -0
  142. social-icons/32/myspace.png +0 -0
  143. social-icons/32/netvibes.png +0 -0
  144. social-icons/32/newsvine.png +0 -0
  145. social-icons/32/orkut.png +0 -0
  146. social-icons/32/ping.png +0 -0
  147. social-icons/32/posterous.png +0 -0
  148. social-icons/32/printfriendly.png +0 -0
  149. social-icons/32/readme.html +44 -0
  150. social-icons/32/reddit.png +0 -0
  151. social-icons/32/rss.png +0 -0
  152. social-icons/32/sphinn.png +0 -0
  153. social-icons/32/stumbleupon.png +0 -0
  154. social-icons/32/technorati.png +0 -0
  155. social-icons/32/tumblr.png +0 -0
  156. social-icons/32/twitter.png +0 -0
  157. social-icons/32/yahoo.png +0 -0
  158. social-icons/32/yahoobuzz.png +0 -0
  159. social-icons/Thumbs.db +0 -0
  160. social-icons/wp-socializer-sprite-16px.png +0 -0
  161. social-icons/wp-socializer-sprite-32px.png +0 -0
  162. social-icons/wp-socializer-sprite-mask-16px.gif +0 -0
  163. social-icons/wp-socializer-sprite-mask-32px.gif +0 -0
  164. socializer-addthis.php +116 -0
  165. socializer-admin-css.css +354 -0
  166. socializer-admin-js.js +169 -0
  167. socializer-admin.php +933 -0
  168. socializer-buzz.php +74 -0
  169. socializer-custom.php +41 -0
  170. socializer-digg.php +62 -0
  171. socializer-facebook.php +99 -0
  172. socializer-retweet.php +124 -0
  173. socializer-socialbuttons.php +279 -0
  174. wp-socializer-buttons-css.css +70 -0
  175. wp-socializer-buttons-js.js +12 -0
  176. wp-socializer.php +1100 -0
adm-sidebar.php ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ ?>
images/Thumbs.db ADDED
Binary file
images/admin-sprites.png ADDED
Binary file
images/help.png ADDED
Binary file
images/paypalDonateButton.png ADDED
Binary file
images/settings.png ADDED
Binary file
images/wp-socializer.png ADDED
Binary file
js/colorpicker/arrow.gif ADDED
Binary file
js/colorpicker/arrow.png ADDED
Binary file
js/colorpicker/jquery.colorPicker.js ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Really Simple Color Picker in jQuery
3
+ * Copyright (c) 2008 Lakshan Perera (www.laktek.com)
4
+ * Licensed under the MIT (MIT-LICENSE.txt) licenses.
5
+ */
6
+ (function($){
7
+ $.fn.colorPicker = function(){
8
+ if(this.length > 0) buildSelector();
9
+ return this.each(function(i) {
10
+ buildPicker(this)});
11
+ };
12
+ var selectorOwner;
13
+ var selectorShowing = false;
14
+ buildPicker = function(element){
15
+ control = $("<div class='color_picker'>&nbsp;</div>")
16
+ control.css('background-color', $(element).val());
17
+ control.bind("click", toggleSelector);
18
+ $(element).after(control);
19
+ $(element).bind("change", function() {
20
+ selectedValue = toHex($(element).val());
21
+ $(element).next(".color_picker").css("background-color", selectedValue);
22
+ });
23
+ $(element).hide();
24
+ };
25
+ buildSelector = function(){
26
+ selector = $("<div id='color_selector'></div>");
27
+ $.each($.fn.colorPicker.defaultColors, function(i){
28
+ swatch = $("<div class='color_swatch'>&nbsp;</div>")
29
+ swatch.css("background-color", "#" + this);
30
+ swatch.bind("click", function(e){ changeColor($(this).css("background-color")) });
31
+ swatch.bind("mouseover", function(e){
32
+ $(this).css("border-color", "#598FEF");
33
+ $("input#color_value").val(toHex($(this).css("background-color")));
34
+ });
35
+ swatch.bind("mouseout", function(e){
36
+ $(this).css("border-color", "#000");
37
+ $("input#color_value").val(toHex($(selectorOwner).css("background-color")));
38
+ });
39
+ swatch.appendTo(selector);
40
+ });
41
+ hex_field = $("<label for='color_value'>Hex</label><input type='text' size='8' id='color_value'/>");
42
+ hex_field.bind("keydown", function(event){
43
+ if(event.keyCode == 13) {changeColor($(this).val());}
44
+ if(event.keyCode == 27) {toggleSelector()}
45
+ });
46
+ $("<div id='color_custom'></div>").append(hex_field).appendTo(selector);
47
+ $("body").append(selector);
48
+ selector.hide();
49
+ };
50
+ checkMouse = function(event){
51
+ var selector = "div#color_selector";
52
+ var selectorParent = $(event.target).parents(selector).length;
53
+ if(event.target == $(selector)[0] || event.target == selectorOwner || selectorParent > 0) return
54
+ hideSelector();
55
+ }
56
+ hideSelector = function(){
57
+ var selector = $("div#color_selector");
58
+ $(document).unbind("mousedown", checkMouse);
59
+ selector.hide();
60
+ selectorShowing = false
61
+ }
62
+ showSelector = function(){
63
+ var selector = $("div#color_selector");
64
+ selector.css({
65
+ top: $(selectorOwner).offset().top + ($(selectorOwner).outerHeight()),
66
+ left: $(selectorOwner).offset().left
67
+ });
68
+ hexColor = $(selectorOwner).prev("input").val();
69
+ $("input#color_value").val(hexColor);
70
+ selector.show();
71
+ $(document).bind("mousedown", checkMouse);
72
+ selectorShowing = true
73
+ }
74
+ toggleSelector = function(event){
75
+ selectorOwner = this;
76
+ selectorShowing ? hideSelector() : showSelector();
77
+ }
78
+ changeColor = function(value){
79
+ if(selectedValue = toHex(value)){
80
+ $(selectorOwner).css("background-color", selectedValue);
81
+ $(selectorOwner).prev("input").val(selectedValue).change();
82
+ hideSelector();
83
+ }
84
+ };
85
+ toHex = function(color){
86
+ if(color.match(/[0-9a-fA-F]{3}$/) || color.match(/[0-9a-fA-F]{6}$/)){
87
+ color = (color.charAt(0) == "#") ? color : ("#" + color);
88
+ } else if(color.match(/^rgb\(([0-9]|[1-9][0-9]|[1][0-9]{2}|[2][0-4][0-9]|[2][5][0-5]),[ ]{0,1}([0-9]|[1-9][0-9]|[1][0-9]{2}|[2][0-4][0-9]|[2][5][0-5]),[ ]{0,1}([0-9]|[1-9][0-9]|[1][0-9]{2}|[2][0-4][0-9]|[2][5][0-5])\)$/)){
89
+ var c = ([parseInt(RegExp.$1),parseInt(RegExp.$2),parseInt(RegExp.$3)]);
90
+
91
+ var pad = function(str){
92
+ if(str.length < 2){
93
+ for(var i = 0,len = 2 - str.length ; i<len ; i++){
94
+ str = '0'+str;
95
+ }
96
+ }
97
+ return str;
98
+ }
99
+ if(c.length == 3){
100
+ var r = pad(c[0].toString(16)),g = pad(c[1].toString(16)),b= pad(c[2].toString(16));
101
+ color = '#' + r + g + b;
102
+ }
103
+ }
104
+ else color = false;
105
+ return color
106
+ }
107
+ $.fn.colorPicker.addColors = function(colorArray){
108
+ $.fn.colorPicker.defaultColors = $.fn.colorPicker.defaultColors.concat(colorArray);
109
+ };
110
+ $.fn.colorPicker.defaultColors =
111
+ [ '000000', '993300','333300', '000080', '333399', '333333', '800000', 'FF6600', '808000', '008000', '008080', '0000FF', '666699', '808080', 'FF0000', 'FF9900', '99CC00', '339966', '33CCCC', '3366FF', '800080', '999999', 'FF00FF', 'FFCC00', 'FFFF00', '00FF00', '00FFFF', '00CCFF', '993366', 'C0C0C0', 'FF99CC', 'FFCC99', 'FFFF99' , 'CCFFFF', '99CCFF', 'FFFFFF'];
112
+
113
+ })(jQuery);
languages/readme.html ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
+ <html>
3
+ <head>
4
+ <title>WP Socializer - Plugin - Language Translation</title>
5
+ <style>
6
+ body{
7
+ font: 13px/2em Arial, Helvetica, sans-serif;
8
+ background: #DDF1FF;
9
+ }
10
+ #wrap{
11
+ margin: 0px auto;
12
+ padding: 10px;
13
+ width: 750px;
14
+ background: #FFFFFF;
15
+ border: 1px solid #0099FF;
16
+ }
17
+ h1, h2{
18
+ font-weight: normal;
19
+ border-bottom: 1px solid #E0E0E0;
20
+ }
21
+ .grey{
22
+ color: #999999;
23
+ }
24
+ </style>
25
+ </head>
26
+ <body>
27
+ <div id="wrap">
28
+ <h1>WP Socializer - Plugin - Language Translation</h1>
29
+ <h3>Credits</h3>
30
+ <p>Spanish and Chinese Translation -By <a href="http://www.aakashweb.com/" rel="follow">Aakash Chakravarthy</a> </p>
31
+ <p>PO and MO files were made with Poedit software. Translations were done with Google Translate and Microsoft Translate. </p>
32
+ <h2>Contact Author </h2>
33
+ <ul>
34
+ <li>Website: <a href="http://www.aakashweb.com/" rel="follow">Aakash Web</a></li>
35
+ <li>Support: <a href="http://www.aakashweb.com/forum/">Forum</a> </li>
36
+ <li>Email: aakash.19493 AT gmail DOT com</li>
37
+ <li>Twitter: <a href="http://twitter.com/vaakash">vaakash</a></li>
38
+ </ul>
39
+ <p>More Translations needed. Please submit a Translation in <a href="http://www.aakashweb.com/wordpress-plugins/wp-socializer/" rel="follow">this page</a>. </p>
40
+ </div>
41
+ </body>
42
+ </html>
languages/wpsr-es_ES.mo ADDED
Binary file
languages/wpsr-es_ES.po ADDED
@@ -0,0 +1,578 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 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"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
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
+
languages/wpsr-zh_CN.mo ADDED
Binary file
languages/wpsr-zh_CN.po ADDED
@@ -0,0 +1,579 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 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"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
+ "X-Poedit-Basepath: .\n"
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
+
readme.txt ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+
87
+ 1. Upload `wp-socializer` to the `/wp-content/plugins/` directory
88
+ 1. Activate the plugin through the `Plugins` menu in WordPress
89
+ 1. Go to Settings -> WP Socializer to open the WP Socializer Admin Page.
90
+ 1. Customize the settings.
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
+
119
+ * Full interface and coding by [Aakash Chakravarthy](http://www.aakashweb.com/)
120
+ * Social buttons list taken from sociable plugin.
121
+ * German and Chinese translation were made with Google Translate and Microsoft Translate by [Aakash Chakravarthy](http://www.aakashweb.com/).
screenshot-1.png ADDED
Binary file
screenshot-2.png ADDED
Binary file
screenshot-3.png ADDED
Binary file
screenshot-4.png ADDED
Binary file
social-icons/16/Thumbs.db ADDED
Binary file
social-icons/16/addtofavorites.png ADDED
Binary file
social-icons/16/barrapunto.png ADDED
Binary file
social-icons/16/bitacoras.png ADDED
Binary file
social-icons/16/blinklist.png ADDED
Binary file
social-icons/16/blogger.png ADDED
Binary file
social-icons/16/blogmarks.png ADDED
Binary file
social-icons/16/blogospherenews.png ADDED
Binary file
social-icons/16/blogter.png ADDED
Binary file
social-icons/16/bluedot.png ADDED
Binary file
social-icons/16/box.png ADDED
Binary file
social-icons/16/connotea.png ADDED
Binary file
social-icons/16/current.png ADDED
Binary file
social-icons/16/delicious.png ADDED
Binary file
social-icons/16/designbump.png ADDED
Binary file
social-icons/16/designfloat.png ADDED
Binary file
social-icons/16/digg.png ADDED
Binary file
social-icons/16/diggita.png ADDED
Binary file
social-icons/16/diigo.png ADDED
Binary file
social-icons/16/dotnetkicks.png ADDED
Binary file
social-icons/16/dzone.png ADDED
Binary file
social-icons/16/ekudos.png ADDED
Binary file
social-icons/16/email_link.png ADDED
Binary file
social-icons/16/facebook.png ADDED
Binary file
social-icons/16/fark.png ADDED
Binary file
social-icons/16/fleck.png ADDED
Binary file
social-icons/16/friendfeed.png ADDED
Binary file
social-icons/16/friendster.png ADDED
Binary file
social-icons/16/fsdaily.png ADDED
Binary file
social-icons/16/globalgrind.png ADDED
Binary file
social-icons/16/google.png ADDED
Binary file
social-icons/16/googlebuzz.png ADDED
Binary file
social-icons/16/googlereader.png ADDED
Binary file
social-icons/16/gwar.png ADDED
Binary file
social-icons/16/hackernews.png ADDED
Binary file
social-icons/16/haohao.png ADDED
Binary file
social-icons/16/healthranker.png ADDED
Binary file
social-icons/16/hellotxt.png ADDED
Binary file
social-icons/16/hemidemi.png ADDED
Binary file
social-icons/16/hyves.png ADDED
Binary file
social-icons/16/identica.png ADDED
Binary file
social-icons/16/im.png ADDED
Binary file
social-icons/16/indianpad.png ADDED
Binary file
social-icons/16/kirtsy.png ADDED
Binary file
social-icons/16/laaikit.png ADDED
Binary file
social-icons/16/latafanera.png ADDED
Binary file
social-icons/16/linkagogo.png ADDED
Binary file
social-icons/16/linkarena.png ADDED
Binary file
social-icons/16/linkedin.png ADDED
Binary file
social-icons/16/linkter.png ADDED
Binary file
social-icons/16/live.png ADDED
Binary file
social-icons/16/meneame.png ADDED
Binary file
social-icons/16/misterwong.png ADDED
Binary file
social-icons/16/mixx.png ADDED
Binary file
social-icons/16/mob.png ADDED
Binary file
social-icons/16/msnreporter.png ADDED
Binary file
social-icons/16/muti.png ADDED
Binary file
social-icons/16/myshare.png ADDED
Binary file
social-icons/16/myspace.png ADDED
Binary file
social-icons/16/n4g.png ADDED
Binary file
social-icons/16/netvibes.png ADDED
Binary file
social-icons/16/netvouz.png ADDED
Binary file
social-icons/16/newsvine.png ADDED
Binary file
social-icons/16/nujij.png ADDED
Binary file
social-icons/16/orkut.png ADDED
Binary file
social-icons/16/pdf.png ADDED
Binary file
social-icons/16/ping.png ADDED
Binary file
social-icons/16/posterous.png ADDED
Binary file
social-icons/16/printfriendly.png ADDED
Binary file
social-icons/16/propeller.png ADDED
Binary file
social-icons/16/ratimarks.png ADDED
Binary file
social-icons/16/readme.html ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
+ <html>
3
+ <head>
4
+ <title>WP Socializer - Plugin - Icons</title>
5
+ <style>
6
+ body{
7
+ font: 13px/2em Arial, Helvetica, sans-serif;
8
+ background: #DDF1FF;
9
+ }
10
+ #wrap{
11
+ margin: 0px auto;
12
+ padding: 10px;
13
+ width: 750px;
14
+ background: #FFFFFF;
15
+ border: 1px solid #0099FF;
16
+ }
17
+ h1, h2{
18
+ font-weight: normal;
19
+ border-bottom: 1px solid #E0E0E0;
20
+ }
21
+ .grey{
22
+ color: #999999;
23
+ }
24
+ </style>
25
+ </head>
26
+ <body>
27
+ <div id="wrap">
28
+ <h1>Changing the default Icons - WP Socializer </h1>
29
+ <p>Default Icons in this folder can be replaced with custom <a href="http://www.aakashweb.com/wordpress-plugins/wp-socializer/">WP Socializer</a> icons. To replace the default icons please note these steps</p>
30
+ <ul>
31
+ <li>Replace the icons with the same name of the default.</li>
32
+ <li>Replace with only 16px Icons.</li>
33
+ </ul>
34
+ <p>Otherwise you can choose another folder containing the custom 16px Icons with the same name. The path of the new folder should be changed in the admin page. </p>
35
+ <h2>Contact Author </h2>
36
+ <ul>
37
+ <li>Website: <a href="http://www.aakashweb.com/" rel="follow">Aakash Web</a></li>
38
+ <li>Support: <a href="http://www.aakashweb.com/forum/">Forum</a> </li>
39
+ <li>Email: aakash.19493 AT gmail DOT com</li>
40
+ <li>Twitter: <a href="http://twitter.com/vaakash">vaakash</a></li>
41
+ </ul>
42
+ </div>
43
+ </body>
44
+ </html>
social-icons/16/rec6.png ADDED
Binary file
social-icons/16/reddit.png ADDED
Binary file
social-icons/16/rss.png ADDED
Binary file
social-icons/16/scoopeo.png ADDED
Binary file
social-icons/16/segnalo.png ADDED
Binary file
social-icons/16/shetoldme.png ADDED
Binary file
social-icons/16/simpy.png ADDED
Binary file
social-icons/16/slashdot.png ADDED
Binary file
social-icons/16/socialogs.png ADDED
Binary file
social-icons/16/sphere.png ADDED
Binary file
social-icons/16/sphinn.png ADDED
Binary file
social-icons/16/stumbleupon.png ADDED
Binary file
social-icons/16/techmeme.png ADDED
Binary file
social-icons/16/technorati.png ADDED
Binary file
social-icons/16/tipd.png ADDED
Binary file
social-icons/16/tumblr.png ADDED
Binary file
social-icons/16/twitter.png ADDED
Binary file
social-icons/16/upnews.png ADDED
Binary file
social-icons/16/viadeo.png ADDED
Binary file
social-icons/16/webnews.png ADDED
Binary file
social-icons/16/webride.png ADDED
Binary file
social-icons/16/wikio.png ADDED
Binary file
social-icons/16/wists.png ADDED
Binary file
social-icons/16/wykop.png ADDED
Binary file
social-icons/16/xerpi.png ADDED
Binary file
social-icons/16/yahoobuzz.png ADDED
Binary file
social-icons/16/yahoomyweb.png ADDED
Binary file
social-icons/16/yiggit.png ADDED
Binary file
social-icons/32/Thumbs.db ADDED
Binary file
social-icons/32/addtofavorites.png ADDED
Binary file
social-icons/32/blinklist.png ADDED
Binary file
social-icons/32/blogger.png ADDED
Binary file
social-icons/32/delicious.png ADDED
Binary file
social-icons/32/designbump.png ADDED
Binary file
social-icons/32/designfloat.png ADDED
Binary file
social-icons/32/digg.png ADDED
Binary file
social-icons/32/dzone.png ADDED
Binary file
social-icons/32/email.png ADDED
Binary file
social-icons/32/facebook.png ADDED
Binary file
social-icons/32/friendfeed.png ADDED
Binary file
social-icons/32/friendster.png ADDED
Binary file
social-icons/32/google.png ADDED
Binary file
social-icons/32/googlebuzz.png ADDED
Binary file
social-icons/32/googlereader.png ADDED
Binary file
social-icons/32/hyves.png ADDED
Binary file
social-icons/32/linkedin.png ADDED
Binary file
social-icons/32/live.png ADDED
Binary file
social-icons/32/misterwong.png ADDED
Binary file
social-icons/32/mixx.png ADDED
Binary file
social-icons/32/myspace.png ADDED
Binary file
social-icons/32/netvibes.png ADDED
Binary file
social-icons/32/newsvine.png ADDED
Binary file
social-icons/32/orkut.png ADDED
Binary file
social-icons/32/ping.png ADDED
Binary file
social-icons/32/posterous.png ADDED
Binary file
social-icons/32/printfriendly.png ADDED
Binary file
social-icons/32/readme.html ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
+ <html>
3
+ <head>
4
+ <title>WP Socializer - Plugin - Icons</title>
5
+ <style>
6
+ body{
7
+ font: 13px/2em Arial, Helvetica, sans-serif;
8
+ background: #DDF1FF;
9
+ }
10
+ #wrap{
11
+ margin: 0px auto;
12
+ padding: 10px;
13
+ width: 750px;
14
+ background: #FFFFFF;
15
+ border: 1px solid #0099FF;
16
+ }
17
+ h1, h2{
18
+ font-weight: normal;
19
+ border-bottom: 1px solid #E0E0E0;
20
+ }
21
+ .grey{
22
+ color: #999999;
23
+ }
24
+ </style>
25
+ </head>
26
+ <body>
27
+ <div id="wrap">
28
+ <h1>Changing the default Icons - WP Socializer </h1>
29
+ <p>Default Icons in this folder can be replaced with custom <a href="http://www.aakashweb.com/wordpress-plugins/wp-socializer/">WP Socializer</a> icons. To replace the default icons please note these steps</p>
30
+ <ul>
31
+ <li>Replace the icons with the same name of the default.</li>
32
+ <li>Replace with only 32px Icons.</li>
33
+ </ul>
34
+ <p>Otherwise you can choose another folder containing the custom 32px Icons with the same name. The path of the new folder should be changed in the admin page. </p>
35
+ <h2>Contact Author </h2>
36
+ <ul>
37
+ <li>Website: <a href="http://www.aakashweb.com/" rel="follow">Aakash Web</a></li>
38
+ <li>Support: <a href="http://www.aakashweb.com/forum/">Forum</a> </li>
39
+ <li>Email: aakash.19493 AT gmail DOT com</li>
40
+ <li>Twitter: <a href="http://twitter.com/vaakash">vaakash</a></li>
41
+ </ul>
42
+ </div>
43
+ </body>
44
+ </html>
social-icons/32/reddit.png ADDED
Binary file
social-icons/32/rss.png ADDED
Binary file
social-icons/32/sphinn.png ADDED
Binary file
social-icons/32/stumbleupon.png ADDED
Binary file
social-icons/32/technorati.png ADDED
Binary file
social-icons/32/tumblr.png ADDED
Binary file
social-icons/32/twitter.png ADDED
Binary file
social-icons/32/yahoo.png ADDED
Binary file
social-icons/32/yahoobuzz.png ADDED
Binary file
social-icons/Thumbs.db ADDED
Binary file
social-icons/wp-socializer-sprite-16px.png ADDED
Binary file
social-icons/wp-socializer-sprite-32px.png ADDED
Binary file
social-icons/wp-socializer-sprite-mask-16px.gif ADDED
Binary file
social-icons/wp-socializer-sprite-mask-32px.gif ADDED
Binary file
socializer-addthis.php ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,354 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,169 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,933 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-custom.php ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Custom buttons Processor code for WP Socializer Plugin
4
+ * Version : 1.0
5
+ * Author : Aakash Chakravarthy
6
+ */
7
+
8
+ function wpsr_custom_bt($custom){
9
+
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}"
17
+ );
18
+
19
+ $replace_with = array(
20
+ $permalink, $title
21
+ );
22
+
23
+ ## Get Custom options
24
+ $wpsr_custom = get_option('wpsr_custom_data');
25
+
26
+ $wpsr_custom1 = $wpsr_custom['custom1'];
27
+ $wpsr_custom2 = $wpsr_custom['custom2'];
28
+
29
+ switch ($custom){
30
+ case 'custom1' :
31
+ return str_replace($to_be_replaced, $replace_with, $wpsr_custom1);
32
+ break;
33
+
34
+ case 'custom2':
35
+ return str_replace($to_be_replaced, $replace_with, $wpsr_custom2);
36
+ break;
37
+ }
38
+
39
+ }
40
+
41
+ ?>
socializer-digg.php ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,279 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,1100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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,
455
+ ),
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
+
624
+ $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(){
646
+ if (get_option("wpsr_active") == 1) {
647
+ return 1;
648
+ }else{
649
+ return 0;
650
+ }
651
+ }
652
+
653
+ ## wpsr plugin activate
654
+ function wpsr_plugin_activate(){
655
+ update_option("wpsr_active", 1);
656
+ }
657
+ register_deactivation_hook(__FILE__, 'wpsr_plugin_activate');
658
+
659
+ ## wpsr plugin deactivate
660
+ function wpsr_plugin_deactivate(){
661
+ update_option("wpsr_active", 0);
662
+ }
663
+ 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');
672
+
673
+ ## Action Links
674
+ 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;
682
+ }
683
+ add_filter('plugin_action_links', 'wpsr_plugin_actions', 10, 2);
684
+
685
+ /**
686
+ * One function for displaying the buttons in theme files
687
+ * Use wp_socializer(the button code or template name) in the theme files to print the
688
+ * button or the template
689
+ *
690
+ * Available button codes are given in the variable $wpsr_button_code_list (line 582) without brackets
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;
735
+
736
+ case 'custom-2' :
737
+ return wpsr_custom_bt('custom2');
738
+ break;
739
+
740
+ case 'template-1' :
741
+ return wpsr_process_template('template1');
742
+ break;
743
+
744
+ case 'template-2' :
745
+ return wpsr_process_template('template2');
746
+ break;
747
+ }
748
+ }
749
+
750
+ /**
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
+
758
+ function wpsr_get_post_details(){
759
+ // Get the global variables
760
+ global $post;
761
+
762
+ // Inside loop
763
+ $permalink_inside_loop = get_permalink($post->ID);
764
+ $title_inside_loop = str_replace('+', '%20', get_the_title($post->ID));
765
+ $excerpt_inside_loop = strip_tags(strip_shortcodes($post->post_excerpt));
766
+ // If excerpt is null
767
+ if($excerpt_inside_loop == ''){
768
+ $excerpt_inside_loop = substr(strip_tags(strip_shortcodes($post->post_content)), 0, 250);
769
+ }
770
+
771
+ // Outside loop
772
+ $permalink_outside_loop = (!empty($_SERVER['HTTPS'])) ? "https://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] : "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
773
+ $title_outside_loop = str_replace('+', '%20', wp_title('', 0));
774
+ $excerpt_outside_loop = $title_outside_loop;
775
+ // If title is null
776
+ if($title_outside_loop == ''){
777
+ $title_outside_loop = str_replace('+', '%20', get_bloginfo('name'));
778
+ }
779
+
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
+ }
794
+
795
+ return $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' :
843
+ $wpsr_template1_processed = str_replace($wpsr_button_code_list, $wpsr_button_processed_list, $wpsr_template1_content);
844
+ return $wpsr_template1_processed;
845
+
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
+
852
+ ## Print the output of template1
853
+ function wpsr_output_template1($content = ''){
854
+
855
+ // Get the global variables
856
+ global $post;
857
+
858
+ // Get the placement options
859
+ $wpsr_template1 = get_option('wpsr_template1_data');
860
+
861
+ $wpsr_template1_inhome = $wpsr_template1['inhome'];
862
+ $wpsr_template1_insingle = $wpsr_template1['insingle'];
863
+ $wpsr_template1_inpage = $wpsr_template1['inpage'];
864
+ $wpsr_template1_incategory = $wpsr_template1['incategory'];
865
+ $wpsr_template1_intag = $wpsr_template1['intag'];
866
+ $wpsr_template1_indate = $wpsr_template1['indate'];
867
+ $wpsr_template1_inauthor = $wpsr_template1['inauthor'];
868
+ $wpsr_template1_insearch = $wpsr_template1['insearch'];
869
+ $wpsr_template1_infeed = $wpsr_template1['infeed'];
870
+ $wpsr_template1_abvcontent = $wpsr_template1['abvcontent'];
871
+ $wpsr_template1_blwcontent = $wpsr_template1['blwcontent'];
872
+
873
+ // Check page conditionals
874
+ if (is_home() == 1 && $wpsr_template1_inhome == 1){
875
+ $wpsr_template1_processed = wpsr_process_template('template1');
876
+
877
+ }elseif (is_single() == 1 && $wpsr_template1_insingle == 1){
878
+ $wpsr_template1_processed = wpsr_process_template('template1');
879
+
880
+ }elseif (is_page() == 1 && $wpsr_template1_inpage == 1){
881
+ $wpsr_template1_processed = wpsr_process_template('template1');
882
+
883
+ }elseif (is_category() == 1 && $wpsr_template1_incategory == 1){
884
+ $wpsr_template1_processed = wpsr_process_template('template1');
885
+
886
+ }elseif (is_tag() == 1 && $wpsr_template1_intag == 1){
887
+ $wpsr_template1_processed = wpsr_process_template('template1');
888
+
889
+ }elseif (is_date() == 1 && $wpsr_template1_indate == 1){
890
+ $wpsr_template1_processed = wpsr_process_template('template1');
891
+
892
+ }elseif (is_author() == 1 && $wpsr_template1_inauthor == 1){
893
+ $wpsr_template1_processed = wpsr_process_template('template1');
894
+
895
+ }elseif(is_search() == 1 && $wpsr_template1_insearch == 1){
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 = '' ;
903
+ }
904
+
905
+ /**
906
+ * If the output is given by the_excerpt() function
907
+ * and if the excerpt is empty generate the custom excerpt from the content
908
+ *
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){
920
+
921
+ // Check position conditionals
922
+ if($wpsr_template1_abvcontent == 1 && $wpsr_template1_blwcontent == 1){
923
+ return $wpsr_template1_processed . $content . $wpsr_template1_processed;
924
+
925
+ }elseif($wpsr_template1_abvcontent == 1){
926
+ return $wpsr_template1_processed . $content;
927
+
928
+ }elseif($wpsr_template1_blwcontent == 1){
929
+ return $content . $wpsr_template1_processed;
930
+
931
+ }else{
932
+ return $content;
933
+ }
934
+
935
+ }else{
936
+ return $content;
937
+ }
938
+
939
+ }
940
+
941
+ ## Print the output of template2
942
+ function wpsr_output_template2($content = ''){
943
+
944
+ // Get the global variables
945
+ global $post;
946
+
947
+ // Get the placement options
948
+ $wpsr_template2 = get_option('wpsr_template2_data');
949
+
950
+ $wpsr_template2_inhome = $wpsr_template2['inhome'];
951
+ $wpsr_template2_insingle = $wpsr_template2['insingle'];
952
+ $wpsr_template2_inpage = $wpsr_template2['inpage'];
953
+ $wpsr_template2_incategory = $wpsr_template2['incategory'];
954
+ $wpsr_template2_intag = $wpsr_template2['intag'];
955
+ $wpsr_template2_indate = $wpsr_template2['indate'];
956
+ $wpsr_template2_inauthor = $wpsr_template2['inauthor'];
957
+ $wpsr_template2_insearch = $wpsr_template2['insearch'];
958
+ $wpsr_template2_infeed = $wpsr_template2['infeed'];
959
+ $wpsr_template2_abvcontent = $wpsr_template2['abvcontent'];
960
+ $wpsr_template2_blwcontent = $wpsr_template2['blwcontent'];
961
+
962
+ // Check page conditionals
963
+ if (is_home() == 1 && $wpsr_template2_inhome == 1){
964
+ $wpsr_template2_processed = wpsr_process_template('template2');
965
+
966
+ }elseif (is_single() == 1 && $wpsr_template2_insingle == 1){
967
+ $wpsr_template2_processed = wpsr_process_template('template2');
968
+
969
+ }elseif (is_page() == 1 && $wpsr_template2_inpage == 1){
970
+ $wpsr_template2_processed = wpsr_process_template('template2');
971
+
972
+ }elseif (is_category() == 1 && $wpsr_template2_incategory == 1){
973
+ $wpsr_template2_processed = wpsr_process_template('template2');
974
+
975
+ }elseif (is_tag() == 1 && $wpsr_template2_intag == 1){
976
+ $wpsr_template2_processed = wpsr_process_template('template2');
977
+
978
+ }elseif (is_date() == 1 && $wpsr_template2_indate == 1){
979
+ $wpsr_template2_processed = wpsr_process_template('template2');
980
+
981
+ }elseif (is_author() == 1 && $wpsr_template2_inauthor == 1){
982
+ $wpsr_template2_processed = wpsr_process_template('template2');
983
+
984
+ }elseif(is_search() == 1 && $wpsr_template2_insearch == 1){
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
998
+ if($wpsr_template2_abvcontent == 1 && $wpsr_template2_blwcontent == 1){
999
+ return $wpsr_template2_processed . $content . $wpsr_template2_processed;
1000
+
1001
+ }elseif($wpsr_template2_abvcontent == 1){
1002
+ return $wpsr_template2_processed . $content;
1003
+
1004
+ }elseif($wpsr_template2_blwcontent == 1){
1005
+ return $content . $wpsr_template2_processed;
1006
+
1007
+ }else{
1008
+ return $content;
1009
+ }
1010
+
1011
+ }else{
1012
+ return $content;
1013
+ }
1014
+
1015
+ }
1016
+
1017
+ ## Add required filters and check whether WP Socializer is disabled
1018
+ $wpsr_settings = get_option('wpsr_settings_data');
1019
+
1020
+ if(!$wpsr_settings['disablewpsr']){
1021
+ // Filters
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
+ }
1032
+
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'];
1046
+
1047
+ if($wpsr_socialbt_loadcss == 1){
1048
+ wpsr_socialbts_script();
1049
+ }
1050
+
1051
+ # Get Retweet Button Option
1052
+ $wpsr_retweet = get_option('wpsr_retweet_data');
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']){
1066
+ if($wpsr_settings['scriptsplace'] == 'header'){
1067
+ add_action('wp_head', 'wpsr_scripts_adder');
1068
+ }else{
1069
+ add_action('wp_footer', 'wpsr_scripts_adder');
1070
+ }
1071
+ }
1072
+
1073
+ ## Add the misc/small scripts to the footer
1074
+ function wpsr_footer(){
1075
+ if(wpsr_addtofavorites_bt_used()){
1076
+ wpsr_addtofavorites_script();
1077
+ }
1078
+ }
1079
+ add_action('wp_footer', 'wpsr_footer');
1080
+
1081
+ ## Admin Dashboard
1082
+ if(!function_exists('aw_dashboard')){
1083
+ function aw_dashboard() {
1084
+ $rss = array('url' => 'http://feeds2.feedburner.com/aakashweb', 'items' => '5','show_date' => 0, 'show_summary'=> 1);
1085
+ $subscribe = "window.open('http://feedburner.google.com/fb/a/mailverify?uri=aakashweb', 'win','menubar=1,resizable=1,width=600,height=500'); return false;" ;
1086
+ echo '<div class="rss-widget">';
1087
+ echo '<a href="http://www.aakashweb.com/wordpress-plugins/" target="_blank"><img src="http://a.imageshack.us/img844/5834/97341029.png" align="right"/></a>';
1088
+ echo '<p>'; wp_widget_rss_output($rss); echo '</p>';
1089
+ echo '<hr style="border-top: 1px solid #fff;"/>';
1090
+ echo '<p><a href="#" onclick="' . $subscribe . '">Subscribe to Updates</a> | <a href="http://twitter.com/vaakash" target="_blank">Follow on Twitter</a> | <a href="http://www.aakashweb.com/" target="_blank">Home Page</a></p>';
1091
+ echo "</div>";
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
+ ?>