Skip to content

Commit 48c85ca

Browse files
authored
Merge pull request #23 from jaredatch/v1.0.0
V1.0.0
2 parents 87321d7 + 389553a commit 48c85ca

35 files changed

+8996
-1293
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules/
2+
build/

CHANGELOG.md

Lines changed: 2 additions & 188 deletions
Original file line numberDiff line numberDiff line change
@@ -1,191 +1,5 @@
11
# Change Log
22
All notable changes to this project will be documented in this file, formatted via [this recommendation](http://keepachangelog.com/).
33

4-
## [1.8.0] = 2017-01-03
5-
### Added
6-
- Added `ea_share_count_display_wrap_format` filter, see #75
7-
- Allow unique styling for each instance, see #78
8-
- Added `ea_share_count_link_url` filter, see #80
9-
10-
### Fixed
11-
- Update handling of Pinterest API response, see #64
12-
- Strip tags from title before using in URL, see #71
13-
- Simplified the image attribute, see #74
14-
- Ensure icon styling only targets icons, see #70
15-
- Removed nonce from email modal, see #69
16-
- Properly receive HTTP requests to prevent errors, see #68
17-
- Fix slim styling display, see #66
18-
19-
## [1.7.1] = 2016-08-24
20-
### Fixed
21-
- Issue with Facebook comment count parsing, see #63
22-
23-
### Added
24-
- Composer support
25-
26-
## [1.7.0] = 2016-08-20
27-
### Changed
28-
- Now receive counts directly from social services (no more SharedCount), see #57
29-
- Updates now automatically pull from GitHub tags, see #53
30-
31-
### Added
32-
- Filter for adding additional styles (ea_share_count_admin_services), see #58
33-
- Filter for adding additional share count services (ea_share_count_query_services), see #57
34-
- Admin notice regarding changing share count source
35-
- Version number is now saved to database for future updates
36-
37-
### Fixed
38-
- PHP Notice if you were getting share counts for a custom URL rather than post ID
39-
- Used correct hooks for Theme Hook Alliance, see #55
40-
41-
## [1.6.0] = 2016-06-23
42-
### Added
43-
- Checkbox in metabox to hide share buttons on this specific post, see #51
44-
- When opening email modal, focus on first input
45-
46-
### Fixed
47-
- Replaced PHP short tags with proper tags, see #50
48-
49-
## [1.5.9] = 2016-05-23
50-
### Fixed
51-
- Issue with automated theme location placement not working on in all cases. See #44
52-
53-
## [1.5.8] = 2016-05-19
54-
### Fixed
55-
- Issue with 'after_content' theme location not working on some themes. See #43
56-
57-
## [1.5.7] = 2016-04-21
58-
### Added
59-
- 'ea_share_count_update_queue' filter
60-
61-
## [1.5.6] = 2016-04-12
62-
### Changed
63-
- Use quotes in JS partial selector, fixing JS issue in WordPress 4.5
64-
65-
## [1.5.5] = 2016-03-22
66-
### Added
67-
- Added support for custom post types
68-
- Added commas to the share counts in metabox
69-
- Added readme file with documentation
70-
71-
### Changed
72-
- Expired share counts now update after page has loaded, rather during page load
73-
- Default style is now 'fancy' rather than 'bubble'
74-
75-
## [1.5.4] = 2016-02-26
76-
### Changed
77-
- Moved the theme location code to a later hook (template_redirect) so filterable in theme.
78-
79-
## [1.5.3] = 2016-01-28
80-
### Added
81-
- Display before/after content now supports all themes. First looks for Genesis and Theme Hook Alliance hooks, then falls back to 'the_content' filter (see #36)
82-
83-
### Changed
84-
- Icons are now included in CSS. Icon classes have changed from font awesome to our custom icons. Ex: fa-facebook is now easc-facebook (see #35)
85-
- Reduced size of print button when using GSS style
86-
- Renamed Genesis Simple Share style to Slim
87-
- Rearranged fields on settings page
88-
89-
### Fixed
90-
- Special characters now work in emails (see #34)
91-
92-
## [1.5.2] - 2015-11-13
93-
### Changed
94-
- Links to author names on plugin page
95-
- Renamed main plugin file to match plugin name
96-
97-
## [1.5.1] - 2015-11-13
98-
### Changed
99-
- Version bump to test plugin updater
100-
101-
## [1.5.0] - 2015-11-13
102-
### Added
103-
- Email sharing feature
104-
- Plugin updater
105-
106-
## [1.4.0] - 2015-10-21
107-
### Added
108-
- Print included service option
109-
- Total Counts included service option
110-
- Settings to toggle count number visibility
111-
112-
### Changed
113-
- Refactored Included Service setting so that the service order is saved
114-
- Seperate the regisration and enqueuing of assets
115-
- Enqueue assets earlier
116-
117-
## [1.3.0] - 2015-10-14
118-
### Added
119-
- Metabox to supported post types for viewing/updating share counts
120-
- Filter for theme locations
121-
- Settings link to plugin page
122-
123-
### Changed
124-
- Refactored plugin structure
125-
- Non-post URLs are now stored in a single option
126-
127-
### Fixed
128-
- Pinterest js library bug
129-
- Select2 v4 issue, reverted to v3.5.x
130-
131-
## [1.2.0] - 2015-10-06
132-
### Added
133-
- Setting for post types supported
134-
- Setting for hiding empty counts
135-
- Uninstall functionality
136-
137-
### Changed
138-
- Setting format for included services
139-
- Setting theme location to support before AND after
140-
- Share bar display markup and CSS
141-
- Reorganized file structure
142-
- Assets enqueue earlier if possible
143-
144-
## [1.1.0] - 2015-09-30
145-
### Added
146-
- Settings page for managing API Details and Theme Display
147-
- A prime_the_pump() function for ensuring there is share data for a certain number of posts
148-
- 'ea_share_count_total' filter for modifying the total count. Useful when wanting to query based on specific metric (eg: facebook likes)
149-
150-
## [1.0.6] - 2015-09-16
151-
### Fixed
152-
- Default Facebook like opens share dialog box
153-
- Single post image filter bug
154-
### Added
155-
- "GSS" style option to mimic the Genesis Simple Share plugin
156-
157-
## [1.0.5] - 2015-09-02
158-
### Fixed
159-
- Incorrect target="_blank" assignment
160-
161-
### Added
162-
- Filter for single post images
163-
- Javascript event for share clicks
164-
- Fancy button styles
165-
166-
## [1.0.4] - 2015-07-24
167-
### Fixed
168-
- Use correct variable name for Pinterest image
169-
### Added
170-
- Support for arbitrary URLs as ID
171-
172-
## [1.0.3] - 2015-07-4
173-
### Fixed
174-
- Update share button js to correctly look for target="_blank"
175-
176-
## [1.0.2] - 2015-05-08
177-
### Added
178-
- Total count parameter, accessible in count() method
179-
- Total count is also stored in 'ea_share_count_total' key for query sorting
180-
181-
## [1.0.1] - 2015-03-17
182-
### Added
183-
- Parameter for specifying the link style
184-
- Styles for bubble count Facebook and Twitter
185-
186-
### Changed
187-
- Removed unnecessary $post_date argument on 'ea_share_count_update_increments' filter, see #6
188-
- Inline documentation
189-
190-
## [1.0.0] - 2015-03-10
191-
- Initial Commit
4+
## [1.0.0] = 2018-02-09
5+
- Initial Release

README.md

Lines changed: 45 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,22 @@
55
**Contributors:** jaredatch, billerickson
66
**Tags:** sharing, share buttons, social buttons, share counts, social, facebook, linkedin, pinterest, stumbleupon, twitter
77
**Requires at least:** 4.6
8-
**Tested up to:** 4.7.0
8+
**Tested up to:** 4.9
99
**Stable tag:** 1.0.0
1010
**License:** GPLv2 or later
1111
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html
1212

13-
Shared Counts is a WordPress plugin that leverages SharedCount.com API to quickly retrieve, cache, and display various social sharing counts.
13+
Shared Counts adds social sharing buttons that look great and keep your site loading fast.
1414

15-
## Description
15+
We provide a one-click option to retrieve both HTTP and HTTPS share counts, ensuring you don't lose your share counts when upgrading your website to HTTPS.
1616

17-
We provide enough out-of-the-box options for basic/most use cases, but don't include the kitchen sink to keep things lean and bloat-free.
17+
We include many styling options, and you can automatically insert the buttons before and/or after the post content. You can also use the `[shared_counts]` shortcode to insert them inside the content.
1818

19-
Share Counts that can be tracked and displayed are:
19+
Shared Counts was created with site performance in mind, even at large scale. It is used on several large websites that get tens of millions of page views each month. Our unique and creative caching methods have a minimal affect on site overhead. Leveraging the SharedCount.com API, we can retrieve (almost) all share counts in a single request.
2020

21+
Additionally, Shared Counts was built to be developer friendly! We provide very liberal usage of hooks and filters. Everything is customizable and the possibilities are near limitless. Unlike other plugins all data (counts) are stored and cached in post_meta which makes it easy to access for extending (e.g. fetch top 10 most shared posts on your site).
22+
23+
### Included Services
2124
- Facebook
2225
- Pinterest
2326
- LinkedIn
@@ -26,31 +29,61 @@ Share Counts that can be tracked and displayed are:
2629
- Email sharing (with reCAPTCHA support to prevent abuse)
2730
- Share count totals
2831

29-
Shared Counts was created with site performance in mind, even at large scale. It is used on several large that get tens of millions of page views each month. Our unique and creative caching methods have a minimal affect on site overhead. Leveraging the SharedCount.com API, we can retrieve (almost) all share counts in a single request.
3032

31-
Additionally, Shared Counts was built to be developer friendly! We provide _very liberal_ usage of hooks and filters. Everything is customizable and the possibilities are near limitless. Unlike other plugins all data (counts) are stored and cached in `post_meta` which makes it easy to access for extending (e.g. fetch top 10 most shared posts on your site).
3233

33-
We also provide a one-click method to restore and preserve non-HTTPS share counts which is extremely helpful for existing sites that have switched to HTTPS. Additional arbitrary URLs can also be tracked in cases where the post slug has changed or redirects are used.
34+
## Style Options ##
3435

35-
## This Repo ##
36-
Master branch is always stable and contains latest releases. Development occurs in the develop branch while large features/changes are contained in dedicated branches. For reporting bugs or contributing, see more additional information below.
36+
#### Fancy
37+
38+
![fancy](https://d3vv6lp55qjaqc.cloudfront.net/items/001O1T2o0s0a3A2F3D0p/Screen%20Shot%202018-02-09%20at%2010.32.32%20AM.png?X-CloudApp-Visitor-Id=095a13821a9a7633d8999bdb4bf2b94a&v=a0c11008)
39+
40+
#### Slim
41+
42+
![slim](https://d3vv6lp55qjaqc.cloudfront.net/items/363x2P3Y2t0w1g1S2u2C/Screen%20Shot%202018-02-09%20at%2010.33.17%20AM.png?X-CloudApp-Visitor-Id=095a13821a9a7633d8999bdb4bf2b94a&v=473dd2d6)
43+
44+
#### Classic
45+
![classic](https://d3vv6lp55qjaqc.cloudfront.net/items/302h3t3j3z0x3w2l0o0i/Screen%20Shot%202018-02-09%20at%2010.33.53%20AM.png?X-CloudApp-Visitor-Id=095a13821a9a7633d8999bdb4bf2b94a&v=7c71a21a)
46+
47+
#### Block
48+
![block](https://d3vv6lp55qjaqc.cloudfront.net/items/441W3L3j3S3O2P2u3x21/Screen%20Shot%202018-02-09%20at%2010.35.19%20AM.png?X-CloudApp-Visitor-Id=095a13821a9a7633d8999bdb4bf2b94a&v=bad3fa6c)
49+
50+
#### Bar
51+
![bar](https://d3vv6lp55qjaqc.cloudfront.net/items/2R2X2a3g1j0w1L171h1H/Screen%20Shot%202018-02-09%20at%2010.36.51%20AM.png?X-CloudApp-Visitor-Id=095a13821a9a7633d8999bdb4bf2b94a&v=876d7ced)
52+
53+
#### Rounded
54+
![rounded](https://d3vv6lp55qjaqc.cloudfront.net/items/2n2G3j3h161I2I2O1e0L/Screen%20Shot%202018-02-09%20at%2010.44.47%20AM.png?X-CloudApp-Visitor-Id=095a13821a9a7633d8999bdb4bf2b94a&v=116f138b)
55+
56+
#### Buttons
57+
![buttons](https://d3vv6lp55qjaqc.cloudfront.net/items/1u0C1s210Z1L12181J3A/Screen%20Shot%202018-02-09%20at%2010.45.29%20AM.png?X-CloudApp-Visitor-Id=095a13821a9a7633d8999bdb4bf2b94a&v=cffff3cf)
58+
59+
#### Icons
60+
![icons](https://d3vv6lp55qjaqc.cloudfront.net/items/3H1M1e3K0F3K370Q1J1L/Screen%20Shot%202018-02-09%20at%2010.47.16%20AM.png?X-CloudApp-Visitor-Id=095a13821a9a7633d8999bdb4bf2b94a&v=b4d3bc7f)
3761

3862
## Installation ##
3963
1. Download the plugin [from GitHub.](https://github.com/jaredatch/Shared-Counts/archive/master.zip) or from [WordPress.org](https://wordpress.org/plugins/shared-counts/).
4064
2. Activate plugin.
4165
3. Go to Settings > Shared Counts to configure.
4266

67+
We recommend you sign up for a free account at [SharedCounts.com](https://sharedcounts.com), which lets you receive share counts from all services (except Twitter) with a single API query. Alternatively, you can select "Native" as the count source and select which services you'd like to query. If you select all 5 native service queries, then you will have 5 separate API queries every time share counts are updated.
68+
69+
If you would like to include Twitter share counts, you can sign up for a free account at [NewShareCounts.com](https://newsharecounts.com).
70+
71+
If you use the Email share button, we recommend you enable Google's reCAPTCHA to prevent spam. [Sign up here](https://www.google.com/recaptcha/intro/android.html) (free) to get your Site Key and Secret Key.
72+
4373
## Customization ##
44-
For details on this please see [the wiki](https://github.com/jaredatch/Shared-Counts/wiki/Customizations).
74+
For details on this please see [the wiki](https://github.com/jaredatch/Shared-Counts/wiki/).
4575

4676
## Bugs ##
4777
If you find an bug or problem, please let us know by [creating an issue](https://github.com/jaredatch/Shared-Counts/issues?state=open).
4878

4979
## Contributions ##
50-
Contribututions are welcome!
80+
Contributions are welcome!
5181

5282
1. Open an [Issue](https://github.com/jaredatch/Shared-Counts/issues) on GitHub.
5383
2. Fork Shared Counts on GitHub.
5484
3. Create a new branch off of `develop`; branch name should be `issue/###` to reference the issue.
5585
4. When committing, reference your issue and provide notes/feedback.
5686
5. Send us a Pull Request with your bug fixes and/or new features.
87+
88+
## This Repo ##
89+
Master branch is always stable and contains latest releases. Development occurs in the develop branch while large features/changes are contained in dedicated branches. For reporting bugs or contributing, see more additional information below.

0 commit comments

Comments
 (0)