| 开发者 | live2sport |
|---|---|
| 更新时间 | 2026年11月8日 04:32 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/.[live2sport_widget] to a post, page, or shortcode-enabled widget area.[live2sport_widget sport="basketball"]
Choose an optional date in YYYY-MM-DD format:
[live2sport_widget sport="soccer" date="2026-10-29"]
Choose decimal odds (the default):
[live2sport_widget sport="soccer" odds_display="odds"]
Or show normalized implied probabilities instead of decimal odds:
[live2sport_widget sport="soccer" odds_display="percent"]
The three positions represent home (1), draw (X), and away (2). As on sportschedule.tv, valid service-provided percentages take priority. Otherwise the plugin uses current average odds, with current market odds as a fallback, and calculates (1 / odds) / sum(1 / odds) * 100 to remove the market margin proportionally. These are market-implied values, not an independent prediction or a guarantee. Each outcome is rounded to one decimal place, so the displayed total may be 99.9% or 100.1%. For two-outcome markets, the draw position shows a dash. If both valid service percentages and complete odds are missing, the plugin shows dashes rather than inferring a probability from one outcome. Unsupported odds_display values fall back to decimal odds.
Enable TVEvents links on match titles and in prediction tooltips for a single widget:
[live2sport_widget sport="soccer" match_links="yes"]
The match_links option accepts yes, true, on, or 1. An explicit shortcode option overrides the corresponding site setting. If the date is omitted or invalid, the widget uses its normal current-date behavior.
Supported sport values: soccer, basketball, hockey, tennis, handball, baseball, volleyball, table-tennis, darts, badminton, american-football, futsal, esports, boxing, mma, snooker, cricket, rugby-union, rugby-league, floorball, water-polo, bandy, beach-soccer, australian-football, canadian-football, arena-football, and pesapallo.
The optional "Powered by Live2Sport" footer linking to https://live2sport.com/ is disabled by default. Enable it in Settings or explicitly with credits="yes". Prediction tooltip icons are enabled by default when prediction data is available; disable them with predictions="no". These options are independent of match_links.
Example: [live2sport_widget sport="soccer" credits="yes" predictions="yes" odds_display="percent"]
Existing [tvevents_widget] shortcodes continue to work with the same settings. The recommended shortcode for new installations is [live2sport_widget].Country flags are bundled SVG images from flag-icons (https://github.com/lipis/flag-icons), licensed under MIT. The copyright and license notice is in licenses/flag-icons-MIT.txt; the pinned source revision is documented in licenses/SOURCES.txt. Old country spellings are mapped to the same files. Unknown regions and unsupported organisations use an original neutral globe. No external image CDN is used.
The widget renders inside a Shadow DOM with its own styles, fonts and layout. Theme rules for tables, links and images do not change the internal alignment or hover states. The theme still determines the width available to the shortcode container.
No. The TVEvents match links and the Live2Sport footer credit are independent opt-in choices in Settings > Live2Sport Widget. Use match_links="yes" or credits="yes" to enable either one for a specific shortcode. Schedules, scores and prediction tooltips work with both options disabled.
The plugin stores the site administrator's widget preferences in a WordPress option, including the selected sport, odds display, prediction icons, match links and footer credit. Manage them under Settings > Live2Sport Widget. The plugin does not store visitor data in the WordPress database.
Yes. The JavaScript and image assets are packaged locally. Schedule and optional prediction data are still served by the TVEvents.org service.
Yes. Each shortcode creates its own container. Different sports, dates, and link preferences can be used on the same page.