Async Social Sharing WordPress Plugin
Simple social plugin that loads popular social sharing widgets asynchronously after the page loads for optimal site performance.
The plugin provides settings to load any of the following sharing widgets:
- Hacker News
Available display options include ability to display the sharing widgets on above or below content on pages, specific custom post types or blog and archive pages.
Fixed bug where plugin would cause a fatal error for PHP 5.2 and under by changing class initialization process.
Added minor style fix for Facebook sharing widget alignment.
async_social_display()function to be used as a template tag to output the social sharing widgets anywhere theme developers desire within the loop.
Added option to allow site administrators to enter their Facebook Application ID.
Added option to allow site administrators to choose if the social sharing widgets should be output before or after the content. props @dustyf
Changed settings screen to use WordPress default admin styles to fix checkbox display in WordPress 3.8+.
Removed bloated admin stylesheet.
Minor refactoring of plugin instance loading.
Minor code formatting changes.
Fixed bug where "headers already sent" message was displayed upon plugin activation due to blank line at top of main plugin file.
Enabled automatic plugin updates for WordPress 3.7 users.
Added option to display or hide sharing widgets from posts.
Added cache busting to plugin css and js files for future automatic update compatibility.
Restructured file organization.
Tested compatibility with 3.7
Fixed bug where previous plugin users could not disable the css without removing and then re-adding the plugin.
Updated compatibility to support 3.5
Fixed bug where widgets were not displaying on pages if option was specified.
Fixed bug where CSS styles for previous installations was still loading, even though the option to disable was selected.
Expanded post-type multi-selection box area on plugin options page.
Added instructions for selecting multiple post types from plugin options page.
Tested with WordPress 3.5 RC2
Added option to prevent default CSS stylesheet from loading.
Fixed bug where PHP Exception was thrown if post types array was empty.
Tested with WordPress 3.5 Beta 3
Fixed bug that would cause content in RSS feeds to not display.
Fixed bug where PHP Exception was thrown on pages if the display options were not set.
Added ability to display social widgets on pages.
Added ability to select which custom post types will display the social widgets.
async-share.jsfile. Now only the external social scripts that are selected to be displayed will be loaded.
Improved display styles for social widgets.
Combined function for plugin's script and style loading.
Fixed bug that was generating a PHP error when no options were set.
Tested with WordPress 3.4.1
Added Display Options to plugin to allow sharing widgets to be displayed on blog and archive pages.
Fixed bug with Facebook
fb-rootdiv not being detected before script loaded.
Updated license to GPLv3
Added lazy loading to async-share.js
Fixed issue with plugin settings link
- Initial release
Upcoming Versions Wishlist
- Allow re-arranging of social widgets
- Add internationalization to plugin.
- Content worth sharing
- Inspired by Stoyan Stefanov's blog post "Social Button BFFs"
- HackerNews button code by Ilya Grigorik
Copyright 2014 Rachel Baker (email@example.com)
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.