WordPress Social Tools, Related Posts, Monetization – Shareaholic - Version 7.0.0.6

Version Description

  • Several bug fixes, in addition to -
  • Huge update! The plugin has been completely re-written from the ground up to be faster, simpler to use
  • Choose from snazzy new Related Post themes
  • Related Posts now come mobile optimized and responsive out of the box - Shareaholic automagically determines how many Related Posts to show given how much screen width it is given
  • Customize your "You may also like" Related Posts text
  • Option to exclude any URL from Related Posts
  • Choose from new Share button themes! (including vertical share buttons!)
  • Additional URL shortener options
  • "Pages" now also have options to exclude Share Buttons, Recommendations
  • Addition of new shareaholic:language tag to improve related content and recommendations computation
  • Bugfix: Facebook Debugger will no longer show "Parser Mismatched Metadata" warnings
  • Bugfix: Page titles are now properly encoded
Download this release

Release Info

Developer shareaholic
Plugin Icon 128x128 WordPress Social Tools, Related Posts, Monetization – Shareaholic
Version 7.0.0.6
Comparing to
See all releases

Code changes from version 7.0.0.5 to 7.0.0.6

admin.php CHANGED
@@ -25,17 +25,20 @@ class ShareaholicAdmin {
25
  }
26
 
27
  /**
28
- * Adds meta boxes for post options
29
  */
30
- public static function add_meta_boxes($post) {
31
- add_meta_box(
32
- 'shareaholic',
33
- 'Shareaholic',
34
- array('ShareaholicAdmin', 'meta_box'),
35
- 'post',
36
- 'side',
37
- 'low'
38
- );
 
 
 
39
  }
40
 
41
  /**
@@ -243,7 +246,7 @@ class ShareaholicAdmin {
243
  }
244
 
245
  if(isset($_POST['already_submitted']) && $_POST['already_submitted'] == 'Y') {
246
- echo "<div class='updated'><p><strong>Saved.</strong></p></div>";
247
  foreach (array('disable_tracking', 'disable_og_tags') as $setting) {
248
  if (isset($settings[$setting]) &&
249
  !isset($_POST['shareaholic'][$setting]) &&
@@ -254,15 +257,21 @@ class ShareaholicAdmin {
254
  }
255
  }
256
 
257
- if ($_POST['shareaholic']['api_key'] != $api_key) {
258
  ShareaholicUtilities::get_new_location_name_ids($_POST['shareaholic']['api_key']);
259
  }
260
-
261
- ShareaholicUtilities::update_options(array(
262
- 'disable_tracking' => $_POST['shareaholic']['disable_tracking'],
263
- 'disable_og_tags' => $_POST['shareaholic']['disable_og_tags'],
264
- 'api_key' => $_POST['shareaholic']['api_key']
265
- ));
 
 
 
 
 
 
266
  }
267
 
268
  ShareaholicUtilities::load_template('advanced_settings', array(
25
  }
26
 
27
  /**
28
+ * Adds meta boxes for post and page options
29
  */
30
+ public static function add_meta_boxes() {
31
+ $screens = array( 'post', 'page' );
32
+ foreach ($screens as $screen) {
33
+ add_meta_box(
34
+ 'shareaholic',
35
+ 'Shareaholic',
36
+ array('ShareaholicAdmin', 'meta_box'),
37
+ $screen,
38
+ 'side',
39
+ 'low'
40
+ );
41
+ }
42
  }
43
 
44
  /**
246
  }
247
 
248
  if(isset($_POST['already_submitted']) && $_POST['already_submitted'] == 'Y') {
249
+ echo "<div class='updated settings_updated'><p><strong>". sprintf(__('Settings successfully saved', 'shareaholic')) . "</strong></p></div>";
250
  foreach (array('disable_tracking', 'disable_og_tags') as $setting) {
251
  if (isset($settings[$setting]) &&
252
  !isset($_POST['shareaholic'][$setting]) &&
257
  }
258
  }
259
 
260
+ if (isset($_POST['shareaholic']['api_key']) && $_POST['shareaholic']['api_key'] != $api_key) {
261
  ShareaholicUtilities::get_new_location_name_ids($_POST['shareaholic']['api_key']);
262
  }
263
+
264
+ if (isset($_POST['shareaholic']['api_key'])) {
265
+ ShareaholicUtilities::update_options(array('api_key' => $_POST['shareaholic']['api_key']));
266
+ }
267
+
268
+ if (isset($_POST['shareaholic']['disable_tracking'])) {
269
+ ShareaholicUtilities::update_options(array('disable_tracking' => $_POST['shareaholic']['disable_tracking']));
270
+ }
271
+
272
+ if (isset($_POST['shareaholic']['disable_og_tags'])) {
273
+ ShareaholicUtilities::update_options(array('disable_og_tags' => $_POST['shareaholic']['disable_og_tags']));
274
+ }
275
  }
276
 
277
  ShareaholicUtilities::load_template('advanced_settings', array(
assets/css/main.css CHANGED
@@ -71,7 +71,7 @@ h3 {
71
  }
72
 
73
  .reveal-modal {
74
- width: 670px;
75
  height: 600px;
76
  margin-left: -335px;
77
  position: fixed;
@@ -233,17 +233,25 @@ h4 {
233
  font-size: 14px;
234
  }
235
 
236
- .blocking-modal .btn_main:hover {
237
- background: #28cc8b;
238
- color: white;
239
- border: none;
240
- }
241
 
242
- .blocking-modal .small {
243
- font-size: 12px;
244
- color: #888888;
245
- }
246
 
247
  input[type='text'] {
248
  width: 272px;
249
  }
 
 
 
 
 
 
 
 
71
  }
72
 
73
  .reveal-modal {
74
+ width: 720px;
75
  height: 600px;
76
  margin-left: -335px;
77
  position: fixed;
233
  font-size: 14px;
234
  }
235
 
236
+ .blocking-modal .btn_main:hover {
237
+ background: #28cc8b;
238
+ color: white;
239
+ border: none;
240
+ }
241
 
242
+ .blocking-modal .small {
243
+ font-size: 12px;
244
+ color: #888888;
245
+ }
246
 
247
  input[type='text'] {
248
  width: 272px;
249
  }
250
+
251
+ .settings_updated {
252
+ color: #fff;
253
+ text-shadow: 0px 1px 1px rgba(0,0,0,0.4);
254
+ font-size: 14px;
255
+ background-color: #45a147 !important;
256
+ border-color: #316632 !important;
257
+ }
assets/js/main.js CHANGED
@@ -39,7 +39,7 @@ Shareaholic.click_objects = {
39
  callback: function(button) {
40
  id = $(button).data('location_id');
41
  app = $(button).data('app');
42
- text = 'You can also this shortcode to place this {{app}} App anywhere.';
43
  html = "<div id='shortcode_container'> \
44
  <span id='shortcode_description'></span> \
45
  <textarea id='shortcode' name='widget_div' onclick='select();' readonly='readonly'></textarea> \
39
  callback: function(button) {
40
  id = $(button).data('location_id');
41
  app = $(button).data('app');
42
+ text = 'You can also use this shortcode to place this {{app}} App anywhere.';
43
  html = "<div id='shortcode_container'> \
44
  <span id='shortcode_description'></span> \
45
  <textarea id='shortcode' name='widget_div' onclick='select();' readonly='readonly'></textarea> \
public.php CHANGED
@@ -51,43 +51,54 @@ class ShareaholicPublic {
51
  */
52
  public static function tracking_meta_tag() {
53
  $settings = ShareaholicUtilities::get_settings();
54
- if ($settings['disable_tracking']) {
55
  echo '<meta name="shareaholic:analytics" content="disabled" />';
56
  }
57
  }
58
 
59
  /**
60
- * Draws the two shareaholic meta tags.
61
  */
62
  private static function shareaholic_tags() {
63
  echo "\n<!-- Shareaholic Content Tags (v" . ShareaholicUtilities::get_version() . ") -->\n";
64
  self::draw_site_name_meta_tag();
 
65
  self::draw_image_meta_tag();
66
  echo "\n<!-- Shareaholic Content Tags End -->\n";
67
  }
68
 
69
  /**
70
- * Draws our specific site name meta tag.
 
 
 
 
 
 
 
 
 
 
71
  */
72
  private static function draw_site_name_meta_tag() {
73
  $blog_name = get_bloginfo();
74
  if (!empty($blog_name)) {
75
- echo "<meta property='shareaholic:site_name' content='" . $blog_name . "' />\n";
76
  }
77
  }
78
 
79
  /**
80
- * Draws our specific image tag. Will only run on pages or posts.
81
  */
82
  private static function draw_image_meta_tag() {
83
  global $post;
84
  if (in_array(ShareaholicUtilities::page_type(), array('page', 'post'))) {
85
  if (has_post_thumbnail($post->ID)) {
86
  $thumbnail_src = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'large');
87
- echo "<meta property='shareaholic:image' content='" . esc_attr($thumbnail_src[0]) . "' />";
88
  } else {
89
  if ($first_image = self::post_first_image()) {
90
- echo "<meta property='shareaholic:image' content='" . $first_image . "' />";
91
  }
92
  }
93
  }
@@ -102,7 +113,7 @@ class ShareaholicPublic {
102
  if (in_array(ShareaholicUtilities::page_type(), array('page', 'post'))) {
103
  global $post;
104
 
105
- if (!get_post_meta($post->ID, 'shareaholic_disable_open_graph_tags', true)) {
106
  if (has_post_thumbnail($post->ID)) {
107
  $thumbnail_src = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'large');
108
  echo "\n<!-- Shareaholic Open Graph Tags -->\n";
@@ -156,7 +167,6 @@ class ShareaholicPublic {
156
  global $post;
157
  $settings = ShareaholicUtilities::get_settings();
158
  $page_type = ShareaholicUtilities::page_type();
159
-
160
  foreach (array('share_buttons', 'recommendations') as $app) {
161
  if (!get_post_meta($post->ID, "shareaholic_disable_{$app}", true)) {
162
  if (isset($settings[$app]["{$page_type}_above_content"]) &&
51
  */
52
  public static function tracking_meta_tag() {
53
  $settings = ShareaholicUtilities::get_settings();
54
+ if ($settings['disable_tracking'] == "on") {
55
  echo '<meta name="shareaholic:analytics" content="disabled" />';
56
  }
57
  }
58
 
59
  /**
60
+ * Draws the shareaholic meta tags.
61
  */
62
  private static function shareaholic_tags() {
63
  echo "\n<!-- Shareaholic Content Tags (v" . ShareaholicUtilities::get_version() . ") -->\n";
64
  self::draw_site_name_meta_tag();
65
+ self::draw_language_meta_tag();
66
  self::draw_image_meta_tag();
67
  echo "\n<!-- Shareaholic Content Tags End -->\n";
68
  }
69
 
70
  /**
71
+ * Draws Shareaholic language meta tag.
72
+ */
73
+ private static function draw_language_meta_tag() {
74
+ $blog_language = get_bloginfo('language');
75
+ if (!empty($blog_language)) {
76
+ echo "<meta name='shareaholic:language' content='" . $blog_language . "' />\n";
77
+ }
78
+ }
79
+
80
+ /**
81
+ * Draws Shareaholic site name meta tag.
82
  */
83
  private static function draw_site_name_meta_tag() {
84
  $blog_name = get_bloginfo();
85
  if (!empty($blog_name)) {
86
+ echo "<meta name='shareaholic:site_name' content='" . $blog_name . "' />\n";
87
  }
88
  }
89
 
90
  /**
91
+ * Draws Shareaholic image tag. Will only run on pages or posts.
92
  */
93
  private static function draw_image_meta_tag() {
94
  global $post;
95
  if (in_array(ShareaholicUtilities::page_type(), array('page', 'post'))) {
96
  if (has_post_thumbnail($post->ID)) {
97
  $thumbnail_src = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'large');
98
+ echo "<meta name='shareaholic:image' content='" . esc_attr($thumbnail_src[0]) . "' />";
99
  } else {
100
  if ($first_image = self::post_first_image()) {
101
+ echo "<meta name='shareaholic:image' content='" . $first_image . "' />";
102
  }
103
  }
104
  }
113
  if (in_array(ShareaholicUtilities::page_type(), array('page', 'post'))) {
114
  global $post;
115
 
116
+ if (!get_post_meta($post->ID, 'shareaholic_disable_open_graph_tags', true) && $settings['disable_og_tags'] == "off") {
117
  if (has_post_thumbnail($post->ID)) {
118
  $thumbnail_src = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'large');
119
  echo "\n<!-- Shareaholic Open Graph Tags -->\n";
167
  global $post;
168
  $settings = ShareaholicUtilities::get_settings();
169
  $page_type = ShareaholicUtilities::page_type();
 
170
  foreach (array('share_buttons', 'recommendations') as $app) {
171
  if (!get_post_meta($post->ID, "shareaholic_disable_{$app}", true)) {
172
  if (isset($settings[$app]["{$page_type}_above_content"]) &&
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: shareaholic
3
  Tags: sexybookmarks, shareaholic, shareholic, facebook, twitter, linkedin, URL Shortener, bitly, tinyurl, Goo.gl, Google+1, Google Analytics, Google Plus, Google, Instapaper, Wish List, Digg, Gmail, Google Bookmarks, Translate, Tumblr, AIM, Yahoo Messenger, Delicious, StumbleUpon, mister wong, evernote, add this, addtoany, share this, sharethis, share and follow, share and enjoy, sharing is sexy, sharing is caring, yahoo, reddit, hackernews, tweet button, twitter button, fark, buffer, myspace, orkut, netlog, hubspot, weheartit, printfriendly, yammer, pinterest, google translate, bookmarks, social, email button, social share, socialize, sociable, sharebar, bookmark button, share button, social bookmarking, bookmarks menu, bookmarking, share, seo, analytics, stats, sharing, facebook like, facebook recommend, WPMU, mutisite, shortcode, yaarp, yarpp, nrelate, outbrain, linkwithin, related content, related posts, related, popular posts, popular, thumbnails, recommendations
4
  Requires at least: 2.7
5
  Tested up to: 3.5.2
6
- Stable tag: 7.0.0.5
7
 
8
  Adds an attractive social bookmarking menu and related content widget to your posts, pages, index, or any combination of the three.
9
 
@@ -141,7 +141,7 @@ Please see here: [Usage & Installation Instructions](https://shareaholic.com/too
141
 
142
  == Changelog ==
143
 
144
- = 7.0.0.5 =
145
  * Several bug fixes, in addition to -
146
  * Huge update! The plugin has been completely re-written from the ground up to be faster, simpler to use
147
  * Choose from snazzy new Related Post themes
@@ -150,6 +150,10 @@ Please see here: [Usage & Installation Instructions](https://shareaholic.com/too
150
  * Option to exclude any URL from Related Posts
151
  * Choose from new Share button themes! (including vertical share buttons!)
152
  * Additional URL shortener options
 
 
 
 
153
 
154
  = 6.1.3.8 =
155
  * Bugfix: fixed "Cannot use object of type WP_Error"
@@ -870,7 +874,7 @@ Please see here: [Usage & Installation Instructions](https://shareaholic.com/too
870
 
871
  == Upgrade Notice ==
872
 
873
- = 7.0.0.5 =
874
  * Huge update! Completely re-written from the ground up to be faster and with a new simple interface! Includes brand new Share button themes (including vertical share buttons!) and Related posts themes. Related Posts now come mobile optimized and responsive out of the box - Shareaholic automagically determines how many Related Posts to show given how much screen width it is given. You can now even customize your "You may also like" text and exclude URLs.
875
 
876
  = 6.1.3.5 =
3
  Tags: sexybookmarks, shareaholic, shareholic, facebook, twitter, linkedin, URL Shortener, bitly, tinyurl, Goo.gl, Google+1, Google Analytics, Google Plus, Google, Instapaper, Wish List, Digg, Gmail, Google Bookmarks, Translate, Tumblr, AIM, Yahoo Messenger, Delicious, StumbleUpon, mister wong, evernote, add this, addtoany, share this, sharethis, share and follow, share and enjoy, sharing is sexy, sharing is caring, yahoo, reddit, hackernews, tweet button, twitter button, fark, buffer, myspace, orkut, netlog, hubspot, weheartit, printfriendly, yammer, pinterest, google translate, bookmarks, social, email button, social share, socialize, sociable, sharebar, bookmark button, share button, social bookmarking, bookmarks menu, bookmarking, share, seo, analytics, stats, sharing, facebook like, facebook recommend, WPMU, mutisite, shortcode, yaarp, yarpp, nrelate, outbrain, linkwithin, related content, related posts, related, popular posts, popular, thumbnails, recommendations
4
  Requires at least: 2.7
5
  Tested up to: 3.5.2
6
+ Stable tag: 6.1.3.8
7
 
8
  Adds an attractive social bookmarking menu and related content widget to your posts, pages, index, or any combination of the three.
9
 
141
 
142
  == Changelog ==
143
 
144
+ = 7.0.0.6 =
145
  * Several bug fixes, in addition to -
146
  * Huge update! The plugin has been completely re-written from the ground up to be faster, simpler to use
147
  * Choose from snazzy new Related Post themes
150
  * Option to exclude any URL from Related Posts
151
  * Choose from new Share button themes! (including vertical share buttons!)
152
  * Additional URL shortener options
153
+ * "Pages" now also have options to exclude Share Buttons, Recommendations
154
+ * Addition of new shareaholic:language tag to improve related content and recommendations computation
155
+ * Bugfix: Facebook Debugger will no longer show "Parser Mismatched Metadata" warnings
156
+ * Bugfix: Page titles are now properly encoded
157
 
158
  = 6.1.3.8 =
159
  * Bugfix: fixed "Cannot use object of type WP_Error"
874
 
875
  == Upgrade Notice ==
876
 
877
+ = 7.0.0.6 =
878
  * Huge update! Completely re-written from the ground up to be faster and with a new simple interface! Includes brand new Share button themes (including vertical share buttons!) and Related posts themes. Related Posts now come mobile optimized and responsive out of the box - Shareaholic automagically determines how many Related Posts to show given how much screen width it is given. You can now even customize your "You may also like" text and exclude URLs.
879
 
880
  = 6.1.3.5 =
shareaholic.php CHANGED
@@ -8,7 +8,7 @@
8
  Plugin Name: Shareaholic | share buttons, analytics, related content
9
  Plugin URI: https://shareaholic.com/publishers/
10
  Description: Whether you want to get people sharing, grow your fans, make money, or know who's reading your content, Shareaholic will help you get it done. See <a href="admin.php?page=shareaholic-settings">configuration panel</a> for more settings.
11
- Version: 7.0.0.5
12
  Author: Shareaholic
13
  Author URI: https://shareaholic.com
14
  Credits & Thanks: https://shareaholic.com/tools/wordpress/credits
@@ -39,7 +39,7 @@ require_once(SHAREAHOLIC_DIR . '/deprecation.php');
39
  */
40
  class Shareaholic {
41
  const URL = 'https://shareaholic.com';
42
- const VERSION = '7.0.0.5';
43
  private static $instance = false;
44
 
45
  /**
@@ -88,7 +88,8 @@ class Shareaholic {
88
  */
89
  public static function init() {
90
  self::update();
91
- if (ShareaholicUtilities::has_accepted_terms_of_service()) {
 
92
  ShareaholicUtilities::get_or_create_api_key();
93
  }
94
  }
8
  Plugin Name: Shareaholic | share buttons, analytics, related content
9
  Plugin URI: https://shareaholic.com/publishers/
10
  Description: Whether you want to get people sharing, grow your fans, make money, or know who's reading your content, Shareaholic will help you get it done. See <a href="admin.php?page=shareaholic-settings">configuration panel</a> for more settings.
11
+ Version: 7.0.0.6
12
  Author: Shareaholic
13
  Author URI: https://shareaholic.com
14
  Credits & Thanks: https://shareaholic.com/tools/wordpress/credits
39
  */
40
  class Shareaholic {
41
  const URL = 'https://shareaholic.com';
42
+ const VERSION = '7.0.0.6';
43
  private static $instance = false;
44
 
45
  /**
88
  */
89
  public static function init() {
90
  self::update();
91
+ if (ShareaholicUtilities::has_accepted_terms_of_service() &&
92
+ isset($_GET['page']) && preg_match('/shareaholic/', $_GET['page'])) {
93
  ShareaholicUtilities::get_or_create_api_key();
94
  }
95
  }
six_to_seven.php CHANGED
@@ -273,7 +273,7 @@ class ShareaholicSixToSeven {
273
  */
274
  private static function transform_classicbookmarks_locations($classicbookmarks_configuration) {
275
  $result = array(
276
- 'services' => array('facebook', 'twitter', 'email_this', 'pinterest', 'tumblr', 'google_plus', 'linked_in'),
277
  );
278
 
279
  if ($classicbookmarks_configuration['size'] == '16') {
273
  */
274
  private static function transform_classicbookmarks_locations($classicbookmarks_configuration) {
275
  $result = array(
276
+ 'services' => array('facebook', 'twitter', 'email_this', 'pinterest', 'tumblr', 'google_plus', 'linkedin'),
277
  );
278
 
279
  if ($classicbookmarks_configuration['size'] == '16') {
templates/advanced_settings.php CHANGED
@@ -2,7 +2,7 @@
2
  <div id="icon-options-general" class="icon32"></div>
3
  <h2><?php echo sprintf(__('Shareaholic: Advanced Settings', 'shareaholic')); ?></h2>
4
  <div style="margin-top:20px;"></div>
5
- <?php echo sprintf(__('You rarely need to edit these settings. We recommend keeping with the default. ', 'shareaholic')); ?>
6
  <div style="min-height:300px;">
7
  <form name='advanced_settings' method='post' action='<?php echo $action ?>'>
8
  <input type='hidden' name='already_submitted' value='Y'>
@@ -12,16 +12,13 @@
12
  <?php if (isset($settings['disable_tracking'])) { ?>
13
  <?php echo ($settings['disable_tracking'] == 'on' ? 'checked' : '') ?>
14
  <?php } ?>>
15
- <label style="display: inline-block;" for="tracking"><?php echo sprintf(__('Disable Analytics', 'shareaholic')); ?> <?php echo sprintf(__('(not recommended)', 'shareaholic')); ?></label>
16
  <br />
17
  <input type='checkbox' id='og_tags' name='shareaholic[disable_og_tags]' class='check'
18
  <?php if (isset($settings['disable_og_tags'])) { ?>
19
  <?php echo ($settings['disable_og_tags'] == 'on' ? 'checked' : '') ?>
20
  <?php } ?>>
21
- <label style="display: inline-block;" for="og_tags"><?php echo sprintf(__('Do not automatically include <code>Open Graph</code> tags', 'shareaholic')); ?> <?php echo sprintf(__('(not recommended)', 'shareaholic')); ?></label>
22
-
23
- <br />
24
-
25
  </fieldset>
26
  </div>
27
 
2
  <div id="icon-options-general" class="icon32"></div>
3
  <h2><?php echo sprintf(__('Shareaholic: Advanced Settings', 'shareaholic')); ?></h2>
4
  <div style="margin-top:20px;"></div>
5
+ <?php echo sprintf(__('You rarely should need to edit the settings on this page.', 'shareaholic')); ?>
6
  <div style="min-height:300px;">
7
  <form name='advanced_settings' method='post' action='<?php echo $action ?>'>
8
  <input type='hidden' name='already_submitted' value='Y'>
12
  <?php if (isset($settings['disable_tracking'])) { ?>
13
  <?php echo ($settings['disable_tracking'] == 'on' ? 'checked' : '') ?>
14
  <?php } ?>>
15
+ <label style="display: inline-block;" for="tracking"><?php echo sprintf(__('Disable Analytics', 'shareaholic')); ?> <?php echo sprintf(__('(it is recommended NOT to disable analytics)', 'shareaholic')); ?></label>
16
  <br />
17
  <input type='checkbox' id='og_tags' name='shareaholic[disable_og_tags]' class='check'
18
  <?php if (isset($settings['disable_og_tags'])) { ?>
19
  <?php echo ($settings['disable_og_tags'] == 'on' ? 'checked' : '') ?>
20
  <?php } ?>>
21
+ <label style="display: inline-block;" for="og_tags"><?php echo sprintf(__('Do not automatically include <code>Open Graph</code> tags', 'shareaholic')); ?> <?php echo sprintf(__('(it is recommended NOT to disable open graph tags)', 'shareaholic')); ?></label>
 
 
 
22
  </fieldset>
23
  </div>
24
 
templates/footer.php CHANGED
@@ -5,6 +5,6 @@
5
  </small>
6
  <br />
7
  <small class="muted">
8
- <?php echo sprintf(__('If you like our work, show some love and %sgive us a good rating%s. Thanks for using Shareaholic, made with much love in Boston, Massachusetts.', 'shareaholic'), '<a href="http://wordpress.org/support/view/plugin-reviews/shareaholic" target="_new">', '</a>'); ?>
9
  </small>
10
  </div>
5
  </small>
6
  <br />
7
  <small class="muted">
8
+ <?php echo sprintf(__('If you like our work, show some love and %sgive us a good rating%s. Made with much love in Boston, Massachusetts.', 'shareaholic'), '<a href="http://wordpress.org/support/view/plugin-reviews/shareaholic" target="_new">', '</a>'); ?>
9
  </small>
10
  </div>
templates/meta_boxes.php CHANGED
@@ -5,21 +5,23 @@
5
  <?php } ?>>
6
  <?php echo sprintf(__('Hide Share Buttons', 'shareaholic')); ?>
7
  </label>
 
8
  <br>
9
 
10
  <label>
11
- <input type='checkbox' name='shareaholic[disable_open_graph_tags]'
12
- <?php if (get_post_meta($post->ID, 'shareaholic_disable_open_graph_tags', true)) { ?>
13
  checked
14
  <?php } ?>>
15
- <?php echo sprintf(__('Do not include Open Graph tags', 'shareaholic')); ?>
16
  </label>
 
17
  <br>
18
 
19
  <label>
20
- <input type='checkbox' name='shareaholic[disable_recommendations]'
21
- <?php if (get_post_meta($post->ID, 'shareaholic_disable_recommendations', true)) { ?>
22
  checked
23
  <?php } ?>>
24
- <?php echo sprintf(__('Hide Related Content', 'shareaholic')); ?>
25
- </label>
5
  <?php } ?>>
6
  <?php echo sprintf(__('Hide Share Buttons', 'shareaholic')); ?>
7
  </label>
8
+
9
  <br>
10
 
11
  <label>
12
+ <input type='checkbox' name='shareaholic[disable_recommendations]'
13
+ <?php if (get_post_meta($post->ID, 'shareaholic_disable_recommendations', true)) { ?>
14
  checked
15
  <?php } ?>>
16
+ <?php echo sprintf(__('Hide Related Content', 'shareaholic')); ?>
17
  </label>
18
+
19
  <br>
20
 
21
  <label>
22
+ <input type='checkbox' name='shareaholic[disable_open_graph_tags]'
23
+ <?php if (get_post_meta($post->ID, 'shareaholic_disable_open_graph_tags', true)) { ?>
24
  checked
25
  <?php } ?>>
26
+ <?php echo sprintf(__('Do not include Open Graph tags', 'shareaholic')); ?>
27
+ </label>
templates/script_tag.php CHANGED
@@ -1,4 +1,4 @@
1
- <script data-cfasync='false' type='text/javascript'>
2
  //<![CDATA[
3
  (function() {
4
  var shr = document.createElement('script');
1
+ <script type='text/javascript'>
2
  //<![CDATA[
3
  (function() {
4
  var shr = document.createElement('script');
utilities.php CHANGED
@@ -61,7 +61,7 @@ class ShareaholicUtilities {
61
  */
62
  private static function defaults() {
63
  return array(
64
- 'disable_tracking' => false,
65
  'api_key' => '',
66
  'verification_key' => '',
67
  );
@@ -255,6 +255,14 @@ class ShareaholicUtilities {
255
  // an update so big, it gets it's own class!
256
  ShareaholicSixToSeven::update();
257
  }
 
 
 
 
 
 
 
 
258
  // any other things that need to be updated
259
  }
260
 
@@ -554,4 +562,4 @@ class ShareaholicUtilities {
554
  }
555
 
556
  }
557
- ?>
61
  */
62
  private static function defaults() {
63
  return array(
64
+ 'disable_tracking' => 'off',
65
  'api_key' => '',
66
  'verification_key' => '',
67
  );
255
  // an update so big, it gets it's own class!
256
  ShareaholicSixToSeven::update();
257
  }
258
+ if (self::get_option('metakey_6to7_upgraded') != 'true') {
259
+ global $wpdb;
260
+ $results = $wpdb->query( "UPDATE `wp_postmeta` SET `meta_key` = 'shareaholic_disable_open_graph_tags' WHERE `meta_key` = 'Hide OgTags'" );
261
+ $results = $wpdb->query( "UPDATE `wp_postmeta` SET `meta_key` = 'shareaholic_disable_share_buttons' WHERE `meta_key` = 'Hide SexyBookmarks'" );
262
+ self::update_options(array('disable_tracking' => 'off'));
263
+ self::update_options(array('disable_og_tags' => 'off'));
264
+ self::update_options(array('metakey_6to7_upgraded' => 'true'));
265
+ }
266
  // any other things that need to be updated
267
  }
268
 
562
  }
563
 
564
  }
565
+ ?>