WP Socializer - Version 2.1

Version Description

  • Admin Blank page error fixed in Firefox 3.6.x
  • Encoded title fix for Sharethis buttons.
  • Social buttons max-width bug fixed for IE 8.
  • Fixed broken link in the admin bar.
  • Updated the AW updates the notification widget.
  • Added useful notices and informaion bars to the administration page for beginners.
Download this release

Release Info

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

Code changes from version 2.0 to 2.1

admin/images/New Wave Sound.wav DELETED
Binary file
admin/images/Thumbs.db DELETED
Binary file
admin/images/buttons/Thumbs.db CHANGED
Binary file
admin/tinymce/Thumbs.db ADDED
Binary file
admin/wpsr-admin-css.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  * Admin Page CSS for WP Socializer plugin
3
  * Author : Aakash Chakravarthy
4
- * Version : 1.0
5
  */
6
 
7
  .wrap{
@@ -69,10 +69,10 @@
69
  margin: -1px 0px 0px;
70
  border-top: 1px solid #d4d4d4;
71
  border-bottom: 1px solid #D4D4D4;
72
- background: url(images/menu-bg.png);
73
  }
74
  #tabs #tabsList li:hover {
75
- background: url(images/menu-hover.png);
76
  }
77
  #tabs #tabsList .ui-state-active{
78
  background: #ffffff;
@@ -110,7 +110,13 @@
110
  border: 1px solid #CCCCCC;
111
  }
112
  #tabs .placementTab{
113
- background: #E1FD8F url(images/menu-bg-green.png) no-repeat center !important;
 
 
 
 
 
 
114
  }
115
 
116
  /* Sub tabs */
@@ -402,6 +408,11 @@
402
  height: auto;
403
  background: #FFFFFF;
404
  }
 
 
 
 
 
405
  .templateCont{
406
  display: none;
407
  }
@@ -663,20 +674,30 @@
663
  -moz-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
664
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
665
  background: #FFFFFF;
666
- width: 550px;
667
  }
668
- .wrap .introWrap .iBox{
669
- width:60%;
670
- float:left;
671
- border-right: 1px solid #e7e7e7;
672
- padding-right: 15px;
673
  }
674
- .wrap .introWrap .iSide{
675
  float:left;
676
- width: 30%;
677
- padding: 0px 0px 15px 15px;
678
  }
679
- .wrap .introWrap form{
 
 
 
 
 
 
 
 
 
 
 
 
680
  background: #FFFFE0;
681
  text-align: center;
682
  padding: 15px;
@@ -686,5 +707,7 @@
686
  clear: both;
687
  }
688
 
 
 
689
  /* Color Picker */
690
  div.color_picker{ height:16px; width:16px; padding:0 !important; border:1px solid #ccc; cursor:pointer; line-height:16px}div#color_selector{ width:110px; position:absolute; border:1px solid #000; background-color:#EFEFEF; padding:2px} div#color_custom{width:100%;float:left} div#color_custom label{font-size:95%;color:#2F2F2F;margin:5px 2px;width:25%} div#color_custom input{margin:5px 2px;padding:0;font-size:95%;border:1px solid #000;width:65%}div.color_swatch{ height:12px; width:12px; border:1px solid #000; margin:2px; float:left; cursor:pointer; line-height:12px}
1
  /*
2
  * Admin Page CSS for WP Socializer plugin
3
  * Author : Aakash Chakravarthy
4
+ * Version : 1.1
5
  */
6
 
7
  .wrap{
69
  margin: -1px 0px 0px;
70
  border-top: 1px solid #d4d4d4;
71
  border-bottom: 1px solid #D4D4D4;
72
+ background: #F2F2F2 url(images/menu-bg.png) repeat-x;
73
  }
74
  #tabs #tabsList li:hover {
75
+ background: #FE9D0B url(images/menu-hover.png) repeat-x !important;
76
  }
77
  #tabs #tabsList .ui-state-active{
78
  background: #ffffff;
110
  border: 1px solid #CCCCCC;
111
  }
112
  #tabs .placementTab{
113
+ background: #E1FD8F url(images/menu-bg-green.png) no-repeat center top!important;
114
+ }
115
+ #tabs #tabsList .info{
116
+ margin: 0px 0px 0px 20px;
117
+ }
118
+ #tabs .tabGroup{
119
+ margin: 20px 10px;
120
  }
121
 
122
  /* Sub tabs */
408
  height: auto;
409
  background: #FFFFFF;
410
  }
411
+ .notice{
412
+ background: #FFFFEC;
413
+ border: 1px solid #FFCC66;
414
+ padding: 10px;
415
+ }
416
  .templateCont{
417
  display: none;
418
  }
674
  -moz-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
675
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
676
  background: #FFFFFF;
677
+ width: 650px;
678
  }
679
+ .wrap .introWrap .iShare{
680
+ background: #FBFBFB;
681
+ margin: 10px 0px 10px;
682
+ padding: 15px 20px 5px;
683
+ border: 1px solid #e7e7e7;
684
  }
685
+ .wrap .introWrap .iShare li{
686
  float:left;
 
 
687
  }
688
+ .wrap .introWrap .iContent h4{
689
+ margin: 0px 0px 10px;
690
+ }
691
+ .wrap .introWrap .iContent p, .iContent ol li, .iContent ul li,{
692
+ font-size: 15px !important;
693
+ }
694
+ .wrap .irefLinks{
695
+ font-size: 15px;
696
+ }
697
+ .wrap .pointer{
698
+ cursor: pointer;
699
+ }
700
+ .wrap .introWrap .iForm{
701
  background: #FFFFE0;
702
  text-align: center;
703
  padding: 15px;
707
  clear: both;
708
  }
709
 
710
+ .clearfix:after{visibility:hidden;display:block;font-size:0;content:"";clear:both;height:0}.clearfix{display:inline-block}.clearfix{display:block;zoom:1}
711
+
712
  /* Color Picker */
713
  div.color_picker{ height:16px; width:16px; padding:0 !important; border:1px solid #ccc; cursor:pointer; line-height:16px}div#color_selector{ width:110px; position:absolute; border:1px solid #000; background-color:#EFEFEF; padding:2px} div#color_custom{width:100%;float:left} div#color_custom label{font-size:95%;color:#2F2F2F;margin:5px 2px;width:25%} div#color_custom input{margin:5px 2px;padding:0;font-size:95%;border:1px solid #000;width:65%}div.color_swatch{ height:12px; width:12px; border:1px solid #000; margin:2px; float:left; cursor:pointer; line-height:12px}
admin/wpsr-admin-js.js CHANGED
@@ -235,6 +235,10 @@ $j(document).ready(function(){
235
  $j('.donatePopup').fadeIn();
236
  });
237
 
 
 
 
 
238
  $j('.mBox').prepend('<span class="popClose">x</span>');
239
 
240
  // Intro box
235
  $j('.donatePopup').fadeIn();
236
  });
237
 
238
+ $j('.toggleNext').live('click', function(){
239
+ $j(this).next().slideToggle();
240
+ });
241
+
242
  $j('.mBox').prepend('<span class="popClose">x</span>');
243
 
244
  // Intro box
admin/wpsr-admin-other.php CHANGED
@@ -60,7 +60,8 @@ function wpsr_admin_page_other(){
60
  </tbody>
61
  </table>
62
 
63
- <small class="smallText"><?php _e('These shortcodes have several parameters. You can use them to customize the buttons. View the parameters in this page.', 'wpsr'); ?></small>
 
64
 
65
  <h2>In widgets</h2>
66
  <p><?php _e('You must use the above shortcodes in', 'wpsr'); ?> <a href="http://www.aakashweb.com/wordpress-plugins/html-javascript-adder/" target="_blank">HTML Javascript adder</a> <a href="#note" onclick="javascript:$j('.hjaNote').addClass('updated');">(?)</a> <?php _e('plugin to insert the buttons in the widgets.', 'wpsr'); ?></p>
60
  </tbody>
61
  </table>
62
 
63
+ <small class="smallText"><?php _e('These shortcodes have several parameters. You can use them to customize the buttons. View the parameters in this page.', 'wpsr'); ?>
64
+ <a href="http://www.aakashweb.com/docs/wp-socializer-docs/function-reference/" target="_blank">Refer the Parameters here.</a></small>
65
 
66
  <h2>In widgets</h2>
67
  <p><?php _e('You must use the above shortcodes in', 'wpsr'); ?> <a href="http://www.aakashweb.com/wordpress-plugins/html-javascript-adder/" target="_blank">HTML Javascript adder</a> <a href="#note" onclick="javascript:$j('.hjaNote').addClass('updated');">(?)</a> <?php _e('plugin to insert the buttons in the widgets.', 'wpsr'); ?></p>
admin/wpsr-admin.php CHANGED
@@ -144,12 +144,12 @@ echo
144
 
145
  <li class="parentLi btn">Headings
146
  <ul bxid="' . $id . '">
147
- <li openTag="<h1>" closeTag="</h1>">Heading 1</li>
148
- <li openTag="<h2>" closeTag="</h2>">Heading 2</li>
149
- <li openTag="<h3>" closeTag="</h3>">Heading 3</li>
150
- <li openTag="<h4>" closeTag="</h4>">Heading 4</li>
151
- <li openTag="<h5>" closeTag="</h5>">Heading 5</li>
152
- <li openTag="<h6>" closeTag="</h6>">Heading 6</li>
153
  </ul>
154
  </li>
155
 
@@ -163,14 +163,14 @@ echo
163
  </ul>
164
 
165
  <ul class="tbButtons" bxid="' . $id . '">
166
- <li class="btn" openTag="<p>" closeTag="</p>">p</li>
167
- <li class="btn" openTag="</br>">br</li>
168
- <li class="btn" openTag="<span>" closeTag="</span>">span</li>
169
- <li class="btn" openTag="<div>" closeTag="</div>">div</li>
170
- <li class="btn" openTag="</hr>">hr</li>
171
- <li class="btn" openTag="<ul>" closeTag="</ul>">ul</li>
172
- <li class="btn" openTag="<li>" closeTag="</li>">li</li>
173
- <li class="btn" openTag=\'<div style="clear: both"></div>\'>clearer</li>
174
  <li class="btn"><a href="http://www.aakashweb.com/wordpress-plugins/wp-socializer/" title="Help" target="_blank">?</a></li>
175
  </ul>
176
  </div>';
@@ -671,12 +671,11 @@ function wpsr_admin_page(){
671
 
672
  ?>
673
 
674
- <!----------------------------------------------------------------------------------->
675
  <?php if(wpsr_show_admin() == 1): ?>
676
  <!-- Main ADMIN page -->
677
  <div class="wrap">
678
 
679
- <div id="tabs">
680
 
681
  <div class="header">
682
  <div class="headerTitle"><h2><img width="32" height="32" src="<?php echo WPSR_ADMIN_URL; ?>images/wp-socializer.png" align="absmiddle"/>&nbsp;WP Socializer<span class="smallText"> v<?php echo WPSR_VERSION; ?><?php echo $wpsr_is_disabled; ?></span></h2></div>
@@ -725,7 +724,11 @@ function wpsr_admin_page(){
725
  </div>
726
 
727
  <ul id="tabsList">
728
- <li><a href="#tab-1"><span class='admSprites oneclickIcon'></span>One click</a></li>
 
 
 
 
729
  <li><a href="#tab-2"><span class='admSprites socialButtons'></span>Social Buttons</a></li>
730
  <li><a href="#tab-3"><span class='admSprites addthisIcon'></span>Addthis</a></li>
731
  <li><a href="#tab-4"><span class='admSprites sharethisIcon'></span>Sharethis</a></li>
@@ -733,10 +736,12 @@ function wpsr_admin_page(){
733
  <li><a href="#tab-6"><span class='admSprites retweetIcon'></span>Retweet &amp; Digg</a></li>
734
  <li><a href="#tab-7"><span class='admSprites facebookIcon'></span>Facebook</a></li>
735
  <li><a href="#tab-8"><span class='admSprites customIcon'></span>Custom</a></li>
736
- <li class="placementTab"><a href="#tab-9"><span class='admSprites placementIcon'></span>Placement</a></li>
 
 
737
  <li><a href="#tab-10"><span class='admSprites settingsIcon'></span><?php _e('Settings', 'wpsr'); ?></a></li>
738
 
739
- <div class="tabSep"></div>
740
 
741
  <li><a class="outLink" rel="http://www.aakashweb.com/docs/wp-socializer-docs/"><span class='admSprites documentationIcon'></span><?php _e('Documentation', 'wpsr'); ?></a></li>
742
  <li><a class="outLink" rel="http://www.aakashweb.com/forum/"><span class='admSprites supportIcon'></span><?php _e('Support', 'wpsr'); ?></a></li>
@@ -758,7 +763,7 @@ function wpsr_admin_page(){
758
  <!-- End hidden elements -->
759
 
760
  <form method="post">
761
-
762
  <div id="tab-1" class="tabContent">
763
  <h4>One click setup</h4>
764
  <div class="templatesList">
@@ -767,7 +772,6 @@ function wpsr_admin_page(){
767
  </div>
768
  <a href="http://www.aakashweb.com/docs/wp-socializer-docs/creating-a-custom-template/" target="_blank"><?php _e('Create a template', 'wpsr'); ?></a> | <a href="http://www.aakashweb.com/docs/wp-socializer-docs/creating-a-custom-template/" target="_blank"><?php _e('Submit a template', 'wpsr'); ?></a>
769
  </div>
770
- <!--ONE CLICK -->
771
 
772
  <!-- SOCIAL BTS -->
773
  <div id="tab-2" class="tabContent">
@@ -794,7 +798,7 @@ function wpsr_admin_page(){
794
 
795
  echo
796
  "\n<li>" .
797
- '<img src="' . $spriteMaskImage16px . '" alt="' . $sitename . '" style="background-position:' . $finalSprites . '">' .
798
  '<span class="sb_name">' . $sitename . '</span>' .
799
  '<span class="sb_add16px">16</span>';
800
 
@@ -809,7 +813,6 @@ function wpsr_admin_page(){
809
 
810
  <div style="float:right; width:30%">
811
  <h4><?php _e('Selected buttons', 'wpsr'); ?> | 16px </h4>
812
-
813
  <ul class="wpsr_socialbt_selected_list" id="wpsr_socialbt_selected_list_16px">
814
  <?php
815
  $wpsr_socialbt_splited16px = explode(',', $wpsr_socialbt_selected16px);
@@ -834,7 +837,6 @@ function wpsr_admin_page(){
834
 
835
  ?>
836
  </ul>
837
-
838
  </div>
839
 
840
  <span style="clear:both; display:block"></span>
@@ -943,7 +945,6 @@ function wpsr_admin_page(){
943
  </div>
944
 
945
  <h4><?php _e('Buttons', 'wpsr'); ?> <?php wpsr_addcodeico('{addthis-bt}'); ?></h4>
946
-
947
  <div class="section">
948
  <table width="100%" height="42" border="0">
949
  <tr>
@@ -957,7 +958,6 @@ function wpsr_admin_page(){
957
  </div>
958
 
959
  <h4><?php _e('Optional button Settings', 'wpsr'); ?></h4>
960
-
961
  <div class="section">
962
  <table width="100%" border="0">
963
  <tr>
@@ -1062,9 +1062,9 @@ function wpsr_admin_page(){
1062
 
1063
  <!-- GOOGLE BUZZ PAGE -->
1064
  <div id="tab-5" class="tabContent">
1065
-
1066
- <h4><?php _e('Post to Buzz button', 'wpsr'); ?><?php wpsr_addcodeico('{buzz-post}'); ?></h4>
1067
 
 
1068
  <div class="section">
1069
  <table width="100%" height="181" border="0">
1070
  <tr>
@@ -1091,7 +1091,6 @@ function wpsr_admin_page(){
1091
  </div>
1092
 
1093
  <h4><?php _e('Follow on Buzz button', 'wpsr'); ?><?php wpsr_addcodeico('{buzz-follow}'); ?></h4>
1094
-
1095
  <div class="section">
1096
  <table width="100%" border="0">
1097
  <tr>
@@ -1111,7 +1110,6 @@ function wpsr_admin_page(){
1111
  <div id="tab-6" class="tabContent">
1112
 
1113
  <h4><?php _e('General', 'wpsr'); ?><?php wpsr_addcodeico('{retweet-bt}'); ?></h4>
1114
-
1115
  <div class="section">
1116
  <table width="100%" height="76" border="0">
1117
  <tr>
@@ -1130,7 +1128,6 @@ function wpsr_admin_page(){
1130
  </div>
1131
 
1132
  <h4><?php _e('Choose a service', 'wpsr'); ?></h4>
1133
-
1134
  <div class="section">
1135
  <table width="100%" border="0">
1136
  <tr>
@@ -1255,7 +1252,9 @@ function wpsr_admin_page(){
1255
  </tr>
1256
  </table>
1257
  </div>
1258
-
 
 
1259
  <h4><?php _e('Share Button', 'wpsr'); ?><?php wpsr_addcodeico('{facebook-share}'); ?></h4>
1260
  <div class="section">
1261
  <table width="100%" height="121" border="0">
@@ -1302,14 +1301,16 @@ function wpsr_admin_page(){
1302
  <!-- TEMPLATE PAGE -->
1303
  <div id="tab-9" class="tabContent">
1304
 
 
 
1305
  <div class="subTabs">
1306
  <ul class="subTabList">
1307
  <li><a href="#sub-tab-1"><?php _e('Template 1', 'wpsr'); ?></a></li>
1308
  <li><a href="#sub-tab-2"><?php _e('Template 2', 'wpsr'); ?></a></li>
1309
  </ul>
1310
 
1311
- <div id="sub-tab-1" class="subTabContent">
1312
- <div class="section">
1313
 
1314
  <div class="templateInfo"><?php _e('Use the menu below to insert the buttons into the template', 'wpsr'); ?><br />
1315
  <?php _e('All HTML/CSS tags can be used. The button codes can be wrapped with HTML tags for proper aligning.', 'wpsr'); ?>
@@ -1367,17 +1368,16 @@ function wpsr_admin_page(){
1367
  <td>&nbsp;</td>
1368
  </tr>
1369
  </table>
1370
- </div>
1371
 
1372
- </div>
1373
- </div>
1374
-
1375
- <div id="sub-tab-2" class="subTabContent">
1376
 
 
1377
  <div class="section">
1378
 
1379
- <div class="templateInfo"><?php _e('Use the menu below to insert the buttons into the template', 'wpsr'); ?><br />
1380
- <?php _e('All HTML/CSS tags can be used. The button codes can be wrapped with HTML tags for proper aligning.', 'wpsr'); ?>
1381
  </div>
1382
 
1383
  <div class="toolbarWrap">
@@ -1430,12 +1430,12 @@ function wpsr_admin_page(){
1430
  <td>&nbsp;</td>
1431
  </tr>
1432
  </table>
1433
- </div>
1434
 
1435
  </div><!-- Section -->
 
1436
 
1437
- </div>
1438
- </div>
1439
 
1440
  <div class="smallText"><strong><?php _e('FAQ', 'wpsr'); ?>:</strong> <a href="http://www.aakashweb.com/faqs/wordpress-plugins/wp-socializer/" target="_blank"><?php _e('Why sometimes the buttons are not aligned properly in the page ?', 'wpsr'); ?></a></div>
1441
 
@@ -1517,23 +1517,22 @@ function wpsr_admin_page(){
1517
  <div class="footer">
1518
  <input class="button-primary" type="submit" name="wpsr_submit" id="wpsr_submit" value=" <?php _e('Update', 'wpsr'); ?> " />
1519
  <span class="button wpsr_reset_trigger" style="float:right">&nbsp;&nbsp;<?php _e('Reset all', 'wpsr'); ?>&nbsp;&nbsp;</span>
1520
- </div>
1521
 
1522
  <span class="wpsr_reset_confirm">
1523
- <input class="button" type="submit" name="wpsr_reset" id="wpsr_reset" value=" <?php _e('Sure', 'wpsr'); ?> " /> | <a class="button wpsr_reset_cancel"> <?php _e('Cancel', 'wpsr'); ?> </a></span>
1524
-
1525
  </form>
 
1526
  </div><!-- Tabs -->
1527
 
1528
- <div class="credits">
1529
- <a href="http://www.aakashweb.com/" title="Aakash Web" target="_blank"><?php _e('a Aakash Web plugin', 'wpsr'); ?></a>
1530
- </div>
1531
 
1532
  </div><!-- Wrap -->
1533
  <?php endif; ?>
1534
 
1535
- <!----------------------------------------------------------------------->
1536
-
1537
  <?php if(wpsr_show_admin() == 0): ?>
1538
  <!-- Version Intro -->
1539
  <div class="wrap">
@@ -1541,30 +1540,26 @@ function wpsr_admin_page(){
1541
  <span class="blogUrl" style="display:none"><?php echo get_option('siteurl'); ?></span>
1542
 
1543
  <div class="introWrap">
 
 
 
1544
  <h2><img width="32" height="32" src="<?php echo WPSR_ADMIN_URL; ?>images/wp-socializer.png" align="absmiddle"/> WP Socializer <sup><span class="smallText">v<?php echo WPSR_VERSION; ?></span></sup></h2>
1545
- <hr />
1546
  <div class="iBox">
1547
- <p class="iContent"><img src="<?php echo WPSR_ADMIN_URL . 'images/load.gif'; ?>" /></p>
 
 
 
 
 
 
 
 
 
 
1548
 
1549
- <p><a href="admin.php?page=wp_socializer_other">In Widgets</a> | <a href="admin.php?page=wp_socializer_other" target="_blank">In Posts</a> | <a href="http://www.aakashweb.com/docs/wp-socializer-docs/manual-placement/" target="_blank"><?php _e('Manual Placement', 'wpsr'); ?></a></p>
1550
- <p><a href="http://www.aakashweb.com/wordpress-plugins/wp-socializer/" target="_blank"><?php _e('Full Features', 'wpsr'); ?></a> | <a href="http://www.aakashweb.com/docs/wp-socializer-docs/" target="_blank"><?php _e('Documentation', 'wpsr'); ?></a> | <a href="http://www.aakashweb.com/forum/" target="_blank"><?php _e('Support', 'wpsr'); ?></a></p>
1551
- <p><a href="http://www.aakashweb.com/forum/" target="_blank"><?php _e('Bug Report', 'wpsr'); ?></a> | <a href="http://www.aakashweb.com/wordpress-plugins/wp-socializer/#videos-tab" target="_blank"><?php _e('Video Demo & Tutorials', 'wpsr'); ?></a></p>
1552
- </div>
1553
- <div class="iSide">
1554
- <h5><?php _e('Share this plugin', 'wpsr'); ?></h5>
1555
- <p><ul>
1556
- <li><?php echo wpsr_admin_buttons('fb'); ?></li>
1557
- <li><?php echo wpsr_admin_buttons('twitter'); ?></li>
1558
- <li><?php echo wpsr_admin_buttons('+1'); ?></li>
1559
- <li><?php echo wpsr_admin_buttons('at'); ?></li>
1560
- </ul></p>
1561
- <h5><?php _e('Support this plugin', 'wpsr'); ?></h5>
1562
- <p><ul>
1563
- <li><a href="http://bit.ly/wpsrDonate" target="_blank"><?php _e('Donate with PayPal!', 'wpsr'); ?></a></li>
1564
- <li><a href="http://feeds2.feedburner.com/AakashWeb" target="_blank"><?php _e('Subscribe to Updates', 'wpsr'); ?></a></li>
1565
- </ul></p>
1566
  </div>
1567
- <form method="post">
 
1568
  <input class="button-primary" type="submit" name="wpsr_intro_submit" id="wpsr_intro_submit" value=" <?php _e('Start using WP Socializer', 'wpsr'); echo ' v' . WPSR_VERSION; ?> " />
1569
  </form>
1570
  </div>
@@ -1577,7 +1572,7 @@ function wpsr_admin_page(){
1577
  function wpsr_admin_buttons($type){
1578
  switch($type){
1579
  case 'fb':
1580
- return '<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FAakash-Web%2F102453489826234&amp;layout=button_count&amp;show_faces=true&amp;width=48&amp;action=like&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:75px; height:21px;" allowTransparency="true"></iframe>';
1581
  break;
1582
 
1583
  case '+1':
144
 
145
  <li class="parentLi btn">Headings
146
  <ul bxid="' . $id . '">
147
+ <li openTag="&lt;h1&gt;" closeTag="&lt;/h1&gt;">Heading 1</li>
148
+ <li openTag="&lt;h2&gt;" closeTag="&lt;/h2&gt;">Heading 2</li>
149
+ <li openTag="&lt;h3&gt;" closeTag="&lt;/h3&gt;">Heading 3</li>
150
+ <li openTag="&lt;h4&gt;" closeTag="&lt;/h4&gt;">Heading 4</li>
151
+ <li openTag="&lt;h5&gt;" closeTag="&lt;/h5&gt;">Heading 5</li>
152
+ <li openTag="&lt;h6&gt;" closeTag="&lt;/h6&gt;">Heading 6</li>
153
  </ul>
154
  </li>
155
 
163
  </ul>
164
 
165
  <ul class="tbButtons" bxid="' . $id . '">
166
+ <li class="btn" openTag="&lt;p&gt;" closeTag="&lt;/p&gt;">p</li>
167
+ <li class="btn" openTag="&lt;/br&gt;">br</li>
168
+ <li class="btn" openTag="&lt;span&gt;" closeTag="&lt;/span&gt;">span</li>
169
+ <li class="btn" openTag="&lt;div&gt;" closeTag="&lt;/div&gt;">div</li>
170
+ <li class="btn" openTag="&lt;/hr&gt;">hr</li>
171
+ <li class="btn" openTag="&lt;ul&gt;" closeTag="&lt;/ul&gt;">ul</li>
172
+ <li class="btn" openTag="&lt;li&gt;" closeTag="&lt;/li&gt;">li</li>
173
+ <li class="btn" openTag="&lt;div style=&quot;clear: both&quot;&gt;&lt;/div&gt;">clearer</li>
174
  <li class="btn"><a href="http://www.aakashweb.com/wordpress-plugins/wp-socializer/" title="Help" target="_blank">?</a></li>
175
  </ul>
176
  </div>';
671
 
672
  ?>
673
 
 
674
  <?php if(wpsr_show_admin() == 1): ?>
675
  <!-- Main ADMIN page -->
676
  <div class="wrap">
677
 
678
+ <div id="tabs">
679
 
680
  <div class="header">
681
  <div class="headerTitle"><h2><img width="32" height="32" src="<?php echo WPSR_ADMIN_URL; ?>images/wp-socializer.png" align="absmiddle"/>&nbsp;WP Socializer<span class="smallText"> v<?php echo WPSR_VERSION; ?><?php echo $wpsr_is_disabled; ?></span></h2></div>
724
  </div>
725
 
726
  <ul id="tabsList">
727
+ <li><a href="#tab-1"><span class='admSprites oneclickIcon'></span>One click<br/>
728
+ <small class="info">Select inbuilt templates</small></a></li>
729
+
730
+ <h5 class="tabGroup">Customize buttons below</h5>
731
+
732
  <li><a href="#tab-2"><span class='admSprites socialButtons'></span>Social Buttons</a></li>
733
  <li><a href="#tab-3"><span class='admSprites addthisIcon'></span>Addthis</a></li>
734
  <li><a href="#tab-4"><span class='admSprites sharethisIcon'></span>Sharethis</a></li>
736
  <li><a href="#tab-6"><span class='admSprites retweetIcon'></span>Retweet &amp; Digg</a></li>
737
  <li><a href="#tab-7"><span class='admSprites facebookIcon'></span>Facebook</a></li>
738
  <li><a href="#tab-8"><span class='admSprites customIcon'></span>Custom</a></li>
739
+ <li class="placementTab"><a href="#tab-9"><span class='admSprites placementIcon'></span>Placement<br/>
740
+ <small class="info">Place buttons in this tab</small></a>
741
+ </li>
742
  <li><a href="#tab-10"><span class='admSprites settingsIcon'></span><?php _e('Settings', 'wpsr'); ?></a></li>
743
 
744
+ <h5 class="tabGroup">Links</h5>
745
 
746
  <li><a class="outLink" rel="http://www.aakashweb.com/docs/wp-socializer-docs/"><span class='admSprites documentationIcon'></span><?php _e('Documentation', 'wpsr'); ?></a></li>
747
  <li><a class="outLink" rel="http://www.aakashweb.com/forum/"><span class='admSprites supportIcon'></span><?php _e('Support', 'wpsr'); ?></a></li>
763
  <!-- End hidden elements -->
764
 
765
  <form method="post">
766
+ <!--ONE CLICK -->
767
  <div id="tab-1" class="tabContent">
768
  <h4>One click setup</h4>
769
  <div class="templatesList">
772
  </div>
773
  <a href="http://www.aakashweb.com/docs/wp-socializer-docs/creating-a-custom-template/" target="_blank"><?php _e('Create a template', 'wpsr'); ?></a> | <a href="http://www.aakashweb.com/docs/wp-socializer-docs/creating-a-custom-template/" target="_blank"><?php _e('Submit a template', 'wpsr'); ?></a>
774
  </div>
 
775
 
776
  <!-- SOCIAL BTS -->
777
  <div id="tab-2" class="tabContent">
798
 
799
  echo
800
  "\n<li>" .
801
+ '<img src="' . $spriteMaskImage16px . '" alt="' . $sitename . '" style="background-position:' . $finalSprites . '" />' .
802
  '<span class="sb_name">' . $sitename . '</span>' .
803
  '<span class="sb_add16px">16</span>';
804
 
813
 
814
  <div style="float:right; width:30%">
815
  <h4><?php _e('Selected buttons', 'wpsr'); ?> | 16px </h4>
 
816
  <ul class="wpsr_socialbt_selected_list" id="wpsr_socialbt_selected_list_16px">
817
  <?php
818
  $wpsr_socialbt_splited16px = explode(',', $wpsr_socialbt_selected16px);
837
 
838
  ?>
839
  </ul>
 
840
  </div>
841
 
842
  <span style="clear:both; display:block"></span>
945
  </div>
946
 
947
  <h4><?php _e('Buttons', 'wpsr'); ?> <?php wpsr_addcodeico('{addthis-bt}'); ?></h4>
 
948
  <div class="section">
949
  <table width="100%" height="42" border="0">
950
  <tr>
958
  </div>
959
 
960
  <h4><?php _e('Optional button Settings', 'wpsr'); ?></h4>
 
961
  <div class="section">
962
  <table width="100%" border="0">
963
  <tr>
1062
 
1063
  <!-- GOOGLE BUZZ PAGE -->
1064
  <div id="tab-5" class="tabContent">
1065
+ <p class="notice"><strong>Note:</strong> Google Buzz will shutdown in a Week. <a href="http://googleblog.blogspot.com/2011/10/fall-sweep.html" target="_blank">Source</a></p>
 
1066
 
1067
+ <h4><?php _e('Post to Buzz button', 'wpsr'); ?><?php wpsr_addcodeico('{buzz-post}'); ?></h4>
1068
  <div class="section">
1069
  <table width="100%" height="181" border="0">
1070
  <tr>
1091
  </div>
1092
 
1093
  <h4><?php _e('Follow on Buzz button', 'wpsr'); ?><?php wpsr_addcodeico('{buzz-follow}'); ?></h4>
 
1094
  <div class="section">
1095
  <table width="100%" border="0">
1096
  <tr>
1110
  <div id="tab-6" class="tabContent">
1111
 
1112
  <h4><?php _e('General', 'wpsr'); ?><?php wpsr_addcodeico('{retweet-bt}'); ?></h4>
 
1113
  <div class="section">
1114
  <table width="100%" height="76" border="0">
1115
  <tr>
1128
  </div>
1129
 
1130
  <h4><?php _e('Choose a service', 'wpsr'); ?></h4>
 
1131
  <div class="section">
1132
  <table width="100%" border="0">
1133
  <tr>
1252
  </tr>
1253
  </table>
1254
  </div>
1255
+
1256
+ <p class="notice"><strong>Note:</strong> The Facebook share button has been deprecated. Try using the like button. <a href="https://developers.facebook.com/docs/share/" target="_blank">Source</a></p>
1257
+
1258
  <h4><?php _e('Share Button', 'wpsr'); ?><?php wpsr_addcodeico('{facebook-share}'); ?></h4>
1259
  <div class="section">
1260
  <table width="100%" height="121" border="0">
1301
  <!-- TEMPLATE PAGE -->
1302
  <div id="tab-9" class="tabContent">
1303
 
1304
+ <p class="notice">If you want to edit or use an already made template, then select it from the "<strong>One click</strong>" tab</p>
1305
+
1306
  <div class="subTabs">
1307
  <ul class="subTabList">
1308
  <li><a href="#sub-tab-1"><?php _e('Template 1', 'wpsr'); ?></a></li>
1309
  <li><a href="#sub-tab-2"><?php _e('Template 2', 'wpsr'); ?></a></li>
1310
  </ul>
1311
 
1312
+ <div id="sub-tab-1" class="subTabContent">
1313
+ <div class="section">
1314
 
1315
  <div class="templateInfo"><?php _e('Use the menu below to insert the buttons into the template', 'wpsr'); ?><br />
1316
  <?php _e('All HTML/CSS tags can be used. The button codes can be wrapped with HTML tags for proper aligning.', 'wpsr'); ?>
1368
  <td>&nbsp;</td>
1369
  </tr>
1370
  </table>
1371
+ </div><!-- Placement Options -->
1372
 
1373
+ </div><!-- Section -->
1374
+ </div><!-- Sub tab 1 -->
 
 
1375
 
1376
+ <div id="sub-tab-2" class="subTabContent">
1377
  <div class="section">
1378
 
1379
+ <div class="templateInfo"><?php _e('Use the menu below to insert the buttons into the template', 'wpsr'); ?><br />
1380
+ <?php _e('All HTML/CSS tags can be used. The button codes can be wrapped with HTML tags for proper aligning.', 'wpsr'); ?>
1381
  </div>
1382
 
1383
  <div class="toolbarWrap">
1430
  <td>&nbsp;</td>
1431
  </tr>
1432
  </table>
1433
+ </div><!-- Placement Options -->
1434
 
1435
  </div><!-- Section -->
1436
+ </div><!-- Sub tab 2 -->
1437
 
1438
+ </div><!-- Sub tabs -->
 
1439
 
1440
  <div class="smallText"><strong><?php _e('FAQ', 'wpsr'); ?>:</strong> <a href="http://www.aakashweb.com/faqs/wordpress-plugins/wp-socializer/" target="_blank"><?php _e('Why sometimes the buttons are not aligned properly in the page ?', 'wpsr'); ?></a></div>
1441
 
1517
  <div class="footer">
1518
  <input class="button-primary" type="submit" name="wpsr_submit" id="wpsr_submit" value=" <?php _e('Update', 'wpsr'); ?> " />
1519
  <span class="button wpsr_reset_trigger" style="float:right">&nbsp;&nbsp;<?php _e('Reset all', 'wpsr'); ?>&nbsp;&nbsp;</span>
1520
+ </div><!-- Footer -->
1521
 
1522
  <span class="wpsr_reset_confirm">
1523
+ <input class="button" type="submit" name="wpsr_reset" id="wpsr_reset" value=" <?php _e('Sure', 'wpsr'); ?> " /> | <a class="button wpsr_reset_cancel"> <?php _e('Cancel', 'wpsr'); ?> </a>
1524
+ </span>
1525
  </form>
1526
+
1527
  </div><!-- Tabs -->
1528
 
1529
+ <div class="credits">
1530
+ <a href="http://www.aakashweb.com/" title="Aakash Web" target="_blank"><?php _e('a Aakash Web plugin', 'wpsr'); ?></a>
1531
+ </div><!-- Credits -->
1532
 
1533
  </div><!-- Wrap -->
1534
  <?php endif; ?>
1535
 
 
 
1536
  <?php if(wpsr_show_admin() == 0): ?>
1537
  <!-- Version Intro -->
1538
  <div class="wrap">
1540
  <span class="blogUrl" style="display:none"><?php echo get_option('siteurl'); ?></span>
1541
 
1542
  <div class="introWrap">
1543
+ <form method="post">
1544
+ <input class="button-primary alignright" style="margin-top:20px" type="submit" name="wpsr_intro_submit" id="wpsr_intro_submit" value=" <?php _e('Start using WP Socializer', 'wpsr'); echo ' v' . WPSR_VERSION; ?> " />
1545
+ </form>
1546
  <h2><img width="32" height="32" src="<?php echo WPSR_ADMIN_URL; ?>images/wp-socializer.png" align="absmiddle"/> WP Socializer <sup><span class="smallText">v<?php echo WPSR_VERSION; ?></span></sup></h2>
 
1547
  <div class="iBox">
1548
+
1549
+ <ul class="iShare clearfix">
1550
+ <li><?php echo wpsr_admin_buttons('fb'); ?></li>
1551
+ <li><?php echo wpsr_admin_buttons('twitter'); ?></li>
1552
+ <li><?php echo wpsr_admin_buttons('+1'); ?></li>
1553
+ <li><?php echo wpsr_admin_buttons('at'); ?></li>
1554
+ </ul>
1555
+
1556
+ <div class="iContent"><img src="<?php echo WPSR_ADMIN_URL . 'images/load.gif'; ?>" /></div>
1557
+
1558
+ <p class="irefLinks"><b><a href="http://www.aakashweb.com/wordpress-plugins/wp-socializer/" target="_blank"><?php _e('Full Features', 'wpsr'); ?></a> | <a href="http://www.aakashweb.com/docs/wp-socializer-docs/" target="_blank"><?php _e('Documentation', 'wpsr'); ?></a> | <a href="http://www.aakashweb.com/forum/" target="_blank"><?php _e('Support', 'wpsr'); ?></a> | <a href="http://www.aakashweb.com/forum/" target="_blank"><?php _e('Bug Report', 'wpsr'); ?></a> | <a href="http://www.aakashweb.com/wordpress-plugins/wp-socializer/#videos-tab" target="_blank"><?php _e('Video Demo & Tutorials', 'wpsr'); ?></a></b></p>
1559
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1560
  </div>
1561
+
1562
+ <form class="iForm" method="post">
1563
  <input class="button-primary" type="submit" name="wpsr_intro_submit" id="wpsr_intro_submit" value=" <?php _e('Start using WP Socializer', 'wpsr'); echo ' v' . WPSR_VERSION; ?> " />
1564
  </form>
1565
  </div>
1572
  function wpsr_admin_buttons($type){
1573
  switch($type){
1574
  case 'fb':
1575
+ return '<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FAakash-Web%2F102453489826234&amp;layout=button_count&amp;show_faces=true&amp;width=48&amp;action=like&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:21px;" allowTransparency="true"></iframe>';
1576
  break;
1577
 
1578
  case '+1':
includes/wpsr-sharethis.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Sharethis buttons Processor code for WP Socializer Plugin
4
- * Version : 2.0
5
  * Author : Aakash Chakravarthy
6
  */
7
 
@@ -79,7 +79,7 @@ function wpsr_sharethis($args = ''){
79
  $services_split = explode(',', $services);
80
  }
81
 
82
- $title = urlencode($title);
83
  $url = urlencode($url);
84
 
85
  if($addp == 1){
1
  <?php
2
  /*
3
  * Sharethis buttons Processor code for WP Socializer Plugin
4
+ * Version : 2.1
5
  * Author : Aakash Chakravarthy
6
  */
7
 
79
  $services_split = explode(',', $services);
80
  }
81
 
82
+ // $title = urlencode($title); (fix v2.1)
83
  $url = urlencode($url);
84
 
85
  if($addp == 1){
public/css/wp-socializer-buttons-css.css CHANGED
@@ -1,5 +1,5 @@
1
  /*
2
- * WP Socializer Social buttons - CSS File - v2.0
3
  * Author: Aakash Chakravarthy
4
  */
5
 
@@ -15,7 +15,6 @@
15
  }
16
  .wp-socializer ul li {
17
  background: none;
18
- /*display: inline !important;*/
19
  list-style-type: none !important;
20
  margin: 0px 5px 5px 0px;
21
  padding: 0px;
@@ -29,6 +28,7 @@
29
  vertical-align:middle;
30
  margin: 0px 5px 0px 0px !important;
31
  padding: 0px !important;
 
32
  }
33
  .wp-socializer-single{
34
  margin-right: 10px;
1
  /*
2
+ * WP Socializer Social buttons - CSS File - v2.1
3
  * Author: Aakash Chakravarthy
4
  */
5
 
15
  }
16
  .wp-socializer ul li {
17
  background: none;
 
18
  list-style-type: none !important;
19
  margin: 0px 5px 5px 0px;
20
  padding: 0px;
28
  vertical-align:middle;
29
  margin: 0px 5px 0px 0px !important;
30
  padding: 0px !important;
31
+ max-width: none\9; /* IE max-width fix on v2.1 */
32
  }
33
  .wp-socializer-single{
34
  margin-right: 10px;
public/social-icons/16/Thumbs.db CHANGED
Binary file
public/social-icons/32/Thumbs.db CHANGED
Binary file
readme.txt CHANGED
@@ -4,20 +4,20 @@ Author URI: http://www.aakashweb.com/
4
  Plugin URI: http://www.aakashweb.com/wordpress-plugins/wp-socializer/
5
  Tags: social, social bookmarking, bookmarks, bookmarking, bookmarks menu, share, sharing, search, rss, post, posts, plugin, seo, page, pages, google, excerpt, content, bookmark, button, technorati, e-mail, email, gmail, Facebook, twitter, retweet, myspace, diigo, delicious, digg, buzz, google buzz, yahoo, reddit, dzone, Sphinn, addthis, template, socializer, sociable, wp, wordpress, sexy bookmarks
6
  Donate Link: http://bit.ly/wpsrDonate
7
- Requires at least: 3.0
8
- Tested up to: 3.2.x
9
- Stable tag: 2.0
10
 
11
- All in one plugin for inserting Social bookmarking buttons(105), Retweet, Google+1, Facebook, Digg, Addthis, Sharethis buttons in a Worpdress site.
12
 
13
  == Description ==
14
 
15
  WP Socializer is a advanced and powerful plugin for adding social bookmarking buttons, Retweet buttons, Google +1 buttons, Digg buttons, Addthis buttons, Facebook buttons anywhere in a WordPress site from posts to Widgets.
16
 
17
- A ultimate replacement to many plugins, being a all in one.
18
-
19
  [youtube="http://www.youtube.com/v/6AXCt13MXcU"]
20
 
 
 
21
  = Features =
22
 
23
  WP Socializer allows to insert 8 different types of social and sharing buttons. Those features are explained below. These buttons can be used either seperately or together.
@@ -54,6 +54,9 @@ WP Socializer allows to insert 8 different types of social and sharing buttons.
54
  * [Request a Feature](http://www.aakashweb.com/wordpress-plugins/wp-socializer/#respond)
55
  * [Donate](http://bit.ly/wpsrDonate)
56
 
 
 
 
57
  == Installation ==
58
 
59
  1. Upload `wp-socializer` to the `/wp-content/plugins/` directory
@@ -63,9 +66,6 @@ WP Socializer allows to insert 8 different types of social and sharing buttons.
63
  1. Use the corresponding button code in the placement template.
64
  1. That's all. Enjoy !
65
 
66
- = Using WP Socializer =
67
- [youtube="http://www.youtube.com/v/0G-joyseg7U"]
68
-
69
  * [Documentation](http://www.aakashweb.com/docs/wp-socializer-docs/)
70
 
71
  == Frequently Asked Questions ==
@@ -82,6 +82,14 @@ Frequently Asked Questions can be seen [here](http://www.aakashweb.com/faqs/word
82
 
83
  == Changelog ==
84
 
 
 
 
 
 
 
 
 
85
  = 2.0 =
86
  * Core code completely re-written for future supports and advancements.
87
  * Additional social bookmarking buttons are added.
4
  Plugin URI: http://www.aakashweb.com/wordpress-plugins/wp-socializer/
5
  Tags: social, social bookmarking, bookmarks, bookmarking, bookmarks menu, share, sharing, search, rss, post, posts, plugin, seo, page, pages, google, excerpt, content, bookmark, button, technorati, e-mail, email, gmail, Facebook, twitter, retweet, myspace, diigo, delicious, digg, buzz, google buzz, yahoo, reddit, dzone, Sphinn, addthis, template, socializer, sociable, wp, wordpress, sexy bookmarks
6
  Donate Link: http://bit.ly/wpsrDonate
7
+ Requires at least: 2.6
8
+ Tested up to: 3.3
9
+ Stable tag: 2.1
10
 
11
+ All in one plugin for inserting Social bookmarking buttons(105), Retweet, Google+1, Facebook, Digg, Addthis, Sharethis buttons in a WordPress site.
12
 
13
  == Description ==
14
 
15
  WP Socializer is a advanced and powerful plugin for adding social bookmarking buttons, Retweet buttons, Google +1 buttons, Digg buttons, Addthis buttons, Facebook buttons anywhere in a WordPress site from posts to Widgets.
16
 
 
 
17
  [youtube="http://www.youtube.com/v/6AXCt13MXcU"]
18
 
19
+ A ultimate replacement to many plugins, being a all in one.
20
+
21
  = Features =
22
 
23
  WP Socializer allows to insert 8 different types of social and sharing buttons. Those features are explained below. These buttons can be used either seperately or together.
54
  * [Request a Feature](http://www.aakashweb.com/wordpress-plugins/wp-socializer/#respond)
55
  * [Donate](http://bit.ly/wpsrDonate)
56
 
57
+ = Using WP Socializer =
58
+ [youtube="http://www.youtube.com/v/0G-joyseg7U"]
59
+
60
  == Installation ==
61
 
62
  1. Upload `wp-socializer` to the `/wp-content/plugins/` directory
66
  1. Use the corresponding button code in the placement template.
67
  1. That's all. Enjoy !
68
 
 
 
 
69
  * [Documentation](http://www.aakashweb.com/docs/wp-socializer-docs/)
70
 
71
  == Frequently Asked Questions ==
82
 
83
  == Changelog ==
84
 
85
+ = 2.1 =
86
+ * Admin Blank page error fixed in Firefox 3.6.x
87
+ * Encoded title fix for Sharethis buttons.
88
+ * Social buttons `max-width` bug fixed for IE 8.
89
+ * Fixed broken link in the admin bar.
90
+ * Updated the AW updates the notification widget.
91
+ * Added useful notices and informaion bars to the administration page for beginners.
92
+
93
  = 2.0 =
94
  * Core code completely re-written for future supports and advancements.
95
  * Additional social bookmarking buttons are added.
wp-socializer.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
  Plugin Name: WP Socializer
4
- Version: 2.0
5
  Plugin URI: http://www.aakashweb.com/
6
- Description: WP Socializer is an advanced and powerful plugin for adding bookmarking buttons like Addthis, Google +1, Digg, Retweet, Facebook like/share for posts.
7
  Author: Aakash Chakravarthy
8
  Author URI: http://www.aakashweb.com/
9
  */
@@ -14,7 +14,7 @@ if(!defined('WP_CONTENT_URL')) {
14
  $wpsr_url = WP_CONTENT_URL . '/plugins/' . plugin_basename(dirname(__FILE__)) . '/';
15
  }
16
 
17
- define('WPSR_VERSION', '2.0');
18
  define('WPSR_AUTHOR', 'Aakash Chakravarthy');
19
  define('WPSR_URL', $wpsr_url);
20
  define('WPSR_PUBLIC_URL', WPSR_URL . 'public/');
@@ -1517,12 +1517,10 @@ add_action('wp_footer', 'wpsr_footer');
1517
  ## Admin Dashboard
1518
  if(!function_exists('aw_dashboard')){
1519
  function aw_dashboard() {
1520
- $rss = array('url' => 'http://feeds2.feedburner.com/aakashweb', 'items' => '5','show_date' => 0, 'show_summary'=> 1);
1521
  $subscribe = "window.open('http://feedburner.google.com/fb/a/mailverify?uri=aakashweb', 'win','menubar=1,resizable=1,width=600,height=500'); return false;" ;
1522
  echo '<div class="rss-widget">';
1523
- echo '<a href="http://www.aakashweb.com/wordpress-plugins/" target="_blank"><img src="http://a.imageshack.us/img844/5834/97341029.png" align="right"/></a>';
1524
  echo '<p>'; wp_widget_rss_output($rss); echo '</p>';
1525
- echo '<hr style="border-top: 1px solid #fff;"/>';
1526
  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>';
1527
  echo "</div>";
1528
  }
@@ -1550,7 +1548,7 @@ function wpsr_adminbar() {
1550
  return;
1551
  }
1552
 
1553
- $adminPage = get_option('home') . '/admin.php?page=wp_socializer';
1554
 
1555
  $wp_admin_bar->add_menu( array( 'id' => 'wpsr_adminbar_menu', 'title' => 'WP Socializer', 'href' => $adminPage));
1556
  $wp_admin_bar->add_menu( array( 'parent' => 'wpsr_adminbar_menu', 'title' => __('Edit the templates', 'wpsr'), 'href' => $adminPage . '#tab-9'));
@@ -1560,6 +1558,9 @@ function wpsr_adminbar() {
1560
  $postEdit = get_option('home') . '/wp-admin/post.php?action=edit&post=' . $post->ID;
1561
  $wp_admin_bar->add_menu( array( 'parent' => 'wpsr_adminbar_menu', 'title' => __('Disable WP Socializer in this page', 'wpsr'), 'href' => get_edit_post_link($current_object->ID) . '#wp_socializer' ));
1562
  }
 
 
 
1563
  }
1564
  add_action('admin_bar_menu', 'wpsr_adminbar', 1000);
1565
 
@@ -1591,7 +1592,7 @@ function wpsr_add_wpsrbutton_tinymce($plugin_array) {
1591
  }
1592
 
1593
  // init process for button control
1594
- //add_action('init', 'wpsr_add_wpsr_button');
1595
 
1596
  // TinyMCE button translation
1597
  function wpsr_wpsrbt_info(){
@@ -1606,6 +1607,6 @@ function wpsr_wpsrbt_info(){
1606
  </script>' . "\n";
1607
  }
1608
 
1609
- //add_action('edit_form_advanced', 'wpsr_wpsrbt_info');
1610
 
1611
  ?>
1
  <?php
2
  /*
3
  Plugin Name: WP Socializer
4
+ Version: 2.1
5
  Plugin URI: http://www.aakashweb.com/
6
+ Description: WP Socializer is an advanced and powerful plugin for adding bookmarking buttons like addthis, buzz, digg, retweet, facebook like/share for posts.
7
  Author: Aakash Chakravarthy
8
  Author URI: http://www.aakashweb.com/
9
  */
14
  $wpsr_url = WP_CONTENT_URL . '/plugins/' . plugin_basename(dirname(__FILE__)) . '/';
15
  }
16
 
17
+ define('WPSR_VERSION', '2.1');
18
  define('WPSR_AUTHOR', 'Aakash Chakravarthy');
19
  define('WPSR_URL', $wpsr_url);
20
  define('WPSR_PUBLIC_URL', WPSR_URL . 'public/');
1517
  ## Admin Dashboard
1518
  if(!function_exists('aw_dashboard')){
1519
  function aw_dashboard() {
1520
+ $rss = array('url' => 'http://feeds2.feedburner.com/aakashweb', 'items' => '5','show_date' => 0, 'show_summary'=> 0);
1521
  $subscribe = "window.open('http://feedburner.google.com/fb/a/mailverify?uri=aakashweb', 'win','menubar=1,resizable=1,width=600,height=500'); return false;" ;
1522
  echo '<div class="rss-widget">';
 
1523
  echo '<p>'; wp_widget_rss_output($rss); echo '</p>';
 
1524
  echo '<p><a href="#" onclick="' . $subscribe . '">Subscribe to Updates</a> | <a href="http://twitter.com/vaakash" target="_blank">Follow on Twitter</a> | <a href="http://www.aakashweb.com/" target="_blank">Home Page</a></p>';
1525
  echo "</div>";
1526
  }
1548
  return;
1549
  }
1550
 
1551
+ $adminPage = get_option('home') . '/wp-admin/admin.php?page=wp_socializer'; // Broken link fix v2.1
1552
 
1553
  $wp_admin_bar->add_menu( array( 'id' => 'wpsr_adminbar_menu', 'title' => 'WP Socializer', 'href' => $adminPage));
1554
  $wp_admin_bar->add_menu( array( 'parent' => 'wpsr_adminbar_menu', 'title' => __('Edit the templates', 'wpsr'), 'href' => $adminPage . '#tab-9'));
1558
  $postEdit = get_option('home') . '/wp-admin/post.php?action=edit&post=' . $post->ID;
1559
  $wp_admin_bar->add_menu( array( 'parent' => 'wpsr_adminbar_menu', 'title' => __('Disable WP Socializer in this page', 'wpsr'), 'href' => get_edit_post_link($current_object->ID) . '#wp_socializer' ));
1560
  }
1561
+
1562
+ $wp_admin_bar->add_menu( array( 'parent' => 'wpsr_adminbar_menu', 'title' => __('Help', 'wpsr'), 'href' => 'http://www.aakashweb.com/wordpress-plugins/wp-socializer/'));
1563
+
1564
  }
1565
  add_action('admin_bar_menu', 'wpsr_adminbar', 1000);
1566
 
1592
  }
1593
 
1594
  // init process for button control
1595
+ add_action('init', 'wpsr_add_wpsr_button');
1596
 
1597
  // TinyMCE button translation
1598
  function wpsr_wpsrbt_info(){
1607
  </script>' . "\n";
1608
  }
1609
 
1610
+ add_action('edit_form_advanced', 'wpsr_wpsrbt_info');
1611
 
1612
  ?>