Version Description
- Shareaholic Apps are now included on static front page displays
Download this release
Release Info
Developer | shareaholic |
Plugin | WordPress Social Tools, Related Posts, Monetization – Shareaholic |
Version | 7.0.6.0 |
Comparing to | |
See all releases |
Code changes from version 7.0.5.1 to 7.0.6.0
- assets/css/main.css +5 -0
- readme.txt +7 -2
- shareaholic.php +3 -3
- templates/settings.php +14 -10
- utilities.php +11 -3
assets/css/main.css
CHANGED
@@ -29,6 +29,11 @@ fieldset {
|
|
29 |
font-size: 20px;
|
30 |
}
|
31 |
|
|
|
|
|
|
|
|
|
|
|
32 |
legend {
|
33 |
border: none;
|
34 |
width: auto;
|
29 |
font-size: 20px;
|
30 |
}
|
31 |
|
32 |
+
.app label {
|
33 |
+
font-size: 12px;
|
34 |
+
display: inline;
|
35 |
+
}
|
36 |
+
|
37 |
legend {
|
38 |
border: none;
|
39 |
width: auto;
|
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, wanelo, 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.7.1
|
6 |
-
Stable tag: 7.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 |
|
@@ -148,10 +148,12 @@ Please see here: [Usage & Installation Instructions](https://shareaholic.com/too
|
|
148 |
|
149 |
== Changelog ==
|
150 |
|
|
|
|
|
|
|
151 |
= 7.0.5.1 =
|
152 |
* [Bugfix](http://wordpress.org/support/topic/new-updated-shareaholic-not-working): Check for array
|
153 |
|
154 |
-
|
155 |
= 7.0.5.0 =
|
156 |
* Related Content
|
157 |
* New or modified posts are now automatically updated in your Shareaholic Related Content index within an hour!
|
@@ -976,6 +978,9 @@ Please see here: [Usage & Installation Instructions](https://shareaholic.com/too
|
|
976 |
|
977 |
== Upgrade Notice ==
|
978 |
|
|
|
|
|
|
|
979 |
= 7.0.5.1 =
|
980 |
Bug fixes
|
981 |
|
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, wanelo, 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.7.1
|
6 |
+
Stable tag: 7.0.6.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 |
|
148 |
|
149 |
== Changelog ==
|
150 |
|
151 |
+
= 7.0.6.0 =
|
152 |
+
* Shareaholic Apps are now included on static front page displays
|
153 |
+
|
154 |
= 7.0.5.1 =
|
155 |
* [Bugfix](http://wordpress.org/support/topic/new-updated-shareaholic-not-working): Check for array
|
156 |
|
|
|
157 |
= 7.0.5.0 =
|
158 |
* Related Content
|
159 |
* New or modified posts are now automatically updated in your Shareaholic Related Content index within an hour!
|
978 |
|
979 |
== Upgrade Notice ==
|
980 |
|
981 |
+
= 7.0.6.0 =
|
982 |
+
Shareaholic Apps are now included on static front page displays
|
983 |
+
|
984 |
= 7.0.5.1 =
|
985 |
Bug fixes
|
986 |
|
shareaholic.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
* The main file!
|
4 |
*
|
5 |
* @package shareaholic
|
6 |
-
* @version 7.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.
|
14 |
Author: Shareaholic
|
15 |
Author URI: https://shareaholic.com
|
16 |
Text Domain: shareaholic
|
@@ -54,7 +54,7 @@ require_once(SHAREAHOLIC_DIR . '/deprecation.php');
|
|
54 |
class Shareaholic {
|
55 |
const URL = 'https://shareaholic.com';
|
56 |
const URL_CM = 'https://cm.shareaholic.com';
|
57 |
-
const VERSION = '7.0.
|
58 |
|
59 |
/**
|
60 |
* Starts off as false so that ::get_instance() returns
|
3 |
* The main file!
|
4 |
*
|
5 |
* @package shareaholic
|
6 |
+
* @version 7.0.6.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.6.0
|
14 |
Author: Shareaholic
|
15 |
Author URI: https://shareaholic.com
|
16 |
Text Domain: shareaholic
|
54 |
class Shareaholic {
|
55 |
const URL = 'https://shareaholic.com';
|
56 |
const URL_CM = 'https://cm.shareaholic.com';
|
57 |
+
const VERSION = '7.0.6.0';
|
58 |
|
59 |
/**
|
60 |
* Starts off as false so that ::get_instance() returns
|
templates/settings.php
CHANGED
@@ -33,14 +33,16 @@ window.verification_key = '<?php echo $settings['verification_key'] ?>'
|
|
33 |
<?php $location_id = $settings['location_name_ids']['share_buttons']["{$page_type}_{$position}_content"] ?>
|
34 |
<?php } else { $location_id = ''; } ?>
|
35 |
<div>
|
36 |
-
<input type="checkbox" name="share_buttons[<?php echo "{$page_type}_{$position}_content" ?>]" class="check"
|
37 |
<?php if (isset($share_buttons["{$page_type}_{$position}_content"])) { ?>
|
38 |
<?php echo ($share_buttons["{$page_type}_{$position}_content"] == 'on' ? 'checked' : '') ?>
|
39 |
<?php } ?>>
|
40 |
-
<?php echo ucfirst($position) ?> Content
|
41 |
-
|
42 |
-
|
43 |
-
|
|
|
|
|
44 |
</div>
|
45 |
<?php } ?>
|
46 |
</fieldset>
|
@@ -58,14 +60,16 @@ window.verification_key = '<?php echo $settings['verification_key'] ?>'
|
|
58 |
<fieldset id='recommendations'>
|
59 |
<legend><?php echo ucfirst($page_type) ?></legend>
|
60 |
<div>
|
61 |
-
<input type="checkbox" name="recommendations[<?php echo "{$page_type}_below_content" ?>]" class="check"
|
62 |
<?php if (isset($recommendations["{$page_type}_below_content"])) { ?>
|
63 |
<?php echo ($recommendations["{$page_type}_below_content"] == 'on' ? 'checked' : '') ?>
|
64 |
<?php } ?>>
|
65 |
-
<?php echo ucfirst($position) ?> Content
|
66 |
-
|
67 |
-
|
68 |
-
|
|
|
|
|
69 |
</div>
|
70 |
</fieldset>
|
71 |
<?php } ?>
|
33 |
<?php $location_id = $settings['location_name_ids']['share_buttons']["{$page_type}_{$position}_content"] ?>
|
34 |
<?php } else { $location_id = ''; } ?>
|
35 |
<div>
|
36 |
+
<input type="checkbox" id="share_buttons_<?php echo "{$page_type}_{$position}_content" ?>" name="share_buttons[<?php echo "{$page_type}_{$position}_content" ?>]" class="check"
|
37 |
<?php if (isset($share_buttons["{$page_type}_{$position}_content"])) { ?>
|
38 |
<?php echo ($share_buttons["{$page_type}_{$position}_content"] == 'on' ? 'checked' : '') ?>
|
39 |
<?php } ?>>
|
40 |
+
<label for="share_buttons_<?php echo "{$page_type}_{$position}_content" ?>"><?php echo ucfirst($position) ?> Content</label>
|
41 |
+
<button data-app='share_buttons'
|
42 |
+
data-location_id='<?php echo $location_id ?>'
|
43 |
+
data-href='share_buttons/locations/{{id}}/edit'
|
44 |
+
class="btn btn-success">
|
45 |
+
<?php _e('Customize', 'shareaholic'); ?></button>
|
46 |
</div>
|
47 |
<?php } ?>
|
48 |
</fieldset>
|
60 |
<fieldset id='recommendations'>
|
61 |
<legend><?php echo ucfirst($page_type) ?></legend>
|
62 |
<div>
|
63 |
+
<input type="checkbox" id="recommendations_<?php echo "{$page_type}_below_content" ?>" name="recommendations[<?php echo "{$page_type}_below_content" ?>]" class="check"
|
64 |
<?php if (isset($recommendations["{$page_type}_below_content"])) { ?>
|
65 |
<?php echo ($recommendations["{$page_type}_below_content"] == 'on' ? 'checked' : '') ?>
|
66 |
<?php } ?>>
|
67 |
+
<label for="recommendations_<?php echo "{$page_type}_below_content" ?>"><?php echo ucfirst($position) ?> Content</label>
|
68 |
+
<button data-app='recommendations'
|
69 |
+
data-location_id='<?php echo $location_id ?>'
|
70 |
+
data-href="recommendations/locations/{{id}}/edit"
|
71 |
+
class="btn btn-success">
|
72 |
+
<?php _e('Customize', 'shareaholic'); ?></button>
|
73 |
</div>
|
74 |
</fieldset>
|
75 |
<?php } ?>
|
utilities.php
CHANGED
@@ -287,13 +287,13 @@ class ShareaholicUtilities {
|
|
287 |
* @return string
|
288 |
*/
|
289 |
public static function page_type() {
|
290 |
-
if (is_front_page()) {
|
291 |
return 'index';
|
292 |
} elseif (is_page()) {
|
293 |
return 'page';
|
294 |
} elseif (is_single()) {
|
295 |
return 'post';
|
296 |
-
} elseif (is_category()) {
|
297 |
return 'category';
|
298 |
}
|
299 |
}
|
@@ -602,12 +602,20 @@ class ShareaholicUtilities {
|
|
602 |
$language_id = 34; // Turkish
|
603 |
} elseif (strpos($site_language, 'el-') !== false) {
|
604 |
$language_id = 14; // Greek
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
605 |
} else {
|
606 |
$language_id = NULL;
|
607 |
}
|
608 |
return $language_id;
|
609 |
}
|
610 |
-
|
611 |
/**
|
612 |
* Shockingly the built in PHP array_merge_recursive function is stupid.
|
613 |
* this is stolen from the PHP docs and will overwrite existing keys instead
|
287 |
* @return string
|
288 |
*/
|
289 |
public static function page_type() {
|
290 |
+
if (is_front_page() || is_home()) {
|
291 |
return 'index';
|
292 |
} elseif (is_page()) {
|
293 |
return 'page';
|
294 |
} elseif (is_single()) {
|
295 |
return 'post';
|
296 |
+
} elseif (is_category() || is_author() || is_tag() || is_date()) {
|
297 |
return 'category';
|
298 |
}
|
299 |
}
|
602 |
$language_id = 34; // Turkish
|
603 |
} elseif (strpos($site_language, 'el-') !== false) {
|
604 |
$language_id = 14; // Greek
|
605 |
+
} elseif (strpos($site_language, 'nl-') !== false) {
|
606 |
+
$language_id = 8; // Dutch
|
607 |
+
} elseif (strpos($site_language, 'pl-') !== false) {
|
608 |
+
$language_id = 24; // Polish
|
609 |
+
} elseif (strpos($site_language, 'ru-') !== false) {
|
610 |
+
$language_id = 27; // Russian
|
611 |
+
} elseif (strpos($site_language, 'cs-') !== false) {
|
612 |
+
$language_id = 6; // Czech
|
613 |
} else {
|
614 |
$language_id = NULL;
|
615 |
}
|
616 |
return $language_id;
|
617 |
}
|
618 |
+
|
619 |
/**
|
620 |
* Shockingly the built in PHP array_merge_recursive function is stupid.
|
621 |
* this is stolen from the PHP docs and will overwrite existing keys instead
|