=== SPOSCOR Basketball ===
Contributors: powereight, freemius
Tags: basketball, sports, scoreboard, score, team
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.9.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Publish basketball game results on WordPress. Quarter-by-quarter scoreboard, overtime, lineups, and highlights. Requires SPOSCOR Core.

== Description ==

SPOSCOR Basketball is a dedicated basketball plugin built on top of SPOSCOR Core. It adds basketball-specific features like quarter-by-quarter scoreboards, starting lineups, and game highlights — all designed to publish your game results quickly and beautifully.

Perfect for local basketball clubs, amateur teams, school clubs, and anyone who wants a simple yet professional way to display basketball scores on their WordPress site.

= Why SPOSCOR Basketball? =

* 5 minutes to publish. Just enter scores and paste a shortcode.
* Quarter-by-quarter scoreboard. Q1-Q4 plus overtime.
* Overtime support. Add OT periods per game as needed.
* Mobile-first admin. Enter scores from the gym on your phone, one-handed.
* Beautiful display. Modern card design that looks great on any theme.

= Features =

* Unlimited games
* Quarter-by-quarter scoreboard (Q1-Q4 + OT)
* Starting lineup (PG / SG / SF / PF / C + substitutes)
* Game highlights (3-pointer, dunk, free throw, foul, and more) with per-play team, period, clock and player
* 6 display themes (Light / Dark / Mono / Pro / Studio / Minimal)
* Voice input for scores (free)
* Multilingual: English, Japanese, Spanish

= Pro Features ($39/year) =

* Unlimited tournaments (leagues & knockout brackets)
* Standings tables with FIBA-style tiebreakers
* Full design customization (colors & sizes)
* OBS streaming view for live broadcasts
* Lineup bulk paste from Excel / Google Sheets
* Priority support

= Requires SPOSCOR Core =

This plugin needs the free "SPOSCOR Core" plugin to work. Install and activate SPOSCOR Core first.

= Pricing =

SPOSCOR Basketball comes in two plans: a free version (everything above) and Pro at $39/year, which adds unlimited tournaments, standings tables, full design customization, OBS streaming, and lineup bulk paste.

== Installation ==

1. Install and activate the free "SPOSCOR Core" plugin.
2. Upload the SPOSCOR Basketball plugin to /wp-content/plugins/, or install it from the Plugins screen.
3. Activate SPOSCOR Basketball through the Plugins screen.
4. Go to Basketball, add a game, enter the score, and paste the shortcode into any post or page.

== Frequently Asked Questions ==

= Does this work on its own? =

No. SPOSCOR Basketball requires the free SPOSCOR Core plugin, which provides the shared engine and settings.

= Can I show overtime? =

Yes. The scoreboard supports Q1-Q4 plus overtime periods, which you can add per game.

= Can I run a league or tournament? =

Yes, with the Pro plan. The free plan includes one tournament; Pro unlocks unlimited tournaments, standings tables, and knockout brackets.

= What shortcodes are available? =

[sposcor_scorecard id="123"] shows the full game card. [sposcor_result id="123"] shows a compact result. Tournament and standings shortcodes are available with Pro.

== Screenshots ==

1. Quarter-by-quarter scorecard on the front end.
2. Game highlights with team, period, and player.
3. Standings table (Pro).
4. Mobile-friendly score entry screen.
5. OBS streaming overlay (Pro).

== Changelog ==

= 1.9.1 =
* Changed: all function, variable, and hook names now use a unique sposcor_basketball_ prefix

* Fixed: admin styles could be overridden by another SPOSCOR sport plugin, changing the highlight row layout

* Updated the bundled Freemius SDK to 2.13.4
* Fixed: the auto-refresh toggle on match pages did nothing when more than one scorecard was on the page

* Fixed: front-end scripts were attached to a shared handle and could fail to load, which stopped the refresh buttons from working
* Improved: output escaping now uses wp_kses() with an explicit allow-list
* Fixed: refresh buttons on tournament and standings views did not update the timestamp (Pro)
* Fixed: design customization and streaming settings appeared on sports without a Pro license
* Fixed: tournament features appeared on sports without a Pro license when another sport had one
* Fixed: refresh and auto-refresh buttons on tournament and standings views (Pro)
* Fixed: Pro features could disappear when another SPOSCOR sport plugin was active on the same site
* Fixed: the license activation and account screens were registered outside the plugin menu, which caused a PHP notice and an access error after activating a license
* Fixed: a PHP notice on WordPress 6.7 and later caused by translations being loaded before the init action
* Improved: tournament grid layout now wraps to a single column on narrow screens (Pro)

= 1.7.42 =
* Fixed design preview showing a stale color for settings hidden on this sport; they now follow the selected theme (Pro).

= 1.7.41 =
* Streaming view now reflects changes to team abbreviations, logos, emoji, colors, venue, and tournament name without a manual reload (Pro).

= 1.7.40 =
* Fixed the design settings preview falling back to theme preset colors for fields hidden on this sport (Pro).
* Fixed the OBS Stream tab occasionally not appearing on the settings screen (Pro).

= 1.7.27 =
* Design settings preview restored to the original working behavior (Pro).

= 1.7.26 =
* Fixed the design settings preview by restoring the original color-input-first initialization (Pro).

= 1.7.25 =
* Fixed the design settings preview reverting to the theme colors after saving (Pro).

= 1.7.24 =
* Aligned Freemius configuration (slug and premium slug) with the dashboard.

= 1.7.23 =
* WordPress.org compliance: separated Pro design logic, renamed to SPOSCOR Basketball, split Plugin/Author URIs, and hardened against double activation.

= 1.7.22 =
* Highlight types: 3PT/2PT/FT/DUNK/AST/REB/BLK/STL/FOUL/TF plus Timeout, Substitution and Other.
* Restored quarter label (Qtr), 4-quarter minimum, and captain marker.

= 1.7.21 =
* Restored the captain (star) marker in the starting lineup (admin input and front-end C column).

= 1.7.20 =
* Removed the baseball batting-hand and average columns from the starting lineup.

= 1.7.19 =
* Removed the baseball ball/strike/out count and base-runner diamond from the top score area.

= 1.7.18 =
* Tournament and league match cards now stack into a single column on mobile instead of overflowing.

= 1.7.17 =
* Removed the baseball-only "Pitcher Record Row Background" option from the design settings.

= 1.7.16 =
* Match cards now read quarter scores from the game when not stored on the tournament, so Q1-Q4 always appear.

= 1.7.15 =
* Tournament and league match cards now show quarter-by-quarter scores (Q1-Q4 + OT).

= 1.7.14 =
* Removed the baseball-only Pitchers section from Display Settings and the Settings page.

= 1.7.13 =
* Removed the baseball-only Live Count URL from the OBS panel; basketball shows Main Score and Scoreboard URLs only.

= 1.7.12 =
* Removed the duplicate PTS column next to the total (R) column on the scoreboard.

= 1.7.11 =
* Scoreboard now stops adding periods at OT5 (Q1-Q4 + OT1-OT5).

= 1.7.10 =
* Scoreboard headers now show Q1-Q4 and OT1-OT5 instead of 1,2,3.

= 1.7.9 =
* Highlights use quarter + minute (Q1 3') with player and event type, matching the established front-end layout.

= 1.7.8 =
* Rebuilt on the shared SPOSCOR architecture (self-contained tournament, settings, and OBS layers bundled with the plugin).
* Quarter-by-quarter scoreboard with overtime.
* Starting lineup (PG/SG/SF/PF/C + substitutes).
* Basketball highlights with period, clock, team, type, player and assist.
* FIBA-style standings tiebreakers (Pro).
* Compatible with WordPress 7.0.

= 1.0.0 =
* Initial release of SPOSCOR Basketball.
* Quarter-by-quarter scoreboard with overtime.
* Starting lineup (PG/SG/SF/PF/C + substitutes).
* Basketball highlights with period, clock, team, type, player and assist.
* FIBA-style standings tiebreakers (Pro).
* Shared tournament, settings, and OBS streaming layers.

== Upgrade Notice ==

= 1.8.8 =
Fixes the refresh buttons on tournament and standings views, license activation errors, and tournament features appearing without a Pro license.

= 1.7.9 =
Highlights now use quarter + minute. Requires the free SPOSCOR Core plugin.

= 1.7.8 =
Rebuilt on the shared SPOSCOR architecture. Requires the free SPOSCOR Core plugin.
