WordPress Share Buttons Plugin – AddThis - Version 2.1.1

Version Description

  • Add Google +1
Download this release

Release Info

Developer jorbin
Plugin Icon 128x128 WordPress Share Buttons Plugin – AddThis
Version 2.1.1
Comparing to
See all releases

Code changes from version 2.1.0 to 2.1.1

Files changed (3) hide show
  1. addthis_social_widget.php +25 -4
  2. img/plusone-share.gif +0 -0
  3. readme.txt +10 -6
addthis_social_widget.php CHANGED
@@ -26,7 +26,7 @@ else return;
26
  * Plugin Name: AddThis Social Bookmarking Widget
27
  * Plugin URI: http://www.addthis.com
28
  * Description: Help your visitor promote your site! The AddThis Social Bookmarking Widget allows any visitor to bookmark your site easily with many popular services. Sign up for an AddThis.com account to see how your visitors are sharing your content--which services they're using for sharing, which content is shared the most, and more. It's all free--even the pretty charts and graphs.
29
- * Version: 2.1.0
30
  *
31
  * Author: The AddThis Team
32
  * Author URI: http://www.addthis.com/blog
@@ -57,7 +57,7 @@ $addthis_new_styles = array(
57
 
58
  'small_toolbox' => array( 'src' => '<div class="addthis_toolbox addthis_default_style addthis_" %s ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>', 'img' => 'toolbox-small.png', 'name' => 'Small Toolbox', 'above' => 'hidden ', 'below' => ''
59
  ), // 32x32
60
-
61
  'small_toolbox_with_share' => array( 'src' => '<div class="addthis_toolbox addthis_default_style " %s ><a href="//addthis.com/bookmark.php?v=250&amp;username=xa-4d2b47597ad291fb" class="addthis_button_compact">Share</a><span class="addthis_separator">|</span><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a></div>', 'img' => 'small-toolbox.jpg', 'name' => 'Small Toolbox with Share first', 'above' => '', 'below' => 'hidden'
62
  ), // Plus sign share | four buttons
63
  'large_toolbox' => array( 'src' => '<div class="addthis_toolbox addthis_default_style addthis_32x32_style" %s ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>', 'img' => 'toolbox-large.png', 'name' => 'Large Toolbox', 'above' => 'hidden ', 'below' => ''
@@ -113,7 +113,7 @@ function addthis_script_to_content($content)
113
  }
114
 
115
  define( 'addthis_style_default' , 'small_toolbox_with_share');
116
- define( 'ADDTHIS_PLUGIN_VERSION', '2.1.0');
117
  /**
118
  * Converts our old many options in to one beautiful array
119
  *
@@ -1225,7 +1225,7 @@ function addthis_output_script($return = false )
1225
 
1226
  $script = "\n<!-- AddThis Button Begin -->\n"
1227
  .'<script type="text/javascript">'
1228
- ."var addthis_product = 'wpp-257';\n";
1229
 
1230
 
1231
  $pub = (isset($options['profile'])) ? $options['profile'] : false ;
@@ -1822,4 +1822,25 @@ register_activation_hook( __FILE__, 'addthis_activation_hook' );
1822
 
1823
  require_once('addthis_post_metabox.php');
1824
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1825
  ?>
26
  * Plugin Name: AddThis Social Bookmarking Widget
27
  * Plugin URI: http://www.addthis.com
28
  * Description: Help your visitor promote your site! The AddThis Social Bookmarking Widget allows any visitor to bookmark your site easily with many popular services. Sign up for an AddThis.com account to see how your visitors are sharing your content--which services they're using for sharing, which content is shared the most, and more. It's all free--even the pretty charts and graphs.
29
+ * Version: 2.1.1
30
  *
31
  * Author: The AddThis Team
32
  * Author URI: http://www.addthis.com/blog
57
 
58
  'small_toolbox' => array( 'src' => '<div class="addthis_toolbox addthis_default_style addthis_" %s ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>', 'img' => 'toolbox-small.png', 'name' => 'Small Toolbox', 'above' => 'hidden ', 'below' => ''
59
  ), // 32x32
60
+ 'plus_one_share_counter' => array( 'src' => '<div class="addthis_toolbox addthis_default_style" %s ><a class="addthis_button_google_plusone"></a><a class="addthis_counter addthis_pill_style"></a></div>', 'img' => 'plusone-share.gif', 'name' => 'Plus One and Share Counter', 'above'=> 'hidden', 'below'=>'hidden'), // +1
61
  'small_toolbox_with_share' => array( 'src' => '<div class="addthis_toolbox addthis_default_style " %s ><a href="//addthis.com/bookmark.php?v=250&amp;username=xa-4d2b47597ad291fb" class="addthis_button_compact">Share</a><span class="addthis_separator">|</span><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a></div>', 'img' => 'small-toolbox.jpg', 'name' => 'Small Toolbox with Share first', 'above' => '', 'below' => 'hidden'
62
  ), // Plus sign share | four buttons
63
  'large_toolbox' => array( 'src' => '<div class="addthis_toolbox addthis_default_style addthis_32x32_style" %s ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>', 'img' => 'toolbox-large.png', 'name' => 'Large Toolbox', 'above' => 'hidden ', 'below' => ''
113
  }
114
 
115
  define( 'addthis_style_default' , 'small_toolbox_with_share');
116
+ define( 'ADDTHIS_PLUGIN_VERSION', '2.1.1');
117
  /**
118
  * Converts our old many options in to one beautiful array
119
  *
1225
 
1226
  $script = "\n<!-- AddThis Button Begin -->\n"
1227
  .'<script type="text/javascript">'
1228
+ ."var addthis_product = 'wpp-258';\n";
1229
 
1230
 
1231
  $pub = (isset($options['profile'])) ? $options['profile'] : false ;
1822
 
1823
  require_once('addthis_post_metabox.php');
1824
 
1825
+ // remove the generator tag if plus one is being used. Hopefully only temp.
1826
+ add_action('wp_head', 'addthis_rm_genTag', 2);
1827
+
1828
+ function addthis_rm_genTag(){
1829
+
1830
+ if ( isset($_GET['preview']) && $_GET['preview'] == 1 && $options = get_transient('addthis_settings') )
1831
+ $preview = true;
1832
+ else
1833
+ $options = get_option('addthis_settings');
1834
+
1835
+ if ($options['above'] =='plus_one_share_counter' || $options['below'] == 'plus_one_share_counter')
1836
+ remove_action('wp_head', 'wp_generator');
1837
+ elseif ($options['above'] == 'custom' && ( strpos( $options['above_custom_services'], 'google_plusone') !== false) )
1838
+ remove_action('wp_head', 'wp_generator');
1839
+ elseif ($options['below'] == 'custom' && ( strpos( $options['below_custom_services'], 'google_plusone') !== false) )
1840
+ remove_action('wp_head', 'wp_generator');
1841
+
1842
+
1843
+ }
1844
+
1845
+
1846
  ?>
img/plusone-share.gif ADDED
Binary file
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
- === AddThis featuring Sharing Buttons / Facebook Like / Tweet Button ===
2
  Contributors: _mjk_, jorbin
3
- Tags: share, addthis, social, bookmark, sharing, bookmarking, widget,AddThis, addtoany, aim, bookmark, buzz, del.icio.us, Digg,e-mail, email, Facebook, google bookmarks, google buzz, myspace,network, NewsVine, Reddit, Share, share this, sharethis, social, socialize, stumbleupon, twitter, windows live, yahoo buzz
4
  Requires at least: 2.9
5
- Tested up to: 3.1.1
6
- Stable tag: 2.1.0
7
 
8
  The AddThis Social Bookmarking Widget allows any visitor to bookmark and share your site easily with many popular services.
9
 
@@ -31,8 +31,6 @@ To upload the plugin through WordPress, instead of FTP:
31
 
32
  1. Upload the downloaded zip file on the 'Add New' plugins screen (see the 'Upload' tab) in your WordPress admin area and activate.
33
 
34
- Note: due to confusion, there are no longer separate versions for PHP4 and PHP5.
35
-
36
  == Frequently Asked Questions ==
37
 
38
  = Is AddThis free? =
@@ -75,6 +73,9 @@ In the screen options you can enable the AddThis meta box. Check the box and sa
75
  PHP 5+ is preferred; PHP 4 is supported.
76
 
77
  == Changelog ==
 
 
 
78
  = 2.1.0 =
79
  * Add Twitter Template Option
80
  * Add Post Meta Box
@@ -157,6 +158,9 @@ Fixed nondeterministic bug with the_title(), causing the title to occasionally a
157
 
158
 
159
  == Upgrade Notice ==
 
 
 
160
  = 2.1.0 =
161
  More Features, More Filters, More Social Goodness
162
 
1
+ === AddThis featuring Sharing Buttons / Facebook Like / Tweet Button / Google + 1 ===
2
  Contributors: _mjk_, jorbin
3
+ Tags: share, addthis, social, bookmark, sharing, bookmarking, widget,AddThis, addtoany, aim, bookmark, buzz, del.icio.us, Digg,e-mail, email, Facebook, google bookmarks, google buzz, myspace,network, NewsVine, Reddit, Share, share this, sharethis, social, socialize, stumbleupon, twitter, windows live, yahoo buzz, plus one, google plus one, plus 1, + one, + 1
4
  Requires at least: 2.9
5
+ Tested up to: 3.1.3
6
+ Stable tag: 2.1.1
7
 
8
  The AddThis Social Bookmarking Widget allows any visitor to bookmark and share your site easily with many popular services.
9
 
31
 
32
  1. Upload the downloaded zip file on the 'Add New' plugins screen (see the 'Upload' tab) in your WordPress admin area and activate.
33
 
 
 
34
  == Frequently Asked Questions ==
35
 
36
  = Is AddThis free? =
73
  PHP 5+ is preferred; PHP 4 is supported.
74
 
75
  == Changelog ==
76
+ = 2.1.1 =
77
+ * Add Google +1
78
+
79
  = 2.1.0 =
80
  * Add Twitter Template Option
81
  * Add Post Meta Box
158
 
159
 
160
  == Upgrade Notice ==
161
+ = 2.1.1 =
162
+ Add +1 to the button options
163
+
164
  = 2.1.0 =
165
  More Features, More Filters, More Social Goodness
166