WordPress Share Buttons Plugin – AddThis - Version 1.5.3

Version Description

Download this release

Release Info

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

Code changes from version 1.5.2 to 1.5.3

addthis_social_widget.php CHANGED
@@ -20,12 +20,16 @@
20
  * +--------------------------------------------------------------------------+
21
  */
22
 
 
 
 
 
23
 
24
  /**
25
  * Plugin Name: AddThis Social Bookmarking Widget
26
  * Plugin URI: http://www.addthis.com
27
  * 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.
28
- * Version: 1.5.2
29
  *
30
  * Author: The AddThis Team
31
  * Author URI: http://www.addthis.com
@@ -39,6 +43,11 @@ class addthis_social_widget
39
  private $customization;
40
  private $addthis_language;
41
 
 
 
 
 
 
42
  /// AddThis publisher ID
43
  private $addthis_username;
44
 
@@ -70,10 +79,12 @@ class addthis_social_widget
70
  add_option('addthis_username');
71
  add_option('addthis_options', 'email, favorites, digg, delicious, myspace, google, facebook, reddit, live, more');
72
  add_option('addthis_isdropdown', true);
 
 
 
73
  add_option('addthis_style');
74
- add_option('addthis_logo');
75
- add_option('addthis_logo_background');
76
- add_option('addthis_logo_color');
77
  add_option('addthis_brand');
78
  add_option('addthis_language', 'en');
79
 
@@ -86,10 +97,14 @@ class addthis_social_widget
86
  if (!isset($username)) $username = get_option('addthis_username');
87
  $this->addthis_username = $username;
88
 
 
 
 
 
89
  $language = get_option('addthis_language');
90
  $this->addthis_language = $language;
91
 
92
- $advopts = array('logo', 'brand', 'language', 'logo_background', 'logo_colors', 'options');
93
  $this->customization = '';
94
  for ($i = 0; $i < count($advopts); $i++)
95
  {
@@ -104,8 +119,11 @@ class addthis_social_widget
104
  */
105
  public function social_widget($content)
106
  {
107
- // add nothing to RSS feed
108
  if (is_feed()) return $content;
 
 
 
109
 
110
  $pub = $this->addthis_username;
111
  $link = urlencode(get_permalink());
@@ -119,13 +137,13 @@ class addthis_social_widget
119
  $content .= '<script type="text/javascript">' . (isset($pub) ? "\nvar addthis_pub = '$pub';\n" : "\n") . ($this->customization) . "\n</script>\n";
120
  }
121
  $content .= <<<EOF
122
- <div><a href="http://www.addthis.com/bookmark.php" onmouseover="return addthis_open(this, '', '$link', '$title')" onmouseout="addthis_close()" onclick="return addthis_sendto()">{$this->get_button_img()}</a><script type="text/javascript" src="http://s7.addthis.com/js/152/addthis_widget.js"></script></div>
123
  EOF;
124
  }
125
  else
126
  {
127
  $content .= <<<EOF
128
- <div><a href="http://www.addthis.com/bookmark.php" onclick="window.open('http://www.addthis.com/bookmark.php?pub=$pub&amp;url=$link&amp;title=$title', 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank">{$this->get_button_img()}</a></div>
129
  EOF;
130
  }
131
  $content .= "\n<!-- AddThis Button END -->";
@@ -161,7 +179,7 @@ EOF;
161
  $btnWidth = $btnRecord['w'];
162
  $btnHeight = $btnRecord['h'];
163
  return <<<EOF
164
- <img src="{$btnUrl}" width="{$btnWidth}" height="{$btnHeight}" border="0" alt="" />
165
  EOF;
166
  }
167
 
@@ -199,7 +217,7 @@ function addthis_plugin_options() {
199
  </select>
200
  </td>
201
  </tr>
202
- <tr valign="top">
203
  <th scope="row"><?php _e("Use dropdown menu:", 'addthis_trans_domain' ); ?></th>
204
  <td><input type="checkbox" name="addthis_isdropdown" value="true" <?php echo (get_option('addthis_isdropdown') == 'true' ? 'checked' : ''); ?>/></td>
205
  </tr>
@@ -210,8 +228,22 @@ function addthis_plugin_options() {
210
  <br />
211
 
212
  <h3>Advanced</h3>
213
- See <a href="http://addthis.com/customization">our customization docs</a>.
214
  <table class="form-table">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
215
  <tr valign="top">
216
  <th scope="row"><?php _e("Brand:", 'addthis_trans_domain' ); ?></th>
217
  <td><input type="text" name="addthis_brand" value="<?php echo get_option('addthis_brand'); ?>" /></td>
@@ -235,21 +267,17 @@ function addthis_plugin_options() {
235
  </td>
236
  </tr>
237
  <tr valign="top">
238
- <th scope="row"><?php _e("Logo:", 'addthis_trans_domain' ); ?></th>
239
- <td><input type="text" name="addthis_logo" value="<?php echo get_option('addthis_logo'); ?>" /></td>
240
- </tr>
241
- <tr valign="top">
242
- <th scope="row"><?php _e("Logo background:", 'addthis_trans_domain' ); ?></th>
243
- <td><input type="text" name="addthis_logo_background" value="<?php echo get_option('addthis_logo_background'); ?>" /></td>
244
  </tr>
245
  <tr valign="top">
246
- <th scope="row"><?php _e("Logo color:", 'addthis_trans_domain' ); ?></th>
247
- <td><input type="text" name="addthis_logo_color" value="<?php echo get_option('addthis_logo_color'); ?>" /></td>
248
  </tr>
249
  </table>
250
 
251
  <input type="hidden" name="action" value="update" />
252
- <input type="hidden" name="page_options" value="addthis_username,addthis_style,addthis_isdropdown,addthis_language,addthis_brand,addthis_options,addthis_logo,addthis_logo_background,addthis_logo_color"/>
253
 
254
  <p class="submit">
255
  <input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" />
20
  * +--------------------------------------------------------------------------+
21
  */
22
 
23
+ // If we're running in PHP 4, return
24
+ if (strpos(phpversion(), '4') === 0) {
25
+ return;
26
+ }
27
 
28
  /**
29
  * Plugin Name: AddThis Social Bookmarking Widget
30
  * Plugin URI: http://www.addthis.com
31
  * 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.
32
+ * Version: 1.5.3
33
  *
34
  * Author: The AddThis Team
35
  * Author URI: http://www.addthis.com
43
  private $customization;
44
  private $addthis_language;
45
 
46
+ /// Enable AddThis on pages
47
+ private $addthis_showonpages;
48
+ private $addthis_showonarchives;
49
+ private $addthis_showoncats;
50
+
51
  /// AddThis publisher ID
52
  private $addthis_username;
53
 
79
  add_option('addthis_username');
80
  add_option('addthis_options', 'email, favorites, digg, delicious, myspace, google, facebook, reddit, live, more');
81
  add_option('addthis_isdropdown', true);
82
+ add_option('addthis_showonpages', false);
83
+ add_option('addthis_showonarchives', false);
84
+ add_option('addthis_showoncats', false);
85
  add_option('addthis_style');
86
+ add_option('addthis_header_background');
87
+ add_option('addthis_header_color');
 
88
  add_option('addthis_brand');
89
  add_option('addthis_language', 'en');
90
 
97
  if (!isset($username)) $username = get_option('addthis_username');
98
  $this->addthis_username = $username;
99
 
100
+ $this->addthis_showonpages = get_option('addthis_showonpages') === 'true';
101
+ $this->addthis_showonarchives = get_option('addthis_showonarchives') === 'true';
102
+ $this->addthis_showoncats = get_option('addthis_showoncats') === 'true';
103
+
104
  $language = get_option('addthis_language');
105
  $this->addthis_language = $language;
106
 
107
+ $advopts = array('brand', 'language', 'header_background', 'header_color', 'options');
108
  $this->customization = '';
109
  for ($i = 0; $i < count($advopts); $i++)
110
  {
119
  */
120
  public function social_widget($content)
121
  {
122
+ // add nothing to RSS feeds; control adding to static/archive/category pages
123
  if (is_feed()) return $content;
124
+ else if (is_page() && !$this->addthis_showonpages) return $content;
125
+ else if (is_archive() && !$this->addthis_showonarchives) return $content;
126
+ else if (is_category() && !$this->addthis_showoncats) return $content;
127
 
128
  $pub = $this->addthis_username;
129
  $link = urlencode(get_permalink());
137
  $content .= '<script type="text/javascript">' . (isset($pub) ? "\nvar addthis_pub = '$pub';\n" : "\n") . ($this->customization) . "\n</script>\n";
138
  }
139
  $content .= <<<EOF
140
+ <div class="addthis_container"><a href="http://www.addthis.com/bookmark.php" onmouseover="return addthis_open(this, '', '$link', '$title')" onmouseout="addthis_close()" onclick="return addthis_sendto()">{$this->get_button_img()}</a><script type="text/javascript" src="http://s7.addthis.com/js/200/addthis_widget.js"></script></div>
141
  EOF;
142
  }
143
  else
144
  {
145
  $content .= <<<EOF
146
+ <div class="addthis_container"><a href="http://www.addthis.com/bookmark.php" onclick="window.open('http://www.addthis.com/bookmark.php?pub=$pub&amp;url=$link&amp;title=$title', 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank">{$this->get_button_img()}</a></div>
147
  EOF;
148
  }
149
  $content .= "\n<!-- AddThis Button END -->";
179
  $btnWidth = $btnRecord['w'];
180
  $btnHeight = $btnRecord['h'];
181
  return <<<EOF
182
+ <img src="{$btnUrl}" width="{$btnWidth}" height="{$btnHeight}" border="0" alt="Bookmark and Share" style="border:0;padding:0"/>
183
  EOF;
184
  }
185
 
217
  </select>
218
  </td>
219
  </tr>
220
+ <tr>
221
  <th scope="row"><?php _e("Use dropdown menu:", 'addthis_trans_domain' ); ?></th>
222
  <td><input type="checkbox" name="addthis_isdropdown" value="true" <?php echo (get_option('addthis_isdropdown') == 'true' ? 'checked' : ''); ?>/></td>
223
  </tr>
228
  <br />
229
 
230
  <h3>Advanced</h3>
 
231
  <table class="form-table">
232
+ <tr valign="top">
233
+ <td colspan="2">See <a href="http://addthis.com/customization">our customization docs</a>.</td>
234
+ </tr>
235
+ <tr>
236
+ <th scope="row"><?php _e("Show on <a href=\"http://codex.wordpress.org/Pages\" target=\"blank\">pages</a>:", 'addthis_trans_domain' ); ?></th>
237
+ <td><input type="checkbox" name="addthis_showonpages" value="true" <?php echo (get_option('addthis_showonpages') == 'true' ? 'checked' : ''); ?>/></td>
238
+ </tr>
239
+ <tr>
240
+ <th scope="row"><?php _e("Show in archives:", 'addthis_trans_domain' ); ?></th>
241
+ <td><input type="checkbox" name="addthis_showonarchives" value="true" <?php echo (get_option('addthis_showonarchives') == 'true' ? 'checked' : ''); ?>/></td>
242
+ </tr>
243
+ <tr>
244
+ <th scope="row"><?php _e("Show in categories:", 'addthis_trans_domain' ); ?></th>
245
+ <td><input type="checkbox" name="addthis_showoncats" value="true" <?php echo (get_option('addthis_showoncats') == 'true' ? 'checked' : ''); ?>/></td>
246
+ </tr>
247
  <tr valign="top">
248
  <th scope="row"><?php _e("Brand:", 'addthis_trans_domain' ); ?></th>
249
  <td><input type="text" name="addthis_brand" value="<?php echo get_option('addthis_brand'); ?>" /></td>
267
  </td>
268
  </tr>
269
  <tr valign="top">
270
+ <th scope="row"><?php _e("Header background:", 'addthis_trans_domain' ); ?></th>
271
+ <td><input type="text" name="addthis_header_background" value="<?php echo get_option('addthis_header_background'); ?>" /></td>
 
 
 
 
272
  </tr>
273
  <tr valign="top">
274
+ <th scope="row"><?php _e("Header color:", 'addthis_trans_domain' ); ?></th>
275
+ <td><input type="text" name="addthis_header_color" value="<?php echo get_option('addthis_header_color'); ?>" /></td>
276
  </tr>
277
  </table>
278
 
279
  <input type="hidden" name="action" value="update" />
280
+ <input type="hidden" name="page_options" value="addthis_username,addthis_style,addthis_isdropdown,addthis_showonpages,addthis_showonarchives,addthis_showoncats,addthis_language,addthis_brand,addthis_options,addthis_header_background,addthis_header_color"/>
281
 
282
  <p class="submit">
283
  <input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" />
php4/addthis_social_widget.php CHANGED
@@ -20,11 +20,16 @@
20
  * +--------------------------------------------------------------------------+
21
  */
22
 
 
 
 
 
 
23
  /**
24
  * Plugin Name: AddThis Social Bookmarking Widget
25
  * Plugin URI: http://www.addthis.com
26
  * 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.
27
- * Version: 1.5.2
28
  *
29
  * Author: The AddThis Team
30
  * Author URI: http://www.addthis.com
@@ -62,14 +67,19 @@ function addthis_init($username=null, $style=null)
62
  add_option('addthis_username');
63
  add_option('addthis_options', 'email, favorites, digg, delicious, myspace, google, facebook, reddit, live, more');
64
  add_option('addthis_isdropdown', true);
 
 
 
65
  add_option('addthis_style');
66
- add_option('addthis_logo');
67
- add_option('addthis_logo_background');
68
- add_option('addthis_logo_color');
69
  add_option('addthis_brand');
70
  add_option('addthis_language', 'en');
71
 
72
  $addthis_settings['isdropdown'] = get_option('addthis_isdropdown') === 'true';
 
 
 
73
 
74
  if (!isset($style)) $style = get_option('addthis_style');
75
  if (strlen($style) == 0) $style = 'share';
@@ -81,7 +91,7 @@ function addthis_init($username=null, $style=null)
81
  $language = get_option('addthis_language');
82
  $addthis_settings['language'] = $language;
83
 
84
- $advopts = array('logo', 'brand', 'language', 'logo_background', 'logo_colors', 'options');
85
  $addthis_settings['customization'] = '';
86
  for ($i = 0; $i < count($advopts); $i++)
87
  {
@@ -98,8 +108,11 @@ function addthis_social_widget($content)
98
  {
99
  global $addthis_settings;
100
 
101
- // add nothing to RSS feed
102
  if (is_feed()) return $content;
 
 
 
103
 
104
  $pub = $addthis_settings['username'];
105
  $link = urlencode(get_permalink());
@@ -113,14 +126,14 @@ function addthis_social_widget($content)
113
  $content .= '<script type="text/javascript">' . (isset($pub) ? "\nvar addthis_pub = '$pub';\n" : "\n") . ($addthis_settings['customization']) . "\n</script>\n";
114
  }
115
  $content .= <<<EOF
116
- <div><a href="http://www.addthis.com/bookmark.php" onmouseover="return addthis_open(this, '', '$link', '$title')" onmouseout="addthis_close()" onclick="return addthis_sendto()">
117
  EOF;
118
- $content .= addthis_get_button_img() . '</a><script type="text/javascript" src="http://s7.addthis.com/js/152/addthis_widget.js"></script></div>';
119
  }
120
  else
121
  {
122
  $content .= <<<EOF
123
- <div><a href="http://www.addthis.com/bookmark.php" onclick="window.open('http://www.addthis.com/bookmark.php?pub=$pub&amp;url=$link&amp;title=$title', 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank">
124
  EOF;
125
  $content .= addthis_get_button_img() . '</a></div>';
126
  }
@@ -160,7 +173,7 @@ function addthis_get_button_img()
160
  $btnWidth = $btnRecord['w'];
161
  $btnHeight = $btnRecord['h'];
162
  return <<<EOF
163
- <img src="$btnUrl" width="$btnWidth" height="$btnHeight" border="0" alt="" />
164
  EOF;
165
  }
166
 
@@ -201,7 +214,7 @@ function addthis_plugin_options_php4() {
201
  </select>
202
  </td>
203
  </tr>
204
- <tr valign="top">
205
  <th scope="row"><?php _e("Use dropdown menu:", 'addthis_trans_domain' ); ?></th>
206
  <td><input type="checkbox" name="addthis_isdropdown" value="true" <?php echo (get_option('addthis_isdropdown') !== '' ? 'checked' : ''); ?>/></td>
207
  </tr>
@@ -212,8 +225,22 @@ function addthis_plugin_options_php4() {
212
  <br />
213
 
214
  <h3>Advanced</h3>
215
- See <a href="http://addthis.com/customization">our customization docs</a>.
216
  <table class="form-table">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
217
  <tr valign="top">
218
  <th scope="row"><?php _e("Brand:", 'addthis_trans_domain' ); ?></th>
219
  <td><input type="text" name="addthis_brand" value="<?php echo get_option('addthis_brand'); ?>" /></td>
@@ -237,21 +264,17 @@ function addthis_plugin_options_php4() {
237
  </td>
238
  </tr>
239
  <tr valign="top">
240
- <th scope="row"><?php _e("Logo:", 'addthis_trans_domain' ); ?></th>
241
- <td><input type="text" name="addthis_logo" value="<?php echo get_option('addthis_logo'); ?>" /></td>
242
- </tr>
243
- <tr valign="top">
244
- <th scope="row"><?php _e("Logo background:", 'addthis_trans_domain' ); ?></th>
245
- <td><input type="text" name="addthis_logo_background" value="<?php echo get_option('addthis_logo_background'); ?>" /></td>
246
  </tr>
247
  <tr valign="top">
248
- <th scope="row"><?php _e("Logo color:", 'addthis_trans_domain' ); ?></th>
249
- <td><input type="text" name="addthis_logo_color" value="<?php echo get_option('addthis_logo_color'); ?>" /></td>
250
  </tr>
251
  </table>
252
 
253
  <input type="hidden" name="action" value="update" />
254
- <input type="hidden" name="page_options" value="addthis_username,addthis_style,addthis_isdropdown,addthis_language,addthis_brand,addthis_options,addthis_logo,addthis_logo_background,addthis_logo_color"/>
255
 
256
  <p class="submit">
257
  <input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" />
20
  * +--------------------------------------------------------------------------+
21
  */
22
 
23
+ // If we're not running in PHP 4, return
24
+ if (strpos(phpversion(), '4') !== 0) {
25
+ return;
26
+ }
27
+
28
  /**
29
  * Plugin Name: AddThis Social Bookmarking Widget
30
  * Plugin URI: http://www.addthis.com
31
  * 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.
32
+ * Version: 1.5.3
33
  *
34
  * Author: The AddThis Team
35
  * Author URI: http://www.addthis.com
67
  add_option('addthis_username');
68
  add_option('addthis_options', 'email, favorites, digg, delicious, myspace, google, facebook, reddit, live, more');
69
  add_option('addthis_isdropdown', true);
70
+ add_option('addthis_showonpages', false);
71
+ add_option('addthis_showoncats', false);
72
+ add_option('addthis_showonarchives', false);
73
  add_option('addthis_style');
74
+ add_option('addthis_header_background');
75
+ add_option('addthis_header_color');
 
76
  add_option('addthis_brand');
77
  add_option('addthis_language', 'en');
78
 
79
  $addthis_settings['isdropdown'] = get_option('addthis_isdropdown') === 'true';
80
+ $addthis_settings['showonpages'] = get_option('addthis_showonpages') === 'true';
81
+ $addthis_settings['showonarchives'] = get_option('addthis_showonarchives') === 'true';
82
+ $addthis_settings['showoncats'] = get_option('addthis_showoncats') === 'true';
83
 
84
  if (!isset($style)) $style = get_option('addthis_style');
85
  if (strlen($style) == 0) $style = 'share';
91
  $language = get_option('addthis_language');
92
  $addthis_settings['language'] = $language;
93
 
94
+ $advopts = array('brand', 'language', 'header_background', 'header_color', 'options');
95
  $addthis_settings['customization'] = '';
96
  for ($i = 0; $i < count($advopts); $i++)
97
  {
108
  {
109
  global $addthis_settings;
110
 
111
+ // add nothing to RSS feed; control adding to static/archive/category pages
112
  if (is_feed()) return $content;
113
+ else if (is_page() && !$addthis_settings['showonpages']) return $content;
114
+ else if (is_archive() && !$addthis_settings['showonarchives']) return $content;
115
+ else if (is_category() && !$addthis_settings['showoncats']) return $content;
116
 
117
  $pub = $addthis_settings['username'];
118
  $link = urlencode(get_permalink());
126
  $content .= '<script type="text/javascript">' . (isset($pub) ? "\nvar addthis_pub = '$pub';\n" : "\n") . ($addthis_settings['customization']) . "\n</script>\n";
127
  }
128
  $content .= <<<EOF
129
+ <div class="addthis_container"><a href="http://www.addthis.com/bookmark.php" onmouseover="return addthis_open(this, '', '$link', '$title')" onmouseout="addthis_close()" onclick="return addthis_sendto()">
130
  EOF;
131
+ $content .= addthis_get_button_img() . '</a><script type="text/javascript" src="http://s7.addthis.com/js/200/addthis_widget.js"></script></div>';
132
  }
133
  else
134
  {
135
  $content .= <<<EOF
136
+ <div class="addthis_container"><a href="http://www.addthis.com/bookmark.php" onclick="window.open('http://www.addthis.com/bookmark.php?pub=$pub&amp;url=$link&amp;title=$title', 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank">
137
  EOF;
138
  $content .= addthis_get_button_img() . '</a></div>';
139
  }
173
  $btnWidth = $btnRecord['w'];
174
  $btnHeight = $btnRecord['h'];
175
  return <<<EOF
176
+ <img src="$btnUrl" width="$btnWidth" height="$btnHeight" border="0" alt="Bookmark and Share"/>
177
  EOF;
178
  }
179
 
214
  </select>
215
  </td>
216
  </tr>
217
+ <tr>
218
  <th scope="row"><?php _e("Use dropdown menu:", 'addthis_trans_domain' ); ?></th>
219
  <td><input type="checkbox" name="addthis_isdropdown" value="true" <?php echo (get_option('addthis_isdropdown') !== '' ? 'checked' : ''); ?>/></td>
220
  </tr>
225
  <br />
226
 
227
  <h3>Advanced</h3>
 
228
  <table class="form-table">
229
+ <tr valign="top">
230
+ <td colspan="2">See <a href="http://addthis.com/customization">our customization docs</a>.</td>
231
+ </tr>
232
+ <tr>
233
+ <th scope="row"><?php _e("Show on <a href=\"http://codex.wordpress.org/Pages\" target=\"blank\">pages</a>:", 'addthis_trans_domain' ); ?></th>
234
+ <td><input type="checkbox" name="addthis_showonpages" value="true" <?php echo (get_option('addthis_showonpages') !== '' ? 'checked' : ''); ?>/></td>
235
+ </tr>
236
+ <tr>
237
+ <th scope="row"><?php _e("Show in archives:", 'addthis_trans_domain' ); ?></th>
238
+ <td><input type="checkbox" name="addthis_showonarchives" value="true" <?php echo (get_option('addthis_showonarchives') == 'true' ? 'checked' : ''); ?>/></td>
239
+ </tr>
240
+ <tr>
241
+ <th scope="row"><?php _e("Show in categories:", 'addthis_trans_domain' ); ?></th>
242
+ <td><input type="checkbox" name="addthis_showoncats" value="true" <?php echo (get_option('addthis_showoncats') == 'true' ? 'checked' : ''); ?>/></td>
243
+ </tr>
244
  <tr valign="top">
245
  <th scope="row"><?php _e("Brand:", 'addthis_trans_domain' ); ?></th>
246
  <td><input type="text" name="addthis_brand" value="<?php echo get_option('addthis_brand'); ?>" /></td>
264
  </td>
265
  </tr>
266
  <tr valign="top">
267
+ <th scope="row"><?php _e("Header background:", 'addthis_trans_domain' ); ?></th>
268
+ <td><input type="text" name="addthis_header_background" value="<?php echo get_option('addthis_header_background'); ?>" /></td>
 
 
 
 
269
  </tr>
270
  <tr valign="top">
271
+ <th scope="row"><?php _e("Header color:", 'addthis_trans_domain' ); ?></th>
272
+ <td><input type="text" name="addthis_header_color" value="<?php echo get_option('addthis_header_color'); ?>" /></td>
273
  </tr>
274
  </table>
275
 
276
  <input type="hidden" name="action" value="update" />
277
+ <input type="hidden" name="page_options" value="addthis_username,addthis_style,addthis_isdropdown,addthis_showonpages,addthis_showoncats,addthis_showonarchives,addthis_language,addthis_brand,addthis_options,addthis_header_background,addthis_header_color"/>
278
 
279
  <p class="submit">
280
  <input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" />
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: _mjk_
3
  Tags: share, addthis, social, bookmark, sharing, bookmarking, widget
4
  Requires at least: 2.3
5
  Tested up to: 2.7
6
- Stable tag: 1.5.2
7
 
8
  The AddThis Social Bookmarking Widget allows any visitor to bookmark and share your site easily with many popular services.
9
 
3
  Tags: share, addthis, social, bookmark, sharing, bookmarking, widget
4
  Requires at least: 2.3
5
  Tested up to: 2.7
6
+ Stable tag: 1.5.3
7
 
8
  The AddThis Social Bookmarking Widget allows any visitor to bookmark and share your site easily with many popular services.
9