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
- Bugfix: URL Shortener is now being set properly when upgrading from v6 or earlier
- More robust curl function, more robust plugin
- Show Related Posts data status
Download this release
Release Info
Developer | shareaholic |
Plugin | WordPress Social Tools, Related Posts, Monetization – Shareaholic |
Version | 7.0.1.0 |
Comparing to | |
See all releases |
Code changes from version 7.0.0.10 to 7.0.1.0
- public.php +3 -1
- readme.txt +4 -3
- shareaholic.php +3 -3
- six_to_seven.php +9 -2
- utilities.php +0 -2
public.php
CHANGED
@@ -206,12 +206,14 @@ class ShareaholicPublic {
|
|
206 |
public static function canvas($id, $app) {
|
207 |
global $post, $wp_query;
|
208 |
$page_type = ShareaholicUtilities::page_type();
|
209 |
-
|
210 |
data-app-id='$id'
|
211 |
data-app='$app'
|
212 |
data-title='" . htmlspecialchars($post->post_title, ENT_QUOTES) . "'
|
213 |
data-link='" . get_permalink($post->ID) . "'
|
214 |
data-summary='" . urlencode(strip_tags(strip_shortcodes($post->post_excerpt))) . "'></div>";
|
|
|
|
|
215 |
}
|
216 |
}
|
217 |
|
206 |
public static function canvas($id, $app) {
|
207 |
global $post, $wp_query;
|
208 |
$page_type = ShareaholicUtilities::page_type();
|
209 |
+
$canvas = "<div class='shareaholic-canvas'
|
210 |
data-app-id='$id'
|
211 |
data-app='$app'
|
212 |
data-title='" . htmlspecialchars($post->post_title, ENT_QUOTES) . "'
|
213 |
data-link='" . get_permalink($post->ID) . "'
|
214 |
data-summary='" . urlencode(strip_tags(strip_shortcodes($post->post_excerpt))) . "'></div>";
|
215 |
+
|
216 |
+
return trim(preg_replace('/\s+/', ' ', $canvas));
|
217 |
}
|
218 |
}
|
219 |
|
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
|
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
|
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
|
@@ -154,6 +154,7 @@ Please see here: [Usage & Installation Instructions](https://shareaholic.com/too
|
|
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 |
* More robust curl function, more robust plugin
|
158 |
* Show Related Posts data status
|
159 |
|
@@ -876,7 +877,7 @@ Please see here: [Usage & Installation Instructions](https://shareaholic.com/too
|
|
876 |
|
877 |
== Upgrade Notice ==
|
878 |
|
879 |
-
= 7.0.0
|
880 |
* 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.
|
881 |
|
882 |
= 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: 7.0.1.0
|
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.1.0 =
|
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
|
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 |
+
* Bugfix: URL Shortener is now being set properly when upgrading from v6 or earlier
|
158 |
* More robust curl function, more robust plugin
|
159 |
* Show Related Posts data status
|
160 |
|
877 |
|
878 |
== Upgrade Notice ==
|
879 |
|
880 |
+
= 7.0.1.0 =
|
881 |
* 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.
|
882 |
|
883 |
= 6.1.3.5 =
|
shareaholic.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
* The main and first file!
|
4 |
*
|
5 |
* @package shareaholic
|
6 |
-
* @version 7.0.0
|
7 |
*/
|
8 |
|
9 |
/*
|
10 |
Plugin Name: Shareaholic | share buttons, analytics, related content
|
11 |
Plugin URI: https://shareaholic.com/publishers/
|
12 |
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.
|
13 |
-
Version: 7.0.0
|
14 |
Author: Shareaholic
|
15 |
Author URI: https://shareaholic.com
|
16 |
Credits & Thanks: https://shareaholic.com/tools/wordpress/credits
|
@@ -43,7 +43,7 @@ require_once(SHAREAHOLIC_DIR . '/deprecation.php');
|
|
43 |
*/
|
44 |
class Shareaholic {
|
45 |
const URL = 'https://shareaholic.com';
|
46 |
-
const VERSION = '7.0.0
|
47 |
/**
|
48 |
* Starts off as false so that ::get_instance() returns
|
49 |
* a new instance.
|
3 |
* The main and first file!
|
4 |
*
|
5 |
* @package shareaholic
|
6 |
+
* @version 7.0.1.0
|
7 |
*/
|
8 |
|
9 |
/*
|
10 |
Plugin Name: Shareaholic | share buttons, analytics, related content
|
11 |
Plugin URI: https://shareaholic.com/publishers/
|
12 |
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.
|
13 |
+
Version: 7.0.1.0
|
14 |
Author: Shareaholic
|
15 |
Author URI: https://shareaholic.com
|
16 |
Credits & Thanks: https://shareaholic.com/tools/wordpress/credits
|
43 |
*/
|
44 |
class Shareaholic {
|
45 |
const URL = 'https://shareaholic.com';
|
46 |
+
const VERSION = '7.0.1.0';
|
47 |
/**
|
48 |
* Starts off as false so that ::get_instance() returns
|
49 |
* a new instance.
|
six_to_seven.php
CHANGED
@@ -216,13 +216,16 @@ class ShareaholicSixToSeven {
|
|
216 |
* include 'shortener_api_key' and 'shortener_login'
|
217 |
*/
|
218 |
private static function transform_shortener_configuration($share_buttons_configuration) {
|
219 |
-
$shortener = $share_buttons_configuration['shorty'];
|
220 |
|
221 |
switch ($shortener) {
|
222 |
case 'goog':
|
223 |
return array('shortener' => 'googl');
|
|
|
224 |
case 'tiny':
|
225 |
return array('shortener' => 'tinyurl');
|
|
|
|
|
226 |
case 'yourls':
|
227 |
case 'tflp':
|
228 |
case 'slly':
|
@@ -235,9 +238,13 @@ class ShareaholicSixToSeven {
|
|
235 |
case 'awesm':
|
236 |
case 'supr':
|
237 |
return array('shortener' => 'shrlc');
|
|
|
|
|
|
|
|
|
238 |
default:
|
239 |
return array(
|
240 |
-
'shortener' => $shortener,
|
241 |
'shortener_api_key' => (isset($share_buttons_configuration['shortyapi'][$shortener]['key'])
|
242 |
? $share_buttons_configuration['shortyapi'][$shortener]['key'] : ''),
|
243 |
'shortener_login' => (isset($share_buttons_configuration['shortyapi'][$shortener]['user'])
|
216 |
* include 'shortener_api_key' and 'shortener_login'
|
217 |
*/
|
218 |
private static function transform_shortener_configuration($share_buttons_configuration) {
|
219 |
+
$shortener = isset($share_buttons_configuration['shorty']) ? $share_buttons_configuration['shorty'] : NULL;
|
220 |
|
221 |
switch ($shortener) {
|
222 |
case 'goog':
|
223 |
return array('shortener' => 'googl');
|
224 |
+
break;
|
225 |
case 'tiny':
|
226 |
return array('shortener' => 'tinyurl');
|
227 |
+
break;
|
228 |
+
case 'shrlc':
|
229 |
case 'yourls':
|
230 |
case 'tflp':
|
231 |
case 'slly':
|
238 |
case 'awesm':
|
239 |
case 'supr':
|
240 |
return array('shortener' => 'shrlc');
|
241 |
+
break;
|
242 |
+
case '':
|
243 |
+
return array('shortener' => 'shrlc');
|
244 |
+
break;
|
245 |
default:
|
246 |
return array(
|
247 |
+
'shortener' => $shortener ? $shortener : 'shrlc',
|
248 |
'shortener_api_key' => (isset($share_buttons_configuration['shortyapi'][$shortener]['key'])
|
249 |
? $share_buttons_configuration['shortyapi'][$shortener]['key'] : ''),
|
250 |
'shortener_login' => (isset($share_buttons_configuration['shortyapi'][$shortener]['user'])
|
utilities.php
CHANGED
@@ -423,8 +423,6 @@ class ShareaholicUtilities {
|
|
423 |
}
|
424 |
delete_option('shareaholic_settings');
|
425 |
|
426 |
-
ShareaholicUtilities::log_event('CreatingNewApiKey', $things_to_log);
|
427 |
-
|
428 |
$verification_key = md5(mt_rand());
|
429 |
$response = ShareaholicCurl::post(Shareaholic::URL . '/publisher_tools/anonymous', array(
|
430 |
'configuration_publisher' => array(
|
423 |
}
|
424 |
delete_option('shareaholic_settings');
|
425 |
|
|
|
|
|
426 |
$verification_key = md5(mt_rand());
|
427 |
$response = ShareaholicCurl::post(Shareaholic::URL . '/publisher_tools/anonymous', array(
|
428 |
'configuration_publisher' => array(
|