=== Hoops Nightly Widgets ===
Contributors: hoopsnightly
Tags: basketball, scores, standings, sports, widget
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.2
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Live basketball widgets for your posts and sidebars: game tracker, tonight's scores, standings, stat leaders, injuries, trade radar, players.

== Description ==

Twelve live widgets from Hoops Nightly, free, no account needed. They update themselves: a game tracker switches from the tip-off countdown to the live score and the win-probability river, then to the final.

* Game tracker, score strip, tonight's scoreboard
* Standings, stat leaders, injury report, trade radar
* Team pulse, schedule, player card, shot chart, head to head

Add the **Hoops Nightly widget** block in the editor, or use a shortcode anywhere:

`[hoops_widget type="game" team="lakers"]`
`[hoops_widget type="standings" team="celtics" size="sidebar" theme="light"]`
`[hoops_widget type="compare" player="jalen-brunson" player_b="victor-wembanyama"]`

All options are listed in Settings → Hoops Nightly, where you can also choose to show a small credit link under the widgets (off by default).

With Hoops Nightly Pro (https://hoopsnightly.com/pro) the widgets carry your brand instead of ours and size themselves: paste your key in Settings → Hoops Nightly.

== Installation ==

1. Plugins → Add New → search for "Hoops Nightly Widgets", or upload the zip.
2. Activate it.
3. In any post or page add the "Hoops Nightly widget" block, pick the widget and the team. Or paste a shortcode.

== Frequently Asked Questions ==

= Is it free? =

Yes. The twelve widgets are free and need no account. Hoops Nightly Pro (optional, paid) removes our branding from inside the widgets and lets them size themselves.

= Will it slow my site down? =

No. Each widget loads only when a reader scrolls to it, sets no cookies and runs no ads or trackers.

= Where do the data come from? =

From Hoops Nightly, which updates scores during games and standings, stats and injuries after them.

== Screenshots ==

1. The block in the editor: pick the widget, the team and where it goes; the preview is the real, live widget.
2. Widgets in a published post: a game tracker and the conference standings.
3. Settings → Hoops Nightly: default theme and color, optional credit link, Pro key.

== External service ==

This plugin relies on Hoops Nightly (https://hoopsnightly.com), a third-party service: every widget is a page of hoopsnightly.com shown in an iframe, so the visitor's browser loads it from hoopsnightly.com, which receives the usual request data (IP address, browser, the page that hosts the widget). The widgets set no cookies. The plugin itself sends nothing; the Pro key, if you enter one, is part of the widget address. Terms: https://hoopsnightly.com/terms · Privacy: https://hoopsnightly.com/privacy

== Changelog ==

= 1.1.0 =
* The credit link under the widgets is a setting.
* The auto-height script ships with the plugin.
* Block API 3, tested with WordPress 7.1.

= 1.0.0 =
* First release: 12 widgets, block and shortcode, Pro key.
