Linux 软件免费装

vblg OI Contest Schedule

开发者 hanyixuanten
更新时间 2026年9月23日 23:46
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPL-3.0-only
版权网址: 版权信息

标签

dashboard block schedule contest competitive programming

下载

0.2.0 0.2.1

详情介绍:

vblg OI Contest Schedule displays currently running and upcoming competitive programming contests with local times and live countdowns. Contests that have ended are not displayed. The plugin adds an Upcoming OI Contests widget to the WordPress dashboard. To display the schedule on the front end, add the vblg OI Contest Schedule block to a post or page. Features include: Block settings Add the vblg OI Contest Schedule block from the block inserter. Its settings sidebar lets you display between 1 and 50 contests and enable the compact layout. The block is rendered dynamically so it always uses current contest data. Shortcode options The shortcode remains available for classic editors and templates. By default it displays up to 10 contests: [oics_oi_contest_schedule] Use limit to display between 1 and 50 contests: [oi_contest_schedule limit="20"] Set compact to true to use the compact layout: [oi_contest_schedule limit="20" compact="true"]

安装:

  1. Upload the vblg-oi-contest-schedule directory to /wp-content/plugins/, or install the plugin ZIP through the WordPress Plugins screen.
  2. Activate vblg OI Contest Schedule through the Plugins screen.
  3. Open the WordPress dashboard to see the contest widget.
  4. To show the schedule on the front end, add the vblg OI Contest Schedule block to a post or page.

升级注意事项:

0.2.0 The plugin slug and shortcode have changed. Replace [oi_contest_schedule] with [oics_oi_contest_schedule] after upgrading. 0.1.0 Initial release.

常见问题:

Which contests are shown?

The plugin shows contests whose end time is still in the future, including contests that are currently running. Finished contests and entries without a valid URL are omitted.

Which time zone is used?

Dates are formatted in the visitor's client device time zone using the browser's internationalization API. The time zone configured in the WordPress site settings is not used.

How often is the contest data refreshed?

The remote response is cached by WordPress for five minutes. After the cache expires, the next schedule request retrieves fresh data.

What happens if the data source is unavailable?

The schedule displays a temporary-unavailable notice instead of contest entries. WordPress pages and the dashboard continue to work normally.

Can I use another data source?

Developers can replace the feed URL with the oics_contest_data_url filter. The replacement endpoint must return the same JSON structure as the default feed.

更新日志:

0.2.0 0.1.0