前言介紹
- 這款 WordPress 外掛「Steam News Widget」是 2015-03-21 上架。
- 目前有 30 個安裝啟用數。
- 上一次更新是 2015-05-07,距離現在已有 3650 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.0.0 以上版本才可以安裝。
- 有 2 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
news | games | Steam | game news | steampowered |
內容簡介
這個外掛新增了一個小工具,它可以顯示選定遊戲的最新消息。
設定選項
Steam 遊戲 ID:
遊戲是用其 Steam 應用程式 ID 來引用的。
只需輸入逗號分隔的應用程式 ID 列表,如「440、570、730」(不加引號)。
您可以在 http://api.steampowered.com/ISteamApps/GetAppList/v0002/ 中找到完整的 Steam 應用程式 ID 列表。
最大新聞數量:
顯示的最大新聞數量。
新聞長度:
限制顯示的新聞長度。
HTML 模板:
允許您以所需的方式定義小工具的 HTML 佈局。
可以使用特殊標籤 {{some_news.some_property}} 提取新聞數據。
只需將它們放在正確的位置。插件將用實際數據替換它們。
要通過
每一條新聞都有以下屬性:
title,例如 {{news.title}}。
url,例如 {{news.url}}。
text,例如 {{news.text}}。
date,例如 {{news.date}}。
time,例如 {{news.time}}。
其他注意事項
日期/時間格式以及新聞的時區與 WordPress「一般設定」中的設定匹配。
小工具的內容每小時更新一次。
此外掛需要 PHP 5.3.3 或更高版本。
數據提供者的特殊要求:
使用 Steam Web API的每個頁面都必須包含到 http://steampowered.com 的鏈接,並標有「Powered by Steam」字樣。
建議您將此鏈接放在頁腳中,這樣它就不會妨礙到其他人,但對感興趣的用戶仍然可見。
原文外掛簡介
The plugin adds a widget that shows news for selected games.
Configuration Options
Steam Game IDs:
Games are referenced by their steam app id.
Just enter a comma-separated list of app ids, like “440, 570, 730” (without quotes).
You can find the full list of steam app ids at http://api.steampowered.com/ISteamApps/GetAppList/v0002/ .
Maximum Number of News:
The maximum number of news to show.
News Length:
It limits the length of shown news.
HTML Template:
Allows you to define HTML layout of the widget in a way you like.
The news data can be extracted with special tags {{some_news.some_property}}.
Just put those in a right place. The plugin will replace them with actual data.
To iterate through all fetched news use
e.g.
where {{newslist}} is a predefined value and it points to the news set.
Each news has following properties:
title, e.g. {{news.title}}.
url, e.g. {{news.url}}.
text, e.g. {{news.text}}.
date, e.g {{news.date}}.
time, e.g. {{news.time}}.
Other Notes
The date/time format as well as the timezone of the news match the ones from WordPress “General Settings”.
The widget’s content is updated about every hour.
The plugin requires PHP 5.3.3 or higher.
A special requirement from the data provider:
Each page that uses the Steam Web API must contain a link to http://steampowered.com with the text “Powered by Steam”.
We suggest that you put this link in your footer so it is out of the way but still visible to interested users.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Steam News Widget」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.0 | 1.1.0 | 1.1.1 | trunk |
延伸相關外掛(你可能也想知道)
暫無相關外掛推薦。