| 开发者 | badhub |
|---|---|
| 更新时间 | 2026年5月6日 23:52 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[badhub_widget] into any page or post[badhub_widget] — league table (default)
[badhub_widget type="matches"] — match schedule
[badhub_widget type="combined"] — table + schedule combined
[badhub_widget type="table" pool_id="12345"] — specific league pool
[badhub_widget theme="dark"] — dark mode
[badhub_widget highlight="0"] — disable own-club highlight
[badhub_widget promotion="0"] — hide promotion/relegation markers
[badhub_widget logos="0"] — hide club logos
Federation league system shortcode ([badhub_liga])
Federations with an active Federation-tier license can embed the complete league system — all divisions, all tables, full match schedule with built-in 3-level navigation — using a single shortcode:
[badhub_liga federation="bvbb"] — full league widget for the BVBB federation
[badhub_liga federation="bvbb" ga="G-XXXXXXXX"] — with Google Analytics 4 tracking
[badhub_liga min_height="700"] — set initial iframe height (default 500)
The federation slug is required. If your Plugin Settings already specify a federation, the attribute can be omitted. Only federations with a valid Federation-tier license on badhub.de are served — other slugs return 403.
External service
This plugin connects to badhub.de to retrieve league tables and match data, and to plugin.badhub.de to render the widget iframe.
/wp-content/plugins/badhub-widget/, or install via Plugins → Add New and search for "Badhub Widget"[badhub_widget] to any page or postVisit plugin.badhub.de and register for free. You will receive your API key by email immediately.
Yes. The free tier includes the full league table with the "Powered by badhub.de" badge. A Pro upgrade (no badge, priority support) is available for a small annual fee.
Currently supported: BVBB, BVRP, HBV, BWBV, BBV, NBV. More federations are being added.
Yes. Visit plugin.badhub.de to generate a script tag embed code that works on any website.
Yes. Each [badhub_widget] shortcode generates an independent iframe. You can use different pool_id or type attributes for each.
transparent="1" shortcode attribute) — widget background becomes transparent so the host page background shows through; theme (light/dark/auto) still drives text and border colours/api/v1/key-info returns tier, federation and registered club for the calling keytype="matches")type="combined")