=== SportsPress - Sports Club & League Manager ===
Contributors: ThemeBoy, brianmiyaji, aylaview, savvasha, nabil_kadimi
Tags: club, event, fixtures, league, sports
Donate link: http://tboy.co/donate
Requires at least: 5.0
Tested up to: 6.9
Stable tag: 2.7.29
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

SportsPress is an extendable all-in-one sports data plugin that helps sports clubs set up and manage a league or club site quickly and easily.

== Description ==

= Create a Professional Sports Website =
Transform your WordPress blog into a fully configurable team, club, or league website. Features a suite of sports tools including fixtures, results, automated standings, players rankings, and individual profiles for clubs, players, and staff.

[youtube http://www.youtube.com/watch?v=KQyga_C5a6M]

= Industry Reviews =
> "*Best WordPress Sports plugins: With premade templates for different sports, SportsPress pretty much covers the range of what almost everyone needs. It’s highly reviewed, and does exactly what it says it will do.*" — [Elegant Themes](https://www.elegantthemes.com/blog/resources/5-best-wordpress-sports-plugins)
>
> "*Script of the Day: While the WordPress repository holds various team and sports-related plugins, few of them come close to what you can achieve with SportsPress.*" — [Softpedia](http://news.softpedia.com/news/Script-of-the-Day-SportsPress-409247.shtml)
>
> "*SportsPress is probably one of the most complete WordPress sports plugins out there. If you have a sports website and you’re looking to showcase your team, or even your entire league, then give this plugin a try.*" — [HostGator](https://www.hostgator.com/blog/best-wordpress-plugins-themes-sports-websites/)

= Features =
* Equation Builder
* Club Profiles with Player List
* Automated League Standings with Club Logos
* Events (Fixtures & Results) with Player Performance
* Events Calendar
* Player Profiles & Statistics
* Player Lists
* Staff Profiles
* Select Current Club and Previous Clubs
* Season Archives
* Venue Information & Maps
* Statistics & League Table Columns Configuration
* Sport Presets
* Switch Between Club vs Club and Player vs Player Mode.
* Import Events, Clubs, Players, and Staff from CSV Files
* Easy Shortcodes Menu in Editor
* Events Integrate with iCal
* Certified compatibility with [WPML](http://wpml.org/plugin/sportspress/)

More details about each feature are available on the [SportsPress Website](http://tboy.co/pro).

= Free Extensions =
* [SportsPress for Baseball](https://wordpress.org/plugins/sportspress-for-baseball/)
* [SportsPress for Basketball](https://wordpress.org/plugins/sportspress-for-basketball/)
* [SportsPress for Cricket](https://wordpress.org/plugins/sportspress-for-cricket/)
* [SportsPress for Football (Soccer)](https://wordpress.org/plugins/sportspress-for-soccer/)
* [SportsPress for Golf](https://wordpress.org/plugins/sportspress-for-golf/)
* [SportsPress for Volleyball](https://wordpress.org/plugins/sportspress-for-volleyball/)

= SportsPress Pro =

Looking for more advanced sports functionality? Upgrade to [SportsPress Pro](http://tboy.co/pro) to get access to more advanced features for your team, club, or league website.

= Available Languages =
* English – English ( en_US )
* Arabic – العربية ( ar )
* Armenian – Հայերեն ( hy )
* Bulgarian – Български ( bg_BG )
* Chinese (China) – 中文 ( zh_CN )
* Croatian – Hrvatski ( hr )
* Czech – Čeština ( cs_CZ )
* Danish – Dansk ( da_DK )
* Dutch – Nederlands ( nl_NL )
* French – Français ( fr_FR )
* Finnish – Suomi ( fi )
* German – Deutsch ( de_DE )
* Greek – Ελληνικά ( el_GR )
* Hungarian – Magyar ( hu_HU )
* Italian – Italiano ( it_IT )
* Japanese – 日本語 ( ja )
* Korean – 한국어 ( ko_KR )
* Macedonian – македонски ( mk_MK )
* Norwegian Bokmål – Norsk bokmål ( nb_NO )
* Persian – فارسی ( fa_IR )
* Polish – Polski ( pl_PL )
* Portuguese (Brazil) – Português do Brasil ( pt_BR )
* Portuguese (Portugal) – Português ( pt_PT )
* Romanian – Română ( ro_RO )
* Russian – Русский ( ru_RU )
* Slovak – Slovenčina ( sk_SK )
* Slovenian – Slovenija ( sl_SI )
* Spanish – Español ( es_ES )
* Swedish – Svenska ( sv_SE )
* Tagalog - Tagalog ( tl )
* Tamil – தமிழ் ( ta_IN )
* Thai – ไทย ( th )
* Turkish – Türkçe ( tr_TR )

= Sport Presets Included =
* American Football
* Association Football (Soccer)
* Australian Rules Football
* Baseball
* Basketball
* Cricket
* Darts
* Golf
* Handball
* Ice Hockey
* Lacrosse
* Netball
* Rugby League
* Rugby Union
* Snooker
* Softball
* Squash
* Table Tennis
* Tennis
* Volleyball
* Water Polo

= Esports Presets =
* Counter-Strike: Global Offensive
* Dota 2
* League of Legends

= SportsPress Themes for Clubs =
* [Courtside](http://tboy.co/courtside)
* [Emblem](http://tboy.co/emblem)
* [Football Club](http://tboy.co/fc)
* [Marquee](http://tboy.co/marquee)
* [Premier](http://tboy.co/premier)
* [Rookie Plus](http://tboy.co/rp)
* [Varsity](http://tboy.co/varsity)

= Get Involved =

Feel free to share your suggestions with us so we can continue to develop awesome sports club features for you guys!

Developers can contribute via the [SportsPress GitHub Repository](https://github.com/ThemeBoy/SportsPress/blob/master/CONTRIBUTING.md).

Translators can contribute to SportsPress translations through [GlotPress](https://translate.wordpress.org/projects/wp-plugins/sportspress).

= Stay Current =
To keep up with the latest updates and new features, be sure to do the following:

* Visit the [SportsPress Pro homepage](http://tboy.co/pro).
* Subscribe to our [YouTube channel](http://tboy.co/youtube).
* Follow ThemeBoy on [Facebook](http://tboy.co/facebook) & [Twitter](http://tboy.co/twitter).

= Please Rate, Vote, and Enjoy! =
Your feedback is much appreciated and makes all the difference in improving SportsPress.

== Installation ==

= Minimum Requirements =
* WordPress 3.8 or greater
* PHP version 5.2.4 or greater
* MySQL version 5.0 or greater

[youtube http://www.youtube.com/watch?v=nE8-RlbotmU]

= Automatic Installation =

Automatic installation is the easiest option as WordPress handles the file transfers itself and you don't even need to leave your web browser. To do an automatic install of SportsPress, log in to your WordPress admin panel, navigate to the Plugins menu and click Add New.

In the search field type "SportsPress" and click Search Plugins. Once you've found our sports plugin you can view details about it such as the point release, rating and description. Most importantly of course, you can install it by simply clicking Install Now. After clicking that link you will be asked if you're sure you want to install the plugin. Click yes and WordPress will automatically complete the installation.

= Manual Installation =

The manual installation method involves downloading our sports plugin and uploading it to your webserver via your favorite FTP application.

1. Download the plugin file to your computer and unzip it
2. Using an FTP program, or your hosting control panel, upload the unzipped plugin folder to your WordPress installation's wp-content/plugins/ directory.
3. Activate the plugin from the Plugins menu within the WordPress admin.

= Upgrading =

Automatic updates should work like a charm; as always though, ensure you backup your site just in case.

If on the off-chance you do encounter issues with the event/team/player/staff pages after an update you simply need to flush the permalinks by going to WordPress > Settings > Permalinks and hitting 'save'. That should return things to normal.

== Screenshots ==

1. Add a suite of widgets to your site to display your own sports data.
2. Generate automated standings that update whenever results are published.
3. Schedule matches and display details, results, box scores, and a map to the venue.
4. Register teams and players on your site and create lineups for each team.
5. Display player profiles with configurable details and career stats.
6. Select your sport to automatically install presets and sample data.
7. Each team has a unique logo and website URL. Optionally link teams from your blog to their official websites.
8. The overview page provides a birds-eye view of your entire sports network.
9. Configure variables used throughout the plugin to fit your sport. Presets are provided for some sports, and will automatically populate these options.
10. Design your own points system using the custom drag-and-drop equation builder.

== Frequently Asked Questions ==

= Which sports does this plugin support? =

The plugin will support most team sports with a scoring system. You can customize the table columns and player statistics via SportsPress settings. We've included presets for commonly requested sports, and you can also add your own.

= Will SportsPress work with my theme? =

Yes; SportsPress will work with any theme, but may require some styling to make it match nicely.

= Where can I report bugs or contribute to the project? =

Bugs can be reported either in our support forum or preferably on the [SportsPress GitHub repository](https://github.com/ThemeBoy/SportsPress/issues).

= Will SportsPress work with my sport? =

The plugin comes preinstalled with several different sports presets to help you get started quickly, but is also flexible enough to be customized to fit the need of any team or individual sport. Please [let us know](http://wordpress.org/support/plugin/sportspress) if you'd like to work with us to get your preset added the plugin.

= Can I import teams/players/staff/matches? =

Yes, CSV importers are included with the plugin. Go to Tools > Import and choose from one of the SportsPress CSV importers. Supports CSV files generated by [LeagueLobster](http://tboy.co/leaguelobster).

= What's the difference between the free and Pro plugin? =

SportsPress is a free plugin developed to give sports organizations the functionality needed to run a team, club, or league website. The plugin allows you to schedule your upcoming matches and enter the results after you've played a game. Your league tables, team and player statistics will automatically update once you've published the result to reflect the new standings.

Limitations? Don't worry, there are no limitations to the number of events, players, staff members, teams, clubs, or leagues you can add to the free plugin.

[SportsPress Pro](http://tboy.co/pro) is a premium plugin made for serious teams who are looking for additional sports functionality in their website. By upgrading to SportsPress Pro, you will be given instant access to a suite of sports modules that will appear in your dashboard.

The current modules that are available exclusively to SportsPress Pro are:

* Tournaments: Create and display tournaments in a bracket/knockout cup format.
* Timelines: Display a visual timeline of player performance in events.
* Scoreboard: Display multiple event results in a horizontal scoreboard.
* Sponsors: Add your sponsors on your website and track each of their clicks and impressions.
* Staff Directories: Show contact information of your key personnel so people know who to get in touch with.
* Team Access: Assign users to a specific team and limit their access to data related to that team.
* Team Colors: Make each team's profile page unique by displaying their team colors.
* League Menu: Display a global navigation bar at the top of your website for easy navigation from one team to the next.
* Twitter: Add a Twitter feed to team, player, and staff pages.
* Branding: Instantly rebrands your admin panel to reflect your organization's brand.
* Duplicator: Clone anything with just one click. Great for creating multiple events.

There are [3 different licenses](http://tboy.co/pro) that you can choose from: Club, League, and Agency.

When you upgrade to one of the SportsPress Pro licenses, you can simply activate the Pro version without losing any of your data. Please note that we recommend that you do a complete backup whenever you make big changes to your website.

== Changelog ==

= 2.7.29 =
* Fix - Error when extensions add null values.
* Fix - Non-numeric metrics being converted to numeric values.

= 2.7.27 =
* Fix - Security issues.

= 2.7.26 =
* Tweak - Make SportsPress compatible with the Polylang plugin.
* Fix - Non-numeric value error in player list.
* Fix - Countdown widget null parameter deprecation.
* Fix - Deprecated functiong get_page_by_title().

= 2.7.24 =
* Update - Leaflet version to 1.9.4.
* Tweak - Refactor equation builder to support nested conditional equations.
* Tweak - Add option to filter events by venue in admin.
* Tweak - Include events with no status in countdown widget.
* Fix - Errors related to PHP version 8.
* Fix - Statistic format not saving.
* Fix - Position stats in offense and defense not saving.
* Fix - Google error: Date/time not in ISO 8601 format.
* Fix - Minutes in league table.
* Fix = Fatal error due to wrong type.

= 2.7.23 =
* Update - Version bump for SportsPress Pro.

= 2.7.22 =
* Fix - Security issues.

= 2.7.21 =
* Fix - Add nonce checks to hide notice links.

= 2.7.20 =
* Fix - Permalink access for non-admins.

= 2.7.19 =
* Fix - Games back showing as zero.

= 2.7.18 =
* Tweak - Only get staff template if enabled.
* Tweak - Show visible option only when "Auto" mode is selected.
* Fix - "None" option disappeared from dropdowns.
* Fix - Minutes not shown when image used as icon.
* Fix - Deprecated urlencode() notice.
* Fix - Null parameter notice.
* Fix - Undefined array key warnings.
* Fix - Add user capability check and nonce check when updating permalinks.

= 2.7.17 =
* Fix - PHP 8.2.x deprecated code warnings.
* Fix - Next team not working in shortcodes.
* Fix - Links rendering in event specs.
* Localization - Update translatable strings.

= 2.7.16 =
* Update - WP version tested up to 6.1.
* Update - Leaflet version to 1.8.0.
* Tweak - Datepicker support for event blocks, list, and calendar widgets.
* Fix - Toggle between absolute and resltive dates in shortcodes.
* Fix - Undefined variables showdob and showage.
* Fix - Date range error in player lists.
* Fix - Loss condition not applied on event results.
* Fix - Can't set statistic variable for player positions.
* Fix - API error when using _fields.
* Fix - Event map and video not being displayed.
* Fix - Escape functions in admin.

= 2.7.15 =
* Feature - Sports news widget in dashboard.
* Fix - Fixture importer bug with extended characters in league and season name.
* Fix - Player list not loading (too many resources).
* Fix - Performance format not updating.
* Fix - Trim whitespace on geo coordinates to avoid import error.

= 2.7.14 =
* Fix - Error when non-value added as adjustment.
* Fix - Map links not escaped properly.
* Fix - Event blocks missing attributes.
* Fix - Player statistics meta escaping.

= 2.7.13 =
* Fix - Theme notice escaping.
* Fix - Timezone dropdown selection now shown in general settings.
* Fix - Double header when multiple player lists are displayed in team.
* Fix - Dropdown options not saving in settings.
* Fix - Setup page conflict with WooCommerce.

= 2.7.12 =
* Fix - OpenStreetMap not displaying map after update.

= 2.7.11 =
* Fix - Player status selector not reflecting changes in match edit screen.
* Fix - Player dropdown template not displaying names.
* Fix - Staff dropdown template not displaying names.

= 2.7.10 =
* Fix - Players not selectable in event edit page.
* Fix - Videos embedded in post content not rendering.

= 2.7.9 =
* Tweak - Add support for event format in REST API.
* Tweak - Add "Order" and "Order by" selection fields for countdown widget.
* Tweak - Add option to display event status in countdown widget.
* Tweak - Add ability to filter events by format in calendar template.
* Tweak - Update TGM plugin activation library.
* Fix - Remove plugin headers from modules for improved compatibility.
* Fix - Reverse order not applying to teams in event lists.
* Fix - Add validation to user inputs for improved security.
* Fix - Sanitize all user inputs for improved security.
* Fix - Escape all outputs in admin for improved security.
* Fix - Filtering based on format for event blocks.
* Fix - Last week and next week filter not applying to player lists.
* Fix - Deselecting a selected team in settings.
* Fix - PHP 8.0 deprecated warnings.
* Localization - Add nationalities and flags for French Guiana, French Polynesia, Guadeloupe, Greenland, Martinique, Reunion, and Sint Maarten.

= 2.7.8 =
* Fix - Event results, box scores, and players stats not updating via REST API.

= 2.7.7 =
* Fix - Events not appearing due to filter malfunction.

= 2.7.6 =
* Feature - Add ability to bulk set events as on time.
* Fix - Players in events not being filtered by team.

= 2.7.5 =
* Tweak - Add ability to filter events by team and match day in one query.
* Tweak - Improve performance by updating leaflet script and only loading when required.
* Tweak - Add overtime notation compatibility for minutes played.
* Fix - Issue with event edit page where the scripts were not working.
* Fix - No records when format is default in event list shortcode.

= 2.7.4 =
* Tweak - Add option to display birthday, age, or both in birthdays widget.
* Fix - Player list data showing zeroes in some cases.

= 2.7.3 =
* Compatibility - Tested for compatibility with WordPress 5.5 with changes made where necessary.
* Tweak - Avoid showing minutes box for subs when not needed.
* Tweak - Improve filtering speed for queries without leagues or seasons.
* Tweak - Apply reverse order setting in event lists.
* Tweak - Enable filtering a player's events played on a specific team.
* Fix - Include future events in REST API for WordPress 5.5.
* Fix - Enable updating player metrics using the REST API.
* Fix - Deprecated code for PHP 7.4.
* Fix - Elementor compatibility.
* Localization - Update country names for Czechia, North Macedonia, Myanmar, and Eswatini.
* Localization - Adjust RTL stylesheet for event performance icons.

= 2.7.2 =
* Tweak - Sanitize delimiter field in event settings.

= 2.7.1 =
* Feature - Enable player list filtering by nationality.
* Feature - Add option to display date of birth in player lists.
* Tweak - Exclude postponed and canceled events from countdowns.
* Tweak - Apply reverse order option to event results.
* Tweak - When a team has more than one home venue, separate with commas.
* Fix - Venue address containing pluses in events.
* Fix - Event blocks showing the wrong dates when embedded within other event pages.
* Fix - Statistics not adding manual values when not based on equations.
* Fix - Event lists ignoring the format parameter.
* Fix - League table order when displaying multiple tables in team profiles.
* Fix - Error when deleting configuration columns.
* Fix - Player lists not including past players in some cases.
* Fix - Prevent error when viewing event calendar in some cases.

= 2.7 =
* Feature - New bulk actions to postpone and cancel multiple events.
* Feature - Add date of birth to player importer.
* Feature - Automatically select the home team's venue as the default venue when importing fixtures.
* Feature - Add ability to turn on comment for team profiles.
* Feature - Filter league tables by event status.
* Tweak - When an icon is used for player performance, display the icon in player lists and profiles.
* Tweak - Add title attribute for player statistic icons.
* Tweak - Default stylesheet sorting icon width.
* Fix - Icon color picker rendering issue.
* Fix - Image selector not working for player statistics.
* Fix - Enqueue scripts and styles for OpenStreetMap when used in shortcodes.
* Localization - Add translation options for countdown units.

= Full Changelog =
* For older versions, [view the full changelog](https://github.com/ThemeBoy/SportsPress/blob/master/changelog.txt).
