外掛標籤
開發者團隊
② 後台搜尋「Gudjons Turneringer for Golfbox」→ 直接安裝(推薦)
原文外掛簡介
Gudjons Turneringer for Golfbox fetches a golf club’s upcoming tournaments from Golfbox and displays them in WordPress in the club’s own style, without loading the full Golfbox widget. The plugin is generic and works for any club by setting the club’s customerID.
Data is fetched server-side from the Golfbox schedule endpoint, cached with WordPress Transients, filtered and displayed. The same data source and cache are shared by all views on the page.
Main features
Three layouts: list (rows), table (columns) and cards (grid).
Field and column selection: choose which fields are shown and in what order: date, time, name, type, venue and status.
Theming with colors and font: set accent color, soft accent, tint color and heading font, from the settings page or per shortcode. Built on CSS variables, so your theme can override everything.
Density: normal or compact (great for a front-page box).
Filtering: by named series, free text search and/or Golfbox category IDs.
Hide specific tournaments: exclude by free text or category ID, globally from the settings page or per shortcode. Exclusion always wins over the filters above.
Deep link per tournament — out of the box each tournament links to its own page on Golfbox; optionally link to a calendar page on your own site instead.
Template override: developers can copy the layout files into the theme and override the markup completely, and use filters.
Its own settings page, shortcode and template tag. No editing of functions.php required.
Shortcode
Basic usage:
[gudjons_turneringer limit="50"]
Examples:
Table: [gudjons_turneringer layout="table" fields="date,time,name,venue,badge"]
Cards: [gudjons_turneringer layout="cards" limit="6"]
Front-page box: [gudjons_turneringer density="compact" limit="5" all_url="/turneringer/"]
Custom color: [gudjons_turneringer accent="#0a3d2a" tint="#e6f4ea"]
A series: [gudjons_turneringer series="torsdagsduellen"]
Hide specific tournaments: [gudjons_turneringer exclude="atlungstad match"]
External services
This plugin connects to the Golfbox tournament schedule API to display your golf club’s upcoming tournaments. This is required for the plugin to function.
Service: Golfbox (scores.golfbox.dk), provided by Golfbox A/S.
What is sent and when: On front-end page views that render a tournament list, the plugin makes a server-side request to https://scores.golfbox.dk/Handlers/ScheduleHandler/GetSchedule/.... The request URL contains the club’s customerID, the season (year) and a language ID that you configure. No personal data about your site visitors is sent. Responses are cached with WordPress Transients to limit the number of requests.
Deep links from each tournament point to the club’s own Golfbox calendar page.
Golfbox terms of service: https://www.golfbox.no/
Golfbox privacy policy: https://www.golfbox.no/
If you do not configure a customerID, the plugin makes no external requests.
