Linux 软件免费装
Banner图

Gudjons Turneringer for Golfbox

开发者 gudjon
更新时间 2026年7月10日 15:47
PHP版本: 7.0 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

calendar schedule sports tournaments golf

下载

2.2.0 2.3.0 2.1.1 2.1.2

详情介绍:

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 Shortcode Basic usage: [gudjons_turneringer limit="50"] Examples:

安装:

  1. Upload the plugin folder to wp-content/plugins/, or install the ZIP via Plugins > Add New > Upload.
  2. Activate Gudjons Turneringer for Golfbox under Plugins.
  3. Open Gudjons Turneringer for Golfbox in the admin menu and set at least the club's customerID.
  4. Place [gudjons_turneringer] on a page, or use one of the variants above.

屏幕截图:

  • Table layout with selected columns.
  • Cards layout in a grid.
  • The settings page with display, color and series options.

升级注意事项:

2.3.0 New: hide specific tournaments with exclude="..." / exclude_category="..." in the shortcode, or globally from the settings page. 2.2.0 Tournaments now deep-link to their own page on Golfbox automatically. If you have set a custom "Standard lenke" or "Kalenderside", nothing changes for you. 2.1.2 Fixes a cards-layout display issue where the status badge could overlap the time. 2.1.1 Renamed plugin and shortcode (now [gudjons_turneringer]). Update any pages that used [golfbox_turneringer]. 2.1.0 New layouts (table/cards), field and color options, and template override. variant="compact" is now density="compact", but the old spelling still works.

常见问题:

Where do I find the club's customerID?

It is part of the club's Golfbox setup, and is often visible in the URL of the club's Golfbox calendar. Contact your club administrator or Golfbox/NGF if you are unsure.

Can I control which fields are shown?

Yes. On the settings page you can tick fields on or off, and in the shortcode you can set the order with fields="date,name,venue,badge".

Can I change colors and font?

Yes, from the settings page (color pickers and font), or per shortcode with accent, accent_soft, tint and font_heading. Everything is built on CSS variables, so your theme can also override .gudjons-turneringer-for-golfbox { --gbt-accent: ... }.

Can I override the HTML itself?

Yes. Copy one of the files in the plugin's templates/ folder (for example list.php, table.php, cards.php) into your-theme/gudjons-turneringer-for-golfbox/ and edit it there. There are also filters such as golfbox_turneringer_entry, golfbox_turneringer_entry_fields and golfbox_turneringer_render_args.

Can I hide specific tournaments?

Yes. On the settings page, under "Skjul turneringer", enter a comma-separated text (case-insensitive substring of the tournament name) and/or category IDs — these tournaments are then hidden in every view. You can also hide per shortcode with exclude="some text" and exclude_category="123". Shortcode values are merged with the global setting, and exclusion always wins over series, filter and category.

How often is the data updated?

It is cached for the number of seconds set by "Cache time" (default 30 minutes). The cache is cleared when you save the settings.

更新日志:

2.3.0 2.2.0 2.1.2 2.1.1 2.1.0 2.0.0