=== Sport Scoring Results ===
Contributors: sportscoring
Tags: sport, league table, fixtures, results, cricket
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Show the live log, fixtures, results, player statistics and scoresheets of your Sport Scoring tournament on your club website.

== Description ==

Run your league or tournament on sportscoring.co.za and show it on your own site with a shortcode:

* `[sportscoring widget="log"]` – log / standings, with skins for indoor cricket and optional form
* `[sportscoring widget="fixtures" limit="8"]` – matches still to play
* `[sportscoring widget="results" limit="10"]` – latest results
* `[sportscoring widget="stats"]` – player leader boards (`view="players"` for the full table)
* `[sportscoring widget="match" match="…"]` – a full scoresheet, ball by ball for indoor cricket

The tables are rendered by your site, so they are part of your page for search engines, with schema.org event data for fixtures and results. With live updates on (the default), they also refresh every 30 seconds in visitors' browsers.

Set your default tournament under Settings → Sport Scoring. Every shortcode also takes `comp`, `limit`, `title="0"`, `theme` (light, dark, auto), `accent` and `live="0"`.

= External service =

This plugin reads your tournament's public data from Sport Scoring (https://sportscoring.co.za/api/v1/) on your server, and – with live updates on – loads https://sportscoring.co.za/embed/widget.php in visitors' browsers, which reads the same public data. No visitor data is sent. Privacy policy: https://sportscoring.co.za/privacy/

== Installation ==

1. Plugins → Add New → Upload Plugin, choose the zip, Install, Activate.
2. Settings → Sport Scoring: paste your tournament's public link (Share tab of the tournament manager).
3. Add a Shortcode block with `[sportscoring widget="log"]`.

== Changelog ==

= 1.0.2 =
* Indoor cricket logs show half skins (a shared skin) and the kit bonus column.

= 1.0.1 =
* Live updates load the widget from embed/widget.php, so visitors get widget updates within an hour.

= 1.0.0 =
* First release.
