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

Version Description

We've improved the server connectivity check. If you've been getting the 'retry' error message after installing Shareaholic, this one is for you.

Download this release

Release Info

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

Code changes from version 8.6.3 to 8.6.4

Files changed (4) hide show
  1. assets/css/main.css +3 -3
  2. public.php +23 -7
  3. readme.txt +25 -16
  4. shareaholic.php +3 -3
assets/css/main.css CHANGED
@@ -51,11 +51,12 @@ body {
51
  }
52
 
53
  h3 {
54
- clear:both;
55
  }
56
 
57
  .clear {
58
- clear:both
 
59
  }
60
 
61
  #app_settings {
@@ -501,7 +502,6 @@ i.icon {
501
  -ms-border-radius: 50%;
502
  -o-border-radius: 50%;
503
  border-radius: 50%;
504
- display: block;
505
  color: white;
506
  margin: 0 auto 12px;
507
  font-size: 34px;
51
  }
52
 
53
  h3 {
54
+ clear: both;
55
  }
56
 
57
  .clear {
58
+ clear: both !important;
59
+ height: auto !important;
60
  }
61
 
62
  #app_settings {
502
  -ms-border-radius: 50%;
503
  -o-border-radius: 50%;
504
  border-radius: 50%;
 
505
  color: white;
506
  margin: 0 auto 12px;
507
  font-size: 34px;
public.php CHANGED
@@ -80,17 +80,21 @@ class ShareaholicPublic {
80
  public static function shortcode($attributes, $content = NULL) {
81
  extract(shortcode_atts(array(
82
  "id" => NULL,
 
83
  "app" => 'share_buttons',
84
  "title" => NULL,
85
  "link" => NULL,
86
  "summary" => NULL
87
  ), $attributes, 'shareaholic'));
88
 
89
- if (isset($attributes['title'])) $title = esc_attr(trim($attributes['title']));
 
 
 
90
  if (isset($attributes['link'])) $link = trim($attributes['link']);
91
  if (isset($attributes['summary'])) $summary = esc_attr(trim($attributes['summary']));
92
 
93
- return self::canvas($attributes['id'], $attributes['app'], $title, $link, $summary);
94
  }
95
 
96
 
@@ -372,12 +376,13 @@ class ShareaholicPublic {
372
  * by the shortcode static function in global_functions.php.
373
  *
374
  * @param string $id the location id for configuration
 
375
  * @param string $app the type of app
376
  * @param string $title the title of URL
377
  * @param string $link url
378
  * @param string $summary summary text for URL
379
  */
380
- public static function canvas($id, $app, $id_name, $title = NULL, $link = NULL, $summary = NULL) {
381
  global $post, $wp_query;
382
  $page_type = ShareaholicUtilities::page_type();
383
  $is_list_page = $page_type == 'index' || $page_type == 'category';
@@ -403,12 +408,23 @@ class ShareaholicPublic {
403
  }
404
 
405
  $canvas = "<div class='shareaholic-canvas'
406
- data-app-id='$id'
407
- data-app-id-name='$id_name'
408
  data-app='$app'
409
  data-title='$title'
410
- data-link='$link'
411
- data-summary='$summary'></div>";
 
 
 
 
 
 
 
 
 
 
 
 
 
412
 
413
  return trim(preg_replace('/\s+/', ' ', $canvas));
414
  }
80
  public static function shortcode($attributes, $content = NULL) {
81
  extract(shortcode_atts(array(
82
  "id" => NULL,
83
+ "id_name" => NULL,
84
  "app" => 'share_buttons',
85
  "title" => NULL,
86
  "link" => NULL,
87
  "summary" => NULL
88
  ), $attributes, 'shareaholic'));
89
 
90
+ if (isset($attributes['id'])) $id = trim($attributes['id']);
91
+ if (isset($attributes['id_name'])) $id_name = trim($attributes['id_name']);
92
+ if (isset($attributes['app'])) $app = trim($attributes['app']);
93
+ if (isset($attributes['title'])) $title = esc_attr(trim($attributes['title']));
94
  if (isset($attributes['link'])) $link = trim($attributes['link']);
95
  if (isset($attributes['summary'])) $summary = esc_attr(trim($attributes['summary']));
96
 
97
+ return self::canvas($id, $app, $id_name, $title, $link, $summary);
98
  }
99
 
100
 
376
  * by the shortcode static function in global_functions.php.
377
  *
378
  * @param string $id the location id for configuration
379
+ * @param string $id_name the location id name for configuration
380
  * @param string $app the type of app
381
  * @param string $title the title of URL
382
  * @param string $link url
383
  * @param string $summary summary text for URL
384
  */
385
+ public static function canvas($id = NULL, $app, $id_name = NULL, $title = NULL, $link = NULL, $summary = NULL) {
386
  global $post, $wp_query;
387
  $page_type = ShareaholicUtilities::page_type();
388
  $is_list_page = $page_type == 'index' || $page_type == 'category';
408
  }
409
 
410
  $canvas = "<div class='shareaholic-canvas'
 
 
411
  data-app='$app'
412
  data-title='$title'
413
+ data-link='$link'";
414
+
415
+ if ($summary != NULL) {
416
+ $canvas .= " data-summary='$summary'";
417
+ }
418
+
419
+ if ($id != NULL) {
420
+ $canvas .= " data-app-id='$id'";
421
+ }
422
+
423
+ if ($id_name != NULL) {
424
+ $canvas .= " data-app-id-name='$id_name'";
425
+ }
426
+
427
+ $canvas .="></div>";
428
 
429
  return trim(preg_replace('/\s+/', ' ', $canvas));
430
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: shareaholic
3
  Tags: Social Tools, Related Posts, Google Analytics, Share Buttons, Social Sharing, Image Sharing, Related Content, woocommerce, typepad, amazon, analytics, arto, baidu, bitly, blogger, buffer, cookie compliance, cookie consent, delicious, digg, diigo, disqus, email button, eu cookie law, evernote, facebook, facebook sharing, fancy, fark, feedly, flipboard, floated share buttons, floating share buttons, follow buttons, GDPR, gmail, google bookmarks, google classroom, google plus, hootsuite, hotmail, houzz, inbound.org, instagram, instagram sharing, instapaper, izeby, kaboodle, kik, kindle, line, linkedin, livejournal, meneame, mister wong, mixi, odnoklassniki, box.net, onenote, pinboard.in, pinterest, pinterest sharing, plurk, pocket, printfriendly, recommendations, reddit, sexybookmarks, share buttons, share image, shareaholic, shareholic, sms, social bookmarking, social media, social plugin, social share buttons, spotify, stumbleupon, stumpedia, symphony, tinyurl, tumblr, twitter, viadeo, vk, wanelo, weheartit, weibo, whatsapp, wykop, xing, yahoo, yammer, ycombinator, hacker news, youtube, yummly, zillow
4
  Requires at least: 3.0
5
  Tested up to: 4.9
6
- Stable tag: 8.6.3
7
 
8
  Consolidate plugins with a high-speed suite of social tools: social share buttons, related content, related posts, ad monetization & Google Analytics.
9
 
@@ -177,30 +177,34 @@ Shareaholic is used all over the world. Our goal is to support Shareaholic in th
177
 
178
  = Shareaholic Shortcode Support / Manual Usage =
179
 
180
- You can place Share Buttons, Related Content and any other Shareaholic app manually wherever you're like. Simply insert the following Shortcode where you want the corresponding app to appear:
181
 
182
- `[shareaholic app="share_buttons" id="<insert shareaholic app ID here>"]`
183
- `[shareaholic app="recommendations" id="<insert shareaholic app ID here>"]`
184
- `[shareaholic app="ad_spaces" id="<insert shareaholic app ID here>"]`
185
- `[shareaholic app="follow_buttons" id="<insert shareaholic app ID here>"]`
186
  `[shareaholic app="total_share_count"]`
187
 
188
- Notes: optionally, you can also specify `title`, `link` or `summary` as Shareaholic shortcode parameters. If you don't specify these optional parameters, the shortcode will automatically determine these values.
189
 
190
- Example:
191
 
192
- `[shareaholic app="recommendations" id="<insert shareaholic app ID here>" title="About Me" link="http://mysite.com/about"]`
193
 
194
  In your PHP / theme template code, you would add:
195
 
196
- `<?php echo do_shortcode ('[shareaholic app="share_buttons" id="<insert shareaholic app ID here>"]'); ?>`
197
- `<?php echo do_shortcode ('[shareaholic app="recommendations" id="<insert shareaholic app ID here>"]'); ?>`
198
- `<?php echo do_shortcode ('[shareaholic app="ad_spaces" id="<insert shareaholic app ID here>"]'); ?>`
199
- `<?php echo do_shortcode ('[shareaholic app="follow_buttons" id="<insert shareaholic app ID here>"]'); ?>`
 
 
200
 
201
- Grab the corresponding App ID from your Shareaholic Dashboard for the App you want to manually insert into your theme. If use double quotes ("'s) in your title or summary, make sure to encode them properly as `&quot;`
202
 
203
- Shareaholic Shortcode's are full featured and support all available configuration options available. Enjoy!
 
 
204
 
205
  [General information about shortcodes and WordPress](https://codex.wordpress.org/Shortcode)
206
 
@@ -214,6 +218,11 @@ Please see here: [Usage & Installation Instructions](http://support.shareaholic.
214
 
215
  == Changelog ==
216
 
 
 
 
 
 
217
  = 8.6.3 (2018-02-06) =
218
  * Bugfix: We've further improved the server connectivity check. If you've been getting the 'retry' error message after installing Shareaholic, this one is for you.
219
 
@@ -706,7 +715,7 @@ Please see here: [Usage & Installation Instructions](http://support.shareaholic.
706
  * Show Related Posts data status
707
 
708
  == Upgrade Notice ==
709
- = 8.6.3 =
710
  We've improved the server connectivity check. If you've been getting the 'retry' error message after installing Shareaholic, this one is for you.
711
 
712
  = 8.6.1 =
3
  Tags: Social Tools, Related Posts, Google Analytics, Share Buttons, Social Sharing, Image Sharing, Related Content, woocommerce, typepad, amazon, analytics, arto, baidu, bitly, blogger, buffer, cookie compliance, cookie consent, delicious, digg, diigo, disqus, email button, eu cookie law, evernote, facebook, facebook sharing, fancy, fark, feedly, flipboard, floated share buttons, floating share buttons, follow buttons, GDPR, gmail, google bookmarks, google classroom, google plus, hootsuite, hotmail, houzz, inbound.org, instagram, instagram sharing, instapaper, izeby, kaboodle, kik, kindle, line, linkedin, livejournal, meneame, mister wong, mixi, odnoklassniki, box.net, onenote, pinboard.in, pinterest, pinterest sharing, plurk, pocket, printfriendly, recommendations, reddit, sexybookmarks, share buttons, share image, shareaholic, shareholic, sms, social bookmarking, social media, social plugin, social share buttons, spotify, stumbleupon, stumpedia, symphony, tinyurl, tumblr, twitter, viadeo, vk, wanelo, weheartit, weibo, whatsapp, wykop, xing, yahoo, yammer, ycombinator, hacker news, youtube, yummly, zillow
4
  Requires at least: 3.0
5
  Tested up to: 4.9
6
+ Stable tag: 8.6.4
7
 
8
  Consolidate plugins with a high-speed suite of social tools: social share buttons, related content, related posts, ad monetization & Google Analytics.
9
 
177
 
178
  = Shareaholic Shortcode Support / Manual Usage =
179
 
180
+ You can place Share Buttons, Related Content and any other Shareaholic apps manually wherever you're like in your theme. Simply insert the following Shortcode where you want the corresponding app to appear:
181
 
182
+ `[shareaholic app="share_buttons" id="<Insert Shareaholic App ID here>"]`
183
+ `[shareaholic app="recommendations" id="<Insert Shareaholic App ID here>"]`
184
+ `[shareaholic app="ad_spaces" id="<Insert Shareaholic App ID here>"]`
185
+ `[shareaholic app="follow_buttons" id="<Insert Shareaholic App ID here>"]`
186
  `[shareaholic app="total_share_count"]`
187
 
188
+ Grab the corresponding App ID from your Shareaholic Dashboard for the App you want to manually insert into your theme. If you prefer, you can also use the `App Name` instead of the `App ID`. This can be very useful for multi-site installations and theme developers who would like to bundle Shareaholic. For example:
189
 
190
+ `[shareaholic app="share_buttons" id_name="post_below_content"]`
191
 
192
+ If both `id` and `id_name` are defined, `id` will take priority.
193
 
194
  In your PHP / theme template code, you would add:
195
 
196
+ `<?php echo do_shortcode ('[shareaholic app="share_buttons" id="<Insert Shareaholic App ID here>"]'); ?>`
197
+ `<?php echo do_shortcode ('[shareaholic app="recommendations" id="<Insert Shareaholic App ID here>"]'); ?>`
198
+ `<?php echo do_shortcode ('[shareaholic app="ad_spaces" id="<Insert Shareaholic App ID here"]'); ?>`
199
+ `<?php echo do_shortcode ('[shareaholic app="follow_buttons" id="Insert Shareaholic App ID here"]'); ?>`
200
+
201
+ Note: optionally, you can specify `title`, `link` or `summary` as Shareaholic shortcode parameters. If you don't specify these optional parameters, the shortcode will automatically determine these values.
202
 
203
+ Example:
204
 
205
+ `[shareaholic app="share_buttons" id="<insert shareaholic app ID here>" title="About Me" link="http://mysite.com/about" summary="This is me"]`
206
+
207
+ If use double quotes ("'s) in your title or summary, make sure to encode them properly as `&quot;`. Shareaholic Shortcode's are full featured and support all available configuration options available. Enjoy!
208
 
209
  [General information about shortcodes and WordPress](https://codex.wordpress.org/Shortcode)
210
 
218
 
219
  == Changelog ==
220
 
221
+ = 8.6.4 (2018-02-06) =
222
+ * Bugfix: Styling fixes for Advanced Settings section
223
+ * Bugfix: Fixes 'Missing argument' warning
224
+ * Enhancements: Various improvements to the [Shareaholic shortcode](https://wordpress.org/plugins/shareaholic/#installation)
225
+
226
  = 8.6.3 (2018-02-06) =
227
  * Bugfix: We've further improved the server connectivity check. If you've been getting the 'retry' error message after installing Shareaholic, this one is for you.
228
 
715
  * Show Related Posts data status
716
 
717
  == Upgrade Notice ==
718
+ = 8.6.4 =
719
  We've improved the server connectivity check. If you've been getting the 'retry' error message after installing Shareaholic, this one is for you.
720
 
721
  = 8.6.1 =
shareaholic.php CHANGED
@@ -3,14 +3,14 @@
3
  * The main file!
4
  *
5
  * @package shareaholic
6
- * @version 8.6.3
7
  */
8
 
9
  /*
10
  Plugin Name: Shareaholic | share buttons, analytics, related content
11
  Plugin URI: https://shareaholic.com/publishers/
12
  Description: The world's leading all-in-one Content Amplification Platform that helps grow your website traffic, engagement, conversions & monetization. See <a href="admin.php?page=shareaholic-settings">configuration panel</a> for more settings.
13
- Version: 8.6.3
14
  Author: Shareaholic
15
  Author URI: https://shareaholic.com
16
  Text Domain: shareaholic
@@ -63,7 +63,7 @@ if (!class_exists('Shareaholic')) {
63
  const CM_API_URL = 'https://cm-web.shareaholic.com'; // uses static IPs for firewall whitelisting
64
  const REC_API_URL = 'http://recommendations.shareaholic.com';
65
 
66
- const VERSION = '8.6.3';
67
 
68
  /**
69
  * Starts off as false so that ::get_instance() returns
3
  * The main file!
4
  *
5
  * @package shareaholic
6
+ * @version 8.6.4
7
  */
8
 
9
  /*
10
  Plugin Name: Shareaholic | share buttons, analytics, related content
11
  Plugin URI: https://shareaholic.com/publishers/
12
  Description: The world's leading all-in-one Content Amplification Platform that helps grow your website traffic, engagement, conversions & monetization. See <a href="admin.php?page=shareaholic-settings">configuration panel</a> for more settings.
13
+ Version: 8.6.4
14
  Author: Shareaholic
15
  Author URI: https://shareaholic.com
16
  Text Domain: shareaholic
63
  const CM_API_URL = 'https://cm-web.shareaholic.com'; // uses static IPs for firewall whitelisting
64
  const REC_API_URL = 'http://recommendations.shareaholic.com';
65
 
66
+ const VERSION = '8.6.4';
67
 
68
  /**
69
  * Starts off as false so that ::get_instance() returns