Linux 软件免费装
Banner图

Rotascore Live Scores Widget

开发者 rotascore
更新时间 2026年10月13日 23:38
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

football soccer livescore live score standings

下载

1.1.0 1.2.0 1.3.0 1.4.0 1.4.1

详情介绍:

Rotascore Live Scores Widget adds free football widgets from Rotascore to any post, page or widget area: live scores, league standings, fixtures, results and the matches of a team. Shortcode The easiest way is Settings > Rotascore Widgets: choose a league or team by name, check the preview and copy the shortcode. You can also write it by hand: [rotascore type="standings" id="LEAGUE_ID" lang="en"] [rotascore type="matches" leagues="LEAGUE_ID_1,LEAGUE_ID_2" day="tomorrow"] [rotascore type="team" id="TEAM_ID" rows="5"] [rotascore type="scorers" id="LEAGUE_ID" rows="10"] [rotascore type="match" id="MATCH_ID_OR_LINK"] Block Search for "Rotascore" in the block inserter. The sidebar has every option, with searchable league and team pickers, and the block previews the live widget. External services This plugin embeds content from rotascore.com, a third-party service run by the plugin's authors. 1. The widget (visitors). Each widget is an iframe loaded from https://www.rotascore.com/{language}/embed/.... A small script bundled inside this plugin (assets/loader.js; no remote JavaScript is loaded) creates the iframe and reads your page's colors and text size so the widget matches it. It sets no cookies. When a visitor's browser loads a page containing a widget, it connects to rotascore.com and sends the usual request data (such as IP address and user agent) to that service. The widget shows a "Rotascore" link inside the frame; the plugin does not remove or hide it. 2. The league and team search (logged-in editors only). When a logged-in user who can edit posts searches for a league or team in the block sidebar or on Settings > Rotascore Widgets, that editor's browser (not your server) sends the typed search text and the chosen language code to https://www.rotascore.com/api/embed/search (league and team search, and the popular leagues listed before you type) to list leagues and teams. No cookies are sent and nothing is stored; answers are only kept in memory while the page is open. 3. The live preview (editors only). The preview in the editor and on the settings page is the same iframe from https://www.rotascore.com/{language}/embed/... that visitors see, loaded in the editor's browser. Visitors never trigger the search requests, and the plugin stores no personal data. The widgets themselves are loaded from rotascore.com by the visitors' browsers.

安装:

  1. Upload the rotascore-live-scores-widget folder to /wp-content/plugins/, or install the plugin from the Plugins screen.
  2. Activate the plugin through the Plugins screen.
  3. Edit a post or page, add the "Rotascore Standings", "Rotascore Live Scores" or "Rotascore Team Matches" block and pick your league or team by name. Or open Settings > Rotascore Widgets and copy a shortcode.

屏幕截图:

  • Fixtures and live scores widget in the dark theme.
  • The block editor with the settings sidebar (searchable league and team pickers) and the live preview.
  • Settings > Rotascore Widgets: the shortcode generator with live preview and a copy button.
  • The team matches widget.
  • The top scorers widget with Top Scorer, Top Assists and Cards tabs (player photos and the season team).
  • The single match widget in the dark theme: score and match events with player photos.
  • Cup group stages: group tabs and zone legend in the standings widget.

升级注意事项:

1.4.1 Fixes yesterday/tomorrow fixtures on sites with a page cache, and widgets that are inserted after the page loads. Existing shortcodes and blocks keep working unchanged. 1.4.0 New top scorers and single match widgets, and group tabs in the standings widget. Existing shortcodes and blocks keep working unchanged. 1.3.0 New "Live matches only" option for the fixtures widget, and a clearer message on days without matches. Existing shortcodes and blocks keep working unchanged. 1.2.0 Pick leagues and teams by name, see a live preview in the editor, and use the new shortcode generator under Settings. Existing shortcodes and blocks keep working unchanged. 1.1.0 Widgets now follow your site's light or dark look by default (theme="auto"). Set theme="light" to keep the old fixed appearance. 1.0.0 First release.

常见问题:

Do I need an account or an API key?

No. The widgets are free to embed. Pick a league or team and you are done.

Can I use it with Elementor, Divi, WPBakery or the Classic Editor?

Yes. Create the shortcode under Settings > Rotascore Widgets and paste it into the shortcode element of your builder or into the Classic Editor. Themes that use widget areas without blocks can use the "Rotascore Football Widget" under Appearance > Widgets.

Does it work with caching plugins and CDNs?

Yes. The page only contains an empty container; the live data is loaded in the visitor's browser from rotascore.com, so scores stay live on cached pages. The one exception is day="yesterday" or day="tomorrow": the date is fixed when the page is generated, so a page that stays in the cache for days can show an outdated day. Purge the cache daily, or keep the default today, which follows each visitor. If your caching plugin delays or combines JavaScript, exclude rotascore-live-scores-widget/assets/loader.js.

Can I show only the matches that are being played now?

Yes. Turn on "Live matches only" in the block sidebar or the shortcode generator (or use live="1"). The fixtures widget then lists only the live matches, still grouped by league, hides the day buttons and says "No live matches right now" when nothing is on.

Will it match my dark theme?

By default the theme is auto: the widget reads the background and text color of the place where you put it and switches between light and dark. If you want a fixed look, choose Light or Dark in the block sidebar or add theme="dark" to the shortcode.

Which leagues and teams are available?

The competitions and teams of Rotascore, from the top leagues and cups to many lower divisions around the world. Search for the name in the picker; if you can find it on rotascore.com you can use it here.

Can I change the language?

Yes. Choose the language in the block sidebar or use the lang attribute. The widget is available in 53 languages, and visitors can change the language inside the widget unless you turn the controls off. The plugin's own screens are translated through translate.wordpress.org.

Is it GDPR friendly? Does it track visitors?

The plugin sets no cookies, adds no tracking and stores no personal data. The widget is an iframe served by rotascore.com, so the visitor's browser connects to that service like it does for any embedded content; see the privacy policy linked in the External services section. Whether you need to mention it in your own privacy policy or consent tool depends on your site and your country, so please check your own requirements.

Will it slow down my site?

The widget loads only when it comes near the visible screen (lazy loading), the bundled script is small, no layout jump happens because the height is reserved, and the iframe pauses its live updates when it is out of view.

Can I remove the Rotascore link or the branding in the widget?

No. The widget shows a small "Rotascore" link as part of the free service, and the plugin does not offer a way to hide it. Please do not hide it with CSS either.

The widget is cut off or has too much empty space.

The widget resizes itself to its content when your theme prints scripts in the footer. You can also set the height attribute to change the space reserved while it loads.

My theme loads page content with JavaScript (popups, tabs, single-page navigation).

Widgets inserted after the page has loaded are picked up automatically. If your theme replaces content in a way that is not noticed, call window.RotascoreWidgets.scan() once after inserting the widget container.

Where do I get help?

Write to help@rotascore.com or use the support forum of this plugin on WordPress.org.

更新日志:

1.4.1 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0