內容簡介
使用 Widget
WordPress 的 Widget 功能可以讓您將 LiveRacers 的即時賽事 Widget 插入網站主題中的任何 Widget 區域。所有設定都可以直接在 Widget 的 UI 介面中進行設定。
使用短碼
您還可以使用短碼 lr_livewidget 將 Live Widget 插入任何啟用短碼的內容區域,或透過 do_shortcode() 在 PHP 代碼中使用。
範例:[lr_livewidget url="http://efnetsimracing.liveracers.com" theme="dark"]
短碼屬性
url – 字串,必填:您的 LiveRacers 網域的完整網址
theme – 字串: "light"(預設)或 "dark"
orientation – 字串: "vertical"(預設)或 "horizontal"
width – 數值: Widget 的寬度(預設 = 200 像素)
canjoin – 字串: "true"(預設)或 "false",是否顯示「加入」連結
外掛標籤
開發者團隊
原文外掛簡介
Widget Use
The WordPress widget allows you to insert the LiveRacers Live Widget into any widgetized area in your site’s theme. All the settings are available directly in the widget UI.
Shortcode Use
You can also use the shortcode lr_livewidget to insert the Live Widget into any shortcode enabled content area or via do_shortcode() in PHP code.
Example: [lr_livewidget url="http://efnetsimracing.liveracers.com" theme="dark"]
Shortcode attributes
url – String, required: the full URL to your LiveRacers domain
theme – String: "light" (default) or "dark"
orientation – String: "vertical" (default) or "horizontal"
width – Numeric: width of the widget in pixels (default = 200)
canjoin – String: "true" (default) or "false"; whether or not to show the “Join” link
