WordPress Share Buttons Plugin – AddThis - Version 5.3.1

Version Description

  • Disabling the mobile version of the Sharing Sidebar when the Mobile Sharing Toolbar is enabled
Download this release

Release Info

Developer jgrodel
Plugin Icon 128x128 WordPress Share Buttons Plugin – AddThis
Version 5.3.1
Comparing to
See all releases

Code changes from version 5.3.0 to 5.3.1

AddThisCmsConnectorInterface.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * +--------------------------------------------------------------------------+
4
- * | Copyright (c) 2008-2015 AddThis, LLC |
5
  * +--------------------------------------------------------------------------+
6
  * | This program is free software; you can redistribute it and/or modify |
7
  * | it under the terms of the GNU General Public License as published by |
1
  <?php
2
  /**
3
  * +--------------------------------------------------------------------------+
4
+ * | Copyright (c) 2008-2016 AddThis, LLC |
5
  * +--------------------------------------------------------------------------+
6
  * | This program is free software; you can redistribute it and/or modify |
7
  * | it under the terms of the GNU General Public License as published by |
AddThisConfigs.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * +--------------------------------------------------------------------------+
4
- * | Copyright (c) 2008-2015 AddThis, LLC |
5
  * +--------------------------------------------------------------------------+
6
  * | This program is free software; you can redistribute it and/or modify |
7
  * | it under the terms of the GNU General Public License as published by |
@@ -414,16 +414,16 @@ if (!class_exists('AddThisConfigs')) {
414
  if (!empty($this->configs['addthis_sidebar_enabled'])) {
415
  $templateType = _addthis_determine_template_type();
416
 
417
- $display = false;
418
  if (is_string($templateType)) {
419
  $fieldList = $this->getFieldsForContentTypeSharingLocations($templateType, 'sidebar');
420
  $fieldName = $fieldList[0]['fieldName'];
421
  if (!empty($this->configs[$fieldName])) {
422
- $display = true;
423
  }
424
  }
425
 
426
- if ($display) {
427
  $addThisLayersVariable['share']['theme'] = strtolower($this->configs['addthis_sidebar_theme']);
428
  $addThisLayersVariable['share']['position'] = strtolower($this->configs['addthis_sidebar_position']);
429
  $addThisLayersVariable['share']['numPreferredServices'] = (int)$this->configs['addthis_sidebar_count'];
@@ -433,19 +433,23 @@ if (!class_exists('AddThisConfigs')) {
433
  if (!empty($this->configs['addthis_mobile_toolbar_enabled'])) {
434
  $templateType = _addthis_determine_template_type();
435
 
436
- $display = false;
437
  if (is_string($templateType)) {
438
  $fieldList = $this->getFieldsForContentTypeSharingLocations($templateType, 'mobile_toolbar');
439
  $fieldName = $fieldList[0]['fieldName'];
440
  if (!empty($this->configs[$fieldName])) {
441
- $display = true;
442
  }
443
  }
444
 
445
- if ($display) {
446
  $addThisLayersVariable['sharedock']['counts'] = (boolean)$this->configs['addthis_mobile_toolbar_counts'];
447
  $addThisLayersVariable['sharedock']['position'] = strtolower($this->configs['addthis_mobile_toolbar_position']);
448
  $addThisLayersVariable['sharedock']['numPreferredServices'] = (int)$this->configs['addthis_mobile_toolbar_numPreferredServices'];
 
 
 
 
449
  }
450
  }
451
 
1
  <?php
2
  /**
3
  * +--------------------------------------------------------------------------+
4
+ * | Copyright (c) 2008-2016 AddThis, LLC |
5
  * +--------------------------------------------------------------------------+
6
  * | This program is free software; you can redistribute it and/or modify |
7
  * | it under the terms of the GNU General Public License as published by |
414
  if (!empty($this->configs['addthis_sidebar_enabled'])) {
415
  $templateType = _addthis_determine_template_type();
416
 
417
+ $displaySidebar = false;
418
  if (is_string($templateType)) {
419
  $fieldList = $this->getFieldsForContentTypeSharingLocations($templateType, 'sidebar');
420
  $fieldName = $fieldList[0]['fieldName'];
421
  if (!empty($this->configs[$fieldName])) {
422
+ $displaySidebar = true;
423
  }
424
  }
425
 
426
+ if ($displaySidebar) {
427
  $addThisLayersVariable['share']['theme'] = strtolower($this->configs['addthis_sidebar_theme']);
428
  $addThisLayersVariable['share']['position'] = strtolower($this->configs['addthis_sidebar_position']);
429
  $addThisLayersVariable['share']['numPreferredServices'] = (int)$this->configs['addthis_sidebar_count'];
433
  if (!empty($this->configs['addthis_mobile_toolbar_enabled'])) {
434
  $templateType = _addthis_determine_template_type();
435
 
436
+ $displayToolbar = false;
437
  if (is_string($templateType)) {
438
  $fieldList = $this->getFieldsForContentTypeSharingLocations($templateType, 'mobile_toolbar');
439
  $fieldName = $fieldList[0]['fieldName'];
440
  if (!empty($this->configs[$fieldName])) {
441
+ $displayToolbar = true;
442
  }
443
  }
444
 
445
+ if ($displayToolbar) {
446
  $addThisLayersVariable['sharedock']['counts'] = (boolean)$this->configs['addthis_mobile_toolbar_counts'];
447
  $addThisLayersVariable['sharedock']['position'] = strtolower($this->configs['addthis_mobile_toolbar_position']);
448
  $addThisLayersVariable['sharedock']['numPreferredServices'] = (int)$this->configs['addthis_mobile_toolbar_numPreferredServices'];
449
+
450
+ if ($displaySidebar) {
451
+ $addThisLayersVariable['share']['mobile'] = false;
452
+ }
453
  }
454
  }
455
 
AddThisWordPressConnector.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * +--------------------------------------------------------------------------+
4
- * | Copyright (c) 2008-2015 AddThis, LLC |
5
  * +--------------------------------------------------------------------------+
6
  * | This program is free software; you can redistribute it and/or modify |
7
  * | it under the terms of the GNU General Public License as published by |
1
  <?php
2
  /**
3
  * +--------------------------------------------------------------------------+
4
+ * | Copyright (c) 2008-2016 AddThis, LLC |
5
  * +--------------------------------------------------------------------------+
6
  * | This program is free software; you can redistribute it and/or modify |
7
  * | it under the terms of the GNU General Public License as published by |
AddThisWordPressSharingButtonsPlugin.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * +--------------------------------------------------------------------------+
4
- * | Copyright (c) 2008-2015 AddThis, LLC |
5
  * +--------------------------------------------------------------------------+
6
  * | This program is free software; you can redistribute it and/or modify |
7
  * | it under the terms of the GNU General Public License as published by |
@@ -25,7 +25,7 @@ if (!class_exists('AddThisWordPressSharingButtonsPlugin')) {
25
  Class AddThisWordPressSharingButtonsPlugin {
26
  // implements AddThisWordPressPluginInterface {
27
 
28
- static $version = '5.3.0';
29
  static $settingsPageId = 'addthis_social_widget';
30
  static $name = "Share Buttons by AddThis";
31
  static $productPrefix = 'wpp';
1
  <?php
2
  /**
3
  * +--------------------------------------------------------------------------+
4
+ * | Copyright (c) 2008-2016 AddThis, LLC |
5
  * +--------------------------------------------------------------------------+
6
  * | This program is free software; you can redistribute it and/or modify |
7
  * | it under the terms of the GNU General Public License as published by |
25
  Class AddThisWordPressSharingButtonsPlugin {
26
  // implements AddThisWordPressPluginInterface {
27
 
28
+ static $version = '5.3.1';
29
  static $settingsPageId = 'addthis_social_widget';
30
  static $name = "Share Buttons by AddThis";
31
  static $productPrefix = 'wpp';
addthis-for-wordpress.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * +--------------------------------------------------------------------------+
4
- * | Copyright (c) 2008-2015 AddThis, LLC |
5
  * +--------------------------------------------------------------------------+
6
  * | This program is free software; you can redistribute it and/or modify |
7
  * | it under the terms of the GNU General Public License as published by |
1
  <?php
2
  /**
3
  * +--------------------------------------------------------------------------+
4
+ * | Copyright (c) 2008-2016 AddThis, LLC |
5
  * +--------------------------------------------------------------------------+
6
  * | This program is free software; you can redistribute it and/or modify |
7
  * | it under the terms of the GNU General Public License as published by |
addthis-toolbox.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * +--------------------------------------------------------------------------+
4
- * | Copyright (c) 2008-2015 AddThis, LLC |
5
  * +--------------------------------------------------------------------------+
6
  * | This program is free software; you can redistribute it and/or modify |
7
  * | it under the terms of the GNU General Public License as published by |
1
  <?php
2
  /**
3
  * +--------------------------------------------------------------------------+
4
+ * | Copyright (c) 2008-2016 AddThis, LLC |
5
  * +--------------------------------------------------------------------------+
6
  * | This program is free software; you can redistribute it and/or modify |
7
  * | it under the terms of the GNU General Public License as published by |
addthis-widget.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * +--------------------------------------------------------------------------+
4
- * | Copyright (c) 2008-2015 AddThis, LLC |
5
  * +--------------------------------------------------------------------------+
6
  * | This program is free software; you can redistribute it and/or modify |
7
  * | it under the terms of the GNU General Public License as published by |
1
  <?php
2
  /**
3
  * +--------------------------------------------------------------------------+
4
+ * | Copyright (c) 2008-2016 AddThis, LLC |
5
  * +--------------------------------------------------------------------------+
6
  * | This program is free software; you can redistribute it and/or modify |
7
  * | it under the terms of the GNU General Public License as published by |
addthis_addjs_new.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * +--------------------------------------------------------------------------+
4
- * | Copyright (c) 2008-2015 AddThis, LLC |
5
  * +--------------------------------------------------------------------------+
6
  * | This program is free software; you can redistribute it and/or modify |
7
  * | it under the terms of the GNU General Public License as published by |
1
  <?php
2
  /**
3
  * +--------------------------------------------------------------------------+
4
+ * | Copyright (c) 2008-2016 AddThis, LLC |
5
  * +--------------------------------------------------------------------------+
6
  * | This program is free software; you can redistribute it and/or modify |
7
  * | it under the terms of the GNU General Public License as published by |
addthis_settings_functions.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * +--------------------------------------------------------------------------+
4
- * | Copyright (c) 2008-2015 AddThis, LLC |
5
  * +--------------------------------------------------------------------------+
6
  * | This program is free software; you can redistribute it and/or modify |
7
  * | it under the terms of the GNU General Public License as published by |
1
  <?php
2
  /**
3
  * +--------------------------------------------------------------------------+
4
+ * | Copyright (c) 2008-2016 AddThis, LLC |
5
  * +--------------------------------------------------------------------------+
6
  * | This program is free software; you can redistribute it and/or modify |
7
  * | it under the terms of the GNU General Public License as published by |
addthis_sidebar_widget.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * +--------------------------------------------------------------------------+
4
- * | Copyright (c) 2008-2015 AddThis, LLC |
5
  * +--------------------------------------------------------------------------+
6
  * | This program is free software; you can redistribute it and/or modify |
7
  * | it under the terms of the GNU General Public License as published by |
1
  <?php
2
  /**
3
  * +--------------------------------------------------------------------------+
4
+ * | Copyright (c) 2008-2016 AddThis, LLC |
5
  * +--------------------------------------------------------------------------+
6
  * | This program is free software; you can redistribute it and/or modify |
7
  * | it under the terms of the GNU General Public License as published by |
addthis_social_widget.php CHANGED
@@ -3,13 +3,13 @@
3
  * Plugin Name: Share Buttons by AddThis
4
  * Plugin URI: http://www.addthis.com
5
  * Description: Use the AddThis suite of website tools which includes sharing, following, recommended content, and conversion tools to help you make your website smarter. With AddThis, you can see how your users are engaging with your content, provide a personalized experience for each user and encourage them to share, subscribe or follow.
6
- * Version: 5.3.0
7
  * Author: The AddThis Team
8
  * Author URI: http://www.addthis.com/
9
  * License: GPL2
10
  *
11
  * +--------------------------------------------------------------------------+
12
- * | Copyright (c) 2008-2015 AddThis, LLC |
13
  * +--------------------------------------------------------------------------+
14
  * | This program is free software; you can redistribute it and/or modify |
15
  * | it under the terms of the GNU General Public License as published by |
3
  * Plugin Name: Share Buttons by AddThis
4
  * Plugin URI: http://www.addthis.com
5
  * Description: Use the AddThis suite of website tools which includes sharing, following, recommended content, and conversion tools to help you make your website smarter. With AddThis, you can see how your users are engaging with your content, provide a personalized experience for each user and encourage them to share, subscribe or follow.
6
+ * Version: 5.3.1
7
  * Author: The AddThis Team
8
  * Author URI: http://www.addthis.com/
9
  * License: GPL2
10
  *
11
  * +--------------------------------------------------------------------------+
12
+ * | Copyright (c) 2008-2016 AddThis, LLC |
13
  * +--------------------------------------------------------------------------+
14
  * | This program is free software; you can redistribute it and/or modify |
15
  * | it under the terms of the GNU General Public License as published by |
css/gtc.sharing-personalize.css CHANGED
@@ -1,6 +1,6 @@
1
  /**
2
  * +--------------------------------------------------------------------------+
3
- * | Copyright (c) 2008-2015 AddThis, LLC |
4
  * +--------------------------------------------------------------------------+
5
  * | This program is free software; you can redistribute it and/or modify |
6
  * | it under the terms of the GNU General Public License as published by |
1
  /**
2
  * +--------------------------------------------------------------------------+
3
+ * | Copyright (c) 2008-2016 AddThis, LLC |
4
  * +--------------------------------------------------------------------------+
5
  * | This program is free software; you can redistribute it and/or modify |
6
  * | it under the terms of the GNU General Public License as published by |
css/options-page.css CHANGED
@@ -1,6 +1,6 @@
1
  /**
2
  * +--------------------------------------------------------------------------+
3
- * | Copyright (c) 2008-2015 AddThis, LLC |
4
  * +--------------------------------------------------------------------------+
5
  * | This program is free software; you can redistribute it and/or modify |
6
  * | it under the terms of the GNU General Public License as published by |
1
  /**
2
  * +--------------------------------------------------------------------------+
3
+ * | Copyright (c) 2008-2016 AddThis, LLC |
4
  * +--------------------------------------------------------------------------+
5
  * | This program is free software; you can redistribute it and/or modify |
6
  * | it under the terms of the GNU General Public License as published by |
css/output.css CHANGED
@@ -1,6 +1,6 @@
1
  /**
2
  * +--------------------------------------------------------------------------+
3
- * | Copyright (c) 2008-2015 AddThis, LLC |
4
  * +--------------------------------------------------------------------------+
5
  * | This program is free software; you can redistribute it and/or modify |
6
  * | it under the terms of the GNU General Public License as published by |
1
  /**
2
  * +--------------------------------------------------------------------------+
3
+ * | Copyright (c) 2008-2016 AddThis, LLC |
4
  * +--------------------------------------------------------------------------+
5
  * | This program is free software; you can redistribute it and/or modify |
6
  * | it under the terms of the GNU General Public License as published by |
css/style.css CHANGED
@@ -1,6 +1,6 @@
1
  /**
2
  * +--------------------------------------------------------------------------+
3
- * | Copyright (c) 2008-2015 AddThis, LLC |
4
  * +--------------------------------------------------------------------------+
5
  * | This program is free software; you can redistribute it and/or modify |
6
  * | it under the terms of the GNU General Public License as published by |
@@ -82,7 +82,7 @@ a.addthis_next, a.addthis_next:hover, a.addthis_next:focus, a.addthis_next:visit
82
  border-radius: 3px;
83
  margin-top: 20px;
84
  height:62px;
85
- padding-top: 38px;
86
  width: 200px;
87
  }
88
 
1
  /**
2
  * +--------------------------------------------------------------------------+
3
+ * | Copyright (c) 2008-2016 AddThis, LLC |
4
  * +--------------------------------------------------------------------------+
5
  * | This program is free software; you can redistribute it and/or modify |
6
  * | it under the terms of the GNU General Public License as published by |
82
  border-radius: 3px;
83
  margin-top: 20px;
84
  height:62px;
85
+ padding-top: 38px;
86
  width: 200px;
87
  }
88
 
js/addthis-for-wordpress.js CHANGED
@@ -1,6 +1,6 @@
1
  /**
2
  * +--------------------------------------------------------------------------+
3
- * | Copyright (c) 2008-2015 AddThis, LLC |
4
  * +--------------------------------------------------------------------------+
5
  * | This program is free software; you can redistribute it and/or modify |
6
  * | it under the terms of the GNU General Public License as published by |
1
  /**
2
  * +--------------------------------------------------------------------------+
3
+ * | Copyright (c) 2008-2016 AddThis, LLC |
4
  * +--------------------------------------------------------------------------+
5
  * | This program is free software; you can redistribute it and/or modify |
6
  * | it under the terms of the GNU General Public License as published by |
js/gtc-sharing-personalize.js CHANGED
@@ -1,6 +1,6 @@
1
  /**
2
  * +--------------------------------------------------------------------------+
3
- * | Copyright (c) 2008-2015 AddThis, LLC |
4
  * +--------------------------------------------------------------------------+
5
  * | This program is free software; you can redistribute it and/or modify |
6
  * | it under the terms of the GNU General Public License as published by |
1
  /**
2
  * +--------------------------------------------------------------------------+
3
+ * | Copyright (c) 2008-2016 AddThis, LLC |
4
  * +--------------------------------------------------------------------------+
5
  * | This program is free software; you can redistribute it and/or modify |
6
  * | it under the terms of the GNU General Public License as published by |
js/gtc.cover.js CHANGED
@@ -1,6 +1,6 @@
1
  /**
2
  * +--------------------------------------------------------------------------+
3
- * | Copyright (c) 2008-2015 AddThis, LLC |
4
  * +--------------------------------------------------------------------------+
5
  * | This program is free software; you can redistribute it and/or modify |
6
  * | it under the terms of the GNU General Public License as published by |
1
  /**
2
  * +--------------------------------------------------------------------------+
3
+ * | Copyright (c) 2008-2016 AddThis, LLC |
4
  * +--------------------------------------------------------------------------+
5
  * | This program is free software; you can redistribute it and/or modify |
6
  * | it under the terms of the GNU General Public License as published by |
js/options-page.32.js CHANGED
@@ -1,6 +1,6 @@
1
  /**
2
  * +--------------------------------------------------------------------------+
3
- * | Copyright (c) 2008-2015 AddThis, LLC |
4
  * +--------------------------------------------------------------------------+
5
  * | This program is free software; you can redistribute it and/or modify |
6
  * | it under the terms of the GNU General Public License as published by |
1
  /**
2
  * +--------------------------------------------------------------------------+
3
+ * | Copyright (c) 2008-2016 AddThis, LLC |
4
  * +--------------------------------------------------------------------------+
5
  * | This program is free software; you can redistribute it and/or modify |
6
  * | it under the terms of the GNU General Public License as published by |
js/options-page.js CHANGED
@@ -1,6 +1,6 @@
1
  /**
2
  * +--------------------------------------------------------------------------+
3
- * | Copyright (c) 2008-2015 AddThis, LLC |
4
  * +--------------------------------------------------------------------------+
5
  * | This program is free software; you can redistribute it and/or modify |
6
  * | it under the terms of the GNU General Public License as published by |
1
  /**
2
  * +--------------------------------------------------------------------------+
3
+ * | Copyright (c) 2008-2016 AddThis, LLC |
4
  * +--------------------------------------------------------------------------+
5
  * | This program is free software; you can redistribute it and/or modify |
6
  * | it under the terms of the GNU General Public License as published by |
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: abramsm, srijith.v, vipinss, dnrahamim, jgrodel, bradaddthiscom, m
3
  Tags: bookmarking, email sharing, facebook, linkedin, pinterest, share, sharing buttons, social marketing, social tools, twitter, whatsapp
4
  Requires at least: 3.0
5
  Tested up to: 4.4.2
6
- Stable tag: 5.3.0
7
 
8
  Share buttons from AddThis help you get more traffic from sharing through social networks.
9
 
@@ -76,6 +76,9 @@ In the screen options you can enable the AddThis meta box. Check the box and sav
76
 
77
  == Changelog ==
78
 
 
 
 
79
  = 5.3.0 =
80
  * Adding Mobile Sharing Toolbar to WordPress mode (already available to users in AddThis mode). It will automatically be turned on for pages where you've enabled the Sharing Sidebar. You can change this in the settings.
81
  * Fixing notice: Undefined variable: inputHtml in addthis-toolbox.php on line 142
@@ -413,6 +416,9 @@ Fixed nondeterministic bug with the_title(), causing the title to occasionally a
413
 
414
  == Upgrade Notice ==
415
 
 
 
 
416
  = 5.3.0 =
417
  New tool for WordPress mode! The Mobile Sharing Sidebar. It will automatically be turned on for pages where you've enabled the Sharing Sidebar. You can change this in the settings. Fixied notice "Undefined variable: inputHtml in addthis-toolbox.php on line 142". Increases the number of services that can be added to the sharing sidebar from 6 to 10. Adding missing licenses and attributions. CSS fixes for Twenty Sixteen theme.
418
 
3
  Tags: bookmarking, email sharing, facebook, linkedin, pinterest, share, sharing buttons, social marketing, social tools, twitter, whatsapp
4
  Requires at least: 3.0
5
  Tested up to: 4.4.2
6
+ Stable tag: 5.3.1
7
 
8
  Share buttons from AddThis help you get more traffic from sharing through social networks.
9
 
76
 
77
  == Changelog ==
78
 
79
+ = 5.3.1 =
80
+ * Disabling the mobile version of the Sharing Sidebar when the Mobile Sharing Toolbar is enabled
81
+
82
  = 5.3.0 =
83
  * Adding Mobile Sharing Toolbar to WordPress mode (already available to users in AddThis mode). It will automatically be turned on for pages where you've enabled the Sharing Sidebar. You can change this in the settings.
84
  * Fixing notice: Undefined variable: inputHtml in addthis-toolbox.php on line 142
416
 
417
  == Upgrade Notice ==
418
 
419
+ = 5.3.1 =
420
+ Disabling the mobile version of the Sharing Sidebar when the Mobile Sharing Toolbar is enabled
421
+
422
  = 5.3.0 =
423
  New tool for WordPress mode! The Mobile Sharing Sidebar. It will automatically be turned on for pages where you've enabled the Sharing Sidebar. You can change this in the settings. Fixied notice "Undefined variable: inputHtml in addthis-toolbox.php on line 142". Increases the number of services that can be added to the sharing sidebar from 6 to 10. Adding missing licenses and attributions. CSS fixes for Twenty Sixteen theme.
424
 
uninstall.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * +--------------------------------------------------------------------------+
4
- * | Copyright (c) 2008-2015 AddThis, LLC |
5
  * +--------------------------------------------------------------------------+
6
  * | This program is free software; you can redistribute it and/or modify |
7
  * | it under the terms of the GNU General Public License as published by |
1
  <?php
2
  /**
3
  * +--------------------------------------------------------------------------+
4
+ * | Copyright (c) 2008-2016 AddThis, LLC |
5
  * +--------------------------------------------------------------------------+
6
  * | This program is free software; you can redistribute it and/or modify |
7
  * | it under the terms of the GNU General Public License as published by |