[WordPress] 外掛分享: Steam News Widget

首頁外掛目錄 › Steam News Widget
WordPress 外掛 Steam News Widget 的封面圖片
20+
安裝啟用
★★★★★
5/5 分(2 則評價)
3969 天前
最後更新
問題解決
WordPress 3.0.0+ v1.1.1 上架:2015-03-21

內容簡介

這個外掛新增了一個小工具,它可以顯示選定遊戲的最新消息。

設定選項

Steam 遊戲 ID:
遊戲是用其 Steam 應用程式 ID 來引用的。
只需輸入逗號分隔的應用程式 ID 列表,如「440、570、730」(不加引號)。
您可以在 http://api.steampowered.com/ISteamApps/GetAppList/v0002/ 中找到完整的 Steam 應用程式 ID 列表。

最大新聞數量:
顯示的最大新聞數量。

新聞長度:
限制顯示的新聞長度。

HTML 模板:
允許您以所需的方式定義小工具的 HTML 佈局。
可以使用特殊標籤 {{some_news.some_property}} 提取新聞數據。
只需將它們放在正確的位置。插件將用實際數據替換它們。
要通過<foreach>標籤遍歷所有抓取的新聞,例如:<foreach iterator="{{news}}" in="{{newslist}}">{{news.text}}</foreach>,其中 {{newslist}} 是預定義值,它指向新聞集合。

每一條新聞都有以下屬性:

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」字樣。
建議您將此鏈接放在頁腳中,這樣它就不會妨礙到其他人,但對感興趣的用戶仍然可見。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Steam News Widget」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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 tag,
e.g. {{news.text}},
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.

文章
Filter
Apply Filters
Mastodon