Version Description
- Support for additional Shareaholic content meta tags
- shareaholic:article_visibility
- shareaholic:article_published_time
- shareaholic:article_modified_time
- shareaholic:article_author_name
Download this release
Release Info
Developer | shareaholic |
Plugin | WordPress Social Tools, Related Posts, Monetization – Shareaholic |
Version | 7.0.4.7 |
Comparing to | |
See all releases |
Code changes from version 7.0.4.6 to 7.0.4.7
- public.php +48 -2
- readme.txt +11 -1
- shareaholic.php +3 -3
- templates/footer.php +2 -2
- templates/settings.php +2 -2
public.php
CHANGED
@@ -92,6 +92,7 @@ class ShareaholicPublic {
|
|
92 |
self::draw_language_meta_tag();
|
93 |
self::draw_url_meta_tag();
|
94 |
self::draw_keywords_meta_tag();
|
|
|
95 |
self::draw_plugin_version_meta_tag();
|
96 |
self::draw_image_meta_tag();
|
97 |
echo "\n<!-- Shareaholic Content Tags End -->\n";
|
@@ -136,7 +137,7 @@ class ShareaholicPublic {
|
|
136 |
}
|
137 |
|
138 |
// Support for All in One SEO Pack keywords
|
139 |
-
$keywords .= stripslashes(get_post_meta($post->ID, '_aioseop_keywords', true));
|
140 |
|
141 |
// Encode & trim appropriately
|
142 |
$keywords = trim(strtolower(trim(htmlspecialchars(htmlspecialchars_decode($keywords), ENT_QUOTES))), ",");
|
@@ -152,7 +153,52 @@ class ShareaholicPublic {
|
|
152 |
}
|
153 |
}
|
154 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
/**
|
157 |
* Draws Shareaholic language meta tag.
|
158 |
*/
|
@@ -311,7 +357,7 @@ class ShareaholicPublic {
|
|
311 |
$data_title = ((trim($title) != NULL) ? $title : htmlspecialchars($post->post_title, ENT_QUOTES));
|
312 |
$data_link = ((trim($link) != NULL) ? trim($link) : get_permalink($post->ID));
|
313 |
$data_summary = ((trim($summary) != NULL) ? $summary : htmlspecialchars(strip_tags(strip_shortcodes($post->post_excerpt)), ENT_QUOTES));
|
314 |
-
|
315 |
$canvas = "<div class='shareaholic-canvas'
|
316 |
data-app-id='$id'
|
317 |
data-app='$app'
|
92 |
self::draw_language_meta_tag();
|
93 |
self::draw_url_meta_tag();
|
94 |
self::draw_keywords_meta_tag();
|
95 |
+
self::draw_article_meta_tag();
|
96 |
self::draw_plugin_version_meta_tag();
|
97 |
self::draw_image_meta_tag();
|
98 |
echo "\n<!-- Shareaholic Content Tags End -->\n";
|
137 |
}
|
138 |
|
139 |
// Support for All in One SEO Pack keywords
|
140 |
+
$keywords .= ', '.stripslashes(get_post_meta($post->ID, '_aioseop_keywords', true));
|
141 |
|
142 |
// Encode & trim appropriately
|
143 |
$keywords = trim(strtolower(trim(htmlspecialchars(htmlspecialchars_decode($keywords), ENT_QUOTES))), ",");
|
153 |
}
|
154 |
}
|
155 |
}
|
156 |
+
|
157 |
+
/**
|
158 |
+
* Draws Shareaholic article meta tags
|
159 |
+
*/
|
160 |
+
private static function draw_article_meta_tag() {
|
161 |
+
if (in_array(ShareaholicUtilities::page_type(), array('page', 'post'))) {
|
162 |
+
global $post;
|
163 |
+
|
164 |
+
// Article Publish and Modified Time
|
165 |
+
$article_published_time = strtotime($post->post_date_gmt);
|
166 |
+
$article_modified_time = strtotime(get_lastpostmodified('GMT'));
|
167 |
|
168 |
+
if (!empty($article_published_time)) {
|
169 |
+
echo "<meta name='shareaholic:article_published_time' content='" . date('c', $article_published_time) . "' />\n";
|
170 |
+
}
|
171 |
+
if (!empty($article_modified_time)) {
|
172 |
+
echo "<meta name='shareaholic:article_modified_time' content='" . date('c', $article_modified_time) . "' />\n";
|
173 |
+
}
|
174 |
+
|
175 |
+
// Article Visibility
|
176 |
+
$article_visibility = $post->post_status;
|
177 |
+
$article_password = $post->post_password;
|
178 |
+
|
179 |
+
if ($article_visibility == 'draft' || $article_visibility == 'auto-draft'){
|
180 |
+
$article_visibility = 'draft';
|
181 |
+
} else if ($article_visibility == 'private' || $post->post_password != '') {
|
182 |
+
$article_visibility = 'private';
|
183 |
+
} else {
|
184 |
+
$article_visibility = NULL;
|
185 |
+
}
|
186 |
+
|
187 |
+
if (!empty($article_visibility)) {
|
188 |
+
echo "<meta name='shareaholic:article_visibility' content='" . $article_visibility . "' />\n";
|
189 |
+
}
|
190 |
+
|
191 |
+
// Article Author Name
|
192 |
+
if ($post->post_author) {
|
193 |
+
$article_author_data = get_userdata($post->post_author);
|
194 |
+
$article_author_name = $article_author_data->display_name;
|
195 |
+
}
|
196 |
+
if (!empty($article_author_name)) {
|
197 |
+
echo "<meta name='shareaholic:article_author_name' content='" . $article_author_name . "' />\n";
|
198 |
+
}
|
199 |
+
}
|
200 |
+
}
|
201 |
+
|
202 |
/**
|
203 |
* Draws Shareaholic language meta tag.
|
204 |
*/
|
357 |
$data_title = ((trim($title) != NULL) ? $title : htmlspecialchars($post->post_title, ENT_QUOTES));
|
358 |
$data_link = ((trim($link) != NULL) ? trim($link) : get_permalink($post->ID));
|
359 |
$data_summary = ((trim($summary) != NULL) ? $summary : htmlspecialchars(strip_tags(strip_shortcodes($post->post_excerpt)), ENT_QUOTES));
|
360 |
+
|
361 |
$canvas = "<div class='shareaholic-canvas'
|
362 |
data-app-id='$id'
|
363 |
data-app='$app'
|
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.6.1
|
6 |
-
Stable tag: 7.0.4.
|
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,6 +148,13 @@ Please see here: [Usage & Installation Instructions](https://shareaholic.com/too
|
|
148 |
|
149 |
== Changelog ==
|
150 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
= 7.0.4.6 =
|
152 |
* Support for All in One SEO Pack keywords
|
153 |
* Additional fixes for Cloudflare
|
@@ -952,6 +959,9 @@ Please see here: [Usage & Installation Instructions](https://shareaholic.com/too
|
|
952 |
|
953 |
== Upgrade Notice ==
|
954 |
|
|
|
|
|
|
|
955 |
= 7.0.4.6 =
|
956 |
* Significant upgrade to keyword generation for Related Content. Additional fixes for those using Cloudflare.
|
957 |
|
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.6.1
|
6 |
+
Stable tag: 7.0.4.7
|
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.4.7 =
|
152 |
+
* Support for additional Shareaholic content meta tags
|
153 |
+
* shareaholic:article_visibility
|
154 |
+
* shareaholic:article_published_time
|
155 |
+
* shareaholic:article_modified_time
|
156 |
+
* shareaholic:article_author_name
|
157 |
+
|
158 |
= 7.0.4.6 =
|
159 |
* Support for All in One SEO Pack keywords
|
160 |
* Additional fixes for Cloudflare
|
959 |
|
960 |
== Upgrade Notice ==
|
961 |
|
962 |
+
= 7.0.4.7 =
|
963 |
+
* Support for additional Shareaholic content meta tags! More improvements for Related Content.
|
964 |
+
|
965 |
= 7.0.4.6 =
|
966 |
* Significant upgrade to keyword generation for Related Content. Additional fixes for those using Cloudflare.
|
967 |
|
shareaholic.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
* The main file!
|
4 |
*
|
5 |
* @package shareaholic
|
6 |
-
* @version 7.0.4.
|
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.4.
|
14 |
Author: Shareaholic
|
15 |
Author URI: https://shareaholic.com
|
16 |
Text Domain: shareaholic
|
@@ -53,7 +53,7 @@ require_once(SHAREAHOLIC_DIR . '/deprecation.php');
|
|
53 |
*/
|
54 |
class Shareaholic {
|
55 |
const URL = 'https://shareaholic.com';
|
56 |
-
const VERSION = '7.0.4.
|
57 |
/**
|
58 |
* Starts off as false so that ::get_instance() returns
|
59 |
* a new instance.
|
3 |
* The main file!
|
4 |
*
|
5 |
* @package shareaholic
|
6 |
+
* @version 7.0.4.7
|
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.4.7
|
14 |
Author: Shareaholic
|
15 |
Author URI: https://shareaholic.com
|
16 |
Text Domain: shareaholic
|
53 |
*/
|
54 |
class Shareaholic {
|
55 |
const URL = 'https://shareaholic.com';
|
56 |
+
const VERSION = '7.0.4.7';
|
57 |
/**
|
58 |
* Starts off as false so that ::get_instance() returns
|
59 |
* a new instance.
|
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. 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?rate=5#postform" target="_new">', '</a>'); ?>
|
9 |
</small>
|
10 |
+
</div>
|
templates/settings.php
CHANGED
@@ -40,7 +40,7 @@ window.verification_key = '<?php echo $settings['verification_key'] ?>'
|
|
40 |
<?php echo ucfirst($position) ?> Content <button data-app='share_buttons'
|
41 |
data-location_id='<?php echo $location_id ?>'
|
42 |
data-href='share_buttons/locations/{{id}}/edit'
|
43 |
-
class="btn btn-success"
|
44 |
</div>
|
45 |
<?php } ?>
|
46 |
</fieldset>
|
@@ -65,7 +65,7 @@ window.verification_key = '<?php echo $settings['verification_key'] ?>'
|
|
65 |
<?php echo ucfirst($position) ?> Content <button data-app='recommendations'
|
66 |
data-location_id='<?php echo $location_id ?>'
|
67 |
data-href="recommendations/locations/{{id}}/edit"
|
68 |
-
class="btn btn-success"
|
69 |
</div>
|
70 |
</fieldset>
|
71 |
<?php } ?>
|
40 |
<?php echo ucfirst($position) ?> Content <button data-app='share_buttons'
|
41 |
data-location_id='<?php echo $location_id ?>'
|
42 |
data-href='share_buttons/locations/{{id}}/edit'
|
43 |
+
class="btn btn-success"><?php _e('Customize', 'shareaholic'); ?></button>
|
44 |
</div>
|
45 |
<?php } ?>
|
46 |
</fieldset>
|
65 |
<?php echo ucfirst($position) ?> Content <button data-app='recommendations'
|
66 |
data-location_id='<?php echo $location_id ?>'
|
67 |
data-href="recommendations/locations/{{id}}/edit"
|
68 |
+
class="btn btn-success"><?php _e('Customize', 'shareaholic'); ?></button>
|
69 |
</div>
|
70 |
</fieldset>
|
71 |
<?php } ?>
|